@ws-ui/localization-editor 1.11.7-rc3 → 1.11.7-rc4

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/index.cjs.js CHANGED
@@ -1,39 +1,39 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const C=require("react/jsx-runtime"),D=require("react"),yt=require("classnames"),ot=require("@ws-ui/icons"),ve=require("@ws-ui/shared"),xe=require("lodash"),$t=require("@ws-ui/store"),no=require("short-uuid"),ro=require("react-dom"),qm=require("simplebar-react"),Ar=require("@headlessui/react"),Km=require("react-dropzone"),Jm=require("papaparse"),Gm=require("jsonschema"),io=require("./common.cjs.js");function Ym(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const bt=Ym(D),Qm=e=>e&&e.length===0,Xm=e=>e.length>=1,Zm=e=>e.length>=1,ex=()=>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 text-inactive-text",children:[C.jsx(ot.FdInfoBold,{className:"h-8 w-8"}),C.jsx("span",{className:"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."})]})});function dn(e){return typeof e=="function"}function tx(e){return dn(e==null?void 0:e.lift)}function Dh(e){return function(t){if(tx(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}var Ca=function(e,t){return Ca=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Ca(e,t)};function Kr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ca(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Wi=function(){return Wi=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Wi.apply(this,arguments)};function Aa(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ta(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(l){o={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function Na(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function Lh(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ms=Lh(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const C=require("react/jsx-runtime"),D=require("react"),yt=require("classnames"),ot=require("@ws-ui/icons"),ve=require("@ws-ui/shared"),xe=require("lodash"),$t=require("@ws-ui/store"),no=require("short-uuid"),ro=require("react-dom"),Km=require("simplebar-react"),Ar=require("@headlessui/react"),Jm=require("react-dropzone"),Gm=require("papaparse"),Ym=require("jsonschema"),io=require("./common.cjs.js");function Qm(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const bt=Qm(D),Xm=e=>e&&e.length===0,Zm=e=>e.length>=1,ex=e=>e.length>=1,tx=()=>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 text-inactive-text",children:[C.jsx(ot.FdInfoBold,{className:"h-8 w-8"}),C.jsx("span",{className:"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."})]})});function dn(e){return typeof e=="function"}function nx(e){return dn(e==null?void 0:e.lift)}function Dh(e){return function(t){if(nx(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}var Ca=function(e,t){return Ca=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Ca(e,t)};function Kr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ca(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Wi=function(){return Wi=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Wi.apply(this,arguments)};function Aa(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ta(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(l){o={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function Na(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function Lh(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ms=Lh(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
2
2
  `+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
3
- `):"",this.name="UnsubscriptionError",this.errors=n}});function Oa(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var gs=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var l=Aa(o),u=l.next();!u.done;u=l.next()){var c=u.value;c.remove(this)}}catch(S){t={error:S}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}else o.remove(this);var d=this.initialTeardown;if(dn(d))try{d()}catch(S){s=S instanceof Ms?S.errors:[S]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var g=Aa(h),m=g.next();!m.done;m=g.next()){var w=m.value;try{uu(w)}catch(S){s=s??[],S instanceof Ms?s=Na(Na([],Ta(s)),Ta(S.errors)):s.push(S)}}}catch(S){r={error:S}}finally{try{m&&!m.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}}if(s)throw new Ms(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)uu(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)&&Oa(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Oa(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Vh=gs.EMPTY;function Mh(e){return e instanceof gs||e&&"closed"in e&&dn(e.remove)&&dn(e.add)&&dn(e.unsubscribe)}function uu(e){dn(e)?e():e.unsubscribe()}var nx={Promise:void 0},rx={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Na([e,t],Ta(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function ix(e){rx.setTimeout(function(){throw e})}function cu(){}function Oi(e){e()}var so=(function(e){Kr(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Mh(n)&&n.add(r)):r.destination=ox,r}return t.create=function(n,r,i){return new Pa(n,r,i)},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})(gs),sx=(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(r){ai(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){ai(r)}else ai(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){ai(n)}},e})(),Pa=(function(e){Kr(t,e);function t(n,r,i){var s=e.call(this)||this,o;return dn(n)||!n?o={next:n??void 0,error:r??void 0,complete:i??void 0}:o=n,s.destination=new sx(o),s}return t})(so);function ai(e){ix(e)}function ax(e){throw e}var ox={closed:!0,next:cu,error:ax,complete:cu},lx=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function ux(e){return e}function cx(e){return e.length===0?ux:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var hu=(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,r){var i=this,s=px(t)?t:new Pa(t,n,r);return Oi(function(){var o=i,l=o.operator,u=o.source;s.add(l?l.call(s,u):u?i._subscribe(s):i._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 r=this;return n=pu(n),new n(function(i,s){var o=new Pa({next:function(l){try{t(l)}catch(u){s(u),o.unsubscribe()}},error:s,complete:i});r.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[lx]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return cx(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=pu(t),new t(function(r,i){var s;n.subscribe(function(o){return s=o},function(o){return i(o)},function(){return r(s)})})},e.create=function(t){return new e(t)},e})();function pu(e){var t;return(t=e??nx.Promise)!==null&&t!==void 0?t:Promise}function hx(e){return e&&dn(e.next)&&dn(e.error)&&dn(e.complete)}function px(e){return e&&e instanceof so||hx(e)&&Mh(e)}function jh(e,t,n,r,i){return new dx(e,t,n,r,i)}var dx=(function(e){Kr(t,e);function t(n,r,i,s,o,l){var u=e.call(this,n)||this;return u.onFinalize=o,u.shouldUnsubscribe=l,u._next=r?function(c){try{r(c)}catch(d){n.error(d)}}:e.prototype._next,u._error=s?function(c){try{s(c)}catch(d){n.error(d)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=i?function(){try{i()}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,u}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t})(so);function fx(e,t){return Dh(function(n,r){var i=0;n.subscribe(jh(r,function(s){r.next(e.call(t,s,i++))}))})}var gx=Lh(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Fh=(function(e){Kr(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 r=new du(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new gx},t.prototype.next=function(n){var r=this;Oi(function(){var i,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=Aa(r.currentObservers),l=o.next();!l.done;l=o.next()){var u=l.value;u.next(n)}}catch(c){i={error:c}}finally{try{l&&!l.done&&(s=o.return)&&s.call(o)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;Oi(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;Oi(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.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 r=this,i=this,s=i.hasError,o=i.isStopped,l=i.observers;return s||o?Vh:(this.currentObservers=null,l.push(n),new gs(function(){r.currentObservers=null,Oa(l,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,s=r.thrownError,o=r.isStopped;i?n.error(s):o&&n.complete()},t.prototype.asObservable=function(){var n=new hu;return n.source=this,n},t.create=function(n,r){return new du(n,r)},t})(hu),du=(function(e){Kr(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:Vh},t})(Fh);function mx(e,t){return Dh(function(n,r){var i=0;n.subscribe(jh(r,function(s){return e.call(t,s,i++)&&r.next(s)}))})}const zh=D.createContext(void 0),js={i18n:{keys:{},userLang:{primary:"",supported:[]}},i18nFileFetched:!1},Bh={tr_key:"__t"},{tr_key:oi}=Bh,xx={buildPathFullObject:e=>`${oi}.${e}`,getKeyValueFromCustom:(e,t)=>xe.get(e,`${oi}.${t}.key`),getDefaultValueFromCustom:(e,t)=>xe.get(e,`${oi}.${t}.default`),getFullObject:(e,t)=>xe.get(e,`${oi}.${t}`)},Hh=D.memo(({children:e,isI18nEnabled:t,onI18nChange:n})=>{const[r,i]=D.useState(js),s=D.useRef(!1),{i18n:o}=r,l=(y,k,v)=>{let _=1,A=y;for(;o.keys[A];)A=`${y}-${_}`,_++;const x={default:v};k.forEach(({lang:R,value:V})=>{R&&xe.set(x,R,V)});const f={keys:{...o.keys,[y]:x},userLang:o.userLang};i(R=>({...R,i18n:f}))},u=()=>{const y=new window.Event("i18n:ready");window.dispatchEvent(y)},c=D.useCallback(xe.debounce((y,k,v,_=!1)=>{i(A=>{const{keys:x,userLang:f}=A.i18n;if(x[y]&&k){const R={...x,[y]:{...x[y],[k]:v}};return s.current=_,{...A,i18n:{keys:R,userLang:f}}}return A})},300),[]),d=D.useCallback(xe.debounce((y,k)=>{const{keys:v,userLang:_}={...o};v[y]&&k&&(v[y].default=k);const A={keys:v,userLang:_};i(x=>({...x,i18n:A}))},300),[o]),h=y=>{y&&i(k=>({...k,i18n:{...k.i18n,userLang:y}}))},g=D.useCallback((y,k)=>{const{keys:v,userLang:_}=o,x={keys:Object.entries(v).reduce((f,[R,V])=>{const L={...V};return y.isocode in L&&(L[k.isocode]=L[y.isocode],delete L[y.isocode]),f[R]=L,f},{}),userLang:_};i(f=>({...f,i18n:x}))},[o]),m=D.useCallback(y=>{const{keys:k,userLang:v}=o,A={keys:Object.entries(k).reduce((x,[f,R])=>{const V={...R};return y.isocode in V&&delete V[y.isocode],x[f]=V,x},{}),userLang:v};i(x=>({...x,i18n:A}))},[o]),w=y=>{const k=[];return Object.keys(o.keys).forEach(_=>{const A=xe.get(o,`keys.${_}.${y}`,xe.get(o,`keys.${_}.default`,""));k.push({key:_,value:A})}),k},S=D.useCallback(xe.debounce(y=>{const k={...o.keys};delete k[y];const v={userLang:o.userLang,keys:k};i(_=>({..._,i18n:v}))},300),[o]);return D.useEffect(()=>{(async()=>{if(!t){u();return}try{const k=await fetch(`/$shared/i18n.json?ts=${Date.now()}`);if(!k.ok)throw new Error(`HTTP ${k.status}`);try{const v=await k.json();i(_=>({..._,i18n:{keys:xe.get(v,"keys",js.i18n.keys),userLang:xe.get(v,"userLang",js.i18n.userLang)}}))}catch{throw new Error("Invalid JSON in response")}}catch{}finally{i(k=>({...k,i18nFileFetched:!0})),u()}})()},[]),D.useEffect(()=>{const y=ve.i18nSubject.pipe(fx(({action:k,payload:v})=>{if(k==="set_content"){const _={...o,keys:{...o.keys,...v}};i(A=>({...A,i18n:_}))}if(k==="set_locale_state"){const _={...o,...v};i(A=>({...A,i18n:_}))}})).subscribe();return()=>y.unsubscribe()},[o]),D.useEffect(()=>{r.i18nFileFetched&&(n==null||n(r.i18n))},[r]),C.jsx(zh.Provider,{value:{i18n:r.i18n,createKey:l,updateKey:c,removeKey:S,editLanguageKeys:g,updateKeyDefault:d,deleteLanguageKeys:m,getI18nAsKeyValues:w,setUserLangSettings:h,shouldRecompute:s},children:e})});function Jn(){const e=D.useContext(zh);if(e===void 0)throw new Error("useI18n must be used within a I18nProviderContext");return e}const $h=D.createContext(null),Wh=({children:e,adapter:t})=>C.jsx($h.Provider,{value:t,children:e});function Fn(){const e=D.useContext($h);if(!e)throw new Error("useEditorStateAdapter must be used within an EditorStateAdapterProvider");return e}function vx(e,t){const n=$t.useAppDispatch(),r=$t.useAppSelector($t.selectTabs),i=$t.useAppSelector($t.selectActiveTab),s=$t.useAppSelector($t.selectAllTabsByType("webform")),o=$t.useAppSelector($t.selectI18nCurrent);return{getTabs:D.useCallback(()=>r??[],[r]),getI18nCurrent:D.useCallback(()=>o??"",[o]),getWebformTabs:D.useCallback(()=>s??[],[s]),getActiveTabPath:D.useCallback(()=>i??"",[i]),getFlagsByPath:D.useCallback(l=>{var u;return(u=r.find(c=>c.path===l))==null?void 0:u.flags},[r]),getSupportedLanguages:D.useCallback(async l=>ve.getSupportedLanguages(l),[]),getUserComponents:D.useCallback(()=>e??{},[e]),buildResolver:t,actions:{openModal:D.useCallback(async l=>await n($t.openModal(l)).unwrap(),[n]),setTabs:D.useCallback(l=>{n($t.setTabs(l))},[n]),setI18nCurrent:D.useCallback(l=>{n($t.setI18nCurrent({current:l}))},[n]),setTabContent:D.useCallback(async l=>n($t.setTabContent(l)),[n])}}}const Uh=new Fh,bx=(e,t)=>({name:e.split("/").pop()||e,type:ve.FileFolderType.WEBFORM,path:e,date:new Date().toISOString(),content:t,view:{panel:{isOpen:!1,type:"",current:""}},flags:{}});function qh(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:r}=t.payload;return e.tabs.find(s=>s.path===n)?{...e,tabs:e.tabs.map(s=>s.path===n?{...s,content:r}:s)}:{...e,tabs:[...e.tabs,bx(n,r)]}}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:r}=t.payload;let i;if(r)if(e.modals.list.find(o=>o.id===n))i={...e,modals:{...e.modals,list:e.modals.list.map(o=>o.id===n?{...o,closeReason:r,isOpen:!1}:o)}};else return e;else i={...e,modals:{...e.modals,list:e.modals.list.filter(s=>s.id!==n)}};return Uh.next(i.modals),i}case"EDIT_MODAL":{const{id:n,...r}=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,...r}:s)}}:e}default:return e}}const ms=D.createContext(null),Kh=(e,t)=>({tabs:e,i18nCurrent:t,modals:{list:[]}}),Jh=({children:e,tabs:t=[],i18nCurrent:n=""})=>{const[r,i]=D.useReducer(qh,Kh(t,n));D.useEffect(()=>{xe.isEqual(r.tabs,t)||i({type:"SET_TABS",payload:t})},[t,r.tabs]),D.useEffect(()=>{r.i18nCurrent!==n&&i({type:"SET_I18N_CURRENT",payload:n})},[n,r.i18nCurrent]);const s=D.useMemo(()=>({state:r,dispatch:i}),[r]);return C.jsx(ms.Provider,{value:s,children:e})};function Gh(e,t,n){const r=D.useContext(ms);if(!r)throw new Error("useReducerAdapter must be used within a ReducerAdapterProvider");const{state:i,dispatch:s}=r;return{getTabs:D.useCallback(()=>i.tabs,[i.tabs]),getI18nCurrent:D.useCallback(()=>i.i18nCurrent,[i.i18nCurrent]),getWebformTabs:D.useCallback(()=>i.tabs.filter(o=>o.type===ve.FileFolderType.WEBFORM),[i.tabs]),getActiveTabPath:D.useCallback(()=>{var o;return((o=i.tabs[0])==null?void 0:o.path)??""},[i.tabs]),getFlagsByPath:D.useCallback(o=>{var l;return(l=i.tabs.find(u=>u.path===o))==null?void 0:l.flags},[i.tabs]),getSupportedLanguages:D.useCallback(async o=>n&&n.length?n:ve.getSupportedLanguages(o),[n]),getUserComponents:D.useCallback(()=>e??{},[e]),buildResolver:t,actions:{openModal:D.useCallback(async o=>{const{type:l=ve.ModalType.ALERT}=o,u=no.generate();return s({type:"CREATE_MODAL",payload:{id:u,type:l,isOpen:!0,...o}}),l===ve.ModalType.CONFIRM?new Promise(c=>{const d=Uh.pipe(mx(h=>{const g=h.list.find(m=>m.id===u);return g!==void 0&&!g.isOpen})).subscribe(h=>{var m;const g=h.list.find(w=>w.id===u);if(g){const w=g.closeReason===ve.ModalCloseReason.CONFIRMED,S=xe.entries(((m=g.views)==null?void 0:m.toggles)||{}).reduce((y,k)=>({...y,[k[0]]:k[1].value}),{});s({type:"REMOVE_MODAL",payload:u}),d.unsubscribe(),c({confirmed:w,options:S})}})}):{confirmed:!1}},[s]),setTabs:D.useCallback(o=>{s({type:"SET_TABS",payload:o})},[s]),setI18nCurrent:D.useCallback(o=>{s({type:"SET_I18N_CURRENT",payload:o})},[s]),setTabContent:D.useCallback(async o=>(s({type:"SET_TAB_CONTENT",payload:o}),o),[s])}}}function Yh(){const e=D.useContext(ms);if(!e)throw new Error("useModals must be used within a ReducerAdapterProvider");const{state:t,dispatch:n}=e;return{modals:t.modals.list,closeModal:D.useCallback(r=>{n({type:"CLOSE_MODAL",payload:r})},[n]),editModal:D.useCallback(r=>{n({type:"EDIT_MODAL",payload:r})},[n]),removeModal:D.useCallback(r=>{n({type:"REMOVE_MODAL",payload:r})},[n])}}const Qh=D.createContext(void 0),Xh=D.createContext(void 0),Zh=({children:e})=>{const{isInsideStudio:t}=ve.useStudioContext();return t?C.jsx(wx,{children:e}):C.jsx(yx,{children:e})},yx=({children:e})=>{const{state:{currentLang:t},actions:n}=ve.useStateObject({currentLang:""}),{actions:r}=ve.useDsRendererAdapter(`${ve.QODLY_NAMESPACE}:${ve.USER_LANGUAGE_DATASOURCE_ID}`),{i18n:{userLang:{primary:i,supported:s}}}=Jn(),{isInsideStudio:o}=ve.useStudioContext(),l=Fn(),[u,c]=D.useState([]),{loaded:d}=ve.useDsChangeRenderer({datasourceId:`${ve.QODLY_NAMESPACE}:${ve.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:!0,onChange:S=>{if(!S)return;const{selected:y}=S;y&&y.isocode&&(n.setCurrentLang(y.isocode),g(y))}}),h=(S,y)=>{r.setProperty(S,y)},g=S=>{localStorage.setItem("i18n.selected",JSON.stringify(S))},m=()=>{const S=localStorage.getItem("i18n.selected");return S?JSON.parse(S):null},w=()=>navigator.language;return D.useEffect(()=>{l.getSupportedLanguages(o).then(S=>{c(S)})},[l,o]),D.useEffect(()=>{if(d&&s){const S=s.map(({isocode:y})=>u.find(k=>k.isocode===y)).filter(Boolean);h("supported",S)}},[s,d]),D.useEffect(()=>{if(d){const S=m();if(S){h("selected",S);return}const y=w();if(y){const k=s.find(v=>v.isocode===y);if(k){h("selected",k);return}}if(i){const k=s.find(v=>v.isocode===i);k&&h("selected",k)}}},[d,s,i]),C.jsx(Xh.Provider,{value:{selected:t,supported:u},children:e})},wx=D.memo(({children:e})=>{const t=Fn(),{state:{supported:n},actions:r}=ve.useStateObject({supported:[]}),{i18n:{userLang:{primary:i,supported:s}}}=Jn(),{isInsideStudio:o}=ve.useStudioContext(),l=t.getI18nCurrent(),u=l&&s.find(m=>m.isocode===l)?l:"",c=t.getActiveTabPath(),d=t.getFlagsByPath(c),[h,g]=D.useState(u);return D.useEffect(()=>{d!=null&&d.enabled&&g("")},[d==null?void 0:d.enabled]),D.useEffect(()=>{g(u)},[u]),ve.useDsChangeRenderer({datasourceId:`${ve.QODLY_NAMESPACE}:${ve.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:d==null?void 0:d.enabled,onChange:m=>{if(!m)return;const{selected:w}=m;w&&w.isocode&&(g(w.isocode),localStorage.setItem("i18n.selected",w.isocode))}}),D.useEffect(()=>{t.getSupportedLanguages(o).then(m=>{r.setSupported(m)})},[t,o,r]),C.jsx(Qh.Provider,{value:{primary:i,selected:h||u,supported:n,userLangagues:s},children:e})});function ep(){const{isInsideStudio:e}=ve.useStudioContext(),t=D.useContext(Qh),n=D.useContext(Xh),r=e?t:n;if(r===void 0)throw new Error("useLocalization must be used within a LocalizationContext");return r}const tp=D.createContext(void 0),np=({children:e})=>{const{state:{allSupportedLanguages:t,selectedLanguage:n,languageKeys:r,addFirstLanguage:i},actions:s}=ve.useStateObject({allSupportedLanguages:[],selectedLanguage:void 0,languageKeys:[],addFirstLanguage:!1}),{supported:o}=ep(),{i18n:l,setUserLangSettings:u,updateKey:c,removeKey:d,createKey:h}=Jn(),g=(w,S)=>Object.keys(S).reduce((v,_)=>{if(S[_]){const A=S[_];if(Object.hasOwn(A,w)){const x=S[_][w];v.push({key:_,value:x,isDefault:!1})}else{const x=S[_].default;v.push({key:_,value:x,isDefault:!0})}}return v},[]),m=(w,S)=>{if(n){const{isocode:y}=n;c(w,y,S,!0);const k=structuredClone(l.keys),v=xe.set({...k},`${w}.${y}`,S),_=g(y,v);s.setLanguageKeys(_)}};return D.useEffect(()=>{s.setAllSupportedLanguages(o||[])},[o]),D.useEffect(()=>{if(n){const{isocode:w}=n,S=g(w,l.keys);s.setLanguageKeys(S)}},[l,n]),C.jsx(tp.Provider,{value:{userLanguages:l.userLang,languageKeys:r,selectedLanguage:n,allSupportedLanguages:t,addFirstLanguage:i,isPrimary:l.userLang.primary===(n==null?void 0:n.isocode),removeKey:d,addNewKey:h,setAddFirstLanguage:s.setAddFirstLanguage,setUserLangSettings:u,setSelectedLanguage:w=>s.setSelectedLanguage(w),setLanguageKeyValue:m},children:e})},Gn=()=>{const e=D.useContext(tp);if(e===void 0)throw new Error("useLocalizationEditor must be used within a LocalizationEditorProvider");return e};var pe={};(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-warning-600:var(--ws-warning-600);--color-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--color-negative-600:var(--ws-negative-600);--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-auto:not(#\\#){width:auto}.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}.content-center:not(#\\#){align-content: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-400:not(#\\#){border-color:var(--color-negative-400)}.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-500:not(#\\#){border-color:var(--color-positive-500)}.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-500:not(#\\#){border-color:var(--color-warning-500)}.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-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-600:hover:not(#\\#){background-color:var(--color-negative-600)}.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-600:hover:not(#\\#){background-color:var(--color-positive-600)}.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-600:hover:not(#\\#){background-color:var(--color-warning-600)}.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-gray-50:hover:not(#\\#){color:var(--color-gray-50)}.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 kx=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.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"})}),Sx=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.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"})}),xs=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.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"})}),_x=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.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"})}),Ex=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.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"})}),Ix=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Cx=(e,t)=>({classGroupId:e,validator:t}),rp=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ui="-",fu=[],Ax="arbitrary..",Tx=e=>{const t=Ox(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Nx(i);const s=i.split(Ui),o=s[0]===""&&s.length>1?1:0;return ip(s,o,t)},getConflictingClassGroupIds:(i,s)=>{if(s){const o=r[i],l=n[i];return o?l?Ix(l,o):o:l||fu}return n[i]||fu}}},ip=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],i=n.nextPart.get(r);if(i){const u=ip(e,t+1,i);if(u)return u}const s=n.validators;if(s===null)return;const o=t===0?e.join(Ui):e.slice(t).join(Ui),l=s.length;for(let u=0;u<l;u++){const c=s[u];if(c.validator(o))return c.classGroupId}},Nx=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Ax+r:void 0})(),Ox=e=>{const{theme:t,classGroups:n}=e;return Px(n,t)},Px=(e,t)=>{const n=rp();for(const r in e){const i=e[r];ao(i,n,r,t)}return n},ao=(e,t,n,r)=>{const i=e.length;for(let s=0;s<i;s++){const o=e[s];Rx(o,t,n,r)}},Rx=(e,t,n,r)=>{if(typeof e=="string"){Dx(e,t,n);return}if(typeof e=="function"){Lx(e,t,n,r);return}Vx(e,t,n,r)},Dx=(e,t,n)=>{const r=e===""?t:sp(t,e);r.classGroupId=n},Lx=(e,t,n,r)=>{if(Mx(e)){ao(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Cx(n,e))},Vx=(e,t,n,r)=>{const i=Object.entries(e),s=i.length;for(let o=0;o<s;o++){const[l,u]=i[o];ao(u,sp(t,l),n,r)}},sp=(e,t)=>{let n=e;const r=t.split(Ui),i=r.length;for(let s=0;s<i;s++){const o=r[s];let l=n.nextPart.get(o);l||(l=rp(),n.nextPart.set(o,l)),n=l}return n},Mx=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,jx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(s,o)=>{n[s]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let o=n[s];if(o!==void 0)return o;if((o=r[s])!==void 0)return i(s,o),o},set(s,o){s in n?n[s]=o:i(s,o)}}},Ra="!",gu=":",Fx=[],mu=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),zx=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let o=0,l=0,u=0,c;const d=i.length;for(let S=0;S<d;S++){const y=i[S];if(o===0&&l===0){if(y===gu){s.push(i.slice(u,S)),u=S+1;continue}if(y==="/"){c=S;continue}}y==="["?o++:y==="]"?o--:y==="("?l++:y===")"&&l--}const h=s.length===0?i:i.slice(u);let g=h,m=!1;h.endsWith(Ra)?(g=h.slice(0,-1),m=!0):h.startsWith(Ra)&&(g=h.slice(1),m=!0);const w=c&&c>u?c-u:void 0;return mu(s,m,g,w)};if(t){const i=t+gu,s=r;r=o=>o.startsWith(i)?s(o.slice(i.length)):mu(Fx,!1,o,void 0,!0)}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},Bx=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let s=0;s<n.length;s++){const o=n[s],l=o[0]==="[",u=t.has(o);l||u?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(o)):i.push(o)}return i.length>0&&(i.sort(),r.push(...i)),r}},Hx=e=>({cache:jx(e.cacheSize),parseClassName:zx(e),sortModifiers:Bx(e),...Tx(e)}),$x=/\s+/,Wx=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,o=[],l=e.trim().split($x);let u="";for(let c=l.length-1;c>=0;c-=1){const d=l[c],{isExternal:h,modifiers:g,hasImportantModifier:m,baseClassName:w,maybePostfixModifierPosition:S}=n(d);if(h){u=d+(u.length>0?" "+u:u);continue}let y=!!S,k=r(y?w.substring(0,S):w);if(!k){if(!y){u=d+(u.length>0?" "+u:u);continue}if(k=r(w),!k){u=d+(u.length>0?" "+u:u);continue}y=!1}const v=g.length===0?"":g.length===1?g[0]:s(g).join(":"),_=m?v+Ra:v,A=_+k;if(o.indexOf(A)>-1)continue;o.push(A);const x=i(k,y);for(let f=0;f<x.length;++f){const R=x[f];o.push(_+R)}u=d+(u.length>0?" "+u:u)}return u},Ux=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=ap(n))&&(i&&(i+=" "),i+=r);return i},ap=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ap(e[r]))&&(n&&(n+=" "),n+=t);return n},xu=(e,...t)=>{let n,r,i,s;const o=u=>{const c=t.reduce((d,h)=>h(d),e());return n=Hx(c),r=n.cache.get,i=n.cache.set,s=l,l(u)},l=u=>{const c=r(u);if(c)return c;const d=Wx(u,n);return i(u,d),d};return s=o,(...u)=>s(Ux(...u))},qx=[],mt=e=>{const t=n=>n[e]||qx;return t.isThemeGetter=!0,t},op=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,lp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Kx=/^\d+\/\d+$/,Jx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gx=/\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$/,Yx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Qx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rr=e=>Kx.test(e),Be=e=>!!e&&!Number.isNaN(Number(e)),Nn=e=>!!e&&Number.isInteger(Number(e)),Fs=e=>e.endsWith("%")&&Be(e.slice(0,-1)),yn=e=>Jx.test(e),Zx=()=>!0,ev=e=>Gx.test(e)&&!Yx.test(e),up=()=>!1,tv=e=>Qx.test(e),nv=e=>Xx.test(e),rv=e=>!we(e)&&!ke(e),iv=e=>mr(e,pp,up),we=e=>op.test(e),Hn=e=>mr(e,dp,ev),zs=e=>mr(e,uv,Be),vu=e=>mr(e,cp,up),sv=e=>mr(e,hp,nv),li=e=>mr(e,fp,tv),ke=e=>lp.test(e),Tr=e=>xr(e,dp),av=e=>xr(e,cv),bu=e=>xr(e,cp),ov=e=>xr(e,pp),lv=e=>xr(e,hp),ui=e=>xr(e,fp,!0),mr=(e,t,n)=>{const r=op.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},xr=(e,t,n=!1)=>{const r=lp.exec(e);return r?r[1]?t(r[1]):n:!1},cp=e=>e==="position"||e==="percentage",hp=e=>e==="image"||e==="url",pp=e=>e==="length"||e==="size"||e==="bg-size",dp=e=>e==="length",uv=e=>e==="number",cv=e=>e==="family-name",fp=e=>e==="shadow",yu=()=>{const e=mt("color"),t=mt("font"),n=mt("text"),r=mt("font-weight"),i=mt("tracking"),s=mt("leading"),o=mt("breakpoint"),l=mt("container"),u=mt("spacing"),c=mt("radius"),d=mt("shadow"),h=mt("inset-shadow"),g=mt("text-shadow"),m=mt("drop-shadow"),w=mt("blur"),S=mt("perspective"),y=mt("aspect"),k=mt("ease"),v=mt("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...A(),ke,we],f=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],V=()=>[ke,we,u],L=()=>[rr,"full","auto",...V()],N=()=>[Nn,"none","subgrid",ke,we],$=()=>["auto",{span:["full",Nn,ke,we]},Nn,ke,we],U=()=>[Nn,"auto",ke,we],J=()=>["auto","min","max","fr",ke,we],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...V()],q=()=>[rr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],K=()=>[e,ke,we],ie=()=>[...A(),bu,vu,{position:[ke,we]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],M=()=>["auto","cover","contain",ov,iv,{size:[ke,we]}],H=()=>[Fs,Tr,Hn],T=()=>["","none","full",c,ke,we],B=()=>["",Be,Tr,Hn],z=()=>["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"],F=()=>[Be,Fs,bu,vu],te=()=>["","none",w,ke,we],ee=()=>["none",Be,ke,we],ne=()=>["none",Be,ke,we],le=()=>[Be,ke,we],G=()=>[rr,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[yn],breakpoint:[yn],color:[Zx],container:[yn],"drop-shadow":[yn],ease:["in","out","in-out"],font:[rv],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[yn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[yn],shadow:[yn],spacing:["px",Be],text:[yn],"text-shadow":[yn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rr,we,ke,y]}],container:["container"],columns:[{columns:[Be,we,ke,l]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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:x()}],overflow:[{overflow:f()}],"overflow-x":[{"overflow-x":f()}],"overflow-y":[{"overflow-y":f()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Nn,"auto",ke,we]}],basis:[{basis:[rr,"full","auto",l,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Be,rr,"auto","initial","none",we]}],grow:[{grow:["",Be,ke,we]}],shrink:[{shrink:["",Be,ke,we]}],order:[{order:[Nn,"first","last","none",ke,we]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],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":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[l,"screen",...q()]}],"min-w":[{"min-w":[l,"screen","none",...q()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",n,Tr,Hn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ke,zs]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Fs,we]}],"font-family":[{font:[av,we,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,ke,we]}],"line-clamp":[{"line-clamp":[Be,"none",ke,zs]}],leading:[{leading:[s,...V()]}],"list-image":[{"list-image":["none",ke,we]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ke,we]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:[Be,"from-font","auto",ke,Hn]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[Be,"auto",ke,we]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ke,we]}],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",ke,we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Nn,ke,we],radial:["",ke,we],conic:[Nn,ke,we]},lv,sv]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...z(),"hidden","none"]}],"divide-style":[{divide:[...z(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Be,ke,we]}],"outline-w":[{outline:["",Be,Tr,Hn]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",d,ui,li]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",h,ui,li]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[Be,Hn]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",g,ui,li]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[Be,ke,we]}],"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":[Be]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[ke,we]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"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":A()}],"mask-image-conic-pos":[{"mask-conic":[Be]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ke,we]}],filter:[{filter:["","none",ke,we]}],blur:[{blur:te()}],brightness:[{brightness:[Be,ke,we]}],contrast:[{contrast:[Be,ke,we]}],"drop-shadow":[{"drop-shadow":["","none",m,ui,li]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",Be,ke,we]}],"hue-rotate":[{"hue-rotate":[Be,ke,we]}],invert:[{invert:["",Be,ke,we]}],saturate:[{saturate:[Be,ke,we]}],sepia:[{sepia:["",Be,ke,we]}],"backdrop-filter":[{"backdrop-filter":["","none",ke,we]}],"backdrop-blur":[{"backdrop-blur":te()}],"backdrop-brightness":[{"backdrop-brightness":[Be,ke,we]}],"backdrop-contrast":[{"backdrop-contrast":[Be,ke,we]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Be,ke,we]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Be,ke,we]}],"backdrop-invert":[{"backdrop-invert":["",Be,ke,we]}],"backdrop-opacity":[{"backdrop-opacity":[Be,ke,we]}],"backdrop-saturate":[{"backdrop-saturate":[Be,ke,we]}],"backdrop-sepia":[{"backdrop-sepia":["",Be,ke,we]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ke,we]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Be,"initial",ke,we]}],ease:[{ease:["linear","initial",k,ke,we]}],delay:[{delay:[Be,ke,we]}],animate:[{animate:["none",v,ke,we]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,ke,we]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[ke,we,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:G()}],"translate-x":[{"translate-x":G()}],"translate-y":[{"translate-y":G()}],"translate-z":[{"translate-z":G()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"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",ke,we]}],"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":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"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",ke,we]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[Be,Tr,Hn,zs]}],stroke:[{stroke:["none",...K()]}],"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"]}},hv=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:s={}})=>(Dr(e,"cacheSize",t),Dr(e,"prefix",n),Dr(e,"experimentalParseClassName",r),ci(e.theme,s.theme),ci(e.classGroups,s.classGroups),ci(e.conflictingClassGroups,s.conflictingClassGroups),ci(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Dr(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),hi(e.theme,i.theme),hi(e.classGroups,i.classGroups),hi(e.conflictingClassGroups,i.conflictingClassGroups),hi(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),gp(e,i,"orderSensitiveModifiers"),e),Dr=(e,t,n)=>{n!==void 0&&(e[t]=n)},ci=(e,t)=>{if(t)for(const n in t)Dr(e,n,t[n])},hi=(e,t)=>{if(t)for(const n in t)gp(e,t,n)},gp=(e,t,n)=>{const r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},pv=(e,...t)=>typeof e=="function"?xu(yu,e,...t):xu(()=>hv(yu(),e),...t);function mp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wu={exports:{}};/*!
3
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function Oa(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var gs=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var l=Aa(o),u=l.next();!u.done;u=l.next()){var c=u.value;c.remove(this)}}catch(S){t={error:S}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}else o.remove(this);var d=this.initialTeardown;if(dn(d))try{d()}catch(S){s=S instanceof Ms?S.errors:[S]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var g=Aa(h),m=g.next();!m.done;m=g.next()){var w=m.value;try{uu(w)}catch(S){s=s??[],S instanceof Ms?s=Na(Na([],Ta(s)),Ta(S.errors)):s.push(S)}}}catch(S){r={error:S}}finally{try{m&&!m.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}}if(s)throw new Ms(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)uu(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)&&Oa(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Oa(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Vh=gs.EMPTY;function Mh(e){return e instanceof gs||e&&"closed"in e&&dn(e.remove)&&dn(e.add)&&dn(e.unsubscribe)}function uu(e){dn(e)?e():e.unsubscribe()}var rx={Promise:void 0},ix={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Na([e,t],Ta(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function sx(e){ix.setTimeout(function(){throw e})}function cu(){}function Oi(e){e()}var so=(function(e){Kr(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Mh(n)&&n.add(r)):r.destination=lx,r}return t.create=function(n,r,i){return new Pa(n,r,i)},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})(gs),ax=(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(r){ai(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){ai(r)}else ai(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){ai(n)}},e})(),Pa=(function(e){Kr(t,e);function t(n,r,i){var s=e.call(this)||this,o;return dn(n)||!n?o={next:n??void 0,error:r??void 0,complete:i??void 0}:o=n,s.destination=new ax(o),s}return t})(so);function ai(e){sx(e)}function ox(e){throw e}var lx={closed:!0,next:cu,error:ox,complete:cu},ux=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function cx(e){return e}function hx(e){return e.length===0?cx:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var hu=(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,r){var i=this,s=dx(t)?t:new Pa(t,n,r);return Oi(function(){var o=i,l=o.operator,u=o.source;s.add(l?l.call(s,u):u?i._subscribe(s):i._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 r=this;return n=pu(n),new n(function(i,s){var o=new Pa({next:function(l){try{t(l)}catch(u){s(u),o.unsubscribe()}},error:s,complete:i});r.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[ux]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return hx(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=pu(t),new t(function(r,i){var s;n.subscribe(function(o){return s=o},function(o){return i(o)},function(){return r(s)})})},e.create=function(t){return new e(t)},e})();function pu(e){var t;return(t=e??rx.Promise)!==null&&t!==void 0?t:Promise}function px(e){return e&&dn(e.next)&&dn(e.error)&&dn(e.complete)}function dx(e){return e&&e instanceof so||px(e)&&Mh(e)}function jh(e,t,n,r,i){return new fx(e,t,n,r,i)}var fx=(function(e){Kr(t,e);function t(n,r,i,s,o,l){var u=e.call(this,n)||this;return u.onFinalize=o,u.shouldUnsubscribe=l,u._next=r?function(c){try{r(c)}catch(d){n.error(d)}}:e.prototype._next,u._error=s?function(c){try{s(c)}catch(d){n.error(d)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=i?function(){try{i()}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,u}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t})(so);function gx(e,t){return Dh(function(n,r){var i=0;n.subscribe(jh(r,function(s){r.next(e.call(t,s,i++))}))})}var mx=Lh(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Fh=(function(e){Kr(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 r=new du(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new mx},t.prototype.next=function(n){var r=this;Oi(function(){var i,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=Aa(r.currentObservers),l=o.next();!l.done;l=o.next()){var u=l.value;u.next(n)}}catch(c){i={error:c}}finally{try{l&&!l.done&&(s=o.return)&&s.call(o)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;Oi(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;Oi(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.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 r=this,i=this,s=i.hasError,o=i.isStopped,l=i.observers;return s||o?Vh:(this.currentObservers=null,l.push(n),new gs(function(){r.currentObservers=null,Oa(l,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,s=r.thrownError,o=r.isStopped;i?n.error(s):o&&n.complete()},t.prototype.asObservable=function(){var n=new hu;return n.source=this,n},t.create=function(n,r){return new du(n,r)},t})(hu),du=(function(e){Kr(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:Vh},t})(Fh);function xx(e,t){return Dh(function(n,r){var i=0;n.subscribe(jh(r,function(s){return e.call(t,s,i++)&&r.next(s)}))})}const zh=D.createContext(void 0),js={i18n:{keys:{},userLang:{primary:"",supported:[]}},i18nFileFetched:!1},Bh={tr_key:"__t"},{tr_key:oi}=Bh,vx={buildPathFullObject:e=>`${oi}.${e}`,getKeyValueFromCustom:(e,t)=>xe.get(e,`${oi}.${t}.key`),getDefaultValueFromCustom:(e,t)=>xe.get(e,`${oi}.${t}.default`),getFullObject:(e,t)=>xe.get(e,`${oi}.${t}`)},Hh=D.memo(({children:e,isI18nEnabled:t,onI18nChange:n})=>{const[r,i]=D.useState(js),s=D.useRef(!1),{i18n:o}=r,l=(y,k,v)=>{let _=1,A=y;for(;o.keys[A];)A=`${y}-${_}`,_++;const x={default:v};k.forEach(({lang:R,value:V})=>{R&&xe.set(x,R,V)});const f={keys:{...o.keys,[y]:x},userLang:o.userLang};i(R=>({...R,i18n:f}))},u=()=>{const y=new window.Event("i18n:ready");window.dispatchEvent(y)},c=D.useCallback(xe.debounce((y,k,v,_=!1)=>{i(A=>{const{keys:x,userLang:f}=A.i18n;if(x[y]&&k){const R={...x,[y]:{...x[y],[k]:v}};return s.current=_,{...A,i18n:{keys:R,userLang:f}}}return A})},300),[]),d=D.useCallback(xe.debounce((y,k)=>{const{keys:v,userLang:_}={...o};v[y]&&k&&(v[y].default=k);const A={keys:v,userLang:_};i(x=>({...x,i18n:A}))},300),[o]),h=y=>{y&&i(k=>({...k,i18n:{...k.i18n,userLang:y}}))},g=D.useCallback((y,k)=>{const{keys:v,userLang:_}=o,x={keys:Object.entries(v).reduce((f,[R,V])=>{const L={...V};return y.isocode in L&&(L[k.isocode]=L[y.isocode],delete L[y.isocode]),f[R]=L,f},{}),userLang:_};i(f=>({...f,i18n:x}))},[o]),m=D.useCallback(y=>{const{keys:k,userLang:v}=o,A={keys:Object.entries(k).reduce((x,[f,R])=>{const V={...R};return y.isocode in V&&delete V[y.isocode],x[f]=V,x},{}),userLang:v};i(x=>({...x,i18n:A}))},[o]),w=y=>{const k=[];return Object.keys(o.keys).forEach(_=>{const A=xe.get(o,`keys.${_}.${y}`,xe.get(o,`keys.${_}.default`,""));k.push({key:_,value:A})}),k},S=D.useCallback(xe.debounce(y=>{const k={...o.keys};delete k[y];const v={userLang:o.userLang,keys:k};i(_=>({..._,i18n:v}))},300),[o]);return D.useEffect(()=>{(async()=>{if(!t){u();return}try{const k=await fetch(`/$shared/i18n.json?ts=${Date.now()}`);if(!k.ok)throw new Error(`HTTP ${k.status}`);try{const v=await k.json();i(_=>({..._,i18n:{keys:xe.get(v,"keys",js.i18n.keys),userLang:xe.get(v,"userLang",js.i18n.userLang)}}))}catch{throw new Error("Invalid JSON in response")}}catch{}finally{i(k=>({...k,i18nFileFetched:!0})),u()}})()},[]),D.useEffect(()=>{const y=ve.i18nSubject.pipe(gx(({action:k,payload:v})=>{if(k==="set_content"){const _={...o,keys:{...o.keys,...v}};i(A=>({...A,i18n:_}))}if(k==="set_locale_state"){const _={...o,...v};i(A=>({...A,i18n:_}))}})).subscribe();return()=>y.unsubscribe()},[o]),D.useEffect(()=>{r.i18nFileFetched&&(n==null||n(r.i18n))},[r]),C.jsx(zh.Provider,{value:{i18n:r.i18n,createKey:l,updateKey:c,removeKey:S,editLanguageKeys:g,updateKeyDefault:d,deleteLanguageKeys:m,getI18nAsKeyValues:w,setUserLangSettings:h,shouldRecompute:s},children:e})});function Jn(){const e=D.useContext(zh);if(e===void 0)throw new Error("useI18n must be used within a I18nProviderContext");return e}const $h=D.createContext(null),Wh=({children:e,adapter:t})=>C.jsx($h.Provider,{value:t,children:e});function Fn(){const e=D.useContext($h);if(!e)throw new Error("useEditorStateAdapter must be used within an EditorStateAdapterProvider");return e}function bx(e,t){const n=$t.useAppDispatch(),r=$t.useAppSelector($t.selectTabs),i=$t.useAppSelector($t.selectActiveTab),s=$t.useAppSelector($t.selectAllTabsByType("webform")),o=$t.useAppSelector($t.selectI18nCurrent);return{getTabs:D.useCallback(()=>r??[],[r]),getI18nCurrent:D.useCallback(()=>o??"",[o]),getWebformTabs:D.useCallback(()=>s??[],[s]),getActiveTabPath:D.useCallback(()=>i??"",[i]),getFlagsByPath:D.useCallback(l=>{var u;return(u=r.find(c=>c.path===l))==null?void 0:u.flags},[r]),getSupportedLanguages:D.useCallback(async l=>ve.getSupportedLanguages(l),[]),getUserComponents:D.useCallback(()=>e??{},[e]),buildResolver:t,actions:{openModal:D.useCallback(async l=>await n($t.openModal(l)).unwrap(),[n]),setTabs:D.useCallback(l=>{n($t.setTabs(l))},[n]),setI18nCurrent:D.useCallback(l=>{n($t.setI18nCurrent({current:l}))},[n]),setTabContent:D.useCallback(async l=>n($t.setTabContent(l)),[n])}}}const Uh=new Fh,yx=(e,t)=>({name:e.split("/").pop()||e,type:ve.FileFolderType.WEBFORM,path:e,date:new Date().toISOString(),content:t,view:{panel:{isOpen:!1,type:"",current:""}},flags:{}});function qh(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:r}=t.payload;return e.tabs.find(s=>s.path===n)?{...e,tabs:e.tabs.map(s=>s.path===n?{...s,content:r}:s)}:{...e,tabs:[...e.tabs,yx(n,r)]}}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:r}=t.payload;let i;if(r)if(e.modals.list.find(o=>o.id===n))i={...e,modals:{...e.modals,list:e.modals.list.map(o=>o.id===n?{...o,closeReason:r,isOpen:!1}:o)}};else return e;else i={...e,modals:{...e.modals,list:e.modals.list.filter(s=>s.id!==n)}};return Uh.next(i.modals),i}case"EDIT_MODAL":{const{id:n,...r}=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,...r}:s)}}:e}default:return e}}const ms=D.createContext(null),Kh=(e,t)=>({tabs:e,i18nCurrent:t,modals:{list:[]}}),Jh=({children:e,tabs:t=[],i18nCurrent:n=""})=>{const[r,i]=D.useReducer(qh,Kh(t,n));D.useEffect(()=>{xe.isEqual(r.tabs,t)||i({type:"SET_TABS",payload:t})},[t,r.tabs]),D.useEffect(()=>{r.i18nCurrent!==n&&i({type:"SET_I18N_CURRENT",payload:n})},[n,r.i18nCurrent]);const s=D.useMemo(()=>({state:r,dispatch:i}),[r]);return C.jsx(ms.Provider,{value:s,children:e})};function Gh(e,t,n){const r=D.useContext(ms);if(!r)throw new Error("useReducerAdapter must be used within a ReducerAdapterProvider");const{state:i,dispatch:s}=r;return{getTabs:D.useCallback(()=>i.tabs,[i.tabs]),getI18nCurrent:D.useCallback(()=>i.i18nCurrent,[i.i18nCurrent]),getWebformTabs:D.useCallback(()=>i.tabs.filter(o=>o.type===ve.FileFolderType.WEBFORM),[i.tabs]),getActiveTabPath:D.useCallback(()=>{var o;return((o=i.tabs[0])==null?void 0:o.path)??""},[i.tabs]),getFlagsByPath:D.useCallback(o=>{var l;return(l=i.tabs.find(u=>u.path===o))==null?void 0:l.flags},[i.tabs]),getSupportedLanguages:D.useCallback(async o=>n&&n.length?n:ve.getSupportedLanguages(o),[n]),getUserComponents:D.useCallback(()=>e??{},[e]),buildResolver:t,actions:{openModal:D.useCallback(async o=>{const{type:l=ve.ModalType.ALERT}=o,u=no.generate();return s({type:"CREATE_MODAL",payload:{id:u,type:l,isOpen:!0,...o}}),l===ve.ModalType.CONFIRM?new Promise(c=>{const d=Uh.pipe(xx(h=>{const g=h.list.find(m=>m.id===u);return g!==void 0&&!g.isOpen})).subscribe(h=>{var m;const g=h.list.find(w=>w.id===u);if(g){const w=g.closeReason===ve.ModalCloseReason.CONFIRMED,S=xe.entries(((m=g.views)==null?void 0:m.toggles)||{}).reduce((y,k)=>({...y,[k[0]]:k[1].value}),{});s({type:"REMOVE_MODAL",payload:u}),d.unsubscribe(),c({confirmed:w,options:S})}})}):{confirmed:!1}},[s]),setTabs:D.useCallback(o=>{s({type:"SET_TABS",payload:o})},[s]),setI18nCurrent:D.useCallback(o=>{s({type:"SET_I18N_CURRENT",payload:o})},[s]),setTabContent:D.useCallback(async o=>(s({type:"SET_TAB_CONTENT",payload:o}),o),[s])}}}function Yh(){const e=D.useContext(ms);if(!e)throw new Error("useModals must be used within a ReducerAdapterProvider");const{state:t,dispatch:n}=e;return{modals:t.modals.list,closeModal:D.useCallback(r=>{n({type:"CLOSE_MODAL",payload:r})},[n]),editModal:D.useCallback(r=>{n({type:"EDIT_MODAL",payload:r})},[n]),removeModal:D.useCallback(r=>{n({type:"REMOVE_MODAL",payload:r})},[n])}}const Qh=D.createContext(void 0),Xh=D.createContext(void 0),Zh=({children:e})=>{const{isInsideStudio:t}=ve.useStudioContext();return t?C.jsx(kx,{children:e}):C.jsx(wx,{children:e})},wx=({children:e})=>{const{state:{currentLang:t},actions:n}=ve.useStateObject({currentLang:""}),{actions:r}=ve.useDsRendererAdapter(`${ve.QODLY_NAMESPACE}:${ve.USER_LANGUAGE_DATASOURCE_ID}`),{i18n:{userLang:{primary:i,supported:s}}}=Jn(),{isInsideStudio:o}=ve.useStudioContext(),l=Fn(),[u,c]=D.useState([]),{loaded:d}=ve.useDsChangeRenderer({datasourceId:`${ve.QODLY_NAMESPACE}:${ve.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:!0,onChange:S=>{if(!S)return;const{selected:y}=S;y&&y.isocode&&(n.setCurrentLang(y.isocode),g(y))}}),h=(S,y)=>{r.setProperty(S,y)},g=S=>{localStorage.setItem("i18n.selected",JSON.stringify(S))},m=()=>{const S=localStorage.getItem("i18n.selected");return S?JSON.parse(S):null},w=()=>navigator.language;return D.useEffect(()=>{l.getSupportedLanguages(o).then(S=>{c(S)})},[l,o]),D.useEffect(()=>{if(d&&s){const S=s.map(({isocode:y})=>u.find(k=>k.isocode===y)).filter(Boolean);h("supported",S)}},[s,d]),D.useEffect(()=>{if(d){const S=m();if(S){h("selected",S);return}const y=w();if(y){const k=s.find(v=>v.isocode===y);if(k){h("selected",k);return}}if(i){const k=s.find(v=>v.isocode===i);k&&h("selected",k)}}},[d,s,i]),C.jsx(Xh.Provider,{value:{selected:t,supported:u},children:e})},kx=D.memo(({children:e})=>{const t=Fn(),{state:{supported:n},actions:r}=ve.useStateObject({supported:[]}),{i18n:{userLang:{primary:i,supported:s}}}=Jn(),{isInsideStudio:o}=ve.useStudioContext(),l=t.getI18nCurrent(),u=l&&s.find(m=>m.isocode===l)?l:"",c=t.getActiveTabPath(),d=t.getFlagsByPath(c),[h,g]=D.useState(u);return D.useEffect(()=>{d!=null&&d.enabled&&g("")},[d==null?void 0:d.enabled]),D.useEffect(()=>{g(u)},[u]),ve.useDsChangeRenderer({datasourceId:`${ve.QODLY_NAMESPACE}:${ve.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:d==null?void 0:d.enabled,onChange:m=>{if(!m)return;const{selected:w}=m;w&&w.isocode&&(g(w.isocode),localStorage.setItem("i18n.selected",w.isocode))}}),D.useEffect(()=>{t.getSupportedLanguages(o).then(m=>{r.setSupported(m)})},[t,o,r]),C.jsx(Qh.Provider,{value:{primary:i,selected:h||u,supported:n,userLangagues:s},children:e})});function ep(){const{isInsideStudio:e}=ve.useStudioContext(),t=D.useContext(Qh),n=D.useContext(Xh),r=e?t:n;if(r===void 0)throw new Error("useLocalization must be used within a LocalizationContext");return r}const tp=D.createContext(void 0),np=({children:e})=>{const{state:{allSupportedLanguages:t,selectedLanguage:n,languageKeys:r,addFirstLanguage:i},actions:s}=ve.useStateObject({allSupportedLanguages:[],selectedLanguage:void 0,languageKeys:[],addFirstLanguage:!1}),{supported:o}=ep(),{i18n:l,setUserLangSettings:u,updateKey:c,removeKey:d,createKey:h}=Jn(),g=(w,S)=>Object.keys(S).reduce((v,_)=>{if(S[_]){const A=S[_];if(Object.hasOwn(A,w)){const x=S[_][w];v.push({key:_,value:x,isDefault:!1})}else{const x=S[_].default;v.push({key:_,value:x,isDefault:!0})}}return v},[]),m=(w,S)=>{if(n){const{isocode:y}=n;c(w,y,S,!0);const k=structuredClone(l.keys),v=xe.set({...k},`${w}.${y}`,S),_=g(y,v);s.setLanguageKeys(_)}};return D.useEffect(()=>{s.setAllSupportedLanguages(o||[])},[o]),D.useEffect(()=>{if(n){const{isocode:w}=n,S=g(w,l.keys);s.setLanguageKeys(S)}},[l,n]),C.jsx(tp.Provider,{value:{userLanguages:l.userLang,languageKeys:r,selectedLanguage:n,allSupportedLanguages:t,addFirstLanguage:i,isPrimary:l.userLang.primary===(n==null?void 0:n.isocode),removeKey:d,addNewKey:h,setAddFirstLanguage:s.setAddFirstLanguage,setUserLangSettings:u,setSelectedLanguage:w=>s.setSelectedLanguage(w),setLanguageKeyValue:m},children:e})},Gn=()=>{const e=D.useContext(tp);if(e===void 0)throw new Error("useLocalizationEditor must be used within a LocalizationEditorProvider");return e};var pe={};(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-warning-600:var(--ws-warning-600);--color-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--color-negative-600:var(--ws-negative-600);--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-auto:not(#\\#){width:auto}.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}.content-center:not(#\\#){align-content: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-400:not(#\\#){border-color:var(--color-negative-400)}.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-500:not(#\\#){border-color:var(--color-positive-500)}.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-500:not(#\\#){border-color:var(--color-warning-500)}.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-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-600:hover:not(#\\#){background-color:var(--color-negative-600)}.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-600:hover:not(#\\#){background-color:var(--color-positive-600)}.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-600:hover:not(#\\#){background-color:var(--color-warning-600)}.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-gray-50:hover:not(#\\#){color:var(--color-gray-50)}.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 Sx=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.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"})}),_x=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.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"})}),xs=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.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"})}),Ex=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.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"})}),Ix=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.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"})}),Cx=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Ax=(e,t)=>({classGroupId:e,validator:t}),rp=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ui="-",fu=[],Tx="arbitrary..",Nx=e=>{const t=Px(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Ox(i);const s=i.split(Ui),o=s[0]===""&&s.length>1?1:0;return ip(s,o,t)},getConflictingClassGroupIds:(i,s)=>{if(s){const o=r[i],l=n[i];return o?l?Cx(l,o):o:l||fu}return n[i]||fu}}},ip=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],i=n.nextPart.get(r);if(i){const u=ip(e,t+1,i);if(u)return u}const s=n.validators;if(s===null)return;const o=t===0?e.join(Ui):e.slice(t).join(Ui),l=s.length;for(let u=0;u<l;u++){const c=s[u];if(c.validator(o))return c.classGroupId}},Ox=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Tx+r:void 0})(),Px=e=>{const{theme:t,classGroups:n}=e;return Rx(n,t)},Rx=(e,t)=>{const n=rp();for(const r in e){const i=e[r];ao(i,n,r,t)}return n},ao=(e,t,n,r)=>{const i=e.length;for(let s=0;s<i;s++){const o=e[s];Dx(o,t,n,r)}},Dx=(e,t,n,r)=>{if(typeof e=="string"){Lx(e,t,n);return}if(typeof e=="function"){Vx(e,t,n,r);return}Mx(e,t,n,r)},Lx=(e,t,n)=>{const r=e===""?t:sp(t,e);r.classGroupId=n},Vx=(e,t,n,r)=>{if(jx(e)){ao(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ax(n,e))},Mx=(e,t,n,r)=>{const i=Object.entries(e),s=i.length;for(let o=0;o<s;o++){const[l,u]=i[o];ao(u,sp(t,l),n,r)}},sp=(e,t)=>{let n=e;const r=t.split(Ui),i=r.length;for(let s=0;s<i;s++){const o=r[s];let l=n.nextPart.get(o);l||(l=rp(),n.nextPart.set(o,l)),n=l}return n},jx=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Fx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(s,o)=>{n[s]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let o=n[s];if(o!==void 0)return o;if((o=r[s])!==void 0)return i(s,o),o},set(s,o){s in n?n[s]=o:i(s,o)}}},Ra="!",gu=":",zx=[],mu=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Bx=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let o=0,l=0,u=0,c;const d=i.length;for(let S=0;S<d;S++){const y=i[S];if(o===0&&l===0){if(y===gu){s.push(i.slice(u,S)),u=S+1;continue}if(y==="/"){c=S;continue}}y==="["?o++:y==="]"?o--:y==="("?l++:y===")"&&l--}const h=s.length===0?i:i.slice(u);let g=h,m=!1;h.endsWith(Ra)?(g=h.slice(0,-1),m=!0):h.startsWith(Ra)&&(g=h.slice(1),m=!0);const w=c&&c>u?c-u:void 0;return mu(s,m,g,w)};if(t){const i=t+gu,s=r;r=o=>o.startsWith(i)?s(o.slice(i.length)):mu(zx,!1,o,void 0,!0)}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},Hx=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let s=0;s<n.length;s++){const o=n[s],l=o[0]==="[",u=t.has(o);l||u?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(o)):i.push(o)}return i.length>0&&(i.sort(),r.push(...i)),r}},$x=e=>({cache:Fx(e.cacheSize),parseClassName:Bx(e),sortModifiers:Hx(e),...Nx(e)}),Wx=/\s+/,Ux=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,o=[],l=e.trim().split(Wx);let u="";for(let c=l.length-1;c>=0;c-=1){const d=l[c],{isExternal:h,modifiers:g,hasImportantModifier:m,baseClassName:w,maybePostfixModifierPosition:S}=n(d);if(h){u=d+(u.length>0?" "+u:u);continue}let y=!!S,k=r(y?w.substring(0,S):w);if(!k){if(!y){u=d+(u.length>0?" "+u:u);continue}if(k=r(w),!k){u=d+(u.length>0?" "+u:u);continue}y=!1}const v=g.length===0?"":g.length===1?g[0]:s(g).join(":"),_=m?v+Ra:v,A=_+k;if(o.indexOf(A)>-1)continue;o.push(A);const x=i(k,y);for(let f=0;f<x.length;++f){const R=x[f];o.push(_+R)}u=d+(u.length>0?" "+u:u)}return u},qx=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=ap(n))&&(i&&(i+=" "),i+=r);return i},ap=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ap(e[r]))&&(n&&(n+=" "),n+=t);return n},xu=(e,...t)=>{let n,r,i,s;const o=u=>{const c=t.reduce((d,h)=>h(d),e());return n=$x(c),r=n.cache.get,i=n.cache.set,s=l,l(u)},l=u=>{const c=r(u);if(c)return c;const d=Ux(u,n);return i(u,d),d};return s=o,(...u)=>s(qx(...u))},Kx=[],mt=e=>{const t=n=>n[e]||Kx;return t.isThemeGetter=!0,t},op=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,lp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Jx=/^\d+\/\d+$/,Gx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yx=/\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$/,Qx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Zx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rr=e=>Jx.test(e),Be=e=>!!e&&!Number.isNaN(Number(e)),Nn=e=>!!e&&Number.isInteger(Number(e)),Fs=e=>e.endsWith("%")&&Be(e.slice(0,-1)),yn=e=>Gx.test(e),ev=()=>!0,tv=e=>Yx.test(e)&&!Qx.test(e),up=()=>!1,nv=e=>Xx.test(e),rv=e=>Zx.test(e),iv=e=>!we(e)&&!ke(e),sv=e=>mr(e,pp,up),we=e=>op.test(e),Hn=e=>mr(e,dp,tv),zs=e=>mr(e,cv,Be),vu=e=>mr(e,cp,up),av=e=>mr(e,hp,rv),li=e=>mr(e,fp,nv),ke=e=>lp.test(e),Tr=e=>xr(e,dp),ov=e=>xr(e,hv),bu=e=>xr(e,cp),lv=e=>xr(e,pp),uv=e=>xr(e,hp),ui=e=>xr(e,fp,!0),mr=(e,t,n)=>{const r=op.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},xr=(e,t,n=!1)=>{const r=lp.exec(e);return r?r[1]?t(r[1]):n:!1},cp=e=>e==="position"||e==="percentage",hp=e=>e==="image"||e==="url",pp=e=>e==="length"||e==="size"||e==="bg-size",dp=e=>e==="length",cv=e=>e==="number",hv=e=>e==="family-name",fp=e=>e==="shadow",yu=()=>{const e=mt("color"),t=mt("font"),n=mt("text"),r=mt("font-weight"),i=mt("tracking"),s=mt("leading"),o=mt("breakpoint"),l=mt("container"),u=mt("spacing"),c=mt("radius"),d=mt("shadow"),h=mt("inset-shadow"),g=mt("text-shadow"),m=mt("drop-shadow"),w=mt("blur"),S=mt("perspective"),y=mt("aspect"),k=mt("ease"),v=mt("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...A(),ke,we],f=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],V=()=>[ke,we,u],L=()=>[rr,"full","auto",...V()],N=()=>[Nn,"none","subgrid",ke,we],$=()=>["auto",{span:["full",Nn,ke,we]},Nn,ke,we],U=()=>[Nn,"auto",ke,we],J=()=>["auto","min","max","fr",ke,we],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...V()],q=()=>[rr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],K=()=>[e,ke,we],ie=()=>[...A(),bu,vu,{position:[ke,we]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],M=()=>["auto","cover","contain",lv,sv,{size:[ke,we]}],H=()=>[Fs,Tr,Hn],T=()=>["","none","full",c,ke,we],B=()=>["",Be,Tr,Hn],z=()=>["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"],F=()=>[Be,Fs,bu,vu],te=()=>["","none",w,ke,we],ee=()=>["none",Be,ke,we],ne=()=>["none",Be,ke,we],le=()=>[Be,ke,we],G=()=>[rr,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[yn],breakpoint:[yn],color:[ev],container:[yn],"drop-shadow":[yn],ease:["in","out","in-out"],font:[iv],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[yn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[yn],shadow:[yn],spacing:["px",Be],text:[yn],"text-shadow":[yn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rr,we,ke,y]}],container:["container"],columns:[{columns:[Be,we,ke,l]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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:x()}],overflow:[{overflow:f()}],"overflow-x":[{"overflow-x":f()}],"overflow-y":[{"overflow-y":f()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Nn,"auto",ke,we]}],basis:[{basis:[rr,"full","auto",l,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Be,rr,"auto","initial","none",we]}],grow:[{grow:["",Be,ke,we]}],shrink:[{shrink:["",Be,ke,we]}],order:[{order:[Nn,"first","last","none",ke,we]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],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":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[l,"screen",...q()]}],"min-w":[{"min-w":[l,"screen","none",...q()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",n,Tr,Hn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ke,zs]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Fs,we]}],"font-family":[{font:[ov,we,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,ke,we]}],"line-clamp":[{"line-clamp":[Be,"none",ke,zs]}],leading:[{leading:[s,...V()]}],"list-image":[{"list-image":["none",ke,we]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ke,we]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:[Be,"from-font","auto",ke,Hn]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[Be,"auto",ke,we]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ke,we]}],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",ke,we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Nn,ke,we],radial:["",ke,we],conic:[Nn,ke,we]},uv,av]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...z(),"hidden","none"]}],"divide-style":[{divide:[...z(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Be,ke,we]}],"outline-w":[{outline:["",Be,Tr,Hn]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",d,ui,li]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",h,ui,li]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[Be,Hn]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",g,ui,li]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[Be,ke,we]}],"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":[Be]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[ke,we]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"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":A()}],"mask-image-conic-pos":[{"mask-conic":[Be]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ke,we]}],filter:[{filter:["","none",ke,we]}],blur:[{blur:te()}],brightness:[{brightness:[Be,ke,we]}],contrast:[{contrast:[Be,ke,we]}],"drop-shadow":[{"drop-shadow":["","none",m,ui,li]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",Be,ke,we]}],"hue-rotate":[{"hue-rotate":[Be,ke,we]}],invert:[{invert:["",Be,ke,we]}],saturate:[{saturate:[Be,ke,we]}],sepia:[{sepia:["",Be,ke,we]}],"backdrop-filter":[{"backdrop-filter":["","none",ke,we]}],"backdrop-blur":[{"backdrop-blur":te()}],"backdrop-brightness":[{"backdrop-brightness":[Be,ke,we]}],"backdrop-contrast":[{"backdrop-contrast":[Be,ke,we]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Be,ke,we]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Be,ke,we]}],"backdrop-invert":[{"backdrop-invert":["",Be,ke,we]}],"backdrop-opacity":[{"backdrop-opacity":[Be,ke,we]}],"backdrop-saturate":[{"backdrop-saturate":[Be,ke,we]}],"backdrop-sepia":[{"backdrop-sepia":["",Be,ke,we]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ke,we]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Be,"initial",ke,we]}],ease:[{ease:["linear","initial",k,ke,we]}],delay:[{delay:[Be,ke,we]}],animate:[{animate:["none",v,ke,we]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,ke,we]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[ke,we,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:G()}],"translate-x":[{"translate-x":G()}],"translate-y":[{"translate-y":G()}],"translate-z":[{"translate-z":G()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"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",ke,we]}],"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":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"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",ke,we]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[Be,Tr,Hn,zs]}],stroke:[{stroke:["none",...K()]}],"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"]}},pv=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:s={}})=>(Dr(e,"cacheSize",t),Dr(e,"prefix",n),Dr(e,"experimentalParseClassName",r),ci(e.theme,s.theme),ci(e.classGroups,s.classGroups),ci(e.conflictingClassGroups,s.conflictingClassGroups),ci(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Dr(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),hi(e.theme,i.theme),hi(e.classGroups,i.classGroups),hi(e.conflictingClassGroups,i.conflictingClassGroups),hi(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),gp(e,i,"orderSensitiveModifiers"),e),Dr=(e,t,n)=>{n!==void 0&&(e[t]=n)},ci=(e,t)=>{if(t)for(const n in t)Dr(e,n,t[n])},hi=(e,t)=>{if(t)for(const n in t)gp(e,t,n)},gp=(e,t,n)=>{const r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},dv=(e,...t)=>typeof e=="function"?xu(yu,e,...t):xu(()=>pv(yu(),e),...t);function mp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wu={exports:{}};/*!
5
5
  Copyright (c) 2018 Jed Watson.
6
6
  Licensed under the MIT License (MIT), see
7
7
  http://jedwatson.github.io/classnames
8
- */var ku;function dv(){return ku||(ku=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",o=0;o<arguments.length;o++){var l=arguments[o];l&&(s=i(s,r(l)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var o="";for(var l in s)t.call(s,l)&&s[l]&&(o=i(o,l));return o}function i(s,o){return o?s?s+" "+o:s+o:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(wu)),wu.exports}var fv=dv();const Yn=mp(fv),gv=pv({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 de(...e){return gv(Yn(e))}const Jr={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"}},Yt={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"}},mv=`
8
+ */var ku;function fv(){return ku||(ku=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",o=0;o<arguments.length;o++){var l=arguments[o];l&&(s=i(s,r(l)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var o="";for(var l in s)t.call(s,l)&&s[l]&&(o=i(o,l));return o}function i(s,o){return o?s?s+" "+o:s+o:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(wu)),wu.exports}var gv=fv();const Yn=mp(gv),mv=dv({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 de(...e){return mv(Yn(e))}const Jr={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"}},Yt={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"}},xv=`
9
9
  appearance-none border rounded transition-all duration-200
10
10
  focus:ring-2 focus:ring-offset-2 focus:outline-hidden
11
11
  relative
12
- `,xv=(e,t,n)=>{const{isChecked:r,isIndeterminate:i,isDisabled:s,isInvalid:o}=n,l=r||i;return de(mv,Jr[e].checkbox,{"cursor-pointer":!s},o?{[Yt.negative.checked]:l,[Yt.negative.unchecked]:!l,[Yt.negative.checkedHover]:!s&&l,[Yt.negative.focus]:!s,"border-input-disable":s}:{[Yt[t].checked]:l&&!s,[Yt[t].unchecked]:!l&&!s,[Yt[t].checkedHover]:!s&&l,[Yt[t].focus]:!s,"border-input-disable":s,"bg-input-disable text-muted":s&&l})},vv=(e,t,n)=>{const{isDisabled:r,isInvalid:i}=n;return de(Jr[e].text,i?{[Yt.negative.label]:i}:{"text-input-disable":r,[Yt[t].label]:!r,"cursor-pointer":!r})},bv=e=>de("inline-flex items-center ws-group",Jr[e].spacing),yv=(e,t,n)=>de("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",Jr[e].hoverSquare,{[Yt.negative.hoverSquare]:n,[Yt[t].hoverSquare]:!n}),wv=e=>`${Jr[e].icon}`,kv=e=>C.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:C.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),oo=D.forwardRef(({label:e,isDisabled:t=!1,isInvalid:n=!1,isRequired:r=!1,size:i="md",color:s="primary",onChange:o,onFocus:l,onBlur:u,value:c,defaultValue:d,name:h,id:g,...m},w)=>{const[S,y]=D.useState(d),k=c===!0||S===!0,v=c===null,_=k||v,A={isChecked:k,isIndeterminate:v,isDisabled:t,isInvalid:n},x=xv(i,s,A),f=vv(i,s,A),R=bv(i),V=yv(i,s,n),L=wv(i);return C.jsxs("label",{"data-qui":"Checkbox",className:R,children:[C.jsxs("div",{className:x,children:[C.jsx("input",{ref:w,type:"checkbox",className:"sr-only",checked:k,disabled:t,required:r,onChange:N=>{c===void 0&&y(N.target.checked),o==null||o(N)},onFocus:l,onBlur:u,name:h,id:g,...m}),_&&C.jsx("div",{className:"center-absolute",children:v?C.jsx(kv,{className:L}):C.jsx(kx,{className:L})}),!_&&!t&&C.jsx("div",{className:V})]}),e&&C.jsxs("span",{className:f,children:[e,r&&C.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});oo.displayName="Checkbox";const Gr={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"}},Br={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"}},Sv=`
12
+ `,vv=(e,t,n)=>{const{isChecked:r,isIndeterminate:i,isDisabled:s,isInvalid:o}=n,l=r||i;return de(xv,Jr[e].checkbox,{"cursor-pointer":!s},o?{[Yt.negative.checked]:l,[Yt.negative.unchecked]:!l,[Yt.negative.checkedHover]:!s&&l,[Yt.negative.focus]:!s,"border-input-disable":s}:{[Yt[t].checked]:l&&!s,[Yt[t].unchecked]:!l&&!s,[Yt[t].checkedHover]:!s&&l,[Yt[t].focus]:!s,"border-input-disable":s,"bg-input-disable text-muted":s&&l})},bv=(e,t,n)=>{const{isDisabled:r,isInvalid:i}=n;return de(Jr[e].text,i?{[Yt.negative.label]:i}:{"text-input-disable":r,[Yt[t].label]:!r,"cursor-pointer":!r})},yv=e=>de("inline-flex items-center ws-group",Jr[e].spacing),wv=(e,t,n)=>de("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",Jr[e].hoverSquare,{[Yt.negative.hoverSquare]:n,[Yt[t].hoverSquare]:!n}),kv=e=>`${Jr[e].icon}`,Sv=e=>C.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:C.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),oo=D.forwardRef(({label:e,isDisabled:t=!1,isInvalid:n=!1,isRequired:r=!1,size:i="md",color:s="primary",onChange:o,onFocus:l,onBlur:u,value:c,defaultValue:d,name:h,id:g,...m},w)=>{const[S,y]=D.useState(d),k=c===!0||S===!0,v=c===null,_=k||v,A={isChecked:k,isIndeterminate:v,isDisabled:t,isInvalid:n},x=vv(i,s,A),f=bv(i,s,A),R=yv(i),V=wv(i,s,n),L=kv(i);return C.jsxs("label",{"data-qui":"Checkbox",className:R,children:[C.jsxs("div",{className:x,children:[C.jsx("input",{ref:w,type:"checkbox",className:"sr-only",checked:k,disabled:t,required:r,onChange:N=>{c===void 0&&y(N.target.checked),o==null||o(N)},onFocus:l,onBlur:u,name:h,id:g,...m}),_&&C.jsx("div",{className:"center-absolute",children:v?C.jsx(Sv,{className:L}):C.jsx(Sx,{className:L})}),!_&&!t&&C.jsx("div",{className:V})]}),e&&C.jsxs("span",{className:f,children:[e,r&&C.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});oo.displayName="Checkbox";const Gr={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"}},Br={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"}},_v=`
13
13
  relative rounded-full border transition-all duration-200 ease-in-out bg-transparent
14
14
  focus:outline-hidden focus:ring-2 focus:ring-offset-0
15
15
  cursor-pointer peer
16
- `,_v=(e,t,n)=>{const{isDisabled:r,isInvalid:i}=n;return Yn(Sv,Gr[e].radio,i?Br[t].radioInvalid:{[Br[t].radio]:!r,"cursor-not-allowed opacity-60":r})},Ev=(e,t,n)=>{const{checked:r,isDisabled:i,isInvalid:s}=n;return Yn("center-absolute rounded-full transition-all duration-200 ease-in-out",Gr[e].dot,s?"bg-negative":{[Br[t].dot]:!i,"border-neutral":i,"opacity-0 scale-0":!r,"opacity-100 scale-100":r&&!i})},Iv=(e,t,n)=>Yn("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",Gr[e].hoverDot,{[Br[t].hoverDot]:!n,"bg-negative-bg":n}),Cv=(e,t,n)=>{const{isDisabled:r,isInvalid:i}=n;return Yn("cursor-pointer select-none transition-colors duration-200",Gr[e].label,i?{"text-negative":i}:{[Br[t].label]:!r,"text-muted":r})},Av=(e,t)=>Yn("inline-flex items-center group",Gr[e].container,t),Tv=()=>Yn("flex flex-col"),xp=D.createContext(null),Nv=()=>{const e=D.useContext(xp);if(!e)throw new Error("Radio.Item must be used within Radio.Group");return e},vp=({value:e,defaultValue:t,onChange:n,name:r,size:i="md",color:s="primary",isDisabled:o=!1,isInvalid:l=!1,isRequired:u=!1,className:c,children:d,...h})=>{const[g,m]=D.useState(t),w=e!==void 0,S={value:w?e:g,onChange:y=>{w||m(y),n==null||n(y)},name:r,size:i,color:s,isDisabled:o,isInvalid:l,isRequired:u};return C.jsx(xp.Provider,{value:S,children:C.jsx("div",{"data-qui":"RadioGroup",role:"radiogroup",className:de(Tv(),c),...h,children:d})})},bp=D.forwardRef(({value:e,label:t,size:n,color:r,isDisabled:i,isInvalid:s,isRequired:o,className:l,...u},c)=>{const d=Nv(),h=n??d.size,g=r??d.color,m=i??d.isDisabled,w=s??d.isInvalid,S=o??d.isRequired,y=d.value===e,k={checked:y,isDisabled:m,isInvalid:w},v=_v(h,g,k),_=Ev(h,g,k),A=Iv(h,g,w),x=Cv(h,g,k),f=Av(h,l),R=()=>{m||d.onChange(e)};return C.jsxs("label",{"data-qui":"RadioItem",className:f,children:[C.jsxs("div",{className:"relative",children:[C.jsx("input",{ref:c,type:"radio",value:e,checked:y,disabled:m,required:S,"aria-invalid":w,"aria-label":t?void 0:u["aria-label"],name:d.name,onChange:R,className:"sr-only",...u}),C.jsxs("div",{className:v,children:[C.jsx("div",{className:_}),!y&&!m&&C.jsx("div",{className:A})]})]}),t&&C.jsxs("span",{className:x,children:[t,S&&C.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});vp.displayName="RadioGroup";bp.displayName="RadioItem";const Su={Group:vp,Item:bp},yp={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"}},Ov={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"}}},Pv=(e,t,n,r)=>{const i=yp[e],s=Ov[n],o=de("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!r},i.container);return r?de(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"}):de(o,s.bg[t],s.text[t],s.hover[t],s.border[t])},Rv=e=>de("flex items-center justify-center gap-1",yp[e].text),Rt=D.forwardRef(({size:e="md",variant:t="solid",color:n="primary",className:r,children:i,disabled:s,...o},l)=>C.jsx("button",{"data-qui":"Button",ref:l,type:"button",className:de(Pv(e,t,n,s),Rv(e),r),disabled:s,...o,children:i}));Rt.displayName="Button";const wp=D.createContext(null),Yr=()=>{const e=D.useContext(wp);if(!e)throw new Error("Input components must be used within Input.Root");return e},vr={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"}},_n={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"}},Dv=()=>de("flex flex-col relative"),Lv=({size:e,color:t,isDisabled:n,isReadOnly:r,hasMessage:i,hasArea:s,isInvalid:o})=>{const l=_n[o?"negative":t];return de("bg-input-bg flex gap-1 relative px-1 transition-all duration-200 ease-in-out only:rounded first:rounded-t last:rounded-b",l.text,i?l.borderMessage:!r&&l.border,vr[e].group,{"ring-1":i,"opacity-60":n,"items-center":!s})},Vv=({size:e,color:t})=>de("bg-transparent ring-0 w-full","focus:outline-hidden",[vr[e].input],_n[t].placeholder),_u=({size:e,color:t})=>de("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",vr[e].input,_n[t].placeholder),Mv=({size:e,color:t,isDisabled:n,isAction:r})=>de("transition-colors duration-200 rounded max-h-full h-fit",vr[e].icon,e==="sm"?"m-px":"m-0.5",n?"text-muted opacity-60 pointer-events-none":r?_n[t].action:_n[t].icon,{"cursor-pointer p-0.5":r&&!n,[_n[t].actionHover]:r&&!n,"pointer-events-none":!r}),jv=({size:e,color:t,isDisabled:n})=>de("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",n?"text-muted":_n[t].messageText,_n[t].borderMessage,_n[t].messageBackground,vr[e].message,{"opacity-60":n}),Fv=({size:e})=>de(vr[e].icon);function qi(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var zv=typeof global=="object"&&global&&global.Object===Object&&global,Bv=typeof self=="object"&&self&&self.Object===Object&&self,kp=zv||Bv||Function("return this")(),Bs=function(){return kp.Date.now()},Hv=/\s/;function $v(e){for(var t=e.length;t--&&Hv.test(e.charAt(t)););return t}var Wv=/^\s+/;function Uv(e){return e&&e.slice(0,$v(e)+1).replace(Wv,"")}var Ki=kp.Symbol,Sp=Object.prototype,qv=Sp.hasOwnProperty,Kv=Sp.toString,Nr=Ki?Ki.toStringTag:void 0;function Jv(e){var t=qv.call(e,Nr),n=e[Nr];try{e[Nr]=void 0;var r=!0}catch{}var i=Kv.call(e);return r&&(t?e[Nr]=n:delete e[Nr]),i}var Gv=Object.prototype,Yv=Gv.toString;function Qv(e){return Yv.call(e)}var Xv="[object Null]",Zv="[object Undefined]",Eu=Ki?Ki.toStringTag:void 0;function e0(e){return e==null?e===void 0?Zv:Xv:Eu&&Eu in Object(e)?Jv(e):Qv(e)}function t0(e){return e!=null&&typeof e=="object"}var n0="[object Symbol]";function r0(e){return typeof e=="symbol"||t0(e)&&e0(e)==n0}var Iu=NaN,i0=/^[-+]0x[0-9a-f]+$/i,s0=/^0b[01]+$/i,a0=/^0o[0-7]+$/i,o0=parseInt;function Cu(e){if(typeof e=="number")return e;if(r0(e))return Iu;if(qi(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qi(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Uv(e);var n=s0.test(e);return n||a0.test(e)?o0(e.slice(2),n?2:8):i0.test(e)?Iu:+e}var l0="Expected a function",u0=Math.max,c0=Math.min;function Pi(e,t,n){var r,i,s,o,l,u,c=0,d=!1,h=!1,g=!0;if(typeof e!="function")throw new TypeError(l0);t=Cu(t)||0,qi(n)&&(d=!!n.leading,h="maxWait"in n,s=h?u0(Cu(n.maxWait)||0,t):s,g="trailing"in n?!!n.trailing:g);function m(f){var R=r,V=i;return r=i=void 0,c=f,o=e.apply(V,R),o}function w(f){return c=f,l=setTimeout(k,t),d?m(f):o}function S(f){var R=f-u,V=f-c,L=t-R;return h?c0(L,s-V):L}function y(f){var R=f-u,V=f-c;return u===void 0||R>=t||R<0||h&&V>=s}function k(){var f=Bs();if(y(f))return v(f);l=setTimeout(k,S(f))}function v(f){return l=void 0,g&&r?m(f):(r=i=void 0,o)}function _(){l!==void 0&&clearTimeout(l),c=0,r=u=i=l=void 0}function A(){return l===void 0?o:v(Bs())}function x(){var f=Bs(),R=y(f);if(r=arguments,i=this,u=f,R){if(l===void 0)return w(u);if(h)return clearTimeout(l),l=setTimeout(k,t),m(u)}return l===void 0&&(l=setTimeout(k,t)),o}return x.cancel=_,x.flush=A,x}var h0="Expected a function";function p0(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(h0);return qi(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Pi(e,t,{leading:r,maxWait:t,trailing:i})}var lr=function(){return lr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},lr.apply(this,arguments)};function _p(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function Ep(e){return!e||!e.ownerDocument?document:e.ownerDocument}var Ip=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var s=i.name.match(/data-simplebar-(.+)/);if(s){var o=s[1].replace(/\W+(.)/g,function(l,u){return u.toUpperCase()});switch(i.value){case"true":r[o]=!0;break;case"false":r[o]=!1;break;case void 0:r[o]=!0;break;default:r[o]=i.value}}return r},t);return n};function Cp(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function Ap(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function Tp(e){return".".concat(e.split(" ").join("."))}var lo=!!(typeof window<"u"&&window.document&&window.document.createElement),d0=Object.freeze({__proto__:null,addClasses:Cp,canUseDOM:lo,classNamesToQuery:Tp,getElementDocument:Ep,getElementWindow:_p,getOptions:Ip,removeClasses:Ap}),ar=null,Au=null;lo&&window.addEventListener("resize",function(){Au!==window.devicePixelRatio&&(Au=window.devicePixelRatio,ar=null)});function Tu(){if(ar===null){if(typeof document>"u")return ar=0,ar;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),ar=n}return ar}var On=_p,Hs=Ep,f0=Ip,Pn=Cp,Rn=Ap,jt=Tp,Or=(function(){function e(t,n){n===void 0&&(n={});var r=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=On(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,Pn(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){Rn(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(Pn(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Rn(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var s,o;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(s=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(o=r.isWithinBounds(r.axis.y.track.rect)),(s||o)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(s&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),o&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var s,o,l,u,c,d,h,g,m,w,S;if(!(!r.draggedAxis||!r.contentWrapperEl)){var y,k=r.axis[r.draggedAxis].track,v=(o=(s=k.rect)===null||s===void 0?void 0:s[r.axis[r.draggedAxis].sizeAttr])!==null&&o!==void 0?o:0,_=r.axis[r.draggedAxis].scrollbar,A=(u=(l=r.contentWrapperEl)===null||l===void 0?void 0:l[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,x=parseInt((d=(c=r.elStyles)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].sizeAttr])!==null&&d!==void 0?d:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?y=i.pageY:y=i.pageX;var f=y-((g=(h=k.rect)===null||h===void 0?void 0:h[r.axis[r.draggedAxis].offsetAttr])!==null&&g!==void 0?g:0)-r.axis[r.draggedAxis].dragOffset;f=r.draggedAxis==="x"&&r.isRtl?((w=(m=k.rect)===null||m===void 0?void 0:m[r.axis[r.draggedAxis].sizeAttr])!==null&&w!==void 0?w:0)-_.size-f:f;var R=f/(v-_.size),V=R*(A-x);r.draggedAxis==="x"&&r.isRtl&&(V=!((S=e.getRtlHelpers())===null||S===void 0)&&S.isScrollingToNegative?-V:V),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=V}},this.onEndDrag=function(i){r.isDragging=!1;var s=Hs(r.el),o=On(r.el);i.preventDefault(),i.stopPropagation(),Rn(r.el,r.classNames.dragging),r.onStopScrolling(),s.removeEventListener("mousemove",r.drag,!0),s.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=o.setTimeout(function(){s.removeEventListener("click",r.preventClick,!0),s.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=lr(lr({},e.defaultOptions),n),this.classNames=lr(lr({},e.defaultOptions.classNames),n.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=p0(this._onMouseMove,64),this.onWindowResize=Pi(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Pi(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Pi(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 n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),s=e.getOffset(r);n.scrollLeft=-999;var o=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==s.left,isScrollingToNegative:s.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:Tu()}catch{return Tu()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=Hs(t),i=On(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){lo&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(jt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(jt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(jt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(jt(this.classNames.offset)),this.maskEl=this.el.querySelector(jt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,jt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(jt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(jt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(jt(this.classNames.track)).concat(jt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(jt(this.classNames.track)).concat(jt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(jt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(jt(this.classNames.scrollbar)))||null,this.options.autoHide||(Pn(this.axis.x.scrollbar.el,this.classNames.visible),Pn(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=On(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),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,s=r.ResizeObserver||ResizeObserver;this.resizeObserver=new s(function(){i&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.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=On(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,s=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,l=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=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||c,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var d=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&c>n,this.axis.y.isOverflowing=u>d,this.axis.x.isOverflowing=o==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=l==="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,g=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>s-g,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 n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],s=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,o=s/i,l;return l=Math.max(~~(o*s),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(l=Math.min(l,this.options.scrollbarMaxSize)),l},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var s=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!s.el||!this.elStyles)){var o=this.contentWrapperEl[this.axis[t].scrollSizeAttr],l=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[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&&!((r=e.getRtlHelpers())===null||r===void 0)&&r.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=~~((l-s.size)*d);h=t==="x"&&this.isRtl?-h+(l-s.size):h,s.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 n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.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?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Pn(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&&(Rn(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 n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),Pn(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Pn(n.scrollbar.el,this.classNames.hover):Rn(n.scrollbar.el,this.classNames.hover)):(Rn(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Rn(this.axis[t].track.el,this.classNames.hover),Rn(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y"),this.isDragging=!0;var i=Hs(this.el),s=On(this.el),o=this.axis[n].scrollbar,l=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=l-(((r=o.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Pn(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)):(s.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,i,s,o,l;n===void 0&&(n="y");var u=this.axis[n];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var c=On(this.el);this.axis[n].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var d=this.axis[n].scrollbar,h=(s=(i=d.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&s!==void 0?s:0,g=parseInt((l=(o=this.elStyles)===null||o===void 0?void 0:o[this.axis[n].sizeAttr])!==null&&l!==void 0?l:"0px",10),m=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],w=n==="y"?this.mouseY-h:this.mouseX-h,S=w<0?-1:1,y=S===-1?m-g:m+g,k=40,v=function(){r.contentWrapperEl&&(S===-1?m>y&&(m-=k,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=m,c.requestAnimationFrame(v)):m<y&&(m+=k,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=m,c.requestAnimationFrame(v)))};v()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=On(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,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[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=f0,e.helpers=d0,e})(),Wt=function(){return Wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Wt.apply(this,arguments)};function g0(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var uo=bt.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,s=g0(e,["children","scrollableNodeProps"]),o=bt.useRef(),l=bt.useRef(),u=bt.useRef(),c={},d={};Object.keys(s).forEach(function(m){Object.prototype.hasOwnProperty.call(Or.defaultOptions,m)?c[m]=s[m]:d[m]=s[m]});var h=Wt(Wt({},Or.defaultOptions.classNames),c.classNames),g=Wt(Wt({},i),{className:"".concat(h.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:c.tabIndex||Or.defaultOptions.tabIndex,role:"region","aria-label":c.ariaLabel||Or.defaultOptions.ariaLabel});return bt.useEffect(function(){var m;return l.current=g.ref?g.ref.current:l.current,o.current&&(m=new Or(o.current,Wt(Wt(Wt({},c),l.current&&{scrollableNode:l.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(m):t&&(t.current=m)),function(){m==null||m.unMount(),m=null,typeof t=="function"&&t(null)}},[]),bt.createElement("div",Wt({"data-simplebar":"init",ref:o},d),bt.createElement("div",{className:h.wrapper},bt.createElement("div",{className:h.heightAutoObserverWrapperEl},bt.createElement("div",{className:h.heightAutoObserverEl})),bt.createElement("div",{className:h.mask},bt.createElement("div",{className:h.offset},typeof n=="function"?n({scrollableNodeRef:l,scrollableNodeProps:Wt(Wt({},g),{ref:l}),contentNodeRef:u,contentNodeProps:{className:h.contentEl,ref:u}}):bt.createElement("div",Wt({},g),bt.createElement("div",{className:h.contentEl},n)))),bt.createElement("div",{className:h.placeholder})),bt.createElement("div",{className:"".concat(h.track," ").concat(h.horizontal)},bt.createElement("div",{className:h.scrollbar})),bt.createElement("div",{className:"".concat(h.track," ").concat(h.vertical)},bt.createElement("div",{className:h.scrollbar})))});uo.displayName="SimpleBar";const Np=D.forwardRef(({size:e="md",color:t="primary",isInvalid:n=!1,isDisabled:r=!1,isReadOnly:i=!1,className:s,children:o,...l},u)=>{const[c,d]=D.useState(!1),[h,g]=D.useState(!1),m={size:e,color:n?"negative":t,isInvalid:n,isDisabled:r,isReadOnly:i,hasMessage:c,setHasMessage:d,hasArea:h,setHasArea:g};return C.jsx(wp.Provider,{value:m,children:C.jsx("div",{ref:u,"data-qui":"Input",className:de(Dv(),s),...l,children:o})})}),Op=D.forwardRef(({className:e,children:t,...n},r)=>{const{size:i,color:s,isDisabled:o,isReadOnly:l,hasMessage:u,hasArea:c,isInvalid:d}=Yr();return C.jsx("div",{ref:r,"data-qui":"InputGroup",className:de(Lv({size:i,color:s,isDisabled:o,isReadOnly:l,hasMessage:u,hasArea:c,isInvalid:d}),e),...n,children:t})}),Pp=D.forwardRef(({className:e,...t},n)=>{const{size:r,color:i,isInvalid:s,isDisabled:o,isReadOnly:l}=Yr(),{isDisabled:u,isReadOnly:c,...d}=t;return C.jsx("input",{ref:n,disabled:o||u,readOnly:c||l||!1,"aria-invalid":s,className:de(Vv({size:r,color:i}),e),...d})}),Rp=D.forwardRef(({className:e,autoHeight:t,...n},r)=>{const{size:i,color:s,isInvalid:o,isDisabled:l,setHasArea:u}=Yr(),c=D.useRef(null),d=r||c,h=D.useRef(null);D.useEffect(()=>(u(!0),()=>{u(!1)}),[u]);const g=D.useCallback(()=>{if(c.current){const v=c.current;v.style.height="auto",v.style.height=`${v.scrollHeight}px`}},[]),m=v=>{var _;g(),(_=n.onInput)==null||_.call(n,v)};D.useEffect(()=>{g()},[g,n.value]),D.useEffect(()=>{t&&h.current&&h.current.style.removeProperty("height")},[t]);const w=v=>{v.preventDefault();const _=h.current;if(!_)return;const A=v.clientY,x=_.offsetHeight,f=V=>{const L=x+(V.clientY-A);L>30&&(_.style.height=L+"px")},R=()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",R)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",R)},{isDisabled:S,isReadOnly:y,...k}=n;return C.jsxs("div",{ref:h,className:de("w-full relative",!t&&"h-[120px]"),children:[t?C.jsx("textarea",{ref:d,rows:1,className:de(_u({size:i,color:s}),e),disabled:l||S,onInput:m,readOnly:y||!1,"aria-invalid":o,style:{overflow:"hidden"},...k}):C.jsx(uo,{style:{height:"100%"},children:C.jsx("textarea",{ref:d,rows:1,className:de(_u({size:i,color:s}),e),disabled:l||S,onInput:m,readOnly:y||!1,"aria-invalid":o,style:{height:"auto",overflow:"hidden",width:"100%"},...k})}),!t&&C.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:w,children:C.jsx(Ex,{})})]})}),m0=D.forwardRef(({isAction:e=!1,className:t,isDisabled:n=!1,style:r,children:i,...s},o)=>{const{size:l,color:u,isDisabled:c}=Yr(),d=n||c,h=Mv({size:l,color:u,isDisabled:d,isAction:e});return C.jsx("div",{ref:o,"data-qui":"InputIcon",className:de(h,t),style:r,role:e||s.onClick?"button":void 0,tabIndex:(e||s.onClick)&&!d?0:void 0,"aria-disabled":d,...s,children:i})}),Dp=D.forwardRef(({icon:e,className:t,children:n,...r},i)=>{const{size:s,color:o,setHasMessage:l,isDisabled:u}=Yr();return D.useEffect(()=>(l(!0),()=>{l(!1)}),[l]),C.jsxs("div",{ref:i,"data-qui":"InputMessage",role:"alert",className:de(jv({size:s,color:o,isDisabled:u}),t),...r,children:[e!==void 0&&C.jsx("div",{className:de(Fv({size:s}),t),children:e}),C.jsx("p",{children:n})]})});Np.displayName="InputRoot";Op.displayName="InputGroup";Pp.displayName="InputField";Rp.displayName="InputArea";m0.displayName="InputIcon";Dp.displayName="InputMessage";const sn={Root:Np,Group:Op,Field:Pp,Area:Rp,Message:Dp},Hr={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"}},x0=({color:e})=>de("h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",Hr[e].container,Hr[e].icon),v0=({color:e})=>de("text-xs font-medium leading-3",Hr[e].text),b0=({color:e})=>de("p-0.5 rounded cursor-pointer",Hr[e].button,Hr[e].icon),At=({label:e,color:t="primary",position:n="up",showCloseButton:r=!1,icon:i,children:s,delay:o=2e3,trigger:l="hover",className:u})=>{const[c,d]=D.useState(!1),[h,g]=D.useState(!1),[m,w]=D.useState({position:n,transform:""}),S=D.useRef(null),y=D.useRef(null),k=D.useRef(null),v=D.useCallback(()=>{if(!S.current||!y.current)return;const L=S.current.getBoundingClientRect(),N=y.current.getBoundingClientRect(),$=window.innerWidth,U=window.innerHeight,J=window.scrollX,Y=window.scrollY,Q=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,$),Z=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,U),q=4;let K=n,ie={position:K,transform:""};const E=B=>{const{top:z,left:W,width:F,height:te}=L,ee=z+Y,ne=W+J;switch(B){case"up":return{top:`${ee-N.height-q}px`,left:`${ne+F/2}px`,transform:"translateX(-50%)"};case"up-start":return{top:`${ee-N.height-q}px`,left:`${ne}px`,transform:"translateX(0)"};case"up-end":return{top:`${ee-N.height-q}px`,left:`${ne+F-N.width}px`,transform:"translateX(0)"};case"down":return{top:`${ee+te+q}px`,left:`${ne+F/2}px`,transform:"translateX(-50%)"};case"down-start":return{top:`${ee+te+q}px`,left:`${ne}px`,transform:"translateX(0)"};case"down-end":return{top:`${ee+te+q}px`,left:`${ne+F-N.width}px`,transform:"translateX(0)"};case"left":return{top:`${ee+te/2}px`,left:`${ne-N.width-q}px`,transform:"translateY(-50%)"};case"left-start":return{top:`${ee}px`,left:`${ne-N.width-q}px`,transform:"translateY(0)"};case"left-end":return{top:`${ee+te-N.height}px`,left:`${ne-N.width-q}px`,transform:"translateY(0)"};case"right":return{top:`${ee+te/2}px`,left:`${ne+F+q}px`,transform:"translateY(-50%)"};case"right-start":return{top:`${ee}px`,left:`${ne+F+q}px`,transform:"translateY(0)"};case"right-end":return{top:`${ee+te-N.height}px`,left:`${ne+F+q}px`,transform:"translateY(0)"};default:return{}}},M={up:{fits:L.top-N.height-q>=0},"up-start":{fits:L.top-N.height-q>=0&&L.left+N.width<=$},"up-end":{fits:L.top-N.height-q>=0&&L.right-N.width>=0},down:{fits:L.bottom+N.height+q<=U&&L.bottom+N.height+q<=Z},"down-start":{fits:L.bottom+N.height+q<=U&&L.bottom+N.height+q<=Z&&L.left+N.width<=$},"down-end":{fits:L.bottom+N.height+q<=U&&L.bottom+N.height+q<=Z&&L.right-N.width>=0},left:{fits:L.left-N.width-q>=0},"left-start":{fits:L.left-N.width-q>=0&&L.top+N.height<=U},"left-end":{fits:L.left-N.width-q>=0&&L.bottom-N.height>=0},right:{fits:L.right+N.width+q<=$&&L.right+N.width+q<=Q},"right-start":{fits:L.right+N.width+q<=$&&L.right+N.width+q<=Q&&L.top+N.height<=U},"right-end":{fits:L.right+N.width+q<=$&&L.right+N.width+q<=Q&&L.bottom-N.height>=0}},H=L.left+L.width/2-N.width/2,T=L.left+L.width/2+N.width/2;if((n==="up"||n==="down")&&(H<0||T>$)&&(M[n].fits=!1),M[n].fits){const B=E(n);ie={position:n,...B,transform:B.transform||""}}else{const B=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(z=>M[z].fits);if(B){K=B;const z=E(B);ie={position:K,...z,transform:z.transform||""}}else{const z={up:L.top,"up-start":L.top,"up-end":L.top,down:Math.min(U-L.bottom,Z-L.bottom),"down-start":Math.min(U-L.bottom,Z-L.bottom),"down-end":Math.min(U-L.bottom,Z-L.bottom),left:L.left,"left-start":L.left,"left-end":L.left,right:Math.min($-L.right,Q-L.right),"right-start":Math.min($-L.right,Q-L.right),"right-end":Math.min($-L.right,Q-L.right)},W=Object.entries(z).reduce((te,[ee,ne])=>ne>te.space?{position:ee,space:ne}:te,{position:"up",space:0}).position;K=W;const F=E(W);ie={position:K,...F,transform:F.transform||""}}}w(ie)},[n]),_=()=>{l==="click"&&(d(!0),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{h||d(!1)},o))},A=L=>{L.stopPropagation(),d(!1),k.current&&clearTimeout(k.current)},x=()=>{g(!0),k.current&&clearTimeout(k.current)},f=()=>{g(!1),c&&(k.current=setTimeout(()=>{d(!1)},o))},R=()=>{l==="hover"&&d(!0)},V=()=>{l==="hover"&&d(!1)};return D.useEffect(()=>{if(c){const L=requestAnimationFrame(()=>{v()});return()=>cancelAnimationFrame(L)}},[c,e,v]),D.useEffect(()=>{if(c){const L=setTimeout(()=>v(),0);return()=>clearTimeout(L)}},[c,v]),D.useEffect(()=>{const L=()=>{c&&v()},N=()=>{c&&v()};return window.addEventListener("resize",L),window.addEventListener("scroll",N,!0),()=>{window.removeEventListener("resize",L),window.removeEventListener("scroll",N,!0),k.current&&clearTimeout(k.current)}},[c,v]),C.jsxs(C.Fragment,{children:[C.jsx("div",{"data-qui":"Tooltip",ref:S,onClick:_,onMouseEnter:R,onMouseLeave:V,className:de("relative inline-flex items-center",u),children:s}),c&&!!e&&ro.createPortal(C.jsxs("div",{ref:y,role:"tooltip",className:x0({color:t}),style:{position:"absolute",left:m.left??0,top:m.top??0,transform:m.transform,zIndex:1e3,visibility:m.left?"visible":"hidden"},onMouseEnter:x,onMouseLeave:f,children:[i&&C.jsx("span",{children:i}),C.jsx("p",{className:v0({color:t}),children:e}),r&&C.jsx("div",{onClick:A,className:b0({color:t}),role:"button",children:C.jsx(xs,{})})]}),document.body)]})};var Nu;(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"})(Nu||(Nu={}));const y0=Object.freeze({x:0,y:0});var ur;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(ur||(ur={}));var Ou;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ou||(Ou={}));var Xt;(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"})(Xt||(Xt={}));Xt.Space,Xt.Enter,Xt.Esc,Xt.Space,Xt.Enter,Xt.Tab;var Pu;(function(e){e[e.RightClick=2]="RightClick"})(Pu||(Pu={}));var Ru;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Ru||(Ru={}));var Du;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Du||(Du={}));ur.Backward+"",ur.Forward+"",ur.Backward+"",ur.Forward+"";var Da;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Da||(Da={}));var La;(function(e){e.Optimized="optimized"})(La||(La={}));Da.WhileDragging,La.Optimized;({...y0});var Lu;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Lu||(Lu={}));Xt.Down,Xt.Right,Xt.Up,Xt.Left;const Lp={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"}},w0={primary:{active:{bg:"bg-primary",text:"text-tab-active-fg",border:"border-primary"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-primary-hover",text:"hover:text-tab-active-fg"}},positive:{active:{bg:"bg-positive-500",text:"text-gray-50",border:"border-positive-500"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-positive-600",text:"hover:text-gray-50"}},negative:{active:{bg:"bg-negative-400",text:"text-gray-50",border:"border-negative-400"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-negative-600",text:"hover:text-gray-50"}},warning:{active:{bg:"bg-warning-500",text:"text-gray-50",border:"border-warning-500"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-warning-600",text:"hover:text-gray-50"}}},k0=(e,t,n,r)=>{const i=w0[e],s=Lp[t],o="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return r?de(o,s.padding,s.text,s.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):n?de(o,s.padding,s.text,s.gap,i.active.bg,i.active.text,"shadow-xs"):de(o,s.padding,s.text,s.gap,i.inactive.bg,i.inactive.text,i.hover.bg,i.hover.text)},S0=(e,t)=>de("flex items-center justify-center",Lp[e].icon,{"opacity-50":t}),_0=()=>de("whitespace-nowrap"),Vp=(e,t)=>{const n=de("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return e&&!t?de(n,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):t&&!e?de(n,"border border-transparent bg-tab-inactive-bg text-inactive-text"):de(n,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},E0=D.createContext(void 0),I0=D.forwardRef(({value:e,label:t,icon:n,disabled:r,children:i,className:s,onClick:o,active:l,content:u,...c},d)=>{const h=D.useContext(E0);if(!h)return null;const{activeTab:g,onTabChange:m,variant:w,color:S,size:y,showIcons:k,disabled:v}=h,_=l!==void 0?l:g===e,A=r||v,x=f=>{A||(m(e),o==null||o(f))};return w==="file"?C.jsx("div",{"data-qui":"FileTabItem",className:de(Vp(_,!1),"cursor-pointer",s),onClick:f=>!A&&x(f),children:i||C.jsx(C.Fragment,{children:C.jsxs("span",{className:"flex items-center gap-2",children:[n,C.jsx("span",{children:t})]})})}):C.jsxs("button",{ref:d,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":_,"aria-disabled":A,className:de(k0(S,y,_,A||!1),s),onClick:x,disabled:A,...c,children:[k&&n&&C.jsx("span",{className:S0(y,A||!1),children:n}),C.jsx("span",{className:_0(),children:i||t})]})});I0.displayName="TabItem";const C0=D.forwardRef(({isActive:e=!1,isDesactive:t=!1,children:n,...r},i)=>C.jsx("div",{"data-qui":"TabNavContainer",className:Vp(e,t),ref:i,...r,children:n}));C0.displayName="TabNavContainer";var gt=function(){return gt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},gt.apply(this,arguments)},Vu={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Mu={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},pi={width:"20px",height:"20px",position:"absolute",zIndex:1},A0={top:gt(gt({},Vu),{top:"-5px"}),right:gt(gt({},Mu),{left:void 0,right:"-5px"}),bottom:gt(gt({},Vu),{top:void 0,bottom:"-5px"}),left:gt(gt({},Mu),{left:"-5px"}),topRight:gt(gt({},pi),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:gt(gt({},pi),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:gt(gt({},pi),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:gt(gt({},pi),{left:"-10px",top:"-10px",cursor:"nw-resize"})},T0=D.memo(function(e){var t=e.onResizeStart,n=e.direction,r=e.children,i=e.replaceStyles,s=e.className,o=D.useCallback(function(c){t(c,n)},[t,n]),l=D.useCallback(function(c){t(c,n)},[t,n]),u=D.useMemo(function(){return gt(gt({position:"absolute",userSelect:"none"},A0[n]),i??{})},[i,n]);return C.jsx("div",{className:s||void 0,style:u,onMouseDown:o,onTouchStart:l,children:r})}),N0=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),hn=function(){return hn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},hn.apply(this,arguments)},O0={width:"auto",height:"auto"},di=function(e,t,n){return Math.max(Math.min(e,n),t)},ju=function(e,t,n){var r=Math.round(e/t);return r*t+n*(r-1)},ir=function(e,t){return new RegExp(e,"i").test(t)},fi=function(e){return!!(e.touches&&e.touches.length)},P0=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Fu=function(e,t,n){n===void 0&&(n=0);var r=t.reduce(function(s,o,l){return Math.abs(o-e)<Math.abs(t[s]-e)?l:s},0),i=Math.abs(t[r]-e);return n===0||i<n?t[r]:e},$s=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")},gi=function(e,t,n,r){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 n*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return r*i}}return e},R0=function(e,t,n,r,i,s,o){return r=gi(r,e.width,t,n),i=gi(i,e.height,t,n),s=gi(s,e.width,t,n),o=gi(o,e.height,t,n),{maxWidth:typeof r>"u"?void 0:Number(r),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof s>"u"?void 0:Number(s),minHeight:typeof o>"u"?void 0:Number(o)}},D0=function(e){return Array.isArray(e)?e:[e,e]},L0=["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"],zu="__resizable_base__",V0=(function(e){N0(t,e);function t(n){var r,i,s,o,l=e.call(this,n)||this;return l.ratio=1,l.resizable=null,l.parentLeft=0,l.parentTop=0,l.resizableLeft=0,l.resizableRight=0,l.resizableTop=0,l.resizableBottom=0,l.targetLeft=0,l.targetTop=0,l.delta={width:0,height:0},l.appendBase=function(){if(!l.resizable||!l.window)return null;var u=l.parentNode;if(!u)return null;var c=l.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(zu):c.className+=zu,u.appendChild(c),c},l.removeBase=function(u){var c=l.parentNode;c&&c.removeChild(u)},l.state={isResizing:!1,width:(i=(r=l.propsSize)===null||r===void 0?void 0:r.width)!==null&&i!==void 0?i:"auto",height:(o=(s=l.propsSize)===null||s===void 0?void 0:s.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},l.onResizeStart=l.onResizeStart.bind(l),l.onMouseMove=l.onMouseMove.bind(l),l.onMouseUp=l.onMouseUp.bind(l),l}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||O0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var n=0,r=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,s=this.resizable.offsetHeight,o=this.resizable.style.position;o!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,r=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:s,this.resizable.style.position=o}return{width:n,height:r}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var n=this,r=this.props.size,i=function(l){var u;if(typeof n.state[l]>"u"||n.state[l]==="auto")return"auto";if(n.propsSize&&n.propsSize[l]&&!((u=n.propsSize[l])===null||u===void 0)&&u.toString().endsWith("%")){if(n.state[l].toString().endsWith("%"))return n.state[l].toString();var c=n.getParentSize(),d=Number(n.state[l].toString().replace("px","")),h=d/c[l]*100;return"".concat(h,"%")}return $s(n.state[l])},s=r&&typeof r.width<"u"&&!this.state.isResizing?$s(r.width):i("width"),o=r&&typeof r.height<"u"&&!this.state.isResizing?$s(r.height):i("height");return{width:s,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 n=this.appendBase();if(!n)return{width:0,height:0};var r=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(r=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var s={width:n.offsetWidth,height:n.offsetHeight};return r&&(this.parentNode.style.flexWrap=i),this.removeBase(n),s},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 n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(n,r){var i=this.propsSize&&this.propsSize[r];return this.state[r]==="auto"&&this.state.original[r]===n&&(typeof i>"u"||i==="auto")?"auto":n},t.prototype.calculateNewMaxFromBoundary=function(n,r){var i=this.props.boundsByDirection,s=this.state.direction,o=i&&ir("left",s),l=i&&ir("top",s),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=l?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=l?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=l?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(n=n&&n<u?n:u),c&&Number.isFinite(c)&&(r=r&&r<c?r:c),{maxWidth:n,maxHeight:r}},t.prototype.calculateNewSizeFromDirection=function(n,r){var i=this.props.scale||1,s=D0(this.props.resizeRatio||1),o=s[0],l=s[1],u=this.state,c=u.direction,d=u.original,h=this.props,g=h.lockAspectRatio,m=h.lockAspectRatioExtraHeight,w=h.lockAspectRatioExtraWidth,S=d.width,y=d.height,k=m||0,v=w||0;return ir("right",c)&&(S=d.width+(n-d.x)*o/i,g&&(y=(S-v)/this.ratio+k)),ir("left",c)&&(S=d.width-(n-d.x)*o/i,g&&(y=(S-v)/this.ratio+k)),ir("bottom",c)&&(y=d.height+(r-d.y)*l/i,g&&(S=(y-k)*this.ratio+v)),ir("top",c)&&(y=d.height-(r-d.y)*l/i,g&&(S=(y-k)*this.ratio+v)),{newWidth:S,newHeight:y}},t.prototype.calculateNewSizeFromAspectRatio=function(n,r,i,s){var o=this.props,l=o.lockAspectRatio,u=o.lockAspectRatioExtraHeight,c=o.lockAspectRatioExtraWidth,d=typeof s.width>"u"?10:s.width,h=typeof i.width>"u"||i.width<0?n:i.width,g=typeof s.height>"u"?10:s.height,m=typeof i.height>"u"||i.height<0?r:i.height,w=u||0,S=c||0;if(l){var y=(g-w)*this.ratio+S,k=(m-w)*this.ratio+S,v=(d-S)/this.ratio+w,_=(h-S)/this.ratio+w,A=Math.max(d,y),x=Math.min(h,k),f=Math.max(g,v),R=Math.min(m,_);n=di(n,A,x),r=di(r,f,R)}else n=di(n,d,h),r=di(r,g,m);return{newWidth:n,newHeight:r}},t.prototype.setBoundingClientRect=function(){var n=1/(this.props.scale||1);if(this.props.bounds==="parent"){var r=this.parentNode;if(r){var i=r.getBoundingClientRect();this.parentLeft=i.left*n,this.parentTop=i.top*n}}if(this.props.bounds&&typeof this.props.bounds!="string"){var s=this.props.bounds.getBoundingClientRect();this.targetLeft=s.left*n,this.targetTop=s.top*n}if(this.resizable){var o=this.resizable.getBoundingClientRect(),l=o.left,u=o.top,c=o.right,d=o.bottom;this.resizableLeft=l*n,this.resizableRight=c*n,this.resizableTop=u*n,this.resizableBottom=d*n}},t.prototype.onResizeStart=function(n,r){if(!(!this.resizable||!this.window)){var i=0,s=0;if(n.nativeEvent&&P0(n.nativeEvent)?(i=n.nativeEvent.clientX,s=n.nativeEvent.clientY):n.nativeEvent&&fi(n.nativeEvent)&&(i=n.nativeEvent.touches[0].clientX,s=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var o=this.props.onResizeStart(n,r,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 l,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",l=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var h={original:{x:i,y:s,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:hn(hn({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:r,flexBasis:l};this.setState(h)}},t.prototype.onMouseMove=function(n){var r=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&fi(n))try{n.preventDefault(),n.stopPropagation()}catch{}var i=this.props,s=i.maxWidth,o=i.maxHeight,l=i.minWidth,u=i.minHeight,c=fi(n)?n.touches[0].clientX:n.clientX,d=fi(n)?n.touches[0].clientY:n.clientY,h=this.state,g=h.direction,m=h.original,w=h.width,S=h.height,y=this.getParentSize(),k=R0(y,this.window.innerWidth,this.window.innerHeight,s,o,l,u);s=k.maxWidth,o=k.maxHeight,l=k.minWidth,u=k.minHeight;var v=this.calculateNewSizeFromDirection(c,d),_=v.newHeight,A=v.newWidth,x=this.calculateNewMaxFromBoundary(s,o);this.props.snap&&this.props.snap.x&&(A=Fu(A,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(_=Fu(_,this.props.snap.y,this.props.snapGap));var f=this.calculateNewSizeFromAspectRatio(A,_,{width:x.maxWidth,height:x.maxHeight},{width:l,height:u});if(A=f.newWidth,_=f.newHeight,this.props.grid){var R=ju(A,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),V=ju(_,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),L=this.props.snapGap||0,N=L===0||Math.abs(R-A)<=L?R:A,$=L===0||Math.abs(V-_)<=L?V:_;A=N,_=$}var U={width:A-m.width,height:_-m.height};if(this.delta=U,w&&typeof w=="string"){if(w.endsWith("%")){var J=A/y.width*100;A="".concat(J,"%")}else if(w.endsWith("vw")){var Y=A/this.window.innerWidth*100;A="".concat(Y,"vw")}else if(w.endsWith("vh")){var Q=A/this.window.innerHeight*100;A="".concat(Q,"vh")}}if(S&&typeof S=="string"){if(S.endsWith("%")){var J=_/y.height*100;_="".concat(J,"%")}else if(S.endsWith("vw")){var Y=_/this.window.innerWidth*100;_="".concat(Y,"vw")}else if(S.endsWith("vh")){var Q=_/this.window.innerHeight*100;_="".concat(Q,"vh")}}var Z={width:this.createSizeForCssProperty(A,"width"),height:this.createSizeForCssProperty(_,"height")};this.flexDir==="row"?Z.flexBasis=Z.width:this.flexDir==="column"&&(Z.flexBasis=Z.height);var q=this.state.width!==Z.width,K=this.state.height!==Z.height,ie=this.state.flexBasis!==Z.flexBasis,E=q||K||ie;E&&ro.flushSync(function(){r.setState(Z)}),this.props.onResize&&E&&this.props.onResize(n,g,this.resizable,U)}},t.prototype.onMouseUp=function(n){var r,i,s=this.state,o=s.isResizing,l=s.direction;s.original,!(!o||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(n,l,this.resizable,this.delta),this.props.size&&this.setState({width:(r=this.props.size.width)!==null&&r!==void 0?r:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:hn(hn({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(n){var r,i;this.setState({width:(r=n.width)!==null&&r!==void 0?r:"auto",height:(i=n.height)!==null&&i!==void 0?i:"auto"})},t.prototype.renderResizer=function(){var n=this,r=this.props,i=r.enable,s=r.handleStyles,o=r.handleClasses,l=r.handleWrapperStyle,u=r.handleWrapperClass,c=r.handleComponent;if(!i)return null;var d=Object.keys(i).map(function(h){return i[h]!==!1?C.jsx(T0,{direction:h,onResizeStart:n.onResizeStart,replaceStyles:s&&s[h],className:o&&o[h],children:c&&c[h]?c[h]:null},h):null});return C.jsx("div",{className:u,style:l,children:d})},t.prototype.render=function(){var n=this,r=Object.keys(this.props).reduce(function(o,l){return L0.indexOf(l)!==-1||(o[l]=n.props[l]),o},{}),i=hn(hn(hn({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 s=this.props.as||"div";return C.jsxs(s,hn({style:i,className:this.props.className},r,{ref:function(o){o&&(n.resizable=o)},children:[this.state.isResizing&&C.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})(D.PureComponent);const M0={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},j0={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},Mp=({depth:e=0,className:t,borderType:n,disabled:r})=>de("transition-colors duration-200",{"text-body":!r,"text-inactive-text":r},n?j0[n]:"border-panel-border",M0[e],t),F0=e=>{if(!e)return{};const t={},n=e.match(/min-w-\[(\d+)px\]/);n&&(t.minWidth=parseInt(n[1],10));const r=e.match(/max-w-\[(\d+)px\]/);r&&(t.maxWidth=parseInt(r[1],10));const i=e.match(/min-h-\[(\d+)px\]/);i&&(t.minHeight=parseInt(i[1],10));const s=e.match(/max-h-\[(\d+)px\]/);return s&&(t.maxHeight=parseInt(s[1],10)),t},z0=D.forwardRef(({children:e,width:t,height:n,minWidth:r=10,minHeight:i=10,maxWidth:s,maxHeight:o,defaultWidth:l,defaultHeight:u,defaultSize:c,size:d,grid:h,snap:g,lockAspectRatio:m=!1,enable:w,handleStyles:S={},handleClasses:y={},handleComponent:k={},style:v={},className:_,onResizeStart:A,onResize:x,onResizeStop:f,scale:R=1,bounds:V,snapGap:L,as:N="div",depth:$,disabled:U},J)=>{const Y=Mp({depth:$,className:_,disabled:U}),Q=F0(_),Z=d?{size:d}:t!==void 0||n!==void 0?{size:{width:t??"auto",height:n??"auto"}}:{},q=c?{defaultSize:c}:l!==void 0||u!==void 0?{defaultSize:{width:l??"auto",height:u??"auto"}}:{},K=D.useRef(null);return D.useImperativeHandle(J,()=>{var ie;return(ie=K.current)==null?void 0:ie.resizable}),C.jsx(V0,{"data-qui":"Resizable",ref:K,...Z,...q,minWidth:r??Q.minWidth,minHeight:i??Q.minHeight,maxWidth:s??Q.maxWidth,maxHeight:o??Q.maxHeight,grid:h,snap:g,lockAspectRatio:m,enable:w,handleStyles:S,handleClasses:y,handleComponent:k,style:v,className:de("relative box-border",Y),onResizeStart:A,onResize:x,onResizeStop:f,scale:R,bounds:V,snapGap:L,as:N,children:e})});z0.displayName="Resizable";const sr={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"}},mi={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"}},B0=(e,t,n,r,i,s)=>({container:de("inline-flex items-center",sr[e].gap,s),track:de("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",sr[e].track,{[mi[t].bg]:n&&!r&&!i,"bg-input-bg":!n&&!r||i,"bg-panel cursor-not-allowed":r,"cursor-pointer":!r}),thumb:de("bg-input-text pointer-events-none inline-flex items-center justify-center shadow-xs","transition-all duration-200 ease-in-out","rounded-full absolute",sr[e].thumb,n?sr[e].thumbChecked:sr[e].thumbUnchecked,{[mi[t].thumb]:!r,"bg-canvas-subtle":r}),iconLeft:de("flex items-center justify-center z-10 w-1/2 p-0.5",{[mi[t].icon]:!n&&!r,"text-panel-subtle":r||n}),iconRight:de("flex items-center justify-center z-10 w-1/2 p-0.5",{[mi[t].icon]:n&&!r,"text-panel-subtle":r||!n}),label:de("font-medium text-body",sr[e].label,{"cursor-pointer":!r,"cursor-not-allowed text-muted":r})}),jp=D.forwardRef(({label:e,checked:t,defaultChecked:n=!1,disabled:r=!1,size:i="md",color:s="primary",icons:o,onChange:l,className:u,id:c,name:d,...h},g)=>{const[m,w]=D.useState(n),S=t!==void 0,y=S?t:m,k=()=>{const _=!y;S||w(_),l==null||l(_)},v=B0(i,s,y,r,!!o,u);return C.jsxs("div",{"data-qui":"Toggle",className:v.container,children:[e&&C.jsx("label",{htmlFor:c,className:v.label,children:e}),C.jsxs("button",{ref:g,...h,type:"button",role:"switch","aria-checked":y,"aria-label":e,disabled:r,onClick:k,name:d,id:c,className:v.track,children:[o&&C.jsx("span",{className:v.iconLeft,children:o.unchecked}),C.jsx("span",{className:v.thumb,"aria-hidden":"true"}),o&&C.jsx("span",{className:v.iconRight,children:o.checked})]})]})});jp.displayName="Toggle";D.createContext(null);const br=D.forwardRef(({depth:e=0,className:t,children:n,borderType:r,disabled:i,...s},o)=>{const l=Mp({depth:e,className:t,borderType:r,disabled:i});return C.jsx("div",{"data-qui":"Panel",ref:o,className:l,"aria-disabled":i,...s,children:n})});br.displayName="Panel";const vs={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"}},Ri={primary:{bg:"bg-primary",text:"text-body",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-body"},positive:{bg:"bg-positive",text:"text-body",border:"border-positive",buttonHover:"hover:bg-positive-hover"},warning:{bg:"bg-warning",text:"text-body",border:"border-warning",buttonHover:"hover:bg-warning-hover"},negative:{bg:"bg-negative",text:"text-body",border:"border-negative",buttonHover:"hover:bg-negative-hover"}},H0=(e,t)=>de("inline-flex items-center justify-center font-medium border",vs[e].container,Ri[t].bg,Ri[t].text,Ri[t].border),$0=(e,t,n)=>de({[vs[e].icon]:!n,"bg-canvas-default outline-canvas-default text-primary":n&&t!=="white"||n,"bg-primary outline-primary text-body":n&&t==="white"&&!n,"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":n||n}),W0=e=>de(vs[e].text),Fp=(e,t)=>de("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",vs[e].iconButton,Ri[t].buttonHover),zp=D.createContext(null),bs=()=>{const e=D.useContext(zp);if(!e)throw new Error("Pill components must be used within a Pill.Root");return e},co=D.forwardRef(({size:e="md",color:t="primary",className:n,children:r,...i},s)=>{const o={size:e,color:t};return C.jsx(zp.Provider,{value:o,children:C.jsx("div",{"data-qui":"Pill",ref:s,className:de(H0(e,t),n),...i,children:r})})});co.displayName="Pill.Root";const ho=D.forwardRef(({className:e,children:t,...n},r)=>{const{size:i}=bs();return C.jsx("span",{ref:r,className:de(W0(i),e),...n,children:t})});ho.displayName="Pill.Text";const po=D.forwardRef(({className:e,children:t,label:n,position:r,...i},s)=>{const{size:o,color:l}=bs(),u=!!n,c=C.jsx("span",{ref:s,className:de($0(o,l,u),e),...i,children:t});return u?C.jsx(At,{label:n||"",position:r||"up",children:c}):c});po.displayName="Pill.Icon";const Bp=D.forwardRef(({className:e,children:t,...n},r)=>{const{size:i,color:s}=bs();return C.jsx("button",{ref:r,type:"button",className:de(Fp(i,s),e),...n,children:t})});Bp.displayName="Pill.Button";const fo=D.forwardRef(({className:e,onClose:t,"aria-label":n="Remove pill",children:r,...i},s)=>{const{size:o,color:l}=bs();return C.jsx("button",{ref:s,type:"button",className:de(Fp(o,l),e),onClick:t,"aria-label":n,...i,children:r||C.jsx(xs,{})})});fo.displayName="Pill.Close";const Hp=D.forwardRef(({size:e="md",color:t="primary",label:n,icon:r,onClose:i,closable:s=!1,className:o,...l},u)=>C.jsxs(co,{ref:u,size:e,color:t,className:o,...l,children:[r&&C.jsx(po,{children:r}),C.jsx(ho,{children:n}),s&&C.jsx(fo,{onClose:i})]}));Hp.displayName="Pill";Object.assign(Hp,{Root:co,Text:ho,Icon:po,Button:Bp,Close:fo});const $p=D.createContext(null),Dt=()=>{const e=D.useContext($p);if(!e)throw new Error("Select compound components must be used within Select.Root");return e},Tt={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",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",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",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"}},ft={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 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 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 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 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"}},U0=()=>de("flex flex-col relative"),q0=({size:e,color:t,isDisabled:n,isFocused:r,isInvalid:i,hasMessage:s})=>{const o=ft[i?"negative":t];return de("flex items-center justify-between only:rounded first:rounded-t last:rounded-b",Tt[e].control,o.control,s?["ring-1",o.messageBorder]:["border",n?"border-input-border":r?o.controlFocused:`border-select-border
17
- focus-within:${o.controlFocused}`],{[o.controlDisabled]:n})},K0=({isMulti:e})=>de("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":e,"px-0.5":!e}),J0=({size:e,color:t})=>de("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 px-1 text-input-text",Tt[e].input,ft[t].placeholder),G0=({size:e,color:t})=>de("select-none truncate",Tt[e].placeholder,ft[t].placeholder),Y0=({size:e,color:t,isDisabled:n})=>de("truncate",Tt[e].singleValue,n?ft[t].singleValueDisabled:ft[t].singleValue),Q0=({size:e,color:t,isDisabled:n,isFocused:r})=>de("inline-flex items-center rounded-xs",Tt[e].multiValue,n?ft[t].multiValueDisabled:ft[t].multiValue,{"border border-white":r&&!n}),X0=({size:e})=>de("truncate",Tt[e].multiValueLabel),Z0=({size:e,color:t,isDisabled:n})=>de("flex items-center justify-center cursor-pointer transition-colors",Tt[e].multiValueRemove,ft[t].multiValueRemove),Wp=({size:e,color:t,isDisabled:n})=>de("flex items-center justify-center transition-colors rounded",Tt[e].clearIndicator,n?"hidden":[ft[t].clearIndicator,ft[t].clearIndicatorHover]),eb=({size:e,color:t,isDisabled:n})=>de("flex items-center justify-center transition-colors rounded",Tt[e].dropdownIndicator,n?"text-grey-200":[ft[t].dropdownIndicator,ft[t].dropdownIndicatorHover]),tb=({size:e,placement:t,hasMessage:n,color:r})=>{const i={auto:"top-full rounded-t-none",bottom:"top-full rounded-t-none",top:"bottom-full rounded-b-none"};return de("absolute w-full z-50 rounded overflow-hidden border border-t-0",ft[r].menu,{[ft[r].messageBorder]:n},i[t||"auto"],Tt[e].menu)},nb=({size:e})=>de("overflow-y-auto",Tt[e].menuList,ft.primary.menuList),rb=({size:e,color:t,isDisabled:n,isFocused:r,isSelected:i})=>de("transition-colors duration-150 cursor-pointer mx-1 rounded flex items-center gap-2",Tt[e].option,{[ft[t].optionDisabled]:n,[ft[t].optionSelected]:i&&!n,[ft[t].optionFocused]:r&&!i&&!n,[ft[t].option]:!i&&!r&&!n}),ib=({size:e})=>de(Tt[e].group),sb=({size:e,color:t})=>de(Tt[e].groupHeading,ft[t].groupHeading),ab=({size:e})=>de("text-grey-100",Tt[e].loadingMessage),ob=({size:e})=>de(Tt[e].noOptionsMessage,ft.primary.noOptionsMessage),Up=e=>{const t=e[0];return e.length>0&&typeof t=="object"&&t!==null&&"options"in t&&Array.isArray(t.options)},lb=e=>Up(e)?e.reduce((t,n)=>[...t,...n.options],[]):e;function Pt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Te.apply(null,arguments)}function Va(e,t){return Va=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Va(e,t)}function ub(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Va(e,t)}var xi={exports:{}},Ws={exports:{}},Ze={};/** @license React v16.13.1
16
+ `,Ev=(e,t,n)=>{const{isDisabled:r,isInvalid:i}=n;return Yn(_v,Gr[e].radio,i?Br[t].radioInvalid:{[Br[t].radio]:!r,"cursor-not-allowed opacity-60":r})},Iv=(e,t,n)=>{const{checked:r,isDisabled:i,isInvalid:s}=n;return Yn("center-absolute rounded-full transition-all duration-200 ease-in-out",Gr[e].dot,s?"bg-negative":{[Br[t].dot]:!i,"border-neutral":i,"opacity-0 scale-0":!r,"opacity-100 scale-100":r&&!i})},Cv=(e,t,n)=>Yn("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",Gr[e].hoverDot,{[Br[t].hoverDot]:!n,"bg-negative-bg":n}),Av=(e,t,n)=>{const{isDisabled:r,isInvalid:i}=n;return Yn("cursor-pointer select-none transition-colors duration-200",Gr[e].label,i?{"text-negative":i}:{[Br[t].label]:!r,"text-muted":r})},Tv=(e,t)=>Yn("inline-flex items-center group",Gr[e].container,t),Nv=()=>Yn("flex flex-col"),xp=D.createContext(null),Ov=()=>{const e=D.useContext(xp);if(!e)throw new Error("Radio.Item must be used within Radio.Group");return e},vp=({value:e,defaultValue:t,onChange:n,name:r,size:i="md",color:s="primary",isDisabled:o=!1,isInvalid:l=!1,isRequired:u=!1,className:c,children:d,...h})=>{const[g,m]=D.useState(t),w=e!==void 0,S={value:w?e:g,onChange:y=>{w||m(y),n==null||n(y)},name:r,size:i,color:s,isDisabled:o,isInvalid:l,isRequired:u};return C.jsx(xp.Provider,{value:S,children:C.jsx("div",{"data-qui":"RadioGroup",role:"radiogroup",className:de(Nv(),c),...h,children:d})})},bp=D.forwardRef(({value:e,label:t,size:n,color:r,isDisabled:i,isInvalid:s,isRequired:o,className:l,...u},c)=>{const d=Ov(),h=n??d.size,g=r??d.color,m=i??d.isDisabled,w=s??d.isInvalid,S=o??d.isRequired,y=d.value===e,k={checked:y,isDisabled:m,isInvalid:w},v=Ev(h,g,k),_=Iv(h,g,k),A=Cv(h,g,w),x=Av(h,g,k),f=Tv(h,l),R=()=>{m||d.onChange(e)};return C.jsxs("label",{"data-qui":"RadioItem",className:f,children:[C.jsxs("div",{className:"relative",children:[C.jsx("input",{ref:c,type:"radio",value:e,checked:y,disabled:m,required:S,"aria-invalid":w,"aria-label":t?void 0:u["aria-label"],name:d.name,onChange:R,className:"sr-only",...u}),C.jsxs("div",{className:v,children:[C.jsx("div",{className:_}),!y&&!m&&C.jsx("div",{className:A})]})]}),t&&C.jsxs("span",{className:x,children:[t,S&&C.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});vp.displayName="RadioGroup";bp.displayName="RadioItem";const Su={Group:vp,Item:bp},yp={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"}},Pv={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"}}},Rv=(e,t,n,r)=>{const i=yp[e],s=Pv[n],o=de("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!r},i.container);return r?de(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"}):de(o,s.bg[t],s.text[t],s.hover[t],s.border[t])},Dv=e=>de("flex items-center justify-center gap-1",yp[e].text),Rt=D.forwardRef(({size:e="md",variant:t="solid",color:n="primary",className:r,children:i,disabled:s,...o},l)=>C.jsx("button",{"data-qui":"Button",ref:l,type:"button",className:de(Rv(e,t,n,s),Dv(e),r),disabled:s,...o,children:i}));Rt.displayName="Button";const wp=D.createContext(null),Yr=()=>{const e=D.useContext(wp);if(!e)throw new Error("Input components must be used within Input.Root");return e},vr={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"}},_n={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"}},Lv=()=>de("flex flex-col relative"),Vv=({size:e,color:t,isDisabled:n,isReadOnly:r,hasMessage:i,hasArea:s,isInvalid:o})=>{const l=_n[o?"negative":t];return de("bg-input-bg flex gap-1 relative px-1 transition-all duration-200 ease-in-out only:rounded first:rounded-t last:rounded-b",l.text,i?l.borderMessage:!r&&l.border,vr[e].group,{"ring-1":i,"opacity-60":n,"items-center":!s})},Mv=({size:e,color:t})=>de("bg-transparent ring-0 w-full","focus:outline-hidden",[vr[e].input],_n[t].placeholder),_u=({size:e,color:t})=>de("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",vr[e].input,_n[t].placeholder),jv=({size:e,color:t,isDisabled:n,isAction:r})=>de("transition-colors duration-200 rounded max-h-full h-fit",vr[e].icon,e==="sm"?"m-px":"m-0.5",n?"text-muted opacity-60 pointer-events-none":r?_n[t].action:_n[t].icon,{"cursor-pointer p-0.5":r&&!n,[_n[t].actionHover]:r&&!n,"pointer-events-none":!r}),Fv=({size:e,color:t,isDisabled:n})=>de("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",n?"text-muted":_n[t].messageText,_n[t].borderMessage,_n[t].messageBackground,vr[e].message,{"opacity-60":n}),zv=({size:e})=>de(vr[e].icon);function qi(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Bv=typeof global=="object"&&global&&global.Object===Object&&global,Hv=typeof self=="object"&&self&&self.Object===Object&&self,kp=Bv||Hv||Function("return this")(),Bs=function(){return kp.Date.now()},$v=/\s/;function Wv(e){for(var t=e.length;t--&&$v.test(e.charAt(t)););return t}var Uv=/^\s+/;function qv(e){return e&&e.slice(0,Wv(e)+1).replace(Uv,"")}var Ki=kp.Symbol,Sp=Object.prototype,Kv=Sp.hasOwnProperty,Jv=Sp.toString,Nr=Ki?Ki.toStringTag:void 0;function Gv(e){var t=Kv.call(e,Nr),n=e[Nr];try{e[Nr]=void 0;var r=!0}catch{}var i=Jv.call(e);return r&&(t?e[Nr]=n:delete e[Nr]),i}var Yv=Object.prototype,Qv=Yv.toString;function Xv(e){return Qv.call(e)}var Zv="[object Null]",e0="[object Undefined]",Eu=Ki?Ki.toStringTag:void 0;function t0(e){return e==null?e===void 0?e0:Zv:Eu&&Eu in Object(e)?Gv(e):Xv(e)}function n0(e){return e!=null&&typeof e=="object"}var r0="[object Symbol]";function i0(e){return typeof e=="symbol"||n0(e)&&t0(e)==r0}var Iu=NaN,s0=/^[-+]0x[0-9a-f]+$/i,a0=/^0b[01]+$/i,o0=/^0o[0-7]+$/i,l0=parseInt;function Cu(e){if(typeof e=="number")return e;if(i0(e))return Iu;if(qi(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qi(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=qv(e);var n=a0.test(e);return n||o0.test(e)?l0(e.slice(2),n?2:8):s0.test(e)?Iu:+e}var u0="Expected a function",c0=Math.max,h0=Math.min;function Pi(e,t,n){var r,i,s,o,l,u,c=0,d=!1,h=!1,g=!0;if(typeof e!="function")throw new TypeError(u0);t=Cu(t)||0,qi(n)&&(d=!!n.leading,h="maxWait"in n,s=h?c0(Cu(n.maxWait)||0,t):s,g="trailing"in n?!!n.trailing:g);function m(f){var R=r,V=i;return r=i=void 0,c=f,o=e.apply(V,R),o}function w(f){return c=f,l=setTimeout(k,t),d?m(f):o}function S(f){var R=f-u,V=f-c,L=t-R;return h?h0(L,s-V):L}function y(f){var R=f-u,V=f-c;return u===void 0||R>=t||R<0||h&&V>=s}function k(){var f=Bs();if(y(f))return v(f);l=setTimeout(k,S(f))}function v(f){return l=void 0,g&&r?m(f):(r=i=void 0,o)}function _(){l!==void 0&&clearTimeout(l),c=0,r=u=i=l=void 0}function A(){return l===void 0?o:v(Bs())}function x(){var f=Bs(),R=y(f);if(r=arguments,i=this,u=f,R){if(l===void 0)return w(u);if(h)return clearTimeout(l),l=setTimeout(k,t),m(u)}return l===void 0&&(l=setTimeout(k,t)),o}return x.cancel=_,x.flush=A,x}var p0="Expected a function";function d0(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(p0);return qi(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Pi(e,t,{leading:r,maxWait:t,trailing:i})}var lr=function(){return lr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},lr.apply(this,arguments)};function _p(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function Ep(e){return!e||!e.ownerDocument?document:e.ownerDocument}var Ip=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var s=i.name.match(/data-simplebar-(.+)/);if(s){var o=s[1].replace(/\W+(.)/g,function(l,u){return u.toUpperCase()});switch(i.value){case"true":r[o]=!0;break;case"false":r[o]=!1;break;case void 0:r[o]=!0;break;default:r[o]=i.value}}return r},t);return n};function Cp(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function Ap(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function Tp(e){return".".concat(e.split(" ").join("."))}var lo=!!(typeof window<"u"&&window.document&&window.document.createElement),f0=Object.freeze({__proto__:null,addClasses:Cp,canUseDOM:lo,classNamesToQuery:Tp,getElementDocument:Ep,getElementWindow:_p,getOptions:Ip,removeClasses:Ap}),ar=null,Au=null;lo&&window.addEventListener("resize",function(){Au!==window.devicePixelRatio&&(Au=window.devicePixelRatio,ar=null)});function Tu(){if(ar===null){if(typeof document>"u")return ar=0,ar;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),ar=n}return ar}var On=_p,Hs=Ep,g0=Ip,Pn=Cp,Rn=Ap,jt=Tp,Or=(function(){function e(t,n){n===void 0&&(n={});var r=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=On(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,Pn(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){Rn(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(Pn(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Rn(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var s,o;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(s=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(o=r.isWithinBounds(r.axis.y.track.rect)),(s||o)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(s&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),o&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var s,o,l,u,c,d,h,g,m,w,S;if(!(!r.draggedAxis||!r.contentWrapperEl)){var y,k=r.axis[r.draggedAxis].track,v=(o=(s=k.rect)===null||s===void 0?void 0:s[r.axis[r.draggedAxis].sizeAttr])!==null&&o!==void 0?o:0,_=r.axis[r.draggedAxis].scrollbar,A=(u=(l=r.contentWrapperEl)===null||l===void 0?void 0:l[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,x=parseInt((d=(c=r.elStyles)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].sizeAttr])!==null&&d!==void 0?d:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?y=i.pageY:y=i.pageX;var f=y-((g=(h=k.rect)===null||h===void 0?void 0:h[r.axis[r.draggedAxis].offsetAttr])!==null&&g!==void 0?g:0)-r.axis[r.draggedAxis].dragOffset;f=r.draggedAxis==="x"&&r.isRtl?((w=(m=k.rect)===null||m===void 0?void 0:m[r.axis[r.draggedAxis].sizeAttr])!==null&&w!==void 0?w:0)-_.size-f:f;var R=f/(v-_.size),V=R*(A-x);r.draggedAxis==="x"&&r.isRtl&&(V=!((S=e.getRtlHelpers())===null||S===void 0)&&S.isScrollingToNegative?-V:V),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=V}},this.onEndDrag=function(i){r.isDragging=!1;var s=Hs(r.el),o=On(r.el);i.preventDefault(),i.stopPropagation(),Rn(r.el,r.classNames.dragging),r.onStopScrolling(),s.removeEventListener("mousemove",r.drag,!0),s.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=o.setTimeout(function(){s.removeEventListener("click",r.preventClick,!0),s.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=lr(lr({},e.defaultOptions),n),this.classNames=lr(lr({},e.defaultOptions.classNames),n.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=d0(this._onMouseMove,64),this.onWindowResize=Pi(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Pi(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Pi(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 n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),s=e.getOffset(r);n.scrollLeft=-999;var o=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==s.left,isScrollingToNegative:s.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:Tu()}catch{return Tu()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=Hs(t),i=On(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){lo&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(jt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(jt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(jt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(jt(this.classNames.offset)),this.maskEl=this.el.querySelector(jt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,jt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(jt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(jt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(jt(this.classNames.track)).concat(jt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(jt(this.classNames.track)).concat(jt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(jt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(jt(this.classNames.scrollbar)))||null,this.options.autoHide||(Pn(this.axis.x.scrollbar.el,this.classNames.visible),Pn(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=On(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),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,s=r.ResizeObserver||ResizeObserver;this.resizeObserver=new s(function(){i&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.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=On(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,s=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,l=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=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||c,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var d=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&c>n,this.axis.y.isOverflowing=u>d,this.axis.x.isOverflowing=o==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=l==="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,g=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>s-g,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 n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],s=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,o=s/i,l;return l=Math.max(~~(o*s),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(l=Math.min(l,this.options.scrollbarMaxSize)),l},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var s=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!s.el||!this.elStyles)){var o=this.contentWrapperEl[this.axis[t].scrollSizeAttr],l=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[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&&!((r=e.getRtlHelpers())===null||r===void 0)&&r.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=~~((l-s.size)*d);h=t==="x"&&this.isRtl?-h+(l-s.size):h,s.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 n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.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?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Pn(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&&(Rn(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 n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),Pn(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Pn(n.scrollbar.el,this.classNames.hover):Rn(n.scrollbar.el,this.classNames.hover)):(Rn(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Rn(this.axis[t].track.el,this.classNames.hover),Rn(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y"),this.isDragging=!0;var i=Hs(this.el),s=On(this.el),o=this.axis[n].scrollbar,l=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=l-(((r=o.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Pn(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)):(s.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,i,s,o,l;n===void 0&&(n="y");var u=this.axis[n];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var c=On(this.el);this.axis[n].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var d=this.axis[n].scrollbar,h=(s=(i=d.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&s!==void 0?s:0,g=parseInt((l=(o=this.elStyles)===null||o===void 0?void 0:o[this.axis[n].sizeAttr])!==null&&l!==void 0?l:"0px",10),m=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],w=n==="y"?this.mouseY-h:this.mouseX-h,S=w<0?-1:1,y=S===-1?m-g:m+g,k=40,v=function(){r.contentWrapperEl&&(S===-1?m>y&&(m-=k,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=m,c.requestAnimationFrame(v)):m<y&&(m+=k,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=m,c.requestAnimationFrame(v)))};v()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=On(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,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[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=g0,e.helpers=f0,e})(),Wt=function(){return Wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Wt.apply(this,arguments)};function m0(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var uo=bt.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,s=m0(e,["children","scrollableNodeProps"]),o=bt.useRef(),l=bt.useRef(),u=bt.useRef(),c={},d={};Object.keys(s).forEach(function(m){Object.prototype.hasOwnProperty.call(Or.defaultOptions,m)?c[m]=s[m]:d[m]=s[m]});var h=Wt(Wt({},Or.defaultOptions.classNames),c.classNames),g=Wt(Wt({},i),{className:"".concat(h.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:c.tabIndex||Or.defaultOptions.tabIndex,role:"region","aria-label":c.ariaLabel||Or.defaultOptions.ariaLabel});return bt.useEffect(function(){var m;return l.current=g.ref?g.ref.current:l.current,o.current&&(m=new Or(o.current,Wt(Wt(Wt({},c),l.current&&{scrollableNode:l.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(m):t&&(t.current=m)),function(){m==null||m.unMount(),m=null,typeof t=="function"&&t(null)}},[]),bt.createElement("div",Wt({"data-simplebar":"init",ref:o},d),bt.createElement("div",{className:h.wrapper},bt.createElement("div",{className:h.heightAutoObserverWrapperEl},bt.createElement("div",{className:h.heightAutoObserverEl})),bt.createElement("div",{className:h.mask},bt.createElement("div",{className:h.offset},typeof n=="function"?n({scrollableNodeRef:l,scrollableNodeProps:Wt(Wt({},g),{ref:l}),contentNodeRef:u,contentNodeProps:{className:h.contentEl,ref:u}}):bt.createElement("div",Wt({},g),bt.createElement("div",{className:h.contentEl},n)))),bt.createElement("div",{className:h.placeholder})),bt.createElement("div",{className:"".concat(h.track," ").concat(h.horizontal)},bt.createElement("div",{className:h.scrollbar})),bt.createElement("div",{className:"".concat(h.track," ").concat(h.vertical)},bt.createElement("div",{className:h.scrollbar})))});uo.displayName="SimpleBar";const Np=D.forwardRef(({size:e="md",color:t="primary",isInvalid:n=!1,isDisabled:r=!1,isReadOnly:i=!1,className:s,children:o,...l},u)=>{const[c,d]=D.useState(!1),[h,g]=D.useState(!1),m={size:e,color:n?"negative":t,isInvalid:n,isDisabled:r,isReadOnly:i,hasMessage:c,setHasMessage:d,hasArea:h,setHasArea:g};return C.jsx(wp.Provider,{value:m,children:C.jsx("div",{ref:u,"data-qui":"Input",className:de(Lv(),s),...l,children:o})})}),Op=D.forwardRef(({className:e,children:t,...n},r)=>{const{size:i,color:s,isDisabled:o,isReadOnly:l,hasMessage:u,hasArea:c,isInvalid:d}=Yr();return C.jsx("div",{ref:r,"data-qui":"InputGroup",className:de(Vv({size:i,color:s,isDisabled:o,isReadOnly:l,hasMessage:u,hasArea:c,isInvalid:d}),e),...n,children:t})}),Pp=D.forwardRef(({className:e,...t},n)=>{const{size:r,color:i,isInvalid:s,isDisabled:o,isReadOnly:l}=Yr(),{isDisabled:u,isReadOnly:c,...d}=t;return C.jsx("input",{ref:n,disabled:o||u,readOnly:c||l||!1,"aria-invalid":s,className:de(Mv({size:r,color:i}),e),...d})}),Rp=D.forwardRef(({className:e,autoHeight:t,...n},r)=>{const{size:i,color:s,isInvalid:o,isDisabled:l,setHasArea:u}=Yr(),c=D.useRef(null),d=r||c,h=D.useRef(null);D.useEffect(()=>(u(!0),()=>{u(!1)}),[u]);const g=D.useCallback(()=>{if(c.current){const v=c.current;v.style.height="auto",v.style.height=`${v.scrollHeight}px`}},[]),m=v=>{var _;g(),(_=n.onInput)==null||_.call(n,v)};D.useEffect(()=>{g()},[g,n.value]),D.useEffect(()=>{t&&h.current&&h.current.style.removeProperty("height")},[t]);const w=v=>{v.preventDefault();const _=h.current;if(!_)return;const A=v.clientY,x=_.offsetHeight,f=V=>{const L=x+(V.clientY-A);L>30&&(_.style.height=L+"px")},R=()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",R)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",R)},{isDisabled:S,isReadOnly:y,...k}=n;return C.jsxs("div",{ref:h,className:de("w-full relative",!t&&"h-[120px]"),children:[t?C.jsx("textarea",{ref:d,rows:1,className:de(_u({size:i,color:s}),e),disabled:l||S,onInput:m,readOnly:y||!1,"aria-invalid":o,style:{overflow:"hidden"},...k}):C.jsx(uo,{style:{height:"100%"},children:C.jsx("textarea",{ref:d,rows:1,className:de(_u({size:i,color:s}),e),disabled:l||S,onInput:m,readOnly:y||!1,"aria-invalid":o,style:{height:"auto",overflow:"hidden",width:"100%"},...k})}),!t&&C.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:w,children:C.jsx(Ix,{})})]})}),x0=D.forwardRef(({isAction:e=!1,className:t,isDisabled:n=!1,style:r,children:i,...s},o)=>{const{size:l,color:u,isDisabled:c}=Yr(),d=n||c,h=jv({size:l,color:u,isDisabled:d,isAction:e});return C.jsx("div",{ref:o,"data-qui":"InputIcon",className:de(h,t),style:r,role:e||s.onClick?"button":void 0,tabIndex:(e||s.onClick)&&!d?0:void 0,"aria-disabled":d,...s,children:i})}),Dp=D.forwardRef(({icon:e,className:t,children:n,...r},i)=>{const{size:s,color:o,setHasMessage:l,isDisabled:u}=Yr();return D.useEffect(()=>(l(!0),()=>{l(!1)}),[l]),C.jsxs("div",{ref:i,"data-qui":"InputMessage",role:"alert",className:de(Fv({size:s,color:o,isDisabled:u}),t),...r,children:[e!==void 0&&C.jsx("div",{className:de(zv({size:s}),t),children:e}),C.jsx("p",{children:n})]})});Np.displayName="InputRoot";Op.displayName="InputGroup";Pp.displayName="InputField";Rp.displayName="InputArea";x0.displayName="InputIcon";Dp.displayName="InputMessage";const sn={Root:Np,Group:Op,Field:Pp,Area:Rp,Message:Dp},Hr={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"}},v0=({color:e})=>de("h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",Hr[e].container,Hr[e].icon),b0=({color:e})=>de("text-xs font-medium leading-3",Hr[e].text),y0=({color:e})=>de("p-0.5 rounded cursor-pointer",Hr[e].button,Hr[e].icon),At=({label:e,color:t="primary",position:n="up",showCloseButton:r=!1,icon:i,children:s,delay:o=2e3,trigger:l="hover",className:u})=>{const[c,d]=D.useState(!1),[h,g]=D.useState(!1),[m,w]=D.useState({position:n,transform:""}),S=D.useRef(null),y=D.useRef(null),k=D.useRef(null),v=D.useCallback(()=>{if(!S.current||!y.current)return;const L=S.current.getBoundingClientRect(),N=y.current.getBoundingClientRect(),$=window.innerWidth,U=window.innerHeight,J=window.scrollX,Y=window.scrollY,Q=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,$),Z=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,U),q=4;let K=n,ie={position:K,transform:""};const E=B=>{const{top:z,left:W,width:F,height:te}=L,ee=z+Y,ne=W+J;switch(B){case"up":return{top:`${ee-N.height-q}px`,left:`${ne+F/2}px`,transform:"translateX(-50%)"};case"up-start":return{top:`${ee-N.height-q}px`,left:`${ne}px`,transform:"translateX(0)"};case"up-end":return{top:`${ee-N.height-q}px`,left:`${ne+F-N.width}px`,transform:"translateX(0)"};case"down":return{top:`${ee+te+q}px`,left:`${ne+F/2}px`,transform:"translateX(-50%)"};case"down-start":return{top:`${ee+te+q}px`,left:`${ne}px`,transform:"translateX(0)"};case"down-end":return{top:`${ee+te+q}px`,left:`${ne+F-N.width}px`,transform:"translateX(0)"};case"left":return{top:`${ee+te/2}px`,left:`${ne-N.width-q}px`,transform:"translateY(-50%)"};case"left-start":return{top:`${ee}px`,left:`${ne-N.width-q}px`,transform:"translateY(0)"};case"left-end":return{top:`${ee+te-N.height}px`,left:`${ne-N.width-q}px`,transform:"translateY(0)"};case"right":return{top:`${ee+te/2}px`,left:`${ne+F+q}px`,transform:"translateY(-50%)"};case"right-start":return{top:`${ee}px`,left:`${ne+F+q}px`,transform:"translateY(0)"};case"right-end":return{top:`${ee+te-N.height}px`,left:`${ne+F+q}px`,transform:"translateY(0)"};default:return{}}},M={up:{fits:L.top-N.height-q>=0},"up-start":{fits:L.top-N.height-q>=0&&L.left+N.width<=$},"up-end":{fits:L.top-N.height-q>=0&&L.right-N.width>=0},down:{fits:L.bottom+N.height+q<=U&&L.bottom+N.height+q<=Z},"down-start":{fits:L.bottom+N.height+q<=U&&L.bottom+N.height+q<=Z&&L.left+N.width<=$},"down-end":{fits:L.bottom+N.height+q<=U&&L.bottom+N.height+q<=Z&&L.right-N.width>=0},left:{fits:L.left-N.width-q>=0},"left-start":{fits:L.left-N.width-q>=0&&L.top+N.height<=U},"left-end":{fits:L.left-N.width-q>=0&&L.bottom-N.height>=0},right:{fits:L.right+N.width+q<=$&&L.right+N.width+q<=Q},"right-start":{fits:L.right+N.width+q<=$&&L.right+N.width+q<=Q&&L.top+N.height<=U},"right-end":{fits:L.right+N.width+q<=$&&L.right+N.width+q<=Q&&L.bottom-N.height>=0}},H=L.left+L.width/2-N.width/2,T=L.left+L.width/2+N.width/2;if((n==="up"||n==="down")&&(H<0||T>$)&&(M[n].fits=!1),M[n].fits){const B=E(n);ie={position:n,...B,transform:B.transform||""}}else{const B=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(z=>M[z].fits);if(B){K=B;const z=E(B);ie={position:K,...z,transform:z.transform||""}}else{const z={up:L.top,"up-start":L.top,"up-end":L.top,down:Math.min(U-L.bottom,Z-L.bottom),"down-start":Math.min(U-L.bottom,Z-L.bottom),"down-end":Math.min(U-L.bottom,Z-L.bottom),left:L.left,"left-start":L.left,"left-end":L.left,right:Math.min($-L.right,Q-L.right),"right-start":Math.min($-L.right,Q-L.right),"right-end":Math.min($-L.right,Q-L.right)},W=Object.entries(z).reduce((te,[ee,ne])=>ne>te.space?{position:ee,space:ne}:te,{position:"up",space:0}).position;K=W;const F=E(W);ie={position:K,...F,transform:F.transform||""}}}w(ie)},[n]),_=()=>{l==="click"&&(d(!0),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{h||d(!1)},o))},A=L=>{L.stopPropagation(),d(!1),k.current&&clearTimeout(k.current)},x=()=>{g(!0),k.current&&clearTimeout(k.current)},f=()=>{g(!1),c&&(k.current=setTimeout(()=>{d(!1)},o))},R=()=>{l==="hover"&&d(!0)},V=()=>{l==="hover"&&d(!1)};return D.useEffect(()=>{if(c){const L=requestAnimationFrame(()=>{v()});return()=>cancelAnimationFrame(L)}},[c,e,v]),D.useEffect(()=>{if(c){const L=setTimeout(()=>v(),0);return()=>clearTimeout(L)}},[c,v]),D.useEffect(()=>{const L=()=>{c&&v()},N=()=>{c&&v()};return window.addEventListener("resize",L),window.addEventListener("scroll",N,!0),()=>{window.removeEventListener("resize",L),window.removeEventListener("scroll",N,!0),k.current&&clearTimeout(k.current)}},[c,v]),C.jsxs(C.Fragment,{children:[C.jsx("div",{"data-qui":"Tooltip",ref:S,onClick:_,onMouseEnter:R,onMouseLeave:V,className:de("relative inline-flex items-center",u),children:s}),c&&!!e&&ro.createPortal(C.jsxs("div",{ref:y,role:"tooltip",className:v0({color:t}),style:{position:"absolute",left:m.left??0,top:m.top??0,transform:m.transform,zIndex:1e3,visibility:m.left?"visible":"hidden"},onMouseEnter:x,onMouseLeave:f,children:[i&&C.jsx("span",{children:i}),C.jsx("p",{className:b0({color:t}),children:e}),r&&C.jsx("div",{onClick:A,className:y0({color:t}),role:"button",children:C.jsx(xs,{})})]}),document.body)]})};var Nu;(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"})(Nu||(Nu={}));const w0=Object.freeze({x:0,y:0});var ur;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(ur||(ur={}));var Ou;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ou||(Ou={}));var Xt;(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"})(Xt||(Xt={}));Xt.Space,Xt.Enter,Xt.Esc,Xt.Space,Xt.Enter,Xt.Tab;var Pu;(function(e){e[e.RightClick=2]="RightClick"})(Pu||(Pu={}));var Ru;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Ru||(Ru={}));var Du;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Du||(Du={}));ur.Backward+"",ur.Forward+"",ur.Backward+"",ur.Forward+"";var Da;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Da||(Da={}));var La;(function(e){e.Optimized="optimized"})(La||(La={}));Da.WhileDragging,La.Optimized;({...w0});var Lu;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Lu||(Lu={}));Xt.Down,Xt.Right,Xt.Up,Xt.Left;const Lp={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"}},k0={primary:{active:{bg:"bg-primary",text:"text-tab-active-fg",border:"border-primary"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-primary-hover",text:"hover:text-tab-active-fg"}},positive:{active:{bg:"bg-positive-500",text:"text-gray-50",border:"border-positive-500"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-positive-600",text:"hover:text-gray-50"}},negative:{active:{bg:"bg-negative-400",text:"text-gray-50",border:"border-negative-400"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-negative-600",text:"hover:text-gray-50"}},warning:{active:{bg:"bg-warning-500",text:"text-gray-50",border:"border-warning-500"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-warning-600",text:"hover:text-gray-50"}}},S0=(e,t,n,r)=>{const i=k0[e],s=Lp[t],o="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return r?de(o,s.padding,s.text,s.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):n?de(o,s.padding,s.text,s.gap,i.active.bg,i.active.text,"shadow-xs"):de(o,s.padding,s.text,s.gap,i.inactive.bg,i.inactive.text,i.hover.bg,i.hover.text)},_0=(e,t)=>de("flex items-center justify-center",Lp[e].icon,{"opacity-50":t}),E0=()=>de("whitespace-nowrap"),Vp=(e,t)=>{const n=de("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return e&&!t?de(n,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):t&&!e?de(n,"border border-transparent bg-tab-inactive-bg text-inactive-text"):de(n,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},I0=D.createContext(void 0),C0=D.forwardRef(({value:e,label:t,icon:n,disabled:r,children:i,className:s,onClick:o,active:l,content:u,...c},d)=>{const h=D.useContext(I0);if(!h)return null;const{activeTab:g,onTabChange:m,variant:w,color:S,size:y,showIcons:k,disabled:v}=h,_=l!==void 0?l:g===e,A=r||v,x=f=>{A||(m(e),o==null||o(f))};return w==="file"?C.jsx("div",{"data-qui":"FileTabItem",className:de(Vp(_,!1),"cursor-pointer",s),onClick:f=>!A&&x(f),children:i||C.jsx(C.Fragment,{children:C.jsxs("span",{className:"flex items-center gap-2",children:[n,C.jsx("span",{children:t})]})})}):C.jsxs("button",{ref:d,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":_,"aria-disabled":A,className:de(S0(S,y,_,A||!1),s),onClick:x,disabled:A,...c,children:[k&&n&&C.jsx("span",{className:_0(y,A||!1),children:n}),C.jsx("span",{className:E0(),children:i||t})]})});C0.displayName="TabItem";const A0=D.forwardRef(({isActive:e=!1,isDesactive:t=!1,children:n,...r},i)=>C.jsx("div",{"data-qui":"TabNavContainer",className:Vp(e,t),ref:i,...r,children:n}));A0.displayName="TabNavContainer";var gt=function(){return gt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},gt.apply(this,arguments)},Vu={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Mu={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},pi={width:"20px",height:"20px",position:"absolute",zIndex:1},T0={top:gt(gt({},Vu),{top:"-5px"}),right:gt(gt({},Mu),{left:void 0,right:"-5px"}),bottom:gt(gt({},Vu),{top:void 0,bottom:"-5px"}),left:gt(gt({},Mu),{left:"-5px"}),topRight:gt(gt({},pi),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:gt(gt({},pi),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:gt(gt({},pi),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:gt(gt({},pi),{left:"-10px",top:"-10px",cursor:"nw-resize"})},N0=D.memo(function(e){var t=e.onResizeStart,n=e.direction,r=e.children,i=e.replaceStyles,s=e.className,o=D.useCallback(function(c){t(c,n)},[t,n]),l=D.useCallback(function(c){t(c,n)},[t,n]),u=D.useMemo(function(){return gt(gt({position:"absolute",userSelect:"none"},T0[n]),i??{})},[i,n]);return C.jsx("div",{className:s||void 0,style:u,onMouseDown:o,onTouchStart:l,children:r})}),O0=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),hn=function(){return hn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},hn.apply(this,arguments)},P0={width:"auto",height:"auto"},di=function(e,t,n){return Math.max(Math.min(e,n),t)},ju=function(e,t,n){var r=Math.round(e/t);return r*t+n*(r-1)},ir=function(e,t){return new RegExp(e,"i").test(t)},fi=function(e){return!!(e.touches&&e.touches.length)},R0=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Fu=function(e,t,n){n===void 0&&(n=0);var r=t.reduce(function(s,o,l){return Math.abs(o-e)<Math.abs(t[s]-e)?l:s},0),i=Math.abs(t[r]-e);return n===0||i<n?t[r]:e},$s=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")},gi=function(e,t,n,r){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 n*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return r*i}}return e},D0=function(e,t,n,r,i,s,o){return r=gi(r,e.width,t,n),i=gi(i,e.height,t,n),s=gi(s,e.width,t,n),o=gi(o,e.height,t,n),{maxWidth:typeof r>"u"?void 0:Number(r),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof s>"u"?void 0:Number(s),minHeight:typeof o>"u"?void 0:Number(o)}},L0=function(e){return Array.isArray(e)?e:[e,e]},V0=["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"],zu="__resizable_base__",M0=(function(e){O0(t,e);function t(n){var r,i,s,o,l=e.call(this,n)||this;return l.ratio=1,l.resizable=null,l.parentLeft=0,l.parentTop=0,l.resizableLeft=0,l.resizableRight=0,l.resizableTop=0,l.resizableBottom=0,l.targetLeft=0,l.targetTop=0,l.delta={width:0,height:0},l.appendBase=function(){if(!l.resizable||!l.window)return null;var u=l.parentNode;if(!u)return null;var c=l.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(zu):c.className+=zu,u.appendChild(c),c},l.removeBase=function(u){var c=l.parentNode;c&&c.removeChild(u)},l.state={isResizing:!1,width:(i=(r=l.propsSize)===null||r===void 0?void 0:r.width)!==null&&i!==void 0?i:"auto",height:(o=(s=l.propsSize)===null||s===void 0?void 0:s.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},l.onResizeStart=l.onResizeStart.bind(l),l.onMouseMove=l.onMouseMove.bind(l),l.onMouseUp=l.onMouseUp.bind(l),l}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||P0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var n=0,r=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,s=this.resizable.offsetHeight,o=this.resizable.style.position;o!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,r=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:s,this.resizable.style.position=o}return{width:n,height:r}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var n=this,r=this.props.size,i=function(l){var u;if(typeof n.state[l]>"u"||n.state[l]==="auto")return"auto";if(n.propsSize&&n.propsSize[l]&&!((u=n.propsSize[l])===null||u===void 0)&&u.toString().endsWith("%")){if(n.state[l].toString().endsWith("%"))return n.state[l].toString();var c=n.getParentSize(),d=Number(n.state[l].toString().replace("px","")),h=d/c[l]*100;return"".concat(h,"%")}return $s(n.state[l])},s=r&&typeof r.width<"u"&&!this.state.isResizing?$s(r.width):i("width"),o=r&&typeof r.height<"u"&&!this.state.isResizing?$s(r.height):i("height");return{width:s,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 n=this.appendBase();if(!n)return{width:0,height:0};var r=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(r=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var s={width:n.offsetWidth,height:n.offsetHeight};return r&&(this.parentNode.style.flexWrap=i),this.removeBase(n),s},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 n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(n,r){var i=this.propsSize&&this.propsSize[r];return this.state[r]==="auto"&&this.state.original[r]===n&&(typeof i>"u"||i==="auto")?"auto":n},t.prototype.calculateNewMaxFromBoundary=function(n,r){var i=this.props.boundsByDirection,s=this.state.direction,o=i&&ir("left",s),l=i&&ir("top",s),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=l?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=l?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=l?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(n=n&&n<u?n:u),c&&Number.isFinite(c)&&(r=r&&r<c?r:c),{maxWidth:n,maxHeight:r}},t.prototype.calculateNewSizeFromDirection=function(n,r){var i=this.props.scale||1,s=L0(this.props.resizeRatio||1),o=s[0],l=s[1],u=this.state,c=u.direction,d=u.original,h=this.props,g=h.lockAspectRatio,m=h.lockAspectRatioExtraHeight,w=h.lockAspectRatioExtraWidth,S=d.width,y=d.height,k=m||0,v=w||0;return ir("right",c)&&(S=d.width+(n-d.x)*o/i,g&&(y=(S-v)/this.ratio+k)),ir("left",c)&&(S=d.width-(n-d.x)*o/i,g&&(y=(S-v)/this.ratio+k)),ir("bottom",c)&&(y=d.height+(r-d.y)*l/i,g&&(S=(y-k)*this.ratio+v)),ir("top",c)&&(y=d.height-(r-d.y)*l/i,g&&(S=(y-k)*this.ratio+v)),{newWidth:S,newHeight:y}},t.prototype.calculateNewSizeFromAspectRatio=function(n,r,i,s){var o=this.props,l=o.lockAspectRatio,u=o.lockAspectRatioExtraHeight,c=o.lockAspectRatioExtraWidth,d=typeof s.width>"u"?10:s.width,h=typeof i.width>"u"||i.width<0?n:i.width,g=typeof s.height>"u"?10:s.height,m=typeof i.height>"u"||i.height<0?r:i.height,w=u||0,S=c||0;if(l){var y=(g-w)*this.ratio+S,k=(m-w)*this.ratio+S,v=(d-S)/this.ratio+w,_=(h-S)/this.ratio+w,A=Math.max(d,y),x=Math.min(h,k),f=Math.max(g,v),R=Math.min(m,_);n=di(n,A,x),r=di(r,f,R)}else n=di(n,d,h),r=di(r,g,m);return{newWidth:n,newHeight:r}},t.prototype.setBoundingClientRect=function(){var n=1/(this.props.scale||1);if(this.props.bounds==="parent"){var r=this.parentNode;if(r){var i=r.getBoundingClientRect();this.parentLeft=i.left*n,this.parentTop=i.top*n}}if(this.props.bounds&&typeof this.props.bounds!="string"){var s=this.props.bounds.getBoundingClientRect();this.targetLeft=s.left*n,this.targetTop=s.top*n}if(this.resizable){var o=this.resizable.getBoundingClientRect(),l=o.left,u=o.top,c=o.right,d=o.bottom;this.resizableLeft=l*n,this.resizableRight=c*n,this.resizableTop=u*n,this.resizableBottom=d*n}},t.prototype.onResizeStart=function(n,r){if(!(!this.resizable||!this.window)){var i=0,s=0;if(n.nativeEvent&&R0(n.nativeEvent)?(i=n.nativeEvent.clientX,s=n.nativeEvent.clientY):n.nativeEvent&&fi(n.nativeEvent)&&(i=n.nativeEvent.touches[0].clientX,s=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var o=this.props.onResizeStart(n,r,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 l,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",l=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var h={original:{x:i,y:s,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:hn(hn({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:r,flexBasis:l};this.setState(h)}},t.prototype.onMouseMove=function(n){var r=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&fi(n))try{n.preventDefault(),n.stopPropagation()}catch{}var i=this.props,s=i.maxWidth,o=i.maxHeight,l=i.minWidth,u=i.minHeight,c=fi(n)?n.touches[0].clientX:n.clientX,d=fi(n)?n.touches[0].clientY:n.clientY,h=this.state,g=h.direction,m=h.original,w=h.width,S=h.height,y=this.getParentSize(),k=D0(y,this.window.innerWidth,this.window.innerHeight,s,o,l,u);s=k.maxWidth,o=k.maxHeight,l=k.minWidth,u=k.minHeight;var v=this.calculateNewSizeFromDirection(c,d),_=v.newHeight,A=v.newWidth,x=this.calculateNewMaxFromBoundary(s,o);this.props.snap&&this.props.snap.x&&(A=Fu(A,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(_=Fu(_,this.props.snap.y,this.props.snapGap));var f=this.calculateNewSizeFromAspectRatio(A,_,{width:x.maxWidth,height:x.maxHeight},{width:l,height:u});if(A=f.newWidth,_=f.newHeight,this.props.grid){var R=ju(A,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),V=ju(_,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),L=this.props.snapGap||0,N=L===0||Math.abs(R-A)<=L?R:A,$=L===0||Math.abs(V-_)<=L?V:_;A=N,_=$}var U={width:A-m.width,height:_-m.height};if(this.delta=U,w&&typeof w=="string"){if(w.endsWith("%")){var J=A/y.width*100;A="".concat(J,"%")}else if(w.endsWith("vw")){var Y=A/this.window.innerWidth*100;A="".concat(Y,"vw")}else if(w.endsWith("vh")){var Q=A/this.window.innerHeight*100;A="".concat(Q,"vh")}}if(S&&typeof S=="string"){if(S.endsWith("%")){var J=_/y.height*100;_="".concat(J,"%")}else if(S.endsWith("vw")){var Y=_/this.window.innerWidth*100;_="".concat(Y,"vw")}else if(S.endsWith("vh")){var Q=_/this.window.innerHeight*100;_="".concat(Q,"vh")}}var Z={width:this.createSizeForCssProperty(A,"width"),height:this.createSizeForCssProperty(_,"height")};this.flexDir==="row"?Z.flexBasis=Z.width:this.flexDir==="column"&&(Z.flexBasis=Z.height);var q=this.state.width!==Z.width,K=this.state.height!==Z.height,ie=this.state.flexBasis!==Z.flexBasis,E=q||K||ie;E&&ro.flushSync(function(){r.setState(Z)}),this.props.onResize&&E&&this.props.onResize(n,g,this.resizable,U)}},t.prototype.onMouseUp=function(n){var r,i,s=this.state,o=s.isResizing,l=s.direction;s.original,!(!o||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(n,l,this.resizable,this.delta),this.props.size&&this.setState({width:(r=this.props.size.width)!==null&&r!==void 0?r:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:hn(hn({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(n){var r,i;this.setState({width:(r=n.width)!==null&&r!==void 0?r:"auto",height:(i=n.height)!==null&&i!==void 0?i:"auto"})},t.prototype.renderResizer=function(){var n=this,r=this.props,i=r.enable,s=r.handleStyles,o=r.handleClasses,l=r.handleWrapperStyle,u=r.handleWrapperClass,c=r.handleComponent;if(!i)return null;var d=Object.keys(i).map(function(h){return i[h]!==!1?C.jsx(N0,{direction:h,onResizeStart:n.onResizeStart,replaceStyles:s&&s[h],className:o&&o[h],children:c&&c[h]?c[h]:null},h):null});return C.jsx("div",{className:u,style:l,children:d})},t.prototype.render=function(){var n=this,r=Object.keys(this.props).reduce(function(o,l){return V0.indexOf(l)!==-1||(o[l]=n.props[l]),o},{}),i=hn(hn(hn({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 s=this.props.as||"div";return C.jsxs(s,hn({style:i,className:this.props.className},r,{ref:function(o){o&&(n.resizable=o)},children:[this.state.isResizing&&C.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})(D.PureComponent);const j0={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},F0={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},Mp=({depth:e=0,className:t,borderType:n,disabled:r})=>de("transition-colors duration-200",{"text-body":!r,"text-inactive-text":r},n?F0[n]:"border-panel-border",j0[e],t),z0=e=>{if(!e)return{};const t={},n=e.match(/min-w-\[(\d+)px\]/);n&&(t.minWidth=parseInt(n[1],10));const r=e.match(/max-w-\[(\d+)px\]/);r&&(t.maxWidth=parseInt(r[1],10));const i=e.match(/min-h-\[(\d+)px\]/);i&&(t.minHeight=parseInt(i[1],10));const s=e.match(/max-h-\[(\d+)px\]/);return s&&(t.maxHeight=parseInt(s[1],10)),t},B0=D.forwardRef(({children:e,width:t,height:n,minWidth:r=10,minHeight:i=10,maxWidth:s,maxHeight:o,defaultWidth:l,defaultHeight:u,defaultSize:c,size:d,grid:h,snap:g,lockAspectRatio:m=!1,enable:w,handleStyles:S={},handleClasses:y={},handleComponent:k={},style:v={},className:_,onResizeStart:A,onResize:x,onResizeStop:f,scale:R=1,bounds:V,snapGap:L,as:N="div",depth:$,disabled:U},J)=>{const Y=Mp({depth:$,className:_,disabled:U}),Q=z0(_),Z=d?{size:d}:t!==void 0||n!==void 0?{size:{width:t??"auto",height:n??"auto"}}:{},q=c?{defaultSize:c}:l!==void 0||u!==void 0?{defaultSize:{width:l??"auto",height:u??"auto"}}:{},K=D.useRef(null);return D.useImperativeHandle(J,()=>{var ie;return(ie=K.current)==null?void 0:ie.resizable}),C.jsx(M0,{"data-qui":"Resizable",ref:K,...Z,...q,minWidth:r??Q.minWidth,minHeight:i??Q.minHeight,maxWidth:s??Q.maxWidth,maxHeight:o??Q.maxHeight,grid:h,snap:g,lockAspectRatio:m,enable:w,handleStyles:S,handleClasses:y,handleComponent:k,style:v,className:de("relative box-border",Y),onResizeStart:A,onResize:x,onResizeStop:f,scale:R,bounds:V,snapGap:L,as:N,children:e})});B0.displayName="Resizable";const sr={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"}},mi={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"}},H0=(e,t,n,r,i,s)=>({container:de("inline-flex items-center",sr[e].gap,s),track:de("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",sr[e].track,{[mi[t].bg]:n&&!r&&!i,"bg-input-bg":!n&&!r||i,"bg-panel cursor-not-allowed":r,"cursor-pointer":!r}),thumb:de("bg-input-text pointer-events-none inline-flex items-center justify-center shadow-xs","transition-all duration-200 ease-in-out","rounded-full absolute",sr[e].thumb,n?sr[e].thumbChecked:sr[e].thumbUnchecked,{[mi[t].thumb]:!r,"bg-canvas-subtle":r}),iconLeft:de("flex items-center justify-center z-10 w-1/2 p-0.5",{[mi[t].icon]:!n&&!r,"text-panel-subtle":r||n}),iconRight:de("flex items-center justify-center z-10 w-1/2 p-0.5",{[mi[t].icon]:n&&!r,"text-panel-subtle":r||!n}),label:de("font-medium text-body",sr[e].label,{"cursor-pointer":!r,"cursor-not-allowed text-muted":r})}),jp=D.forwardRef(({label:e,checked:t,defaultChecked:n=!1,disabled:r=!1,size:i="md",color:s="primary",icons:o,onChange:l,className:u,id:c,name:d,...h},g)=>{const[m,w]=D.useState(n),S=t!==void 0,y=S?t:m,k=()=>{const _=!y;S||w(_),l==null||l(_)},v=H0(i,s,y,r,!!o,u);return C.jsxs("div",{"data-qui":"Toggle",className:v.container,children:[e&&C.jsx("label",{htmlFor:c,className:v.label,children:e}),C.jsxs("button",{ref:g,...h,type:"button",role:"switch","aria-checked":y,"aria-label":e,disabled:r,onClick:k,name:d,id:c,className:v.track,children:[o&&C.jsx("span",{className:v.iconLeft,children:o.unchecked}),C.jsx("span",{className:v.thumb,"aria-hidden":"true"}),o&&C.jsx("span",{className:v.iconRight,children:o.checked})]})]})});jp.displayName="Toggle";D.createContext(null);const br=D.forwardRef(({depth:e=0,className:t,children:n,borderType:r,disabled:i,...s},o)=>{const l=Mp({depth:e,className:t,borderType:r,disabled:i});return C.jsx("div",{"data-qui":"Panel",ref:o,className:l,"aria-disabled":i,...s,children:n})});br.displayName="Panel";const vs={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"}},Ri={primary:{bg:"bg-primary",text:"text-body",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-body"},positive:{bg:"bg-positive",text:"text-body",border:"border-positive",buttonHover:"hover:bg-positive-hover"},warning:{bg:"bg-warning",text:"text-body",border:"border-warning",buttonHover:"hover:bg-warning-hover"},negative:{bg:"bg-negative",text:"text-body",border:"border-negative",buttonHover:"hover:bg-negative-hover"}},$0=(e,t)=>de("inline-flex items-center justify-center font-medium border",vs[e].container,Ri[t].bg,Ri[t].text,Ri[t].border),W0=(e,t,n)=>de({[vs[e].icon]:!n,"bg-canvas-default outline-canvas-default text-primary":n&&t!=="white"||n,"bg-primary outline-primary text-body":n&&t==="white"&&!n,"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":n||n}),U0=e=>de(vs[e].text),Fp=(e,t)=>de("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",vs[e].iconButton,Ri[t].buttonHover),zp=D.createContext(null),bs=()=>{const e=D.useContext(zp);if(!e)throw new Error("Pill components must be used within a Pill.Root");return e},co=D.forwardRef(({size:e="md",color:t="primary",className:n,children:r,...i},s)=>{const o={size:e,color:t};return C.jsx(zp.Provider,{value:o,children:C.jsx("div",{"data-qui":"Pill",ref:s,className:de($0(e,t),n),...i,children:r})})});co.displayName="Pill.Root";const ho=D.forwardRef(({className:e,children:t,...n},r)=>{const{size:i}=bs();return C.jsx("span",{ref:r,className:de(U0(i),e),...n,children:t})});ho.displayName="Pill.Text";const po=D.forwardRef(({className:e,children:t,label:n,position:r,...i},s)=>{const{size:o,color:l}=bs(),u=!!n,c=C.jsx("span",{ref:s,className:de(W0(o,l,u),e),...i,children:t});return u?C.jsx(At,{label:n||"",position:r||"up",children:c}):c});po.displayName="Pill.Icon";const Bp=D.forwardRef(({className:e,children:t,...n},r)=>{const{size:i,color:s}=bs();return C.jsx("button",{ref:r,type:"button",className:de(Fp(i,s),e),...n,children:t})});Bp.displayName="Pill.Button";const fo=D.forwardRef(({className:e,onClose:t,"aria-label":n="Remove pill",children:r,...i},s)=>{const{size:o,color:l}=bs();return C.jsx("button",{ref:s,type:"button",className:de(Fp(o,l),e),onClick:t,"aria-label":n,...i,children:r||C.jsx(xs,{})})});fo.displayName="Pill.Close";const Hp=D.forwardRef(({size:e="md",color:t="primary",label:n,icon:r,onClose:i,closable:s=!1,className:o,...l},u)=>C.jsxs(co,{ref:u,size:e,color:t,className:o,...l,children:[r&&C.jsx(po,{children:r}),C.jsx(ho,{children:n}),s&&C.jsx(fo,{onClose:i})]}));Hp.displayName="Pill";Object.assign(Hp,{Root:co,Text:ho,Icon:po,Button:Bp,Close:fo});const $p=D.createContext(null),Dt=()=>{const e=D.useContext($p);if(!e)throw new Error("Select compound components must be used within Select.Root");return e},Tt={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",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",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",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"}},ft={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 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 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 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 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"}},q0=()=>de("flex flex-col relative"),K0=({size:e,color:t,isDisabled:n,isFocused:r,isInvalid:i,hasMessage:s})=>{const o=ft[i?"negative":t];return de("flex items-center justify-between only:rounded first:rounded-t last:rounded-b",Tt[e].control,o.control,s?["ring-1",o.messageBorder]:["border",n?"border-input-border":r?o.controlFocused:`border-select-border
17
+ focus-within:${o.controlFocused}`],{[o.controlDisabled]:n})},J0=({isMulti:e})=>de("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":e,"px-0.5":!e}),G0=({size:e,color:t})=>de("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 px-1 text-input-text",Tt[e].input,ft[t].placeholder),Y0=({size:e,color:t})=>de("select-none truncate",Tt[e].placeholder,ft[t].placeholder),Q0=({size:e,color:t,isDisabled:n})=>de("truncate",Tt[e].singleValue,n?ft[t].singleValueDisabled:ft[t].singleValue),X0=({size:e,color:t,isDisabled:n,isFocused:r})=>de("inline-flex items-center rounded-xs",Tt[e].multiValue,n?ft[t].multiValueDisabled:ft[t].multiValue,{"border border-white":r&&!n}),Z0=({size:e})=>de("truncate",Tt[e].multiValueLabel),eb=({size:e,color:t,isDisabled:n})=>de("flex items-center justify-center cursor-pointer transition-colors",Tt[e].multiValueRemove,ft[t].multiValueRemove),Wp=({size:e,color:t,isDisabled:n})=>de("flex items-center justify-center transition-colors rounded",Tt[e].clearIndicator,n?"hidden":[ft[t].clearIndicator,ft[t].clearIndicatorHover]),tb=({size:e,color:t,isDisabled:n})=>de("flex items-center justify-center transition-colors rounded",Tt[e].dropdownIndicator,n?"text-grey-200":[ft[t].dropdownIndicator,ft[t].dropdownIndicatorHover]),nb=({size:e,placement:t,hasMessage:n,color:r})=>{const i={auto:"top-full rounded-t-none",bottom:"top-full rounded-t-none",top:"bottom-full rounded-b-none"};return de("absolute w-full z-50 rounded overflow-hidden border border-t-0",ft[r].menu,{[ft[r].messageBorder]:n},i[t||"auto"],Tt[e].menu)},rb=({size:e})=>de("overflow-y-auto",Tt[e].menuList,ft.primary.menuList),ib=({size:e,color:t,isDisabled:n,isFocused:r,isSelected:i})=>de("transition-colors duration-150 cursor-pointer mx-1 rounded flex items-center gap-2",Tt[e].option,{[ft[t].optionDisabled]:n,[ft[t].optionSelected]:i&&!n,[ft[t].optionFocused]:r&&!i&&!n,[ft[t].option]:!i&&!r&&!n}),sb=({size:e})=>de(Tt[e].group),ab=({size:e,color:t})=>de(Tt[e].groupHeading,ft[t].groupHeading),ob=({size:e})=>de("text-grey-100",Tt[e].loadingMessage),lb=({size:e})=>de(Tt[e].noOptionsMessage,ft.primary.noOptionsMessage),Up=e=>{const t=e[0];return e.length>0&&typeof t=="object"&&t!==null&&"options"in t&&Array.isArray(t.options)},ub=e=>Up(e)?e.reduce((t,n)=>[...t,...n.options],[]):e;function Pt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Te.apply(null,arguments)}function Va(e,t){return Va=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Va(e,t)}function cb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Va(e,t)}var xi={exports:{}},Ws={exports:{}},Ze={};/** @license React v16.13.1
18
18
  * react-is.production.min.js
19
19
  *
20
20
  * Copyright (c) Facebook, Inc. and its affiliates.
21
21
  *
22
22
  * This source code is licensed under the MIT license found in the
23
23
  * LICENSE file in the root directory of this source tree.
24
- */var Bu;function cb(){if(Bu)return Ze;Bu=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=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,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function _(x){if(typeof x=="object"&&x!==null){var f=x.$$typeof;switch(f){case t:switch(x=x.type,x){case u:case c:case r:case s:case i:case h:return x;default:switch(x=x&&x.$$typeof,x){case l:case d:case w:case m:case o:return x;default:return f}}case n:return f}}}function A(x){return _(x)===c}return Ze.AsyncMode=u,Ze.ConcurrentMode=c,Ze.ContextConsumer=l,Ze.ContextProvider=o,Ze.Element=t,Ze.ForwardRef=d,Ze.Fragment=r,Ze.Lazy=w,Ze.Memo=m,Ze.Portal=n,Ze.Profiler=s,Ze.StrictMode=i,Ze.Suspense=h,Ze.isAsyncMode=function(x){return A(x)||_(x)===u},Ze.isConcurrentMode=A,Ze.isContextConsumer=function(x){return _(x)===l},Ze.isContextProvider=function(x){return _(x)===o},Ze.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},Ze.isForwardRef=function(x){return _(x)===d},Ze.isFragment=function(x){return _(x)===r},Ze.isLazy=function(x){return _(x)===w},Ze.isMemo=function(x){return _(x)===m},Ze.isPortal=function(x){return _(x)===n},Ze.isProfiler=function(x){return _(x)===s},Ze.isStrictMode=function(x){return _(x)===i},Ze.isSuspense=function(x){return _(x)===h},Ze.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===c||x===s||x===i||x===h||x===g||typeof x=="object"&&x!==null&&(x.$$typeof===w||x.$$typeof===m||x.$$typeof===o||x.$$typeof===l||x.$$typeof===d||x.$$typeof===y||x.$$typeof===k||x.$$typeof===v||x.$$typeof===S)},Ze.typeOf=_,Ze}var rt={};/** @license React v16.13.1
24
+ */var Bu;function hb(){if(Bu)return Ze;Bu=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=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,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function _(x){if(typeof x=="object"&&x!==null){var f=x.$$typeof;switch(f){case t:switch(x=x.type,x){case u:case c:case r:case s:case i:case h:return x;default:switch(x=x&&x.$$typeof,x){case l:case d:case w:case m:case o:return x;default:return f}}case n:return f}}}function A(x){return _(x)===c}return Ze.AsyncMode=u,Ze.ConcurrentMode=c,Ze.ContextConsumer=l,Ze.ContextProvider=o,Ze.Element=t,Ze.ForwardRef=d,Ze.Fragment=r,Ze.Lazy=w,Ze.Memo=m,Ze.Portal=n,Ze.Profiler=s,Ze.StrictMode=i,Ze.Suspense=h,Ze.isAsyncMode=function(x){return A(x)||_(x)===u},Ze.isConcurrentMode=A,Ze.isContextConsumer=function(x){return _(x)===l},Ze.isContextProvider=function(x){return _(x)===o},Ze.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},Ze.isForwardRef=function(x){return _(x)===d},Ze.isFragment=function(x){return _(x)===r},Ze.isLazy=function(x){return _(x)===w},Ze.isMemo=function(x){return _(x)===m},Ze.isPortal=function(x){return _(x)===n},Ze.isProfiler=function(x){return _(x)===s},Ze.isStrictMode=function(x){return _(x)===i},Ze.isSuspense=function(x){return _(x)===h},Ze.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===c||x===s||x===i||x===h||x===g||typeof x=="object"&&x!==null&&(x.$$typeof===w||x.$$typeof===m||x.$$typeof===o||x.$$typeof===l||x.$$typeof===d||x.$$typeof===y||x.$$typeof===k||x.$$typeof===v||x.$$typeof===S)},Ze.typeOf=_,Ze}var rt={};/** @license React v16.13.1
25
25
  * react-is.development.js
26
26
  *
27
27
  * Copyright (c) Facebook, Inc. and its affiliates.
28
28
  *
29
29
  * This source code is licensed under the MIT license found in the
30
30
  * LICENSE file in the root directory of this source tree.
31
- */var Hu;function hb(){return Hu||(Hu=1,pe.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=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,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function _(G){return typeof G=="string"||typeof G=="function"||G===r||G===c||G===s||G===i||G===h||G===g||typeof G=="object"&&G!==null&&(G.$$typeof===w||G.$$typeof===m||G.$$typeof===o||G.$$typeof===l||G.$$typeof===d||G.$$typeof===y||G.$$typeof===k||G.$$typeof===v||G.$$typeof===S)}function A(G){if(typeof G=="object"&&G!==null){var ae=G.$$typeof;switch(ae){case t:var ce=G.type;switch(ce){case u:case c:case r:case s:case i:case h:return ce;default:var Ie=ce&&ce.$$typeof;switch(Ie){case l:case d:case w:case m:case o:return Ie;default:return ae}}case n:return ae}}}var x=u,f=c,R=l,V=o,L=t,N=d,$=r,U=w,J=m,Y=n,Q=s,Z=i,q=h,K=!1;function ie(G){return K||(K=!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(G)||A(G)===u}function E(G){return A(G)===c}function M(G){return A(G)===l}function H(G){return A(G)===o}function T(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function B(G){return A(G)===d}function z(G){return A(G)===r}function W(G){return A(G)===w}function F(G){return A(G)===m}function te(G){return A(G)===n}function ee(G){return A(G)===s}function ne(G){return A(G)===i}function le(G){return A(G)===h}rt.AsyncMode=x,rt.ConcurrentMode=f,rt.ContextConsumer=R,rt.ContextProvider=V,rt.Element=L,rt.ForwardRef=N,rt.Fragment=$,rt.Lazy=U,rt.Memo=J,rt.Portal=Y,rt.Profiler=Q,rt.StrictMode=Z,rt.Suspense=q,rt.isAsyncMode=ie,rt.isConcurrentMode=E,rt.isContextConsumer=M,rt.isContextProvider=H,rt.isElement=T,rt.isForwardRef=B,rt.isFragment=z,rt.isLazy=W,rt.isMemo=F,rt.isPortal=te,rt.isProfiler=ee,rt.isStrictMode=ne,rt.isSuspense=le,rt.isValidElementType=_,rt.typeOf=A})()),rt}var $u;function qp(){return $u||($u=1,pe.NODE_ENV==="production"?Ws.exports=cb():Ws.exports=hb()),Ws.exports}/*
31
+ */var Hu;function pb(){return Hu||(Hu=1,pe.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=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,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function _(G){return typeof G=="string"||typeof G=="function"||G===r||G===c||G===s||G===i||G===h||G===g||typeof G=="object"&&G!==null&&(G.$$typeof===w||G.$$typeof===m||G.$$typeof===o||G.$$typeof===l||G.$$typeof===d||G.$$typeof===y||G.$$typeof===k||G.$$typeof===v||G.$$typeof===S)}function A(G){if(typeof G=="object"&&G!==null){var ae=G.$$typeof;switch(ae){case t:var ce=G.type;switch(ce){case u:case c:case r:case s:case i:case h:return ce;default:var Ie=ce&&ce.$$typeof;switch(Ie){case l:case d:case w:case m:case o:return Ie;default:return ae}}case n:return ae}}}var x=u,f=c,R=l,V=o,L=t,N=d,$=r,U=w,J=m,Y=n,Q=s,Z=i,q=h,K=!1;function ie(G){return K||(K=!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(G)||A(G)===u}function E(G){return A(G)===c}function M(G){return A(G)===l}function H(G){return A(G)===o}function T(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function B(G){return A(G)===d}function z(G){return A(G)===r}function W(G){return A(G)===w}function F(G){return A(G)===m}function te(G){return A(G)===n}function ee(G){return A(G)===s}function ne(G){return A(G)===i}function le(G){return A(G)===h}rt.AsyncMode=x,rt.ConcurrentMode=f,rt.ContextConsumer=R,rt.ContextProvider=V,rt.Element=L,rt.ForwardRef=N,rt.Fragment=$,rt.Lazy=U,rt.Memo=J,rt.Portal=Y,rt.Profiler=Q,rt.StrictMode=Z,rt.Suspense=q,rt.isAsyncMode=ie,rt.isConcurrentMode=E,rt.isContextConsumer=M,rt.isContextProvider=H,rt.isElement=T,rt.isForwardRef=B,rt.isFragment=z,rt.isLazy=W,rt.isMemo=F,rt.isPortal=te,rt.isProfiler=ee,rt.isStrictMode=ne,rt.isSuspense=le,rt.isValidElementType=_,rt.typeOf=A})()),rt}var $u;function qp(){return $u||($u=1,pe.NODE_ENV==="production"?Ws.exports=hb():Ws.exports=pb()),Ws.exports}/*
32
32
  object-assign
33
33
  (c) Sindre Sorhus
34
34
  @license MIT
35
- */var Us,Wu;function pb(){if(Wu)return Us;Wu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){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(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 Us=i()?Object.assign:function(s,o){for(var l,u=r(s),c,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var h in l)t.call(l,h)&&(u[h]=l[h]);if(e){c=e(l);for(var g=0;g<c.length;g++)n.call(l,c[g])&&(u[c[g]]=l[c[g]])}}return u},Us}var qs,Uu;function go(){if(Uu)return qs;Uu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return qs=e,qs}var qu,Ku;function Kp(){return Ku||(Ku=1,qu=Function.call.bind(Object.prototype.hasOwnProperty)),qu}var Ks,Ju;function db(){if(Ju)return Ks;Ju=1;var e=function(){};if(pe.NODE_ENV!=="production"){var t=go(),n={},r=Kp();e=function(s){var o="Warning: "+s;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(s,o,l,u,c){if(pe.NODE_ENV!=="production"){for(var d in s)if(r(s,d)){var h;try{if(typeof s[d]!="function"){var g=Error((u||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}h=s[d](o,d,u,l,null,t)}catch(w){h=w}if(h&&!(h instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+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 n)){n[h.message]=!0;var m=c?c():"";e("Failed "+l+" type: "+h.message+(m??""))}}}}return i.resetWarningCache=function(){pe.NODE_ENV!=="production"&&(n={})},Ks=i,Ks}var Js,Gu;function fb(){if(Gu)return Js;Gu=1;var e=qp(),t=pb(),n=go(),r=Kp(),i=db(),s=function(){};pe.NODE_ENV!=="production"&&(s=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return Js=function(l,u){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function h(E){var M=E&&(c&&E[c]||E[d]);if(typeof M=="function")return M}var g="<<anonymous>>",m={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:v(),arrayOf:_,element:A(),elementType:x(),instanceOf:f,node:N(),objectOf:V,oneOf:R,oneOfType:L,shape:U,exact:J};function w(E,M){return E===M?E!==0||1/E===1/M:E!==E&&M!==M}function S(E,M){this.message=E,this.data=M&&typeof M=="object"?M:{},this.stack=""}S.prototype=Error.prototype;function y(E){if(pe.NODE_ENV!=="production")var M={},H=0;function T(z,W,F,te,ee,ne,le){if(te=te||g,ne=ne||F,le!==n){if(u){var G=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 G.name="Invariant Violation",G}else if(pe.NODE_ENV!=="production"&&typeof console<"u"){var ae=te+":"+F;!M[ae]&&H<3&&(s("You are manually calling a React.PropTypes validation function for the `"+ne+"` prop on `"+te+"`. 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."),M[ae]=!0,H++)}}return W[F]==null?z?W[F]===null?new S("The "+ee+" `"+ne+"` is marked as required "+("in `"+te+"`, but its value is `null`.")):new S("The "+ee+" `"+ne+"` is marked as required in "+("`"+te+"`, but its value is `undefined`.")):null:E(W,F,te,ee,ne)}var B=T.bind(null,!1);return B.isRequired=T.bind(null,!0),B}function k(E){function M(H,T,B,z,W,F){var te=H[T],ee=Z(te);if(ee!==E){var ne=q(te);return new S("Invalid "+z+" `"+W+"` of type "+("`"+ne+"` supplied to `"+B+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return y(M)}function v(){return y(o)}function _(E){function M(H,T,B,z,W){if(typeof E!="function")return new S("Property `"+W+"` of component `"+B+"` has invalid PropType notation inside arrayOf.");var F=H[T];if(!Array.isArray(F)){var te=Z(F);return new S("Invalid "+z+" `"+W+"` of type "+("`"+te+"` supplied to `"+B+"`, expected an array."))}for(var ee=0;ee<F.length;ee++){var ne=E(F,ee,B,z,W+"["+ee+"]",n);if(ne instanceof Error)return ne}return null}return y(M)}function A(){function E(M,H,T,B,z){var W=M[H];if(!l(W)){var F=Z(W);return new S("Invalid "+B+" `"+z+"` of type "+("`"+F+"` supplied to `"+T+"`, expected a single ReactElement."))}return null}return y(E)}function x(){function E(M,H,T,B,z){var W=M[H];if(!e.isValidElementType(W)){var F=Z(W);return new S("Invalid "+B+" `"+z+"` of type "+("`"+F+"` supplied to `"+T+"`, expected a single ReactElement type."))}return null}return y(E)}function f(E){function M(H,T,B,z,W){if(!(H[T]instanceof E)){var F=E.name||g,te=ie(H[T]);return new S("Invalid "+z+" `"+W+"` of type "+("`"+te+"` supplied to `"+B+"`, expected ")+("instance of `"+F+"`."))}return null}return y(M)}function R(E){if(!Array.isArray(E))return pe.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),o;function M(H,T,B,z,W){for(var F=H[T],te=0;te<E.length;te++)if(w(F,E[te]))return null;var ee=JSON.stringify(E,function(ne,le){var G=q(le);return G==="symbol"?String(le):le});return new S("Invalid "+z+" `"+W+"` of value `"+String(F)+"` "+("supplied to `"+B+"`, expected one of "+ee+"."))}return y(M)}function V(E){function M(H,T,B,z,W){if(typeof E!="function")return new S("Property `"+W+"` of component `"+B+"` has invalid PropType notation inside objectOf.");var F=H[T],te=Z(F);if(te!=="object")return new S("Invalid "+z+" `"+W+"` of type "+("`"+te+"` supplied to `"+B+"`, expected an object."));for(var ee in F)if(r(F,ee)){var ne=E(F,ee,B,z,W+"."+ee,n);if(ne instanceof Error)return ne}return null}return y(M)}function L(E){if(!Array.isArray(E))return pe.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var M=0;M<E.length;M++){var H=E[M];if(typeof H!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(H)+" at index "+M+"."),o}function T(B,z,W,F,te){for(var ee=[],ne=0;ne<E.length;ne++){var le=E[ne],G=le(B,z,W,F,te,n);if(G==null)return null;G.data&&r(G.data,"expectedType")&&ee.push(G.data.expectedType)}var ae=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new S("Invalid "+F+" `"+te+"` supplied to "+("`"+W+"`"+ae+"."))}return y(T)}function N(){function E(M,H,T,B,z){return Y(M[H])?null:new S("Invalid "+B+" `"+z+"` supplied to "+("`"+T+"`, expected a ReactNode."))}return y(E)}function $(E,M,H,T,B){return new S((E||"React class")+": "+M+" type `"+H+"."+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+B+"`.")}function U(E){function M(H,T,B,z,W){var F=H[T],te=Z(F);if(te!=="object")return new S("Invalid "+z+" `"+W+"` of type `"+te+"` "+("supplied to `"+B+"`, expected `object`."));for(var ee in E){var ne=E[ee];if(typeof ne!="function")return $(B,z,W,ee,q(ne));var le=ne(F,ee,B,z,W+"."+ee,n);if(le)return le}return null}return y(M)}function J(E){function M(H,T,B,z,W){var F=H[T],te=Z(F);if(te!=="object")return new S("Invalid "+z+" `"+W+"` of type `"+te+"` "+("supplied to `"+B+"`, expected `object`."));var ee=t({},H[T],E);for(var ne in ee){var le=E[ne];if(r(E,ne)&&typeof le!="function")return $(B,z,W,ne,q(le));if(!le)return new S("Invalid "+z+" `"+W+"` key `"+ne+"` supplied to `"+B+"`.\nBad object: "+JSON.stringify(H[T],null," ")+`
36
- Valid keys: `+JSON.stringify(Object.keys(E),null," "));var G=le(F,ne,B,z,W+"."+ne,n);if(G)return G}return null}return y(M)}function Y(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(Y);if(E===null||l(E))return!0;var M=h(E);if(M){var H=M.call(E),T;if(M!==E.entries){for(;!(T=H.next()).done;)if(!Y(T.value))return!1}else for(;!(T=H.next()).done;){var B=T.value;if(B&&!Y(B[1]))return!1}}else return!1;return!0;default:return!1}}function Q(E,M){return E==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function Z(E){var M=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":Q(M,E)?"symbol":M}function q(E){if(typeof E>"u"||E===null)return""+E;var M=Z(E);if(M==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return M}function K(E){var M=q(E);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function ie(E){return!E.constructor||!E.constructor.name?g:E.constructor.name}return m.checkPropTypes=i,m.resetWarningCache=i.resetWarningCache,m.PropTypes=m,m},Js}var Gs,Yu;function gb(){if(Yu)return Gs;Yu=1;var e=go();function t(){}function n(){}return n.resetWarningCache=t,Gs=function(){function r(o,l,u,c,d,h){if(h!==e){var g=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 g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Gs}var Qu;function mb(){if(Qu)return xi.exports;if(Qu=1,pe.NODE_ENV!=="production"){var e=qp(),t=!0;xi.exports=fb()(e.isElement,t)}else xi.exports=gb()();return xi.exports}var xb=mb();const ge=mp(xb);var Ys={exports:{}},et={};/**
35
+ */var Us,Wu;function db(){if(Wu)return Us;Wu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){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(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 Us=i()?Object.assign:function(s,o){for(var l,u=r(s),c,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var h in l)t.call(l,h)&&(u[h]=l[h]);if(e){c=e(l);for(var g=0;g<c.length;g++)n.call(l,c[g])&&(u[c[g]]=l[c[g]])}}return u},Us}var qs,Uu;function go(){if(Uu)return qs;Uu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return qs=e,qs}var qu,Ku;function Kp(){return Ku||(Ku=1,qu=Function.call.bind(Object.prototype.hasOwnProperty)),qu}var Ks,Ju;function fb(){if(Ju)return Ks;Ju=1;var e=function(){};if(pe.NODE_ENV!=="production"){var t=go(),n={},r=Kp();e=function(s){var o="Warning: "+s;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(s,o,l,u,c){if(pe.NODE_ENV!=="production"){for(var d in s)if(r(s,d)){var h;try{if(typeof s[d]!="function"){var g=Error((u||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}h=s[d](o,d,u,l,null,t)}catch(w){h=w}if(h&&!(h instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+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 n)){n[h.message]=!0;var m=c?c():"";e("Failed "+l+" type: "+h.message+(m??""))}}}}return i.resetWarningCache=function(){pe.NODE_ENV!=="production"&&(n={})},Ks=i,Ks}var Js,Gu;function gb(){if(Gu)return Js;Gu=1;var e=qp(),t=db(),n=go(),r=Kp(),i=fb(),s=function(){};pe.NODE_ENV!=="production"&&(s=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return Js=function(l,u){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function h(E){var M=E&&(c&&E[c]||E[d]);if(typeof M=="function")return M}var g="<<anonymous>>",m={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:v(),arrayOf:_,element:A(),elementType:x(),instanceOf:f,node:N(),objectOf:V,oneOf:R,oneOfType:L,shape:U,exact:J};function w(E,M){return E===M?E!==0||1/E===1/M:E!==E&&M!==M}function S(E,M){this.message=E,this.data=M&&typeof M=="object"?M:{},this.stack=""}S.prototype=Error.prototype;function y(E){if(pe.NODE_ENV!=="production")var M={},H=0;function T(z,W,F,te,ee,ne,le){if(te=te||g,ne=ne||F,le!==n){if(u){var G=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 G.name="Invariant Violation",G}else if(pe.NODE_ENV!=="production"&&typeof console<"u"){var ae=te+":"+F;!M[ae]&&H<3&&(s("You are manually calling a React.PropTypes validation function for the `"+ne+"` prop on `"+te+"`. 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."),M[ae]=!0,H++)}}return W[F]==null?z?W[F]===null?new S("The "+ee+" `"+ne+"` is marked as required "+("in `"+te+"`, but its value is `null`.")):new S("The "+ee+" `"+ne+"` is marked as required in "+("`"+te+"`, but its value is `undefined`.")):null:E(W,F,te,ee,ne)}var B=T.bind(null,!1);return B.isRequired=T.bind(null,!0),B}function k(E){function M(H,T,B,z,W,F){var te=H[T],ee=Z(te);if(ee!==E){var ne=q(te);return new S("Invalid "+z+" `"+W+"` of type "+("`"+ne+"` supplied to `"+B+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return y(M)}function v(){return y(o)}function _(E){function M(H,T,B,z,W){if(typeof E!="function")return new S("Property `"+W+"` of component `"+B+"` has invalid PropType notation inside arrayOf.");var F=H[T];if(!Array.isArray(F)){var te=Z(F);return new S("Invalid "+z+" `"+W+"` of type "+("`"+te+"` supplied to `"+B+"`, expected an array."))}for(var ee=0;ee<F.length;ee++){var ne=E(F,ee,B,z,W+"["+ee+"]",n);if(ne instanceof Error)return ne}return null}return y(M)}function A(){function E(M,H,T,B,z){var W=M[H];if(!l(W)){var F=Z(W);return new S("Invalid "+B+" `"+z+"` of type "+("`"+F+"` supplied to `"+T+"`, expected a single ReactElement."))}return null}return y(E)}function x(){function E(M,H,T,B,z){var W=M[H];if(!e.isValidElementType(W)){var F=Z(W);return new S("Invalid "+B+" `"+z+"` of type "+("`"+F+"` supplied to `"+T+"`, expected a single ReactElement type."))}return null}return y(E)}function f(E){function M(H,T,B,z,W){if(!(H[T]instanceof E)){var F=E.name||g,te=ie(H[T]);return new S("Invalid "+z+" `"+W+"` of type "+("`"+te+"` supplied to `"+B+"`, expected ")+("instance of `"+F+"`."))}return null}return y(M)}function R(E){if(!Array.isArray(E))return pe.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),o;function M(H,T,B,z,W){for(var F=H[T],te=0;te<E.length;te++)if(w(F,E[te]))return null;var ee=JSON.stringify(E,function(ne,le){var G=q(le);return G==="symbol"?String(le):le});return new S("Invalid "+z+" `"+W+"` of value `"+String(F)+"` "+("supplied to `"+B+"`, expected one of "+ee+"."))}return y(M)}function V(E){function M(H,T,B,z,W){if(typeof E!="function")return new S("Property `"+W+"` of component `"+B+"` has invalid PropType notation inside objectOf.");var F=H[T],te=Z(F);if(te!=="object")return new S("Invalid "+z+" `"+W+"` of type "+("`"+te+"` supplied to `"+B+"`, expected an object."));for(var ee in F)if(r(F,ee)){var ne=E(F,ee,B,z,W+"."+ee,n);if(ne instanceof Error)return ne}return null}return y(M)}function L(E){if(!Array.isArray(E))return pe.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var M=0;M<E.length;M++){var H=E[M];if(typeof H!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(H)+" at index "+M+"."),o}function T(B,z,W,F,te){for(var ee=[],ne=0;ne<E.length;ne++){var le=E[ne],G=le(B,z,W,F,te,n);if(G==null)return null;G.data&&r(G.data,"expectedType")&&ee.push(G.data.expectedType)}var ae=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new S("Invalid "+F+" `"+te+"` supplied to "+("`"+W+"`"+ae+"."))}return y(T)}function N(){function E(M,H,T,B,z){return Y(M[H])?null:new S("Invalid "+B+" `"+z+"` supplied to "+("`"+T+"`, expected a ReactNode."))}return y(E)}function $(E,M,H,T,B){return new S((E||"React class")+": "+M+" type `"+H+"."+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+B+"`.")}function U(E){function M(H,T,B,z,W){var F=H[T],te=Z(F);if(te!=="object")return new S("Invalid "+z+" `"+W+"` of type `"+te+"` "+("supplied to `"+B+"`, expected `object`."));for(var ee in E){var ne=E[ee];if(typeof ne!="function")return $(B,z,W,ee,q(ne));var le=ne(F,ee,B,z,W+"."+ee,n);if(le)return le}return null}return y(M)}function J(E){function M(H,T,B,z,W){var F=H[T],te=Z(F);if(te!=="object")return new S("Invalid "+z+" `"+W+"` of type `"+te+"` "+("supplied to `"+B+"`, expected `object`."));var ee=t({},H[T],E);for(var ne in ee){var le=E[ne];if(r(E,ne)&&typeof le!="function")return $(B,z,W,ne,q(le));if(!le)return new S("Invalid "+z+" `"+W+"` key `"+ne+"` supplied to `"+B+"`.\nBad object: "+JSON.stringify(H[T],null," ")+`
36
+ Valid keys: `+JSON.stringify(Object.keys(E),null," "));var G=le(F,ne,B,z,W+"."+ne,n);if(G)return G}return null}return y(M)}function Y(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(Y);if(E===null||l(E))return!0;var M=h(E);if(M){var H=M.call(E),T;if(M!==E.entries){for(;!(T=H.next()).done;)if(!Y(T.value))return!1}else for(;!(T=H.next()).done;){var B=T.value;if(B&&!Y(B[1]))return!1}}else return!1;return!0;default:return!1}}function Q(E,M){return E==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function Z(E){var M=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":Q(M,E)?"symbol":M}function q(E){if(typeof E>"u"||E===null)return""+E;var M=Z(E);if(M==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return M}function K(E){var M=q(E);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function ie(E){return!E.constructor||!E.constructor.name?g:E.constructor.name}return m.checkPropTypes=i,m.resetWarningCache=i.resetWarningCache,m.PropTypes=m,m},Js}var Gs,Yu;function mb(){if(Yu)return Gs;Yu=1;var e=go();function t(){}function n(){}return n.resetWarningCache=t,Gs=function(){function r(o,l,u,c,d,h){if(h!==e){var g=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 g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Gs}var Qu;function xb(){if(Qu)return xi.exports;if(Qu=1,pe.NODE_ENV!=="production"){var e=qp(),t=!0;xi.exports=gb()(e.isElement,t)}else xi.exports=mb()();return xi.exports}var vb=xb();const ge=mp(vb);var Ys={exports:{}},et={};/**
37
37
  * @license React
38
38
  * react-is.production.min.js
39
39
  *
@@ -41,7 +41,7 @@ Valid keys: `+JSON.stringify(Object.keys(E),null," "));var G=le(F,ne,B,z,W+"."+
41
41
  *
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
- */var Xu;function vb(){if(Xu)return et;Xu=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=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"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),w;w=Symbol.for("react.module.reference");function S(y){if(typeof y=="object"&&y!==null){var k=y.$$typeof;switch(k){case e:switch(y=y.type,y){case n:case i:case r:case c:case d:return y;default:switch(y=y&&y.$$typeof,y){case l:case o:case u:case g:case h:case s:return y;default:return k}}case t:return k}}}return et.ContextConsumer=o,et.ContextProvider=s,et.Element=e,et.ForwardRef=u,et.Fragment=n,et.Lazy=g,et.Memo=h,et.Portal=t,et.Profiler=i,et.StrictMode=r,et.Suspense=c,et.SuspenseList=d,et.isAsyncMode=function(){return!1},et.isConcurrentMode=function(){return!1},et.isContextConsumer=function(y){return S(y)===o},et.isContextProvider=function(y){return S(y)===s},et.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},et.isForwardRef=function(y){return S(y)===u},et.isFragment=function(y){return S(y)===n},et.isLazy=function(y){return S(y)===g},et.isMemo=function(y){return S(y)===h},et.isPortal=function(y){return S(y)===t},et.isProfiler=function(y){return S(y)===i},et.isStrictMode=function(y){return S(y)===r},et.isSuspense=function(y){return S(y)===c},et.isSuspenseList=function(y){return S(y)===d},et.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===i||y===r||y===c||y===d||y===m||typeof y=="object"&&y!==null&&(y.$$typeof===g||y.$$typeof===h||y.$$typeof===s||y.$$typeof===o||y.$$typeof===u||y.$$typeof===w||y.getModuleId!==void 0)},et.typeOf=S,et}var it={};/**
44
+ */var Xu;function bb(){if(Xu)return et;Xu=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=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"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),w;w=Symbol.for("react.module.reference");function S(y){if(typeof y=="object"&&y!==null){var k=y.$$typeof;switch(k){case e:switch(y=y.type,y){case n:case i:case r:case c:case d:return y;default:switch(y=y&&y.$$typeof,y){case l:case o:case u:case g:case h:case s:return y;default:return k}}case t:return k}}}return et.ContextConsumer=o,et.ContextProvider=s,et.Element=e,et.ForwardRef=u,et.Fragment=n,et.Lazy=g,et.Memo=h,et.Portal=t,et.Profiler=i,et.StrictMode=r,et.Suspense=c,et.SuspenseList=d,et.isAsyncMode=function(){return!1},et.isConcurrentMode=function(){return!1},et.isContextConsumer=function(y){return S(y)===o},et.isContextProvider=function(y){return S(y)===s},et.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},et.isForwardRef=function(y){return S(y)===u},et.isFragment=function(y){return S(y)===n},et.isLazy=function(y){return S(y)===g},et.isMemo=function(y){return S(y)===h},et.isPortal=function(y){return S(y)===t},et.isProfiler=function(y){return S(y)===i},et.isStrictMode=function(y){return S(y)===r},et.isSuspense=function(y){return S(y)===c},et.isSuspenseList=function(y){return S(y)===d},et.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===i||y===r||y===c||y===d||y===m||typeof y=="object"&&y!==null&&(y.$$typeof===g||y.$$typeof===h||y.$$typeof===s||y.$$typeof===o||y.$$typeof===u||y.$$typeof===w||y.getModuleId!==void 0)},et.typeOf=S,et}var it={};/**
45
45
  * @license React
46
46
  * react-is.development.js
47
47
  *
@@ -49,108 +49,108 @@ Valid keys: `+JSON.stringify(Object.keys(E),null," "));var G=le(F,ne,B,z,W+"."+
49
49
  *
50
50
  * This source code is licensed under the MIT license found in the
51
51
  * LICENSE file in the root directory of this source tree.
52
- */var Zu;function bb(){return Zu||(Zu=1,pe.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=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"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),w=!1,S=!1,y=!1,k=!1,v=!1,_;_=Symbol.for("react.module.reference");function A(ce){return!!(typeof ce=="string"||typeof ce=="function"||ce===n||ce===i||v||ce===r||ce===c||ce===d||k||ce===m||w||S||y||typeof ce=="object"&&ce!==null&&(ce.$$typeof===g||ce.$$typeof===h||ce.$$typeof===s||ce.$$typeof===o||ce.$$typeof===u||ce.$$typeof===_||ce.getModuleId!==void 0))}function x(ce){if(typeof ce=="object"&&ce!==null){var Ie=ce.$$typeof;switch(Ie){case e:var Ce=ce.type;switch(Ce){case n:case i:case r:case c:case d:return Ce;default:var Re=Ce&&Ce.$$typeof;switch(Re){case l:case o:case u:case g:case h:case s:return Re;default:return Ie}}case t:return Ie}}}var f=o,R=s,V=e,L=u,N=n,$=g,U=h,J=t,Y=i,Q=r,Z=c,q=d,K=!1,ie=!1;function E(ce){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function M(ce){return ie||(ie=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(ce){return x(ce)===o}function T(ce){return x(ce)===s}function B(ce){return typeof ce=="object"&&ce!==null&&ce.$$typeof===e}function z(ce){return x(ce)===u}function W(ce){return x(ce)===n}function F(ce){return x(ce)===g}function te(ce){return x(ce)===h}function ee(ce){return x(ce)===t}function ne(ce){return x(ce)===i}function le(ce){return x(ce)===r}function G(ce){return x(ce)===c}function ae(ce){return x(ce)===d}it.ContextConsumer=f,it.ContextProvider=R,it.Element=V,it.ForwardRef=L,it.Fragment=N,it.Lazy=$,it.Memo=U,it.Portal=J,it.Profiler=Y,it.StrictMode=Q,it.Suspense=Z,it.SuspenseList=q,it.isAsyncMode=E,it.isConcurrentMode=M,it.isContextConsumer=H,it.isContextProvider=T,it.isElement=B,it.isForwardRef=z,it.isFragment=W,it.isLazy=F,it.isMemo=te,it.isPortal=ee,it.isProfiler=ne,it.isStrictMode=le,it.isSuspense=G,it.isSuspenseList=ae,it.isValidElementType=A,it.typeOf=x})()),it}var ec;function yb(){return ec||(ec=1,pe.NODE_ENV==="production"?Ys.exports=vb():Ys.exports=bb()),Ys.exports}var tc=yb();const nc=e=>typeof e=="object"&&e!=null&&e.nodeType===1,rc=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",vi=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return rc(n.overflowY,t)||rc(n.overflowX,t)||(r=>{const i=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(e)}return!1},bi=(e,t,n,r,i,s,o,l)=>s<e&&o>t||s>e&&o<t?0:s<=e&&l<=n||o>=t&&l>=n?s-e-r:o>t&&l<n||s<e&&l>n?o-t+i:0,wb=e=>e.parentElement??(e.getRootNode().host||null),kb=(e,t)=>{var n,r,i,s;if(typeof document>"u")return[];const{inline:o,boundary:l,skipOverflowHiddenElements:u}=t,c=typeof l=="function"?l:J=>J!==l;if(!nc(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,h=[];let g=e;for(;nc(g)&&c(g);){if(g=wb(g),g===d){h.push(g);break}g!=null&&g===document.body&&vi(g)&&!vi(document.documentElement)||g!=null&&vi(g,u)&&h.push(g)}const m=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,w=(s=(i=window.visualViewport)==null?void 0:i.height)!=null?s:innerHeight,{scrollX:S,scrollY:y}=window,{height:k,width:v,top:_,right:A,bottom:x,left:f}=e.getBoundingClientRect(),{top:R,right:V,left:L}=(J=>{const Y=window.getComputedStyle(J);return{top:parseFloat(Y.scrollMarginTop)||0,right:parseFloat(Y.scrollMarginRight)||0,bottom:parseFloat(Y.scrollMarginBottom)||0,left:parseFloat(Y.scrollMarginLeft)||0}})(e);let N=_-R,$=o==="center"?f+v/2-L+V:o==="end"?A+V:f-L;const U=[];for(let J=0;J<h.length;J++){const Y=h[J],{height:Q,width:Z,top:q,right:K,bottom:ie,left:E}=Y.getBoundingClientRect();if(_>=0&&f>=0&&x<=w&&A<=m&&(Y===d&&!vi(Y)||_>=q&&x<=ie&&f>=E&&A<=K))return U;const M=getComputedStyle(Y),H=parseInt(M.borderLeftWidth,10),T=parseInt(M.borderTopWidth,10),B=parseInt(M.borderRightWidth,10),z=parseInt(M.borderBottomWidth,10);let W=0,F=0;const te="offsetWidth"in Y?Y.offsetWidth-Y.clientWidth-H-B:0,ee="offsetHeight"in Y?Y.offsetHeight-Y.clientHeight-T-z:0,ne="offsetWidth"in Y?Y.offsetWidth===0?0:Z/Y.offsetWidth:0,le="offsetHeight"in Y?Y.offsetHeight===0?0:Q/Y.offsetHeight:0;if(d===Y)W=bi(y,y+w,w,T,z,y+N,y+N+k,k),F=o==="start"?$:o==="center"?$-m/2:o==="end"?$-m:bi(S,S+m,m,H,B,S+$,S+$+v,v),W=Math.max(0,W+y),F=Math.max(0,F+S);else{W=bi(q,ie,Q,T,z+ee,N,N+k,k),F=o==="start"?$-E-H:o==="center"?$-(E+Z/2)+te/2:o==="end"?$-K+B+te:bi(E,K,Z,H,B+te,$,$+v,v);const{scrollLeft:G,scrollTop:ae}=Y;W=le===0?0:Math.max(0,Math.min(ae+W/le,Y.scrollHeight-Q/le+ee)),F=ne===0?0:Math.max(0,Math.min(G+F/ne,Y.scrollWidth-Z/ne+te)),N+=ae-W,$+=G-F}U.push({el:Y,top:W,left:F})}return U};var dr=function(){return dr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},dr.apply(this,arguments)},Sb=0;function ic(e){return typeof e=="function"?e:Ot}function Ot(){}function Jp(e,t){if(e){var n=kb(e,{boundary:t});n.forEach(function(r){var i=r.el,s=r.top,o=r.left;i.scrollTop=s,i.scrollLeft=o})}}function sc(e,t,n){var r=e===t||t instanceof n.Node&&e.contains&&e.contains(t);return r}function ys(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];r(),n=setTimeout(function(){n=null,e.apply(void 0,o)},t)}return i.cancel=r,i}function Qe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];return t.some(function(l){return l&&l.apply(void 0,[r].concat(s)),r.preventDownshiftDefault||r.hasOwnProperty("nativeEvent")&&r.nativeEvent.preventDownshiftDefault})}}function an(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){t.forEach(function(i){typeof i=="function"?i(r):i&&(i.current=r)})}}function Gp(){return String(Sb++)}function _b(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?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 ac(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function Yp(e){return typeof e.type=="string"}function Qp(e){return e.props}function Eb(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var Ib=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function yi(e){e===void 0&&(e={});var t={};return Ib.forEach(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function $r(e,t){return!e||!t?e:Object.keys(e).reduce(function(n,r){return n[r]=Ji(t,r)?t[r]:e[r],n},{})}function Ji(e,t){return e[t]!==void 0}function fr(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function Cb(e){return Object.prototype.toString.call(e)==="[object Object]"}function on(e,t,n,r,i){i===void 0&&(i=!1);var s=n.length;if(s===0)return-1;var o=s-1;(typeof e!="number"||e<0||e>o)&&(e=t>0?-1:o+1);var l=e+t;l<0?l=i?o:0:l>o&&(l=i?0:o);var u=Vn(l,t<0,n,r,i);return u===-1?e>=s?-1:e:u}function Vn(e,t,n,r,i){i===void 0&&(i=!1);var s=n.length;if(t){for(var o=e;o>=0;o--)if(!r(n[o],o))return o}else for(var l=e;l<s;l++)if(!r(n[l],l))return l;return i?Vn(t?s-1:0,t,n,r):-1}function Gi(e,t,n,r){return r===void 0&&(r=!0),n&&t.some(function(i){return i&&(sc(i,e,n)||r&&sc(i,n.document.activeElement,n))})}var mo=Ot;pe.NODE_ENV!=="production"&&(mo=function(e,t,n){var r="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&&n[i]===void 0?console.error('downshift: A component has changed the controlled prop "'+i+'" to be uncontrolled. '+r):t[i]===void 0&&n[i]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+i+'" to be controlled. '+r)})});var Ab=ys(function(e){Xp(e).textContent=""},500);function Xp(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 Zp(e,t){if(!(!e||!t)){var n=Xp(t);n.textContent=e,Ab(t)}}function Tb(e){var t=e==null?void 0:e.getElementById("a11y-status-message");t&&t.remove()}var ed=pe.NODE_ENV!=="production"?"__autocomplete_unknown__":0,td=pe.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,nd=pe.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,Di=pe.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,Li=pe.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,rd=pe.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,id=pe.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,sd=pe.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,ad=pe.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,od=pe.NODE_ENV!=="production"?"__autocomplete_click_item__":9,ld=pe.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,ud=pe.NODE_ENV!=="production"?"__autocomplete_change_input__":11,cd=pe.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,Ma=pe.NODE_ENV!=="production"?"__autocomplete_click_button__":13,hd=pe.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,pd=pe.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,dd=pe.NODE_ENV!=="production"?"__autocomplete_touchend__":16,Nb=Object.freeze({__proto__:null,blurButton:hd,blurInput:ld,changeInput:ud,clickButton:Ma,clickItem:od,controlledPropUpdatedSelectedItem:pd,itemMouseEnter:nd,keyDownArrowDown:Li,keyDownArrowUp:Di,keyDownEnd:ad,keyDownEnter:id,keyDownEscape:rd,keyDownHome:sd,keyDownSpaceButton:cd,mouseUp:td,touchEnd:dd,unknown:ed}),Ob=["refKey","ref"],Pb=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],Rb=["onKeyDown","onBlur","onChange","onInput","onChangeText"],Db=["refKey","ref"],Lb=["onMouseMove","onMouseDown","onClick","onPress","index","item"],Vb=(function(){var e=(function(t){function n(i){var s;s=t.call(this,i)||this,s.id=s.props.id||"downshift-"+Gp(),s.menuId=s.props.menuId||s.id+"-menu",s.labelId=s.props.labelId||s.id+"-label",s.inputId=s.props.inputId||s.id+"-input",s.getItemId=s.props.getItemId||function(v){return s.id+"-item-"+v},s.items=[],s.itemCount=null,s.previousResultCount=0,s.timeoutIds=[],s.internalSetTimeout=function(v,_){var A=setTimeout(function(){s.timeoutIds=s.timeoutIds.filter(function(x){return x!==A}),v()},_);s.timeoutIds.push(A)},s.setItemCount=function(v){s.itemCount=v},s.unsetItemCount=function(){s.itemCount=null},s.isItemDisabled=function(v,_){var A=s.getItemNodeFromIndex(_);return A&&A.hasAttribute("disabled")},s.setHighlightedIndex=function(v,_){v===void 0&&(v=s.props.defaultHighlightedIndex),_===void 0&&(_={}),_=yi(_),s.internalSetState(Te({highlightedIndex:v},_))},s.clearSelection=function(v){s.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:s.props.defaultHighlightedIndex,isOpen:s.props.defaultIsOpen},v)},s.selectItem=function(v,_,A){_=yi(_),s.internalSetState(Te({isOpen:s.props.defaultIsOpen,highlightedIndex:s.props.defaultHighlightedIndex,selectedItem:v,inputValue:s.props.itemToString(v)},_),A)},s.selectItemAtIndex=function(v,_,A){var x=s.items[v];x!=null&&s.selectItem(x,_,A)},s.selectHighlightedItem=function(v,_){return s.selectItemAtIndex(s.getState().highlightedIndex,v,_)},s.internalSetState=function(v,_){var A,x,f={},R=typeof v=="function";return!R&&v.hasOwnProperty("inputValue")&&s.props.onInputValueChange(v.inputValue,Te({},s.getStateAndHelpers(),v)),s.setState(function(V){var L;V=s.getState(V);var N=R?v(V):v;N=s.props.stateReducer(V,N),A=N.hasOwnProperty("selectedItem");var $={};return A&&N.selectedItem!==V.selectedItem&&(x=N.selectedItem),(L=N).type||(L.type=ed),Object.keys(N).forEach(function(U){V[U]!==N[U]&&(f[U]=N[U]),U!=="type"&&(N[U],Ji(s.props,U)||($[U]=N[U]))}),R&&N.hasOwnProperty("inputValue")&&s.props.onInputValueChange(N.inputValue,Te({},s.getStateAndHelpers(),N)),$},function(){ic(_)();var V=Object.keys(f).length>1;V&&s.props.onStateChange(f,s.getStateAndHelpers()),A&&s.props.onSelect(v.selectedItem,s.getStateAndHelpers()),x!==void 0&&s.props.onChange(x,s.getStateAndHelpers()),s.props.onUserAction(f,s.getStateAndHelpers())})},s.rootRef=function(v){return s._rootNode=v},s.getRootProps=function(v,_){var A,x=v===void 0?{}:v,f=x.refKey,R=f===void 0?"ref":f,V=x.ref,L=Pt(x,Ob),N=_===void 0?{}:_,$=N.suppressRefError,U=$===void 0?!1:$;s.getRootProps.called=!0,s.getRootProps.refKey=R,s.getRootProps.suppressRefError=U;var J=s.getState(),Y=J.isOpen;return Te((A={},A[R]=an(V,s.rootRef),A.role="combobox",A["aria-expanded"]=Y,A["aria-haspopup"]="listbox",A["aria-owns"]=Y?s.menuId:void 0,A["aria-labelledby"]=s.labelId,A),L)},s.keyDownHandlers={ArrowDown:function(v){var _=this;if(v.preventDefault(),this.getState().isOpen){var A=v.shiftKey?5:1;this.moveHighlightedIndex(A,{type:Li})}else this.internalSetState({isOpen:!0,type:Li},function(){var x=_.getItemCount();if(x>0){var f=_.getState(),R=f.highlightedIndex,V=on(R,1,{length:x},_.isItemDisabled,!0);_.setHighlightedIndex(V,{type:Li})}})},ArrowUp:function(v){var _=this;if(v.preventDefault(),this.getState().isOpen){var A=v.shiftKey?-5:-1;this.moveHighlightedIndex(A,{type:Di})}else this.internalSetState({isOpen:!0,type:Di},function(){var x=_.getItemCount();if(x>0){var f=_.getState(),R=f.highlightedIndex,V=on(R,-1,{length:x},_.isItemDisabled,!0);_.setHighlightedIndex(V,{type:Di})}})},Enter:function(v){if(v.which!==229){var _=this.getState(),A=_.isOpen,x=_.highlightedIndex;if(A&&x!=null){v.preventDefault();var f=this.items[x],R=this.getItemNodeFromIndex(x);if(f==null||R&&R.hasAttribute("disabled"))return;this.selectHighlightedItem({type:id})}}},Escape:function(v){v.preventDefault(),this.reset(Te({type:rd},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},s.buttonKeyDownHandlers=Te({},s.keyDownHandlers,{" ":function(v){v.preventDefault(),this.toggleMenu({type:cd})}}),s.inputKeyDownHandlers=Te({},s.keyDownHandlers,{Home:function(v){var _=this.getState(),A=_.isOpen;if(A){v.preventDefault();var x=this.getItemCount();if(!(x<=0||!A)){var f=Vn(0,!1,{length:x},this.isItemDisabled);this.setHighlightedIndex(f,{type:sd})}}},End:function(v){var _=this.getState(),A=_.isOpen;if(A){v.preventDefault();var x=this.getItemCount();if(!(x<=0||!A)){var f=Vn(x-1,!0,{length:x},this.isItemDisabled);this.setHighlightedIndex(f,{type:ad})}}}}),s.getToggleButtonProps=function(v){var _=v===void 0?{}:v,A=_.onClick;_.onPress;var x=_.onKeyDown,f=_.onKeyUp,R=_.onBlur,V=Pt(_,Pb),L=s.getState(),N=L.isOpen,$={onClick:Qe(A,s.buttonHandleClick),onKeyDown:Qe(x,s.buttonHandleKeyDown),onKeyUp:Qe(f,s.buttonHandleKeyUp),onBlur:Qe(R,s.buttonHandleBlur)},U=V.disabled?{}:$;return Te({type:"button",role:"button","aria-label":N?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},U,V)},s.buttonHandleKeyUp=function(v){v.preventDefault()},s.buttonHandleKeyDown=function(v){var _=fr(v);s.buttonKeyDownHandlers[_]&&s.buttonKeyDownHandlers[_].call(s,v)},s.buttonHandleClick=function(v){if(v.preventDefault(),s.props.environment){var _=s.props.environment.document,A=_.body,x=_.activeElement;A&&A===x&&v.target.focus()}pe.NODE_ENV==="test"?s.toggleMenu({type:Ma}):s.internalSetTimeout(function(){return s.toggleMenu({type:Ma})})},s.buttonHandleBlur=function(v){var _=v.target;s.internalSetTimeout(function(){if(!(s.isMouseDown||!s.props.environment)){var A=s.props.environment.document.activeElement;(A==null||A.id!==s.inputId)&&A!==_&&s.reset({type:hd})}})},s.getLabelProps=function(v){return Te({htmlFor:s.inputId,id:s.labelId},v)},s.getInputProps=function(v){var _=v===void 0?{}:v,A=_.onKeyDown,x=_.onBlur,f=_.onChange,R=_.onInput;_.onChangeText;var V=Pt(_,Rb),L,N={};L="onChange";var $=s.getState(),U=$.inputValue,J=$.isOpen,Y=$.highlightedIndex;if(!V.disabled){var Q;N=(Q={},Q[L]=Qe(f,R,s.inputHandleChange),Q.onKeyDown=Qe(A,s.inputHandleKeyDown),Q.onBlur=Qe(x,s.inputHandleBlur),Q)}return Te({"aria-autocomplete":"list","aria-activedescendant":J&&typeof Y=="number"&&Y>=0?s.getItemId(Y):void 0,"aria-controls":J?s.menuId:void 0,"aria-labelledby":V&&V["aria-label"]?void 0:s.labelId,autoComplete:"off",value:U,id:s.inputId},N,V)},s.inputHandleKeyDown=function(v){var _=fr(v);_&&s.inputKeyDownHandlers[_]&&s.inputKeyDownHandlers[_].call(s,v)},s.inputHandleChange=function(v){s.internalSetState({type:ud,isOpen:!0,inputValue:v.target.value,highlightedIndex:s.props.defaultHighlightedIndex})},s.inputHandleBlur=function(){s.internalSetTimeout(function(){var v;if(!(s.isMouseDown||!s.props.environment)){var _=s.props.environment.document.activeElement,A=(_==null||(v=_.dataset)==null?void 0:v.toggle)&&s._rootNode&&s._rootNode.contains(_);A||s.reset({type:ld})}})},s.menuRef=function(v){s._menuNode=v},s.getMenuProps=function(v,_){var A,x=v===void 0?{}:v,f=x.refKey,R=f===void 0?"ref":f,V=x.ref,L=Pt(x,Db),N=_===void 0?{}:_,$=N.suppressRefError,U=$===void 0?!1:$;return s.getMenuProps.called=!0,s.getMenuProps.refKey=R,s.getMenuProps.suppressRefError=U,Te((A={},A[R]=an(V,s.menuRef),A.role="listbox",A["aria-labelledby"]=L&&L["aria-label"]?void 0:s.labelId,A.id=s.menuId,A),L)},s.getItemProps=function(v){var _,A=v===void 0?{}:v,x=A.onMouseMove,f=A.onMouseDown,R=A.onClick;A.onPress;var V=A.index,L=A.item,N=L===void 0?pe.NODE_ENV==="production"?void 0:Eb("getItemProps","item"):L,$=Pt(A,Lb);V===void 0?(s.items.push(N),V=s.items.indexOf(N)):s.items[V]=N;var U="onClick",J=R,Y=(_={onMouseMove:Qe(x,function(){V!==s.getState().highlightedIndex&&(s.setHighlightedIndex(V,{type:nd}),s.avoidScrolling=!0,s.internalSetTimeout(function(){return s.avoidScrolling=!1},250))}),onMouseDown:Qe(f,function(Z){Z.preventDefault()})},_[U]=Qe(J,function(){s.selectItemAtIndex(V,{type:od})}),_),Q=$.disabled?{onMouseDown:Y.onMouseDown}:Y;return Te({id:s.getItemId(V),role:"option","aria-selected":s.getState().highlightedIndex===V},Q,$)},s.clearItems=function(){s.items=[]},s.reset=function(v,_){v===void 0&&(v={}),v=yi(v),s.internalSetState(function(A){var x=A.selectedItem;return Te({isOpen:s.props.defaultIsOpen,highlightedIndex:s.props.defaultHighlightedIndex,inputValue:s.props.itemToString(x)},v)},_)},s.toggleMenu=function(v,_){v===void 0&&(v={}),v=yi(v),s.internalSetState(function(A){var x=A.isOpen;return Te({isOpen:!x},x&&{highlightedIndex:s.props.defaultHighlightedIndex},v)},function(){var A=s.getState(),x=A.isOpen,f=A.highlightedIndex;x&&s.getItemCount()>0&&typeof f=="number"&&s.setHighlightedIndex(f,v),ic(_)()})},s.openMenu=function(v){s.internalSetState({isOpen:!0},v)},s.closeMenu=function(v){s.internalSetState({isOpen:!1},v)},s.updateStatus=ys(function(){var v;if((v=s.props)!=null&&(v=v.environment)!=null&&v.document){var _=s.getState(),A=s.items[_.highlightedIndex],x=s.getItemCount(),f=s.props.getA11yStatusMessage(Te({itemToString:s.props.itemToString,previousResultCount:s.previousResultCount,resultCount:x,highlightedItem:A},_));s.previousResultCount=x,Zp(f,s.props.environment.document)}},200);var o=s.props,l=o.defaultHighlightedIndex,u=o.initialHighlightedIndex,c=u===void 0?l:u,d=o.defaultIsOpen,h=o.initialIsOpen,g=h===void 0?d:h,m=o.initialInputValue,w=m===void 0?"":m,S=o.initialSelectedItem,y=S===void 0?null:S,k=s.getState({highlightedIndex:c,isOpen:g,inputValue:w,selectedItem:y});return k.selectedItem!=null&&s.props.initialInputValue===void 0&&(k.inputValue=s.props.itemToString(k.selectedItem)),s.state=k,s}ub(n,t);var r=n.prototype;return r.internalClearTimeouts=function(){this.timeoutIds.forEach(function(i){clearTimeout(i)}),this.timeoutIds=[]},r.getState=function(i){return i===void 0&&(i=this.state),$r(i,this.props)},r.getItemCount=function(){var i=this.items.length;return this.itemCount!=null?i=this.itemCount:this.props.itemCount!==void 0&&(i=this.props.itemCount),i},r.getItemNodeFromIndex=function(i){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(i)):null},r.scrollHighlightedItemIntoView=function(){{var i=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(i,this._menuNode)}},r.moveHighlightedIndex=function(i,s){var o=this.getItemCount(),l=this.getState(),u=l.highlightedIndex;if(o>0){var c=on(u,i,{length:o},this.isItemDisabled,!0);this.setHighlightedIndex(c,s)}},r.getStateAndHelpers=function(){var i=this.getState(),s=i.highlightedIndex,o=i.inputValue,l=i.selectedItem,u=i.isOpen,c=this.props.itemToString,d=this.id,h=this.getRootProps,g=this.getToggleButtonProps,m=this.getLabelProps,w=this.getMenuProps,S=this.getInputProps,y=this.getItemProps,k=this.openMenu,v=this.closeMenu,_=this.toggleMenu,A=this.selectItem,x=this.selectItemAtIndex,f=this.selectHighlightedItem,R=this.setHighlightedIndex,V=this.clearSelection,L=this.clearItems,N=this.reset,$=this.setItemCount,U=this.unsetItemCount,J=this.internalSetState;return{getRootProps:h,getToggleButtonProps:g,getLabelProps:m,getMenuProps:w,getInputProps:S,getItemProps:y,reset:N,openMenu:k,closeMenu:v,toggleMenu:_,selectItem:A,selectItemAtIndex:x,selectHighlightedItem:f,setHighlightedIndex:R,clearSelection:V,clearItems:L,setItemCount:$,unsetItemCount:U,setState:J,itemToString:c,id:d,highlightedIndex:s,inputValue:o,isOpen:u,selectedItem:l}},r.componentDidMount=function(){var i=this;if(pe.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&oc(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){i.internalClearTimeouts()};else{var s=function(){i.isMouseDown=!0},o=function(h){i.isMouseDown=!1;var g=Gi(h.target,[i._rootNode,i._menuNode],i.props.environment);!g&&i.getState().isOpen&&i.reset({type:td},function(){return i.props.onOuterClick(i.getStateAndHelpers())})},l=function(){i.isTouchMove=!1},u=function(){i.isTouchMove=!0},c=function(h){var g=Gi(h.target,[i._rootNode,i._menuNode],i.props.environment,!1);!i.isTouchMove&&!g&&i.getState().isOpen&&i.reset({type:dd},function(){return i.props.onOuterClick(i.getStateAndHelpers())})},d=this.props.environment;d.addEventListener("mousedown",s),d.addEventListener("mouseup",o),d.addEventListener("touchstart",l),d.addEventListener("touchmove",u),d.addEventListener("touchend",c),this.cleanup=function(){i.internalClearTimeouts(),i.updateStatus.cancel(),d.removeEventListener("mousedown",s),d.removeEventListener("mouseup",o),d.removeEventListener("touchstart",l),d.removeEventListener("touchmove",u),d.removeEventListener("touchend",c)}}},r.shouldScroll=function(i,s){var o=this.props.highlightedIndex===void 0?this.getState():this.props,l=o.highlightedIndex,u=s.highlightedIndex===void 0?i:s,c=u.highlightedIndex,d=l&&this.getState().isOpen&&!i.isOpen,h=l!==c;return d||h},r.componentDidUpdate=function(i,s){pe.NODE_ENV!=="production"&&(mo(this.state,i,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&oc(this._menuNode,this.getMenuProps)),Ji(this.props,"selectedItem")&&this.props.selectedItemChanged(i.selectedItem,this.props.selectedItem)&&this.internalSetState({type:pd,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(s,i)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},r.componentWillUnmount=function(){this.cleanup()},r.render=function(){var i=ac(this.props.children,Ot);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 s=ac(i(this.getStateAndHelpers()));if(!s)return null;if(this.getRootProps.called||this.props.suppressRefError)return pe.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&Mb(s,this.getRootProps),s;if(Yp(s))return D.cloneElement(s,this.getRootProps(Qp(s)));if(pe.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},n})(D.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:_b,itemToString:function(t){return t==null?"":(pe.NODE_ENV!=="production"&&Cb(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:Ot,onInputValueChange:Ot,onUserAction:Ot,onChange:Ot,onSelect:Ot,onOuterClick:Ot,selectedItemChanged:function(t,n){return t!==n},environment:typeof window>"u"?void 0:window,stateReducer:function(t,n){return n},suppressRefError:!1,scrollIntoView:Jp},e.stateChangeTypes=Nb,e})();pe.NODE_ENV!=="production"&&(Vb.propTypes={children:ge.func,defaultHighlightedIndex:ge.number,defaultIsOpen:ge.bool,initialHighlightedIndex:ge.number,initialSelectedItem:ge.any,initialInputValue:ge.string,initialIsOpen:ge.bool,getA11yStatusMessage:ge.func,itemToString:ge.func,onChange:ge.func,onSelect:ge.func,onStateChange:ge.func,onInputValueChange:ge.func,onUserAction:ge.func,onOuterClick:ge.func,selectedItemChanged:ge.func,stateReducer:ge.func,itemCount:ge.number,id:ge.string,environment:ge.shape({addEventListener:ge.func.isRequired,removeEventListener:ge.func.isRequired,document:ge.shape({createElement:ge.func.isRequired,getElementById:ge.func.isRequired,activeElement:ge.any.isRequired,body:ge.any.isRequired}).isRequired,Node:ge.func.isRequired}),suppressRefError:ge.bool,scrollIntoView:ge.func,selectedItem:ge.any,isOpen:ge.bool,inputValue:ge.string,highlightedIndex:ge.number,labelId:ge.string,inputId:ge.string,menuId:ge.string,getItemId:ge.func});function oc(e,t){var n=t.refKey;e||console.error('downshift: The ref prop "'+n+'" from getMenuProps was not applied correctly on your menu element.')}function Mb(e,t){var n=t.refKey,r=n!=="ref",i=!Yp(e);i&&!r&&!tc.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!i&&r&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+n+'"'),!tc.isForwardRef(e)&&!Qp(e)[n]&&console.error('downshift: You must apply the ref prop "'+n+'" from getRootProps onto your root element.')}var fd={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function jb(e,t,n){var r=e.props,i=e.type,s={};Object.keys(t).forEach(function(o){Fb(o,e,t,n),n[o]!==t[o]&&(s[o]=n[o])}),r.onStateChange&&Object.keys(s).length&&r.onStateChange(Te({type:i},s))}function Fb(e,t,n,r){var i=t.props,s=t.type,o="on"+vo(e)+"Change";i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](Te({type:s},r))}function zb(e,t){return t.changes}var lc=ys(function(e,t){Zp(e,t)},200),Bb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?D.useLayoutEffect:D.useEffect,gd="useId"in D?function(e){var t=e.id,n=e.labelId,r=e.menuId,i=e.getItemId,s=e.toggleButtonId,o=e.inputId,l="downshift-"+D.useId();t||(t=l);var u=D.useMemo(function(){return{labelId:n||t+"-label",menuId:r||t+"-menu",getItemId:i||function(c){return t+"-item-"+c},toggleButtonId:s||t+"-toggle-button",inputId:o||t+"-input"}},[i,t,o,n,r,s]);return u}:function(e){var t=e.id,n=t===void 0?"downshift-"+Gp():t,r=e.labelId,i=e.menuId,s=e.getItemId,o=e.toggleButtonId,l=e.inputId,u=D.useMemo(function(){return{labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:s||function(c){return n+"-item-"+c},toggleButtonId:o||n+"-toggle-button",inputId:l||n+"-input"}},[s,n,l,r,i,o]);return u};function xo(e,t,n,r){var i,s;if(e===void 0){if(t===void 0)throw new Error(r);i=n[t],s=t}else s=t===void 0?n.indexOf(e):t,i=e;return[i,s]}function Hb(e){return/^\S{1}$/.test(e)}function vo(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function ws(e){var t=D.useRef(e);return t.current=e,t}function md(e,t,n,r){var i=D.useRef(),s=D.useRef(),o=D.useCallback(function(m,w){s.current=w,m=$r(m,w.props);var S=e(m,w),y=w.props.stateReducer(m,Te({},w,{changes:S}));return y},[e]),l=D.useReducer(o,t,n),u=l[0],c=l[1],d=ws(t),h=D.useCallback(function(m){return c(Te({props:d.current},m))},[d]),g=s.current;return D.useEffect(function(){var m=$r(i.current,g==null?void 0:g.props),w=g&&i.current&&!r(m,u);w&&jb(g,m,u),i.current=u},[u,g,r]),[u,h]}function xd(e,t,n,r){var i=md(e,t,n,r),s=i[0],o=i[1];return[$r(s,t),o]}var Vr={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:zb,scrollIntoView:Jp,environment:typeof window>"u"?void 0:window};function fn(e,t,n){n===void 0&&(n=fd);var r=e["default"+vo(t)];return r!==void 0?r:n[t]}function Un(e,t,n){n===void 0&&(n=fd);var r=e[t];if(r!==void 0)return r;var i=e["initial"+vo(t)];return i!==void 0?i:fn(e,t,n)}function vd(e){var t=Un(e,"selectedItem"),n=Un(e,"isOpen"),r=$b(e),i=Un(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.findIndex(function(s){return e.itemToKey(s)===e.itemToKey(t)}):r,isOpen:n,selectedItem:t,inputValue:i}}function qn(e,t,n){var r=e.items,i=e.initialHighlightedIndex,s=e.defaultHighlightedIndex,o=e.isItemDisabled,l=e.itemToKey,u=t.selectedItem,c=t.highlightedIndex;return r.length===0?-1:i!==void 0&&c===i&&!o(r[i],i)?i:s!==void 0&&!o(r[s],s)?s:u?r.findIndex(function(d){return l(u)===l(d)}):n<0&&!o(r[r.length-1],r.length-1)?r.length-1:n>0&&!o(r[0],0)?0:-1}function bd(e,t,n){var r=D.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1}),i=D.useCallback(function(){return n.map(function(s){return s.current})},[n]);return D.useEffect(function(){if(!e)return Ot;function s(){r.current.isTouchEnd=!1,r.current.isMouseDown=!0}function o(d){r.current.isMouseDown=!1,Gi(d.target,i(),e)||t()}function l(){r.current.isTouchEnd=!1,r.current.isTouchMove=!1}function u(){r.current.isTouchMove=!0}function c(d){r.current.isTouchEnd=!0,!r.current.isTouchMove&&!Gi(d.target,i(),e,!1)&&t()}return e.addEventListener("mousedown",s),e.addEventListener("mouseup",o),e.addEventListener("touchstart",l),e.addEventListener("touchmove",u),e.addEventListener("touchend",c),function(){e.removeEventListener("mousedown",s),e.removeEventListener("mouseup",o),e.removeEventListener("touchstart",l),e.removeEventListener("touchmove",u),e.removeEventListener("touchend",c)}},[e,i,t]),r.current}var ks=function(){return Ot};pe.NODE_ENV!=="production"&&(ks=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=D.useRef(t.reduce(function(s,o){return s[o]={},s},{}));D.useEffect(function(){Object.keys(r.current).forEach(function(s){var o=r.current[s];if(!Object.keys(o).length){console.error("downshift: You forgot to call the "+s+" getter function on your component / element.");return}var l=o.suppressRefError,u=o.refKey,c=o.elementRef;l||c!=null&&c.current||console.error('downshift: The ref prop "'+u+'" from '+s+" was not applied correctly on your element.")})},[]);var i=D.useCallback(function(s,o,l,u){r.current[s]={suppressRefError:o,refKey:l,elementRef:u}},[]);return i});function bo(e,t,n,r){r===void 0&&(r={});var i=r.document,s=Qr();D.useEffect(function(){if(!(!e||s||!i)){var o=e(t);lc(o,i)}},n),D.useEffect(function(){return function(){lc.cancel(),Tb(i)}},[i])}function yd(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,s=e.menuElement,o=e.scrollIntoView,l=D.useRef(!0);return Bb(function(){t<0||!n||!Object.keys(r.current).length||(l.current===!1?l.current=!0:o(i(t),s))},[t]),l}var Ss=Ot;pe.NODE_ENV!=="production"&&(Ss=function(e){var t=e.props,n=e.state,r=D.useRef(t),i=Qr();D.useEffect(function(){i||(mo(n,r.current,t),r.current=t)},[n,t,i])});function Yi(e,t,n){var r;n===void 0&&(n=!0);var i=((r=e.items)==null?void 0:r.length)&&t>=0;return Te({isOpen:!1,highlightedIndex:-1},i&&Te({selectedItem:e.items[t],isOpen:fn(e,"isOpen"),highlightedIndex:fn(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function wd(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function Qr(){var e=D.useRef(!0);return D.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}function Qi(e){var t=fn(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}function $b(e){var t=Un(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var Vi={environment:ge.shape({addEventListener:ge.func.isRequired,removeEventListener:ge.func.isRequired,document:ge.shape({createElement:ge.func.isRequired,getElementById:ge.func.isRequired,activeElement:ge.any.isRequired,body:ge.any.isRequired}).isRequired,Node:ge.func.isRequired}),itemToString:ge.func,itemToKey:ge.func,stateReducer:ge.func},kd=Te({},Vi,{getA11yStatusMessage:ge.func,highlightedIndex:ge.number,defaultHighlightedIndex:ge.number,initialHighlightedIndex:ge.number,isOpen:ge.bool,defaultIsOpen:ge.bool,initialIsOpen:ge.bool,selectedItem:ge.any,initialSelectedItem:ge.any,defaultSelectedItem:ge.any,id:ge.string,labelId:ge.string,menuId:ge.string,getItemId:ge.func,toggleButtonId:ge.string,onSelectedItemChange:ge.func,onHighlightedIndexChange:ge.func,onStateChange:ge.func,onIsOpenChange:ge.func,scrollIntoView:ge.func});function Sd(e,t,n){var r=t.type,i=t.props,s;switch(r){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:qn(i,e,0)};break;case n.FunctionOpenMenu:s={isOpen:!0,highlightedIndex:qn(i,e,0)};break;case n.FunctionCloseMenu:s={isOpen:!1};break;case n.FunctionSetHighlightedIndex:s={highlightedIndex:i.isItemDisabled(i.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case n.FunctionSetInputValue:s={inputValue:t.inputValue};break;case n.FunctionReset:s={highlightedIndex:Qi(i),isOpen:fn(i,"isOpen"),selectedItem:fn(i,"selectedItem"),inputValue:fn(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Te({},e,s)}function Wb(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,s=e.isItemDisabled,o=t.toLowerCase(),l=0;l<r.length;l++){var u=(l+n+(t.length<2?1:0))%r.length,c=r[u];if(c!==void 0&&i(c).toLowerCase().startsWith(o)&&!s(c,u))return u}return n}var Ub=dr(dr({},kd),{items:ge.array.isRequired,isItemDisabled:ge.func}),qb=dr(dr({},Vr),{isItemDisabled:function(){return!1}}),_d=Ot;pe.NODE_ENV!=="production"&&(_d=function(e,t){ge.checkPropTypes(Ub,e,"prop",t.name)});var Mi=pe.NODE_ENV!=="production"?"__togglebutton_click__":0,yo=pe.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_down__":1,wo=pe.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_up__":2,Xi=pe.NODE_ENV!=="production"?"__togglebutton_keydown_character__":3,ko=pe.NODE_ENV!=="production"?"__togglebutton_keydown_escape__":4,So=pe.NODE_ENV!=="production"?"__togglebutton_keydown_home__":5,_o=pe.NODE_ENV!=="production"?"__togglebutton_keydown_end__":6,Eo=pe.NODE_ENV!=="production"?"__togglebutton_keydown_enter__":7,Io=pe.NODE_ENV!=="production"?"__togglebutton_keydown_space_button__":8,Co=pe.NODE_ENV!=="production"?"__togglebutton_keydown_page_up__":9,Ao=pe.NODE_ENV!=="production"?"__togglebutton_keydown_page_down__":10,Zi=pe.NODE_ENV!=="production"?"__togglebutton_blur__":11,Ed=pe.NODE_ENV!=="production"?"__menu_mouse_leave__":12,Id=pe.NODE_ENV!=="production"?"__item_mouse_move__":13,To=pe.NODE_ENV!=="production"?"__item_click__":14,Cd=pe.NODE_ENV!=="production"?"__function_toggle_menu__":15,Ad=pe.NODE_ENV!=="production"?"__function_open_menu__":16,Td=pe.NODE_ENV!=="production"?"__function_close_menu__":17,Nd=pe.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,No=pe.NODE_ENV!=="production"?"__function_select_item__":19,ja=pe.NODE_ENV!=="production"?"__function_set_input_value__":20,Od=pe.NODE_ENV!=="production"?"__function_reset__":21,Pd=Object.freeze({__proto__:null,FunctionCloseMenu:Td,FunctionOpenMenu:Ad,FunctionReset:Od,FunctionSelectItem:No,FunctionSetHighlightedIndex:Nd,FunctionSetInputValue:ja,FunctionToggleMenu:Cd,ItemClick:To,ItemMouseMove:Id,MenuMouseLeave:Ed,ToggleButtonBlur:Zi,ToggleButtonClick:Mi,ToggleButtonKeyDownArrowDown:yo,ToggleButtonKeyDownArrowUp:wo,ToggleButtonKeyDownCharacter:Xi,ToggleButtonKeyDownEnd:_o,ToggleButtonKeyDownEnter:Eo,ToggleButtonKeyDownEscape:ko,ToggleButtonKeyDownHome:So,ToggleButtonKeyDownPageDown:Ao,ToggleButtonKeyDownPageUp:Co,ToggleButtonKeyDownSpaceButton:Io});function Kb(e,t){var n,r=t.type,i=t.props,s=t.altKey,o;switch(r){case To:o={isOpen:fn(i,"isOpen"),highlightedIndex:Qi(i),selectedItem:i.items[t.index]};break;case Xi:{var l=t.key,u=""+e.inputValue+l,c=!e.isOpen&&e.selectedItem?i.items.findIndex(function(m){return i.itemToKey(m)===i.itemToKey(e.selectedItem)}):e.highlightedIndex,d=Wb({keysSoFar:u,highlightedIndex:c,items:i.items,itemToString:i.itemToString,isItemDisabled:i.isItemDisabled});o={inputValue:u,highlightedIndex:d,isOpen:!0}}break;case yo:{var h=e.isOpen?on(e.highlightedIndex,1,i.items,i.isItemDisabled):s&&e.selectedItem==null?-1:qn(i,e,1);o={highlightedIndex:h,isOpen:!0}}break;case wo:if(e.isOpen&&s)o=Yi(i,e.highlightedIndex,!1);else{var g=e.isOpen?on(e.highlightedIndex,-1,i.items,i.isItemDisabled):qn(i,e,-1);o={highlightedIndex:g,isOpen:!0}}break;case Eo:case Io:o=Yi(i,e.highlightedIndex,!1);break;case So:o={highlightedIndex:Vn(0,!1,i.items,i.isItemDisabled),isOpen:!0};break;case _o:o={highlightedIndex:Vn(i.items.length-1,!0,i.items,i.isItemDisabled),isOpen:!0};break;case Co:o={highlightedIndex:on(e.highlightedIndex,-10,i.items,i.isItemDisabled)};break;case Ao:o={highlightedIndex:on(e.highlightedIndex,10,i.items,i.isItemDisabled)};break;case ko:o={isOpen:!1,highlightedIndex:-1};break;case Zi:o=Te({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&{selectedItem:i.items[e.highlightedIndex]});break;case No:o={selectedItem:t.selectedItem};break;default:return Sd(e,t,Pd)}return Te({},e,o)}var Jb=["onClick"],Gb=["onMouseLeave","refKey","ref"],Yb=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],Qb=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];cr.stateChangeTypes=Pd;function cr(e){e===void 0&&(e={}),_d(e,cr);var t=Te({},qb,e),n=t.scrollIntoView,r=t.environment,i=t.getA11yStatusMessage,s=xd(Kb,t,vd,wd),o=s[0],l=s[1],u=o.isOpen,c=o.highlightedIndex,d=o.selectedItem,h=o.inputValue,g=D.useRef(null),m=D.useRef(null),w=D.useRef({}),S=D.useRef(null),y=gd(t),k=ws({state:o,props:t}),v=D.useCallback(function(E){return w.current[y.getItemId(E)]},[y]);bo(i,o,[u,c,d,h],r);var _=yd({menuElement:m.current,highlightedIndex:c,isOpen:u,itemRefs:w,scrollIntoView:n,getItemNodeFromIndex:v});D.useEffect(function(){return S.current=ys(function(E){E({type:ja,inputValue:""})},500),function(){S.current.cancel()}},[]),D.useEffect(function(){h&&S.current(l)},[l,h]),Ss({props:t,state:o}),D.useEffect(function(){var E=Un(t,"isOpen");E&&g.current&&g.current.focus()},[]);var A=D.useCallback(function(){k.current.state.isOpen&&l({type:Zi})},[l,k]),x=D.useMemo(function(){return[m,g]},[]),f=bd(r,A,x),R=ks("getMenuProps","getToggleButtonProps");D.useEffect(function(){u||(w.current={})},[u]);var V=D.useMemo(function(){return{ArrowDown:function(E){E.preventDefault(),l({type:yo,altKey:E.altKey})},ArrowUp:function(E){E.preventDefault(),l({type:wo,altKey:E.altKey})},Home:function(E){E.preventDefault(),l({type:So})},End:function(E){E.preventDefault(),l({type:_o})},Escape:function(){k.current.state.isOpen&&l({type:ko})},Enter:function(E){E.preventDefault(),l({type:k.current.state.isOpen?Eo:Mi})},PageUp:function(E){k.current.state.isOpen&&(E.preventDefault(),l({type:Co}))},PageDown:function(E){k.current.state.isOpen&&(E.preventDefault(),l({type:Ao}))}," ":function(E){E.preventDefault();var M=k.current.state;if(!M.isOpen){l({type:Mi});return}M.inputValue?l({type:Xi,key:" "}):l({type:Io})}}},[l,k]),L=D.useCallback(function(){l({type:Cd})},[l]),N=D.useCallback(function(){l({type:Td})},[l]),$=D.useCallback(function(){l({type:Ad})},[l]),U=D.useCallback(function(E){l({type:Nd,highlightedIndex:E})},[l]),J=D.useCallback(function(E){l({type:No,selectedItem:E})},[l]),Y=D.useCallback(function(){l({type:Od})},[l]),Q=D.useCallback(function(E){l({type:ja,inputValue:E})},[l]),Z=D.useCallback(function(E){var M=E===void 0?{}:E,H=M.onClick,T=Pt(M,Jb),B=function(){var z;(z=g.current)==null||z.focus()};return Te({id:y.labelId,htmlFor:y.toggleButtonId,onClick:Qe(H,B)},T)},[y]),q=D.useCallback(function(E,M){var H,T=E===void 0?{}:E,B=T.onMouseLeave,z=T.refKey,W=z===void 0?"ref":z,F=T.ref,te=Pt(T,Gb),ee=M===void 0?{}:M,ne=ee.suppressRefError,le=ne===void 0?!1:ne,G=function(){l({type:Ed})};return R("getMenuProps",le,W,m),Te((H={},H[W]=an(F,function(ae){m.current=ae}),H.id=y.menuId,H.role="listbox",H["aria-labelledby"]=te&&te["aria-label"]?void 0:""+y.labelId,H.onMouseLeave=Qe(B,G),H),te)},[l,R,y]),K=D.useCallback(function(E,M){var H,T=E===void 0?{}:E,B=T.onBlur,z=T.onClick;T.onPress;var W=T.onKeyDown,F=T.refKey,te=F===void 0?"ref":F,ee=T.ref,ne=Pt(T,Yb),le=M===void 0?{}:M,G=le.suppressRefError,ae=G===void 0?!1:G,ce=k.current.state,Ie=function(){l({type:Mi})},Ce=function(){ce.isOpen&&!f.isMouseDown&&l({type:Zi})},Re=function(Oe){var Ne=fr(Oe);Ne&&V[Ne]?V[Ne](Oe):Hb(Ne)&&l({type:Xi,key:Ne})},Ve=Te((H={},H[te]=an(ee,function(Oe){g.current=Oe}),H["aria-activedescendant"]=ce.isOpen&&ce.highlightedIndex>-1?y.getItemId(ce.highlightedIndex):"",H["aria-controls"]=y.menuId,H["aria-expanded"]=k.current.state.isOpen,H["aria-haspopup"]="listbox",H["aria-labelledby"]=ne&&ne["aria-label"]?void 0:""+y.labelId,H.id=y.toggleButtonId,H.role="combobox",H.tabIndex=0,H.onBlur=Qe(B,Ce),H),ne);return ne.disabled||(Ve.onClick=Qe(z,Ie),Ve.onKeyDown=Qe(W,Re)),R("getToggleButtonProps",ae,te,g),Ve},[l,y,k,f,R,V]),ie=D.useCallback(function(E){var M,H=E===void 0?{}:E,T=H.item,B=H.index,z=H.onMouseMove,W=H.onClick,F=H.onMouseDown;H.onPress;var te=H.refKey,ee=te===void 0?"ref":te,ne=H.disabled,le=H.ref,G=Pt(H,Qb);ne!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var ae=k.current,ce=ae.state,Ie=ae.props,Ce=xo(T,B,Ie.items,"Pass either item or index to getItemProps!"),Re=Ce[0],Ve=Ce[1],Oe=Ie.isItemDisabled(Re,Ve),Ne=function(){f.isTouchEnd||Ve===ce.highlightedIndex||(_.current=!1,l({type:Id,index:Ve,disabled:Oe}))},Ke=function(){l({type:To,index:Ve})},vt=function(Fe){return Fe.preventDefault()},Je=Te((M={},M[ee]=an(le,function(Fe){Fe&&(w.current[y.getItemId(Ve)]=Fe)}),M["aria-disabled"]=Oe,M["aria-selected"]=Re===ce.selectedItem,M.id=y.getItemId(Ve),M.role="option",M),G);return Oe||(Je.onClick=Qe(W,Ke)),Je.onMouseMove=Qe(z,Ne),Je.onMouseDown=Qe(F,vt),Je},[k,y,f,_,l]);return{getToggleButtonProps:K,getLabelProps:Z,getMenuProps:q,getItemProps:ie,toggleMenu:L,openMenu:$,closeMenu:N,setHighlightedIndex:U,selectItem:J,reset:Y,setInputValue:Q,highlightedIndex:c,isOpen:u,selectedItem:d,inputValue:h}}var Oo=pe.NODE_ENV!=="production"?"__input_keydown_arrow_down__":0,Po=pe.NODE_ENV!=="production"?"__input_keydown_arrow_up__":1,Ro=pe.NODE_ENV!=="production"?"__input_keydown_escape__":2,Do=pe.NODE_ENV!=="production"?"__input_keydown_home__":3,Lo=pe.NODE_ENV!=="production"?"__input_keydown_end__":4,Vo=pe.NODE_ENV!=="production"?"__input_keydown_page_up__":5,Mo=pe.NODE_ENV!=="production"?"__input_keydown_page_down__":6,jo=pe.NODE_ENV!=="production"?"__input_keydown_enter__":7,Fo=pe.NODE_ENV!=="production"?"__input_change__":8,es=pe.NODE_ENV!=="production"?"__input_blur__":9,zo=pe.NODE_ENV!=="production"?"__input_click__":10,Rd=pe.NODE_ENV!=="production"?"__menu_mouse_leave__":11,Dd=pe.NODE_ENV!=="production"?"__item_mouse_move__":12,Bo=pe.NODE_ENV!=="production"?"__item_click__":13,Ld=pe.NODE_ENV!=="production"?"__togglebutton_click__":14,Vd=pe.NODE_ENV!=="production"?"__function_toggle_menu__":15,Md=pe.NODE_ENV!=="production"?"__function_open_menu__":16,jd=pe.NODE_ENV!=="production"?"__function_close_menu__":17,Fd=pe.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,Ho=pe.NODE_ENV!=="production"?"__function_select_item__":19,zd=pe.NODE_ENV!=="production"?"__function_set_input_value__":20,Bd=pe.NODE_ENV!=="production"?"__function_reset__":21,$o=pe.NODE_ENV!=="production"?"__controlled_prop_updated_selected_item__":22,Hd=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:$o,FunctionCloseMenu:jd,FunctionOpenMenu:Md,FunctionReset:Bd,FunctionSelectItem:Ho,FunctionSetHighlightedIndex:Fd,FunctionSetInputValue:zd,FunctionToggleMenu:Vd,InputBlur:es,InputChange:Fo,InputClick:zo,InputKeyDownArrowDown:Oo,InputKeyDownArrowUp:Po,InputKeyDownEnd:Lo,InputKeyDownEnter:jo,InputKeyDownEscape:Ro,InputKeyDownHome:Do,InputKeyDownPageDown:Mo,InputKeyDownPageUp:Vo,ItemClick:Bo,ItemMouseMove:Dd,MenuMouseLeave:Rd,ToggleButtonClick:Ld});function Xb(e){var t=vd(e),n=t.selectedItem,r=t.inputValue;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),Te({},t,{inputValue:r})}var Zb=Te({},kd,{items:ge.array.isRequired,isItemDisabled:ge.func,inputValue:ge.string,defaultInputValue:ge.string,initialInputValue:ge.string,inputId:ge.string,onInputValueChange:ge.func});function ey(e,t,n,r){var i=D.useRef(),s=md(e,t,n,r),o=s[0],l=s[1],u=Qr();return D.useEffect(function(){if(Ji(t,"selectedItem")){if(!u){var c=t.itemToKey(t.selectedItem)!==t.itemToKey(i.current);c&&l({type:$o,inputValue:t.itemToString(t.selectedItem)})}i.current=o.selectedItem===i.current?t.selectedItem:o.selectedItem}},[o.selectedItem,t.selectedItem]),[$r(o,t),l]}var $d=Ot;pe.NODE_ENV!=="production"&&($d=function(e,t){ge.checkPropTypes(Zb,e,"prop",t.name)});var ty=Te({},Vr,{isItemDisabled:function(){return!1}});function ny(e,t){var n,r=t.type,i=t.props,s=t.altKey,o;switch(r){case Bo:o={isOpen:fn(i,"isOpen"),highlightedIndex:Qi(i),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case Oo:e.isOpen?o={highlightedIndex:on(e.highlightedIndex,1,i.items,i.isItemDisabled,!0)}:o={highlightedIndex:s&&e.selectedItem==null?-1:qn(i,e,1),isOpen:i.items.length>=0};break;case Po:e.isOpen?s?o=Yi(i,e.highlightedIndex):o={highlightedIndex:on(e.highlightedIndex,-1,i.items,i.isItemDisabled,!0)}:o={highlightedIndex:qn(i,e,-1),isOpen:i.items.length>=0};break;case jo:o=Yi(i,e.highlightedIndex);break;case Ro:o=Te({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case Vo:o={highlightedIndex:on(e.highlightedIndex,-10,i.items,i.isItemDisabled,!0)};break;case Mo:o={highlightedIndex:on(e.highlightedIndex,10,i.items,i.isItemDisabled,!0)};break;case Do:o={highlightedIndex:Vn(0,!1,i.items,i.isItemDisabled)};break;case Lo:o={highlightedIndex:Vn(i.items.length-1,!0,i.items,i.isItemDisabled)};break;case es:o=Te({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case Fo:o={isOpen:!0,highlightedIndex:Qi(i),inputValue:t.inputValue};break;case zo:o={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:qn(i,e,0)};break;case Ho:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case $o:o={inputValue:t.inputValue};break;default:return Sd(e,t,Hd)}return Te({},e,o)}var ry=["onMouseLeave","refKey","ref"],iy=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],sy=["onClick","onPress","refKey","ref"],ay=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];wn.stateChangeTypes=Hd;function wn(e){e===void 0&&(e={}),$d(e,wn);var t=Te({},ty,e),n=t.items,r=t.scrollIntoView,i=t.environment,s=t.getA11yStatusMessage,o=ey(ny,t,Xb,wd),l=o[0],u=o[1],c=l.isOpen,d=l.highlightedIndex,h=l.selectedItem,g=l.inputValue,m=D.useRef(null),w=D.useRef({}),S=D.useRef(null),y=D.useRef(null),k=Qr(),v=gd(t),_=D.useRef(),A=ws({state:l,props:t}),x=D.useCallback(function(B){return w.current[v.getItemId(B)]},[v]);bo(s,l,[c,d,h,g],i);var f=yd({menuElement:m.current,highlightedIndex:d,isOpen:c,itemRefs:w,scrollIntoView:r,getItemNodeFromIndex:x});Ss({props:t,state:l}),D.useEffect(function(){var B=Un(t,"isOpen");B&&S.current&&S.current.focus()},[]),D.useEffect(function(){k||(_.current=n.length)});var R=D.useCallback(function(){A.current.state.isOpen&&u({type:es})},[u,A]),V=D.useMemo(function(){return[m,y,S]},[]),L=bd(i,R,V),N=ks("getInputProps","getMenuProps");D.useEffect(function(){c||(w.current={})},[c]),D.useEffect(function(){var B;!c||!(i!=null&&i.document)||!(S!=null&&(B=S.current)!=null&&B.focus)||i.document.activeElement!==S.current&&S.current.focus()},[c,i]);var $=D.useMemo(function(){return{ArrowDown:function(B){B.preventDefault(),u({type:Oo,altKey:B.altKey})},ArrowUp:function(B){B.preventDefault(),u({type:Po,altKey:B.altKey})},Home:function(B){A.current.state.isOpen&&(B.preventDefault(),u({type:Do}))},End:function(B){A.current.state.isOpen&&(B.preventDefault(),u({type:Lo}))},Escape:function(B){var z=A.current.state;(z.isOpen||z.inputValue||z.selectedItem||z.highlightedIndex>-1)&&(B.preventDefault(),u({type:Ro}))},Enter:function(B){var z=A.current.state;!z.isOpen||B.which===229||(B.preventDefault(),u({type:jo}))},PageUp:function(B){A.current.state.isOpen&&(B.preventDefault(),u({type:Vo}))},PageDown:function(B){A.current.state.isOpen&&(B.preventDefault(),u({type:Mo}))}}},[u,A]),U=D.useCallback(function(B){return Te({id:v.labelId,htmlFor:v.inputId},B)},[v]),J=D.useCallback(function(B,z){var W,F=B===void 0?{}:B,te=F.onMouseLeave,ee=F.refKey,ne=ee===void 0?"ref":ee,le=F.ref,G=Pt(F,ry),ae=z===void 0?{}:z,ce=ae.suppressRefError,Ie=ce===void 0?!1:ce;return N("getMenuProps",Ie,ne,m),Te((W={},W[ne]=an(le,function(Ce){m.current=Ce}),W.id=v.menuId,W.role="listbox",W["aria-labelledby"]=G&&G["aria-label"]?void 0:""+v.labelId,W.onMouseLeave=Qe(te,function(){u({type:Rd})}),W),G)},[u,N,v]),Y=D.useCallback(function(B){var z,W,F=B===void 0?{}:B,te=F.item,ee=F.index,ne=F.refKey,le=ne===void 0?"ref":ne,G=F.ref,ae=F.onMouseMove,ce=F.onMouseDown,Ie=F.onClick;F.onPress;var Ce=F.disabled,Re=Pt(F,iy);Ce!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var Ve=A.current,Oe=Ve.props,Ne=Ve.state,Ke=xo(te,ee,Oe.items,"Pass either item or index to getItemProps!"),vt=Ke[0],Je=Ke[1],Fe=Oe.isItemDisabled(vt,Je),Vt="onClick",oe=Ie,se=function(){L.isTouchEnd||Je===Ne.highlightedIndex||(f.current=!1,u({type:Dd,index:Je,disabled:Fe}))},P=function(){u({type:Bo,index:Je})},be=function(He){return He.preventDefault()};return Te((z={},z[le]=an(G,function(He){He&&(w.current[v.getItemId(Je)]=He)}),z["aria-disabled"]=Fe,z["aria-selected"]=Je===Ne.highlightedIndex,z.id=v.getItemId(Je),z.role="option",z),!Fe&&(W={},W[Vt]=Qe(oe,P),W),{onMouseMove:Qe(ae,se),onMouseDown:Qe(ce,be)},Re)},[u,v,A,L,f]),Q=D.useCallback(function(B){var z,W=B===void 0?{}:B,F=W.onClick;W.onPress;var te=W.refKey,ee=te===void 0?"ref":te,ne=W.ref,le=Pt(W,sy),G=A.current.state,ae=function(){u({type:Ld})};return Te((z={},z[ee]=an(ne,function(ce){y.current=ce}),z["aria-controls"]=v.menuId,z["aria-expanded"]=G.isOpen,z.id=v.toggleButtonId,z.tabIndex=-1,z),!le.disabled&&Te({},{onClick:Qe(F,ae)}),le)},[u,A,v]),Z=D.useCallback(function(B,z){var W,F=B===void 0?{}:B,te=F.onKeyDown,ee=F.onChange,ne=F.onInput,le=F.onBlur;F.onChangeText;var G=F.onClick,ae=F.refKey,ce=ae===void 0?"ref":ae,Ie=F.ref,Ce=Pt(F,ay),Re=z===void 0?{}:z,Ve=Re.suppressRefError,Oe=Ve===void 0?!1:Ve;N("getInputProps",Oe,ce,S);var Ne=A.current.state,Ke=function(P){var be=fr(P);be&&$[be]&&$[be](P)},vt=function(P){u({type:Fo,inputValue:P.target.value})},Je=function(P){if(i!=null&&i.document&&Ne.isOpen&&!L.isMouseDown){var be=P.relatedTarget===null&&i.document.activeElement!==i.document.body;u({type:es,selectItem:!be})}},Fe=function(){u({type:zo})},Vt="onChange",oe={};if(!Ce.disabled){var se;oe=(se={},se[Vt]=Qe(ee,ne,vt),se.onKeyDown=Qe(te,Ke),se.onBlur=Qe(le,Je),se.onClick=Qe(G,Fe),se)}return Te((W={},W[ce]=an(Ie,function(P){S.current=P}),W["aria-activedescendant"]=Ne.isOpen&&Ne.highlightedIndex>-1?v.getItemId(Ne.highlightedIndex):"",W["aria-autocomplete"]="list",W["aria-controls"]=v.menuId,W["aria-expanded"]=Ne.isOpen,W["aria-labelledby"]=Ce&&Ce["aria-label"]?void 0:v.labelId,W.autoComplete="off",W.id=v.inputId,W.role="combobox",W.value=Ne.inputValue,W),oe,Ce)},[u,v,i,$,A,L,N]),q=D.useCallback(function(){u({type:Vd})},[u]),K=D.useCallback(function(){u({type:jd})},[u]),ie=D.useCallback(function(){u({type:Md})},[u]),E=D.useCallback(function(B){u({type:Fd,highlightedIndex:B})},[u]),M=D.useCallback(function(B){u({type:Ho,selectedItem:B})},[u]),H=D.useCallback(function(B){u({type:zd,inputValue:B})},[u]),T=D.useCallback(function(){u({type:Bd})},[u]);return{getItemProps:Y,getLabelProps:U,getMenuProps:J,getInputProps:Z,getToggleButtonProps:Q,toggleMenu:q,openMenu:ie,closeMenu:K,setHighlightedIndex:E,setInputValue:H,selectItem:M,reset:T,highlightedIndex:d,isOpen:c,selectedItem:h,inputValue:g}}var Wd={activeIndex:-1,selectedItems:[]};function uc(e,t){return Un(e,t,Wd)}function cc(e,t){return fn(e,t,Wd)}function oy(e){var t=uc(e,"activeIndex"),n=uc(e,"selectedItems");return{activeIndex:t,selectedItems:n}}function hc(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 ly(e,t){return e.selectedItems===t.selectedItems&&e.activeIndex===t.activeIndex}var uy={stateReducer:Vi.stateReducer,itemToKey:Vi.itemToKey,environment:Vi.environment,selectedItems:ge.array,initialSelectedItems:ge.array,defaultSelectedItems:ge.array,getA11yStatusMessage:ge.func,activeIndex:ge.number,initialActiveIndex:ge.number,defaultActiveIndex:ge.number,onActiveIndexChange:ge.func,onSelectedItemsChange:ge.func,keyNavigationNext:ge.string,keyNavigationPrevious:ge.string},cy={itemToKey:Vr.itemToKey,stateReducer:Vr.stateReducer,environment:Vr.environment,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},Ud=Ot;pe.NODE_ENV!=="production"&&(Ud=function(e,t){ge.checkPropTypes(uy,e,"prop",t.name)});var Wo=pe.NODE_ENV!=="production"?"__selected_item_click__":0,Uo=pe.NODE_ENV!=="production"?"__selected_item_keydown_delete__":1,qo=pe.NODE_ENV!=="production"?"__selected_item_keydown_backspace__":2,Ko=pe.NODE_ENV!=="production"?"__selected_item_keydown_navigation_next__":3,Jo=pe.NODE_ENV!=="production"?"__selected_item_keydown_navigation_previous__":4,Go=pe.NODE_ENV!=="production"?"__dropdown_keydown_navigation_previous__":5,Yo=pe.NODE_ENV!=="production"?"__dropdown_keydown_backspace__":6,Qo=pe.NODE_ENV!=="production"?"__dropdown_click__":7,Xo=pe.NODE_ENV!=="production"?"__function_add_selected_item__":8,Zo=pe.NODE_ENV!=="production"?"__function_remove_selected_item__":9,el=pe.NODE_ENV!=="production"?"__function_set_selected_items__":10,tl=pe.NODE_ENV!=="production"?"__function_set_active_index__":11,nl=pe.NODE_ENV!=="production"?"__function_reset__":12,hy=Object.freeze({__proto__:null,DropdownClick:Qo,DropdownKeyDownBackspace:Yo,DropdownKeyDownNavigationPrevious:Go,FunctionAddSelectedItem:Xo,FunctionRemoveSelectedItem:Zo,FunctionReset:nl,FunctionSetActiveIndex:tl,FunctionSetSelectedItems:el,SelectedItemClick:Wo,SelectedItemKeyDownBackspace:qo,SelectedItemKeyDownDelete:Uo,SelectedItemKeyDownNavigationNext:Ko,SelectedItemKeyDownNavigationPrevious:Jo});function py(e,t){var n=t.type,r=t.index,i=t.props,s=t.selectedItem,o=e.activeIndex,l=e.selectedItems,u;switch(n){case Wo:u={activeIndex:r};break;case Jo:u={activeIndex:o-1<0?0:o-1};break;case Ko:u={activeIndex:o+1>=l.length?-1:o+1};break;case qo:case Uo:{if(o<0)break;var c=o;l.length===1?c=-1:o===l.length-1&&(c=l.length-2),u=Te({selectedItems:[].concat(l.slice(0,o),l.slice(o+1))},{activeIndex:c});break}case Go:u={activeIndex:l.length-1};break;case Yo:u={selectedItems:l.slice(0,l.length-1)};break;case Xo:u={selectedItems:[].concat(l,[s])};break;case Qo:u={activeIndex:-1};break;case Zo:{var d=o,h=l.findIndex(function(w){return i.itemToKey(w)===i.itemToKey(s)});if(h<0)break;l.length===1?d=-1:h===l.length-1&&(d=l.length-2),u={selectedItems:[].concat(l.slice(0,h),l.slice(h+1)),activeIndex:d};break}case el:{var g=t.selectedItems;u={selectedItems:g};break}case tl:{var m=t.activeIndex;u={activeIndex:m};break}case nl:u={activeIndex:cc(i,"activeIndex"),selectedItems:cc(i,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return Te({},e,u)}var dy=["refKey","ref","onClick","onKeyDown","selectedItem","index"],fy=["refKey","ref","onKeyDown","onClick","preventKeyAction"];rl.stateChangeTypes=hy;function rl(e){e===void 0&&(e={}),Ud(e,rl);var t=Te({},cy,e),n=t.getA11yStatusMessage,r=t.environment,i=t.keyNavigationNext,s=t.keyNavigationPrevious,o=xd(py,t,oy,ly),l=o[0],u=o[1],c=l.activeIndex,d=l.selectedItems,h=Qr(),g=D.useRef(null),m=D.useRef();m.current=[];var w=ws({state:l,props:t});bo(n,l,[c,d],r),D.useEffect(function(){h||(c===-1&&g.current?g.current.focus():m.current[c]&&m.current[c].focus())},[c]),Ss({props:t,state:l});var S=ks("getDropdownProps"),y=D.useMemo(function(){var L;return L={},L[s]=function(){u({type:Jo})},L[i]=function(){u({type:Ko})},L.Delete=function(){u({type:Uo})},L.Backspace=function(){u({type:qo})},L},[u,i,s]),k=D.useMemo(function(){var L;return L={},L[s]=function(N){hc(N)&&u({type:Go})},L.Backspace=function(N){hc(N)&&u({type:Yo})},L},[u,s]),v=D.useCallback(function(L){var N,$=L===void 0?{}:L,U=$.refKey,J=U===void 0?"ref":U,Y=$.ref,Q=$.onClick,Z=$.onKeyDown,q=$.selectedItem,K=$.index,ie=Pt($,dy),E=w.current.state,M=xo(q,K,E.selectedItems,"Pass either item or index to getSelectedItemProps!"),H=M[1],T=H>-1&&H===E.activeIndex,B=function(){u({type:Wo,index:H})},z=function(W){var F=fr(W);F&&y[F]&&y[F](W)};return Te((N={},N[J]=an(Y,function(W){W&&m.current.push(W)}),N.tabIndex=T?0:-1,N.onClick=Qe(Q,B),N.onKeyDown=Qe(Z,z),N),ie)},[u,w,y]),_=D.useCallback(function(L,N){var $,U=L===void 0?{}:L,J=U.refKey,Y=J===void 0?"ref":J,Q=U.ref,Z=U.onKeyDown,q=U.onClick,K=U.preventKeyAction,ie=K===void 0?!1:K,E=Pt(U,fy),M=N===void 0?{}:N,H=M.suppressRefError,T=H===void 0?!1:H;S("getDropdownProps",T,Y,g);var B=function(W){var F=fr(W);F&&k[F]&&k[F](W)},z=function(){u({type:Qo})};return Te(($={},$[Y]=an(Q,function(W){W&&(g.current=W)}),$),!ie&&{onKeyDown:Qe(Z,B),onClick:Qe(q,z)},E)},[u,k,S]),A=D.useCallback(function(L){u({type:Xo,selectedItem:L})},[u]),x=D.useCallback(function(L){u({type:Zo,selectedItem:L})},[u]),f=D.useCallback(function(L){u({type:el,selectedItems:L})},[u]),R=D.useCallback(function(L){u({type:tl,activeIndex:L})},[u]),V=D.useCallback(function(){u({type:nl})},[u]);return{getSelectedItemProps:v,getDropdownProps:_,addSelectedItem:A,removeSelectedItem:x,setSelectedItems:f,setActiveIndex:R,reset:V,selectedItems:d,activeIndex:c}}const gy=e=>{const{items:t=[],isMulti:n=!1,isSearchable:r=!1,value:i,defaultValue:s,inputValue:o,onChange:l,onInputChange:u,getOptionLabel:c=z=>(z==null?void 0:z.label)||"",getOptionValue:d=z=>(z==null?void 0:z.value)||"",isOpen:h,onOpenChange:g,customOptionGenerator:m,disableInternalFiltering:w=!1,stateReducer:S}=e,y=D.useCallback(z=>{const W=c(z);if(typeof W=="string")return W;if(typeof W=="number")return String(W);const F=z;if(typeof F=="object"&&F!==null){if(typeof F.label=="string")return F.label;if(typeof F.name=="string")return F.name}return String(d(z))},[c,d]),k=z=>z?Array.isArray(z)?z:[z]:[],v=s!==void 0?s:i!==void 0?i:null,[_,A]=D.useState(()=>k(v)),[x,f]=D.useState(o||""),[R,V]=D.useState(()=>h!==void 0?h:!1),L=i!==void 0?k(i):_,N=o!==void 0?o:x,$=h!==void 0?h:R,U=D.useCallback(z=>{h===void 0&&V(z),g==null||g(z)},[h,g]),J=D.useCallback(z=>{i===void 0&&A(z);const W=n?z:z[0]||null;l==null||l(W)},[i,n,l]),Y=D.useCallback(z=>{o===void 0&&f(z),u==null||u(z)},[o,u]),Q=D.useMemo(()=>m?m(N,t):w||!r||!N?t:t.filter(z=>y(z).toLowerCase().includes(N.toLowerCase())),[t,N,m,w,r,y]),Z=rl({selectedItems:L,onSelectedItemsChange:z=>{const W=z.selectedItems||[];J(W)}}),q={items:Q,itemToString:z=>z?y(z):"",isOpen:$,onIsOpenChange:({isOpen:z})=>{z!==void 0&&U(z)},selectedItem:n?null:L[0]||null,onSelectedItemChange:z=>{!n&&z.selectedItem&&J([z.selectedItem])}},K=z=>(W,F)=>{const te=(()=>{const{changes:ee,type:ne}=F;return n&&ee.selectedItem&&(z===wn?[wn.stateChangeTypes.InputKeyDownEnter,wn.stateChangeTypes.ItemClick]:[cr.stateChangeTypes.ToggleButtonKeyDownEnter,cr.stateChangeTypes.ItemClick]).includes(ne)?(!L.some(le=>d(le)===d(ee.selectedItem))&&ee.selectedItem&&Z.addSelectedItem(ee.selectedItem),{...ee,isOpen:!0,highlightedIndex:W.highlightedIndex,...r&&{inputValue:""}}):ne===wn.stateChangeTypes.InputBlur&&!n&&L.length>0?{...ee,inputValue:y(L[0])}:ee})();return S?S(W,{...F,changes:te}):te},ie=r?wn({...q,inputValue:N,onInputValueChange:({inputValue:z,type:W})=>{!z&&W===wn.stateChangeTypes.InputChange&&J([]),Y(z||"")},stateReducer:K(wn),initialIsOpen:h!==void 0?h:!1,defaultIsOpen:!1}):cr({...q,stateReducer:K(cr),initialIsOpen:h!==void 0?h:!1,defaultIsOpen:!1}),E=()=>{U(!$),"toggleMenu"in ie&&ie.toggleMenu()},M=D.useCallback(()=>{U(!0),"openMenu"in ie&&ie.openMenu()},[U,ie]),H=D.useCallback(()=>{U(!1),"closeMenu"in ie&&ie.closeMenu()},[U,ie]),T=D.useCallback(()=>{J([]),Y(""),n&&Z.reset()},[J,Y,n,Z]),B=D.useCallback(z=>{n&&Z.removeSelectedItem(z)},[n,Z]);return{isOpen:ie.isOpen,selectedItem:ie.selectedItem,highlightedIndex:ie.highlightedIndex,inputValue:N,getToggleButtonProps:ie.getToggleButtonProps,getMenuProps:ie.getMenuProps,getItemProps:ie.getItemProps,getInputProps:"getInputProps"in ie?ie.getInputProps:void 0,selectedItems:L,filteredItems:Q,setInputValue:Y,setIsOpen:U,toggleMenu:E,openMenu:M,closeMenu:H,clearSelection:T,removeItem:B,multipleSelection:Z,isMulti:n,isSearchable:r}},qd=({size:e="md",color:t="primary",isInvalid:n=!1,isDisabled:r=!1,className:i,children:s,downshiftParams:o={},...l})=>{const[u,c]=D.useState(!1),{options:d=[],getOptionLabel:h=v=>typeof v=="string"||typeof v=="number"?String(v):(v==null?void 0:v.label)||(v==null?void 0:v.name)||String(v),getOptionValue:g=v=>typeof v=="string"||typeof v=="number"?String(v):(v==null?void 0:v.value)||(v==null?void 0:v.id)||(v==null?void 0:v.name)||String(v),isOptionDisabled:m=v=>(v==null?void 0:v.isDisabled)||!1,formatOptionLabel:w}=o,S=D.useMemo(()=>lb(d),[d]),y=gy({items:S,...o,getOptionLabel:h,getOptionValue:g}),k={size:e,color:n?"negative":t,isInvalid:n,isDisabled:r,hasMessage:u,setHasMessage:c,downshift:y,options:d,getOptionLabel:h,getOptionValue:g,isOptionDisabled:m,formatOptionLabel:w};return C.jsx($p.Provider,{value:k,children:C.jsx("div",{"data-qui":"Select",className:de(U0(),i),...l,children:s})})},Kd=D.forwardRef(({className:e,children:t,isFocused:n,isDisabled:r,...i},s)=>{const{size:o,color:l,isDisabled:u,hasMessage:c,downshift:d,isInvalid:h}=Dt(),g=r??u,m=n??d.isOpen;return C.jsx("div",{ref:s,className:de(q0({size:o,color:l,isDisabled:g,isFocused:!!m,isInvalid:h&&!d.isOpen,hasMessage:c}),e),"aria-disabled":g,"aria-invalid":h,role:"combobox",tabIndex:g?-1:0,...i,children:t})}),Jd=({className:e,children:t,isMulti:n})=>C.jsx("div",{className:de(K0({isMulti:n}),e),children:t}),ji=D.forwardRef(({isHidden:e,inputClassName:t,...n},r)=>{const{size:i,color:s}=Dt();return e?C.jsx("input",{ref:r,type:"text",style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...n}):C.jsx("input",{ref:r,type:"text",className:de(J0({size:i,color:s}),t),...n})}),Gd=({className:e,children:t})=>{const{size:n,color:r}=Dt();return C.jsx("div",{className:de(G0({size:n,color:r}),e),children:t})},Yd=({className:e,children:t,data:n,isDisabled:r})=>{const{size:i,color:s,getOptionLabel:o,formatOptionLabel:l}=Dt();return C.jsx("div",{className:de(Y0({size:i,color:s,isDisabled:r}),e),children:t||(l?l(n):o(n))})},Qd=({className:e,children:t,data:n,isDisabled:r,isFocused:i,onRemove:s})=>{const{size:o,color:l,downshift:u,getOptionLabel:c,formatOptionLabel:d}=Dt(),h=()=>{s?s(n):u.removeItem(n)};return C.jsxs("div",{className:de(Q0({size:o,color:l,isDisabled:r,isFocused:i}),e),children:[C.jsx("div",{className:X0({size:o}),children:t||(d?d(n):c(n))}),!r&&C.jsx("div",{className:Z0({size:o,color:l,isDisabled:!1}),onClick:h,children:C.jsx(xs,{className:"w-3 h-3"})})]})},Xd=({color:e,className:t,children:n,onClick:r,isDisabled:i,...s})=>{const{size:o,color:l,isDisabled:u,downshift:c}=Dt(),d=i??u,h=c.selectedItems.length>0;if(d||!h)return null;const g=m=>{m.stopPropagation(),r?r(m):c.clearSelection()};return C.jsx("div",{className:de(Wp({size:o,color:e||l,isDisabled:d}),t),onClick:g,role:"button",tabIndex:0,"aria-label":"Clear selection",...s,children:n||C.jsx(Sx,{})})},my=({className:e,children:t,onClick:n,isDisabled:r,...i})=>{const{size:s,color:o,isDisabled:l,downshift:u}=Dt(),c=r??l,d=u.inputValue.length>0&&u.isSearchable;if(c||!d)return null;const h=g=>{g.stopPropagation(),n?n(g):u.setInputValue("")};return C.jsx("div",{className:de(Wp({size:s,color:o,isDisabled:c}),e),onClick:h,role:"button",tabIndex:0,"aria-label":"Clear selection",...i,children:t||C.jsx(xs,{})})},Zd=({color:e,className:t,children:n,onClick:r,isDisabled:i,...s})=>{const{size:o,color:l,isDisabled:u,downshift:c}=Dt(),d=i??u,h=c.isOpen,g=m=>{m.stopPropagation(),d||(r?r(m):c.toggleMenu())};return C.jsx("div",{className:de(eb({size:o,color:e||l,isDisabled:d}),"cursor-pointer",t),onClick:g,role:"button",tabIndex:d?-1:0,"aria-label":h?"Close menu":"Open menu","aria-expanded":h,"aria-disabled":d,onMouseDown:m=>{m.preventDefault()},...s,children:n||C.jsx(_x,{className:de("transition-transform duration-200",{"rotate-180":h})})})},ef=D.forwardRef(({className:e,children:t,placement:n,...r},i)=>{const{size:s,hasMessage:o,color:l}=Dt();return C.jsx("div",{"data-qui":"SelectMenu",ref:i,className:de(tb({size:s,placement:n,hasMessage:o,color:l}),e),...r,children:t})}),tf=D.forwardRef(({className:e,children:t,maxHeight:n=300,...r},i)=>{const{size:s}=Dt();return C.jsx(uo,{scrollableNodeProps:{ref:i},className:de(nb({size:s}),e),style:{maxHeight:n},...r,children:t})}),Fa=({className:e,children:t,data:n,isDisabled:r,isFocused:i,isSelected:s,innerProps:o,...l})=>{const{size:u,color:c,getOptionLabel:d,formatOptionLabel:h}=Dt();return C.jsx("div",{"data-qui":"SelectOption",className:de(rb({size:u,color:c,isDisabled:r,isFocused:i,isSelected:s}),e),...o,...l,children:t||(h?h(n):d(n))})},nf=({className:e,children:t,data:n,label:r})=>{const{size:i}=Dt();return C.jsxs("div",{"data-qui":"SelectGroup",className:de(ib({size:i}),e),children:[C.jsx(rf,{children:r||n.label}),t]})},rf=({className:e,children:t})=>{const{size:n,color:r}=Dt();return C.jsx("div",{className:de(sb({size:n,color:r}),e),children:t})},Fi=({className:e,children:t,inputValue:n})=>{const{size:r}=Dt();return C.jsx("div",{className:de(ob({size:r}),e),children:t||`No options found${n?` for "${n}"`:""}`})},xy=({isOpen:e,usePortal:t,controlRef:n,children:r})=>{const[i,s]=D.useState(null);return D.useLayoutEffect(()=>{if(t&&e&&n.current){const o=()=>{var l;const u=(l=n.current)==null?void 0:l.getBoundingClientRect();u&&s({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,n]),e?t&&i?ro.createPortal(C.jsx("div",{className:"absolute z-50",style:{top:i.top,left:i.left,width:i.width,height:i.height,pointerEvents:"none"},children:C.jsx("div",{className:"relative w-full h-full",children:C.jsx("div",{style:{pointerEvents:"auto"},children:r})})}),document.body):C.jsx(C.Fragment,{children:r}):null},vy=e=>t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})},sf=D.forwardRef(({placeholder:e,noOptionsMessage:t="",hideNoOptions:n=!1,loadingMessage:r="Loading...",isClearable:i=!1,isSearchClearable:s=!1,isLoading:o=!1,isRequired:l=!1,hideIndicators:u=!1,hideDropdownIndicator:c=!1,searchPlacement:d="trigger",hideSelectedOptions:h=!1,onFocus:g,onBlur:m,renderMenuHeader:w,formatOptionLabel:S,displayFormattedOption:y=!1,renderMultiValue:k,renderOption:v,inputRef:_,controlShouldRenderValue:A=!0,name:x,id:f,onSelectionComplete:R,"aria-label":V,"aria-labelledby":L,"aria-describedby":N,children:$,usePortal:U=!1,...J},Y)=>{const{size:Q,isInvalid:Z,isDisabled:q,downshift:K,options:ie=[],getOptionLabel:E,getOptionValue:M,isOptionDisabled:H}=Dt(),T=D.useRef(null),B=_||T,z=D.useRef(null),{isOpen:W,openMenu:F,selectedItem:te,inputValue:ee,highlightedIndex:ne,getToggleButtonProps:le,getMenuProps:G,getInputProps:ae,getItemProps:ce,isMulti:Ie,isSearchable:Ce}=K,Re=Ie?K.selectedItems??[]:te?[te]:[],Ve=Re.length>0,Oe=s&&!q&&!u,Ne=i&&Ve&&!q&&!u,Ke=!c&&!u,vt=!Ve&&(!Ce||!ee)||!A,Je={},Fe={};Object.entries(J).forEach(([he,Me])=>{he.startsWith("data-")||he.startsWith("aria-")||he==="role"?Je[he]=Me:Fe[he]=Me});const Vt=D.useMemo(()=>vy([z,Y]),[Y]),oe=le({disabled:q,ref:Vt}),se=(ae==null?void 0:ae({disabled:q,required:l,name:x,id:f,"aria-label":V,"aria-labelledby":L,"aria-describedby":N,"aria-invalid":Z,onFocus:g,onBlur:m,...Fe}))??{},P=he=>Re.some(Me=>M(Me)===M(he)),be=he=>h?he.filter(Me=>!P(Me)):he,He=he=>h?he.map(Me=>({...Me,options:be(Me.options)})).filter(Me=>Me.options.length>0):he,pt=he=>{R==null||R(M(he),he)};return C.jsxs("div",{className:"relative",children:[C.jsxs(Kd,{...Ce?{ref:Vt}:oe,...Je,isFocused:W,isDisabled:q,onClick:he=>{he.stopPropagation(),Ce?F():K.toggleMenu()},children:[$||C.jsxs(Jd,{isMulti:Ie,children:[Ie&&A&&Re.map((he,Me)=>k?k({data:he,index:Me,isDisabled:q,onRemove:dt=>K.removeItem(dt)}):C.jsx(Qd,{data:he,index:Me,isDisabled:q},M(he))),!Ie&&Ve&&A&&!Ce&&C.jsx("div",{className:"flex items-center gap-2",children:C.jsx(Yd,{data:Re[0],isDisabled:q,children:S&&y?S(Re[0]):E(Re[0])})}),Ce&&d==="trigger"?C.jsx(ji,{ref:B,...se,placeholder:e}):C.jsxs(C.Fragment,{children:[C.jsx(ji,{ref:B,isHidden:!0,value:Re.map(he=>M(he)).join(","),...se}),vt&&C.jsx(Gd,{children:e})]})]}),C.jsxs("div",{className:de("flex items-center size-fit gap-1",{hidden:!Ne&&!Ke}),children:[Oe&&C.jsx(my,{}),Ne&&C.jsx(Xd,{}),Ke&&C.jsx(Zd,{})]})]}),C.jsx(xy,{isOpen:W,usePortal:U,controlRef:z,children:n&&K.filteredItems.length===0?null:C.jsxs(ef,{...G(),children:[w&&w(K),Ce&&d==="menu"&&C.jsx("div",{className:"p-2",children:C.jsx(ji,{ref:B,...se,autoFocus:!0,placeholder:e,onClick:he=>he.stopPropagation()})}),C.jsx(tf,{children:o?C.jsx("div",{className:ab({size:Q}),children:r}):K.filteredItems.length===0?C.jsx(Fi,{inputValue:ee,children:typeof t=="function"?t(ee):t}):Up(ie)?(()=>{const he=He(ie);return he.length===0?C.jsx(Fi,{inputValue:ee,children:typeof t=="function"?t(ee):t}):he.map(Me=>C.jsx(nf,{data:Me,label:Me.label,options:Me.options,children:Me.options.map(dt=>{const Mt=M(dt),ct=Re.some(_t=>M(_t)===Mt),St=K.filteredItems.findIndex(_t=>M(_t)===Mt),wt=ne===St,Xn=H(dt),un=ce({item:dt,index:St,onClick:()=>pt(dt)});return C.jsx(Fa,{...un,data:dt,isDisabled:Xn,isFocused:wt,isSelected:ct,children:S?S(dt):E(dt)},Mt)})},Me.label))})():(()=>{const he=be(K.filteredItems);return he.length===0?C.jsx(Fi,{inputValue:ee,children:typeof t=="function"?t(ee):t}):he.map(Me=>{const dt=M(Me),Mt=Re.some(un=>M(un)===dt),ct=K.filteredItems.findIndex(un=>M(un)===dt),St=ne===ct,wt=H(Me),Xn=ce({item:Me,index:ct,onClick:()=>pt(Me)});return v?C.jsx(D.Fragment,{children:v({...Xn,data:Me,isDisabled:wt,isFocused:St,isSelected:Mt})},dt):C.jsx(Fa,{...Xn,data:Me,isDisabled:wt,isFocused:St,isSelected:Mt,children:S?S(Me):E(Me)},dt)})})()})]})})]})});qd.displayName="Select.Root";Kd.displayName="Select.Control";Jd.displayName="Select.ValueContainer";ji.displayName="Select.Input";Gd.displayName="Select.Placeholder";Yd.displayName="Select.SingleValue";Qd.displayName="Select.MultiValue";Xd.displayName="Select.ClearIndicator";Zd.displayName="Select.DropdownIndicator";ef.displayName="Select.Menu";tf.displayName="Select.MenuList";Fa.displayName="Select.Option";nf.displayName="Select.Group";rf.displayName="Select.GroupHeading";Fi.displayName="Select.NoOptionsMessage";sf.displayName="Select.Field";const pc={Root:qd,Field:sf};D.createContext(void 0);const by=({active:e,disabled:t,error:n,isOpen:r,className:i})=>de("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":n&&!e&&!t,"bg-primary":r&&!e&&!t,"text-tab-inactive-fg":!e&&!t&&!n,"hover:bg-primary-hover hover:text-tab-active-fg":!t&&!e},i),yy=D.forwardRef(({active:e,disabled:t,error:n,isOpen:r,className:i,children:s,as:o="div",...l},u)=>{const c=by({active:e,disabled:t,error:n,isOpen:r,className:i});return C.jsx(o,{"data-qui":"ListItem",ref:u,className:c,"aria-disabled":t,"aria-selected":e,"aria-invalid":n,"aria-expanded":r,role:l.onClick?"button":"listitem",...l,children:s})});yy.displayName="ListItem";const wy=({keyName:e,value:t,isDefault:n})=>{const{state:{newValue:r,onEditValue:i},actions:s}=ve.useStateObject({newValue:t,onEditValue:!1}),{setLanguageKeyValue:o,removeKey:l}=Gn(),u=Fn(),[c,d]=D.useState(null),h=()=>{i&&(o(e,r),s.setOnEditValue(!1),d(null))},g=()=>{i&&(s.setNewValue(t),s.setOnEditValue(!1),d(null))},m=async()=>{const{confirmed:w}=await u.actions.openModal({title:"Delete Key",type:ve.ModalType.CONFIRM,color:ve.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"});w&&l(e)};return D.useEffect(()=>{s.setNewValue(t)},[t]),C.jsxs("tr",{className:"odd:bg-white/5",children:[C.jsx("td",{className:"px-2 text-xs font-normal h-10",children:e}),C.jsx("td",{className:"p-2 whitespace-nowrap text-xs font-normal h-10",children:i?C.jsxs(sn.Root,{isInvalid:!!c,children:[C.jsx(sn.Group,{children:C.jsx(sn.Area,{value:r,onChange:w=>{s.setNewValue(w.target.value),d(null)},onKeyDown:w=>{w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),h())}})}),c&&C.jsx(sn.Message,{children:c==null?void 0:c.message})]}):C.jsx("span",{className:yt("text-wrap",{"italic text-inactive-text":n}),onDoubleClick:()=>{s.setOnEditValue(!0)},children:t})}),C.jsx("td",{className:"flex items-center px-2 text-xs font-normal float-right h-10",children:i?C.jsxs(C.Fragment,{children:[C.jsx(At,{label:"Confirm",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:h,children:C.jsx(ot.FdCheckCircle,{})})}),C.jsx(At,{label:"Cancel",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:g,children:C.jsx(ot.FdClose,{})})})]}):C.jsxs(C.Fragment,{children:[C.jsx(At,{label:"Edit",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:()=>{s.setOnEditValue(!0)},children:C.jsx(ot.FdPen,{})})}),C.jsx(At,{label:"Delete",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:m,children:C.jsx(ot.FdTrash,{})})})]})})]})},ky=({onCancel:e,onConfirm:t,error:n,setError:r})=>{const{state:i,actions:s}=ve.useStateObject({key:"",value:""}),o=()=>{t(i.key,i.value)},l=()=>{r(null),e()};return C.jsxs("tr",{className:"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(sn.Root,{color:n?"negative":"primary",children:[C.jsx(sn.Group,{children:C.jsx(sn.Field,{type:"text",value:i.key,onChange:u=>{r(null),s.setKey(u.target.value)},autoFocus:!0,onKeyUp:u=>{u.key==="Escape"&&(r(null),l())}})}),n&&C.jsx(sn.Message,{children:n==null?void 0:n.message})]})}),C.jsx("td",{className:"px-2 whitespace-nowrap text-xs font-normal h-10",children:C.jsx(sn.Root,{color:n?"negative":"primary",children:C.jsx(sn.Group,{children:C.jsx(sn.Field,{type:"text",value:i.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(At,{label:"Confirm",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:o,children:C.jsx(ot.FdCheckCircle,{})})}),C.jsx(At,{label:"Cancel",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:l,children:C.jsx(ot.FdClose,{})})})]})]})},Sy=()=>{const{languageKeys:e,isPrimary:t,selectedLanguage:n,userLanguages:{supported:r},addNewKey:i,setUserLangSettings:s}=Gn(),{state:o,actions:l}=ve.useStateObject({search:"",switch:t,keys:[],addNewKey:!1}),[u,c]=D.useState(null),d=Qm(e),h=!!n&&!d,g=!!n,m=e.filter(_=>_.key.match(new RegExp(xe.escapeRegExp(o.search),"gi"))),w=m.length===0,S=()=>{if(n){const{isocode:_}=n;s({primary:_,supported:r})}},y=()=>{l.setAddNewKey(!0)},k=(_,A)=>{const x=m.find(f=>f.key===_);if(n){const{isocode:f}=n;if(_){if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(_)||!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(_)){c({message:"Invalid key name"});return}else if(x){c({message:"Key name already exists"});return}i(_,[{lang:f,value:A}],A)}l.setAddNewKey(!1)}},v=()=>{l.setAddNewKey(!1)};return D.useEffect(()=>{l.setSwitch(t)},[t]),C.jsx(br,{depth:1,className:yt("flex w-full border-l",{"justify-center items-center":!1}),children:C.jsxs("div",{className:"flex flex-col w-full py-3 px-3",children:[C.jsxs("div",{className:"flex flex-col space-y-3 justify-between w-full",children:[C.jsxs("div",{className:yt("flex items-center w-full justify-between",{hidden:!g}),children:[C.jsxs("div",{className:"flex space-x-2 items-center justify-center",children:[C.jsx("span",{className:"text-[12px]",children:"Shared Labels"}),C.jsx(ve.Tip,{tipKey:"editors:i18n:label",alwaysOn:!0})]}),C.jsxs("div",{className:"flex space-x-2 justify-center items-center",children:[C.jsx(jp,{onChange:_=>{t||(l.setSwitch(_),S())},checked:o.switch}),C.jsx("span",{className:"text-xs",children:"Primary Locale"})]})]}),C.jsx("div",{className:yt("w-60",{invisible:!h}),children:C.jsx(ve.SearchInput,{containerClassName:"",value:o.search,onChange:_=>l.setSearch(_),delay:300})})]}),d?C.jsx(ex,{}):C.jsxs("div",{className:"w-full",children:[C.jsxs("table",{className:"w-full text-sm text-left rtl:text-right table-fixed",children:[C.jsx("thead",{className:"text-xs ",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(At,{label:"Add a key",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:y,children:C.jsx(ot.FdPlus,{})})})})]})}),C.jsxs("tbody",{className:"border-t-[1px] border-border-subtle",children:[m.map((_,A)=>C.jsx(wy,{keyName:_.key,value:_.value,isDefault:_.isDefault},`${n==null?void 0:n.isocode}/${A}`)),o.addNewKey&&C.jsx(ky,{onConfirm:k,onCancel:v,setError:c,error:u}),w&&C.jsx("span",{})]})]}),w&&C.jsxs("div",{className:"flex flex-col justify-center items-center mt-16 ml-2 text-xs space-y-3 text-inactive-text",children:[C.jsx(ot.FdInfoBold,{className:"h-9 w-9"}),C.jsx("div",{className:"text-xs",children:"This key doesn't exist."})]})]})]})})},ts=(e,t)=>t.find(n=>n.isocode===e);function _y(){return{enter:{mdxFlowExpression:Iy,mdxTextExpression:Cy},exit:{mdxFlowExpression:dc,mdxFlowExpressionChunk:fc,mdxTextExpression:dc,mdxTextExpressionChunk:fc}}}function Ey(){return{handlers:{mdxFlowExpression:gc,mdxTextExpression:gc},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]}}function Iy(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function Cy(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function dc(e){const t=this.resume(),n=e.estree,r=this.stack[this.stack.length-1];r.type==="mdxFlowExpression"||r.type,this.exit(e),r.value=t,n&&(r.data={estree:n})}function fc(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function gc(e,t,n){const r=e.value||"";return"{"+n.indentLines(r,function(s,o,l){return(o===0||l?"":" ")+s})+"}"}function ns(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const Ay=["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"],mc={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 af(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function Ty(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Ny(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function xc(e){return Ny(e)||af(e)}const vc=document.createElement("i");function Wr(e){const t="&"+e+";";vc.innerHTML=t;const n=vc.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const Oy=["","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 Py(e,t){const n=t||{},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,i=[];let s=0,o=-1,l="",u,c;n.position&&("start"in n.position||"indent"in n.position?(c=n.position.indent,u=n.position.start):u=n.position);let d=(u?u.line:0)||1,h=(u?u.column:0)||1,g=w(),m;for(s--;++s<=e.length;)if(m===10&&(h=(c?c[o]:0)||1),m=e.charCodeAt(s),m===38){const k=e.charCodeAt(s+1);if(k===9||k===10||k===12||k===32||k===38||k===60||Number.isNaN(k)||r&&k===r){l+=String.fromCharCode(m),h++;continue}const v=s+1;let _=v,A=v,x;if(k===35){A=++_;const J=e.charCodeAt(A);J===88||J===120?(x="hexadecimal",A=++_):x="decimal"}else x="named";let f="",R="",V="";const L=x==="named"?xc:x==="decimal"?af:Ty;for(A--;++A<=e.length;){const J=e.charCodeAt(A);if(!L(J))break;V+=String.fromCharCode(J),x==="named"&&Ay.includes(V)&&(f=V,R=Wr(V))}let N=e.charCodeAt(A)===59;if(N){A++;const J=x==="named"?Wr(V):!1;J&&(f=V,R=J)}let $=1+A-v,U="";if(!(!N&&n.nonTerminated===!1))if(!V)x!=="named"&&S(4,$);else if(x==="named"){if(N&&!R)S(5,1);else if(f!==V&&(A=_+f.length,$=1+A-_,N=!1),!N){const J=f?1:3;if(n.attribute){const Y=e.charCodeAt(A);Y===61?(S(J,$),R=""):xc(Y)?R="":S(J,$)}else S(J,$)}U=R}else{N||S(2,$);let J=Number.parseInt(V,x==="hexadecimal"?16:10);if(Ry(J))S(7,$),U="�";else if(J in mc)S(6,$),U=mc[J];else{let Y="";Dy(J)&&S(6,$),J>65535&&(J-=65536,Y+=String.fromCharCode(J>>>10|55296),J=56320|J&1023),U=Y+String.fromCharCode(J)}}if(U){y(),g=w(),s=A-1,h+=A-v+1,i.push(U);const J=w();J.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,U,{start:g,end:J},e.slice(v-1,A)),g=J}else V=e.slice(v-1,A),l+=V,h+=V.length,s=A-1}else m===10&&(d++,o++,h=0),Number.isNaN(m)?y():(l+=String.fromCharCode(m),h++);return i.join("");function w(){return{line:d,column:h,offset:s+((u?u.offset:0)||0)}}function S(k,v){let _;n.warning&&(_=w(),_.column+=v,_.offset+=v,n.warning.call(n.warningContext||void 0,Oy[k],_,k))}function y(){l&&(i.push(l),n.text&&n.text.call(n.textContext||void 0,l,{start:g,end:w()}),l="")}}function Ry(e){return e>=55296&&e<=57343||e>1114111}function Dy(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 Ly=/["&'<>`]/g,Vy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,My=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,jy=/[|\\{}()[\]^$+*?.]/g,bc=new WeakMap;function Fy(e,t){if(e=e.replace(t.subset?zy(t.subset):Ly,r),t.subset||t.escapeOnly)return e;return e.replace(Vy,n).replace(My,r);function n(i,s,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),t)}function r(i,s,o){return t.format(i.charCodeAt(0),o.charCodeAt(s+1),t)}}function zy(e){let t=bc.get(e);return t||(t=By(e),bc.set(e,t)),t}function By(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(jy,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function Hy(e){return"&#x"+e.toString(16).toUpperCase()+";"}function $y(e,t){return Fy(e,Object.assign({format:Hy},t))}function kn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?yc(e.position):"start"in e||"end"in e?yc(e):"line"in e||"column"in e?za(e):""}function za(e){return wc(e&&e.line)+":"+wc(e&&e.column)}function yc(e){return za(e&&e.start)+"-"+za(e&&e.end)}function wc(e){return e&&typeof e=="number"?e:1}class Xe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",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"?i=t:!s.cause&&t&&(o=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?s.ruleId=r:(s.source=r.slice(0,u),s.ruleId=r.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=i,this.line=l?l.line:void 0,this.name=kn(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}}Xe.prototype.file="";Xe.prototype.name="";Xe.prototype.reason="";Xe.prototype.message="";Xe.prototype.stack="";Xe.prototype.column=void 0;Xe.prototype.line=void 0;Xe.prototype.ancestors=void 0;Xe.prototype.cause=void 0;Xe.prototype.fatal=void 0;Xe.prototype.place=void 0;Xe.prototype.ruleId=void 0;Xe.prototype.source=void 0;const of=" ";function Wy(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:r,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:h,mdxJsxFlowTagExpressionAttribute:g,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:r,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:h,mdxJsxTextTagExpressionAttribute:g,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:l,mdxJsxFlowTagNamePrimary:u,mdxJsxFlowTagNameMember:c,mdxJsxFlowTagNameLocal:d,mdxJsxFlowTagExpressionAttribute:m,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:w,mdxJsxFlowTagAttributeNameLocal:S,mdxJsxFlowTagAttributeValueLiteral:y,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:k,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:v,mdxJsxFlowTag:_,mdxJsxTextTagClosingMarker:l,mdxJsxTextTagNamePrimary:u,mdxJsxTextTagNameMember:c,mdxJsxTextTagNameLocal:d,mdxJsxTextTagExpressionAttribute:m,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:w,mdxJsxTextTagAttributeNameLocal:S,mdxJsxTextTagAttributeValueLiteral:y,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:k,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:v,mdxJsxTextTag:_}};function e(){this.buffer()}function t(R){return{line:R.line,column:R.column,offset:R.offset}}function n(R){this.config.enter.data.call(this,R),this.config.exit.data.call(this,R)}function r(R){const V={name:void 0,attributes:[],close:!1,selfClosing:!1,start:R.start,end:R.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=V,this.buffer()}function i(R){if(this.data.mdxJsxTagStack.length===0)throw new Xe("Unexpected closing slash `/` in tag, expected an open tag first",{start:R.start,end:R.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function s(R){if(this.data.mdxJsxTag.close)throw new Xe("Unexpected attribute in closing tag, expected the end of the tag",{start:R.start,end:R.end},"mdast-util-mdx-jsx:unexpected-attribute")}function o(R){if(this.data.mdxJsxTag.close)throw new Xe("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:R.start,end:R.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function l(){const R=this.data.mdxJsxTag;R.close=!0}function u(R){const V=this.data.mdxJsxTag;V.name=this.sliceSerialize(R)}function c(R){const V=this.data.mdxJsxTag;V.name+="."+this.sliceSerialize(R)}function d(R){const V=this.data.mdxJsxTag;V.name+=":"+this.sliceSerialize(R)}function h(R){const V=this.data.mdxJsxTag;s.call(this,R),V.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(R.start),end:void 0}})}function g(R){const V=this.data.mdxJsxTag;s.call(this,R),V.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(R.start),end:void 0}}),this.buffer()}function m(R){const V=this.data.mdxJsxTag,L=V.attributes[V.attributes.length-1];L.type;const N=R.estree;L.value=this.resume(),L.position,L.position.end=t(R.end),N&&(L.data={estree:N})}function w(R){const V=this.data.mdxJsxTag,L=V.attributes[V.attributes.length-1];L.type,L.name=this.sliceSerialize(R),L.position,L.position.end=t(R.end)}function S(R){const V=this.data.mdxJsxTag,L=V.attributes[V.attributes.length-1];L.type,L.name+=":"+this.sliceSerialize(R),L.position,L.position.end=t(R.end)}function y(R){const V=this.data.mdxJsxTag,L=V.attributes[V.attributes.length-1];L.value=Py(this.resume(),{nonTerminated:!1}),L.position,L.position.end=t(R.end)}function k(R){const V=this.data.mdxJsxTag,L=V.attributes[V.attributes.length-1];L.type;const N={type:"mdxJsxAttributeValueExpression",value:this.resume()},$=R.estree;$&&(N.data={estree:$}),L.value=N,L.position,L.position.end=t(R.end)}function v(){const R=this.data.mdxJsxTag;R.selfClosing=!0}function _(R){const V=this.data.mdxJsxTag,L=this.data.mdxJsxTagStack,N=L[L.length-1];if(V.close&&N.name!==V.name)throw new Xe("Unexpected closing tag `"+f(V)+"`, expected corresponding closing tag for `"+f(N)+"` ("+kn(N)+")",{start:R.start,end:R.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),V.close?L.pop():this.enter({type:R.type==="mdxJsxTextTag"?"mdxJsxTextElement":"mdxJsxFlowElement",name:V.name||null,attributes:V.attributes,children:[]},R,A),V.selfClosing||V.close?this.exit(R,x):L.push(V)}function A(R,V){const L=this.data.mdxJsxTagStack,N=L[L.length-1],$=R?" before the end of `"+R.type+"`":"",U=R?{start:R.start,end:R.end}:void 0;throw new Xe("Expected a closing tag for `"+f(N)+"` ("+kn({start:V.start,end:V.end})+")"+$,U,"mdast-util-mdx-jsx:end-tag-mismatch")}function x(R,V){const L=this.data.mdxJsxTag;throw new Xe("Expected the closing tag `"+f(L)+"` either after the end of `"+V.type+"` ("+kn(V.end)+") or another opening tag after the start of `"+V.type+"` ("+kn(V.start)+")",{start:R.start,end:R.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function f(R){return"<"+(R.close?"/":"")+(R.name||"")+">"}}function Uy(e){const t=e||{},n=t.quote||'"',r=t.quoteSmart||!1,i=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=Ky,{handlers:{mdxJsxFlowElement:l,mdxJsxTextElement:l},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function l(u,c,d,h){const g=u.type==="mdxJsxFlowElement",m=u.name?!u.children||u.children.length===0:!1,w=lf(d),S=uf(w),y=d.createTracker(h),k=d.createTracker(h),v=[],_=(g?S:"")+"<"+(u.name||""),A=d.enter(u.type);if(y.move(_),k.move(_),u.attributes&&u.attributes.length>0){if(!u.name)throw new Error("Cannot serialize fragment w/ attributes");let L=-1;for(;++L<u.attributes.length;){const N=u.attributes[L];let $;if(N.type==="mdxJsxExpressionAttribute")$="{"+(N.value||"")+"}";else{if(!N.name)throw new Error("Cannot serialize attribute w/o name");const U=N.value,J=N.name;let Y="";if(U!=null)if(typeof U=="object")Y="{"+(U.value||"")+"}";else{const Q=r&&ns(U,n)>ns(U,o)?o:n;Y=Q+$y(U,{subset:[Q]})+Q}$=J+(Y?"=":"")+Y}v.push($)}}let x=!1;const f=v.join(" ");g&&(/\r?\n|\r/.test(f)||y.current().now.column+f.length+(m?i?2:3:1)>s)&&(x=!0);let R=y,V=_;if(x){R=k;let L=-1;for(;++L<v.length;)v[L]=S+of+v[L];V+=R.move(`
52
+ */var Zu;function yb(){return Zu||(Zu=1,pe.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=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"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),w=!1,S=!1,y=!1,k=!1,v=!1,_;_=Symbol.for("react.module.reference");function A(ce){return!!(typeof ce=="string"||typeof ce=="function"||ce===n||ce===i||v||ce===r||ce===c||ce===d||k||ce===m||w||S||y||typeof ce=="object"&&ce!==null&&(ce.$$typeof===g||ce.$$typeof===h||ce.$$typeof===s||ce.$$typeof===o||ce.$$typeof===u||ce.$$typeof===_||ce.getModuleId!==void 0))}function x(ce){if(typeof ce=="object"&&ce!==null){var Ie=ce.$$typeof;switch(Ie){case e:var Ce=ce.type;switch(Ce){case n:case i:case r:case c:case d:return Ce;default:var Re=Ce&&Ce.$$typeof;switch(Re){case l:case o:case u:case g:case h:case s:return Re;default:return Ie}}case t:return Ie}}}var f=o,R=s,V=e,L=u,N=n,$=g,U=h,J=t,Y=i,Q=r,Z=c,q=d,K=!1,ie=!1;function E(ce){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function M(ce){return ie||(ie=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(ce){return x(ce)===o}function T(ce){return x(ce)===s}function B(ce){return typeof ce=="object"&&ce!==null&&ce.$$typeof===e}function z(ce){return x(ce)===u}function W(ce){return x(ce)===n}function F(ce){return x(ce)===g}function te(ce){return x(ce)===h}function ee(ce){return x(ce)===t}function ne(ce){return x(ce)===i}function le(ce){return x(ce)===r}function G(ce){return x(ce)===c}function ae(ce){return x(ce)===d}it.ContextConsumer=f,it.ContextProvider=R,it.Element=V,it.ForwardRef=L,it.Fragment=N,it.Lazy=$,it.Memo=U,it.Portal=J,it.Profiler=Y,it.StrictMode=Q,it.Suspense=Z,it.SuspenseList=q,it.isAsyncMode=E,it.isConcurrentMode=M,it.isContextConsumer=H,it.isContextProvider=T,it.isElement=B,it.isForwardRef=z,it.isFragment=W,it.isLazy=F,it.isMemo=te,it.isPortal=ee,it.isProfiler=ne,it.isStrictMode=le,it.isSuspense=G,it.isSuspenseList=ae,it.isValidElementType=A,it.typeOf=x})()),it}var ec;function wb(){return ec||(ec=1,pe.NODE_ENV==="production"?Ys.exports=bb():Ys.exports=yb()),Ys.exports}var tc=wb();const nc=e=>typeof e=="object"&&e!=null&&e.nodeType===1,rc=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",vi=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return rc(n.overflowY,t)||rc(n.overflowX,t)||(r=>{const i=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(e)}return!1},bi=(e,t,n,r,i,s,o,l)=>s<e&&o>t||s>e&&o<t?0:s<=e&&l<=n||o>=t&&l>=n?s-e-r:o>t&&l<n||s<e&&l>n?o-t+i:0,kb=e=>e.parentElement??(e.getRootNode().host||null),Sb=(e,t)=>{var n,r,i,s;if(typeof document>"u")return[];const{inline:o,boundary:l,skipOverflowHiddenElements:u}=t,c=typeof l=="function"?l:J=>J!==l;if(!nc(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,h=[];let g=e;for(;nc(g)&&c(g);){if(g=kb(g),g===d){h.push(g);break}g!=null&&g===document.body&&vi(g)&&!vi(document.documentElement)||g!=null&&vi(g,u)&&h.push(g)}const m=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,w=(s=(i=window.visualViewport)==null?void 0:i.height)!=null?s:innerHeight,{scrollX:S,scrollY:y}=window,{height:k,width:v,top:_,right:A,bottom:x,left:f}=e.getBoundingClientRect(),{top:R,right:V,left:L}=(J=>{const Y=window.getComputedStyle(J);return{top:parseFloat(Y.scrollMarginTop)||0,right:parseFloat(Y.scrollMarginRight)||0,bottom:parseFloat(Y.scrollMarginBottom)||0,left:parseFloat(Y.scrollMarginLeft)||0}})(e);let N=_-R,$=o==="center"?f+v/2-L+V:o==="end"?A+V:f-L;const U=[];for(let J=0;J<h.length;J++){const Y=h[J],{height:Q,width:Z,top:q,right:K,bottom:ie,left:E}=Y.getBoundingClientRect();if(_>=0&&f>=0&&x<=w&&A<=m&&(Y===d&&!vi(Y)||_>=q&&x<=ie&&f>=E&&A<=K))return U;const M=getComputedStyle(Y),H=parseInt(M.borderLeftWidth,10),T=parseInt(M.borderTopWidth,10),B=parseInt(M.borderRightWidth,10),z=parseInt(M.borderBottomWidth,10);let W=0,F=0;const te="offsetWidth"in Y?Y.offsetWidth-Y.clientWidth-H-B:0,ee="offsetHeight"in Y?Y.offsetHeight-Y.clientHeight-T-z:0,ne="offsetWidth"in Y?Y.offsetWidth===0?0:Z/Y.offsetWidth:0,le="offsetHeight"in Y?Y.offsetHeight===0?0:Q/Y.offsetHeight:0;if(d===Y)W=bi(y,y+w,w,T,z,y+N,y+N+k,k),F=o==="start"?$:o==="center"?$-m/2:o==="end"?$-m:bi(S,S+m,m,H,B,S+$,S+$+v,v),W=Math.max(0,W+y),F=Math.max(0,F+S);else{W=bi(q,ie,Q,T,z+ee,N,N+k,k),F=o==="start"?$-E-H:o==="center"?$-(E+Z/2)+te/2:o==="end"?$-K+B+te:bi(E,K,Z,H,B+te,$,$+v,v);const{scrollLeft:G,scrollTop:ae}=Y;W=le===0?0:Math.max(0,Math.min(ae+W/le,Y.scrollHeight-Q/le+ee)),F=ne===0?0:Math.max(0,Math.min(G+F/ne,Y.scrollWidth-Z/ne+te)),N+=ae-W,$+=G-F}U.push({el:Y,top:W,left:F})}return U};var dr=function(){return dr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},dr.apply(this,arguments)},_b=0;function ic(e){return typeof e=="function"?e:Ot}function Ot(){}function Jp(e,t){if(e){var n=Sb(e,{boundary:t});n.forEach(function(r){var i=r.el,s=r.top,o=r.left;i.scrollTop=s,i.scrollLeft=o})}}function sc(e,t,n){var r=e===t||t instanceof n.Node&&e.contains&&e.contains(t);return r}function ys(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];r(),n=setTimeout(function(){n=null,e.apply(void 0,o)},t)}return i.cancel=r,i}function Qe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];return t.some(function(l){return l&&l.apply(void 0,[r].concat(s)),r.preventDownshiftDefault||r.hasOwnProperty("nativeEvent")&&r.nativeEvent.preventDownshiftDefault})}}function an(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){t.forEach(function(i){typeof i=="function"?i(r):i&&(i.current=r)})}}function Gp(){return String(_b++)}function Eb(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?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 ac(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function Yp(e){return typeof e.type=="string"}function Qp(e){return e.props}function Ib(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var Cb=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function yi(e){e===void 0&&(e={});var t={};return Cb.forEach(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function $r(e,t){return!e||!t?e:Object.keys(e).reduce(function(n,r){return n[r]=Ji(t,r)?t[r]:e[r],n},{})}function Ji(e,t){return e[t]!==void 0}function fr(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function Ab(e){return Object.prototype.toString.call(e)==="[object Object]"}function on(e,t,n,r,i){i===void 0&&(i=!1);var s=n.length;if(s===0)return-1;var o=s-1;(typeof e!="number"||e<0||e>o)&&(e=t>0?-1:o+1);var l=e+t;l<0?l=i?o:0:l>o&&(l=i?0:o);var u=Vn(l,t<0,n,r,i);return u===-1?e>=s?-1:e:u}function Vn(e,t,n,r,i){i===void 0&&(i=!1);var s=n.length;if(t){for(var o=e;o>=0;o--)if(!r(n[o],o))return o}else for(var l=e;l<s;l++)if(!r(n[l],l))return l;return i?Vn(t?s-1:0,t,n,r):-1}function Gi(e,t,n,r){return r===void 0&&(r=!0),n&&t.some(function(i){return i&&(sc(i,e,n)||r&&sc(i,n.document.activeElement,n))})}var mo=Ot;pe.NODE_ENV!=="production"&&(mo=function(e,t,n){var r="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&&n[i]===void 0?console.error('downshift: A component has changed the controlled prop "'+i+'" to be uncontrolled. '+r):t[i]===void 0&&n[i]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+i+'" to be controlled. '+r)})});var Tb=ys(function(e){Xp(e).textContent=""},500);function Xp(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 Zp(e,t){if(!(!e||!t)){var n=Xp(t);n.textContent=e,Tb(t)}}function Nb(e){var t=e==null?void 0:e.getElementById("a11y-status-message");t&&t.remove()}var ed=pe.NODE_ENV!=="production"?"__autocomplete_unknown__":0,td=pe.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,nd=pe.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,Di=pe.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,Li=pe.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,rd=pe.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,id=pe.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,sd=pe.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,ad=pe.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,od=pe.NODE_ENV!=="production"?"__autocomplete_click_item__":9,ld=pe.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,ud=pe.NODE_ENV!=="production"?"__autocomplete_change_input__":11,cd=pe.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,Ma=pe.NODE_ENV!=="production"?"__autocomplete_click_button__":13,hd=pe.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,pd=pe.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,dd=pe.NODE_ENV!=="production"?"__autocomplete_touchend__":16,Ob=Object.freeze({__proto__:null,blurButton:hd,blurInput:ld,changeInput:ud,clickButton:Ma,clickItem:od,controlledPropUpdatedSelectedItem:pd,itemMouseEnter:nd,keyDownArrowDown:Li,keyDownArrowUp:Di,keyDownEnd:ad,keyDownEnter:id,keyDownEscape:rd,keyDownHome:sd,keyDownSpaceButton:cd,mouseUp:td,touchEnd:dd,unknown:ed}),Pb=["refKey","ref"],Rb=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],Db=["onKeyDown","onBlur","onChange","onInput","onChangeText"],Lb=["refKey","ref"],Vb=["onMouseMove","onMouseDown","onClick","onPress","index","item"],Mb=(function(){var e=(function(t){function n(i){var s;s=t.call(this,i)||this,s.id=s.props.id||"downshift-"+Gp(),s.menuId=s.props.menuId||s.id+"-menu",s.labelId=s.props.labelId||s.id+"-label",s.inputId=s.props.inputId||s.id+"-input",s.getItemId=s.props.getItemId||function(v){return s.id+"-item-"+v},s.items=[],s.itemCount=null,s.previousResultCount=0,s.timeoutIds=[],s.internalSetTimeout=function(v,_){var A=setTimeout(function(){s.timeoutIds=s.timeoutIds.filter(function(x){return x!==A}),v()},_);s.timeoutIds.push(A)},s.setItemCount=function(v){s.itemCount=v},s.unsetItemCount=function(){s.itemCount=null},s.isItemDisabled=function(v,_){var A=s.getItemNodeFromIndex(_);return A&&A.hasAttribute("disabled")},s.setHighlightedIndex=function(v,_){v===void 0&&(v=s.props.defaultHighlightedIndex),_===void 0&&(_={}),_=yi(_),s.internalSetState(Te({highlightedIndex:v},_))},s.clearSelection=function(v){s.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:s.props.defaultHighlightedIndex,isOpen:s.props.defaultIsOpen},v)},s.selectItem=function(v,_,A){_=yi(_),s.internalSetState(Te({isOpen:s.props.defaultIsOpen,highlightedIndex:s.props.defaultHighlightedIndex,selectedItem:v,inputValue:s.props.itemToString(v)},_),A)},s.selectItemAtIndex=function(v,_,A){var x=s.items[v];x!=null&&s.selectItem(x,_,A)},s.selectHighlightedItem=function(v,_){return s.selectItemAtIndex(s.getState().highlightedIndex,v,_)},s.internalSetState=function(v,_){var A,x,f={},R=typeof v=="function";return!R&&v.hasOwnProperty("inputValue")&&s.props.onInputValueChange(v.inputValue,Te({},s.getStateAndHelpers(),v)),s.setState(function(V){var L;V=s.getState(V);var N=R?v(V):v;N=s.props.stateReducer(V,N),A=N.hasOwnProperty("selectedItem");var $={};return A&&N.selectedItem!==V.selectedItem&&(x=N.selectedItem),(L=N).type||(L.type=ed),Object.keys(N).forEach(function(U){V[U]!==N[U]&&(f[U]=N[U]),U!=="type"&&(N[U],Ji(s.props,U)||($[U]=N[U]))}),R&&N.hasOwnProperty("inputValue")&&s.props.onInputValueChange(N.inputValue,Te({},s.getStateAndHelpers(),N)),$},function(){ic(_)();var V=Object.keys(f).length>1;V&&s.props.onStateChange(f,s.getStateAndHelpers()),A&&s.props.onSelect(v.selectedItem,s.getStateAndHelpers()),x!==void 0&&s.props.onChange(x,s.getStateAndHelpers()),s.props.onUserAction(f,s.getStateAndHelpers())})},s.rootRef=function(v){return s._rootNode=v},s.getRootProps=function(v,_){var A,x=v===void 0?{}:v,f=x.refKey,R=f===void 0?"ref":f,V=x.ref,L=Pt(x,Pb),N=_===void 0?{}:_,$=N.suppressRefError,U=$===void 0?!1:$;s.getRootProps.called=!0,s.getRootProps.refKey=R,s.getRootProps.suppressRefError=U;var J=s.getState(),Y=J.isOpen;return Te((A={},A[R]=an(V,s.rootRef),A.role="combobox",A["aria-expanded"]=Y,A["aria-haspopup"]="listbox",A["aria-owns"]=Y?s.menuId:void 0,A["aria-labelledby"]=s.labelId,A),L)},s.keyDownHandlers={ArrowDown:function(v){var _=this;if(v.preventDefault(),this.getState().isOpen){var A=v.shiftKey?5:1;this.moveHighlightedIndex(A,{type:Li})}else this.internalSetState({isOpen:!0,type:Li},function(){var x=_.getItemCount();if(x>0){var f=_.getState(),R=f.highlightedIndex,V=on(R,1,{length:x},_.isItemDisabled,!0);_.setHighlightedIndex(V,{type:Li})}})},ArrowUp:function(v){var _=this;if(v.preventDefault(),this.getState().isOpen){var A=v.shiftKey?-5:-1;this.moveHighlightedIndex(A,{type:Di})}else this.internalSetState({isOpen:!0,type:Di},function(){var x=_.getItemCount();if(x>0){var f=_.getState(),R=f.highlightedIndex,V=on(R,-1,{length:x},_.isItemDisabled,!0);_.setHighlightedIndex(V,{type:Di})}})},Enter:function(v){if(v.which!==229){var _=this.getState(),A=_.isOpen,x=_.highlightedIndex;if(A&&x!=null){v.preventDefault();var f=this.items[x],R=this.getItemNodeFromIndex(x);if(f==null||R&&R.hasAttribute("disabled"))return;this.selectHighlightedItem({type:id})}}},Escape:function(v){v.preventDefault(),this.reset(Te({type:rd},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},s.buttonKeyDownHandlers=Te({},s.keyDownHandlers,{" ":function(v){v.preventDefault(),this.toggleMenu({type:cd})}}),s.inputKeyDownHandlers=Te({},s.keyDownHandlers,{Home:function(v){var _=this.getState(),A=_.isOpen;if(A){v.preventDefault();var x=this.getItemCount();if(!(x<=0||!A)){var f=Vn(0,!1,{length:x},this.isItemDisabled);this.setHighlightedIndex(f,{type:sd})}}},End:function(v){var _=this.getState(),A=_.isOpen;if(A){v.preventDefault();var x=this.getItemCount();if(!(x<=0||!A)){var f=Vn(x-1,!0,{length:x},this.isItemDisabled);this.setHighlightedIndex(f,{type:ad})}}}}),s.getToggleButtonProps=function(v){var _=v===void 0?{}:v,A=_.onClick;_.onPress;var x=_.onKeyDown,f=_.onKeyUp,R=_.onBlur,V=Pt(_,Rb),L=s.getState(),N=L.isOpen,$={onClick:Qe(A,s.buttonHandleClick),onKeyDown:Qe(x,s.buttonHandleKeyDown),onKeyUp:Qe(f,s.buttonHandleKeyUp),onBlur:Qe(R,s.buttonHandleBlur)},U=V.disabled?{}:$;return Te({type:"button",role:"button","aria-label":N?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},U,V)},s.buttonHandleKeyUp=function(v){v.preventDefault()},s.buttonHandleKeyDown=function(v){var _=fr(v);s.buttonKeyDownHandlers[_]&&s.buttonKeyDownHandlers[_].call(s,v)},s.buttonHandleClick=function(v){if(v.preventDefault(),s.props.environment){var _=s.props.environment.document,A=_.body,x=_.activeElement;A&&A===x&&v.target.focus()}pe.NODE_ENV==="test"?s.toggleMenu({type:Ma}):s.internalSetTimeout(function(){return s.toggleMenu({type:Ma})})},s.buttonHandleBlur=function(v){var _=v.target;s.internalSetTimeout(function(){if(!(s.isMouseDown||!s.props.environment)){var A=s.props.environment.document.activeElement;(A==null||A.id!==s.inputId)&&A!==_&&s.reset({type:hd})}})},s.getLabelProps=function(v){return Te({htmlFor:s.inputId,id:s.labelId},v)},s.getInputProps=function(v){var _=v===void 0?{}:v,A=_.onKeyDown,x=_.onBlur,f=_.onChange,R=_.onInput;_.onChangeText;var V=Pt(_,Db),L,N={};L="onChange";var $=s.getState(),U=$.inputValue,J=$.isOpen,Y=$.highlightedIndex;if(!V.disabled){var Q;N=(Q={},Q[L]=Qe(f,R,s.inputHandleChange),Q.onKeyDown=Qe(A,s.inputHandleKeyDown),Q.onBlur=Qe(x,s.inputHandleBlur),Q)}return Te({"aria-autocomplete":"list","aria-activedescendant":J&&typeof Y=="number"&&Y>=0?s.getItemId(Y):void 0,"aria-controls":J?s.menuId:void 0,"aria-labelledby":V&&V["aria-label"]?void 0:s.labelId,autoComplete:"off",value:U,id:s.inputId},N,V)},s.inputHandleKeyDown=function(v){var _=fr(v);_&&s.inputKeyDownHandlers[_]&&s.inputKeyDownHandlers[_].call(s,v)},s.inputHandleChange=function(v){s.internalSetState({type:ud,isOpen:!0,inputValue:v.target.value,highlightedIndex:s.props.defaultHighlightedIndex})},s.inputHandleBlur=function(){s.internalSetTimeout(function(){var v;if(!(s.isMouseDown||!s.props.environment)){var _=s.props.environment.document.activeElement,A=(_==null||(v=_.dataset)==null?void 0:v.toggle)&&s._rootNode&&s._rootNode.contains(_);A||s.reset({type:ld})}})},s.menuRef=function(v){s._menuNode=v},s.getMenuProps=function(v,_){var A,x=v===void 0?{}:v,f=x.refKey,R=f===void 0?"ref":f,V=x.ref,L=Pt(x,Lb),N=_===void 0?{}:_,$=N.suppressRefError,U=$===void 0?!1:$;return s.getMenuProps.called=!0,s.getMenuProps.refKey=R,s.getMenuProps.suppressRefError=U,Te((A={},A[R]=an(V,s.menuRef),A.role="listbox",A["aria-labelledby"]=L&&L["aria-label"]?void 0:s.labelId,A.id=s.menuId,A),L)},s.getItemProps=function(v){var _,A=v===void 0?{}:v,x=A.onMouseMove,f=A.onMouseDown,R=A.onClick;A.onPress;var V=A.index,L=A.item,N=L===void 0?pe.NODE_ENV==="production"?void 0:Ib("getItemProps","item"):L,$=Pt(A,Vb);V===void 0?(s.items.push(N),V=s.items.indexOf(N)):s.items[V]=N;var U="onClick",J=R,Y=(_={onMouseMove:Qe(x,function(){V!==s.getState().highlightedIndex&&(s.setHighlightedIndex(V,{type:nd}),s.avoidScrolling=!0,s.internalSetTimeout(function(){return s.avoidScrolling=!1},250))}),onMouseDown:Qe(f,function(Z){Z.preventDefault()})},_[U]=Qe(J,function(){s.selectItemAtIndex(V,{type:od})}),_),Q=$.disabled?{onMouseDown:Y.onMouseDown}:Y;return Te({id:s.getItemId(V),role:"option","aria-selected":s.getState().highlightedIndex===V},Q,$)},s.clearItems=function(){s.items=[]},s.reset=function(v,_){v===void 0&&(v={}),v=yi(v),s.internalSetState(function(A){var x=A.selectedItem;return Te({isOpen:s.props.defaultIsOpen,highlightedIndex:s.props.defaultHighlightedIndex,inputValue:s.props.itemToString(x)},v)},_)},s.toggleMenu=function(v,_){v===void 0&&(v={}),v=yi(v),s.internalSetState(function(A){var x=A.isOpen;return Te({isOpen:!x},x&&{highlightedIndex:s.props.defaultHighlightedIndex},v)},function(){var A=s.getState(),x=A.isOpen,f=A.highlightedIndex;x&&s.getItemCount()>0&&typeof f=="number"&&s.setHighlightedIndex(f,v),ic(_)()})},s.openMenu=function(v){s.internalSetState({isOpen:!0},v)},s.closeMenu=function(v){s.internalSetState({isOpen:!1},v)},s.updateStatus=ys(function(){var v;if((v=s.props)!=null&&(v=v.environment)!=null&&v.document){var _=s.getState(),A=s.items[_.highlightedIndex],x=s.getItemCount(),f=s.props.getA11yStatusMessage(Te({itemToString:s.props.itemToString,previousResultCount:s.previousResultCount,resultCount:x,highlightedItem:A},_));s.previousResultCount=x,Zp(f,s.props.environment.document)}},200);var o=s.props,l=o.defaultHighlightedIndex,u=o.initialHighlightedIndex,c=u===void 0?l:u,d=o.defaultIsOpen,h=o.initialIsOpen,g=h===void 0?d:h,m=o.initialInputValue,w=m===void 0?"":m,S=o.initialSelectedItem,y=S===void 0?null:S,k=s.getState({highlightedIndex:c,isOpen:g,inputValue:w,selectedItem:y});return k.selectedItem!=null&&s.props.initialInputValue===void 0&&(k.inputValue=s.props.itemToString(k.selectedItem)),s.state=k,s}cb(n,t);var r=n.prototype;return r.internalClearTimeouts=function(){this.timeoutIds.forEach(function(i){clearTimeout(i)}),this.timeoutIds=[]},r.getState=function(i){return i===void 0&&(i=this.state),$r(i,this.props)},r.getItemCount=function(){var i=this.items.length;return this.itemCount!=null?i=this.itemCount:this.props.itemCount!==void 0&&(i=this.props.itemCount),i},r.getItemNodeFromIndex=function(i){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(i)):null},r.scrollHighlightedItemIntoView=function(){{var i=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(i,this._menuNode)}},r.moveHighlightedIndex=function(i,s){var o=this.getItemCount(),l=this.getState(),u=l.highlightedIndex;if(o>0){var c=on(u,i,{length:o},this.isItemDisabled,!0);this.setHighlightedIndex(c,s)}},r.getStateAndHelpers=function(){var i=this.getState(),s=i.highlightedIndex,o=i.inputValue,l=i.selectedItem,u=i.isOpen,c=this.props.itemToString,d=this.id,h=this.getRootProps,g=this.getToggleButtonProps,m=this.getLabelProps,w=this.getMenuProps,S=this.getInputProps,y=this.getItemProps,k=this.openMenu,v=this.closeMenu,_=this.toggleMenu,A=this.selectItem,x=this.selectItemAtIndex,f=this.selectHighlightedItem,R=this.setHighlightedIndex,V=this.clearSelection,L=this.clearItems,N=this.reset,$=this.setItemCount,U=this.unsetItemCount,J=this.internalSetState;return{getRootProps:h,getToggleButtonProps:g,getLabelProps:m,getMenuProps:w,getInputProps:S,getItemProps:y,reset:N,openMenu:k,closeMenu:v,toggleMenu:_,selectItem:A,selectItemAtIndex:x,selectHighlightedItem:f,setHighlightedIndex:R,clearSelection:V,clearItems:L,setItemCount:$,unsetItemCount:U,setState:J,itemToString:c,id:d,highlightedIndex:s,inputValue:o,isOpen:u,selectedItem:l}},r.componentDidMount=function(){var i=this;if(pe.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&oc(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){i.internalClearTimeouts()};else{var s=function(){i.isMouseDown=!0},o=function(h){i.isMouseDown=!1;var g=Gi(h.target,[i._rootNode,i._menuNode],i.props.environment);!g&&i.getState().isOpen&&i.reset({type:td},function(){return i.props.onOuterClick(i.getStateAndHelpers())})},l=function(){i.isTouchMove=!1},u=function(){i.isTouchMove=!0},c=function(h){var g=Gi(h.target,[i._rootNode,i._menuNode],i.props.environment,!1);!i.isTouchMove&&!g&&i.getState().isOpen&&i.reset({type:dd},function(){return i.props.onOuterClick(i.getStateAndHelpers())})},d=this.props.environment;d.addEventListener("mousedown",s),d.addEventListener("mouseup",o),d.addEventListener("touchstart",l),d.addEventListener("touchmove",u),d.addEventListener("touchend",c),this.cleanup=function(){i.internalClearTimeouts(),i.updateStatus.cancel(),d.removeEventListener("mousedown",s),d.removeEventListener("mouseup",o),d.removeEventListener("touchstart",l),d.removeEventListener("touchmove",u),d.removeEventListener("touchend",c)}}},r.shouldScroll=function(i,s){var o=this.props.highlightedIndex===void 0?this.getState():this.props,l=o.highlightedIndex,u=s.highlightedIndex===void 0?i:s,c=u.highlightedIndex,d=l&&this.getState().isOpen&&!i.isOpen,h=l!==c;return d||h},r.componentDidUpdate=function(i,s){pe.NODE_ENV!=="production"&&(mo(this.state,i,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&oc(this._menuNode,this.getMenuProps)),Ji(this.props,"selectedItem")&&this.props.selectedItemChanged(i.selectedItem,this.props.selectedItem)&&this.internalSetState({type:pd,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(s,i)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},r.componentWillUnmount=function(){this.cleanup()},r.render=function(){var i=ac(this.props.children,Ot);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 s=ac(i(this.getStateAndHelpers()));if(!s)return null;if(this.getRootProps.called||this.props.suppressRefError)return pe.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&jb(s,this.getRootProps),s;if(Yp(s))return D.cloneElement(s,this.getRootProps(Qp(s)));if(pe.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},n})(D.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:Eb,itemToString:function(t){return t==null?"":(pe.NODE_ENV!=="production"&&Ab(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:Ot,onInputValueChange:Ot,onUserAction:Ot,onChange:Ot,onSelect:Ot,onOuterClick:Ot,selectedItemChanged:function(t,n){return t!==n},environment:typeof window>"u"?void 0:window,stateReducer:function(t,n){return n},suppressRefError:!1,scrollIntoView:Jp},e.stateChangeTypes=Ob,e})();pe.NODE_ENV!=="production"&&(Mb.propTypes={children:ge.func,defaultHighlightedIndex:ge.number,defaultIsOpen:ge.bool,initialHighlightedIndex:ge.number,initialSelectedItem:ge.any,initialInputValue:ge.string,initialIsOpen:ge.bool,getA11yStatusMessage:ge.func,itemToString:ge.func,onChange:ge.func,onSelect:ge.func,onStateChange:ge.func,onInputValueChange:ge.func,onUserAction:ge.func,onOuterClick:ge.func,selectedItemChanged:ge.func,stateReducer:ge.func,itemCount:ge.number,id:ge.string,environment:ge.shape({addEventListener:ge.func.isRequired,removeEventListener:ge.func.isRequired,document:ge.shape({createElement:ge.func.isRequired,getElementById:ge.func.isRequired,activeElement:ge.any.isRequired,body:ge.any.isRequired}).isRequired,Node:ge.func.isRequired}),suppressRefError:ge.bool,scrollIntoView:ge.func,selectedItem:ge.any,isOpen:ge.bool,inputValue:ge.string,highlightedIndex:ge.number,labelId:ge.string,inputId:ge.string,menuId:ge.string,getItemId:ge.func});function oc(e,t){var n=t.refKey;e||console.error('downshift: The ref prop "'+n+'" from getMenuProps was not applied correctly on your menu element.')}function jb(e,t){var n=t.refKey,r=n!=="ref",i=!Yp(e);i&&!r&&!tc.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!i&&r&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+n+'"'),!tc.isForwardRef(e)&&!Qp(e)[n]&&console.error('downshift: You must apply the ref prop "'+n+'" from getRootProps onto your root element.')}var fd={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Fb(e,t,n){var r=e.props,i=e.type,s={};Object.keys(t).forEach(function(o){zb(o,e,t,n),n[o]!==t[o]&&(s[o]=n[o])}),r.onStateChange&&Object.keys(s).length&&r.onStateChange(Te({type:i},s))}function zb(e,t,n,r){var i=t.props,s=t.type,o="on"+vo(e)+"Change";i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](Te({type:s},r))}function Bb(e,t){return t.changes}var lc=ys(function(e,t){Zp(e,t)},200),Hb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?D.useLayoutEffect:D.useEffect,gd="useId"in D?function(e){var t=e.id,n=e.labelId,r=e.menuId,i=e.getItemId,s=e.toggleButtonId,o=e.inputId,l="downshift-"+D.useId();t||(t=l);var u=D.useMemo(function(){return{labelId:n||t+"-label",menuId:r||t+"-menu",getItemId:i||function(c){return t+"-item-"+c},toggleButtonId:s||t+"-toggle-button",inputId:o||t+"-input"}},[i,t,o,n,r,s]);return u}:function(e){var t=e.id,n=t===void 0?"downshift-"+Gp():t,r=e.labelId,i=e.menuId,s=e.getItemId,o=e.toggleButtonId,l=e.inputId,u=D.useMemo(function(){return{labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:s||function(c){return n+"-item-"+c},toggleButtonId:o||n+"-toggle-button",inputId:l||n+"-input"}},[s,n,l,r,i,o]);return u};function xo(e,t,n,r){var i,s;if(e===void 0){if(t===void 0)throw new Error(r);i=n[t],s=t}else s=t===void 0?n.indexOf(e):t,i=e;return[i,s]}function $b(e){return/^\S{1}$/.test(e)}function vo(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function ws(e){var t=D.useRef(e);return t.current=e,t}function md(e,t,n,r){var i=D.useRef(),s=D.useRef(),o=D.useCallback(function(m,w){s.current=w,m=$r(m,w.props);var S=e(m,w),y=w.props.stateReducer(m,Te({},w,{changes:S}));return y},[e]),l=D.useReducer(o,t,n),u=l[0],c=l[1],d=ws(t),h=D.useCallback(function(m){return c(Te({props:d.current},m))},[d]),g=s.current;return D.useEffect(function(){var m=$r(i.current,g==null?void 0:g.props),w=g&&i.current&&!r(m,u);w&&Fb(g,m,u),i.current=u},[u,g,r]),[u,h]}function xd(e,t,n,r){var i=md(e,t,n,r),s=i[0],o=i[1];return[$r(s,t),o]}var Vr={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:Bb,scrollIntoView:Jp,environment:typeof window>"u"?void 0:window};function fn(e,t,n){n===void 0&&(n=fd);var r=e["default"+vo(t)];return r!==void 0?r:n[t]}function Un(e,t,n){n===void 0&&(n=fd);var r=e[t];if(r!==void 0)return r;var i=e["initial"+vo(t)];return i!==void 0?i:fn(e,t,n)}function vd(e){var t=Un(e,"selectedItem"),n=Un(e,"isOpen"),r=Wb(e),i=Un(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.findIndex(function(s){return e.itemToKey(s)===e.itemToKey(t)}):r,isOpen:n,selectedItem:t,inputValue:i}}function qn(e,t,n){var r=e.items,i=e.initialHighlightedIndex,s=e.defaultHighlightedIndex,o=e.isItemDisabled,l=e.itemToKey,u=t.selectedItem,c=t.highlightedIndex;return r.length===0?-1:i!==void 0&&c===i&&!o(r[i],i)?i:s!==void 0&&!o(r[s],s)?s:u?r.findIndex(function(d){return l(u)===l(d)}):n<0&&!o(r[r.length-1],r.length-1)?r.length-1:n>0&&!o(r[0],0)?0:-1}function bd(e,t,n){var r=D.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1}),i=D.useCallback(function(){return n.map(function(s){return s.current})},[n]);return D.useEffect(function(){if(!e)return Ot;function s(){r.current.isTouchEnd=!1,r.current.isMouseDown=!0}function o(d){r.current.isMouseDown=!1,Gi(d.target,i(),e)||t()}function l(){r.current.isTouchEnd=!1,r.current.isTouchMove=!1}function u(){r.current.isTouchMove=!0}function c(d){r.current.isTouchEnd=!0,!r.current.isTouchMove&&!Gi(d.target,i(),e,!1)&&t()}return e.addEventListener("mousedown",s),e.addEventListener("mouseup",o),e.addEventListener("touchstart",l),e.addEventListener("touchmove",u),e.addEventListener("touchend",c),function(){e.removeEventListener("mousedown",s),e.removeEventListener("mouseup",o),e.removeEventListener("touchstart",l),e.removeEventListener("touchmove",u),e.removeEventListener("touchend",c)}},[e,i,t]),r.current}var ks=function(){return Ot};pe.NODE_ENV!=="production"&&(ks=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=D.useRef(t.reduce(function(s,o){return s[o]={},s},{}));D.useEffect(function(){Object.keys(r.current).forEach(function(s){var o=r.current[s];if(!Object.keys(o).length){console.error("downshift: You forgot to call the "+s+" getter function on your component / element.");return}var l=o.suppressRefError,u=o.refKey,c=o.elementRef;l||c!=null&&c.current||console.error('downshift: The ref prop "'+u+'" from '+s+" was not applied correctly on your element.")})},[]);var i=D.useCallback(function(s,o,l,u){r.current[s]={suppressRefError:o,refKey:l,elementRef:u}},[]);return i});function bo(e,t,n,r){r===void 0&&(r={});var i=r.document,s=Qr();D.useEffect(function(){if(!(!e||s||!i)){var o=e(t);lc(o,i)}},n),D.useEffect(function(){return function(){lc.cancel(),Nb(i)}},[i])}function yd(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,s=e.menuElement,o=e.scrollIntoView,l=D.useRef(!0);return Hb(function(){t<0||!n||!Object.keys(r.current).length||(l.current===!1?l.current=!0:o(i(t),s))},[t]),l}var Ss=Ot;pe.NODE_ENV!=="production"&&(Ss=function(e){var t=e.props,n=e.state,r=D.useRef(t),i=Qr();D.useEffect(function(){i||(mo(n,r.current,t),r.current=t)},[n,t,i])});function Yi(e,t,n){var r;n===void 0&&(n=!0);var i=((r=e.items)==null?void 0:r.length)&&t>=0;return Te({isOpen:!1,highlightedIndex:-1},i&&Te({selectedItem:e.items[t],isOpen:fn(e,"isOpen"),highlightedIndex:fn(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function wd(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function Qr(){var e=D.useRef(!0);return D.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}function Qi(e){var t=fn(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}function Wb(e){var t=Un(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var Vi={environment:ge.shape({addEventListener:ge.func.isRequired,removeEventListener:ge.func.isRequired,document:ge.shape({createElement:ge.func.isRequired,getElementById:ge.func.isRequired,activeElement:ge.any.isRequired,body:ge.any.isRequired}).isRequired,Node:ge.func.isRequired}),itemToString:ge.func,itemToKey:ge.func,stateReducer:ge.func},kd=Te({},Vi,{getA11yStatusMessage:ge.func,highlightedIndex:ge.number,defaultHighlightedIndex:ge.number,initialHighlightedIndex:ge.number,isOpen:ge.bool,defaultIsOpen:ge.bool,initialIsOpen:ge.bool,selectedItem:ge.any,initialSelectedItem:ge.any,defaultSelectedItem:ge.any,id:ge.string,labelId:ge.string,menuId:ge.string,getItemId:ge.func,toggleButtonId:ge.string,onSelectedItemChange:ge.func,onHighlightedIndexChange:ge.func,onStateChange:ge.func,onIsOpenChange:ge.func,scrollIntoView:ge.func});function Sd(e,t,n){var r=t.type,i=t.props,s;switch(r){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:qn(i,e,0)};break;case n.FunctionOpenMenu:s={isOpen:!0,highlightedIndex:qn(i,e,0)};break;case n.FunctionCloseMenu:s={isOpen:!1};break;case n.FunctionSetHighlightedIndex:s={highlightedIndex:i.isItemDisabled(i.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case n.FunctionSetInputValue:s={inputValue:t.inputValue};break;case n.FunctionReset:s={highlightedIndex:Qi(i),isOpen:fn(i,"isOpen"),selectedItem:fn(i,"selectedItem"),inputValue:fn(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Te({},e,s)}function Ub(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,s=e.isItemDisabled,o=t.toLowerCase(),l=0;l<r.length;l++){var u=(l+n+(t.length<2?1:0))%r.length,c=r[u];if(c!==void 0&&i(c).toLowerCase().startsWith(o)&&!s(c,u))return u}return n}var qb=dr(dr({},kd),{items:ge.array.isRequired,isItemDisabled:ge.func}),Kb=dr(dr({},Vr),{isItemDisabled:function(){return!1}}),_d=Ot;pe.NODE_ENV!=="production"&&(_d=function(e,t){ge.checkPropTypes(qb,e,"prop",t.name)});var Mi=pe.NODE_ENV!=="production"?"__togglebutton_click__":0,yo=pe.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_down__":1,wo=pe.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_up__":2,Xi=pe.NODE_ENV!=="production"?"__togglebutton_keydown_character__":3,ko=pe.NODE_ENV!=="production"?"__togglebutton_keydown_escape__":4,So=pe.NODE_ENV!=="production"?"__togglebutton_keydown_home__":5,_o=pe.NODE_ENV!=="production"?"__togglebutton_keydown_end__":6,Eo=pe.NODE_ENV!=="production"?"__togglebutton_keydown_enter__":7,Io=pe.NODE_ENV!=="production"?"__togglebutton_keydown_space_button__":8,Co=pe.NODE_ENV!=="production"?"__togglebutton_keydown_page_up__":9,Ao=pe.NODE_ENV!=="production"?"__togglebutton_keydown_page_down__":10,Zi=pe.NODE_ENV!=="production"?"__togglebutton_blur__":11,Ed=pe.NODE_ENV!=="production"?"__menu_mouse_leave__":12,Id=pe.NODE_ENV!=="production"?"__item_mouse_move__":13,To=pe.NODE_ENV!=="production"?"__item_click__":14,Cd=pe.NODE_ENV!=="production"?"__function_toggle_menu__":15,Ad=pe.NODE_ENV!=="production"?"__function_open_menu__":16,Td=pe.NODE_ENV!=="production"?"__function_close_menu__":17,Nd=pe.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,No=pe.NODE_ENV!=="production"?"__function_select_item__":19,ja=pe.NODE_ENV!=="production"?"__function_set_input_value__":20,Od=pe.NODE_ENV!=="production"?"__function_reset__":21,Pd=Object.freeze({__proto__:null,FunctionCloseMenu:Td,FunctionOpenMenu:Ad,FunctionReset:Od,FunctionSelectItem:No,FunctionSetHighlightedIndex:Nd,FunctionSetInputValue:ja,FunctionToggleMenu:Cd,ItemClick:To,ItemMouseMove:Id,MenuMouseLeave:Ed,ToggleButtonBlur:Zi,ToggleButtonClick:Mi,ToggleButtonKeyDownArrowDown:yo,ToggleButtonKeyDownArrowUp:wo,ToggleButtonKeyDownCharacter:Xi,ToggleButtonKeyDownEnd:_o,ToggleButtonKeyDownEnter:Eo,ToggleButtonKeyDownEscape:ko,ToggleButtonKeyDownHome:So,ToggleButtonKeyDownPageDown:Ao,ToggleButtonKeyDownPageUp:Co,ToggleButtonKeyDownSpaceButton:Io});function Jb(e,t){var n,r=t.type,i=t.props,s=t.altKey,o;switch(r){case To:o={isOpen:fn(i,"isOpen"),highlightedIndex:Qi(i),selectedItem:i.items[t.index]};break;case Xi:{var l=t.key,u=""+e.inputValue+l,c=!e.isOpen&&e.selectedItem?i.items.findIndex(function(m){return i.itemToKey(m)===i.itemToKey(e.selectedItem)}):e.highlightedIndex,d=Ub({keysSoFar:u,highlightedIndex:c,items:i.items,itemToString:i.itemToString,isItemDisabled:i.isItemDisabled});o={inputValue:u,highlightedIndex:d,isOpen:!0}}break;case yo:{var h=e.isOpen?on(e.highlightedIndex,1,i.items,i.isItemDisabled):s&&e.selectedItem==null?-1:qn(i,e,1);o={highlightedIndex:h,isOpen:!0}}break;case wo:if(e.isOpen&&s)o=Yi(i,e.highlightedIndex,!1);else{var g=e.isOpen?on(e.highlightedIndex,-1,i.items,i.isItemDisabled):qn(i,e,-1);o={highlightedIndex:g,isOpen:!0}}break;case Eo:case Io:o=Yi(i,e.highlightedIndex,!1);break;case So:o={highlightedIndex:Vn(0,!1,i.items,i.isItemDisabled),isOpen:!0};break;case _o:o={highlightedIndex:Vn(i.items.length-1,!0,i.items,i.isItemDisabled),isOpen:!0};break;case Co:o={highlightedIndex:on(e.highlightedIndex,-10,i.items,i.isItemDisabled)};break;case Ao:o={highlightedIndex:on(e.highlightedIndex,10,i.items,i.isItemDisabled)};break;case ko:o={isOpen:!1,highlightedIndex:-1};break;case Zi:o=Te({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&{selectedItem:i.items[e.highlightedIndex]});break;case No:o={selectedItem:t.selectedItem};break;default:return Sd(e,t,Pd)}return Te({},e,o)}var Gb=["onClick"],Yb=["onMouseLeave","refKey","ref"],Qb=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],Xb=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];cr.stateChangeTypes=Pd;function cr(e){e===void 0&&(e={}),_d(e,cr);var t=Te({},Kb,e),n=t.scrollIntoView,r=t.environment,i=t.getA11yStatusMessage,s=xd(Jb,t,vd,wd),o=s[0],l=s[1],u=o.isOpen,c=o.highlightedIndex,d=o.selectedItem,h=o.inputValue,g=D.useRef(null),m=D.useRef(null),w=D.useRef({}),S=D.useRef(null),y=gd(t),k=ws({state:o,props:t}),v=D.useCallback(function(E){return w.current[y.getItemId(E)]},[y]);bo(i,o,[u,c,d,h],r);var _=yd({menuElement:m.current,highlightedIndex:c,isOpen:u,itemRefs:w,scrollIntoView:n,getItemNodeFromIndex:v});D.useEffect(function(){return S.current=ys(function(E){E({type:ja,inputValue:""})},500),function(){S.current.cancel()}},[]),D.useEffect(function(){h&&S.current(l)},[l,h]),Ss({props:t,state:o}),D.useEffect(function(){var E=Un(t,"isOpen");E&&g.current&&g.current.focus()},[]);var A=D.useCallback(function(){k.current.state.isOpen&&l({type:Zi})},[l,k]),x=D.useMemo(function(){return[m,g]},[]),f=bd(r,A,x),R=ks("getMenuProps","getToggleButtonProps");D.useEffect(function(){u||(w.current={})},[u]);var V=D.useMemo(function(){return{ArrowDown:function(E){E.preventDefault(),l({type:yo,altKey:E.altKey})},ArrowUp:function(E){E.preventDefault(),l({type:wo,altKey:E.altKey})},Home:function(E){E.preventDefault(),l({type:So})},End:function(E){E.preventDefault(),l({type:_o})},Escape:function(){k.current.state.isOpen&&l({type:ko})},Enter:function(E){E.preventDefault(),l({type:k.current.state.isOpen?Eo:Mi})},PageUp:function(E){k.current.state.isOpen&&(E.preventDefault(),l({type:Co}))},PageDown:function(E){k.current.state.isOpen&&(E.preventDefault(),l({type:Ao}))}," ":function(E){E.preventDefault();var M=k.current.state;if(!M.isOpen){l({type:Mi});return}M.inputValue?l({type:Xi,key:" "}):l({type:Io})}}},[l,k]),L=D.useCallback(function(){l({type:Cd})},[l]),N=D.useCallback(function(){l({type:Td})},[l]),$=D.useCallback(function(){l({type:Ad})},[l]),U=D.useCallback(function(E){l({type:Nd,highlightedIndex:E})},[l]),J=D.useCallback(function(E){l({type:No,selectedItem:E})},[l]),Y=D.useCallback(function(){l({type:Od})},[l]),Q=D.useCallback(function(E){l({type:ja,inputValue:E})},[l]),Z=D.useCallback(function(E){var M=E===void 0?{}:E,H=M.onClick,T=Pt(M,Gb),B=function(){var z;(z=g.current)==null||z.focus()};return Te({id:y.labelId,htmlFor:y.toggleButtonId,onClick:Qe(H,B)},T)},[y]),q=D.useCallback(function(E,M){var H,T=E===void 0?{}:E,B=T.onMouseLeave,z=T.refKey,W=z===void 0?"ref":z,F=T.ref,te=Pt(T,Yb),ee=M===void 0?{}:M,ne=ee.suppressRefError,le=ne===void 0?!1:ne,G=function(){l({type:Ed})};return R("getMenuProps",le,W,m),Te((H={},H[W]=an(F,function(ae){m.current=ae}),H.id=y.menuId,H.role="listbox",H["aria-labelledby"]=te&&te["aria-label"]?void 0:""+y.labelId,H.onMouseLeave=Qe(B,G),H),te)},[l,R,y]),K=D.useCallback(function(E,M){var H,T=E===void 0?{}:E,B=T.onBlur,z=T.onClick;T.onPress;var W=T.onKeyDown,F=T.refKey,te=F===void 0?"ref":F,ee=T.ref,ne=Pt(T,Qb),le=M===void 0?{}:M,G=le.suppressRefError,ae=G===void 0?!1:G,ce=k.current.state,Ie=function(){l({type:Mi})},Ce=function(){ce.isOpen&&!f.isMouseDown&&l({type:Zi})},Re=function(Oe){var Ne=fr(Oe);Ne&&V[Ne]?V[Ne](Oe):$b(Ne)&&l({type:Xi,key:Ne})},Ve=Te((H={},H[te]=an(ee,function(Oe){g.current=Oe}),H["aria-activedescendant"]=ce.isOpen&&ce.highlightedIndex>-1?y.getItemId(ce.highlightedIndex):"",H["aria-controls"]=y.menuId,H["aria-expanded"]=k.current.state.isOpen,H["aria-haspopup"]="listbox",H["aria-labelledby"]=ne&&ne["aria-label"]?void 0:""+y.labelId,H.id=y.toggleButtonId,H.role="combobox",H.tabIndex=0,H.onBlur=Qe(B,Ce),H),ne);return ne.disabled||(Ve.onClick=Qe(z,Ie),Ve.onKeyDown=Qe(W,Re)),R("getToggleButtonProps",ae,te,g),Ve},[l,y,k,f,R,V]),ie=D.useCallback(function(E){var M,H=E===void 0?{}:E,T=H.item,B=H.index,z=H.onMouseMove,W=H.onClick,F=H.onMouseDown;H.onPress;var te=H.refKey,ee=te===void 0?"ref":te,ne=H.disabled,le=H.ref,G=Pt(H,Xb);ne!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var ae=k.current,ce=ae.state,Ie=ae.props,Ce=xo(T,B,Ie.items,"Pass either item or index to getItemProps!"),Re=Ce[0],Ve=Ce[1],Oe=Ie.isItemDisabled(Re,Ve),Ne=function(){f.isTouchEnd||Ve===ce.highlightedIndex||(_.current=!1,l({type:Id,index:Ve,disabled:Oe}))},Ke=function(){l({type:To,index:Ve})},vt=function(Fe){return Fe.preventDefault()},Je=Te((M={},M[ee]=an(le,function(Fe){Fe&&(w.current[y.getItemId(Ve)]=Fe)}),M["aria-disabled"]=Oe,M["aria-selected"]=Re===ce.selectedItem,M.id=y.getItemId(Ve),M.role="option",M),G);return Oe||(Je.onClick=Qe(W,Ke)),Je.onMouseMove=Qe(z,Ne),Je.onMouseDown=Qe(F,vt),Je},[k,y,f,_,l]);return{getToggleButtonProps:K,getLabelProps:Z,getMenuProps:q,getItemProps:ie,toggleMenu:L,openMenu:$,closeMenu:N,setHighlightedIndex:U,selectItem:J,reset:Y,setInputValue:Q,highlightedIndex:c,isOpen:u,selectedItem:d,inputValue:h}}var Oo=pe.NODE_ENV!=="production"?"__input_keydown_arrow_down__":0,Po=pe.NODE_ENV!=="production"?"__input_keydown_arrow_up__":1,Ro=pe.NODE_ENV!=="production"?"__input_keydown_escape__":2,Do=pe.NODE_ENV!=="production"?"__input_keydown_home__":3,Lo=pe.NODE_ENV!=="production"?"__input_keydown_end__":4,Vo=pe.NODE_ENV!=="production"?"__input_keydown_page_up__":5,Mo=pe.NODE_ENV!=="production"?"__input_keydown_page_down__":6,jo=pe.NODE_ENV!=="production"?"__input_keydown_enter__":7,Fo=pe.NODE_ENV!=="production"?"__input_change__":8,es=pe.NODE_ENV!=="production"?"__input_blur__":9,zo=pe.NODE_ENV!=="production"?"__input_click__":10,Rd=pe.NODE_ENV!=="production"?"__menu_mouse_leave__":11,Dd=pe.NODE_ENV!=="production"?"__item_mouse_move__":12,Bo=pe.NODE_ENV!=="production"?"__item_click__":13,Ld=pe.NODE_ENV!=="production"?"__togglebutton_click__":14,Vd=pe.NODE_ENV!=="production"?"__function_toggle_menu__":15,Md=pe.NODE_ENV!=="production"?"__function_open_menu__":16,jd=pe.NODE_ENV!=="production"?"__function_close_menu__":17,Fd=pe.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,Ho=pe.NODE_ENV!=="production"?"__function_select_item__":19,zd=pe.NODE_ENV!=="production"?"__function_set_input_value__":20,Bd=pe.NODE_ENV!=="production"?"__function_reset__":21,$o=pe.NODE_ENV!=="production"?"__controlled_prop_updated_selected_item__":22,Hd=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:$o,FunctionCloseMenu:jd,FunctionOpenMenu:Md,FunctionReset:Bd,FunctionSelectItem:Ho,FunctionSetHighlightedIndex:Fd,FunctionSetInputValue:zd,FunctionToggleMenu:Vd,InputBlur:es,InputChange:Fo,InputClick:zo,InputKeyDownArrowDown:Oo,InputKeyDownArrowUp:Po,InputKeyDownEnd:Lo,InputKeyDownEnter:jo,InputKeyDownEscape:Ro,InputKeyDownHome:Do,InputKeyDownPageDown:Mo,InputKeyDownPageUp:Vo,ItemClick:Bo,ItemMouseMove:Dd,MenuMouseLeave:Rd,ToggleButtonClick:Ld});function Zb(e){var t=vd(e),n=t.selectedItem,r=t.inputValue;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),Te({},t,{inputValue:r})}var ey=Te({},kd,{items:ge.array.isRequired,isItemDisabled:ge.func,inputValue:ge.string,defaultInputValue:ge.string,initialInputValue:ge.string,inputId:ge.string,onInputValueChange:ge.func});function ty(e,t,n,r){var i=D.useRef(),s=md(e,t,n,r),o=s[0],l=s[1],u=Qr();return D.useEffect(function(){if(Ji(t,"selectedItem")){if(!u){var c=t.itemToKey(t.selectedItem)!==t.itemToKey(i.current);c&&l({type:$o,inputValue:t.itemToString(t.selectedItem)})}i.current=o.selectedItem===i.current?t.selectedItem:o.selectedItem}},[o.selectedItem,t.selectedItem]),[$r(o,t),l]}var $d=Ot;pe.NODE_ENV!=="production"&&($d=function(e,t){ge.checkPropTypes(ey,e,"prop",t.name)});var ny=Te({},Vr,{isItemDisabled:function(){return!1}});function ry(e,t){var n,r=t.type,i=t.props,s=t.altKey,o;switch(r){case Bo:o={isOpen:fn(i,"isOpen"),highlightedIndex:Qi(i),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case Oo:e.isOpen?o={highlightedIndex:on(e.highlightedIndex,1,i.items,i.isItemDisabled,!0)}:o={highlightedIndex:s&&e.selectedItem==null?-1:qn(i,e,1),isOpen:i.items.length>=0};break;case Po:e.isOpen?s?o=Yi(i,e.highlightedIndex):o={highlightedIndex:on(e.highlightedIndex,-1,i.items,i.isItemDisabled,!0)}:o={highlightedIndex:qn(i,e,-1),isOpen:i.items.length>=0};break;case jo:o=Yi(i,e.highlightedIndex);break;case Ro:o=Te({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case Vo:o={highlightedIndex:on(e.highlightedIndex,-10,i.items,i.isItemDisabled,!0)};break;case Mo:o={highlightedIndex:on(e.highlightedIndex,10,i.items,i.isItemDisabled,!0)};break;case Do:o={highlightedIndex:Vn(0,!1,i.items,i.isItemDisabled)};break;case Lo:o={highlightedIndex:Vn(i.items.length-1,!0,i.items,i.isItemDisabled)};break;case es:o=Te({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case Fo:o={isOpen:!0,highlightedIndex:Qi(i),inputValue:t.inputValue};break;case zo:o={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:qn(i,e,0)};break;case Ho:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case $o:o={inputValue:t.inputValue};break;default:return Sd(e,t,Hd)}return Te({},e,o)}var iy=["onMouseLeave","refKey","ref"],sy=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],ay=["onClick","onPress","refKey","ref"],oy=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];wn.stateChangeTypes=Hd;function wn(e){e===void 0&&(e={}),$d(e,wn);var t=Te({},ny,e),n=t.items,r=t.scrollIntoView,i=t.environment,s=t.getA11yStatusMessage,o=ty(ry,t,Zb,wd),l=o[0],u=o[1],c=l.isOpen,d=l.highlightedIndex,h=l.selectedItem,g=l.inputValue,m=D.useRef(null),w=D.useRef({}),S=D.useRef(null),y=D.useRef(null),k=Qr(),v=gd(t),_=D.useRef(),A=ws({state:l,props:t}),x=D.useCallback(function(B){return w.current[v.getItemId(B)]},[v]);bo(s,l,[c,d,h,g],i);var f=yd({menuElement:m.current,highlightedIndex:d,isOpen:c,itemRefs:w,scrollIntoView:r,getItemNodeFromIndex:x});Ss({props:t,state:l}),D.useEffect(function(){var B=Un(t,"isOpen");B&&S.current&&S.current.focus()},[]),D.useEffect(function(){k||(_.current=n.length)});var R=D.useCallback(function(){A.current.state.isOpen&&u({type:es})},[u,A]),V=D.useMemo(function(){return[m,y,S]},[]),L=bd(i,R,V),N=ks("getInputProps","getMenuProps");D.useEffect(function(){c||(w.current={})},[c]),D.useEffect(function(){var B;!c||!(i!=null&&i.document)||!(S!=null&&(B=S.current)!=null&&B.focus)||i.document.activeElement!==S.current&&S.current.focus()},[c,i]);var $=D.useMemo(function(){return{ArrowDown:function(B){B.preventDefault(),u({type:Oo,altKey:B.altKey})},ArrowUp:function(B){B.preventDefault(),u({type:Po,altKey:B.altKey})},Home:function(B){A.current.state.isOpen&&(B.preventDefault(),u({type:Do}))},End:function(B){A.current.state.isOpen&&(B.preventDefault(),u({type:Lo}))},Escape:function(B){var z=A.current.state;(z.isOpen||z.inputValue||z.selectedItem||z.highlightedIndex>-1)&&(B.preventDefault(),u({type:Ro}))},Enter:function(B){var z=A.current.state;!z.isOpen||B.which===229||(B.preventDefault(),u({type:jo}))},PageUp:function(B){A.current.state.isOpen&&(B.preventDefault(),u({type:Vo}))},PageDown:function(B){A.current.state.isOpen&&(B.preventDefault(),u({type:Mo}))}}},[u,A]),U=D.useCallback(function(B){return Te({id:v.labelId,htmlFor:v.inputId},B)},[v]),J=D.useCallback(function(B,z){var W,F=B===void 0?{}:B,te=F.onMouseLeave,ee=F.refKey,ne=ee===void 0?"ref":ee,le=F.ref,G=Pt(F,iy),ae=z===void 0?{}:z,ce=ae.suppressRefError,Ie=ce===void 0?!1:ce;return N("getMenuProps",Ie,ne,m),Te((W={},W[ne]=an(le,function(Ce){m.current=Ce}),W.id=v.menuId,W.role="listbox",W["aria-labelledby"]=G&&G["aria-label"]?void 0:""+v.labelId,W.onMouseLeave=Qe(te,function(){u({type:Rd})}),W),G)},[u,N,v]),Y=D.useCallback(function(B){var z,W,F=B===void 0?{}:B,te=F.item,ee=F.index,ne=F.refKey,le=ne===void 0?"ref":ne,G=F.ref,ae=F.onMouseMove,ce=F.onMouseDown,Ie=F.onClick;F.onPress;var Ce=F.disabled,Re=Pt(F,sy);Ce!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var Ve=A.current,Oe=Ve.props,Ne=Ve.state,Ke=xo(te,ee,Oe.items,"Pass either item or index to getItemProps!"),vt=Ke[0],Je=Ke[1],Fe=Oe.isItemDisabled(vt,Je),Vt="onClick",oe=Ie,se=function(){L.isTouchEnd||Je===Ne.highlightedIndex||(f.current=!1,u({type:Dd,index:Je,disabled:Fe}))},P=function(){u({type:Bo,index:Je})},be=function(He){return He.preventDefault()};return Te((z={},z[le]=an(G,function(He){He&&(w.current[v.getItemId(Je)]=He)}),z["aria-disabled"]=Fe,z["aria-selected"]=Je===Ne.highlightedIndex,z.id=v.getItemId(Je),z.role="option",z),!Fe&&(W={},W[Vt]=Qe(oe,P),W),{onMouseMove:Qe(ae,se),onMouseDown:Qe(ce,be)},Re)},[u,v,A,L,f]),Q=D.useCallback(function(B){var z,W=B===void 0?{}:B,F=W.onClick;W.onPress;var te=W.refKey,ee=te===void 0?"ref":te,ne=W.ref,le=Pt(W,ay),G=A.current.state,ae=function(){u({type:Ld})};return Te((z={},z[ee]=an(ne,function(ce){y.current=ce}),z["aria-controls"]=v.menuId,z["aria-expanded"]=G.isOpen,z.id=v.toggleButtonId,z.tabIndex=-1,z),!le.disabled&&Te({},{onClick:Qe(F,ae)}),le)},[u,A,v]),Z=D.useCallback(function(B,z){var W,F=B===void 0?{}:B,te=F.onKeyDown,ee=F.onChange,ne=F.onInput,le=F.onBlur;F.onChangeText;var G=F.onClick,ae=F.refKey,ce=ae===void 0?"ref":ae,Ie=F.ref,Ce=Pt(F,oy),Re=z===void 0?{}:z,Ve=Re.suppressRefError,Oe=Ve===void 0?!1:Ve;N("getInputProps",Oe,ce,S);var Ne=A.current.state,Ke=function(P){var be=fr(P);be&&$[be]&&$[be](P)},vt=function(P){u({type:Fo,inputValue:P.target.value})},Je=function(P){if(i!=null&&i.document&&Ne.isOpen&&!L.isMouseDown){var be=P.relatedTarget===null&&i.document.activeElement!==i.document.body;u({type:es,selectItem:!be})}},Fe=function(){u({type:zo})},Vt="onChange",oe={};if(!Ce.disabled){var se;oe=(se={},se[Vt]=Qe(ee,ne,vt),se.onKeyDown=Qe(te,Ke),se.onBlur=Qe(le,Je),se.onClick=Qe(G,Fe),se)}return Te((W={},W[ce]=an(Ie,function(P){S.current=P}),W["aria-activedescendant"]=Ne.isOpen&&Ne.highlightedIndex>-1?v.getItemId(Ne.highlightedIndex):"",W["aria-autocomplete"]="list",W["aria-controls"]=v.menuId,W["aria-expanded"]=Ne.isOpen,W["aria-labelledby"]=Ce&&Ce["aria-label"]?void 0:v.labelId,W.autoComplete="off",W.id=v.inputId,W.role="combobox",W.value=Ne.inputValue,W),oe,Ce)},[u,v,i,$,A,L,N]),q=D.useCallback(function(){u({type:Vd})},[u]),K=D.useCallback(function(){u({type:jd})},[u]),ie=D.useCallback(function(){u({type:Md})},[u]),E=D.useCallback(function(B){u({type:Fd,highlightedIndex:B})},[u]),M=D.useCallback(function(B){u({type:Ho,selectedItem:B})},[u]),H=D.useCallback(function(B){u({type:zd,inputValue:B})},[u]),T=D.useCallback(function(){u({type:Bd})},[u]);return{getItemProps:Y,getLabelProps:U,getMenuProps:J,getInputProps:Z,getToggleButtonProps:Q,toggleMenu:q,openMenu:ie,closeMenu:K,setHighlightedIndex:E,setInputValue:H,selectItem:M,reset:T,highlightedIndex:d,isOpen:c,selectedItem:h,inputValue:g}}var Wd={activeIndex:-1,selectedItems:[]};function uc(e,t){return Un(e,t,Wd)}function cc(e,t){return fn(e,t,Wd)}function ly(e){var t=uc(e,"activeIndex"),n=uc(e,"selectedItems");return{activeIndex:t,selectedItems:n}}function hc(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 uy(e,t){return e.selectedItems===t.selectedItems&&e.activeIndex===t.activeIndex}var cy={stateReducer:Vi.stateReducer,itemToKey:Vi.itemToKey,environment:Vi.environment,selectedItems:ge.array,initialSelectedItems:ge.array,defaultSelectedItems:ge.array,getA11yStatusMessage:ge.func,activeIndex:ge.number,initialActiveIndex:ge.number,defaultActiveIndex:ge.number,onActiveIndexChange:ge.func,onSelectedItemsChange:ge.func,keyNavigationNext:ge.string,keyNavigationPrevious:ge.string},hy={itemToKey:Vr.itemToKey,stateReducer:Vr.stateReducer,environment:Vr.environment,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},Ud=Ot;pe.NODE_ENV!=="production"&&(Ud=function(e,t){ge.checkPropTypes(cy,e,"prop",t.name)});var Wo=pe.NODE_ENV!=="production"?"__selected_item_click__":0,Uo=pe.NODE_ENV!=="production"?"__selected_item_keydown_delete__":1,qo=pe.NODE_ENV!=="production"?"__selected_item_keydown_backspace__":2,Ko=pe.NODE_ENV!=="production"?"__selected_item_keydown_navigation_next__":3,Jo=pe.NODE_ENV!=="production"?"__selected_item_keydown_navigation_previous__":4,Go=pe.NODE_ENV!=="production"?"__dropdown_keydown_navigation_previous__":5,Yo=pe.NODE_ENV!=="production"?"__dropdown_keydown_backspace__":6,Qo=pe.NODE_ENV!=="production"?"__dropdown_click__":7,Xo=pe.NODE_ENV!=="production"?"__function_add_selected_item__":8,Zo=pe.NODE_ENV!=="production"?"__function_remove_selected_item__":9,el=pe.NODE_ENV!=="production"?"__function_set_selected_items__":10,tl=pe.NODE_ENV!=="production"?"__function_set_active_index__":11,nl=pe.NODE_ENV!=="production"?"__function_reset__":12,py=Object.freeze({__proto__:null,DropdownClick:Qo,DropdownKeyDownBackspace:Yo,DropdownKeyDownNavigationPrevious:Go,FunctionAddSelectedItem:Xo,FunctionRemoveSelectedItem:Zo,FunctionReset:nl,FunctionSetActiveIndex:tl,FunctionSetSelectedItems:el,SelectedItemClick:Wo,SelectedItemKeyDownBackspace:qo,SelectedItemKeyDownDelete:Uo,SelectedItemKeyDownNavigationNext:Ko,SelectedItemKeyDownNavigationPrevious:Jo});function dy(e,t){var n=t.type,r=t.index,i=t.props,s=t.selectedItem,o=e.activeIndex,l=e.selectedItems,u;switch(n){case Wo:u={activeIndex:r};break;case Jo:u={activeIndex:o-1<0?0:o-1};break;case Ko:u={activeIndex:o+1>=l.length?-1:o+1};break;case qo:case Uo:{if(o<0)break;var c=o;l.length===1?c=-1:o===l.length-1&&(c=l.length-2),u=Te({selectedItems:[].concat(l.slice(0,o),l.slice(o+1))},{activeIndex:c});break}case Go:u={activeIndex:l.length-1};break;case Yo:u={selectedItems:l.slice(0,l.length-1)};break;case Xo:u={selectedItems:[].concat(l,[s])};break;case Qo:u={activeIndex:-1};break;case Zo:{var d=o,h=l.findIndex(function(w){return i.itemToKey(w)===i.itemToKey(s)});if(h<0)break;l.length===1?d=-1:h===l.length-1&&(d=l.length-2),u={selectedItems:[].concat(l.slice(0,h),l.slice(h+1)),activeIndex:d};break}case el:{var g=t.selectedItems;u={selectedItems:g};break}case tl:{var m=t.activeIndex;u={activeIndex:m};break}case nl:u={activeIndex:cc(i,"activeIndex"),selectedItems:cc(i,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return Te({},e,u)}var fy=["refKey","ref","onClick","onKeyDown","selectedItem","index"],gy=["refKey","ref","onKeyDown","onClick","preventKeyAction"];rl.stateChangeTypes=py;function rl(e){e===void 0&&(e={}),Ud(e,rl);var t=Te({},hy,e),n=t.getA11yStatusMessage,r=t.environment,i=t.keyNavigationNext,s=t.keyNavigationPrevious,o=xd(dy,t,ly,uy),l=o[0],u=o[1],c=l.activeIndex,d=l.selectedItems,h=Qr(),g=D.useRef(null),m=D.useRef();m.current=[];var w=ws({state:l,props:t});bo(n,l,[c,d],r),D.useEffect(function(){h||(c===-1&&g.current?g.current.focus():m.current[c]&&m.current[c].focus())},[c]),Ss({props:t,state:l});var S=ks("getDropdownProps"),y=D.useMemo(function(){var L;return L={},L[s]=function(){u({type:Jo})},L[i]=function(){u({type:Ko})},L.Delete=function(){u({type:Uo})},L.Backspace=function(){u({type:qo})},L},[u,i,s]),k=D.useMemo(function(){var L;return L={},L[s]=function(N){hc(N)&&u({type:Go})},L.Backspace=function(N){hc(N)&&u({type:Yo})},L},[u,s]),v=D.useCallback(function(L){var N,$=L===void 0?{}:L,U=$.refKey,J=U===void 0?"ref":U,Y=$.ref,Q=$.onClick,Z=$.onKeyDown,q=$.selectedItem,K=$.index,ie=Pt($,fy),E=w.current.state,M=xo(q,K,E.selectedItems,"Pass either item or index to getSelectedItemProps!"),H=M[1],T=H>-1&&H===E.activeIndex,B=function(){u({type:Wo,index:H})},z=function(W){var F=fr(W);F&&y[F]&&y[F](W)};return Te((N={},N[J]=an(Y,function(W){W&&m.current.push(W)}),N.tabIndex=T?0:-1,N.onClick=Qe(Q,B),N.onKeyDown=Qe(Z,z),N),ie)},[u,w,y]),_=D.useCallback(function(L,N){var $,U=L===void 0?{}:L,J=U.refKey,Y=J===void 0?"ref":J,Q=U.ref,Z=U.onKeyDown,q=U.onClick,K=U.preventKeyAction,ie=K===void 0?!1:K,E=Pt(U,gy),M=N===void 0?{}:N,H=M.suppressRefError,T=H===void 0?!1:H;S("getDropdownProps",T,Y,g);var B=function(W){var F=fr(W);F&&k[F]&&k[F](W)},z=function(){u({type:Qo})};return Te(($={},$[Y]=an(Q,function(W){W&&(g.current=W)}),$),!ie&&{onKeyDown:Qe(Z,B),onClick:Qe(q,z)},E)},[u,k,S]),A=D.useCallback(function(L){u({type:Xo,selectedItem:L})},[u]),x=D.useCallback(function(L){u({type:Zo,selectedItem:L})},[u]),f=D.useCallback(function(L){u({type:el,selectedItems:L})},[u]),R=D.useCallback(function(L){u({type:tl,activeIndex:L})},[u]),V=D.useCallback(function(){u({type:nl})},[u]);return{getSelectedItemProps:v,getDropdownProps:_,addSelectedItem:A,removeSelectedItem:x,setSelectedItems:f,setActiveIndex:R,reset:V,selectedItems:d,activeIndex:c}}const my=e=>{const{items:t=[],isMulti:n=!1,isSearchable:r=!1,value:i,defaultValue:s,inputValue:o,onChange:l,onInputChange:u,getOptionLabel:c=z=>(z==null?void 0:z.label)||"",getOptionValue:d=z=>(z==null?void 0:z.value)||"",isOpen:h,onOpenChange:g,customOptionGenerator:m,disableInternalFiltering:w=!1,stateReducer:S}=e,y=D.useCallback(z=>{const W=c(z);if(typeof W=="string")return W;if(typeof W=="number")return String(W);const F=z;if(typeof F=="object"&&F!==null){if(typeof F.label=="string")return F.label;if(typeof F.name=="string")return F.name}return String(d(z))},[c,d]),k=z=>z?Array.isArray(z)?z:[z]:[],v=s!==void 0?s:i!==void 0?i:null,[_,A]=D.useState(()=>k(v)),[x,f]=D.useState(o||""),[R,V]=D.useState(()=>h!==void 0?h:!1),L=i!==void 0?k(i):_,N=o!==void 0?o:x,$=h!==void 0?h:R,U=D.useCallback(z=>{h===void 0&&V(z),g==null||g(z)},[h,g]),J=D.useCallback(z=>{i===void 0&&A(z);const W=n?z:z[0]||null;l==null||l(W)},[i,n,l]),Y=D.useCallback(z=>{o===void 0&&f(z),u==null||u(z)},[o,u]),Q=D.useMemo(()=>m?m(N,t):w||!r||!N?t:t.filter(z=>y(z).toLowerCase().includes(N.toLowerCase())),[t,N,m,w,r,y]),Z=rl({selectedItems:L,onSelectedItemsChange:z=>{const W=z.selectedItems||[];J(W)}}),q={items:Q,itemToString:z=>z?y(z):"",isOpen:$,onIsOpenChange:({isOpen:z})=>{z!==void 0&&U(z)},selectedItem:n?null:L[0]||null,onSelectedItemChange:z=>{!n&&z.selectedItem&&J([z.selectedItem])}},K=z=>(W,F)=>{const te=(()=>{const{changes:ee,type:ne}=F;return n&&ee.selectedItem&&(z===wn?[wn.stateChangeTypes.InputKeyDownEnter,wn.stateChangeTypes.ItemClick]:[cr.stateChangeTypes.ToggleButtonKeyDownEnter,cr.stateChangeTypes.ItemClick]).includes(ne)?(!L.some(le=>d(le)===d(ee.selectedItem))&&ee.selectedItem&&Z.addSelectedItem(ee.selectedItem),{...ee,isOpen:!0,highlightedIndex:W.highlightedIndex,...r&&{inputValue:""}}):ne===wn.stateChangeTypes.InputBlur&&!n&&L.length>0?{...ee,inputValue:y(L[0])}:ee})();return S?S(W,{...F,changes:te}):te},ie=r?wn({...q,inputValue:N,onInputValueChange:({inputValue:z,type:W})=>{!z&&W===wn.stateChangeTypes.InputChange&&J([]),Y(z||"")},stateReducer:K(wn),initialIsOpen:h!==void 0?h:!1,defaultIsOpen:!1}):cr({...q,stateReducer:K(cr),initialIsOpen:h!==void 0?h:!1,defaultIsOpen:!1}),E=()=>{U(!$),"toggleMenu"in ie&&ie.toggleMenu()},M=D.useCallback(()=>{U(!0),"openMenu"in ie&&ie.openMenu()},[U,ie]),H=D.useCallback(()=>{U(!1),"closeMenu"in ie&&ie.closeMenu()},[U,ie]),T=D.useCallback(()=>{J([]),Y(""),n&&Z.reset()},[J,Y,n,Z]),B=D.useCallback(z=>{n&&Z.removeSelectedItem(z)},[n,Z]);return{isOpen:ie.isOpen,selectedItem:ie.selectedItem,highlightedIndex:ie.highlightedIndex,inputValue:N,getToggleButtonProps:ie.getToggleButtonProps,getMenuProps:ie.getMenuProps,getItemProps:ie.getItemProps,getInputProps:"getInputProps"in ie?ie.getInputProps:void 0,selectedItems:L,filteredItems:Q,setInputValue:Y,setIsOpen:U,toggleMenu:E,openMenu:M,closeMenu:H,clearSelection:T,removeItem:B,multipleSelection:Z,isMulti:n,isSearchable:r}},qd=({size:e="md",color:t="primary",isInvalid:n=!1,isDisabled:r=!1,className:i,children:s,downshiftParams:o={},...l})=>{const[u,c]=D.useState(!1),{options:d=[],getOptionLabel:h=v=>typeof v=="string"||typeof v=="number"?String(v):(v==null?void 0:v.label)||(v==null?void 0:v.name)||String(v),getOptionValue:g=v=>typeof v=="string"||typeof v=="number"?String(v):(v==null?void 0:v.value)||(v==null?void 0:v.id)||(v==null?void 0:v.name)||String(v),isOptionDisabled:m=v=>(v==null?void 0:v.isDisabled)||!1,formatOptionLabel:w}=o,S=D.useMemo(()=>ub(d),[d]),y=my({items:S,...o,getOptionLabel:h,getOptionValue:g}),k={size:e,color:n?"negative":t,isInvalid:n,isDisabled:r,hasMessage:u,setHasMessage:c,downshift:y,options:d,getOptionLabel:h,getOptionValue:g,isOptionDisabled:m,formatOptionLabel:w};return C.jsx($p.Provider,{value:k,children:C.jsx("div",{"data-qui":"Select",className:de(q0(),i),...l,children:s})})},Kd=D.forwardRef(({className:e,children:t,isFocused:n,isDisabled:r,...i},s)=>{const{size:o,color:l,isDisabled:u,hasMessage:c,downshift:d,isInvalid:h}=Dt(),g=r??u,m=n??d.isOpen;return C.jsx("div",{ref:s,className:de(K0({size:o,color:l,isDisabled:g,isFocused:!!m,isInvalid:h&&!d.isOpen,hasMessage:c}),e),"aria-disabled":g,"aria-invalid":h,role:"combobox",tabIndex:g?-1:0,...i,children:t})}),Jd=({className:e,children:t,isMulti:n})=>C.jsx("div",{className:de(J0({isMulti:n}),e),children:t}),ji=D.forwardRef(({isHidden:e,inputClassName:t,...n},r)=>{const{size:i,color:s}=Dt();return e?C.jsx("input",{ref:r,type:"text",style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...n}):C.jsx("input",{ref:r,type:"text",className:de(G0({size:i,color:s}),t),...n})}),Gd=({className:e,children:t})=>{const{size:n,color:r}=Dt();return C.jsx("div",{className:de(Y0({size:n,color:r}),e),children:t})},Yd=({className:e,children:t,data:n,isDisabled:r})=>{const{size:i,color:s,getOptionLabel:o,formatOptionLabel:l}=Dt();return C.jsx("div",{className:de(Q0({size:i,color:s,isDisabled:r}),e),children:t||(l?l(n):o(n))})},Qd=({className:e,children:t,data:n,isDisabled:r,isFocused:i,onRemove:s})=>{const{size:o,color:l,downshift:u,getOptionLabel:c,formatOptionLabel:d}=Dt(),h=()=>{s?s(n):u.removeItem(n)};return C.jsxs("div",{className:de(X0({size:o,color:l,isDisabled:r,isFocused:i}),e),children:[C.jsx("div",{className:Z0({size:o}),children:t||(d?d(n):c(n))}),!r&&C.jsx("div",{className:eb({size:o,color:l,isDisabled:!1}),onClick:h,children:C.jsx(xs,{className:"w-3 h-3"})})]})},Xd=({color:e,className:t,children:n,onClick:r,isDisabled:i,...s})=>{const{size:o,color:l,isDisabled:u,downshift:c}=Dt(),d=i??u,h=c.selectedItems.length>0;if(d||!h)return null;const g=m=>{m.stopPropagation(),r?r(m):c.clearSelection()};return C.jsx("div",{className:de(Wp({size:o,color:e||l,isDisabled:d}),t),onClick:g,role:"button",tabIndex:0,"aria-label":"Clear selection",...s,children:n||C.jsx(_x,{})})},xy=({className:e,children:t,onClick:n,isDisabled:r,...i})=>{const{size:s,color:o,isDisabled:l,downshift:u}=Dt(),c=r??l,d=u.inputValue.length>0&&u.isSearchable;if(c||!d)return null;const h=g=>{g.stopPropagation(),n?n(g):u.setInputValue("")};return C.jsx("div",{className:de(Wp({size:s,color:o,isDisabled:c}),e),onClick:h,role:"button",tabIndex:0,"aria-label":"Clear selection",...i,children:t||C.jsx(xs,{})})},Zd=({color:e,className:t,children:n,onClick:r,isDisabled:i,...s})=>{const{size:o,color:l,isDisabled:u,downshift:c}=Dt(),d=i??u,h=c.isOpen,g=m=>{m.stopPropagation(),d||(r?r(m):c.toggleMenu())};return C.jsx("div",{className:de(tb({size:o,color:e||l,isDisabled:d}),"cursor-pointer",t),onClick:g,role:"button",tabIndex:d?-1:0,"aria-label":h?"Close menu":"Open menu","aria-expanded":h,"aria-disabled":d,onMouseDown:m=>{m.preventDefault()},...s,children:n||C.jsx(Ex,{className:de("transition-transform duration-200",{"rotate-180":h})})})},ef=D.forwardRef(({className:e,children:t,placement:n,...r},i)=>{const{size:s,hasMessage:o,color:l}=Dt();return C.jsx("div",{"data-qui":"SelectMenu",ref:i,className:de(nb({size:s,placement:n,hasMessage:o,color:l}),e),...r,children:t})}),tf=D.forwardRef(({className:e,children:t,maxHeight:n=300,...r},i)=>{const{size:s}=Dt();return C.jsx(uo,{scrollableNodeProps:{ref:i},className:de(rb({size:s}),e),style:{maxHeight:n},...r,children:t})}),Fa=({className:e,children:t,data:n,isDisabled:r,isFocused:i,isSelected:s,innerProps:o,...l})=>{const{size:u,color:c,getOptionLabel:d,formatOptionLabel:h}=Dt();return C.jsx("div",{"data-qui":"SelectOption",className:de(ib({size:u,color:c,isDisabled:r,isFocused:i,isSelected:s}),e),...o,...l,children:t||(h?h(n):d(n))})},nf=({className:e,children:t,data:n,label:r})=>{const{size:i}=Dt();return C.jsxs("div",{"data-qui":"SelectGroup",className:de(sb({size:i}),e),children:[C.jsx(rf,{children:r||n.label}),t]})},rf=({className:e,children:t})=>{const{size:n,color:r}=Dt();return C.jsx("div",{className:de(ab({size:n,color:r}),e),children:t})},Fi=({className:e,children:t,inputValue:n})=>{const{size:r}=Dt();return C.jsx("div",{className:de(lb({size:r}),e),children:t||`No options found${n?` for "${n}"`:""}`})},vy=({isOpen:e,usePortal:t,controlRef:n,children:r})=>{const[i,s]=D.useState(null);return D.useLayoutEffect(()=>{if(t&&e&&n.current){const o=()=>{var l;const u=(l=n.current)==null?void 0:l.getBoundingClientRect();u&&s({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,n]),e?t&&i?ro.createPortal(C.jsx("div",{className:"absolute z-50",style:{top:i.top,left:i.left,width:i.width,height:i.height,pointerEvents:"none"},children:C.jsx("div",{className:"relative w-full h-full",children:C.jsx("div",{style:{pointerEvents:"auto"},children:r})})}),document.body):C.jsx(C.Fragment,{children:r}):null},by=e=>t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})},sf=D.forwardRef(({placeholder:e,noOptionsMessage:t="",hideNoOptions:n=!1,loadingMessage:r="Loading...",isClearable:i=!1,isSearchClearable:s=!1,isLoading:o=!1,isRequired:l=!1,hideIndicators:u=!1,hideDropdownIndicator:c=!1,searchPlacement:d="trigger",hideSelectedOptions:h=!1,onFocus:g,onBlur:m,renderMenuHeader:w,formatOptionLabel:S,displayFormattedOption:y=!1,renderMultiValue:k,renderOption:v,inputRef:_,controlShouldRenderValue:A=!0,name:x,id:f,onSelectionComplete:R,"aria-label":V,"aria-labelledby":L,"aria-describedby":N,children:$,usePortal:U=!1,...J},Y)=>{const{size:Q,isInvalid:Z,isDisabled:q,downshift:K,options:ie=[],getOptionLabel:E,getOptionValue:M,isOptionDisabled:H}=Dt(),T=D.useRef(null),B=_||T,z=D.useRef(null),{isOpen:W,openMenu:F,selectedItem:te,inputValue:ee,highlightedIndex:ne,getToggleButtonProps:le,getMenuProps:G,getInputProps:ae,getItemProps:ce,isMulti:Ie,isSearchable:Ce}=K,Re=Ie?K.selectedItems??[]:te?[te]:[],Ve=Re.length>0,Oe=s&&!q&&!u,Ne=i&&Ve&&!q&&!u,Ke=!c&&!u,vt=!Ve&&(!Ce||!ee)||!A,Je={},Fe={};Object.entries(J).forEach(([he,Me])=>{he.startsWith("data-")||he.startsWith("aria-")||he==="role"?Je[he]=Me:Fe[he]=Me});const Vt=D.useMemo(()=>by([z,Y]),[Y]),oe=le({disabled:q,ref:Vt}),se=(ae==null?void 0:ae({disabled:q,required:l,name:x,id:f,"aria-label":V,"aria-labelledby":L,"aria-describedby":N,"aria-invalid":Z,onFocus:g,onBlur:m,...Fe}))??{},P=he=>Re.some(Me=>M(Me)===M(he)),be=he=>h?he.filter(Me=>!P(Me)):he,He=he=>h?he.map(Me=>({...Me,options:be(Me.options)})).filter(Me=>Me.options.length>0):he,pt=he=>{R==null||R(M(he),he)};return C.jsxs("div",{className:"relative",children:[C.jsxs(Kd,{...Ce?{ref:Vt}:oe,...Je,isFocused:W,isDisabled:q,onClick:he=>{he.stopPropagation(),Ce?F():K.toggleMenu()},children:[$||C.jsxs(Jd,{isMulti:Ie,children:[Ie&&A&&Re.map((he,Me)=>k?k({data:he,index:Me,isDisabled:q,onRemove:dt=>K.removeItem(dt)}):C.jsx(Qd,{data:he,index:Me,isDisabled:q},M(he))),!Ie&&Ve&&A&&!Ce&&C.jsx("div",{className:"flex items-center gap-2",children:C.jsx(Yd,{data:Re[0],isDisabled:q,children:S&&y?S(Re[0]):E(Re[0])})}),Ce&&d==="trigger"?C.jsx(ji,{ref:B,...se,placeholder:e}):C.jsxs(C.Fragment,{children:[C.jsx(ji,{ref:B,isHidden:!0,value:Re.map(he=>M(he)).join(","),...se}),vt&&C.jsx(Gd,{children:e})]})]}),C.jsxs("div",{className:de("flex items-center size-fit gap-1",{hidden:!Ne&&!Ke}),children:[Oe&&C.jsx(xy,{}),Ne&&C.jsx(Xd,{}),Ke&&C.jsx(Zd,{})]})]}),C.jsx(vy,{isOpen:W,usePortal:U,controlRef:z,children:n&&K.filteredItems.length===0?null:C.jsxs(ef,{...G(),children:[w&&w(K),Ce&&d==="menu"&&C.jsx("div",{className:"p-2",children:C.jsx(ji,{ref:B,...se,autoFocus:!0,placeholder:e,onClick:he=>he.stopPropagation()})}),C.jsx(tf,{children:o?C.jsx("div",{className:ob({size:Q}),children:r}):K.filteredItems.length===0?C.jsx(Fi,{inputValue:ee,children:typeof t=="function"?t(ee):t}):Up(ie)?(()=>{const he=He(ie);return he.length===0?C.jsx(Fi,{inputValue:ee,children:typeof t=="function"?t(ee):t}):he.map(Me=>C.jsx(nf,{data:Me,label:Me.label,options:Me.options,children:Me.options.map(dt=>{const Mt=M(dt),ct=Re.some(_t=>M(_t)===Mt),St=K.filteredItems.findIndex(_t=>M(_t)===Mt),wt=ne===St,Xn=H(dt),un=ce({item:dt,index:St,onClick:()=>pt(dt)});return C.jsx(Fa,{...un,data:dt,isDisabled:Xn,isFocused:wt,isSelected:ct,children:S?S(dt):E(dt)},Mt)})},Me.label))})():(()=>{const he=be(K.filteredItems);return he.length===0?C.jsx(Fi,{inputValue:ee,children:typeof t=="function"?t(ee):t}):he.map(Me=>{const dt=M(Me),Mt=Re.some(un=>M(un)===dt),ct=K.filteredItems.findIndex(un=>M(un)===dt),St=ne===ct,wt=H(Me),Xn=ce({item:Me,index:ct,onClick:()=>pt(Me)});return v?C.jsx(D.Fragment,{children:v({...Xn,data:Me,isDisabled:wt,isFocused:St,isSelected:Mt})},dt):C.jsx(Fa,{...Xn,data:Me,isDisabled:wt,isFocused:St,isSelected:Mt,children:S?S(Me):E(Me)},dt)})})()})]})})]})});qd.displayName="Select.Root";Kd.displayName="Select.Control";Jd.displayName="Select.ValueContainer";ji.displayName="Select.Input";Gd.displayName="Select.Placeholder";Yd.displayName="Select.SingleValue";Qd.displayName="Select.MultiValue";Xd.displayName="Select.ClearIndicator";Zd.displayName="Select.DropdownIndicator";ef.displayName="Select.Menu";tf.displayName="Select.MenuList";Fa.displayName="Select.Option";nf.displayName="Select.Group";rf.displayName="Select.GroupHeading";Fi.displayName="Select.NoOptionsMessage";sf.displayName="Select.Field";const pc={Root:qd,Field:sf};D.createContext(void 0);const yy=({active:e,disabled:t,error:n,isOpen:r,className:i})=>de("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":n&&!e&&!t,"bg-primary":r&&!e&&!t,"text-tab-inactive-fg":!e&&!t&&!n,"hover:bg-primary-hover hover:text-tab-active-fg":!t&&!e},i),wy=D.forwardRef(({active:e,disabled:t,error:n,isOpen:r,className:i,children:s,as:o="div",...l},u)=>{const c=yy({active:e,disabled:t,error:n,isOpen:r,className:i});return C.jsx(o,{"data-qui":"ListItem",ref:u,className:c,"aria-disabled":t,"aria-selected":e,"aria-invalid":n,"aria-expanded":r,role:l.onClick?"button":"listitem",...l,children:s})});wy.displayName="ListItem";const ky=({keyName:e,value:t,isDefault:n})=>{const{state:{newValue:r,onEditValue:i},actions:s}=ve.useStateObject({newValue:t,onEditValue:!1}),{setLanguageKeyValue:o,removeKey:l}=Gn(),u=Fn(),[c,d]=D.useState(null),h=()=>{i&&(o(e,r),s.setOnEditValue(!1),d(null))},g=()=>{i&&(s.setNewValue(t),s.setOnEditValue(!1),d(null))},m=async()=>{const{confirmed:w}=await u.actions.openModal({title:"Delete Key",type:ve.ModalType.CONFIRM,color:ve.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"});w&&l(e)};return D.useEffect(()=>{s.setNewValue(t)},[t]),C.jsxs("tr",{className:"odd:bg-white/5",children:[C.jsx("td",{className:"px-2 text-xs font-normal h-10",children:e}),C.jsx("td",{className:"p-2 whitespace-nowrap text-xs font-normal h-10",children:i?C.jsxs(sn.Root,{isInvalid:!!c,children:[C.jsx(sn.Group,{children:C.jsx(sn.Area,{value:r,onChange:w=>{s.setNewValue(w.target.value),d(null)},onKeyDown:w=>{w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),h())}})}),c&&C.jsx(sn.Message,{children:c==null?void 0:c.message})]}):C.jsx("span",{className:yt("text-wrap",{"italic text-inactive-text":n}),onDoubleClick:()=>{s.setOnEditValue(!0)},children:t})}),C.jsx("td",{className:"flex items-center px-2 text-xs font-normal float-right h-10",children:i?C.jsxs(C.Fragment,{children:[C.jsx(At,{label:"Confirm",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:h,children:C.jsx(ot.FdCheckCircle,{})})}),C.jsx(At,{label:"Cancel",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:g,children:C.jsx(ot.FdClose,{})})})]}):C.jsxs(C.Fragment,{children:[C.jsx(At,{label:"Edit",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:()=>{s.setOnEditValue(!0)},children:C.jsx(ot.FdPen,{})})}),C.jsx(At,{label:"Delete",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:m,children:C.jsx(ot.FdTrash,{})})})]})})]})},Sy=({onCancel:e,onConfirm:t,error:n,setError:r})=>{const{state:i,actions:s}=ve.useStateObject({key:"",value:""}),o=()=>{t(i.key,i.value)},l=()=>{r(null),e()};return C.jsxs("tr",{className:"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(sn.Root,{color:n?"negative":"primary",children:[C.jsx(sn.Group,{children:C.jsx(sn.Field,{type:"text",value:i.key,onChange:u=>{r(null),s.setKey(u.target.value)},autoFocus:!0,onKeyUp:u=>{u.key==="Escape"&&(r(null),l())}})}),n&&C.jsx(sn.Message,{children:n==null?void 0:n.message})]})}),C.jsx("td",{className:"px-2 whitespace-nowrap text-xs font-normal h-10",children:C.jsx(sn.Root,{color:n?"negative":"primary",children:C.jsx(sn.Group,{children:C.jsx(sn.Field,{type:"text",value:i.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(At,{label:"Confirm",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:o,children:C.jsx(ot.FdCheckCircle,{})})}),C.jsx(At,{label:"Cancel",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:l,children:C.jsx(ot.FdClose,{})})})]})]})},_y=()=>{const{languageKeys:e,isPrimary:t,selectedLanguage:n,userLanguages:{supported:r},addNewKey:i,setUserLangSettings:s}=Gn(),{state:o,actions:l}=ve.useStateObject({search:"",switch:t,keys:[],addNewKey:!1}),[u,c]=D.useState(null),d=Xm(e),h=!!n&&!d,g=!!n,m=e.filter(_=>_.key.match(new RegExp(xe.escapeRegExp(o.search),"gi"))),w=m.length===0,S=()=>{if(n){const{isocode:_}=n;s({primary:_,supported:r})}},y=()=>{l.setAddNewKey(!0)},k=(_,A)=>{const x=m.find(f=>f.key===_);if(n){const{isocode:f}=n;if(_){if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(_)||!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(_)){c({message:"Invalid key name"});return}else if(x){c({message:"Key name already exists"});return}i(_,[{lang:f,value:A}],A)}l.setAddNewKey(!1)}},v=()=>{l.setAddNewKey(!1)};return D.useEffect(()=>{l.setSwitch(t)},[t]),C.jsx(br,{depth:1,className:yt("flex w-full border-l",{"justify-center items-center":!1}),children:C.jsxs("div",{className:"flex flex-col w-full py-3 px-3",children:[C.jsxs("div",{className:"flex flex-col space-y-3 justify-between w-full",children:[C.jsxs("div",{className:yt("flex items-center w-full justify-between",{hidden:!g}),children:[C.jsxs("div",{className:"flex space-x-2 items-center justify-center",children:[C.jsx("span",{className:"text-[12px]",children:"Shared Labels"}),C.jsx(ve.Tip,{tipKey:"editors:i18n:label",alwaysOn:!0})]}),C.jsxs("div",{className:"flex space-x-2 justify-center items-center",children:[C.jsx(jp,{onChange:_=>{t||(l.setSwitch(_),S())},checked:o.switch}),C.jsx("span",{className:"text-xs",children:"Primary Locale"})]})]}),C.jsx("div",{className:yt("w-60",{invisible:!h}),children:C.jsx(ve.SearchInput,{containerClassName:"",value:o.search,onChange:_=>l.setSearch(_),delay:300})})]}),d?C.jsx(tx,{}):C.jsxs("div",{className:"w-full",children:[C.jsxs("table",{className:"w-full text-sm text-left rtl:text-right table-fixed",children:[C.jsx("thead",{className:"text-xs ",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(At,{label:"Add a key",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:y,children:C.jsx(ot.FdPlus,{})})})})]})}),C.jsxs("tbody",{className:"border-t-[1px] border-border-subtle",children:[m.map((_,A)=>C.jsx(ky,{keyName:_.key,value:_.value,isDefault:_.isDefault},`${n==null?void 0:n.isocode}/${A}`)),o.addNewKey&&C.jsx(Sy,{onConfirm:k,onCancel:v,setError:c,error:u}),w&&C.jsx("span",{})]})]}),w&&C.jsxs("div",{className:"flex flex-col justify-center items-center mt-16 ml-2 text-xs space-y-3 text-inactive-text",children:[C.jsx(ot.FdInfoBold,{className:"h-9 w-9"}),C.jsx("div",{className:"text-xs",children:"This key doesn't exist."})]})]})]})})},ts=(e,t)=>t.find(n=>n.isocode===e);function Ey(){return{enter:{mdxFlowExpression:Cy,mdxTextExpression:Ay},exit:{mdxFlowExpression:dc,mdxFlowExpressionChunk:fc,mdxTextExpression:dc,mdxTextExpressionChunk:fc}}}function Iy(){return{handlers:{mdxFlowExpression:gc,mdxTextExpression:gc},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]}}function Cy(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function Ay(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function dc(e){const t=this.resume(),n=e.estree,r=this.stack[this.stack.length-1];r.type==="mdxFlowExpression"||r.type,this.exit(e),r.value=t,n&&(r.data={estree:n})}function fc(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function gc(e,t,n){const r=e.value||"";return"{"+n.indentLines(r,function(s,o,l){return(o===0||l?"":" ")+s})+"}"}function ns(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const Ty=["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"],mc={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 af(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function Ny(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Oy(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function xc(e){return Oy(e)||af(e)}const vc=document.createElement("i");function Wr(e){const t="&"+e+";";vc.innerHTML=t;const n=vc.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const Py=["","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 Ry(e,t){const n=t||{},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,i=[];let s=0,o=-1,l="",u,c;n.position&&("start"in n.position||"indent"in n.position?(c=n.position.indent,u=n.position.start):u=n.position);let d=(u?u.line:0)||1,h=(u?u.column:0)||1,g=w(),m;for(s--;++s<=e.length;)if(m===10&&(h=(c?c[o]:0)||1),m=e.charCodeAt(s),m===38){const k=e.charCodeAt(s+1);if(k===9||k===10||k===12||k===32||k===38||k===60||Number.isNaN(k)||r&&k===r){l+=String.fromCharCode(m),h++;continue}const v=s+1;let _=v,A=v,x;if(k===35){A=++_;const J=e.charCodeAt(A);J===88||J===120?(x="hexadecimal",A=++_):x="decimal"}else x="named";let f="",R="",V="";const L=x==="named"?xc:x==="decimal"?af:Ny;for(A--;++A<=e.length;){const J=e.charCodeAt(A);if(!L(J))break;V+=String.fromCharCode(J),x==="named"&&Ty.includes(V)&&(f=V,R=Wr(V))}let N=e.charCodeAt(A)===59;if(N){A++;const J=x==="named"?Wr(V):!1;J&&(f=V,R=J)}let $=1+A-v,U="";if(!(!N&&n.nonTerminated===!1))if(!V)x!=="named"&&S(4,$);else if(x==="named"){if(N&&!R)S(5,1);else if(f!==V&&(A=_+f.length,$=1+A-_,N=!1),!N){const J=f?1:3;if(n.attribute){const Y=e.charCodeAt(A);Y===61?(S(J,$),R=""):xc(Y)?R="":S(J,$)}else S(J,$)}U=R}else{N||S(2,$);let J=Number.parseInt(V,x==="hexadecimal"?16:10);if(Dy(J))S(7,$),U="�";else if(J in mc)S(6,$),U=mc[J];else{let Y="";Ly(J)&&S(6,$),J>65535&&(J-=65536,Y+=String.fromCharCode(J>>>10|55296),J=56320|J&1023),U=Y+String.fromCharCode(J)}}if(U){y(),g=w(),s=A-1,h+=A-v+1,i.push(U);const J=w();J.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,U,{start:g,end:J},e.slice(v-1,A)),g=J}else V=e.slice(v-1,A),l+=V,h+=V.length,s=A-1}else m===10&&(d++,o++,h=0),Number.isNaN(m)?y():(l+=String.fromCharCode(m),h++);return i.join("");function w(){return{line:d,column:h,offset:s+((u?u.offset:0)||0)}}function S(k,v){let _;n.warning&&(_=w(),_.column+=v,_.offset+=v,n.warning.call(n.warningContext||void 0,Py[k],_,k))}function y(){l&&(i.push(l),n.text&&n.text.call(n.textContext||void 0,l,{start:g,end:w()}),l="")}}function Dy(e){return e>=55296&&e<=57343||e>1114111}function Ly(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 Vy=/["&'<>`]/g,My=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jy=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Fy=/[|\\{}()[\]^$+*?.]/g,bc=new WeakMap;function zy(e,t){if(e=e.replace(t.subset?By(t.subset):Vy,r),t.subset||t.escapeOnly)return e;return e.replace(My,n).replace(jy,r);function n(i,s,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),t)}function r(i,s,o){return t.format(i.charCodeAt(0),o.charCodeAt(s+1),t)}}function By(e){let t=bc.get(e);return t||(t=Hy(e),bc.set(e,t)),t}function Hy(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Fy,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function $y(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Wy(e,t){return zy(e,Object.assign({format:$y},t))}function kn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?yc(e.position):"start"in e||"end"in e?yc(e):"line"in e||"column"in e?za(e):""}function za(e){return wc(e&&e.line)+":"+wc(e&&e.column)}function yc(e){return za(e&&e.start)+"-"+za(e&&e.end)}function wc(e){return e&&typeof e=="number"?e:1}class Xe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",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"?i=t:!s.cause&&t&&(o=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?s.ruleId=r:(s.source=r.slice(0,u),s.ruleId=r.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=i,this.line=l?l.line:void 0,this.name=kn(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}}Xe.prototype.file="";Xe.prototype.name="";Xe.prototype.reason="";Xe.prototype.message="";Xe.prototype.stack="";Xe.prototype.column=void 0;Xe.prototype.line=void 0;Xe.prototype.ancestors=void 0;Xe.prototype.cause=void 0;Xe.prototype.fatal=void 0;Xe.prototype.place=void 0;Xe.prototype.ruleId=void 0;Xe.prototype.source=void 0;const of=" ";function Uy(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:r,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:h,mdxJsxFlowTagExpressionAttribute:g,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:r,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:h,mdxJsxTextTagExpressionAttribute:g,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:l,mdxJsxFlowTagNamePrimary:u,mdxJsxFlowTagNameMember:c,mdxJsxFlowTagNameLocal:d,mdxJsxFlowTagExpressionAttribute:m,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:w,mdxJsxFlowTagAttributeNameLocal:S,mdxJsxFlowTagAttributeValueLiteral:y,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:k,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:v,mdxJsxFlowTag:_,mdxJsxTextTagClosingMarker:l,mdxJsxTextTagNamePrimary:u,mdxJsxTextTagNameMember:c,mdxJsxTextTagNameLocal:d,mdxJsxTextTagExpressionAttribute:m,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:w,mdxJsxTextTagAttributeNameLocal:S,mdxJsxTextTagAttributeValueLiteral:y,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:k,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:v,mdxJsxTextTag:_}};function e(){this.buffer()}function t(R){return{line:R.line,column:R.column,offset:R.offset}}function n(R){this.config.enter.data.call(this,R),this.config.exit.data.call(this,R)}function r(R){const V={name:void 0,attributes:[],close:!1,selfClosing:!1,start:R.start,end:R.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=V,this.buffer()}function i(R){if(this.data.mdxJsxTagStack.length===0)throw new Xe("Unexpected closing slash `/` in tag, expected an open tag first",{start:R.start,end:R.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function s(R){if(this.data.mdxJsxTag.close)throw new Xe("Unexpected attribute in closing tag, expected the end of the tag",{start:R.start,end:R.end},"mdast-util-mdx-jsx:unexpected-attribute")}function o(R){if(this.data.mdxJsxTag.close)throw new Xe("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:R.start,end:R.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function l(){const R=this.data.mdxJsxTag;R.close=!0}function u(R){const V=this.data.mdxJsxTag;V.name=this.sliceSerialize(R)}function c(R){const V=this.data.mdxJsxTag;V.name+="."+this.sliceSerialize(R)}function d(R){const V=this.data.mdxJsxTag;V.name+=":"+this.sliceSerialize(R)}function h(R){const V=this.data.mdxJsxTag;s.call(this,R),V.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(R.start),end:void 0}})}function g(R){const V=this.data.mdxJsxTag;s.call(this,R),V.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(R.start),end:void 0}}),this.buffer()}function m(R){const V=this.data.mdxJsxTag,L=V.attributes[V.attributes.length-1];L.type;const N=R.estree;L.value=this.resume(),L.position,L.position.end=t(R.end),N&&(L.data={estree:N})}function w(R){const V=this.data.mdxJsxTag,L=V.attributes[V.attributes.length-1];L.type,L.name=this.sliceSerialize(R),L.position,L.position.end=t(R.end)}function S(R){const V=this.data.mdxJsxTag,L=V.attributes[V.attributes.length-1];L.type,L.name+=":"+this.sliceSerialize(R),L.position,L.position.end=t(R.end)}function y(R){const V=this.data.mdxJsxTag,L=V.attributes[V.attributes.length-1];L.value=Ry(this.resume(),{nonTerminated:!1}),L.position,L.position.end=t(R.end)}function k(R){const V=this.data.mdxJsxTag,L=V.attributes[V.attributes.length-1];L.type;const N={type:"mdxJsxAttributeValueExpression",value:this.resume()},$=R.estree;$&&(N.data={estree:$}),L.value=N,L.position,L.position.end=t(R.end)}function v(){const R=this.data.mdxJsxTag;R.selfClosing=!0}function _(R){const V=this.data.mdxJsxTag,L=this.data.mdxJsxTagStack,N=L[L.length-1];if(V.close&&N.name!==V.name)throw new Xe("Unexpected closing tag `"+f(V)+"`, expected corresponding closing tag for `"+f(N)+"` ("+kn(N)+")",{start:R.start,end:R.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),V.close?L.pop():this.enter({type:R.type==="mdxJsxTextTag"?"mdxJsxTextElement":"mdxJsxFlowElement",name:V.name||null,attributes:V.attributes,children:[]},R,A),V.selfClosing||V.close?this.exit(R,x):L.push(V)}function A(R,V){const L=this.data.mdxJsxTagStack,N=L[L.length-1],$=R?" before the end of `"+R.type+"`":"",U=R?{start:R.start,end:R.end}:void 0;throw new Xe("Expected a closing tag for `"+f(N)+"` ("+kn({start:V.start,end:V.end})+")"+$,U,"mdast-util-mdx-jsx:end-tag-mismatch")}function x(R,V){const L=this.data.mdxJsxTag;throw new Xe("Expected the closing tag `"+f(L)+"` either after the end of `"+V.type+"` ("+kn(V.end)+") or another opening tag after the start of `"+V.type+"` ("+kn(V.start)+")",{start:R.start,end:R.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function f(R){return"<"+(R.close?"/":"")+(R.name||"")+">"}}function qy(e){const t=e||{},n=t.quote||'"',r=t.quoteSmart||!1,i=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=Jy,{handlers:{mdxJsxFlowElement:l,mdxJsxTextElement:l},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function l(u,c,d,h){const g=u.type==="mdxJsxFlowElement",m=u.name?!u.children||u.children.length===0:!1,w=lf(d),S=uf(w),y=d.createTracker(h),k=d.createTracker(h),v=[],_=(g?S:"")+"<"+(u.name||""),A=d.enter(u.type);if(y.move(_),k.move(_),u.attributes&&u.attributes.length>0){if(!u.name)throw new Error("Cannot serialize fragment w/ attributes");let L=-1;for(;++L<u.attributes.length;){const N=u.attributes[L];let $;if(N.type==="mdxJsxExpressionAttribute")$="{"+(N.value||"")+"}";else{if(!N.name)throw new Error("Cannot serialize attribute w/o name");const U=N.value,J=N.name;let Y="";if(U!=null)if(typeof U=="object")Y="{"+(U.value||"")+"}";else{const Q=r&&ns(U,n)>ns(U,o)?o:n;Y=Q+Wy(U,{subset:[Q]})+Q}$=J+(Y?"=":"")+Y}v.push($)}}let x=!1;const f=v.join(" ");g&&(/\r?\n|\r/.test(f)||y.current().now.column+f.length+(m?i?2:3:1)>s)&&(x=!0);let R=y,V=_;if(x){R=k;let L=-1;for(;++L<v.length;)v[L]=S+of+v[L];V+=R.move(`
53
53
  `+v.join(`
54
54
  `)+`
55
55
  `+S)}else f&&(V+=R.move(" "+f));return m&&(V+=R.move((i||x?"":" ")+"/")),V+=R.move(">"),u.children&&u.children.length>0&&(u.type==="mdxJsxTextElement"?V+=R.move(d.containerPhrasing(u,{...R.current(),before:">",after:"<"})):(R.shift(2),V+=R.move(`
56
- `),V+=R.move(qy(u,d,R.current())),V+=R.move(`
57
- `))),m||(V+=R.move((g?S:"")+"</"+(u.name||"")+">")),A(),V}}function qy(e,t,n){const r=t.indexStack,i=e.children,s=t.createTracker(n),o=uf(lf(t)),l=[];let u=-1;for(r.push(-1);++u<i.length;){const c=i[u];r[r.length-1]=u;const d={before:`
56
+ `),V+=R.move(Ky(u,d,R.current())),V+=R.move(`
57
+ `))),m||(V+=R.move((g?S:"")+"</"+(u.name||"")+">")),A(),V}}function Ky(e,t,n){const r=t.indexStack,i=e.children,s=t.createTracker(n),o=uf(lf(t)),l=[];let u=-1;for(r.push(-1);++u<i.length;){const c=i[u];r[r.length-1]=u;const d={before:`
58
58
  `,after:`
59
59
  `,...s.current()},h=t.handle(c,e,t,d),g=c.type==="mdxJsxFlowElement"?h:t.indentLines(h,function(m,w,S){return(S?"":o)+m});l.push(s.move(g)),c.type!=="list"&&(t.bulletLastUsed=void 0),u<i.length-1&&l.push(s.move(`
60
60
 
61
- `))}return r.pop(),l.join("")}function lf(e){let t=0,n=e.stack.length;for(;--n>-1;){const r=e.stack[n];if(r==="blockquote"||r==="listItem")break;r==="mdxJsxFlowElement"&&t++}return t}function uf(e){return of.repeat(e)}function Ky(){return"<"}function Jy(){return{enter:{mdxjsEsm:Yy},exit:{mdxjsEsm:Qy,mdxjsEsmData:Xy}}}function Gy(){return{handlers:{mdxjsEsm:Zy}}}function Yy(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function Qy(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e);const r=e.estree;n.value=t,r&&(n.data={estree:r})}function Xy(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Zy(e){return e.value||""}function ew(){return[_y(),Wy(),Jy()]}function tw(e){return{extensions:[Ey(),Uy(e),Gy()]}}var nw=[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],cf=[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],rw="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",hf="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Qs={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"},Xs="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",iw={5:Xs,"5module":Xs+" export import",6:Xs+" const class extends export import super"},sw=/^in(stanceof)?$/,aw=new RegExp("["+hf+"]"),ow=new RegExp("["+hf+rw+"]");function Ba(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function gn(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&aw.test(String.fromCharCode(e)):t===!1?!1:Ba(e,cf)}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&&ow.test(String.fromCharCode(e)):t===!1?!1:Ba(e,cf)||Ba(e,nw)}var Ye=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 Jt(e,t){return new Ye(e,{beforeExpr:!0,binop:t})}var Gt={beforeExpr:!0},Ft={startsExpr:!0},il={};function qe(e,t){return t===void 0&&(t={}),t.keyword=e,il[e]=new Ye(e,t)}var O={num:new Ye("num",Ft),regexp:new Ye("regexp",Ft),string:new Ye("string",Ft),name:new Ye("name",Ft),privateId:new Ye("privateId",Ft),eof:new Ye("eof"),bracketL:new Ye("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Ye("]"),braceL:new Ye("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Ye("}"),parenL:new Ye("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Ye(")"),comma:new Ye(",",Gt),semi:new Ye(";",Gt),colon:new Ye(":",Gt),dot:new Ye("."),question:new Ye("?",Gt),questionDot:new Ye("?."),arrow:new Ye("=>",Gt),template:new Ye("template"),invalidTemplate:new Ye("invalidTemplate"),ellipsis:new Ye("...",Gt),backQuote:new Ye("`",Ft),dollarBraceL:new Ye("${",{beforeExpr:!0,startsExpr:!0}),eq:new Ye("=",{beforeExpr:!0,isAssign:!0}),assign:new Ye("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Ye("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Ye("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Jt("||",1),logicalAND:Jt("&&",2),bitwiseOR:Jt("|",3),bitwiseXOR:Jt("^",4),bitwiseAND:Jt("&",5),equality:Jt("==/!=/===/!==",6),relational:Jt("</>/<=/>=",7),bitShift:Jt("<</>>/>>>",8),plusMin:new Ye("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Jt("%",10),star:Jt("*",10),slash:Jt("/",10),starstar:new Ye("**",{beforeExpr:!0}),coalesce:Jt("??",1),_break:qe("break"),_case:qe("case",Gt),_catch:qe("catch"),_continue:qe("continue"),_debugger:qe("debugger"),_default:qe("default",Gt),_do:qe("do",{isLoop:!0,beforeExpr:!0}),_else:qe("else",Gt),_finally:qe("finally"),_for:qe("for",{isLoop:!0}),_function:qe("function",Ft),_if:qe("if"),_return:qe("return",Gt),_switch:qe("switch"),_throw:qe("throw",Gt),_try:qe("try"),_var:qe("var"),_const:qe("const"),_while:qe("while",{isLoop:!0}),_with:qe("with"),_new:qe("new",{beforeExpr:!0,startsExpr:!0}),_this:qe("this",Ft),_super:qe("super",Ft),_class:qe("class",Ft),_extends:qe("extends",Gt),_export:qe("export"),_import:qe("import",Ft),_null:qe("null",Ft),_true:qe("true",Ft),_false:qe("false",Ft),_in:qe("in",{beforeExpr:!0,binop:7}),_instanceof:qe("instanceof",{beforeExpr:!0,binop:7}),_typeof:qe("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:qe("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:qe("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Ht=/\r\n?|\n|\u2028|\u2029/,lw=new RegExp(Ht.source,"g");function yr(e){return e===10||e===13||e===8232||e===8233}function pf(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(yr(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var df=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,It=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ff=Object.prototype,uw=ff.hasOwnProperty,cw=ff.toString,wr=Object.hasOwn||(function(e,t){return uw.call(e,t)}),kc=Array.isArray||(function(e){return cw.call(e)==="[object Array]"}),Sc=Object.create(null);function Ln(e){return Sc[e]||(Sc[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function En(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var hw=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ur=function(t,n){this.line=t,this.column=n};Ur.prototype.offset=function(t){return new Ur(this.line,this.column+t)};var _s=function(t,n,r){this.start=n,this.end=r,t.sourceFile!==null&&(this.source=t.sourceFile)};function gf(e,t){for(var n=1,r=0;;){var i=pf(e,r,t);if(i<0)return new Ur(n,t-r);++n,r=i}}var Ha={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},_c=!1;function pw(e){var t={};for(var n in Ha)t[n]=e&&wr(e,n)?e[n]:Ha[n];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!_c&&typeof console=="object"&&console.warn&&(_c=!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),kc(t.onToken)){var r=t.onToken;t.onToken=function(i){return r.push(i)}}return kc(t.onComment)&&(t.onComment=dw(t,t.onComment)),t}function dw(e,t){return function(n,r,i,s,o,l){var u={type:n?"Block":"Line",value:r,start:i,end:s};e.locations&&(u.loc=new _s(this,o,l)),e.ranges&&(u.range=[i,s]),t.push(u)}}var qr=1,kr=2,sl=4,mf=8,al=16,xf=32,Es=64,vf=128,Qn=256,Xr=512,Is=qr|kr|Qn;function ol(e,t){return kr|(e?sl:0)|(t?mf:0)}var rs=0,ll=1,Cn=2,bf=3,yf=4,wf=5,xt=function(t,n,r){this.options=t=pw(t),this.sourceFile=t.sourceFile,this.keywords=Ln(iw[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var i="";t.allowReserved!==!0&&(i=Qs[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(i+=" await")),this.reservedWords=Ln(i);var s=(i?i+" ":"")+Qs.strict;this.reservedWordsStrict=Ln(s),this.reservedWordsStrictBind=Ln(s+" "+Qs.strictBind),this.input=String(n),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf(`
63
- `,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Ht).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=O.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(qr),this.regexpState=null,this.privateNameStack=[]},mn={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}};xt.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};mn.inFunction.get=function(){return(this.currentVarScope().flags&kr)>0};mn.inGenerator.get=function(){return(this.currentVarScope().flags&mf)>0};mn.inAsync.get=function(){return(this.currentVarScope().flags&sl)>0};mn.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(Qn|Xr))return!1;if(n&kr)return(n&sl)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};mn.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&Es)>0||this.options.allowSuperOutsideMethod};mn.allowDirectSuper.get=function(){return(this.currentThisScope().flags&vf)>0};mn.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};mn.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(Qn|Xr)||n&kr&&!(n&al))return!0}return!1};mn.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Qn)>0};xt.extend=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];for(var r=this,i=0;i<t.length;i++)r=t[i](r);return r};xt.parse=function(t,n){return new this(n,t).parse()};xt.parseExpressionAt=function(t,n,r){var i=new this(r,t,n);return i.nextToken(),i.parseExpression()};xt.tokenizer=function(t,n){return new this(n,t)};Object.defineProperties(xt.prototype,mn);var Lt=xt.prototype,fw=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Lt.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){It.lastIndex=e,e+=It.exec(this.input)[0].length;var t=fw.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){It.lastIndex=e+t[0].length;var n=It.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===";"||i==="}"||Ht.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(r+1)==="=")}e+=t[0].length,It.lastIndex=e,e+=It.exec(this.input)[0].length,this.input[e]===";"&&e++}};Lt.eat=function(e){return this.type===e?(this.next(),!0):!1};Lt.isContextual=function(e){return this.type===O.name&&this.value===e&&!this.containsEsc};Lt.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Lt.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Lt.canInsertSemicolon=function(){return this.type===O.eof||this.type===O.braceR||Ht.test(this.input.slice(this.lastTokEnd,this.start))};Lt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Lt.semicolon=function(){!this.eat(O.semi)&&!this.insertSemicolon()&&this.unexpected()};Lt.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};Lt.expect=function(e){this.eat(e)||this.unexpected()};Lt.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Cs=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Lt.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")}};Lt.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")};Lt.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")};Lt.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var _e=xt.prototype;_e.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==O.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var s=i[r];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var ul={kind:"loop"},gw={kind:"switch"};_e.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;It.lastIndex=this.pos;var t=It.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(gn(r,!0)){for(var i=n+1;Mn(r=this.input.charCodeAt(i),!0);)++i;if(r===92||r>55295&&r<56320)return!0;var s=this.input.slice(n,i);if(!sw.test(s))return!0}return!1};_e.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;It.lastIndex=this.pos;var e=It.exec(this.input),t=this.pos+e[0].length,n;return!Ht.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(Mn(n=this.input.charCodeAt(t+8))||n>55295&&n<56320))};_e.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;It.lastIndex=this.pos;var n=It.exec(this.input),r=this.pos+n[0].length;if(Ht.test(this.input.slice(this.pos,r)))return!1;if(e){var i=r+5,s;if(this.input.slice(r,i)!=="using"||i===this.input.length||Mn(s=this.input.charCodeAt(i))||s>55295&&s<56320)return!1;It.lastIndex=i;var o=It.exec(this.input);if(o&&Ht.test(this.input.slice(i,i+o[0].length)))return!1}if(t){var l=r+2,u;if(this.input.slice(r,l)==="of"&&(l===this.input.length||!Mn(u=this.input.charCodeAt(l))&&!(u>55295&&u<56320)))return!1}var c=this.input.charCodeAt(r);return gn(c,!0)||c===92};_e.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};_e.isUsing=function(e){return this.isUsingKeyword(!1,e)};_e.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),s;switch(this.isLet(e)&&(r=O._var,s="let"),r){case O._break:case O._continue:return this.parseBreakContinueStatement(i,r.keyword);case O._debugger:return this.parseDebuggerStatement(i);case O._do:return this.parseDoStatement(i);case O._for:return this.parseForStatement(i);case O._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case O._class:return e&&this.unexpected(),this.parseClass(i,!0);case O._if:return this.parseIfStatement(i);case O._return:return this.parseReturnStatement(i);case O._switch:return this.parseSwitchStatement(i);case O._throw:return this.parseThrowStatement(i);case O._try:return this.parseTryStatement(i);case O._const:case O._var:return s=s||this.value,e&&s!=="var"&&this.unexpected(),this.parseVarStatement(i,s);case O._while:return this.parseWhileStatement(i);case O._with:return this.parseWithStatement(i);case O.braceL:return this.parseBlock(!0,i);case O.semi:return this.parseEmptyStatement(i);case O._export:case O._import:if(this.options.ecmaVersion>10&&r===O._import){It.lastIndex=this.pos;var o=It.exec(this.input),l=this.pos+o[0].length,u=this.input.charCodeAt(l);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'")),r===O._import?this.parseImport(i):this.parseExport(i,n);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 r===O.name&&h.type==="Identifier"&&this.eat(O.colon)?this.parseLabeledStatement(i,d,h,e):this.parseExpressionStatement(i,h)}};_e.parseBreakContinueStatement=function(e,t){var n=t==="break";this.next(),this.eat(O.semi)||this.insertSemicolon()?e.label=null:this.type!==O.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind==="loop")||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")};_e.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};_e.parseDoStatement=function(e){return this.next(),this.labels.push(ul),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(O._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(O.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};_e.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ul),this.enterScope(0),this.expect(O.parenL),this.type===O.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===O._var||this.type===O._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),this.parseForAfterInit(e,r,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.next(),this.parseVar(u,!0,l),this.finishNode(u,"VariableDeclaration"),this.parseForAfterInit(e,u,t)}var c=this.containsEsc,d=new Cs,h=this.start,g=t>-1?this.parseExprSubscripts(d,"await"):this.parseExpression(!0,d);return this.type===O._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===O._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(g.start===h&&!c&&g.type==="Identifier"&&g.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),s&&o&&this.raise(g.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(g,!1,d),this.checkLValPattern(g),this.parseForIn(e,g)):(this.checkExpressionErrors(d,!0),t>-1&&this.unexpected(t),this.parseFor(e,g))};_e.parseForAfterInit=function(e,t,n){return(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===O._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))};_e.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Mr|(n?0:$a),!1,t)};_e.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(O._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};_e.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(O.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};_e.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(O.braceL),this.labels.push(gw),this.enterScope(0);for(var t,n=!1;this.type!==O.braceR;)if(this.type===O._case||this.type===O._default){var r=this.type===O._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(O.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")};_e.parseThrowStatement=function(e){return this.next(),Ht.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 mw=[];_e.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?xf:0),this.checkLValPattern(e,t?yf:Cn),this.expect(O.parenR),e};_e.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===O._catch){var t=this.startNode();this.next(),this.eat(O.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(O._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};_e.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")};_e.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(ul),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};_e.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")};_e.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};_e.parseLabeledStatement=function(e,t,n,r){for(var i=0,s=this.labels;i<s.length;i+=1){var o=s[i];o.name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var l=this.type.isLoop?"loop":this.type===O._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=l;else break}return this.labels.push({name:t,kind:l,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")};_e.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};_e.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(O.braceL),e&&this.enterScope(0);this.type!==O.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};_e.parseFor=function(e,t){return e.init=t,this.expect(O.semi),e.test=this.type===O.semi?null:this.parseExpression(),this.expect(O.semi),e.update=this.type===O.parenR?null:this.parseExpression(),this.expect(O.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};_e.parseForIn=function(e,t){var n=this.type===O._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(O.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")};_e.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(O.eq)?i.init=this.parseMaybeAssign(t):!r&&n==="const"&&!(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!r&&(n==="using"||n==="await using")&&this.options.ecmaVersion>=17&&this.type!==O._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):!r&&i.id.type!=="Identifier"&&!(t&&(this.type===O._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(O.comma))break}return e};_e.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?ll:Cn,!1)};var Mr=1,$a=2,kf=4;_e.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===O.star&&t&$a&&this.unexpected(),e.generator=this.eat(O.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Mr&&(e.id=t&kf&&this.type!==O.name?null:this.parseIdent(),e.id&&!(t&$a)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?ll:Cn:bf));var s=this.yieldPos,o=this.awaitPos,l=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ol(e.async,e.generator)),t&Mr||(e.id=this.type===O.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=l,this.finishNode(e,t&Mr?"FunctionDeclaration":"FunctionExpression")};_e.parseFunctionParams=function(e){this.expect(O.parenL),e.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};_e.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),s=!1;for(i.body=[],this.expect(O.braceL);this.type!==O.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.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"&&xw(r,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};_e.parseClassElement=function(e){if(this.eat(O.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,s=!1,o="method",l=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(O.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===O.star?l=!0:r="static"}if(n.static=l,!r&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===O.star)&&!this.canInsertSemicolon()?s=!0:r="async"),!r&&(t>=9||!s)&&this.eat(O.star)&&(i=!0),!r&&!s&&!i){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=u:r=u)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===O.parenL||o!=="method"||i||s){var c=!n.static&&is(n,"constructor"),d=c&&e;c&&o!=="method"&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=c?"constructor":o,this.parseClassMethod(n,i,s,d)}else this.parseClassField(n);return n};_e.isClassElementNameStart=function(){return this.type===O.name||this.type===O.privateId||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword};_e.parseClassElementName=function(e){this.type===O.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)};_e.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind==="constructor"?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&is(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,n,r);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")};_e.parseClassField=function(e){return is(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&is(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(O.eq)?(this.enterScope(Xr|Es),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};_e.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Qn|Es);this.type!==O.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};_e.parseClassId=function(e,t){this.type===O.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Cn,!1)):(t===!0&&this.unexpected(),e.id=null)};_e.parseClassSuper=function(e){e.superClass=this.eat(O._extends)?this.parseExprSubscripts(null,!1):null};_e.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};_e.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],s=0;s<n.length;++s){var o=n[s];wr(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}};function xw(e,t){var n=t.key.name,r=e[n],i="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(i=(t.static?"s":"i")+t.kind),r==="iget"&&i==="iset"||r==="iset"&&i==="iget"||r==="sget"&&i==="sset"||r==="sset"&&i==="sget"?(e[n]="true",!1):r?!0:(e[n]=i,!1)}function is(e,t){var n=e.computed,r=e.key;return!n&&(r.type==="Identifier"&&r.name===t||r.type==="Literal"&&r.value===t)}_e.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!==O.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};_e.parseExport=function(e,t){if(this.next(),this.eat(O.star))return this.parseExportAllDeclaration(e,t);if(this.eat(O._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!==O.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,r=e.specifiers;n<r.length;n+=1){var i=r[n];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")};_e.parseExportDeclaration=function(e){return this.parseStatement(null)};_e.parseExportDefaultDeclaration=function(){var e;if(this.type===O._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,Mr|kf,!1,e)}else if(this.type===O._class){var n=this.startNode();return this.parseClass(n,"nullableID")}else{var r=this.parseMaybeAssign();return this.semicolon(),r}};_e.checkExport=function(e,t,n){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),wr(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)};_e.checkPatternExport=function(e,t){var n=t.type;if(n==="Identifier")this.checkExport(e,t,t.start);else if(n==="ObjectPattern")for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];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)};_e.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}};_e.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};_e.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")};_e.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(O.braceL);!this.eat(O.braceR);){if(n)n=!1;else if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break;t.push(this.parseExportSpecifier(e))}return t};_e.parseImport=function(e){return this.next(),this.type===O.string?(e.specifiers=mw,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===O.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};_e.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")};_e.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Cn),this.finishNode(e,"ImportDefaultSpecifier")};_e.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")};_e.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===O.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(O.comma)))return e;if(this.type===O.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(O.braceL);!this.eat(O.braceR);){if(t)t=!1;else if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break;e.push(this.parseImportSpecifier())}return e};_e.parseWithClause=function(){var e=[];if(!this.eat(O._with))return e;this.expect(O.braceL);for(var t={},n=!0;!this.eat(O.braceR);){if(n)n=!1;else if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break;var r=this.parseImportAttribute(),i=r.key.type==="Identifier"?r.key.name:r.key.value;wr(t,i)&&this.raiseRecoverable(r.key.start,"Duplicate attribute key '"+i+"'"),t[i]=!0,e.push(r)}return e};_e.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===O.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(O.colon),this.type!==O.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};_e.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===O.string){var e=this.parseLiteral(this.value);return hw.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};_e.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)};_e.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 tn=xt.prototype;tn.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 r=0,i=e.properties;r<i.length;r+=1){var s=i[r];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};tn.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,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};tn.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};tn.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==O.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};tn.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case O.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(O.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case O.braceL:return this.parseObj(!0)}return this.parseIdent()};tn.parseBindingList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(O.comma),t&&this.type===O.comma)i.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===O.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else i.push(this.parseAssignableListItem(r))}return i};tn.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};tn.parseBindingListItem=function(e){return e};tn.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(O.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")};tn.checkLValSimple=function(e,t,n){t===void 0&&(t=rs);var r=t!==rs;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(t===Cn&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(wr(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),t!==wf&&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":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}};tn.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=rs),e.type){case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];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)}};tn.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=rs),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 rn=function(t,n,r,i,s){this.token=t,this.isExpr=!!n,this.preserveSpace=!!r,this.override=i,this.generator=!!s},ht={b_stat:new rn("{",!1),b_expr:new rn("{",!0),b_tmpl:new rn("${",!1),p_stat:new rn("(",!1),p_expr:new rn("(",!0),q_tmpl:new rn("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new rn("function",!1),f_expr:new rn("function",!0),f_expr_gen:new rn("function",!0,!1,null,!0),f_gen:new rn("function",!1,!1,null,!0)},Sr=xt.prototype;Sr.initialContext=function(){return[ht.b_stat]};Sr.curContext=function(){return this.context[this.context.length-1]};Sr.braceIsBlock=function(e){var t=this.curContext();return t===ht.f_expr||t===ht.f_stat?!0:e===O.colon&&(t===ht.b_stat||t===ht.b_expr)?!t.isExpr:e===O._return||e===O.name&&this.exprAllowed?Ht.test(this.input.slice(this.lastTokEnd,this.start)):e===O._else||e===O.semi||e===O.eof||e===O.parenR||e===O.arrow?!0:e===O.braceL?t===ht.b_stat:e===O._var||e===O._const||e===O.name?!1:!this.exprAllowed};Sr.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};Sr.updateContext=function(e){var t,n=this.type;n.keyword&&e===O.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr};Sr.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};O.parenR.updateContext=O.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===ht.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};O.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ht.b_stat:ht.b_expr),this.exprAllowed=!0};O.dollarBraceL.updateContext=function(){this.context.push(ht.b_tmpl),this.exprAllowed=!0};O.parenL.updateContext=function(e){var t=e===O._if||e===O._for||e===O._with||e===O._while;this.context.push(t?ht.p_stat:ht.p_expr),this.exprAllowed=!0};O.incDec.updateContext=function(){};O._function.updateContext=O._class.updateContext=function(e){e.beforeExpr&&e!==O._else&&!(e===O.semi&&this.curContext()!==ht.p_stat)&&!(e===O._return&&Ht.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===O.colon||e===O.braceL)&&this.curContext()===ht.b_stat)?this.context.push(ht.f_expr):this.context.push(ht.f_stat),this.exprAllowed=!1};O.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};O.backQuote.updateContext=function(){this.curContext()===ht.q_tmpl?this.context.pop():this.context.push(ht.q_tmpl),this.exprAllowed=!1};O.star.updateContext=function(e){if(e===O._function){var t=this.context.length-1;this.context[t]===ht.f_expr?this.context[t]=ht.f_expr_gen:this.context[t]=ht.f_gen}this.exprAllowed=!0};O.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==O.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Le=xt.prototype;Le.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case"Identifier":i=r.name;break;case"Literal":i=String(r.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6){i==="__proto__"&&s==="init"&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),t.proto=!0);return}i="$"+i;var o=t[i];if(o){var l;s==="init"?l=this.strict&&o.init||o.get||o.set:l=o.init||o[s],l&&this.raiseRecoverable(r.start,"Redefinition of property")}else o=t[i]={init:!1,get:!1,set:!1};o[s]=!0}};Le.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===O.comma){var s=this.startNodeAt(n,r);for(s.expressions=[i];this.eat(O.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return i};Le.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,s=-1,o=-1;t?(i=t.parenthesizedAssign,s=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Cs,r=!0);var l=this.start,u=this.startLoc;(this.type===O.parenL||this.type===O.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var c=this.parseMaybeConditional(e,t);if(n&&(c=n.call(this,c,l,u)),this.type.isAssign){var d=this.startNodeAt(l,u);return d.operator=this.value,this.type===O.eq&&(c=this.toAssignable(c,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===O.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 r&&this.checkExpressionErrors(t,!0);return i>-1&&(t.parenthesizedAssign=i),s>-1&&(t.trailingComma=s),c};Le.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(O.question)){var s=this.startNodeAt(n,r);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(O.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return i};Le.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,n,r,-1,e)};Le.parseExprOp=function(e,t,n,r,i){var s=this.type.binop;if(s!=null&&(!i||this.type!==O._in)&&s>r){var o=this.type===O.logicalOR||this.type===O.logicalAND,l=this.type===O.coalesce;l&&(s=O.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,s,i),g=this.buildBinary(t,n,e,h,u,o||l);return(o&&this.type===O.coalesce||l&&(this.type===O.logicalOR||this.type===O.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(g,t,n,r,i)}return e};Le.buildBinary=function(e,t,n,r,i,s){r.type==="PrivateIdentifier"&&this.raise(r.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")};Le.parseMaybeUnary=function(e,t,n,r){var i=this.start,s=this.startLoc,o;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var l=this.startNode(),u=this.type===O.incDec;l.operator=this.value,l.prefix=!0,this.next(),l.argument=this.parseMaybeUnary(null,!0,u,r),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(l.argument):this.strict&&l.operator==="delete"&&Sf(l.argument)?this.raiseRecoverable(l.start,"Deleting local variable in strict mode"):l.operator==="delete"&&Wa(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===O.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==O._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(i,s);c.operator=this.value,c.prefix=!1,c.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(c,"UpdateExpression")}}if(!n&&this.eat(O.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,s,o,this.parseMaybeUnary(null,!1,!1,r),"**",!1);else return o};function Sf(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Sf(e.expression)}function Wa(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&Wa(e.expression)||e.type==="ParenthesizedExpression"&&Wa(e.expression)}Le.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if(i.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return i;var s=this.parseSubscripts(i,n,r,!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};Le.parseSubscripts=function(e,t,n,r,i){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,r,s,o,i);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}};Le.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(O.arrow)};Le.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)};Le.parseSubscript=function(e,t,n,r,i,s,o){var l=this.options.ecmaVersion>=11,u=l&&this.eat(O.questionDot);r&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(O.bracketL);if(c||u&&this.type!==O.parenL&&this.type!==O.backQuote||this.eat(O.dot)){var d=this.startNodeAt(t,n);d.object=e,c?(d.property=this.parseExpression(),this.expect(O.bracketR)):this.type===O.privateId&&e.type!=="Super"?d.property=this.parsePrivateIdent():d.property=this.parseIdent(this.options.allowReserved!=="never"),d.computed=!!c,l&&(d.optional=u),e=this.finishNode(d,"MemberExpression")}else if(!r&&this.eat(O.parenL)){var h=new Cs,g=this.yieldPos,m=this.awaitPos,w=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var S=this.parseExprList(O.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=g,this.awaitPos=m,this.awaitIdentPos=w,this.parseSubscriptAsyncArrow(t,n,S,o);this.checkExpressionErrors(h,!0),this.yieldPos=g||this.yieldPos,this.awaitPos=m||this.awaitPos,this.awaitIdentPos=w||this.awaitIdentPos;var y=this.startNodeAt(t,n);y.callee=e,y.arguments=S,l&&(y.optional=u),e=this.finishNode(y,"CallExpression")}else if(this.type===O.backQuote){(u||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var k=this.startNodeAt(t,n);k.tag=e,k.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(k,"TaggedTemplateExpression")}return e};Le.parseExprAtom=function(e,t,n){this.type===O.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case O._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type===O.parenL&&!this.allowDirectSuper&&this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==O.dot&&this.type!==O.bracketL&&this.type!==O.parenL&&this.unexpected(),this.finishNode(r,"Super");case O._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case O.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(O._function))return this.overrideContext(ht.f_expr),this.parseFunction(this.startNodeAt(s,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(O.arrow))return this.parseArrowExpression(this.startNodeAt(s,o),[u],!1,t);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===O.name&&!l&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return u=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(O.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,o),[u],!0,t)}return u;case O.regexp:var c=this.value;return r=this.parseLiteral(c.value),r.regex={pattern:c.pattern,flags:c.flags},r;case O.num:case O.string:return this.parseLiteral(this.value);case O._null:case O._true:case O._false:return r=this.startNode(),r.value=this.type===O._null?null:this.type===O._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case O.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 O.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(O.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case O.braceL:return this.overrideContext(ht.b_expr),this.parseObj(!1,e);case O._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case O._class:return this.parseClass(this.startNode(),!1);case O._new:return this.parseNew();case O.backQuote:return this.parseTemplate();case O._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}};Le.parseExprAtomDefault=function(){this.unexpected()};Le.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===O.parenL&&!e)return this.parseDynamicImport(t);if(this.type===O.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()};Le.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(O.parenR)?e.options=null:(this.expect(O.comma),this.afterTrailingComma(O.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(O.parenR)||(this.expect(O.comma),this.afterTrailingComma(O.parenR)||this.unexpected())));else if(!this.eat(O.parenR)){var t=this.start;this.eat(O.comma)&&this.eat(O.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};Le.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")};Le.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")};Le.parseParenExpression=function(){this.expect(O.parenL);var e=this.parseExpression();return this.expect(O.parenR),e};Le.shouldParseArrow=function(e){return!this.canInsertSemicolon()};Le.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,l=this.startLoc,u=[],c=!0,d=!1,h=new Cs,g=this.yieldPos,m=this.awaitPos,w;for(this.yieldPos=0,this.awaitPos=0;this.type!==O.parenR;)if(c?c=!1:this.expect(O.comma),s&&this.afterTrailingComma(O.parenR,!0)){d=!0;break}else if(this.type===O.ellipsis){w=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else u.push(this.parseMaybeAssign(!1,h,this.parseParenItem));var S=this.lastTokEnd,y=this.lastTokEndLoc;if(this.expect(O.parenR),e&&this.shouldParseArrow(u)&&this.eat(O.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=g,this.awaitPos=m,this.parseParenArrowList(n,r,u,t);(!u.length||d)&&this.unexpected(this.lastTokStart),w&&this.unexpected(w),this.checkExpressionErrors(h,!0),this.yieldPos=g||this.yieldPos,this.awaitPos=m||this.awaitPos,u.length>1?(i=this.startNodeAt(o,l),i.expressions=u,this.finishNodeAt(i,"SequenceExpression",S,y)):i=u[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var k=this.startNodeAt(n,r);return k.expression=i,this.finishNode(k,"ParenthesizedExpression")}else return i};Le.parseParenItem=function(e){return e};Le.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var vw=[];Le.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===O.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 r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(O.parenL)?e.arguments=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1):e.arguments=vw,this.finishNode(e,"NewExpression")};Le.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===O.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,`
61
+ `))}return r.pop(),l.join("")}function lf(e){let t=0,n=e.stack.length;for(;--n>-1;){const r=e.stack[n];if(r==="blockquote"||r==="listItem")break;r==="mdxJsxFlowElement"&&t++}return t}function uf(e){return of.repeat(e)}function Jy(){return"<"}function Gy(){return{enter:{mdxjsEsm:Qy},exit:{mdxjsEsm:Xy,mdxjsEsmData:Zy}}}function Yy(){return{handlers:{mdxjsEsm:ew}}}function Qy(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function Xy(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e);const r=e.estree;n.value=t,r&&(n.data={estree:r})}function Zy(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function ew(e){return e.value||""}function tw(){return[Ey(),Uy(),Gy()]}function nw(e){return{extensions:[Iy(),qy(e),Yy()]}}var rw=[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],cf=[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],iw="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",hf="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Qs={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"},Xs="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",sw={5:Xs,"5module":Xs+" export import",6:Xs+" const class extends export import super"},aw=/^in(stanceof)?$/,ow=new RegExp("["+hf+"]"),lw=new RegExp("["+hf+iw+"]");function Ba(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function gn(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&ow.test(String.fromCharCode(e)):t===!1?!1:Ba(e,cf)}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&&lw.test(String.fromCharCode(e)):t===!1?!1:Ba(e,cf)||Ba(e,rw)}var Ye=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 Jt(e,t){return new Ye(e,{beforeExpr:!0,binop:t})}var Gt={beforeExpr:!0},Ft={startsExpr:!0},il={};function qe(e,t){return t===void 0&&(t={}),t.keyword=e,il[e]=new Ye(e,t)}var O={num:new Ye("num",Ft),regexp:new Ye("regexp",Ft),string:new Ye("string",Ft),name:new Ye("name",Ft),privateId:new Ye("privateId",Ft),eof:new Ye("eof"),bracketL:new Ye("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Ye("]"),braceL:new Ye("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Ye("}"),parenL:new Ye("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Ye(")"),comma:new Ye(",",Gt),semi:new Ye(";",Gt),colon:new Ye(":",Gt),dot:new Ye("."),question:new Ye("?",Gt),questionDot:new Ye("?."),arrow:new Ye("=>",Gt),template:new Ye("template"),invalidTemplate:new Ye("invalidTemplate"),ellipsis:new Ye("...",Gt),backQuote:new Ye("`",Ft),dollarBraceL:new Ye("${",{beforeExpr:!0,startsExpr:!0}),eq:new Ye("=",{beforeExpr:!0,isAssign:!0}),assign:new Ye("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Ye("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Ye("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Jt("||",1),logicalAND:Jt("&&",2),bitwiseOR:Jt("|",3),bitwiseXOR:Jt("^",4),bitwiseAND:Jt("&",5),equality:Jt("==/!=/===/!==",6),relational:Jt("</>/<=/>=",7),bitShift:Jt("<</>>/>>>",8),plusMin:new Ye("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Jt("%",10),star:Jt("*",10),slash:Jt("/",10),starstar:new Ye("**",{beforeExpr:!0}),coalesce:Jt("??",1),_break:qe("break"),_case:qe("case",Gt),_catch:qe("catch"),_continue:qe("continue"),_debugger:qe("debugger"),_default:qe("default",Gt),_do:qe("do",{isLoop:!0,beforeExpr:!0}),_else:qe("else",Gt),_finally:qe("finally"),_for:qe("for",{isLoop:!0}),_function:qe("function",Ft),_if:qe("if"),_return:qe("return",Gt),_switch:qe("switch"),_throw:qe("throw",Gt),_try:qe("try"),_var:qe("var"),_const:qe("const"),_while:qe("while",{isLoop:!0}),_with:qe("with"),_new:qe("new",{beforeExpr:!0,startsExpr:!0}),_this:qe("this",Ft),_super:qe("super",Ft),_class:qe("class",Ft),_extends:qe("extends",Gt),_export:qe("export"),_import:qe("import",Ft),_null:qe("null",Ft),_true:qe("true",Ft),_false:qe("false",Ft),_in:qe("in",{beforeExpr:!0,binop:7}),_instanceof:qe("instanceof",{beforeExpr:!0,binop:7}),_typeof:qe("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:qe("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:qe("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Ht=/\r\n?|\n|\u2028|\u2029/,uw=new RegExp(Ht.source,"g");function yr(e){return e===10||e===13||e===8232||e===8233}function pf(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(yr(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var df=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,It=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ff=Object.prototype,cw=ff.hasOwnProperty,hw=ff.toString,wr=Object.hasOwn||(function(e,t){return cw.call(e,t)}),kc=Array.isArray||(function(e){return hw.call(e)==="[object Array]"}),Sc=Object.create(null);function Ln(e){return Sc[e]||(Sc[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function En(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var pw=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ur=function(t,n){this.line=t,this.column=n};Ur.prototype.offset=function(t){return new Ur(this.line,this.column+t)};var _s=function(t,n,r){this.start=n,this.end=r,t.sourceFile!==null&&(this.source=t.sourceFile)};function gf(e,t){for(var n=1,r=0;;){var i=pf(e,r,t);if(i<0)return new Ur(n,t-r);++n,r=i}}var Ha={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},_c=!1;function dw(e){var t={};for(var n in Ha)t[n]=e&&wr(e,n)?e[n]:Ha[n];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!_c&&typeof console=="object"&&console.warn&&(_c=!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),kc(t.onToken)){var r=t.onToken;t.onToken=function(i){return r.push(i)}}return kc(t.onComment)&&(t.onComment=fw(t,t.onComment)),t}function fw(e,t){return function(n,r,i,s,o,l){var u={type:n?"Block":"Line",value:r,start:i,end:s};e.locations&&(u.loc=new _s(this,o,l)),e.ranges&&(u.range=[i,s]),t.push(u)}}var qr=1,kr=2,sl=4,mf=8,al=16,xf=32,Es=64,vf=128,Qn=256,Xr=512,Is=qr|kr|Qn;function ol(e,t){return kr|(e?sl:0)|(t?mf:0)}var rs=0,ll=1,Cn=2,bf=3,yf=4,wf=5,xt=function(t,n,r){this.options=t=dw(t),this.sourceFile=t.sourceFile,this.keywords=Ln(sw[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var i="";t.allowReserved!==!0&&(i=Qs[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(i+=" await")),this.reservedWords=Ln(i);var s=(i?i+" ":"")+Qs.strict;this.reservedWordsStrict=Ln(s),this.reservedWordsStrictBind=Ln(s+" "+Qs.strictBind),this.input=String(n),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf(`
63
+ `,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Ht).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=O.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(qr),this.regexpState=null,this.privateNameStack=[]},mn={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}};xt.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};mn.inFunction.get=function(){return(this.currentVarScope().flags&kr)>0};mn.inGenerator.get=function(){return(this.currentVarScope().flags&mf)>0};mn.inAsync.get=function(){return(this.currentVarScope().flags&sl)>0};mn.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(Qn|Xr))return!1;if(n&kr)return(n&sl)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};mn.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&Es)>0||this.options.allowSuperOutsideMethod};mn.allowDirectSuper.get=function(){return(this.currentThisScope().flags&vf)>0};mn.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};mn.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(Qn|Xr)||n&kr&&!(n&al))return!0}return!1};mn.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Qn)>0};xt.extend=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];for(var r=this,i=0;i<t.length;i++)r=t[i](r);return r};xt.parse=function(t,n){return new this(n,t).parse()};xt.parseExpressionAt=function(t,n,r){var i=new this(r,t,n);return i.nextToken(),i.parseExpression()};xt.tokenizer=function(t,n){return new this(n,t)};Object.defineProperties(xt.prototype,mn);var Lt=xt.prototype,gw=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Lt.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){It.lastIndex=e,e+=It.exec(this.input)[0].length;var t=gw.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){It.lastIndex=e+t[0].length;var n=It.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===";"||i==="}"||Ht.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(r+1)==="=")}e+=t[0].length,It.lastIndex=e,e+=It.exec(this.input)[0].length,this.input[e]===";"&&e++}};Lt.eat=function(e){return this.type===e?(this.next(),!0):!1};Lt.isContextual=function(e){return this.type===O.name&&this.value===e&&!this.containsEsc};Lt.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Lt.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Lt.canInsertSemicolon=function(){return this.type===O.eof||this.type===O.braceR||Ht.test(this.input.slice(this.lastTokEnd,this.start))};Lt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Lt.semicolon=function(){!this.eat(O.semi)&&!this.insertSemicolon()&&this.unexpected()};Lt.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};Lt.expect=function(e){this.eat(e)||this.unexpected()};Lt.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Cs=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Lt.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")}};Lt.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")};Lt.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")};Lt.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var _e=xt.prototype;_e.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==O.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var s=i[r];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var ul={kind:"loop"},mw={kind:"switch"};_e.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;It.lastIndex=this.pos;var t=It.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(gn(r,!0)){for(var i=n+1;Mn(r=this.input.charCodeAt(i),!0);)++i;if(r===92||r>55295&&r<56320)return!0;var s=this.input.slice(n,i);if(!aw.test(s))return!0}return!1};_e.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;It.lastIndex=this.pos;var e=It.exec(this.input),t=this.pos+e[0].length,n;return!Ht.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(Mn(n=this.input.charCodeAt(t+8))||n>55295&&n<56320))};_e.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;It.lastIndex=this.pos;var n=It.exec(this.input),r=this.pos+n[0].length;if(Ht.test(this.input.slice(this.pos,r)))return!1;if(e){var i=r+5,s;if(this.input.slice(r,i)!=="using"||i===this.input.length||Mn(s=this.input.charCodeAt(i))||s>55295&&s<56320)return!1;It.lastIndex=i;var o=It.exec(this.input);if(o&&Ht.test(this.input.slice(i,i+o[0].length)))return!1}if(t){var l=r+2,u;if(this.input.slice(r,l)==="of"&&(l===this.input.length||!Mn(u=this.input.charCodeAt(l))&&!(u>55295&&u<56320)))return!1}var c=this.input.charCodeAt(r);return gn(c,!0)||c===92};_e.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};_e.isUsing=function(e){return this.isUsingKeyword(!1,e)};_e.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),s;switch(this.isLet(e)&&(r=O._var,s="let"),r){case O._break:case O._continue:return this.parseBreakContinueStatement(i,r.keyword);case O._debugger:return this.parseDebuggerStatement(i);case O._do:return this.parseDoStatement(i);case O._for:return this.parseForStatement(i);case O._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case O._class:return e&&this.unexpected(),this.parseClass(i,!0);case O._if:return this.parseIfStatement(i);case O._return:return this.parseReturnStatement(i);case O._switch:return this.parseSwitchStatement(i);case O._throw:return this.parseThrowStatement(i);case O._try:return this.parseTryStatement(i);case O._const:case O._var:return s=s||this.value,e&&s!=="var"&&this.unexpected(),this.parseVarStatement(i,s);case O._while:return this.parseWhileStatement(i);case O._with:return this.parseWithStatement(i);case O.braceL:return this.parseBlock(!0,i);case O.semi:return this.parseEmptyStatement(i);case O._export:case O._import:if(this.options.ecmaVersion>10&&r===O._import){It.lastIndex=this.pos;var o=It.exec(this.input),l=this.pos+o[0].length,u=this.input.charCodeAt(l);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'")),r===O._import?this.parseImport(i):this.parseExport(i,n);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 r===O.name&&h.type==="Identifier"&&this.eat(O.colon)?this.parseLabeledStatement(i,d,h,e):this.parseExpressionStatement(i,h)}};_e.parseBreakContinueStatement=function(e,t){var n=t==="break";this.next(),this.eat(O.semi)||this.insertSemicolon()?e.label=null:this.type!==O.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind==="loop")||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")};_e.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};_e.parseDoStatement=function(e){return this.next(),this.labels.push(ul),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(O._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(O.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};_e.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ul),this.enterScope(0),this.expect(O.parenL),this.type===O.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===O._var||this.type===O._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),this.parseForAfterInit(e,r,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.next(),this.parseVar(u,!0,l),this.finishNode(u,"VariableDeclaration"),this.parseForAfterInit(e,u,t)}var c=this.containsEsc,d=new Cs,h=this.start,g=t>-1?this.parseExprSubscripts(d,"await"):this.parseExpression(!0,d);return this.type===O._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===O._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(g.start===h&&!c&&g.type==="Identifier"&&g.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),s&&o&&this.raise(g.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(g,!1,d),this.checkLValPattern(g),this.parseForIn(e,g)):(this.checkExpressionErrors(d,!0),t>-1&&this.unexpected(t),this.parseFor(e,g))};_e.parseForAfterInit=function(e,t,n){return(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===O._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))};_e.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Mr|(n?0:$a),!1,t)};_e.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(O._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};_e.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(O.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};_e.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(O.braceL),this.labels.push(mw),this.enterScope(0);for(var t,n=!1;this.type!==O.braceR;)if(this.type===O._case||this.type===O._default){var r=this.type===O._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(O.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")};_e.parseThrowStatement=function(e){return this.next(),Ht.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 xw=[];_e.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?xf:0),this.checkLValPattern(e,t?yf:Cn),this.expect(O.parenR),e};_e.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===O._catch){var t=this.startNode();this.next(),this.eat(O.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(O._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};_e.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")};_e.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(ul),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};_e.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")};_e.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};_e.parseLabeledStatement=function(e,t,n,r){for(var i=0,s=this.labels;i<s.length;i+=1){var o=s[i];o.name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var l=this.type.isLoop?"loop":this.type===O._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=l;else break}return this.labels.push({name:t,kind:l,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")};_e.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};_e.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(O.braceL),e&&this.enterScope(0);this.type!==O.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};_e.parseFor=function(e,t){return e.init=t,this.expect(O.semi),e.test=this.type===O.semi?null:this.parseExpression(),this.expect(O.semi),e.update=this.type===O.parenR?null:this.parseExpression(),this.expect(O.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};_e.parseForIn=function(e,t){var n=this.type===O._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(O.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")};_e.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(O.eq)?i.init=this.parseMaybeAssign(t):!r&&n==="const"&&!(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!r&&(n==="using"||n==="await using")&&this.options.ecmaVersion>=17&&this.type!==O._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):!r&&i.id.type!=="Identifier"&&!(t&&(this.type===O._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(O.comma))break}return e};_e.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?ll:Cn,!1)};var Mr=1,$a=2,kf=4;_e.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===O.star&&t&$a&&this.unexpected(),e.generator=this.eat(O.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Mr&&(e.id=t&kf&&this.type!==O.name?null:this.parseIdent(),e.id&&!(t&$a)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?ll:Cn:bf));var s=this.yieldPos,o=this.awaitPos,l=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ol(e.async,e.generator)),t&Mr||(e.id=this.type===O.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=l,this.finishNode(e,t&Mr?"FunctionDeclaration":"FunctionExpression")};_e.parseFunctionParams=function(e){this.expect(O.parenL),e.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};_e.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),s=!1;for(i.body=[],this.expect(O.braceL);this.type!==O.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.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"&&vw(r,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};_e.parseClassElement=function(e){if(this.eat(O.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,s=!1,o="method",l=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(O.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===O.star?l=!0:r="static"}if(n.static=l,!r&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===O.star)&&!this.canInsertSemicolon()?s=!0:r="async"),!r&&(t>=9||!s)&&this.eat(O.star)&&(i=!0),!r&&!s&&!i){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=u:r=u)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===O.parenL||o!=="method"||i||s){var c=!n.static&&is(n,"constructor"),d=c&&e;c&&o!=="method"&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=c?"constructor":o,this.parseClassMethod(n,i,s,d)}else this.parseClassField(n);return n};_e.isClassElementNameStart=function(){return this.type===O.name||this.type===O.privateId||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword};_e.parseClassElementName=function(e){this.type===O.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)};_e.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind==="constructor"?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&is(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,n,r);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")};_e.parseClassField=function(e){return is(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&is(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(O.eq)?(this.enterScope(Xr|Es),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};_e.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Qn|Es);this.type!==O.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};_e.parseClassId=function(e,t){this.type===O.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Cn,!1)):(t===!0&&this.unexpected(),e.id=null)};_e.parseClassSuper=function(e){e.superClass=this.eat(O._extends)?this.parseExprSubscripts(null,!1):null};_e.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};_e.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],s=0;s<n.length;++s){var o=n[s];wr(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}};function vw(e,t){var n=t.key.name,r=e[n],i="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(i=(t.static?"s":"i")+t.kind),r==="iget"&&i==="iset"||r==="iset"&&i==="iget"||r==="sget"&&i==="sset"||r==="sset"&&i==="sget"?(e[n]="true",!1):r?!0:(e[n]=i,!1)}function is(e,t){var n=e.computed,r=e.key;return!n&&(r.type==="Identifier"&&r.name===t||r.type==="Literal"&&r.value===t)}_e.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!==O.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};_e.parseExport=function(e,t){if(this.next(),this.eat(O.star))return this.parseExportAllDeclaration(e,t);if(this.eat(O._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!==O.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,r=e.specifiers;n<r.length;n+=1){var i=r[n];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")};_e.parseExportDeclaration=function(e){return this.parseStatement(null)};_e.parseExportDefaultDeclaration=function(){var e;if(this.type===O._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,Mr|kf,!1,e)}else if(this.type===O._class){var n=this.startNode();return this.parseClass(n,"nullableID")}else{var r=this.parseMaybeAssign();return this.semicolon(),r}};_e.checkExport=function(e,t,n){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),wr(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)};_e.checkPatternExport=function(e,t){var n=t.type;if(n==="Identifier")this.checkExport(e,t,t.start);else if(n==="ObjectPattern")for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];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)};_e.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}};_e.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};_e.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")};_e.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(O.braceL);!this.eat(O.braceR);){if(n)n=!1;else if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break;t.push(this.parseExportSpecifier(e))}return t};_e.parseImport=function(e){return this.next(),this.type===O.string?(e.specifiers=xw,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===O.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};_e.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")};_e.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Cn),this.finishNode(e,"ImportDefaultSpecifier")};_e.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")};_e.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===O.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(O.comma)))return e;if(this.type===O.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(O.braceL);!this.eat(O.braceR);){if(t)t=!1;else if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break;e.push(this.parseImportSpecifier())}return e};_e.parseWithClause=function(){var e=[];if(!this.eat(O._with))return e;this.expect(O.braceL);for(var t={},n=!0;!this.eat(O.braceR);){if(n)n=!1;else if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break;var r=this.parseImportAttribute(),i=r.key.type==="Identifier"?r.key.name:r.key.value;wr(t,i)&&this.raiseRecoverable(r.key.start,"Duplicate attribute key '"+i+"'"),t[i]=!0,e.push(r)}return e};_e.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===O.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(O.colon),this.type!==O.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};_e.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===O.string){var e=this.parseLiteral(this.value);return pw.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};_e.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)};_e.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 tn=xt.prototype;tn.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 r=0,i=e.properties;r<i.length;r+=1){var s=i[r];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};tn.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,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};tn.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};tn.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==O.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};tn.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case O.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(O.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case O.braceL:return this.parseObj(!0)}return this.parseIdent()};tn.parseBindingList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(O.comma),t&&this.type===O.comma)i.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===O.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else i.push(this.parseAssignableListItem(r))}return i};tn.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};tn.parseBindingListItem=function(e){return e};tn.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(O.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")};tn.checkLValSimple=function(e,t,n){t===void 0&&(t=rs);var r=t!==rs;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(t===Cn&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(wr(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),t!==wf&&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":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}};tn.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=rs),e.type){case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];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)}};tn.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=rs),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 rn=function(t,n,r,i,s){this.token=t,this.isExpr=!!n,this.preserveSpace=!!r,this.override=i,this.generator=!!s},ht={b_stat:new rn("{",!1),b_expr:new rn("{",!0),b_tmpl:new rn("${",!1),p_stat:new rn("(",!1),p_expr:new rn("(",!0),q_tmpl:new rn("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new rn("function",!1),f_expr:new rn("function",!0),f_expr_gen:new rn("function",!0,!1,null,!0),f_gen:new rn("function",!1,!1,null,!0)},Sr=xt.prototype;Sr.initialContext=function(){return[ht.b_stat]};Sr.curContext=function(){return this.context[this.context.length-1]};Sr.braceIsBlock=function(e){var t=this.curContext();return t===ht.f_expr||t===ht.f_stat?!0:e===O.colon&&(t===ht.b_stat||t===ht.b_expr)?!t.isExpr:e===O._return||e===O.name&&this.exprAllowed?Ht.test(this.input.slice(this.lastTokEnd,this.start)):e===O._else||e===O.semi||e===O.eof||e===O.parenR||e===O.arrow?!0:e===O.braceL?t===ht.b_stat:e===O._var||e===O._const||e===O.name?!1:!this.exprAllowed};Sr.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};Sr.updateContext=function(e){var t,n=this.type;n.keyword&&e===O.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr};Sr.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};O.parenR.updateContext=O.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===ht.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};O.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ht.b_stat:ht.b_expr),this.exprAllowed=!0};O.dollarBraceL.updateContext=function(){this.context.push(ht.b_tmpl),this.exprAllowed=!0};O.parenL.updateContext=function(e){var t=e===O._if||e===O._for||e===O._with||e===O._while;this.context.push(t?ht.p_stat:ht.p_expr),this.exprAllowed=!0};O.incDec.updateContext=function(){};O._function.updateContext=O._class.updateContext=function(e){e.beforeExpr&&e!==O._else&&!(e===O.semi&&this.curContext()!==ht.p_stat)&&!(e===O._return&&Ht.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===O.colon||e===O.braceL)&&this.curContext()===ht.b_stat)?this.context.push(ht.f_expr):this.context.push(ht.f_stat),this.exprAllowed=!1};O.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};O.backQuote.updateContext=function(){this.curContext()===ht.q_tmpl?this.context.pop():this.context.push(ht.q_tmpl),this.exprAllowed=!1};O.star.updateContext=function(e){if(e===O._function){var t=this.context.length-1;this.context[t]===ht.f_expr?this.context[t]=ht.f_expr_gen:this.context[t]=ht.f_gen}this.exprAllowed=!0};O.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==O.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Le=xt.prototype;Le.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case"Identifier":i=r.name;break;case"Literal":i=String(r.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6){i==="__proto__"&&s==="init"&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),t.proto=!0);return}i="$"+i;var o=t[i];if(o){var l;s==="init"?l=this.strict&&o.init||o.get||o.set:l=o.init||o[s],l&&this.raiseRecoverable(r.start,"Redefinition of property")}else o=t[i]={init:!1,get:!1,set:!1};o[s]=!0}};Le.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===O.comma){var s=this.startNodeAt(n,r);for(s.expressions=[i];this.eat(O.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return i};Le.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,s=-1,o=-1;t?(i=t.parenthesizedAssign,s=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Cs,r=!0);var l=this.start,u=this.startLoc;(this.type===O.parenL||this.type===O.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var c=this.parseMaybeConditional(e,t);if(n&&(c=n.call(this,c,l,u)),this.type.isAssign){var d=this.startNodeAt(l,u);return d.operator=this.value,this.type===O.eq&&(c=this.toAssignable(c,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===O.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 r&&this.checkExpressionErrors(t,!0);return i>-1&&(t.parenthesizedAssign=i),s>-1&&(t.trailingComma=s),c};Le.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(O.question)){var s=this.startNodeAt(n,r);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(O.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return i};Le.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,n,r,-1,e)};Le.parseExprOp=function(e,t,n,r,i){var s=this.type.binop;if(s!=null&&(!i||this.type!==O._in)&&s>r){var o=this.type===O.logicalOR||this.type===O.logicalAND,l=this.type===O.coalesce;l&&(s=O.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,s,i),g=this.buildBinary(t,n,e,h,u,o||l);return(o&&this.type===O.coalesce||l&&(this.type===O.logicalOR||this.type===O.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(g,t,n,r,i)}return e};Le.buildBinary=function(e,t,n,r,i,s){r.type==="PrivateIdentifier"&&this.raise(r.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")};Le.parseMaybeUnary=function(e,t,n,r){var i=this.start,s=this.startLoc,o;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var l=this.startNode(),u=this.type===O.incDec;l.operator=this.value,l.prefix=!0,this.next(),l.argument=this.parseMaybeUnary(null,!0,u,r),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(l.argument):this.strict&&l.operator==="delete"&&Sf(l.argument)?this.raiseRecoverable(l.start,"Deleting local variable in strict mode"):l.operator==="delete"&&Wa(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===O.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==O._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(i,s);c.operator=this.value,c.prefix=!1,c.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(c,"UpdateExpression")}}if(!n&&this.eat(O.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,s,o,this.parseMaybeUnary(null,!1,!1,r),"**",!1);else return o};function Sf(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Sf(e.expression)}function Wa(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&Wa(e.expression)||e.type==="ParenthesizedExpression"&&Wa(e.expression)}Le.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if(i.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return i;var s=this.parseSubscripts(i,n,r,!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};Le.parseSubscripts=function(e,t,n,r,i){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,r,s,o,i);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}};Le.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(O.arrow)};Le.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)};Le.parseSubscript=function(e,t,n,r,i,s,o){var l=this.options.ecmaVersion>=11,u=l&&this.eat(O.questionDot);r&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(O.bracketL);if(c||u&&this.type!==O.parenL&&this.type!==O.backQuote||this.eat(O.dot)){var d=this.startNodeAt(t,n);d.object=e,c?(d.property=this.parseExpression(),this.expect(O.bracketR)):this.type===O.privateId&&e.type!=="Super"?d.property=this.parsePrivateIdent():d.property=this.parseIdent(this.options.allowReserved!=="never"),d.computed=!!c,l&&(d.optional=u),e=this.finishNode(d,"MemberExpression")}else if(!r&&this.eat(O.parenL)){var h=new Cs,g=this.yieldPos,m=this.awaitPos,w=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var S=this.parseExprList(O.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=g,this.awaitPos=m,this.awaitIdentPos=w,this.parseSubscriptAsyncArrow(t,n,S,o);this.checkExpressionErrors(h,!0),this.yieldPos=g||this.yieldPos,this.awaitPos=m||this.awaitPos,this.awaitIdentPos=w||this.awaitIdentPos;var y=this.startNodeAt(t,n);y.callee=e,y.arguments=S,l&&(y.optional=u),e=this.finishNode(y,"CallExpression")}else if(this.type===O.backQuote){(u||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var k=this.startNodeAt(t,n);k.tag=e,k.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(k,"TaggedTemplateExpression")}return e};Le.parseExprAtom=function(e,t,n){this.type===O.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case O._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type===O.parenL&&!this.allowDirectSuper&&this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==O.dot&&this.type!==O.bracketL&&this.type!==O.parenL&&this.unexpected(),this.finishNode(r,"Super");case O._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case O.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(O._function))return this.overrideContext(ht.f_expr),this.parseFunction(this.startNodeAt(s,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(O.arrow))return this.parseArrowExpression(this.startNodeAt(s,o),[u],!1,t);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===O.name&&!l&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return u=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(O.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,o),[u],!0,t)}return u;case O.regexp:var c=this.value;return r=this.parseLiteral(c.value),r.regex={pattern:c.pattern,flags:c.flags},r;case O.num:case O.string:return this.parseLiteral(this.value);case O._null:case O._true:case O._false:return r=this.startNode(),r.value=this.type===O._null?null:this.type===O._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case O.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 O.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(O.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case O.braceL:return this.overrideContext(ht.b_expr),this.parseObj(!1,e);case O._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case O._class:return this.parseClass(this.startNode(),!1);case O._new:return this.parseNew();case O.backQuote:return this.parseTemplate();case O._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}};Le.parseExprAtomDefault=function(){this.unexpected()};Le.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===O.parenL&&!e)return this.parseDynamicImport(t);if(this.type===O.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()};Le.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(O.parenR)?e.options=null:(this.expect(O.comma),this.afterTrailingComma(O.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(O.parenR)||(this.expect(O.comma),this.afterTrailingComma(O.parenR)||this.unexpected())));else if(!this.eat(O.parenR)){var t=this.start;this.eat(O.comma)&&this.eat(O.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};Le.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")};Le.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")};Le.parseParenExpression=function(){this.expect(O.parenL);var e=this.parseExpression();return this.expect(O.parenR),e};Le.shouldParseArrow=function(e){return!this.canInsertSemicolon()};Le.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,l=this.startLoc,u=[],c=!0,d=!1,h=new Cs,g=this.yieldPos,m=this.awaitPos,w;for(this.yieldPos=0,this.awaitPos=0;this.type!==O.parenR;)if(c?c=!1:this.expect(O.comma),s&&this.afterTrailingComma(O.parenR,!0)){d=!0;break}else if(this.type===O.ellipsis){w=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else u.push(this.parseMaybeAssign(!1,h,this.parseParenItem));var S=this.lastTokEnd,y=this.lastTokEndLoc;if(this.expect(O.parenR),e&&this.shouldParseArrow(u)&&this.eat(O.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=g,this.awaitPos=m,this.parseParenArrowList(n,r,u,t);(!u.length||d)&&this.unexpected(this.lastTokStart),w&&this.unexpected(w),this.checkExpressionErrors(h,!0),this.yieldPos=g||this.yieldPos,this.awaitPos=m||this.awaitPos,u.length>1?(i=this.startNodeAt(o,l),i.expressions=u,this.finishNodeAt(i,"SequenceExpression",S,y)):i=u[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var k=this.startNodeAt(n,r);return k.expression=i,this.finishNode(k,"ParenthesizedExpression")}else return i};Le.parseParenItem=function(e){return e};Le.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var bw=[];Le.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===O.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 r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(O.parenL)?e.arguments=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1):e.arguments=bw,this.finishNode(e,"NewExpression")};Le.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===O.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,`
64
64
  `),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
65
- `),cooked:this.value},this.next(),n.tail=this.type===O.backQuote,this.finishNode(n,"TemplateElement")};Le.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 r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===O.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(O.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(O.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")};Le.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===O.name||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===O.star)&&!Ht.test(this.input.slice(this.lastTokEnd,this.start))};Le.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(O.braceR);){if(r)r=!1;else if(this.expect(O.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(O.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,i,t),n.properties.push(s)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")};Le.parseProperty=function(e,t){var n=this.startNode(),r,i,s,o;if(this.options.ecmaVersion>=9&&this.eat(O.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===O.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===O.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||(r=this.eat(O.star)));var l=this.containsEsc;return this.parsePropertyName(n),!e&&!l&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(O.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,s,o,t,l),this.finishNode(n,"Property")};Le.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 r=e.value.start;e.kind==="get"?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"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")};Le.parsePropertyValue=function(e,t,n,r,i,s,o,l){(n||r)&&this.type===O.colon&&this.unexpected(),this.eat(O.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===O.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,r),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!==O.comma&&this.type!==O.braceR&&this.type!==O.eq?((n||r)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key)):this.type===O.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};Le.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(O.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(O.bracketR),e.key;e.computed=!1}return e.key=this.type===O.num||this.type===O.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};Le.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};Le.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ol(t,r.generator)|Es|(n?vf:0)),this.expect(O.parenL),r.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(r,"FunctionExpression")};Le.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(ol(n,!1)|al),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,r),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")};Le.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==O.braceL,s=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),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,wf),e.body=this.parseBlock(!1,void 0,o&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()};Le.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){var r=n[t];if(r.type!=="Identifier")return!1}return!0};Le.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var s=i[r];this.checkLValInnerPattern(s,ll,t?null:n)}};Le.parseExprList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(O.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===O.comma?o=null:this.type===O.ellipsis?(o=this.parseSpread(r),r&&this.type===O.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i};Le.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;if(this.inGenerator&&r==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&r==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Is)&&r==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(r==="arguments"||r==="await")&&this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf("\\")!==-1)){var i=this.strict?this.reservedWordsStrict:this.reservedWords;i.test(r)&&(!this.inAsync&&r==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))}};Le.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};Le.parseIdentNode=function(){var e=this.startNode();return this.type===O.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=O.name):this.unexpected(),e};Le.parsePrivateIdent=function(){var e=this.startNode();return this.type===O.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};Le.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===O.semi||this.canInsertSemicolon()||this.type!==O.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(O.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};Le.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 ss=xt.prototype;ss.raise=function(e,t){var n=gf(this.input,e);t+=" ("+n.line+":"+n.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r};ss.raiseRecoverable=ss.raise;ss.curPosition=function(){if(this.options.locations)return new Ur(this.curLine,this.pos-this.lineStart)};var zn=xt.prototype,bw=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};zn.enterScope=function(e){this.scopeStack.push(new bw(e))};zn.exitScope=function(){this.scopeStack.pop()};zn.treatFunctionsAsVarInScope=function(e){return e.flags&kr||!this.inModule&&e.flags&qr};zn.declareName=function(e,t,n){var r=!1;if(t===Cn){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&qr&&delete this.undefinedExports[e]}else if(t===yf){var s=this.currentScope();s.lexical.push(e)}else if(t===bf){var o=this.currentScope();this.treatFunctionsAsVar?r=o.lexical.indexOf(e)>-1:r=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&xf&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){r=!0;break}if(u.var.push(e),this.inModule&&u.flags&qr&&delete this.undefinedExports[e],u.flags&Is)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")};zn.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};zn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};zn.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Is|Xr|Qn))return t}};zn.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Is|Xr|Qn)&&!(t.flags&al))return t}};var As=function(t,n,r){this.type="",this.start=n,this.end=0,t.options.locations&&(this.loc=new _s(t,r)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[n,0])},Zr=xt.prototype;Zr.startNode=function(){return new As(this,this.start,this.startLoc)};Zr.startNodeAt=function(e,t){return new As(this,e,t)};function _f(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}Zr.finishNode=function(e,t){return _f.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Zr.finishNodeAt=function(e,t,n,r){return _f.call(this,e,t,n,r)};Zr.copyNode=function(e){var t=new As(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var yw="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",Ef="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",If=Ef+" Extended_Pictographic",Cf=If,Af=Cf+" EBase EComp EMod EPres ExtPict",Tf=Af,ww=Tf,kw={9:Ef,10:If,11:Cf,12:Af,13:Tf,14:ww},Sw="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",_w={9:"",10:"",11:"",12:"",13:"",14:Sw},Ec="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",Nf="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",Of=Nf+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Pf=Of+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Rf=Pf+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Df=Rf+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ew=Df+" "+yw,Iw={9:Nf,10:Of,11:Pf,12:Rf,13:Df,14:Ew},Lf={};function Cw(e){var t=Lf[e]={binary:Ln(kw[e]+" "+Ec),binaryOfStrings:Ln(_w[e]),nonBinary:{General_Category:Ln(Ec),Script:Ln(Iw[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 Zs=0,Ic=[9,10,11,12,13,14];Zs<Ic.length;Zs+=1){var Aw=Ic[Zs];Cw(Aw)}var Se=xt.prototype,as=function(t,n){this.parent=t,this.base=n||this};as.prototype.separatedFrom=function(t){for(var n=this;n;n=n.parent)for(var r=t;r;r=r.parent)if(n.base===r.base&&n!==r)return!0;return!1};as.prototype.sibling=function(){return new as(this.parent,this.base)};var xn=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=Lf[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};xn.prototype.reset=function(t,n,r){var i=r.indexOf("v")!==-1,s=r.indexOf("u")!==-1;this.start=t|0,this.source=n+"",this.flags=r,i&&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)};xn.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};xn.prototype.at=function(t,n){n===void 0&&(n=!1);var r=this.source,i=r.length;if(t>=i)return-1;var s=r.charCodeAt(t);if(!(n||this.switchU)||s<=55295||s>=57344||t+1>=i)return s;var o=r.charCodeAt(t+1);return o>=56320&&o<=57343?(s<<10)+o-56613888:s};xn.prototype.nextIndex=function(t,n){n===void 0&&(n=!1);var r=this.source,i=r.length;if(t>=i)return i;var s=r.charCodeAt(t),o;return!(n||this.switchU)||s<=55295||s>=57344||t+1>=i||(o=r.charCodeAt(t+1))<56320||o>57343?t+1:t+2};xn.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};xn.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};xn.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};xn.prototype.eat=function(t,n){return n===void 0&&(n=!1),this.current(n)===t?(this.advance(n),!0):!1};xn.prototype.eatChars=function(t,n){n===void 0&&(n=!1);for(var r=this.pos,i=0,s=t;i<s.length;i+=1){var o=s[i],l=this.at(r,n);if(l===-1||l!==o)return!1;r=this.nextIndex(r,n)}return this.pos=r,!0};Se.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,i=!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"&&(r=!0),o==="v"&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,"Invalid regular expression flag")};function Tw(e){for(var t in e)return!0;return!1}Se.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Tw(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};Se.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 r=n[t];e.groupNames[r]||e.raise("Invalid named capture referenced")}};Se.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new as(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")};Se.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};Se.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};Se.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};Se.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};Se.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};Se.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1};Se.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)};Se.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};Se.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),r=e.eat(45);if(n||r){for(var i=0;i<n.length;i++){var s=n.charAt(i);n.indexOf(s,i+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(r){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};Se.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};Se.regexp_eatModifiers=function(e){for(var t="",n=0;(n=e.current())!==-1&&Nw(n);)t+=En(n),e.advance();return t};function Nw(e){return e===105||e===109||e===115}Se.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)};Se.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};Se.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Vf(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Vf(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}Se.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!Vf(n);)e.advance();return e.pos!==t};Se.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};Se.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 r=0,i=n;r<i.length;r+=1){var s=i[r];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}};Se.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};Se.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=En(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=En(e.lastIntValue);return!0}return!1};Se.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Ow(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Ow(e){return gn(e,!0)||e===36||e===95}Se.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Pw(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Pw(e){return Mn(e,!0)||e===36||e===95||e===8204||e===8205}Se.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)};Se.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};Se.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};Se.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)};Se.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};Se.regexp_eatZero=function(e){return e.current()===48&&!Ts(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};Se.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};Se.regexp_eatControlLetter=function(e){var t=e.current();return Mf(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Mf(e){return e>=65&&e<=90||e>=97&&e<=122}Se.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=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=(i-55296)*1024+(o-56320)+65536,!0}e.pos=s,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Rw(e.lastIntValue))return!0;r&&e.raise("Invalid unicode escape"),e.pos=n}return!1};function Rw(e){return e>=0&&e<=1114111}Se.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};Se.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 jf=0,In=1,en=2;Se.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Dw(t))return e.lastIntValue=-1,e.advance(),In;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var r;if(e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&r===en&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return jf};function Dw(e){return e===100||e===68||e===115||e===83||e===119||e===87}Se.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 r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),In}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return jf};Se.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){wr(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")};Se.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return In;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return en;e.raise("Invalid property name")};Se.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Ff(t=e.current());)e.lastStringValue+=En(t),e.advance();return e.lastStringValue!==""};function Ff(e){return Mf(e)||e===95}Se.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Lw(t=e.current());)e.lastStringValue+=En(t),e.advance();return e.lastStringValue!==""};function Lw(e){return Ff(e)||Ts(e)}Se.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};Se.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===en&&e.raise("Negated character class may contain strings"),!0}return!1};Se.regexp_classContents=function(e){return e.current()===93?In:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),In)};Se.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")}}};Se.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||Hf(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return r!==93?(e.lastIntValue=r,e.advance(),!0):!1};Se.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)};Se.regexp_classSetExpression=function(e){var t=In,n;if(!this.regexp_eatClassSetRange(e))if(n=this.regexp_eatClassSetOperand(e)){n===en&&(t=en);for(var r=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))){n!==en&&(t=In);continue}e.raise("Invalid character in character class")}if(r!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==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===en&&(t=en)}};Se.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 r=e.lastIntValue;return n!==-1&&r!==-1&&n>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};Se.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?In:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};Se.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&r===en&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null};Se.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};Se.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===en&&(t=en);return t};Se.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?In:en};Se.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()&&Vw(n)||Mw(n)?!1:(e.advance(),e.lastIntValue=n,!0)};function Vw(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 Mw(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}Se.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return jw(t)?(e.lastIntValue=t,e.advance(),!0):!1};function jw(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}Se.regexp_eatClassControlLetter=function(e){var t=e.current();return Ts(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};Se.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};Se.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Ts(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function Ts(e){return e>=48&&e<=57}Se.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;zf(n=e.current());)e.lastIntValue=16*e.lastIntValue+Bf(n),e.advance();return e.pos!==t};function zf(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Bf(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}Se.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};Se.regexp_eatOctalDigit=function(e){var t=e.current();return Hf(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Hf(e){return e>=48&&e<=55}Se.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!zf(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Bf(i),e.advance()}return!0};var cl=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new _s(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Ue=xt.prototype;Ue.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 cl(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};Ue.getToken=function(){return this.next(),new cl(this)};typeof Symbol<"u"&&(Ue[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===O.eof,value:t}}}});Ue.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(O.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};Ue.readToken=function(e){return gn(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};Ue.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};Ue.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 r=void 0,i=t;(r=pf(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())};Ue.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!yr(r);)r=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())};Ue.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&&df.test(String.fromCharCode(e)))++this.pos;else break e}}};Ue.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)};Ue.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(O.ellipsis)):(++this.pos,this.finishToken(O.dot))};Ue.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(O.assign,2):this.finishOp(O.slash,1)};Ue.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?O.star:O.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=O.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(O.assign,n+1):this.finishOp(r,n)};Ue.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(O.assign,3)}return this.finishOp(e===124?O.logicalOR:O.logicalAND,2)}return t===61?this.finishOp(O.assign,2):this.finishOp(e===124?O.bitwiseOR:O.bitwiseAND,1)};Ue.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(O.assign,2):this.finishOp(O.bitwiseXOR,1)};Ue.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||Ht.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(O.incDec,2):t===61?this.finishOp(O.assign,2):this.finishOp(O.plusMin,1)};Ue.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(O.assign,n+1):this.finishOp(O.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(O.relational,n))};Ue.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(O.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(O.arrow)):this.finishOp(e===61?O.eq:O.prefix,1)};Ue.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(O.questionDot,2)}if(t===63){if(e>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(O.assign,3)}return this.finishOp(O.coalesce,2)}}return this.finishOp(O.question,1)};Ue.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),gn(t,!0)||t===92))return this.finishToken(O.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+En(t)+"'")};Ue.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(O.parenL);case 41:return++this.pos,this.finishToken(O.parenR);case 59:return++this.pos,this.finishToken(O.semi);case 44:return++this.pos,this.finishToken(O.comma);case 91:return++this.pos,this.finishToken(O.bracketL);case 93:return++this.pos,this.finishToken(O.bracketR);case 123:return++this.pos,this.finishToken(O.braceL);case 125:return++this.pos,this.finishToken(O.braceR);case 58:return++this.pos,this.finishToken(O.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(O.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(O.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+En(e)+"'")};Ue.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)};Ue.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Ht.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if(r==="[")t=!0;else if(r==="]"&&t)t=!1;else if(r==="/"&&!t)break;e=r==="\\"}++this.pos}var i=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 xn(this));l.reset(n,i,o),this.validateRegExpFlags(l),this.validateRegExpPattern(l);var u=null;try{u=new RegExp(i,o)}catch{}return this.finishToken(O.regexp,{pattern:i,flags:o,value:u})};Ue.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,s=this.pos,o=0,l=0,u=0,c=t??1/0;u<c;++u,++this.pos){var d=this.input.charCodeAt(this.pos),h=void 0;if(r&&d===95){i&&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=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;l=d,o=o*e+h}return r&&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 Fw(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function $f(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}Ue.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=$f(this.input.slice(t,this.pos)),++this.pos):gn(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(O.num,n)};Ue.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 r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=$f(this.input.slice(t,this.pos));return++this.pos,gn(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(O.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!n&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),gn(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=Fw(this.input.slice(t,this.pos),n);return this.finishToken(O.num,s)};Ue.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};Ue.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(yr(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(O.string,t)};var Wf={};Ue.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Wf)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};Ue.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Wf;this.raise(e,t)};Ue.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===O.template||this.type===O.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(O.dollarBraceL)):(++this.pos,this.finishToken(O.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(O.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(yr(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+=`
65
+ `),cooked:this.value},this.next(),n.tail=this.type===O.backQuote,this.finishNode(n,"TemplateElement")};Le.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 r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===O.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(O.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(O.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")};Le.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===O.name||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===O.star)&&!Ht.test(this.input.slice(this.lastTokEnd,this.start))};Le.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(O.braceR);){if(r)r=!1;else if(this.expect(O.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(O.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,i,t),n.properties.push(s)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")};Le.parseProperty=function(e,t){var n=this.startNode(),r,i,s,o;if(this.options.ecmaVersion>=9&&this.eat(O.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===O.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===O.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||(r=this.eat(O.star)));var l=this.containsEsc;return this.parsePropertyName(n),!e&&!l&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(O.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,s,o,t,l),this.finishNode(n,"Property")};Le.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 r=e.value.start;e.kind==="get"?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"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")};Le.parsePropertyValue=function(e,t,n,r,i,s,o,l){(n||r)&&this.type===O.colon&&this.unexpected(),this.eat(O.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===O.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,r),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!==O.comma&&this.type!==O.braceR&&this.type!==O.eq?((n||r)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key)):this.type===O.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};Le.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(O.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(O.bracketR),e.key;e.computed=!1}return e.key=this.type===O.num||this.type===O.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};Le.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};Le.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ol(t,r.generator)|Es|(n?vf:0)),this.expect(O.parenL),r.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(r,"FunctionExpression")};Le.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(ol(n,!1)|al),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,r),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")};Le.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==O.braceL,s=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),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,wf),e.body=this.parseBlock(!1,void 0,o&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()};Le.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){var r=n[t];if(r.type!=="Identifier")return!1}return!0};Le.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var s=i[r];this.checkLValInnerPattern(s,ll,t?null:n)}};Le.parseExprList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(O.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===O.comma?o=null:this.type===O.ellipsis?(o=this.parseSpread(r),r&&this.type===O.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i};Le.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;if(this.inGenerator&&r==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&r==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Is)&&r==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(r==="arguments"||r==="await")&&this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf("\\")!==-1)){var i=this.strict?this.reservedWordsStrict:this.reservedWords;i.test(r)&&(!this.inAsync&&r==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))}};Le.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};Le.parseIdentNode=function(){var e=this.startNode();return this.type===O.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=O.name):this.unexpected(),e};Le.parsePrivateIdent=function(){var e=this.startNode();return this.type===O.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};Le.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===O.semi||this.canInsertSemicolon()||this.type!==O.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(O.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};Le.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 ss=xt.prototype;ss.raise=function(e,t){var n=gf(this.input,e);t+=" ("+n.line+":"+n.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r};ss.raiseRecoverable=ss.raise;ss.curPosition=function(){if(this.options.locations)return new Ur(this.curLine,this.pos-this.lineStart)};var zn=xt.prototype,yw=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};zn.enterScope=function(e){this.scopeStack.push(new yw(e))};zn.exitScope=function(){this.scopeStack.pop()};zn.treatFunctionsAsVarInScope=function(e){return e.flags&kr||!this.inModule&&e.flags&qr};zn.declareName=function(e,t,n){var r=!1;if(t===Cn){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&qr&&delete this.undefinedExports[e]}else if(t===yf){var s=this.currentScope();s.lexical.push(e)}else if(t===bf){var o=this.currentScope();this.treatFunctionsAsVar?r=o.lexical.indexOf(e)>-1:r=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&xf&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){r=!0;break}if(u.var.push(e),this.inModule&&u.flags&qr&&delete this.undefinedExports[e],u.flags&Is)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")};zn.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};zn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};zn.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Is|Xr|Qn))return t}};zn.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Is|Xr|Qn)&&!(t.flags&al))return t}};var As=function(t,n,r){this.type="",this.start=n,this.end=0,t.options.locations&&(this.loc=new _s(t,r)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[n,0])},Zr=xt.prototype;Zr.startNode=function(){return new As(this,this.start,this.startLoc)};Zr.startNodeAt=function(e,t){return new As(this,e,t)};function _f(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}Zr.finishNode=function(e,t){return _f.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Zr.finishNodeAt=function(e,t,n,r){return _f.call(this,e,t,n,r)};Zr.copyNode=function(e){var t=new As(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var ww="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",Ef="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",If=Ef+" Extended_Pictographic",Cf=If,Af=Cf+" EBase EComp EMod EPres ExtPict",Tf=Af,kw=Tf,Sw={9:Ef,10:If,11:Cf,12:Af,13:Tf,14:kw},_w="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Ew={9:"",10:"",11:"",12:"",13:"",14:_w},Ec="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",Nf="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",Of=Nf+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Pf=Of+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Rf=Pf+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Df=Rf+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Iw=Df+" "+ww,Cw={9:Nf,10:Of,11:Pf,12:Rf,13:Df,14:Iw},Lf={};function Aw(e){var t=Lf[e]={binary:Ln(Sw[e]+" "+Ec),binaryOfStrings:Ln(Ew[e]),nonBinary:{General_Category:Ln(Ec),Script:Ln(Cw[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 Zs=0,Ic=[9,10,11,12,13,14];Zs<Ic.length;Zs+=1){var Tw=Ic[Zs];Aw(Tw)}var Se=xt.prototype,as=function(t,n){this.parent=t,this.base=n||this};as.prototype.separatedFrom=function(t){for(var n=this;n;n=n.parent)for(var r=t;r;r=r.parent)if(n.base===r.base&&n!==r)return!0;return!1};as.prototype.sibling=function(){return new as(this.parent,this.base)};var xn=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=Lf[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};xn.prototype.reset=function(t,n,r){var i=r.indexOf("v")!==-1,s=r.indexOf("u")!==-1;this.start=t|0,this.source=n+"",this.flags=r,i&&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)};xn.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};xn.prototype.at=function(t,n){n===void 0&&(n=!1);var r=this.source,i=r.length;if(t>=i)return-1;var s=r.charCodeAt(t);if(!(n||this.switchU)||s<=55295||s>=57344||t+1>=i)return s;var o=r.charCodeAt(t+1);return o>=56320&&o<=57343?(s<<10)+o-56613888:s};xn.prototype.nextIndex=function(t,n){n===void 0&&(n=!1);var r=this.source,i=r.length;if(t>=i)return i;var s=r.charCodeAt(t),o;return!(n||this.switchU)||s<=55295||s>=57344||t+1>=i||(o=r.charCodeAt(t+1))<56320||o>57343?t+1:t+2};xn.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};xn.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};xn.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};xn.prototype.eat=function(t,n){return n===void 0&&(n=!1),this.current(n)===t?(this.advance(n),!0):!1};xn.prototype.eatChars=function(t,n){n===void 0&&(n=!1);for(var r=this.pos,i=0,s=t;i<s.length;i+=1){var o=s[i],l=this.at(r,n);if(l===-1||l!==o)return!1;r=this.nextIndex(r,n)}return this.pos=r,!0};Se.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,i=!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"&&(r=!0),o==="v"&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,"Invalid regular expression flag")};function Nw(e){for(var t in e)return!0;return!1}Se.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Nw(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};Se.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 r=n[t];e.groupNames[r]||e.raise("Invalid named capture referenced")}};Se.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new as(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")};Se.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};Se.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};Se.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};Se.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};Se.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};Se.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1};Se.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)};Se.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};Se.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),r=e.eat(45);if(n||r){for(var i=0;i<n.length;i++){var s=n.charAt(i);n.indexOf(s,i+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(r){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};Se.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};Se.regexp_eatModifiers=function(e){for(var t="",n=0;(n=e.current())!==-1&&Ow(n);)t+=En(n),e.advance();return t};function Ow(e){return e===105||e===109||e===115}Se.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)};Se.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};Se.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Vf(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Vf(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}Se.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!Vf(n);)e.advance();return e.pos!==t};Se.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};Se.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 r=0,i=n;r<i.length;r+=1){var s=i[r];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}};Se.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};Se.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=En(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=En(e.lastIntValue);return!0}return!1};Se.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Pw(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Pw(e){return gn(e,!0)||e===36||e===95}Se.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Rw(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Rw(e){return Mn(e,!0)||e===36||e===95||e===8204||e===8205}Se.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)};Se.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};Se.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};Se.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)};Se.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};Se.regexp_eatZero=function(e){return e.current()===48&&!Ts(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};Se.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};Se.regexp_eatControlLetter=function(e){var t=e.current();return Mf(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Mf(e){return e>=65&&e<=90||e>=97&&e<=122}Se.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=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=(i-55296)*1024+(o-56320)+65536,!0}e.pos=s,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Dw(e.lastIntValue))return!0;r&&e.raise("Invalid unicode escape"),e.pos=n}return!1};function Dw(e){return e>=0&&e<=1114111}Se.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};Se.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 jf=0,In=1,en=2;Se.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Lw(t))return e.lastIntValue=-1,e.advance(),In;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var r;if(e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&r===en&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return jf};function Lw(e){return e===100||e===68||e===115||e===83||e===119||e===87}Se.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 r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),In}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return jf};Se.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){wr(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")};Se.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return In;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return en;e.raise("Invalid property name")};Se.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Ff(t=e.current());)e.lastStringValue+=En(t),e.advance();return e.lastStringValue!==""};function Ff(e){return Mf(e)||e===95}Se.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Vw(t=e.current());)e.lastStringValue+=En(t),e.advance();return e.lastStringValue!==""};function Vw(e){return Ff(e)||Ts(e)}Se.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};Se.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===en&&e.raise("Negated character class may contain strings"),!0}return!1};Se.regexp_classContents=function(e){return e.current()===93?In:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),In)};Se.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")}}};Se.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||Hf(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return r!==93?(e.lastIntValue=r,e.advance(),!0):!1};Se.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)};Se.regexp_classSetExpression=function(e){var t=In,n;if(!this.regexp_eatClassSetRange(e))if(n=this.regexp_eatClassSetOperand(e)){n===en&&(t=en);for(var r=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))){n!==en&&(t=In);continue}e.raise("Invalid character in character class")}if(r!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==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===en&&(t=en)}};Se.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 r=e.lastIntValue;return n!==-1&&r!==-1&&n>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};Se.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?In:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};Se.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&r===en&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null};Se.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};Se.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===en&&(t=en);return t};Se.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?In:en};Se.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()&&Mw(n)||jw(n)?!1:(e.advance(),e.lastIntValue=n,!0)};function Mw(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 jw(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}Se.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Fw(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Fw(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}Se.regexp_eatClassControlLetter=function(e){var t=e.current();return Ts(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};Se.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};Se.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Ts(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function Ts(e){return e>=48&&e<=57}Se.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;zf(n=e.current());)e.lastIntValue=16*e.lastIntValue+Bf(n),e.advance();return e.pos!==t};function zf(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Bf(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}Se.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};Se.regexp_eatOctalDigit=function(e){var t=e.current();return Hf(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Hf(e){return e>=48&&e<=55}Se.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!zf(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Bf(i),e.advance()}return!0};var cl=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new _s(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Ue=xt.prototype;Ue.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 cl(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};Ue.getToken=function(){return this.next(),new cl(this)};typeof Symbol<"u"&&(Ue[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===O.eof,value:t}}}});Ue.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(O.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};Ue.readToken=function(e){return gn(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};Ue.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};Ue.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 r=void 0,i=t;(r=pf(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())};Ue.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!yr(r);)r=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())};Ue.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&&df.test(String.fromCharCode(e)))++this.pos;else break e}}};Ue.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)};Ue.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(O.ellipsis)):(++this.pos,this.finishToken(O.dot))};Ue.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(O.assign,2):this.finishOp(O.slash,1)};Ue.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?O.star:O.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=O.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(O.assign,n+1):this.finishOp(r,n)};Ue.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(O.assign,3)}return this.finishOp(e===124?O.logicalOR:O.logicalAND,2)}return t===61?this.finishOp(O.assign,2):this.finishOp(e===124?O.bitwiseOR:O.bitwiseAND,1)};Ue.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(O.assign,2):this.finishOp(O.bitwiseXOR,1)};Ue.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||Ht.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(O.incDec,2):t===61?this.finishOp(O.assign,2):this.finishOp(O.plusMin,1)};Ue.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(O.assign,n+1):this.finishOp(O.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(O.relational,n))};Ue.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(O.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(O.arrow)):this.finishOp(e===61?O.eq:O.prefix,1)};Ue.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(O.questionDot,2)}if(t===63){if(e>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(O.assign,3)}return this.finishOp(O.coalesce,2)}}return this.finishOp(O.question,1)};Ue.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),gn(t,!0)||t===92))return this.finishToken(O.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+En(t)+"'")};Ue.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(O.parenL);case 41:return++this.pos,this.finishToken(O.parenR);case 59:return++this.pos,this.finishToken(O.semi);case 44:return++this.pos,this.finishToken(O.comma);case 91:return++this.pos,this.finishToken(O.bracketL);case 93:return++this.pos,this.finishToken(O.bracketR);case 123:return++this.pos,this.finishToken(O.braceL);case 125:return++this.pos,this.finishToken(O.braceR);case 58:return++this.pos,this.finishToken(O.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(O.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(O.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+En(e)+"'")};Ue.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)};Ue.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Ht.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if(r==="[")t=!0;else if(r==="]"&&t)t=!1;else if(r==="/"&&!t)break;e=r==="\\"}++this.pos}var i=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 xn(this));l.reset(n,i,o),this.validateRegExpFlags(l),this.validateRegExpPattern(l);var u=null;try{u=new RegExp(i,o)}catch{}return this.finishToken(O.regexp,{pattern:i,flags:o,value:u})};Ue.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,s=this.pos,o=0,l=0,u=0,c=t??1/0;u<c;++u,++this.pos){var d=this.input.charCodeAt(this.pos),h=void 0;if(r&&d===95){i&&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=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;l=d,o=o*e+h}return r&&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 zw(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function $f(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}Ue.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=$f(this.input.slice(t,this.pos)),++this.pos):gn(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(O.num,n)};Ue.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 r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=$f(this.input.slice(t,this.pos));return++this.pos,gn(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(O.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!n&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),gn(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=zw(this.input.slice(t,this.pos),n);return this.finishToken(O.num,s)};Ue.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};Ue.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(yr(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(O.string,t)};var Wf={};Ue.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Wf)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};Ue.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Wf;this.raise(e,t)};Ue.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===O.template||this.type===O.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(O.dollarBraceL)):(++this.pos,this.finishToken(O.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(O.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(yr(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+=`
66
66
  `;break;default:e+=String.fromCharCode(n);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};Ue.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(O.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
67
67
  `&&++this.pos;case`
68
68
  `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};Ue.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
69
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return En(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 r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return yr(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};Ue.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,"Bad character escape sequence"),n};Ue.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Mn(i,r))this.pos+=i<=65535?1:2;else if(i===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?gn:Mn)(o,r)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=En(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)};Ue.readWord=function(){var e=this.readWord1(),t=O.name;return this.keywords.test(e)&&(t=il[e]),this.finishToken(t,e)};var zw="8.15.0";xt.acorn={Parser:xt,version:zw,defaultOptions:Ha,Position:Ur,SourceLocation:_s,getLineInfo:gf,Node:As,TokenType:Ye,tokTypes:O,keywordTypes:il,TokContext:rn,tokContexts:ht,isIdentifierChar:Mn,isIdentifierStart:gn,Token:cl,isNewLine:yr,lineBreak:Ht,lineBreakG:lw,nonASCIIwhitespace:df};function hl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ea={exports:{}},ta,Cc;function Bw(){return Cc||(Cc=1,ta={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:"♦"}),ta}var Lr={exports:{}},Hw=Lr.exports,Ac;function Tc(){return Ac||(Ac=1,(function(e,t){(function(n,r){r(t)})(Hw,(function(n){var r=[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],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",c={5:u,"5module":u+" export import",6:u+" const class extends export import super"},d=/^in(stanceof)?$/,h=new RegExp("["+o+"]"),g=new RegExp("["+o+s+"]");function m(a,p){for(var b=65536,I=0;I<p.length;I+=2){if(b+=p[I],b>a)return!1;if(b+=p[I+1],b>=a)return!0}return!1}function w(a,p){return a<65?a===36:a<91?!0:a<97?a===95:a<123?!0:a<=65535?a>=170&&h.test(String.fromCharCode(a)):p===!1?!1:m(a,i)}function S(a,p){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&&g.test(String.fromCharCode(a)):p===!1?!1:m(a,i)||m(a,r)}var y=function(p,b){b===void 0&&(b={}),this.label=p,this.keyword=b.keyword,this.beforeExpr=!!b.beforeExpr,this.startsExpr=!!b.startsExpr,this.isLoop=!!b.isLoop,this.isAssign=!!b.isAssign,this.prefix=!!b.prefix,this.postfix=!!b.postfix,this.binop=b.binop||null,this.updateContext=null};function k(a,p){return new y(a,{beforeExpr:!0,binop:p})}var v={beforeExpr:!0},_={startsExpr:!0},A={};function x(a,p){return p===void 0&&(p={}),p.keyword=a,A[a]=new y(a,p)}var f={num:new y("num",_),regexp:new y("regexp",_),string:new y("string",_),name:new y("name",_),privateId:new y("privateId",_),eof:new y("eof"),bracketL:new y("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new y("]"),braceL:new y("{",{beforeExpr:!0,startsExpr:!0}),braceR:new y("}"),parenL:new y("(",{beforeExpr:!0,startsExpr:!0}),parenR:new y(")"),comma:new y(",",v),semi:new y(";",v),colon:new y(":",v),dot:new y("."),question:new y("?",v),questionDot:new y("?."),arrow:new y("=>",v),template:new y("template"),invalidTemplate:new y("invalidTemplate"),ellipsis:new y("...",v),backQuote:new y("`",_),dollarBraceL:new y("${",{beforeExpr:!0,startsExpr:!0}),eq:new y("=",{beforeExpr:!0,isAssign:!0}),assign:new y("_=",{beforeExpr:!0,isAssign:!0}),incDec:new y("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new y("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:k("||",1),logicalAND:k("&&",2),bitwiseOR:k("|",3),bitwiseXOR:k("^",4),bitwiseAND:k("&",5),equality:k("==/!=/===/!==",6),relational:k("</>/<=/>=",7),bitShift:k("<</>>/>>>",8),plusMin:new y("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:k("%",10),star:k("*",10),slash:k("/",10),starstar:new y("**",{beforeExpr:!0}),coalesce:k("??",1),_break:x("break"),_case:x("case",v),_catch:x("catch"),_continue:x("continue"),_debugger:x("debugger"),_default:x("default",v),_do:x("do",{isLoop:!0,beforeExpr:!0}),_else:x("else",v),_finally:x("finally"),_for:x("for",{isLoop:!0}),_function:x("function",_),_if:x("if"),_return:x("return",v),_switch:x("switch"),_throw:x("throw",v),_try:x("try"),_var:x("var"),_const:x("const"),_while:x("while",{isLoop:!0}),_with:x("with"),_new:x("new",{beforeExpr:!0,startsExpr:!0}),_this:x("this",_),_super:x("super",_),_class:x("class",_),_extends:x("extends",v),_export:x("export"),_import:x("import",_),_null:x("null",_),_true:x("true",_),_false:x("false",_),_in:x("in",{beforeExpr:!0,binop:7}),_instanceof:x("instanceof",{beforeExpr:!0,binop:7}),_typeof:x("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:x("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:x("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},R=/\r\n?|\n|\u2028|\u2029/,V=new RegExp(R.source,"g");function L(a){return a===10||a===13||a===8232||a===8233}function N(a,p,b){b===void 0&&(b=a.length);for(var I=p;I<b;I++){var j=a.charCodeAt(I);if(L(j))return I<b-1&&j===13&&a.charCodeAt(I+1)===10?I+2:I+1}return-1}var $=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,U=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,J=Object.prototype,Y=J.hasOwnProperty,Q=J.toString,Z=Object.hasOwn||(function(a,p){return Y.call(a,p)}),q=Array.isArray||(function(a){return Q.call(a)==="[object Array]"}),K=Object.create(null);function ie(a){return K[a]||(K[a]=new RegExp("^(?:"+a.replace(/ /g,"|")+")$"))}function E(a){return a<=65535?String.fromCharCode(a):(a-=65536,String.fromCharCode((a>>10)+55296,(a&1023)+56320))}var M=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,H=function(p,b){this.line=p,this.column=b};H.prototype.offset=function(p){return new H(this.line,this.column+p)};var T=function(p,b,I){this.start=b,this.end=I,p.sourceFile!==null&&(this.source=p.sourceFile)};function B(a,p){for(var b=1,I=0;;){var j=N(a,I,p);if(j<0)return new H(b,p-I);++b,I=j}}var z={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 F(a){var p={};for(var b in z)p[b]=a&&Z(a,b)?a[b]:z[b];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.
69
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return En(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 r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return yr(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};Ue.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,"Bad character escape sequence"),n};Ue.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Mn(i,r))this.pos+=i<=65535?1:2;else if(i===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?gn:Mn)(o,r)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=En(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)};Ue.readWord=function(){var e=this.readWord1(),t=O.name;return this.keywords.test(e)&&(t=il[e]),this.finishToken(t,e)};var Bw="8.15.0";xt.acorn={Parser:xt,version:Bw,defaultOptions:Ha,Position:Ur,SourceLocation:_s,getLineInfo:gf,Node:As,TokenType:Ye,tokTypes:O,keywordTypes:il,TokContext:rn,tokContexts:ht,isIdentifierChar:Mn,isIdentifierStart:gn,Token:cl,isNewLine:yr,lineBreak:Ht,lineBreakG:uw,nonASCIIwhitespace:df};function hl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ea={exports:{}},ta,Cc;function Hw(){return Cc||(Cc=1,ta={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:"♦"}),ta}var Lr={exports:{}},$w=Lr.exports,Ac;function Tc(){return Ac||(Ac=1,(function(e,t){(function(n,r){r(t)})($w,(function(n){var r=[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],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",c={5:u,"5module":u+" export import",6:u+" const class extends export import super"},d=/^in(stanceof)?$/,h=new RegExp("["+o+"]"),g=new RegExp("["+o+s+"]");function m(a,p){for(var b=65536,I=0;I<p.length;I+=2){if(b+=p[I],b>a)return!1;if(b+=p[I+1],b>=a)return!0}return!1}function w(a,p){return a<65?a===36:a<91?!0:a<97?a===95:a<123?!0:a<=65535?a>=170&&h.test(String.fromCharCode(a)):p===!1?!1:m(a,i)}function S(a,p){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&&g.test(String.fromCharCode(a)):p===!1?!1:m(a,i)||m(a,r)}var y=function(p,b){b===void 0&&(b={}),this.label=p,this.keyword=b.keyword,this.beforeExpr=!!b.beforeExpr,this.startsExpr=!!b.startsExpr,this.isLoop=!!b.isLoop,this.isAssign=!!b.isAssign,this.prefix=!!b.prefix,this.postfix=!!b.postfix,this.binop=b.binop||null,this.updateContext=null};function k(a,p){return new y(a,{beforeExpr:!0,binop:p})}var v={beforeExpr:!0},_={startsExpr:!0},A={};function x(a,p){return p===void 0&&(p={}),p.keyword=a,A[a]=new y(a,p)}var f={num:new y("num",_),regexp:new y("regexp",_),string:new y("string",_),name:new y("name",_),privateId:new y("privateId",_),eof:new y("eof"),bracketL:new y("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new y("]"),braceL:new y("{",{beforeExpr:!0,startsExpr:!0}),braceR:new y("}"),parenL:new y("(",{beforeExpr:!0,startsExpr:!0}),parenR:new y(")"),comma:new y(",",v),semi:new y(";",v),colon:new y(":",v),dot:new y("."),question:new y("?",v),questionDot:new y("?."),arrow:new y("=>",v),template:new y("template"),invalidTemplate:new y("invalidTemplate"),ellipsis:new y("...",v),backQuote:new y("`",_),dollarBraceL:new y("${",{beforeExpr:!0,startsExpr:!0}),eq:new y("=",{beforeExpr:!0,isAssign:!0}),assign:new y("_=",{beforeExpr:!0,isAssign:!0}),incDec:new y("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new y("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:k("||",1),logicalAND:k("&&",2),bitwiseOR:k("|",3),bitwiseXOR:k("^",4),bitwiseAND:k("&",5),equality:k("==/!=/===/!==",6),relational:k("</>/<=/>=",7),bitShift:k("<</>>/>>>",8),plusMin:new y("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:k("%",10),star:k("*",10),slash:k("/",10),starstar:new y("**",{beforeExpr:!0}),coalesce:k("??",1),_break:x("break"),_case:x("case",v),_catch:x("catch"),_continue:x("continue"),_debugger:x("debugger"),_default:x("default",v),_do:x("do",{isLoop:!0,beforeExpr:!0}),_else:x("else",v),_finally:x("finally"),_for:x("for",{isLoop:!0}),_function:x("function",_),_if:x("if"),_return:x("return",v),_switch:x("switch"),_throw:x("throw",v),_try:x("try"),_var:x("var"),_const:x("const"),_while:x("while",{isLoop:!0}),_with:x("with"),_new:x("new",{beforeExpr:!0,startsExpr:!0}),_this:x("this",_),_super:x("super",_),_class:x("class",_),_extends:x("extends",v),_export:x("export"),_import:x("import",_),_null:x("null",_),_true:x("true",_),_false:x("false",_),_in:x("in",{beforeExpr:!0,binop:7}),_instanceof:x("instanceof",{beforeExpr:!0,binop:7}),_typeof:x("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:x("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:x("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},R=/\r\n?|\n|\u2028|\u2029/,V=new RegExp(R.source,"g");function L(a){return a===10||a===13||a===8232||a===8233}function N(a,p,b){b===void 0&&(b=a.length);for(var I=p;I<b;I++){var j=a.charCodeAt(I);if(L(j))return I<b-1&&j===13&&a.charCodeAt(I+1)===10?I+2:I+1}return-1}var $=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,U=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,J=Object.prototype,Y=J.hasOwnProperty,Q=J.toString,Z=Object.hasOwn||(function(a,p){return Y.call(a,p)}),q=Array.isArray||(function(a){return Q.call(a)==="[object Array]"}),K=Object.create(null);function ie(a){return K[a]||(K[a]=new RegExp("^(?:"+a.replace(/ /g,"|")+")$"))}function E(a){return a<=65535?String.fromCharCode(a):(a-=65536,String.fromCharCode((a>>10)+55296,(a&1023)+56320))}var M=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,H=function(p,b){this.line=p,this.column=b};H.prototype.offset=function(p){return new H(this.line,this.column+p)};var T=function(p,b,I){this.start=b,this.end=I,p.sourceFile!==null&&(this.source=p.sourceFile)};function B(a,p){for(var b=1,I=0;;){var j=N(a,I,p);if(j<0)return new H(b,p-I);++b,I=j}}var z={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 F(a){var p={};for(var b in z)p[b]=a&&Z(a,b)?a[b]:z[b];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
70
  Defaulting to 2020, but this will stop working in the future.`)),p.ecmaVersion=11):p.ecmaVersion>=2015&&(p.ecmaVersion-=2009),p.allowReserved==null&&(p.allowReserved=p.ecmaVersion<5),(!a||a.allowHashBang==null)&&(p.allowHashBang=p.ecmaVersion>=14),q(p.onToken)){var I=p.onToken;p.onToken=function(j){return I.push(j)}}return q(p.onComment)&&(p.onComment=te(p,p.onComment)),p}function te(a,p){return function(b,I,j,X,re,fe){var me={type:b?"Block":"Line",value:I,start:j,end:X};a.locations&&(me.loc=new T(this,re,fe)),a.ranges&&(me.range=[j,X]),p.push(me)}}var ee=1,ne=2,le=4,G=8,ae=16,ce=32,Ie=64,Ce=128,Re=256,Ve=512,Oe=ee|ne|Re;function Ne(a,p){return ne|(a?le:0)|(p?G:0)}var Ke=0,vt=1,Je=2,Fe=3,Vt=4,oe=5,se=function(p,b,I){this.options=p=F(p),this.sourceFile=p.sourceFile,this.keywords=ie(c[p.ecmaVersion>=6?6:p.sourceType==="module"?"5module":5]);var j="";p.allowReserved!==!0&&(j=l[p.ecmaVersion>=6?6:p.ecmaVersion===5?5:3],p.sourceType==="module"&&(j+=" await")),this.reservedWords=ie(j);var X=(j?j+" ":"")+l.strict;this.reservedWordsStrict=ie(X),this.reservedWordsStrictBind=ie(X+" "+l.strictBind),this.input=String(b),this.containsEsc=!1,I?(this.pos=I,this.lineStart=this.input.lastIndexOf(`
71
- `,I-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(R).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=f.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(ee),this.regexpState=null,this.privateNameStack=[]},P={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}};se.prototype.parse=function(){var p=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(p)},P.inFunction.get=function(){return(this.currentVarScope().flags&ne)>0},P.inGenerator.get=function(){return(this.currentVarScope().flags&G)>0},P.inAsync.get=function(){return(this.currentVarScope().flags&le)>0},P.canAwait.get=function(){for(var a=this.scopeStack.length-1;a>=0;a--){var p=this.scopeStack[a],b=p.flags;if(b&(Re|Ve))return!1;if(b&ne)return(b&le)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},P.allowSuper.get=function(){var a=this.currentThisScope(),p=a.flags;return(p&Ie)>0||this.options.allowSuperOutsideMethod},P.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Ce)>0},P.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},P.allowNewDotTarget.get=function(){for(var a=this.scopeStack.length-1;a>=0;a--){var p=this.scopeStack[a],b=p.flags;if(b&(Re|Ve)||b&ne&&!(b&ae))return!0}return!1},P.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Re)>0},se.extend=function(){for(var p=[],b=arguments.length;b--;)p[b]=arguments[b];for(var I=this,j=0;j<p.length;j++)I=p[j](I);return I},se.parse=function(p,b){return new this(b,p).parse()},se.parseExpressionAt=function(p,b,I){var j=new this(I,p,b);return j.nextToken(),j.parseExpression()},se.tokenizer=function(p,b){return new this(b,p)},Object.defineProperties(se.prototype,P);var be=se.prototype,He=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;be.strictDirective=function(a){if(this.options.ecmaVersion<5)return!1;for(;;){U.lastIndex=a,a+=U.exec(this.input)[0].length;var p=He.exec(this.input.slice(a));if(!p)return!1;if((p[1]||p[2])==="use strict"){U.lastIndex=a+p[0].length;var b=U.exec(this.input),I=b.index+b[0].length,j=this.input.charAt(I);return j===";"||j==="}"||R.test(b[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(j)||j==="!"&&this.input.charAt(I+1)==="=")}a+=p[0].length,U.lastIndex=a,a+=U.exec(this.input)[0].length,this.input[a]===";"&&a++}},be.eat=function(a){return this.type===a?(this.next(),!0):!1},be.isContextual=function(a){return this.type===f.name&&this.value===a&&!this.containsEsc},be.eatContextual=function(a){return this.isContextual(a)?(this.next(),!0):!1},be.expectContextual=function(a){this.eatContextual(a)||this.unexpected()},be.canInsertSemicolon=function(){return this.type===f.eof||this.type===f.braceR||R.test(this.input.slice(this.lastTokEnd,this.start))},be.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},be.semicolon=function(){!this.eat(f.semi)&&!this.insertSemicolon()&&this.unexpected()},be.afterTrailingComma=function(a,p){if(this.type===a)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),p||this.next(),!0},be.expect=function(a){this.eat(a)||this.unexpected()},be.unexpected=function(a){this.raise(a??this.start,"Unexpected token")};var pt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};be.checkPatternErrors=function(a,p){if(a){a.trailingComma>-1&&this.raiseRecoverable(a.trailingComma,"Comma is not permitted after the rest element");var b=p?a.parenthesizedAssign:a.parenthesizedBind;b>-1&&this.raiseRecoverable(b,p?"Assigning to rvalue":"Parenthesized pattern")}},be.checkExpressionErrors=function(a,p){if(!a)return!1;var b=a.shorthandAssign,I=a.doubleProto;if(!p)return b>=0||I>=0;b>=0&&this.raise(b,"Shorthand property assignments are valid only in destructuring patterns"),I>=0&&this.raiseRecoverable(I,"Redefinition of __proto__ property")},be.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")},be.isSimpleAssignTarget=function(a){return a.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(a.expression):a.type==="Identifier"||a.type==="MemberExpression"};var he=se.prototype;he.parseTopLevel=function(a){var p=Object.create(null);for(a.body||(a.body=[]);this.type!==f.eof;){var b=this.parseStatement(null,!0,p);a.body.push(b)}if(this.inModule)for(var I=0,j=Object.keys(this.undefinedExports);I<j.length;I+=1){var X=j[I];this.raiseRecoverable(this.undefinedExports[X].start,"Export '"+X+"' is not defined")}return this.adaptDirectivePrologue(a.body),this.next(),a.sourceType=this.options.sourceType,this.finishNode(a,"Program")};var Me={kind:"loop"},dt={kind:"switch"};he.isLet=function(a){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;U.lastIndex=this.pos;var p=U.exec(this.input),b=this.pos+p[0].length,I=this.input.charCodeAt(b);if(I===91||I===92)return!0;if(a)return!1;if(I===123||I>55295&&I<56320)return!0;if(w(I,!0)){for(var j=b+1;S(I=this.input.charCodeAt(j),!0);)++j;if(I===92||I>55295&&I<56320)return!0;var X=this.input.slice(b,j);if(!d.test(X))return!0}return!1},he.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;U.lastIndex=this.pos;var a=U.exec(this.input),p=this.pos+a[0].length,b;return!R.test(this.input.slice(this.pos,p))&&this.input.slice(p,p+8)==="function"&&(p+8===this.input.length||!(S(b=this.input.charCodeAt(p+8))||b>55295&&b<56320))},he.isUsingKeyword=function(a,p){if(this.options.ecmaVersion<17||!this.isContextual(a?"await":"using"))return!1;U.lastIndex=this.pos;var b=U.exec(this.input),I=this.pos+b[0].length;if(R.test(this.input.slice(this.pos,I)))return!1;if(a){var j=I+5,X;if(this.input.slice(I,j)!=="using"||j===this.input.length||S(X=this.input.charCodeAt(j))||X>55295&&X<56320)return!1;U.lastIndex=j;var re=U.exec(this.input);if(re&&R.test(this.input.slice(j,j+re[0].length)))return!1}if(p){var fe=I+2,me;if(this.input.slice(I,fe)==="of"&&(fe===this.input.length||!S(me=this.input.charCodeAt(fe))&&!(me>55295&&me<56320)))return!1}var Pe=this.input.charCodeAt(I);return w(Pe,!0)||Pe===92},he.isAwaitUsing=function(a){return this.isUsingKeyword(!0,a)},he.isUsing=function(a){return this.isUsingKeyword(!1,a)},he.parseStatement=function(a,p,b){var I=this.type,j=this.startNode(),X;switch(this.isLet(a)&&(I=f._var,X="let"),I){case f._break:case f._continue:return this.parseBreakContinueStatement(j,I.keyword);case f._debugger:return this.parseDebuggerStatement(j);case f._do:return this.parseDoStatement(j);case f._for:return this.parseForStatement(j);case f._function:return a&&(this.strict||a!=="if"&&a!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(j,!1,!a);case f._class:return a&&this.unexpected(),this.parseClass(j,!0);case f._if:return this.parseIfStatement(j);case f._return:return this.parseReturnStatement(j);case f._switch:return this.parseSwitchStatement(j);case f._throw:return this.parseThrowStatement(j);case f._try:return this.parseTryStatement(j);case f._const:case f._var:return X=X||this.value,a&&X!=="var"&&this.unexpected(),this.parseVarStatement(j,X);case f._while:return this.parseWhileStatement(j);case f._with:return this.parseWithStatement(j);case f.braceL:return this.parseBlock(!0,j);case f.semi:return this.parseEmptyStatement(j);case f._export:case f._import:if(this.options.ecmaVersion>10&&I===f._import){U.lastIndex=this.pos;var re=U.exec(this.input),fe=this.pos+re[0].length,me=this.input.charCodeAt(fe);if(me===40||me===46)return this.parseExpressionStatement(j,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'")),I===f._import?this.parseImport(j):this.parseExport(j,b);default:if(this.isAsyncFunction())return a&&this.unexpected(),this.next(),this.parseFunctionStatement(j,!0,!a);var Pe=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(Pe)return p&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),Pe==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(j,!1,Pe),this.semicolon(),this.finishNode(j,"VariableDeclaration");var ze=this.value,ut=this.parseExpression();return I===f.name&&ut.type==="Identifier"&&this.eat(f.colon)?this.parseLabeledStatement(j,ze,ut,a):this.parseExpressionStatement(j,ut)}},he.parseBreakContinueStatement=function(a,p){var b=p==="break";this.next(),this.eat(f.semi)||this.insertSemicolon()?a.label=null:this.type!==f.name?this.unexpected():(a.label=this.parseIdent(),this.semicolon());for(var I=0;I<this.labels.length;++I){var j=this.labels[I];if((a.label==null||j.name===a.label.name)&&(j.kind!=null&&(b||j.kind==="loop")||a.label&&b))break}return I===this.labels.length&&this.raise(a.start,"Unsyntactic "+p),this.finishNode(a,b?"BreakStatement":"ContinueStatement")},he.parseDebuggerStatement=function(a){return this.next(),this.semicolon(),this.finishNode(a,"DebuggerStatement")},he.parseDoStatement=function(a){return this.next(),this.labels.push(Me),a.body=this.parseStatement("do"),this.labels.pop(),this.expect(f._while),a.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(f.semi):this.semicolon(),this.finishNode(a,"DoWhileStatement")},he.parseForStatement=function(a){this.next();var p=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Me),this.enterScope(0),this.expect(f.parenL),this.type===f.semi)return p>-1&&this.unexpected(p),this.parseFor(a,null);var b=this.isLet();if(this.type===f._var||this.type===f._const||b){var I=this.startNode(),j=b?"let":this.value;return this.next(),this.parseVar(I,!0,j),this.finishNode(I,"VariableDeclaration"),this.parseForAfterInit(a,I,p)}var X=this.isContextual("let"),re=!1,fe=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(fe){var me=this.startNode();return this.next(),fe==="await using"&&this.next(),this.parseVar(me,!0,fe),this.finishNode(me,"VariableDeclaration"),this.parseForAfterInit(a,me,p)}var Pe=this.containsEsc,ze=new pt,ut=this.start,Et=p>-1?this.parseExprSubscripts(ze,"await"):this.parseExpression(!0,ze);return this.type===f._in||(re=this.options.ecmaVersion>=6&&this.isContextual("of"))?(p>-1?(this.type===f._in&&this.unexpected(p),a.await=!0):re&&this.options.ecmaVersion>=8&&(Et.start===ut&&!Pe&&Et.type==="Identifier"&&Et.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(a.await=!1)),X&&re&&this.raise(Et.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(Et,!1,ze),this.checkLValPattern(Et),this.parseForIn(a,Et)):(this.checkExpressionErrors(ze,!0),p>-1&&this.unexpected(p),this.parseFor(a,Et))},he.parseForAfterInit=function(a,p,b){return(this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&p.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===f._in?b>-1&&this.unexpected(b):a.await=b>-1),this.parseForIn(a,p)):(b>-1&&this.unexpected(b),this.parseFor(a,p))},he.parseFunctionStatement=function(a,p,b){return this.next(),this.parseFunction(a,ct|(b?0:St),!1,p)},he.parseIfStatement=function(a){return this.next(),a.test=this.parseParenExpression(),a.consequent=this.parseStatement("if"),a.alternate=this.eat(f._else)?this.parseStatement("if"):null,this.finishNode(a,"IfStatement")},he.parseReturnStatement=function(a){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(f.semi)||this.insertSemicolon()?a.argument=null:(a.argument=this.parseExpression(),this.semicolon()),this.finishNode(a,"ReturnStatement")},he.parseSwitchStatement=function(a){this.next(),a.discriminant=this.parseParenExpression(),a.cases=[],this.expect(f.braceL),this.labels.push(dt),this.enterScope(0);for(var p,b=!1;this.type!==f.braceR;)if(this.type===f._case||this.type===f._default){var I=this.type===f._case;p&&this.finishNode(p,"SwitchCase"),a.cases.push(p=this.startNode()),p.consequent=[],this.next(),I?p.test=this.parseExpression():(b&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),b=!0,p.test=null),this.expect(f.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(a,"SwitchStatement")},he.parseThrowStatement=function(a){return this.next(),R.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 Mt=[];he.parseCatchClauseParam=function(){var a=this.parseBindingAtom(),p=a.type==="Identifier";return this.enterScope(p?ce:0),this.checkLValPattern(a,p?Vt:Je),this.expect(f.parenR),a},he.parseTryStatement=function(a){if(this.next(),a.block=this.parseBlock(),a.handler=null,this.type===f._catch){var p=this.startNode();this.next(),this.eat(f.parenL)?p.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),p.param=null,this.enterScope(0)),p.body=this.parseBlock(!1),this.exitScope(),a.handler=this.finishNode(p,"CatchClause")}return a.finalizer=this.eat(f._finally)?this.parseBlock():null,!a.handler&&!a.finalizer&&this.raise(a.start,"Missing catch or finally clause"),this.finishNode(a,"TryStatement")},he.parseVarStatement=function(a,p,b){return this.next(),this.parseVar(a,!1,p,b),this.semicolon(),this.finishNode(a,"VariableDeclaration")},he.parseWhileStatement=function(a){return this.next(),a.test=this.parseParenExpression(),this.labels.push(Me),a.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(a,"WhileStatement")},he.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")},he.parseEmptyStatement=function(a){return this.next(),this.finishNode(a,"EmptyStatement")},he.parseLabeledStatement=function(a,p,b,I){for(var j=0,X=this.labels;j<X.length;j+=1){var re=X[j];re.name===p&&this.raise(b.start,"Label '"+p+"' is already declared")}for(var fe=this.type.isLoop?"loop":this.type===f._switch?"switch":null,me=this.labels.length-1;me>=0;me--){var Pe=this.labels[me];if(Pe.statementStart===a.start)Pe.statementStart=this.start,Pe.kind=fe;else break}return this.labels.push({name:p,kind:fe,statementStart:this.start}),a.body=this.parseStatement(I?I.indexOf("label")===-1?I+"label":I:"label"),this.labels.pop(),a.label=b,this.finishNode(a,"LabeledStatement")},he.parseExpressionStatement=function(a,p){return a.expression=p,this.semicolon(),this.finishNode(a,"ExpressionStatement")},he.parseBlock=function(a,p,b){for(a===void 0&&(a=!0),p===void 0&&(p=this.startNode()),p.body=[],this.expect(f.braceL),a&&this.enterScope(0);this.type!==f.braceR;){var I=this.parseStatement(null);p.body.push(I)}return b&&(this.strict=!1),this.next(),a&&this.exitScope(),this.finishNode(p,"BlockStatement")},he.parseFor=function(a,p){return a.init=p,this.expect(f.semi),a.test=this.type===f.semi?null:this.parseExpression(),this.expect(f.semi),a.update=this.type===f.parenR?null:this.parseExpression(),this.expect(f.parenR),a.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(a,"ForStatement")},he.parseForIn=function(a,p){var b=this.type===f._in;return this.next(),p.type==="VariableDeclaration"&&p.declarations[0].init!=null&&(!b||this.options.ecmaVersion<8||this.strict||p.kind!=="var"||p.declarations[0].id.type!=="Identifier")&&this.raise(p.start,(b?"for-in":"for-of")+" loop variable declaration may not have an initializer"),a.left=p,a.right=b?this.parseExpression():this.parseMaybeAssign(),this.expect(f.parenR),a.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(a,b?"ForInStatement":"ForOfStatement")},he.parseVar=function(a,p,b,I){for(a.declarations=[],a.kind=b;;){var j=this.startNode();if(this.parseVarId(j,b),this.eat(f.eq)?j.init=this.parseMaybeAssign(p):!I&&b==="const"&&!(this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!I&&(b==="using"||b==="await using")&&this.options.ecmaVersion>=17&&this.type!==f._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+b+" declaration"):!I&&j.id.type!=="Identifier"&&!(p&&(this.type===f._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):j.init=null,a.declarations.push(this.finishNode(j,"VariableDeclarator")),!this.eat(f.comma))break}return a},he.parseVarId=function(a,p){a.id=p==="using"||p==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(a.id,p==="var"?vt:Je,!1)};var ct=1,St=2,wt=4;he.parseFunction=function(a,p,b,I,j){this.initFunction(a),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!I)&&(this.type===f.star&&p&St&&this.unexpected(),a.generator=this.eat(f.star)),this.options.ecmaVersion>=8&&(a.async=!!I),p&ct&&(a.id=p&wt&&this.type!==f.name?null:this.parseIdent(),a.id&&!(p&St)&&this.checkLValSimple(a.id,this.strict||a.generator||a.async?this.treatFunctionsAsVar?vt:Je:Fe));var X=this.yieldPos,re=this.awaitPos,fe=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ne(a.async,a.generator)),p&ct||(a.id=this.type===f.name?this.parseIdent():null),this.parseFunctionParams(a),this.parseFunctionBody(a,b,!1,j),this.yieldPos=X,this.awaitPos=re,this.awaitIdentPos=fe,this.finishNode(a,p&ct?"FunctionDeclaration":"FunctionExpression")},he.parseFunctionParams=function(a){this.expect(f.parenL),a.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},he.parseClass=function(a,p){this.next();var b=this.strict;this.strict=!0,this.parseClassId(a,p),this.parseClassSuper(a);var I=this.enterClassBody(),j=this.startNode(),X=!1;for(j.body=[],this.expect(f.braceL);this.type!==f.braceR;){var re=this.parseClassElement(a.superClass!==null);re&&(j.body.push(re),re.type==="MethodDefinition"&&re.kind==="constructor"?(X&&this.raiseRecoverable(re.start,"Duplicate constructor in the same class"),X=!0):re.key&&re.key.type==="PrivateIdentifier"&&Xn(I,re)&&this.raiseRecoverable(re.key.start,"Identifier '#"+re.key.name+"' has already been declared"))}return this.strict=b,this.next(),a.body=this.finishNode(j,"ClassBody"),this.exitClassBody(),this.finishNode(a,p?"ClassDeclaration":"ClassExpression")},he.parseClassElement=function(a){if(this.eat(f.semi))return null;var p=this.options.ecmaVersion,b=this.startNode(),I="",j=!1,X=!1,re="method",fe=!1;if(this.eatContextual("static")){if(p>=13&&this.eat(f.braceL))return this.parseClassStaticBlock(b),b;this.isClassElementNameStart()||this.type===f.star?fe=!0:I="static"}if(b.static=fe,!I&&p>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===f.star)&&!this.canInsertSemicolon()?X=!0:I="async"),!I&&(p>=9||!X)&&this.eat(f.star)&&(j=!0),!I&&!X&&!j){var me=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?re=me:I=me)}if(I?(b.computed=!1,b.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),b.key.name=I,this.finishNode(b.key,"Identifier")):this.parseClassElementName(b),p<13||this.type===f.parenL||re!=="method"||j||X){var Pe=!b.static&&un(b,"constructor"),ze=Pe&&a;Pe&&re!=="method"&&this.raise(b.key.start,"Constructor can't have get/set modifier"),b.kind=Pe?"constructor":re,this.parseClassMethod(b,j,X,ze)}else this.parseClassField(b);return b},he.isClassElementNameStart=function(){return this.type===f.name||this.type===f.privateId||this.type===f.num||this.type===f.string||this.type===f.bracketL||this.type.keyword},he.parseClassElementName=function(a){this.type===f.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)},he.parseClassMethod=function(a,p,b,I){var j=a.key;a.kind==="constructor"?(p&&this.raise(j.start,"Constructor can't be a generator"),b&&this.raise(j.start,"Constructor can't be an async method")):a.static&&un(a,"prototype")&&this.raise(j.start,"Classes may not have a static property named prototype");var X=a.value=this.parseMethod(p,b,I);return a.kind==="get"&&X.params.length!==0&&this.raiseRecoverable(X.start,"getter should have no params"),a.kind==="set"&&X.params.length!==1&&this.raiseRecoverable(X.start,"setter should have exactly one param"),a.kind==="set"&&X.params[0].type==="RestElement"&&this.raiseRecoverable(X.params[0].start,"Setter cannot use rest params"),this.finishNode(a,"MethodDefinition")},he.parseClassField=function(a){return un(a,"constructor")?this.raise(a.key.start,"Classes can't have a field named 'constructor'"):a.static&&un(a,"prototype")&&this.raise(a.key.start,"Classes can't have a static field named 'prototype'"),this.eat(f.eq)?(this.enterScope(Ve|Ie),a.value=this.parseMaybeAssign(),this.exitScope()):a.value=null,this.semicolon(),this.finishNode(a,"PropertyDefinition")},he.parseClassStaticBlock=function(a){a.body=[];var p=this.labels;for(this.labels=[],this.enterScope(Re|Ie);this.type!==f.braceR;){var b=this.parseStatement(null);a.body.push(b)}return this.next(),this.exitScope(),this.labels=p,this.finishNode(a,"StaticBlock")},he.parseClassId=function(a,p){this.type===f.name?(a.id=this.parseIdent(),p&&this.checkLValSimple(a.id,Je,!1)):(p===!0&&this.unexpected(),a.id=null)},he.parseClassSuper=function(a){a.superClass=this.eat(f._extends)?this.parseExprSubscripts(null,!1):null},he.enterClassBody=function(){var a={declared:Object.create(null),used:[]};return this.privateNameStack.push(a),a.declared},he.exitClassBody=function(){var a=this.privateNameStack.pop(),p=a.declared,b=a.used;if(this.options.checkPrivateFields)for(var I=this.privateNameStack.length,j=I===0?null:this.privateNameStack[I-1],X=0;X<b.length;++X){var re=b[X];Z(p,re.name)||(j?j.used.push(re):this.raiseRecoverable(re.start,"Private field '#"+re.name+"' must be declared in an enclosing class"))}};function Xn(a,p){var b=p.key.name,I=a[b],j="true";return p.type==="MethodDefinition"&&(p.kind==="get"||p.kind==="set")&&(j=(p.static?"s":"i")+p.kind),I==="iget"&&j==="iset"||I==="iset"&&j==="iget"||I==="sget"&&j==="sset"||I==="sset"&&j==="sget"?(a[b]="true",!1):I?!0:(a[b]=j,!1)}function un(a,p){var b=a.computed,I=a.key;return!b&&(I.type==="Identifier"&&I.name===p||I.type==="Literal"&&I.value===p)}he.parseExportAllDeclaration=function(a,p){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(a.exported=this.parseModuleExportName(),this.checkExport(p,a.exported,this.lastTokStart)):a.exported=null),this.expectContextual("from"),this.type!==f.string&&this.unexpected(),a.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(a,"ExportAllDeclaration")},he.parseExport=function(a,p){if(this.next(),this.eat(f.star))return this.parseExportAllDeclaration(a,p);if(this.eat(f._default))return this.checkExport(p,"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(p,a.declaration.declarations):this.checkExport(p,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(p),this.eatContextual("from"))this.type!==f.string&&this.unexpected(),a.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause());else{for(var b=0,I=a.specifiers;b<I.length;b+=1){var j=I[b];this.checkUnreserved(j.local),this.checkLocalExport(j.local),j.local.type==="Literal"&&this.raise(j.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")},he.parseExportDeclaration=function(a){return this.parseStatement(null)},he.parseExportDefaultDeclaration=function(){var a;if(this.type===f._function||(a=this.isAsyncFunction())){var p=this.startNode();return this.next(),a&&this.next(),this.parseFunction(p,ct|wt,!1,a)}else if(this.type===f._class){var b=this.startNode();return this.parseClass(b,"nullableID")}else{var I=this.parseMaybeAssign();return this.semicolon(),I}},he.checkExport=function(a,p,b){a&&(typeof p!="string"&&(p=p.type==="Identifier"?p.name:p.value),Z(a,p)&&this.raiseRecoverable(b,"Duplicate export '"+p+"'"),a[p]=!0)},he.checkPatternExport=function(a,p){var b=p.type;if(b==="Identifier")this.checkExport(a,p,p.start);else if(b==="ObjectPattern")for(var I=0,j=p.properties;I<j.length;I+=1){var X=j[I];this.checkPatternExport(a,X)}else if(b==="ArrayPattern")for(var re=0,fe=p.elements;re<fe.length;re+=1){var me=fe[re];me&&this.checkPatternExport(a,me)}else b==="Property"?this.checkPatternExport(a,p.value):b==="AssignmentPattern"?this.checkPatternExport(a,p.left):b==="RestElement"&&this.checkPatternExport(a,p.argument)},he.checkVariableExport=function(a,p){if(a)for(var b=0,I=p;b<I.length;b+=1){var j=I[b];this.checkPatternExport(a,j.id)}},he.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},he.parseExportSpecifier=function(a){var p=this.startNode();return p.local=this.parseModuleExportName(),p.exported=this.eatContextual("as")?this.parseModuleExportName():p.local,this.checkExport(a,p.exported,p.exported.start),this.finishNode(p,"ExportSpecifier")},he.parseExportSpecifiers=function(a){var p=[],b=!0;for(this.expect(f.braceL);!this.eat(f.braceR);){if(b)b=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;p.push(this.parseExportSpecifier(a))}return p},he.parseImport=function(a){return this.next(),this.type===f.string?(a.specifiers=Mt,a.source=this.parseExprAtom()):(a.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),a.source=this.type===f.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(a,"ImportDeclaration")},he.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,Je),this.finishNode(a,"ImportSpecifier")},he.parseImportDefaultSpecifier=function(){var a=this.startNode();return a.local=this.parseIdent(),this.checkLValSimple(a.local,Je),this.finishNode(a,"ImportDefaultSpecifier")},he.parseImportNamespaceSpecifier=function(){var a=this.startNode();return this.next(),this.expectContextual("as"),a.local=this.parseIdent(),this.checkLValSimple(a.local,Je),this.finishNode(a,"ImportNamespaceSpecifier")},he.parseImportSpecifiers=function(){var a=[],p=!0;if(this.type===f.name&&(a.push(this.parseImportDefaultSpecifier()),!this.eat(f.comma)))return a;if(this.type===f.star)return a.push(this.parseImportNamespaceSpecifier()),a;for(this.expect(f.braceL);!this.eat(f.braceR);){if(p)p=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;a.push(this.parseImportSpecifier())}return a},he.parseWithClause=function(){var a=[];if(!this.eat(f._with))return a;this.expect(f.braceL);for(var p={},b=!0;!this.eat(f.braceR);){if(b)b=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;var I=this.parseImportAttribute(),j=I.key.type==="Identifier"?I.key.name:I.key.value;Z(p,j)&&this.raiseRecoverable(I.key.start,"Duplicate attribute key '"+j+"'"),p[j]=!0,a.push(I)}return a},he.parseImportAttribute=function(){var a=this.startNode();return a.key=this.type===f.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(f.colon),this.type!==f.string&&this.unexpected(),a.value=this.parseExprAtom(),this.finishNode(a,"ImportAttribute")},he.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===f.string){var a=this.parseLiteral(this.value);return M.test(a.value)&&this.raise(a.start,"An export name cannot include a lone surrogate."),a}return this.parseIdent(!0)},he.adaptDirectivePrologue=function(a){for(var p=0;p<a.length&&this.isDirectiveCandidate(a[p]);++p)a[p].directive=a[p].expression.raw.slice(1,-1)},he.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=se.prototype;_t.toAssignable=function(a,p,b){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",b&&this.checkPatternErrors(b,!0);for(var I=0,j=a.properties;I<j.length;I+=1){var X=j[I];this.toAssignable(X,p),X.type==="RestElement"&&(X.argument.type==="ArrayPattern"||X.argument.type==="ObjectPattern")&&this.raise(X.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,p);break;case"ArrayExpression":a.type="ArrayPattern",b&&this.checkPatternErrors(b,!0),this.toAssignableList(a.elements,p);break;case"SpreadElement":a.type="RestElement",this.toAssignable(a.argument,p),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,p);break;case"ParenthesizedExpression":this.toAssignable(a.expression,p,b);break;case"ChainExpression":this.raiseRecoverable(a.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!p)break;default:this.raise(a.start,"Assigning to rvalue")}else b&&this.checkPatternErrors(b,!0);return a},_t.toAssignableList=function(a,p){for(var b=a.length,I=0;I<b;I++){var j=a[I];j&&this.toAssignable(j,p)}if(b){var X=a[b-1];this.options.ecmaVersion===6&&p&&X&&X.type==="RestElement"&&X.argument.type!=="Identifier"&&this.unexpected(X.argument.start)}return a},_t.parseSpread=function(a){var p=this.startNode();return this.next(),p.argument=this.parseMaybeAssign(!1,a),this.finishNode(p,"SpreadElement")},_t.parseRestBinding=function(){var a=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==f.name&&this.unexpected(),a.argument=this.parseBindingAtom(),this.finishNode(a,"RestElement")},_t.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case f.bracketL:var a=this.startNode();return this.next(),a.elements=this.parseBindingList(f.bracketR,!0,!0),this.finishNode(a,"ArrayPattern");case f.braceL:return this.parseObj(!0)}return this.parseIdent()},_t.parseBindingList=function(a,p,b,I){for(var j=[],X=!0;!this.eat(a);)if(X?X=!1:this.expect(f.comma),p&&this.type===f.comma)j.push(null);else{if(b&&this.afterTrailingComma(a))break;if(this.type===f.ellipsis){var re=this.parseRestBinding();this.parseBindingListItem(re),j.push(re),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(a);break}else j.push(this.parseAssignableListItem(I))}return j},_t.parseAssignableListItem=function(a){var p=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(p),p},_t.parseBindingListItem=function(a){return a},_t.parseMaybeDefault=function(a,p,b){if(b=b||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(f.eq))return b;var I=this.startNodeAt(a,p);return I.left=b,I.right=this.parseMaybeAssign(),this.finishNode(I,"AssignmentPattern")},_t.checkLValSimple=function(a,p,b){p===void 0&&(p=Ke);var I=p!==Ke;switch(a.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(a.name)&&this.raiseRecoverable(a.start,(I?"Binding ":"Assigning to ")+a.name+" in strict mode"),I&&(p===Je&&a.name==="let"&&this.raiseRecoverable(a.start,"let is disallowed as a lexically bound name"),b&&(Z(b,a.name)&&this.raiseRecoverable(a.start,"Argument name clash"),b[a.name]=!0),p!==oe&&this.declareName(a.name,p,a.start));break;case"ChainExpression":this.raiseRecoverable(a.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":I&&this.raiseRecoverable(a.start,"Binding member expression");break;case"ParenthesizedExpression":return I&&this.raiseRecoverable(a.start,"Binding parenthesized expression"),this.checkLValSimple(a.expression,p,b);default:this.raise(a.start,(I?"Binding":"Assigning to")+" rvalue")}},_t.checkLValPattern=function(a,p,b){switch(p===void 0&&(p=Ke),a.type){case"ObjectPattern":for(var I=0,j=a.properties;I<j.length;I+=1){var X=j[I];this.checkLValInnerPattern(X,p,b)}break;case"ArrayPattern":for(var re=0,fe=a.elements;re<fe.length;re+=1){var me=fe[re];me&&this.checkLValInnerPattern(me,p,b)}break;default:this.checkLValSimple(a,p,b)}},_t.checkLValInnerPattern=function(a,p,b){switch(p===void 0&&(p=Ke),a.type){case"Property":this.checkLValInnerPattern(a.value,p,b);break;case"AssignmentPattern":this.checkLValPattern(a.left,p,b);break;case"RestElement":this.checkLValPattern(a.argument,p,b);break;default:this.checkLValPattern(a,p,b)}};var qt=function(p,b,I,j,X){this.token=p,this.isExpr=!!b,this.preserveSpace=!!I,this.override=j,this.generator=!!X},lt={b_stat:new qt("{",!1),b_expr:new qt("{",!0),b_tmpl:new qt("${",!1),p_stat:new qt("(",!1),p_expr:new qt("(",!0),q_tmpl:new qt("`",!0,!0,function(a){return a.tryReadTemplateToken()}),f_stat:new qt("function",!1),f_expr:new qt("function",!0),f_expr_gen:new qt("function",!0,!1,null,!0),f_gen:new qt("function",!1,!1,null,!0)},Zn=se.prototype;Zn.initialContext=function(){return[lt.b_stat]},Zn.curContext=function(){return this.context[this.context.length-1]},Zn.braceIsBlock=function(a){var p=this.curContext();return p===lt.f_expr||p===lt.f_stat?!0:a===f.colon&&(p===lt.b_stat||p===lt.b_expr)?!p.isExpr:a===f._return||a===f.name&&this.exprAllowed?R.test(this.input.slice(this.lastTokEnd,this.start)):a===f._else||a===f.semi||a===f.eof||a===f.parenR||a===f.arrow?!0:a===f.braceL?p===lt.b_stat:a===f._var||a===f._const||a===f.name?!1:!this.exprAllowed},Zn.inGeneratorContext=function(){for(var a=this.context.length-1;a>=1;a--){var p=this.context[a];if(p.token==="function")return p.generator}return!1},Zn.updateContext=function(a){var p,b=this.type;b.keyword&&a===f.dot?this.exprAllowed=!1:(p=b.updateContext)?p.call(this,a):this.exprAllowed=b.beforeExpr},Zn.overrideContext=function(a){this.curContext()!==a&&(this.context[this.context.length-1]=a)},f.parenR.updateContext=f.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var a=this.context.pop();a===lt.b_stat&&this.curContext().token==="function"&&(a=this.context.pop()),this.exprAllowed=!a.isExpr},f.braceL.updateContext=function(a){this.context.push(this.braceIsBlock(a)?lt.b_stat:lt.b_expr),this.exprAllowed=!0},f.dollarBraceL.updateContext=function(){this.context.push(lt.b_tmpl),this.exprAllowed=!0},f.parenL.updateContext=function(a){var p=a===f._if||a===f._for||a===f._with||a===f._while;this.context.push(p?lt.p_stat:lt.p_expr),this.exprAllowed=!0},f.incDec.updateContext=function(){},f._function.updateContext=f._class.updateContext=function(a){a.beforeExpr&&a!==f._else&&!(a===f.semi&&this.curContext()!==lt.p_stat)&&!(a===f._return&&R.test(this.input.slice(this.lastTokEnd,this.start)))&&!((a===f.colon||a===f.braceL)&&this.curContext()===lt.b_stat)?this.context.push(lt.f_expr):this.context.push(lt.f_stat),this.exprAllowed=!1},f.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},f.backQuote.updateContext=function(){this.curContext()===lt.q_tmpl?this.context.pop():this.context.push(lt.q_tmpl),this.exprAllowed=!1},f.star.updateContext=function(a){if(a===f._function){var p=this.context.length-1;this.context[p]===lt.f_expr?this.context[p]=lt.f_expr_gen:this.context[p]=lt.f_gen}this.exprAllowed=!0},f.name.updateContext=function(a){var p=!1;this.options.ecmaVersion>=6&&a!==f.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(p=!0),this.exprAllowed=p};var De=se.prototype;De.checkPropClash=function(a,p,b){if(!(this.options.ecmaVersion>=9&&a.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(a.computed||a.method||a.shorthand))){var I=a.key,j;switch(I.type){case"Identifier":j=I.name;break;case"Literal":j=String(I.value);break;default:return}var X=a.kind;if(this.options.ecmaVersion>=6){j==="__proto__"&&X==="init"&&(p.proto&&(b?b.doubleProto<0&&(b.doubleProto=I.start):this.raiseRecoverable(I.start,"Redefinition of __proto__ property")),p.proto=!0);return}j="$"+j;var re=p[j];if(re){var fe;X==="init"?fe=this.strict&&re.init||re.get||re.set:fe=re.init||re[X],fe&&this.raiseRecoverable(I.start,"Redefinition of property")}else re=p[j]={init:!1,get:!1,set:!1};re[X]=!0}},De.parseExpression=function(a,p){var b=this.start,I=this.startLoc,j=this.parseMaybeAssign(a,p);if(this.type===f.comma){var X=this.startNodeAt(b,I);for(X.expressions=[j];this.eat(f.comma);)X.expressions.push(this.parseMaybeAssign(a,p));return this.finishNode(X,"SequenceExpression")}return j},De.parseMaybeAssign=function(a,p,b){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(a);this.exprAllowed=!1}var I=!1,j=-1,X=-1,re=-1;p?(j=p.parenthesizedAssign,X=p.trailingComma,re=p.doubleProto,p.parenthesizedAssign=p.trailingComma=-1):(p=new pt,I=!0);var fe=this.start,me=this.startLoc;(this.type===f.parenL||this.type===f.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=a==="await");var Pe=this.parseMaybeConditional(a,p);if(b&&(Pe=b.call(this,Pe,fe,me)),this.type.isAssign){var ze=this.startNodeAt(fe,me);return ze.operator=this.value,this.type===f.eq&&(Pe=this.toAssignable(Pe,!1,p)),I||(p.parenthesizedAssign=p.trailingComma=p.doubleProto=-1),p.shorthandAssign>=Pe.start&&(p.shorthandAssign=-1),this.type===f.eq?this.checkLValPattern(Pe):this.checkLValSimple(Pe),ze.left=Pe,this.next(),ze.right=this.parseMaybeAssign(a),re>-1&&(p.doubleProto=re),this.finishNode(ze,"AssignmentExpression")}else I&&this.checkExpressionErrors(p,!0);return j>-1&&(p.parenthesizedAssign=j),X>-1&&(p.trailingComma=X),Pe},De.parseMaybeConditional=function(a,p){var b=this.start,I=this.startLoc,j=this.parseExprOps(a,p);if(this.checkExpressionErrors(p))return j;if(this.eat(f.question)){var X=this.startNodeAt(b,I);return X.test=j,X.consequent=this.parseMaybeAssign(),this.expect(f.colon),X.alternate=this.parseMaybeAssign(a),this.finishNode(X,"ConditionalExpression")}return j},De.parseExprOps=function(a,p){var b=this.start,I=this.startLoc,j=this.parseMaybeUnary(p,!1,!1,a);return this.checkExpressionErrors(p)||j.start===b&&j.type==="ArrowFunctionExpression"?j:this.parseExprOp(j,b,I,-1,a)},De.parseExprOp=function(a,p,b,I,j){var X=this.type.binop;if(X!=null&&(!j||this.type!==f._in)&&X>I){var re=this.type===f.logicalOR||this.type===f.logicalAND,fe=this.type===f.coalesce;fe&&(X=f.logicalAND.binop);var me=this.value;this.next();var Pe=this.start,ze=this.startLoc,ut=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,j),Pe,ze,X,j),Et=this.buildBinary(p,b,a,ut,me,re||fe);return(re&&this.type===f.coalesce||fe&&(this.type===f.logicalOR||this.type===f.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(Et,p,b,I,j)}return a},De.buildBinary=function(a,p,b,I,j,X){I.type==="PrivateIdentifier"&&this.raise(I.start,"Private identifier can only be left side of binary expression");var re=this.startNodeAt(a,p);return re.left=b,re.operator=j,re.right=I,this.finishNode(re,X?"LogicalExpression":"BinaryExpression")},De.parseMaybeUnary=function(a,p,b,I){var j=this.start,X=this.startLoc,re;if(this.isContextual("await")&&this.canAwait)re=this.parseAwait(I),p=!0;else if(this.type.prefix){var fe=this.startNode(),me=this.type===f.incDec;fe.operator=this.value,fe.prefix=!0,this.next(),fe.argument=this.parseMaybeUnary(null,!0,me,I),this.checkExpressionErrors(a,!0),me?this.checkLValSimple(fe.argument):this.strict&&fe.operator==="delete"&&jl(fe.argument)?this.raiseRecoverable(fe.start,"Deleting local variable in strict mode"):fe.operator==="delete"&&Ls(fe.argument)?this.raiseRecoverable(fe.start,"Private fields can not be deleted"):p=!0,re=this.finishNode(fe,me?"UpdateExpression":"UnaryExpression")}else if(!p&&this.type===f.privateId)(I||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),re=this.parsePrivateIdent(),this.type!==f._in&&this.unexpected();else{if(re=this.parseExprSubscripts(a,I),this.checkExpressionErrors(a))return re;for(;this.type.postfix&&!this.canInsertSemicolon();){var Pe=this.startNodeAt(j,X);Pe.operator=this.value,Pe.prefix=!1,Pe.argument=re,this.checkLValSimple(re),this.next(),re=this.finishNode(Pe,"UpdateExpression")}}if(!b&&this.eat(f.starstar))if(p)this.unexpected(this.lastTokStart);else return this.buildBinary(j,X,re,this.parseMaybeUnary(null,!1,!1,I),"**",!1);else return re};function jl(a){return a.type==="Identifier"||a.type==="ParenthesizedExpression"&&jl(a.expression)}function Ls(a){return a.type==="MemberExpression"&&a.property.type==="PrivateIdentifier"||a.type==="ChainExpression"&&Ls(a.expression)||a.type==="ParenthesizedExpression"&&Ls(a.expression)}De.parseExprSubscripts=function(a,p){var b=this.start,I=this.startLoc,j=this.parseExprAtom(a,p);if(j.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return j;var X=this.parseSubscripts(j,b,I,!1,p);return a&&X.type==="MemberExpression"&&(a.parenthesizedAssign>=X.start&&(a.parenthesizedAssign=-1),a.parenthesizedBind>=X.start&&(a.parenthesizedBind=-1),a.trailingComma>=X.start&&(a.trailingComma=-1)),X},De.parseSubscripts=function(a,p,b,I,j){for(var X=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,re=!1;;){var fe=this.parseSubscript(a,p,b,I,X,re,j);if(fe.optional&&(re=!0),fe===a||fe.type==="ArrowFunctionExpression"){if(re){var me=this.startNodeAt(p,b);me.expression=fe,fe=this.finishNode(me,"ChainExpression")}return fe}a=fe}},De.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(f.arrow)},De.parseSubscriptAsyncArrow=function(a,p,b,I){return this.parseArrowExpression(this.startNodeAt(a,p),b,!0,I)},De.parseSubscript=function(a,p,b,I,j,X,re){var fe=this.options.ecmaVersion>=11,me=fe&&this.eat(f.questionDot);I&&me&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var Pe=this.eat(f.bracketL);if(Pe||me&&this.type!==f.parenL&&this.type!==f.backQuote||this.eat(f.dot)){var ze=this.startNodeAt(p,b);ze.object=a,Pe?(ze.property=this.parseExpression(),this.expect(f.bracketR)):this.type===f.privateId&&a.type!=="Super"?ze.property=this.parsePrivateIdent():ze.property=this.parseIdent(this.options.allowReserved!=="never"),ze.computed=!!Pe,fe&&(ze.optional=me),a=this.finishNode(ze,"MemberExpression")}else if(!I&&this.eat(f.parenL)){var ut=new pt,Et=this.yieldPos,Cr=this.awaitPos,er=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var si=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1,ut);if(j&&!me&&this.shouldParseAsyncArrow())return this.checkPatternErrors(ut,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Et,this.awaitPos=Cr,this.awaitIdentPos=er,this.parseSubscriptAsyncArrow(p,b,si,re);this.checkExpressionErrors(ut,!0),this.yieldPos=Et||this.yieldPos,this.awaitPos=Cr||this.awaitPos,this.awaitIdentPos=er||this.awaitIdentPos;var tr=this.startNodeAt(p,b);tr.callee=a,tr.arguments=si,fe&&(tr.optional=me),a=this.finishNode(tr,"CallExpression")}else if(this.type===f.backQuote){(me||X)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var nr=this.startNodeAt(p,b);nr.tag=a,nr.quasi=this.parseTemplate({isTagged:!0}),a=this.finishNode(nr,"TaggedTemplateExpression")}return a},De.parseExprAtom=function(a,p,b){this.type===f.slash&&this.readRegexp();var I,j=this.potentialArrowAt===this.start;switch(this.type){case f._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),I=this.startNode(),this.next(),this.type===f.parenL&&!this.allowDirectSuper&&this.raise(I.start,"super() call outside constructor of a subclass"),this.type!==f.dot&&this.type!==f.bracketL&&this.type!==f.parenL&&this.unexpected(),this.finishNode(I,"Super");case f._this:return I=this.startNode(),this.next(),this.finishNode(I,"ThisExpression");case f.name:var X=this.start,re=this.startLoc,fe=this.containsEsc,me=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!fe&&me.name==="async"&&!this.canInsertSemicolon()&&this.eat(f._function))return this.overrideContext(lt.f_expr),this.parseFunction(this.startNodeAt(X,re),0,!1,!0,p);if(j&&!this.canInsertSemicolon()){if(this.eat(f.arrow))return this.parseArrowExpression(this.startNodeAt(X,re),[me],!1,p);if(this.options.ecmaVersion>=8&&me.name==="async"&&this.type===f.name&&!fe&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return me=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(f.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(X,re),[me],!0,p)}return me;case f.regexp:var Pe=this.value;return I=this.parseLiteral(Pe.value),I.regex={pattern:Pe.pattern,flags:Pe.flags},I;case f.num:case f.string:return this.parseLiteral(this.value);case f._null:case f._true:case f._false:return I=this.startNode(),I.value=this.type===f._null?null:this.type===f._true,I.raw=this.type.keyword,this.next(),this.finishNode(I,"Literal");case f.parenL:var ze=this.start,ut=this.parseParenAndDistinguishExpression(j,p);return a&&(a.parenthesizedAssign<0&&!this.isSimpleAssignTarget(ut)&&(a.parenthesizedAssign=ze),a.parenthesizedBind<0&&(a.parenthesizedBind=ze)),ut;case f.bracketL:return I=this.startNode(),this.next(),I.elements=this.parseExprList(f.bracketR,!0,!0,a),this.finishNode(I,"ArrayExpression");case f.braceL:return this.overrideContext(lt.b_expr),this.parseObj(!1,a);case f._function:return I=this.startNode(),this.next(),this.parseFunction(I,0);case f._class:return this.parseClass(this.startNode(),!1);case f._new:return this.parseNew();case f.backQuote:return this.parseTemplate();case f._import:return this.options.ecmaVersion>=11?this.parseExprImport(b):this.unexpected();default:return this.parseExprAtomDefault()}},De.parseExprAtomDefault=function(){this.unexpected()},De.parseExprImport=function(a){var p=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===f.parenL&&!a)return this.parseDynamicImport(p);if(this.type===f.dot){var b=this.startNodeAt(p.start,p.loc&&p.loc.start);return b.name="import",p.meta=this.finishNode(b,"Identifier"),this.parseImportMeta(p)}else this.unexpected()},De.parseDynamicImport=function(a){if(this.next(),a.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(f.parenR)?a.options=null:(this.expect(f.comma),this.afterTrailingComma(f.parenR)?a.options=null:(a.options=this.parseMaybeAssign(),this.eat(f.parenR)||(this.expect(f.comma),this.afterTrailingComma(f.parenR)||this.unexpected())));else if(!this.eat(f.parenR)){var p=this.start;this.eat(f.comma)&&this.eat(f.parenR)?this.raiseRecoverable(p,"Trailing comma is not allowed in import()"):this.unexpected(p)}return this.finishNode(a,"ImportExpression")},De.parseImportMeta=function(a){this.next();var p=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'"),p&&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")},De.parseLiteral=function(a){var p=this.startNode();return p.value=a,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")},De.parseParenExpression=function(){this.expect(f.parenL);var a=this.parseExpression();return this.expect(f.parenR),a},De.shouldParseArrow=function(a){return!this.canInsertSemicolon()},De.parseParenAndDistinguishExpression=function(a,p){var b=this.start,I=this.startLoc,j,X=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var re=this.start,fe=this.startLoc,me=[],Pe=!0,ze=!1,ut=new pt,Et=this.yieldPos,Cr=this.awaitPos,er;for(this.yieldPos=0,this.awaitPos=0;this.type!==f.parenR;)if(Pe?Pe=!1:this.expect(f.comma),X&&this.afterTrailingComma(f.parenR,!0)){ze=!0;break}else if(this.type===f.ellipsis){er=this.start,me.push(this.parseParenItem(this.parseRestBinding())),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else me.push(this.parseMaybeAssign(!1,ut,this.parseParenItem));var si=this.lastTokEnd,tr=this.lastTokEndLoc;if(this.expect(f.parenR),a&&this.shouldParseArrow(me)&&this.eat(f.arrow))return this.checkPatternErrors(ut,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Et,this.awaitPos=Cr,this.parseParenArrowList(b,I,me,p);(!me.length||ze)&&this.unexpected(this.lastTokStart),er&&this.unexpected(er),this.checkExpressionErrors(ut,!0),this.yieldPos=Et||this.yieldPos,this.awaitPos=Cr||this.awaitPos,me.length>1?(j=this.startNodeAt(re,fe),j.expressions=me,this.finishNodeAt(j,"SequenceExpression",si,tr)):j=me[0]}else j=this.parseParenExpression();if(this.options.preserveParens){var nr=this.startNodeAt(b,I);return nr.expression=j,this.finishNode(nr,"ParenthesizedExpression")}else return j},De.parseParenItem=function(a){return a},De.parseParenArrowList=function(a,p,b,I){return this.parseArrowExpression(this.startNodeAt(a,p),b,!1,I)};var wm=[];De.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===f.dot){var p=this.startNodeAt(a.start,a.loc&&a.loc.start);p.name="new",a.meta=this.finishNode(p,"Identifier"),this.next();var b=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'"),b&&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 I=this.start,j=this.startLoc;return a.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),I,j,!0,!1),this.eat(f.parenL)?a.arguments=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1):a.arguments=wm,this.finishNode(a,"NewExpression")},De.parseTemplateElement=function(a){var p=a.isTagged,b=this.startNode();return this.type===f.invalidTemplate?(p||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),b.value={raw:this.value.replace(/\r\n?/g,`
71
+ `,I-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(R).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=f.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(ee),this.regexpState=null,this.privateNameStack=[]},P={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}};se.prototype.parse=function(){var p=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(p)},P.inFunction.get=function(){return(this.currentVarScope().flags&ne)>0},P.inGenerator.get=function(){return(this.currentVarScope().flags&G)>0},P.inAsync.get=function(){return(this.currentVarScope().flags&le)>0},P.canAwait.get=function(){for(var a=this.scopeStack.length-1;a>=0;a--){var p=this.scopeStack[a],b=p.flags;if(b&(Re|Ve))return!1;if(b&ne)return(b&le)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},P.allowSuper.get=function(){var a=this.currentThisScope(),p=a.flags;return(p&Ie)>0||this.options.allowSuperOutsideMethod},P.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Ce)>0},P.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},P.allowNewDotTarget.get=function(){for(var a=this.scopeStack.length-1;a>=0;a--){var p=this.scopeStack[a],b=p.flags;if(b&(Re|Ve)||b&ne&&!(b&ae))return!0}return!1},P.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Re)>0},se.extend=function(){for(var p=[],b=arguments.length;b--;)p[b]=arguments[b];for(var I=this,j=0;j<p.length;j++)I=p[j](I);return I},se.parse=function(p,b){return new this(b,p).parse()},se.parseExpressionAt=function(p,b,I){var j=new this(I,p,b);return j.nextToken(),j.parseExpression()},se.tokenizer=function(p,b){return new this(b,p)},Object.defineProperties(se.prototype,P);var be=se.prototype,He=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;be.strictDirective=function(a){if(this.options.ecmaVersion<5)return!1;for(;;){U.lastIndex=a,a+=U.exec(this.input)[0].length;var p=He.exec(this.input.slice(a));if(!p)return!1;if((p[1]||p[2])==="use strict"){U.lastIndex=a+p[0].length;var b=U.exec(this.input),I=b.index+b[0].length,j=this.input.charAt(I);return j===";"||j==="}"||R.test(b[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(j)||j==="!"&&this.input.charAt(I+1)==="=")}a+=p[0].length,U.lastIndex=a,a+=U.exec(this.input)[0].length,this.input[a]===";"&&a++}},be.eat=function(a){return this.type===a?(this.next(),!0):!1},be.isContextual=function(a){return this.type===f.name&&this.value===a&&!this.containsEsc},be.eatContextual=function(a){return this.isContextual(a)?(this.next(),!0):!1},be.expectContextual=function(a){this.eatContextual(a)||this.unexpected()},be.canInsertSemicolon=function(){return this.type===f.eof||this.type===f.braceR||R.test(this.input.slice(this.lastTokEnd,this.start))},be.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},be.semicolon=function(){!this.eat(f.semi)&&!this.insertSemicolon()&&this.unexpected()},be.afterTrailingComma=function(a,p){if(this.type===a)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),p||this.next(),!0},be.expect=function(a){this.eat(a)||this.unexpected()},be.unexpected=function(a){this.raise(a??this.start,"Unexpected token")};var pt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};be.checkPatternErrors=function(a,p){if(a){a.trailingComma>-1&&this.raiseRecoverable(a.trailingComma,"Comma is not permitted after the rest element");var b=p?a.parenthesizedAssign:a.parenthesizedBind;b>-1&&this.raiseRecoverable(b,p?"Assigning to rvalue":"Parenthesized pattern")}},be.checkExpressionErrors=function(a,p){if(!a)return!1;var b=a.shorthandAssign,I=a.doubleProto;if(!p)return b>=0||I>=0;b>=0&&this.raise(b,"Shorthand property assignments are valid only in destructuring patterns"),I>=0&&this.raiseRecoverable(I,"Redefinition of __proto__ property")},be.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")},be.isSimpleAssignTarget=function(a){return a.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(a.expression):a.type==="Identifier"||a.type==="MemberExpression"};var he=se.prototype;he.parseTopLevel=function(a){var p=Object.create(null);for(a.body||(a.body=[]);this.type!==f.eof;){var b=this.parseStatement(null,!0,p);a.body.push(b)}if(this.inModule)for(var I=0,j=Object.keys(this.undefinedExports);I<j.length;I+=1){var X=j[I];this.raiseRecoverable(this.undefinedExports[X].start,"Export '"+X+"' is not defined")}return this.adaptDirectivePrologue(a.body),this.next(),a.sourceType=this.options.sourceType,this.finishNode(a,"Program")};var Me={kind:"loop"},dt={kind:"switch"};he.isLet=function(a){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;U.lastIndex=this.pos;var p=U.exec(this.input),b=this.pos+p[0].length,I=this.input.charCodeAt(b);if(I===91||I===92)return!0;if(a)return!1;if(I===123||I>55295&&I<56320)return!0;if(w(I,!0)){for(var j=b+1;S(I=this.input.charCodeAt(j),!0);)++j;if(I===92||I>55295&&I<56320)return!0;var X=this.input.slice(b,j);if(!d.test(X))return!0}return!1},he.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;U.lastIndex=this.pos;var a=U.exec(this.input),p=this.pos+a[0].length,b;return!R.test(this.input.slice(this.pos,p))&&this.input.slice(p,p+8)==="function"&&(p+8===this.input.length||!(S(b=this.input.charCodeAt(p+8))||b>55295&&b<56320))},he.isUsingKeyword=function(a,p){if(this.options.ecmaVersion<17||!this.isContextual(a?"await":"using"))return!1;U.lastIndex=this.pos;var b=U.exec(this.input),I=this.pos+b[0].length;if(R.test(this.input.slice(this.pos,I)))return!1;if(a){var j=I+5,X;if(this.input.slice(I,j)!=="using"||j===this.input.length||S(X=this.input.charCodeAt(j))||X>55295&&X<56320)return!1;U.lastIndex=j;var re=U.exec(this.input);if(re&&R.test(this.input.slice(j,j+re[0].length)))return!1}if(p){var fe=I+2,me;if(this.input.slice(I,fe)==="of"&&(fe===this.input.length||!S(me=this.input.charCodeAt(fe))&&!(me>55295&&me<56320)))return!1}var Pe=this.input.charCodeAt(I);return w(Pe,!0)||Pe===92},he.isAwaitUsing=function(a){return this.isUsingKeyword(!0,a)},he.isUsing=function(a){return this.isUsingKeyword(!1,a)},he.parseStatement=function(a,p,b){var I=this.type,j=this.startNode(),X;switch(this.isLet(a)&&(I=f._var,X="let"),I){case f._break:case f._continue:return this.parseBreakContinueStatement(j,I.keyword);case f._debugger:return this.parseDebuggerStatement(j);case f._do:return this.parseDoStatement(j);case f._for:return this.parseForStatement(j);case f._function:return a&&(this.strict||a!=="if"&&a!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(j,!1,!a);case f._class:return a&&this.unexpected(),this.parseClass(j,!0);case f._if:return this.parseIfStatement(j);case f._return:return this.parseReturnStatement(j);case f._switch:return this.parseSwitchStatement(j);case f._throw:return this.parseThrowStatement(j);case f._try:return this.parseTryStatement(j);case f._const:case f._var:return X=X||this.value,a&&X!=="var"&&this.unexpected(),this.parseVarStatement(j,X);case f._while:return this.parseWhileStatement(j);case f._with:return this.parseWithStatement(j);case f.braceL:return this.parseBlock(!0,j);case f.semi:return this.parseEmptyStatement(j);case f._export:case f._import:if(this.options.ecmaVersion>10&&I===f._import){U.lastIndex=this.pos;var re=U.exec(this.input),fe=this.pos+re[0].length,me=this.input.charCodeAt(fe);if(me===40||me===46)return this.parseExpressionStatement(j,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'")),I===f._import?this.parseImport(j):this.parseExport(j,b);default:if(this.isAsyncFunction())return a&&this.unexpected(),this.next(),this.parseFunctionStatement(j,!0,!a);var Pe=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(Pe)return p&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),Pe==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(j,!1,Pe),this.semicolon(),this.finishNode(j,"VariableDeclaration");var ze=this.value,ut=this.parseExpression();return I===f.name&&ut.type==="Identifier"&&this.eat(f.colon)?this.parseLabeledStatement(j,ze,ut,a):this.parseExpressionStatement(j,ut)}},he.parseBreakContinueStatement=function(a,p){var b=p==="break";this.next(),this.eat(f.semi)||this.insertSemicolon()?a.label=null:this.type!==f.name?this.unexpected():(a.label=this.parseIdent(),this.semicolon());for(var I=0;I<this.labels.length;++I){var j=this.labels[I];if((a.label==null||j.name===a.label.name)&&(j.kind!=null&&(b||j.kind==="loop")||a.label&&b))break}return I===this.labels.length&&this.raise(a.start,"Unsyntactic "+p),this.finishNode(a,b?"BreakStatement":"ContinueStatement")},he.parseDebuggerStatement=function(a){return this.next(),this.semicolon(),this.finishNode(a,"DebuggerStatement")},he.parseDoStatement=function(a){return this.next(),this.labels.push(Me),a.body=this.parseStatement("do"),this.labels.pop(),this.expect(f._while),a.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(f.semi):this.semicolon(),this.finishNode(a,"DoWhileStatement")},he.parseForStatement=function(a){this.next();var p=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Me),this.enterScope(0),this.expect(f.parenL),this.type===f.semi)return p>-1&&this.unexpected(p),this.parseFor(a,null);var b=this.isLet();if(this.type===f._var||this.type===f._const||b){var I=this.startNode(),j=b?"let":this.value;return this.next(),this.parseVar(I,!0,j),this.finishNode(I,"VariableDeclaration"),this.parseForAfterInit(a,I,p)}var X=this.isContextual("let"),re=!1,fe=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(fe){var me=this.startNode();return this.next(),fe==="await using"&&this.next(),this.parseVar(me,!0,fe),this.finishNode(me,"VariableDeclaration"),this.parseForAfterInit(a,me,p)}var Pe=this.containsEsc,ze=new pt,ut=this.start,Et=p>-1?this.parseExprSubscripts(ze,"await"):this.parseExpression(!0,ze);return this.type===f._in||(re=this.options.ecmaVersion>=6&&this.isContextual("of"))?(p>-1?(this.type===f._in&&this.unexpected(p),a.await=!0):re&&this.options.ecmaVersion>=8&&(Et.start===ut&&!Pe&&Et.type==="Identifier"&&Et.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(a.await=!1)),X&&re&&this.raise(Et.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(Et,!1,ze),this.checkLValPattern(Et),this.parseForIn(a,Et)):(this.checkExpressionErrors(ze,!0),p>-1&&this.unexpected(p),this.parseFor(a,Et))},he.parseForAfterInit=function(a,p,b){return(this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&p.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===f._in?b>-1&&this.unexpected(b):a.await=b>-1),this.parseForIn(a,p)):(b>-1&&this.unexpected(b),this.parseFor(a,p))},he.parseFunctionStatement=function(a,p,b){return this.next(),this.parseFunction(a,ct|(b?0:St),!1,p)},he.parseIfStatement=function(a){return this.next(),a.test=this.parseParenExpression(),a.consequent=this.parseStatement("if"),a.alternate=this.eat(f._else)?this.parseStatement("if"):null,this.finishNode(a,"IfStatement")},he.parseReturnStatement=function(a){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(f.semi)||this.insertSemicolon()?a.argument=null:(a.argument=this.parseExpression(),this.semicolon()),this.finishNode(a,"ReturnStatement")},he.parseSwitchStatement=function(a){this.next(),a.discriminant=this.parseParenExpression(),a.cases=[],this.expect(f.braceL),this.labels.push(dt),this.enterScope(0);for(var p,b=!1;this.type!==f.braceR;)if(this.type===f._case||this.type===f._default){var I=this.type===f._case;p&&this.finishNode(p,"SwitchCase"),a.cases.push(p=this.startNode()),p.consequent=[],this.next(),I?p.test=this.parseExpression():(b&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),b=!0,p.test=null),this.expect(f.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(a,"SwitchStatement")},he.parseThrowStatement=function(a){return this.next(),R.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 Mt=[];he.parseCatchClauseParam=function(){var a=this.parseBindingAtom(),p=a.type==="Identifier";return this.enterScope(p?ce:0),this.checkLValPattern(a,p?Vt:Je),this.expect(f.parenR),a},he.parseTryStatement=function(a){if(this.next(),a.block=this.parseBlock(),a.handler=null,this.type===f._catch){var p=this.startNode();this.next(),this.eat(f.parenL)?p.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),p.param=null,this.enterScope(0)),p.body=this.parseBlock(!1),this.exitScope(),a.handler=this.finishNode(p,"CatchClause")}return a.finalizer=this.eat(f._finally)?this.parseBlock():null,!a.handler&&!a.finalizer&&this.raise(a.start,"Missing catch or finally clause"),this.finishNode(a,"TryStatement")},he.parseVarStatement=function(a,p,b){return this.next(),this.parseVar(a,!1,p,b),this.semicolon(),this.finishNode(a,"VariableDeclaration")},he.parseWhileStatement=function(a){return this.next(),a.test=this.parseParenExpression(),this.labels.push(Me),a.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(a,"WhileStatement")},he.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")},he.parseEmptyStatement=function(a){return this.next(),this.finishNode(a,"EmptyStatement")},he.parseLabeledStatement=function(a,p,b,I){for(var j=0,X=this.labels;j<X.length;j+=1){var re=X[j];re.name===p&&this.raise(b.start,"Label '"+p+"' is already declared")}for(var fe=this.type.isLoop?"loop":this.type===f._switch?"switch":null,me=this.labels.length-1;me>=0;me--){var Pe=this.labels[me];if(Pe.statementStart===a.start)Pe.statementStart=this.start,Pe.kind=fe;else break}return this.labels.push({name:p,kind:fe,statementStart:this.start}),a.body=this.parseStatement(I?I.indexOf("label")===-1?I+"label":I:"label"),this.labels.pop(),a.label=b,this.finishNode(a,"LabeledStatement")},he.parseExpressionStatement=function(a,p){return a.expression=p,this.semicolon(),this.finishNode(a,"ExpressionStatement")},he.parseBlock=function(a,p,b){for(a===void 0&&(a=!0),p===void 0&&(p=this.startNode()),p.body=[],this.expect(f.braceL),a&&this.enterScope(0);this.type!==f.braceR;){var I=this.parseStatement(null);p.body.push(I)}return b&&(this.strict=!1),this.next(),a&&this.exitScope(),this.finishNode(p,"BlockStatement")},he.parseFor=function(a,p){return a.init=p,this.expect(f.semi),a.test=this.type===f.semi?null:this.parseExpression(),this.expect(f.semi),a.update=this.type===f.parenR?null:this.parseExpression(),this.expect(f.parenR),a.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(a,"ForStatement")},he.parseForIn=function(a,p){var b=this.type===f._in;return this.next(),p.type==="VariableDeclaration"&&p.declarations[0].init!=null&&(!b||this.options.ecmaVersion<8||this.strict||p.kind!=="var"||p.declarations[0].id.type!=="Identifier")&&this.raise(p.start,(b?"for-in":"for-of")+" loop variable declaration may not have an initializer"),a.left=p,a.right=b?this.parseExpression():this.parseMaybeAssign(),this.expect(f.parenR),a.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(a,b?"ForInStatement":"ForOfStatement")},he.parseVar=function(a,p,b,I){for(a.declarations=[],a.kind=b;;){var j=this.startNode();if(this.parseVarId(j,b),this.eat(f.eq)?j.init=this.parseMaybeAssign(p):!I&&b==="const"&&!(this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!I&&(b==="using"||b==="await using")&&this.options.ecmaVersion>=17&&this.type!==f._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+b+" declaration"):!I&&j.id.type!=="Identifier"&&!(p&&(this.type===f._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):j.init=null,a.declarations.push(this.finishNode(j,"VariableDeclarator")),!this.eat(f.comma))break}return a},he.parseVarId=function(a,p){a.id=p==="using"||p==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(a.id,p==="var"?vt:Je,!1)};var ct=1,St=2,wt=4;he.parseFunction=function(a,p,b,I,j){this.initFunction(a),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!I)&&(this.type===f.star&&p&St&&this.unexpected(),a.generator=this.eat(f.star)),this.options.ecmaVersion>=8&&(a.async=!!I),p&ct&&(a.id=p&wt&&this.type!==f.name?null:this.parseIdent(),a.id&&!(p&St)&&this.checkLValSimple(a.id,this.strict||a.generator||a.async?this.treatFunctionsAsVar?vt:Je:Fe));var X=this.yieldPos,re=this.awaitPos,fe=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ne(a.async,a.generator)),p&ct||(a.id=this.type===f.name?this.parseIdent():null),this.parseFunctionParams(a),this.parseFunctionBody(a,b,!1,j),this.yieldPos=X,this.awaitPos=re,this.awaitIdentPos=fe,this.finishNode(a,p&ct?"FunctionDeclaration":"FunctionExpression")},he.parseFunctionParams=function(a){this.expect(f.parenL),a.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},he.parseClass=function(a,p){this.next();var b=this.strict;this.strict=!0,this.parseClassId(a,p),this.parseClassSuper(a);var I=this.enterClassBody(),j=this.startNode(),X=!1;for(j.body=[],this.expect(f.braceL);this.type!==f.braceR;){var re=this.parseClassElement(a.superClass!==null);re&&(j.body.push(re),re.type==="MethodDefinition"&&re.kind==="constructor"?(X&&this.raiseRecoverable(re.start,"Duplicate constructor in the same class"),X=!0):re.key&&re.key.type==="PrivateIdentifier"&&Xn(I,re)&&this.raiseRecoverable(re.key.start,"Identifier '#"+re.key.name+"' has already been declared"))}return this.strict=b,this.next(),a.body=this.finishNode(j,"ClassBody"),this.exitClassBody(),this.finishNode(a,p?"ClassDeclaration":"ClassExpression")},he.parseClassElement=function(a){if(this.eat(f.semi))return null;var p=this.options.ecmaVersion,b=this.startNode(),I="",j=!1,X=!1,re="method",fe=!1;if(this.eatContextual("static")){if(p>=13&&this.eat(f.braceL))return this.parseClassStaticBlock(b),b;this.isClassElementNameStart()||this.type===f.star?fe=!0:I="static"}if(b.static=fe,!I&&p>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===f.star)&&!this.canInsertSemicolon()?X=!0:I="async"),!I&&(p>=9||!X)&&this.eat(f.star)&&(j=!0),!I&&!X&&!j){var me=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?re=me:I=me)}if(I?(b.computed=!1,b.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),b.key.name=I,this.finishNode(b.key,"Identifier")):this.parseClassElementName(b),p<13||this.type===f.parenL||re!=="method"||j||X){var Pe=!b.static&&un(b,"constructor"),ze=Pe&&a;Pe&&re!=="method"&&this.raise(b.key.start,"Constructor can't have get/set modifier"),b.kind=Pe?"constructor":re,this.parseClassMethod(b,j,X,ze)}else this.parseClassField(b);return b},he.isClassElementNameStart=function(){return this.type===f.name||this.type===f.privateId||this.type===f.num||this.type===f.string||this.type===f.bracketL||this.type.keyword},he.parseClassElementName=function(a){this.type===f.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)},he.parseClassMethod=function(a,p,b,I){var j=a.key;a.kind==="constructor"?(p&&this.raise(j.start,"Constructor can't be a generator"),b&&this.raise(j.start,"Constructor can't be an async method")):a.static&&un(a,"prototype")&&this.raise(j.start,"Classes may not have a static property named prototype");var X=a.value=this.parseMethod(p,b,I);return a.kind==="get"&&X.params.length!==0&&this.raiseRecoverable(X.start,"getter should have no params"),a.kind==="set"&&X.params.length!==1&&this.raiseRecoverable(X.start,"setter should have exactly one param"),a.kind==="set"&&X.params[0].type==="RestElement"&&this.raiseRecoverable(X.params[0].start,"Setter cannot use rest params"),this.finishNode(a,"MethodDefinition")},he.parseClassField=function(a){return un(a,"constructor")?this.raise(a.key.start,"Classes can't have a field named 'constructor'"):a.static&&un(a,"prototype")&&this.raise(a.key.start,"Classes can't have a static field named 'prototype'"),this.eat(f.eq)?(this.enterScope(Ve|Ie),a.value=this.parseMaybeAssign(),this.exitScope()):a.value=null,this.semicolon(),this.finishNode(a,"PropertyDefinition")},he.parseClassStaticBlock=function(a){a.body=[];var p=this.labels;for(this.labels=[],this.enterScope(Re|Ie);this.type!==f.braceR;){var b=this.parseStatement(null);a.body.push(b)}return this.next(),this.exitScope(),this.labels=p,this.finishNode(a,"StaticBlock")},he.parseClassId=function(a,p){this.type===f.name?(a.id=this.parseIdent(),p&&this.checkLValSimple(a.id,Je,!1)):(p===!0&&this.unexpected(),a.id=null)},he.parseClassSuper=function(a){a.superClass=this.eat(f._extends)?this.parseExprSubscripts(null,!1):null},he.enterClassBody=function(){var a={declared:Object.create(null),used:[]};return this.privateNameStack.push(a),a.declared},he.exitClassBody=function(){var a=this.privateNameStack.pop(),p=a.declared,b=a.used;if(this.options.checkPrivateFields)for(var I=this.privateNameStack.length,j=I===0?null:this.privateNameStack[I-1],X=0;X<b.length;++X){var re=b[X];Z(p,re.name)||(j?j.used.push(re):this.raiseRecoverable(re.start,"Private field '#"+re.name+"' must be declared in an enclosing class"))}};function Xn(a,p){var b=p.key.name,I=a[b],j="true";return p.type==="MethodDefinition"&&(p.kind==="get"||p.kind==="set")&&(j=(p.static?"s":"i")+p.kind),I==="iget"&&j==="iset"||I==="iset"&&j==="iget"||I==="sget"&&j==="sset"||I==="sset"&&j==="sget"?(a[b]="true",!1):I?!0:(a[b]=j,!1)}function un(a,p){var b=a.computed,I=a.key;return!b&&(I.type==="Identifier"&&I.name===p||I.type==="Literal"&&I.value===p)}he.parseExportAllDeclaration=function(a,p){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(a.exported=this.parseModuleExportName(),this.checkExport(p,a.exported,this.lastTokStart)):a.exported=null),this.expectContextual("from"),this.type!==f.string&&this.unexpected(),a.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(a,"ExportAllDeclaration")},he.parseExport=function(a,p){if(this.next(),this.eat(f.star))return this.parseExportAllDeclaration(a,p);if(this.eat(f._default))return this.checkExport(p,"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(p,a.declaration.declarations):this.checkExport(p,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(p),this.eatContextual("from"))this.type!==f.string&&this.unexpected(),a.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause());else{for(var b=0,I=a.specifiers;b<I.length;b+=1){var j=I[b];this.checkUnreserved(j.local),this.checkLocalExport(j.local),j.local.type==="Literal"&&this.raise(j.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")},he.parseExportDeclaration=function(a){return this.parseStatement(null)},he.parseExportDefaultDeclaration=function(){var a;if(this.type===f._function||(a=this.isAsyncFunction())){var p=this.startNode();return this.next(),a&&this.next(),this.parseFunction(p,ct|wt,!1,a)}else if(this.type===f._class){var b=this.startNode();return this.parseClass(b,"nullableID")}else{var I=this.parseMaybeAssign();return this.semicolon(),I}},he.checkExport=function(a,p,b){a&&(typeof p!="string"&&(p=p.type==="Identifier"?p.name:p.value),Z(a,p)&&this.raiseRecoverable(b,"Duplicate export '"+p+"'"),a[p]=!0)},he.checkPatternExport=function(a,p){var b=p.type;if(b==="Identifier")this.checkExport(a,p,p.start);else if(b==="ObjectPattern")for(var I=0,j=p.properties;I<j.length;I+=1){var X=j[I];this.checkPatternExport(a,X)}else if(b==="ArrayPattern")for(var re=0,fe=p.elements;re<fe.length;re+=1){var me=fe[re];me&&this.checkPatternExport(a,me)}else b==="Property"?this.checkPatternExport(a,p.value):b==="AssignmentPattern"?this.checkPatternExport(a,p.left):b==="RestElement"&&this.checkPatternExport(a,p.argument)},he.checkVariableExport=function(a,p){if(a)for(var b=0,I=p;b<I.length;b+=1){var j=I[b];this.checkPatternExport(a,j.id)}},he.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},he.parseExportSpecifier=function(a){var p=this.startNode();return p.local=this.parseModuleExportName(),p.exported=this.eatContextual("as")?this.parseModuleExportName():p.local,this.checkExport(a,p.exported,p.exported.start),this.finishNode(p,"ExportSpecifier")},he.parseExportSpecifiers=function(a){var p=[],b=!0;for(this.expect(f.braceL);!this.eat(f.braceR);){if(b)b=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;p.push(this.parseExportSpecifier(a))}return p},he.parseImport=function(a){return this.next(),this.type===f.string?(a.specifiers=Mt,a.source=this.parseExprAtom()):(a.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),a.source=this.type===f.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(a,"ImportDeclaration")},he.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,Je),this.finishNode(a,"ImportSpecifier")},he.parseImportDefaultSpecifier=function(){var a=this.startNode();return a.local=this.parseIdent(),this.checkLValSimple(a.local,Je),this.finishNode(a,"ImportDefaultSpecifier")},he.parseImportNamespaceSpecifier=function(){var a=this.startNode();return this.next(),this.expectContextual("as"),a.local=this.parseIdent(),this.checkLValSimple(a.local,Je),this.finishNode(a,"ImportNamespaceSpecifier")},he.parseImportSpecifiers=function(){var a=[],p=!0;if(this.type===f.name&&(a.push(this.parseImportDefaultSpecifier()),!this.eat(f.comma)))return a;if(this.type===f.star)return a.push(this.parseImportNamespaceSpecifier()),a;for(this.expect(f.braceL);!this.eat(f.braceR);){if(p)p=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;a.push(this.parseImportSpecifier())}return a},he.parseWithClause=function(){var a=[];if(!this.eat(f._with))return a;this.expect(f.braceL);for(var p={},b=!0;!this.eat(f.braceR);){if(b)b=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;var I=this.parseImportAttribute(),j=I.key.type==="Identifier"?I.key.name:I.key.value;Z(p,j)&&this.raiseRecoverable(I.key.start,"Duplicate attribute key '"+j+"'"),p[j]=!0,a.push(I)}return a},he.parseImportAttribute=function(){var a=this.startNode();return a.key=this.type===f.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(f.colon),this.type!==f.string&&this.unexpected(),a.value=this.parseExprAtom(),this.finishNode(a,"ImportAttribute")},he.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===f.string){var a=this.parseLiteral(this.value);return M.test(a.value)&&this.raise(a.start,"An export name cannot include a lone surrogate."),a}return this.parseIdent(!0)},he.adaptDirectivePrologue=function(a){for(var p=0;p<a.length&&this.isDirectiveCandidate(a[p]);++p)a[p].directive=a[p].expression.raw.slice(1,-1)},he.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=se.prototype;_t.toAssignable=function(a,p,b){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",b&&this.checkPatternErrors(b,!0);for(var I=0,j=a.properties;I<j.length;I+=1){var X=j[I];this.toAssignable(X,p),X.type==="RestElement"&&(X.argument.type==="ArrayPattern"||X.argument.type==="ObjectPattern")&&this.raise(X.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,p);break;case"ArrayExpression":a.type="ArrayPattern",b&&this.checkPatternErrors(b,!0),this.toAssignableList(a.elements,p);break;case"SpreadElement":a.type="RestElement",this.toAssignable(a.argument,p),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,p);break;case"ParenthesizedExpression":this.toAssignable(a.expression,p,b);break;case"ChainExpression":this.raiseRecoverable(a.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!p)break;default:this.raise(a.start,"Assigning to rvalue")}else b&&this.checkPatternErrors(b,!0);return a},_t.toAssignableList=function(a,p){for(var b=a.length,I=0;I<b;I++){var j=a[I];j&&this.toAssignable(j,p)}if(b){var X=a[b-1];this.options.ecmaVersion===6&&p&&X&&X.type==="RestElement"&&X.argument.type!=="Identifier"&&this.unexpected(X.argument.start)}return a},_t.parseSpread=function(a){var p=this.startNode();return this.next(),p.argument=this.parseMaybeAssign(!1,a),this.finishNode(p,"SpreadElement")},_t.parseRestBinding=function(){var a=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==f.name&&this.unexpected(),a.argument=this.parseBindingAtom(),this.finishNode(a,"RestElement")},_t.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case f.bracketL:var a=this.startNode();return this.next(),a.elements=this.parseBindingList(f.bracketR,!0,!0),this.finishNode(a,"ArrayPattern");case f.braceL:return this.parseObj(!0)}return this.parseIdent()},_t.parseBindingList=function(a,p,b,I){for(var j=[],X=!0;!this.eat(a);)if(X?X=!1:this.expect(f.comma),p&&this.type===f.comma)j.push(null);else{if(b&&this.afterTrailingComma(a))break;if(this.type===f.ellipsis){var re=this.parseRestBinding();this.parseBindingListItem(re),j.push(re),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(a);break}else j.push(this.parseAssignableListItem(I))}return j},_t.parseAssignableListItem=function(a){var p=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(p),p},_t.parseBindingListItem=function(a){return a},_t.parseMaybeDefault=function(a,p,b){if(b=b||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(f.eq))return b;var I=this.startNodeAt(a,p);return I.left=b,I.right=this.parseMaybeAssign(),this.finishNode(I,"AssignmentPattern")},_t.checkLValSimple=function(a,p,b){p===void 0&&(p=Ke);var I=p!==Ke;switch(a.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(a.name)&&this.raiseRecoverable(a.start,(I?"Binding ":"Assigning to ")+a.name+" in strict mode"),I&&(p===Je&&a.name==="let"&&this.raiseRecoverable(a.start,"let is disallowed as a lexically bound name"),b&&(Z(b,a.name)&&this.raiseRecoverable(a.start,"Argument name clash"),b[a.name]=!0),p!==oe&&this.declareName(a.name,p,a.start));break;case"ChainExpression":this.raiseRecoverable(a.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":I&&this.raiseRecoverable(a.start,"Binding member expression");break;case"ParenthesizedExpression":return I&&this.raiseRecoverable(a.start,"Binding parenthesized expression"),this.checkLValSimple(a.expression,p,b);default:this.raise(a.start,(I?"Binding":"Assigning to")+" rvalue")}},_t.checkLValPattern=function(a,p,b){switch(p===void 0&&(p=Ke),a.type){case"ObjectPattern":for(var I=0,j=a.properties;I<j.length;I+=1){var X=j[I];this.checkLValInnerPattern(X,p,b)}break;case"ArrayPattern":for(var re=0,fe=a.elements;re<fe.length;re+=1){var me=fe[re];me&&this.checkLValInnerPattern(me,p,b)}break;default:this.checkLValSimple(a,p,b)}},_t.checkLValInnerPattern=function(a,p,b){switch(p===void 0&&(p=Ke),a.type){case"Property":this.checkLValInnerPattern(a.value,p,b);break;case"AssignmentPattern":this.checkLValPattern(a.left,p,b);break;case"RestElement":this.checkLValPattern(a.argument,p,b);break;default:this.checkLValPattern(a,p,b)}};var qt=function(p,b,I,j,X){this.token=p,this.isExpr=!!b,this.preserveSpace=!!I,this.override=j,this.generator=!!X},lt={b_stat:new qt("{",!1),b_expr:new qt("{",!0),b_tmpl:new qt("${",!1),p_stat:new qt("(",!1),p_expr:new qt("(",!0),q_tmpl:new qt("`",!0,!0,function(a){return a.tryReadTemplateToken()}),f_stat:new qt("function",!1),f_expr:new qt("function",!0),f_expr_gen:new qt("function",!0,!1,null,!0),f_gen:new qt("function",!1,!1,null,!0)},Zn=se.prototype;Zn.initialContext=function(){return[lt.b_stat]},Zn.curContext=function(){return this.context[this.context.length-1]},Zn.braceIsBlock=function(a){var p=this.curContext();return p===lt.f_expr||p===lt.f_stat?!0:a===f.colon&&(p===lt.b_stat||p===lt.b_expr)?!p.isExpr:a===f._return||a===f.name&&this.exprAllowed?R.test(this.input.slice(this.lastTokEnd,this.start)):a===f._else||a===f.semi||a===f.eof||a===f.parenR||a===f.arrow?!0:a===f.braceL?p===lt.b_stat:a===f._var||a===f._const||a===f.name?!1:!this.exprAllowed},Zn.inGeneratorContext=function(){for(var a=this.context.length-1;a>=1;a--){var p=this.context[a];if(p.token==="function")return p.generator}return!1},Zn.updateContext=function(a){var p,b=this.type;b.keyword&&a===f.dot?this.exprAllowed=!1:(p=b.updateContext)?p.call(this,a):this.exprAllowed=b.beforeExpr},Zn.overrideContext=function(a){this.curContext()!==a&&(this.context[this.context.length-1]=a)},f.parenR.updateContext=f.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var a=this.context.pop();a===lt.b_stat&&this.curContext().token==="function"&&(a=this.context.pop()),this.exprAllowed=!a.isExpr},f.braceL.updateContext=function(a){this.context.push(this.braceIsBlock(a)?lt.b_stat:lt.b_expr),this.exprAllowed=!0},f.dollarBraceL.updateContext=function(){this.context.push(lt.b_tmpl),this.exprAllowed=!0},f.parenL.updateContext=function(a){var p=a===f._if||a===f._for||a===f._with||a===f._while;this.context.push(p?lt.p_stat:lt.p_expr),this.exprAllowed=!0},f.incDec.updateContext=function(){},f._function.updateContext=f._class.updateContext=function(a){a.beforeExpr&&a!==f._else&&!(a===f.semi&&this.curContext()!==lt.p_stat)&&!(a===f._return&&R.test(this.input.slice(this.lastTokEnd,this.start)))&&!((a===f.colon||a===f.braceL)&&this.curContext()===lt.b_stat)?this.context.push(lt.f_expr):this.context.push(lt.f_stat),this.exprAllowed=!1},f.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},f.backQuote.updateContext=function(){this.curContext()===lt.q_tmpl?this.context.pop():this.context.push(lt.q_tmpl),this.exprAllowed=!1},f.star.updateContext=function(a){if(a===f._function){var p=this.context.length-1;this.context[p]===lt.f_expr?this.context[p]=lt.f_expr_gen:this.context[p]=lt.f_gen}this.exprAllowed=!0},f.name.updateContext=function(a){var p=!1;this.options.ecmaVersion>=6&&a!==f.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(p=!0),this.exprAllowed=p};var De=se.prototype;De.checkPropClash=function(a,p,b){if(!(this.options.ecmaVersion>=9&&a.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(a.computed||a.method||a.shorthand))){var I=a.key,j;switch(I.type){case"Identifier":j=I.name;break;case"Literal":j=String(I.value);break;default:return}var X=a.kind;if(this.options.ecmaVersion>=6){j==="__proto__"&&X==="init"&&(p.proto&&(b?b.doubleProto<0&&(b.doubleProto=I.start):this.raiseRecoverable(I.start,"Redefinition of __proto__ property")),p.proto=!0);return}j="$"+j;var re=p[j];if(re){var fe;X==="init"?fe=this.strict&&re.init||re.get||re.set:fe=re.init||re[X],fe&&this.raiseRecoverable(I.start,"Redefinition of property")}else re=p[j]={init:!1,get:!1,set:!1};re[X]=!0}},De.parseExpression=function(a,p){var b=this.start,I=this.startLoc,j=this.parseMaybeAssign(a,p);if(this.type===f.comma){var X=this.startNodeAt(b,I);for(X.expressions=[j];this.eat(f.comma);)X.expressions.push(this.parseMaybeAssign(a,p));return this.finishNode(X,"SequenceExpression")}return j},De.parseMaybeAssign=function(a,p,b){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(a);this.exprAllowed=!1}var I=!1,j=-1,X=-1,re=-1;p?(j=p.parenthesizedAssign,X=p.trailingComma,re=p.doubleProto,p.parenthesizedAssign=p.trailingComma=-1):(p=new pt,I=!0);var fe=this.start,me=this.startLoc;(this.type===f.parenL||this.type===f.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=a==="await");var Pe=this.parseMaybeConditional(a,p);if(b&&(Pe=b.call(this,Pe,fe,me)),this.type.isAssign){var ze=this.startNodeAt(fe,me);return ze.operator=this.value,this.type===f.eq&&(Pe=this.toAssignable(Pe,!1,p)),I||(p.parenthesizedAssign=p.trailingComma=p.doubleProto=-1),p.shorthandAssign>=Pe.start&&(p.shorthandAssign=-1),this.type===f.eq?this.checkLValPattern(Pe):this.checkLValSimple(Pe),ze.left=Pe,this.next(),ze.right=this.parseMaybeAssign(a),re>-1&&(p.doubleProto=re),this.finishNode(ze,"AssignmentExpression")}else I&&this.checkExpressionErrors(p,!0);return j>-1&&(p.parenthesizedAssign=j),X>-1&&(p.trailingComma=X),Pe},De.parseMaybeConditional=function(a,p){var b=this.start,I=this.startLoc,j=this.parseExprOps(a,p);if(this.checkExpressionErrors(p))return j;if(this.eat(f.question)){var X=this.startNodeAt(b,I);return X.test=j,X.consequent=this.parseMaybeAssign(),this.expect(f.colon),X.alternate=this.parseMaybeAssign(a),this.finishNode(X,"ConditionalExpression")}return j},De.parseExprOps=function(a,p){var b=this.start,I=this.startLoc,j=this.parseMaybeUnary(p,!1,!1,a);return this.checkExpressionErrors(p)||j.start===b&&j.type==="ArrowFunctionExpression"?j:this.parseExprOp(j,b,I,-1,a)},De.parseExprOp=function(a,p,b,I,j){var X=this.type.binop;if(X!=null&&(!j||this.type!==f._in)&&X>I){var re=this.type===f.logicalOR||this.type===f.logicalAND,fe=this.type===f.coalesce;fe&&(X=f.logicalAND.binop);var me=this.value;this.next();var Pe=this.start,ze=this.startLoc,ut=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,j),Pe,ze,X,j),Et=this.buildBinary(p,b,a,ut,me,re||fe);return(re&&this.type===f.coalesce||fe&&(this.type===f.logicalOR||this.type===f.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(Et,p,b,I,j)}return a},De.buildBinary=function(a,p,b,I,j,X){I.type==="PrivateIdentifier"&&this.raise(I.start,"Private identifier can only be left side of binary expression");var re=this.startNodeAt(a,p);return re.left=b,re.operator=j,re.right=I,this.finishNode(re,X?"LogicalExpression":"BinaryExpression")},De.parseMaybeUnary=function(a,p,b,I){var j=this.start,X=this.startLoc,re;if(this.isContextual("await")&&this.canAwait)re=this.parseAwait(I),p=!0;else if(this.type.prefix){var fe=this.startNode(),me=this.type===f.incDec;fe.operator=this.value,fe.prefix=!0,this.next(),fe.argument=this.parseMaybeUnary(null,!0,me,I),this.checkExpressionErrors(a,!0),me?this.checkLValSimple(fe.argument):this.strict&&fe.operator==="delete"&&jl(fe.argument)?this.raiseRecoverable(fe.start,"Deleting local variable in strict mode"):fe.operator==="delete"&&Ls(fe.argument)?this.raiseRecoverable(fe.start,"Private fields can not be deleted"):p=!0,re=this.finishNode(fe,me?"UpdateExpression":"UnaryExpression")}else if(!p&&this.type===f.privateId)(I||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),re=this.parsePrivateIdent(),this.type!==f._in&&this.unexpected();else{if(re=this.parseExprSubscripts(a,I),this.checkExpressionErrors(a))return re;for(;this.type.postfix&&!this.canInsertSemicolon();){var Pe=this.startNodeAt(j,X);Pe.operator=this.value,Pe.prefix=!1,Pe.argument=re,this.checkLValSimple(re),this.next(),re=this.finishNode(Pe,"UpdateExpression")}}if(!b&&this.eat(f.starstar))if(p)this.unexpected(this.lastTokStart);else return this.buildBinary(j,X,re,this.parseMaybeUnary(null,!1,!1,I),"**",!1);else return re};function jl(a){return a.type==="Identifier"||a.type==="ParenthesizedExpression"&&jl(a.expression)}function Ls(a){return a.type==="MemberExpression"&&a.property.type==="PrivateIdentifier"||a.type==="ChainExpression"&&Ls(a.expression)||a.type==="ParenthesizedExpression"&&Ls(a.expression)}De.parseExprSubscripts=function(a,p){var b=this.start,I=this.startLoc,j=this.parseExprAtom(a,p);if(j.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return j;var X=this.parseSubscripts(j,b,I,!1,p);return a&&X.type==="MemberExpression"&&(a.parenthesizedAssign>=X.start&&(a.parenthesizedAssign=-1),a.parenthesizedBind>=X.start&&(a.parenthesizedBind=-1),a.trailingComma>=X.start&&(a.trailingComma=-1)),X},De.parseSubscripts=function(a,p,b,I,j){for(var X=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,re=!1;;){var fe=this.parseSubscript(a,p,b,I,X,re,j);if(fe.optional&&(re=!0),fe===a||fe.type==="ArrowFunctionExpression"){if(re){var me=this.startNodeAt(p,b);me.expression=fe,fe=this.finishNode(me,"ChainExpression")}return fe}a=fe}},De.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(f.arrow)},De.parseSubscriptAsyncArrow=function(a,p,b,I){return this.parseArrowExpression(this.startNodeAt(a,p),b,!0,I)},De.parseSubscript=function(a,p,b,I,j,X,re){var fe=this.options.ecmaVersion>=11,me=fe&&this.eat(f.questionDot);I&&me&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var Pe=this.eat(f.bracketL);if(Pe||me&&this.type!==f.parenL&&this.type!==f.backQuote||this.eat(f.dot)){var ze=this.startNodeAt(p,b);ze.object=a,Pe?(ze.property=this.parseExpression(),this.expect(f.bracketR)):this.type===f.privateId&&a.type!=="Super"?ze.property=this.parsePrivateIdent():ze.property=this.parseIdent(this.options.allowReserved!=="never"),ze.computed=!!Pe,fe&&(ze.optional=me),a=this.finishNode(ze,"MemberExpression")}else if(!I&&this.eat(f.parenL)){var ut=new pt,Et=this.yieldPos,Cr=this.awaitPos,er=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var si=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1,ut);if(j&&!me&&this.shouldParseAsyncArrow())return this.checkPatternErrors(ut,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Et,this.awaitPos=Cr,this.awaitIdentPos=er,this.parseSubscriptAsyncArrow(p,b,si,re);this.checkExpressionErrors(ut,!0),this.yieldPos=Et||this.yieldPos,this.awaitPos=Cr||this.awaitPos,this.awaitIdentPos=er||this.awaitIdentPos;var tr=this.startNodeAt(p,b);tr.callee=a,tr.arguments=si,fe&&(tr.optional=me),a=this.finishNode(tr,"CallExpression")}else if(this.type===f.backQuote){(me||X)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var nr=this.startNodeAt(p,b);nr.tag=a,nr.quasi=this.parseTemplate({isTagged:!0}),a=this.finishNode(nr,"TaggedTemplateExpression")}return a},De.parseExprAtom=function(a,p,b){this.type===f.slash&&this.readRegexp();var I,j=this.potentialArrowAt===this.start;switch(this.type){case f._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),I=this.startNode(),this.next(),this.type===f.parenL&&!this.allowDirectSuper&&this.raise(I.start,"super() call outside constructor of a subclass"),this.type!==f.dot&&this.type!==f.bracketL&&this.type!==f.parenL&&this.unexpected(),this.finishNode(I,"Super");case f._this:return I=this.startNode(),this.next(),this.finishNode(I,"ThisExpression");case f.name:var X=this.start,re=this.startLoc,fe=this.containsEsc,me=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!fe&&me.name==="async"&&!this.canInsertSemicolon()&&this.eat(f._function))return this.overrideContext(lt.f_expr),this.parseFunction(this.startNodeAt(X,re),0,!1,!0,p);if(j&&!this.canInsertSemicolon()){if(this.eat(f.arrow))return this.parseArrowExpression(this.startNodeAt(X,re),[me],!1,p);if(this.options.ecmaVersion>=8&&me.name==="async"&&this.type===f.name&&!fe&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return me=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(f.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(X,re),[me],!0,p)}return me;case f.regexp:var Pe=this.value;return I=this.parseLiteral(Pe.value),I.regex={pattern:Pe.pattern,flags:Pe.flags},I;case f.num:case f.string:return this.parseLiteral(this.value);case f._null:case f._true:case f._false:return I=this.startNode(),I.value=this.type===f._null?null:this.type===f._true,I.raw=this.type.keyword,this.next(),this.finishNode(I,"Literal");case f.parenL:var ze=this.start,ut=this.parseParenAndDistinguishExpression(j,p);return a&&(a.parenthesizedAssign<0&&!this.isSimpleAssignTarget(ut)&&(a.parenthesizedAssign=ze),a.parenthesizedBind<0&&(a.parenthesizedBind=ze)),ut;case f.bracketL:return I=this.startNode(),this.next(),I.elements=this.parseExprList(f.bracketR,!0,!0,a),this.finishNode(I,"ArrayExpression");case f.braceL:return this.overrideContext(lt.b_expr),this.parseObj(!1,a);case f._function:return I=this.startNode(),this.next(),this.parseFunction(I,0);case f._class:return this.parseClass(this.startNode(),!1);case f._new:return this.parseNew();case f.backQuote:return this.parseTemplate();case f._import:return this.options.ecmaVersion>=11?this.parseExprImport(b):this.unexpected();default:return this.parseExprAtomDefault()}},De.parseExprAtomDefault=function(){this.unexpected()},De.parseExprImport=function(a){var p=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===f.parenL&&!a)return this.parseDynamicImport(p);if(this.type===f.dot){var b=this.startNodeAt(p.start,p.loc&&p.loc.start);return b.name="import",p.meta=this.finishNode(b,"Identifier"),this.parseImportMeta(p)}else this.unexpected()},De.parseDynamicImport=function(a){if(this.next(),a.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(f.parenR)?a.options=null:(this.expect(f.comma),this.afterTrailingComma(f.parenR)?a.options=null:(a.options=this.parseMaybeAssign(),this.eat(f.parenR)||(this.expect(f.comma),this.afterTrailingComma(f.parenR)||this.unexpected())));else if(!this.eat(f.parenR)){var p=this.start;this.eat(f.comma)&&this.eat(f.parenR)?this.raiseRecoverable(p,"Trailing comma is not allowed in import()"):this.unexpected(p)}return this.finishNode(a,"ImportExpression")},De.parseImportMeta=function(a){this.next();var p=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'"),p&&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")},De.parseLiteral=function(a){var p=this.startNode();return p.value=a,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")},De.parseParenExpression=function(){this.expect(f.parenL);var a=this.parseExpression();return this.expect(f.parenR),a},De.shouldParseArrow=function(a){return!this.canInsertSemicolon()},De.parseParenAndDistinguishExpression=function(a,p){var b=this.start,I=this.startLoc,j,X=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var re=this.start,fe=this.startLoc,me=[],Pe=!0,ze=!1,ut=new pt,Et=this.yieldPos,Cr=this.awaitPos,er;for(this.yieldPos=0,this.awaitPos=0;this.type!==f.parenR;)if(Pe?Pe=!1:this.expect(f.comma),X&&this.afterTrailingComma(f.parenR,!0)){ze=!0;break}else if(this.type===f.ellipsis){er=this.start,me.push(this.parseParenItem(this.parseRestBinding())),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else me.push(this.parseMaybeAssign(!1,ut,this.parseParenItem));var si=this.lastTokEnd,tr=this.lastTokEndLoc;if(this.expect(f.parenR),a&&this.shouldParseArrow(me)&&this.eat(f.arrow))return this.checkPatternErrors(ut,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Et,this.awaitPos=Cr,this.parseParenArrowList(b,I,me,p);(!me.length||ze)&&this.unexpected(this.lastTokStart),er&&this.unexpected(er),this.checkExpressionErrors(ut,!0),this.yieldPos=Et||this.yieldPos,this.awaitPos=Cr||this.awaitPos,me.length>1?(j=this.startNodeAt(re,fe),j.expressions=me,this.finishNodeAt(j,"SequenceExpression",si,tr)):j=me[0]}else j=this.parseParenExpression();if(this.options.preserveParens){var nr=this.startNodeAt(b,I);return nr.expression=j,this.finishNode(nr,"ParenthesizedExpression")}else return j},De.parseParenItem=function(a){return a},De.parseParenArrowList=function(a,p,b,I){return this.parseArrowExpression(this.startNodeAt(a,p),b,!1,I)};var km=[];De.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===f.dot){var p=this.startNodeAt(a.start,a.loc&&a.loc.start);p.name="new",a.meta=this.finishNode(p,"Identifier"),this.next();var b=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'"),b&&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 I=this.start,j=this.startLoc;return a.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),I,j,!0,!1),this.eat(f.parenL)?a.arguments=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1):a.arguments=km,this.finishNode(a,"NewExpression")},De.parseTemplateElement=function(a){var p=a.isTagged,b=this.startNode();return this.type===f.invalidTemplate?(p||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),b.value={raw:this.value.replace(/\r\n?/g,`
72
72
  `),cooked:null}):b.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
73
- `),cooked:this.value},this.next(),b.tail=this.type===f.backQuote,this.finishNode(b,"TemplateElement")},De.parseTemplate=function(a){a===void 0&&(a={});var p=a.isTagged;p===void 0&&(p=!1);var b=this.startNode();this.next(),b.expressions=[];var I=this.parseTemplateElement({isTagged:p});for(b.quasis=[I];!I.tail;)this.type===f.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(f.dollarBraceL),b.expressions.push(this.parseExpression()),this.expect(f.braceR),b.quasis.push(I=this.parseTemplateElement({isTagged:p}));return this.next(),this.finishNode(b,"TemplateLiteral")},De.isAsyncProp=function(a){return!a.computed&&a.key.type==="Identifier"&&a.key.name==="async"&&(this.type===f.name||this.type===f.num||this.type===f.string||this.type===f.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===f.star)&&!R.test(this.input.slice(this.lastTokEnd,this.start))},De.parseObj=function(a,p){var b=this.startNode(),I=!0,j={};for(b.properties=[],this.next();!this.eat(f.braceR);){if(I)I=!1;else if(this.expect(f.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(f.braceR))break;var X=this.parseProperty(a,p);a||this.checkPropClash(X,j,p),b.properties.push(X)}return this.finishNode(b,a?"ObjectPattern":"ObjectExpression")},De.parseProperty=function(a,p){var b=this.startNode(),I,j,X,re;if(this.options.ecmaVersion>=9&&this.eat(f.ellipsis))return a?(b.argument=this.parseIdent(!1),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(b,"RestElement")):(b.argument=this.parseMaybeAssign(!1,p),this.type===f.comma&&p&&p.trailingComma<0&&(p.trailingComma=this.start),this.finishNode(b,"SpreadElement"));this.options.ecmaVersion>=6&&(b.method=!1,b.shorthand=!1,(a||p)&&(X=this.start,re=this.startLoc),a||(I=this.eat(f.star)));var fe=this.containsEsc;return this.parsePropertyName(b),!a&&!fe&&this.options.ecmaVersion>=8&&!I&&this.isAsyncProp(b)?(j=!0,I=this.options.ecmaVersion>=9&&this.eat(f.star),this.parsePropertyName(b)):j=!1,this.parsePropertyValue(b,a,I,j,X,re,p,fe),this.finishNode(b,"Property")},De.parseGetterSetter=function(a){var p=a.key.name;this.parsePropertyName(a),a.value=this.parseMethod(!1),a.kind=p;var b=a.kind==="get"?0:1;if(a.value.params.length!==b){var I=a.value.start;a.kind==="get"?this.raiseRecoverable(I,"getter should have no params"):this.raiseRecoverable(I,"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")},De.parsePropertyValue=function(a,p,b,I,j,X,re,fe){(b||I)&&this.type===f.colon&&this.unexpected(),this.eat(f.colon)?(a.value=p?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,re),a.kind="init"):this.options.ecmaVersion>=6&&this.type===f.parenL?(p&&this.unexpected(),a.method=!0,a.value=this.parseMethod(b,I),a.kind="init"):!p&&!fe&&this.options.ecmaVersion>=5&&!a.computed&&a.key.type==="Identifier"&&(a.key.name==="get"||a.key.name==="set")&&this.type!==f.comma&&this.type!==f.braceR&&this.type!==f.eq?((b||I)&&this.unexpected(),this.parseGetterSetter(a)):this.options.ecmaVersion>=6&&!a.computed&&a.key.type==="Identifier"?((b||I)&&this.unexpected(),this.checkUnreserved(a.key),a.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=j),p?a.value=this.parseMaybeDefault(j,X,this.copyNode(a.key)):this.type===f.eq&&re?(re.shorthandAssign<0&&(re.shorthandAssign=this.start),a.value=this.parseMaybeDefault(j,X,this.copyNode(a.key))):a.value=this.copyNode(a.key),a.kind="init",a.shorthand=!0):this.unexpected()},De.parsePropertyName=function(a){if(this.options.ecmaVersion>=6){if(this.eat(f.bracketL))return a.computed=!0,a.key=this.parseMaybeAssign(),this.expect(f.bracketR),a.key;a.computed=!1}return a.key=this.type===f.num||this.type===f.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},De.initFunction=function(a){a.id=null,this.options.ecmaVersion>=6&&(a.generator=a.expression=!1),this.options.ecmaVersion>=8&&(a.async=!1)},De.parseMethod=function(a,p,b){var I=this.startNode(),j=this.yieldPos,X=this.awaitPos,re=this.awaitIdentPos;return this.initFunction(I),this.options.ecmaVersion>=6&&(I.generator=a),this.options.ecmaVersion>=8&&(I.async=!!p),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ne(p,I.generator)|Ie|(b?Ce:0)),this.expect(f.parenL),I.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(I,!1,!0,!1),this.yieldPos=j,this.awaitPos=X,this.awaitIdentPos=re,this.finishNode(I,"FunctionExpression")},De.parseArrowExpression=function(a,p,b,I){var j=this.yieldPos,X=this.awaitPos,re=this.awaitIdentPos;return this.enterScope(Ne(b,!1)|ae),this.initFunction(a),this.options.ecmaVersion>=8&&(a.async=!!b),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,a.params=this.toAssignableList(p,!0),this.parseFunctionBody(a,!0,!1,I),this.yieldPos=j,this.awaitPos=X,this.awaitIdentPos=re,this.finishNode(a,"ArrowFunctionExpression")},De.parseFunctionBody=function(a,p,b,I){var j=p&&this.type!==f.braceL,X=this.strict,re=!1;if(j)a.body=this.parseMaybeAssign(I),a.expression=!0,this.checkParams(a,!1);else{var fe=this.options.ecmaVersion>=7&&!this.isSimpleParamList(a.params);(!X||fe)&&(re=this.strictDirective(this.end),re&&fe&&this.raiseRecoverable(a.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var me=this.labels;this.labels=[],re&&(this.strict=!0),this.checkParams(a,!X&&!re&&!p&&!b&&this.isSimpleParamList(a.params)),this.strict&&a.id&&this.checkLValSimple(a.id,oe),a.body=this.parseBlock(!1,void 0,re&&!X),a.expression=!1,this.adaptDirectivePrologue(a.body.body),this.labels=me}this.exitScope()},De.isSimpleParamList=function(a){for(var p=0,b=a;p<b.length;p+=1){var I=b[p];if(I.type!=="Identifier")return!1}return!0},De.checkParams=function(a,p){for(var b=Object.create(null),I=0,j=a.params;I<j.length;I+=1){var X=j[I];this.checkLValInnerPattern(X,vt,p?null:b)}},De.parseExprList=function(a,p,b,I){for(var j=[],X=!0;!this.eat(a);){if(X)X=!1;else if(this.expect(f.comma),p&&this.afterTrailingComma(a))break;var re=void 0;b&&this.type===f.comma?re=null:this.type===f.ellipsis?(re=this.parseSpread(I),I&&this.type===f.comma&&I.trailingComma<0&&(I.trailingComma=this.start)):re=this.parseMaybeAssign(!1,I),j.push(re)}return j},De.checkUnreserved=function(a){var p=a.start,b=a.end,I=a.name;if(this.inGenerator&&I==="yield"&&this.raiseRecoverable(p,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&I==="await"&&this.raiseRecoverable(p,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Oe)&&I==="arguments"&&this.raiseRecoverable(p,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(I==="arguments"||I==="await")&&this.raise(p,"Cannot use "+I+" in class static initialization block"),this.keywords.test(I)&&this.raise(p,"Unexpected keyword '"+I+"'"),!(this.options.ecmaVersion<6&&this.input.slice(p,b).indexOf("\\")!==-1)){var j=this.strict?this.reservedWordsStrict:this.reservedWords;j.test(I)&&(!this.inAsync&&I==="await"&&this.raiseRecoverable(p,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(p,"The keyword '"+I+"' is reserved"))}},De.parseIdent=function(a){var p=this.parseIdentNode();return this.next(!!a),this.finishNode(p,"Identifier"),a||(this.checkUnreserved(p),p.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=p.start)),p},De.parseIdentNode=function(){var a=this.startNode();return this.type===f.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=f.name):this.unexpected(),a},De.parsePrivateIdent=function(){var a=this.startNode();return this.type===f.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},De.parseYield=function(a){this.yieldPos||(this.yieldPos=this.start);var p=this.startNode();return this.next(),this.type===f.semi||this.canInsertSemicolon()||this.type!==f.star&&!this.type.startsExpr?(p.delegate=!1,p.argument=null):(p.delegate=this.eat(f.star),p.argument=this.parseMaybeAssign(a)),this.finishNode(p,"YieldExpression")},De.parseAwait=function(a){this.awaitPos||(this.awaitPos=this.start);var p=this.startNode();return this.next(),p.argument=this.parseMaybeUnary(null,!0,!1,a),this.finishNode(p,"AwaitExpression")};var ti=se.prototype;ti.raise=function(a,p){var b=B(this.input,a);p+=" ("+b.line+":"+b.column+")",this.sourceFile&&(p+=" in "+this.sourceFile);var I=new SyntaxError(p);throw I.pos=a,I.loc=b,I.raisedAt=this.pos,I},ti.raiseRecoverable=ti.raise,ti.curPosition=function(){if(this.options.locations)return new H(this.curLine,this.pos-this.lineStart)};var Tn=se.prototype,km=function(p){this.flags=p,this.var=[],this.lexical=[],this.functions=[]};Tn.enterScope=function(a){this.scopeStack.push(new km(a))},Tn.exitScope=function(){this.scopeStack.pop()},Tn.treatFunctionsAsVarInScope=function(a){return a.flags&ne||!this.inModule&&a.flags&ee},Tn.declareName=function(a,p,b){var I=!1;if(p===Je){var j=this.currentScope();I=j.lexical.indexOf(a)>-1||j.functions.indexOf(a)>-1||j.var.indexOf(a)>-1,j.lexical.push(a),this.inModule&&j.flags&ee&&delete this.undefinedExports[a]}else if(p===Vt){var X=this.currentScope();X.lexical.push(a)}else if(p===Fe){var re=this.currentScope();this.treatFunctionsAsVar?I=re.lexical.indexOf(a)>-1:I=re.lexical.indexOf(a)>-1||re.var.indexOf(a)>-1,re.functions.push(a)}else for(var fe=this.scopeStack.length-1;fe>=0;--fe){var me=this.scopeStack[fe];if(me.lexical.indexOf(a)>-1&&!(me.flags&ce&&me.lexical[0]===a)||!this.treatFunctionsAsVarInScope(me)&&me.functions.indexOf(a)>-1){I=!0;break}if(me.var.push(a),this.inModule&&me.flags&ee&&delete this.undefinedExports[a],me.flags&Oe)break}I&&this.raiseRecoverable(b,"Identifier '"+a+"' has already been declared")},Tn.checkLocalExport=function(a){this.scopeStack[0].lexical.indexOf(a.name)===-1&&this.scopeStack[0].var.indexOf(a.name)===-1&&(this.undefinedExports[a.name]=a)},Tn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Tn.currentVarScope=function(){for(var a=this.scopeStack.length-1;;a--){var p=this.scopeStack[a];if(p.flags&(Oe|Ve|Re))return p}},Tn.currentThisScope=function(){for(var a=this.scopeStack.length-1;;a--){var p=this.scopeStack[a];if(p.flags&(Oe|Ve|Re)&&!(p.flags&ae))return p}};var Er=function(p,b,I){this.type="",this.start=b,this.end=0,p.options.locations&&(this.loc=new T(p,I)),p.options.directSourceFile&&(this.sourceFile=p.options.directSourceFile),p.options.ranges&&(this.range=[b,0])},Ir=se.prototype;Ir.startNode=function(){return new Er(this,this.start,this.startLoc)},Ir.startNodeAt=function(a,p){return new Er(this,a,p)};function Fl(a,p,b,I){return a.type=p,a.end=b,this.options.locations&&(a.loc.end=I),this.options.ranges&&(a.range[1]=b),a}Ir.finishNode=function(a,p){return Fl.call(this,a,p,this.lastTokEnd,this.lastTokEndLoc)},Ir.finishNodeAt=function(a,p,b,I){return Fl.call(this,a,p,b,I)},Ir.copyNode=function(a){var p=new Er(this,a.start,this.startLoc);for(var b in a)p[b]=a[b];return p};var Sm="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",zl="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",Bl=zl+" Extended_Pictographic",Hl=Bl,$l=Hl+" EBase EComp EMod EPres ExtPict",Wl=$l,_m=Wl,Em={9:zl,10:Bl,11:Hl,12:$l,13:Wl,14:_m},Im="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Cm={9:"",10:"",11:"",12:"",13:"",14:Im},Ul="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",ql="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",Kl=ql+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Jl=Kl+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Gl=Jl+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Yl=Gl+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Am=Yl+" "+Sm,Tm={9:ql,10:Kl,11:Jl,12:Gl,13:Yl,14:Am},Ql={};function Nm(a){var p=Ql[a]={binary:ie(Em[a]+" "+Ul),binaryOfStrings:ie(Cm[a]),nonBinary:{General_Category:ie(Ul),Script:ie(Tm[a])}};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 Vs=0,Xl=[9,10,11,12,13,14];Vs<Xl.length;Vs+=1){var Om=Xl[Vs];Nm(Om)}var ye=se.prototype,ni=function(p,b){this.parent=p,this.base=b||this};ni.prototype.separatedFrom=function(p){for(var b=this;b;b=b.parent)for(var I=p;I;I=I.parent)if(b.base===I.base&&b!==I)return!0;return!1},ni.prototype.sibling=function(){return new ni(this.parent,this.base)};var cn=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=Ql[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};cn.prototype.reset=function(p,b,I){var j=I.indexOf("v")!==-1,X=I.indexOf("u")!==-1;this.start=p|0,this.source=b+"",this.flags=I,j&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=X&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=X&&this.parser.options.ecmaVersion>=9)},cn.prototype.raise=function(p){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+p)},cn.prototype.at=function(p,b){b===void 0&&(b=!1);var I=this.source,j=I.length;if(p>=j)return-1;var X=I.charCodeAt(p);if(!(b||this.switchU)||X<=55295||X>=57344||p+1>=j)return X;var re=I.charCodeAt(p+1);return re>=56320&&re<=57343?(X<<10)+re-56613888:X},cn.prototype.nextIndex=function(p,b){b===void 0&&(b=!1);var I=this.source,j=I.length;if(p>=j)return j;var X=I.charCodeAt(p),re;return!(b||this.switchU)||X<=55295||X>=57344||p+1>=j||(re=I.charCodeAt(p+1))<56320||re>57343?p+1:p+2},cn.prototype.current=function(p){return p===void 0&&(p=!1),this.at(this.pos,p)},cn.prototype.lookahead=function(p){return p===void 0&&(p=!1),this.at(this.nextIndex(this.pos,p),p)},cn.prototype.advance=function(p){p===void 0&&(p=!1),this.pos=this.nextIndex(this.pos,p)},cn.prototype.eat=function(p,b){return b===void 0&&(b=!1),this.current(b)===p?(this.advance(b),!0):!1},cn.prototype.eatChars=function(p,b){b===void 0&&(b=!1);for(var I=this.pos,j=0,X=p;j<X.length;j+=1){var re=X[j],fe=this.at(I,b);if(fe===-1||fe!==re)return!1;I=this.nextIndex(I,b)}return this.pos=I,!0},ye.validateRegExpFlags=function(a){for(var p=a.validFlags,b=a.flags,I=!1,j=!1,X=0;X<b.length;X++){var re=b.charAt(X);p.indexOf(re)===-1&&this.raise(a.start,"Invalid regular expression flag"),b.indexOf(re,X+1)>-1&&this.raise(a.start,"Duplicate regular expression flag"),re==="u"&&(I=!0),re==="v"&&(j=!0)}this.options.ecmaVersion>=15&&I&&j&&this.raise(a.start,"Invalid regular expression flag")};function Pm(a){for(var p in a)return!0;return!1}ye.validateRegExpPattern=function(a){this.regexp_pattern(a),!a.switchN&&this.options.ecmaVersion>=9&&Pm(a.groupNames)&&(a.switchN=!0,this.regexp_pattern(a))},ye.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 p=0,b=a.backReferenceNames;p<b.length;p+=1){var I=b[p];a.groupNames[I]||a.raise("Invalid named capture referenced")}},ye.regexp_disjunction=function(a){var p=this.options.ecmaVersion>=16;for(p&&(a.branchID=new ni(a.branchID,null)),this.regexp_alternative(a);a.eat(124);)p&&(a.branchID=a.branchID.sibling()),this.regexp_alternative(a);p&&(a.branchID=a.branchID.parent),this.regexp_eatQuantifier(a,!0)&&a.raise("Nothing to repeat"),a.eat(123)&&a.raise("Lone quantifier brackets")},ye.regexp_alternative=function(a){for(;a.pos<a.source.length&&this.regexp_eatTerm(a););},ye.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},ye.regexp_eatAssertion=function(a){var p=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=p}if(a.eat(40)&&a.eat(63)){var b=!1;if(this.options.ecmaVersion>=9&&(b=a.eat(60)),a.eat(61)||a.eat(33))return this.regexp_disjunction(a),a.eat(41)||a.raise("Unterminated group"),a.lastAssertionIsQuantifiable=!b,!0}return a.pos=p,!1},ye.regexp_eatQuantifier=function(a,p){return p===void 0&&(p=!1),this.regexp_eatQuantifierPrefix(a,p)?(a.eat(63),!0):!1},ye.regexp_eatQuantifierPrefix=function(a,p){return a.eat(42)||a.eat(43)||a.eat(63)||this.regexp_eatBracedQuantifier(a,p)},ye.regexp_eatBracedQuantifier=function(a,p){var b=a.pos;if(a.eat(123)){var I=0,j=-1;if(this.regexp_eatDecimalDigits(a)&&(I=a.lastIntValue,a.eat(44)&&this.regexp_eatDecimalDigits(a)&&(j=a.lastIntValue),a.eat(125)))return j!==-1&&j<I&&!p&&a.raise("numbers out of order in {} quantifier"),!0;a.switchU&&!p&&a.raise("Incomplete quantifier"),a.pos=b}return!1},ye.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)},ye.regexp_eatReverseSolidusAtomEscape=function(a){var p=a.pos;if(a.eat(92)){if(this.regexp_eatAtomEscape(a))return!0;a.pos=p}return!1},ye.regexp_eatUncapturingGroup=function(a){var p=a.pos;if(a.eat(40)){if(a.eat(63)){if(this.options.ecmaVersion>=16){var b=this.regexp_eatModifiers(a),I=a.eat(45);if(b||I){for(var j=0;j<b.length;j++){var X=b.charAt(j);b.indexOf(X,j+1)>-1&&a.raise("Duplicate regular expression modifiers")}if(I){var re=this.regexp_eatModifiers(a);!b&&!re&&a.current()===58&&a.raise("Invalid regular expression modifiers");for(var fe=0;fe<re.length;fe++){var me=re.charAt(fe);(re.indexOf(me,fe+1)>-1||b.indexOf(me)>-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=p}return!1},ye.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},ye.regexp_eatModifiers=function(a){for(var p="",b=0;(b=a.current())!==-1&&Rm(b);)p+=E(b),a.advance();return p};function Rm(a){return a===105||a===109||a===115}ye.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)},ye.regexp_eatInvalidBracedQuantifier=function(a){return this.regexp_eatBracedQuantifier(a,!0)&&a.raise("Nothing to repeat"),!1},ye.regexp_eatSyntaxCharacter=function(a){var p=a.current();return Zl(p)?(a.lastIntValue=p,a.advance(),!0):!1};function Zl(a){return a===36||a>=40&&a<=43||a===46||a===63||a>=91&&a<=94||a>=123&&a<=125}ye.regexp_eatPatternCharacters=function(a){for(var p=a.pos,b=0;(b=a.current())!==-1&&!Zl(b);)a.advance();return a.pos!==p},ye.regexp_eatExtendedPatternCharacter=function(a){var p=a.current();return p!==-1&&p!==36&&!(p>=40&&p<=43)&&p!==46&&p!==63&&p!==91&&p!==94&&p!==124?(a.advance(),!0):!1},ye.regexp_groupSpecifier=function(a){if(a.eat(63)){this.regexp_eatGroupName(a)||a.raise("Invalid group");var p=this.options.ecmaVersion>=16,b=a.groupNames[a.lastStringValue];if(b)if(p)for(var I=0,j=b;I<j.length;I+=1){var X=j[I];X.separatedFrom(a.branchID)||a.raise("Duplicate capture group name")}else a.raise("Duplicate capture group name");p?(b||(a.groupNames[a.lastStringValue]=[])).push(a.branchID):a.groupNames[a.lastStringValue]=!0}},ye.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},ye.regexp_eatRegExpIdentifierName=function(a){if(a.lastStringValue="",this.regexp_eatRegExpIdentifierStart(a)){for(a.lastStringValue+=E(a.lastIntValue);this.regexp_eatRegExpIdentifierPart(a);)a.lastStringValue+=E(a.lastIntValue);return!0}return!1},ye.regexp_eatRegExpIdentifierStart=function(a){var p=a.pos,b=this.options.ecmaVersion>=11,I=a.current(b);return a.advance(b),I===92&&this.regexp_eatRegExpUnicodeEscapeSequence(a,b)&&(I=a.lastIntValue),Dm(I)?(a.lastIntValue=I,!0):(a.pos=p,!1)};function Dm(a){return w(a,!0)||a===36||a===95}ye.regexp_eatRegExpIdentifierPart=function(a){var p=a.pos,b=this.options.ecmaVersion>=11,I=a.current(b);return a.advance(b),I===92&&this.regexp_eatRegExpUnicodeEscapeSequence(a,b)&&(I=a.lastIntValue),Lm(I)?(a.lastIntValue=I,!0):(a.pos=p,!1)};function Lm(a){return S(a,!0)||a===36||a===95||a===8204||a===8205}ye.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)},ye.regexp_eatBackReference=function(a){var p=a.pos;if(this.regexp_eatDecimalEscape(a)){var b=a.lastIntValue;if(a.switchU)return b>a.maxBackReference&&(a.maxBackReference=b),!0;if(b<=a.numCapturingParens)return!0;a.pos=p}return!1},ye.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},ye.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)},ye.regexp_eatCControlLetter=function(a){var p=a.pos;if(a.eat(99)){if(this.regexp_eatControlLetter(a))return!0;a.pos=p}return!1},ye.regexp_eatZero=function(a){return a.current()===48&&!ri(a.lookahead())?(a.lastIntValue=0,a.advance(),!0):!1},ye.regexp_eatControlEscape=function(a){var p=a.current();return p===116?(a.lastIntValue=9,a.advance(),!0):p===110?(a.lastIntValue=10,a.advance(),!0):p===118?(a.lastIntValue=11,a.advance(),!0):p===102?(a.lastIntValue=12,a.advance(),!0):p===114?(a.lastIntValue=13,a.advance(),!0):!1},ye.regexp_eatControlLetter=function(a){var p=a.current();return eu(p)?(a.lastIntValue=p%32,a.advance(),!0):!1};function eu(a){return a>=65&&a<=90||a>=97&&a<=122}ye.regexp_eatRegExpUnicodeEscapeSequence=function(a,p){p===void 0&&(p=!1);var b=a.pos,I=p||a.switchU;if(a.eat(117)){if(this.regexp_eatFixedHexDigits(a,4)){var j=a.lastIntValue;if(I&&j>=55296&&j<=56319){var X=a.pos;if(a.eat(92)&&a.eat(117)&&this.regexp_eatFixedHexDigits(a,4)){var re=a.lastIntValue;if(re>=56320&&re<=57343)return a.lastIntValue=(j-55296)*1024+(re-56320)+65536,!0}a.pos=X,a.lastIntValue=j}return!0}if(I&&a.eat(123)&&this.regexp_eatHexDigits(a)&&a.eat(125)&&Vm(a.lastIntValue))return!0;I&&a.raise("Invalid unicode escape"),a.pos=b}return!1};function Vm(a){return a>=0&&a<=1114111}ye.regexp_eatIdentityEscape=function(a){if(a.switchU)return this.regexp_eatSyntaxCharacter(a)?!0:a.eat(47)?(a.lastIntValue=47,!0):!1;var p=a.current();return p!==99&&(!a.switchN||p!==107)?(a.lastIntValue=p,a.advance(),!0):!1},ye.regexp_eatDecimalEscape=function(a){a.lastIntValue=0;var p=a.current();if(p>=49&&p<=57){do a.lastIntValue=10*a.lastIntValue+(p-48),a.advance();while((p=a.current())>=48&&p<=57);return!0}return!1};var tu=0,bn=1,Kt=2;ye.regexp_eatCharacterClassEscape=function(a){var p=a.current();if(Mm(p))return a.lastIntValue=-1,a.advance(),bn;var b=!1;if(a.switchU&&this.options.ecmaVersion>=9&&((b=p===80)||p===112)){a.lastIntValue=-1,a.advance();var I;if(a.eat(123)&&(I=this.regexp_eatUnicodePropertyValueExpression(a))&&a.eat(125))return b&&I===Kt&&a.raise("Invalid property name"),I;a.raise("Invalid property name")}return tu};function Mm(a){return a===100||a===68||a===115||a===83||a===119||a===87}ye.regexp_eatUnicodePropertyValueExpression=function(a){var p=a.pos;if(this.regexp_eatUnicodePropertyName(a)&&a.eat(61)){var b=a.lastStringValue;if(this.regexp_eatUnicodePropertyValue(a)){var I=a.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(a,b,I),bn}}if(a.pos=p,this.regexp_eatLoneUnicodePropertyNameOrValue(a)){var j=a.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(a,j)}return tu},ye.regexp_validateUnicodePropertyNameAndValue=function(a,p,b){Z(a.unicodeProperties.nonBinary,p)||a.raise("Invalid property name"),a.unicodeProperties.nonBinary[p].test(b)||a.raise("Invalid property value")},ye.regexp_validateUnicodePropertyNameOrValue=function(a,p){if(a.unicodeProperties.binary.test(p))return bn;if(a.switchV&&a.unicodeProperties.binaryOfStrings.test(p))return Kt;a.raise("Invalid property name")},ye.regexp_eatUnicodePropertyName=function(a){var p=0;for(a.lastStringValue="";nu(p=a.current());)a.lastStringValue+=E(p),a.advance();return a.lastStringValue!==""};function nu(a){return eu(a)||a===95}ye.regexp_eatUnicodePropertyValue=function(a){var p=0;for(a.lastStringValue="";jm(p=a.current());)a.lastStringValue+=E(p),a.advance();return a.lastStringValue!==""};function jm(a){return nu(a)||ri(a)}ye.regexp_eatLoneUnicodePropertyNameOrValue=function(a){return this.regexp_eatUnicodePropertyValue(a)},ye.regexp_eatCharacterClass=function(a){if(a.eat(91)){var p=a.eat(94),b=this.regexp_classContents(a);return a.eat(93)||a.raise("Unterminated character class"),p&&b===Kt&&a.raise("Negated character class may contain strings"),!0}return!1},ye.regexp_classContents=function(a){return a.current()===93?bn:a.switchV?this.regexp_classSetExpression(a):(this.regexp_nonEmptyClassRanges(a),bn)},ye.regexp_nonEmptyClassRanges=function(a){for(;this.regexp_eatClassAtom(a);){var p=a.lastIntValue;if(a.eat(45)&&this.regexp_eatClassAtom(a)){var b=a.lastIntValue;a.switchU&&(p===-1||b===-1)&&a.raise("Invalid character class"),p!==-1&&b!==-1&&p>b&&a.raise("Range out of order in character class")}}},ye.regexp_eatClassAtom=function(a){var p=a.pos;if(a.eat(92)){if(this.regexp_eatClassEscape(a))return!0;if(a.switchU){var b=a.current();(b===99||su(b))&&a.raise("Invalid class escape"),a.raise("Invalid escape")}a.pos=p}var I=a.current();return I!==93?(a.lastIntValue=I,a.advance(),!0):!1},ye.regexp_eatClassEscape=function(a){var p=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=p}return this.regexp_eatCharacterClassEscape(a)||this.regexp_eatCharacterEscape(a)},ye.regexp_classSetExpression=function(a){var p=bn,b;if(!this.regexp_eatClassSetRange(a))if(b=this.regexp_eatClassSetOperand(a)){b===Kt&&(p=Kt);for(var I=a.pos;a.eatChars([38,38]);){if(a.current()!==38&&(b=this.regexp_eatClassSetOperand(a))){b!==Kt&&(p=bn);continue}a.raise("Invalid character in character class")}if(I!==a.pos)return p;for(;a.eatChars([45,45]);)this.regexp_eatClassSetOperand(a)||a.raise("Invalid character in character class");if(I!==a.pos)return p}else a.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(a)){if(b=this.regexp_eatClassSetOperand(a),!b)return p;b===Kt&&(p=Kt)}},ye.regexp_eatClassSetRange=function(a){var p=a.pos;if(this.regexp_eatClassSetCharacter(a)){var b=a.lastIntValue;if(a.eat(45)&&this.regexp_eatClassSetCharacter(a)){var I=a.lastIntValue;return b!==-1&&I!==-1&&b>I&&a.raise("Range out of order in character class"),!0}a.pos=p}return!1},ye.regexp_eatClassSetOperand=function(a){return this.regexp_eatClassSetCharacter(a)?bn:this.regexp_eatClassStringDisjunction(a)||this.regexp_eatNestedClass(a)},ye.regexp_eatNestedClass=function(a){var p=a.pos;if(a.eat(91)){var b=a.eat(94),I=this.regexp_classContents(a);if(a.eat(93))return b&&I===Kt&&a.raise("Negated character class may contain strings"),I;a.pos=p}if(a.eat(92)){var j=this.regexp_eatCharacterClassEscape(a);if(j)return j;a.pos=p}return null},ye.regexp_eatClassStringDisjunction=function(a){var p=a.pos;if(a.eatChars([92,113])){if(a.eat(123)){var b=this.regexp_classStringDisjunctionContents(a);if(a.eat(125))return b}else a.raise("Invalid escape");a.pos=p}return null},ye.regexp_classStringDisjunctionContents=function(a){for(var p=this.regexp_classString(a);a.eat(124);)this.regexp_classString(a)===Kt&&(p=Kt);return p},ye.regexp_classString=function(a){for(var p=0;this.regexp_eatClassSetCharacter(a);)p++;return p===1?bn:Kt},ye.regexp_eatClassSetCharacter=function(a){var p=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=p,!1);var b=a.current();return b<0||b===a.lookahead()&&Fm(b)||zm(b)?!1:(a.advance(),a.lastIntValue=b,!0)};function Fm(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 zm(a){return a===40||a===41||a===45||a===47||a>=91&&a<=93||a>=123&&a<=125}ye.regexp_eatClassSetReservedPunctuator=function(a){var p=a.current();return Bm(p)?(a.lastIntValue=p,a.advance(),!0):!1};function Bm(a){return a===33||a===35||a===37||a===38||a===44||a===45||a>=58&&a<=62||a===64||a===96||a===126}ye.regexp_eatClassControlLetter=function(a){var p=a.current();return ri(p)||p===95?(a.lastIntValue=p%32,a.advance(),!0):!1},ye.regexp_eatHexEscapeSequence=function(a){var p=a.pos;if(a.eat(120)){if(this.regexp_eatFixedHexDigits(a,2))return!0;a.switchU&&a.raise("Invalid escape"),a.pos=p}return!1},ye.regexp_eatDecimalDigits=function(a){var p=a.pos,b=0;for(a.lastIntValue=0;ri(b=a.current());)a.lastIntValue=10*a.lastIntValue+(b-48),a.advance();return a.pos!==p};function ri(a){return a>=48&&a<=57}ye.regexp_eatHexDigits=function(a){var p=a.pos,b=0;for(a.lastIntValue=0;ru(b=a.current());)a.lastIntValue=16*a.lastIntValue+iu(b),a.advance();return a.pos!==p};function ru(a){return a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102}function iu(a){return a>=65&&a<=70?10+(a-65):a>=97&&a<=102?10+(a-97):a-48}ye.regexp_eatLegacyOctalEscapeSequence=function(a){if(this.regexp_eatOctalDigit(a)){var p=a.lastIntValue;if(this.regexp_eatOctalDigit(a)){var b=a.lastIntValue;p<=3&&this.regexp_eatOctalDigit(a)?a.lastIntValue=p*64+b*8+a.lastIntValue:a.lastIntValue=p*8+b}else a.lastIntValue=p;return!0}return!1},ye.regexp_eatOctalDigit=function(a){var p=a.current();return su(p)?(a.lastIntValue=p-48,a.advance(),!0):(a.lastIntValue=0,!1)};function su(a){return a>=48&&a<=55}ye.regexp_eatFixedHexDigits=function(a,p){var b=a.pos;a.lastIntValue=0;for(var I=0;I<p;++I){var j=a.current();if(!ru(j))return a.pos=b,!1;a.lastIntValue=16*a.lastIntValue+iu(j),a.advance()}return!0};var ii=function(p){this.type=p.type,this.value=p.value,this.start=p.start,this.end=p.end,p.options.locations&&(this.loc=new T(p,p.startLoc,p.endLoc)),p.options.ranges&&(this.range=[p.start,p.end])},We=se.prototype;We.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 ii(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},We.getToken=function(){return this.next(),new ii(this)},typeof Symbol<"u"&&(We[Symbol.iterator]=function(){var a=this;return{next:function(){var p=a.getToken();return{done:p.type===f.eof,value:p}}}}),We.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(f.eof);if(a.override)return a.override(this);this.readToken(this.fullCharCodeAtPos())},We.readToken=function(a){return w(a,this.options.ecmaVersion>=6)||a===92?this.readWord():this.getTokenFromCode(a)},We.fullCharCodeAtPos=function(){var a=this.input.charCodeAt(this.pos);if(a<=55295||a>=56320)return a;var p=this.input.charCodeAt(this.pos+1);return p<=56319||p>=57344?a:(a<<10)+p-56613888},We.skipBlockComment=function(){var a=this.options.onComment&&this.curPosition(),p=this.pos,b=this.input.indexOf("*/",this.pos+=2);if(b===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=b+2,this.options.locations)for(var I=void 0,j=p;(I=N(this.input,j,this.pos))>-1;)++this.curLine,j=this.lineStart=I;this.options.onComment&&this.options.onComment(!0,this.input.slice(p+2,b),p,this.pos,a,this.curPosition())},We.skipLineComment=function(a){for(var p=this.pos,b=this.options.onComment&&this.curPosition(),I=this.input.charCodeAt(this.pos+=a);this.pos<this.input.length&&!L(I);)I=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(p+a,this.pos),p,this.pos,b,this.curPosition())},We.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&&$.test(String.fromCharCode(a)))++this.pos;else break e}}},We.finishToken=function(a,p){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var b=this.type;this.type=a,this.value=p,this.updateContext(b)},We.readToken_dot=function(){var a=this.input.charCodeAt(this.pos+1);if(a>=48&&a<=57)return this.readNumber(!0);var p=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&a===46&&p===46?(this.pos+=3,this.finishToken(f.ellipsis)):(++this.pos,this.finishToken(f.dot))},We.readToken_slash=function(){var a=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):a===61?this.finishOp(f.assign,2):this.finishOp(f.slash,1)},We.readToken_mult_modulo_exp=function(a){var p=this.input.charCodeAt(this.pos+1),b=1,I=a===42?f.star:f.modulo;return this.options.ecmaVersion>=7&&a===42&&p===42&&(++b,I=f.starstar,p=this.input.charCodeAt(this.pos+2)),p===61?this.finishOp(f.assign,b+1):this.finishOp(I,b)},We.readToken_pipe_amp=function(a){var p=this.input.charCodeAt(this.pos+1);if(p===a){if(this.options.ecmaVersion>=12){var b=this.input.charCodeAt(this.pos+2);if(b===61)return this.finishOp(f.assign,3)}return this.finishOp(a===124?f.logicalOR:f.logicalAND,2)}return p===61?this.finishOp(f.assign,2):this.finishOp(a===124?f.bitwiseOR:f.bitwiseAND,1)},We.readToken_caret=function(){var a=this.input.charCodeAt(this.pos+1);return a===61?this.finishOp(f.assign,2):this.finishOp(f.bitwiseXOR,1)},We.readToken_plus_min=function(a){var p=this.input.charCodeAt(this.pos+1);return p===a?p===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||R.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(f.incDec,2):p===61?this.finishOp(f.assign,2):this.finishOp(f.plusMin,1)},We.readToken_lt_gt=function(a){var p=this.input.charCodeAt(this.pos+1),b=1;return p===a?(b=a===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+b)===61?this.finishOp(f.assign,b+1):this.finishOp(f.bitShift,b)):p===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()):(p===61&&(b=2),this.finishOp(f.relational,b))},We.readToken_eq_excl=function(a){var p=this.input.charCodeAt(this.pos+1);return p===61?this.finishOp(f.equality,this.input.charCodeAt(this.pos+2)===61?3:2):a===61&&p===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(f.arrow)):this.finishOp(a===61?f.eq:f.prefix,1)},We.readToken_question=function(){var a=this.options.ecmaVersion;if(a>=11){var p=this.input.charCodeAt(this.pos+1);if(p===46){var b=this.input.charCodeAt(this.pos+2);if(b<48||b>57)return this.finishOp(f.questionDot,2)}if(p===63){if(a>=12){var I=this.input.charCodeAt(this.pos+2);if(I===61)return this.finishOp(f.assign,3)}return this.finishOp(f.coalesce,2)}}return this.finishOp(f.question,1)},We.readToken_numberSign=function(){var a=this.options.ecmaVersion,p=35;if(a>=13&&(++this.pos,p=this.fullCharCodeAtPos(),w(p,!0)||p===92))return this.finishToken(f.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+E(p)+"'")},We.getTokenFromCode=function(a){switch(a){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(f.parenL);case 41:return++this.pos,this.finishToken(f.parenR);case 59:return++this.pos,this.finishToken(f.semi);case 44:return++this.pos,this.finishToken(f.comma);case 91:return++this.pos,this.finishToken(f.bracketL);case 93:return++this.pos,this.finishToken(f.bracketR);case 123:return++this.pos,this.finishToken(f.braceL);case 125:return++this.pos,this.finishToken(f.braceR);case 58:return++this.pos,this.finishToken(f.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(f.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(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(f.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+E(a)+"'")},We.finishOp=function(a,p){var b=this.input.slice(this.pos,this.pos+p);return this.pos+=p,this.finishToken(a,b)},We.readRegexp=function(){for(var a,p,b=this.pos;;){this.pos>=this.input.length&&this.raise(b,"Unterminated regular expression");var I=this.input.charAt(this.pos);if(R.test(I)&&this.raise(b,"Unterminated regular expression"),a)a=!1;else{if(I==="[")p=!0;else if(I==="]"&&p)p=!1;else if(I==="/"&&!p)break;a=I==="\\"}++this.pos}var j=this.input.slice(b,this.pos);++this.pos;var X=this.pos,re=this.readWord1();this.containsEsc&&this.unexpected(X);var fe=this.regexpState||(this.regexpState=new cn(this));fe.reset(b,j,re),this.validateRegExpFlags(fe),this.validateRegExpPattern(fe);var me=null;try{me=new RegExp(j,re)}catch{}return this.finishToken(f.regexp,{pattern:j,flags:re,value:me})},We.readInt=function(a,p,b){for(var I=this.options.ecmaVersion>=12&&p===void 0,j=b&&this.input.charCodeAt(this.pos)===48,X=this.pos,re=0,fe=0,me=0,Pe=p??1/0;me<Pe;++me,++this.pos){var ze=this.input.charCodeAt(this.pos),ut=void 0;if(I&&ze===95){j&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),fe===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),me===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),fe=ze;continue}if(ze>=97?ut=ze-97+10:ze>=65?ut=ze-65+10:ze>=48&&ze<=57?ut=ze-48:ut=1/0,ut>=a)break;fe=ze,re=re*a+ut}return I&&fe===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===X||p!=null&&this.pos-X!==p?null:re};function Hm(a,p){return p?parseInt(a,8):parseFloat(a.replace(/_/g,""))}function au(a){return typeof BigInt!="function"?null:BigInt(a.replace(/_/g,""))}We.readRadixNumber=function(a){var p=this.pos;this.pos+=2;var b=this.readInt(a);return b==null&&this.raise(this.start+2,"Expected number in radix "+a),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(b=au(this.input.slice(p,this.pos)),++this.pos):w(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,b)},We.readNumber=function(a){var p=this.pos;!a&&this.readInt(10,void 0,!0)===null&&this.raise(p,"Invalid number");var b=this.pos-p>=2&&this.input.charCodeAt(p)===48;b&&this.strict&&this.raise(p,"Invalid number");var I=this.input.charCodeAt(this.pos);if(!b&&!a&&this.options.ecmaVersion>=11&&I===110){var j=au(this.input.slice(p,this.pos));return++this.pos,w(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,j)}b&&/[89]/.test(this.input.slice(p,this.pos))&&(b=!1),I===46&&!b&&(++this.pos,this.readInt(10),I=this.input.charCodeAt(this.pos)),(I===69||I===101)&&!b&&(I=this.input.charCodeAt(++this.pos),(I===43||I===45)&&++this.pos,this.readInt(10)===null&&this.raise(p,"Invalid number")),w(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var X=Hm(this.input.slice(p,this.pos),b);return this.finishToken(f.num,X)},We.readCodePoint=function(){var a=this.input.charCodeAt(this.pos),p;if(a===123){this.options.ecmaVersion<6&&this.unexpected();var b=++this.pos;p=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,p>1114111&&this.invalidStringToken(b,"Code point out of bounds")}else p=this.readHexChar(4);return p},We.readString=function(a){for(var p="",b=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var I=this.input.charCodeAt(this.pos);if(I===a)break;I===92?(p+=this.input.slice(b,this.pos),p+=this.readEscapedChar(!1),b=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)):(L(I)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return p+=this.input.slice(b,this.pos++),this.finishToken(f.string,p)};var ou={};We.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(a){if(a===ou)this.readInvalidTemplateToken();else throw a}this.inTemplateElement=!1},We.invalidStringToken=function(a,p){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ou;this.raise(a,p)},We.readTmplToken=function(){for(var a="",p=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var b=this.input.charCodeAt(this.pos);if(b===96||b===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===f.template||this.type===f.invalidTemplate)?b===36?(this.pos+=2,this.finishToken(f.dollarBraceL)):(++this.pos,this.finishToken(f.backQuote)):(a+=this.input.slice(p,this.pos),this.finishToken(f.template,a));if(b===92)a+=this.input.slice(p,this.pos),a+=this.readEscapedChar(!0),p=this.pos;else if(L(b)){switch(a+=this.input.slice(p,this.pos),++this.pos,b){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:a+=`
73
+ `),cooked:this.value},this.next(),b.tail=this.type===f.backQuote,this.finishNode(b,"TemplateElement")},De.parseTemplate=function(a){a===void 0&&(a={});var p=a.isTagged;p===void 0&&(p=!1);var b=this.startNode();this.next(),b.expressions=[];var I=this.parseTemplateElement({isTagged:p});for(b.quasis=[I];!I.tail;)this.type===f.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(f.dollarBraceL),b.expressions.push(this.parseExpression()),this.expect(f.braceR),b.quasis.push(I=this.parseTemplateElement({isTagged:p}));return this.next(),this.finishNode(b,"TemplateLiteral")},De.isAsyncProp=function(a){return!a.computed&&a.key.type==="Identifier"&&a.key.name==="async"&&(this.type===f.name||this.type===f.num||this.type===f.string||this.type===f.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===f.star)&&!R.test(this.input.slice(this.lastTokEnd,this.start))},De.parseObj=function(a,p){var b=this.startNode(),I=!0,j={};for(b.properties=[],this.next();!this.eat(f.braceR);){if(I)I=!1;else if(this.expect(f.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(f.braceR))break;var X=this.parseProperty(a,p);a||this.checkPropClash(X,j,p),b.properties.push(X)}return this.finishNode(b,a?"ObjectPattern":"ObjectExpression")},De.parseProperty=function(a,p){var b=this.startNode(),I,j,X,re;if(this.options.ecmaVersion>=9&&this.eat(f.ellipsis))return a?(b.argument=this.parseIdent(!1),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(b,"RestElement")):(b.argument=this.parseMaybeAssign(!1,p),this.type===f.comma&&p&&p.trailingComma<0&&(p.trailingComma=this.start),this.finishNode(b,"SpreadElement"));this.options.ecmaVersion>=6&&(b.method=!1,b.shorthand=!1,(a||p)&&(X=this.start,re=this.startLoc),a||(I=this.eat(f.star)));var fe=this.containsEsc;return this.parsePropertyName(b),!a&&!fe&&this.options.ecmaVersion>=8&&!I&&this.isAsyncProp(b)?(j=!0,I=this.options.ecmaVersion>=9&&this.eat(f.star),this.parsePropertyName(b)):j=!1,this.parsePropertyValue(b,a,I,j,X,re,p,fe),this.finishNode(b,"Property")},De.parseGetterSetter=function(a){var p=a.key.name;this.parsePropertyName(a),a.value=this.parseMethod(!1),a.kind=p;var b=a.kind==="get"?0:1;if(a.value.params.length!==b){var I=a.value.start;a.kind==="get"?this.raiseRecoverable(I,"getter should have no params"):this.raiseRecoverable(I,"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")},De.parsePropertyValue=function(a,p,b,I,j,X,re,fe){(b||I)&&this.type===f.colon&&this.unexpected(),this.eat(f.colon)?(a.value=p?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,re),a.kind="init"):this.options.ecmaVersion>=6&&this.type===f.parenL?(p&&this.unexpected(),a.method=!0,a.value=this.parseMethod(b,I),a.kind="init"):!p&&!fe&&this.options.ecmaVersion>=5&&!a.computed&&a.key.type==="Identifier"&&(a.key.name==="get"||a.key.name==="set")&&this.type!==f.comma&&this.type!==f.braceR&&this.type!==f.eq?((b||I)&&this.unexpected(),this.parseGetterSetter(a)):this.options.ecmaVersion>=6&&!a.computed&&a.key.type==="Identifier"?((b||I)&&this.unexpected(),this.checkUnreserved(a.key),a.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=j),p?a.value=this.parseMaybeDefault(j,X,this.copyNode(a.key)):this.type===f.eq&&re?(re.shorthandAssign<0&&(re.shorthandAssign=this.start),a.value=this.parseMaybeDefault(j,X,this.copyNode(a.key))):a.value=this.copyNode(a.key),a.kind="init",a.shorthand=!0):this.unexpected()},De.parsePropertyName=function(a){if(this.options.ecmaVersion>=6){if(this.eat(f.bracketL))return a.computed=!0,a.key=this.parseMaybeAssign(),this.expect(f.bracketR),a.key;a.computed=!1}return a.key=this.type===f.num||this.type===f.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},De.initFunction=function(a){a.id=null,this.options.ecmaVersion>=6&&(a.generator=a.expression=!1),this.options.ecmaVersion>=8&&(a.async=!1)},De.parseMethod=function(a,p,b){var I=this.startNode(),j=this.yieldPos,X=this.awaitPos,re=this.awaitIdentPos;return this.initFunction(I),this.options.ecmaVersion>=6&&(I.generator=a),this.options.ecmaVersion>=8&&(I.async=!!p),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ne(p,I.generator)|Ie|(b?Ce:0)),this.expect(f.parenL),I.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(I,!1,!0,!1),this.yieldPos=j,this.awaitPos=X,this.awaitIdentPos=re,this.finishNode(I,"FunctionExpression")},De.parseArrowExpression=function(a,p,b,I){var j=this.yieldPos,X=this.awaitPos,re=this.awaitIdentPos;return this.enterScope(Ne(b,!1)|ae),this.initFunction(a),this.options.ecmaVersion>=8&&(a.async=!!b),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,a.params=this.toAssignableList(p,!0),this.parseFunctionBody(a,!0,!1,I),this.yieldPos=j,this.awaitPos=X,this.awaitIdentPos=re,this.finishNode(a,"ArrowFunctionExpression")},De.parseFunctionBody=function(a,p,b,I){var j=p&&this.type!==f.braceL,X=this.strict,re=!1;if(j)a.body=this.parseMaybeAssign(I),a.expression=!0,this.checkParams(a,!1);else{var fe=this.options.ecmaVersion>=7&&!this.isSimpleParamList(a.params);(!X||fe)&&(re=this.strictDirective(this.end),re&&fe&&this.raiseRecoverable(a.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var me=this.labels;this.labels=[],re&&(this.strict=!0),this.checkParams(a,!X&&!re&&!p&&!b&&this.isSimpleParamList(a.params)),this.strict&&a.id&&this.checkLValSimple(a.id,oe),a.body=this.parseBlock(!1,void 0,re&&!X),a.expression=!1,this.adaptDirectivePrologue(a.body.body),this.labels=me}this.exitScope()},De.isSimpleParamList=function(a){for(var p=0,b=a;p<b.length;p+=1){var I=b[p];if(I.type!=="Identifier")return!1}return!0},De.checkParams=function(a,p){for(var b=Object.create(null),I=0,j=a.params;I<j.length;I+=1){var X=j[I];this.checkLValInnerPattern(X,vt,p?null:b)}},De.parseExprList=function(a,p,b,I){for(var j=[],X=!0;!this.eat(a);){if(X)X=!1;else if(this.expect(f.comma),p&&this.afterTrailingComma(a))break;var re=void 0;b&&this.type===f.comma?re=null:this.type===f.ellipsis?(re=this.parseSpread(I),I&&this.type===f.comma&&I.trailingComma<0&&(I.trailingComma=this.start)):re=this.parseMaybeAssign(!1,I),j.push(re)}return j},De.checkUnreserved=function(a){var p=a.start,b=a.end,I=a.name;if(this.inGenerator&&I==="yield"&&this.raiseRecoverable(p,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&I==="await"&&this.raiseRecoverable(p,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Oe)&&I==="arguments"&&this.raiseRecoverable(p,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(I==="arguments"||I==="await")&&this.raise(p,"Cannot use "+I+" in class static initialization block"),this.keywords.test(I)&&this.raise(p,"Unexpected keyword '"+I+"'"),!(this.options.ecmaVersion<6&&this.input.slice(p,b).indexOf("\\")!==-1)){var j=this.strict?this.reservedWordsStrict:this.reservedWords;j.test(I)&&(!this.inAsync&&I==="await"&&this.raiseRecoverable(p,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(p,"The keyword '"+I+"' is reserved"))}},De.parseIdent=function(a){var p=this.parseIdentNode();return this.next(!!a),this.finishNode(p,"Identifier"),a||(this.checkUnreserved(p),p.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=p.start)),p},De.parseIdentNode=function(){var a=this.startNode();return this.type===f.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=f.name):this.unexpected(),a},De.parsePrivateIdent=function(){var a=this.startNode();return this.type===f.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},De.parseYield=function(a){this.yieldPos||(this.yieldPos=this.start);var p=this.startNode();return this.next(),this.type===f.semi||this.canInsertSemicolon()||this.type!==f.star&&!this.type.startsExpr?(p.delegate=!1,p.argument=null):(p.delegate=this.eat(f.star),p.argument=this.parseMaybeAssign(a)),this.finishNode(p,"YieldExpression")},De.parseAwait=function(a){this.awaitPos||(this.awaitPos=this.start);var p=this.startNode();return this.next(),p.argument=this.parseMaybeUnary(null,!0,!1,a),this.finishNode(p,"AwaitExpression")};var ti=se.prototype;ti.raise=function(a,p){var b=B(this.input,a);p+=" ("+b.line+":"+b.column+")",this.sourceFile&&(p+=" in "+this.sourceFile);var I=new SyntaxError(p);throw I.pos=a,I.loc=b,I.raisedAt=this.pos,I},ti.raiseRecoverable=ti.raise,ti.curPosition=function(){if(this.options.locations)return new H(this.curLine,this.pos-this.lineStart)};var Tn=se.prototype,Sm=function(p){this.flags=p,this.var=[],this.lexical=[],this.functions=[]};Tn.enterScope=function(a){this.scopeStack.push(new Sm(a))},Tn.exitScope=function(){this.scopeStack.pop()},Tn.treatFunctionsAsVarInScope=function(a){return a.flags&ne||!this.inModule&&a.flags&ee},Tn.declareName=function(a,p,b){var I=!1;if(p===Je){var j=this.currentScope();I=j.lexical.indexOf(a)>-1||j.functions.indexOf(a)>-1||j.var.indexOf(a)>-1,j.lexical.push(a),this.inModule&&j.flags&ee&&delete this.undefinedExports[a]}else if(p===Vt){var X=this.currentScope();X.lexical.push(a)}else if(p===Fe){var re=this.currentScope();this.treatFunctionsAsVar?I=re.lexical.indexOf(a)>-1:I=re.lexical.indexOf(a)>-1||re.var.indexOf(a)>-1,re.functions.push(a)}else for(var fe=this.scopeStack.length-1;fe>=0;--fe){var me=this.scopeStack[fe];if(me.lexical.indexOf(a)>-1&&!(me.flags&ce&&me.lexical[0]===a)||!this.treatFunctionsAsVarInScope(me)&&me.functions.indexOf(a)>-1){I=!0;break}if(me.var.push(a),this.inModule&&me.flags&ee&&delete this.undefinedExports[a],me.flags&Oe)break}I&&this.raiseRecoverable(b,"Identifier '"+a+"' has already been declared")},Tn.checkLocalExport=function(a){this.scopeStack[0].lexical.indexOf(a.name)===-1&&this.scopeStack[0].var.indexOf(a.name)===-1&&(this.undefinedExports[a.name]=a)},Tn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Tn.currentVarScope=function(){for(var a=this.scopeStack.length-1;;a--){var p=this.scopeStack[a];if(p.flags&(Oe|Ve|Re))return p}},Tn.currentThisScope=function(){for(var a=this.scopeStack.length-1;;a--){var p=this.scopeStack[a];if(p.flags&(Oe|Ve|Re)&&!(p.flags&ae))return p}};var Er=function(p,b,I){this.type="",this.start=b,this.end=0,p.options.locations&&(this.loc=new T(p,I)),p.options.directSourceFile&&(this.sourceFile=p.options.directSourceFile),p.options.ranges&&(this.range=[b,0])},Ir=se.prototype;Ir.startNode=function(){return new Er(this,this.start,this.startLoc)},Ir.startNodeAt=function(a,p){return new Er(this,a,p)};function Fl(a,p,b,I){return a.type=p,a.end=b,this.options.locations&&(a.loc.end=I),this.options.ranges&&(a.range[1]=b),a}Ir.finishNode=function(a,p){return Fl.call(this,a,p,this.lastTokEnd,this.lastTokEndLoc)},Ir.finishNodeAt=function(a,p,b,I){return Fl.call(this,a,p,b,I)},Ir.copyNode=function(a){var p=new Er(this,a.start,this.startLoc);for(var b in a)p[b]=a[b];return p};var _m="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",zl="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",Bl=zl+" Extended_Pictographic",Hl=Bl,$l=Hl+" EBase EComp EMod EPres ExtPict",Wl=$l,Em=Wl,Im={9:zl,10:Bl,11:Hl,12:$l,13:Wl,14:Em},Cm="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Am={9:"",10:"",11:"",12:"",13:"",14:Cm},Ul="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",ql="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",Kl=ql+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Jl=Kl+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Gl=Jl+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Yl=Gl+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Tm=Yl+" "+_m,Nm={9:ql,10:Kl,11:Jl,12:Gl,13:Yl,14:Tm},Ql={};function Om(a){var p=Ql[a]={binary:ie(Im[a]+" "+Ul),binaryOfStrings:ie(Am[a]),nonBinary:{General_Category:ie(Ul),Script:ie(Nm[a])}};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 Vs=0,Xl=[9,10,11,12,13,14];Vs<Xl.length;Vs+=1){var Pm=Xl[Vs];Om(Pm)}var ye=se.prototype,ni=function(p,b){this.parent=p,this.base=b||this};ni.prototype.separatedFrom=function(p){for(var b=this;b;b=b.parent)for(var I=p;I;I=I.parent)if(b.base===I.base&&b!==I)return!0;return!1},ni.prototype.sibling=function(){return new ni(this.parent,this.base)};var cn=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=Ql[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};cn.prototype.reset=function(p,b,I){var j=I.indexOf("v")!==-1,X=I.indexOf("u")!==-1;this.start=p|0,this.source=b+"",this.flags=I,j&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=X&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=X&&this.parser.options.ecmaVersion>=9)},cn.prototype.raise=function(p){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+p)},cn.prototype.at=function(p,b){b===void 0&&(b=!1);var I=this.source,j=I.length;if(p>=j)return-1;var X=I.charCodeAt(p);if(!(b||this.switchU)||X<=55295||X>=57344||p+1>=j)return X;var re=I.charCodeAt(p+1);return re>=56320&&re<=57343?(X<<10)+re-56613888:X},cn.prototype.nextIndex=function(p,b){b===void 0&&(b=!1);var I=this.source,j=I.length;if(p>=j)return j;var X=I.charCodeAt(p),re;return!(b||this.switchU)||X<=55295||X>=57344||p+1>=j||(re=I.charCodeAt(p+1))<56320||re>57343?p+1:p+2},cn.prototype.current=function(p){return p===void 0&&(p=!1),this.at(this.pos,p)},cn.prototype.lookahead=function(p){return p===void 0&&(p=!1),this.at(this.nextIndex(this.pos,p),p)},cn.prototype.advance=function(p){p===void 0&&(p=!1),this.pos=this.nextIndex(this.pos,p)},cn.prototype.eat=function(p,b){return b===void 0&&(b=!1),this.current(b)===p?(this.advance(b),!0):!1},cn.prototype.eatChars=function(p,b){b===void 0&&(b=!1);for(var I=this.pos,j=0,X=p;j<X.length;j+=1){var re=X[j],fe=this.at(I,b);if(fe===-1||fe!==re)return!1;I=this.nextIndex(I,b)}return this.pos=I,!0},ye.validateRegExpFlags=function(a){for(var p=a.validFlags,b=a.flags,I=!1,j=!1,X=0;X<b.length;X++){var re=b.charAt(X);p.indexOf(re)===-1&&this.raise(a.start,"Invalid regular expression flag"),b.indexOf(re,X+1)>-1&&this.raise(a.start,"Duplicate regular expression flag"),re==="u"&&(I=!0),re==="v"&&(j=!0)}this.options.ecmaVersion>=15&&I&&j&&this.raise(a.start,"Invalid regular expression flag")};function Rm(a){for(var p in a)return!0;return!1}ye.validateRegExpPattern=function(a){this.regexp_pattern(a),!a.switchN&&this.options.ecmaVersion>=9&&Rm(a.groupNames)&&(a.switchN=!0,this.regexp_pattern(a))},ye.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 p=0,b=a.backReferenceNames;p<b.length;p+=1){var I=b[p];a.groupNames[I]||a.raise("Invalid named capture referenced")}},ye.regexp_disjunction=function(a){var p=this.options.ecmaVersion>=16;for(p&&(a.branchID=new ni(a.branchID,null)),this.regexp_alternative(a);a.eat(124);)p&&(a.branchID=a.branchID.sibling()),this.regexp_alternative(a);p&&(a.branchID=a.branchID.parent),this.regexp_eatQuantifier(a,!0)&&a.raise("Nothing to repeat"),a.eat(123)&&a.raise("Lone quantifier brackets")},ye.regexp_alternative=function(a){for(;a.pos<a.source.length&&this.regexp_eatTerm(a););},ye.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},ye.regexp_eatAssertion=function(a){var p=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=p}if(a.eat(40)&&a.eat(63)){var b=!1;if(this.options.ecmaVersion>=9&&(b=a.eat(60)),a.eat(61)||a.eat(33))return this.regexp_disjunction(a),a.eat(41)||a.raise("Unterminated group"),a.lastAssertionIsQuantifiable=!b,!0}return a.pos=p,!1},ye.regexp_eatQuantifier=function(a,p){return p===void 0&&(p=!1),this.regexp_eatQuantifierPrefix(a,p)?(a.eat(63),!0):!1},ye.regexp_eatQuantifierPrefix=function(a,p){return a.eat(42)||a.eat(43)||a.eat(63)||this.regexp_eatBracedQuantifier(a,p)},ye.regexp_eatBracedQuantifier=function(a,p){var b=a.pos;if(a.eat(123)){var I=0,j=-1;if(this.regexp_eatDecimalDigits(a)&&(I=a.lastIntValue,a.eat(44)&&this.regexp_eatDecimalDigits(a)&&(j=a.lastIntValue),a.eat(125)))return j!==-1&&j<I&&!p&&a.raise("numbers out of order in {} quantifier"),!0;a.switchU&&!p&&a.raise("Incomplete quantifier"),a.pos=b}return!1},ye.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)},ye.regexp_eatReverseSolidusAtomEscape=function(a){var p=a.pos;if(a.eat(92)){if(this.regexp_eatAtomEscape(a))return!0;a.pos=p}return!1},ye.regexp_eatUncapturingGroup=function(a){var p=a.pos;if(a.eat(40)){if(a.eat(63)){if(this.options.ecmaVersion>=16){var b=this.regexp_eatModifiers(a),I=a.eat(45);if(b||I){for(var j=0;j<b.length;j++){var X=b.charAt(j);b.indexOf(X,j+1)>-1&&a.raise("Duplicate regular expression modifiers")}if(I){var re=this.regexp_eatModifiers(a);!b&&!re&&a.current()===58&&a.raise("Invalid regular expression modifiers");for(var fe=0;fe<re.length;fe++){var me=re.charAt(fe);(re.indexOf(me,fe+1)>-1||b.indexOf(me)>-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=p}return!1},ye.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},ye.regexp_eatModifiers=function(a){for(var p="",b=0;(b=a.current())!==-1&&Dm(b);)p+=E(b),a.advance();return p};function Dm(a){return a===105||a===109||a===115}ye.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)},ye.regexp_eatInvalidBracedQuantifier=function(a){return this.regexp_eatBracedQuantifier(a,!0)&&a.raise("Nothing to repeat"),!1},ye.regexp_eatSyntaxCharacter=function(a){var p=a.current();return Zl(p)?(a.lastIntValue=p,a.advance(),!0):!1};function Zl(a){return a===36||a>=40&&a<=43||a===46||a===63||a>=91&&a<=94||a>=123&&a<=125}ye.regexp_eatPatternCharacters=function(a){for(var p=a.pos,b=0;(b=a.current())!==-1&&!Zl(b);)a.advance();return a.pos!==p},ye.regexp_eatExtendedPatternCharacter=function(a){var p=a.current();return p!==-1&&p!==36&&!(p>=40&&p<=43)&&p!==46&&p!==63&&p!==91&&p!==94&&p!==124?(a.advance(),!0):!1},ye.regexp_groupSpecifier=function(a){if(a.eat(63)){this.regexp_eatGroupName(a)||a.raise("Invalid group");var p=this.options.ecmaVersion>=16,b=a.groupNames[a.lastStringValue];if(b)if(p)for(var I=0,j=b;I<j.length;I+=1){var X=j[I];X.separatedFrom(a.branchID)||a.raise("Duplicate capture group name")}else a.raise("Duplicate capture group name");p?(b||(a.groupNames[a.lastStringValue]=[])).push(a.branchID):a.groupNames[a.lastStringValue]=!0}},ye.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},ye.regexp_eatRegExpIdentifierName=function(a){if(a.lastStringValue="",this.regexp_eatRegExpIdentifierStart(a)){for(a.lastStringValue+=E(a.lastIntValue);this.regexp_eatRegExpIdentifierPart(a);)a.lastStringValue+=E(a.lastIntValue);return!0}return!1},ye.regexp_eatRegExpIdentifierStart=function(a){var p=a.pos,b=this.options.ecmaVersion>=11,I=a.current(b);return a.advance(b),I===92&&this.regexp_eatRegExpUnicodeEscapeSequence(a,b)&&(I=a.lastIntValue),Lm(I)?(a.lastIntValue=I,!0):(a.pos=p,!1)};function Lm(a){return w(a,!0)||a===36||a===95}ye.regexp_eatRegExpIdentifierPart=function(a){var p=a.pos,b=this.options.ecmaVersion>=11,I=a.current(b);return a.advance(b),I===92&&this.regexp_eatRegExpUnicodeEscapeSequence(a,b)&&(I=a.lastIntValue),Vm(I)?(a.lastIntValue=I,!0):(a.pos=p,!1)};function Vm(a){return S(a,!0)||a===36||a===95||a===8204||a===8205}ye.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)},ye.regexp_eatBackReference=function(a){var p=a.pos;if(this.regexp_eatDecimalEscape(a)){var b=a.lastIntValue;if(a.switchU)return b>a.maxBackReference&&(a.maxBackReference=b),!0;if(b<=a.numCapturingParens)return!0;a.pos=p}return!1},ye.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},ye.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)},ye.regexp_eatCControlLetter=function(a){var p=a.pos;if(a.eat(99)){if(this.regexp_eatControlLetter(a))return!0;a.pos=p}return!1},ye.regexp_eatZero=function(a){return a.current()===48&&!ri(a.lookahead())?(a.lastIntValue=0,a.advance(),!0):!1},ye.regexp_eatControlEscape=function(a){var p=a.current();return p===116?(a.lastIntValue=9,a.advance(),!0):p===110?(a.lastIntValue=10,a.advance(),!0):p===118?(a.lastIntValue=11,a.advance(),!0):p===102?(a.lastIntValue=12,a.advance(),!0):p===114?(a.lastIntValue=13,a.advance(),!0):!1},ye.regexp_eatControlLetter=function(a){var p=a.current();return eu(p)?(a.lastIntValue=p%32,a.advance(),!0):!1};function eu(a){return a>=65&&a<=90||a>=97&&a<=122}ye.regexp_eatRegExpUnicodeEscapeSequence=function(a,p){p===void 0&&(p=!1);var b=a.pos,I=p||a.switchU;if(a.eat(117)){if(this.regexp_eatFixedHexDigits(a,4)){var j=a.lastIntValue;if(I&&j>=55296&&j<=56319){var X=a.pos;if(a.eat(92)&&a.eat(117)&&this.regexp_eatFixedHexDigits(a,4)){var re=a.lastIntValue;if(re>=56320&&re<=57343)return a.lastIntValue=(j-55296)*1024+(re-56320)+65536,!0}a.pos=X,a.lastIntValue=j}return!0}if(I&&a.eat(123)&&this.regexp_eatHexDigits(a)&&a.eat(125)&&Mm(a.lastIntValue))return!0;I&&a.raise("Invalid unicode escape"),a.pos=b}return!1};function Mm(a){return a>=0&&a<=1114111}ye.regexp_eatIdentityEscape=function(a){if(a.switchU)return this.regexp_eatSyntaxCharacter(a)?!0:a.eat(47)?(a.lastIntValue=47,!0):!1;var p=a.current();return p!==99&&(!a.switchN||p!==107)?(a.lastIntValue=p,a.advance(),!0):!1},ye.regexp_eatDecimalEscape=function(a){a.lastIntValue=0;var p=a.current();if(p>=49&&p<=57){do a.lastIntValue=10*a.lastIntValue+(p-48),a.advance();while((p=a.current())>=48&&p<=57);return!0}return!1};var tu=0,bn=1,Kt=2;ye.regexp_eatCharacterClassEscape=function(a){var p=a.current();if(jm(p))return a.lastIntValue=-1,a.advance(),bn;var b=!1;if(a.switchU&&this.options.ecmaVersion>=9&&((b=p===80)||p===112)){a.lastIntValue=-1,a.advance();var I;if(a.eat(123)&&(I=this.regexp_eatUnicodePropertyValueExpression(a))&&a.eat(125))return b&&I===Kt&&a.raise("Invalid property name"),I;a.raise("Invalid property name")}return tu};function jm(a){return a===100||a===68||a===115||a===83||a===119||a===87}ye.regexp_eatUnicodePropertyValueExpression=function(a){var p=a.pos;if(this.regexp_eatUnicodePropertyName(a)&&a.eat(61)){var b=a.lastStringValue;if(this.regexp_eatUnicodePropertyValue(a)){var I=a.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(a,b,I),bn}}if(a.pos=p,this.regexp_eatLoneUnicodePropertyNameOrValue(a)){var j=a.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(a,j)}return tu},ye.regexp_validateUnicodePropertyNameAndValue=function(a,p,b){Z(a.unicodeProperties.nonBinary,p)||a.raise("Invalid property name"),a.unicodeProperties.nonBinary[p].test(b)||a.raise("Invalid property value")},ye.regexp_validateUnicodePropertyNameOrValue=function(a,p){if(a.unicodeProperties.binary.test(p))return bn;if(a.switchV&&a.unicodeProperties.binaryOfStrings.test(p))return Kt;a.raise("Invalid property name")},ye.regexp_eatUnicodePropertyName=function(a){var p=0;for(a.lastStringValue="";nu(p=a.current());)a.lastStringValue+=E(p),a.advance();return a.lastStringValue!==""};function nu(a){return eu(a)||a===95}ye.regexp_eatUnicodePropertyValue=function(a){var p=0;for(a.lastStringValue="";Fm(p=a.current());)a.lastStringValue+=E(p),a.advance();return a.lastStringValue!==""};function Fm(a){return nu(a)||ri(a)}ye.regexp_eatLoneUnicodePropertyNameOrValue=function(a){return this.regexp_eatUnicodePropertyValue(a)},ye.regexp_eatCharacterClass=function(a){if(a.eat(91)){var p=a.eat(94),b=this.regexp_classContents(a);return a.eat(93)||a.raise("Unterminated character class"),p&&b===Kt&&a.raise("Negated character class may contain strings"),!0}return!1},ye.regexp_classContents=function(a){return a.current()===93?bn:a.switchV?this.regexp_classSetExpression(a):(this.regexp_nonEmptyClassRanges(a),bn)},ye.regexp_nonEmptyClassRanges=function(a){for(;this.regexp_eatClassAtom(a);){var p=a.lastIntValue;if(a.eat(45)&&this.regexp_eatClassAtom(a)){var b=a.lastIntValue;a.switchU&&(p===-1||b===-1)&&a.raise("Invalid character class"),p!==-1&&b!==-1&&p>b&&a.raise("Range out of order in character class")}}},ye.regexp_eatClassAtom=function(a){var p=a.pos;if(a.eat(92)){if(this.regexp_eatClassEscape(a))return!0;if(a.switchU){var b=a.current();(b===99||su(b))&&a.raise("Invalid class escape"),a.raise("Invalid escape")}a.pos=p}var I=a.current();return I!==93?(a.lastIntValue=I,a.advance(),!0):!1},ye.regexp_eatClassEscape=function(a){var p=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=p}return this.regexp_eatCharacterClassEscape(a)||this.regexp_eatCharacterEscape(a)},ye.regexp_classSetExpression=function(a){var p=bn,b;if(!this.regexp_eatClassSetRange(a))if(b=this.regexp_eatClassSetOperand(a)){b===Kt&&(p=Kt);for(var I=a.pos;a.eatChars([38,38]);){if(a.current()!==38&&(b=this.regexp_eatClassSetOperand(a))){b!==Kt&&(p=bn);continue}a.raise("Invalid character in character class")}if(I!==a.pos)return p;for(;a.eatChars([45,45]);)this.regexp_eatClassSetOperand(a)||a.raise("Invalid character in character class");if(I!==a.pos)return p}else a.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(a)){if(b=this.regexp_eatClassSetOperand(a),!b)return p;b===Kt&&(p=Kt)}},ye.regexp_eatClassSetRange=function(a){var p=a.pos;if(this.regexp_eatClassSetCharacter(a)){var b=a.lastIntValue;if(a.eat(45)&&this.regexp_eatClassSetCharacter(a)){var I=a.lastIntValue;return b!==-1&&I!==-1&&b>I&&a.raise("Range out of order in character class"),!0}a.pos=p}return!1},ye.regexp_eatClassSetOperand=function(a){return this.regexp_eatClassSetCharacter(a)?bn:this.regexp_eatClassStringDisjunction(a)||this.regexp_eatNestedClass(a)},ye.regexp_eatNestedClass=function(a){var p=a.pos;if(a.eat(91)){var b=a.eat(94),I=this.regexp_classContents(a);if(a.eat(93))return b&&I===Kt&&a.raise("Negated character class may contain strings"),I;a.pos=p}if(a.eat(92)){var j=this.regexp_eatCharacterClassEscape(a);if(j)return j;a.pos=p}return null},ye.regexp_eatClassStringDisjunction=function(a){var p=a.pos;if(a.eatChars([92,113])){if(a.eat(123)){var b=this.regexp_classStringDisjunctionContents(a);if(a.eat(125))return b}else a.raise("Invalid escape");a.pos=p}return null},ye.regexp_classStringDisjunctionContents=function(a){for(var p=this.regexp_classString(a);a.eat(124);)this.regexp_classString(a)===Kt&&(p=Kt);return p},ye.regexp_classString=function(a){for(var p=0;this.regexp_eatClassSetCharacter(a);)p++;return p===1?bn:Kt},ye.regexp_eatClassSetCharacter=function(a){var p=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=p,!1);var b=a.current();return b<0||b===a.lookahead()&&zm(b)||Bm(b)?!1:(a.advance(),a.lastIntValue=b,!0)};function zm(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 Bm(a){return a===40||a===41||a===45||a===47||a>=91&&a<=93||a>=123&&a<=125}ye.regexp_eatClassSetReservedPunctuator=function(a){var p=a.current();return Hm(p)?(a.lastIntValue=p,a.advance(),!0):!1};function Hm(a){return a===33||a===35||a===37||a===38||a===44||a===45||a>=58&&a<=62||a===64||a===96||a===126}ye.regexp_eatClassControlLetter=function(a){var p=a.current();return ri(p)||p===95?(a.lastIntValue=p%32,a.advance(),!0):!1},ye.regexp_eatHexEscapeSequence=function(a){var p=a.pos;if(a.eat(120)){if(this.regexp_eatFixedHexDigits(a,2))return!0;a.switchU&&a.raise("Invalid escape"),a.pos=p}return!1},ye.regexp_eatDecimalDigits=function(a){var p=a.pos,b=0;for(a.lastIntValue=0;ri(b=a.current());)a.lastIntValue=10*a.lastIntValue+(b-48),a.advance();return a.pos!==p};function ri(a){return a>=48&&a<=57}ye.regexp_eatHexDigits=function(a){var p=a.pos,b=0;for(a.lastIntValue=0;ru(b=a.current());)a.lastIntValue=16*a.lastIntValue+iu(b),a.advance();return a.pos!==p};function ru(a){return a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102}function iu(a){return a>=65&&a<=70?10+(a-65):a>=97&&a<=102?10+(a-97):a-48}ye.regexp_eatLegacyOctalEscapeSequence=function(a){if(this.regexp_eatOctalDigit(a)){var p=a.lastIntValue;if(this.regexp_eatOctalDigit(a)){var b=a.lastIntValue;p<=3&&this.regexp_eatOctalDigit(a)?a.lastIntValue=p*64+b*8+a.lastIntValue:a.lastIntValue=p*8+b}else a.lastIntValue=p;return!0}return!1},ye.regexp_eatOctalDigit=function(a){var p=a.current();return su(p)?(a.lastIntValue=p-48,a.advance(),!0):(a.lastIntValue=0,!1)};function su(a){return a>=48&&a<=55}ye.regexp_eatFixedHexDigits=function(a,p){var b=a.pos;a.lastIntValue=0;for(var I=0;I<p;++I){var j=a.current();if(!ru(j))return a.pos=b,!1;a.lastIntValue=16*a.lastIntValue+iu(j),a.advance()}return!0};var ii=function(p){this.type=p.type,this.value=p.value,this.start=p.start,this.end=p.end,p.options.locations&&(this.loc=new T(p,p.startLoc,p.endLoc)),p.options.ranges&&(this.range=[p.start,p.end])},We=se.prototype;We.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 ii(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},We.getToken=function(){return this.next(),new ii(this)},typeof Symbol<"u"&&(We[Symbol.iterator]=function(){var a=this;return{next:function(){var p=a.getToken();return{done:p.type===f.eof,value:p}}}}),We.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(f.eof);if(a.override)return a.override(this);this.readToken(this.fullCharCodeAtPos())},We.readToken=function(a){return w(a,this.options.ecmaVersion>=6)||a===92?this.readWord():this.getTokenFromCode(a)},We.fullCharCodeAtPos=function(){var a=this.input.charCodeAt(this.pos);if(a<=55295||a>=56320)return a;var p=this.input.charCodeAt(this.pos+1);return p<=56319||p>=57344?a:(a<<10)+p-56613888},We.skipBlockComment=function(){var a=this.options.onComment&&this.curPosition(),p=this.pos,b=this.input.indexOf("*/",this.pos+=2);if(b===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=b+2,this.options.locations)for(var I=void 0,j=p;(I=N(this.input,j,this.pos))>-1;)++this.curLine,j=this.lineStart=I;this.options.onComment&&this.options.onComment(!0,this.input.slice(p+2,b),p,this.pos,a,this.curPosition())},We.skipLineComment=function(a){for(var p=this.pos,b=this.options.onComment&&this.curPosition(),I=this.input.charCodeAt(this.pos+=a);this.pos<this.input.length&&!L(I);)I=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(p+a,this.pos),p,this.pos,b,this.curPosition())},We.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&&$.test(String.fromCharCode(a)))++this.pos;else break e}}},We.finishToken=function(a,p){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var b=this.type;this.type=a,this.value=p,this.updateContext(b)},We.readToken_dot=function(){var a=this.input.charCodeAt(this.pos+1);if(a>=48&&a<=57)return this.readNumber(!0);var p=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&a===46&&p===46?(this.pos+=3,this.finishToken(f.ellipsis)):(++this.pos,this.finishToken(f.dot))},We.readToken_slash=function(){var a=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):a===61?this.finishOp(f.assign,2):this.finishOp(f.slash,1)},We.readToken_mult_modulo_exp=function(a){var p=this.input.charCodeAt(this.pos+1),b=1,I=a===42?f.star:f.modulo;return this.options.ecmaVersion>=7&&a===42&&p===42&&(++b,I=f.starstar,p=this.input.charCodeAt(this.pos+2)),p===61?this.finishOp(f.assign,b+1):this.finishOp(I,b)},We.readToken_pipe_amp=function(a){var p=this.input.charCodeAt(this.pos+1);if(p===a){if(this.options.ecmaVersion>=12){var b=this.input.charCodeAt(this.pos+2);if(b===61)return this.finishOp(f.assign,3)}return this.finishOp(a===124?f.logicalOR:f.logicalAND,2)}return p===61?this.finishOp(f.assign,2):this.finishOp(a===124?f.bitwiseOR:f.bitwiseAND,1)},We.readToken_caret=function(){var a=this.input.charCodeAt(this.pos+1);return a===61?this.finishOp(f.assign,2):this.finishOp(f.bitwiseXOR,1)},We.readToken_plus_min=function(a){var p=this.input.charCodeAt(this.pos+1);return p===a?p===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||R.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(f.incDec,2):p===61?this.finishOp(f.assign,2):this.finishOp(f.plusMin,1)},We.readToken_lt_gt=function(a){var p=this.input.charCodeAt(this.pos+1),b=1;return p===a?(b=a===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+b)===61?this.finishOp(f.assign,b+1):this.finishOp(f.bitShift,b)):p===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()):(p===61&&(b=2),this.finishOp(f.relational,b))},We.readToken_eq_excl=function(a){var p=this.input.charCodeAt(this.pos+1);return p===61?this.finishOp(f.equality,this.input.charCodeAt(this.pos+2)===61?3:2):a===61&&p===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(f.arrow)):this.finishOp(a===61?f.eq:f.prefix,1)},We.readToken_question=function(){var a=this.options.ecmaVersion;if(a>=11){var p=this.input.charCodeAt(this.pos+1);if(p===46){var b=this.input.charCodeAt(this.pos+2);if(b<48||b>57)return this.finishOp(f.questionDot,2)}if(p===63){if(a>=12){var I=this.input.charCodeAt(this.pos+2);if(I===61)return this.finishOp(f.assign,3)}return this.finishOp(f.coalesce,2)}}return this.finishOp(f.question,1)},We.readToken_numberSign=function(){var a=this.options.ecmaVersion,p=35;if(a>=13&&(++this.pos,p=this.fullCharCodeAtPos(),w(p,!0)||p===92))return this.finishToken(f.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+E(p)+"'")},We.getTokenFromCode=function(a){switch(a){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(f.parenL);case 41:return++this.pos,this.finishToken(f.parenR);case 59:return++this.pos,this.finishToken(f.semi);case 44:return++this.pos,this.finishToken(f.comma);case 91:return++this.pos,this.finishToken(f.bracketL);case 93:return++this.pos,this.finishToken(f.bracketR);case 123:return++this.pos,this.finishToken(f.braceL);case 125:return++this.pos,this.finishToken(f.braceR);case 58:return++this.pos,this.finishToken(f.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(f.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(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(f.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+E(a)+"'")},We.finishOp=function(a,p){var b=this.input.slice(this.pos,this.pos+p);return this.pos+=p,this.finishToken(a,b)},We.readRegexp=function(){for(var a,p,b=this.pos;;){this.pos>=this.input.length&&this.raise(b,"Unterminated regular expression");var I=this.input.charAt(this.pos);if(R.test(I)&&this.raise(b,"Unterminated regular expression"),a)a=!1;else{if(I==="[")p=!0;else if(I==="]"&&p)p=!1;else if(I==="/"&&!p)break;a=I==="\\"}++this.pos}var j=this.input.slice(b,this.pos);++this.pos;var X=this.pos,re=this.readWord1();this.containsEsc&&this.unexpected(X);var fe=this.regexpState||(this.regexpState=new cn(this));fe.reset(b,j,re),this.validateRegExpFlags(fe),this.validateRegExpPattern(fe);var me=null;try{me=new RegExp(j,re)}catch{}return this.finishToken(f.regexp,{pattern:j,flags:re,value:me})},We.readInt=function(a,p,b){for(var I=this.options.ecmaVersion>=12&&p===void 0,j=b&&this.input.charCodeAt(this.pos)===48,X=this.pos,re=0,fe=0,me=0,Pe=p??1/0;me<Pe;++me,++this.pos){var ze=this.input.charCodeAt(this.pos),ut=void 0;if(I&&ze===95){j&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),fe===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),me===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),fe=ze;continue}if(ze>=97?ut=ze-97+10:ze>=65?ut=ze-65+10:ze>=48&&ze<=57?ut=ze-48:ut=1/0,ut>=a)break;fe=ze,re=re*a+ut}return I&&fe===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===X||p!=null&&this.pos-X!==p?null:re};function $m(a,p){return p?parseInt(a,8):parseFloat(a.replace(/_/g,""))}function au(a){return typeof BigInt!="function"?null:BigInt(a.replace(/_/g,""))}We.readRadixNumber=function(a){var p=this.pos;this.pos+=2;var b=this.readInt(a);return b==null&&this.raise(this.start+2,"Expected number in radix "+a),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(b=au(this.input.slice(p,this.pos)),++this.pos):w(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,b)},We.readNumber=function(a){var p=this.pos;!a&&this.readInt(10,void 0,!0)===null&&this.raise(p,"Invalid number");var b=this.pos-p>=2&&this.input.charCodeAt(p)===48;b&&this.strict&&this.raise(p,"Invalid number");var I=this.input.charCodeAt(this.pos);if(!b&&!a&&this.options.ecmaVersion>=11&&I===110){var j=au(this.input.slice(p,this.pos));return++this.pos,w(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,j)}b&&/[89]/.test(this.input.slice(p,this.pos))&&(b=!1),I===46&&!b&&(++this.pos,this.readInt(10),I=this.input.charCodeAt(this.pos)),(I===69||I===101)&&!b&&(I=this.input.charCodeAt(++this.pos),(I===43||I===45)&&++this.pos,this.readInt(10)===null&&this.raise(p,"Invalid number")),w(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var X=$m(this.input.slice(p,this.pos),b);return this.finishToken(f.num,X)},We.readCodePoint=function(){var a=this.input.charCodeAt(this.pos),p;if(a===123){this.options.ecmaVersion<6&&this.unexpected();var b=++this.pos;p=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,p>1114111&&this.invalidStringToken(b,"Code point out of bounds")}else p=this.readHexChar(4);return p},We.readString=function(a){for(var p="",b=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var I=this.input.charCodeAt(this.pos);if(I===a)break;I===92?(p+=this.input.slice(b,this.pos),p+=this.readEscapedChar(!1),b=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)):(L(I)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return p+=this.input.slice(b,this.pos++),this.finishToken(f.string,p)};var ou={};We.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(a){if(a===ou)this.readInvalidTemplateToken();else throw a}this.inTemplateElement=!1},We.invalidStringToken=function(a,p){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ou;this.raise(a,p)},We.readTmplToken=function(){for(var a="",p=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var b=this.input.charCodeAt(this.pos);if(b===96||b===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===f.template||this.type===f.invalidTemplate)?b===36?(this.pos+=2,this.finishToken(f.dollarBraceL)):(++this.pos,this.finishToken(f.backQuote)):(a+=this.input.slice(p,this.pos),this.finishToken(f.template,a));if(b===92)a+=this.input.slice(p,this.pos),a+=this.readEscapedChar(!0),p=this.pos;else if(L(b)){switch(a+=this.input.slice(p,this.pos),++this.pos,b){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:a+=`
74
74
  `;break;default:a+=String.fromCharCode(b);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),p=this.pos}else++this.pos}},We.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(f.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
75
75
  `&&++this.pos;case`
76
76
  `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},We.readEscapedChar=function(a){var p=this.input.charCodeAt(++this.pos);switch(++this.pos,p){case 110:return`
77
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return E(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 b=this.pos-1;this.invalidStringToken(b,"Invalid escape sequence in template string")}default:if(p>=48&&p<=55){var I=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],j=parseInt(I,8);return j>255&&(I=I.slice(0,-1),j=parseInt(I,8)),this.pos+=I.length-1,p=this.input.charCodeAt(this.pos),(I!=="0"||p===56||p===57)&&(this.strict||a)&&this.invalidStringToken(this.pos-1-I.length,a?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(j)}return L(p)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(p)}},We.readHexChar=function(a){var p=this.pos,b=this.readInt(16,a);return b===null&&this.invalidStringToken(p,"Bad character escape sequence"),b},We.readWord1=function(){this.containsEsc=!1;for(var a="",p=!0,b=this.pos,I=this.options.ecmaVersion>=6;this.pos<this.input.length;){var j=this.fullCharCodeAtPos();if(S(j,I))this.pos+=j<=65535?1:2;else if(j===92){this.containsEsc=!0,a+=this.input.slice(b,this.pos);var X=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var re=this.readCodePoint();(p?w:S)(re,I)||this.invalidStringToken(X,"Invalid Unicode escape"),a+=E(re),b=this.pos}else break;p=!1}return a+this.input.slice(b,this.pos)},We.readWord=function(){var a=this.readWord1(),p=f.name;return this.keywords.test(a)&&(p=A[a]),this.finishToken(p,a)};var lu="8.15.0";se.acorn={Parser:se,version:lu,defaultOptions:z,Position:H,SourceLocation:T,getLineInfo:B,Node:Er,TokenType:y,tokTypes:f,keywordTypes:A,TokContext:qt,tokContexts:lt,isIdentifierChar:S,isIdentifierStart:w,Token:ii,isNewLine:L,lineBreak:R,lineBreakG:V,nonASCIIwhitespace:$};function $m(a,p){return se.parse(a,p)}function Wm(a,p,b){return se.parseExpressionAt(a,p,b)}function Um(a,p){return se.tokenizer(a,p)}n.Node=Er,n.Parser=se,n.Position=H,n.SourceLocation=T,n.TokContext=qt,n.Token=ii,n.TokenType=y,n.defaultOptions=z,n.getLineInfo=B,n.isIdentifierChar=S,n.isIdentifierStart=w,n.isNewLine=L,n.keywordTypes=A,n.lineBreak=R,n.lineBreakG=V,n.nonASCIIwhitespace=$,n.parse=$m,n.parseExpressionAt=Wm,n.tokContexts=lt,n.tokTypes=f,n.tokenizer=Um,n.version=lu}))})(Lr,Lr.exports)),Lr.exports}var Nc;function $w(){return Nc||(Nc=1,(function(e){const t=Bw(),n=/^[\da-fA-F]+$/,r=/^\d+$/,i=new WeakMap;function s(u){u=u.Parser.acorn||u;let c=i.get(u);if(!c){const d=u.tokTypes,h=u.TokContext,g=u.TokenType,m=new h("<tag",!1),w=new h("</tag",!1),S=new h("<tag>...</tag>",!0,!0),y={tc_oTag:m,tc_cTag:w,tc_expr:S},k={jsxName:new g("jsxName"),jsxText:new g("jsxText",{beforeExpr:!0}),jsxTagStart:new g("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new g("jsxTagEnd")};k.jsxTagStart.updateContext=function(){this.context.push(S),this.context.push(m),this.exprAllowed=!1},k.jsxTagEnd.updateContext=function(v){let _=this.context.pop();_===m&&v===d.slash||_===w?(this.context.pop(),this.exprAllowed=this.curContext()===S):this.exprAllowed=!0},c={tokContexts:y,tokTypes:k},i.set(u,c)}return c}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(c){return l({allowNamespaces:u.allowNamespaces!==!1,allowNamespacedObjects:!!u.allowNamespacedObjects},c)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return s(Tc()).tokTypes},configurable:!0,enumerable:!0});function l(u,c){const d=c.acorn||Tc(),h=s(d),g=d.tokTypes,m=h.tokTypes,w=d.tokContexts,S=h.tokContexts.tc_oTag,y=h.tokContexts.tc_cTag,k=h.tokContexts.tc_expr,v=d.isNewLine,_=d.isIdentifierStart,A=d.isIdentifierChar;return class extends c{static get acornJsx(){return h}jsx_readToken(){let x="",f=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let R=this.input.charCodeAt(this.pos);switch(R){case 60:case 123:return this.pos===this.start?R===60&&this.exprAllowed?(++this.pos,this.finishToken(m.jsxTagStart)):this.getTokenFromCode(R):(x+=this.input.slice(f,this.pos),this.finishToken(m.jsxText,x));case 38:x+=this.input.slice(f,this.pos),x+=this.jsx_readEntity(),f=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(R===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:v(R)?(x+=this.input.slice(f,this.pos),x+=this.jsx_readNewLine(!0),f=this.pos):++this.pos}}}jsx_readNewLine(x){let f=this.input.charCodeAt(this.pos),R;return++this.pos,f===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,R=x?`
77
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return E(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 b=this.pos-1;this.invalidStringToken(b,"Invalid escape sequence in template string")}default:if(p>=48&&p<=55){var I=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],j=parseInt(I,8);return j>255&&(I=I.slice(0,-1),j=parseInt(I,8)),this.pos+=I.length-1,p=this.input.charCodeAt(this.pos),(I!=="0"||p===56||p===57)&&(this.strict||a)&&this.invalidStringToken(this.pos-1-I.length,a?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(j)}return L(p)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(p)}},We.readHexChar=function(a){var p=this.pos,b=this.readInt(16,a);return b===null&&this.invalidStringToken(p,"Bad character escape sequence"),b},We.readWord1=function(){this.containsEsc=!1;for(var a="",p=!0,b=this.pos,I=this.options.ecmaVersion>=6;this.pos<this.input.length;){var j=this.fullCharCodeAtPos();if(S(j,I))this.pos+=j<=65535?1:2;else if(j===92){this.containsEsc=!0,a+=this.input.slice(b,this.pos);var X=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var re=this.readCodePoint();(p?w:S)(re,I)||this.invalidStringToken(X,"Invalid Unicode escape"),a+=E(re),b=this.pos}else break;p=!1}return a+this.input.slice(b,this.pos)},We.readWord=function(){var a=this.readWord1(),p=f.name;return this.keywords.test(a)&&(p=A[a]),this.finishToken(p,a)};var lu="8.15.0";se.acorn={Parser:se,version:lu,defaultOptions:z,Position:H,SourceLocation:T,getLineInfo:B,Node:Er,TokenType:y,tokTypes:f,keywordTypes:A,TokContext:qt,tokContexts:lt,isIdentifierChar:S,isIdentifierStart:w,Token:ii,isNewLine:L,lineBreak:R,lineBreakG:V,nonASCIIwhitespace:$};function Wm(a,p){return se.parse(a,p)}function Um(a,p,b){return se.parseExpressionAt(a,p,b)}function qm(a,p){return se.tokenizer(a,p)}n.Node=Er,n.Parser=se,n.Position=H,n.SourceLocation=T,n.TokContext=qt,n.Token=ii,n.TokenType=y,n.defaultOptions=z,n.getLineInfo=B,n.isIdentifierChar=S,n.isIdentifierStart=w,n.isNewLine=L,n.keywordTypes=A,n.lineBreak=R,n.lineBreakG=V,n.nonASCIIwhitespace=$,n.parse=Wm,n.parseExpressionAt=Um,n.tokContexts=lt,n.tokTypes=f,n.tokenizer=qm,n.version=lu}))})(Lr,Lr.exports)),Lr.exports}var Nc;function Ww(){return Nc||(Nc=1,(function(e){const t=Hw(),n=/^[\da-fA-F]+$/,r=/^\d+$/,i=new WeakMap;function s(u){u=u.Parser.acorn||u;let c=i.get(u);if(!c){const d=u.tokTypes,h=u.TokContext,g=u.TokenType,m=new h("<tag",!1),w=new h("</tag",!1),S=new h("<tag>...</tag>",!0,!0),y={tc_oTag:m,tc_cTag:w,tc_expr:S},k={jsxName:new g("jsxName"),jsxText:new g("jsxText",{beforeExpr:!0}),jsxTagStart:new g("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new g("jsxTagEnd")};k.jsxTagStart.updateContext=function(){this.context.push(S),this.context.push(m),this.exprAllowed=!1},k.jsxTagEnd.updateContext=function(v){let _=this.context.pop();_===m&&v===d.slash||_===w?(this.context.pop(),this.exprAllowed=this.curContext()===S):this.exprAllowed=!0},c={tokContexts:y,tokTypes:k},i.set(u,c)}return c}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(c){return l({allowNamespaces:u.allowNamespaces!==!1,allowNamespacedObjects:!!u.allowNamespacedObjects},c)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return s(Tc()).tokTypes},configurable:!0,enumerable:!0});function l(u,c){const d=c.acorn||Tc(),h=s(d),g=d.tokTypes,m=h.tokTypes,w=d.tokContexts,S=h.tokContexts.tc_oTag,y=h.tokContexts.tc_cTag,k=h.tokContexts.tc_expr,v=d.isNewLine,_=d.isIdentifierStart,A=d.isIdentifierChar;return class extends c{static get acornJsx(){return h}jsx_readToken(){let x="",f=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let R=this.input.charCodeAt(this.pos);switch(R){case 60:case 123:return this.pos===this.start?R===60&&this.exprAllowed?(++this.pos,this.finishToken(m.jsxTagStart)):this.getTokenFromCode(R):(x+=this.input.slice(f,this.pos),this.finishToken(m.jsxText,x));case 38:x+=this.input.slice(f,this.pos),x+=this.jsx_readEntity(),f=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(R===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:v(R)?(x+=this.input.slice(f,this.pos),x+=this.jsx_readNewLine(!0),f=this.pos):++this.pos}}}jsx_readNewLine(x){let f=this.input.charCodeAt(this.pos),R;return++this.pos,f===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,R=x?`
78
78
  `:`\r
79
- `):R=String.fromCharCode(f),this.options.locations&&(++this.curLine,this.lineStart=this.pos),R}jsx_readString(x){let f="",R=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let V=this.input.charCodeAt(this.pos);if(V===x)break;V===38?(f+=this.input.slice(R,this.pos),f+=this.jsx_readEntity(),R=this.pos):v(V)?(f+=this.input.slice(R,this.pos),f+=this.jsx_readNewLine(!1),R=this.pos):++this.pos}return f+=this.input.slice(R,this.pos++),this.finishToken(g.string,f)}jsx_readEntity(){let x="",f=0,R,V=this.input[this.pos];V!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let L=++this.pos;for(;this.pos<this.input.length&&f++<10;){if(V=this.input[this.pos++],V===";"){x[0]==="#"?x[1]==="x"?(x=x.substr(2),n.test(x)&&(R=String.fromCharCode(parseInt(x,16)))):(x=x.substr(1),r.test(x)&&(R=String.fromCharCode(parseInt(x,10)))):R=t[x];break}x+=V}return R||(this.pos=L,"&")}jsx_readWord(){let x,f=this.pos;do x=this.input.charCodeAt(++this.pos);while(A(x)||x===45);return this.finishToken(m.jsxName,this.input.slice(f,this.pos))}jsx_parseIdentifier(){let x=this.startNode();return this.type===m.jsxName?x.name=this.value:this.type.keyword?x.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(x,"JSXIdentifier")}jsx_parseNamespacedName(){let x=this.start,f=this.startLoc,R=this.jsx_parseIdentifier();if(!u.allowNamespaces||!this.eat(g.colon))return R;var V=this.startNodeAt(x,f);return V.namespace=R,V.name=this.jsx_parseIdentifier(),this.finishNode(V,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===m.jsxTagEnd)return"";let x=this.start,f=this.startLoc,R=this.jsx_parseNamespacedName();for(this.type===g.dot&&R.type==="JSXNamespacedName"&&!u.allowNamespacedObjects&&this.unexpected();this.eat(g.dot);){let V=this.startNodeAt(x,f);V.object=R,V.property=this.jsx_parseIdentifier(),R=this.finishNode(V,"JSXMemberExpression")}return R}jsx_parseAttributeValue(){switch(this.type){case g.braceL:let x=this.jsx_parseExpressionContainer();return x.expression.type==="JSXEmptyExpression"&&this.raise(x.start,"JSX attributes must only be assigned a non-empty expression"),x;case m.jsxTagStart:case g.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let x=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(x,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let x=this.startNode();return this.next(),x.expression=this.type===g.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(g.braceR),this.finishNode(x,"JSXExpressionContainer")}jsx_parseAttribute(){let x=this.startNode();return this.eat(g.braceL)?(this.expect(g.ellipsis),x.argument=this.parseMaybeAssign(),this.expect(g.braceR),this.finishNode(x,"JSXSpreadAttribute")):(x.name=this.jsx_parseNamespacedName(),x.value=this.eat(g.eq)?this.jsx_parseAttributeValue():null,this.finishNode(x,"JSXAttribute"))}jsx_parseOpeningElementAt(x,f){let R=this.startNodeAt(x,f);R.attributes=[];let V=this.jsx_parseElementName();for(V&&(R.name=V);this.type!==g.slash&&this.type!==m.jsxTagEnd;)R.attributes.push(this.jsx_parseAttribute());return R.selfClosing=this.eat(g.slash),this.expect(m.jsxTagEnd),this.finishNode(R,V?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(x,f){let R=this.startNodeAt(x,f),V=this.jsx_parseElementName();return V&&(R.name=V),this.expect(m.jsxTagEnd),this.finishNode(R,V?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(x,f){let R=this.startNodeAt(x,f),V=[],L=this.jsx_parseOpeningElementAt(x,f),N=null;if(!L.selfClosing){e:for(;;)switch(this.type){case m.jsxTagStart:if(x=this.start,f=this.startLoc,this.next(),this.eat(g.slash)){N=this.jsx_parseClosingElementAt(x,f);break e}V.push(this.jsx_parseElementAt(x,f));break;case m.jsxText:V.push(this.parseExprAtom());break;case g.braceL:V.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}o(N.name)!==o(L.name)&&this.raise(N.start,"Expected corresponding JSX closing tag for <"+o(L.name)+">")}let $=L.name?"Element":"Fragment";return R["opening"+$]=L,R["closing"+$]=N,R.children=V,this.type===g.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(R,"JSX"+$)}jsx_parseText(){let x=this.parseLiteral(this.value);return x.type="JSXText",x}jsx_parseElement(){let x=this.start,f=this.startLoc;return this.next(),this.jsx_parseElementAt(x,f)}parseExprAtom(x){return this.type===m.jsxText?this.jsx_parseText():this.type===m.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(x)}readToken(x){let f=this.curContext();if(f===k)return this.jsx_readToken();if(f===S||f===y){if(_(x))return this.jsx_readWord();if(x==62)return++this.pos,this.finishToken(m.jsxTagEnd);if((x===34||x===39)&&f==S)return this.jsx_readString(x)}return x===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(m.jsxTagStart)):super.readToken(x)}updateContext(x){if(this.type==g.braceL){var f=this.curContext();f==S?this.context.push(w.b_expr):f==k?this.context.push(w.b_tmpl):super.updateContext(x),this.exprAllowed=!0}else if(this.type===g.slash&&x===m.jsxTagStart)this.context.length-=2,this.context.push(y),this.exprAllowed=!1;else return super.updateContext(x)}}}})(ea)),ea.exports}var Ww=$w();const Uw=hl(Ww),Ct=Bn(/[A-Za-z]/),Bt=Bn(/[\dA-Za-z]/),qw=Bn(/[#-'*+\--9=?A-Z^-~]/);function os(e){return e!==null&&(e<32||e===127)}const Ua=Bn(/\d/),Kw=Bn(/[\dA-Fa-f]/),Jw=Bn(/[!-/:-@[-`{-~]/);function Ee(e){return e!==null&&e<-2}function Ge(e){return e!==null&&(e<0||e===32)}function je(e){return e===-2||e===-1||e===32}const Ns=Bn(new RegExp("\\p{P}|\\p{S}","u")),Nt=Bn(/\s/);function Bn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function $e(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(u){return je(u)?(e.enter(n),l(u)):t(u)}function l(u){return je(u)&&s++<i?(e.consume(u),l):(e.exit(n),t(u))}}const Gw={}.hasOwnProperty,Yw=Symbol("continue"),na=Symbol("exit"),Qw=Symbol("skip");function Xw(e,t){let n,r;typeof t=="function"?n=t:t&&typeof t=="object"&&(t.enter&&(n=t.enter),t.leave&&(r=t.leave)),i(e,void 0,void 0,[])();function i(s,o,l,u){return ra(s)&&(c.displayName="node ("+s.type+")"),c;function c(){const d=n?Oc(n(s,o,l,u)):[];if(d[0]===na)return d;if(d[0]!==Qw){let h;for(h in s)if(Gw.call(s,h)&&s[h]&&typeof s[h]=="object"&&h!=="data"&&h!=="position"){const g=u.concat(s),m=s[h];if(Array.isArray(m)){const w=m;let S=0;for(;S>-1&&S<w.length;){const y=w[S];if(ra(y)){const k=i(y,h,S,g)();if(k[0]===na)return k;S=typeof k[1]=="number"?k[1]:S+1}else S++}}else if(ra(m)){const w=i(m,h,void 0,g)();if(w[0]===na)return w}}}return r?Oc(r(s,o,l,u)):d}}}function Oc(e){return Array.isArray(e)?e:typeof e=="number"?[Yw,e]:[e]}function ra(e){return!!(e&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.length>0)}function Uf(e,t){const n=t.prefix||"",r=t.suffix||"",i=Object.assign({},t.acornOptions),s=[],o=[],l=i.onComment,u=i.onToken;let c=!1,d,h;const g=Object.assign({},i,{onComment:s,preserveParens:!0});u&&(g.onToken=o);const m=Zw(e,t.tokenTypes),w=m.value,S=n+w+r,y=t.expression&&Pc(w);if(y&&!t.allowEmpty)throw new Xe("Unexpected empty expression",{place:v(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{d=t.expression&&!y?t.acorn.parseExpressionAt(S,0,g):t.acorn.parse(S,g)}catch(_){const A=_,x=v(A.pos);A.message=String(A.message).replace(/ \(\d+:\d+\)$/,""),A.pos=x.offset,A.loc={line:x.line,column:x.column-1},h=A,c=A.raisedAt>=n.length+w.length||A.message==="Unterminated comment"}if(d&&t.expression&&!y)if(Pc(S.slice(d.end,S.length-r.length)))d={type:"Program",start:0,end:n.length+w.length,body:[{type:"ExpressionStatement",expression:d,start:0,end:n.length+w.length}],sourceType:"module",comments:[]};else{const _=v(d.end),A=new Error("Unexpected content after expression");A.pos=_.offset,A.loc={line:_.line,column:_.column-1},h=A,d=void 0}if(d){if(d.comments=s,Xw(d,function(_,A,x,f){let R=f[f.length-1],V=A;_.type==="ParenthesizedExpression"&&R&&V&&(typeof x=="number"&&(R=R[V],V=x),R[V]=_.expression),k(_)}),Array.isArray(l))l.push(...s);else if(typeof l=="function")for(const _ of s)l(_.type==="Block",_.value,_.start,_.end,_.loc.start,_.loc.end);for(const _ of o)_.end<=n.length||_.start-n.length>=w.length||(k(_),Array.isArray(u)?u.push(_):u(_))}return{estree:d,error:h,swallow:c};function k(_){const A=v(_.start),x=v(_.end);_.start=A.offset,_.end=x.offset,_.loc={start:{line:A.line,column:A.column-1,offset:A.offset},end:{line:x.line,column:x.column-1,offset:x.offset}},_.range=[_.start,_.end]}function v(_){let A=_-n.length;A<0?A=0:A>w.length&&(A=w.length);let x=e1(m.stops,A);return x||(x={line:t.start.line,column:t.start.column,offset:t.start.offset}),x}}function Pc(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function Zw(e,t){const n={value:"",stops:[]};let r=-1;for(;++r<e.length;){const i=e[r];if(i[0]==="enter"){const s=i[1].type;if(s==="lineEnding"||t.includes(s)){const o=i[2].sliceStream(i[1]);for(;o.length>0&&o[0]===-1;)o.shift();const l=t1(o);n.stops.push([n.value.length,i[1].start]),n.value+=l,n.stops.push([n.value.length,i[1].end])}}}return n}function e1(e,t){let n=0;for(;n<e.length&&e[n][0]<=t;)n+=1;if(n===0)return;const[r,i]=e[n-1],s=t-r;return{line:i.line,column:i.column+s,offset:i.offset+s}}function t1(e){let t=-1;const n=[];let r;for(;++t<e.length;){const i=e[t];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
79
+ `):R=String.fromCharCode(f),this.options.locations&&(++this.curLine,this.lineStart=this.pos),R}jsx_readString(x){let f="",R=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let V=this.input.charCodeAt(this.pos);if(V===x)break;V===38?(f+=this.input.slice(R,this.pos),f+=this.jsx_readEntity(),R=this.pos):v(V)?(f+=this.input.slice(R,this.pos),f+=this.jsx_readNewLine(!1),R=this.pos):++this.pos}return f+=this.input.slice(R,this.pos++),this.finishToken(g.string,f)}jsx_readEntity(){let x="",f=0,R,V=this.input[this.pos];V!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let L=++this.pos;for(;this.pos<this.input.length&&f++<10;){if(V=this.input[this.pos++],V===";"){x[0]==="#"?x[1]==="x"?(x=x.substr(2),n.test(x)&&(R=String.fromCharCode(parseInt(x,16)))):(x=x.substr(1),r.test(x)&&(R=String.fromCharCode(parseInt(x,10)))):R=t[x];break}x+=V}return R||(this.pos=L,"&")}jsx_readWord(){let x,f=this.pos;do x=this.input.charCodeAt(++this.pos);while(A(x)||x===45);return this.finishToken(m.jsxName,this.input.slice(f,this.pos))}jsx_parseIdentifier(){let x=this.startNode();return this.type===m.jsxName?x.name=this.value:this.type.keyword?x.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(x,"JSXIdentifier")}jsx_parseNamespacedName(){let x=this.start,f=this.startLoc,R=this.jsx_parseIdentifier();if(!u.allowNamespaces||!this.eat(g.colon))return R;var V=this.startNodeAt(x,f);return V.namespace=R,V.name=this.jsx_parseIdentifier(),this.finishNode(V,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===m.jsxTagEnd)return"";let x=this.start,f=this.startLoc,R=this.jsx_parseNamespacedName();for(this.type===g.dot&&R.type==="JSXNamespacedName"&&!u.allowNamespacedObjects&&this.unexpected();this.eat(g.dot);){let V=this.startNodeAt(x,f);V.object=R,V.property=this.jsx_parseIdentifier(),R=this.finishNode(V,"JSXMemberExpression")}return R}jsx_parseAttributeValue(){switch(this.type){case g.braceL:let x=this.jsx_parseExpressionContainer();return x.expression.type==="JSXEmptyExpression"&&this.raise(x.start,"JSX attributes must only be assigned a non-empty expression"),x;case m.jsxTagStart:case g.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let x=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(x,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let x=this.startNode();return this.next(),x.expression=this.type===g.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(g.braceR),this.finishNode(x,"JSXExpressionContainer")}jsx_parseAttribute(){let x=this.startNode();return this.eat(g.braceL)?(this.expect(g.ellipsis),x.argument=this.parseMaybeAssign(),this.expect(g.braceR),this.finishNode(x,"JSXSpreadAttribute")):(x.name=this.jsx_parseNamespacedName(),x.value=this.eat(g.eq)?this.jsx_parseAttributeValue():null,this.finishNode(x,"JSXAttribute"))}jsx_parseOpeningElementAt(x,f){let R=this.startNodeAt(x,f);R.attributes=[];let V=this.jsx_parseElementName();for(V&&(R.name=V);this.type!==g.slash&&this.type!==m.jsxTagEnd;)R.attributes.push(this.jsx_parseAttribute());return R.selfClosing=this.eat(g.slash),this.expect(m.jsxTagEnd),this.finishNode(R,V?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(x,f){let R=this.startNodeAt(x,f),V=this.jsx_parseElementName();return V&&(R.name=V),this.expect(m.jsxTagEnd),this.finishNode(R,V?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(x,f){let R=this.startNodeAt(x,f),V=[],L=this.jsx_parseOpeningElementAt(x,f),N=null;if(!L.selfClosing){e:for(;;)switch(this.type){case m.jsxTagStart:if(x=this.start,f=this.startLoc,this.next(),this.eat(g.slash)){N=this.jsx_parseClosingElementAt(x,f);break e}V.push(this.jsx_parseElementAt(x,f));break;case m.jsxText:V.push(this.parseExprAtom());break;case g.braceL:V.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}o(N.name)!==o(L.name)&&this.raise(N.start,"Expected corresponding JSX closing tag for <"+o(L.name)+">")}let $=L.name?"Element":"Fragment";return R["opening"+$]=L,R["closing"+$]=N,R.children=V,this.type===g.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(R,"JSX"+$)}jsx_parseText(){let x=this.parseLiteral(this.value);return x.type="JSXText",x}jsx_parseElement(){let x=this.start,f=this.startLoc;return this.next(),this.jsx_parseElementAt(x,f)}parseExprAtom(x){return this.type===m.jsxText?this.jsx_parseText():this.type===m.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(x)}readToken(x){let f=this.curContext();if(f===k)return this.jsx_readToken();if(f===S||f===y){if(_(x))return this.jsx_readWord();if(x==62)return++this.pos,this.finishToken(m.jsxTagEnd);if((x===34||x===39)&&f==S)return this.jsx_readString(x)}return x===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(m.jsxTagStart)):super.readToken(x)}updateContext(x){if(this.type==g.braceL){var f=this.curContext();f==S?this.context.push(w.b_expr):f==k?this.context.push(w.b_tmpl):super.updateContext(x),this.exprAllowed=!0}else if(this.type===g.slash&&x===m.jsxTagStart)this.context.length-=2,this.context.push(y),this.exprAllowed=!1;else return super.updateContext(x)}}}})(ea)),ea.exports}var Uw=Ww();const qw=hl(Uw),Ct=Bn(/[A-Za-z]/),Bt=Bn(/[\dA-Za-z]/),Kw=Bn(/[#-'*+\--9=?A-Z^-~]/);function os(e){return e!==null&&(e<32||e===127)}const Ua=Bn(/\d/),Jw=Bn(/[\dA-Fa-f]/),Gw=Bn(/[!-/:-@[-`{-~]/);function Ee(e){return e!==null&&e<-2}function Ge(e){return e!==null&&(e<0||e===32)}function je(e){return e===-2||e===-1||e===32}const Ns=Bn(new RegExp("\\p{P}|\\p{S}","u")),Nt=Bn(/\s/);function Bn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function $e(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(u){return je(u)?(e.enter(n),l(u)):t(u)}function l(u){return je(u)&&s++<i?(e.consume(u),l):(e.exit(n),t(u))}}const Yw={}.hasOwnProperty,Qw=Symbol("continue"),na=Symbol("exit"),Xw=Symbol("skip");function Zw(e,t){let n,r;typeof t=="function"?n=t:t&&typeof t=="object"&&(t.enter&&(n=t.enter),t.leave&&(r=t.leave)),i(e,void 0,void 0,[])();function i(s,o,l,u){return ra(s)&&(c.displayName="node ("+s.type+")"),c;function c(){const d=n?Oc(n(s,o,l,u)):[];if(d[0]===na)return d;if(d[0]!==Xw){let h;for(h in s)if(Yw.call(s,h)&&s[h]&&typeof s[h]=="object"&&h!=="data"&&h!=="position"){const g=u.concat(s),m=s[h];if(Array.isArray(m)){const w=m;let S=0;for(;S>-1&&S<w.length;){const y=w[S];if(ra(y)){const k=i(y,h,S,g)();if(k[0]===na)return k;S=typeof k[1]=="number"?k[1]:S+1}else S++}}else if(ra(m)){const w=i(m,h,void 0,g)();if(w[0]===na)return w}}}return r?Oc(r(s,o,l,u)):d}}}function Oc(e){return Array.isArray(e)?e:typeof e=="number"?[Qw,e]:[e]}function ra(e){return!!(e&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.length>0)}function Uf(e,t){const n=t.prefix||"",r=t.suffix||"",i=Object.assign({},t.acornOptions),s=[],o=[],l=i.onComment,u=i.onToken;let c=!1,d,h;const g=Object.assign({},i,{onComment:s,preserveParens:!0});u&&(g.onToken=o);const m=e1(e,t.tokenTypes),w=m.value,S=n+w+r,y=t.expression&&Pc(w);if(y&&!t.allowEmpty)throw new Xe("Unexpected empty expression",{place:v(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{d=t.expression&&!y?t.acorn.parseExpressionAt(S,0,g):t.acorn.parse(S,g)}catch(_){const A=_,x=v(A.pos);A.message=String(A.message).replace(/ \(\d+:\d+\)$/,""),A.pos=x.offset,A.loc={line:x.line,column:x.column-1},h=A,c=A.raisedAt>=n.length+w.length||A.message==="Unterminated comment"}if(d&&t.expression&&!y)if(Pc(S.slice(d.end,S.length-r.length)))d={type:"Program",start:0,end:n.length+w.length,body:[{type:"ExpressionStatement",expression:d,start:0,end:n.length+w.length}],sourceType:"module",comments:[]};else{const _=v(d.end),A=new Error("Unexpected content after expression");A.pos=_.offset,A.loc={line:_.line,column:_.column-1},h=A,d=void 0}if(d){if(d.comments=s,Zw(d,function(_,A,x,f){let R=f[f.length-1],V=A;_.type==="ParenthesizedExpression"&&R&&V&&(typeof x=="number"&&(R=R[V],V=x),R[V]=_.expression),k(_)}),Array.isArray(l))l.push(...s);else if(typeof l=="function")for(const _ of s)l(_.type==="Block",_.value,_.start,_.end,_.loc.start,_.loc.end);for(const _ of o)_.end<=n.length||_.start-n.length>=w.length||(k(_),Array.isArray(u)?u.push(_):u(_))}return{estree:d,error:h,swallow:c};function k(_){const A=v(_.start),x=v(_.end);_.start=A.offset,_.end=x.offset,_.loc={start:{line:A.line,column:A.column-1,offset:A.offset},end:{line:x.line,column:x.column-1,offset:x.offset}},_.range=[_.start,_.end]}function v(_){let A=_-n.length;A<0?A=0:A>w.length&&(A=w.length);let x=t1(m.stops,A);return x||(x={line:t.start.line,column:t.start.column,offset:t.start.offset}),x}}function Pc(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function e1(e,t){const n={value:"",stops:[]};let r=-1;for(;++r<e.length;){const i=e[r];if(i[0]==="enter"){const s=i[1].type;if(s==="lineEnding"||t.includes(s)){const o=i[2].sliceStream(i[1]);for(;o.length>0&&o[0]===-1;)o.shift();const l=n1(o);n.stops.push([n.value.length,i[1].start]),n.value+=l,n.stops.push([n.value.length,i[1].end])}}}return n}function t1(e,t){let n=0;for(;n<e.length&&e[n][0]<=t;)n+=1;if(n===0)return;const[r,i]=e[n-1],s=t-r;return{line:i.line,column:i.column+s,offset:i.offset+s}}function n1(e){let t=-1;const n=[];let r;for(;++t<e.length;){const i=e[t];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
80
80
  `;break}case-3:{s=`\r
81
- `;break}case-2:{s=" ";break}case-1:{if(r)continue;s=" ";break}default:s=String.fromCharCode(i)}r=i===-2,n.push(s)}return n.join("")}function zi(e){const t=e||{},n=t.loc||{},r=t.range||[void 0,void 0],i=Rc(n.start,r[0]||t.start),s=Rc(n.end,r[1]||t.end);if(i&&s)return{start:i,end:s}}function Rc(e,t){if(e&&typeof e=="object"){const n="line"in e?ia(e.line):void 0,r="column"in e?ia(e.column):void 0;if(n&&r!==void 0)return{line:n,column:r+1,offset:ia(t)}}}function ia(e){return typeof e=="number"&&e>-1?e:void 0}const n1=2,hr="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",r1="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",i1="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",Dc="#unexpected-type-in-code-expected-an-object-spread-spread",s1="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",a1="#could-not-parse-expression-with-acorn";function ls(e,t,n,r,i,s,o,l,u,c,d){const h=this,g=this.events.length+3;let m=0,w,S;return y;function y(A){return e.enter(n),e.enter(r),e.consume(A),e.exit(r),w=h.now(),k}function k(A){if(A===null){if(S)throw S;const x=new Xe("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:h.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw x.url=hr+r1,x}if(Ee(A))return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),_;if(A===125&&m===0){const x=s?o1.call(h,s,o,i,g,w,c||!1,u||!1):{type:"ok",estree:void 0};if(x.type==="ok"){e.enter(r),e.consume(A),e.exit(r);const f=e.exit(n);return l&&x.estree&&Object.assign(f,{estree:x.estree}),t}return S=x.message,e.enter(i),e.consume(A),v}return e.enter(i),v(A)}function v(A){return A===125&&m===0||A===null||Ee(A)?(e.exit(i),k(A)):(A===123&&!s?m+=1:A===125&&(m-=1),e.consume(A),v)}function _(A){const x=h.now();if(x.line!==w.line&&!d&&h.parser.lazy[x.line]){const f=new Xe("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 f.url=hr+i1,f}return je(A)?$e(e,k,"linePrefix",n1+1)(A):k(A)}}function o1(e,t,n,r,i,s,o){const l=Uf(this.events.slice(r),{acorn:e,tokenTypes:[n],acornOptions:t,start:i,expression:!0,allowEmpty:s,prefix:o?"({":"",suffix:o?"})":""}),u=l.estree;if(o&&u){const c=u.body[0];if(c.type!=="ExpressionStatement"||c.expression.type!=="ObjectExpression"){const d=zi(c),h=new Xe("Unexpected `"+c.type+"` in code: expected an object spread (`{...spread}`)",{place:d.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw h.url=hr+Dc,h}if(c.expression.properties[1]){const d=zi(c.expression.properties[1]),h=new Xe("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=hr+s1,h}if(c.expression.properties[0]&&c.expression.properties[0].type!=="SpreadElement"){const d=zi(c.expression.properties[0]),h=new Xe("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=hr+Dc,h}}if(l.error){const c=new Xe("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 c.url=hr+a1,{type:"nok",message:c}}return{type:"ok",estree:u}}function l1(e){const t=e||{},n=t.addResult,r=t.acorn,i=t.spread;let s=t.allowEmpty,o;if(s==null&&(s=!0),r){if(!r.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(c,d,h){const g=this;return m;function m(k){return w(k)}function w(k){return ls.call(g,c,S,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",r,o,n,i,s)(k)}function S(k){return je(k)?$e(c,y,"whitespace")(k):y(k)}function y(k){const v=g.parser.constructs.flow[60],A=(Array.isArray(v)?v:v?[v]:[]).find(function(x){return x.name==="mdxJsxFlowTag"});return k===60&&A?c.attempt(A,y,h)(k):k===null||Ee(k)?d(k):h(k)}}function u(c,d){const h=this;return g;function g(m){return ls.call(h,c,d,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",r,o,n,i,s,!0)(m)}}}const u1=/[$_\p{ID_Start}]/u,c1=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,h1=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,p1={};function nn(e){return e?u1.test(String.fromCodePoint(e)):!1}function Pr(e,t){const r=(t||p1).jsx?h1:c1;return e?r.test(String.fromCodePoint(e)):!1}const Lc="https://github.com/micromark/micromark-extension-mdx-jsx";function qf(e,t,n,r,i,s,o,l,u,c,d,h,g,m,w,S,y,k,v,_,A,x,f,R,V,L,N,$,U,J,Y,Q){const Z=this;let q,K;return ie;function ie(P){return e.enter(l),e.enter(u),e.consume(P),e.exit(u),E}function E(P){return Ge(P)?n(P):(q=M,Fe(P))}function M(P){if(P===47)return e.enter(c),e.consume(P),e.exit(c),q=H,Fe;if(P===62)return Je(P);if(P!==null&&P>=0&&nn(P))return e.enter(h),e.enter(g),e.consume(P),T;se(P,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(P===33?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function H(P){if(P===62)return Je(P);if(P!==null&&P>=0&&nn(P))return e.enter(h),e.enter(g),e.consume(P),T;se(P,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(P===42||P===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function T(P){if(P!==null&&P>=0&&Pr(P,{jsx:!0}))return e.consume(P),T;if(P===46||P===47||P===58||P===62||P===123||Ge(P)||Nt(P))return e.exit(g),q=B,Fe(P);se(P,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(P===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function B(P){if(P===46)return e.enter(m),e.consume(P),e.exit(m),q=z,Fe;if(P===58)return e.enter(S),e.consume(P),e.exit(S),q=te,Fe;if(P===47||P===62||P===123||P!==null&&P>=0&&nn(P))return e.exit(h),le(P);se(P,"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 z(P){if(P!==null&&P>=0&&nn(P))return e.enter(w),e.consume(P),W;se(P,"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(P){if(P!==null&&P>=0&&Pr(P,{jsx:!0}))return e.consume(P),W;if(P===46||P===47||P===62||P===123||Ge(P)||Nt(P))return e.exit(w),q=F,Fe(P);se(P,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(P===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function F(P){if(P===46)return e.enter(m),e.consume(P),e.exit(m),q=z,Fe;if(P===47||P===62||P===123||P!==null&&P>=0&&nn(P))return e.exit(h),le(P);se(P,"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 te(P){if(P!==null&&P>=0&&nn(P))return e.enter(y),e.consume(P),ee;se(P,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(P===43||P!==null&&P>46&&P<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function ee(P){if(P!==null&&P>=0&&Pr(P,{jsx:!0}))return e.consume(P),ee;if(P===47||P===62||P===123||Ge(P)||Nt(P))return e.exit(y),q=ne,Fe(P);se(P,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ne(P){if(P===47||P===62||P===123||P!==null&&P>=0&&nn(P))return e.exit(h),le(P);se(P,"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 le(P){if(P===47)return e.enter(d),e.consume(P),e.exit(d),q=vt,Fe;if(P===62)return Je(P);if(P===123)return ls.call(Z,e,G,k,v,_,r,i,s,!0,!1,o)(P);if(P!==null&&P>=0&&nn(P))return e.enter(A),e.enter(x),e.enter(f),e.consume(P),ae;se(P,"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 G(P){return q=le,Fe(P)}function ae(P){if(P!==null&&P>=0&&Pr(P,{jsx:!0}))return e.consume(P),ae;if(P===47||P===58||P===61||P===62||P===123||Ge(P)||Nt(P))return e.exit(f),q=ce,Fe(P);se(P,"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 ce(P){if(P===58)return e.enter(R),e.consume(P),e.exit(R),q=Ie,Fe;if(P===61)return e.exit(x),e.enter(L),e.consume(P),e.exit(L),q=Ve,Fe;if(P===47||P===62||P===123||Ge(P)||Nt(P)||P!==null&&P>=0&&nn(P))return e.exit(x),e.exit(A),q=le,Fe(P);se(P,"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 Ie(P){if(P!==null&&P>=0&&nn(P))return e.enter(V),e.consume(P),Ce;se(P,"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 Ce(P){if(P!==null&&P>=0&&Pr(P,{jsx:!0}))return e.consume(P),Ce;if(P===47||P===61||P===62||P===123||Ge(P)||Nt(P))return e.exit(V),e.exit(x),q=Re,Fe(P);se(P,"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 Re(P){if(P===61)return e.enter(L),e.consume(P),e.exit(L),q=Ve,Fe;if(P===47||P===62||P===123||P!==null&&P>=0&&nn(P))return e.exit(A),le(P);se(P,"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 Ve(P){if(P===34||P===39)return e.enter(N),e.enter($),e.consume(P),e.exit($),K=P,Ne;if(P===123)return ls.call(Z,e,Oe,J,Y,Q,r,i,s,!1,!1,o)(P);se(P,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(P===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function Oe(P){return e.exit(A),q=le,Fe(P)}function Ne(P){return P===null&&se(P,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(K)+"`"),P===K?(e.enter($),e.consume(P),e.exit($),e.exit(N),e.exit(A),K=void 0,q=le,Fe):Ee(P)?(q=Ne,Fe(P)):(e.enter(U),Ke(P))}function Ke(P){return P===null||P===K||Ee(P)?(e.exit(U),Ne(P)):(e.consume(P),Ke)}function vt(P){if(P===62)return Je(P);se(P,"after self-closing slash","`>` to end the tag"+(P===42||P===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function Je(P){return e.enter(u),e.consume(P),e.exit(u),e.exit(l),t}function Fe(P){return Ee(P)?(e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),oe):je(P)||Nt(P)?(e.enter("esWhitespace"),Vt(P)):q(P)}function Vt(P){return Ee(P)?(e.exit("esWhitespace"),Fe(P)):je(P)||Nt(P)?(e.consume(P),Vt):(e.exit("esWhitespace"),q(P))}function oe(P){if(!o&&Z.parser.lazy[Z.now().line]){const be=new Xe("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 be.url=Lc+"#unexpected-lazy-line-in-container-expected-line-to-be",be}return Fe(P)}function se(P,be,He){const pt=new Xe("Unexpected "+(P===null?"end of file":"character `"+(P===96?"` ` `":String.fromCodePoint(P))+"` ("+d1(P)+")")+" "+be+", expected "+He,Z.now(),"micromark-extension-mdx-jsx:unexpected-"+(P===null?"eof":"character"));throw pt.url=Lc+(P===null?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),pt}}function d1(e){return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function f1(e,t){return{name:"mdxJsxTextTag",tokenize:n};function n(r,i,s){return qf.call(this,r,i,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 g1(e,t){return{concrete:!0,name:"mdxJsxFlowTag",tokenize:n};function n(r,i,s){const o=this;return l;function l(h){return u(h)}function u(h){return qf.call(o,r,c,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 c(h){return je(h)?$e(r,d,"whitespace")(h):d(h)}function d(h){const g=o.parser.constructs.flow[123],m=Array.isArray(g)?g:g?[g]:[];let w;for(const S of m)if(S.name==="mdxFlowExpression"){w=S;break}return h===60?l(h):h===123&&w?r.attempt(w,d,s)(h):h===null||Ee(h)?i(h):s(h)}}}function m1(e){const t=e||{},n=t.acorn;let r;if(n){if(!n.parse||!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");r=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:g1(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})},text:{60:f1(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})}}}function x1(){return{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}}function Ut(e,t,n,r){const i=e.length;let s=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function Zt(e,t){return e.length>0?(Ut(e,e.length,0,t),e):t}function gr(e){if(e===null||Ge(e)||Nt(e))return 1;if(Ns(e))return 2}function Os(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const qa={name:"attention",resolveAll:v1,tokenize:b1};function v1(e,t){let n=-1,r,i,s,o,l,u,c,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},g={...e[n][1].start};Vc(h,-u),Vc(g,u),o={type:u>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:g},s={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[r][1].end={...o.start},e[n][1].start={...l.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Zt(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Zt(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",s,t]]),c=Zt(c,Os(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Zt(c,[["exit",s,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=Zt(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Ut(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function b1(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=gr(r);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 c=e.exit("attentionSequence"),d=gr(u),h=!d||d===2&&i||n.includes(u),g=!i||i===2&&d||n.includes(r);return c._open=!!(s===42?h:h&&(i||!g)),c._close=!!(s===42?g:g&&(d||!h)),t(u)}}function Vc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const y1={name:"autolink",tokenize:w1};function w1(e,t,n){let r=0;return i;function i(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(m){return Ct(m)?(e.consume(m),o):m===64?n(m):c(m)}function o(m){return m===43||m===45||m===46||Bt(m)?(r=1,l(m)):c(m)}function l(m){return m===58?(e.consume(m),r=0,u):(m===43||m===45||m===46||Bt(m))&&r++<32?(e.consume(m),l):(r=0,c(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||os(m)?n(m):(e.consume(m),u)}function c(m){return m===64?(e.consume(m),d):qw(m)?(e.consume(m),c):n(m)}function d(m){return Bt(m)?h(m):n(m)}function h(m){return m===46?(e.consume(m),r=0,d):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):g(m)}function g(m){if((m===45||Bt(m))&&r++<63){const w=m===45?g:h;return e.consume(m),w}return n(m)}}const _r={partial:!0,tokenize:k1};function k1(e,t,n){return r;function r(s){return je(s)?$e(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||Ee(s)?t(s):n(s)}}const Kf={continuation:{tokenize:_1},exit:E1,name:"blockQuote",tokenize:S1};function S1(e,t,n){const r=this;return i;function i(o){if(o===62){const l=r.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 je(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function _1(e,t,n){const r=this;return i;function i(o){return je(o)?$e(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return e.attempt(Kf,t,n)(o)}}function E1(e){e.exit("blockQuote")}const Jf={name:"characterEscape",tokenize:I1};function I1(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return Jw(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const Gf={name:"characterReference",tokenize:C1};function C1(e,t,n){const r=this;let i=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"),c):(e.enter("characterReferenceValue"),s=31,o=Bt,d(h))}function c(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=Kw,d):(e.enter("characterReferenceValue"),s=7,o=Ua,d(h))}function d(h){if(h===59&&i){const g=e.exit("characterReferenceValue");return o===Bt&&!Wr(r.sliceSerialize(g))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(h)&&i++<s?(e.consume(h),d):n(h)}}const Mc={partial:!0,tokenize:T1},jc={concrete:!0,name:"codeFenced",tokenize:A1};function A1(e,t,n){const r=this,i={partial:!0,tokenize:x};let s=0,o=0,l;return u;function u(f){return c(f)}function c(f){const R=r.events[r.events.length-1];return s=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,l=f,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(f)}function d(f){return f===l?(o++,e.consume(f),d):o<3?n(f):(e.exit("codeFencedFenceSequence"),je(f)?$e(e,h,"whitespace")(f):h(f))}function h(f){return f===null||Ee(f)?(e.exit("codeFencedFence"),r.interrupt?t(f):e.check(Mc,S,A)(f)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(f))}function g(f){return f===null||Ee(f)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(f)):je(f)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$e(e,m,"whitespace")(f)):f===96&&f===l?n(f):(e.consume(f),g)}function m(f){return f===null||Ee(f)?h(f):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(f))}function w(f){return f===null||Ee(f)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(f)):f===96&&f===l?n(f):(e.consume(f),w)}function S(f){return e.attempt(i,A,y)(f)}function y(f){return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),k}function k(f){return s>0&&je(f)?$e(e,v,"linePrefix",s+1)(f):v(f)}function v(f){return f===null||Ee(f)?e.check(Mc,S,A)(f):(e.enter("codeFlowValue"),_(f))}function _(f){return f===null||Ee(f)?(e.exit("codeFlowValue"),v(f)):(e.consume(f),_)}function A(f){return e.exit("codeFenced"),t(f)}function x(f,R,V){let L=0;return N;function N(Q){return f.enter("lineEnding"),f.consume(Q),f.exit("lineEnding"),$}function $(Q){return f.enter("codeFencedFence"),je(Q)?$e(f,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):U(Q)}function U(Q){return Q===l?(f.enter("codeFencedFenceSequence"),J(Q)):V(Q)}function J(Q){return Q===l?(L++,f.consume(Q),J):L>=o?(f.exit("codeFencedFenceSequence"),je(Q)?$e(f,Y,"whitespace")(Q):Y(Q)):V(Q)}function Y(Q){return Q===null||Ee(Q)?(f.exit("codeFencedFence"),R(Q)):V(Q)}}}function T1(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const sa={name:"codeIndented",tokenize:O1},N1={partial:!0,tokenize:P1};function O1(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),$e(e,s,"linePrefix",5)(c)}function s(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?u(c):Ee(c)?e.attempt(N1,o,u)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||Ee(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),l)}function u(c){return e.exit("codeIndented"),t(c)}}function P1(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Ee(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):$e(e,s,"linePrefix",5)(o)}function s(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):Ee(o)?i(o):n(o)}}const R1={name:"codeText",previous:L1,resolve:D1,tokenize:V1};function D1(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function L1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function V1(e,t,n){let r=0,i,s;return o;function o(h){return e.enter("codeText"),e.enter("codeTextSequence"),l(h)}function l(h){return h===96?(e.consume(h),r++,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"),i=0,d(h)):Ee(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||Ee(h)?(e.exit("codeTextData"),u(h)):(e.consume(h),c)}function d(h){return h===96?(e.consume(h),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(s.type="codeTextData",c(h))}}class M1{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 r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Rr(this.left,r),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),Rr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Rr(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);Rr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Rr(this.left,n.reverse())}}}function Rr(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 Yf(e){const t={};let n=-1,r,i,s,o,l,u,c;const d=new M1(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(u=r[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(r[0]==="enter")r[1].contentType&&(Object.assign(t,j1(d,n)),n=t[n],c=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(o=d.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...d.get(i)[1].start},l=d.slice(i,n),l.unshift(r),d.splice(i,n-i+1,l))}}return Ut(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function j1(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const l=o.events,u=[],c={};let d,h,g=-1,m=n,w=0,S=0;const y=[S];for(;m;){for(;e.get(++i)[1]!==m;);s.push(i),m._tokenizer||(d=r.sliceStream(m),m.next||d.push(null),h&&o.defineSkip(m.start),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),h=m,m=m.next}for(m=n;++g<l.length;)l[g][0]==="exit"&&l[g-1][0]==="enter"&&l[g][1].type===l[g-1][1].type&&l[g][1].start.line!==l[g][1].end.line&&(S=g+1,y.push(S),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(o.events=[],m?(m._tokenizer=void 0,m.previous=void 0):y.pop(),g=y.length;g--;){const k=l.slice(y[g],y[g+1]),v=s.pop();u.push([v,v+k.length-1]),e.splice(v,2,k)}for(u.reverse(),g=-1;++g<u.length;)c[w+u[g][0]]=w+u[g][1],w+=u[g][1]-u[g][0]-1;return c}const F1={resolve:B1,tokenize:H1},z1={partial:!0,tokenize:$1};function B1(e){return Yf(e),e}function H1(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?s(l):Ee(l)?e.check(z1,o,s)(l):(e.consume(l),i)}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,i}}function $1(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),$e(e,s,"linePrefix")}function s(o){if(o===null||Ee(o))return n(o);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Qf(e,t,n,r,i,s,o,l,u){const c=u||Number.POSITIVE_INFINITY;let d=0;return h;function h(k){return k===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(k),e.exit(s),g):k===null||k===32||k===41||os(k)?n(k):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),S(k))}function g(k){return k===62?(e.enter(s),e.consume(k),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(k))}function m(k){return k===62?(e.exit("chunkString"),e.exit(l),g(k)):k===null||k===60||Ee(k)?n(k):(e.consume(k),k===92?w:m)}function w(k){return k===60||k===62||k===92?(e.consume(k),m):m(k)}function S(k){return!d&&(k===null||k===41||Ge(k))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),t(k)):d<c&&k===40?(e.consume(k),d++,S):k===41?(e.consume(k),d--,S):k===null||k===32||k===40||os(k)?n(k):(e.consume(k),k===92?y:S)}function y(k){return k===40||k===41||k===92?(e.consume(k),S):S(k)}}function Xf(e,t,n,r,i,s){const o=this;let l=0,u;return c;function c(m){return e.enter(r),e.enter(i),e.consume(m),e.exit(i),e.enter(s),d}function d(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(i),e.consume(m),e.exit(i),e.exit(r),t):Ee(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===null||m===91||m===93||Ee(m)||l++>999?(e.exit("chunkString"),d(m)):(e.consume(m),u||(u=!je(m)),m===92?g:h)}function g(m){return m===91||m===92||m===93?(e.consume(m),l++,h):h(m)}}function Zf(e,t,n,r,i,s){let o;return l;function l(g){return g===34||g===39||g===40?(e.enter(r),e.enter(i),e.consume(g),e.exit(i),o=g===40?41:g,u):n(g)}function u(g){return g===o?(e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):(e.enter(s),c(g))}function c(g){return g===o?(e.exit(s),u(o)):g===null?n(g):Ee(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),$e(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===o||g===null||Ee(g)?(e.exit("chunkString"),c(g)):(e.consume(g),g===92?h:d)}function h(g){return g===o||g===92?(e.consume(g),d):d(g)}}function jr(e,t){let n;return r;function r(i){return Ee(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):je(i)?$e(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function ln(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const W1={name:"definition",tokenize:q1},U1={partial:!0,tokenize:K1};function q1(e,t,n){const r=this;let i;return s;function s(m){return e.enter("definition"),o(m)}function o(m){return Xf.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function l(m){return i=ln(r.sliceSerialize(r.events[r.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 Ge(m)?jr(e,c)(m):c(m)}function c(m){return Qf(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function d(m){return e.attempt(U1,h,h)(m)}function h(m){return je(m)?$e(e,g,"whitespace")(m):g(m)}function g(m){return m===null||Ee(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function K1(e,t,n){return r;function r(l){return Ge(l)?jr(e,i)(l):n(l)}function i(l){return Zf(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return je(l)?$e(e,o,"whitespace")(l):o(l)}function o(l){return l===null||Ee(l)?t(l):n(l)}}const J1={name:"hardBreakEscape",tokenize:G1};function G1(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return Ee(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const Y1={name:"headingAtx",resolve:Q1,tokenize:X1};function Q1(e,t){let n=e.length-2,r=3,i,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ut(e,r,n-r+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])),e}function X1(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),s(d)}function s(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||Ge(d)?(e.exit("atxHeadingSequence"),l(d)):n(d)}function l(d){return d===35?(e.enter("atxHeadingSequence"),u(d)):d===null||Ee(d)?(e.exit("atxHeading"),t(d)):je(d)?$e(e,l,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function u(d){return d===35?(e.consume(d),u):(e.exit("atxHeadingSequence"),l(d))}function c(d){return d===null||d===35||Ge(d)?(e.exit("atxHeadingText"),l(d)):(e.consume(d),c)}}const Z1=["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"],Fc=["pre","script","style","textarea"],ek={concrete:!0,name:"htmlFlow",resolveTo:rk,tokenize:ik},tk={partial:!0,tokenize:ak},nk={partial:!0,tokenize:sk};function rk(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 ik(e,t,n){const r=this;let i,s,o,l,u;return c;function c(T){return d(T)}function d(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),h}function h(T){return T===33?(e.consume(T),g):T===47?(e.consume(T),s=!0,S):T===63?(e.consume(T),i=3,r.interrupt?t:E):Ct(T)?(e.consume(T),o=String.fromCharCode(T),y):n(T)}function g(T){return T===45?(e.consume(T),i=2,m):T===91?(e.consume(T),i=5,l=0,w):Ct(T)?(e.consume(T),i=4,r.interrupt?t:E):n(T)}function m(T){return T===45?(e.consume(T),r.interrupt?t:E):n(T)}function w(T){const B="CDATA[";return T===B.charCodeAt(l++)?(e.consume(T),l===B.length?r.interrupt?t:U:w):n(T)}function S(T){return Ct(T)?(e.consume(T),o=String.fromCharCode(T),y):n(T)}function y(T){if(T===null||T===47||T===62||Ge(T)){const B=T===47,z=o.toLowerCase();return!B&&!s&&Fc.includes(z)?(i=1,r.interrupt?t(T):U(T)):Z1.includes(o.toLowerCase())?(i=6,B?(e.consume(T),k):r.interrupt?t(T):U(T)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(T):s?v(T):_(T))}return T===45||Bt(T)?(e.consume(T),o+=String.fromCharCode(T),y):n(T)}function k(T){return T===62?(e.consume(T),r.interrupt?t:U):n(T)}function v(T){return je(T)?(e.consume(T),v):N(T)}function _(T){return T===47?(e.consume(T),N):T===58||T===95||Ct(T)?(e.consume(T),A):je(T)?(e.consume(T),_):N(T)}function A(T){return T===45||T===46||T===58||T===95||Bt(T)?(e.consume(T),A):x(T)}function x(T){return T===61?(e.consume(T),f):je(T)?(e.consume(T),x):_(T)}function f(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),u=T,R):je(T)?(e.consume(T),f):V(T)}function R(T){return T===u?(e.consume(T),u=null,L):T===null||Ee(T)?n(T):(e.consume(T),R)}function V(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||Ge(T)?x(T):(e.consume(T),V)}function L(T){return T===47||T===62||je(T)?_(T):n(T)}function N(T){return T===62?(e.consume(T),$):n(T)}function $(T){return T===null||Ee(T)?U(T):je(T)?(e.consume(T),$):n(T)}function U(T){return T===45&&i===2?(e.consume(T),Z):T===60&&i===1?(e.consume(T),q):T===62&&i===4?(e.consume(T),M):T===63&&i===3?(e.consume(T),E):T===93&&i===5?(e.consume(T),ie):Ee(T)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(tk,H,J)(T)):T===null||Ee(T)?(e.exit("htmlFlowData"),J(T)):(e.consume(T),U)}function J(T){return e.check(nk,Y,H)(T)}function Y(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),Q}function Q(T){return T===null||Ee(T)?J(T):(e.enter("htmlFlowData"),U(T))}function Z(T){return T===45?(e.consume(T),E):U(T)}function q(T){return T===47?(e.consume(T),o="",K):U(T)}function K(T){if(T===62){const B=o.toLowerCase();return Fc.includes(B)?(e.consume(T),M):U(T)}return Ct(T)&&o.length<8?(e.consume(T),o+=String.fromCharCode(T),K):U(T)}function ie(T){return T===93?(e.consume(T),E):U(T)}function E(T){return T===62?(e.consume(T),M):T===45&&i===2?(e.consume(T),E):U(T)}function M(T){return T===null||Ee(T)?(e.exit("htmlFlowData"),H(T)):(e.consume(T),M)}function H(T){return e.exit("htmlFlow"),t(T)}}function sk(e,t,n){const r=this;return i;function i(o){return Ee(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):n(o)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function ak(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(_r,t,n)}}const ok={name:"htmlText",tokenize:lk};function lk(e,t,n){const r=this;let i,s,o;return l;function l(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),x):E===63?(e.consume(E),_):Ct(E)?(e.consume(E),V):n(E)}function c(E){return E===45?(e.consume(E),d):E===91?(e.consume(E),s=0,w):Ct(E)?(e.consume(E),v):n(E)}function d(E){return E===45?(e.consume(E),m):n(E)}function h(E){return E===null?n(E):E===45?(e.consume(E),g):Ee(E)?(o=h,q(E)):(e.consume(E),h)}function g(E){return E===45?(e.consume(E),m):h(E)}function m(E){return E===62?Z(E):E===45?g(E):h(E)}function w(E){const M="CDATA[";return E===M.charCodeAt(s++)?(e.consume(E),s===M.length?S:w):n(E)}function S(E){return E===null?n(E):E===93?(e.consume(E),y):Ee(E)?(o=S,q(E)):(e.consume(E),S)}function y(E){return E===93?(e.consume(E),k):S(E)}function k(E){return E===62?Z(E):E===93?(e.consume(E),k):S(E)}function v(E){return E===null||E===62?Z(E):Ee(E)?(o=v,q(E)):(e.consume(E),v)}function _(E){return E===null?n(E):E===63?(e.consume(E),A):Ee(E)?(o=_,q(E)):(e.consume(E),_)}function A(E){return E===62?Z(E):_(E)}function x(E){return Ct(E)?(e.consume(E),f):n(E)}function f(E){return E===45||Bt(E)?(e.consume(E),f):R(E)}function R(E){return Ee(E)?(o=R,q(E)):je(E)?(e.consume(E),R):Z(E)}function V(E){return E===45||Bt(E)?(e.consume(E),V):E===47||E===62||Ge(E)?L(E):n(E)}function L(E){return E===47?(e.consume(E),Z):E===58||E===95||Ct(E)?(e.consume(E),N):Ee(E)?(o=L,q(E)):je(E)?(e.consume(E),L):Z(E)}function N(E){return E===45||E===46||E===58||E===95||Bt(E)?(e.consume(E),N):$(E)}function $(E){return E===61?(e.consume(E),U):Ee(E)?(o=$,q(E)):je(E)?(e.consume(E),$):L(E)}function U(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),i=E,J):Ee(E)?(o=U,q(E)):je(E)?(e.consume(E),U):(e.consume(E),Y)}function J(E){return E===i?(e.consume(E),i=void 0,Q):E===null?n(E):Ee(E)?(o=J,q(E)):(e.consume(E),J)}function Y(E){return E===null||E===34||E===39||E===60||E===61||E===96?n(E):E===47||E===62||Ge(E)?L(E):(e.consume(E),Y)}function Q(E){return E===47||E===62||Ge(E)?L(E):n(E)}function Z(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):n(E)}function q(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),K}function K(E){return je(E)?$e(e,ie,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):ie(E)}function ie(E){return e.enter("htmlTextData"),o(E)}}const pl={name:"labelEnd",resolveAll:pk,resolveTo:dk,tokenize:fk},uk={tokenize:gk},ck={tokenize:mk},hk={tokenize:xk};function pk(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Ut(e,0,e.length,n),e}function dk(e,t){let n=e.length,r=0,i,s,o,l;for(;n--;)if(i=e[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.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}},c={type:"label",start:{...e[s][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",u,t],["enter",c,t]],l=Zt(l,e.slice(s+1,s+r+3)),l=Zt(l,[["enter",d,t]]),l=Zt(l,Os(t.parser.constructs.insideSpan.null,e.slice(s+r+4,o-3),t)),l=Zt(l,[["exit",d,t],e[o-2],e[o-1],["exit",c,t]]),l=Zt(l,e.slice(o+1)),l=Zt(l,[["exit",u,t]]),Ut(e,s,e.length,l),e}function fk(e,t,n){const r=this;let i=r.events.length,s,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return l;function l(g){return s?s._inactive?h(g):(o=r.parser.defined.includes(ln(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),u):n(g)}function u(g){return g===40?e.attempt(uk,d,o?d:h)(g):g===91?e.attempt(ck,d,o?c:h)(g):o?d(g):h(g)}function c(g){return e.attempt(hk,d,h)(g)}function d(g){return t(g)}function h(g){return s._balanced=!0,n(g)}}function gk(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return Ge(h)?jr(e,s)(h):s(h)}function s(h){return h===41?d(h):Qf(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function o(h){return Ge(h)?jr(e,u)(h):d(h)}function l(h){return n(h)}function u(h){return h===34||h===39||h===40?Zf(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):d(h)}function c(h){return Ge(h)?jr(e,d)(h):d(h)}function d(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function mk(e,t,n){const r=this;return i;function i(l){return Xf.call(r,e,s,o,"reference","referenceMarker","referenceString")(l)}function s(l){return r.parser.defined.includes(ln(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function o(l){return n(l)}}function xk(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const vk={name:"labelStartImage",resolveAll:pl.resolveAll,tokenize:bk};function bk(e,t,n){const r=this;return i;function i(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 r.parser.constructs?n(l):t(l)}}const yk={name:"labelStartLink",resolveAll:pl.resolveAll,tokenize:wk};function wk(e,t,n){const r=this;return i;function i(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 r.parser.constructs?n(o):t(o)}}const aa={name:"lineEnding",tokenize:kk};function kk(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),$e(e,t,"linePrefix")}}const Bi={name:"thematicBreak",tokenize:Sk};function Sk(e,t,n){let r=0,i;return s;function s(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,l(c)}function l(c){return c===i?(e.enter("thematicBreakSequence"),u(c)):r>=3&&(c===null||Ee(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),je(c)?$e(e,l,"whitespace")(c):l(c))}}const zt={continuation:{tokenize:Ck},exit:Tk,name:"list",tokenize:Ik},_k={partial:!0,tokenize:Nk},Ek={partial:!0,tokenize:Ak};function Ik(e,t,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return l;function l(m){const w=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:Ua(m)){if(r.containerState.type||(r.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Bi,n,c)(m):c(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return n(m)}function u(m){return Ua(m)&&++o<10?(e.consume(m),u):(!r.interrupt||o<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):n(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(_r,r.interrupt?n:d,e.attempt(_k,g,h))}function d(m){return r.containerState.initialBlankLine=!0,s++,g(m)}function h(m){return je(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),g):n(m)}function g(m){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function Ck(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(_r,i,s);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,$e(e,t,"listItemIndent",r.containerState.size+1)(l)}function s(l){return r.containerState.furtherBlankLines||!je(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ek,t,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,$e(e,e.attempt(zt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Ak(e,t,n){const r=this;return $e(e,i,"listItemIndent",r.containerState.size+1);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(s):n(s)}}function Tk(e){e.exit(this.containerState.type)}function Nk(e,t,n){const r=this;return $e(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const o=r.events[r.events.length-1];return!je(s)&&o&&o[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const zc={name:"setextUnderline",resolveTo:Ok,tokenize:Pk};function Ok(e,t){let n=e.length,r,i,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=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[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",s?(e.splice(i,0,["enter",o,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function Pk(e,t,n){const r=this;let i;return s;function s(c){let d=r.events.length,h;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){h=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===i?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),je(c)?$e(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||Ee(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Rk={tokenize:Vk,partial:!0},Bc="https://github.com/micromark/micromark-extension-mdxjs-esm",Dk=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function Lk(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 n=e.acorn,r=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0});return{flow:{101:t,105:t}};function i(s,o,l){const u=this,c=u.parser.definedModuleSpecifiers||(u.parser.definedModuleSpecifiers=[]),d=this.events.length+1;let h="";return u.interrupt?l:g;function g(v){return u.now().column>1?l(v):(s.enter("mdxjsEsm"),s.enter("mdxjsEsmData"),s.consume(v),h+=String.fromCharCode(v),m)}function m(v){return Ct(v)?(s.consume(v),h+=String.fromCharCode(v),m):(h==="import"||h==="export")&&v===32?(s.consume(v),w):l(v)}function w(v){return v===null||Ee(v)?(s.exit("mdxjsEsmData"),S(v)):(s.consume(v),w)}function S(v){return v===null?k(v):Ee(v)?s.check(Rk,k,y)(v):(s.enter("mdxjsEsmData"),w(v))}function y(v){return s.enter("lineEnding"),s.consume(v),s.exit("lineEnding"),S}function k(v){const _=Uf(u.events.slice(d),{acorn:n,acornOptions:r,tokenTypes:["mdxjsEsmData"],prefix:c.length>0?"var "+c.join(",")+`
82
- `:""});if(_.error){if(v!==null&&_.swallow)return y(v);const x=new Xe("Could not parse import/exports with acorn",{cause:_.error,place:{line:_.error.loc.line,column:_.error.loc.column+1,offset:_.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw x.url=Bc+"#could-not-parse-importexports-with-acorn",x}c.length>0&&_.estree.body.shift();let A=-1;for(;++A<_.estree.body.length;){const x=_.estree.body[A];if(!Dk.has(x.type)){const f=new Xe("Unexpected `"+x.type+"` in code: only import/exports are supported",{place:zi(x),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw f.url=Bc+"#unexpected-type-in-code-only-importexports-are-supported",f}if(x.type==="ImportDeclaration"&&!u.interrupt){let f=-1;for(;++f<x.specifiers.length;){const R=x.specifiers[f];c.push(R.local.name)}}}return Object.assign(s.exit("mdxjsEsm"),e.addResult?{estree:_.estree}:void 0),o(v)}}}function Vk(e,t,n){return r;function r(i){return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),e.attempt(_r,t,n)}}const Hc={}.hasOwnProperty;function dl(e){const t={};let n=-1;for(;++n<e.length;)Mk(t,e[n]);return t}function Mk(e,t){let n;for(n in t){const i=(Hc.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let o;if(s)for(o in s){Hc.call(i,o)||(i[o]=[]);const l=s[o];jk(i[o],Array.isArray(l)?l:l?[l]:[])}}}function jk(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ut(e,0,0,r)}function Fk(e){const t=Object.assign({acorn:xt.extend(Uw()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},e);return dl([Lk(t),l1(t),m1(t),x1()])}const zk={};function Bk(e){const t=this,n=e||zk,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Fk(n)),s.push(ew()),o.push(tw(n))}const Hk={};function $k(e,t){const n=Hk,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return eg(e,r,i)}function eg(e,t,n){if(Wk(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 $c(e.children,t,n)}return Array.isArray(e)?$c(e,t,n):""}function $c(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=eg(e[i],t,n);return r.join("")}function Wk(e){return!!(e&&typeof e=="object")}function tg(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 Uk={tokenize:qk};function qk(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),$e(e,t,"linePrefix")}function i(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 Ee(l)?(e.consume(l),e.exit("chunkText"),s):(e.consume(l),o)}}const Kk={tokenize:Jk},Wc={tokenize:Gk};function Jk(e){const t=this,n=[];let r=0,i,s,o;return l;function l(_){if(r<n.length){const A=n[r];return t.containerState=A[1],e.attempt(A[0].continuation,u,c)(_)}return c(_)}function u(_){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();const A=t.events.length;let x=A,f;for(;x--;)if(t.events[x][0]==="exit"&&t.events[x][1].type==="chunkFlow"){f=t.events[x][1].end;break}k(r);let R=A;for(;R<t.events.length;)t.events[R][1].end={...f},R++;return Ut(t.events,x+1,0,t.events.slice(A)),t.events.length=R,c(_)}return l(_)}function c(_){if(r===n.length){if(!i)return g(_);if(i.currentConstruct&&i.currentConstruct.concrete)return w(_);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Wc,d,h)(_)}function d(_){return i&&v(),k(r),g(_)}function h(_){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,w(_)}function g(_){return t.containerState={},e.attempt(Wc,m,w)(_)}function m(_){return r++,n.push([t.currentConstruct,t.containerState]),g(_)}function w(_){if(_===null){i&&v(),k(0),e.consume(_);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),S(_)}function S(_){if(_===null){y(e.exit("chunkFlow"),!0),k(0),e.consume(_);return}return Ee(_)?(e.consume(_),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(_),S)}function y(_,A){const x=t.sliceStream(_);if(A&&x.push(null),_.previous=s,s&&(s.next=_),s=_,i.defineSkip(_.start),i.write(x),t.parser.lazy[_.start.line]){let f=i.events.length;for(;f--;)if(i.events[f][1].start.offset<o&&(!i.events[f][1].end||i.events[f][1].end.offset>o))return;const R=t.events.length;let V=R,L,N;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if(L){N=t.events[V][1].end;break}L=!0}for(k(r),f=R;f<t.events.length;)t.events[f][1].end={...N},f++;Ut(t.events,V+1,0,t.events.slice(R)),t.events.length=f}}function k(_){let A=n.length;for(;A-- >_;){const x=n[A];t.containerState=x[1],x[0].exit.call(t,e)}n.length=_}function v(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Gk(e,t,n){return $e(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Yk={tokenize:Qk};function Qk(e){const t=this,n=e.attempt(_r,r,e.attempt(this.parser.constructs.flowInitial,i,$e(e,e.attempt(this.parser.constructs.flow,i,e.attempt(F1,i)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Xk={resolveAll:rg()},Zk=ng("string"),eS=ng("text");function ng(e){return{resolveAll:rg(e==="text"?tS:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],s=n.attempt(i,o,l);return o;function o(d){return c(d)?s(d):l(d)}function l(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),u}function u(d){return c(d)?(n.exit("data"),s(d)):(n.consume(d),u)}function c(d){if(d===null)return!0;const h=i[d];let g=-1;if(h)for(;++g<h.length;){const m=h[g];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function rg(e){return t;function t(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(n,r):n}}function tS(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 r=e[n-1][1],i=t.sliceStream(r);let s=i.length,o=-1,l=0,u;for(;s--;){const c=i[s];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(c===-2)u=!0,l++;else if(c!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const c={type:n===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:r.start._bufferIndex+o,_index:r.start._index+s,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const nS={42:zt,43:zt,45:zt,48:zt,49:zt,50:zt,51:zt,52:zt,53:zt,54:zt,55:zt,56:zt,57:zt,62:Kf},rS={91:W1},iS={[-2]:sa,[-1]:sa,32:sa},sS={35:Y1,42:Bi,45:[zc,Bi],60:ek,61:zc,95:Bi,96:jc,126:jc},aS={38:Gf,92:Jf},oS={[-5]:aa,[-4]:aa,[-3]:aa,33:vk,38:Gf,42:qa,60:[y1,ok],91:yk,92:[J1,Jf],93:pl,95:qa,96:R1},lS={null:[qa,Xk]},uS={null:[42,95]},cS={null:[]},hS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:uS,contentInitial:rS,disable:cS,document:nS,flow:sS,flowInitial:iS,insideSpan:lS,string:aS,text:oS},Symbol.toStringTag,{value:"Module"}));function pS(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let o=[],l=[];const u={attempt:R(x),check:R(f),consume:v,enter:_,exit:A,interrupt:R(f,{interrupt:!0})},c={code:null,containerState:{},defineSkip:S,events:[],now:w,parser:e,previous:null,sliceSerialize:g,sliceStream:m,write:h};let d=t.tokenize.call(c,u);return t.resolveAll&&s.push(t),c;function h($){return o=Zt(o,$),y(),o[o.length-1]!==null?[]:(V(t,0),c.events=Os(s,c.events,c),c.events)}function g($,U){return fS(m($),U)}function m($){return dS(o,$)}function w(){const{_bufferIndex:$,_index:U,line:J,column:Y,offset:Q}=r;return{_bufferIndex:$,_index:U,line:J,column:Y,offset:Q}}function S($){i[$.line]=$.column,N()}function y(){let $;for(;r._index<o.length;){const U=o[r._index];if(typeof U=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<U.length;)k(U.charCodeAt(r._bufferIndex));else k(U)}}function k($){d=d($)}function v($){Ee($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,N()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=$}function _($,U){const J=U||{};return J.type=$,J.start=w(),c.events.push(["enter",J,c]),l.push(J),J}function A($){const U=l.pop();return U.end=w(),c.events.push(["exit",U,c]),U}function x($,U){V($,U.from)}function f($,U){U.restore()}function R($,U){return J;function J(Y,Q,Z){let q,K,ie,E;return Array.isArray(Y)?H(Y):"tokenize"in Y?H([Y]):M(Y);function M(W){return F;function F(te){const ee=te!==null&&W[te],ne=te!==null&&W.null,le=[...Array.isArray(ee)?ee:ee?[ee]:[],...Array.isArray(ne)?ne:ne?[ne]:[]];return H(le)(te)}}function H(W){return q=W,K=0,W.length===0?Z:T(W[K])}function T(W){return F;function F(te){return E=L(),ie=W,W.partial||(c.currentConstruct=W),W.name&&c.parser.constructs.disable.null.includes(W.name)?z():W.tokenize.call(U?Object.assign(Object.create(c),U):c,u,B,z)(te)}}function B(W){return $(ie,E),Q}function z(W){return E.restore(),++K<q.length?T(q[K]):Z}}}function V($,U){$.resolveAll&&!s.includes($)&&s.push($),$.resolve&&Ut(c.events,U,c.events.length-U,$.resolve(c.events.slice(U),c)),$.resolveTo&&(c.events=$.resolveTo(c.events,c))}function L(){const $=w(),U=c.previous,J=c.currentConstruct,Y=c.events.length,Q=Array.from(l);return{from:Y,restore:Z};function Z(){r=$,c.previous=U,c.currentConstruct=J,c.events.length=Y,l=Q,N()}}function N(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function dS(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,s)];else{if(o=e.slice(n,i),r>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}s>0&&o.push(e[i].slice(0,s))}return o}function fS(e,t){let n=-1;const r=[];let i;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=`
81
+ `;break}case-2:{s=" ";break}case-1:{if(r)continue;s=" ";break}default:s=String.fromCharCode(i)}r=i===-2,n.push(s)}return n.join("")}function zi(e){const t=e||{},n=t.loc||{},r=t.range||[void 0,void 0],i=Rc(n.start,r[0]||t.start),s=Rc(n.end,r[1]||t.end);if(i&&s)return{start:i,end:s}}function Rc(e,t){if(e&&typeof e=="object"){const n="line"in e?ia(e.line):void 0,r="column"in e?ia(e.column):void 0;if(n&&r!==void 0)return{line:n,column:r+1,offset:ia(t)}}}function ia(e){return typeof e=="number"&&e>-1?e:void 0}const r1=2,hr="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",i1="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",s1="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",Dc="#unexpected-type-in-code-expected-an-object-spread-spread",a1="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",o1="#could-not-parse-expression-with-acorn";function ls(e,t,n,r,i,s,o,l,u,c,d){const h=this,g=this.events.length+3;let m=0,w,S;return y;function y(A){return e.enter(n),e.enter(r),e.consume(A),e.exit(r),w=h.now(),k}function k(A){if(A===null){if(S)throw S;const x=new Xe("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:h.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw x.url=hr+i1,x}if(Ee(A))return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),_;if(A===125&&m===0){const x=s?l1.call(h,s,o,i,g,w,c||!1,u||!1):{type:"ok",estree:void 0};if(x.type==="ok"){e.enter(r),e.consume(A),e.exit(r);const f=e.exit(n);return l&&x.estree&&Object.assign(f,{estree:x.estree}),t}return S=x.message,e.enter(i),e.consume(A),v}return e.enter(i),v(A)}function v(A){return A===125&&m===0||A===null||Ee(A)?(e.exit(i),k(A)):(A===123&&!s?m+=1:A===125&&(m-=1),e.consume(A),v)}function _(A){const x=h.now();if(x.line!==w.line&&!d&&h.parser.lazy[x.line]){const f=new Xe("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 f.url=hr+s1,f}return je(A)?$e(e,k,"linePrefix",r1+1)(A):k(A)}}function l1(e,t,n,r,i,s,o){const l=Uf(this.events.slice(r),{acorn:e,tokenTypes:[n],acornOptions:t,start:i,expression:!0,allowEmpty:s,prefix:o?"({":"",suffix:o?"})":""}),u=l.estree;if(o&&u){const c=u.body[0];if(c.type!=="ExpressionStatement"||c.expression.type!=="ObjectExpression"){const d=zi(c),h=new Xe("Unexpected `"+c.type+"` in code: expected an object spread (`{...spread}`)",{place:d.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw h.url=hr+Dc,h}if(c.expression.properties[1]){const d=zi(c.expression.properties[1]),h=new Xe("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=hr+a1,h}if(c.expression.properties[0]&&c.expression.properties[0].type!=="SpreadElement"){const d=zi(c.expression.properties[0]),h=new Xe("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=hr+Dc,h}}if(l.error){const c=new Xe("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 c.url=hr+o1,{type:"nok",message:c}}return{type:"ok",estree:u}}function u1(e){const t=e||{},n=t.addResult,r=t.acorn,i=t.spread;let s=t.allowEmpty,o;if(s==null&&(s=!0),r){if(!r.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(c,d,h){const g=this;return m;function m(k){return w(k)}function w(k){return ls.call(g,c,S,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",r,o,n,i,s)(k)}function S(k){return je(k)?$e(c,y,"whitespace")(k):y(k)}function y(k){const v=g.parser.constructs.flow[60],A=(Array.isArray(v)?v:v?[v]:[]).find(function(x){return x.name==="mdxJsxFlowTag"});return k===60&&A?c.attempt(A,y,h)(k):k===null||Ee(k)?d(k):h(k)}}function u(c,d){const h=this;return g;function g(m){return ls.call(h,c,d,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",r,o,n,i,s,!0)(m)}}}const c1=/[$_\p{ID_Start}]/u,h1=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,p1=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,d1={};function nn(e){return e?c1.test(String.fromCodePoint(e)):!1}function Pr(e,t){const r=(t||d1).jsx?p1:h1;return e?r.test(String.fromCodePoint(e)):!1}const Lc="https://github.com/micromark/micromark-extension-mdx-jsx";function qf(e,t,n,r,i,s,o,l,u,c,d,h,g,m,w,S,y,k,v,_,A,x,f,R,V,L,N,$,U,J,Y,Q){const Z=this;let q,K;return ie;function ie(P){return e.enter(l),e.enter(u),e.consume(P),e.exit(u),E}function E(P){return Ge(P)?n(P):(q=M,Fe(P))}function M(P){if(P===47)return e.enter(c),e.consume(P),e.exit(c),q=H,Fe;if(P===62)return Je(P);if(P!==null&&P>=0&&nn(P))return e.enter(h),e.enter(g),e.consume(P),T;se(P,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(P===33?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function H(P){if(P===62)return Je(P);if(P!==null&&P>=0&&nn(P))return e.enter(h),e.enter(g),e.consume(P),T;se(P,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(P===42||P===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function T(P){if(P!==null&&P>=0&&Pr(P,{jsx:!0}))return e.consume(P),T;if(P===46||P===47||P===58||P===62||P===123||Ge(P)||Nt(P))return e.exit(g),q=B,Fe(P);se(P,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(P===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function B(P){if(P===46)return e.enter(m),e.consume(P),e.exit(m),q=z,Fe;if(P===58)return e.enter(S),e.consume(P),e.exit(S),q=te,Fe;if(P===47||P===62||P===123||P!==null&&P>=0&&nn(P))return e.exit(h),le(P);se(P,"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 z(P){if(P!==null&&P>=0&&nn(P))return e.enter(w),e.consume(P),W;se(P,"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(P){if(P!==null&&P>=0&&Pr(P,{jsx:!0}))return e.consume(P),W;if(P===46||P===47||P===62||P===123||Ge(P)||Nt(P))return e.exit(w),q=F,Fe(P);se(P,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(P===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function F(P){if(P===46)return e.enter(m),e.consume(P),e.exit(m),q=z,Fe;if(P===47||P===62||P===123||P!==null&&P>=0&&nn(P))return e.exit(h),le(P);se(P,"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 te(P){if(P!==null&&P>=0&&nn(P))return e.enter(y),e.consume(P),ee;se(P,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(P===43||P!==null&&P>46&&P<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function ee(P){if(P!==null&&P>=0&&Pr(P,{jsx:!0}))return e.consume(P),ee;if(P===47||P===62||P===123||Ge(P)||Nt(P))return e.exit(y),q=ne,Fe(P);se(P,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ne(P){if(P===47||P===62||P===123||P!==null&&P>=0&&nn(P))return e.exit(h),le(P);se(P,"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 le(P){if(P===47)return e.enter(d),e.consume(P),e.exit(d),q=vt,Fe;if(P===62)return Je(P);if(P===123)return ls.call(Z,e,G,k,v,_,r,i,s,!0,!1,o)(P);if(P!==null&&P>=0&&nn(P))return e.enter(A),e.enter(x),e.enter(f),e.consume(P),ae;se(P,"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 G(P){return q=le,Fe(P)}function ae(P){if(P!==null&&P>=0&&Pr(P,{jsx:!0}))return e.consume(P),ae;if(P===47||P===58||P===61||P===62||P===123||Ge(P)||Nt(P))return e.exit(f),q=ce,Fe(P);se(P,"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 ce(P){if(P===58)return e.enter(R),e.consume(P),e.exit(R),q=Ie,Fe;if(P===61)return e.exit(x),e.enter(L),e.consume(P),e.exit(L),q=Ve,Fe;if(P===47||P===62||P===123||Ge(P)||Nt(P)||P!==null&&P>=0&&nn(P))return e.exit(x),e.exit(A),q=le,Fe(P);se(P,"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 Ie(P){if(P!==null&&P>=0&&nn(P))return e.enter(V),e.consume(P),Ce;se(P,"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 Ce(P){if(P!==null&&P>=0&&Pr(P,{jsx:!0}))return e.consume(P),Ce;if(P===47||P===61||P===62||P===123||Ge(P)||Nt(P))return e.exit(V),e.exit(x),q=Re,Fe(P);se(P,"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 Re(P){if(P===61)return e.enter(L),e.consume(P),e.exit(L),q=Ve,Fe;if(P===47||P===62||P===123||P!==null&&P>=0&&nn(P))return e.exit(A),le(P);se(P,"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 Ve(P){if(P===34||P===39)return e.enter(N),e.enter($),e.consume(P),e.exit($),K=P,Ne;if(P===123)return ls.call(Z,e,Oe,J,Y,Q,r,i,s,!1,!1,o)(P);se(P,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(P===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function Oe(P){return e.exit(A),q=le,Fe(P)}function Ne(P){return P===null&&se(P,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(K)+"`"),P===K?(e.enter($),e.consume(P),e.exit($),e.exit(N),e.exit(A),K=void 0,q=le,Fe):Ee(P)?(q=Ne,Fe(P)):(e.enter(U),Ke(P))}function Ke(P){return P===null||P===K||Ee(P)?(e.exit(U),Ne(P)):(e.consume(P),Ke)}function vt(P){if(P===62)return Je(P);se(P,"after self-closing slash","`>` to end the tag"+(P===42||P===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function Je(P){return e.enter(u),e.consume(P),e.exit(u),e.exit(l),t}function Fe(P){return Ee(P)?(e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),oe):je(P)||Nt(P)?(e.enter("esWhitespace"),Vt(P)):q(P)}function Vt(P){return Ee(P)?(e.exit("esWhitespace"),Fe(P)):je(P)||Nt(P)?(e.consume(P),Vt):(e.exit("esWhitespace"),q(P))}function oe(P){if(!o&&Z.parser.lazy[Z.now().line]){const be=new Xe("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 be.url=Lc+"#unexpected-lazy-line-in-container-expected-line-to-be",be}return Fe(P)}function se(P,be,He){const pt=new Xe("Unexpected "+(P===null?"end of file":"character `"+(P===96?"` ` `":String.fromCodePoint(P))+"` ("+f1(P)+")")+" "+be+", expected "+He,Z.now(),"micromark-extension-mdx-jsx:unexpected-"+(P===null?"eof":"character"));throw pt.url=Lc+(P===null?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),pt}}function f1(e){return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function g1(e,t){return{name:"mdxJsxTextTag",tokenize:n};function n(r,i,s){return qf.call(this,r,i,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 m1(e,t){return{concrete:!0,name:"mdxJsxFlowTag",tokenize:n};function n(r,i,s){const o=this;return l;function l(h){return u(h)}function u(h){return qf.call(o,r,c,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 c(h){return je(h)?$e(r,d,"whitespace")(h):d(h)}function d(h){const g=o.parser.constructs.flow[123],m=Array.isArray(g)?g:g?[g]:[];let w;for(const S of m)if(S.name==="mdxFlowExpression"){w=S;break}return h===60?l(h):h===123&&w?r.attempt(w,d,s)(h):h===null||Ee(h)?i(h):s(h)}}}function x1(e){const t=e||{},n=t.acorn;let r;if(n){if(!n.parse||!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");r=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:m1(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})},text:{60:g1(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})}}}function v1(){return{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}}function Ut(e,t,n,r){const i=e.length;let s=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function Zt(e,t){return e.length>0?(Ut(e,e.length,0,t),e):t}function gr(e){if(e===null||Ge(e)||Nt(e))return 1;if(Ns(e))return 2}function Os(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const qa={name:"attention",resolveAll:b1,tokenize:y1};function b1(e,t){let n=-1,r,i,s,o,l,u,c,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},g={...e[n][1].start};Vc(h,-u),Vc(g,u),o={type:u>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:g},s={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[r][1].end={...o.start},e[n][1].start={...l.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Zt(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Zt(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",s,t]]),c=Zt(c,Os(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Zt(c,[["exit",s,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=Zt(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Ut(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function y1(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=gr(r);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 c=e.exit("attentionSequence"),d=gr(u),h=!d||d===2&&i||n.includes(u),g=!i||i===2&&d||n.includes(r);return c._open=!!(s===42?h:h&&(i||!g)),c._close=!!(s===42?g:g&&(d||!h)),t(u)}}function Vc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const w1={name:"autolink",tokenize:k1};function k1(e,t,n){let r=0;return i;function i(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(m){return Ct(m)?(e.consume(m),o):m===64?n(m):c(m)}function o(m){return m===43||m===45||m===46||Bt(m)?(r=1,l(m)):c(m)}function l(m){return m===58?(e.consume(m),r=0,u):(m===43||m===45||m===46||Bt(m))&&r++<32?(e.consume(m),l):(r=0,c(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||os(m)?n(m):(e.consume(m),u)}function c(m){return m===64?(e.consume(m),d):Kw(m)?(e.consume(m),c):n(m)}function d(m){return Bt(m)?h(m):n(m)}function h(m){return m===46?(e.consume(m),r=0,d):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):g(m)}function g(m){if((m===45||Bt(m))&&r++<63){const w=m===45?g:h;return e.consume(m),w}return n(m)}}const _r={partial:!0,tokenize:S1};function S1(e,t,n){return r;function r(s){return je(s)?$e(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||Ee(s)?t(s):n(s)}}const Kf={continuation:{tokenize:E1},exit:I1,name:"blockQuote",tokenize:_1};function _1(e,t,n){const r=this;return i;function i(o){if(o===62){const l=r.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 je(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function E1(e,t,n){const r=this;return i;function i(o){return je(o)?$e(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return e.attempt(Kf,t,n)(o)}}function I1(e){e.exit("blockQuote")}const Jf={name:"characterEscape",tokenize:C1};function C1(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return Gw(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const Gf={name:"characterReference",tokenize:A1};function A1(e,t,n){const r=this;let i=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"),c):(e.enter("characterReferenceValue"),s=31,o=Bt,d(h))}function c(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=Jw,d):(e.enter("characterReferenceValue"),s=7,o=Ua,d(h))}function d(h){if(h===59&&i){const g=e.exit("characterReferenceValue");return o===Bt&&!Wr(r.sliceSerialize(g))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(h)&&i++<s?(e.consume(h),d):n(h)}}const Mc={partial:!0,tokenize:N1},jc={concrete:!0,name:"codeFenced",tokenize:T1};function T1(e,t,n){const r=this,i={partial:!0,tokenize:x};let s=0,o=0,l;return u;function u(f){return c(f)}function c(f){const R=r.events[r.events.length-1];return s=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,l=f,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(f)}function d(f){return f===l?(o++,e.consume(f),d):o<3?n(f):(e.exit("codeFencedFenceSequence"),je(f)?$e(e,h,"whitespace")(f):h(f))}function h(f){return f===null||Ee(f)?(e.exit("codeFencedFence"),r.interrupt?t(f):e.check(Mc,S,A)(f)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(f))}function g(f){return f===null||Ee(f)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(f)):je(f)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$e(e,m,"whitespace")(f)):f===96&&f===l?n(f):(e.consume(f),g)}function m(f){return f===null||Ee(f)?h(f):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(f))}function w(f){return f===null||Ee(f)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(f)):f===96&&f===l?n(f):(e.consume(f),w)}function S(f){return e.attempt(i,A,y)(f)}function y(f){return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),k}function k(f){return s>0&&je(f)?$e(e,v,"linePrefix",s+1)(f):v(f)}function v(f){return f===null||Ee(f)?e.check(Mc,S,A)(f):(e.enter("codeFlowValue"),_(f))}function _(f){return f===null||Ee(f)?(e.exit("codeFlowValue"),v(f)):(e.consume(f),_)}function A(f){return e.exit("codeFenced"),t(f)}function x(f,R,V){let L=0;return N;function N(Q){return f.enter("lineEnding"),f.consume(Q),f.exit("lineEnding"),$}function $(Q){return f.enter("codeFencedFence"),je(Q)?$e(f,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):U(Q)}function U(Q){return Q===l?(f.enter("codeFencedFenceSequence"),J(Q)):V(Q)}function J(Q){return Q===l?(L++,f.consume(Q),J):L>=o?(f.exit("codeFencedFenceSequence"),je(Q)?$e(f,Y,"whitespace")(Q):Y(Q)):V(Q)}function Y(Q){return Q===null||Ee(Q)?(f.exit("codeFencedFence"),R(Q)):V(Q)}}}function N1(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const sa={name:"codeIndented",tokenize:P1},O1={partial:!0,tokenize:R1};function P1(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),$e(e,s,"linePrefix",5)(c)}function s(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?u(c):Ee(c)?e.attempt(O1,o,u)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||Ee(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),l)}function u(c){return e.exit("codeIndented"),t(c)}}function R1(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Ee(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):$e(e,s,"linePrefix",5)(o)}function s(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):Ee(o)?i(o):n(o)}}const D1={name:"codeText",previous:V1,resolve:L1,tokenize:M1};function L1(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function V1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function M1(e,t,n){let r=0,i,s;return o;function o(h){return e.enter("codeText"),e.enter("codeTextSequence"),l(h)}function l(h){return h===96?(e.consume(h),r++,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"),i=0,d(h)):Ee(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||Ee(h)?(e.exit("codeTextData"),u(h)):(e.consume(h),c)}function d(h){return h===96?(e.consume(h),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(s.type="codeTextData",c(h))}}class j1{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 r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Rr(this.left,r),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),Rr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Rr(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);Rr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Rr(this.left,n.reverse())}}}function Rr(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 Yf(e){const t={};let n=-1,r,i,s,o,l,u,c;const d=new j1(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(u=r[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(r[0]==="enter")r[1].contentType&&(Object.assign(t,F1(d,n)),n=t[n],c=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(o=d.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...d.get(i)[1].start},l=d.slice(i,n),l.unshift(r),d.splice(i,n-i+1,l))}}return Ut(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function F1(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const l=o.events,u=[],c={};let d,h,g=-1,m=n,w=0,S=0;const y=[S];for(;m;){for(;e.get(++i)[1]!==m;);s.push(i),m._tokenizer||(d=r.sliceStream(m),m.next||d.push(null),h&&o.defineSkip(m.start),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),h=m,m=m.next}for(m=n;++g<l.length;)l[g][0]==="exit"&&l[g-1][0]==="enter"&&l[g][1].type===l[g-1][1].type&&l[g][1].start.line!==l[g][1].end.line&&(S=g+1,y.push(S),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(o.events=[],m?(m._tokenizer=void 0,m.previous=void 0):y.pop(),g=y.length;g--;){const k=l.slice(y[g],y[g+1]),v=s.pop();u.push([v,v+k.length-1]),e.splice(v,2,k)}for(u.reverse(),g=-1;++g<u.length;)c[w+u[g][0]]=w+u[g][1],w+=u[g][1]-u[g][0]-1;return c}const z1={resolve:H1,tokenize:$1},B1={partial:!0,tokenize:W1};function H1(e){return Yf(e),e}function $1(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?s(l):Ee(l)?e.check(B1,o,s)(l):(e.consume(l),i)}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,i}}function W1(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),$e(e,s,"linePrefix")}function s(o){if(o===null||Ee(o))return n(o);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Qf(e,t,n,r,i,s,o,l,u){const c=u||Number.POSITIVE_INFINITY;let d=0;return h;function h(k){return k===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(k),e.exit(s),g):k===null||k===32||k===41||os(k)?n(k):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),S(k))}function g(k){return k===62?(e.enter(s),e.consume(k),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(k))}function m(k){return k===62?(e.exit("chunkString"),e.exit(l),g(k)):k===null||k===60||Ee(k)?n(k):(e.consume(k),k===92?w:m)}function w(k){return k===60||k===62||k===92?(e.consume(k),m):m(k)}function S(k){return!d&&(k===null||k===41||Ge(k))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),t(k)):d<c&&k===40?(e.consume(k),d++,S):k===41?(e.consume(k),d--,S):k===null||k===32||k===40||os(k)?n(k):(e.consume(k),k===92?y:S)}function y(k){return k===40||k===41||k===92?(e.consume(k),S):S(k)}}function Xf(e,t,n,r,i,s){const o=this;let l=0,u;return c;function c(m){return e.enter(r),e.enter(i),e.consume(m),e.exit(i),e.enter(s),d}function d(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(i),e.consume(m),e.exit(i),e.exit(r),t):Ee(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===null||m===91||m===93||Ee(m)||l++>999?(e.exit("chunkString"),d(m)):(e.consume(m),u||(u=!je(m)),m===92?g:h)}function g(m){return m===91||m===92||m===93?(e.consume(m),l++,h):h(m)}}function Zf(e,t,n,r,i,s){let o;return l;function l(g){return g===34||g===39||g===40?(e.enter(r),e.enter(i),e.consume(g),e.exit(i),o=g===40?41:g,u):n(g)}function u(g){return g===o?(e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):(e.enter(s),c(g))}function c(g){return g===o?(e.exit(s),u(o)):g===null?n(g):Ee(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),$e(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===o||g===null||Ee(g)?(e.exit("chunkString"),c(g)):(e.consume(g),g===92?h:d)}function h(g){return g===o||g===92?(e.consume(g),d):d(g)}}function jr(e,t){let n;return r;function r(i){return Ee(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):je(i)?$e(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function ln(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const U1={name:"definition",tokenize:K1},q1={partial:!0,tokenize:J1};function K1(e,t,n){const r=this;let i;return s;function s(m){return e.enter("definition"),o(m)}function o(m){return Xf.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function l(m){return i=ln(r.sliceSerialize(r.events[r.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 Ge(m)?jr(e,c)(m):c(m)}function c(m){return Qf(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function d(m){return e.attempt(q1,h,h)(m)}function h(m){return je(m)?$e(e,g,"whitespace")(m):g(m)}function g(m){return m===null||Ee(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function J1(e,t,n){return r;function r(l){return Ge(l)?jr(e,i)(l):n(l)}function i(l){return Zf(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return je(l)?$e(e,o,"whitespace")(l):o(l)}function o(l){return l===null||Ee(l)?t(l):n(l)}}const G1={name:"hardBreakEscape",tokenize:Y1};function Y1(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return Ee(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const Q1={name:"headingAtx",resolve:X1,tokenize:Z1};function X1(e,t){let n=e.length-2,r=3,i,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ut(e,r,n-r+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])),e}function Z1(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),s(d)}function s(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||Ge(d)?(e.exit("atxHeadingSequence"),l(d)):n(d)}function l(d){return d===35?(e.enter("atxHeadingSequence"),u(d)):d===null||Ee(d)?(e.exit("atxHeading"),t(d)):je(d)?$e(e,l,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function u(d){return d===35?(e.consume(d),u):(e.exit("atxHeadingSequence"),l(d))}function c(d){return d===null||d===35||Ge(d)?(e.exit("atxHeadingText"),l(d)):(e.consume(d),c)}}const ek=["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"],Fc=["pre","script","style","textarea"],tk={concrete:!0,name:"htmlFlow",resolveTo:ik,tokenize:sk},nk={partial:!0,tokenize:ok},rk={partial:!0,tokenize:ak};function ik(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 sk(e,t,n){const r=this;let i,s,o,l,u;return c;function c(T){return d(T)}function d(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),h}function h(T){return T===33?(e.consume(T),g):T===47?(e.consume(T),s=!0,S):T===63?(e.consume(T),i=3,r.interrupt?t:E):Ct(T)?(e.consume(T),o=String.fromCharCode(T),y):n(T)}function g(T){return T===45?(e.consume(T),i=2,m):T===91?(e.consume(T),i=5,l=0,w):Ct(T)?(e.consume(T),i=4,r.interrupt?t:E):n(T)}function m(T){return T===45?(e.consume(T),r.interrupt?t:E):n(T)}function w(T){const B="CDATA[";return T===B.charCodeAt(l++)?(e.consume(T),l===B.length?r.interrupt?t:U:w):n(T)}function S(T){return Ct(T)?(e.consume(T),o=String.fromCharCode(T),y):n(T)}function y(T){if(T===null||T===47||T===62||Ge(T)){const B=T===47,z=o.toLowerCase();return!B&&!s&&Fc.includes(z)?(i=1,r.interrupt?t(T):U(T)):ek.includes(o.toLowerCase())?(i=6,B?(e.consume(T),k):r.interrupt?t(T):U(T)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(T):s?v(T):_(T))}return T===45||Bt(T)?(e.consume(T),o+=String.fromCharCode(T),y):n(T)}function k(T){return T===62?(e.consume(T),r.interrupt?t:U):n(T)}function v(T){return je(T)?(e.consume(T),v):N(T)}function _(T){return T===47?(e.consume(T),N):T===58||T===95||Ct(T)?(e.consume(T),A):je(T)?(e.consume(T),_):N(T)}function A(T){return T===45||T===46||T===58||T===95||Bt(T)?(e.consume(T),A):x(T)}function x(T){return T===61?(e.consume(T),f):je(T)?(e.consume(T),x):_(T)}function f(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),u=T,R):je(T)?(e.consume(T),f):V(T)}function R(T){return T===u?(e.consume(T),u=null,L):T===null||Ee(T)?n(T):(e.consume(T),R)}function V(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||Ge(T)?x(T):(e.consume(T),V)}function L(T){return T===47||T===62||je(T)?_(T):n(T)}function N(T){return T===62?(e.consume(T),$):n(T)}function $(T){return T===null||Ee(T)?U(T):je(T)?(e.consume(T),$):n(T)}function U(T){return T===45&&i===2?(e.consume(T),Z):T===60&&i===1?(e.consume(T),q):T===62&&i===4?(e.consume(T),M):T===63&&i===3?(e.consume(T),E):T===93&&i===5?(e.consume(T),ie):Ee(T)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(nk,H,J)(T)):T===null||Ee(T)?(e.exit("htmlFlowData"),J(T)):(e.consume(T),U)}function J(T){return e.check(rk,Y,H)(T)}function Y(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),Q}function Q(T){return T===null||Ee(T)?J(T):(e.enter("htmlFlowData"),U(T))}function Z(T){return T===45?(e.consume(T),E):U(T)}function q(T){return T===47?(e.consume(T),o="",K):U(T)}function K(T){if(T===62){const B=o.toLowerCase();return Fc.includes(B)?(e.consume(T),M):U(T)}return Ct(T)&&o.length<8?(e.consume(T),o+=String.fromCharCode(T),K):U(T)}function ie(T){return T===93?(e.consume(T),E):U(T)}function E(T){return T===62?(e.consume(T),M):T===45&&i===2?(e.consume(T),E):U(T)}function M(T){return T===null||Ee(T)?(e.exit("htmlFlowData"),H(T)):(e.consume(T),M)}function H(T){return e.exit("htmlFlow"),t(T)}}function ak(e,t,n){const r=this;return i;function i(o){return Ee(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):n(o)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function ok(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(_r,t,n)}}const lk={name:"htmlText",tokenize:uk};function uk(e,t,n){const r=this;let i,s,o;return l;function l(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),x):E===63?(e.consume(E),_):Ct(E)?(e.consume(E),V):n(E)}function c(E){return E===45?(e.consume(E),d):E===91?(e.consume(E),s=0,w):Ct(E)?(e.consume(E),v):n(E)}function d(E){return E===45?(e.consume(E),m):n(E)}function h(E){return E===null?n(E):E===45?(e.consume(E),g):Ee(E)?(o=h,q(E)):(e.consume(E),h)}function g(E){return E===45?(e.consume(E),m):h(E)}function m(E){return E===62?Z(E):E===45?g(E):h(E)}function w(E){const M="CDATA[";return E===M.charCodeAt(s++)?(e.consume(E),s===M.length?S:w):n(E)}function S(E){return E===null?n(E):E===93?(e.consume(E),y):Ee(E)?(o=S,q(E)):(e.consume(E),S)}function y(E){return E===93?(e.consume(E),k):S(E)}function k(E){return E===62?Z(E):E===93?(e.consume(E),k):S(E)}function v(E){return E===null||E===62?Z(E):Ee(E)?(o=v,q(E)):(e.consume(E),v)}function _(E){return E===null?n(E):E===63?(e.consume(E),A):Ee(E)?(o=_,q(E)):(e.consume(E),_)}function A(E){return E===62?Z(E):_(E)}function x(E){return Ct(E)?(e.consume(E),f):n(E)}function f(E){return E===45||Bt(E)?(e.consume(E),f):R(E)}function R(E){return Ee(E)?(o=R,q(E)):je(E)?(e.consume(E),R):Z(E)}function V(E){return E===45||Bt(E)?(e.consume(E),V):E===47||E===62||Ge(E)?L(E):n(E)}function L(E){return E===47?(e.consume(E),Z):E===58||E===95||Ct(E)?(e.consume(E),N):Ee(E)?(o=L,q(E)):je(E)?(e.consume(E),L):Z(E)}function N(E){return E===45||E===46||E===58||E===95||Bt(E)?(e.consume(E),N):$(E)}function $(E){return E===61?(e.consume(E),U):Ee(E)?(o=$,q(E)):je(E)?(e.consume(E),$):L(E)}function U(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),i=E,J):Ee(E)?(o=U,q(E)):je(E)?(e.consume(E),U):(e.consume(E),Y)}function J(E){return E===i?(e.consume(E),i=void 0,Q):E===null?n(E):Ee(E)?(o=J,q(E)):(e.consume(E),J)}function Y(E){return E===null||E===34||E===39||E===60||E===61||E===96?n(E):E===47||E===62||Ge(E)?L(E):(e.consume(E),Y)}function Q(E){return E===47||E===62||Ge(E)?L(E):n(E)}function Z(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):n(E)}function q(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),K}function K(E){return je(E)?$e(e,ie,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):ie(E)}function ie(E){return e.enter("htmlTextData"),o(E)}}const pl={name:"labelEnd",resolveAll:dk,resolveTo:fk,tokenize:gk},ck={tokenize:mk},hk={tokenize:xk},pk={tokenize:vk};function dk(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Ut(e,0,e.length,n),e}function fk(e,t){let n=e.length,r=0,i,s,o,l;for(;n--;)if(i=e[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.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}},c={type:"label",start:{...e[s][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",u,t],["enter",c,t]],l=Zt(l,e.slice(s+1,s+r+3)),l=Zt(l,[["enter",d,t]]),l=Zt(l,Os(t.parser.constructs.insideSpan.null,e.slice(s+r+4,o-3),t)),l=Zt(l,[["exit",d,t],e[o-2],e[o-1],["exit",c,t]]),l=Zt(l,e.slice(o+1)),l=Zt(l,[["exit",u,t]]),Ut(e,s,e.length,l),e}function gk(e,t,n){const r=this;let i=r.events.length,s,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return l;function l(g){return s?s._inactive?h(g):(o=r.parser.defined.includes(ln(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),u):n(g)}function u(g){return g===40?e.attempt(ck,d,o?d:h)(g):g===91?e.attempt(hk,d,o?c:h)(g):o?d(g):h(g)}function c(g){return e.attempt(pk,d,h)(g)}function d(g){return t(g)}function h(g){return s._balanced=!0,n(g)}}function mk(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return Ge(h)?jr(e,s)(h):s(h)}function s(h){return h===41?d(h):Qf(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function o(h){return Ge(h)?jr(e,u)(h):d(h)}function l(h){return n(h)}function u(h){return h===34||h===39||h===40?Zf(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):d(h)}function c(h){return Ge(h)?jr(e,d)(h):d(h)}function d(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function xk(e,t,n){const r=this;return i;function i(l){return Xf.call(r,e,s,o,"reference","referenceMarker","referenceString")(l)}function s(l){return r.parser.defined.includes(ln(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function o(l){return n(l)}}function vk(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const bk={name:"labelStartImage",resolveAll:pl.resolveAll,tokenize:yk};function yk(e,t,n){const r=this;return i;function i(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 r.parser.constructs?n(l):t(l)}}const wk={name:"labelStartLink",resolveAll:pl.resolveAll,tokenize:kk};function kk(e,t,n){const r=this;return i;function i(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 r.parser.constructs?n(o):t(o)}}const aa={name:"lineEnding",tokenize:Sk};function Sk(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),$e(e,t,"linePrefix")}}const Bi={name:"thematicBreak",tokenize:_k};function _k(e,t,n){let r=0,i;return s;function s(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,l(c)}function l(c){return c===i?(e.enter("thematicBreakSequence"),u(c)):r>=3&&(c===null||Ee(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),je(c)?$e(e,l,"whitespace")(c):l(c))}}const zt={continuation:{tokenize:Ak},exit:Nk,name:"list",tokenize:Ck},Ek={partial:!0,tokenize:Ok},Ik={partial:!0,tokenize:Tk};function Ck(e,t,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return l;function l(m){const w=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:Ua(m)){if(r.containerState.type||(r.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Bi,n,c)(m):c(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return n(m)}function u(m){return Ua(m)&&++o<10?(e.consume(m),u):(!r.interrupt||o<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):n(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(_r,r.interrupt?n:d,e.attempt(Ek,g,h))}function d(m){return r.containerState.initialBlankLine=!0,s++,g(m)}function h(m){return je(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),g):n(m)}function g(m){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function Ak(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(_r,i,s);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,$e(e,t,"listItemIndent",r.containerState.size+1)(l)}function s(l){return r.containerState.furtherBlankLines||!je(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ik,t,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,$e(e,e.attempt(zt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Tk(e,t,n){const r=this;return $e(e,i,"listItemIndent",r.containerState.size+1);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(s):n(s)}}function Nk(e){e.exit(this.containerState.type)}function Ok(e,t,n){const r=this;return $e(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const o=r.events[r.events.length-1];return!je(s)&&o&&o[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const zc={name:"setextUnderline",resolveTo:Pk,tokenize:Rk};function Pk(e,t){let n=e.length,r,i,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=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[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",s?(e.splice(i,0,["enter",o,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function Rk(e,t,n){const r=this;let i;return s;function s(c){let d=r.events.length,h;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){h=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===i?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),je(c)?$e(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||Ee(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Dk={tokenize:Mk,partial:!0},Bc="https://github.com/micromark/micromark-extension-mdxjs-esm",Lk=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function Vk(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 n=e.acorn,r=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0});return{flow:{101:t,105:t}};function i(s,o,l){const u=this,c=u.parser.definedModuleSpecifiers||(u.parser.definedModuleSpecifiers=[]),d=this.events.length+1;let h="";return u.interrupt?l:g;function g(v){return u.now().column>1?l(v):(s.enter("mdxjsEsm"),s.enter("mdxjsEsmData"),s.consume(v),h+=String.fromCharCode(v),m)}function m(v){return Ct(v)?(s.consume(v),h+=String.fromCharCode(v),m):(h==="import"||h==="export")&&v===32?(s.consume(v),w):l(v)}function w(v){return v===null||Ee(v)?(s.exit("mdxjsEsmData"),S(v)):(s.consume(v),w)}function S(v){return v===null?k(v):Ee(v)?s.check(Dk,k,y)(v):(s.enter("mdxjsEsmData"),w(v))}function y(v){return s.enter("lineEnding"),s.consume(v),s.exit("lineEnding"),S}function k(v){const _=Uf(u.events.slice(d),{acorn:n,acornOptions:r,tokenTypes:["mdxjsEsmData"],prefix:c.length>0?"var "+c.join(",")+`
82
+ `:""});if(_.error){if(v!==null&&_.swallow)return y(v);const x=new Xe("Could not parse import/exports with acorn",{cause:_.error,place:{line:_.error.loc.line,column:_.error.loc.column+1,offset:_.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw x.url=Bc+"#could-not-parse-importexports-with-acorn",x}c.length>0&&_.estree.body.shift();let A=-1;for(;++A<_.estree.body.length;){const x=_.estree.body[A];if(!Lk.has(x.type)){const f=new Xe("Unexpected `"+x.type+"` in code: only import/exports are supported",{place:zi(x),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw f.url=Bc+"#unexpected-type-in-code-only-importexports-are-supported",f}if(x.type==="ImportDeclaration"&&!u.interrupt){let f=-1;for(;++f<x.specifiers.length;){const R=x.specifiers[f];c.push(R.local.name)}}}return Object.assign(s.exit("mdxjsEsm"),e.addResult?{estree:_.estree}:void 0),o(v)}}}function Mk(e,t,n){return r;function r(i){return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),e.attempt(_r,t,n)}}const Hc={}.hasOwnProperty;function dl(e){const t={};let n=-1;for(;++n<e.length;)jk(t,e[n]);return t}function jk(e,t){let n;for(n in t){const i=(Hc.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let o;if(s)for(o in s){Hc.call(i,o)||(i[o]=[]);const l=s[o];Fk(i[o],Array.isArray(l)?l:l?[l]:[])}}}function Fk(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ut(e,0,0,r)}function zk(e){const t=Object.assign({acorn:xt.extend(qw()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},e);return dl([Vk(t),u1(t),x1(t),v1()])}const Bk={};function Hk(e){const t=this,n=e||Bk,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(zk(n)),s.push(tw()),o.push(nw(n))}const $k={};function Wk(e,t){const n=$k,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return eg(e,r,i)}function eg(e,t,n){if(Uk(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 $c(e.children,t,n)}return Array.isArray(e)?$c(e,t,n):""}function $c(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=eg(e[i],t,n);return r.join("")}function Uk(e){return!!(e&&typeof e=="object")}function tg(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 qk={tokenize:Kk};function Kk(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),$e(e,t,"linePrefix")}function i(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 Ee(l)?(e.consume(l),e.exit("chunkText"),s):(e.consume(l),o)}}const Jk={tokenize:Gk},Wc={tokenize:Yk};function Gk(e){const t=this,n=[];let r=0,i,s,o;return l;function l(_){if(r<n.length){const A=n[r];return t.containerState=A[1],e.attempt(A[0].continuation,u,c)(_)}return c(_)}function u(_){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();const A=t.events.length;let x=A,f;for(;x--;)if(t.events[x][0]==="exit"&&t.events[x][1].type==="chunkFlow"){f=t.events[x][1].end;break}k(r);let R=A;for(;R<t.events.length;)t.events[R][1].end={...f},R++;return Ut(t.events,x+1,0,t.events.slice(A)),t.events.length=R,c(_)}return l(_)}function c(_){if(r===n.length){if(!i)return g(_);if(i.currentConstruct&&i.currentConstruct.concrete)return w(_);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Wc,d,h)(_)}function d(_){return i&&v(),k(r),g(_)}function h(_){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,w(_)}function g(_){return t.containerState={},e.attempt(Wc,m,w)(_)}function m(_){return r++,n.push([t.currentConstruct,t.containerState]),g(_)}function w(_){if(_===null){i&&v(),k(0),e.consume(_);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),S(_)}function S(_){if(_===null){y(e.exit("chunkFlow"),!0),k(0),e.consume(_);return}return Ee(_)?(e.consume(_),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(_),S)}function y(_,A){const x=t.sliceStream(_);if(A&&x.push(null),_.previous=s,s&&(s.next=_),s=_,i.defineSkip(_.start),i.write(x),t.parser.lazy[_.start.line]){let f=i.events.length;for(;f--;)if(i.events[f][1].start.offset<o&&(!i.events[f][1].end||i.events[f][1].end.offset>o))return;const R=t.events.length;let V=R,L,N;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if(L){N=t.events[V][1].end;break}L=!0}for(k(r),f=R;f<t.events.length;)t.events[f][1].end={...N},f++;Ut(t.events,V+1,0,t.events.slice(R)),t.events.length=f}}function k(_){let A=n.length;for(;A-- >_;){const x=n[A];t.containerState=x[1],x[0].exit.call(t,e)}n.length=_}function v(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Yk(e,t,n){return $e(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Qk={tokenize:Xk};function Xk(e){const t=this,n=e.attempt(_r,r,e.attempt(this.parser.constructs.flowInitial,i,$e(e,e.attempt(this.parser.constructs.flow,i,e.attempt(z1,i)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Zk={resolveAll:rg()},eS=ng("string"),tS=ng("text");function ng(e){return{resolveAll:rg(e==="text"?nS:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],s=n.attempt(i,o,l);return o;function o(d){return c(d)?s(d):l(d)}function l(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),u}function u(d){return c(d)?(n.exit("data"),s(d)):(n.consume(d),u)}function c(d){if(d===null)return!0;const h=i[d];let g=-1;if(h)for(;++g<h.length;){const m=h[g];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function rg(e){return t;function t(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(n,r):n}}function nS(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 r=e[n-1][1],i=t.sliceStream(r);let s=i.length,o=-1,l=0,u;for(;s--;){const c=i[s];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(c===-2)u=!0,l++;else if(c!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const c={type:n===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:r.start._bufferIndex+o,_index:r.start._index+s,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const rS={42:zt,43:zt,45:zt,48:zt,49:zt,50:zt,51:zt,52:zt,53:zt,54:zt,55:zt,56:zt,57:zt,62:Kf},iS={91:U1},sS={[-2]:sa,[-1]:sa,32:sa},aS={35:Q1,42:Bi,45:[zc,Bi],60:tk,61:zc,95:Bi,96:jc,126:jc},oS={38:Gf,92:Jf},lS={[-5]:aa,[-4]:aa,[-3]:aa,33:bk,38:Gf,42:qa,60:[w1,lk],91:wk,92:[G1,Jf],93:pl,95:qa,96:D1},uS={null:[qa,Zk]},cS={null:[42,95]},hS={null:[]},pS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:cS,contentInitial:iS,disable:hS,document:rS,flow:aS,flowInitial:sS,insideSpan:uS,string:oS,text:lS},Symbol.toStringTag,{value:"Module"}));function dS(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let o=[],l=[];const u={attempt:R(x),check:R(f),consume:v,enter:_,exit:A,interrupt:R(f,{interrupt:!0})},c={code:null,containerState:{},defineSkip:S,events:[],now:w,parser:e,previous:null,sliceSerialize:g,sliceStream:m,write:h};let d=t.tokenize.call(c,u);return t.resolveAll&&s.push(t),c;function h($){return o=Zt(o,$),y(),o[o.length-1]!==null?[]:(V(t,0),c.events=Os(s,c.events,c),c.events)}function g($,U){return gS(m($),U)}function m($){return fS(o,$)}function w(){const{_bufferIndex:$,_index:U,line:J,column:Y,offset:Q}=r;return{_bufferIndex:$,_index:U,line:J,column:Y,offset:Q}}function S($){i[$.line]=$.column,N()}function y(){let $;for(;r._index<o.length;){const U=o[r._index];if(typeof U=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<U.length;)k(U.charCodeAt(r._bufferIndex));else k(U)}}function k($){d=d($)}function v($){Ee($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,N()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=$}function _($,U){const J=U||{};return J.type=$,J.start=w(),c.events.push(["enter",J,c]),l.push(J),J}function A($){const U=l.pop();return U.end=w(),c.events.push(["exit",U,c]),U}function x($,U){V($,U.from)}function f($,U){U.restore()}function R($,U){return J;function J(Y,Q,Z){let q,K,ie,E;return Array.isArray(Y)?H(Y):"tokenize"in Y?H([Y]):M(Y);function M(W){return F;function F(te){const ee=te!==null&&W[te],ne=te!==null&&W.null,le=[...Array.isArray(ee)?ee:ee?[ee]:[],...Array.isArray(ne)?ne:ne?[ne]:[]];return H(le)(te)}}function H(W){return q=W,K=0,W.length===0?Z:T(W[K])}function T(W){return F;function F(te){return E=L(),ie=W,W.partial||(c.currentConstruct=W),W.name&&c.parser.constructs.disable.null.includes(W.name)?z():W.tokenize.call(U?Object.assign(Object.create(c),U):c,u,B,z)(te)}}function B(W){return $(ie,E),Q}function z(W){return E.restore(),++K<q.length?T(q[K]):Z}}}function V($,U){$.resolveAll&&!s.includes($)&&s.push($),$.resolve&&Ut(c.events,U,c.events.length-U,$.resolve(c.events.slice(U),c)),$.resolveTo&&(c.events=$.resolveTo(c.events,c))}function L(){const $=w(),U=c.previous,J=c.currentConstruct,Y=c.events.length,Q=Array.from(l);return{from:Y,restore:Z};function Z(){r=$,c.previous=U,c.currentConstruct=J,c.events.length=Y,l=Q,N()}}function N(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function fS(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,s)];else{if(o=e.slice(n,i),r>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}s>0&&o.push(e[i].slice(0,s))}return o}function gS(e,t){let n=-1;const r=[];let i;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
83
  `;break}case-3:{o=`\r
84
- `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(s)}i=s===-2,r.push(o)}return r.join("")}function gS(e){const r={constructs:dl([hS,...(e||{}).extensions||[]]),content:i(Uk),defined:[],document:i(Kk),flow:i(Yk),lazy:{},string:i(Zk),text:i(eS)};return r;function i(s){return o;function o(l){return pS(r,s,l)}}}function mS(e){for(;!Yf(e););return e}const Uc=/[\0\t\n\r]/g;function xS(){let e=1,t="",n=!0,r;return i;function i(s,o,l){const u=[];let c,d,h,g,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(Uc.lastIndex=h,c=Uc.exec(s),g=c&&c.index!==void 0?c.index:s.length,m=s.charCodeAt(g),!c){t=s.slice(h);break}if(m===10&&h===g&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),h<g&&(u.push(s.slice(h,g)),e+=g-h),m){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:r=!0,e=1}h=g+1}return l&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const vS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ig(e){return e.replace(vS,bS)}function bS(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return tg(n.slice(s?2:1),s?16:10)}return Wr(n)||e}const sg={}.hasOwnProperty;function yS(e,t,n){return typeof t!="string"&&(n=t,t=void 0),wS(n)(mS(gS(n).document().write(xS()(e,t,!0))))}function wS(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Oe),autolinkProtocol:L,autolinkEmail:L,atxHeading:s(Ie),blockQuote:s(ne),characterEscape:L,characterReference:L,codeFenced:s(le),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(le,o),codeText:s(G,o),codeTextData:L,data:L,codeFlowValue:L,definition:s(ae),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(ce),hardBreakEscape:s(Ce),hardBreakTrailing:s(Ce),htmlFlow:s(Re,o),htmlFlowData:L,htmlText:s(Re,o),htmlTextData:L,image:s(Ve),label:o,link:s(Oe),listItem:s(Ke),listItemValue:g,listOrdered:s(Ne,h),listUnordered:s(Ne),paragraph:s(vt),reference:T,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(Ie),strong:s(Je),thematicBreak:s(Vt)},exit:{atxHeading:u(),atxHeadingSequence:x,autolink:u(),autolinkEmail:ee,autolinkProtocol:te,blockQuote:u(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:W,characterReference:F,codeFenced:u(y),codeFencedFence:S,codeFencedFenceInfo:m,codeFencedFenceMeta:w,codeFlowValue:N,codeIndented:u(k),codeText:u(Q),codeTextData:N,data:N,definition:u(),definitionDestinationString:A,definitionLabelString:v,definitionTitleString:_,emphasis:u(),hardBreakEscape:u(U),hardBreakTrailing:u(U),htmlFlow:u(J),htmlFlowData:N,htmlText:u(Y),htmlTextData:N,image:u(q),label:ie,labelText:K,lineEnding:$,link:u(Z),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:B,resourceDestinationString:E,resourceTitleString:M,resource:H,setextHeading:u(V),setextHeadingLineSequence:R,setextHeadingText:f,strong:u(),thematicBreak:u()}};ag(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(oe){let se={type:"root",children:[]};const P={stack:[se],tokenStack:[],config:t,enter:l,exit:c,buffer:o,resume:d,data:n},be=[];let He=-1;for(;++He<oe.length;)if(oe[He][1].type==="listOrdered"||oe[He][1].type==="listUnordered")if(oe[He][0]==="enter")be.push(He);else{const pt=be.pop();He=i(oe,pt,He)}for(He=-1;++He<oe.length;){const pt=t[oe[He][0]];sg.call(pt,oe[He][1].type)&&pt[oe[He][1].type].call(Object.assign({sliceSerialize:oe[He][2].sliceSerialize},P),oe[He][1])}if(P.tokenStack.length>0){const pt=P.tokenStack[P.tokenStack.length-1];(pt[1]||qc).call(P,void 0,pt[0])}for(se.position={start:Dn(oe.length>0?oe[0][1].start:{line:1,column:1,offset:0}),end:Dn(oe.length>0?oe[oe.length-2][1].end:{line:1,column:1,offset:0})},He=-1;++He<t.transforms.length;)se=t.transforms[He](se)||se;return se}function i(oe,se,P){let be=se-1,He=-1,pt=!1,he,Me,dt,Mt;for(;++be<=P;){const ct=oe[be];switch(ct[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ct[0]==="enter"?He++:He--,Mt=void 0;break}case"lineEndingBlank":{ct[0]==="enter"&&(he&&!Mt&&!He&&!dt&&(dt=be),Mt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Mt=void 0}if(!He&&ct[0]==="enter"&&ct[1].type==="listItemPrefix"||He===-1&&ct[0]==="exit"&&(ct[1].type==="listUnordered"||ct[1].type==="listOrdered")){if(he){let St=be;for(Me=void 0;St--;){const wt=oe[St];if(wt[1].type==="lineEnding"||wt[1].type==="lineEndingBlank"){if(wt[0]==="exit")continue;Me&&(oe[Me][1].type="lineEndingBlank",pt=!0),wt[1].type="lineEnding",Me=St}else if(!(wt[1].type==="linePrefix"||wt[1].type==="blockQuotePrefix"||wt[1].type==="blockQuotePrefixWhitespace"||wt[1].type==="blockQuoteMarker"||wt[1].type==="listItemIndent"))break}dt&&(!Me||dt<Me)&&(he._spread=!0),he.end=Object.assign({},Me?oe[Me][1].start:ct[1].end),oe.splice(Me||be,0,["exit",he,ct[2]]),be++,P++}if(ct[1].type==="listItemPrefix"){const St={type:"listItem",_spread:!1,start:Object.assign({},ct[1].start),end:void 0};he=St,oe.splice(be,0,["enter",St,ct[2]]),be++,P++,dt=void 0,Mt=!0}}}return oe[se][1]._spread=pt,P}function s(oe,se){return P;function P(be){l.call(this,oe(be),be),se&&se.call(this,be)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(oe,se,P){this.stack[this.stack.length-1].children.push(oe),this.stack.push(oe),this.tokenStack.push([se,P||void 0]),oe.position={start:Dn(se.start),end:void 0}}function u(oe){return se;function se(P){oe&&oe.call(this,P),c.call(this,P)}}function c(oe,se){const P=this.stack.pop(),be=this.tokenStack.pop();if(be)be[0].type!==oe.type&&(se?se.call(this,oe,be[0]):(be[1]||qc).call(this,oe,be[0]));else throw new Error("Cannot close `"+oe.type+"` ("+kn({start:oe.start,end:oe.end})+"): it’s not open");P.position.end=Dn(oe.end)}function d(){return $k(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function g(oe){if(this.data.expectingFirstListItemValue){const se=this.stack[this.stack.length-2];se.start=Number.parseInt(this.sliceSerialize(oe),10),this.data.expectingFirstListItemValue=void 0}}function m(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.lang=oe}function w(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.meta=oe}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.value=oe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.value=oe.replace(/(\r?\n|\r)$/g,"")}function v(oe){const se=this.resume(),P=this.stack[this.stack.length-1];P.label=se,P.identifier=ln(this.sliceSerialize(oe)).toLowerCase()}function _(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.title=oe}function A(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.url=oe}function x(oe){const se=this.stack[this.stack.length-1];if(!se.depth){const P=this.sliceSerialize(oe).length;se.depth=P}}function f(){this.data.setextHeadingSlurpLineEnding=!0}function R(oe){const se=this.stack[this.stack.length-1];se.depth=this.sliceSerialize(oe).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function L(oe){const P=this.stack[this.stack.length-1].children;let be=P[P.length-1];(!be||be.type!=="text")&&(be=Fe(),be.position={start:Dn(oe.start),end:void 0},P.push(be)),this.stack.push(be)}function N(oe){const se=this.stack.pop();se.value+=this.sliceSerialize(oe),se.position.end=Dn(oe.end)}function $(oe){const se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const P=se.children[se.children.length-1];P.position.end=Dn(oe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(se.type)&&(L.call(this,oe),N.call(this,oe))}function U(){this.data.atHardBreak=!0}function J(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.value=oe}function Y(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.value=oe}function Q(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.value=oe}function Z(){const oe=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";oe.type+="Reference",oe.referenceType=se,delete oe.url,delete oe.title}else delete oe.identifier,delete oe.label;this.data.referenceType=void 0}function q(){const oe=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";oe.type+="Reference",oe.referenceType=se,delete oe.url,delete oe.title}else delete oe.identifier,delete oe.label;this.data.referenceType=void 0}function K(oe){const se=this.sliceSerialize(oe),P=this.stack[this.stack.length-2];P.label=ig(se),P.identifier=ln(se).toLowerCase()}function ie(){const oe=this.stack[this.stack.length-1],se=this.resume(),P=this.stack[this.stack.length-1];if(this.data.inReference=!0,P.type==="link"){const be=oe.children;P.children=be}else P.alt=se}function E(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.url=oe}function M(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.title=oe}function H(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function B(oe){const se=this.resume(),P=this.stack[this.stack.length-1];P.label=se,P.identifier=ln(this.sliceSerialize(oe)).toLowerCase(),this.data.referenceType="full"}function z(oe){this.data.characterReferenceType=oe.type}function W(oe){const se=this.sliceSerialize(oe),P=this.data.characterReferenceType;let be;P?(be=tg(se,P==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):be=Wr(se);const He=this.stack[this.stack.length-1];He.value+=be}function F(oe){const se=this.stack.pop();se.position.end=Dn(oe.end)}function te(oe){N.call(this,oe);const se=this.stack[this.stack.length-1];se.url=this.sliceSerialize(oe)}function ee(oe){N.call(this,oe);const se=this.stack[this.stack.length-1];se.url="mailto:"+this.sliceSerialize(oe)}function ne(){return{type:"blockquote",children:[]}}function le(){return{type:"code",lang:null,meta:null,value:""}}function G(){return{type:"inlineCode",value:""}}function ae(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ce(){return{type:"emphasis",children:[]}}function Ie(){return{type:"heading",depth:0,children:[]}}function Ce(){return{type:"break"}}function Re(){return{type:"html",value:""}}function Ve(){return{type:"image",title:null,url:"",alt:null}}function Oe(){return{type:"link",title:null,url:"",children:[]}}function Ne(oe){return{type:"list",ordered:oe.type==="listOrdered",start:null,spread:oe._spread,children:[]}}function Ke(oe){return{type:"listItem",spread:oe._spread,checked:null,children:[]}}function vt(){return{type:"paragraph",children:[]}}function Je(){return{type:"strong",children:[]}}function Fe(){return{type:"text",value:""}}function Vt(){return{type:"thematicBreak"}}}function Dn(e){return{line:e.line,column:e.column,offset:e.offset}}function ag(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ag(e,r):kS(e,r)}}function kS(e,t){let n;for(n in t)if(sg.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function qc(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+kn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+kn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+kn({start:t.start,end:t.end})+") is still open")}function SS(e){const t=this;t.parser=n;function n(r){return yS(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const Kc={}.hasOwnProperty;function _S(e,t){const n=t||{};function r(i,...s){let o=r.invalid;const l=r.handlers;if(i&&Kc.call(i,e)){const u=String(i[e]);o=Kc.call(l,u)?l[u]:r.unknown}if(o)return o.call(this,i,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const ES={}.hasOwnProperty;function og(e,t){let n=-1,r;if(t.extensions)for(;++n<t.extensions.length;)og(e,t.extensions[n]);for(r in t)if(ES.call(t,r))switch(r){case"extensions":break;case"unsafe":{Jc(e[r],t[r]);break}case"join":{Jc(e[r],t[r]);break}case"handlers":{IS(e[r],t[r]);break}default:e.options[r]=t[r]}return e}function Jc(e,t){t&&e.push(...t)}function IS(e,t){t&&Object.assign(e,t)}function CS(e,t,n,r){const i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const o=n.indentLines(n.containerFlow(e,s.current()),AS);return i(),o}function AS(e,t,n){return">"+(n?"":" ")+e}function lg(e,t){return Gc(e,t.inConstruct,!0)&&!Gc(e,t.notInConstruct,!1)}function Gc(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Yc(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
84
+ `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(s)}i=s===-2,r.push(o)}return r.join("")}function mS(e){const r={constructs:dl([pS,...(e||{}).extensions||[]]),content:i(qk),defined:[],document:i(Jk),flow:i(Qk),lazy:{},string:i(eS),text:i(tS)};return r;function i(s){return o;function o(l){return dS(r,s,l)}}}function xS(e){for(;!Yf(e););return e}const Uc=/[\0\t\n\r]/g;function vS(){let e=1,t="",n=!0,r;return i;function i(s,o,l){const u=[];let c,d,h,g,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(Uc.lastIndex=h,c=Uc.exec(s),g=c&&c.index!==void 0?c.index:s.length,m=s.charCodeAt(g),!c){t=s.slice(h);break}if(m===10&&h===g&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),h<g&&(u.push(s.slice(h,g)),e+=g-h),m){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:r=!0,e=1}h=g+1}return l&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const bS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ig(e){return e.replace(bS,yS)}function yS(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return tg(n.slice(s?2:1),s?16:10)}return Wr(n)||e}const sg={}.hasOwnProperty;function wS(e,t,n){return typeof t!="string"&&(n=t,t=void 0),kS(n)(xS(mS(n).document().write(vS()(e,t,!0))))}function kS(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Oe),autolinkProtocol:L,autolinkEmail:L,atxHeading:s(Ie),blockQuote:s(ne),characterEscape:L,characterReference:L,codeFenced:s(le),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(le,o),codeText:s(G,o),codeTextData:L,data:L,codeFlowValue:L,definition:s(ae),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(ce),hardBreakEscape:s(Ce),hardBreakTrailing:s(Ce),htmlFlow:s(Re,o),htmlFlowData:L,htmlText:s(Re,o),htmlTextData:L,image:s(Ve),label:o,link:s(Oe),listItem:s(Ke),listItemValue:g,listOrdered:s(Ne,h),listUnordered:s(Ne),paragraph:s(vt),reference:T,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(Ie),strong:s(Je),thematicBreak:s(Vt)},exit:{atxHeading:u(),atxHeadingSequence:x,autolink:u(),autolinkEmail:ee,autolinkProtocol:te,blockQuote:u(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:W,characterReference:F,codeFenced:u(y),codeFencedFence:S,codeFencedFenceInfo:m,codeFencedFenceMeta:w,codeFlowValue:N,codeIndented:u(k),codeText:u(Q),codeTextData:N,data:N,definition:u(),definitionDestinationString:A,definitionLabelString:v,definitionTitleString:_,emphasis:u(),hardBreakEscape:u(U),hardBreakTrailing:u(U),htmlFlow:u(J),htmlFlowData:N,htmlText:u(Y),htmlTextData:N,image:u(q),label:ie,labelText:K,lineEnding:$,link:u(Z),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:B,resourceDestinationString:E,resourceTitleString:M,resource:H,setextHeading:u(V),setextHeadingLineSequence:R,setextHeadingText:f,strong:u(),thematicBreak:u()}};ag(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(oe){let se={type:"root",children:[]};const P={stack:[se],tokenStack:[],config:t,enter:l,exit:c,buffer:o,resume:d,data:n},be=[];let He=-1;for(;++He<oe.length;)if(oe[He][1].type==="listOrdered"||oe[He][1].type==="listUnordered")if(oe[He][0]==="enter")be.push(He);else{const pt=be.pop();He=i(oe,pt,He)}for(He=-1;++He<oe.length;){const pt=t[oe[He][0]];sg.call(pt,oe[He][1].type)&&pt[oe[He][1].type].call(Object.assign({sliceSerialize:oe[He][2].sliceSerialize},P),oe[He][1])}if(P.tokenStack.length>0){const pt=P.tokenStack[P.tokenStack.length-1];(pt[1]||qc).call(P,void 0,pt[0])}for(se.position={start:Dn(oe.length>0?oe[0][1].start:{line:1,column:1,offset:0}),end:Dn(oe.length>0?oe[oe.length-2][1].end:{line:1,column:1,offset:0})},He=-1;++He<t.transforms.length;)se=t.transforms[He](se)||se;return se}function i(oe,se,P){let be=se-1,He=-1,pt=!1,he,Me,dt,Mt;for(;++be<=P;){const ct=oe[be];switch(ct[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ct[0]==="enter"?He++:He--,Mt=void 0;break}case"lineEndingBlank":{ct[0]==="enter"&&(he&&!Mt&&!He&&!dt&&(dt=be),Mt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Mt=void 0}if(!He&&ct[0]==="enter"&&ct[1].type==="listItemPrefix"||He===-1&&ct[0]==="exit"&&(ct[1].type==="listUnordered"||ct[1].type==="listOrdered")){if(he){let St=be;for(Me=void 0;St--;){const wt=oe[St];if(wt[1].type==="lineEnding"||wt[1].type==="lineEndingBlank"){if(wt[0]==="exit")continue;Me&&(oe[Me][1].type="lineEndingBlank",pt=!0),wt[1].type="lineEnding",Me=St}else if(!(wt[1].type==="linePrefix"||wt[1].type==="blockQuotePrefix"||wt[1].type==="blockQuotePrefixWhitespace"||wt[1].type==="blockQuoteMarker"||wt[1].type==="listItemIndent"))break}dt&&(!Me||dt<Me)&&(he._spread=!0),he.end=Object.assign({},Me?oe[Me][1].start:ct[1].end),oe.splice(Me||be,0,["exit",he,ct[2]]),be++,P++}if(ct[1].type==="listItemPrefix"){const St={type:"listItem",_spread:!1,start:Object.assign({},ct[1].start),end:void 0};he=St,oe.splice(be,0,["enter",St,ct[2]]),be++,P++,dt=void 0,Mt=!0}}}return oe[se][1]._spread=pt,P}function s(oe,se){return P;function P(be){l.call(this,oe(be),be),se&&se.call(this,be)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(oe,se,P){this.stack[this.stack.length-1].children.push(oe),this.stack.push(oe),this.tokenStack.push([se,P||void 0]),oe.position={start:Dn(se.start),end:void 0}}function u(oe){return se;function se(P){oe&&oe.call(this,P),c.call(this,P)}}function c(oe,se){const P=this.stack.pop(),be=this.tokenStack.pop();if(be)be[0].type!==oe.type&&(se?se.call(this,oe,be[0]):(be[1]||qc).call(this,oe,be[0]));else throw new Error("Cannot close `"+oe.type+"` ("+kn({start:oe.start,end:oe.end})+"): it’s not open");P.position.end=Dn(oe.end)}function d(){return Wk(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function g(oe){if(this.data.expectingFirstListItemValue){const se=this.stack[this.stack.length-2];se.start=Number.parseInt(this.sliceSerialize(oe),10),this.data.expectingFirstListItemValue=void 0}}function m(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.lang=oe}function w(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.meta=oe}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.value=oe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.value=oe.replace(/(\r?\n|\r)$/g,"")}function v(oe){const se=this.resume(),P=this.stack[this.stack.length-1];P.label=se,P.identifier=ln(this.sliceSerialize(oe)).toLowerCase()}function _(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.title=oe}function A(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.url=oe}function x(oe){const se=this.stack[this.stack.length-1];if(!se.depth){const P=this.sliceSerialize(oe).length;se.depth=P}}function f(){this.data.setextHeadingSlurpLineEnding=!0}function R(oe){const se=this.stack[this.stack.length-1];se.depth=this.sliceSerialize(oe).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function L(oe){const P=this.stack[this.stack.length-1].children;let be=P[P.length-1];(!be||be.type!=="text")&&(be=Fe(),be.position={start:Dn(oe.start),end:void 0},P.push(be)),this.stack.push(be)}function N(oe){const se=this.stack.pop();se.value+=this.sliceSerialize(oe),se.position.end=Dn(oe.end)}function $(oe){const se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const P=se.children[se.children.length-1];P.position.end=Dn(oe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(se.type)&&(L.call(this,oe),N.call(this,oe))}function U(){this.data.atHardBreak=!0}function J(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.value=oe}function Y(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.value=oe}function Q(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.value=oe}function Z(){const oe=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";oe.type+="Reference",oe.referenceType=se,delete oe.url,delete oe.title}else delete oe.identifier,delete oe.label;this.data.referenceType=void 0}function q(){const oe=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";oe.type+="Reference",oe.referenceType=se,delete oe.url,delete oe.title}else delete oe.identifier,delete oe.label;this.data.referenceType=void 0}function K(oe){const se=this.sliceSerialize(oe),P=this.stack[this.stack.length-2];P.label=ig(se),P.identifier=ln(se).toLowerCase()}function ie(){const oe=this.stack[this.stack.length-1],se=this.resume(),P=this.stack[this.stack.length-1];if(this.data.inReference=!0,P.type==="link"){const be=oe.children;P.children=be}else P.alt=se}function E(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.url=oe}function M(){const oe=this.resume(),se=this.stack[this.stack.length-1];se.title=oe}function H(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function B(oe){const se=this.resume(),P=this.stack[this.stack.length-1];P.label=se,P.identifier=ln(this.sliceSerialize(oe)).toLowerCase(),this.data.referenceType="full"}function z(oe){this.data.characterReferenceType=oe.type}function W(oe){const se=this.sliceSerialize(oe),P=this.data.characterReferenceType;let be;P?(be=tg(se,P==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):be=Wr(se);const He=this.stack[this.stack.length-1];He.value+=be}function F(oe){const se=this.stack.pop();se.position.end=Dn(oe.end)}function te(oe){N.call(this,oe);const se=this.stack[this.stack.length-1];se.url=this.sliceSerialize(oe)}function ee(oe){N.call(this,oe);const se=this.stack[this.stack.length-1];se.url="mailto:"+this.sliceSerialize(oe)}function ne(){return{type:"blockquote",children:[]}}function le(){return{type:"code",lang:null,meta:null,value:""}}function G(){return{type:"inlineCode",value:""}}function ae(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ce(){return{type:"emphasis",children:[]}}function Ie(){return{type:"heading",depth:0,children:[]}}function Ce(){return{type:"break"}}function Re(){return{type:"html",value:""}}function Ve(){return{type:"image",title:null,url:"",alt:null}}function Oe(){return{type:"link",title:null,url:"",children:[]}}function Ne(oe){return{type:"list",ordered:oe.type==="listOrdered",start:null,spread:oe._spread,children:[]}}function Ke(oe){return{type:"listItem",spread:oe._spread,checked:null,children:[]}}function vt(){return{type:"paragraph",children:[]}}function Je(){return{type:"strong",children:[]}}function Fe(){return{type:"text",value:""}}function Vt(){return{type:"thematicBreak"}}}function Dn(e){return{line:e.line,column:e.column,offset:e.offset}}function ag(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ag(e,r):SS(e,r)}}function SS(e,t){let n;for(n in t)if(sg.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function qc(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+kn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+kn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+kn({start:t.start,end:t.end})+") is still open")}function _S(e){const t=this;t.parser=n;function n(r){return wS(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const Kc={}.hasOwnProperty;function ES(e,t){const n=t||{};function r(i,...s){let o=r.invalid;const l=r.handlers;if(i&&Kc.call(i,e)){const u=String(i[e]);o=Kc.call(l,u)?l[u]:r.unknown}if(o)return o.call(this,i,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const IS={}.hasOwnProperty;function og(e,t){let n=-1,r;if(t.extensions)for(;++n<t.extensions.length;)og(e,t.extensions[n]);for(r in t)if(IS.call(t,r))switch(r){case"extensions":break;case"unsafe":{Jc(e[r],t[r]);break}case"join":{Jc(e[r],t[r]);break}case"handlers":{CS(e[r],t[r]);break}default:e.options[r]=t[r]}return e}function Jc(e,t){t&&e.push(...t)}function CS(e,t){t&&Object.assign(e,t)}function AS(e,t,n,r){const i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const o=n.indentLines(n.containerFlow(e,s.current()),TS);return i(),o}function TS(e,t,n){return">"+(n?"":" ")+e}function lg(e,t){return Gc(e,t.inConstruct,!0)&&!Gc(e,t.notInConstruct,!1)}function Gc(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Yc(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
85
85
  `&&lg(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
86
- `}function TS(e,t){const n=String(e);let r=n.indexOf(t),i=r,s=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++s>o&&(o=s):s=1,i=r+t.length,r=n.indexOf(t,i);return o}function Ka(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 NS(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 OS(e,t,n,r){const i=NS(n),s=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(Ka(e,n)){const h=n.enter("codeIndented"),g=n.indentLines(s,PS);return h(),g}const l=n.createTracker(r),u=i.repeat(Math.max(TS(s,i)+1,3)),c=n.enter("codeFenced");let d=l.move(u);if(e.lang){const h=n.enter(`codeFencedLang${o}`);d+=l.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...l.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${o}`);d+=l.move(" "),d+=l.move(n.safe(e.meta,{before:d,after:`
86
+ `}function NS(e,t){const n=String(e);let r=n.indexOf(t),i=r,s=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++s>o&&(o=s):s=1,i=r+t.length,r=n.indexOf(t,i);return o}function Ka(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 OS(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 PS(e,t,n,r){const i=OS(n),s=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(Ka(e,n)){const h=n.enter("codeIndented"),g=n.indentLines(s,RS);return h(),g}const l=n.createTracker(r),u=i.repeat(Math.max(NS(s,i)+1,3)),c=n.enter("codeFenced");let d=l.move(u);if(e.lang){const h=n.enter(`codeFencedLang${o}`);d+=l.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...l.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${o}`);d+=l.move(" "),d+=l.move(n.safe(e.meta,{before:d,after:`
87
87
  `,encode:["`"],...l.current()})),h()}return d+=l.move(`
88
88
  `),s&&(d+=l.move(s+`
89
- `)),d+=l.move(u),c(),d}function PS(e,t,n){return(n?"":" ")+e}function fl(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 RS(e,t,n,r){const i=fl(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let l=n.enter("label");const u=n.createTracker(r);let c=u.move("[");return c+=u.move(n.safe(n.associationId(e),{before:c,after:"]",...u.current()})),c+=u.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":`
90
- `,...u.current()}))),l(),e.title&&(l=n.enter(`title${s}`),c+=u.move(" "+i),c+=u.move(n.safe(e.title,{before:c,after:i,...u.current()})),c+=u.move(i),l()),o(),c}function DS(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 jn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function us(e,t,n){const r=gr(e),i=gr(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ug.peek=LS;function ug(e,t,n,r){const i=DS(n),s=n.enter("emphasis"),o=n.createTracker(r),l=o.move(i);let u=o.move(n.containerPhrasing(e,{after:i,before:l,...o.current()}));const c=u.charCodeAt(0),d=us(r.before.charCodeAt(r.before.length-1),c,i);d.inside&&(u=jn(c)+u.slice(1));const h=u.charCodeAt(u.length-1),g=us(r.after.charCodeAt(0),h,i);g.inside&&(u=u.slice(0,-1)+jn(h));const m=o.move(i);return s(),n.attentionEncodeSurroundingInfo={after:g.outside,before:d.outside},l+u+m}function LS(e,t,n){return n.options.emphasis||"*"}const Ps=(function(e){if(e==null)return FS;if(typeof e=="function")return Rs(e);if(typeof e=="object")return Array.isArray(e)?VS(e):MS(e);if(typeof e=="string")return jS(e);throw new Error("Expected function, string, or object as test")});function VS(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ps(e[n]);return Rs(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function MS(e){const t=e;return Rs(n);function n(r){const i=r;let s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function jS(e){return Rs(t);function t(n){return n&&n.type===e}}function Rs(e){return t;function t(n,r,i){return!!(zS(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function FS(){return!0}function zS(e){return e!==null&&typeof e=="object"&&"type"in e}const cg=[],BS=!0,Ja=!1,HS="skip";function hg(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const s=Ps(i),o=r?-1:1;l(e,void 0,[])();function l(u,c,d){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(g,"name",{value:"node ("+(u.type+(m?"<"+m+">":""))+")"})}return g;function g(){let m=cg,w,S,y;if((!t||s(u,c,d[d.length-1]||void 0))&&(m=$S(n(u,d)),m[0]===Ja))return m;if("children"in u&&u.children){const k=u;if(k.children&&m[0]!==HS)for(S=(r?k.children.length:-1)+o,y=d.concat(k);S>-1&&S<k.children.length;){const v=k.children[S];if(w=l(v,S,y)(),w[0]===Ja)return w;S=typeof w[1]=="number"?w[1]:S+o}}return m}}}function $S(e){return Array.isArray(e)?e:typeof e=="number"?[BS,e]:e==null?cg:[e]}function WS(e,t,n,r){let i,s,o;typeof t=="function"&&typeof n!="function"?(s=void 0,o=t,i=n):(s=t,o=n,i=r),hg(e,s,l,i);function l(u,c){const d=c[c.length-1],h=d?d.children.indexOf(u):void 0;return o(u,h,d)}}const US={};function pg(e,t){const n=US,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return dg(e,r,i)}function dg(e,t,n){if(qS(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 Qc(e.children,t,n)}return Array.isArray(e)?Qc(e,t,n):""}function Qc(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=dg(e[i],t,n);return r.join("")}function qS(e){return!!(e&&typeof e=="object")}function fg(e,t){let n=!1;return WS(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Ja}),!!((!e.depth||e.depth<3)&&pg(e)&&(t.options.setext||n))}function KS(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(fg(e,n)){const d=n.enter("headingSetext"),h=n.enter("phrasing"),g=n.containerPhrasing(e,{...s.current(),before:`
89
+ `)),d+=l.move(u),c(),d}function RS(e,t,n){return(n?"":" ")+e}function fl(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 DS(e,t,n,r){const i=fl(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let l=n.enter("label");const u=n.createTracker(r);let c=u.move("[");return c+=u.move(n.safe(n.associationId(e),{before:c,after:"]",...u.current()})),c+=u.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":`
90
+ `,...u.current()}))),l(),e.title&&(l=n.enter(`title${s}`),c+=u.move(" "+i),c+=u.move(n.safe(e.title,{before:c,after:i,...u.current()})),c+=u.move(i),l()),o(),c}function LS(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 jn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function us(e,t,n){const r=gr(e),i=gr(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ug.peek=VS;function ug(e,t,n,r){const i=LS(n),s=n.enter("emphasis"),o=n.createTracker(r),l=o.move(i);let u=o.move(n.containerPhrasing(e,{after:i,before:l,...o.current()}));const c=u.charCodeAt(0),d=us(r.before.charCodeAt(r.before.length-1),c,i);d.inside&&(u=jn(c)+u.slice(1));const h=u.charCodeAt(u.length-1),g=us(r.after.charCodeAt(0),h,i);g.inside&&(u=u.slice(0,-1)+jn(h));const m=o.move(i);return s(),n.attentionEncodeSurroundingInfo={after:g.outside,before:d.outside},l+u+m}function VS(e,t,n){return n.options.emphasis||"*"}const Ps=(function(e){if(e==null)return zS;if(typeof e=="function")return Rs(e);if(typeof e=="object")return Array.isArray(e)?MS(e):jS(e);if(typeof e=="string")return FS(e);throw new Error("Expected function, string, or object as test")});function MS(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ps(e[n]);return Rs(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function jS(e){const t=e;return Rs(n);function n(r){const i=r;let s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function FS(e){return Rs(t);function t(n){return n&&n.type===e}}function Rs(e){return t;function t(n,r,i){return!!(BS(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function zS(){return!0}function BS(e){return e!==null&&typeof e=="object"&&"type"in e}const cg=[],HS=!0,Ja=!1,$S="skip";function hg(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const s=Ps(i),o=r?-1:1;l(e,void 0,[])();function l(u,c,d){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(g,"name",{value:"node ("+(u.type+(m?"<"+m+">":""))+")"})}return g;function g(){let m=cg,w,S,y;if((!t||s(u,c,d[d.length-1]||void 0))&&(m=WS(n(u,d)),m[0]===Ja))return m;if("children"in u&&u.children){const k=u;if(k.children&&m[0]!==$S)for(S=(r?k.children.length:-1)+o,y=d.concat(k);S>-1&&S<k.children.length;){const v=k.children[S];if(w=l(v,S,y)(),w[0]===Ja)return w;S=typeof w[1]=="number"?w[1]:S+o}}return m}}}function WS(e){return Array.isArray(e)?e:typeof e=="number"?[HS,e]:e==null?cg:[e]}function US(e,t,n,r){let i,s,o;typeof t=="function"&&typeof n!="function"?(s=void 0,o=t,i=n):(s=t,o=n,i=r),hg(e,s,l,i);function l(u,c){const d=c[c.length-1],h=d?d.children.indexOf(u):void 0;return o(u,h,d)}}const qS={};function pg(e,t){const n=qS,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return dg(e,r,i)}function dg(e,t,n){if(KS(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 Qc(e.children,t,n)}return Array.isArray(e)?Qc(e,t,n):""}function Qc(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=dg(e[i],t,n);return r.join("")}function KS(e){return!!(e&&typeof e=="object")}function fg(e,t){let n=!1;return US(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Ja}),!!((!e.depth||e.depth<3)&&pg(e)&&(t.options.setext||n))}function JS(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(fg(e,n)){const d=n.enter("headingSetext"),h=n.enter("phrasing"),g=n.containerPhrasing(e,{...s.current(),before:`
91
91
  `,after:`
92
92
  `});return h(),d(),g+`
93
93
  `+(i===1?"=":"-").repeat(g.length-(Math.max(g.lastIndexOf("\r"),g.lastIndexOf(`
94
94
  `))+1))}const o="#".repeat(i),l=n.enter("headingAtx"),u=n.enter("phrasing");s.move(o+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
95
- `,...s.current()});return/^[\t ]/.test(c)&&(c=jn(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),u(),l(),c}gg.peek=JS;function gg(e){return e.value||""}function JS(){return"<"}mg.peek=GS;function mg(e,t,n,r){const i=fl(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let l=n.enter("label");const u=n.createTracker(r);let c=u.move("![");return c+=u.move(n.safe(e.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=n.enter(`title${s}`),c+=u.move(" "+i),c+=u.move(n.safe(e.title,{before:c,after:i,...u.current()})),c+=u.move(i),l()),c+=u.move(")"),o(),c}function GS(){return"!"}xg.peek=YS;function xg(e,t,n,r){const i=e.referenceType,s=n.enter("imageReference");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");const c=n.safe(e.alt,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return o(),n.stack=d,s(),i==="full"||!c||c!==h?u+=l.move(h+"]"):i==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function YS(){return"!"}vg.peek=QS;function vg(e,t,n){let r=e.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const o=n.unsafe[s],l=n.compilePattern(o);let u;if(o.atBreak)for(;u=l.exec(r);){let c=u.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(u.index+1)}}return i+r+i}function QS(){return"`"}function bg(e,t){const n=pg(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))}yg.peek=XS;function yg(e,t,n,r){const i=fl(n),s=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let l,u;if(bg(e,n)){const d=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=d,h}l=n.enter("link"),u=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(u=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=n.enter(`title${s}`),c+=o.move(" "+i),c+=o.move(n.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),u()),c+=o.move(")"),l(),c}function XS(e,t,n){return bg(e,n)?"<":"["}wg.peek=ZS;function wg(e,t,n,r){const i=e.referenceType,s=n.enter("linkReference");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("[");const c=n.containerPhrasing(e,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return o(),n.stack=d,s(),i==="full"||!c||c!==h?u+=l.move(h+"]"):i==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function ZS(){return"["}function gl(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 e_(e){const t=gl(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 t_(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 kg(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 n_(e,t,n,r){const i=n.enter("list"),s=n.bulletCurrent;let o=e.ordered?t_(n):gl(n);const l=e.ordered?o==="."?")":".":e_(n);let u=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.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),kg(n)===o&&d){let h=-1;for(;++h<e.children.length;){const g=e.children[h];if(g&&g.type==="listItem"&&g.children&&g.children[0]&&g.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(o=l),n.bulletCurrent=o;const c=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=s,i(),c}function r_(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 i_(e,t,n,r){const i=r_(n);let s=n.bulletCurrent||gl(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;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=n.createTracker(r);l.move(s+" ".repeat(o-s.length)),l.shift(o);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),d);return u(),c;function d(h,g,m){return g?(m?"":" ".repeat(o))+h:(m?s:s+" ".repeat(o-s.length))+h}}function s_(e,t,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(e,r);return s(),i(),o}const a_=Ps(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function o_(e,t,n,r){return(e.children.some(function(o){return a_(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function l_(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Sg.peek=u_;function Sg(e,t,n,r){const i=l_(n),s=n.enter("strong"),o=n.createTracker(r),l=o.move(i+i);let u=o.move(n.containerPhrasing(e,{after:i,before:l,...o.current()}));const c=u.charCodeAt(0),d=us(r.before.charCodeAt(r.before.length-1),c,i);d.inside&&(u=jn(c)+u.slice(1));const h=u.charCodeAt(u.length-1),g=us(r.after.charCodeAt(0),h,i);g.inside&&(u=u.slice(0,-1)+jn(h));const m=o.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:g.outside,before:d.outside},l+u+m}function u_(e,t,n){return n.options.strong||"*"}function c_(e,t,n,r){return n.safe(e.value,r)}function h_(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 p_(e,t,n){const r=(kg(n)+(n.options.ruleSpaces?" ":"")).repeat(h_(n));return n.options.ruleSpaces?r.slice(0,-1):r}const ml={blockquote:CS,break:Yc,code:OS,definition:RS,emphasis:ug,hardBreak:Yc,heading:KS,html:gg,image:mg,imageReference:xg,inlineCode:vg,link:yg,linkReference:wg,list:n_,listItem:i_,paragraph:s_,root:o_,strong:Sg,text:c_,thematicBreak:p_},d_=[f_];function f_(e,t,n,r){if(t.type==="code"&&Ka(t,r)&&(e.type==="list"||e.type===t.type&&Ka(e,r)))return!1;if("spread"in n&&typeof n.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&fg(t,r))?void 0:n.spread?1:0}const $n=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],g_=[{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:`
95
+ `,...s.current()});return/^[\t ]/.test(c)&&(c=jn(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),u(),l(),c}gg.peek=GS;function gg(e){return e.value||""}function GS(){return"<"}mg.peek=YS;function mg(e,t,n,r){const i=fl(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let l=n.enter("label");const u=n.createTracker(r);let c=u.move("![");return c+=u.move(n.safe(e.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=n.enter(`title${s}`),c+=u.move(" "+i),c+=u.move(n.safe(e.title,{before:c,after:i,...u.current()})),c+=u.move(i),l()),c+=u.move(")"),o(),c}function YS(){return"!"}xg.peek=QS;function xg(e,t,n,r){const i=e.referenceType,s=n.enter("imageReference");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");const c=n.safe(e.alt,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return o(),n.stack=d,s(),i==="full"||!c||c!==h?u+=l.move(h+"]"):i==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function QS(){return"!"}vg.peek=XS;function vg(e,t,n){let r=e.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const o=n.unsafe[s],l=n.compilePattern(o);let u;if(o.atBreak)for(;u=l.exec(r);){let c=u.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(u.index+1)}}return i+r+i}function XS(){return"`"}function bg(e,t){const n=pg(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))}yg.peek=ZS;function yg(e,t,n,r){const i=fl(n),s=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let l,u;if(bg(e,n)){const d=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=d,h}l=n.enter("link"),u=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(u=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=n.enter(`title${s}`),c+=o.move(" "+i),c+=o.move(n.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),u()),c+=o.move(")"),l(),c}function ZS(e,t,n){return bg(e,n)?"<":"["}wg.peek=e_;function wg(e,t,n,r){const i=e.referenceType,s=n.enter("linkReference");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("[");const c=n.containerPhrasing(e,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return o(),n.stack=d,s(),i==="full"||!c||c!==h?u+=l.move(h+"]"):i==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function e_(){return"["}function gl(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 t_(e){const t=gl(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 n_(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 kg(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 r_(e,t,n,r){const i=n.enter("list"),s=n.bulletCurrent;let o=e.ordered?n_(n):gl(n);const l=e.ordered?o==="."?")":".":t_(n);let u=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.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),kg(n)===o&&d){let h=-1;for(;++h<e.children.length;){const g=e.children[h];if(g&&g.type==="listItem"&&g.children&&g.children[0]&&g.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(o=l),n.bulletCurrent=o;const c=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=s,i(),c}function i_(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 s_(e,t,n,r){const i=i_(n);let s=n.bulletCurrent||gl(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;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=n.createTracker(r);l.move(s+" ".repeat(o-s.length)),l.shift(o);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),d);return u(),c;function d(h,g,m){return g?(m?"":" ".repeat(o))+h:(m?s:s+" ".repeat(o-s.length))+h}}function a_(e,t,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(e,r);return s(),i(),o}const o_=Ps(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function l_(e,t,n,r){return(e.children.some(function(o){return o_(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function u_(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Sg.peek=c_;function Sg(e,t,n,r){const i=u_(n),s=n.enter("strong"),o=n.createTracker(r),l=o.move(i+i);let u=o.move(n.containerPhrasing(e,{after:i,before:l,...o.current()}));const c=u.charCodeAt(0),d=us(r.before.charCodeAt(r.before.length-1),c,i);d.inside&&(u=jn(c)+u.slice(1));const h=u.charCodeAt(u.length-1),g=us(r.after.charCodeAt(0),h,i);g.inside&&(u=u.slice(0,-1)+jn(h));const m=o.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:g.outside,before:d.outside},l+u+m}function c_(e,t,n){return n.options.strong||"*"}function h_(e,t,n,r){return n.safe(e.value,r)}function p_(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 d_(e,t,n){const r=(kg(n)+(n.options.ruleSpaces?" ":"")).repeat(p_(n));return n.options.ruleSpaces?r.slice(0,-1):r}const ml={blockquote:AS,break:Yc,code:PS,definition:DS,emphasis:ug,hardBreak:Yc,heading:JS,html:gg,image:mg,imageReference:xg,inlineCode:vg,link:yg,linkReference:wg,list:r_,listItem:s_,paragraph:a_,root:l_,strong:Sg,text:h_,thematicBreak:d_},f_=[g_];function g_(e,t,n,r){if(t.type==="code"&&Ka(t,r)&&(e.type==="list"||e.type===t.type&&Ka(e,r)))return!1;if("spread"in n&&typeof n.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&fg(t,r))?void 0:n.spread?1:0}const $n=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],m_=[{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:`
96
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:$n},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
97
97
  ]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:$n},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
98
98
  *])`},{character:"*",inConstruct:"phrasing",notInConstruct:$n},{atBreak:!0,character:"+",after:`(?:[ \r
99
99
  ])`},{atBreak:!0,character:"-",after:`(?:[ \r
100
100
  -])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
101
- ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:$n},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:$n},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:$n},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:$n},{atBreak:!0,character:"~"}];function m_(e){return e.label||!e.identifier?e.label||"":ig(e.identifier)}function x_(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 v_(e,t,n){const r=t.indexStack,i=e.children||[],s=[];let o=-1,l=n.before,u;r.push(-1);let c=t.createTracker(n);for(;++o<i.length;){const d=i[o];let h;if(r[r.length-1]=o,o+1<i.length){let w=t.handle.handlers[i[o+1].type];w&&w.peek&&(w=w.peek),h=w?w(i[o+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else h=n.after;s.length>0&&(l==="\r"||l===`
102
- `)&&d.type==="html"&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),l=" ",c=t.createTracker(n),c.move(s.join("")));let g=t.handle(d,e,t,{...c.current(),after:h,before:l});u&&u===g.slice(0,1)&&(g=jn(u.charCodeAt(0))+g.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)+jn(l.charCodeAt(0))),m.after&&(u=h)),c.move(g),s.push(g),l=g.slice(-1)}return r.pop(),s.join("")}function b_(e,t,n){const r=t.indexStack,i=e.children||[],s=t.createTracker(n),o=[];let l=-1;for(r.push(-1);++l<i.length;){const u=i[l];r[r.length-1]=l,o.push(s.move(t.handle(u,e,t,{before:`
101
+ ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:$n},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:$n},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:$n},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:$n},{atBreak:!0,character:"~"}];function x_(e){return e.label||!e.identifier?e.label||"":ig(e.identifier)}function v_(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 b_(e,t,n){const r=t.indexStack,i=e.children||[],s=[];let o=-1,l=n.before,u;r.push(-1);let c=t.createTracker(n);for(;++o<i.length;){const d=i[o];let h;if(r[r.length-1]=o,o+1<i.length){let w=t.handle.handlers[i[o+1].type];w&&w.peek&&(w=w.peek),h=w?w(i[o+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else h=n.after;s.length>0&&(l==="\r"||l===`
102
+ `)&&d.type==="html"&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),l=" ",c=t.createTracker(n),c.move(s.join("")));let g=t.handle(d,e,t,{...c.current(),after:h,before:l});u&&u===g.slice(0,1)&&(g=jn(u.charCodeAt(0))+g.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)+jn(l.charCodeAt(0))),m.after&&(u=h)),c.move(g),s.push(g),l=g.slice(-1)}return r.pop(),s.join("")}function y_(e,t,n){const r=t.indexStack,i=e.children||[],s=t.createTracker(n),o=[];let l=-1;for(r.push(-1);++l<i.length;){const u=i[l];r[r.length-1]=l,o.push(s.move(t.handle(u,e,t,{before:`
103
103
  `,after:`
104
- `,...s.current()}))),u.type!=="list"&&(t.bulletLastUsed=void 0),l<i.length-1&&o.push(s.move(y_(u,i[l+1],e,t)))}return r.pop(),o.join("")}function y_(e,t,n,r){let i=r.join.length;for(;i--;){const s=r.join[i](e,t,n,r);if(s===!0||s===1)break;if(typeof s=="number")return`
104
+ `,...s.current()}))),u.type!=="list"&&(t.bulletLastUsed=void 0),l<i.length-1&&o.push(s.move(w_(u,i[l+1],e,t)))}return r.pop(),o.join("")}function w_(e,t,n,r){let i=r.join.length;for(;i--;){const s=r.join[i](e,t,n,r);if(s===!0||s===1)break;if(typeof s=="number")return`
105
105
  `.repeat(1+s);if(s===!1)return`
106
106
 
107
107
  <!---->
108
108
 
109
109
  `}return`
110
110
 
111
- `}const w_=/\r?\n|\r/g;function k_(e,t){const n=[];let r=0,i=0,s;for(;s=w_.exec(e);)o(e.slice(r,s.index)),n.push(s[0]),r=s.index+s[0].length,i++;return o(e.slice(r)),n.join("");function o(l){n.push(t(l,i,!l))}}function S_(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],s=[],o={};let l=-1;for(;++l<e.unsafe.length;){const d=e.unsafe[l];if(!lg(e.stack,d))continue;const h=e.compilePattern(d);let g;for(;g=h.exec(r);){const m="before"in d||!!d.atBreak,w="after"in d,S=g.index+(m?g[1].length:0);i.includes(S)?(o[S].before&&!m&&(o[S].before=!1),o[S].after&&!w&&(o[S].after=!1)):(i.push(S),o[S]={before:m,after:w})}}i.sort(__);let u=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(l=-1;++l<i.length;){const d=i[l];d<u||d>=c||d+1<c&&i[l+1]===d+1&&o[d].after&&!o[d+1].before&&!o[d+1].after||i[l-1]===d-1&&o[d].before&&!o[d-1].before&&!o[d-1].after||(u!==d&&s.push(Xc(r.slice(u,d),"\\")),u=d,/[!-/:-@[-`{-~]/.test(r.charAt(d))&&(!n.encode||!n.encode.includes(r.charAt(d)))?s.push("\\"):(s.push(jn(r.charCodeAt(d))),u++))}return s.push(Xc(r.slice(u,c),n.after)),s.join("")}function __(e,t){return e-t}function Xc(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],s=e+t;let o=-1,l=0,u;for(;u=n.exec(s);)r.push(u.index);for(;++o<r.length;)l!==r[o]&&i.push(e.slice(l,r[o])),i.push("\\"),l=r[o];return i.push(e.slice(l)),i.join("")}function E_(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,s=n.column||1;return{move:u,current:o,shift:l};function o(){return{now:{line:i,column:s},lineShift:r}}function l(c){r+=c}function u(c){const d=c||"",h=d.split(/\r?\n|\r/g),g=h[h.length-1];return i+=h.length-1,s=h.length===1?s+g.length:1+g.length+r,d}}function I_(e,t){const n=t||{},r={associationId:m_,containerPhrasing:N_,containerFlow:O_,createTracker:E_,compilePattern:x_,enter:s,handlers:{...ml},handle:void 0,indentLines:k_,indexStack:[],join:[...d_],options:{},safe:P_,stack:[],unsafe:[...g_]};og(r,n),r.options.tightDefinitions&&r.join.push(T_),r.handle=_S("type",{invalid:C_,unknown:A_,handlers:r.handlers});let i=r.handle(e,void 0,r,{before:`
111
+ `}const k_=/\r?\n|\r/g;function S_(e,t){const n=[];let r=0,i=0,s;for(;s=k_.exec(e);)o(e.slice(r,s.index)),n.push(s[0]),r=s.index+s[0].length,i++;return o(e.slice(r)),n.join("");function o(l){n.push(t(l,i,!l))}}function __(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],s=[],o={};let l=-1;for(;++l<e.unsafe.length;){const d=e.unsafe[l];if(!lg(e.stack,d))continue;const h=e.compilePattern(d);let g;for(;g=h.exec(r);){const m="before"in d||!!d.atBreak,w="after"in d,S=g.index+(m?g[1].length:0);i.includes(S)?(o[S].before&&!m&&(o[S].before=!1),o[S].after&&!w&&(o[S].after=!1)):(i.push(S),o[S]={before:m,after:w})}}i.sort(E_);let u=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(l=-1;++l<i.length;){const d=i[l];d<u||d>=c||d+1<c&&i[l+1]===d+1&&o[d].after&&!o[d+1].before&&!o[d+1].after||i[l-1]===d-1&&o[d].before&&!o[d-1].before&&!o[d-1].after||(u!==d&&s.push(Xc(r.slice(u,d),"\\")),u=d,/[!-/:-@[-`{-~]/.test(r.charAt(d))&&(!n.encode||!n.encode.includes(r.charAt(d)))?s.push("\\"):(s.push(jn(r.charCodeAt(d))),u++))}return s.push(Xc(r.slice(u,c),n.after)),s.join("")}function E_(e,t){return e-t}function Xc(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],s=e+t;let o=-1,l=0,u;for(;u=n.exec(s);)r.push(u.index);for(;++o<r.length;)l!==r[o]&&i.push(e.slice(l,r[o])),i.push("\\"),l=r[o];return i.push(e.slice(l)),i.join("")}function I_(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,s=n.column||1;return{move:u,current:o,shift:l};function o(){return{now:{line:i,column:s},lineShift:r}}function l(c){r+=c}function u(c){const d=c||"",h=d.split(/\r?\n|\r/g),g=h[h.length-1];return i+=h.length-1,s=h.length===1?s+g.length:1+g.length+r,d}}function C_(e,t){const n=t||{},r={associationId:x_,containerPhrasing:O_,containerFlow:P_,createTracker:I_,compilePattern:v_,enter:s,handlers:{...ml},handle:void 0,indentLines:S_,indexStack:[],join:[...f_],options:{},safe:R_,stack:[],unsafe:[...m_]};og(r,n),r.options.tightDefinitions&&r.join.push(N_),r.handle=ES("type",{invalid:A_,unknown:T_,handlers:r.handlers});let i=r.handle(e,void 0,r,{before:`
112
112
  `,after:`
113
113
  `,now:{line:1,column:1},lineShift:0});return i&&i.charCodeAt(i.length-1)!==10&&i.charCodeAt(i.length-1)!==13&&(i+=`
114
- `),i;function s(o){return r.stack.push(o),l;function l(){r.stack.pop()}}}function C_(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function A_(e){const t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function T_(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function N_(e,t){return v_(e,this,t)}function O_(e,t){return b_(e,this,t)}function P_(e,t){return S_(this,e,t)}function R_(e){const t=this;t.compiler=n;function n(r){return I_(r,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function Zc(e){if(e)throw e}var oa,eh;function D_(){if(eh)return oa;eh=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},s=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 g;for(g in c);return typeof g>"u"||e.call(c,g)},o=function(c,d){n&&d.name==="__proto__"?n(c,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):c[d.name]=d.newValue},l=function(c,d){if(d==="__proto__")if(e.call(c,d)){if(r)return r(c,d).value}else return;return c[d]};return oa=function u(){var c,d,h,g,m,w,S=arguments[0],y=1,k=arguments.length,v=!1;for(typeof S=="boolean"&&(v=S,S=arguments[1]||{},y=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});y<k;++y)if(c=arguments[y],c!=null)for(d in c)h=l(S,d),g=l(c,d),S!==g&&(v&&g&&(s(g)||(m=i(g)))?(m?(m=!1,w=h&&i(h)?h:[]):w=h&&s(h)?h:{},o(S,{name:d,newValue:u(v,w,g)})):typeof g<"u"&&o(S,{name:d,newValue:g}));return S},oa}var L_=D_();const la=hl(L_);function Ga(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 V_(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...i);function l(u,...c){const d=e[++s];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?M_(d,l)(...c):o(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function M_(e,t){let n;return r;function r(...o){const l=e.length>o.length;let u;l&&o.push(i);try{u=e.apply(this,o)}catch(c){const d=c;if(l&&n)throw d;return i(d)}l||(u&&u.then&&typeof u.then=="function"?u.then(s,i):u instanceof Error?i(u):s(u))}function i(o,...l){n||(n=!0,t(o,...l))}function s(o){i(null,o)}}const pn={basename:j_,dirname:F_,extname:z_,join:B_,sep:"/"};function j_(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ei(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else o<0&&(s=!0,o=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(r=i):(l=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function F_(e){if(ei(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function z_(e){ei(e);let t=e.length,n=-1,r=0,i=-1,s=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),l===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function B_(...e){let t=-1,n;for(;++t<e.length;)ei(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":H_(n)}function H_(e){ei(e);const t=e.codePointAt(0)===47;let n=$_(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function $_(e,t){let n="",r=0,i=-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(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==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="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length>0){n="",r=0,i=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,s=0}else l===46&&s>-1?s++:s=-1}return n}function ei(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const W_={cwd:U_};function U_(){return"/"}function Ya(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function q_(e){if(typeof e=="string")e=new URL(e);else if(!Ya(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 K_(e)}function K_(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===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 ua=["history","path","basename","stem","extname","dirname"];class J_{constructor(t){let n;t?Ya(t)?n={path:t}:typeof t=="string"||G_(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":W_.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ua.length;){const s=ua[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)ua.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?pn.basename(this.path):void 0}set basename(t){ha(t,"basename"),ca(t,"basename"),this.path=pn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?pn.dirname(this.path):void 0}set dirname(t){th(this.basename,"dirname"),this.path=pn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?pn.extname(this.path):void 0}set extname(t){if(ca(t,"extname"),th(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=pn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ya(t)&&(t=q_(t)),ha(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?pn.basename(this.path,this.extname):void 0}set stem(t){ha(t,"stem"),ca(t,"stem"),this.path=pn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Xe(t,n,r);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 ca(e,t){if(e&&e.includes(pn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+pn.sep+"`")}function ha(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function th(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function G_(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Y_=(function(e){const r=this.constructor.prototype,i=r[e],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s}),Q_={}.hasOwnProperty;class xl extends Y_{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=V_()}copy(){const t=new xl;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(la(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(fa("data",this.frozen),this.namespace[t]=n,this):Q_.call(this.namespace,t)&&this.namespace[t]||void 0:t?(fa("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,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=wi(t),r=this.parser||this.Parser;return pa("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),pa("process",this.parser||this.Parser),da("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,o){const l=wi(t),u=r.parse(l);r.run(u,l,function(d,h,g){if(d||!h||!g)return c(d);const m=h,w=r.stringify(m,g);eE(w)?g.value=w:g.result=w,c(d,g)});function c(d,h){d||!h?o(d):s?s(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),pa("processSync",this.parser||this.Parser),da("processSync",this.compiler||this.Compiler),this.process(t,i),rh("processSync","process",n),r;function i(s,o){n=!0,Zc(s),r=o}}run(t,n,r){nh(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(o,l){const u=wi(n);i.run(t,u,c);function c(d,h,g){const m=h||t;d?l(d):o?o(m):r(void 0,m,g)}}}runSync(t,n){let r=!1,i;return this.run(t,n,s),rh("runSync","run",r),i;function s(o,l){Zc(o),i=l,r=!0}}stringify(t,n){this.freeze();const r=wi(n),i=this.compiler||this.Compiler;return da("stringify",i),nh(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(fa("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(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");l(c.plugins),c.settings&&(i.settings=la(!0,i.settings,c.settings))}function l(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){const h=c[d];s(h)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,d){let h=-1,g=-1;for(;++h<r.length;)if(r[h][0]===c){g=h;break}if(g===-1)r.push([c,...d]);else if(d.length>0){let[m,...w]=d;const S=r[g][1];Ga(S)&&Ga(m)&&(m=la(!0,S,m)),r[g]=[c,m,...w]}}}}const X_=new xl().freeze();function pa(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function da(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function fa(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 nh(e){if(!Ga(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function rh(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function wi(e){return Z_(e)?e:new J_(e)}function Z_(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function eE(e){return typeof e=="string"||tE(e)}function tE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const nE=X_().use(SS).use(R_).freeze();function rE(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function iE(e,t,n){const i=Ps((n||{}).ignore||[]),s=sE(t);let o=-1;for(;++o<s.length;)hg(e,"text",l);function l(c,d){let h=-1,g;for(;++h<d.length;){const m=d[h],w=g?g.children:void 0;if(i(m,w?w.indexOf(m):void 0,g))return;g=m}if(g)return u(c,d)}function u(c,d){const h=d[d.length-1],g=s[o][0],m=s[o][1];let w=0;const y=h.children.indexOf(c);let k=!1,v=[];g.lastIndex=0;let _=g.exec(c.value);for(;_;){const A=_.index,x={index:_.index,input:_.input,stack:[...d,c]};let f=m(..._,x);if(typeof f=="string"&&(f=f.length>0?{type:"text",value:f}:void 0),f===!1?g.lastIndex=A+1:(w!==A&&v.push({type:"text",value:c.value.slice(w,A)}),Array.isArray(f)?v.push(...f):f&&v.push(f),w=A+_[0].length,k=!0),!g.global)break;_=g.exec(c.value)}return k?(w<c.value.length&&v.push({type:"text",value:c.value.slice(w)}),h.children.splice(y,1,...v)):v=[c],y+v.length}}function sE(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 r=-1;for(;++r<n.length;){const i=n[r];t.push([aE(i[0]),oE(i[1])])}return t}function aE(e){return typeof e=="string"?new RegExp(rE(e),"g"):e}function oE(e){return typeof e=="function"?e:function(){return e}}const ga="phrasing",ma=["autolink","link","image","label"];function lE(){return{transforms:[gE],enter:{literalAutolink:cE,literalAutolinkEmail:xa,literalAutolinkHttp:xa,literalAutolinkWww:xa},exit:{literalAutolink:fE,literalAutolinkEmail:dE,literalAutolinkHttp:hE,literalAutolinkWww:pE}}}function uE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ga,notInConstruct:ma},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ga,notInConstruct:ma},{character:":",before:"[ps]",after:"\\/",inConstruct:ga,notInConstruct:ma}]}}function cE(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function xa(e){this.config.enter.autolinkProtocol.call(this,e)}function hE(e){this.config.exit.autolinkProtocol.call(this,e)}function pE(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 dE(e){this.config.exit.autolinkEmail.call(this,e)}function fE(e){this.exit(e)}function gE(e){iE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,mE],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),xE]],{ignore:["link","linkReference"]})}function mE(e,t,n,r,i){let s="";if(!_g(i)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!vE(n)))return!1;const o=bE(n+r);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 xE(e,t,n,r){return!_g(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function vE(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 bE(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=ns(e,"(");let s=ns(e,")");for(;r!==-1&&i>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function _g(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Nt(n)||Ns(n))&&(!t||n!==47)}Eg.peek=AE;function yE(){this.buffer()}function wE(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function kE(){this.buffer()}function SE(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function _E(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ln(this.sliceSerialize(e)).toLowerCase(),n.label=t}function EE(e){this.exit(e)}function IE(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ln(this.sliceSerialize(e)).toLowerCase(),n.label=t}function CE(e){this.exit(e)}function AE(){return"["}function Eg(e,t,n,r){const i=n.createTracker(r);let s=i.move("[^");const o=n.enter("footnoteReference"),l=n.enter("reference");return s+=i.move(n.safe(n.associationId(e),{after:"]",before:s})),l(),o(),s+=i.move("]"),s}function TE(){return{enter:{gfmFootnoteCallString:yE,gfmFootnoteCall:wE,gfmFootnoteDefinitionLabelString:kE,gfmFootnoteDefinition:SE},exit:{gfmFootnoteCallString:_E,gfmFootnoteCall:EE,gfmFootnoteDefinitionLabelString:IE,gfmFootnoteDefinition:CE}}}function NE(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Eg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,s,o){const l=s.createTracker(o);let u=l.move("[^");const c=s.enter("footnoteDefinition"),d=s.enter("label");return u+=l.move(s.safe(s.associationId(r),{before:u,after:"]"})),d(),u+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),u+=l.move((t?`
115
- `:" ")+s.indentLines(s.containerFlow(r,l.current()),t?Ig:OE))),c(),u}}function OE(e,t,n){return t===0?e:Ig(e,t,n)}function Ig(e,t,n){return(n?"":" ")+e}const PE=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Cg.peek=ME;function RE(){return{canContainEols:["delete"],enter:{strikethrough:LE},exit:{strikethrough:VE}}}function DE(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:PE}],handlers:{delete:Cg}}}function LE(e){this.enter({type:"delete",children:[]},e)}function VE(e){this.exit(e)}function Cg(e,t,n,r){const i=n.createTracker(r),s=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),s(),o}function ME(){return"~"}function jE(e){return e.length}function FE(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||jE,s=[],o=[],l=[],u=[];let c=0,d=-1;for(;++d<e.length;){const S=[],y=[];let k=-1;for(e[d].length>c&&(c=e[d].length);++k<e[d].length;){const v=zE(e[d][k]);if(n.alignDelimiters!==!1){const _=i(v);y[k]=_,(u[k]===void 0||_>u[k])&&(u[k]=_)}S.push(v)}o[d]=S,l[d]=y}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<c;)s[h]=ih(r[h]);else{const S=ih(r);for(;++h<c;)s[h]=S}h=-1;const g=[],m=[];for(;++h<c;){const S=s[h];let y="",k="";S===99?(y=":",k=":"):S===108?y=":":S===114&&(k=":");let v=n.alignDelimiters===!1?1:Math.max(1,u[h]-y.length-k.length);const _=y+"-".repeat(v)+k;n.alignDelimiters!==!1&&(v=y.length+v+k.length,v>u[h]&&(u[h]=v),m[h]=v),g[h]=_}o.splice(1,0,g),l.splice(1,0,m),d=-1;const w=[];for(;++d<o.length;){const S=o[d],y=l[d];h=-1;const k=[];for(;++h<c;){const v=S[h]||"";let _="",A="";if(n.alignDelimiters!==!1){const x=u[h]-(y[h]||0),f=s[h];f===114?_=" ".repeat(x):f===99?x%2?(_=" ".repeat(x/2+.5),A=" ".repeat(x/2-.5)):(_=" ".repeat(x/2),A=_):A=" ".repeat(x)}n.delimiterStart!==!1&&!h&&k.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&v==="")&&(n.delimiterStart!==!1||h)&&k.push(" "),n.alignDelimiters!==!1&&k.push(_),k.push(v),n.alignDelimiters!==!1&&k.push(A),n.padding!==!1&&k.push(" "),(n.delimiterEnd!==!1||h!==c-1)&&k.push("|")}w.push(n.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return w.join(`
116
- `)}function zE(e){return e==null?"":String(e)}function ih(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 BE(){return{enter:{table:HE,tableData:sh,tableHeader:sh,tableRow:WE},exit:{codeText:UE,table:$E,tableData:va,tableHeader:va,tableRow:va}}}function HE(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 $E(e){this.exit(e),this.data.inTable=void 0}function WE(e){this.enter({type:"tableRow",children:[]},e)}function va(e){this.exit(e)}function sh(e){this.enter({type:"tableCell",children:[]},e)}function UE(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,qE));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function qE(e,t){return t==="|"?t:e}function KE(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
114
+ `),i;function s(o){return r.stack.push(o),l;function l(){r.stack.pop()}}}function A_(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function T_(e){const t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function N_(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function O_(e,t){return b_(e,this,t)}function P_(e,t){return y_(e,this,t)}function R_(e,t){return __(this,e,t)}function D_(e){const t=this;t.compiler=n;function n(r){return C_(r,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function Zc(e){if(e)throw e}var oa,eh;function L_(){if(eh)return oa;eh=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},s=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 g;for(g in c);return typeof g>"u"||e.call(c,g)},o=function(c,d){n&&d.name==="__proto__"?n(c,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):c[d.name]=d.newValue},l=function(c,d){if(d==="__proto__")if(e.call(c,d)){if(r)return r(c,d).value}else return;return c[d]};return oa=function u(){var c,d,h,g,m,w,S=arguments[0],y=1,k=arguments.length,v=!1;for(typeof S=="boolean"&&(v=S,S=arguments[1]||{},y=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});y<k;++y)if(c=arguments[y],c!=null)for(d in c)h=l(S,d),g=l(c,d),S!==g&&(v&&g&&(s(g)||(m=i(g)))?(m?(m=!1,w=h&&i(h)?h:[]):w=h&&s(h)?h:{},o(S,{name:d,newValue:u(v,w,g)})):typeof g<"u"&&o(S,{name:d,newValue:g}));return S},oa}var V_=L_();const la=hl(V_);function Ga(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 M_(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...i);function l(u,...c){const d=e[++s];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?j_(d,l)(...c):o(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function j_(e,t){let n;return r;function r(...o){const l=e.length>o.length;let u;l&&o.push(i);try{u=e.apply(this,o)}catch(c){const d=c;if(l&&n)throw d;return i(d)}l||(u&&u.then&&typeof u.then=="function"?u.then(s,i):u instanceof Error?i(u):s(u))}function i(o,...l){n||(n=!0,t(o,...l))}function s(o){i(null,o)}}const pn={basename:F_,dirname:z_,extname:B_,join:H_,sep:"/"};function F_(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ei(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else o<0&&(s=!0,o=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(r=i):(l=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function z_(e){if(ei(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function B_(e){ei(e);let t=e.length,n=-1,r=0,i=-1,s=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),l===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function H_(...e){let t=-1,n;for(;++t<e.length;)ei(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":$_(n)}function $_(e){ei(e);const t=e.codePointAt(0)===47;let n=W_(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function W_(e,t){let n="",r=0,i=-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(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==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="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length>0){n="",r=0,i=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,s=0}else l===46&&s>-1?s++:s=-1}return n}function ei(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const U_={cwd:q_};function q_(){return"/"}function Ya(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function K_(e){if(typeof e=="string")e=new URL(e);else if(!Ya(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 J_(e)}function J_(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===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 ua=["history","path","basename","stem","extname","dirname"];class G_{constructor(t){let n;t?Ya(t)?n={path:t}:typeof t=="string"||Y_(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":U_.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ua.length;){const s=ua[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)ua.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?pn.basename(this.path):void 0}set basename(t){ha(t,"basename"),ca(t,"basename"),this.path=pn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?pn.dirname(this.path):void 0}set dirname(t){th(this.basename,"dirname"),this.path=pn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?pn.extname(this.path):void 0}set extname(t){if(ca(t,"extname"),th(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=pn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ya(t)&&(t=K_(t)),ha(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?pn.basename(this.path,this.extname):void 0}set stem(t){ha(t,"stem"),ca(t,"stem"),this.path=pn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Xe(t,n,r);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 ca(e,t){if(e&&e.includes(pn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+pn.sep+"`")}function ha(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function th(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Y_(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Q_=(function(e){const r=this.constructor.prototype,i=r[e],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s}),X_={}.hasOwnProperty;class xl extends Q_{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=M_()}copy(){const t=new xl;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(la(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(fa("data",this.frozen),this.namespace[t]=n,this):X_.call(this.namespace,t)&&this.namespace[t]||void 0:t?(fa("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,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=wi(t),r=this.parser||this.Parser;return pa("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),pa("process",this.parser||this.Parser),da("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,o){const l=wi(t),u=r.parse(l);r.run(u,l,function(d,h,g){if(d||!h||!g)return c(d);const m=h,w=r.stringify(m,g);tE(w)?g.value=w:g.result=w,c(d,g)});function c(d,h){d||!h?o(d):s?s(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),pa("processSync",this.parser||this.Parser),da("processSync",this.compiler||this.Compiler),this.process(t,i),rh("processSync","process",n),r;function i(s,o){n=!0,Zc(s),r=o}}run(t,n,r){nh(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(o,l){const u=wi(n);i.run(t,u,c);function c(d,h,g){const m=h||t;d?l(d):o?o(m):r(void 0,m,g)}}}runSync(t,n){let r=!1,i;return this.run(t,n,s),rh("runSync","run",r),i;function s(o,l){Zc(o),i=l,r=!0}}stringify(t,n){this.freeze();const r=wi(n),i=this.compiler||this.Compiler;return da("stringify",i),nh(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(fa("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(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");l(c.plugins),c.settings&&(i.settings=la(!0,i.settings,c.settings))}function l(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){const h=c[d];s(h)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,d){let h=-1,g=-1;for(;++h<r.length;)if(r[h][0]===c){g=h;break}if(g===-1)r.push([c,...d]);else if(d.length>0){let[m,...w]=d;const S=r[g][1];Ga(S)&&Ga(m)&&(m=la(!0,S,m)),r[g]=[c,m,...w]}}}}const Z_=new xl().freeze();function pa(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function da(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function fa(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 nh(e){if(!Ga(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function rh(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function wi(e){return eE(e)?e:new G_(e)}function eE(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function tE(e){return typeof e=="string"||nE(e)}function nE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const rE=Z_().use(_S).use(D_).freeze();function iE(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function sE(e,t,n){const i=Ps((n||{}).ignore||[]),s=aE(t);let o=-1;for(;++o<s.length;)hg(e,"text",l);function l(c,d){let h=-1,g;for(;++h<d.length;){const m=d[h],w=g?g.children:void 0;if(i(m,w?w.indexOf(m):void 0,g))return;g=m}if(g)return u(c,d)}function u(c,d){const h=d[d.length-1],g=s[o][0],m=s[o][1];let w=0;const y=h.children.indexOf(c);let k=!1,v=[];g.lastIndex=0;let _=g.exec(c.value);for(;_;){const A=_.index,x={index:_.index,input:_.input,stack:[...d,c]};let f=m(..._,x);if(typeof f=="string"&&(f=f.length>0?{type:"text",value:f}:void 0),f===!1?g.lastIndex=A+1:(w!==A&&v.push({type:"text",value:c.value.slice(w,A)}),Array.isArray(f)?v.push(...f):f&&v.push(f),w=A+_[0].length,k=!0),!g.global)break;_=g.exec(c.value)}return k?(w<c.value.length&&v.push({type:"text",value:c.value.slice(w)}),h.children.splice(y,1,...v)):v=[c],y+v.length}}function aE(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 r=-1;for(;++r<n.length;){const i=n[r];t.push([oE(i[0]),lE(i[1])])}return t}function oE(e){return typeof e=="string"?new RegExp(iE(e),"g"):e}function lE(e){return typeof e=="function"?e:function(){return e}}const ga="phrasing",ma=["autolink","link","image","label"];function uE(){return{transforms:[mE],enter:{literalAutolink:hE,literalAutolinkEmail:xa,literalAutolinkHttp:xa,literalAutolinkWww:xa},exit:{literalAutolink:gE,literalAutolinkEmail:fE,literalAutolinkHttp:pE,literalAutolinkWww:dE}}}function cE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ga,notInConstruct:ma},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ga,notInConstruct:ma},{character:":",before:"[ps]",after:"\\/",inConstruct:ga,notInConstruct:ma}]}}function hE(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function xa(e){this.config.enter.autolinkProtocol.call(this,e)}function pE(e){this.config.exit.autolinkProtocol.call(this,e)}function dE(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 fE(e){this.config.exit.autolinkEmail.call(this,e)}function gE(e){this.exit(e)}function mE(e){sE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,xE],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),vE]],{ignore:["link","linkReference"]})}function xE(e,t,n,r,i){let s="";if(!_g(i)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!bE(n)))return!1;const o=yE(n+r);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 vE(e,t,n,r){return!_g(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function bE(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 yE(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=ns(e,"(");let s=ns(e,")");for(;r!==-1&&i>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function _g(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Nt(n)||Ns(n))&&(!t||n!==47)}Eg.peek=TE;function wE(){this.buffer()}function kE(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function SE(){this.buffer()}function _E(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function EE(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ln(this.sliceSerialize(e)).toLowerCase(),n.label=t}function IE(e){this.exit(e)}function CE(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ln(this.sliceSerialize(e)).toLowerCase(),n.label=t}function AE(e){this.exit(e)}function TE(){return"["}function Eg(e,t,n,r){const i=n.createTracker(r);let s=i.move("[^");const o=n.enter("footnoteReference"),l=n.enter("reference");return s+=i.move(n.safe(n.associationId(e),{after:"]",before:s})),l(),o(),s+=i.move("]"),s}function NE(){return{enter:{gfmFootnoteCallString:wE,gfmFootnoteCall:kE,gfmFootnoteDefinitionLabelString:SE,gfmFootnoteDefinition:_E},exit:{gfmFootnoteCallString:EE,gfmFootnoteCall:IE,gfmFootnoteDefinitionLabelString:CE,gfmFootnoteDefinition:AE}}}function OE(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Eg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,s,o){const l=s.createTracker(o);let u=l.move("[^");const c=s.enter("footnoteDefinition"),d=s.enter("label");return u+=l.move(s.safe(s.associationId(r),{before:u,after:"]"})),d(),u+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),u+=l.move((t?`
115
+ `:" ")+s.indentLines(s.containerFlow(r,l.current()),t?Ig:PE))),c(),u}}function PE(e,t,n){return t===0?e:Ig(e,t,n)}function Ig(e,t,n){return(n?"":" ")+e}const RE=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Cg.peek=jE;function DE(){return{canContainEols:["delete"],enter:{strikethrough:VE},exit:{strikethrough:ME}}}function LE(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:RE}],handlers:{delete:Cg}}}function VE(e){this.enter({type:"delete",children:[]},e)}function ME(e){this.exit(e)}function Cg(e,t,n,r){const i=n.createTracker(r),s=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),s(),o}function jE(){return"~"}function FE(e){return e.length}function zE(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||FE,s=[],o=[],l=[],u=[];let c=0,d=-1;for(;++d<e.length;){const S=[],y=[];let k=-1;for(e[d].length>c&&(c=e[d].length);++k<e[d].length;){const v=BE(e[d][k]);if(n.alignDelimiters!==!1){const _=i(v);y[k]=_,(u[k]===void 0||_>u[k])&&(u[k]=_)}S.push(v)}o[d]=S,l[d]=y}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<c;)s[h]=ih(r[h]);else{const S=ih(r);for(;++h<c;)s[h]=S}h=-1;const g=[],m=[];for(;++h<c;){const S=s[h];let y="",k="";S===99?(y=":",k=":"):S===108?y=":":S===114&&(k=":");let v=n.alignDelimiters===!1?1:Math.max(1,u[h]-y.length-k.length);const _=y+"-".repeat(v)+k;n.alignDelimiters!==!1&&(v=y.length+v+k.length,v>u[h]&&(u[h]=v),m[h]=v),g[h]=_}o.splice(1,0,g),l.splice(1,0,m),d=-1;const w=[];for(;++d<o.length;){const S=o[d],y=l[d];h=-1;const k=[];for(;++h<c;){const v=S[h]||"";let _="",A="";if(n.alignDelimiters!==!1){const x=u[h]-(y[h]||0),f=s[h];f===114?_=" ".repeat(x):f===99?x%2?(_=" ".repeat(x/2+.5),A=" ".repeat(x/2-.5)):(_=" ".repeat(x/2),A=_):A=" ".repeat(x)}n.delimiterStart!==!1&&!h&&k.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&v==="")&&(n.delimiterStart!==!1||h)&&k.push(" "),n.alignDelimiters!==!1&&k.push(_),k.push(v),n.alignDelimiters!==!1&&k.push(A),n.padding!==!1&&k.push(" "),(n.delimiterEnd!==!1||h!==c-1)&&k.push("|")}w.push(n.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return w.join(`
116
+ `)}function BE(e){return e==null?"":String(e)}function ih(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 HE(){return{enter:{table:$E,tableData:sh,tableHeader:sh,tableRow:UE},exit:{codeText:qE,table:WE,tableData:va,tableHeader:va,tableRow:va}}}function $E(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 WE(e){this.exit(e),this.data.inTable=void 0}function UE(e){this.enter({type:"tableRow",children:[]},e)}function va(e){this.exit(e)}function sh(e){this.enter({type:"tableCell",children:[]},e)}function qE(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,KE));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function KE(e,t){return t==="|"?t:e}function JE(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
117
117
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:g,table:o,tableCell:u,tableRow:l}};function o(m,w,S,y){return c(d(m,S,y),m.align)}function l(m,w,S,y){const k=h(m,S,y),v=c([k]);return v.slice(0,v.indexOf(`
118
- `))}function u(m,w,S,y){const k=S.enter("tableCell"),v=S.enter("phrasing"),_=S.containerPhrasing(m,{...y,before:s,after:s});return v(),k(),_}function c(m,w){return FE(m,{align:w,alignDelimiters:r,padding:n,stringLength:i})}function d(m,w,S){const y=m.children;let k=-1;const v=[],_=w.enter("table");for(;++k<y.length;)v[k]=h(y[k],w,S);return _(),v}function h(m,w,S){const y=m.children;let k=-1;const v=[],_=w.enter("tableRow");for(;++k<y.length;)v[k]=u(y[k],m,w,S);return _(),v}function g(m,w,S){let y=ml.inlineCode(m,w,S);return S.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function JE(){return{exit:{taskListCheckValueChecked:ah,taskListCheckValueUnchecked:ah,paragraph:YE}}}function GE(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:QE}}}function ah(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function YE(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 r=n.children[0];if(r&&r.type==="text"){const i=t.children;let s=-1,o;for(;++s<i.length;){const l=i[s];if(l.type==="paragraph"){o=l;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function QE(e,t,n,r){const i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);s&&l.move(o);let u=ml.listItem(e,t,n,{...r,...l.current()});return s&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(d){return d+o}}function XE(){return[lE(),TE(),RE(),BE(),JE()]}function ZE(e){return{extensions:[uE(),NE(e),DE(),KE(e),GE()]}}const eI={tokenize:aI,partial:!0},Ag={tokenize:oI,partial:!0},Tg={tokenize:lI,partial:!0},Ng={tokenize:uI,partial:!0},tI={tokenize:cI,partial:!0},Og={name:"wwwAutolink",tokenize:iI,previous:Rg},Pg={name:"protocolAutolink",tokenize:sI,previous:Dg},An={name:"emailAutolink",tokenize:rI,previous:Lg},vn={};function nI(){return{text:vn}}let Wn=48;for(;Wn<123;)vn[Wn]=An,Wn++,Wn===58?Wn=65:Wn===91&&(Wn=97);vn[43]=An;vn[45]=An;vn[46]=An;vn[95]=An;vn[72]=[An,Pg];vn[104]=[An,Pg];vn[87]=[An,Og];vn[119]=[An,Og];function rI(e,t,n){const r=this;let i,s;return o;function o(h){return!Qa(h)||!Lg.call(r,r.previous)||vl(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(h))}function l(h){return Qa(h)?(e.consume(h),l):h===64?(e.consume(h),u):n(h)}function u(h){return h===46?e.check(tI,d,c)(h):h===45||h===95||Bt(h)?(s=!0,e.consume(h),u):d(h)}function c(h){return e.consume(h),i=!0,u}function d(h){return s&&i&&Ct(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function iI(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!Rg.call(r,r.previous)||vl(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(eI,e.attempt(Ag,e.attempt(Tg,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function sI(e,t,n){const r=this;let i="",s=!1;return o;function o(h){return(h===72||h===104)&&Dg.call(r,r.previous)&&!vl(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(h),e.consume(h),l):n(h)}function l(h){if(Ct(h)&&i.length<5)return i+=String.fromCodePoint(h),e.consume(h),l;if(h===58){const g=i.toLowerCase();if(g==="http"||g==="https")return e.consume(h),u}return n(h)}function u(h){return h===47?(e.consume(h),s?c:(s=!0,u)):n(h)}function c(h){return h===null||os(h)||Ge(h)||Nt(h)||Ns(h)?n(h):e.attempt(Ag,e.attempt(Tg,d),n)(h)}function d(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function aI(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function oI(e,t,n){let r,i,s;return o;function o(c){return c===46||c===95?e.check(Ng,u,l)(c):c===null||Ge(c)||Nt(c)||c!==45&&Ns(c)?u(c):(s=!0,e.consume(c),o)}function l(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function u(c){return i||r||!s?n(c):t(c)}}function lI(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<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(Ng,t,s)(o):o===null||Ge(o)||Nt(o)?t(o):(e.consume(o),i)}function s(o){return o===41&&r++,e.consume(o),i}}function uI(e,t,n){return r;function r(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),r):l===38?(e.consume(l),s):l===93?(e.consume(l),i):l===60||l===null||Ge(l)||Nt(l)?t(l):n(l)}function i(l){return l===null||l===40||l===91||Ge(l)||Nt(l)?t(l):r(l)}function s(l){return Ct(l)?o(l):n(l)}function o(l){return l===59?(e.consume(l),r):Ct(l)?(e.consume(l),o):n(l)}}function cI(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return Bt(s)?n(s):t(s)}}function Rg(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ge(e)}function Dg(e){return!Ct(e)}function Lg(e){return!(e===47||Qa(e))}function Qa(e){return e===43||e===45||e===46||e===95||Bt(e)}function vl(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const hI={tokenize:bI,partial:!0};function pI(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:mI,continuation:{tokenize:xI},exit:vI}},text:{91:{name:"gfmFootnoteCall",tokenize:gI},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:dI,resolveTo:fI}}}}function dI(e,t,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.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 l;function l(u){if(!o||!o._balanced)return n(u);const c=ln(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!s.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function fI(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 r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.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",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function gI(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.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",c)}function c(h){if(s>999||h===93&&!o||h===null||h===91||Ge(h))return n(h);if(h===93){e.exit("chunkString");const g=e.exit("gfmFootnoteCallString");return i.includes(ln(r.sliceSerialize(g)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return Ge(h)||(o=!0),s++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,c):c(h)}}function mI(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,o=0,l;return u;function u(w){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(w){return w===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(w)}function d(w){if(o>999||w===93&&!l||w===null||w===91||Ge(w))return n(w);if(w===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return s=ln(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return Ge(w)||(l=!0),o++,e.consume(w),w===92?h:d}function h(w){return w===91||w===92||w===93?(e.consume(w),o++,d):d(w)}function g(w){return w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),i.includes(s)||i.push(s),$e(e,m,"gfmFootnoteDefinitionWhitespace")):n(w)}function m(w){return t(w)}}function xI(e,t,n){return e.check(_r,t,e.attempt(hI,t,n))}function vI(e){e.exit("gfmFootnoteDefinition")}function bI(e,t,n){const r=this;return $e(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function yI(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,l){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)},g=[["enter",d,l],["enter",o[c][1],l],["exit",o[c][1],l],["enter",h,l]],m=l.parser.constructs.insideSpan.null;m&&Ut(g,g.length,0,Os(m,o.slice(c+1,u),l)),Ut(g,g.length,0,[["exit",h,l],["enter",o[u][1],l],["exit",o[u][1],l],["exit",d,l]]),Ut(o,c-1,u-c+3,g),u=c+g.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 c=this.previous,d=this.events;let h=0;return g;function g(w){return c===126&&d[d.length-1][1].type!=="characterEscape"?u(w):(o.enter("strikethroughSequenceTemporary"),m(w))}function m(w){const S=gr(c);if(w===126)return h>1?u(w):(o.consume(w),h++,m);if(h<2&&!n)return u(w);const y=o.exit("strikethroughSequenceTemporary"),k=gr(w);return y._open=!k||k===2&&!!S,y._close=!S||S===2&&!!k,l(w)}}}class wI{constructor(){this.map=[]}add(t,n,r){kI(this,t,n,r)}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 r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const s of i)t.push(s);i=r.pop()}this.map.length=0}}function kI(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function SI(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function _I(){return{flow:{null:{name:"table",tokenize:EI,resolveAll:II}}}}function EI(e,t,n){const r=this;let i=0,s=0,o;return l;function l(N){let $=r.events.length-1;for(;$>-1;){const Y=r.events[$][1].type;if(Y==="lineEnding"||Y==="linePrefix")$--;else break}const U=$>-1?r.events[$][1].type:null,J=U==="tableHead"||U==="tableRow"?f:u;return J===f&&r.parser.lazy[r.now().line]?n(N):J(N)}function u(N){return e.enter("tableHead"),e.enter("tableRow"),c(N)}function c(N){return N===124||(o=!0,s+=1),d(N)}function d(N){return N===null?n(N):Ee(N)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),m):n(N):je(N)?$e(e,d,"whitespace")(N):(s+=1,o&&(o=!1,i+=1),N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),h(N)))}function h(N){return N===null||N===124||Ge(N)?(e.exit("data"),d(N)):(e.consume(N),N===92?g:h)}function g(N){return N===92||N===124?(e.consume(N),h):h(N)}function m(N){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(N):(e.enter("tableDelimiterRow"),o=!1,je(N)?$e(e,w,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):w(N))}function w(N){return N===45||N===58?y(N):N===124?(o=!0,e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),S):x(N)}function S(N){return je(N)?$e(e,y,"whitespace")(N):y(N)}function y(N){return N===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),k):N===45?(s+=1,k(N)):N===null||Ee(N)?A(N):x(N)}function k(N){return N===45?(e.enter("tableDelimiterFiller"),v(N)):x(N)}function v(N){return N===45?(e.consume(N),v):N===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(N))}function _(N){return je(N)?$e(e,A,"whitespace")(N):A(N)}function A(N){return N===124?w(N):N===null||Ee(N)?!o||i!==s?x(N):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(N)):x(N)}function x(N){return n(N)}function f(N){return e.enter("tableRow"),R(N)}function R(N){return N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),R):N===null||Ee(N)?(e.exit("tableRow"),t(N)):je(N)?$e(e,R,"whitespace")(N):(e.enter("data"),V(N))}function V(N){return N===null||N===124||Ge(N)?(e.exit("data"),R(N)):(e.consume(N),N===92?L:V)}function L(N){return N===92||N===124?(e.consume(N),V):V(N)}}function II(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],l=!1,u=0,c,d,h;const g=new wI;for(;++n<e.length;){const m=e[n],w=m[1];m[0]==="enter"?w.type==="tableHead"?(l=!1,u!==0&&(oh(g,t,u,c,d),d=void 0,u=0),c={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},g.add(n,0,[["enter",c,t]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(r=!0,h=void 0,s=[0,0,0,0],o=[0,n+1,0,0],l&&(l=!1,d={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},g.add(n,0,[["enter",d,t]])),i=w.type==="tableDelimiterRow"?2:d?3:1):i&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],h=ki(g,t,s,i,void 0,h),s=[0,0,0,0]),o[2]=n)):w.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],h=ki(g,t,s,i,void 0,h)),s=o,o=[s[1],n,0,0])):w.type==="tableHead"?(l=!0,u=n):w.type==="tableRow"||w.type==="tableDelimiterRow"?(u=n,s[1]!==0?(o[0]=o[1],h=ki(g,t,s,i,n,h)):o[1]!==0&&(h=ki(g,t,o,i,n,h)),i=0):i&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(o[3]=n)}for(u!==0&&oh(g,t,u,c,d),g.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=SI(t.events,n))}return e}function ki(e,t,n,r,i,s){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(s.end=Object.assign({},or(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const u=or(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 c=or(t.events,n[2]),d=or(t.events,n[3]),h={type:l,start:Object.assign({},c),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const g=t.events[n[2]],m=t.events[n[3]];if(g[1].end=Object.assign({},m[1].end),g[1].type="chunkText",g[1].contentType="text",n[3]>n[2]+1){const w=n[2]+1,S=n[3]-n[2]-1;e.add(w,S,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return i!==void 0&&(s.end=Object.assign({},or(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function oh(e,t,n,r,i){const s=[],o=or(t.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,t])),r.end=Object.assign({},o),s.push(["exit",r,t]),e.add(n+1,0,s)}function or(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const CI={name:"tasklistCheck",tokenize:TI};function AI(){return{text:{91:CI}}}function TI(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),s)}function s(u){return Ge(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 Ee(u)?t(u):je(u)?e.check({tokenize:NI},t,n)(u):n(u)}}function NI(e,t,n){return $e(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function OI(e){return dl([nI(),pI(),yI(e),_I(),AI()])}const PI={};function RI(e){const t=this,n=e||PI,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(OI(n)),s.push(XE()),o.push(ZE(n))}const Vg=async()=>(await ve.getNodeInfo({verb:ve.DesignerRequestVerb.GET_INFO,path:"WebForms"})).filter(t=>t.ext==="WebForm"),Xa=(e,t,n)=>{let r=[];return Array.isArray(e)?e.forEach((i,s)=>{r=r.concat(Xa(i,`${t}.[${s}]`,n))}):xe.isObject(e)?xe.has(e,n)?r.push(`${t}.${n}`):Object.entries(e).forEach(([s,o])=>{r=r.concat(Xa(o,`${t}.${s}`,n))}):t===n&&r.push(n),r},DI=()=>new Date().toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit"}),lh=e=>{const t=/[",\n\r]/.test(e);let n=e.replace(/"/g,'""');return t&&(n=`"${n}"`),n},LI=(e,t,n)=>{let r="";const i=[...t],s=()=>i.map(d=>""),o=(d,h,g)=>{const m=i.findIndex(w=>w===h);m<0?(d.push(g),i.push(h)):d[m]=g},l=d=>d.join(n)+`
119
- `,{webforms:u,i18n:c}=e;return u&&Object.keys(u).forEach(h=>{const g=xe.get(u,`${h}`);Object.keys(g).forEach(w=>{const{props:S,resolverName:y}=xe.get(g,w);Array.isArray(S)&&S.forEach(({__dataPath:k,__default:v,..._})=>{const A=s();o(A,"keys",`webforms.${h}.${w}.${k}`),o(A,"__t",lh(v)),o(A,"resolverName",y),Object.keys(_).forEach(x=>{let f=x;x.startsWith("states:")&&(f=x.replace("states:",""),f=f.replace("i18n:","")),o(A,f,lh(_[x]))}),r+=l(A)})})}),c&&Object.keys(c).forEach(h=>{const g=xe.get(c,h);g&&Object.keys(g).forEach(w=>{const S=xe.get(g,w),y=s();o(y,"keys",`i18n.${h}.${w}`),o(y,w==="default"?"key_default":w,S),r+=l(y)})}),l(i)+r},Si=(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},_i={datasource:e=>{const{datasource:t,dsType:n,format:r,children:i}=e;let s,o="";return i&&i[0]&&(s=i[0],o=`<ds datasource='${t}' dsType='${n}' format='${r}'>${Si(s.text,s)}</ds>`),o},link:e=>{const{url:t,target:n,datasource:r,isDatasource:i,children:s}=e;let o="";if(s&&s[0]){const{text:l,...u}=s[0];o=`<link datasource='${r}' isDatasource='${i}' url='${t}' target='${n}'>${Si(l,u)}</link>`}return o},i18n:e=>{const{children:t,__i18n:n}=e;let r="";if(t&&t[0]){const{text:i,...s}=t[0];r=`<i18n __i18n='${n}'>${Si(i,s)}</i18n>`}return r},defaultElement:e=>{const{text:t}=e;return Si(t,e)}},VI=e=>{const{type:t,text:n}=e;if(!t&&!n)return"<e/>";switch(t){case"datasource":return _i.datasource(e);case"link":return _i.link(e);case"i18n":return _i.i18n(e);default:return _i.defaultElement(e)}},MI=e=>e.map(t=>{const{children:n}=t;return n?n.map(r=>VI(r)).join(""):""}).filter(Boolean).join(`
118
+ `))}function u(m,w,S,y){const k=S.enter("tableCell"),v=S.enter("phrasing"),_=S.containerPhrasing(m,{...y,before:s,after:s});return v(),k(),_}function c(m,w){return zE(m,{align:w,alignDelimiters:r,padding:n,stringLength:i})}function d(m,w,S){const y=m.children;let k=-1;const v=[],_=w.enter("table");for(;++k<y.length;)v[k]=h(y[k],w,S);return _(),v}function h(m,w,S){const y=m.children;let k=-1;const v=[],_=w.enter("tableRow");for(;++k<y.length;)v[k]=u(y[k],m,w,S);return _(),v}function g(m,w,S){let y=ml.inlineCode(m,w,S);return S.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function GE(){return{exit:{taskListCheckValueChecked:ah,taskListCheckValueUnchecked:ah,paragraph:QE}}}function YE(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:XE}}}function ah(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function QE(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 r=n.children[0];if(r&&r.type==="text"){const i=t.children;let s=-1,o;for(;++s<i.length;){const l=i[s];if(l.type==="paragraph"){o=l;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function XE(e,t,n,r){const i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);s&&l.move(o);let u=ml.listItem(e,t,n,{...r,...l.current()});return s&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(d){return d+o}}function ZE(){return[uE(),NE(),DE(),HE(),GE()]}function eI(e){return{extensions:[cE(),OE(e),LE(),JE(e),YE()]}}const tI={tokenize:oI,partial:!0},Ag={tokenize:lI,partial:!0},Tg={tokenize:uI,partial:!0},Ng={tokenize:cI,partial:!0},nI={tokenize:hI,partial:!0},Og={name:"wwwAutolink",tokenize:sI,previous:Rg},Pg={name:"protocolAutolink",tokenize:aI,previous:Dg},An={name:"emailAutolink",tokenize:iI,previous:Lg},vn={};function rI(){return{text:vn}}let Wn=48;for(;Wn<123;)vn[Wn]=An,Wn++,Wn===58?Wn=65:Wn===91&&(Wn=97);vn[43]=An;vn[45]=An;vn[46]=An;vn[95]=An;vn[72]=[An,Pg];vn[104]=[An,Pg];vn[87]=[An,Og];vn[119]=[An,Og];function iI(e,t,n){const r=this;let i,s;return o;function o(h){return!Qa(h)||!Lg.call(r,r.previous)||vl(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(h))}function l(h){return Qa(h)?(e.consume(h),l):h===64?(e.consume(h),u):n(h)}function u(h){return h===46?e.check(nI,d,c)(h):h===45||h===95||Bt(h)?(s=!0,e.consume(h),u):d(h)}function c(h){return e.consume(h),i=!0,u}function d(h){return s&&i&&Ct(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function sI(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!Rg.call(r,r.previous)||vl(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(tI,e.attempt(Ag,e.attempt(Tg,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function aI(e,t,n){const r=this;let i="",s=!1;return o;function o(h){return(h===72||h===104)&&Dg.call(r,r.previous)&&!vl(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(h),e.consume(h),l):n(h)}function l(h){if(Ct(h)&&i.length<5)return i+=String.fromCodePoint(h),e.consume(h),l;if(h===58){const g=i.toLowerCase();if(g==="http"||g==="https")return e.consume(h),u}return n(h)}function u(h){return h===47?(e.consume(h),s?c:(s=!0,u)):n(h)}function c(h){return h===null||os(h)||Ge(h)||Nt(h)||Ns(h)?n(h):e.attempt(Ag,e.attempt(Tg,d),n)(h)}function d(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function oI(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function lI(e,t,n){let r,i,s;return o;function o(c){return c===46||c===95?e.check(Ng,u,l)(c):c===null||Ge(c)||Nt(c)||c!==45&&Ns(c)?u(c):(s=!0,e.consume(c),o)}function l(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function u(c){return i||r||!s?n(c):t(c)}}function uI(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<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(Ng,t,s)(o):o===null||Ge(o)||Nt(o)?t(o):(e.consume(o),i)}function s(o){return o===41&&r++,e.consume(o),i}}function cI(e,t,n){return r;function r(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),r):l===38?(e.consume(l),s):l===93?(e.consume(l),i):l===60||l===null||Ge(l)||Nt(l)?t(l):n(l)}function i(l){return l===null||l===40||l===91||Ge(l)||Nt(l)?t(l):r(l)}function s(l){return Ct(l)?o(l):n(l)}function o(l){return l===59?(e.consume(l),r):Ct(l)?(e.consume(l),o):n(l)}}function hI(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return Bt(s)?n(s):t(s)}}function Rg(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ge(e)}function Dg(e){return!Ct(e)}function Lg(e){return!(e===47||Qa(e))}function Qa(e){return e===43||e===45||e===46||e===95||Bt(e)}function vl(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const pI={tokenize:yI,partial:!0};function dI(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:xI,continuation:{tokenize:vI},exit:bI}},text:{91:{name:"gfmFootnoteCall",tokenize:mI},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:fI,resolveTo:gI}}}}function fI(e,t,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.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 l;function l(u){if(!o||!o._balanced)return n(u);const c=ln(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!s.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function gI(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 r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.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",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function mI(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.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",c)}function c(h){if(s>999||h===93&&!o||h===null||h===91||Ge(h))return n(h);if(h===93){e.exit("chunkString");const g=e.exit("gfmFootnoteCallString");return i.includes(ln(r.sliceSerialize(g)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return Ge(h)||(o=!0),s++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,c):c(h)}}function xI(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,o=0,l;return u;function u(w){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(w){return w===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(w)}function d(w){if(o>999||w===93&&!l||w===null||w===91||Ge(w))return n(w);if(w===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return s=ln(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return Ge(w)||(l=!0),o++,e.consume(w),w===92?h:d}function h(w){return w===91||w===92||w===93?(e.consume(w),o++,d):d(w)}function g(w){return w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),i.includes(s)||i.push(s),$e(e,m,"gfmFootnoteDefinitionWhitespace")):n(w)}function m(w){return t(w)}}function vI(e,t,n){return e.check(_r,t,e.attempt(pI,t,n))}function bI(e){e.exit("gfmFootnoteDefinition")}function yI(e,t,n){const r=this;return $e(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function wI(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,l){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)},g=[["enter",d,l],["enter",o[c][1],l],["exit",o[c][1],l],["enter",h,l]],m=l.parser.constructs.insideSpan.null;m&&Ut(g,g.length,0,Os(m,o.slice(c+1,u),l)),Ut(g,g.length,0,[["exit",h,l],["enter",o[u][1],l],["exit",o[u][1],l],["exit",d,l]]),Ut(o,c-1,u-c+3,g),u=c+g.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 c=this.previous,d=this.events;let h=0;return g;function g(w){return c===126&&d[d.length-1][1].type!=="characterEscape"?u(w):(o.enter("strikethroughSequenceTemporary"),m(w))}function m(w){const S=gr(c);if(w===126)return h>1?u(w):(o.consume(w),h++,m);if(h<2&&!n)return u(w);const y=o.exit("strikethroughSequenceTemporary"),k=gr(w);return y._open=!k||k===2&&!!S,y._close=!S||S===2&&!!k,l(w)}}}class kI{constructor(){this.map=[]}add(t,n,r){SI(this,t,n,r)}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 r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const s of i)t.push(s);i=r.pop()}this.map.length=0}}function SI(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function _I(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function EI(){return{flow:{null:{name:"table",tokenize:II,resolveAll:CI}}}}function II(e,t,n){const r=this;let i=0,s=0,o;return l;function l(N){let $=r.events.length-1;for(;$>-1;){const Y=r.events[$][1].type;if(Y==="lineEnding"||Y==="linePrefix")$--;else break}const U=$>-1?r.events[$][1].type:null,J=U==="tableHead"||U==="tableRow"?f:u;return J===f&&r.parser.lazy[r.now().line]?n(N):J(N)}function u(N){return e.enter("tableHead"),e.enter("tableRow"),c(N)}function c(N){return N===124||(o=!0,s+=1),d(N)}function d(N){return N===null?n(N):Ee(N)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),m):n(N):je(N)?$e(e,d,"whitespace")(N):(s+=1,o&&(o=!1,i+=1),N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),h(N)))}function h(N){return N===null||N===124||Ge(N)?(e.exit("data"),d(N)):(e.consume(N),N===92?g:h)}function g(N){return N===92||N===124?(e.consume(N),h):h(N)}function m(N){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(N):(e.enter("tableDelimiterRow"),o=!1,je(N)?$e(e,w,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):w(N))}function w(N){return N===45||N===58?y(N):N===124?(o=!0,e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),S):x(N)}function S(N){return je(N)?$e(e,y,"whitespace")(N):y(N)}function y(N){return N===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),k):N===45?(s+=1,k(N)):N===null||Ee(N)?A(N):x(N)}function k(N){return N===45?(e.enter("tableDelimiterFiller"),v(N)):x(N)}function v(N){return N===45?(e.consume(N),v):N===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(N))}function _(N){return je(N)?$e(e,A,"whitespace")(N):A(N)}function A(N){return N===124?w(N):N===null||Ee(N)?!o||i!==s?x(N):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(N)):x(N)}function x(N){return n(N)}function f(N){return e.enter("tableRow"),R(N)}function R(N){return N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),R):N===null||Ee(N)?(e.exit("tableRow"),t(N)):je(N)?$e(e,R,"whitespace")(N):(e.enter("data"),V(N))}function V(N){return N===null||N===124||Ge(N)?(e.exit("data"),R(N)):(e.consume(N),N===92?L:V)}function L(N){return N===92||N===124?(e.consume(N),V):V(N)}}function CI(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],l=!1,u=0,c,d,h;const g=new kI;for(;++n<e.length;){const m=e[n],w=m[1];m[0]==="enter"?w.type==="tableHead"?(l=!1,u!==0&&(oh(g,t,u,c,d),d=void 0,u=0),c={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},g.add(n,0,[["enter",c,t]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(r=!0,h=void 0,s=[0,0,0,0],o=[0,n+1,0,0],l&&(l=!1,d={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},g.add(n,0,[["enter",d,t]])),i=w.type==="tableDelimiterRow"?2:d?3:1):i&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],h=ki(g,t,s,i,void 0,h),s=[0,0,0,0]),o[2]=n)):w.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],h=ki(g,t,s,i,void 0,h)),s=o,o=[s[1],n,0,0])):w.type==="tableHead"?(l=!0,u=n):w.type==="tableRow"||w.type==="tableDelimiterRow"?(u=n,s[1]!==0?(o[0]=o[1],h=ki(g,t,s,i,n,h)):o[1]!==0&&(h=ki(g,t,o,i,n,h)),i=0):i&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(o[3]=n)}for(u!==0&&oh(g,t,u,c,d),g.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=_I(t.events,n))}return e}function ki(e,t,n,r,i,s){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(s.end=Object.assign({},or(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const u=or(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 c=or(t.events,n[2]),d=or(t.events,n[3]),h={type:l,start:Object.assign({},c),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const g=t.events[n[2]],m=t.events[n[3]];if(g[1].end=Object.assign({},m[1].end),g[1].type="chunkText",g[1].contentType="text",n[3]>n[2]+1){const w=n[2]+1,S=n[3]-n[2]-1;e.add(w,S,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return i!==void 0&&(s.end=Object.assign({},or(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function oh(e,t,n,r,i){const s=[],o=or(t.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,t])),r.end=Object.assign({},o),s.push(["exit",r,t]),e.add(n+1,0,s)}function or(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const AI={name:"tasklistCheck",tokenize:NI};function TI(){return{text:{91:AI}}}function NI(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),s)}function s(u){return Ge(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 Ee(u)?t(u):je(u)?e.check({tokenize:OI},t,n)(u):n(u)}}function OI(e,t,n){return $e(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function PI(e){return dl([rI(),dI(),wI(e),EI(),TI()])}const RI={};function DI(e){const t=this,n=e||RI,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(PI(n)),s.push(ZE()),o.push(eI(n))}const Vg=async()=>(await ve.getNodeInfo({verb:ve.DesignerRequestVerb.GET_INFO,path:"WebForms"})).filter(t=>t.ext==="WebForm"),Xa=(e,t,n)=>{let r=[];return Array.isArray(e)?e.forEach((i,s)=>{r=r.concat(Xa(i,`${t}.[${s}]`,n))}):xe.isObject(e)?xe.has(e,n)?r.push(`${t}.${n}`):Object.entries(e).forEach(([s,o])=>{r=r.concat(Xa(o,`${t}.${s}`,n))}):t===n&&r.push(n),r},LI=()=>new Date().toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit"}),lh=e=>{const t=/[",\n\r]/.test(e);let n=e.replace(/"/g,'""');return t&&(n=`"${n}"`),n},VI=(e,t,n)=>{let r="";const i=[...t],s=()=>i.map(d=>""),o=(d,h,g)=>{const m=i.findIndex(w=>w===h);m<0?(d.push(g),i.push(h)):d[m]=g},l=d=>d.join(n)+`
119
+ `,{webforms:u,i18n:c}=e;return u&&Object.keys(u).forEach(h=>{const g=xe.get(u,`${h}`);Object.keys(g).forEach(w=>{const{props:S,resolverName:y}=xe.get(g,w);Array.isArray(S)&&S.forEach(({__dataPath:k,__default:v,..._})=>{const A=s();o(A,"keys",`webforms.${h}.${w}.${k}`),o(A,"__t",lh(v)),o(A,"resolverName",y),Object.keys(_).forEach(x=>{let f=x;x.startsWith("states:")&&(f=x.replace("states:",""),f=f.replace("i18n:","")),o(A,f,lh(_[x]))}),r+=l(A)})})}),c&&Object.keys(c).forEach(h=>{const g=xe.get(c,h);g&&Object.keys(g).forEach(w=>{const S=xe.get(g,w),y=s();o(y,"keys",`i18n.${h}.${w}`),o(y,w==="default"?"key_default":w,S),r+=l(y)})}),l(i)+r},Si=(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},_i={datasource:e=>{const{datasource:t,dsType:n,format:r,children:i}=e;let s,o="";return i&&i[0]&&(s=i[0],o=`<ds datasource='${t}' dsType='${n}' format='${r}'>${Si(s.text,s)}</ds>`),o},link:e=>{const{url:t,target:n,datasource:r,isDatasource:i,children:s}=e;let o="";if(s&&s[0]){const{text:l,...u}=s[0];o=`<link datasource='${r}' isDatasource='${i}' url='${t}' target='${n}'>${Si(l,u)}</link>`}return o},i18n:e=>{const{children:t,__i18n:n}=e;let r="";if(t&&t[0]){const{text:i,...s}=t[0];r=`<i18n __i18n='${n}'>${Si(i,s)}</i18n>`}return r},defaultElement:e=>{const{text:t}=e;return Si(t,e)}},MI=e=>{const{type:t,text:n}=e;if(!t&&!n)return"<e/>";switch(t){case"datasource":return _i.datasource(e);case"link":return _i.link(e);case"i18n":return _i.i18n(e);default:return _i.defaultElement(e)}},jI=e=>e.map(t=>{const{children:n}=t;return n?n.map(r=>MI(r)).join(""):""}).filter(Boolean).join(`
120
120
 
121
- `),jI=e=>{const t=/<\/?[a-zA-Z][^>]*>/g;let n="",r=0;for(const s of e.matchAll(t)){const o=s.index,l=o+s[0].length,u=e.slice(r,o).replace(/</g,"&lt;").replace(/>/g,"&gt;");n+=u+s[0],r=l}const i=e.slice(r).replace(/</g,"&lt;").replace(/>/g,"&gt;");return n+=i,n=n.replace(/\[object Object\]/g,""),n},FI=e=>{let t="",n=!1;for(let r=0;r<e.length;r++){const i=e[r];if(i==='"')if(n)if(r+1<e.length&&e[r+1]==='"')t+='""',r++;else{let s=r+1;for(;s<e.length&&(e[s]===" "||e[s]===" ");)s++;s>=e.length||e[s]===","||e[s]===`
122
- `||e[s]==="\r"?(n=!1,t+='"'):t+='""'}else n=!0,t+='"';else t+=i}return t},ba=e=>{const t=jI(e),n=nE().use(RI,{singleTilde:!0}).use(Bk).parse(t),r=(s,o,l)=>{var h;const{type:u,value:c}=s;let d={};if(u==="root"){const{children:g}=s;return g.map(m=>r(m,o)).flat()}if(o){if(u==="list"){const{children:g}=s;return g.map(m=>r(m,d,l)).flat()}else if(u==="listItem"){const{children:g}=s;return g.map(m=>{const w=l!=null&&l.prefix?l.prefix:m.type==="list"?" - ":"* ",S=r(m,d,{prefix:w});return S.type==="paragraph"&&S.children&&(S.children.length>1?S.children=[{text:w},...S.children]:S.children=S.children.map(y=>(y.text&&(y.text=`${w}${y.text}`),y))),S}).flat()}else if(u==="paragraph"){d={type:"paragraph",children:[]};const{children:g}=s,m=g.map(w=>r(w,d));d.children=m}else if(u==="mdxJsxTextElement"){const{name:g}=s;if(g==="ds"){d={type:"datasource",children:[]};const{children:m,attributes:w}=s;if(m){const S=r(m[0],d);d.children=[S]}if(w){const S=w.reduce((y,k)=>({...y,[k.name]:k.value}),{});d={...d,...S}}}else if(g==="i18n"){d={type:"i18n",children:""};const{children:m,attributes:w}=s;if(m){const S=r(m[0],d);d.children=[S]}if(w){const S=w.reduce((y,k)=>({...y,[k.name]:k.value}),{});d={...d,...S}}}else if(g==="u"){d={underlined:!0};const{children:m}=s;if(m){const w=r(m[0],d);d={...d,...w}}}else if(g==="link"){d={type:"link",children:[]};const{children:m,attributes:w}=s;if(m){const S=r(m[0],d);d.children=[S]}if(w){const S=w.reduce((y,k)=>({...y,[k.name]:k.value}),{});d={...d,...S}}}else g==="e"&&(d={text:""})}else if(u==="text")d={text:c};else if(u==="strong"){d={bold:!0};const{children:g}=s;if(g){const m=r(g[0],d);d={...d,...m}}}else if(u==="emphasis"){d={italic:!0};const{children:g}=s;if(g){const m=r(g[0],d);d={...d,...m}}}else if(u==="delete"){d={strikethrough:!0};const{children:g}=s;if(g){const m=r(g[0],d);d={...d,...m}}}else if(u==="link"){const{children:g}=s;d={text:((h=g[0])==null?void 0:h.value)||""}}}else return;return d};return r(n,[])},zI=e=>{const[,t,n,r,...i]=e.split(".");return{webformName:t,componentId:n,propName:r,restOfPropPath:i.join(".")}},Mg=({children:e,isOpen:t,onClose:n,title:r})=>C.jsx(Ar.Transition,{appear:!0,show:t,as:D.Fragment,children:C.jsxs(Ar.Dialog,{as:"div",className:"relative z-[1000]",onClose:n,children:[C.jsx(Ar.Transition.Child,{as:D.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:C.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-75"})}),C.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:C.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:C.jsx(Ar.Transition.Child,{as:D.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:C.jsxs(Ar.Dialog.Panel,{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 transition-all",children:[C.jsxs("div",{className:"flex flex-col items-center justify-center space-y-2",children:[C.jsx(ot.FdDownload,{className:"h-6 w-6"}),C.jsx("h3",{className:"mt-4 text-sm font-bold",children:r})]}),C.jsx("div",{className:"space-y-2",children:e})]})})})})]})}),uh={DROP_EVENT_ERROR:"Not Suported File type! Only .json and .csv are Supported.",DROP_VALID_FILE:"Drop or Add a File !"},BI=({disable:e,enable:t})=>{const n=Fn(),{state:{file:r,isOpen:i,supprtedExtension:s,error:o,content:l},actions:u}=ve.useStateObject({file:null,error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],content:{}}),[c,d]=D.useState(!1),h=n.getWebformTabs(),{getRootProps:g,getInputProps:m,isDragActive:w}=Km.useDropzone({async onDropAccepted([L]){if(s.find(N=>L.name.endsWith(N))){u.setError(""),u.setFile(L);const N=await k(L),$=L.name.split(".").pop()||"";let U;try{U=R(N,$)}catch{u.setError("Invalid File");return}u.setContent(U||{});const J={type:"object",anyOf:[{required:["webforms"]},{required:["i18n"]}]};new Gm.Validator().validate(U,J).valid||u.setError("Invalid File")}else u.setError(uh.DROP_EVENT_ERROR)},accept:{"application/*":s},multiple:!1}),S=()=>{u.setFileType(""),u.setError(""),u.setFile(null)},y=()=>{u.setIsOpen(!1),S()},k=L=>new Promise(N=>{const $=new FileReader;$.onload=()=>N($.result),$.readAsText(L)}),v=async(L,N,$)=>{if($){const U=`WebForms/${N}.WebForm`;await n.actions.setTabContent({path:U,content:L.content}),ve.webformSubject.next({path:U,action:ve.WebformActions.RECOMPUTE,payload:L.content.components})}else{const U={...L};await ve.saveContent({verb:ve.DesignerRequestVerb.SAVE_CONTENT,content:U.content,path:`WebForms/${N}.WebForm`})}},_=(L,N)=>{const{content:{components:$}}=xe.cloneDeep(L);if(!$)return L;const U=(Q,Z,q,K)=>{if(Array.isArray(Q))Q.forEach((ie,E)=>{let M="";q==="Text"?M=Array.isArray(ie)?`${Z}.[${E}].children`:`${Z}.[${E}]`:M=`${Z}.[${E}]`,U(ie,M,q,K)});else if(xe.isObject(Q))if(Object.keys(Q).length>1){const E=Object.keys(Q),M={};E.forEach(T=>{const B=xe.get(Q,T);if(T==="__t")xe.set(K,`props.${Z}`,B);else if(B&&T.startsWith("states:")){const z=T.split(":"),W=z.map((F,te)=>te+1===z.length?`i18n:${F}`:F).join(":");if(!K.custom)return;xe.set(M,`${W}.${Z}`,B)}else if(B){const z=`i18n:${T}`;if(!K.custom)return;xe.set(M,`${z}.${Z}`,B)}});const[H]=Z.split(".");Object.entries(M).forEach(([T,B])=>{const z=xe.get(K,`props.${H}`,{}),W=xe.get(K,`custom.${T}.${H}`);let F="";typeof W=="string"||typeof z=="string"?F=xe.get(B,H):F=xe.merge(W||xe.cloneDeep(z),xe.get(B,H)),xe.set(K,`custom.${T}.${H}`,F)})}else{const E=Object.entries(Q)[0],M=E[0],H=E[1];Z=`${Z}.${M}`,U(H,Z,q,K)}},J=Object.entries(N);for(let Q=0;Q<J.length;Q++){const[Z,q]=J[Q],{resolverName:K,...ie}=q,E=xe.get($,Z);if(E)if(K==="Text"){const{custom:M,props:H}=ie;xe.set($,Z,{...E,props:{...E.props,...H},custom:{...E.custom,...M}})}else Object.entries(ie).forEach(([M,H])=>{const T=xe.get($,Z);if(!T)return;const B=xe.cloneDeep(T);U(H,M,K,B),xe.set($,Z,B)})}const Y=xe.cloneDeep(L);return xe.set(Y,"content.components",$),Y},A=async(L,N,$)=>{const{webforms:U,i18n:J}=L;ve.i18nSubject.next({action:"set_content",payload:J});const Y=Q=>{const Z=Q+1===N.length?N.length:Q,q=Math.ceil(Z/N.length*100);ve.tasksManagerSubject.next({id:$,action:"update",type:"i18n",payload:{progress:q,status:q>=100?"finished":"ongoing"}})};for(let Q=0;Q<N.length;Q++){const Z=N[Q],q=h.find(H=>H.name===Z.name&&H.type==="webform"),K=!!q,ie=K?q:await ve.getNodeInfo({verb:ve.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${Z.name}.${Z.ext}`,as:"json"}),{name:E}=ie;if(!U[E]){Y(Q);continue}const M=_(ie,U[E]);await v(M,E,K),Y(Q)}},x=L=>{const N=FI(L),{data:$}=Jm.parse(N),U={};let J=[];return $.forEach((Y,Q)=>{if(Q===0){J=Y;return}let Z="",q="";Y.forEach((K,ie)=>{if(ie===0)Z=K;else if(ie===1)q=K;else if(Z.startsWith("i18n")){if(xe.has(U,Z)&&xe.get(U,Z))return;xe.set(U,Z,K)}else if(K){const{webformName:E,componentId:M,propName:H}=zI(Z);if(xe.set(U,`webforms.${E}.${M}.resolverName`,q),q==="Text"){const T=ba(K),B=J[ie];B==="__t"?xe.set(U,`webforms.${E}.${M}.props.${H}`,T):xe.set(U,`webforms.${E}.${M}.custom.i18n:${B}.${H}`,T)}else{let B=J[ie];if(B.includes(":")){const z=B.split(":");B=z.map((W,F)=>F===0?`states:${W}`:F===z.length-1?`i18n:${W}`:W).join(":")}xe.set(U,`${Z}.${B}`,K)}}})}),U},f=L=>{const N=JSON.parse(L),$={},{webforms:U,i18n:J}=N;return U&&Object.keys(U).forEach(Q=>{const Z=xe.get(U,Q);Object.keys(Z).forEach(K=>{const ie=xe.get(Z,K),{props:E,resolverName:M}=ie;xe.set($,`webforms.${Q}.${K}.resolverName`,M),Array.isArray(E)&&E.forEach(({__dataPath:H,__default:T,...B})=>{if(M==="Text"){const z=ba(T);xe.set($,`webforms.${Q}.${K}.props.doc`,z),Object.keys(B).forEach(W=>{const F=ba(B[W]);xe.set($,`webforms.${Q}.${K}.custom.i18n:${W}.doc`,F)})}else xe.set($,`webforms.${Q}.${K}.${H}.__t`,T),Object.keys(B).forEach(z=>{let W=z;if(W.includes(":")){const F=W.split(":");W=F.map((te,ee)=>ee===0?`states:${te}`:ee===F.length-1?`i18n:${te}`:te).join(":")}xe.set($,`webforms.${Q}.${K}.${H}.${W}`,B[z])})})})}),J&&Object.keys(J).forEach(Q=>{const Z=xe.get(J,Q);Z&&Object.keys(Z).forEach(K=>{const ie=xe.get(Z,K);xe.set($,`i18n.${Q}.${K}`,ie)})}),$},R=(L,N)=>{switch(N){case"csv":return x(L);case"json":return f(L)}},V=async()=>{if(r){const L=no.generate().toString();try{ve.tasksManagerSubject.next({id:L,action:"add",type:"i18n",payload:{date:new Date().toISOString(),progress:0,name:"Import i18n",status:"ongoing"}});const N=await Vg();await A(l,N,L)}catch(N){ve.tasksManagerSubject.next({id:L,type:"i18n",action:"update",payload:{status:"canceled"}}),ve.tasksManagerSubject.next({id:L,type:"i18n",action:"error",payload:{errorMessage:N.message||"Import file error"}})}}};return t?C.jsxs(C.Fragment,{children:[C.jsx(At,{label:"Import",isOpen:c,children:C.jsx("button",{disabled:e,className:yt("flex h-full flex-row items-center rounded p-1 disabled:opacity-50",{"cursor-not-allowed":e},{"hover:bg-primary-hover":!e}),onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),onClick:()=>{u.setIsOpen(!0),d(!1),S()},children:C.jsx(ot.FdDownload,{className:"h-4 w-4"})})}),C.jsxs(Mg,{isOpen:i,onClose:y,title:"Import",children:[C.jsx("div",{className:"mt-4 space-y-2",children:C.jsxs("div",{...g(),children:[C.jsx("input",{...m()}),C.jsx("div",{className:yt("min-h-[100px] rounded border border-dashed text-center text-sm",{"border-purple-500":w,"flex items-center justify-center":r}),children:r?C.jsx("p",{children:r.name}):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(ot.FdDownload,{className:"mt-2 h-6 w-6 text-grey-200"})]})}),o&&C.jsx("div",{className:"flex items-center justify-center p-2",children:C.jsx("p",{className:"text-xs text-red-400",children:o})})]})}),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(ot.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:y,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:()=>{!o&&r?(u.setIsOpen(!1),V()):r||u.setError(uh.DROP_VALID_FILE)},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:"Import"})]})]})]})]}):C.jsx(C.Fragment,{})};var Ei={exports:{}},Ii={exports:{}},tt={};/** @license React v16.13.1
121
+ `),FI=e=>{const t=/<\/?[a-zA-Z][^>]*>/g;let n="",r=0;for(const s of e.matchAll(t)){const o=s.index,l=o+s[0].length,u=e.slice(r,o).replace(/</g,"&lt;").replace(/>/g,"&gt;");n+=u+s[0],r=l}const i=e.slice(r).replace(/</g,"&lt;").replace(/>/g,"&gt;");return n+=i,n=n.replace(/\[object Object\]/g,""),n},zI=e=>{let t="",n=!1;for(let r=0;r<e.length;r++){const i=e[r];if(i==='"')if(n)if(r+1<e.length&&e[r+1]==='"')t+='""',r++;else{let s=r+1;for(;s<e.length&&(e[s]===" "||e[s]===" ");)s++;s>=e.length||e[s]===","||e[s]===`
122
+ `||e[s]==="\r"?(n=!1,t+='"'):t+='""'}else n=!0,t+='"';else t+=i}return t},ba=e=>{const t=FI(e),n=rE().use(DI,{singleTilde:!0}).use(Hk).parse(t),r=(s,o,l)=>{var h;const{type:u,value:c}=s;let d={};if(u==="root"){const{children:g}=s;return g.map(m=>r(m,o)).flat()}if(o){if(u==="list"){const{children:g}=s;return g.map(m=>r(m,d,l)).flat()}else if(u==="listItem"){const{children:g}=s;return g.map(m=>{const w=l!=null&&l.prefix?l.prefix:m.type==="list"?" - ":"* ",S=r(m,d,{prefix:w});return S.type==="paragraph"&&S.children&&(S.children.length>1?S.children=[{text:w},...S.children]:S.children=S.children.map(y=>(y.text&&(y.text=`${w}${y.text}`),y))),S}).flat()}else if(u==="paragraph"){d={type:"paragraph",children:[]};const{children:g}=s,m=g.map(w=>r(w,d));d.children=m}else if(u==="mdxJsxTextElement"){const{name:g}=s;if(g==="ds"){d={type:"datasource",children:[]};const{children:m,attributes:w}=s;if(m){const S=r(m[0],d);d.children=[S]}if(w){const S=w.reduce((y,k)=>({...y,[k.name]:k.value}),{});d={...d,...S}}}else if(g==="i18n"){d={type:"i18n",children:""};const{children:m,attributes:w}=s;if(m){const S=r(m[0],d);d.children=[S]}if(w){const S=w.reduce((y,k)=>({...y,[k.name]:k.value}),{});d={...d,...S}}}else if(g==="u"){d={underlined:!0};const{children:m}=s;if(m){const w=r(m[0],d);d={...d,...w}}}else if(g==="link"){d={type:"link",children:[]};const{children:m,attributes:w}=s;if(m){const S=r(m[0],d);d.children=[S]}if(w){const S=w.reduce((y,k)=>({...y,[k.name]:k.value}),{});d={...d,...S}}}else g==="e"&&(d={text:""})}else if(u==="text")d={text:c};else if(u==="strong"){d={bold:!0};const{children:g}=s;if(g){const m=r(g[0],d);d={...d,...m}}}else if(u==="emphasis"){d={italic:!0};const{children:g}=s;if(g){const m=r(g[0],d);d={...d,...m}}}else if(u==="delete"){d={strikethrough:!0};const{children:g}=s;if(g){const m=r(g[0],d);d={...d,...m}}}else if(u==="link"){const{children:g}=s;d={text:((h=g[0])==null?void 0:h.value)||""}}}else return;return d};return r(n,[])},BI=e=>{const[,t,n,r,...i]=e.split(".");return{webformName:t,componentId:n,propName:r,restOfPropPath:i.join(".")}},bl=()=>document.querySelector(`.${io.LOCALIZATION_EDITOR_SCOPE_CLASS}`)||document.body,Mg=({container:e,...t})=>C.jsx(ve.Portal,{...t,container:e||bl()}),jg=({children:e,isOpen:t,onClose:n,title:r})=>C.jsx(Mg,{children:C.jsx(Ar.Transition,{appear:!0,show:t,as:D.Fragment,children:C.jsxs(Ar.Dialog,{as:"div",className:"relative z-[1000]",onClose:n,children:[C.jsx(Ar.Transition.Child,{as:D.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:C.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-75"})}),C.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:C.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:C.jsx(Ar.Transition.Child,{as:D.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:C.jsxs(Ar.Dialog.Panel,{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 transition-all",children:[C.jsxs("div",{className:"flex flex-col items-center justify-center space-y-2",children:[C.jsx(ot.FdDownload,{className:"h-6 w-6"}),C.jsx("h3",{className:"mt-4 text-sm font-bold",children:r})]}),C.jsx("div",{className:"space-y-2",children:e})]})})})})]})})}),uh={DROP_EVENT_ERROR:"Not Suported File type! Only .json and .csv are Supported.",DROP_VALID_FILE:"Drop or Add a File !"},HI=({disable:e,enable:t})=>{const n=Fn(),{state:{file:r,isOpen:i,supprtedExtension:s,error:o,content:l},actions:u}=ve.useStateObject({file:null,error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],content:{}}),[c,d]=D.useState(!1),h=n.getWebformTabs(),{getRootProps:g,getInputProps:m,isDragActive:w}=Jm.useDropzone({async onDropAccepted([L]){if(s.find(N=>L.name.endsWith(N))){u.setError(""),u.setFile(L);const N=await k(L),$=L.name.split(".").pop()||"";let U;try{U=R(N,$)}catch{u.setError("Invalid File");return}u.setContent(U||{});const J={type:"object",anyOf:[{required:["webforms"]},{required:["i18n"]}]};new Ym.Validator().validate(U,J).valid||u.setError("Invalid File")}else u.setError(uh.DROP_EVENT_ERROR)},accept:{"application/*":s},multiple:!1}),S=()=>{u.setFileType(""),u.setError(""),u.setFile(null)},y=()=>{u.setIsOpen(!1),S()},k=L=>new Promise(N=>{const $=new FileReader;$.onload=()=>N($.result),$.readAsText(L)}),v=async(L,N,$)=>{if($){const U=`WebForms/${N}.WebForm`;await n.actions.setTabContent({path:U,content:L.content}),ve.webformSubject.next({path:U,action:ve.WebformActions.RECOMPUTE,payload:L.content.components})}else{const U={...L};await ve.saveContent({verb:ve.DesignerRequestVerb.SAVE_CONTENT,content:U.content,path:`WebForms/${N}.WebForm`})}},_=(L,N)=>{const{content:{components:$}}=xe.cloneDeep(L);if(!$)return L;const U=(Q,Z,q,K)=>{if(Array.isArray(Q))Q.forEach((ie,E)=>{let M="";q==="Text"?M=Array.isArray(ie)?`${Z}.[${E}].children`:`${Z}.[${E}]`:M=`${Z}.[${E}]`,U(ie,M,q,K)});else if(xe.isObject(Q))if(Object.keys(Q).length>1){const E=Object.keys(Q),M={};E.forEach(T=>{const B=xe.get(Q,T);if(T==="__t")xe.set(K,`props.${Z}`,B);else if(B&&T.startsWith("states:")){const z=T.split(":"),W=z.map((F,te)=>te+1===z.length?`i18n:${F}`:F).join(":");if(!K.custom)return;xe.set(M,`${W}.${Z}`,B)}else if(B){const z=`i18n:${T}`;if(!K.custom)return;xe.set(M,`${z}.${Z}`,B)}});const[H]=Z.split(".");Object.entries(M).forEach(([T,B])=>{const z=xe.get(K,`props.${H}`,{}),W=xe.get(K,`custom.${T}.${H}`);let F="";typeof W=="string"||typeof z=="string"?F=xe.get(B,H):F=xe.merge(W||xe.cloneDeep(z),xe.get(B,H)),xe.set(K,`custom.${T}.${H}`,F)})}else{const E=Object.entries(Q)[0],M=E[0],H=E[1];Z=`${Z}.${M}`,U(H,Z,q,K)}},J=Object.entries(N);for(let Q=0;Q<J.length;Q++){const[Z,q]=J[Q],{resolverName:K,...ie}=q,E=xe.get($,Z);if(E)if(K==="Text"){const{custom:M,props:H}=ie;xe.set($,Z,{...E,props:{...E.props,...H},custom:{...E.custom,...M}})}else Object.entries(ie).forEach(([M,H])=>{const T=xe.get($,Z);if(!T)return;const B=xe.cloneDeep(T);U(H,M,K,B),xe.set($,Z,B)})}const Y=xe.cloneDeep(L);return xe.set(Y,"content.components",$),Y},A=async(L,N,$)=>{const{webforms:U,i18n:J}=L;ve.i18nSubject.next({action:"set_content",payload:J});const Y=Q=>{const Z=Q+1===N.length?N.length:Q,q=Math.ceil(Z/N.length*100);ve.tasksManagerSubject.next({id:$,action:"update",type:"i18n",payload:{progress:q,status:q>=100?"finished":"ongoing"}})};for(let Q=0;Q<N.length;Q++){const Z=N[Q],q=h.find(H=>H.name===Z.name&&H.type==="webform"),K=!!q,ie=K?q:await ve.getNodeInfo({verb:ve.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${Z.name}.${Z.ext}`,as:"json"}),{name:E}=ie;if(!U[E]){Y(Q);continue}const M=_(ie,U[E]);await v(M,E,K),Y(Q)}},x=L=>{const N=zI(L),{data:$}=Gm.parse(N),U={};let J=[];return $.forEach((Y,Q)=>{if(Q===0){J=Y;return}let Z="",q="";Y.forEach((K,ie)=>{if(ie===0)Z=K;else if(ie===1)q=K;else if(Z.startsWith("i18n")){if(xe.has(U,Z)&&xe.get(U,Z))return;xe.set(U,Z,K)}else if(K){const{webformName:E,componentId:M,propName:H}=BI(Z);if(xe.set(U,`webforms.${E}.${M}.resolverName`,q),q==="Text"){const T=ba(K),B=J[ie];B==="__t"?xe.set(U,`webforms.${E}.${M}.props.${H}`,T):xe.set(U,`webforms.${E}.${M}.custom.i18n:${B}.${H}`,T)}else{let B=J[ie];if(B.includes(":")){const z=B.split(":");B=z.map((W,F)=>F===0?`states:${W}`:F===z.length-1?`i18n:${W}`:W).join(":")}xe.set(U,`${Z}.${B}`,K)}}})}),U},f=L=>{const N=JSON.parse(L),$={},{webforms:U,i18n:J}=N;return U&&Object.keys(U).forEach(Q=>{const Z=xe.get(U,Q);Object.keys(Z).forEach(K=>{const ie=xe.get(Z,K),{props:E,resolverName:M}=ie;xe.set($,`webforms.${Q}.${K}.resolverName`,M),Array.isArray(E)&&E.forEach(({__dataPath:H,__default:T,...B})=>{if(M==="Text"){const z=ba(T);xe.set($,`webforms.${Q}.${K}.props.doc`,z),Object.keys(B).forEach(W=>{const F=ba(B[W]);xe.set($,`webforms.${Q}.${K}.custom.i18n:${W}.doc`,F)})}else xe.set($,`webforms.${Q}.${K}.${H}.__t`,T),Object.keys(B).forEach(z=>{let W=z;if(W.includes(":")){const F=W.split(":");W=F.map((te,ee)=>ee===0?`states:${te}`:ee===F.length-1?`i18n:${te}`:te).join(":")}xe.set($,`webforms.${Q}.${K}.${H}.${W}`,B[z])})})})}),J&&Object.keys(J).forEach(Q=>{const Z=xe.get(J,Q);Z&&Object.keys(Z).forEach(K=>{const ie=xe.get(Z,K);xe.set($,`i18n.${Q}.${K}`,ie)})}),$},R=(L,N)=>{switch(N){case"csv":return x(L);case"json":return f(L)}},V=async()=>{if(r){const L=no.generate().toString();try{ve.tasksManagerSubject.next({id:L,action:"add",type:"i18n",payload:{date:new Date().toISOString(),progress:0,name:"Import i18n",status:"ongoing"}});const N=await Vg();await A(l,N,L)}catch(N){ve.tasksManagerSubject.next({id:L,type:"i18n",action:"update",payload:{status:"canceled"}}),ve.tasksManagerSubject.next({id:L,type:"i18n",action:"error",payload:{errorMessage:N.message||"Import file error"}})}}};return t?C.jsxs(C.Fragment,{children:[C.jsx(At,{label:"Import",isOpen:c,children:C.jsx("button",{disabled:e,className:yt("flex h-full flex-row items-center rounded p-1 disabled:opacity-50",{"cursor-not-allowed":e},{"hover:bg-primary-hover":!e}),onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),onClick:()=>{u.setIsOpen(!0),d(!1),S()},children:C.jsx(ot.FdDownload,{className:"h-4 w-4"})})}),C.jsxs(jg,{isOpen:i,onClose:y,title:"Import",children:[C.jsx("div",{className:"mt-4 space-y-2",children:C.jsxs("div",{...g(),children:[C.jsx("input",{...m()}),C.jsx("div",{className:yt("min-h-[100px] rounded border border-dashed text-center text-sm",{"border-purple-500":w,"flex items-center justify-center":r}),children:r?C.jsx("p",{children:r.name}):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(ot.FdDownload,{className:"mt-2 h-6 w-6 text-grey-200"})]})}),o&&C.jsx("div",{className:"flex items-center justify-center p-2",children:C.jsx("p",{className:"text-xs text-red-400",children:o})})]})}),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(ot.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:y,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:()=>{!o&&r?(u.setIsOpen(!1),V()):r||u.setError(uh.DROP_VALID_FILE)},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:"Import"})]})]})]})]}):C.jsx(C.Fragment,{})};var Ei={exports:{}},Ii={exports:{}},tt={};/** @license React v16.13.1
123
123
  * react-is.production.min.js
124
124
  *
125
125
  * Copyright (c) Facebook, Inc. and its affiliates.
126
126
  *
127
127
  * This source code is licensed under the MIT license found in the
128
128
  * LICENSE file in the root directory of this source tree.
129
- */var ch;function HI(){if(ch)return tt;ch=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=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,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function _(x){if(typeof x=="object"&&x!==null){var f=x.$$typeof;switch(f){case t:switch(x=x.type,x){case u:case c:case r:case s:case i:case h:return x;default:switch(x=x&&x.$$typeof,x){case l:case d:case w:case m:case o:return x;default:return f}}case n:return f}}}function A(x){return _(x)===c}return tt.AsyncMode=u,tt.ConcurrentMode=c,tt.ContextConsumer=l,tt.ContextProvider=o,tt.Element=t,tt.ForwardRef=d,tt.Fragment=r,tt.Lazy=w,tt.Memo=m,tt.Portal=n,tt.Profiler=s,tt.StrictMode=i,tt.Suspense=h,tt.isAsyncMode=function(x){return A(x)||_(x)===u},tt.isConcurrentMode=A,tt.isContextConsumer=function(x){return _(x)===l},tt.isContextProvider=function(x){return _(x)===o},tt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},tt.isForwardRef=function(x){return _(x)===d},tt.isFragment=function(x){return _(x)===r},tt.isLazy=function(x){return _(x)===w},tt.isMemo=function(x){return _(x)===m},tt.isPortal=function(x){return _(x)===n},tt.isProfiler=function(x){return _(x)===s},tt.isStrictMode=function(x){return _(x)===i},tt.isSuspense=function(x){return _(x)===h},tt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===c||x===s||x===i||x===h||x===g||typeof x=="object"&&x!==null&&(x.$$typeof===w||x.$$typeof===m||x.$$typeof===o||x.$$typeof===l||x.$$typeof===d||x.$$typeof===y||x.$$typeof===k||x.$$typeof===v||x.$$typeof===S)},tt.typeOf=_,tt}var nt={},hh;function $I(){if(hh)return nt;hh=1;var e={};/** @license React v16.13.1
129
+ */var ch;function $I(){if(ch)return tt;ch=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=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,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function _(x){if(typeof x=="object"&&x!==null){var f=x.$$typeof;switch(f){case t:switch(x=x.type,x){case u:case c:case r:case s:case i:case h:return x;default:switch(x=x&&x.$$typeof,x){case l:case d:case w:case m:case o:return x;default:return f}}case n:return f}}}function A(x){return _(x)===c}return tt.AsyncMode=u,tt.ConcurrentMode=c,tt.ContextConsumer=l,tt.ContextProvider=o,tt.Element=t,tt.ForwardRef=d,tt.Fragment=r,tt.Lazy=w,tt.Memo=m,tt.Portal=n,tt.Profiler=s,tt.StrictMode=i,tt.Suspense=h,tt.isAsyncMode=function(x){return A(x)||_(x)===u},tt.isConcurrentMode=A,tt.isContextConsumer=function(x){return _(x)===l},tt.isContextProvider=function(x){return _(x)===o},tt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},tt.isForwardRef=function(x){return _(x)===d},tt.isFragment=function(x){return _(x)===r},tt.isLazy=function(x){return _(x)===w},tt.isMemo=function(x){return _(x)===m},tt.isPortal=function(x){return _(x)===n},tt.isProfiler=function(x){return _(x)===s},tt.isStrictMode=function(x){return _(x)===i},tt.isSuspense=function(x){return _(x)===h},tt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===c||x===s||x===i||x===h||x===g||typeof x=="object"&&x!==null&&(x.$$typeof===w||x.$$typeof===m||x.$$typeof===o||x.$$typeof===l||x.$$typeof===d||x.$$typeof===y||x.$$typeof===k||x.$$typeof===v||x.$$typeof===S)},tt.typeOf=_,tt}var nt={},hh;function WI(){if(hh)return nt;hh=1;var e={};/** @license React v16.13.1
130
130
  * react-is.development.js
131
131
  *
132
132
  * Copyright (c) Facebook, Inc. and its affiliates.
133
133
  *
134
134
  * This source code is licensed under the MIT license found in the
135
135
  * LICENSE file in the root directory of this source tree.
136
- */return e.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,i=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,c=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,g=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,w=t?Symbol.for("react.memo"):60115,S=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,k=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,_=t?Symbol.for("react.scope"):60119;function A(ae){return typeof ae=="string"||typeof ae=="function"||ae===i||ae===d||ae===o||ae===s||ae===g||ae===m||typeof ae=="object"&&ae!==null&&(ae.$$typeof===S||ae.$$typeof===w||ae.$$typeof===l||ae.$$typeof===u||ae.$$typeof===h||ae.$$typeof===k||ae.$$typeof===v||ae.$$typeof===_||ae.$$typeof===y)}function x(ae){if(typeof ae=="object"&&ae!==null){var ce=ae.$$typeof;switch(ce){case n:var Ie=ae.type;switch(Ie){case c:case d:case i:case o:case s:case g:return Ie;default:var Ce=Ie&&Ie.$$typeof;switch(Ce){case u:case h:case S:case w:case l:return Ce;default:return ce}}case r:return ce}}}var f=c,R=d,V=u,L=l,N=n,$=h,U=i,J=S,Y=w,Q=r,Z=o,q=s,K=g,ie=!1;function E(ae){return ie||(ie=!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.")),M(ae)||x(ae)===c}function M(ae){return x(ae)===d}function H(ae){return x(ae)===u}function T(ae){return x(ae)===l}function B(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===n}function z(ae){return x(ae)===h}function W(ae){return x(ae)===i}function F(ae){return x(ae)===S}function te(ae){return x(ae)===w}function ee(ae){return x(ae)===r}function ne(ae){return x(ae)===o}function le(ae){return x(ae)===s}function G(ae){return x(ae)===g}nt.AsyncMode=f,nt.ConcurrentMode=R,nt.ContextConsumer=V,nt.ContextProvider=L,nt.Element=N,nt.ForwardRef=$,nt.Fragment=U,nt.Lazy=J,nt.Memo=Y,nt.Portal=Q,nt.Profiler=Z,nt.StrictMode=q,nt.Suspense=K,nt.isAsyncMode=E,nt.isConcurrentMode=M,nt.isContextConsumer=H,nt.isContextProvider=T,nt.isElement=B,nt.isForwardRef=z,nt.isFragment=W,nt.isLazy=F,nt.isMemo=te,nt.isPortal=ee,nt.isProfiler=ne,nt.isStrictMode=le,nt.isSuspense=G,nt.isValidElementType=A,nt.typeOf=x})(),nt}var ph;function jg(){if(ph)return Ii.exports;ph=1;var e={};return e.NODE_ENV==="production"?Ii.exports=HI():Ii.exports=$I(),Ii.exports}/*
136
+ */return e.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,i=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,c=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,g=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,w=t?Symbol.for("react.memo"):60115,S=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,k=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,_=t?Symbol.for("react.scope"):60119;function A(ae){return typeof ae=="string"||typeof ae=="function"||ae===i||ae===d||ae===o||ae===s||ae===g||ae===m||typeof ae=="object"&&ae!==null&&(ae.$$typeof===S||ae.$$typeof===w||ae.$$typeof===l||ae.$$typeof===u||ae.$$typeof===h||ae.$$typeof===k||ae.$$typeof===v||ae.$$typeof===_||ae.$$typeof===y)}function x(ae){if(typeof ae=="object"&&ae!==null){var ce=ae.$$typeof;switch(ce){case n:var Ie=ae.type;switch(Ie){case c:case d:case i:case o:case s:case g:return Ie;default:var Ce=Ie&&Ie.$$typeof;switch(Ce){case u:case h:case S:case w:case l:return Ce;default:return ce}}case r:return ce}}}var f=c,R=d,V=u,L=l,N=n,$=h,U=i,J=S,Y=w,Q=r,Z=o,q=s,K=g,ie=!1;function E(ae){return ie||(ie=!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.")),M(ae)||x(ae)===c}function M(ae){return x(ae)===d}function H(ae){return x(ae)===u}function T(ae){return x(ae)===l}function B(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===n}function z(ae){return x(ae)===h}function W(ae){return x(ae)===i}function F(ae){return x(ae)===S}function te(ae){return x(ae)===w}function ee(ae){return x(ae)===r}function ne(ae){return x(ae)===o}function le(ae){return x(ae)===s}function G(ae){return x(ae)===g}nt.AsyncMode=f,nt.ConcurrentMode=R,nt.ContextConsumer=V,nt.ContextProvider=L,nt.Element=N,nt.ForwardRef=$,nt.Fragment=U,nt.Lazy=J,nt.Memo=Y,nt.Portal=Q,nt.Profiler=Z,nt.StrictMode=q,nt.Suspense=K,nt.isAsyncMode=E,nt.isConcurrentMode=M,nt.isContextConsumer=H,nt.isContextProvider=T,nt.isElement=B,nt.isForwardRef=z,nt.isFragment=W,nt.isLazy=F,nt.isMemo=te,nt.isPortal=ee,nt.isProfiler=ne,nt.isStrictMode=le,nt.isSuspense=G,nt.isValidElementType=A,nt.typeOf=x})(),nt}var ph;function Fg(){if(ph)return Ii.exports;ph=1;var e={};return e.NODE_ENV==="production"?Ii.exports=$I():Ii.exports=WI(),Ii.exports}/*
137
137
  object-assign
138
138
  (c) Sindre Sorhus
139
139
  @license MIT
140
- */var ya,dh;function WI(){if(dh)return ya;dh=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){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(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 ya=i()?Object.assign:function(s,o){for(var l,u=r(s),c,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var h in l)t.call(l,h)&&(u[h]=l[h]);if(e){c=e(l);for(var g=0;g<c.length;g++)n.call(l,c[g])&&(u[c[g]]=l[c[g]])}}return u},ya}var wa,fh;function bl(){if(fh)return wa;fh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wa=e,wa}var ka,gh;function Fg(){return gh||(gh=1,ka=Function.call.bind(Object.prototype.hasOwnProperty)),ka}var Sa,mh;function UI(){if(mh)return Sa;mh=1;var e={},t=function(){};if(e.NODE_ENV!=="production"){var n=bl(),r={},i=Fg();t=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function s(o,l,u,c,d){if(e.NODE_ENV!=="production"){for(var h in o)if(i(o,h)){var g;try{if(typeof o[h]!="function"){var m=Error((c||"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}g=o[h](l,h,c,u,null,n)}catch(S){g=S}if(g&&!(g instanceof Error)&&t((c||"React class")+": type specification of "+u+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in r)){r[g.message]=!0;var w=d?d():"";t("Failed "+u+" type: "+g.message+(w??""))}}}}return s.resetWarningCache=function(){e.NODE_ENV!=="production"&&(r={})},Sa=s,Sa}var _a,xh;function qI(){if(xh)return _a;xh=1;var e={},t=jg(),n=WI(),r=bl(),i=Fg(),s=UI(),o=function(){};e.NODE_ENV!=="production"&&(o=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function l(){return null}return _a=function(u,c){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function g(M){var H=M&&(d&&M[d]||M[h]);if(typeof H=="function")return H}var m="<<anonymous>>",w={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:_(),arrayOf:A,element:x(),elementType:f(),instanceOf:R,node:$(),objectOf:L,oneOf:V,oneOfType:N,shape:J,exact:Y};function S(M,H){return M===H?M!==0||1/M===1/H:M!==M&&H!==H}function y(M,H){this.message=M,this.data=H&&typeof H=="object"?H:{},this.stack=""}y.prototype=Error.prototype;function k(M){if(e.NODE_ENV!=="production")var H={},T=0;function B(W,F,te,ee,ne,le,G){if(ee=ee||m,le=le||te,G!==r){if(c){var ae=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 ae.name="Invariant Violation",ae}else if(e.NODE_ENV!=="production"&&typeof console<"u"){var ce=ee+":"+te;!H[ce]&&T<3&&(o("You are manually calling a React.PropTypes validation function for the `"+le+"` prop on `"+ee+"`. 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."),H[ce]=!0,T++)}}return F[te]==null?W?F[te]===null?new y("The "+ne+" `"+le+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new y("The "+ne+" `"+le+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:M(F,te,ee,ne,le)}var z=B.bind(null,!1);return z.isRequired=B.bind(null,!0),z}function v(M){function H(T,B,z,W,F,te){var ee=T[B],ne=q(ee);if(ne!==M){var le=K(ee);return new y("Invalid "+W+" `"+F+"` of type "+("`"+le+"` supplied to `"+z+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return k(H)}function _(){return k(l)}function A(M){function H(T,B,z,W,F){if(typeof M!="function")return new y("Property `"+F+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var te=T[B];if(!Array.isArray(te)){var ee=q(te);return new y("Invalid "+W+" `"+F+"` of type "+("`"+ee+"` supplied to `"+z+"`, expected an array."))}for(var ne=0;ne<te.length;ne++){var le=M(te,ne,z,W,F+"["+ne+"]",r);if(le instanceof Error)return le}return null}return k(H)}function x(){function M(H,T,B,z,W){var F=H[T];if(!u(F)){var te=q(F);return new y("Invalid "+z+" `"+W+"` of type "+("`"+te+"` supplied to `"+B+"`, expected a single ReactElement."))}return null}return k(M)}function f(){function M(H,T,B,z,W){var F=H[T];if(!t.isValidElementType(F)){var te=q(F);return new y("Invalid "+z+" `"+W+"` of type "+("`"+te+"` supplied to `"+B+"`, expected a single ReactElement type."))}return null}return k(M)}function R(M){function H(T,B,z,W,F){if(!(T[B]instanceof M)){var te=M.name||m,ee=E(T[B]);return new y("Invalid "+W+" `"+F+"` of type "+("`"+ee+"` supplied to `"+z+"`, expected ")+("instance of `"+te+"`."))}return null}return k(H)}function V(M){if(!Array.isArray(M))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 H(T,B,z,W,F){for(var te=T[B],ee=0;ee<M.length;ee++)if(S(te,M[ee]))return null;var ne=JSON.stringify(M,function(G,ae){var ce=K(ae);return ce==="symbol"?String(ae):ae});return new y("Invalid "+W+" `"+F+"` of value `"+String(te)+"` "+("supplied to `"+z+"`, expected one of "+ne+"."))}return k(H)}function L(M){function H(T,B,z,W,F){if(typeof M!="function")return new y("Property `"+F+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var te=T[B],ee=q(te);if(ee!=="object")return new y("Invalid "+W+" `"+F+"` of type "+("`"+ee+"` supplied to `"+z+"`, expected an object."));for(var ne in te)if(i(te,ne)){var le=M(te,ne,z,W,F+"."+ne,r);if(le instanceof Error)return le}return null}return k(H)}function N(M){if(!Array.isArray(M))return e.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var H=0;H<M.length;H++){var T=M[H];if(typeof T!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ie(T)+" at index "+H+"."),l}function B(z,W,F,te,ee){for(var ne=[],le=0;le<M.length;le++){var G=M[le],ae=G(z,W,F,te,ee,r);if(ae==null)return null;ae.data&&i(ae.data,"expectedType")&&ne.push(ae.data.expectedType)}var ce=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new y("Invalid "+te+" `"+ee+"` supplied to "+("`"+F+"`"+ce+"."))}return k(B)}function $(){function M(H,T,B,z,W){return Q(H[T])?null:new y("Invalid "+z+" `"+W+"` supplied to "+("`"+B+"`, expected a ReactNode."))}return k(M)}function U(M,H,T,B,z){return new y((M||"React class")+": "+H+" type `"+T+"."+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function J(M){function H(T,B,z,W,F){var te=T[B],ee=q(te);if(ee!=="object")return new y("Invalid "+W+" `"+F+"` of type `"+ee+"` "+("supplied to `"+z+"`, expected `object`."));for(var ne in M){var le=M[ne];if(typeof le!="function")return U(z,W,F,ne,K(le));var G=le(te,ne,z,W,F+"."+ne,r);if(G)return G}return null}return k(H)}function Y(M){function H(T,B,z,W,F){var te=T[B],ee=q(te);if(ee!=="object")return new y("Invalid "+W+" `"+F+"` of type `"+ee+"` "+("supplied to `"+z+"`, expected `object`."));var ne=n({},T[B],M);for(var le in ne){var G=M[le];if(i(M,le)&&typeof G!="function")return U(z,W,F,le,K(G));if(!G)return new y("Invalid "+W+" `"+F+"` key `"+le+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(T[B],null," ")+`
141
- Valid keys: `+JSON.stringify(Object.keys(M),null," "));var ae=G(te,le,z,W,F+"."+le,r);if(ae)return ae}return null}return k(H)}function Q(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(Q);if(M===null||u(M))return!0;var H=g(M);if(H){var T=H.call(M),B;if(H!==M.entries){for(;!(B=T.next()).done;)if(!Q(B.value))return!1}else for(;!(B=T.next()).done;){var z=B.value;if(z&&!Q(z[1]))return!1}}else return!1;return!0;default:return!1}}function Z(M,H){return M==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function q(M){var H=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":Z(H,M)?"symbol":H}function K(M){if(typeof M>"u"||M===null)return""+M;var H=q(M);if(H==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return H}function ie(M){var H=K(M);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function E(M){return!M.constructor||!M.constructor.name?m:M.constructor.name}return w.checkPropTypes=s,w.resetWarningCache=s.resetWarningCache,w.PropTypes=w,w},_a}var Ea,vh;function KI(){if(vh)return Ea;vh=1;var e=bl();function t(){}function n(){}return n.resetWarningCache=t,Ea=function(){function r(o,l,u,c,d,h){if(h!==e){var g=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 g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Ea}var bh;function JI(){if(bh)return Ei.exports;bh=1;var e={};if(e.NODE_ENV!=="production"){var t=jg(),n=!0;Ei.exports=qI()(t.isElement,n)}else Ei.exports=KI()();return Ei.exports}var GI=JI();const ue=hl(GI);var Ci={exports:{}},st={};/** @license React v17.0.2
140
+ */var ya,dh;function UI(){if(dh)return ya;dh=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){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(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 ya=i()?Object.assign:function(s,o){for(var l,u=r(s),c,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var h in l)t.call(l,h)&&(u[h]=l[h]);if(e){c=e(l);for(var g=0;g<c.length;g++)n.call(l,c[g])&&(u[c[g]]=l[c[g]])}}return u},ya}var wa,fh;function yl(){if(fh)return wa;fh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wa=e,wa}var ka,gh;function zg(){return gh||(gh=1,ka=Function.call.bind(Object.prototype.hasOwnProperty)),ka}var Sa,mh;function qI(){if(mh)return Sa;mh=1;var e={},t=function(){};if(e.NODE_ENV!=="production"){var n=yl(),r={},i=zg();t=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function s(o,l,u,c,d){if(e.NODE_ENV!=="production"){for(var h in o)if(i(o,h)){var g;try{if(typeof o[h]!="function"){var m=Error((c||"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}g=o[h](l,h,c,u,null,n)}catch(S){g=S}if(g&&!(g instanceof Error)&&t((c||"React class")+": type specification of "+u+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in r)){r[g.message]=!0;var w=d?d():"";t("Failed "+u+" type: "+g.message+(w??""))}}}}return s.resetWarningCache=function(){e.NODE_ENV!=="production"&&(r={})},Sa=s,Sa}var _a,xh;function KI(){if(xh)return _a;xh=1;var e={},t=Fg(),n=UI(),r=yl(),i=zg(),s=qI(),o=function(){};e.NODE_ENV!=="production"&&(o=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function l(){return null}return _a=function(u,c){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function g(M){var H=M&&(d&&M[d]||M[h]);if(typeof H=="function")return H}var m="<<anonymous>>",w={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:_(),arrayOf:A,element:x(),elementType:f(),instanceOf:R,node:$(),objectOf:L,oneOf:V,oneOfType:N,shape:J,exact:Y};function S(M,H){return M===H?M!==0||1/M===1/H:M!==M&&H!==H}function y(M,H){this.message=M,this.data=H&&typeof H=="object"?H:{},this.stack=""}y.prototype=Error.prototype;function k(M){if(e.NODE_ENV!=="production")var H={},T=0;function B(W,F,te,ee,ne,le,G){if(ee=ee||m,le=le||te,G!==r){if(c){var ae=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 ae.name="Invariant Violation",ae}else if(e.NODE_ENV!=="production"&&typeof console<"u"){var ce=ee+":"+te;!H[ce]&&T<3&&(o("You are manually calling a React.PropTypes validation function for the `"+le+"` prop on `"+ee+"`. 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."),H[ce]=!0,T++)}}return F[te]==null?W?F[te]===null?new y("The "+ne+" `"+le+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new y("The "+ne+" `"+le+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:M(F,te,ee,ne,le)}var z=B.bind(null,!1);return z.isRequired=B.bind(null,!0),z}function v(M){function H(T,B,z,W,F,te){var ee=T[B],ne=q(ee);if(ne!==M){var le=K(ee);return new y("Invalid "+W+" `"+F+"` of type "+("`"+le+"` supplied to `"+z+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return k(H)}function _(){return k(l)}function A(M){function H(T,B,z,W,F){if(typeof M!="function")return new y("Property `"+F+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var te=T[B];if(!Array.isArray(te)){var ee=q(te);return new y("Invalid "+W+" `"+F+"` of type "+("`"+ee+"` supplied to `"+z+"`, expected an array."))}for(var ne=0;ne<te.length;ne++){var le=M(te,ne,z,W,F+"["+ne+"]",r);if(le instanceof Error)return le}return null}return k(H)}function x(){function M(H,T,B,z,W){var F=H[T];if(!u(F)){var te=q(F);return new y("Invalid "+z+" `"+W+"` of type "+("`"+te+"` supplied to `"+B+"`, expected a single ReactElement."))}return null}return k(M)}function f(){function M(H,T,B,z,W){var F=H[T];if(!t.isValidElementType(F)){var te=q(F);return new y("Invalid "+z+" `"+W+"` of type "+("`"+te+"` supplied to `"+B+"`, expected a single ReactElement type."))}return null}return k(M)}function R(M){function H(T,B,z,W,F){if(!(T[B]instanceof M)){var te=M.name||m,ee=E(T[B]);return new y("Invalid "+W+" `"+F+"` of type "+("`"+ee+"` supplied to `"+z+"`, expected ")+("instance of `"+te+"`."))}return null}return k(H)}function V(M){if(!Array.isArray(M))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 H(T,B,z,W,F){for(var te=T[B],ee=0;ee<M.length;ee++)if(S(te,M[ee]))return null;var ne=JSON.stringify(M,function(G,ae){var ce=K(ae);return ce==="symbol"?String(ae):ae});return new y("Invalid "+W+" `"+F+"` of value `"+String(te)+"` "+("supplied to `"+z+"`, expected one of "+ne+"."))}return k(H)}function L(M){function H(T,B,z,W,F){if(typeof M!="function")return new y("Property `"+F+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var te=T[B],ee=q(te);if(ee!=="object")return new y("Invalid "+W+" `"+F+"` of type "+("`"+ee+"` supplied to `"+z+"`, expected an object."));for(var ne in te)if(i(te,ne)){var le=M(te,ne,z,W,F+"."+ne,r);if(le instanceof Error)return le}return null}return k(H)}function N(M){if(!Array.isArray(M))return e.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var H=0;H<M.length;H++){var T=M[H];if(typeof T!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ie(T)+" at index "+H+"."),l}function B(z,W,F,te,ee){for(var ne=[],le=0;le<M.length;le++){var G=M[le],ae=G(z,W,F,te,ee,r);if(ae==null)return null;ae.data&&i(ae.data,"expectedType")&&ne.push(ae.data.expectedType)}var ce=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new y("Invalid "+te+" `"+ee+"` supplied to "+("`"+F+"`"+ce+"."))}return k(B)}function $(){function M(H,T,B,z,W){return Q(H[T])?null:new y("Invalid "+z+" `"+W+"` supplied to "+("`"+B+"`, expected a ReactNode."))}return k(M)}function U(M,H,T,B,z){return new y((M||"React class")+": "+H+" type `"+T+"."+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function J(M){function H(T,B,z,W,F){var te=T[B],ee=q(te);if(ee!=="object")return new y("Invalid "+W+" `"+F+"` of type `"+ee+"` "+("supplied to `"+z+"`, expected `object`."));for(var ne in M){var le=M[ne];if(typeof le!="function")return U(z,W,F,ne,K(le));var G=le(te,ne,z,W,F+"."+ne,r);if(G)return G}return null}return k(H)}function Y(M){function H(T,B,z,W,F){var te=T[B],ee=q(te);if(ee!=="object")return new y("Invalid "+W+" `"+F+"` of type `"+ee+"` "+("supplied to `"+z+"`, expected `object`."));var ne=n({},T[B],M);for(var le in ne){var G=M[le];if(i(M,le)&&typeof G!="function")return U(z,W,F,le,K(G));if(!G)return new y("Invalid "+W+" `"+F+"` key `"+le+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(T[B],null," ")+`
141
+ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var ae=G(te,le,z,W,F+"."+le,r);if(ae)return ae}return null}return k(H)}function Q(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(Q);if(M===null||u(M))return!0;var H=g(M);if(H){var T=H.call(M),B;if(H!==M.entries){for(;!(B=T.next()).done;)if(!Q(B.value))return!1}else for(;!(B=T.next()).done;){var z=B.value;if(z&&!Q(z[1]))return!1}}else return!1;return!0;default:return!1}}function Z(M,H){return M==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function q(M){var H=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":Z(H,M)?"symbol":H}function K(M){if(typeof M>"u"||M===null)return""+M;var H=q(M);if(H==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return H}function ie(M){var H=K(M);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function E(M){return!M.constructor||!M.constructor.name?m:M.constructor.name}return w.checkPropTypes=s,w.resetWarningCache=s.resetWarningCache,w.PropTypes=w,w},_a}var Ea,vh;function JI(){if(vh)return Ea;vh=1;var e=yl();function t(){}function n(){}return n.resetWarningCache=t,Ea=function(){function r(o,l,u,c,d,h){if(h!==e){var g=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 g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Ea}var bh;function GI(){if(bh)return Ei.exports;bh=1;var e={};if(e.NODE_ENV!=="production"){var t=Fg(),n=!0;Ei.exports=KI()(t.isElement,n)}else Ei.exports=JI()();return Ei.exports}var YI=GI();const ue=hl(YI);var Ci={exports:{}},st={};/** @license React v17.0.2
142
142
  * react-is.production.min.js
143
143
  *
144
144
  * Copyright (c) Facebook, Inc. and its affiliates.
145
145
  *
146
146
  * This source code is licensed under the MIT license found in the
147
147
  * LICENSE file in the root directory of this source tree.
148
- */var yh;function YI(){if(yh)return st;yh=1;var e=60103,t=60106,n=60107,r=60108,i=60114,s=60109,o=60110,l=60112,u=60113,c=60120,d=60115,h=60116,g=60121,m=60122,w=60117,S=60129,y=60131;if(typeof Symbol=="function"&&Symbol.for){var k=Symbol.for;e=k("react.element"),t=k("react.portal"),n=k("react.fragment"),r=k("react.strict_mode"),i=k("react.profiler"),s=k("react.provider"),o=k("react.context"),l=k("react.forward_ref"),u=k("react.suspense"),c=k("react.suspense_list"),d=k("react.memo"),h=k("react.lazy"),g=k("react.block"),m=k("react.server.block"),w=k("react.fundamental"),S=k("react.debug_trace_mode"),y=k("react.legacy_hidden")}function v(J){if(typeof J=="object"&&J!==null){var Y=J.$$typeof;switch(Y){case e:switch(J=J.type,J){case n:case i:case r:case u:case c:return J;default:switch(J=J&&J.$$typeof,J){case o:case l:case h:case d:case s:return J;default:return Y}}case t:return Y}}}var _=s,A=e,x=l,f=n,R=h,V=d,L=t,N=i,$=r,U=u;return st.ContextConsumer=o,st.ContextProvider=_,st.Element=A,st.ForwardRef=x,st.Fragment=f,st.Lazy=R,st.Memo=V,st.Portal=L,st.Profiler=N,st.StrictMode=$,st.Suspense=U,st.isAsyncMode=function(){return!1},st.isConcurrentMode=function(){return!1},st.isContextConsumer=function(J){return v(J)===o},st.isContextProvider=function(J){return v(J)===s},st.isElement=function(J){return typeof J=="object"&&J!==null&&J.$$typeof===e},st.isForwardRef=function(J){return v(J)===l},st.isFragment=function(J){return v(J)===n},st.isLazy=function(J){return v(J)===h},st.isMemo=function(J){return v(J)===d},st.isPortal=function(J){return v(J)===t},st.isProfiler=function(J){return v(J)===i},st.isStrictMode=function(J){return v(J)===r},st.isSuspense=function(J){return v(J)===u},st.isValidElementType=function(J){return typeof J=="string"||typeof J=="function"||J===n||J===i||J===S||J===r||J===u||J===c||J===y||typeof J=="object"&&J!==null&&(J.$$typeof===h||J.$$typeof===d||J.$$typeof===s||J.$$typeof===o||J.$$typeof===l||J.$$typeof===w||J.$$typeof===g||J[0]===m)},st.typeOf=v,st}var at={},wh;function QI(){if(wh)return at;wh=1;var e={};/** @license React v17.0.2
148
+ */var yh;function QI(){if(yh)return st;yh=1;var e=60103,t=60106,n=60107,r=60108,i=60114,s=60109,o=60110,l=60112,u=60113,c=60120,d=60115,h=60116,g=60121,m=60122,w=60117,S=60129,y=60131;if(typeof Symbol=="function"&&Symbol.for){var k=Symbol.for;e=k("react.element"),t=k("react.portal"),n=k("react.fragment"),r=k("react.strict_mode"),i=k("react.profiler"),s=k("react.provider"),o=k("react.context"),l=k("react.forward_ref"),u=k("react.suspense"),c=k("react.suspense_list"),d=k("react.memo"),h=k("react.lazy"),g=k("react.block"),m=k("react.server.block"),w=k("react.fundamental"),S=k("react.debug_trace_mode"),y=k("react.legacy_hidden")}function v(J){if(typeof J=="object"&&J!==null){var Y=J.$$typeof;switch(Y){case e:switch(J=J.type,J){case n:case i:case r:case u:case c:return J;default:switch(J=J&&J.$$typeof,J){case o:case l:case h:case d:case s:return J;default:return Y}}case t:return Y}}}var _=s,A=e,x=l,f=n,R=h,V=d,L=t,N=i,$=r,U=u;return st.ContextConsumer=o,st.ContextProvider=_,st.Element=A,st.ForwardRef=x,st.Fragment=f,st.Lazy=R,st.Memo=V,st.Portal=L,st.Profiler=N,st.StrictMode=$,st.Suspense=U,st.isAsyncMode=function(){return!1},st.isConcurrentMode=function(){return!1},st.isContextConsumer=function(J){return v(J)===o},st.isContextProvider=function(J){return v(J)===s},st.isElement=function(J){return typeof J=="object"&&J!==null&&J.$$typeof===e},st.isForwardRef=function(J){return v(J)===l},st.isFragment=function(J){return v(J)===n},st.isLazy=function(J){return v(J)===h},st.isMemo=function(J){return v(J)===d},st.isPortal=function(J){return v(J)===t},st.isProfiler=function(J){return v(J)===i},st.isStrictMode=function(J){return v(J)===r},st.isSuspense=function(J){return v(J)===u},st.isValidElementType=function(J){return typeof J=="string"||typeof J=="function"||J===n||J===i||J===S||J===r||J===u||J===c||J===y||typeof J=="object"&&J!==null&&(J.$$typeof===h||J.$$typeof===d||J.$$typeof===s||J.$$typeof===o||J.$$typeof===l||J.$$typeof===w||J.$$typeof===g||J[0]===m)},st.typeOf=v,st}var at={},wh;function XI(){if(wh)return at;wh=1;var e={};/** @license React v17.0.2
149
149
  * react-is.development.js
150
150
  *
151
151
  * Copyright (c) Facebook, Inc. and its affiliates.
152
152
  *
153
153
  * This source code is licensed under the MIT license found in the
154
154
  * LICENSE file in the root directory of this source tree.
155
- */return e.NODE_ENV!=="production"&&(function(){var t=60103,n=60106,r=60107,i=60108,s=60114,o=60109,l=60110,u=60112,c=60113,d=60120,h=60115,g=60116,m=60121,w=60122,S=60117,y=60129,k=60131;if(typeof Symbol=="function"&&Symbol.for){var v=Symbol.for;t=v("react.element"),n=v("react.portal"),r=v("react.fragment"),i=v("react.strict_mode"),s=v("react.profiler"),o=v("react.provider"),l=v("react.context"),u=v("react.forward_ref"),c=v("react.suspense"),d=v("react.suspense_list"),h=v("react.memo"),g=v("react.lazy"),m=v("react.block"),w=v("react.server.block"),S=v("react.fundamental"),v("react.scope"),v("react.opaque.id"),y=v("react.debug_trace_mode"),v("react.offscreen"),k=v("react.legacy_hidden")}var _=!1;function A(G){return!!(typeof G=="string"||typeof G=="function"||G===r||G===s||G===y||G===i||G===c||G===d||G===k||_||typeof G=="object"&&G!==null&&(G.$$typeof===g||G.$$typeof===h||G.$$typeof===o||G.$$typeof===l||G.$$typeof===u||G.$$typeof===S||G.$$typeof===m||G[0]===w))}function x(G){if(typeof G=="object"&&G!==null){var ae=G.$$typeof;switch(ae){case t:var ce=G.type;switch(ce){case r:case s:case i:case c:case d:return ce;default:var Ie=ce&&ce.$$typeof;switch(Ie){case l:case u:case g:case h:case o:return Ie;default:return ae}}case n:return ae}}}var f=l,R=o,V=t,L=u,N=r,$=g,U=h,J=n,Y=s,Q=i,Z=c,q=!1,K=!1;function ie(G){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function E(G){return K||(K=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function M(G){return x(G)===l}function H(G){return x(G)===o}function T(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function B(G){return x(G)===u}function z(G){return x(G)===r}function W(G){return x(G)===g}function F(G){return x(G)===h}function te(G){return x(G)===n}function ee(G){return x(G)===s}function ne(G){return x(G)===i}function le(G){return x(G)===c}at.ContextConsumer=f,at.ContextProvider=R,at.Element=V,at.ForwardRef=L,at.Fragment=N,at.Lazy=$,at.Memo=U,at.Portal=J,at.Profiler=Y,at.StrictMode=Q,at.Suspense=Z,at.isAsyncMode=ie,at.isConcurrentMode=E,at.isContextConsumer=M,at.isContextProvider=H,at.isElement=T,at.isForwardRef=B,at.isFragment=z,at.isLazy=W,at.isMemo=F,at.isPortal=te,at.isProfiler=ee,at.isStrictMode=ne,at.isSuspense=le,at.isValidElementType=A,at.typeOf=x})(),at}var kh;function XI(){if(kh)return Ci.exports;kh=1;var e={};return e.NODE_ENV==="production"?Ci.exports=YI():Ci.exports=QI(),Ci.exports}var Sh=XI();function _h(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Eh(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function Ia(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Eh(n.overflowY,t)||Eh(n.overflowX,t)||(function(r){var i=(function(s){if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(e)}return!1}function Ai(e,t,n,r,i,s,o,l){return s<e&&o>t||s>e&&o<t?0:s<=e&&l<=n||o>=t&&l>=n?s-e-r:o>t&&l<n||s<e&&l>n?o-t+i:0}var ZI=function(e,t){var n=window,r=t.inline,i=t.boundary,s=t.skipOverflowHiddenElements,o=typeof i=="function"?i:function(G){return G!==i};if(!_h(e))throw new TypeError("Invalid target");for(var l,u,c=document.scrollingElement||document.documentElement,d=[],h=e;_h(h)&&o(h);){if((h=(u=(l=h).parentElement)==null?l.getRootNode().host||null:u)===c){d.push(h);break}h!=null&&h===document.body&&Ia(h)&&!Ia(document.documentElement)||h!=null&&Ia(h,s)&&d.push(h)}for(var g=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,w=window.scrollX||pageXOffset,S=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),k=y.height,v=y.width,_=y.top,A=y.right,x=y.bottom,f=y.left,R=_,V=r==="center"?f+v/2:r==="end"?A:f,L=[],N=0;N<d.length;N++){var $=d[N],U=$.getBoundingClientRect(),J=U.height,Y=U.width,Q=U.top,Z=U.right,q=U.bottom,K=U.left;if(_>=0&&f>=0&&x<=m&&A<=g&&_>=Q&&x<=q&&f>=K&&A<=Z)return L;var ie=getComputedStyle($),E=parseInt(ie.borderLeftWidth,10),M=parseInt(ie.borderTopWidth,10),H=parseInt(ie.borderRightWidth,10),T=parseInt(ie.borderBottomWidth,10),B=0,z=0,W="offsetWidth"in $?$.offsetWidth-$.clientWidth-E-H:0,F="offsetHeight"in $?$.offsetHeight-$.clientHeight-M-T:0,te="offsetWidth"in $?$.offsetWidth===0?0:Y/$.offsetWidth:0,ee="offsetHeight"in $?$.offsetHeight===0?0:J/$.offsetHeight:0;if(c===$)B=Ai(S,S+m,m,M,T,S+R,S+R+k,k),z=r==="start"?V:r==="center"?V-g/2:r==="end"?V-g:Ai(w,w+g,g,E,H,w+V,w+V+v,v),B=Math.max(0,B+S),z=Math.max(0,z+w);else{B=Ai(Q,q,J,M,T+F,R,R+k,k),z=r==="start"?V-K-E:r==="center"?V-(K+Y/2)+W/2:r==="end"?V-Z+H+W:Ai(K,Z,Y,E,H+W,V,V+v,v);var ne=$.scrollLeft,le=$.scrollTop;R+=le-(B=Math.max(0,Math.min(le+B/ee,$.scrollHeight-J/ee+F))),V+=ne-(z=Math.max(0,Math.min(ne+z/te,$.scrollWidth-Y/te+W)))}L.push({el:$,top:B,left:z})}return L},Ae={};let eC=0;function Ih(e){return typeof e=="function"?e:Qt}function Qt(){}function zg(e,t){if(!e)return;ZI(e,{boundary:t}).forEach(r=>{let{el:i,top:s,left:o}=r;i.scrollTop=s,i.scrollLeft=o})}function Ch(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function Ds(e,t){let n;function r(){n&&clearTimeout(n)}function i(){for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];r(),n=setTimeout(()=>{n=null,e(...o)},t)}return i.cancel=r,i}function kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];return t.some(l=>(l&&l(r,...s),r.preventDownshiftDefault||r.hasOwnProperty("nativeEvent")&&r.nativeEvent.preventDownshiftDefault))}}function Fr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r=>{t.forEach(i=>{typeof i=="function"?i(r):i&&(i.current=r)})}}function Bg(){return String(eC++)}function tC(e){let{isOpen:t,resultCount:n,previousResultCount:r}=e;return t?n?n!==r?`${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 Ah(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function Hg(e){return typeof e.type=="string"}function $g(e){return e.props}function nC(e,t){console.error(`The property "${t}" is required in "${e}"`)}const rC=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function Ti(e){e===void 0&&(e={});const t={};return rC.forEach(n=>{e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function cs(e,t){return Object.keys(e).reduce((n,r)=>(n[r]=Za(t,r)?t[r]:e[r],n),{})}function Za(e,t){return e[t]!==void 0}function hs(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&t.indexOf("Arrow")!==0?`Arrow${t}`:t}function iC(e){return Object.prototype.toString.call(e)==="[object Object]"}function pr(e,t,n,r,i){if(i===void 0&&(i=!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=i?s:0:o>s&&(o=i?0:s);const l=Kn(e,o,n,r,i);return l===-1?t>=n?-1:t:l}function Kn(e,t,n,r,i){const s=r(t);if(!s||!s.hasAttribute("disabled"))return t;if(e>0){for(let o=t+1;o<n;o++)if(!r(o).hasAttribute("disabled"))return o}else for(let o=t-1;o>=0;o--)if(!r(o).hasAttribute("disabled"))return o;return i?e>0?Kn(1,0,n,r,!1):Kn(-1,n-1,n,r,!1):-1}function ps(e,t,n,r){return r===void 0&&(r=!0),t.some(i=>i&&(Ch(i,e,n)||r&&Ch(i,n.document.activeElement,n)))}let yl=Qt;Ae.NODE_ENV!=="production"&&(yl=(e,t,n)=>{const r="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(i=>{t[i]!==void 0&&n[i]===void 0?console.error(`downshift: A component has changed the controlled prop "${i}" to be uncontrolled. ${r}`):t[i]===void 0&&n[i]!==void 0&&console.error(`downshift: A component has changed the uncontrolled prop "${i}" to be controlled. ${r}`)})});const sC=Ds(e=>{Ug(e).textContent=""},500);function Wg(e,t){const n=Ug(t);e&&(n.textContent=e,sC(t))}function Ug(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 qg=Ae.NODE_ENV!=="production"?"__autocomplete_unknown__":0,Kg=Ae.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,Jg=Ae.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,Hi=Ae.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,$i=Ae.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,Gg=Ae.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,Yg=Ae.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,Qg=Ae.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,Xg=Ae.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,Zg=Ae.NODE_ENV!=="production"?"__autocomplete_click_item__":9,em=Ae.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,tm=Ae.NODE_ENV!=="production"?"__autocomplete_change_input__":11,nm=Ae.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,eo=Ae.NODE_ENV!=="production"?"__autocomplete_click_button__":13,rm=Ae.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,im=Ae.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,sm=Ae.NODE_ENV!=="production"?"__autocomplete_touchend__":16;var aC=Object.freeze({__proto__:null,unknown:qg,mouseUp:Kg,itemMouseEnter:Jg,keyDownArrowUp:Hi,keyDownArrowDown:$i,keyDownEscape:Gg,keyDownEnter:Yg,keyDownHome:Qg,keyDownEnd:Xg,clickItem:Zg,blurInput:em,changeInput:tm,keyDownSpaceButton:nm,clickButton:eo,blurButton:rm,controlledPropUpdatedSelectedItem:im,touchEnd:sm});const oC=(()=>{class e extends D.Component{constructor(n){var r;super(n),r=this,this.id=this.props.id||`downshift-${Bg()}`,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,g)=>{const m=setTimeout(()=>{this.timeoutIds=this.timeoutIds.filter(w=>w!==m),h()},g);this.timeoutIds.push(m)},this.setItemCount=h=>{this.itemCount=h},this.unsetItemCount=()=>{this.itemCount=null},this.setHighlightedIndex=function(h,g){h===void 0&&(h=r.props.defaultHighlightedIndex),g===void 0&&(g={}),g=Ti(g),r.internalSetState({highlightedIndex:h,...g})},this.clearSelection=h=>{this.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:this.props.defaultHighlightedIndex,isOpen:this.props.defaultIsOpen},h)},this.selectItem=(h,g,m)=>{g=Ti(g),this.internalSetState({isOpen:this.props.defaultIsOpen,highlightedIndex:this.props.defaultHighlightedIndex,selectedItem:h,inputValue:this.props.itemToString(h),...g},m)},this.selectItemAtIndex=(h,g,m)=>{const w=this.items[h];w!=null&&this.selectItem(w,g,m)},this.selectHighlightedItem=(h,g)=>this.selectItemAtIndex(this.getState().highlightedIndex,h,g),this.internalSetState=(h,g)=>{let m,w;const S={},y=typeof h=="function";return!y&&h.hasOwnProperty("inputValue")&&this.props.onInputValueChange(h.inputValue,{...this.getStateAndHelpers(),...h}),this.setState(k=>{k=this.getState(k);let v=y?h(k):h;v=this.props.stateReducer(k,v),m=v.hasOwnProperty("selectedItem");const _={};return m&&v.selectedItem!==k.selectedItem&&(w=v.selectedItem),v.type=v.type||qg,Object.keys(v).forEach(A=>{k[A]!==v[A]&&(S[A]=v[A]),A!=="type"&&(v[A],Za(this.props,A)||(_[A]=v[A]))}),y&&v.hasOwnProperty("inputValue")&&this.props.onInputValueChange(v.inputValue,{...this.getStateAndHelpers(),...v}),_},()=>{Ih(g)(),Object.keys(S).length>1&&this.props.onStateChange(S,this.getStateAndHelpers()),m&&this.props.onSelect(h.selectedItem,this.getStateAndHelpers()),w!==void 0&&this.props.onChange(w,this.getStateAndHelpers()),this.props.onUserAction(S,this.getStateAndHelpers())})},this.rootRef=h=>this._rootNode=h,this.getRootProps=function(h,g){let{refKey:m="ref",ref:w,...S}=h===void 0?{}:h,{suppressRefError:y=!1}=g===void 0?{}:g;r.getRootProps.called=!0,r.getRootProps.refKey=m,r.getRootProps.suppressRefError=y;const{isOpen:k}=r.getState();return{[m]:Fr(w,r.rootRef),role:"combobox","aria-expanded":k,"aria-haspopup":"listbox","aria-owns":k?r.menuId:null,"aria-labelledby":r.labelId,...S}},this.keyDownHandlers={ArrowDown(h){if(h.preventDefault(),this.getState().isOpen){const g=h.shiftKey?5:1;this.moveHighlightedIndex(g,{type:$i})}else this.internalSetState({isOpen:!0,type:$i},()=>{const g=this.getItemCount();if(g>0){const{highlightedIndex:m}=this.getState(),w=pr(1,m,g,S=>this.getItemNodeFromIndex(S));this.setHighlightedIndex(w,{type:$i})}})},ArrowUp(h){if(h.preventDefault(),this.getState().isOpen){const g=h.shiftKey?-5:-1;this.moveHighlightedIndex(g,{type:Hi})}else this.internalSetState({isOpen:!0,type:Hi},()=>{const g=this.getItemCount();if(g>0){const{highlightedIndex:m}=this.getState(),w=pr(-1,m,g,S=>this.getItemNodeFromIndex(S));this.setHighlightedIndex(w,{type:Hi})}})},Enter(h){if(h.which===229)return;const{isOpen:g,highlightedIndex:m}=this.getState();if(g&&m!=null){h.preventDefault();const w=this.items[m],S=this.getItemNodeFromIndex(m);if(w==null||S&&S.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Yg})}},Escape(h){h.preventDefault(),this.reset({type:Gg,...!this.state.isOpen&&{selectedItem:null,inputValue:""}})}},this.buttonKeyDownHandlers={...this.keyDownHandlers," "(h){h.preventDefault(),this.toggleMenu({type:nm})}},this.inputKeyDownHandlers={...this.keyDownHandlers,Home(h){const{isOpen:g}=this.getState();if(!g)return;h.preventDefault();const m=this.getItemCount();if(m<=0||!g)return;const w=Kn(1,0,m,S=>this.getItemNodeFromIndex(S),!1);this.setHighlightedIndex(w,{type:Qg})},End(h){const{isOpen:g}=this.getState();if(!g)return;h.preventDefault();const m=this.getItemCount();if(m<=0||!g)return;const w=Kn(-1,m-1,m,S=>this.getItemNodeFromIndex(S),!1);this.setHighlightedIndex(w,{type:Xg})}},this.getToggleButtonProps=function(h){let{onClick:g,onPress:m,onKeyDown:w,onKeyUp:S,onBlur:y,...k}=h===void 0?{}:h;const{isOpen:v}=r.getState(),_={onClick:kt(g,r.buttonHandleClick),onKeyDown:kt(w,r.buttonHandleKeyDown),onKeyUp:kt(S,r.buttonHandleKeyUp),onBlur:kt(y,r.buttonHandleBlur)},A=k.disabled?{}:_;return{type:"button",role:"button","aria-label":v?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0,...A,...k}},this.buttonHandleKeyUp=h=>{h.preventDefault()},this.buttonHandleKeyDown=h=>{const g=hs(h);this.buttonKeyDownHandlers[g]&&this.buttonKeyDownHandlers[g].call(this,h)},this.buttonHandleClick=h=>{h.preventDefault(),this.props.environment.document.activeElement===this.props.environment.document.body&&h.target.focus(),Ae.NODE_ENV==="test"?this.toggleMenu({type:eo}):this.internalSetTimeout(()=>this.toggleMenu({type:eo}))},this.buttonHandleBlur=h=>{const g=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!==g&&this.reset({type:rm})})},this.getLabelProps=h=>({htmlFor:this.inputId,id:this.labelId,...h}),this.getInputProps=function(h){let{onKeyDown:g,onBlur:m,onChange:w,onInput:S,onChangeText:y,...k}=h===void 0?{}:h,v,_={};v="onChange";const{inputValue:A,isOpen:x,highlightedIndex:f}=r.getState();return k.disabled||(_={[v]:kt(w,S,r.inputHandleChange),onKeyDown:kt(g,r.inputHandleKeyDown),onBlur:kt(m,r.inputHandleBlur)}),{"aria-autocomplete":"list","aria-activedescendant":x&&typeof f=="number"&&f>=0?r.getItemId(f):null,"aria-controls":x?r.menuId:null,"aria-labelledby":r.labelId,autoComplete:"off",value:A,id:r.inputId,..._,...k}},this.inputHandleKeyDown=h=>{const g=hs(h);g&&this.inputKeyDownHandlers[g]&&this.inputKeyDownHandlers[g].call(this,h)},this.inputHandleChange=h=>{this.internalSetState({type:tm,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:em})})},this.menuRef=h=>{this._menuNode=h},this.getMenuProps=function(h,g){let{refKey:m="ref",ref:w,...S}=h===void 0?{}:h,{suppressRefError:y=!1}=g===void 0?{}:g;return r.getMenuProps.called=!0,r.getMenuProps.refKey=m,r.getMenuProps.suppressRefError=y,{[m]:Fr(w,r.menuRef),role:"listbox","aria-labelledby":S&&S["aria-label"]?null:r.labelId,id:r.menuId,...S}},this.getItemProps=function(h){let{onMouseMove:g,onMouseDown:m,onClick:w,onPress:S,index:y,item:k=Ae.NODE_ENV==="production"?void 0:nC("getItemProps","item"),...v}=h===void 0?{}:h;y===void 0?(r.items.push(k),y=r.items.indexOf(k)):r.items[y]=k;const _="onClick",A=w,x={onMouseMove:kt(g,()=>{y!==r.getState().highlightedIndex&&(r.setHighlightedIndex(y,{type:Jg}),r.avoidScrolling=!0,r.internalSetTimeout(()=>r.avoidScrolling=!1,250))}),onMouseDown:kt(m,R=>{R.preventDefault()}),[_]:kt(A,()=>{r.selectItemAtIndex(y,{type:Zg})})},f=v.disabled?{onMouseDown:x.onMouseDown}:x;return{id:r.getItemId(y),role:"option","aria-selected":r.getState().highlightedIndex===y,...f,...v}},this.clearItems=()=>{this.items=[]},this.reset=function(h,g){h===void 0&&(h={}),h=Ti(h),r.internalSetState(m=>{let{selectedItem:w}=m;return{isOpen:r.props.defaultIsOpen,highlightedIndex:r.props.defaultHighlightedIndex,inputValue:r.props.itemToString(w),...h}},g)},this.toggleMenu=function(h,g){h===void 0&&(h={}),h=Ti(h),r.internalSetState(m=>{let{isOpen:w}=m;return{isOpen:!w,...w&&{highlightedIndex:r.props.defaultHighlightedIndex},...h}},()=>{const{isOpen:m,highlightedIndex:w}=r.getState();m&&r.getItemCount()>0&&typeof w=="number"&&r.setHighlightedIndex(w,h),Ih(g)()})},this.openMenu=h=>{this.internalSetState({isOpen:!0},h)},this.closeMenu=h=>{this.internalSetState({isOpen:!1},h)},this.updateStatus=Ds(()=>{const h=this.getState(),g=this.items[h.highlightedIndex],m=this.getItemCount(),w=this.props.getA11yStatusMessage({itemToString:this.props.itemToString,previousResultCount:this.previousResultCount,resultCount:m,highlightedItem:g,...h});this.previousResultCount=m,Wg(w,this.props.environment.document)},200);const{defaultHighlightedIndex:i,initialHighlightedIndex:s=i,defaultIsOpen:o,initialIsOpen:l=o,initialInputValue:u="",initialSelectedItem:c=null}=this.props,d=this.getState({highlightedIndex:s,isOpen:l,inputValue:u,selectedItem:c});d.selectedItem!=null&&this.props.initialInputValue===void 0&&(d.inputValue=this.props.itemToString(d.selectedItem)),this.state=d}internalClearTimeouts(){this.timeoutIds.forEach(n=>{clearTimeout(n)}),this.timeoutIds=[]}getState(n){return n===void 0&&(n=this.state),cs(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,r){const i=this.getItemCount(),{highlightedIndex:s}=this.getState();if(i>0){const o=pr(n,s,i,l=>this.getItemNodeFromIndex(l));this.setHighlightedIndex(o,r)}}getStateAndHelpers(){const{highlightedIndex:n,inputValue:r,selectedItem:i,isOpen:s}=this.getState(),{itemToString:o}=this.props,{id:l}=this,{getRootProps:u,getToggleButtonProps:c,getLabelProps:d,getMenuProps:h,getInputProps:g,getItemProps:m,openMenu:w,closeMenu:S,toggleMenu:y,selectItem:k,selectItemAtIndex:v,selectHighlightedItem:_,setHighlightedIndex:A,clearSelection:x,clearItems:f,reset:R,setItemCount:V,unsetItemCount:L,internalSetState:N}=this;return{getRootProps:u,getToggleButtonProps:c,getLabelProps:d,getMenuProps:h,getInputProps:g,getItemProps:m,reset:R,openMenu:w,closeMenu:S,toggleMenu:y,selectItem:k,selectItemAtIndex:v,selectHighlightedItem:_,setHighlightedIndex:A,clearSelection:x,clearItems:f,setItemCount:V,unsetItemCount:L,setState:N,itemToString:o,id:l,highlightedIndex:n,inputValue:r,isOpen:s,selectedItem:i}}componentDidMount(){Ae.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&Th(this._menuNode,this.getMenuProps);{const n=()=>{this.isMouseDown=!0},r=u=>{this.isMouseDown=!1,!ps(u.target,[this._rootNode,this._menuNode],this.props.environment)&&this.getState().isOpen&&this.reset({type:Kg},()=>this.props.onOuterClick(this.getStateAndHelpers()))},i=()=>{this.isTouchMove=!1},s=()=>{this.isTouchMove=!0},o=u=>{const c=ps(u.target,[this._rootNode,this._menuNode],this.props.environment,!1);!this.isTouchMove&&!c&&this.getState().isOpen&&this.reset({type:sm},()=>this.props.onOuterClick(this.getStateAndHelpers()))},{environment:l}=this.props;l.addEventListener("mousedown",n),l.addEventListener("mouseup",r),l.addEventListener("touchstart",i),l.addEventListener("touchmove",s),l.addEventListener("touchend",o),this.cleanup=()=>{this.internalClearTimeouts(),this.updateStatus.cancel(),l.removeEventListener("mousedown",n),l.removeEventListener("mouseup",r),l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",s),l.removeEventListener("touchend",o)}}}shouldScroll(n,r){const{highlightedIndex:i}=this.props.highlightedIndex===void 0?this.getState():this.props,{highlightedIndex:s}=r.highlightedIndex===void 0?n:r;return i&&this.getState().isOpen&&!n.isOpen||i!==s}componentDidUpdate(n,r){Ae.NODE_ENV!=="production"&&(yl(this.state,n,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&Th(this._menuNode,this.getMenuProps)),Za(this.props,"selectedItem")&&this.props.selectedItemChanged(n.selectedItem,this.props.selectedItem)&&this.internalSetState({type:im,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(r,n)&&this.scrollHighlightedItemIntoView(),this.updateStatus()}componentWillUnmount(){this.cleanup()}render(){const n=Ah(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;const r=Ah(n(this.getStateAndHelpers()));if(!r)return null;if(this.getRootProps.called||this.props.suppressRefError)return Ae.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&lC(r,this.getRootProps),r;if(Hg(r))return D.cloneElement(r,this.getRootProps($g(r)));if(Ae.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:tC,itemToString:t=>t==null?"":(Ae.NODE_ENV!=="production"&&iC(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:(t,n)=>t!==n,environment:typeof window>"u"?{}:window,stateReducer:(t,n)=>n,suppressRefError:!1,scrollIntoView:zg},e.stateChangeTypes=aC,e})();Ae.NODE_ENV!=="production"&&(oC.propTypes={children:ue.func,defaultHighlightedIndex:ue.number,defaultIsOpen:ue.bool,initialHighlightedIndex:ue.number,initialSelectedItem:ue.any,initialInputValue:ue.string,initialIsOpen:ue.bool,getA11yStatusMessage:ue.func,itemToString:ue.func,onChange:ue.func,onSelect:ue.func,onStateChange:ue.func,onInputValueChange:ue.func,onUserAction:ue.func,onOuterClick:ue.func,selectedItemChanged:ue.func,stateReducer:ue.func,itemCount:ue.number,id:ue.string,environment:ue.shape({addEventListener:ue.func,removeEventListener:ue.func,document:ue.shape({getElementById:ue.func,activeElement:ue.any,body:ue.any})}),suppressRefError:ue.bool,scrollIntoView:ue.func,selectedItem:ue.any,isOpen:ue.bool,inputValue:ue.string,highlightedIndex:ue.number,labelId:ue.string,inputId:ue.string,menuId:ue.string,getItemId:ue.func});function Th(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 lC(e,t){let{refKey:n}=t;const r=n!=="ref",i=!Hg(e);i&&!r&&!Sh.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!i&&r&&console.error(`downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "${n}"`),!Sh.isForwardRef(e)&&!$g(e)[n]&&console.error(`downshift: You must apply the ref prop "${n}" from getRootProps onto your root element.`)}const am={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function uC(e,t,n){const{props:r,type:i}=e,s={};Object.keys(t).forEach(o=>{cC(o,e,t,n),n[o]!==t[o]&&(s[o]=n[o])}),r.onStateChange&&Object.keys(s).length&&r.onStateChange({type:i,...s})}function cC(e,t,n,r){const{props:i,type:s}=t,o=`on${wl(e)}Change`;i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o]({type:s,...r})}function hC(e,t){return t.changes}function pC(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""}const dC=Ds((e,t)=>{Wg(e(),t)},200),fC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?D.useLayoutEffect:D.useEffect;function gC(e){let{id:t=`downshift-${Bg()}`,labelId:n,menuId:r,getItemId:i,toggleButtonId:s,inputId:o}=e;return D.useRef({labelId:n||`${t}-label`,menuId:r||`${t}-menu`,getItemId:i||(u=>`${t}-item-${u}`),toggleButtonId:s||`${t}-toggle-button`,inputId:o||`${t}-input`}).current}function mC(e,t,n){return e!==void 0?e:n.length===0?-1:n.indexOf(t)}function xC(e){return e?String(e):""}function Nh(e){return/^\S{1}$/.test(e)}function wl(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function om(e){const t=D.useRef(e);return t.current=e,t}function vC(e,t,n){const r=D.useRef(),i=D.useRef(),s=D.useCallback((h,g)=>{i.current=g,h=cs(h,g.props);const m=e(h,g);return g.props.stateReducer(h,{...g,changes:m})},[e]),[o,l]=D.useReducer(s,t),u=om(n),c=D.useCallback(h=>l({props:u.current,...h}),[u]),d=i.current;return D.useEffect(()=>{d&&r.current&&r.current!==o&&uC(d,cs(r.current,d.props),o),r.current=o},[o,n,d]),[o,c]}function bC(e,t,n){const[r,i]=vC(e,t,n);return[cs(r,n),i]}const zr={itemToString:xC,stateReducer:hC,getA11ySelectionMessage:pC,scrollIntoView:zg,circularNavigation:!1,environment:typeof window>"u"?{}:window};function Sn(e,t,n){n===void 0&&(n=am);const r=e[`default${wl(t)}`];return r!==void 0?r:n[t]}function Ni(e,t,n){n===void 0&&(n=am);const r=e[t];if(r!==void 0)return r;const i=e[`initial${wl(t)}`];return i!==void 0?i:Sn(e,t,n)}function yC(e){const t=Ni(e,"selectedItem"),n=Ni(e,"isOpen"),r=Ni(e,"highlightedIndex"),i=Ni(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function ds(e,t,n,r){const{items:i,initialHighlightedIndex:s,defaultHighlightedIndex:o}=e,{selectedItem:l,highlightedIndex:u}=t;return i.length===0?-1:s!==void 0&&u===s?s:o!==void 0?o:l?n===0?i.indexOf(l):pr(n,i.indexOf(l),i.length,r,!1):n===0?-1:n<0?i.length-1:0}function wC(e,t,n,r){const i=D.useRef({isMouseDown:!1,isTouchMove:!1});return D.useEffect(()=>{const s=()=>{i.current.isMouseDown=!0},o=d=>{i.current.isMouseDown=!1,e&&!ps(d.target,t.map(h=>h.current),n)&&r()},l=()=>{i.current.isTouchMove=!1},u=()=>{i.current.isTouchMove=!0},c=d=>{e&&!i.current.isTouchMove&&!ps(d.target,t.map(h=>h.current),n,!1)&&r()};return n.addEventListener("mousedown",s),n.addEventListener("mouseup",o),n.addEventListener("touchstart",l),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",s),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",l),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}},[e,n]),i}let lm=()=>Qt;Ae.NODE_ENV!=="production"&&(lm=function(){const e=D.useRef(!0);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=D.useRef(n.reduce((o,l)=>(o[l]={},o),{}));return D.useEffect(()=>{Object.keys(i.current).forEach(o=>{const l=i.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:c,elementRef:d}=l;(!d||!d.current)&&!u&&console.error(`downshift: The ref prop "${c}" from ${o} was not applied correctly on your element.`)}),e.current=!1}),D.useCallback((o,l,u,c)=>{i.current[o]={suppressRefError:l,refKey:u,elementRef:c}},[])});function Oh(e,t,n){let{isInitialMount:r,highlightedIndex:i,items:s,environment:o,...l}=n;D.useEffect(()=>{r||dC(()=>e({highlightedIndex:i,highlightedItem:s[i],resultCount:s.length,...l}),o.document)},t)}function kC(e){let{highlightedIndex:t,isOpen:n,itemRefs:r,getItemNodeFromIndex:i,menuElement:s,scrollIntoView:o}=e;const l=D.useRef(!0);return fC(()=>{t<0||!n||!Object.keys(r.current).length||(l.current===!1?l.current=!0:o(i(t),s))},[t]),l}let um=Qt;Ae.NODE_ENV!=="production"&&(um=e=>{let{isInitialMount:t,props:n,state:r}=e;const i=D.useRef(n);D.useEffect(()=>{t||(yl(r,i.current,n),i.current=n)},[r,n,t])});function SC(e,t,n){const{type:r,props:i}=t;let s;switch(r){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:ds(i,e,0)};break;case n.FunctionOpenMenu:s={isOpen:!0,highlightedIndex:ds(i,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:Sn(i,"highlightedIndex"),isOpen:Sn(i,"isOpen"),selectedItem:Sn(i,"selectedItem"),inputValue:Sn(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...s}}function Ph(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,s=e.getItemNodeFromIndex,o=t.toLowerCase(),l=0;l<r.length;l++){var u=(l+n+1)%r.length,c=r[u];if(c!==void 0&&i(c).toLowerCase().startsWith(o)){var d=s(u);if(!(d!=null&&d.hasAttribute("disabled")))return u}}return n}var _C={items:ue.array.isRequired,itemToString:ue.func,getA11yStatusMessage:ue.func,getA11ySelectionMessage:ue.func,circularNavigation:ue.bool,highlightedIndex:ue.number,defaultHighlightedIndex:ue.number,initialHighlightedIndex:ue.number,isOpen:ue.bool,defaultIsOpen:ue.bool,initialIsOpen:ue.bool,selectedItem:ue.any,initialSelectedItem:ue.any,defaultSelectedItem:ue.any,id:ue.string,labelId:ue.string,menuId:ue.string,getItemId:ue.func,toggleButtonId:ue.string,stateReducer:ue.func,onSelectedItemChange:ue.func,onHighlightedIndexChange:ue.func,onStateChange:ue.func,onIsOpenChange:ue.func,environment:ue.shape({addEventListener:ue.func,removeEventListener:ue.func,document:ue.shape({getElementById:ue.func,activeElement:ue.any,body:ue.any})})};function EC(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".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 IC=Wi(Wi({},zr),{getA11yStatusMessage:EC}),cm=Qt;Ae.NODE_ENV!=="production"&&(cm=function(e,t){ue.checkPropTypes(_C,e,"prop",t.name)});const kl=Ae.NODE_ENV!=="production"?"__menu_keydown_arrow_down__":0,Sl=Ae.NODE_ENV!=="production"?"__menu_keydown_arrow_up__":1,_l=Ae.NODE_ENV!=="production"?"__menu_keydown_escape__":2,El=Ae.NODE_ENV!=="production"?"__menu_keydown_home__":3,Il=Ae.NODE_ENV!=="production"?"__menu_keydown_end__":4,Cl=Ae.NODE_ENV!=="production"?"__menu_keydown_enter__":5,Al=Ae.NODE_ENV!=="production"?"__menu_keydown_space_button__":6,Tl=Ae.NODE_ENV!=="production"?"__menu_keydown_character__":7,fs=Ae.NODE_ENV!=="production"?"__menu_blur__":8,hm=Ae.NODE_ENV!=="production"?"__menu_mouse_leave__":9,pm=Ae.NODE_ENV!=="production"?"__item_mouse_move__":10,Nl=Ae.NODE_ENV!=="production"?"__item_click__":11,dm=Ae.NODE_ENV!=="production"?"__togglebutton_click__":12,Ol=Ae.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_down__":13,Pl=Ae.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_up__":14,Rl=Ae.NODE_ENV!=="production"?"__togglebutton_keydown_character__":15,fm=Ae.NODE_ENV!=="production"?"__function_toggle_menu__":16,gm=Ae.NODE_ENV!=="production"?"__function_open_menu__":17,mm=Ae.NODE_ENV!=="production"?"__function_close_menu__":18,xm=Ae.NODE_ENV!=="production"?"__function_set_highlighted_index__":19,Dl=Ae.NODE_ENV!=="production"?"__function_select_item__":20,to=Ae.NODE_ENV!=="production"?"__function_set_input_value__":21,vm=Ae.NODE_ENV!=="production"?"__function_reset__":22;var bm=Object.freeze({__proto__:null,MenuKeyDownArrowDown:kl,MenuKeyDownArrowUp:Sl,MenuKeyDownEscape:_l,MenuKeyDownHome:El,MenuKeyDownEnd:Il,MenuKeyDownEnter:Cl,MenuKeyDownSpaceButton:Al,MenuKeyDownCharacter:Tl,MenuBlur:fs,MenuMouseLeave:hm,ItemMouseMove:pm,ItemClick:Nl,ToggleButtonClick:dm,ToggleButtonKeyDownArrowDown:Ol,ToggleButtonKeyDownArrowUp:Pl,ToggleButtonKeyDownCharacter:Rl,FunctionToggleMenu:fm,FunctionOpenMenu:gm,FunctionCloseMenu:mm,FunctionSetHighlightedIndex:xm,FunctionSelectItem:Dl,FunctionSetInputValue:to,FunctionReset:vm});function CC(e,t){const{type:n,props:r,shiftKey:i}=t;let s;switch(n){case Nl:s={isOpen:Sn(r,"isOpen"),highlightedIndex:Sn(r,"highlightedIndex"),selectedItem:r.items[t.index]};break;case Rl:{const o=t.key,l=`${e.inputValue}${o}`,u=Ph({keysSoFar:l,highlightedIndex:e.selectedItem?r.items.indexOf(e.selectedItem):-1,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});s={inputValue:l,...u>=0&&{selectedItem:r.items[u]}}}break;case Ol:s={highlightedIndex:ds(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case Pl:s={highlightedIndex:ds(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case Cl:case Al:s={isOpen:Sn(r,"isOpen"),highlightedIndex:Sn(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case El:s={highlightedIndex:Kn(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case Il:s={highlightedIndex:Kn(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case _l:s={isOpen:!1,highlightedIndex:-1};break;case fs:s={isOpen:!1,highlightedIndex:-1};break;case Tl:{const o=t.key,l=`${e.inputValue}${o}`,u=Ph({keysSoFar:l,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});s={inputValue:l,...u>=0&&{highlightedIndex:u}}}break;case kl:s={highlightedIndex:pr(i?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case Sl:s={highlightedIndex:pr(i?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case Dl:s={selectedItem:t.selectedItem};break;default:return SC(e,t,bm)}return{...e,...s}}Ll.stateChangeTypes=bm;function Ll(e){e===void 0&&(e={}),cm(e,Ll);const t={...IC,...e},{items:n,scrollIntoView:r,environment:i,initialIsOpen:s,defaultIsOpen:o,itemToString:l,getA11ySelectionMessage:u,getA11yStatusMessage:c}=t,d=yC(t),[h,g]=bC(CC,d,t),{isOpen:m,highlightedIndex:w,selectedItem:S,inputValue:y}=h,k=D.useRef(null),v=D.useRef(null),_=D.useRef({}),A=D.useRef(!0),x=D.useRef(null),f=gC(t),R=D.useRef(),V=D.useRef(!0),L=om({state:h,props:t}),N=D.useCallback(F=>_.current[f.getItemId(F)],[f]);Oh(c,[m,w,y,n],{isInitialMount:V.current,previousResultCount:R.current,items:n,environment:i,itemToString:l,...h}),Oh(u,[S],{isInitialMount:V.current,previousResultCount:R.current,items:n,environment:i,itemToString:l,...h});const $=kC({menuElement:v.current,highlightedIndex:w,isOpen:m,itemRefs:_,scrollIntoView:r,getItemNodeFromIndex:N});D.useEffect(()=>(x.current=Ds(F=>{F({type:to,inputValue:""})},500),()=>{x.current.cancel()}),[]),D.useEffect(()=>{y&&x.current(g)},[g,y]),um({isInitialMount:V.current,props:t,state:h}),D.useEffect(()=>{if(V.current){(s||o||m)&&v.current&&v.current.focus();return}if(m){v.current&&v.current.focus();return}i.document.activeElement===v.current&&k.current&&(A.current=!1,k.current.focus())},[m]),D.useEffect(()=>{V.current||(R.current=n.length)});const U=wC(m,[v,k],i,()=>{g({type:fs})}),J=lm("getMenuProps","getToggleButtonProps");D.useEffect(()=>{V.current=!1},[]),D.useEffect(()=>{m||(_.current={})},[m]);const Y=D.useMemo(()=>({ArrowDown(F){F.preventDefault(),g({type:Ol,getItemNodeFromIndex:N,shiftKey:F.shiftKey})},ArrowUp(F){F.preventDefault(),g({type:Pl,getItemNodeFromIndex:N,shiftKey:F.shiftKey})}}),[g,N]),Q=D.useMemo(()=>({ArrowDown(F){F.preventDefault(),g({type:kl,getItemNodeFromIndex:N,shiftKey:F.shiftKey})},ArrowUp(F){F.preventDefault(),g({type:Sl,getItemNodeFromIndex:N,shiftKey:F.shiftKey})},Home(F){F.preventDefault(),g({type:El,getItemNodeFromIndex:N})},End(F){F.preventDefault(),g({type:Il,getItemNodeFromIndex:N})},Escape(){g({type:_l})},Enter(F){F.preventDefault(),g({type:Cl})}," "(F){F.preventDefault(),g({type:Al})}}),[g,N]),Z=D.useCallback(()=>{g({type:fm})},[g]),q=D.useCallback(()=>{g({type:mm})},[g]),K=D.useCallback(()=>{g({type:gm})},[g]),ie=D.useCallback(F=>{g({type:xm,highlightedIndex:F})},[g]),E=D.useCallback(F=>{g({type:Dl,selectedItem:F})},[g]),M=D.useCallback(()=>{g({type:vm})},[g]),H=D.useCallback(F=>{g({type:to,inputValue:F})},[g]),T=D.useCallback(F=>({id:f.labelId,htmlFor:f.toggleButtonId,...F}),[f]),B=D.useCallback(function(F,te){let{onMouseLeave:ee,refKey:ne="ref",onKeyDown:le,onBlur:G,ref:ae,...ce}=F===void 0?{}:F,{suppressRefError:Ie=!1}=te===void 0?{}:te;const Ce=L.current.state,Re=Ne=>{const Ke=hs(Ne);Ke&&Q[Ke]?Q[Ke](Ne):Nh(Ke)&&g({type:Tl,key:Ke,getItemNodeFromIndex:N})},Ve=()=>{if(A.current===!1){A.current=!0;return}!U.current.isMouseDown&&g({type:fs})},Oe=()=>{g({type:hm})};return J("getMenuProps",Ie,ne,v),{[ne]:Fr(ae,Ne=>{v.current=Ne}),id:f.menuId,role:"listbox","aria-labelledby":f.labelId,tabIndex:-1,...Ce.isOpen&&Ce.highlightedIndex>-1&&{"aria-activedescendant":f.getItemId(Ce.highlightedIndex)},onMouseLeave:kt(ee,Oe),onKeyDown:kt(le,Re),onBlur:kt(G,Ve),...ce}},[g,L,Q,U,J,f,N]),z=D.useCallback(function(F,te){let{onClick:ee,onKeyDown:ne,refKey:le="ref",ref:G,...ae}=F===void 0?{}:F,{suppressRefError:ce=!1}=te===void 0?{}:te;const Ie=()=>{g({type:dm})},Ce=Ve=>{const Oe=hs(Ve);Oe&&Y[Oe]?Y[Oe](Ve):Nh(Oe)&&g({type:Rl,key:Oe,getItemNodeFromIndex:N})},Re={[le]:Fr(G,Ve=>{k.current=Ve}),id:f.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":L.current.state.isOpen,"aria-labelledby":`${f.labelId} ${f.toggleButtonId}`,...ae};return ae.disabled||(Re.onClick=kt(ee,Ie),Re.onKeyDown=kt(ne,Ce)),J("getToggleButtonProps",ce,le,k),Re},[g,L,Y,J,f,N]),W=D.useCallback(function(F){let{item:te,index:ee,onMouseMove:ne,onClick:le,refKey:G="ref",ref:ae,disabled:ce,...Ie}=F===void 0?{}:F;const{state:Ce,props:Re}=L.current,Ve=()=>{ee!==Ce.highlightedIndex&&($.current=!1,g({type:pm,index:ee,disabled:ce}))},Oe=()=>{g({type:Nl,index:ee})},Ne=mC(ee,te,Re.items);if(Ne<0)throw new Error("Pass either item or item index in getItemProps!");const Ke={disabled:ce,role:"option","aria-selected":`${Ne===Ce.highlightedIndex}`,id:f.getItemId(Ne),[G]:Fr(ae,vt=>{vt&&(_.current[f.getItemId(Ne)]=vt)}),...Ie};return ce||(Ke.onClick=kt(le,Oe)),Ke.onMouseMove=kt(ne,Ve),Ke},[g,L,$,f]);return{getToggleButtonProps:z,getLabelProps:T,getMenuProps:B,getItemProps:W,toggleMenu:Z,openMenu:K,closeMenu:q,setHighlightedIndex:ie,selectItem:E,reset:M,setInputValue:H,highlightedIndex:w,isOpen:m,selectedItem:S,inputValue:y}}ue.array.isRequired,ue.func,ue.func,ue.func,ue.bool,ue.number,ue.number,ue.number,ue.bool,ue.bool,ue.bool,ue.any,ue.any,ue.any,ue.string,ue.string,ue.string,ue.string,ue.string,ue.string,ue.func,ue.string,ue.string,ue.func,ue.func,ue.func,ue.func,ue.func,ue.func,ue.shape({addEventListener:ue.func,removeEventListener:ue.func,document:ue.shape({getElementById:ue.func,activeElement:ue.any,body:ue.any})});({...zr});ue.array,ue.array,ue.array,ue.func,ue.func,ue.func,ue.number,ue.number,ue.number,ue.func,ue.func,ue.string,ue.string,ue.shape({addEventListener:ue.func,removeEventListener:ue.func,document:ue.shape({getElementById:ue.func,activeElement:ue.any,body:ue.any})});zr.itemToString,zr.stateReducer,zr.environment;const Rh=[{label:"json",value:"json"},{label:"csv",value:"csv"}],AC=({onSelect:e})=>{const{isOpen:t,selectedItem:n,getToggleButtonProps:r,getMenuProps:i,getItemProps:s}=Ll({items:Rh,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",{className:yt("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}),...r(),children:[C.jsx("span",{className:"text-grey-50 text-xs",children:n?n.label:"Select a file format"}),C.jsx(ot.FdDown,{className:"w-4 h-4"})]}),C.jsx("ul",{className:yt("h-full rounded-b py-[6px]",{hidden:!t,"border-[1px] border-primary-dark":t}),...i(),children:t&&Rh.map((o,l)=>C.jsx("li",{className:yt("h-5 p-1 bg-grey-900 text-xs hover:bg-primary-hover cursor-pointer"),...s({item:o,index:l}),children:o.label},l))})]})},TC=({enable:e,onSelect:t})=>{const{state:n,actions:r}=ve.useStateObject({delimiters:[{label:"Comma",value:","},{label:"Semicolon",value:";"}],selected:","});return D.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(Su.Group,{className:"flex flex-row items-center space-x-2",value:n.selected,onChange:i=>r.setSelected(i),children:n.delimiters.map(({label:i,value:s})=>C.jsx(Su.Item,{value:s,label:`${i} (${s})`}))})]}):C.jsx(C.Fragment,{})},NC={SELECT_FILE_TYPE:"Please Select a File Format !"},OC=({toExport:e})=>{var Z;const[t,n]=D.useState(),r=Fn(),i=r.getWebformTabs(),s=D.useRef(null),o=D.useRef([]),l=D.useRef([]),{i18n:u}=Jn(),c=((Z=r.getUserComponents)==null?void 0:Z.call(r))??{},d=r.buildResolver??{},[h,g]=D.useState(!1),[m]=D.useState(!0),{state:{isOpen:w,fileType:S,error:y,csvDelimier:k},actions:v}=ve.useStateObject({error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],csvDelimier:","}),_=e.length===0;D.useEffect(()=>{ve.tasksManagerSubject.subscribe({next:q=>{if(q.type==="i18n"&&q.action==="cancel"){const{id:K}=q;l.current.push(K)}}}),n({...d,...c})},[]);const A=()=>{v.setFileType(""),v.setError(""),v.setIsOpen(!1)},x=()=>{A()},f=()=>x(),R=()=>{const q={};t&&(Object.entries(t).forEach(([K,ie])=>{const{info:{settings:E}}=ie;if(E)if(K==="Text")q.Text=[{keyPropName:"doc",keyDefaultName:"text"}];else{const M=V(E,"");q[K]=M}}),s.current=q)},V=(q,K)=>{let ie=[];if(Array.isArray(q))q.forEach(E=>ie=ie.concat(V(E,K)));else if(xe.isObject(q)){const{key:E,type:M}=q;if(M===ve.ESetting.GROUP){const{components:H}=q;H.forEach(T=>ie=ie.concat(V(T,K)))}else M===ve.ESetting.I18NFIELD?ie.push({keyPropName:K||E,keyDefaultName:E}):Object.entries(q).forEach(([,H])=>{xe.isObject(H)&&(ie=ie.concat(V(H,K||E)))})}return ie},L=(q,K)=>{const{content:ie}=q,{components:E}=ie,M={};if(!E)return q;const H=(B,z,W,F)=>{const te=[];if(xe.has(B,W)){const le=xe.get(B,W);te.push(...Xa(le,W,F))}const ne=[];return te.forEach(le=>{const G=xe.get(B,le),ae={__dataPath:le,__default:G};e.forEach(ce=>{const Ie=`i18n:${ce}`,Ce=Object.keys(z),Re=Ce.find(Oe=>Oe.startsWith(Ie)),Ve=Ce.reduce((Oe,Ne)=>(Ne!==Ie&&Ne.endsWith(Ie)&&Oe.push(Ne),Oe),[]);if(Re){const Oe=xe.get(z,`${Re}.${le}`);xe.set(ae,ce,Oe)}if(Ve.length&&Ve.forEach(Oe=>{const Ne=xe.get(z,`${Oe}.${le}`);let Ke=Oe;Ke=Oe.replace("states:",""),Ke=Ke.replace("i18n:",""),Ne&&xe.set(ae,Ke,Ne)}),!Re){const Oe=xe.get(B,`${le}`);xe.set(ae,ce,Oe)}}),ne.push(ae)}),ne},T=(B,z,W)=>{const F=[],te=xe.get(B,W);return te?(F.push({key:"__default",props:te}),e.forEach(ne=>{const le=`i18n:${ne}`,G=Object.keys(z),ae=G.find(Ie=>Ie.startsWith(le)),ce=G.reduce((Ie,Ce)=>(Ce!==le&&Ce.endsWith(le)&&Ie.push(Ce),Ie),[]);if(ae){const Ie=xe.get(z,`${ae}.${W}`);Ie&&F.push({key:ne,props:Ie})}ce.length&&ce.forEach(Ie=>{const Ce=xe.get(z,`${Ie}.${W}`);F.push({key:Ie,props:Ce||""})}),!ae&&!ce.length&&F.push({key:ne,props:te})}),F.reduce((ne,le)=>{const{key:G,props:ae}=le,ce=MI(ae);return{...ne,[G]:ce}},{__dataPath:W})):B};return Object.entries(E).forEach(([B,z])=>{const{props:W,custom:F={},type:te}=z,ee=te.resolvedName,ne=K[ee];if(!ne||ne.length===0)return;const le=ne.map(({keyPropName:G,keyDefaultName:ae})=>ee==="Text"?T(W,F,G):H(W,F,G,ae));xe.set(M,B,{resolverName:ee,props:[...le.flat()]})}),M},N=async(q,K)=>{const ie={},E=M=>{const H=M+1===q.length?q.length:M,T=Math.ceil(H/q.length*100);ve.tasksManagerSubject.next({id:K,action:"update",type:"i18n",payload:{progress:T,status:T>=100?"finished":"ongoing"}})};for(let M=0;M<q.length;M++){const H=q[M],T=i.find(W=>W.name===H.name&&W.type==="webform");if(!s.current){E(M);continue}const B=T||await ve.getNodeInfo({verb:ve.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${H.name}.${H.ext}`,as:"json"}),z=L(B,s.current);if(xe.isEmpty(z)||xe.set(ie,H.name,z),l.current.find(W=>W===K))return{};E(M)}return ie},$=(q,K,ie)=>{const E="data:text/json;charset=utf-8,"+encodeURIComponent(q),M=document.createElement("a");M.setAttribute("href",E),M.setAttribute("download",K+`.${ie}`),document.body.appendChild(M),M.click(),M.remove()},U=q=>{switch(S){case"csv":{const K=["keys","resolverName","__t"].concat(e);return LI(q,K,k)}case"json":return JSON.stringify(q,null," ");default:return JSON.stringify(q,null," ")}},J=(q,K)=>{Object.entries(K.keys).forEach(([E,M])=>{Object.keys(M).forEach(H=>{o.current.push(`i18n.${E}.${H}`)})});const ie={};return Object.entries(K.keys).forEach(([E,M])=>{ie[E]={default:M.default},e.forEach(H=>{ie[E][H]=Object.hasOwn(M,H)?M[H]:m?M.default:void 0})}),{webforms:{...q},i18n:ie}},Y=q=>v.setCsvDelimier(q),Q=async()=>{const q=no.generate().toString();try{ve.tasksManagerSubject.next({id:q,action:"add",type:"i18n",payload:{progress:0,name:"Export i18n",status:"ongoing",date:new Date().toISOString(),time:DI()}}),R();const K=await Vg(),ie=await N(K,q),E=J(ie,u),M=U(E);xe.isEmpty(M)||$(M,"export-i18n",S),A()}catch(K){ve.tasksManagerSubject.next({id:q,type:"i18n",action:"update",payload:{status:"canceled"}}),ve.tasksManagerSubject.next({id:q,type:"i18n",action:"error",payload:{errorMessage:K.message||"Export file error"}})}A()};return C.jsxs(C.Fragment,{children:[C.jsx(At,{label:"Export",isOpen:h,children:C.jsx("button",{disabled:_,className:yt("flex h-full flex-row items-center p-1 rounded disabled:opacity-50",{"cursor-not-allowed":_},{"hover:bg-primary-hover":!_}),onClick:()=>{v.setIsOpen(!0),g(!1)},onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:C.jsx(ot.FdUpload,{className:"h-4 w-4"})})}),C.jsxs(Mg,{isOpen:w,onClose:x,title:"Export",children:[C.jsx("div",{className:"mt-4",children:C.jsx(AC,{onSelect:q=>v.setFileType(q)})}),C.jsx(TC,{enable:S==="csv",onSelect:Y}),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.qodly.com/docs/","_blank")},children:[C.jsx("p",{className:"text-xs",children:"How to Export an i18n File"}),C.jsx(ot.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",{onClick:()=>{S?(v.setIsOpen(!1),Q()):v.setError(NC.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"})]})]}),y&&C.jsx("div",{className:"flex items-center justify-center p-2",children:C.jsx("span",{className:"text-sm text-red-500",children:y})})]})]})},PC=({onClick:e})=>C.jsx(At,{label:"Edit",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:t=>{t.stopPropagation(),e()},children:C.jsx(ot.FdPen,{})})}),RC=({onClick:e,disable:t})=>t?C.jsx(C.Fragment,{}):C.jsx(At,{label:"Remove",children:C.jsx(Rt,{color:"white",variant:"ghost",disabled:t,onClick:n=>{n.stopPropagation(),e()},children:C.jsx(ot.FdTrash,{})})}),DC=({collapse:e,onClick:t})=>C.jsx(At,{label:"Collapse",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:n=>{n.stopPropagation(),t()},children:C.jsx(ot.FdDown,{className:yt({"-rotate-90":e})})})}),LC=({lang:e,onCancel:t,onConfirm:n})=>{var m,w,S;const{allSupportedLanguages:r}=Gn(),{i18n:i}=Jn(),s=D.useMemo(()=>{var k,v;const y=new Set;return(k=i==null?void 0:i.userLang)!=null&&k.primary&&y.add(i.userLang.primary),(v=i==null?void 0:i.userLang)!=null&&v.supported&&i.userLang.supported.forEach(_=>{y.add(_.isocode)}),r},[r,(m=i==null?void 0:i.userLang)==null?void 0:m.primary,(w=i==null?void 0:i.userLang)==null?void 0:w.supported]),{state:{isOpen:o,supported:l,selectedLanguage:u},actions:c}=ve.useStateObject({isOpen:!0,supported:s,editing:!1,selectedLanguage:null,highlightedLanguageIndex:-1}),d=ve.useOutsideClick(()=>{u&&n(u)}),h=()=>{t()},g=()=>{u?n(u):t()};return C.jsxs(br,{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:[C.jsx(pc.Root,{className:"w-48",downshiftParams:{isOpen:o,onOpenChange:c.setIsOpen,value:u,isSearchable:!0,options:s,getOptionLabel(y){const k=ts(y.isocode,r);return`${k==null?void 0:k.native} - ${k==null?void 0:k.isocode}`},getOptionValue(y){return y.isocode},onChange:y=>{y&&(c.setSelectedLanguage({isocode:y.isocode}),c.setSupported(s))}},children:C.jsx(pc.Field,{autoFocus:!0,hideSelectedOptions:!0,placeholder:((S=ts(e==null?void 0:e.isocode,r))==null?void 0:S.locale)||"Select a language",onKeyUp:y=>{y.key==="Enter"&&g()},onClick:()=>c.setIsOpen(!0)})}),C.jsxs("div",{className:"flex space-x-1",children:[C.jsx(At,{label:"Cancel",children:C.jsx(Rt,{onClick:h,color:"white",variant:"ghost",children:C.jsx(ot.FdClose,{})})}),C.jsx(At,{label:"Confirm",children:C.jsx(Rt,{onClick:g,color:"white",variant:"ghost",children:C.jsx(ot.FdCheckCircle,{})})})]})]})},ym=({activate:e,...t})=>e?C.jsx(LC,{...t}):C.jsx(C.Fragment,{}),VC=({primary:e,selected:t,selectMode:n,lang:r,onSelect:i,onRemove:s,onEdit:o})=>{const{state:{hover:l,selected:u,collapse:c,editing:d},actions:{setHover:h,setSelected:g,setCollapse:m,setEditing:w}}=ve.useStateObject({hover:!1,selected:!1,collapse:!0,editing:!1}),{selectedLanguage:S,setSelectedLanguage:y}=Gn(),{isocode:k,locale:v,native:_}=r||{isocode:"",locale:"",native:""},A=e===k,x=()=>{h(!0)},f=()=>{h(!1)},R=()=>{g(!u),i(k,!u)},V=()=>{w(!0)},L=()=>{s(k)},N=()=>{y(r)},$=J=>{w(!1),o(r,J)},U=()=>{w(!1)};return D.useEffect(()=>{g(t)},[t]),D.useEffect(()=>{A&&y(r)},[]),d?C.jsx(ym,{lang:r,activate:d,onCancel:U,onConfirm:$}):C.jsxs(br,{depth:4,borderType:(S==null?void 0:S.isocode)===(r==null?void 0:r.isocode)?"primary":"light",className:yt("border-[1px] mb-2 flex flex-col space-y-2 rounded px-2 py-2 hover:cursor-pointer"),onMouseEnter:x,onMouseLeave:f,onClick:N,children:[C.jsxs("div",{className:"flex flex-row justify-between items-center",children:[C.jsxs("div",{className:"flex flex-row space-x-1",children:[l||n?C.jsx(oo,{value:u,onChange:R,size:"sm"}):C.jsx(C.Fragment,{}),C.jsx(ot.FdLocalization,{className:yt("w-4 h-4",{hidden:n||l})}),C.jsx("span",{className:yt("text-xs",{"italic font-bold":A}),children:_})]}),C.jsxs("div",{className:"flex flex-row items-center space-x-1",children:[A&&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(PC,{onClick:V}),C.jsx(RC,{disable:A,onClick:L}),C.jsx(DC,{collapse:c,onClick:()=>m(!c)})]})]}),C.jsxs("div",{className:yt("ml-6 flex justify-between p-1 text-xs",{hidden:c}),children:[C.jsx("span",{children:"English name"}),C.jsx("span",{className:"text-muted",children:v})]}),C.jsxs("div",{className:yt("ml-6 flex justify-between p-1 text-xs",{hidden:c}),children:[C.jsx("span",{children:"Iso Code"}),C.jsx("span",{className:"text-muted",children:k})]})]})},MC=()=>{const{state:{selectedLanguages:e,shouldAddNewLocal:t,selectAll:n},actions:r}=ve.useStateObject({selectAll:!1,selectedLanguages:[],shouldAddNewLocal:!1,allSupportedLanguages:[]}),{userLanguages:{supported:i=[],primary:s},addFirstLanguage:o,setAddFirstLanguage:l,setUserLangSettings:u,setSelectedLanguage:c,allSupportedLanguages:d}=Gn(),{editLanguageKeys:h,deleteLanguageKeys:g}=Jn(),m=Xm(e),w=Zm(e),S=Fn(),y=S.getI18nCurrent(),k=S.getTabs(),v=(Y,Q)=>{const Z=Q?e.concat(Y):e.filter(q=>q!==Y);r.setSelectedLanguages(Z),n&&r.setSelectAll(!1)},_=Y=>{r.setShouldAddNewLocal(Y)},A=()=>{r.setSelectAll(!n),n?r.setSelectedLanguages([]):r.setSelectedLanguages(i.map(Y=>Y.isocode))},x=Y=>{const Q={primary:i.length===0?Y.isocode:s,supported:i.concat(Y)};u(Q),r.setShouldAddNewLocal(!1)};D.useEffect(()=>{o&&r.setShouldAddNewLocal(!0)},[o]);const f=(Y,Q)=>{const Z=`i18n:${Q}`,q=`:i18n:${Q}`,K=ie=>{ie.custom&&Object.keys(ie.custom).forEach(E=>{(E.includes(Z)||E.endsWith(q))&&delete ie.custom[E]})};return Object.values(Y).forEach(ie=>K(ie)),Y},R=(Y,Q)=>Y.map(Z=>{var K;const q=xe.cloneDeep(Z);return(K=q.content)!=null&&K.components&&(q.content={...q.content,components:f({...q.content.components},Q)}),q}),V=(Y,Q,Z)=>{const q=`i18n:${Q}`,K=`:i18n:${Q}`,ie=E=>{E.custom&&Object.keys(E.custom).forEach(M=>{if(M===q){const H=E.custom[M];delete E.custom[M],E.custom[`i18n:${Z}`]=H}else if(M.endsWith(K)){const H=E.custom[M];delete E.custom[M];const T=M.replace(`:i18n:${Q}`,`:i18n:${Z}`);E.custom[T]=H}})};return Object.values(Y).forEach(E=>ie(E)),Y},L=(Y,Q,Z)=>Y.map(q=>{var ie;const K=xe.cloneDeep(q);return(ie=K.content)!=null&&ie.components&&(K.content={...K.content,components:V({...K.content.components},Q,Z)}),K}),N=async Y=>{const{confirmed:Q}=await S.actions.openModal({title:"Delete Language",message:"Your translations will be lost , want to proceed ?",type:ve.ModalType.CONFIRM,color:ve.ModalColor.WARNING,icon:"FdWarningDanger"});if(!Q)return;g({isocode:Y});const Z=R(k,Y);S.actions.setTabs(Z);const q={primary:s,supported:i.filter(K=>K.isocode!==Y)};u(q),e.includes(Y)&&r.setSelectedLanguages(e.filter(K=>K!==Y)),q.supported.length===0&&l(!1),Y===y&&S.actions.setI18nCurrent("")},$=(Y,Q)=>{const Z={primary:s===Y.isocode?Q.isocode:s,supported:i.map(K=>K.isocode===Y.isocode?Q:K)},q=L(k,Y.isocode,Q.isocode);S.actions.setTabs(q),y===Y.isocode&&S.actions.setI18nCurrent(Q.isocode),h(Y,Q),u(Z),c(Q)},U=()=>{_(!1),i.length===0&&l(!1)},J=()=>{t?ve.toastSubject.next({kind:"warning",message:"To add a new locale, please confirm your selection by clicking 'Confirm'"}):_(!0)};return C.jsxs("div",{className:"flex w-72 flex-col space-y-2 px-2 py-3 shrink-0",children:[C.jsxs("div",{className:"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(ot.FdLocalization,{className:"h-4 w-4"}),C.jsx("span",{className:"text-sm",children:"Locales "})]}),C.jsxs("div",{className:"space-x-2",children:[C.jsx(ve.Tip,{tipKey:"editors:i18n:locals",alwaysOn:!0}),C.jsx(At,{label:"Add new language",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:J,children:C.jsx(ot.FdPlus,{})})})]})]}),C.jsxs("div",{className:"flex px-[5px] justify-between",children:[C.jsxs("div",{className:yt("flex items-center justify-center space-x-1",{visible:m,invisible:!m}),children:[C.jsx(oo,{value:n,onChange:A,size:"sm"}),C.jsx("span",{className:"text-xs",children:"Select all"})]}),C.jsxs("div",{className:"flex flex-row items-center justify-center space-x-1",children:[C.jsx(OC,{enable:!0,disable:!1,toExport:e}),C.jsx(BI,{enable:!0,disable:!1})]})]}),C.jsx(ym,{activate:t,onConfirm:x,onCancel:U}),C.jsx("div",{style:{height:t?"calc(100vh - 14.75rem)":"calc(100vh - 11.75rem)"},children:C.jsx(qm,{style:{height:"100%",width:"100%"},children:[...i].sort(Y=>Y.isocode===s?-1:1).map((Y,Q)=>{const Z=ts(Y.isocode,d);return C.jsx(VC,{primary:s,selected:n||e.includes(Z==null?void 0:Z.isocode),lang:Z,onSelect:v,selectMode:w,onRemove:N,onEdit:$},Q)})})})]})},jC=({onAddLocal:e})=>C.jsxs(br,{depth:1,className:"flex flex-col justify-center items-center space-y-3 pb-[30%] w-full h-full text-inactive-text",children:[C.jsx(ot.FdInfoBold,{className:"h-8 w-8"}),C.jsx("span",{className:"text-sm text-center",children:"No locale is available yet. Click on + to add new one."}),C.jsxs(Rt,{onClick:e,size:"lg",children:[C.jsx(ot.FdPlus,{}),C.jsx("span",{children:"Add new Locale"})]})]}),FC=()=>{var o;const{userLanguages:e,addFirstLanguage:t,setAddFirstLanguage:n}=Gn(),i=(((o=e.supported)==null?void 0:o.length)??0)===0&&!t,s=()=>{n(!0)};return i?C.jsx(jC,{onAddLocal:s}):C.jsxs(br,{depth:1,className:yt("flex flex-row w-full h-full",{"justify-center items-center":i}),children:[C.jsx(MC,{}),C.jsx(Sy,{})]})},Vl=()=>C.jsx(np,{children:C.jsx(FC,{})}),Ml=()=>document.querySelector(`.${io.LOCALIZATION_EDITOR_SCOPE_CLASS}`)||document.body,zC=({container:e,...t})=>C.jsx(ve.Portal,{...t,container:e||Ml()}),BC=()=>{const{modals:e,closeModal:t,editModal:n}=Yh();return C.jsx(C.Fragment,{children:e.map((r,i)=>C.jsx(ve.Modal,{hasOverlay:i===0,...r,onClose:t,onEdit:n,container:Ml()},r.id))})},HC=({onTabsChange:e,onI18nCurrentChange:t})=>{const n=Fn(),r=n.getTabs(),i=n.getI18nCurrent();return ve.useDidMountEffect(()=>{e&&e(r)},[e,r]),ve.useDidMountEffect(()=>{t&&t(i)},[t,i]),C.jsxs(C.Fragment,{children:[C.jsx("div",{className:`relative h-screen z-10 overflow-hidden ${io.LOCALIZATION_EDITOR_SCOPE_CLASS}`,children:C.jsx(Vl,{})}),C.jsx(BC,{})]})},$C=({userComponents:e,buildResolver:t,supportedLanguages:n,...r})=>{const i=Gh(e,t,n);return C.jsx(Wh,{adapter:i,children:C.jsx(Hh,{isI18nEnabled:!0,onI18nChange:()=>{},children:C.jsx(Zh,{children:C.jsx(ve.TipsProvider,{children:C.jsx(HC,{...r})})})})})},WC=({tabs:e=[],i18nCurrent:t="",...n})=>C.jsx(Jh,{tabs:e,i18nCurrent:t,children:C.jsx($C,{...n})});exports.LOCALIZATION_EDITOR_SCOPE_CLASS=io.LOCALIZATION_EDITOR_SCOPE_CLASS;exports.EditorStateAdapterProvider=Wh;exports.EditorStateContext=ms;exports.I18N_ACTIONS=xx;exports.I18N_CONSTANT=Bh;exports.I18nProvider=Hh;exports.LocalizationEditor=Vl;exports.LocalizationEditorProvider=np;exports.LocalizationProvider=Zh;exports.Portal=zC;exports.ReducerAdapterProvider=Jh;exports.Standalone=WC;exports.default=Vl;exports.getDefaultContainer=Ml;exports.getDefaultInitialState=Kh;exports.getLanguageDetails=ts;exports.localizationReducer=qh;exports.useEditorStateAdapter=Fn;exports.useI18n=Jn;exports.useLocalization=ep;exports.useLocalizationEditor=Gn;exports.useModals=Yh;exports.useReducerAdapter=Gh;exports.useReduxAdapter=vx;
155
+ */return e.NODE_ENV!=="production"&&(function(){var t=60103,n=60106,r=60107,i=60108,s=60114,o=60109,l=60110,u=60112,c=60113,d=60120,h=60115,g=60116,m=60121,w=60122,S=60117,y=60129,k=60131;if(typeof Symbol=="function"&&Symbol.for){var v=Symbol.for;t=v("react.element"),n=v("react.portal"),r=v("react.fragment"),i=v("react.strict_mode"),s=v("react.profiler"),o=v("react.provider"),l=v("react.context"),u=v("react.forward_ref"),c=v("react.suspense"),d=v("react.suspense_list"),h=v("react.memo"),g=v("react.lazy"),m=v("react.block"),w=v("react.server.block"),S=v("react.fundamental"),v("react.scope"),v("react.opaque.id"),y=v("react.debug_trace_mode"),v("react.offscreen"),k=v("react.legacy_hidden")}var _=!1;function A(G){return!!(typeof G=="string"||typeof G=="function"||G===r||G===s||G===y||G===i||G===c||G===d||G===k||_||typeof G=="object"&&G!==null&&(G.$$typeof===g||G.$$typeof===h||G.$$typeof===o||G.$$typeof===l||G.$$typeof===u||G.$$typeof===S||G.$$typeof===m||G[0]===w))}function x(G){if(typeof G=="object"&&G!==null){var ae=G.$$typeof;switch(ae){case t:var ce=G.type;switch(ce){case r:case s:case i:case c:case d:return ce;default:var Ie=ce&&ce.$$typeof;switch(Ie){case l:case u:case g:case h:case o:return Ie;default:return ae}}case n:return ae}}}var f=l,R=o,V=t,L=u,N=r,$=g,U=h,J=n,Y=s,Q=i,Z=c,q=!1,K=!1;function ie(G){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function E(G){return K||(K=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function M(G){return x(G)===l}function H(G){return x(G)===o}function T(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function B(G){return x(G)===u}function z(G){return x(G)===r}function W(G){return x(G)===g}function F(G){return x(G)===h}function te(G){return x(G)===n}function ee(G){return x(G)===s}function ne(G){return x(G)===i}function le(G){return x(G)===c}at.ContextConsumer=f,at.ContextProvider=R,at.Element=V,at.ForwardRef=L,at.Fragment=N,at.Lazy=$,at.Memo=U,at.Portal=J,at.Profiler=Y,at.StrictMode=Q,at.Suspense=Z,at.isAsyncMode=ie,at.isConcurrentMode=E,at.isContextConsumer=M,at.isContextProvider=H,at.isElement=T,at.isForwardRef=B,at.isFragment=z,at.isLazy=W,at.isMemo=F,at.isPortal=te,at.isProfiler=ee,at.isStrictMode=ne,at.isSuspense=le,at.isValidElementType=A,at.typeOf=x})(),at}var kh;function ZI(){if(kh)return Ci.exports;kh=1;var e={};return e.NODE_ENV==="production"?Ci.exports=QI():Ci.exports=XI(),Ci.exports}var Sh=ZI();function _h(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Eh(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function Ia(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Eh(n.overflowY,t)||Eh(n.overflowX,t)||(function(r){var i=(function(s){if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(e)}return!1}function Ai(e,t,n,r,i,s,o,l){return s<e&&o>t||s>e&&o<t?0:s<=e&&l<=n||o>=t&&l>=n?s-e-r:o>t&&l<n||s<e&&l>n?o-t+i:0}var eC=function(e,t){var n=window,r=t.inline,i=t.boundary,s=t.skipOverflowHiddenElements,o=typeof i=="function"?i:function(G){return G!==i};if(!_h(e))throw new TypeError("Invalid target");for(var l,u,c=document.scrollingElement||document.documentElement,d=[],h=e;_h(h)&&o(h);){if((h=(u=(l=h).parentElement)==null?l.getRootNode().host||null:u)===c){d.push(h);break}h!=null&&h===document.body&&Ia(h)&&!Ia(document.documentElement)||h!=null&&Ia(h,s)&&d.push(h)}for(var g=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,w=window.scrollX||pageXOffset,S=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),k=y.height,v=y.width,_=y.top,A=y.right,x=y.bottom,f=y.left,R=_,V=r==="center"?f+v/2:r==="end"?A:f,L=[],N=0;N<d.length;N++){var $=d[N],U=$.getBoundingClientRect(),J=U.height,Y=U.width,Q=U.top,Z=U.right,q=U.bottom,K=U.left;if(_>=0&&f>=0&&x<=m&&A<=g&&_>=Q&&x<=q&&f>=K&&A<=Z)return L;var ie=getComputedStyle($),E=parseInt(ie.borderLeftWidth,10),M=parseInt(ie.borderTopWidth,10),H=parseInt(ie.borderRightWidth,10),T=parseInt(ie.borderBottomWidth,10),B=0,z=0,W="offsetWidth"in $?$.offsetWidth-$.clientWidth-E-H:0,F="offsetHeight"in $?$.offsetHeight-$.clientHeight-M-T:0,te="offsetWidth"in $?$.offsetWidth===0?0:Y/$.offsetWidth:0,ee="offsetHeight"in $?$.offsetHeight===0?0:J/$.offsetHeight:0;if(c===$)B=Ai(S,S+m,m,M,T,S+R,S+R+k,k),z=r==="start"?V:r==="center"?V-g/2:r==="end"?V-g:Ai(w,w+g,g,E,H,w+V,w+V+v,v),B=Math.max(0,B+S),z=Math.max(0,z+w);else{B=Ai(Q,q,J,M,T+F,R,R+k,k),z=r==="start"?V-K-E:r==="center"?V-(K+Y/2)+W/2:r==="end"?V-Z+H+W:Ai(K,Z,Y,E,H+W,V,V+v,v);var ne=$.scrollLeft,le=$.scrollTop;R+=le-(B=Math.max(0,Math.min(le+B/ee,$.scrollHeight-J/ee+F))),V+=ne-(z=Math.max(0,Math.min(ne+z/te,$.scrollWidth-Y/te+W)))}L.push({el:$,top:B,left:z})}return L},Ae={};let tC=0;function Ih(e){return typeof e=="function"?e:Qt}function Qt(){}function Bg(e,t){if(!e)return;eC(e,{boundary:t}).forEach(r=>{let{el:i,top:s,left:o}=r;i.scrollTop=s,i.scrollLeft=o})}function Ch(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function Ds(e,t){let n;function r(){n&&clearTimeout(n)}function i(){for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];r(),n=setTimeout(()=>{n=null,e(...o)},t)}return i.cancel=r,i}function kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];return t.some(l=>(l&&l(r,...s),r.preventDownshiftDefault||r.hasOwnProperty("nativeEvent")&&r.nativeEvent.preventDownshiftDefault))}}function Fr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r=>{t.forEach(i=>{typeof i=="function"?i(r):i&&(i.current=r)})}}function Hg(){return String(tC++)}function nC(e){let{isOpen:t,resultCount:n,previousResultCount:r}=e;return t?n?n!==r?`${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 Ah(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function $g(e){return typeof e.type=="string"}function Wg(e){return e.props}function rC(e,t){console.error(`The property "${t}" is required in "${e}"`)}const iC=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function Ti(e){e===void 0&&(e={});const t={};return iC.forEach(n=>{e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function cs(e,t){return Object.keys(e).reduce((n,r)=>(n[r]=Za(t,r)?t[r]:e[r],n),{})}function Za(e,t){return e[t]!==void 0}function hs(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&t.indexOf("Arrow")!==0?`Arrow${t}`:t}function sC(e){return Object.prototype.toString.call(e)==="[object Object]"}function pr(e,t,n,r,i){if(i===void 0&&(i=!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=i?s:0:o>s&&(o=i?0:s);const l=Kn(e,o,n,r,i);return l===-1?t>=n?-1:t:l}function Kn(e,t,n,r,i){const s=r(t);if(!s||!s.hasAttribute("disabled"))return t;if(e>0){for(let o=t+1;o<n;o++)if(!r(o).hasAttribute("disabled"))return o}else for(let o=t-1;o>=0;o--)if(!r(o).hasAttribute("disabled"))return o;return i?e>0?Kn(1,0,n,r,!1):Kn(-1,n-1,n,r,!1):-1}function ps(e,t,n,r){return r===void 0&&(r=!0),t.some(i=>i&&(Ch(i,e,n)||r&&Ch(i,n.document.activeElement,n)))}let wl=Qt;Ae.NODE_ENV!=="production"&&(wl=(e,t,n)=>{const r="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(i=>{t[i]!==void 0&&n[i]===void 0?console.error(`downshift: A component has changed the controlled prop "${i}" to be uncontrolled. ${r}`):t[i]===void 0&&n[i]!==void 0&&console.error(`downshift: A component has changed the uncontrolled prop "${i}" to be controlled. ${r}`)})});const aC=Ds(e=>{qg(e).textContent=""},500);function Ug(e,t){const n=qg(t);e&&(n.textContent=e,aC(t))}function qg(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 Kg=Ae.NODE_ENV!=="production"?"__autocomplete_unknown__":0,Jg=Ae.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,Gg=Ae.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,Hi=Ae.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,$i=Ae.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,Yg=Ae.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,Qg=Ae.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,Xg=Ae.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,Zg=Ae.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,em=Ae.NODE_ENV!=="production"?"__autocomplete_click_item__":9,tm=Ae.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,nm=Ae.NODE_ENV!=="production"?"__autocomplete_change_input__":11,rm=Ae.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,eo=Ae.NODE_ENV!=="production"?"__autocomplete_click_button__":13,im=Ae.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,sm=Ae.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,am=Ae.NODE_ENV!=="production"?"__autocomplete_touchend__":16;var oC=Object.freeze({__proto__:null,unknown:Kg,mouseUp:Jg,itemMouseEnter:Gg,keyDownArrowUp:Hi,keyDownArrowDown:$i,keyDownEscape:Yg,keyDownEnter:Qg,keyDownHome:Xg,keyDownEnd:Zg,clickItem:em,blurInput:tm,changeInput:nm,keyDownSpaceButton:rm,clickButton:eo,blurButton:im,controlledPropUpdatedSelectedItem:sm,touchEnd:am});const lC=(()=>{class e extends D.Component{constructor(n){var r;super(n),r=this,this.id=this.props.id||`downshift-${Hg()}`,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,g)=>{const m=setTimeout(()=>{this.timeoutIds=this.timeoutIds.filter(w=>w!==m),h()},g);this.timeoutIds.push(m)},this.setItemCount=h=>{this.itemCount=h},this.unsetItemCount=()=>{this.itemCount=null},this.setHighlightedIndex=function(h,g){h===void 0&&(h=r.props.defaultHighlightedIndex),g===void 0&&(g={}),g=Ti(g),r.internalSetState({highlightedIndex:h,...g})},this.clearSelection=h=>{this.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:this.props.defaultHighlightedIndex,isOpen:this.props.defaultIsOpen},h)},this.selectItem=(h,g,m)=>{g=Ti(g),this.internalSetState({isOpen:this.props.defaultIsOpen,highlightedIndex:this.props.defaultHighlightedIndex,selectedItem:h,inputValue:this.props.itemToString(h),...g},m)},this.selectItemAtIndex=(h,g,m)=>{const w=this.items[h];w!=null&&this.selectItem(w,g,m)},this.selectHighlightedItem=(h,g)=>this.selectItemAtIndex(this.getState().highlightedIndex,h,g),this.internalSetState=(h,g)=>{let m,w;const S={},y=typeof h=="function";return!y&&h.hasOwnProperty("inputValue")&&this.props.onInputValueChange(h.inputValue,{...this.getStateAndHelpers(),...h}),this.setState(k=>{k=this.getState(k);let v=y?h(k):h;v=this.props.stateReducer(k,v),m=v.hasOwnProperty("selectedItem");const _={};return m&&v.selectedItem!==k.selectedItem&&(w=v.selectedItem),v.type=v.type||Kg,Object.keys(v).forEach(A=>{k[A]!==v[A]&&(S[A]=v[A]),A!=="type"&&(v[A],Za(this.props,A)||(_[A]=v[A]))}),y&&v.hasOwnProperty("inputValue")&&this.props.onInputValueChange(v.inputValue,{...this.getStateAndHelpers(),...v}),_},()=>{Ih(g)(),Object.keys(S).length>1&&this.props.onStateChange(S,this.getStateAndHelpers()),m&&this.props.onSelect(h.selectedItem,this.getStateAndHelpers()),w!==void 0&&this.props.onChange(w,this.getStateAndHelpers()),this.props.onUserAction(S,this.getStateAndHelpers())})},this.rootRef=h=>this._rootNode=h,this.getRootProps=function(h,g){let{refKey:m="ref",ref:w,...S}=h===void 0?{}:h,{suppressRefError:y=!1}=g===void 0?{}:g;r.getRootProps.called=!0,r.getRootProps.refKey=m,r.getRootProps.suppressRefError=y;const{isOpen:k}=r.getState();return{[m]:Fr(w,r.rootRef),role:"combobox","aria-expanded":k,"aria-haspopup":"listbox","aria-owns":k?r.menuId:null,"aria-labelledby":r.labelId,...S}},this.keyDownHandlers={ArrowDown(h){if(h.preventDefault(),this.getState().isOpen){const g=h.shiftKey?5:1;this.moveHighlightedIndex(g,{type:$i})}else this.internalSetState({isOpen:!0,type:$i},()=>{const g=this.getItemCount();if(g>0){const{highlightedIndex:m}=this.getState(),w=pr(1,m,g,S=>this.getItemNodeFromIndex(S));this.setHighlightedIndex(w,{type:$i})}})},ArrowUp(h){if(h.preventDefault(),this.getState().isOpen){const g=h.shiftKey?-5:-1;this.moveHighlightedIndex(g,{type:Hi})}else this.internalSetState({isOpen:!0,type:Hi},()=>{const g=this.getItemCount();if(g>0){const{highlightedIndex:m}=this.getState(),w=pr(-1,m,g,S=>this.getItemNodeFromIndex(S));this.setHighlightedIndex(w,{type:Hi})}})},Enter(h){if(h.which===229)return;const{isOpen:g,highlightedIndex:m}=this.getState();if(g&&m!=null){h.preventDefault();const w=this.items[m],S=this.getItemNodeFromIndex(m);if(w==null||S&&S.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Qg})}},Escape(h){h.preventDefault(),this.reset({type:Yg,...!this.state.isOpen&&{selectedItem:null,inputValue:""}})}},this.buttonKeyDownHandlers={...this.keyDownHandlers," "(h){h.preventDefault(),this.toggleMenu({type:rm})}},this.inputKeyDownHandlers={...this.keyDownHandlers,Home(h){const{isOpen:g}=this.getState();if(!g)return;h.preventDefault();const m=this.getItemCount();if(m<=0||!g)return;const w=Kn(1,0,m,S=>this.getItemNodeFromIndex(S),!1);this.setHighlightedIndex(w,{type:Xg})},End(h){const{isOpen:g}=this.getState();if(!g)return;h.preventDefault();const m=this.getItemCount();if(m<=0||!g)return;const w=Kn(-1,m-1,m,S=>this.getItemNodeFromIndex(S),!1);this.setHighlightedIndex(w,{type:Zg})}},this.getToggleButtonProps=function(h){let{onClick:g,onPress:m,onKeyDown:w,onKeyUp:S,onBlur:y,...k}=h===void 0?{}:h;const{isOpen:v}=r.getState(),_={onClick:kt(g,r.buttonHandleClick),onKeyDown:kt(w,r.buttonHandleKeyDown),onKeyUp:kt(S,r.buttonHandleKeyUp),onBlur:kt(y,r.buttonHandleBlur)},A=k.disabled?{}:_;return{type:"button",role:"button","aria-label":v?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0,...A,...k}},this.buttonHandleKeyUp=h=>{h.preventDefault()},this.buttonHandleKeyDown=h=>{const g=hs(h);this.buttonKeyDownHandlers[g]&&this.buttonKeyDownHandlers[g].call(this,h)},this.buttonHandleClick=h=>{h.preventDefault(),this.props.environment.document.activeElement===this.props.environment.document.body&&h.target.focus(),Ae.NODE_ENV==="test"?this.toggleMenu({type:eo}):this.internalSetTimeout(()=>this.toggleMenu({type:eo}))},this.buttonHandleBlur=h=>{const g=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!==g&&this.reset({type:im})})},this.getLabelProps=h=>({htmlFor:this.inputId,id:this.labelId,...h}),this.getInputProps=function(h){let{onKeyDown:g,onBlur:m,onChange:w,onInput:S,onChangeText:y,...k}=h===void 0?{}:h,v,_={};v="onChange";const{inputValue:A,isOpen:x,highlightedIndex:f}=r.getState();return k.disabled||(_={[v]:kt(w,S,r.inputHandleChange),onKeyDown:kt(g,r.inputHandleKeyDown),onBlur:kt(m,r.inputHandleBlur)}),{"aria-autocomplete":"list","aria-activedescendant":x&&typeof f=="number"&&f>=0?r.getItemId(f):null,"aria-controls":x?r.menuId:null,"aria-labelledby":r.labelId,autoComplete:"off",value:A,id:r.inputId,..._,...k}},this.inputHandleKeyDown=h=>{const g=hs(h);g&&this.inputKeyDownHandlers[g]&&this.inputKeyDownHandlers[g].call(this,h)},this.inputHandleChange=h=>{this.internalSetState({type:nm,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:tm})})},this.menuRef=h=>{this._menuNode=h},this.getMenuProps=function(h,g){let{refKey:m="ref",ref:w,...S}=h===void 0?{}:h,{suppressRefError:y=!1}=g===void 0?{}:g;return r.getMenuProps.called=!0,r.getMenuProps.refKey=m,r.getMenuProps.suppressRefError=y,{[m]:Fr(w,r.menuRef),role:"listbox","aria-labelledby":S&&S["aria-label"]?null:r.labelId,id:r.menuId,...S}},this.getItemProps=function(h){let{onMouseMove:g,onMouseDown:m,onClick:w,onPress:S,index:y,item:k=Ae.NODE_ENV==="production"?void 0:rC("getItemProps","item"),...v}=h===void 0?{}:h;y===void 0?(r.items.push(k),y=r.items.indexOf(k)):r.items[y]=k;const _="onClick",A=w,x={onMouseMove:kt(g,()=>{y!==r.getState().highlightedIndex&&(r.setHighlightedIndex(y,{type:Gg}),r.avoidScrolling=!0,r.internalSetTimeout(()=>r.avoidScrolling=!1,250))}),onMouseDown:kt(m,R=>{R.preventDefault()}),[_]:kt(A,()=>{r.selectItemAtIndex(y,{type:em})})},f=v.disabled?{onMouseDown:x.onMouseDown}:x;return{id:r.getItemId(y),role:"option","aria-selected":r.getState().highlightedIndex===y,...f,...v}},this.clearItems=()=>{this.items=[]},this.reset=function(h,g){h===void 0&&(h={}),h=Ti(h),r.internalSetState(m=>{let{selectedItem:w}=m;return{isOpen:r.props.defaultIsOpen,highlightedIndex:r.props.defaultHighlightedIndex,inputValue:r.props.itemToString(w),...h}},g)},this.toggleMenu=function(h,g){h===void 0&&(h={}),h=Ti(h),r.internalSetState(m=>{let{isOpen:w}=m;return{isOpen:!w,...w&&{highlightedIndex:r.props.defaultHighlightedIndex},...h}},()=>{const{isOpen:m,highlightedIndex:w}=r.getState();m&&r.getItemCount()>0&&typeof w=="number"&&r.setHighlightedIndex(w,h),Ih(g)()})},this.openMenu=h=>{this.internalSetState({isOpen:!0},h)},this.closeMenu=h=>{this.internalSetState({isOpen:!1},h)},this.updateStatus=Ds(()=>{const h=this.getState(),g=this.items[h.highlightedIndex],m=this.getItemCount(),w=this.props.getA11yStatusMessage({itemToString:this.props.itemToString,previousResultCount:this.previousResultCount,resultCount:m,highlightedItem:g,...h});this.previousResultCount=m,Ug(w,this.props.environment.document)},200);const{defaultHighlightedIndex:i,initialHighlightedIndex:s=i,defaultIsOpen:o,initialIsOpen:l=o,initialInputValue:u="",initialSelectedItem:c=null}=this.props,d=this.getState({highlightedIndex:s,isOpen:l,inputValue:u,selectedItem:c});d.selectedItem!=null&&this.props.initialInputValue===void 0&&(d.inputValue=this.props.itemToString(d.selectedItem)),this.state=d}internalClearTimeouts(){this.timeoutIds.forEach(n=>{clearTimeout(n)}),this.timeoutIds=[]}getState(n){return n===void 0&&(n=this.state),cs(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,r){const i=this.getItemCount(),{highlightedIndex:s}=this.getState();if(i>0){const o=pr(n,s,i,l=>this.getItemNodeFromIndex(l));this.setHighlightedIndex(o,r)}}getStateAndHelpers(){const{highlightedIndex:n,inputValue:r,selectedItem:i,isOpen:s}=this.getState(),{itemToString:o}=this.props,{id:l}=this,{getRootProps:u,getToggleButtonProps:c,getLabelProps:d,getMenuProps:h,getInputProps:g,getItemProps:m,openMenu:w,closeMenu:S,toggleMenu:y,selectItem:k,selectItemAtIndex:v,selectHighlightedItem:_,setHighlightedIndex:A,clearSelection:x,clearItems:f,reset:R,setItemCount:V,unsetItemCount:L,internalSetState:N}=this;return{getRootProps:u,getToggleButtonProps:c,getLabelProps:d,getMenuProps:h,getInputProps:g,getItemProps:m,reset:R,openMenu:w,closeMenu:S,toggleMenu:y,selectItem:k,selectItemAtIndex:v,selectHighlightedItem:_,setHighlightedIndex:A,clearSelection:x,clearItems:f,setItemCount:V,unsetItemCount:L,setState:N,itemToString:o,id:l,highlightedIndex:n,inputValue:r,isOpen:s,selectedItem:i}}componentDidMount(){Ae.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&Th(this._menuNode,this.getMenuProps);{const n=()=>{this.isMouseDown=!0},r=u=>{this.isMouseDown=!1,!ps(u.target,[this._rootNode,this._menuNode],this.props.environment)&&this.getState().isOpen&&this.reset({type:Jg},()=>this.props.onOuterClick(this.getStateAndHelpers()))},i=()=>{this.isTouchMove=!1},s=()=>{this.isTouchMove=!0},o=u=>{const c=ps(u.target,[this._rootNode,this._menuNode],this.props.environment,!1);!this.isTouchMove&&!c&&this.getState().isOpen&&this.reset({type:am},()=>this.props.onOuterClick(this.getStateAndHelpers()))},{environment:l}=this.props;l.addEventListener("mousedown",n),l.addEventListener("mouseup",r),l.addEventListener("touchstart",i),l.addEventListener("touchmove",s),l.addEventListener("touchend",o),this.cleanup=()=>{this.internalClearTimeouts(),this.updateStatus.cancel(),l.removeEventListener("mousedown",n),l.removeEventListener("mouseup",r),l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",s),l.removeEventListener("touchend",o)}}}shouldScroll(n,r){const{highlightedIndex:i}=this.props.highlightedIndex===void 0?this.getState():this.props,{highlightedIndex:s}=r.highlightedIndex===void 0?n:r;return i&&this.getState().isOpen&&!n.isOpen||i!==s}componentDidUpdate(n,r){Ae.NODE_ENV!=="production"&&(wl(this.state,n,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&Th(this._menuNode,this.getMenuProps)),Za(this.props,"selectedItem")&&this.props.selectedItemChanged(n.selectedItem,this.props.selectedItem)&&this.internalSetState({type:sm,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(r,n)&&this.scrollHighlightedItemIntoView(),this.updateStatus()}componentWillUnmount(){this.cleanup()}render(){const n=Ah(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;const r=Ah(n(this.getStateAndHelpers()));if(!r)return null;if(this.getRootProps.called||this.props.suppressRefError)return Ae.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&uC(r,this.getRootProps),r;if($g(r))return D.cloneElement(r,this.getRootProps(Wg(r)));if(Ae.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:nC,itemToString:t=>t==null?"":(Ae.NODE_ENV!=="production"&&sC(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:(t,n)=>t!==n,environment:typeof window>"u"?{}:window,stateReducer:(t,n)=>n,suppressRefError:!1,scrollIntoView:Bg},e.stateChangeTypes=oC,e})();Ae.NODE_ENV!=="production"&&(lC.propTypes={children:ue.func,defaultHighlightedIndex:ue.number,defaultIsOpen:ue.bool,initialHighlightedIndex:ue.number,initialSelectedItem:ue.any,initialInputValue:ue.string,initialIsOpen:ue.bool,getA11yStatusMessage:ue.func,itemToString:ue.func,onChange:ue.func,onSelect:ue.func,onStateChange:ue.func,onInputValueChange:ue.func,onUserAction:ue.func,onOuterClick:ue.func,selectedItemChanged:ue.func,stateReducer:ue.func,itemCount:ue.number,id:ue.string,environment:ue.shape({addEventListener:ue.func,removeEventListener:ue.func,document:ue.shape({getElementById:ue.func,activeElement:ue.any,body:ue.any})}),suppressRefError:ue.bool,scrollIntoView:ue.func,selectedItem:ue.any,isOpen:ue.bool,inputValue:ue.string,highlightedIndex:ue.number,labelId:ue.string,inputId:ue.string,menuId:ue.string,getItemId:ue.func});function Th(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 uC(e,t){let{refKey:n}=t;const r=n!=="ref",i=!$g(e);i&&!r&&!Sh.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!i&&r&&console.error(`downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "${n}"`),!Sh.isForwardRef(e)&&!Wg(e)[n]&&console.error(`downshift: You must apply the ref prop "${n}" from getRootProps onto your root element.`)}const om={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function cC(e,t,n){const{props:r,type:i}=e,s={};Object.keys(t).forEach(o=>{hC(o,e,t,n),n[o]!==t[o]&&(s[o]=n[o])}),r.onStateChange&&Object.keys(s).length&&r.onStateChange({type:i,...s})}function hC(e,t,n,r){const{props:i,type:s}=t,o=`on${kl(e)}Change`;i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o]({type:s,...r})}function pC(e,t){return t.changes}function dC(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""}const fC=Ds((e,t)=>{Ug(e(),t)},200),gC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?D.useLayoutEffect:D.useEffect;function mC(e){let{id:t=`downshift-${Hg()}`,labelId:n,menuId:r,getItemId:i,toggleButtonId:s,inputId:o}=e;return D.useRef({labelId:n||`${t}-label`,menuId:r||`${t}-menu`,getItemId:i||(u=>`${t}-item-${u}`),toggleButtonId:s||`${t}-toggle-button`,inputId:o||`${t}-input`}).current}function xC(e,t,n){return e!==void 0?e:n.length===0?-1:n.indexOf(t)}function vC(e){return e?String(e):""}function Nh(e){return/^\S{1}$/.test(e)}function kl(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function lm(e){const t=D.useRef(e);return t.current=e,t}function bC(e,t,n){const r=D.useRef(),i=D.useRef(),s=D.useCallback((h,g)=>{i.current=g,h=cs(h,g.props);const m=e(h,g);return g.props.stateReducer(h,{...g,changes:m})},[e]),[o,l]=D.useReducer(s,t),u=lm(n),c=D.useCallback(h=>l({props:u.current,...h}),[u]),d=i.current;return D.useEffect(()=>{d&&r.current&&r.current!==o&&cC(d,cs(r.current,d.props),o),r.current=o},[o,n,d]),[o,c]}function yC(e,t,n){const[r,i]=bC(e,t,n);return[cs(r,n),i]}const zr={itemToString:vC,stateReducer:pC,getA11ySelectionMessage:dC,scrollIntoView:Bg,circularNavigation:!1,environment:typeof window>"u"?{}:window};function Sn(e,t,n){n===void 0&&(n=om);const r=e[`default${kl(t)}`];return r!==void 0?r:n[t]}function Ni(e,t,n){n===void 0&&(n=om);const r=e[t];if(r!==void 0)return r;const i=e[`initial${kl(t)}`];return i!==void 0?i:Sn(e,t,n)}function wC(e){const t=Ni(e,"selectedItem"),n=Ni(e,"isOpen"),r=Ni(e,"highlightedIndex"),i=Ni(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function ds(e,t,n,r){const{items:i,initialHighlightedIndex:s,defaultHighlightedIndex:o}=e,{selectedItem:l,highlightedIndex:u}=t;return i.length===0?-1:s!==void 0&&u===s?s:o!==void 0?o:l?n===0?i.indexOf(l):pr(n,i.indexOf(l),i.length,r,!1):n===0?-1:n<0?i.length-1:0}function kC(e,t,n,r){const i=D.useRef({isMouseDown:!1,isTouchMove:!1});return D.useEffect(()=>{const s=()=>{i.current.isMouseDown=!0},o=d=>{i.current.isMouseDown=!1,e&&!ps(d.target,t.map(h=>h.current),n)&&r()},l=()=>{i.current.isTouchMove=!1},u=()=>{i.current.isTouchMove=!0},c=d=>{e&&!i.current.isTouchMove&&!ps(d.target,t.map(h=>h.current),n,!1)&&r()};return n.addEventListener("mousedown",s),n.addEventListener("mouseup",o),n.addEventListener("touchstart",l),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",s),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",l),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}},[e,n]),i}let um=()=>Qt;Ae.NODE_ENV!=="production"&&(um=function(){const e=D.useRef(!0);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=D.useRef(n.reduce((o,l)=>(o[l]={},o),{}));return D.useEffect(()=>{Object.keys(i.current).forEach(o=>{const l=i.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:c,elementRef:d}=l;(!d||!d.current)&&!u&&console.error(`downshift: The ref prop "${c}" from ${o} was not applied correctly on your element.`)}),e.current=!1}),D.useCallback((o,l,u,c)=>{i.current[o]={suppressRefError:l,refKey:u,elementRef:c}},[])});function Oh(e,t,n){let{isInitialMount:r,highlightedIndex:i,items:s,environment:o,...l}=n;D.useEffect(()=>{r||fC(()=>e({highlightedIndex:i,highlightedItem:s[i],resultCount:s.length,...l}),o.document)},t)}function SC(e){let{highlightedIndex:t,isOpen:n,itemRefs:r,getItemNodeFromIndex:i,menuElement:s,scrollIntoView:o}=e;const l=D.useRef(!0);return gC(()=>{t<0||!n||!Object.keys(r.current).length||(l.current===!1?l.current=!0:o(i(t),s))},[t]),l}let cm=Qt;Ae.NODE_ENV!=="production"&&(cm=e=>{let{isInitialMount:t,props:n,state:r}=e;const i=D.useRef(n);D.useEffect(()=>{t||(wl(r,i.current,n),i.current=n)},[r,n,t])});function _C(e,t,n){const{type:r,props:i}=t;let s;switch(r){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:ds(i,e,0)};break;case n.FunctionOpenMenu:s={isOpen:!0,highlightedIndex:ds(i,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:Sn(i,"highlightedIndex"),isOpen:Sn(i,"isOpen"),selectedItem:Sn(i,"selectedItem"),inputValue:Sn(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...s}}function Ph(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,s=e.getItemNodeFromIndex,o=t.toLowerCase(),l=0;l<r.length;l++){var u=(l+n+1)%r.length,c=r[u];if(c!==void 0&&i(c).toLowerCase().startsWith(o)){var d=s(u);if(!(d!=null&&d.hasAttribute("disabled")))return u}}return n}var EC={items:ue.array.isRequired,itemToString:ue.func,getA11yStatusMessage:ue.func,getA11ySelectionMessage:ue.func,circularNavigation:ue.bool,highlightedIndex:ue.number,defaultHighlightedIndex:ue.number,initialHighlightedIndex:ue.number,isOpen:ue.bool,defaultIsOpen:ue.bool,initialIsOpen:ue.bool,selectedItem:ue.any,initialSelectedItem:ue.any,defaultSelectedItem:ue.any,id:ue.string,labelId:ue.string,menuId:ue.string,getItemId:ue.func,toggleButtonId:ue.string,stateReducer:ue.func,onSelectedItemChange:ue.func,onHighlightedIndexChange:ue.func,onStateChange:ue.func,onIsOpenChange:ue.func,environment:ue.shape({addEventListener:ue.func,removeEventListener:ue.func,document:ue.shape({getElementById:ue.func,activeElement:ue.any,body:ue.any})})};function IC(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".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 CC=Wi(Wi({},zr),{getA11yStatusMessage:IC}),hm=Qt;Ae.NODE_ENV!=="production"&&(hm=function(e,t){ue.checkPropTypes(EC,e,"prop",t.name)});const Sl=Ae.NODE_ENV!=="production"?"__menu_keydown_arrow_down__":0,_l=Ae.NODE_ENV!=="production"?"__menu_keydown_arrow_up__":1,El=Ae.NODE_ENV!=="production"?"__menu_keydown_escape__":2,Il=Ae.NODE_ENV!=="production"?"__menu_keydown_home__":3,Cl=Ae.NODE_ENV!=="production"?"__menu_keydown_end__":4,Al=Ae.NODE_ENV!=="production"?"__menu_keydown_enter__":5,Tl=Ae.NODE_ENV!=="production"?"__menu_keydown_space_button__":6,Nl=Ae.NODE_ENV!=="production"?"__menu_keydown_character__":7,fs=Ae.NODE_ENV!=="production"?"__menu_blur__":8,pm=Ae.NODE_ENV!=="production"?"__menu_mouse_leave__":9,dm=Ae.NODE_ENV!=="production"?"__item_mouse_move__":10,Ol=Ae.NODE_ENV!=="production"?"__item_click__":11,fm=Ae.NODE_ENV!=="production"?"__togglebutton_click__":12,Pl=Ae.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_down__":13,Rl=Ae.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_up__":14,Dl=Ae.NODE_ENV!=="production"?"__togglebutton_keydown_character__":15,gm=Ae.NODE_ENV!=="production"?"__function_toggle_menu__":16,mm=Ae.NODE_ENV!=="production"?"__function_open_menu__":17,xm=Ae.NODE_ENV!=="production"?"__function_close_menu__":18,vm=Ae.NODE_ENV!=="production"?"__function_set_highlighted_index__":19,Ll=Ae.NODE_ENV!=="production"?"__function_select_item__":20,to=Ae.NODE_ENV!=="production"?"__function_set_input_value__":21,bm=Ae.NODE_ENV!=="production"?"__function_reset__":22;var ym=Object.freeze({__proto__:null,MenuKeyDownArrowDown:Sl,MenuKeyDownArrowUp:_l,MenuKeyDownEscape:El,MenuKeyDownHome:Il,MenuKeyDownEnd:Cl,MenuKeyDownEnter:Al,MenuKeyDownSpaceButton:Tl,MenuKeyDownCharacter:Nl,MenuBlur:fs,MenuMouseLeave:pm,ItemMouseMove:dm,ItemClick:Ol,ToggleButtonClick:fm,ToggleButtonKeyDownArrowDown:Pl,ToggleButtonKeyDownArrowUp:Rl,ToggleButtonKeyDownCharacter:Dl,FunctionToggleMenu:gm,FunctionOpenMenu:mm,FunctionCloseMenu:xm,FunctionSetHighlightedIndex:vm,FunctionSelectItem:Ll,FunctionSetInputValue:to,FunctionReset:bm});function AC(e,t){const{type:n,props:r,shiftKey:i}=t;let s;switch(n){case Ol:s={isOpen:Sn(r,"isOpen"),highlightedIndex:Sn(r,"highlightedIndex"),selectedItem:r.items[t.index]};break;case Dl:{const o=t.key,l=`${e.inputValue}${o}`,u=Ph({keysSoFar:l,highlightedIndex:e.selectedItem?r.items.indexOf(e.selectedItem):-1,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});s={inputValue:l,...u>=0&&{selectedItem:r.items[u]}}}break;case Pl:s={highlightedIndex:ds(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case Rl:s={highlightedIndex:ds(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case Al:case Tl:s={isOpen:Sn(r,"isOpen"),highlightedIndex:Sn(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case Il:s={highlightedIndex:Kn(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case Cl:s={highlightedIndex:Kn(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case El:s={isOpen:!1,highlightedIndex:-1};break;case fs:s={isOpen:!1,highlightedIndex:-1};break;case Nl:{const o=t.key,l=`${e.inputValue}${o}`,u=Ph({keysSoFar:l,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});s={inputValue:l,...u>=0&&{highlightedIndex:u}}}break;case Sl:s={highlightedIndex:pr(i?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case _l:s={highlightedIndex:pr(i?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case Ll:s={selectedItem:t.selectedItem};break;default:return _C(e,t,ym)}return{...e,...s}}Vl.stateChangeTypes=ym;function Vl(e){e===void 0&&(e={}),hm(e,Vl);const t={...CC,...e},{items:n,scrollIntoView:r,environment:i,initialIsOpen:s,defaultIsOpen:o,itemToString:l,getA11ySelectionMessage:u,getA11yStatusMessage:c}=t,d=wC(t),[h,g]=yC(AC,d,t),{isOpen:m,highlightedIndex:w,selectedItem:S,inputValue:y}=h,k=D.useRef(null),v=D.useRef(null),_=D.useRef({}),A=D.useRef(!0),x=D.useRef(null),f=mC(t),R=D.useRef(),V=D.useRef(!0),L=lm({state:h,props:t}),N=D.useCallback(F=>_.current[f.getItemId(F)],[f]);Oh(c,[m,w,y,n],{isInitialMount:V.current,previousResultCount:R.current,items:n,environment:i,itemToString:l,...h}),Oh(u,[S],{isInitialMount:V.current,previousResultCount:R.current,items:n,environment:i,itemToString:l,...h});const $=SC({menuElement:v.current,highlightedIndex:w,isOpen:m,itemRefs:_,scrollIntoView:r,getItemNodeFromIndex:N});D.useEffect(()=>(x.current=Ds(F=>{F({type:to,inputValue:""})},500),()=>{x.current.cancel()}),[]),D.useEffect(()=>{y&&x.current(g)},[g,y]),cm({isInitialMount:V.current,props:t,state:h}),D.useEffect(()=>{if(V.current){(s||o||m)&&v.current&&v.current.focus();return}if(m){v.current&&v.current.focus();return}i.document.activeElement===v.current&&k.current&&(A.current=!1,k.current.focus())},[m]),D.useEffect(()=>{V.current||(R.current=n.length)});const U=kC(m,[v,k],i,()=>{g({type:fs})}),J=um("getMenuProps","getToggleButtonProps");D.useEffect(()=>{V.current=!1},[]),D.useEffect(()=>{m||(_.current={})},[m]);const Y=D.useMemo(()=>({ArrowDown(F){F.preventDefault(),g({type:Pl,getItemNodeFromIndex:N,shiftKey:F.shiftKey})},ArrowUp(F){F.preventDefault(),g({type:Rl,getItemNodeFromIndex:N,shiftKey:F.shiftKey})}}),[g,N]),Q=D.useMemo(()=>({ArrowDown(F){F.preventDefault(),g({type:Sl,getItemNodeFromIndex:N,shiftKey:F.shiftKey})},ArrowUp(F){F.preventDefault(),g({type:_l,getItemNodeFromIndex:N,shiftKey:F.shiftKey})},Home(F){F.preventDefault(),g({type:Il,getItemNodeFromIndex:N})},End(F){F.preventDefault(),g({type:Cl,getItemNodeFromIndex:N})},Escape(){g({type:El})},Enter(F){F.preventDefault(),g({type:Al})}," "(F){F.preventDefault(),g({type:Tl})}}),[g,N]),Z=D.useCallback(()=>{g({type:gm})},[g]),q=D.useCallback(()=>{g({type:xm})},[g]),K=D.useCallback(()=>{g({type:mm})},[g]),ie=D.useCallback(F=>{g({type:vm,highlightedIndex:F})},[g]),E=D.useCallback(F=>{g({type:Ll,selectedItem:F})},[g]),M=D.useCallback(()=>{g({type:bm})},[g]),H=D.useCallback(F=>{g({type:to,inputValue:F})},[g]),T=D.useCallback(F=>({id:f.labelId,htmlFor:f.toggleButtonId,...F}),[f]),B=D.useCallback(function(F,te){let{onMouseLeave:ee,refKey:ne="ref",onKeyDown:le,onBlur:G,ref:ae,...ce}=F===void 0?{}:F,{suppressRefError:Ie=!1}=te===void 0?{}:te;const Ce=L.current.state,Re=Ne=>{const Ke=hs(Ne);Ke&&Q[Ke]?Q[Ke](Ne):Nh(Ke)&&g({type:Nl,key:Ke,getItemNodeFromIndex:N})},Ve=()=>{if(A.current===!1){A.current=!0;return}!U.current.isMouseDown&&g({type:fs})},Oe=()=>{g({type:pm})};return J("getMenuProps",Ie,ne,v),{[ne]:Fr(ae,Ne=>{v.current=Ne}),id:f.menuId,role:"listbox","aria-labelledby":f.labelId,tabIndex:-1,...Ce.isOpen&&Ce.highlightedIndex>-1&&{"aria-activedescendant":f.getItemId(Ce.highlightedIndex)},onMouseLeave:kt(ee,Oe),onKeyDown:kt(le,Re),onBlur:kt(G,Ve),...ce}},[g,L,Q,U,J,f,N]),z=D.useCallback(function(F,te){let{onClick:ee,onKeyDown:ne,refKey:le="ref",ref:G,...ae}=F===void 0?{}:F,{suppressRefError:ce=!1}=te===void 0?{}:te;const Ie=()=>{g({type:fm})},Ce=Ve=>{const Oe=hs(Ve);Oe&&Y[Oe]?Y[Oe](Ve):Nh(Oe)&&g({type:Dl,key:Oe,getItemNodeFromIndex:N})},Re={[le]:Fr(G,Ve=>{k.current=Ve}),id:f.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":L.current.state.isOpen,"aria-labelledby":`${f.labelId} ${f.toggleButtonId}`,...ae};return ae.disabled||(Re.onClick=kt(ee,Ie),Re.onKeyDown=kt(ne,Ce)),J("getToggleButtonProps",ce,le,k),Re},[g,L,Y,J,f,N]),W=D.useCallback(function(F){let{item:te,index:ee,onMouseMove:ne,onClick:le,refKey:G="ref",ref:ae,disabled:ce,...Ie}=F===void 0?{}:F;const{state:Ce,props:Re}=L.current,Ve=()=>{ee!==Ce.highlightedIndex&&($.current=!1,g({type:dm,index:ee,disabled:ce}))},Oe=()=>{g({type:Ol,index:ee})},Ne=xC(ee,te,Re.items);if(Ne<0)throw new Error("Pass either item or item index in getItemProps!");const Ke={disabled:ce,role:"option","aria-selected":`${Ne===Ce.highlightedIndex}`,id:f.getItemId(Ne),[G]:Fr(ae,vt=>{vt&&(_.current[f.getItemId(Ne)]=vt)}),...Ie};return ce||(Ke.onClick=kt(le,Oe)),Ke.onMouseMove=kt(ne,Ve),Ke},[g,L,$,f]);return{getToggleButtonProps:z,getLabelProps:T,getMenuProps:B,getItemProps:W,toggleMenu:Z,openMenu:K,closeMenu:q,setHighlightedIndex:ie,selectItem:E,reset:M,setInputValue:H,highlightedIndex:w,isOpen:m,selectedItem:S,inputValue:y}}ue.array.isRequired,ue.func,ue.func,ue.func,ue.bool,ue.number,ue.number,ue.number,ue.bool,ue.bool,ue.bool,ue.any,ue.any,ue.any,ue.string,ue.string,ue.string,ue.string,ue.string,ue.string,ue.func,ue.string,ue.string,ue.func,ue.func,ue.func,ue.func,ue.func,ue.func,ue.shape({addEventListener:ue.func,removeEventListener:ue.func,document:ue.shape({getElementById:ue.func,activeElement:ue.any,body:ue.any})});({...zr});ue.array,ue.array,ue.array,ue.func,ue.func,ue.func,ue.number,ue.number,ue.number,ue.func,ue.func,ue.string,ue.string,ue.shape({addEventListener:ue.func,removeEventListener:ue.func,document:ue.shape({getElementById:ue.func,activeElement:ue.any,body:ue.any})});zr.itemToString,zr.stateReducer,zr.environment;const Rh=[{label:"json",value:"json"},{label:"csv",value:"csv"}],TC=({onSelect:e})=>{const{isOpen:t,selectedItem:n,getToggleButtonProps:r,getMenuProps:i,getItemProps:s}=Vl({items:Rh,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",{className:yt("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}),...r(),children:[C.jsx("span",{className:"text-grey-50 text-xs",children:n?n.label:"Select a file format"}),C.jsx(ot.FdDown,{className:"w-4 h-4"})]}),C.jsx("ul",{className:yt("h-full rounded-b py-[6px]",{hidden:!t,"border-[1px] border-primary-dark":t}),...i(),children:t&&Rh.map((o,l)=>C.jsx("li",{className:yt("h-5 p-1 bg-grey-900 text-xs hover:bg-primary-hover cursor-pointer"),...s({item:o,index:l}),children:o.label},l))})]})},NC=({enable:e,onSelect:t})=>{const{state:n,actions:r}=ve.useStateObject({delimiters:[{label:"Comma",value:","},{label:"Semicolon",value:";"}],selected:","});return D.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(Su.Group,{className:"flex flex-row items-center space-x-2",value:n.selected,onChange:i=>r.setSelected(i),children:n.delimiters.map(({label:i,value:s})=>C.jsx(Su.Item,{value:s,label:`${i} (${s})`}))})]}):C.jsx(C.Fragment,{})},OC={SELECT_FILE_TYPE:"Please Select a File Format !"},PC=({toExport:e})=>{var Z;const[t,n]=D.useState(),r=Fn(),i=r.getWebformTabs(),s=D.useRef(null),o=D.useRef([]),l=D.useRef([]),{i18n:u}=Jn(),c=((Z=r.getUserComponents)==null?void 0:Z.call(r))??{},d=r.buildResolver??{},[h,g]=D.useState(!1),[m]=D.useState(!0),{state:{isOpen:w,fileType:S,error:y,csvDelimier:k},actions:v}=ve.useStateObject({error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],csvDelimier:","}),_=e.length===0;D.useEffect(()=>{ve.tasksManagerSubject.subscribe({next:q=>{if(q.type==="i18n"&&q.action==="cancel"){const{id:K}=q;l.current.push(K)}}}),n({...d,...c})},[]);const A=()=>{v.setFileType(""),v.setError(""),v.setIsOpen(!1)},x=()=>{A()},f=()=>x(),R=()=>{const q={};t&&(Object.entries(t).forEach(([K,ie])=>{const{info:{settings:E}}=ie;if(E)if(K==="Text")q.Text=[{keyPropName:"doc",keyDefaultName:"text"}];else{const M=V(E,"");q[K]=M}}),s.current=q)},V=(q,K)=>{let ie=[];if(Array.isArray(q))q.forEach(E=>ie=ie.concat(V(E,K)));else if(xe.isObject(q)){const{key:E,type:M}=q;if(M===ve.ESetting.GROUP){const{components:H}=q;H.forEach(T=>ie=ie.concat(V(T,K)))}else M===ve.ESetting.I18NFIELD?ie.push({keyPropName:K||E,keyDefaultName:E}):Object.entries(q).forEach(([,H])=>{xe.isObject(H)&&(ie=ie.concat(V(H,K||E)))})}return ie},L=(q,K)=>{const{content:ie}=q,{components:E}=ie,M={};if(!E)return q;const H=(B,z,W,F)=>{const te=[];if(xe.has(B,W)){const le=xe.get(B,W);te.push(...Xa(le,W,F))}const ne=[];return te.forEach(le=>{const G=xe.get(B,le),ae={__dataPath:le,__default:G};e.forEach(ce=>{const Ie=`i18n:${ce}`,Ce=Object.keys(z),Re=Ce.find(Oe=>Oe.startsWith(Ie)),Ve=Ce.reduce((Oe,Ne)=>(Ne!==Ie&&Ne.endsWith(Ie)&&Oe.push(Ne),Oe),[]);if(Re){const Oe=xe.get(z,`${Re}.${le}`);xe.set(ae,ce,Oe)}if(Ve.length&&Ve.forEach(Oe=>{const Ne=xe.get(z,`${Oe}.${le}`);let Ke=Oe;Ke=Oe.replace("states:",""),Ke=Ke.replace("i18n:",""),Ne&&xe.set(ae,Ke,Ne)}),!Re){const Oe=xe.get(B,`${le}`);xe.set(ae,ce,Oe)}}),ne.push(ae)}),ne},T=(B,z,W)=>{const F=[],te=xe.get(B,W);return te?(F.push({key:"__default",props:te}),e.forEach(ne=>{const le=`i18n:${ne}`,G=Object.keys(z),ae=G.find(Ie=>Ie.startsWith(le)),ce=G.reduce((Ie,Ce)=>(Ce!==le&&Ce.endsWith(le)&&Ie.push(Ce),Ie),[]);if(ae){const Ie=xe.get(z,`${ae}.${W}`);Ie&&F.push({key:ne,props:Ie})}ce.length&&ce.forEach(Ie=>{const Ce=xe.get(z,`${Ie}.${W}`);F.push({key:Ie,props:Ce||""})}),!ae&&!ce.length&&F.push({key:ne,props:te})}),F.reduce((ne,le)=>{const{key:G,props:ae}=le,ce=jI(ae);return{...ne,[G]:ce}},{__dataPath:W})):B};return Object.entries(E).forEach(([B,z])=>{const{props:W,custom:F={},type:te}=z,ee=te.resolvedName,ne=K[ee];if(!ne||ne.length===0)return;const le=ne.map(({keyPropName:G,keyDefaultName:ae})=>ee==="Text"?T(W,F,G):H(W,F,G,ae));xe.set(M,B,{resolverName:ee,props:[...le.flat()]})}),M},N=async(q,K)=>{const ie={},E=M=>{const H=M+1===q.length?q.length:M,T=Math.ceil(H/q.length*100);ve.tasksManagerSubject.next({id:K,action:"update",type:"i18n",payload:{progress:T,status:T>=100?"finished":"ongoing"}})};for(let M=0;M<q.length;M++){const H=q[M],T=i.find(W=>W.name===H.name&&W.type==="webform");if(!s.current){E(M);continue}const B=T||await ve.getNodeInfo({verb:ve.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${H.name}.${H.ext}`,as:"json"}),z=L(B,s.current);if(xe.isEmpty(z)||xe.set(ie,H.name,z),l.current.find(W=>W===K))return{};E(M)}return ie},$=(q,K,ie)=>{const E="data:text/json;charset=utf-8,"+encodeURIComponent(q),M=document.createElement("a");M.setAttribute("href",E),M.setAttribute("download",K+`.${ie}`),document.body.appendChild(M),M.click(),M.remove()},U=q=>{switch(S){case"csv":{const K=["keys","resolverName","__t"].concat(e);return VI(q,K,k)}case"json":return JSON.stringify(q,null," ");default:return JSON.stringify(q,null," ")}},J=(q,K)=>{Object.entries(K.keys).forEach(([E,M])=>{Object.keys(M).forEach(H=>{o.current.push(`i18n.${E}.${H}`)})});const ie={};return Object.entries(K.keys).forEach(([E,M])=>{ie[E]={default:M.default},e.forEach(H=>{ie[E][H]=Object.hasOwn(M,H)?M[H]:m?M.default:void 0})}),{webforms:{...q},i18n:ie}},Y=q=>v.setCsvDelimier(q),Q=async()=>{const q=no.generate().toString();try{ve.tasksManagerSubject.next({id:q,action:"add",type:"i18n",payload:{progress:0,name:"Export i18n",status:"ongoing",date:new Date().toISOString(),time:LI()}}),R();const K=await Vg(),ie=await N(K,q),E=J(ie,u),M=U(E);xe.isEmpty(M)||$(M,"export-i18n",S),A()}catch(K){ve.tasksManagerSubject.next({id:q,type:"i18n",action:"update",payload:{status:"canceled"}}),ve.tasksManagerSubject.next({id:q,type:"i18n",action:"error",payload:{errorMessage:K.message||"Export file error"}})}A()};return C.jsxs(C.Fragment,{children:[C.jsx(At,{label:"Export",isOpen:h,children:C.jsx("button",{disabled:_,className:yt("flex h-full flex-row items-center p-1 rounded disabled:opacity-50",{"cursor-not-allowed":_},{"hover:bg-primary-hover":!_}),onClick:()=>{v.setIsOpen(!0),g(!1)},onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:C.jsx(ot.FdUpload,{className:"h-4 w-4"})})}),C.jsxs(jg,{isOpen:w,onClose:x,title:"Export",children:[C.jsx("div",{className:"mt-4",children:C.jsx(TC,{onSelect:q=>v.setFileType(q)})}),C.jsx(NC,{enable:S==="csv",onSelect:Y}),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.qodly.com/docs/","_blank")},children:[C.jsx("p",{className:"text-xs",children:"How to Export an i18n File"}),C.jsx(ot.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",{onClick:()=>{S?(v.setIsOpen(!1),Q()):v.setError(OC.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"})]})]}),y&&C.jsx("div",{className:"flex items-center justify-center p-2",children:C.jsx("span",{className:"text-sm text-red-500",children:y})})]})]})},RC=({onClick:e})=>C.jsx(At,{label:"Edit",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:t=>{t.stopPropagation(),e()},children:C.jsx(ot.FdPen,{})})}),DC=({onClick:e,disable:t})=>t?C.jsx(C.Fragment,{}):C.jsx(At,{label:"Remove",children:C.jsx(Rt,{color:"white",variant:"ghost",disabled:t,onClick:n=>{n.stopPropagation(),e()},children:C.jsx(ot.FdTrash,{})})}),LC=({collapse:e,onClick:t})=>C.jsx(At,{label:"Collapse",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:n=>{n.stopPropagation(),t()},children:C.jsx(ot.FdDown,{className:yt({"-rotate-90":e})})})}),VC=({lang:e,onCancel:t,onConfirm:n})=>{var m,w,S;const{allSupportedLanguages:r}=Gn(),{i18n:i}=Jn(),s=D.useMemo(()=>{var k,v;const y=new Set;return(k=i==null?void 0:i.userLang)!=null&&k.primary&&y.add(i.userLang.primary),(v=i==null?void 0:i.userLang)!=null&&v.supported&&i.userLang.supported.forEach(_=>{y.add(_.isocode)}),r},[r,(m=i==null?void 0:i.userLang)==null?void 0:m.primary,(w=i==null?void 0:i.userLang)==null?void 0:w.supported]),{state:{isOpen:o,supported:l,selectedLanguage:u},actions:c}=ve.useStateObject({isOpen:!0,supported:s,editing:!1,selectedLanguage:null,highlightedLanguageIndex:-1}),d=ve.useOutsideClick(()=>{u&&n(u)}),h=()=>{t()},g=()=>{u?n(u):t()};return C.jsxs(br,{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:[C.jsx(pc.Root,{className:"w-48",downshiftParams:{isOpen:o,onOpenChange:c.setIsOpen,value:u,isSearchable:!0,options:s,getOptionLabel(y){const k=ts(y.isocode,r);return`${k==null?void 0:k.native} - ${k==null?void 0:k.isocode}`},getOptionValue(y){return y.isocode},onChange:y=>{y&&(c.setSelectedLanguage({isocode:y.isocode}),c.setSupported(s))}},children:C.jsx(pc.Field,{autoFocus:!0,hideSelectedOptions:!0,placeholder:((S=ts(e==null?void 0:e.isocode,r))==null?void 0:S.locale)||"Select a language",onKeyUp:y=>{y.key==="Enter"&&g()},onClick:()=>c.setIsOpen(!0)})}),C.jsxs("div",{className:"flex space-x-1",children:[C.jsx(At,{label:"Cancel",children:C.jsx(Rt,{onClick:h,color:"white",variant:"ghost",children:C.jsx(ot.FdClose,{})})}),C.jsx(At,{label:"Confirm",children:C.jsx(Rt,{onClick:g,color:"white",variant:"ghost",children:C.jsx(ot.FdCheckCircle,{})})})]})]})},wm=({activate:e,...t})=>e?C.jsx(VC,{...t}):C.jsx(C.Fragment,{}),MC=({primary:e,selected:t,selectMode:n,lang:r,onSelect:i,onRemove:s,onEdit:o})=>{const{state:{hover:l,selected:u,collapse:c,editing:d},actions:{setHover:h,setSelected:g,setCollapse:m,setEditing:w}}=ve.useStateObject({hover:!1,selected:!1,collapse:!0,editing:!1}),{selectedLanguage:S,setSelectedLanguage:y}=Gn(),{isocode:k,locale:v,native:_}=r||{isocode:"",locale:"",native:""},A=e===k,x=()=>{h(!0)},f=()=>{h(!1)},R=()=>{g(!u),i(k,!u)},V=()=>{w(!0)},L=()=>{s(k)},N=()=>{y(r)},$=J=>{w(!1),o(r,J)},U=()=>{w(!1)};return D.useEffect(()=>{g(t)},[t]),D.useEffect(()=>{A&&y(r)},[]),d?C.jsx(wm,{lang:r,activate:d,onCancel:U,onConfirm:$}):C.jsxs(br,{depth:4,borderType:(S==null?void 0:S.isocode)===(r==null?void 0:r.isocode)?"primary":"light",className:yt("border-[1px] mb-2 flex flex-col space-y-2 rounded px-2 py-2 hover:cursor-pointer"),onMouseEnter:x,onMouseLeave:f,onClick:N,children:[C.jsxs("div",{className:"flex flex-row justify-between items-center",children:[C.jsxs("div",{className:"flex flex-row space-x-1",children:[l||n?C.jsx(oo,{value:u,onChange:R,size:"sm"}):C.jsx(C.Fragment,{}),C.jsx(ot.FdLocalization,{className:yt("w-4 h-4",{hidden:n||l})}),C.jsx("span",{className:yt("text-xs",{"italic font-bold":A}),children:_})]}),C.jsxs("div",{className:"flex flex-row items-center space-x-1",children:[A&&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(RC,{onClick:V}),C.jsx(DC,{disable:A,onClick:L}),C.jsx(LC,{collapse:c,onClick:()=>m(!c)})]})]}),C.jsxs("div",{className:yt("ml-6 flex justify-between p-1 text-xs",{hidden:c}),children:[C.jsx("span",{children:"English name"}),C.jsx("span",{className:"text-muted",children:v})]}),C.jsxs("div",{className:yt("ml-6 flex justify-between p-1 text-xs",{hidden:c}),children:[C.jsx("span",{children:"Iso Code"}),C.jsx("span",{className:"text-muted",children:k})]})]})},jC=()=>{const{state:{selectedLanguages:e,shouldAddNewLocal:t,selectAll:n},actions:r}=ve.useStateObject({selectAll:!1,selectedLanguages:[],shouldAddNewLocal:!1,allSupportedLanguages:[]}),{userLanguages:{supported:i=[],primary:s},addFirstLanguage:o,setAddFirstLanguage:l,setUserLangSettings:u,setSelectedLanguage:c,allSupportedLanguages:d}=Gn(),{editLanguageKeys:h,deleteLanguageKeys:g}=Jn(),m=Zm(e),w=ex(e),S=Fn(),y=S.getI18nCurrent(),k=S.getTabs(),v=(Y,Q)=>{const Z=Q?e.concat(Y):e.filter(q=>q!==Y);r.setSelectedLanguages(Z),n&&r.setSelectAll(!1)},_=Y=>{r.setShouldAddNewLocal(Y)},A=()=>{r.setSelectAll(!n),n?r.setSelectedLanguages([]):r.setSelectedLanguages(i.map(Y=>Y.isocode))},x=Y=>{const Q={primary:i.length===0?Y.isocode:s,supported:i.concat(Y)};u(Q),r.setShouldAddNewLocal(!1)};D.useEffect(()=>{o&&r.setShouldAddNewLocal(!0)},[o]);const f=(Y,Q)=>{const Z=`i18n:${Q}`,q=`:i18n:${Q}`,K=ie=>{ie.custom&&Object.keys(ie.custom).forEach(E=>{(E.includes(Z)||E.endsWith(q))&&delete ie.custom[E]})};return Object.values(Y).forEach(ie=>K(ie)),Y},R=(Y,Q)=>Y.map(Z=>{var K;const q=xe.cloneDeep(Z);return(K=q.content)!=null&&K.components&&(q.content={...q.content,components:f({...q.content.components},Q)}),q}),V=(Y,Q,Z)=>{const q=`i18n:${Q}`,K=`:i18n:${Q}`,ie=E=>{E.custom&&Object.keys(E.custom).forEach(M=>{if(M===q){const H=E.custom[M];delete E.custom[M],E.custom[`i18n:${Z}`]=H}else if(M.endsWith(K)){const H=E.custom[M];delete E.custom[M];const T=M.replace(`:i18n:${Q}`,`:i18n:${Z}`);E.custom[T]=H}})};return Object.values(Y).forEach(E=>ie(E)),Y},L=(Y,Q,Z)=>Y.map(q=>{var ie;const K=xe.cloneDeep(q);return(ie=K.content)!=null&&ie.components&&(K.content={...K.content,components:V({...K.content.components},Q,Z)}),K}),N=async Y=>{const{confirmed:Q}=await S.actions.openModal({title:"Delete Language",message:"Your translations will be lost , want to proceed ?",type:ve.ModalType.CONFIRM,color:ve.ModalColor.WARNING,icon:"FdWarningDanger"});if(!Q)return;g({isocode:Y});const Z=R(k,Y);S.actions.setTabs(Z);const q={primary:s,supported:i.filter(K=>K.isocode!==Y)};u(q),e.includes(Y)&&r.setSelectedLanguages(e.filter(K=>K!==Y)),q.supported.length===0&&l(!1),Y===y&&S.actions.setI18nCurrent("")},$=(Y,Q)=>{const Z={primary:s===Y.isocode?Q.isocode:s,supported:i.map(K=>K.isocode===Y.isocode?Q:K)},q=L(k,Y.isocode,Q.isocode);S.actions.setTabs(q),y===Y.isocode&&S.actions.setI18nCurrent(Q.isocode),h(Y,Q),u(Z),c(Q)},U=()=>{_(!1),i.length===0&&l(!1)},J=()=>{t?ve.toastSubject.next({kind:"warning",message:"To add a new locale, please confirm your selection by clicking 'Confirm'"}):_(!0)};return C.jsxs("div",{className:"flex w-72 flex-col space-y-2 px-2 py-3 shrink-0",children:[C.jsxs("div",{className:"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(ot.FdLocalization,{className:"h-4 w-4"}),C.jsx("span",{className:"text-sm",children:"Locales "})]}),C.jsxs("div",{className:"space-x-2",children:[C.jsx(ve.Tip,{tipKey:"editors:i18n:locals",alwaysOn:!0}),C.jsx(At,{label:"Add new language",children:C.jsx(Rt,{color:"white",variant:"ghost",onClick:J,children:C.jsx(ot.FdPlus,{})})})]})]}),C.jsxs("div",{className:"flex px-[5px] justify-between",children:[C.jsxs("div",{className:yt("flex items-center justify-center space-x-1",{visible:m,invisible:!m}),children:[C.jsx(oo,{value:n,onChange:A,size:"sm"}),C.jsx("span",{className:"text-xs",children:"Select all"})]}),C.jsxs("div",{className:"flex flex-row items-center justify-center space-x-1",children:[C.jsx(PC,{enable:!0,disable:!1,toExport:e}),C.jsx(HI,{enable:!0,disable:!1})]})]}),C.jsx(wm,{activate:t,onConfirm:x,onCancel:U}),C.jsx("div",{style:{height:t?"calc(100vh - 14.75rem)":"calc(100vh - 11.75rem)"},children:C.jsx(Km,{style:{height:"100%",width:"100%"},children:[...i].sort(Y=>Y.isocode===s?-1:1).map((Y,Q)=>{const Z=ts(Y.isocode,d);return C.jsx(MC,{primary:s,selected:n||e.includes(Z==null?void 0:Z.isocode),lang:Z,onSelect:v,selectMode:w,onRemove:N,onEdit:$},Q)})})})]})},FC=({onAddLocal:e})=>C.jsxs(br,{depth:1,className:"flex flex-col justify-center items-center space-y-3 pb-[30%] w-full h-full text-inactive-text",children:[C.jsx(ot.FdInfoBold,{className:"h-8 w-8"}),C.jsx("span",{className:"text-sm text-center",children:"No locale is available yet. Click on + to add new one."}),C.jsxs(Rt,{onClick:e,size:"lg",children:[C.jsx(ot.FdPlus,{}),C.jsx("span",{children:"Add new Locale"})]})]}),zC=()=>{var o;const{userLanguages:e,addFirstLanguage:t,setAddFirstLanguage:n}=Gn(),i=(((o=e.supported)==null?void 0:o.length)??0)===0&&!t,s=()=>{n(!0)};return i?C.jsx(FC,{onAddLocal:s}):C.jsxs(br,{depth:1,className:yt("flex flex-row w-full h-full",{"justify-center items-center":i}),children:[C.jsx(jC,{}),C.jsx(_y,{})]})},Ml=()=>C.jsx(np,{children:C.jsx(zC,{})}),BC=()=>{const{modals:e,closeModal:t,editModal:n}=Yh();return C.jsx(C.Fragment,{children:e.map((r,i)=>C.jsx(ve.Modal,{hasOverlay:i===0,...r,onClose:t,onEdit:n,container:bl()},r.id))})},HC=({onTabsChange:e,onI18nCurrentChange:t})=>{const n=Fn(),r=n.getTabs(),i=n.getI18nCurrent();return ve.useDidMountEffect(()=>{e&&e(r)},[e,r]),ve.useDidMountEffect(()=>{t&&t(i)},[t,i]),C.jsxs(C.Fragment,{children:[C.jsx("div",{className:`relative h-screen z-10 overflow-hidden ${io.LOCALIZATION_EDITOR_SCOPE_CLASS}`,children:C.jsx(Ml,{})}),C.jsx(BC,{})]})},$C=({userComponents:e,buildResolver:t,supportedLanguages:n,...r})=>{const i=Gh(e,t,n);return C.jsx(Wh,{adapter:i,children:C.jsx(Hh,{isI18nEnabled:!0,onI18nChange:()=>{},children:C.jsx(Zh,{children:C.jsx(ve.TipsProvider,{children:C.jsx(HC,{...r})})})})})},WC=({tabs:e=[],i18nCurrent:t="",...n})=>C.jsx(Jh,{tabs:e,i18nCurrent:t,children:C.jsx($C,{...n})});exports.LOCALIZATION_EDITOR_SCOPE_CLASS=io.LOCALIZATION_EDITOR_SCOPE_CLASS;exports.EditorStateAdapterProvider=Wh;exports.EditorStateContext=ms;exports.I18N_ACTIONS=vx;exports.I18N_CONSTANT=Bh;exports.I18nProvider=Hh;exports.LocalizationEditor=Ml;exports.LocalizationEditorProvider=np;exports.LocalizationProvider=Zh;exports.Portal=Mg;exports.ReducerAdapterProvider=Jh;exports.Standalone=WC;exports.default=Ml;exports.getDefaultContainer=bl;exports.getDefaultInitialState=Kh;exports.getLanguageDetails=ts;exports.localizationReducer=qh;exports.useEditorStateAdapter=Fn;exports.useI18n=Jn;exports.useLocalization=ep;exports.useLocalizationEditor=Gn;exports.useModals=Yh;exports.useReducerAdapter=Gh;exports.useReduxAdapter=bx;
156
156
  //# sourceMappingURL=index.cjs.js.map