@ws-ui/localization-editor 1.11.12-rc7 → 1.12.2
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/Standalone/style.css +1 -1
- package/dist/adapter/provider.d.ts +4 -9
- package/dist/adapter/types.d.ts +17 -15
- package/dist/common.cjs.js.map +1 -1
- package/dist/common.es.js.map +1 -1
- package/dist/components/Export-Import/Import/export-i18n.schema.json.d.ts +82 -82
- package/dist/components/KeysEditor/KeyRow.d.ts +1 -0
- package/dist/components/SupportedEditor/AddLanguage.d.ts +3 -0
- package/dist/index.cjs.js +117 -132
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +23713 -31051
- package/dist/index.es.js.map +1 -1
- package/dist/languages.d.ts +8 -0
- package/dist/localization-editor.css +1 -1
- package/dist/providers/LocalizationEditorProvider.d.ts +2 -0
- package/dist/utils.d.ts +2 -2
- package/package.json +4 -5
package/dist/index.cjs.js
CHANGED
|
@@ -1,173 +1,158 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
|
|
3
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function uc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var rl=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,a;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=lc(o),u=s.next();!u.done;u=s.next()){var c=u.value;c.remove(this)}}catch(v){t={error:v}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else o.remove(this);var d=this.initialTeardown;if(Kr(d))try{d()}catch(v){a=v instanceof ru?v.errors:[v]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var f=lc(h),g=f.next();!g.done;g=f.next()){var x=g.value;try{Zh(x)}catch(v){a=a??[],v instanceof ru?a=Mt(Mt([],yt(a)),yt(v.errors)):a.push(v)}}}catch(v){n={error:v}}finally{try{g&&!g.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}if(a)throw new ru(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Zh(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&uc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&uc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Tm=rl.EMPTY;function Pm(e){return e instanceof rl||e&&"closed"in e&&Kr(e.remove)&&Kr(e.add)&&Kr(e.unsubscribe)}function Zh(e){Kr(e)?e():e.unsubscribe()}var k1={Promise:void 0},S1={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Mt([e,t],yt(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function C1(e){S1.setTimeout(function(){throw e})}function ep(){}function rs(e){e()}var sd=(function(e){ni(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Pm(r)&&r.add(n)):n.destination=I1,n}return t.create=function(r,n,i){return new cc(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(rl),E1=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){ko(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){ko(n)}else ko(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ko(r)}},e})(),cc=(function(e){ni(t,e);function t(r,n,i){var a=e.call(this)||this,o;return Kr(r)||!r?o={next:r??void 0,error:n??void 0,complete:i??void 0}:o=r,a.destination=new E1(o),a}return t})(sd);function ko(e){C1(e)}function _1(e){throw e}var I1={closed:!0,next:ep,error:_1,complete:ep},A1=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function T1(e){return e}function P1(e){return e.length===0?T1:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var tp=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,a=O1(t)?t:new cc(t,r,n);return rs(function(){var o=i,s=o.operator,u=o.source;a.add(s?s.call(a,u):u?i._subscribe(a):i._trySubscribe(a))}),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=rp(r),new r(function(i,a){var o=new cc({next:function(s){try{t(s)}catch(u){a(u),o.unsubscribe()}},error:a,complete:i});n.subscribe(o)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[A1]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return P1(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=rp(t),new t(function(n,i){var a;r.subscribe(function(o){return a=o},function(o){return i(o)},function(){return n(a)})})},e.create=function(t){return new e(t)},e})();function rp(e){var t;return(t=e??k1.Promise)!==null&&t!==void 0?t:Promise}function N1(e){return e&&Kr(e.next)&&Kr(e.error)&&Kr(e.complete)}function O1(e){return e&&e instanceof sd||N1(e)&&Pm(e)}function R1(e){return Kr(e==null?void 0:e.lift)}function Nm(e){return function(t){if(R1(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Om(e,t,r,n,i){return new L1(e,t,r,n,i)}var L1=(function(e){ni(t,e);function t(r,n,i,a,o,s){var u=e.call(this,r)||this;return u.onFinalize=o,u.shouldUnsubscribe=s,u._next=n?function(c){try{n(c)}catch(d){r.error(d)}}:e.prototype._next,u._error=a?function(c){try{a(c)}catch(d){r.error(d)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=i?function(){try{i()}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,u}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})(sd),D1=Am(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Rm=(function(e){ni(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new np(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new D1},t.prototype.next=function(r){var n=this;rs(function(){var i,a;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=lc(n.currentObservers),s=o.next();!s.done;s=o.next()){var u=s.value;u.next(r)}}catch(c){i={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;rs(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;rs(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,a=i.hasError,o=i.isStopped,s=i.observers;return a||o?Tm:(this.currentObservers=null,s.push(r),new rl(function(){n.currentObservers=null,uc(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,a=n.thrownError,o=n.isStopped;i?r.error(a):o&&r.complete()},t.prototype.asObservable=function(){var r=new tp;return r.source=this,r},t.create=function(r,n){return new np(r,n)},t})(tp),np=(function(e){ni(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:Tm},t})(Rm);function V1(e,t){return Nm(function(r,n){var i=0;r.subscribe(Om(n,function(a){n.next(e.call(t,a,i++))}))})}function M1(e,t){return Nm(function(r,n){var i=0;r.subscribe(Om(n,function(a){return e.call(t,a,i++)&&n.next(a)}))})}const Lm=new Rm,j1=(e,t)=>({name:e.split("/").pop()||e,type:Ne.FileFolderType.WEBFORM,path:e,date:new Date().toISOString(),content:t,view:{panel:{isOpen:!1,type:"",current:""}},flags:{}});function Dm(e,t){switch(t.type){case"SET_TABS":return{...e,tabs:t.payload};case"SET_I18N_CURRENT":return{...e,i18nCurrent:t.payload};case"SET_TAB_CONTENT":{const{path:r,content:n}=t.payload;return e.tabs.find(a=>a.path===r)?{...e,tabs:e.tabs.map(a=>a.path===r?{...a,content:n}:a)}:{...e,tabs:[...e.tabs,j1(r,n)]}}case"CREATE_MODAL":return{...e,modals:{...e.modals,list:[...e.modals.list,t.payload]}};case"REMOVE_MODAL":return{...e,modals:{...e.modals,list:e.modals.list.filter(r=>r.id!==t.payload)}};case"CLOSE_MODAL":{const{id:r,reason:n}=t.payload;let i;if(n)if(e.modals.list.find(o=>o.id===r))i={...e,modals:{...e.modals,list:e.modals.list.map(o=>o.id===r?{...o,closeReason:n,isOpen:!1}:o)}};else return e;else i={...e,modals:{...e.modals,list:e.modals.list.filter(a=>a.id!==r)}};return Lm.next(i.modals),i}case"EDIT_MODAL":{const{id:r,...n}=t.payload;return e.modals.list.find(a=>a.id===r)?{...e,modals:{...e.modals,list:e.modals.list.map(a=>a.id===r?{...a,...n}:a)}}:e}default:return e}}const nl=L.createContext(null),Vm=(e,t)=>({tabs:e,i18nCurrent:t,modals:{list:[]}}),Mm=({children:e,tabs:t=[],i18nCurrent:r="",initialI18nFile:n})=>{const[i,a]=L.useReducer(Dm,Vm(t,r));L.useEffect(()=>{we.isEqual(i.tabs,t)||a({type:"SET_TABS",payload:t})},[t,i.tabs]),L.useEffect(()=>{i.i18nCurrent!==r&&a({type:"SET_I18N_CURRENT",payload:r})},[r,i.i18nCurrent]);const o=L.useMemo(()=>({state:i,dispatch:a,initialI18nFile:n}),[i,n]);return _.jsx(nl.Provider,{value:o,children:e})};function jm(e,t,r){const n=L.useContext(nl);if(!n)throw new Error("useReducerAdapter must be used within a ReducerAdapterProvider");const{state:i,dispatch:a,initialI18nFile:o}=n;return{getTabs:L.useCallback(()=>i.tabs,[i.tabs]),getI18nCurrent:L.useCallback(()=>i.i18nCurrent,[i.i18nCurrent]),fetchI18nFile:L.useCallback(()=>{if(!o)return Promise.resolve(Xn);if(typeof o!="string")return Promise.resolve(o);try{const s=JSON.parse(o);return Promise.resolve({keys:(s==null?void 0:s.keys)??Xn.keys,userLang:(s==null?void 0:s.userLang)??Xn.userLang})}catch{return Promise.resolve(Xn)}},[o]),getWebformTabs:L.useCallback(()=>i.tabs.filter(s=>s.type===Ne.FileFolderType.WEBFORM),[i.tabs]),getActiveTabPath:L.useCallback(()=>{var s;return((s=i.tabs[0])==null?void 0:s.path)??""},[i.tabs]),getFlagsByPath:L.useCallback(s=>{var u;return(u=i.tabs.find(c=>c.path===s))==null?void 0:u.flags},[i.tabs]),getSupportedLanguages:L.useCallback(async s=>r&&r.length?r:Ne.getSupportedLanguages(s),[r]),getUserComponents:L.useCallback(()=>e??{},[e]),buildResolver:t,actions:{openModal:L.useCallback(async s=>{const{type:u=Ne.ModalType.ALERT}=s,c=id.generate();return a({type:"CREATE_MODAL",payload:{id:c,type:u,isOpen:!0,...s}}),u===Ne.ModalType.CONFIRM?new Promise(d=>{const h=Lm.pipe(M1(f=>{const g=f.list.find(x=>x.id===c);return g!==void 0&&!g.isOpen})).subscribe(f=>{var x;const g=f.list.find(v=>v.id===c);if(g){const v=g.closeReason===Ne.ModalCloseReason.CONFIRMED,b=we.entries(((x=g.views)==null?void 0:x.toggles)||{}).reduce((y,k)=>({...y,[k[0]]:k[1].value}),{});a({type:"REMOVE_MODAL",payload:c}),h.unsubscribe(),d({confirmed:v,options:b})}})}):{confirmed:!1}},[a]),setTabs:L.useCallback(s=>{a({type:"SET_TABS",payload:s})},[a]),setI18nCurrent:L.useCallback(s=>{a({type:"SET_I18N_CURRENT",payload:s})},[a]),setTabContent:L.useCallback(async s=>(a({type:"SET_TAB_CONTENT",payload:s}),s),[a])}}}function Fm(){const e=L.useContext(nl);if(!e)throw new Error("useModals must be used within a ReducerAdapterProvider");const{state:t,dispatch:r}=e;return{modals:t.modals.list,closeModal:L.useCallback(n=>{r({type:"CLOSE_MODAL",payload:n})},[r]),editModal:L.useCallback(n=>{r({type:"EDIT_MODAL",payload:n})},[r]),removeModal:L.useCallback(n=>{r({type:"REMOVE_MODAL",payload:n})},[r])}}const Bm=L.createContext(void 0),nu={i18n:{keys:{},userLang:{primary:"",supported:[]}},i18nFileFetched:!1},zm={tr_key:"__t"},{tr_key:So}=zm,F1={buildPathFullObject:e=>`${So}.${e}`,getKeyValueFromCustom:(e,t)=>we.get(e,`${So}.${t}.key`),getDefaultValueFromCustom:(e,t)=>we.get(e,`${So}.${t}.default`),getFullObject:(e,t)=>we.get(e,`${So}.${t}`)},Hm=L.memo(({children:e,isI18nEnabled:t,onI18nChange:r})=>{const n=On({permissive:!0}),[i,a]=L.useState(nu),o=L.useRef(!1),{i18n:s}=i,u=(y,k,C)=>{let I=1,w=y;for(;s.keys[w];)w=`${y}-${I}`,I++;const m={default:C};k.forEach(({lang:P,value:V})=>{P&&we.set(m,P,V)});const T={keys:{...s.keys,[y]:m},userLang:s.userLang};a(P=>({...P,i18n:T}))},c=()=>{const y=new window.Event("i18n:ready");window.dispatchEvent(y)},d=L.useCallback(we.debounce((y,k,C,I=!1)=>{a(w=>{const{keys:m,userLang:T}=w.i18n;if(m[y]&&k){const P={...m,[y]:{...m[y],[k]:C}};return o.current=I,{...w,i18n:{keys:P,userLang:T}}}return w})},300),[]),h=L.useCallback(we.debounce((y,k)=>{a(C=>{const{keys:I,userLang:w}=we.cloneDeep(C.i18n);return I[y]&&k&&we.set(I,`${y}.default`,k),{...C,i18n:{keys:I,userLang:w}}})},300),[]),f=y=>{y&&a(k=>({...k,i18n:{...k.i18n,userLang:y}}))},g=L.useCallback((y,k)=>{const{keys:C,userLang:I}=s,m={keys:Object.entries(C).reduce((T,[P,V])=>{const O={...V};return y.isocode in O&&(O[k.isocode]=O[y.isocode],delete O[y.isocode]),T[P]=O,T},{}),userLang:I};a(T=>({...T,i18n:m}))},[s]),x=L.useCallback(y=>{const{keys:k,userLang:C}=s,w={keys:Object.entries(k).reduce((m,[T,P])=>{const V={...P};return y.isocode in V&&delete V[y.isocode],m[T]=V,m},{}),userLang:C};a(m=>({...m,i18n:w}))},[s]),v=y=>{const k=[];return Object.keys(s.keys).forEach(I=>{const w=we.get(s,`keys.${I}.${y}`,we.get(s,`keys.${I}.default`,""));k.push({key:I,value:w})}),k},b=L.useCallback(we.debounce(y=>{a(k=>{const{keys:C,userLang:I}=k.i18n,w={...C};return delete w[y],{...k,i18n:{userLang:I,keys:w}}})},300),[]);return L.useEffect(()=>{(async()=>{if(!t){a(k=>({...k,i18nFileFetched:!0})),c();return}try{const k=await((n==null?void 0:n.fetchI18nFile)||Im)();a(C=>({...C,i18n:{keys:we.get(k,"keys",nu.i18n.keys),userLang:we.get(k,"userLang",nu.i18n.userLang)}}))}catch{}finally{a(k=>({...k,i18nFileFetched:!0})),c()}})()},[t,n==null?void 0:n.fetchI18nFile]),L.useEffect(()=>{const y=Ne.i18nSubject.pipe(V1(({action:k,payload:C})=>{if(k==="set_content"){const I={...s,keys:{...s.keys,...C}};a(w=>({...w,i18n:I}))}if(k==="set_locale_state"){const I={...s,...C};a(w=>({...w,i18n:I}))}})).subscribe();return()=>y.unsubscribe()},[s]),L.useEffect(()=>{i.i18nFileFetched&&(r==null||r(i.i18n))},[i]),_.jsx(Bm.Provider,{value:{i18n:i.i18n,createKey:u,updateKey:d,removeKey:b,editLanguageKeys:g,updateKeyDefault:h,deleteLanguageKeys:x,getI18nAsKeyValues:v,setUserLangSettings:f,shouldRecompute:o},children:e})});function Rn(){const e=L.useContext(Bm);if(e===void 0)throw new Error("useI18n must be used within a I18nProviderContext");return e}const Wm=L.createContext(void 0),Um=L.createContext(void 0),B1=e=>Ne.getSupportedLanguages(e),$m=({children:e,getSupportedLanguages:t=B1,i18nCurrent:r="",activeTabPath:n="",flagsForActiveTab:i})=>{const{isInsideStudio:a}=Ne.useStudioContext();return a?_.jsx(H1,{getSupportedLanguages:t,i18nCurrent:r,activeTabPath:n,flagsForActiveTab:i,children:e}):_.jsx(z1,{getSupportedLanguages:t,children:e})},z1=({children:e,getSupportedLanguages:t})=>{const{state:{currentLang:r},actions:n}=Ne.useStateObject({currentLang:""}),{actions:i}=Ne.useDsRendererAdapter(`${Ne.QODLY_NAMESPACE}:${Ne.USER_LANGUAGE_DATASOURCE_ID}`),{i18n:{userLang:{primary:a,supported:o}}}=Rn(),{isInsideStudio:s}=Ne.useStudioContext(),[u,c]=L.useState([]),{loaded:d}=Ne.useDsChangeRenderer({datasourceId:`${Ne.QODLY_NAMESPACE}:${Ne.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:!0,onChange:v=>{if(!v)return;const{selected:b}=v;b&&b.isocode&&(n.setCurrentLang(b.isocode),f(b))}}),h=(v,b)=>{i.setProperty(v,b)},f=v=>{localStorage.setItem("i18n.selected",JSON.stringify(v))},g=()=>{const v=localStorage.getItem("i18n.selected");return v?JSON.parse(v):null},x=()=>navigator.language;return L.useEffect(()=>{t(s).then(v=>{c(v)})},[s]),L.useEffect(()=>{if(d&&o){const v=o.map(({isocode:b})=>u.find(y=>y.isocode===b)).filter(Boolean);h("supported",v)}},[o,d]),L.useEffect(()=>{if(d){const v=g();if(v){h("selected",v);return}const b=x();if(b){const y=o.find(k=>k.isocode===b);if(y){h("selected",y);return}}if(a){const y=o.find(k=>k.isocode===a);y&&h("selected",y)}}},[d,o,a]),_.jsx(Um.Provider,{value:{selected:r,supported:u},children:e})},H1=L.memo(({children:e,getSupportedLanguages:t,i18nCurrent:r,flagsForActiveTab:n})=>{const{state:{supported:i},actions:a}=Ne.useStateObject({supported:[]}),{i18n:{userLang:{primary:o,supported:s}}}=Rn(),{isInsideStudio:u}=Ne.useStudioContext(),c=r&&s.find(f=>f.isocode===r)?r:"",[d,h]=L.useState(c);return L.useEffect(()=>{n!=null&&n.enabled&&h("")},[n==null?void 0:n.enabled]),L.useEffect(()=>{h(c)},[c]),Ne.useDsChangeRenderer({datasourceId:`${Ne.QODLY_NAMESPACE}:${Ne.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:n==null?void 0:n.enabled,onChange:f=>{if(!f)return;const{selected:g}=f;g&&g.isocode&&(h(g.isocode),localStorage.setItem("i18n.selected",g.isocode))}}),L.useEffect(()=>{t(u).then(f=>{a.setSupported(f)})},[u]),_.jsx(Wm.Provider,{value:{primary:o,selected:d||c,supported:i,userLangagues:s},children:e})});function qm(){const{isInsideStudio:e}=Ne.useStudioContext(),t=L.useContext(Wm),r=L.useContext(Um),n=e?t:r;if(n===void 0)throw new Error("useLocalization must be used within a LocalizationContext");return n}const Km=L.createContext(void 0),Gm=({children:e})=>{const{state:{allSupportedLanguages:t,selectedLanguage:r,languageKeys:n,addFirstLanguage:i},actions:a}=Ne.useStateObject({allSupportedLanguages:[],selectedLanguage:void 0,languageKeys:[],addFirstLanguage:!1}),{supported:o}=qm(),{i18n:s,setUserLangSettings:u,updateKey:c,removeKey:d,createKey:h}=Rn(),f=(x,v)=>Object.keys(v).reduce((k,C)=>{if(v[C]){const I=v[C];if(Object.hasOwn(I,x)){const w=v[C][x];k.push({key:C,value:w,isDefault:!1})}else{const w=v[C].default;k.push({key:C,value:w,isDefault:!0})}}return k},[]),g=(x,v)=>{if(r){const{isocode:b}=r;c(x,b,v,!0);const y=structuredClone(s.keys),k=we.set({...y},`${x}.${b}`,v),C=f(b,k);a.setLanguageKeys(C)}};return L.useEffect(()=>{a.setAllSupportedLanguages(o||[])},[o]),L.useEffect(()=>{if(r){const{isocode:x}=r,v=f(x,s.keys);a.setLanguageKeys(v)}},[s,r]),_.jsx(Km.Provider,{value:{userLanguages:s.userLang,languageKeys:n,selectedLanguage:r,allSupportedLanguages:t,addFirstLanguage:i,isPrimary:s.userLang.primary===(r==null?void 0:r.isocode),removeKey:d,addNewKey:h,setAddFirstLanguage:a.setAddFirstLanguage,setUserLangSettings:u,setSelectedLanguage:x=>a.setSelectedLanguage(x),setLanguageKeyValue:g},children:e})},Ln=()=>{const e=L.useContext(Km);if(e===void 0)throw new Error("useLocalizationEditor must be used within a LocalizationEditorProvider");return e};var be={};(function(){try{const e=document.createElement("style");e.setAttribute("data-vite-dev-id","ui-components.css"),e.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}:root:not(#\\#),:host:not(#\\#){--color-green-500:oklch(72.3% .219 149.579);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-500:oklch(65.6% .241 354.308);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.65rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--color-grey-50:var(--ws-grey-50);--color-grey-100:var(--ws-grey-100);--color-grey-200:var(--ws-grey-200);--color-grey-300:var(--ws-grey-300);--color-grey-400:var(--ws-grey-400);--color-grey-500:var(--ws-grey-500);--color-grey-600:var(--ws-grey-600);--color-grey-700:var(--ws-grey-700);--color-grey-800:var(--ws-grey-800);--color-primary-500:var(--ws-primary-500);--color-primary-600:var(--ws-primary-600);--color-primary-700:var(--ws-primary-700);--color-positive-200:var(--ws-positive-200);--color-positive-400:var(--ws-positive-400);--color-positive-500:var(--ws-positive-500);--color-positive-600:var(--ws-positive-600);--color-warning-500:var(--ws-warning-500);--color-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--text-xxs:.55rem;--text-s:.75rem;--min-height-6:1.5rem;--color-canvas-default:var(--ws-bg-default);--color-canvas-subtle:var(--ws-grey-100);--color-panel:var(--ws-grey-300);--color-panel-subtle:var(--ws-grey-200);--color-card:var(--ws-card-bg);--color-card-border:var(--ws-card-border);--color-body:var(--ws-bg-foreground);--color-body-bg:var(--ws-bg-default);--color-body-light:var(--ws-grey-100);--color-muted:var(--ws-text-muted);--color-neutral:var(--ws-grey-200);--color-button-text:var(--ws-button-fg);--color-primary:var(--ws-primary-default);--color-primary-hover:var(--ws-primary-hover);--color-primary-light:var(--ws-primary-light);--color-primary-dark:var(--ws-primary-dark);--color-positive:var(--ws-positive-500);--color-positive-hover:var(--ws-positive-hover);--color-positive-text:var(--ws-positive-text);--color-positive-bg:var(--ws-positive-bg);--color-positive-light:var(--ws-positive-light);--color-positive-dark:var(--ws-positive-dark);--color-negative:var(--ws-negative-500);--color-negative-hover:var(--ws-negative-hover);--color-negative-text:var(--ws-negative-text);--color-negative-bg:var(--ws-negative-bg);--color-negative-light:var(--ws-negative-light);--color-negative-dark:var(--ws-negative-dark);--color-warning:var(--ws-warning-500);--color-warning-hover:var(--ws-warning-hover);--color-warning-text:var(--ws-warning-text);--color-warning-bg:var(--ws-warning-bg);--color-warning-light:var(--ws-warning-light);--color-warning-dark:var(--ws-warning-dark);--color-input-bg:var(--ws-input-bg);--color-input-border:var(--ws-input-border);--color-input-text:var(--ws-input-text);--color-input-placeholder:var(--ws-input-placeholder);--color-input-focus-border:var(--ws-input-focus-border);--color-select-border:var(--ws-select-border);--color-select-text:var(--ws-select-text);--color-select-list-bg:var(--ws-select-list-bg);--color-input-option-hover-bg:var(--ws-input-option-hover-bg);--color-input-option-active-bg:var(--ws-input-option-active-bg);--color-input-option-active-text:var(--ws-input-option-active-text);--color-input-error-border:var(--ws-input-error-border);--color-input-error-bg:var(--ws-input-error-bg);--color-input-warning-border:var(--ws-input-warning-border);--color-input-warning-bg:var(--ws-input-warning-bg);--color-input-message-bg:var(--ws-input-message-bg);--color-input-message-text:var(--ws-input-message-text);--color-input-disable:var(--ws-disable-input);--color-inactive-text:var(--ws-inactive-text);--color-panel-0:var(--ws-panel-0);--color-panel-1:var(--ws-panel-1);--color-panel-2:var(--ws-panel-2);--color-panel-3:var(--ws-panel-3);--color-panel-4:var(--ws-panel-4);--color-panel-5:var(--ws-panel-5);--color-panel-border-subtle:var(--ws-panel-border-subtle);--color-tab-bg-default:var(--ws-tab-bg-default);--color-tab-border:var(--ws-tab-border);--color-tab-active-bg:var(--ws-tab-active-bg);--color-tab-active-fg:var(--ws-tab-active-fg);--color-tab-inactive-bg:var(--ws-tab-inactive-bg);--color-tab-inactive-fg:var(--ws-tab-inactive-fg);--color-panel-border:var(--ws-panel-border)}.pointer-events-auto:not(#\\#){pointer-events:auto}.pointer-events-none:not(#\\#){pointer-events:none}.collapse:not(#\\#){visibility:collapse}.visible:not(#\\#){visibility:visible}.sr-only:not(#\\#){clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute:not(#\\#){position:absolute}.fixed:not(#\\#){position:fixed}.relative:not(#\\#){position:relative}.static:not(#\\#){position:static}.inset-0:not(#\\#){inset:calc(var(--spacing)*0)}.-top-1\\/5:not(#\\#){top:-20%}.top-0:not(#\\#){top:calc(var(--spacing)*0)}.top-1:not(#\\#){top:calc(var(--spacing)*1)}.top-full:not(#\\#){top:100%}.-right-12:not(#\\#){right:calc(var(--spacing)*-12)}.right-0:not(#\\#){right:calc(var(--spacing)*0)}.right-1:not(#\\#){right:calc(var(--spacing)*1)}.bottom-0:not(#\\#){bottom:calc(var(--spacing)*0)}.bottom-full:not(#\\#){bottom:100%}.left-0:not(#\\#){left:calc(var(--spacing)*0)}.left-0\\.5:not(#\\#){left:calc(var(--spacing)*.5)}.left-1\\/2:not(#\\#){left:50%}.left-3\\.5:not(#\\#){left:calc(var(--spacing)*3.5)}.left-4:not(#\\#){left:calc(var(--spacing)*4)}.left-4\\.5:not(#\\#){left:calc(var(--spacing)*4.5)}.left-5\\.5:not(#\\#){left:calc(var(--spacing)*5.5)}.left-full:not(#\\#){left:100%}.z-1:not(#\\#){z-index:1}.z-2:not(#\\#){z-index:2}.z-10:not(#\\#){z-index:10}.z-40:not(#\\#){z-index:40}.z-50:not(#\\#){z-index:50}.z-60:not(#\\#){z-index:60}.z-9999:not(#\\#){z-index:9999}.container:not(#\\#){width:100%}@media(min-width:40rem){.container:not(#\\#){max-width:40rem}}@media(min-width:48rem){.container:not(#\\#){max-width:48rem}}@media(min-width:64rem){.container:not(#\\#){max-width:64rem}}@media(min-width:80rem){.container:not(#\\#){max-width:80rem}}@media(min-width:96rem){.container:not(#\\#){max-width:96rem}}.m-0:not(#\\#){margin:calc(var(--spacing)*0)}.m-0\\.5:not(#\\#){margin:calc(var(--spacing)*.5)}.m-px:not(#\\#){margin:1px}.mx-1:not(#\\#){margin-inline:calc(var(--spacing)*1)}.-my-1:not(#\\#){margin-block:calc(var(--spacing)*-1)}.mt-1:not(#\\#){margin-top:calc(var(--spacing)*1)}.mt-2:not(#\\#){margin-top:calc(var(--spacing)*2)}.mt-4:not(#\\#){margin-top:calc(var(--spacing)*4)}.mt-8:not(#\\#){margin-top:calc(var(--spacing)*8)}.mr-1:not(#\\#){margin-right:calc(var(--spacing)*1)}.mr-2:not(#\\#){margin-right:calc(var(--spacing)*2)}.mb-1:not(#\\#){margin-bottom:calc(var(--spacing)*1)}.mb-2:not(#\\#){margin-bottom:calc(var(--spacing)*2)}.mb-4:not(#\\#){margin-bottom:calc(var(--spacing)*4)}.ml-1:not(#\\#){margin-left:calc(var(--spacing)*1)}.ml-1\\.5:not(#\\#){margin-left:calc(var(--spacing)*1.5)}.ml-2:not(#\\#){margin-left:calc(var(--spacing)*2)}.box-border:not(#\\#){box-sizing:border-box}.block:not(#\\#){display:block}.flex:not(#\\#){display:flex}.grid:not(#\\#){display:grid}.hidden:not(#\\#){display:none}.inline:not(#\\#){display:inline}.inline-block:not(#\\#){display:inline-block}.inline-flex:not(#\\#){display:inline-flex}.table:not(#\\#){display:table}.size-1\\.5:not(#\\#){width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-1\\.75:not(#\\#){width:calc(var(--spacing)*1.75);height:calc(var(--spacing)*1.75)}.size-2:not(#\\#){width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\\.5:not(#\\#){width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3:not(#\\#){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-3\\.25:not(#\\#){width:calc(var(--spacing)*3.25);height:calc(var(--spacing)*3.25)}.size-4:not(#\\#){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5:not(#\\#){width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6:not(#\\#){width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-fit:not(#\\#){width:fit-content;height:fit-content}.h-2:not(#\\#){height:calc(var(--spacing)*2)}.h-3:not(#\\#){height:calc(var(--spacing)*3)}.h-3\\.5:not(#\\#){height:calc(var(--spacing)*3.5)}.h-4:not(#\\#){height:calc(var(--spacing)*4)}.h-4\\.5:not(#\\#){height:calc(var(--spacing)*4.5)}.h-5:not(#\\#){height:calc(var(--spacing)*5)}.h-5\\.5:not(#\\#){height:calc(var(--spacing)*5.5)}.h-6:not(#\\#){height:calc(var(--spacing)*6)}.h-7:not(#\\#){height:calc(var(--spacing)*7)}.h-7\\.5:not(#\\#){height:calc(var(--spacing)*7.5)}.h-8:not(#\\#){height:calc(var(--spacing)*8)}.h-10:not(#\\#){height:calc(var(--spacing)*10)}.h-14:not(#\\#){height:calc(var(--spacing)*14)}.h-20:not(#\\#){height:calc(var(--spacing)*20)}.h-100:not(#\\#){height:calc(var(--spacing)*100)}.h-\\[120px\\]:not(#\\#){height:120px}.h-fit:not(#\\#){height:fit-content}.h-full:not(#\\#){height:100%}.max-h-\\[400px\\]:not(#\\#){max-height:400px}.max-h-full:not(#\\#){max-height:100%}.min-h-5:not(#\\#){min-height:calc(var(--spacing)*5)}.min-h-6:not(#\\#){min-height:var(--min-height-6)}.min-h-7:not(#\\#){min-height:calc(var(--spacing)*7)}.min-h-\\[100px\\]:not(#\\#){min-height:100px}.min-h-fit:not(#\\#){min-height:fit-content}.min-h-screen:not(#\\#){min-height:100vh}.w-0\\.5:not(#\\#){width:calc(var(--spacing)*.5)}.w-1\\/2:not(#\\#){width:50%}.w-3:not(#\\#){width:calc(var(--spacing)*3)}.w-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5)}.w-4:not(#\\#){width:calc(var(--spacing)*4)}.w-5:not(#\\#){width:calc(var(--spacing)*5)}.w-6:not(#\\#){width:calc(var(--spacing)*6)}.w-7:not(#\\#){width:calc(var(--spacing)*7)}.w-8:not(#\\#){width:calc(var(--spacing)*8)}.w-9:not(#\\#){width:calc(var(--spacing)*9)}.w-11:not(#\\#){width:calc(var(--spacing)*11)}.w-16:not(#\\#){width:calc(var(--spacing)*16)}.w-20:not(#\\#){width:calc(var(--spacing)*20)}.w-32:not(#\\#){width:calc(var(--spacing)*32)}.w-48:not(#\\#){width:calc(var(--spacing)*48)}.w-52:not(#\\#){width:calc(var(--spacing)*52)}.w-60:not(#\\#){width:calc(var(--spacing)*60)}.w-64:not(#\\#){width:calc(var(--spacing)*64)}.w-80:not(#\\#){width:calc(var(--spacing)*80)}.w-96:not(#\\#){width:calc(var(--spacing)*96)}.w-fit:not(#\\#){width:fit-content}.w-full:not(#\\#){width:100%}.w-px:not(#\\#){width:1px}.max-w-100:not(#\\#){max-width:calc(var(--spacing)*100)}.max-w-\\[300px\\]:not(#\\#){max-width:300px}.max-w-md:not(#\\#){max-width:var(--container-md)}.min-w-0:not(#\\#){min-width:calc(var(--spacing)*0)}.min-w-3\\.5:not(#\\#){min-width:calc(var(--spacing)*3.5)}.min-w-4\\.5:not(#\\#){min-width:calc(var(--spacing)*4.5)}.min-w-5:not(#\\#){min-width:calc(var(--spacing)*5)}.min-w-7\\.5:not(#\\#){min-width:calc(var(--spacing)*7.5)}.min-w-50:not(#\\#){min-width:calc(var(--spacing)*50)}.min-w-\\[150px\\]:not(#\\#){min-width:150px}.min-w-fit:not(#\\#){min-width:fit-content}.min-w-full:not(#\\#){min-width:100%}.flex-1:not(#\\#){flex:1}.flex-3:not(#\\#){flex:3}.flex-none:not(#\\#){flex:none}.shrink-0:not(#\\#){flex-shrink:0}.origin-top-right:not(#\\#){transform-origin:100% 0}.-translate-x-1\\/2:not(#\\#){--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full:not(#\\#){--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0:not(#\\#){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full:not(#\\#){--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full:not(#\\#){--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0:not(#\\#){--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-1\\/2:not(#\\#){--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full:not(#\\#){--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-0:not(#\\#){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95:not(#\\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100:not(#\\#){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110:not(#\\#){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-45:not(#\\#){rotate:-45deg}.rotate-45:not(#\\#){rotate:45deg}.rotate-90:not(#\\#){rotate:90deg}.rotate-180:not(#\\#){rotate:180deg}.transform:not(#\\#){transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce:not(#\\#){animation:var(--animate-bounce)}.cursor-auto:not(#\\#){cursor:auto}.cursor-not-allowed:not(#\\#){cursor:not-allowed}.cursor-pointer:not(#\\#){cursor:pointer}.cursor-se-resize:not(#\\#){cursor:se-resize}.resize:not(#\\#){resize:both}.resize-none:not(#\\#){resize:none}.list-disc:not(#\\#){list-style-type:disc}.appearance-none:not(#\\#){-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2:not(#\\#){grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3:not(#\\#){grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col:not(#\\#){flex-direction:column}.flex-row:not(#\\#){flex-direction:row}.flex-wrap:not(#\\#){flex-wrap:wrap}.place-content-center:not(#\\#){place-content:center}.place-items-center:not(#\\#){place-items:center}.items-center:not(#\\#){align-items:center}.items-end:not(#\\#){align-items:flex-end}.items-start:not(#\\#){align-items:flex-start}.justify-around:not(#\\#){justify-content:space-around}.justify-between:not(#\\#){justify-content:space-between}.justify-center:not(#\\#){justify-content:center}.gap-0\\.5:not(#\\#){gap:calc(var(--spacing)*.5)}.gap-1:not(#\\#){gap:calc(var(--spacing)*1)}.gap-1\\.5:not(#\\#){gap:calc(var(--spacing)*1.5)}.gap-2:not(#\\#){gap:calc(var(--spacing)*2)}.gap-2\\.5:not(#\\#){gap:calc(var(--spacing)*2.5)}.gap-3:not(#\\#){gap:calc(var(--spacing)*3)}.gap-4:not(#\\#){gap:calc(var(--spacing)*4)}.gap-6:not(#\\#){gap:calc(var(--spacing)*6)}.gap-8:not(#\\#){gap:calc(var(--spacing)*8)}.gap-10:not(#\\#){gap:calc(var(--spacing)*10)}.gap-14:not(#\\#){gap:calc(var(--spacing)*14)}:where(.space-y-1>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1:not(#\\#){column-gap:calc(var(--spacing)*1)}.gap-x-2:not(#\\#){column-gap:calc(var(--spacing)*2)}.gap-x-3:not(#\\#){column-gap:calc(var(--spacing)*3)}.gap-x-4:not(#\\#){column-gap:calc(var(--spacing)*4)}.gap-x-20:not(#\\#){column-gap:calc(var(--spacing)*20)}:where(.space-x-4>:not(:last-child)):not(#\\#){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.truncate:not(#\\#){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden:not(#\\#){overflow:hidden}.overflow-y-auto:not(#\\#){overflow-y:auto}.rounded:not(#\\#){border-radius:.25rem}.rounded-full:not(#\\#){border-radius:3.40282e38px}.rounded-lg:not(#\\#){border-radius:var(--radius-lg)}.rounded-md:not(#\\#){border-radius:var(--radius-md)}.rounded-xs:not(#\\#){border-radius:var(--radius-xs)}.rounded-t:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-none:not(#\\#){border-top-left-radius:0;border-top-right-radius:0}.rounded-b-none:not(#\\#){border-bottom-right-radius:0;border-bottom-left-radius:0}.border:not(#\\#){border-style:var(--tw-border-style);border-width:1px}.border-0:not(#\\#){border-style:var(--tw-border-style);border-width:0}.border-2:not(#\\#){border-style:var(--tw-border-style);border-width:2px}.border-px:not(#\\#){border-width:1px}.divide:not(#\\#){border-width:.5px}.border-t:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:0}.border-r:not(#\\#){border-right-style:var(--tw-border-style);border-right-width:1px}.border-b:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-dashed:not(#\\#){--tw-border-style:dashed;border-style:dashed}.border-body:not(#\\#){border-color:var(--color-body)}.border-body-light:not(#\\#){border-color:var(--color-body-light)}.border-canvas-default:not(#\\#){border-color:var(--color-canvas-default)}.border-card-border:not(#\\#){border-color:var(--color-card-border)}.border-grey-100:not(#\\#){border-color:var(--color-grey-100)}.border-grey-200:not(#\\#){border-color:var(--color-grey-200)}.border-input-border:not(#\\#){border-color:var(--color-input-border)}.border-input-disable:not(#\\#){border-color:var(--color-input-disable)}.border-input-error-border:not(#\\#){border-color:var(--color-input-error-border)}.border-input-focus-border:not(#\\#){border-color:var(--color-input-focus-border)}.border-input-warning-border:not(#\\#){border-color:var(--color-input-warning-border)}.border-negative:not(#\\#){border-color:var(--color-negative)}.border-negative-500:not(#\\#){border-color:var(--color-negative-500)}.border-neutral:not(#\\#){border-color:var(--color-neutral)}.border-panel:not(#\\#){border-color:var(--color-panel)}.border-panel-border:not(#\\#){border-color:var(--color-panel-border)}.border-panel-border-subtle:not(#\\#){border-color:var(--color-panel-border-subtle)}.border-panel-subtle:not(#\\#){border-color:var(--color-panel-subtle)}.border-positive:not(#\\#){border-color:var(--color-positive)}.border-positive-text:not(#\\#){border-color:var(--color-positive-text)}.border-primary:not(#\\#){border-color:var(--color-primary)}.border-primary-700:not(#\\#){border-color:var(--color-primary-700)}.border-primary-hover:not(#\\#){border-color:var(--color-primary-hover)}.border-select-border:not(#\\#){border-color:var(--color-select-border)}.border-tab-border:not(#\\#){border-color:var(--color-tab-border)}.border-transparent:not(#\\#){border-color:#0000}.border-warning:not(#\\#){border-color:var(--color-warning)}.border-warning-bg:not(#\\#){border-color:var(--color-warning-bg)}.border-white:not(#\\#){border-color:var(--color-white)}.bg-blue-500:not(#\\#){background-color:var(--color-blue-500)}.bg-body:not(#\\#){background-color:var(--color-body)}.bg-body-bg:not(#\\#){background-color:var(--color-body-bg)}.bg-canvas-default:not(#\\#){background-color:var(--color-canvas-default)}.bg-canvas-subtle:not(#\\#){background-color:var(--color-canvas-subtle)}.bg-card:not(#\\#){background-color:var(--color-card)}.bg-gray-100:not(#\\#){background-color:var(--color-gray-100)}.bg-grey-50:not(#\\#){background-color:var(--color-grey-50)}.bg-grey-200:not(#\\#){background-color:var(--color-grey-200)}.bg-grey-300:not(#\\#){background-color:var(--color-grey-300)}.bg-grey-400:not(#\\#){background-color:var(--color-grey-400)}.bg-grey-500:not(#\\#){background-color:var(--color-grey-500)}.bg-grey-600:not(#\\#){background-color:var(--color-grey-600)}.bg-grey-700:not(#\\#){background-color:var(--color-grey-700)}.bg-grey-800:not(#\\#){background-color:var(--color-grey-800)}.bg-input-bg:not(#\\#){background-color:var(--color-input-bg)}.bg-input-border:not(#\\#){background-color:var(--color-input-border)}.bg-input-disable:not(#\\#){background-color:var(--color-input-disable)}.bg-input-error-bg:not(#\\#){background-color:var(--color-input-error-bg)}.bg-input-message-bg:not(#\\#){background-color:var(--color-input-message-bg)}.bg-input-option-active-bg:not(#\\#){background-color:var(--color-input-option-active-bg)}.bg-input-option-hover-bg:not(#\\#){background-color:var(--color-input-option-hover-bg)}.bg-input-text:not(#\\#){background-color:var(--color-input-text)}.bg-input-warning-bg:not(#\\#){background-color:var(--color-input-warning-bg)}.bg-negative:not(#\\#){background-color:var(--color-negative)}.bg-negative-400:not(#\\#){background-color:var(--color-negative-400)}.bg-negative-500:not(#\\#){background-color:var(--color-negative-500)}.bg-negative-bg:not(#\\#){background-color:var(--color-negative-bg)}.bg-negative-hover:not(#\\#){background-color:var(--color-negative-hover)}.bg-negative-light:not(#\\#){background-color:var(--color-negative-light)}.bg-panel:not(#\\#){background-color:var(--color-panel)}.bg-panel-0:not(#\\#){background-color:var(--color-panel-0)}.bg-panel-1:not(#\\#){background-color:var(--color-panel-1)}.bg-panel-2:not(#\\#){background-color:var(--color-panel-2)}.bg-panel-3:not(#\\#){background-color:var(--color-panel-3)}.bg-panel-4:not(#\\#){background-color:var(--color-panel-4)}.bg-panel-5:not(#\\#){background-color:var(--color-panel-5)}.bg-panel-subtle:not(#\\#){background-color:var(--color-panel-subtle)}.bg-positive:not(#\\#){background-color:var(--color-positive)}.bg-positive-200:not(#\\#){background-color:var(--color-positive-200)}.bg-positive-500:not(#\\#){background-color:var(--color-positive-500)}.bg-positive-bg:not(#\\#){background-color:var(--color-positive-bg)}.bg-positive-hover:not(#\\#){background-color:var(--color-positive-hover)}.bg-positive-light:not(#\\#){background-color:var(--color-positive-light)}.bg-primary:not(#\\#){background-color:var(--color-primary)}.bg-primary-500:not(#\\#){background-color:var(--color-primary-500)}.bg-primary-600:not(#\\#){background-color:var(--color-primary-600)}.bg-primary-hover:not(#\\#){background-color:var(--color-primary-hover)}.bg-primary-light:not(#\\#){background-color:var(--color-primary-light)}.bg-primary\\/30:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/30:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.bg-select-list-bg:not(#\\#){background-color:var(--color-select-list-bg)}.bg-tab-active-bg:not(#\\#){background-color:var(--color-tab-active-bg)}.bg-tab-bg-default:not(#\\#){background-color:var(--color-tab-bg-default)}.bg-tab-inactive-bg:not(#\\#){background-color:var(--color-tab-inactive-bg)}.bg-transparent:not(#\\#){background-color:#0000}.bg-warning:not(#\\#){background-color:var(--color-warning)}.bg-warning-500:not(#\\#){background-color:var(--color-warning-500)}.bg-warning-bg:not(#\\#){background-color:var(--color-warning-bg)}.bg-warning-hover:not(#\\#){background-color:var(--color-warning-hover)}.bg-warning-light:not(#\\#){background-color:var(--color-warning-light)}.bg-white:not(#\\#){background-color:var(--color-white)}.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right in oklab}}.bg-linear-to-r:not(#\\#){background-image:linear-gradient(var(--tw-gradient-stops))}.from-green-500:not(#\\#){--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-primary:not(#\\#){--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-500:not(#\\#){--tw-gradient-to:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500:not(#\\#){--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.stroke-current:not(#\\#){stroke:currentColor}.p-0:not(#\\#){padding:calc(var(--spacing)*0)}.p-0\\.5:not(#\\#){padding:calc(var(--spacing)*.5)}.p-1:not(#\\#){padding:calc(var(--spacing)*1)}.p-1\\!{padding:calc(var(--spacing)*1)!important}.p-1\\.5:not(#\\#){padding:calc(var(--spacing)*1.5)}.p-2:not(#\\#){padding:calc(var(--spacing)*2)}.p-2\\.5:not(#\\#){padding:calc(var(--spacing)*2.5)}.p-3:not(#\\#){padding:calc(var(--spacing)*3)}.p-4:not(#\\#){padding:calc(var(--spacing)*4)}.p-6:not(#\\#){padding:calc(var(--spacing)*6)}.p-8:not(#\\#){padding:calc(var(--spacing)*8)}.p-10:not(#\\#){padding:calc(var(--spacing)*10)}.p-50:not(#\\#){padding:calc(var(--spacing)*50)}.p-px:not(#\\#){padding:1px}.px-0\\.5:not(#\\#){padding-inline:calc(var(--spacing)*.5)}.px-1:not(#\\#){padding-inline:calc(var(--spacing)*1)}.px-1\\.5:not(#\\#){padding-inline:calc(var(--spacing)*1.5)}.px-2:not(#\\#){padding-inline:calc(var(--spacing)*2)}.px-3:not(#\\#){padding-inline:calc(var(--spacing)*3)}.px-4:not(#\\#){padding-inline:calc(var(--spacing)*4)}.px-6:not(#\\#){padding-inline:calc(var(--spacing)*6)}.px-7:not(#\\#){padding-inline:calc(var(--spacing)*7)}.px-8:not(#\\#){padding-inline:calc(var(--spacing)*8)}.py-0\\.5:not(#\\#){padding-block:calc(var(--spacing)*.5)}.py-1:not(#\\#){padding-block:calc(var(--spacing)*1)}.py-1\\.5:not(#\\#){padding-block:calc(var(--spacing)*1.5)}.py-2:not(#\\#){padding-block:calc(var(--spacing)*2)}.py-3:not(#\\#){padding-block:calc(var(--spacing)*3)}.pt-0\\.5:not(#\\#){padding-top:calc(var(--spacing)*.5)}.pt-1:not(#\\#){padding-top:calc(var(--spacing)*1)}.pt-1\\.5:not(#\\#){padding-top:calc(var(--spacing)*1.5)}.pt-2:not(#\\#){padding-top:calc(var(--spacing)*2)}.pl-1:not(#\\#){padding-left:calc(var(--spacing)*1)}.pl-4:not(#\\#){padding-left:calc(var(--spacing)*4)}.text-center:not(#\\#){text-align:center}.text-left:not(#\\#){text-align:left}.text-2xl:not(#\\#){font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl:not(#\\#){font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl:not(#\\#){font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl:not(#\\#){font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl:not(#\\#){font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-7xl:not(#\\#){font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.text-8xl:not(#\\#){font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.text-9xl:not(#\\#){font-size:var(--text-9xl);line-height:var(--tw-leading,var(--text-9xl--line-height))}.text-base:not(#\\#){font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg:not(#\\#){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm:not(#\\#){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl:not(#\\#){font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs:not(#\\#){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-s:not(#\\#){font-size:var(--text-s)}.text-xxs:not(#\\#){font-size:var(--text-xxs)}.leading-3:not(#\\#){--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-4:not(#\\#){--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5:not(#\\#){--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none:not(#\\#){--tw-leading:1;line-height:1}.font-bold:not(#\\#){--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium:not(#\\#){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold:not(#\\#){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin:not(#\\#){--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.whitespace-nowrap:not(#\\#){white-space:nowrap}.text-body:not(#\\#){color:var(--color-body)}.text-button-text:not(#\\#){color:var(--color-button-text)}.text-gray-50:not(#\\#){color:var(--color-gray-50)}.text-gray-400:not(#\\#){color:var(--color-gray-400)}.text-gray-500:not(#\\#){color:var(--color-gray-500)}.text-gray-800:not(#\\#){color:var(--color-gray-800)}.text-grey-100:not(#\\#){color:var(--color-grey-100)}.text-grey-200:not(#\\#){color:var(--color-grey-200)}.text-grey-300:not(#\\#){color:var(--color-grey-300)}.text-grey-700:not(#\\#){color:var(--color-grey-700)}.text-inactive-text:not(#\\#){color:var(--color-inactive-text)}.text-inherit:not(#\\#){color:inherit}.text-input-disable:not(#\\#){color:var(--color-input-disable)}.text-input-message-text:not(#\\#){color:var(--color-input-message-text)}.text-input-option-active-text:not(#\\#){color:var(--color-input-option-active-text)}.text-input-placeholder:not(#\\#){color:var(--color-input-placeholder)}.text-input-text:not(#\\#){color:var(--color-input-text)}.text-muted:not(#\\#){color:var(--color-muted)}.text-negative:not(#\\#){color:var(--color-negative)}.text-negative-500:not(#\\#){color:var(--color-negative-500)}.text-negative-dark:not(#\\#){color:var(--color-negative-dark)}.text-negative-text:not(#\\#){color:var(--color-negative-text)}.text-panel-subtle:not(#\\#){color:var(--color-panel-subtle)}.text-positive:not(#\\#){color:var(--color-positive)}.text-positive-500:not(#\\#){color:var(--color-positive-500)}.text-positive-600:not(#\\#){color:var(--color-positive-600)}.text-positive-dark:not(#\\#){color:var(--color-positive-dark)}.text-positive-text:not(#\\#),.text-positive-text\\/70:not(#\\#){color:var(--color-positive-text)}@supports (color:color-mix(in lab,red,red)){.text-positive-text\\/70:not(#\\#){color:color-mix(in oklab,var(--color-positive-text)70%,transparent)}}.text-primary:not(#\\#){color:var(--color-primary)}.text-primary-dark:not(#\\#){color:var(--color-primary-dark)}.text-primary-hover:not(#\\#){color:var(--color-primary-hover)}.text-select-text:not(#\\#){color:var(--color-select-text)}.text-tab-active-fg:not(#\\#){color:var(--color-tab-active-fg)}.text-tab-inactive-fg:not(#\\#){color:var(--color-tab-inactive-fg)}.text-warning:not(#\\#){color:var(--color-warning)}.text-warning-dark:not(#\\#){color:var(--color-warning-dark)}.text-warning-text:not(#\\#){color:var(--color-warning-text)}.capitalize:not(#\\#){text-transform:capitalize}.lowercase:not(#\\#){text-transform:lowercase}.uppercase:not(#\\#){text-transform:uppercase}.italic:not(#\\#){font-style:italic}.underline:not(#\\#){text-decoration-line:underline}.decoration-transparent:not(#\\#){text-decoration-color:#0000}.opacity-0:not(#\\#){opacity:0}.opacity-50:not(#\\#){opacity:.5}.opacity-60:not(#\\#){opacity:.6}.opacity-80:not(#\\#){opacity:.8}.opacity-100:not(#\\#){opacity:1}.shadow:not(#\\#){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner:not(#\\#){--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg:not(#\\#){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md:not(#\\#){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs:not(#\\#){--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-input-error-border:not(#\\#){--tw-ring-color:var(--color-input-error-border)}.ring-input-focus-border:not(#\\#){--tw-ring-color:var(--color-input-focus-border)}.ring-input-warning-border:not(#\\#){--tw-ring-color:var(--color-input-warning-border)}.ring-positive:not(#\\#){--tw-ring-color:var(--color-positive)}.outline-hidden:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.outline:not(#\\#),.outline-1:not(#\\#){outline-style:var(--tw-outline-style);outline-width:1px}.outline-s:not(#\\#){outline-width:.5px}.outline-xs:not(#\\#){outline-width:.3px}.outline-xxs:not(#\\#){outline-width:.1px}.outline-canvas-default:not(#\\#){outline-color:var(--color-canvas-default)}.outline-primary:not(#\\#){outline-color:var(--color-primary)}.blur:not(#\\#){--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter:not(#\\#){filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all:not(#\\#){transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity:not(#\\#){transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform:not(#\\#){transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150:not(#\\#){--tw-duration:.15s;transition-duration:.15s}.duration-200:not(#\\#){--tw-duration:.2s;transition-duration:.2s}.duration-300:not(#\\#){--tw-duration:.3s;transition-duration:.3s}.ease-in-out:not(#\\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out:not(#\\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-solid:not(#\\#){--tw-outline-style:solid;outline-style:solid}.select-none:not(#\\#){-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:flex:is(:where(.group):hover *):not(#\\#){display:flex}.group-hover\\:grid:is(:where(.group):hover *):not(#\\#){display:grid}.group-hover\\:border-body:is(:where(.group):hover *):not(#\\#){border-color:var(--color-body)}.group-hover\\:border-negative-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-negative-text)}.group-hover\\:border-positive-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-positive-text)}.group-hover\\:border-warning-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-warning-text)}.group-hover\\:bg-grey-400:is(:where(.group):hover *):not(#\\#){background-color:var(--color-grey-400)}.group-hover\\:bg-negative-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-hover)}.group-hover\\:bg-negative-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-light)}.group-hover\\:bg-positive-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-hover)}.group-hover\\:bg-positive-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-light)}.group-hover\\:bg-primary-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-hover)}.group-hover\\:bg-primary-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-light)}.group-hover\\:bg-warning-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-hover)}.group-hover\\:bg-warning-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-light)}.group-hover\\:opacity-100:is(:where(.group):hover *):not(#\\#){opacity:1}}.placeholder\\:text-sm:not(#\\#)::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.placeholder\\:text-xs:not(#\\#)::placeholder{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.placeholder\\:text-s:not(#\\#)::placeholder{font-size:var(--text-s)}.placeholder\\:text-input-placeholder:not(#\\#)::placeholder{color:var(--color-input-placeholder)}.placeholder\\:opacity-60:not(#\\#)::placeholder{opacity:.6}.first\\:bottom-full:first-child:not(#\\#){bottom:100%}.first\\:-ml-1\\.5:first-child:not(#\\#){margin-left:calc(var(--spacing)*-1.5)}.first\\:rounded-t:first-child:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.first\\:rounded-l:first-child:not(#\\#){border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.last\\:top-full:last-child:not(#\\#){top:100%}.last\\:-mr-1\\.5:last-child:not(#\\#){margin-right:calc(var(--spacing)*-1.5)}.last\\:rounded-r:last-child:not(#\\#){border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.last\\:rounded-b:last-child:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.only\\:top-full:only-child:not(#\\#){top:100%}.only\\:-mx-0\\.5:only-child:not(#\\#){margin-inline:calc(var(--spacing)*-.5)}.only\\:rounded:only-child:not(#\\#){border-radius:.25rem}.only\\:ring-1:only-child:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:border-input-error-border:focus-within:not(#\\#){border-color:var(--color-input-error-border)}.focus-within\\:border-input-focus-border:focus-within:not(#\\#){border-color:var(--color-input-focus-border)}.focus-within\\:border-input-warning-border:focus-within:not(#\\#){border-color:var(--color-input-warning-border)}.focus-within\\:border-positive:focus-within:not(#\\#){border-color:var(--color-positive)}@media(hover:hover){.hover\\:border-black:hover:not(#\\#){border-color:var(--color-black)}.hover\\:border-canvas-subtle:hover:not(#\\#){border-color:var(--color-canvas-subtle)}.hover\\:border-negative-hover:hover:not(#\\#){border-color:var(--color-negative-hover)}.hover\\:border-positive-hover:hover:not(#\\#){border-color:var(--color-positive-hover)}.hover\\:border-primary-hover:hover:not(#\\#){border-color:var(--color-primary-hover)}.hover\\:border-warning-hover:hover:not(#\\#){border-color:var(--color-warning-hover)}.hover\\:bg-canvas-subtle:hover:not(#\\#){background-color:var(--color-canvas-subtle)}.hover\\:bg-grey-500:hover:not(#\\#){background-color:var(--color-grey-500)}.hover\\:bg-grey-700:hover:not(#\\#){background-color:var(--color-grey-700)}.hover\\:bg-input-option-hover-bg:hover:not(#\\#){background-color:var(--color-input-option-hover-bg)}.hover\\:bg-negative:hover:not(#\\#){background-color:var(--color-negative)}.hover\\:bg-negative-hover:hover:not(#\\#){background-color:var(--color-negative-hover)}.hover\\:bg-positive:hover:not(#\\#){background-color:var(--color-positive)}.hover\\:bg-positive-hover:hover:not(#\\#){background-color:var(--color-positive-hover)}.hover\\:bg-primary-600:hover:not(#\\#){background-color:var(--color-primary-600)}.hover\\:bg-primary-hover:hover:not(#\\#){background-color:var(--color-primary-hover)}.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)20%,transparent)}}.hover\\:bg-transparent:hover:not(#\\#){background-color:#0000}.hover\\:bg-warning:hover:not(#\\#){background-color:var(--color-warning)}.hover\\:bg-warning-hover:hover:not(#\\#){background-color:var(--color-warning-hover)}.hover\\:text-body:hover:not(#\\#){color:var(--color-body)}.hover\\:text-button-text:hover:not(#\\#){color:var(--color-button-text)}.hover\\:text-grey-200:hover:not(#\\#){color:var(--color-grey-200)}.hover\\:text-negative-400:hover:not(#\\#){color:var(--color-negative-400)}.hover\\:text-negative-hover:hover:not(#\\#){color:var(--color-negative-hover)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-hover:hover:not(#\\#){color:var(--color-positive-hover)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.hover\\:text-primary-hover:hover:not(#\\#){color:var(--color-primary-hover)}.hover\\:text-tab-active-fg:hover:not(#\\#){color:var(--color-tab-active-fg)}.hover\\:text-warning-hover:hover:not(#\\#){color:var(--color-warning-hover)}.hover\\:decoration-current:hover:not(#\\#){text-decoration-color:currentColor}}.focus\\:bg-transparent:focus:not(#\\#){background-color:#0000}.focus\\:ring-2:focus:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-negative:focus:not(#\\#){--tw-ring-color:var(--color-negative)}.focus\\:ring-positive:focus:not(#\\#){--tw-ring-color:var(--color-positive)}.focus\\:ring-primary:focus:not(#\\#){--tw-ring-color:var(--color-primary)}.focus\\:ring-warning:focus:not(#\\#){--tw-ring-color:var(--color-warning)}.focus\\:ring-offset-0:focus:not(#\\#){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:ring-offset-2:focus:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:ring-2:focus-visible:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-primary:focus-visible:not(#\\#){--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-offset-2:focus-visible:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}:root:not(#\\#){--ws-primary-50:#f2ddff;--ws-primary-100:#edd0ff;--ws-primary-300:#d0acef;--ws-primary-400:#c190ea;--ws-primary-600:#935ebf;--ws-primary-800:#563374;--ws-primary-900:#381e4f;--ws-primary-950:#29133c;--ws-positive-50:#ecf9f2;--ws-positive-100:#d9f2e6;--ws-positive-300:#8ed9b3;--ws-positive-400:#68cd99;--ws-positive-700:#28734d;--ws-positive-800:#28734d;--ws-positive-900:#0d261a;--ws-positive-950:#07130d;--ws-warning-50:#fff7e6;--ws-warning-100:#ffefcc;--ws-warning-300:#fed066;--ws-warning-400:#fdc133;--ws-warning-700:#986a00;--ws-warning-800:#654700;--ws-warning-900:#332300;--ws-warning-950:#191200;--ws-negative-50:#feeeee;--ws-negative-100:#fcdcdc;--ws-negative-300:#f69797;--ws-negative-400:#f37575;--ws-negative-700:#9a3232;--ws-negative-800:#6e2222;--ws-negative-900:#431212;--ws-negative-950:#2e0a0a;--ws-grey-300:#535353;--ws-grey-400:#484848;--ws-grey-600:#3f3f3f;--ws-palette-primary-200:#e0c7f5;--ws-palette-primary-500:#b174e5;--ws-palette-primary-700:#75499a;--ws-button-bg:var(--vscode-button-background,var(--theia-button-background,var(--ws-palette-primary-500)));--ws-button-fg:var(--vscode-button-foreground,var(--theia-button-foreground,var(--ws-palette-white)));--ws-primary-default:var(--ws-button-bg);--ws-button-text:var(--ws-button-fg);--ws-primary-hover:var(--vscode-button-hoverBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-light:var(--vscode-editorInfo-foreground,var(--theia-button-secondaryForeground,var(--ws-palette-primary-200)));--ws-primary-dark:var(--vscode-editor-lineHighlightBackground,var(--theia-button-secondaryBackground,var(--ws-palette-primary-700)));--ws-primary-200:var(--ws-primary-light);--ws-primary-500:var(--ws-primary-default);--ws-primary-700:var(--ws-primary-hover);--ws-palette-positive-200:#b3e6cc;--ws-palette-positive-500:#42c080;--ws-palette-positive-600:#359a66;--ws-positive-dark:var(--vscode-gitDecoration-addedResourceForeground,var(--ws-palette-positive-600));--ws-positive-hover:var(--ws-positive-dark);--ws-positive-bg:var(--ws-palette-positive-100);--ws-positive-light:var(--ws-palette-positive-200);--ws-positive-border:var(--ws-positive-500);--ws-positive-text:var(--ws-positive-500);--ws-positive-500:var(--vscode-testing-iconPassed,var(--ws-palette-positive-500));--ws-positive-200:var(--ws-positive-light);--ws-positive-600:var(--ws-positive-dark);--ws-palette-warning-200:#fee099;--ws-palette-warning-500:#fdb100;--ws-palette-warning-600:#ca8e00;--ws-warning-hover:var(--ws-warning-600);--ws-warning-text:var(--ws-warning-500);--ws-warning-border:var(--ws-warning-500);--ws-warning-500:var(--vscode-list-warningForeground,var(--ws-palette-warning-500));--ws-warning-bg:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-500));--ws-warning-light:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-200));--ws-warning-dark:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-600));--ws-warning-200:var(--ws-warning-light);--ws-warning-600:var(--ws-warning-dark);--ws-palette-negative-200:#f9baba;--ws-palette-negative-500:#f05252;--ws-palette-negative-600:#c54242;--ws-negative-hover:var(--ws-negative-600);--ws-negative-text:var(--ws-negative-500);--ws-negative-500:var(--vscode-errorForeground,var(--ws-palette-negative-500));--ws-negative-light:var(--vscode-inputValidation-errorBackground,var(--ws-palette-negative-200));--ws-negative-dark:var(--vscode-inputValidation-errorBackground,var(--ws-palette-negative-600));--ws-negative-200:var(--ws-negative-light);--ws-negative-600:var(--ws-negative-dark);--ws-palette-white:#fff;--ws-palette-grey-50:#f1f5f9;--ws-palette-grey-100:#ccc;--ws-palette-grey-200:#888;--ws-palette-grey-300:#535353;--ws-palette-grey-400:#484848;--ws-palette-grey-500:#444;--ws-palette-grey-600:#3f3f3f;--ws-palette-grey-700:#393939;--ws-palette-grey-800:#383838;--ws-palette-grey-900:#262626;--ws-palette-grey-950:#151515;--ws-bg-default:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-white)));--ws-bg-foreground:var(--vscode-editor-foreground,var(--theia-editor-foreground,var(--ws-palette-grey-50)));--ws-grey-50:var(--ws-bg-foreground);--ws-grey-100:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-100)));--ws-grey-200:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-200)));--ws-grey-950:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-950)));--ws-grey-500:var(--vscode-descriptionForeground,var(--ws-palette-grey-500));--ws-grey-800:var(--vscode-descriptionForeground,var(--ws-palette-grey-800));--ws-card-bg:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900)));--ws-card-border:var(--vscode-editorGroupHeader-tabsBorder,var(--theia-editorGroupHeader-tabsBorder,var(--ws-palette-grey-50)));--ws-palette-input-bg:var(--ws-palette-grey-300);--ws-palette-input-border:var(--ws-palette-grey-300);--ws-palette-input-text:var(--ws-palette-grey-50);--ws-palette-input-placeholder:var(--ws-palette-grey-200);--ws-palette-input-focus-border:var(--ws-palette-grey-50);--ws-input-bg:var(--vscode-input-background,var(--vscode-editorWidget-background,var(--theia-input-background,var(--ws-palette-input-bg))));--ws-input-border:var(--vscode-input-border,var(--vscode-panel-border,var(--theia-input-border,var(--ws-palette-input-border))));--ws-input-text:var(--vscode-input-foreground,var(--vscode-editor-foreground,var(--theia-input-foreground,var(--ws-palette-input-text))));--ws-input-placeholder:var(--vscode-input-placeholderForeground,var(--vscode-editor-foreground,var(--theia-input-placeholderForeground,var(--ws-palette-input-placeholder))));--ws-input-focus-border:var(--vscode-focusBorder,var(--vscode-button-background,var(--theia-focusBorder,var(--ws-palette-primary-500))));--ws-select-bg:var(--vscode-dropdown-background,var(--vscode-editorWidget-background,var(--theia-dropdown-background,var(--ws-input-bg))));--ws-select-border:var(--vscode-dropdown-border,var(--vscode-panel-border,var(--theia-dropdown-border,var(--ws-input-border))));--ws-select-text:var(--vscode-dropdown-foreground,var(--vscode-editor-foreground,var(--theia-dropdown-foreground,var(--ws-input-text))));--ws-select-list-bg:var(--vscode-dropdown-listBackground,var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-900))));--ws-input-option-hover-bg:var(--vscode-list-hoverBackground,var(--vscode-button-hoverBackground,var(--theia-list-hoverBackground,var(--ws-palette-primary-700))));--ws-input-option-active-bg:var(--vscode-list-activeSelectionBackground,var(--theia-list-activeSelectionBackground,var(--ws-palette-primary-500)));--ws-input-option-active-text:var(--vscode-list-activeSelectionForeground,var(--theia-list-activeSelectionForeground,var(--ws-palette-white)));--ws-input-error-border:var(--vscode-inputValidation-errorBorder,var(--theia-inputValidation-errorBorder,var(--ws-palette-negative-500)));--ws-input-error-bg:var(--vscode-inputValidation-errorBackground,var(--theia-inputValidation-errorBackground,var(--ws-palette-negative-200)));--ws-input-warning-border:var(--vscode-inputValidation-warningBorder,var(--theia-inputValidation-warningBorder,var(--ws-palette-warning-500)));--ws-input-warning-bg:var(--vscode-inputValidation-warningBackground,var(--theia-inputValidation-warningBackground,var(--ws-palette-warning-200)));--ws-input-info-bg:var(--vscode-panel-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-bg:var(--vscode-editor-lineHighlightBackground,var(--vscode-editorWidget-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200))));--ws-input-message-text:var(--vscode-editorInfo-foreground,var(--vscode-editor-foreground,var(--theia-inputValidation-infoForeground,var(--ws-palette-primary-500))));--ws-inactive-text:var(--vscode-disabledForeground,var(--theia-disabled-foreground,var(--ws-palette-grey-200)));--ws-text-muted:var(--vscode-descriptionForeground,var(--vscode-editor-foreground,var(--theia-descriptionForeground,var(--ws-palette-grey-100))));--ws-disable-bg:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-300)));--ws-disable-input:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-200)));--ws-panel-0:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-900)));--ws-panel-1:var(--vscode-sideBar-background,var(--vscode-panel-background,var(--theia-sideBar-background,var(--ws-palette-grey-700))));--ws-panel-2:var(--vscode-panel-background,var(--vscode-editor-background,var(--theia-panel-background,var(--ws-palette-grey-900))));--ws-panel-3:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900))));--ws-panel-4:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-300)));--ws-panel-5:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-950)));--ws-panel-border-subtle:var(--vscode-panel-border,var(--vscode-tab-border,var(--theia-border-color,var(--ws-palette-grey-100))));--ws-panel-border-strong:var(--vscode-contrastBorder,var(--vscode-focusBorder,var(--theia-contrastBorder,var(--ws-palette-grey-300))));--ws-tab-bg-default:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--ws-palette-grey-900)));--ws-tab-border:var(--vscode-tab-border,var(--vscode-editorGroupHeader-tabsBorder,var(--ws-palette-grey-950)));--ws-tab-active-bg:var(--vscode-tab-activeBackground,var(--ws-palette-grey-800));--ws-tab-active-fg:var(--vscode-tab-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-tab-inactive-bg:var(--vscode-tab-inactiveBackground,var(--ws-palette-grey-900));--ws-tab-inactive-fg:var(--vscode-tab-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-200)));--ws-tab-hover-bg:var(--vscode-tab-hoverBackground,var(--vscode-toolbar-hoverBackground,var(--ws-palette-grey-700)));--ws-panel-header-bg:var(--vscode-sideBarSectionHeader-background,var(--vscode-editorGroupHeader-tabsBackground,var(--ws-palette-grey-800)));--ws-panel-header-fg:var(--vscode-sideBarSectionHeader-foreground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-bg:var(--vscode-panel-background,var(--vscode-editor-background,var(--ws-bg-default)));--ws-panel-border:var(--vscode-panel-border,var(--vscode-tab-border,var(--ws-palette-grey-950)));--ws-panel-title-active-border:var(--vscode-panelTitle-activeBorder,var(--vscode-focusBorder,var(--ws-palette-primary-500)));--ws-panel-title-active-fg:var(--vscode-panelTitle-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-title-inactive-fg:var(--vscode-panelTitle-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-100)))}.center-absolute:not(#\\#){--tw-translate-x: -50% ;--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);position:absolute;top:50%;left:50%}.ws-group:hover .ws-checkbox-hover-target{opacity:1!important}.simplebar-scrollbar:not(#\\#):before{background-color:#ccc}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
4
|
-
`,document.head.appendChild(e)}catch(e){console.error("vite-plugin-inject-css: failed to inject css",e)}})();const W1=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:_.jsx("path",{d:"M21.66 6.28a.5.5 0 0 0 0-.697l-.967-.993a.5.5 0 0 0-.716 0L8.499 16.373 4.023 11.78a.5.5 0 0 0-.716 0l-.967.993a.5.5 0 0 0 0 .697l5.889 6.046.014-.014a.377.377 0 0 0 .54 0L21.66 6.28Z",fill:"currentColor"})}),U1=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:_.jsx("path",{d:"M10.84 2.714c0-.394.346-.714.773-.714h.774c.427 0 .773.32.773.714V9.5h5.025c.427 0 .773.32.773.714v3.572H5.042v-3.572c0-.394.346-.714.773-.714h5.025V2.714ZM5.042 14.5h13.916l1.034 6.685c.067.43-.295.815-.765.815h-2.1l-.681-5.929L15.764 22h-3.236l-.721-2.143L11.086 22h-2.85l-.682-3.929L6.872 22H4.773c-.47 0-.832-.385-.765-.815L5.042 14.5Z",fill:"currentColor"})}),il=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:_.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),$1=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:_.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),q1=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:_.jsx("path",{d:"M20.673 5.133c.136.24.053.55-.185.69l-16.25 9.623a.487.487 0 0 1-.676-.18l-.497-.884a.513.513 0 0 1 .185-.69L19.5 4.069c.238-.141.54-.06.676.18l.497.884ZM20.938 9.657c.136.24.053.55-.185.69L7.925 17.944a.487.487 0 0 1-.676-.181l-.497-.884a.513.513 0 0 1 .185-.69l12.829-7.597c.237-.14.54-.06.675.181l.497.884ZM20.16 15.376c.237-.14.32-.45.184-.69l-.497-.884a.487.487 0 0 0-.676-.18l-7.695 4.556a.513.513 0 0 0-.185.69l.498.884c.135.24.437.322.675.181l7.695-4.557Z",fill:"currentColor"})}),K1=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},G1=(e,t)=>({classGroupId:e,validator:t}),Jm=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),ws="-",ip=[],J1="arbitrary..",X1=e=>{const t=Q1(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Y1(i);const a=i.split(ws),o=a[0]===""&&a.length>1?1:0;return Xm(a,o,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const o=n[i],s=r[i];return o?s?K1(s,o):o:s||ip}return r[i]||ip}}},Xm=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],i=r.nextPart.get(n);if(i){const u=Xm(e,t+1,i);if(u)return u}const a=r.validators;if(a===null)return;const o=t===0?e.join(ws):e.slice(t).join(ws),s=a.length;for(let u=0;u<s;u++){const c=a[u];if(c.validator(o))return c.classGroupId}},Y1=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?J1+n:void 0})(),Q1=e=>{const{theme:t,classGroups:r}=e;return Z1(r,t)},Z1=(e,t)=>{const r=Jm();for(const n in e){const i=e[n];ld(i,r,n,t)}return r},ld=(e,t,r,n)=>{const i=e.length;for(let a=0;a<i;a++){const o=e[a];ek(o,t,r,n)}},ek=(e,t,r,n)=>{if(typeof e=="string"){tk(e,t,r);return}if(typeof e=="function"){rk(e,t,r,n);return}nk(e,t,r,n)},tk=(e,t,r)=>{const n=e===""?t:Ym(t,e);n.classGroupId=r},rk=(e,t,r,n)=>{if(ik(e)){ld(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(G1(r,e))},nk=(e,t,r,n)=>{const i=Object.entries(e),a=i.length;for(let o=0;o<a;o++){const[s,u]=i[o];ld(u,Ym(t,s),r,n)}},Ym=(e,t)=>{let r=e;const n=t.split(ws),i=n.length;for(let a=0;a<i;a++){const o=n[a];let s=r.nextPart.get(o);s||(s=Jm(),r.nextPart.set(o,s)),r=s}return r},ik=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ak=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const i=(a,o)=>{r[a]=o,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let o=r[a];if(o!==void 0)return o;if((o=n[a])!==void 0)return i(a,o),o},set(a,o){a in r?r[a]=o:i(a,o)}}},dc="!",ap=":",ok=[],op=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),sk=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const a=[];let o=0,s=0,u=0,c;const d=i.length;for(let v=0;v<d;v++){const b=i[v];if(o===0&&s===0){if(b===ap){a.push(i.slice(u,v)),u=v+1;continue}if(b==="/"){c=v;continue}}b==="["?o++:b==="]"?o--:b==="("?s++:b===")"&&s--}const h=a.length===0?i:i.slice(u);let f=h,g=!1;h.endsWith(dc)?(f=h.slice(0,-1),g=!0):h.startsWith(dc)&&(f=h.slice(1),g=!0);const x=c&&c>u?c-u:void 0;return op(a,g,f,x)};if(t){const i=t+ap,a=n;n=o=>o.startsWith(i)?a(o.slice(i.length)):op(ok,!1,o,void 0,!0)}if(r){const i=n;n=a=>r({className:a,parseClassName:i})}return n},lk=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let a=0;a<r.length;a++){const o=r[a],s=o[0]==="[",u=t.has(o);s||u?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(o)):i.push(o)}return i.length>0&&(i.sort(),n.push(...i)),n}},uk=e=>({cache:ak(e.cacheSize),parseClassName:sk(e),sortModifiers:lk(e),...X1(e)}),ck=/\s+/,dk=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(ck);let u="";for(let c=s.length-1;c>=0;c-=1){const d=s[c],{isExternal:h,modifiers:f,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:v}=r(d);if(h){u=d+(u.length>0?" "+u:u);continue}let b=!!v,y=n(b?x.substring(0,v):x);if(!y){if(!b){u=d+(u.length>0?" "+u:u);continue}if(y=n(x),!y){u=d+(u.length>0?" "+u:u);continue}b=!1}const k=f.length===0?"":f.length===1?f[0]:a(f).join(":"),C=g?k+dc:k,I=C+y;if(o.indexOf(I)>-1)continue;o.push(I);const w=i(y,b);for(let m=0;m<w.length;++m){const T=w[m];o.push(C+T)}u=d+(u.length>0?" "+u:u)}return u},hk=(...e)=>{let t=0,r,n,i="";for(;t<e.length;)(r=e[t++])&&(n=Qm(r))&&(i&&(i+=" "),i+=n);return i},Qm=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Qm(e[n]))&&(r&&(r+=" "),r+=t);return r},sp=(e,...t)=>{let r,n,i,a;const o=u=>{const c=t.reduce((d,h)=>h(d),e());return r=uk(c),n=r.cache.get,i=r.cache.set,a=s,s(u)},s=u=>{const c=n(u);if(c)return c;const d=dk(u,r);return i(u,d),d};return a=o,(...u)=>a(hk(...u))},pk=[],Vt=e=>{const t=r=>r[e]||pk;return t.isThemeGetter=!0,t},Zm=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ev=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fk=/^\d+\/\d+$/,gk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mk=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bk=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ci=e=>fk.test(e),Ze=e=>!!e&&!Number.isNaN(Number(e)),vn=e=>!!e&&Number.isInteger(Number(e)),iu=e=>e.endsWith("%")&&Ze(e.slice(0,-1)),Zr=e=>gk.test(e),yk=()=>!0,wk=e=>mk.test(e)&&!vk.test(e),tv=()=>!1,kk=e=>xk.test(e),Sk=e=>bk.test(e),Ck=e=>!De(e)&&!Ve(e),Ek=e=>Mi(e,iv,tv),De=e=>Zm.test(e),$n=e=>Mi(e,av,wk),au=e=>Mi(e,Pk,Ze),lp=e=>Mi(e,rv,tv),_k=e=>Mi(e,nv,Sk),Co=e=>Mi(e,ov,kk),Ve=e=>ev.test(e),Zi=e=>ji(e,av),Ik=e=>ji(e,Nk),up=e=>ji(e,rv),Ak=e=>ji(e,iv),Tk=e=>ji(e,nv),Eo=e=>ji(e,ov,!0),Mi=(e,t,r)=>{const n=Zm.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},ji=(e,t,r=!1)=>{const n=ev.exec(e);return n?n[1]?t(n[1]):r:!1},rv=e=>e==="position"||e==="percentage",nv=e=>e==="image"||e==="url",iv=e=>e==="length"||e==="size"||e==="bg-size",av=e=>e==="length",Pk=e=>e==="number",Nk=e=>e==="family-name",ov=e=>e==="shadow",cp=()=>{const e=Vt("color"),t=Vt("font"),r=Vt("text"),n=Vt("font-weight"),i=Vt("tracking"),a=Vt("leading"),o=Vt("breakpoint"),s=Vt("container"),u=Vt("spacing"),c=Vt("radius"),d=Vt("shadow"),h=Vt("inset-shadow"),f=Vt("text-shadow"),g=Vt("drop-shadow"),x=Vt("blur"),v=Vt("perspective"),b=Vt("aspect"),y=Vt("ease"),k=Vt("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...I(),Ve,De],m=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],P=()=>[Ve,De,u],V=()=>[ci,"full","auto",...P()],O=()=>[vn,"none","subgrid",Ve,De],B=()=>["auto",{span:["full",vn,Ve,De]},vn,Ve,De],F=()=>[vn,"auto",Ve,De],J=()=>["auto","min","max","fr",Ve,De],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...P()],le=()=>[ci,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],Q=()=>[e,Ve,De],fe=()=>[...I(),up,lp,{position:[Ve,De]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],te=()=>["auto","cover","contain",Ak,Ek,{size:[Ve,De]}],ae=()=>[iu,Zi,$n],N=()=>["","none","full",c,Ve,De],ee=()=>["",Ze,Zi,$n],H=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>[Ze,iu,up,lp],ie=()=>["","none",x,Ve,De],oe=()=>["none",Ze,Ve,De],de=()=>["none",Ze,Ve,De],he=()=>[Ze,Ve,De],K=()=>[ci,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Zr],breakpoint:[Zr],color:[yk],container:[Zr],"drop-shadow":[Zr],ease:["in","out","in-out"],font:[Ck],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Zr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Zr],shadow:[Zr],spacing:["px",Ze],text:[Zr],"text-shadow":[Zr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ci,De,Ve,b]}],container:["container"],columns:[{columns:[Ze,De,Ve,s]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:m()}],"overflow-x":[{"overflow-x":m()}],"overflow-y":[{"overflow-y":m()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[vn,"auto",Ve,De]}],basis:[{basis:[ci,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ze,ci,"auto","initial","none",De]}],grow:[{grow:["",Ze,Ve,De]}],shrink:[{shrink:["",Ze,Ve,De]}],order:[{order:[vn,"first","last","none",Ve,De]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:le()}],w:[{w:[s,"screen",...le()]}],"min-w":[{"min-w":[s,"screen","none",...le()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...le()]}],h:[{h:["screen","lh",...le()]}],"min-h":[{"min-h":["screen","lh","none",...le()]}],"max-h":[{"max-h":["screen","lh",...le()]}],"font-size":[{text:["base",r,Zi,$n]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Ve,au]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",iu,De]}],"font-family":[{font:[Ik,De,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Ve,De]}],"line-clamp":[{"line-clamp":[Ze,"none",Ve,au]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",Ve,De]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ve,De]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Q()}],"text-color":[{text:Q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ze,"from-font","auto",Ve,$n]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[Ze,"auto",Ve,De]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ve,De]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ve,De]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:fe()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},vn,Ve,De],radial:["",Ve,De],conic:[vn,Ve,De]},Tk,_k]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:ae()}],"gradient-via-pos":[{via:ae()}],"gradient-to-pos":[{to:ae()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...H(),"hidden","none"]}],"divide-style":[{divide:[...H(),"hidden","none"]}],"border-color":[{border:Q()}],"border-color-x":[{"border-x":Q()}],"border-color-y":[{"border-y":Q()}],"border-color-s":[{"border-s":Q()}],"border-color-e":[{"border-e":Q()}],"border-color-t":[{"border-t":Q()}],"border-color-r":[{"border-r":Q()}],"border-color-b":[{"border-b":Q()}],"border-color-l":[{"border-l":Q()}],"divide-color":[{divide:Q()}],"outline-style":[{outline:[...H(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ze,Ve,De]}],"outline-w":[{outline:["",Ze,Zi,$n]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",d,Eo,Co]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",h,Eo,Co]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[Ze,$n]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",f,Eo,Co]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[Ze,Ve,De]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":$()}],"mask-image-linear-to-pos":[{"mask-linear-to":$()}],"mask-image-linear-from-color":[{"mask-linear-from":Q()}],"mask-image-linear-to-color":[{"mask-linear-to":Q()}],"mask-image-t-from-pos":[{"mask-t-from":$()}],"mask-image-t-to-pos":[{"mask-t-to":$()}],"mask-image-t-from-color":[{"mask-t-from":Q()}],"mask-image-t-to-color":[{"mask-t-to":Q()}],"mask-image-r-from-pos":[{"mask-r-from":$()}],"mask-image-r-to-pos":[{"mask-r-to":$()}],"mask-image-r-from-color":[{"mask-r-from":Q()}],"mask-image-r-to-color":[{"mask-r-to":Q()}],"mask-image-b-from-pos":[{"mask-b-from":$()}],"mask-image-b-to-pos":[{"mask-b-to":$()}],"mask-image-b-from-color":[{"mask-b-from":Q()}],"mask-image-b-to-color":[{"mask-b-to":Q()}],"mask-image-l-from-pos":[{"mask-l-from":$()}],"mask-image-l-to-pos":[{"mask-l-to":$()}],"mask-image-l-from-color":[{"mask-l-from":Q()}],"mask-image-l-to-color":[{"mask-l-to":Q()}],"mask-image-x-from-pos":[{"mask-x-from":$()}],"mask-image-x-to-pos":[{"mask-x-to":$()}],"mask-image-x-from-color":[{"mask-x-from":Q()}],"mask-image-x-to-color":[{"mask-x-to":Q()}],"mask-image-y-from-pos":[{"mask-y-from":$()}],"mask-image-y-to-pos":[{"mask-y-to":$()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[Ve,De]}],"mask-image-radial-from-pos":[{"mask-radial-from":$()}],"mask-image-radial-to-pos":[{"mask-radial-to":$()}],"mask-image-radial-from-color":[{"mask-radial-from":Q()}],"mask-image-radial-to-color":[{"mask-radial-to":Q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[Ze]}],"mask-image-conic-from-pos":[{"mask-conic-from":$()}],"mask-image-conic-to-pos":[{"mask-conic-to":$()}],"mask-image-conic-from-color":[{"mask-conic-from":Q()}],"mask-image-conic-to-color":[{"mask-conic-to":Q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:fe()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ve,De]}],filter:[{filter:["","none",Ve,De]}],blur:[{blur:ie()}],brightness:[{brightness:[Ze,Ve,De]}],contrast:[{contrast:[Ze,Ve,De]}],"drop-shadow":[{"drop-shadow":["","none",g,Eo,Co]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",Ze,Ve,De]}],"hue-rotate":[{"hue-rotate":[Ze,Ve,De]}],invert:[{invert:["",Ze,Ve,De]}],saturate:[{saturate:[Ze,Ve,De]}],sepia:[{sepia:["",Ze,Ve,De]}],"backdrop-filter":[{"backdrop-filter":["","none",Ve,De]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[Ze,Ve,De]}],"backdrop-contrast":[{"backdrop-contrast":[Ze,Ve,De]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ze,Ve,De]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ze,Ve,De]}],"backdrop-invert":[{"backdrop-invert":["",Ze,Ve,De]}],"backdrop-opacity":[{"backdrop-opacity":[Ze,Ve,De]}],"backdrop-saturate":[{"backdrop-saturate":[Ze,Ve,De]}],"backdrop-sepia":[{"backdrop-sepia":["",Ze,Ve,De]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ve,De]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ze,"initial",Ve,De]}],ease:[{ease:["linear","initial",y,Ve,De]}],delay:[{delay:[Ze,Ve,De]}],animate:[{animate:["none",k,Ve,De]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,Ve,De]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":["scale-3d"],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[Ve,De,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:K()}],"translate-x":[{"translate-x":K()}],"translate-y":[{"translate-y":K()}],"translate-z":[{"translate-z":K()}],"translate-none":["translate-none"],accent:[{accent:Q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Q()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ve,De]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ve,De]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[Ze,Zi,$n,au]}],stroke:[{stroke:["none",...Q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ok=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:i={},override:a={}})=>(oa(e,"cacheSize",t),oa(e,"prefix",r),oa(e,"experimentalParseClassName",n),_o(e.theme,a.theme),_o(e.classGroups,a.classGroups),_o(e.conflictingClassGroups,a.conflictingClassGroups),_o(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),oa(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),Io(e.theme,i.theme),Io(e.classGroups,i.classGroups),Io(e.conflictingClassGroups,i.conflictingClassGroups),Io(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),sv(e,i,"orderSensitiveModifiers"),e),oa=(e,t,r)=>{r!==void 0&&(e[t]=r)},_o=(e,t)=>{if(t)for(const r in t)oa(e,r,t[r])},Io=(e,t)=>{if(t)for(const r in t)sv(e,t,r)},sv=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},Rk=(e,...t)=>typeof e=="function"?sp(cp,e,...t):sp(()=>Ok(cp(),e),...t);function lv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dp={exports:{}};/*!
|
|
5
|
-
|
|
6
|
-
Licensed under the MIT License (MIT), see
|
|
7
|
-
http://jedwatson.github.io/classnames
|
|
8
|
-
*/var hp;function Lk(){return hp||(hp=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=i(a,n(s)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)t.call(a,s)&&a[s]&&(o=i(o,s));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(dp)),dp.exports}var Dk=Lk();const Vk=lv(Dk),Mk=Rk({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-s","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"],"text-color":["text-body","text-muted","text-inactive-text","text-button-text","text-positive-text","text-negative-text","text-negative","text-warning-text","text-input-text","text-select-text","text-input-message-text","text-placeholder"]}}});function ye(...e){return Mk(Vk(e))}const Ba={sm:{checkbox:"size-4",hoverSquare:"size-2.5",text:"text-xs",spacing:"gap-1",icon:"size-3.25"},md:{checkbox:"size-5",hoverSquare:"size-3.5",text:"text-sm",spacing:"gap-1.5",icon:"size-4"},lg:{checkbox:"size-6",hoverSquare:"size-4",text:"text-base",spacing:"gap-2",icon:"size-5"}},_r={primary:{checked:"bg-primary border-primary",unchecked:"border border-body bg-transparent",checkedHover:"hover:bg-primary-hover hover:border-primary-hover",hoverSquare:"bg-primary-hover",focus:"focus:ring-primary",label:"text-body"},positive:{checked:"bg-positive border-positive",unchecked:"border border-positive bg-transparent",checkedHover:"hover:bg-positive-hover hover:border-positive-hover",hoverSquare:"bg-positive-hover",focus:"focus:ring-positive",label:"text-positive"},warning:{checked:"bg-warning border-warning",unchecked:"border border-warning bg-transparent",checkedHover:"hover:bg-warning-hover hover:border-warning-hover",hoverSquare:"bg-warning-hover",focus:"focus:ring-warning",label:"text-warning"},negative:{checked:"bg-negative border-negative",unchecked:"border border-negative bg-transparent",checkedHover:"hover:bg-negative-hover hover:border-negative-hover",hoverSquare:"bg-negative-hover",focus:"focus:ring-negative",label:"text-negative"}},jk=`
|
|
9
|
-
appearance-none border rounded transition-all duration-200
|
|
10
|
-
focus:ring-2 focus:ring-offset-2 focus:outline-hidden
|
|
11
|
-
relative
|
|
12
|
-
`,Fk=(e,t,r)=>{const{isChecked:n,isIndeterminate:i,isDisabled:a,isInvalid:o}=r,s=n||i;return ye(jk,Ba[e].checkbox,{"cursor-pointer":!a},o?{[_r.negative.checked]:s,[_r.negative.unchecked]:!s,[_r.negative.checkedHover]:!a&&s,[_r.negative.focus]:!a,"border-input-disable":a}:{[_r[t].checked]:s&&!a,[_r[t].unchecked]:!s&&!a,[_r[t].checkedHover]:!a&&s,[_r[t].focus]:!a,"border-input-disable":a,"bg-input-disable text-muted":a&&s})},Bk=(e,t,r)=>{const{isDisabled:n,isInvalid:i}=r;return ye(Ba[e].text,i?{[_r.negative.label]:i}:{"text-input-disable":n,[_r[t].label]:!n,"cursor-pointer":!n})},zk=e=>ye("inline-flex items-center ws-group",Ba[e].spacing),Hk=(e,t,r)=>ye("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",Ba[e].hoverSquare,{[_r.negative.hoverSquare]:r,[_r[t].hoverSquare]:!r}),Wk=e=>`${Ba[e].icon}`,Uk=e=>_.jsx("svg",{className:`absolute inset-0 ${e.className}`,fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...e,children:_.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),ud=L.forwardRef(({label:e,isDisabled:t=!1,isInvalid:r=!1,isRequired:n=!1,size:i="md",color:a="primary",onChange:o,onFocus:s,onBlur:u,value:c,defaultValue:d,name:h,id:f,...g},x)=>{const[v,b]=L.useState(d),y=c===!0||v===!0,k=c===null,C=y||k,I={isChecked:y,isIndeterminate:k,isDisabled:t,isInvalid:r},w=Fk(i,a,I),m=Bk(i,a,I),T=zk(i),P=Hk(i,a,r),V=Wk(i);return _.jsxs("label",{"data-qui":"Checkbox",className:T,children:[_.jsxs("div",{className:w,children:[_.jsx("input",{ref:x,type:"checkbox",className:"sr-only",checked:y,disabled:t,required:n,onChange:O=>{c===void 0&&b(O.target.checked),o==null||o(O)},onFocus:s,onBlur:u,name:h,id:f,...g}),C&&_.jsx("div",{className:"center-absolute",children:k?_.jsx(Uk,{className:V}):_.jsx(W1,{className:V})}),!C&&!t&&_.jsx("div",{className:P})]}),e&&_.jsxs("span",{className:m,children:[e,n&&_.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});ud.displayName="Checkbox";const za={sm:{container:"gap-2",radio:"size-3",label:"text-xs",dot:"size-2",hoverDot:"size-1.5"},md:{container:"gap-2.5",radio:"size-4",label:"text-sm",dot:"size-2.5",hoverDot:"size-2"},lg:{container:"gap-3",radio:"size-6",label:"text-base",dot:"size-4",hoverDot:"size-3"}},ba={primary:{radio:"border-body-light group-hover:border-body",radioInvalid:"border-negative",dot:"bg-primary group-hover:bg-primary-hover",hoverDot:"bg-primary-hover",label:"text-body"},positive:{radio:"border-positive group-hover:border-positive-text",radioInvalid:"border-negative",dot:"bg-positive group-hover:bg-positive-hover",hoverDot:"bg-positive-bg",label:"text-positive-text"},warning:{radio:"border-warning group-hover:border-warning-text",radioInvalid:"border-negative",dot:"bg-warning group-hover:bg-warning-hover",hoverDot:"bg-warning-bg",label:"text-warning-text"},negative:{radio:"border-negative group-hover:border-negative-text",radioInvalid:"border-negative",dot:"bg-negative group-hover:bg-negative-hover",hoverDot:"bg-negative-bg",label:"text-negative"}},$k=`
|
|
13
|
-
relative rounded-full border transition-all duration-200 ease-in-out bg-transparent
|
|
14
|
-
focus:outline-hidden focus:ring-2 focus:ring-offset-0
|
|
15
|
-
cursor-pointer peer
|
|
16
|
-
`,qk=(e,t,r)=>{const{isDisabled:n,isInvalid:i}=r;return ye($k,za[e].radio,i?ba[t].radioInvalid:{[ba[t].radio]:!n,"cursor-not-allowed opacity-60":n})},Kk=(e,t,r)=>{const{checked:n,isDisabled:i,isInvalid:a}=r;return ye("center-absolute rounded-full transition-all duration-200 ease-in-out",za[e].dot,a?"bg-negative":{[ba[t].dot]:!i,"border-neutral":i,"opacity-0 scale-0":!n,"opacity-100 scale-100":n&&!i})},Gk=(e,t,r)=>ye("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",za[e].hoverDot,{[ba[t].hoverDot]:!r,"bg-negative-bg":r}),Jk=e=>ye("cursor-pointer select-none transition-colors duration-200",za[e].label),Xk=(e,t,r,n)=>{const{isDisabled:i,isInvalid:a}=r;return ye("inline-flex items-center group",za[e].container,a?{"text-negative":a}:{[ba[t].label]:!i,"text-muted":i},n)},Yk=()=>ye("flex flex-col"),uv=L.createContext(null),Qk=()=>{const e=L.useContext(uv);if(!e)throw new Error("Radio.Item must be used within Radio.Group");return e},cv=({value:e,defaultValue:t,onChange:r,name:n,size:i="md",color:a="primary",isDisabled:o=!1,isInvalid:s=!1,isRequired:u=!1,hideIndicator:c=!1,className:d,children:h,...f})=>{const[g,x]=L.useState(t),v=e!==void 0,b={value:v?e:g,onChange:y=>{v||x(y),r==null||r(y)},name:n,size:i,color:a,isDisabled:o,isInvalid:s,isRequired:u,hideIndicator:c};return _.jsx(uv.Provider,{value:b,children:_.jsx("div",{"data-qui":"RadioGroup",role:"radiogroup",className:ye(Yk(),d),...f,children:h})})},dv=L.forwardRef(({value:e,label:t,size:r,color:n,isDisabled:i,isInvalid:a,isRequired:o,className:s,...u},c)=>{const d=Qk(),h=r??d.size,f=n??d.color,g=i??d.isDisabled,x=a??d.isInvalid,v=o??d.isRequired,b=d.value===e,y={checked:b,isDisabled:g,isInvalid:x},k=qk(h,f,y),C=Kk(h,f,y),I=Gk(h,f,x),w=Jk(h),m=Xk(h,f,y,s),T=()=>{g||d.onChange(e)};return _.jsxs("label",{"data-qui":"RadioItem",className:m,children:[_.jsxs("div",{className:ye("relative",{hidden:d.hideIndicator}),children:[_.jsx("input",{ref:c,type:"radio",value:e,checked:b,disabled:g,required:v,"aria-invalid":x,"aria-label":t?void 0:u["aria-label"],name:d.name,onChange:T,className:"sr-only",...u}),_.jsxs("div",{className:k,children:[_.jsx("div",{className:C}),!b&&!g&&_.jsx("div",{className:I})]})]}),t&&_.jsxs("span",{className:w,children:[t,v&&_.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});cv.displayName="RadioGroup";dv.displayName="RadioItem";const pp={Group:cv,Item:dv},hv={sm:{container:"h-4.5 p-1 rounded",text:"text-xxs"},md:{container:"h-6 p-1 rounded",text:"text-s"},lg:{container:"h-7 p-1 rounded",text:"text-sm"},xl:{container:"h-7.5 p-1 rounded",text:"text-lg"}},Zk={primary:{bg:{solid:"bg-primary",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-primary",ghost:"text-primary"},border:{solid:"border-primary",outline:"border-primary",ghost:"border-transparent"},hover:{solid:"hover:bg-primary-hover hover:border-primary-hover",outline:"hover:border-black hover:text-primary-hover",ghost:"hover:bg-primary-hover hover:text-body"}},white:{bg:{solid:"bg-white",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-primary",outline:"text-body",ghost:"text-body"},border:{solid:"border-white",outline:"border-white",ghost:"border-transparent"},hover:{solid:"hover:bg-canvas-subtle hover:border-canvas-subtle",outline:"hover:border-canvas hover:text-canvas",ghost:"hover:bg-primary-hover hover:text-body"}},positive:{bg:{solid:"bg-positive",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-positive-text",ghost:"text-positive-text"},border:{solid:"border-positive",outline:"border-positive",ghost:"border-transparent"},hover:{solid:"hover:bg-positive-hover hover:border-positive-hover",outline:"hover:border-positive-hover hover:text-positive-hover",ghost:"hover:bg-positive-hover hover:text-body"}},warning:{bg:{solid:"bg-warning",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-warning-text",ghost:"text-warning-text"},border:{solid:"border-warning",outline:"border-warning",ghost:"border-transparent"},hover:{solid:"hover:bg-warning-hover hover:border-warning-hover",outline:"hover:border-warning-hover hover:text-warning-hover",ghost:"hover:bg-warning-hover hover:text-body"}},negative:{bg:{solid:"bg-negative",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-negative",ghost:"text-negative"},border:{solid:"border-negative",outline:"border-negative",ghost:"border-transparent"},hover:{solid:"hover:bg-negative-hover hover:border-negative-hover",outline:"hover:border-negative-hover hover:text-negative-hover",ghost:"hover:bg-negative-hover hover:text-body"}}},eS=(e,t,r,n)=>{const i=hv[e],a=Zk[r],o=ye("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!n},i.container);return n?ye(o,"text-inactive-text",{"border-panel":t!=="ghost"&&t==="solid","border-panel-subtle":t==="outline","bg-panel":t==="solid","bg-transparent ":t==="outline"||t==="ghost","border-transparent":t==="ghost"}):ye(o,a.bg[t],a.text[t],a.hover[t],a.border[t])},tS=e=>ye("flex items-center justify-center gap-1",hv[e].text),Pt=L.forwardRef(({size:e="md",variant:t="solid",color:r="primary",className:n,children:i,disabled:a,...o},s)=>_.jsx("button",{"data-qui":"Button",ref:s,type:"button",className:ye(eS(e,t,r,a),tS(e),n),disabled:a,...o,children:i}));Pt.displayName="Button";const pv=L.createContext(null),Ha=()=>{const e=L.useContext(pv);if(!e)throw new Error("Input components must be used within Input.Root");return e},Fi={sm:{group:"h-5 min-h-fit",input:"text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{group:"h-6 min-h-fit",input:"text-xs",message:"text-xs p-2",icon:"text-base"},lg:{group:"h-7 min-h-fit",input:"text-s",message:"text-s p-2.5",icon:"text-lg"}},on={primary:{border:"border border-input-border focus-within:border-input-focus-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-focus-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-input-message-text",messageBackground:"bg-input-message-bg",icon:"text-input-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},positive:{border:"border border-input-border focus-within:border-positive",borderInvalid:"ring-input-error-border",borderMessage:"ring-positive",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-positive-dark",messageBackground:"bg-positive-light",icon:"text-positive-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},warning:{border:"border border-input-border focus-within:border-input-warning-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-warning-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-warning-dark",messageBackground:"bg-input-warning-bg",icon:"text-warning-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},negative:{border:"border border-input-border focus-within:border-input-error-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-error-border",text:"text-negative",placeholder:"placeholder:text-input-placeholder",messageText:"text-negative-dark",messageBackground:"bg-input-error-bg",icon:"text-negative",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"}},rS=()=>ye("flex flex-col relative"),nS=({size:e,color:t,isDisabled:r,isReadOnly:n,hasMessage:i,hasArea:a,isInvalid:o})=>{const s=on[o?"negative":t];return ye("bg-input-bg flex gap-1 relative px-1 transition-all duration-200 ease-in-out only:rounded first:rounded-t last:rounded-b",s.text,i?s.borderMessage:!n&&s.border,Fi[e].group,{"ring-1":i,"opacity-60":r,"items-center":!a})},iS=({size:e,color:t})=>ye("bg-transparent ring-0 w-full","focus:outline-hidden",[Fi[e].input],on[t].placeholder),fp=({size:e,color:t})=>ye("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",Fi[e].input,on[t].placeholder),aS=({size:e,color:t,isDisabled:r,isAction:n})=>ye("transition-colors duration-200 rounded max-h-full h-fit",Fi[e].icon,e==="sm"?"m-px":"m-0.5",r?"text-muted opacity-60 pointer-events-none":n?on[t].action:on[t].icon,{"cursor-pointer p-0.5":n&&!r,[on[t].actionHover]:n&&!r,"pointer-events-none":!n}),oS=({size:e,color:t,isDisabled:r})=>ye("absolute left-0 right-0 z-10","flex items-start gap-x-2 ring-1","first:bottom-full first:rounded-t first:ring-b-0","last:top-full last:rounded-b last:ring-t-0","only:top-full only:rounded only:ring-1",r?"text-muted":on[t].messageText,on[t].borderMessage,on[t].messageBackground,Fi[e].message,{"opacity-60":r}),sS=({size:e})=>ye(Fi[e].icon);function ks(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var lS=typeof global=="object"&&global&&global.Object===Object&&global,uS=typeof self=="object"&&self&&self.Object===Object&&self,fv=lS||uS||Function("return this")(),ou=function(){return fv.Date.now()},cS=/\s/;function dS(e){for(var t=e.length;t--&&cS.test(e.charAt(t)););return t}var hS=/^\s+/;function pS(e){return e&&e.slice(0,dS(e)+1).replace(hS,"")}var Ss=fv.Symbol,gv=Object.prototype,fS=gv.hasOwnProperty,gS=gv.toString,ea=Ss?Ss.toStringTag:void 0;function mS(e){var t=fS.call(e,ea),r=e[ea];try{e[ea]=void 0;var n=!0}catch{}var i=gS.call(e);return n&&(t?e[ea]=r:delete e[ea]),i}var vS=Object.prototype,xS=vS.toString;function bS(e){return xS.call(e)}var yS="[object Null]",wS="[object Undefined]",gp=Ss?Ss.toStringTag:void 0;function kS(e){return e==null?e===void 0?wS:yS:gp&&gp in Object(e)?mS(e):bS(e)}function SS(e){return e!=null&&typeof e=="object"}var CS="[object Symbol]";function ES(e){return typeof e=="symbol"||SS(e)&&kS(e)==CS}var mp=NaN,_S=/^[-+]0x[0-9a-f]+$/i,IS=/^0b[01]+$/i,AS=/^0o[0-7]+$/i,TS=parseInt;function vp(e){if(typeof e=="number")return e;if(ES(e))return mp;if(ks(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ks(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pS(e);var r=IS.test(e);return r||AS.test(e)?TS(e.slice(2),r?2:8):_S.test(e)?mp:+e}var PS="Expected a function",NS=Math.max,OS=Math.min;function ns(e,t,r){var n,i,a,o,s,u,c=0,d=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(PS);t=vp(t)||0,ks(r)&&(d=!!r.leading,h="maxWait"in r,a=h?NS(vp(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f);function g(m){var T=n,P=i;return n=i=void 0,c=m,o=e.apply(P,T),o}function x(m){return c=m,s=setTimeout(y,t),d?g(m):o}function v(m){var T=m-u,P=m-c,V=t-T;return h?OS(V,a-P):V}function b(m){var T=m-u,P=m-c;return u===void 0||T>=t||T<0||h&&P>=a}function y(){var m=ou();if(b(m))return k(m);s=setTimeout(y,v(m))}function k(m){return s=void 0,f&&n?g(m):(n=i=void 0,o)}function C(){s!==void 0&&clearTimeout(s),c=0,n=u=i=s=void 0}function I(){return s===void 0?o:k(ou())}function w(){var m=ou(),T=b(m);if(n=arguments,i=this,u=m,T){if(s===void 0)return x(u);if(h)return clearTimeout(s),s=setTimeout(y,t),g(u)}return s===void 0&&(s=setTimeout(y,t)),o}return w.cancel=C,w.flush=I,w}var RS="Expected a function";function LS(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(RS);return ks(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ns(e,t,{leading:n,maxWait:t,trailing:i})}var wi=function(){return wi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},wi.apply(this,arguments)};function mv(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function vv(e){return!e||!e.ownerDocument?document:e.ownerDocument}var xv=function(e){var t={},r=Array.prototype.reduce.call(e,function(n,i){var a=i.name.match(/data-simplebar-(.+)/);if(a){var o=a[1].replace(/\W+(.)/g,function(s,u){return u.toUpperCase()});switch(i.value){case"true":n[o]=!0;break;case"false":n[o]=!1;break;case void 0:n[o]=!0;break;default:n[o]=i.value}}return n},t);return r};function bv(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function yv(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function wv(e){return".".concat(e.split(" ").join("."))}var cd=!!(typeof window<"u"&&window.document&&window.document.createElement),DS=Object.freeze({__proto__:null,addClasses:bv,canUseDOM:cd,classNamesToQuery:wv,getElementDocument:vv,getElementWindow:mv,getOptions:xv,removeClasses:yv}),xi=null,xp=null;cd&&window.addEventListener("resize",function(){xp!==window.devicePixelRatio&&(xp=window.devicePixelRatio,xi=null)});function bp(){if(xi===null){if(typeof document>"u")return xi=0,xi;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var r=t.getBoundingClientRect().right;e.removeChild(t),xi=r}return xi}var xn=mv,su=vv,VS=xv,bn=bv,yn=yv,ar=wv,ta=(function(){function e(t,r){r===void 0&&(r={});var n=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=xn(n.el);n.scrollXTicking||(i.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(i.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,bn(n.el,n.classNames.scrolling)),n.showScrollbar("x"),n.showScrollbar("y"),n.onStopScrolling()},this.scrollX=function(){n.axis.x.isOverflowing&&n.positionScrollbar("x"),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&n.positionScrollbar("y"),n.scrollYTicking=!1},this._onStopScrolling=function(){yn(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(bn(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){yn(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(i){n.mouseX=i.clientX,n.mouseY=i.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this._onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!n.axis.x.track.el||!n.axis.y.track.el||!n.axis.x.scrollbar.el||!n.axis.y.scrollbar.el)){var a,o;n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(a=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(o=n.isWithinBounds(n.axis.y.track.rect)),(a||o)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(a&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(i,"x"):n.onTrackClick(i,"x")),o&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(i,"y"):n.onTrackClick(i,"y"))))}},this.drag=function(i){var a,o,s,u,c,d,h,f,g,x,v;if(!(!n.draggedAxis||!n.contentWrapperEl)){var b,y=n.axis[n.draggedAxis].track,k=(o=(a=y.rect)===null||a===void 0?void 0:a[n.axis[n.draggedAxis].sizeAttr])!==null&&o!==void 0?o:0,C=n.axis[n.draggedAxis].scrollbar,I=(u=(s=n.contentWrapperEl)===null||s===void 0?void 0:s[n.axis[n.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,w=parseInt((d=(c=n.elStyles)===null||c===void 0?void 0:c[n.axis[n.draggedAxis].sizeAttr])!==null&&d!==void 0?d:"0px",10);i.preventDefault(),i.stopPropagation(),n.draggedAxis==="y"?b=i.pageY:b=i.pageX;var m=b-((f=(h=y.rect)===null||h===void 0?void 0:h[n.axis[n.draggedAxis].offsetAttr])!==null&&f!==void 0?f:0)-n.axis[n.draggedAxis].dragOffset;m=n.draggedAxis==="x"&&n.isRtl?((x=(g=y.rect)===null||g===void 0?void 0:g[n.axis[n.draggedAxis].sizeAttr])!==null&&x!==void 0?x:0)-C.size-m:m;var T=m/(k-C.size),P=T*(I-w);n.draggedAxis==="x"&&n.isRtl&&(P=!((v=e.getRtlHelpers())===null||v===void 0)&&v.isScrollingToNegative?-P:P),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=P}},this.onEndDrag=function(i){n.isDragging=!1;var a=su(n.el),o=xn(n.el);i.preventDefault(),i.stopPropagation(),yn(n.el,n.classNames.dragging),n.onStopScrolling(),a.removeEventListener("mousemove",n.drag,!0),a.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=o.setTimeout(function(){a.removeEventListener("click",n.preventClick,!0),a.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=wi(wi({},e.defaultOptions),r),this.classNames=wi(wi({},e.defaultOptions.classNames),r.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=LS(this._onMouseMove,64),this.onWindowResize=ns(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=ns(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=ns(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var r=t.firstElementChild,n=r==null?void 0:r.firstElementChild;if(!n)return null;document.body.appendChild(r),r.scrollLeft=0;var i=e.getOffset(r),a=e.getOffset(n);r.scrollLeft=-999;var o=e.getOffset(n);return document.body.removeChild(r),e.rtlHelpers={isScrollOriginAtZero:i.left!==a.left,isScrollingToNegative:a.left!==o.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:bp()}catch{return bp()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=su(t),i=xn(t);return{top:r.top+(i.pageYOffset||n.documentElement.scrollTop),left:r.left+(i.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){cd&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,r;this.wrapperEl=this.el.querySelector(ar(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(ar(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(ar(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(ar(this.classNames.offset)),this.maskEl=this.el.querySelector(ar(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,ar(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(ar(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(ar(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(ar(this.classNames.track)).concat(ar(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(ar(this.classNames.track)).concat(ar(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(ar(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(ar(this.classNames.scrollbar)))||null,this.options.autoHide||(bn(this.axis.x.scrollbar.el,this.classNames.visible),bn(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=xn(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(r=this.contentWrapperEl)===null||r===void 0||r.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,a=n.ResizeObserver||ResizeObserver;this.resizeObserver=new a(function(){i&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new n.MutationObserver(function(){n.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=xn(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||r>0,a=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,s=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=i?"".concat(r||c,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var d=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&c>r,this.axis.y.isOverflowing=u>d,this.axis.x.isOverflowing=o==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=s==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var h=this.axis.x.isOverflowing?this.scrollbarWidth:0,f=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>a-f,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>d-h,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var r,n;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],a=(n=(r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])!==null&&n!==void 0?n:0,o=a/i,s;return s=Math.max(~~(o*a),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(s=Math.min(s,this.options.scrollbarMaxSize)),s},e.prototype.positionScrollbar=function(t){var r,n,i;t===void 0&&(t="y");var a=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!a.el||!this.elStyles)){var o=this.contentWrapperEl[this.axis[t].scrollSizeAttr],s=((r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),c=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];c=t==="x"&&this.isRtl&&!((n=e.getRtlHelpers())===null||n===void 0)&&n.isScrollOriginAtZero?-c:c,t==="x"&&this.isRtl&&(c=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?c:-c);var d=c/(o-u),h=~~((s-a.size)*d);h=t==="x"&&this.isRtl?-h+(s-a.size):h,a.el.style.transform=t==="x"?"translate3d(".concat(h,"px, 0, 0)"):"translate3d(0, ".concat(h,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var r=this.axis[t].track.el,n=this.axis[t].scrollbar.el;!r||!n||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(bn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(yn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var r=this.axis[t];!r.track.el||!r.scrollbar.el||(r.track.rect=r.track.el.getBoundingClientRect(),r.scrollbar.rect=r.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(r.track.rect)?(this.showScrollbar(t),bn(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?bn(r.scrollbar.el,this.classNames.hover):yn(r.scrollbar.el,this.classNames.hover)):(yn(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),yn(this.axis[t].track.el,this.classNames.hover),yn(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,r){var n;r===void 0&&(r="y"),this.isDragging=!0;var i=su(this.el),a=xn(this.el),o=this.axis[r].scrollbar,s=r==="y"?t.pageY:t.pageX;this.axis[r].dragOffset=s-(((n=o.rect)===null||n===void 0?void 0:n[this.axis[r].offsetAttr])||0),this.draggedAxis=r,bn(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,r){var n=this,i,a,o,s;r===void 0&&(r="y");var u=this.axis[r];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var c=xn(this.el);this.axis[r].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var d=this.axis[r].scrollbar,h=(a=(i=d.rect)===null||i===void 0?void 0:i[this.axis[r].offsetAttr])!==null&&a!==void 0?a:0,f=parseInt((s=(o=this.elStyles)===null||o===void 0?void 0:o[this.axis[r].sizeAttr])!==null&&s!==void 0?s:"0px",10),g=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],x=r==="y"?this.mouseY-h:this.mouseX-h,v=x<0?-1:1,b=v===-1?g-f:g+f,y=40,k=function(){n.contentWrapperEl&&(v===-1?g>b&&(g-=y,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=g,c.requestAnimationFrame(k)):g<b&&(g+=y,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=g,c.requestAnimationFrame(k)))};k()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=xn(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,r){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return n.call(i,r)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=VS,e.helpers=DS,e})(),vr=function(){return vr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},vr.apply(this,arguments)};function MS(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var dd=z.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,i=n===void 0?{}:n,a=MS(e,["children","scrollableNodeProps"]),o=z.useRef(),s=z.useRef(),u=z.useRef(),c={},d={};Object.keys(a).forEach(function(g){Object.prototype.hasOwnProperty.call(ta.defaultOptions,g)?c[g]=a[g]:d[g]=a[g]});var h=vr(vr({},ta.defaultOptions.classNames),c.classNames),f=vr(vr({},i),{className:"".concat(h.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:c.tabIndex||ta.defaultOptions.tabIndex,role:"region","aria-label":c.ariaLabel||ta.defaultOptions.ariaLabel});return z.useEffect(function(){var g;return s.current=f.ref?f.ref.current:s.current,o.current&&(g=new ta(o.current,vr(vr(vr({},c),s.current&&{scrollableNode:s.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(g):t&&(t.current=g)),function(){g==null||g.unMount(),g=null,typeof t=="function"&&t(null)}},[]),z.createElement("div",vr({"data-simplebar":"init",ref:o},d),z.createElement("div",{className:h.wrapper},z.createElement("div",{className:h.heightAutoObserverWrapperEl},z.createElement("div",{className:h.heightAutoObserverEl})),z.createElement("div",{className:h.mask},z.createElement("div",{className:h.offset},typeof r=="function"?r({scrollableNodeRef:s,scrollableNodeProps:vr(vr({},f),{ref:s}),contentNodeRef:u,contentNodeProps:{className:h.contentEl,ref:u}}):z.createElement("div",vr({},f),z.createElement("div",{className:h.contentEl},r)))),z.createElement("div",{className:h.placeholder})),z.createElement("div",{className:"".concat(h.track," ").concat(h.horizontal)},z.createElement("div",{className:h.scrollbar})),z.createElement("div",{className:"".concat(h.track," ").concat(h.vertical)},z.createElement("div",{className:h.scrollbar})))});dd.displayName="SimpleBar";const kv=L.forwardRef(({size:e="md",color:t="primary",isInvalid:r=!1,isDisabled:n=!1,isReadOnly:i=!1,className:a,children:o,...s},u)=>{const[c,d]=L.useState(!1),[h,f]=L.useState(!1),g={size:e,color:r?"negative":t,isInvalid:r,isDisabled:n,isReadOnly:i,hasMessage:c,setHasMessage:d,hasArea:h,setHasArea:f};return _.jsx(pv.Provider,{value:g,children:_.jsx("div",{ref:u,"data-qui":"Input",className:ye(rS(),a),...s,children:o})})}),Sv=L.forwardRef(({className:e,children:t,...r},n)=>{const{size:i,color:a,isDisabled:o,isReadOnly:s,hasMessage:u,hasArea:c,isInvalid:d}=Ha();return _.jsx("div",{ref:n,"data-qui":"InputGroup",className:ye(nS({size:i,color:a,isDisabled:o,isReadOnly:s,hasMessage:u,hasArea:c,isInvalid:d}),e),...r,children:t})}),Cv=L.forwardRef(({className:e,...t},r)=>{const{size:n,color:i,isInvalid:a,isDisabled:o,isReadOnly:s}=Ha(),{isDisabled:u,isReadOnly:c,...d}=t;return _.jsx("input",{ref:r,disabled:o||u,readOnly:c||s||!1,"aria-invalid":a,className:ye(iS({size:n,color:i}),e),...d})}),Ev=L.forwardRef(({className:e,autoHeight:t,...r},n)=>{const{size:i,color:a,isInvalid:o,isDisabled:s,setHasArea:u}=Ha(),c=L.useRef(null),d=n||c,h=L.useRef(null);L.useEffect(()=>(u(!0),()=>{u(!1)}),[u]);const f=L.useCallback(()=>{if(c.current){const k=c.current;k.style.height="auto",k.style.height=`${k.scrollHeight}px`}},[]),g=k=>{var C;f(),(C=r.onInput)==null||C.call(r,k)};L.useEffect(()=>{f()},[f,r.value]),L.useEffect(()=>{t&&h.current&&h.current.style.removeProperty("height")},[t]);const x=k=>{k.preventDefault();const C=h.current;if(!C)return;const I=k.clientY,w=C.offsetHeight,m=P=>{const V=w+(P.clientY-I);V>30&&(C.style.height=V+"px")},T=()=>{document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",T)};document.addEventListener("mousemove",m),document.addEventListener("mouseup",T)},{isDisabled:v,isReadOnly:b,...y}=r;return _.jsxs("div",{ref:h,className:ye("w-full relative",!t&&"h-[120px]"),children:[t?_.jsx("textarea",{ref:d,rows:1,className:ye(fp({size:i,color:a}),e),disabled:s||v,onInput:g,readOnly:b||!1,"aria-invalid":o,style:{overflow:"hidden"},...y}):_.jsx(dd,{style:{height:"100%"},children:_.jsx("textarea",{ref:d,rows:1,className:ye(fp({size:i,color:a}),e),disabled:s||v,onInput:g,readOnly:b||!1,"aria-invalid":o,style:{height:"auto",overflow:"hidden",width:"100%"},...y})}),!t&&_.jsx("div",{className:"absolute right-0 bottom-0 -translate-x-full -translate-y-full size-1.75 text-sm cursor-se-resize z-10",onMouseDown:x,children:_.jsx(q1,{})})]})}),jS=L.forwardRef(({isAction:e=!1,className:t,isDisabled:r=!1,style:n,children:i,...a},o)=>{const{size:s,color:u,isDisabled:c}=Ha(),d=r||c,h=aS({size:s,color:u,isDisabled:d,isAction:e});return _.jsx("div",{ref:o,"data-qui":"InputIcon",className:ye(h,t),style:n,role:e||a.onClick?"button":void 0,tabIndex:(e||a.onClick)&&!d?0:void 0,"aria-disabled":d,...a,children:i})}),_v=L.forwardRef(({icon:e,className:t,children:r,...n},i)=>{const{size:a,color:o,setHasMessage:s,isDisabled:u}=Ha();return L.useEffect(()=>(s(!0),()=>{s(!1)}),[s]),_.jsxs("div",{ref:i,"data-qui":"InputMessage",role:"alert",className:ye(oS({size:a,color:o,isDisabled:u}),t),...n,children:[e!==void 0&&_.jsx("div",{className:ye(sS({size:a}),t),children:e}),_.jsx("p",{children:r})]})});kv.displayName="InputRoot";Sv.displayName="InputGroup";Cv.displayName="InputField";Ev.displayName="InputArea";jS.displayName="InputIcon";_v.displayName="InputMessage";const Vr={Root:kv,Group:Sv,Field:Cv,Area:Ev,Message:_v},ya={primary:{container:"bg-primary-light",text:"text-primary-dark",icon:"text-primary-dark",button:"hover:bg-primary-hover hover:text-body"},positive:{container:"bg-positive-light",text:"text-positive-dark",icon:"text-positive-dark",button:"hover:bg-positive hover:text-body"},negative:{container:"bg-negative-light",text:"text-negative-dark",icon:"text-negative-dark",button:"hover:bg-negative hover:text-body"},warning:{container:"bg-warning-light",text:"text-warning-dark",icon:"text-warning-dark",button:"hover:bg-warning hover:text-body"}},FS=({color:e})=>ye("min-h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",ya[e].container,ya[e].icon),BS=({color:e})=>ye("text-xs font-medium leading-3",ya[e].text),zS=({color:e})=>ye("p-0.5 rounded cursor-pointer",ya[e].button,ya[e].icon),Ut=({label:e,color:t="primary",position:r="up",showCloseButton:n=!1,icon:i,children:a,delay:o=0,trigger:s="hover",className:u,container:c,isHidden:d=!1})=>{const[h,f]=L.useState(!1),[g,x]=L.useState(!1),[v,b]=L.useState({position:r,transform:""}),y=L.useRef(null),k=L.useRef(null),C=L.useRef(null);L.useEffect(()=>{d&&h&&(f(!1),C.current&&clearTimeout(C.current))},[d,h]);const I=L.useCallback(()=>{if(!y.current||!k.current)return;const F=y.current.getBoundingClientRect(),J=k.current.getBoundingClientRect(),U=window.innerWidth,Y=window.innerHeight,Z=window.scrollX,le=window.scrollY,Q=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,U),fe=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,Y),E=4;let te=r,ae={position:te,transform:""};const N=$=>{const{top:ie,left:oe,width:de,height:he}=F,K=ie+le,xe=oe+Z;switch($){case"up":return{top:`${K-J.height-E}px`,left:`${xe+de/2}px`,transform:"translateX(-50%)"};case"up-start":return{top:`${K-J.height-E}px`,left:`${xe}px`,transform:"translateX(0)"};case"up-end":return{top:`${K-J.height-E}px`,left:`${xe+de-J.width}px`,transform:"translateX(0)"};case"down":return{top:`${K+he+E}px`,left:`${xe+de/2}px`,transform:"translateX(-50%)"};case"down-start":return{top:`${K+he+E}px`,left:`${xe}px`,transform:"translateX(0)"};case"down-end":return{top:`${K+he+E}px`,left:`${xe+de-J.width}px`,transform:"translateX(0)"};case"left":return{top:`${K+he/2}px`,left:`${xe-J.width-E}px`,transform:"translateY(-50%)"};case"left-start":return{top:`${K}px`,left:`${xe-J.width-E}px`,transform:"translateY(0)"};case"left-end":return{top:`${K+he-J.height}px`,left:`${xe-J.width-E}px`,transform:"translateY(0)"};case"right":return{top:`${K+he/2}px`,left:`${xe+de+E}px`,transform:"translateY(-50%)"};case"right-start":return{top:`${K}px`,left:`${xe+de+E}px`,transform:"translateY(0)"};case"right-end":return{top:`${K+he-J.height}px`,left:`${xe+de+E}px`,transform:"translateY(0)"};default:return{}}},ee={up:{fits:F.top-J.height-E>=0},"up-start":{fits:F.top-J.height-E>=0&&F.left+J.width<=U},"up-end":{fits:F.top-J.height-E>=0&&F.right-J.width>=0},down:{fits:F.bottom+J.height+E<=Y&&F.bottom+J.height+E<=fe},"down-start":{fits:F.bottom+J.height+E<=Y&&F.bottom+J.height+E<=fe&&F.left+J.width<=U},"down-end":{fits:F.bottom+J.height+E<=Y&&F.bottom+J.height+E<=fe&&F.right-J.width>=0},left:{fits:F.left-J.width-E>=0},"left-start":{fits:F.left-J.width-E>=0&&F.top+J.height<=Y},"left-end":{fits:F.left-J.width-E>=0&&F.bottom-J.height>=0},right:{fits:F.right+J.width+E<=U&&F.right+J.width+E<=Q},"right-start":{fits:F.right+J.width+E<=U&&F.right+J.width+E<=Q&&F.top+J.height<=Y},"right-end":{fits:F.right+J.width+E<=U&&F.right+J.width+E<=Q&&F.bottom-J.height>=0}},H=F.left+F.width/2-J.width/2,W=F.left+F.width/2+J.width/2;if((r==="up"||r==="down")&&(H<0||W>U)&&(ee[r].fits=!1),ee[r].fits){const $=N(r);ae={position:r,...$,transform:$.transform||""}}else{const $=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(ie=>ee[ie].fits);if($){te=$;const ie=N($);ae={position:te,...ie,transform:ie.transform||""}}else{const ie={up:F.top,"up-start":F.top,"up-end":F.top,down:Math.min(Y-F.bottom,fe-F.bottom),"down-start":Math.min(Y-F.bottom,fe-F.bottom),"down-end":Math.min(Y-F.bottom,fe-F.bottom),left:F.left,"left-start":F.left,"left-end":F.left,right:Math.min(U-F.right,Q-F.right),"right-start":Math.min(U-F.right,Q-F.right),"right-end":Math.min(U-F.right,Q-F.right)},oe=Object.entries(ie).reduce((he,[K,xe])=>xe>he.space?{position:K,space:xe}:he,{position:"up",space:0}).position;te=oe;const de=N(oe);ae={position:te,...de,transform:de.transform||""}}}b(ae)},[r]),w=()=>{s!=="click"||d||(f(!0),C.current&&clearTimeout(C.current),C.current=setTimeout(()=>{g||f(!1)},o))},m=F=>{F.stopPropagation(),f(!1),C.current&&clearTimeout(C.current)},T=()=>{x(!0),C.current&&clearTimeout(C.current)},P=()=>{x(!1),h&&(C.current=setTimeout(()=>{f(!1)},o))},V=()=>{s==="hover"&&!d&&(f(!0),C.current&&clearTimeout(C.current))},O=()=>{s==="hover"&&(C.current=setTimeout(()=>{f(!1)},o))};L.useEffect(()=>{if(h){const F=requestAnimationFrame(()=>{I()});return()=>cancelAnimationFrame(F)}},[h,e,I]),L.useEffect(()=>{if(h){const F=setTimeout(()=>I(),0);return()=>clearTimeout(F)}},[h,I]),L.useEffect(()=>{const F=()=>{h&&I()},J=()=>{h&&I()};return window.addEventListener("resize",F),window.addEventListener("scroll",J,!0),()=>{window.removeEventListener("resize",F),window.removeEventListener("scroll",J,!0),C.current&&clearTimeout(C.current)}},[h,I]);const B=c||(typeof document<"u"?document.body:null);return B?_.jsxs(_.Fragment,{children:[_.jsx("div",{"data-qui":"Tooltip",ref:y,onClick:w,onMouseEnter:V,onMouseLeave:O,className:ye("relative inline-flex items-center",u),children:a}),h&&!!e&&Fa.createPortal(_.jsxs("div",{ref:k,role:"tooltip",className:FS({color:t}),style:{position:"absolute",left:v.left??0,top:v.top??0,transform:v.transform,zIndex:1e3,visibility:v.left?"visible":"hidden"},onMouseEnter:T,onMouseLeave:P,children:[i&&_.jsx("span",{"data-testid":"tooltip-icon",children:i}),_.jsx("div",{className:BS({color:t}),children:e}),n&&_.jsx("div",{onClick:m,className:zS({color:t}),role:"button",children:_.jsx(il,{})})]}),B)]}):null};var yp;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(yp||(yp={}));const HS=Object.freeze({x:0,y:0});var ki;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(ki||(ki={}));var wp;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(wp||(wp={}));var Ir;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ir||(Ir={}));Ir.Space,Ir.Enter,Ir.Esc,Ir.Space,Ir.Enter,Ir.Tab;var kp;(function(e){e[e.RightClick=2]="RightClick"})(kp||(kp={}));var Sp;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Sp||(Sp={}));var Cp;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Cp||(Cp={}));ki.Backward+"",ki.Forward+"",ki.Backward+"",ki.Forward+"";var hc;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(hc||(hc={}));var pc;(function(e){e.Optimized="optimized"})(pc||(pc={}));hc.WhileDragging,pc.Optimized;({...HS});var Ep;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ep||(Ep={}));Ir.Down,Ir.Right,Ir.Up,Ir.Left;const Iv={sm:{padding:"px-4 py-0.5",text:"text-xxs",icon:"w-3 h-3",gap:"gap-0.5",badge:"min-w-3.5 h-3.5 text-2"},md:{padding:"px-6 py-1",text:"text-s",icon:"w-4 h-4",gap:"gap-1",badge:"min-w-4.5 h-4.5 text-xxs"},lg:{padding:"px-8 py-1.5",text:"text-base",icon:"w-5 h-5",gap:"gap-1.5",badge:"min-w-5 h-5 text-xs"}},WS={primary:{active:{bg:"bg-primary",text:"text-button-text",border:"border-primary"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-primary-hover",text:"hover:text-button-text"}},positive:{active:{bg:"bg-positive",text:"text-button-text",border:"border-positive"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-positive-hover",text:"hover:text-body"}},warning:{active:{bg:"bg-warning",text:"text-warning-text",border:"border-warning"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-warning-hover",text:"hover:text-body"}},negative:{active:{bg:"bg-negative",text:"text-button-text",border:"border-negative"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-negative-hover",text:"hover:text-body"}}},US=(e,t,r,n)=>{const i=WS[e],a=Iv[t],o="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return n?ye(o,a.padding,a.text,a.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):r?ye(o,a.padding,a.text,a.gap,i.active.bg,i.active.text,"shadow-xs"):ye(o,a.padding,a.text,a.gap,i.inactive.bg,i.inactive.text,i.hover.bg,i.hover.text)},$S=(e,t)=>ye("flex items-center justify-center",Iv[e].icon,{"opacity-50":t}),qS=()=>ye("whitespace-nowrap"),Av=(e,t)=>{const r=ye("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return e&&!t?ye(r,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):t&&!e?ye(r,"border border-transparent bg-tab-inactive-bg text-inactive-text"):ye(r,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},KS=L.createContext(void 0),GS=L.forwardRef(({value:e,label:t,icon:r,disabled:n,children:i,className:a,onClick:o,active:s,content:u,...c},d)=>{const h=L.useContext(KS);if(!h)return null;const{activeTab:f,onTabChange:g,variant:x,color:v,size:b,showIcons:y,disabled:k}=h,C=s!==void 0?s:f===e,I=n||k,w=m=>{I||(g(e),o==null||o(m))};return x==="file"?_.jsx("div",{"data-qui":"FileTabItem",className:ye(Av(C,!1),"cursor-pointer",a),onClick:m=>!I&&w(m),children:i||_.jsx(_.Fragment,{children:_.jsxs("span",{className:"flex items-center gap-2",children:[r,_.jsx("span",{children:t})]})})}):_.jsxs("button",{ref:d,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":C,"aria-disabled":I,className:ye(US(v,b,C,I||!1),a),onClick:w,disabled:I,...c,children:[y&&r&&_.jsx("span",{className:$S(b,I||!1),children:r}),_.jsx("span",{className:qS(),children:i||t})]})});GS.displayName="TabItem";const JS=L.forwardRef(({isActive:e=!1,isDesactive:t=!1,children:r,...n},i)=>_.jsx("div",{"data-qui":"TabNavContainer",className:Av(e,t),ref:i,...n,children:r}));JS.displayName="TabNavContainer";var Rt=function(){return Rt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Rt.apply(this,arguments)},_p={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Ip={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Ao={width:"20px",height:"20px",position:"absolute",zIndex:1},XS={top:Rt(Rt({},_p),{top:"-5px"}),right:Rt(Rt({},Ip),{left:void 0,right:"-5px"}),bottom:Rt(Rt({},_p),{top:void 0,bottom:"-5px"}),left:Rt(Rt({},Ip),{left:"-5px"}),topRight:Rt(Rt({},Ao),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Rt(Rt({},Ao),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Rt(Rt({},Ao),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Rt(Rt({},Ao),{left:"-10px",top:"-10px",cursor:"nw-resize"})},YS=L.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,i=e.replaceStyles,a=e.className,o=L.useCallback(function(c){t(c,r)},[t,r]),s=L.useCallback(function(c){t(c,r)},[t,r]),u=L.useMemo(function(){return Rt(Rt({position:"absolute",userSelect:"none"},XS[r]),i??{})},[i,r]);return _.jsx("div",{className:a||void 0,style:u,onMouseDown:o,onTouchStart:s,children:n})}),QS=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ur=function(){return Ur=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ur.apply(this,arguments)},ZS={width:"auto",height:"auto"},To=function(e,t,r){return Math.max(Math.min(e,r),t)},Ap=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},di=function(e,t){return new RegExp(e,"i").test(t)},Po=function(e){return!!(e.touches&&e.touches.length)},eC=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Tp=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(a,o,s){return Math.abs(o-e)<Math.abs(t[a]-e)?s:a},0),i=Math.abs(t[n]-e);return r===0||i<r?t[n]:e},lu=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},No=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return r*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return n*i}}return e},tC=function(e,t,r,n,i,a,o){return n=No(n,e.width,t,r),i=No(i,e.height,t,r),a=No(a,e.width,t,r),o=No(o,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof a>"u"?void 0:Number(a),minHeight:typeof o>"u"?void 0:Number(o)}},rC=function(e){return Array.isArray(e)?e:[e,e]},nC=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Pp="__resizable_base__",iC=(function(e){QS(t,e);function t(r){var n,i,a,o,s=e.call(this,r)||this;return s.ratio=1,s.resizable=null,s.parentLeft=0,s.parentTop=0,s.resizableLeft=0,s.resizableRight=0,s.resizableTop=0,s.resizableBottom=0,s.targetLeft=0,s.targetTop=0,s.delta={width:0,height:0},s.appendBase=function(){if(!s.resizable||!s.window)return null;var u=s.parentNode;if(!u)return null;var c=s.window.document.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.position="absolute",c.style.transform="scale(0, 0)",c.style.left="0",c.style.flex="0 0 100%",c.classList?c.classList.add(Pp):c.className+=Pp,u.appendChild(c),c},s.removeBase=function(u){var c=s.parentNode;c&&c.removeChild(u)},s.state={isResizing:!1,width:(i=(n=s.propsSize)===null||n===void 0?void 0:n.width)!==null&&i!==void 0?i:"auto",height:(o=(a=s.propsSize)===null||a===void 0?void 0:a.height)!==null&&o!==void 0?o:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},s.onResizeStart=s.onResizeStart.bind(s),s.onMouseMove=s.onMouseMove.bind(s),s.onMouseUp=s.onMouseUp.bind(s),s}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||ZS},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,a=this.resizable.offsetHeight,o=this.resizable.style.position;o!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:a,this.resizable.style.position=o}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,i=function(s){var u;if(typeof r.state[s]>"u"||r.state[s]==="auto")return"auto";if(r.propsSize&&r.propsSize[s]&&!((u=r.propsSize[s])===null||u===void 0)&&u.toString().endsWith("%")){if(r.state[s].toString().endsWith("%"))return r.state[s].toString();var c=r.getParentSize(),d=Number(r.state[s].toString().replace("px","")),h=d/c[s]*100;return"".concat(h,"%")}return lu(r.state[s])},a=n&&typeof n.width<"u"&&!this.state.isResizing?lu(n.width):i("width"),o=n&&typeof n.height<"u"&&!this.state.isResizing?lu(n.height):i("height");return{width:a,height:o}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var a={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=i),this.removeBase(r),a},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var i=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof i>"u"||i==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var i=this.props.boundsByDirection,a=this.state.direction,o=i&&di("left",a),s=i&&di("top",a),u,c;if(this.props.bounds==="parent"){var d=this.parentNode;d&&(u=o?this.resizableRight-this.parentLeft:d.offsetWidth+(this.parentLeft-this.resizableLeft),c=s?this.resizableBottom-this.parentTop:d.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(u=o?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(u=o?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(r=r&&r<u?r:u),c&&Number.isFinite(c)&&(n=n&&n<c?n:c),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var i=this.props.scale||1,a=rC(this.props.resizeRatio||1),o=a[0],s=a[1],u=this.state,c=u.direction,d=u.original,h=this.props,f=h.lockAspectRatio,g=h.lockAspectRatioExtraHeight,x=h.lockAspectRatioExtraWidth,v=d.width,b=d.height,y=g||0,k=x||0;return di("right",c)&&(v=d.width+(r-d.x)*o/i,f&&(b=(v-k)/this.ratio+y)),di("left",c)&&(v=d.width-(r-d.x)*o/i,f&&(b=(v-k)/this.ratio+y)),di("bottom",c)&&(b=d.height+(n-d.y)*s/i,f&&(v=(b-y)*this.ratio+k)),di("top",c)&&(b=d.height-(n-d.y)*s/i,f&&(v=(b-y)*this.ratio+k)),{newWidth:v,newHeight:b}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,i,a){var o=this.props,s=o.lockAspectRatio,u=o.lockAspectRatioExtraHeight,c=o.lockAspectRatioExtraWidth,d=typeof a.width>"u"?10:a.width,h=typeof i.width>"u"||i.width<0?r:i.width,f=typeof a.height>"u"?10:a.height,g=typeof i.height>"u"||i.height<0?n:i.height,x=u||0,v=c||0;if(s){var b=(f-x)*this.ratio+v,y=(g-x)*this.ratio+v,k=(d-v)/this.ratio+x,C=(h-v)/this.ratio+x,I=Math.max(d,b),w=Math.min(h,y),m=Math.max(f,k),T=Math.min(g,C);r=To(r,I,w),n=To(n,m,T)}else r=To(r,d,h),n=To(n,f,g);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var i=n.getBoundingClientRect();this.parentLeft=i.left*r,this.parentTop=i.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var a=this.props.bounds.getBoundingClientRect();this.targetLeft=a.left*r,this.targetTop=a.top*r}if(this.resizable){var o=this.resizable.getBoundingClientRect(),s=o.left,u=o.top,c=o.right,d=o.bottom;this.resizableLeft=s*r,this.resizableRight=c*r,this.resizableTop=u*r,this.resizableBottom=d*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var i=0,a=0;if(r.nativeEvent&&eC(r.nativeEvent)?(i=r.nativeEvent.clientX,a=r.nativeEvent.clientY):r.nativeEvent&&Po(r.nativeEvent)&&(i=r.nativeEvent.touches[0].clientX,a=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var o=this.props.onResizeStart(r,n,this.resizable);if(o===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var s,u=this.window.getComputedStyle(this.resizable);if(u.flexBasis!=="auto"){var c=this.parentNode;if(c){var d=this.window.getComputedStyle(c).flexDirection;this.flexDir=d.startsWith("row")?"row":"column",s=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var h={original:{x:i,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Ur(Ur({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:s};this.setState(h)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Po(r))try{r.preventDefault(),r.stopPropagation()}catch{}var i=this.props,a=i.maxWidth,o=i.maxHeight,s=i.minWidth,u=i.minHeight,c=Po(r)?r.touches[0].clientX:r.clientX,d=Po(r)?r.touches[0].clientY:r.clientY,h=this.state,f=h.direction,g=h.original,x=h.width,v=h.height,b=this.getParentSize(),y=tC(b,this.window.innerWidth,this.window.innerHeight,a,o,s,u);a=y.maxWidth,o=y.maxHeight,s=y.minWidth,u=y.minHeight;var k=this.calculateNewSizeFromDirection(c,d),C=k.newHeight,I=k.newWidth,w=this.calculateNewMaxFromBoundary(a,o);this.props.snap&&this.props.snap.x&&(I=Tp(I,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(C=Tp(C,this.props.snap.y,this.props.snapGap));var m=this.calculateNewSizeFromAspectRatio(I,C,{width:w.maxWidth,height:w.maxHeight},{width:s,height:u});if(I=m.newWidth,C=m.newHeight,this.props.grid){var T=Ap(I,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),P=Ap(C,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),V=this.props.snapGap||0,O=V===0||Math.abs(T-I)<=V?T:I,B=V===0||Math.abs(P-C)<=V?P:C;I=O,C=B}var F={width:I-g.width,height:C-g.height};if(this.delta=F,x&&typeof x=="string"){if(x.endsWith("%")){var J=I/b.width*100;I="".concat(J,"%")}else if(x.endsWith("vw")){var U=I/this.window.innerWidth*100;I="".concat(U,"vw")}else if(x.endsWith("vh")){var Y=I/this.window.innerHeight*100;I="".concat(Y,"vh")}}if(v&&typeof v=="string"){if(v.endsWith("%")){var J=C/b.height*100;C="".concat(J,"%")}else if(v.endsWith("vw")){var U=C/this.window.innerWidth*100;C="".concat(U,"vw")}else if(v.endsWith("vh")){var Y=C/this.window.innerHeight*100;C="".concat(Y,"vh")}}var Z={width:this.createSizeForCssProperty(I,"width"),height:this.createSizeForCssProperty(C,"height")};this.flexDir==="row"?Z.flexBasis=Z.width:this.flexDir==="column"&&(Z.flexBasis=Z.height);var le=this.state.width!==Z.width,Q=this.state.height!==Z.height,fe=this.state.flexBasis!==Z.flexBasis,E=le||Q||fe;E&&Fa.flushSync(function(){n.setState(Z)}),this.props.onResize&&E&&this.props.onResize(r,f,this.resizable,F)}},t.prototype.onMouseUp=function(r){var n,i,a=this.state,o=a.isResizing,s=a.direction;a.original,!(!o||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(r,s,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Ur(Ur({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var n,i;this.setState({width:(n=r.width)!==null&&n!==void 0?n:"auto",height:(i=r.height)!==null&&i!==void 0?i:"auto"})},t.prototype.renderResizer=function(){var r=this,n=this.props,i=n.enable,a=n.handleStyles,o=n.handleClasses,s=n.handleWrapperStyle,u=n.handleWrapperClass,c=n.handleComponent;if(!i)return null;var d=Object.keys(i).map(function(h){return i[h]!==!1?_.jsx(YS,{direction:h,onResizeStart:r.onResizeStart,replaceStyles:a&&a[h],className:o&&o[h],children:c&&c[h]?c[h]:null},h):null});return _.jsx("div",{className:u,style:s,children:d})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(o,s){return nC.indexOf(s)!==-1||(o[s]=r.props[s]),o},{}),i=Ur(Ur(Ur({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var a=this.props.as||"div";return _.jsxs(a,Ur({style:i,className:this.props.className},n,{ref:function(o){o&&(r.resizable=o)},children:[this.state.isResizing&&_.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(L.PureComponent);const aC={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},oC={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},Tv=({depth:e=0,className:t,borderType:r,disabled:n})=>ye("transition-colors duration-200",{"text-body":!n,"text-inactive-text":n},r?oC[r]:"border-panel-border",aC[e],t),sC=e=>{if(!e)return{};const t={},r=e.match(/min-w-\[(\d+)px\]/);r&&(t.minWidth=parseInt(r[1],10));const n=e.match(/max-w-\[(\d+)px\]/);n&&(t.maxWidth=parseInt(n[1],10));const i=e.match(/min-h-\[(\d+)px\]/);i&&(t.minHeight=parseInt(i[1],10));const a=e.match(/max-h-\[(\d+)px\]/);return a&&(t.maxHeight=parseInt(a[1],10)),t},lC=L.forwardRef(({children:e,width:t,height:r,minWidth:n=10,minHeight:i=10,maxWidth:a,maxHeight:o,defaultWidth:s,defaultHeight:u,defaultSize:c,size:d,grid:h,snap:f,lockAspectRatio:g=!1,enable:x,handleStyles:v={},handleClasses:b={},handleComponent:y={},style:k={},className:C,onResizeStart:I,onResize:w,onResizeStop:m,scale:T=1,bounds:P,snapGap:V,as:O="div",depth:B,disabled:F},J)=>{const U=Tv({depth:B,className:C,disabled:F}),Y=sC(C),Z=d?{size:d}:t!==void 0||r!==void 0?{size:{width:t??"auto",height:r??"auto"}}:{},le=c?{defaultSize:c}:s!==void 0||u!==void 0?{defaultSize:{width:s??"auto",height:u??"auto"}}:{},Q=L.useRef(null);return L.useImperativeHandle(J,()=>{var fe;return(fe=Q.current)==null?void 0:fe.resizable}),_.jsx(iC,{"data-qui":"Resizable",ref:Q,...Z,...le,minWidth:n??Y.minWidth,minHeight:i??Y.minHeight,maxWidth:a??Y.maxWidth,maxHeight:o??Y.maxHeight,grid:h,snap:f,lockAspectRatio:g,enable:x,handleStyles:v,handleClasses:b,handleComponent:y,style:k,className:ye("relative box-border",U),onResizeStart:I,onResize:w,onResizeStop:m,scale:T,bounds:P,snapGap:V,as:O,children:e})});lC.displayName="Resizable";const hi={sm:{track:"h-4 w-7",thumb:"size-3",thumbUnchecked:"left-0.5",thumbChecked:"left-3.5",label:"text-xs",gap:"gap-2"},md:{track:"h-5 w-9",thumb:"size-4",thumbUnchecked:"left-0.5",thumbChecked:"left-4.5",label:"text-sm",gap:"gap-2.5"},lg:{track:"h-6 w-11",thumb:"size-5",thumbUnchecked:"left-0.5",thumbChecked:"left-5.5",label:"text-base",gap:"gap-3"}},Oo={primary:{bg:"bg-primary",thumb:"group-hover:bg-primary-light",icon:"text-primary"},positive:{bg:"bg-positive",thumb:"group-hover:bg-positive-light",icon:"text-positive"},warning:{bg:"bg-warning",thumb:"group-hover:bg-warning-light",icon:"text-warning"},negative:{bg:"bg-negative",thumb:"group-hover:bg-negative-light",icon:"text-negative"}},uC=(e,t,r,n,i,a)=>({container:ye("inline-flex items-center",hi[e].gap,a),track:ye("relative inline-flex items-center shrink-0 group","transition-colors duration-200 ease-in-out","focus:outline-hidden focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2","border border-input-border rounded-full justify-between px-0.5",hi[e].track,{[Oo[t].bg]:r&&!n&&!i,"bg-input-bg":!r&&!n||i,"bg-panel cursor-not-allowed":n,"cursor-pointer":!n}),thumb:ye("bg-input-text pointer-events-none inline-flex items-center justify-center shadow-xs","transition-all duration-200 ease-in-out","rounded-full absolute",hi[e].thumb,r?hi[e].thumbChecked:hi[e].thumbUnchecked,{[Oo[t].thumb]:!n,"bg-canvas-subtle":n}),iconLeft:ye("flex items-center justify-center z-10 w-1/2 p-0.5",{[Oo[t].icon]:!r&&!n,"text-panel-subtle":n||r}),iconRight:ye("flex items-center justify-center z-10 w-1/2 p-0.5",{[Oo[t].icon]:r&&!n,"text-panel-subtle":n||!r}),label:ye("font-medium text-body",hi[e].label,{"cursor-pointer":!n,"cursor-not-allowed text-muted":n})}),Pv=L.forwardRef(({label:e,checked:t,defaultChecked:r=!1,disabled:n=!1,size:i="md",color:a="primary",icons:o,onChange:s,className:u,id:c,name:d,...h},f)=>{const[g,x]=L.useState(r),v=t!==void 0,b=v?t:g,y=()=>{const C=!b;v||x(C),s==null||s(C)},k=uC(i,a,b,n,!!o,u);return _.jsxs("div",{"data-qui":"Toggle",className:k.container,children:[e&&_.jsx("label",{htmlFor:c,className:k.label,children:e}),_.jsxs("button",{ref:f,...h,type:"button",role:"switch","aria-checked":b,"aria-label":e,disabled:n,onClick:y,name:d,id:c,className:k.track,children:[o&&_.jsx("span",{className:k.iconLeft,children:o.unchecked}),_.jsx("span",{className:k.thumb,"aria-hidden":"true"}),o&&_.jsx("span",{className:k.iconRight,children:o.checked})]})]})});Pv.displayName="Toggle";L.createContext(null);const Bi=L.forwardRef(({depth:e=0,className:t,children:r,borderType:n,disabled:i,...a},o)=>{const s=Tv({depth:e,className:t,borderType:n,disabled:i});return _.jsx("div",{"data-qui":"Panel",ref:o,className:s,"aria-disabled":i,...a,children:r})});Bi.displayName="Panel";const wa={sm:{container:"h-5 px-0.5 gap-1 rounded",text:"text-xxs leading-3",icon:"text-s",iconButton:"text-s p-0.5 cursor-pointer"},md:{container:"h-5.5 px-1 gap-1 rounded",text:"text-xs leading-4",icon:"text-sm",iconButton:" text-sm p-0.5 cursor-pointer"},lg:{container:"h-6 px-1.5 gap-1.5 rounded",text:"text-s leading-none",icon:"text-base",iconButton:"text-base p-0.5 cursor-pointer"}},is={primary:{bg:"bg-primary",text:"text-button-text",border:"border-primary",buttonHover:"hover:bg-primary-hover"},white:{bg:"bg-canvas-default",text:"text-primary",border:"border-canvas-default",buttonHover:"hover:bg-primary-hover hover:text-button-text"},positive:{bg:"bg-positive",text:"text-button-text",border:"border-positive",buttonHover:"hover:bg-positive-hover"},warning:{bg:"bg-warning",text:"text-button-text",border:"border-warning",buttonHover:"hover:bg-warning-hover"},negative:{bg:"bg-negative",text:"text-button-text",border:"border-negative",buttonHover:"hover:bg-negative-hover"},dark:{bg:"bg-input-bg",text:"text-input-text",border:"border-input-border",buttonHover:"hover:bg-primary-hover hover:text-button-text"}},cC=(e,t,r,n)=>ye("inline-flex items-center justify-center font-medium border",wa[e].container,is[t].bg,is[t].text,is[t].border,wa[e].text,{"opacity-60 pointer-events-none":r,"cursor-pointer hover:bg-opacity-90 transition-opacity":n&&!r}),dC=(e,t,r)=>ye({[wa[e].icon]:!r,"bg-canvas-default outline-canvas-default text-primary":r&&t!=="white"||r,"bg-primary outline-primary text-button-text":r&&t==="white"&&!r,"outline-solid outline-1 h-full py-0.5 grid place-items-center -my-1 only:-mx-0.5 first:-ml-1.5 last:-mr-1.5 only:rounded first:rounded-l last:rounded-r":r||r}),hC=e=>ye(wa[e].text),Nv=(e,t,r)=>ye("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",wa[e].iconButton,is[t].buttonHover,{"pointer-events-none":r}),Ov=L.createContext(null),al=()=>{const e=L.useContext(Ov);if(!e)throw new Error("Pill components must be used within a Pill.Root");return e},hd=L.forwardRef(({size:e="md",color:t="primary",className:r,children:n,disabled:i=!1,onClick:a,...o},s)=>{const u={size:e,color:t,disabled:i},c=!!a;return _.jsx(Ov.Provider,{value:u,children:_.jsx("div",{"data-qui":"Pill",ref:s,onClick:a,className:ye(cC(e,t,i,c),r),...o,children:n})})});hd.displayName="Pill.Root";const pd=L.forwardRef(({className:e,children:t,...r},n)=>{const{size:i}=al();return _.jsx("span",{ref:n,className:ye(hC(i),e),...r,children:t})});pd.displayName="Pill.Text";const fd=L.forwardRef(({className:e,children:t,label:r,position:n,...i},a)=>{const{size:o,color:s,disabled:u}=al(),c=!!r,d=_.jsx("span",{ref:a,className:ye(dC(o,s,c),e,{"opacity-60":u}),...i,children:t});return c&&!u?_.jsx(Ut,{label:r||"",position:n||"up",children:d}):d});fd.displayName="Pill.Icon";const Rv=L.forwardRef(({className:e,children:t,...r},n)=>{const{size:i,color:a,disabled:o}=al();return _.jsx("button",{ref:n,type:"button",disabled:o,className:ye(Nv(i,a,o),e),...r,children:t})});Rv.displayName="Pill.Button";const gd=L.forwardRef(({className:e,onClose:t,"aria-label":r="Remove pill",children:n,...i},a)=>{const{size:o,color:s,disabled:u}=al();return _.jsx("button",{ref:a,type:"button",disabled:u,className:ye(Nv(o,s,u),e),onClick:t,"aria-label":r,...i,children:n||_.jsx(il,{})})});gd.displayName="Pill.Close";const Lv=L.forwardRef(({size:e="md",color:t="primary",label:r,icon:n,onClose:i,closable:a=!1,className:o,children:s,disabled:u=!1,...c},d)=>_.jsxs(hd,{ref:d,size:e,color:t,className:o,disabled:u,...c,children:[n&&_.jsx(fd,{children:n}),s||r&&_.jsx(pd,{children:r}),a&&_.jsx(gd,{onClose:i})]}));Lv.displayName="Pill";const pC=Object.assign(Lv,{Root:hd,Text:pd,Icon:fd,Button:Rv,Close:gd}),Dv=L.createContext(null),tr=()=>{const e=L.useContext(Dv);if(!e)throw new Error("Select compound components must be used within Select.Root");return e},Jt={sm:{trigger:"h-5 min-h-fit",control:"min-h-5 p-0.5 gap-1",input:"text-xs h-3.5",placeholder:"placeholder:text-xs text-xs",singleValue:"text-xs",multiValue:"h-3.5 px-0.5 gap-1 text-xxs",multiValueLabel:"text-xxs",multiValueRemove:"w-3 h-3",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-3",dropdownIndicator:"p-0.5 size-3",indicatorSeparator:"h-3",loadingIndicator:"w-3 h-3",menu:"m-0",menuList:"py-1",option:"px-1 py-0.5 text-xs",group:"pt-1",groupHeading:"px-2 py-0.5 text-xxs",noOptionsMessage:"px-2 py-1 text-xxs",loadingMessage:"px-2 py-1 text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{trigger:"h-6 min-h-fit",control:"min-h-6 p-1 gap-1.5",input:"text-s h-4",placeholder:"placeholder:text-s text-s",singleValue:"text-s",multiValue:"h-4 p-1 gap-1 text-xs",multiValueLabel:"text-xs",multiValueRemove:"w-3.5 h-3.5",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-4",dropdownIndicator:"p-0.5 size-4",indicatorSeparator:"h-4",loadingIndicator:"w-4 h-4",menu:"m-0",menuList:"py-1",option:"px-2 py-1 text-s",group:"pt-1.5",groupHeading:"px-3 py-1 text-xs",noOptionsMessage:"px-2 py-1.5 text-xs",loadingMessage:"px-3 py-1.5 text-xs",message:"text-xs p-2",icon:"text-base"},lg:{trigger:"h-7 min-h-fit",control:"min-h-7 p-1.5 gap-2",input:"text-sm h-5",placeholder:"placeholder:text-sm text-sm",singleValue:"text-sm",multiValue:"h-5 px-1.5 gap-1.5 text-s",multiValueLabel:"text-xs",multiValueRemove:"w-4 h-4",indicatorsContainer:"gap-1.5",clearIndicator:"p-0.5 size-5",dropdownIndicator:"p-1 size-5",indicatorSeparator:"h-5",loadingIndicator:"w-5 h-5",menu:"m-0",menuList:"py-1.5",option:"px-3 py-2 text-sm",group:"pt-2",groupHeading:"px-4 py-1.5 text-s",noOptionsMessage:"px-4 py-2 text-s",loadingMessage:"px-4 py-2 text-s",message:"text-s p-2.5",icon:"text-lg"}},Ot={primary:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-focus-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-placeholder placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-primary",menu:"bg-select-list-bg border-input-focus-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-primary-dark",messageBackground:"bg-input-message-bg",messageBorder:"ring-input-info-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},positive:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-positive",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-placeholder placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-positive",menu:"bg-select-list-bg border-positive shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-positive-dark",messageBackground:"bg-positive-light",messageBorder:"ring-positive",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},warning:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-warning-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-placeholder placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-warning",menu:"bg-select-list-bg border-input-warning-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-warning-dark",messageBackground:"bg-input-warning-bg",messageBorder:"ring-input-warning-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},negative:{control:"cursor-pointer bg-input-bg text-negative",controlFocused:"border-input-error-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-negative",placeholder:"placeholder:text-input-placeholder text-input-placeholder placeholder:opacity-60",singleValue:"text-negative",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-negative",menu:"bg-select-list-bg border-input-error-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-negative-dark",messageBackground:"bg-input-error-bg",messageBorder:"ring-input-error-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"}},fC=()=>ye("flex flex-col relative"),gC=({size:e,color:t,isDisabled:r,isFocused:n,isInvalid:i,hasMessage:a})=>{const o=Ot[i?"negative":t];return ye("flex items-center justify-between only:rounded first:rounded-t last:rounded-b",Jt[e].control,o.control,a?["ring-1",o.messageBorder]:["border",r?"border-input-border":n?o.controlFocused:`border-select-border
|
|
17
|
-
focus-within:${o.controlFocused}`],{[o.controlDisabled]:r})},mC=({isMulti:e})=>ye("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":e,"px-0.5":!e}),vC=({size:e,color:t})=>ye("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 px-1 text-input-text",Jt[e].input,Ot[t].placeholder),xC=({size:e,color:t})=>ye("select-none truncate",Jt[e].placeholder,Ot[t].placeholder),bC=({size:e,color:t,isDisabled:r})=>ye("truncate",Jt[e].singleValue,r?Ot[t].singleValueDisabled:Ot[t].singleValue),yC=({size:e,color:t,isDisabled:r,isFocused:n})=>ye("inline-flex items-center rounded-xs",Jt[e].multiValue,r?Ot[t].multiValueDisabled:Ot[t].multiValue,{"border border-white":n&&!r}),wC=({size:e})=>ye("truncate",Jt[e].multiValueLabel),kC=({size:e,color:t,isDisabled:r})=>ye("flex items-center justify-center cursor-pointer transition-colors",Jt[e].multiValueRemove,Ot[t].multiValueRemove),Vv=({size:e,color:t,isDisabled:r})=>ye("flex items-center justify-center transition-colors rounded",Jt[e].clearIndicator,r?"hidden":[Ot[t].clearIndicator,Ot[t].clearIndicatorHover]),SC=({size:e,color:t,isDisabled:r})=>ye("flex items-center justify-center transition-colors rounded",Jt[e].dropdownIndicator,r?"text-grey-200":[Ot[t].dropdownIndicator,Ot[t].dropdownIndicatorHover]),CC=({size:e,placement:t,hasMessage:r,color:n})=>{const i={auto:"top-full rounded-t-none",bottom:"top-full rounded-t-none",top:"bottom-full rounded-b-none"};return ye("absolute w-full z-50 rounded overflow-hidden border border-t-0",Ot[n].menu,{[Ot[n].messageBorder]:r},i[t||"auto"],Jt[e].menu)},EC=({size:e})=>ye("overflow-y-auto",Jt[e].menuList,Ot.primary.menuList),_C=({size:e,color:t,isDisabled:r,isFocused:n,isSelected:i})=>ye("transition-colors duration-150 cursor-pointer mx-1 rounded flex items-center gap-2",Jt[e].option,{[Ot[t].optionDisabled]:r,[Ot[t].optionSelected]:i&&!r,[Ot[t].optionFocused]:n&&!i&&!r,[Ot[t].option]:!i&&!n&&!r}),IC=({size:e})=>ye(Jt[e].group),AC=({size:e,color:t})=>ye(Jt[e].groupHeading,Ot[t].groupHeading),TC=({size:e})=>ye("text-grey-100",Jt[e].loadingMessage),PC=({size:e})=>ye(Jt[e].noOptionsMessage,Ot.primary.noOptionsMessage),Mv=e=>{const t=e[0];return e.length>0&&typeof t=="object"&&t!==null&&"options"in t&&Array.isArray(t.options)},NC=e=>Mv(e)?e.reduce((t,r)=>[...t,...r.options],[]):e;function Zt(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ze.apply(null,arguments)}function fc(e,t){return fc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},fc(e,t)}function OC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fc(e,t)}var Ro={exports:{}},uu={exports:{}},ht={};/** @license React v16.13.1
|
|
18
|
-
* react-is.production.min.js
|
|
19
|
-
*
|
|
20
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21
|
-
*
|
|
22
|
-
* This source code is licensed under the MIT license found in the
|
|
23
|
-
* LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/var Np;function RC(){if(Np)return ht;Np=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function C(w){if(typeof w=="object"&&w!==null){var m=w.$$typeof;switch(m){case t:switch(w=w.type,w){case u:case c:case n:case a:case i:case h:return w;default:switch(w=w&&w.$$typeof,w){case s:case d:case x:case g:case o:return w;default:return m}}case r:return m}}}function I(w){return C(w)===c}return ht.AsyncMode=u,ht.ConcurrentMode=c,ht.ContextConsumer=s,ht.ContextProvider=o,ht.Element=t,ht.ForwardRef=d,ht.Fragment=n,ht.Lazy=x,ht.Memo=g,ht.Portal=r,ht.Profiler=a,ht.StrictMode=i,ht.Suspense=h,ht.isAsyncMode=function(w){return I(w)||C(w)===u},ht.isConcurrentMode=I,ht.isContextConsumer=function(w){return C(w)===s},ht.isContextProvider=function(w){return C(w)===o},ht.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},ht.isForwardRef=function(w){return C(w)===d},ht.isFragment=function(w){return C(w)===n},ht.isLazy=function(w){return C(w)===x},ht.isMemo=function(w){return C(w)===g},ht.isPortal=function(w){return C(w)===r},ht.isProfiler=function(w){return C(w)===a},ht.isStrictMode=function(w){return C(w)===i},ht.isSuspense=function(w){return C(w)===h},ht.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===c||w===a||w===i||w===h||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===x||w.$$typeof===g||w.$$typeof===o||w.$$typeof===s||w.$$typeof===d||w.$$typeof===b||w.$$typeof===y||w.$$typeof===k||w.$$typeof===v)},ht.typeOf=C,ht}var ft={};/** @license React v16.13.1
|
|
25
|
-
* react-is.development.js
|
|
26
|
-
*
|
|
27
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
28
|
-
*
|
|
29
|
-
* This source code is licensed under the MIT license found in the
|
|
30
|
-
* LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/var Op;function LC(){return Op||(Op=1,be.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function C(K){return typeof K=="string"||typeof K=="function"||K===n||K===c||K===a||K===i||K===h||K===f||typeof K=="object"&&K!==null&&(K.$$typeof===x||K.$$typeof===g||K.$$typeof===o||K.$$typeof===s||K.$$typeof===d||K.$$typeof===b||K.$$typeof===y||K.$$typeof===k||K.$$typeof===v)}function I(K){if(typeof K=="object"&&K!==null){var xe=K.$$typeof;switch(xe){case t:var q=K.type;switch(q){case u:case c:case n:case a:case i:case h:return q;default:var re=q&&q.$$typeof;switch(re){case s:case d:case x:case g:case o:return re;default:return xe}}case r:return xe}}}var w=u,m=c,T=s,P=o,V=t,O=d,B=n,F=x,J=g,U=r,Y=a,Z=i,le=h,Q=!1;function fe(K){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(K)||I(K)===u}function E(K){return I(K)===c}function te(K){return I(K)===s}function ae(K){return I(K)===o}function N(K){return typeof K=="object"&&K!==null&&K.$$typeof===t}function ee(K){return I(K)===d}function H(K){return I(K)===n}function W(K){return I(K)===x}function $(K){return I(K)===g}function ie(K){return I(K)===r}function oe(K){return I(K)===a}function de(K){return I(K)===i}function he(K){return I(K)===h}ft.AsyncMode=w,ft.ConcurrentMode=m,ft.ContextConsumer=T,ft.ContextProvider=P,ft.Element=V,ft.ForwardRef=O,ft.Fragment=B,ft.Lazy=F,ft.Memo=J,ft.Portal=U,ft.Profiler=Y,ft.StrictMode=Z,ft.Suspense=le,ft.isAsyncMode=fe,ft.isConcurrentMode=E,ft.isContextConsumer=te,ft.isContextProvider=ae,ft.isElement=N,ft.isForwardRef=ee,ft.isFragment=H,ft.isLazy=W,ft.isMemo=$,ft.isPortal=ie,ft.isProfiler=oe,ft.isStrictMode=de,ft.isSuspense=he,ft.isValidElementType=C,ft.typeOf=I})()),ft}var Rp;function jv(){return Rp||(Rp=1,be.NODE_ENV==="production"?uu.exports=RC():uu.exports=LC()),uu.exports}/*
|
|
32
|
-
object-assign
|
|
33
|
-
(c) Sindre Sorhus
|
|
34
|
-
@license MIT
|
|
35
|
-
*/var cu,Lp;function DC(){if(Lp)return cu;Lp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(o).map(function(d){return o[d]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return cu=i()?Object.assign:function(a,o){for(var s,u=n(a),c,d=1;d<arguments.length;d++){s=Object(arguments[d]);for(var h in s)t.call(s,h)&&(u[h]=s[h]);if(e){c=e(s);for(var f=0;f<c.length;f++)r.call(s,c[f])&&(u[c[f]]=s[c[f]])}}return u},cu}var du,Dp;function md(){if(Dp)return du;Dp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return du=e,du}var Vp,Mp;function Fv(){return Mp||(Mp=1,Vp=Function.call.bind(Object.prototype.hasOwnProperty)),Vp}var hu,jp;function VC(){if(jp)return hu;jp=1;var e=function(){};if(be.NODE_ENV!=="production"){var t=md(),r={},n=Fv();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,u,c){if(be.NODE_ENV!=="production"){for(var d in a)if(n(a,d)){var h;try{if(typeof a[d]!="function"){var f=Error((u||"React class")+": "+s+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}h=a[d](o,d,u,s,null,t)}catch(x){h=x}if(h&&!(h instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var g=c?c():"";e("Failed "+s+" type: "+h.message+(g??""))}}}}return i.resetWarningCache=function(){be.NODE_ENV!=="production"&&(r={})},hu=i,hu}var pu,Fp;function MC(){if(Fp)return pu;Fp=1;var e=jv(),t=DC(),r=md(),n=Fv(),i=VC(),a=function(){};be.NODE_ENV!=="production"&&(a=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return pu=function(s,u){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function h(E){var te=E&&(c&&E[c]||E[d]);if(typeof te=="function")return te}var f="<<anonymous>>",g={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:k(),arrayOf:C,element:I(),elementType:w(),instanceOf:m,node:O(),objectOf:P,oneOf:T,oneOfType:V,shape:F,exact:J};function x(E,te){return E===te?E!==0||1/E===1/te:E!==E&&te!==te}function v(E,te){this.message=E,this.data=te&&typeof te=="object"?te:{},this.stack=""}v.prototype=Error.prototype;function b(E){if(be.NODE_ENV!=="production")var te={},ae=0;function N(H,W,$,ie,oe,de,he){if(ie=ie||f,de=de||$,he!==r){if(u){var K=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw K.name="Invariant Violation",K}else if(be.NODE_ENV!=="production"&&typeof console<"u"){var xe=ie+":"+$;!te[xe]&&ae<3&&(a("You are manually calling a React.PropTypes validation function for the `"+de+"` prop on `"+ie+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),te[xe]=!0,ae++)}}return W[$]==null?H?W[$]===null?new v("The "+oe+" `"+de+"` is marked as required "+("in `"+ie+"`, but its value is `null`.")):new v("The "+oe+" `"+de+"` is marked as required in "+("`"+ie+"`, but its value is `undefined`.")):null:E(W,$,ie,oe,de)}var ee=N.bind(null,!1);return ee.isRequired=N.bind(null,!0),ee}function y(E){function te(ae,N,ee,H,W,$){var ie=ae[N],oe=Z(ie);if(oe!==E){var de=le(ie);return new v("Invalid "+H+" `"+W+"` of type "+("`"+de+"` supplied to `"+ee+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return b(te)}function k(){return b(o)}function C(E){function te(ae,N,ee,H,W){if(typeof E!="function")return new v("Property `"+W+"` of component `"+ee+"` has invalid PropType notation inside arrayOf.");var $=ae[N];if(!Array.isArray($)){var ie=Z($);return new v("Invalid "+H+" `"+W+"` of type "+("`"+ie+"` supplied to `"+ee+"`, expected an array."))}for(var oe=0;oe<$.length;oe++){var de=E($,oe,ee,H,W+"["+oe+"]",r);if(de instanceof Error)return de}return null}return b(te)}function I(){function E(te,ae,N,ee,H){var W=te[ae];if(!s(W)){var $=Z(W);return new v("Invalid "+ee+" `"+H+"` of type "+("`"+$+"` supplied to `"+N+"`, expected a single ReactElement."))}return null}return b(E)}function w(){function E(te,ae,N,ee,H){var W=te[ae];if(!e.isValidElementType(W)){var $=Z(W);return new v("Invalid "+ee+" `"+H+"` of type "+("`"+$+"` supplied to `"+N+"`, expected a single ReactElement type."))}return null}return b(E)}function m(E){function te(ae,N,ee,H,W){if(!(ae[N]instanceof E)){var $=E.name||f,ie=fe(ae[N]);return new v("Invalid "+H+" `"+W+"` of type "+("`"+ie+"` supplied to `"+ee+"`, expected ")+("instance of `"+$+"`."))}return null}return b(te)}function T(E){if(!Array.isArray(E))return be.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function te(ae,N,ee,H,W){for(var $=ae[N],ie=0;ie<E.length;ie++)if(x($,E[ie]))return null;var oe=JSON.stringify(E,function(de,he){var K=le(he);return K==="symbol"?String(he):he});return new v("Invalid "+H+" `"+W+"` of value `"+String($)+"` "+("supplied to `"+ee+"`, expected one of "+oe+"."))}return b(te)}function P(E){function te(ae,N,ee,H,W){if(typeof E!="function")return new v("Property `"+W+"` of component `"+ee+"` has invalid PropType notation inside objectOf.");var $=ae[N],ie=Z($);if(ie!=="object")return new v("Invalid "+H+" `"+W+"` of type "+("`"+ie+"` supplied to `"+ee+"`, expected an object."));for(var oe in $)if(n($,oe)){var de=E($,oe,ee,H,W+"."+oe,r);if(de instanceof Error)return de}return null}return b(te)}function V(E){if(!Array.isArray(E))return be.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var te=0;te<E.length;te++){var ae=E[te];if(typeof ae!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Q(ae)+" at index "+te+"."),o}function N(ee,H,W,$,ie){for(var oe=[],de=0;de<E.length;de++){var he=E[de],K=he(ee,H,W,$,ie,r);if(K==null)return null;K.data&&n(K.data,"expectedType")&&oe.push(K.data.expectedType)}var xe=oe.length>0?", expected one of type ["+oe.join(", ")+"]":"";return new v("Invalid "+$+" `"+ie+"` supplied to "+("`"+W+"`"+xe+"."))}return b(N)}function O(){function E(te,ae,N,ee,H){return U(te[ae])?null:new v("Invalid "+ee+" `"+H+"` supplied to "+("`"+N+"`, expected a ReactNode."))}return b(E)}function B(E,te,ae,N,ee){return new v((E||"React class")+": "+te+" type `"+ae+"."+N+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ee+"`.")}function F(E){function te(ae,N,ee,H,W){var $=ae[N],ie=Z($);if(ie!=="object")return new v("Invalid "+H+" `"+W+"` of type `"+ie+"` "+("supplied to `"+ee+"`, expected `object`."));for(var oe in E){var de=E[oe];if(typeof de!="function")return B(ee,H,W,oe,le(de));var he=de($,oe,ee,H,W+"."+oe,r);if(he)return he}return null}return b(te)}function J(E){function te(ae,N,ee,H,W){var $=ae[N],ie=Z($);if(ie!=="object")return new v("Invalid "+H+" `"+W+"` of type `"+ie+"` "+("supplied to `"+ee+"`, expected `object`."));var oe=t({},ae[N],E);for(var de in oe){var he=E[de];if(n(E,de)&&typeof he!="function")return B(ee,H,W,de,le(he));if(!he)return new v("Invalid "+H+" `"+W+"` key `"+de+"` supplied to `"+ee+"`.\nBad object: "+JSON.stringify(ae[N],null," ")+`
|
|
36
|
-
Valid keys: `+JSON.stringify(Object.keys(E),null," "));var K=he($,de,ee,H,W+"."+de,r);if(K)return K}return null}return b(te)}function U(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(U);if(E===null||s(E))return!0;var te=h(E);if(te){var ae=te.call(E),N;if(te!==E.entries){for(;!(N=ae.next()).done;)if(!U(N.value))return!1}else for(;!(N=ae.next()).done;){var ee=N.value;if(ee&&!U(ee[1]))return!1}}else return!1;return!0;default:return!1}}function Y(E,te){return E==="symbol"?!0:te?te["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&te instanceof Symbol:!1}function Z(E){var te=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":Y(te,E)?"symbol":te}function le(E){if(typeof E>"u"||E===null)return""+E;var te=Z(E);if(te==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return te}function Q(E){var te=le(E);switch(te){case"array":case"object":return"an "+te;case"boolean":case"date":case"regexp":return"a "+te;default:return te}}function fe(E){return!E.constructor||!E.constructor.name?f:E.constructor.name}return g.checkPropTypes=i,g.resetWarningCache=i.resetWarningCache,g.PropTypes=g,g},pu}var fu,Bp;function jC(){if(Bp)return fu;Bp=1;var e=md();function t(){}function r(){}return r.resetWarningCache=t,fu=function(){function n(o,s,u,c,d,h){if(h!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},fu}var zp;function FC(){if(zp)return Ro.exports;if(zp=1,be.NODE_ENV!=="production"){var e=jv(),t=!0;Ro.exports=MC()(e.isElement,t)}else Ro.exports=jC()();return Ro.exports}var BC=FC();const Se=lv(BC);var gu={exports:{}},pt={};/**
|
|
37
|
-
* @license React
|
|
38
|
-
* react-is.production.min.js
|
|
39
|
-
*
|
|
40
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
41
|
-
*
|
|
42
|
-
* This source code is licensed under the MIT license found in the
|
|
43
|
-
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/var Hp;function zC(){if(Hp)return pt;Hp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function v(b){if(typeof b=="object"&&b!==null){var y=b.$$typeof;switch(y){case e:switch(b=b.type,b){case r:case i:case n:case c:case d:return b;default:switch(b=b&&b.$$typeof,b){case s:case o:case u:case f:case h:case a:return b;default:return y}}case t:return y}}}return pt.ContextConsumer=o,pt.ContextProvider=a,pt.Element=e,pt.ForwardRef=u,pt.Fragment=r,pt.Lazy=f,pt.Memo=h,pt.Portal=t,pt.Profiler=i,pt.StrictMode=n,pt.Suspense=c,pt.SuspenseList=d,pt.isAsyncMode=function(){return!1},pt.isConcurrentMode=function(){return!1},pt.isContextConsumer=function(b){return v(b)===o},pt.isContextProvider=function(b){return v(b)===a},pt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},pt.isForwardRef=function(b){return v(b)===u},pt.isFragment=function(b){return v(b)===r},pt.isLazy=function(b){return v(b)===f},pt.isMemo=function(b){return v(b)===h},pt.isPortal=function(b){return v(b)===t},pt.isProfiler=function(b){return v(b)===i},pt.isStrictMode=function(b){return v(b)===n},pt.isSuspense=function(b){return v(b)===c},pt.isSuspenseList=function(b){return v(b)===d},pt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===i||b===n||b===c||b===d||b===g||typeof b=="object"&&b!==null&&(b.$$typeof===f||b.$$typeof===h||b.$$typeof===a||b.$$typeof===o||b.$$typeof===u||b.$$typeof===x||b.getModuleId!==void 0)},pt.typeOf=v,pt}var gt={};/**
|
|
45
|
-
* @license React
|
|
46
|
-
* react-is.development.js
|
|
47
|
-
*
|
|
48
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
49
|
-
*
|
|
50
|
-
* This source code is licensed under the MIT license found in the
|
|
51
|
-
* LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/var Wp;function HC(){return Wp||(Wp=1,be.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),x=!1,v=!1,b=!1,y=!1,k=!1,C;C=Symbol.for("react.module.reference");function I(q){return!!(typeof q=="string"||typeof q=="function"||q===r||q===i||k||q===n||q===c||q===d||y||q===g||x||v||b||typeof q=="object"&&q!==null&&(q.$$typeof===f||q.$$typeof===h||q.$$typeof===a||q.$$typeof===o||q.$$typeof===u||q.$$typeof===C||q.getModuleId!==void 0))}function w(q){if(typeof q=="object"&&q!==null){var re=q.$$typeof;switch(re){case e:var ue=q.type;switch(ue){case r:case i:case n:case c:case d:return ue;default:var ve=ue&&ue.$$typeof;switch(ve){case s:case o:case u:case f:case h:case a:return ve;default:return re}}case t:return re}}}var m=o,T=a,P=e,V=u,O=r,B=f,F=h,J=t,U=i,Y=n,Z=c,le=d,Q=!1,fe=!1;function E(q){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(q){return fe||(fe=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ae(q){return w(q)===o}function N(q){return w(q)===a}function ee(q){return typeof q=="object"&&q!==null&&q.$$typeof===e}function H(q){return w(q)===u}function W(q){return w(q)===r}function $(q){return w(q)===f}function ie(q){return w(q)===h}function oe(q){return w(q)===t}function de(q){return w(q)===i}function he(q){return w(q)===n}function K(q){return w(q)===c}function xe(q){return w(q)===d}gt.ContextConsumer=m,gt.ContextProvider=T,gt.Element=P,gt.ForwardRef=V,gt.Fragment=O,gt.Lazy=B,gt.Memo=F,gt.Portal=J,gt.Profiler=U,gt.StrictMode=Y,gt.Suspense=Z,gt.SuspenseList=le,gt.isAsyncMode=E,gt.isConcurrentMode=te,gt.isContextConsumer=ae,gt.isContextProvider=N,gt.isElement=ee,gt.isForwardRef=H,gt.isFragment=W,gt.isLazy=$,gt.isMemo=ie,gt.isPortal=oe,gt.isProfiler=de,gt.isStrictMode=he,gt.isSuspense=K,gt.isSuspenseList=xe,gt.isValidElementType=I,gt.typeOf=w})()),gt}var Up;function WC(){return Up||(Up=1,be.NODE_ENV==="production"?gu.exports=zC():gu.exports=HC()),gu.exports}var $p=WC();const qp=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Kp=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Lo=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return Kp(r.overflowY,t)||Kp(r.overflowX,t)||(n=>{const i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!i&&(i.clientHeight<n.scrollHeight||i.clientWidth<n.scrollWidth)})(e)}return!1},Do=(e,t,r,n,i,a,o,s)=>a<e&&o>t||a>e&&o<t?0:a<=e&&s<=r||o>=t&&s>=r?a-e-n:o>t&&s<r||a<e&&s>r?o-t+i:0,UC=e=>e.parentElement??(e.getRootNode().host||null),$C=(e,t)=>{var r,n,i,a;if(typeof document>"u")return[];const{inline:o,boundary:s,skipOverflowHiddenElements:u}=t,c=typeof s=="function"?s:J=>J!==s;if(!qp(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,h=[];let f=e;for(;qp(f)&&c(f);){if(f=UC(f),f===d){h.push(f);break}f!=null&&f===document.body&&Lo(f)&&!Lo(document.documentElement)||f!=null&&Lo(f,u)&&h.push(f)}const g=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,x=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,{scrollX:v,scrollY:b}=window,{height:y,width:k,top:C,right:I,bottom:w,left:m}=e.getBoundingClientRect(),{top:T,right:P,left:V}=(J=>{const U=window.getComputedStyle(J);return{top:parseFloat(U.scrollMarginTop)||0,right:parseFloat(U.scrollMarginRight)||0,bottom:parseFloat(U.scrollMarginBottom)||0,left:parseFloat(U.scrollMarginLeft)||0}})(e);let O=C-T,B=o==="center"?m+k/2-V+P:o==="end"?I+P:m-V;const F=[];for(let J=0;J<h.length;J++){const U=h[J],{height:Y,width:Z,top:le,right:Q,bottom:fe,left:E}=U.getBoundingClientRect();if(C>=0&&m>=0&&w<=x&&I<=g&&(U===d&&!Lo(U)||C>=le&&w<=fe&&m>=E&&I<=Q))return F;const te=getComputedStyle(U),ae=parseInt(te.borderLeftWidth,10),N=parseInt(te.borderTopWidth,10),ee=parseInt(te.borderRightWidth,10),H=parseInt(te.borderBottomWidth,10);let W=0,$=0;const ie="offsetWidth"in U?U.offsetWidth-U.clientWidth-ae-ee:0,oe="offsetHeight"in U?U.offsetHeight-U.clientHeight-N-H:0,de="offsetWidth"in U?U.offsetWidth===0?0:Z/U.offsetWidth:0,he="offsetHeight"in U?U.offsetHeight===0?0:Y/U.offsetHeight:0;if(d===U)W=Do(b,b+x,x,N,H,b+O,b+O+y,y),$=o==="start"?B:o==="center"?B-g/2:o==="end"?B-g:Do(v,v+g,g,ae,ee,v+B,v+B+k,k),W=Math.max(0,W+b),$=Math.max(0,$+v);else{W=Do(le,fe,Y,N,H+oe,O,O+y,y),$=o==="start"?B-E-ae:o==="center"?B-(E+Z/2)+ie/2:o==="end"?B-Q+ee+ie:Do(E,Q,Z,ae,ee+ie,B,B+k,k);const{scrollLeft:K,scrollTop:xe}=U;W=he===0?0:Math.max(0,Math.min(xe+W/he,U.scrollHeight-Y/he+oe)),$=de===0?0:Math.max(0,Math.min(K+$/de,U.scrollWidth-Z/de+ie)),O+=xe-W,B+=K-$}F.push({el:U,top:W,left:$})}return F};var Ri=function(){return Ri=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ri.apply(this,arguments)},qC=0;function Gp(e){return typeof e=="function"?e:Qt}function Qt(){}function Bv(e,t){if(e){var r=$C(e,{boundary:t});r.forEach(function(n){var i=n.el,a=n.top,o=n.left;i.scrollTop=a,i.scrollLeft=o})}}function Jp(e,t,r){var n=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return n}function ol(e,t){var r;function n(){r&&clearTimeout(r)}function i(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];n(),r=setTimeout(function(){r=null,e.apply(void 0,o)},t)}return i.cancel=n,i}function ct(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.some(function(s){return s&&s.apply(void 0,[n].concat(a)),n.preventDownshiftDefault||n.hasOwnProperty("nativeEvent")&&n.nativeEvent.preventDownshiftDefault})}}function jr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){t.forEach(function(i){typeof i=="function"?i(n):i&&(i.current=n)})}}function zv(){return String(qC++)}function KC(e){var t=e.isOpen,r=e.resultCount,n=e.previousResultCount;return t?r?r!==n?r+" result"+(r===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function Xp(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function Hv(e){return typeof e.type=="string"}function Wv(e){return e.props}function GC(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var JC=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function Vo(e){e===void 0&&(e={});var t={};return JC.forEach(function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}function ka(e,t){return!e||!t?e:Object.keys(e).reduce(function(r,n){return r[n]=Cs(t,n)?t[n]:e[n],r},{})}function Cs(e,t){return e[t]!==void 0}function Li(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function XC(e){return Object.prototype.toString.call(e)==="[object Object]"}function Fr(e,t,r,n,i){i===void 0&&(i=!1);var a=r.length;if(a===0)return-1;var o=a-1;(typeof e!="number"||e<0||e>o)&&(e=t>0?-1:o+1);var s=e+t;s<0?s=i?o:0:s>o&&(s=i?0:o);var u=In(s,t<0,r,n,i);return u===-1?e>=a?-1:e:u}function In(e,t,r,n,i){i===void 0&&(i=!1);var a=r.length;if(t){for(var o=e;o>=0;o--)if(!n(r[o],o))return o}else for(var s=e;s<a;s++)if(!n(r[s],s))return s;return i?In(t?a-1:0,t,r,n):-1}function Es(e,t,r,n){return n===void 0&&(n=!0),r&&t.some(function(i){return i&&(Jp(i,e,r)||n&&Jp(i,r.document.activeElement,r))})}var vd=Qt;be.NODE_ENV!=="production"&&(vd=function(e,t,r){var n="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(e).forEach(function(i){t[i]!==void 0&&r[i]===void 0?console.error('downshift: A component has changed the controlled prop "'+i+'" to be uncontrolled. '+n):t[i]===void 0&&r[i]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+i+'" to be controlled. '+n)})});var YC=ol(function(e){Uv(e).textContent=""},500);function Uv(e){var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function $v(e,t){if(!(!e||!t)){var r=Uv(t);r.textContent=e,YC(t)}}function QC(e){var t=e==null?void 0:e.getElementById("a11y-status-message");t&&t.remove()}var qv=be.NODE_ENV!=="production"?"__autocomplete_unknown__":0,Kv=be.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,Gv=be.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,as=be.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,os=be.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,Jv=be.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,Xv=be.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,Yv=be.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,Qv=be.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,Zv=be.NODE_ENV!=="production"?"__autocomplete_click_item__":9,ex=be.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,tx=be.NODE_ENV!=="production"?"__autocomplete_change_input__":11,rx=be.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,gc=be.NODE_ENV!=="production"?"__autocomplete_click_button__":13,nx=be.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,ix=be.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,ax=be.NODE_ENV!=="production"?"__autocomplete_touchend__":16,ZC=Object.freeze({__proto__:null,blurButton:nx,blurInput:ex,changeInput:tx,clickButton:gc,clickItem:Zv,controlledPropUpdatedSelectedItem:ix,itemMouseEnter:Gv,keyDownArrowDown:os,keyDownArrowUp:as,keyDownEnd:Qv,keyDownEnter:Xv,keyDownEscape:Jv,keyDownHome:Yv,keyDownSpaceButton:rx,mouseUp:Kv,touchEnd:ax,unknown:qv}),eE=["refKey","ref"],tE=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],rE=["onKeyDown","onBlur","onChange","onInput","onChangeText"],nE=["refKey","ref"],iE=["onMouseMove","onMouseDown","onClick","onPress","index","item"],aE=(function(){var e=(function(t){function r(i){var a;a=t.call(this,i)||this,a.id=a.props.id||"downshift-"+zv(),a.menuId=a.props.menuId||a.id+"-menu",a.labelId=a.props.labelId||a.id+"-label",a.inputId=a.props.inputId||a.id+"-input",a.getItemId=a.props.getItemId||function(k){return a.id+"-item-"+k},a.items=[],a.itemCount=null,a.previousResultCount=0,a.timeoutIds=[],a.internalSetTimeout=function(k,C){var I=setTimeout(function(){a.timeoutIds=a.timeoutIds.filter(function(w){return w!==I}),k()},C);a.timeoutIds.push(I)},a.setItemCount=function(k){a.itemCount=k},a.unsetItemCount=function(){a.itemCount=null},a.isItemDisabled=function(k,C){var I=a.getItemNodeFromIndex(C);return I&&I.hasAttribute("disabled")},a.setHighlightedIndex=function(k,C){k===void 0&&(k=a.props.defaultHighlightedIndex),C===void 0&&(C={}),C=Vo(C),a.internalSetState(ze({highlightedIndex:k},C))},a.clearSelection=function(k){a.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:a.props.defaultHighlightedIndex,isOpen:a.props.defaultIsOpen},k)},a.selectItem=function(k,C,I){C=Vo(C),a.internalSetState(ze({isOpen:a.props.defaultIsOpen,highlightedIndex:a.props.defaultHighlightedIndex,selectedItem:k,inputValue:a.props.itemToString(k)},C),I)},a.selectItemAtIndex=function(k,C,I){var w=a.items[k];w!=null&&a.selectItem(w,C,I)},a.selectHighlightedItem=function(k,C){return a.selectItemAtIndex(a.getState().highlightedIndex,k,C)},a.internalSetState=function(k,C){var I,w,m={},T=typeof k=="function";return!T&&k.hasOwnProperty("inputValue")&&a.props.onInputValueChange(k.inputValue,ze({},a.getStateAndHelpers(),k)),a.setState(function(P){var V;P=a.getState(P);var O=T?k(P):k;O=a.props.stateReducer(P,O),I=O.hasOwnProperty("selectedItem");var B={};return I&&O.selectedItem!==P.selectedItem&&(w=O.selectedItem),(V=O).type||(V.type=qv),Object.keys(O).forEach(function(F){P[F]!==O[F]&&(m[F]=O[F]),F!=="type"&&(O[F],Cs(a.props,F)||(B[F]=O[F]))}),T&&O.hasOwnProperty("inputValue")&&a.props.onInputValueChange(O.inputValue,ze({},a.getStateAndHelpers(),O)),B},function(){Gp(C)();var P=Object.keys(m).length>1;P&&a.props.onStateChange(m,a.getStateAndHelpers()),I&&a.props.onSelect(k.selectedItem,a.getStateAndHelpers()),w!==void 0&&a.props.onChange(w,a.getStateAndHelpers()),a.props.onUserAction(m,a.getStateAndHelpers())})},a.rootRef=function(k){return a._rootNode=k},a.getRootProps=function(k,C){var I,w=k===void 0?{}:k,m=w.refKey,T=m===void 0?"ref":m,P=w.ref,V=Zt(w,eE),O=C===void 0?{}:C,B=O.suppressRefError,F=B===void 0?!1:B;a.getRootProps.called=!0,a.getRootProps.refKey=T,a.getRootProps.suppressRefError=F;var J=a.getState(),U=J.isOpen;return ze((I={},I[T]=jr(P,a.rootRef),I.role="combobox",I["aria-expanded"]=U,I["aria-haspopup"]="listbox",I["aria-owns"]=U?a.menuId:void 0,I["aria-labelledby"]=a.labelId,I),V)},a.keyDownHandlers={ArrowDown:function(k){var C=this;if(k.preventDefault(),this.getState().isOpen){var I=k.shiftKey?5:1;this.moveHighlightedIndex(I,{type:os})}else this.internalSetState({isOpen:!0,type:os},function(){var w=C.getItemCount();if(w>0){var m=C.getState(),T=m.highlightedIndex,P=Fr(T,1,{length:w},C.isItemDisabled,!0);C.setHighlightedIndex(P,{type:os})}})},ArrowUp:function(k){var C=this;if(k.preventDefault(),this.getState().isOpen){var I=k.shiftKey?-5:-1;this.moveHighlightedIndex(I,{type:as})}else this.internalSetState({isOpen:!0,type:as},function(){var w=C.getItemCount();if(w>0){var m=C.getState(),T=m.highlightedIndex,P=Fr(T,-1,{length:w},C.isItemDisabled,!0);C.setHighlightedIndex(P,{type:as})}})},Enter:function(k){if(k.which!==229){var C=this.getState(),I=C.isOpen,w=C.highlightedIndex;if(I&&w!=null){k.preventDefault();var m=this.items[w],T=this.getItemNodeFromIndex(w);if(m==null||T&&T.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Xv})}}},Escape:function(k){k.preventDefault(),this.reset(ze({type:Jv},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},a.buttonKeyDownHandlers=ze({},a.keyDownHandlers,{" ":function(k){k.preventDefault(),this.toggleMenu({type:rx})}}),a.inputKeyDownHandlers=ze({},a.keyDownHandlers,{Home:function(k){var C=this.getState(),I=C.isOpen;if(I){k.preventDefault();var w=this.getItemCount();if(!(w<=0||!I)){var m=In(0,!1,{length:w},this.isItemDisabled);this.setHighlightedIndex(m,{type:Yv})}}},End:function(k){var C=this.getState(),I=C.isOpen;if(I){k.preventDefault();var w=this.getItemCount();if(!(w<=0||!I)){var m=In(w-1,!0,{length:w},this.isItemDisabled);this.setHighlightedIndex(m,{type:Qv})}}}}),a.getToggleButtonProps=function(k){var C=k===void 0?{}:k,I=C.onClick;C.onPress;var w=C.onKeyDown,m=C.onKeyUp,T=C.onBlur,P=Zt(C,tE),V=a.getState(),O=V.isOpen,B={onClick:ct(I,a.buttonHandleClick),onKeyDown:ct(w,a.buttonHandleKeyDown),onKeyUp:ct(m,a.buttonHandleKeyUp),onBlur:ct(T,a.buttonHandleBlur)},F=P.disabled?{}:B;return ze({type:"button",role:"button","aria-label":O?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},F,P)},a.buttonHandleKeyUp=function(k){k.preventDefault()},a.buttonHandleKeyDown=function(k){var C=Li(k);a.buttonKeyDownHandlers[C]&&a.buttonKeyDownHandlers[C].call(a,k)},a.buttonHandleClick=function(k){if(k.preventDefault(),a.props.environment){var C=a.props.environment.document,I=C.body,w=C.activeElement;I&&I===w&&k.target.focus()}be.NODE_ENV==="test"?a.toggleMenu({type:gc}):a.internalSetTimeout(function(){return a.toggleMenu({type:gc})})},a.buttonHandleBlur=function(k){var C=k.target;a.internalSetTimeout(function(){if(!(a.isMouseDown||!a.props.environment)){var I=a.props.environment.document.activeElement;(I==null||I.id!==a.inputId)&&I!==C&&a.reset({type:nx})}})},a.getLabelProps=function(k){return ze({htmlFor:a.inputId,id:a.labelId},k)},a.getInputProps=function(k){var C=k===void 0?{}:k,I=C.onKeyDown,w=C.onBlur,m=C.onChange,T=C.onInput;C.onChangeText;var P=Zt(C,rE),V,O={};V="onChange";var B=a.getState(),F=B.inputValue,J=B.isOpen,U=B.highlightedIndex;if(!P.disabled){var Y;O=(Y={},Y[V]=ct(m,T,a.inputHandleChange),Y.onKeyDown=ct(I,a.inputHandleKeyDown),Y.onBlur=ct(w,a.inputHandleBlur),Y)}return ze({"aria-autocomplete":"list","aria-activedescendant":J&&typeof U=="number"&&U>=0?a.getItemId(U):void 0,"aria-controls":J?a.menuId:void 0,"aria-labelledby":P&&P["aria-label"]?void 0:a.labelId,autoComplete:"off",value:F,id:a.inputId},O,P)},a.inputHandleKeyDown=function(k){var C=Li(k);C&&a.inputKeyDownHandlers[C]&&a.inputKeyDownHandlers[C].call(a,k)},a.inputHandleChange=function(k){a.internalSetState({type:tx,isOpen:!0,inputValue:k.target.value,highlightedIndex:a.props.defaultHighlightedIndex})},a.inputHandleBlur=function(){a.internalSetTimeout(function(){var k;if(!(a.isMouseDown||!a.props.environment)){var C=a.props.environment.document.activeElement,I=(C==null||(k=C.dataset)==null?void 0:k.toggle)&&a._rootNode&&a._rootNode.contains(C);I||a.reset({type:ex})}})},a.menuRef=function(k){a._menuNode=k},a.getMenuProps=function(k,C){var I,w=k===void 0?{}:k,m=w.refKey,T=m===void 0?"ref":m,P=w.ref,V=Zt(w,nE),O=C===void 0?{}:C,B=O.suppressRefError,F=B===void 0?!1:B;return a.getMenuProps.called=!0,a.getMenuProps.refKey=T,a.getMenuProps.suppressRefError=F,ze((I={},I[T]=jr(P,a.menuRef),I.role="listbox",I["aria-labelledby"]=V&&V["aria-label"]?void 0:a.labelId,I.id=a.menuId,I),V)},a.getItemProps=function(k){var C,I=k===void 0?{}:k,w=I.onMouseMove,m=I.onMouseDown,T=I.onClick;I.onPress;var P=I.index,V=I.item,O=V===void 0?be.NODE_ENV==="production"?void 0:GC("getItemProps","item"):V,B=Zt(I,iE);P===void 0?(a.items.push(O),P=a.items.indexOf(O)):a.items[P]=O;var F="onClick",J=T,U=(C={onMouseMove:ct(w,function(){P!==a.getState().highlightedIndex&&(a.setHighlightedIndex(P,{type:Gv}),a.avoidScrolling=!0,a.internalSetTimeout(function(){return a.avoidScrolling=!1},250))}),onMouseDown:ct(m,function(Z){Z.preventDefault()})},C[F]=ct(J,function(){a.selectItemAtIndex(P,{type:Zv})}),C),Y=B.disabled?{onMouseDown:U.onMouseDown}:U;return ze({id:a.getItemId(P),role:"option","aria-selected":a.getState().highlightedIndex===P},Y,B)},a.clearItems=function(){a.items=[]},a.reset=function(k,C){k===void 0&&(k={}),k=Vo(k),a.internalSetState(function(I){var w=I.selectedItem;return ze({isOpen:a.props.defaultIsOpen,highlightedIndex:a.props.defaultHighlightedIndex,inputValue:a.props.itemToString(w)},k)},C)},a.toggleMenu=function(k,C){k===void 0&&(k={}),k=Vo(k),a.internalSetState(function(I){var w=I.isOpen;return ze({isOpen:!w},w&&{highlightedIndex:a.props.defaultHighlightedIndex},k)},function(){var I=a.getState(),w=I.isOpen,m=I.highlightedIndex;w&&a.getItemCount()>0&&typeof m=="number"&&a.setHighlightedIndex(m,k),Gp(C)()})},a.openMenu=function(k){a.internalSetState({isOpen:!0},k)},a.closeMenu=function(k){a.internalSetState({isOpen:!1},k)},a.updateStatus=ol(function(){var k;if((k=a.props)!=null&&(k=k.environment)!=null&&k.document){var C=a.getState(),I=a.items[C.highlightedIndex],w=a.getItemCount(),m=a.props.getA11yStatusMessage(ze({itemToString:a.props.itemToString,previousResultCount:a.previousResultCount,resultCount:w,highlightedItem:I},C));a.previousResultCount=w,$v(m,a.props.environment.document)}},200);var o=a.props,s=o.defaultHighlightedIndex,u=o.initialHighlightedIndex,c=u===void 0?s:u,d=o.defaultIsOpen,h=o.initialIsOpen,f=h===void 0?d:h,g=o.initialInputValue,x=g===void 0?"":g,v=o.initialSelectedItem,b=v===void 0?null:v,y=a.getState({highlightedIndex:c,isOpen:f,inputValue:x,selectedItem:b});return y.selectedItem!=null&&a.props.initialInputValue===void 0&&(y.inputValue=a.props.itemToString(y.selectedItem)),a.state=y,a}OC(r,t);var n=r.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach(function(i){clearTimeout(i)}),this.timeoutIds=[]},n.getState=function(i){return i===void 0&&(i=this.state),ka(i,this.props)},n.getItemCount=function(){var i=this.items.length;return this.itemCount!=null?i=this.itemCount:this.props.itemCount!==void 0&&(i=this.props.itemCount),i},n.getItemNodeFromIndex=function(i){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(i)):null},n.scrollHighlightedItemIntoView=function(){{var i=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(i,this._menuNode)}},n.moveHighlightedIndex=function(i,a){var o=this.getItemCount(),s=this.getState(),u=s.highlightedIndex;if(o>0){var c=Fr(u,i,{length:o},this.isItemDisabled,!0);this.setHighlightedIndex(c,a)}},n.getStateAndHelpers=function(){var i=this.getState(),a=i.highlightedIndex,o=i.inputValue,s=i.selectedItem,u=i.isOpen,c=this.props.itemToString,d=this.id,h=this.getRootProps,f=this.getToggleButtonProps,g=this.getLabelProps,x=this.getMenuProps,v=this.getInputProps,b=this.getItemProps,y=this.openMenu,k=this.closeMenu,C=this.toggleMenu,I=this.selectItem,w=this.selectItemAtIndex,m=this.selectHighlightedItem,T=this.setHighlightedIndex,P=this.clearSelection,V=this.clearItems,O=this.reset,B=this.setItemCount,F=this.unsetItemCount,J=this.internalSetState;return{getRootProps:h,getToggleButtonProps:f,getLabelProps:g,getMenuProps:x,getInputProps:v,getItemProps:b,reset:O,openMenu:y,closeMenu:k,toggleMenu:C,selectItem:I,selectItemAtIndex:w,selectHighlightedItem:m,setHighlightedIndex:T,clearSelection:P,clearItems:V,setItemCount:B,unsetItemCount:F,setState:J,itemToString:c,id:d,highlightedIndex:a,inputValue:o,isOpen:u,selectedItem:s}},n.componentDidMount=function(){var i=this;if(be.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&Yp(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){i.internalClearTimeouts()};else{var a=function(){i.isMouseDown=!0},o=function(h){i.isMouseDown=!1;var f=Es(h.target,[i._rootNode,i._menuNode],i.props.environment);!f&&i.getState().isOpen&&i.reset({type:Kv},function(){return i.props.onOuterClick(i.getStateAndHelpers())})},s=function(){i.isTouchMove=!1},u=function(){i.isTouchMove=!0},c=function(h){var f=Es(h.target,[i._rootNode,i._menuNode],i.props.environment,!1);!i.isTouchMove&&!f&&i.getState().isOpen&&i.reset({type:ax},function(){return i.props.onOuterClick(i.getStateAndHelpers())})},d=this.props.environment;d.addEventListener("mousedown",a),d.addEventListener("mouseup",o),d.addEventListener("touchstart",s),d.addEventListener("touchmove",u),d.addEventListener("touchend",c),this.cleanup=function(){i.internalClearTimeouts(),i.updateStatus.cancel(),d.removeEventListener("mousedown",a),d.removeEventListener("mouseup",o),d.removeEventListener("touchstart",s),d.removeEventListener("touchmove",u),d.removeEventListener("touchend",c)}}},n.shouldScroll=function(i,a){var o=this.props.highlightedIndex===void 0?this.getState():this.props,s=o.highlightedIndex,u=a.highlightedIndex===void 0?i:a,c=u.highlightedIndex,d=s&&this.getState().isOpen&&!i.isOpen,h=s!==c;return d||h},n.componentDidUpdate=function(i,a){be.NODE_ENV!=="production"&&(vd(this.state,i,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&Yp(this._menuNode,this.getMenuProps)),Cs(this.props,"selectedItem")&&this.props.selectedItemChanged(i.selectedItem,this.props.selectedItem)&&this.internalSetState({type:ix,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(a,i)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var i=Xp(this.props.children,Qt);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var a=Xp(i(this.getStateAndHelpers()));if(!a)return null;if(this.getRootProps.called||this.props.suppressRefError)return be.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&oE(a,this.getRootProps),a;if(Hv(a))return L.cloneElement(a,this.getRootProps(Wv(a)));if(be.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},r})(L.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:KC,itemToString:function(t){return t==null?"":(be.NODE_ENV!=="production"&&XC(t)&&!t.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",t),String(t))},onStateChange:Qt,onInputValueChange:Qt,onUserAction:Qt,onChange:Qt,onSelect:Qt,onOuterClick:Qt,selectedItemChanged:function(t,r){return t!==r},environment:typeof window>"u"?void 0:window,stateReducer:function(t,r){return r},suppressRefError:!1,scrollIntoView:Bv},e.stateChangeTypes=ZC,e})();be.NODE_ENV!=="production"&&(aE.propTypes={children:Se.func,defaultHighlightedIndex:Se.number,defaultIsOpen:Se.bool,initialHighlightedIndex:Se.number,initialSelectedItem:Se.any,initialInputValue:Se.string,initialIsOpen:Se.bool,getA11yStatusMessage:Se.func,itemToString:Se.func,onChange:Se.func,onSelect:Se.func,onStateChange:Se.func,onInputValueChange:Se.func,onUserAction:Se.func,onOuterClick:Se.func,selectedItemChanged:Se.func,stateReducer:Se.func,itemCount:Se.number,id:Se.string,environment:Se.shape({addEventListener:Se.func.isRequired,removeEventListener:Se.func.isRequired,document:Se.shape({createElement:Se.func.isRequired,getElementById:Se.func.isRequired,activeElement:Se.any.isRequired,body:Se.any.isRequired}).isRequired,Node:Se.func.isRequired}),suppressRefError:Se.bool,scrollIntoView:Se.func,selectedItem:Se.any,isOpen:Se.bool,inputValue:Se.string,highlightedIndex:Se.number,labelId:Se.string,inputId:Se.string,menuId:Se.string,getItemId:Se.func});function Yp(e,t){var r=t.refKey;e||console.error('downshift: The ref prop "'+r+'" from getMenuProps was not applied correctly on your menu element.')}function oE(e,t){var r=t.refKey,n=r!=="ref",i=!Hv(e);i&&!n&&!$p.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!i&&n&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+r+'"'),!$p.isForwardRef(e)&&!Wv(e)[r]&&console.error('downshift: You must apply the ref prop "'+r+'" from getRootProps onto your root element.')}var ox={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function sE(e,t,r){var n=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){lE(o,e,t,r),r[o]!==t[o]&&(a[o]=r[o])}),n.onStateChange&&Object.keys(a).length&&n.onStateChange(ze({type:i},a))}function lE(e,t,r,n){var i=t.props,a=t.type,o="on"+bd(e)+"Change";i[o]&&n[e]!==void 0&&n[e]!==r[e]&&i[o](ze({type:a},n))}function uE(e,t){return t.changes}var Qp=ol(function(e,t){$v(e,t)},200),cE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?L.useLayoutEffect:L.useEffect,sx="useId"in L?function(e){var t=e.id,r=e.labelId,n=e.menuId,i=e.getItemId,a=e.toggleButtonId,o=e.inputId,s="downshift-"+L.useId();t||(t=s);var u=L.useMemo(function(){return{labelId:r||t+"-label",menuId:n||t+"-menu",getItemId:i||function(c){return t+"-item-"+c},toggleButtonId:a||t+"-toggle-button",inputId:o||t+"-input"}},[i,t,o,r,n,a]);return u}:function(e){var t=e.id,r=t===void 0?"downshift-"+zv():t,n=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=L.useMemo(function(){return{labelId:n||r+"-label",menuId:i||r+"-menu",getItemId:a||function(c){return r+"-item-"+c},toggleButtonId:o||r+"-toggle-button",inputId:s||r+"-input"}},[a,r,s,n,i,o]);return u};function xd(e,t,r,n){var i,a;if(e===void 0){if(t===void 0)throw new Error(n);i=r[t],a=t}else a=t===void 0?r.indexOf(e):t,i=e;return[i,a]}function dE(e){return/^\S{1}$/.test(e)}function bd(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function sl(e){var t=L.useRef(e);return t.current=e,t}function lx(e,t,r,n){var i=L.useRef(),a=L.useRef(),o=L.useCallback(function(g,x){a.current=x,g=ka(g,x.props);var v=e(g,x),b=x.props.stateReducer(g,ze({},x,{changes:v}));return b},[e]),s=L.useReducer(o,t,r),u=s[0],c=s[1],d=sl(t),h=L.useCallback(function(g){return c(ze({props:d.current},g))},[d]),f=a.current;return L.useEffect(function(){var g=ka(i.current,f==null?void 0:f.props),x=f&&i.current&&!n(g,u);x&&sE(f,g,u),i.current=u},[u,f,n]),[u,h]}function ux(e,t,r,n){var i=lx(e,t,r,n),a=i[0],o=i[1];return[ka(a,t),o]}var ua={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:uE,scrollIntoView:Bv,environment:typeof window>"u"?void 0:window};function Gr(e,t,r){r===void 0&&(r=ox);var n=e["default"+bd(t)];return n!==void 0?n:r[t]}function Qn(e,t,r){r===void 0&&(r=ox);var n=e[t];if(n!==void 0)return n;var i=e["initial"+bd(t)];return i!==void 0?i:Gr(e,t,r)}function cx(e){var t=Qn(e,"selectedItem"),r=Qn(e,"isOpen"),n=hE(e),i=Qn(e,"inputValue");return{highlightedIndex:n<0&&t&&r?e.items.findIndex(function(a){return e.itemToKey(a)===e.itemToKey(t)}):n,isOpen:r,selectedItem:t,inputValue:i}}function Zn(e,t,r){var n=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=e.isItemDisabled,s=e.itemToKey,u=t.selectedItem,c=t.highlightedIndex;return n.length===0?-1:i!==void 0&&c===i&&!o(n[i],i)?i:a!==void 0&&!o(n[a],a)?a:u?n.findIndex(function(d){return s(u)===s(d)}):r<0&&!o(n[n.length-1],n.length-1)?n.length-1:r>0&&!o(n[0],0)?0:-1}function dx(e,t,r){var n=L.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1}),i=L.useCallback(function(){return r.map(function(a){return a.current})},[r]);return L.useEffect(function(){if(!e)return Qt;function a(){n.current.isTouchEnd=!1,n.current.isMouseDown=!0}function o(d){n.current.isMouseDown=!1,Es(d.target,i(),e)||t()}function s(){n.current.isTouchEnd=!1,n.current.isTouchMove=!1}function u(){n.current.isTouchMove=!0}function c(d){n.current.isTouchEnd=!0,!n.current.isTouchMove&&!Es(d.target,i(),e,!1)&&t()}return e.addEventListener("mousedown",a),e.addEventListener("mouseup",o),e.addEventListener("touchstart",s),e.addEventListener("touchmove",u),e.addEventListener("touchend",c),function(){e.removeEventListener("mousedown",a),e.removeEventListener("mouseup",o),e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",u),e.removeEventListener("touchend",c)}},[e,i,t]),n.current}var ll=function(){return Qt};be.NODE_ENV!=="production"&&(ll=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=L.useRef(t.reduce(function(a,o){return a[o]={},a},{}));L.useEffect(function(){Object.keys(n.current).forEach(function(a){var o=n.current[a];if(!Object.keys(o).length){console.error("downshift: You forgot to call the "+a+" getter function on your component / element.");return}var s=o.suppressRefError,u=o.refKey,c=o.elementRef;s||c!=null&&c.current||console.error('downshift: The ref prop "'+u+'" from '+a+" was not applied correctly on your element.")})},[]);var i=L.useCallback(function(a,o,s,u){n.current[a]={suppressRefError:o,refKey:s,elementRef:u}},[]);return i});function yd(e,t,r,n){n===void 0&&(n={});var i=n.document,a=Wa();L.useEffect(function(){if(!(!e||a||!i)){var o=e(t);Qp(o,i)}},r),L.useEffect(function(){return function(){Qp.cancel(),QC(i)}},[i])}function hx(e){var t=e.highlightedIndex,r=e.isOpen,n=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=L.useRef(!0);return cE(function(){t<0||!r||!Object.keys(n.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var ul=Qt;be.NODE_ENV!=="production"&&(ul=function(e){var t=e.props,r=e.state,n=L.useRef(t),i=Wa();L.useEffect(function(){i||(vd(r,n.current,t),n.current=t)},[r,t,i])});function _s(e,t,r){var n;r===void 0&&(r=!0);var i=((n=e.items)==null?void 0:n.length)&&t>=0;return ze({isOpen:!1,highlightedIndex:-1},i&&ze({selectedItem:e.items[t],isOpen:Gr(e,"isOpen"),highlightedIndex:Gr(e,"highlightedIndex")},r&&{inputValue:e.itemToString(e.items[t])}))}function px(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function Wa(){var e=L.useRef(!0);return L.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}function Is(e){var t=Gr(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}function hE(e){var t=Qn(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var ss={environment:Se.shape({addEventListener:Se.func.isRequired,removeEventListener:Se.func.isRequired,document:Se.shape({createElement:Se.func.isRequired,getElementById:Se.func.isRequired,activeElement:Se.any.isRequired,body:Se.any.isRequired}).isRequired,Node:Se.func.isRequired}),itemToString:Se.func,itemToKey:Se.func,stateReducer:Se.func},fx=ze({},ss,{getA11yStatusMessage:Se.func,highlightedIndex:Se.number,defaultHighlightedIndex:Se.number,initialHighlightedIndex:Se.number,isOpen:Se.bool,defaultIsOpen:Se.bool,initialIsOpen:Se.bool,selectedItem:Se.any,initialSelectedItem:Se.any,defaultSelectedItem:Se.any,id:Se.string,labelId:Se.string,menuId:Se.string,getItemId:Se.func,toggleButtonId:Se.string,onSelectedItemChange:Se.func,onHighlightedIndexChange:Se.func,onStateChange:Se.func,onIsOpenChange:Se.func,scrollIntoView:Se.func});function gx(e,t,r){var n=t.type,i=t.props,a;switch(n){case r.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case r.MenuMouseLeave:a={highlightedIndex:-1};break;case r.ToggleButtonClick:case r.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Zn(i,e,0)};break;case r.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Zn(i,e,0)};break;case r.FunctionCloseMenu:a={isOpen:!1};break;case r.FunctionSetHighlightedIndex:a={highlightedIndex:i.isItemDisabled(i.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case r.FunctionSetInputValue:a={inputValue:t.inputValue};break;case r.FunctionReset:a={highlightedIndex:Is(i),isOpen:Gr(i,"isOpen"),selectedItem:Gr(i,"selectedItem"),inputValue:Gr(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return ze({},e,a)}function pE(e){for(var t=e.keysSoFar,r=e.highlightedIndex,n=e.items,i=e.itemToString,a=e.isItemDisabled,o=t.toLowerCase(),s=0;s<n.length;s++){var u=(s+r+(t.length<2?1:0))%n.length,c=n[u];if(c!==void 0&&i(c).toLowerCase().startsWith(o)&&!a(c,u))return u}return r}var fE=Ri(Ri({},fx),{items:Se.array.isRequired,isItemDisabled:Se.func}),gE=Ri(Ri({},ua),{isItemDisabled:function(){return!1}}),mx=Qt;be.NODE_ENV!=="production"&&(mx=function(e,t){Se.checkPropTypes(fE,e,"prop",t.name)});var ls=be.NODE_ENV!=="production"?"__togglebutton_click__":0,wd=be.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_down__":1,kd=be.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_up__":2,As=be.NODE_ENV!=="production"?"__togglebutton_keydown_character__":3,Sd=be.NODE_ENV!=="production"?"__togglebutton_keydown_escape__":4,Cd=be.NODE_ENV!=="production"?"__togglebutton_keydown_home__":5,Ed=be.NODE_ENV!=="production"?"__togglebutton_keydown_end__":6,_d=be.NODE_ENV!=="production"?"__togglebutton_keydown_enter__":7,Id=be.NODE_ENV!=="production"?"__togglebutton_keydown_space_button__":8,Ad=be.NODE_ENV!=="production"?"__togglebutton_keydown_page_up__":9,Td=be.NODE_ENV!=="production"?"__togglebutton_keydown_page_down__":10,Ts=be.NODE_ENV!=="production"?"__togglebutton_blur__":11,vx=be.NODE_ENV!=="production"?"__menu_mouse_leave__":12,xx=be.NODE_ENV!=="production"?"__item_mouse_move__":13,Pd=be.NODE_ENV!=="production"?"__item_click__":14,bx=be.NODE_ENV!=="production"?"__function_toggle_menu__":15,yx=be.NODE_ENV!=="production"?"__function_open_menu__":16,wx=be.NODE_ENV!=="production"?"__function_close_menu__":17,kx=be.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,Nd=be.NODE_ENV!=="production"?"__function_select_item__":19,mc=be.NODE_ENV!=="production"?"__function_set_input_value__":20,Sx=be.NODE_ENV!=="production"?"__function_reset__":21,Cx=Object.freeze({__proto__:null,FunctionCloseMenu:wx,FunctionOpenMenu:yx,FunctionReset:Sx,FunctionSelectItem:Nd,FunctionSetHighlightedIndex:kx,FunctionSetInputValue:mc,FunctionToggleMenu:bx,ItemClick:Pd,ItemMouseMove:xx,MenuMouseLeave:vx,ToggleButtonBlur:Ts,ToggleButtonClick:ls,ToggleButtonKeyDownArrowDown:wd,ToggleButtonKeyDownArrowUp:kd,ToggleButtonKeyDownCharacter:As,ToggleButtonKeyDownEnd:Ed,ToggleButtonKeyDownEnter:_d,ToggleButtonKeyDownEscape:Sd,ToggleButtonKeyDownHome:Cd,ToggleButtonKeyDownPageDown:Td,ToggleButtonKeyDownPageUp:Ad,ToggleButtonKeyDownSpaceButton:Id});function mE(e,t){var r,n=t.type,i=t.props,a=t.altKey,o;switch(n){case Pd:o={isOpen:Gr(i,"isOpen"),highlightedIndex:Is(i),selectedItem:i.items[t.index]};break;case As:{var s=t.key,u=""+e.inputValue+s,c=!e.isOpen&&e.selectedItem?i.items.findIndex(function(g){return i.itemToKey(g)===i.itemToKey(e.selectedItem)}):e.highlightedIndex,d=pE({keysSoFar:u,highlightedIndex:c,items:i.items,itemToString:i.itemToString,isItemDisabled:i.isItemDisabled});o={inputValue:u,highlightedIndex:d,isOpen:!0}}break;case wd:{var h=e.isOpen?Fr(e.highlightedIndex,1,i.items,i.isItemDisabled):a&&e.selectedItem==null?-1:Zn(i,e,1);o={highlightedIndex:h,isOpen:!0}}break;case kd:if(e.isOpen&&a)o=_s(i,e.highlightedIndex,!1);else{var f=e.isOpen?Fr(e.highlightedIndex,-1,i.items,i.isItemDisabled):Zn(i,e,-1);o={highlightedIndex:f,isOpen:!0}}break;case _d:case Id:o=_s(i,e.highlightedIndex,!1);break;case Cd:o={highlightedIndex:In(0,!1,i.items,i.isItemDisabled),isOpen:!0};break;case Ed:o={highlightedIndex:In(i.items.length-1,!0,i.items,i.isItemDisabled),isOpen:!0};break;case Ad:o={highlightedIndex:Fr(e.highlightedIndex,-10,i.items,i.isItemDisabled)};break;case Td:o={highlightedIndex:Fr(e.highlightedIndex,10,i.items,i.isItemDisabled)};break;case Sd:o={isOpen:!1,highlightedIndex:-1};break;case Ts:o=ze({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((r=i.items)==null?void 0:r.length)&&{selectedItem:i.items[e.highlightedIndex]});break;case Nd:o={selectedItem:t.selectedItem};break;default:return gx(e,t,Cx)}return ze({},e,o)}var vE=["onClick"],xE=["onMouseLeave","refKey","ref"],bE=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],yE=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];Si.stateChangeTypes=Cx;function Si(e){e===void 0&&(e={}),mx(e,Si);var t=ze({},gE,e),r=t.scrollIntoView,n=t.environment,i=t.getA11yStatusMessage,a=ux(mE,t,cx,px),o=a[0],s=a[1],u=o.isOpen,c=o.highlightedIndex,d=o.selectedItem,h=o.inputValue,f=L.useRef(null),g=L.useRef(null),x=L.useRef({}),v=L.useRef(null),b=sx(t),y=sl({state:o,props:t}),k=L.useCallback(function(E){return x.current[b.getItemId(E)]},[b]);yd(i,o,[u,c,d,h],n);var C=hx({menuElement:g.current,highlightedIndex:c,isOpen:u,itemRefs:x,scrollIntoView:r,getItemNodeFromIndex:k});L.useEffect(function(){return v.current=ol(function(E){E({type:mc,inputValue:""})},500),function(){v.current.cancel()}},[]),L.useEffect(function(){h&&v.current(s)},[s,h]),ul({props:t,state:o}),L.useEffect(function(){var E=Qn(t,"isOpen");E&&f.current&&f.current.focus()},[]);var I=L.useCallback(function(){y.current.state.isOpen&&s({type:Ts})},[s,y]),w=L.useMemo(function(){return[g,f]},[]),m=dx(n,I,w),T=ll("getMenuProps","getToggleButtonProps");L.useEffect(function(){u||(x.current={})},[u]);var P=L.useMemo(function(){return{ArrowDown:function(E){E.preventDefault(),s({type:wd,altKey:E.altKey})},ArrowUp:function(E){E.preventDefault(),s({type:kd,altKey:E.altKey})},Home:function(E){E.preventDefault(),s({type:Cd})},End:function(E){E.preventDefault(),s({type:Ed})},Escape:function(){y.current.state.isOpen&&s({type:Sd})},Enter:function(E){E.preventDefault(),s({type:y.current.state.isOpen?_d:ls})},PageUp:function(E){y.current.state.isOpen&&(E.preventDefault(),s({type:Ad}))},PageDown:function(E){y.current.state.isOpen&&(E.preventDefault(),s({type:Td}))}," ":function(E){E.preventDefault();var te=y.current.state;if(!te.isOpen){s({type:ls});return}te.inputValue?s({type:As,key:" "}):s({type:Id})}}},[s,y]),V=L.useCallback(function(){s({type:bx})},[s]),O=L.useCallback(function(){s({type:wx})},[s]),B=L.useCallback(function(){s({type:yx})},[s]),F=L.useCallback(function(E){s({type:kx,highlightedIndex:E})},[s]),J=L.useCallback(function(E){s({type:Nd,selectedItem:E})},[s]),U=L.useCallback(function(){s({type:Sx})},[s]),Y=L.useCallback(function(E){s({type:mc,inputValue:E})},[s]),Z=L.useCallback(function(E){var te=E===void 0?{}:E,ae=te.onClick,N=Zt(te,vE),ee=function(){var H;(H=f.current)==null||H.focus()};return ze({id:b.labelId,htmlFor:b.toggleButtonId,onClick:ct(ae,ee)},N)},[b]),le=L.useCallback(function(E,te){var ae,N=E===void 0?{}:E,ee=N.onMouseLeave,H=N.refKey,W=H===void 0?"ref":H,$=N.ref,ie=Zt(N,xE),oe=te===void 0?{}:te,de=oe.suppressRefError,he=de===void 0?!1:de,K=function(){s({type:vx})};return T("getMenuProps",he,W,g),ze((ae={},ae[W]=jr($,function(xe){g.current=xe}),ae.id=b.menuId,ae.role="listbox",ae["aria-labelledby"]=ie&&ie["aria-label"]?void 0:""+b.labelId,ae.onMouseLeave=ct(ee,K),ae),ie)},[s,T,b]),Q=L.useCallback(function(E,te){var ae,N=E===void 0?{}:E,ee=N.onBlur,H=N.onClick;N.onPress;var W=N.onKeyDown,$=N.refKey,ie=$===void 0?"ref":$,oe=N.ref,de=Zt(N,bE),he=te===void 0?{}:te,K=he.suppressRefError,xe=K===void 0?!1:K,q=y.current.state,re=function(){s({type:ls})},ue=function(){q.isOpen&&!m.isMouseDown&&s({type:Ts})},ve=function(Pe){var Ie=Li(Pe);Ie&&P[Ie]?P[Ie](Pe):dE(Ie)&&s({type:As,key:Ie})},Ce=ze((ae={},ae[ie]=jr(oe,function(Pe){f.current=Pe}),ae["aria-activedescendant"]=q.isOpen&&q.highlightedIndex>-1?b.getItemId(q.highlightedIndex):"",ae["aria-controls"]=b.menuId,ae["aria-expanded"]=y.current.state.isOpen,ae["aria-haspopup"]="listbox",ae["aria-labelledby"]=de&&de["aria-label"]?void 0:""+b.labelId,ae.id=b.toggleButtonId,ae.role="combobox",ae.tabIndex=0,ae.onBlur=ct(ee,ue),ae),de);return de.disabled||(Ce.onClick=ct(H,re),Ce.onKeyDown=ct(W,ve)),T("getToggleButtonProps",xe,ie,f),Ce},[s,b,y,m,T,P]),fe=L.useCallback(function(E){var te,ae=E===void 0?{}:E,N=ae.item,ee=ae.index,H=ae.onMouseMove,W=ae.onClick,$=ae.onMouseDown;ae.onPress;var ie=ae.refKey,oe=ie===void 0?"ref":ie,de=ae.disabled,he=ae.ref,K=Zt(ae,yE);de!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var xe=y.current,q=xe.state,re=xe.props,ue=xd(N,ee,re.items,"Pass either item or index to getItemProps!"),ve=ue[0],Ce=ue[1],Pe=re.isItemDisabled(ve,Ce),Ie=function(){m.isTouchEnd||Ce===q.highlightedIndex||(C.current=!1,s({type:xx,index:Ce,disabled:Pe}))},Ue=function(){s({type:Pd,index:Ce})},_e=function(Be){return Be.preventDefault()},Ae=ze((te={},te[oe]=jr(he,function(Be){Be&&(x.current[b.getItemId(Ce)]=Be)}),te["aria-disabled"]=Pe,te["aria-selected"]=ve===q.selectedItem,te.id=b.getItemId(Ce),te.role="option",te),K);return Pe||(Ae.onClick=ct(W,Ue)),Ae.onMouseMove=ct(H,Ie),Ae.onMouseDown=ct($,_e),Ae},[y,b,m,C,s]);return{getToggleButtonProps:Q,getLabelProps:Z,getMenuProps:le,getItemProps:fe,toggleMenu:V,openMenu:B,closeMenu:O,setHighlightedIndex:F,selectItem:J,reset:U,setInputValue:Y,highlightedIndex:c,isOpen:u,selectedItem:d,inputValue:h}}var Od=be.NODE_ENV!=="production"?"__input_keydown_arrow_down__":0,Rd=be.NODE_ENV!=="production"?"__input_keydown_arrow_up__":1,Ld=be.NODE_ENV!=="production"?"__input_keydown_escape__":2,Dd=be.NODE_ENV!=="production"?"__input_keydown_home__":3,Vd=be.NODE_ENV!=="production"?"__input_keydown_end__":4,Md=be.NODE_ENV!=="production"?"__input_keydown_page_up__":5,jd=be.NODE_ENV!=="production"?"__input_keydown_page_down__":6,Fd=be.NODE_ENV!=="production"?"__input_keydown_enter__":7,Bd=be.NODE_ENV!=="production"?"__input_change__":8,Ps=be.NODE_ENV!=="production"?"__input_blur__":9,zd=be.NODE_ENV!=="production"?"__input_click__":10,Ex=be.NODE_ENV!=="production"?"__menu_mouse_leave__":11,_x=be.NODE_ENV!=="production"?"__item_mouse_move__":12,Hd=be.NODE_ENV!=="production"?"__item_click__":13,Ix=be.NODE_ENV!=="production"?"__togglebutton_click__":14,Ax=be.NODE_ENV!=="production"?"__function_toggle_menu__":15,Tx=be.NODE_ENV!=="production"?"__function_open_menu__":16,Px=be.NODE_ENV!=="production"?"__function_close_menu__":17,Nx=be.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,Wd=be.NODE_ENV!=="production"?"__function_select_item__":19,Ox=be.NODE_ENV!=="production"?"__function_set_input_value__":20,Rx=be.NODE_ENV!=="production"?"__function_reset__":21,Ud=be.NODE_ENV!=="production"?"__controlled_prop_updated_selected_item__":22,Lx=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:Ud,FunctionCloseMenu:Px,FunctionOpenMenu:Tx,FunctionReset:Rx,FunctionSelectItem:Wd,FunctionSetHighlightedIndex:Nx,FunctionSetInputValue:Ox,FunctionToggleMenu:Ax,InputBlur:Ps,InputChange:Bd,InputClick:zd,InputKeyDownArrowDown:Od,InputKeyDownArrowUp:Rd,InputKeyDownEnd:Vd,InputKeyDownEnter:Fd,InputKeyDownEscape:Ld,InputKeyDownHome:Dd,InputKeyDownPageDown:jd,InputKeyDownPageUp:Md,ItemClick:Hd,ItemMouseMove:_x,MenuMouseLeave:Ex,ToggleButtonClick:Ix});function wE(e){var t=cx(e),r=t.selectedItem,n=t.inputValue;return n===""&&r&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(n=e.itemToString(r)),ze({},t,{inputValue:n})}var kE=ze({},fx,{items:Se.array.isRequired,isItemDisabled:Se.func,inputValue:Se.string,defaultInputValue:Se.string,initialInputValue:Se.string,inputId:Se.string,onInputValueChange:Se.func});function SE(e,t,r,n){var i=L.useRef(),a=lx(e,t,r,n),o=a[0],s=a[1],u=Wa();return L.useEffect(function(){if(Cs(t,"selectedItem")){if(!u){var c=t.itemToKey(t.selectedItem)!==t.itemToKey(i.current);c&&s({type:Ud,inputValue:t.itemToString(t.selectedItem)})}i.current=o.selectedItem===i.current?t.selectedItem:o.selectedItem}},[o.selectedItem,t.selectedItem]),[ka(o,t),s]}var Dx=Qt;be.NODE_ENV!=="production"&&(Dx=function(e,t){Se.checkPropTypes(kE,e,"prop",t.name)});var CE=ze({},ua,{isItemDisabled:function(){return!1}});function EE(e,t){var r,n=t.type,i=t.props,a=t.altKey,o;switch(n){case Hd:o={isOpen:Gr(i,"isOpen"),highlightedIndex:Is(i),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case Od:e.isOpen?o={highlightedIndex:Fr(e.highlightedIndex,1,i.items,i.isItemDisabled,!0)}:o={highlightedIndex:a&&e.selectedItem==null?-1:Zn(i,e,1),isOpen:i.items.length>=0};break;case Rd:e.isOpen?a?o=_s(i,e.highlightedIndex):o={highlightedIndex:Fr(e.highlightedIndex,-1,i.items,i.isItemDisabled,!0)}:o={highlightedIndex:Zn(i,e,-1),isOpen:i.items.length>=0};break;case Fd:o=_s(i,e.highlightedIndex);break;case Ld:o=ze({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case Md:o={highlightedIndex:Fr(e.highlightedIndex,-10,i.items,i.isItemDisabled,!0)};break;case jd:o={highlightedIndex:Fr(e.highlightedIndex,10,i.items,i.isItemDisabled,!0)};break;case Dd:o={highlightedIndex:In(0,!1,i.items,i.isItemDisabled)};break;case Vd:o={highlightedIndex:In(i.items.length-1,!0,i.items,i.isItemDisabled)};break;case Ps:o=ze({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((r=i.items)==null?void 0:r.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case Bd:o={isOpen:!0,highlightedIndex:Is(i),inputValue:t.inputValue};break;case zd:o={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Zn(i,e,0)};break;case Wd:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case Ud:o={inputValue:t.inputValue};break;default:return gx(e,t,Lx)}return ze({},e,o)}var _E=["onMouseLeave","refKey","ref"],IE=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],AE=["onClick","onPress","refKey","ref"],TE=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];rn.stateChangeTypes=Lx;function rn(e){e===void 0&&(e={}),Dx(e,rn);var t=ze({},CE,e),r=t.items,n=t.scrollIntoView,i=t.environment,a=t.getA11yStatusMessage,o=SE(EE,t,wE,px),s=o[0],u=o[1],c=s.isOpen,d=s.highlightedIndex,h=s.selectedItem,f=s.inputValue,g=L.useRef(null),x=L.useRef({}),v=L.useRef(null),b=L.useRef(null),y=Wa(),k=sx(t),C=L.useRef(),I=sl({state:s,props:t}),w=L.useCallback(function(ee){return x.current[k.getItemId(ee)]},[k]);yd(a,s,[c,d,h,f],i);var m=hx({menuElement:g.current,highlightedIndex:d,isOpen:c,itemRefs:x,scrollIntoView:n,getItemNodeFromIndex:w});ul({props:t,state:s}),L.useEffect(function(){var ee=Qn(t,"isOpen");ee&&v.current&&v.current.focus()},[]),L.useEffect(function(){y||(C.current=r.length)});var T=L.useCallback(function(){I.current.state.isOpen&&u({type:Ps})},[u,I]),P=L.useMemo(function(){return[g,b,v]},[]),V=dx(i,T,P),O=ll("getInputProps","getMenuProps");L.useEffect(function(){c||(x.current={})},[c]),L.useEffect(function(){var ee;!c||!(i!=null&&i.document)||!(v!=null&&(ee=v.current)!=null&&ee.focus)||i.document.activeElement!==v.current&&v.current.focus()},[c,i]);var B=L.useMemo(function(){return{ArrowDown:function(ee){ee.preventDefault(),u({type:Od,altKey:ee.altKey})},ArrowUp:function(ee){ee.preventDefault(),u({type:Rd,altKey:ee.altKey})},Home:function(ee){I.current.state.isOpen&&(ee.preventDefault(),u({type:Dd}))},End:function(ee){I.current.state.isOpen&&(ee.preventDefault(),u({type:Vd}))},Escape:function(ee){var H=I.current.state;(H.isOpen||H.inputValue||H.selectedItem||H.highlightedIndex>-1)&&(ee.preventDefault(),u({type:Ld}))},Enter:function(ee){var H=I.current.state;!H.isOpen||ee.which===229||(ee.preventDefault(),u({type:Fd}))},PageUp:function(ee){I.current.state.isOpen&&(ee.preventDefault(),u({type:Md}))},PageDown:function(ee){I.current.state.isOpen&&(ee.preventDefault(),u({type:jd}))}}},[u,I]),F=L.useCallback(function(ee){return ze({id:k.labelId,htmlFor:k.inputId},ee)},[k]),J=L.useCallback(function(ee,H){var W,$=ee===void 0?{}:ee,ie=$.onMouseLeave,oe=$.refKey,de=oe===void 0?"ref":oe,he=$.ref,K=Zt($,_E),xe=H===void 0?{}:H,q=xe.suppressRefError,re=q===void 0?!1:q;return O("getMenuProps",re,de,g),ze((W={},W[de]=jr(he,function(ue){g.current=ue}),W.id=k.menuId,W.role="listbox",W["aria-labelledby"]=K&&K["aria-label"]?void 0:""+k.labelId,W.onMouseLeave=ct(ie,function(){u({type:Ex})}),W),K)},[u,O,k]),U=L.useCallback(function(ee){var H,W,$=ee===void 0?{}:ee,ie=$.item,oe=$.index,de=$.refKey,he=de===void 0?"ref":de,K=$.ref,xe=$.onMouseMove,q=$.onMouseDown,re=$.onClick;$.onPress;var ue=$.disabled,ve=Zt($,IE);ue!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var Ce=I.current,Pe=Ce.props,Ie=Ce.state,Ue=xd(ie,oe,Pe.items,"Pass either item or index to getItemProps!"),_e=Ue[0],Ae=Ue[1],Be=Pe.isItemDisabled(_e,Ae),Nt="onClick",ge=re,pe=function(){V.isTouchEnd||Ae===Ie.highlightedIndex||(m.current=!1,u({type:_x,index:Ae,disabled:Be}))},D=function(){u({type:Hd,index:Ae})},Oe=function(Ke){return Ke.preventDefault()};return ze((H={},H[he]=jr(K,function(Ke){Ke&&(x.current[k.getItemId(Ae)]=Ke)}),H["aria-disabled"]=Be,H["aria-selected"]=Ae===Ie.highlightedIndex,H.id=k.getItemId(Ae),H.role="option",H),!Be&&(W={},W[Nt]=ct(ge,D),W),{onMouseMove:ct(xe,pe),onMouseDown:ct(q,Oe)},ve)},[u,k,I,V,m]),Y=L.useCallback(function(ee){var H,W=ee===void 0?{}:ee,$=W.onClick;W.onPress;var ie=W.refKey,oe=ie===void 0?"ref":ie,de=W.ref,he=Zt(W,AE),K=I.current.state,xe=function(){u({type:Ix})};return ze((H={},H[oe]=jr(de,function(q){b.current=q}),H["aria-controls"]=k.menuId,H["aria-expanded"]=K.isOpen,H.id=k.toggleButtonId,H.tabIndex=-1,H),!he.disabled&&ze({},{onClick:ct($,xe)}),he)},[u,I,k]),Z=L.useCallback(function(ee,H){var W,$=ee===void 0?{}:ee,ie=$.onKeyDown,oe=$.onChange,de=$.onInput,he=$.onBlur;$.onChangeText;var K=$.onClick,xe=$.refKey,q=xe===void 0?"ref":xe,re=$.ref,ue=Zt($,TE),ve=H===void 0?{}:H,Ce=ve.suppressRefError,Pe=Ce===void 0?!1:Ce;O("getInputProps",Pe,q,v);var Ie=I.current.state,Ue=function(D){var Oe=Li(D);Oe&&B[Oe]&&B[Oe](D)},_e=function(D){u({type:Bd,inputValue:D.target.value})},Ae=function(D){if(i!=null&&i.document&&Ie.isOpen&&!V.isMouseDown){var Oe=D.relatedTarget===null&&i.document.activeElement!==i.document.body;u({type:Ps,selectItem:!Oe})}},Be=function(){u({type:zd})},Nt="onChange",ge={};if(!ue.disabled){var pe;ge=(pe={},pe[Nt]=ct(oe,de,_e),pe.onKeyDown=ct(ie,Ue),pe.onBlur=ct(he,Ae),pe.onClick=ct(K,Be),pe)}return ze((W={},W[q]=jr(re,function(D){v.current=D}),W["aria-activedescendant"]=Ie.isOpen&&Ie.highlightedIndex>-1?k.getItemId(Ie.highlightedIndex):"",W["aria-autocomplete"]="list",W["aria-controls"]=k.menuId,W["aria-expanded"]=Ie.isOpen,W["aria-labelledby"]=ue&&ue["aria-label"]?void 0:k.labelId,W.autoComplete="off",W.id=k.inputId,W.role="combobox",W.value=Ie.inputValue,W),ge,ue)},[u,k,i,B,I,V,O]),le=L.useCallback(function(){u({type:Ax})},[u]),Q=L.useCallback(function(){u({type:Px})},[u]),fe=L.useCallback(function(){u({type:Tx})},[u]),E=L.useCallback(function(ee){u({type:Nx,highlightedIndex:ee})},[u]),te=L.useCallback(function(ee){u({type:Wd,selectedItem:ee})},[u]),ae=L.useCallback(function(ee){u({type:Ox,inputValue:ee})},[u]),N=L.useCallback(function(){u({type:Rx})},[u]);return{getItemProps:U,getLabelProps:F,getMenuProps:J,getInputProps:Z,getToggleButtonProps:Y,toggleMenu:le,openMenu:fe,closeMenu:Q,setHighlightedIndex:E,setInputValue:ae,selectItem:te,reset:N,highlightedIndex:d,isOpen:c,selectedItem:h,inputValue:f}}var Vx={activeIndex:-1,selectedItems:[]};function Zp(e,t){return Qn(e,t,Vx)}function ef(e,t){return Gr(e,t,Vx)}function PE(e){var t=Zp(e,"activeIndex"),r=Zp(e,"selectedItems");return{activeIndex:t,selectedItems:r}}function tf(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;var t=e.target;return!(t instanceof HTMLInputElement&&t.value!==""&&(t.selectionStart!==0||t.selectionEnd!==0))}function NE(e,t){return e.selectedItems===t.selectedItems&&e.activeIndex===t.activeIndex}var OE={stateReducer:ss.stateReducer,itemToKey:ss.itemToKey,environment:ss.environment,selectedItems:Se.array,initialSelectedItems:Se.array,defaultSelectedItems:Se.array,getA11yStatusMessage:Se.func,activeIndex:Se.number,initialActiveIndex:Se.number,defaultActiveIndex:Se.number,onActiveIndexChange:Se.func,onSelectedItemsChange:Se.func,keyNavigationNext:Se.string,keyNavigationPrevious:Se.string},RE={itemToKey:ua.itemToKey,stateReducer:ua.stateReducer,environment:ua.environment,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},Mx=Qt;be.NODE_ENV!=="production"&&(Mx=function(e,t){Se.checkPropTypes(OE,e,"prop",t.name)});var $d=be.NODE_ENV!=="production"?"__selected_item_click__":0,qd=be.NODE_ENV!=="production"?"__selected_item_keydown_delete__":1,Kd=be.NODE_ENV!=="production"?"__selected_item_keydown_backspace__":2,Gd=be.NODE_ENV!=="production"?"__selected_item_keydown_navigation_next__":3,Jd=be.NODE_ENV!=="production"?"__selected_item_keydown_navigation_previous__":4,Xd=be.NODE_ENV!=="production"?"__dropdown_keydown_navigation_previous__":5,Yd=be.NODE_ENV!=="production"?"__dropdown_keydown_backspace__":6,Qd=be.NODE_ENV!=="production"?"__dropdown_click__":7,Zd=be.NODE_ENV!=="production"?"__function_add_selected_item__":8,eh=be.NODE_ENV!=="production"?"__function_remove_selected_item__":9,th=be.NODE_ENV!=="production"?"__function_set_selected_items__":10,rh=be.NODE_ENV!=="production"?"__function_set_active_index__":11,nh=be.NODE_ENV!=="production"?"__function_reset__":12,LE=Object.freeze({__proto__:null,DropdownClick:Qd,DropdownKeyDownBackspace:Yd,DropdownKeyDownNavigationPrevious:Xd,FunctionAddSelectedItem:Zd,FunctionRemoveSelectedItem:eh,FunctionReset:nh,FunctionSetActiveIndex:rh,FunctionSetSelectedItems:th,SelectedItemClick:$d,SelectedItemKeyDownBackspace:Kd,SelectedItemKeyDownDelete:qd,SelectedItemKeyDownNavigationNext:Gd,SelectedItemKeyDownNavigationPrevious:Jd});function DE(e,t){var r=t.type,n=t.index,i=t.props,a=t.selectedItem,o=e.activeIndex,s=e.selectedItems,u;switch(r){case $d:u={activeIndex:n};break;case Jd:u={activeIndex:o-1<0?0:o-1};break;case Gd:u={activeIndex:o+1>=s.length?-1:o+1};break;case Kd:case qd:{if(o<0)break;var c=o;s.length===1?c=-1:o===s.length-1&&(c=s.length-2),u=ze({selectedItems:[].concat(s.slice(0,o),s.slice(o+1))},{activeIndex:c});break}case Xd:u={activeIndex:s.length-1};break;case Yd:u={selectedItems:s.slice(0,s.length-1)};break;case Zd:u={selectedItems:[].concat(s,[a])};break;case Qd:u={activeIndex:-1};break;case eh:{var d=o,h=s.findIndex(function(x){return i.itemToKey(x)===i.itemToKey(a)});if(h<0)break;s.length===1?d=-1:h===s.length-1&&(d=s.length-2),u={selectedItems:[].concat(s.slice(0,h),s.slice(h+1)),activeIndex:d};break}case th:{var f=t.selectedItems;u={selectedItems:f};break}case rh:{var g=t.activeIndex;u={activeIndex:g};break}case nh:u={activeIndex:ef(i,"activeIndex"),selectedItems:ef(i,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return ze({},e,u)}var VE=["refKey","ref","onClick","onKeyDown","selectedItem","index"],ME=["refKey","ref","onKeyDown","onClick","preventKeyAction"];ih.stateChangeTypes=LE;function ih(e){e===void 0&&(e={}),Mx(e,ih);var t=ze({},RE,e),r=t.getA11yStatusMessage,n=t.environment,i=t.keyNavigationNext,a=t.keyNavigationPrevious,o=ux(DE,t,PE,NE),s=o[0],u=o[1],c=s.activeIndex,d=s.selectedItems,h=Wa(),f=L.useRef(null),g=L.useRef();g.current=[];var x=sl({state:s,props:t});yd(r,s,[c,d],n),L.useEffect(function(){h||(c===-1&&f.current?f.current.focus():g.current[c]&&g.current[c].focus())},[c]),ul({props:t,state:s});var v=ll("getDropdownProps"),b=L.useMemo(function(){var V;return V={},V[a]=function(){u({type:Jd})},V[i]=function(){u({type:Gd})},V.Delete=function(){u({type:qd})},V.Backspace=function(){u({type:Kd})},V},[u,i,a]),y=L.useMemo(function(){var V;return V={},V[a]=function(O){tf(O)&&u({type:Xd})},V.Backspace=function(O){tf(O)&&u({type:Yd})},V},[u,a]),k=L.useCallback(function(V){var O,B=V===void 0?{}:V,F=B.refKey,J=F===void 0?"ref":F,U=B.ref,Y=B.onClick,Z=B.onKeyDown,le=B.selectedItem,Q=B.index,fe=Zt(B,VE),E=x.current.state,te=xd(le,Q,E.selectedItems,"Pass either item or index to getSelectedItemProps!"),ae=te[1],N=ae>-1&&ae===E.activeIndex,ee=function(){u({type:$d,index:ae})},H=function(W){var $=Li(W);$&&b[$]&&b[$](W)};return ze((O={},O[J]=jr(U,function(W){W&&g.current.push(W)}),O.tabIndex=N?0:-1,O.onClick=ct(Y,ee),O.onKeyDown=ct(Z,H),O),fe)},[u,x,b]),C=L.useCallback(function(V,O){var B,F=V===void 0?{}:V,J=F.refKey,U=J===void 0?"ref":J,Y=F.ref,Z=F.onKeyDown,le=F.onClick,Q=F.preventKeyAction,fe=Q===void 0?!1:Q,E=Zt(F,ME),te=O===void 0?{}:O,ae=te.suppressRefError,N=ae===void 0?!1:ae;v("getDropdownProps",N,U,f);var ee=function(W){var $=Li(W);$&&y[$]&&y[$](W)},H=function(){u({type:Qd})};return ze((B={},B[U]=jr(Y,function(W){W&&(f.current=W)}),B),!fe&&{onKeyDown:ct(Z,ee),onClick:ct(le,H)},E)},[u,y,v]),I=L.useCallback(function(V){u({type:Zd,selectedItem:V})},[u]),w=L.useCallback(function(V){u({type:eh,selectedItem:V})},[u]),m=L.useCallback(function(V){u({type:th,selectedItems:V})},[u]),T=L.useCallback(function(V){u({type:rh,activeIndex:V})},[u]),P=L.useCallback(function(){u({type:nh})},[u]);return{getSelectedItemProps:k,getDropdownProps:C,addSelectedItem:I,removeSelectedItem:w,setSelectedItems:m,setActiveIndex:T,reset:P,selectedItems:d,activeIndex:c}}const jE=e=>{const{items:t=[],isMulti:r=!1,isSearchable:n=!1,value:i,defaultValue:a,inputValue:o,onChange:s,onInputChange:u,getOptionLabel:c=H=>(H==null?void 0:H.label)||"",getOptionValue:d=H=>(H==null?void 0:H.value)||"",isOpen:h,onOpenChange:f,customOptionGenerator:g,disableInternalFiltering:x=!1,stateReducer:v}=e,b=L.useCallback(H=>{const W=c(H);if(typeof W=="string")return W;if(typeof W=="number")return String(W);const $=H;if(typeof $=="object"&&$!==null){if(typeof $.label=="string")return $.label;if(typeof $.name=="string")return $.name}return String(d(H))},[c,d]),y=H=>H?Array.isArray(H)?H:[H]:[],k=a!==void 0?a:i!==void 0?i:null,[C,I]=L.useState(()=>y(k)),[w,m]=L.useState(o||""),[T,P]=L.useState(()=>h!==void 0?h:!1),V=i!==void 0?y(i):C,O=o!==void 0?o:w,B=h!==void 0?h:T,F=L.useCallback(H=>{h===void 0&&P(H),f==null||f(H)},[h,f]),J=L.useCallback(H=>{i===void 0&&I(H);const W=r?H:H[0]||null;s==null||s(W)},[i,r,s]),U=L.useCallback(H=>{o===void 0&&m(H),u==null||u(H)},[o,u]),Y=L.useMemo(()=>g?g(O,t):x||!n||!O?t:t.filter(H=>b(H).toLowerCase().includes(O.toLowerCase())),[t,O,g,x,n,b]),Z=ih({selectedItems:V,onSelectedItemsChange:H=>{const W=H.selectedItems||[];J(W)}}),le={items:Y,itemToString:H=>H?b(H):"",isOpen:B,onIsOpenChange:({isOpen:H})=>{H!==void 0&&F(H)},selectedItem:r?null:V[0]||null,onSelectedItemChange:H=>{!r&&H.selectedItem&&J([H.selectedItem])}},Q=H=>(W,$)=>{const ie=(()=>{const{changes:oe,type:de}=$;return r&&oe.selectedItem&&(H===rn?[rn.stateChangeTypes.InputKeyDownEnter,rn.stateChangeTypes.ItemClick]:[Si.stateChangeTypes.ToggleButtonKeyDownEnter,Si.stateChangeTypes.ItemClick]).includes(de)?(!V.some(he=>d(he)===d(oe.selectedItem))&&oe.selectedItem&&Z.addSelectedItem(oe.selectedItem),{...oe,isOpen:!0,highlightedIndex:W.highlightedIndex,...n&&{inputValue:""}}):de===rn.stateChangeTypes.InputBlur&&!r&&V.length>0?{...oe,inputValue:b(V[0])}:oe})();return v?v(W,{...$,changes:ie}):ie},fe=n?rn({...le,inputValue:O,onInputValueChange:({inputValue:H,type:W})=>{!H&&W===rn.stateChangeTypes.InputChange&&J([]),U(H||"")},stateReducer:Q(rn),initialIsOpen:h!==void 0?h:!1,defaultIsOpen:!1}):Si({...le,stateReducer:Q(Si),initialIsOpen:h!==void 0?h:!1,defaultIsOpen:!1}),E=()=>{F(!B),"toggleMenu"in fe&&fe.toggleMenu()},te=L.useCallback(()=>{F(!0),"openMenu"in fe&&fe.openMenu()},[F,fe]),ae=L.useCallback(()=>{F(!1),"closeMenu"in fe&&fe.closeMenu()},[F,fe]),N=L.useCallback(()=>{J([]),U(""),r&&Z.reset()},[J,U,r,Z]),ee=L.useCallback(H=>{r&&Z.removeSelectedItem(H)},[r,Z]);return{isOpen:fe.isOpen,selectedItem:fe.selectedItem,highlightedIndex:fe.highlightedIndex,inputValue:O,getToggleButtonProps:fe.getToggleButtonProps,getMenuProps:fe.getMenuProps,getItemProps:fe.getItemProps,getInputProps:"getInputProps"in fe?fe.getInputProps:void 0,selectedItems:V,filteredItems:Y,setInputValue:U,setIsOpen:F,toggleMenu:E,openMenu:te,closeMenu:ae,clearSelection:N,removeItem:ee,multipleSelection:Z,isMulti:r,isSearchable:n}},jx=({size:e="md",color:t="primary",isInvalid:r=!1,isDisabled:n=!1,className:i,children:a,options:o=[],value:s,defaultValue:u,onChange:c,isMulti:d,inputValue:h,onInputChange:f,isSearchable:g,isOpen:x,onOpenChange:v,customOptionGenerator:b,disableInternalFiltering:y,getOptionLabel:k=P=>typeof P=="string"||typeof P=="number"?String(P):(P==null?void 0:P.label)||(P==null?void 0:P.name)||String(P),getOptionValue:C=P=>typeof P=="string"||typeof P=="number"?String(P):(P==null?void 0:P.value)||(P==null?void 0:P.id)||(P==null?void 0:P.name)||String(P),isOptionDisabled:I=P=>(P==null?void 0:P.isDisabled)||!1,formatOptionLabel:w,stateReducer:m,...T})=>{const[P,V]=L.useState(!1),O=L.useMemo(()=>NC(o),[o]),B=jE({items:O,value:s,defaultValue:u,onChange:c,isMulti:d,inputValue:h,onInputChange:f,isSearchable:g,isOpen:x,onOpenChange:v,getOptionLabel:k,getOptionValue:C,customOptionGenerator:b,disableInternalFiltering:y,stateReducer:m}),F={size:e,color:r?"negative":t,isInvalid:r,isDisabled:n,hasMessage:P,setHasMessage:V,downshift:B,options:o,getOptionLabel:k,getOptionValue:C,isOptionDisabled:I,formatOptionLabel:w};return _.jsx(Dv.Provider,{value:F,children:_.jsx("div",{"data-qui":"Select",className:ye(fC(),i),...T,children:a})})},Fx=L.forwardRef(({className:e,children:t,isFocused:r,isDisabled:n,...i},a)=>{const{size:o,color:s,isDisabled:u,hasMessage:c,downshift:d,isInvalid:h}=tr(),f=n??u,g=r??d.isOpen;return _.jsx("div",{ref:a,className:ye(gC({size:o,color:s,isDisabled:f,isFocused:!!g,isInvalid:h&&!d.isOpen,hasMessage:c}),e),"aria-disabled":f,"aria-invalid":h,role:"combobox",tabIndex:f?-1:0,...i,children:t})}),Bx=({className:e,children:t,isMulti:r})=>_.jsx("div",{className:ye(mC({isMulti:r}),e),children:t}),us=L.forwardRef(({isHidden:e,inputClassName:t,...r},n)=>{const{size:i,color:a}=tr();return e?_.jsx("input",{ref:n,type:"text",style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...r}):_.jsx("input",{ref:n,type:"text",className:ye(vC({size:i,color:a}),t),...r})}),zx=({className:e,children:t})=>{const{size:r,color:n}=tr();return _.jsx("div",{className:ye(xC({size:r,color:n}),e),children:t})},Hx=({className:e,children:t,data:r,isDisabled:n})=>{const{size:i,color:a,getOptionLabel:o,formatOptionLabel:s}=tr();return _.jsx("div",{className:ye(bC({size:i,color:a,isDisabled:n}),e),children:t||(s?s(r):o(r))})},Wx=({className:e,children:t,data:r,isDisabled:n,isFocused:i,onRemove:a})=>{const{size:o,color:s,downshift:u,getOptionLabel:c,formatOptionLabel:d}=tr(),h=()=>{a?a(r):u.removeItem(r)};return _.jsxs("div",{className:ye(yC({size:o,color:s,isDisabled:n,isFocused:i}),e),children:[_.jsx("div",{className:wC({size:o}),children:t||(d?d(r):c(r))}),!n&&_.jsx("div",{className:kC({size:o,color:s,isDisabled:!1}),onClick:h,children:_.jsx(il,{className:"w-3 h-3"})})]})},Ux=({color:e,className:t,children:r,onClick:n,isDisabled:i,...a})=>{const{size:o,color:s,isDisabled:u,downshift:c}=tr(),d=i??u,h=c.selectedItems.length>0;if(d||!h)return null;const f=g=>{g.stopPropagation(),n?n(g):c.clearSelection()};return _.jsx("div",{className:ye(Vv({size:o,color:e||s,isDisabled:d}),t),onClick:f,role:"button",tabIndex:0,"aria-label":"Clear selection",...a,children:r||_.jsx(U1,{})})},FE=({className:e,children:t,onClick:r,isDisabled:n,...i})=>{const{size:a,color:o,isDisabled:s,downshift:u}=tr(),c=n??s,d=u.inputValue.length>0&&u.isSearchable;if(c||!d)return null;const h=f=>{f.stopPropagation(),r?r(f):u.setInputValue("")};return _.jsx("div",{className:ye(Vv({size:a,color:o,isDisabled:c}),e),onClick:h,role:"button",tabIndex:0,"aria-label":"Clear selection",...i,children:t||_.jsx(il,{})})},$x=({color:e,className:t,children:r,onClick:n,isDisabled:i,...a})=>{const{size:o,color:s,isDisabled:u,downshift:c}=tr(),d=i??u,h=c.isOpen,f=g=>{g.stopPropagation(),d||(n?n(g):c.toggleMenu())};return _.jsx("div",{className:ye(SC({size:o,color:e||s,isDisabled:d}),"cursor-pointer",t),onClick:f,role:"button",tabIndex:d?-1:0,"aria-label":h?"Close menu":"Open menu","aria-expanded":h,"aria-disabled":d,onMouseDown:g=>{g.preventDefault()},...a,children:r||_.jsx($1,{className:ye("transition-transform duration-200",{"rotate-180":h})})})},qx=L.forwardRef(({className:e,children:t,placement:r,...n},i)=>{const{size:a,hasMessage:o,color:s}=tr();return _.jsx("div",{"data-qui":"SelectMenu",ref:i,className:ye(CC({size:a,placement:r,hasMessage:o,color:s}),e),...n,children:t})}),Kx=L.forwardRef(({className:e,children:t,maxHeight:r=300,...n},i)=>{const{size:a}=tr();return _.jsx(dd,{scrollableNodeProps:{ref:i},className:ye(EC({size:a}),e),style:{maxHeight:r},...n,children:t})}),vc=({className:e,children:t,data:r,isDisabled:n,isFocused:i,isSelected:a,innerProps:o,...s})=>{const{size:u,color:c,getOptionLabel:d,formatOptionLabel:h}=tr();return _.jsx("div",{"data-qui":"SelectOption",className:ye(_C({size:u,color:c,isDisabled:n,isFocused:i,isSelected:a}),e),...o,...s,children:t||(h?h(r):d(r))})},Gx=({className:e,children:t,data:r,label:n})=>{const{size:i}=tr();return _.jsxs("div",{"data-qui":"SelectGroup",className:ye(IC({size:i}),e),children:[_.jsx(Jx,{children:n||r.label}),t]})},Jx=({className:e,children:t})=>{const{size:r,color:n}=tr();return _.jsx("div",{className:ye(AC({size:r,color:n}),e),children:t})},cs=({className:e,children:t,inputValue:r})=>{const{size:n}=tr();return _.jsx("div",{className:ye(PC({size:n}),e),children:t||`No options found${r?` for "${r}"`:""}`})},BE=({isOpen:e,usePortal:t,controlRef:r,children:n})=>{const[i,a]=L.useState(null);return L.useLayoutEffect(()=>{if(t&&e&&r.current){const o=()=>{var s;const u=(s=r.current)==null?void 0:s.getBoundingClientRect();u&&a({top:u.top+window.scrollY,left:u.left+window.scrollX,width:u.width,height:u.height})};return o(),window.addEventListener("resize",o),window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("resize",o),window.removeEventListener("scroll",o,!0)}}},[e,t,r]),e?t&&i?Fa.createPortal(_.jsx("div",{className:"absolute z-50",style:{top:i.top,left:i.left,width:i.width,height:i.height,pointerEvents:"none"},children:_.jsx("div",{className:"relative w-full h-full",children:_.jsx("div",{style:{pointerEvents:"auto"},children:n})})}),document.body):_.jsx(_.Fragment,{children:n}):null},zE=e=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&"current"in r&&(r.current=t)})},Xx=L.forwardRef(({placeholder:e,noOptionsMessage:t="",hideNoOptions:r=!1,loadingMessage:n="Loading...",isClearable:i=!1,isSearchClearable:a=!1,isLoading:o=!1,isRequired:s=!1,hideIndicators:u=!1,hideDropdownIndicator:c=!1,searchPlacement:d="trigger",hideSelectedOptions:h=!1,onFocus:f,onBlur:g,renderMenuHeader:x,formatOptionLabel:v,displayFormattedOption:b=!1,renderMultiValue:y,renderOption:k,inputRef:C,controlShouldRenderValue:I=!0,name:w,id:m,onSelectionComplete:T,"aria-label":P,"aria-labelledby":V,"aria-describedby":O,children:B,usePortal:F=!1,...J},U)=>{const{size:Y,isInvalid:Z,isDisabled:le,downshift:Q,options:fe=[],getOptionLabel:E,getOptionValue:te,isOptionDisabled:ae}=tr(),N=L.useRef(null),ee=C||N,H=L.useRef(null),{isOpen:W,openMenu:$,selectedItem:ie,inputValue:oe,highlightedIndex:de,getToggleButtonProps:he,getMenuProps:K,getInputProps:xe,getItemProps:q,isMulti:re,isSearchable:ue}=Q,ve=re?Q.selectedItems??[]:ie?[ie]:[],Ce=ve.length>0,Pe=a&&!le&&!u,Ie=i&&Ce&&!le&&!u,Ue=!c&&!u,_e=!Ce&&(!ue||!oe)||!I,Ae={},Be={};Object.entries(J).forEach(([rt,et])=>{rt.startsWith("data-")||rt.startsWith("aria-")||rt==="role"?Ae[rt]=et:Be[rt]=et});const Nt=L.useMemo(()=>zE([H,U]),[U]),ge=(xe==null?void 0:xe({ref:ee,disabled:le,required:s,name:w,id:m,"aria-label":P,"aria-labelledby":V,"aria-describedby":O,"aria-invalid":Z,onFocus:f,onBlur:g,...Be}))??{},{ref:pe,...D}=ge,Oe=rt=>ve.some(et=>te(et)===te(rt)),Ke=rt=>h?rt.filter(et=>!Oe(et)):rt,St=rt=>h?rt.map(et=>({...et,options:Ke(et.options)})).filter(et=>et.options.length>0):rt,Te=rt=>{T==null||T(te(rt),rt)},zt=ue?{}:he({disabled:le,ref:Nt});return _.jsxs("div",{className:"relative",children:[_.jsxs(Fx,{...ue?{ref:Nt}:zt,...Ae,isFocused:W,isDisabled:le,onClick:rt=>{rt.stopPropagation(),ue?$():ue||Q.toggleMenu()},children:[B||_.jsxs(Bx,{isMulti:re,children:[re&&I&&ve.map((rt,et)=>y?y({data:rt,index:et,isDisabled:le,onRemove:Xe=>Q.removeItem(Xe)}):_.jsx(Wx,{data:rt,index:et,isDisabled:le},te(rt))),!re&&Ce&&I&&!ue&&_.jsx("div",{className:"flex items-center gap-2",children:_.jsx(Hx,{data:ve[0],isDisabled:le,children:v&&b?v(ve[0]):E(ve[0])})}),ue&&d==="trigger"?_.jsx(us,{ref:pe,...D,placeholder:e}):_.jsxs(_.Fragment,{children:[_.jsx(us,{ref:pe,...D,isHidden:!0,value:ve.map(rt=>te(rt)).join(",")}),_e&&_.jsx(zx,{children:e})]})]}),_.jsxs("div",{className:ye("flex items-center size-fit gap-1",{hidden:!Ie&&!Ue}),children:[Pe&&_.jsx(FE,{}),Ie&&_.jsx(Ux,{}),Ue&&_.jsx($x,{...ue?he({disabled:le,"aria-label":W?"Close menu":"Open menu"}):{}})]})]}),_.jsx(BE,{isOpen:W,usePortal:F,controlRef:H,children:(()=>{const rt=K({},{suppressRefError:!0});return r&&Q.filteredItems.length===0?_.jsx("div",{...rt,style:{display:"none"},"aria-hidden":"true"}):_.jsxs(qx,{...rt,children:[x&&x(Q),ue&&d==="menu"&&_.jsx("div",{className:"p-2",children:_.jsx(us,{ref:pe,...D,autoFocus:!0,placeholder:e,onClick:et=>et.stopPropagation()})}),_.jsx(Kx,{children:o?_.jsx("div",{className:TC({size:Y}),children:n}):Q.filteredItems.length===0?_.jsx(cs,{inputValue:oe,children:typeof t=="function"?t(oe):t}):Mv(fe)?(()=>{const et=St(fe);return et.length===0?_.jsx(cs,{inputValue:oe,children:typeof t=="function"?t(oe):t}):et.map(Xe=>_.jsx(Gx,{data:Xe,label:Xe.label,options:Xe.options,children:Xe.options.map(wt=>{const At=te(wt),pn=ve.some(wr=>te(wr)===At),fr=Q.filteredItems.findIndex(wr=>te(wr)===At),It=de===fr,Dt=ae(wt),Qe=q({item:wt,index:fr,onClick:()=>Te(wt)});return _.jsx(vc,{...Qe,data:wt,isDisabled:Dt,isFocused:It,isSelected:pn,children:v?v(wt):E(wt)},At)})},Xe.label))})():(()=>{const et=Ke(Q.filteredItems);return et.length===0?_.jsx(cs,{inputValue:oe,children:typeof t=="function"?t(oe):t}):et.map(Xe=>{const wt=te(Xe),At=ve.some(Qe=>te(Qe)===wt),pn=Q.filteredItems.findIndex(Qe=>te(Qe)===wt),fr=de===pn,It=ae(Xe),Dt=q({item:Xe,index:pn,onClick:()=>Te(Xe)});return k?_.jsx(L.Fragment,{children:k({...Dt,data:Xe,isDisabled:It,isFocused:fr,isSelected:At})},wt):_.jsx(vc,{...Dt,data:Xe,isDisabled:It,isFocused:fr,isSelected:At,children:v?v(Xe):E(Xe)},wt)})})()})]})})()})]})});jx.displayName="Select.Root";Fx.displayName="Select.Control";Bx.displayName="Select.ValueContainer";us.displayName="Select.Input";zx.displayName="Select.Placeholder";Hx.displayName="Select.SingleValue";Wx.displayName="Select.MultiValue";Ux.displayName="Select.ClearIndicator";$x.displayName="Select.DropdownIndicator";qx.displayName="Select.Menu";Kx.displayName="Select.MenuList";vc.displayName="Select.Option";Gx.displayName="Select.Group";Jx.displayName="Select.GroupHeading";cs.displayName="Select.NoOptionsMessage";const HE=Xx;HE.displayName="Select.Field";const Ns={Root:jx,Field:Xx};L.createContext(void 0);const WE=({active:e,disabled:t,error:r,isOpen:n,className:i})=>ye("flex w-full items-center justify-between text-left leading-5 transition-colors duration-200",{"cursor-pointer":!t,"text-inactive-text":t,"bg-primary hover:bg-primary-hover text-tab-active-fg":e&&!t,"text-negative":r&&!e&&!t,"bg-primary":n&&!e&&!t,"text-tab-inactive-fg":!e&&!t&&!r,"hover:bg-primary-hover hover:text-tab-active-fg":!t&&!e},i),UE=L.forwardRef(({active:e,disabled:t,error:r,isOpen:n,className:i,children:a,as:o="div",...s},u)=>{const c=WE({active:e,disabled:t,error:r,isOpen:n,className:i});return _.jsx(o,{"data-qui":"ListItem",ref:u,className:c,"aria-disabled":t,"aria-selected":e,"aria-invalid":r,"aria-expanded":n,role:s.onClick?"button":"listitem",...s,children:a})});UE.displayName="ListItem";const Lt=()=>document.querySelector(`.${ad.LOCALIZATION_EDITOR_SCOPE_CLASS}`)||document.body,$E=({container:e,...t})=>_.jsx(Ne.Portal,{...t,container:e||Lt()}),qE=({keyName:e,value:t,isDefault:r})=>{const{state:{newValue:n,onEditValue:i},actions:a}=Ne.useStateObject({newValue:t,onEditValue:!1}),{setLanguageKeyValue:o,removeKey:s}=Ln(),u=On(),[c,d]=L.useState(null),h=()=>{i&&(o(e,n),a.setOnEditValue(!1),d(null))},f=()=>{i&&(a.setNewValue(t),a.setOnEditValue(!1),d(null))},g=async()=>{const{confirmed:x}=await u.actions.openModal({title:"Delete Key",type:Ne.ModalType.CONFIRM,color:Ne.ModalColor.DANGER,message:"Deleting this key will remove all translations associated with it across all locales. Are you sure you want to delete it ?",icon:"FdWarningDanger"});x&&s(e)};return L.useEffect(()=>{a.setNewValue(t)},[t]),_.jsxs("tr",{"data-cy":`shared-labels-row-${e}`,className:"odd:bg-white/5",children:[_.jsx("td",{className:"px-2 text-xs font-normal h-10",children:e}),_.jsx("td",{className:"p-2 whitespace-nowrap text-xs font-normal h-10",children:i?_.jsxs(Vr.Root,{isInvalid:!!c,children:[_.jsx(Vr.Group,{children:_.jsx(Vr.Area,{"data-cy":`shared-labels-row-${e}-input`,value:n,onChange:x=>{a.setNewValue(x.target.value),d(null)},onKeyDown:x=>{x.key==="Enter"&&!x.shiftKey&&(x.preventDefault(),h())}})}),c&&_.jsx(Vr.Message,{children:c==null?void 0:c.message})]}):_.jsx("span",{className:xr("text-wrap",{"italic text-inactive-text":r}),onDoubleClick:()=>{a.setOnEditValue(!0)},children:t})}),_.jsx("td",{className:"flex items-center px-2 text-xs font-normal float-right h-10",children:i?_.jsxs(_.Fragment,{children:[_.jsx(Ut,{label:"Confirm",container:Lt(),children:_.jsx(Pt,{"data-cy":`shared-labels-row-${e}-confirm-button`,color:"white",variant:"ghost",onClick:h,children:_.jsx(bt.FdCheckCircle,{})})}),_.jsx(Ut,{label:"Cancel",container:Lt(),children:_.jsx(Pt,{"data-cy":`shared-labels-row-${e}-cancel-button`,color:"white",variant:"ghost",onClick:f,children:_.jsx(bt.FdClose,{})})})]}):_.jsxs(_.Fragment,{children:[_.jsx(Ut,{label:"Edit",container:Lt(),children:_.jsx(Pt,{"data-cy":`shared-labels-row-${e}-edit-button`,color:"white",variant:"ghost",onClick:()=>{a.setOnEditValue(!0)},children:_.jsx(bt.FdPen,{})})}),_.jsx(Ut,{label:"Delete",container:Lt(),children:_.jsx(Pt,{"data-cy":`shared-labels-row-${e}-delete-button`,color:"white",variant:"ghost",onClick:g,children:_.jsx(bt.FdTrash,{})})})]})})]})},KE=({onCancel:e,onConfirm:t,error:r,setError:n})=>{const{state:i,actions:a}=Ne.useStateObject({key:"",value:""}),o=()=>{t(i.key,i.value)},s=()=>{n(null),e()};return _.jsxs("tr",{className:"odd:bg-grey-700 even:bg-grey-600",children:[_.jsx("td",{className:"px-2 text-xs font-normal h-10 min-h-4",children:_.jsxs(Vr.Root,{color:r?"negative":"primary",children:[_.jsx(Vr.Group,{children:_.jsx(Vr.Field,{type:"text",value:i.key,onChange:u=>{n(null),a.setKey(u.target.value)},autoFocus:!0,onKeyUp:u=>{u.key==="Escape"&&(n(null),s())}})}),r&&_.jsx(Vr.Message,{children:r==null?void 0:r.message})]})}),_.jsx("td",{className:"px-2 whitespace-nowrap text-xs font-normal h-10",children:_.jsx(Vr.Root,{color:r?"negative":"primary",children:_.jsx(Vr.Group,{children:_.jsx(Vr.Field,{type:"text",value:i.value,onChange:u=>a.setValue(u.target.value),onKeyUp:u=>{u.key==="Enter"?o():u.key==="Escape"&&s()}})})})}),_.jsxs("td",{className:"flex items-center px-2 text-xs font-normal float-right h-10",children:[_.jsx(Ut,{label:"Confirm",container:Lt(),children:_.jsx(Pt,{color:"white",variant:"ghost",onClick:o,children:_.jsx(bt.FdCheckCircle,{})})}),_.jsx(Ut,{label:"Cancel",container:Lt(),children:_.jsx(Pt,{color:"white",variant:"ghost",onClick:s,children:_.jsx(bt.FdClose,{})})})]})]})},GE=()=>{const{languageKeys:e,isPrimary:t,selectedLanguage:r,userLanguages:{supported:n},addNewKey:i,setUserLangSettings:a}=Ln(),{state:o,actions:s}=Ne.useStateObject({search:"",switch:t,keys:[],addNewKey:!1}),[u,c]=L.useState(null),d=v1(e),h=!!r&&!d,f=!!r,g=e.filter(C=>C.key.match(new RegExp(we.escapeRegExp(o.search),"gi"))),x=g.length===0,v=()=>{if(r){const{isocode:C}=r;a({primary:C,supported:n})}},b=()=>{s.setAddNewKey(!0)},y=(C,I)=>{const w=g.find(m=>m.key===C);if(r){const{isocode:m}=r;if(C){if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(C)||!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(C)){c({message:"Invalid key name"});return}else if(w){c({message:"Key name already exists"});return}i(C,[{lang:m,value:I}],I)}s.setAddNewKey(!1)}},k=()=>{s.setAddNewKey(!1)};return L.useEffect(()=>{s.setSwitch(t)},[t]),_.jsx(Bi,{depth:1,className:xr("flex w-full border-l",{"justify-center items-center":!1}),children:_.jsxs("div",{className:"flex flex-col w-full py-3 px-3 min-h-0",children:[_.jsxs("div",{className:"flex flex-col space-y-3 justify-between w-full",children:[_.jsxs("div",{className:xr("flex items-center w-full justify-between",{hidden:!f}),children:[_.jsxs("div",{className:"flex space-x-2 items-center justify-center",children:[_.jsx("span",{className:"text-[12px]",children:"Shared Labels"}),_.jsx(Ne.Tip,{tipKey:"editors:i18n:label",alwaysOn:!0})]}),_.jsxs("div",{className:"flex space-x-2 justify-center items-center",children:[_.jsx(Pv,{onChange:C=>{t||(s.setSwitch(C),v())},checked:o.switch}),_.jsx("span",{className:"text-xs",children:"Primary Locale"})]})]}),_.jsx("div",{className:xr("w-60",{invisible:!h}),children:_.jsx(Ne.SearchInput,{containerClassName:"",value:o.search,onChange:C=>s.setSearch(C),delay:300})})]}),d?_.jsx(y1,{}):_.jsxs("div",{className:"w-full flex-1 min-h-0 overflow-y-auto",children:[_.jsxs("table",{"data-cy":"shared-labels-table",className:"w-full text-sm text-left rtl:text-right table-fixed",children:[_.jsx("thead",{className:"text-xs",children:_.jsxs("tr",{children:[_.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal",children:"Key"}),_.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal",children:"Value"}),_.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal float-right",children:_.jsx(Ut,{label:"Add a key",container:Lt(),children:_.jsx(Pt,{color:"white",variant:"ghost",onClick:b,children:_.jsx(bt.FdPlus,{})})})})]})}),_.jsxs("tbody",{className:"border-t-[1px] border-border-subtle",children:[g.map((C,I)=>_.jsx(qE,{keyName:C.key,value:C.value,isDefault:C.isDefault},`${r==null?void 0:r.isocode}/${I}`)),o.addNewKey&&_.jsx(KE,{onConfirm:y,onCancel:k,setError:c,error:u}),x&&_.jsx("span",{})]})]}),x&&_.jsxs("div",{className:"flex flex-col justify-center items-center mt-16 ml-2 text-xs space-y-3 text-inactive-text",children:[_.jsx(bt.FdInfoBold,{className:"h-9 w-9"}),_.jsx("div",{className:"text-xs",children:"This key doesn't exist."})]})]})]})})},Sa=(e,t)=>t.find(r=>r.isocode===e);function JE(){return{enter:{mdxFlowExpression:YE,mdxTextExpression:QE},exit:{mdxFlowExpression:rf,mdxFlowExpressionChunk:nf,mdxTextExpression:rf,mdxTextExpressionChunk:nf}}}function XE(){return{handlers:{mdxFlowExpression:af,mdxTextExpression:af},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]}}function YE(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function QE(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function rf(e){const t=this.resume(),r=e.estree,n=this.stack[this.stack.length-1];n.type==="mdxFlowExpression"||n.type,this.exit(e),n.value=t,r&&(n.data={estree:r})}function nf(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function af(e,t,r){const n=e.value||"";return"{"+r.indentLines(n,function(a,o,s){return(o===0||s?"":" ")+a})+"}"}function Os(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}const ZE=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],of={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Yx(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function e_(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function t_(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function sf(e){return t_(e)||Yx(e)}const lf=document.createElement("i");function Ca(e){const t="&"+e+";";lf.innerHTML=t;const r=lf.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}const r_=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function n_(e,t){const r=t||{},n=typeof r.additional=="string"?r.additional.charCodeAt(0):r.additional,i=[];let a=0,o=-1,s="",u,c;r.position&&("start"in r.position||"indent"in r.position?(c=r.position.indent,u=r.position.start):u=r.position);let d=(u?u.line:0)||1,h=(u?u.column:0)||1,f=x(),g;for(a--;++a<=e.length;)if(g===10&&(h=(c?c[o]:0)||1),g=e.charCodeAt(a),g===38){const y=e.charCodeAt(a+1);if(y===9||y===10||y===12||y===32||y===38||y===60||Number.isNaN(y)||n&&y===n){s+=String.fromCharCode(g),h++;continue}const k=a+1;let C=k,I=k,w;if(y===35){I=++C;const J=e.charCodeAt(I);J===88||J===120?(w="hexadecimal",I=++C):w="decimal"}else w="named";let m="",T="",P="";const V=w==="named"?sf:w==="decimal"?Yx:e_;for(I--;++I<=e.length;){const J=e.charCodeAt(I);if(!V(J))break;P+=String.fromCharCode(J),w==="named"&&ZE.includes(P)&&(m=P,T=Ca(P))}let O=e.charCodeAt(I)===59;if(O){I++;const J=w==="named"?Ca(P):!1;J&&(m=P,T=J)}let B=1+I-k,F="";if(!(!O&&r.nonTerminated===!1))if(!P)w!=="named"&&v(4,B);else if(w==="named"){if(O&&!T)v(5,1);else if(m!==P&&(I=C+m.length,B=1+I-C,O=!1),!O){const J=m?1:3;if(r.attribute){const U=e.charCodeAt(I);U===61?(v(J,B),T=""):sf(U)?T="":v(J,B)}else v(J,B)}F=T}else{O||v(2,B);let J=Number.parseInt(P,w==="hexadecimal"?16:10);if(i_(J))v(7,B),F="�";else if(J in of)v(6,B),F=of[J];else{let U="";a_(J)&&v(6,B),J>65535&&(J-=65536,U+=String.fromCharCode(J>>>10|55296),J=56320|J&1023),F=U+String.fromCharCode(J)}}if(F){b(),f=x(),a=I-1,h+=I-k+1,i.push(F);const J=x();J.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,F,{start:f,end:J},e.slice(k-1,I)),f=J}else P=e.slice(k-1,I),s+=P,h+=P.length,a=I-1}else g===10&&(d++,o++,h=0),Number.isNaN(g)?b():(s+=String.fromCharCode(g),h++);return i.join("");function x(){return{line:d,column:h,offset:a+((u?u.offset:0)||0)}}function v(y,k){let C;r.warning&&(C=x(),C.column+=k,C.offset+=k,r.warning.call(r.warningContext||void 0,r_[y],C,y))}function b(){s&&(i.push(s),r.text&&r.text.call(r.textContext||void 0,s,{start:f,end:x()}),s="")}}function i_(e){return e>=55296&&e<=57343||e>1114111}function a_(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const o_=/["&'<>`]/g,s_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l_=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,u_=/[|\\{}()[\]^$+*?.]/g,uf=new WeakMap;function c_(e,t){if(e=e.replace(t.subset?d_(t.subset):o_,n),t.subset||t.escapeOnly)return e;return e.replace(s_,r).replace(l_,n);function r(i,a,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(a+2),t)}function n(i,a,o){return t.format(i.charCodeAt(0),o.charCodeAt(a+1),t)}}function d_(e){let t=uf.get(e);return t||(t=h_(e),uf.set(e,t)),t}function h_(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(u_,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function p_(e){return"&#x"+e.toString(16).toUpperCase()+";"}function f_(e,t){return c_(e,Object.assign({format:p_},t))}function nn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?cf(e.position):"start"in e||"end"in e?cf(e):"line"in e||"column"in e?xc(e):""}function xc(e){return df(e&&e.line)+":"+df(e&&e.column)}function cf(e){return xc(e&&e.start)+"-"+xc(e&&e.end)}function df(e){return e&&typeof e=="number"?e:1}class dt extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const u=n.indexOf(":");u===-1?a.ruleId=n:(a.source=n.slice(0,u),a.ruleId=n.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=nn(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}dt.prototype.file="";dt.prototype.name="";dt.prototype.reason="";dt.prototype.message="";dt.prototype.stack="";dt.prototype.column=void 0;dt.prototype.line=void 0;dt.prototype.ancestors=void 0;dt.prototype.cause=void 0;dt.prototype.fatal=void 0;dt.prototype.place=void 0;dt.prototype.ruleId=void 0;dt.prototype.source=void 0;const Qx=" ";function g_(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:n,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:h,mdxJsxFlowTagExpressionAttribute:f,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:n,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:h,mdxJsxTextTagExpressionAttribute:f,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:s,mdxJsxFlowTagNamePrimary:u,mdxJsxFlowTagNameMember:c,mdxJsxFlowTagNameLocal:d,mdxJsxFlowTagExpressionAttribute:g,mdxJsxFlowTagExpressionAttributeValue:r,mdxJsxFlowTagAttributeNamePrimary:x,mdxJsxFlowTagAttributeNameLocal:v,mdxJsxFlowTagAttributeValueLiteral:b,mdxJsxFlowTagAttributeValueLiteralValue:r,mdxJsxFlowTagAttributeValueExpression:y,mdxJsxFlowTagAttributeValueExpressionValue:r,mdxJsxFlowTagSelfClosingMarker:k,mdxJsxFlowTag:C,mdxJsxTextTagClosingMarker:s,mdxJsxTextTagNamePrimary:u,mdxJsxTextTagNameMember:c,mdxJsxTextTagNameLocal:d,mdxJsxTextTagExpressionAttribute:g,mdxJsxTextTagExpressionAttributeValue:r,mdxJsxTextTagAttributeNamePrimary:x,mdxJsxTextTagAttributeNameLocal:v,mdxJsxTextTagAttributeValueLiteral:b,mdxJsxTextTagAttributeValueLiteralValue:r,mdxJsxTextTagAttributeValueExpression:y,mdxJsxTextTagAttributeValueExpressionValue:r,mdxJsxTextTagSelfClosingMarker:k,mdxJsxTextTag:C}};function e(){this.buffer()}function t(T){return{line:T.line,column:T.column,offset:T.offset}}function r(T){this.config.enter.data.call(this,T),this.config.exit.data.call(this,T)}function n(T){const P={name:void 0,attributes:[],close:!1,selfClosing:!1,start:T.start,end:T.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=P,this.buffer()}function i(T){if(this.data.mdxJsxTagStack.length===0)throw new dt("Unexpected closing slash `/` in tag, expected an open tag first",{start:T.start,end:T.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function a(T){if(this.data.mdxJsxTag.close)throw new dt("Unexpected attribute in closing tag, expected the end of the tag",{start:T.start,end:T.end},"mdast-util-mdx-jsx:unexpected-attribute")}function o(T){if(this.data.mdxJsxTag.close)throw new dt("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:T.start,end:T.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function s(){const T=this.data.mdxJsxTag;T.close=!0}function u(T){const P=this.data.mdxJsxTag;P.name=this.sliceSerialize(T)}function c(T){const P=this.data.mdxJsxTag;P.name+="."+this.sliceSerialize(T)}function d(T){const P=this.data.mdxJsxTag;P.name+=":"+this.sliceSerialize(T)}function h(T){const P=this.data.mdxJsxTag;a.call(this,T),P.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(T.start),end:void 0}})}function f(T){const P=this.data.mdxJsxTag;a.call(this,T),P.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(T.start),end:void 0}}),this.buffer()}function g(T){const P=this.data.mdxJsxTag,V=P.attributes[P.attributes.length-1];V.type;const O=T.estree;V.value=this.resume(),V.position,V.position.end=t(T.end),O&&(V.data={estree:O})}function x(T){const P=this.data.mdxJsxTag,V=P.attributes[P.attributes.length-1];V.type,V.name=this.sliceSerialize(T),V.position,V.position.end=t(T.end)}function v(T){const P=this.data.mdxJsxTag,V=P.attributes[P.attributes.length-1];V.type,V.name+=":"+this.sliceSerialize(T),V.position,V.position.end=t(T.end)}function b(T){const P=this.data.mdxJsxTag,V=P.attributes[P.attributes.length-1];V.value=n_(this.resume(),{nonTerminated:!1}),V.position,V.position.end=t(T.end)}function y(T){const P=this.data.mdxJsxTag,V=P.attributes[P.attributes.length-1];V.type;const O={type:"mdxJsxAttributeValueExpression",value:this.resume()},B=T.estree;B&&(O.data={estree:B}),V.value=O,V.position,V.position.end=t(T.end)}function k(){const T=this.data.mdxJsxTag;T.selfClosing=!0}function C(T){const P=this.data.mdxJsxTag,V=this.data.mdxJsxTagStack,O=V[V.length-1];if(P.close&&O.name!==P.name)throw new dt("Unexpected closing tag `"+m(P)+"`, expected corresponding closing tag for `"+m(O)+"` ("+nn(O)+")",{start:T.start,end:T.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),P.close?V.pop():this.enter({type:T.type==="mdxJsxTextTag"?"mdxJsxTextElement":"mdxJsxFlowElement",name:P.name||null,attributes:P.attributes,children:[]},T,I),P.selfClosing||P.close?this.exit(T,w):V.push(P)}function I(T,P){const V=this.data.mdxJsxTagStack,O=V[V.length-1],B=T?" before the end of `"+T.type+"`":"",F=T?{start:T.start,end:T.end}:void 0;throw new dt("Expected a closing tag for `"+m(O)+"` ("+nn({start:P.start,end:P.end})+")"+B,F,"mdast-util-mdx-jsx:end-tag-mismatch")}function w(T,P){const V=this.data.mdxJsxTag;throw new dt("Expected the closing tag `"+m(V)+"` either after the end of `"+P.type+"` ("+nn(P.end)+") or another opening tag after the start of `"+P.type+"` ("+nn(P.start)+")",{start:T.start,end:T.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function m(T){return"<"+(T.close?"/":"")+(T.name||"")+">"}}function m_(e){const t=e||{},r=t.quote||'"',n=t.quoteSmart||!1,i=t.tightSelfClosing||!1,a=t.printWidth||Number.POSITIVE_INFINITY,o=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize attribute values with `"+r+"` for `options.quote`, expected `\"`, or `'`");return s.peek=x_,{handlers:{mdxJsxFlowElement:s,mdxJsxTextElement:s},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function s(u,c,d,h){const f=u.type==="mdxJsxFlowElement",g=u.name?!u.children||u.children.length===0:!1,x=Zx(d),v=eb(x),b=d.createTracker(h),y=d.createTracker(h),k=[],C=(f?v:"")+"<"+(u.name||""),I=d.enter(u.type);if(b.move(C),y.move(C),u.attributes&&u.attributes.length>0){if(!u.name)throw new Error("Cannot serialize fragment w/ attributes");let V=-1;for(;++V<u.attributes.length;){const O=u.attributes[V];let B;if(O.type==="mdxJsxExpressionAttribute")B="{"+(O.value||"")+"}";else{if(!O.name)throw new Error("Cannot serialize attribute w/o name");const F=O.value,J=O.name;let U="";if(F!=null)if(typeof F=="object")U="{"+(F.value||"")+"}";else{const Y=n&&Os(F,r)>Os(F,o)?o:r;U=Y+f_(F,{subset:[Y]})+Y}B=J+(U?"=":"")+U}k.push(B)}}let w=!1;const m=k.join(" ");f&&(/\r?\n|\r/.test(m)||b.current().now.column+m.length+(g?i?2:3:1)>a)&&(w=!0);let T=b,P=C;if(w){T=y;let V=-1;for(;++V<k.length;)k[V]=v+Qx+k[V];P+=T.move(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),V=require("react"),Cr=require("react-dom"),Ue=require("classnames"),Je=require("@ws-ui/icons"),fe=require("@ws-ui/shared"),yt=require("@ws-ui/store"),oe=require("lodash"),ss=require("short-uuid"),os=require("./common.cjs.js"),fd=require("simplebar-react"),pd=require("react-dropzone"),ls=require("papaparse"),dd=require("jsonschema"),Wr=require("@headlessui/react");function zu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const U=zu(V),Ku=zu(Cr);function Dn(e,t,n){let i=n.initialDeps??[],r,s=!0;function o(){var l,u,f;let p;n.key&&((l=n.debug)!=null&&l.call(n))&&(p=Date.now());const h=e();if(!(h.length!==i.length||h.some((b,v)=>i[v]!==b)))return r;i=h;let m;if(n.key&&((u=n.debug)!=null&&u.call(n))&&(m=Date.now()),r=t(...h),n.key&&((f=n.debug)!=null&&f.call(n))){const b=Math.round((Date.now()-p)*100)/100,v=Math.round((Date.now()-m)*100)/100,S=v/16,E=(k,I)=>{for(k=String(k);k.length<I;)k=" "+k;return k};console.info(`%c⏱ ${E(v,5)} /${E(b,5)} ms`,`
|
|
2
|
+
font-size: .6rem;
|
|
3
|
+
font-weight: bold;
|
|
4
|
+
color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,n==null?void 0:n.key)}return n!=null&&n.onChange&&!(s&&n.skipInitialOnChange)&&n.onChange(r),s=!1,r}return o.updateDeps=l=>{i=l},o}function jo(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const gd=(e,t)=>Math.abs(e-t)<1.01,md=(e,t,n)=>{let i;return function(...r){e.clearTimeout(i),i=e.setTimeout(()=>t.apply(this,r),n)}};var jn={};const Vo=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},xd=e=>e,vd=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let r=t;r<=n;r++)i.push(r);return i},bd=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;const r=o=>{const{width:l,height:u}=o;t({width:Math.round(l),height:Math.round(u)})};if(r(Vo(n)),!i.ResizeObserver)return()=>{};const s=new i.ResizeObserver(o=>{const l=()=>{const u=o[0];if(u!=null&&u.borderBoxSize){const f=u.borderBoxSize[0];if(f){r({width:f.inlineSize,height:f.blockSize});return}}r(Vo(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},Bo={passive:!0},zo=typeof window>"u"?!0:"onscrollend"in window,yd=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;let r=0;const s=e.options.useScrollendEvent&&zo?()=>{}:md(i,()=>{t(r,!1)},e.options.isScrollingResetDelay),o=p=>()=>{const{horizontal:h,isRtl:d}=e.options;r=h?n.scrollLeft*(d&&-1||1):n.scrollTop,s(),t(r,p)},l=o(!0),u=o(!1);n.addEventListener("scroll",l,Bo);const f=e.options.useScrollendEvent&&zo;return f&&n.addEventListener("scrollend",u,Bo),()=>{n.removeEventListener("scroll",l),f&&n.removeEventListener("scrollend",u)}},wd=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const i=t.borderBoxSize[0];if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Ed=(e,{adjustments:t=0,behavior:n},i)=>{var r,s;const o=e+t;(s=(r=i.scrollElement)==null?void 0:r.scrollTo)==null||s.call(r,{[i.options.horizontal?"left":"top"]:o,behavior:n})};class Sd{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var n,i,r;return((r=(i=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:i.now)==null?void 0:r.call(i))??Date.now()},this.observer=(()=>{let n=null;const i=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(r=>{r.forEach(s=>{const o=()=>{const l=s.target,u=this.indexFromElement(l);if(!l.isConnected){this.observer.unobserve(l);return}this.shouldMeasureDuringScroll(u)&&this.resizeItem(u,this.options.measureElement(l,s,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var r;(r=i())==null||r.disconnect(),n=null},observe:r=>{var s;return(s=i())==null?void 0:s.observe(r,{box:"border-box"})},unobserve:r=>{var s;return(s=i())==null?void 0:s.unobserve(r)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([i,r])=>{typeof r>"u"&&delete n[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:xd,rangeExtractor:vd,onChange:()=>{},measureElement:wd,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var i,r;(r=(i=this.options).onChange)==null||r.call(i,this,n)},this.maybeNotify=Dn(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:jn.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(r=>{this.observer.observe(r)}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(r,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<r?"forward":"backward":null,this.scrollOffset=r,this.isScrolling=s,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,i)=>{const r=new Map,s=new Map;for(let o=i-1;o>=0;o--){const l=n[o];if(r.has(l.lane))continue;const u=s.get(l.lane);if(u==null||l.end>u.end?s.set(l.lane,l):l.end<u.end&&r.set(l.lane,!0),r.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((o,l)=>o.end===l.end?o.index-l.index:o.end-l.end)[0]:void 0},this.getMeasurementOptions=Dn(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,i,r,s,o,l)=>(this.prevLanes!==void 0&&this.prevLanes!==l&&(this.lanesChangedFlag=!0),this.prevLanes=l,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:i,scrollMargin:r,getItemKey:s,enabled:o,lanes:l}),{key:!1}),this.getMeasurements=Dn(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:i,scrollMargin:r,getItemKey:s,enabled:o,lanes:l},u)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const d of this.laneAssignments.keys())d>=n&&this.laneAssignments.delete(d);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(d=>{this.itemSizeCache.set(d.key,d.size)}));const f=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1);const p=this.measurementsCache.slice(0,f),h=new Array(l).fill(void 0);for(let d=0;d<f;d++){const m=p[d];m&&(h[m.lane]=d)}for(let d=f;d<n;d++){const m=s(d),b=this.laneAssignments.get(d);let v,S;if(b!==void 0&&this.options.lanes>1){v=b;const N=h[v],y=N!==void 0?p[N]:void 0;S=y?y.end+this.options.gap:i+r}else{const N=this.options.lanes===1?p[d-1]:this.getFurthestMeasurement(p,d);S=N?N.end+this.options.gap:i+r,v=N?N.lane:d%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(d,v)}const E=u.get(m),k=typeof E=="number"?E:this.options.estimateSize(d),I=S+k;p[d]={index:d,start:S,size:k,end:I,key:m,lane:v},h[v]=d}return this.measurementsCache=p,p},{key:jn.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Dn(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,i,r,s)=>this.range=n.length>0&&i>0?kd({measurements:n,outerSize:i,scrollOffset:r,lanes:s}):null,{key:jn.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=Dn(()=>{let n=null,i=null;const r=this.calculateRange();return r&&(n=r.startIndex,i=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,i]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,i]},(n,i,r,s,o)=>s===null||o===null?[]:n({startIndex:s,endIndex:o,overscan:i,count:r}),{key:jn.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=n=>{const i=this.options.indexAttribute,r=n.getAttribute(i);return r?parseInt(r,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var i;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const r=this.scrollState.index??((i=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:i.index);if(r!==void 0&&this.range){const s=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),o=Math.max(0,r-s),l=Math.min(this.options.count-1,r+s);return n>=o&&n<=l}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((o,l)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(l))});return}const i=this.indexFromElement(n),r=this.options.getItemKey(i),s=this.elementsCache.get(r);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(r,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(i)&&this.resizeItem(i,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,i)=>{var r;const s=this.measurementsCache[n];if(!s)return;const o=this.itemSizeCache.get(s.key)??s.size,l=i-o;l!==0&&(((r=this.scrollState)==null?void 0:r.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,l,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&(jn.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",l),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=l,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,i)),this.notify(!1))},this.getVirtualItems=Dn(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,i)=>{const r=[];for(let s=0,o=n.length;s<o;s++){const l=n[s],u=i[l];r.push(u)}return r},{key:jn.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const i=this.getMeasurements();if(i.length!==0)return jo(i[Uu(0,i.length-1,r=>jo(i[r]).start,n)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(n,i,r=0)=>{if(!this.scrollElement)return 0;const s=this.getSize(),o=this.getScrollOffset();i==="auto"&&(i=n>=o+s?"end":"start"),i==="center"?n+=(r-s)/2:i==="end"&&(n-=s);const l=this.getMaxScrollOffset();return Math.max(Math.min(l,n),0)},this.getOffsetForIndex=(n,i="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const r=this.getSize(),s=this.getScrollOffset(),o=this.measurementsCache[n];if(!o)return;if(i==="auto")if(o.end>=s+r-this.options.scrollPaddingEnd)i="end";else if(o.start<=s+this.options.scrollPaddingStart)i="start";else return[s,i];if(i==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),i];const l=i==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(l,i,o.size),i]},this.scrollToOffset=(n,{align:i="start",behavior:r="auto"}={})=>{const s=this.getOffsetForAlignment(n,i),o=this.now();this.scrollState={index:null,align:i,behavior:r,startedAt:o,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:i="auto",behavior:r="auto"}={})=>{n=Math.max(0,Math.min(n,this.options.count-1));const s=this.getOffsetForIndex(n,i);if(!s)return;const[o,l]=s,u=this.now();this.scrollState={index:n,align:l,behavior:r,startedAt:u,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:i="auto"}={})=>{const r=this.getScrollOffset()+n,s=this.now();this.scrollState={index:null,align:"start",behavior:i,startedAt:s,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var n;const i=this.getMeasurements();let r;if(i.length===0)r=this.options.paddingStart;else if(this.options.lanes===1)r=((n=i[i.length-1])==null?void 0:n.end)??0;else{const s=Array(this.options.lanes).fill(null);let o=i.length-1;for(;o>=0&&s.some(l=>l===null);){const l=i[o];s[l.lane]===null&&(s[l.lane]=l.end),o--}r=Math.max(...s.filter(l=>l!==null))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:i,behavior:r})=>{this.options.scrollToFn(n,{behavior:r,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const i=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,r=i?i[0]:this.scrollState.lastTargetOffset,s=1,o=r!==this.scrollState.lastTargetOffset;if(!o&&gd(r,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=s){this.scrollState=null;return}}else this.scrollState.stableFrames=0,o&&(this.scrollState.lastTargetOffset=r,this.scrollState.behavior="auto",this._scrollToOffset(r,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const Uu=(e,t,n,i)=>{for(;e<=t;){const r=(e+t)/2|0,s=n(r);if(s<i)e=r+1;else if(s>i)t=r-1;else return r}return e>0?e-1:0};function kd({measurements:e,outerSize:t,scrollOffset:n,lanes:i}){const r=e.length-1,s=u=>e[u].start;if(e.length<=i)return{startIndex:0,endIndex:r};let o=Uu(0,r,s,n),l=o;if(i===1)for(;l<r&&e[l].end<n+t;)l++;else if(i>1){const u=Array(i).fill(0);for(;l<r&&u.some(p=>p<n+t);){const p=e[l];u[p.lane]=p.end,l++}const f=Array(i).fill(n+t);for(;o>=0&&f.some(p=>p>=n);){const p=e[o];f[p.lane]=p.start,o--}o=Math.max(0,o-o%i),l=Math.min(r,l+(i-1-l%i))}return{startIndex:o,endIndex:l}}const Ko=typeof document<"u"?U.useLayoutEffect:U.useEffect;function Cd({useFlushSync:e=!0,...t}){const n=U.useReducer(()=>({}),{})[1],i={...t,onChange:(s,o)=>{var l;e&&o?Cr.flushSync(n):n(),(l=t.onChange)==null||l.call(t,s,o)}},[r]=U.useState(()=>new Sd(i));return r.setOptions(i),Ko(()=>r._didMount(),[]),Ko(()=>r._willUpdate()),r}function _d(e){return Cd({observeElementRect:bd,observeElementOffset:yd,scrollToFn:Ed,...e})}const Id=e=>e&&e.length===0,Ad=e=>e.length>=1,Td=e=>e.length>=1,Nd=()=>C.jsx("div",{className:"flex flex-col w-full h-full p-2",children:C.jsxs("div",{className:"w-full h-full flex flex-col items-center space-y-3 mt-48 bg-grey-800 ",children:[C.jsx(Je.FdInfoBold,{className:"h-8 w-8 text-grey-200"}),C.jsx("span",{className:"text-grey-200 text-sm text-center",children:"Your locales are set , you can start translating right away. Shared labels are optional, can be created from components at any time, and managed here."})]})}),Hu=V.createContext(null),$u=({children:e,adapter:t})=>C.jsx(Hu.Provider,{value:t,children:e}),vn=({permissive:e=!1}={})=>{const t=V.useContext(Hu);if(!t&&!e)throw new Error("useEditorStateAdapter must be used within an EditorStateAdapterProvider");return t},Cn={keys:{},userLang:{primary:"",supported:[]}};async function qu(){try{const e=await fetch(`/$shared/i18n.json?ts=${Date.now()}`);if(!e.ok)throw new Error(`HTTP ${e.status}`);const t=await e.json();return{keys:oe.get(t,"keys",Cn.keys),userLang:oe.get(t,"userLang",Cn.userLang)}}catch{return Cn}}function Pd(e,t){const n=yt.useAppDispatch(),i=yt.useAppSelector(yt.selectTabs),r=yt.useAppSelector(yt.selectActiveTab),s=yt.useAppSelector(yt.selectAllTabsByType("webform")),o=yt.useAppSelector(yt.selectI18nCurrent);return{getTabs:V.useCallback(()=>i??[],[i]),getI18nCurrent:V.useCallback(()=>o??"",[o]),getWebformTabs:V.useCallback(()=>s??[],[s]),getActiveTabPath:V.useCallback(()=>r??"",[r]),getFlagsByPath:V.useCallback(l=>{var u;return(u=i.find(f=>f.path===l))==null?void 0:u.flags},[i]),getSupportedLanguages:V.useCallback(async l=>fe.getSupportedLanguages(l),[]),fetchI18nFile:V.useCallback(qu,[]),getUserComponents:V.useCallback(()=>e??{},[e]),getBuildResolver:V.useCallback(()=>t??{},[t]),actions:{openModal:V.useCallback(async l=>await n(yt.openModal(l)).unwrap(),[n]),setTabs:V.useCallback(l=>{n(yt.setTabs(l))},[n]),setI18nCurrent:V.useCallback(l=>{n(yt.setI18nCurrent({current:l}))},[n]),setTabContent:V.useCallback(async l=>n(yt.setTabContent(l)),[n])}}}var Fa=function(e,t){return Fa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},Fa(e,t)};function Si(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Fa(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ot=function(){return Ot=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ot.apply(this,arguments)};function Wu(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function Da(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ja(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,s=[],o;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function lr(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,s;i<r;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function qt(e){return typeof e=="function"}function Gu(e){var t=function(i){Error.call(i),i.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Gr=Gu(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
5
|
+
`+n.map(function(i,r){return r+1+") "+i.toString()}).join(`
|
|
6
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}});function Va(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var _r=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,i,r,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var l=Da(o),u=l.next();!u.done;u=l.next()){var f=u.value;f.remove(this)}}catch(v){t={error:v}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}else o.remove(this);var p=this.initialTeardown;if(qt(p))try{p()}catch(v){s=v instanceof Gr?v.errors:[v]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=Da(h),m=d.next();!m.done;m=d.next()){var b=m.value;try{Uo(b)}catch(v){s=s??[],v instanceof Gr?s=lr(lr([],ja(s)),ja(v.errors)):s.push(v)}}}catch(v){i={error:v}}finally{try{m&&!m.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}}if(s)throw new Gr(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Uo(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Va(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Va(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Ju=_r.EMPTY;function Yu(e){return e instanceof _r||e&&"closed"in e&&qt(e.remove)&&qt(e.add)&&qt(e.unsubscribe)}function Uo(e){qt(e)?e():e.unsubscribe()}var Od={Promise:void 0},Rd={setTimeout:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return setTimeout.apply(void 0,lr([e,t],ja(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Ld(e){Rd.setTimeout(function(){throw e})}function Ho(){}function er(e){e()}var us=(function(e){Si(t,e);function t(n){var i=e.call(this)||this;return i.isStopped=!1,n?(i.destination=n,Yu(n)&&n.add(i)):i.destination=Dd,i}return t.create=function(n,i,r){return new Ba(n,i,r)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(_r),Md=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(i){Fi(i)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(i){Fi(i)}else Fi(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Fi(n)}},e})(),Ba=(function(e){Si(t,e);function t(n,i,r){var s=e.call(this)||this,o;return qt(n)||!n?o={next:n??void 0,error:i??void 0,complete:r??void 0}:o=n,s.destination=new Md(o),s}return t})(us);function Fi(e){Ld(e)}function Fd(e){throw e}var Dd={closed:!0,next:Ho,error:Fd,complete:Ho},jd=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Vd(e){return e}function Bd(e){return e.length===0?Vd:e.length===1?e[0]:function(n){return e.reduce(function(i,r){return r(i)},n)}}var $o=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,i){var r=this,s=Kd(t)?t:new Ba(t,n,i);return er(function(){var o=r,l=o.operator,u=o.source;s.add(l?l.call(s,u):u?r._subscribe(s):r._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var i=this;return n=qo(n),new n(function(r,s){var o=new Ba({next:function(l){try{t(l)}catch(u){s(u),o.unsubscribe()}},error:s,complete:r});i.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[jd]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Bd(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=qo(t),new t(function(i,r){var s;n.subscribe(function(o){return s=o},function(o){return r(o)},function(){return i(s)})})},e.create=function(t){return new e(t)},e})();function qo(e){var t;return(t=e??Od.Promise)!==null&&t!==void 0?t:Promise}function zd(e){return e&&qt(e.next)&&qt(e.error)&&qt(e.complete)}function Kd(e){return e&&e instanceof us||zd(e)&&Yu(e)}function Ud(e){return qt(e==null?void 0:e.lift)}function Qu(e){return function(t){if(Ud(t))return t.lift(function(n){try{return e(n,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Zu(e,t,n,i,r){return new Hd(e,t,n,i,r)}var Hd=(function(e){Si(t,e);function t(n,i,r,s,o,l){var u=e.call(this,n)||this;return u.onFinalize=o,u.shouldUnsubscribe=l,u._next=i?function(f){try{i(f)}catch(p){n.error(p)}}:e.prototype._next,u._error=s?function(f){try{s(f)}catch(p){n.error(p)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=r?function(){try{r()}catch(f){n.error(f)}finally{this.unsubscribe()}}:e.prototype._complete,u}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;e.prototype.unsubscribe.call(this),!i&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t})(us),$d=Gu(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xu=(function(e){Si(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var i=new Wo(this,this);return i.operator=n,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new $d},t.prototype.next=function(n){var i=this;er(function(){var r,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=Da(i.currentObservers),l=o.next();!l.done;l=o.next()){var u=l.value;u.next(n)}}catch(f){r={error:f}}finally{try{l&&!l.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(n){var i=this;er(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=n;for(var r=i.observers;r.length;)r.shift().error(n)}})},t.prototype.complete=function(){var n=this;er(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var i=n.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var i=this,r=this,s=r.hasError,o=r.isStopped,l=r.observers;return s||o?Ju:(this.currentObservers=null,l.push(n),new _r(function(){i.currentObservers=null,Va(l,n)}))},t.prototype._checkFinalizedStatuses=function(n){var i=this,r=i.hasError,s=i.thrownError,o=i.isStopped;r?n.error(s):o&&n.complete()},t.prototype.asObservable=function(){var n=new $o;return n.source=this,n},t.create=function(n,i){return new Wo(n,i)},t})($o),Wo=(function(e){Si(t,e);function t(n,i){var r=e.call(this)||this;return r.destination=n,r.source=i,r}return t.prototype.next=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,n)},t.prototype.error=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,n)},t.prototype.complete=function(){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||i===void 0||i.call(n)},t.prototype._subscribe=function(n){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(n))!==null&&r!==void 0?r:Ju},t})(Xu);function qd(e,t){return Qu(function(n,i){var r=0;n.subscribe(Zu(i,function(s){i.next(e.call(t,s,r++))}))})}function Wd(e,t){return Qu(function(n,i){var r=0;n.subscribe(Zu(i,function(s){return e.call(t,s,r++)&&i.next(s)}))})}const ec=new Xu,Gd=(e,t)=>({name:e.split("/").pop()||e,type:fe.FileFolderType.WEBFORM,path:e,date:new Date().toISOString(),content:t,view:{panel:{isOpen:!1,type:"",current:""}},flags:{}});function tc(e,t){switch(t.type){case"SET_TABS":return{...e,tabs:t.payload};case"SET_I18N_CURRENT":return{...e,i18nCurrent:t.payload};case"SET_TAB_CONTENT":{const{path:n,content:i}=t.payload;return e.tabs.find(s=>s.path===n)?{...e,tabs:e.tabs.map(s=>s.path===n?{...s,content:i}:s)}:{...e,tabs:[...e.tabs,Gd(n,i)]}}case"CREATE_MODAL":return{...e,modals:{...e.modals,list:[...e.modals.list,t.payload]}};case"REMOVE_MODAL":return{...e,modals:{...e.modals,list:e.modals.list.filter(n=>n.id!==t.payload)}};case"CLOSE_MODAL":{const{id:n,reason:i}=t.payload;let r;if(i)if(e.modals.list.find(o=>o.id===n))r={...e,modals:{...e.modals,list:e.modals.list.map(o=>o.id===n?{...o,closeReason:i,isOpen:!1}:o)}};else return e;else r={...e,modals:{...e.modals,list:e.modals.list.filter(s=>s.id!==n)}};return ec.next(r.modals),r}case"EDIT_MODAL":{const{id:n,...i}=t.payload;return e.modals.list.find(s=>s.id===n)?{...e,modals:{...e.modals,list:e.modals.list.map(s=>s.id===n?{...s,...i}:s)}}:e}default:return e}}const Ir=V.createContext(null),nc=(e,t)=>({tabs:e,i18nCurrent:t,modals:{list:[]}}),ic=({children:e,tabs:t=[],i18nCurrent:n="",initialI18nFile:i})=>{const[r,s]=V.useReducer(tc,nc(t,n));V.useEffect(()=>{oe.isEqual(r.tabs,t)||s({type:"SET_TABS",payload:t})},[t,r.tabs]),V.useEffect(()=>{r.i18nCurrent!==n&&s({type:"SET_I18N_CURRENT",payload:n})},[n,r.i18nCurrent]);const o=V.useMemo(()=>({state:r,dispatch:s,initialI18nFile:i}),[r,i]);return C.jsx(Ir.Provider,{value:o,children:e})};function rc(e,t,n){const i=V.useContext(Ir);if(!i)throw new Error("useReducerAdapter must be used within a ReducerAdapterProvider");const{state:r,dispatch:s,initialI18nFile:o}=i;return{getTabs:V.useCallback(()=>r.tabs,[r.tabs]),getI18nCurrent:V.useCallback(()=>r.i18nCurrent,[r.i18nCurrent]),fetchI18nFile:V.useCallback(()=>{if(!o)return Promise.resolve(Cn);if(typeof o!="string")return Promise.resolve(o);try{const l=JSON.parse(o);return Promise.resolve({keys:(l==null?void 0:l.keys)??Cn.keys,userLang:(l==null?void 0:l.userLang)??Cn.userLang})}catch{return Promise.resolve(Cn)}},[o]),getWebformTabs:V.useCallback(()=>r.tabs.filter(l=>l.type===fe.FileFolderType.WEBFORM),[r.tabs]),getActiveTabPath:V.useCallback(()=>{var l;return((l=r.tabs[0])==null?void 0:l.path)??""},[r.tabs]),getFlagsByPath:V.useCallback(l=>{var u;return(u=r.tabs.find(f=>f.path===l))==null?void 0:u.flags},[r.tabs]),getSupportedLanguages:V.useCallback(async l=>n&&n.length?n:fe.getSupportedLanguages(l),[n]),getUserComponents:V.useCallback(()=>e??{},[e]),getBuildResolver:V.useCallback(()=>t??{},[t]),actions:{openModal:V.useCallback(async l=>{const{type:u=fe.ModalType.ALERT}=l,f=ss.generate();return s({type:"CREATE_MODAL",payload:{id:f,type:u,isOpen:!0,...l}}),u===fe.ModalType.CONFIRM?new Promise(p=>{const h=ec.pipe(Wd(d=>{const m=d.list.find(b=>b.id===f);return m!==void 0&&!m.isOpen})).subscribe(d=>{var b;const m=d.list.find(v=>v.id===f);if(m){const v=m.closeReason===fe.ModalCloseReason.CONFIRMED,S=oe.entries(((b=m.views)==null?void 0:b.toggles)||{}).reduce((E,k)=>({...E,[k[0]]:k[1].value}),{});s({type:"REMOVE_MODAL",payload:f}),h.unsubscribe(),p({confirmed:v,options:S})}})}):{confirmed:!1}},[s]),setTabs:V.useCallback(l=>{s({type:"SET_TABS",payload:l})},[s]),setI18nCurrent:V.useCallback(l=>{s({type:"SET_I18N_CURRENT",payload:l})},[s]),setTabContent:V.useCallback(async l=>(s({type:"SET_TAB_CONTENT",payload:l}),l),[s])}}}function ac(){const e=V.useContext(Ir);if(!e)throw new Error("useModals must be used within a ReducerAdapterProvider");const{state:t,dispatch:n}=e;return{modals:t.modals.list,closeModal:V.useCallback(i=>{n({type:"CLOSE_MODAL",payload:i})},[n]),editModal:V.useCallback(i=>{n({type:"EDIT_MODAL",payload:i})},[n]),removeModal:V.useCallback(i=>{n({type:"REMOVE_MODAL",payload:i})},[n])}}const sc=V.createContext(void 0),Jr={i18n:{keys:{},userLang:{primary:"",supported:[]}},i18nFileFetched:!1},oc={tr_key:"__t"},{tr_key:Di}=oc,Jd={buildPathFullObject:e=>`${Di}.${e}`,getKeyValueFromCustom:(e,t)=>oe.get(e,`${Di}.${t}.key`),getDefaultValueFromCustom:(e,t)=>oe.get(e,`${Di}.${t}.default`),getFullObject:(e,t)=>oe.get(e,`${Di}.${t}`)},lc=V.memo(({children:e,isI18nEnabled:t,onI18nChange:n})=>{const i=vn({permissive:!0}),[r,s]=V.useState(Jr),o=V.useRef(!1),l=V.useRef(!0),{i18n:u}=r,f=(k,I,N)=>{let y=1,g=k;for(;u.keys[g];)g=`${k}-${y}`,y++;const A={default:N};I.forEach(({lang:F,value:R})=>{F&&oe.set(A,F,R)});const M={keys:{...u.keys,[k]:A},userLang:u.userLang};s(F=>({...F,i18n:M}))},p=()=>{const k=new window.Event("i18n:ready");window.dispatchEvent(k)},h=V.useCallback(oe.debounce((k,I,N,y=!1)=>{s(g=>{const{keys:A,userLang:M}=g.i18n;if(A[k]&&I){const F={...A,[k]:{...A[k],[I]:N}};return o.current=y,{...g,i18n:{keys:F,userLang:M}}}return g})},300),[]),d=V.useCallback(oe.debounce((k,I)=>{const{keys:N,userLang:y}=oe.cloneDeep(u);N[k]&&I&&oe.set(N,`${k}.default`,I),s(g=>({...g,i18n:{keys:N,userLang:y}}))},300),[u]),m=k=>{k&&s(I=>({...I,i18n:{...I.i18n,userLang:k}}))},b=V.useCallback((k,I)=>{const{keys:N,userLang:y}=u,A={keys:Object.entries(N).reduce((M,[F,R])=>{const j={...R};return k.isocode in j&&(j[I.isocode]=j[k.isocode],delete j[k.isocode]),M[F]=j,M},{}),userLang:y};s(M=>({...M,i18n:A}))},[u]),v=V.useCallback(k=>{const{keys:I,userLang:N}=u,g={keys:Object.entries(I).reduce((A,[M,F])=>{const R={...F};return k.isocode in R&&delete R[k.isocode],A[M]=R,A},{}),userLang:N};s(A=>({...A,i18n:g}))},[u]),S=k=>{const I=[];return Object.keys(u.keys).forEach(y=>{const g=oe.get(u,`keys.${y}.${k}`,oe.get(u,`keys.${y}.default`,""));I.push({key:y,value:g})}),I},E=V.useCallback(oe.debounce(k=>{s(I=>{const{keys:N,userLang:y}=I.i18n,g={...N};return delete g[k],{...I,i18n:{userLang:y,keys:g}}})},300),[]);return V.useEffect(()=>{(async()=>{if(!t){s(I=>({...I,i18nFileFetched:!0})),p();return}try{const I=await((i==null?void 0:i.fetchI18nFile)||qu)();s(N=>({...N,i18n:{keys:oe.get(I,"keys",Jr.i18n.keys),userLang:oe.get(I,"userLang",Jr.i18n.userLang)}}))}catch{}finally{s(I=>({...I,i18nFileFetched:!0})),p()}})()},[t,i==null?void 0:i.fetchI18nFile]),V.useEffect(()=>{const k=fe.i18nSubject.pipe(qd(({action:I,payload:N})=>{if(I==="set_content"){const y={...u,keys:{...u.keys,...N}};s(g=>({...g,i18n:y}))}if(I==="set_locale_state"){const y={...u,...N};l.current=!1,s(g=>({...g,i18n:y}))}})).subscribe();return()=>k.unsubscribe()},[u]),V.useEffect(()=>{if(!l.current){l.current=!0;return}r.i18nFileFetched&&(n==null||n(r.i18n))},[r]),C.jsx(sc.Provider,{value:{i18n:r.i18n,createKey:f,updateKey:h,removeKey:E,editLanguageKeys:b,updateKeyDefault:d,deleteLanguageKeys:v,getI18nAsKeyValues:S,setUserLangSettings:m,shouldRecompute:o},children:e})});function sn(){const e=V.useContext(sc);if(e===void 0)throw new Error("useI18n must be used within a I18nProviderContext");return e}const uc=V.createContext(void 0),cc=V.createContext(void 0),Yd=e=>fe.getSupportedLanguages(e),hc=({children:e,getSupportedLanguages:t=Yd,i18nCurrent:n="",activeTabPath:i="",flagsForActiveTab:r})=>{const{isInsideStudio:s}=fe.useStudioContext();return s?C.jsx(Zd,{getSupportedLanguages:t,i18nCurrent:n,activeTabPath:i,flagsForActiveTab:r,children:e}):C.jsx(Qd,{getSupportedLanguages:t,children:e})},Qd=({children:e,getSupportedLanguages:t})=>{const{state:{currentLang:n},actions:i}=fe.useStateObject({currentLang:""}),{actions:r}=fe.useDsRendererAdapter(`${fe.QODLY_NAMESPACE}:${fe.USER_LANGUAGE_DATASOURCE_ID}`),{i18n:{userLang:{primary:s,supported:o}}}=sn(),{isInsideStudio:l}=fe.useStudioContext(),[u,f]=V.useState([]),{loaded:p}=fe.useDsChangeRenderer({datasourceId:`${fe.QODLY_NAMESPACE}:${fe.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:!0,onChange:v=>{if(!v)return;const{selected:S}=v;S&&S.isocode&&(i.setCurrentLang(S.isocode),d(S))}}),h=(v,S)=>{r.setProperty(v,S)},d=v=>{localStorage.setItem("i18n.selected",JSON.stringify(v))},m=()=>{const v=localStorage.getItem("i18n.selected");return v?JSON.parse(v):null},b=()=>navigator.language;return V.useEffect(()=>{t(l).then(v=>{f(v)})},[l]),V.useEffect(()=>{if(p&&o){const v=o.map(({isocode:S})=>u.find(E=>E.isocode===S)).filter(Boolean);h("supported",v)}},[o,p]),V.useEffect(()=>{if(p){const v=m();if(v){h("selected",v);return}const S=b();if(S){const E=o.find(k=>k.isocode===S);if(E){h("selected",E);return}}if(s){const E=o.find(k=>k.isocode===s);E&&h("selected",E)}}},[p,o,s]),C.jsx(cc.Provider,{value:{selected:n,supported:u},children:e})},Zd=V.memo(({children:e,getSupportedLanguages:t,i18nCurrent:n,flagsForActiveTab:i})=>{const{state:{supported:r},actions:s}=fe.useStateObject({supported:[]}),{i18n:{userLang:{primary:o,supported:l}}}=sn(),{isInsideStudio:u}=fe.useStudioContext(),f=n&&l.find(d=>d.isocode===n)?n:"",[p,h]=V.useState(f);return V.useEffect(()=>{i!=null&&i.enabled&&h("")},[i==null?void 0:i.enabled]),V.useEffect(()=>{h(f)},[f]),fe.useDsChangeRenderer({datasourceId:`${fe.QODLY_NAMESPACE}:${fe.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:i==null?void 0:i.enabled,onChange:d=>{if(!d)return;const{selected:m}=d;m&&m.isocode&&(h(m.isocode),localStorage.setItem("i18n.selected",m.isocode))}}),V.useEffect(()=>{t(u).then(d=>{s.setSupported(d)})},[u]),C.jsx(uc.Provider,{value:{primary:o,selected:p||f,supported:r,userLangagues:l},children:e})});function fc(){const{isInsideStudio:e}=fe.useStudioContext(),t=V.useContext(uc),n=V.useContext(cc),i=e?t:n;if(i===void 0)throw new Error("useLocalization must be used within a LocalizationContext");return i}const pc=V.createContext(void 0),dc=({children:e})=>{const{state:{allSupportedLanguages:t,selectedLanguage:n,languageKeys:i,addFirstLanguage:r,editing:s},actions:o}=fe.useStateObject({allSupportedLanguages:[],selectedLanguage:void 0,languageKeys:[],addFirstLanguage:!1,editing:!1}),{supported:l}=fc(),{i18n:u,setUserLangSettings:f,updateKey:p,removeKey:h,createKey:d}=sn(),m=(v,S)=>Object.keys(S).reduce((I,N)=>{if(S[N]){const y=S[N];if(Object.hasOwn(y,v)){const g=S[N][v];I.push({key:N,value:g,isDefault:!1})}else{const g=S[N].default;I.push({key:N,value:g,isDefault:!0})}}return I},[]),b=(v,S)=>{if(n){const{isocode:E}=n;p(v,E,S,!0);const k=structuredClone(u.keys),I=oe.set({...k},`${v}.${E}`,S),N=m(E,I);o.setLanguageKeys(N)}};return V.useEffect(()=>{o.setAllSupportedLanguages(l||[])},[l]),V.useEffect(()=>{if(n){const{isocode:v}=n,S=m(v,u.keys);o.setLanguageKeys(S)}},[u,n]),C.jsx(pc.Provider,{value:{userLanguages:u.userLang,languageKeys:i,selectedLanguage:n,allSupportedLanguages:t,addFirstLanguage:r,editing:s,isPrimary:u.userLang.primary===(n==null?void 0:n.isocode),removeKey:h,addNewKey:d,setAddFirstLanguage:o.setAddFirstLanguage,setUserLangSettings:f,setSelectedLanguage:v=>o.setSelectedLanguage(v),setLanguageKeyValue:b,setEditing:o.setEditing},children:e})},on=()=>{const e=V.useContext(pc);if(e===void 0)throw new Error("useLocalizationEditor must be used within a LocalizationEditorProvider");return e},it=()=>document.querySelector(`.${os.LOCALIZATION_EDITOR_SCOPE_CLASS}`)||document.body,Xd=({container:e,...t})=>C.jsx(fe.Portal,{...t,container:e||it()}),eg=V.memo(({keyName:e,value:t,isDefault:n,index:i})=>{const{state:{newValue:r,onEditValue:s},actions:o}=fe.useStateObject({newValue:t,onEditValue:!1}),{setLanguageKeyValue:l,removeKey:u}=on(),f=vn(),[p,h]=V.useState(null),d=()=>{s&&(l(e,r),o.setOnEditValue(!1),h(null))},m=()=>{s&&(o.setNewValue(t),o.setOnEditValue(!1),h(null))},b=async()=>{const{confirmed:v}=await f.actions.openModal({title:"Delete Key",type:fe.ModalType.CONFIRM,color:fe.ModalColor.DANGER,message:"Deleting this key will remove all translations associated with it across all locales. Are you sure you want to delete it ?",icon:"FdWarningDanger"});v&&u(e)};return V.useEffect(()=>{o.setNewValue(t)},[t]),C.jsxs("tr",{"data-cy":`shared-labels-row-${e}`,className:Ue("text-gray-50",i%2===0?"bg-grey-700":"bg-grey-600"),children:[C.jsx("td",{className:"px-2 text-xs font-normal h-10",children:e}),C.jsxs("td",{className:"p-2 whitespace-nowrap text-xs font-normal h-10",children:[s?C.jsx("textarea",{"data-cy":`shared-labels-row-${e}-input`,className:Ue("min-w-[80%] bg-grey-300 h-6 p-1 p rounded focus-within:outline-none",{"ring-1 ring-red-400":p,"focus-within:ring-1 focus-within:ring-primary-dark":!p}),value:r,onChange:v=>{o.setNewValue(v.target.value),h(null)},onKeyDown:v=>{v.key==="Enter"&&!v.shiftKey&&(v.preventDefault(),d())}}):C.jsx("span",{className:Ue("text-wrap",{"italic text-gray-400":n}),onDoubleClick:()=>{o.setOnEditValue(!0)},children:t}),p&&C.jsx("div",{className:"text-red-400 left-2",children:p==null?void 0:p.message})]}),C.jsx("td",{className:"flex items-center px-2 text-xs font-normal float-right h-10",children:s?C.jsxs(C.Fragment,{children:[C.jsx(fe.Tooltip,{label:"Confirm",container:it(),children:C.jsx("button",{"data-cy":`shared-labels-row-${e}-confirm-button`,className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:d,children:C.jsx(Je.FdCheckCircle,{className:"w-4 h-4"})})}),C.jsx(fe.Tooltip,{label:"Cancel",container:it(),children:C.jsx("button",{"data-cy":`shared-labels-row-${e}-cancel-button`,className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:m,children:C.jsx(Je.FdClose,{className:"w-4 h-4"})})})]}):C.jsxs(C.Fragment,{children:[C.jsx(fe.Tooltip,{label:"Edit",container:it(),children:C.jsx("button",{"data-cy":`shared-labels-row-${e}-edit-button`,className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:()=>{o.setOnEditValue(!0)},children:C.jsx(Je.FdPen,{className:"w-4 h-4"})})}),C.jsx(fe.Tooltip,{label:"Delete",container:it(),children:C.jsx("button",{"data-cy":`shared-labels-row-${e}-delete-button`,className:"cursor-pointerrounded p-1 hover:bg-primary-hover focus:outline-none",onClick:b,children:C.jsx(Je.FdTrash,{className:"w-4 h-4"})})})]})})]})}),tg=({onCancel:e,onConfirm:t,error:n,setError:i})=>{const{state:r,actions:s}=fe.useStateObject({key:"",value:""}),o=()=>{t(r.key,r.value)},l=()=>{i(null),e()};return C.jsxs("tr",{"data-cy":"shared-labels-new-row",className:" text-gray-50 odd:bg-grey-700 even:bg-grey-600",children:[C.jsx("td",{className:"px-2 text-xs font-normal h-10 min-h-4",children:C.jsxs("div",{className:Ue("flex flex-col items-start h-full relative",{"pt-2":n,"justify-center":!n}),children:[C.jsx("input",{"data-cy":"shared-labels-new-row-key-input",className:Ue("min-w-[80%] bg-grey-300 h-6 p-1 p rounded focus-within:outline-none",{"ring-1 ring-red-400":n,"focus-within:ring-1 focus-within:ring-primary-dark":!n}),type:"text",value:r.key,onChange:u=>{i(null),s.setKey(u.target.value)},autoFocus:!0,onKeyUp:u=>{u.key==="Escape"&&(i(null),l())}}),n&&C.jsx("div",{className:"text-red-400 left-2",children:n==null?void 0:n.message})]})}),C.jsx("td",{className:"px-2 whitespace-nowrap text-xs font-normal h-10",children:C.jsx("div",{className:Ue("flex flex-col items-start h-full relative",{"pt-2":n,"justify-center":!n}),children:C.jsx("input",{"data-cy":"shared-labels-new-row-value-input",className:"min-w-[80%] bg-grey-300 h-6 p-1 p rounded focus-within:outline-none focus-within:ring-1 focus-within:ring-primary-dark",type:"text",value:r.value,onChange:u=>s.setValue(u.target.value),onKeyUp:u=>{u.key==="Enter"?o():u.key==="Escape"&&l()}})})}),C.jsxs("td",{className:"flex items-center px-2 text-xs font-normal float-right h-10",children:[C.jsx(fe.Tooltip,{label:"Confirm",container:it(),children:C.jsx("button",{"data-cy":"shared-labels-new-row-confirm-button",className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:o,children:C.jsx(Je.FdCheckCircle,{className:"w-4 h-4"})})}),C.jsx(fe.Tooltip,{label:"Cancel",container:it(),children:C.jsx("button",{"data-cy":"shared-labels-new-row-cancel-button",className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:l,children:C.jsx(Je.FdClose,{className:"w-4 h-4"})})})]})]})},ng=()=>{const{languageKeys:e,isPrimary:t,selectedLanguage:n,userLanguages:{supported:i},addNewKey:r,setUserLangSettings:s}=on(),{state:o,actions:l}=fe.useStateObject({search:"",switch:t,keys:[],addNewKey:!1}),[u,f]=V.useState(null),p=V.useRef(null),h=Id(e),d=!!n&&!h,m=!!n,b=V.useMemo(()=>{if(!o.search)return e;const M=new RegExp(oe.escapeRegExp(o.search),"gi");return e.filter(F=>F.key.match(M))},[e,o.search]),v=b.length===0,S=_d({count:b.length,getScrollElement:()=>p.current,estimateSize:()=>40,overscan:5}),E=S.getVirtualItems(),k=E.length>0?E[0].start:0,I=E.length>0?S.getTotalSize()-E[E.length-1].end:0,N=()=>{if(n){const{isocode:M}=n;s({primary:M,supported:i})}},y=()=>{l.setAddNewKey(!0)},g=(M,F)=>{const R=b.find(j=>j.key===M);if(n){const{isocode:j}=n;if(M){if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(M)||!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(M)){f({message:"Invalid key name"});return}else if(R){f({message:"Key name already exists"});return}r(M,[{lang:j,value:F}],F)}l.setAddNewKey(!1)}},A=()=>{l.setAddNewKey(!1)};return V.useEffect(()=>{l.setSwitch(t)},[t]),C.jsx("div",{"data-cy":"localization-keys-editor",className:Ue("flex w-full bg-grey-800 border-l border-black",{"justify-center items-center":!1}),children:C.jsxs("div",{className:"flex flex-col w-full py-3 px-3 min-h-0",children:[C.jsxs("div",{className:"flex flex-col space-y-3 justify-between w-full",children:[C.jsxs("div",{className:Ue("flex items-center w-full justify-between",{hidden:!m}),children:[C.jsxs("div",{className:"flex space-x-2 items-center justify-center",children:[C.jsx("span",{className:"text-[12px] text-gray-50",children:"Shared Labels"}),C.jsx(fe.Tip,{tipKey:"editors:i18n:label",alwaysOn:!0})]}),C.jsxs("div",{className:"flex space-x-2 justify-center items-center",children:[C.jsx(fe.ControlledSwitch,{onChange:M=>{t||(l.setSwitch(M),N())},value:o.switch,className:"focus:outline-none"}),C.jsx("span",{className:"text-xs text-gray-50",children:"Primary Locale"})]})]}),C.jsx("div",{className:Ue("w-60",{invisible:!d}),children:C.jsx(fe.SearchInput,{containerClassName:"text-grey-50",value:o.search,onChange:M=>l.setSearch(M),delay:300})})]}),h?C.jsx(Nd,{}):C.jsxs("div",{ref:p,className:"w-full flex-1 min-h-0 overflow-y-auto",children:[C.jsxs("table",{"data-cy":"shared-labels-table",className:"w-full text-sm text-left rtl:text-right text-grey-50 table-fixed",children:[C.jsx("thead",{className:"text-xs text-grey-50",children:C.jsxs("tr",{children:[C.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal",children:"Key"}),C.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal",children:"Value"}),C.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal float-right",children:C.jsx(fe.Tooltip,{label:"Add a key",container:it(),children:C.jsx("button",{"data-cy":"localization-editor-add-key-button",className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:y,children:C.jsx(Je.FdPlus,{className:"w-4 h-4"})})})})]})}),C.jsxs("tbody",{className:"border-t-[1px] border-grey-50",children:[k>0&&C.jsx("tr",{children:C.jsx("td",{colSpan:3,style:{height:k}})}),E.map(M=>{const F=b[M.index];return C.jsx(eg,{index:M.index,keyName:F.key,value:F.value,isDefault:F.isDefault},`${n==null?void 0:n.isocode}/${M.index}`)}),I>0&&C.jsx("tr",{children:C.jsx("td",{colSpan:3,style:{height:I}})}),o.addNewKey&&C.jsx(tg,{onConfirm:g,onCancel:A,setError:f,error:u}),v&&C.jsx("span",{})]})]}),v&&C.jsxs("div",{className:"flex flex-col justify-center items-center mt-16 ml-2 text-xs space-y-3 text-green-50",children:[C.jsx(Je.FdInfoBold,{className:"h-9 w-9 text-grey-200"}),C.jsx("div",{className:"text-xs text-grey-200",children:"This key doesn't exist."})]})]})]})})},dn=(e,t)=>t.find(n=>n.isocode===e);function ig(){return{enter:{mdxFlowExpression:ag,mdxTextExpression:sg},exit:{mdxFlowExpression:Go,mdxFlowExpressionChunk:Jo,mdxTextExpression:Go,mdxTextExpressionChunk:Jo}}}function rg(){return{handlers:{mdxFlowExpression:Yo,mdxTextExpression:Yo},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]}}function ag(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function sg(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function Go(e){const t=this.resume(),n=e.estree,i=this.stack[this.stack.length-1];i.type==="mdxFlowExpression"||i.type,this.exit(e),i.value=t,n&&(i.data={estree:n})}function Jo(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Yo(e,t,n){const i=e.value||"";return"{"+n.indentLines(i,function(s,o,l){return(o===0||l?"":" ")+s})+"}"}function ur(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,r=n.indexOf(t);for(;r!==-1;)i++,r=n.indexOf(t,r+t.length);return i}const og=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Qo={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function gc(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function lg(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function ug(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Zo(e){return ug(e)||gc(e)}const Xo=document.createElement("i");function mi(e){const t="&"+e+";";Xo.innerHTML=t;const n=Xo.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const cg=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function hg(e,t){const n=t||{},i=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,r=[];let s=0,o=-1,l="",u,f;n.position&&("start"in n.position||"indent"in n.position?(f=n.position.indent,u=n.position.start):u=n.position);let p=(u?u.line:0)||1,h=(u?u.column:0)||1,d=b(),m;for(s--;++s<=e.length;)if(m===10&&(h=(f?f[o]:0)||1),m=e.charCodeAt(s),m===38){const E=e.charCodeAt(s+1);if(E===9||E===10||E===12||E===32||E===38||E===60||Number.isNaN(E)||i&&E===i){l+=String.fromCharCode(m),h++;continue}const k=s+1;let I=k,N=k,y;if(E===35){N=++I;const D=e.charCodeAt(N);D===88||D===120?(y="hexadecimal",N=++I):y="decimal"}else y="named";let g="",A="",M="";const F=y==="named"?Zo:y==="decimal"?gc:lg;for(N--;++N<=e.length;){const D=e.charCodeAt(N);if(!F(D))break;M+=String.fromCharCode(D),y==="named"&&og.includes(M)&&(g=M,A=mi(M))}let R=e.charCodeAt(N)===59;if(R){N++;const D=y==="named"?mi(M):!1;D&&(g=M,A=D)}let j=1+N-k,B="";if(!(!R&&n.nonTerminated===!1))if(!M)y!=="named"&&v(4,j);else if(y==="named"){if(R&&!A)v(5,1);else if(g!==M&&(N=I+g.length,j=1+N-I,R=!1),!R){const D=g?1:3;if(n.attribute){const se=e.charCodeAt(N);se===61?(v(D,j),A=""):Zo(se)?A="":v(D,j)}else v(D,j)}B=A}else{R||v(2,j);let D=Number.parseInt(M,y==="hexadecimal"?16:10);if(fg(D))v(7,j),B="�";else if(D in Qo)v(6,j),B=Qo[D];else{let se="";pg(D)&&v(6,j),D>65535&&(D-=65536,se+=String.fromCharCode(D>>>10|55296),D=56320|D&1023),B=se+String.fromCharCode(D)}}if(B){S(),d=b(),s=N-1,h+=N-k+1,r.push(B);const D=b();D.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,B,{start:d,end:D},e.slice(k-1,N)),d=D}else M=e.slice(k-1,N),l+=M,h+=M.length,s=N-1}else m===10&&(p++,o++,h=0),Number.isNaN(m)?S():(l+=String.fromCharCode(m),h++);return r.join("");function b(){return{line:p,column:h,offset:s+((u?u.offset:0)||0)}}function v(E,k){let I;n.warning&&(I=b(),I.column+=k,I.offset+=k,n.warning.call(n.warningContext||void 0,cg[E],I,E))}function S(){l&&(r.push(l),n.text&&n.text.call(n.textContext||void 0,l,{start:d,end:b()}),l="")}}function fg(e){return e>=55296&&e<=57343||e>1114111}function pg(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const dg=/["&'<>`]/g,gg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,mg=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,xg=/[|\\{}()[\]^$+*?.]/g,el=new WeakMap;function vg(e,t){if(e=e.replace(t.subset?bg(t.subset):dg,i),t.subset||t.escapeOnly)return e;return e.replace(gg,n).replace(mg,i);function n(r,s,o){return t.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),t)}function i(r,s,o){return t.format(r.charCodeAt(0),o.charCodeAt(s+1),t)}}function bg(e){let t=el.get(e);return t||(t=yg(e),el.set(e,t)),t}function yg(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(xg,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function wg(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Eg(e,t){return vg(e,Object.assign({format:wg},t))}function en(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?tl(e.position):"start"in e||"end"in e?tl(e):"line"in e||"column"in e?za(e):""}function za(e){return nl(e&&e.line)+":"+nl(e&&e.column)}function tl(e){return za(e&&e.start)+"-"+za(e&&e.end)}function nl(e){return e&&typeof e=="number"?e:1}class qe extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?r=t:!s.cause&&t&&(o=!0,r=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const u=i.indexOf(":");u===-1?s.ruleId=i:(s.source=i.slice(0,u),s.ruleId=i.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){const u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}const l=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=en(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}qe.prototype.file="";qe.prototype.name="";qe.prototype.reason="";qe.prototype.message="";qe.prototype.stack="";qe.prototype.column=void 0;qe.prototype.line=void 0;qe.prototype.ancestors=void 0;qe.prototype.cause=void 0;qe.prototype.fatal=void 0;qe.prototype.place=void 0;qe.prototype.ruleId=void 0;qe.prototype.source=void 0;const mc=" ";function Sg(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:i,mdxJsxFlowTagClosingMarker:r,mdxJsxFlowTagAttribute:h,mdxJsxFlowTagExpressionAttribute:d,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:i,mdxJsxTextTagClosingMarker:r,mdxJsxTextTagAttribute:h,mdxJsxTextTagExpressionAttribute:d,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:l,mdxJsxFlowTagNamePrimary:u,mdxJsxFlowTagNameMember:f,mdxJsxFlowTagNameLocal:p,mdxJsxFlowTagExpressionAttribute:m,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:b,mdxJsxFlowTagAttributeNameLocal:v,mdxJsxFlowTagAttributeValueLiteral:S,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:E,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:k,mdxJsxFlowTag:I,mdxJsxTextTagClosingMarker:l,mdxJsxTextTagNamePrimary:u,mdxJsxTextTagNameMember:f,mdxJsxTextTagNameLocal:p,mdxJsxTextTagExpressionAttribute:m,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:b,mdxJsxTextTagAttributeNameLocal:v,mdxJsxTextTagAttributeValueLiteral:S,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:E,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:k,mdxJsxTextTag:I}};function e(){this.buffer()}function t(A){return{line:A.line,column:A.column,offset:A.offset}}function n(A){this.config.enter.data.call(this,A),this.config.exit.data.call(this,A)}function i(A){const M={name:void 0,attributes:[],close:!1,selfClosing:!1,start:A.start,end:A.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=M,this.buffer()}function r(A){if(this.data.mdxJsxTagStack.length===0)throw new qe("Unexpected closing slash `/` in tag, expected an open tag first",{start:A.start,end:A.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function s(A){if(this.data.mdxJsxTag.close)throw new qe("Unexpected attribute in closing tag, expected the end of the tag",{start:A.start,end:A.end},"mdast-util-mdx-jsx:unexpected-attribute")}function o(A){if(this.data.mdxJsxTag.close)throw new qe("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:A.start,end:A.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function l(){const A=this.data.mdxJsxTag;A.close=!0}function u(A){const M=this.data.mdxJsxTag;M.name=this.sliceSerialize(A)}function f(A){const M=this.data.mdxJsxTag;M.name+="."+this.sliceSerialize(A)}function p(A){const M=this.data.mdxJsxTag;M.name+=":"+this.sliceSerialize(A)}function h(A){const M=this.data.mdxJsxTag;s.call(this,A),M.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(A.start),end:void 0}})}function d(A){const M=this.data.mdxJsxTag;s.call(this,A),M.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(A.start),end:void 0}}),this.buffer()}function m(A){const M=this.data.mdxJsxTag,F=M.attributes[M.attributes.length-1];F.type;const R=A.estree;F.value=this.resume(),F.position,F.position.end=t(A.end),R&&(F.data={estree:R})}function b(A){const M=this.data.mdxJsxTag,F=M.attributes[M.attributes.length-1];F.type,F.name=this.sliceSerialize(A),F.position,F.position.end=t(A.end)}function v(A){const M=this.data.mdxJsxTag,F=M.attributes[M.attributes.length-1];F.type,F.name+=":"+this.sliceSerialize(A),F.position,F.position.end=t(A.end)}function S(A){const M=this.data.mdxJsxTag,F=M.attributes[M.attributes.length-1];F.value=hg(this.resume(),{nonTerminated:!1}),F.position,F.position.end=t(A.end)}function E(A){const M=this.data.mdxJsxTag,F=M.attributes[M.attributes.length-1];F.type;const R={type:"mdxJsxAttributeValueExpression",value:this.resume()},j=A.estree;j&&(R.data={estree:j}),F.value=R,F.position,F.position.end=t(A.end)}function k(){const A=this.data.mdxJsxTag;A.selfClosing=!0}function I(A){const M=this.data.mdxJsxTag,F=this.data.mdxJsxTagStack,R=F[F.length-1];if(M.close&&R.name!==M.name)throw new qe("Unexpected closing tag `"+g(M)+"`, expected corresponding closing tag for `"+g(R)+"` ("+en(R)+")",{start:A.start,end:A.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),M.close?F.pop():this.enter({type:A.type==="mdxJsxTextTag"?"mdxJsxTextElement":"mdxJsxFlowElement",name:M.name||null,attributes:M.attributes,children:[]},A,N),M.selfClosing||M.close?this.exit(A,y):F.push(M)}function N(A,M){const F=this.data.mdxJsxTagStack,R=F[F.length-1],j=A?" before the end of `"+A.type+"`":"",B=A?{start:A.start,end:A.end}:void 0;throw new qe("Expected a closing tag for `"+g(R)+"` ("+en({start:M.start,end:M.end})+")"+j,B,"mdast-util-mdx-jsx:end-tag-mismatch")}function y(A,M){const F=this.data.mdxJsxTag;throw new qe("Expected the closing tag `"+g(F)+"` either after the end of `"+M.type+"` ("+en(M.end)+") or another opening tag after the start of `"+M.type+"` ("+en(M.start)+")",{start:A.start,end:A.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function g(A){return"<"+(A.close?"/":"")+(A.name||"")+">"}}function kg(e){const t=e||{},n=t.quote||'"',i=t.quoteSmart||!1,r=t.tightSelfClosing||!1,s=t.printWidth||Number.POSITIVE_INFINITY,o=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return l.peek=_g,{handlers:{mdxJsxFlowElement:l,mdxJsxTextElement:l},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function l(u,f,p,h){const d=u.type==="mdxJsxFlowElement",m=u.name?!u.children||u.children.length===0:!1,b=xc(p),v=vc(b),S=p.createTracker(h),E=p.createTracker(h),k=[],I=(d?v:"")+"<"+(u.name||""),N=p.enter(u.type);if(S.move(I),E.move(I),u.attributes&&u.attributes.length>0){if(!u.name)throw new Error("Cannot serialize fragment w/ attributes");let F=-1;for(;++F<u.attributes.length;){const R=u.attributes[F];let j;if(R.type==="mdxJsxExpressionAttribute")j="{"+(R.value||"")+"}";else{if(!R.name)throw new Error("Cannot serialize attribute w/o name");const B=R.value,D=R.name;let se="";if(B!=null)if(typeof B=="object")se="{"+(B.value||"")+"}";else{const ue=i&&ur(B,n)>ur(B,o)?o:n;se=ue+Eg(B,{subset:[ue]})+ue}j=D+(se?"=":"")+se}k.push(j)}}let y=!1;const g=k.join(" ");d&&(/\r?\n|\r/.test(g)||S.current().now.column+g.length+(m?r?2:3:1)>s)&&(y=!0);let A=S,M=I;if(y){A=E;let F=-1;for(;++F<k.length;)k[F]=v+mc+k[F];M+=A.move(`
|
|
53
7
|
`+k.join(`
|
|
54
8
|
`)+`
|
|
55
|
-
`+v)}else
|
|
56
|
-
`),
|
|
57
|
-
`))),
|
|
9
|
+
`+v)}else g&&(M+=A.move(" "+g));return m&&(M+=A.move((r||y?"":" ")+"/")),M+=A.move(">"),u.children&&u.children.length>0&&(u.type==="mdxJsxTextElement"?M+=A.move(p.containerPhrasing(u,{...A.current(),before:">",after:"<"})):(A.shift(2),M+=A.move(`
|
|
10
|
+
`),M+=A.move(Cg(u,p,A.current())),M+=A.move(`
|
|
11
|
+
`))),m||(M+=A.move((d?v:"")+"</"+(u.name||"")+">")),N(),M}}function Cg(e,t,n){const i=t.indexStack,r=e.children,s=t.createTracker(n),o=vc(xc(t)),l=[];let u=-1;for(i.push(-1);++u<r.length;){const f=r[u];i[i.length-1]=u;const p={before:`
|
|
58
12
|
`,after:`
|
|
59
|
-
`,...
|
|
13
|
+
`,...s.current()},h=t.handle(f,e,t,p),d=f.type==="mdxJsxFlowElement"?h:t.indentLines(h,function(m,b,v){return(v?"":o)+m});l.push(s.move(d)),f.type!=="list"&&(t.bulletLastUsed=void 0),u<r.length-1&&l.push(s.move(`
|
|
60
14
|
|
|
61
|
-
`))}return n.pop(),s.join("")}function Zx(e){let t=0,r=e.stack.length;for(;--r>-1;){const n=e.stack[r];if(n==="blockquote"||n==="listItem")break;n==="mdxJsxFlowElement"&&t++}return t}function eb(e){return Qx.repeat(e)}function x_(){return"<"}function b_(){return{enter:{mdxjsEsm:w_},exit:{mdxjsEsm:k_,mdxjsEsmData:S_}}}function y_(){return{handlers:{mdxjsEsm:C_}}}function w_(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function k_(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,this.exit(e);const n=e.estree;r.value=t,n&&(r.data={estree:n})}function S_(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function C_(e){return e.value||""}function E_(){return[JE(),g_(),b_()]}function __(e){return{extensions:[XE(),m_(e),y_()]}}var I_=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,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,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,343,9,54,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,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,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,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],tb=[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,4,51,13,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,39,27,10,22,251,41,7,1,17,2,60,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,200,32,32,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,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,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,229,29,3,0,496,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],A_="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",rb="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",mu={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},vu="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",T_={5:vu,"5module":vu+" export import",6:vu+" const class extends export import super"},P_=/^in(stanceof)?$/,N_=new RegExp("["+rb+"]"),O_=new RegExp("["+rb+A_+"]");function bc(e,t){for(var r=65536,n=0;n<t.length;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function Jr(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&N_.test(String.fromCharCode(e)):t===!1?!1:bc(e,tb)}function An(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&O_.test(String.fromCharCode(e)):t===!1?!1:bc(e,tb)||bc(e,I_)}var st=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function Sr(e,t){return new st(e,{beforeExpr:!0,binop:t})}var Cr={beforeExpr:!0},or={startsExpr:!0},ah={};function at(e,t){return t===void 0&&(t={}),t.keyword=e,ah[e]=new st(e,t)}var R={num:new st("num",or),regexp:new st("regexp",or),string:new st("string",or),name:new st("name",or),privateId:new st("privateId",or),eof:new st("eof"),bracketL:new st("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new st("]"),braceL:new st("{",{beforeExpr:!0,startsExpr:!0}),braceR:new st("}"),parenL:new st("(",{beforeExpr:!0,startsExpr:!0}),parenR:new st(")"),comma:new st(",",Cr),semi:new st(";",Cr),colon:new st(":",Cr),dot:new st("."),question:new st("?",Cr),questionDot:new st("?."),arrow:new st("=>",Cr),template:new st("template"),invalidTemplate:new st("invalidTemplate"),ellipsis:new st("...",Cr),backQuote:new st("`",or),dollarBraceL:new st("${",{beforeExpr:!0,startsExpr:!0}),eq:new st("=",{beforeExpr:!0,isAssign:!0}),assign:new st("_=",{beforeExpr:!0,isAssign:!0}),incDec:new st("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new st("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Sr("||",1),logicalAND:Sr("&&",2),bitwiseOR:Sr("|",3),bitwiseXOR:Sr("^",4),bitwiseAND:Sr("&",5),equality:Sr("==/!=/===/!==",6),relational:Sr("</>/<=/>=",7),bitShift:Sr("<</>>/>>>",8),plusMin:new st("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Sr("%",10),star:Sr("*",10),slash:Sr("/",10),starstar:new st("**",{beforeExpr:!0}),coalesce:Sr("??",1),_break:at("break"),_case:at("case",Cr),_catch:at("catch"),_continue:at("continue"),_debugger:at("debugger"),_default:at("default",Cr),_do:at("do",{isLoop:!0,beforeExpr:!0}),_else:at("else",Cr),_finally:at("finally"),_for:at("for",{isLoop:!0}),_function:at("function",or),_if:at("if"),_return:at("return",Cr),_switch:at("switch"),_throw:at("throw",Cr),_try:at("try"),_var:at("var"),_const:at("const"),_while:at("while",{isLoop:!0}),_with:at("with"),_new:at("new",{beforeExpr:!0,startsExpr:!0}),_this:at("this",or),_super:at("super",or),_class:at("class",or),_extends:at("extends",Cr),_export:at("export"),_import:at("import",or),_null:at("null",or),_true:at("true",or),_false:at("false",or),_in:at("in",{beforeExpr:!0,binop:7}),_instanceof:at("instanceof",{beforeExpr:!0,binop:7}),_typeof:at("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:at("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:at("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},hr=/\r\n?|\n|\u2028|\u2029/,R_=new RegExp(hr.source,"g");function zi(e){return e===10||e===13||e===8232||e===8233}function nb(e,t,r){r===void 0&&(r=e.length);for(var n=t;n<r;n++){var i=e.charCodeAt(n);if(zi(i))return n<r-1&&i===13&&e.charCodeAt(n+1)===10?n+2:n+1}return-1}var ib=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Kt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ab=Object.prototype,L_=ab.hasOwnProperty,D_=ab.toString,Hi=Object.hasOwn||(function(e,t){return L_.call(e,t)}),hf=Array.isArray||(function(e){return D_.call(e)==="[object Array]"}),pf=Object.create(null);function En(e){return pf[e]||(pf[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function sn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var V_=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ea=function(t,r){this.line=t,this.column=r};Ea.prototype.offset=function(t){return new Ea(this.line,this.column+t)};var cl=function(t,r,n){this.start=r,this.end=n,t.sourceFile!==null&&(this.source=t.sourceFile)};function ob(e,t){for(var r=1,n=0;;){var i=nb(e,n,t);if(i<0)return new Ea(r,t-n);++r,n=i}}var yc={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},ff=!1;function M_(e){var t={};for(var r in yc)t[r]=e&&Hi(e,r)?e[r]:yc[r];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!ff&&typeof console=="object"&&console.warn&&(ff=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
62
|
-
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),
|
|
63
|
-
`,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(hr).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=R.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(_a),this.regexpState=null,this.privateNameStack=[]},Xr={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};jt.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};Xr.inFunction.get=function(){return(this.currentVarScope().flags&Wi)>0};Xr.inGenerator.get=function(){return(this.currentVarScope().flags&sb)>0};Xr.inAsync.get=function(){return(this.currentVarScope().flags&oh)>0};Xr.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],r=t.flags;if(r&(ii|Ua))return!1;if(r&Wi)return(r&oh)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Xr.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&dl)>0||this.options.allowSuperOutsideMethod};Xr.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ub)>0};Xr.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Xr.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],r=t.flags;if(r&(ii|Ua)||r&Wi&&!(r&sh))return!0}return!1};Xr.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ii)>0};jt.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var n=this,i=0;i<t.length;i++)n=t[i](n);return n};jt.parse=function(t,r){return new this(r,t).parse()};jt.parseExpressionAt=function(t,r,n){var i=new this(n,t,r);return i.nextToken(),i.parseExpression()};jt.tokenizer=function(t,r){return new this(r,t)};Object.defineProperties(jt.prototype,Xr);var rr=jt.prototype,F_=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;rr.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Kt.lastIndex=e,e+=Kt.exec(this.input)[0].length;var t=F_.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){Kt.lastIndex=e+t[0].length;var r=Kt.exec(this.input),n=r.index+r[0].length,i=this.input.charAt(n);return i===";"||i==="}"||hr.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(n+1)==="=")}e+=t[0].length,Kt.lastIndex=e,e+=Kt.exec(this.input)[0].length,this.input[e]===";"&&e++}};rr.eat=function(e){return this.type===e?(this.next(),!0):!1};rr.isContextual=function(e){return this.type===R.name&&this.value===e&&!this.containsEsc};rr.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};rr.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};rr.canInsertSemicolon=function(){return this.type===R.eof||this.type===R.braceR||hr.test(this.input.slice(this.lastTokEnd,this.start))};rr.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};rr.semicolon=function(){!this.eat(R.semi)&&!this.insertSemicolon()&&this.unexpected()};rr.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};rr.expect=function(e){this.eat(e)||this.unexpected()};rr.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var pl=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};rr.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}};rr.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;if(!t)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")};rr.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};rr.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var je=jt.prototype;je.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==R.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var n=0,i=Object.keys(this.undefinedExports);n<i.length;n+=1){var a=i[n];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var ch={kind:"loop"},B_={kind:"switch"};je.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Kt.lastIndex=this.pos;var t=Kt.exec(this.input),r=this.pos+t[0].length,n=this.input.charCodeAt(r);if(n===91||n===92)return!0;if(e)return!1;if(n===123||n>55295&&n<56320)return!0;if(Jr(n,!0)){for(var i=r+1;An(n=this.input.charCodeAt(i),!0);)++i;if(n===92||n>55295&&n<56320)return!0;var a=this.input.slice(r,i);if(!P_.test(a))return!0}return!1};je.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Kt.lastIndex=this.pos;var e=Kt.exec(this.input),t=this.pos+e[0].length,r;return!hr.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(An(r=this.input.charCodeAt(t+8))||r>55295&&r<56320))};je.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;Kt.lastIndex=this.pos;var r=Kt.exec(this.input),n=this.pos+r[0].length;if(hr.test(this.input.slice(this.pos,n)))return!1;if(e){var i=n+5,a;if(this.input.slice(n,i)!=="using"||i===this.input.length||An(a=this.input.charCodeAt(i))||a>55295&&a<56320)return!1;Kt.lastIndex=i;var o=Kt.exec(this.input);if(o&&hr.test(this.input.slice(i,i+o[0].length)))return!1}if(t){var s=n+2,u;if(this.input.slice(n,s)==="of"&&(s===this.input.length||!An(u=this.input.charCodeAt(s))&&!(u>55295&&u<56320)))return!1}var c=this.input.charCodeAt(n);return Jr(c,!0)||c===92};je.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};je.isUsing=function(e){return this.isUsingKeyword(!1,e)};je.parseStatement=function(e,t,r){var n=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(n=R._var,a="let"),n){case R._break:case R._continue:return this.parseBreakContinueStatement(i,n.keyword);case R._debugger:return this.parseDebuggerStatement(i);case R._do:return this.parseDoStatement(i);case R._for:return this.parseForStatement(i);case R._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case R._class:return e&&this.unexpected(),this.parseClass(i,!0);case R._if:return this.parseIfStatement(i);case R._return:return this.parseReturnStatement(i);case R._switch:return this.parseSwitchStatement(i);case R._throw:return this.parseThrowStatement(i);case R._try:return this.parseTryStatement(i);case R._const:case R._var:return a=a||this.value,e&&a!=="var"&&this.unexpected(),this.parseVarStatement(i,a);case R._while:return this.parseWhileStatement(i);case R._with:return this.parseWithStatement(i);case R.braceL:return this.parseBlock(!0,i);case R.semi:return this.parseEmptyStatement(i);case R._export:case R._import:if(this.options.ecmaVersion>10&&n===R._import){Kt.lastIndex=this.pos;var o=Kt.exec(this.input),s=this.pos+o[0].length,u=this.input.charCodeAt(s);if(u===40||u===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),n===R._import?this.parseImport(i):this.parseExport(i,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var c=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(c)return t&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),c==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(i,!1,c),this.semicolon(),this.finishNode(i,"VariableDeclaration");var d=this.value,h=this.parseExpression();return n===R.name&&h.type==="Identifier"&&this.eat(R.colon)?this.parseLabeledStatement(i,d,h,e):this.parseExpressionStatement(i,h)}};je.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(R.semi)||this.insertSemicolon()?e.label=null:this.type!==R.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var i=this.labels[n];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(r||i.kind==="loop")||e.label&&r))break}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")};je.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};je.parseDoStatement=function(e){return this.next(),this.labels.push(ch),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(R._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(R.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};je.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ch),this.enterScope(0),this.expect(R.parenL),this.type===R.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===R._var||this.type===R._const||r){var n=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(n,!0,i),this.finishNode(n,"VariableDeclaration"),this.parseForAfterInit(e,n,t)}var a=this.isContextual("let"),o=!1,s=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(s){var u=this.startNode();return this.next(),s==="await using"&&this.next(),this.parseVar(u,!0,s),this.finishNode(u,"VariableDeclaration"),this.parseForAfterInit(e,u,t)}var c=this.containsEsc,d=new pl,h=this.start,f=t>-1?this.parseExprSubscripts(d,"await"):this.parseExpression(!0,d);return this.type===R._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===R._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(f.start===h&&!c&&f.type==="Identifier"&&f.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),a&&o&&this.raise(f.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(f,!1,d),this.checkLValPattern(f),this.parseForIn(e,f)):(this.checkExpressionErrors(d,!0),t>-1&&this.unexpected(t),this.parseFor(e,f))};je.parseForAfterInit=function(e,t,r){return(this.type===R._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===R._in?r>-1&&this.unexpected(r):e.await=r>-1),this.parseForIn(e,t)):(r>-1&&this.unexpected(r),this.parseFor(e,t))};je.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,ca|(r?0:wc),!1,t)};je.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(R._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};je.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(R.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};je.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(R.braceL),this.labels.push(B_),this.enterScope(0);for(var t,r=!1;this.type!==R.braceR;)if(this.type===R._case||this.type===R._default){var n=this.type===R._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(R.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};je.parseThrowStatement=function(e){return this.next(),hr.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var z_=[];je.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?lb:0),this.checkLValPattern(e,t?db:cn),this.expect(R.parenR),e};je.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===R._catch){var t=this.startNode();this.next(),this.eat(R.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(R._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};je.parseVarStatement=function(e,t,r){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")};je.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(ch),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};je.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};je.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};je.parseLabeledStatement=function(e,t,r,n){for(var i=0,a=this.labels;i<a.length;i+=1){var o=a[i];o.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var s=this.type.isLoop?"loop":this.type===R._switch?"switch":null,u=this.labels.length-1;u>=0;u--){var c=this.labels[u];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=s;else break}return this.labels.push({name:t,kind:s,statementStart:this.start}),e.body=this.parseStatement(n?n.indexOf("label")===-1?n+"label":n:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};je.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};je.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(R.braceL),e&&this.enterScope(0);this.type!==R.braceR;){var n=this.parseStatement(null);t.body.push(n)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};je.parseFor=function(e,t){return e.init=t,this.expect(R.semi),e.test=this.type===R.semi?null:this.parseExpression(),this.expect(R.semi),e.update=this.type===R.parenR?null:this.parseExpression(),this.expect(R.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};je.parseForIn=function(e,t){var r=this.type===R._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(R.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};je.parseVar=function(e,t,r,n){for(e.declarations=[],e.kind=r;;){var i=this.startNode();if(this.parseVarId(i,r),this.eat(R.eq)?i.init=this.parseMaybeAssign(t):!n&&r==="const"&&!(this.type===R._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!n&&(r==="using"||r==="await using")&&this.options.ecmaVersion>=17&&this.type!==R._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+r+" declaration"):!n&&i.id.type!=="Identifier"&&!(t&&(this.type===R._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):i.init=null,e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(R.comma))break}return e};je.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?uh:cn,!1)};var ca=1,wc=2,pb=4;je.parseFunction=function(e,t,r,n,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===R.star&&t&wc&&this.unexpected(),e.generator=this.eat(R.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&ca&&(e.id=t&pb&&this.type!==R.name?null:this.parseIdent(),e.id&&!(t&wc)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?uh:cn:cb));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(lh(e.async,e.generator)),t&ca||(e.id=this.type===R.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&ca?"FunctionDeclaration":"FunctionExpression")};je.parseFunctionParams=function(e){this.expect(R.parenL),e.params=this.parseBindingList(R.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};je.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(R.braceL);this.type!==R.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(a&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),a=!0):o.key&&o.key.type==="PrivateIdentifier"&&H_(n,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};je.parseClassElement=function(e){if(this.eat(R.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),n="",i=!1,a=!1,o="method",s=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(R.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===R.star?s=!0:n="static"}if(r.static=s,!n&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===R.star)&&!this.canInsertSemicolon()?a=!0:n="async"),!n&&(t>=9||!a)&&this.eat(R.star)&&(i=!0),!n&&!a&&!i){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=u:n=u)}if(n?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=n,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===R.parenL||o!=="method"||i||a){var c=!r.static&&Ls(r,"constructor"),d=c&&e;c&&o!=="method"&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=c?"constructor":o,this.parseClassMethod(r,i,a,d)}else this.parseClassField(r);return r};je.isClassElementNameStart=function(){return this.type===R.name||this.type===R.privateId||this.type===R.num||this.type===R.string||this.type===R.bracketL||this.type.keyword};je.parseClassElementName=function(e){this.type===R.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};je.parseClassMethod=function(e,t,r,n){var i=e.key;e.kind==="constructor"?(t&&this.raise(i.start,"Constructor can't be a generator"),r&&this.raise(i.start,"Constructor can't be an async method")):e.static&&Ls(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(t,r,n);return e.kind==="get"&&a.params.length!==0&&this.raiseRecoverable(a.start,"getter should have no params"),e.kind==="set"&&a.params.length!==1&&this.raiseRecoverable(a.start,"setter should have exactly one param"),e.kind==="set"&&a.params[0].type==="RestElement"&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};je.parseClassField=function(e){return Ls(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Ls(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(R.eq)?(this.enterScope(Ua|dl),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};je.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(ii|dl);this.type!==R.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};je.parseClassId=function(e,t){this.type===R.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,cn,!1)):(t===!0&&this.unexpected(),e.id=null)};je.parseClassSuper=function(e){e.superClass=this.eat(R._extends)?this.parseExprSubscripts(null,!1):null};je.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};je.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,r=e.used;if(this.options.checkPrivateFields)for(var n=this.privateNameStack.length,i=n===0?null:this.privateNameStack[n-1],a=0;a<r.length;++a){var o=r[a];Hi(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}};function H_(e,t){var r=t.key.name,n=e[r],i="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(i=(t.static?"s":"i")+t.kind),n==="iget"&&i==="iset"||n==="iset"&&i==="iget"||n==="sget"&&i==="sset"||n==="sset"&&i==="sget"?(e[r]="true",!1):n?!0:(e[r]=i,!1)}function Ls(e,t){var r=e.computed,n=e.key;return!r&&(n.type==="Identifier"&&n.name===t||n.type==="Literal"&&n.value===t)}je.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==R.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};je.parseExport=function(e,t){if(this.next(),this.eat(R.star))return this.parseExportAllDeclaration(e,t);if(this.eat(R._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==R.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var r=0,n=e.specifiers;r<n.length;r+=1){var i=n[r];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type==="Literal"&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};je.parseExportDeclaration=function(e){return this.parseStatement(null)};je.parseExportDefaultDeclaration=function(){var e;if(this.type===R._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,ca|pb,!1,e)}else if(this.type===R._class){var r=this.startNode();return this.parseClass(r,"nullableID")}else{var n=this.parseMaybeAssign();return this.semicolon(),n}};je.checkExport=function(e,t,r){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Hi(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)};je.checkPatternExport=function(e,t){var r=t.type;if(r==="Identifier")this.checkExport(e,t,t.start);else if(r==="ObjectPattern")for(var n=0,i=t.properties;n<i.length;n+=1){var a=i[n];this.checkPatternExport(e,a)}else if(r==="ArrayPattern")for(var o=0,s=t.elements;o<s.length;o+=1){var u=s[o];u&&this.checkPatternExport(e,u)}else r==="Property"?this.checkPatternExport(e,t.value):r==="AssignmentPattern"?this.checkPatternExport(e,t.left):r==="RestElement"&&this.checkPatternExport(e,t.argument)};je.checkVariableExport=function(e,t){if(e)for(var r=0,n=t;r<n.length;r+=1){var i=n[r];this.checkPatternExport(e,i.id)}};je.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};je.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};je.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(R.braceL);!this.eat(R.braceR);){if(r)r=!1;else if(this.expect(R.comma),this.afterTrailingComma(R.braceR))break;t.push(this.parseExportSpecifier(e))}return t};je.parseImport=function(e){return this.next(),this.type===R.string?(e.specifiers=z_,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===R.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};je.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,cn),this.finishNode(e,"ImportSpecifier")};je.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,cn),this.finishNode(e,"ImportDefaultSpecifier")};je.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,cn),this.finishNode(e,"ImportNamespaceSpecifier")};je.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===R.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(R.comma)))return e;if(this.type===R.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(R.braceL);!this.eat(R.braceR);){if(t)t=!1;else if(this.expect(R.comma),this.afterTrailingComma(R.braceR))break;e.push(this.parseImportSpecifier())}return e};je.parseWithClause=function(){var e=[];if(!this.eat(R._with))return e;this.expect(R.braceL);for(var t={},r=!0;!this.eat(R.braceR);){if(r)r=!1;else if(this.expect(R.comma),this.afterTrailingComma(R.braceR))break;var n=this.parseImportAttribute(),i=n.key.type==="Identifier"?n.key.name:n.key.value;Hi(t,i)&&this.raiseRecoverable(n.key.start,"Duplicate attribute key '"+i+"'"),t[i]=!0,e.push(n)}return e};je.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===R.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(R.colon),this.type!==R.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};je.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===R.string){var e=this.parseLiteral(this.value);return V_.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};je.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};je.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var Pr=jt.prototype;Pr.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,i=e.properties;n<i.length;n+=1){var a=i[n];this.toAssignable(a,t),a.type==="RestElement"&&(a.argument.type==="ArrayPattern"||a.argument.type==="ObjectPattern")&&this.raise(a.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e};Pr.toAssignableList=function(e,t){for(var r=e.length,n=0;n<r;n++){var i=e[n];i&&this.toAssignable(i,t)}if(r){var a=e[r-1];this.options.ecmaVersion===6&&t&&a&&a.type==="RestElement"&&a.argument.type!=="Identifier"&&this.unexpected(a.argument.start)}return e};Pr.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};Pr.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==R.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};Pr.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case R.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(R.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case R.braceL:return this.parseObj(!0)}return this.parseIdent()};Pr.parseBindingList=function(e,t,r,n){for(var i=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(R.comma),t&&this.type===R.comma)i.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===R.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===R.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else i.push(this.parseAssignableListItem(n))}return i};Pr.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};Pr.parseBindingListItem=function(e){return e};Pr.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(R.eq))return r;var n=this.startNodeAt(e,t);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")};Pr.checkLValSimple=function(e,t,r){t===void 0&&(t=Rs);var n=t!==Rs;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(t===cn&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(Hi(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==hb&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}};Pr.checkLValPattern=function(e,t,r){switch(t===void 0&&(t=Rs),e.type){case"ObjectPattern":for(var n=0,i=e.properties;n<i.length;n+=1){var a=i[n];this.checkLValInnerPattern(a,t,r)}break;case"ArrayPattern":for(var o=0,s=e.elements;o<s.length;o+=1){var u=s[o];u&&this.checkLValInnerPattern(u,t,r)}break;default:this.checkLValSimple(e,t,r)}};Pr.checkLValInnerPattern=function(e,t,r){switch(t===void 0&&(t=Rs),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var Dr=function(t,r,n,i,a){this.token=t,this.isExpr=!!r,this.preserveSpace=!!n,this.override=i,this.generator=!!a},_t={b_stat:new Dr("{",!1),b_expr:new Dr("{",!0),b_tmpl:new Dr("${",!1),p_stat:new Dr("(",!1),p_expr:new Dr("(",!0),q_tmpl:new Dr("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Dr("function",!1),f_expr:new Dr("function",!0),f_expr_gen:new Dr("function",!0,!1,null,!0),f_gen:new Dr("function",!1,!1,null,!0)},Ui=jt.prototype;Ui.initialContext=function(){return[_t.b_stat]};Ui.curContext=function(){return this.context[this.context.length-1]};Ui.braceIsBlock=function(e){var t=this.curContext();return t===_t.f_expr||t===_t.f_stat?!0:e===R.colon&&(t===_t.b_stat||t===_t.b_expr)?!t.isExpr:e===R._return||e===R.name&&this.exprAllowed?hr.test(this.input.slice(this.lastTokEnd,this.start)):e===R._else||e===R.semi||e===R.eof||e===R.parenR||e===R.arrow?!0:e===R.braceL?t===_t.b_stat:e===R._var||e===R._const||e===R.name?!1:!this.exprAllowed};Ui.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};Ui.updateContext=function(e){var t,r=this.type;r.keyword&&e===R.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr};Ui.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};R.parenR.updateContext=R.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===_t.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};R.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?_t.b_stat:_t.b_expr),this.exprAllowed=!0};R.dollarBraceL.updateContext=function(){this.context.push(_t.b_tmpl),this.exprAllowed=!0};R.parenL.updateContext=function(e){var t=e===R._if||e===R._for||e===R._with||e===R._while;this.context.push(t?_t.p_stat:_t.p_expr),this.exprAllowed=!0};R.incDec.updateContext=function(){};R._function.updateContext=R._class.updateContext=function(e){e.beforeExpr&&e!==R._else&&!(e===R.semi&&this.curContext()!==_t.p_stat)&&!(e===R._return&&hr.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===R.colon||e===R.braceL)&&this.curContext()===_t.b_stat)?this.context.push(_t.f_expr):this.context.push(_t.f_stat),this.exprAllowed=!1};R.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};R.backQuote.updateContext=function(){this.curContext()===_t.q_tmpl?this.context.pop():this.context.push(_t.q_tmpl),this.exprAllowed=!1};R.star.updateContext=function(e){if(e===R._function){var t=this.context.length-1;this.context[t]===_t.f_expr?this.context[t]=_t.f_expr_gen:this.context[t]=_t.f_gen}this.exprAllowed=!0};R.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==R.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var qe=jt.prototype;qe.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n=e.key,i;switch(n.type){case"Identifier":i=n.name;break;case"Literal":i=String(n.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){i==="__proto__"&&a==="init"&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=n.start):this.raiseRecoverable(n.start,"Redefinition of __proto__ property")),t.proto=!0);return}i="$"+i;var o=t[i];if(o){var s;a==="init"?s=this.strict&&o.init||o.get||o.set:s=o.init||o[a],s&&this.raiseRecoverable(n.start,"Redefinition of property")}else o=t[i]={init:!1,get:!1,set:!1};o[a]=!0}};qe.parseExpression=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===R.comma){var a=this.startNodeAt(r,n);for(a.expressions=[i];this.eat(R.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return i};qe.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new pl,n=!0);var s=this.start,u=this.startLoc;(this.type===R.parenL||this.type===R.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var c=this.parseMaybeConditional(e,t);if(r&&(c=r.call(this,c,s,u)),this.type.isAssign){var d=this.startNodeAt(s,u);return d.operator=this.value,this.type===R.eq&&(c=this.toAssignable(c,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===R.eq?this.checkLValPattern(c):this.checkLValSimple(c),d.left=c,this.next(),d.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(d,"AssignmentExpression")}else n&&this.checkExpressionErrors(t,!0);return i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),c};qe.parseMaybeConditional=function(e,t){var r=this.start,n=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(R.question)){var a=this.startNodeAt(r,n);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(R.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return i};qe.parseExprOps=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===r&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,r,n,-1,e)};qe.parseExprOp=function(e,t,r,n,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==R._in)&&a>n){var o=this.type===R.logicalOR||this.type===R.logicalAND,s=this.type===R.coalesce;s&&(a=R.logicalAND.binop);var u=this.value;this.next();var c=this.start,d=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),c,d,a,i),f=this.buildBinary(t,r,e,h,u,o||s);return(o&&this.type===R.coalesce||s&&(this.type===R.logicalOR||this.type===R.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(f,t,r,n,i)}return e};qe.buildBinary=function(e,t,r,n,i,a){n.type==="PrivateIdentifier"&&this.raise(n.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(e,t);return o.left=r,o.operator=i,o.right=n,this.finishNode(o,a?"LogicalExpression":"BinaryExpression")};qe.parseMaybeUnary=function(e,t,r,n){var i=this.start,a=this.startLoc,o;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(n),t=!0;else if(this.type.prefix){var s=this.startNode(),u=this.type===R.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,u,n),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(s.argument):this.strict&&s.operator==="delete"&&fb(s.argument)?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):s.operator==="delete"&&kc(s.argument)?this.raiseRecoverable(s.start,"Private fields can not be deleted"):t=!0,o=this.finishNode(s,u?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===R.privateId)(n||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==R._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,n),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(i,a);c.operator=this.value,c.prefix=!1,c.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(c,"UpdateExpression")}}if(!r&&this.eat(R.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,n),"**",!1);else return o};function fb(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&fb(e.expression)}function kc(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&kc(e.expression)||e.type==="ParenthesizedExpression"&&kc(e.expression)}qe.parseExprSubscripts=function(e,t){var r=this.start,n=this.startLoc,i=this.parseExprAtom(e,t);if(i.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return i;var a=this.parseSubscripts(i,r,n,!1,t);return e&&a.type==="MemberExpression"&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a};qe.parseSubscripts=function(e,t,r,n,i){for(var a=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,r,n,a,o,i);if(s.optional&&(o=!0),s===e||s.type==="ArrowFunctionExpression"){if(o){var u=this.startNodeAt(t,r);u.expression=s,s=this.finishNode(u,"ChainExpression")}return s}e=s}};qe.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(R.arrow)};qe.parseSubscriptAsyncArrow=function(e,t,r,n){return this.parseArrowExpression(this.startNodeAt(e,t),r,!0,n)};qe.parseSubscript=function(e,t,r,n,i,a,o){var s=this.options.ecmaVersion>=11,u=s&&this.eat(R.questionDot);n&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(R.bracketL);if(c||u&&this.type!==R.parenL&&this.type!==R.backQuote||this.eat(R.dot)){var d=this.startNodeAt(t,r);d.object=e,c?(d.property=this.parseExpression(),this.expect(R.bracketR)):this.type===R.privateId&&e.type!=="Super"?d.property=this.parsePrivateIdent():d.property=this.parseIdent(this.options.allowReserved!=="never"),d.computed=!!c,s&&(d.optional=u),e=this.finishNode(d,"MemberExpression")}else if(!n&&this.eat(R.parenL)){var h=new pl,f=this.yieldPos,g=this.awaitPos,x=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var v=this.parseExprList(R.parenR,this.options.ecmaVersion>=8,!1,h);if(i&&!u&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=f,this.awaitPos=g,this.awaitIdentPos=x,this.parseSubscriptAsyncArrow(t,r,v,o);this.checkExpressionErrors(h,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=g||this.awaitPos,this.awaitIdentPos=x||this.awaitIdentPos;var b=this.startNodeAt(t,r);b.callee=e,b.arguments=v,s&&(b.optional=u),e=this.finishNode(b,"CallExpression")}else if(this.type===R.backQuote){(u||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(t,r);y.tag=e,y.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(y,"TaggedTemplateExpression")}return e};qe.parseExprAtom=function(e,t,r){this.type===R.slash&&this.readRegexp();var n,i=this.potentialArrowAt===this.start;switch(this.type){case R._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),n=this.startNode(),this.next(),this.type===R.parenL&&!this.allowDirectSuper&&this.raise(n.start,"super() call outside constructor of a subclass"),this.type!==R.dot&&this.type!==R.bracketL&&this.type!==R.parenL&&this.unexpected(),this.finishNode(n,"Super");case R._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case R.name:var a=this.start,o=this.startLoc,s=this.containsEsc,u=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&u.name==="async"&&!this.canInsertSemicolon()&&this.eat(R._function))return this.overrideContext(_t.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(R.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[u],!1,t);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===R.name&&!s&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return u=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(R.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[u],!0,t)}return u;case R.regexp:var c=this.value;return n=this.parseLiteral(c.value),n.regex={pattern:c.pattern,flags:c.flags},n;case R.num:case R.string:return this.parseLiteral(this.value);case R._null:case R._true:case R._false:return n=this.startNode(),n.value=this.type===R._null?null:this.type===R._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case R.parenL:var d=this.start,h=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=d),e.parenthesizedBind<0&&(e.parenthesizedBind=d)),h;case R.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(R.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case R.braceL:return this.overrideContext(_t.b_expr),this.parseObj(!1,e);case R._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case R._class:return this.parseClass(this.startNode(),!1);case R._new:return this.parseNew();case R.backQuote:return this.parseTemplate();case R._import:return this.options.ecmaVersion>=11?this.parseExprImport(r):this.unexpected();default:return this.parseExprAtomDefault()}};qe.parseExprAtomDefault=function(){this.unexpected()};qe.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===R.parenL&&!e)return this.parseDynamicImport(t);if(this.type===R.dot){var r=this.startNodeAt(t.start,t.loc&&t.loc.start);return r.name="import",t.meta=this.finishNode(r,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};qe.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(R.parenR)?e.options=null:(this.expect(R.comma),this.afterTrailingComma(R.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(R.parenR)||(this.expect(R.comma),this.afterTrailingComma(R.parenR)||this.unexpected())));else if(!this.eat(R.parenR)){var t=this.start;this.eat(R.comma)&&this.eat(R.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};qe.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};qe.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};qe.parseParenExpression=function(){this.expect(R.parenL);var e=this.parseExpression();return this.expect(R.parenR),e};qe.shouldParseArrow=function(e){return!this.canInsertSemicolon()};qe.parseParenAndDistinguishExpression=function(e,t){var r=this.start,n=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,s=this.startLoc,u=[],c=!0,d=!1,h=new pl,f=this.yieldPos,g=this.awaitPos,x;for(this.yieldPos=0,this.awaitPos=0;this.type!==R.parenR;)if(c?c=!1:this.expect(R.comma),a&&this.afterTrailingComma(R.parenR,!0)){d=!0;break}else if(this.type===R.ellipsis){x=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===R.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else u.push(this.parseMaybeAssign(!1,h,this.parseParenItem));var v=this.lastTokEnd,b=this.lastTokEndLoc;if(this.expect(R.parenR),e&&this.shouldParseArrow(u)&&this.eat(R.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=g,this.parseParenArrowList(r,n,u,t);(!u.length||d)&&this.unexpected(this.lastTokStart),x&&this.unexpected(x),this.checkExpressionErrors(h,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=g||this.awaitPos,u.length>1?(i=this.startNodeAt(o,s),i.expressions=u,this.finishNodeAt(i,"SequenceExpression",v,b)):i=u[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(r,n);return y.expression=i,this.finishNode(y,"ParenthesizedExpression")}else return i};qe.parseParenItem=function(e){return e};qe.parseParenArrowList=function(e,t,r,n){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,n)};var W_=[];qe.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===R.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var n=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n,i,!0,!1),this.eat(R.parenL)?e.arguments=this.parseExprList(R.parenR,this.options.ecmaVersion>=8,!1):e.arguments=W_,this.finishNode(e,"NewExpression")};qe.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===R.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value.replace(/\r\n?/g,`
|
|
64
|
-
`),cooked:null}):
|
|
65
|
-
`),cooked:this.value},this.next(),r.tail=this.type===R.backQuote,this.finishNode(r,"TemplateElement")};qe.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(r.quasis=[n];!n.tail;)this.type===R.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(R.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(R.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};qe.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===R.name||this.type===R.num||this.type===R.string||this.type===R.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===R.star)&&!hr.test(this.input.slice(this.lastTokEnd,this.start))};qe.parseObj=function(e,t){var r=this.startNode(),n=!0,i={};for(r.properties=[],this.next();!this.eat(R.braceR);){if(n)n=!1;else if(this.expect(R.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(R.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),r.properties.push(a)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};qe.parseProperty=function(e,t){var r=this.startNode(),n,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(R.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===R.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,t),this.type===R.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(n=this.eat(R.star)));var s=this.containsEsc;return this.parsePropertyName(r),!e&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(r)?(i=!0,n=this.options.ecmaVersion>=9&&this.eat(R.star),this.parsePropertyName(r)):i=!1,this.parsePropertyValue(r,e,n,i,a,o,t,s),this.finishNode(r,"Property")};qe.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var r=e.kind==="get"?0:1;if(e.value.params.length!==r){var n=e.value.start;e.kind==="get"?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};qe.parsePropertyValue=function(e,t,r,n,i,a,o,s){(r||n)&&this.type===R.colon&&this.unexpected(),this.eat(R.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===R.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(r,n),e.kind="init"):!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==R.comma&&this.type!==R.braceR&&this.type!==R.eq?((r||n)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===R.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};qe.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(R.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(R.bracketR),e.key;e.computed=!1}return e.key=this.type===R.num||this.type===R.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};qe.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};qe.parseMethod=function(e,t,r){var n=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(lh(t,n.generator)|dl|(r?ub:0)),this.expect(R.parenL),n.params=this.parseBindingList(R.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(n,"FunctionExpression")};qe.parseArrowExpression=function(e,t,r,n){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(lh(r,!1)|sh),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")};qe.parseFunctionBody=function(e,t,r,n){var i=t&&this.type!==R.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var u=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,hb),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()};qe.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1){var n=r[t];if(n.type!=="Identifier")return!1}return!0};qe.checkParams=function(e,t){for(var r=Object.create(null),n=0,i=e.params;n<i.length;n+=1){var a=i[n];this.checkLValInnerPattern(a,uh,t?null:r)}};qe.parseExprList=function(e,t,r,n){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(R.comma),t&&this.afterTrailingComma(e))break;var o=void 0;r&&this.type===R.comma?o=null:this.type===R.ellipsis?(o=this.parseSpread(n),n&&this.type===R.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):o=this.parseMaybeAssign(!1,n),i.push(o)}return i};qe.checkUnreserved=function(e){var t=e.start,r=e.end,n=e.name;if(this.inGenerator&&n==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&n==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&hl)&&n==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(n==="arguments"||n==="await")&&this.raise(t,"Cannot use "+n+" in class static initialization block"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,r).indexOf("\\")!==-1)){var i=this.strict?this.reservedWordsStrict:this.reservedWords;i.test(n)&&(!this.inAsync&&n==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))}};qe.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};qe.parseIdentNode=function(){var e=this.startNode();return this.type===R.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=R.name):this.unexpected(),e};qe.parsePrivateIdent=function(){var e=this.startNode();return this.type===R.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};qe.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===R.semi||this.canInsertSemicolon()||this.type!==R.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(R.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};qe.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var Ds=jt.prototype;Ds.raise=function(e,t){var r=ob(this.input,e);t+=" ("+r.line+":"+r.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var n=new SyntaxError(t);throw n.pos=e,n.loc=r,n.raisedAt=this.pos,n};Ds.raiseRecoverable=Ds.raise;Ds.curPosition=function(){if(this.options.locations)return new Ea(this.curLine,this.pos-this.lineStart)};var Dn=jt.prototype,U_=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};Dn.enterScope=function(e){this.scopeStack.push(new U_(e))};Dn.exitScope=function(){this.scopeStack.pop()};Dn.treatFunctionsAsVarInScope=function(e){return e.flags&Wi||!this.inModule&&e.flags&_a};Dn.declareName=function(e,t,r){var n=!1;if(t===cn){var i=this.currentScope();n=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&_a&&delete this.undefinedExports[e]}else if(t===db){var a=this.currentScope();a.lexical.push(e)}else if(t===cb){var o=this.currentScope();this.treatFunctionsAsVar?n=o.lexical.indexOf(e)>-1:n=o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var s=this.scopeStack.length-1;s>=0;--s){var u=this.scopeStack[s];if(u.lexical.indexOf(e)>-1&&!(u.flags&lb&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){n=!0;break}if(u.var.push(e),this.inModule&&u.flags&_a&&delete this.undefinedExports[e],u.flags&hl)break}n&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};Dn.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};Dn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};Dn.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(hl|Ua|ii))return t}};Dn.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(hl|Ua|ii)&&!(t.flags&sh))return t}};var fl=function(t,r,n){this.type="",this.start=r,this.end=0,t.options.locations&&(this.loc=new cl(t,n)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[r,0])},$a=jt.prototype;$a.startNode=function(){return new fl(this,this.start,this.startLoc)};$a.startNodeAt=function(e,t){return new fl(this,e,t)};function gb(e,t,r,n){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=r),e}$a.finishNode=function(e,t){return gb.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};$a.finishNodeAt=function(e,t,r,n){return gb.call(this,e,t,r,n)};$a.copyNode=function(e){var t=new fl(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var $_="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",mb="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",vb=mb+" Extended_Pictographic",xb=vb,bb=xb+" EBase EComp EMod EPres ExtPict",yb=bb,q_=yb,K_={9:mb,10:vb,11:xb,12:bb,13:yb,14:q_},G_="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",J_={9:"",10:"",11:"",12:"",13:"",14:G_},gf="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",wb="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",kb=wb+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Sb=kb+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Cb=Sb+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Eb=Cb+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",X_=Eb+" "+$_,Y_={9:wb,10:kb,11:Sb,12:Cb,13:Eb,14:X_},_b={};function Q_(e){var t=_b[e]={binary:En(K_[e]+" "+gf),binaryOfStrings:En(J_[e]),nonBinary:{General_Category:En(gf),Script:En(Y_[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var xu=0,mf=[9,10,11,12,13,14];xu<mf.length;xu+=1){var Z_=mf[xu];Q_(Z_)}var Me=jt.prototype,Vs=function(t,r){this.parent=t,this.base=r||this};Vs.prototype.separatedFrom=function(t){for(var r=this;r;r=r.parent)for(var n=t;n;n=n.parent)if(r.base===n.base&&r!==n)return!0;return!1};Vs.prototype.sibling=function(){return new Vs(this.parent,this.base)};var Yr=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=_b[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Yr.prototype.reset=function(t,r,n){var i=n.indexOf("v")!==-1,a=n.indexOf("u")!==-1;this.start=t|0,this.source=r+"",this.flags=n,i&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=a&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=a&&this.parser.options.ecmaVersion>=9)};Yr.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Yr.prototype.at=function(t,r){r===void 0&&(r=!1);var n=this.source,i=n.length;if(t>=i)return-1;var a=n.charCodeAt(t);if(!(r||this.switchU)||a<=55295||a>=57344||t+1>=i)return a;var o=n.charCodeAt(t+1);return o>=56320&&o<=57343?(a<<10)+o-56613888:a};Yr.prototype.nextIndex=function(t,r){r===void 0&&(r=!1);var n=this.source,i=n.length;if(t>=i)return i;var a=n.charCodeAt(t),o;return!(r||this.switchU)||a<=55295||a>=57344||t+1>=i||(o=n.charCodeAt(t+1))<56320||o>57343?t+1:t+2};Yr.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};Yr.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};Yr.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};Yr.prototype.eat=function(t,r){return r===void 0&&(r=!1),this.current(r)===t?(this.advance(r),!0):!1};Yr.prototype.eatChars=function(t,r){r===void 0&&(r=!1);for(var n=this.pos,i=0,a=t;i<a.length;i+=1){var o=a[i],s=this.at(n,r);if(s===-1||s!==o)return!1;n=this.nextIndex(n,r)}return this.pos=n,!0};Me.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=!1,i=!1,a=0;a<r.length;a++){var o=r.charAt(a);t.indexOf(o)===-1&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(o,a+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),o==="u"&&(n=!0),o==="v"&&(i=!0)}this.options.ecmaVersion>=15&&n&&i&&this.raise(e.start,"Invalid regular expression flag")};function eI(e){for(var t in e)return!0;return!1}Me.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&eI(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};Me.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var n=r[t];e.groupNames[n]||e.raise("Invalid named capture referenced")}};Me.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Vs(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};Me.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};Me.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};Me.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1};Me.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};Me.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};Me.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var n=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1};Me.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};Me.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};Me.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var r=this.regexp_eatModifiers(e),n=e.eat(45);if(r||n){for(var i=0;i<r.length;i++){var a=r.charAt(i);r.indexOf(a,i+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(n){var o=this.regexp_eatModifiers(e);!r&&!o&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var s=0;s<o.length;s++){var u=o.charAt(s);(o.indexOf(u,s+1)>-1||r.indexOf(u)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};Me.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};Me.regexp_eatModifiers=function(e){for(var t="",r=0;(r=e.current())!==-1&&tI(r);)t+=sn(r),e.advance();return t};function tI(e){return e===105||e===109||e===115}Me.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};Me.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};Me.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Ib(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Ib(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}Me.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!Ib(r);)e.advance();return e.pos!==t};Me.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};Me.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,r=e.groupNames[e.lastStringValue];if(r)if(t)for(var n=0,i=r;n<i.length;n+=1){var a=i[n];a.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(r||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};Me.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};Me.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=sn(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=sn(e.lastIntValue);return!0}return!1};Me.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),rI(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)};function rI(e){return Jr(e,!0)||e===36||e===95}Me.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),nI(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)};function nI(e){return An(e,!0)||e===36||e===95||e===8204||e===8205}Me.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};Me.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1};Me.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};Me.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};Me.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};Me.regexp_eatZero=function(e){return e.current()===48&&!gl(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};Me.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};Me.regexp_eatControlLetter=function(e){var t=e.current();return Ab(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Ab(e){return e>=65&&e<=90||e>=97&&e<=122}Me.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var r=e.pos,n=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(n&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(n&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&iI(e.lastIntValue))return!0;n&&e.raise("Invalid unicode escape"),e.pos=r}return!1};function iI(e){return e>=0&&e<=1114111}Me.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};Me.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Tb=0,ln=1,Tr=2;Me.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(aI(t))return e.lastIntValue=-1,e.advance(),ln;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=t===80)||t===112)){e.lastIntValue=-1,e.advance();var n;if(e.eat(123)&&(n=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&n===Tr&&e.raise("Invalid property name"),n;e.raise("Invalid property name")}return Tb};function aI(e){return e===100||e===68||e===115||e===83||e===119||e===87}Me.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,n),ln}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return Tb};Me.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){Hi(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")};Me.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return ln;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return Tr;e.raise("Invalid property name")};Me.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Pb(t=e.current());)e.lastStringValue+=sn(t),e.advance();return e.lastStringValue!==""};function Pb(e){return Ab(e)||e===95}Me.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";oI(t=e.current());)e.lastStringValue+=sn(t),e.advance();return e.lastStringValue!==""};function oI(e){return Pb(e)||gl(e)}Me.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};Me.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),r=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&r===Tr&&e.raise("Negated character class may contain strings"),!0}return!1};Me.regexp_classContents=function(e){return e.current()===93?ln:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),ln)};Me.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(t===-1||r===-1)&&e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}};Me.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(r===99||Rb(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return n!==93?(e.lastIntValue=n,e.advance(),!0):!1};Me.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};Me.regexp_classSetExpression=function(e){var t=ln,r;if(!this.regexp_eatClassSetRange(e))if(r=this.regexp_eatClassSetOperand(e)){r===Tr&&(t=Tr);for(var n=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(r=this.regexp_eatClassSetOperand(e))){r!==Tr&&(t=ln);continue}e.raise("Invalid character in character class")}if(n!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(n!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(r=this.regexp_eatClassSetOperand(e),!r)return t;r===Tr&&(t=Tr)}};Me.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;return r!==-1&&n!==-1&&r>n&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};Me.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?ln:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};Me.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var r=e.eat(94),n=this.regexp_classContents(e);if(e.eat(93))return r&&n===Tr&&e.raise("Negated character class may contain strings"),n;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null};Me.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var r=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return r}else e.raise("Invalid escape");e.pos=t}return null};Me.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Tr&&(t=Tr);return t};Me.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?ln:Tr};Me.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var r=e.current();return r<0||r===e.lookahead()&&sI(r)||lI(r)?!1:(e.advance(),e.lastIntValue=r,!0)};function sI(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function lI(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}Me.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return uI(t)?(e.lastIntValue=t,e.advance(),!0):!1};function uI(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}Me.regexp_eatClassControlLetter=function(e){var t=e.current();return gl(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};Me.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};Me.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;gl(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};function gl(e){return e>=48&&e<=57}Me.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Nb(r=e.current());)e.lastIntValue=16*e.lastIntValue+Ob(r),e.advance();return e.pos!==t};function Nb(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ob(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}Me.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+r*8+e.lastIntValue:e.lastIntValue=t*8+r}else e.lastIntValue=t;return!0}return!1};Me.regexp_eatOctalDigit=function(e){var t=e.current();return Rb(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Rb(e){return e>=48&&e<=55}Me.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var i=e.current();if(!Nb(i))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+Ob(i),e.advance()}return!0};var dh=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new cl(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},it=jt.prototype;it.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new dh(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};it.getToken=function(){return this.next(),new dh(this)};typeof Symbol<"u"&&(it[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===R.eof,value:t}}}});it.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(R.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};it.readToken=function(e){return Jr(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};it.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888};it.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var n=void 0,i=t;(n=nb(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())};it.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!zi(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())};it.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&ib.test(String.fromCharCode(e)))++this.pos;else break e}}};it.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)};it.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(R.ellipsis)):(++this.pos,this.finishToken(R.dot))};it.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(R.assign,2):this.finishOp(R.slash,1)};it.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,n=e===42?R.star:R.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++r,n=R.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(R.assign,r+1):this.finishOp(n,r)};it.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(R.assign,3)}return this.finishOp(e===124?R.logicalOR:R.logicalAND,2)}return t===61?this.finishOp(R.assign,2):this.finishOp(e===124?R.bitwiseOR:R.bitwiseAND,1)};it.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(R.assign,2):this.finishOp(R.bitwiseXOR,1)};it.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||hr.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(R.incDec,2):t===61?this.finishOp(R.assign,2):this.finishOp(R.plusMin,1)};it.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(R.assign,r+1):this.finishOp(R.bitShift,r)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(r=2),this.finishOp(R.relational,r))};it.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(R.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(R.arrow)):this.finishOp(e===61?R.eq:R.prefix,1)};it.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(R.questionDot,2)}if(t===63){if(e>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(R.assign,3)}return this.finishOp(R.coalesce,2)}}return this.finishOp(R.question,1)};it.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Jr(t,!0)||t===92))return this.finishToken(R.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+sn(t)+"'")};it.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(R.parenL);case 41:return++this.pos,this.finishToken(R.parenR);case 59:return++this.pos,this.finishToken(R.semi);case 44:return++this.pos,this.finishToken(R.comma);case 91:return++this.pos,this.finishToken(R.bracketL);case 93:return++this.pos,this.finishToken(R.bracketR);case 123:return++this.pos,this.finishToken(R.braceL);case 125:return++this.pos,this.finishToken(R.braceR);case 58:return++this.pos,this.finishToken(R.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(R.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(R.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+sn(e)+"'")};it.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)};it.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(hr.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if(n==="[")t=!0;else if(n==="]"&&t)t=!1;else if(n==="/"&&!t)break;e=n==="\\"}++this.pos}var i=this.input.slice(r,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||(this.regexpState=new Yr(this));s.reset(r,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var u=null;try{u=new RegExp(i,o)}catch{}return this.finishToken(R.regexp,{pattern:i,flags:o,value:u})};it.readInt=function(e,t,r){for(var n=this.options.ecmaVersion>=12&&t===void 0,i=r&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,u=0,c=t??1/0;u<c;++u,++this.pos){var d=this.input.charCodeAt(this.pos),h=void 0;if(n&&d===95){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),s===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),u===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),s=d;continue}if(d>=97?h=d-97+10:d>=65?h=d-65+10:d>=48&&d<=57?h=d-48:h=1/0,h>=e)break;s=d,o=o*e+h}return n&&s===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||t!=null&&this.pos-a!==t?null:o};function cI(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Lb(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}it.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return r==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=Lb(this.input.slice(t,this.pos)),++this.pos):Jr(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(R.num,r)};it.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;r&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&n===110){var i=Lb(this.input.slice(t,this.pos));return++this.pos,Jr(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(R.num,i)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),n===46&&!r&&(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),(n===69||n===101)&&!r&&(n=this.input.charCodeAt(++this.pos),(n===43||n===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Jr(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=cI(this.input.slice(t,this.pos),r);return this.finishToken(R.num,a)};it.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else t=this.readHexChar(4);return t};it.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;n===92?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):n===8232||n===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(zi(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(R.string,t)};var Db={};it.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Db)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};it.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Db;this.raise(e,t)};it.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===R.template||this.type===R.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(R.dollarBraceL)):(++this.pos,this.finishToken(R.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(R.template,e));if(r===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(zi(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
66
|
-
`;break;default:e+=String.fromCharCode(
|
|
15
|
+
`))}return i.pop(),l.join("")}function xc(e){let t=0,n=e.stack.length;for(;--n>-1;){const i=e.stack[n];if(i==="blockquote"||i==="listItem")break;i==="mdxJsxFlowElement"&&t++}return t}function vc(e){return mc.repeat(e)}function _g(){return"<"}function Ig(){return{enter:{mdxjsEsm:Tg},exit:{mdxjsEsm:Ng,mdxjsEsmData:Pg}}}function Ag(){return{handlers:{mdxjsEsm:Og}}}function Tg(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function Ng(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e);const i=e.estree;n.value=t,i&&(n.data={estree:i})}function Pg(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Og(e){return e.value||""}function Rg(){return[ig(),Sg(),Ig()]}function Lg(e){return{extensions:[rg(),kg(e),Ag()]}}var Mg=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,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,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,199,7,137,9,54,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,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,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,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],bc=[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,4,51,13,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,7,25,39,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,39,27,10,22,251,41,7,1,17,5,57,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Fg="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",yc="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Yr={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Qr="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Dg={5:Qr,"5module":Qr+" export import",6:Qr+" const class extends export import super"},wc=/^in(stanceof)?$/,jg=new RegExp("["+yc+"]"),Vg=new RegExp("["+yc+Fg+"]");function Ka(e,t){for(var n=65536,i=0;i<t.length;i+=2){if(n+=t[i],n>e)return!1;if(n+=t[i+1],n>=e)return!0}return!1}function Gt(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&jg.test(String.fromCharCode(e)):t===!1?!1:Ka(e,bc)}function mn(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Vg.test(String.fromCharCode(e)):t===!1?!1:Ka(e,bc)||Ka(e,Mg)}var He=function(t,n){n===void 0&&(n={}),this.label=t,this.keyword=n.keyword,this.beforeExpr=!!n.beforeExpr,this.startsExpr=!!n.startsExpr,this.isLoop=!!n.isLoop,this.isAssign=!!n.isAssign,this.prefix=!!n.prefix,this.postfix=!!n.postfix,this.binop=n.binop||null,this.updateContext=null};function Tt(e,t){return new He(e,{beforeExpr:!0,binop:t})}var Nt={beforeExpr:!0},ft={startsExpr:!0},cs={};function ze(e,t){return t===void 0&&(t={}),t.keyword=e,cs[e]=new He(e,t)}var _={num:new He("num",ft),regexp:new He("regexp",ft),string:new He("string",ft),name:new He("name",ft),privateId:new He("privateId",ft),eof:new He("eof"),bracketL:new He("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new He("]"),braceL:new He("{",{beforeExpr:!0,startsExpr:!0}),braceR:new He("}"),parenL:new He("(",{beforeExpr:!0,startsExpr:!0}),parenR:new He(")"),comma:new He(",",Nt),semi:new He(";",Nt),colon:new He(":",Nt),dot:new He("."),question:new He("?",Nt),questionDot:new He("?."),arrow:new He("=>",Nt),template:new He("template"),invalidTemplate:new He("invalidTemplate"),ellipsis:new He("...",Nt),backQuote:new He("`",ft),dollarBraceL:new He("${",{beforeExpr:!0,startsExpr:!0}),eq:new He("=",{beforeExpr:!0,isAssign:!0}),assign:new He("_=",{beforeExpr:!0,isAssign:!0}),incDec:new He("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new He("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Tt("||",1),logicalAND:Tt("&&",2),bitwiseOR:Tt("|",3),bitwiseXOR:Tt("^",4),bitwiseAND:Tt("&",5),equality:Tt("==/!=/===/!==",6),relational:Tt("</>/<=/>=",7),bitShift:Tt("<</>>/>>>",8),plusMin:new He("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Tt("%",10),star:Tt("*",10),slash:Tt("/",10),starstar:new He("**",{beforeExpr:!0}),coalesce:Tt("??",1),_break:ze("break"),_case:ze("case",Nt),_catch:ze("catch"),_continue:ze("continue"),_debugger:ze("debugger"),_default:ze("default",Nt),_do:ze("do",{isLoop:!0,beforeExpr:!0}),_else:ze("else",Nt),_finally:ze("finally"),_for:ze("for",{isLoop:!0}),_function:ze("function",ft),_if:ze("if"),_return:ze("return",Nt),_switch:ze("switch"),_throw:ze("throw",Nt),_try:ze("try"),_var:ze("var"),_const:ze("const"),_while:ze("while",{isLoop:!0}),_with:ze("with"),_new:ze("new",{beforeExpr:!0,startsExpr:!0}),_this:ze("this",ft),_super:ze("super",ft),_class:ze("class",ft),_extends:ze("extends",Nt),_export:ze("export"),_import:ze("import",ft),_null:ze("null",ft),_true:ze("true",ft),_false:ze("false",ft),_in:ze("in",{beforeExpr:!0,binop:7}),_instanceof:ze("instanceof",{beforeExpr:!0,binop:7}),_typeof:ze("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ze("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ze("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},vt=/\r\n?|\n|\u2028|\u2029/,Bg=new RegExp(vt.source,"g");function Zn(e){return e===10||e===13||e===8232||e===8233}function Ec(e,t,n){n===void 0&&(n=e.length);for(var i=t;i<n;i++){var r=e.charCodeAt(i);if(Zn(r))return i<n-1&&r===13&&e.charCodeAt(i+1)===10?i+2:i+1}return-1}var Sc=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ot=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,kc=Object.prototype,zg=kc.hasOwnProperty,Kg=kc.toString,Xn=Object.hasOwn||(function(e,t){return zg.call(e,t)}),il=Array.isArray||(function(e){return Kg.call(e)==="[object Array]"}),rl=Object.create(null);function pn(e){return rl[e]||(rl[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function tn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var Ug=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,xi=function(t,n){this.line=t,this.column=n};xi.prototype.offset=function(t){return new xi(this.line,this.column+t)};var Ar=function(t,n,i){this.start=n,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};function Cc(e,t){for(var n=1,i=0;;){var r=Ec(e,i,t);if(r<0)return new xi(n,t-i);++n,i=r}}var Ua={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},al=!1;function Hg(e){var t={};for(var n in Ua)t[n]=e&&Xn(e,n)?e[n]:Ua[n];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!al&&typeof console=="object"&&console.warn&&(al=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
16
|
+
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),il(t.onToken)){var i=t.onToken;t.onToken=function(r){return i.push(r)}}if(il(t.onComment)&&(t.onComment=$g(t,t.onComment)),t.sourceType==="commonjs"&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function $g(e,t){return function(n,i,r,s,o,l){var u={type:n?"Block":"Line",value:i,start:r,end:s};e.locations&&(u.loc=new Ar(this,o,l)),e.ranges&&(u.range=[r,s]),t.push(u)}}var In=1,Nn=2,hs=4,_c=8,fs=16,Ic=32,Tr=64,Ac=128,Pn=256,ki=512,Tc=1024,Nr=In|Nn|Pn;function ps(e,t){return Nn|(e?hs:0)|(t?_c:0)}var cr=0,ds=1,ln=2,Nc=3,Pc=4,Oc=5,rt=function(t,n,i){this.options=t=Hg(t),this.sourceFile=t.sourceFile,this.keywords=pn(Dg[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var r="";t.allowReserved!==!0&&(r=Yr[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(r+=" await")),this.reservedWords=pn(r);var s=(r?r+" ":"")+Yr.strict;this.reservedWordsStrict=pn(s),this.reservedWordsStrictBind=pn(s+" "+Yr.strictBind),this.input=String(n),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
|
|
17
|
+
`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(vt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=_.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?Nn:In),this.regexpState=null,this.privateNameStack=[]},Dt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};rt.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};Dt.inFunction.get=function(){return(this.currentVarScope().flags&Nn)>0};Dt.inGenerator.get=function(){return(this.currentVarScope().flags&_c)>0};Dt.inAsync.get=function(){return(this.currentVarScope().flags&hs)>0};Dt.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(Pn|ki))return!1;if(n&Nn)return(n&hs)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Dt.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&In)};Dt.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&Tr)>0||this.options.allowSuperOutsideMethod};Dt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Ac)>0};Dt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Dt.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(Pn|ki)||n&Nn&&!(n&fs))return!0}return!1};Dt.allowUsing.get=function(){var e=this.currentScope(),t=e.flags;return!(t&Tc||!this.inModule&&t&In)};Dt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Pn)>0};rt.extend=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];for(var i=this,r=0;r<t.length;r++)i=t[r](i);return i};rt.parse=function(t,n){return new this(n,t).parse()};rt.parseExpressionAt=function(t,n,i){var r=new this(i,t,n);return r.nextToken(),r.parseExpression()};rt.tokenizer=function(t,n){return new this(n,t)};Object.defineProperties(rt.prototype,Dt);var ht=rt.prototype,qg=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ht.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){ot.lastIndex=e,e+=ot.exec(this.input)[0].length;var t=qg.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){ot.lastIndex=e+t[0].length;var n=ot.exec(this.input),i=n.index+n[0].length,r=this.input.charAt(i);return r===";"||r==="}"||vt.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||r==="!"&&this.input.charAt(i+1)==="=")}e+=t[0].length,ot.lastIndex=e,e+=ot.exec(this.input)[0].length,this.input[e]===";"&&e++}};ht.eat=function(e){return this.type===e?(this.next(),!0):!1};ht.isContextual=function(e){return this.type===_.name&&this.value===e&&!this.containsEsc};ht.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};ht.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};ht.canInsertSemicolon=function(){return this.type===_.eof||this.type===_.braceR||vt.test(this.input.slice(this.lastTokEnd,this.start))};ht.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};ht.semicolon=function(){!this.eat(_.semi)&&!this.insertSemicolon()&&this.unexpected()};ht.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};ht.expect=function(e){this.eat(e)||this.unexpected()};ht.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Pr=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ht.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}};ht.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,i=e.doubleProto;if(!t)return n>=0||i>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")};ht.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};ht.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var Ce=rt.prototype;Ce.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==_.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var i=0,r=Object.keys(this.undefinedExports);i<r.length;i+=1){var s=r[i];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var gs={kind:"loop"},Wg={kind:"switch"};Ce.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;ot.lastIndex=this.pos;var t=ot.exec(this.input),n=this.pos+t[0].length,i=this.fullCharCodeAt(n);if(i===91||i===92)return!0;if(e)return!1;if(i===123)return!0;if(Gt(i)){var r=n;do n+=i<=65535?1:2;while(mn(i=this.fullCharCodeAt(n)));if(i===92)return!0;var s=this.input.slice(r,n);if(!wc.test(s))return!0}return!1};Ce.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;ot.lastIndex=this.pos;var e=ot.exec(this.input),t=this.pos+e[0].length,n;return!vt.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(mn(n=this.fullCharCodeAt(t+8))||n===92))};Ce.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;ot.lastIndex=this.pos;var n=ot.exec(this.input),i=this.pos+n[0].length;if(vt.test(this.input.slice(this.pos,i)))return!1;if(e){var r=i+5,s;if(this.input.slice(i,r)!=="using"||r===this.input.length||mn(s=this.fullCharCodeAt(r))||s===92)return!1;ot.lastIndex=r;var o=ot.exec(this.input);if(i=r+o[0].length,o&&vt.test(this.input.slice(r,i)))return!1}var l=this.fullCharCodeAt(i);if(!Gt(l)&&l!==92)return!1;var u=i;do i+=l<=65535?1:2;while(mn(l=this.fullCharCodeAt(i)));if(l===92)return!0;var f=this.input.slice(u,i);return!(wc.test(f)||t&&f==="of")};Ce.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};Ce.isUsing=function(e){return this.isUsingKeyword(!1,e)};Ce.parseStatement=function(e,t,n){var i=this.type,r=this.startNode(),s;switch(this.isLet(e)&&(i=_._var,s="let"),i){case _._break:case _._continue:return this.parseBreakContinueStatement(r,i.keyword);case _._debugger:return this.parseDebuggerStatement(r);case _._do:return this.parseDoStatement(r);case _._for:return this.parseForStatement(r);case _._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!e);case _._class:return e&&this.unexpected(),this.parseClass(r,!0);case _._if:return this.parseIfStatement(r);case _._return:return this.parseReturnStatement(r);case _._switch:return this.parseSwitchStatement(r);case _._throw:return this.parseThrowStatement(r);case _._try:return this.parseTryStatement(r);case _._const:case _._var:return s=s||this.value,e&&s!=="var"&&this.unexpected(),this.parseVarStatement(r,s);case _._while:return this.parseWhileStatement(r);case _._with:return this.parseWithStatement(r);case _.braceL:return this.parseBlock(!0,r);case _.semi:return this.parseEmptyStatement(r);case _._export:case _._import:if(this.options.ecmaVersion>10&&i===_._import){ot.lastIndex=this.pos;var o=ot.exec(this.input),l=this.pos+o[0].length,u=this.input.charCodeAt(l);if(u===40||u===46)return this.parseExpressionStatement(r,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===_._import?this.parseImport(r):this.parseExport(r,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!e);var f=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(f)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),f==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(r,!1,f),this.semicolon(),this.finishNode(r,"VariableDeclaration");var p=this.value,h=this.parseExpression();return i===_.name&&h.type==="Identifier"&&this.eat(_.colon)?this.parseLabeledStatement(r,p,h,e):this.parseExpressionStatement(r,h)}};Ce.parseBreakContinueStatement=function(e,t){var n=t==="break";this.next(),this.eat(_.semi)||this.insertSemicolon()?e.label=null:this.type!==_.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var r=this.labels[i];if((e.label==null||r.name===e.label.name)&&(r.kind!=null&&(n||r.kind==="loop")||e.label&&n))break}return i===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")};Ce.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};Ce.parseDoStatement=function(e){return this.next(),this.labels.push(gs),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(_._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(_.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};Ce.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(gs),this.enterScope(0),this.expect(_.parenL),this.type===_.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===_._var||this.type===_._const||n){var i=this.startNode(),r=n?"let":this.value;return this.next(),this.parseVar(i,!0,r),this.finishNode(i,"VariableDeclaration"),this.parseForAfterInit(e,i,t)}var s=this.isContextual("let"),o=!1,l=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(l){var u=this.startNode();return this.next(),l==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(u,!0,l),this.finishNode(u,"VariableDeclaration"),this.parseForAfterInit(e,u,t)}var f=this.containsEsc,p=new Pr,h=this.start,d=t>-1?this.parseExprSubscripts(p,"await"):this.parseExpression(!0,p);return this.type===_._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===_._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(d.start===h&&!f&&d.type==="Identifier"&&d.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),s&&o&&this.raise(d.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(d,!1,p),this.checkLValPattern(d),this.parseForIn(e,d)):(this.checkExpressionErrors(p,!0),t>-1&&this.unexpected(t),this.parseFor(e,d))};Ce.parseForAfterInit=function(e,t,n){return(this.type===_._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===_._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))};Ce.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,ci|(n?0:Ha),!1,t)};Ce.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(_._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};Ce.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(_.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};Ce.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(_.braceL),this.labels.push(Wg),this.enterScope(Tc);for(var t,n=!1;this.type!==_.braceR;)if(this.type===_._case||this.type===_._default){var i=this.type===_._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(_.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};Ce.parseThrowStatement=function(e){return this.next(),vt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Gg=[];Ce.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?Ic:0),this.checkLValPattern(e,t?Pc:ln),this.expect(_.parenR),e};Ce.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===_._catch){var t=this.startNode();this.next(),this.eat(_.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(_._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};Ce.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")};Ce.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(gs),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};Ce.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};Ce.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};Ce.parseLabeledStatement=function(e,t,n,i){for(var r=0,s=this.labels;r<s.length;r+=1){var o=s[r];o.name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var l=this.type.isLoop?"loop":this.type===_._switch?"switch":null,u=this.labels.length-1;u>=0;u--){var f=this.labels[u];if(f.statementStart===e.start)f.statementStart=this.start,f.kind=l;else break}return this.labels.push({name:t,kind:l,statementStart:this.start}),e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")};Ce.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};Ce.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(_.braceL),e&&this.enterScope(0);this.type!==_.braceR;){var i=this.parseStatement(null);t.body.push(i)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};Ce.parseFor=function(e,t){return e.init=t,this.expect(_.semi),e.test=this.type===_.semi?null:this.parseExpression(),this.expect(_.semi),e.update=this.type===_.parenR?null:this.parseExpression(),this.expect(_.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};Ce.parseForIn=function(e,t){var n=this.type===_._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(_.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")};Ce.parseVar=function(e,t,n,i){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(_.eq)?r.init=this.parseMaybeAssign(t):!i&&n==="const"&&!(this.type===_._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!i&&(n==="using"||n==="await using")&&this.options.ecmaVersion>=17&&this.type!==_._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):!i&&r.id.type!=="Identifier"&&!(t&&(this.type===_._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):r.init=null,e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(_.comma))break}return e};Ce.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?ds:ln,!1)};var ci=1,Ha=2,Rc=4;Ce.parseFunction=function(e,t,n,i,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===_.star&&t&Ha&&this.unexpected(),e.generator=this.eat(_.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&ci&&(e.id=t&Rc&&this.type!==_.name?null:this.parseIdent(),e.id&&!(t&Ha)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?ds:ln:Nc));var s=this.yieldPos,o=this.awaitPos,l=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ps(e.async,e.generator)),t&ci||(e.id=this.type===_.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,r),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=l,this.finishNode(e,t&ci?"FunctionDeclaration":"FunctionExpression")};Ce.parseFunctionParams=function(e){this.expect(_.parenL),e.params=this.parseBindingList(_.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};Ce.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.enterClassBody(),r=this.startNode(),s=!1;for(r.body=[],this.expect(_.braceL);this.type!==_.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(r.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(s&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),s=!0):o.key&&o.key.type==="PrivateIdentifier"&&Jg(i,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};Ce.parseClassElement=function(e){if(this.eat(_.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),i="",r=!1,s=!1,o="method",l=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(_.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===_.star?l=!0:i="static"}if(n.static=l,!i&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===_.star)&&!this.canInsertSemicolon()?s=!0:i="async"),!i&&(t>=9||!s)&&this.eat(_.star)&&(r=!0),!i&&!s&&!r){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=u:i=u)}if(i?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=i,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===_.parenL||o!=="method"||r||s){var f=!n.static&&hr(n,"constructor"),p=f&&e;f&&o!=="method"&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=f?"constructor":o,this.parseClassMethod(n,r,s,p)}else this.parseClassField(n);return n};Ce.isClassElementNameStart=function(){return this.type===_.name||this.type===_.privateId||this.type===_.num||this.type===_.string||this.type===_.bracketL||this.type.keyword};Ce.parseClassElementName=function(e){this.type===_.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};Ce.parseClassMethod=function(e,t,n,i){var r=e.key;e.kind==="constructor"?(t&&this.raise(r.start,"Constructor can't be a generator"),n&&this.raise(r.start,"Constructor can't be an async method")):e.static&&hr(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,n,i);return e.kind==="get"&&s.params.length!==0&&this.raiseRecoverable(s.start,"getter should have no params"),e.kind==="set"&&s.params.length!==1&&this.raiseRecoverable(s.start,"setter should have exactly one param"),e.kind==="set"&&s.params[0].type==="RestElement"&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};Ce.parseClassField=function(e){return hr(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&hr(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(_.eq)?(this.enterScope(ki|Tr),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};Ce.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Pn|Tr);this.type!==_.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};Ce.parseClassId=function(e,t){this.type===_.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,ln,!1)):(t===!0&&this.unexpected(),e.id=null)};Ce.parseClassSuper=function(e){e.superClass=this.eat(_._extends)?this.parseExprSubscripts(null,!1):null};Ce.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};Ce.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var i=this.privateNameStack.length,r=i===0?null:this.privateNameStack[i-1],s=0;s<n.length;++s){var o=n[s];Xn(t,o.name)||(r?r.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}};function Jg(e,t){var n=t.key.name,i=e[n],r="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(r=(t.static?"s":"i")+t.kind),i==="iget"&&r==="iset"||i==="iset"&&r==="iget"||i==="sget"&&r==="sset"||i==="sset"&&r==="sget"?(e[n]="true",!1):i?!0:(e[n]=r,!1)}function hr(e,t){var n=e.computed,i=e.key;return!n&&(i.type==="Identifier"&&i.name===t||i.type==="Literal"&&i.value===t)}Ce.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==_.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};Ce.parseExport=function(e,t){if(this.next(),this.eat(_.star))return this.parseExportAllDeclaration(e,t);if(this.eat(_._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==_.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,i=e.specifiers;n<i.length;n+=1){var r=i[n];this.checkUnreserved(r.local),this.checkLocalExport(r.local),r.local.type==="Literal"&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};Ce.parseExportDeclaration=function(e){return this.parseStatement(null)};Ce.parseExportDefaultDeclaration=function(){var e;if(this.type===_._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,ci|Rc,!1,e)}else if(this.type===_._class){var n=this.startNode();return this.parseClass(n,"nullableID")}else{var i=this.parseMaybeAssign();return this.semicolon(),i}};Ce.checkExport=function(e,t,n){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Xn(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)};Ce.checkPatternExport=function(e,t){var n=t.type;if(n==="Identifier")this.checkExport(e,t,t.start);else if(n==="ObjectPattern")for(var i=0,r=t.properties;i<r.length;i+=1){var s=r[i];this.checkPatternExport(e,s)}else if(n==="ArrayPattern")for(var o=0,l=t.elements;o<l.length;o+=1){var u=l[o];u&&this.checkPatternExport(e,u)}else n==="Property"?this.checkPatternExport(e,t.value):n==="AssignmentPattern"?this.checkPatternExport(e,t.left):n==="RestElement"&&this.checkPatternExport(e,t.argument)};Ce.checkVariableExport=function(e,t){if(e)for(var n=0,i=t;n<i.length;n+=1){var r=i[n];this.checkPatternExport(e,r.id)}};Ce.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};Ce.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};Ce.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(_.braceL);!this.eat(_.braceR);){if(n)n=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;t.push(this.parseExportSpecifier(e))}return t};Ce.parseImport=function(e){return this.next(),this.type===_.string?(e.specifiers=Gg,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===_.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};Ce.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,ln),this.finishNode(e,"ImportSpecifier")};Ce.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,ln),this.finishNode(e,"ImportDefaultSpecifier")};Ce.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,ln),this.finishNode(e,"ImportNamespaceSpecifier")};Ce.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===_.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(_.comma)))return e;if(this.type===_.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(_.braceL);!this.eat(_.braceR);){if(t)t=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;e.push(this.parseImportSpecifier())}return e};Ce.parseWithClause=function(){var e=[];if(!this.eat(_._with))return e;this.expect(_.braceL);for(var t={},n=!0;!this.eat(_.braceR);){if(n)n=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;var i=this.parseImportAttribute(),r=i.key.type==="Identifier"?i.key.name:i.key.value;Xn(t,r)&&this.raiseRecoverable(i.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(i)}return e};Ce.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===_.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(_.colon),this.type!==_.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};Ce.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===_.string){var e=this.parseLiteral(this.value);return Ug.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};Ce.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};Ce.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var jt=rt.prototype;jt.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var i=0,r=e.properties;i<r.length;i+=1){var s=r[i];this.toAssignable(s,t),s.type==="RestElement"&&(s.argument.type==="ArrayPattern"||s.argument.type==="ObjectPattern")&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e};jt.toAssignableList=function(e,t){for(var n=e.length,i=0;i<n;i++){var r=e[i];r&&this.toAssignable(r,t)}if(n){var s=e[n-1];this.options.ecmaVersion===6&&t&&s&&s.type==="RestElement"&&s.argument.type!=="Identifier"&&this.unexpected(s.argument.start)}return e};jt.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};jt.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==_.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};jt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case _.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(_.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case _.braceL:return this.parseObj(!0)}return this.parseIdent()};jt.parseBindingList=function(e,t,n,i){for(var r=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(_.comma),t&&this.type===_.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===_.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),r.push(o),this.type===_.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else r.push(this.parseAssignableListItem(i))}return r};jt.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};jt.parseBindingListItem=function(e){return e};jt.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(_.eq))return n;var i=this.startNodeAt(e,t);return i.left=n,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")};jt.checkLValSimple=function(e,t,n){t===void 0&&(t=cr);var i=t!==cr;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(i?"Binding ":"Assigning to ")+e.name+" in strict mode"),i&&(t===ln&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(Xn(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),t!==Oc&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":i&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return i&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(i?"Binding":"Assigning to")+" rvalue")}};jt.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=cr),e.type){case"ObjectPattern":for(var i=0,r=e.properties;i<r.length;i+=1){var s=r[i];this.checkLValInnerPattern(s,t,n)}break;case"ArrayPattern":for(var o=0,l=e.elements;o<l.length;o+=1){var u=l[o];u&&this.checkLValInnerPattern(u,t,n)}break;default:this.checkLValSimple(e,t,n)}};jt.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=cr),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var Bt=function(t,n,i,r,s){this.token=t,this.isExpr=!!n,this.preserveSpace=!!i,this.override=r,this.generator=!!s},tt={b_stat:new Bt("{",!1),b_expr:new Bt("{",!0),b_tmpl:new Bt("${",!1),p_stat:new Bt("(",!1),p_expr:new Bt("(",!0),q_tmpl:new Bt("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Bt("function",!1),f_expr:new Bt("function",!0),f_expr_gen:new Bt("function",!0,!1,null,!0),f_gen:new Bt("function",!1,!1,null,!0)},ei=rt.prototype;ei.initialContext=function(){return[tt.b_stat]};ei.curContext=function(){return this.context[this.context.length-1]};ei.braceIsBlock=function(e){var t=this.curContext();return t===tt.f_expr||t===tt.f_stat?!0:e===_.colon&&(t===tt.b_stat||t===tt.b_expr)?!t.isExpr:e===_._return||e===_.name&&this.exprAllowed?vt.test(this.input.slice(this.lastTokEnd,this.start)):e===_._else||e===_.semi||e===_.eof||e===_.parenR||e===_.arrow?!0:e===_.braceL?t===tt.b_stat:e===_._var||e===_._const||e===_.name?!1:!this.exprAllowed};ei.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};ei.updateContext=function(e){var t,n=this.type;n.keyword&&e===_.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr};ei.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};_.parenR.updateContext=_.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===tt.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};_.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?tt.b_stat:tt.b_expr),this.exprAllowed=!0};_.dollarBraceL.updateContext=function(){this.context.push(tt.b_tmpl),this.exprAllowed=!0};_.parenL.updateContext=function(e){var t=e===_._if||e===_._for||e===_._with||e===_._while;this.context.push(t?tt.p_stat:tt.p_expr),this.exprAllowed=!0};_.incDec.updateContext=function(){};_._function.updateContext=_._class.updateContext=function(e){e.beforeExpr&&e!==_._else&&!(e===_.semi&&this.curContext()!==tt.p_stat)&&!(e===_._return&&vt.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===_.colon||e===_.braceL)&&this.curContext()===tt.b_stat)?this.context.push(tt.f_expr):this.context.push(tt.f_stat),this.exprAllowed=!1};_.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};_.backQuote.updateContext=function(){this.curContext()===tt.q_tmpl?this.context.pop():this.context.push(tt.q_tmpl),this.exprAllowed=!1};_.star.updateContext=function(e){if(e===_._function){var t=this.context.length-1;this.context[t]===tt.f_expr?this.context[t]=tt.f_expr_gen:this.context[t]=tt.f_gen}this.exprAllowed=!0};_.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==_.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Re=rt.prototype;Re.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var i=e.key,r;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6){r==="__proto__"&&s==="init"&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);return}r="$"+r;var o=t[r];if(o){var l;s==="init"?l=this.strict&&o.init||o.get||o.set:l=o.init||o[s],l&&this.raiseRecoverable(i.start,"Redefinition of property")}else o=t[r]={init:!1,get:!1,set:!1};o[s]=!0}};Re.parseExpression=function(e,t){var n=this.start,i=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===_.comma){var s=this.startNodeAt(n,i);for(s.expressions=[r];this.eat(_.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return r};Re.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var i=!1,r=-1,s=-1,o=-1;t?(r=t.parenthesizedAssign,s=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Pr,i=!0);var l=this.start,u=this.startLoc;(this.type===_.parenL||this.type===_.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var f=this.parseMaybeConditional(e,t);if(n&&(f=n.call(this,f,l,u)),this.type.isAssign){var p=this.startNodeAt(l,u);return p.operator=this.value,this.type===_.eq&&(f=this.toAssignable(f,!1,t)),i||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=f.start&&(t.shorthandAssign=-1),this.type===_.eq?this.checkLValPattern(f):this.checkLValSimple(f),p.left=f,this.next(),p.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(p,"AssignmentExpression")}else i&&this.checkExpressionErrors(t,!0);return r>-1&&(t.parenthesizedAssign=r),s>-1&&(t.trailingComma=s),f};Re.parseMaybeConditional=function(e,t){var n=this.start,i=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(this.eat(_.question)){var s=this.startNodeAt(n,i);return s.test=r,s.consequent=this.parseMaybeAssign(),this.expect(_.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return r};Re.parseExprOps=function(e,t){var n=this.start,i=this.startLoc,r=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||r.start===n&&r.type==="ArrowFunctionExpression"?r:this.parseExprOp(r,n,i,-1,e)};Re.parseExprOp=function(e,t,n,i,r){var s=this.type.binop;if(s!=null&&(!r||this.type!==_._in)&&s>i){var o=this.type===_.logicalOR||this.type===_.logicalAND,l=this.type===_.coalesce;l&&(s=_.logicalAND.binop);var u=this.value;this.next();var f=this.start,p=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),f,p,s,r),d=this.buildBinary(t,n,e,h,u,o||l);return(o&&this.type===_.coalesce||l&&(this.type===_.logicalOR||this.type===_.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,n,i,r)}return e};Re.buildBinary=function(e,t,n,i,r,s){i.type==="PrivateIdentifier"&&this.raise(i.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(e,t);return o.left=n,o.operator=r,o.right=i,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")};Re.parseMaybeUnary=function(e,t,n,i){var r=this.start,s=this.startLoc,o;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(i),t=!0;else if(this.type.prefix){var l=this.startNode(),u=this.type===_.incDec;l.operator=this.value,l.prefix=!0,this.next(),l.argument=this.parseMaybeUnary(null,!0,u,i),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(l.argument):this.strict&&l.operator==="delete"&&Lc(l.argument)?this.raiseRecoverable(l.start,"Deleting local variable in strict mode"):l.operator==="delete"&&$a(l.argument)?this.raiseRecoverable(l.start,"Private fields can not be deleted"):t=!0,o=this.finishNode(l,u?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===_.privateId)(i||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==_._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,i),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var f=this.startNodeAt(r,s);f.operator=this.value,f.prefix=!1,f.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(f,"UpdateExpression")}}if(!n&&this.eat(_.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(r,s,o,this.parseMaybeUnary(null,!1,!1,i),"**",!1);else return o};function Lc(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Lc(e.expression)}function $a(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&$a(e.expression)||e.type==="ParenthesizedExpression"&&$a(e.expression)}Re.parseExprSubscripts=function(e,t){var n=this.start,i=this.startLoc,r=this.parseExprAtom(e,t);if(r.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return r;var s=this.parseSubscripts(r,n,i,!1,t);return e&&s.type==="MemberExpression"&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s};Re.parseSubscripts=function(e,t,n,i,r){for(var s=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var l=this.parseSubscript(e,t,n,i,s,o,r);if(l.optional&&(o=!0),l===e||l.type==="ArrowFunctionExpression"){if(o){var u=this.startNodeAt(t,n);u.expression=l,l=this.finishNode(u,"ChainExpression")}return l}e=l}};Re.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(_.arrow)};Re.parseSubscriptAsyncArrow=function(e,t,n,i){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,i)};Re.parseSubscript=function(e,t,n,i,r,s,o){var l=this.options.ecmaVersion>=11,u=l&&this.eat(_.questionDot);i&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var f=this.eat(_.bracketL);if(f||u&&this.type!==_.parenL&&this.type!==_.backQuote||this.eat(_.dot)){var p=this.startNodeAt(t,n);p.object=e,f?(p.property=this.parseExpression(),this.expect(_.bracketR)):this.type===_.privateId&&e.type!=="Super"?p.property=this.parsePrivateIdent():p.property=this.parseIdent(this.options.allowReserved!=="never"),p.computed=!!f,l&&(p.optional=u),e=this.finishNode(p,"MemberExpression")}else if(!i&&this.eat(_.parenL)){var h=new Pr,d=this.yieldPos,m=this.awaitPos,b=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var v=this.parseExprList(_.parenR,this.options.ecmaVersion>=8,!1,h);if(r&&!u&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=m,this.awaitIdentPos=b,this.parseSubscriptAsyncArrow(t,n,v,o);this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,this.awaitIdentPos=b||this.awaitIdentPos;var S=this.startNodeAt(t,n);S.callee=e,S.arguments=v,l&&(S.optional=u),e=this.finishNode(S,"CallExpression")}else if(this.type===_.backQuote){(u||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var E=this.startNodeAt(t,n);E.tag=e,E.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(E,"TaggedTemplateExpression")}return e};Re.parseExprAtom=function(e,t,n){this.type===_.slash&&this.readRegexp();var i,r=this.potentialArrowAt===this.start;switch(this.type){case _._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type===_.parenL&&!this.allowDirectSuper&&this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==_.dot&&this.type!==_.bracketL&&this.type!==_.parenL&&this.unexpected(),this.finishNode(i,"Super");case _._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case _.name:var s=this.start,o=this.startLoc,l=this.containsEsc,u=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!l&&u.name==="async"&&!this.canInsertSemicolon()&&this.eat(_._function))return this.overrideContext(tt.f_expr),this.parseFunction(this.startNodeAt(s,o),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(_.arrow))return this.parseArrowExpression(this.startNodeAt(s,o),[u],!1,t);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===_.name&&!l&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return u=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(_.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,o),[u],!0,t)}return u;case _.regexp:var f=this.value;return i=this.parseLiteral(f.value),i.regex={pattern:f.pattern,flags:f.flags},i;case _.num:case _.string:return this.parseLiteral(this.value);case _._null:case _._true:case _._false:return i=this.startNode(),i.value=this.type===_._null?null:this.type===_._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case _.parenL:var p=this.start,h=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),h;case _.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(_.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case _.braceL:return this.overrideContext(tt.b_expr),this.parseObj(!1,e);case _._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case _._class:return this.parseClass(this.startNode(),!1);case _._new:return this.parseNew();case _.backQuote:return this.parseTemplate();case _._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}};Re.parseExprAtomDefault=function(){this.unexpected()};Re.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===_.parenL&&!e)return this.parseDynamicImport(t);if(this.type===_.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};Re.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(_.parenR)?e.options=null:(this.expect(_.comma),this.afterTrailingComma(_.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(_.parenR)||(this.expect(_.comma),this.afterTrailingComma(_.parenR)||this.unexpected())));else if(!this.eat(_.parenR)){var t=this.start;this.eat(_.comma)&&this.eat(_.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};Re.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};Re.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};Re.parseParenExpression=function(){this.expect(_.parenL);var e=this.parseExpression();return this.expect(_.parenR),e};Re.shouldParseArrow=function(e){return!this.canInsertSemicolon()};Re.parseParenAndDistinguishExpression=function(e,t){var n=this.start,i=this.startLoc,r,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,l=this.startLoc,u=[],f=!0,p=!1,h=new Pr,d=this.yieldPos,m=this.awaitPos,b;for(this.yieldPos=0,this.awaitPos=0;this.type!==_.parenR;)if(f?f=!1:this.expect(_.comma),s&&this.afterTrailingComma(_.parenR,!0)){p=!0;break}else if(this.type===_.ellipsis){b=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===_.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else u.push(this.parseMaybeAssign(!1,h,this.parseParenItem));var v=this.lastTokEnd,S=this.lastTokEndLoc;if(this.expect(_.parenR),e&&this.shouldParseArrow(u)&&this.eat(_.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=m,this.parseParenArrowList(n,i,u,t);(!u.length||p)&&this.unexpected(this.lastTokStart),b&&this.unexpected(b),this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,u.length>1?(r=this.startNodeAt(o,l),r.expressions=u,this.finishNodeAt(r,"SequenceExpression",v,S)):r=u[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var E=this.startNodeAt(n,i);return E.expression=r,this.finishNode(E,"ParenthesizedExpression")}else return r};Re.parseParenItem=function(e){return e};Re.parseParenArrowList=function(e,t,n,i){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,i)};var Yg=[];Re.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===_.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var i=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),i,r,!0,!1),this.eat(_.parenL)?e.arguments=this.parseExprList(_.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Yg,this.finishNode(e,"NewExpression")};Re.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===_.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,`
|
|
18
|
+
`),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
19
|
+
`),cooked:this.value},this.next(),n.tail=this.type===_.backQuote,this.finishNode(n,"TemplateElement")};Re.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(n.quasis=[i];!i.tail;)this.type===_.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(_.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(_.braceR),n.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")};Re.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===_.name||this.type===_.num||this.type===_.string||this.type===_.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===_.star)&&!vt.test(this.input.slice(this.lastTokEnd,this.start))};Re.parseObj=function(e,t){var n=this.startNode(),i=!0,r={};for(n.properties=[],this.next();!this.eat(_.braceR);){if(i)i=!1;else if(this.expect(_.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(_.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,r,t),n.properties.push(s)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")};Re.parseProperty=function(e,t){var n=this.startNode(),i,r,s,o;if(this.options.ecmaVersion>=9&&this.eat(_.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===_.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(n,"RestElement")):(n.argument=this.parseMaybeAssign(!1,t),this.type===_.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,"SpreadElement"));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(s=this.start,o=this.startLoc),e||(i=this.eat(_.star)));var l=this.containsEsc;return this.parsePropertyName(n),!e&&!l&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(n)?(r=!0,i=this.options.ecmaVersion>=9&&this.eat(_.star),this.parsePropertyName(n)):r=!1,this.parsePropertyValue(n,e,i,r,s,o,t,l),this.finishNode(n,"Property")};Re.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=e.kind==="get"?0:1;if(e.value.params.length!==n){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};Re.parsePropertyValue=function(e,t,n,i,r,s,o,l){(n||i)&&this.type===_.colon&&this.unexpected(),this.eat(_.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===_.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,i),e.kind="init"):!t&&!l&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==_.comma&&this.type!==_.braceR&&this.type!==_.eq?((n||i)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((n||i)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r),t?e.value=this.parseMaybeDefault(r,s,this.copyNode(e.key)):this.type===_.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};Re.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(_.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(_.bracketR),e.key;e.computed=!1}return e.key=this.type===_.num||this.type===_.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};Re.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};Re.parseMethod=function(e,t,n){var i=this.startNode(),r=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ps(t,i.generator)|Tr|(n?Ac:0)),this.expect(_.parenL),i.params=this.parseBindingList(_.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1),this.yieldPos=r,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(i,"FunctionExpression")};Re.parseArrowExpression=function(e,t,n,i){var r=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(ps(n,!1)|fs),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,i),this.yieldPos=r,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")};Re.parseFunctionBody=function(e,t,n,i){var r=t&&this.type!==_.braceL,s=this.strict,o=!1;if(r)e.body=this.parseMaybeAssign(i),e.expression=!0,this.checkParams(e,!1);else{var l=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!s||l)&&(o=this.strictDirective(this.end),o&&l&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var u=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!s&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Oc),e.body=this.parseBlock(!1,void 0,o&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()};Re.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){var i=n[t];if(i.type!=="Identifier")return!1}return!0};Re.checkParams=function(e,t){for(var n=Object.create(null),i=0,r=e.params;i<r.length;i+=1){var s=r[i];this.checkLValInnerPattern(s,ds,t?null:n)}};Re.parseExprList=function(e,t,n,i){for(var r=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(_.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===_.comma?o=null:this.type===_.ellipsis?(o=this.parseSpread(i),i&&this.type===_.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):o=this.parseMaybeAssign(!1,i),r.push(o)}return r};Re.checkUnreserved=function(e){var t=e.start,n=e.end,i=e.name;if(this.inGenerator&&i==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Nr)&&i==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(i==="arguments"||i==="await")&&this.raise(t,"Cannot use "+i+" in class static initialization block"),this.keywords.test(i)&&this.raise(t,"Unexpected keyword '"+i+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf("\\")!==-1)){var r=this.strict?this.reservedWordsStrict:this.reservedWords;r.test(i)&&(!this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+i+"' is reserved"))}};Re.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};Re.parseIdentNode=function(){var e=this.startNode();return this.type===_.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=_.name):this.unexpected(),e};Re.parsePrivateIdent=function(){var e=this.startNode();return this.type===_.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};Re.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===_.semi||this.canInsertSemicolon()||this.type!==_.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(_.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};Re.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var fr=rt.prototype;fr.raise=function(e,t){var n=Cc(this.input,e);t+=" ("+n.line+":"+n.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var i=new SyntaxError(t);throw i.pos=e,i.loc=n,i.raisedAt=this.pos,i};fr.raiseRecoverable=fr.raise;fr.curPosition=function(){if(this.options.locations)return new xi(this.curLine,this.pos-this.lineStart)};var bn=rt.prototype,Qg=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};bn.enterScope=function(e){this.scopeStack.push(new Qg(e))};bn.exitScope=function(){this.scopeStack.pop()};bn.treatFunctionsAsVarInScope=function(e){return e.flags&Nn||!this.inModule&&e.flags&In};bn.declareName=function(e,t,n){var i=!1;if(t===ln){var r=this.currentScope();i=r.lexical.indexOf(e)>-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&r.flags&In&&delete this.undefinedExports[e]}else if(t===Pc){var s=this.currentScope();s.lexical.push(e)}else if(t===Nc){var o=this.currentScope();this.treatFunctionsAsVar?i=o.lexical.indexOf(e)>-1:i=o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var l=this.scopeStack.length-1;l>=0;--l){var u=this.scopeStack[l];if(u.lexical.indexOf(e)>-1&&!(u.flags&Ic&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){i=!0;break}if(u.var.push(e),this.inModule&&u.flags&In&&delete this.undefinedExports[e],u.flags&Nr)break}i&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")};bn.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};bn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};bn.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Nr|ki|Pn))return t}};bn.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Nr|ki|Pn)&&!(t.flags&fs))return t}};var Or=function(t,n,i){this.type="",this.start=n,this.end=0,t.options.locations&&(this.loc=new Ar(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[n,0])},Ci=rt.prototype;Ci.startNode=function(){return new Or(this,this.start,this.startLoc)};Ci.startNodeAt=function(e,t){return new Or(this,e,t)};function Mc(e,t,n,i){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=n),e}Ci.finishNode=function(e,t){return Mc.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Ci.finishNodeAt=function(e,t,n,i){return Mc.call(this,e,t,n,i)};Ci.copyNode=function(e){var t=new Or(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Zg="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Fc="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Dc=Fc+" Extended_Pictographic",jc=Dc,Vc=jc+" EBase EComp EMod EPres ExtPict",Bc=Vc,Xg=Bc,em={9:Fc,10:Dc,11:jc,12:Vc,13:Bc,14:Xg},tm="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",nm={9:"",10:"",11:"",12:"",13:"",14:tm},sl="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",zc="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Kc=zc+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Uc=Kc+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Hc=Uc+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",$c=Hc+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",im=$c+" "+Zg,rm={9:zc,10:Kc,11:Uc,12:Hc,13:$c,14:im},qc={};function am(e){var t=qc[e]={binary:pn(em[e]+" "+sl),binaryOfStrings:pn(nm[e]),nonBinary:{General_Category:pn(sl),Script:pn(rm[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Zr=0,ol=[9,10,11,12,13,14];Zr<ol.length;Zr+=1){var sm=ol[Zr];am(sm)}var Ee=rt.prototype,pr=function(t,n){this.parent=t,this.base=n||this};pr.prototype.separatedFrom=function(t){for(var n=this;n;n=n.parent)for(var i=t;i;i=i.parent)if(n.base===i.base&&n!==i)return!0;return!1};pr.prototype.sibling=function(){return new pr(this.parent,this.base)};var Yt=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=qc[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Yt.prototype.reset=function(t,n,i){var r=i.indexOf("v")!==-1,s=i.indexOf("u")!==-1;this.start=t|0,this.source=n+"",this.flags=i,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=s&&this.parser.options.ecmaVersion>=9)};Yt.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Yt.prototype.at=function(t,n){n===void 0&&(n=!1);var i=this.source,r=i.length;if(t>=r)return-1;var s=i.charCodeAt(t);if(!(n||this.switchU)||s<=55295||s>=57344||t+1>=r)return s;var o=i.charCodeAt(t+1);return o>=56320&&o<=57343?(s<<10)+o-56613888:s};Yt.prototype.nextIndex=function(t,n){n===void 0&&(n=!1);var i=this.source,r=i.length;if(t>=r)return r;var s=i.charCodeAt(t),o;return!(n||this.switchU)||s<=55295||s>=57344||t+1>=r||(o=i.charCodeAt(t+1))<56320||o>57343?t+1:t+2};Yt.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};Yt.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};Yt.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};Yt.prototype.eat=function(t,n){return n===void 0&&(n=!1),this.current(n)===t?(this.advance(n),!0):!1};Yt.prototype.eatChars=function(t,n){n===void 0&&(n=!1);for(var i=this.pos,r=0,s=t;r<s.length;r+=1){var o=s[r],l=this.at(i,n);if(l===-1||l!==o)return!1;i=this.nextIndex(i,n)}return this.pos=i,!0};Ee.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,i=!1,r=!1,s=0;s<n.length;s++){var o=n.charAt(s);t.indexOf(o)===-1&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(o,s+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),o==="u"&&(i=!0),o==="v"&&(r=!0)}this.options.ecmaVersion>=15&&i&&r&&this.raise(e.start,"Invalid regular expression flag")};function om(e){for(var t in e)return!0;return!1}Ee.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&om(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};Ee.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var i=n[t];e.groupNames[i]||e.raise("Invalid named capture referenced")}};Ee.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new pr(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};Ee.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};Ee.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};Ee.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1};Ee.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};Ee.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};Ee.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var i=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return r!==-1&&r<i&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1};Ee.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};Ee.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};Ee.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),i=e.eat(45);if(n||i){for(var r=0;r<n.length;r++){var s=n.charAt(r);n.indexOf(s,r+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(i){var o=this.regexp_eatModifiers(e);!n&&!o&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var l=0;l<o.length;l++){var u=o.charAt(l);(o.indexOf(u,l+1)>-1||n.indexOf(u)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};Ee.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};Ee.regexp_eatModifiers=function(e){for(var t="",n=0;(n=e.current())!==-1&&lm(n);)t+=tn(n),e.advance();return t};function lm(e){return e===105||e===109||e===115}Ee.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};Ee.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};Ee.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Wc(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Wc(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}Ee.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!Wc(n);)e.advance();return e.pos!==t};Ee.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};Ee.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n)if(t)for(var i=0,r=n;i<r.length;i+=1){var s=r[i];s.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};Ee.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};Ee.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=tn(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=tn(e.lastIntValue);return!0}return!1};Ee.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);return e.advance(n),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(i=e.lastIntValue),um(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function um(e){return Gt(e,!0)||e===36||e===95}Ee.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);return e.advance(n),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(i=e.lastIntValue),cm(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function cm(e){return mn(e,!0)||e===36||e===95||e===8204||e===8205}Ee.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};Ee.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1};Ee.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};Ee.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};Ee.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};Ee.regexp_eatZero=function(e){return e.current()===48&&!Rr(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};Ee.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};Ee.regexp_eatControlLetter=function(e){var t=e.current();return Gc(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Gc(e){return e>=65&&e<=90||e>=97&&e<=122}Ee.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(i&&r>=55296&&r<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(r-55296)*1024+(o-56320)+65536,!0}e.pos=s,e.lastIntValue=r}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&hm(e.lastIntValue))return!0;i&&e.raise("Invalid unicode escape"),e.pos=n}return!1};function hm(e){return e>=0&&e<=1114111}Ee.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};Ee.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Jc=0,nn=1,Rt=2;Ee.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(fm(t))return e.lastIntValue=-1,e.advance(),nn;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var i;if(e.eat(123)&&(i=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&i===Rt&&e.raise("Invalid property name"),i;e.raise("Invalid property name")}return Jc};function fm(e){return e===100||e===68||e===115||e===83||e===119||e===87}Ee.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,i),nn}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return Jc};Ee.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){Xn(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")};Ee.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return nn;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return Rt;e.raise("Invalid property name")};Ee.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Yc(t=e.current());)e.lastStringValue+=tn(t),e.advance();return e.lastStringValue!==""};function Yc(e){return Gc(e)||e===95}Ee.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";pm(t=e.current());)e.lastStringValue+=tn(t),e.advance();return e.lastStringValue!==""};function pm(e){return Yc(e)||Rr(e)}Ee.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};Ee.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&n===Rt&&e.raise("Negated character class may contain strings"),!0}return!1};Ee.regexp_classContents=function(e){return e.current()===93?nn:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),nn)};Ee.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise("Invalid character class"),t!==-1&&n!==-1&&t>n&&e.raise("Range out of order in character class")}}};Ee.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||Xc(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return i!==93?(e.lastIntValue=i,e.advance(),!0):!1};Ee.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};Ee.regexp_classSetExpression=function(e){var t=nn,n;if(!this.regexp_eatClassSetRange(e))if(n=this.regexp_eatClassSetOperand(e)){n===Rt&&(t=Rt);for(var i=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))){n!==Rt&&(t=nn);continue}e.raise("Invalid character in character class")}if(i!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(i!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e),!n)return t;n===Rt&&(t=Rt)}};Ee.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;return n!==-1&&i!==-1&&n>i&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};Ee.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?nn:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};Ee.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),i=this.regexp_classContents(e);if(e.eat(93))return n&&i===Rt&&e.raise("Negated character class may contain strings"),i;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null};Ee.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null};Ee.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Rt&&(t=Rt);return t};Ee.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?nn:Rt};Ee.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var n=e.current();return n<0||n===e.lookahead()&&dm(n)||gm(n)?!1:(e.advance(),e.lastIntValue=n,!0)};function dm(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function gm(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}Ee.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return mm(t)?(e.lastIntValue=t,e.advance(),!0):!1};function mm(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}Ee.regexp_eatClassControlLetter=function(e){var t=e.current();return Rr(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};Ee.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};Ee.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Rr(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function Rr(e){return e>=48&&e<=57}Ee.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Qc(n=e.current());)e.lastIntValue=16*e.lastIntValue+Zc(n),e.advance();return e.pos!==t};function Qc(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Zc(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}Ee.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+n*8+e.lastIntValue:e.lastIntValue=t*8+n}else e.lastIntValue=t;return!0}return!1};Ee.regexp_eatOctalDigit=function(e){var t=e.current();return Xc(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Xc(e){return e>=48&&e<=55}Ee.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var i=0;i<t;++i){var r=e.current();if(!Qc(r))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Zc(r),e.advance()}return!0};var ms=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Ar(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Ve=rt.prototype;Ve.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new ms(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};Ve.getToken=function(){return this.next(),new ms(this)};typeof Symbol<"u"&&(Ve[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===_.eof,value:t}}}});Ve.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(_.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};Ve.readToken=function(e){return Gt(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};Ve.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var n=this.input.charCodeAt(e+1);return n<=56319||n>=57344?t:(t<<10)+n-56613888};Ve.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};Ve.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(n===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var i=void 0,r=t;(i=Ec(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=i;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())};Ve.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Zn(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())};Ve.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&Sc.test(String.fromCharCode(e)))++this.pos;else break e}}};Ve.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)};Ve.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(_.ellipsis)):(++this.pos,this.finishToken(_.dot))};Ve.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(_.assign,2):this.finishOp(_.slash,1)};Ve.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,i=e===42?_.star:_.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,i=_.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(_.assign,n+1):this.finishOp(i,n)};Ve.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(_.assign,3)}return this.finishOp(e===124?_.logicalOR:_.logicalAND,2)}return t===61?this.finishOp(_.assign,2):this.finishOp(e===124?_.bitwiseOR:_.bitwiseAND,1)};Ve.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(_.assign,2):this.finishOp(_.bitwiseXOR,1)};Ve.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||vt.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(_.incDec,2):t===61?this.finishOp(_.assign,2):this.finishOp(_.plusMin,1)};Ve.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(_.assign,n+1):this.finishOp(_.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(_.relational,n))};Ve.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(_.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(_.arrow)):this.finishOp(e===61?_.eq:_.prefix,1)};Ve.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(_.questionDot,2)}if(t===63){if(e>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(_.assign,3)}return this.finishOp(_.coalesce,2)}}return this.finishOp(_.question,1)};Ve.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Gt(t,!0)||t===92))return this.finishToken(_.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+tn(t)+"'")};Ve.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(_.parenL);case 41:return++this.pos,this.finishToken(_.parenR);case 59:return++this.pos,this.finishToken(_.semi);case 44:return++this.pos,this.finishToken(_.comma);case 91:return++this.pos,this.finishToken(_.bracketL);case 93:return++this.pos,this.finishToken(_.bracketR);case 123:return++this.pos,this.finishToken(_.braceL);case 125:return++this.pos,this.finishToken(_.braceR);case 58:return++this.pos,this.finishToken(_.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(_.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(_.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+tn(e)+"'")};Ve.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)};Ve.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(vt.test(i)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if(i==="[")t=!0;else if(i==="]"&&t)t=!1;else if(i==="/"&&!t)break;e=i==="\\"}++this.pos}var r=this.input.slice(n,this.pos);++this.pos;var s=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(s);var l=this.regexpState||(this.regexpState=new Yt(this));l.reset(n,r,o),this.validateRegExpFlags(l),this.validateRegExpPattern(l);var u=null;try{u=new RegExp(r,o)}catch{}return this.finishToken(_.regexp,{pattern:r,flags:o,value:u})};Ve.readInt=function(e,t,n){for(var i=this.options.ecmaVersion>=12&&t===void 0,r=n&&this.input.charCodeAt(this.pos)===48,s=this.pos,o=0,l=0,u=0,f=t??1/0;u<f;++u,++this.pos){var p=this.input.charCodeAt(this.pos),h=void 0;if(i&&p===95){r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),l===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),u===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),l=p;continue}if(p>=97?h=p-97+10:p>=65?h=p-65+10:p>=48&&p<=57?h=p-48:h=1/0,h>=e)break;l=p,o=o*e+h}return i&&l===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||t!=null&&this.pos-s!==t?null:o};function xm(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function eh(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}Ve.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=eh(this.input.slice(t,this.pos)),++this.pos):Gt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(_.num,n)};Ve.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&i===110){var r=eh(this.input.slice(t,this.pos));return++this.pos,Gt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(_.num,r)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),i===46&&!n&&(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),(i===69||i===101)&&!n&&(i=this.input.charCodeAt(++this.pos),(i===43||i===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Gt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=xm(this.input.slice(t,this.pos),n);return this.finishToken(_.num,s)};Ve.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,"Code point out of bounds")}else t=this.readHexChar(4);return t};Ve.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;i===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):i===8232||i===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Zn(i)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(_.string,t)};var th={};Ve.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===th)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};Ve.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw th;this.raise(e,t)};Ve.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===_.template||this.type===_.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(_.dollarBraceL)):(++this.pos,this.finishToken(_.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(_.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Zn(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
20
|
+
`;break;default:e+=String.fromCharCode(n);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};Ve.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(_.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
67
21
|
`&&++this.pos;case`
|
|
68
|
-
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};
|
|
69
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return sn(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),(n!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return zi(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};it.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};it.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(An(i,n))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?Jr:An)(o,n)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=sn(o),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};it.readWord=function(){var e=this.readWord1(),t=R.name;return this.keywords.test(e)&&(t=ah[e]),this.finishToken(t,e)};var dI="8.15.0";jt.acorn={Parser:jt,version:dI,defaultOptions:yc,Position:Ea,SourceLocation:cl,getLineInfo:ob,Node:fl,TokenType:st,tokTypes:R,keywordTypes:ah,TokContext:Dr,tokContexts:_t,isIdentifierChar:An,isIdentifierStart:Jr,Token:dh,isNewLine:zi,lineBreak:hr,lineBreakG:R_,nonASCIIwhitespace:ib};var Mo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ml(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hI(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var bu={exports:{}},yu,vf;function pI(){return vf||(vf=1,yu={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:"♦"}),yu}var sa={exports:{}},fI=sa.exports,xf;function bf(){return xf||(xf=1,(function(e,t){(function(r,n){n(t)})(fI,(function(r){var n=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,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,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,343,9,54,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,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,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,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],i=[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,4,51,13,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,39,27,10,22,251,41,7,1,17,2,60,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,200,32,32,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,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,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,229,29,3,0,496,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],a="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",o="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",s={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},u="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",c={5:u,"5module":u+" export import",6:u+" const class extends export import super"},d=/^in(stanceof)?$/,h=new RegExp("["+o+"]"),f=new RegExp("["+o+a+"]");function g(l,p){for(var S=65536,A=0;A<p.length;A+=2){if(S+=p[A],S>l)return!1;if(S+=p[A+1],S>=l)return!0}return!1}function x(l,p){return l<65?l===36:l<91?!0:l<97?l===95:l<123?!0:l<=65535?l>=170&&h.test(String.fromCharCode(l)):p===!1?!1:g(l,i)}function v(l,p){return l<48?l===36:l<58?!0:l<65?!1:l<91?!0:l<97?l===95:l<123?!0:l<=65535?l>=170&&f.test(String.fromCharCode(l)):p===!1?!1:g(l,i)||g(l,n)}var b=function(p,S){S===void 0&&(S={}),this.label=p,this.keyword=S.keyword,this.beforeExpr=!!S.beforeExpr,this.startsExpr=!!S.startsExpr,this.isLoop=!!S.isLoop,this.isAssign=!!S.isAssign,this.prefix=!!S.prefix,this.postfix=!!S.postfix,this.binop=S.binop||null,this.updateContext=null};function y(l,p){return new b(l,{beforeExpr:!0,binop:p})}var k={beforeExpr:!0},C={startsExpr:!0},I={};function w(l,p){return p===void 0&&(p={}),p.keyword=l,I[l]=new b(l,p)}var m={num:new b("num",C),regexp:new b("regexp",C),string:new b("string",C),name:new b("name",C),privateId:new b("privateId",C),eof:new b("eof"),bracketL:new b("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new b("]"),braceL:new b("{",{beforeExpr:!0,startsExpr:!0}),braceR:new b("}"),parenL:new b("(",{beforeExpr:!0,startsExpr:!0}),parenR:new b(")"),comma:new b(",",k),semi:new b(";",k),colon:new b(":",k),dot:new b("."),question:new b("?",k),questionDot:new b("?."),arrow:new b("=>",k),template:new b("template"),invalidTemplate:new b("invalidTemplate"),ellipsis:new b("...",k),backQuote:new b("`",C),dollarBraceL:new b("${",{beforeExpr:!0,startsExpr:!0}),eq:new b("=",{beforeExpr:!0,isAssign:!0}),assign:new b("_=",{beforeExpr:!0,isAssign:!0}),incDec:new b("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new b("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:y("||",1),logicalAND:y("&&",2),bitwiseOR:y("|",3),bitwiseXOR:y("^",4),bitwiseAND:y("&",5),equality:y("==/!=/===/!==",6),relational:y("</>/<=/>=",7),bitShift:y("<</>>/>>>",8),plusMin:new b("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:y("%",10),star:y("*",10),slash:y("/",10),starstar:new b("**",{beforeExpr:!0}),coalesce:y("??",1),_break:w("break"),_case:w("case",k),_catch:w("catch"),_continue:w("continue"),_debugger:w("debugger"),_default:w("default",k),_do:w("do",{isLoop:!0,beforeExpr:!0}),_else:w("else",k),_finally:w("finally"),_for:w("for",{isLoop:!0}),_function:w("function",C),_if:w("if"),_return:w("return",k),_switch:w("switch"),_throw:w("throw",k),_try:w("try"),_var:w("var"),_const:w("const"),_while:w("while",{isLoop:!0}),_with:w("with"),_new:w("new",{beforeExpr:!0,startsExpr:!0}),_this:w("this",C),_super:w("super",C),_class:w("class",C),_extends:w("extends",k),_export:w("export"),_import:w("import",C),_null:w("null",C),_true:w("true",C),_false:w("false",C),_in:w("in",{beforeExpr:!0,binop:7}),_instanceof:w("instanceof",{beforeExpr:!0,binop:7}),_typeof:w("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:w("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:w("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},T=/\r\n?|\n|\u2028|\u2029/,P=new RegExp(T.source,"g");function V(l){return l===10||l===13||l===8232||l===8233}function O(l,p,S){S===void 0&&(S=l.length);for(var A=p;A<S;A++){var M=l.charCodeAt(A);if(V(M))return A<S-1&&M===13&&l.charCodeAt(A+1)===10?A+2:A+1}return-1}var B=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,F=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,J=Object.prototype,U=J.hasOwnProperty,Y=J.toString,Z=Object.hasOwn||(function(l,p){return U.call(l,p)}),le=Array.isArray||(function(l){return Y.call(l)==="[object Array]"}),Q=Object.create(null);function fe(l){return Q[l]||(Q[l]=new RegExp("^(?:"+l.replace(/ /g,"|")+")$"))}function E(l){return l<=65535?String.fromCharCode(l):(l-=65536,String.fromCharCode((l>>10)+55296,(l&1023)+56320))}var te=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ae=function(p,S){this.line=p,this.column=S};ae.prototype.offset=function(p){return new ae(this.line,this.column+p)};var N=function(p,S,A){this.start=S,this.end=A,p.sourceFile!==null&&(this.source=p.sourceFile)};function ee(l,p){for(var S=1,A=0;;){var M=O(l,A,p);if(M<0)return new ae(S,p-A);++S,A=M}}var H={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},W=!1;function $(l){var p={};for(var S in H)p[S]=l&&Z(l,S)?l[S]:H[S];if(p.ecmaVersion==="latest"?p.ecmaVersion=1e8:p.ecmaVersion==null?(!W&&typeof console=="object"&&console.warn&&(W=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
70
|
-
Defaulting to 2020, but this will stop working in the future.`)),
|
|
71
|
-
`,A-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(T).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=m.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=p.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&p.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(oe),this.regexpState=null,this.privateNameStack=[]},D={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};pe.prototype.parse=function(){var p=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(p)},D.inFunction.get=function(){return(this.currentVarScope().flags&de)>0},D.inGenerator.get=function(){return(this.currentVarScope().flags&K)>0},D.inAsync.get=function(){return(this.currentVarScope().flags&he)>0},D.canAwait.get=function(){for(var l=this.scopeStack.length-1;l>=0;l--){var p=this.scopeStack[l],S=p.flags;if(S&(ve|Ce))return!1;if(S&de)return(S&he)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},D.allowSuper.get=function(){var l=this.currentThisScope(),p=l.flags;return(p&re)>0||this.options.allowSuperOutsideMethod},D.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ue)>0},D.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},D.allowNewDotTarget.get=function(){for(var l=this.scopeStack.length-1;l>=0;l--){var p=this.scopeStack[l],S=p.flags;if(S&(ve|Ce)||S&de&&!(S&xe))return!0}return!1},D.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ve)>0},pe.extend=function(){for(var p=[],S=arguments.length;S--;)p[S]=arguments[S];for(var A=this,M=0;M<p.length;M++)A=p[M](A);return A},pe.parse=function(p,S){return new this(S,p).parse()},pe.parseExpressionAt=function(p,S,A){var M=new this(A,p,S);return M.nextToken(),M.parseExpression()},pe.tokenizer=function(p,S){return new this(S,p)},Object.defineProperties(pe.prototype,D);var Oe=pe.prototype,Ke=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Oe.strictDirective=function(l){if(this.options.ecmaVersion<5)return!1;for(;;){F.lastIndex=l,l+=F.exec(this.input)[0].length;var p=Ke.exec(this.input.slice(l));if(!p)return!1;if((p[1]||p[2])==="use strict"){F.lastIndex=l+p[0].length;var S=F.exec(this.input),A=S.index+S[0].length,M=this.input.charAt(A);return M===";"||M==="}"||T.test(S[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(M)||M==="!"&&this.input.charAt(A+1)==="=")}l+=p[0].length,F.lastIndex=l,l+=F.exec(this.input)[0].length,this.input[l]===";"&&l++}},Oe.eat=function(l){return this.type===l?(this.next(),!0):!1},Oe.isContextual=function(l){return this.type===m.name&&this.value===l&&!this.containsEsc},Oe.eatContextual=function(l){return this.isContextual(l)?(this.next(),!0):!1},Oe.expectContextual=function(l){this.eatContextual(l)||this.unexpected()},Oe.canInsertSemicolon=function(){return this.type===m.eof||this.type===m.braceR||T.test(this.input.slice(this.lastTokEnd,this.start))},Oe.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Oe.semicolon=function(){!this.eat(m.semi)&&!this.insertSemicolon()&&this.unexpected()},Oe.afterTrailingComma=function(l,p){if(this.type===l)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),p||this.next(),!0},Oe.expect=function(l){this.eat(l)||this.unexpected()},Oe.unexpected=function(l){this.raise(l??this.start,"Unexpected token")};var St=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Oe.checkPatternErrors=function(l,p){if(l){l.trailingComma>-1&&this.raiseRecoverable(l.trailingComma,"Comma is not permitted after the rest element");var S=p?l.parenthesizedAssign:l.parenthesizedBind;S>-1&&this.raiseRecoverable(S,p?"Assigning to rvalue":"Parenthesized pattern")}},Oe.checkExpressionErrors=function(l,p){if(!l)return!1;var S=l.shorthandAssign,A=l.doubleProto;if(!p)return S>=0||A>=0;S>=0&&this.raise(S,"Shorthand property assignments are valid only in destructuring patterns"),A>=0&&this.raiseRecoverable(A,"Redefinition of __proto__ property")},Oe.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Oe.isSimpleAssignTarget=function(l){return l.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(l.expression):l.type==="Identifier"||l.type==="MemberExpression"};var Te=pe.prototype;Te.parseTopLevel=function(l){var p=Object.create(null);for(l.body||(l.body=[]);this.type!==m.eof;){var S=this.parseStatement(null,!0,p);l.body.push(S)}if(this.inModule)for(var A=0,M=Object.keys(this.undefinedExports);A<M.length;A+=1){var ne=M[A];this.raiseRecoverable(this.undefinedExports[ne].start,"Export '"+ne+"' is not defined")}return this.adaptDirectivePrologue(l.body),this.next(),l.sourceType=this.options.sourceType,this.finishNode(l,"Program")};var zt={kind:"loop"},rt={kind:"switch"};Te.isLet=function(l){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;F.lastIndex=this.pos;var p=F.exec(this.input),S=this.pos+p[0].length,A=this.input.charCodeAt(S);if(A===91||A===92)return!0;if(l)return!1;if(A===123||A>55295&&A<56320)return!0;if(x(A,!0)){for(var M=S+1;v(A=this.input.charCodeAt(M),!0);)++M;if(A===92||A>55295&&A<56320)return!0;var ne=this.input.slice(S,M);if(!d.test(ne))return!0}return!1},Te.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;F.lastIndex=this.pos;var l=F.exec(this.input),p=this.pos+l[0].length,S;return!T.test(this.input.slice(this.pos,p))&&this.input.slice(p,p+8)==="function"&&(p+8===this.input.length||!(v(S=this.input.charCodeAt(p+8))||S>55295&&S<56320))},Te.isUsingKeyword=function(l,p){if(this.options.ecmaVersion<17||!this.isContextual(l?"await":"using"))return!1;F.lastIndex=this.pos;var S=F.exec(this.input),A=this.pos+S[0].length;if(T.test(this.input.slice(this.pos,A)))return!1;if(l){var M=A+5,ne;if(this.input.slice(A,M)!=="using"||M===this.input.length||v(ne=this.input.charCodeAt(M))||ne>55295&&ne<56320)return!1;F.lastIndex=M;var se=F.exec(this.input);if(se&&T.test(this.input.slice(M,M+se[0].length)))return!1}if(p){var ke=A+2,Ee;if(this.input.slice(A,ke)==="of"&&(ke===this.input.length||!v(Ee=this.input.charCodeAt(ke))&&!(Ee>55295&&Ee<56320)))return!1}var He=this.input.charCodeAt(A);return x(He,!0)||He===92},Te.isAwaitUsing=function(l){return this.isUsingKeyword(!0,l)},Te.isUsing=function(l){return this.isUsingKeyword(!1,l)},Te.parseStatement=function(l,p,S){var A=this.type,M=this.startNode(),ne;switch(this.isLet(l)&&(A=m._var,ne="let"),A){case m._break:case m._continue:return this.parseBreakContinueStatement(M,A.keyword);case m._debugger:return this.parseDebuggerStatement(M);case m._do:return this.parseDoStatement(M);case m._for:return this.parseForStatement(M);case m._function:return l&&(this.strict||l!=="if"&&l!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(M,!1,!l);case m._class:return l&&this.unexpected(),this.parseClass(M,!0);case m._if:return this.parseIfStatement(M);case m._return:return this.parseReturnStatement(M);case m._switch:return this.parseSwitchStatement(M);case m._throw:return this.parseThrowStatement(M);case m._try:return this.parseTryStatement(M);case m._const:case m._var:return ne=ne||this.value,l&&ne!=="var"&&this.unexpected(),this.parseVarStatement(M,ne);case m._while:return this.parseWhileStatement(M);case m._with:return this.parseWithStatement(M);case m.braceL:return this.parseBlock(!0,M);case m.semi:return this.parseEmptyStatement(M);case m._export:case m._import:if(this.options.ecmaVersion>10&&A===m._import){F.lastIndex=this.pos;var se=F.exec(this.input),ke=this.pos+se[0].length,Ee=this.input.charCodeAt(ke);if(Ee===40||Ee===46)return this.parseExpressionStatement(M,this.parseExpression())}return this.options.allowImportExportEverywhere||(p||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),A===m._import?this.parseImport(M):this.parseExport(M,S);default:if(this.isAsyncFunction())return l&&this.unexpected(),this.next(),this.parseFunctionStatement(M,!0,!l);var He=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(He)return p&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),He==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(M,!1,He),this.semicolon(),this.finishNode(M,"VariableDeclaration");var Ge=this.value,vt=this.parseExpression();return A===m.name&&vt.type==="Identifier"&&this.eat(m.colon)?this.parseLabeledStatement(M,Ge,vt,l):this.parseExpressionStatement(M,vt)}},Te.parseBreakContinueStatement=function(l,p){var S=p==="break";this.next(),this.eat(m.semi)||this.insertSemicolon()?l.label=null:this.type!==m.name?this.unexpected():(l.label=this.parseIdent(),this.semicolon());for(var A=0;A<this.labels.length;++A){var M=this.labels[A];if((l.label==null||M.name===l.label.name)&&(M.kind!=null&&(S||M.kind==="loop")||l.label&&S))break}return A===this.labels.length&&this.raise(l.start,"Unsyntactic "+p),this.finishNode(l,S?"BreakStatement":"ContinueStatement")},Te.parseDebuggerStatement=function(l){return this.next(),this.semicolon(),this.finishNode(l,"DebuggerStatement")},Te.parseDoStatement=function(l){return this.next(),this.labels.push(zt),l.body=this.parseStatement("do"),this.labels.pop(),this.expect(m._while),l.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(m.semi):this.semicolon(),this.finishNode(l,"DoWhileStatement")},Te.parseForStatement=function(l){this.next();var p=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(zt),this.enterScope(0),this.expect(m.parenL),this.type===m.semi)return p>-1&&this.unexpected(p),this.parseFor(l,null);var S=this.isLet();if(this.type===m._var||this.type===m._const||S){var A=this.startNode(),M=S?"let":this.value;return this.next(),this.parseVar(A,!0,M),this.finishNode(A,"VariableDeclaration"),this.parseForAfterInit(l,A,p)}var ne=this.isContextual("let"),se=!1,ke=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(ke){var Ee=this.startNode();return this.next(),ke==="await using"&&this.next(),this.parseVar(Ee,!0,ke),this.finishNode(Ee,"VariableDeclaration"),this.parseForAfterInit(l,Ee,p)}var He=this.containsEsc,Ge=new St,vt=this.start,Ft=p>-1?this.parseExprSubscripts(Ge,"await"):this.parseExpression(!0,Ge);return this.type===m._in||(se=this.options.ecmaVersion>=6&&this.isContextual("of"))?(p>-1?(this.type===m._in&&this.unexpected(p),l.await=!0):se&&this.options.ecmaVersion>=8&&(Ft.start===vt&&!He&&Ft.type==="Identifier"&&Ft.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(l.await=!1)),ne&&se&&this.raise(Ft.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(Ft,!1,Ge),this.checkLValPattern(Ft),this.parseForIn(l,Ft)):(this.checkExpressionErrors(Ge,!0),p>-1&&this.unexpected(p),this.parseFor(l,Ft))},Te.parseForAfterInit=function(l,p,S){return(this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&p.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===m._in?S>-1&&this.unexpected(S):l.await=S>-1),this.parseForIn(l,p)):(S>-1&&this.unexpected(S),this.parseFor(l,p))},Te.parseFunctionStatement=function(l,p,S){return this.next(),this.parseFunction(l,Xe|(S?0:wt),!1,p)},Te.parseIfStatement=function(l){return this.next(),l.test=this.parseParenExpression(),l.consequent=this.parseStatement("if"),l.alternate=this.eat(m._else)?this.parseStatement("if"):null,this.finishNode(l,"IfStatement")},Te.parseReturnStatement=function(l){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(m.semi)||this.insertSemicolon()?l.argument=null:(l.argument=this.parseExpression(),this.semicolon()),this.finishNode(l,"ReturnStatement")},Te.parseSwitchStatement=function(l){this.next(),l.discriminant=this.parseParenExpression(),l.cases=[],this.expect(m.braceL),this.labels.push(rt),this.enterScope(0);for(var p,S=!1;this.type!==m.braceR;)if(this.type===m._case||this.type===m._default){var A=this.type===m._case;p&&this.finishNode(p,"SwitchCase"),l.cases.push(p=this.startNode()),p.consequent=[],this.next(),A?p.test=this.parseExpression():(S&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),S=!0,p.test=null),this.expect(m.colon)}else p||this.unexpected(),p.consequent.push(this.parseStatement(null));return this.exitScope(),p&&this.finishNode(p,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(l,"SwitchStatement")},Te.parseThrowStatement=function(l){return this.next(),T.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),l.argument=this.parseExpression(),this.semicolon(),this.finishNode(l,"ThrowStatement")};var et=[];Te.parseCatchClauseParam=function(){var l=this.parseBindingAtom(),p=l.type==="Identifier";return this.enterScope(p?q:0),this.checkLValPattern(l,p?Nt:Ae),this.expect(m.parenR),l},Te.parseTryStatement=function(l){if(this.next(),l.block=this.parseBlock(),l.handler=null,this.type===m._catch){var p=this.startNode();this.next(),this.eat(m.parenL)?p.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),p.param=null,this.enterScope(0)),p.body=this.parseBlock(!1),this.exitScope(),l.handler=this.finishNode(p,"CatchClause")}return l.finalizer=this.eat(m._finally)?this.parseBlock():null,!l.handler&&!l.finalizer&&this.raise(l.start,"Missing catch or finally clause"),this.finishNode(l,"TryStatement")},Te.parseVarStatement=function(l,p,S){return this.next(),this.parseVar(l,!1,p,S),this.semicolon(),this.finishNode(l,"VariableDeclaration")},Te.parseWhileStatement=function(l){return this.next(),l.test=this.parseParenExpression(),this.labels.push(zt),l.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(l,"WhileStatement")},Te.parseWithStatement=function(l){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),l.object=this.parseParenExpression(),l.body=this.parseStatement("with"),this.finishNode(l,"WithStatement")},Te.parseEmptyStatement=function(l){return this.next(),this.finishNode(l,"EmptyStatement")},Te.parseLabeledStatement=function(l,p,S,A){for(var M=0,ne=this.labels;M<ne.length;M+=1){var se=ne[M];se.name===p&&this.raise(S.start,"Label '"+p+"' is already declared")}for(var ke=this.type.isLoop?"loop":this.type===m._switch?"switch":null,Ee=this.labels.length-1;Ee>=0;Ee--){var He=this.labels[Ee];if(He.statementStart===l.start)He.statementStart=this.start,He.kind=ke;else break}return this.labels.push({name:p,kind:ke,statementStart:this.start}),l.body=this.parseStatement(A?A.indexOf("label")===-1?A+"label":A:"label"),this.labels.pop(),l.label=S,this.finishNode(l,"LabeledStatement")},Te.parseExpressionStatement=function(l,p){return l.expression=p,this.semicolon(),this.finishNode(l,"ExpressionStatement")},Te.parseBlock=function(l,p,S){for(l===void 0&&(l=!0),p===void 0&&(p=this.startNode()),p.body=[],this.expect(m.braceL),l&&this.enterScope(0);this.type!==m.braceR;){var A=this.parseStatement(null);p.body.push(A)}return S&&(this.strict=!1),this.next(),l&&this.exitScope(),this.finishNode(p,"BlockStatement")},Te.parseFor=function(l,p){return l.init=p,this.expect(m.semi),l.test=this.type===m.semi?null:this.parseExpression(),this.expect(m.semi),l.update=this.type===m.parenR?null:this.parseExpression(),this.expect(m.parenR),l.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(l,"ForStatement")},Te.parseForIn=function(l,p){var S=this.type===m._in;return this.next(),p.type==="VariableDeclaration"&&p.declarations[0].init!=null&&(!S||this.options.ecmaVersion<8||this.strict||p.kind!=="var"||p.declarations[0].id.type!=="Identifier")&&this.raise(p.start,(S?"for-in":"for-of")+" loop variable declaration may not have an initializer"),l.left=p,l.right=S?this.parseExpression():this.parseMaybeAssign(),this.expect(m.parenR),l.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(l,S?"ForInStatement":"ForOfStatement")},Te.parseVar=function(l,p,S,A){for(l.declarations=[],l.kind=S;;){var M=this.startNode();if(this.parseVarId(M,S),this.eat(m.eq)?M.init=this.parseMaybeAssign(p):!A&&S==="const"&&!(this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!A&&(S==="using"||S==="await using")&&this.options.ecmaVersion>=17&&this.type!==m._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+S+" declaration"):!A&&M.id.type!=="Identifier"&&!(p&&(this.type===m._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):M.init=null,l.declarations.push(this.finishNode(M,"VariableDeclarator")),!this.eat(m.comma))break}return l},Te.parseVarId=function(l,p){l.id=p==="using"||p==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(l.id,p==="var"?_e:Ae,!1)};var Xe=1,wt=2,At=4;Te.parseFunction=function(l,p,S,A,M){this.initFunction(l),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!A)&&(this.type===m.star&&p&wt&&this.unexpected(),l.generator=this.eat(m.star)),this.options.ecmaVersion>=8&&(l.async=!!A),p&Xe&&(l.id=p&At&&this.type!==m.name?null:this.parseIdent(),l.id&&!(p&wt)&&this.checkLValSimple(l.id,this.strict||l.generator||l.async?this.treatFunctionsAsVar?_e:Ae:Be));var ne=this.yieldPos,se=this.awaitPos,ke=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ie(l.async,l.generator)),p&Xe||(l.id=this.type===m.name?this.parseIdent():null),this.parseFunctionParams(l),this.parseFunctionBody(l,S,!1,M),this.yieldPos=ne,this.awaitPos=se,this.awaitIdentPos=ke,this.finishNode(l,p&Xe?"FunctionDeclaration":"FunctionExpression")},Te.parseFunctionParams=function(l){this.expect(m.parenL),l.params=this.parseBindingList(m.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Te.parseClass=function(l,p){this.next();var S=this.strict;this.strict=!0,this.parseClassId(l,p),this.parseClassSuper(l);var A=this.enterClassBody(),M=this.startNode(),ne=!1;for(M.body=[],this.expect(m.braceL);this.type!==m.braceR;){var se=this.parseClassElement(l.superClass!==null);se&&(M.body.push(se),se.type==="MethodDefinition"&&se.kind==="constructor"?(ne&&this.raiseRecoverable(se.start,"Duplicate constructor in the same class"),ne=!0):se.key&&se.key.type==="PrivateIdentifier"&&pn(A,se)&&this.raiseRecoverable(se.key.start,"Identifier '#"+se.key.name+"' has already been declared"))}return this.strict=S,this.next(),l.body=this.finishNode(M,"ClassBody"),this.exitClassBody(),this.finishNode(l,p?"ClassDeclaration":"ClassExpression")},Te.parseClassElement=function(l){if(this.eat(m.semi))return null;var p=this.options.ecmaVersion,S=this.startNode(),A="",M=!1,ne=!1,se="method",ke=!1;if(this.eatContextual("static")){if(p>=13&&this.eat(m.braceL))return this.parseClassStaticBlock(S),S;this.isClassElementNameStart()||this.type===m.star?ke=!0:A="static"}if(S.static=ke,!A&&p>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===m.star)&&!this.canInsertSemicolon()?ne=!0:A="async"),!A&&(p>=9||!ne)&&this.eat(m.star)&&(M=!0),!A&&!ne&&!M){var Ee=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?se=Ee:A=Ee)}if(A?(S.computed=!1,S.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),S.key.name=A,this.finishNode(S.key,"Identifier")):this.parseClassElementName(S),p<13||this.type===m.parenL||se!=="method"||M||ne){var He=!S.static&&fr(S,"constructor"),Ge=He&&l;He&&se!=="method"&&this.raise(S.key.start,"Constructor can't have get/set modifier"),S.kind=He?"constructor":se,this.parseClassMethod(S,M,ne,Ge)}else this.parseClassField(S);return S},Te.isClassElementNameStart=function(){return this.type===m.name||this.type===m.privateId||this.type===m.num||this.type===m.string||this.type===m.bracketL||this.type.keyword},Te.parseClassElementName=function(l){this.type===m.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),l.computed=!1,l.key=this.parsePrivateIdent()):this.parsePropertyName(l)},Te.parseClassMethod=function(l,p,S,A){var M=l.key;l.kind==="constructor"?(p&&this.raise(M.start,"Constructor can't be a generator"),S&&this.raise(M.start,"Constructor can't be an async method")):l.static&&fr(l,"prototype")&&this.raise(M.start,"Classes may not have a static property named prototype");var ne=l.value=this.parseMethod(p,S,A);return l.kind==="get"&&ne.params.length!==0&&this.raiseRecoverable(ne.start,"getter should have no params"),l.kind==="set"&&ne.params.length!==1&&this.raiseRecoverable(ne.start,"setter should have exactly one param"),l.kind==="set"&&ne.params[0].type==="RestElement"&&this.raiseRecoverable(ne.params[0].start,"Setter cannot use rest params"),this.finishNode(l,"MethodDefinition")},Te.parseClassField=function(l){return fr(l,"constructor")?this.raise(l.key.start,"Classes can't have a field named 'constructor'"):l.static&&fr(l,"prototype")&&this.raise(l.key.start,"Classes can't have a static field named 'prototype'"),this.eat(m.eq)?(this.enterScope(Ce|re),l.value=this.parseMaybeAssign(),this.exitScope()):l.value=null,this.semicolon(),this.finishNode(l,"PropertyDefinition")},Te.parseClassStaticBlock=function(l){l.body=[];var p=this.labels;for(this.labels=[],this.enterScope(ve|re);this.type!==m.braceR;){var S=this.parseStatement(null);l.body.push(S)}return this.next(),this.exitScope(),this.labels=p,this.finishNode(l,"StaticBlock")},Te.parseClassId=function(l,p){this.type===m.name?(l.id=this.parseIdent(),p&&this.checkLValSimple(l.id,Ae,!1)):(p===!0&&this.unexpected(),l.id=null)},Te.parseClassSuper=function(l){l.superClass=this.eat(m._extends)?this.parseExprSubscripts(null,!1):null},Te.enterClassBody=function(){var l={declared:Object.create(null),used:[]};return this.privateNameStack.push(l),l.declared},Te.exitClassBody=function(){var l=this.privateNameStack.pop(),p=l.declared,S=l.used;if(this.options.checkPrivateFields)for(var A=this.privateNameStack.length,M=A===0?null:this.privateNameStack[A-1],ne=0;ne<S.length;++ne){var se=S[ne];Z(p,se.name)||(M?M.used.push(se):this.raiseRecoverable(se.start,"Private field '#"+se.name+"' must be declared in an enclosing class"))}};function pn(l,p){var S=p.key.name,A=l[S],M="true";return p.type==="MethodDefinition"&&(p.kind==="get"||p.kind==="set")&&(M=(p.static?"s":"i")+p.kind),A==="iget"&&M==="iset"||A==="iset"&&M==="iget"||A==="sget"&&M==="sset"||A==="sset"&&M==="sget"?(l[S]="true",!1):A?!0:(l[S]=M,!1)}function fr(l,p){var S=l.computed,A=l.key;return!S&&(A.type==="Identifier"&&A.name===p||A.type==="Literal"&&A.value===p)}Te.parseExportAllDeclaration=function(l,p){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(l.exported=this.parseModuleExportName(),this.checkExport(p,l.exported,this.lastTokStart)):l.exported=null),this.expectContextual("from"),this.type!==m.string&&this.unexpected(),l.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(l.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(l,"ExportAllDeclaration")},Te.parseExport=function(l,p){if(this.next(),this.eat(m.star))return this.parseExportAllDeclaration(l,p);if(this.eat(m._default))return this.checkExport(p,"default",this.lastTokStart),l.declaration=this.parseExportDefaultDeclaration(),this.finishNode(l,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())l.declaration=this.parseExportDeclaration(l),l.declaration.type==="VariableDeclaration"?this.checkVariableExport(p,l.declaration.declarations):this.checkExport(p,l.declaration.id,l.declaration.id.start),l.specifiers=[],l.source=null,this.options.ecmaVersion>=16&&(l.attributes=[]);else{if(l.declaration=null,l.specifiers=this.parseExportSpecifiers(p),this.eatContextual("from"))this.type!==m.string&&this.unexpected(),l.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(l.attributes=this.parseWithClause());else{for(var S=0,A=l.specifiers;S<A.length;S+=1){var M=A[S];this.checkUnreserved(M.local),this.checkLocalExport(M.local),M.local.type==="Literal"&&this.raise(M.local.start,"A string literal cannot be used as an exported binding without `from`.")}l.source=null,this.options.ecmaVersion>=16&&(l.attributes=[])}this.semicolon()}return this.finishNode(l,"ExportNamedDeclaration")},Te.parseExportDeclaration=function(l){return this.parseStatement(null)},Te.parseExportDefaultDeclaration=function(){var l;if(this.type===m._function||(l=this.isAsyncFunction())){var p=this.startNode();return this.next(),l&&this.next(),this.parseFunction(p,Xe|At,!1,l)}else if(this.type===m._class){var S=this.startNode();return this.parseClass(S,"nullableID")}else{var A=this.parseMaybeAssign();return this.semicolon(),A}},Te.checkExport=function(l,p,S){l&&(typeof p!="string"&&(p=p.type==="Identifier"?p.name:p.value),Z(l,p)&&this.raiseRecoverable(S,"Duplicate export '"+p+"'"),l[p]=!0)},Te.checkPatternExport=function(l,p){var S=p.type;if(S==="Identifier")this.checkExport(l,p,p.start);else if(S==="ObjectPattern")for(var A=0,M=p.properties;A<M.length;A+=1){var ne=M[A];this.checkPatternExport(l,ne)}else if(S==="ArrayPattern")for(var se=0,ke=p.elements;se<ke.length;se+=1){var Ee=ke[se];Ee&&this.checkPatternExport(l,Ee)}else S==="Property"?this.checkPatternExport(l,p.value):S==="AssignmentPattern"?this.checkPatternExport(l,p.left):S==="RestElement"&&this.checkPatternExport(l,p.argument)},Te.checkVariableExport=function(l,p){if(l)for(var S=0,A=p;S<A.length;S+=1){var M=A[S];this.checkPatternExport(l,M.id)}},Te.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},Te.parseExportSpecifier=function(l){var p=this.startNode();return p.local=this.parseModuleExportName(),p.exported=this.eatContextual("as")?this.parseModuleExportName():p.local,this.checkExport(l,p.exported,p.exported.start),this.finishNode(p,"ExportSpecifier")},Te.parseExportSpecifiers=function(l){var p=[],S=!0;for(this.expect(m.braceL);!this.eat(m.braceR);){if(S)S=!1;else if(this.expect(m.comma),this.afterTrailingComma(m.braceR))break;p.push(this.parseExportSpecifier(l))}return p},Te.parseImport=function(l){return this.next(),this.type===m.string?(l.specifiers=et,l.source=this.parseExprAtom()):(l.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),l.source=this.type===m.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(l.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(l,"ImportDeclaration")},Te.parseImportSpecifier=function(){var l=this.startNode();return l.imported=this.parseModuleExportName(),this.eatContextual("as")?l.local=this.parseIdent():(this.checkUnreserved(l.imported),l.local=l.imported),this.checkLValSimple(l.local,Ae),this.finishNode(l,"ImportSpecifier")},Te.parseImportDefaultSpecifier=function(){var l=this.startNode();return l.local=this.parseIdent(),this.checkLValSimple(l.local,Ae),this.finishNode(l,"ImportDefaultSpecifier")},Te.parseImportNamespaceSpecifier=function(){var l=this.startNode();return this.next(),this.expectContextual("as"),l.local=this.parseIdent(),this.checkLValSimple(l.local,Ae),this.finishNode(l,"ImportNamespaceSpecifier")},Te.parseImportSpecifiers=function(){var l=[],p=!0;if(this.type===m.name&&(l.push(this.parseImportDefaultSpecifier()),!this.eat(m.comma)))return l;if(this.type===m.star)return l.push(this.parseImportNamespaceSpecifier()),l;for(this.expect(m.braceL);!this.eat(m.braceR);){if(p)p=!1;else if(this.expect(m.comma),this.afterTrailingComma(m.braceR))break;l.push(this.parseImportSpecifier())}return l},Te.parseWithClause=function(){var l=[];if(!this.eat(m._with))return l;this.expect(m.braceL);for(var p={},S=!0;!this.eat(m.braceR);){if(S)S=!1;else if(this.expect(m.comma),this.afterTrailingComma(m.braceR))break;var A=this.parseImportAttribute(),M=A.key.type==="Identifier"?A.key.name:A.key.value;Z(p,M)&&this.raiseRecoverable(A.key.start,"Duplicate attribute key '"+M+"'"),p[M]=!0,l.push(A)}return l},Te.parseImportAttribute=function(){var l=this.startNode();return l.key=this.type===m.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(m.colon),this.type!==m.string&&this.unexpected(),l.value=this.parseExprAtom(),this.finishNode(l,"ImportAttribute")},Te.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===m.string){var l=this.parseLiteral(this.value);return te.test(l.value)&&this.raise(l.start,"An export name cannot include a lone surrogate."),l}return this.parseIdent(!0)},Te.adaptDirectivePrologue=function(l){for(var p=0;p<l.length&&this.isDirectiveCandidate(l[p]);++p)l[p].directive=l[p].expression.raw.slice(1,-1)},Te.isDirectiveCandidate=function(l){return this.options.ecmaVersion>=5&&l.type==="ExpressionStatement"&&l.expression.type==="Literal"&&typeof l.expression.value=="string"&&(this.input[l.start]==='"'||this.input[l.start]==="'")};var It=pe.prototype;It.toAssignable=function(l,p,S){if(this.options.ecmaVersion>=6&&l)switch(l.type){case"Identifier":this.inAsync&&l.name==="await"&&this.raise(l.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":l.type="ObjectPattern",S&&this.checkPatternErrors(S,!0);for(var A=0,M=l.properties;A<M.length;A+=1){var ne=M[A];this.toAssignable(ne,p),ne.type==="RestElement"&&(ne.argument.type==="ArrayPattern"||ne.argument.type==="ObjectPattern")&&this.raise(ne.argument.start,"Unexpected token")}break;case"Property":l.kind!=="init"&&this.raise(l.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(l.value,p);break;case"ArrayExpression":l.type="ArrayPattern",S&&this.checkPatternErrors(S,!0),this.toAssignableList(l.elements,p);break;case"SpreadElement":l.type="RestElement",this.toAssignable(l.argument,p),l.argument.type==="AssignmentPattern"&&this.raise(l.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":l.operator!=="="&&this.raise(l.left.end,"Only '=' operator can be used for specifying default value."),l.type="AssignmentPattern",delete l.operator,this.toAssignable(l.left,p);break;case"ParenthesizedExpression":this.toAssignable(l.expression,p,S);break;case"ChainExpression":this.raiseRecoverable(l.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!p)break;default:this.raise(l.start,"Assigning to rvalue")}else S&&this.checkPatternErrors(S,!0);return l},It.toAssignableList=function(l,p){for(var S=l.length,A=0;A<S;A++){var M=l[A];M&&this.toAssignable(M,p)}if(S){var ne=l[S-1];this.options.ecmaVersion===6&&p&&ne&&ne.type==="RestElement"&&ne.argument.type!=="Identifier"&&this.unexpected(ne.argument.start)}return l},It.parseSpread=function(l){var p=this.startNode();return this.next(),p.argument=this.parseMaybeAssign(!1,l),this.finishNode(p,"SpreadElement")},It.parseRestBinding=function(){var l=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==m.name&&this.unexpected(),l.argument=this.parseBindingAtom(),this.finishNode(l,"RestElement")},It.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case m.bracketL:var l=this.startNode();return this.next(),l.elements=this.parseBindingList(m.bracketR,!0,!0),this.finishNode(l,"ArrayPattern");case m.braceL:return this.parseObj(!0)}return this.parseIdent()},It.parseBindingList=function(l,p,S,A){for(var M=[],ne=!0;!this.eat(l);)if(ne?ne=!1:this.expect(m.comma),p&&this.type===m.comma)M.push(null);else{if(S&&this.afterTrailingComma(l))break;if(this.type===m.ellipsis){var se=this.parseRestBinding();this.parseBindingListItem(se),M.push(se),this.type===m.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(l);break}else M.push(this.parseAssignableListItem(A))}return M},It.parseAssignableListItem=function(l){var p=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(p),p},It.parseBindingListItem=function(l){return l},It.parseMaybeDefault=function(l,p,S){if(S=S||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(m.eq))return S;var A=this.startNodeAt(l,p);return A.left=S,A.right=this.parseMaybeAssign(),this.finishNode(A,"AssignmentPattern")},It.checkLValSimple=function(l,p,S){p===void 0&&(p=Ue);var A=p!==Ue;switch(l.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(l.name)&&this.raiseRecoverable(l.start,(A?"Binding ":"Assigning to ")+l.name+" in strict mode"),A&&(p===Ae&&l.name==="let"&&this.raiseRecoverable(l.start,"let is disallowed as a lexically bound name"),S&&(Z(S,l.name)&&this.raiseRecoverable(l.start,"Argument name clash"),S[l.name]=!0),p!==ge&&this.declareName(l.name,p,l.start));break;case"ChainExpression":this.raiseRecoverable(l.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":A&&this.raiseRecoverable(l.start,"Binding member expression");break;case"ParenthesizedExpression":return A&&this.raiseRecoverable(l.start,"Binding parenthesized expression"),this.checkLValSimple(l.expression,p,S);default:this.raise(l.start,(A?"Binding":"Assigning to")+" rvalue")}},It.checkLValPattern=function(l,p,S){switch(p===void 0&&(p=Ue),l.type){case"ObjectPattern":for(var A=0,M=l.properties;A<M.length;A+=1){var ne=M[A];this.checkLValInnerPattern(ne,p,S)}break;case"ArrayPattern":for(var se=0,ke=l.elements;se<ke.length;se+=1){var Ee=ke[se];Ee&&this.checkLValInnerPattern(Ee,p,S)}break;default:this.checkLValSimple(l,p,S)}},It.checkLValInnerPattern=function(l,p,S){switch(p===void 0&&(p=Ue),l.type){case"Property":this.checkLValInnerPattern(l.value,p,S);break;case"AssignmentPattern":this.checkLValPattern(l.left,p,S);break;case"RestElement":this.checkLValPattern(l.argument,p,S);break;default:this.checkLValPattern(l,p,S)}};var Dt=function(p,S,A,M,ne){this.token=p,this.isExpr=!!S,this.preserveSpace=!!A,this.override=M,this.generator=!!ne},Qe={b_stat:new Dt("{",!1),b_expr:new Dt("{",!0),b_tmpl:new Dt("${",!1),p_stat:new Dt("(",!1),p_expr:new Dt("(",!0),q_tmpl:new Dt("`",!0,!0,function(l){return l.tryReadTemplateToken()}),f_stat:new Dt("function",!1),f_expr:new Dt("function",!0),f_expr_gen:new Dt("function",!0,!1,null,!0),f_gen:new Dt("function",!1,!1,null,!0)},wr=pe.prototype;wr.initialContext=function(){return[Qe.b_stat]},wr.curContext=function(){return this.context[this.context.length-1]},wr.braceIsBlock=function(l){var p=this.curContext();return p===Qe.f_expr||p===Qe.f_stat?!0:l===m.colon&&(p===Qe.b_stat||p===Qe.b_expr)?!p.isExpr:l===m._return||l===m.name&&this.exprAllowed?T.test(this.input.slice(this.lastTokEnd,this.start)):l===m._else||l===m.semi||l===m.eof||l===m.parenR||l===m.arrow?!0:l===m.braceL?p===Qe.b_stat:l===m._var||l===m._const||l===m.name?!1:!this.exprAllowed},wr.inGeneratorContext=function(){for(var l=this.context.length-1;l>=1;l--){var p=this.context[l];if(p.token==="function")return p.generator}return!1},wr.updateContext=function(l){var p,S=this.type;S.keyword&&l===m.dot?this.exprAllowed=!1:(p=S.updateContext)?p.call(this,l):this.exprAllowed=S.beforeExpr},wr.overrideContext=function(l){this.curContext()!==l&&(this.context[this.context.length-1]=l)},m.parenR.updateContext=m.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var l=this.context.pop();l===Qe.b_stat&&this.curContext().token==="function"&&(l=this.context.pop()),this.exprAllowed=!l.isExpr},m.braceL.updateContext=function(l){this.context.push(this.braceIsBlock(l)?Qe.b_stat:Qe.b_expr),this.exprAllowed=!0},m.dollarBraceL.updateContext=function(){this.context.push(Qe.b_tmpl),this.exprAllowed=!0},m.parenL.updateContext=function(l){var p=l===m._if||l===m._for||l===m._with||l===m._while;this.context.push(p?Qe.p_stat:Qe.p_expr),this.exprAllowed=!0},m.incDec.updateContext=function(){},m._function.updateContext=m._class.updateContext=function(l){l.beforeExpr&&l!==m._else&&!(l===m.semi&&this.curContext()!==Qe.p_stat)&&!(l===m._return&&T.test(this.input.slice(this.lastTokEnd,this.start)))&&!((l===m.colon||l===m.braceL)&&this.curContext()===Qe.b_stat)?this.context.push(Qe.f_expr):this.context.push(Qe.f_stat),this.exprAllowed=!1},m.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},m.backQuote.updateContext=function(){this.curContext()===Qe.q_tmpl?this.context.pop():this.context.push(Qe.q_tmpl),this.exprAllowed=!1},m.star.updateContext=function(l){if(l===m._function){var p=this.context.length-1;this.context[p]===Qe.f_expr?this.context[p]=Qe.f_expr_gen:this.context[p]=Qe.f_gen}this.exprAllowed=!0},m.name.updateContext=function(l){var p=!1;this.options.ecmaVersion>=6&&l!==m.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(p=!0),this.exprAllowed=p};var We=pe.prototype;We.checkPropClash=function(l,p,S){if(!(this.options.ecmaVersion>=9&&l.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(l.computed||l.method||l.shorthand))){var A=l.key,M;switch(A.type){case"Identifier":M=A.name;break;case"Literal":M=String(A.value);break;default:return}var ne=l.kind;if(this.options.ecmaVersion>=6){M==="__proto__"&&ne==="init"&&(p.proto&&(S?S.doubleProto<0&&(S.doubleProto=A.start):this.raiseRecoverable(A.start,"Redefinition of __proto__ property")),p.proto=!0);return}M="$"+M;var se=p[M];if(se){var ke;ne==="init"?ke=this.strict&&se.init||se.get||se.set:ke=se.init||se[ne],ke&&this.raiseRecoverable(A.start,"Redefinition of property")}else se=p[M]={init:!1,get:!1,set:!1};se[ne]=!0}},We.parseExpression=function(l,p){var S=this.start,A=this.startLoc,M=this.parseMaybeAssign(l,p);if(this.type===m.comma){var ne=this.startNodeAt(S,A);for(ne.expressions=[M];this.eat(m.comma);)ne.expressions.push(this.parseMaybeAssign(l,p));return this.finishNode(ne,"SequenceExpression")}return M},We.parseMaybeAssign=function(l,p,S){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(l);this.exprAllowed=!1}var A=!1,M=-1,ne=-1,se=-1;p?(M=p.parenthesizedAssign,ne=p.trailingComma,se=p.doubleProto,p.parenthesizedAssign=p.trailingComma=-1):(p=new St,A=!0);var ke=this.start,Ee=this.startLoc;(this.type===m.parenL||this.type===m.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=l==="await");var He=this.parseMaybeConditional(l,p);if(S&&(He=S.call(this,He,ke,Ee)),this.type.isAssign){var Ge=this.startNodeAt(ke,Ee);return Ge.operator=this.value,this.type===m.eq&&(He=this.toAssignable(He,!1,p)),A||(p.parenthesizedAssign=p.trailingComma=p.doubleProto=-1),p.shorthandAssign>=He.start&&(p.shorthandAssign=-1),this.type===m.eq?this.checkLValPattern(He):this.checkLValSimple(He),Ge.left=He,this.next(),Ge.right=this.parseMaybeAssign(l),se>-1&&(p.doubleProto=se),this.finishNode(Ge,"AssignmentExpression")}else A&&this.checkExpressionErrors(p,!0);return M>-1&&(p.parenthesizedAssign=M),ne>-1&&(p.trailingComma=ne),He},We.parseMaybeConditional=function(l,p){var S=this.start,A=this.startLoc,M=this.parseExprOps(l,p);if(this.checkExpressionErrors(p))return M;if(this.eat(m.question)){var ne=this.startNodeAt(S,A);return ne.test=M,ne.consequent=this.parseMaybeAssign(),this.expect(m.colon),ne.alternate=this.parseMaybeAssign(l),this.finishNode(ne,"ConditionalExpression")}return M},We.parseExprOps=function(l,p){var S=this.start,A=this.startLoc,M=this.parseMaybeUnary(p,!1,!1,l);return this.checkExpressionErrors(p)||M.start===S&&M.type==="ArrowFunctionExpression"?M:this.parseExprOp(M,S,A,-1,l)},We.parseExprOp=function(l,p,S,A,M){var ne=this.type.binop;if(ne!=null&&(!M||this.type!==m._in)&&ne>A){var se=this.type===m.logicalOR||this.type===m.logicalAND,ke=this.type===m.coalesce;ke&&(ne=m.logicalAND.binop);var Ee=this.value;this.next();var He=this.start,Ge=this.startLoc,vt=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,M),He,Ge,ne,M),Ft=this.buildBinary(p,S,l,vt,Ee,se||ke);return(se&&this.type===m.coalesce||ke&&(this.type===m.logicalOR||this.type===m.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(Ft,p,S,A,M)}return l},We.buildBinary=function(l,p,S,A,M,ne){A.type==="PrivateIdentifier"&&this.raise(A.start,"Private identifier can only be left side of binary expression");var se=this.startNodeAt(l,p);return se.left=S,se.operator=M,se.right=A,this.finishNode(se,ne?"LogicalExpression":"BinaryExpression")},We.parseMaybeUnary=function(l,p,S,A){var M=this.start,ne=this.startLoc,se;if(this.isContextual("await")&&this.canAwait)se=this.parseAwait(A),p=!0;else if(this.type.prefix){var ke=this.startNode(),Ee=this.type===m.incDec;ke.operator=this.value,ke.prefix=!0,this.next(),ke.argument=this.parseMaybeUnary(null,!0,Ee,A),this.checkExpressionErrors(l,!0),Ee?this.checkLValSimple(ke.argument):this.strict&&ke.operator==="delete"&&Za(ke.argument)?this.raiseRecoverable(ke.start,"Deleting local variable in strict mode"):ke.operator==="delete"&&Ki(ke.argument)?this.raiseRecoverable(ke.start,"Private fields can not be deleted"):p=!0,se=this.finishNode(ke,Ee?"UpdateExpression":"UnaryExpression")}else if(!p&&this.type===m.privateId)(A||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),se=this.parsePrivateIdent(),this.type!==m._in&&this.unexpected();else{if(se=this.parseExprSubscripts(l,A),this.checkExpressionErrors(l))return se;for(;this.type.postfix&&!this.canInsertSemicolon();){var He=this.startNodeAt(M,ne);He.operator=this.value,He.prefix=!1,He.argument=se,this.checkLValSimple(se),this.next(),se=this.finishNode(He,"UpdateExpression")}}if(!S&&this.eat(m.starstar))if(p)this.unexpected(this.lastTokStart);else return this.buildBinary(M,ne,se,this.parseMaybeUnary(null,!1,!1,A),"**",!1);else return se};function Za(l){return l.type==="Identifier"||l.type==="ParenthesizedExpression"&&Za(l.expression)}function Ki(l){return l.type==="MemberExpression"&&l.property.type==="PrivateIdentifier"||l.type==="ChainExpression"&&Ki(l.expression)||l.type==="ParenthesizedExpression"&&Ki(l.expression)}We.parseExprSubscripts=function(l,p){var S=this.start,A=this.startLoc,M=this.parseExprAtom(l,p);if(M.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return M;var ne=this.parseSubscripts(M,S,A,!1,p);return l&&ne.type==="MemberExpression"&&(l.parenthesizedAssign>=ne.start&&(l.parenthesizedAssign=-1),l.parenthesizedBind>=ne.start&&(l.parenthesizedBind=-1),l.trailingComma>=ne.start&&(l.trailingComma=-1)),ne},We.parseSubscripts=function(l,p,S,A,M){for(var ne=this.options.ecmaVersion>=8&&l.type==="Identifier"&&l.name==="async"&&this.lastTokEnd===l.end&&!this.canInsertSemicolon()&&l.end-l.start===5&&this.potentialArrowAt===l.start,se=!1;;){var ke=this.parseSubscript(l,p,S,A,ne,se,M);if(ke.optional&&(se=!0),ke===l||ke.type==="ArrowFunctionExpression"){if(se){var Ee=this.startNodeAt(p,S);Ee.expression=ke,ke=this.finishNode(Ee,"ChainExpression")}return ke}l=ke}},We.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(m.arrow)},We.parseSubscriptAsyncArrow=function(l,p,S,A){return this.parseArrowExpression(this.startNodeAt(l,p),S,!0,A)},We.parseSubscript=function(l,p,S,A,M,ne,se){var ke=this.options.ecmaVersion>=11,Ee=ke&&this.eat(m.questionDot);A&&Ee&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var He=this.eat(m.bracketL);if(He||Ee&&this.type!==m.parenL&&this.type!==m.backQuote||this.eat(m.dot)){var Ge=this.startNodeAt(p,S);Ge.object=l,He?(Ge.property=this.parseExpression(),this.expect(m.bracketR)):this.type===m.privateId&&l.type!=="Super"?Ge.property=this.parsePrivateIdent():Ge.property=this.parseIdent(this.options.allowReserved!=="never"),Ge.computed=!!He,ke&&(Ge.optional=Ee),l=this.finishNode(Ge,"MemberExpression")}else if(!A&&this.eat(m.parenL)){var vt=new St,Ft=this.yieldPos,j=this.awaitPos,G=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var ce=this.parseExprList(m.parenR,this.options.ecmaVersion>=8,!1,vt);if(M&&!Ee&&this.shouldParseAsyncArrow())return this.checkPatternErrors(vt,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Ft,this.awaitPos=j,this.awaitIdentPos=G,this.parseSubscriptAsyncArrow(p,S,ce,se);this.checkExpressionErrors(vt,!0),this.yieldPos=Ft||this.yieldPos,this.awaitPos=j||this.awaitPos,this.awaitIdentPos=G||this.awaitIdentPos;var Re=this.startNodeAt(p,S);Re.callee=l,Re.arguments=ce,ke&&(Re.optional=Ee),l=this.finishNode(Re,"CallExpression")}else if(this.type===m.backQuote){(Ee||ne)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var Ye=this.startNodeAt(p,S);Ye.tag=l,Ye.quasi=this.parseTemplate({isTagged:!0}),l=this.finishNode(Ye,"TaggedTemplateExpression")}return l},We.parseExprAtom=function(l,p,S){this.type===m.slash&&this.readRegexp();var A,M=this.potentialArrowAt===this.start;switch(this.type){case m._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),A=this.startNode(),this.next(),this.type===m.parenL&&!this.allowDirectSuper&&this.raise(A.start,"super() call outside constructor of a subclass"),this.type!==m.dot&&this.type!==m.bracketL&&this.type!==m.parenL&&this.unexpected(),this.finishNode(A,"Super");case m._this:return A=this.startNode(),this.next(),this.finishNode(A,"ThisExpression");case m.name:var ne=this.start,se=this.startLoc,ke=this.containsEsc,Ee=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!ke&&Ee.name==="async"&&!this.canInsertSemicolon()&&this.eat(m._function))return this.overrideContext(Qe.f_expr),this.parseFunction(this.startNodeAt(ne,se),0,!1,!0,p);if(M&&!this.canInsertSemicolon()){if(this.eat(m.arrow))return this.parseArrowExpression(this.startNodeAt(ne,se),[Ee],!1,p);if(this.options.ecmaVersion>=8&&Ee.name==="async"&&this.type===m.name&&!ke&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return Ee=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(m.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(ne,se),[Ee],!0,p)}return Ee;case m.regexp:var He=this.value;return A=this.parseLiteral(He.value),A.regex={pattern:He.pattern,flags:He.flags},A;case m.num:case m.string:return this.parseLiteral(this.value);case m._null:case m._true:case m._false:return A=this.startNode(),A.value=this.type===m._null?null:this.type===m._true,A.raw=this.type.keyword,this.next(),this.finishNode(A,"Literal");case m.parenL:var Ge=this.start,vt=this.parseParenAndDistinguishExpression(M,p);return l&&(l.parenthesizedAssign<0&&!this.isSimpleAssignTarget(vt)&&(l.parenthesizedAssign=Ge),l.parenthesizedBind<0&&(l.parenthesizedBind=Ge)),vt;case m.bracketL:return A=this.startNode(),this.next(),A.elements=this.parseExprList(m.bracketR,!0,!0,l),this.finishNode(A,"ArrayExpression");case m.braceL:return this.overrideContext(Qe.b_expr),this.parseObj(!1,l);case m._function:return A=this.startNode(),this.next(),this.parseFunction(A,0);case m._class:return this.parseClass(this.startNode(),!1);case m._new:return this.parseNew();case m.backQuote:return this.parseTemplate();case m._import:return this.options.ecmaVersion>=11?this.parseExprImport(S):this.unexpected();default:return this.parseExprAtomDefault()}},We.parseExprAtomDefault=function(){this.unexpected()},We.parseExprImport=function(l){var p=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===m.parenL&&!l)return this.parseDynamicImport(p);if(this.type===m.dot){var S=this.startNodeAt(p.start,p.loc&&p.loc.start);return S.name="import",p.meta=this.finishNode(S,"Identifier"),this.parseImportMeta(p)}else this.unexpected()},We.parseDynamicImport=function(l){if(this.next(),l.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(m.parenR)?l.options=null:(this.expect(m.comma),this.afterTrailingComma(m.parenR)?l.options=null:(l.options=this.parseMaybeAssign(),this.eat(m.parenR)||(this.expect(m.comma),this.afterTrailingComma(m.parenR)||this.unexpected())));else if(!this.eat(m.parenR)){var p=this.start;this.eat(m.comma)&&this.eat(m.parenR)?this.raiseRecoverable(p,"Trailing comma is not allowed in import()"):this.unexpected(p)}return this.finishNode(l,"ImportExpression")},We.parseImportMeta=function(l){this.next();var p=this.containsEsc;return l.property=this.parseIdent(!0),l.property.name!=="meta"&&this.raiseRecoverable(l.property.start,"The only valid meta property for import is 'import.meta'"),p&&this.raiseRecoverable(l.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(l.start,"Cannot use 'import.meta' outside a module"),this.finishNode(l,"MetaProperty")},We.parseLiteral=function(l){var p=this.startNode();return p.value=l,p.raw=this.input.slice(this.start,this.end),p.raw.charCodeAt(p.raw.length-1)===110&&(p.bigint=p.value!=null?p.value.toString():p.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(p,"Literal")},We.parseParenExpression=function(){this.expect(m.parenL);var l=this.parseExpression();return this.expect(m.parenR),l},We.shouldParseArrow=function(l){return!this.canInsertSemicolon()},We.parseParenAndDistinguishExpression=function(l,p){var S=this.start,A=this.startLoc,M,ne=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var se=this.start,ke=this.startLoc,Ee=[],He=!0,Ge=!1,vt=new St,Ft=this.yieldPos,j=this.awaitPos,G;for(this.yieldPos=0,this.awaitPos=0;this.type!==m.parenR;)if(He?He=!1:this.expect(m.comma),ne&&this.afterTrailingComma(m.parenR,!0)){Ge=!0;break}else if(this.type===m.ellipsis){G=this.start,Ee.push(this.parseParenItem(this.parseRestBinding())),this.type===m.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else Ee.push(this.parseMaybeAssign(!1,vt,this.parseParenItem));var ce=this.lastTokEnd,Re=this.lastTokEndLoc;if(this.expect(m.parenR),l&&this.shouldParseArrow(Ee)&&this.eat(m.arrow))return this.checkPatternErrors(vt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Ft,this.awaitPos=j,this.parseParenArrowList(S,A,Ee,p);(!Ee.length||Ge)&&this.unexpected(this.lastTokStart),G&&this.unexpected(G),this.checkExpressionErrors(vt,!0),this.yieldPos=Ft||this.yieldPos,this.awaitPos=j||this.awaitPos,Ee.length>1?(M=this.startNodeAt(se,ke),M.expressions=Ee,this.finishNodeAt(M,"SequenceExpression",ce,Re)):M=Ee[0]}else M=this.parseParenExpression();if(this.options.preserveParens){var Ye=this.startNodeAt(S,A);return Ye.expression=M,this.finishNode(Ye,"ParenthesizedExpression")}else return M},We.parseParenItem=function(l){return l},We.parseParenArrowList=function(l,p,S,A){return this.parseArrowExpression(this.startNodeAt(l,p),S,!1,A)};var Vl=[];We.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var l=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===m.dot){var p=this.startNodeAt(l.start,l.loc&&l.loc.start);p.name="new",l.meta=this.finishNode(p,"Identifier"),this.next();var S=this.containsEsc;return l.property=this.parseIdent(!0),l.property.name!=="target"&&this.raiseRecoverable(l.property.start,"The only valid meta property for new is 'new.target'"),S&&this.raiseRecoverable(l.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(l.start,"'new.target' can only be used in functions and class static block"),this.finishNode(l,"MetaProperty")}var A=this.start,M=this.startLoc;return l.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),A,M,!0,!1),this.eat(m.parenL)?l.arguments=this.parseExprList(m.parenR,this.options.ecmaVersion>=8,!1):l.arguments=Vl,this.finishNode(l,"NewExpression")},We.parseTemplateElement=function(l){var p=l.isTagged,S=this.startNode();return this.type===m.invalidTemplate?(p||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),S.value={raw:this.value.replace(/\r\n?/g,`
|
|
72
|
-
`),cooked:null}):
|
|
73
|
-
`),cooked:this.value},this.next(),S.tail=this.type===m.backQuote,this.finishNode(S,"TemplateElement")},We.parseTemplate=function(l){l===void 0&&(l={});var p=l.isTagged;p===void 0&&(p=!1);var S=this.startNode();this.next(),S.expressions=[];var A=this.parseTemplateElement({isTagged:p});for(S.quasis=[A];!A.tail;)this.type===m.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(m.dollarBraceL),S.expressions.push(this.parseExpression()),this.expect(m.braceR),S.quasis.push(A=this.parseTemplateElement({isTagged:p}));return this.next(),this.finishNode(S,"TemplateLiteral")},We.isAsyncProp=function(l){return!l.computed&&l.key.type==="Identifier"&&l.key.name==="async"&&(this.type===m.name||this.type===m.num||this.type===m.string||this.type===m.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===m.star)&&!T.test(this.input.slice(this.lastTokEnd,this.start))},We.parseObj=function(l,p){var S=this.startNode(),A=!0,M={};for(S.properties=[],this.next();!this.eat(m.braceR);){if(A)A=!1;else if(this.expect(m.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(m.braceR))break;var ne=this.parseProperty(l,p);l||this.checkPropClash(ne,M,p),S.properties.push(ne)}return this.finishNode(S,l?"ObjectPattern":"ObjectExpression")},We.parseProperty=function(l,p){var S=this.startNode(),A,M,ne,se;if(this.options.ecmaVersion>=9&&this.eat(m.ellipsis))return l?(S.argument=this.parseIdent(!1),this.type===m.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(S,"RestElement")):(S.argument=this.parseMaybeAssign(!1,p),this.type===m.comma&&p&&p.trailingComma<0&&(p.trailingComma=this.start),this.finishNode(S,"SpreadElement"));this.options.ecmaVersion>=6&&(S.method=!1,S.shorthand=!1,(l||p)&&(ne=this.start,se=this.startLoc),l||(A=this.eat(m.star)));var ke=this.containsEsc;return this.parsePropertyName(S),!l&&!ke&&this.options.ecmaVersion>=8&&!A&&this.isAsyncProp(S)?(M=!0,A=this.options.ecmaVersion>=9&&this.eat(m.star),this.parsePropertyName(S)):M=!1,this.parsePropertyValue(S,l,A,M,ne,se,p,ke),this.finishNode(S,"Property")},We.parseGetterSetter=function(l){var p=l.key.name;this.parsePropertyName(l),l.value=this.parseMethod(!1),l.kind=p;var S=l.kind==="get"?0:1;if(l.value.params.length!==S){var A=l.value.start;l.kind==="get"?this.raiseRecoverable(A,"getter should have no params"):this.raiseRecoverable(A,"setter should have exactly one param")}else l.kind==="set"&&l.value.params[0].type==="RestElement"&&this.raiseRecoverable(l.value.params[0].start,"Setter cannot use rest params")},We.parsePropertyValue=function(l,p,S,A,M,ne,se,ke){(S||A)&&this.type===m.colon&&this.unexpected(),this.eat(m.colon)?(l.value=p?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,se),l.kind="init"):this.options.ecmaVersion>=6&&this.type===m.parenL?(p&&this.unexpected(),l.method=!0,l.value=this.parseMethod(S,A),l.kind="init"):!p&&!ke&&this.options.ecmaVersion>=5&&!l.computed&&l.key.type==="Identifier"&&(l.key.name==="get"||l.key.name==="set")&&this.type!==m.comma&&this.type!==m.braceR&&this.type!==m.eq?((S||A)&&this.unexpected(),this.parseGetterSetter(l)):this.options.ecmaVersion>=6&&!l.computed&&l.key.type==="Identifier"?((S||A)&&this.unexpected(),this.checkUnreserved(l.key),l.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=M),p?l.value=this.parseMaybeDefault(M,ne,this.copyNode(l.key)):this.type===m.eq&&se?(se.shorthandAssign<0&&(se.shorthandAssign=this.start),l.value=this.parseMaybeDefault(M,ne,this.copyNode(l.key))):l.value=this.copyNode(l.key),l.kind="init",l.shorthand=!0):this.unexpected()},We.parsePropertyName=function(l){if(this.options.ecmaVersion>=6){if(this.eat(m.bracketL))return l.computed=!0,l.key=this.parseMaybeAssign(),this.expect(m.bracketR),l.key;l.computed=!1}return l.key=this.type===m.num||this.type===m.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},We.initFunction=function(l){l.id=null,this.options.ecmaVersion>=6&&(l.generator=l.expression=!1),this.options.ecmaVersion>=8&&(l.async=!1)},We.parseMethod=function(l,p,S){var A=this.startNode(),M=this.yieldPos,ne=this.awaitPos,se=this.awaitIdentPos;return this.initFunction(A),this.options.ecmaVersion>=6&&(A.generator=l),this.options.ecmaVersion>=8&&(A.async=!!p),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ie(p,A.generator)|re|(S?ue:0)),this.expect(m.parenL),A.params=this.parseBindingList(m.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(A,!1,!0,!1),this.yieldPos=M,this.awaitPos=ne,this.awaitIdentPos=se,this.finishNode(A,"FunctionExpression")},We.parseArrowExpression=function(l,p,S,A){var M=this.yieldPos,ne=this.awaitPos,se=this.awaitIdentPos;return this.enterScope(Ie(S,!1)|xe),this.initFunction(l),this.options.ecmaVersion>=8&&(l.async=!!S),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,l.params=this.toAssignableList(p,!0),this.parseFunctionBody(l,!0,!1,A),this.yieldPos=M,this.awaitPos=ne,this.awaitIdentPos=se,this.finishNode(l,"ArrowFunctionExpression")},We.parseFunctionBody=function(l,p,S,A){var M=p&&this.type!==m.braceL,ne=this.strict,se=!1;if(M)l.body=this.parseMaybeAssign(A),l.expression=!0,this.checkParams(l,!1);else{var ke=this.options.ecmaVersion>=7&&!this.isSimpleParamList(l.params);(!ne||ke)&&(se=this.strictDirective(this.end),se&&ke&&this.raiseRecoverable(l.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var Ee=this.labels;this.labels=[],se&&(this.strict=!0),this.checkParams(l,!ne&&!se&&!p&&!S&&this.isSimpleParamList(l.params)),this.strict&&l.id&&this.checkLValSimple(l.id,ge),l.body=this.parseBlock(!1,void 0,se&&!ne),l.expression=!1,this.adaptDirectivePrologue(l.body.body),this.labels=Ee}this.exitScope()},We.isSimpleParamList=function(l){for(var p=0,S=l;p<S.length;p+=1){var A=S[p];if(A.type!=="Identifier")return!1}return!0},We.checkParams=function(l,p){for(var S=Object.create(null),A=0,M=l.params;A<M.length;A+=1){var ne=M[A];this.checkLValInnerPattern(ne,_e,p?null:S)}},We.parseExprList=function(l,p,S,A){for(var M=[],ne=!0;!this.eat(l);){if(ne)ne=!1;else if(this.expect(m.comma),p&&this.afterTrailingComma(l))break;var se=void 0;S&&this.type===m.comma?se=null:this.type===m.ellipsis?(se=this.parseSpread(A),A&&this.type===m.comma&&A.trailingComma<0&&(A.trailingComma=this.start)):se=this.parseMaybeAssign(!1,A),M.push(se)}return M},We.checkUnreserved=function(l){var p=l.start,S=l.end,A=l.name;if(this.inGenerator&&A==="yield"&&this.raiseRecoverable(p,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&A==="await"&&this.raiseRecoverable(p,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Pe)&&A==="arguments"&&this.raiseRecoverable(p,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(A==="arguments"||A==="await")&&this.raise(p,"Cannot use "+A+" in class static initialization block"),this.keywords.test(A)&&this.raise(p,"Unexpected keyword '"+A+"'"),!(this.options.ecmaVersion<6&&this.input.slice(p,S).indexOf("\\")!==-1)){var M=this.strict?this.reservedWordsStrict:this.reservedWords;M.test(A)&&(!this.inAsync&&A==="await"&&this.raiseRecoverable(p,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(p,"The keyword '"+A+"' is reserved"))}},We.parseIdent=function(l){var p=this.parseIdentNode();return this.next(!!l),this.finishNode(p,"Identifier"),l||(this.checkUnreserved(p),p.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=p.start)),p},We.parseIdentNode=function(){var l=this.startNode();return this.type===m.name?l.name=this.value:this.type.keyword?(l.name=this.type.keyword,(l.name==="class"||l.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=m.name):this.unexpected(),l},We.parsePrivateIdent=function(){var l=this.startNode();return this.type===m.privateId?l.name=this.value:this.unexpected(),this.next(),this.finishNode(l,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(l.start,"Private field '#"+l.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(l)),l},We.parseYield=function(l){this.yieldPos||(this.yieldPos=this.start);var p=this.startNode();return this.next(),this.type===m.semi||this.canInsertSemicolon()||this.type!==m.star&&!this.type.startsExpr?(p.delegate=!1,p.argument=null):(p.delegate=this.eat(m.star),p.argument=this.parseMaybeAssign(l)),this.finishNode(p,"YieldExpression")},We.parseAwait=function(l){this.awaitPos||(this.awaitPos=this.start);var p=this.startNode();return this.next(),p.argument=this.parseMaybeUnary(null,!0,!1,l),this.finishNode(p,"AwaitExpression")};var nr=pe.prototype;nr.raise=function(l,p){var S=ee(this.input,l);p+=" ("+S.line+":"+S.column+")",this.sourceFile&&(p+=" in "+this.sourceFile);var A=new SyntaxError(p);throw A.pos=l,A.loc=S,A.raisedAt=this.pos,A},nr.raiseRecoverable=nr.raise,nr.curPosition=function(){if(this.options.locations)return new ae(this.curLine,this.pos-this.lineStart)};var Hr=pe.prototype,Ml=function(p){this.flags=p,this.var=[],this.lexical=[],this.functions=[]};Hr.enterScope=function(l){this.scopeStack.push(new Ml(l))},Hr.exitScope=function(){this.scopeStack.pop()},Hr.treatFunctionsAsVarInScope=function(l){return l.flags&de||!this.inModule&&l.flags&oe},Hr.declareName=function(l,p,S){var A=!1;if(p===Ae){var M=this.currentScope();A=M.lexical.indexOf(l)>-1||M.functions.indexOf(l)>-1||M.var.indexOf(l)>-1,M.lexical.push(l),this.inModule&&M.flags&oe&&delete this.undefinedExports[l]}else if(p===Nt){var ne=this.currentScope();ne.lexical.push(l)}else if(p===Be){var se=this.currentScope();this.treatFunctionsAsVar?A=se.lexical.indexOf(l)>-1:A=se.lexical.indexOf(l)>-1||se.var.indexOf(l)>-1,se.functions.push(l)}else for(var ke=this.scopeStack.length-1;ke>=0;--ke){var Ee=this.scopeStack[ke];if(Ee.lexical.indexOf(l)>-1&&!(Ee.flags&q&&Ee.lexical[0]===l)||!this.treatFunctionsAsVarInScope(Ee)&&Ee.functions.indexOf(l)>-1){A=!0;break}if(Ee.var.push(l),this.inModule&&Ee.flags&oe&&delete this.undefinedExports[l],Ee.flags&Pe)break}A&&this.raiseRecoverable(S,"Identifier '"+l+"' has already been declared")},Hr.checkLocalExport=function(l){this.scopeStack[0].lexical.indexOf(l.name)===-1&&this.scopeStack[0].var.indexOf(l.name)===-1&&(this.undefinedExports[l.name]=l)},Hr.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Hr.currentVarScope=function(){for(var l=this.scopeStack.length-1;;l--){var p=this.scopeStack[l];if(p.flags&(Pe|Ce|ve))return p}},Hr.currentThisScope=function(){for(var l=this.scopeStack.length-1;;l--){var p=this.scopeStack[l];if(p.flags&(Pe|Ce|ve)&&!(p.flags&xe))return p}};var Fn=function(p,S,A){this.type="",this.start=S,this.end=0,p.options.locations&&(this.loc=new N(p,A)),p.options.directSourceFile&&(this.sourceFile=p.options.directSourceFile),p.options.ranges&&(this.range=[S,0])},Bn=pe.prototype;Bn.startNode=function(){return new Fn(this,this.start,this.startLoc)},Bn.startNodeAt=function(l,p){return new Fn(this,l,p)};function eo(l,p,S,A){return l.type=p,l.end=S,this.options.locations&&(l.loc.end=A),this.options.ranges&&(l.range[1]=S),l}Bn.finishNode=function(l,p){return eo.call(this,l,p,this.lastTokEnd,this.lastTokEndLoc)},Bn.finishNodeAt=function(l,p,S,A){return eo.call(this,l,p,S,A)},Bn.copyNode=function(l){var p=new Fn(this,l.start,this.startLoc);for(var S in l)p[S]=l[S];return p};var fn="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",to="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ro=to+" Extended_Pictographic",no=ro,io=no+" EBase EComp EMod EPres ExtPict",ao=io,gn=ao,jl={9:to,10:ro,11:no,12:io,13:ao,14:gn},Fl="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Bl={9:"",10:"",11:"",12:"",13:"",14:Fl},oo="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",so="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",lo=so+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",si=lo+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",uo=si+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",zn=uo+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Gi=zn+" "+fn,zl={9:so,10:lo,11:si,12:uo,13:zn,14:Gi},Hn={};function co(l){var p=Hn[l]={binary:fe(jl[l]+" "+oo),binaryOfStrings:fe(Bl[l]),nonBinary:{General_Category:fe(oo),Script:fe(zl[l])}};p.nonBinary.Script_Extensions=p.nonBinary.Script,p.nonBinary.gc=p.nonBinary.General_Category,p.nonBinary.sc=p.nonBinary.Script,p.nonBinary.scx=p.nonBinary.Script_Extensions}for(var Ji=0,ho=[9,10,11,12,13,14];Ji<ho.length;Ji+=1){var Hl=ho[Ji];co(Hl)}var Le=pe.prototype,li=function(p,S){this.parent=p,this.base=S||this};li.prototype.separatedFrom=function(p){for(var S=this;S;S=S.parent)for(var A=p;A;A=A.parent)if(S.base===A.base&&S!==A)return!0;return!1},li.prototype.sibling=function(){return new li(this.parent,this.base)};var kr=function(p){this.parser=p,this.validFlags="gim"+(p.options.ecmaVersion>=6?"uy":"")+(p.options.ecmaVersion>=9?"s":"")+(p.options.ecmaVersion>=13?"d":"")+(p.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Hn[p.options.ecmaVersion>=14?14:p.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};kr.prototype.reset=function(p,S,A){var M=A.indexOf("v")!==-1,ne=A.indexOf("u")!==-1;this.start=p|0,this.source=S+"",this.flags=A,M&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=ne&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=ne&&this.parser.options.ecmaVersion>=9)},kr.prototype.raise=function(p){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+p)},kr.prototype.at=function(p,S){S===void 0&&(S=!1);var A=this.source,M=A.length;if(p>=M)return-1;var ne=A.charCodeAt(p);if(!(S||this.switchU)||ne<=55295||ne>=57344||p+1>=M)return ne;var se=A.charCodeAt(p+1);return se>=56320&&se<=57343?(ne<<10)+se-56613888:ne},kr.prototype.nextIndex=function(p,S){S===void 0&&(S=!1);var A=this.source,M=A.length;if(p>=M)return M;var ne=A.charCodeAt(p),se;return!(S||this.switchU)||ne<=55295||ne>=57344||p+1>=M||(se=A.charCodeAt(p+1))<56320||se>57343?p+1:p+2},kr.prototype.current=function(p){return p===void 0&&(p=!1),this.at(this.pos,p)},kr.prototype.lookahead=function(p){return p===void 0&&(p=!1),this.at(this.nextIndex(this.pos,p),p)},kr.prototype.advance=function(p){p===void 0&&(p=!1),this.pos=this.nextIndex(this.pos,p)},kr.prototype.eat=function(p,S){return S===void 0&&(S=!1),this.current(S)===p?(this.advance(S),!0):!1},kr.prototype.eatChars=function(p,S){S===void 0&&(S=!1);for(var A=this.pos,M=0,ne=p;M<ne.length;M+=1){var se=ne[M],ke=this.at(A,S);if(ke===-1||ke!==se)return!1;A=this.nextIndex(A,S)}return this.pos=A,!0},Le.validateRegExpFlags=function(l){for(var p=l.validFlags,S=l.flags,A=!1,M=!1,ne=0;ne<S.length;ne++){var se=S.charAt(ne);p.indexOf(se)===-1&&this.raise(l.start,"Invalid regular expression flag"),S.indexOf(se,ne+1)>-1&&this.raise(l.start,"Duplicate regular expression flag"),se==="u"&&(A=!0),se==="v"&&(M=!0)}this.options.ecmaVersion>=15&&A&&M&&this.raise(l.start,"Invalid regular expression flag")};function Wl(l){for(var p in l)return!0;return!1}Le.validateRegExpPattern=function(l){this.regexp_pattern(l),!l.switchN&&this.options.ecmaVersion>=9&&Wl(l.groupNames)&&(l.switchN=!0,this.regexp_pattern(l))},Le.regexp_pattern=function(l){l.pos=0,l.lastIntValue=0,l.lastStringValue="",l.lastAssertionIsQuantifiable=!1,l.numCapturingParens=0,l.maxBackReference=0,l.groupNames=Object.create(null),l.backReferenceNames.length=0,l.branchID=null,this.regexp_disjunction(l),l.pos!==l.source.length&&(l.eat(41)&&l.raise("Unmatched ')'"),(l.eat(93)||l.eat(125))&&l.raise("Lone quantifier brackets")),l.maxBackReference>l.numCapturingParens&&l.raise("Invalid escape");for(var p=0,S=l.backReferenceNames;p<S.length;p+=1){var A=S[p];l.groupNames[A]||l.raise("Invalid named capture referenced")}},Le.regexp_disjunction=function(l){var p=this.options.ecmaVersion>=16;for(p&&(l.branchID=new li(l.branchID,null)),this.regexp_alternative(l);l.eat(124);)p&&(l.branchID=l.branchID.sibling()),this.regexp_alternative(l);p&&(l.branchID=l.branchID.parent),this.regexp_eatQuantifier(l,!0)&&l.raise("Nothing to repeat"),l.eat(123)&&l.raise("Lone quantifier brackets")},Le.regexp_alternative=function(l){for(;l.pos<l.source.length&&this.regexp_eatTerm(l););},Le.regexp_eatTerm=function(l){return this.regexp_eatAssertion(l)?(l.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(l)&&l.switchU&&l.raise("Invalid quantifier"),!0):(l.switchU?this.regexp_eatAtom(l):this.regexp_eatExtendedAtom(l))?(this.regexp_eatQuantifier(l),!0):!1},Le.regexp_eatAssertion=function(l){var p=l.pos;if(l.lastAssertionIsQuantifiable=!1,l.eat(94)||l.eat(36))return!0;if(l.eat(92)){if(l.eat(66)||l.eat(98))return!0;l.pos=p}if(l.eat(40)&&l.eat(63)){var S=!1;if(this.options.ecmaVersion>=9&&(S=l.eat(60)),l.eat(61)||l.eat(33))return this.regexp_disjunction(l),l.eat(41)||l.raise("Unterminated group"),l.lastAssertionIsQuantifiable=!S,!0}return l.pos=p,!1},Le.regexp_eatQuantifier=function(l,p){return p===void 0&&(p=!1),this.regexp_eatQuantifierPrefix(l,p)?(l.eat(63),!0):!1},Le.regexp_eatQuantifierPrefix=function(l,p){return l.eat(42)||l.eat(43)||l.eat(63)||this.regexp_eatBracedQuantifier(l,p)},Le.regexp_eatBracedQuantifier=function(l,p){var S=l.pos;if(l.eat(123)){var A=0,M=-1;if(this.regexp_eatDecimalDigits(l)&&(A=l.lastIntValue,l.eat(44)&&this.regexp_eatDecimalDigits(l)&&(M=l.lastIntValue),l.eat(125)))return M!==-1&&M<A&&!p&&l.raise("numbers out of order in {} quantifier"),!0;l.switchU&&!p&&l.raise("Incomplete quantifier"),l.pos=S}return!1},Le.regexp_eatAtom=function(l){return this.regexp_eatPatternCharacters(l)||l.eat(46)||this.regexp_eatReverseSolidusAtomEscape(l)||this.regexp_eatCharacterClass(l)||this.regexp_eatUncapturingGroup(l)||this.regexp_eatCapturingGroup(l)},Le.regexp_eatReverseSolidusAtomEscape=function(l){var p=l.pos;if(l.eat(92)){if(this.regexp_eatAtomEscape(l))return!0;l.pos=p}return!1},Le.regexp_eatUncapturingGroup=function(l){var p=l.pos;if(l.eat(40)){if(l.eat(63)){if(this.options.ecmaVersion>=16){var S=this.regexp_eatModifiers(l),A=l.eat(45);if(S||A){for(var M=0;M<S.length;M++){var ne=S.charAt(M);S.indexOf(ne,M+1)>-1&&l.raise("Duplicate regular expression modifiers")}if(A){var se=this.regexp_eatModifiers(l);!S&&!se&&l.current()===58&&l.raise("Invalid regular expression modifiers");for(var ke=0;ke<se.length;ke++){var Ee=se.charAt(ke);(se.indexOf(Ee,ke+1)>-1||S.indexOf(Ee)>-1)&&l.raise("Duplicate regular expression modifiers")}}}}if(l.eat(58)){if(this.regexp_disjunction(l),l.eat(41))return!0;l.raise("Unterminated group")}}l.pos=p}return!1},Le.regexp_eatCapturingGroup=function(l){if(l.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(l):l.current()===63&&l.raise("Invalid group"),this.regexp_disjunction(l),l.eat(41))return l.numCapturingParens+=1,!0;l.raise("Unterminated group")}return!1},Le.regexp_eatModifiers=function(l){for(var p="",S=0;(S=l.current())!==-1&&Ul(S);)p+=E(S),l.advance();return p};function Ul(l){return l===105||l===109||l===115}Le.regexp_eatExtendedAtom=function(l){return l.eat(46)||this.regexp_eatReverseSolidusAtomEscape(l)||this.regexp_eatCharacterClass(l)||this.regexp_eatUncapturingGroup(l)||this.regexp_eatCapturingGroup(l)||this.regexp_eatInvalidBracedQuantifier(l)||this.regexp_eatExtendedPatternCharacter(l)},Le.regexp_eatInvalidBracedQuantifier=function(l){return this.regexp_eatBracedQuantifier(l,!0)&&l.raise("Nothing to repeat"),!1},Le.regexp_eatSyntaxCharacter=function(l){var p=l.current();return po(p)?(l.lastIntValue=p,l.advance(),!0):!1};function po(l){return l===36||l>=40&&l<=43||l===46||l===63||l>=91&&l<=94||l>=123&&l<=125}Le.regexp_eatPatternCharacters=function(l){for(var p=l.pos,S=0;(S=l.current())!==-1&&!po(S);)l.advance();return l.pos!==p},Le.regexp_eatExtendedPatternCharacter=function(l){var p=l.current();return p!==-1&&p!==36&&!(p>=40&&p<=43)&&p!==46&&p!==63&&p!==91&&p!==94&&p!==124?(l.advance(),!0):!1},Le.regexp_groupSpecifier=function(l){if(l.eat(63)){this.regexp_eatGroupName(l)||l.raise("Invalid group");var p=this.options.ecmaVersion>=16,S=l.groupNames[l.lastStringValue];if(S)if(p)for(var A=0,M=S;A<M.length;A+=1){var ne=M[A];ne.separatedFrom(l.branchID)||l.raise("Duplicate capture group name")}else l.raise("Duplicate capture group name");p?(S||(l.groupNames[l.lastStringValue]=[])).push(l.branchID):l.groupNames[l.lastStringValue]=!0}},Le.regexp_eatGroupName=function(l){if(l.lastStringValue="",l.eat(60)){if(this.regexp_eatRegExpIdentifierName(l)&&l.eat(62))return!0;l.raise("Invalid capture group name")}return!1},Le.regexp_eatRegExpIdentifierName=function(l){if(l.lastStringValue="",this.regexp_eatRegExpIdentifierStart(l)){for(l.lastStringValue+=E(l.lastIntValue);this.regexp_eatRegExpIdentifierPart(l);)l.lastStringValue+=E(l.lastIntValue);return!0}return!1},Le.regexp_eatRegExpIdentifierStart=function(l){var p=l.pos,S=this.options.ecmaVersion>=11,A=l.current(S);return l.advance(S),A===92&&this.regexp_eatRegExpUnicodeEscapeSequence(l,S)&&(A=l.lastIntValue),$l(A)?(l.lastIntValue=A,!0):(l.pos=p,!1)};function $l(l){return x(l,!0)||l===36||l===95}Le.regexp_eatRegExpIdentifierPart=function(l){var p=l.pos,S=this.options.ecmaVersion>=11,A=l.current(S);return l.advance(S),A===92&&this.regexp_eatRegExpUnicodeEscapeSequence(l,S)&&(A=l.lastIntValue),ql(A)?(l.lastIntValue=A,!0):(l.pos=p,!1)};function ql(l){return v(l,!0)||l===36||l===95||l===8204||l===8205}Le.regexp_eatAtomEscape=function(l){return this.regexp_eatBackReference(l)||this.regexp_eatCharacterClassEscape(l)||this.regexp_eatCharacterEscape(l)||l.switchN&&this.regexp_eatKGroupName(l)?!0:(l.switchU&&(l.current()===99&&l.raise("Invalid unicode escape"),l.raise("Invalid escape")),!1)},Le.regexp_eatBackReference=function(l){var p=l.pos;if(this.regexp_eatDecimalEscape(l)){var S=l.lastIntValue;if(l.switchU)return S>l.maxBackReference&&(l.maxBackReference=S),!0;if(S<=l.numCapturingParens)return!0;l.pos=p}return!1},Le.regexp_eatKGroupName=function(l){if(l.eat(107)){if(this.regexp_eatGroupName(l))return l.backReferenceNames.push(l.lastStringValue),!0;l.raise("Invalid named reference")}return!1},Le.regexp_eatCharacterEscape=function(l){return this.regexp_eatControlEscape(l)||this.regexp_eatCControlLetter(l)||this.regexp_eatZero(l)||this.regexp_eatHexEscapeSequence(l)||this.regexp_eatRegExpUnicodeEscapeSequence(l,!1)||!l.switchU&&this.regexp_eatLegacyOctalEscapeSequence(l)||this.regexp_eatIdentityEscape(l)},Le.regexp_eatCControlLetter=function(l){var p=l.pos;if(l.eat(99)){if(this.regexp_eatControlLetter(l))return!0;l.pos=p}return!1},Le.regexp_eatZero=function(l){return l.current()===48&&!Wn(l.lookahead())?(l.lastIntValue=0,l.advance(),!0):!1},Le.regexp_eatControlEscape=function(l){var p=l.current();return p===116?(l.lastIntValue=9,l.advance(),!0):p===110?(l.lastIntValue=10,l.advance(),!0):p===118?(l.lastIntValue=11,l.advance(),!0):p===102?(l.lastIntValue=12,l.advance(),!0):p===114?(l.lastIntValue=13,l.advance(),!0):!1},Le.regexp_eatControlLetter=function(l){var p=l.current();return fo(p)?(l.lastIntValue=p%32,l.advance(),!0):!1};function fo(l){return l>=65&&l<=90||l>=97&&l<=122}Le.regexp_eatRegExpUnicodeEscapeSequence=function(l,p){p===void 0&&(p=!1);var S=l.pos,A=p||l.switchU;if(l.eat(117)){if(this.regexp_eatFixedHexDigits(l,4)){var M=l.lastIntValue;if(A&&M>=55296&&M<=56319){var ne=l.pos;if(l.eat(92)&&l.eat(117)&&this.regexp_eatFixedHexDigits(l,4)){var se=l.lastIntValue;if(se>=56320&&se<=57343)return l.lastIntValue=(M-55296)*1024+(se-56320)+65536,!0}l.pos=ne,l.lastIntValue=M}return!0}if(A&&l.eat(123)&&this.regexp_eatHexDigits(l)&&l.eat(125)&&Kl(l.lastIntValue))return!0;A&&l.raise("Invalid unicode escape"),l.pos=S}return!1};function Kl(l){return l>=0&&l<=1114111}Le.regexp_eatIdentityEscape=function(l){if(l.switchU)return this.regexp_eatSyntaxCharacter(l)?!0:l.eat(47)?(l.lastIntValue=47,!0):!1;var p=l.current();return p!==99&&(!l.switchN||p!==107)?(l.lastIntValue=p,l.advance(),!0):!1},Le.regexp_eatDecimalEscape=function(l){l.lastIntValue=0;var p=l.current();if(p>=49&&p<=57){do l.lastIntValue=10*l.lastIntValue+(p-48),l.advance();while((p=l.current())>=48&&p<=57);return!0}return!1};var go=0,ir=1,$t=2;Le.regexp_eatCharacterClassEscape=function(l){var p=l.current();if(Gl(p))return l.lastIntValue=-1,l.advance(),ir;var S=!1;if(l.switchU&&this.options.ecmaVersion>=9&&((S=p===80)||p===112)){l.lastIntValue=-1,l.advance();var A;if(l.eat(123)&&(A=this.regexp_eatUnicodePropertyValueExpression(l))&&l.eat(125))return S&&A===$t&&l.raise("Invalid property name"),A;l.raise("Invalid property name")}return go};function Gl(l){return l===100||l===68||l===115||l===83||l===119||l===87}Le.regexp_eatUnicodePropertyValueExpression=function(l){var p=l.pos;if(this.regexp_eatUnicodePropertyName(l)&&l.eat(61)){var S=l.lastStringValue;if(this.regexp_eatUnicodePropertyValue(l)){var A=l.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(l,S,A),ir}}if(l.pos=p,this.regexp_eatLoneUnicodePropertyNameOrValue(l)){var M=l.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(l,M)}return go},Le.regexp_validateUnicodePropertyNameAndValue=function(l,p,S){Z(l.unicodeProperties.nonBinary,p)||l.raise("Invalid property name"),l.unicodeProperties.nonBinary[p].test(S)||l.raise("Invalid property value")},Le.regexp_validateUnicodePropertyNameOrValue=function(l,p){if(l.unicodeProperties.binary.test(p))return ir;if(l.switchV&&l.unicodeProperties.binaryOfStrings.test(p))return $t;l.raise("Invalid property name")},Le.regexp_eatUnicodePropertyName=function(l){var p=0;for(l.lastStringValue="";mo(p=l.current());)l.lastStringValue+=E(p),l.advance();return l.lastStringValue!==""};function mo(l){return fo(l)||l===95}Le.regexp_eatUnicodePropertyValue=function(l){var p=0;for(l.lastStringValue="";vo(p=l.current());)l.lastStringValue+=E(p),l.advance();return l.lastStringValue!==""};function vo(l){return mo(l)||Wn(l)}Le.regexp_eatLoneUnicodePropertyNameOrValue=function(l){return this.regexp_eatUnicodePropertyValue(l)},Le.regexp_eatCharacterClass=function(l){if(l.eat(91)){var p=l.eat(94),S=this.regexp_classContents(l);return l.eat(93)||l.raise("Unterminated character class"),p&&S===$t&&l.raise("Negated character class may contain strings"),!0}return!1},Le.regexp_classContents=function(l){return l.current()===93?ir:l.switchV?this.regexp_classSetExpression(l):(this.regexp_nonEmptyClassRanges(l),ir)},Le.regexp_nonEmptyClassRanges=function(l){for(;this.regexp_eatClassAtom(l);){var p=l.lastIntValue;if(l.eat(45)&&this.regexp_eatClassAtom(l)){var S=l.lastIntValue;l.switchU&&(p===-1||S===-1)&&l.raise("Invalid character class"),p!==-1&&S!==-1&&p>S&&l.raise("Range out of order in character class")}}},Le.regexp_eatClassAtom=function(l){var p=l.pos;if(l.eat(92)){if(this.regexp_eatClassEscape(l))return!0;if(l.switchU){var S=l.current();(S===99||yo(S))&&l.raise("Invalid class escape"),l.raise("Invalid escape")}l.pos=p}var A=l.current();return A!==93?(l.lastIntValue=A,l.advance(),!0):!1},Le.regexp_eatClassEscape=function(l){var p=l.pos;if(l.eat(98))return l.lastIntValue=8,!0;if(l.switchU&&l.eat(45))return l.lastIntValue=45,!0;if(!l.switchU&&l.eat(99)){if(this.regexp_eatClassControlLetter(l))return!0;l.pos=p}return this.regexp_eatCharacterClassEscape(l)||this.regexp_eatCharacterEscape(l)},Le.regexp_classSetExpression=function(l){var p=ir,S;if(!this.regexp_eatClassSetRange(l))if(S=this.regexp_eatClassSetOperand(l)){S===$t&&(p=$t);for(var A=l.pos;l.eatChars([38,38]);){if(l.current()!==38&&(S=this.regexp_eatClassSetOperand(l))){S!==$t&&(p=ir);continue}l.raise("Invalid character in character class")}if(A!==l.pos)return p;for(;l.eatChars([45,45]);)this.regexp_eatClassSetOperand(l)||l.raise("Invalid character in character class");if(A!==l.pos)return p}else l.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(l)){if(S=this.regexp_eatClassSetOperand(l),!S)return p;S===$t&&(p=$t)}},Le.regexp_eatClassSetRange=function(l){var p=l.pos;if(this.regexp_eatClassSetCharacter(l)){var S=l.lastIntValue;if(l.eat(45)&&this.regexp_eatClassSetCharacter(l)){var A=l.lastIntValue;return S!==-1&&A!==-1&&S>A&&l.raise("Range out of order in character class"),!0}l.pos=p}return!1},Le.regexp_eatClassSetOperand=function(l){return this.regexp_eatClassSetCharacter(l)?ir:this.regexp_eatClassStringDisjunction(l)||this.regexp_eatNestedClass(l)},Le.regexp_eatNestedClass=function(l){var p=l.pos;if(l.eat(91)){var S=l.eat(94),A=this.regexp_classContents(l);if(l.eat(93))return S&&A===$t&&l.raise("Negated character class may contain strings"),A;l.pos=p}if(l.eat(92)){var M=this.regexp_eatCharacterClassEscape(l);if(M)return M;l.pos=p}return null},Le.regexp_eatClassStringDisjunction=function(l){var p=l.pos;if(l.eatChars([92,113])){if(l.eat(123)){var S=this.regexp_classStringDisjunctionContents(l);if(l.eat(125))return S}else l.raise("Invalid escape");l.pos=p}return null},Le.regexp_classStringDisjunctionContents=function(l){for(var p=this.regexp_classString(l);l.eat(124);)this.regexp_classString(l)===$t&&(p=$t);return p},Le.regexp_classString=function(l){for(var p=0;this.regexp_eatClassSetCharacter(l);)p++;return p===1?ir:$t},Le.regexp_eatClassSetCharacter=function(l){var p=l.pos;if(l.eat(92))return this.regexp_eatCharacterEscape(l)||this.regexp_eatClassSetReservedPunctuator(l)?!0:l.eat(98)?(l.lastIntValue=8,!0):(l.pos=p,!1);var S=l.current();return S<0||S===l.lookahead()&&Jl(S)||Xl(S)?!1:(l.advance(),l.lastIntValue=S,!0)};function Jl(l){return l===33||l>=35&&l<=38||l>=42&&l<=44||l===46||l>=58&&l<=64||l===94||l===96||l===126}function Xl(l){return l===40||l===41||l===45||l===47||l>=91&&l<=93||l>=123&&l<=125}Le.regexp_eatClassSetReservedPunctuator=function(l){var p=l.current();return Yl(p)?(l.lastIntValue=p,l.advance(),!0):!1};function Yl(l){return l===33||l===35||l===37||l===38||l===44||l===45||l>=58&&l<=62||l===64||l===96||l===126}Le.regexp_eatClassControlLetter=function(l){var p=l.current();return Wn(p)||p===95?(l.lastIntValue=p%32,l.advance(),!0):!1},Le.regexp_eatHexEscapeSequence=function(l){var p=l.pos;if(l.eat(120)){if(this.regexp_eatFixedHexDigits(l,2))return!0;l.switchU&&l.raise("Invalid escape"),l.pos=p}return!1},Le.regexp_eatDecimalDigits=function(l){var p=l.pos,S=0;for(l.lastIntValue=0;Wn(S=l.current());)l.lastIntValue=10*l.lastIntValue+(S-48),l.advance();return l.pos!==p};function Wn(l){return l>=48&&l<=57}Le.regexp_eatHexDigits=function(l){var p=l.pos,S=0;for(l.lastIntValue=0;xo(S=l.current());)l.lastIntValue=16*l.lastIntValue+bo(S),l.advance();return l.pos!==p};function xo(l){return l>=48&&l<=57||l>=65&&l<=70||l>=97&&l<=102}function bo(l){return l>=65&&l<=70?10+(l-65):l>=97&&l<=102?10+(l-97):l-48}Le.regexp_eatLegacyOctalEscapeSequence=function(l){if(this.regexp_eatOctalDigit(l)){var p=l.lastIntValue;if(this.regexp_eatOctalDigit(l)){var S=l.lastIntValue;p<=3&&this.regexp_eatOctalDigit(l)?l.lastIntValue=p*64+S*8+l.lastIntValue:l.lastIntValue=p*8+S}else l.lastIntValue=p;return!0}return!1},Le.regexp_eatOctalDigit=function(l){var p=l.current();return yo(p)?(l.lastIntValue=p-48,l.advance(),!0):(l.lastIntValue=0,!1)};function yo(l){return l>=48&&l<=55}Le.regexp_eatFixedHexDigits=function(l,p){var S=l.pos;l.lastIntValue=0;for(var A=0;A<p;++A){var M=l.current();if(!xo(M))return l.pos=S,!1;l.lastIntValue=16*l.lastIntValue+bo(M),l.advance()}return!0};var mn=function(p){this.type=p.type,this.value=p.value,this.start=p.start,this.end=p.end,p.options.locations&&(this.loc=new N(p,p.startLoc,p.endLoc)),p.options.ranges&&(this.range=[p.start,p.end])},tt=pe.prototype;tt.next=function(l){!l&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new mn(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},tt.getToken=function(){return this.next(),new mn(this)},typeof Symbol<"u"&&(tt[Symbol.iterator]=function(){var l=this;return{next:function(){var p=l.getToken();return{done:p.type===m.eof,value:p}}}}),tt.nextToken=function(){var l=this.curContext();if((!l||!l.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(m.eof);if(l.override)return l.override(this);this.readToken(this.fullCharCodeAtPos())},tt.readToken=function(l){return x(l,this.options.ecmaVersion>=6)||l===92?this.readWord():this.getTokenFromCode(l)},tt.fullCharCodeAtPos=function(){var l=this.input.charCodeAt(this.pos);if(l<=55295||l>=56320)return l;var p=this.input.charCodeAt(this.pos+1);return p<=56319||p>=57344?l:(l<<10)+p-56613888},tt.skipBlockComment=function(){var l=this.options.onComment&&this.curPosition(),p=this.pos,S=this.input.indexOf("*/",this.pos+=2);if(S===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=S+2,this.options.locations)for(var A=void 0,M=p;(A=O(this.input,M,this.pos))>-1;)++this.curLine,M=this.lineStart=A;this.options.onComment&&this.options.onComment(!0,this.input.slice(p+2,S),p,this.pos,l,this.curPosition())},tt.skipLineComment=function(l){for(var p=this.pos,S=this.options.onComment&&this.curPosition(),A=this.input.charCodeAt(this.pos+=l);this.pos<this.input.length&&!V(A);)A=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(p+l,this.pos),p,this.pos,S,this.curPosition())},tt.skipSpace=function(){e:for(;this.pos<this.input.length;){var l=this.input.charCodeAt(this.pos);switch(l){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(l>8&&l<14||l>=5760&&B.test(String.fromCharCode(l)))++this.pos;else break e}}},tt.finishToken=function(l,p){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var S=this.type;this.type=l,this.value=p,this.updateContext(S)},tt.readToken_dot=function(){var l=this.input.charCodeAt(this.pos+1);if(l>=48&&l<=57)return this.readNumber(!0);var p=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&l===46&&p===46?(this.pos+=3,this.finishToken(m.ellipsis)):(++this.pos,this.finishToken(m.dot))},tt.readToken_slash=function(){var l=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):l===61?this.finishOp(m.assign,2):this.finishOp(m.slash,1)},tt.readToken_mult_modulo_exp=function(l){var p=this.input.charCodeAt(this.pos+1),S=1,A=l===42?m.star:m.modulo;return this.options.ecmaVersion>=7&&l===42&&p===42&&(++S,A=m.starstar,p=this.input.charCodeAt(this.pos+2)),p===61?this.finishOp(m.assign,S+1):this.finishOp(A,S)},tt.readToken_pipe_amp=function(l){var p=this.input.charCodeAt(this.pos+1);if(p===l){if(this.options.ecmaVersion>=12){var S=this.input.charCodeAt(this.pos+2);if(S===61)return this.finishOp(m.assign,3)}return this.finishOp(l===124?m.logicalOR:m.logicalAND,2)}return p===61?this.finishOp(m.assign,2):this.finishOp(l===124?m.bitwiseOR:m.bitwiseAND,1)},tt.readToken_caret=function(){var l=this.input.charCodeAt(this.pos+1);return l===61?this.finishOp(m.assign,2):this.finishOp(m.bitwiseXOR,1)},tt.readToken_plus_min=function(l){var p=this.input.charCodeAt(this.pos+1);return p===l?p===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||T.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(m.incDec,2):p===61?this.finishOp(m.assign,2):this.finishOp(m.plusMin,1)},tt.readToken_lt_gt=function(l){var p=this.input.charCodeAt(this.pos+1),S=1;return p===l?(S=l===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+S)===61?this.finishOp(m.assign,S+1):this.finishOp(m.bitShift,S)):p===33&&l===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(p===61&&(S=2),this.finishOp(m.relational,S))},tt.readToken_eq_excl=function(l){var p=this.input.charCodeAt(this.pos+1);return p===61?this.finishOp(m.equality,this.input.charCodeAt(this.pos+2)===61?3:2):l===61&&p===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(m.arrow)):this.finishOp(l===61?m.eq:m.prefix,1)},tt.readToken_question=function(){var l=this.options.ecmaVersion;if(l>=11){var p=this.input.charCodeAt(this.pos+1);if(p===46){var S=this.input.charCodeAt(this.pos+2);if(S<48||S>57)return this.finishOp(m.questionDot,2)}if(p===63){if(l>=12){var A=this.input.charCodeAt(this.pos+2);if(A===61)return this.finishOp(m.assign,3)}return this.finishOp(m.coalesce,2)}}return this.finishOp(m.question,1)},tt.readToken_numberSign=function(){var l=this.options.ecmaVersion,p=35;if(l>=13&&(++this.pos,p=this.fullCharCodeAtPos(),x(p,!0)||p===92))return this.finishToken(m.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+E(p)+"'")},tt.getTokenFromCode=function(l){switch(l){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(m.parenL);case 41:return++this.pos,this.finishToken(m.parenR);case 59:return++this.pos,this.finishToken(m.semi);case 44:return++this.pos,this.finishToken(m.comma);case 91:return++this.pos,this.finishToken(m.bracketL);case 93:return++this.pos,this.finishToken(m.bracketR);case 123:return++this.pos,this.finishToken(m.braceL);case 125:return++this.pos,this.finishToken(m.braceR);case 58:return++this.pos,this.finishToken(m.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(m.backQuote);case 48:var p=this.input.charCodeAt(this.pos+1);if(p===120||p===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(p===111||p===79)return this.readRadixNumber(8);if(p===98||p===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(l);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(l);case 124:case 38:return this.readToken_pipe_amp(l);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(l);case 60:case 62:return this.readToken_lt_gt(l);case 61:case 33:return this.readToken_eq_excl(l);case 63:return this.readToken_question();case 126:return this.finishOp(m.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+E(l)+"'")},tt.finishOp=function(l,p){var S=this.input.slice(this.pos,this.pos+p);return this.pos+=p,this.finishToken(l,S)},tt.readRegexp=function(){for(var l,p,S=this.pos;;){this.pos>=this.input.length&&this.raise(S,"Unterminated regular expression");var A=this.input.charAt(this.pos);if(T.test(A)&&this.raise(S,"Unterminated regular expression"),l)l=!1;else{if(A==="[")p=!0;else if(A==="]"&&p)p=!1;else if(A==="/"&&!p)break;l=A==="\\"}++this.pos}var M=this.input.slice(S,this.pos);++this.pos;var ne=this.pos,se=this.readWord1();this.containsEsc&&this.unexpected(ne);var ke=this.regexpState||(this.regexpState=new kr(this));ke.reset(S,M,se),this.validateRegExpFlags(ke),this.validateRegExpPattern(ke);var Ee=null;try{Ee=new RegExp(M,se)}catch{}return this.finishToken(m.regexp,{pattern:M,flags:se,value:Ee})},tt.readInt=function(l,p,S){for(var A=this.options.ecmaVersion>=12&&p===void 0,M=S&&this.input.charCodeAt(this.pos)===48,ne=this.pos,se=0,ke=0,Ee=0,He=p??1/0;Ee<He;++Ee,++this.pos){var Ge=this.input.charCodeAt(this.pos),vt=void 0;if(A&&Ge===95){M&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),ke===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),Ee===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),ke=Ge;continue}if(Ge>=97?vt=Ge-97+10:Ge>=65?vt=Ge-65+10:Ge>=48&&Ge<=57?vt=Ge-48:vt=1/0,vt>=l)break;ke=Ge,se=se*l+vt}return A&&ke===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===ne||p!=null&&this.pos-ne!==p?null:se};function Ql(l,p){return p?parseInt(l,8):parseFloat(l.replace(/_/g,""))}function wo(l){return typeof BigInt!="function"?null:BigInt(l.replace(/_/g,""))}tt.readRadixNumber=function(l){var p=this.pos;this.pos+=2;var S=this.readInt(l);return S==null&&this.raise(this.start+2,"Expected number in radix "+l),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(S=wo(this.input.slice(p,this.pos)),++this.pos):x(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(m.num,S)},tt.readNumber=function(l){var p=this.pos;!l&&this.readInt(10,void 0,!0)===null&&this.raise(p,"Invalid number");var S=this.pos-p>=2&&this.input.charCodeAt(p)===48;S&&this.strict&&this.raise(p,"Invalid number");var A=this.input.charCodeAt(this.pos);if(!S&&!l&&this.options.ecmaVersion>=11&&A===110){var M=wo(this.input.slice(p,this.pos));return++this.pos,x(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(m.num,M)}S&&/[89]/.test(this.input.slice(p,this.pos))&&(S=!1),A===46&&!S&&(++this.pos,this.readInt(10),A=this.input.charCodeAt(this.pos)),(A===69||A===101)&&!S&&(A=this.input.charCodeAt(++this.pos),(A===43||A===45)&&++this.pos,this.readInt(10)===null&&this.raise(p,"Invalid number")),x(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var ne=Ql(this.input.slice(p,this.pos),S);return this.finishToken(m.num,ne)},tt.readCodePoint=function(){var l=this.input.charCodeAt(this.pos),p;if(l===123){this.options.ecmaVersion<6&&this.unexpected();var S=++this.pos;p=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,p>1114111&&this.invalidStringToken(S,"Code point out of bounds")}else p=this.readHexChar(4);return p},tt.readString=function(l){for(var p="",S=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var A=this.input.charCodeAt(this.pos);if(A===l)break;A===92?(p+=this.input.slice(S,this.pos),p+=this.readEscapedChar(!1),S=this.pos):A===8232||A===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(V(A)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return p+=this.input.slice(S,this.pos++),this.finishToken(m.string,p)};var Un={};tt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(l){if(l===Un)this.readInvalidTemplateToken();else throw l}this.inTemplateElement=!1},tt.invalidStringToken=function(l,p){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Un;this.raise(l,p)},tt.readTmplToken=function(){for(var l="",p=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var S=this.input.charCodeAt(this.pos);if(S===96||S===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===m.template||this.type===m.invalidTemplate)?S===36?(this.pos+=2,this.finishToken(m.dollarBraceL)):(++this.pos,this.finishToken(m.backQuote)):(l+=this.input.slice(p,this.pos),this.finishToken(m.template,l));if(S===92)l+=this.input.slice(p,this.pos),l+=this.readEscapedChar(!0),p=this.pos;else if(V(S)){switch(l+=this.input.slice(p,this.pos),++this.pos,S){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:l+=`
|
|
74
|
-
`;break;default:
|
|
22
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};Ve.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
23
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return tn(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(i,8);return r>255&&(i=i.slice(0,-1),r=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),(i!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return Zn(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};Ve.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,"Bad character escape sequence"),n};Ve.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(mn(r,i))this.pos+=r<=65535?1:2;else if(r===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var s=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?Gt:mn)(o,i)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=tn(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)};Ve.readWord=function(){var e=this.readWord1(),t=_.name;return this.keywords.test(e)&&(t=cs[e]),this.finishToken(t,e)};var vm="8.16.0";rt.acorn={Parser:rt,version:vm,defaultOptions:Ua,Position:xi,SourceLocation:Ar,getLineInfo:Cc,Node:Or,TokenType:He,tokTypes:_,keywordTypes:cs,TokContext:Bt,tokContexts:tt,isIdentifierChar:mn,isIdentifierStart:Gt,Token:ms,isNewLine:Zn,lineBreak:vt,lineBreakG:Bg,nonASCIIwhitespace:Sc};function Lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xr={exports:{}},ea,ll;function bm(){return ll||(ll=1,ea={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:"♦"}),ea}var li={exports:{}},ym=li.exports,ul;function cl(){return ul||(ul=1,(function(e,t){(function(n,i){i(t)})(ym,(function(n){var i=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,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,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,199,7,137,9,54,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,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,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,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],r=[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,4,51,13,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,7,25,39,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,39,27,10,22,251,41,7,1,17,5,57,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],s="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",o="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",l={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},u="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",f={5:u,"5module":u+" export import",6:u+" const class extends export import super"},p=/^in(stanceof)?$/,h=new RegExp("["+o+"]"),d=new RegExp("["+o+s+"]");function m(a,c){for(var x=65536,w=0;w<c.length;w+=2){if(x+=c[w],x>a)return!1;if(x+=c[w+1],x>=a)return!0}return!1}function b(a,c){return a<65?a===36:a<91?!0:a<97?a===95:a<123?!0:a<=65535?a>=170&&h.test(String.fromCharCode(a)):c===!1?!1:m(a,r)}function v(a,c){return a<48?a===36:a<58?!0:a<65?!1:a<91?!0:a<97?a===95:a<123?!0:a<=65535?a>=170&&d.test(String.fromCharCode(a)):c===!1?!1:m(a,r)||m(a,i)}var S=function(c,x){x===void 0&&(x={}),this.label=c,this.keyword=x.keyword,this.beforeExpr=!!x.beforeExpr,this.startsExpr=!!x.startsExpr,this.isLoop=!!x.isLoop,this.isAssign=!!x.isAssign,this.prefix=!!x.prefix,this.postfix=!!x.postfix,this.binop=x.binop||null,this.updateContext=null};function E(a,c){return new S(a,{beforeExpr:!0,binop:c})}var k={beforeExpr:!0},I={startsExpr:!0},N={};function y(a,c){return c===void 0&&(c={}),c.keyword=a,N[a]=new S(a,c)}var g={num:new S("num",I),regexp:new S("regexp",I),string:new S("string",I),name:new S("name",I),privateId:new S("privateId",I),eof:new S("eof"),bracketL:new S("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new S("]"),braceL:new S("{",{beforeExpr:!0,startsExpr:!0}),braceR:new S("}"),parenL:new S("(",{beforeExpr:!0,startsExpr:!0}),parenR:new S(")"),comma:new S(",",k),semi:new S(";",k),colon:new S(":",k),dot:new S("."),question:new S("?",k),questionDot:new S("?."),arrow:new S("=>",k),template:new S("template"),invalidTemplate:new S("invalidTemplate"),ellipsis:new S("...",k),backQuote:new S("`",I),dollarBraceL:new S("${",{beforeExpr:!0,startsExpr:!0}),eq:new S("=",{beforeExpr:!0,isAssign:!0}),assign:new S("_=",{beforeExpr:!0,isAssign:!0}),incDec:new S("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new S("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:E("||",1),logicalAND:E("&&",2),bitwiseOR:E("|",3),bitwiseXOR:E("^",4),bitwiseAND:E("&",5),equality:E("==/!=/===/!==",6),relational:E("</>/<=/>=",7),bitShift:E("<</>>/>>>",8),plusMin:new S("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:E("%",10),star:E("*",10),slash:E("/",10),starstar:new S("**",{beforeExpr:!0}),coalesce:E("??",1),_break:y("break"),_case:y("case",k),_catch:y("catch"),_continue:y("continue"),_debugger:y("debugger"),_default:y("default",k),_do:y("do",{isLoop:!0,beforeExpr:!0}),_else:y("else",k),_finally:y("finally"),_for:y("for",{isLoop:!0}),_function:y("function",I),_if:y("if"),_return:y("return",k),_switch:y("switch"),_throw:y("throw",k),_try:y("try"),_var:y("var"),_const:y("const"),_while:y("while",{isLoop:!0}),_with:y("with"),_new:y("new",{beforeExpr:!0,startsExpr:!0}),_this:y("this",I),_super:y("super",I),_class:y("class",I),_extends:y("extends",k),_export:y("export"),_import:y("import",I),_null:y("null",I),_true:y("true",I),_false:y("false",I),_in:y("in",{beforeExpr:!0,binop:7}),_instanceof:y("instanceof",{beforeExpr:!0,binop:7}),_typeof:y("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:y("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:y("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},A=/\r\n?|\n|\u2028|\u2029/,M=new RegExp(A.source,"g");function F(a){return a===10||a===13||a===8232||a===8233}function R(a,c,x){x===void 0&&(x=a.length);for(var w=c;w<x;w++){var P=a.charCodeAt(w);if(F(P))return w<x-1&&P===13&&a.charCodeAt(w+1)===10?w+2:w+1}return-1}var j=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,B=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,D=Object.prototype,se=D.hasOwnProperty,ue=D.toString,te=Object.hasOwn||(function(a,c){return se.call(a,c)}),ae=Array.isArray||(function(a){return ue.call(a)==="[object Array]"}),ge=Object.create(null);function ve(a){return ge[a]||(ge[a]=new RegExp("^(?:"+a.replace(/ /g,"|")+")$"))}function L(a){return a<=65535?String.fromCharCode(a):(a-=65536,String.fromCharCode((a>>10)+55296,(a&1023)+56320))}var G=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ne=function(c,x){this.line=c,this.column=x};ne.prototype.offset=function(c){return new ne(this.line,this.column+c)};var O=function(c,x,w){this.start=x,this.end=w,c.sourceFile!==null&&(this.source=c.sourceFile)};function he(a,c){for(var x=1,w=0;;){var P=R(a,w,c);if(P<0)return new ne(x,c-w);++x,w=P}}var W={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Z=!1;function H(a){var c={};for(var x in W)c[x]=a&&te(a,x)?a[x]:W[x];if(c.ecmaVersion==="latest"?c.ecmaVersion=1e8:c.ecmaVersion==null?(!Z&&typeof console=="object"&&console.warn&&(Z=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
24
|
+
Defaulting to 2020, but this will stop working in the future.`)),c.ecmaVersion=11):c.ecmaVersion>=2015&&(c.ecmaVersion-=2009),c.allowReserved==null&&(c.allowReserved=c.ecmaVersion<5),(!a||a.allowHashBang==null)&&(c.allowHashBang=c.ecmaVersion>=14),ae(c.onToken)){var w=c.onToken;c.onToken=function(P){return w.push(P)}}if(ae(c.onComment)&&(c.onComment=K(c,c.onComment)),c.sourceType==="commonjs"&&c.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return c}function K(a,c){return function(x,w,P,z,q,ce){var pe={type:x?"Block":"Line",value:w,start:P,end:z};a.locations&&(pe.loc=new O(this,q,ce)),a.ranges&&(pe.range=[P,z]),c.push(pe)}}var J=1,ie=2,X=4,$=8,Y=16,le=32,de=64,Se=128,ye=256,ke=512,Ie=1024,be=J|ie|ye;function Pe(a,c){return ie|(a?X:0)|(c?$:0)}var Be=0,$e=1,Te=2,nt=3,Q=4,re=5,T=function(c,x,w){this.options=c=H(c),this.sourceFile=c.sourceFile,this.keywords=ve(f[c.ecmaVersion>=6?6:c.sourceType==="module"?"5module":5]);var P="";c.allowReserved!==!0&&(P=l[c.ecmaVersion>=6?6:c.ecmaVersion===5?5:3],c.sourceType==="module"&&(P+=" await")),this.reservedWords=ve(P);var z=(P?P+" ":"")+l.strict;this.reservedWordsStrict=ve(z),this.reservedWordsStrictBind=ve(z+" "+l.strictBind),this.input=String(x),this.containsEsc=!1,w?(this.pos=w,this.lineStart=this.input.lastIndexOf(`
|
|
25
|
+
`,w-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(A).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=g.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=c.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&c.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?ie:J),this.regexpState=null,this.privateNameStack=[]},Ae={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};T.prototype.parse=function(){var c=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(c)},Ae.inFunction.get=function(){return(this.currentVarScope().flags&ie)>0},Ae.inGenerator.get=function(){return(this.currentVarScope().flags&$)>0},Ae.inAsync.get=function(){return(this.currentVarScope().flags&X)>0},Ae.canAwait.get=function(){for(var a=this.scopeStack.length-1;a>=0;a--){var c=this.scopeStack[a],x=c.flags;if(x&(ye|ke))return!1;if(x&ie)return(x&X)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ae.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&J)},Ae.allowSuper.get=function(){var a=this.currentThisScope(),c=a.flags;return(c&de)>0||this.options.allowSuperOutsideMethod},Ae.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Se)>0},Ae.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ae.allowNewDotTarget.get=function(){for(var a=this.scopeStack.length-1;a>=0;a--){var c=this.scopeStack[a],x=c.flags;if(x&(ye|ke)||x&ie&&!(x&Y))return!0}return!1},Ae.allowUsing.get=function(){var a=this.currentScope(),c=a.flags;return!(c&Ie||!this.inModule&&c&J)},Ae.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ye)>0},T.extend=function(){for(var c=[],x=arguments.length;x--;)c[x]=arguments[x];for(var w=this,P=0;P<c.length;P++)w=c[P](w);return w},T.parse=function(c,x){return new this(x,c).parse()},T.parseExpressionAt=function(c,x,w){var P=new this(w,c,x);return P.nextToken(),P.parseExpression()},T.tokenizer=function(c,x){return new this(x,c)},Object.defineProperties(T.prototype,Ae);var Le=T.prototype,at=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Le.strictDirective=function(a){if(this.options.ecmaVersion<5)return!1;for(;;){B.lastIndex=a,a+=B.exec(this.input)[0].length;var c=at.exec(this.input.slice(a));if(!c)return!1;if((c[1]||c[2])==="use strict"){B.lastIndex=a+c[0].length;var x=B.exec(this.input),w=x.index+x[0].length,P=this.input.charAt(w);return P===";"||P==="}"||A.test(x[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(P)||P==="!"&&this.input.charAt(w+1)==="=")}a+=c[0].length,B.lastIndex=a,a+=B.exec(this.input)[0].length,this.input[a]===";"&&a++}},Le.eat=function(a){return this.type===a?(this.next(),!0):!1},Le.isContextual=function(a){return this.type===g.name&&this.value===a&&!this.containsEsc},Le.eatContextual=function(a){return this.isContextual(a)?(this.next(),!0):!1},Le.expectContextual=function(a){this.eatContextual(a)||this.unexpected()},Le.canInsertSemicolon=function(){return this.type===g.eof||this.type===g.braceR||A.test(this.input.slice(this.lastTokEnd,this.start))},Le.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Le.semicolon=function(){!this.eat(g.semi)&&!this.insertSemicolon()&&this.unexpected()},Le.afterTrailingComma=function(a,c){if(this.type===a)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),c||this.next(),!0},Le.expect=function(a){this.eat(a)||this.unexpected()},Le.unexpected=function(a){this.raise(a??this.start,"Unexpected token")};var kt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Le.checkPatternErrors=function(a,c){if(a){a.trailingComma>-1&&this.raiseRecoverable(a.trailingComma,"Comma is not permitted after the rest element");var x=c?a.parenthesizedAssign:a.parenthesizedBind;x>-1&&this.raiseRecoverable(x,c?"Assigning to rvalue":"Parenthesized pattern")}},Le.checkExpressionErrors=function(a,c){if(!a)return!1;var x=a.shorthandAssign,w=a.doubleProto;if(!c)return x>=0||w>=0;x>=0&&this.raise(x,"Shorthand property assignments are valid only in destructuring patterns"),w>=0&&this.raiseRecoverable(w,"Redefinition of __proto__ property")},Le.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Le.isSimpleAssignTarget=function(a){return a.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(a.expression):a.type==="Identifier"||a.type==="MemberExpression"};var me=T.prototype;me.parseTopLevel=function(a){var c=Object.create(null);for(a.body||(a.body=[]);this.type!==g.eof;){var x=this.parseStatement(null,!0,c);a.body.push(x)}if(this.inModule)for(var w=0,P=Object.keys(this.undefinedExports);w<P.length;w+=1){var z=P[w];this.raiseRecoverable(this.undefinedExports[z].start,"Export '"+z+"' is not defined")}return this.adaptDirectivePrologue(a.body),this.next(),a.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(a,"Program")};var Zt={kind:"loop"},En={kind:"switch"};me.isLet=function(a){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;B.lastIndex=this.pos;var c=B.exec(this.input),x=this.pos+c[0].length,w=this.fullCharCodeAt(x);if(w===91||w===92)return!0;if(a)return!1;if(w===123)return!0;if(b(w)){var P=x;do x+=w<=65535?1:2;while(v(w=this.fullCharCodeAt(x)));if(w===92)return!0;var z=this.input.slice(P,x);if(!p.test(z))return!0}return!1},me.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;B.lastIndex=this.pos;var a=B.exec(this.input),c=this.pos+a[0].length,x;return!A.test(this.input.slice(this.pos,c))&&this.input.slice(c,c+8)==="function"&&(c+8===this.input.length||!(v(x=this.fullCharCodeAt(c+8))||x===92))},me.isUsingKeyword=function(a,c){if(this.options.ecmaVersion<17||!this.isContextual(a?"await":"using"))return!1;B.lastIndex=this.pos;var x=B.exec(this.input),w=this.pos+x[0].length;if(A.test(this.input.slice(this.pos,w)))return!1;if(a){var P=w+5,z;if(this.input.slice(w,P)!=="using"||P===this.input.length||v(z=this.fullCharCodeAt(P))||z===92)return!1;B.lastIndex=P;var q=B.exec(this.input);if(w=P+q[0].length,q&&A.test(this.input.slice(P,w)))return!1}var ce=this.fullCharCodeAt(w);if(!b(ce)&&ce!==92)return!1;var pe=w;do w+=ce<=65535?1:2;while(v(ce=this.fullCharCodeAt(w)));if(ce===92)return!0;var Ne=this.input.slice(pe,w);return!(p.test(Ne)||c&&Ne==="of")},me.isAwaitUsing=function(a){return this.isUsingKeyword(!0,a)},me.isUsing=function(a){return this.isUsingKeyword(!1,a)},me.parseStatement=function(a,c,x){var w=this.type,P=this.startNode(),z;switch(this.isLet(a)&&(w=g._var,z="let"),w){case g._break:case g._continue:return this.parseBreakContinueStatement(P,w.keyword);case g._debugger:return this.parseDebuggerStatement(P);case g._do:return this.parseDoStatement(P);case g._for:return this.parseForStatement(P);case g._function:return a&&(this.strict||a!=="if"&&a!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(P,!1,!a);case g._class:return a&&this.unexpected(),this.parseClass(P,!0);case g._if:return this.parseIfStatement(P);case g._return:return this.parseReturnStatement(P);case g._switch:return this.parseSwitchStatement(P);case g._throw:return this.parseThrowStatement(P);case g._try:return this.parseTryStatement(P);case g._const:case g._var:return z=z||this.value,a&&z!=="var"&&this.unexpected(),this.parseVarStatement(P,z);case g._while:return this.parseWhileStatement(P);case g._with:return this.parseWithStatement(P);case g.braceL:return this.parseBlock(!0,P);case g.semi:return this.parseEmptyStatement(P);case g._export:case g._import:if(this.options.ecmaVersion>10&&w===g._import){B.lastIndex=this.pos;var q=B.exec(this.input),ce=this.pos+q[0].length,pe=this.input.charCodeAt(ce);if(pe===40||pe===46)return this.parseExpressionStatement(P,this.parseExpression())}return this.options.allowImportExportEverywhere||(c||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),w===g._import?this.parseImport(P):this.parseExport(P,x);default:if(this.isAsyncFunction())return a&&this.unexpected(),this.next(),this.parseFunctionStatement(P,!0,!a);var Ne=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(Ne)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),Ne==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(P,!1,Ne),this.semicolon(),this.finishNode(P,"VariableDeclaration");var Fe=this.value,Xe=this.parseExpression();return w===g.name&&Xe.type==="Identifier"&&this.eat(g.colon)?this.parseLabeledStatement(P,Fe,Xe,a):this.parseExpressionStatement(P,Xe)}},me.parseBreakContinueStatement=function(a,c){var x=c==="break";this.next(),this.eat(g.semi)||this.insertSemicolon()?a.label=null:this.type!==g.name?this.unexpected():(a.label=this.parseIdent(),this.semicolon());for(var w=0;w<this.labels.length;++w){var P=this.labels[w];if((a.label==null||P.name===a.label.name)&&(P.kind!=null&&(x||P.kind==="loop")||a.label&&x))break}return w===this.labels.length&&this.raise(a.start,"Unsyntactic "+c),this.finishNode(a,x?"BreakStatement":"ContinueStatement")},me.parseDebuggerStatement=function(a){return this.next(),this.semicolon(),this.finishNode(a,"DebuggerStatement")},me.parseDoStatement=function(a){return this.next(),this.labels.push(Zt),a.body=this.parseStatement("do"),this.labels.pop(),this.expect(g._while),a.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(g.semi):this.semicolon(),this.finishNode(a,"DoWhileStatement")},me.parseForStatement=function(a){this.next();var c=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Zt),this.enterScope(0),this.expect(g.parenL),this.type===g.semi)return c>-1&&this.unexpected(c),this.parseFor(a,null);var x=this.isLet();if(this.type===g._var||this.type===g._const||x){var w=this.startNode(),P=x?"let":this.value;return this.next(),this.parseVar(w,!0,P),this.finishNode(w,"VariableDeclaration"),this.parseForAfterInit(a,w,c)}var z=this.isContextual("let"),q=!1,ce=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(ce){var pe=this.startNode();return this.next(),ce==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(pe,!0,ce),this.finishNode(pe,"VariableDeclaration"),this.parseForAfterInit(a,pe,c)}var Ne=this.containsEsc,Fe=new kt,Xe=this.start,st=c>-1?this.parseExprSubscripts(Fe,"await"):this.parseExpression(!0,Fe);return this.type===g._in||(q=this.options.ecmaVersion>=6&&this.isContextual("of"))?(c>-1?(this.type===g._in&&this.unexpected(c),a.await=!0):q&&this.options.ecmaVersion>=8&&(st.start===Xe&&!Ne&&st.type==="Identifier"&&st.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(a.await=!1)),z&&q&&this.raise(st.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(st,!1,Fe),this.checkLValPattern(st),this.parseForIn(a,st)):(this.checkExpressionErrors(Fe,!0),c>-1&&this.unexpected(c),this.parseFor(a,st))},me.parseForAfterInit=function(a,c,x){return(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&c.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===g._in?x>-1&&this.unexpected(x):a.await=x>-1),this.parseForIn(a,c)):(x>-1&&this.unexpected(x),this.parseFor(a,c))},me.parseFunctionStatement=function(a,c,x){return this.next(),this.parseFunction(a,Ct|(x?0:bt),!1,c)},me.parseIfStatement=function(a){return this.next(),a.test=this.parseParenExpression(),a.consequent=this.parseStatement("if"),a.alternate=this.eat(g._else)?this.parseStatement("if"):null,this.finishNode(a,"IfStatement")},me.parseReturnStatement=function(a){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(g.semi)||this.insertSemicolon()?a.argument=null:(a.argument=this.parseExpression(),this.semicolon()),this.finishNode(a,"ReturnStatement")},me.parseSwitchStatement=function(a){this.next(),a.discriminant=this.parseParenExpression(),a.cases=[],this.expect(g.braceL),this.labels.push(En),this.enterScope(Ie);for(var c,x=!1;this.type!==g.braceR;)if(this.type===g._case||this.type===g._default){var w=this.type===g._case;c&&this.finishNode(c,"SwitchCase"),a.cases.push(c=this.startNode()),c.consequent=[],this.next(),w?c.test=this.parseExpression():(x&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),x=!0,c.test=null),this.expect(g.colon)}else c||this.unexpected(),c.consequent.push(this.parseStatement(null));return this.exitScope(),c&&this.finishNode(c,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(a,"SwitchStatement")},me.parseThrowStatement=function(a){return this.next(),A.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),a.argument=this.parseExpression(),this.semicolon(),this.finishNode(a,"ThrowStatement")};var ut=[];me.parseCatchClauseParam=function(){var a=this.parseBindingAtom(),c=a.type==="Identifier";return this.enterScope(c?le:0),this.checkLValPattern(a,c?Q:Te),this.expect(g.parenR),a},me.parseTryStatement=function(a){if(this.next(),a.block=this.parseBlock(),a.handler=null,this.type===g._catch){var c=this.startNode();this.next(),this.eat(g.parenL)?c.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),c.param=null,this.enterScope(0)),c.body=this.parseBlock(!1),this.exitScope(),a.handler=this.finishNode(c,"CatchClause")}return a.finalizer=this.eat(g._finally)?this.parseBlock():null,!a.handler&&!a.finalizer&&this.raise(a.start,"Missing catch or finally clause"),this.finishNode(a,"TryStatement")},me.parseVarStatement=function(a,c,x){return this.next(),this.parseVar(a,!1,c,x),this.semicolon(),this.finishNode(a,"VariableDeclaration")},me.parseWhileStatement=function(a){return this.next(),a.test=this.parseParenExpression(),this.labels.push(Zt),a.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(a,"WhileStatement")},me.parseWithStatement=function(a){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),a.object=this.parseParenExpression(),a.body=this.parseStatement("with"),this.finishNode(a,"WithStatement")},me.parseEmptyStatement=function(a){return this.next(),this.finishNode(a,"EmptyStatement")},me.parseLabeledStatement=function(a,c,x,w){for(var P=0,z=this.labels;P<z.length;P+=1){var q=z[P];q.name===c&&this.raise(x.start,"Label '"+c+"' is already declared")}for(var ce=this.type.isLoop?"loop":this.type===g._switch?"switch":null,pe=this.labels.length-1;pe>=0;pe--){var Ne=this.labels[pe];if(Ne.statementStart===a.start)Ne.statementStart=this.start,Ne.kind=ce;else break}return this.labels.push({name:c,kind:ce,statementStart:this.start}),a.body=this.parseStatement(w?w.indexOf("label")===-1?w+"label":w:"label"),this.labels.pop(),a.label=x,this.finishNode(a,"LabeledStatement")},me.parseExpressionStatement=function(a,c){return a.expression=c,this.semicolon(),this.finishNode(a,"ExpressionStatement")},me.parseBlock=function(a,c,x){for(a===void 0&&(a=!0),c===void 0&&(c=this.startNode()),c.body=[],this.expect(g.braceL),a&&this.enterScope(0);this.type!==g.braceR;){var w=this.parseStatement(null);c.body.push(w)}return x&&(this.strict=!1),this.next(),a&&this.exitScope(),this.finishNode(c,"BlockStatement")},me.parseFor=function(a,c){return a.init=c,this.expect(g.semi),a.test=this.type===g.semi?null:this.parseExpression(),this.expect(g.semi),a.update=this.type===g.parenR?null:this.parseExpression(),this.expect(g.parenR),a.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(a,"ForStatement")},me.parseForIn=function(a,c){var x=this.type===g._in;return this.next(),c.type==="VariableDeclaration"&&c.declarations[0].init!=null&&(!x||this.options.ecmaVersion<8||this.strict||c.kind!=="var"||c.declarations[0].id.type!=="Identifier")&&this.raise(c.start,(x?"for-in":"for-of")+" loop variable declaration may not have an initializer"),a.left=c,a.right=x?this.parseExpression():this.parseMaybeAssign(),this.expect(g.parenR),a.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(a,x?"ForInStatement":"ForOfStatement")},me.parseVar=function(a,c,x,w){for(a.declarations=[],a.kind=x;;){var P=this.startNode();if(this.parseVarId(P,x),this.eat(g.eq)?P.init=this.parseMaybeAssign(c):!w&&x==="const"&&!(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!w&&(x==="using"||x==="await using")&&this.options.ecmaVersion>=17&&this.type!==g._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+x+" declaration"):!w&&P.id.type!=="Identifier"&&!(c&&(this.type===g._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):P.init=null,a.declarations.push(this.finishNode(P,"VariableDeclarator")),!this.eat(g.comma))break}return a},me.parseVarId=function(a,c){a.id=c==="using"||c==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(a.id,c==="var"?$e:Te,!1)};var Ct=1,bt=2,ho=4;me.parseFunction=function(a,c,x,w,P){this.initFunction(a),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!w)&&(this.type===g.star&&c&bt&&this.unexpected(),a.generator=this.eat(g.star)),this.options.ecmaVersion>=8&&(a.async=!!w),c&Ct&&(a.id=c&ho&&this.type!==g.name?null:this.parseIdent(),a.id&&!(c&bt)&&this.checkLValSimple(a.id,this.strict||a.generator||a.async?this.treatFunctionsAsVar?$e:Te:nt));var z=this.yieldPos,q=this.awaitPos,ce=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Pe(a.async,a.generator)),c&Ct||(a.id=this.type===g.name?this.parseIdent():null),this.parseFunctionParams(a),this.parseFunctionBody(a,x,!1,P),this.yieldPos=z,this.awaitPos=q,this.awaitIdentPos=ce,this.finishNode(a,c&Ct?"FunctionDeclaration":"FunctionExpression")},me.parseFunctionParams=function(a){this.expect(g.parenL),a.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},me.parseClass=function(a,c){this.next();var x=this.strict;this.strict=!0,this.parseClassId(a,c),this.parseClassSuper(a);var w=this.enterClassBody(),P=this.startNode(),z=!1;for(P.body=[],this.expect(g.braceL);this.type!==g.braceR;){var q=this.parseClassElement(a.superClass!==null);q&&(P.body.push(q),q.type==="MethodDefinition"&&q.kind==="constructor"?(z&&this.raiseRecoverable(q.start,"Duplicate constructor in the same class"),z=!0):q.key&&q.key.type==="PrivateIdentifier"&&Bp(w,q)&&this.raiseRecoverable(q.key.start,"Identifier '#"+q.key.name+"' has already been declared"))}return this.strict=x,this.next(),a.body=this.finishNode(P,"ClassBody"),this.exitClassBody(),this.finishNode(a,c?"ClassDeclaration":"ClassExpression")},me.parseClassElement=function(a){if(this.eat(g.semi))return null;var c=this.options.ecmaVersion,x=this.startNode(),w="",P=!1,z=!1,q="method",ce=!1;if(this.eatContextual("static")){if(c>=13&&this.eat(g.braceL))return this.parseClassStaticBlock(x),x;this.isClassElementNameStart()||this.type===g.star?ce=!0:w="static"}if(x.static=ce,!w&&c>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===g.star)&&!this.canInsertSemicolon()?z=!0:w="async"),!w&&(c>=9||!z)&&this.eat(g.star)&&(P=!0),!w&&!z&&!P){var pe=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?q=pe:w=pe)}if(w?(x.computed=!1,x.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),x.key.name=w,this.finishNode(x.key,"Identifier")):this.parseClassElementName(x),c<13||this.type===g.parenL||q!=="method"||P||z){var Ne=!x.static&&Ni(x,"constructor"),Fe=Ne&&a;Ne&&q!=="method"&&this.raise(x.key.start,"Constructor can't have get/set modifier"),x.kind=Ne?"constructor":q,this.parseClassMethod(x,P,z,Fe)}else this.parseClassField(x);return x},me.isClassElementNameStart=function(){return this.type===g.name||this.type===g.privateId||this.type===g.num||this.type===g.string||this.type===g.bracketL||this.type.keyword},me.parseClassElementName=function(a){this.type===g.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),a.computed=!1,a.key=this.parsePrivateIdent()):this.parsePropertyName(a)},me.parseClassMethod=function(a,c,x,w){var P=a.key;a.kind==="constructor"?(c&&this.raise(P.start,"Constructor can't be a generator"),x&&this.raise(P.start,"Constructor can't be an async method")):a.static&&Ni(a,"prototype")&&this.raise(P.start,"Classes may not have a static property named prototype");var z=a.value=this.parseMethod(c,x,w);return a.kind==="get"&&z.params.length!==0&&this.raiseRecoverable(z.start,"getter should have no params"),a.kind==="set"&&z.params.length!==1&&this.raiseRecoverable(z.start,"setter should have exactly one param"),a.kind==="set"&&z.params[0].type==="RestElement"&&this.raiseRecoverable(z.params[0].start,"Setter cannot use rest params"),this.finishNode(a,"MethodDefinition")},me.parseClassField=function(a){return Ni(a,"constructor")?this.raise(a.key.start,"Classes can't have a field named 'constructor'"):a.static&&Ni(a,"prototype")&&this.raise(a.key.start,"Classes can't have a static field named 'prototype'"),this.eat(g.eq)?(this.enterScope(ke|de),a.value=this.parseMaybeAssign(),this.exitScope()):a.value=null,this.semicolon(),this.finishNode(a,"PropertyDefinition")},me.parseClassStaticBlock=function(a){a.body=[];var c=this.labels;for(this.labels=[],this.enterScope(ye|de);this.type!==g.braceR;){var x=this.parseStatement(null);a.body.push(x)}return this.next(),this.exitScope(),this.labels=c,this.finishNode(a,"StaticBlock")},me.parseClassId=function(a,c){this.type===g.name?(a.id=this.parseIdent(),c&&this.checkLValSimple(a.id,Te,!1)):(c===!0&&this.unexpected(),a.id=null)},me.parseClassSuper=function(a){a.superClass=this.eat(g._extends)?this.parseExprSubscripts(null,!1):null},me.enterClassBody=function(){var a={declared:Object.create(null),used:[]};return this.privateNameStack.push(a),a.declared},me.exitClassBody=function(){var a=this.privateNameStack.pop(),c=a.declared,x=a.used;if(this.options.checkPrivateFields)for(var w=this.privateNameStack.length,P=w===0?null:this.privateNameStack[w-1],z=0;z<x.length;++z){var q=x[z];te(c,q.name)||(P?P.used.push(q):this.raiseRecoverable(q.start,"Private field '#"+q.name+"' must be declared in an enclosing class"))}};function Bp(a,c){var x=c.key.name,w=a[x],P="true";return c.type==="MethodDefinition"&&(c.kind==="get"||c.kind==="set")&&(P=(c.static?"s":"i")+c.kind),w==="iget"&&P==="iset"||w==="iset"&&P==="iget"||w==="sget"&&P==="sset"||w==="sset"&&P==="sget"?(a[x]="true",!1):w?!0:(a[x]=P,!1)}function Ni(a,c){var x=a.computed,w=a.key;return!x&&(w.type==="Identifier"&&w.name===c||w.type==="Literal"&&w.value===c)}me.parseExportAllDeclaration=function(a,c){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(a.exported=this.parseModuleExportName(),this.checkExport(c,a.exported,this.lastTokStart)):a.exported=null),this.expectContextual("from"),this.type!==g.string&&this.unexpected(),a.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(a,"ExportAllDeclaration")},me.parseExport=function(a,c){if(this.next(),this.eat(g.star))return this.parseExportAllDeclaration(a,c);if(this.eat(g._default))return this.checkExport(c,"default",this.lastTokStart),a.declaration=this.parseExportDefaultDeclaration(),this.finishNode(a,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())a.declaration=this.parseExportDeclaration(a),a.declaration.type==="VariableDeclaration"?this.checkVariableExport(c,a.declaration.declarations):this.checkExport(c,a.declaration.id,a.declaration.id.start),a.specifiers=[],a.source=null,this.options.ecmaVersion>=16&&(a.attributes=[]);else{if(a.declaration=null,a.specifiers=this.parseExportSpecifiers(c),this.eatContextual("from"))this.type!==g.string&&this.unexpected(),a.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause());else{for(var x=0,w=a.specifiers;x<w.length;x+=1){var P=w[x];this.checkUnreserved(P.local),this.checkLocalExport(P.local),P.local.type==="Literal"&&this.raise(P.local.start,"A string literal cannot be used as an exported binding without `from`.")}a.source=null,this.options.ecmaVersion>=16&&(a.attributes=[])}this.semicolon()}return this.finishNode(a,"ExportNamedDeclaration")},me.parseExportDeclaration=function(a){return this.parseStatement(null)},me.parseExportDefaultDeclaration=function(){var a;if(this.type===g._function||(a=this.isAsyncFunction())){var c=this.startNode();return this.next(),a&&this.next(),this.parseFunction(c,Ct|ho,!1,a)}else if(this.type===g._class){var x=this.startNode();return this.parseClass(x,"nullableID")}else{var w=this.parseMaybeAssign();return this.semicolon(),w}},me.checkExport=function(a,c,x){a&&(typeof c!="string"&&(c=c.type==="Identifier"?c.name:c.value),te(a,c)&&this.raiseRecoverable(x,"Duplicate export '"+c+"'"),a[c]=!0)},me.checkPatternExport=function(a,c){var x=c.type;if(x==="Identifier")this.checkExport(a,c,c.start);else if(x==="ObjectPattern")for(var w=0,P=c.properties;w<P.length;w+=1){var z=P[w];this.checkPatternExport(a,z)}else if(x==="ArrayPattern")for(var q=0,ce=c.elements;q<ce.length;q+=1){var pe=ce[q];pe&&this.checkPatternExport(a,pe)}else x==="Property"?this.checkPatternExport(a,c.value):x==="AssignmentPattern"?this.checkPatternExport(a,c.left):x==="RestElement"&&this.checkPatternExport(a,c.argument)},me.checkVariableExport=function(a,c){if(a)for(var x=0,w=c;x<w.length;x+=1){var P=w[x];this.checkPatternExport(a,P.id)}},me.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},me.parseExportSpecifier=function(a){var c=this.startNode();return c.local=this.parseModuleExportName(),c.exported=this.eatContextual("as")?this.parseModuleExportName():c.local,this.checkExport(a,c.exported,c.exported.start),this.finishNode(c,"ExportSpecifier")},me.parseExportSpecifiers=function(a){var c=[],x=!0;for(this.expect(g.braceL);!this.eat(g.braceR);){if(x)x=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;c.push(this.parseExportSpecifier(a))}return c},me.parseImport=function(a){return this.next(),this.type===g.string?(a.specifiers=ut,a.source=this.parseExprAtom()):(a.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),a.source=this.type===g.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(a,"ImportDeclaration")},me.parseImportSpecifier=function(){var a=this.startNode();return a.imported=this.parseModuleExportName(),this.eatContextual("as")?a.local=this.parseIdent():(this.checkUnreserved(a.imported),a.local=a.imported),this.checkLValSimple(a.local,Te),this.finishNode(a,"ImportSpecifier")},me.parseImportDefaultSpecifier=function(){var a=this.startNode();return a.local=this.parseIdent(),this.checkLValSimple(a.local,Te),this.finishNode(a,"ImportDefaultSpecifier")},me.parseImportNamespaceSpecifier=function(){var a=this.startNode();return this.next(),this.expectContextual("as"),a.local=this.parseIdent(),this.checkLValSimple(a.local,Te),this.finishNode(a,"ImportNamespaceSpecifier")},me.parseImportSpecifiers=function(){var a=[],c=!0;if(this.type===g.name&&(a.push(this.parseImportDefaultSpecifier()),!this.eat(g.comma)))return a;if(this.type===g.star)return a.push(this.parseImportNamespaceSpecifier()),a;for(this.expect(g.braceL);!this.eat(g.braceR);){if(c)c=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;a.push(this.parseImportSpecifier())}return a},me.parseWithClause=function(){var a=[];if(!this.eat(g._with))return a;this.expect(g.braceL);for(var c={},x=!0;!this.eat(g.braceR);){if(x)x=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;var w=this.parseImportAttribute(),P=w.key.type==="Identifier"?w.key.name:w.key.value;te(c,P)&&this.raiseRecoverable(w.key.start,"Duplicate attribute key '"+P+"'"),c[P]=!0,a.push(w)}return a},me.parseImportAttribute=function(){var a=this.startNode();return a.key=this.type===g.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(g.colon),this.type!==g.string&&this.unexpected(),a.value=this.parseExprAtom(),this.finishNode(a,"ImportAttribute")},me.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===g.string){var a=this.parseLiteral(this.value);return G.test(a.value)&&this.raise(a.start,"An export name cannot include a lone surrogate."),a}return this.parseIdent(!0)},me.adaptDirectivePrologue=function(a){for(var c=0;c<a.length&&this.isDirectiveCandidate(a[c]);++c)a[c].directive=a[c].expression.raw.slice(1,-1)},me.isDirectiveCandidate=function(a){return this.options.ecmaVersion>=5&&a.type==="ExpressionStatement"&&a.expression.type==="Literal"&&typeof a.expression.value=="string"&&(this.input[a.start]==='"'||this.input[a.start]==="'")};var _t=T.prototype;_t.toAssignable=function(a,c,x){if(this.options.ecmaVersion>=6&&a)switch(a.type){case"Identifier":this.inAsync&&a.name==="await"&&this.raise(a.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":a.type="ObjectPattern",x&&this.checkPatternErrors(x,!0);for(var w=0,P=a.properties;w<P.length;w+=1){var z=P[w];this.toAssignable(z,c),z.type==="RestElement"&&(z.argument.type==="ArrayPattern"||z.argument.type==="ObjectPattern")&&this.raise(z.argument.start,"Unexpected token")}break;case"Property":a.kind!=="init"&&this.raise(a.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(a.value,c);break;case"ArrayExpression":a.type="ArrayPattern",x&&this.checkPatternErrors(x,!0),this.toAssignableList(a.elements,c);break;case"SpreadElement":a.type="RestElement",this.toAssignable(a.argument,c),a.argument.type==="AssignmentPattern"&&this.raise(a.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":a.operator!=="="&&this.raise(a.left.end,"Only '=' operator can be used for specifying default value."),a.type="AssignmentPattern",delete a.operator,this.toAssignable(a.left,c);break;case"ParenthesizedExpression":this.toAssignable(a.expression,c,x);break;case"ChainExpression":this.raiseRecoverable(a.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!c)break;default:this.raise(a.start,"Assigning to rvalue")}else x&&this.checkPatternErrors(x,!0);return a},_t.toAssignableList=function(a,c){for(var x=a.length,w=0;w<x;w++){var P=a[w];P&&this.toAssignable(P,c)}if(x){var z=a[x-1];this.options.ecmaVersion===6&&c&&z&&z.type==="RestElement"&&z.argument.type!=="Identifier"&&this.unexpected(z.argument.start)}return a},_t.parseSpread=function(a){var c=this.startNode();return this.next(),c.argument=this.parseMaybeAssign(!1,a),this.finishNode(c,"SpreadElement")},_t.parseRestBinding=function(){var a=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==g.name&&this.unexpected(),a.argument=this.parseBindingAtom(),this.finishNode(a,"RestElement")},_t.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case g.bracketL:var a=this.startNode();return this.next(),a.elements=this.parseBindingList(g.bracketR,!0,!0),this.finishNode(a,"ArrayPattern");case g.braceL:return this.parseObj(!0)}return this.parseIdent()},_t.parseBindingList=function(a,c,x,w){for(var P=[],z=!0;!this.eat(a);)if(z?z=!1:this.expect(g.comma),c&&this.type===g.comma)P.push(null);else{if(x&&this.afterTrailingComma(a))break;if(this.type===g.ellipsis){var q=this.parseRestBinding();this.parseBindingListItem(q),P.push(q),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(a);break}else P.push(this.parseAssignableListItem(w))}return P},_t.parseAssignableListItem=function(a){var c=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(c),c},_t.parseBindingListItem=function(a){return a},_t.parseMaybeDefault=function(a,c,x){if(x=x||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(g.eq))return x;var w=this.startNodeAt(a,c);return w.left=x,w.right=this.parseMaybeAssign(),this.finishNode(w,"AssignmentPattern")},_t.checkLValSimple=function(a,c,x){c===void 0&&(c=Be);var w=c!==Be;switch(a.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(a.name)&&this.raiseRecoverable(a.start,(w?"Binding ":"Assigning to ")+a.name+" in strict mode"),w&&(c===Te&&a.name==="let"&&this.raiseRecoverable(a.start,"let is disallowed as a lexically bound name"),x&&(te(x,a.name)&&this.raiseRecoverable(a.start,"Argument name clash"),x[a.name]=!0),c!==re&&this.declareName(a.name,c,a.start));break;case"ChainExpression":this.raiseRecoverable(a.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":w&&this.raiseRecoverable(a.start,"Binding member expression");break;case"ParenthesizedExpression":return w&&this.raiseRecoverable(a.start,"Binding parenthesized expression"),this.checkLValSimple(a.expression,c,x);default:this.raise(a.start,(w?"Binding":"Assigning to")+" rvalue")}},_t.checkLValPattern=function(a,c,x){switch(c===void 0&&(c=Be),a.type){case"ObjectPattern":for(var w=0,P=a.properties;w<P.length;w+=1){var z=P[w];this.checkLValInnerPattern(z,c,x)}break;case"ArrayPattern":for(var q=0,ce=a.elements;q<ce.length;q+=1){var pe=ce[q];pe&&this.checkLValInnerPattern(pe,c,x)}break;default:this.checkLValSimple(a,c,x)}},_t.checkLValInnerPattern=function(a,c,x){switch(c===void 0&&(c=Be),a.type){case"Property":this.checkLValInnerPattern(a.value,c,x);break;case"AssignmentPattern":this.checkLValPattern(a.left,c,x);break;case"RestElement":this.checkLValPattern(a.argument,c,x);break;default:this.checkLValPattern(a,c,x)}};var It=function(c,x,w,P,z){this.token=c,this.isExpr=!!x,this.preserveSpace=!!w,this.override=P,this.generator=!!z},Ze={b_stat:new It("{",!1),b_expr:new It("{",!0),b_tmpl:new It("${",!1),p_stat:new It("(",!1),p_expr:new It("(",!0),q_tmpl:new It("`",!0,!0,function(a){return a.tryReadTemplateToken()}),f_stat:new It("function",!1),f_expr:new It("function",!0),f_expr_gen:new It("function",!0,!1,null,!0),f_gen:new It("function",!1,!1,null,!0)},Rn=T.prototype;Rn.initialContext=function(){return[Ze.b_stat]},Rn.curContext=function(){return this.context[this.context.length-1]},Rn.braceIsBlock=function(a){var c=this.curContext();return c===Ze.f_expr||c===Ze.f_stat?!0:a===g.colon&&(c===Ze.b_stat||c===Ze.b_expr)?!c.isExpr:a===g._return||a===g.name&&this.exprAllowed?A.test(this.input.slice(this.lastTokEnd,this.start)):a===g._else||a===g.semi||a===g.eof||a===g.parenR||a===g.arrow?!0:a===g.braceL?c===Ze.b_stat:a===g._var||a===g._const||a===g.name?!1:!this.exprAllowed},Rn.inGeneratorContext=function(){for(var a=this.context.length-1;a>=1;a--){var c=this.context[a];if(c.token==="function")return c.generator}return!1},Rn.updateContext=function(a){var c,x=this.type;x.keyword&&a===g.dot?this.exprAllowed=!1:(c=x.updateContext)?c.call(this,a):this.exprAllowed=x.beforeExpr},Rn.overrideContext=function(a){this.curContext()!==a&&(this.context[this.context.length-1]=a)},g.parenR.updateContext=g.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var a=this.context.pop();a===Ze.b_stat&&this.curContext().token==="function"&&(a=this.context.pop()),this.exprAllowed=!a.isExpr},g.braceL.updateContext=function(a){this.context.push(this.braceIsBlock(a)?Ze.b_stat:Ze.b_expr),this.exprAllowed=!0},g.dollarBraceL.updateContext=function(){this.context.push(Ze.b_tmpl),this.exprAllowed=!0},g.parenL.updateContext=function(a){var c=a===g._if||a===g._for||a===g._with||a===g._while;this.context.push(c?Ze.p_stat:Ze.p_expr),this.exprAllowed=!0},g.incDec.updateContext=function(){},g._function.updateContext=g._class.updateContext=function(a){a.beforeExpr&&a!==g._else&&!(a===g.semi&&this.curContext()!==Ze.p_stat)&&!(a===g._return&&A.test(this.input.slice(this.lastTokEnd,this.start)))&&!((a===g.colon||a===g.braceL)&&this.curContext()===Ze.b_stat)?this.context.push(Ze.f_expr):this.context.push(Ze.f_stat),this.exprAllowed=!1},g.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},g.backQuote.updateContext=function(){this.curContext()===Ze.q_tmpl?this.context.pop():this.context.push(Ze.q_tmpl),this.exprAllowed=!1},g.star.updateContext=function(a){if(a===g._function){var c=this.context.length-1;this.context[c]===Ze.f_expr?this.context[c]=Ze.f_expr_gen:this.context[c]=Ze.f_gen}this.exprAllowed=!0},g.name.updateContext=function(a){var c=!1;this.options.ecmaVersion>=6&&a!==g.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(c=!0),this.exprAllowed=c};var Oe=T.prototype;Oe.checkPropClash=function(a,c,x){if(!(this.options.ecmaVersion>=9&&a.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(a.computed||a.method||a.shorthand))){var w=a.key,P;switch(w.type){case"Identifier":P=w.name;break;case"Literal":P=String(w.value);break;default:return}var z=a.kind;if(this.options.ecmaVersion>=6){P==="__proto__"&&z==="init"&&(c.proto&&(x?x.doubleProto<0&&(x.doubleProto=w.start):this.raiseRecoverable(w.start,"Redefinition of __proto__ property")),c.proto=!0);return}P="$"+P;var q=c[P];if(q){var ce;z==="init"?ce=this.strict&&q.init||q.get||q.set:ce=q.init||q[z],ce&&this.raiseRecoverable(w.start,"Redefinition of property")}else q=c[P]={init:!1,get:!1,set:!1};q[z]=!0}},Oe.parseExpression=function(a,c){var x=this.start,w=this.startLoc,P=this.parseMaybeAssign(a,c);if(this.type===g.comma){var z=this.startNodeAt(x,w);for(z.expressions=[P];this.eat(g.comma);)z.expressions.push(this.parseMaybeAssign(a,c));return this.finishNode(z,"SequenceExpression")}return P},Oe.parseMaybeAssign=function(a,c,x){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(a);this.exprAllowed=!1}var w=!1,P=-1,z=-1,q=-1;c?(P=c.parenthesizedAssign,z=c.trailingComma,q=c.doubleProto,c.parenthesizedAssign=c.trailingComma=-1):(c=new kt,w=!0);var ce=this.start,pe=this.startLoc;(this.type===g.parenL||this.type===g.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=a==="await");var Ne=this.parseMaybeConditional(a,c);if(x&&(Ne=x.call(this,Ne,ce,pe)),this.type.isAssign){var Fe=this.startNodeAt(ce,pe);return Fe.operator=this.value,this.type===g.eq&&(Ne=this.toAssignable(Ne,!1,c)),w||(c.parenthesizedAssign=c.trailingComma=c.doubleProto=-1),c.shorthandAssign>=Ne.start&&(c.shorthandAssign=-1),this.type===g.eq?this.checkLValPattern(Ne):this.checkLValSimple(Ne),Fe.left=Ne,this.next(),Fe.right=this.parseMaybeAssign(a),q>-1&&(c.doubleProto=q),this.finishNode(Fe,"AssignmentExpression")}else w&&this.checkExpressionErrors(c,!0);return P>-1&&(c.parenthesizedAssign=P),z>-1&&(c.trailingComma=z),Ne},Oe.parseMaybeConditional=function(a,c){var x=this.start,w=this.startLoc,P=this.parseExprOps(a,c);if(this.checkExpressionErrors(c))return P;if(this.eat(g.question)){var z=this.startNodeAt(x,w);return z.test=P,z.consequent=this.parseMaybeAssign(),this.expect(g.colon),z.alternate=this.parseMaybeAssign(a),this.finishNode(z,"ConditionalExpression")}return P},Oe.parseExprOps=function(a,c){var x=this.start,w=this.startLoc,P=this.parseMaybeUnary(c,!1,!1,a);return this.checkExpressionErrors(c)||P.start===x&&P.type==="ArrowFunctionExpression"?P:this.parseExprOp(P,x,w,-1,a)},Oe.parseExprOp=function(a,c,x,w,P){var z=this.type.binop;if(z!=null&&(!P||this.type!==g._in)&&z>w){var q=this.type===g.logicalOR||this.type===g.logicalAND,ce=this.type===g.coalesce;ce&&(z=g.logicalAND.binop);var pe=this.value;this.next();var Ne=this.start,Fe=this.startLoc,Xe=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,P),Ne,Fe,z,P),st=this.buildBinary(c,x,a,Xe,pe,q||ce);return(q&&this.type===g.coalesce||ce&&(this.type===g.logicalOR||this.type===g.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(st,c,x,w,P)}return a},Oe.buildBinary=function(a,c,x,w,P,z){w.type==="PrivateIdentifier"&&this.raise(w.start,"Private identifier can only be left side of binary expression");var q=this.startNodeAt(a,c);return q.left=x,q.operator=P,q.right=w,this.finishNode(q,z?"LogicalExpression":"BinaryExpression")},Oe.parseMaybeUnary=function(a,c,x,w){var P=this.start,z=this.startLoc,q;if(this.isContextual("await")&&this.canAwait)q=this.parseAwait(w),c=!0;else if(this.type.prefix){var ce=this.startNode(),pe=this.type===g.incDec;ce.operator=this.value,ce.prefix=!0,this.next(),ce.argument=this.parseMaybeUnary(null,!0,pe,w),this.checkExpressionErrors(a,!0),pe?this.checkLValSimple(ce.argument):this.strict&&ce.operator==="delete"&&fo(ce.argument)?this.raiseRecoverable(ce.start,"Deleting local variable in strict mode"):ce.operator==="delete"&&$r(ce.argument)?this.raiseRecoverable(ce.start,"Private fields can not be deleted"):c=!0,q=this.finishNode(ce,pe?"UpdateExpression":"UnaryExpression")}else if(!c&&this.type===g.privateId)(w||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),q=this.parsePrivateIdent(),this.type!==g._in&&this.unexpected();else{if(q=this.parseExprSubscripts(a,w),this.checkExpressionErrors(a))return q;for(;this.type.postfix&&!this.canInsertSemicolon();){var Ne=this.startNodeAt(P,z);Ne.operator=this.value,Ne.prefix=!1,Ne.argument=q,this.checkLValSimple(q),this.next(),q=this.finishNode(Ne,"UpdateExpression")}}if(!x&&this.eat(g.starstar))if(c)this.unexpected(this.lastTokStart);else return this.buildBinary(P,z,q,this.parseMaybeUnary(null,!1,!1,w),"**",!1);else return q};function fo(a){return a.type==="Identifier"||a.type==="ParenthesizedExpression"&&fo(a.expression)}function $r(a){return a.type==="MemberExpression"&&a.property.type==="PrivateIdentifier"||a.type==="ChainExpression"&&$r(a.expression)||a.type==="ParenthesizedExpression"&&$r(a.expression)}Oe.parseExprSubscripts=function(a,c){var x=this.start,w=this.startLoc,P=this.parseExprAtom(a,c);if(P.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return P;var z=this.parseSubscripts(P,x,w,!1,c);return a&&z.type==="MemberExpression"&&(a.parenthesizedAssign>=z.start&&(a.parenthesizedAssign=-1),a.parenthesizedBind>=z.start&&(a.parenthesizedBind=-1),a.trailingComma>=z.start&&(a.trailingComma=-1)),z},Oe.parseSubscripts=function(a,c,x,w,P){for(var z=this.options.ecmaVersion>=8&&a.type==="Identifier"&&a.name==="async"&&this.lastTokEnd===a.end&&!this.canInsertSemicolon()&&a.end-a.start===5&&this.potentialArrowAt===a.start,q=!1;;){var ce=this.parseSubscript(a,c,x,w,z,q,P);if(ce.optional&&(q=!0),ce===a||ce.type==="ArrowFunctionExpression"){if(q){var pe=this.startNodeAt(c,x);pe.expression=ce,ce=this.finishNode(pe,"ChainExpression")}return ce}a=ce}},Oe.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(g.arrow)},Oe.parseSubscriptAsyncArrow=function(a,c,x,w){return this.parseArrowExpression(this.startNodeAt(a,c),x,!0,w)},Oe.parseSubscript=function(a,c,x,w,P,z,q){var ce=this.options.ecmaVersion>=11,pe=ce&&this.eat(g.questionDot);w&&pe&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var Ne=this.eat(g.bracketL);if(Ne||pe&&this.type!==g.parenL&&this.type!==g.backQuote||this.eat(g.dot)){var Fe=this.startNodeAt(c,x);Fe.object=a,Ne?(Fe.property=this.parseExpression(),this.expect(g.bracketR)):this.type===g.privateId&&a.type!=="Super"?Fe.property=this.parsePrivateIdent():Fe.property=this.parseIdent(this.options.allowReserved!=="never"),Fe.computed=!!Ne,ce&&(Fe.optional=pe),a=this.finishNode(Fe,"MemberExpression")}else if(!w&&this.eat(g.parenL)){var Xe=new kt,st=this.yieldPos,ri=this.awaitPos,Ln=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Mi=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1,Xe);if(P&&!pe&&this.shouldParseAsyncArrow())return this.checkPatternErrors(Xe,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=st,this.awaitPos=ri,this.awaitIdentPos=Ln,this.parseSubscriptAsyncArrow(c,x,Mi,q);this.checkExpressionErrors(Xe,!0),this.yieldPos=st||this.yieldPos,this.awaitPos=ri||this.awaitPos,this.awaitIdentPos=Ln||this.awaitIdentPos;var Mn=this.startNodeAt(c,x);Mn.callee=a,Mn.arguments=Mi,ce&&(Mn.optional=pe),a=this.finishNode(Mn,"CallExpression")}else if(this.type===g.backQuote){(pe||z)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var Fn=this.startNodeAt(c,x);Fn.tag=a,Fn.quasi=this.parseTemplate({isTagged:!0}),a=this.finishNode(Fn,"TaggedTemplateExpression")}return a},Oe.parseExprAtom=function(a,c,x){this.type===g.slash&&this.readRegexp();var w,P=this.potentialArrowAt===this.start;switch(this.type){case g._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),w=this.startNode(),this.next(),this.type===g.parenL&&!this.allowDirectSuper&&this.raise(w.start,"super() call outside constructor of a subclass"),this.type!==g.dot&&this.type!==g.bracketL&&this.type!==g.parenL&&this.unexpected(),this.finishNode(w,"Super");case g._this:return w=this.startNode(),this.next(),this.finishNode(w,"ThisExpression");case g.name:var z=this.start,q=this.startLoc,ce=this.containsEsc,pe=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!ce&&pe.name==="async"&&!this.canInsertSemicolon()&&this.eat(g._function))return this.overrideContext(Ze.f_expr),this.parseFunction(this.startNodeAt(z,q),0,!1,!0,c);if(P&&!this.canInsertSemicolon()){if(this.eat(g.arrow))return this.parseArrowExpression(this.startNodeAt(z,q),[pe],!1,c);if(this.options.ecmaVersion>=8&&pe.name==="async"&&this.type===g.name&&!ce&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return pe=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(g.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(z,q),[pe],!0,c)}return pe;case g.regexp:var Ne=this.value;return w=this.parseLiteral(Ne.value),w.regex={pattern:Ne.pattern,flags:Ne.flags},w;case g.num:case g.string:return this.parseLiteral(this.value);case g._null:case g._true:case g._false:return w=this.startNode(),w.value=this.type===g._null?null:this.type===g._true,w.raw=this.type.keyword,this.next(),this.finishNode(w,"Literal");case g.parenL:var Fe=this.start,Xe=this.parseParenAndDistinguishExpression(P,c);return a&&(a.parenthesizedAssign<0&&!this.isSimpleAssignTarget(Xe)&&(a.parenthesizedAssign=Fe),a.parenthesizedBind<0&&(a.parenthesizedBind=Fe)),Xe;case g.bracketL:return w=this.startNode(),this.next(),w.elements=this.parseExprList(g.bracketR,!0,!0,a),this.finishNode(w,"ArrayExpression");case g.braceL:return this.overrideContext(Ze.b_expr),this.parseObj(!1,a);case g._function:return w=this.startNode(),this.next(),this.parseFunction(w,0);case g._class:return this.parseClass(this.startNode(),!1);case g._new:return this.parseNew();case g.backQuote:return this.parseTemplate();case g._import:return this.options.ecmaVersion>=11?this.parseExprImport(x):this.unexpected();default:return this.parseExprAtomDefault()}},Oe.parseExprAtomDefault=function(){this.unexpected()},Oe.parseExprImport=function(a){var c=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===g.parenL&&!a)return this.parseDynamicImport(c);if(this.type===g.dot){var x=this.startNodeAt(c.start,c.loc&&c.loc.start);return x.name="import",c.meta=this.finishNode(x,"Identifier"),this.parseImportMeta(c)}else this.unexpected()},Oe.parseDynamicImport=function(a){if(this.next(),a.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(g.parenR)?a.options=null:(this.expect(g.comma),this.afterTrailingComma(g.parenR)?a.options=null:(a.options=this.parseMaybeAssign(),this.eat(g.parenR)||(this.expect(g.comma),this.afterTrailingComma(g.parenR)||this.unexpected())));else if(!this.eat(g.parenR)){var c=this.start;this.eat(g.comma)&&this.eat(g.parenR)?this.raiseRecoverable(c,"Trailing comma is not allowed in import()"):this.unexpected(c)}return this.finishNode(a,"ImportExpression")},Oe.parseImportMeta=function(a){this.next();var c=this.containsEsc;return a.property=this.parseIdent(!0),a.property.name!=="meta"&&this.raiseRecoverable(a.property.start,"The only valid meta property for import is 'import.meta'"),c&&this.raiseRecoverable(a.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(a.start,"Cannot use 'import.meta' outside a module"),this.finishNode(a,"MetaProperty")},Oe.parseLiteral=function(a){var c=this.startNode();return c.value=a,c.raw=this.input.slice(this.start,this.end),c.raw.charCodeAt(c.raw.length-1)===110&&(c.bigint=c.value!=null?c.value.toString():c.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(c,"Literal")},Oe.parseParenExpression=function(){this.expect(g.parenL);var a=this.parseExpression();return this.expect(g.parenR),a},Oe.shouldParseArrow=function(a){return!this.canInsertSemicolon()},Oe.parseParenAndDistinguishExpression=function(a,c){var x=this.start,w=this.startLoc,P,z=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var q=this.start,ce=this.startLoc,pe=[],Ne=!0,Fe=!1,Xe=new kt,st=this.yieldPos,ri=this.awaitPos,Ln;for(this.yieldPos=0,this.awaitPos=0;this.type!==g.parenR;)if(Ne?Ne=!1:this.expect(g.comma),z&&this.afterTrailingComma(g.parenR,!0)){Fe=!0;break}else if(this.type===g.ellipsis){Ln=this.start,pe.push(this.parseParenItem(this.parseRestBinding())),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else pe.push(this.parseMaybeAssign(!1,Xe,this.parseParenItem));var Mi=this.lastTokEnd,Mn=this.lastTokEndLoc;if(this.expect(g.parenR),a&&this.shouldParseArrow(pe)&&this.eat(g.arrow))return this.checkPatternErrors(Xe,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=st,this.awaitPos=ri,this.parseParenArrowList(x,w,pe,c);(!pe.length||Fe)&&this.unexpected(this.lastTokStart),Ln&&this.unexpected(Ln),this.checkExpressionErrors(Xe,!0),this.yieldPos=st||this.yieldPos,this.awaitPos=ri||this.awaitPos,pe.length>1?(P=this.startNodeAt(q,ce),P.expressions=pe,this.finishNodeAt(P,"SequenceExpression",Mi,Mn)):P=pe[0]}else P=this.parseParenExpression();if(this.options.preserveParens){var Fn=this.startNodeAt(x,w);return Fn.expression=P,this.finishNode(Fn,"ParenthesizedExpression")}else return P},Oe.parseParenItem=function(a){return a},Oe.parseParenArrowList=function(a,c,x,w){return this.parseArrowExpression(this.startNodeAt(a,c),x,!1,w)};var zp=[];Oe.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var a=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===g.dot){var c=this.startNodeAt(a.start,a.loc&&a.loc.start);c.name="new",a.meta=this.finishNode(c,"Identifier"),this.next();var x=this.containsEsc;return a.property=this.parseIdent(!0),a.property.name!=="target"&&this.raiseRecoverable(a.property.start,"The only valid meta property for new is 'new.target'"),x&&this.raiseRecoverable(a.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(a.start,"'new.target' can only be used in functions and class static block"),this.finishNode(a,"MetaProperty")}var w=this.start,P=this.startLoc;return a.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),w,P,!0,!1),this.eat(g.parenL)?a.arguments=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1):a.arguments=zp,this.finishNode(a,"NewExpression")},Oe.parseTemplateElement=function(a){var c=a.isTagged,x=this.startNode();return this.type===g.invalidTemplate?(c||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),x.value={raw:this.value.replace(/\r\n?/g,`
|
|
26
|
+
`),cooked:null}):x.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
27
|
+
`),cooked:this.value},this.next(),x.tail=this.type===g.backQuote,this.finishNode(x,"TemplateElement")},Oe.parseTemplate=function(a){a===void 0&&(a={});var c=a.isTagged;c===void 0&&(c=!1);var x=this.startNode();this.next(),x.expressions=[];var w=this.parseTemplateElement({isTagged:c});for(x.quasis=[w];!w.tail;)this.type===g.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(g.dollarBraceL),x.expressions.push(this.parseExpression()),this.expect(g.braceR),x.quasis.push(w=this.parseTemplateElement({isTagged:c}));return this.next(),this.finishNode(x,"TemplateLiteral")},Oe.isAsyncProp=function(a){return!a.computed&&a.key.type==="Identifier"&&a.key.name==="async"&&(this.type===g.name||this.type===g.num||this.type===g.string||this.type===g.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===g.star)&&!A.test(this.input.slice(this.lastTokEnd,this.start))},Oe.parseObj=function(a,c){var x=this.startNode(),w=!0,P={};for(x.properties=[],this.next();!this.eat(g.braceR);){if(w)w=!1;else if(this.expect(g.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(g.braceR))break;var z=this.parseProperty(a,c);a||this.checkPropClash(z,P,c),x.properties.push(z)}return this.finishNode(x,a?"ObjectPattern":"ObjectExpression")},Oe.parseProperty=function(a,c){var x=this.startNode(),w,P,z,q;if(this.options.ecmaVersion>=9&&this.eat(g.ellipsis))return a?(x.argument=this.parseIdent(!1),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(x,"RestElement")):(x.argument=this.parseMaybeAssign(!1,c),this.type===g.comma&&c&&c.trailingComma<0&&(c.trailingComma=this.start),this.finishNode(x,"SpreadElement"));this.options.ecmaVersion>=6&&(x.method=!1,x.shorthand=!1,(a||c)&&(z=this.start,q=this.startLoc),a||(w=this.eat(g.star)));var ce=this.containsEsc;return this.parsePropertyName(x),!a&&!ce&&this.options.ecmaVersion>=8&&!w&&this.isAsyncProp(x)?(P=!0,w=this.options.ecmaVersion>=9&&this.eat(g.star),this.parsePropertyName(x)):P=!1,this.parsePropertyValue(x,a,w,P,z,q,c,ce),this.finishNode(x,"Property")},Oe.parseGetterSetter=function(a){var c=a.key.name;this.parsePropertyName(a),a.value=this.parseMethod(!1),a.kind=c;var x=a.kind==="get"?0:1;if(a.value.params.length!==x){var w=a.value.start;a.kind==="get"?this.raiseRecoverable(w,"getter should have no params"):this.raiseRecoverable(w,"setter should have exactly one param")}else a.kind==="set"&&a.value.params[0].type==="RestElement"&&this.raiseRecoverable(a.value.params[0].start,"Setter cannot use rest params")},Oe.parsePropertyValue=function(a,c,x,w,P,z,q,ce){(x||w)&&this.type===g.colon&&this.unexpected(),this.eat(g.colon)?(a.value=c?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,q),a.kind="init"):this.options.ecmaVersion>=6&&this.type===g.parenL?(c&&this.unexpected(),a.method=!0,a.value=this.parseMethod(x,w),a.kind="init"):!c&&!ce&&this.options.ecmaVersion>=5&&!a.computed&&a.key.type==="Identifier"&&(a.key.name==="get"||a.key.name==="set")&&this.type!==g.comma&&this.type!==g.braceR&&this.type!==g.eq?((x||w)&&this.unexpected(),this.parseGetterSetter(a)):this.options.ecmaVersion>=6&&!a.computed&&a.key.type==="Identifier"?((x||w)&&this.unexpected(),this.checkUnreserved(a.key),a.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=P),c?a.value=this.parseMaybeDefault(P,z,this.copyNode(a.key)):this.type===g.eq&&q?(q.shorthandAssign<0&&(q.shorthandAssign=this.start),a.value=this.parseMaybeDefault(P,z,this.copyNode(a.key))):a.value=this.copyNode(a.key),a.kind="init",a.shorthand=!0):this.unexpected()},Oe.parsePropertyName=function(a){if(this.options.ecmaVersion>=6){if(this.eat(g.bracketL))return a.computed=!0,a.key=this.parseMaybeAssign(),this.expect(g.bracketR),a.key;a.computed=!1}return a.key=this.type===g.num||this.type===g.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},Oe.initFunction=function(a){a.id=null,this.options.ecmaVersion>=6&&(a.generator=a.expression=!1),this.options.ecmaVersion>=8&&(a.async=!1)},Oe.parseMethod=function(a,c,x){var w=this.startNode(),P=this.yieldPos,z=this.awaitPos,q=this.awaitIdentPos;return this.initFunction(w),this.options.ecmaVersion>=6&&(w.generator=a),this.options.ecmaVersion>=8&&(w.async=!!c),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Pe(c,w.generator)|de|(x?Se:0)),this.expect(g.parenL),w.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(w,!1,!0,!1),this.yieldPos=P,this.awaitPos=z,this.awaitIdentPos=q,this.finishNode(w,"FunctionExpression")},Oe.parseArrowExpression=function(a,c,x,w){var P=this.yieldPos,z=this.awaitPos,q=this.awaitIdentPos;return this.enterScope(Pe(x,!1)|Y),this.initFunction(a),this.options.ecmaVersion>=8&&(a.async=!!x),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,a.params=this.toAssignableList(c,!0),this.parseFunctionBody(a,!0,!1,w),this.yieldPos=P,this.awaitPos=z,this.awaitIdentPos=q,this.finishNode(a,"ArrowFunctionExpression")},Oe.parseFunctionBody=function(a,c,x,w){var P=c&&this.type!==g.braceL,z=this.strict,q=!1;if(P)a.body=this.parseMaybeAssign(w),a.expression=!0,this.checkParams(a,!1);else{var ce=this.options.ecmaVersion>=7&&!this.isSimpleParamList(a.params);(!z||ce)&&(q=this.strictDirective(this.end),q&&ce&&this.raiseRecoverable(a.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var pe=this.labels;this.labels=[],q&&(this.strict=!0),this.checkParams(a,!z&&!q&&!c&&!x&&this.isSimpleParamList(a.params)),this.strict&&a.id&&this.checkLValSimple(a.id,re),a.body=this.parseBlock(!1,void 0,q&&!z),a.expression=!1,this.adaptDirectivePrologue(a.body.body),this.labels=pe}this.exitScope()},Oe.isSimpleParamList=function(a){for(var c=0,x=a;c<x.length;c+=1){var w=x[c];if(w.type!=="Identifier")return!1}return!0},Oe.checkParams=function(a,c){for(var x=Object.create(null),w=0,P=a.params;w<P.length;w+=1){var z=P[w];this.checkLValInnerPattern(z,$e,c?null:x)}},Oe.parseExprList=function(a,c,x,w){for(var P=[],z=!0;!this.eat(a);){if(z)z=!1;else if(this.expect(g.comma),c&&this.afterTrailingComma(a))break;var q=void 0;x&&this.type===g.comma?q=null:this.type===g.ellipsis?(q=this.parseSpread(w),w&&this.type===g.comma&&w.trailingComma<0&&(w.trailingComma=this.start)):q=this.parseMaybeAssign(!1,w),P.push(q)}return P},Oe.checkUnreserved=function(a){var c=a.start,x=a.end,w=a.name;if(this.inGenerator&&w==="yield"&&this.raiseRecoverable(c,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&w==="await"&&this.raiseRecoverable(c,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&be)&&w==="arguments"&&this.raiseRecoverable(c,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(w==="arguments"||w==="await")&&this.raise(c,"Cannot use "+w+" in class static initialization block"),this.keywords.test(w)&&this.raise(c,"Unexpected keyword '"+w+"'"),!(this.options.ecmaVersion<6&&this.input.slice(c,x).indexOf("\\")!==-1)){var P=this.strict?this.reservedWordsStrict:this.reservedWords;P.test(w)&&(!this.inAsync&&w==="await"&&this.raiseRecoverable(c,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(c,"The keyword '"+w+"' is reserved"))}},Oe.parseIdent=function(a){var c=this.parseIdentNode();return this.next(!!a),this.finishNode(c,"Identifier"),a||(this.checkUnreserved(c),c.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=c.start)),c},Oe.parseIdentNode=function(){var a=this.startNode();return this.type===g.name?a.name=this.value:this.type.keyword?(a.name=this.type.keyword,(a.name==="class"||a.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=g.name):this.unexpected(),a},Oe.parsePrivateIdent=function(){var a=this.startNode();return this.type===g.privateId?a.name=this.value:this.unexpected(),this.next(),this.finishNode(a,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(a)),a},Oe.parseYield=function(a){this.yieldPos||(this.yieldPos=this.start);var c=this.startNode();return this.next(),this.type===g.semi||this.canInsertSemicolon()||this.type!==g.star&&!this.type.startsExpr?(c.delegate=!1,c.argument=null):(c.delegate=this.eat(g.star),c.argument=this.parseMaybeAssign(a)),this.finishNode(c,"YieldExpression")},Oe.parseAwait=function(a){this.awaitPos||(this.awaitPos=this.start);var c=this.startNode();return this.next(),c.argument=this.parseMaybeUnary(null,!0,!1,a),this.finishNode(c,"AwaitExpression")};var Pi=T.prototype;Pi.raise=function(a,c){var x=he(this.input,a);c+=" ("+x.line+":"+x.column+")",this.sourceFile&&(c+=" in "+this.sourceFile);var w=new SyntaxError(c);throw w.pos=a,w.loc=x,w.raisedAt=this.pos,w},Pi.raiseRecoverable=Pi.raise,Pi.curPosition=function(){if(this.options.locations)return new ne(this.curLine,this.pos-this.lineStart)};var cn=T.prototype,Kp=function(c){this.flags=c,this.var=[],this.lexical=[],this.functions=[]};cn.enterScope=function(a){this.scopeStack.push(new Kp(a))},cn.exitScope=function(){this.scopeStack.pop()},cn.treatFunctionsAsVarInScope=function(a){return a.flags&ie||!this.inModule&&a.flags&J},cn.declareName=function(a,c,x){var w=!1;if(c===Te){var P=this.currentScope();w=P.lexical.indexOf(a)>-1||P.functions.indexOf(a)>-1||P.var.indexOf(a)>-1,P.lexical.push(a),this.inModule&&P.flags&J&&delete this.undefinedExports[a]}else if(c===Q){var z=this.currentScope();z.lexical.push(a)}else if(c===nt){var q=this.currentScope();this.treatFunctionsAsVar?w=q.lexical.indexOf(a)>-1:w=q.lexical.indexOf(a)>-1||q.var.indexOf(a)>-1,q.functions.push(a)}else for(var ce=this.scopeStack.length-1;ce>=0;--ce){var pe=this.scopeStack[ce];if(pe.lexical.indexOf(a)>-1&&!(pe.flags&le&&pe.lexical[0]===a)||!this.treatFunctionsAsVarInScope(pe)&&pe.functions.indexOf(a)>-1){w=!0;break}if(pe.var.push(a),this.inModule&&pe.flags&J&&delete this.undefinedExports[a],pe.flags&be)break}w&&this.raiseRecoverable(x,"Identifier '"+a+"' has already been declared")},cn.checkLocalExport=function(a){this.scopeStack[0].lexical.indexOf(a.name)===-1&&this.scopeStack[0].var.indexOf(a.name)===-1&&(this.undefinedExports[a.name]=a)},cn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},cn.currentVarScope=function(){for(var a=this.scopeStack.length-1;;a--){var c=this.scopeStack[a];if(c.flags&(be|ke|ye))return c}},cn.currentThisScope=function(){for(var a=this.scopeStack.length-1;;a--){var c=this.scopeStack[a];if(c.flags&(be|ke|ye)&&!(c.flags&Y))return c}};var ni=function(c,x,w){this.type="",this.start=x,this.end=0,c.options.locations&&(this.loc=new O(c,w)),c.options.directSourceFile&&(this.sourceFile=c.options.directSourceFile),c.options.ranges&&(this.range=[x,0])},ii=T.prototype;ii.startNode=function(){return new ni(this,this.start,this.startLoc)},ii.startNodeAt=function(a,c){return new ni(this,a,c)};function po(a,c,x,w){return a.type=c,a.end=x,this.options.locations&&(a.loc.end=w),this.options.ranges&&(a.range[1]=x),a}ii.finishNode=function(a,c){return po.call(this,a,c,this.lastTokEnd,this.lastTokEndLoc)},ii.finishNodeAt=function(a,c,x,w){return po.call(this,a,c,x,w)},ii.copyNode=function(a){var c=new ni(this,a.start,this.startLoc);for(var x in a)c[x]=a[x];return c};var Up="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",go="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",mo=go+" Extended_Pictographic",xo=mo,vo=xo+" EBase EComp EMod EPres ExtPict",bo=vo,Hp=bo,$p={9:go,10:mo,11:xo,12:vo,13:bo,14:Hp},qp="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Wp={9:"",10:"",11:"",12:"",13:"",14:qp},yo="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",wo="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Eo=wo+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",So=Eo+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ko=So+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Co=ko+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Gp=Co+" "+Up,Jp={9:wo,10:Eo,11:So,12:ko,13:Co,14:Gp},_o={};function Yp(a){var c=_o[a]={binary:ve($p[a]+" "+yo),binaryOfStrings:ve(Wp[a]),nonBinary:{General_Category:ve(yo),Script:ve(Jp[a])}};c.nonBinary.Script_Extensions=c.nonBinary.Script,c.nonBinary.gc=c.nonBinary.General_Category,c.nonBinary.sc=c.nonBinary.Script,c.nonBinary.scx=c.nonBinary.Script_Extensions}for(var qr=0,Io=[9,10,11,12,13,14];qr<Io.length;qr+=1){var Qp=Io[qr];Yp(Qp)}var we=T.prototype,Oi=function(c,x){this.parent=c,this.base=x||this};Oi.prototype.separatedFrom=function(c){for(var x=this;x;x=x.parent)for(var w=c;w;w=w.parent)if(x.base===w.base&&x!==w)return!0;return!1},Oi.prototype.sibling=function(){return new Oi(this.parent,this.base)};var Ut=function(c){this.parser=c,this.validFlags="gim"+(c.options.ecmaVersion>=6?"uy":"")+(c.options.ecmaVersion>=9?"s":"")+(c.options.ecmaVersion>=13?"d":"")+(c.options.ecmaVersion>=15?"v":""),this.unicodeProperties=_o[c.options.ecmaVersion>=14?14:c.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Ut.prototype.reset=function(c,x,w){var P=w.indexOf("v")!==-1,z=w.indexOf("u")!==-1;this.start=c|0,this.source=x+"",this.flags=w,P&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=z&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=z&&this.parser.options.ecmaVersion>=9)},Ut.prototype.raise=function(c){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+c)},Ut.prototype.at=function(c,x){x===void 0&&(x=!1);var w=this.source,P=w.length;if(c>=P)return-1;var z=w.charCodeAt(c);if(!(x||this.switchU)||z<=55295||z>=57344||c+1>=P)return z;var q=w.charCodeAt(c+1);return q>=56320&&q<=57343?(z<<10)+q-56613888:z},Ut.prototype.nextIndex=function(c,x){x===void 0&&(x=!1);var w=this.source,P=w.length;if(c>=P)return P;var z=w.charCodeAt(c),q;return!(x||this.switchU)||z<=55295||z>=57344||c+1>=P||(q=w.charCodeAt(c+1))<56320||q>57343?c+1:c+2},Ut.prototype.current=function(c){return c===void 0&&(c=!1),this.at(this.pos,c)},Ut.prototype.lookahead=function(c){return c===void 0&&(c=!1),this.at(this.nextIndex(this.pos,c),c)},Ut.prototype.advance=function(c){c===void 0&&(c=!1),this.pos=this.nextIndex(this.pos,c)},Ut.prototype.eat=function(c,x){return x===void 0&&(x=!1),this.current(x)===c?(this.advance(x),!0):!1},Ut.prototype.eatChars=function(c,x){x===void 0&&(x=!1);for(var w=this.pos,P=0,z=c;P<z.length;P+=1){var q=z[P],ce=this.at(w,x);if(ce===-1||ce!==q)return!1;w=this.nextIndex(w,x)}return this.pos=w,!0},we.validateRegExpFlags=function(a){for(var c=a.validFlags,x=a.flags,w=!1,P=!1,z=0;z<x.length;z++){var q=x.charAt(z);c.indexOf(q)===-1&&this.raise(a.start,"Invalid regular expression flag"),x.indexOf(q,z+1)>-1&&this.raise(a.start,"Duplicate regular expression flag"),q==="u"&&(w=!0),q==="v"&&(P=!0)}this.options.ecmaVersion>=15&&w&&P&&this.raise(a.start,"Invalid regular expression flag")};function Zp(a){for(var c in a)return!0;return!1}we.validateRegExpPattern=function(a){this.regexp_pattern(a),!a.switchN&&this.options.ecmaVersion>=9&&Zp(a.groupNames)&&(a.switchN=!0,this.regexp_pattern(a))},we.regexp_pattern=function(a){a.pos=0,a.lastIntValue=0,a.lastStringValue="",a.lastAssertionIsQuantifiable=!1,a.numCapturingParens=0,a.maxBackReference=0,a.groupNames=Object.create(null),a.backReferenceNames.length=0,a.branchID=null,this.regexp_disjunction(a),a.pos!==a.source.length&&(a.eat(41)&&a.raise("Unmatched ')'"),(a.eat(93)||a.eat(125))&&a.raise("Lone quantifier brackets")),a.maxBackReference>a.numCapturingParens&&a.raise("Invalid escape");for(var c=0,x=a.backReferenceNames;c<x.length;c+=1){var w=x[c];a.groupNames[w]||a.raise("Invalid named capture referenced")}},we.regexp_disjunction=function(a){var c=this.options.ecmaVersion>=16;for(c&&(a.branchID=new Oi(a.branchID,null)),this.regexp_alternative(a);a.eat(124);)c&&(a.branchID=a.branchID.sibling()),this.regexp_alternative(a);c&&(a.branchID=a.branchID.parent),this.regexp_eatQuantifier(a,!0)&&a.raise("Nothing to repeat"),a.eat(123)&&a.raise("Lone quantifier brackets")},we.regexp_alternative=function(a){for(;a.pos<a.source.length&&this.regexp_eatTerm(a););},we.regexp_eatTerm=function(a){return this.regexp_eatAssertion(a)?(a.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(a)&&a.switchU&&a.raise("Invalid quantifier"),!0):(a.switchU?this.regexp_eatAtom(a):this.regexp_eatExtendedAtom(a))?(this.regexp_eatQuantifier(a),!0):!1},we.regexp_eatAssertion=function(a){var c=a.pos;if(a.lastAssertionIsQuantifiable=!1,a.eat(94)||a.eat(36))return!0;if(a.eat(92)){if(a.eat(66)||a.eat(98))return!0;a.pos=c}if(a.eat(40)&&a.eat(63)){var x=!1;if(this.options.ecmaVersion>=9&&(x=a.eat(60)),a.eat(61)||a.eat(33))return this.regexp_disjunction(a),a.eat(41)||a.raise("Unterminated group"),a.lastAssertionIsQuantifiable=!x,!0}return a.pos=c,!1},we.regexp_eatQuantifier=function(a,c){return c===void 0&&(c=!1),this.regexp_eatQuantifierPrefix(a,c)?(a.eat(63),!0):!1},we.regexp_eatQuantifierPrefix=function(a,c){return a.eat(42)||a.eat(43)||a.eat(63)||this.regexp_eatBracedQuantifier(a,c)},we.regexp_eatBracedQuantifier=function(a,c){var x=a.pos;if(a.eat(123)){var w=0,P=-1;if(this.regexp_eatDecimalDigits(a)&&(w=a.lastIntValue,a.eat(44)&&this.regexp_eatDecimalDigits(a)&&(P=a.lastIntValue),a.eat(125)))return P!==-1&&P<w&&!c&&a.raise("numbers out of order in {} quantifier"),!0;a.switchU&&!c&&a.raise("Incomplete quantifier"),a.pos=x}return!1},we.regexp_eatAtom=function(a){return this.regexp_eatPatternCharacters(a)||a.eat(46)||this.regexp_eatReverseSolidusAtomEscape(a)||this.regexp_eatCharacterClass(a)||this.regexp_eatUncapturingGroup(a)||this.regexp_eatCapturingGroup(a)},we.regexp_eatReverseSolidusAtomEscape=function(a){var c=a.pos;if(a.eat(92)){if(this.regexp_eatAtomEscape(a))return!0;a.pos=c}return!1},we.regexp_eatUncapturingGroup=function(a){var c=a.pos;if(a.eat(40)){if(a.eat(63)){if(this.options.ecmaVersion>=16){var x=this.regexp_eatModifiers(a),w=a.eat(45);if(x||w){for(var P=0;P<x.length;P++){var z=x.charAt(P);x.indexOf(z,P+1)>-1&&a.raise("Duplicate regular expression modifiers")}if(w){var q=this.regexp_eatModifiers(a);!x&&!q&&a.current()===58&&a.raise("Invalid regular expression modifiers");for(var ce=0;ce<q.length;ce++){var pe=q.charAt(ce);(q.indexOf(pe,ce+1)>-1||x.indexOf(pe)>-1)&&a.raise("Duplicate regular expression modifiers")}}}}if(a.eat(58)){if(this.regexp_disjunction(a),a.eat(41))return!0;a.raise("Unterminated group")}}a.pos=c}return!1},we.regexp_eatCapturingGroup=function(a){if(a.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(a):a.current()===63&&a.raise("Invalid group"),this.regexp_disjunction(a),a.eat(41))return a.numCapturingParens+=1,!0;a.raise("Unterminated group")}return!1},we.regexp_eatModifiers=function(a){for(var c="",x=0;(x=a.current())!==-1&&Xp(x);)c+=L(x),a.advance();return c};function Xp(a){return a===105||a===109||a===115}we.regexp_eatExtendedAtom=function(a){return a.eat(46)||this.regexp_eatReverseSolidusAtomEscape(a)||this.regexp_eatCharacterClass(a)||this.regexp_eatUncapturingGroup(a)||this.regexp_eatCapturingGroup(a)||this.regexp_eatInvalidBracedQuantifier(a)||this.regexp_eatExtendedPatternCharacter(a)},we.regexp_eatInvalidBracedQuantifier=function(a){return this.regexp_eatBracedQuantifier(a,!0)&&a.raise("Nothing to repeat"),!1},we.regexp_eatSyntaxCharacter=function(a){var c=a.current();return Ao(c)?(a.lastIntValue=c,a.advance(),!0):!1};function Ao(a){return a===36||a>=40&&a<=43||a===46||a===63||a>=91&&a<=94||a>=123&&a<=125}we.regexp_eatPatternCharacters=function(a){for(var c=a.pos,x=0;(x=a.current())!==-1&&!Ao(x);)a.advance();return a.pos!==c},we.regexp_eatExtendedPatternCharacter=function(a){var c=a.current();return c!==-1&&c!==36&&!(c>=40&&c<=43)&&c!==46&&c!==63&&c!==91&&c!==94&&c!==124?(a.advance(),!0):!1},we.regexp_groupSpecifier=function(a){if(a.eat(63)){this.regexp_eatGroupName(a)||a.raise("Invalid group");var c=this.options.ecmaVersion>=16,x=a.groupNames[a.lastStringValue];if(x)if(c)for(var w=0,P=x;w<P.length;w+=1){var z=P[w];z.separatedFrom(a.branchID)||a.raise("Duplicate capture group name")}else a.raise("Duplicate capture group name");c?(x||(a.groupNames[a.lastStringValue]=[])).push(a.branchID):a.groupNames[a.lastStringValue]=!0}},we.regexp_eatGroupName=function(a){if(a.lastStringValue="",a.eat(60)){if(this.regexp_eatRegExpIdentifierName(a)&&a.eat(62))return!0;a.raise("Invalid capture group name")}return!1},we.regexp_eatRegExpIdentifierName=function(a){if(a.lastStringValue="",this.regexp_eatRegExpIdentifierStart(a)){for(a.lastStringValue+=L(a.lastIntValue);this.regexp_eatRegExpIdentifierPart(a);)a.lastStringValue+=L(a.lastIntValue);return!0}return!1},we.regexp_eatRegExpIdentifierStart=function(a){var c=a.pos,x=this.options.ecmaVersion>=11,w=a.current(x);return a.advance(x),w===92&&this.regexp_eatRegExpUnicodeEscapeSequence(a,x)&&(w=a.lastIntValue),ed(w)?(a.lastIntValue=w,!0):(a.pos=c,!1)};function ed(a){return b(a,!0)||a===36||a===95}we.regexp_eatRegExpIdentifierPart=function(a){var c=a.pos,x=this.options.ecmaVersion>=11,w=a.current(x);return a.advance(x),w===92&&this.regexp_eatRegExpUnicodeEscapeSequence(a,x)&&(w=a.lastIntValue),td(w)?(a.lastIntValue=w,!0):(a.pos=c,!1)};function td(a){return v(a,!0)||a===36||a===95||a===8204||a===8205}we.regexp_eatAtomEscape=function(a){return this.regexp_eatBackReference(a)||this.regexp_eatCharacterClassEscape(a)||this.regexp_eatCharacterEscape(a)||a.switchN&&this.regexp_eatKGroupName(a)?!0:(a.switchU&&(a.current()===99&&a.raise("Invalid unicode escape"),a.raise("Invalid escape")),!1)},we.regexp_eatBackReference=function(a){var c=a.pos;if(this.regexp_eatDecimalEscape(a)){var x=a.lastIntValue;if(a.switchU)return x>a.maxBackReference&&(a.maxBackReference=x),!0;if(x<=a.numCapturingParens)return!0;a.pos=c}return!1},we.regexp_eatKGroupName=function(a){if(a.eat(107)){if(this.regexp_eatGroupName(a))return a.backReferenceNames.push(a.lastStringValue),!0;a.raise("Invalid named reference")}return!1},we.regexp_eatCharacterEscape=function(a){return this.regexp_eatControlEscape(a)||this.regexp_eatCControlLetter(a)||this.regexp_eatZero(a)||this.regexp_eatHexEscapeSequence(a)||this.regexp_eatRegExpUnicodeEscapeSequence(a,!1)||!a.switchU&&this.regexp_eatLegacyOctalEscapeSequence(a)||this.regexp_eatIdentityEscape(a)},we.regexp_eatCControlLetter=function(a){var c=a.pos;if(a.eat(99)){if(this.regexp_eatControlLetter(a))return!0;a.pos=c}return!1},we.regexp_eatZero=function(a){return a.current()===48&&!Ri(a.lookahead())?(a.lastIntValue=0,a.advance(),!0):!1},we.regexp_eatControlEscape=function(a){var c=a.current();return c===116?(a.lastIntValue=9,a.advance(),!0):c===110?(a.lastIntValue=10,a.advance(),!0):c===118?(a.lastIntValue=11,a.advance(),!0):c===102?(a.lastIntValue=12,a.advance(),!0):c===114?(a.lastIntValue=13,a.advance(),!0):!1},we.regexp_eatControlLetter=function(a){var c=a.current();return To(c)?(a.lastIntValue=c%32,a.advance(),!0):!1};function To(a){return a>=65&&a<=90||a>=97&&a<=122}we.regexp_eatRegExpUnicodeEscapeSequence=function(a,c){c===void 0&&(c=!1);var x=a.pos,w=c||a.switchU;if(a.eat(117)){if(this.regexp_eatFixedHexDigits(a,4)){var P=a.lastIntValue;if(w&&P>=55296&&P<=56319){var z=a.pos;if(a.eat(92)&&a.eat(117)&&this.regexp_eatFixedHexDigits(a,4)){var q=a.lastIntValue;if(q>=56320&&q<=57343)return a.lastIntValue=(P-55296)*1024+(q-56320)+65536,!0}a.pos=z,a.lastIntValue=P}return!0}if(w&&a.eat(123)&&this.regexp_eatHexDigits(a)&&a.eat(125)&&nd(a.lastIntValue))return!0;w&&a.raise("Invalid unicode escape"),a.pos=x}return!1};function nd(a){return a>=0&&a<=1114111}we.regexp_eatIdentityEscape=function(a){if(a.switchU)return this.regexp_eatSyntaxCharacter(a)?!0:a.eat(47)?(a.lastIntValue=47,!0):!1;var c=a.current();return c!==99&&(!a.switchN||c!==107)?(a.lastIntValue=c,a.advance(),!0):!1},we.regexp_eatDecimalEscape=function(a){a.lastIntValue=0;var c=a.current();if(c>=49&&c<=57){do a.lastIntValue=10*a.lastIntValue+(c-48),a.advance();while((c=a.current())>=48&&c<=57);return!0}return!1};var No=0,Xt=1,At=2;we.regexp_eatCharacterClassEscape=function(a){var c=a.current();if(id(c))return a.lastIntValue=-1,a.advance(),Xt;var x=!1;if(a.switchU&&this.options.ecmaVersion>=9&&((x=c===80)||c===112)){a.lastIntValue=-1,a.advance();var w;if(a.eat(123)&&(w=this.regexp_eatUnicodePropertyValueExpression(a))&&a.eat(125))return x&&w===At&&a.raise("Invalid property name"),w;a.raise("Invalid property name")}return No};function id(a){return a===100||a===68||a===115||a===83||a===119||a===87}we.regexp_eatUnicodePropertyValueExpression=function(a){var c=a.pos;if(this.regexp_eatUnicodePropertyName(a)&&a.eat(61)){var x=a.lastStringValue;if(this.regexp_eatUnicodePropertyValue(a)){var w=a.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(a,x,w),Xt}}if(a.pos=c,this.regexp_eatLoneUnicodePropertyNameOrValue(a)){var P=a.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(a,P)}return No},we.regexp_validateUnicodePropertyNameAndValue=function(a,c,x){te(a.unicodeProperties.nonBinary,c)||a.raise("Invalid property name"),a.unicodeProperties.nonBinary[c].test(x)||a.raise("Invalid property value")},we.regexp_validateUnicodePropertyNameOrValue=function(a,c){if(a.unicodeProperties.binary.test(c))return Xt;if(a.switchV&&a.unicodeProperties.binaryOfStrings.test(c))return At;a.raise("Invalid property name")},we.regexp_eatUnicodePropertyName=function(a){var c=0;for(a.lastStringValue="";Po(c=a.current());)a.lastStringValue+=L(c),a.advance();return a.lastStringValue!==""};function Po(a){return To(a)||a===95}we.regexp_eatUnicodePropertyValue=function(a){var c=0;for(a.lastStringValue="";rd(c=a.current());)a.lastStringValue+=L(c),a.advance();return a.lastStringValue!==""};function rd(a){return Po(a)||Ri(a)}we.regexp_eatLoneUnicodePropertyNameOrValue=function(a){return this.regexp_eatUnicodePropertyValue(a)},we.regexp_eatCharacterClass=function(a){if(a.eat(91)){var c=a.eat(94),x=this.regexp_classContents(a);return a.eat(93)||a.raise("Unterminated character class"),c&&x===At&&a.raise("Negated character class may contain strings"),!0}return!1},we.regexp_classContents=function(a){return a.current()===93?Xt:a.switchV?this.regexp_classSetExpression(a):(this.regexp_nonEmptyClassRanges(a),Xt)},we.regexp_nonEmptyClassRanges=function(a){for(;this.regexp_eatClassAtom(a);){var c=a.lastIntValue;if(a.eat(45)&&this.regexp_eatClassAtom(a)){var x=a.lastIntValue;a.switchU&&(c===-1||x===-1)&&a.raise("Invalid character class"),c!==-1&&x!==-1&&c>x&&a.raise("Range out of order in character class")}}},we.regexp_eatClassAtom=function(a){var c=a.pos;if(a.eat(92)){if(this.regexp_eatClassEscape(a))return!0;if(a.switchU){var x=a.current();(x===99||Lo(x))&&a.raise("Invalid class escape"),a.raise("Invalid escape")}a.pos=c}var w=a.current();return w!==93?(a.lastIntValue=w,a.advance(),!0):!1},we.regexp_eatClassEscape=function(a){var c=a.pos;if(a.eat(98))return a.lastIntValue=8,!0;if(a.switchU&&a.eat(45))return a.lastIntValue=45,!0;if(!a.switchU&&a.eat(99)){if(this.regexp_eatClassControlLetter(a))return!0;a.pos=c}return this.regexp_eatCharacterClassEscape(a)||this.regexp_eatCharacterEscape(a)},we.regexp_classSetExpression=function(a){var c=Xt,x;if(!this.regexp_eatClassSetRange(a))if(x=this.regexp_eatClassSetOperand(a)){x===At&&(c=At);for(var w=a.pos;a.eatChars([38,38]);){if(a.current()!==38&&(x=this.regexp_eatClassSetOperand(a))){x!==At&&(c=Xt);continue}a.raise("Invalid character in character class")}if(w!==a.pos)return c;for(;a.eatChars([45,45]);)this.regexp_eatClassSetOperand(a)||a.raise("Invalid character in character class");if(w!==a.pos)return c}else a.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(a)){if(x=this.regexp_eatClassSetOperand(a),!x)return c;x===At&&(c=At)}},we.regexp_eatClassSetRange=function(a){var c=a.pos;if(this.regexp_eatClassSetCharacter(a)){var x=a.lastIntValue;if(a.eat(45)&&this.regexp_eatClassSetCharacter(a)){var w=a.lastIntValue;return x!==-1&&w!==-1&&x>w&&a.raise("Range out of order in character class"),!0}a.pos=c}return!1},we.regexp_eatClassSetOperand=function(a){return this.regexp_eatClassSetCharacter(a)?Xt:this.regexp_eatClassStringDisjunction(a)||this.regexp_eatNestedClass(a)},we.regexp_eatNestedClass=function(a){var c=a.pos;if(a.eat(91)){var x=a.eat(94),w=this.regexp_classContents(a);if(a.eat(93))return x&&w===At&&a.raise("Negated character class may contain strings"),w;a.pos=c}if(a.eat(92)){var P=this.regexp_eatCharacterClassEscape(a);if(P)return P;a.pos=c}return null},we.regexp_eatClassStringDisjunction=function(a){var c=a.pos;if(a.eatChars([92,113])){if(a.eat(123)){var x=this.regexp_classStringDisjunctionContents(a);if(a.eat(125))return x}else a.raise("Invalid escape");a.pos=c}return null},we.regexp_classStringDisjunctionContents=function(a){for(var c=this.regexp_classString(a);a.eat(124);)this.regexp_classString(a)===At&&(c=At);return c},we.regexp_classString=function(a){for(var c=0;this.regexp_eatClassSetCharacter(a);)c++;return c===1?Xt:At},we.regexp_eatClassSetCharacter=function(a){var c=a.pos;if(a.eat(92))return this.regexp_eatCharacterEscape(a)||this.regexp_eatClassSetReservedPunctuator(a)?!0:a.eat(98)?(a.lastIntValue=8,!0):(a.pos=c,!1);var x=a.current();return x<0||x===a.lookahead()&&ad(x)||sd(x)?!1:(a.advance(),a.lastIntValue=x,!0)};function ad(a){return a===33||a>=35&&a<=38||a>=42&&a<=44||a===46||a>=58&&a<=64||a===94||a===96||a===126}function sd(a){return a===40||a===41||a===45||a===47||a>=91&&a<=93||a>=123&&a<=125}we.regexp_eatClassSetReservedPunctuator=function(a){var c=a.current();return od(c)?(a.lastIntValue=c,a.advance(),!0):!1};function od(a){return a===33||a===35||a===37||a===38||a===44||a===45||a>=58&&a<=62||a===64||a===96||a===126}we.regexp_eatClassControlLetter=function(a){var c=a.current();return Ri(c)||c===95?(a.lastIntValue=c%32,a.advance(),!0):!1},we.regexp_eatHexEscapeSequence=function(a){var c=a.pos;if(a.eat(120)){if(this.regexp_eatFixedHexDigits(a,2))return!0;a.switchU&&a.raise("Invalid escape"),a.pos=c}return!1},we.regexp_eatDecimalDigits=function(a){var c=a.pos,x=0;for(a.lastIntValue=0;Ri(x=a.current());)a.lastIntValue=10*a.lastIntValue+(x-48),a.advance();return a.pos!==c};function Ri(a){return a>=48&&a<=57}we.regexp_eatHexDigits=function(a){var c=a.pos,x=0;for(a.lastIntValue=0;Oo(x=a.current());)a.lastIntValue=16*a.lastIntValue+Ro(x),a.advance();return a.pos!==c};function Oo(a){return a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102}function Ro(a){return a>=65&&a<=70?10+(a-65):a>=97&&a<=102?10+(a-97):a-48}we.regexp_eatLegacyOctalEscapeSequence=function(a){if(this.regexp_eatOctalDigit(a)){var c=a.lastIntValue;if(this.regexp_eatOctalDigit(a)){var x=a.lastIntValue;c<=3&&this.regexp_eatOctalDigit(a)?a.lastIntValue=c*64+x*8+a.lastIntValue:a.lastIntValue=c*8+x}else a.lastIntValue=c;return!0}return!1},we.regexp_eatOctalDigit=function(a){var c=a.current();return Lo(c)?(a.lastIntValue=c-48,a.advance(),!0):(a.lastIntValue=0,!1)};function Lo(a){return a>=48&&a<=55}we.regexp_eatFixedHexDigits=function(a,c){var x=a.pos;a.lastIntValue=0;for(var w=0;w<c;++w){var P=a.current();if(!Oo(P))return a.pos=x,!1;a.lastIntValue=16*a.lastIntValue+Ro(P),a.advance()}return!0};var Li=function(c){this.type=c.type,this.value=c.value,this.start=c.start,this.end=c.end,c.options.locations&&(this.loc=new O(c,c.startLoc,c.endLoc)),c.options.ranges&&(this.range=[c.start,c.end])},De=T.prototype;De.next=function(a){!a&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Li(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},De.getToken=function(){return this.next(),new Li(this)},typeof Symbol<"u"&&(De[Symbol.iterator]=function(){var a=this;return{next:function(){var c=a.getToken();return{done:c.type===g.eof,value:c}}}}),De.nextToken=function(){var a=this.curContext();if((!a||!a.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(g.eof);if(a.override)return a.override(this);this.readToken(this.fullCharCodeAtPos())},De.readToken=function(a){return b(a,this.options.ecmaVersion>=6)||a===92?this.readWord():this.getTokenFromCode(a)},De.fullCharCodeAt=function(a){var c=this.input.charCodeAt(a);if(c<=55295||c>=56320)return c;var x=this.input.charCodeAt(a+1);return x<=56319||x>=57344?c:(c<<10)+x-56613888},De.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},De.skipBlockComment=function(){var a=this.options.onComment&&this.curPosition(),c=this.pos,x=this.input.indexOf("*/",this.pos+=2);if(x===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=x+2,this.options.locations)for(var w=void 0,P=c;(w=R(this.input,P,this.pos))>-1;)++this.curLine,P=this.lineStart=w;this.options.onComment&&this.options.onComment(!0,this.input.slice(c+2,x),c,this.pos,a,this.curPosition())},De.skipLineComment=function(a){for(var c=this.pos,x=this.options.onComment&&this.curPosition(),w=this.input.charCodeAt(this.pos+=a);this.pos<this.input.length&&!F(w);)w=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(c+a,this.pos),c,this.pos,x,this.curPosition())},De.skipSpace=function(){e:for(;this.pos<this.input.length;){var a=this.input.charCodeAt(this.pos);switch(a){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(a>8&&a<14||a>=5760&&j.test(String.fromCharCode(a)))++this.pos;else break e}}},De.finishToken=function(a,c){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var x=this.type;this.type=a,this.value=c,this.updateContext(x)},De.readToken_dot=function(){var a=this.input.charCodeAt(this.pos+1);if(a>=48&&a<=57)return this.readNumber(!0);var c=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&a===46&&c===46?(this.pos+=3,this.finishToken(g.ellipsis)):(++this.pos,this.finishToken(g.dot))},De.readToken_slash=function(){var a=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):a===61?this.finishOp(g.assign,2):this.finishOp(g.slash,1)},De.readToken_mult_modulo_exp=function(a){var c=this.input.charCodeAt(this.pos+1),x=1,w=a===42?g.star:g.modulo;return this.options.ecmaVersion>=7&&a===42&&c===42&&(++x,w=g.starstar,c=this.input.charCodeAt(this.pos+2)),c===61?this.finishOp(g.assign,x+1):this.finishOp(w,x)},De.readToken_pipe_amp=function(a){var c=this.input.charCodeAt(this.pos+1);if(c===a){if(this.options.ecmaVersion>=12){var x=this.input.charCodeAt(this.pos+2);if(x===61)return this.finishOp(g.assign,3)}return this.finishOp(a===124?g.logicalOR:g.logicalAND,2)}return c===61?this.finishOp(g.assign,2):this.finishOp(a===124?g.bitwiseOR:g.bitwiseAND,1)},De.readToken_caret=function(){var a=this.input.charCodeAt(this.pos+1);return a===61?this.finishOp(g.assign,2):this.finishOp(g.bitwiseXOR,1)},De.readToken_plus_min=function(a){var c=this.input.charCodeAt(this.pos+1);return c===a?c===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||A.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(g.incDec,2):c===61?this.finishOp(g.assign,2):this.finishOp(g.plusMin,1)},De.readToken_lt_gt=function(a){var c=this.input.charCodeAt(this.pos+1),x=1;return c===a?(x=a===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+x)===61?this.finishOp(g.assign,x+1):this.finishOp(g.bitShift,x)):c===33&&a===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(c===61&&(x=2),this.finishOp(g.relational,x))},De.readToken_eq_excl=function(a){var c=this.input.charCodeAt(this.pos+1);return c===61?this.finishOp(g.equality,this.input.charCodeAt(this.pos+2)===61?3:2):a===61&&c===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(g.arrow)):this.finishOp(a===61?g.eq:g.prefix,1)},De.readToken_question=function(){var a=this.options.ecmaVersion;if(a>=11){var c=this.input.charCodeAt(this.pos+1);if(c===46){var x=this.input.charCodeAt(this.pos+2);if(x<48||x>57)return this.finishOp(g.questionDot,2)}if(c===63){if(a>=12){var w=this.input.charCodeAt(this.pos+2);if(w===61)return this.finishOp(g.assign,3)}return this.finishOp(g.coalesce,2)}}return this.finishOp(g.question,1)},De.readToken_numberSign=function(){var a=this.options.ecmaVersion,c=35;if(a>=13&&(++this.pos,c=this.fullCharCodeAtPos(),b(c,!0)||c===92))return this.finishToken(g.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+L(c)+"'")},De.getTokenFromCode=function(a){switch(a){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(g.parenL);case 41:return++this.pos,this.finishToken(g.parenR);case 59:return++this.pos,this.finishToken(g.semi);case 44:return++this.pos,this.finishToken(g.comma);case 91:return++this.pos,this.finishToken(g.bracketL);case 93:return++this.pos,this.finishToken(g.bracketR);case 123:return++this.pos,this.finishToken(g.braceL);case 125:return++this.pos,this.finishToken(g.braceR);case 58:return++this.pos,this.finishToken(g.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(g.backQuote);case 48:var c=this.input.charCodeAt(this.pos+1);if(c===120||c===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(c===111||c===79)return this.readRadixNumber(8);if(c===98||c===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(a);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(a);case 124:case 38:return this.readToken_pipe_amp(a);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(a);case 60:case 62:return this.readToken_lt_gt(a);case 61:case 33:return this.readToken_eq_excl(a);case 63:return this.readToken_question();case 126:return this.finishOp(g.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+L(a)+"'")},De.finishOp=function(a,c){var x=this.input.slice(this.pos,this.pos+c);return this.pos+=c,this.finishToken(a,x)},De.readRegexp=function(){for(var a,c,x=this.pos;;){this.pos>=this.input.length&&this.raise(x,"Unterminated regular expression");var w=this.input.charAt(this.pos);if(A.test(w)&&this.raise(x,"Unterminated regular expression"),a)a=!1;else{if(w==="[")c=!0;else if(w==="]"&&c)c=!1;else if(w==="/"&&!c)break;a=w==="\\"}++this.pos}var P=this.input.slice(x,this.pos);++this.pos;var z=this.pos,q=this.readWord1();this.containsEsc&&this.unexpected(z);var ce=this.regexpState||(this.regexpState=new Ut(this));ce.reset(x,P,q),this.validateRegExpFlags(ce),this.validateRegExpPattern(ce);var pe=null;try{pe=new RegExp(P,q)}catch{}return this.finishToken(g.regexp,{pattern:P,flags:q,value:pe})},De.readInt=function(a,c,x){for(var w=this.options.ecmaVersion>=12&&c===void 0,P=x&&this.input.charCodeAt(this.pos)===48,z=this.pos,q=0,ce=0,pe=0,Ne=c??1/0;pe<Ne;++pe,++this.pos){var Fe=this.input.charCodeAt(this.pos),Xe=void 0;if(w&&Fe===95){P&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),ce===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),pe===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),ce=Fe;continue}if(Fe>=97?Xe=Fe-97+10:Fe>=65?Xe=Fe-65+10:Fe>=48&&Fe<=57?Xe=Fe-48:Xe=1/0,Xe>=a)break;ce=Fe,q=q*a+Xe}return w&&ce===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===z||c!=null&&this.pos-z!==c?null:q};function ld(a,c){return c?parseInt(a,8):parseFloat(a.replace(/_/g,""))}function Mo(a){return typeof BigInt!="function"?null:BigInt(a.replace(/_/g,""))}De.readRadixNumber=function(a){var c=this.pos;this.pos+=2;var x=this.readInt(a);return x==null&&this.raise(this.start+2,"Expected number in radix "+a),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(x=Mo(this.input.slice(c,this.pos)),++this.pos):b(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(g.num,x)},De.readNumber=function(a){var c=this.pos;!a&&this.readInt(10,void 0,!0)===null&&this.raise(c,"Invalid number");var x=this.pos-c>=2&&this.input.charCodeAt(c)===48;x&&this.strict&&this.raise(c,"Invalid number");var w=this.input.charCodeAt(this.pos);if(!x&&!a&&this.options.ecmaVersion>=11&&w===110){var P=Mo(this.input.slice(c,this.pos));return++this.pos,b(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(g.num,P)}x&&/[89]/.test(this.input.slice(c,this.pos))&&(x=!1),w===46&&!x&&(++this.pos,this.readInt(10),w=this.input.charCodeAt(this.pos)),(w===69||w===101)&&!x&&(w=this.input.charCodeAt(++this.pos),(w===43||w===45)&&++this.pos,this.readInt(10)===null&&this.raise(c,"Invalid number")),b(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var z=ld(this.input.slice(c,this.pos),x);return this.finishToken(g.num,z)},De.readCodePoint=function(){var a=this.input.charCodeAt(this.pos),c;if(a===123){this.options.ecmaVersion<6&&this.unexpected();var x=++this.pos;c=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,c>1114111&&this.invalidStringToken(x,"Code point out of bounds")}else c=this.readHexChar(4);return c},De.readString=function(a){for(var c="",x=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var w=this.input.charCodeAt(this.pos);if(w===a)break;w===92?(c+=this.input.slice(x,this.pos),c+=this.readEscapedChar(!1),x=this.pos):w===8232||w===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(F(w)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return c+=this.input.slice(x,this.pos++),this.finishToken(g.string,c)};var Fo={};De.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(a){if(a===Fo)this.readInvalidTemplateToken();else throw a}this.inTemplateElement=!1},De.invalidStringToken=function(a,c){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Fo;this.raise(a,c)},De.readTmplToken=function(){for(var a="",c=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var x=this.input.charCodeAt(this.pos);if(x===96||x===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===g.template||this.type===g.invalidTemplate)?x===36?(this.pos+=2,this.finishToken(g.dollarBraceL)):(++this.pos,this.finishToken(g.backQuote)):(a+=this.input.slice(c,this.pos),this.finishToken(g.template,a));if(x===92)a+=this.input.slice(c,this.pos),a+=this.readEscapedChar(!0),c=this.pos;else if(F(x)){switch(a+=this.input.slice(c,this.pos),++this.pos,x){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:a+=`
|
|
28
|
+
`;break;default:a+=String.fromCharCode(x);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),c=this.pos}else++this.pos}},De.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(g.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
75
29
|
`&&++this.pos;case`
|
|
76
|
-
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},
|
|
77
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return
|
|
30
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},De.readEscapedChar=function(a){var c=this.input.charCodeAt(++this.pos);switch(++this.pos,c){case 110:return`
|
|
31
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return L(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),a){var x=this.pos-1;this.invalidStringToken(x,"Invalid escape sequence in template string")}default:if(c>=48&&c<=55){var w=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],P=parseInt(w,8);return P>255&&(w=w.slice(0,-1),P=parseInt(w,8)),this.pos+=w.length-1,c=this.input.charCodeAt(this.pos),(w!=="0"||c===56||c===57)&&(this.strict||a)&&this.invalidStringToken(this.pos-1-w.length,a?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(P)}return F(c)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(c)}},De.readHexChar=function(a){var c=this.pos,x=this.readInt(16,a);return x===null&&this.invalidStringToken(c,"Bad character escape sequence"),x},De.readWord1=function(){this.containsEsc=!1;for(var a="",c=!0,x=this.pos,w=this.options.ecmaVersion>=6;this.pos<this.input.length;){var P=this.fullCharCodeAtPos();if(v(P,w))this.pos+=P<=65535?1:2;else if(P===92){this.containsEsc=!0,a+=this.input.slice(x,this.pos);var z=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var q=this.readCodePoint();(c?b:v)(q,w)||this.invalidStringToken(z,"Invalid Unicode escape"),a+=L(q),x=this.pos}else break;c=!1}return a+this.input.slice(x,this.pos)},De.readWord=function(){var a=this.readWord1(),c=g.name;return this.keywords.test(a)&&(c=N[a]),this.finishToken(c,a)};var Do="8.16.0";T.acorn={Parser:T,version:Do,defaultOptions:W,Position:ne,SourceLocation:O,getLineInfo:he,Node:ni,TokenType:S,tokTypes:g,keywordTypes:N,TokContext:It,tokContexts:Ze,isIdentifierChar:v,isIdentifierStart:b,Token:Li,isNewLine:F,lineBreak:A,lineBreakG:M,nonASCIIwhitespace:j};function ud(a,c){return T.parse(a,c)}function cd(a,c,x){return T.parseExpressionAt(a,c,x)}function hd(a,c){return T.tokenizer(a,c)}n.Node=ni,n.Parser=T,n.Position=ne,n.SourceLocation=O,n.TokContext=It,n.Token=Li,n.TokenType=S,n.defaultOptions=W,n.getLineInfo=he,n.isIdentifierChar=v,n.isIdentifierStart=b,n.isNewLine=F,n.keywordTypes=N,n.lineBreak=A,n.lineBreakG=M,n.nonASCIIwhitespace=j,n.parse=ud,n.parseExpressionAt=cd,n.tokContexts=Ze,n.tokTypes=g,n.tokenizer=hd,n.version=Do}))})(li,li.exports)),li.exports}var hl;function wm(){return hl||(hl=1,(function(e){const t=bm(),n=/^[\da-fA-F]+$/,i=/^\d+$/,r=new WeakMap;function s(u){u=u.Parser.acorn||u;let f=r.get(u);if(!f){const p=u.tokTypes,h=u.TokContext,d=u.TokenType,m=new h("<tag",!1),b=new h("</tag",!1),v=new h("<tag>...</tag>",!0,!0),S={tc_oTag:m,tc_cTag:b,tc_expr:v},E={jsxName:new d("jsxName"),jsxText:new d("jsxText",{beforeExpr:!0}),jsxTagStart:new d("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new d("jsxTagEnd")};E.jsxTagStart.updateContext=function(){this.context.push(v),this.context.push(m),this.exprAllowed=!1},E.jsxTagEnd.updateContext=function(k){let I=this.context.pop();I===m&&k===p.slash||I===b?(this.context.pop(),this.exprAllowed=this.curContext()===v):this.exprAllowed=!0},f={tokContexts:S,tokTypes:E},r.set(u,f)}return f}function o(u){if(!u)return u;if(u.type==="JSXIdentifier")return u.name;if(u.type==="JSXNamespacedName")return u.namespace.name+":"+u.name.name;if(u.type==="JSXMemberExpression")return o(u.object)+"."+o(u.property)}e.exports=function(u){return u=u||{},function(f){return l({allowNamespaces:u.allowNamespaces!==!1,allowNamespacedObjects:!!u.allowNamespacedObjects},f)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return s(cl()).tokTypes},configurable:!0,enumerable:!0});function l(u,f){const p=f.acorn||cl(),h=s(p),d=p.tokTypes,m=h.tokTypes,b=p.tokContexts,v=h.tokContexts.tc_oTag,S=h.tokContexts.tc_cTag,E=h.tokContexts.tc_expr,k=p.isNewLine,I=p.isIdentifierStart,N=p.isIdentifierChar;return class extends f{static get acornJsx(){return h}jsx_readToken(){let y="",g=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let A=this.input.charCodeAt(this.pos);switch(A){case 60:case 123:return this.pos===this.start?A===60&&this.exprAllowed?(++this.pos,this.finishToken(m.jsxTagStart)):this.getTokenFromCode(A):(y+=this.input.slice(g,this.pos),this.finishToken(m.jsxText,y));case 38:y+=this.input.slice(g,this.pos),y+=this.jsx_readEntity(),g=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(A===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:k(A)?(y+=this.input.slice(g,this.pos),y+=this.jsx_readNewLine(!0),g=this.pos):++this.pos}}}jsx_readNewLine(y){let g=this.input.charCodeAt(this.pos),A;return++this.pos,g===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,A=y?`
|
|
78
32
|
`:`\r
|
|
79
|
-
`):
|
|
80
|
-
`;break}case-3:{
|
|
81
|
-
`;break}case-2:{a=" ";break}case-1:{if(n)continue;a=" ";break}default:a=String.fromCharCode(i)}n=i===-2,r.push(a)}return r.join("")}function ds(e){const t=e||{},r=t.loc||{},n=t.range||[void 0,void 0],i=Sf(r.start,n[0]||t.start),a=Sf(r.end,n[1]||t.end);if(i&&a)return{start:i,end:a}}function Sf(e,t){if(e&&typeof e=="object"){const r="line"in e?Su(e.line):void 0,n="column"in e?Su(e.column):void 0;if(r&&n!==void 0)return{line:r,column:n+1,offset:Su(t)}}}function Su(e){return typeof e=="number"&&e>-1?e:void 0}const AI=2,Ci="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",TI="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",PI="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",Cf="#unexpected-type-in-code-expected-an-object-spread-spread",NI="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",OI="#could-not-parse-expression-with-acorn";function js(e,t,r,n,i,a,o,s,u,c,d){const h=this,f=this.events.length+3;let g=0,x,v;return b;function b(I){return e.enter(r),e.enter(n),e.consume(I),e.exit(n),x=h.now(),y}function y(I){if(I===null){if(v)throw v;const w=new dt("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:h.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw w.url=Ci+TI,w}if(Fe(I))return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),C;if(I===125&&g===0){const w=a?RI.call(h,a,o,i,f,x,c||!1,u||!1):{type:"ok",estree:void 0};if(w.type==="ok"){e.enter(n),e.consume(I),e.exit(n);const m=e.exit(r);return s&&w.estree&&Object.assign(m,{estree:w.estree}),t}return v=w.message,e.enter(i),e.consume(I),k}return e.enter(i),k(I)}function k(I){return I===125&&g===0||I===null||Fe(I)?(e.exit(i),y(I)):(I===123&&!a?g+=1:I===125&&(g-=1),e.consume(I),k)}function C(I){const w=h.now();if(w.line!==x.line&&!d&&h.parser.lazy[w.line]){const m=new dt("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:h.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw m.url=Ci+PI,m}return Je(I)?nt(e,y,"linePrefix",AI+1)(I):y(I)}}function RI(e,t,r,n,i,a,o){const s=Vb(this.events.slice(n),{acorn:e,tokenTypes:[r],acornOptions:t,start:i,expression:!0,allowEmpty:a,prefix:o?"({":"",suffix:o?"})":""}),u=s.estree;if(o&&u){const c=u.body[0];if(c.type!=="ExpressionStatement"||c.expression.type!=="ObjectExpression"){const d=ds(c),h=new dt("Unexpected `"+c.type+"` in code: expected an object spread (`{...spread}`)",{place:d.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw h.url=Ci+Cf,h}if(c.expression.properties[1]){const d=ds(c.expression.properties[1]),h=new dt("Unexpected extra content in spread: only a single spread is supported",{place:d.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw h.url=Ci+NI,h}if(c.expression.properties[0]&&c.expression.properties[0].type!=="SpreadElement"){const d=ds(c.expression.properties[0]),h=new dt("Unexpected `"+c.expression.properties[0].type+"` in code: only spread elements are supported",{place:d.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw h.url=Ci+Cf,h}}if(s.error){const c=new dt("Could not parse expression with acorn",{cause:s.error,place:{line:s.error.loc.line,column:s.error.loc.column+1,offset:s.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return c.url=Ci+OI,{type:"nok",message:c}}return{type:"ok",estree:u}}function LI(e){const t=e||{},r=t.addResult,n=t.acorn,i=t.spread;let a=t.allowEmpty,o;if(a==null&&(a=!0),n){if(!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");o=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions)}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{123:{name:"mdxFlowExpression",tokenize:s,concrete:!0}},text:{123:{name:"mdxTextExpression",tokenize:u}}};function s(c,d,h){const f=this;return g;function g(y){return x(y)}function x(y){return js.call(f,c,v,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",n,o,r,i,a)(y)}function v(y){return Je(y)?nt(c,b,"whitespace")(y):b(y)}function b(y){const k=f.parser.constructs.flow[60],I=(Array.isArray(k)?k:k?[k]:[]).find(function(w){return w.name==="mdxJsxFlowTag"});return y===60&&I?c.attempt(I,b,h)(y):y===null||Fe(y)?d(y):h(y)}}function u(c,d){const h=this;return f;function f(g){return js.call(h,c,d,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",n,o,r,i,a,!0)(g)}}}const DI=/[$_\p{ID_Start}]/u,VI=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,MI=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,jI={};function Rr(e){return e?DI.test(String.fromCodePoint(e)):!1}function ra(e,t){const n=(t||jI).jsx?MI:VI;return e?n.test(String.fromCodePoint(e)):!1}const Ef="https://github.com/micromark/micromark-extension-mdx-jsx";function Mb(e,t,r,n,i,a,o,s,u,c,d,h,f,g,x,v,b,y,k,C,I,w,m,T,P,V,O,B,F,J,U,Y){const Z=this;let le,Q;return fe;function fe(D){return e.enter(s),e.enter(u),e.consume(D),e.exit(u),E}function E(D){return ot(D)?r(D):(le=te,Be(D))}function te(D){if(D===47)return e.enter(c),e.consume(D),e.exit(c),le=ae,Be;if(D===62)return Ae(D);if(D!==null&&D>=0&&Rr(D))return e.enter(h),e.enter(f),e.consume(D),N;pe(D,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(D===33?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function ae(D){if(D===62)return Ae(D);if(D!==null&&D>=0&&Rr(D))return e.enter(h),e.enter(f),e.consume(D),N;pe(D,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(D===42||D===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function N(D){if(D!==null&&D>=0&&ra(D,{jsx:!0}))return e.consume(D),N;if(D===46||D===47||D===58||D===62||D===123||ot(D)||Yt(D))return e.exit(f),le=ee,Be(D);pe(D,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(D===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function ee(D){if(D===46)return e.enter(g),e.consume(D),e.exit(g),le=H,Be;if(D===58)return e.enter(v),e.consume(D),e.exit(v),le=ie,Be;if(D===47||D===62||D===123||D!==null&&D>=0&&Rr(D))return e.exit(h),he(D);pe(D,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function H(D){if(D!==null&&D>=0&&Rr(D))return e.enter(x),e.consume(D),W;pe(D,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function W(D){if(D!==null&&D>=0&&ra(D,{jsx:!0}))return e.consume(D),W;if(D===46||D===47||D===62||D===123||ot(D)||Yt(D))return e.exit(x),le=$,Be(D);pe(D,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(D===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function $(D){if(D===46)return e.enter(g),e.consume(D),e.exit(g),le=H,Be;if(D===47||D===62||D===123||D!==null&&D>=0&&Rr(D))return e.exit(h),he(D);pe(D,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ie(D){if(D!==null&&D>=0&&Rr(D))return e.enter(b),e.consume(D),oe;pe(D,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(D===43||D!==null&&D>46&&D<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function oe(D){if(D!==null&&D>=0&&ra(D,{jsx:!0}))return e.consume(D),oe;if(D===47||D===62||D===123||ot(D)||Yt(D))return e.exit(b),le=de,Be(D);pe(D,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function de(D){if(D===47||D===62||D===123||D!==null&&D>=0&&Rr(D))return e.exit(h),he(D);pe(D,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function he(D){if(D===47)return e.enter(d),e.consume(D),e.exit(d),le=_e,Be;if(D===62)return Ae(D);if(D===123)return js.call(Z,e,K,y,k,C,n,i,a,!0,!1,o)(D);if(D!==null&&D>=0&&Rr(D))return e.enter(I),e.enter(w),e.enter(m),e.consume(D),xe;pe(D,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function K(D){return le=he,Be(D)}function xe(D){if(D!==null&&D>=0&&ra(D,{jsx:!0}))return e.consume(D),xe;if(D===47||D===58||D===61||D===62||D===123||ot(D)||Yt(D))return e.exit(m),le=q,Be(D);pe(D,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function q(D){if(D===58)return e.enter(T),e.consume(D),e.exit(T),le=re,Be;if(D===61)return e.exit(w),e.enter(V),e.consume(D),e.exit(V),le=Ce,Be;if(D===47||D===62||D===123||ot(D)||Yt(D)||D!==null&&D>=0&&Rr(D))return e.exit(w),e.exit(I),le=he,Be(D);pe(D,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function re(D){if(D!==null&&D>=0&&Rr(D))return e.enter(P),e.consume(D),ue;pe(D,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function ue(D){if(D!==null&&D>=0&&ra(D,{jsx:!0}))return e.consume(D),ue;if(D===47||D===61||D===62||D===123||ot(D)||Yt(D))return e.exit(P),e.exit(w),le=ve,Be(D);pe(D,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function ve(D){if(D===61)return e.enter(V),e.consume(D),e.exit(V),le=Ce,Be;if(D===47||D===62||D===123||D!==null&&D>=0&&Rr(D))return e.exit(I),he(D);pe(D,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Ce(D){if(D===34||D===39)return e.enter(O),e.enter(B),e.consume(D),e.exit(B),Q=D,Ie;if(D===123)return js.call(Z,e,Pe,J,U,Y,n,i,a,!1,!1,o)(D);pe(D,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(D===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function Pe(D){return e.exit(I),le=he,Be(D)}function Ie(D){return D===null&&pe(D,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(Q)+"`"),D===Q?(e.enter(B),e.consume(D),e.exit(B),e.exit(O),e.exit(I),Q=void 0,le=he,Be):Fe(D)?(le=Ie,Be(D)):(e.enter(F),Ue(D))}function Ue(D){return D===null||D===Q||Fe(D)?(e.exit(F),Ie(D)):(e.consume(D),Ue)}function _e(D){if(D===62)return Ae(D);pe(D,"after self-closing slash","`>` to end the tag"+(D===42||D===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function Ae(D){return e.enter(u),e.consume(D),e.exit(u),e.exit(s),t}function Be(D){return Fe(D)?(e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),ge):Je(D)||Yt(D)?(e.enter("esWhitespace"),Nt(D)):le(D)}function Nt(D){return Fe(D)?(e.exit("esWhitespace"),Be(D)):Je(D)||Yt(D)?(e.consume(D),Nt):(e.exit("esWhitespace"),le(D))}function ge(D){if(!o&&Z.parser.lazy[Z.now().line]){const Oe=new dt("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",Z.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw Oe.url=Ef+"#unexpected-lazy-line-in-container-expected-line-to-be",Oe}return Be(D)}function pe(D,Oe,Ke){const St=new dt("Unexpected "+(D===null?"end of file":"character `"+(D===96?"` ` `":String.fromCodePoint(D))+"` ("+FI(D)+")")+" "+Oe+", expected "+Ke,Z.now(),"micromark-extension-mdx-jsx:unexpected-"+(D===null?"eof":"character"));throw St.url=Ef+(D===null?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),St}}function FI(e){return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function BI(e,t){return{name:"mdxJsxTextTag",tokenize:r};function r(n,i,a){return Mb.call(this,n,i,a,e,t.acornOptions,t.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}function zI(e,t){return{concrete:!0,name:"mdxJsxFlowTag",tokenize:r};function r(n,i,a){const o=this;return s;function s(h){return u(h)}function u(h){return Mb.call(o,n,c,a,e,t.acornOptions,t.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(h)}function c(h){return Je(h)?nt(n,d,"whitespace")(h):d(h)}function d(h){const f=o.parser.constructs.flow[123],g=Array.isArray(f)?f:f?[f]:[];let x;for(const v of g)if(v.name==="mdxFlowExpression"){x=v;break}return h===60?s(h):h===123&&x?n.attempt(x,d,a)(h):h===null||Fe(h)?i(h):a(h)}}}function HI(e){const t=e||{},r=t.acorn;let n;if(r){if(!r.parse||!r.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");n=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:zI(r||void 0,{acornOptions:n,addResult:t.addResult||void 0})},text:{60:BI(r||void 0,{acornOptions:n,addResult:t.addResult||void 0})}}}function WI(){return{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}}function br(e,t,r,n){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Ar(e,t){return e.length>0?(br(e,e.length,0,t),e):t}function Di(e){if(e===null||ot(e)||Yt(e))return 1;if(vl(e))return 2}function xl(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const Cc={name:"attention",resolveAll:UI,tokenize:$I};function UI(e,t){let r=-1,n,i,a,o,s,u,c,d;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;u=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const h={...e[n][1].end},f={...e[r][1].start};_f(h,-u),_f(f,u),o={type:u>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},s={type:u>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:f},a={type:u>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:u>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[n][1].end={...o.start},e[r][1].start={...s.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=Ar(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=Ar(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=Ar(c,xl(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),c=Ar(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(d=2,c=Ar(c,[["enter",e[r][1],t],["exit",e[r][1],t]])):d=0,br(e,n-1,r-n+3,c),r=n+c.length-d-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function $I(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Di(n);let a;return o;function o(u){return a=u,e.enter("attentionSequence"),s(u)}function s(u){if(u===a)return e.consume(u),s;const c=e.exit("attentionSequence"),d=Di(u),h=!d||d===2&&i||r.includes(u),f=!i||i===2&&d||r.includes(n);return c._open=!!(a===42?h:h&&(i||!f)),c._close=!!(a===42?f:f&&(d||!h)),t(u)}}function _f(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const qI={name:"autolink",tokenize:KI};function KI(e,t,r){let n=0;return i;function i(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(g){return Gt(g)?(e.consume(g),o):g===64?r(g):c(g)}function o(g){return g===43||g===45||g===46||cr(g)?(n=1,s(g)):c(g)}function s(g){return g===58?(e.consume(g),n=0,u):(g===43||g===45||g===46||cr(g))&&n++<32?(e.consume(g),s):(n=0,c(g))}function u(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||Ms(g)?r(g):(e.consume(g),u)}function c(g){return g===64?(e.consume(g),d):xI(g)?(e.consume(g),c):r(g)}function d(g){return cr(g)?h(g):r(g)}function h(g){return g===46?(e.consume(g),n=0,d):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):f(g)}function f(g){if((g===45||cr(g))&&n++<63){const x=g===45?f:h;return e.consume(g),x}return r(g)}}const $i={partial:!0,tokenize:GI};function GI(e,t,r){return n;function n(a){return Je(a)?nt(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||Fe(a)?t(a):r(a)}}const jb={continuation:{tokenize:XI},exit:YI,name:"blockQuote",tokenize:JI};function JI(e,t,r){const n=this;return i;function i(o){if(o===62){const s=n.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return r(o)}function a(o){return Je(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function XI(e,t,r){const n=this;return i;function i(o){return Je(o)?nt(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(jb,t,r)(o)}}function YI(e){e.exit("blockQuote")}const Fb={name:"characterEscape",tokenize:QI};function QI(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return yI(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const Bb={name:"characterReference",tokenize:ZI};function ZI(e,t,r){const n=this;let i=0,a,o;return s;function s(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),u}function u(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,o=cr,d(h))}function c(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=bI,d):(e.enter("characterReferenceValue"),a=7,o=Sc,d(h))}function d(h){if(h===59&&i){const f=e.exit("characterReferenceValue");return o===cr&&!Ca(n.sliceSerialize(f))?r(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(h)&&i++<a?(e.consume(h),d):r(h)}}const If={partial:!0,tokenize:t2},Af={concrete:!0,name:"codeFenced",tokenize:e2};function e2(e,t,r){const n=this,i={partial:!0,tokenize:w};let a=0,o=0,s;return u;function u(m){return c(m)}function c(m){const T=n.events[n.events.length-1];return a=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,s=m,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(m)}function d(m){return m===s?(o++,e.consume(m),d):o<3?r(m):(e.exit("codeFencedFenceSequence"),Je(m)?nt(e,h,"whitespace")(m):h(m))}function h(m){return m===null||Fe(m)?(e.exit("codeFencedFence"),n.interrupt?t(m):e.check(If,v,I)(m)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===null||Fe(m)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(m)):Je(m)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),nt(e,g,"whitespace")(m)):m===96&&m===s?r(m):(e.consume(m),f)}function g(m){return m===null||Fe(m)?h(m):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(m))}function x(m){return m===null||Fe(m)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(m)):m===96&&m===s?r(m):(e.consume(m),x)}function v(m){return e.attempt(i,I,b)(m)}function b(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),y}function y(m){return a>0&&Je(m)?nt(e,k,"linePrefix",a+1)(m):k(m)}function k(m){return m===null||Fe(m)?e.check(If,v,I)(m):(e.enter("codeFlowValue"),C(m))}function C(m){return m===null||Fe(m)?(e.exit("codeFlowValue"),k(m)):(e.consume(m),C)}function I(m){return e.exit("codeFenced"),t(m)}function w(m,T,P){let V=0;return O;function O(Y){return m.enter("lineEnding"),m.consume(Y),m.exit("lineEnding"),B}function B(Y){return m.enter("codeFencedFence"),Je(Y)?nt(m,F,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):F(Y)}function F(Y){return Y===s?(m.enter("codeFencedFenceSequence"),J(Y)):P(Y)}function J(Y){return Y===s?(V++,m.consume(Y),J):V>=o?(m.exit("codeFencedFenceSequence"),Je(Y)?nt(m,U,"whitespace")(Y):U(Y)):P(Y)}function U(Y){return Y===null||Fe(Y)?(m.exit("codeFencedFence"),T(Y)):P(Y)}}}function t2(e,t,r){const n=this;return i;function i(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}const Cu={name:"codeIndented",tokenize:n2},r2={partial:!0,tokenize:i2};function n2(e,t,r){const n=this;return i;function i(c){return e.enter("codeIndented"),nt(e,a,"linePrefix",5)(c)}function a(c){const d=n.events[n.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(c):r(c)}function o(c){return c===null?u(c):Fe(c)?e.attempt(r2,o,u)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||Fe(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function u(c){return e.exit("codeIndented"),t(c)}}function i2(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):Fe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):nt(e,a,"linePrefix",5)(o)}function a(o){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Fe(o)?i(o):r(o)}}const a2={name:"codeText",previous:s2,resolve:o2,tokenize:l2};function o2(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function s2(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function l2(e,t,r){let n=0,i,a;return o;function o(h){return e.enter("codeText"),e.enter("codeTextSequence"),s(h)}function s(h){return h===96?(e.consume(h),n++,s):(e.exit("codeTextSequence"),u(h))}function u(h){return h===null?r(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),u):h===96?(a=e.enter("codeTextSequence"),i=0,d(h)):Fe(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(h))}function c(h){return h===null||h===32||h===96||Fe(h)?(e.exit("codeTextData"),u(h)):(e.consume(h),c)}function d(h){return h===96?(e.consume(h),i++,d):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(a.type="codeTextData",c(h))}}class u2{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const i=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&na(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),na(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),na(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);na(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);na(this.left,r.reverse())}}}function na(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function zb(e){const t={};let r=-1,n,i,a,o,s,u,c;const d=new u2(e);for(;++r<d.length;){for(;r in t;)r=t[r];if(n=d.get(r),r&&n[1].type==="chunkFlow"&&d.get(r-1)[1].type==="listItemPrefix"&&(u=n[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,c2(d,r)),r=t[r],c=!0);else if(n[1]._container){for(a=r,i=void 0;a--;)if(o=d.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(n[1].end={...d.get(i)[1].start},s=d.slice(i,r),s.unshift(n),d.splice(i,r-i+1,s))}}return br(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function c2(e,t){const r=e.get(t)[1],n=e.get(t)[2];let i=t-1;const a=[];let o=r._tokenizer;o||(o=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,u=[],c={};let d,h,f=-1,g=r,x=0,v=0;const b=[v];for(;g;){for(;e.get(++i)[1]!==g;);a.push(i),g._tokenizer||(d=n.sliceStream(g),g.next||d.push(null),h&&o.defineSkip(g.start),g._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),g._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),h=g,g=g.next}for(g=r;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(v=f+1,b.push(v),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(o.events=[],g?(g._tokenizer=void 0,g.previous=void 0):b.pop(),f=b.length;f--;){const y=s.slice(b[f],b[f+1]),k=a.pop();u.push([k,k+y.length-1]),e.splice(k,2,y)}for(u.reverse(),f=-1;++f<u.length;)c[x+u[f][0]]=x+u[f][1],x+=u[f][1]-u[f][0]-1;return c}const d2={resolve:p2,tokenize:f2},h2={partial:!0,tokenize:g2};function p2(e){return zb(e),e}function f2(e,t){let r;return n;function n(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):Fe(s)?e.check(h2,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function g2(e,t,r){const n=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),nt(e,a,"linePrefix")}function a(o){if(o===null||Fe(o))return r(o);const s=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function Hb(e,t,r,n,i,a,o,s,u){const c=u||Number.POSITIVE_INFINITY;let d=0;return h;function h(y){return y===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(y),e.exit(a),f):y===null||y===32||y===41||Ms(y)?r(y):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(y))}function f(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),g(y))}function g(y){return y===62?(e.exit("chunkString"),e.exit(s),f(y)):y===null||y===60||Fe(y)?r(y):(e.consume(y),y===92?x:g)}function x(y){return y===60||y===62||y===92?(e.consume(y),g):g(y)}function v(y){return!d&&(y===null||y===41||ot(y))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(y)):d<c&&y===40?(e.consume(y),d++,v):y===41?(e.consume(y),d--,v):y===null||y===32||y===40||Ms(y)?r(y):(e.consume(y),y===92?b:v)}function b(y){return y===40||y===41||y===92?(e.consume(y),v):v(y)}}function Wb(e,t,r,n,i,a){const o=this;let s=0,u;return c;function c(g){return e.enter(n),e.enter(i),e.consume(g),e.exit(i),e.enter(a),d}function d(g){return s>999||g===null||g===91||g===93&&!u||g===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(n),t):Fe(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===null||g===91||g===93||Fe(g)||s++>999?(e.exit("chunkString"),d(g)):(e.consume(g),u||(u=!Je(g)),g===92?f:h)}function f(g){return g===91||g===92||g===93?(e.consume(g),s++,h):h(g)}}function Ub(e,t,r,n,i,a){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(n),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,u):r(f)}function u(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(n),t):(e.enter(a),c(f))}function c(f){return f===o?(e.exit(a),u(o)):f===null?r(f):Fe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),nt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===o||f===null||Fe(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?h:d)}function h(f){return f===o||f===92?(e.consume(f),d):d(f)}}function da(e,t){let r;return n;function n(i){return Fe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):Je(i)?nt(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}function Br(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const m2={name:"definition",tokenize:x2},v2={partial:!0,tokenize:b2};function x2(e,t,r){const n=this;let i;return a;function a(g){return e.enter("definition"),o(g)}function o(g){return Wb.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function s(g){return i=Br(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),u):r(g)}function u(g){return ot(g)?da(e,c)(g):c(g)}function c(g){return Hb(e,d,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function d(g){return e.attempt(v2,h,h)(g)}function h(g){return Je(g)?nt(e,f,"whitespace")(g):f(g)}function f(g){return g===null||Fe(g)?(e.exit("definition"),n.parser.defined.push(i),t(g)):r(g)}}function b2(e,t,r){return n;function n(s){return ot(s)?da(e,i)(s):r(s)}function i(s){return Ub(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Je(s)?nt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Fe(s)?t(s):r(s)}}const y2={name:"hardBreakEscape",tokenize:w2};function w2(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Fe(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const k2={name:"headingAtx",resolve:S2,tokenize:C2};function S2(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},br(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function C2(e,t,r){let n=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&n++<6?(e.consume(d),o):d===null||ot(d)?(e.exit("atxHeadingSequence"),s(d)):r(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),u(d)):d===null||Fe(d)?(e.exit("atxHeading"),t(d)):Je(d)?nt(e,s,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function u(d){return d===35?(e.consume(d),u):(e.exit("atxHeadingSequence"),s(d))}function c(d){return d===null||d===35||ot(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),c)}}const E2=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Tf=["pre","script","style","textarea"],_2={concrete:!0,name:"htmlFlow",resolveTo:T2,tokenize:P2},I2={partial:!0,tokenize:O2},A2={partial:!0,tokenize:N2};function T2(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function P2(e,t,r){const n=this;let i,a,o,s,u;return c;function c(N){return d(N)}function d(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),h}function h(N){return N===33?(e.consume(N),f):N===47?(e.consume(N),a=!0,v):N===63?(e.consume(N),i=3,n.interrupt?t:E):Gt(N)?(e.consume(N),o=String.fromCharCode(N),b):r(N)}function f(N){return N===45?(e.consume(N),i=2,g):N===91?(e.consume(N),i=5,s=0,x):Gt(N)?(e.consume(N),i=4,n.interrupt?t:E):r(N)}function g(N){return N===45?(e.consume(N),n.interrupt?t:E):r(N)}function x(N){const ee="CDATA[";return N===ee.charCodeAt(s++)?(e.consume(N),s===ee.length?n.interrupt?t:F:x):r(N)}function v(N){return Gt(N)?(e.consume(N),o=String.fromCharCode(N),b):r(N)}function b(N){if(N===null||N===47||N===62||ot(N)){const ee=N===47,H=o.toLowerCase();return!ee&&!a&&Tf.includes(H)?(i=1,n.interrupt?t(N):F(N)):E2.includes(o.toLowerCase())?(i=6,ee?(e.consume(N),y):n.interrupt?t(N):F(N)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(N):a?k(N):C(N))}return N===45||cr(N)?(e.consume(N),o+=String.fromCharCode(N),b):r(N)}function y(N){return N===62?(e.consume(N),n.interrupt?t:F):r(N)}function k(N){return Je(N)?(e.consume(N),k):O(N)}function C(N){return N===47?(e.consume(N),O):N===58||N===95||Gt(N)?(e.consume(N),I):Je(N)?(e.consume(N),C):O(N)}function I(N){return N===45||N===46||N===58||N===95||cr(N)?(e.consume(N),I):w(N)}function w(N){return N===61?(e.consume(N),m):Je(N)?(e.consume(N),w):C(N)}function m(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(e.consume(N),u=N,T):Je(N)?(e.consume(N),m):P(N)}function T(N){return N===u?(e.consume(N),u=null,V):N===null||Fe(N)?r(N):(e.consume(N),T)}function P(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||ot(N)?w(N):(e.consume(N),P)}function V(N){return N===47||N===62||Je(N)?C(N):r(N)}function O(N){return N===62?(e.consume(N),B):r(N)}function B(N){return N===null||Fe(N)?F(N):Je(N)?(e.consume(N),B):r(N)}function F(N){return N===45&&i===2?(e.consume(N),Z):N===60&&i===1?(e.consume(N),le):N===62&&i===4?(e.consume(N),te):N===63&&i===3?(e.consume(N),E):N===93&&i===5?(e.consume(N),fe):Fe(N)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(I2,ae,J)(N)):N===null||Fe(N)?(e.exit("htmlFlowData"),J(N)):(e.consume(N),F)}function J(N){return e.check(A2,U,ae)(N)}function U(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),Y}function Y(N){return N===null||Fe(N)?J(N):(e.enter("htmlFlowData"),F(N))}function Z(N){return N===45?(e.consume(N),E):F(N)}function le(N){return N===47?(e.consume(N),o="",Q):F(N)}function Q(N){if(N===62){const ee=o.toLowerCase();return Tf.includes(ee)?(e.consume(N),te):F(N)}return Gt(N)&&o.length<8?(e.consume(N),o+=String.fromCharCode(N),Q):F(N)}function fe(N){return N===93?(e.consume(N),E):F(N)}function E(N){return N===62?(e.consume(N),te):N===45&&i===2?(e.consume(N),E):F(N)}function te(N){return N===null||Fe(N)?(e.exit("htmlFlowData"),ae(N)):(e.consume(N),te)}function ae(N){return e.exit("htmlFlow"),t(N)}}function N2(e,t,r){const n=this;return i;function i(o){return Fe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):r(o)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function O2(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt($i,t,r)}}const R2={name:"htmlText",tokenize:L2};function L2(e,t,r){const n=this;let i,a,o;return s;function s(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),u}function u(E){return E===33?(e.consume(E),c):E===47?(e.consume(E),w):E===63?(e.consume(E),C):Gt(E)?(e.consume(E),P):r(E)}function c(E){return E===45?(e.consume(E),d):E===91?(e.consume(E),a=0,x):Gt(E)?(e.consume(E),k):r(E)}function d(E){return E===45?(e.consume(E),g):r(E)}function h(E){return E===null?r(E):E===45?(e.consume(E),f):Fe(E)?(o=h,le(E)):(e.consume(E),h)}function f(E){return E===45?(e.consume(E),g):h(E)}function g(E){return E===62?Z(E):E===45?f(E):h(E)}function x(E){const te="CDATA[";return E===te.charCodeAt(a++)?(e.consume(E),a===te.length?v:x):r(E)}function v(E){return E===null?r(E):E===93?(e.consume(E),b):Fe(E)?(o=v,le(E)):(e.consume(E),v)}function b(E){return E===93?(e.consume(E),y):v(E)}function y(E){return E===62?Z(E):E===93?(e.consume(E),y):v(E)}function k(E){return E===null||E===62?Z(E):Fe(E)?(o=k,le(E)):(e.consume(E),k)}function C(E){return E===null?r(E):E===63?(e.consume(E),I):Fe(E)?(o=C,le(E)):(e.consume(E),C)}function I(E){return E===62?Z(E):C(E)}function w(E){return Gt(E)?(e.consume(E),m):r(E)}function m(E){return E===45||cr(E)?(e.consume(E),m):T(E)}function T(E){return Fe(E)?(o=T,le(E)):Je(E)?(e.consume(E),T):Z(E)}function P(E){return E===45||cr(E)?(e.consume(E),P):E===47||E===62||ot(E)?V(E):r(E)}function V(E){return E===47?(e.consume(E),Z):E===58||E===95||Gt(E)?(e.consume(E),O):Fe(E)?(o=V,le(E)):Je(E)?(e.consume(E),V):Z(E)}function O(E){return E===45||E===46||E===58||E===95||cr(E)?(e.consume(E),O):B(E)}function B(E){return E===61?(e.consume(E),F):Fe(E)?(o=B,le(E)):Je(E)?(e.consume(E),B):V(E)}function F(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),i=E,J):Fe(E)?(o=F,le(E)):Je(E)?(e.consume(E),F):(e.consume(E),U)}function J(E){return E===i?(e.consume(E),i=void 0,Y):E===null?r(E):Fe(E)?(o=J,le(E)):(e.consume(E),J)}function U(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||ot(E)?V(E):(e.consume(E),U)}function Y(E){return E===47||E===62||ot(E)?V(E):r(E)}function Z(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):r(E)}function le(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),Q}function Q(E){return Je(E)?nt(e,fe,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):fe(E)}function fe(E){return e.enter("htmlTextData"),o(E)}}const hh={name:"labelEnd",resolveAll:j2,resolveTo:F2,tokenize:B2},D2={tokenize:z2},V2={tokenize:H2},M2={tokenize:W2};function j2(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&br(e,0,e.length,r),e}function F2(e,t){let r=e.length,n=0,i,a,o,s;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(o=r);const u={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[a+n+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",u,t],["enter",c,t]],s=Ar(s,e.slice(a+1,a+n+3)),s=Ar(s,[["enter",d,t]]),s=Ar(s,xl(t.parser.constructs.insideSpan.null,e.slice(a+n+4,o-3),t)),s=Ar(s,[["exit",d,t],e[o-2],e[o-1],["exit",c,t]]),s=Ar(s,e.slice(o+1)),s=Ar(s,[["exit",u,t]]),br(e,a,e.length,s),e}function B2(e,t,r){const n=this;let i=n.events.length,a,o;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return s;function s(f){return a?a._inactive?h(f):(o=n.parser.defined.includes(Br(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),u):r(f)}function u(f){return f===40?e.attempt(D2,d,o?d:h)(f):f===91?e.attempt(V2,d,o?c:h)(f):o?d(f):h(f)}function c(f){return e.attempt(M2,d,h)(f)}function d(f){return t(f)}function h(f){return a._balanced=!0,r(f)}}function z2(e,t,r){return n;function n(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return ot(h)?da(e,a)(h):a(h)}function a(h){return h===41?d(h):Hb(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function o(h){return ot(h)?da(e,u)(h):d(h)}function s(h){return r(h)}function u(h){return h===34||h===39||h===40?Ub(e,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):d(h)}function c(h){return ot(h)?da(e,d)(h):d(h)}function d(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):r(h)}}function H2(e,t,r){const n=this;return i;function i(s){return Wb.call(n,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return n.parser.defined.includes(Br(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function o(s){return r(s)}}function W2(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const U2={name:"labelStartImage",resolveAll:hh.resolveAll,tokenize:$2};function $2(e,t,r){const n=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):r(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const q2={name:"labelStartLink",resolveAll:hh.resolveAll,tokenize:K2};function K2(e,t,r){const n=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}const Eu={name:"lineEnding",tokenize:G2};function G2(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),nt(e,t,"linePrefix")}}const hs={name:"thematicBreak",tokenize:J2};function J2(e,t,r){let n=0,i;return a;function a(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),u(c)):n>=3&&(c===null||Fe(c))?(e.exit("thematicBreak"),t(c)):r(c)}function u(c){return c===i?(e.consume(c),n++,u):(e.exit("thematicBreakSequence"),Je(c)?nt(e,s,"whitespace")(c):s(c))}}const sr={continuation:{tokenize:Z2},exit:tA,name:"list",tokenize:Q2},X2={partial:!0,tokenize:rA},Y2={partial:!0,tokenize:eA};function Q2(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(g){const x=n.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!n.containerState.marker||g===n.containerState.marker:Sc(g)){if(n.containerState.type||(n.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(hs,r,c)(g):c(g);if(!n.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(g)}return r(g)}function u(g){return Sc(g)&&++o<10?(e.consume(g),u):(!n.interrupt||o<2)&&(n.containerState.marker?g===n.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),c(g)):r(g)}function c(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||g,e.check($i,n.interrupt?r:d,e.attempt(X2,f,h))}function d(g){return n.containerState.initialBlankLine=!0,a++,f(g)}function h(g){return Je(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),f):r(g)}function f(g){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function Z2(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check($i,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,nt(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!Je(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Y2,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,nt(e,e.attempt(sr,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function eA(e,t,r){const n=this;return nt(e,i,"listItemIndent",n.containerState.size+1);function i(a){const o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(a):r(a)}}function tA(e){e.exit(this.containerState.type)}function rA(e,t,r){const n=this;return nt(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=n.events[n.events.length-1];return!Je(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const Pf={name:"setextUnderline",resolveTo:nA,tokenize:iA};function nA(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=o,e.push(["exit",o,t]),e}function iA(e,t,r){const n=this;let i;return a;function a(c){let d=n.events.length,h;for(;d--;)if(n.events[d][1].type!=="lineEnding"&&n.events[d][1].type!=="linePrefix"&&n.events[d][1].type!=="content"){h=n.events[d][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||h)?(e.enter("setextHeadingLine"),i=c,o(c)):r(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Je(c)?nt(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||Fe(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}const aA={tokenize:lA,partial:!0},Nf="https://github.com/micromark/micromark-extension-mdxjs-esm",oA=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function sA(e){const t={tokenize:i,concrete:!0};if(!e||!e.acorn||!e.acorn.parse)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");const r=e.acorn,n=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0});return{flow:{101:t,105:t}};function i(a,o,s){const u=this,c=u.parser.definedModuleSpecifiers||(u.parser.definedModuleSpecifiers=[]),d=this.events.length+1;let h="";return u.interrupt?s:f;function f(k){return u.now().column>1?s(k):(a.enter("mdxjsEsm"),a.enter("mdxjsEsmData"),a.consume(k),h+=String.fromCharCode(k),g)}function g(k){return Gt(k)?(a.consume(k),h+=String.fromCharCode(k),g):(h==="import"||h==="export")&&k===32?(a.consume(k),x):s(k)}function x(k){return k===null||Fe(k)?(a.exit("mdxjsEsmData"),v(k)):(a.consume(k),x)}function v(k){return k===null?y(k):Fe(k)?a.check(aA,y,b)(k):(a.enter("mdxjsEsmData"),x(k))}function b(k){return a.enter("lineEnding"),a.consume(k),a.exit("lineEnding"),v}function y(k){const C=Vb(u.events.slice(d),{acorn:r,acornOptions:n,tokenTypes:["mdxjsEsmData"],prefix:c.length>0?"var "+c.join(",")+`
|
|
82
|
-
`:""});if(C.error){if(k!==null&&C.swallow)return b(k);const w=new dt("Could not parse import/exports with acorn",{cause:C.error,place:{line:C.error.loc.line,column:C.error.loc.column+1,offset:C.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw w.url=Nf+"#could-not-parse-importexports-with-acorn",w}c.length>0&&C.estree.body.shift();let I=-1;for(;++I<C.estree.body.length;){const w=C.estree.body[I];if(!oA.has(w.type)){const m=new dt("Unexpected `"+w.type+"` in code: only import/exports are supported",{place:ds(w),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw m.url=Nf+"#unexpected-type-in-code-only-importexports-are-supported",m}if(w.type==="ImportDeclaration"&&!u.interrupt){let m=-1;for(;++m<w.specifiers.length;){const T=w.specifiers[m];c.push(T.local.name)}}}return Object.assign(a.exit("mdxjsEsm"),e.addResult?{estree:C.estree}:void 0),o(k)}}}function lA(e,t,r){return n;function n(i){return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),e.attempt($i,t,r)}}const Of={}.hasOwnProperty;function ph(e){const t={};let r=-1;for(;++r<e.length;)uA(t,e[r]);return t}function uA(e,t){let r;for(r in t){const i=(Of.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let o;if(a)for(o in a){Of.call(i,o)||(i[o]=[]);const s=a[o];cA(i[o],Array.isArray(s)?s:s?[s]:[])}}}function cA(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);br(e,0,0,n)}function dA(e){const t=Object.assign({acorn:jt.extend(vI()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},e);return ph([sA(t),LI(t),HI(t),WI()])}const hA={};function pA(e){const t=this,r=e||hA,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(dA(r)),a.push(E_()),o.push(__(r))}const fA={};function gA(e,t){const r=fA,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return $b(e,n,i)}function $b(e,t,r){if(mA(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Rf(e.children,t,r)}return Array.isArray(e)?Rf(e,t,r):""}function Rf(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=$b(e[i],t,r);return n.join("")}function mA(e){return!!(e&&typeof e=="object")}function qb(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}const vA={tokenize:xA};function xA(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),nt(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const u=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=u),r=u,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Fe(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const bA={tokenize:yA},Lf={tokenize:wA};function yA(e){const t=this,r=[];let n=0,i,a,o;return s;function s(C){if(n<r.length){const I=r[n];return t.containerState=I[1],e.attempt(I[0].continuation,u,c)(C)}return c(C)}function u(C){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&k();const I=t.events.length;let w=I,m;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){m=t.events[w][1].end;break}y(n);let T=I;for(;T<t.events.length;)t.events[T][1].end={...m},T++;return br(t.events,w+1,0,t.events.slice(I)),t.events.length=T,c(C)}return s(C)}function c(C){if(n===r.length){if(!i)return f(C);if(i.currentConstruct&&i.currentConstruct.concrete)return x(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Lf,d,h)(C)}function d(C){return i&&k(),y(n),f(C)}function h(C){return t.parser.lazy[t.now().line]=n!==r.length,o=t.now().offset,x(C)}function f(C){return t.containerState={},e.attempt(Lf,g,x)(C)}function g(C){return n++,r.push([t.currentConstruct,t.containerState]),f(C)}function x(C){if(C===null){i&&k(),y(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),v(C)}function v(C){if(C===null){b(e.exit("chunkFlow"),!0),y(0),e.consume(C);return}return Fe(C)?(e.consume(C),b(e.exit("chunkFlow")),n=0,t.interrupt=void 0,s):(e.consume(C),v)}function b(C,I){const w=t.sliceStream(C);if(I&&w.push(null),C.previous=a,a&&(a.next=C),a=C,i.defineSkip(C.start),i.write(w),t.parser.lazy[C.start.line]){let m=i.events.length;for(;m--;)if(i.events[m][1].start.offset<o&&(!i.events[m][1].end||i.events[m][1].end.offset>o))return;const T=t.events.length;let P=T,V,O;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(V){O=t.events[P][1].end;break}V=!0}for(y(n),m=T;m<t.events.length;)t.events[m][1].end={...O},m++;br(t.events,P+1,0,t.events.slice(T)),t.events.length=m}}function y(C){let I=r.length;for(;I-- >C;){const w=r[I];t.containerState=w[1],w[0].exit.call(t,e)}r.length=C}function k(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function wA(e,t,r){return nt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const kA={tokenize:SA};function SA(e){const t=this,r=e.attempt($i,n,e.attempt(this.parser.constructs.flowInitial,i,nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(d2,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const CA={resolveAll:Gb()},EA=Kb("string"),_A=Kb("text");function Kb(e){return{resolveAll:Gb(e==="text"?IA:void 0),tokenize:t};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,o,s);return o;function o(d){return c(d)?a(d):s(d)}function s(d){if(d===null){r.consume(d);return}return r.enter("data"),r.consume(d),u}function u(d){return c(d)?(r.exit("data"),a(d)):(r.consume(d),u)}function c(d){if(d===null)return!0;const h=i[d];let f=-1;if(h)for(;++f<h.length;){const g=h[f];if(!g.previous||g.previous.call(n,n.previous))return!0}return!1}}}function Gb(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function IA(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let a=i.length,o=-1,s=0,u;for(;a--;){const c=i[a];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(c===-2)u=!0,s++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(s=0),s){const c={type:r===e.length||u||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:n.start._bufferIndex+o,_index:n.start._index+a,line:n.end.line,column:n.end.column-s,offset:n.end.offset-s},end:{...n.end}};n.end={...c.start},n.start.offset===n.end.offset?Object.assign(n,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)}r++}return e}const AA={42:sr,43:sr,45:sr,48:sr,49:sr,50:sr,51:sr,52:sr,53:sr,54:sr,55:sr,56:sr,57:sr,62:jb},TA={91:m2},PA={[-2]:Cu,[-1]:Cu,32:Cu},NA={35:k2,42:hs,45:[Pf,hs],60:_2,61:Pf,95:hs,96:Af,126:Af},OA={38:Bb,92:Fb},RA={[-5]:Eu,[-4]:Eu,[-3]:Eu,33:U2,38:Bb,42:Cc,60:[qI,R2],91:q2,92:[y2,Fb],93:hh,95:Cc,96:a2},LA={null:[Cc,CA]},DA={null:[42,95]},VA={null:[]},MA=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:DA,contentInitial:TA,disable:VA,document:AA,flow:NA,flowInitial:PA,insideSpan:LA,string:OA,text:RA},Symbol.toStringTag,{value:"Module"}));function jA(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},a=[];let o=[],s=[];const u={attempt:T(w),check:T(m),consume:k,enter:C,exit:I,interrupt:T(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:v,events:[],now:x,parser:e,previous:null,sliceSerialize:f,sliceStream:g,write:h};let d=t.tokenize.call(c,u);return t.resolveAll&&a.push(t),c;function h(B){return o=Ar(o,B),b(),o[o.length-1]!==null?[]:(P(t,0),c.events=xl(a,c.events,c),c.events)}function f(B,F){return BA(g(B),F)}function g(B){return FA(o,B)}function x(){const{_bufferIndex:B,_index:F,line:J,column:U,offset:Y}=n;return{_bufferIndex:B,_index:F,line:J,column:U,offset:Y}}function v(B){i[B.line]=B.column,O()}function b(){let B;for(;n._index<o.length;){const F=o[n._index];if(typeof F=="string")for(B=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===B&&n._bufferIndex<F.length;)y(F.charCodeAt(n._bufferIndex));else y(F)}}function y(B){d=d(B)}function k(B){Fe(B)?(n.line++,n.column=1,n.offset+=B===-3?2:1,O()):B!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=B}function C(B,F){const J=F||{};return J.type=B,J.start=x(),c.events.push(["enter",J,c]),s.push(J),J}function I(B){const F=s.pop();return F.end=x(),c.events.push(["exit",F,c]),F}function w(B,F){P(B,F.from)}function m(B,F){F.restore()}function T(B,F){return J;function J(U,Y,Z){let le,Q,fe,E;return Array.isArray(U)?ae(U):"tokenize"in U?ae([U]):te(U);function te(W){return $;function $(ie){const oe=ie!==null&&W[ie],de=ie!==null&&W.null,he=[...Array.isArray(oe)?oe:oe?[oe]:[],...Array.isArray(de)?de:de?[de]:[]];return ae(he)(ie)}}function ae(W){return le=W,Q=0,W.length===0?Z:N(W[Q])}function N(W){return $;function $(ie){return E=V(),fe=W,W.partial||(c.currentConstruct=W),W.name&&c.parser.constructs.disable.null.includes(W.name)?H():W.tokenize.call(F?Object.assign(Object.create(c),F):c,u,ee,H)(ie)}}function ee(W){return B(fe,E),Y}function H(W){return E.restore(),++Q<le.length?N(le[Q]):Z}}}function P(B,F){B.resolveAll&&!a.includes(B)&&a.push(B),B.resolve&&br(c.events,F,c.events.length-F,B.resolve(c.events.slice(F),c)),B.resolveTo&&(c.events=B.resolveTo(c.events,c))}function V(){const B=x(),F=c.previous,J=c.currentConstruct,U=c.events.length,Y=Array.from(s);return{from:U,restore:Z};function Z(){n=B,c.previous=F,c.currentConstruct=J,c.events.length=U,s=Y,O()}}function O(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function FA(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(r===i)o=[e[r].slice(n,a)];else{if(o=e.slice(r,i),n>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function BA(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
|
|
33
|
+
`):A=String.fromCharCode(g),this.options.locations&&(++this.curLine,this.lineStart=this.pos),A}jsx_readString(y){let g="",A=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let M=this.input.charCodeAt(this.pos);if(M===y)break;M===38?(g+=this.input.slice(A,this.pos),g+=this.jsx_readEntity(),A=this.pos):k(M)?(g+=this.input.slice(A,this.pos),g+=this.jsx_readNewLine(!1),A=this.pos):++this.pos}return g+=this.input.slice(A,this.pos++),this.finishToken(d.string,g)}jsx_readEntity(){let y="",g=0,A,M=this.input[this.pos];M!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let F=++this.pos;for(;this.pos<this.input.length&&g++<10;){if(M=this.input[this.pos++],M===";"){y[0]==="#"?y[1]==="x"?(y=y.substr(2),n.test(y)&&(A=String.fromCharCode(parseInt(y,16)))):(y=y.substr(1),i.test(y)&&(A=String.fromCharCode(parseInt(y,10)))):A=t[y];break}y+=M}return A||(this.pos=F,"&")}jsx_readWord(){let y,g=this.pos;do y=this.input.charCodeAt(++this.pos);while(N(y)||y===45);return this.finishToken(m.jsxName,this.input.slice(g,this.pos))}jsx_parseIdentifier(){let y=this.startNode();return this.type===m.jsxName?y.name=this.value:this.type.keyword?y.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(y,"JSXIdentifier")}jsx_parseNamespacedName(){let y=this.start,g=this.startLoc,A=this.jsx_parseIdentifier();if(!u.allowNamespaces||!this.eat(d.colon))return A;var M=this.startNodeAt(y,g);return M.namespace=A,M.name=this.jsx_parseIdentifier(),this.finishNode(M,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===m.jsxTagEnd)return"";let y=this.start,g=this.startLoc,A=this.jsx_parseNamespacedName();for(this.type===d.dot&&A.type==="JSXNamespacedName"&&!u.allowNamespacedObjects&&this.unexpected();this.eat(d.dot);){let M=this.startNodeAt(y,g);M.object=A,M.property=this.jsx_parseIdentifier(),A=this.finishNode(M,"JSXMemberExpression")}return A}jsx_parseAttributeValue(){switch(this.type){case d.braceL:let y=this.jsx_parseExpressionContainer();return y.expression.type==="JSXEmptyExpression"&&this.raise(y.start,"JSX attributes must only be assigned a non-empty expression"),y;case m.jsxTagStart:case d.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let y=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(y,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let y=this.startNode();return this.next(),y.expression=this.type===d.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(d.braceR),this.finishNode(y,"JSXExpressionContainer")}jsx_parseAttribute(){let y=this.startNode();return this.eat(d.braceL)?(this.expect(d.ellipsis),y.argument=this.parseMaybeAssign(),this.expect(d.braceR),this.finishNode(y,"JSXSpreadAttribute")):(y.name=this.jsx_parseNamespacedName(),y.value=this.eat(d.eq)?this.jsx_parseAttributeValue():null,this.finishNode(y,"JSXAttribute"))}jsx_parseOpeningElementAt(y,g){let A=this.startNodeAt(y,g);A.attributes=[];let M=this.jsx_parseElementName();for(M&&(A.name=M);this.type!==d.slash&&this.type!==m.jsxTagEnd;)A.attributes.push(this.jsx_parseAttribute());return A.selfClosing=this.eat(d.slash),this.expect(m.jsxTagEnd),this.finishNode(A,M?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(y,g){let A=this.startNodeAt(y,g),M=this.jsx_parseElementName();return M&&(A.name=M),this.expect(m.jsxTagEnd),this.finishNode(A,M?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(y,g){let A=this.startNodeAt(y,g),M=[],F=this.jsx_parseOpeningElementAt(y,g),R=null;if(!F.selfClosing){e:for(;;)switch(this.type){case m.jsxTagStart:if(y=this.start,g=this.startLoc,this.next(),this.eat(d.slash)){R=this.jsx_parseClosingElementAt(y,g);break e}M.push(this.jsx_parseElementAt(y,g));break;case m.jsxText:M.push(this.parseExprAtom());break;case d.braceL:M.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}o(R.name)!==o(F.name)&&this.raise(R.start,"Expected corresponding JSX closing tag for <"+o(F.name)+">")}let j=F.name?"Element":"Fragment";return A["opening"+j]=F,A["closing"+j]=R,A.children=M,this.type===d.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(A,"JSX"+j)}jsx_parseText(){let y=this.parseLiteral(this.value);return y.type="JSXText",y}jsx_parseElement(){let y=this.start,g=this.startLoc;return this.next(),this.jsx_parseElementAt(y,g)}parseExprAtom(y){return this.type===m.jsxText?this.jsx_parseText():this.type===m.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(y)}readToken(y){let g=this.curContext();if(g===E)return this.jsx_readToken();if(g===v||g===S){if(I(y))return this.jsx_readWord();if(y==62)return++this.pos,this.finishToken(m.jsxTagEnd);if((y===34||y===39)&&g==v)return this.jsx_readString(y)}return y===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(m.jsxTagStart)):super.readToken(y)}updateContext(y){if(this.type==d.braceL){var g=this.curContext();g==v?this.context.push(b.b_expr):g==E?this.context.push(b.b_tmpl):super.updateContext(y),this.exprAllowed=!0}else if(this.type===d.slash&&y===m.jsxTagStart)this.context.length-=2,this.context.push(S),this.exprAllowed=!1;else return super.updateContext(y)}}}})(Xr)),Xr.exports}var Em=wm();const Sm=Lr(Em),lt=yn(/[A-Za-z]/),gt=yn(/[\dA-Za-z]/),km=yn(/[#-'*+\--9=?A-Z^-~]/);function dr(e){return e!==null&&(e<32||e===127)}const qa=yn(/\d/),Cm=yn(/[\dA-Fa-f]/),_m=yn(/[!-/:-@[-`{-~]/);function _e(e){return e!==null&&e<-2}function Ke(e){return e!==null&&(e<0||e===32)}function Me(e){return e===-2||e===-1||e===32}const Mr=yn(new RegExp("\\p{P}|\\p{S}","u")),ct=yn(/\s/);function yn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function je(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(u){return Me(u)?(e.enter(n),l(u)):t(u)}function l(u){return Me(u)&&s++<r?(e.consume(u),l):(e.exit(n),t(u))}}const Im={}.hasOwnProperty,Am=Symbol("continue"),ta=Symbol("exit"),Tm=Symbol("skip");function Nm(e,t){let n,i;typeof t=="function"?n=t:t&&typeof t=="object"&&(t.enter&&(n=t.enter),t.leave&&(i=t.leave)),r(e,void 0,void 0,[])();function r(s,o,l,u){return na(s)&&(f.displayName="node ("+s.type+")"),f;function f(){const p=n?fl(n(s,o,l,u)):[];if(p[0]===ta)return p;if(p[0]!==Tm){let h;for(h in s)if(Im.call(s,h)&&s[h]&&typeof s[h]=="object"&&h!=="data"&&h!=="position"){const d=u.concat(s),m=s[h];if(Array.isArray(m)){const b=m;let v=0;for(;v>-1&&v<b.length;){const S=b[v];if(na(S)){const E=r(S,h,v,d)();if(E[0]===ta)return E;v=typeof E[1]=="number"?E[1]:v+1}else v++}}else if(na(m)){const b=r(m,h,void 0,d)();if(b[0]===ta)return b}}}return i?fl(i(s,o,l,u)):p}}}function fl(e){return Array.isArray(e)?e:typeof e=="number"?[Am,e]:[e]}function na(e){return!!(e&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.length>0)}function nh(e,t){const n=t.prefix||"",i=t.suffix||"",r=Object.assign({},t.acornOptions),s=[],o=[],l=r.onComment,u=r.onToken;let f=!1,p,h;const d=Object.assign({},r,{onComment:s,preserveParens:!0});u&&(d.onToken=o);const m=Pm(e,t.tokenTypes),b=m.value,v=n+b+i,S=t.expression&&pl(b);if(S&&!t.allowEmpty)throw new qe("Unexpected empty expression",{place:k(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{p=t.expression&&!S?t.acorn.parseExpressionAt(v,0,d):t.acorn.parse(v,d)}catch(I){const N=I,y=k(N.pos);N.message=String(N.message).replace(/ \(\d+:\d+\)$/,""),N.pos=y.offset,N.loc={line:y.line,column:y.column-1},h=N,f=N.raisedAt>=n.length+b.length||N.message==="Unterminated comment"}if(p&&t.expression&&!S)if(pl(v.slice(p.end,v.length-i.length)))p={type:"Program",start:0,end:n.length+b.length,body:[{type:"ExpressionStatement",expression:p,start:0,end:n.length+b.length}],sourceType:"module",comments:[]};else{const I=k(p.end),N=new Error("Unexpected content after expression");N.pos=I.offset,N.loc={line:I.line,column:I.column-1},h=N,p=void 0}if(p){if(p.comments=s,Nm(p,function(I,N,y,g){let A=g[g.length-1],M=N;I.type==="ParenthesizedExpression"&&A&&M&&(typeof y=="number"&&(A=A[M],M=y),A[M]=I.expression),E(I)}),Array.isArray(l))l.push(...s);else if(typeof l=="function")for(const I of s)l(I.type==="Block",I.value,I.start,I.end,I.loc.start,I.loc.end);for(const I of o)I.end<=n.length||I.start-n.length>=b.length||(E(I),Array.isArray(u)?u.push(I):u(I))}return{estree:p,error:h,swallow:f};function E(I){const N=k(I.start),y=k(I.end);I.start=N.offset,I.end=y.offset,I.loc={start:{line:N.line,column:N.column-1,offset:N.offset},end:{line:y.line,column:y.column-1,offset:y.offset}},I.range=[I.start,I.end]}function k(I){let N=I-n.length;N<0?N=0:N>b.length&&(N=b.length);let y=Om(m.stops,N);return y||(y={line:t.start.line,column:t.start.column,offset:t.start.offset}),y}}function pl(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function Pm(e,t){const n={value:"",stops:[]};let i=-1;for(;++i<e.length;){const r=e[i];if(r[0]==="enter"){const s=r[1].type;if(s==="lineEnding"||t.includes(s)){const o=r[2].sliceStream(r[1]);for(;o.length>0&&o[0]===-1;)o.shift();const l=Rm(o);n.stops.push([n.value.length,r[1].start]),n.value+=l,n.stops.push([n.value.length,r[1].end])}}}return n}function Om(e,t){let n=0;for(;n<e.length&&e[n][0]<=t;)n+=1;if(n===0)return;const[i,r]=e[n-1],s=t-i;return{line:r.line,column:r.column+s,offset:r.offset+s}}function Rm(e){let t=-1;const n=[];let i;for(;++t<e.length;){const r=e[t];let s;if(typeof r=="string")s=r;else switch(r){case-5:{s="\r";break}case-4:{s=`
|
|
34
|
+
`;break}case-3:{s=`\r
|
|
35
|
+
`;break}case-2:{s=" ";break}case-1:{if(i)continue;s=" ";break}default:s=String.fromCharCode(r)}i=r===-2,n.push(s)}return n.join("")}function tr(e){const t=e||{},n=t.loc||{},i=t.range||[void 0,void 0],r=dl(n.start,i[0]||t.start),s=dl(n.end,i[1]||t.end);if(r&&s)return{start:r,end:s}}function dl(e,t){if(e&&typeof e=="object"){const n="line"in e?ia(e.line):void 0,i="column"in e?ia(e.column):void 0;if(n&&i!==void 0)return{line:n,column:i+1,offset:ia(t)}}}function ia(e){return typeof e=="number"&&e>-1?e:void 0}const Lm=2,Hn="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",Mm="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",Fm="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",gl="#unexpected-type-in-code-expected-an-object-spread-spread",Dm="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",jm="#could-not-parse-expression-with-acorn";function gr(e,t,n,i,r,s,o,l,u,f,p){const h=this,d=this.events.length+3;let m=0,b,v;return S;function S(N){return e.enter(n),e.enter(i),e.consume(N),e.exit(i),b=h.now(),E}function E(N){if(N===null){if(v)throw v;const y=new qe("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:h.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw y.url=Hn+Mm,y}if(_e(N))return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),I;if(N===125&&m===0){const y=s?Vm.call(h,s,o,r,d,b,f||!1,u||!1):{type:"ok",estree:void 0};if(y.type==="ok"){e.enter(i),e.consume(N),e.exit(i);const g=e.exit(n);return l&&y.estree&&Object.assign(g,{estree:y.estree}),t}return v=y.message,e.enter(r),e.consume(N),k}return e.enter(r),k(N)}function k(N){return N===125&&m===0||N===null||_e(N)?(e.exit(r),E(N)):(N===123&&!s?m+=1:N===125&&(m-=1),e.consume(N),k)}function I(N){const y=h.now();if(y.line!==b.line&&!p&&h.parser.lazy[y.line]){const g=new qe("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:h.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw g.url=Hn+Fm,g}return Me(N)?je(e,E,"linePrefix",Lm+1)(N):E(N)}}function Vm(e,t,n,i,r,s,o){const l=nh(this.events.slice(i),{acorn:e,tokenTypes:[n],acornOptions:t,start:r,expression:!0,allowEmpty:s,prefix:o?"({":"",suffix:o?"})":""}),u=l.estree;if(o&&u){const f=u.body[0];if(f.type!=="ExpressionStatement"||f.expression.type!=="ObjectExpression"){const p=tr(f),h=new qe("Unexpected `"+f.type+"` in code: expected an object spread (`{...spread}`)",{place:p.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw h.url=Hn+gl,h}if(f.expression.properties[1]){const p=tr(f.expression.properties[1]),h=new qe("Unexpected extra content in spread: only a single spread is supported",{place:p.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw h.url=Hn+Dm,h}if(f.expression.properties[0]&&f.expression.properties[0].type!=="SpreadElement"){const p=tr(f.expression.properties[0]),h=new qe("Unexpected `"+f.expression.properties[0].type+"` in code: only spread elements are supported",{place:p.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw h.url=Hn+gl,h}}if(l.error){const f=new qe("Could not parse expression with acorn",{cause:l.error,place:{line:l.error.loc.line,column:l.error.loc.column+1,offset:l.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return f.url=Hn+jm,{type:"nok",message:f}}return{type:"ok",estree:u}}function Bm(e){const t=e||{},n=t.addResult,i=t.acorn,r=t.spread;let s=t.allowEmpty,o;if(s==null&&(s=!0),i){if(!i.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");o=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions)}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{123:{name:"mdxFlowExpression",tokenize:l,concrete:!0}},text:{123:{name:"mdxTextExpression",tokenize:u}}};function l(f,p,h){const d=this;return m;function m(E){return b(E)}function b(E){return gr.call(d,f,v,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",i,o,n,r,s)(E)}function v(E){return Me(E)?je(f,S,"whitespace")(E):S(E)}function S(E){const k=d.parser.constructs.flow[60],N=(Array.isArray(k)?k:k?[k]:[]).find(function(y){return y.name==="mdxJsxFlowTag"});return E===60&&N?f.attempt(N,S,h)(E):E===null||_e(E)?p(E):h(E)}}function u(f,p){const h=this;return d;function d(m){return gr.call(h,f,p,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",i,o,n,r,s,!0)(m)}}}const zm=/[$_\p{ID_Start}]/u,Km=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Um=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Hm={};function Vt(e){return e?zm.test(String.fromCodePoint(e)):!1}function ai(e,t){const i=(t||Hm).jsx?Um:Km;return e?i.test(String.fromCodePoint(e)):!1}const ml="https://github.com/micromark/micromark-extension-mdx-jsx";function ih(e,t,n,i,r,s,o,l,u,f,p,h,d,m,b,v,S,E,k,I,N,y,g,A,M,F,R,j,B,D,se,ue){const te=this;let ae,ge;return ve;function ve(T){return e.enter(l),e.enter(u),e.consume(T),e.exit(u),L}function L(T){return Ke(T)?n(T):(ae=G,Te(T))}function G(T){if(T===47)return e.enter(f),e.consume(T),e.exit(f),ae=ne,Te;if(T===62)return $e(T);if(T!==null&&T>=0&&Vt(T))return e.enter(h),e.enter(d),e.consume(T),O;re(T,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(T===33?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function ne(T){if(T===62)return $e(T);if(T!==null&&T>=0&&Vt(T))return e.enter(h),e.enter(d),e.consume(T),O;re(T,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(T===42||T===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function O(T){if(T!==null&&T>=0&&ai(T,{jsx:!0}))return e.consume(T),O;if(T===46||T===47||T===58||T===62||T===123||Ke(T)||ct(T))return e.exit(d),ae=he,Te(T);re(T,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(T===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function he(T){if(T===46)return e.enter(m),e.consume(T),e.exit(m),ae=W,Te;if(T===58)return e.enter(v),e.consume(T),e.exit(v),ae=K,Te;if(T===47||T===62||T===123||T!==null&&T>=0&&Vt(T))return e.exit(h),X(T);re(T,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function W(T){if(T!==null&&T>=0&&Vt(T))return e.enter(b),e.consume(T),Z;re(T,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function Z(T){if(T!==null&&T>=0&&ai(T,{jsx:!0}))return e.consume(T),Z;if(T===46||T===47||T===62||T===123||Ke(T)||ct(T))return e.exit(b),ae=H,Te(T);re(T,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(T===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function H(T){if(T===46)return e.enter(m),e.consume(T),e.exit(m),ae=W,Te;if(T===47||T===62||T===123||T!==null&&T>=0&&Vt(T))return e.exit(h),X(T);re(T,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function K(T){if(T!==null&&T>=0&&Vt(T))return e.enter(S),e.consume(T),J;re(T,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(T===43||T!==null&&T>46&&T<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function J(T){if(T!==null&&T>=0&&ai(T,{jsx:!0}))return e.consume(T),J;if(T===47||T===62||T===123||Ke(T)||ct(T))return e.exit(S),ae=ie,Te(T);re(T,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ie(T){if(T===47||T===62||T===123||T!==null&&T>=0&&Vt(T))return e.exit(h),X(T);re(T,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function X(T){if(T===47)return e.enter(p),e.consume(T),e.exit(p),ae=Be,Te;if(T===62)return $e(T);if(T===123)return gr.call(te,e,$,E,k,I,i,r,s,!0,!1,o)(T);if(T!==null&&T>=0&&Vt(T))return e.enter(N),e.enter(y),e.enter(g),e.consume(T),Y;re(T,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function $(T){return ae=X,Te(T)}function Y(T){if(T!==null&&T>=0&&ai(T,{jsx:!0}))return e.consume(T),Y;if(T===47||T===58||T===61||T===62||T===123||Ke(T)||ct(T))return e.exit(g),ae=le,Te(T);re(T,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function le(T){if(T===58)return e.enter(A),e.consume(T),e.exit(A),ae=de,Te;if(T===61)return e.exit(y),e.enter(F),e.consume(T),e.exit(F),ae=ke,Te;if(T===47||T===62||T===123||Ke(T)||ct(T)||T!==null&&T>=0&&Vt(T))return e.exit(y),e.exit(N),ae=X,Te(T);re(T,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function de(T){if(T!==null&&T>=0&&Vt(T))return e.enter(M),e.consume(T),Se;re(T,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Se(T){if(T!==null&&T>=0&&ai(T,{jsx:!0}))return e.consume(T),Se;if(T===47||T===61||T===62||T===123||Ke(T)||ct(T))return e.exit(M),e.exit(y),ae=ye,Te(T);re(T,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function ye(T){if(T===61)return e.enter(F),e.consume(T),e.exit(F),ae=ke,Te;if(T===47||T===62||T===123||T!==null&&T>=0&&Vt(T))return e.exit(N),X(T);re(T,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function ke(T){if(T===34||T===39)return e.enter(R),e.enter(j),e.consume(T),e.exit(j),ge=T,be;if(T===123)return gr.call(te,e,Ie,D,se,ue,i,r,s,!1,!1,o)(T);re(T,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(T===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function Ie(T){return e.exit(N),ae=X,Te(T)}function be(T){return T===null&&re(T,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(ge)+"`"),T===ge?(e.enter(j),e.consume(T),e.exit(j),e.exit(R),e.exit(N),ge=void 0,ae=X,Te):_e(T)?(ae=be,Te(T)):(e.enter(B),Pe(T))}function Pe(T){return T===null||T===ge||_e(T)?(e.exit(B),be(T)):(e.consume(T),Pe)}function Be(T){if(T===62)return $e(T);re(T,"after self-closing slash","`>` to end the tag"+(T===42||T===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function $e(T){return e.enter(u),e.consume(T),e.exit(u),e.exit(l),t}function Te(T){return _e(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),Q):Me(T)||ct(T)?(e.enter("esWhitespace"),nt(T)):ae(T)}function nt(T){return _e(T)?(e.exit("esWhitespace"),Te(T)):Me(T)||ct(T)?(e.consume(T),nt):(e.exit("esWhitespace"),ae(T))}function Q(T){if(!o&&te.parser.lazy[te.now().line]){const Ae=new qe("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",te.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw Ae.url=ml+"#unexpected-lazy-line-in-container-expected-line-to-be",Ae}return Te(T)}function re(T,Ae,Le){const at=new qe("Unexpected "+(T===null?"end of file":"character `"+(T===96?"` ` `":String.fromCodePoint(T))+"` ("+$m(T)+")")+" "+Ae+", expected "+Le,te.now(),"micromark-extension-mdx-jsx:unexpected-"+(T===null?"eof":"character"));throw at.url=ml+(T===null?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),at}}function $m(e){return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function qm(e,t){return{name:"mdxJsxTextTag",tokenize:n};function n(i,r,s){return ih.call(this,i,r,s,e,t.acornOptions,t.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}function Wm(e,t){return{concrete:!0,name:"mdxJsxFlowTag",tokenize:n};function n(i,r,s){const o=this;return l;function l(h){return u(h)}function u(h){return ih.call(o,i,f,s,e,t.acornOptions,t.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(h)}function f(h){return Me(h)?je(i,p,"whitespace")(h):p(h)}function p(h){const d=o.parser.constructs.flow[123],m=Array.isArray(d)?d:d?[d]:[];let b;for(const v of m)if(v.name==="mdxFlowExpression"){b=v;break}return h===60?l(h):h===123&&b?i.attempt(b,p,s)(h):h===null||_e(h)?r(h):s(h)}}}function Gm(e){const t=e||{},n=t.acorn;let i;if(n){if(!n.parse||!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");i=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:Wm(n||void 0,{acornOptions:i,addResult:t.addResult||void 0})},text:{60:qm(n||void 0,{acornOptions:i,addResult:t.addResult||void 0})}}}function Jm(){return{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}}function Et(e,t,n,i){const r=e.length;let s=0,o;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)o=Array.from(i),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<i.length;)o=i.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function Pt(e,t){return e.length>0?(Et(e,e.length,0,t),e):t}function qn(e){if(e===null||Ke(e)||ct(e))return 1;if(Mr(e))return 2}function Fr(e,t,n){const i=[];let r=-1;for(;++r<e.length;){const s=e[r].resolveAll;s&&!i.includes(s)&&(t=s(t,n),i.push(s))}return t}const Wa={name:"attention",resolveAll:Ym,tokenize:Qm};function Ym(e,t){let n=-1,i,r,s,o,l,u,f,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[i][1].end},d={...e[n][1].start};xl(h,-u),xl(d,u),o={type:u>1?"strongSequence":"emphasisSequence",start:h,end:{...e[i][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},s={type:u>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},r={type:u>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[i][1].end={...o.start},e[n][1].start={...l.end},f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=Pt(f,[["enter",e[i][1],t],["exit",e[i][1],t]])),f=Pt(f,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",s,t]]),f=Pt(f,Fr(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),f=Pt(f,[["exit",s,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,f=Pt(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Et(e,i-1,n-i+3,f),n=i+f.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Qm(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=qn(i);let s;return o;function o(u){return s=u,e.enter("attentionSequence"),l(u)}function l(u){if(u===s)return e.consume(u),l;const f=e.exit("attentionSequence"),p=qn(u),h=!p||p===2&&r||n.includes(u),d=!r||r===2&&p||n.includes(i);return f._open=!!(s===42?h:h&&(r||!d)),f._close=!!(s===42?d:d&&(p||!h)),t(u)}}function xl(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Zm={name:"autolink",tokenize:Xm};function Xm(e,t,n){let i=0;return r;function r(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(m){return lt(m)?(e.consume(m),o):m===64?n(m):f(m)}function o(m){return m===43||m===45||m===46||gt(m)?(i=1,l(m)):f(m)}function l(m){return m===58?(e.consume(m),i=0,u):(m===43||m===45||m===46||gt(m))&&i++<32?(e.consume(m),l):(i=0,f(m))}function u(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||dr(m)?n(m):(e.consume(m),u)}function f(m){return m===64?(e.consume(m),p):km(m)?(e.consume(m),f):n(m)}function p(m){return gt(m)?h(m):n(m)}function h(m){return m===46?(e.consume(m),i=0,p):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):d(m)}function d(m){if((m===45||gt(m))&&i++<63){const b=m===45?d:h;return e.consume(m),b}return n(m)}}const ti={partial:!0,tokenize:ex};function ex(e,t,n){return i;function i(s){return Me(s)?je(e,r,"linePrefix")(s):r(s)}function r(s){return s===null||_e(s)?t(s):n(s)}}const rh={continuation:{tokenize:nx},exit:ix,name:"blockQuote",tokenize:tx};function tx(e,t,n){const i=this;return r;function r(o){if(o===62){const l=i.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),s}return n(o)}function s(o){return Me(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function nx(e,t,n){const i=this;return r;function r(o){return Me(o)?je(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return e.attempt(rh,t,n)(o)}}function ix(e){e.exit("blockQuote")}const ah={name:"characterEscape",tokenize:rx};function rx(e,t,n){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),r}function r(s){return _m(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const sh={name:"characterReference",tokenize:ax};function ax(e,t,n){const i=this;let r=0,s,o;return l;function l(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),u}function u(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),s=31,o=gt,p(h))}function f(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=Cm,p):(e.enter("characterReferenceValue"),s=7,o=qa,p(h))}function p(h){if(h===59&&r){const d=e.exit("characterReferenceValue");return o===gt&&!mi(i.sliceSerialize(d))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(h)&&r++<s?(e.consume(h),p):n(h)}}const vl={partial:!0,tokenize:ox},bl={concrete:!0,name:"codeFenced",tokenize:sx};function sx(e,t,n){const i=this,r={partial:!0,tokenize:y};let s=0,o=0,l;return u;function u(g){return f(g)}function f(g){const A=i.events[i.events.length-1];return s=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,l=g,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(g)}function p(g){return g===l?(o++,e.consume(g),p):o<3?n(g):(e.exit("codeFencedFenceSequence"),Me(g)?je(e,h,"whitespace")(g):h(g))}function h(g){return g===null||_e(g)?(e.exit("codeFencedFence"),i.interrupt?t(g):e.check(vl,v,N)(g)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===null||_e(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(g)):Me(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),je(e,m,"whitespace")(g)):g===96&&g===l?n(g):(e.consume(g),d)}function m(g){return g===null||_e(g)?h(g):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(g))}function b(g){return g===null||_e(g)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(g)):g===96&&g===l?n(g):(e.consume(g),b)}function v(g){return e.attempt(r,N,S)(g)}function S(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),E}function E(g){return s>0&&Me(g)?je(e,k,"linePrefix",s+1)(g):k(g)}function k(g){return g===null||_e(g)?e.check(vl,v,N)(g):(e.enter("codeFlowValue"),I(g))}function I(g){return g===null||_e(g)?(e.exit("codeFlowValue"),k(g)):(e.consume(g),I)}function N(g){return e.exit("codeFenced"),t(g)}function y(g,A,M){let F=0;return R;function R(ue){return g.enter("lineEnding"),g.consume(ue),g.exit("lineEnding"),j}function j(ue){return g.enter("codeFencedFence"),Me(ue)?je(g,B,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ue):B(ue)}function B(ue){return ue===l?(g.enter("codeFencedFenceSequence"),D(ue)):M(ue)}function D(ue){return ue===l?(F++,g.consume(ue),D):F>=o?(g.exit("codeFencedFenceSequence"),Me(ue)?je(g,se,"whitespace")(ue):se(ue)):M(ue)}function se(ue){return ue===null||_e(ue)?(g.exit("codeFencedFence"),A(ue)):M(ue)}}}function ox(e,t,n){const i=this;return r;function r(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return i.parser.lazy[i.now().line]?n(o):t(o)}}const ra={name:"codeIndented",tokenize:ux},lx={partial:!0,tokenize:cx};function ux(e,t,n){const i=this;return r;function r(f){return e.enter("codeIndented"),je(e,s,"linePrefix",5)(f)}function s(f){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(f):n(f)}function o(f){return f===null?u(f):_e(f)?e.attempt(lx,o,u)(f):(e.enter("codeFlowValue"),l(f))}function l(f){return f===null||_e(f)?(e.exit("codeFlowValue"),o(f)):(e.consume(f),l)}function u(f){return e.exit("codeIndented"),t(f)}}function cx(e,t,n){const i=this;return r;function r(o){return i.parser.lazy[i.now().line]?n(o):_e(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r):je(e,s,"linePrefix",5)(o)}function s(o){const l=i.events[i.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):_e(o)?r(o):n(o)}}const hx={name:"codeText",previous:px,resolve:fx,tokenize:dx};function fx(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function px(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function dx(e,t,n){let i=0,r,s;return o;function o(h){return e.enter("codeText"),e.enter("codeTextSequence"),l(h)}function l(h){return h===96?(e.consume(h),i++,l):(e.exit("codeTextSequence"),u(h))}function u(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),u):h===96?(s=e.enter("codeTextSequence"),r=0,p(h)):_e(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("codeTextData"),f(h))}function f(h){return h===null||h===32||h===96||_e(h)?(e.exit("codeTextData"),u(h)):(e.consume(h),f)}function p(h){return h===96?(e.consume(h),r++,p):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(s.type="codeTextData",f(h))}}class gx{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const r=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&si(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),si(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),si(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);si(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);si(this.left,n.reverse())}}}function si(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function oh(e){const t={};let n=-1,i,r,s,o,l,u,f;const p=new gx(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(i=p.get(n),n&&i[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(u=i[1]._tokenizer.events,s=0,s<u.length&&u[s][1].type==="lineEndingBlank"&&(s+=2),s<u.length&&u[s][1].type==="content"))for(;++s<u.length&&u[s][1].type!=="content";)u[s][1].type==="chunkText"&&(u[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,mx(p,n)),n=t[n],f=!0);else if(i[1]._container){for(s=n,r=void 0;s--;)if(o=p.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(r&&(p.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;r&&(i[1].end={...p.get(r)[1].start},l=p.slice(r,n),l.unshift(i),p.splice(r,n-r+1,l))}}return Et(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!f}function mx(e,t){const n=e.get(t)[1],i=e.get(t)[2];let r=t-1;const s=[];let o=n._tokenizer;o||(o=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const l=o.events,u=[],f={};let p,h,d=-1,m=n,b=0,v=0;const S=[v];for(;m;){for(;e.get(++r)[1]!==m;);s.push(r),m._tokenizer||(p=i.sliceStream(m),m.next||p.push(null),h&&o.defineSkip(m.start),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(p),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),h=m,m=m.next}for(m=n;++d<l.length;)l[d][0]==="exit"&&l[d-1][0]==="enter"&&l[d][1].type===l[d-1][1].type&&l[d][1].start.line!==l[d][1].end.line&&(v=d+1,S.push(v),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(o.events=[],m?(m._tokenizer=void 0,m.previous=void 0):S.pop(),d=S.length;d--;){const E=l.slice(S[d],S[d+1]),k=s.pop();u.push([k,k+E.length-1]),e.splice(k,2,E)}for(u.reverse(),d=-1;++d<u.length;)f[b+u[d][0]]=b+u[d][1],b+=u[d][1]-u[d][0]-1;return f}const xx={resolve:bx,tokenize:yx},vx={partial:!0,tokenize:wx};function bx(e){return oh(e),e}function yx(e,t){let n;return i;function i(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(l)}function r(l){return l===null?s(l):_e(l)?e.check(vx,o,s)(l):(e.consume(l),r)}function s(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function o(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function wx(e,t,n){const i=this;return r;function r(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),je(e,s,"linePrefix")}function s(o){if(o===null||_e(o))return n(o);const l=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):e.interrupt(i.parser.constructs.flow,n,t)(o)}}function lh(e,t,n,i,r,s,o,l,u){const f=u||Number.POSITIVE_INFINITY;let p=0;return h;function h(E){return E===60?(e.enter(i),e.enter(r),e.enter(s),e.consume(E),e.exit(s),d):E===null||E===32||E===41||dr(E)?n(E):(e.enter(i),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),v(E))}function d(E){return E===62?(e.enter(s),e.consume(E),e.exit(s),e.exit(r),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===62?(e.exit("chunkString"),e.exit(l),d(E)):E===null||E===60||_e(E)?n(E):(e.consume(E),E===92?b:m)}function b(E){return E===60||E===62||E===92?(e.consume(E),m):m(E)}function v(E){return!p&&(E===null||E===41||Ke(E))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(i),t(E)):p<f&&E===40?(e.consume(E),p++,v):E===41?(e.consume(E),p--,v):E===null||E===32||E===40||dr(E)?n(E):(e.consume(E),E===92?S:v)}function S(E){return E===40||E===41||E===92?(e.consume(E),v):v(E)}}function uh(e,t,n,i,r,s){const o=this;let l=0,u;return f;function f(m){return e.enter(i),e.enter(r),e.consume(m),e.exit(r),e.enter(s),p}function p(m){return l>999||m===null||m===91||m===93&&!u||m===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(m):m===93?(e.exit(s),e.enter(r),e.consume(m),e.exit(r),e.exit(i),t):_e(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===null||m===91||m===93||_e(m)||l++>999?(e.exit("chunkString"),p(m)):(e.consume(m),u||(u=!Me(m)),m===92?d:h)}function d(m){return m===91||m===92||m===93?(e.consume(m),l++,h):h(m)}}function ch(e,t,n,i,r,s){let o;return l;function l(d){return d===34||d===39||d===40?(e.enter(i),e.enter(r),e.consume(d),e.exit(r),o=d===40?41:d,u):n(d)}function u(d){return d===o?(e.enter(r),e.consume(d),e.exit(r),e.exit(i),t):(e.enter(s),f(d))}function f(d){return d===o?(e.exit(s),u(o)):d===null?n(d):_e(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),je(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(d))}function p(d){return d===o||d===null||_e(d)?(e.exit("chunkString"),f(d)):(e.consume(d),d===92?h:p)}function h(d){return d===o||d===92?(e.consume(d),p):p(d)}}function hi(e,t){let n;return i;function i(r){return _e(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):Me(r)?je(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}function zt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ex={name:"definition",tokenize:kx},Sx={partial:!0,tokenize:Cx};function kx(e,t,n){const i=this;let r;return s;function s(m){return e.enter("definition"),o(m)}function o(m){return uh.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function l(m){return r=zt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):n(m)}function u(m){return Ke(m)?hi(e,f)(m):f(m)}function f(m){return lh(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function p(m){return e.attempt(Sx,h,h)(m)}function h(m){return Me(m)?je(e,d,"whitespace")(m):d(m)}function d(m){return m===null||_e(m)?(e.exit("definition"),i.parser.defined.push(r),t(m)):n(m)}}function Cx(e,t,n){return i;function i(l){return Ke(l)?hi(e,r)(l):n(l)}function r(l){return ch(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return Me(l)?je(e,o,"whitespace")(l):o(l)}function o(l){return l===null||_e(l)?t(l):n(l)}}const _x={name:"hardBreakEscape",tokenize:Ix};function Ix(e,t,n){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),r}function r(s){return _e(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const Ax={name:"headingAtx",resolve:Tx,tokenize:Nx};function Tx(e,t){let n=e.length-2,i=3,r,s;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},s={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Et(e,i,n-i+1,[["enter",r,t],["enter",s,t],["exit",s,t],["exit",r,t]])),e}function Nx(e,t,n){let i=0;return r;function r(p){return e.enter("atxHeading"),s(p)}function s(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&i++<6?(e.consume(p),o):p===null||Ke(p)?(e.exit("atxHeadingSequence"),l(p)):n(p)}function l(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||_e(p)?(e.exit("atxHeading"),t(p)):Me(p)?je(e,l,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),l(p))}function f(p){return p===null||p===35||Ke(p)?(e.exit("atxHeadingText"),l(p)):(e.consume(p),f)}}const Px=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],yl=["pre","script","style","textarea"],Ox={concrete:!0,name:"htmlFlow",resolveTo:Mx,tokenize:Fx},Rx={partial:!0,tokenize:jx},Lx={partial:!0,tokenize:Dx};function Mx(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Fx(e,t,n){const i=this;let r,s,o,l,u;return f;function f(O){return p(O)}function p(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),h}function h(O){return O===33?(e.consume(O),d):O===47?(e.consume(O),s=!0,v):O===63?(e.consume(O),r=3,i.interrupt?t:L):lt(O)?(e.consume(O),o=String.fromCharCode(O),S):n(O)}function d(O){return O===45?(e.consume(O),r=2,m):O===91?(e.consume(O),r=5,l=0,b):lt(O)?(e.consume(O),r=4,i.interrupt?t:L):n(O)}function m(O){return O===45?(e.consume(O),i.interrupt?t:L):n(O)}function b(O){const he="CDATA[";return O===he.charCodeAt(l++)?(e.consume(O),l===he.length?i.interrupt?t:B:b):n(O)}function v(O){return lt(O)?(e.consume(O),o=String.fromCharCode(O),S):n(O)}function S(O){if(O===null||O===47||O===62||Ke(O)){const he=O===47,W=o.toLowerCase();return!he&&!s&&yl.includes(W)?(r=1,i.interrupt?t(O):B(O)):Px.includes(o.toLowerCase())?(r=6,he?(e.consume(O),E):i.interrupt?t(O):B(O)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(O):s?k(O):I(O))}return O===45||gt(O)?(e.consume(O),o+=String.fromCharCode(O),S):n(O)}function E(O){return O===62?(e.consume(O),i.interrupt?t:B):n(O)}function k(O){return Me(O)?(e.consume(O),k):R(O)}function I(O){return O===47?(e.consume(O),R):O===58||O===95||lt(O)?(e.consume(O),N):Me(O)?(e.consume(O),I):R(O)}function N(O){return O===45||O===46||O===58||O===95||gt(O)?(e.consume(O),N):y(O)}function y(O){return O===61?(e.consume(O),g):Me(O)?(e.consume(O),y):I(O)}function g(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),u=O,A):Me(O)?(e.consume(O),g):M(O)}function A(O){return O===u?(e.consume(O),u=null,F):O===null||_e(O)?n(O):(e.consume(O),A)}function M(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||Ke(O)?y(O):(e.consume(O),M)}function F(O){return O===47||O===62||Me(O)?I(O):n(O)}function R(O){return O===62?(e.consume(O),j):n(O)}function j(O){return O===null||_e(O)?B(O):Me(O)?(e.consume(O),j):n(O)}function B(O){return O===45&&r===2?(e.consume(O),te):O===60&&r===1?(e.consume(O),ae):O===62&&r===4?(e.consume(O),G):O===63&&r===3?(e.consume(O),L):O===93&&r===5?(e.consume(O),ve):_e(O)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(Rx,ne,D)(O)):O===null||_e(O)?(e.exit("htmlFlowData"),D(O)):(e.consume(O),B)}function D(O){return e.check(Lx,se,ne)(O)}function se(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),ue}function ue(O){return O===null||_e(O)?D(O):(e.enter("htmlFlowData"),B(O))}function te(O){return O===45?(e.consume(O),L):B(O)}function ae(O){return O===47?(e.consume(O),o="",ge):B(O)}function ge(O){if(O===62){const he=o.toLowerCase();return yl.includes(he)?(e.consume(O),G):B(O)}return lt(O)&&o.length<8?(e.consume(O),o+=String.fromCharCode(O),ge):B(O)}function ve(O){return O===93?(e.consume(O),L):B(O)}function L(O){return O===62?(e.consume(O),G):O===45&&r===2?(e.consume(O),L):B(O)}function G(O){return O===null||_e(O)?(e.exit("htmlFlowData"),ne(O)):(e.consume(O),G)}function ne(O){return e.exit("htmlFlow"),t(O)}}function Dx(e,t,n){const i=this;return r;function r(o){return _e(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):n(o)}function s(o){return i.parser.lazy[i.now().line]?n(o):t(o)}}function jx(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(ti,t,n)}}const Vx={name:"htmlText",tokenize:Bx};function Bx(e,t,n){const i=this;let r,s,o;return l;function l(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),u}function u(L){return L===33?(e.consume(L),f):L===47?(e.consume(L),y):L===63?(e.consume(L),I):lt(L)?(e.consume(L),M):n(L)}function f(L){return L===45?(e.consume(L),p):L===91?(e.consume(L),s=0,b):lt(L)?(e.consume(L),k):n(L)}function p(L){return L===45?(e.consume(L),m):n(L)}function h(L){return L===null?n(L):L===45?(e.consume(L),d):_e(L)?(o=h,ae(L)):(e.consume(L),h)}function d(L){return L===45?(e.consume(L),m):h(L)}function m(L){return L===62?te(L):L===45?d(L):h(L)}function b(L){const G="CDATA[";return L===G.charCodeAt(s++)?(e.consume(L),s===G.length?v:b):n(L)}function v(L){return L===null?n(L):L===93?(e.consume(L),S):_e(L)?(o=v,ae(L)):(e.consume(L),v)}function S(L){return L===93?(e.consume(L),E):v(L)}function E(L){return L===62?te(L):L===93?(e.consume(L),E):v(L)}function k(L){return L===null||L===62?te(L):_e(L)?(o=k,ae(L)):(e.consume(L),k)}function I(L){return L===null?n(L):L===63?(e.consume(L),N):_e(L)?(o=I,ae(L)):(e.consume(L),I)}function N(L){return L===62?te(L):I(L)}function y(L){return lt(L)?(e.consume(L),g):n(L)}function g(L){return L===45||gt(L)?(e.consume(L),g):A(L)}function A(L){return _e(L)?(o=A,ae(L)):Me(L)?(e.consume(L),A):te(L)}function M(L){return L===45||gt(L)?(e.consume(L),M):L===47||L===62||Ke(L)?F(L):n(L)}function F(L){return L===47?(e.consume(L),te):L===58||L===95||lt(L)?(e.consume(L),R):_e(L)?(o=F,ae(L)):Me(L)?(e.consume(L),F):te(L)}function R(L){return L===45||L===46||L===58||L===95||gt(L)?(e.consume(L),R):j(L)}function j(L){return L===61?(e.consume(L),B):_e(L)?(o=j,ae(L)):Me(L)?(e.consume(L),j):F(L)}function B(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),r=L,D):_e(L)?(o=B,ae(L)):Me(L)?(e.consume(L),B):(e.consume(L),se)}function D(L){return L===r?(e.consume(L),r=void 0,ue):L===null?n(L):_e(L)?(o=D,ae(L)):(e.consume(L),D)}function se(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||Ke(L)?F(L):(e.consume(L),se)}function ue(L){return L===47||L===62||Ke(L)?F(L):n(L)}function te(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function ae(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),ge}function ge(L){return Me(L)?je(e,ve,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):ve(L)}function ve(L){return e.enter("htmlTextData"),o(L)}}const xs={name:"labelEnd",resolveAll:Hx,resolveTo:$x,tokenize:qx},zx={tokenize:Wx},Kx={tokenize:Gx},Ux={tokenize:Jx};function Hx(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&Et(e,0,e.length,n),e}function $x(e,t){let n=e.length,i=0,r,s,o,l;for(;n--;)if(r=e[n][1],s){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(s=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(o=n);const u={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[s][1].start},end:{...e[o][1].end}},p={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",u,t],["enter",f,t]],l=Pt(l,e.slice(s+1,s+i+3)),l=Pt(l,[["enter",p,t]]),l=Pt(l,Fr(t.parser.constructs.insideSpan.null,e.slice(s+i+4,o-3),t)),l=Pt(l,[["exit",p,t],e[o-2],e[o-1],["exit",f,t]]),l=Pt(l,e.slice(o+1)),l=Pt(l,[["exit",u,t]]),Et(e,s,e.length,l),e}function qx(e,t,n){const i=this;let r=i.events.length,s,o;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){s=i.events[r][1];break}return l;function l(d){return s?s._inactive?h(d):(o=i.parser.defined.includes(zt(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),u):n(d)}function u(d){return d===40?e.attempt(zx,p,o?p:h)(d):d===91?e.attempt(Kx,p,o?f:h)(d):o?p(d):h(d)}function f(d){return e.attempt(Ux,p,h)(d)}function p(d){return t(d)}function h(d){return s._balanced=!0,n(d)}}function Wx(e,t,n){return i;function i(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),r}function r(h){return Ke(h)?hi(e,s)(h):s(h)}function s(h){return h===41?p(h):lh(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function o(h){return Ke(h)?hi(e,u)(h):p(h)}function l(h){return n(h)}function u(h){return h===34||h===39||h===40?ch(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):p(h)}function f(h){return Ke(h)?hi(e,p)(h):p(h)}function p(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function Gx(e,t,n){const i=this;return r;function r(l){return uh.call(i,e,s,o,"reference","referenceMarker","referenceString")(l)}function s(l){return i.parser.defined.includes(zt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function o(l){return n(l)}}function Jx(e,t,n){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),r}function r(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const Yx={name:"labelStartImage",resolveAll:xs.resolveAll,tokenize:Qx};function Qx(e,t,n){const i=this;return r;function r(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),s}function s(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),o):n(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(l):t(l)}}const Zx={name:"labelStartLink",resolveAll:xs.resolveAll,tokenize:Xx};function Xx(e,t,n){const i=this;return r;function r(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(o):t(o)}}const aa={name:"lineEnding",tokenize:e0};function e0(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),je(e,t,"linePrefix")}}const nr={name:"thematicBreak",tokenize:t0};function t0(e,t,n){let i=0,r;return s;function s(f){return e.enter("thematicBreak"),o(f)}function o(f){return r=f,l(f)}function l(f){return f===r?(e.enter("thematicBreakSequence"),u(f)):i>=3&&(f===null||_e(f))?(e.exit("thematicBreak"),t(f)):n(f)}function u(f){return f===r?(e.consume(f),i++,u):(e.exit("thematicBreakSequence"),Me(f)?je(e,l,"whitespace")(f):l(f))}}const pt={continuation:{tokenize:a0},exit:o0,name:"list",tokenize:r0},n0={partial:!0,tokenize:l0},i0={partial:!0,tokenize:s0};function r0(e,t,n){const i=this,r=i.events[i.events.length-1];let s=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,o=0;return l;function l(m){const b=i.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!i.containerState.marker||m===i.containerState.marker:qa(m)){if(i.containerState.type||(i.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(nr,n,f)(m):f(m);if(!i.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return n(m)}function u(m){return qa(m)&&++o<10?(e.consume(m),u):(!i.interrupt||o<2)&&(i.containerState.marker?m===i.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),f(m)):n(m)}function f(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||m,e.check(ti,i.interrupt?n:p,e.attempt(n0,d,h))}function p(m){return i.containerState.initialBlankLine=!0,s++,d(m)}function h(m){return Me(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),d):n(m)}function d(m){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function a0(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(ti,r,s);function r(l){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,je(e,t,"listItemIndent",i.containerState.size+1)(l)}function s(l){return i.containerState.furtherBlankLines||!Me(l)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(l)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(i0,t,o)(l))}function o(l){return i.containerState._closeFlow=!0,i.interrupt=void 0,je(e,e.attempt(pt,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function s0(e,t,n){const i=this;return je(e,r,"listItemIndent",i.containerState.size+1);function r(s){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?t(s):n(s)}}function o0(e){e.exit(this.containerState.type)}function l0(e,t,n){const i=this;return je(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(s){const o=i.events[i.events.length-1];return!Me(s)&&o&&o[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const wl={name:"setextUnderline",resolveTo:u0,tokenize:c0};function u0(e,t){let n=e.length,i,r,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",s?(e.splice(r,0,["enter",o,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=o,e.push(["exit",o,t]),e}function c0(e,t,n){const i=this;let r;return s;function s(f){let p=i.events.length,h;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){h=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||h)?(e.enter("setextHeadingLine"),r=f,o(f)):n(f)}function o(f){return e.enter("setextHeadingLineSequence"),l(f)}function l(f){return f===r?(e.consume(f),l):(e.exit("setextHeadingLineSequence"),Me(f)?je(e,u,"lineSuffix")(f):u(f))}function u(f){return f===null||_e(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const h0={tokenize:d0,partial:!0},El="https://github.com/micromark/micromark-extension-mdxjs-esm",f0=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function p0(e){const t={tokenize:r,concrete:!0};if(!e||!e.acorn||!e.acorn.parse)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");const n=e.acorn,i=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0});return{flow:{101:t,105:t}};function r(s,o,l){const u=this,f=u.parser.definedModuleSpecifiers||(u.parser.definedModuleSpecifiers=[]),p=this.events.length+1;let h="";return u.interrupt?l:d;function d(k){return u.now().column>1?l(k):(s.enter("mdxjsEsm"),s.enter("mdxjsEsmData"),s.consume(k),h+=String.fromCharCode(k),m)}function m(k){return lt(k)?(s.consume(k),h+=String.fromCharCode(k),m):(h==="import"||h==="export")&&k===32?(s.consume(k),b):l(k)}function b(k){return k===null||_e(k)?(s.exit("mdxjsEsmData"),v(k)):(s.consume(k),b)}function v(k){return k===null?E(k):_e(k)?s.check(h0,E,S)(k):(s.enter("mdxjsEsmData"),b(k))}function S(k){return s.enter("lineEnding"),s.consume(k),s.exit("lineEnding"),v}function E(k){const I=nh(u.events.slice(p),{acorn:n,acornOptions:i,tokenTypes:["mdxjsEsmData"],prefix:f.length>0?"var "+f.join(",")+`
|
|
36
|
+
`:""});if(I.error){if(k!==null&&I.swallow)return S(k);const y=new qe("Could not parse import/exports with acorn",{cause:I.error,place:{line:I.error.loc.line,column:I.error.loc.column+1,offset:I.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw y.url=El+"#could-not-parse-importexports-with-acorn",y}f.length>0&&I.estree.body.shift();let N=-1;for(;++N<I.estree.body.length;){const y=I.estree.body[N];if(!f0.has(y.type)){const g=new qe("Unexpected `"+y.type+"` in code: only import/exports are supported",{place:tr(y),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw g.url=El+"#unexpected-type-in-code-only-importexports-are-supported",g}if(y.type==="ImportDeclaration"&&!u.interrupt){let g=-1;for(;++g<y.specifiers.length;){const A=y.specifiers[g];f.push(A.local.name)}}}return Object.assign(s.exit("mdxjsEsm"),e.addResult?{estree:I.estree}:void 0),o(k)}}}function d0(e,t,n){return i;function i(r){return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(ti,t,n)}}const Sl={}.hasOwnProperty;function vs(e){const t={};let n=-1;for(;++n<e.length;)g0(t,e[n]);return t}function g0(e,t){let n;for(n in t){const r=(Sl.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let o;if(s)for(o in s){Sl.call(r,o)||(r[o]=[]);const l=s[o];m0(r[o],Array.isArray(l)?l:l?[l]:[])}}}function m0(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);Et(e,0,0,i)}function x0(e){const t=Object.assign({acorn:rt.extend(Sm()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},e);return vs([p0(t),Bm(t),Gm(t),Jm()])}const v0={};function b0(e){const t=this,n=e||v0,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(x0(n)),s.push(Rg()),o.push(Lg(n))}const y0={};function w0(e,t){const n=y0,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return hh(e,i,r)}function hh(e,t,n){if(E0(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return kl(e.children,t,n)}return Array.isArray(e)?kl(e,t,n):""}function kl(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=hh(e[r],t,n);return i.join("")}function E0(e){return!!(e&&typeof e=="object")}function fh(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const S0={tokenize:k0};function k0(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),je(e,t,"linePrefix")}function r(l){return e.enter("paragraph"),s(l)}function s(l){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,o(l)}function o(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return _e(l)?(e.consume(l),e.exit("chunkText"),s):(e.consume(l),o)}}const C0={tokenize:_0},Cl={tokenize:I0};function _0(e){const t=this,n=[];let i=0,r,s,o;return l;function l(I){if(i<n.length){const N=n[i];return t.containerState=N[1],e.attempt(N[0].continuation,u,f)(I)}return f(I)}function u(I){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&k();const N=t.events.length;let y=N,g;for(;y--;)if(t.events[y][0]==="exit"&&t.events[y][1].type==="chunkFlow"){g=t.events[y][1].end;break}E(i);let A=N;for(;A<t.events.length;)t.events[A][1].end={...g},A++;return Et(t.events,y+1,0,t.events.slice(N)),t.events.length=A,f(I)}return l(I)}function f(I){if(i===n.length){if(!r)return d(I);if(r.currentConstruct&&r.currentConstruct.concrete)return b(I);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Cl,p,h)(I)}function p(I){return r&&k(),E(i),d(I)}function h(I){return t.parser.lazy[t.now().line]=i!==n.length,o=t.now().offset,b(I)}function d(I){return t.containerState={},e.attempt(Cl,m,b)(I)}function m(I){return i++,n.push([t.currentConstruct,t.containerState]),d(I)}function b(I){if(I===null){r&&k(),E(0),e.consume(I);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:s}),v(I)}function v(I){if(I===null){S(e.exit("chunkFlow"),!0),E(0),e.consume(I);return}return _e(I)?(e.consume(I),S(e.exit("chunkFlow")),i=0,t.interrupt=void 0,l):(e.consume(I),v)}function S(I,N){const y=t.sliceStream(I);if(N&&y.push(null),I.previous=s,s&&(s.next=I),s=I,r.defineSkip(I.start),r.write(y),t.parser.lazy[I.start.line]){let g=r.events.length;for(;g--;)if(r.events[g][1].start.offset<o&&(!r.events[g][1].end||r.events[g][1].end.offset>o))return;const A=t.events.length;let M=A,F,R;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(F){R=t.events[M][1].end;break}F=!0}for(E(i),g=A;g<t.events.length;)t.events[g][1].end={...R},g++;Et(t.events,M+1,0,t.events.slice(A)),t.events.length=g}}function E(I){let N=n.length;for(;N-- >I;){const y=n[N];t.containerState=y[1],y[0].exit.call(t,e)}n.length=I}function k(){r.write([null]),s=void 0,r=void 0,t.containerState._closeFlow=void 0}}function I0(e,t,n){return je(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const A0={tokenize:T0};function T0(e){const t=this,n=e.attempt(ti,i,e.attempt(this.parser.constructs.flowInitial,r,je(e,e.attempt(this.parser.constructs.flow,r,e.attempt(xx,r)),"linePrefix")));return n;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const N0={resolveAll:dh()},P0=ph("string"),O0=ph("text");function ph(e){return{resolveAll:dh(e==="text"?R0:void 0),tokenize:t};function t(n){const i=this,r=this.parser.constructs[e],s=n.attempt(r,o,l);return o;function o(p){return f(p)?s(p):l(p)}function l(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return f(p)?(n.exit("data"),s(p)):(n.consume(p),u)}function f(p){if(p===null)return!0;const h=r[p];let d=-1;if(h)for(;++d<h.length;){const m=h[d];if(!m.previous||m.previous.call(i,i.previous))return!0}return!1}}}function dh(e){return t;function t(n,i){let r=-1,s;for(;++r<=n.length;)s===void 0?n[r]&&n[r][1].type==="data"&&(s=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==s+2&&(n[s][1].end=n[r-1][1].end,n.splice(s+2,r-s-2),r=s+2),s=void 0);return e?e(n,i):n}}function R0(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],r=t.sliceStream(i);let s=r.length,o=-1,l=0,u;for(;s--;){const f=r[s];if(typeof f=="string"){for(o=f.length;f.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(f===-2)u=!0,l++;else if(f!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const f={type:n===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:i.start._bufferIndex+o,_index:i.start._index+s,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...f.start},i.start.offset===i.end.offset?Object.assign(i,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}const L0={42:pt,43:pt,45:pt,48:pt,49:pt,50:pt,51:pt,52:pt,53:pt,54:pt,55:pt,56:pt,57:pt,62:rh},M0={91:Ex},F0={[-2]:ra,[-1]:ra,32:ra},D0={35:Ax,42:nr,45:[wl,nr],60:Ox,61:wl,95:nr,96:bl,126:bl},j0={38:sh,92:ah},V0={[-5]:aa,[-4]:aa,[-3]:aa,33:Yx,38:sh,42:Wa,60:[Zm,Vx],91:Zx,92:[_x,ah],93:xs,95:Wa,96:hx},B0={null:[Wa,N0]},z0={null:[42,95]},K0={null:[]},U0=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:z0,contentInitial:M0,disable:K0,document:L0,flow:D0,flowInitial:F0,insideSpan:B0,string:j0,text:V0},Symbol.toStringTag,{value:"Module"}));function H0(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},s=[];let o=[],l=[];const u={attempt:A(y),check:A(g),consume:k,enter:I,exit:N,interrupt:A(g,{interrupt:!0})},f={code:null,containerState:{},defineSkip:v,events:[],now:b,parser:e,previous:null,sliceSerialize:d,sliceStream:m,write:h};let p=t.tokenize.call(f,u);return t.resolveAll&&s.push(t),f;function h(j){return o=Pt(o,j),S(),o[o.length-1]!==null?[]:(M(t,0),f.events=Fr(s,f.events,f),f.events)}function d(j,B){return q0(m(j),B)}function m(j){return $0(o,j)}function b(){const{_bufferIndex:j,_index:B,line:D,column:se,offset:ue}=i;return{_bufferIndex:j,_index:B,line:D,column:se,offset:ue}}function v(j){r[j.line]=j.column,R()}function S(){let j;for(;i._index<o.length;){const B=o[i._index];if(typeof B=="string")for(j=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===j&&i._bufferIndex<B.length;)E(B.charCodeAt(i._bufferIndex));else E(B)}}function E(j){p=p(j)}function k(j){_e(j)?(i.line++,i.column=1,i.offset+=j===-3?2:1,R()):j!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===o[i._index].length&&(i._bufferIndex=-1,i._index++)),f.previous=j}function I(j,B){const D=B||{};return D.type=j,D.start=b(),f.events.push(["enter",D,f]),l.push(D),D}function N(j){const B=l.pop();return B.end=b(),f.events.push(["exit",B,f]),B}function y(j,B){M(j,B.from)}function g(j,B){B.restore()}function A(j,B){return D;function D(se,ue,te){let ae,ge,ve,L;return Array.isArray(se)?ne(se):"tokenize"in se?ne([se]):G(se);function G(Z){return H;function H(K){const J=K!==null&&Z[K],ie=K!==null&&Z.null,X=[...Array.isArray(J)?J:J?[J]:[],...Array.isArray(ie)?ie:ie?[ie]:[]];return ne(X)(K)}}function ne(Z){return ae=Z,ge=0,Z.length===0?te:O(Z[ge])}function O(Z){return H;function H(K){return L=F(),ve=Z,Z.partial||(f.currentConstruct=Z),Z.name&&f.parser.constructs.disable.null.includes(Z.name)?W():Z.tokenize.call(B?Object.assign(Object.create(f),B):f,u,he,W)(K)}}function he(Z){return j(ve,L),ue}function W(Z){return L.restore(),++ge<ae.length?O(ae[ge]):te}}}function M(j,B){j.resolveAll&&!s.includes(j)&&s.push(j),j.resolve&&Et(f.events,B,f.events.length-B,j.resolve(f.events.slice(B),f)),j.resolveTo&&(f.events=j.resolveTo(f.events,f))}function F(){const j=b(),B=f.previous,D=f.currentConstruct,se=f.events.length,ue=Array.from(l);return{from:se,restore:te};function te(){i=j,f.previous=B,f.currentConstruct=D,f.events.length=se,l=ue,R()}}function R(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function $0(e,t){const n=t.start._index,i=t.start._bufferIndex,r=t.end._index,s=t.end._bufferIndex;let o;if(n===r)o=[e[n].slice(i,s)];else{if(o=e.slice(n,r),i>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(i):o.shift()}s>0&&o.push(e[r].slice(0,s))}return o}function q0(e,t){let n=-1;const i=[];let r;for(;++n<e.length;){const s=e[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
|
|
83
37
|
`;break}case-3:{o=`\r
|
|
84
|
-
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,n.push(o)}return n.join("")}function zA(e){const n={constructs:ph([MA,...(e||{}).extensions||[]]),content:i(vA),defined:[],document:i(bA),flow:i(kA),lazy:{},string:i(EA),text:i(_A)};return n;function i(a){return o;function o(s){return jA(n,a,s)}}}function HA(e){for(;!zb(e););return e}const Df=/[\0\t\n\r]/g;function WA(){let e=1,t="",r=!0,n;return i;function i(a,o,s){const u=[];let c,d,h,f,g;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),h=0,t="",r&&(a.charCodeAt(0)===65279&&h++,r=void 0);h<a.length;){if(Df.lastIndex=h,c=Df.exec(a),f=c&&c.index!==void 0?c.index:a.length,g=a.charCodeAt(f),!c){t=a.slice(h);break}if(g===10&&h===f&&n)u.push(-3),n=void 0;else switch(n&&(u.push(-5),n=void 0),h<f&&(u.push(a.slice(h,f)),e+=f-h),g){case 0:{u.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,u.push(-2);e++<d;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:n=!0,e=1}h=f+1}return s&&(n&&u.push(-5),t&&u.push(t),u.push(null)),u}}const UA=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Jb(e){return e.replace(UA,$A)}function $A(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return qb(r.slice(a?2:1),a?16:10)}return Ca(r)||e}const Xb={}.hasOwnProperty;function qA(e,t,r){return typeof t!="string"&&(r=t,t=void 0),KA(r)(HA(zA(r).document().write(WA()(e,t,!0))))}function KA(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Pe),autolinkProtocol:V,autolinkEmail:V,atxHeading:a(re),blockQuote:a(de),characterEscape:V,characterReference:V,codeFenced:a(he),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(he,o),codeText:a(K,o),codeTextData:V,data:V,codeFlowValue:V,definition:a(xe),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(q),hardBreakEscape:a(ue),hardBreakTrailing:a(ue),htmlFlow:a(ve,o),htmlFlowData:V,htmlText:a(ve,o),htmlTextData:V,image:a(Ce),label:o,link:a(Pe),listItem:a(Ue),listItemValue:f,listOrdered:a(Ie,h),listUnordered:a(Ie),paragraph:a(_e),reference:N,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(re),strong:a(Ae),thematicBreak:a(Nt)},exit:{atxHeading:u(),atxHeadingSequence:w,autolink:u(),autolinkEmail:oe,autolinkProtocol:ie,blockQuote:u(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:W,characterReference:$,codeFenced:u(b),codeFencedFence:v,codeFencedFenceInfo:g,codeFencedFenceMeta:x,codeFlowValue:O,codeIndented:u(y),codeText:u(Y),codeTextData:O,data:O,definition:u(),definitionDestinationString:I,definitionLabelString:k,definitionTitleString:C,emphasis:u(),hardBreakEscape:u(F),hardBreakTrailing:u(F),htmlFlow:u(J),htmlFlowData:O,htmlText:u(U),htmlTextData:O,image:u(le),label:fe,labelText:Q,lineEnding:B,link:u(Z),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ee,resourceDestinationString:E,resourceTitleString:te,resource:ae,setextHeading:u(P),setextHeadingLineSequence:T,setextHeadingText:m,strong:u(),thematicBreak:u()}};Yb(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(ge){let pe={type:"root",children:[]};const D={stack:[pe],tokenStack:[],config:t,enter:s,exit:c,buffer:o,resume:d,data:r},Oe=[];let Ke=-1;for(;++Ke<ge.length;)if(ge[Ke][1].type==="listOrdered"||ge[Ke][1].type==="listUnordered")if(ge[Ke][0]==="enter")Oe.push(Ke);else{const St=Oe.pop();Ke=i(ge,St,Ke)}for(Ke=-1;++Ke<ge.length;){const St=t[ge[Ke][0]];Xb.call(St,ge[Ke][1].type)&&St[ge[Ke][1].type].call(Object.assign({sliceSerialize:ge[Ke][2].sliceSerialize},D),ge[Ke][1])}if(D.tokenStack.length>0){const St=D.tokenStack[D.tokenStack.length-1];(St[1]||Vf).call(D,void 0,St[0])}for(pe.position={start:wn(ge.length>0?ge[0][1].start:{line:1,column:1,offset:0}),end:wn(ge.length>0?ge[ge.length-2][1].end:{line:1,column:1,offset:0})},Ke=-1;++Ke<t.transforms.length;)pe=t.transforms[Ke](pe)||pe;return pe}function i(ge,pe,D){let Oe=pe-1,Ke=-1,St=!1,Te,zt,rt,et;for(;++Oe<=D;){const Xe=ge[Oe];switch(Xe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Xe[0]==="enter"?Ke++:Ke--,et=void 0;break}case"lineEndingBlank":{Xe[0]==="enter"&&(Te&&!et&&!Ke&&!rt&&(rt=Oe),et=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:et=void 0}if(!Ke&&Xe[0]==="enter"&&Xe[1].type==="listItemPrefix"||Ke===-1&&Xe[0]==="exit"&&(Xe[1].type==="listUnordered"||Xe[1].type==="listOrdered")){if(Te){let wt=Oe;for(zt=void 0;wt--;){const At=ge[wt];if(At[1].type==="lineEnding"||At[1].type==="lineEndingBlank"){if(At[0]==="exit")continue;zt&&(ge[zt][1].type="lineEndingBlank",St=!0),At[1].type="lineEnding",zt=wt}else if(!(At[1].type==="linePrefix"||At[1].type==="blockQuotePrefix"||At[1].type==="blockQuotePrefixWhitespace"||At[1].type==="blockQuoteMarker"||At[1].type==="listItemIndent"))break}rt&&(!zt||rt<zt)&&(Te._spread=!0),Te.end=Object.assign({},zt?ge[zt][1].start:Xe[1].end),ge.splice(zt||Oe,0,["exit",Te,Xe[2]]),Oe++,D++}if(Xe[1].type==="listItemPrefix"){const wt={type:"listItem",_spread:!1,start:Object.assign({},Xe[1].start),end:void 0};Te=wt,ge.splice(Oe,0,["enter",wt,Xe[2]]),Oe++,D++,rt=void 0,et=!0}}}return ge[pe][1]._spread=St,D}function a(ge,pe){return D;function D(Oe){s.call(this,ge(Oe),Oe),pe&&pe.call(this,Oe)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(ge,pe,D){this.stack[this.stack.length-1].children.push(ge),this.stack.push(ge),this.tokenStack.push([pe,D||void 0]),ge.position={start:wn(pe.start),end:void 0}}function u(ge){return pe;function pe(D){ge&&ge.call(this,D),c.call(this,D)}}function c(ge,pe){const D=this.stack.pop(),Oe=this.tokenStack.pop();if(Oe)Oe[0].type!==ge.type&&(pe?pe.call(this,ge,Oe[0]):(Oe[1]||Vf).call(this,ge,Oe[0]));else throw new Error("Cannot close `"+ge.type+"` ("+nn({start:ge.start,end:ge.end})+"): it’s not open");D.position.end=wn(ge.end)}function d(){return gA(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function f(ge){if(this.data.expectingFirstListItemValue){const pe=this.stack[this.stack.length-2];pe.start=Number.parseInt(this.sliceSerialize(ge),10),this.data.expectingFirstListItemValue=void 0}}function g(){const ge=this.resume(),pe=this.stack[this.stack.length-1];pe.lang=ge}function x(){const ge=this.resume(),pe=this.stack[this.stack.length-1];pe.meta=ge}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const ge=this.resume(),pe=this.stack[this.stack.length-1];pe.value=ge.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const ge=this.resume(),pe=this.stack[this.stack.length-1];pe.value=ge.replace(/(\r?\n|\r)$/g,"")}function k(ge){const pe=this.resume(),D=this.stack[this.stack.length-1];D.label=pe,D.identifier=Br(this.sliceSerialize(ge)).toLowerCase()}function C(){const ge=this.resume(),pe=this.stack[this.stack.length-1];pe.title=ge}function I(){const ge=this.resume(),pe=this.stack[this.stack.length-1];pe.url=ge}function w(ge){const pe=this.stack[this.stack.length-1];if(!pe.depth){const D=this.sliceSerialize(ge).length;pe.depth=D}}function m(){this.data.setextHeadingSlurpLineEnding=!0}function T(ge){const pe=this.stack[this.stack.length-1];pe.depth=this.sliceSerialize(ge).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function V(ge){const D=this.stack[this.stack.length-1].children;let Oe=D[D.length-1];(!Oe||Oe.type!=="text")&&(Oe=Be(),Oe.position={start:wn(ge.start),end:void 0},D.push(Oe)),this.stack.push(Oe)}function O(ge){const pe=this.stack.pop();pe.value+=this.sliceSerialize(ge),pe.position.end=wn(ge.end)}function B(ge){const pe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const D=pe.children[pe.children.length-1];D.position.end=wn(ge.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(pe.type)&&(V.call(this,ge),O.call(this,ge))}function F(){this.data.atHardBreak=!0}function J(){const ge=this.resume(),pe=this.stack[this.stack.length-1];pe.value=ge}function U(){const ge=this.resume(),pe=this.stack[this.stack.length-1];pe.value=ge}function Y(){const ge=this.resume(),pe=this.stack[this.stack.length-1];pe.value=ge}function Z(){const ge=this.stack[this.stack.length-1];if(this.data.inReference){const pe=this.data.referenceType||"shortcut";ge.type+="Reference",ge.referenceType=pe,delete ge.url,delete ge.title}else delete ge.identifier,delete ge.label;this.data.referenceType=void 0}function le(){const ge=this.stack[this.stack.length-1];if(this.data.inReference){const pe=this.data.referenceType||"shortcut";ge.type+="Reference",ge.referenceType=pe,delete ge.url,delete ge.title}else delete ge.identifier,delete ge.label;this.data.referenceType=void 0}function Q(ge){const pe=this.sliceSerialize(ge),D=this.stack[this.stack.length-2];D.label=Jb(pe),D.identifier=Br(pe).toLowerCase()}function fe(){const ge=this.stack[this.stack.length-1],pe=this.resume(),D=this.stack[this.stack.length-1];if(this.data.inReference=!0,D.type==="link"){const Oe=ge.children;D.children=Oe}else D.alt=pe}function E(){const ge=this.resume(),pe=this.stack[this.stack.length-1];pe.url=ge}function te(){const ge=this.resume(),pe=this.stack[this.stack.length-1];pe.title=ge}function ae(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function ee(ge){const pe=this.resume(),D=this.stack[this.stack.length-1];D.label=pe,D.identifier=Br(this.sliceSerialize(ge)).toLowerCase(),this.data.referenceType="full"}function H(ge){this.data.characterReferenceType=ge.type}function W(ge){const pe=this.sliceSerialize(ge),D=this.data.characterReferenceType;let Oe;D?(Oe=qb(pe,D==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Oe=Ca(pe);const Ke=this.stack[this.stack.length-1];Ke.value+=Oe}function $(ge){const pe=this.stack.pop();pe.position.end=wn(ge.end)}function ie(ge){O.call(this,ge);const pe=this.stack[this.stack.length-1];pe.url=this.sliceSerialize(ge)}function oe(ge){O.call(this,ge);const pe=this.stack[this.stack.length-1];pe.url="mailto:"+this.sliceSerialize(ge)}function de(){return{type:"blockquote",children:[]}}function he(){return{type:"code",lang:null,meta:null,value:""}}function K(){return{type:"inlineCode",value:""}}function xe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function q(){return{type:"emphasis",children:[]}}function re(){return{type:"heading",depth:0,children:[]}}function ue(){return{type:"break"}}function ve(){return{type:"html",value:""}}function Ce(){return{type:"image",title:null,url:"",alt:null}}function Pe(){return{type:"link",title:null,url:"",children:[]}}function Ie(ge){return{type:"list",ordered:ge.type==="listOrdered",start:null,spread:ge._spread,children:[]}}function Ue(ge){return{type:"listItem",spread:ge._spread,checked:null,children:[]}}function _e(){return{type:"paragraph",children:[]}}function Ae(){return{type:"strong",children:[]}}function Be(){return{type:"text",value:""}}function Nt(){return{type:"thematicBreak"}}}function wn(e){return{line:e.line,column:e.column,offset:e.offset}}function Yb(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?Yb(e,n):GA(e,n)}}function GA(e,t){let r;for(r in t)if(Xb.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function Vf(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+nn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+nn({start:t.start,end:t.end})+") is still open")}function JA(e){const t=this;t.parser=r;function r(n){return qA(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const Mf={}.hasOwnProperty;function XA(e,t){const r=t||{};function n(i,...a){let o=n.invalid;const s=n.handlers;if(i&&Mf.call(i,e)){const u=String(i[e]);o=Mf.call(s,u)?s[u]:n.unknown}if(o)return o.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const YA={}.hasOwnProperty;function Qb(e,t){let r=-1,n;if(t.extensions)for(;++r<t.extensions.length;)Qb(e,t.extensions[r]);for(n in t)if(YA.call(t,n))switch(n){case"extensions":break;case"unsafe":{jf(e[n],t[n]);break}case"join":{jf(e[n],t[n]);break}case"handlers":{QA(e[n],t[n]);break}default:e.options[n]=t[n]}return e}function jf(e,t){t&&e.push(...t)}function QA(e,t){t&&Object.assign(e,t)}function ZA(e,t,r,n){const i=r.enter("blockquote"),a=r.createTracker(n);a.move("> "),a.shift(2);const o=r.indentLines(r.containerFlow(e,a.current()),eT);return i(),o}function eT(e,t,r){return">"+(r?"":" ")+e}function Zb(e,t){return Ff(e,t.inConstruct,!0)&&!Ff(e,t.notInConstruct,!1)}function Ff(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function Bf(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if(r.unsafe[i].character===`
|
|
85
|
-
`&&
|
|
86
|
-
`}function
|
|
87
|
-
`,encode:["`"],...
|
|
88
|
-
`),
|
|
89
|
-
`)),
|
|
90
|
-
`,...u.current()}))),
|
|
38
|
+
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&r)continue;o=" ";break}default:o=String.fromCharCode(s)}r=s===-2,i.push(o)}return i.join("")}function W0(e){const i={constructs:vs([U0,...(e||{}).extensions||[]]),content:r(S0),defined:[],document:r(C0),flow:r(A0),lazy:{},string:r(P0),text:r(O0)};return i;function r(s){return o;function o(l){return H0(i,s,l)}}}function G0(e){for(;!oh(e););return e}const _l=/[\0\t\n\r]/g;function J0(){let e=1,t="",n=!0,i;return r;function r(s,o,l){const u=[];let f,p,h,d,m;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),h=0,t="",n&&(s.charCodeAt(0)===65279&&h++,n=void 0);h<s.length;){if(_l.lastIndex=h,f=_l.exec(s),d=f&&f.index!==void 0?f.index:s.length,m=s.charCodeAt(d),!f){t=s.slice(h);break}if(m===10&&h===d&&i)u.push(-3),i=void 0;else switch(i&&(u.push(-5),i=void 0),h<d&&(u.push(s.slice(h,d)),e+=d-h),m){case 0:{u.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,u.push(-2);e++<p;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:i=!0,e=1}h=d+1}return l&&(i&&u.push(-5),t&&u.push(t),u.push(null)),u}}const Y0=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function gh(e){return e.replace(Y0,Q0)}function Q0(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),s=r===120||r===88;return fh(n.slice(s?2:1),s?16:10)}return mi(n)||e}const mh={}.hasOwnProperty;function Z0(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),X0(n)(G0(W0(n).document().write(J0()(e,t,!0))))}function X0(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ie),autolinkProtocol:F,autolinkEmail:F,atxHeading:s(de),blockQuote:s(ie),characterEscape:F,characterReference:F,codeFenced:s(X),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(X,o),codeText:s($,o),codeTextData:F,data:F,codeFlowValue:F,definition:s(Y),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(le),hardBreakEscape:s(Se),hardBreakTrailing:s(Se),htmlFlow:s(ye,o),htmlFlowData:F,htmlText:s(ye,o),htmlTextData:F,image:s(ke),label:o,link:s(Ie),listItem:s(Pe),listItemValue:d,listOrdered:s(be,h),listUnordered:s(be),paragraph:s(Be),reference:O,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(de),strong:s($e),thematicBreak:s(nt)},exit:{atxHeading:u(),atxHeadingSequence:y,autolink:u(),autolinkEmail:J,autolinkProtocol:K,blockQuote:u(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:W,characterReferenceMarkerNumeric:W,characterReferenceValue:Z,characterReference:H,codeFenced:u(S),codeFencedFence:v,codeFencedFenceInfo:m,codeFencedFenceMeta:b,codeFlowValue:R,codeIndented:u(E),codeText:u(ue),codeTextData:R,data:R,definition:u(),definitionDestinationString:N,definitionLabelString:k,definitionTitleString:I,emphasis:u(),hardBreakEscape:u(B),hardBreakTrailing:u(B),htmlFlow:u(D),htmlFlowData:R,htmlText:u(se),htmlTextData:R,image:u(ae),label:ve,labelText:ge,lineEnding:j,link:u(te),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:he,resourceDestinationString:L,resourceTitleString:G,resource:ne,setextHeading:u(M),setextHeadingLineSequence:A,setextHeadingText:g,strong:u(),thematicBreak:u()}};xh(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(Q){let re={type:"root",children:[]};const T={stack:[re],tokenStack:[],config:t,enter:l,exit:f,buffer:o,resume:p,data:n},Ae=[];let Le=-1;for(;++Le<Q.length;)if(Q[Le][1].type==="listOrdered"||Q[Le][1].type==="listUnordered")if(Q[Le][0]==="enter")Ae.push(Le);else{const at=Ae.pop();Le=r(Q,at,Le)}for(Le=-1;++Le<Q.length;){const at=t[Q[Le][0]];mh.call(at,Q[Le][1].type)&&at[Q[Le][1].type].call(Object.assign({sliceSerialize:Q[Le][2].sliceSerialize},T),Q[Le][1])}if(T.tokenStack.length>0){const at=T.tokenStack[T.tokenStack.length-1];(at[1]||Il).call(T,void 0,at[0])}for(re.position={start:hn(Q.length>0?Q[0][1].start:{line:1,column:1,offset:0}),end:hn(Q.length>0?Q[Q.length-2][1].end:{line:1,column:1,offset:0})},Le=-1;++Le<t.transforms.length;)re=t.transforms[Le](re)||re;return re}function r(Q,re,T){let Ae=re-1,Le=-1,at=!1,kt,me,Zt,En;for(;++Ae<=T;){const ut=Q[Ae];switch(ut[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ut[0]==="enter"?Le++:Le--,En=void 0;break}case"lineEndingBlank":{ut[0]==="enter"&&(kt&&!En&&!Le&&!Zt&&(Zt=Ae),En=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:En=void 0}if(!Le&&ut[0]==="enter"&&ut[1].type==="listItemPrefix"||Le===-1&&ut[0]==="exit"&&(ut[1].type==="listUnordered"||ut[1].type==="listOrdered")){if(kt){let Ct=Ae;for(me=void 0;Ct--;){const bt=Q[Ct];if(bt[1].type==="lineEnding"||bt[1].type==="lineEndingBlank"){if(bt[0]==="exit")continue;me&&(Q[me][1].type="lineEndingBlank",at=!0),bt[1].type="lineEnding",me=Ct}else if(!(bt[1].type==="linePrefix"||bt[1].type==="blockQuotePrefix"||bt[1].type==="blockQuotePrefixWhitespace"||bt[1].type==="blockQuoteMarker"||bt[1].type==="listItemIndent"))break}Zt&&(!me||Zt<me)&&(kt._spread=!0),kt.end=Object.assign({},me?Q[me][1].start:ut[1].end),Q.splice(me||Ae,0,["exit",kt,ut[2]]),Ae++,T++}if(ut[1].type==="listItemPrefix"){const Ct={type:"listItem",_spread:!1,start:Object.assign({},ut[1].start),end:void 0};kt=Ct,Q.splice(Ae,0,["enter",Ct,ut[2]]),Ae++,T++,Zt=void 0,En=!0}}}return Q[re][1]._spread=at,T}function s(Q,re){return T;function T(Ae){l.call(this,Q(Ae),Ae),re&&re.call(this,Ae)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(Q,re,T){this.stack[this.stack.length-1].children.push(Q),this.stack.push(Q),this.tokenStack.push([re,T||void 0]),Q.position={start:hn(re.start),end:void 0}}function u(Q){return re;function re(T){Q&&Q.call(this,T),f.call(this,T)}}function f(Q,re){const T=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==Q.type&&(re?re.call(this,Q,Ae[0]):(Ae[1]||Il).call(this,Q,Ae[0]));else throw new Error("Cannot close `"+Q.type+"` ("+en({start:Q.start,end:Q.end})+"): it’s not open");T.position.end=hn(Q.end)}function p(){return w0(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function d(Q){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(Q),10),this.data.expectingFirstListItemValue=void 0}}function m(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.lang=Q}function b(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.meta=Q}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q.replace(/(\r?\n|\r)$/g,"")}function k(Q){const re=this.resume(),T=this.stack[this.stack.length-1];T.label=re,T.identifier=zt(this.sliceSerialize(Q)).toLowerCase()}function I(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.title=Q}function N(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.url=Q}function y(Q){const re=this.stack[this.stack.length-1];if(!re.depth){const T=this.sliceSerialize(Q).length;re.depth=T}}function g(){this.data.setextHeadingSlurpLineEnding=!0}function A(Q){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(Q).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function F(Q){const T=this.stack[this.stack.length-1].children;let Ae=T[T.length-1];(!Ae||Ae.type!=="text")&&(Ae=Te(),Ae.position={start:hn(Q.start),end:void 0},T.push(Ae)),this.stack.push(Ae)}function R(Q){const re=this.stack.pop();re.value+=this.sliceSerialize(Q),re.position.end=hn(Q.end)}function j(Q){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const T=re.children[re.children.length-1];T.position.end=hn(Q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(F.call(this,Q),R.call(this,Q))}function B(){this.data.atHardBreak=!0}function D(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q}function se(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q}function ue(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q}function te(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=re,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function ae(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=re,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function ge(Q){const re=this.sliceSerialize(Q),T=this.stack[this.stack.length-2];T.label=gh(re),T.identifier=zt(re).toLowerCase()}function ve(){const Q=this.stack[this.stack.length-1],re=this.resume(),T=this.stack[this.stack.length-1];if(this.data.inReference=!0,T.type==="link"){const Ae=Q.children;T.children=Ae}else T.alt=re}function L(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.url=Q}function G(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.title=Q}function ne(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function he(Q){const re=this.resume(),T=this.stack[this.stack.length-1];T.label=re,T.identifier=zt(this.sliceSerialize(Q)).toLowerCase(),this.data.referenceType="full"}function W(Q){this.data.characterReferenceType=Q.type}function Z(Q){const re=this.sliceSerialize(Q),T=this.data.characterReferenceType;let Ae;T?(Ae=fh(re,T==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=mi(re);const Le=this.stack[this.stack.length-1];Le.value+=Ae}function H(Q){const re=this.stack.pop();re.position.end=hn(Q.end)}function K(Q){R.call(this,Q);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(Q)}function J(Q){R.call(this,Q);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(Q)}function ie(){return{type:"blockquote",children:[]}}function X(){return{type:"code",lang:null,meta:null,value:""}}function $(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function le(){return{type:"emphasis",children:[]}}function de(){return{type:"heading",depth:0,children:[]}}function Se(){return{type:"break"}}function ye(){return{type:"html",value:""}}function ke(){return{type:"image",title:null,url:"",alt:null}}function Ie(){return{type:"link",title:null,url:"",children:[]}}function be(Q){return{type:"list",ordered:Q.type==="listOrdered",start:null,spread:Q._spread,children:[]}}function Pe(Q){return{type:"listItem",spread:Q._spread,checked:null,children:[]}}function Be(){return{type:"paragraph",children:[]}}function $e(){return{type:"strong",children:[]}}function Te(){return{type:"text",value:""}}function nt(){return{type:"thematicBreak"}}}function hn(e){return{line:e.line,column:e.column,offset:e.offset}}function xh(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?xh(e,i):ev(e,i)}}function ev(e,t){let n;for(n in t)if(mh.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function Il(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+en({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+en({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+en({start:t.start,end:t.end})+") is still open")}function tv(e){const t=this;t.parser=n;function n(i){return Z0(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const Al={}.hasOwnProperty;function nv(e,t){const n=t||{};function i(r,...s){let o=i.invalid;const l=i.handlers;if(r&&Al.call(r,e)){const u=String(r[e]);o=Al.call(l,u)?l[u]:i.unknown}if(o)return o.call(this,r,...s)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}const iv={}.hasOwnProperty;function vh(e,t){let n=-1,i;if(t.extensions)for(;++n<t.extensions.length;)vh(e,t.extensions[n]);for(i in t)if(iv.call(t,i))switch(i){case"extensions":break;case"unsafe":{Tl(e[i],t[i]);break}case"join":{Tl(e[i],t[i]);break}case"handlers":{rv(e[i],t[i]);break}default:e.options[i]=t[i]}return e}function Tl(e,t){t&&e.push(...t)}function rv(e,t){t&&Object.assign(e,t)}function av(e,t,n,i){const r=n.enter("blockquote"),s=n.createTracker(i);s.move("> "),s.shift(2);const o=n.indentLines(n.containerFlow(e,s.current()),sv);return r(),o}function sv(e,t,n){return">"+(n?"":" ")+e}function bh(e,t){return Nl(e,t.inConstruct,!0)&&!Nl(e,t.notInConstruct,!1)}function Nl(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function Pl(e,t,n,i){let r=-1;for(;++r<n.unsafe.length;)if(n.unsafe[r].character===`
|
|
39
|
+
`&&bh(n.stack,n.unsafe[r]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
40
|
+
`}function ov(e,t){const n=String(e);let i=n.indexOf(t),r=i,s=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===r?++s>o&&(o=s):s=1,r=i+t.length,i=n.indexOf(t,r);return o}function Ga(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function lv(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function uv(e,t,n,i){const r=lv(n),s=e.value||"",o=r==="`"?"GraveAccent":"Tilde";if(Ga(e,n)){const h=n.enter("codeIndented"),d=n.indentLines(s,cv);return h(),d}const l=n.createTracker(i),u=r.repeat(Math.max(ov(s,r)+1,3)),f=n.enter("codeFenced");let p=l.move(u);if(e.lang){const h=n.enter(`codeFencedLang${o}`);p+=l.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...l.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${o}`);p+=l.move(" "),p+=l.move(n.safe(e.meta,{before:p,after:`
|
|
41
|
+
`,encode:["`"],...l.current()})),h()}return p+=l.move(`
|
|
42
|
+
`),s&&(p+=l.move(s+`
|
|
43
|
+
`)),p+=l.move(u),f(),p}function cv(e,t,n){return(n?"":" ")+e}function bs(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function hv(e,t,n,i){const r=bs(n),s=r==='"'?"Quote":"Apostrophe",o=n.enter("definition");let l=n.enter("label");const u=n.createTracker(i);let f=u.move("[");return f+=u.move(n.safe(n.associationId(e),{before:f,after:"]",...u.current()})),f+=u.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),f+=u.move("<"),f+=u.move(n.safe(e.url,{before:f,after:">",...u.current()})),f+=u.move(">")):(l=n.enter("destinationRaw"),f+=u.move(n.safe(e.url,{before:f,after:e.title?" ":`
|
|
44
|
+
`,...u.current()}))),l(),e.title&&(l=n.enter(`title${s}`),f+=u.move(" "+r),f+=u.move(n.safe(e.title,{before:f,after:r,...u.current()})),f+=u.move(r),l()),o(),f}function fv(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function xn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function mr(e,t,n){const i=qn(e),r=qn(t);return i===void 0?r===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}yh.peek=pv;function yh(e,t,n,i){const r=fv(n),s=n.enter("emphasis"),o=n.createTracker(i),l=o.move(r);let u=o.move(n.containerPhrasing(e,{after:r,before:l,...o.current()}));const f=u.charCodeAt(0),p=mr(i.before.charCodeAt(i.before.length-1),f,r);p.inside&&(u=xn(f)+u.slice(1));const h=u.charCodeAt(u.length-1),d=mr(i.after.charCodeAt(0),h,r);d.inside&&(u=u.slice(0,-1)+xn(h));const m=o.move(r);return s(),n.attentionEncodeSurroundingInfo={after:d.outside,before:p.outside},l+u+m}function pv(e,t,n){return n.options.emphasis||"*"}const Dr=(function(e){if(e==null)return xv;if(typeof e=="function")return jr(e);if(typeof e=="object")return Array.isArray(e)?dv(e):gv(e);if(typeof e=="string")return mv(e);throw new Error("Expected function, string, or object as test")});function dv(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Dr(e[n]);return jr(i);function i(...r){let s=-1;for(;++s<t.length;)if(t[s].apply(this,r))return!0;return!1}}function gv(e){const t=e;return jr(n);function n(i){const r=i;let s;for(s in e)if(r[s]!==t[s])return!1;return!0}}function mv(e){return jr(t);function t(n){return n&&n.type===e}}function jr(e){return t;function t(n,i,r){return!!(vv(n)&&e.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function xv(){return!0}function vv(e){return e!==null&&typeof e=="object"&&"type"in e}const wh=[],bv=!0,Ja=!1,yv="skip";function Eh(e,t,n,i){let r;typeof t=="function"&&typeof n!="function"?(i=n,n=t):r=t;const s=Dr(r),o=i?-1:1;l(e,void 0,[])();function l(u,f,p){const h=u&&typeof u=="object"?u:{};if(typeof h.type=="string"){const m=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(u.type+(m?"<"+m+">":""))+")"})}return d;function d(){let m=wh,b,v,S;if((!t||s(u,f,p[p.length-1]||void 0))&&(m=wv(n(u,p)),m[0]===Ja))return m;if("children"in u&&u.children){const E=u;if(E.children&&m[0]!==yv)for(v=(i?E.children.length:-1)+o,S=p.concat(E);v>-1&&v<E.children.length;){const k=E.children[v];if(b=l(k,v,S)(),b[0]===Ja)return b;v=typeof b[1]=="number"?b[1]:v+o}}return m}}}function wv(e){return Array.isArray(e)?e:typeof e=="number"?[bv,e]:e==null?wh:[e]}function Ev(e,t,n,i){let r,s,o;typeof t=="function"&&typeof n!="function"?(s=void 0,o=t,r=n):(s=t,o=n,r=i),Eh(e,s,l,r);function l(u,f){const p=f[f.length-1],h=p?p.children.indexOf(u):void 0;return o(u,h,p)}}const Sv={};function Sh(e,t){const n=Sv,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return kh(e,i,r)}function kh(e,t,n){if(kv(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ol(e.children,t,n)}return Array.isArray(e)?Ol(e,t,n):""}function Ol(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=kh(e[r],t,n);return i.join("")}function kv(e){return!!(e&&typeof e=="object")}function Ch(e,t){let n=!1;return Ev(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,Ja}),!!((!e.depth||e.depth<3)&&Sh(e)&&(t.options.setext||n))}function Cv(e,t,n,i){const r=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(i);if(Ch(e,n)){const p=n.enter("headingSetext"),h=n.enter("phrasing"),d=n.containerPhrasing(e,{...s.current(),before:`
|
|
91
45
|
`,after:`
|
|
92
|
-
`});return h(),
|
|
93
|
-
`+(
|
|
94
|
-
`))+1))}const o="#".repeat(
|
|
95
|
-
`,...
|
|
96
|
-
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:
|
|
97
|
-
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:
|
|
98
|
-
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:
|
|
46
|
+
`});return h(),p(),d+`
|
|
47
|
+
`+(r===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
|
|
48
|
+
`))+1))}const o="#".repeat(r),l=n.enter("headingAtx"),u=n.enter("phrasing");s.move(o+" ");let f=n.containerPhrasing(e,{before:"# ",after:`
|
|
49
|
+
`,...s.current()});return/^[\t ]/.test(f)&&(f=xn(f.charCodeAt(0))+f.slice(1)),f=f?o+" "+f:o,n.options.closeAtx&&(f+=" "+o),u(),l(),f}_h.peek=_v;function _h(e){return e.value||""}function _v(){return"<"}Ih.peek=Iv;function Ih(e,t,n,i){const r=bs(n),s=r==='"'?"Quote":"Apostrophe",o=n.enter("image");let l=n.enter("label");const u=n.createTracker(i);let f=u.move("![");return f+=u.move(n.safe(e.alt,{before:f,after:"]",...u.current()})),f+=u.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),f+=u.move("<"),f+=u.move(n.safe(e.url,{before:f,after:">",...u.current()})),f+=u.move(">")):(l=n.enter("destinationRaw"),f+=u.move(n.safe(e.url,{before:f,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=n.enter(`title${s}`),f+=u.move(" "+r),f+=u.move(n.safe(e.title,{before:f,after:r,...u.current()})),f+=u.move(r),l()),f+=u.move(")"),o(),f}function Iv(){return"!"}Ah.peek=Av;function Ah(e,t,n,i){const r=e.referenceType,s=n.enter("imageReference");let o=n.enter("label");const l=n.createTracker(i);let u=l.move("![");const f=n.safe(e.alt,{before:u,after:"]",...l.current()});u+=l.move(f+"]["),o();const p=n.stack;n.stack=[],o=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return o(),n.stack=p,s(),r==="full"||!f||f!==h?u+=l.move(h+"]"):r==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function Av(){return"!"}Th.peek=Tv;function Th(e,t,n){let i=e.value||"",r="`",s=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(i);)r+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++s<n.unsafe.length;){const o=n.unsafe[s],l=n.compilePattern(o);let u;if(o.atBreak)for(;u=l.exec(i);){let f=u.index;i.charCodeAt(f)===10&&i.charCodeAt(f-1)===13&&f--,i=i.slice(0,f)+" "+i.slice(u.index+1)}}return r+i+r}function Tv(){return"`"}function Nh(e,t){const n=Sh(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ph.peek=Nv;function Ph(e,t,n,i){const r=bs(n),s=r==='"'?"Quote":"Apostrophe",o=n.createTracker(i);let l,u;if(Nh(e,n)){const p=n.stack;n.stack=[],l=n.enter("autolink");let h=o.move("<");return h+=o.move(n.containerPhrasing(e,{before:h,after:">",...o.current()})),h+=o.move(">"),l(),n.stack=p,h}l=n.enter("link"),u=n.enter("label");let f=o.move("[");return f+=o.move(n.containerPhrasing(e,{before:f,after:"](",...o.current()})),f+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),f+=o.move("<"),f+=o.move(n.safe(e.url,{before:f,after:">",...o.current()})),f+=o.move(">")):(u=n.enter("destinationRaw"),f+=o.move(n.safe(e.url,{before:f,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=n.enter(`title${s}`),f+=o.move(" "+r),f+=o.move(n.safe(e.title,{before:f,after:r,...o.current()})),f+=o.move(r),u()),f+=o.move(")"),l(),f}function Nv(e,t,n){return Nh(e,n)?"<":"["}Oh.peek=Pv;function Oh(e,t,n,i){const r=e.referenceType,s=n.enter("linkReference");let o=n.enter("label");const l=n.createTracker(i);let u=l.move("[");const f=n.containerPhrasing(e,{before:u,after:"]",...l.current()});u+=l.move(f+"]["),o();const p=n.stack;n.stack=[],o=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return o(),n.stack=p,s(),r==="full"||!f||f!==h?u+=l.move(h+"]"):r==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function Pv(){return"["}function ys(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Ov(e){const t=ys(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Rv(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Rh(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Lv(e,t,n,i){const r=n.enter("list"),s=n.bulletCurrent;let o=e.ordered?Rv(n):ys(n);const l=e.ordered?o==="."?")":".":Ov(n);let u=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),Rh(n)===o&&p){let h=-1;for(;++h<e.children.length;){const d=e.children[h];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(o=l),n.bulletCurrent=o;const f=n.containerFlow(e,i);return n.bulletLastUsed=o,n.bulletCurrent=s,r(),f}function Mv(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Fv(e,t,n,i){const r=Mv(n);let s=n.bulletCurrent||ys(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let o=s.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=n.createTracker(i);l.move(s+" ".repeat(o-s.length)),l.shift(o);const u=n.enter("listItem"),f=n.indentLines(n.containerFlow(e,l.current()),p);return u(),f;function p(h,d,m){return d?(m?"":" ".repeat(o))+h:(m?s:s+" ".repeat(o-s.length))+h}}function Dv(e,t,n,i){const r=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(e,i);return s(),r(),o}const jv=Dr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Vv(e,t,n,i){return(e.children.some(function(o){return jv(o)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function Bv(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Lh.peek=zv;function Lh(e,t,n,i){const r=Bv(n),s=n.enter("strong"),o=n.createTracker(i),l=o.move(r+r);let u=o.move(n.containerPhrasing(e,{after:r,before:l,...o.current()}));const f=u.charCodeAt(0),p=mr(i.before.charCodeAt(i.before.length-1),f,r);p.inside&&(u=xn(f)+u.slice(1));const h=u.charCodeAt(u.length-1),d=mr(i.after.charCodeAt(0),h,r);d.inside&&(u=u.slice(0,-1)+xn(h));const m=o.move(r+r);return s(),n.attentionEncodeSurroundingInfo={after:d.outside,before:p.outside},l+u+m}function zv(e,t,n){return n.options.strong||"*"}function Kv(e,t,n,i){return n.safe(e.value,i)}function Uv(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Hv(e,t,n){const i=(Rh(n)+(n.options.ruleSpaces?" ":"")).repeat(Uv(n));return n.options.ruleSpaces?i.slice(0,-1):i}const ws={blockquote:av,break:Pl,code:uv,definition:hv,emphasis:yh,hardBreak:Pl,heading:Cv,html:_h,image:Ih,imageReference:Ah,inlineCode:Th,link:Ph,linkReference:Oh,list:Lv,listItem:Fv,paragraph:Dv,root:Vv,strong:Lh,text:Kv,thematicBreak:Hv},$v=[qv];function qv(e,t,n,i){if(t.type==="code"&&Ga(t,i)&&(e.type==="list"||e.type===t.type&&Ga(e,i)))return!1;if("spread"in n&&typeof n.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&Ch(t,i))?void 0:n.spread?1:0}const Sn=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],Wv=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
|
|
50
|
+
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Sn},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
|
|
51
|
+
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Sn},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
|
|
52
|
+
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:Sn},{atBreak:!0,character:"+",after:`(?:[ \r
|
|
99
53
|
])`},{atBreak:!0,character:"-",after:`(?:[ \r
|
|
100
54
|
-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
|
|
101
|
-
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:
|
|
102
|
-
`)&&
|
|
55
|
+
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Sn},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Sn},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Sn},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Sn},{atBreak:!0,character:"~"}];function Gv(e){return e.label||!e.identifier?e.label||"":gh(e.identifier)}function Jv(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Yv(e,t,n){const i=t.indexStack,r=e.children||[],s=[];let o=-1,l=n.before,u;i.push(-1);let f=t.createTracker(n);for(;++o<r.length;){const p=r[o];let h;if(i[i.length-1]=o,o+1<r.length){let b=t.handle.handlers[r[o+1].type];b&&b.peek&&(b=b.peek),h=b?b(r[o+1],e,t,{before:"",after:"",...f.current()}).charAt(0):""}else h=n.after;s.length>0&&(l==="\r"||l===`
|
|
56
|
+
`)&&p.type==="html"&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),l=" ",f=t.createTracker(n),f.move(s.join("")));let d=t.handle(p,e,t,{...f.current(),after:h,before:l});u&&u===d.slice(0,1)&&(d=xn(u.charCodeAt(0))+d.slice(1));const m=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,u=void 0,m&&(s.length>0&&m.before&&l===s[s.length-1].slice(-1)&&(s[s.length-1]=s[s.length-1].slice(0,-1)+xn(l.charCodeAt(0))),m.after&&(u=h)),f.move(d),s.push(d),l=d.slice(-1)}return i.pop(),s.join("")}function Qv(e,t,n){const i=t.indexStack,r=e.children||[],s=t.createTracker(n),o=[];let l=-1;for(i.push(-1);++l<r.length;){const u=r[l];i[i.length-1]=l,o.push(s.move(t.handle(u,e,t,{before:`
|
|
103
57
|
`,after:`
|
|
104
|
-
`,...
|
|
105
|
-
`.repeat(1+
|
|
58
|
+
`,...s.current()}))),u.type!=="list"&&(t.bulletLastUsed=void 0),l<r.length-1&&o.push(s.move(Zv(u,r[l+1],e,t)))}return i.pop(),o.join("")}function Zv(e,t,n,i){let r=i.join.length;for(;r--;){const s=i.join[r](e,t,n,i);if(s===!0||s===1)break;if(typeof s=="number")return`
|
|
59
|
+
`.repeat(1+s);if(s===!1)return`
|
|
106
60
|
|
|
107
61
|
<!---->
|
|
108
62
|
|
|
109
63
|
`}return`
|
|
110
64
|
|
|
111
|
-
`}const
|
|
65
|
+
`}const Xv=/\r?\n|\r/g;function eb(e,t){const n=[];let i=0,r=0,s;for(;s=Xv.exec(e);)o(e.slice(i,s.index)),n.push(s[0]),i=s.index+s[0].length,r++;return o(e.slice(i)),n.join("");function o(l){n.push(t(l,r,!l))}}function tb(e,t,n){const i=(n.before||"")+(t||"")+(n.after||""),r=[],s=[],o={};let l=-1;for(;++l<e.unsafe.length;){const p=e.unsafe[l];if(!bh(e.stack,p))continue;const h=e.compilePattern(p);let d;for(;d=h.exec(i);){const m="before"in p||!!p.atBreak,b="after"in p,v=d.index+(m?d[1].length:0);r.includes(v)?(o[v].before&&!m&&(o[v].before=!1),o[v].after&&!b&&(o[v].after=!1)):(r.push(v),o[v]={before:m,after:b})}}r.sort(nb);let u=n.before?n.before.length:0;const f=i.length-(n.after?n.after.length:0);for(l=-1;++l<r.length;){const p=r[l];p<u||p>=f||p+1<f&&r[l+1]===p+1&&o[p].after&&!o[p+1].before&&!o[p+1].after||r[l-1]===p-1&&o[p].before&&!o[p-1].before&&!o[p-1].after||(u!==p&&s.push(Rl(i.slice(u,p),"\\")),u=p,/[!-/:-@[-`{-~]/.test(i.charAt(p))&&(!n.encode||!n.encode.includes(i.charAt(p)))?s.push("\\"):(s.push(xn(i.charCodeAt(p))),u++))}return s.push(Rl(i.slice(u,f),n.after)),s.join("")}function nb(e,t){return e-t}function Rl(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,i=[],r=[],s=e+t;let o=-1,l=0,u;for(;u=n.exec(s);)i.push(u.index);for(;++o<i.length;)l!==i[o]&&r.push(e.slice(l,i[o])),r.push("\\"),l=i[o];return r.push(e.slice(l)),r.join("")}function ib(e){const t=e||{},n=t.now||{};let i=t.lineShift||0,r=n.line||1,s=n.column||1;return{move:u,current:o,shift:l};function o(){return{now:{line:r,column:s},lineShift:i}}function l(f){i+=f}function u(f){const p=f||"",h=p.split(/\r?\n|\r/g),d=h[h.length-1];return r+=h.length-1,s=h.length===1?s+d.length:1+d.length+i,p}}function rb(e,t){const n=t||{},i={associationId:Gv,containerPhrasing:lb,containerFlow:ub,createTracker:ib,compilePattern:Jv,enter:s,handlers:{...ws},handle:void 0,indentLines:eb,indexStack:[],join:[...$v],options:{},safe:cb,stack:[],unsafe:[...Wv]};vh(i,n),i.options.tightDefinitions&&i.join.push(ob),i.handle=nv("type",{invalid:ab,unknown:sb,handlers:i.handlers});let r=i.handle(e,void 0,i,{before:`
|
|
112
66
|
`,after:`
|
|
113
|
-
`,now:{line:1,column:1},lineShift:0});return
|
|
114
|
-
`),i;function a(o){return n.stack.push(o),s;function s(){n.stack.pop()}}}function ZT(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function eP(e){const t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function tP(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function rP(e,t){return UT(e,this,t)}function nP(e,t){return $T(e,this,t)}function iP(e,t){return JT(this,e,t)}function aP(e){const t=this;t.compiler=r;function r(n){return QT(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function Wf(e){if(e)throw e}var _u,Uf;function oP(){if(Uf)return _u;Uf=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},a=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var d=e.call(c,"constructor"),h=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!d&&!h)return!1;var f;for(f in c);return typeof f>"u"||e.call(c,f)},o=function(c,d){r&&d.name==="__proto__"?r(c,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):c[d.name]=d.newValue},s=function(c,d){if(d==="__proto__")if(e.call(c,d)){if(n)return n(c,d).value}else return;return c[d]};return _u=function u(){var c,d,h,f,g,x,v=arguments[0],b=1,y=arguments.length,k=!1;for(typeof v=="boolean"&&(k=v,v=arguments[1]||{},b=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});b<y;++b)if(c=arguments[b],c!=null)for(d in c)h=s(v,d),f=s(c,d),v!==f&&(k&&f&&(a(f)||(g=i(f)))?(g?(g=!1,x=h&&i(h)?h:[]):x=h&&a(h)?h:{},o(v,{name:d,newValue:u(k,x,f)})):typeof f<"u"&&o(v,{name:d,newValue:f}));return v},_u}var sP=oP();const Iu=ml(sP);function Ic(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function lP(){const e=[],t={run:r,use:n};return t;function r(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(u,...c){const d=e[++a];let h=-1;if(u){o(u);return}for(;++h<i.length;)(c[h]===null||c[h]===void 0)&&(c[h]=i[h]);i=c,d?uP(d,s)(...c):o(null,...c)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function uP(e,t){let r;return n;function n(...o){const s=e.length>o.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(c){const d=c;if(s&&r)throw d;return i(d)}s||(u&&u.then&&typeof u.then=="function"?u.then(a,i):u instanceof Error?i(u):a(u))}function i(o,...s){r||(r=!0,t(o,...s))}function a(o){i(null,o)}}const $r={basename:cP,dirname:dP,extname:hP,join:pP,sep:"/"};function cP(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');qa(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(n=i):(s=-1,n=o));return r===n?n=o:n<0&&(n=e.length),e.slice(r,n)}function dP(e){if(qa(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function hP(e){qa(e);let t=e.length,r=-1,n=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){n=t+1;break}continue}r<0&&(o=!0,r=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function pP(...e){let t=-1,r;for(;++t<e.length;)qa(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":fP(r)}function fP(e){qa(e);const t=e.codePointAt(0)===47;let r=gP(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function gP(e,t){let r="",n=0,i=-1,a=0,o=-1,s,u;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(u=r.lastIndexOf("/"),u!==r.length-1){u<0?(r="",n=0):(r=r.slice(0,u),n=r.length-1-r.lastIndexOf("/")),i=o,a=0;continue}}else if(r.length>0){r="",n=0,i=o,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,o):r=e.slice(i+1,o),n=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return r}function qa(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const mP={cwd:vP};function vP(){return"/"}function Ac(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function xP(e){if(typeof e=="string")e=new URL(e);else if(!Ac(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return bP(e)}function bP(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Au=["history","path","basename","stem","extname","dirname"];class yP{constructor(t){let r;t?Ac(t)?r={path:t}:typeof t=="string"||wP(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":mP.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Au.length;){const a=Au[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)Au.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?$r.basename(this.path):void 0}set basename(t){Pu(t,"basename"),Tu(t,"basename"),this.path=$r.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?$r.dirname(this.path):void 0}set dirname(t){$f(this.basename,"dirname"),this.path=$r.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?$r.extname(this.path):void 0}set extname(t){if(Tu(t,"extname"),$f(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=$r.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ac(t)&&(t=xP(t)),Pu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?$r.basename(this.path,this.extname):void 0}set stem(t){Pu(t,"stem"),Tu(t,"stem"),this.path=$r.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){const i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){const i=new dt(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Tu(e,t){if(e&&e.includes($r.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+$r.sep+"`")}function Pu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function $f(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function wP(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const kP=(function(e){const n=this.constructor.prototype,i=n[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,n),a}),SP={}.hasOwnProperty;class vh extends kP{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=lP()}copy(){const t=new vh;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(Iu(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Ru("data",this.frozen),this.namespace[t]=r,this):SP.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ru("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=jo(t),n=this.parser||this.Parser;return Nu("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),Nu("process",this.parser||this.Parser),Ou("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,o){const s=jo(t),u=n.parse(s);n.run(u,s,function(d,h,f){if(d||!h||!f)return c(d);const g=h,x=n.stringify(g,f);_P(x)?f.value=x:f.result=x,c(d,f)});function c(d,h){d||!h?o(d):a?a(h):r(void 0,h)}}}processSync(t){let r=!1,n;return this.freeze(),Nu("processSync",this.parser||this.Parser),Ou("processSync",this.compiler||this.Compiler),this.process(t,i),Kf("processSync","process",r),n;function i(a,o){r=!0,Wf(a),n=o}}run(t,r,n){qf(t),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?a(void 0,n):new Promise(a);function a(o,s){const u=jo(r);i.run(t,u,c);function c(d,h,f){const g=h||t;d?s(d):o?o(g):n(void 0,g,f)}}}runSync(t,r){let n=!1,i;return this.run(t,r,a),Kf("runSync","run",n),i;function a(o,s){Wf(o),i=s,n=!0}}stringify(t,r){this.freeze();const n=jo(r),i=this.compiler||this.Compiler;return Ou("stringify",i),qf(t),i(t,n)}use(t,...r){const n=this.attachers,i=this.namespace;if(Ru("use",this.frozen),t!=null)if(typeof t=="function")u(t,r);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[d,...h]=c;u(d,h)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(c.plugins),c.settings&&(i.settings=Iu(!0,i.settings,c.settings))}function s(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){const h=c[d];a(h)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,d){let h=-1,f=-1;for(;++h<n.length;)if(n[h][0]===c){f=h;break}if(f===-1)n.push([c,...d]);else if(d.length>0){let[g,...x]=d;const v=n[f][1];Ic(v)&&Ic(g)&&(g=Iu(!0,v,g)),n[f]=[c,g,...x]}}}}const CP=new vh().freeze();function Nu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ou(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ru(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function qf(e){if(!Ic(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Kf(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function jo(e){return EP(e)?e:new yP(e)}function EP(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function _P(e){return typeof e=="string"||IP(e)}function IP(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const AP=CP().use(JA).use(aP).freeze();function TP(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function PP(e,t,r){const i=bl((r||{}).ignore||[]),a=NP(t);let o=-1;for(;++o<a.length;)r0(e,"text",s);function s(c,d){let h=-1,f;for(;++h<d.length;){const g=d[h],x=f?f.children:void 0;if(i(g,x?x.indexOf(g):void 0,f))return;f=g}if(f)return u(c,d)}function u(c,d){const h=d[d.length-1],f=a[o][0],g=a[o][1];let x=0;const b=h.children.indexOf(c);let y=!1,k=[];f.lastIndex=0;let C=f.exec(c.value);for(;C;){const I=C.index,w={index:C.index,input:C.input,stack:[...d,c]};let m=g(...C,w);if(typeof m=="string"&&(m=m.length>0?{type:"text",value:m}:void 0),m===!1?f.lastIndex=I+1:(x!==I&&k.push({type:"text",value:c.value.slice(x,I)}),Array.isArray(m)?k.push(...m):m&&k.push(m),x=I+C[0].length,y=!0),!f.global)break;C=f.exec(c.value)}return y?(x<c.value.length&&k.push({type:"text",value:c.value.slice(x)}),h.children.splice(b,1,...k)):k=[c],b+k.length}}function NP(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const i=r[n];t.push([OP(i[0]),RP(i[1])])}return t}function OP(e){return typeof e=="string"?new RegExp(TP(e),"g"):e}function RP(e){return typeof e=="function"?e:function(){return e}}const Lu="phrasing",Du=["autolink","link","image","label"];function LP(){return{transforms:[zP],enter:{literalAutolink:VP,literalAutolinkEmail:Vu,literalAutolinkHttp:Vu,literalAutolinkWww:Vu},exit:{literalAutolink:BP,literalAutolinkEmail:FP,literalAutolinkHttp:MP,literalAutolinkWww:jP}}}function DP(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Lu,notInConstruct:Du},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Lu,notInConstruct:Du},{character:":",before:"[ps]",after:"\\/",inConstruct:Lu,notInConstruct:Du}]}}function VP(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Vu(e){this.config.enter.autolinkProtocol.call(this,e)}function MP(e){this.config.exit.autolinkProtocol.call(this,e)}function jP(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function FP(e){this.config.exit.autolinkEmail.call(this,e)}function BP(e){this.exit(e)}function zP(e){PP(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,HP],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),WP]],{ignore:["link","linkReference"]})}function HP(e,t,r,n,i){let a="";if(!g0(i)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!UP(r)))return!1;const o=$P(r+n);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function WP(e,t,r,n){return!g0(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function UP(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function $P(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=Os(e,"(");let a=Os(e,")");for(;n!==-1&&i>a;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),a++;return[e,r]}function g0(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Yt(r)||vl(r))&&(!t||r!==47)}m0.peek=eN;function qP(){this.buffer()}function KP(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function GP(){this.buffer()}function JP(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function XP(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Br(this.sliceSerialize(e)).toLowerCase(),r.label=t}function YP(e){this.exit(e)}function QP(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Br(this.sliceSerialize(e)).toLowerCase(),r.label=t}function ZP(e){this.exit(e)}function eN(){return"["}function m0(e,t,r,n){const i=r.createTracker(n);let a=i.move("[^");const o=r.enter("footnoteReference"),s=r.enter("reference");return a+=i.move(r.safe(r.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]"),a}function tN(){return{enter:{gfmFootnoteCallString:qP,gfmFootnoteCall:KP,gfmFootnoteDefinitionLabelString:GP,gfmFootnoteDefinition:JP},exit:{gfmFootnoteCallString:XP,gfmFootnoteCall:YP,gfmFootnoteDefinitionLabelString:QP,gfmFootnoteDefinition:ZP}}}function rN(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:m0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,i,a,o){const s=a.createTracker(o);let u=s.move("[^");const c=a.enter("footnoteDefinition"),d=a.enter("label");return u+=s.move(a.safe(a.associationId(n),{before:u,after:"]"})),d(),u+=s.move("]:"),n.children&&n.children.length>0&&(s.shift(4),u+=s.move((t?`
|
|
115
|
-
`:" ")+
|
|
116
|
-
`)}function
|
|
117
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:
|
|
118
|
-
`))}function u(g,x,v,b){const y=v.enter("tableCell"),k=v.enter("phrasing"),C=v.containerPhrasing(g,{...b,before:a,after:a});return k(),y(),C}function c(g,x){return dN(g,{align:x,alignDelimiters:n,padding:r,stringLength:i})}function d(g,x,v){const b=g.children;let y=-1;const k=[],C=x.enter("table");for(;++y<b.length;)k[y]=h(b[y],x,v);return C(),k}function h(g,x,v){const b=g.children;let y=-1;const k=[],C=x.enter("tableRow");for(;++y<b.length;)k[y]=u(b[y],g,x,v);return C(),k}function f(g,x,v){let b=mh.inlineCode(g,x,v);return v.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function yN(){return{exit:{taskListCheckValueChecked:Xf,taskListCheckValueUnchecked:Xf,paragraph:kN}}}function wN(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:SN}}}function Xf(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function kN(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const i=t.children;let a=-1,o;for(;++a<i.length;){const s=i[a];if(s.type==="paragraph"){o=s;break}}o===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function SN(e,t,r,n){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=r.createTracker(n);a&&s.move(o);let u=mh.listItem(e,t,r,{...n,...s.current()});return a&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(d){return d+o}}function CN(){return[LP(),tN(),aN(),pN(),yN()]}function EN(e){return{extensions:[DP(),rN(e),oN(),bN(e),wN()]}}const _N={tokenize:ON,partial:!0},b0={tokenize:RN,partial:!0},y0={tokenize:LN,partial:!0},w0={tokenize:DN,partial:!0},IN={tokenize:VN,partial:!0},k0={name:"wwwAutolink",tokenize:PN,previous:C0},S0={name:"protocolAutolink",tokenize:NN,previous:E0},dn={name:"emailAutolink",tokenize:TN,previous:_0},Qr={};function AN(){return{text:Qr}}let Kn=48;for(;Kn<123;)Qr[Kn]=dn,Kn++,Kn===58?Kn=65:Kn===91&&(Kn=97);Qr[43]=dn;Qr[45]=dn;Qr[46]=dn;Qr[95]=dn;Qr[72]=[dn,S0];Qr[104]=[dn,S0];Qr[87]=[dn,k0];Qr[119]=[dn,k0];function TN(e,t,r){const n=this;let i,a;return o;function o(h){return!Tc(h)||!_0.call(n,n.previous)||xh(n.events)?r(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(h))}function s(h){return Tc(h)?(e.consume(h),s):h===64?(e.consume(h),u):r(h)}function u(h){return h===46?e.check(IN,d,c)(h):h===45||h===95||cr(h)?(a=!0,e.consume(h),u):d(h)}function c(h){return e.consume(h),i=!0,u}function d(h){return a&&i&&Gt(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):r(h)}}function PN(e,t,r){const n=this;return i;function i(o){return o!==87&&o!==119||!C0.call(n,n.previous)||xh(n.events)?r(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(_N,e.attempt(b0,e.attempt(y0,a),r),r)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function NN(e,t,r){const n=this;let i="",a=!1;return o;function o(h){return(h===72||h===104)&&E0.call(n,n.previous)&&!xh(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(h),e.consume(h),s):r(h)}function s(h){if(Gt(h)&&i.length<5)return i+=String.fromCodePoint(h),e.consume(h),s;if(h===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(h),u}return r(h)}function u(h){return h===47?(e.consume(h),a?c:(a=!0,u)):r(h)}function c(h){return h===null||Ms(h)||ot(h)||Yt(h)||vl(h)?r(h):e.attempt(b0,e.attempt(y0,d),r)(h)}function d(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function ON(e,t,r){let n=0;return i;function i(o){return(o===87||o===119)&&n<3?(n++,e.consume(o),i):o===46&&n===3?(e.consume(o),a):r(o)}function a(o){return o===null?r(o):t(o)}}function RN(e,t,r){let n,i,a;return o;function o(c){return c===46||c===95?e.check(w0,u,s)(c):c===null||ot(c)||Yt(c)||c!==45&&vl(c)?u(c):(a=!0,e.consume(c),o)}function s(c){return c===95?n=!0:(i=n,n=void 0),e.consume(c),o}function u(c){return i||n||!a?r(c):t(c)}}function LN(e,t){let r=0,n=0;return i;function i(o){return o===40?(r++,e.consume(o),i):o===41&&n<r?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(w0,t,a)(o):o===null||ot(o)||Yt(o)?t(o):(e.consume(o),i)}function a(o){return o===41&&n++,e.consume(o),i}}function DN(e,t,r){return n;function n(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),n):s===38?(e.consume(s),a):s===93?(e.consume(s),i):s===60||s===null||ot(s)||Yt(s)?t(s):r(s)}function i(s){return s===null||s===40||s===91||ot(s)||Yt(s)?t(s):n(s)}function a(s){return Gt(s)?o(s):r(s)}function o(s){return s===59?(e.consume(s),n):Gt(s)?(e.consume(s),o):r(s)}}function VN(e,t,r){return n;function n(a){return e.consume(a),i}function i(a){return cr(a)?r(a):t(a)}}function C0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ot(e)}function E0(e){return!Gt(e)}function _0(e){return!(e===47||Tc(e))}function Tc(e){return e===43||e===45||e===46||e===95||cr(e)}function xh(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const MN={tokenize:$N,partial:!0};function jN(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:HN,continuation:{tokenize:WN},exit:UN}},text:{91:{name:"gfmFootnoteCall",tokenize:zN},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:FN,resolveTo:BN}}}}function FN(e,t,r){const n=this;let i=n.events.length;const a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o;for(;i--;){const u=n.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return s;function s(u){if(!o||!o._balanced)return r(u);const c=Br(n.sliceSerialize({start:o.end,end:n.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?r(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function BN(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...s),e}function zN(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a=0,o;return s;function s(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),u}function u(h){return h!==94?r(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(h){if(a>999||h===93&&!o||h===null||h===91||ot(h))return r(h);if(h===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(Br(n.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(h)}return ot(h)||(o=!0),a++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function HN(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,o=0,s;return u;function u(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):r(x)}function d(x){if(o>999||x===93&&!s||x===null||x===91||ot(x))return r(x);if(x===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return a=Br(n.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return ot(x)||(s=!0),o++,e.consume(x),x===92?h:d}function h(x){return x===91||x===92||x===93?(e.consume(x),o++,d):d(x)}function f(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),i.includes(a)||i.push(a),nt(e,g,"gfmFootnoteDefinitionWhitespace")):r(x)}function g(x){return t(x)}}function WN(e,t,r){return e.check($i,t,e.attempt(MN,t,r))}function UN(e){e.exit("gfmFootnoteDefinition")}function $N(e,t,r){const n=this;return nt(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const o=n.events[n.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):r(a)}}function qN(e){let r=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:a,resolveAll:i};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(o,s){let u=-1;for(;++u<o.length;)if(o[u][0]==="enter"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._close){let c=u;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[u][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[u][1].end)},h={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[u][1].start)},f=[["enter",d,s],["enter",o[c][1],s],["exit",o[c][1],s],["enter",h,s]],g=s.parser.constructs.insideSpan.null;g&&br(f,f.length,0,xl(g,o.slice(c+1,u),s)),br(f,f.length,0,[["exit",h,s],["enter",o[u][1],s],["exit",o[u][1],s],["exit",d,s]]),br(o,c-1,u-c+3,f),u=c+f.length-2;break}}for(u=-1;++u<o.length;)o[u][1].type==="strikethroughSequenceTemporary"&&(o[u][1].type="data");return o}function a(o,s,u){const c=this.previous,d=this.events;let h=0;return f;function f(x){return c===126&&d[d.length-1][1].type!=="characterEscape"?u(x):(o.enter("strikethroughSequenceTemporary"),g(x))}function g(x){const v=Di(c);if(x===126)return h>1?u(x):(o.consume(x),h++,g);if(h<2&&!r)return u(x);const b=o.exit("strikethroughSequenceTemporary"),y=Di(x);return b._open=!y||y===2&&!!v,b._close=!v||v===2&&!!y,s(x)}}}class KN{constructor(){this.map=[]}add(t,r,n){GN(this,t,r,n)}consume(t){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let i=n.pop();for(;i;){for(const a of i)t.push(a);i=n.pop()}this.map.length=0}}function GN(e,t,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=r,e.map[i][2].push(...n);return}i+=1}e.map.push([t,r,n])}}function JN(e,t){let r=!1;const n=[];for(;t<e.length;){const i=e[t];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=n.length-1;n[a]=n[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function XN(){return{flow:{null:{name:"table",tokenize:YN,resolveAll:QN}}}}function YN(e,t,r){const n=this;let i=0,a=0,o;return s;function s(O){let B=n.events.length-1;for(;B>-1;){const U=n.events[B][1].type;if(U==="lineEnding"||U==="linePrefix")B--;else break}const F=B>-1?n.events[B][1].type:null,J=F==="tableHead"||F==="tableRow"?m:u;return J===m&&n.parser.lazy[n.now().line]?r(O):J(O)}function u(O){return e.enter("tableHead"),e.enter("tableRow"),c(O)}function c(O){return O===124||(o=!0,a+=1),d(O)}function d(O){return O===null?r(O):Fe(O)?a>1?(a=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),g):r(O):Je(O)?nt(e,d,"whitespace")(O):(a+=1,o&&(o=!1,i+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),h(O)))}function h(O){return O===null||O===124||ot(O)?(e.exit("data"),d(O)):(e.consume(O),O===92?f:h)}function f(O){return O===92||O===124?(e.consume(O),h):h(O)}function g(O){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(O):(e.enter("tableDelimiterRow"),o=!1,Je(O)?nt(e,x,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):x(O))}function x(O){return O===45||O===58?b(O):O===124?(o=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),v):w(O)}function v(O){return Je(O)?nt(e,b,"whitespace")(O):b(O)}function b(O){return O===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),y):O===45?(a+=1,y(O)):O===null||Fe(O)?I(O):w(O)}function y(O){return O===45?(e.enter("tableDelimiterFiller"),k(O)):w(O)}function k(O){return O===45?(e.consume(O),k):O===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(O))}function C(O){return Je(O)?nt(e,I,"whitespace")(O):I(O)}function I(O){return O===124?x(O):O===null||Fe(O)?!o||i!==a?w(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(O)):w(O)}function w(O){return r(O)}function m(O){return e.enter("tableRow"),T(O)}function T(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),T):O===null||Fe(O)?(e.exit("tableRow"),t(O)):Je(O)?nt(e,T,"whitespace")(O):(e.enter("data"),P(O))}function P(O){return O===null||O===124||ot(O)?(e.exit("data"),T(O)):(e.consume(O),O===92?V:P)}function V(O){return O===92||O===124?(e.consume(O),P):P(O)}}function QN(e,t){let r=-1,n=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,u=0,c,d,h;const f=new KN;for(;++r<e.length;){const g=e[r],x=g[1];g[0]==="enter"?x.type==="tableHead"?(s=!1,u!==0&&(Yf(f,t,u,c,d),d=void 0,u=0),c={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},f.add(r,0,[["enter",c,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(n=!0,h=void 0,a=[0,0,0,0],o=[0,r+1,0,0],s&&(s=!1,d={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},f.add(r,0,[["enter",d,t]])),i=x.type==="tableDelimiterRow"?2:d?3:1):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(n=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],h=Fo(f,t,a,i,void 0,h),a=[0,0,0,0]),o[2]=r)):x.type==="tableCellDivider"&&(n?n=!1:(a[1]!==0&&(o[0]=o[1],h=Fo(f,t,a,i,void 0,h)),a=o,o=[a[1],r,0,0])):x.type==="tableHead"?(s=!0,u=r):x.type==="tableRow"||x.type==="tableDelimiterRow"?(u=r,a[1]!==0?(o[0]=o[1],h=Fo(f,t,a,i,r,h)):o[1]!==0&&(h=Fo(f,t,o,i,r,h)),i=0):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(o[3]=r)}for(u!==0&&Yf(f,t,u,c,d),f.consume(t.events),r=-1;++r<t.events.length;){const g=t.events[r];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=JN(t.events,r))}return e}function Fo(e,t,r,n,i,a){const o=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",s="tableContent";r[0]!==0&&(a.end=Object.assign({},bi(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const u=bi(t.events,r[1]);if(a={type:o,start:Object.assign({},u),end:Object.assign({},u)},e.add(r[1],0,[["enter",a,t]]),r[2]!==0){const c=bi(t.events,r[2]),d=bi(t.events,r[3]),h={type:s,start:Object.assign({},c),end:Object.assign({},d)};if(e.add(r[2],0,[["enter",h,t]]),n!==2){const f=t.events[r[2]],g=t.events[r[3]];if(f[1].end=Object.assign({},g[1].end),f[1].type="chunkText",f[1].contentType="text",r[3]>r[2]+1){const x=r[2]+1,v=r[3]-r[2]-1;e.add(x,v,[])}}e.add(r[3]+1,0,[["exit",h,t]])}return i!==void 0&&(a.end=Object.assign({},bi(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Yf(e,t,r,n,i){const a=[],o=bi(t.events,r);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),n.end=Object.assign({},o),a.push(["exit",n,t]),e.add(r+1,0,a)}function bi(e,t){const r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}const ZN={name:"tasklistCheck",tokenize:tO};function eO(){return{text:{91:ZN}}}function tO(e,t,r){const n=this;return i;function i(u){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return ot(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):r(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):r(u)}function s(u){return Fe(u)?t(u):Je(u)?e.check({tokenize:rO},t,r)(u):r(u)}}function rO(e,t,r){return nt(e,n,"whitespace");function n(i){return i===null?r(i):t(i)}}function nO(e){return ph([AN(),jN(),qN(e),XN(),eO()])}const iO={};function aO(e){const t=this,r=e||iO,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(nO(r)),a.push(CN()),o.push(EN(r))}const I0=async()=>(await Ne.getNodeInfo({verb:Ne.DesignerRequestVerb.GET_INFO,path:"WebForms"})).filter(t=>t.ext==="WebForm"),Pc=(e,t,r)=>{let n=[];return Array.isArray(e)?e.forEach((i,a)=>{n=n.concat(Pc(i,`${t}.[${a}]`,r))}):we.isObject(e)?we.has(e,r)?n.push(`${t}.${r}`):Object.entries(e).forEach(([a,o])=>{n=n.concat(Pc(o,`${t}.${a}`,r))}):t===r&&n.push(r),n},oO=()=>new Date().toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit"}),Qf=e=>{const t=/[",\n\r]/.test(e);let r=e.replace(/"/g,'""');return t&&(r=`"${r}"`),r},sO=(e,t,r)=>{let n="";const i=[...t],a=()=>i.map(d=>""),o=(d,h,f)=>{const g=i.findIndex(x=>x===h);g<0?(d.push(f),i.push(h)):d[g]=f},s=d=>d.join(r)+`
|
|
119
|
-
`,{webforms:u,i18n:
|
|
67
|
+
`,now:{line:1,column:1},lineShift:0});return r&&r.charCodeAt(r.length-1)!==10&&r.charCodeAt(r.length-1)!==13&&(r+=`
|
|
68
|
+
`),r;function s(o){return i.stack.push(o),l;function l(){i.stack.pop()}}}function ab(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function sb(e){const t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function ob(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function lb(e,t){return Yv(e,this,t)}function ub(e,t){return Qv(e,this,t)}function cb(e,t){return tb(this,e,t)}function hb(e){const t=this;t.compiler=n;function n(i){return rb(i,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function Ll(e){if(e)throw e}var sa,Ml;function fb(){if(Ml)return sa;Ml=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},s=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var p=e.call(f,"constructor"),h=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!p&&!h)return!1;var d;for(d in f);return typeof d>"u"||e.call(f,d)},o=function(f,p){n&&p.name==="__proto__"?n(f,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):f[p.name]=p.newValue},l=function(f,p){if(p==="__proto__")if(e.call(f,p)){if(i)return i(f,p).value}else return;return f[p]};return sa=function u(){var f,p,h,d,m,b,v=arguments[0],S=1,E=arguments.length,k=!1;for(typeof v=="boolean"&&(k=v,v=arguments[1]||{},S=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});S<E;++S)if(f=arguments[S],f!=null)for(p in f)h=l(v,p),d=l(f,p),v!==d&&(k&&d&&(s(d)||(m=r(d)))?(m?(m=!1,b=h&&r(h)?h:[]):b=h&&s(h)?h:{},o(v,{name:p,newValue:u(k,b,d)})):typeof d<"u"&&o(v,{name:p,newValue:d}));return v},sa}var pb=fb();const oa=Lr(pb);function Ya(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function db(){const e=[],t={run:n,use:i};return t;function n(...r){let s=-1;const o=r.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...r);function l(u,...f){const p=e[++s];let h=-1;if(u){o(u);return}for(;++h<r.length;)(f[h]===null||f[h]===void 0)&&(f[h]=r[h]);r=f,p?gb(p,l)(...f):o(null,...f)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function gb(e,t){let n;return i;function i(...o){const l=e.length>o.length;let u;l&&o.push(r);try{u=e.apply(this,o)}catch(f){const p=f;if(l&&n)throw p;return r(p)}l||(u&&u.then&&typeof u.then=="function"?u.then(s,r):u instanceof Error?r(u):s(u))}function r(o,...l){n||(n=!0,t(o,...l))}function s(o){r(null,o)}}const Ht={basename:mb,dirname:xb,extname:vb,join:bb,sep:"/"};function mb(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_i(e);let n=0,i=-1,r=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(s){n=r+1;break}}else i<0&&(s=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let o=-1,l=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(s){n=r+1;break}}else o<0&&(s=!0,o=r+1),l>-1&&(e.codePointAt(r)===t.codePointAt(l--)?l<0&&(i=r):(l=-1,i=o));return n===i?i=o:i<0&&(i=e.length),e.slice(n,i)}function xb(e){if(_i(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function vb(e){_i(e);let t=e.length,n=-1,i=0,r=-1,s=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){i=t+1;break}continue}n<0&&(o=!0,n=t+1),l===46?r<0?r=t:s!==1&&(s=1):r>-1&&(s=-1)}return r<0||n<0||s===0||s===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function bb(...e){let t=-1,n;for(;++t<e.length;)_i(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":yb(n)}function yb(e){_i(e);const t=e.codePointAt(0)===47;let n=wb(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function wb(e,t){let n="",i=0,r=-1,s=0,o=-1,l,u;for(;++o<=e.length;){if(o<e.length)l=e.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(r===o-1||s===1))if(r!==o-1&&s===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",i=0):(n=n.slice(0,u),i=n.length-1-n.lastIndexOf("/")),r=o,s=0;continue}}else if(n.length>0){n="",i=0,r=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,o):n=e.slice(r+1,o),i=o-r-1;r=o,s=0}else l===46&&s>-1?s++:s=-1}return n}function _i(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Eb={cwd:Sb};function Sb(){return"/"}function Qa(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kb(e){if(typeof e=="string")e=new URL(e);else if(!Qa(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Cb(e)}function Cb(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const la=["history","path","basename","stem","extname","dirname"];class _b{constructor(t){let n;t?Qa(t)?n={path:t}:typeof t=="string"||Ib(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Eb.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<la.length;){const s=la[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let r;for(r in n)la.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?Ht.basename(this.path):void 0}set basename(t){ca(t,"basename"),ua(t,"basename"),this.path=Ht.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ht.dirname(this.path):void 0}set dirname(t){Fl(this.basename,"dirname"),this.path=Ht.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ht.extname(this.path):void 0}set extname(t){if(ua(t,"extname"),Fl(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ht.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Qa(t)&&(t=kb(t)),ca(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ht.basename(this.path,this.extname):void 0}set stem(t){ca(t,"stem"),ua(t,"stem"),this.path=Ht.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){const r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){const r=new qe(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ua(e,t){if(e&&e.includes(Ht.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ht.sep+"`")}function ca(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Fl(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Ib(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ab=(function(e){const i=this.constructor.prototype,r=i[e],s=function(){return r.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),Tb={}.hasOwnProperty;class Es extends Ab{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=db()}copy(){const t=new Es;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(oa(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(pa("data",this.frozen),this.namespace[t]=n,this):Tb.call(this.namespace,t)&&this.namespace[t]||void 0:t?(pa("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ji(t),i=this.parser||this.Parser;return ha("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),ha("process",this.parser||this.Parser),fa("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(s,o){const l=ji(t),u=i.parse(l);i.run(u,l,function(p,h,d){if(p||!h||!d)return f(p);const m=h,b=i.stringify(m,d);Ob(b)?d.value=b:d.result=b,f(p,d)});function f(p,h){p||!h?o(p):s?s(h):n(void 0,h)}}}processSync(t){let n=!1,i;return this.freeze(),ha("processSync",this.parser||this.Parser),fa("processSync",this.compiler||this.Compiler),this.process(t,r),jl("processSync","process",n),i;function r(s,o){n=!0,Ll(s),i=o}}run(t,n,i){Dl(t),this.freeze();const r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?s(void 0,i):new Promise(s);function s(o,l){const u=ji(n);r.run(t,u,f);function f(p,h,d){const m=h||t;p?l(p):o?o(m):i(void 0,m,d)}}}runSync(t,n){let i=!1,r;return this.run(t,n,s),jl("runSync","run",i),r;function s(o,l){Ll(o),r=l,i=!0}}stringify(t,n){this.freeze();const i=ji(n),r=this.compiler||this.Compiler;return fa("stringify",r),Dl(t),r(t,i)}use(t,...n){const i=this.attachers,r=this.namespace;if(pa("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(f){if(typeof f=="function")u(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[p,...h]=f;u(p,h)}else o(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function o(f){if(!("plugins"in f)&&!("settings"in f))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(f.plugins),f.settings&&(r.settings=oa(!0,r.settings,f.settings))}function l(f){let p=-1;if(f!=null)if(Array.isArray(f))for(;++p<f.length;){const h=f[p];s(h)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function u(f,p){let h=-1,d=-1;for(;++h<i.length;)if(i[h][0]===f){d=h;break}if(d===-1)i.push([f,...p]);else if(p.length>0){let[m,...b]=p;const v=i[d][1];Ya(v)&&Ya(m)&&(m=oa(!0,v,m)),i[d]=[f,m,...b]}}}}const Nb=new Es().freeze();function ha(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function fa(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function pa(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Dl(e){if(!Ya(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function jl(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ji(e){return Pb(e)?e:new _b(e)}function Pb(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ob(e){return typeof e=="string"||Rb(e)}function Rb(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Lb=Nb().use(tv).use(hb).freeze();function Mb(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Fb(e,t,n){const r=Dr((n||{}).ignore||[]),s=Db(t);let o=-1;for(;++o<s.length;)Eh(e,"text",l);function l(f,p){let h=-1,d;for(;++h<p.length;){const m=p[h],b=d?d.children:void 0;if(r(m,b?b.indexOf(m):void 0,d))return;d=m}if(d)return u(f,p)}function u(f,p){const h=p[p.length-1],d=s[o][0],m=s[o][1];let b=0;const S=h.children.indexOf(f);let E=!1,k=[];d.lastIndex=0;let I=d.exec(f.value);for(;I;){const N=I.index,y={index:I.index,input:I.input,stack:[...p,f]};let g=m(...I,y);if(typeof g=="string"&&(g=g.length>0?{type:"text",value:g}:void 0),g===!1?d.lastIndex=N+1:(b!==N&&k.push({type:"text",value:f.value.slice(b,N)}),Array.isArray(g)?k.push(...g):g&&k.push(g),b=N+I[0].length,E=!0),!d.global)break;I=d.exec(f.value)}return E?(b<f.value.length&&k.push({type:"text",value:f.value.slice(b)}),h.children.splice(S,1,...k)):k=[f],S+k.length}}function Db(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const r=n[i];t.push([jb(r[0]),Vb(r[1])])}return t}function jb(e){return typeof e=="string"?new RegExp(Mb(e),"g"):e}function Vb(e){return typeof e=="function"?e:function(){return e}}const da="phrasing",ga=["autolink","link","image","label"];function Bb(){return{transforms:[Wb],enter:{literalAutolink:Kb,literalAutolinkEmail:ma,literalAutolinkHttp:ma,literalAutolinkWww:ma},exit:{literalAutolink:qb,literalAutolinkEmail:$b,literalAutolinkHttp:Ub,literalAutolinkWww:Hb}}}function zb(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:da,notInConstruct:ga},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:da,notInConstruct:ga},{character:":",before:"[ps]",after:"\\/",inConstruct:da,notInConstruct:ga}]}}function Kb(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ma(e){this.config.enter.autolinkProtocol.call(this,e)}function Ub(e){this.config.exit.autolinkProtocol.call(this,e)}function Hb(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function $b(e){this.config.exit.autolinkEmail.call(this,e)}function qb(e){this.exit(e)}function Wb(e){Fb(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Gb],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Jb]],{ignore:["link","linkReference"]})}function Gb(e,t,n,i,r){let s="";if(!Mh(r)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!Yb(n)))return!1;const o=Qb(n+i);if(!o[0])return!1;const l={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function Jb(e,t,n,i){return!Mh(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Yb(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Qb(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const r=ur(e,"(");let s=ur(e,")");for(;i!==-1&&r>s;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),s++;return[e,n]}function Mh(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ct(n)||Mr(n))&&(!t||n!==47)}Fh.peek=sy;function Zb(){this.buffer()}function Xb(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ey(){this.buffer()}function ty(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ny(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=zt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function iy(e){this.exit(e)}function ry(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=zt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ay(e){this.exit(e)}function sy(){return"["}function Fh(e,t,n,i){const r=n.createTracker(i);let s=r.move("[^");const o=n.enter("footnoteReference"),l=n.enter("reference");return s+=r.move(n.safe(n.associationId(e),{after:"]",before:s})),l(),o(),s+=r.move("]"),s}function oy(){return{enter:{gfmFootnoteCallString:Zb,gfmFootnoteCall:Xb,gfmFootnoteDefinitionLabelString:ey,gfmFootnoteDefinition:ty},exit:{gfmFootnoteCallString:ny,gfmFootnoteCall:iy,gfmFootnoteDefinitionLabelString:ry,gfmFootnoteDefinition:ay}}}function ly(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Fh},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,r,s,o){const l=s.createTracker(o);let u=l.move("[^");const f=s.enter("footnoteDefinition"),p=s.enter("label");return u+=l.move(s.safe(s.associationId(i),{before:u,after:"]"})),p(),u+=l.move("]:"),i.children&&i.children.length>0&&(l.shift(4),u+=l.move((t?`
|
|
69
|
+
`:" ")+s.indentLines(s.containerFlow(i,l.current()),t?Dh:uy))),f(),u}}function uy(e,t,n){return t===0?e:Dh(e,t,n)}function Dh(e,t,n){return(n?"":" ")+e}const cy=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];jh.peek=gy;function hy(){return{canContainEols:["delete"],enter:{strikethrough:py},exit:{strikethrough:dy}}}function fy(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:cy}],handlers:{delete:jh}}}function py(e){this.enter({type:"delete",children:[]},e)}function dy(e){this.exit(e)}function jh(e,t,n,i){const r=n.createTracker(i),s=n.enter("strikethrough");let o=r.move("~~");return o+=n.containerPhrasing(e,{...r.current(),before:o,after:"~"}),o+=r.move("~~"),s(),o}function gy(){return"~"}function my(e){return e.length}function xy(e,t){const n=t||{},i=(n.align||[]).concat(),r=n.stringLength||my,s=[],o=[],l=[],u=[];let f=0,p=-1;for(;++p<e.length;){const v=[],S=[];let E=-1;for(e[p].length>f&&(f=e[p].length);++E<e[p].length;){const k=vy(e[p][E]);if(n.alignDelimiters!==!1){const I=r(k);S[E]=I,(u[E]===void 0||I>u[E])&&(u[E]=I)}v.push(k)}o[p]=v,l[p]=S}let h=-1;if(typeof i=="object"&&"length"in i)for(;++h<f;)s[h]=Vl(i[h]);else{const v=Vl(i);for(;++h<f;)s[h]=v}h=-1;const d=[],m=[];for(;++h<f;){const v=s[h];let S="",E="";v===99?(S=":",E=":"):v===108?S=":":v===114&&(E=":");let k=n.alignDelimiters===!1?1:Math.max(1,u[h]-S.length-E.length);const I=S+"-".repeat(k)+E;n.alignDelimiters!==!1&&(k=S.length+k+E.length,k>u[h]&&(u[h]=k),m[h]=k),d[h]=I}o.splice(1,0,d),l.splice(1,0,m),p=-1;const b=[];for(;++p<o.length;){const v=o[p],S=l[p];h=-1;const E=[];for(;++h<f;){const k=v[h]||"";let I="",N="";if(n.alignDelimiters!==!1){const y=u[h]-(S[h]||0),g=s[h];g===114?I=" ".repeat(y):g===99?y%2?(I=" ".repeat(y/2+.5),N=" ".repeat(y/2-.5)):(I=" ".repeat(y/2),N=I):N=" ".repeat(y)}n.delimiterStart!==!1&&!h&&E.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&k==="")&&(n.delimiterStart!==!1||h)&&E.push(" "),n.alignDelimiters!==!1&&E.push(I),E.push(k),n.alignDelimiters!==!1&&E.push(N),n.padding!==!1&&E.push(" "),(n.delimiterEnd!==!1||h!==f-1)&&E.push("|")}b.push(n.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return b.join(`
|
|
70
|
+
`)}function vy(e){return e==null?"":String(e)}function Vl(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function by(){return{enter:{table:yy,tableData:Bl,tableHeader:Bl,tableRow:Ey},exit:{codeText:Sy,table:wy,tableData:xa,tableHeader:xa,tableRow:xa}}}function yy(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function wy(e){this.exit(e),this.data.inTable=void 0}function Ey(e){this.enter({type:"tableRow",children:[]},e)}function xa(e){this.exit(e)}function Bl(e){this.enter({type:"tableCell",children:[]},e)}function Sy(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ky));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function ky(e,t){return t==="|"?t:e}function Cy(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,r=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
71
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:o,tableCell:u,tableRow:l}};function o(m,b,v,S){return f(p(m,v,S),m.align)}function l(m,b,v,S){const E=h(m,v,S),k=f([E]);return k.slice(0,k.indexOf(`
|
|
72
|
+
`))}function u(m,b,v,S){const E=v.enter("tableCell"),k=v.enter("phrasing"),I=v.containerPhrasing(m,{...S,before:s,after:s});return k(),E(),I}function f(m,b){return xy(m,{align:b,alignDelimiters:i,padding:n,stringLength:r})}function p(m,b,v){const S=m.children;let E=-1;const k=[],I=b.enter("table");for(;++E<S.length;)k[E]=h(S[E],b,v);return I(),k}function h(m,b,v){const S=m.children;let E=-1;const k=[],I=b.enter("tableRow");for(;++E<S.length;)k[E]=u(S[E],m,b,v);return I(),k}function d(m,b,v){let S=ws.inlineCode(m,b,v);return v.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function _y(){return{exit:{taskListCheckValueChecked:zl,taskListCheckValueUnchecked:zl,paragraph:Ay}}}function Iy(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ty}}}function zl(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Ay(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const r=t.children;let s=-1,o;for(;++s<r.length;){const l=r[s];if(l.type==="paragraph"){o=l;break}}o===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function Ty(e,t,n,i){const r=e.children[0],s=typeof e.checked=="boolean"&&r&&r.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=n.createTracker(i);s&&l.move(o);let u=ws.listItem(e,t,n,{...i,...l.current()});return s&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),u;function f(p){return p+o}}function Ny(){return[Bb(),oy(),hy(),by(),_y()]}function Py(e){return{extensions:[zb(),ly(e),fy(),Cy(e),Iy()]}}const Oy={tokenize:jy,partial:!0},Vh={tokenize:Vy,partial:!0},Bh={tokenize:By,partial:!0},zh={tokenize:zy,partial:!0},Ry={tokenize:Ky,partial:!0},Kh={name:"wwwAutolink",tokenize:Fy,previous:Hh},Uh={name:"protocolAutolink",tokenize:Dy,previous:$h},un={name:"emailAutolink",tokenize:My,previous:qh},Qt={};function Ly(){return{text:Qt}}let kn=48;for(;kn<123;)Qt[kn]=un,kn++,kn===58?kn=65:kn===91&&(kn=97);Qt[43]=un;Qt[45]=un;Qt[46]=un;Qt[95]=un;Qt[72]=[un,Uh];Qt[104]=[un,Uh];Qt[87]=[un,Kh];Qt[119]=[un,Kh];function My(e,t,n){const i=this;let r,s;return o;function o(h){return!Za(h)||!qh.call(i,i.previous)||Ss(i.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(h))}function l(h){return Za(h)?(e.consume(h),l):h===64?(e.consume(h),u):n(h)}function u(h){return h===46?e.check(Ry,p,f)(h):h===45||h===95||gt(h)?(s=!0,e.consume(h),u):p(h)}function f(h){return e.consume(h),r=!0,u}function p(h){return s&&r&<(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function Fy(e,t,n){const i=this;return r;function r(o){return o!==87&&o!==119||!Hh.call(i,i.previous)||Ss(i.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Oy,e.attempt(Vh,e.attempt(Bh,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function Dy(e,t,n){const i=this;let r="",s=!1;return o;function o(h){return(h===72||h===104)&&$h.call(i,i.previous)&&!Ss(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(h),e.consume(h),l):n(h)}function l(h){if(lt(h)&&r.length<5)return r+=String.fromCodePoint(h),e.consume(h),l;if(h===58){const d=r.toLowerCase();if(d==="http"||d==="https")return e.consume(h),u}return n(h)}function u(h){return h===47?(e.consume(h),s?f:(s=!0,u)):n(h)}function f(h){return h===null||dr(h)||Ke(h)||ct(h)||Mr(h)?n(h):e.attempt(Vh,e.attempt(Bh,p),n)(h)}function p(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function jy(e,t,n){let i=0;return r;function r(o){return(o===87||o===119)&&i<3?(i++,e.consume(o),r):o===46&&i===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function Vy(e,t,n){let i,r,s;return o;function o(f){return f===46||f===95?e.check(zh,u,l)(f):f===null||Ke(f)||ct(f)||f!==45&&Mr(f)?u(f):(s=!0,e.consume(f),o)}function l(f){return f===95?i=!0:(r=i,i=void 0),e.consume(f),o}function u(f){return r||i||!s?n(f):t(f)}}function By(e,t){let n=0,i=0;return r;function r(o){return o===40?(n++,e.consume(o),r):o===41&&i<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(zh,t,s)(o):o===null||Ke(o)||ct(o)?t(o):(e.consume(o),r)}function s(o){return o===41&&i++,e.consume(o),r}}function zy(e,t,n){return i;function i(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),i):l===38?(e.consume(l),s):l===93?(e.consume(l),r):l===60||l===null||Ke(l)||ct(l)?t(l):n(l)}function r(l){return l===null||l===40||l===91||Ke(l)||ct(l)?t(l):i(l)}function s(l){return lt(l)?o(l):n(l)}function o(l){return l===59?(e.consume(l),i):lt(l)?(e.consume(l),o):n(l)}}function Ky(e,t,n){return i;function i(s){return e.consume(s),r}function r(s){return gt(s)?n(s):t(s)}}function Hh(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ke(e)}function $h(e){return!lt(e)}function qh(e){return!(e===47||Za(e))}function Za(e){return e===43||e===45||e===46||e===95||gt(e)}function Ss(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Uy={tokenize:Qy,partial:!0};function Hy(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Gy,continuation:{tokenize:Jy},exit:Yy}},text:{91:{name:"gfmFootnoteCall",tokenize:Wy},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:$y,resolveTo:qy}}}}function $y(e,t,n){const i=this;let r=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;for(;r--;){const u=i.events[r][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return l;function l(u){if(!o||!o._balanced)return n(u);const f=zt(i.sliceSerialize({start:o.end,end:i.now()}));return f.codePointAt(0)!==94||!s.includes(f.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function qy(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...l),e}function Wy(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s=0,o;return l;function l(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),u}function u(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(h){if(s>999||h===93&&!o||h===null||h===91||Ke(h))return n(h);if(h===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return r.includes(zt(i.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return Ke(h)||(o=!0),s++,e.consume(h),h===92?p:f}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function Gy(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,o=0,l;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(b)}function p(b){if(o>999||b===93&&!l||b===null||b===91||Ke(b))return n(b);if(b===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return s=zt(i.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Ke(b)||(l=!0),o++,e.consume(b),b===92?h:p}function h(b){return b===91||b===92||b===93?(e.consume(b),o++,p):p(b)}function d(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),r.includes(s)||r.push(s),je(e,m,"gfmFootnoteDefinitionWhitespace")):n(b)}function m(b){return t(b)}}function Jy(e,t,n){return e.check(ti,t,e.attempt(Uy,t,n))}function Yy(e){e.exit("gfmFootnoteDefinition")}function Qy(e,t,n){const i=this;return je(e,r,"gfmFootnoteDefinitionIndent",5);function r(s){const o=i.events[i.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function Zy(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:s,resolveAll:r};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(o,l){let u=-1;for(;++u<o.length;)if(o[u][0]==="enter"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._close){let f=u;for(;f--;)if(o[f][0]==="exit"&&o[f][1].type==="strikethroughSequenceTemporary"&&o[f][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[f][1].end.offset-o[f][1].start.offset){o[u][1].type="strikethroughSequence",o[f][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},o[f][1].start),end:Object.assign({},o[u][1].end)},h={type:"strikethroughText",start:Object.assign({},o[f][1].end),end:Object.assign({},o[u][1].start)},d=[["enter",p,l],["enter",o[f][1],l],["exit",o[f][1],l],["enter",h,l]],m=l.parser.constructs.insideSpan.null;m&&Et(d,d.length,0,Fr(m,o.slice(f+1,u),l)),Et(d,d.length,0,[["exit",h,l],["enter",o[u][1],l],["exit",o[u][1],l],["exit",p,l]]),Et(o,f-1,u-f+3,d),u=f+d.length-2;break}}for(u=-1;++u<o.length;)o[u][1].type==="strikethroughSequenceTemporary"&&(o[u][1].type="data");return o}function s(o,l,u){const f=this.previous,p=this.events;let h=0;return d;function d(b){return f===126&&p[p.length-1][1].type!=="characterEscape"?u(b):(o.enter("strikethroughSequenceTemporary"),m(b))}function m(b){const v=qn(f);if(b===126)return h>1?u(b):(o.consume(b),h++,m);if(h<2&&!n)return u(b);const S=o.exit("strikethroughSequenceTemporary"),E=qn(b);return S._open=!E||E===2&&!!v,S._close=!v||v===2&&!!E,l(b)}}}class Xy{constructor(){this.map=[]}add(t,n,i){e1(this,t,n,i)}consume(t){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let r=i.pop();for(;r;){for(const s of r)t.push(s);r=i.pop()}this.map.length=0}}function e1(e,t,n,i){let r=0;if(!(n===0&&i.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...i);return}r+=1}e.map.push([t,n,i])}}function t1(e,t){let n=!1;const i=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=i.length-1;i[s]=i[s]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function n1(){return{flow:{null:{name:"table",tokenize:i1,resolveAll:r1}}}}function i1(e,t,n){const i=this;let r=0,s=0,o;return l;function l(R){let j=i.events.length-1;for(;j>-1;){const se=i.events[j][1].type;if(se==="lineEnding"||se==="linePrefix")j--;else break}const B=j>-1?i.events[j][1].type:null,D=B==="tableHead"||B==="tableRow"?g:u;return D===g&&i.parser.lazy[i.now().line]?n(R):D(R)}function u(R){return e.enter("tableHead"),e.enter("tableRow"),f(R)}function f(R){return R===124||(o=!0,s+=1),p(R)}function p(R){return R===null?n(R):_e(R)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),m):n(R):Me(R)?je(e,p,"whitespace")(R):(s+=1,o&&(o=!1,r+=1),R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),o=!0,p):(e.enter("data"),h(R)))}function h(R){return R===null||R===124||Ke(R)?(e.exit("data"),p(R)):(e.consume(R),R===92?d:h)}function d(R){return R===92||R===124?(e.consume(R),h):h(R)}function m(R){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(R):(e.enter("tableDelimiterRow"),o=!1,Me(R)?je(e,b,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):b(R))}function b(R){return R===45||R===58?S(R):R===124?(o=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),v):y(R)}function v(R){return Me(R)?je(e,S,"whitespace")(R):S(R)}function S(R){return R===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),E):R===45?(s+=1,E(R)):R===null||_e(R)?N(R):y(R)}function E(R){return R===45?(e.enter("tableDelimiterFiller"),k(R)):y(R)}function k(R){return R===45?(e.consume(R),k):R===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),I):(e.exit("tableDelimiterFiller"),I(R))}function I(R){return Me(R)?je(e,N,"whitespace")(R):N(R)}function N(R){return R===124?b(R):R===null||_e(R)?!o||r!==s?y(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(R)):y(R)}function y(R){return n(R)}function g(R){return e.enter("tableRow"),A(R)}function A(R){return R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),A):R===null||_e(R)?(e.exit("tableRow"),t(R)):Me(R)?je(e,A,"whitespace")(R):(e.enter("data"),M(R))}function M(R){return R===null||R===124||Ke(R)?(e.exit("data"),A(R)):(e.consume(R),R===92?F:M)}function F(R){return R===92||R===124?(e.consume(R),M):M(R)}}function r1(e,t){let n=-1,i=!0,r=0,s=[0,0,0,0],o=[0,0,0,0],l=!1,u=0,f,p,h;const d=new Xy;for(;++n<e.length;){const m=e[n],b=m[1];m[0]==="enter"?b.type==="tableHead"?(l=!1,u!==0&&(Kl(d,t,u,f,p),p=void 0,u=0),f={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},d.add(n,0,[["enter",f,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(i=!0,h=void 0,s=[0,0,0,0],o=[0,n+1,0,0],l&&(l=!1,p={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},d.add(n,0,[["enter",p,t]])),r=b.type==="tableDelimiterRow"?2:p?3:1):r&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(i=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],h=Vi(d,t,s,r,void 0,h),s=[0,0,0,0]),o[2]=n)):b.type==="tableCellDivider"&&(i?i=!1:(s[1]!==0&&(o[0]=o[1],h=Vi(d,t,s,r,void 0,h)),s=o,o=[s[1],n,0,0])):b.type==="tableHead"?(l=!0,u=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(u=n,s[1]!==0?(o[0]=o[1],h=Vi(d,t,s,r,n,h)):o[1]!==0&&(h=Vi(d,t,o,r,n,h)),r=0):r&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(o[3]=n)}for(u!==0&&Kl(d,t,u,f,p),d.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=t1(t.events,n))}return e}function Vi(e,t,n,i,r,s){const o=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(s.end=Object.assign({},Un(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const u=Un(t.events,n[1]);if(s={type:o,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const f=Un(t.events,n[2]),p=Un(t.events,n[3]),h={type:l,start:Object.assign({},f),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",h,t]]),i!==2){const d=t.events[n[2]],m=t.events[n[3]];if(d[1].end=Object.assign({},m[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,v=n[3]-n[2]-1;e.add(b,v,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return r!==void 0&&(s.end=Object.assign({},Un(t.events,r)),e.add(r,0,[["exit",s,t]]),s=void 0),s}function Kl(e,t,n,i,r){const s=[],o=Un(t.events,n);r&&(r.end=Object.assign({},o),s.push(["exit",r,t])),i.end=Object.assign({},o),s.push(["exit",i,t]),e.add(n+1,0,s)}function Un(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const a1={name:"tasklistCheck",tokenize:o1};function s1(){return{text:{91:a1}}}function o1(e,t,n){const i=this;return r;function r(u){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),s)}function s(u){return Ke(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(u)}function l(u){return _e(u)?t(u):Me(u)?e.check({tokenize:l1},t,n)(u):n(u)}}function l1(e,t,n){return je(e,i,"whitespace");function i(r){return r===null?n(r):t(r)}}function u1(e){return vs([Ly(),Hy(),Zy(e),n1(),s1()])}const c1={};function h1(e){const t=this,n=e||c1,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(u1(n)),s.push(Ny()),o.push(Py(n))}const Wh=async()=>(await fe.getNodeInfo({verb:fe.DesignerRequestVerb.GET_INFO,path:"WebForms"})).filter(t=>t.ext==="WebForm"),Xa=(e,t,n)=>{let i=[];return Array.isArray(e)?e.forEach((r,s)=>{i=i.concat(Xa(r,`${t}.[${s}]`,n))}):oe.isObject(e)?oe.has(e,n)?i.push(`${t}.${n}`):Object.entries(e).forEach(([s,o])=>{i=i.concat(Xa(o,`${t}.${s}`,n))}):t===n&&i.push(n),i},f1=()=>new Date().toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit"}),Ul=e=>{const t=/[",\n\r]/.test(e);let n=e.replace(/"/g,'""');return t&&(n=`"${n}"`),n},p1=(e,t,n)=>{let i="";const r=[...t],s=()=>r.map(p=>""),o=(p,h,d)=>{const m=r.findIndex(b=>b===h);m<0?(p.push(d),r.push(h)):p[m]=d},l=p=>p.join(n)+`
|
|
73
|
+
`,{webforms:u,i18n:f}=e;return u&&Object.keys(u).forEach(h=>{const d=oe.get(u,`${h}`);Object.keys(d).forEach(b=>{const{props:v,resolverName:S}=oe.get(d,b);Array.isArray(v)&&v.forEach(({__dataPath:E,__default:k,...I})=>{const N=s();o(N,"keys",`webforms.${h}.${b}.${E}`),o(N,"__t",Ul(k)),o(N,"resolverName",S),Object.keys(I).forEach(y=>{let g=y;y.startsWith("states:")&&(g=y.replace("states:",""),g=g.replace("i18n:","")),o(N,g,Ul(I[y]))}),i+=l(N)})})}),f&&Object.keys(f).forEach(h=>{const d=oe.get(f,h);d&&Object.keys(d).forEach(b=>{const v=oe.get(d,b),S=s();o(S,"keys",`i18n.${h}.${b}`),o(S,b==="default"?"i18nkey_default":b,v),i+=l(S)})}),l(r)+i},Bi=(e,t)=>{let n=e;return t.bold&&(n=`**${n}**`),t.italic&&(n=`*${n}*`),t.underlined&&(n=`<u>${n}</u>`),t.strikethrough&&(n=`~~${n}~~`),n},zi={datasource:e=>{const{datasource:t,dsType:n,format:i,children:r}=e;let s,o="";return r&&r[0]&&(s=r[0],o=`<ds datasource='${t}' dsType='${n}' format='${i}'>${Bi(s.text,s)}</ds>`),o},link:e=>{const{url:t,target:n,datasource:i,isDatasource:r,children:s}=e;let o="";if(s&&s[0]){const{text:l,...u}=s[0];o=`<link datasource='${i}' isDatasource='${r}' url='${t}' target='${n}'>${Bi(l,u)}</link>`}return o},i18n:e=>{const{children:t,__i18n:n}=e;let i="";if(t&&t[0]){const{text:r,...s}=t[0];i=`<i18n __i18n='${n}'>${Bi(r,s)}</i18n>`}return i},defaultElement:e=>{const{text:t}=e;return Bi(t,e)}},d1=e=>{const{type:t,text:n}=e;if(!t&&!n)return"<e/>";switch(t){case"datasource":return zi.datasource(e);case"link":return zi.link(e);case"i18n":return zi.i18n(e);default:return zi.defaultElement(e)}},g1=e=>e.map(t=>{const{children:n}=t;return n?n.map(i=>d1(i)).join(""):""}).filter(Boolean).join(`
|
|
120
74
|
|
|
121
|
-
`),
|
|
122
|
-
`||e[a]==="\r"?(r=!1,t+='"'):t+='""'}else r=!0,t+='"';else t+=i}return t},ju=e=>{const t=cO(e),r=AP().use(aO,{singleTilde:!0}).use(pA).parse(t),n=(a,o,s)=>{var h;const{type:u,value:c}=a;let d={};if(u==="root"){const{children:f}=a;return f.map(g=>n(g,o)).flat()}if(o){if(u==="list"){const{children:f}=a;return f.map(g=>n(g,d,s)).flat()}else if(u==="listItem"){const{children:f}=a;return f.map(g=>{const x=s!=null&&s.prefix?s.prefix:g.type==="list"?" - ":"* ",v=n(g,d,{prefix:x});return v.type==="paragraph"&&v.children&&(v.children.length>1?v.children=[{text:x},...v.children]:v.children=v.children.map(b=>(b.text&&(b.text=`${x}${b.text}`),b))),v}).flat()}else if(u==="paragraph"){d={type:"paragraph",children:[]};const{children:f}=a,g=f.map(x=>n(x,d));d.children=g}else if(u==="mdxJsxTextElement"){const{name:f}=a;if(f==="ds"){d={type:"datasource",children:[]};const{children:g,attributes:x}=a;if(g){const v=n(g[0],d);d.children=[v]}if(x){const v=x.reduce((b,y)=>({...b,[y.name]:y.value}),{});d={...d,...v}}}else if(f==="i18n"){d={type:"i18n",children:""};const{children:g,attributes:x}=a;if(g){const v=n(g[0],d);d.children=[v]}if(x){const v=x.reduce((b,y)=>({...b,[y.name]:y.value}),{});d={...d,...v}}}else if(f==="u"){d={underlined:!0};const{children:g}=a;if(g){const x=n(g[0],d);d={...d,...x}}}else if(f==="link"){d={type:"link",children:[]};const{children:g,attributes:x}=a;if(g){const v=n(g[0],d);d.children=[v]}if(x){const v=x.reduce((b,y)=>({...b,[y.name]:y.value}),{});d={...d,...v}}}else f==="e"&&(d={text:""})}else if(u==="text")d={text:c};else if(u==="strong"){d={bold:!0};const{children:f}=a;if(f){const g=n(f[0],d);d={...d,...g}}}else if(u==="emphasis"){d={italic:!0};const{children:f}=a;if(f){const g=n(f[0],d);d={...d,...g}}}else if(u==="delete"){d={strikethrough:!0};const{children:f}=a;if(f){const g=n(f[0],d);d={...d,...g}}}else if(u==="link"){const{children:f}=a;d={text:((h=f[0])==null?void 0:h.value)||""}}}else return;return d};return n(r,[])},dO=e=>{const[,t,r,n,...i]=e.split(".");return{webformName:t,componentId:r,propName:n,restOfPropPath:i.join(".")}};function _n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Zf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function T0(...e){return t=>{let r=!1;const n=e.map(i=>{const a=Zf(i,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():Zf(e[i],null)}}}}function ai(...e){return z.useCallback(T0(...e),e)}function hO(e,t){const r=z.createContext(t),n=a=>{const{children:o,...s}=a,u=z.useMemo(()=>s,Object.values(s));return _.jsx(r.Provider,{value:u,children:o})};n.displayName=e+"Provider";function i(a){const o=z.useContext(r);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,i]}function pO(e,t=[]){let r=[];function n(a,o){const s=z.createContext(o),u=r.length;r=[...r,o];const c=h=>{var y;const{scope:f,children:g,...x}=h,v=((y=f==null?void 0:f[e])==null?void 0:y[u])||s,b=z.useMemo(()=>x,Object.values(x));return _.jsx(v.Provider,{value:b,children:g})};c.displayName=a+"Provider";function d(h,f){var v;const g=((v=f==null?void 0:f[e])==null?void 0:v[u])||s,x=z.useContext(g);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[c,d]}const i=()=>{const a=r.map(o=>z.createContext(o));return function(s){const u=(s==null?void 0:s[e])||a;return z.useMemo(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return i.scopeName=e,[n,fO(i,...t)]}function fO(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=n.reduce((s,{useScope:u,scopeName:c})=>{const h=u(a)[`__scope${c}`];return{...s,...h}},{});return z.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}var Ia=globalThis!=null&&globalThis.document?z.useLayoutEffect:()=>{},gO=z[" useId ".trim().toString()]||(()=>{}),mO=0;function Fu(e){const[t,r]=z.useState(gO());return Ia(()=>{r(n=>n??String(mO++))},[e]),e||(t?`radix-${t}`:"")}var vO=z[" useInsertionEffect ".trim().toString()]||Ia;function xO({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,a,o]=bO({defaultProp:t,onChange:r}),s=e!==void 0,u=s?e:i;{const d=z.useRef(e!==void 0);z.useEffect(()=>{const h=d.current;h!==s&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,n])}const c=z.useCallback(d=>{var h;if(s){const f=yO(d)?d(e):d;f!==e&&((h=o.current)==null||h.call(o,f))}else a(d)},[s,e,a,o]);return[u,c]}function bO({defaultProp:e,onChange:t}){const[r,n]=z.useState(e),i=z.useRef(r),a=z.useRef(t);return vO(()=>{a.current=t},[t]),z.useEffect(()=>{var o;i.current!==r&&((o=a.current)==null||o.call(a,r),i.current=r)},[r,i]),[r,n,a]}function yO(e){return typeof e=="function"}function P0(e){const t=wO(e),r=z.forwardRef((n,i)=>{const{children:a,...o}=n,s=z.Children.toArray(a),u=s.find(SO);if(u){const c=u.props.children,d=s.map(h=>h===u?z.Children.count(c)>1?z.Children.only(null):z.isValidElement(c)?c.props.children:null:h);return _.jsx(t,{...o,ref:i,children:z.isValidElement(c)?z.cloneElement(c,void 0,d):null})}return _.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}function wO(e){const t=z.forwardRef((r,n)=>{const{children:i,...a}=r;if(z.isValidElement(i)){const o=EO(i),s=CO(a,i.props);return i.type!==z.Fragment&&(s.ref=n?T0(n,o):o),z.cloneElement(i,s)}return z.Children.count(i)>1?z.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kO=Symbol("radix.slottable");function SO(e){return z.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kO}function CO(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const u=a(...s);return i(...s),u}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function EO(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var _O=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hn=_O.reduce((e,t)=>{const r=P0(`Primitive.${t}`),n=z.forwardRef((i,a)=>{const{asChild:o,...s}=i,u=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),_.jsx(u,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function IO(e,t){e&&m1.flushSync(()=>e.dispatchEvent(t))}function Aa(e){const t=z.useRef(e);return z.useEffect(()=>{t.current=e}),z.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function AO(e,t=globalThis==null?void 0:globalThis.document){const r=Aa(e);z.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var TO="DismissableLayer",Nc="dismissableLayer.update",PO="dismissableLayer.pointerDownOutside",NO="dismissableLayer.focusOutside",eg,N0=z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),O0=z.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...u}=e,c=z.useContext(N0),[d,h]=z.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=z.useState({}),x=ai(t,T=>h(T)),v=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(b),k=d?v.indexOf(d):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,I=k>=y,w=LO(T=>{const P=T.target,V=[...c.branches].some(O=>O.contains(P));!I||V||(i==null||i(T),o==null||o(T),T.defaultPrevented||s==null||s())},f),m=DO(T=>{const P=T.target;[...c.branches].some(O=>O.contains(P))||(a==null||a(T),o==null||o(T),T.defaultPrevented||s==null||s())},f);return AO(T=>{k===c.layers.size-1&&(n==null||n(T),!T.defaultPrevented&&s&&(T.preventDefault(),s()))},f),z.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(eg=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),tg(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=eg)}},[d,f,r,c]),z.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),tg())},[d,c]),z.useEffect(()=>{const T=()=>g({});return document.addEventListener(Nc,T),()=>document.removeEventListener(Nc,T)},[]),_.jsx(hn.div,{...u,ref:x,style:{pointerEvents:C?I?"auto":"none":void 0,...e.style},onFocusCapture:_n(e.onFocusCapture,m.onFocusCapture),onBlurCapture:_n(e.onBlurCapture,m.onBlurCapture),onPointerDownCapture:_n(e.onPointerDownCapture,w.onPointerDownCapture)})});O0.displayName=TO;var OO="DismissableLayerBranch",RO=z.forwardRef((e,t)=>{const r=z.useContext(N0),n=z.useRef(null),i=ai(t,n);return z.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),_.jsx(hn.div,{...e,ref:i})});RO.displayName=OO;function LO(e,t=globalThis==null?void 0:globalThis.document){const r=Aa(e),n=z.useRef(!1),i=z.useRef(()=>{});return z.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let u=function(){R0(PO,r,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function DO(e,t=globalThis==null?void 0:globalThis.document){const r=Aa(e),n=z.useRef(!1);return z.useEffect(()=>{const i=a=>{a.target&&!n.current&&R0(NO,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function tg(){const e=new CustomEvent(Nc);document.dispatchEvent(e)}function R0(e,t,r,{discrete:n}){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?IO(i,a):i.dispatchEvent(a)}var Bu="focusScope.autoFocusOnMount",zu="focusScope.autoFocusOnUnmount",rg={bubbles:!1,cancelable:!0},VO="FocusScope",L0=z.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,u]=z.useState(null),c=Aa(i),d=Aa(a),h=z.useRef(null),f=ai(t,v=>u(v)),g=z.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;z.useEffect(()=>{if(n){let v=function(C){if(g.paused||!s)return;const I=C.target;s.contains(I)?h.current=I:Sn(h.current,{select:!0})},b=function(C){if(g.paused||!s)return;const I=C.relatedTarget;I!==null&&(s.contains(I)||Sn(h.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const w of C)w.removedNodes.length>0&&Sn(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",b);const k=new MutationObserver(y);return s&&k.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",b),k.disconnect()}}},[n,s,g.paused]),z.useEffect(()=>{if(s){ig.add(g);const v=document.activeElement;if(!s.contains(v)){const y=new CustomEvent(Bu,rg);s.addEventListener(Bu,c),s.dispatchEvent(y),y.defaultPrevented||(MO(HO(D0(s)),{select:!0}),document.activeElement===v&&Sn(s))}return()=>{s.removeEventListener(Bu,c),setTimeout(()=>{const y=new CustomEvent(zu,rg);s.addEventListener(zu,d),s.dispatchEvent(y),y.defaultPrevented||Sn(v??document.body,{select:!0}),s.removeEventListener(zu,d),ig.remove(g)},0)}}},[s,c,d,g]);const x=z.useCallback(v=>{if(!r&&!n||g.paused)return;const b=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(b&&y){const k=v.currentTarget,[C,I]=jO(k);C&&I?!v.shiftKey&&y===I?(v.preventDefault(),r&&Sn(C,{select:!0})):v.shiftKey&&y===C&&(v.preventDefault(),r&&Sn(I,{select:!0})):y===k&&v.preventDefault()}},[r,n,g.paused]);return _.jsx(hn.div,{tabIndex:-1,...o,ref:f,onKeyDown:x})});L0.displayName=VO;function MO(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Sn(n,{select:t}),document.activeElement!==r)return}function jO(e){const t=D0(e),r=ng(t,e),n=ng(t.reverse(),e);return[r,n]}function D0(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ng(e,t){for(const r of e)if(!FO(r,{upTo:t}))return r}function FO(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function BO(e){return e instanceof HTMLInputElement&&"select"in e}function Sn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&BO(e)&&t&&e.select()}}var ig=zO();function zO(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=ag(e,t),e.unshift(t)},remove(t){var r;e=ag(e,t),(r=e[0])==null||r.resume()}}}function ag(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function HO(e){return e.filter(t=>t.tagName!=="A")}var WO="Portal",V0=z.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[i,a]=z.useState(!1);Ia(()=>a(!0),[]);const o=r||i&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return o?Fa.createPortal(_.jsx(hn.div,{...n,ref:t}),o):null});V0.displayName=WO;function UO(e,t){return z.useReducer((r,n)=>t[r][n]??r,e)}var wl=e=>{const{present:t,children:r}=e,n=$O(t),i=typeof r=="function"?r({present:n.isPresent}):z.Children.only(r),a=ai(n.ref,qO(i));return typeof r=="function"||n.isPresent?z.cloneElement(i,{ref:a}):null};wl.displayName="Presence";function $O(e){const[t,r]=z.useState(),n=z.useRef(null),i=z.useRef(e),a=z.useRef("none"),o=e?"mounted":"unmounted",[s,u]=UO(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return z.useEffect(()=>{const c=Ho(n.current);a.current=s==="mounted"?c:"none"},[s]),Ia(()=>{const c=n.current,d=i.current;if(d!==e){const f=a.current,g=Ho(c);e?u("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(d&&f!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),Ia(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,h=g=>{const v=Ho(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&v&&(u("ANIMATION_END"),!i.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=g=>{g.target===t&&(a.current=Ho(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:z.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function Ho(e){return(e==null?void 0:e.animationName)||"none"}function qO(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Hu=0;function KO(){z.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??og()),document.body.insertAdjacentElement("beforeend",e[1]??og()),Hu++,()=>{Hu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Hu--}},[])}function og(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ps="right-scroll-bar-position",fs="width-before-scroll-bar",GO="with-scroll-bars-hidden",JO="--removed-body-scroll-bar-size";function Wu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function XO(e,t){var r=L.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var YO=typeof window<"u"?z.useLayoutEffect:z.useEffect,sg=new WeakMap;function QO(e,t){var r=XO(null,function(n){return e.forEach(function(i){return Wu(i,n)})});return YO(function(){var n=sg.get(r);if(n){var i=new Set(n),a=new Set(e),o=r.current;i.forEach(function(s){a.has(s)||Wu(s,null)}),a.forEach(function(s){i.has(s)||Wu(s,o)})}sg.set(r,e)},[e]),r}function ZO(e){return e}function eR(e,t){t===void 0&&(t=ZO);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var o=t(a,n);return r.push(o),function(){r=r.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(n=!0;r.length;){var o=r;r=[],o.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var o=[];if(r.length){var s=r;r=[],s.forEach(a),o=r}var u=function(){var d=o;o=[],d.forEach(a)},c=function(){return Promise.resolve().then(u)};c(),r={push:function(d){o.push(d),c()},filter:function(d){return o=o.filter(d),r}}}};return i}function tR(e){e===void 0&&(e={});var t=eR(null);return t.options=me({async:!0,ssr:!1},e),t}var M0=function(e){var t=e.sideCar,r=er(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return z.createElement(n,me({},r))};M0.isSideCarExport=!0;function rR(e,t){return e.useMedium(t),M0}var j0=tR(),Uu=function(){},kl=z.forwardRef(function(e,t){var r=z.useRef(null),n=z.useState({onScrollCapture:Uu,onWheelCapture:Uu,onTouchMoveCapture:Uu}),i=n[0],a=n[1],o=e.forwardProps,s=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,h=e.shards,f=e.sideCar,g=e.noRelative,x=e.noIsolation,v=e.inert,b=e.allowPinchZoom,y=e.as,k=y===void 0?"div":y,C=e.gapMode,I=er(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,m=QO([r,t]),T=me(me({},I),i);return z.createElement(z.Fragment,null,d&&z.createElement(w,{sideCar:j0,removeScrollBar:c,shards:h,noRelative:g,noIsolation:x,inert:v,setCallbacks:a,allowPinchZoom:!!b,lockRef:r,gapMode:C}),o?z.cloneElement(z.Children.only(s),me(me({},T),{ref:m})):z.createElement(k,me({},T,{className:u,ref:m}),s))});kl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};kl.classNames={fullWidth:fs,zeroRight:ps};var nR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function iR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=nR();return t&&e.setAttribute("nonce",t),e}function aR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function oR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var sR=function(){var e=0,t=null;return{add:function(r){e==0&&(t=iR())&&(aR(t,r),oR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lR=function(){var e=sR();return function(t,r){z.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},F0=function(){var e=lR(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},uR={left:0,top:0,right:0,gap:0},$u=function(e){return parseInt(e||"",10)||0},cR=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[$u(r),$u(n),$u(i)]},dR=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return uR;var t=cR(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},hR=F0(),Ai="data-scroll-locked",pR=function(e,t,r,n){var i=e.left,a=e.top,o=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
123
|
-
.`.concat(
|
|
124
|
-
overflow: hidden `).concat(
|
|
125
|
-
padding-right: `).concat(
|
|
75
|
+
`),m1=e=>{const t=/<\/?[a-zA-Z][^>]*>/g;let n="",i=0;for(const s of e.matchAll(t)){const o=s.index,l=o+s[0].length,u=e.slice(i,o).replace(/</g,"<").replace(/>/g,">");n+=u+s[0],i=l}const r=e.slice(i).replace(/</g,"<").replace(/>/g,">");return n+=r,n=n.replace(/\[object Object\]/g,""),n},Gh=e=>{let t="",n=!1;for(let i=0;i<e.length;i++){const r=e[i];if(r==='"')if(n)if(i+1<e.length&&e[i+1]==='"')t+='""',i++;else{let s=i+1;for(;s<e.length&&(e[s]===" "||e[s]===" ");)s++;s>=e.length||e[s]===","||e[s]===`
|
|
76
|
+
`||e[s]==="\r"?(n=!1,t+='"'):t+='""'}else n=!0,t+='"';else t+=r}return t},va=e=>{const t=m1(e),n=Lb().use(h1,{singleTilde:!0}).use(b0).parse(t),i=(s,o,l)=>{var h;const{type:u,value:f}=s;let p={};if(u==="root"){const{children:d}=s;return d.map(m=>i(m,o)).flat()}if(o){if(u==="list"){const{children:d}=s;return d.map(m=>i(m,p,l)).flat()}else if(u==="listItem"){const{children:d}=s;return d.map(m=>{const b=l!=null&&l.prefix?l.prefix:m.type==="list"?" - ":"* ",v=i(m,p,{prefix:b});return v.type==="paragraph"&&v.children&&(v.children.length>1?v.children=[{text:b},...v.children]:v.children=v.children.map(S=>(S.text&&(S.text=`${b}${S.text}`),S))),v}).flat()}else if(u==="paragraph"){p={type:"paragraph",children:[]};const{children:d}=s,m=d.map(b=>i(b,p));p.children=m}else if(u==="mdxJsxTextElement"){const{name:d}=s;if(d==="ds"){p={type:"datasource",children:[]};const{children:m,attributes:b}=s;if(m){const v=i(m[0],p);p.children=[v]}if(b){const v=b.reduce((S,E)=>({...S,[E.name]:E.value}),{});p={...p,...v}}}else if(d==="i18n"){p={type:"i18n",children:""};const{children:m,attributes:b}=s;if(m){const v=i(m[0],p);p.children=[v]}if(b){const v=b.reduce((S,E)=>({...S,[E.name]:E.value}),{});p={...p,...v}}}else if(d==="u"){p={underlined:!0};const{children:m}=s;if(m){const b=i(m[0],p);p={...p,...b}}}else if(d==="link"){p={type:"link",children:[]};const{children:m,attributes:b}=s;if(m){const v=i(m[0],p);p.children=[v]}if(b){const v=b.reduce((S,E)=>({...S,[E.name]:E.value}),{});p={...p,...v}}}else d==="e"&&(p={text:""})}else if(u==="text")p={text:f};else if(u==="strong"){p={bold:!0};const{children:d}=s;if(d){const m=i(d[0],p);p={...p,...m}}}else if(u==="emphasis"){p={italic:!0};const{children:d}=s;if(d){const m=i(d[0],p);p={...p,...m}}}else if(u==="delete"){p={strikethrough:!0};const{children:d}=s;if(d){const m=i(d[0],p);p={...p,...m}}}else if(u==="link"){const{children:d}=s;p={text:((h=d[0])==null?void 0:h.value)||""}}}else return;return p};return i(n,[])},x1=e=>{const[,t,n,i,...r]=e.split(".");return{webformName:t,componentId:n,propName:i,restOfPropPath:r.join(".")}};function fi(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Hl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Jh(...e){return t=>{let n=!1;const i=e.map(r=>{const s=Hl(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<i.length;r++){const s=i[r];typeof s=="function"?s():Hl(e[r],null)}}}}function Ii(...e){return U.useCallback(Jh(...e),e)}function v1(e,t){const n=U.createContext(t),i=s=>{const{children:o,...l}=s,u=U.useMemo(()=>l,Object.values(l));return C.jsx(n.Provider,{value:u,children:o})};i.displayName=e+"Provider";function r(s){const o=U.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[i,r]}function b1(e,t=[]){let n=[];function i(s,o){const l=U.createContext(o),u=n.length;n=[...n,o];const f=h=>{var E;const{scope:d,children:m,...b}=h,v=((E=d==null?void 0:d[e])==null?void 0:E[u])||l,S=U.useMemo(()=>b,Object.values(b));return C.jsx(v.Provider,{value:S,children:m})};f.displayName=s+"Provider";function p(h,d){var v;const m=((v=d==null?void 0:d[e])==null?void 0:v[u])||l,b=U.useContext(m);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[f,p]}const r=()=>{const s=n.map(o=>U.createContext(o));return function(l){const u=(l==null?void 0:l[e])||s;return U.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return r.scopeName=e,[i,y1(r,...t)]}function y1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const o=i.reduce((l,{useScope:u,scopeName:f})=>{const h=u(s)[`__scope${f}`];return{...l,...h}},{});return U.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var vi=globalThis!=null&&globalThis.document?U.useLayoutEffect:()=>{},w1=U[" useId ".trim().toString()]||(()=>{}),E1=0;function ba(e){const[t,n]=U.useState(w1());return vi(()=>{n(i=>i??String(E1++))},[e]),e||(t?`radix-${t}`:"")}var S1=U[" useInsertionEffect ".trim().toString()]||vi;function k1({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[r,s,o]=C1({defaultProp:t,onChange:n}),l=e!==void 0,u=l?e:r;{const p=U.useRef(e!==void 0);U.useEffect(()=>{const h=p.current;h!==l&&console.warn(`${i} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=l},[l,i])}const f=U.useCallback(p=>{var h;if(l){const d=_1(p)?p(e):p;d!==e&&((h=o.current)==null||h.call(o,d))}else s(p)},[l,e,s,o]);return[u,f]}function C1({defaultProp:e,onChange:t}){const[n,i]=U.useState(e),r=U.useRef(n),s=U.useRef(t);return S1(()=>{s.current=t},[t]),U.useEffect(()=>{var o;r.current!==n&&((o=s.current)==null||o.call(s,n),r.current=n)},[n,r]),[n,i,s]}function _1(e){return typeof e=="function"}function ya(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function $l(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Yh(...e){return t=>{let n=!1;const i=e.map(r=>{const s=$l(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<i.length;r++){const s=i[r];typeof s=="function"?s():$l(e[r],null)}}}}function Qh(...e){return U.useCallback(Yh(...e),e)}function I1(e){const t=A1(e),n=U.forwardRef((i,r)=>{const{children:s,...o}=i,l=U.Children.toArray(s),u=l.find(N1);if(u){const f=u.props.children,p=l.map(h=>h===u?U.Children.count(f)>1?U.Children.only(null):U.isValidElement(f)?f.props.children:null:h);return C.jsx(t,{...o,ref:r,children:U.isValidElement(f)?U.cloneElement(f,void 0,p):null})}return C.jsx(t,{...o,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function A1(e){const t=U.forwardRef((n,i)=>{const{children:r,...s}=n;if(U.isValidElement(r)){const o=O1(r),l=P1(s,r.props);return r.type!==U.Fragment&&(l.ref=i?Yh(i,o):o),U.cloneElement(r,l)}return U.Children.count(r)>1?U.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var T1=Symbol("radix.slottable");function N1(e){return U.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===T1}function P1(e,t){const n={...t};for(const i in t){const r=e[i],s=t[i];/^on[A-Z]/.test(i)?r&&s?n[i]=(...l)=>{const u=s(...l);return r(...l),u}:r&&(n[i]=r):i==="style"?n[i]={...r,...s}:i==="className"&&(n[i]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function O1(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var R1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zh=R1.reduce((e,t)=>{const n=I1(`Primitive.${t}`),i=U.forwardRef((r,s)=>{const{asChild:o,...l}=r,u=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(u,{...l,ref:s})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function L1(e,t){e&&Ku.flushSync(()=>e.dispatchEvent(t))}function ks(e){const t=U.useRef(e);return U.useEffect(()=>{t.current=e}),U.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function M1(e,t=globalThis==null?void 0:globalThis.document){const n=ks(e);U.useEffect(()=>{const i=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var F1="DismissableLayer",es="dismissableLayer.update",D1="dismissableLayer.pointerDownOutside",j1="dismissableLayer.focusOutside",ql,Xh=U.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ef=U.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:o,onDismiss:l,...u}=e,f=U.useContext(Xh),[p,h]=U.useState(null),d=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=U.useState({}),b=Qh(t,A=>h(A)),v=Array.from(f.layers),[S]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),E=v.indexOf(S),k=p?v.indexOf(p):-1,I=f.layersWithOutsidePointerEventsDisabled.size>0,N=k>=E,y=z1(A=>{const M=A.target,F=[...f.branches].some(R=>R.contains(M));!N||F||(r==null||r(A),o==null||o(A),A.defaultPrevented||l==null||l())},d),g=K1(A=>{const M=A.target;[...f.branches].some(R=>R.contains(M))||(s==null||s(A),o==null||o(A),A.defaultPrevented||l==null||l())},d);return M1(A=>{k===f.layers.size-1&&(i==null||i(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},d),U.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ql=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),Wl(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=ql)}},[p,d,n,f]),U.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),Wl())},[p,f]),U.useEffect(()=>{const A=()=>m({});return document.addEventListener(es,A),()=>document.removeEventListener(es,A)},[]),C.jsx(Zh.div,{...u,ref:b,style:{pointerEvents:I?N?"auto":"none":void 0,...e.style},onFocusCapture:ya(e.onFocusCapture,g.onFocusCapture),onBlurCapture:ya(e.onBlurCapture,g.onBlurCapture),onPointerDownCapture:ya(e.onPointerDownCapture,y.onPointerDownCapture)})});ef.displayName=F1;var V1="DismissableLayerBranch",B1=U.forwardRef((e,t)=>{const n=U.useContext(Xh),i=U.useRef(null),r=Qh(t,i);return U.useEffect(()=>{const s=i.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),C.jsx(Zh.div,{...e,ref:r})});B1.displayName=V1;function z1(e,t=globalThis==null?void 0:globalThis.document){const n=ks(e),i=U.useRef(!1),r=U.useRef(()=>{});return U.useEffect(()=>{const s=l=>{if(l.target&&!i.current){let u=function(){tf(D1,n,f,{discrete:!0})};const f={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);i.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function K1(e,t=globalThis==null?void 0:globalThis.document){const n=ks(e),i=U.useRef(!1);return U.useEffect(()=>{const r=s=>{s.target&&!i.current&&tf(j1,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Wl(){const e=new CustomEvent(es);document.dispatchEvent(e)}function tf(e,t,n,{discrete:i}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),i?L1(r,s):r.dispatchEvent(s)}function nf(e){const t=U1(e),n=U.forwardRef((i,r)=>{const{children:s,...o}=i,l=U.Children.toArray(s),u=l.find($1);if(u){const f=u.props.children,p=l.map(h=>h===u?U.Children.count(f)>1?U.Children.only(null):U.isValidElement(f)?f.props.children:null:h);return C.jsx(t,{...o,ref:r,children:U.isValidElement(f)?U.cloneElement(f,void 0,p):null})}return C.jsx(t,{...o,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function U1(e){const t=U.forwardRef((n,i)=>{const{children:r,...s}=n;if(U.isValidElement(r)){const o=W1(r),l=q1(s,r.props);return r.type!==U.Fragment&&(l.ref=i?Jh(i,o):o),U.cloneElement(r,l)}return U.Children.count(r)>1?U.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var H1=Symbol("radix.slottable");function $1(e){return U.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===H1}function q1(e,t){const n={...t};for(const i in t){const r=e[i],s=t[i];/^on[A-Z]/.test(i)?r&&s?n[i]=(...l)=>{const u=s(...l);return r(...l),u}:r&&(n[i]=r):i==="style"?n[i]={...r,...s}:i==="className"&&(n[i]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function W1(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var G1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],On=G1.reduce((e,t)=>{const n=nf(`Primitive.${t}`),i=U.forwardRef((r,s)=>{const{asChild:o,...l}=r,u=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(u,{...l,ref:s})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function Gl(e){const t=U.useRef(e);return U.useEffect(()=>{t.current=e}),U.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}var wa="focusScope.autoFocusOnMount",Ea="focusScope.autoFocusOnUnmount",Jl={bubbles:!1,cancelable:!0},J1="FocusScope",rf=U.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...o}=e,[l,u]=U.useState(null),f=Gl(r),p=Gl(s),h=U.useRef(null),d=Ii(t,v=>u(v)),m=U.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;U.useEffect(()=>{if(i){let v=function(I){if(m.paused||!l)return;const N=I.target;l.contains(N)?h.current=N:fn(h.current,{select:!0})},S=function(I){if(m.paused||!l)return;const N=I.relatedTarget;N!==null&&(l.contains(N)||fn(h.current,{select:!0}))},E=function(I){if(document.activeElement===document.body)for(const y of I)y.removedNodes.length>0&&fn(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",S);const k=new MutationObserver(E);return l&&k.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",S),k.disconnect()}}},[i,l,m.paused]),U.useEffect(()=>{if(l){Ql.add(m);const v=document.activeElement;if(!l.contains(v)){const E=new CustomEvent(wa,Jl);l.addEventListener(wa,f),l.dispatchEvent(E),E.defaultPrevented||(Y1(tw(af(l)),{select:!0}),document.activeElement===v&&fn(l))}return()=>{l.removeEventListener(wa,f),setTimeout(()=>{const E=new CustomEvent(Ea,Jl);l.addEventListener(Ea,p),l.dispatchEvent(E),E.defaultPrevented||fn(v??document.body,{select:!0}),l.removeEventListener(Ea,p),Ql.remove(m)},0)}}},[l,f,p,m]);const b=U.useCallback(v=>{if(!n&&!i||m.paused)return;const S=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,E=document.activeElement;if(S&&E){const k=v.currentTarget,[I,N]=Q1(k);I&&N?!v.shiftKey&&E===N?(v.preventDefault(),n&&fn(I,{select:!0})):v.shiftKey&&E===I&&(v.preventDefault(),n&&fn(N,{select:!0})):E===k&&v.preventDefault()}},[n,i,m.paused]);return C.jsx(On.div,{tabIndex:-1,...o,ref:d,onKeyDown:b})});rf.displayName=J1;function Y1(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(fn(i,{select:t}),document.activeElement!==n)return}function Q1(e){const t=af(e),n=Yl(t,e),i=Yl(t.reverse(),e);return[n,i]}function af(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const r=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||r?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Yl(e,t){for(const n of e)if(!Z1(n,{upTo:t}))return n}function Z1(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function X1(e){return e instanceof HTMLInputElement&&"select"in e}function fn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&X1(e)&&t&&e.select()}}var Ql=ew();function ew(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zl(e,t),e.unshift(t)},remove(t){var n;e=Zl(e,t),(n=e[0])==null||n.resume()}}}function Zl(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function tw(e){return e.filter(t=>t.tagName!=="A")}var nw="Portal",sf=U.forwardRef((e,t)=>{var l;const{container:n,...i}=e,[r,s]=U.useState(!1);vi(()=>s(!0),[]);const o=n||r&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?Cr.createPortal(C.jsx(On.div,{...i,ref:t}),o):null});sf.displayName=nw;function iw(e,t){return U.useReducer((n,i)=>t[n][i]??n,e)}var Vr=e=>{const{present:t,children:n}=e,i=rw(t),r=typeof n=="function"?n({present:i.isPresent}):U.Children.only(n),s=Ii(i.ref,aw(r));return typeof n=="function"||i.isPresent?U.cloneElement(r,{ref:s}):null};Vr.displayName="Presence";function rw(e){const[t,n]=U.useState(),i=U.useRef(null),r=U.useRef(e),s=U.useRef("none"),o=e?"mounted":"unmounted",[l,u]=iw(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return U.useEffect(()=>{const f=Ki(i.current);s.current=l==="mounted"?f:"none"},[l]),vi(()=>{const f=i.current,p=r.current;if(p!==e){const d=s.current,m=Ki(f);e?u("MOUNT"):m==="none"||(f==null?void 0:f.display)==="none"?u("UNMOUNT"):u(p&&d!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),vi(()=>{if(t){let f;const p=t.ownerDocument.defaultView??window,h=m=>{const v=Ki(i.current).includes(CSS.escape(m.animationName));if(m.target===t&&v&&(u("ANIMATION_END"),!r.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",f=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},d=m=>{m.target===t&&(s.current=Ki(i.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{p.clearTimeout(f),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:U.useCallback(f=>{i.current=f?getComputedStyle(f):null,n(f)},[])}}function Ki(e){return(e==null?void 0:e.animationName)||"none"}function aw(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Sa=0;function sw(){U.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Xl()),document.body.insertAdjacentElement("beforeend",e[1]??Xl()),Sa++,()=>{Sa===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sa--}},[])}function Xl(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ir="right-scroll-bar-position",rr="width-before-scroll-bar",ow="with-scroll-bars-hidden",lw="--removed-body-scroll-bar-size";function ka(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function uw(e,t){var n=V.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var r=n.value;r!==i&&(n.value=i,n.callback(i,r))}}}})[0];return n.callback=t,n.facade}var cw=typeof window<"u"?U.useLayoutEffect:U.useEffect,eu=new WeakMap;function hw(e,t){var n=uw(null,function(i){return e.forEach(function(r){return ka(r,i)})});return cw(function(){var i=eu.get(n);if(i){var r=new Set(i),s=new Set(e),o=n.current;r.forEach(function(l){s.has(l)||ka(l,null)}),s.forEach(function(l){r.has(l)||ka(l,o)})}eu.set(n,e)},[e]),n}function fw(e){return e}function pw(e,t){t===void 0&&(t=fw);var n=[],i=!1,r={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var o=t(s,i);return n.push(o),function(){n=n.filter(function(l){return l!==o})}},assignSyncMedium:function(s){for(i=!0;n.length;){var o=n;n=[],o.forEach(s)}n={push:function(l){return s(l)},filter:function(){return n}}},assignMedium:function(s){i=!0;var o=[];if(n.length){var l=n;n=[],l.forEach(s),o=n}var u=function(){var p=o;o=[],p.forEach(s)},f=function(){return Promise.resolve().then(u)};f(),n={push:function(p){o.push(p),f()},filter:function(p){return o=o.filter(p),n}}}};return r}function dw(e){e===void 0&&(e={});var t=pw(null);return t.options=Ot({async:!0,ssr:!1},e),t}var of=function(e){var t=e.sideCar,n=Wu(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return U.createElement(i,Ot({},n))};of.isSideCarExport=!0;function gw(e,t){return e.useMedium(t),of}var lf=dw(),Ca=function(){},Br=U.forwardRef(function(e,t){var n=U.useRef(null),i=U.useState({onScrollCapture:Ca,onWheelCapture:Ca,onTouchMoveCapture:Ca}),r=i[0],s=i[1],o=e.forwardProps,l=e.children,u=e.className,f=e.removeScrollBar,p=e.enabled,h=e.shards,d=e.sideCar,m=e.noRelative,b=e.noIsolation,v=e.inert,S=e.allowPinchZoom,E=e.as,k=E===void 0?"div":E,I=e.gapMode,N=Wu(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=d,g=hw([n,t]),A=Ot(Ot({},N),r);return U.createElement(U.Fragment,null,p&&U.createElement(y,{sideCar:lf,removeScrollBar:f,shards:h,noRelative:m,noIsolation:b,inert:v,setCallbacks:s,allowPinchZoom:!!S,lockRef:n,gapMode:I}),o?U.cloneElement(U.Children.only(l),Ot(Ot({},A),{ref:g})):U.createElement(k,Ot({},A,{className:u,ref:g}),l))});Br.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Br.classNames={fullWidth:rr,zeroRight:ir};var mw=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xw(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=mw();return t&&e.setAttribute("nonce",t),e}function vw(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function bw(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var yw=function(){var e=0,t=null;return{add:function(n){e==0&&(t=xw())&&(vw(t,n),bw(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ww=function(){var e=yw();return function(t,n){U.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},uf=function(){var e=ww(),t=function(n){var i=n.styles,r=n.dynamic;return e(i,r),null};return t},Ew={left:0,top:0,right:0,gap:0},_a=function(e){return parseInt(e||"",10)||0},Sw=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[_a(n),_a(i),_a(r)]},kw=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ew;var t=Sw(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},Cw=uf(),$n="data-scroll-locked",_w=function(e,t,n,i){var r=e.left,s=e.top,o=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
77
|
+
.`.concat(ow,` {
|
|
78
|
+
overflow: hidden `).concat(i,`;
|
|
79
|
+
padding-right: `).concat(l,"px ").concat(i,`;
|
|
126
80
|
}
|
|
127
|
-
body[`).concat(
|
|
128
|
-
overflow: hidden `).concat(
|
|
81
|
+
body[`).concat($n,`] {
|
|
82
|
+
overflow: hidden `).concat(i,`;
|
|
129
83
|
overscroll-behavior: contain;
|
|
130
|
-
`).concat([t&&"position: relative ".concat(
|
|
131
|
-
padding-left: `.concat(
|
|
132
|
-
padding-top: `).concat(
|
|
84
|
+
`).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
|
|
85
|
+
padding-left: `.concat(r,`px;
|
|
86
|
+
padding-top: `).concat(s,`px;
|
|
133
87
|
padding-right: `).concat(o,`px;
|
|
134
88
|
margin-left:0;
|
|
135
89
|
margin-top:0;
|
|
136
|
-
margin-right: `).concat(
|
|
137
|
-
`),
|
|
90
|
+
margin-right: `).concat(l,"px ").concat(i,`;
|
|
91
|
+
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
138
92
|
}
|
|
139
93
|
|
|
140
|
-
.`).concat(
|
|
141
|
-
right: `).concat(
|
|
94
|
+
.`).concat(ir,` {
|
|
95
|
+
right: `).concat(l,"px ").concat(i,`;
|
|
142
96
|
}
|
|
143
97
|
|
|
144
|
-
.`).concat(
|
|
145
|
-
margin-right: `).concat(
|
|
98
|
+
.`).concat(rr,` {
|
|
99
|
+
margin-right: `).concat(l,"px ").concat(i,`;
|
|
146
100
|
}
|
|
147
101
|
|
|
148
|
-
.`).concat(
|
|
149
|
-
right: 0 `).concat(
|
|
102
|
+
.`).concat(ir," .").concat(ir,` {
|
|
103
|
+
right: 0 `).concat(i,`;
|
|
150
104
|
}
|
|
151
105
|
|
|
152
|
-
.`).concat(
|
|
153
|
-
margin-right: 0 `).concat(
|
|
106
|
+
.`).concat(rr," .").concat(rr,` {
|
|
107
|
+
margin-right: 0 `).concat(i,`;
|
|
154
108
|
}
|
|
155
109
|
|
|
156
|
-
body[`).concat(
|
|
157
|
-
`).concat(
|
|
110
|
+
body[`).concat($n,`] {
|
|
111
|
+
`).concat(lw,": ").concat(l,`px;
|
|
158
112
|
}
|
|
159
|
-
`)},
|
|
113
|
+
`)},tu=function(){var e=parseInt(document.body.getAttribute($n)||"0",10);return isFinite(e)?e:0},Iw=function(){U.useEffect(function(){return document.body.setAttribute($n,(tu()+1).toString()),function(){var e=tu()-1;e<=0?document.body.removeAttribute($n):document.body.setAttribute($n,e.toString())}},[])},Aw=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,r=i===void 0?"margin":i;Iw();var s=U.useMemo(function(){return kw(r)},[r]);return U.createElement(Cw,{styles:_w(s,!t,r,n?"":"!important")})},ts=!1;if(typeof window<"u")try{var Ui=Object.defineProperty({},"passive",{get:function(){return ts=!0,!0}});window.addEventListener("test",Ui,Ui),window.removeEventListener("test",Ui,Ui)}catch{ts=!1}var Vn=ts?{passive:!1}:!1,Tw=function(e){return e.tagName==="TEXTAREA"},cf=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Tw(e)&&n[t]==="visible")},Nw=function(e){return cf(e,"overflowY")},Pw=function(e){return cf(e,"overflowX")},nu=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var r=hf(e,i);if(r){var s=ff(e,i),o=s[1],l=s[2];if(o>l)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},Ow=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},Rw=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},hf=function(e,t){return e==="v"?Nw(t):Pw(t)},ff=function(e,t){return e==="v"?Ow(t):Rw(t)},Lw=function(e,t){return e==="h"&&t==="rtl"?-1:1},Mw=function(e,t,n,i,r){var s=Lw(e,window.getComputedStyle(t).direction),o=s*i,l=n.target,u=t.contains(l),f=!1,p=o>0,h=0,d=0;do{if(!l)break;var m=ff(e,l),b=m[0],v=m[1],S=m[2],E=v-S-s*b;(b||E)&&hf(e,l)&&(h+=E,d+=b);var k=l.parentNode;l=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(p&&Math.abs(h)<1||!p&&Math.abs(d)<1)&&(f=!0),f},Hi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},iu=function(e){return[e.deltaX,e.deltaY]},ru=function(e){return e&&"current"in e?e.current:e},Fw=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Dw=function(e){return`
|
|
160
114
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
161
115
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
162
|
-
`)},
|
|
116
|
+
`)},jw=0,Bn=[];function Vw(e){var t=U.useRef([]),n=U.useRef([0,0]),i=U.useRef(),r=U.useState(jw++)[0],s=U.useState(uf)[0],o=U.useRef(e);U.useEffect(function(){o.current=e},[e]),U.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var v=lr([e.lockRef.current],(e.shards||[]).map(ru),!0).filter(Boolean);return v.forEach(function(S){return S.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),v.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=U.useCallback(function(v,S){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!o.current.allowPinchZoom;var E=Hi(v),k=n.current,I="deltaX"in v?v.deltaX:k[0]-E[0],N="deltaY"in v?v.deltaY:k[1]-E[1],y,g=v.target,A=Math.abs(I)>Math.abs(N)?"h":"v";if("touches"in v&&A==="h"&&g.type==="range")return!1;var M=window.getSelection(),F=M&&M.anchorNode,R=F?F===g||F.contains(g):!1;if(R)return!1;var j=nu(A,g);if(!j)return!0;if(j?y=A:(y=A==="v"?"h":"v",j=nu(A,g)),!j)return!1;if(!i.current&&"changedTouches"in v&&(I||N)&&(i.current=y),!y)return!0;var B=i.current||y;return Mw(B,S,v,B==="h"?I:N)},[]),u=U.useCallback(function(v){var S=v;if(!(!Bn.length||Bn[Bn.length-1]!==s)){var E="deltaY"in S?iu(S):Hi(S),k=t.current.filter(function(y){return y.name===S.type&&(y.target===S.target||S.target===y.shadowParent)&&Fw(y.delta,E)})[0];if(k&&k.should){S.cancelable&&S.preventDefault();return}if(!k){var I=(o.current.shards||[]).map(ru).filter(Boolean).filter(function(y){return y.contains(S.target)}),N=I.length>0?l(S,I[0]):!o.current.noIsolation;N&&S.cancelable&&S.preventDefault()}}},[]),f=U.useCallback(function(v,S,E,k){var I={name:v,delta:S,target:E,should:k,shadowParent:Bw(E)};t.current.push(I),setTimeout(function(){t.current=t.current.filter(function(N){return N!==I})},1)},[]),p=U.useCallback(function(v){n.current=Hi(v),i.current=void 0},[]),h=U.useCallback(function(v){f(v.type,iu(v),v.target,l(v,e.lockRef.current))},[]),d=U.useCallback(function(v){f(v.type,Hi(v),v.target,l(v,e.lockRef.current))},[]);U.useEffect(function(){return Bn.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:d}),document.addEventListener("wheel",u,Vn),document.addEventListener("touchmove",u,Vn),document.addEventListener("touchstart",p,Vn),function(){Bn=Bn.filter(function(v){return v!==s}),document.removeEventListener("wheel",u,Vn),document.removeEventListener("touchmove",u,Vn),document.removeEventListener("touchstart",p,Vn)}},[]);var m=e.removeScrollBar,b=e.inert;return U.createElement(U.Fragment,null,b?U.createElement(s,{styles:Dw(r)}):null,m?U.createElement(Aw,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Bw(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zw=gw(lf,Vw);var pf=U.forwardRef(function(e,t){return U.createElement(Br,Ot({},e,{ref:t,sideCar:zw}))});pf.classNames=Br.classNames;var Kw=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},zn=new WeakMap,$i=new WeakMap,qi={},Ia=0,df=function(e){return e&&(e.host||df(e.parentNode))},Uw=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=df(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Hw=function(e,t,n,i){var r=Uw(t,Array.isArray(e)?e:[e]);qi[n]||(qi[n]=new WeakMap);var s=qi[n],o=[],l=new Set,u=new Set(r),f=function(h){!h||l.has(h)||(l.add(h),f(h.parentNode))};r.forEach(f);var p=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(d){if(l.has(d))p(d);else try{var m=d.getAttribute(i),b=m!==null&&m!=="false",v=(zn.get(d)||0)+1,S=(s.get(d)||0)+1;zn.set(d,v),s.set(d,S),o.push(d),v===1&&b&&$i.set(d,!0),S===1&&d.setAttribute(n,"true"),b||d.setAttribute(i,"true")}catch(E){console.error("aria-hidden: cannot operate on ",d,E)}})};return p(t),l.clear(),Ia++,function(){o.forEach(function(h){var d=zn.get(h)-1,m=s.get(h)-1;zn.set(h,d),s.set(h,m),d||($i.has(h)||h.removeAttribute(i),$i.delete(h)),m||h.removeAttribute(n)}),Ia--,Ia||(zn=new WeakMap,zn=new WeakMap,$i=new WeakMap,qi={})}},$w=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),r=Kw(e);return r?(i.push.apply(i,Array.from(r.querySelectorAll("[aria-live], script"))),Hw(i,r,n,"aria-hidden")):function(){return null}},zr="Dialog",[gf]=b1(zr),[qw,Kt]=gf(zr),mf=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:r,onOpenChange:s,modal:o=!0}=e,l=U.useRef(null),u=U.useRef(null),[f,p]=k1({prop:i,defaultProp:r??!1,onChange:s,caller:zr});return C.jsx(qw,{scope:t,triggerRef:l,contentRef:u,contentId:ba(),titleId:ba(),descriptionId:ba(),open:f,onOpenChange:p,onOpenToggle:U.useCallback(()=>p(h=>!h),[p]),modal:o,children:n})};mf.displayName=zr;var xf="DialogTrigger",Ww=U.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Kt(xf,n),s=Ii(t,r.triggerRef);return C.jsx(On.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Is(r.open),...i,ref:s,onClick:fi(e.onClick,r.onOpenToggle)})});Ww.displayName=xf;var Cs="DialogPortal",[Gw,vf]=gf(Cs,{forceMount:void 0}),bf=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:r}=e,s=Kt(Cs,t);return C.jsx(Gw,{scope:t,forceMount:n,children:U.Children.map(i,o=>C.jsx(Vr,{present:n||s.open,children:C.jsx(sf,{asChild:!0,container:r,children:o})}))})};bf.displayName=Cs;var xr="DialogOverlay",yf=U.forwardRef((e,t)=>{const n=vf(xr,e.__scopeDialog),{forceMount:i=n.forceMount,...r}=e,s=Kt(xr,e.__scopeDialog);return s.modal?C.jsx(Vr,{present:i||s.open,children:C.jsx(Yw,{...r,ref:t})}):null});yf.displayName=xr;var Jw=nf("DialogOverlay.RemoveScroll"),Yw=U.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Kt(xr,n);return C.jsx(pf,{as:Jw,allowPinchZoom:!0,shards:[r.contentRef],children:C.jsx(On.div,{"data-state":Is(r.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),An="DialogContent",wf=U.forwardRef((e,t)=>{const n=vf(An,e.__scopeDialog),{forceMount:i=n.forceMount,...r}=e,s=Kt(An,e.__scopeDialog);return C.jsx(Vr,{present:i||s.open,children:s.modal?C.jsx(Qw,{...r,ref:t}):C.jsx(Zw,{...r,ref:t})})});wf.displayName=An;var Qw=U.forwardRef((e,t)=>{const n=Kt(An,e.__scopeDialog),i=U.useRef(null),r=Ii(t,n.contentRef,i);return U.useEffect(()=>{const s=i.current;if(s)return $w(s)},[]),C.jsx(Ef,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:fi(e.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:fi(e.onPointerDownOutside,s=>{const o=s.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&s.preventDefault()}),onFocusOutside:fi(e.onFocusOutside,s=>s.preventDefault())})}),Zw=U.forwardRef((e,t)=>{const n=Kt(An,e.__scopeDialog),i=U.useRef(!1),r=U.useRef(!1);return C.jsx(Ef,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,s),s.defaultPrevented||(i.current||(l=n.triggerRef.current)==null||l.focus(),s.preventDefault()),i.current=!1,r.current=!1},onInteractOutside:s=>{var u,f;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(i.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=s.target;((f=n.triggerRef.current)==null?void 0:f.contains(o))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),Ef=U.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:r,onCloseAutoFocus:s,...o}=e,l=Kt(An,n),u=U.useRef(null),f=Ii(t,u);return sw(),C.jsxs(C.Fragment,{children:[C.jsx(rf,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:r,onUnmountAutoFocus:s,children:C.jsx(ef,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Is(l.open),...o,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),C.jsxs(C.Fragment,{children:[C.jsx(tE,{titleId:l.titleId}),C.jsx(iE,{contentRef:u,descriptionId:l.descriptionId})]})]})}),_s="DialogTitle",Sf=U.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Kt(_s,n);return C.jsx(On.h2,{id:r.titleId,...i,ref:t})});Sf.displayName=_s;var kf="DialogDescription",Xw=U.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Kt(kf,n);return C.jsx(On.p,{id:r.descriptionId,...i,ref:t})});Xw.displayName=kf;var Cf="DialogClose",eE=U.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Kt(Cf,n);return C.jsx(On.button,{type:"button",...i,ref:t,onClick:fi(e.onClick,()=>r.onOpenChange(!1))})});eE.displayName=Cf;function Is(e){return e?"open":"closed"}var _f="DialogTitleWarning",[qk,If]=v1(_f,{contentName:An,titleName:_s,docsSlug:"dialog"}),tE=({titleId:e})=>{const t=If(_f),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
163
117
|
|
|
164
118
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
165
119
|
|
|
166
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return
|
|
167
|
-
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
168
|
-
data-[state=closed]:animate-out data-[state=closed]:fade-out-0`}),
|
|
169
|
-
data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:scale-95 data-[state=open]:duration-300
|
|
170
|
-
data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:scale-95 data-[state=closed]:duration-200`,children:[_.jsxs("div",{className:"flex flex-col items-center justify-center space-y-2",children:[_.jsx(bt.FdDownload,{className:"h-6 w-6"}),_.jsx(JR,{className:"mt-4 text-sm font-bold",children:n})]}),_.jsx("div",{className:"space-y-2",children:e})]})})})]})}),XR=[{label:"json",value:"json"},{label:"csv",value:"csv"}],YR=({onSelect:e})=>{const[t,r]=L.useState(null);return _.jsx("div",{className:"w-full",children:_.jsx(Ns.Root,{"data-cy":"localization-export-file-type-select",value:t,options:XR,isMulti:!1,onChange:n=>{n&&(r(n),e(n.value))},getOptionLabel:n=>n.label,children:_.jsx(Ns.Field,{placeholder:"Select a file format"})})})},QR=({enable:e,onSelect:t})=>{const{state:r,actions:n}=Ne.useStateObject({delimiters:[{label:"Comma",value:","},{label:"Semicolon",value:";"}],selected:","});return L.useEffect(()=>{t(r.selected)},[r.selected]),e?_.jsxs("div",{className:"flex flex-row items-center justify-between",children:[_.jsx("span",{className:"text-sm text-grey-50",children:" Select a Delimiter "}),_.jsx(pp.Group,{className:"flex flex-row items-center space-x-2",value:r.selected,onChange:i=>n.setSelected(i),children:r.delimiters.map(({label:i,value:a})=>_.jsx(pp.Item,{value:a,label:`${i} (${a})`}))})]}):_.jsx(_.Fragment,{})},ZR={SELECT_FILE_TYPE:"Please Select a File Format !"},eL=({toExport:e})=>{var U;const[t,r]=L.useState(),n=On(),i=n.getWebformTabs(),a=L.useRef(null),o=L.useRef([]),s=L.useRef([]),{i18n:u}=Rn(),c=((U=n.getUserComponents)==null?void 0:U.call(n))??{},d=n.buildResolver??{},[h]=L.useState(!0),{state:{isOpen:f,fileType:g,error:x,csvDelimier:v},actions:b}=Ne.useStateObject({error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],csvDelimier:","}),y=e.length===0;L.useEffect(()=>{Ne.tasksManagerSubject.subscribe({next:Y=>{if(Y.type==="i18n"&&Y.action==="cancel"){const{id:Z}=Y;s.current.push(Z)}}}),r({...d,...c})},[]);const k=()=>{b.setFileType(""),b.setError(""),b.setIsOpen(!1)},C=()=>{k()},I=()=>C(),w=()=>{const Y={};t&&(Object.entries(t).forEach(([Z,le])=>{const{info:{settings:Q}}=le;if(Q)if(Z==="Text")Y.Text=[{keyPropName:"doc",keyDefaultName:"text"}];else{const fe=m(Q,"");Y[Z]=fe}}),a.current=Y)},m=(Y,Z)=>{let le=[];if(Array.isArray(Y))Y.forEach(Q=>le=le.concat(m(Q,Z)));else if(we.isObject(Y)){const{key:Q,type:fe}=Y;if(fe===Ne.ESetting.GROUP){const{components:E}=Y;E==null||E.forEach(te=>le=le.concat(m(te,Z)))}else fe===Ne.ESetting.I18NFIELD?le.push({keyPropName:Z||Q,keyDefaultName:Q}):Object.entries(Y).forEach(([,E])=>{we.isObject(E)&&(le=le.concat(m(E,Z||Q)))})}return le},T=(Y,Z)=>{const{content:le}=Y,{components:Q}=le,fe={};if(!Q)return Y;const E=(ae,N,ee,H)=>{const W=[];if(we.has(ae,ee)){const oe=we.get(ae,ee);W.push(...Pc(oe,ee,H))}const ie=[];return W.forEach(oe=>{const de=we.get(ae,oe),he={__dataPath:oe,__default:de};e.forEach(K=>{const xe=`i18n:${K}`,q=Object.keys(N),re=q.find(ve=>ve.startsWith(xe)),ue=q.reduce((ve,Ce)=>(Ce!==xe&&Ce.endsWith(xe)&&ve.push(Ce),ve),[]);if(re){const ve=we.get(N,`${re}.${oe}`);we.set(he,K,ve)}if(ue.length&&ue.forEach(ve=>{const Ce=we.get(N,`${ve}.${oe}`);let Pe=ve;Pe=ve.replace("states:",""),Pe=Pe.replace("i18n:",""),Ce&&we.set(he,Pe,Ce)}),!re){const ve=we.get(ae,`${oe}`);we.set(he,K,ve)}}),ie.push(he)}),ie},te=(ae,N,ee)=>{const H=[],W=we.get(ae,ee);return W?(H.push({key:"__default",props:W}),e.forEach(ie=>{const oe=`i18n:${ie}`,de=Object.keys(N),he=de.find(xe=>xe.startsWith(oe)),K=de.reduce((xe,q)=>(q!==oe&&q.endsWith(oe)&&xe.push(q),xe),[]);if(he){const xe=we.get(N,`${he}.${ee}`);xe&&H.push({key:ie,props:xe})}K.length&&K.forEach(xe=>{const q=we.get(N,`${xe}.${ee}`);H.push({key:xe,props:q||""})}),!he&&!K.length&&H.push({key:ie,props:W})}),H.reduce((ie,oe)=>{const{key:de,props:he}=oe,K=uO(he);return{...ie,[de]:K}},{__dataPath:ee})):ae};return Object.entries(Q).forEach(([ae,N])=>{const{props:ee,custom:H={},type:W}=N,$=W.resolvedName,ie=Z[$];if(!ie||ie.length===0)return;const oe=ie.map(({keyPropName:de,keyDefaultName:he})=>$==="Text"?te(ee,H,de):E(ee,H,de,he));we.set(fe,ae,{resolverName:$,props:[...oe.flat()]})}),fe},P=async(Y,Z)=>{const le={},Q=fe=>{const E=fe+1===Y.length?Y.length:fe,te=Math.ceil(E/Y.length*100);Ne.tasksManagerSubject.next({id:Z,action:"update",type:"i18n",payload:{progress:te,status:te>=100?"finished":"ongoing"}})};for(let fe=0;fe<Y.length;fe++){const E=Y[fe],te=i.find(ee=>ee.name===E.name&&ee.type==="webform");if(!a.current){Q(fe);continue}const ae=te||await Ne.getNodeInfo({verb:Ne.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${E.name}.${E.ext}`,as:"json"}),N=T(ae,a.current);if(we.isEmpty(N)||we.set(le,E.name,N),s.current.find(ee=>ee===Z))return{};Q(fe)}return le},V=(Y,Z,le)=>{const Q="data:text/json;charset=utf-8,"+encodeURIComponent(Y),fe=document.createElement("a");fe.setAttribute("href",Q),fe.setAttribute("download",Z+`.${le}`),document.body.appendChild(fe),fe.click(),fe.remove()},O=Y=>{switch(g){case"csv":{const Z=["keys","resolverName","__t"].concat(e.concat(["i18nkey_default"]));return sO(Y,Z,v)}case"json":return JSON.stringify(Y,null," ");default:return JSON.stringify(Y,null," ")}},B=(Y,Z)=>{Object.entries(Z.keys).forEach(([Q,fe])=>{Object.keys(fe).forEach(E=>{o.current.push(`i18n.${Q}.${E}`)})});const le={};return Object.entries(Z.keys).forEach(([Q,fe])=>{le[Q]={default:fe.default},e.forEach(E=>{le[Q][E]=Object.hasOwn(fe,E)?fe[E]:h?fe.default:void 0})}),{webforms:{...Y},i18n:le}},F=Y=>b.setCsvDelimier(Y),J=async()=>{const Y=id.generate().toString();try{Ne.tasksManagerSubject.next({id:Y,action:"add",type:"i18n",payload:{progress:0,name:"Export i18n",status:"ongoing",date:new Date().toISOString(),time:oO()}}),w();const Z=await I0(),le=await P(Z,Y),Q=B(le,u),fe=O(Q);we.isEmpty(fe)||V(fe,"export-i18n",g),k()}catch(Z){Ne.tasksManagerSubject.next({id:Y,type:"i18n",action:"update",payload:{status:"canceled"}}),Ne.tasksManagerSubject.next({id:Y,type:"i18n",action:"error",payload:{errorMessage:Z.message||"Export file error"}})}k()};return _.jsxs(_.Fragment,{children:[_.jsx(Ut,{label:"Export",container:Lt(),children:_.jsx(Pt,{disabled:y,color:"white",variant:"ghost",onClick:()=>{b.setIsOpen(!0)},children:_.jsx(bt.FdUpload,{className:"h-4 w-4"})})}),_.jsxs(iy,{isOpen:f,onClose:C,title:"Export","data-cy":"localization-export-dialog",children:[_.jsx("div",{className:"mt-4",children:_.jsx(YR,{onSelect:Y=>b.setFileType(Y)})}),_.jsx(QR,{enable:g==="csv",onSelect:F}),_.jsxs("div",{className:"mt-3 flex items-center justify-between gap-4",children:[_.jsxs("div",{className:"flex flex-row space-x-1 justify-center items-center text-primary hover:underline cursor-pointer",onClick:()=>{window.open("https://developer.4d.com/qodly/4DQodlyPro/localization#exporting-and-importing-translations","_blank")},children:[_.jsx("p",{className:"text-xs",children:"How to Export an i18n File"}),_.jsx(bt.FdOutload,{className:"ml-1 h-4 w-4"})]}),_.jsxs("div",{className:"flex items-center space-x-2",children:[_.jsx(Pt,{color:"white",variant:"ghost",onClick:I,children:"Cancel"}),_.jsx(Pt,{onClick:()=>{g?(b.setIsOpen(!1),J()):b.setError(ZR.SELECT_FILE_TYPE)},children:"Export"})]})]}),x&&_.jsx("div",{className:"flex items-center justify-center p-2",children:_.jsx("span",{className:"text-sm text-negative-text",children:x})})]})]})},tL={DROP_EVENT_ERROR:"Not Suported File type! Only .json and .csv are Supported."},rL=["default"],nL={MISSING_WEBFORMS_OR_I18N:"The file must contain 'webforms' or 'i18n' (or both). The file is empty or missing these keys."},ay=["__dataPath","__default","default","__t","i18nkey_default"],iL=["i18n:","state:"],zs=e=>ay.includes(e)||iL.some(t=>e.startsWith(t)),aL=e=>{const t=new Set;return e.webforms&&Object.values(e.webforms).forEach(r=>{Object.values(r).forEach(n=>{(n.props||[]).forEach(i=>{Object.keys(i).forEach(a=>{zs(a)||t.add(a)})})})}),e.i18n&&Object.values(e.i18n).forEach(r=>{Object.keys(r||{}).forEach(n=>{zs(n)||t.add(n)})}),Array.from(t).sort()},hg=e=>{if(ay.includes(e))return null;if(e.startsWith("state:")){const t=e.lastIndexOf("i18n:");return t!==-1&&e.slice(t+5)||null}return e},oL=(e,t)=>{const r=new Set(t),n={};return e.webforms&&(n.webforms={},Object.entries(e.webforms).forEach(([i,a])=>{if(!a||typeof a!="object")return;const o={};Object.entries(a).forEach(([s,u])=>{if(!u||typeof u!="object")return;const c={resolverName:u.resolverName};u.resolverName==="Text"?(u.props&&(c.props=u.props),u.custom&&(c.custom={},Object.entries(u.custom).forEach(([h,f])=>{const g=h.startsWith("state:")||h.startsWith("states:")?hg(h):h.startsWith("i18n:")?h.slice(5):h;g&&r.has(g)&&(c.custom[h]=f)}))):Object.entries(u).forEach(([h,f])=>{if(h!=="resolverName")if(f&&we.isObject(f)&&!Array.isArray(f)){const g={};Object.entries(f).forEach(([x,v])=>{const b=hg(x);(b===null||r.has(b))&&(g[x]=v)}),Object.keys(g).length>0&&(c[h]=g)}else c[h]=f}),o[s]=c}),n.webforms[i]=o})),e.i18n&&(n.i18n={},Object.entries(e.i18n).forEach(([i,a])=>{if(!a||typeof a!="object")return;const o={};Object.entries(a).forEach(([s,u])=>{(s==="default"||!zs(s)&&r.has(s))&&(o[s]=u)}),Object.keys(o).length>0&&(n.i18n[i]=o)})),n},sL=e=>{const{data:t}=od.parse(e),r=t[0];if(!r||!Array.isArray(r))return[];const n=r.slice(2).filter(i=>i&&!zs(i.trim()));return[...new Set(n)].sort()},mi={EMPTY_OR_INVALID:"The CSV file is empty or could not be parsed.",HEADER_REQUIRED:"The first row must be a header with at least columns: 'keys', 'resolverName', and one locale (e.g. __t, fr, en).",KEY_FORMAT:"Each data row's first column (keys) must be non-empty and start with 'webforms.' or 'i18n.'.",ROW_COLUMNS:"Every row must have the same number of columns as the header."},lL=e=>{const t=A0(e),{data:r}=od.parse(t),n=r;if(!(n!=null&&n.length))return{valid:!1,message:mi.EMPTY_OR_INVALID};const i=n[0];if(!i||i.length<3)return{valid:!1,message:mi.HEADER_REQUIRED};const a=(i[0]??"").trim().toLowerCase(),o=(i[1]??"").trim().toLowerCase();if(a!=="keys"||o!=="resolvername")return{valid:!1,message:mi.HEADER_REQUIRED};const s=i.length;for(let u=1;u<n.length;u++){if(n[u].length<=1)continue;const c=n[u];if(!c||c.length!==s)return{valid:!1,message:mi.ROW_COLUMNS};const d=(c[0]??"").trim();if(!d)return{valid:!1,message:mi.KEY_FORMAT};if(!d.startsWith("webforms.")&&!d.startsWith("i18n."))return{valid:!1,message:mi.KEY_FORMAT}}return{valid:!0}},uL=(e,t)=>{const n=new p1.Validator().validate(e,t);if(n.valid)return{valid:!0};const i=n.errors[0],a=i?`${i.property||"root"} ${i.message}`.trim():"Invalid file format";return{valid:!1,message:we.isObject(e)&&!we.has(e,"webforms")&&!we.has(e,"i18n")&&(a.includes("subschema")||a.includes("any of"))?nL.MISSING_WEBFORMS_OR_I18N:a}},cL="Export i18n",dL="Schema for i18n export format. Must have webforms, i18n, or both.",hL="object",pL=!1,fL={webforms:{type:"object",description:"Webform names to their component localizations",additionalProperties:{$ref:"#/definitions/webformComponents"}},i18n:{type:"object",description:"Shared i18n keys and their localized values",additionalProperties:{$ref:"#/definitions/i18nKeys"}}},gL=[{required:["webforms"]},{required:["i18n"]}],mL={webformComponents:{type:"object",description:"Component ID to component localization entry",additionalProperties:{$ref:"#/definitions/componentEntry"}},componentEntry:{type:"object",required:["resolverName","props"],additionalProperties:!1,properties:{resolverName:{type:"string",description:"Name of the component resolver (e.g. Button)"},props:{type:"array",description:"Localized prop entries",items:{$ref:"#/definitions/propLocalization"}}}},propLocalization:{type:"object",required:["__dataPath","__default"],properties:{__dataPath:{type:"string",description:"Path to the prop (e.g. text)"},__default:{type:"string",description:"Default value for the prop"}},additionalProperties:{type:"string",description:"Locale code to localized string (e.g. fr, en)"}},i18nKeys:{type:"object",required:["default"],properties:{default:{type:"string",description:"Default value"}},additionalProperties:{type:"string",description:"Locale code to localized string (e.g. fr, en)"}}},vL={title:cL,description:dL,type:hL,additionalProperties:pL,properties:fL,anyOf:gL,definitions:mL};var la={exports:{}};la.exports;var pg;function xL(){return pg||(pg=1,(function(e,t){var r=200,n="__lodash_hash_undefined__",i=800,a=16,o=9007199254740991,s="[object Arguments]",u="[object Array]",c="[object AsyncFunction]",d="[object Boolean]",h="[object Date]",f="[object Error]",g="[object Function]",x="[object GeneratorFunction]",v="[object Map]",b="[object Number]",y="[object Null]",k="[object Object]",C="[object Proxy]",I="[object RegExp]",w="[object Set]",m="[object String]",T="[object Undefined]",P="[object WeakMap]",V="[object ArrayBuffer]",O="[object DataView]",B="[object Float32Array]",F="[object Float64Array]",J="[object Int8Array]",U="[object Int16Array]",Y="[object Int32Array]",Z="[object Uint8Array]",le="[object Uint8ClampedArray]",Q="[object Uint16Array]",fe="[object Uint32Array]",E=/[\\^$.*+?()[\]{}|]/g,te=/^\[object .+?Constructor\]$/,ae=/^(?:0|[1-9]\d*)$/,N={};N[B]=N[F]=N[J]=N[U]=N[Y]=N[Z]=N[le]=N[Q]=N[fe]=!0,N[s]=N[u]=N[V]=N[d]=N[O]=N[h]=N[f]=N[g]=N[v]=N[b]=N[k]=N[I]=N[w]=N[m]=N[P]=!1;var ee=typeof Mo=="object"&&Mo&&Mo.Object===Object&&Mo,H=typeof self=="object"&&self&&self.Object===Object&&self,W=ee||H||Function("return this")(),$=t&&!t.nodeType&&t,ie=$&&!0&&e&&!e.nodeType&&e,oe=ie&&ie.exports===$,de=oe&&ee.process,he=(function(){try{var j=ie&&ie.require&&ie.require("util").types;return j||de&&de.binding&&de.binding("util")}catch{}})(),K=he&&he.isTypedArray;function xe(j,G,ce){switch(ce.length){case 0:return j.call(G);case 1:return j.call(G,ce[0]);case 2:return j.call(G,ce[0],ce[1]);case 3:return j.call(G,ce[0],ce[1],ce[2])}return j.apply(G,ce)}function q(j,G){for(var ce=-1,Re=Array(j);++ce<j;)Re[ce]=G(ce);return Re}function re(j){return function(G){return j(G)}}function ue(j,G){return j==null?void 0:j[G]}function ve(j,G){return function(ce){return j(G(ce))}}var Ce=Array.prototype,Pe=Function.prototype,Ie=Object.prototype,Ue=W["__core-js_shared__"],_e=Pe.toString,Ae=Ie.hasOwnProperty,Be=(function(){var j=/[^.]+$/.exec(Ue&&Ue.keys&&Ue.keys.IE_PROTO||"");return j?"Symbol(src)_1."+j:""})(),Nt=Ie.toString,ge=_e.call(Object),pe=RegExp("^"+_e.call(Ae).replace(E,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=oe?W.Buffer:void 0,Oe=W.Symbol,Ke=W.Uint8Array;D&&D.allocUnsafe;var St=ve(Object.getPrototypeOf,Object),Te=Object.create,zt=Ie.propertyIsEnumerable,rt=Ce.splice,et=Oe?Oe.toStringTag:void 0,Xe=(function(){try{var j=$t(Object,"defineProperty");return j({},"",{}),j}catch{}})(),wt=D?D.isBuffer:void 0,At=Math.max,pn=Date.now,fr=$t(W,"Map"),It=$t(Object,"create"),Dt=(function(){function j(){}return function(G){if(!A(G))return{};if(Te)return Te(G);j.prototype=G;var ce=new j;return j.prototype=void 0,ce}})();function Qe(j){var G=-1,ce=j==null?0:j.length;for(this.clear();++G<ce;){var Re=j[G];this.set(Re[0],Re[1])}}function wr(){this.__data__=It?It(null):{},this.size=0}function We(j){var G=this.has(j)&&delete this.__data__[j];return this.size-=G?1:0,G}function Za(j){var G=this.__data__;if(It){var ce=G[j];return ce===n?void 0:ce}return Ae.call(G,j)?G[j]:void 0}function Ki(j){var G=this.__data__;return It?G[j]!==void 0:Ae.call(G,j)}function Vl(j,G){var ce=this.__data__;return this.size+=this.has(j)?0:1,ce[j]=It&&G===void 0?n:G,this}Qe.prototype.clear=wr,Qe.prototype.delete=We,Qe.prototype.get=Za,Qe.prototype.has=Ki,Qe.prototype.set=Vl;function nr(j){var G=-1,ce=j==null?0:j.length;for(this.clear();++G<ce;){var Re=j[G];this.set(Re[0],Re[1])}}function Hr(){this.__data__=[],this.size=0}function Ml(j){var G=this.__data__,ce=zn(G,j);if(ce<0)return!1;var Re=G.length-1;return ce==Re?G.pop():rt.call(G,ce,1),--this.size,!0}function Fn(j){var G=this.__data__,ce=zn(G,j);return ce<0?void 0:G[ce][1]}function Bn(j){return zn(this.__data__,j)>-1}function eo(j,G){var ce=this.__data__,Re=zn(ce,j);return Re<0?(++this.size,ce.push([j,G])):ce[Re][1]=G,this}nr.prototype.clear=Hr,nr.prototype.delete=Ml,nr.prototype.get=Fn,nr.prototype.has=Bn,nr.prototype.set=eo;function fn(j){var G=-1,ce=j==null?0:j.length;for(this.clear();++G<ce;){var Re=j[G];this.set(Re[0],Re[1])}}function to(){this.size=0,this.__data__={hash:new Qe,map:new(fr||nr),string:new Qe}}function ro(j){var G=ir(this,j).delete(j);return this.size-=G?1:0,G}function no(j){return ir(this,j).get(j)}function io(j){return ir(this,j).has(j)}function ao(j,G){var ce=ir(this,j),Re=ce.size;return ce.set(j,G),this.size+=ce.size==Re?0:1,this}fn.prototype.clear=to,fn.prototype.delete=ro,fn.prototype.get=no,fn.prototype.has=io,fn.prototype.set=ao;function gn(j){var G=this.__data__=new nr(j);this.size=G.size}function jl(){this.__data__=new nr,this.size=0}function Fl(j){var G=this.__data__,ce=G.delete(j);return this.size=G.size,ce}function Bl(j){return this.__data__.get(j)}function oo(j){return this.__data__.has(j)}function so(j,G){var ce=this.__data__;if(ce instanceof nr){var Re=ce.__data__;if(!fr||Re.length<r-1)return Re.push([j,G]),this.size=++ce.size,this;ce=this.__data__=new fn(Re)}return ce.set(j,G),this.size=ce.size,this}gn.prototype.clear=jl,gn.prototype.delete=Fl,gn.prototype.get=Bl,gn.prototype.has=oo,gn.prototype.set=so;function lo(j,G){var ce=Xi(j),Re=!ce&&ui(j),Ye=!ce&&!Re&&l(j),xt=!ce&&!Re&&!Ye&&se(j),Ct=ce||Re||Ye||xt,lt=Ct?q(j.length,String):[],Et=lt.length;for(var Or in j)Ct&&(Or=="length"||Ye&&(Or=="offset"||Or=="parent")||xt&&(Or=="buffer"||Or=="byteLength"||Or=="byteOffset")||vo(Or,Et))||lt.push(Or);return lt}function si(j,G,ce){(ce!==void 0&&!Un(j[G],ce)||ce===void 0&&!(G in j))&&Gi(j,G,ce)}function uo(j,G,ce){var Re=j[G];(!(Ae.call(j,G)&&Un(Re,ce))||ce===void 0&&!(G in j))&&Gi(j,G,ce)}function zn(j,G){for(var ce=j.length;ce--;)if(Un(j[ce][0],G))return ce;return-1}function Gi(j,G,ce){G=="__proto__"&&Xe?Xe(j,G,{configurable:!0,enumerable:!0,value:ce,writable:!0}):j[G]=ce}var zl=go();function Hn(j){return j==null?j===void 0?T:y:et&&et in Object(j)?Gl(j):bo(j)}function co(j){return M(j)&&Hn(j)==s}function Ji(j){if(!A(j)||Yl(j))return!1;var G=p(j)?pe:te;return G.test(wo(j))}function ho(j){return M(j)&&S(j.length)&&!!N[Hn(j)]}function Hl(j){if(!A(j))return xo(j);var G=Wn(j),ce=[];for(var Re in j)Re=="constructor"&&(G||!Ae.call(j,Re))||ce.push(Re);return ce}function Le(j,G,ce,Re,Ye){j!==G&&zl(G,function(xt,Ct){if(Ye||(Ye=new gn),A(xt))li(j,G,Ct,ce,Le,Re,Ye);else{var lt=Re?Re(mn(j,Ct),xt,Ct+"",j,G,Ye):void 0;lt===void 0&&(lt=xt),si(j,Ct,lt)}},Ee)}function li(j,G,ce,Re,Ye,xt,Ct){var lt=mn(j,ce),Et=mn(G,ce),Or=Ct.get(Et);if(Or){si(j,ce,Or);return}var gr=xt?xt(lt,Et,ce+"",j,G,Ct):void 0,Qi=gr===void 0;if(Qi){var eu=Xi(Et),tu=!eu&&l(Et),Qh=!eu&&!tu&&se(Et);gr=Et,eu||tu||Qh?Xi(lt)?gr=lt:Zl(lt)?gr=ql(lt):tu?(Qi=!1,gr=Ul(Et)):Qh?(Qi=!1,gr=$l(Et)):gr=[]:ne(Et)||ui(Et)?(gr=lt,ui(lt)?gr=ke(lt):(!A(lt)||p(lt))&&(gr=mo(Et))):Qi=!1}Qi&&(Ct.set(Et,gr),Ye(gr,Et,Re,xt,Ct),Ct.delete(Et)),si(j,ce,gr)}function kr(j,G){return tt(yo(j,G,vt),j+"")}var Wl=Xe?function(j,G){return Xe(j,"toString",{configurable:!0,enumerable:!1,value:Ge(G),writable:!0})}:vt;function Ul(j,G){return j.slice()}function po(j){var G=new j.constructor(j.byteLength);return new Ke(G).set(new Ke(j)),G}function $l(j,G){var ce=po(j.buffer);return new j.constructor(ce,j.byteOffset,j.length)}function ql(j,G){var ce=-1,Re=j.length;for(G||(G=Array(Re));++ce<Re;)G[ce]=j[ce];return G}function fo(j,G,ce,Re){var Ye=!ce;ce||(ce={});for(var xt=-1,Ct=G.length;++xt<Ct;){var lt=G[xt],Et=void 0;Et===void 0&&(Et=j[lt]),Ye?Gi(ce,lt,Et):uo(ce,lt,Et)}return ce}function Kl(j){return kr(function(G,ce){var Re=-1,Ye=ce.length,xt=Ye>1?ce[Ye-1]:void 0,Ct=Ye>2?ce[2]:void 0;for(xt=j.length>3&&typeof xt=="function"?(Ye--,xt):void 0,Ct&&Jl(ce[0],ce[1],Ct)&&(xt=Ye<3?void 0:xt,Ye=1),G=Object(G);++Re<Ye;){var lt=ce[Re];lt&&j(G,lt,Re,xt)}return G})}function go(j){return function(G,ce,Re){for(var Ye=-1,xt=Object(G),Ct=Re(G),lt=Ct.length;lt--;){var Et=Ct[++Ye];if(ce(xt[Et],Et,xt)===!1)break}return G}}function ir(j,G){var ce=j.__data__;return Xl(G)?ce[typeof G=="string"?"string":"hash"]:ce.map}function $t(j,G){var ce=ue(j,G);return Ji(ce)?ce:void 0}function Gl(j){var G=Ae.call(j,et),ce=j[et];try{j[et]=void 0;var Re=!0}catch{}var Ye=Nt.call(j);return Re&&(G?j[et]=ce:delete j[et]),Ye}function mo(j){return typeof j.constructor=="function"&&!Wn(j)?Dt(St(j)):{}}function vo(j,G){var ce=typeof j;return G=G??o,!!G&&(ce=="number"||ce!="symbol"&&ae.test(j))&&j>-1&&j%1==0&&j<G}function Jl(j,G,ce){if(!A(ce))return!1;var Re=typeof G;return(Re=="number"?Yi(ce)&&vo(G,ce.length):Re=="string"&&G in ce)?Un(ce[G],j):!1}function Xl(j){var G=typeof j;return G=="string"||G=="number"||G=="symbol"||G=="boolean"?j!=="__proto__":j===null}function Yl(j){return!!Be&&Be in j}function Wn(j){var G=j&&j.constructor,ce=typeof G=="function"&&G.prototype||Ie;return j===ce}function xo(j){var G=[];if(j!=null)for(var ce in Object(j))G.push(ce);return G}function bo(j){return Nt.call(j)}function yo(j,G,ce){return G=At(G===void 0?j.length-1:G,0),function(){for(var Re=arguments,Ye=-1,xt=At(Re.length-G,0),Ct=Array(xt);++Ye<xt;)Ct[Ye]=Re[G+Ye];Ye=-1;for(var lt=Array(G+1);++Ye<G;)lt[Ye]=Re[Ye];return lt[G]=ce(Ct),xe(j,this,lt)}}function mn(j,G){if(!(G==="constructor"&&typeof j[G]=="function")&&G!="__proto__")return j[G]}var tt=Ql(Wl);function Ql(j){var G=0,ce=0;return function(){var Re=pn(),Ye=a-(Re-ce);if(ce=Re,Ye>0){if(++G>=i)return arguments[0]}else G=0;return j.apply(void 0,arguments)}}function wo(j){if(j!=null){try{return _e.call(j)}catch{}try{return j+""}catch{}}return""}function Un(j,G){return j===G||j!==j&&G!==G}var ui=co((function(){return arguments})())?co:function(j){return M(j)&&Ae.call(j,"callee")&&!zt.call(j,"callee")},Xi=Array.isArray;function Yi(j){return j!=null&&S(j.length)&&!p(j)}function Zl(j){return M(j)&&Yi(j)}var l=wt||Ft;function p(j){if(!A(j))return!1;var G=Hn(j);return G==g||G==x||G==c||G==C}function S(j){return typeof j=="number"&&j>-1&&j%1==0&&j<=o}function A(j){var G=typeof j;return j!=null&&(G=="object"||G=="function")}function M(j){return j!=null&&typeof j=="object"}function ne(j){if(!M(j)||Hn(j)!=k)return!1;var G=St(j);if(G===null)return!0;var ce=Ae.call(G,"constructor")&&G.constructor;return typeof ce=="function"&&ce instanceof ce&&_e.call(ce)==ge}var se=K?re(K):ho;function ke(j){return fo(j,Ee(j))}function Ee(j){return Yi(j)?lo(j):Hl(j)}var He=Kl(function(j,G,ce,Re){Le(j,G,ce,Re)});function Ge(j){return function(){return j}}function vt(j){return j}function Ft(){return!1}e.exports=He})(la,la.exports)),la.exports}var bL=xL();const Yn=ml(bL);var oy=1/60*1e3,yL=typeof performance<"u"?function(){return performance.now()}:function(){return Date.now()},sy=typeof window<"u"?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout(function(){return e(yL())},oy)};function wL(e){var t=[],r=[],n=0,i=!1,a=new WeakSet,o={schedule:function(s,u,c){u===void 0&&(u=!1),c===void 0&&(c=!1);var d=c&&i,h=d?t:r;return u&&a.add(s),h.indexOf(s)===-1&&(h.push(s),d&&i&&(n=t.length)),s},cancel:function(s){var u=r.indexOf(s);u!==-1&&r.splice(u,1),a.delete(s)},process:function(s){var u;if(i=!0,u=[r,t],t=u[0],r=u[1],r.length=0,n=t.length,n)for(var c=0;c<n;c++){var d=t[c];d(s),a.has(d)&&(o.schedule(d),e())}i=!1}};return o}var kL=40,Rc=!0,Ta=!1,Lc=!1,Ti={delta:0,timestamp:0},Ka=["read","update","preRender","render","postRender"],Cl=Ka.reduce(function(e,t){return e[t]=wL(function(){return Ta=!0}),e},{}),qr=Ka.reduce(function(e,t){var r=Cl[t];return e[t]=function(n,i,a){return i===void 0&&(i=!1),a===void 0&&(a=!1),Ta||CL(),r.schedule(n,i,a)},e},{}),ha=Ka.reduce(function(e,t){return e[t]=Cl[t].cancel,e},{}),Ei=Ka.reduce(function(e,t){return e[t]=function(){return Cl[t].process(Ti)},e},{}),SL=function(e){return Cl[e].process(Ti)},ly=function(e){Ta=!1,Ti.delta=Rc?oy:Math.max(Math.min(e-Ti.timestamp,kL),1),Ti.timestamp=e,Lc=!0,Ka.forEach(SL),Lc=!1,Ta&&(Rc=!1,sy(ly))},CL=function(){Ta=!0,Rc=!0,Lc||sy(ly)},Hs=function(){return Ti},EL={};function Ku(e){return typeof e=="number"}function _L(e){return Array.isArray(e)}function uy(e){return typeof e=="function"}function Pi(e){var t=typeof e;return e!=null&&(t==="object"||t==="function")&&!_L(e)}function kh(e){return Object.prototype.toString.call(e)==="[object String]"}function cy(e){return/^var\(--.+\)$/.test(e)}var Nr=EL.NODE_ENV!=="production";function Sh(e,t){var r={};return Object.keys(e).forEach(function(n){t.includes(n)||(r[n]=e[n])}),r}function IL(e,t,r,n){var i=typeof t=="string"?t.split("."):[t];for(n=0;n<i.length&&e;n+=1)e=e[i[n]];return e===void 0?r:e}var AL=function(t){var r=new WeakMap,n=function(a,o,s,u){if(typeof a>"u")return t(a,o,s);r.has(a)||r.set(a,new Map);var c=r.get(a);if(c.has(o))return c.get(o);var d=t(a,o,s,u);return c.set(o,d),d};return n},dy=AL(IL);function hy(e,t){var r={};return Object.keys(e).forEach(function(n){var i=e[n],a=t(i,n,e);a&&(r[n]=i)}),r}var py=function(t){return hy(t,function(r){return r!=null})},fy=function(t){return Object.keys(t)};function gy(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function my(e){var t;if(!gy(e))return!1;var r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function vy(e){var t;return gy(e)&&(t=e.ownerDocument)!=null?t:document}function TL(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var PL=TL(),Bt=function(t){return t?"":void 0},Mn=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.filter(Boolean).join(" ")};function NL(e){return my(e)&&e.tagName.toLowerCase()==="input"&&"select"in e}function OL(e){var t=my(e)?vy(e):document;return t.activeElement===e}function fg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function RL(e,t){if(e){if(typeof e=="string")return fg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fg(e,t)}}function LL(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=RL(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
171
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function an(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return uy(e)?e.apply(void 0,r):e}function lr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){t.some(function(a){return a==null||a(i),i==null?void 0:i.defaultPrevented})}}function DL(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){t.forEach(function(a){a==null||a(i)})}}function VL(e){var t;return function(){if(e){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];t=e.apply(this,i),e=null}return t}}var xy=VL(function(e){return function(){var t=e.condition,r=e.message;t&&Nr&&console.warn(r)}});function ML(e,t){t===void 0&&(t={});var r=t,n=r.isActive,i=n===void 0?OL:n,a=r.nextTick,o=r.preventScroll,s=o===void 0?!0:o,u=r.selectTextIfInput,c=u===void 0?!0:u;if(!e||i(e))return-1;function d(){if(!e){xy({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"});return}if(jL())e.focus({preventScroll:s});else if(e.focus(),s){var h=FL(e);BL(h)}NL(e)&&c&&e.select()}return a?requestAnimationFrame(d):(d(),-1)}var Ko=null;function jL(){if(Ko==null){Ko=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return Ko=!0,!0}})}catch{}}return Ko}function FL(e){for(var t,r=vy(e),n=(t=r.defaultView)!=null?t:window,i=e.parentNode,a=[],o=r.scrollingElement||r.documentElement;i instanceof n.HTMLElement&&i!==o;)(i.offsetHeight<i.scrollHeight||i.offsetWidth<i.scrollWidth)&&a.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),i=i.parentNode;return o instanceof n.HTMLElement&&a.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),a}function BL(e){for(var t=LL(e),r;!(r=t()).done;){var n=r.value,i=n.element,a=n.scrollTop,o=n.scrollLeft;i.scrollTop=a,i.scrollLeft=o}}function zL(e,t){if(e!=null){if(uy(e)){e(t);return}try{e.current=t}catch{throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}}}function Ws(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){t.forEach(function(i){return zL(i,n)})}}function Ch(e){e===void 0&&(e={});var t=e,r=t.strict,n=r===void 0?!0:r,i=t.errorMessage,a=i===void 0?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":i,o=t.name,s=z.createContext(void 0);s.displayName=o;function u(){var c=z.useContext(s);if(!c&&n){var d=new Error(a);throw d.name="ContextError",Error.captureStackTrace==null||Error.captureStackTrace(d,u),d}return c}return[s.Provider,u,s]}var Dc=PL?z.useLayoutEffect:z.useEffect;function Gu(e,t){t===void 0&&(t=[]);var r=z.useRef(e);return Dc(function(){r.current=e}),z.useCallback(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r.current==null?void 0:r.current.apply(r,i)},t)}function gs(e){e===void 0&&(e=!1);var t=L.useState(e),r=t[0],n=t[1],i=L.useMemo(function(){return{on:function(){return n(!0)},off:function(){return n(!1)},toggle:function(){return n(function(o){return!o})}}},[]);return[r,i]}function HL(e,t){var r=e!==void 0,n=r&&typeof e<"u"?e:t;return[r,n]}var WL={current:1},UL=z.createContext(WL),$L=function(t){return t.current++};function qL(e,t){var r=z.useContext(UL),n=z.useState(r.current),i=n[0],a=n[1];return z.useEffect(function(){a($L(r))},[r]),z.useMemo(function(){return[t,i].filter(Boolean).join("-")},[e,t,i])}var KL=function(t,r){var n=z.useRef(!1);return z.useEffect(function(){if(n.current)return t();n.current=!0},r),n.current},by=z.createContext({});Nr&&(by.displayName="ColorModeContext");var GL=function(){var t=z.useContext(by);if(t===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return t};function Us(){return Us=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Us.apply(this,arguments)}var JL=function(t,r){return function(n){var i=String(r),a=t?t+"."+i:i;return Pi(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:r}};function Pa(e){var t=e.scale,r=e.transform,n=e.compose,i=function(o,s){var u,c=JL(t,o)(s),d=(u=r==null?void 0:r(c,s))!=null?u:c;return n&&(d=n(d,s)),d};return i}function Lr(e,t){return function(r){var n={property:r,scale:e};return n.transform=Pa({scale:e,transform:t}),n}}var XL=function(t){var r=t.rtl,n=t.ltr;return function(i){return i.direction==="rtl"?r:n}};function YL(e){var t=e.property,r=e.scale,n=e.transform;return{scale:r,property:XL(t),transform:r?Pa({scale:r,compose:n}):n}}var Ju,Xu,yy=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function QL(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))"].concat(yy).join(" ")}function ZL(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(yy).join(" ")}var e3={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},t3={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function r3(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var n3={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},wy="& > :not(style) ~ :not(style)",i3=(Ju={},Ju[wy]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},Ju),a3=(Xu={},Xu[wy]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},Xu);function $s(e,t){return $s=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},$s(e,t)}function o3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$s(e,t)}function Vc(){Vc=function(i,a){return new r(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function r(i,a,o){var s=new RegExp(i,a);return t.set(s,o||t.get(i)),$s(s,r.prototype)}o3(r,RegExp),r.prototype.exec=function(i){var a=e.exec.call(this,i);return a&&(a.groups=n(a,this)),a},r.prototype[Symbol.replace]=function(i,a){if(typeof a=="string"){var o=t.get(this);return e[Symbol.replace].call(this,i,a.replace(/\$<([^>]+)>/g,function(u,c){return"$"+o[c]}))}else if(typeof a=="function"){var s=this;return e[Symbol.replace].call(this,i,function(){var u=arguments;return typeof u[u.length-1]!="object"&&(u=[].slice.call(u),u.push(n(u,s))),a.apply(this,u)})}else return e[Symbol.replace].call(this,i,a)};function n(i,a){var o=t.get(a);return Object.keys(o).reduce(function(s,u){return s[u]=i[o[u]],s},Object.create(null))}return Vc.apply(this,arguments)}var Mc={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},s3=new Set(Object.values(Mc)),ky=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),l3=function(t){return t.trim()};function u3(e,t){var r,n;if(e==null||ky.has(e))return e;var i=Vc(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}),a=(r=(n=i.exec(e))==null?void 0:n.groups)!=null?r:{},o=a.type,s=a.values;if(!o||!s)return e;var u=o.includes("-gradient")?o:o+"-gradient",c=s.split(",").map(l3).filter(Boolean),d=c[0],h=c.slice(1);if((h==null?void 0:h.length)===0)return e;var f=d in Mc?Mc[d]:d;h.unshift(f);var g=h.map(function(x){if(s3.has(x))return x;var v=x.indexOf(" "),b=v!==-1?[x.substr(0,v),x.substr(v+1)]:[x],y=b[0],k=b[1],C=Sy(k)?k:k&&k.split(" "),I="colors."+y,w=I in t.__cssMap?t.__cssMap[I].varRef:y;return C?[w].concat(Array.isArray(C)?C:[C]).join(" "):w});return u+"("+g.join(", ")+")"}var Sy=function(t){return kh(t)&&t.includes("(")&&t.includes(")")},c3=function(t,r){return u3(t,r??{})},d3=function(t){var r=parseFloat(t.toString()),n=t.toString().replace(String(r),"");return{unitless:!n,value:r,unit:n}},Wr=function(t){return function(r){return t+"("+r+")"}},mt={filter:function(t){return t!=="auto"?t:e3},backdropFilter:function(t){return t!=="auto"?t:t3},ring:function(t){return r3(mt.px(t))},bgClip:function(t){return t==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:t}},transform:function(t){return t==="auto"?QL():t==="auto-gpu"?ZL():t},px:function(t){if(t==null)return t;var r=d3(t),n=r.unitless;return n||Ku(t)?t+"px":t},fraction:function(t){return!Ku(t)||t>1?t:t*100+"%"},float:function(t,r){var n={left:"right",right:"left"};return r.direction==="rtl"?n[t]:t},degree:function(t){if(cy(t)||t==null)return t;var r=kh(t)&&!t.endsWith("deg");return Ku(t)||r?t+"deg":t},gradient:c3,blur:Wr("blur"),opacity:Wr("opacity"),brightness:Wr("brightness"),contrast:Wr("contrast"),dropShadow:Wr("drop-shadow"),grayscale:Wr("grayscale"),hueRotate:Wr("hue-rotate"),invert:Wr("invert"),saturate:Wr("saturate"),sepia:Wr("sepia"),bgImage:function(t){if(t==null)return t;var r=Sy(t)||ky.has(t);return r?t:"url("+t+")"},outline:function(t){var r=String(t)==="0"||String(t)==="none";return t!==null&&r?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:t}},flexDirection:function(t){var r,n=(r=n3[t])!=null?r:{},i=n.space,a=n.divide,o={flexDirection:t};return i&&(o[i]=1),a&&(o[a]=1),o}},X={borderWidths:Lr("borderWidths"),borderStyles:Lr("borderStyles"),colors:Lr("colors"),borders:Lr("borders"),radii:Lr("radii",mt.px),space:Lr("space",mt.px),spaceT:Lr("space",mt.px),degreeT:function(t){return{property:t,transform:mt.degree}},prop:function(t,r,n){return Us({property:t,scale:r},r&&{transform:Pa({scale:r,transform:n})})},propT:function(t,r){return{property:t,transform:r}},sizes:Lr("sizes",mt.px),sizesT:Lr("sizes",mt.fraction),shadows:Lr("shadows"),logical:YL,blur:Lr("blur",mt.blur)},ms={background:X.colors("background"),backgroundColor:X.colors("backgroundColor"),backgroundImage:X.propT("backgroundImage",mt.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:mt.bgClip},bgSize:X.prop("backgroundSize"),bgPosition:X.prop("backgroundPosition"),bg:X.colors("background"),bgColor:X.colors("backgroundColor"),bgPos:X.prop("backgroundPosition"),bgRepeat:X.prop("backgroundRepeat"),bgAttachment:X.prop("backgroundAttachment"),bgGradient:X.propT("backgroundImage",mt.gradient),bgClip:{transform:mt.bgClip}};Object.assign(ms,{bgImage:ms.backgroundImage,bgImg:ms.backgroundImage});var ut={border:X.borders("border"),borderWidth:X.borderWidths("borderWidth"),borderStyle:X.borderStyles("borderStyle"),borderColor:X.colors("borderColor"),borderRadius:X.radii("borderRadius"),borderTop:X.borders("borderTop"),borderBlockStart:X.borders("borderBlockStart"),borderTopLeftRadius:X.radii("borderTopLeftRadius"),borderStartStartRadius:X.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:X.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:X.radii("borderTopRightRadius"),borderStartEndRadius:X.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:X.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:X.borders("borderRight"),borderInlineEnd:X.borders("borderInlineEnd"),borderBottom:X.borders("borderBottom"),borderBlockEnd:X.borders("borderBlockEnd"),borderBottomLeftRadius:X.radii("borderBottomLeftRadius"),borderBottomRightRadius:X.radii("borderBottomRightRadius"),borderLeft:X.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:X.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:X.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:X.borders(["borderLeft","borderRight"]),borderInline:X.borders("borderInline"),borderY:X.borders(["borderTop","borderBottom"]),borderBlock:X.borders("borderBlock"),borderTopWidth:X.borderWidths("borderTopWidth"),borderBlockStartWidth:X.borderWidths("borderBlockStartWidth"),borderTopColor:X.colors("borderTopColor"),borderBlockStartColor:X.colors("borderBlockStartColor"),borderTopStyle:X.borderStyles("borderTopStyle"),borderBlockStartStyle:X.borderStyles("borderBlockStartStyle"),borderBottomWidth:X.borderWidths("borderBottomWidth"),borderBlockEndWidth:X.borderWidths("borderBlockEndWidth"),borderBottomColor:X.colors("borderBottomColor"),borderBlockEndColor:X.colors("borderBlockEndColor"),borderBottomStyle:X.borderStyles("borderBottomStyle"),borderBlockEndStyle:X.borderStyles("borderBlockEndStyle"),borderLeftWidth:X.borderWidths("borderLeftWidth"),borderInlineStartWidth:X.borderWidths("borderInlineStartWidth"),borderLeftColor:X.colors("borderLeftColor"),borderInlineStartColor:X.colors("borderInlineStartColor"),borderLeftStyle:X.borderStyles("borderLeftStyle"),borderInlineStartStyle:X.borderStyles("borderInlineStartStyle"),borderRightWidth:X.borderWidths("borderRightWidth"),borderInlineEndWidth:X.borderWidths("borderInlineEndWidth"),borderRightColor:X.colors("borderRightColor"),borderInlineEndColor:X.colors("borderInlineEndColor"),borderRightStyle:X.borderStyles("borderRightStyle"),borderInlineEndStyle:X.borderStyles("borderInlineEndStyle"),borderTopRadius:X.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:X.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:X.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:X.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ut,{rounded:ut.borderRadius,roundedTop:ut.borderTopRadius,roundedTopLeft:ut.borderTopLeftRadius,roundedTopRight:ut.borderTopRightRadius,roundedTopStart:ut.borderStartStartRadius,roundedTopEnd:ut.borderStartEndRadius,roundedBottom:ut.borderBottomRadius,roundedBottomLeft:ut.borderBottomLeftRadius,roundedBottomRight:ut.borderBottomRightRadius,roundedBottomStart:ut.borderEndStartRadius,roundedBottomEnd:ut.borderEndEndRadius,roundedLeft:ut.borderLeftRadius,roundedRight:ut.borderRightRadius,roundedStart:ut.borderInlineStartRadius,roundedEnd:ut.borderInlineEndRadius,borderStart:ut.borderInlineStart,borderEnd:ut.borderInlineEnd,borderTopStartRadius:ut.borderStartStartRadius,borderTopEndRadius:ut.borderStartEndRadius,borderBottomStartRadius:ut.borderEndStartRadius,borderBottomEndRadius:ut.borderEndEndRadius,borderStartRadius:ut.borderInlineStartRadius,borderEndRadius:ut.borderInlineEndRadius,borderStartWidth:ut.borderInlineStartWidth,borderEndWidth:ut.borderInlineEndWidth,borderStartColor:ut.borderInlineStartColor,borderEndColor:ut.borderInlineEndColor,borderStartStyle:ut.borderInlineStartStyle,borderEndStyle:ut.borderInlineEndStyle});var h3={color:X.colors("color"),textColor:X.colors("color"),fill:X.colors("fill"),stroke:X.colors("stroke")},jc={boxShadow:X.shadows("boxShadow"),mixBlendMode:!0,blendMode:X.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:X.prop("backgroundBlendMode"),opacity:!0};Object.assign(jc,{shadow:jc.boxShadow});var p3={filter:{transform:mt.filter},blur:X.blur("--chakra-blur"),brightness:X.propT("--chakra-brightness",mt.brightness),contrast:X.propT("--chakra-contrast",mt.contrast),hueRotate:X.degreeT("--chakra-hue-rotate"),invert:X.propT("--chakra-invert",mt.invert),saturate:X.propT("--chakra-saturate",mt.saturate),dropShadow:X.propT("--chakra-drop-shadow",mt.dropShadow),backdropFilter:{transform:mt.backdropFilter},backdropBlur:X.blur("--chakra-backdrop-blur"),backdropBrightness:X.propT("--chakra-backdrop-brightness",mt.brightness),backdropContrast:X.propT("--chakra-backdrop-contrast",mt.contrast),backdropHueRotate:X.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:X.propT("--chakra-backdrop-invert",mt.invert),backdropSaturate:X.propT("--chakra-backdrop-saturate",mt.saturate)},qs={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:mt.flexDirection},experimental_spaceX:{static:i3,transform:Pa({scale:"space",transform:function(t){return t!==null?{"--chakra-space-x":t}:null}})},experimental_spaceY:{static:a3,transform:Pa({scale:"space",transform:function(t){return t!=null?{"--chakra-space-y":t}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:X.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:X.space("gap"),rowGap:X.space("rowGap"),columnGap:X.space("columnGap")};Object.assign(qs,{flexDir:qs.flexDirection});var Cy={gridGap:X.space("gridGap"),gridColumnGap:X.space("gridColumnGap"),gridRowGap:X.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},f3={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:mt.outline},outlineOffset:!0,outlineColor:X.colors("outlineColor")},Er={width:X.sizesT("width"),inlineSize:X.sizesT("inlineSize"),height:X.sizes("height"),blockSize:X.sizes("blockSize"),boxSize:X.sizes(["width","height"]),minWidth:X.sizes("minWidth"),minInlineSize:X.sizes("minInlineSize"),minHeight:X.sizes("minHeight"),minBlockSize:X.sizes("minBlockSize"),maxWidth:X.sizes("maxWidth"),maxInlineSize:X.sizes("maxInlineSize"),maxHeight:X.sizes("maxHeight"),maxBlockSize:X.sizes("maxBlockSize"),d:X.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:X.propT("float",mt.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Er,{w:Er.width,h:Er.height,minW:Er.minWidth,maxW:Er.maxWidth,minH:Er.minHeight,maxH:Er.maxHeight,overscroll:Er.overscrollBehavior,overscrollX:Er.overscrollBehaviorX,overscrollY:Er.overscrollBehaviorY});var g3={listStyleType:!0,listStylePosition:!0,listStylePos:X.prop("listStylePosition"),listStyleImage:!0,listStyleImg:X.prop("listStyleImage")},m3={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},v3={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Yu=function(t,r,n){var i={},a=dy(t,r,{});for(var o in a){var s=o in n&&n[o]!=null;s||(i[o]=a[o])}return i},x3={srOnly:{transform:function(t){return t===!0?m3:t==="focusable"?v3:{}}},layerStyle:{processResult:!0,transform:function(t,r,n){return Yu(r,"layerStyles."+t,n)}},textStyle:{processResult:!0,transform:function(t,r,n){return Yu(r,"textStyles."+t,n)}},apply:{processResult:!0,transform:function(t,r,n){return Yu(r,t,n)}}},pa={position:!0,pos:X.prop("position"),zIndex:X.prop("zIndex","zIndices"),inset:X.spaceT("inset"),insetX:X.spaceT(["left","right"]),insetInline:X.spaceT("insetInline"),insetY:X.spaceT(["top","bottom"]),insetBlock:X.spaceT("insetBlock"),top:X.spaceT("top"),insetBlockStart:X.spaceT("insetBlockStart"),bottom:X.spaceT("bottom"),insetBlockEnd:X.spaceT("insetBlockEnd"),left:X.spaceT("left"),insetInlineStart:X.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:X.spaceT("right"),insetInlineEnd:X.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(pa,{insetStart:pa.insetInlineStart,insetEnd:pa.insetInlineEnd});var b3={ring:{transform:mt.ring},ringColor:X.colors("--chakra-ring-color"),ringOffset:X.prop("--chakra-ring-offset-width"),ringOffsetColor:X.colors("--chakra-ring-offset-color"),ringInset:X.prop("--chakra-ring-inset")},kt={margin:X.spaceT("margin"),marginTop:X.spaceT("marginTop"),marginBlockStart:X.spaceT("marginBlockStart"),marginRight:X.spaceT("marginRight"),marginInlineEnd:X.spaceT("marginInlineEnd"),marginBottom:X.spaceT("marginBottom"),marginBlockEnd:X.spaceT("marginBlockEnd"),marginLeft:X.spaceT("marginLeft"),marginInlineStart:X.spaceT("marginInlineStart"),marginX:X.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:X.spaceT("marginInline"),marginY:X.spaceT(["marginTop","marginBottom"]),marginBlock:X.spaceT("marginBlock"),padding:X.space("padding"),paddingTop:X.space("paddingTop"),paddingBlockStart:X.space("paddingBlockStart"),paddingRight:X.space("paddingRight"),paddingBottom:X.space("paddingBottom"),paddingBlockEnd:X.space("paddingBlockEnd"),paddingLeft:X.space("paddingLeft"),paddingInlineStart:X.space("paddingInlineStart"),paddingInlineEnd:X.space("paddingInlineEnd"),paddingX:X.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:X.space("paddingInline"),paddingY:X.space(["paddingTop","paddingBottom"]),paddingBlock:X.space("paddingBlock")};Object.assign(kt,{m:kt.margin,mt:kt.marginTop,mr:kt.marginRight,me:kt.marginInlineEnd,marginEnd:kt.marginInlineEnd,mb:kt.marginBottom,ml:kt.marginLeft,ms:kt.marginInlineStart,marginStart:kt.marginInlineStart,mx:kt.marginX,my:kt.marginY,p:kt.padding,pt:kt.paddingTop,py:kt.paddingY,px:kt.paddingX,pb:kt.paddingBottom,pl:kt.paddingLeft,ps:kt.paddingInlineStart,paddingStart:kt.paddingInlineStart,pr:kt.paddingRight,pe:kt.paddingInlineEnd,paddingEnd:kt.paddingInlineEnd});var y3={textDecorationColor:X.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:X.shadows("textShadow")},w3={clipPath:!0,transform:X.propT("transform",mt.transform),transformOrigin:!0,translateX:X.spaceT("--chakra-translate-x"),translateY:X.spaceT("--chakra-translate-y"),skewX:X.degreeT("--chakra-skew-x"),skewY:X.degreeT("--chakra-skew-y"),scaleX:X.prop("--chakra-scale-x"),scaleY:X.prop("--chakra-scale-y"),scale:X.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:X.degreeT("--chakra-rotate")},k3={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:X.prop("transitionDuration","transition.duration"),transitionProperty:X.prop("transitionProperty","transition.property"),transitionTimingFunction:X.prop("transitionTimingFunction","transition.easing")},S3={fontFamily:X.prop("fontFamily","fonts"),fontSize:X.prop("fontSize","fontSizes",mt.px),fontWeight:X.prop("fontWeight","fontWeights"),lineHeight:X.prop("lineHeight","lineHeights"),letterSpacing:X.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"},isTruncated:{transform:function(t){if(t===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}},C3={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:X.spaceT("scrollMargin"),scrollMarginTop:X.spaceT("scrollMarginTop"),scrollMarginBottom:X.spaceT("scrollMarginBottom"),scrollMarginLeft:X.spaceT("scrollMarginLeft"),scrollMarginRight:X.spaceT("scrollMarginRight"),scrollMarginX:X.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:X.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:X.spaceT("scrollPadding"),scrollPaddingTop:X.spaceT("scrollPaddingTop"),scrollPaddingBottom:X.spaceT("scrollPaddingBottom"),scrollPaddingLeft:X.spaceT("scrollPaddingLeft"),scrollPaddingRight:X.spaceT("scrollPaddingRight"),scrollPaddingX:X.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:X.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function gg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E3(e,t){if(e){if(typeof e=="string")return gg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gg(e,t)}}function _3(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=E3(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
172
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ht={hover:function(t,r){return t+":hover "+r+", "+t+"[data-hover] "+r},focus:function(t,r){return t+":focus "+r+", "+t+"[data-focus] "+r},focusVisible:function(t,r){return t+":focus-visible "+r},focusWithin:function(t,r){return t+":focus-within "+r},active:function(t,r){return t+":active "+r+", "+t+"[data-active] "+r},disabled:function(t,r){return t+":disabled "+r+", "+t+"[data-disabled] "+r},invalid:function(t,r){return t+":invalid "+r+", "+t+"[data-invalid] "+r},checked:function(t,r){return t+":checked "+r+", "+t+"[data-checked] "+r},placeholderShown:function(t,r){return t+":placeholder-shown "+r}},kn=function(t){return Ey(function(r){return t(r,"&")},"[role=group]","[data-group]",".group")},en=function(t){return Ey(function(r){return t(r,"~ &")},"[data-peer]",".peer")},Ey=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n.map(t).join(", ")},Eh={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:kn(Ht.hover),_peerHover:en(Ht.hover),_groupFocus:kn(Ht.focus),_peerFocus:en(Ht.focus),_groupFocusVisible:kn(Ht.focusVisible),_peerFocusVisible:en(Ht.focusVisible),_groupActive:kn(Ht.active),_peerActive:en(Ht.active),_groupDisabled:kn(Ht.disabled),_peerDisabled:en(Ht.disabled),_groupInvalid:kn(Ht.invalid),_peerInvalid:en(Ht.invalid),_groupChecked:kn(Ht.checked),_peerChecked:en(Ht.checked),_groupFocusWithin:kn(Ht.focusWithin),_peerFocusWithin:en(Ht.focusWithin),_peerPlaceholderShown:en(Ht.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},I3=fy(Eh),_h=Yn({},ms,ut,h3,qs,Er,p3,b3,f3,Cy,x3,pa,jc,kt,C3,S3,y3,w3,g3,k3);Object.assign({},kt,Er,qs,Cy,pa);var A3=[].concat(fy(_h),I3),T3=Us({},_h,Eh),P3=function(t){return t in T3},N3=function(t){return function(r){if(!r.__breakpoints)return t;var n=r.__breakpoints,i=n.isResponsive,a=n.toArrayValue,o=n.media,s={};for(var u in t){var c=an(t[u],r);if(c!=null){if(c=Pi(c)&&i(c)?a(c):c,!Array.isArray(c)){s[u]=c;continue}for(var d=c.slice(0,o.length).length,h=0;h<d;h+=1){var f=o==null?void 0:o[h];if(!f){s[u]=c[h];continue}s[f]=s[f]||{},c[h]!=null&&(s[f][u]=c[h])}}}return s}},O3=function(t,r){return t.startsWith("--")&&kh(r)&&!cy(r)},R3=function(t,r){var n,i;if(r==null)return r;var a=function(h){var f,g;return(f=t.__cssMap)==null||(g=f[h])==null?void 0:g.varRef},o=function(h){var f;return(f=a(h))!=null?f:h},s=r.split(",").map(function(d){return d.trim()}),u=s[0],c=s[1];return r=(n=(i=a(u))!=null?i:o(c))!=null?n:o(r),r};function L3(e){var t=e.configs,r=t===void 0?{}:t,n=e.pseudos,i=n===void 0?{}:n,a=e.theme,o=function s(u,c){c===void 0&&(c=!1);var d=an(u,a),h=N3(d)(a),f={};for(var g in h){var x,v,b,y,k,C=h[g],I=an(C,a);g in i&&(g=i[g]),O3(g,I)&&(I=R3(a,I));var w=r[g];if(w===!0&&(w={property:g}),Pi(I)){var m;f[g]=(m=f[g])!=null?m:{},f[g]=Yn({},f[g],s(I,!0));continue}var T=(x=(v=w)==null||v.transform==null?void 0:v.transform(I,a,d))!=null?x:I;T=(b=w)!=null&&b.processResult?s(T,!0):T;var P=an((y=w)==null?void 0:y.property,a);if(!c&&(k=w)!=null&&k.static){var V=an(w.static,a);f=Yn({},f,V)}if(P&&Array.isArray(P)){for(var O=_3(P),B;!(B=O()).done;){var F=B.value;f[F]=T}continue}if(P){P==="&"&&Pi(T)?f=Yn({},f,T):f[P]=T;continue}if(Pi(T)){f=Yn({},f,T);continue}f[g]=T}return f};return o}var D3=function(t){return function(r){var n=L3({theme:r,pseudos:Eh,configs:_h});return n(t)}};function _y(e){return Pi(e)&&e.reference?e.reference:String(e)}var El=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n.map(_y).join(" "+t+" ").replace(/calc/g,"")},mg=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return"calc("+El.apply(void 0,["+"].concat(r))+")"},vg=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return"calc("+El.apply(void 0,["-"].concat(r))+")"},Fc=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return"calc("+El.apply(void 0,["*"].concat(r))+")"},xg=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return"calc("+El.apply(void 0,["/"].concat(r))+")"},bg=function(t){var r=_y(t);return r!=null&&!Number.isNaN(parseFloat(r))?String(r).startsWith("-")?String(r).slice(1):"-"+r:Fc(r,-1)},ia=Object.assign(function(e){return{add:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return ia(mg.apply(void 0,[e].concat(n)))},subtract:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return ia(vg.apply(void 0,[e].concat(n)))},multiply:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return ia(Fc.apply(void 0,[e].concat(n)))},divide:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return ia(xg.apply(void 0,[e].concat(n)))},negate:function(){return ia(bg(e))},toString:function(){return e.toString()}}},{add:mg,subtract:vg,multiply:Fc,divide:xg,negate:bg}),Qu,yg;function V3(){if(yg)return Qu;yg=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(a,o){if(a===o)return!0;if(a&&o&&typeof a=="object"&&typeof o=="object"){if(a.constructor!==o.constructor)return!1;var s,u,c;if(Array.isArray(a)){if(s=a.length,s!=o.length)return!1;for(u=s;u--!==0;)if(!i(a[u],o[u]))return!1;return!0}var d;if(t&&a instanceof Map&&o instanceof Map){if(a.size!==o.size)return!1;for(d=a.entries();!(u=d.next()).done;)if(!o.has(u.value[0]))return!1;for(d=a.entries();!(u=d.next()).done;)if(!i(u.value[1],o.get(u.value[0])))return!1;return!0}if(r&&a instanceof Set&&o instanceof Set){if(a.size!==o.size)return!1;for(d=a.entries();!(u=d.next()).done;)if(!o.has(u.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(o)){if(s=a.length,s!=o.length)return!1;for(u=s;u--!==0;)if(a[u]!==o[u])return!1;return!0}if(a.constructor===RegExp)return a.source===o.source&&a.flags===o.flags;if(a.valueOf!==Object.prototype.valueOf)return a.valueOf()===o.valueOf();if(a.toString!==Object.prototype.toString)return a.toString()===o.toString();if(c=Object.keys(a),s=c.length,s!==Object.keys(o).length)return!1;for(u=s;u--!==0;)if(!Object.prototype.hasOwnProperty.call(o,c[u]))return!1;if(e&&a instanceof Element)return!1;for(u=s;u--!==0;)if(!((c[u]==="_owner"||c[u]==="__v"||c[u]==="__o")&&a.$$typeof)&&!i(a[c[u]],o[c[u]]))return!1;return!0}return a!==a&&o!==o}return Qu=function(o,s){try{return i(o,s)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}},Qu}var M3=V3();const j3=ml(M3);function Bc(){return Bc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bc.apply(this,arguments)}function F3(){var e=z.useContext(f1.ThemeContext);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var Iy=Ch({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "}),Ay=Iy[0],Ih=Iy[1];function _l(e){return Sh(e,["styleConfig","size","variant","colorScheme"])}function B3(){var e=GL(),t=F3();return Bc({},e,{theme:t})}function Ah(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var z3=new Set([].concat(A3,["textStyle","layerStyle","apply","isTruncated","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),H3=new Set(["htmlWidth","htmlHeight","htmlSize"]),W3=function(t){return H3.has(t)||!z3.has(t)},U3=["theme","css","__css","sx"],$3=["baseStyle"],q3=function(t){var r=t.baseStyle;return function(n){n.theme;var i=n.css,a=n.__css,o=n.sx,s=Ah(n,U3),u=hy(s,function(f,g){return P3(g)}),c=an(r,n),d=Object.assign({},a,c,py(u),o),h=D3(d)(n.theme);return i?[h,i]:h}};function Zu(e,t){var r=t??{},n=r.baseStyle,i=Ah(r,$3);i.shouldForwardProp||(i.shouldForwardProp=W3);var a=q3({baseStyle:n});return g1(e,i)(a)}function jn(e){return z.forwardRef(e)}var K3=["styleConfig"];function Ty(e,t,r){var n;t===void 0&&(t={}),r===void 0&&(r={});var i=t,a=i.styleConfig,o=Ah(i,K3),s=B3(),u=s.theme,c=s.colorMode,d=dy(u,"components."+e),h=a||d,f=Yn({theme:u,colorMode:c},(n=h==null?void 0:h.defaultProps)!=null?n:{},py(Sh(o,["children"]))),g=L.useRef({});if(h){var x,v,b,y,k,C,I=an((x=h.baseStyle)!=null?x:{},f),w=an((v=(b=h.variants)==null?void 0:b[f.variant])!=null?v:{},f),m=an((y=(k=h.sizes)==null?void 0:k[f.size])!=null?y:{},f),T=Yn({},I,m,w);(C=r)!=null&&C.isMultiPart&&h.parts&&h.parts.forEach(function(V){var O;T[V]=(O=T[V])!=null?O:{}});var P=j3(g.current,T);P||(g.current=T)}return g.current}function Th(e,t){return Ty(e,t,{isMultiPart:!0})}function G3(){var e=new Map;return new Proxy(Zu,{apply:function(r,n,i){return Zu.apply(void 0,i)},get:function(r,n){return e.has(n)||e.set(n,Zu(n)),e.get(n)}})}var yr=G3();function fa(){return fa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fa.apply(this,arguments)}function J3(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var X3=["as","viewBox","color","focusable","children","className","__css"],wg={path:z.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},z.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),z.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),z.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},Py=jn(function(e,t){var r=e.as,n=e.viewBox,i=e.color,a=i===void 0?"currentColor":i,o=e.focusable,s=o===void 0?!1:o,u=e.children,c=e.className,d=e.__css,h=J3(e,X3),f=Mn("chakra-icon",c),g=fa({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a},d),x={ref:t,focusable:s,className:f,__css:g},v=n??wg.viewBox;if(r&&typeof r!="string")return z.createElement(yr.svg,fa({as:r},x,h));var b=u??wg.path;return z.createElement(yr.svg,fa({verticalAlign:"middle",viewBox:v},x,h),b)});Nr&&(Py.displayName="Icon");var Y3=Py,tn=function(e){return{isEnabled:function(t){return e.some(function(r){return!!t[r]})}}},Ph={measureLayout:tn(["layout","layoutId","drag","_layoutResetTransform"]),animation:tn(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:tn(["exit"]),drag:tn(["drag","dragControls"]),focus:tn(["whileFocus"]),hover:tn(["whileHover","onHoverStart","onHoverEnd"]),tap:tn(["whileTap","onTap","onTapStart","onTapCancel"]),pan:tn(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:tn(["layout","layoutId"])};function Q3(e){for(var t in e){var r=e[t];r!==null&&(Ph[t].Component=r)}}var Z3={},Il=function(){},dr=function(){};Z3.NODE_ENV!=="production"&&(Il=function(e,t){!e&&typeof console<"u"&&console.warn(t)},dr=function(e,t){if(!e)throw new Error(t)});var Ny=L.createContext({strict:!1}),e5={},Oy=Object.keys(Ph),t5=Oy.length;function r5(e,t,r){var n=[],i=L.useContext(Ny);if(!t)return null;e5.NODE_ENV!=="production"&&r&&i.strict&&dr(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var a=0;a<t5;a++){var o=Oy[a],s=Ph[o],u=s.isEnabled,c=s.Component;u(e)&&c&&n.push(z.createElement(c,me({key:o},e,{visualElement:t})))}return n}var Al=L.createContext({transformPagePoint:function(e){return e},isStatic:!1}),Tl=L.createContext({});function n5(){return L.useContext(Tl).visualElement}var Ga=L.createContext(null);function Na(e){var t=L.useRef(null);return t.current===null&&(t.current=e()),t.current}function Ry(){var e=L.useContext(Ga);if(e===null)return[!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,i=s5();L.useEffect(function(){return n(i)},[]);var a=function(){return r==null?void 0:r(i)};return!t&&r?[!1,a]:[!0]}function i5(e){return e===null?!0:e.isPresent}var a5=0,o5=function(){return a5++},s5=function(){return Na(o5)},l5=L.createContext(null),Ja=typeof window<"u",kg=Ja?L.useLayoutEffect:L.useEffect;function u5(e){var t=e.layoutId,r=L.useContext(l5);return r&&t!==void 0?r+"-"+t:t}function c5(e,t,r,n){var i=L.useContext(Al),a=L.useContext(Ny),o=n5(),s=L.useContext(Ga),u=u5(r),c=L.useRef(void 0);n||(n=a.renderer),!c.current&&n&&(c.current=n(e,{visualState:t,parent:o,props:me(me({},r),{layoutId:u}),presenceId:s==null?void 0:s.id,blockInitialAnimation:(s==null?void 0:s.initial)===!1}));var d=c.current;return kg(function(){d&&(d.setProps(me(me(me({},i),r),{layoutId:u})),d.isPresent=i5(s),d.isPresenceRoot=!o||o.presenceId!==(s==null?void 0:s.id),d.syncRender())}),L.useEffect(function(){var h;d&&((h=d.animationState)===null||h===void 0||h.animateChanges())}),kg(function(){return function(){return d==null?void 0:d.notifyUnmount()}},[]),d}function zc(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function d5(e,t,r){return L.useCallback(function(n){var i;n&&((i=e.mount)===null||i===void 0||i.call(e,n)),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):zc(r)&&(r.current=n))},[t])}function Ly(e){return Array.isArray(e)}function Mr(e){return typeof e=="string"||Ly(e)}function h5(e){var t={};return e.forEachValue(function(r,n){return t[n]=r.get()}),t}function p5(e){var t={};return e.forEachValue(function(r,n){return t[n]=r.getVelocity()}),t}function Dy(e,t,r,n,i){var a;return n===void 0&&(n={}),i===void 0&&(i={}),typeof t=="string"&&(t=(a=e.variants)===null||a===void 0?void 0:a[t]),typeof t=="function"?t(r??e.custom,n,i):t}function Pl(e,t,r){var n=e.getProps();return Dy(n,t,r??n.custom,h5(e),p5(e))}function Nl(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||Mr(e.initial)||Mr(e.animate)||Mr(e.whileHover)||Mr(e.whileDrag)||Mr(e.whileTap)||Mr(e.whileFocus)||Mr(e.exit)}function Vy(e){return!!(Nl(e)||e.variants)}function f5(e,t){if(Nl(e)){var r=e.initial,n=e.animate;return{initial:r===!1||Mr(r)?r:void 0,animate:Mr(n)?n:void 0}}return e.inherit!==!1?t:{}}function g5(e,t){var r=f5(e,L.useContext(Tl)),n=r.initial,i=r.animate;return L.useMemo(function(){return{initial:n,animate:i}},t?[Sg(n),Sg(i)]:[])}function Sg(e){return Array.isArray(e)?e.join(" "):e}function m5(e){var t=e.preloadedFeatures,r=e.createVisualElement,n=e.useRender,i=e.useVisualState,a=e.Component;t&&Q3(t);function o(s,u){var c=L.useContext(Al).isStatic,d=null,h=g5(s,c),f=i(s,c);return!c&&Ja&&(h.visualElement=c5(a,f,s,r),d=r5(s,h.visualElement,t)),z.createElement(z.Fragment,null,z.createElement(Tl.Provider,{value:h},n(a,s,d5(f,h.visualElement,u),f,c)),d)}return L.forwardRef(o)}function v5(e){function t(n,i){return i===void 0&&(i={}),m5(e(n,i))}var r=new Map;return new Proxy(t,{get:function(n,i){return r.has(i)||r.set(i,t(i)),r.get(i)}})}var x5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Nh(e){return typeof e!="string"||e.includes("-")?!1:!!(x5.indexOf(e)>-1||/[A-Z]/.test(e))}var ga={};function b5(e){for(var t in e)ga[t]=e[t]}var y5=["","X","Y","Z"],w5=["translate","scale","rotate","skew"],Oa=["transformPerspective","x","y","z"];w5.forEach(function(e){return y5.forEach(function(t){return Oa.push(e+t)})});function k5(e,t){return Oa.indexOf(e)-Oa.indexOf(t)}var S5=new Set(Oa);function Ol(e){return S5.has(e)}var C5=new Set(["originX","originY","originZ"]);function My(e){return C5.has(e)}function jy(e,t){var r=t.layout,n=t.layoutId;return Ol(e)||My(e)||(r||n!==void 0)&&(!!ga[e]||e==="opacity")}var Pn=function(e){return e!==null&&typeof e=="object"&&e.getVelocity},E5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function _5(e,t,r,n){var i=e.transform,a=e.transformKeys,o=t.enableHardwareAcceleration,s=o===void 0?!0:o,u=t.allowTransformNone,c=u===void 0?!0:u,d="";a.sort(k5);for(var h=!1,f=a.length,g=0;g<f;g++){var x=a[g];d+=(E5[x]||x)+"("+i[x]+") ",x==="z"&&(h=!0)}return!h&&s?d+="translateZ(0)":d=d.trim(),n?d=n(i,r?"":d):c&&r&&(d="none"),d}function I5(e){var t=e.originX,r=t===void 0?"50%":t,n=e.originY,i=n===void 0?"50%":n,a=e.originZ,o=a===void 0?0:a;return r+" "+i+" "+o}function Fy(e){return e.startsWith("--")}var A5=function(e,t){return t&&typeof e=="number"?t.transform(e):e},By=function(e,t){return function(r){return Math.max(Math.min(r,t),e)}},ma=function(e){return e%1?Number(e.toFixed(5)):e},Ra=/(-)?([\d]*\.?[\d])+/g,Hc=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,T5=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Xa(e){return typeof e=="string"}var oi={test:function(e){return typeof e=="number"},parse:parseFloat,transform:function(e){return e}},va=me(me({},oi),{transform:By(0,1)}),Go=me(me({},oi),{default:1}),Ya=function(e){return{test:function(t){return Xa(t)&&t.endsWith(e)&&t.split(" ").length===1},parse:parseFloat,transform:function(t){return""+t+e}}},Cn=Ya("deg"),Ni=Ya("%"),$e=Ya("px"),P5=Ya("vh"),N5=Ya("vw"),Cg=me(me({},Ni),{parse:function(e){return Ni.parse(e)/100},transform:function(e){return Ni.transform(e*100)}}),Oh=function(e,t){return function(r){return!!(Xa(r)&&T5.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t))}},zy=function(e,t,r){return function(n){var i;if(!Xa(n))return n;var a=n.match(Ra),o=a[0],s=a[1],u=a[2],c=a[3];return i={},i[e]=parseFloat(o),i[t]=parseFloat(s),i[r]=parseFloat(u),i.alpha=c!==void 0?parseFloat(c):1,i}},_i={test:Oh("hsl","hue"),parse:zy("hue","saturation","lightness"),transform:function(e){var t=e.hue,r=e.saturation,n=e.lightness,i=e.alpha,a=i===void 0?1:i;return"hsla("+Math.round(t)+", "+Ni.transform(ma(r))+", "+Ni.transform(ma(n))+", "+ma(va.transform(a))+")"}},O5=By(0,255),ec=me(me({},oi),{transform:function(e){return Math.round(O5(e))}}),Ii={test:Oh("rgb","red"),parse:zy("red","green","blue"),transform:function(e){var t=e.red,r=e.green,n=e.blue,i=e.alpha,a=i===void 0?1:i;return"rgba("+ec.transform(t)+", "+ec.transform(r)+", "+ec.transform(n)+", "+ma(va.transform(a))+")"}};function R5(e){var t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}var Wc={test:Oh("#"),parse:R5,transform:Ii.transform},Xt={test:function(e){return Ii.test(e)||Wc.test(e)||_i.test(e)},parse:function(e){return Ii.test(e)?Ii.parse(e):_i.test(e)?_i.parse(e):Wc.parse(e)},transform:function(e){return Xa(e)?e:e.hasOwnProperty("red")?Ii.transform(e):_i.transform(e)}},Hy="${c}",Wy="${n}";function L5(e){var t,r,n,i;return isNaN(e)&&Xa(e)&&((r=(t=e.match(Ra))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((i=(n=e.match(Hc))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function Uy(e){var t=[],r=0,n=e.match(Hc);n&&(r=n.length,e=e.replace(Hc,Hy),t.push.apply(t,n.map(Xt.parse)));var i=e.match(Ra);return i&&(e=e.replace(Ra,Wy),t.push.apply(t,i.map(oi.parse))),{values:t,numColors:r,tokenised:e}}function $y(e){return Uy(e).values}function qy(e){var t=Uy(e),r=t.values,n=t.numColors,i=t.tokenised,a=r.length;return function(o){for(var s=i,u=0;u<a;u++)s=s.replace(u<n?Hy:Wy,u<n?Xt.transform(o[u]):ma(o[u]));return s}}var D5=function(e){return typeof e=="number"?0:e};function V5(e){var t=$y(e),r=qy(e);return r(t.map(D5))}var un={test:L5,parse:$y,createTransformer:qy,getAnimatableNone:V5},M5=new Set(["brightness","contrast","saturate","opacity"]);function j5(e){var t=e.slice(0,-1).split("("),r=t[0],n=t[1];if(r==="drop-shadow")return e;var i=(n.match(Ra)||[])[0];if(!i)return e;var a=n.replace(i,""),o=M5.has(r)?1:0;return i!==n&&(o*=100),r+"("+o+a+")"}var F5=/([a-z-]*)\(.*?\)/g,Uc=me(me({},un),{getAnimatableNone:function(e){var t=e.match(F5);return t?t.map(j5).join(" "):e}}),Eg=me(me({},oi),{transform:Math.round}),Ky={borderWidth:$e,borderTopWidth:$e,borderRightWidth:$e,borderBottomWidth:$e,borderLeftWidth:$e,borderRadius:$e,radius:$e,borderTopLeftRadius:$e,borderTopRightRadius:$e,borderBottomRightRadius:$e,borderBottomLeftRadius:$e,width:$e,maxWidth:$e,height:$e,maxHeight:$e,size:$e,top:$e,right:$e,bottom:$e,left:$e,padding:$e,paddingTop:$e,paddingRight:$e,paddingBottom:$e,paddingLeft:$e,margin:$e,marginTop:$e,marginRight:$e,marginBottom:$e,marginLeft:$e,rotate:Cn,rotateX:Cn,rotateY:Cn,rotateZ:Cn,scale:Go,scaleX:Go,scaleY:Go,scaleZ:Go,skew:Cn,skewX:Cn,skewY:Cn,distance:$e,translateX:$e,translateY:$e,translateZ:$e,x:$e,y:$e,z:$e,perspective:$e,transformPerspective:$e,opacity:va,originX:Cg,originY:Cg,originZ:$e,zIndex:Eg,fillOpacity:va,strokeOpacity:va,numOctaves:Eg};function Rh(e,t,r,n,i,a,o,s){var u,c=e.style,d=e.vars,h=e.transform,f=e.transformKeys,g=e.transformOrigin;f.length=0;var x=!1,v=!1,b=!0;for(var y in t){var k=t[y];if(Fy(y)){d[y]=k;continue}var C=Ky[y],I=A5(k,C);if(Ol(y)){if(x=!0,h[y]=I,f.push(y),!b)continue;k!==((u=C.default)!==null&&u!==void 0?u:0)&&(b=!1)}else if(My(y))g[y]=I,v=!0;else if(r!=null&&r.isHydrated&&(n!=null&&n.isHydrated)&&ga[y]){var w=ga[y].process(k,n,r),m=ga[y].applyTo;if(m)for(var T=m.length,P=0;P<T;P++)c[m[P]]=w;else c[y]=w}else c[y]=I}n&&r&&o&&s?(c.transform=o(n.deltaFinal,n.treeScale,x?h:void 0),a&&(c.transform=a(h,c.transform)),c.transformOrigin=s(n)):(x&&(c.transform=_5(e,i,b,a)),v&&(c.transformOrigin=I5(g)))}var Lh=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function Gy(e,t,r){for(var n in t)!Pn(t[n])&&!jy(n,r)&&(e[n]=t[n])}function B5(e,t,r){var n=e.transformTemplate;return L.useMemo(function(){var i=Lh();Rh(i,t,void 0,void 0,{enableHardwareAcceleration:!r},n);var a=i.vars,o=i.style;return me(me({},a),o)},[t])}function z5(e,t,r){var n=e.style||{},i={};return Gy(i,n,e),Object.assign(i,B5(e,t,r)),e.transformValues&&(i=e.transformValues(i)),i}function H5(e,t,r){var n={},i=z5(e,t,r);return e.drag&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":"pan-"+(e.drag==="x"?"y":"x")),n.style=i,n}function W5(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var U5=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,$5=W5(function(e){return U5.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const q5=Object.freeze(Object.defineProperty({__proto__:null,default:$5},Symbol.toStringTag,{value:"Module"})),K5=hI(q5);var G5=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function Ks(e){return G5.has(e)}var Jy=function(e){return!Ks(e)};try{var J5=K5.default;Jy=function(e){return e.startsWith("on")?!Ks(e):J5(e)}}catch{}function X5(e,t,r){var n={};for(var i in e)(Jy(i)||r===!0&&Ks(i)||!t&&!Ks(i))&&(n[i]=e[i]);return n}function _g(e,t,r){return typeof e=="string"?e:$e.transform(t+r*e)}function Y5(e,t,r){var n=_g(t,e.x,e.width),i=_g(r,e.y,e.height);return n+" "+i}var tc=function(e,t){return $e.transform(e*t)},Q5={offset:"strokeDashoffset",array:"strokeDasharray"};function Z5(e,t,r,n,i,a){n===void 0&&(n=1),i===void 0&&(i=0);var o=Q5;e[o.offset]=tc(-i,t);var s=tc(r,t),u=tc(n,t);e[o.array]=s+" "+u}function Dh(e,t,r,n,i,a,o,s){var u=t.attrX,c=t.attrY,d=t.originX,h=t.originY,f=t.pathLength,g=t.pathSpacing,x=g===void 0?1:g,v=t.pathOffset,b=v===void 0?0:v,y=er(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);Rh(e,y,r,n,i,a,o,s),e.attrs=e.style,e.style={};var k=e.attrs,C=e.style,I=e.dimensions,w=e.totalPathLength;k.transform&&(I&&(C.transform=k.transform),delete k.transform),I&&(d!==void 0||h!==void 0||C.transform)&&(C.transformOrigin=Y5(I,d!==void 0?d:.5,h!==void 0?h:.5)),u!==void 0&&(k.x=u),c!==void 0&&(k.y=c),w!==void 0&&f!==void 0&&Z5(k,w,f,x,b)}var Xy=function(){return me(me({},Lh()),{attrs:{}})};function eD(e,t){var r=L.useMemo(function(){var i=Xy();return Dh(i,t,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),me(me({},i.attrs),{style:me({},i.style)})},[t]);if(e.style){var n={};Gy(n,e.style,e),r.style=me(me({},n),r.style)}return r}function tD(e){e===void 0&&(e=!1);var t=function(r,n,i,a,o){var s=a.latestValues,u=Nh(r)?eD:H5,c=u(n,s,o),d=X5(n,typeof r=="string",e),h=me(me(me({},d),c),{ref:i});return L.createElement(r,h)};return t}var rD=/([a-z])([A-Z])/g,nD="$1-$2",Yy=function(e){return e.replace(rD,nD).toLowerCase()};function Qy(e,t){var r=t.style,n=t.vars;Object.assign(e.style,r);for(var i in n)e.style.setProperty(i,n[i])}var Zy=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function ew(e,t){Qy(e,t);for(var r in t.attrs)e.setAttribute(Zy.has(r)?r:Yy(r),t.attrs[r])}function Vh(e){var t=e.style,r={};for(var n in t)(Pn(t[n])||jy(n,e))&&(r[n]=t[n]);return r}function tw(e){var t=Vh(e);for(var r in e)if(Pn(e[r])){var n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}function Mh(e){return typeof e=="object"&&typeof e.start=="function"}var La=function(e){return Array.isArray(e)},iD=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},aD=function(e){return La(e)?e[e.length-1]||0:e};function oD(e){var t=Pn(e)?e.get():e;return iD(t)?t.toValue():t}function Ig(e,t,r,n){var i=e.scrapeMotionValuesFromProps,a=e.createRenderState,o=e.onMount,s={latestValues:sD(t,r,n,i),renderState:a()};return o&&(s.mount=function(u){return o(t,u,s)}),s}var rw=function(e){return function(t,r){var n=L.useContext(Tl),i=L.useContext(Ga);return r?Ig(e,t,n,i):Na(function(){return Ig(e,t,n,i)})}};function sD(e,t,r,n){var i={},a=(r==null?void 0:r.initial)===!1,o=n(e);for(var s in o)i[s]=oD(o[s]);var u=e.initial,c=e.animate,d=Nl(e),h=Vy(e);t&&h&&!d&&e.inherit!==!1&&(u??(u=t.initial),c??(c=t.animate));var f=a||u===!1?c:u;if(f&&typeof f!="boolean"&&!Mh(f)){var g=Array.isArray(f)?f:[f];g.forEach(function(x){var v=Dy(e,x);if(v){var b=v.transitionEnd;v.transition;var y=er(v,["transitionEnd","transition"]);for(var k in y)i[k]=y[k];for(var k in b)i[k]=b[k]}})}return i}var lD={useVisualState:rw({scrapeMotionValuesFromProps:tw,createRenderState:Xy,onMount:function(e,t,r){var n=r.renderState,i=r.latestValues;try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}uD(t)&&(n.totalPathLength=t.getTotalLength()),Dh(n,i,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),ew(t,n)}})};function uD(e){return e.tagName==="path"}var cD={useVisualState:rw({scrapeMotionValuesFromProps:Vh,createRenderState:Lh})};function dD(e,t,r,n){var i=t.forwardMotionProps,a=i===void 0?!1:i,o=Nh(e)?lD:cD;return me(me({},o),{preloadedFeatures:r,useRender:tD(a),createVisualElement:n,Component:e})}var Tt;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.Exit="exit"})(Tt||(Tt={}));function jh(e,t,r,n){return e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r,n)}}function $c(e,t,r,n){L.useEffect(function(){var i=e.current;if(r&&i)return jh(i,t,r,n)},[e,t,r,n])}function hD(e){var t=e.whileFocus,r=e.visualElement,n=function(){var a;(a=r.animationState)===null||a===void 0||a.setActive(Tt.Focus,!0)},i=function(){var a;(a=r.animationState)===null||a===void 0||a.setActive(Tt.Focus,!1)};$c(r,"focus",t?n:void 0),$c(r,"blur",t?i:void 0)}function nw(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function iw(e){var t=!!e.touches;return t}function pD(e){return function(t){var r=t instanceof MouseEvent,n=!r||r&&t.button===0;n&&e(t)}}var fD={pageX:0,pageY:0};function gD(e,t){t===void 0&&(t="page");var r=e.touches[0]||e.changedTouches[0],n=r||fD;return{x:n[t+"X"],y:n[t+"Y"]}}function mD(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Fh(e,t){return t===void 0&&(t="page"),{point:iw(e)?gD(e,t):mD(e,t)}}function vD(e){return Fh(e,"client")}var aw=function(e,t){t===void 0&&(t=!1);var r=function(n){return e(n,Fh(n))};return t?pD(r):r},xD=function(){return Ja&&window.onpointerdown===null},bD=function(){return Ja&&window.ontouchstart===null},yD=function(){return Ja&&window.onmousedown===null},wD={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},kD={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function ow(e){return xD()?e:bD()?kD[e]:yD()?wD[e]:e}function Oi(e,t,r,n){return jh(e,ow(t),aw(r,t==="pointerdown"),n)}function Gs(e,t,r,n){return $c(e,ow(t),r&&aw(r,t==="pointerdown"),n)}function sw(e){var t=null;return function(){var r=function(){t=null};return t===null?(t=e,r):!1}}var Ag=sw("dragHorizontal"),Tg=sw("dragVertical");function lw(e){var t=!1;if(e==="y")t=Tg();else if(e==="x")t=Ag();else{var r=Ag(),n=Tg();r&&n?t=function(){r(),n()}:(r&&r(),n&&n())}return t}function uw(){var e=lw(!0);return e?(e(),!1):!0}function Pg(e,t,r){return function(n,i){var a;!nw(n)||uw()||(r==null||r(n,i),(a=e.animationState)===null||a===void 0||a.setActive(Tt.Hover,t))}}function SD(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,i=e.visualElement;Gs(i,"pointerenter",t||n?Pg(i,!0,t):void 0),Gs(i,"pointerleave",r||n?Pg(i,!1,r):void 0)}var cw=function(e,t){return t?e===t?!0:cw(e,t.parentElement):!1};function Bh(e){return L.useEffect(function(){return function(){return e()}},[])}var Js=function(e,t,r){return Math.min(Math.max(r,e),t)},rc=.001,CD=.01,Ng=10,ED=.05,_D=1;function ID(e){var t=e.duration,r=t===void 0?800:t,n=e.bounce,i=n===void 0?.25:n,a=e.velocity,o=a===void 0?0:a,s=e.mass,u=s===void 0?1:s,c,d;Il(r<=Ng*1e3,"Spring duration must be 10 seconds or less");var h=1-i;h=Js(ED,_D,h),r=Js(CD,Ng,r/1e3),h<1?(c=function(v){var b=v*h,y=b*r,k=b-o,C=qc(v,h),I=Math.exp(-y);return rc-k/C*I},d=function(v){var b=v*h,y=b*r,k=y*o+o,C=Math.pow(h,2)*Math.pow(v,2)*r,I=Math.exp(-y),w=qc(Math.pow(v,2),h),m=-c(v)+rc>0?-1:1;return m*((k-C)*I)/w}):(c=function(v){var b=Math.exp(-v*r),y=(v-o)*r+1;return-rc+b*y},d=function(v){var b=Math.exp(-v*r),y=(o-v)*(r*r);return b*y});var f=5/r,g=TD(c,d,f);if(r=r*1e3,isNaN(g))return{stiffness:100,damping:10,duration:r};var x=Math.pow(g,2)*u;return{stiffness:x,damping:h*2*Math.sqrt(u*x),duration:r}}var AD=12;function TD(e,t,r){for(var n=r,i=1;i<AD;i++)n=n-e(n)/t(n);return n}function qc(e,t){return e*Math.sqrt(1-t*t)}var PD=["duration","bounce"],ND=["stiffness","damping","mass"];function Og(e,t){return t.some(function(r){return e[r]!==void 0})}function OD(e){var t=me({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Og(e,ND)&&Og(e,PD)){var r=ID(e);t=me(me(me({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function zh(e){var t=e.from,r=t===void 0?0:t,n=e.to,i=n===void 0?1:n,a=e.restSpeed,o=a===void 0?2:a,s=e.restDelta,u=er(e,["from","to","restSpeed","restDelta"]),c={done:!1,value:r},d=OD(u),h=d.stiffness,f=d.damping,g=d.mass,x=d.velocity,v=d.duration,b=d.isResolvedFromDuration,y=Rg,k=Rg;function C(){var I=x?-(x/1e3):0,w=i-r,m=f/(2*Math.sqrt(h*g)),T=Math.sqrt(h/g)/1e3;if(s??(s=Math.abs(i-r)<=1?.01:.4),m<1){var P=qc(T,m);y=function(O){var B=Math.exp(-m*T*O);return i-B*((I+m*T*w)/P*Math.sin(P*O)+w*Math.cos(P*O))},k=function(O){var B=Math.exp(-m*T*O);return m*T*B*(Math.sin(P*O)*(I+m*T*w)/P+w*Math.cos(P*O))-B*(Math.cos(P*O)*(I+m*T*w)-P*w*Math.sin(P*O))}}else if(m===1)y=function(O){return i-Math.exp(-T*O)*(w+(I+T*w)*O)};else{var V=T*Math.sqrt(m*m-1);y=function(O){var B=Math.exp(-m*T*O),F=Math.min(V*O,300);return i-B*((I+m*T*w)*Math.sinh(F)+V*w*Math.cosh(F))/V}}}return C(),{next:function(I){var w=y(I);if(b)c.done=I>=v;else{var m=k(I)*1e3,T=Math.abs(m)<=o,P=Math.abs(i-w)<=s;c.done=T&&P}return c.value=c.done?i:w,c},flipTarget:function(){var I;x=-x,I=[i,r],r=I[0],i=I[1],C()}}}zh.needsInterpolation=function(e,t){return typeof e=="string"||typeof t=="string"};var Rg=function(e){return 0},Da=function(e,t,r){var n=t-e;return n===0?1:(r-e)/n},pr=function(e,t,r){return-r*e+r*t+e},RD=function(e,t,r){var n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n))},LD=[Wc,Ii,_i],Lg=function(e){return LD.find(function(t){return t.test(e)})},Dg=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},dw=function(e,t){var r=Lg(e),n=Lg(t);dr(!!r,Dg(e)),dr(!!n,Dg(t)),dr(r.transform===n.transform,"Both colors must be hex/RGBA, OR both must be HSLA.");var i=r.parse(e),a=n.parse(t),o=me({},i),s=r===_i?pr:RD;return function(u){for(var c in o)c!=="alpha"&&(o[c]=s(i[c],a[c],u));return o.alpha=pr(i.alpha,a.alpha,u),r.transform(o)}},Kc=function(e){return typeof e=="number"},DD=function(e,t){return function(r){return t(e(r))}},Qa=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(DD)};function hw(e,t){return Kc(e)?function(r){return pr(e,t,r)}:Xt.test(e)?dw(e,t):fw(e,t)}var pw=function(e,t){var r=Mt([],e),n=r.length,i=e.map(function(a,o){return hw(a,t[o])});return function(a){for(var o=0;o<n;o++)r[o]=i[o](a);return r}},VD=function(e,t){var r=me(me({},e),t),n={};for(var i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=hw(e[i],t[i]));return function(a){for(var o in n)r[o]=n[o](a);return r}};function Vg(e){for(var t=un.parse(e),r=t.length,n=0,i=0,a=0,o=0;o<r;o++)n||typeof t[o]=="number"?n++:t[o].hue!==void 0?a++:i++;return{parsed:t,numNumbers:n,numRGB:i,numHSL:a}}var fw=function(e,t){var r=un.createTransformer(t),n=Vg(e),i=Vg(t);return dr(n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers,"Complex values '"+e+"' and '"+t+"' too different to mix. Ensure all colors are of the same type."),Qa(pw(n.parsed,i.parsed),r)},MD=function(e,t){return function(r){return pr(e,t,r)}};function jD(e){if(typeof e=="number")return MD;if(typeof e=="string")return Xt.test(e)?dw:fw;if(Array.isArray(e))return pw;if(typeof e=="object")return VD}function FD(e,t,r){for(var n=[],i=r||jD(e[0]),a=e.length-1,o=0;o<a;o++){var s=i(e[o],e[o+1]);if(t){var u=Array.isArray(t)?t[o]:t;s=Qa(u,s)}n.push(s)}return n}function BD(e,t){var r=e[0],n=e[1],i=t[0];return function(a){return i(Da(r,n,a))}}function zD(e,t){var r=e.length,n=r-1;return function(i){var a=0,o=!1;if(i<=e[0]?o=!0:i>=e[n]&&(a=n-1,o=!0),!o){for(var s=1;s<r&&!(e[s]>i||s===n);s++);a=s-1}var u=Da(e[a],e[a+1],i);return t[a](u)}}function gw(e,t,r){var n=r===void 0?{}:r,i=n.clamp,a=i===void 0?!0:i,o=n.ease,s=n.mixer,u=e.length;dr(u===t.length,"Both input and output ranges must be the same length"),dr(!o||!Array.isArray(o)||o.length===u-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[u-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var c=FD(t,o,s),d=u===2?BD(e,c):zD(e,c);return a?function(h){return d(Js(e[0],e[u-1],h))}:d}var Rl=function(e){return function(t){return 1-e(1-t)}},Hh=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},HD=function(e){return function(t){return Math.pow(t,e)}},mw=function(e){return function(t){return t*t*((e+1)*t-e)}},WD=function(e){var t=mw(e);return function(r){return(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))}},vw=1.525,UD=4/11,$D=8/11,qD=9/10,xw=function(e){return e},Wh=HD(2),KD=Rl(Wh),bw=Hh(Wh),yw=function(e){return 1-Math.sin(Math.acos(e))},ww=Rl(yw),GD=Hh(ww),Uh=mw(vw),JD=Rl(Uh),XD=Hh(Uh),YD=WD(vw),QD=4356/361,ZD=35442/1805,eV=16061/1805,Xs=function(e){if(e===1||e===0)return e;var t=e*e;return e<UD?7.5625*t:e<$D?9.075*t-9.9*e+3.4:e<qD?QD*t-ZD*e+eV:10.8*e*e-20.52*e+10.72},tV=Rl(Xs),rV=function(e){return e<.5?.5*(1-Xs(1-e*2)):.5*Xs(e*2-1)+.5};function nV(e,t){return e.map(function(){return t||bw}).splice(0,e.length-1)}function iV(e){var t=e.length;return e.map(function(r,n){return n!==0?n/(t-1):0})}function aV(e,t){return e.map(function(r){return r*t})}function vs(e){var t=e.from,r=t===void 0?0:t,n=e.to,i=n===void 0?1:n,a=e.ease,o=e.offset,s=e.duration,u=s===void 0?300:s,c={done:!1,value:r},d=Array.isArray(i)?i:[r,i],h=aV(o&&o.length===d.length?o:iV(d),u);function f(){return gw(h,d,{ease:Array.isArray(a)?a:nV(d,a)})}var g=f();return{next:function(x){return c.value=g(x),c.done=x>=u,c},flipTarget:function(){d.reverse(),g=f()}}}function oV(e){var t=e.velocity,r=t===void 0?0:t,n=e.from,i=n===void 0?0:n,a=e.power,o=a===void 0?.8:a,s=e.timeConstant,u=s===void 0?350:s,c=e.restDelta,d=c===void 0?.5:c,h=e.modifyTarget,f={done:!1,value:i},g=o*r,x=i+g,v=h===void 0?x:h(x);return v!==x&&(g=v-i),{next:function(b){var y=-g*Math.exp(-b/u);return f.done=!(y>d||y<-d),f.value=f.done?v:v+y,f},flipTarget:function(){}}}var Mg={keyframes:vs,spring:zh,decay:oV};function sV(e){if(Array.isArray(e.to))return vs;if(Mg[e.type])return Mg[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?vs:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?zh:vs}function kw(e,t,r){return r===void 0&&(r=0),e-t-r}function lV(e,t,r,n){return r===void 0&&(r=0),n===void 0&&(n=!0),n?kw(t+-e,t,r):t-(e-t)+r}function uV(e,t,r,n){return n?e>=t+r:e<=-r}var cV=function(e){var t=function(r){var n=r.delta;return e(n)};return{start:function(){return qr.update(t,!0)},stop:function(){return ha.update(t)}}};function Sw(e){var t,r,n=e.from,i=e.autoplay,a=i===void 0?!0:i,o=e.driver,s=o===void 0?cV:o,u=e.elapsed,c=u===void 0?0:u,d=e.repeat,h=d===void 0?0:d,f=e.repeatType,g=f===void 0?"loop":f,x=e.repeatDelay,v=x===void 0?0:x,b=e.onPlay,y=e.onStop,k=e.onComplete,C=e.onRepeat,I=e.onUpdate,w=er(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),m=w.to,T,P=0,V=w.duration,O,B=!1,F=!0,J,U=sV(w);!((r=(t=U).needsInterpolation)===null||r===void 0)&&r.call(t,n,m)&&(J=gw([0,100],[n,m],{clamp:!1}),n=0,m=100);var Y=U(me(me({},w),{from:n,to:m}));function Z(){P++,g==="reverse"?(F=P%2===0,c=lV(c,V,v,F)):(c=kw(c,V,v),g==="mirror"&&Y.flipTarget()),B=!1,C&&C()}function le(){T.stop(),k&&k()}function Q(E){if(F||(E=-E),c+=E,!B){var te=Y.next(Math.max(0,c));O=te.value,J&&(O=J(O)),B=F?te.done:c<=0}I==null||I(O),B&&(P===0&&(V??(V=c)),P<h?uV(c,V,v,F)&&Z():le())}function fe(){b==null||b(),T=s(Q),T.start()}return a&&fe(),{stop:function(){y==null||y(),T.stop()}}}function Cw(e,t){return t?e*(1e3/t):0}function dV(e){var t=e.from,r=t===void 0?0:t,n=e.velocity,i=n===void 0?0:n,a=e.min,o=e.max,s=e.power,u=s===void 0?.8:s,c=e.timeConstant,d=c===void 0?750:c,h=e.bounceStiffness,f=h===void 0?500:h,g=e.bounceDamping,x=g===void 0?10:g,v=e.restDelta,b=v===void 0?1:v,y=e.modifyTarget,k=e.driver,C=e.onUpdate,I=e.onComplete,w;function m(Z){return a!==void 0&&Z<a||o!==void 0&&Z>o}function T(Z){return a===void 0?o:o===void 0||Math.abs(a-Z)<Math.abs(o-Z)?a:o}function P(Z){w==null||w.stop(),w=Sw(me(me({},Z),{driver:k,onUpdate:function(le){var Q;C==null||C(le),(Q=Z.onUpdate)===null||Q===void 0||Q.call(Z,le)},onComplete:I}))}function V(Z){P(me({type:"spring",stiffness:f,damping:x,restDelta:b},Z))}if(m(r))V({from:r,velocity:i,to:T(r)});else{var O=u*i+r;typeof y<"u"&&(O=y(O));var B=T(O),F=B===a?-1:1,J,U,Y=function(Z){J=U,U=Z,i=Cw(Z-J,Hs().delta),(F===1&&Z>B||F===-1&&Z<B)&&V({from:Z,to:B,velocity:i})};P({type:"decay",from:r,velocity:i,timeConstant:d,power:u,restDelta:b,modifyTarget:y,onUpdate:m(O)?Y:void 0})}return{stop:function(){return w==null?void 0:w.stop()}}}var Gc=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},jg=function(e){return Gc(e)&&e.hasOwnProperty("z")},Jo=function(e,t){return Math.abs(e-t)};function Ew(e,t){if(Kc(e)&&Kc(t))return Jo(e,t);if(Gc(e)&&Gc(t)){var r=Jo(e.x,t.x),n=Jo(e.y,t.y),i=jg(e)&&jg(t)?Jo(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(i,2))}}var _w=function(e,t){return 1-3*t+3*e},Iw=function(e,t){return 3*t-6*e},Aw=function(e){return 3*e},Ys=function(e,t,r){return((_w(t,r)*e+Iw(t,r))*e+Aw(t))*e},Tw=function(e,t,r){return 3*_w(t,r)*e*e+2*Iw(t,r)*e+Aw(t)},hV=1e-7,pV=10;function fV(e,t,r,n,i){var a,o,s=0;do o=t+(r-t)/2,a=Ys(o,n,i)-e,a>0?r=o:t=o;while(Math.abs(a)>hV&&++s<pV);return o}var gV=8,mV=.001;function vV(e,t,r,n){for(var i=0;i<gV;++i){var a=Tw(t,r,n);if(a===0)return t;var o=Ys(t,r,n)-e;t-=o/a}return t}var xs=11,Xo=1/(xs-1);function xV(e,t,r,n){if(e===t&&r===n)return xw;for(var i=new Float32Array(xs),a=0;a<xs;++a)i[a]=Ys(a*Xo,e,r);function o(s){for(var u=0,c=1,d=xs-1;c!==d&&i[c]<=s;++c)u+=Xo;--c;var h=(s-i[c])/(i[c+1]-i[c]),f=u+h*Xo,g=Tw(f,e,r);return g>=mV?vV(s,f,e,r):g===0?f:fV(s,u,u+Xo,e,r)}return function(s){return s===0||s===1?s:Ys(o(s),t,n)}}function bV(e){var t=e.onTap,r=e.onTapStart,n=e.onTapCancel,i=e.whileTap,a=e.visualElement,o=t||r||n||i,s=L.useRef(!1),u=L.useRef(null);function c(){var x;(x=u.current)===null||x===void 0||x.call(u),u.current=null}function d(){var x;return c(),s.current=!1,(x=a.animationState)===null||x===void 0||x.setActive(Tt.Tap,!1),!uw()}function h(x,v){d()&&(cw(a.getInstance(),x.target)?t==null||t(x,v):n==null||n(x,v))}function f(x,v){d()&&(n==null||n(x,v))}function g(x,v){var b;c(),!s.current&&(s.current=!0,u.current=Qa(Oi(window,"pointerup",h),Oi(window,"pointercancel",f)),r==null||r(x,v),(b=a.animationState)===null||b===void 0||b.setActive(Tt.Tap,!0))}Gs(a,"pointerdown",o?g:void 0),Bh(c)}var ei=function(e){return function(t){return e(t),null}},yV={tap:ei(bV),focus:ei(hD),hover:ei(SD)};function Pw(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}var Qs=function(e){return e*1e3},Fg={linear:xw,easeIn:Wh,easeInOut:bw,easeOut:KD,circIn:yw,circInOut:GD,circOut:ww,backIn:Uh,backInOut:XD,backOut:JD,anticipate:YD,bounceIn:tV,bounceInOut:rV,bounceOut:Xs},Bg=function(e){if(Array.isArray(e)){dr(e.length===4,"Cubic bezier arrays must contain four numerical values.");var t=yt(e,4),r=t[0],n=t[1],i=t[2],a=t[3];return xV(r,n,i,a)}else if(typeof e=="string")return dr(Fg[e]!==void 0,"Invalid easing type '"+e+"'"),Fg[e];return e},wV=function(e){return Array.isArray(e)&&typeof e[0]!="number"},zg=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&un.test(t)&&!t.startsWith("url("))},Gn=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},Yo=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},nc=function(){return{type:"keyframes",ease:"linear",duration:.3}},kV=function(e){return{type:"keyframes",duration:.8,values:e}},Hg={x:Gn,y:Gn,z:Gn,rotate:Gn,rotateX:Gn,rotateY:Gn,rotateZ:Gn,scaleX:Yo,scaleY:Yo,scale:Yo,opacity:nc,backgroundColor:nc,color:nc,default:Yo},SV=function(e,t){var r;return La(t)?r=kV:r=Hg[e]||Hg.default,me({to:t},r(t))},CV=me(me({},Ky),{color:Xt,backgroundColor:Xt,outlineColor:Xt,fill:Xt,stroke:Xt,borderColor:Xt,borderTopColor:Xt,borderRightColor:Xt,borderBottomColor:Xt,borderLeftColor:Xt,filter:Uc,WebkitFilter:Uc}),$h=function(e){return CV[e]};function qh(e,t){var r,n=$h(e);return n!==Uc&&(n=un),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,t)}function EV(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=er(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}var Wg=!1;function _V(e){var t=e.ease,r=e.times,n=e.yoyo,i=e.flip,a=e.loop,o=er(e,["ease","times","yoyo","flip","loop"]),s=me({},o);return r&&(s.offset=r),o.duration&&(s.duration=Qs(o.duration)),o.repeatDelay&&(s.repeatDelay=Qs(o.repeatDelay)),t&&(s.ease=wV(t)?t.map(Bg):Bg(t)),o.type==="tween"&&(s.type="keyframes"),(n||a||i)&&(Il(!Wg,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Wg=!0,n?s.repeatType="reverse":a?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=a||n||i||o.repeat),o.type!=="spring"&&(s.type="keyframes"),s}function IV(e,t){var r,n=Kh(e,t)||{};return(r=n.delay)!==null&&r!==void 0?r:0}function AV(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=Mt([],yt(e.to)),e.to[0]=e.from),e}function TV(e,t,r){var n;return Array.isArray(t.to)&&((n=e.duration)!==null&&n!==void 0||(e.duration=.8)),AV(t),EV(e)||(e=me(me({},e),SV(r,t.to))),me(me({},t),_V(e))}function PV(e,t,r,n,i){var a,o=Kh(n,e),s=(a=o.from)!==null&&a!==void 0?a:t.get(),u=zg(e,r);s==="none"&&u&&typeof r=="string"?s=qh(e,r):Ug(s)&&typeof r=="string"?s=$g(r):!Array.isArray(r)&&Ug(r)&&typeof s=="string"&&(r=$g(s));var c=zg(e,s);Il(c===u,"You are trying to animate "+e+' from "'+s+'" to "'+r+'". '+s+" is not an animatable value - to enable this animation set "+s+" to a value animatable to "+r+" via the `style` property.");function d(){var f={from:s,to:r,velocity:t.getVelocity(),onComplete:i,onUpdate:function(g){return t.set(g)}};return o.type==="inertia"||o.type==="decay"?dV(me(me({},f),o)):Sw(me(me({},TV(o,f,e)),{onUpdate:function(g){var x;f.onUpdate(g),(x=o.onUpdate)===null||x===void 0||x.call(o,g)},onComplete:function(){var g;f.onComplete(),(g=o.onComplete)===null||g===void 0||g.call(o)}}))}function h(){var f;return t.set(r),i(),(f=o==null?void 0:o.onComplete)===null||f===void 0||f.call(o),{stop:function(){}}}return!c||!u||o.type===!1?h:d}function Ug(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function $g(e){return typeof e=="number"?0:qh("",e)}function Kh(e,t){return e[t]||e.default||e}function Zs(e,t,r,n){return n===void 0&&(n={}),t.start(function(i){var a,o,s=PV(e,t,r,n,i),u=IV(n,e),c=function(){return o=s()};return u?a=setTimeout(c,Qs(u)):c(),function(){clearTimeout(a),o==null||o.stop()}})}var NV=function(e){return/^\-?\d*\.?\d+$/.test(e)};function Nw(e,t){e.indexOf(t)===-1&&e.push(t)}function Ow(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)}var bs=(function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var r=this;return Nw(this.subscriptions,t),function(){return Ow(r.subscriptions,t)}},e.prototype.notify=function(t,r,n){var i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(var a=0;a<i;a++){var o=this.subscriptions[a];o&&o(t,r,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e})(),OV=function(e){return!isNaN(parseFloat(e))},RV=(function(){function e(t){var r=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new bs,this.velocityUpdateSubscribers=new bs,this.renderSubscribers=new bs,this.canTrackVelocity=!1,this.updateAndNotify=function(n,i){i===void 0&&(i=!0),r.prev=r.current,r.current=n;var a=Hs(),o=a.delta,s=a.timestamp;r.lastUpdated!==s&&(r.timeDelta=o,r.lastUpdated=s,qr.postRender(r.scheduleVelocityCheck)),r.prev!==r.current&&r.updateSubscribers.notify(r.current),r.velocityUpdateSubscribers.getSize()&&r.velocityUpdateSubscribers.notify(r.getVelocity()),i&&r.renderSubscribers.notify(r.current)},this.scheduleVelocityCheck=function(){return qr.postRender(r.velocityCheck)},this.velocityCheck=function(n){var i=n.timestamp;i!==r.lastUpdated&&(r.prev=r.current,r.velocityUpdateSubscribers.notify(r.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=OV(this.current)}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t},e.prototype.set=function(t,r){r===void 0&&(r=!0),!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Cw(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var r=this;return this.stop(),new Promise(function(n){r.hasAnimated=!0,r.stopAnimation=t(n)}).then(function(){return r.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e})();function ti(e){return new RV(e)}var Rw=function(e){return function(t){return t.test(e)}},LV={test:function(e){return e==="auto"},parse:function(e){return e}},Lw=[oi,$e,Ni,Cn,N5,P5,LV],Qo=function(e){return Lw.find(Rw(e))},DV=Mt(Mt([],yt(Lw)),[Xt,un]),VV=function(e){return DV.find(Rw(e))};function MV(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ti(r))}function jV(e,t){var r=Pl(e,t),n=r?e.makeTargetAnimatable(r,!1):{},i=n.transitionEnd,a=i===void 0?{}:i;n.transition;var o=er(n,["transitionEnd","transition"]);o=me(me({},o),a);for(var s in o){var u=aD(o[s]);MV(e,s,u)}}function FV(e,t,r){var n,i,a,o,s=Object.keys(t).filter(function(g){return!e.hasValue(g)}),u=s.length;if(u)for(var c=0;c<u;c++){var d=s[c],h=t[d],f=null;Array.isArray(h)&&(f=h[0]),f===null&&(f=(i=(n=r[d])!==null&&n!==void 0?n:e.readValue(d))!==null&&i!==void 0?i:t[d]),f!=null&&(typeof f=="string"&&NV(f)?f=parseFloat(f):!VV(f)&&un.test(h)&&(f=qh(d,h)),e.addValue(d,ti(f)),(a=(o=r)[d])!==null&&a!==void 0||(o[d]=f),e.setBaseTarget(d,f))}}function BV(e,t){if(t){var r=t[e]||t.default||t;return r.from}}function zV(e,t,r){var n,i,a={};for(var o in e)a[o]=(n=BV(o,t))!==null&&n!==void 0?n:(i=r.getValue(o))===null||i===void 0?void 0:i.get();return a}function HV(e,t,r){r===void 0&&(r={}),e.notifyAnimationStart();var n;if(Array.isArray(t)){var i=t.map(function(o){return Jc(e,o,r)});n=Promise.all(i)}else if(typeof t=="string")n=Jc(e,t,r);else{var a=typeof t=="function"?Pl(e,t,r.custom):t;n=Dw(e,a,r)}return n.then(function(){return e.notifyAnimationComplete(t)})}function Jc(e,t,r){var n;r===void 0&&(r={});var i=Pl(e,t,r.custom),a=(i||{}).transition,o=a===void 0?e.getDefaultTransition()||{}:a;r.transitionOverride&&(o=r.transitionOverride);var s=i?function(){return Dw(e,i,r)}:function(){return Promise.resolve()},u=!((n=e.variantChildren)===null||n===void 0)&&n.size?function(g){g===void 0&&(g=0);var x=o.delayChildren,v=x===void 0?0:x,b=o.staggerChildren,y=o.staggerDirection;return WV(e,t,v+g,b,y,r)}:function(){return Promise.resolve()},c=o.when;if(c){var d=yt(c==="beforeChildren"?[s,u]:[u,s],2),h=d[0],f=d[1];return h().then(f)}else return Promise.all([s(),u(r.delay)])}function Dw(e,t,r){var n,i=r===void 0?{}:r,a=i.delay,o=a===void 0?0:a,s=i.transitionOverride,u=i.type,c=e.makeTargetAnimatable(t),d=c.transition,h=d===void 0?e.getDefaultTransition():d,f=c.transitionEnd,g=er(c,["transition","transitionEnd"]);s&&(h=s);var x=[],v=u&&((n=e.animationState)===null||n===void 0?void 0:n.getState()[u]);for(var b in g){var y=e.getValue(b),k=g[b];if(!(!y||k===void 0||v&&$V(v,b))){var C=Zs(b,y,k,me({delay:o},h));x.push(C)}}return Promise.all(x).then(function(){f&&jV(e,f)})}function WV(e,t,r,n,i,a){r===void 0&&(r=0),n===void 0&&(n=0),i===void 0&&(i=1);var o=[],s=(e.variantChildren.size-1)*n,u=i===1?function(c){return c===void 0&&(c=0),c*n}:function(c){return c===void 0&&(c=0),s-c*n};return Array.from(e.variantChildren).sort(UV).forEach(function(c,d){o.push(Jc(c,t,me(me({},a),{delay:r+u(d)})).then(function(){return c.notifyAnimationComplete(t)}))}),Promise.all(o)}function UV(e,t){return e.sortNodePosition(t)}function $V(e,t){var r=e.protectedKeys,n=e.needsAnimating,i=r.hasOwnProperty(t)&&n[t]!==!0;return n[t]=!1,i}var Gh=[Tt.Animate,Tt.Hover,Tt.Tap,Tt.Drag,Tt.Focus,Tt.Exit],qV=Mt([],yt(Gh)).reverse(),KV=Gh.length;function GV(e){return function(t){return Promise.all(t.map(function(r){var n=r.animation,i=r.options;return HV(e,n,i)}))}}function JV(e){var t=GV(e),r=YV(),n={},i=!0,a=function(d,h){var f=Pl(e,h);if(f){f.transition;var g=f.transitionEnd,x=er(f,["transition","transitionEnd"]);d=me(me(me({},d),x),g)}return d};function o(d){return n[d]!==void 0}function s(d){t=d(e)}function u(d,h){for(var f,g=e.getProps(),x=e.getVariantContext(!0)||{},v=[],b=new Set,y={},k=1/0,C=function(T){var P=qV[T],V=r[P],O=(f=g[P])!==null&&f!==void 0?f:x[P],B=Mr(O),F=P===h?V.isActive:null;F===!1&&(k=T);var J=O===x[P]&&O!==g[P]&&B;if(J&&i&&e.manuallyAnimateOnMount&&(J=!1),V.protectedKeys=me({},y),!V.isActive&&F===null||!O&&!V.prevProp||Mh(O)||typeof O=="boolean")return"continue";var U=XV(V.prevProp,O)||P===h&&V.isActive&&!J&&B||T>k&&B,Y=Array.isArray(O)?O:[O],Z=Y.reduce(a,{});F===!1&&(Z={});var le=V.prevResolvedValues,Q=le===void 0?{}:le,fe=me(me({},Q),Z),E=function(ee){U=!0,b.delete(ee),V.needsAnimating[ee]=!0};for(var te in fe){var ae=Z[te],N=Q[te];y.hasOwnProperty(te)||(ae!==N?La(ae)&&La(N)?Pw(ae,N)?V.protectedKeys[te]=!0:E(te):ae!==void 0?E(te):b.add(te):ae!==void 0&&b.has(te)?E(te):V.protectedKeys[te]=!0)}V.prevProp=O,V.prevResolvedValues=Z,V.isActive&&(y=me(me({},y),Z)),i&&e.blockInitialAnimation&&(U=!1),U&&!J&&v.push.apply(v,Mt([],yt(Y.map(function(ee){return{animation:ee,options:me({type:P},d)}}))))},I=0;I<KV;I++)C(I);if(n=me({},y),b.size){var w={};b.forEach(function(T){var P=e.getBaseTarget(T);P!==void 0&&(w[T]=P)}),v.push({animation:w})}var m=!!v.length;return i&&g.initial===!1&&!e.manuallyAnimateOnMount&&(m=!1),i=!1,m?t(v):Promise.resolve()}function c(d,h,f){var g;return r[d].isActive===h?Promise.resolve():((g=e.variantChildren)===null||g===void 0||g.forEach(function(x){var v;return(v=x.animationState)===null||v===void 0?void 0:v.setActive(d,h)}),r[d].isActive=h,u(f,d))}return{isAnimated:o,animateChanges:u,setActive:c,setAnimateFunction:s,getState:function(){return r}}}function XV(e,t){return typeof t=="string"?t!==e:Ly(t)?!Pw(t,e):!1}function vi(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function YV(){var e;return e={},e[Tt.Animate]=vi(!0),e[Tt.Hover]=vi(),e[Tt.Tap]=vi(),e[Tt.Drag]=vi(),e[Tt.Focus]=vi(),e[Tt.Exit]=vi(),e}var QV={animation:ei(function(e){var t=e.visualElement,r=e.animate;t.animationState||(t.animationState=JV(t)),Mh(r)&&L.useEffect(function(){return r.subscribe(t)},[r])}),exit:ei(function(e){var t=e.custom,r=e.visualElement,n=yt(Ry(),2),i=n[0],a=n[1],o=L.useContext(Ga);L.useEffect(function(){var s,u,c=(s=r.animationState)===null||s===void 0?void 0:s.setActive(Tt.Exit,!i,{custom:(u=o==null?void 0:o.custom)!==null&&u!==void 0?u:t});!i&&(c==null||c.then(a))},[i])})},Vw=(function(){function e(t,r,n){var i=this,a=n===void 0?{}:n,o=a.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var f=ac(i.lastMoveEventInfo,i.history),g=i.startEvent!==null,x=Ew(f.offset,{x:0,y:0})>=3;if(!(!g&&!x)){var v=f.point,b=Hs().timestamp;i.history.push(me(me({},v),{timestamp:b}));var y=i.handlers,k=y.onStart,C=y.onMove;g||(k&&k(i.lastMoveEvent,f),i.startEvent=i.lastMoveEvent),C&&C(i.lastMoveEvent,f)}}},this.handlePointerMove=function(f,g){if(i.lastMoveEvent=f,i.lastMoveEventInfo=ic(g,i.transformPagePoint),nw(f)&&f.buttons===0){i.handlePointerUp(f,g);return}qr.update(i.updatePoint,!0)},this.handlePointerUp=function(f,g){i.end();var x=i.handlers,v=x.onEnd,b=x.onSessionEnd,y=ac(ic(g,i.transformPagePoint),i.history);i.startEvent&&v&&v(f,y),b&&b(f,y)},!(iw(t)&&t.touches.length>1)){this.handlers=r,this.transformPagePoint=o;var s=Fh(t),u=ic(s,this.transformPagePoint),c=u.point,d=Hs().timestamp;this.history=[me(me({},c),{timestamp:d})];var h=r.onSessionStart;h&&h(t,ac(u,this.history)),this.removeListeners=Qa(Oi(window,"pointermove",this.handlePointerMove),Oi(window,"pointerup",this.handlePointerUp),Oi(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),ha.update(this.updatePoint)},e})();function ic(e,t){return t?{point:t(e.point)}:e}function qg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ac(e,t){var r=e.point;return{point:r,delta:qg(r,Mw(t)),offset:qg(r,ZV(t)),velocity:eM(t,.1)}}function ZV(e){return e[0]}function Mw(e){return e[e.length-1]}function eM(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,i=Mw(e);r>=0&&(n=e[r],!(i.timestamp-n.timestamp>Qs(t)));)r--;if(!n)return{x:0,y:0};var a=(i.timestamp-n.timestamp)/1e3;if(a===0)return{x:0,y:0};var o={x:(i.x-n.x)/a,y:(i.y-n.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function tM(e){return e}function jw(e){var t=e.top,r=e.left,n=e.right,i=e.bottom;return{x:{min:r,max:n},y:{min:t,max:i}}}function rM(e){var t=e.x,r=e.y;return{top:r.min,bottom:r.max,left:t.min,right:t.max}}function nM(e,t){var r=e.top,n=e.left,i=e.bottom,a=e.right;t===void 0&&(t=tM);var o=t({x:n,y:r}),s=t({x:a,y:i});return{top:o.y,left:o.x,bottom:s.y,right:s.x}}function Nn(){return{x:{min:0,max:1},y:{min:0,max:1}}}function iM(e){return{x:me({},e.x),y:me({},e.y)}}var Kg={translate:0,scale:1,origin:0,originPoint:0};function Gg(){return{x:me({},Kg),y:me({},Kg)}}function ur(e){return[e("x"),e("y")]}function Fw(e,t,r){var n=t.min,i=t.max;return n!==void 0&&e<n?e=r?pr(n,e,r.min):Math.max(e,n):i!==void 0&&e>i&&(e=r?pr(i,e,r.max):Math.min(e,i)),e}function aM(e,t,r,n,i){var a=e-t*r;return n?Fw(a,n,i):a}function Jg(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function oM(e,t){var r=t.top,n=t.left,i=t.bottom,a=t.right;return{x:Jg(e.x,n,a),y:Jg(e.y,r,i)}}function Xg(e,t){var r,n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=yt([i,n],2),n=r[0],i=r[1]),{min:e.min+n,max:e.min+i}}function sM(e,t){return{x:Xg(e.x,t.x),y:Xg(e.y,t.y)}}function lM(e,t,r){var n=e.max-e.min,i=pr(t.min,t.max-n,r);return{min:i,max:i+n}}function uM(e,t){var r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var Bw=.35;function cM(e){return e===!1?e=0:e===!0&&(e=Bw),{x:Yg(e,"left","right"),y:Yg(e,"top","bottom")}}function Yg(e,t,r){return{min:Qg(e,t),max:Qg(e,r)}}function Qg(e,t){var r;return typeof e=="number"?e:(r=e[t])!==null&&r!==void 0?r:0}function zw(e,t){var r=e.getBoundingClientRect();return jw(nM(r,t))}var dM=function(e){return Js(0,1,e)};function Zg(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=.01),Ew(e,t)<r}function Va(e){return e.max-e.min}function hM(e,t){var r=.5,n=Va(e),i=Va(t);return i>n?r=Da(t.min,t.max-n,e.min):n>i&&(r=Da(e.min,e.max-i,t.min)),dM(r)}function em(e,t,r,n){n===void 0&&(n=.5),e.origin=n,e.originPoint=pr(t.min,t.max,e.origin),e.scale=Va(r)/Va(t),Zg(e.scale,1,1e-4)&&(e.scale=1),e.translate=pr(r.min,r.max,e.origin)-e.originPoint,Zg(e.translate)&&(e.translate=0)}function Hw(e,t,r,n){em(e.x,t.x,r.x,tm(n.originX)),em(e.y,t.y,r.y,tm(n.originY))}function tm(e){return typeof e=="number"?e:.5}function rm(e,t,r){e.min=r.min+t.min,e.max=e.min+Va(t)}function pM(e,t){rm(e.target.x,e.relativeTarget.x,t.target.x),rm(e.target.y,e.relativeTarget.y,t.target.y)}var Jh=function(e,t){return e.depth-t.depth};function Ww(e){var t=e.projection.isEnabled;return t||e.shouldResetTransform()}function el(e,t){t===void 0&&(t=[]);var r=e.parent;return r&&el(r,t),Ww(e)&&t.push(e),t}function fM(e){var t=[],r=function(n){Ww(n)&&t.push(n),n.children.forEach(r)};return e.children.forEach(r),t.sort(Jh)}function ys(e){if(!e.shouldResetTransform()){var t=e.getLayoutState();e.notifyBeforeLayoutMeasure(t.layout),t.isHydrated=!0,t.layout=e.measureViewportBox(),t.layoutCorrected=iM(t.layout),e.notifyLayoutMeasure(t.layout,e.prevViewportBox||t.layout),qr.update(function(){return e.rebaseProjectionTarget()})}}function gM(e){e.shouldResetTransform()||(e.prevViewportBox=e.measureViewportBox(!1),e.rebaseProjectionTarget(!1,e.prevViewportBox))}function mM(e,t,r,n){e.min=pr(t.min,r.min,n),e.max=pr(t.max,r.max,n)}function nm(e,t){return{min:t.min-e.min,max:t.max-e.min}}function Vi(e,t){return{x:nm(e.x,t.x),y:nm(e.y,t.y)}}function vM(e,t){var r=e.getLayoutId(),n=t.getLayoutId();return r!==n||n===void 0&&e!==t}function Uw(e){var t=e.getProps(),r=t.drag,n=t._dragX;return r&&!n}function im(e,t){e.min=t.min,e.max=t.max}function xM(e,t){im(e.x,t.x),im(e.y,t.y)}function tl(e,t,r){var n=e-r,i=t*n;return r+i}function am(e,t,r,n,i){return i!==void 0&&(e=tl(e,i,n)),tl(e,r,n)+t}function Xc(e,t,r,n,i){t===void 0&&(t=0),r===void 0&&(r=1),e.min=am(e.min,t,r,n,i),e.max=am(e.max,t,r,n,i)}function bM(e,t){var r=t.x,n=t.y;Xc(e.x,r.translate,r.scale,r.originPoint),Xc(e.y,n.translate,n.scale,n.originPoint)}function om(e,t,r,n){var i=yt(n,3),a=i[0],o=i[1],s=i[2];e.min=t.min,e.max=t.max;var u=r[s]!==void 0?r[s]:.5,c=pr(t.min,t.max,u);Xc(e,r[a],r[o],c,r.scale)}var $w=["x","scaleX","originX"],qw=["y","scaleY","originY"];function Yc(e,t,r){om(e.x,t.x,r,$w),om(e.y,t.y,r,qw)}function sm(e,t,r,n,i){return e-=t,e=tl(e,1/r,n),i!==void 0&&(e=tl(e,1/i,n)),e}function yM(e,t,r,n,i){t===void 0&&(t=0),r===void 0&&(r=1),n===void 0&&(n=.5);var a=pr(e.min,e.max,n)-t;e.min=sm(e.min,t,r,a,i),e.max=sm(e.max,t,r,a,i)}function lm(e,t,r){var n=yt(r,3),i=n[0],a=n[1],o=n[2];yM(e,t[i],t[a],t[o],t.scale)}function Kw(e,t){lm(e.x,t,$w),lm(e.y,t,qw)}function wM(e,t,r){var n=r.length;if(n){t.x=t.y=1;for(var i,a,o=0;o<n;o++)i=r[o],a=i.getLayoutState().delta,t.x*=a.x.scale,t.y*=a.y.scale,bM(e,a),Uw(i)&&Yc(e,e,i.getLatestValues())}}function kM(e,t){t===void 0&&(t=!0);var r=e.getProjectionParent();if(!r)return!1;var n;return t?(n=Vi(r.projection.target,e.projection.target),Kw(n,r.getLatestValues())):n=Vi(r.getLayoutState().layout,e.getLayoutState().layout),ur(function(i){return e.setProjectionTargetAxis(i,n[i].min,n[i].max,!0)}),!0}var xa=new Set;function um(e,t,r){e[r]||(e[r]=[]),e[r].push(t)}function Qc(e){return xa.add(e),function(){return xa.delete(e)}}function Zc(){if(xa.size){var e=0,t=[[]],r=[],n=function(s){return um(t,s,e)},i=function(s){um(r,s,e),e++};xa.forEach(function(s){s(n,i),e=0}),xa.clear();for(var a=r.length,o=0;o<=a;o++)t[o]&&t[o].forEach(cm),r[o]&&r[o].forEach(cm)}}var cm=function(e){return e()},SM=new WeakMap,dm,CM=(function(){function e(t){var r=t.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic=Nn(),this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=r,this.visualElement.enableLayoutProjection(),SM.set(r,this)}return e.prototype.start=function(t,r){var n=this,i=r===void 0?{}:r,a=i.snapToCursor,o=a===void 0?!1:a,s=i.cursorProgress,u=function(g){var x;n.stopMotion();var v=vD(g).point;(x=n.cancelLayout)===null||x===void 0||x.call(n),n.cancelLayout=Qc(function(b,y){var k=el(n.visualElement),C=fM(n.visualElement),I=Mt(Mt([],yt(k)),yt(C)),w=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),y(function(){I.forEach(function(m){return m.resetTransform()})}),b(function(){ys(n.visualElement),C.forEach(ys)}),y(function(){I.forEach(function(m){return m.restoreTransform()}),o&&(w=n.snapToCursor(v))}),b(function(){var m=!!(n.getAxisMotionValue("x")&&!n.isExternalDrag());m||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var T=n.visualElement.projection;ur(function(P){if(!w){var V=T.target[P],O=V.min,B=V.max;n.cursorProgress[P]=s?s[P]:Da(O,B,v[P])}var F=n.getAxisMotionValue(P);F&&(n.originPoint[P]=F.get())})}),y(function(){Ei.update(),Ei.preRender(),Ei.render(),Ei.postRender()}),b(function(){return n.resolveDragConstraints()})})},c=function(g,x){var v,b,y,k=n.props,C=k.drag,I=k.dragPropagation;C&&!I&&(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=lw(C),!n.openGlobalLock)||(Zc(),n.isDragging=!0,n.currentDirection=null,(b=(v=n.props).onDragStart)===null||b===void 0||b.call(v,g,x),(y=n.visualElement.animationState)===null||y===void 0||y.setActive(Tt.Drag,!0))},d=function(g,x){var v,b,y,k,C=n.props,I=C.dragPropagation,w=C.dragDirectionLock;if(!(!I&&!n.openGlobalLock)){var m=x.offset;if(w&&n.currentDirection===null){n.currentDirection=EM(m),n.currentDirection!==null&&((b=(v=n.props).onDirectionLock)===null||b===void 0||b.call(v,n.currentDirection));return}n.updateAxis("x",x.point,m),n.updateAxis("y",x.point,m),(k=(y=n.props).onDrag)===null||k===void 0||k.call(y,g,x),dm=g}},h=function(g,x){return n.stop(g,x)},f=this.props.transformPagePoint;this.panSession=new Vw(t,{onSessionStart:u,onStart:c,onMove:d,onSessionEnd:h},{transformPagePoint:f})},e.prototype.resolveDragConstraints=function(){var t=this,r=this.props,n=r.dragConstraints,i=r.dragElastic,a=this.visualElement.getLayoutState().layoutCorrected;n?this.constraints=zc(n)?this.resolveRefConstraints(a,n):oM(a,n):this.constraints=!1,this.elastic=cM(i),this.constraints&&!this.hasMutatedConstraints&&ur(function(o){t.getAxisMotionValue(o)&&(t.constraints[o]=uM(a[o],t.constraints[o]))})},e.prototype.resolveRefConstraints=function(t,r){var n=this.props,i=n.onMeasureDragConstraints,a=n.transformPagePoint,o=r.current;dr(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop."),this.constraintsBox=zw(o,a);var s=sM(t,this.constraintsBox);if(i){var u=i(rM(s));this.hasMutatedConstraints=!!u,u&&(s=jw(u))}return s},e.prototype.cancelDrag=function(){var t,r;this.visualElement.unlockProjectionTarget(),(t=this.cancelLayout)===null||t===void 0||t.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(r=this.visualElement.animationState)===null||r===void 0||r.setActive(Tt.Drag,!1)},e.prototype.stop=function(t,r){var n,i,a;(n=this.panSession)===null||n===void 0||n.end(),this.panSession=null;var o=this.isDragging;if(this.cancelDrag(),!!o){var s=r.velocity;this.animateDragEnd(s),(a=(i=this.props).onDragEnd)===null||a===void 0||a.call(i,t,r)}},e.prototype.snapToCursor=function(t){var r=this;return ur(function(n){var i=r.props.drag;if(Zo(n,i,r.currentDirection)){var a=r.getAxisMotionValue(n);if(a){var o=r.visualElement.getLayoutState().layout,s=o[n].max-o[n].min,u=o[n].min+s/2,c=t[n]-u;r.originPoint[n]=t[n],a.set(c)}else return r.cursorProgress[n]=.5,!0}}).includes(!0)},e.prototype.updateAxis=function(t,r,n){var i=this.props.drag;if(Zo(t,i,this.currentDirection))return this.getAxisMotionValue(t)?this.updateAxisMotionValue(t,n):this.updateVisualElementAxis(t,r)},e.prototype.updateAxisMotionValue=function(t,r){var n=this.getAxisMotionValue(t);if(!(!r||!n)){var i=this.originPoint[t]+r[t],a=this.constraints?Fw(i,this.constraints[t],this.elastic[t]):i;n.set(a)}},e.prototype.updateVisualElementAxis=function(t,r){var n,i=this.visualElement.getLayoutState().layout[t],a=i.max-i.min,o=this.cursorProgress[t],s=aM(r[t],a,o,(n=this.constraints)===null||n===void 0?void 0:n[t],this.elastic[t]);this.visualElement.setProjectionTargetAxis(t,s,s+a)},e.prototype.setProps=function(t){var r=t.drag,n=r===void 0?!1:r,i=t.dragDirectionLock,a=i===void 0?!1:i,o=t.dragPropagation,s=o===void 0?!1:o,u=t.dragConstraints,c=u===void 0?!1:u,d=t.dragElastic,h=d===void 0?Bw:d,f=t.dragMomentum,g=f===void 0?!0:f,x=er(t,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=me({drag:n,dragDirectionLock:a,dragPropagation:s,dragConstraints:c,dragElastic:h,dragMomentum:g},x)},e.prototype.getAxisMotionValue=function(t){var r=this.props,n=r.layout,i=r.layoutId,a="_drag"+t.toUpperCase();if(this.props[a])return this.props[a];if(!n&&i===void 0)return this.visualElement.getValue(t,0)},e.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},e.prototype.isExternalDrag=function(){var t=this.props,r=t._dragX,n=t._dragY;return r||n},e.prototype.animateDragEnd=function(t){var r=this,n=this.props,i=n.drag,a=n.dragMomentum,o=n.dragElastic,s=n.dragTransition,u=kM(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),c=this.constraints||{};if(u&&Object.keys(c).length&&this.isLayoutDrag()){var d=this.visualElement.getProjectionParent();if(d){var h=Vi(d.projection.targetFinal,c);ur(function(g){var x=h[g],v=x.min,b=x.max;c[g]={min:isNaN(v)?void 0:v,max:isNaN(b)?void 0:b}})}}var f=ur(function(g){var x;if(Zo(g,i,r.currentDirection)){var v=(x=c==null?void 0:c[g])!==null&&x!==void 0?x:{},b=o?200:1e6,y=o?40:1e7,k=me(me({type:"inertia",velocity:a?t[g]:0,bounceStiffness:b,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10},s),v);return r.getAxisMotionValue(g)?r.startAxisValueAnimation(g,k):r.visualElement.startLayoutAnimation(g,k,u)}});return Promise.all(f).then(function(){var g,x;(x=(g=r.props).onDragTransitionEnd)===null||x===void 0||x.call(g)})},e.prototype.stopMotion=function(){var t=this;ur(function(r){var n=t.getAxisMotionValue(r);n?n.stop():t.visualElement.stopLayoutAnimation()})},e.prototype.startAxisValueAnimation=function(t,r){var n=this.getAxisMotionValue(t);if(n){var i=n.get();return n.set(i),n.set(i),Zs(t,n,0,r)}},e.prototype.scalePoint=function(){var t=this,r=this.props,n=r.drag,i=r.dragConstraints;if(!(!zc(i)||!this.constraintsBox)){this.stopMotion();var a={x:0,y:0};ur(function(o){a[o]=hM(t.visualElement.projection.target[o],t.constraintsBox[o])}),this.updateConstraints(function(){ur(function(o){if(Zo(o,n,null)){var s=lM(t.visualElement.projection.target[o],t.constraintsBox[o],a[o]),u=s.min,c=s.max;t.visualElement.setProjectionTargetAxis(o,u,c)}})}),setTimeout(Zc,1)}},e.prototype.updateConstraints=function(t){var r=this;this.cancelLayout=Qc(function(n,i){var a=el(r.visualElement);i(function(){return a.forEach(function(o){return o.resetTransform()})}),n(function(){return ys(r.visualElement)}),i(function(){return a.forEach(function(o){return o.restoreTransform()})}),n(function(){r.resolveDragConstraints()}),t&&i(t)})},e.prototype.mount=function(t){var r=this,n=t.getInstance(),i=Oi(n,"pointerdown",function(u){var c=r.props,d=c.drag,h=c.dragListener,f=h===void 0?!0:h;d&&f&&r.start(u)}),a=jh(window,"resize",function(){r.scalePoint()}),o=t.onLayoutUpdate(function(){r.isDragging&&r.resolveDragConstraints()}),s=t.prevDragCursor;return s&&this.start(dm,{cursorProgress:s}),function(){i==null||i(),a==null||a(),o==null||o(),r.cancelDrag()}},e})();function Zo(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function EM(e,t){t===void 0&&(t=10);var r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function _M(e){var t=e.dragControls,r=e.visualElement,n=L.useContext(Al).transformPagePoint,i=Na(function(){return new CM({visualElement:r})});i.setProps(me(me({},e),{transformPagePoint:n})),L.useEffect(function(){return t&&t.subscribe(i)},[i]),L.useEffect(function(){return i.mount(r)},[])}function IM(e){var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,i=e.onPanSessionStart,a=e.visualElement,o=t||r||n||i,s=L.useRef(null),u=L.useContext(Al).transformPagePoint,c={onSessionStart:i,onStart:r,onMove:t,onEnd:function(h,f){s.current=null,n&&n(h,f)}};L.useEffect(function(){s.current!==null&&s.current.updateHandlers(c)});function d(h){s.current=new Vw(h,c,{transformPagePoint:u})}Gs(a,"pointerdown",o&&d),Bh(function(){return s.current&&s.current.end()})}var AM={pan:ei(IM),drag:ei(_M)},Ma;(function(e){e[e.Entering=0]="Entering",e[e.Present=1]="Present",e[e.Exiting=2]="Exiting"})(Ma||(Ma={}));var ed;(function(e){e[e.Hide=0]="Hide",e[e.Show=1]="Show"})(ed||(ed={}));function td(e){return typeof e=="string"&&e.startsWith("var(--")}var Gw=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function TM(e){var t=Gw.exec(e);if(!t)return[,];var r=yt(t,3),n=r[1],i=r[2];return[n,i]}var PM=4;function rd(e,t,r){r===void 0&&(r=1),dr(r<=PM,'Max CSS variable fallback depth detected in property "'+e+'". This may indicate a circular fallback dependency.');var n=yt(TM(e),2),i=n[0],a=n[1];if(i){var o=window.getComputedStyle(t).getPropertyValue(i);return o?o.trim():td(a)?rd(a,t,r+1):a}}function NM(e,t,r){var n,i=er(t,[]),a=e.getInstance();if(!(a instanceof HTMLElement))return{target:i,transitionEnd:r};r&&(r=me({},r)),e.forEachValue(function(c){var d=c.get();if(td(d)){var h=rd(d,a);h&&c.set(h)}});for(var o in i){var s=i[o];if(td(s)){var u=rd(s,a);u&&(i[o]=u,r&&((n=r[o])!==null&&n!==void 0||(r[o]=s)))}}return{target:i,transitionEnd:r}}function hm(e,t){return e/(t.max-t.min)*100}function OM(e,t,r){var n=r.target;if(typeof e=="string")if($e.test(e))e=parseFloat(e);else return e;var i=hm(e,n.x),a=hm(e,n.y);return i+"% "+a+"%"}var pm="_$css";function RM(e,t){var r=t.delta,n=t.treeScale,i=e,a=e.includes("var("),o=[];a&&(e=e.replace(Gw,function(v){return o.push(v),pm}));var s=un.parse(e);if(s.length>5)return i;var u=un.createTransformer(e),c=typeof s[0]!="number"?1:0,d=r.x.scale*n.x,h=r.y.scale*n.y;s[0+c]/=d,s[1+c]/=h;var f=pr(d,h,.5);typeof s[2+c]=="number"&&(s[2+c]/=f),typeof s[3+c]=="number"&&(s[3+c]/=f);var g=u(s);if(a){var x=0;g=g.replace(pm,function(){var v=o[x];return x++,v})}return g}var aa={process:OM},LM={borderRadius:me(me({},aa),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:aa,borderTopRightRadius:aa,borderBottomLeftRadius:aa,borderBottomRightRadius:aa,boxShadow:{process:RM}},fm=1e3,DM=(function(e){ni(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.frameTarget=Nn(),r.currentAnimationTarget=Nn(),r.isAnimating={x:!1,y:!1},r.stopAxisAnimation={x:void 0,y:void 0},r.isAnimatingTree=!1,r.animate=function(n,i,a){a===void 0&&(a={});var o=a.originBox,s=a.targetBox,u=a.visibilityAction,c=a.shouldStackAnimate,d=a.onComplete,h=a.prevParent,f=er(a,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),g=r.props,x=g.visualElement,v=g.layout;if(c===!1)return r.isAnimatingTree=!1,r.safeToRemove();if(!(r.isAnimatingTree&&c!==!0)){c&&(r.isAnimatingTree=!0),i=o||i,n=s||n;var b=!1,y=x.getProjectionParent();if(y){var k=y.prevViewportBox,C=y.getLayoutState().layout;h&&(s&&(C=h.getLayoutState().layout),o&&!vM(h,y)&&h.prevViewportBox&&(k=h.prevViewportBox)),k&&FM(h,o,s)&&(b=!0,i=Vi(k,i),n=Vi(C,n))}var I=MM(i,n),w=ur(function(m){var T,P;if(v==="position"){var V=n[m].max-n[m].min;i[m].max=i[m].min+V}if(!x.projection.isTargetLocked)if(u!==void 0)x.setVisibility(u===ed.Show);else return I?r.animateAxis(m,n[m],i[m],me(me({},f),{isRelative:b})):((P=(T=r.stopAxisAnimation)[m])===null||P===void 0||P.call(T),x.setProjectionTargetAxis(m,n[m].min,n[m].max,b))});return x.syncRender(),Promise.all(w).then(function(){r.isAnimatingTree=!1,d&&d(),x.notifyLayoutAnimationComplete()})}},r}return t.prototype.componentDidMount=function(){var r=this,n=this.props.visualElement;n.animateMotionValue=Zs,n.enableLayoutProjection(),this.unsubLayoutReady=n.onLayoutUpdate(this.animate),n.layoutSafeToRemove=function(){return r.safeToRemove()},b5(LM)},t.prototype.componentWillUnmount=function(){var r=this;this.unsubLayoutReady(),ur(function(n){var i,a;return(a=(i=r.stopAxisAnimation)[n])===null||a===void 0?void 0:a.call(i)})},t.prototype.animateAxis=function(r,n,i,a){var o=this,s,u,c=a===void 0?{}:a,d=c.transition,h=c.isRelative;if(!(this.isAnimating[r]&&ja(n,this.currentAnimationTarget[r]))){(u=(s=this.stopAxisAnimation)[r])===null||u===void 0||u.call(s),this.isAnimating[r]=!0;var f=this.props.visualElement,g=this.frameTarget[r],x=f.getProjectionAnimationProgress()[r];x.clearListeners(),x.set(0),x.set(0);var v=function(){var C=x.get()/fm;mM(g,i,n,C),f.setProjectionTargetAxis(r,g.min,g.max,h)};v();var b=x.onChange(v);this.stopAxisAnimation[r]=function(){o.isAnimating[r]=!1,x.stop(),b()},this.currentAnimationTarget[r]=n;var y=d||f.getDefaultTransition()||jM,k=Zs(r==="x"?"layoutX":"layoutY",x,fm,y&&Kh(y,"layout")).then(this.stopAxisAnimation[r]);return k}},t.prototype.safeToRemove=function(){var r,n;(n=(r=this.props).safeToRemove)===null||n===void 0||n.call(r)},t.prototype.render=function(){return null},t})(z.Component);function VM(e){var t=yt(Ry(),2),r=t[1];return z.createElement(DM,me({},e,{safeToRemove:r}))}function MM(e,t){return!mm(e)&&!mm(t)&&(!ja(e.x,t.x)||!ja(e.y,t.y))}var gm={min:0,max:0};function mm(e){return ja(e.x,gm)&&ja(e.y,gm)}function ja(e,t){return e.min===t.min&&e.max===t.max}var jM={duration:.45,ease:[.4,0,.1,1]};function FM(e,t,r){return e||!e&&!(t||r)}var BM={layoutReady:function(e){return e.notifyLayoutReady()}};function Jw(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var r=t===void 0?BM:t,n=r.layoutReady,i=r.parent;Qc(function(a,o){var s=Array.from(e).sort(Jh),u=i?el(i):[];o(function(){var c=Mt(Mt([],yt(u)),yt(s));c.forEach(function(d){return d.resetTransform()})}),a(function(){s.forEach(ys)}),o(function(){u.forEach(function(c){return c.restoreTransform()}),s.forEach(n)}),a(function(){s.forEach(function(c){c.isPresent&&(c.presence=Ma.Present)})}),o(function(){Ei.preRender(),Ei.render()}),a(function(){qr.postRender(function(){return s.forEach(zM)}),e.clear()})}),Zc()}}}function zM(e){e.prevViewportBox=e.projection.target}var Xw=L.createContext(Jw()),HM=L.createContext(Jw());function Jn(e){return!!e.forceUpdate}var WM=(function(e){ni(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var r=this.props,n=r.syncLayout,i=r.framerSyncLayout,a=r.visualElement;Jn(n)&&n.register(a),Jn(i)&&i.register(a),a.onUnmount(function(){Jn(n)&&n.remove(a),Jn(i)&&i.remove(a)})},t.prototype.getSnapshotBeforeUpdate=function(){var r=this.props,n=r.syncLayout,i=r.visualElement;return Jn(n)?n.syncUpdate():(gM(i),n.add(i)),null},t.prototype.componentDidUpdate=function(){var r=this.props.syncLayout;Jn(r)||r.flush()},t.prototype.render=function(){return null},t})(L.Component);function UM(e){var t=L.useContext(Xw),r=L.useContext(HM);return L.createElement(WM,me({},e,{syncLayout:t,framerSyncLayout:r}))}var $M={measureLayout:UM,layoutAnimation:VM},qM=function(){return{isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:Nn(),targetFinal:Nn()}};function Yw(){return{isHydrated:!1,layout:Nn(),layoutCorrected:Nn(),treeScale:{x:1,y:1},delta:Gg(),deltaFinal:Gg(),deltaTransform:""}}var vm=Yw();function Ll(e,t,r){var n=e.x,i=e.y,a=n.translate/t.x,o=i.translate/t.y,s="translate3d("+a+"px, "+o+"px, 0) ";if(r){var u=r.rotate,c=r.rotateX,d=r.rotateY;u&&(s+="rotate("+u+") "),c&&(s+="rotateX("+c+") "),d&&(s+="rotateY("+d+") ")}return s+="scale("+n.scale+", "+i.scale+")",!r&&s===KM?"":s}function Qw(e){var t=e.deltaFinal;return t.x.origin*100+"% "+t.y.origin*100+"% 0"}var KM=Ll(vm.delta,vm.treeScale,{}),es=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function GM(){var e=es.map(function(){return new bs}),t={},r={clearAllListeners:function(){return e.forEach(function(n){return n.clear()})},updatePropListeners:function(n){return es.forEach(function(i){var a;(a=t[i])===null||a===void 0||a.call(t);var o="on"+i,s=n[o];s&&(t[i]=r[o](s))})}};return e.forEach(function(n,i){r["on"+es[i]]=function(a){return n.add(a)},r["notify"+es[i]]=function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return n.notify.apply(n,Mt([],yt(a)))}}),r}function JM(e,t,r){var n;for(var i in t){var a=t[i],o=r[i];if(Pn(a))e.addValue(i,a);else if(Pn(o))e.addValue(i,ti(a));else if(o!==a)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(a)}else e.addValue(i,ti((n=e.getStaticValue(i))!==null&&n!==void 0?n:a))}for(var i in r)t[i]===void 0&&e.removeValue(i);return t}function XM(e,t,r,n){var i=e.delta,a=e.layout,o=e.layoutCorrected,s=e.treeScale,u=t.target;xM(o,a),wM(o,s,r),Hw(i,o,u,n)}var YM=(function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){Nw(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){Ow(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(Jh),this.isDirty=!1,this.children.forEach(t)},e})();function QM(e){var t=e.getProjectionParent();if(!t){e.rebaseProjectionTarget();return}var r=Vi(t.getLayoutState().layout,e.getLayoutState().layout);ur(function(n){e.setProjectionTargetAxis(n,r[n].min,r[n].max,!0)})}var Zw=function(e){var t=e.treeType,r=t===void 0?"":t,n=e.build,i=e.getBaseTarget,a=e.makeTargetAnimatable,o=e.measureViewportBox,s=e.render,u=e.readValueFromInstance,c=e.resetTransform,d=e.restoreTransform,h=e.removeValueFromRenderState,f=e.sortNodePosition,g=e.scrapeMotionValuesFromProps;return function(x,v){var b=x.parent,y=x.props,k=x.presenceId,C=x.blockInitialAnimation,I=x.visualState;v===void 0&&(v={});var w=I.latestValues,m=I.renderState,T,P=GM(),V=qM(),O,B=V,F=w,J,U=Yw(),Y,Z=!1,le=new Map,Q=new Map,fe={},E,te=me({},w),ae;function N(){T&&(q.isProjectionReady()&&(Yc(B.targetFinal,B.target,F),Hw(U.deltaFinal,U.layoutCorrected,B.targetFinal,w)),ee(),s(T,m))}function ee(){var re=w;if(Y&&Y.isActive()){var ue=Y.getCrossfadeState(q);ue&&(re=ue)}n(q,m,re,B,U,v,y)}function H(){P.notifyUpdate(w)}function W(){if(q.isProjectionReady()){var re=U.delta,ue=U.treeScale,ve=ue.x,Ce=ue.y,Pe=U.deltaTransform;XM(U,B,q.path,w),Z&&q.notifyViewportBoxUpdate(B.target,re),Z=!1;var Ie=Ll(re,ue);(Ie!==Pe||ve!==ue.x||Ce!==ue.y)&&q.scheduleRender(),U.deltaTransform=Ie}}function $(){q.layoutTree.forEach(e4)}function ie(re,ue){var ve=ue.onChange(function(Pe){w[re]=Pe,y.onUpdate&&qr.update(H,!1,!0)}),Ce=ue.onRenderRequest(q.scheduleRender);Q.set(re,function(){ve(),Ce()})}var oe=g(y);for(var de in oe){var he=oe[de];w[de]!==void 0&&Pn(he)&&he.set(w[de],!1)}var K=Nl(y),xe=Vy(y),q=me(me({treeType:r,current:null,depth:b?b.depth+1:0,parent:b,children:new Set,path:b?Mt(Mt([],yt(b.path)),[b]):[],layoutTree:b?b.layoutTree:new YM,presenceId:k,projection:V,variantChildren:xe?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(b!=null&&b.isMounted()),blockInitialAnimation:C,isMounted:function(){return!!T},mount:function(re){T=q.current=re,q.pointTo(q),xe&&b&&!K&&(ae=b==null?void 0:b.addVariantChild(q)),b==null||b.children.add(q)},unmount:function(){ha.update(H),ha.render(N),ha.preRender(q.updateLayoutProjection),Q.forEach(function(re){return re()}),q.stopLayoutAnimation(),q.layoutTree.remove(q),ae==null||ae(),b==null||b.children.delete(q),J==null||J(),P.clearAllListeners()},addVariantChild:function(re){var ue,ve=q.getClosestVariantNode();if(ve)return(ue=ve.variantChildren)===null||ue===void 0||ue.add(re),function(){return ve.variantChildren.delete(re)}},sortNodePosition:function(re){return!f||r!==re.treeType?0:f(q.getInstance(),re.getInstance())},getClosestVariantNode:function(){return xe?q:b==null?void 0:b.getClosestVariantNode()},scheduleUpdateLayoutProjection:b?b.scheduleUpdateLayoutProjection:function(){return qr.preRender(q.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return y.layoutId},getInstance:function(){return T},getStaticValue:function(re){return w[re]},setStaticValue:function(re,ue){return w[re]=ue},getLatestValues:function(){return w},setVisibility:function(re){q.isVisible!==re&&(q.isVisible=re,q.scheduleRender())},makeTargetAnimatable:function(re,ue){return ue===void 0&&(ue=!0),a(q,re,y,ue)},addValue:function(re,ue){q.hasValue(re)&&q.removeValue(re),le.set(re,ue),w[re]=ue.get(),ie(re,ue)},removeValue:function(re){var ue;le.delete(re),(ue=Q.get(re))===null||ue===void 0||ue(),Q.delete(re),delete w[re],h(re,m)},hasValue:function(re){return le.has(re)},getValue:function(re,ue){var ve=le.get(re);return ve===void 0&&ue!==void 0&&(ve=ti(ue),q.addValue(re,ve)),ve},forEachValue:function(re){return le.forEach(re)},readValue:function(re){var ue;return(ue=w[re])!==null&&ue!==void 0?ue:u(T,re,v)},setBaseTarget:function(re,ue){te[re]=ue},getBaseTarget:function(re){if(i){var ue=i(y,re);if(ue!==void 0&&!Pn(ue))return ue}return te[re]}},P),{build:function(){return ee(),m},scheduleRender:function(){qr.render(N,!1,!0)},syncRender:N,setProps:function(re){y=re,P.updatePropListeners(re),fe=JM(q,g(y),fe)},getProps:function(){return y},getVariant:function(re){var ue;return(ue=y.variants)===null||ue===void 0?void 0:ue[re]},getDefaultTransition:function(){return y.transition},getVariantContext:function(re){if(re===void 0&&(re=!1),re)return b==null?void 0:b.getVariantContext();if(!K){var ue=(b==null?void 0:b.getVariantContext())||{};return y.initial!==void 0&&(ue.initial=y.initial),ue}for(var ve={},Ce=0;Ce<t4;Ce++){var Pe=e1[Ce],Ie=y[Pe];(Mr(Ie)||Ie===!1)&&(ve[Pe]=Ie)}return ve},enableLayoutProjection:function(){V.isEnabled=!0,q.layoutTree.add(q)},lockProjectionTarget:function(){V.isTargetLocked=!0},unlockProjectionTarget:function(){q.stopLayoutAnimation(),V.isTargetLocked=!1},getLayoutState:function(){return U},setCrossfader:function(re){Y=re},isProjectionReady:function(){return V.isEnabled&&V.isHydrated&&U.isHydrated},startLayoutAnimation:function(re,ue,ve){ve===void 0&&(ve=!1);var Ce=q.getProjectionAnimationProgress()[re],Pe=ve?V.relativeTarget[re]:V.target[re],Ie=Pe.min,Ue=Pe.max,_e=Ue-Ie;return Ce.clearListeners(),Ce.set(Ie),Ce.set(Ie),Ce.onChange(function(Ae){q.setProjectionTargetAxis(re,Ae,Ae+_e,ve)}),q.animateMotionValue(re,Ce,0,ue)},stopLayoutAnimation:function(){ur(function(re){return q.getProjectionAnimationProgress()[re].stop()})},measureViewportBox:function(re){re===void 0&&(re=!0);var ue=o(T,v);return re||Kw(ue,w),ue},getProjectionAnimationProgress:function(){return E||(E={x:ti(0),y:ti(0)}),E},setProjectionTargetAxis:function(re,ue,ve,Ce){Ce===void 0&&(Ce=!1);var Pe;Ce?(V.relativeTarget||(V.relativeTarget=Nn()),Pe=V.relativeTarget[re]):(V.relativeTarget=void 0,Pe=V.target[re]),V.isHydrated=!0,Pe.min=ue,Pe.max=ve,Z=!0,P.notifySetAxisTarget()},rebaseProjectionTarget:function(re,ue){ue===void 0&&(ue=U.layout);var ve=q.getProjectionAnimationProgress(),Ce=ve.x,Pe=ve.y,Ie=!V.relativeTarget&&!V.isTargetLocked&&!Ce.isAnimating()&&!Pe.isAnimating();(re||Ie)&&ur(function(Ue){var _e=ue[Ue],Ae=_e.min,Be=_e.max;q.setProjectionTargetAxis(Ue,Ae,Be)})},notifyLayoutReady:function(re){QM(q),q.notifyLayoutUpdate(U.layout,q.prevViewportBox||U.layout,re)},resetTransform:function(){return c(q,T,y)},restoreTransform:function(){return d(T,m)},updateLayoutProjection:W,updateTreeLayoutProjection:function(){q.layoutTree.forEach(ZM),qr.preRender($,!1,!0)},getProjectionParent:function(){if(O===void 0){for(var re=!1,ue=q.path.length-1;ue>=0;ue--){var ve=q.path[ue];if(ve.projection.isEnabled){re=ve;break}}O=re}return O},resolveRelativeTargetBox:function(){var re=q.getProjectionParent();if(!(!V.relativeTarget||!re)&&(pM(V,re.projection),Uw(re))){var ue=V.target;Yc(ue,ue,re.getLatestValues())}},shouldResetTransform:function(){return!!y._layoutResetTransform},pointTo:function(re){B=re.projection,F=re.getLatestValues(),J==null||J(),J=Qa(re.onSetAxisTarget(q.scheduleUpdateLayoutProjection),re.onLayoutAnimationComplete(function(){var ue;q.isPresent?q.presence=Ma.Present:(ue=q.layoutSafeToRemove)===null||ue===void 0||ue.call(q)}))},isPresent:!0,presence:Ma.Entering});return q}};function ZM(e){e.resolveRelativeTargetBox()}function e4(e){e.updateLayoutProjection()}var e1=Mt(["initial"],yt(Gh)),t4=e1.length,r4=new Set(["width","height","top","left","right","bottom","x","y"]),t1=function(e){return r4.has(e)},n4=function(e){return Object.keys(e).some(t1)},r1=function(e,t){e.set(t,!1),e.set(t)},ts=function(e){return e===oi||e===$e},xm;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(xm||(xm={}));var bm=function(e,t){return parseFloat(e.split(", ")[t])},ym=function(e,t){return function(r,n){var i=n.transform;if(i==="none"||!i)return 0;var a=i.match(/^matrix3d\((.+)\)$/);if(a)return bm(a[1],t);var o=i.match(/^matrix\((.+)\)$/);return o?bm(o[1],e):0}},i4=new Set(["x","y","z"]),a4=Oa.filter(function(e){return!i4.has(e)});function o4(e){var t=[];return a4.forEach(function(r){var n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var wm={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){var r=t.top;return parseFloat(r)},left:function(e,t){var r=t.left;return parseFloat(r)},bottom:function(e,t){var r=e.y,n=t.top;return parseFloat(n)+(r.max-r.min)},right:function(e,t){var r=e.x,n=t.left;return parseFloat(n)+(r.max-r.min)},x:ym(4,13),y:ym(5,14)},s4=function(e,t,r){var n=t.measureViewportBox(),i=t.getInstance(),a=getComputedStyle(i),o=a.display,s=a.top,u=a.left,c=a.bottom,d=a.right,h=a.transform,f={top:s,left:u,bottom:c,right:d,transform:h};o==="none"&&t.setStaticValue("display",e.display||"block"),t.syncRender();var g=t.measureViewportBox();return r.forEach(function(x){var v=t.getValue(x);r1(v,wm[x](n,f)),e[x]=wm[x](g,a)}),e},l4=function(e,t,r,n){r===void 0&&(r={}),n===void 0&&(n={}),t=me({},t),n=me({},n);var i=Object.keys(t).filter(t1),a=[],o=!1,s=[];if(i.forEach(function(c){var d=e.getValue(c);if(e.hasValue(c)){var h=r[c],f=t[c],g=Qo(h),x;if(La(f))for(var v=f.length,b=f[0]===null?1:0;b<v;b++)x?dr(Qo(f[b])===x,"All keyframes must be of the same type"):(x=Qo(f[b]),dr(x===g||ts(g)&&ts(x),"Keyframes must be of the same dimension as the current value"));else x=Qo(f);if(g!==x)if(ts(g)&&ts(x)){var y=d.get();typeof y=="string"&&d.set(parseFloat(y)),typeof f=="string"?t[c]=parseFloat(f):Array.isArray(f)&&x===$e&&(t[c]=f.map(parseFloat))}else g!=null&&g.transform&&(x!=null&&x.transform)&&(h===0||f===0)?h===0?d.set(x.transform(h)):t[c]=g.transform(f):(o||(a=o4(e),o=!0),s.push(c),n[c]=n[c]!==void 0?n[c]:t[c],r1(d,f))}}),s.length){var u=s4(t,e,s);return a.length&&a.forEach(function(c){var d=yt(c,2),h=d[0],f=d[1];e.getValue(h).set(f)}),e.syncRender(),{target:u,transitionEnd:n}}else return{target:t,transitionEnd:n}};function u4(e,t,r,n){return n4(t)?l4(e,t,r,n):{target:t,transitionEnd:n}}var c4=function(e,t,r,n){var i=NM(e,t,n);return t=i.target,n=i.transitionEnd,u4(e,t,r,n)};function d4(e){return window.getComputedStyle(e)}var n1={treeType:"dom",readValueFromInstance:function(e,t){if(Ol(t)){var r=$h(t);return r&&r.default||0}else{var n=d4(e);return(Fy(t)?n.getPropertyValue(t):n[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var r;return(r=e.style)===null||r===void 0?void 0:r[t]},measureViewportBox:function(e,t){var r=t.transformPagePoint;return zw(e,r)},resetTransform:function(e,t,r){var n=r.transformTemplate;t.style.transform=n?n({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var r=t.vars,n=t.style;delete r[e],delete n[e]},makeTargetAnimatable:function(e,t,r,n){var i=r.transformValues;n===void 0&&(n=!0);var a=t.transition,o=t.transitionEnd,s=er(t,["transition","transitionEnd"]),u=zV(s,a||{},e);if(i&&(o&&(o=i(o)),s&&(s=i(s)),u&&(u=i(u))),n){FV(e,s,u);var c=c4(e,s,u,o);o=c.transitionEnd,s=c.target}return me({transition:a,transitionEnd:o},s)},scrapeMotionValuesFromProps:Vh,build:function(e,t,r,n,i,a,o){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden");var s=n.isEnabled&&i.isHydrated;Rh(t,r,n,i,a,o.transformTemplate,s?Ll:void 0,s?Qw:void 0)},render:Qy},h4=Zw(n1),p4=Zw(me(me({},n1),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var r;return Ol(t)?((r=$h(t))===null||r===void 0?void 0:r.default)||0:(t=Zy.has(t)?t:Yy(t),e.getAttribute(t))},scrapeMotionValuesFromProps:tw,build:function(e,t,r,n,i,a,o){var s=n.isEnabled&&i.isHydrated;Dh(t,r,n,i,a,o.transformTemplate,s?Ll:void 0,s?Qw:void 0)},render:ew})),f4=function(e,t){return Nh(e)?p4(t,{enableHardwareAcceleration:!1}):h4(t,{enableHardwareAcceleration:!0})},g4=me(me(me(me({},QV),yV),AM),$M),i1=v5(function(e,t){return dD(e,t,g4,f4)});function m4(){var e=L.useRef(!1),t=yt(L.useState(0),2),r=t[0],n=t[1];return Bh(function(){return e.current=!0}),L.useCallback(function(){!e.current&&n(r+1)},[r])}var km=0;function v4(){var e=km;return km++,e}var oc=function(e){var t=e.children,r=e.initial,n=e.isPresent,i=e.onExitComplete,a=e.custom,o=e.presenceAffectsLayout,s=Na(x4),u=Na(v4),c=L.useMemo(function(){return{id:u,initial:r,isPresent:n,custom:a,onExitComplete:function(d){s.set(d,!0);var h=!0;s.forEach(function(f){f||(h=!1)}),h&&(i==null||i())},register:function(d){return s.set(d,!1),function(){return s.delete(d)}}}},o?void 0:[n]);return L.useMemo(function(){s.forEach(function(d,h){return s.set(h,!1)})},[n]),z.useEffect(function(){!n&&!s.size&&(i==null||i())},[n]),z.createElement(Ga.Provider,{value:c},t)};function x4(){return new Map}var nd={};function yi(e){return e.key||""}function b4(e,t){var r=nd.NODE_ENV!=="production"?new Set:null;e.forEach(function(n){var i=yi(n);nd.NODE_ENV!=="production"&&r&&(r.has(i)&&console.warn('Children of AnimatePresence require unique keys. "'+i+'" is a duplicate.'),r.add(i)),t.set(i,n)})}function y4(e){var t=[];return L.Children.forEach(e,function(r){L.isValidElement(r)&&t.push(r)}),t}var w4=function(e){var t=e.children,r=e.custom,n=e.initial,i=n===void 0?!0:n,a=e.onExitComplete,o=e.exitBeforeEnter,s=e.presenceAffectsLayout,u=s===void 0?!0:s,c=m4(),d=L.useContext(Xw);Jn(d)&&(c=d.forceUpdate);var h=L.useRef(!0),f=y4(t),g=L.useRef(f),x=L.useRef(new Map).current,v=L.useRef(new Set).current;if(b4(f,x),h.current)return h.current=!1,z.createElement(z.Fragment,null,f.map(function(m){return z.createElement(oc,{key:yi(m),isPresent:!0,initial:i?void 0:!1,presenceAffectsLayout:u},m)}));for(var b=Mt([],yt(f)),y=g.current.map(yi),k=f.map(yi),C=y.length,I=0;I<C;I++){var w=y[I];k.indexOf(w)===-1?v.add(w):v.delete(w)}return o&&v.size&&(b=[]),v.forEach(function(m){if(k.indexOf(m)===-1){var T=x.get(m);if(T){var P=y.indexOf(m),V=function(){x.delete(m),v.delete(m);var O=g.current.findIndex(function(B){return B.key===m});g.current.splice(O,1),v.size||(g.current=f,c(),a&&a())};b.splice(P,0,z.createElement(oc,{key:yi(T),isPresent:!1,onExitComplete:V,custom:r,presenceAffectsLayout:u},T))}}}),b=b.map(function(m){var T=m.key;return v.has(T)?m:z.createElement(oc,{key:yi(m),isPresent:!0,presenceAffectsLayout:u},m)}),g.current=b,nd.NODE_ENV!=="production"&&o&&b.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),z.createElement(z.Fragment,null,v.size?b:b.map(function(m){return L.cloneElement(m)}))},Xh={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},k4=yr("span",{baseStyle:Xh});Nr&&(k4.displayName="VisuallyHidden");var S4=yr("input",{baseStyle:Xh});Nr&&(S4.displayName="VisuallyHiddenInput");function Wt(){return Wt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wt.apply(this,arguments)}function Dl(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var C4=["id","isRequired","isInvalid","isDisabled","isReadOnly"],E4=["getRootProps","htmlProps"],a1=Ch({strict:!1,name:"FormControlContext"}),_4=a1[0],qi=a1[1];function I4(e){var t=e.id,r=e.isRequired,n=e.isInvalid,i=e.isDisabled,a=e.isReadOnly,o=Dl(e,C4),s=qL(),u=t||"field-"+s,c=u+"-label",d=u+"-feedback",h=u+"-helptext",f=z.useState(!1),g=f[0],x=f[1],v=z.useState(!1),b=v[0],y=v[1],k=gs(),C=k[0],I=k[1],w=z.useCallback(function(O,B){return O===void 0&&(O={}),B===void 0&&(B=null),Wt({id:h},O,{ref:Ws(B,function(F){F&&y(!0)})})},[h]),m=z.useCallback(function(O,B){var F,J;return O===void 0&&(O={}),B===void 0&&(B=null),Wt({},O,{ref:B,"data-focus":Bt(C),"data-disabled":Bt(i),"data-invalid":Bt(n),"data-readonly":Bt(a),id:(F=O.id)!=null?F:c,htmlFor:(J=O.htmlFor)!=null?J:u})},[u,i,C,n,a,c]),T=z.useCallback(function(O,B){return O===void 0&&(O={}),B===void 0&&(B=null),Wt({id:d},O,{ref:Ws(B,function(F){F&&x(!0)}),"aria-live":"polite"})},[d]),P=z.useCallback(function(O,B){return O===void 0&&(O={}),B===void 0&&(B=null),Wt({},O,o,{ref:B,role:"group"})},[o]),V=z.useCallback(function(O,B){return O===void 0&&(O={}),B===void 0&&(B=null),Wt({},O,{ref:B,role:"presentation","aria-hidden":!0,children:O.children||"*"})},[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!a,isDisabled:!!i,isFocused:!!C,onFocus:I.on,onBlur:I.off,hasFeedbackText:g,setHasFeedbackText:x,hasHelpText:b,setHasHelpText:y,id:u,labelId:c,feedbackId:d,helpTextId:h,htmlProps:o,getHelpTextProps:w,getErrorMessageProps:T,getRootProps:P,getLabelProps:m,getRequiredIndicatorProps:V}}var A4=jn(function(e,t){var r=Th("Form",e),n=_l(e),i=I4(n),a=i.getRootProps;i.htmlProps;var o=Dl(i,E4),s=Mn("chakra-form-control",e.className);return z.createElement(_4,{value:o},z.createElement(Ay,{value:r},z.createElement(yr.div,Wt({},a({},t),{className:s,__css:r.container}))))});Nr&&(A4.displayName="FormControl");var T4=jn(function(e,t){var r=qi(),n=Ih(),i=Mn("chakra-form__helper-text",e.className);return z.createElement(yr.div,Wt({},r==null?void 0:r.getHelpTextProps(e,t),{__css:n.helperText,className:i}))});Nr&&(T4.displayName="FormHelperText");var P4=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function N4(e){var t,r,n,i=qi(),a=e.id,o=e.disabled,s=e.readOnly,u=e.required,c=e.isRequired,d=e.isInvalid,h=e.isReadOnly,f=e.isDisabled,g=e.onFocus,x=e.onBlur,v=Dl(e,P4),b=e["aria-describedby"]?[e["aria-describedby"]]:[];return i!=null&&i.hasFeedbackText&&i!=null&&i.isInvalid&&b.push(i.feedbackId),i!=null&&i.hasHelpText&&b.push(i.helpTextId),Wt({},v,{"aria-describedby":b.join(" ")||void 0,id:a??(i==null?void 0:i.id),isDisabled:(t=o??f)!=null?t:i==null?void 0:i.isDisabled,isReadOnly:(r=s??h)!=null?r:i==null?void 0:i.isReadOnly,isRequired:(n=u??c)!=null?n:i==null?void 0:i.isRequired,isInvalid:d??(i==null?void 0:i.isInvalid),onFocus:lr(i==null?void 0:i.onFocus,g),onBlur:lr(i==null?void 0:i.onBlur,x)})}var O4=jn(function(e,t){var r=Th("FormError",e),n=_l(e),i=qi();return i!=null&&i.isInvalid?z.createElement(Ay,{value:r},z.createElement(yr.div,Wt({},i==null?void 0:i.getErrorMessageProps(n,t),{className:Mn("chakra-form__error-message",e.className),__css:Wt({display:"flex",alignItems:"center"},r.text)}))):null});Nr&&(O4.displayName="FormErrorMessage");var R4=jn(function(e,t){var r=Ih(),n=qi();if(!(n!=null&&n.isInvalid))return null;var i=Mn("chakra-form__error-icon",e.className);return z.createElement(Y3,Wt({ref:t,"aria-hidden":!0},e,{__css:r.icon,className:i}),z.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))});Nr&&(R4.displayName="FormErrorIcon");var L4=["className","children","requiredIndicator","optionalIndicator"],D4=jn(function(e,t){var r,n=Ty("FormLabel",e),i=_l(e);i.className;var a=i.children,o=i.requiredIndicator,s=o===void 0?z.createElement(o1,null):o,u=i.optionalIndicator,c=u===void 0?null:u,d=Dl(i,L4),h=qi(),f=(r=h==null?void 0:h.getLabelProps(d,t))!=null?r:Wt({ref:t},d);return z.createElement(yr.label,Wt({},f,{className:Mn("chakra-form__label",i.className),__css:Wt({display:"block",textAlign:"start"},n)}),a,h!=null&&h.isRequired?s:c)});Nr&&(D4.displayName="FormLabel");var o1=jn(function(e,t){var r=qi(),n=Ih();if(!(r!=null&&r.isRequired))return null;var i=Mn("chakra-form__required-indicator",e.className);return z.createElement(yr.span,Wt({},r==null?void 0:r.getRequiredIndicatorProps(e,t),{__css:n.requiredIndicator,className:i}))});Nr&&(o1.displayName="RequiredIndicator");function qt(){return qt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qt.apply(this,arguments)}var V4=Ch({name:"CheckboxGroupContext",strict:!1}),M4=V4[1];function Yh(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var j4=["isIndeterminate","isChecked"];function F4(e){var t=i1;return"custom"in t&&typeof t.custom=="function"?t.custom(e):t(e)}var s1=F4(yr.svg),B4=function(t){return z.createElement(s1,qt({width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16}},t),z.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"}))},z4=function(t){return z.createElement(s1,qt({width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4}},t),z.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))},H4=function(t){var r=t.open,n=t.children;return z.createElement(w4,{initial:!1},r&&z.createElement(i1.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},n))},W4=function(t){var r=t.isIndeterminate,n=t.isChecked,i=Yh(t,j4),a=r?z4:B4;return z.createElement(H4,{open:n||r},z.createElement(a,i))},U4=["defaultIsChecked","defaultChecked","isChecked","isFocusable","onChange","isIndeterminate","name","value","tabIndex","aria-label","aria-labelledby","aria-invalid"];function $4(e){e===void 0&&(e={});var t=N4(e),r=t.isDisabled,n=t.isReadOnly,i=t.isRequired,a=t.isInvalid,o=t.id,s=t.onBlur,u=t.onFocus,c=t["aria-describedby"],d=e,h=d.defaultIsChecked,f=d.defaultChecked,g=f===void 0?h:f,x=d.isChecked,v=d.isFocusable,b=d.onChange,y=d.isIndeterminate,k=d.name,C=d.value,I=d.tabIndex,w=I===void 0?void 0:I,m=d["aria-label"],T=d["aria-labelledby"],P=d["aria-invalid"],V=Yh(d,U4),O=Sh(V,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),B=Gu(b),F=Gu(s),J=Gu(u),U=gs(),Y=U[0],Z=U[1],le=gs(),Q=le[0],fe=le[1],E=gs(),te=E[0],ae=E[1],N=L.useRef(null),ee=L.useState(!0),H=ee[0],W=ee[1],$=L.useState(!!g),ie=$[0],oe=$[1],de=HL(x,ie),he=de[0],K=de[1];xy({condition:!!h,message:'The "defaultIsChecked" prop has been deprecated and will be removed in a future version. Please use the "defaultChecked" prop instead, which mirrors default React checkbox behavior.'});var xe=L.useCallback(function(_e){if(n||r){_e.preventDefault();return}he||oe(K?_e.target.checked:y?!0:_e.target.checked),B==null||B(_e)},[n,r,K,he,y,B]);Dc(function(){N.current&&(N.current.indeterminate=!!y)},[y]),KL(function(){r&&Z.off()},[r,Z]);var q=r&&!v,re=L.useCallback(function(_e){_e.key===" "&&ae.on()},[ae]),ue=L.useCallback(function(_e){_e.key===" "&&ae.off()},[ae]);Dc(function(){if(N.current){var _e=N.current.checked!==K;_e&&oe(N.current.checked)}},[N.current]);var ve=L.useCallback(function(_e,Ae){_e===void 0&&(_e={}),Ae===void 0&&(Ae=null);var Be=function(ge){ge.preventDefault(),ae.on()};return qt({},_e,{ref:Ae,"data-active":Bt(te),"data-hover":Bt(Q),"data-checked":Bt(K),"data-focus":Bt(Y),"data-indeterminate":Bt(y),"data-disabled":Bt(r),"data-invalid":Bt(a),"data-readonly":Bt(n),"aria-hidden":!0,onMouseDown:lr(_e.onMouseDown,Be),onMouseUp:lr(_e.onMouseUp,ae.off),onMouseEnter:lr(_e.onMouseEnter,fe.on),onMouseLeave:lr(_e.onMouseLeave,fe.off)})},[te,K,r,Y,Q,y,a,n,ae,fe.off,fe.on]),Ce=L.useCallback(function(_e,Ae){return _e===void 0&&(_e={}),Ae===void 0&&(Ae=null),qt({},O,_e,{ref:Ws(Ae,function(Be){Be&&W(Be.tagName==="LABEL")}),onClick:lr(_e.onClick,function(){if(!H){var Be;(Be=N.current)==null||Be.click(),ML(N.current,{nextTick:!0})}}),"data-disabled":Bt(r),"data-checked":Bt(K),"data-invalid":Bt(a)})},[O,r,K,a,H]),Pe=L.useCallback(function(_e,Ae){return _e===void 0&&(_e={}),Ae===void 0&&(Ae=null),qt({},_e,{ref:Ws(N,Ae),type:"checkbox",name:k,value:C,id:o,tabIndex:w,onChange:lr(_e.onChange,xe),onBlur:lr(_e.onBlur,F,Z.off),onFocus:lr(_e.onFocus,J,Z.on),onKeyDown:lr(_e.onKeyDown,re),onKeyUp:lr(_e.onKeyUp,ue),required:i,checked:K,disabled:q,readOnly:n,"aria-label":m,"aria-labelledby":T,"aria-invalid":P?!!P:a,"aria-describedby":c,"aria-disabled":r,style:Xh})},[k,C,o,xe,Z.off,Z.on,F,J,re,ue,i,K,q,n,m,T,P,a,c,r,w]),Ie=L.useCallback(function(_e,Ae){return _e===void 0&&(_e={}),Ae===void 0&&(Ae=null),qt({},_e,{ref:Ae,onMouseDown:lr(_e.onMouseDown,Sm),onTouchStart:lr(_e.onTouchStart,Sm),"data-disabled":Bt(r),"data-checked":Bt(K),"data-invalid":Bt(a)})},[K,r,a]),Ue={isInvalid:a,isFocused:Y,isChecked:K,isActive:te,isHovered:Q,isIndeterminate:y,isDisabled:r,isReadOnly:n,isRequired:i};return{state:Ue,getRootProps:Ce,getCheckboxProps:ve,getInputProps:Pe,getLabelProps:Ie,htmlProps:O}}function Sm(e){e.preventDefault(),e.stopPropagation()}var q4=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],K4=yr("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),G4=yr("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),l1=jn(function(e,t){var r=M4(),n=qt({},r,e),i=Th("Checkbox",n),a=_l(e),o=a.spacing,s=o===void 0?"0.5rem":o,u=a.className,c=a.children,d=a.iconColor,h=a.iconSize,f=a.icon,g=f===void 0?z.createElement(W4,null):f,x=a.isChecked,v=a.isDisabled,b=v===void 0?r==null?void 0:r.isDisabled:v,y=a.onChange,k=a.inputProps,C=Yh(a,q4),I=x;r!=null&&r.value&&a.value&&(I=r.value.includes(a.value));var w=y;r!=null&&r.onChange&&a.value&&(w=DL(r.onChange,y));var m=$4(qt({},C,{isDisabled:b,isChecked:I,onChange:w})),T=m.state,P=m.getInputProps,V=m.getCheckboxProps,O=m.getLabelProps,B=m.getRootProps,F=z.useMemo(function(){return qt({opacity:T.isChecked||T.isIndeterminate?1:0,transform:T.isChecked||T.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:h,color:d},i.icon)},[d,h,T.isChecked,T.isIndeterminate,i.icon]),J=z.cloneElement(g,{__css:F,isIndeterminate:T.isIndeterminate,isChecked:T.isChecked});return z.createElement(G4,qt({__css:i.container,className:Mn("chakra-checkbox",u)},B()),z.createElement("input",qt({className:"chakra-checkbox__input"},P(k,t))),z.createElement(K4,qt({__css:i.control,className:"chakra-checkbox__control"},V()),J),c&&z.createElement(yr.span,qt({className:"chakra-checkbox__label"},O(),{__css:qt({marginStart:s},i.label)}),c))});Nr&&(l1.displayName="Checkbox");const J4=({label:e,isocode:t,isChecked:r,onToggle:n})=>_.jsxs("label",{className:"flex cursor-pointer items-center gap-2 rounded py-0.5 text-xs text-grey-50 hover:bg-grey-700 hover:text-white",children:[_.jsx(l1,{className:"h-4",colorScheme:"primary",isChecked:r,onChange:n}),_.jsx("span",{className:"truncate",title:t,children:e})]}),X4=({detectedLanguageDetails:e,selectedIsocodes:t,onToggleIsocode:r})=>_.jsxs("div",{className:"mt-2 w-full rounded border border-grey-50 bg-grey-800 px-2 py-1.5",children:[_.jsx("p",{className:"mb-1.5 text-xs font-medium text-grey-100",children:"Detected locales"}),_.jsx("div",{className:"flex flex-col gap-1 overflow-y-auto",style:{maxHeight:"5rem"},children:e.map(n=>_.jsx(J4,{label:`${n.native} - ${n.isocode??""}`,isocode:n.isocode,isChecked:t.includes(n.isocode),onToggle:()=>r(n.isocode)},n.isocode))})]}),Y4="Drop or Add a File !",Q4=({getRootProps:e,getInputProps:t,isDragActive:r,file:n,error:i,onResetFile:a,detectedLanguageDetails:o,selectedIsocodes:s,onToggleIsocode:u,onClose:c,onImport:d,setError:h,hasNoSelection:f})=>_.jsxs(_.Fragment,{children:[_.jsxs("div",{className:"mt-4 space-y-2",children:[_.jsxs("div",{...e(),children:[_.jsx("input",{...t()}),_.jsx("div",{className:xr("min-h-[100px] rounded border border-dashed text-center text-sm",{"border-primary":r,"flex items-center justify-center":n}),children:n?_.jsxs("div",{className:"flex items-center justify-center gap-1 px-2",children:[_.jsx("p",{className:"min-w-0 flex-1 truncate",children:n.name}),_.jsx(Ut,{label:"Remove file",container:Lt(),children:_.jsx(Pt,{color:"white",variant:"ghost",onClick:g=>{g.stopPropagation(),a()},"aria-label":"Remove file",children:_.jsx(bt.FdClose,{className:"h-4 w-4"})})})]}):_.jsxs("div",{className:"flex min-h-[100px] w-full flex-col items-center justify-center text-muted",children:[_.jsx("p",{className:"max-w-md px-2 text-center text-xs ",children:'Drag and drop the file with ".json" or ".csv" extension here or click to select it from your computer.'}),_.jsx(bt.FdDownload,{className:"mt-2 h-6 w-6 text-inactive-text"})]})}),i&&_.jsx("div",{className:"flex items-center justify-center p-2",children:_.jsx("p",{className:"text-xs text-negative-text",children:i})})]}),n&&o.length>0&&_.jsx(X4,{detectedLanguageDetails:o,selectedIsocodes:s,onToggleIsocode:u})]}),_.jsxs("div",{className:"mt-4 flex items-center justify-between gap-4",children:[_.jsxs("div",{className:"flex flex-row space-x-1 justify-center items-center text-primary hover:underline cursor-pointer",onClick:()=>{window.open("https://developer.4d.com/qodly/4DQodlyPro/localization#exporting-and-importing-translations","_blank")},children:[_.jsx("p",{className:"text-xs",children:"How to Import an i18n File"}),_.jsx(bt.FdOutload,{className:"ml-1 h-4 w-4"})]}),_.jsxs("div",{className:"flex items-center space-x-2",children:[_.jsx(Pt,{color:"white",variant:"ghost",onClick:c,children:"Cancel"}),_.jsx(Pt,{disabled:f,onClick:()=>{!i&&n?d():n||h(Y4)},children:"Import"})]})]})]}),Z4=({summary:e,onClose:t})=>_.jsxs(_.Fragment,{children:[_.jsxs("div",{className:"mt-4 space-y-4",children:[_.jsx("p",{className:"text-sm text-grey-100",children:"Summary"}),_.jsxs("div",{className:"rounded border border-grey-50 bg-grey-800 px-3 py-3 space-y-2",children:[_.jsxs("div",{className:"flex items-center justify-between text-xs",children:[_.jsx("span",{className:"text-grey-200",children:"Keys Imported"}),_.jsx("span",{className:"font-medium text-white",children:e.importedKeys})]}),_.jsxs("div",{className:"flex items-center justify-between text-xs",children:[_.jsx("span",{className:"text-grey-200",children:"Keys Merged"}),_.jsx("span",{className:"font-medium text-white",children:e.mergedKeys})]}),_.jsxs("div",{className:"flex items-center justify-between text-xs",children:[_.jsx("span",{className:"text-grey-200",children:"Keys Unchanged"}),_.jsx("span",{className:"font-medium text-white",children:e.unchangedKeys})]})]})]}),_.jsx("div",{className:"mt-4 flex justify-end",children:_.jsx("button",{onClick:t,className:"rounded border border-white px-4 py-1.5 text-xs font-medium text-grey-50 hover:bg-white hover:border-white hover:font-bold hover:text-primary-dark",children:"Close"})})]}),e6=({disable:e,enable:t,RenderTrigger:r})=>{const n=On(),{state:{file:i,isOpen:a,supprtedExtension:o,error:s,content:u,detectedLanguages:c,selectedIsocodes:d,showSummaryView:h,summary:f},actions:g}=Ne.useStateObject({file:null,error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],content:{},detectedLanguages:[],selectedIsocodes:[],showSummaryView:!1,summary:{importedKeys:0,mergedKeys:0,unchangedKeys:0}}),x=n.getWebformTabs(),{i18n:{keys:v}}=Rn(),{allSupportedLanguages:b,userLanguages:{supported:y,primary:k},setUserLangSettings:C}=Ln(),I=L.useMemo(()=>b.filter(H=>c.includes(H.isocode)),[b,c]),w=H=>{const W=new Set(y.map(oe=>oe.isocode)),$=H.filter(oe=>!W.has(oe));if($.length===0)return;const ie=$.map(oe=>Sa(oe,b)).filter(oe=>oe!=null).map(oe=>({isocode:oe.isocode}));ie.length!==0&&C({primary:y.length===0?ie[0].isocode:k,supported:y.concat(ie)})},{getRootProps:m,getInputProps:T,isDragActive:P}=h1.useDropzone({async onDropAccepted([H]){if(o.find(W=>H.name.endsWith(W))){g.setError(""),g.setFile(H);const W=await B(H),$=H.name.split(".").pop()||"";try{if($==="csv"){const ie=lL(W);if(!ie.valid){g.setError(ie.message);return}const oe=E(W,$);g.setContent(oe||{});const de=sL(W);g.setDetectedLanguages(de),g.setSelectedIsocodes(de)}else{const ie=JSON.parse(W),oe=uL(ie,vL);if(!oe.valid){g.setError(oe.message);return}const de=E(W,$);g.setContent(de||{});const he=aL(ie);g.setDetectedLanguages(he),g.setSelectedIsocodes(he)}}catch(ie){g.setError(ie.message||"Invalid file");return}}else g.setError(tL.DROP_EVENT_ERROR)},accept:{"application/*":o},multiple:!1}),V=()=>{g.setFileType(""),g.setError(""),g.setFile(null),g.setContent({}),g.setDetectedLanguages([]),g.setSelectedIsocodes([])},O=()=>{g.setIsOpen(!1),g.setShowSummaryView(!1),g.setSummary({importedKeys:0,mergedKeys:0,unchangedKeys:0}),V()},B=H=>new Promise(W=>{const $=new FileReader;$.onload=()=>W($.result),$.readAsText(H)}),F=async(H,W,$)=>{if($){const ie=`WebForms/${W}.WebForm`;await n.actions.setTabContent({path:ie,content:H.content}),Ne.webformSubject.next({path:ie,action:Ne.WebformActions.RECOMPUTE,payload:H.content.components})}else{const ie={...H};await Ne.saveContent({verb:Ne.DesignerRequestVerb.SAVE_CONTENT,content:ie.content,path:`WebForms/${W}.WebForm`})}},J=(H,W)=>{const{content:{components:$}}=we.cloneDeep(H);if(!$)return H;const ie=(he,K,xe,q)=>{if(Array.isArray(he))he.forEach((re,ue)=>{let ve="";xe==="Text"?ve=Array.isArray(re)?`${K}.[${ue}].children`:`${K}.[${ue}]`:ve=`${K}.[${ue}]`,ie(re,ve,xe,q)});else if(we.isObject(he))if(Object.keys(he).length>1){const ue=Object.keys(he),ve={};ue.forEach(Pe=>{const Ie=we.get(he,Pe);if(Pe==="__t")we.set(q,`props.${K}`,Ie);else if(Ie&&Pe.startsWith("states:")){const Ue=Pe.split(":"),_e=Ue.map((Ae,Be)=>Be+1===Ue.length?`i18n:${Ae}`:Ae).join(":");if(!q.custom)return;we.set(ve,`${_e}.${K}`,Ie)}else if(Ie){const Ue=`i18n:${Pe}`;if(!q.custom)return;we.set(ve,`${Ue}.${K}`,Ie)}});const[Ce]=K.split(".");Object.entries(ve).forEach(([Pe,Ie])=>{const Ue=we.get(q,`props.${Ce}`,{}),_e=we.get(q,`custom.${Pe}.${Ce}`);let Ae="";typeof _e=="string"||typeof Ue=="string"?Ae=we.get(Ie,Ce):Ae=we.merge(_e||we.cloneDeep(Ue),we.get(Ie,Ce)),we.set(q,`custom.${Pe}.${Ce}`,Ae)})}else{const ue=Object.entries(he)[0],ve=ue[0],Ce=ue[1];K=`${K}.${ve}`,ie(Ce,K,xe,q)}},oe=Object.entries(W);for(let he=0;he<oe.length;he++){const[K,xe]=oe[he],{resolverName:q,...re}=xe,ue=we.get($,K);if(ue)if(q==="Text"){const{custom:ve,props:Ce}=re;we.set($,K,{...ue,props:{...ue.props,...Ce},custom:{...ue.custom,...ve}})}else Object.entries(re).forEach(([ve,Ce])=>{const Pe=we.get($,K);if(!Pe)return;const Ie=we.cloneDeep(Pe);ie(Ce,ve,q,Ie),we.set($,K,Ie)})}const de=we.cloneDeep(H);return we.set(de,"content.components",$),de},U=H=>H==null||typeof H=="string"&&H.trim()==="",Y=(H,W)=>{const $=H&&we.isObject(H)?H:{},ie=W&&we.isObject(W)?W:{};if(U(ie))return we.cloneDeep($);const oe=we.cloneDeep($);for(const de of Object.keys(ie)){const he=ie[de];if(!he||!we.isObject(he))continue;const K=oe[de],xe=new Set([...Object.keys(he),...K&&we.isObject(K)?Object.keys(K):[]]),q={};for(const re of xe){const ue=we.get(he,re),ve=K&&we.isObject(K)?we.get(K,re):void 0;U(ue)?U(ve)||(q[re]=ve):q[re]=ue}for(const re of rL){const ue=we.get(q,re),ve=K&&we.isObject(K)?we.get(K,re):void 0;!U(ve)&&U(ue)&&we.set(q,re,ve)}oe[de]=q}return oe},Z=(H,W)=>{const $={importedKeys:0,mergedKeys:0,unchangedKeys:0},ie=new Set(Object.keys(W||{}));for(const oe of ie){const de=W[oe],he=H[oe];if(!he||!we.isObject(he)){$.importedKeys+=1;continue}const K=Object.keys(de);let xe=!1;for(const q of K){const re=de[q],ue=we.get(he,q),ve=U(re)&&!U(ue),Ce=String(re??"")===String(ue??"");if(!ve&&!Ce){xe=!0;break}}K.length>0&&!xe?$.unchangedKeys+=1:xe&&($.mergedKeys+=1)}for(const oe of Object.keys(H))ie.has(oe)||($.unchangedKeys+=1);return $},le=async(H,W,$)=>{const{webforms:ie,i18n:oe}=H,de=Y(v,oe),he=Z(v,oe);Ne.i18nSubject.next({action:"set_content",payload:de});const K=xe=>{const q=xe+1===W.length?W.length:xe,re=Math.ceil(q/W.length*100);Ne.tasksManagerSubject.next({id:$,action:"update",type:"i18n",payload:{progress:re,status:re>=100?"finished":"ongoing"}})};if(U(ie))return he;for(let xe=0;xe<W.length;xe++){const q=W[xe],re=x.find(Ie=>Ie.name===q.name&&Ie.type==="webform"),ue=!!re,ve=ue?re:await Ne.getNodeInfo({verb:Ne.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${q.name}.${q.ext}`,as:"json"}),{name:Ce}=ve;if(!ie[Ce]){K(xe);continue}const Pe=J(ve,ie[Ce]);await F(Pe,Ce,ue),K(xe)}return he},Q=H=>{const W=A0(H),{data:$}=od.parse(W),ie={};let oe=[];return $.forEach((de,he)=>{if(he===0){oe=de;return}let K="",xe="";de.forEach((q,re)=>{if(re===0)K=q;else if(re===1)xe=q;else if(K.startsWith("i18n")){if(we.has(ie,K)&&we.get(ie,K))return;we.set(ie,K,q)}else if(q){const{webformName:ue,componentId:ve,propName:Ce}=dO(K);if(we.set(ie,`webforms.${ue}.${ve}.resolverName`,xe),xe==="Text"){const Pe=ju(q),Ie=oe[re];Ie==="__t"?we.set(ie,`webforms.${ue}.${ve}.props.${Ce}`,Pe):we.set(ie,`webforms.${ue}.${ve}.custom.i18n:${Ie}.${Ce}`,Pe)}else{const Pe=oe[re];let Ie=Pe==="i18nkey_default"?"default":Pe;if(Ie.includes(":")){const Ue=Ie.split(":");Ie=Ue.map((_e,Ae)=>Ae===0?`states:${_e}`:Ae===Ue.length-1?`i18n:${_e}`:_e).join(":")}we.set(ie,`${K}.${Ie}`,q)}}})}),ie},fe=H=>{const W=JSON.parse(H),$={},{webforms:ie,i18n:oe}=W;return ie&&Object.keys(ie).forEach(he=>{const K=we.get(ie,he);Object.keys(K).forEach(q=>{const re=we.get(K,q),{props:ue,resolverName:ve}=re;we.set($,`webforms.${he}.${q}.resolverName`,ve),Array.isArray(ue)&&ue.forEach(({__dataPath:Ce,__default:Pe,...Ie})=>{if(ve==="Text"){const Ue=ju(Pe);we.set($,`webforms.${he}.${q}.props.doc`,Ue),Object.keys(Ie).forEach(_e=>{const Ae=ju(Ie[_e]);we.set($,`webforms.${he}.${q}.custom.i18n:${_e}.doc`,Ae)})}else we.set($,`webforms.${he}.${q}.${Ce}.__t`,Pe),Object.keys(Ie).forEach(Ue=>{let _e=Ue;if(_e.includes(":")){const Ae=_e.split(":");_e=Ae.map((Be,Nt)=>Nt===0?`states:${Be}`:Nt===Ae.length-1?`i18n:${Be}`:Be).join(":")}we.set($,`webforms.${he}.${q}.${Ce}.${_e}`,Ie[Ue])})})})}),oe&&Object.keys(oe).forEach(he=>{const K=we.get(oe,he);K&&Object.keys(K).forEach(q=>{const re=we.get(K,q);we.set($,`i18n.${he}.${q}`,re)})}),$},E=(H,W)=>{switch(W){case"csv":return Q(H);case"json":return fe(H)}},te=async()=>{if(i){const H=id.generate().toString();try{Ne.tasksManagerSubject.next({id:H,action:"add",type:"i18n",payload:{date:new Date().toISOString(),progress:0,name:"Import i18n",status:"ongoing"}});const W=await I0(),$=oL(u,d),ie=await le($,W,H);g.setSummary(ie),g.setShowSummaryView(!0),w(d)}catch(W){Ne.tasksManagerSubject.next({id:H,type:"i18n",action:"update",payload:{status:"canceled"}}),Ne.tasksManagerSubject.next({id:H,type:"i18n",action:"error",payload:{errorMessage:W.message||"Import file error"}})}}};if(!t)return _.jsx(_.Fragment,{});const ae=()=>{g.setIsOpen(!0),V()},N=H=>{g.setSelectedIsocodes(d.includes(H)?d.filter(W=>W!==H):[...d,H])},ee=r?_.jsx(r,{onClick:ae,disabled:!!e}):_.jsx(Ut,{label:"Import",container:Lt(),children:_.jsx(Pt,{disabled:e,color:"white",variant:"ghost",onClick:()=>{g.setIsOpen(!0),V()},children:_.jsx(bt.FdDownload,{className:"h-4 w-4"})})});return _.jsxs(_.Fragment,{children:[ee,_.jsx(iy,{isOpen:a,onClose:O,title:h?"Import summary":"Import",children:h?_.jsx(Z4,{summary:f,onClose:O}):_.jsx(Q4,{getRootProps:m,getInputProps:T,isDragActive:P,file:i,error:s,onResetFile:V,detectedLanguages:c,detectedLanguageDetails:I,selectedIsocodes:d,onToggleIsocode:N,onClose:O,onImport:te,setError:g.setError,hasNoSelection:d.length===0})})]})},t6=({onClick:e})=>_.jsx(Ut,{label:"Edit",container:Lt(),children:_.jsx(Pt,{color:"white",variant:"ghost","data-cy":"locales-list-item-edit-button",onClick:t=>{t.stopPropagation(),e()},children:_.jsx(bt.FdPen,{})})}),r6=({onClick:e,disable:t})=>t?_.jsx(_.Fragment,{}):_.jsx(Ut,{label:"Remove",container:Lt(),children:_.jsx(Pt,{color:"white",variant:"ghost","data-cy":"locales-list-item-remove-button",disabled:t,onClick:r=>{r.stopPropagation(),e()},children:_.jsx(bt.FdTrash,{})})}),n6=({collapse:e,onClick:t})=>_.jsx(Ut,{label:"Collapse",container:Lt(),children:_.jsx(Pt,{color:"white",variant:"ghost",onClick:r=>{r.stopPropagation(),t()},children:_.jsx(bt.FdDown,{className:xr({"-rotate-90":e})})})}),i6=({lang:e,onCancel:t,onConfirm:r})=>{var g,x,v;const{allSupportedLanguages:n}=Ln(),{i18n:i}=Rn(),a=L.useMemo(()=>{var y,k;const b=new Set;return(y=i==null?void 0:i.userLang)!=null&&y.primary&&b.add(i.userLang.primary),(k=i==null?void 0:i.userLang)!=null&&k.supported&&i.userLang.supported.forEach(C=>{b.add(C.isocode)}),n},[n,(g=i==null?void 0:i.userLang)==null?void 0:g.primary,(x=i==null?void 0:i.userLang)==null?void 0:x.supported]),{state:{isOpen:o,supported:s,selectedLanguage:u},actions:c}=Ne.useStateObject({isOpen:!0,supported:a,editing:!1,selectedLanguage:null,highlightedLanguageIndex:-1}),d=Ne.useOutsideClick(()=>{u&&r(u)}),h=()=>{t()},f=()=>{u?r(u):t()};return _.jsxs(Bi,{depth:4,borderType:"light",className:"flex flex-row justify-between items-center border-1 mb-2 rounded border px-2 py-2 hover:cursor-pointer",ref:d,children:[_.jsx(Ns.Root,{className:"w-48",value:u,options:a,isOpen:o,onOpenChange:c.setIsOpen,isSearchable:!0,getOptionLabel:b=>{const y=Sa(b.isocode,n);return`${y==null?void 0:y.native} - ${y==null?void 0:y.isocode}`},getOptionValue:b=>b.isocode,onChange:b=>{b&&(c.setSelectedLanguage({isocode:b.isocode}),c.setSupported(a))},children:_.jsx(Ns.Field,{"data-cy":"locales-new-language-input",autoFocus:!0,hideSelectedOptions:!0,placeholder:((v=Sa(e==null?void 0:e.isocode,n))==null?void 0:v.locale)||"Select a language",onKeyUp:b=>{b.key==="Enter"&&f()},onClick:()=>c.setIsOpen(!0)})}),_.jsxs("div",{className:"flex space-x-1",children:[_.jsx(Ut,{label:"Cancel",container:Lt(),children:_.jsx(Pt,{"data-cy":"locales-new-language-cancel-button",onClick:h,color:"white",variant:"ghost",children:_.jsx(bt.FdClose,{})})}),_.jsx(Ut,{label:"Confirm",container:Lt(),children:_.jsx(Pt,{"data-cy":"locales-new-language-confirm-button",onClick:f,color:"white",variant:"ghost",children:_.jsx(bt.FdCheckCircle,{})})})]})]})},u1=({activate:e,...t})=>e?_.jsx(i6,{...t}):_.jsx(_.Fragment,{}),a6=({primary:e,selected:t,selectMode:r,lang:n,onSelect:i,onRemove:a,onEdit:o,"data-cy":s})=>{const{state:{hover:u,selected:c,collapse:d,editing:h},actions:{setHover:f,setSelected:g,setCollapse:x,setEditing:v}}=Ne.useStateObject({hover:!1,selected:!1,collapse:!0,editing:!1}),{selectedLanguage:b,setSelectedLanguage:y}=Ln(),{isocode:k,locale:C,native:I}=n||{isocode:"",locale:"",native:""},w=e===k,m=()=>{f(!0)},T=()=>{f(!1)},P=()=>{g(!c),i(k,!c)},V=()=>{v(!0)},O=()=>{a(k)},B=()=>{y(n)},F=U=>{v(!1),o(n,U)},J=()=>{v(!1)};return L.useEffect(()=>{g(t)},[t]),L.useEffect(()=>{w&&y(n)},[]),h?_.jsx(u1,{lang:n,activate:h,onCancel:J,onConfirm:F}):_.jsxs(Bi,{depth:4,borderType:(b==null?void 0:b.isocode)===(n==null?void 0:n.isocode)?"primary":"light","data-cy":s,className:xr("border-[1px] mb-2 flex flex-col space-y-2 rounded px-2 py-2 hover:cursor-pointer"),onMouseEnter:m,onMouseLeave:T,onClick:B,children:[_.jsxs("div",{className:"flex flex-row justify-between items-center",children:[_.jsxs("div",{className:"flex flex-row space-x-1",children:[u||r?_.jsx(ud,{value:c,onChange:P,size:"sm"}):_.jsx(_.Fragment,{}),_.jsx(bt.FdLocalization,{className:xr("w-4 h-4",{hidden:r||u})}),_.jsx("span",{className:xr("text-xs",{"italic font-bold":w}),children:I})]}),_.jsxs("div",{className:"flex flex-row items-center space-x-1",children:[w&&_.jsx(pC,{label:"Primary"}),_.jsx(t6,{onClick:V}),_.jsx(r6,{disable:w,onClick:O}),_.jsx(n6,{collapse:d,onClick:()=>x(!d)})]})]}),_.jsxs("div",{className:xr("ml-6 flex justify-between p-1 text-xs",{hidden:d}),children:[_.jsx("span",{children:"English name"}),_.jsx("span",{className:"text-muted",children:C})]}),_.jsxs("div",{className:xr("ml-6 flex justify-between p-1 text-xs",{hidden:d}),children:[_.jsx("span",{children:"Iso Code"}),_.jsx("span",{className:"text-muted",children:k})]})]})},o6=()=>{const{state:{selectedLanguages:e,shouldAddNewLocal:t,selectAll:r},actions:n}=Ne.useStateObject({selectAll:!1,selectedLanguages:[],shouldAddNewLocal:!1,allSupportedLanguages:[]}),{userLanguages:{supported:i=[],primary:a},addFirstLanguage:o,setAddFirstLanguage:s,setUserLangSettings:u,setSelectedLanguage:c,allSupportedLanguages:d}=Ln(),{editLanguageKeys:h,deleteLanguageKeys:f}=Rn(),g=x1(e),x=b1(e),v=On(),b=v.getI18nCurrent(),y=v.getTabs(),k=(U,Y)=>{const Z=Y?e.concat(U):e.filter(le=>le!==U);n.setSelectedLanguages(Z),r&&n.setSelectAll(!1)},C=U=>{n.setShouldAddNewLocal(U)},I=()=>{n.setSelectAll(!r),r?n.setSelectedLanguages([]):n.setSelectedLanguages(i.map(U=>U.isocode))},w=U=>{const Y={primary:i.length===0?U.isocode:a,supported:i.concat(U)};u(Y),n.setShouldAddNewLocal(!1)};L.useEffect(()=>{o&&n.setShouldAddNewLocal(!0)},[o]);const m=(U,Y)=>{const Z=`i18n:${Y}`,le=`:i18n:${Y}`,Q=fe=>{fe.custom&&Object.keys(fe.custom).forEach(E=>{(E.includes(Z)||E.endsWith(le))&&delete fe.custom[E]})};return Object.values(U).forEach(fe=>Q(fe)),U},T=(U,Y)=>U.map(Z=>{var Q;const le=we.cloneDeep(Z);return(Q=le.content)!=null&&Q.components&&(le.content={...le.content,components:m({...le.content.components},Y)}),le}),P=(U,Y,Z)=>{const le=`i18n:${Y}`,Q=`:i18n:${Y}`,fe=E=>{E.custom&&Object.keys(E.custom).forEach(te=>{if(te===le){const ae=E.custom[te];delete E.custom[te],E.custom[`i18n:${Z}`]=ae}else if(te.endsWith(Q)){const ae=E.custom[te];delete E.custom[te];const N=te.replace(`:i18n:${Y}`,`:i18n:${Z}`);E.custom[N]=ae}})};return Object.values(U).forEach(E=>fe(E)),U},V=(U,Y,Z)=>U.map(le=>{var fe;const Q=we.cloneDeep(le);return(fe=Q.content)!=null&&fe.components&&(Q.content={...Q.content,components:P({...Q.content.components},Y,Z)}),Q}),O=async U=>{const{confirmed:Y}=await v.actions.openModal({title:"Delete Language",message:"Your translations will be lost , want to proceed ?",type:Ne.ModalType.CONFIRM,color:Ne.ModalColor.WARNING,icon:"FdWarningDanger"});if(!Y)return;f({isocode:U});const Z=T(y,U);v.actions.setTabs(Z);const le={primary:a,supported:i.filter(Q=>Q.isocode!==U)};u(le),e.includes(U)&&n.setSelectedLanguages(e.filter(Q=>Q!==U)),le.supported.length===0&&s(!1),U===b&&v.actions.setI18nCurrent("")},B=(U,Y)=>{const Z={primary:a===U.isocode?Y.isocode:a,supported:i.map(Q=>Q.isocode===U.isocode?Y:Q)},le=V(y,U.isocode,Y.isocode);v.actions.setTabs(le),b===U.isocode&&v.actions.setI18nCurrent(Y.isocode),h(U,Y),u(Z),c(Y)},F=()=>{C(!1),i.length===0&&s(!1)},J=()=>{t?Ne.toastSubject.next({kind:"warning",message:"To add a new locale, please confirm your selection by clicking 'Confirm'"}):C(!0)};return _.jsxs("div",{className:"flex w-72 flex-col space-y-2 px-2 py-3 shrink-0",children:[_.jsxs("div",{className:"flex flex-row justify-between",children:[_.jsxs("div",{className:"flex flex-row items-center justify-center space-x-2 text-sm",children:[_.jsx(bt.FdLocalization,{className:"h-4 w-4"}),_.jsx("span",{className:"text-sm",children:"Locales "})]}),_.jsxs("div",{className:"space-x-2",children:[_.jsx(Ne.Tip,{tipKey:"editors:i18n:locals",alwaysOn:!0}),_.jsx(Ut,{label:"Add new language",container:Lt(),children:_.jsx(Pt,{"data-cy":"locales-header-add-button",color:"white",variant:"ghost",onClick:J,children:_.jsx(bt.FdPlus,{})})})]})]}),_.jsxs("div",{className:"flex px-[5px] justify-between",children:[_.jsxs("div",{"data-cy":"locales-select-all-checkbox",className:xr("flex items-center justify-center space-x-1",{visible:g,invisible:!g}),children:[_.jsx(ud,{value:r,onChange:I,size:"sm"}),_.jsx("span",{className:"text-xs",children:"Select all"})]}),_.jsxs("div",{className:"flex flex-row items-center justify-center space-x-1",children:[_.jsx(eL,{"data-cy":"localization-export-button",enable:!0,disable:!1,toExport:e}),_.jsx(e6,{"data-cy":"localization-import-button",enable:!0,disable:!1})]})]}),_.jsx(u1,{activate:t,onConfirm:w,onCancel:F}),_.jsx("div",{style:{height:t?"calc(100vh - 14.75rem)":"calc(100vh - 11.75rem)"},children:_.jsx(d1,{"data-cy":"locales-list",style:{height:"100%",width:"100%"},children:[...i].sort(U=>U.isocode===a?-1:1).map((U,Y)=>{const Z=Sa(U.isocode,d);return _.jsx(a6,{"data-cy":`locales-list-item-${Z==null?void 0:Z.isocode}`,primary:a,selected:r||e.includes(Z==null?void 0:Z.isocode),lang:Z,onSelect:k,selectMode:x,onRemove:O,onEdit:B},Y)})})})]})},s6=({onAddLocal:e})=>_.jsxs(Bi,{depth:1,className:"flex flex-col justify-center items-center space-y-3 pb-[30%] w-full h-full text-inactive-text",children:[_.jsx(bt.FdInfoBold,{className:"h-8 w-8"}),_.jsx("span",{className:"text-sm text-center",children:"No locale is available yet. Click on + to add new one."}),_.jsxs(Pt,{onClick:e,size:"lg",children:[_.jsx(bt.FdPlus,{}),_.jsx("span",{children:"Add new Locale"})]})]}),l6=()=>{var o;const{userLanguages:e,addFirstLanguage:t,setAddFirstLanguage:r}=Ln(),i=(((o=e.supported)==null?void 0:o.length)??0)===0&&!t,a=()=>{r(!0)};return i?_.jsx(s6,{onAddLocal:a}):_.jsxs(Bi,{depth:1,className:xr("flex flex-row w-full h-full",{"justify-center items-center":i}),children:[_.jsx(o6,{}),_.jsx(GE,{})]})},c1=()=>_.jsx(Gm,{children:_.jsx(l6,{})}),u6=()=>{const{modals:e,closeModal:t,editModal:r}=Fm();return _.jsx(_.Fragment,{children:e.map((n,i)=>_.jsx(Ne.Modal,{hasOverlay:i===0,...n,onClose:t,onEdit:r,container:Lt()},n.id))})},c6=({onTabsChange:e,onI18nCurrentChange:t})=>{const r=On(),n=r.getTabs(),i=r.getI18nCurrent();return Ne.useDidMountEffect(()=>{e&&e(n)},[e,n]),Ne.useDidMountEffect(()=>{t&&t(i)},[t,i]),_.jsxs(_.Fragment,{children:[_.jsx("div",{className:`relative h-screen z-10 overflow-hidden ${ad.LOCALIZATION_EDITOR_SCOPE_CLASS}`,children:_.jsx(c1,{})}),_.jsx(u6,{})]})},d6=({children:e})=>{const t=On();return _.jsx($m,{getSupportedLanguages:r=>t.getSupportedLanguages(r),i18nCurrent:t.getI18nCurrent(),activeTabPath:t.getActiveTabPath(),flagsForActiveTab:t.getFlagsByPath(t.getActiveTabPath()),children:e})},h6=({userComponents:e,buildResolver:t,supportedLanguages:r,onChange:n,...i})=>{const a=jm(e,t,r),o=s=>{try{n==null||n(JSON.stringify(s))}catch{}};return _.jsx(_m,{adapter:a,children:_.jsx(Hm,{isI18nEnabled:!0,onI18nChange:o,children:_.jsx(d6,{children:_.jsx(Ne.TipsProvider,{children:_.jsx(c6,{...i})})})})})},p6=({tabs:e=[],i18nCurrent:t="",initialValue:r,...n})=>_.jsx(Mm,{tabs:e,i18nCurrent:t,initialI18nFile:r,children:_.jsx(h6,{...n})});exports.LOCALIZATION_EDITOR_SCOPE_CLASS=ad.LOCALIZATION_EDITOR_SCOPE_CLASS;exports.EditorStateAdapterProvider=_m;exports.EditorStateContext=nl;exports.I18N_ACTIONS=F1;exports.I18N_CONSTANT=zm;exports.I18nProvider=Hm;exports.LocalizationEditor=c1;exports.LocalizationEditorProvider=Gm;exports.LocalizationProvider=$m;exports.Portal=$E;exports.ReducerAdapterProvider=Mm;exports.Standalone=p6;exports.getDefaultContainer=Lt;exports.getDefaultInitialState=Vm;exports.getLanguageDetails=Sa;exports.localizationReducer=Dm;exports.useEditorStateAdapter=On;exports.useI18n=Rn;exports.useLocalization=qm;exports.useLocalizationEditor=Ln;exports.useModals=Fm;exports.useReducerAdapter=jm;exports.useReduxAdapter=w1;
|
|
120
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return U.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},nE="DialogDescriptionWarning",iE=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${If(nE).contentName}}.`;return U.useEffect(()=>{var s;const r=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},rE=mf,aE=bf,sE=yf,oE=wf,lE=Sf;const Af=({children:e,isOpen:t,onClose:n,title:i})=>C.jsx(rE,{open:t,onOpenChange:r=>!r&&n(),children:C.jsxs(aE,{container:it(),children:[C.jsx(sE,{className:`fixed inset-0 z-[1000] bg-black bg-opacity-75
|
|
121
|
+
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
122
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0`}),C.jsx("div",{className:"fixed inset-0 z-[1001] overflow-y-auto",children:C.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:C.jsxs(oE,{onPointerDownOutside:r=>r.preventDefault(),"aria-describedby":void 0,className:`w-full space-y-2 max-w-md transform overflow-hidden rounded border border-grey-50 bg-grey-900 px-5 py-4 text-left align-middle text-white shadow-xl
|
|
123
|
+
data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:scale-95 data-[state=open]:duration-300
|
|
124
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:scale-95 data-[state=closed]:duration-200`,children:[C.jsxs("div",{className:"flex flex-col items-center justify-center space-y-2",children:[C.jsx(Je.FdDownload,{className:"h-6 w-6"}),C.jsx(lE,{className:"mt-4 text-sm font-bold",children:i})]}),C.jsx("div",{className:"space-y-2",children:e})]})})})]})});var Wi={exports:{}},Gi={exports:{}},We={};/** @license React v16.13.1
|
|
125
|
+
* react-is.production.min.js
|
|
126
|
+
*
|
|
127
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the MIT license found in the
|
|
130
|
+
* LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/var au;function uE(){if(au)return We;au=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function I(y){if(typeof y=="object"&&y!==null){var g=y.$$typeof;switch(g){case t:switch(y=y.type,y){case u:case f:case i:case s:case r:case h:return y;default:switch(y=y&&y.$$typeof,y){case l:case p:case b:case m:case o:return y;default:return g}}case n:return g}}}function N(y){return I(y)===f}return We.AsyncMode=u,We.ConcurrentMode=f,We.ContextConsumer=l,We.ContextProvider=o,We.Element=t,We.ForwardRef=p,We.Fragment=i,We.Lazy=b,We.Memo=m,We.Portal=n,We.Profiler=s,We.StrictMode=r,We.Suspense=h,We.isAsyncMode=function(y){return N(y)||I(y)===u},We.isConcurrentMode=N,We.isContextConsumer=function(y){return I(y)===l},We.isContextProvider=function(y){return I(y)===o},We.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},We.isForwardRef=function(y){return I(y)===p},We.isFragment=function(y){return I(y)===i},We.isLazy=function(y){return I(y)===b},We.isMemo=function(y){return I(y)===m},We.isPortal=function(y){return I(y)===n},We.isProfiler=function(y){return I(y)===s},We.isStrictMode=function(y){return I(y)===r},We.isSuspense=function(y){return I(y)===h},We.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===i||y===f||y===s||y===r||y===h||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===b||y.$$typeof===m||y.$$typeof===o||y.$$typeof===l||y.$$typeof===p||y.$$typeof===S||y.$$typeof===E||y.$$typeof===k||y.$$typeof===v)},We.typeOf=I,We}var Ge={},su;function cE(){if(su)return Ge;su=1;var e={};/** @license React v16.13.1
|
|
132
|
+
* react-is.development.js
|
|
133
|
+
*
|
|
134
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the MIT license found in the
|
|
137
|
+
* LICENSE file in the root directory of this source tree.
|
|
138
|
+
*/return e.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,f=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,b=t?Symbol.for("react.memo"):60115,v=t?Symbol.for("react.lazy"):60116,S=t?Symbol.for("react.block"):60121,E=t?Symbol.for("react.fundamental"):60117,k=t?Symbol.for("react.responder"):60118,I=t?Symbol.for("react.scope"):60119;function N(Y){return typeof Y=="string"||typeof Y=="function"||Y===r||Y===p||Y===o||Y===s||Y===d||Y===m||typeof Y=="object"&&Y!==null&&(Y.$$typeof===v||Y.$$typeof===b||Y.$$typeof===l||Y.$$typeof===u||Y.$$typeof===h||Y.$$typeof===E||Y.$$typeof===k||Y.$$typeof===I||Y.$$typeof===S)}function y(Y){if(typeof Y=="object"&&Y!==null){var le=Y.$$typeof;switch(le){case n:var de=Y.type;switch(de){case f:case p:case r:case o:case s:case d:return de;default:var Se=de&&de.$$typeof;switch(Se){case u:case h:case v:case b:case l:return Se;default:return le}}case i:return le}}}var g=f,A=p,M=u,F=l,R=n,j=h,B=r,D=v,se=b,ue=i,te=o,ae=s,ge=d,ve=!1;function L(Y){return ve||(ve=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(Y)||y(Y)===f}function G(Y){return y(Y)===p}function ne(Y){return y(Y)===u}function O(Y){return y(Y)===l}function he(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===n}function W(Y){return y(Y)===h}function Z(Y){return y(Y)===r}function H(Y){return y(Y)===v}function K(Y){return y(Y)===b}function J(Y){return y(Y)===i}function ie(Y){return y(Y)===o}function X(Y){return y(Y)===s}function $(Y){return y(Y)===d}Ge.AsyncMode=g,Ge.ConcurrentMode=A,Ge.ContextConsumer=M,Ge.ContextProvider=F,Ge.Element=R,Ge.ForwardRef=j,Ge.Fragment=B,Ge.Lazy=D,Ge.Memo=se,Ge.Portal=ue,Ge.Profiler=te,Ge.StrictMode=ae,Ge.Suspense=ge,Ge.isAsyncMode=L,Ge.isConcurrentMode=G,Ge.isContextConsumer=ne,Ge.isContextProvider=O,Ge.isElement=he,Ge.isForwardRef=W,Ge.isFragment=Z,Ge.isLazy=H,Ge.isMemo=K,Ge.isPortal=J,Ge.isProfiler=ie,Ge.isStrictMode=X,Ge.isSuspense=$,Ge.isValidElementType=N,Ge.typeOf=y})(),Ge}var ou;function Tf(){if(ou)return Gi.exports;ou=1;var e={};return e.NODE_ENV==="production"?Gi.exports=uE():Gi.exports=cE(),Gi.exports}/*
|
|
139
|
+
object-assign
|
|
140
|
+
(c) Sindre Sorhus
|
|
141
|
+
@license MIT
|
|
142
|
+
*/var Aa,lu;function hE(){if(lu)return Aa;lu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function r(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var o={},l=0;l<10;l++)o["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(o).map(function(p){return o[p]});if(u.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(p){f[p]=p}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Aa=r()?Object.assign:function(s,o){for(var l,u=i(s),f,p=1;p<arguments.length;p++){l=Object(arguments[p]);for(var h in l)t.call(l,h)&&(u[h]=l[h]);if(e){f=e(l);for(var d=0;d<f.length;d++)n.call(l,f[d])&&(u[f[d]]=l[f[d]])}}return u},Aa}var Ta,uu;function As(){if(uu)return Ta;uu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ta=e,Ta}var Na,cu;function Nf(){return cu||(cu=1,Na=Function.call.bind(Object.prototype.hasOwnProperty)),Na}var Pa,hu;function fE(){if(hu)return Pa;hu=1;var e={},t=function(){};if(e.NODE_ENV!=="production"){var n=As(),i={},r=Nf();t=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function s(o,l,u,f,p){if(e.NODE_ENV!=="production"){for(var h in o)if(r(o,h)){var d;try{if(typeof o[h]!="function"){var m=Error((f||"React class")+": "+u+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}d=o[h](l,h,f,u,null,n)}catch(v){d=v}if(d&&!(d instanceof Error)&&t((f||"React class")+": type specification of "+u+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in i)){i[d.message]=!0;var b=p?p():"";t("Failed "+u+" type: "+d.message+(b??""))}}}}return s.resetWarningCache=function(){e.NODE_ENV!=="production"&&(i={})},Pa=s,Pa}var Oa,fu;function pE(){if(fu)return Oa;fu=1;var e={},t=Tf(),n=hE(),i=As(),r=Nf(),s=fE(),o=function(){};e.NODE_ENV!=="production"&&(o=function(u){var f="Warning: "+u;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function l(){return null}return Oa=function(u,f){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function d(G){var ne=G&&(p&&G[p]||G[h]);if(typeof ne=="function")return ne}var m="<<anonymous>>",b={array:k("array"),bigint:k("bigint"),bool:k("boolean"),func:k("function"),number:k("number"),object:k("object"),string:k("string"),symbol:k("symbol"),any:I(),arrayOf:N,element:y(),elementType:g(),instanceOf:A,node:j(),objectOf:F,oneOf:M,oneOfType:R,shape:D,exact:se};function v(G,ne){return G===ne?G!==0||1/G===1/ne:G!==G&&ne!==ne}function S(G,ne){this.message=G,this.data=ne&&typeof ne=="object"?ne:{},this.stack=""}S.prototype=Error.prototype;function E(G){if(e.NODE_ENV!=="production")var ne={},O=0;function he(Z,H,K,J,ie,X,$){if(J=J||m,X=X||K,$!==i){if(f){var Y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Y.name="Invariant Violation",Y}else if(e.NODE_ENV!=="production"&&typeof console<"u"){var le=J+":"+K;!ne[le]&&O<3&&(o("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+J+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ne[le]=!0,O++)}}return H[K]==null?Z?H[K]===null?new S("The "+ie+" `"+X+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new S("The "+ie+" `"+X+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:G(H,K,J,ie,X)}var W=he.bind(null,!1);return W.isRequired=he.bind(null,!0),W}function k(G){function ne(O,he,W,Z,H,K){var J=O[he],ie=ae(J);if(ie!==G){var X=ge(J);return new S("Invalid "+Z+" `"+H+"` of type "+("`"+X+"` supplied to `"+W+"`, expected ")+("`"+G+"`."),{expectedType:G})}return null}return E(ne)}function I(){return E(l)}function N(G){function ne(O,he,W,Z,H){if(typeof G!="function")return new S("Property `"+H+"` of component `"+W+"` has invalid PropType notation inside arrayOf.");var K=O[he];if(!Array.isArray(K)){var J=ae(K);return new S("Invalid "+Z+" `"+H+"` of type "+("`"+J+"` supplied to `"+W+"`, expected an array."))}for(var ie=0;ie<K.length;ie++){var X=G(K,ie,W,Z,H+"["+ie+"]",i);if(X instanceof Error)return X}return null}return E(ne)}function y(){function G(ne,O,he,W,Z){var H=ne[O];if(!u(H)){var K=ae(H);return new S("Invalid "+W+" `"+Z+"` of type "+("`"+K+"` supplied to `"+he+"`, expected a single ReactElement."))}return null}return E(G)}function g(){function G(ne,O,he,W,Z){var H=ne[O];if(!t.isValidElementType(H)){var K=ae(H);return new S("Invalid "+W+" `"+Z+"` of type "+("`"+K+"` supplied to `"+he+"`, expected a single ReactElement type."))}return null}return E(G)}function A(G){function ne(O,he,W,Z,H){if(!(O[he]instanceof G)){var K=G.name||m,J=L(O[he]);return new S("Invalid "+Z+" `"+H+"` of type "+("`"+J+"` supplied to `"+W+"`, expected ")+("instance of `"+K+"`."))}return null}return E(ne)}function M(G){if(!Array.isArray(G))return e.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),l;function ne(O,he,W,Z,H){for(var K=O[he],J=0;J<G.length;J++)if(v(K,G[J]))return null;var ie=JSON.stringify(G,function($,Y){var le=ge(Y);return le==="symbol"?String(Y):Y});return new S("Invalid "+Z+" `"+H+"` of value `"+String(K)+"` "+("supplied to `"+W+"`, expected one of "+ie+"."))}return E(ne)}function F(G){function ne(O,he,W,Z,H){if(typeof G!="function")return new S("Property `"+H+"` of component `"+W+"` has invalid PropType notation inside objectOf.");var K=O[he],J=ae(K);if(J!=="object")return new S("Invalid "+Z+" `"+H+"` of type "+("`"+J+"` supplied to `"+W+"`, expected an object."));for(var ie in K)if(r(K,ie)){var X=G(K,ie,W,Z,H+"."+ie,i);if(X instanceof Error)return X}return null}return E(ne)}function R(G){if(!Array.isArray(G))return e.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var ne=0;ne<G.length;ne++){var O=G[ne];if(typeof O!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ve(O)+" at index "+ne+"."),l}function he(W,Z,H,K,J){for(var ie=[],X=0;X<G.length;X++){var $=G[X],Y=$(W,Z,H,K,J,i);if(Y==null)return null;Y.data&&r(Y.data,"expectedType")&&ie.push(Y.data.expectedType)}var le=ie.length>0?", expected one of type ["+ie.join(", ")+"]":"";return new S("Invalid "+K+" `"+J+"` supplied to "+("`"+H+"`"+le+"."))}return E(he)}function j(){function G(ne,O,he,W,Z){return ue(ne[O])?null:new S("Invalid "+W+" `"+Z+"` supplied to "+("`"+he+"`, expected a ReactNode."))}return E(G)}function B(G,ne,O,he,W){return new S((G||"React class")+": "+ne+" type `"+O+"."+he+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+W+"`.")}function D(G){function ne(O,he,W,Z,H){var K=O[he],J=ae(K);if(J!=="object")return new S("Invalid "+Z+" `"+H+"` of type `"+J+"` "+("supplied to `"+W+"`, expected `object`."));for(var ie in G){var X=G[ie];if(typeof X!="function")return B(W,Z,H,ie,ge(X));var $=X(K,ie,W,Z,H+"."+ie,i);if($)return $}return null}return E(ne)}function se(G){function ne(O,he,W,Z,H){var K=O[he],J=ae(K);if(J!=="object")return new S("Invalid "+Z+" `"+H+"` of type `"+J+"` "+("supplied to `"+W+"`, expected `object`."));var ie=n({},O[he],G);for(var X in ie){var $=G[X];if(r(G,X)&&typeof $!="function")return B(W,Z,H,X,ge($));if(!$)return new S("Invalid "+Z+" `"+H+"` key `"+X+"` supplied to `"+W+"`.\nBad object: "+JSON.stringify(O[he],null," ")+`
|
|
143
|
+
Valid keys: `+JSON.stringify(Object.keys(G),null," "));var Y=$(K,X,W,Z,H+"."+X,i);if(Y)return Y}return null}return E(ne)}function ue(G){switch(typeof G){case"number":case"string":case"undefined":return!0;case"boolean":return!G;case"object":if(Array.isArray(G))return G.every(ue);if(G===null||u(G))return!0;var ne=d(G);if(ne){var O=ne.call(G),he;if(ne!==G.entries){for(;!(he=O.next()).done;)if(!ue(he.value))return!1}else for(;!(he=O.next()).done;){var W=he.value;if(W&&!ue(W[1]))return!1}}else return!1;return!0;default:return!1}}function te(G,ne){return G==="symbol"?!0:ne?ne["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ne instanceof Symbol:!1}function ae(G){var ne=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":te(ne,G)?"symbol":ne}function ge(G){if(typeof G>"u"||G===null)return""+G;var ne=ae(G);if(ne==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return ne}function ve(G){var ne=ge(G);switch(ne){case"array":case"object":return"an "+ne;case"boolean":case"date":case"regexp":return"a "+ne;default:return ne}}function L(G){return!G.constructor||!G.constructor.name?m:G.constructor.name}return b.checkPropTypes=s,b.resetWarningCache=s.resetWarningCache,b.PropTypes=b,b},Oa}var Ra,pu;function dE(){if(pu)return Ra;pu=1;var e=As();function t(){}function n(){}return n.resetWarningCache=t,Ra=function(){function i(o,l,u,f,p,h){if(h!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}i.isRequired=i;function r(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:r,element:i,elementType:i,instanceOf:r,node:i,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Ra}var du;function gE(){if(du)return Wi.exports;du=1;var e={};if(e.NODE_ENV!=="production"){var t=Tf(),n=!0;Wi.exports=pE()(t.isElement,n)}else Wi.exports=dE()();return Wi.exports}var mE=gE();const ee=Lr(mE);var Ji={exports:{}},Ye={};/** @license React v17.0.2
|
|
144
|
+
* react-is.production.min.js
|
|
145
|
+
*
|
|
146
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the MIT license found in the
|
|
149
|
+
* LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/var gu;function xE(){if(gu)return Ye;gu=1;var e=60103,t=60106,n=60107,i=60108,r=60114,s=60109,o=60110,l=60112,u=60113,f=60120,p=60115,h=60116,d=60121,m=60122,b=60117,v=60129,S=60131;if(typeof Symbol=="function"&&Symbol.for){var E=Symbol.for;e=E("react.element"),t=E("react.portal"),n=E("react.fragment"),i=E("react.strict_mode"),r=E("react.profiler"),s=E("react.provider"),o=E("react.context"),l=E("react.forward_ref"),u=E("react.suspense"),f=E("react.suspense_list"),p=E("react.memo"),h=E("react.lazy"),d=E("react.block"),m=E("react.server.block"),b=E("react.fundamental"),v=E("react.debug_trace_mode"),S=E("react.legacy_hidden")}function k(D){if(typeof D=="object"&&D!==null){var se=D.$$typeof;switch(se){case e:switch(D=D.type,D){case n:case r:case i:case u:case f:return D;default:switch(D=D&&D.$$typeof,D){case o:case l:case h:case p:case s:return D;default:return se}}case t:return se}}}var I=s,N=e,y=l,g=n,A=h,M=p,F=t,R=r,j=i,B=u;return Ye.ContextConsumer=o,Ye.ContextProvider=I,Ye.Element=N,Ye.ForwardRef=y,Ye.Fragment=g,Ye.Lazy=A,Ye.Memo=M,Ye.Portal=F,Ye.Profiler=R,Ye.StrictMode=j,Ye.Suspense=B,Ye.isAsyncMode=function(){return!1},Ye.isConcurrentMode=function(){return!1},Ye.isContextConsumer=function(D){return k(D)===o},Ye.isContextProvider=function(D){return k(D)===s},Ye.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===e},Ye.isForwardRef=function(D){return k(D)===l},Ye.isFragment=function(D){return k(D)===n},Ye.isLazy=function(D){return k(D)===h},Ye.isMemo=function(D){return k(D)===p},Ye.isPortal=function(D){return k(D)===t},Ye.isProfiler=function(D){return k(D)===r},Ye.isStrictMode=function(D){return k(D)===i},Ye.isSuspense=function(D){return k(D)===u},Ye.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===n||D===r||D===v||D===i||D===u||D===f||D===S||typeof D=="object"&&D!==null&&(D.$$typeof===h||D.$$typeof===p||D.$$typeof===s||D.$$typeof===o||D.$$typeof===l||D.$$typeof===b||D.$$typeof===d||D[0]===m)},Ye.typeOf=k,Ye}var Qe={},mu;function vE(){if(mu)return Qe;mu=1;var e={};/** @license React v17.0.2
|
|
151
|
+
* react-is.development.js
|
|
152
|
+
*
|
|
153
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
154
|
+
*
|
|
155
|
+
* This source code is licensed under the MIT license found in the
|
|
156
|
+
* LICENSE file in the root directory of this source tree.
|
|
157
|
+
*/return e.NODE_ENV!=="production"&&(function(){var t=60103,n=60106,i=60107,r=60108,s=60114,o=60109,l=60110,u=60112,f=60113,p=60120,h=60115,d=60116,m=60121,b=60122,v=60117,S=60129,E=60131;if(typeof Symbol=="function"&&Symbol.for){var k=Symbol.for;t=k("react.element"),n=k("react.portal"),i=k("react.fragment"),r=k("react.strict_mode"),s=k("react.profiler"),o=k("react.provider"),l=k("react.context"),u=k("react.forward_ref"),f=k("react.suspense"),p=k("react.suspense_list"),h=k("react.memo"),d=k("react.lazy"),m=k("react.block"),b=k("react.server.block"),v=k("react.fundamental"),k("react.scope"),k("react.opaque.id"),S=k("react.debug_trace_mode"),k("react.offscreen"),E=k("react.legacy_hidden")}var I=!1;function N($){return!!(typeof $=="string"||typeof $=="function"||$===i||$===s||$===S||$===r||$===f||$===p||$===E||I||typeof $=="object"&&$!==null&&($.$$typeof===d||$.$$typeof===h||$.$$typeof===o||$.$$typeof===l||$.$$typeof===u||$.$$typeof===v||$.$$typeof===m||$[0]===b))}function y($){if(typeof $=="object"&&$!==null){var Y=$.$$typeof;switch(Y){case t:var le=$.type;switch(le){case i:case s:case r:case f:case p:return le;default:var de=le&&le.$$typeof;switch(de){case l:case u:case d:case h:case o:return de;default:return Y}}case n:return Y}}}var g=l,A=o,M=t,F=u,R=i,j=d,B=h,D=n,se=s,ue=r,te=f,ae=!1,ge=!1;function ve($){return ae||(ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L($){return ge||(ge=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G($){return y($)===l}function ne($){return y($)===o}function O($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function he($){return y($)===u}function W($){return y($)===i}function Z($){return y($)===d}function H($){return y($)===h}function K($){return y($)===n}function J($){return y($)===s}function ie($){return y($)===r}function X($){return y($)===f}Qe.ContextConsumer=g,Qe.ContextProvider=A,Qe.Element=M,Qe.ForwardRef=F,Qe.Fragment=R,Qe.Lazy=j,Qe.Memo=B,Qe.Portal=D,Qe.Profiler=se,Qe.StrictMode=ue,Qe.Suspense=te,Qe.isAsyncMode=ve,Qe.isConcurrentMode=L,Qe.isContextConsumer=G,Qe.isContextProvider=ne,Qe.isElement=O,Qe.isForwardRef=he,Qe.isFragment=W,Qe.isLazy=Z,Qe.isMemo=H,Qe.isPortal=K,Qe.isProfiler=J,Qe.isStrictMode=ie,Qe.isSuspense=X,Qe.isValidElementType=N,Qe.typeOf=y})(),Qe}var xu;function bE(){if(xu)return Ji.exports;xu=1;var e={};return e.NODE_ENV==="production"?Ji.exports=xE():Ji.exports=vE(),Ji.exports}var vu=bE();function bu(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function yu(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function La(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return yu(n.overflowY,t)||yu(n.overflowX,t)||(function(i){var r=(function(s){if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!r&&(r.clientHeight<i.scrollHeight||r.clientWidth<i.scrollWidth)})(e)}return!1}function Yi(e,t,n,i,r,s,o,l){return s<e&&o>t||s>e&&o<t?0:s<=e&&l<=n||o>=t&&l>=n?s-e-i:o>t&&l<n||s<e&&l>n?o-t+r:0}var yE=function(e,t){var n=window,i=t.inline,r=t.boundary,s=t.skipOverflowHiddenElements,o=typeof r=="function"?r:function($){return $!==r};if(!bu(e))throw new TypeError("Invalid target");for(var l,u,f=document.scrollingElement||document.documentElement,p=[],h=e;bu(h)&&o(h);){if((h=(u=(l=h).parentElement)==null?l.getRootNode().host||null:u)===f){p.push(h);break}h!=null&&h===document.body&&La(h)&&!La(document.documentElement)||h!=null&&La(h,s)&&p.push(h)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,S=e.getBoundingClientRect(),E=S.height,k=S.width,I=S.top,N=S.right,y=S.bottom,g=S.left,A=I,M=i==="center"?g+k/2:i==="end"?N:g,F=[],R=0;R<p.length;R++){var j=p[R],B=j.getBoundingClientRect(),D=B.height,se=B.width,ue=B.top,te=B.right,ae=B.bottom,ge=B.left;if(I>=0&&g>=0&&y<=m&&N<=d&&I>=ue&&y<=ae&&g>=ge&&N<=te)return F;var ve=getComputedStyle(j),L=parseInt(ve.borderLeftWidth,10),G=parseInt(ve.borderTopWidth,10),ne=parseInt(ve.borderRightWidth,10),O=parseInt(ve.borderBottomWidth,10),he=0,W=0,Z="offsetWidth"in j?j.offsetWidth-j.clientWidth-L-ne:0,H="offsetHeight"in j?j.offsetHeight-j.clientHeight-G-O:0,K="offsetWidth"in j?j.offsetWidth===0?0:se/j.offsetWidth:0,J="offsetHeight"in j?j.offsetHeight===0?0:D/j.offsetHeight:0;if(f===j)he=Yi(v,v+m,m,G,O,v+A,v+A+E,E),W=i==="start"?M:i==="center"?M-d/2:i==="end"?M-d:Yi(b,b+d,d,L,ne,b+M,b+M+k,k),he=Math.max(0,he+v),W=Math.max(0,W+b);else{he=Yi(ue,ae,D,G,O+H,A,A+E,E),W=i==="start"?M-ge-L:i==="center"?M-(ge+se/2)+Z/2:i==="end"?M-te+ne+Z:Yi(ge,te,se,L,ne+Z,M,M+k,k);var ie=j.scrollLeft,X=j.scrollTop;A+=X-(he=Math.max(0,Math.min(X+he/J,j.scrollHeight-D/J+H))),M+=ie-(W=Math.max(0,Math.min(ie+W/K,j.scrollWidth-se/K+Z)))}F.push({el:j,top:he,left:W})}return F},xe={};let wE=0;function wu(e){return typeof e=="function"?e:wt}function wt(){}function Pf(e,t){if(!e)return;yE(e,{boundary:t}).forEach(i=>{let{el:r,top:s,left:o}=i;r.scrollTop=s,r.scrollLeft=o})}function Eu(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function Kr(e,t){let n;function i(){n&&clearTimeout(n)}function r(){for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];i(),n=setTimeout(()=>{n=null,e(...o)},t)}return r.cancel=i,r}function et(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){for(var r=arguments.length,s=new Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];return t.some(l=>(l&&l(i,...s),i.preventDownshiftDefault||i.hasOwnProperty("nativeEvent")&&i.nativeEvent.preventDownshiftDefault))}}function $t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i=>{t.forEach(r=>{typeof r=="function"?r(i):r&&(r.current=i)})}}function Of(){return String(wE++)}function Rf(e){let{isOpen:t,resultCount:n,previousResultCount:i}=e;return t?n?n!==i?`${n} result${n===1?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function Su(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function Lf(e){return typeof e.type=="string"}function Mf(e){return e.props}function EE(e,t){console.error(`The property "${t}" is required in "${e}"`)}const SE=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function Qi(e){e===void 0&&(e={});const t={};return SE.forEach(n=>{e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function bi(e,t){return Object.keys(e).reduce((n,i)=>(n[i]=vr(t,i)?t[i]:e[i],n),{})}function vr(e,t){return e[t]!==void 0}function yi(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&t.indexOf("Arrow")!==0?`Arrow${t}`:t}function kE(e){return Object.prototype.toString.call(e)==="[object Object]"}function gn(e,t,n,i,r){if(r===void 0&&(r=!0),n===0)return-1;const s=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:s+1);let o=t+e;o<0?o=r?s:0:o>s&&(o=r?0:s);const l=rn(e,o,n,i,r);return l===-1?t>=n?-1:t:l}function rn(e,t,n,i,r){const s=i(t);if(!s||!s.hasAttribute("disabled"))return t;if(e>0){for(let o=t+1;o<n;o++)if(!i(o).hasAttribute("disabled"))return o}else for(let o=t-1;o>=0;o--)if(!i(o).hasAttribute("disabled"))return o;return r?e>0?rn(1,0,n,i,!1):rn(-1,n-1,n,i,!1):-1}function br(e,t,n,i){return i===void 0&&(i=!0),t.some(r=>r&&(Eu(r,e,n)||i&&Eu(r,n.document.activeElement,n)))}let Ts=wt;xe.NODE_ENV!=="production"&&(Ts=(e,t,n)=>{const i="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(e).forEach(r=>{t[r]!==void 0&&n[r]===void 0?console.error(`downshift: A component has changed the controlled prop "${r}" to be uncontrolled. ${i}`):t[r]===void 0&&n[r]!==void 0&&console.error(`downshift: A component has changed the uncontrolled prop "${r}" to be controlled. ${i}`)})});const CE=Kr(e=>{Df(e).textContent=""},500);function Ff(e,t){const n=Df(t);e&&(n.textContent=e,CE(t))}function Df(e){e===void 0&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}const jf=xe.NODE_ENV!=="production"?"__autocomplete_unknown__":0,Vf=xe.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,Bf=xe.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,ar=xe.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,sr=xe.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,zf=xe.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,Kf=xe.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,Uf=xe.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,Hf=xe.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,$f=xe.NODE_ENV!=="production"?"__autocomplete_click_item__":9,qf=xe.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,Wf=xe.NODE_ENV!=="production"?"__autocomplete_change_input__":11,Gf=xe.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,ns=xe.NODE_ENV!=="production"?"__autocomplete_click_button__":13,Jf=xe.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,Yf=xe.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,Qf=xe.NODE_ENV!=="production"?"__autocomplete_touchend__":16;var _E=Object.freeze({__proto__:null,unknown:jf,mouseUp:Vf,itemMouseEnter:Bf,keyDownArrowUp:ar,keyDownArrowDown:sr,keyDownEscape:zf,keyDownEnter:Kf,keyDownHome:Uf,keyDownEnd:Hf,clickItem:$f,blurInput:qf,changeInput:Wf,keyDownSpaceButton:Gf,clickButton:ns,blurButton:Jf,controlledPropUpdatedSelectedItem:Yf,touchEnd:Qf});const IE=(()=>{class e extends V.Component{constructor(n){var i;super(n),i=this,this.id=this.props.id||`downshift-${Of()}`,this.menuId=this.props.menuId||`${this.id}-menu`,this.labelId=this.props.labelId||`${this.id}-label`,this.inputId=this.props.inputId||`${this.id}-input`,this.getItemId=this.props.getItemId||(h=>`${this.id}-item-${h}`),this.input=null,this.items=[],this.itemCount=null,this.previousResultCount=0,this.timeoutIds=[],this.internalSetTimeout=(h,d)=>{const m=setTimeout(()=>{this.timeoutIds=this.timeoutIds.filter(b=>b!==m),h()},d);this.timeoutIds.push(m)},this.setItemCount=h=>{this.itemCount=h},this.unsetItemCount=()=>{this.itemCount=null},this.setHighlightedIndex=function(h,d){h===void 0&&(h=i.props.defaultHighlightedIndex),d===void 0&&(d={}),d=Qi(d),i.internalSetState({highlightedIndex:h,...d})},this.clearSelection=h=>{this.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:this.props.defaultHighlightedIndex,isOpen:this.props.defaultIsOpen},h)},this.selectItem=(h,d,m)=>{d=Qi(d),this.internalSetState({isOpen:this.props.defaultIsOpen,highlightedIndex:this.props.defaultHighlightedIndex,selectedItem:h,inputValue:this.props.itemToString(h),...d},m)},this.selectItemAtIndex=(h,d,m)=>{const b=this.items[h];b!=null&&this.selectItem(b,d,m)},this.selectHighlightedItem=(h,d)=>this.selectItemAtIndex(this.getState().highlightedIndex,h,d),this.internalSetState=(h,d)=>{let m,b;const v={},S=typeof h=="function";return!S&&h.hasOwnProperty("inputValue")&&this.props.onInputValueChange(h.inputValue,{...this.getStateAndHelpers(),...h}),this.setState(E=>{E=this.getState(E);let k=S?h(E):h;k=this.props.stateReducer(E,k),m=k.hasOwnProperty("selectedItem");const I={};return m&&k.selectedItem!==E.selectedItem&&(b=k.selectedItem),k.type=k.type||jf,Object.keys(k).forEach(N=>{E[N]!==k[N]&&(v[N]=k[N]),N!=="type"&&(k[N],vr(this.props,N)||(I[N]=k[N]))}),S&&k.hasOwnProperty("inputValue")&&this.props.onInputValueChange(k.inputValue,{...this.getStateAndHelpers(),...k}),I},()=>{wu(d)(),Object.keys(v).length>1&&this.props.onStateChange(v,this.getStateAndHelpers()),m&&this.props.onSelect(h.selectedItem,this.getStateAndHelpers()),b!==void 0&&this.props.onChange(b,this.getStateAndHelpers()),this.props.onUserAction(v,this.getStateAndHelpers())})},this.rootRef=h=>this._rootNode=h,this.getRootProps=function(h,d){let{refKey:m="ref",ref:b,...v}=h===void 0?{}:h,{suppressRefError:S=!1}=d===void 0?{}:d;i.getRootProps.called=!0,i.getRootProps.refKey=m,i.getRootProps.suppressRefError=S;const{isOpen:E}=i.getState();return{[m]:$t(b,i.rootRef),role:"combobox","aria-expanded":E,"aria-haspopup":"listbox","aria-owns":E?i.menuId:null,"aria-labelledby":i.labelId,...v}},this.keyDownHandlers={ArrowDown(h){if(h.preventDefault(),this.getState().isOpen){const d=h.shiftKey?5:1;this.moveHighlightedIndex(d,{type:sr})}else this.internalSetState({isOpen:!0,type:sr},()=>{const d=this.getItemCount();if(d>0){const{highlightedIndex:m}=this.getState(),b=gn(1,m,d,v=>this.getItemNodeFromIndex(v));this.setHighlightedIndex(b,{type:sr})}})},ArrowUp(h){if(h.preventDefault(),this.getState().isOpen){const d=h.shiftKey?-5:-1;this.moveHighlightedIndex(d,{type:ar})}else this.internalSetState({isOpen:!0,type:ar},()=>{const d=this.getItemCount();if(d>0){const{highlightedIndex:m}=this.getState(),b=gn(-1,m,d,v=>this.getItemNodeFromIndex(v));this.setHighlightedIndex(b,{type:ar})}})},Enter(h){if(h.which===229)return;const{isOpen:d,highlightedIndex:m}=this.getState();if(d&&m!=null){h.preventDefault();const b=this.items[m],v=this.getItemNodeFromIndex(m);if(b==null||v&&v.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Kf})}},Escape(h){h.preventDefault(),this.reset({type:zf,...!this.state.isOpen&&{selectedItem:null,inputValue:""}})}},this.buttonKeyDownHandlers={...this.keyDownHandlers," "(h){h.preventDefault(),this.toggleMenu({type:Gf})}},this.inputKeyDownHandlers={...this.keyDownHandlers,Home(h){const{isOpen:d}=this.getState();if(!d)return;h.preventDefault();const m=this.getItemCount();if(m<=0||!d)return;const b=rn(1,0,m,v=>this.getItemNodeFromIndex(v),!1);this.setHighlightedIndex(b,{type:Uf})},End(h){const{isOpen:d}=this.getState();if(!d)return;h.preventDefault();const m=this.getItemCount();if(m<=0||!d)return;const b=rn(-1,m-1,m,v=>this.getItemNodeFromIndex(v),!1);this.setHighlightedIndex(b,{type:Hf})}},this.getToggleButtonProps=function(h){let{onClick:d,onPress:m,onKeyDown:b,onKeyUp:v,onBlur:S,...E}=h===void 0?{}:h;const{isOpen:k}=i.getState(),I={onClick:et(d,i.buttonHandleClick),onKeyDown:et(b,i.buttonHandleKeyDown),onKeyUp:et(v,i.buttonHandleKeyUp),onBlur:et(S,i.buttonHandleBlur)},N=E.disabled?{}:I;return{type:"button",role:"button","aria-label":k?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0,...N,...E}},this.buttonHandleKeyUp=h=>{h.preventDefault()},this.buttonHandleKeyDown=h=>{const d=yi(h);this.buttonKeyDownHandlers[d]&&this.buttonKeyDownHandlers[d].call(this,h)},this.buttonHandleClick=h=>{h.preventDefault(),this.props.environment.document.activeElement===this.props.environment.document.body&&h.target.focus(),xe.NODE_ENV==="test"?this.toggleMenu({type:ns}):this.internalSetTimeout(()=>this.toggleMenu({type:ns}))},this.buttonHandleBlur=h=>{const d=h.target;this.internalSetTimeout(()=>{!this.isMouseDown&&(this.props.environment.document.activeElement==null||this.props.environment.document.activeElement.id!==this.inputId)&&this.props.environment.document.activeElement!==d&&this.reset({type:Jf})})},this.getLabelProps=h=>({htmlFor:this.inputId,id:this.labelId,...h}),this.getInputProps=function(h){let{onKeyDown:d,onBlur:m,onChange:b,onInput:v,onChangeText:S,...E}=h===void 0?{}:h,k,I={};k="onChange";const{inputValue:N,isOpen:y,highlightedIndex:g}=i.getState();return E.disabled||(I={[k]:et(b,v,i.inputHandleChange),onKeyDown:et(d,i.inputHandleKeyDown),onBlur:et(m,i.inputHandleBlur)}),{"aria-autocomplete":"list","aria-activedescendant":y&&typeof g=="number"&&g>=0?i.getItemId(g):null,"aria-controls":y?i.menuId:null,"aria-labelledby":i.labelId,autoComplete:"off",value:N,id:i.inputId,...I,...E}},this.inputHandleKeyDown=h=>{const d=yi(h);d&&this.inputKeyDownHandlers[d]&&this.inputKeyDownHandlers[d].call(this,h)},this.inputHandleChange=h=>{this.internalSetState({type:Wf,isOpen:!0,inputValue:h.target.value,highlightedIndex:this.props.defaultHighlightedIndex})},this.inputHandleBlur=()=>{this.internalSetTimeout(()=>{const h=this.props.environment.document&&!!this.props.environment.document.activeElement&&!!this.props.environment.document.activeElement.dataset&&this.props.environment.document.activeElement.dataset.toggle&&this._rootNode&&this._rootNode.contains(this.props.environment.document.activeElement);!this.isMouseDown&&!h&&this.reset({type:qf})})},this.menuRef=h=>{this._menuNode=h},this.getMenuProps=function(h,d){let{refKey:m="ref",ref:b,...v}=h===void 0?{}:h,{suppressRefError:S=!1}=d===void 0?{}:d;return i.getMenuProps.called=!0,i.getMenuProps.refKey=m,i.getMenuProps.suppressRefError=S,{[m]:$t(b,i.menuRef),role:"listbox","aria-labelledby":v&&v["aria-label"]?null:i.labelId,id:i.menuId,...v}},this.getItemProps=function(h){let{onMouseMove:d,onMouseDown:m,onClick:b,onPress:v,index:S,item:E=xe.NODE_ENV==="production"?void 0:EE("getItemProps","item"),...k}=h===void 0?{}:h;S===void 0?(i.items.push(E),S=i.items.indexOf(E)):i.items[S]=E;const I="onClick",N=b,y={onMouseMove:et(d,()=>{S!==i.getState().highlightedIndex&&(i.setHighlightedIndex(S,{type:Bf}),i.avoidScrolling=!0,i.internalSetTimeout(()=>i.avoidScrolling=!1,250))}),onMouseDown:et(m,A=>{A.preventDefault()}),[I]:et(N,()=>{i.selectItemAtIndex(S,{type:$f})})},g=k.disabled?{onMouseDown:y.onMouseDown}:y;return{id:i.getItemId(S),role:"option","aria-selected":i.getState().highlightedIndex===S,...g,...k}},this.clearItems=()=>{this.items=[]},this.reset=function(h,d){h===void 0&&(h={}),h=Qi(h),i.internalSetState(m=>{let{selectedItem:b}=m;return{isOpen:i.props.defaultIsOpen,highlightedIndex:i.props.defaultHighlightedIndex,inputValue:i.props.itemToString(b),...h}},d)},this.toggleMenu=function(h,d){h===void 0&&(h={}),h=Qi(h),i.internalSetState(m=>{let{isOpen:b}=m;return{isOpen:!b,...b&&{highlightedIndex:i.props.defaultHighlightedIndex},...h}},()=>{const{isOpen:m,highlightedIndex:b}=i.getState();m&&i.getItemCount()>0&&typeof b=="number"&&i.setHighlightedIndex(b,h),wu(d)()})},this.openMenu=h=>{this.internalSetState({isOpen:!0},h)},this.closeMenu=h=>{this.internalSetState({isOpen:!1},h)},this.updateStatus=Kr(()=>{const h=this.getState(),d=this.items[h.highlightedIndex],m=this.getItemCount(),b=this.props.getA11yStatusMessage({itemToString:this.props.itemToString,previousResultCount:this.previousResultCount,resultCount:m,highlightedItem:d,...h});this.previousResultCount=m,Ff(b,this.props.environment.document)},200);const{defaultHighlightedIndex:r,initialHighlightedIndex:s=r,defaultIsOpen:o,initialIsOpen:l=o,initialInputValue:u="",initialSelectedItem:f=null}=this.props,p=this.getState({highlightedIndex:s,isOpen:l,inputValue:u,selectedItem:f});p.selectedItem!=null&&this.props.initialInputValue===void 0&&(p.inputValue=this.props.itemToString(p.selectedItem)),this.state=p}internalClearTimeouts(){this.timeoutIds.forEach(n=>{clearTimeout(n)}),this.timeoutIds=[]}getState(n){return n===void 0&&(n=this.state),bi(n,this.props)}getItemCount(){let n=this.items.length;return this.itemCount!=null?n=this.itemCount:this.props.itemCount!==void 0&&(n=this.props.itemCount),n}getItemNodeFromIndex(n){return this.props.environment.document.getElementById(this.getItemId(n))}scrollHighlightedItemIntoView(){{const n=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(n,this._menuNode)}}moveHighlightedIndex(n,i){const r=this.getItemCount(),{highlightedIndex:s}=this.getState();if(r>0){const o=gn(n,s,r,l=>this.getItemNodeFromIndex(l));this.setHighlightedIndex(o,i)}}getStateAndHelpers(){const{highlightedIndex:n,inputValue:i,selectedItem:r,isOpen:s}=this.getState(),{itemToString:o}=this.props,{id:l}=this,{getRootProps:u,getToggleButtonProps:f,getLabelProps:p,getMenuProps:h,getInputProps:d,getItemProps:m,openMenu:b,closeMenu:v,toggleMenu:S,selectItem:E,selectItemAtIndex:k,selectHighlightedItem:I,setHighlightedIndex:N,clearSelection:y,clearItems:g,reset:A,setItemCount:M,unsetItemCount:F,internalSetState:R}=this;return{getRootProps:u,getToggleButtonProps:f,getLabelProps:p,getMenuProps:h,getInputProps:d,getItemProps:m,reset:A,openMenu:b,closeMenu:v,toggleMenu:S,selectItem:E,selectItemAtIndex:k,selectHighlightedItem:I,setHighlightedIndex:N,clearSelection:y,clearItems:g,setItemCount:M,unsetItemCount:F,setState:R,itemToString:o,id:l,highlightedIndex:n,inputValue:i,isOpen:s,selectedItem:r}}componentDidMount(){xe.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&ku(this._menuNode,this.getMenuProps);{const n=()=>{this.isMouseDown=!0},i=u=>{this.isMouseDown=!1,!br(u.target,[this._rootNode,this._menuNode],this.props.environment)&&this.getState().isOpen&&this.reset({type:Vf},()=>this.props.onOuterClick(this.getStateAndHelpers()))},r=()=>{this.isTouchMove=!1},s=()=>{this.isTouchMove=!0},o=u=>{const f=br(u.target,[this._rootNode,this._menuNode],this.props.environment,!1);!this.isTouchMove&&!f&&this.getState().isOpen&&this.reset({type:Qf},()=>this.props.onOuterClick(this.getStateAndHelpers()))},{environment:l}=this.props;l.addEventListener("mousedown",n),l.addEventListener("mouseup",i),l.addEventListener("touchstart",r),l.addEventListener("touchmove",s),l.addEventListener("touchend",o),this.cleanup=()=>{this.internalClearTimeouts(),this.updateStatus.cancel(),l.removeEventListener("mousedown",n),l.removeEventListener("mouseup",i),l.removeEventListener("touchstart",r),l.removeEventListener("touchmove",s),l.removeEventListener("touchend",o)}}}shouldScroll(n,i){const{highlightedIndex:r}=this.props.highlightedIndex===void 0?this.getState():this.props,{highlightedIndex:s}=i.highlightedIndex===void 0?n:i;return r&&this.getState().isOpen&&!n.isOpen||r!==s}componentDidUpdate(n,i){xe.NODE_ENV!=="production"&&(Ts(this.state,n,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&ku(this._menuNode,this.getMenuProps)),vr(this.props,"selectedItem")&&this.props.selectedItemChanged(n.selectedItem,this.props.selectedItem)&&this.internalSetState({type:Yf,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(i,n)&&this.scrollHighlightedItemIntoView(),this.updateStatus()}componentWillUnmount(){this.cleanup()}render(){const n=Su(this.props.children,wt);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;const i=Su(n(this.getStateAndHelpers()));if(!i)return null;if(this.getRootProps.called||this.props.suppressRefError)return xe.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&AE(i,this.getRootProps),i;if(Lf(i))return V.cloneElement(i,this.getRootProps(Mf(i)));if(xe.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")}}return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:Rf,itemToString:t=>t==null?"":(xe.NODE_ENV!=="production"&&kE(t)&&!t.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",t),String(t)),onStateChange:wt,onInputValueChange:wt,onUserAction:wt,onChange:wt,onSelect:wt,onOuterClick:wt,selectedItemChanged:(t,n)=>t!==n,environment:typeof window>"u"?{}:window,stateReducer:(t,n)=>n,suppressRefError:!1,scrollIntoView:Pf},e.stateChangeTypes=_E,e})();xe.NODE_ENV!=="production"&&(IE.propTypes={children:ee.func,defaultHighlightedIndex:ee.number,defaultIsOpen:ee.bool,initialHighlightedIndex:ee.number,initialSelectedItem:ee.any,initialInputValue:ee.string,initialIsOpen:ee.bool,getA11yStatusMessage:ee.func,itemToString:ee.func,onChange:ee.func,onSelect:ee.func,onStateChange:ee.func,onInputValueChange:ee.func,onUserAction:ee.func,onOuterClick:ee.func,selectedItemChanged:ee.func,stateReducer:ee.func,itemCount:ee.number,id:ee.string,environment:ee.shape({addEventListener:ee.func,removeEventListener:ee.func,document:ee.shape({getElementById:ee.func,activeElement:ee.any,body:ee.any})}),suppressRefError:ee.bool,scrollIntoView:ee.func,selectedItem:ee.any,isOpen:ee.bool,inputValue:ee.string,highlightedIndex:ee.number,labelId:ee.string,inputId:ee.string,menuId:ee.string,getItemId:ee.func});function ku(e,t){let{refKey:n}=t;e||console.error(`downshift: The ref prop "${n}" from getMenuProps was not applied correctly on your menu element.`)}function AE(e,t){let{refKey:n}=t;const i=n!=="ref",r=!Lf(e);r&&!i&&!vu.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!r&&i&&console.error(`downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "${n}"`),!vu.isForwardRef(e)&&!Mf(e)[n]&&console.error(`downshift: You must apply the ref prop "${n}" from getRootProps onto your root element.`)}const Zf={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function TE(e,t,n){const{props:i,type:r}=e,s={};Object.keys(t).forEach(o=>{NE(o,e,t,n),n[o]!==t[o]&&(s[o]=n[o])}),i.onStateChange&&Object.keys(s).length&&i.onStateChange({type:r,...s})}function NE(e,t,n,i){const{props:r,type:s}=t,o=`on${Ns(e)}Change`;r[o]&&i[e]!==void 0&&i[e]!==n[e]&&r[o]({type:s,...i})}function PE(e,t){return t.changes}function OE(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""}const RE=Kr((e,t)=>{Ff(e(),t)},200),LE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?V.useLayoutEffect:V.useEffect;function Xf(e){let{id:t=`downshift-${Of()}`,labelId:n,menuId:i,getItemId:r,toggleButtonId:s,inputId:o}=e;return V.useRef({labelId:n||`${t}-label`,menuId:i||`${t}-menu`,getItemId:r||(u=>`${t}-item-${u}`),toggleButtonId:s||`${t}-toggle-button`,inputId:o||`${t}-input`}).current}function ep(e,t,n){return e!==void 0?e:n.length===0?-1:n.indexOf(t)}function ME(e){return e?String(e):""}function Cu(e){return/^\S{1}$/.test(e)}function Ns(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function Ps(e){const t=V.useRef(e);return t.current=e,t}function tp(e,t,n){const i=V.useRef(),r=V.useRef(),s=V.useCallback((h,d)=>{r.current=d,h=bi(h,d.props);const m=e(h,d);return d.props.stateReducer(h,{...d,changes:m})},[e]),[o,l]=V.useReducer(s,t),u=Ps(n),f=V.useCallback(h=>l({props:u.current,...h}),[u]),p=r.current;return V.useEffect(()=>{p&&i.current&&i.current!==o&&TE(p,bi(i.current,p.props),o),i.current=o},[o,n,p]),[o,f]}function FE(e,t,n){const[i,r]=tp(e,t,n);return[bi(i,n),r]}const pi={itemToString:ME,stateReducer:PE,getA11ySelectionMessage:OE,scrollIntoView:Pf,circularNavigation:!1,environment:typeof window>"u"?{}:window};function dt(e,t,n){n===void 0&&(n=Zf);const i=e[`default${Ns(t)}`];return i!==void 0?i:n[t]}function Zi(e,t,n){n===void 0&&(n=Zf);const i=e[t];if(i!==void 0)return i;const r=e[`initial${Ns(t)}`];return r!==void 0?r:dt(e,t,n)}function np(e){const t=Zi(e,"selectedItem"),n=Zi(e,"isOpen"),i=Zi(e,"highlightedIndex"),r=Zi(e,"inputValue");return{highlightedIndex:i<0&&t&&n?e.items.indexOf(t):i,isOpen:n,selectedItem:t,inputValue:r}}function Wn(e,t,n,i){const{items:r,initialHighlightedIndex:s,defaultHighlightedIndex:o}=e,{selectedItem:l,highlightedIndex:u}=t;return r.length===0?-1:s!==void 0&&u===s?s:o!==void 0?o:l?n===0?r.indexOf(l):gn(n,r.indexOf(l),r.length,i,!1):n===0?-1:n<0?r.length-1:0}function ip(e,t,n,i){const r=V.useRef({isMouseDown:!1,isTouchMove:!1});return V.useEffect(()=>{const s=()=>{r.current.isMouseDown=!0},o=p=>{r.current.isMouseDown=!1,e&&!br(p.target,t.map(h=>h.current),n)&&i()},l=()=>{r.current.isTouchMove=!1},u=()=>{r.current.isTouchMove=!0},f=p=>{e&&!r.current.isTouchMove&&!br(p.target,t.map(h=>h.current),n,!1)&&i()};return n.addEventListener("mousedown",s),n.addEventListener("mouseup",o),n.addEventListener("touchstart",l),n.addEventListener("touchmove",u),n.addEventListener("touchend",f),function(){n.removeEventListener("mousedown",s),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",l),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",f)}},[e,n]),r}let Os=()=>wt;xe.NODE_ENV!=="production"&&(Os=function(){const e=V.useRef(!0);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const r=V.useRef(n.reduce((o,l)=>(o[l]={},o),{}));return V.useEffect(()=>{Object.keys(r.current).forEach(o=>{const l=r.current[o];if(e.current&&!Object.keys(l).length){console.error(`downshift: You forgot to call the ${o} getter function on your component / element.`);return}const{suppressRefError:u,refKey:f,elementRef:p}=l;(!p||!p.current)&&!u&&console.error(`downshift: The ref prop "${f}" from ${o} was not applied correctly on your element.`)}),e.current=!1}),V.useCallback((o,l,u,f)=>{r.current[o]={suppressRefError:l,refKey:u,elementRef:f}},[])});function yr(e,t,n){let{isInitialMount:i,highlightedIndex:r,items:s,environment:o,...l}=n;V.useEffect(()=>{i||RE(()=>e({highlightedIndex:r,highlightedItem:s[r],resultCount:s.length,...l}),o.document)},t)}function rp(e){let{highlightedIndex:t,isOpen:n,itemRefs:i,getItemNodeFromIndex:r,menuElement:s,scrollIntoView:o}=e;const l=V.useRef(!0);return LE(()=>{t<0||!n||!Object.keys(i.current).length||(l.current===!1?l.current=!0:o(r(t),s))},[t]),l}let Rs=wt;xe.NODE_ENV!=="production"&&(Rs=e=>{let{isInitialMount:t,props:n,state:i}=e;const r=V.useRef(n);V.useEffect(()=>{t||(Ts(i,r.current,n),r.current=n)},[i,n,t])});function ap(e,t,n){const{type:i,props:r}=t;let s;switch(i){case n.ItemMouseMove:s={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:s={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:s={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Wn(r,e,0)};break;case n.FunctionOpenMenu:s={isOpen:!0,highlightedIndex:Wn(r,e,0)};break;case n.FunctionCloseMenu:s={isOpen:!1};break;case n.FunctionSetHighlightedIndex:s={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:s={inputValue:t.inputValue};break;case n.FunctionReset:s={highlightedIndex:dt(r,"highlightedIndex"),isOpen:dt(r,"isOpen"),selectedItem:dt(r,"selectedItem"),inputValue:dt(r,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...s}}function _u(e){for(var t=e.keysSoFar,n=e.highlightedIndex,i=e.items,r=e.itemToString,s=e.getItemNodeFromIndex,o=t.toLowerCase(),l=0;l<i.length;l++){var u=(l+n+1)%i.length,f=i[u];if(f!==void 0&&r(f).toLowerCase().startsWith(o)){var p=s(u);if(!(p!=null&&p.hasAttribute("disabled")))return u}}return n}var DE={items:ee.array.isRequired,itemToString:ee.func,getA11yStatusMessage:ee.func,getA11ySelectionMessage:ee.func,circularNavigation:ee.bool,highlightedIndex:ee.number,defaultHighlightedIndex:ee.number,initialHighlightedIndex:ee.number,isOpen:ee.bool,defaultIsOpen:ee.bool,initialIsOpen:ee.bool,selectedItem:ee.any,initialSelectedItem:ee.any,defaultSelectedItem:ee.any,id:ee.string,labelId:ee.string,menuId:ee.string,getItemId:ee.func,toggleButtonId:ee.string,stateReducer:ee.func,onSelectedItemChange:ee.func,onHighlightedIndexChange:ee.func,onStateChange:ee.func,onIsOpenChange:ee.func,environment:ee.shape({addEventListener:ee.func,removeEventListener:ee.func,document:ee.shape({getElementById:ee.func,activeElement:ee.any,body:ee.any})})};function jE(e){var t=e.isOpen,n=e.resultCount,i=e.previousResultCount;return t?n?n!==i?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}var VE=Ot(Ot({},pi),{getA11yStatusMessage:jE}),sp=wt;xe.NODE_ENV!=="production"&&(sp=function(e,t){ee.checkPropTypes(DE,e,"prop",t.name)});const Ls=xe.NODE_ENV!=="production"?"__menu_keydown_arrow_down__":0,Ms=xe.NODE_ENV!=="production"?"__menu_keydown_arrow_up__":1,Fs=xe.NODE_ENV!=="production"?"__menu_keydown_escape__":2,Ds=xe.NODE_ENV!=="production"?"__menu_keydown_home__":3,js=xe.NODE_ENV!=="production"?"__menu_keydown_end__":4,Vs=xe.NODE_ENV!=="production"?"__menu_keydown_enter__":5,Bs=xe.NODE_ENV!=="production"?"__menu_keydown_space_button__":6,zs=xe.NODE_ENV!=="production"?"__menu_keydown_character__":7,wr=xe.NODE_ENV!=="production"?"__menu_blur__":8,op=xe.NODE_ENV!=="production"?"__menu_mouse_leave__":9,lp=xe.NODE_ENV!=="production"?"__item_mouse_move__":10,Ks=xe.NODE_ENV!=="production"?"__item_click__":11,up=xe.NODE_ENV!=="production"?"__togglebutton_click__":12,Us=xe.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_down__":13,Hs=xe.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_up__":14,$s=xe.NODE_ENV!=="production"?"__togglebutton_keydown_character__":15,cp=xe.NODE_ENV!=="production"?"__function_toggle_menu__":16,hp=xe.NODE_ENV!=="production"?"__function_open_menu__":17,fp=xe.NODE_ENV!=="production"?"__function_close_menu__":18,pp=xe.NODE_ENV!=="production"?"__function_set_highlighted_index__":19,qs=xe.NODE_ENV!=="production"?"__function_select_item__":20,is=xe.NODE_ENV!=="production"?"__function_set_input_value__":21,dp=xe.NODE_ENV!=="production"?"__function_reset__":22;var gp=Object.freeze({__proto__:null,MenuKeyDownArrowDown:Ls,MenuKeyDownArrowUp:Ms,MenuKeyDownEscape:Fs,MenuKeyDownHome:Ds,MenuKeyDownEnd:js,MenuKeyDownEnter:Vs,MenuKeyDownSpaceButton:Bs,MenuKeyDownCharacter:zs,MenuBlur:wr,MenuMouseLeave:op,ItemMouseMove:lp,ItemClick:Ks,ToggleButtonClick:up,ToggleButtonKeyDownArrowDown:Us,ToggleButtonKeyDownArrowUp:Hs,ToggleButtonKeyDownCharacter:$s,FunctionToggleMenu:cp,FunctionOpenMenu:hp,FunctionCloseMenu:fp,FunctionSetHighlightedIndex:pp,FunctionSelectItem:qs,FunctionSetInputValue:is,FunctionReset:dp});function BE(e,t){const{type:n,props:i,shiftKey:r}=t;let s;switch(n){case Ks:s={isOpen:dt(i,"isOpen"),highlightedIndex:dt(i,"highlightedIndex"),selectedItem:i.items[t.index]};break;case $s:{const o=t.key,l=`${e.inputValue}${o}`,u=_u({keysSoFar:l,highlightedIndex:e.selectedItem?i.items.indexOf(e.selectedItem):-1,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});s={inputValue:l,...u>=0&&{selectedItem:i.items[u]}}}break;case Us:s={highlightedIndex:Wn(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case Hs:s={highlightedIndex:Wn(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case Vs:case Bs:s={isOpen:dt(i,"isOpen"),highlightedIndex:dt(i,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]}};break;case Ds:s={highlightedIndex:rn(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case js:s={highlightedIndex:rn(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case Fs:s={isOpen:!1,highlightedIndex:-1};break;case wr:s={isOpen:!1,highlightedIndex:-1};break;case zs:{const o=t.key,l=`${e.inputValue}${o}`,u=_u({keysSoFar:l,highlightedIndex:e.highlightedIndex,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});s={inputValue:l,...u>=0&&{highlightedIndex:u}}}break;case Ls:s={highlightedIndex:gn(r?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case Ms:s={highlightedIndex:gn(r?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case qs:s={selectedItem:t.selectedItem};break;default:return ap(e,t,gp)}return{...e,...s}}Ws.stateChangeTypes=gp;function Ws(e){e===void 0&&(e={}),sp(e,Ws);const t={...VE,...e},{items:n,scrollIntoView:i,environment:r,initialIsOpen:s,defaultIsOpen:o,itemToString:l,getA11ySelectionMessage:u,getA11yStatusMessage:f}=t,p=np(t),[h,d]=FE(BE,p,t),{isOpen:m,highlightedIndex:b,selectedItem:v,inputValue:S}=h,E=V.useRef(null),k=V.useRef(null),I=V.useRef({}),N=V.useRef(!0),y=V.useRef(null),g=Xf(t),A=V.useRef(),M=V.useRef(!0),F=Ps({state:h,props:t}),R=V.useCallback(H=>I.current[g.getItemId(H)],[g]);yr(f,[m,b,S,n],{isInitialMount:M.current,previousResultCount:A.current,items:n,environment:r,itemToString:l,...h}),yr(u,[v],{isInitialMount:M.current,previousResultCount:A.current,items:n,environment:r,itemToString:l,...h});const j=rp({menuElement:k.current,highlightedIndex:b,isOpen:m,itemRefs:I,scrollIntoView:i,getItemNodeFromIndex:R});V.useEffect(()=>(y.current=Kr(H=>{H({type:is,inputValue:""})},500),()=>{y.current.cancel()}),[]),V.useEffect(()=>{S&&y.current(d)},[d,S]),Rs({isInitialMount:M.current,props:t,state:h}),V.useEffect(()=>{if(M.current){(s||o||m)&&k.current&&k.current.focus();return}if(m){k.current&&k.current.focus();return}r.document.activeElement===k.current&&E.current&&(N.current=!1,E.current.focus())},[m]),V.useEffect(()=>{M.current||(A.current=n.length)});const B=ip(m,[k,E],r,()=>{d({type:wr})}),D=Os("getMenuProps","getToggleButtonProps");V.useEffect(()=>{M.current=!1},[]),V.useEffect(()=>{m||(I.current={})},[m]);const se=V.useMemo(()=>({ArrowDown(H){H.preventDefault(),d({type:Us,getItemNodeFromIndex:R,shiftKey:H.shiftKey})},ArrowUp(H){H.preventDefault(),d({type:Hs,getItemNodeFromIndex:R,shiftKey:H.shiftKey})}}),[d,R]),ue=V.useMemo(()=>({ArrowDown(H){H.preventDefault(),d({type:Ls,getItemNodeFromIndex:R,shiftKey:H.shiftKey})},ArrowUp(H){H.preventDefault(),d({type:Ms,getItemNodeFromIndex:R,shiftKey:H.shiftKey})},Home(H){H.preventDefault(),d({type:Ds,getItemNodeFromIndex:R})},End(H){H.preventDefault(),d({type:js,getItemNodeFromIndex:R})},Escape(){d({type:Fs})},Enter(H){H.preventDefault(),d({type:Vs})}," "(H){H.preventDefault(),d({type:Bs})}}),[d,R]),te=V.useCallback(()=>{d({type:cp})},[d]),ae=V.useCallback(()=>{d({type:fp})},[d]),ge=V.useCallback(()=>{d({type:hp})},[d]),ve=V.useCallback(H=>{d({type:pp,highlightedIndex:H})},[d]),L=V.useCallback(H=>{d({type:qs,selectedItem:H})},[d]),G=V.useCallback(()=>{d({type:dp})},[d]),ne=V.useCallback(H=>{d({type:is,inputValue:H})},[d]),O=V.useCallback(H=>({id:g.labelId,htmlFor:g.toggleButtonId,...H}),[g]),he=V.useCallback(function(H,K){let{onMouseLeave:J,refKey:ie="ref",onKeyDown:X,onBlur:$,ref:Y,...le}=H===void 0?{}:H,{suppressRefError:de=!1}=K===void 0?{}:K;const Se=F.current.state,ye=be=>{const Pe=yi(be);Pe&&ue[Pe]?ue[Pe](be):Cu(Pe)&&d({type:zs,key:Pe,getItemNodeFromIndex:R})},ke=()=>{if(N.current===!1){N.current=!0;return}!B.current.isMouseDown&&d({type:wr})},Ie=()=>{d({type:op})};return D("getMenuProps",de,ie,k),{[ie]:$t(Y,be=>{k.current=be}),id:g.menuId,role:"listbox","aria-labelledby":g.labelId,tabIndex:-1,...Se.isOpen&&Se.highlightedIndex>-1&&{"aria-activedescendant":g.getItemId(Se.highlightedIndex)},onMouseLeave:et(J,Ie),onKeyDown:et(X,ye),onBlur:et($,ke),...le}},[d,F,ue,B,D,g,R]),W=V.useCallback(function(H,K){let{onClick:J,onKeyDown:ie,refKey:X="ref",ref:$,...Y}=H===void 0?{}:H,{suppressRefError:le=!1}=K===void 0?{}:K;const de=()=>{d({type:up})},Se=ke=>{const Ie=yi(ke);Ie&&se[Ie]?se[Ie](ke):Cu(Ie)&&d({type:$s,key:Ie,getItemNodeFromIndex:R})},ye={[X]:$t($,ke=>{E.current=ke}),id:g.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":F.current.state.isOpen,"aria-labelledby":`${g.labelId} ${g.toggleButtonId}`,...Y};return Y.disabled||(ye.onClick=et(J,de),ye.onKeyDown=et(ie,Se)),D("getToggleButtonProps",le,X,E),ye},[d,F,se,D,g,R]),Z=V.useCallback(function(H){let{item:K,index:J,onMouseMove:ie,onClick:X,refKey:$="ref",ref:Y,disabled:le,...de}=H===void 0?{}:H;const{state:Se,props:ye}=F.current,ke=()=>{J!==Se.highlightedIndex&&(j.current=!1,d({type:lp,index:J,disabled:le}))},Ie=()=>{d({type:Ks,index:J})},be=ep(J,K,ye.items);if(be<0)throw new Error("Pass either item or item index in getItemProps!");const Pe={disabled:le,role:"option","aria-selected":`${be===Se.highlightedIndex}`,id:g.getItemId(be),[$]:$t(Y,Be=>{Be&&(I.current[g.getItemId(be)]=Be)}),...de};return le||(Pe.onClick=et(X,Ie)),Pe.onMouseMove=et(ie,ke),Pe},[d,F,j,g]);return{getToggleButtonProps:W,getLabelProps:O,getMenuProps:he,getItemProps:Z,toggleMenu:te,openMenu:ge,closeMenu:ae,setHighlightedIndex:ve,selectItem:L,reset:G,setInputValue:ne,highlightedIndex:b,isOpen:m,selectedItem:v,inputValue:S}}const Gs=xe.NODE_ENV!=="production"?"__input_keydown_arrow_down__":0,Js=xe.NODE_ENV!=="production"?"__input_keydown_arrow_up__":1,Ys=xe.NODE_ENV!=="production"?"__input_keydown_escape__":2,Qs=xe.NODE_ENV!=="production"?"__input_keydown_home__":3,Zs=xe.NODE_ENV!=="production"?"__input_keydown_end__":4,Xs=xe.NODE_ENV!=="production"?"__input_keydown_enter__":5,eo=xe.NODE_ENV!=="production"?"__input_change__":6,Er=xe.NODE_ENV!=="production"?"__input_blur__":7,mp=xe.NODE_ENV!=="production"?"__menu_mouse_leave__":8,xp=xe.NODE_ENV!=="production"?"__item_mouse_move__":9,to=xe.NODE_ENV!=="production"?"__item_click__":10,vp=xe.NODE_ENV!=="production"?"__togglebutton_click__":11,bp=xe.NODE_ENV!=="production"?"__function_toggle_menu__":12,yp=xe.NODE_ENV!=="production"?"__function_open_menu__":13,wp=xe.NODE_ENV!=="production"?"__function_close_menu__":14,Ep=xe.NODE_ENV!=="production"?"__function_set_highlighted_index__":15,no=xe.NODE_ENV!=="production"?"__function_select_item__":16,Sp=xe.NODE_ENV!=="production"?"__function_set_input_value__":17,kp=xe.NODE_ENV!=="production"?"__function_reset__":18,io=xe.NODE_ENV!=="production"?"__controlled_prop_updated_selected_item__":19;var Cp=Object.freeze({__proto__:null,InputKeyDownArrowDown:Gs,InputKeyDownArrowUp:Js,InputKeyDownEscape:Ys,InputKeyDownHome:Qs,InputKeyDownEnd:Zs,InputKeyDownEnter:Xs,InputChange:eo,InputBlur:Er,MenuMouseLeave:mp,ItemMouseMove:xp,ItemClick:to,ToggleButtonClick:vp,FunctionToggleMenu:bp,FunctionOpenMenu:yp,FunctionCloseMenu:wp,FunctionSetHighlightedIndex:Ep,FunctionSelectItem:no,FunctionSetInputValue:Sp,FunctionReset:kp,ControlledPropUpdatedSelectedItem:io});function zE(e){const t=np(e),{selectedItem:n}=t;let{inputValue:i}=t;return i===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(i=e.itemToString(n)),{...t,inputValue:i}}const KE={items:ee.array.isRequired,itemToString:ee.func,getA11yStatusMessage:ee.func,getA11ySelectionMessage:ee.func,circularNavigation:ee.bool,highlightedIndex:ee.number,defaultHighlightedIndex:ee.number,initialHighlightedIndex:ee.number,isOpen:ee.bool,defaultIsOpen:ee.bool,initialIsOpen:ee.bool,selectedItem:ee.any,initialSelectedItem:ee.any,defaultSelectedItem:ee.any,inputValue:ee.string,defaultInputValue:ee.string,initialInputValue:ee.string,id:ee.string,labelId:ee.string,menuId:ee.string,getItemId:ee.func,inputId:ee.string,toggleButtonId:ee.string,stateReducer:ee.func,onSelectedItemChange:ee.func,onHighlightedIndexChange:ee.func,onStateChange:ee.func,onIsOpenChange:ee.func,onInputValueChange:ee.func,environment:ee.shape({addEventListener:ee.func,removeEventListener:ee.func,document:ee.shape({getElementById:ee.func,activeElement:ee.any,body:ee.any})})};function UE(e,t,n){const i=V.useRef(),[r,s]=tp(e,t,n);return V.useEffect(()=>{vr(n,"selectedItem")&&(i.current!==n.selectedItem&&s({type:io,inputValue:n.itemToString(n.selectedItem)}),i.current=r.selectedItem===i.current?n.selectedItem:r.selectedItem)}),[bi(r,n),s]}let _p=wt;xe.NODE_ENV!=="production"&&(_p=(e,t)=>{ee.checkPropTypes(KE,e,"prop",t.name)});const HE={...pi,getA11yStatusMessage:Rf,circularNavigation:!0};function $E(e,t){const{type:n,props:i,shiftKey:r}=t;let s;switch(n){case to:s={isOpen:dt(i,"isOpen"),highlightedIndex:dt(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case Gs:e.isOpen?s={highlightedIndex:gn(r?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)}:s={highlightedIndex:Wn(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case Js:e.isOpen?s={highlightedIndex:gn(r?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)}:s={highlightedIndex:Wn(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case Xs:s={...e.isOpen&&e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex],isOpen:dt(i,"isOpen"),highlightedIndex:dt(i,"highlightedIndex"),inputValue:i.itemToString(i.items[e.highlightedIndex])}};break;case Ys:s={isOpen:!1,highlightedIndex:-1,...!e.isOpen&&{selectedItem:null,inputValue:""}};break;case Qs:s={highlightedIndex:rn(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case Zs:s={highlightedIndex:rn(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case Er:s={isOpen:!1,highlightedIndex:-1,...e.highlightedIndex>=0&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])}};break;case eo:s={isOpen:!0,highlightedIndex:dt(i,"highlightedIndex"),inputValue:t.inputValue};break;case no:s={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case io:s={inputValue:t.inputValue};break;default:return ap(e,t,Cp)}return{...e,...s}}Ur.stateChangeTypes=Cp;function Ur(e){e===void 0&&(e={}),_p(e,Ur);const t={...HE,...e},{initialIsOpen:n,defaultIsOpen:i,items:r,scrollIntoView:s,environment:o,getA11yStatusMessage:l,getA11ySelectionMessage:u,itemToString:f}=t,p=zE(t),[h,d]=UE($E,p,t),{isOpen:m,highlightedIndex:b,selectedItem:v,inputValue:S}=h,E=V.useRef(null),k=V.useRef({}),I=V.useRef(null),N=V.useRef(null),y=V.useRef(null),g=V.useRef(!0),A=Xf(t),M=V.useRef(),F=Ps({state:h,props:t}),R=V.useCallback(K=>k.current[A.getItemId(K)],[A]);yr(l,[m,b,S,r],{isInitialMount:g.current,previousResultCount:M.current,items:r,environment:o,itemToString:f,...h}),yr(u,[v],{isInitialMount:g.current,previousResultCount:M.current,items:r,environment:o,itemToString:f,...h});const j=rp({menuElement:E.current,highlightedIndex:b,isOpen:m,itemRefs:k,scrollIntoView:s,getItemNodeFromIndex:R});Rs({isInitialMount:g.current,props:t,state:h}),V.useEffect(()=>{(n||i||m)&&I.current&&I.current.focus()},[]),V.useEffect(()=>{g.current||(M.current=r.length)});const B=ip(m,[y,E,N],o,()=>{d({type:Er,selectItem:!1})}),D=Os("getInputProps","getComboboxProps","getMenuProps");V.useEffect(()=>{g.current=!1},[]),V.useEffect(()=>{m||(k.current={})},[m]);const se=V.useMemo(()=>({ArrowDown(K){K.preventDefault(),d({type:Gs,shiftKey:K.shiftKey,getItemNodeFromIndex:R})},ArrowUp(K){K.preventDefault(),d({type:Js,shiftKey:K.shiftKey,getItemNodeFromIndex:R})},Home(K){F.current.state.isOpen&&(K.preventDefault(),d({type:Qs,getItemNodeFromIndex:R}))},End(K){F.current.state.isOpen&&(K.preventDefault(),d({type:Zs,getItemNodeFromIndex:R}))},Escape(K){const J=F.current.state;(J.isOpen||J.inputValue||J.selectedItem||J.highlightedIndex>-1)&&(K.preventDefault(),d({type:Ys}))},Enter(K){const J=F.current.state;!J.isOpen||J.highlightedIndex<0||K.which===229||(K.preventDefault(),d({type:Xs,getItemNodeFromIndex:R}))}}),[d,F,R]),ue=V.useCallback(K=>({id:A.labelId,htmlFor:A.inputId,...K}),[A]),te=V.useCallback(function(K,J){let{onMouseLeave:ie,refKey:X="ref",ref:$,...Y}=K===void 0?{}:K,{suppressRefError:le=!1}=J===void 0?{}:J;return D("getMenuProps",le,X,E),{[X]:$t($,de=>{E.current=de}),id:A.menuId,role:"listbox","aria-labelledby":A.labelId,onMouseLeave:et(ie,()=>{d({type:mp})}),...Y}},[d,D,A]),ae=V.useCallback(function(K){let{item:J,index:ie,refKey:X="ref",ref:$,onMouseMove:Y,onMouseDown:le,onClick:de,onPress:Se,disabled:ye,...ke}=K===void 0?{}:K;const{props:Ie,state:be}=F.current,Pe=ep(ie,J,Ie.items);if(Pe<0)throw new Error("Pass either item or item index in getItemProps!");const Be="onClick",$e=de,Te=()=>{ie!==be.highlightedIndex&&(j.current=!1,d({type:xp,index:ie,disabled:ye}))},nt=()=>{d({type:to,index:ie})},Q=re=>re.preventDefault();return{[X]:$t($,re=>{re&&(k.current[A.getItemId(Pe)]=re)}),disabled:ye,role:"option","aria-selected":`${Pe===be.highlightedIndex}`,id:A.getItemId(Pe),...!ye&&{[Be]:et($e,nt)},onMouseMove:et(Y,Te),onMouseDown:et(le,Q),...ke}},[d,F,j,A]),ge=V.useCallback(function(K){let{onClick:J,onPress:ie,refKey:X="ref",ref:$,...Y}=K===void 0?{}:K;const le=()=>{d({type:vp}),!F.current.state.isOpen&&I.current&&I.current.focus()};return{[X]:$t($,de=>{N.current=de}),id:A.toggleButtonId,tabIndex:-1,...!Y.disabled&&{onClick:et(J,le)},...Y}},[d,F,A]),ve=V.useCallback(function(K,J){let{onKeyDown:ie,onChange:X,onInput:$,onBlur:Y,onChangeText:le,refKey:de="ref",ref:Se,...ye}=K===void 0?{}:K,{suppressRefError:ke=!1}=J===void 0?{}:J;D("getInputProps",ke,de,I);const Ie=F.current.state,be=nt=>{const Q=yi(nt);Q&&se[Q]&&se[Q](nt)},Pe=nt=>{d({type:eo,inputValue:nt.target.value})},Be=()=>{Ie.isOpen&&!B.current.isMouseDown&&d({type:Er,selectItem:!0})},$e="onChange";let Te={};return ye.disabled||(Te={[$e]:et(X,$,Pe),onKeyDown:et(ie,be),onBlur:et(Y,Be)}),{[de]:$t(Se,nt=>{I.current=nt}),id:A.inputId,"aria-autocomplete":"list","aria-controls":A.menuId,...Ie.isOpen&&Ie.highlightedIndex>-1&&{"aria-activedescendant":A.getItemId(Ie.highlightedIndex)},"aria-labelledby":A.labelId,autoComplete:"off",value:Ie.inputValue,...Te,...ye}},[d,se,F,B,D,A]),L=V.useCallback(function(K,J){let{refKey:ie="ref",ref:X,...$}=K===void 0?{}:K,{suppressRefError:Y=!1}=J===void 0?{}:J;return D("getComboboxProps",Y,ie,y),{[ie]:$t(X,le=>{y.current=le}),role:"combobox","aria-haspopup":"listbox","aria-owns":A.menuId,"aria-expanded":F.current.state.isOpen,...$}},[F,D,A]),G=V.useCallback(()=>{d({type:bp})},[d]),ne=V.useCallback(()=>{d({type:wp})},[d]),O=V.useCallback(()=>{d({type:yp})},[d]),he=V.useCallback(K=>{d({type:Ep,highlightedIndex:K})},[d]),W=V.useCallback(K=>{d({type:no,selectedItem:K})},[d]),Z=V.useCallback(K=>{d({type:Sp,inputValue:K})},[d]),H=V.useCallback(()=>{d({type:kp})},[d]);return{getItemProps:ae,getLabelProps:ue,getMenuProps:te,getInputProps:ve,getComboboxProps:L,getToggleButtonProps:ge,toggleMenu:G,openMenu:O,closeMenu:ne,setHighlightedIndex:he,setInputValue:Z,selectItem:W,reset:H,highlightedIndex:b,isOpen:m,selectedItem:v,inputValue:S}}ee.array,ee.array,ee.array,ee.func,ee.func,ee.func,ee.number,ee.number,ee.number,ee.func,ee.func,ee.string,ee.string,ee.shape({addEventListener:ee.func,removeEventListener:ee.func,document:ee.shape({getElementById:ee.func,activeElement:ee.any,body:ee.any})});pi.itemToString,pi.stateReducer,pi.environment;const Iu=[{label:"json",value:"json"},{label:"csv",value:"csv"}],qE=({onSelect:e})=>{const{isOpen:t,selectedItem:n,getToggleButtonProps:i,getMenuProps:r,getItemProps:s}=Ws({items:Iu,onSelectedItemChange:({selectedItem:o})=>{e(o==null?void 0:o.value)},itemToString:o=>o?o.value:""});return C.jsxs("div",{className:"w-full",children:[C.jsxs("div",{"data-cy":"localization-export-file-type-select",className:Ue("w-full p-2 flex items-center justify-between cursor-pointer space-x-1 bg-grey-300 text-grey-50 h-6",{"border-l border-r border-t border-primary-dark rounded-t":t,rounded:!t}),...i(),children:[C.jsx("span",{className:"text-grey-50 text-xs",children:n?n.label:"Select a file format"}),C.jsx(Je.FdDown,{className:"w-4 h-4"})]}),C.jsx("ul",{className:Ue("h-full rounded-b py-[6px]",{hidden:!t,"border-[1px] border-primary-dark":t}),...r(),children:t&&Iu.map((o,l)=>C.jsx("li",{className:Ue("h-5 p-1 bg-grey-900 text-xs hover:bg-primary-hover cursor-pointer"),...s({item:o,index:l}),children:o.label},l))})]})},WE=({selected:e,delimiter:t,onSelect:n,label:i})=>C.jsxs("div",{className:"flex flex-row items-center justify-between space-x-2",children:[C.jsx("div",{className:"flex h-[16px] w-[16px] items-center justify-center rounded-full border",onClick:()=>n(t),children:e===t&&C.jsx("div",{className:"h-2 w-2 rounded-full bg-primary-dark"})}),C.jsxs("div",{className:"text-sm text-grey-50",children:[i,` (${t})`]})]}),GE=({enable:e,onSelect:t})=>{const{state:n,actions:i}=fe.useStateObject({delimiters:[{label:"Comma",value:","},{label:"Semicolon",value:";"}],selected:","});return V.useEffect(()=>{t(n.selected)},[n.selected]),e?C.jsxs("div",{className:"flex flex-row items-center justify-between",children:[C.jsx("span",{className:"text-sm text-grey-50",children:" Select a Delimiter "}),C.jsx("div",{className:"flex flex-row space-x-2",children:n.delimiters.map(({label:r,value:s},o)=>C.jsx(WE,{onSelect:l=>i.setSelected(l),selected:n.selected,delimiter:s,label:r},o))})]}):C.jsx(C.Fragment,{})},JE={SELECT_FILE_TYPE:"Please Select a File Format !"},YE=({toExport:e})=>{var se,ue;const[t,n]=V.useState(),i=vn(),r=i.getWebformTabs(),s=V.useRef(null),o=V.useRef([]),l=V.useRef([]),{i18n:u}=sn(),f=((se=i.getUserComponents)==null?void 0:se.call(i))??{},p=((ue=i.getBuildResolver)==null?void 0:ue.call(i))??{},[h]=V.useState(!0),{state:{isOpen:d,fileType:m,error:b,csvDelimier:v},actions:S}=fe.useStateObject({error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],csvDelimier:","}),E=e.length===0;V.useEffect(()=>{fe.tasksManagerSubject.subscribe({next:te=>{if(te.type==="i18n"&&te.action==="cancel"){const{id:ae}=te;l.current.push(ae)}}}),n({...p,...f})},[]);const k=()=>{S.setFileType(""),S.setError(""),S.setIsOpen(!1)},I=()=>{k()},N=()=>I(),y=()=>{const te={};t&&(Object.entries(t).forEach(([ae,ge])=>{const{info:{settings:ve}}=ge;if(ve)if(ae==="Text")te.Text=[{keyPropName:"doc",keyDefaultName:"text"}];else{const L=g(ve,"");te[ae]=L}}),s.current=te)},g=(te,ae)=>{let ge=[];if(Array.isArray(te))te.forEach(ve=>ge=ge.concat(g(ve,ae)));else if(oe.isObject(te)){const{key:ve,type:L}=te;if(L===fe.ESetting.GROUP){const{components:G}=te;G==null||G.forEach(ne=>ge=ge.concat(g(ne,ae)))}else L===fe.ESetting.I18NFIELD?ge.push({keyPropName:ae||ve,keyDefaultName:ve}):Object.entries(te).forEach(([,G])=>{oe.isObject(G)&&(ge=ge.concat(g(G,ae||ve)))})}return ge},A=(te,ae)=>{const{content:ge}=te,{components:ve}=ge,L={};if(!ve)return te;const G=(O,he,W,Z)=>{const H=[];if(oe.has(O,W)){const ie=oe.get(O,W);H.push(...Xa(ie,W,Z))}const J=[];return H.forEach(ie=>{const X=oe.get(O,ie),$={__dataPath:ie,__default:X};e.forEach(Y=>{const le=`i18n:${Y}`,de=Object.keys(he),Se=de.find(ke=>ke.startsWith(le)),ye=de.reduce((ke,Ie)=>(Ie!==le&&Ie.endsWith(le)&&ke.push(Ie),ke),[]);if(Se){const ke=oe.get(he,`${Se}.${ie}`);oe.set($,Y,ke)}if(ye.length&&ye.forEach(ke=>{const Ie=oe.get(he,`${ke}.${ie}`);let be=ke;be=ke.replace("states:",""),be=be.replace("i18n:",""),Ie&&oe.set($,be,Ie)}),!Se){const ke=oe.get(O,`${ie}`);oe.set($,Y,ke)}}),J.push($)}),J},ne=(O,he,W)=>{const Z=[],H=oe.get(O,W);return H?(Z.push({key:"__default",props:H}),e.forEach(J=>{const ie=`i18n:${J}`,X=Object.keys(he),$=X.find(le=>le.startsWith(ie)),Y=X.reduce((le,de)=>(de!==ie&&de.endsWith(ie)&&le.push(de),le),[]);if($){const le=oe.get(he,`${$}.${W}`);le&&Z.push({key:J,props:le})}Y.length&&Y.forEach(le=>{const de=oe.get(he,`${le}.${W}`);Z.push({key:le,props:de||""})}),!$&&!Y.length&&Z.push({key:J,props:H})}),Z.reduce((J,ie)=>{const{key:X,props:$}=ie,Y=g1($);return{...J,[X]:Y}},{__dataPath:W})):O};return Object.entries(ve).forEach(([O,he])=>{const{props:W,custom:Z={},type:H}=he,K=H.resolvedName,J=ae[K];if(!J||J.length===0)return;const ie=J.map(({keyPropName:X,keyDefaultName:$})=>K==="Text"?ne(W,Z,X):G(W,Z,X,$));oe.set(L,O,{resolverName:K,props:[...ie.flat()]})}),L},M=async(te,ae)=>{const ge={},ve=L=>{const G=L+1===te.length?te.length:L,ne=Math.ceil(G/te.length*100);fe.tasksManagerSubject.next({id:ae,action:"update",type:"i18n",payload:{progress:ne,status:ne>=100?"finished":"ongoing"}})};for(let L=0;L<te.length;L++){const G=te[L],ne=r.find(W=>W.name===G.name&&W.type==="webform");if(!s.current){ve(L);continue}const O=ne||await fe.getNodeInfo({verb:fe.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${G.name}.${G.ext}`,as:"json"}),he=A(O,s.current);if(oe.isEmpty(he)||oe.set(ge,G.name,he),l.current.find(W=>W===ae))return{};ve(L)}return ge},F=(te,ae,ge)=>{const ve="data:text/json;charset=utf-8,"+encodeURIComponent(te),L=document.createElement("a");L.setAttribute("href",ve),L.setAttribute("download",ae+`.${ge}`),document.body.appendChild(L),L.click(),L.remove()},R=te=>{switch(m){case"csv":{const ae=["keys","resolverName","__t"].concat(e.concat(["i18nkey_default"]));return p1(te,ae,v)}case"json":return JSON.stringify(te,null," ");default:return JSON.stringify(te,null," ")}},j=(te,ae)=>{Object.entries(ae.keys).forEach(([ve,L])=>{Object.keys(L).forEach(G=>{o.current.push(`i18n.${ve}.${G}`)})});const ge={};return Object.entries(ae.keys).forEach(([ve,L])=>{ge[ve]={default:L.default},e.forEach(G=>{ge[ve][G]=Object.hasOwn(L,G)?L[G]:h?L.default:void 0})}),{webforms:{...te},i18n:ge}},B=te=>S.setCsvDelimier(te),D=async()=>{const te=ss.generate().toString();try{fe.tasksManagerSubject.next({id:te,action:"add",type:"i18n",payload:{progress:0,name:"Export i18n",status:"ongoing",date:new Date().toISOString(),time:f1()}}),y();const ae=await Wh(),ge=await M(ae,te),ve=j(ge,u),L=R(ve);oe.isEmpty(L)||F(L,"export-i18n",m),k()}catch(ae){fe.tasksManagerSubject.next({id:te,type:"i18n",action:"update",payload:{status:"canceled"}}),fe.tasksManagerSubject.next({id:te,type:"i18n",action:"error",payload:{errorMessage:ae.message||"Export file error"}})}k()};return C.jsxs(C.Fragment,{children:[C.jsx(fe.Tooltip,{label:"Export",container:it(),children:C.jsx("button",{"data-cy":"localization-export-button",disabled:E,className:Ue("flex h-full flex-row items-center p-1 rounded disabled:opacity-50",{"cursor-not-allowed":E},{"hover:bg-primary-hover":!E}),onClick:()=>{S.setIsOpen(!0)},children:C.jsx(Je.FdUpload,{className:"h-4 w-4"})})}),C.jsxs(Af,{isOpen:d,onClose:I,title:"Export","data-cy":"localization-export-dialog",children:[C.jsx("div",{className:"mt-4",children:C.jsx(qE,{onSelect:te=>S.setFileType(te)})}),C.jsx(GE,{enable:m==="csv",onSelect:B}),C.jsxs("div",{className:"mt-3 flex items-center justify-between gap-4",children:[C.jsxs("div",{className:"flex flex-row space-x-1 justify-center items-center text-purple-600 hover:underline cursor-pointer",onClick:()=>{window.open("https://developer.4d.com/qodly/4DQodlyPro/localization#exporting-and-importing-translations","_blank")},children:[C.jsx("p",{className:"text-xs",children:"How to Export an i18n File"}),C.jsx(Je.FdOutload,{className:"ml-1 h-4 w-4 text-grey-50"})]}),C.jsxs("div",{className:"flex items-center space-x-2",children:[C.jsx("button",{onClick:N,className:"rounded border w-16 border-white px-2 py-1 text-xs font-medium text-grey-50 hover:bg-white hover:border-white hover:font-bold hover:text-primary-dark",children:"Cancel"}),C.jsx("button",{onClick:()=>{m?(S.setIsOpen(!1),D()):S.setError(JE.SELECT_FILE_TYPE)},className:"rounded w-16 px-2 py-1 text-xs font-medium text-grey-50 bg-primary-dark hover:border-white hover:border hover:bg-primary-hover hover:text-white hover:font-bold",children:"Export"})]})]}),b&&C.jsx("div",{className:"flex items-center justify-center p-2",children:C.jsx("span",{className:"text-sm text-red-500",children:b})})]})]})},QE={DROP_EVENT_ERROR:"Not Suported File type! Only .json and .csv are Supported."},ZE=["default"],XE={MISSING_WEBFORMS_OR_I18N:"The file must contain 'webforms' or 'i18n' (or both). The file is empty or missing these keys."},Ip=["__dataPath","__default","default","__t","i18nkey_default"],eS=["i18n:","state:"],Sr=e=>Ip.includes(e)||eS.some(t=>e.startsWith(t)),tS=e=>{const t=new Set;return e.webforms&&Object.values(e.webforms).forEach(n=>{Object.values(n).forEach(i=>{(i.props||[]).forEach(r=>{Object.keys(r).forEach(s=>{Sr(s)||t.add(s)})})})}),e.i18n&&Object.values(e.i18n).forEach(n=>{Object.keys(n||{}).forEach(i=>{Sr(i)||t.add(i)})}),Array.from(t).sort()},Au=e=>{if(Ip.includes(e))return null;if(e.startsWith("state:")){const t=e.lastIndexOf("i18n:");return t!==-1&&e.slice(t+5)||null}return e},nS=(e,t)=>{const n=new Set(t),i={};return e.webforms&&(i.webforms={},Object.entries(e.webforms).forEach(([r,s])=>{if(!s||typeof s!="object")return;const o={};Object.entries(s).forEach(([l,u])=>{if(!u||typeof u!="object")return;const f={resolverName:u.resolverName};u.resolverName==="Text"?(u.props&&(f.props=u.props),u.custom&&(f.custom={},Object.entries(u.custom).forEach(([h,d])=>{const m=h.startsWith("state:")||h.startsWith("states:")?Au(h):h.startsWith("i18n:")?h.slice(5):h;m&&n.has(m)&&(f.custom[h]=d)}))):Object.entries(u).forEach(([h,d])=>{if(h!=="resolverName")if(d&&oe.isObject(d)&&!Array.isArray(d)){const m={};Object.entries(d).forEach(([b,v])=>{const S=Au(b);(S===null||n.has(S))&&(m[b]=v)}),Object.keys(m).length>0&&(f[h]=m)}else f[h]=d}),o[l]=f}),i.webforms[r]=o})),e.i18n&&(i.i18n={},Object.entries(e.i18n).forEach(([r,s])=>{if(!s||typeof s!="object")return;const o={};Object.entries(s).forEach(([l,u])=>{(l==="default"||!Sr(l)&&n.has(l))&&(o[l]=u)}),Object.keys(o).length>0&&(i.i18n[r]=o)})),i},iS=e=>{const{data:t}=ls.parse(e),n=t[0];if(!n||!Array.isArray(n))return[];const i=n.slice(2).filter(r=>r&&!Sr(r.trim()));return[...new Set(i)].sort()},Kn={EMPTY_OR_INVALID:"The CSV file is empty or could not be parsed.",HEADER_REQUIRED:"The first row must be a header with at least columns: 'keys', 'resolverName', and one locale (e.g. __t, fr, en).",KEY_FORMAT:"Each data row's first column (keys) must be non-empty and start with 'webforms.' or 'i18n.'.",ROW_COLUMNS:"Every row must have the same number of columns as the header."},rS=e=>{const t=Gh(e),{data:n}=ls.parse(t),i=n;if(!(i!=null&&i.length))return{valid:!1,message:Kn.EMPTY_OR_INVALID};const r=i[0];if(!r||r.length<3)return{valid:!1,message:Kn.HEADER_REQUIRED};const s=(r[0]??"").trim().toLowerCase(),o=(r[1]??"").trim().toLowerCase();if(s!=="keys"||o!=="resolvername")return{valid:!1,message:Kn.HEADER_REQUIRED};const l=r.length;for(let u=1;u<i.length;u++){if(i[u].length<=1)continue;const f=i[u];if(!f||f.length!==l)return{valid:!1,message:Kn.ROW_COLUMNS};const p=(f[0]??"").trim();if(!p)return{valid:!1,message:Kn.KEY_FORMAT};if(!p.startsWith("webforms.")&&!p.startsWith("i18n."))return{valid:!1,message:Kn.KEY_FORMAT}}return{valid:!0}},aS=(e,t)=>{const i=new dd.Validator().validate(e,t);if(i.valid)return{valid:!0};const r=i.errors[0],s=r?`${r.property||"root"} ${r.message}`.trim():"Invalid file format";return{valid:!1,message:oe.isObject(e)&&!oe.has(e,"webforms")&&!oe.has(e,"i18n")&&(s.includes("subschema")||s.includes("any of"))?XE.MISSING_WEBFORMS_OR_I18N:s}},sS="Export i18n",oS="Schema for i18n export format. Must have webforms, i18n, or both.",lS="object",uS=!1,cS={webforms:{type:"object",description:"Webform names to their component localizations",additionalProperties:{$ref:"#/definitions/webformComponents"}},i18n:{type:"object",description:"Shared i18n keys and their localized values",additionalProperties:{$ref:"#/definitions/i18nKeys"}}},hS=[{required:["webforms"]},{required:["i18n"]}],fS={webformComponents:{type:"object",description:"Component ID to component localization entry",additionalProperties:{$ref:"#/definitions/componentEntry"}},componentEntry:{type:"object",required:["resolverName","props"],additionalProperties:!1,properties:{resolverName:{type:"string",description:"Name of the component resolver (e.g. Button)"},props:{type:"array",description:"Localized prop entries",items:{$ref:"#/definitions/propLocalization"}}}},propLocalization:{type:"object",required:["__dataPath","__default"],properties:{__dataPath:{type:"string",description:"Path to the prop (e.g. text)"},__default:{type:"string",description:"Default value for the prop"}},additionalProperties:{type:"string",description:"Locale code to localized string (e.g. fr, en)"}},i18nKeys:{type:"object",required:["default"],properties:{default:{type:"string",description:"Default value"}},additionalProperties:{type:"string",description:"Locale code to localized string (e.g. fr, en)"}}},pS={title:sS,description:oS,type:lS,additionalProperties:uS,properties:cS,anyOf:hS,definitions:fS},dS=({label:e,isocode:t,isChecked:n,onToggle:i})=>C.jsxs("label",{className:"flex cursor-pointer items-center gap-2 rounded py-0.5 text-xs text-grey-50 hover:bg-grey-700 hover:text-white",children:[C.jsx(fe.Checkbox,{className:"h-4",isChecked:n,onChange:i}),C.jsx("span",{className:"truncate",title:t,children:e})]}),gS=({detectedLanguageDetails:e,selectedIsocodes:t,onToggleIsocode:n})=>C.jsxs("div",{className:"mt-2 w-full rounded border border-grey-50 bg-grey-800 px-2 py-1.5",children:[C.jsx("p",{className:"mb-1.5 text-xs font-medium text-grey-100",children:"Detected locales"}),C.jsx("div",{className:"flex flex-col gap-1 overflow-y-auto",style:{maxHeight:"5rem"},children:e.map(i=>C.jsx(dS,{label:`${i.native} - ${i.isocode??""}`,isocode:i.isocode,isChecked:t.includes(i.isocode),onToggle:()=>n(i.isocode)},i.isocode))})]}),mS="Drop or Add a File !",xS=({getRootProps:e,getInputProps:t,isDragActive:n,file:i,error:r,onResetFile:s,detectedLanguageDetails:o,selectedIsocodes:l,onToggleIsocode:u,onClose:f,onImport:p,setError:h,hasNoSelection:d})=>C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"mt-4 space-y-2",children:[C.jsxs("div",{...e(),children:[C.jsx("input",{...t()}),C.jsx("div",{className:Ue("min-h-[100px] rounded border border-dashed text-center text-sm",{"border-purple-500":n,"flex items-center justify-center":i}),children:i?C.jsxs("div",{className:"flex items-center justify-center gap-1 px-2",children:[C.jsx("p",{className:"min-w-0 flex-1 truncate",children:i.name}),C.jsx(fe.Tooltip,{label:"Remove file",container:it(),children:C.jsx("button",{type:"button",onClick:m=>{m.stopPropagation(),s()},className:"flex shrink-0 rounded p-1 text-grey-100 hover:bg-grey-700 hover:text-white","aria-label":"Remove file",children:C.jsx(Je.FdClose,{className:"h-4 w-4"})})})]}):C.jsxs("div",{className:"flex min-h-[100px] w-full flex-col items-center justify-center text-grey-100",children:[C.jsx("p",{className:"max-w-md px-2 text-center text-xs ",children:'Drag and drop the file with ".json" or ".csv" extension here or click to select it from your computer.'}),C.jsx(Je.FdDownload,{className:"mt-2 h-6 w-6 text-grey-200"})]})}),r&&C.jsx("div",{className:"flex items-center justify-center p-2",children:C.jsx("p",{className:"text-xs text-red-400",children:r})})]}),i&&o.length>0&&C.jsx(gS,{detectedLanguageDetails:o,selectedIsocodes:l,onToggleIsocode:u})]}),C.jsxs("div",{className:"mt-4 flex items-center justify-between gap-4",children:[C.jsxs("div",{className:"flex flex-row space-x-1 justify-center items-center text-purple-600 hover:underline cursor-pointer",onClick:()=>{window.open("https://developer.4d.com/qodly/4DQodlyPro/localization#exporting-and-importing-translations","_blank")},children:[C.jsx("p",{className:"text-xs",children:"How to Import an i18n File"}),C.jsx(Je.FdOutload,{className:"ml-1 h-4 w-4 text-grey-50"})]}),C.jsxs("div",{className:"flex items-center space-x-2",children:[C.jsx("button",{onClick:f,className:"rounded border w-16 border-white px-2 py-1 text-xs font-medium text-grey-50 hover:bg-white hover:border-white hover:font-bold hover:text-primary-dark",children:"Cancel"}),C.jsx("button",{disabled:d,onClick:()=>{!r&&i?p():i||h(mS)},className:Ue("rounded w-16 px-2 py-1 text-xs font-medium text-grey-50 bg-primary-dark",d&&"cursor-not-allowed opacity-50",!d&&"hover:border-white hover:border hover:bg-primary-hover hover:text-white hover:font-bold"),children:"Import"})]})]})]}),vS=({summary:e,onClose:t})=>C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"mt-4 space-y-4",children:[C.jsx("p",{className:"text-sm text-grey-100",children:"Summary"}),C.jsxs("div",{className:"rounded border border-grey-50 bg-grey-800 px-3 py-3 space-y-2",children:[C.jsxs("div",{className:"flex items-center justify-between text-xs",children:[C.jsx("span",{className:"text-grey-200",children:"Keys Imported"}),C.jsx("span",{className:"font-medium text-white",children:e.importedKeys})]}),C.jsxs("div",{className:"flex items-center justify-between text-xs",children:[C.jsx("span",{className:"text-grey-200",children:"Keys Merged"}),C.jsx("span",{className:"font-medium text-white",children:e.mergedKeys})]}),C.jsxs("div",{className:"flex items-center justify-between text-xs",children:[C.jsx("span",{className:"text-grey-200",children:"Keys Unchanged"}),C.jsx("span",{className:"font-medium text-white",children:e.unchangedKeys})]})]})]}),C.jsx("div",{className:"mt-4 flex justify-end",children:C.jsx("button",{onClick:t,className:"rounded border border-white px-4 py-1.5 text-xs font-medium text-grey-50 hover:bg-white hover:border-white hover:font-bold hover:text-primary-dark",children:"Close"})})]}),Ap=({disable:e,enable:t,RenderTrigger:n})=>{const i=vn(),{state:{file:r,isOpen:s,supprtedExtension:o,error:l,content:u,detectedLanguages:f,selectedIsocodes:p,showSummaryView:h,summary:d},actions:m}=fe.useStateObject({file:null,error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],content:{},detectedLanguages:[],selectedIsocodes:[],showSummaryView:!1,summary:{importedKeys:0,mergedKeys:0,unchangedKeys:0}}),b=i.getWebformTabs(),{i18n:{keys:v}}=sn(),{allSupportedLanguages:S,userLanguages:{supported:E,primary:k},setUserLangSettings:I}=on(),N=V.useMemo(()=>S.filter(W=>f.includes(W.isocode)),[S,f]),y=W=>{const Z=new Set(E.map(J=>J.isocode)),H=W.filter(J=>!Z.has(J));if(H.length===0)return;const K=H.map(J=>dn(J,S)).filter(J=>J!=null).map(J=>({isocode:J.isocode}));K.length!==0&&I({primary:E.length===0?K[0].isocode:k,supported:E.concat(K)})},{getRootProps:g,getInputProps:A,isDragActive:M}=pd.useDropzone({async onDropAccepted([W]){if(o.find(Z=>W.name.endsWith(Z))){m.setError(""),m.setFile(W);const Z=await j(W),H=W.name.split(".").pop()||"";try{if(H==="csv"){const K=rS(Z);if(!K.valid){m.setError(K.message);return}const J=L(Z,H);m.setContent(J||{});const ie=iS(Z);m.setDetectedLanguages(ie),m.setSelectedIsocodes(ie)}else{const K=JSON.parse(Z),J=aS(K,pS);if(!J.valid){m.setError(J.message);return}const ie=L(Z,H);m.setContent(ie||{});const X=tS(K);m.setDetectedLanguages(X),m.setSelectedIsocodes(X)}}catch(K){m.setError(K.message||"Invalid file");return}}else m.setError(QE.DROP_EVENT_ERROR)},accept:{"application/*":o},multiple:!1}),F=()=>{m.setFileType(""),m.setError(""),m.setFile(null),m.setContent({}),m.setDetectedLanguages([]),m.setSelectedIsocodes([])},R=()=>{m.setIsOpen(!1),m.setShowSummaryView(!1),m.setSummary({importedKeys:0,mergedKeys:0,unchangedKeys:0}),F()},j=W=>new Promise(Z=>{const H=new FileReader;H.onload=()=>Z(H.result),H.readAsText(W)}),B=async(W,Z,H)=>{if(H){const K=`WebForms/${Z}.WebForm`;await i.actions.setTabContent({path:K,content:W.content}),fe.webformSubject.next({path:K,action:fe.WebformActions.RECOMPUTE,payload:W.content.components})}else{const K={...W};await fe.saveContent({verb:fe.DesignerRequestVerb.SAVE_CONTENT,content:K.content,path:`WebForms/${Z}.WebForm`})}},D=(W,Z)=>{const{content:{components:H}}=oe.cloneDeep(W);if(!H)return W;const K=(X,$,Y,le)=>{if(Array.isArray(X))X.forEach((de,Se)=>{let ye="";Y==="Text"?ye=Array.isArray(de)?`${$}.[${Se}].children`:`${$}.[${Se}]`:ye=`${$}.[${Se}]`,K(de,ye,Y,le)});else if(oe.isObject(X))if(Object.keys(X).length>1){const Se=Object.keys(X),ye={};Se.forEach(Ie=>{const be=oe.get(X,Ie);if(Ie==="__t")oe.set(le,`props.${$}`,be);else if(be&&Ie.startsWith("states:")){const Pe=Ie.split(":"),Be=Pe.map(($e,Te)=>Te+1===Pe.length?`i18n:${$e}`:$e).join(":");if(!le.custom)return;oe.set(ye,`${Be}.${$}`,be)}else if(be){const Pe=`i18n:${Ie}`;if(!le.custom)return;oe.set(ye,`${Pe}.${$}`,be)}});const[ke]=$.split(".");Object.entries(ye).forEach(([Ie,be])=>{const Pe=oe.get(le,`props.${ke}`,{}),Be=oe.get(le,`custom.${Ie}.${ke}`);let $e="";typeof Be=="string"||typeof Pe=="string"?$e=oe.get(be,ke):$e=oe.merge(Be||oe.cloneDeep(Pe),oe.get(be,ke)),oe.set(le,`custom.${Ie}.${ke}`,$e)})}else{const Se=Object.entries(X)[0],ye=Se[0],ke=Se[1];$=`${$}.${ye}`,K(ke,$,Y,le)}},J=Object.entries(Z);for(let X=0;X<J.length;X++){const[$,Y]=J[X],{resolverName:le,...de}=Y,Se=oe.get(H,$);if(Se)if(le==="Text"){const{custom:ye,props:ke}=de;oe.set(H,$,{...Se,props:{...Se.props,...ke},custom:{...Se.custom,...ye}})}else Object.entries(de).forEach(([ye,ke])=>{const Ie=oe.get(H,$);if(!Ie)return;const be=oe.cloneDeep(Ie);K(ke,ye,le,be),oe.set(H,$,be)})}const ie=oe.cloneDeep(W);return oe.set(ie,"content.components",H),ie},se=W=>W==null||typeof W=="string"&&W.trim()==="",ue=(W,Z)=>{const H=W&&oe.isObject(W)?W:{},K=Z&&oe.isObject(Z)?Z:{};if(se(K))return oe.cloneDeep(H);const J=oe.cloneDeep(H);for(const ie of Object.keys(K)){const X=K[ie];if(!X||!oe.isObject(X))continue;const $=J[ie],Y=new Set([...Object.keys(X),...$&&oe.isObject($)?Object.keys($):[]]),le={};for(const de of Y){const Se=oe.get(X,de),ye=$&&oe.isObject($)?oe.get($,de):void 0;se(Se)?se(ye)||(le[de]=ye):le[de]=Se}for(const de of ZE){const Se=oe.get(le,de),ye=$&&oe.isObject($)?oe.get($,de):void 0;!se(ye)&&se(Se)&&oe.set(le,de,ye)}J[ie]=le}return J},te=(W,Z)=>{const H={importedKeys:0,mergedKeys:0,unchangedKeys:0},K=new Set(Object.keys(Z||{}));for(const J of K){const ie=Z[J],X=W[J];if(!X||!oe.isObject(X)){H.importedKeys+=1;continue}const $=Object.keys(ie);let Y=!1;for(const le of $){const de=ie[le],Se=oe.get(X,le),ye=se(de)&&!se(Se),ke=String(de??"")===String(Se??"");if(!ye&&!ke){Y=!0;break}}$.length>0&&!Y?H.unchangedKeys+=1:Y&&(H.mergedKeys+=1)}for(const J of Object.keys(W))K.has(J)||(H.unchangedKeys+=1);return H},ae=async(W,Z,H)=>{const{webforms:K,i18n:J}=W,ie=ue(v,J),X=te(v,J);fe.i18nSubject.next({action:"set_content",payload:ie});const $=Y=>{const le=Y+1===Z.length?Z.length:Y,de=Math.ceil(le/Z.length*100);fe.tasksManagerSubject.next({id:H,action:"update",type:"i18n",payload:{progress:de,status:de>=100?"finished":"ongoing"}})};if(se(K))return X;for(let Y=0;Y<Z.length;Y++){const le=Z[Y],de=b.find(be=>be.name===le.name&&be.type==="webform"),Se=!!de,ye=Se?de:await fe.getNodeInfo({verb:fe.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${le.name}.${le.ext}`,as:"json"}),{name:ke}=ye;if(!K[ke]){$(Y);continue}const Ie=D(ye,K[ke]);await B(Ie,ke,Se),$(Y)}return X},ge=W=>{const Z=Gh(W),{data:H}=ls.parse(Z),K={};let J=[];return H.forEach((ie,X)=>{if(X===0){J=ie;return}let $="",Y="";ie.forEach((le,de)=>{if(de===0)$=le;else if(de===1)Y=le;else if($.startsWith("i18n")){if(oe.has(K,$)&&oe.get(K,$))return;oe.set(K,$,le)}else if(le){const{webformName:Se,componentId:ye,propName:ke}=x1($);if(oe.set(K,`webforms.${Se}.${ye}.resolverName`,Y),Y==="Text"){const Ie=va(le),be=J[de];be==="__t"?oe.set(K,`webforms.${Se}.${ye}.props.${ke}`,Ie):oe.set(K,`webforms.${Se}.${ye}.custom.i18n:${be}.${ke}`,Ie)}else{const Ie=J[de];let be=Ie==="i18nkey_default"?"default":Ie;if(be.includes(":")){const Pe=be.split(":");be=Pe.map((Be,$e)=>$e===0?`states:${Be}`:$e===Pe.length-1?`i18n:${Be}`:Be).join(":")}oe.set(K,`${$}.${be}`,le)}}})}),K},ve=W=>{const Z=JSON.parse(W),H={},{webforms:K,i18n:J}=Z;return K&&Object.keys(K).forEach(X=>{const $=oe.get(K,X);Object.keys($).forEach(le=>{const de=oe.get($,le),{props:Se,resolverName:ye}=de;oe.set(H,`webforms.${X}.${le}.resolverName`,ye),Array.isArray(Se)&&Se.forEach(({__dataPath:ke,__default:Ie,...be})=>{if(ye==="Text"){const Pe=va(Ie);oe.set(H,`webforms.${X}.${le}.props.doc`,Pe),Object.keys(be).forEach(Be=>{const $e=va(be[Be]);oe.set(H,`webforms.${X}.${le}.custom.i18n:${Be}.doc`,$e)})}else oe.set(H,`webforms.${X}.${le}.${ke}.__t`,Ie),Object.keys(be).forEach(Pe=>{let Be=Pe;if(Be.includes(":")){const $e=Be.split(":");Be=$e.map((Te,nt)=>nt===0?`states:${Te}`:nt===$e.length-1?`i18n:${Te}`:Te).join(":")}oe.set(H,`webforms.${X}.${le}.${ke}.${Be}`,be[Pe])})})})}),J&&Object.keys(J).forEach(X=>{const $=oe.get(J,X);$&&Object.keys($).forEach(le=>{const de=oe.get($,le);oe.set(H,`i18n.${X}.${le}`,de)})}),H},L=(W,Z)=>{switch(Z){case"csv":return ge(W);case"json":return ve(W)}},G=async()=>{if(r){const W=ss.generate().toString();try{fe.tasksManagerSubject.next({id:W,action:"add",type:"i18n",payload:{date:new Date().toISOString(),progress:0,name:"Import i18n",status:"ongoing"}});const Z=await Wh(),H=nS(u,p),K=await ae(H,Z,W);m.setSummary(K),m.setShowSummaryView(!0),y(p)}catch(Z){fe.tasksManagerSubject.next({id:W,type:"i18n",action:"update",payload:{status:"canceled"}}),fe.tasksManagerSubject.next({id:W,type:"i18n",action:"error",payload:{errorMessage:Z.message||"Import file error"}})}}};if(!t)return C.jsx(C.Fragment,{});const ne=()=>{m.setIsOpen(!0),F()},O=W=>{m.setSelectedIsocodes(p.includes(W)?p.filter(Z=>Z!==W):[...p,W])},he=n?C.jsx(n,{onClick:ne,disabled:!!e}):C.jsx(fe.Tooltip,{label:"Import",container:it(),children:C.jsx("button",{"data-cy":"localization-import-button",disabled:e,className:Ue("flex h-full flex-row items-center rounded p-1 disabled:opacity-50",{"cursor-not-allowed":e},{"hover:bg-primary-hover":!e}),onClick:ne,children:C.jsx(Je.FdDownload,{className:"h-4 w-4"})})});return C.jsxs(C.Fragment,{children:[he,C.jsx(Af,{isOpen:s,onClose:R,title:h?"Import summary":"Import",children:h?C.jsx(vS,{summary:d,onClose:R}):C.jsx(xS,{getRootProps:g,getInputProps:A,isDragActive:M,file:r,error:l,onResetFile:F,detectedLanguages:f,detectedLanguageDetails:N,selectedIsocodes:p,onToggleIsocode:O,onClose:R,onImport:G,setError:m.setError,hasNoSelection:p.length===0})})]})},bS=({onClick:e})=>C.jsx(fe.Tooltip,{label:"Edit",container:it(),children:C.jsx("button",{"data-cy":"locales-list-item-edit-button",onClick:t=>{t.stopPropagation(),e()},className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",children:C.jsx(Je.FdPen,{className:"h-4 w-4"})})}),yS=({onClick:e,disable:t})=>t?C.jsx(C.Fragment,{}):C.jsx(fe.Tooltip,{label:"Remove",container:it(),children:C.jsx("button",{"data-cy":"locales-list-item-remove-button",disabled:t,onClick:n=>{n.stopPropagation(),e()},className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",children:C.jsx(Je.FdTrash,{className:"h-4 w-4"})})}),wS=({collapse:e,onClick:t})=>C.jsx(fe.Tooltip,{label:"Collapse",container:it(),children:C.jsx("button",{onClick:n=>{n.stopPropagation(),t()},className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",children:C.jsx(Je.FdDown,{className:Ue("h-4 w-4 ",{"-rotate-90":e})})})}),ES=({lang:e,onCancel:t,onConfirm:n})=>{var I,N,y;const{allSupportedLanguages:i,setEditing:r}=on(),{i18n:s}=sn();V.useEffect(()=>(r(!0),()=>{r(!1)}),[r]);const o=V.useMemo(()=>{var A,M;const g=new Set;return(A=s==null?void 0:s.userLang)!=null&&A.primary&&g.add(s.userLang.primary),(M=s==null?void 0:s.userLang)!=null&&M.supported&&s.userLang.supported.forEach(F=>{g.add(F.isocode)}),i.filter(F=>!g.has(F.isocode))},[i,(I=s==null?void 0:s.userLang)==null?void 0:I.primary,(N=s==null?void 0:s.userLang)==null?void 0:N.supported]),{state:{supported:l,selectedLanguage:u,highlightedLanguageIndex:f},actions:p}=fe.useStateObject({supported:o,editing:!1,selectedLanguage:null,highlightedLanguageIndex:-1}),{isOpen:h,getToggleButtonProps:d,getMenuProps:m,getItemProps:b,getInputProps:v,openMenu:S}=Ur({onSelectedItemChange:({selectedItem:g})=>{g&&(p.setSelectedLanguage({isocode:g.isocode}),p.setSupported(o))},onInputValueChange:({inputValue:g})=>{if(!g){p.setSupported(o);return}const A=new RegExp(oe.escapeRegExp(g),"gi"),M=o.filter(F=>!g||F.native.match(A)||F.isocode.match(A)||F.locale.match(A));p.setSupported(M)},items:l,itemToString:g=>{if(!g)return"";const A=dn(g.isocode,i);return A?`${A.locale} - ${A.native}`:g.isocode},onHighlightedIndexChange:({highlightedIndex:g})=>{p.setHighlightedLanguageIndex(g)}}),E=fe.useOutsideClick(()=>{k()},"mousedown"),k=()=>{u?n(u):t()};return C.jsxs("div",{className:"flex flex-row justify-between items-center border-1 mb-2 bg-grey-300 rounded border px-2 py-2 hover:cursor-pointer",ref:E,children:[C.jsxs("div",{children:[C.jsx("div",{className:Ue("flex flex-col gap-1 border w-48",{"border-primary-dark rounded-t":h||u,rounded:!h}),children:C.jsxs("div",{className:"flex h-7 rounded bg-grey-300 w-full",children:[C.jsx("input",{"data-cy":"locales-new-language-input",placeholder:((y=dn(e==null?void 0:e.isocode,i))==null?void 0:y.locale)||"Select a language",className:"w-full cursor-pointer placeholder:text-grey-50 text-xs rounded text-grey-50 caret-grey-50 bg-grey-300 p-1.5 placeholder:text-xs focus:outline-none",...v({onClick:()=>{S()},onKeyUp:g=>{g.key==="Enter"&&k()}}),autoFocus:!0}),C.jsx("button",{"aria-label":"toggle menu",className:"cursor-pointer rounded px-2",type:"button",...d({onClick:()=>{p.setSupported(o)}}),children:C.jsx(Je.FdDown,{className:"w-4 h-4 text-green-50"})})]})}),C.jsx("ul",{className:`absolute z-10 w-48 max-h-80 overflow-scroll bg-grey-900 py-1 space-y-1 border-b border-x border-1 rounded-b border-primary-dark ${!(h&&l.length)&&"hidden"}`,...m(),children:h&&l.map((g,A)=>{const M=dn(g.isocode,i);return C.jsx("li",{className:Ue("cursor-pointer text-grey-50 h-5 p-1","flex flex-col justify-center items-start",{"bg-primary-hover":A===f}),...b({item:g,index:A}),children:C.jsx("span",{className:"truncate text-xs text-justify flex justify-center items-center",children:`${M==null?void 0:M.native} - ${M==null?void 0:M.isocode}`})},g.isocode)})})]}),C.jsxs("div",{className:"flex space-x-1",children:[C.jsx(fe.Tooltip,{label:"Cancel",container:it(),children:C.jsx("button",{"data-cy":"locales-new-language-cancel-button",className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:t,children:C.jsx(Je.FdClose,{className:"h-4 w-4 text-gray-50"})})}),C.jsx(fe.Tooltip,{label:"Confirm",container:it(),children:C.jsx("button",{"data-cy":"locales-new-language-confirm-button",className:Ue("rounded p-1 focus:outline-none",{"cursor-not-allowed opacity-50":!u,"cursor-pointer hover:bg-primary-hover":u}),onClick:k,disabled:!u,children:C.jsx(Je.FdCheckCircle,{className:"h-4 w-4 text-gray-50"})})})]})]})},Tp=({activate:e,...t})=>e?C.jsx(ES,{...t}):C.jsx(C.Fragment,{}),SS=({primary:e,selected:t,selectMode:n,lang:i,onSelect:r,onRemove:s,onEdit:o,"data-cy":l})=>{const{state:{hover:u,selected:f,collapse:p,editing:h},actions:{setHover:d,setSelected:m,setCollapse:b,setEditing:v}}=fe.useStateObject({hover:!1,selected:!1,collapse:!0,editing:!1}),{selectedLanguage:S,setSelectedLanguage:E}=on(),{isocode:k,locale:I,native:N}=i||{isocode:"",locale:"",native:""},y=e===k,g=()=>{d(!0)},A=()=>{d(!1)},M=()=>{m(!f),r(k,!f)},F=()=>{v(!0)},R=()=>{s(k)},j=()=>{E(i)},B=se=>{v(!1),o(i,se)},D=()=>{v(!1)};return V.useEffect(()=>{m(t)},[t]),V.useEffect(()=>{y&&E(i)},[]),h?C.jsx(Tp,{lang:i,activate:h,onCancel:D,onConfirm:B}):C.jsxs("div",{"data-cy":l,className:Ue("border-[1px] mb-2 bg-grey-300 flex flex-col space-y-2 rounded px-2 py-2 hover:cursor-pointer",{"border-primary-dark":(S==null?void 0:S.isocode)===(i==null?void 0:i.isocode)}),onMouseEnter:g,onMouseLeave:A,onClick:j,children:[C.jsxs("div",{className:"flex flex-row justify-between items-center",children:[C.jsxs("div",{className:"flex flex-row space-x-1 text-gray-50",children:[u||n?C.jsx(fe.Checkbox,{className:Ue("h-4 w-4 rounded"),isChecked:f,onChange:M}):C.jsx(C.Fragment,{}),C.jsx(Je.FdLocalization,{className:Ue("w-4 h-4",{hidden:n||u})}),C.jsx("span",{className:Ue("text-xs",{"italic font-bold":y}),children:N})]}),C.jsxs("div",{className:"text-grey-50 flex flex-row items-center space-x-1",children:[y&&C.jsx("div",{className:"bg-primary-dark rounded p-0.5 text-xs text-center shrink-0 h-5 w-12",children:"Primary"}),C.jsx(bS,{onClick:F}),C.jsx(yS,{disable:y,onClick:R}),C.jsx(wS,{collapse:p,onClick:()=>b(!p)})]})]}),C.jsxs("div",{className:Ue("ml-6 flex justify-between p-1 text-xs",{hidden:p}),children:[C.jsx("span",{className:"text-grey-50",children:"English name"}),C.jsx("span",{className:"text-grey-100",children:I})]}),C.jsxs("div",{className:Ue("text-grey-50 ml-6 flex justify-between p-1 text-xs",{hidden:p}),children:[C.jsx("span",{className:"text-grey-50",children:"Iso Code"}),C.jsx("span",{className:"text-grey-100",children:k})]})]})};var Tu=function(t){return t.reduce(function(n,i){var r=i[0],s=i[1];return n[r]=s,n},{})},Nu=typeof window<"u"&&window.document&&window.document.createElement?U.useLayoutEffect:U.useEffect,mt="top",Mt="bottom",Ft="right",xt="left",ro="auto",Ai=[mt,Mt,Ft,xt],Gn="start",wi="end",kS="clippingParents",Np="viewport",oi="popper",CS="reference",Pu=Ai.reduce(function(e,t){return e.concat([t+"-"+Gn,t+"-"+wi])},[]),Pp=[].concat(Ai,[ro]).reduce(function(e,t){return e.concat([t,t+"-"+Gn,t+"-"+wi])},[]),_S="beforeRead",IS="read",AS="afterRead",TS="beforeMain",NS="main",PS="afterMain",OS="beforeWrite",RS="write",LS="afterWrite",MS=[_S,IS,AS,TS,NS,PS,OS,RS,LS];function Jt(e){return e?(e.nodeName||"").toLowerCase():null}function St(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Tn(e){var t=St(e).Element;return e instanceof t||e instanceof Element}function Lt(e){var t=St(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ao(e){if(typeof ShadowRoot>"u")return!1;var t=St(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function FS(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},r=t.attributes[n]||{},s=t.elements[n];!Lt(s)||!Jt(s)||(Object.assign(s.style,i),Object.keys(r).forEach(function(o){var l=r[o];l===!1?s.removeAttribute(o):s.setAttribute(o,l===!0?"":l)}))})}function DS(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(i){var r=t.elements[i],s=t.attributes[i]||{},o=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),l=o.reduce(function(u,f){return u[f]="",u},{});!Lt(r)||!Jt(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(u){r.removeAttribute(u)}))})}}const jS={name:"applyStyles",enabled:!0,phase:"write",fn:FS,effect:DS,requires:["computeStyles"]};function Wt(e){return e.split("-")[0]}var _n=Math.max,kr=Math.min,Jn=Math.round;function rs(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Op(){return!/^((?!chrome|android).)*safari/i.test(rs())}function Yn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),r=1,s=1;t&&Lt(e)&&(r=e.offsetWidth>0&&Jn(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Jn(i.height)/e.offsetHeight||1);var o=Tn(e)?St(e):window,l=o.visualViewport,u=!Op()&&n,f=(i.left+(u&&l?l.offsetLeft:0))/r,p=(i.top+(u&&l?l.offsetTop:0))/s,h=i.width/r,d=i.height/s;return{width:h,height:d,top:p,right:f+h,bottom:p+d,left:f,x:f,y:p}}function so(e){var t=Yn(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Rp(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ao(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function an(e){return St(e).getComputedStyle(e)}function VS(e){return["table","td","th"].indexOf(Jt(e))>=0}function wn(e){return((Tn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hr(e){return Jt(e)==="html"?e:e.assignedSlot||e.parentNode||(ao(e)?e.host:null)||wn(e)}function Ou(e){return!Lt(e)||an(e).position==="fixed"?null:e.offsetParent}function BS(e){var t=/firefox/i.test(rs()),n=/Trident/i.test(rs());if(n&&Lt(e)){var i=an(e);if(i.position==="fixed")return null}var r=Hr(e);for(ao(r)&&(r=r.host);Lt(r)&&["html","body"].indexOf(Jt(r))<0;){var s=an(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function Ti(e){for(var t=St(e),n=Ou(e);n&&VS(n)&&an(n).position==="static";)n=Ou(n);return n&&(Jt(n)==="html"||Jt(n)==="body"&&an(n).position==="static")?t:n||BS(e)||t}function oo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function di(e,t,n){return _n(e,kr(t,n))}function zS(e,t,n){var i=di(e,t,n);return i>n?n:i}function Lp(){return{top:0,right:0,bottom:0,left:0}}function Mp(e){return Object.assign({},Lp(),e)}function Fp(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var KS=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Mp(typeof t!="number"?t:Fp(t,Ai))};function US(e){var t,n=e.state,i=e.name,r=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,l=Wt(n.placement),u=oo(l),f=[xt,Ft].indexOf(l)>=0,p=f?"height":"width";if(!(!s||!o)){var h=KS(r.padding,n),d=so(s),m=u==="y"?mt:xt,b=u==="y"?Mt:Ft,v=n.rects.reference[p]+n.rects.reference[u]-o[u]-n.rects.popper[p],S=o[u]-n.rects.reference[u],E=Ti(s),k=E?u==="y"?E.clientHeight||0:E.clientWidth||0:0,I=v/2-S/2,N=h[m],y=k-d[p]-h[b],g=k/2-d[p]/2+I,A=di(N,g,y),M=u;n.modifiersData[i]=(t={},t[M]=A,t.centerOffset=A-g,t)}}function HS(e){var t=e.state,n=e.options,i=n.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||Rp(t.elements.popper,r)&&(t.elements.arrow=r))}const $S={name:"arrow",enabled:!0,phase:"main",fn:US,effect:HS,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qn(e){return e.split("-")[1]}var qS={top:"auto",right:"auto",bottom:"auto",left:"auto"};function WS(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:Jn(n*r)/r||0,y:Jn(i*r)/r||0}}function Ru(e){var t,n=e.popper,i=e.popperRect,r=e.placement,s=e.variation,o=e.offsets,l=e.position,u=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,d=o.x,m=d===void 0?0:d,b=o.y,v=b===void 0?0:b,S=typeof p=="function"?p({x:m,y:v}):{x:m,y:v};m=S.x,v=S.y;var E=o.hasOwnProperty("x"),k=o.hasOwnProperty("y"),I=xt,N=mt,y=window;if(f){var g=Ti(n),A="clientHeight",M="clientWidth";if(g===St(n)&&(g=wn(n),an(g).position!=="static"&&l==="absolute"&&(A="scrollHeight",M="scrollWidth")),g=g,r===mt||(r===xt||r===Ft)&&s===wi){N=Mt;var F=h&&g===y&&y.visualViewport?y.visualViewport.height:g[A];v-=F-i.height,v*=u?1:-1}if(r===xt||(r===mt||r===Mt)&&s===wi){I=Ft;var R=h&&g===y&&y.visualViewport?y.visualViewport.width:g[M];m-=R-i.width,m*=u?1:-1}}var j=Object.assign({position:l},f&&qS),B=p===!0?WS({x:m,y:v},St(n)):{x:m,y:v};if(m=B.x,v=B.y,u){var D;return Object.assign({},j,(D={},D[N]=k?"0":"",D[I]=E?"0":"",D.transform=(y.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",D))}return Object.assign({},j,(t={},t[N]=k?v+"px":"",t[I]=E?m+"px":"",t.transform="",t))}function GS(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=i===void 0?!0:i,s=n.adaptive,o=s===void 0?!0:s,l=n.roundOffsets,u=l===void 0?!0:l,f={placement:Wt(t.placement),variation:Qn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ru(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ru(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const JS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:GS,data:{}};var Xi={passive:!0};function YS(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,s=r===void 0?!0:r,o=i.resize,l=o===void 0?!0:o,u=St(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(p){p.addEventListener("scroll",n.update,Xi)}),l&&u.addEventListener("resize",n.update,Xi),function(){s&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Xi)}),l&&u.removeEventListener("resize",n.update,Xi)}}const QS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:YS,data:{}};var ZS={left:"right",right:"left",bottom:"top",top:"bottom"};function or(e){return e.replace(/left|right|bottom|top/g,function(t){return ZS[t]})}var XS={start:"end",end:"start"};function Lu(e){return e.replace(/start|end/g,function(t){return XS[t]})}function lo(e){var t=St(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function uo(e){return Yn(wn(e)).left+lo(e).scrollLeft}function ek(e,t){var n=St(e),i=wn(e),r=n.visualViewport,s=i.clientWidth,o=i.clientHeight,l=0,u=0;if(r){s=r.width,o=r.height;var f=Op();(f||!f&&t==="fixed")&&(l=r.offsetLeft,u=r.offsetTop)}return{width:s,height:o,x:l+uo(e),y:u}}function tk(e){var t,n=wn(e),i=lo(e),r=(t=e.ownerDocument)==null?void 0:t.body,s=_n(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=_n(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-i.scrollLeft+uo(e),u=-i.scrollTop;return an(r||n).direction==="rtl"&&(l+=_n(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:l,y:u}}function co(e){var t=an(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function Dp(e){return["html","body","#document"].indexOf(Jt(e))>=0?e.ownerDocument.body:Lt(e)&&co(e)?e:Dp(Hr(e))}function gi(e,t){var n;t===void 0&&(t=[]);var i=Dp(e),r=i===((n=e.ownerDocument)==null?void 0:n.body),s=St(i),o=r?[s].concat(s.visualViewport||[],co(i)?i:[]):i,l=t.concat(o);return r?l:l.concat(gi(Hr(o)))}function as(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nk(e,t){var n=Yn(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Mu(e,t,n){return t===Np?as(ek(e,n)):Tn(t)?nk(t,n):as(tk(wn(e)))}function ik(e){var t=gi(Hr(e)),n=["absolute","fixed"].indexOf(an(e).position)>=0,i=n&&Lt(e)?Ti(e):e;return Tn(i)?t.filter(function(r){return Tn(r)&&Rp(r,i)&&Jt(r)!=="body"}):[]}function rk(e,t,n,i){var r=t==="clippingParents"?ik(e):[].concat(t),s=[].concat(r,[n]),o=s[0],l=s.reduce(function(u,f){var p=Mu(e,f,i);return u.top=_n(p.top,u.top),u.right=kr(p.right,u.right),u.bottom=kr(p.bottom,u.bottom),u.left=_n(p.left,u.left),u},Mu(e,o,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function jp(e){var t=e.reference,n=e.element,i=e.placement,r=i?Wt(i):null,s=i?Qn(i):null,o=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(r){case mt:u={x:o,y:t.y-n.height};break;case Mt:u={x:o,y:t.y+t.height};break;case Ft:u={x:t.x+t.width,y:l};break;case xt:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var f=r?oo(r):null;if(f!=null){var p=f==="y"?"height":"width";switch(s){case Gn:u[f]=u[f]-(t[p]/2-n[p]/2);break;case wi:u[f]=u[f]+(t[p]/2-n[p]/2);break}}return u}function Ei(e,t){t===void 0&&(t={});var n=t,i=n.placement,r=i===void 0?e.placement:i,s=n.strategy,o=s===void 0?e.strategy:s,l=n.boundary,u=l===void 0?kS:l,f=n.rootBoundary,p=f===void 0?Np:f,h=n.elementContext,d=h===void 0?oi:h,m=n.altBoundary,b=m===void 0?!1:m,v=n.padding,S=v===void 0?0:v,E=Mp(typeof S!="number"?S:Fp(S,Ai)),k=d===oi?CS:oi,I=e.rects.popper,N=e.elements[b?k:d],y=rk(Tn(N)?N:N.contextElement||wn(e.elements.popper),u,p,o),g=Yn(e.elements.reference),A=jp({reference:g,element:I,placement:r}),M=as(Object.assign({},I,A)),F=d===oi?M:g,R={top:y.top-F.top+E.top,bottom:F.bottom-y.bottom+E.bottom,left:y.left-F.left+E.left,right:F.right-y.right+E.right},j=e.modifiersData.offset;if(d===oi&&j){var B=j[r];Object.keys(R).forEach(function(D){var se=[Ft,Mt].indexOf(D)>=0?1:-1,ue=[mt,Mt].indexOf(D)>=0?"y":"x";R[D]+=B[ue]*se})}return R}function ak(e,t){t===void 0&&(t={});var n=t,i=n.placement,r=n.boundary,s=n.rootBoundary,o=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,f=u===void 0?Pp:u,p=Qn(i),h=p?l?Pu:Pu.filter(function(b){return Qn(b)===p}):Ai,d=h.filter(function(b){return f.indexOf(b)>=0});d.length===0&&(d=h);var m=d.reduce(function(b,v){return b[v]=Ei(e,{placement:v,boundary:r,rootBoundary:s,padding:o})[Wt(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function sk(e){if(Wt(e)===ro)return[];var t=or(e);return[Lu(e),t,Lu(t)]}function ok(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,s=r===void 0?!0:r,o=n.altAxis,l=o===void 0?!0:o,u=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,d=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,S=t.options.placement,E=Wt(S),k=E===S,I=u||(k||!b?[or(S)]:sk(S)),N=[S].concat(I).reduce(function(he,W){return he.concat(Wt(W)===ro?ak(t,{placement:W,boundary:p,rootBoundary:h,padding:f,flipVariations:b,allowedAutoPlacements:v}):W)},[]),y=t.rects.reference,g=t.rects.popper,A=new Map,M=!0,F=N[0],R=0;R<N.length;R++){var j=N[R],B=Wt(j),D=Qn(j)===Gn,se=[mt,Mt].indexOf(B)>=0,ue=se?"width":"height",te=Ei(t,{placement:j,boundary:p,rootBoundary:h,altBoundary:d,padding:f}),ae=se?D?Ft:xt:D?Mt:mt;y[ue]>g[ue]&&(ae=or(ae));var ge=or(ae),ve=[];if(s&&ve.push(te[B]<=0),l&&ve.push(te[ae]<=0,te[ge]<=0),ve.every(function(he){return he})){F=j,M=!1;break}A.set(j,ve)}if(M)for(var L=b?3:1,G=function(W){var Z=N.find(function(H){var K=A.get(H);if(K)return K.slice(0,W).every(function(J){return J})});if(Z)return F=Z,"break"},ne=L;ne>0;ne--){var O=G(ne);if(O==="break")break}t.placement!==F&&(t.modifiersData[i]._skip=!0,t.placement=F,t.reset=!0)}}const lk={name:"flip",enabled:!0,phase:"main",fn:ok,requiresIfExists:["offset"],data:{_skip:!1}};function Fu(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Du(e){return[mt,Ft,Mt,xt].some(function(t){return e[t]>=0})}function uk(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,o=Ei(t,{elementContext:"reference"}),l=Ei(t,{altBoundary:!0}),u=Fu(o,i),f=Fu(l,r,s),p=Du(u),h=Du(f);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const ck={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:uk};function hk(e,t,n){var i=Wt(e),r=[xt,mt].indexOf(i)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=s[0],l=s[1];return o=o||0,l=(l||0)*r,[xt,Ft].indexOf(i)>=0?{x:l,y:o}:{x:o,y:l}}function fk(e){var t=e.state,n=e.options,i=e.name,r=n.offset,s=r===void 0?[0,0]:r,o=Pp.reduce(function(p,h){return p[h]=hk(h,t.rects,s),p},{}),l=o[t.placement],u=l.x,f=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=f),t.modifiersData[i]=o}const pk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fk};function dk(e){var t=e.state,n=e.name;t.modifiersData[n]=jp({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const gk={name:"popperOffsets",enabled:!0,phase:"read",fn:dk,data:{}};function mk(e){return e==="x"?"y":"x"}function xk(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,s=r===void 0?!0:r,o=n.altAxis,l=o===void 0?!1:o,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,d=n.tether,m=d===void 0?!0:d,b=n.tetherOffset,v=b===void 0?0:b,S=Ei(t,{boundary:u,rootBoundary:f,padding:h,altBoundary:p}),E=Wt(t.placement),k=Qn(t.placement),I=!k,N=oo(E),y=mk(N),g=t.modifiersData.popperOffsets,A=t.rects.reference,M=t.rects.popper,F=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,R=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(g){if(s){var D,se=N==="y"?mt:xt,ue=N==="y"?Mt:Ft,te=N==="y"?"height":"width",ae=g[N],ge=ae+S[se],ve=ae-S[ue],L=m?-M[te]/2:0,G=k===Gn?A[te]:M[te],ne=k===Gn?-M[te]:-A[te],O=t.elements.arrow,he=m&&O?so(O):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Lp(),Z=W[se],H=W[ue],K=di(0,A[te],he[te]),J=I?A[te]/2-L-K-Z-R.mainAxis:G-K-Z-R.mainAxis,ie=I?-A[te]/2+L+K+H+R.mainAxis:ne+K+H+R.mainAxis,X=t.elements.arrow&&Ti(t.elements.arrow),$=X?N==="y"?X.clientTop||0:X.clientLeft||0:0,Y=(D=j==null?void 0:j[N])!=null?D:0,le=ae+J-Y-$,de=ae+ie-Y,Se=di(m?kr(ge,le):ge,ae,m?_n(ve,de):ve);g[N]=Se,B[N]=Se-ae}if(l){var ye,ke=N==="x"?mt:xt,Ie=N==="x"?Mt:Ft,be=g[y],Pe=y==="y"?"height":"width",Be=be+S[ke],$e=be-S[Ie],Te=[mt,xt].indexOf(E)!==-1,nt=(ye=j==null?void 0:j[y])!=null?ye:0,Q=Te?Be:be-A[Pe]-M[Pe]-nt+R.altAxis,re=Te?be+A[Pe]+M[Pe]-nt-R.altAxis:$e,T=m&&Te?zS(Q,be,re):di(m?Q:Be,be,m?re:$e);g[y]=T,B[y]=T-be}t.modifiersData[i]=B}}const vk={name:"preventOverflow",enabled:!0,phase:"main",fn:xk,requiresIfExists:["offset"]};function bk(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yk(e){return e===St(e)||!Lt(e)?lo(e):bk(e)}function wk(e){var t=e.getBoundingClientRect(),n=Jn(t.width)/e.offsetWidth||1,i=Jn(t.height)/e.offsetHeight||1;return n!==1||i!==1}function Ek(e,t,n){n===void 0&&(n=!1);var i=Lt(t),r=Lt(t)&&wk(t),s=wn(t),o=Yn(e,r,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&((Jt(t)!=="body"||co(s))&&(l=yk(t)),Lt(t)?(u=Yn(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=uo(s))),{x:o.left+l.scrollLeft-u.x,y:o.top+l.scrollTop-u.y,width:o.width,height:o.height}}function Sk(e){var t=new Map,n=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function r(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&r(u)}}),i.push(s)}return e.forEach(function(s){n.has(s.name)||r(s)}),i}function kk(e){var t=Sk(e);return MS.reduce(function(n,i){return n.concat(t.filter(function(r){return r.phase===i}))},[])}function Ck(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function _k(e){var t=e.reduce(function(n,i){var r=n[i.name];return n[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var ju={placement:"bottom",modifiers:[],strategy:"absolute"};function Vu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Ik(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,r=t.defaultOptions,s=r===void 0?ju:r;return function(l,u,f){f===void 0&&(f=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},ju,s),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},h=[],d=!1,m={state:p,setOptions:function(E){var k=typeof E=="function"?E(p.options):E;v(),p.options=Object.assign({},s,p.options,k),p.scrollParents={reference:Tn(l)?gi(l):l.contextElement?gi(l.contextElement):[],popper:gi(u)};var I=kk(_k([].concat(i,p.options.modifiers)));return p.orderedModifiers=I.filter(function(N){return N.enabled}),b(),m.update()},forceUpdate:function(){if(!d){var E=p.elements,k=E.reference,I=E.popper;if(Vu(k,I)){p.rects={reference:Ek(k,Ti(I),p.options.strategy==="fixed"),popper:so(I)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(R){return p.modifiersData[R.name]=Object.assign({},R.data)});for(var N=0;N<p.orderedModifiers.length;N++){if(p.reset===!0){p.reset=!1,N=-1;continue}var y=p.orderedModifiers[N],g=y.fn,A=y.options,M=A===void 0?{}:A,F=y.name;typeof g=="function"&&(p=g({state:p,options:M,name:F,instance:m})||p)}}}},update:Ck(function(){return new Promise(function(S){m.forceUpdate(),S(p)})}),destroy:function(){v(),d=!0}};if(!Vu(l,u))return m;m.setOptions(f).then(function(S){!d&&f.onFirstUpdate&&f.onFirstUpdate(S)});function b(){p.orderedModifiers.forEach(function(S){var E=S.name,k=S.options,I=k===void 0?{}:k,N=S.effect;if(typeof N=="function"){var y=N({state:p,name:E,instance:m,options:I}),g=function(){};h.push(y||g)}})}function v(){h.forEach(function(S){return S()}),h=[]}return m}}var Ak=[QS,gk,JS,jS,pk,lk,vk,$S,ck],Tk=Ik({defaultModifiers:Ak}),Ma,Bu;function Nk(){if(Bu)return Ma;Bu=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function r(s,o){if(s===o)return!0;if(s&&o&&typeof s=="object"&&typeof o=="object"){if(s.constructor!==o.constructor)return!1;var l,u,f;if(Array.isArray(s)){if(l=s.length,l!=o.length)return!1;for(u=l;u--!==0;)if(!r(s[u],o[u]))return!1;return!0}var p;if(t&&s instanceof Map&&o instanceof Map){if(s.size!==o.size)return!1;for(p=s.entries();!(u=p.next()).done;)if(!o.has(u.value[0]))return!1;for(p=s.entries();!(u=p.next()).done;)if(!r(u.value[1],o.get(u.value[0])))return!1;return!0}if(n&&s instanceof Set&&o instanceof Set){if(s.size!==o.size)return!1;for(p=s.entries();!(u=p.next()).done;)if(!o.has(u.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(o)){if(l=s.length,l!=o.length)return!1;for(u=l;u--!==0;)if(s[u]!==o[u])return!1;return!0}if(s.constructor===RegExp)return s.source===o.source&&s.flags===o.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof o.valueOf=="function")return s.valueOf()===o.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof o.toString=="function")return s.toString()===o.toString();if(f=Object.keys(s),l=f.length,l!==Object.keys(o).length)return!1;for(u=l;u--!==0;)if(!Object.prototype.hasOwnProperty.call(o,f[u]))return!1;if(e&&s instanceof Element)return!1;for(u=l;u--!==0;)if(!((f[u]==="_owner"||f[u]==="__v"||f[u]==="__o")&&s.$$typeof)&&!r(s[f[u]],o[f[u]]))return!1;return!0}return s!==s&&o!==o}return Ma=function(o,l){try{return r(o,l)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}},Ma}var Pk=Nk();const Ok=Lr(Pk);var Rk=[],Lk=function(t,n,i){i===void 0&&(i={});var r=U.useRef(null),s={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||Rk},o=U.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=o[0],u=o[1],f=U.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var b=m.state,v=Object.keys(b.elements);Ku.flushSync(function(){u({styles:Tu(v.map(function(S){return[S,b.styles[S]||{}]})),attributes:Tu(v.map(function(S){return[S,b.attributes[S]]}))})})},requires:["computeStyles"]}},[]),p=U.useMemo(function(){var d={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[f,{name:"applyStyles",enabled:!1}])};return Ok(r.current,d)?r.current||d:(r.current=d,d)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,f]),h=U.useRef();return Nu(function(){h.current&&h.current.setOptions(p)},[p]),Nu(function(){if(!(t==null||n==null)){var d=i.createPopper||Tk,m=d(t,n,p);return h.current=m,function(){m.destroy(),h.current=null}}},[t,n,i.createPopper]),{state:h.current?h.current.state:null,styles:l.styles,attributes:l.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}};const Mk=()=>{var R,j;const[e,t]=V.useState(),[n,i]=V.useState(null),[r,s]=V.useState(null),[o,l]=V.useState([]),{allSupportedLanguages:u,userLanguages:{supported:f=[],primary:p},setUserLangSettings:h,editing:d}=on(),{i18n:m}=sn(),b=V.useMemo(()=>{var D,se;const B=new Set;return(D=m==null?void 0:m.userLang)!=null&&D.primary&&B.add(m.userLang.primary),(se=m==null?void 0:m.userLang)!=null&&se.supported&&m.userLang.supported.forEach(ue=>{B.add(ue.isocode)}),u.filter(ue=>!B.has(ue.isocode))},[u,(R=m==null?void 0:m.userLang)==null?void 0:R.primary,(j=m==null?void 0:m.userLang)==null?void 0:j.supported]),{styles:v,attributes:S}=Lk(e,n,{modifiers:[{name:"offset",options:{offset:[-10,10]}}],placement:"right-start"}),{isOpen:E,getToggleButtonProps:k,getMenuProps:I,getItemProps:N,getInputProps:y,openMenu:g,highlightedIndex:A,reset:M}=Ur({onSelectedItemChange:({selectedItem:B})=>{B&&s({isocode:B.isocode})},onInputValueChange:({inputValue:B})=>{if(!B){l(b);return}const D=new RegExp(oe.escapeRegExp(B),"gi"),se=b.filter(ue=>ue.native.match(D)||ue.isocode.match(D)||ue.locale.match(D));l(se)},items:o,itemToString:B=>{if(!B)return"";const D=dn(B.isocode,u);return D?`${D.locale} - ${D.native}`:B.isocode}});V.useEffect(()=>{s(null),l(b),M()},[n]),V.useEffect(()=>{l(b)},[b]);const F=B=>{if(!r)return;const D={primary:f.length===0?r.isocode:p,supported:f.concat(r)};h(D),B()};return C.jsxs("div",{className:"flex items-center justify-between",children:[C.jsxs("div",{className:"text-grey-50 flex flex-row justify-between",children:[C.jsxs("div",{className:"flex flex-row items-center justify-center space-x-2 text-sm",children:[C.jsx(Je.FdLocalization,{className:"h-4 w-4"}),C.jsx("span",{className:"text-sm text-gray-50",children:"Locales "})]}),C.jsx("div",{className:"space-x-2",children:C.jsx(fe.Tip,{tipKey:"editors:i18n:locals",alwaysOn:!0})})]}),C.jsx(Wr.Popover,{children:({open:B,close:D})=>C.jsxs(C.Fragment,{children:[C.jsx(Wr.Popover.Button,{className:Ue("rounded p-1",{"hover:bg-primary-hover":!d,"cursor-not-allowed opacity-50":d}),ref:t,"data-cy":"locales-header-add-button",children:C.jsx(fe.Tooltip,{label:"Add new language",container:it(),children:C.jsx("span",{children:C.jsx(Je.FdPlus,{className:Ue("h-4 w-4",{"text-gray-50":!d,"text-grey-200":d})})})})}),B&&!d&&Cr.createPortal(C.jsxs(Wr.Popover.Panel,{ref:i,style:v.popper,...S.popper,className:"z-[10000] w-80 rounded border border-grey-50 bg-grey-900 px-4 py-2 text-xs text-white shadow-md",static:!0,children:[C.jsx("h5",{className:"mb-2 text-xs font-semibold",children:"Add a Language"}),C.jsx("div",{className:"mt-2",children:C.jsxs("label",{className:"flex items-start space-x-4",children:[C.jsx("span",{className:"mt-1 block text-grey-100",children:"Language"}),C.jsxs("div",{className:"relative flex-1",children:[C.jsxs("div",{className:Ue("flex h-7 rounded border bg-grey-300 w-full",{"border-primary-dark":E||r,"border-grey-100":!E&&!r}),children:[C.jsx("input",{"data-cy":"locales-new-language-input",placeholder:"Select a language",className:"w-full cursor-pointer placeholder:text-grey-50 text-xs rounded text-grey-50 caret-grey-50 bg-grey-300 p-1.5 placeholder:text-xs focus:outline-none",...y({onClick:()=>g(),onKeyUp:se=>{se.key==="Enter"&&F(D)}}),autoFocus:!0}),C.jsx("button",{"aria-label":"toggle menu",className:"cursor-pointer rounded px-2",type:"button",...k({onClick:()=>l(b)}),children:C.jsx(Je.FdDown,{className:"w-3 h-3 text-grey-50"})})]}),C.jsx("ul",{className:Ue("absolute z-10 w-full max-h-80 overflow-auto bg-grey-900 py-1 space-y-1 border-b border-x rounded-b border-primary-dark",{hidden:!(E&&o.length)}),...I(),children:E&&o.map((se,ue)=>{const te=dn(se.isocode,u);return C.jsx("li",{className:Ue("cursor-pointer text-grey-50 px-2 py-1","flex flex-col justify-center items-start",{"bg-primary-hover":ue===A}),...N({item:se,index:ue}),children:C.jsx("span",{className:"truncate text-xs",children:`${te==null?void 0:te.native} - ${te==null?void 0:te.isocode}`})},se.isocode)})})]})]})}),C.jsxs("div",{className:"mt-4 flex items-center justify-center space-x-2",children:[C.jsx("button",{"data-cy":"locales-new-language-confirm-button",className:Ue("rounded border text-xs border-primary-dark bg-primary-dark px-4 py-1 focus:outline-none focus:ring-1 focus:ring-white",{"cursor-not-allowed opacity-50":!r,"hover:border-primary-hover hover:bg-primary-hover cursor-pointer":r}),disabled:!r,onClick:()=>F(D),children:"Confirm"}),C.jsx("button",{"data-cy":"locales-new-language-cancel-button",className:"rounded border border-grey-50 px-4 py-1 text-xs text-white hover:bg-white hover:border-white hover:text-primary-dark cursor-pointer",onClick:()=>D(),children:"Cancel"})]})]}),document.body)]})})]})},Fk=()=>{const{state:{selectedLanguages:e,selectAll:t},actions:n}=fe.useStateObject({selectAll:!1,selectedLanguages:[]}),{userLanguages:{supported:i=[],primary:r},addFirstLanguage:s,setAddFirstLanguage:o,setUserLangSettings:l,setSelectedLanguage:u,allSupportedLanguages:f}=on(),{editLanguageKeys:p,deleteLanguageKeys:h}=sn(),d=Ad(f),m=Td(e),b=vn(),v=b.getI18nCurrent(),S=b.getTabs(),E=(F,R)=>{const j=R?e.concat(F):e.filter(B=>B!==F);n.setSelectedLanguages(j),t&&n.setSelectAll(!1)},k=()=>{n.setSelectAll(!t),t?n.setSelectedLanguages([]):n.setSelectedLanguages(i.map(F=>F.isocode))},I=(F,R)=>{const j=`i18n:${R}`,B=`:i18n:${R}`,D=se=>{se.custom&&Object.keys(se.custom).forEach(ue=>{(ue.includes(j)||ue.endsWith(B))&&delete se.custom[ue]})};return Object.values(F).forEach(se=>D(se)),F},N=(F,R)=>F.map(j=>{var D;const B=oe.cloneDeep(j);return(D=B.content)!=null&&D.components&&(B.content={...B.content,components:I({...B.content.components},R)}),B}),y=(F,R,j)=>{const B=`i18n:${R}`,D=`:i18n:${R}`,se=ue=>{ue.custom&&Object.keys(ue.custom).forEach(te=>{if(te===B){const ae=ue.custom[te];delete ue.custom[te],ue.custom[`i18n:${j}`]=ae}else if(te.endsWith(D)){const ae=ue.custom[te];delete ue.custom[te];const ge=te.replace(`:i18n:${R}`,`:i18n:${j}`);ue.custom[ge]=ae}})};return Object.values(F).forEach(ue=>se(ue)),F},g=(F,R,j)=>F.map(B=>{var se;const D=oe.cloneDeep(B);return(se=D.content)!=null&&se.components&&(D.content={...D.content,components:y({...D.content.components},R,j)}),D}),A=async F=>{const{confirmed:R}=await b.actions.openModal({title:"Delete Language",message:"Your translations will be lost , want to proceed ?",type:fe.ModalType.CONFIRM,color:fe.ModalColor.WARNING,icon:"FdWarningDanger"});if(!R)return;h({isocode:F});const j=N(S,F);b.actions.setTabs(j);const B={primary:r,supported:i.filter(D=>D.isocode!==F)};l(B),e.includes(F)&&n.setSelectedLanguages(e.filter(D=>D!==F)),B.supported.length===0&&o(!1),F===v&&b.actions.setI18nCurrent("")},M=(F,R)=>{const j={primary:r===F.isocode?R.isocode:r,supported:i.map(D=>D.isocode===F.isocode?R:D)},B=g(S,F.isocode,R.isocode);b.actions.setTabs(B),v===F.isocode&&b.actions.setI18nCurrent(R.isocode),p(F,R),l(j),u(R)};return C.jsxs("div",{className:"flex w-72 flex-col space-y-2 px-2 py-3 shrink-0",children:[C.jsx(Mk,{}),C.jsxs("div",{className:"flex px-[5px] justify-between text-gray-50",children:[C.jsxs("div",{"data-cy":"locales-select-all-checkbox",className:Ue("text-grey-50 flex items-center justify-center space-x-1",{visible:d,invisible:!d}),children:[C.jsx(fe.Checkbox,{id:"select-all",isChecked:t,onChange:k}),C.jsx("label",{htmlFor:"select-all",className:"text-xs cursor-pointer",children:"Select all"})]}),C.jsxs("div",{className:"flex flex-row items-center justify-center space-x-1",children:[C.jsx(YE,{"data-cy":"localization-export-button",enable:!0,disable:!1,toExport:e}),C.jsx(Ap,{"data-cy":"localization-import-button",enable:!0,disable:!1})]})]}),C.jsx("div",{style:{height:"calc(100vh - 11.75rem)"},children:C.jsxs(fd,{"data-cy":"locales-list",style:{height:"100%",width:"100%"},children:[s&&i.length===0&&C.jsx(Tp,{activate:!0,onCancel:()=>o(!1),onConfirm:F=>{const R={primary:F.isocode,supported:[F]};l(R)}}),[...i].sort(F=>F.isocode===r?-1:1).map((F,R)=>{const j=dn(F.isocode,f);return C.jsx(SS,{"data-cy":`locales-list-item-${j==null?void 0:j.isocode}`,primary:r,selected:t||e.includes(j==null?void 0:j.isocode),lang:j,onSelect:E,selectMode:m,onRemove:A,onEdit:M},R)})]})})]})},Dk=({onAddLocal:e})=>C.jsxs("div",{"data-cy":"localization-empty-view",className:"flex flex-col justify-center items-center space-y-3 pb-[30%] w-full h-full bg-grey-800",children:[C.jsx(Je.FdInfoBold,{className:"h-8 w-8 text-grey-200"}),C.jsx("span",{className:"text-grey-200 text-sm text-center",children:"No locale is available yet. Add a new one or import a locale."}),C.jsxs("div",{className:"flex flex-row items-center justify-center space-x-2",children:[C.jsxs("div",{"data-cy":"localization-empty-add-button",className:"flex flex-row items-center justify-center px-2 py-1 space-x-1 bg-primary-dark rounded cursor-pointer",onClick:e,children:[C.jsx(Je.FdPlus,{className:"h-4 w-4 text-grey-50"}),C.jsx("span",{className:"text-grey-50 text-sm",children:"Add new Locale"})]}),C.jsx(Ap,{enable:!0,RenderTrigger:({onClick:t})=>C.jsxs("div",{className:"flex flex-row items-center justify-center px-2 py-1 space-x-1 bg-primary-dark rounded text-grey-50 text-sm disabled:opacity-50 cursor-pointer",onClick:t,children:[C.jsx(Je.FdDownload,{className:"h-4 w-4 text-grey-50"}),C.jsx("span",{className:"text-grey-50 text-sm",children:"Import Locale"})]})})]})]}),jk=()=>{var o;const{userLanguages:e,addFirstLanguage:t,setAddFirstLanguage:n}=on(),r=(((o=e.supported)==null?void 0:o.length)??0)===0&&!t,s=()=>{n(!0)};return r?C.jsx(Dk,{onAddLocal:s}):C.jsxs("div",{className:Ue("flex flex-row w-full h-full bg-grey-800",{"justify-center items-center":r}),children:[C.jsx(Fk,{}),C.jsx(ng,{})]})},Vp=()=>C.jsx(dc,{children:C.jsx(jk,{})}),Vk=()=>{const{modals:e,closeModal:t,editModal:n}=ac();return C.jsx(C.Fragment,{children:e.map((i,r)=>C.jsx(fe.Modal,{hasOverlay:r===0,...i,onClose:t,onEdit:n,container:it()},i.id))})},ui={keys:{},userLang:{primary:"",supported:[]}},Bk=e=>{if(!e)return ui;try{const t=JSON.parse(e);return{keys:(t==null?void 0:t.keys)??ui.keys,userLang:(t==null?void 0:t.userLang)??ui.userLang}}catch{return ui}},zk=({onTabsChange:e,onI18nCurrentChange:t})=>{const n=vn(),i=(n==null?void 0:n.getTabs())||[],r=n==null?void 0:n.getI18nCurrent();return fe.useDidMountEffect(()=>{e&&e(i)},[e,i]),fe.useDidMountEffect(()=>{t&&r&&t(r)},[t,r]),C.jsxs(C.Fragment,{children:[C.jsx("div",{className:`relative h-screen z-10 overflow-hidden ${os.LOCALIZATION_EDITOR_SCOPE_CLASS}`,children:C.jsx(Vp,{})}),C.jsx(Vk,{})]})},Kk=({children:e})=>{const t=vn();return C.jsx(hc,{getSupportedLanguages:n=>(t==null?void 0:t.getSupportedLanguages(n))||Promise.resolve([]),i18nCurrent:t==null?void 0:t.getI18nCurrent(),activeTabPath:t==null?void 0:t.getActiveTabPath(),flagsForActiveTab:t==null?void 0:t.getFlagsByPath(t==null?void 0:t.getActiveTabPath()),children:e})},Uk=({userComponents:e,buildResolver:t,supportedLanguages:n,initialValue:i,onChange:r,...s})=>{const o=rc(e,t,n),[l,u]=V.useState({}),f=V.useRef(ui),p=V.useMemo(()=>Bk(i),[i]);return V.useEffect(()=>{f.current=p},[p]),fe.useDidMountEffect(()=>{if(!(!r||oe.isEqual(l,f.current)))try{r==null||r(JSON.stringify(l)),f.current=l}catch{}},[l,r]),C.jsx($u,{adapter:o,children:C.jsx(lc,{isI18nEnabled:!0,onI18nChange:u,children:C.jsx(Kk,{children:C.jsx(fe.TipsProvider,{children:C.jsx(zk,{...s})})})})})},Hk=({tabs:e=[],i18nCurrent:t="",initialValue:n,...i})=>C.jsx(ic,{tabs:e,i18nCurrent:t,initialI18nFile:n,children:C.jsx(Uk,{initialValue:n,...i})}),$k={supported:[{isocode:"af",locale:"Afrikaans",native:"Afrikaans",flag:"🇿🇦"},{isocode:"af-NA",locale:"Afrikaans (Namibie)",native:"Afrikaans (Namibië)",flag:"🇳🇦"},{isocode:"af-ZA",locale:"Afrikaans (South Africa)",native:"Afrikaans (Suid-Afrika)",flag:"🇿🇦"},{isocode:"agq",locale:"Aghem",native:"Aghem",flag:"🇨🇲"},{isocode:"agq-CM",locale:"Aghem (Cameroun)",native:"Aghem (Kàmàlûŋ)",flag:"🇨🇲"},{isocode:"ak",locale:"Akan",native:"Akan",flag:"🇬🇭"},{isocode:"ak-GH",locale:"Akan (Ghana)",native:"Akan (Gaana)",flag:"🇬🇭"},{isocode:"am",locale:"Amharique",native:"አማርኛ",flag:"🇪🇹"},{isocode:"am-ET",locale:"Amharique (Éthiopie)",native:"አማርኛ (ኢትዮጵያ)",flag:"🇪🇹"},{isocode:"ar",locale:"Arabic",native:"العربية",flag:"🇸🇦"},{isocode:"ar-001",locale:"Arabic (World)",native:"العربية (العالم)",flag:"🌍"},{isocode:"ar-AE",locale:"Arabic (Émirats arabes unis)",native:"العربية (الإمارات العربية المتحدة)",flag:"🇦🇪"},{isocode:"ar-BH",locale:"Arabic (Bahreïn)",native:"العربية (البحرين)",flag:"🇧🇭"},{isocode:"ar-DJ",locale:"Arabic (Djibouti)",native:"العربية (جيبوتي)",flag:"🇩🇯"},{isocode:"ar-DZ",locale:"Arabic (Algérie)",native:"العربية (الجزائر)",flag:"🇩🇿"},{isocode:"ar-EG",locale:"Arabic (Égypte)",native:"العربية (مصر)",flag:"🇪🇬"},{isocode:"ar-EH",locale:"Arabic (Sahara occidental)",native:"العربية (الصحراء الغربية)",flag:"🇪🇭"},{isocode:"ar-ER",locale:"Arabic (Érythrée)",native:"العربية (إريتريا)",flag:"🇪🇷"},{isocode:"ar-IL",locale:"Arabic (Israël)",native:"العربية (إسرائيل)",flag:"🇮🇱"},{isocode:"ar-IQ",locale:"Arabic (Irak)",native:"العربية (العراق)",flag:"🇮🇶"},{isocode:"ar-JO",locale:"Arabic (Jordanie)",native:"العربية (الأردن)",flag:"🇯🇴"},{isocode:"ar-KM",locale:"Arabic (Comores)",native:"العربية (جزر القمر)",flag:"🇰🇲"},{isocode:"ar-KW",locale:"Arabic (Koweït)",native:"العربية (الكويت)",flag:"🇰🇼"},{isocode:"ar-LB",locale:"Arabic (Liban)",native:"العربية (لبنان)",flag:"🇱🇧"},{isocode:"ar-LY",locale:"Arabic (Libye)",native:"العربية (ليبيا)",flag:"🇱🇾"},{isocode:"ar-MA",locale:"Arabic (Maroc)",native:"العربية (المغرب)",flag:"🇲🇦"},{isocode:"ar-MR",locale:"Arabic (Mauritanie)",native:"العربية (موريتانيا)",flag:"🇲🇷"},{isocode:"ar-OM",locale:"Arabic (Oman)",native:"العربية (عُمان)",flag:"🇴🇲"},{isocode:"ar-PS",locale:"Arabic (Territoires palestiniens)",native:"العربية (الأراضي الفلسطينية)",flag:"🇵🇸"},{isocode:"ar-QA",locale:"Arabic (Qatar)",native:"العربية (قطر)",flag:"🇶🇦"},{isocode:"ar-SA",locale:"Arabic (Arabie saoudite)",native:"العربية (المملكة العربية السعودية)",flag:"🇸🇦"},{isocode:"ar-SD",locale:"Arabic (Soudan)",native:"العربية (السودان)",flag:"🇸🇩"},{isocode:"ar-SO",locale:"Arabic (Somalie)",native:"العربية (الصومال)",flag:"🇸🇴"},{isocode:"ar-SS",locale:"Arabic (Soudan du Sud)",native:"العربية (جنوب السودان)",flag:"🇸🇸"},{isocode:"ar-SY",locale:"Arabic (Syrie)",native:"العربية (سوريا)",flag:"🇸🇾"},{isocode:"ar-TD",locale:"Arabic (Tchad)",native:"العربية (تشاد)",flag:"🇹🇩"},{isocode:"ar-TN",locale:"Arabic (Tunisie)",native:"العربية (تونس)",flag:"🇹🇳"},{isocode:"ar-YE",locale:"Arabic (Yémen)",native:"العربية (اليمن)",flag:"🇾🇪"},{isocode:"as",locale:"Assamais",native:"অসমীয়া",flag:"🇮🇳"},{isocode:"as-IN",locale:"Assamais (India)",native:"অসমীয়া (ভারত)",flag:"🇮🇳"},{isocode:"asa",locale:"Assou",native:"Kipare",flag:"🇹🇿"},{isocode:"asa-TZ",locale:"Assou (Tanzanie)",native:"Kipare (Tadhania)",flag:"🇹🇿"},{isocode:"ast",locale:"Asturien",native:"Asturianu",flag:"🇪🇸"},{isocode:"ast-ES",locale:"Asturien (Spain)",native:"Asturianu (España)",flag:"🇪🇸"},{isocode:"az",locale:"Azéri",native:"Azərbaycan",flag:"🇦🇿"},{isocode:"az-Cyrl",locale:"Azéri (cyrillique)",native:"азәрбајҹан (Кирил)",flag:"🇦🇿"},{isocode:"az-Cyrl-AZ",locale:"Azéri (cyrillique, Azerbaïdjan)",native:"азәрбајҹан (Кирил, Азәрбајҹан)",flag:"🇦🇿"},{isocode:"az-Latn",locale:"Azéri (latin)",native:"Azərbaycan (latın)",flag:"🇦🇿"},{isocode:"az-Latn-AZ",locale:"Azéri (latin, Azerbaïdjan)",native:"Azərbaycan (latın, Azərbaycan)",flag:"🇦🇿"},{isocode:"bas",locale:"Bassa",native:"Ɓàsàa",flag:"🇨🇲"},{isocode:"bas-CM",locale:"Bassa (Cameroun)",native:"Ɓàsàa (Kàmɛ̀rûn)",flag:"🇨🇲"},{isocode:"be",locale:"Biélorusse",native:"беларуская",flag:"🇧🇾"},{isocode:"be-BY",locale:"Biélorusse (Biélorussie)",native:"беларуская (Беларусь)",flag:"🇧🇾"},{isocode:"bem",locale:"Bemba",native:"Ichibemba",flag:"🇿🇲"},{isocode:"bem-ZM",locale:"Bemba (Zambie)",native:"Ichibemba (Zambia)",flag:"🇿🇲"},{isocode:"bez",locale:"Béna",native:"Hibena",flag:"🇹🇿"},{isocode:"bez-TZ",locale:"Béna (Tanzanie)",native:"Hibena (Hutanzania)",flag:"🇹🇿"},{isocode:"bg",locale:"Bulgare",native:"български",flag:"🇧🇬"},{isocode:"bg-BG",locale:"Bulgare (Bulgarie)",native:"български (България)",flag:"🇧🇬"},{isocode:"bm",locale:"Bambara",native:"Bamanakan",flag:"🇲🇱"},{isocode:"bm-ML",locale:"Bambara (Mali)",native:"Bamanakan (Mali)",flag:"🇲🇱"},{isocode:"bn",locale:"Bengali",native:"বাংলা",flag:"🇧🇩"},{isocode:"bn-BD",locale:"Bengali (Bangladesh)",native:"বাংলা (বাংলাদেশ)",flag:"🇧🇩"},{isocode:"bn-IN",locale:"Bengali (India)",native:"বাংলা (ভারত)",flag:"🇮🇳"},{isocode:"bo",locale:"Tibétain",native:"བོད་སྐད་",flag:"🇨🇳"},{isocode:"bo-CN",locale:"Tibétain (Chine)",native:"བོད་སྐད་ (རྒྱ་ནག)",flag:"🇨🇳"},{isocode:"bo-IN",locale:"Tibétain (India)",native:"བོད་སྐད་ (རྒྱ་གར་)",flag:"🇮🇳"},{isocode:"br",locale:"Breton",native:"Brezhoneg",flag:"🇫🇷"},{isocode:"br-FR",locale:"Breton (France)",native:"Brezhoneg (Frañs)",flag:"🇫🇷"},{isocode:"brx",locale:"Bodo",native:"बड़ो",flag:"🇮🇳"},{isocode:"brx-IN",locale:"Bodo (India)",native:"बड़ो (भारत)",flag:"🇮🇳"},{isocode:"bs",locale:"Bosniaque",native:"Bosanski",flag:"🇧🇦"},{isocode:"bs-Cyrl",locale:"Bosniaque (cyrillique)",native:"босански (ћирилица)",flag:"🇧🇦"},{isocode:"bs-Cyrl-BA",locale:"Bosniaque (cyrillique, Bosnie-Herzégovine)",native:"босански (ћирилица, Босна и Херцеговина)",flag:"🇧🇦"},{isocode:"bs-Latn",locale:"Bosniaque (latin)",native:"Bosanski (latinica)",flag:"🇧🇦"},{isocode:"bs-Latn-BA",locale:"Bosniaque (latin, Bosnie-Herzégovine)",native:"Bosanski (latinica, Bosna i Hercegovina)",flag:"🇧🇦"},{isocode:"ca",locale:"Catalan",native:"Català",flag:"🇪🇸"},{isocode:"ca-AD",locale:"Catalan (Andorre)",native:"Català (Andorra)",flag:"🇦🇩"},{isocode:"ca-ES",locale:"Catalan (Spain)",native:"Català (Espanya)",flag:"🇪🇸"},{isocode:"ca-FR",locale:"Catalan (France)",native:"Català (França)",flag:"🇫🇷"},{isocode:"ca-IT",locale:"Catalan (Italie)",native:"Català (Itàlia)",flag:"🇮🇹"},{isocode:"ccp",locale:"Ccp",native:"𑄌𑄋𑄴𑄟𑄳𑄦",flag:"🇧🇩"},{isocode:"ccp-BD",locale:"Ccp (Bangladesh)",native:"𑄌𑄋𑄴𑄟𑄳𑄦 (𑄝𑄁𑄣𑄘𑄬𑄌𑄴)",flag:"🇧🇩"},{isocode:"ccp-IN",locale:"Ccp (India)",native:"𑄌𑄋𑄴𑄟𑄳𑄦 (𑄞𑄢𑄧𑄖𑄴)",flag:"🇮🇳"},{isocode:"ce",locale:"Tchétchène",native:"нохчийн",flag:"🇷🇺"},{isocode:"ce-RU",locale:"Tchétchène (Russie)",native:"нохчийн (Росси)",flag:"🇷🇺"},{isocode:"cgg",locale:"Kiga",native:"Rukiga",flag:"🇺🇬"},{isocode:"cgg-UG",locale:"Kiga (Ouganda)",native:"Rukiga (Uganda)",flag:"🇺🇬"},{isocode:"chr",locale:"Cherokee",native:"ᏣᎳᎩ",flag:"🇺🇸"},{isocode:"chr-US",locale:"Cherokee (United States)",native:"ᏣᎳᎩ (ᏌᏊ ᎢᏳᎾᎵᏍᏔᏅ ᏍᎦᏚᎩ)",flag:"🇺🇸"},{isocode:"ckb",locale:"Sorani",native:"کوردیی ناوەندی",flag:"🇮🇶"},{isocode:"ckb-IQ",locale:"Sorani (Irak)",native:"کوردیی ناوەندی (عێراق)",flag:"🇮🇶"},{isocode:"ckb-IR",locale:"Sorani (Iran)",native:"کوردیی ناوەندی (ئێران)",flag:"🇮🇷"},{isocode:"cs",locale:"Tchèque",native:"čeština",flag:"🇨🇿"},{isocode:"cs-CZ",locale:"Tchèque (Tchéquie)",native:"čeština (Česko)",flag:"🇨🇿"},{isocode:"cy",locale:"Gallois",native:"Cymraeg",flag:"🏴"},{isocode:"cy-GB",locale:"Gallois (United Kingdom)",native:"Cymraeg (Y Deyrnas Unedig)",flag:"🇬🇧"},{isocode:"da",locale:"Danois",native:"Dansk",flag:"🇩🇰"},{isocode:"da-DK",locale:"Danois (Danemark)",native:"Dansk (Danmark)",flag:"🇩🇰"},{isocode:"da-GL",locale:"Danois (Groenland)",native:"Dansk (Grønland)",flag:"🇬🇱"},{isocode:"dav",locale:"Taita",native:"Kitaita",flag:"🇰🇪"},{isocode:"dav-KE",locale:"Taita (Kenya)",native:"Kitaita (Kenya)",flag:"🇰🇪"},{isocode:"de",locale:"German",native:"Deutsch",flag:"🇩🇪"},{isocode:"de-AT",locale:"German (Autriche)",native:"Deutsch (Österreich)",flag:"🇦🇹"},{isocode:"de-BE",locale:"German (Belgium)",native:"Deutsch (Belgien)",flag:"🇧🇪"},{isocode:"de-CH",locale:"German (Switzerland)",native:"Deutsch (Schweiz)",flag:"🇨🇭"},{isocode:"de-DE",locale:"German (Germany)",native:"Deutsch (Deutschland)",flag:"🇩🇪"},{isocode:"de-IT",locale:"German (Italie)",native:"Deutsch (Italien)",flag:"🇮🇹"},{isocode:"de-LI",locale:"German (Liechtenstein)",native:"Deutsch (Liechtenstein)",flag:"🇱🇮"},{isocode:"de-LU",locale:"German (Luxembourg)",native:"Deutsch (Luxemburg)",flag:"🇱🇺"},{isocode:"dje",locale:"Zarma",native:"Zarmaciine",flag:"🇳🇪"},{isocode:"dje-NE",locale:"Zarma (Niger)",native:"Zarmaciine (Nižer)",flag:"🇳🇪"},{isocode:"dsb",locale:"Bas-sorabe",native:"Dolnoserbšćina",flag:"🇩🇪"},{isocode:"dsb-DE",locale:"Bas-sorabe (Germany)",native:"Dolnoserbšćina (Nimska)",flag:"🇩🇪"},{isocode:"dua",locale:"Douala",native:"Duálá",flag:"🇨🇲"},{isocode:"dua-CM",locale:"Douala (Cameroun)",native:"Duálá (Cameroun)",flag:"🇨🇲"},{isocode:"dyo",locale:"Diola-fogny",native:"Joola",flag:"🇸🇳"},{isocode:"dyo-SN",locale:"Diola-fogny (Sénégal)",native:"Joola (Senegal)",flag:"🇸🇳"},{isocode:"dz",locale:"Dzongkha",native:"རྫོང་ཁ",flag:"🇧🇹"},{isocode:"dz-BT",locale:"Dzongkha (Bhoutan)",native:"རྫོང་ཁ། (འབྲུག།)",flag:"🇧🇹"},{isocode:"ebu",locale:"Embou",native:"Kĩembu",flag:"🇰🇪"},{isocode:"ebu-KE",locale:"Embou (Kenya)",native:"Kĩembu (Kenya)",flag:"🇰🇪"},{isocode:"ee",locale:"Éwé",native:"Eʋegbe",flag:"🇬🇭"},{isocode:"ee-GH",locale:"Éwé (Ghana)",native:"Eʋegbe (Ghana nutome)",flag:"🇬🇭"},{isocode:"ee-TG",locale:"Éwé (Togo)",native:"Eʋegbe (Togo nutome)",flag:"🇹🇬"},{isocode:"el",locale:"Grec",native:"Ελληνικά",flag:"🇬🇷"},{isocode:"el-CY",locale:"Grec (Chypre)",native:"Ελληνικά (Κύπρος)",flag:"🇨🇾"},{isocode:"el-GR",locale:"Grec (Grèce)",native:"Ελληνικά (Ελλάδα)",flag:"🇬🇷"},{isocode:"en",locale:"English",native:"English",flag:"🇬🇧"},{isocode:"en-001",locale:"English (World)",native:"English (World)",flag:"🌍"},{isocode:"en-150",locale:"English (Europe)",native:"English (Europe)",flag:"🇪🇺"},{isocode:"en-AG",locale:"English (Antigua-et-Barbuda)",native:"English (Antigua & Barbuda)",flag:"🇦🇬"},{isocode:"en-AI",locale:"English (Anguilla)",native:"English (Anguilla)",flag:"🇦🇮"},{isocode:"en-AS",locale:"English (Samoa américaines)",native:"English (American Samoa)",flag:"🇦🇸"},{isocode:"en-AT",locale:"English (Autriche)",native:"English (Austria)",flag:"🇦🇹"},{isocode:"en-AU",locale:"English (Australia)",native:"English (Australia)",flag:"🇦🇺"},{isocode:"en-BB",locale:"English (Barbade)",native:"English (Barbados)",flag:"🇧🇧"},{isocode:"en-BE",locale:"English (Belgium)",native:"English (Belgium)",flag:"🇧🇪"},{isocode:"en-BI",locale:"English (Burundi)",native:"English (Burundi)",flag:"🇧🇮"},{isocode:"en-BM",locale:"English (Bermudes)",native:"English (Bermuda)",flag:"🇧🇲"},{isocode:"en-BS",locale:"English (Bahamas)",native:"English (Bahamas)",flag:"🇧🇸"},{isocode:"en-BW",locale:"English (Botswana)",native:"English (Botswana)",flag:"🇧🇼"},{isocode:"en-BZ",locale:"English (Belize)",native:"English (Belize)",flag:"🇧🇿"},{isocode:"en-CA",locale:"English (Canada)",native:"English (Canada)",flag:"🇨🇦"},{isocode:"en-CC",locale:"English (Îles Cocos)",native:"English (Cocos [Keeling] Islands)",flag:"🇨🇨"},{isocode:"en-CH",locale:"English (Switzerland)",native:"English (Switzerland)",flag:"🇨🇭"},{isocode:"en-CK",locale:"English (Îles Cook)",native:"English (Cook Islands)",flag:"🇨🇰"},{isocode:"en-CM",locale:"English (Cameroun)",native:"English (Cameroon)",flag:"🇨🇲"},{isocode:"en-CX",locale:"English (Île Christmas)",native:"English (Christmas Island)",flag:"🇨🇽"},{isocode:"en-CY",locale:"English (Chypre)",native:"English (Cyprus)",flag:"🇨🇾"},{isocode:"en-DE",locale:"English (Germany)",native:"English (Germany)",flag:"🇩🇪"},{isocode:"en-DG",locale:"English (Diego Garcia)",native:"English (Diego Garcia)",flag:"🇩🇬"},{isocode:"en-DK",locale:"English (Danemark)",native:"English (Denmark)",flag:"🇩🇰"},{isocode:"en-DM",locale:"English (Dominique)",native:"English (Dominica)",flag:"🇩🇲"},{isocode:"en-ER",locale:"English (Érythrée)",native:"English (Eritrea)",flag:"🇪🇷"},{isocode:"en-FI",locale:"English (Finlande)",native:"English (Finland)",flag:"🇫🇮"},{isocode:"en-FJ",locale:"English (Fidji)",native:"English (Fiji)",flag:"🇫🇯"},{isocode:"en-FK",locale:"English (Îles Malouines)",native:"English (Falkland Islands)",flag:"🇫🇰"},{isocode:"en-FM",locale:"English (États fédérés de Micronésie)",native:"English (Micronesia)",flag:"🇫🇲"},{isocode:"en-GB",locale:"English (United Kingdom)",native:"English (United Kingdom)",flag:"🇬🇧"},{isocode:"en-GD",locale:"English (Grenade)",native:"English (Grenada)",flag:"🇬🇩"},{isocode:"en-GG",locale:"English (Guernesey)",native:"English (Guernsey)",flag:"🇬🇬"},{isocode:"en-GH",locale:"English (Ghana)",native:"English (Ghana)",flag:"🇬🇭"},{isocode:"en-GI",locale:"English (Gibraltar)",native:"English (Gibraltar)",flag:"🇬🇮"},{isocode:"en-GM",locale:"English (Gambie)",native:"English (Gambia)",flag:"🇬🇲"},{isocode:"en-GU",locale:"English (Guam)",native:"English (Guam)",flag:"🇬🇺"},{isocode:"en-GY",locale:"English (Guyana)",native:"English (Guyana)",flag:"🇬🇾"},{isocode:"en-HK",locale:"English (R.A.S. chinoise de Hong Kong)",native:"English (Hong Kong SAR China)",flag:"🇭🇰"},{isocode:"en-IE",locale:"English (Irlande)",native:"English (Ireland)",flag:"🇮🇪"},{isocode:"en-IL",locale:"English (Israël)",native:"English (Israel)",flag:"🇮🇱"},{isocode:"en-IM",locale:"English (Île de Man)",native:"English (Isle of Man)",flag:"🇮🇲"},{isocode:"en-IN",locale:"English (India)",native:"English (India)",flag:"🇮🇳"},{isocode:"en-IO",locale:"English (Territoire britannique de l'océan Indien)",native:"English (British Indian Ocean Territory)",flag:"🇮🇴"},{isocode:"en-JE",locale:"English (Jersey)",native:"English (Jersey)",flag:"🇯🇪"},{isocode:"en-JM",locale:"English (Jamaïque)",native:"English (Jamaica)",flag:"🇯🇲"},{isocode:"en-KE",locale:"English (Kenya)",native:"English (Kenya)",flag:"🇰🇪"},{isocode:"en-KI",locale:"English (Kiribati)",native:"English (Kiribati)",flag:"🇰🇮"},{isocode:"en-KN",locale:"English (Saint-Christophe-et-Niévès)",native:"English (St. Kitts & Nevis)",flag:"🇰🇳"},{isocode:"en-KY",locale:"English (Îles Caïmans)",native:"English (Cayman Islands)",flag:"🇰🇾"},{isocode:"en-LC",locale:"English (Sainte-Lucie)",native:"English (St. Lucia)",flag:"🇱🇨"},{isocode:"en-LR",locale:"English (Libéria)",native:"English (Liberia)",flag:"🇱🇷"},{isocode:"en-LS",locale:"English (Lesotho)",native:"English (Lesotho)",flag:"🇱🇸"},{isocode:"en-MG",locale:"English (Madagascar)",native:"English (Madagascar)",flag:"🇲🇬"},{isocode:"en-MH",locale:"English (Îles Marshall)",native:"English (Marshall Islands)",flag:"🇲🇭"},{isocode:"en-MO",locale:"English (R.A.S. chinoise de Macao)",native:"English (Macau SAR China)",flag:"🇲🇴"},{isocode:"en-MP",locale:"English (Îles Mariannes du Nord)",native:"English (Northern Mariana Islands)",flag:"🇲🇵"},{isocode:"en-MS",locale:"English (Montserrat)",native:"English (Montserrat)",flag:"🇲🇸"},{isocode:"en-MT",locale:"English (Malte)",native:"English (Malta)",flag:"🇲🇹"},{isocode:"en-MU",locale:"English (Maurice)",native:"English (Mauritius)",flag:"🇲🇺"},{isocode:"en-MW",locale:"English (Malawi)",native:"English (Malawi)",flag:"🇲🇼"},{isocode:"en-MY",locale:"English (Malaisie)",native:"English (Malaysia)",flag:"🇲🇾"},{isocode:"en-NA",locale:"English (Namibie)",native:"English (Namibia)",flag:"🇳🇦"},{isocode:"en-NF",locale:"English (Île Norfolk)",native:"English (Norfolk Island)",flag:"🇳🇫"},{isocode:"en-NG",locale:"English (Nigéria)",native:"English (Nigeria)",flag:"🇳🇬"},{isocode:"en-NL",locale:"English (Pays-Bas)",native:"English (Netherlands)",flag:"🇳🇱"},{isocode:"en-NR",locale:"English (Nauru)",native:"English (Nauru)",flag:"🇳🇷"},{isocode:"en-NU",locale:"English (Niue)",native:"English (Niue)",flag:"🇳🇺"},{isocode:"en-NZ",locale:"English (New Zealand)",native:"English (New Zealand)",flag:"🇳🇿"},{isocode:"en-PG",locale:"English (Papouasie-Nouvelle-Guinée)",native:"English (Papua New Guinea)",flag:"🇵🇬"},{isocode:"en-PH",locale:"English (Philippines)",native:"English (Philippines)",flag:"🇵🇭"},{isocode:"en-PK",locale:"English (Pakistan)",native:"English (Pakistan)",flag:"🇵🇰"},{isocode:"en-PN",locale:"English (Îles Pitcairn)",native:"English (Pitcairn Islands)",flag:"🇵🇳"},{isocode:"en-PR",locale:"English (Porto Rico)",native:"English (Puerto Rico)",flag:"🇵🇷"},{isocode:"en-PW",locale:"English (Palaos)",native:"English (Palau)",flag:"🇵🇼"},{isocode:"en-RW",locale:"English (Rwanda)",native:"English (Rwanda)",flag:"🇷🇼"},{isocode:"en-SB",locale:"English (Îles Salomon)",native:"English (Solomon Islands)",flag:"🇸🇧"},{isocode:"en-SC",locale:"English (Seychelles)",native:"English (Seychelles)",flag:"🇸🇨"},{isocode:"en-SD",locale:"English (Soudan)",native:"English (Sudan)",flag:"🇸🇩"},{isocode:"en-SE",locale:"English (Suède)",native:"English (Sweden)",flag:"🇸🇪"},{isocode:"en-SG",locale:"English (Singapour)",native:"English (Singapore)",flag:"🇸🇬"},{isocode:"en-SH",locale:"English (Sainte-Hélène)",native:"English (St. Helena)",flag:"🇸🇭"},{isocode:"en-SI",locale:"English (Slovénie)",native:"English (Slovenia)",flag:"🇸🇮"},{isocode:"en-SL",locale:"English (Sierra Leone)",native:"English (Sierra Leone)",flag:"🇸🇱"},{isocode:"en-SS",locale:"English (Soudan du Sud)",native:"English (South Sudan)",flag:"🇸🇸"},{isocode:"en-SX",locale:"English (Saint-Martin [partie néerlandaise])",native:"English (Sint Maarten)",flag:"🇸🇽"},{isocode:"en-SZ",locale:"English (Swaziland)",native:"English (Swaziland)",flag:"🇸🇿"},{isocode:"en-TC",locale:"English (Îles Turques-et-Caïques)",native:"English (Turks & Caicos Islands)",flag:"🇹🇨"},{isocode:"en-TK",locale:"English (Tokélaou)",native:"English (Tokelau)",flag:"🇹🇰"},{isocode:"en-TO",locale:"English (Tonga)",native:"English (Tonga)",flag:"🇹🇴"},{isocode:"en-TT",locale:"English (Trinité-et-Tobago)",native:"English (Trinidad & Tobago)",flag:"🇹🇹"},{isocode:"en-TV",locale:"English (Tuvalu)",native:"English (Tuvalu)",flag:"🇹🇻"},{isocode:"en-TZ",locale:"English (Tanzanie)",native:"English (Tanzania)",flag:"🇹🇿"},{isocode:"en-UG",locale:"English (Ouganda)",native:"English (Uganda)",flag:"🇺🇬"},{isocode:"en-UM",locale:"English (Îles mineures éloignées des United States)",native:"English (U.S. Outlying Islands)",flag:"🇺🇲"},{isocode:"en-US",locale:"English (United States)",native:"English (United States)",flag:"🇺🇸"},{isocode:"en-US-POSIX",locale:"English (United States, Computer)",native:"English (United States, Computer)",flag:"💻"},{isocode:"en-VC",locale:"English (Saint-Vincent-et-les-Grenadines)",native:"English (St. Vincent & Grenadines)",flag:"🇻🇨"},{isocode:"en-VG",locale:"English (Îles Vierges britanniques)",native:"English (British Virgin Islands)",flag:"🇻🇬"},{isocode:"en-VI",locale:"English (Îles Vierges des United States)",native:"English (U.S. Virgin Islands)",flag:"🇻🇮"},{isocode:"en-VU",locale:"English (Vanuatu)",native:"English (Vanuatu)",flag:"🇻🇺"},{isocode:"en-WS",locale:"English (Samoa)",native:"English (Samoa)",flag:"🇼🇸"},{isocode:"en-ZA",locale:"English (South Africa)",native:"English (South Africa)",flag:"🇿🇦"},{isocode:"en-ZM",locale:"English (Zambie)",native:"English (Zambia)",flag:"🇿🇲"},{isocode:"en-ZW",locale:"English (Zimbabwe)",native:"English (Zimbabwe)",flag:"🇿🇼"},{isocode:"eo",locale:"Espéranto",native:"Esperanto",flag:"🌍"},{isocode:"es",locale:"Espagnol",native:"Español",flag:"🇪🇸"},{isocode:"es-419",locale:"Espagnol (Latin America)",native:"Español (Latinoamérica)",flag:"🌎"},{isocode:"es-AR",locale:"Espagnol (Argentine)",native:"Español (Argentina)",flag:"🇦🇷"},{isocode:"es-BO",locale:"Espagnol (Bolivie)",native:"Español (Bolivia)",flag:"🇧🇴"},{isocode:"es-BR",locale:"Espagnol (Brazil)",native:"Español (Brasil)",flag:"🇧🇷"},{isocode:"es-BZ",locale:"Espagnol (Belize)",native:"Español (Belice)",flag:"🇧🇿"},{isocode:"es-CL",locale:"Espagnol (Chili)",native:"Español (Chile)",flag:"🇨🇱"},{isocode:"es-CO",locale:"Espagnol (Colombie)",native:"Español (Colombia)",flag:"🇨🇴"},{isocode:"es-CR",locale:"Espagnol (Costa Rica)",native:"Español (Costa Rica)",flag:"🇨🇷"},{isocode:"es-CU",locale:"Espagnol (Cuba)",native:"Español (Cuba)",flag:"🇨🇺"},{isocode:"es-DO",locale:"Espagnol (République dominicaine)",native:"Español (República Dominicana)",flag:"🇩🇴"},{isocode:"es-EA",locale:"Espagnol (Ceuta et Melilla)",native:"Español (Ceuta y Melilla)",flag:"🇪🇦"},{isocode:"es-EC",locale:"Espagnol (Équateur)",native:"Español (Ecuador)",flag:"🇪🇨"},{isocode:"es-ES",locale:"Espagnol (Spain)",native:"Español (España)",flag:"🇪🇸"},{isocode:"es-GQ",locale:"Espagnol (Guinée équatoriale)",native:"Español (Guinea Ecuatorial)",flag:"🇬🇶"},{isocode:"es-GT",locale:"Espagnol (Guatemala)",native:"Español (Guatemala)",flag:"🇬🇹"},{isocode:"es-HN",locale:"Espagnol (Honduras)",native:"Español (Honduras)",flag:"🇭🇳"},{isocode:"es-IC",locale:"Espagnol (Îles Canaries)",native:"Español (Canarias)",flag:"🇮🇨"},{isocode:"es-MX",locale:"Espagnol (Mexico)",native:"Español (México)",flag:"🇲🇽"},{isocode:"es-NI",locale:"Espagnol (Nicaragua)",native:"Español (Nicaragua)",flag:"🇳🇮"},{isocode:"es-PA",locale:"Espagnol (Panama)",native:"Español (Panamá)",flag:"🇵🇦"},{isocode:"es-PE",locale:"Espagnol (Pérou)",native:"Español (Perú)",flag:"🇵🇪"},{isocode:"es-PH",locale:"Espagnol (Philippines)",native:"Español (Filipinas)",flag:"🇵🇭"},{isocode:"es-PR",locale:"Espagnol (Porto Rico)",native:"Español (Puerto Rico)",flag:"🇵🇷"},{isocode:"es-PY",locale:"Espagnol (Paraguay)",native:"Español (Paraguay)",flag:"🇵🇾"},{isocode:"es-SV",locale:"Espagnol (Salvador)",native:"Español (El Salvador)",flag:"🇸🇻"},{isocode:"es-US",locale:"Espagnol (United States)",native:"Español (Estados Unidos)",flag:"🇺🇸"},{isocode:"es-UY",locale:"Espagnol (Uruguay)",native:"Español (Uruguay)",flag:"🇺🇾"},{isocode:"es-VE",locale:"Espagnol (Venezuela)",native:"Español (Venezuela)",flag:"🇻🇪"},{isocode:"et",locale:"Estonien",native:"Eesti",flag:"🇪🇪"},{isocode:"et-EE",locale:"Estonien (Estonie)",native:"Eesti (Eesti)",flag:"🇪🇪"},{isocode:"eu",locale:"Basque",native:"Euskara",flag:"🇪🇸"},{isocode:"eu-ES",locale:"Basque (Spain)",native:"Euskara (Espainia)",flag:"🇪🇸"},{isocode:"ewo",locale:"Éwondo",native:"Ewondo",flag:"🇨🇲"},{isocode:"ewo-CM",locale:"Éwondo (Cameroun)",native:"Ewondo (Kamərún)",flag:"🇨🇲"},{isocode:"fa",locale:"Persan",native:"فارسی",flag:"🇮🇷"},{isocode:"fa-AF",locale:"Persan (Afghanistan)",native:"فارسی (افغانستان)",flag:"🇦🇫"},{isocode:"fa-IR",locale:"Persan (Iran)",native:"فارسی (ایران)",flag:"🇮🇷"},{isocode:"ff",locale:"Peul",native:"Pulaar",flag:"🇸🇳"},{isocode:"ff-CM",locale:"Peul (Cameroun)",native:"Pulaar (Kameruun)",flag:"🇨🇲"},{isocode:"ff-GN",locale:"Peul (Guinée)",native:"Pulaar (Gine)",flag:"🇬🇳"},{isocode:"ff-MR",locale:"Peul (Mauritanie)",native:"Pulaar (Muritani)",flag:"🇲🇷"},{isocode:"ff-SN",locale:"Peul (Sénégal)",native:"Pulaar (Senegaal)",flag:"🇸🇳"},{isocode:"fi",locale:"Finnois",native:"Suomi",flag:"🇫🇮"},{isocode:"fi-FI",locale:"Finnois (Finlande)",native:"Suomi (Suomi)",flag:"🇫🇮"},{isocode:"fil",locale:"Filipino",native:"Filipino",flag:"🇵🇭"},{isocode:"fil-PH",locale:"Filipino (Philippines)",native:"Filipino (Pilipinas)",flag:"🇵🇭"},{isocode:"fo",locale:"Féroïen",native:"Føroyskt",flag:"🇫🇴"},{isocode:"fo-DK",locale:"Féroïen (Danemark)",native:"Føroyskt (Danmark)",flag:"🇩🇰"},{isocode:"fo-FO",locale:"Féroïen (Îles Féroé)",native:"Føroyskt (Føroyar)",flag:"🇫🇴"},{isocode:"fr",locale:"French",native:"Français",flag:"🇫🇷"},{isocode:"fr-BE",locale:"French (Belgium)",native:"Français (Belgique)",flag:"🇧🇪"},{isocode:"fr-BF",locale:"French (Burkina Faso)",native:"Français (Burkina Faso)",flag:"🇧🇫"},{isocode:"fr-BI",locale:"French (Burundi)",native:"Français (Burundi)",flag:"🇧🇮"},{isocode:"fr-BJ",locale:"French (Bénin)",native:"Français (Bénin)",flag:"🇧🇯"},{isocode:"fr-BL",locale:"French (Saint-Barthélemy)",native:"Français (Saint-Barthélemy)",flag:"🇧🇱"},{isocode:"fr-CA",locale:"French (Canada)",native:"Français (Canada)",flag:"🇨🇦"},{isocode:"fr-CD",locale:"French (Congo-Kinshasa)",native:"Français (Congo-Kinshasa)",flag:"🇨🇩"},{isocode:"fr-CF",locale:"French (République centrafricaine)",native:"Français (République centrafricaine)",flag:"🇨🇫"},{isocode:"fr-CG",locale:"French (Congo-Brazzaville)",native:"Français (Congo-Brazzaville)",flag:"🇨🇬"},{isocode:"fr-CH",locale:"French (Switzerland)",native:"Français (Suisse)",flag:"🇨🇭"},{isocode:"fr-CI",locale:"French (Côte d'Ivoire)",native:"Français (Côte d'Ivoire)",flag:"🇨🇮"},{isocode:"fr-CM",locale:"French (Cameroun)",native:"Français (Cameroun)",flag:"🇨🇲"},{isocode:"fr-DJ",locale:"French (Djibouti)",native:"Français (Djibouti)",flag:"🇩🇯"},{isocode:"fr-DZ",locale:"French (Algérie)",native:"Français (Algérie)",flag:"🇩🇿"},{isocode:"fr-FR",locale:"French (France)",native:"Français (France)",flag:"🇫🇷"},{isocode:"fr-GA",locale:"French (Gabon)",native:"Français (Gabon)",flag:"🇬🇦"},{isocode:"fr-GF",locale:"French (Guyane française)",native:"Français (Guyane française)",flag:"🇬🇫"},{isocode:"fr-GN",locale:"French (Guinée)",native:"Français (Guinée)",flag:"🇬🇳"},{isocode:"fr-GP",locale:"French (Guadeloupe)",native:"Français (Guadeloupe)",flag:"🇬🇵"},{isocode:"fr-GQ",locale:"French (Guinée équatoriale)",native:"Français (Guinée équatoriale)",flag:"🇬🇶"},{isocode:"fr-HT",locale:"French (Haïti)",native:"Français (Haïti)",flag:"🇭🇹"},{isocode:"fr-KM",locale:"French (Comores)",native:"Français (Comores)",flag:"🇰🇲"},{isocode:"fr-LU",locale:"French (Luxembourg)",native:"Français (Luxembourg)",flag:"🇱🇺"},{isocode:"fr-MA",locale:"French (Maroc)",native:"Français (Maroc)",flag:"🇲🇦"},{isocode:"fr-MC",locale:"French (Monaco)",native:"Français (Monaco)",flag:"🇲🇨"},{isocode:"fr-MF",locale:"French (Saint-Martin)",native:"Français (Saint-Martin)",flag:"🇲🇫"},{isocode:"fr-MG",locale:"French (Madagascar)",native:"Français (Madagascar)",flag:"🇲🇬"},{isocode:"fr-ML",locale:"French (Mali)",native:"Français (Mali)",flag:"🇲🇱"},{isocode:"fr-MQ",locale:"French (Martinique)",native:"Français (Martinique)",flag:"🇲🇶"},{isocode:"fr-MR",locale:"French (Mauritanie)",native:"Français (Mauritanie)",flag:"🇲🇷"},{isocode:"fr-MU",locale:"French (Maurice)",native:"Français (Maurice)",flag:"🇲🇺"},{isocode:"fr-NC",locale:"French (Nouvelle-Calédonie)",native:"Français (Nouvelle-Calédonie)",flag:"🇳🇨"},{isocode:"fr-NE",locale:"French (Niger)",native:"Français (Niger)",flag:"🇳🇪"},{isocode:"fr-PF",locale:"French (Polynésie française)",native:"Français (Polynésie française)",flag:"🇵🇫"},{isocode:"fr-PM",locale:"French (Saint-Pierre-et-Miquelon)",native:"Français (Saint-Pierre-et-Miquelon)",flag:"🇵🇲"},{isocode:"fr-RE",locale:"French (La Réunion)",native:"Français (La Réunion)",flag:"🇷🇪"},{isocode:"fr-RW",locale:"French (Rwanda)",native:"Français (Rwanda)",flag:"🇷🇼"},{isocode:"fr-SC",locale:"French (Seychelles)",native:"Français (Seychelles)",flag:"🇸🇨"},{isocode:"fr-SN",locale:"French (Sénégal)",native:"Français (Sénégal)",flag:"🇸🇳"},{isocode:"fr-SY",locale:"French (Syrie)",native:"Français (Syrie)",flag:"🇸🇾"},{isocode:"fr-TD",locale:"French (Tchad)",native:"Français (Tchad)",flag:"🇹🇩"},{isocode:"fr-TG",locale:"French (Togo)",native:"Français (Togo)",flag:"🇹🇬"},{isocode:"fr-TN",locale:"French (Tunisie)",native:"Français (Tunisie)",flag:"🇹🇳"},{isocode:"fr-VU",locale:"French (Vanuatu)",native:"Français (Vanuatu)",flag:"🇻🇺"},{isocode:"fr-WF",locale:"French (Wallis-et-Futuna)",native:"Français (Wallis-et-Futuna)",flag:"🇼🇫"},{isocode:"fr-YT",locale:"French (Mayotte)",native:"Français (Mayotte)",flag:"🇾🇹"},{isocode:"fur",locale:"Frioulan",native:"Furlan",flag:"🇮🇹"},{isocode:"fur-IT",locale:"Frioulan (Italie)",native:"Furlan (Italie)",flag:"🇮🇹"},{isocode:"fy",locale:"Frison occidental",native:"Frysk",flag:"🇳🇱"},{isocode:"fy-NL",locale:"Frison occidental (Pays-Bas)",native:"Frysk (Nederlân)",flag:"🇳🇱"},{isocode:"ga",locale:"Irlandais",native:"Gaeilge",flag:"🇮🇪"},{isocode:"ga-IE",locale:"Irlandais (Irlande)",native:"Gaeilge (Éire)",flag:"🇮🇪"},{isocode:"gd",locale:"Gaélique écossais",native:"Gàidhlig",flag:"🏴"},{isocode:"gd-GB",locale:"Gaélique écossais (United Kingdom)",native:"Gàidhlig (An Rìoghachd Aonaichte)",flag:"🇬🇧"},{isocode:"gl",locale:"Galicien",native:"Galego",flag:"🇪🇸"},{isocode:"gl-ES",locale:"Galicien (Spain)",native:"Galego (España)",flag:"🇪🇸"},{isocode:"gsw",locale:"Switzerland German",native:"Schwiizertüütsch",flag:"🇨🇭"},{isocode:"gsw-CH",locale:"Switzerland German (Switzerland)",native:"Schwiizertüütsch (Schwiiz)",flag:"🇨🇭"},{isocode:"gsw-FR",locale:"Switzerland German (France)",native:"Schwiizertüütsch (Frankriich)",flag:"🇫🇷"},{isocode:"gsw-LI",locale:"Switzerland German (Liechtenstein)",native:"Schwiizertüütsch (Liächteschtäi)",flag:"🇱🇮"},{isocode:"gu",locale:"Goudjerati",native:"ગુજરાતી",flag:"🇮🇳"},{isocode:"gu-IN",locale:"Goudjerati (India)",native:"ગુજરાતી (ભારત)",flag:"🇮🇳"},{isocode:"guz",locale:"Gusii",native:"Ekegusii",flag:"🇰🇪"},{isocode:"guz-KE",locale:"Gusii (Kenya)",native:"Ekegusii (Kenya)",flag:"🇰🇪"},{isocode:"gv",locale:"Mannois",native:"Gaelg",flag:"🇮🇲"},{isocode:"gv-IM",locale:"Mannois (Île de Man)",native:"Gaelg (Ellan Vannin)",flag:"🇮🇲"},{isocode:"ha",locale:"Haoussa",native:"Hausa",flag:"🇳🇬"},{isocode:"ha-GH",locale:"Haoussa (Ghana)",native:"Hausa (Gana)",flag:"🇬🇭"},{isocode:"ha-NE",locale:"Haoussa (Niger)",native:"Hausa (Nijar)",flag:"🇳🇪"},{isocode:"ha-NG",locale:"Haoussa (Nigéria)",native:"Hausa (Najeriya)",flag:"🇳🇬"},{isocode:"haw",locale:"Hawaïen",native:"ʻŌlelo Hawaiʻi",flag:"🇺🇸"},{isocode:"haw-US",locale:"Hawaïen (United States)",native:"ʻŌlelo Hawaiʻi (ʻAmelika Hui Pū ʻIa)",flag:"🇺🇸"},{isocode:"he",locale:"Hébreu",native:"עברית",flag:"🇮🇱"},{isocode:"he-IL",locale:"Hébreu (Israël)",native:"עברית (ישראל)",flag:"🇮🇱"},{isocode:"hi",locale:"Hindi",native:"हिन्दी",flag:"🇮🇳"},{isocode:"hi-IN",locale:"Hindi (India)",native:"हिन्दी (भारत)",flag:"🇮🇳"},{isocode:"hr",locale:"Croate",native:"Hrvatski",flag:"🇭🇷"},{isocode:"hr-BA",locale:"Croate (Bosnie-Herzégovine)",native:"Hrvatski (Bosna i Hercegovina)",flag:"🇧🇦"},{isocode:"hr-HR",locale:"Croate (Croatie)",native:"Hrvatski (Hrvatska)",flag:"🇭🇷"},{isocode:"hsb",locale:"Haut-sorabe",native:"Hornjoserbšćina",flag:"🇩🇪"},{isocode:"hsb-DE",locale:"Haut-sorabe (Germany)",native:"Hornjoserbšćina (Němska)",flag:"🇩🇪"},{isocode:"hu",locale:"Hongrois",native:"Magyar",flag:"🇭🇺"},{isocode:"hu-HU",locale:"Hongrois (Hongrie)",native:"Magyar (Magyarország)",flag:"🇭🇺"},{isocode:"hy",locale:"Arménien",native:"հայերեն",flag:"🇦🇲"},{isocode:"hy-AM",locale:"Arménien (Arménie)",native:"հայերեն (Հայաստան)",flag:"🇦🇲"},{isocode:"id",locale:"Indonésien",native:"Indonesia",flag:"🇮🇩"},{isocode:"id-ID",locale:"Indonésien (Indonésie)",native:"Indonesia (Indonesia)",flag:"🇮🇩"},{isocode:"ig",locale:"Igbo",native:"Igbo",flag:"🇳🇬"},{isocode:"ig-NG",locale:"Igbo (Nigéria)",native:"Igbo (Naịjịrịa)",flag:"🇳🇬"},{isocode:"ii",locale:"Yi du Sichuan",native:"ꆈꌠꉙ",flag:"🇨🇳"},{isocode:"ii-CN",locale:"Yi du Sichuan (Chine)",native:"ꆈꌠꉙ (ꍏꇩ)",flag:"🇨🇳"},{isocode:"is",locale:"Islandais",native:"íslenska",flag:"🇮🇸"},{isocode:"is-IS",locale:"Islandais (Islande)",native:"íslenska (Ísland)",flag:"🇮🇸"},{isocode:"it",locale:"Italian",native:"Italiano",flag:"🇮🇹"},{isocode:"it-CH",locale:"Italian (Switzerland)",native:"Italiano (Svizzera)",flag:"🇨🇭"},{isocode:"it-IT",locale:"Italian (Italie)",native:"Italiano (Italia)",flag:"🇮🇹"},{isocode:"it-SM",locale:"Italian (Saint-Marin)",native:"Italiano (San Marino)",flag:"🇸🇲"},{isocode:"it-VA",locale:"Italian (État de la Cité du Vatican)",native:"Italiano (Città del Vaticano)",flag:"🇻🇦"},{isocode:"ja",locale:"Japonais",native:"日本語",flag:"🇯🇵"},{isocode:"ja-JP",locale:"Japonais (Japan)",native:"日本語 (日本)",flag:"🇯🇵"},{isocode:"jgo",locale:"Ngomba",native:"Ndaꞌa",flag:"🇨🇲"},{isocode:"jgo-CM",locale:"Ngomba (Cameroun)",native:"Ndaꞌa (Kamɛlûn)",flag:"🇨🇲"},{isocode:"jmc",locale:"Matchamé",native:"Kimachame",flag:"🇹🇿"},{isocode:"jmc-TZ",locale:"Matchamé (Tanzanie)",native:"Kimachame (Tanzania)",flag:"🇹🇿"},{isocode:"ka",locale:"Géorgien",native:"ქართული",flag:"🇬🇪"},{isocode:"ka-GE",locale:"Géorgien (Géorgie)",native:"ქართული (საქართველო)",flag:"🇬🇪"},{isocode:"kab",locale:"Kabyle",native:"Taqbaylit",flag:"🇩🇿"},{isocode:"kab-DZ",locale:"Kabyle (Algérie)",native:"Taqbaylit (Lezzayer)",flag:"🇩🇿"},{isocode:"kam",locale:"Kamba",native:"Kikamba",flag:"🇰🇪"},{isocode:"kam-KE",locale:"Kamba (Kenya)",native:"Kikamba (Kenya)",flag:"🇰🇪"},{isocode:"kde",locale:"Makondé",native:"Chimakonde",flag:"🇹🇿"},{isocode:"kde-TZ",locale:"Makondé (Tanzanie)",native:"Chimakonde (Tanzania)",flag:"🇹🇿"},{isocode:"kea",locale:"Capverdien",native:"Kabuverdianu",flag:"🇨🇻"},{isocode:"kea-CV",locale:"Capverdien (Cap-Vert)",native:"Kabuverdianu (Kabu Verdi)",flag:"🇨🇻"},{isocode:"khq",locale:"Koyra chiini",native:"Koyra ciini",flag:"🇲🇱"},{isocode:"khq-ML",locale:"Koyra chiini (Mali)",native:"Koyra ciini (Maali)",flag:"🇲🇱"},{isocode:"ki",locale:"Kikuyu",native:"Gikuyu",flag:"🇰🇪"},{isocode:"ki-KE",locale:"Kikuyu (Kenya)",native:"Gikuyu (Kenya)",flag:"🇰🇪"},{isocode:"kk",locale:"Kazakh",native:"қазақ тілі",flag:"🇰🇿"},{isocode:"kk-KZ",locale:"Kazakh (Kazakhstan)",native:"қазақ тілі (Қазақстан)",flag:"🇰🇿"},{isocode:"kkj",locale:"Kako",native:"Kakɔ",flag:"🇨🇲"},{isocode:"kkj-CM",locale:"Kako (Cameroun)",native:"Kakɔ (Kamɛrun)",flag:"🇨🇲"},{isocode:"kl",locale:"Groenlandais",native:"Kalaallisut",flag:"🇬🇱"},{isocode:"kl-GL",locale:"Groenlandais (Groenland)",native:"Kalaallisut (Kalaallit Nunaat)",flag:"🇬🇱"},{isocode:"kln",locale:"Kalendjin",native:"Kalenjin",flag:"🇰🇪"},{isocode:"kln-KE",locale:"Kalendjin (Kenya)",native:"Kalenjin (Emetab Kenya)",flag:"🇰🇪"},{isocode:"km",locale:"Khmer",native:"ខ្មែរ",flag:"🇰🇭"},{isocode:"km-KH",locale:"Khmer (Cambodge)",native:"ខ្មែរ (កម្ពុជា)",flag:"🇰🇭"},{isocode:"kn",locale:"Kannada",native:"ಕನ್ನಡ",flag:"🇮🇳"},{isocode:"kn-IN",locale:"Kannada (India)",native:"ಕನ್ನಡ (ಭಾರತ)",flag:"🇮🇳"},{isocode:"ko",locale:"Coréen",native:"한국어",flag:"🇰🇷"},{isocode:"ko-KP",locale:"Coréen (Corée du Nord)",native:"한국어(조선민주주의인민공화국)",flag:"🇰🇵"},{isocode:"ko-KR",locale:"Coréen (Corée du Sud)",native:"한국어(대한민국)",flag:"🇰🇷"},{isocode:"kok",locale:"Konkani",native:"कोंकणी",flag:"🇮🇳"},{isocode:"kok-IN",locale:"Konkani (India)",native:"कोंकणी (भारत)",flag:"🇮🇳"},{isocode:"ks",locale:"Kashmiri",native:"کٲشُر",flag:"🇮🇳"},{isocode:"ks-IN",locale:"Kashmiri (India)",native:"کٲشُر (ہِنٛدوستان)",flag:"🇮🇳"},{isocode:"ksb",locale:"Chambala",native:"Kishambaa",flag:"🇹🇿"},{isocode:"ksb-TZ",locale:"Chambala (Tanzanie)",native:"Kishambaa (Tanzania)",flag:"🇹🇿"},{isocode:"ksf",locale:"Bafia",native:"Rikpa",flag:"🇨🇲"},{isocode:"ksf-CM",locale:"Bafia (Cameroun)",native:"Rikpa (kamɛrún)",flag:"🇨🇲"},{isocode:"ksh",locale:"Francique ripuaire",native:"Kölsch",flag:"🇩🇪"},{isocode:"ksh-DE",locale:"Francique ripuaire (Germany)",native:"Kölsch en Doütschland",flag:"🇩🇪"},{isocode:"kw",locale:"Cornique",native:"Kernewek",flag:"🇬🇧"},{isocode:"kw-GB",locale:"Cornique (United Kingdom)",native:"Kernewek (Rywvaneth Unys)",flag:"🇬🇧"},{isocode:"ky",locale:"Kirghize",native:"кыргызча",flag:"🇰🇬"},{isocode:"ky-KG",locale:"Kirghize (Kirghizistan)",native:"кыргызча (Кыргызстан)",flag:"🇰🇬"},{isocode:"lag",locale:"Langi",native:"Kɨlaangi",flag:"🇹🇿"},{isocode:"lag-TZ",locale:"Langi (Tanzanie)",native:"Kɨlaangi (Taansanía)",flag:"🇹🇿"},{isocode:"lb",locale:"Luxembourgeois",native:"Lëtzebuergesch",flag:"🇱🇺"},{isocode:"lb-LU",locale:"Luxembourgeois (Luxembourg)",native:"Lëtzebuergesch (Lëtzebuerg)",flag:"🇱🇺"},{isocode:"lg",locale:"Ganda",native:"Luganda",flag:"🇺🇬"},{isocode:"lg-UG",locale:"Ganda (Ouganda)",native:"Luganda (Yuganda)",flag:"🇺🇬"},{isocode:"lkt",locale:"Lakota",native:"Lakȟólʼiyapi",flag:"🇺🇸"},{isocode:"lkt-US",locale:"Lakota (United States)",native:"Lakȟólʼiyapi (Mílahaŋska Tȟamákȟočhe)",flag:"🇺🇸"},{isocode:"ln",locale:"Lingala",native:"Lingála",flag:"🇨🇩"},{isocode:"ln-AO",locale:"Lingala (Angola)",native:"Lingála (Angóla)",flag:"🇦🇴"},{isocode:"ln-CD",locale:"Lingala (Congo-Kinshasa)",native:"Lingála (Republíki ya Kongó Demokratíki)",flag:"🇨🇩"},{isocode:"ln-CF",locale:"Lingala (République centrafricaine)",native:"Lingála (Repibiki ya Afríka ya Káti)",flag:"🇨🇫"},{isocode:"ln-CG",locale:"Lingala (Congo-Brazzaville)",native:"Lingála (Kongo)",flag:"🇨🇬"},{isocode:"lo",locale:"Lao",native:"ລາວ",flag:"🇱🇦"},{isocode:"lo-LA",locale:"Lao (Laos)",native:"ລາວ (ລາວ)",flag:"🇱🇦"},{isocode:"lrc",locale:"Lori du Nord",native:"لۊری شومالی",flag:"🇮🇷"},{isocode:"lrc-IQ",locale:"Lori du Nord (Irak)",native:"لۊری شومالی (IQ)",flag:"🇮🇶"},{isocode:"lrc-IR",locale:"Lori du Nord (Iran)",native:"لۊری شومالی (IR)",flag:"🇮🇷"},{isocode:"lt",locale:"Lituanien",native:"Lietuvių",flag:"🇱🇹"},{isocode:"lt-LT",locale:"Lituanien (Lituanie)",native:"Lietuvių (Lietuva)",flag:"🇱🇹"},{isocode:"lu",locale:"Luba-katanga",native:"Tshiluba",flag:"🇨🇩"},{isocode:"lu-CD",locale:"Luba-katanga (Congo-Kinshasa)",native:"Tshiluba (Ditunga wa Kongu)",flag:"🇨🇩"},{isocode:"luo",locale:"Luo",native:"Dholuo",flag:"🇰🇪"},{isocode:"luo-KE",locale:"Luo (Kenya)",native:"Dholuo (Kenya)",flag:"🇰🇪"},{isocode:"luy",locale:"Luhya",native:"Luluhia",flag:"🇰🇪"},{isocode:"luy-KE",locale:"Luhya (Kenya)",native:"Luluhia (Kenya)",flag:"🇰🇪"},{isocode:"lv",locale:"Letton",native:"Latviešu",flag:"🇱🇻"},{isocode:"lv-LV",locale:"Letton (Lettonie)",native:"Latviešu (Latvija)",flag:"🇱🇻"},{isocode:"mas",locale:"Massaï",native:"Maa",flag:"🇰🇪"},{isocode:"mas-KE",locale:"Massaï (Kenya)",native:"Maa (Kenya)",flag:"🇰🇪"},{isocode:"mas-TZ",locale:"Massaï (Tanzanie)",native:"Maa (Tansania)",flag:"🇹🇿"},{isocode:"mer",locale:"Mérou",native:"Kĩmĩrũ",flag:"🇰🇪"},{isocode:"mer-KE",locale:"Mérou (Kenya)",native:"Kĩmĩrũ (Kenya)",flag:"🇰🇪"},{isocode:"mfe",locale:"Créole mauricien",native:"Kreol morisien",flag:"🇲🇺"},{isocode:"mfe-MU",locale:"Créole mauricien (Maurice)",native:"Kreol morisien (Moris)",flag:"🇲🇺"},{isocode:"mg",locale:"Malgache",native:"Malagasy",flag:"🇲🇬"},{isocode:"mg-MG",locale:"Malgache (Madagascar)",native:"Malagasy (Madagasikara)",flag:"🇲🇬"},{isocode:"mgh",locale:"Makhuwa-meetto",native:"Makua",flag:"🇲🇿"},{isocode:"mgh-MZ",locale:"Makhuwa-meetto (Mozambique)",native:"Makua (Umozambiki)",flag:"🇲🇿"},{isocode:"mgo",locale:"Méta'",native:"Metaʼ",flag:"🇨🇲"},{isocode:"mgo-CM",locale:"Méta' (Cameroun)",native:"Metaʼ (Kamalun)",flag:"🇨🇲"},{isocode:"mk",locale:"Macédonien",native:"македонски",flag:"🇲🇰"},{isocode:"mk-MK",locale:"Macédonien (Macédoine)",native:"македонски (Македонија)",flag:"🇲🇰"},{isocode:"ml",locale:"Malayalam",native:"മലയാളം",flag:"🇮🇳"},{isocode:"ml-IN",locale:"Malayalam (India)",native:"മലയാളം (ഇന്ത്യ)",flag:"🇮🇳"},{isocode:"mn",locale:"Mongol",native:"монгол",flag:"🇲🇳"},{isocode:"mn-MN",locale:"Mongol (Mongolie)",native:"монгол (Монгол)",flag:"🇲🇳"},{isocode:"mr",locale:"Marathe",native:"मराठी",flag:"🇮🇳"},{isocode:"mr-IN",locale:"Marathe (India)",native:"मराठी (भारत)",flag:"🇮🇳"},{isocode:"ms",locale:"Malais",native:"Melayu",flag:"🇲🇾"},{isocode:"ms-BN",locale:"Malais (Brunéi Darussalam)",native:"Melayu (Brunei)",flag:"🇧🇳"},{isocode:"ms-MY",locale:"Malais (Malaisie)",native:"Melayu (Malaysia)",flag:"🇲🇾"},{isocode:"ms-SG",locale:"Malais (Singapour)",native:"Melayu (Singapura)",flag:"🇸🇬"},{isocode:"mt",locale:"Maltais",native:"Malti",flag:"🇲🇹"},{isocode:"mt-MT",locale:"Maltais (Malte)",native:"Malti (Malta)",flag:"🇲🇹"},{isocode:"mua",locale:"Moundang",native:"MUNDAŊ",flag:"🇨🇲"},{isocode:"mua-CM",locale:"Moundang (Cameroun)",native:"MUNDAŊ (kameruŋ)",flag:"🇨🇲"},{isocode:"my",locale:"Birman",native:"မြန်မာ",flag:"🇲🇲"},{isocode:"my-MM",locale:"Birman (Myanmar [Birmanie])",native:"မြန်မာ (မြန်မာ)",flag:"🇲🇲"},{isocode:"mzn",locale:"Mazandérani",native:"مازرونی",flag:"🇮🇷"},{isocode:"mzn-IR",locale:"Mazandérani (Iran)",native:"مازرونی (ایران)",flag:"🇮🇷"},{isocode:"naq",locale:"Nama",native:"Khoekhoegowab",flag:"🇳🇦"},{isocode:"naq-NA",locale:"Nama (Namibie)",native:"Khoekhoegowab (Namibiab)",flag:"🇳🇦"},{isocode:"nb",locale:"Norvégien bokmål",native:"Norsk bokmål",flag:"🇳🇴"},{isocode:"nb-NO",locale:"Norvégien bokmål (Norvège)",native:"Norsk bokmål (Norge)",flag:"🇳🇴"},{isocode:"nb-SJ",locale:"Norvégien bokmål (Svalbard et Jan Mayen)",native:"Norsk bokmål (Svalbard og Jan Mayen)",flag:"🇸🇯"},{isocode:"nd",locale:"Ndébélé du Nord",native:"IsiNdebele",flag:"🇿🇼"},{isocode:"nd-ZW",locale:"Ndébélé du Nord (Zimbabwe)",native:"IsiNdebele (Zimbabwe)",flag:"🇿🇼"},{isocode:"nds",locale:"Bas-German",native:"Nds",flag:"🇩🇪"},{isocode:"nds-DE",locale:"Bas-German (Germany)",native:"Nds (DE)",flag:"🇩🇪"},{isocode:"nds-NL",locale:"Bas-German (Pays-Bas)",native:"Nds (NL)",flag:"🇳🇱"},{isocode:"ne",locale:"Népalais",native:"नेपाली",flag:"🇳🇵"},{isocode:"ne-IN",locale:"Népalais (India)",native:"नेपाली (भारत)",flag:"🇮🇳"},{isocode:"ne-NP",locale:"Népalais (Népal)",native:"नेपाली (नेपाल)",flag:"🇳🇵"},{isocode:"nl",locale:"Néerlandais",native:"Nederlands",flag:"🇳🇱"},{isocode:"nl-AW",locale:"Néerlandais (Aruba)",native:"Nederlands (Aruba)",flag:"🇦🇼"},{isocode:"nl-BE",locale:"Néerlandais (Belgium)",native:"Nederlands (België)",flag:"🇧🇪"},{isocode:"nl-BQ",locale:"Néerlandais (Pays-Bas caribéens)",native:"Nederlands (Caribisch Nederland)",flag:"🇧🇶"},{isocode:"nl-CW",locale:"Néerlandais (Curaçao)",native:"Nederlands (Curaçao)",flag:"🇨🇼"},{isocode:"nl-NL",locale:"Néerlandais (Pays-Bas)",native:"Nederlands (Nederland)",flag:"🇳🇱"},{isocode:"nl-SR",locale:"Néerlandais (Suriname)",native:"Nederlands (Suriname)",flag:"🇸🇷"},{isocode:"nl-SX",locale:"Néerlandais (Saint-Martin [partie néerlandaise])",native:"Nederlands (Sint-Maarten)",flag:"🇸🇽"},{isocode:"nmg",locale:"Kwasio",native:"Nmg",flag:"🇨🇲"},{isocode:"nmg-CM",locale:"Kwasio (Cameroun)",native:"Nmg (Kamerun)",flag:"🇨🇲"},{isocode:"nn",locale:"Norvégien nynorsk",native:"Nynorsk",flag:"🇳🇴"},{isocode:"nn-NO",locale:"Norvégien nynorsk (Norvège)",native:"Nynorsk (Noreg)",flag:"🇳🇴"},{isocode:"nnh",locale:"Ngiemboon",native:"Shwóŋò ngiembɔɔn",flag:"🇨🇲"},{isocode:"nnh-CM",locale:"Ngiemboon (Cameroun)",native:"Shwóŋò ngiembɔɔn (Kàmalûm)",flag:"🇨🇲"},{isocode:"nus",locale:"Nuer",native:"Thok Nath",flag:"🇸🇸"},{isocode:"nus-SS",locale:"Nuer (Soudan du Sud)",native:"Thok Nath (SS)",flag:"🇸🇸"},{isocode:"nyn",locale:"Nyankolé",native:"Runyankore",flag:"🇺🇬"},{isocode:"nyn-UG",locale:"Nyankolé (Ouganda)",native:"Runyankore (Uganda)",flag:"🇺🇬"},{isocode:"om",locale:"Oromo",native:"Oromoo",flag:"🇪🇹"},{isocode:"om-ET",locale:"Oromo (Éthiopie)",native:"Oromoo (Itoophiyaa)",flag:"🇪🇹"},{isocode:"om-KE",locale:"Oromo (Kenya)",native:"Oromoo (Keeniyaa)",flag:"🇰🇪"},{isocode:"or",locale:"Oriya",native:"ଓଡ଼ିଆ",flag:"🇮🇳"},{isocode:"or-IN",locale:"Oriya (India)",native:"ଓଡ଼ିଆ (ଭାରତ)",flag:"🇮🇳"},{isocode:"os",locale:"Ossète",native:"ирон",flag:"🇬🇪"},{isocode:"os-GE",locale:"Ossète (Géorgie)",native:"ирон (Гуырдзыстон)",flag:"🇬🇪"},{isocode:"os-RU",locale:"Ossète (Russie)",native:"ирон (Уӕрӕсе)",flag:"🇷🇺"},{isocode:"pa",locale:"Pendjabi",native:"ਪੰਜਾਬੀ",flag:"🇮🇳"},{isocode:"pa-Arab",locale:"Pendjabi (Arabic)",native:"پنجابی (عربی)",flag:"🇵🇰"},{isocode:"pa-Arab-PK",locale:"Pendjabi (Arabic, Pakistan)",native:"پنجابی (عربی, پاکستان)",flag:"🇵🇰"},{isocode:"pa-Guru",locale:"Pendjabi (gourmoukhî)",native:"ਪੰਜਾਬੀ (ਗੁਰਮੁਖੀ)",flag:"🇮🇳"},{isocode:"pa-Guru-IN",locale:"Pendjabi (gourmoukhî, India)",native:"ਪੰਜਾਬੀ (ਗੁਰਮੁਖੀ, ਭਾਰਤ)",flag:"🇮🇳"},{isocode:"pl",locale:"Polonais",native:"Polski",flag:"🇵🇱"},{isocode:"pl-PL",locale:"Polonais (Pologne)",native:"Polski (Polska)",flag:"🇵🇱"},{isocode:"ps",locale:"Pachto",native:"پښتو",flag:"🇦🇫"},{isocode:"ps-AF",locale:"Pachto (Afghanistan)",native:"پښتو (افغانستان)",flag:"🇦🇫"},{isocode:"pt",locale:"Portugais",native:"Português",flag:"🇵🇹"},{isocode:"pt-AO",locale:"Portugais (Angola)",native:"Português (Angola)",flag:"🇦🇴"},{isocode:"pt-BR",locale:"Portugais (Brazil)",native:"Português (Brasil)",flag:"🇧🇷"},{isocode:"pt-CH",locale:"Portugais (Switzerland)",native:"Português (Suíça)",flag:"🇨🇭"},{isocode:"pt-CV",locale:"Portugais (Cap-Vert)",native:"Português (Cabo Verde)",flag:"🇨🇻"},{isocode:"pt-GQ",locale:"Portugais (Guinée équatoriale)",native:"Português (Guiné Equatorial)",flag:"🇬🇶"},{isocode:"pt-GW",locale:"Portugais (Guinée-Bissau)",native:"Português (Guiné-Bissau)",flag:"🇬🇼"},{isocode:"pt-LU",locale:"Portugais (Luxembourg)",native:"Português (Luxemburgo)",flag:"🇱🇺"},{isocode:"pt-MO",locale:"Portugais (R.A.S. chinoise de Macao)",native:"Português (Macau, RAE da China)",flag:"🇲🇴"},{isocode:"pt-MZ",locale:"Portugais (Mozambique)",native:"Português (Moçambique)",flag:"🇲🇿"},{isocode:"pt-PT",locale:"Portugais (Portugal)",native:"Português (Portugal)",flag:"🇵🇹"},{isocode:"pt-ST",locale:"Portugais (Sao Tomé-et-Principe)",native:"Português (São Tomé e Príncipe)",flag:"🇸🇹"},{isocode:"pt-TL",locale:"Portugais (Timor oriental)",native:"Português (Timor-Leste)",flag:"🇹🇱"},{isocode:"qu",locale:"Quechua",native:"Runasimi",flag:"🇵🇪"},{isocode:"qu-BO",locale:"Quechua (Bolivie)",native:"Runasimi (Bolivia)",flag:"🇧🇴"},{isocode:"qu-EC",locale:"Quechua (Équateur)",native:"Runasimi (Ecuador)",flag:"🇪🇨"},{isocode:"qu-PE",locale:"Quechua (Pérou)",native:"Runasimi (Perú)",flag:"🇵🇪"},{isocode:"rm",locale:"Romanche",native:"Rumantsch",flag:"🇨🇭"},{isocode:"rm-CH",locale:"Romanche (Switzerland)",native:"Rumantsch (Svizra)",flag:"🇨🇭"},{isocode:"rn",locale:"Roundi",native:"Ikirundi",flag:"🇧🇮"},{isocode:"rn-BI",locale:"Roundi (Burundi)",native:"Ikirundi (Uburundi)",flag:"🇧🇮"},{isocode:"ro",locale:"Roumain",native:"Română",flag:"🇷🇴"},{isocode:"ro-MD",locale:"Roumain (Moldavie)",native:"Română (Republica Moldova)",flag:"🇲🇩"},{isocode:"ro-RO",locale:"Roumain (Roumanie)",native:"Română (România)",flag:"🇷🇴"},{isocode:"rof",locale:"Rombo",native:"Kihorombo",flag:"🇹🇿"},{isocode:"rof-TZ",locale:"Rombo (Tanzanie)",native:"Kihorombo (Tanzania)",flag:"🇹🇿"},{isocode:"ru",locale:"Russe",native:"русский",flag:"🇷🇺"},{isocode:"ru-BY",locale:"Russe (Biélorussie)",native:"русский (Беларусь)",flag:"🇧🇾"},{isocode:"ru-KG",locale:"Russe (Kirghizistan)",native:"русский (Киргизия)",flag:"🇰🇬"},{isocode:"ru-KZ",locale:"Russe (Kazakhstan)",native:"русский (Казахстан)",flag:"🇰🇿"},{isocode:"ru-MD",locale:"Russe (Moldavie)",native:"русский (Молдова)",flag:"🇲🇩"},{isocode:"ru-RU",locale:"Russe (Russie)",native:"русский (Россия)",flag:"🇷🇺"},{isocode:"ru-UA",locale:"Russe (Ukraine)",native:"русский (Украина)",flag:"🇺🇦"},{isocode:"rw",locale:"Rwanda",native:"Kinyarwanda",flag:"🇷🇼"},{isocode:"rw-RW",locale:"Rwanda (Rwanda)",native:"Kinyarwanda (U Rwanda)",flag:"🇷🇼"},{isocode:"rwk",locale:"Rwa",native:"Kiruwa",flag:"🇹🇿"},{isocode:"rwk-TZ",locale:"Rwa (Tanzanie)",native:"Kiruwa (Tanzania)",flag:"🇹🇿"},{isocode:"sah",locale:"Iakoute",native:"саха тыла",flag:"🇷🇺"},{isocode:"sah-RU",locale:"Iakoute (Russie)",native:"саха тыла (Арассыыйа)",flag:"🇷🇺"},{isocode:"saq",locale:"Sambourou",native:"Kisampur",flag:"🇰🇪"},{isocode:"saq-KE",locale:"Sambourou (Kenya)",native:"Kisampur (Kenya)",flag:"🇰🇪"},{isocode:"sbp",locale:"Sangu",native:"Ishisangu",flag:"🇹🇿"},{isocode:"sbp-TZ",locale:"Sangu (Tanzanie)",native:"Ishisangu (Tansaniya)",flag:"🇹🇿"},{isocode:"se",locale:"Sami du Nord",native:"Davvisámegiella",flag:"🇳🇴"},{isocode:"se-FI",locale:"Sami du Nord (Finlande)",native:"Davvisámegiella (Suopma)",flag:"🇫🇮"},{isocode:"se-NO",locale:"Sami du Nord (Norvège)",native:"Davvisámegiella (Norga)",flag:"🇳🇴"},{isocode:"se-SE",locale:"Sami du Nord (Suède)",native:"Davvisámegiella (Ruoŧŧa)",flag:"🇸🇪"},{isocode:"seh",locale:"Cisena",native:"Sena",flag:"🇲🇿"},{isocode:"seh-MZ",locale:"Cisena (Mozambique)",native:"Sena (Moçambique)",flag:"🇲🇿"},{isocode:"ses",locale:"Koyraboro senni",native:"Koyraboro senni",flag:"🇲🇱"},{isocode:"ses-ML",locale:"Koyraboro senni (Mali)",native:"Koyraboro senni (Maali)",flag:"🇲🇱"},{isocode:"sg",locale:"Sangho",native:"Sängö",flag:"🇨🇫"},{isocode:"sg-CF",locale:"Sangho (République centrafricaine)",native:"Sängö (Ködörösêse tî Bêafrîka)",flag:"🇨🇫"},{isocode:"shi",locale:"Chleuh",native:"ⵜⴰⵛⵍⵃⵉⵜ",flag:"🇲🇦"},{isocode:"shi-Latn",locale:"Chleuh (latin)",native:"Tashelḥiyt (Latn)",flag:"🇲🇦"},{isocode:"shi-Latn-MA",locale:"Chleuh (latin, Maroc)",native:"Tashelḥiyt (Latn, lmɣrib)",flag:"🇲🇦"},{isocode:"shi-Tfng",locale:"Chleuh (tifinagh)",native:"ⵜⴰⵛⵍⵃⵉⵜ (Tfng)",flag:"🇲🇦"},{isocode:"shi-Tfng-MA",locale:"Chleuh (tifinagh, Maroc)",native:"ⵜⴰⵛⵍⵃⵉⵜ (Tfng, ⵍⵎⵖⵔⵉⴱ)",flag:"🇲🇦"},{isocode:"si",locale:"Cinghalais",native:"සිංහල",flag:"🇱🇰"},{isocode:"si-LK",locale:"Cinghalais (Sri Lanka)",native:"සිංහල (ශ්රී ලංකාව)",flag:"🇱🇰"},{isocode:"sk",locale:"Slovaque",native:"Slovenčina",flag:"🇸🇰"},{isocode:"sk-SK",locale:"Slovaque (Slovaquie)",native:"Slovenčina (Slovensko)",flag:"🇸🇰"},{isocode:"sl",locale:"Slovène",native:"Slovenščina",flag:"🇸🇮"},{isocode:"sl-SI",locale:"Slovène (Slovénie)",native:"Slovenščina (Slovenija)",flag:"🇸🇮"},{isocode:"smn",locale:"Sami d'Inari",native:"Anarâškielâ",flag:"🇫🇮"},{isocode:"smn-FI",locale:"Sami d'Inari (Finlande)",native:"Anarâškielâ (Suomâ)",flag:"🇫🇮"},{isocode:"sn",locale:"Shona",native:"ChiShona",flag:"🇿🇼"},{isocode:"sn-ZW",locale:"Shona (Zimbabwe)",native:"ChiShona (Zimbabwe)",flag:"🇿🇼"},{isocode:"so",locale:"Somali",native:"Soomaali",flag:"🇸🇴"},{isocode:"so-DJ",locale:"Somali (Djibouti)",native:"Soomaali (Jabuuti)",flag:"🇩🇯"},{isocode:"so-ET",locale:"Somali (Éthiopie)",native:"Soomaali (Itoobiya)",flag:"🇪🇹"},{isocode:"so-KE",locale:"Somali (Kenya)",native:"Soomaali (Kiiniya)",flag:"🇰🇪"},{isocode:"so-SO",locale:"Somali (Somalie)",native:"Soomaali (Soomaaliya)",flag:"🇸🇴"},{isocode:"sq",locale:"Albanais",native:"Shqip",flag:"🇦🇱"},{isocode:"sq-AL",locale:"Albanais (Albanie)",native:"Shqip (Shqipëri)",flag:"🇦🇱"},{isocode:"sq-MK",locale:"Albanais (Macédoine)",native:"Shqip (Maqedoni)",flag:"🇲🇰"},{isocode:"sq-XK",locale:"Albanais (Kosovo)",native:"Shqip (Kosovë)",flag:"🇽🇰"},{isocode:"sr",locale:"Serbe",native:"српски",flag:"🇷🇸"},{isocode:"sr-Cyrl",locale:"Serbe (cyrillique)",native:"српски (ћирилица)",flag:"🇷🇸"},{isocode:"sr-Cyrl-BA",locale:"Serbe (cyrillique, Bosnie-Herzégovine)",native:"српски (ћирилица, Босна и Херцеговина)",flag:"🇧🇦"},{isocode:"sr-Cyrl-ME",locale:"Serbe (cyrillique, Monténégro)",native:"српски (ћирилица, Црна Гора)",flag:"🇲🇪"},{isocode:"sr-Cyrl-RS",locale:"Serbe (cyrillique, Serbie)",native:"српски (ћирилица, Србија)",flag:"🇷🇸"},{isocode:"sr-Cyrl-XK",locale:"Serbe (cyrillique, Kosovo)",native:"српски (ћирилица, Косово)",flag:"🇽🇰"},{isocode:"sr-Latn",locale:"Serbe (latin)",native:"Srpski (latinica)",flag:"🇷🇸"},{isocode:"sr-Latn-BA",locale:"Serbe (latin, Bosnie-Herzégovine)",native:"Srpski (latinica, Bosna i Hercegovina)",flag:"🇧🇦"},{isocode:"sr-Latn-ME",locale:"Serbe (latin, Monténégro)",native:"Srpski (latinica, Crna Gora)",flag:"🇲🇪"},{isocode:"sr-Latn-RS",locale:"Serbe (latin, Serbie)",native:"Srpski (latinica, Srbija)",flag:"🇷🇸"},{isocode:"sr-Latn-XK",locale:"Serbe (latin, Kosovo)",native:"Srpski (latinica, Kosovo)",flag:"🇽🇰"},{isocode:"sv",locale:"Suédois",native:"Svenska",flag:"🇸🇪"},{isocode:"sv-AX",locale:"Suédois (Îles Åland)",native:"Svenska (Åland)",flag:"🇦🇽"},{isocode:"sv-FI",locale:"Suédois (Finlande)",native:"Svenska (Finland)",flag:"🇫🇮"},{isocode:"sv-SE",locale:"Suédois (Suède)",native:"Svenska (Sverige)",flag:"🇸🇪"},{isocode:"sw",locale:"Swahili",native:"Kiswahili",flag:"🇹🇿"},{isocode:"sw-CD",locale:"Swahili (Congo-Kinshasa)",native:"Kiswahili (Jamhuri ya Kidemokrasia ya Kongo)",flag:"🇨🇩"},{isocode:"sw-KE",locale:"Swahili (Kenya)",native:"Kiswahili (Kenya)",flag:"🇰🇪"},{isocode:"sw-TZ",locale:"Swahili (Tanzanie)",native:"Kiswahili (Tanzania)",flag:"🇹🇿"},{isocode:"sw-UG",locale:"Swahili (Ouganda)",native:"Kiswahili (Uganda)",flag:"🇺🇬"},{isocode:"ta",locale:"Tamoul",native:"தமிழ்",flag:"🇱🇰"},{isocode:"ta-IN",locale:"Tamoul (India)",native:"தமிழ் (இந்தியா)",flag:"🇮🇳"},{isocode:"ta-LK",locale:"Tamoul (Sri Lanka)",native:"தமிழ் (இலங்கை)",flag:"🇱🇰"},{isocode:"ta-MY",locale:"Tamoul (Malaisie)",native:"தமிழ் (மலேசியா)",flag:"🇲🇾"},{isocode:"ta-SG",locale:"Tamoul (Singapour)",native:"தமிழ் (சிங்கப்பூர்)",flag:"🇸🇬"},{isocode:"te",locale:"Télougou",native:"తెలుగు",flag:"🇮🇳"},{isocode:"te-IN",locale:"Télougou (India)",native:"తెలుగు (భారతదేశం)",flag:"🇮🇳"},{isocode:"teo",locale:"Teso",native:"Kiteso",flag:"🇺🇬"},{isocode:"teo-KE",locale:"Teso (Kenya)",native:"Kiteso (Kenia)",flag:"🇰🇪"},{isocode:"teo-UG",locale:"Teso (Ouganda)",native:"Kiteso (Uganda)",flag:"🇺🇬"},{isocode:"tg",locale:"Tadjik",native:"тоҷикӣ",flag:"🇹🇯"},{isocode:"tg-TJ",locale:"Tadjik (Tadjikistan)",native:"тоҷикӣ (Тоҷикистон)",flag:"🇹🇯"},{isocode:"th",locale:"Thaï",native:"ไทย",flag:"🇹🇭"},{isocode:"th-TH",locale:"Thaï (Thaïlande)",native:"ไทย (ไทย)",flag:"🇹🇭"},{isocode:"ti",locale:"Tigrigna",native:"ትግርኛ",flag:"🇪🇷"},{isocode:"ti-ER",locale:"Tigrigna (Érythrée)",native:"ትግርኛ (ኤርትራ)",flag:"🇪🇷"},{isocode:"ti-ET",locale:"Tigrigna (Éthiopie)",native:"ትግርኛ (ኢትዮጵያ)",flag:"🇪🇹"},{isocode:"to",locale:"Tonguien",native:"Lea fakatonga",flag:"🇹🇴"},{isocode:"to-TO",locale:"Tonguien (Tonga)",native:"Lea fakatonga (Tonga)",flag:"🇹🇴"},{isocode:"tr",locale:"Turc",native:"Türkçe",flag:"🇹🇷"},{isocode:"tr-CY",locale:"Turc (Chypre)",native:"Türkçe (Kıbrıs)",flag:"🇨🇾"},{isocode:"tr-TR",locale:"Turc (Turquie)",native:"Türkçe (Türkiye)",flag:"🇹🇷"},{isocode:"tt",locale:"Tatar",native:"татар",flag:"🇷🇺"},{isocode:"tt-RU",locale:"Tatar (Russie)",native:"татар (Россия)",flag:"🇷🇺"},{isocode:"twq",locale:"Tasawaq",native:"Tasawaq senni",flag:"🇳🇪"},{isocode:"twq-NE",locale:"Tasawaq (Niger)",native:"Tasawaq senni (Nižer)",flag:"🇳🇪"},{isocode:"tzm",locale:"Amazighe de l'Atlas central",native:"Tamaziɣt n laṭlaṣ",flag:"🇲🇦"},{isocode:"tzm-MA",locale:"Amazighe de l'Atlas central (Maroc)",native:"Tamaziɣt n laṭlaṣ (Meṛṛuk)",flag:"🇲🇦"},{isocode:"ug",locale:"Ouïghour",native:"ئۇيغۇرچە",flag:"🇨🇳"},{isocode:"ug-CN",locale:"Ouïghour (Chine)",native:"ئۇيغۇرچە (جۇڭگو)",flag:"🇨🇳"},{isocode:"uk",locale:"Ukrainien",native:"українська",flag:"🇺🇦"},{isocode:"uk-UA",locale:"Ukrainien (Ukraine)",native:"українська (Україна)",flag:"🇺🇦"},{isocode:"ur",locale:"Ourdou",native:"اردو",flag:"🇵🇰"},{isocode:"ur-IN",locale:"Ourdou (India)",native:"اردو (بھارت)",flag:"🇮🇳"},{isocode:"ur-PK",locale:"Ourdou (Pakistan)",native:"اردو (پاکستان)",flag:"🇵🇰"},{isocode:"uz",locale:"Ouzbek",native:"O‘zbek",flag:"🇺🇿"},{isocode:"uz-Arab",locale:"Ouzbek (Arabic)",native:"اوزبیک (عربی)",flag:"🇦🇫"},{isocode:"uz-Arab-AF",locale:"Ouzbek (Arabic, Afghanistan)",native:"اوزبیک (عربی, افغانستان)",flag:"🇦🇫"},{isocode:"uz-Cyrl",locale:"Ouzbek (cyrillique)",native:"ўзбекча (Кирил)",flag:"🇺🇿"},{isocode:"uz-Cyrl-UZ",locale:"Ouzbek (cyrillique, Ouzbékistan)",native:"ўзбекча (Кирил, Ўзбекистон)",flag:"🇺🇿"},{isocode:"uz-Latn",locale:"Ouzbek (latin)",native:"O‘zbek (lotin)",flag:"🇺🇿"},{isocode:"uz-Latn-UZ",locale:"Ouzbek (latin, Ouzbékistan)",native:"O‘zbek (lotin, Oʻzbekiston)",flag:"🇺🇿"},{isocode:"vai",locale:"Vaï",native:"ꕙꔤ",flag:"🇱🇷"},{isocode:"vai-Latn",locale:"Vaï (latin)",native:"Vai (Latn)",flag:"🇱🇷"},{isocode:"vai-Latn-LR",locale:"Vaï (latin, Libéria)",native:"Vai (Latn, Laibhiya)",flag:"🇱🇷"},{isocode:"vai-Vaii",locale:"Vaï (vaï)",native:"ꕙꔤ (Vaii)",flag:"🇱🇷"},{isocode:"vai-Vaii-LR",locale:"Vaï (vaï, Libéria)",native:"ꕙꔤ (Vaii, ꕞꔤꔫꕩ)",flag:"🇱🇷"},{isocode:"vi",locale:"Vietnamien",native:"Tiếng Việt",flag:"🇻🇳"},{isocode:"vi-VN",locale:"Vietnamien (Vietnam)",native:"Tiếng Việt (Việt Nam)",flag:"🇻🇳"},{isocode:"vun",locale:"Vunjo",native:"Kyivunjo",flag:"🇹🇿"},{isocode:"vun-TZ",locale:"Vunjo (Tanzanie)",native:"Kyivunjo (Tanzania)",flag:"🇹🇿"},{isocode:"wae",locale:"Walser",native:"Walser",flag:"🇨🇭"},{isocode:"wae-CH",locale:"Walser (Switzerland)",native:"Walser (Schwiz)",flag:"🇨🇭"},{isocode:"wo",locale:"Wolof",native:"Wolof",flag:"🇸🇳"},{isocode:"wo-SN",locale:"Wolof (Sénégal)",native:"Wolof (Senegaal)",flag:"🇸🇳"},{isocode:"xog",locale:"Soga",native:"Olusoga",flag:"🇺🇬"},{isocode:"xog-UG",locale:"Soga (Ouganda)",native:"Olusoga (Yuganda)",flag:"🇺🇬"},{isocode:"yav",locale:"Yangben",native:"Nuasue",flag:"🇨🇲"},{isocode:"yav-CM",locale:"Yangben (Cameroun)",native:"Nuasue (Kemelún)",flag:"🇨🇲"},{isocode:"yi",locale:"Yiddish",native:"ייִדיש",flag:"🏳️"},{isocode:"yi-001",locale:"Yiddish (World)",native:"ייִדיש (וועלט)",flag:"🏳️"},{isocode:"yo",locale:"Yoruba",native:"Èdè Yorùbá",flag:"🇳🇬"},{isocode:"yo-BJ",locale:"Yoruba (Bénin)",native:"Èdè Yorùbá (Orílɛ́ède Bɛ̀nɛ̀)",flag:"🇧🇯"},{isocode:"yo-NG",locale:"Yoruba (Nigéria)",native:"Èdè Yorùbá (Orílẹ́ède Nàìjíríà)",flag:"🇳🇬"},{isocode:"yue",locale:"Cantonais",native:"粵語",flag:"🇭🇰"},{isocode:"yue-Hans",locale:"Cantonais (simplifié)",native:"粤语 (简体)",flag:"🇨🇳"},{isocode:"yue-Hans-CN",locale:"Cantonais (simplifié, Chine)",native:"粤语 (简体,中华人民共和国)",flag:"🇨🇳"},{isocode:"yue-Hant",locale:"Cantonais (traditionnel)",native:"粵語 (繁體)",flag:"🇭🇰"},{isocode:"yue-Hant-HK",locale:"Cantonais (traditionnel, R.A.S. chinoise de Hong Kong)",native:"粵語 (繁體,中華人民共和國香港特別行政區)",flag:"🇭🇰"},{isocode:"zgh",locale:"Amazighe standard marocain",native:"ⵜⴰⵎⴰⵣⵉⵖⵜ",flag:"🇲🇦"},{isocode:"zgh-MA",locale:"Amazighe standard marocain (Maroc)",native:"ⵜⴰⵎⴰⵣⵉⵖⵜ (ⵍⵎⵖⵔⵉⴱ)",flag:"🇲🇦"},{isocode:"zh",locale:"Chinese",native:"中文",flag:"🇨🇳"},{isocode:"zh-Hans",locale:"Chinese (simplifié)",native:"中文(简体)",flag:"🇨🇳"},{isocode:"zh-Hans-CN",locale:"Chinese (simplifié, Chine)",native:"中文(简体,中国)",flag:"🇨🇳"},{isocode:"zh-Hans-HK",locale:"Chinese (simplifié, R.A.S. chinoise de Hong Kong)",native:"中文(简体,中国香港特别行政区)",flag:"🇭🇰"},{isocode:"zh-Hans-MO",locale:"Chinese (simplifié, R.A.S. chinoise de Macao)",native:"中文(简体,中国澳门特别行政区)",flag:"🇲🇴"},{isocode:"zh-Hans-SG",locale:"Chinese (simplifié, Singapour)",native:"中文(简体,新加坡)",flag:"🇸🇬"},{isocode:"zh-Hant",locale:"Chinese (traditionnel)",native:"中文(繁體)",flag:"🇹🇼"},{isocode:"zh-Hant-HK",locale:"Chinese (traditionnel, R.A.S. chinoise de Hong Kong)",native:"中文(繁體字,中國香港特別行政區)",flag:"🇭🇰"},{isocode:"zh-Hant-MO",locale:"Chinese (traditionnel, R.A.S. chinoise de Macao)",native:"中文(繁體字,中國澳門特別行政區)",flag:"🇲🇴"},{isocode:"zh-Hant-TW",locale:"Chinese (traditionnel, Taïwan)",native:"中文(繁體,台灣)",flag:"🇹🇼"},{isocode:"zu",locale:"Zoulou",native:"IsiZulu",flag:"🇿🇦"},{isocode:"zu-ZA",locale:"Zoulou (South Africa)",native:"IsiZulu (iNingizimu Afrika)",flag:"🇿🇦"}]};exports.LOCALIZATION_EDITOR_SCOPE_CLASS=os.LOCALIZATION_EDITOR_SCOPE_CLASS;exports.EditorStateAdapterProvider=$u;exports.EditorStateContext=Ir;exports.I18N_ACTIONS=Jd;exports.I18N_CONSTANT=oc;exports.I18nProvider=lc;exports.LocalizationEditor=Vp;exports.LocalizationEditorProvider=dc;exports.LocalizationProvider=hc;exports.Portal=Xd;exports.ReducerAdapterProvider=ic;exports.Standalone=Hk;exports.getDefaultContainer=it;exports.getDefaultInitialState=nc;exports.getLanguageDetails=dn;exports.languages=$k;exports.localizationReducer=tc;exports.useEditorStateAdapter=vn;exports.useI18n=sn;exports.useLocalization=fc;exports.useLocalizationEditor=on;exports.useModals=ac;exports.useReducerAdapter=rc;exports.useReduxAdapter=Pd;
|
|
173
158
|
//# sourceMappingURL=index.cjs.js.map
|