@pipedream/connect-react 1.0.0-preview.22 → 1.0.0-preview.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- (function(X,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react/jsx-runtime"),require("react"),require("@emotion/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@emotion/react","react-dom"],T):(X=typeof globalThis<"u"?globalThis:X||self,T(X["connect-react"]={},X["react/jsx-runtime"],X.React,X["@emotion/react"],X.ReactDOM))})(this,function(X,T,G,J,Zr){"use strict";var dl=X=>{throw TypeError(X)};var ho=(X,T,G)=>T.has(X)||dl("Cannot "+G);var C=(X,T,G)=>(ho(X,T,"read from private field"),G?G.call(X):T.get(X)),ee=(X,T,G)=>T.has(X)?dl("Cannot add the same private member more than once"):T instanceof WeakSet?T.add(X):T.set(X,G),Z=(X,T,G,J)=>(ho(X,T,"write to private field"),J?J.call(X,G):T.set(X,G),G),pe=(X,T,G)=>(ho(X,T,"access private method"),G);var Wr=(X,T,G,J)=>({set _(Zr){Z(X,T,Zr,G)},get _(){return C(X,T,J)}});var Wt,wt,pn,Za,fn,Et,hn,ja,Zt,Ja,gn,mn,$e,Ve,Wn,jt,nt,xt,Ya,ct,_a,dt,Ne,Jt,pt,Dt,Ua,Je,Zn,Qa,we,Ft,Pt,bn,yn,kt,In,vn,qa,He,de,jn,Me,Yt,Cn,Gt,ft,Jn,xn,An,_t,Ut,Bt,Sn,be,qn,go,mo,bo,yo,Io,vo,Co,pl,$a;function fl(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 re=fl(G);typeof document>"u"&&(globalThis.document={createElement:()=>{}});function xo({prop:e}){return T.jsx("p",{className:`pd-alert-${e.alertType}`,children:e.content})}var nn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ao(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $n={exports:{}};$n.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,u="[object Arguments]",a="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",y="[object GeneratorFunction]",g="[object Map]",I="[object Number]",v="[object Null]",A="[object Object]",w="[object Promise]",S="[object Proxy]",P="[object RegExp]",E="[object Set]",O="[object String]",B="[object Symbol]",D="[object Undefined]",j="[object WeakMap]",L="[object ArrayBuffer]",R="[object DataView]",te="[object Float32Array]",se="[object Float64Array]",z="[object Int8Array]",U="[object Int16Array]",Q="[object Int32Array]",ce="[object Uint8Array]",ye="[object Uint8ClampedArray]",b="[object Uint16Array]",xe="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,m=/^\[object .+?Constructor\]$/,me=/^(?:0|[1-9]\d*)$/,ne={};ne[te]=ne[se]=ne[z]=ne[U]=ne[Q]=ne[ce]=ne[ye]=ne[b]=ne[xe]=!0,ne[u]=ne[a]=ne[L]=ne[c]=ne[R]=ne[d]=ne[f]=ne[p]=ne[g]=ne[I]=ne[A]=ne[P]=ne[E]=ne[O]=ne[j]=!1;var fe=typeof nn=="object"&&nn&&nn.Object===Object&&nn,Pe=typeof self=="object"&&self&&self.Object===Object&&self,M=fe||Pe||Function("return this")(),W=t&&!t.nodeType&&t,q=W&&!0&&e&&!e.nodeType&&e,he=q&&q.exports===W,ke=he&&fe.process,Ye=function(){try{return ke&&ke.binding&&ke.binding("util")}catch{}}(),Qt=Ye&&Ye.isTypedArray;function wn(h,x){for(var k=-1,H=h==null?0:h.length,Ce=0,oe=[];++k<H;){var Ee=h[k];x(Ee,k,h)&&(oe[Ce++]=Ee)}return oe}function Tr(h,x){for(var k=-1,H=x.length,Ce=h.length;++k<H;)h[Ce+k]=x[k];return h}function Vr(h,x){for(var k=-1,H=h==null?0:h.length;++k<H;)if(x(h[k],k,h))return!0;return!1}function to(h,x){for(var k=-1,H=Array(h);++k<h;)H[k]=x(k);return H}function Rr(h){return function(x){return h(x)}}function Dr(h,x){return h.has(x)}function no(h,x){return h==null?void 0:h[x]}function ro(h){var x=-1,k=Array(h.size);return h.forEach(function(H,Ce){k[++x]=[Ce,H]}),k}function io(h,x){return function(k){return h(x(k))}}function oo(h){var x=-1,k=Array(h.size);return h.forEach(function(H){k[++x]=H}),k}var so=Array.prototype,F=Function.prototype,N=Object.prototype,K=M["__core-js_shared__"],ue=F.toString,ae=N.hasOwnProperty,We=function(){var h=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),ht=N.toString,rt=RegExp("^"+ue.call(ae).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ot=he?M.Buffer:void 0,gt=M.Symbol,Re=M.Uint8Array,It=N.propertyIsEnumerable,it=so.splice,qt=gt?gt.toStringTag:void 0,Ka=Object.getOwnPropertySymbols,Pb=Ot?Ot.isBuffer:void 0,kb=io(Object.keys,Object),uo=En(M,"DataView"),Yn=En(M,"Map"),ao=En(M,"Promise"),lo=En(M,"Set"),co=En(M,"WeakMap"),_n=En(Object,"create"),Gb=en(uo),Bb=en(Yn),Ob=en(ao),Tb=en(lo),Vb=en(co),el=gt?gt.prototype:void 0,po=el?el.valueOf:void 0;function $t(h){var x=-1,k=h==null?0:h.length;for(this.clear();++x<k;){var H=h[x];this.set(H[0],H[1])}}function Rb(){this.__data__=_n?_n(null):{},this.size=0}function Db(h){var x=this.has(h)&&delete this.__data__[h];return this.size-=x?1:0,x}function Nb(h){var x=this.__data__;if(_n){var k=x[h];return k===r?void 0:k}return ae.call(x,h)?x[h]:void 0}function Mb(h){var x=this.__data__;return _n?x[h]!==void 0:ae.call(x,h)}function Lb(h,x){var k=this.__data__;return this.size+=this.has(h)?0:1,k[h]=_n&&x===void 0?r:x,this}$t.prototype.clear=Rb,$t.prototype.delete=Db,$t.prototype.get=Nb,$t.prototype.has=Mb,$t.prototype.set=Lb;function vt(h){var x=-1,k=h==null?0:h.length;for(this.clear();++x<k;){var H=h[x];this.set(H[0],H[1])}}function Xb(){this.__data__=[],this.size=0}function zb(h){var x=this.__data__,k=Mr(x,h);if(k<0)return!1;var H=x.length-1;return k==H?x.pop():it.call(x,k,1),--this.size,!0}function Hb(h){var x=this.__data__,k=Mr(x,h);return k<0?void 0:x[k][1]}function Wb(h){return Mr(this.__data__,h)>-1}function Zb(h,x){var k=this.__data__,H=Mr(k,h);return H<0?(++this.size,k.push([h,x])):k[H][1]=x,this}vt.prototype.clear=Xb,vt.prototype.delete=zb,vt.prototype.get=Hb,vt.prototype.has=Wb,vt.prototype.set=Zb;function Kt(h){var x=-1,k=h==null?0:h.length;for(this.clear();++x<k;){var H=h[x];this.set(H[0],H[1])}}function jb(){this.size=0,this.__data__={hash:new $t,map:new(Yn||vt),string:new $t}}function Jb(h){var x=Lr(this,h).delete(h);return this.size-=x?1:0,x}function Yb(h){return Lr(this,h).get(h)}function _b(h){return Lr(this,h).has(h)}function Ub(h,x){var k=Lr(this,h),H=k.size;return k.set(h,x),this.size+=k.size==H?0:1,this}Kt.prototype.clear=jb,Kt.prototype.delete=Jb,Kt.prototype.get=Yb,Kt.prototype.has=_b,Kt.prototype.set=Ub;function Nr(h){var x=-1,k=h==null?0:h.length;for(this.__data__=new Kt;++x<k;)this.add(h[x])}function Qb(h){return this.__data__.set(h,r),this}function qb(h){return this.__data__.has(h)}Nr.prototype.add=Nr.prototype.push=Qb,Nr.prototype.has=qb;function Tt(h){var x=this.__data__=new vt(h);this.size=x.size}function $b(){this.__data__=new vt,this.size=0}function Kb(h){var x=this.__data__,k=x.delete(h);return this.size=x.size,k}function ey(h){return this.__data__.get(h)}function ty(h){return this.__data__.has(h)}function ny(h,x){var k=this.__data__;if(k instanceof vt){var H=k.__data__;if(!Yn||H.length<n-1)return H.push([h,x]),this.size=++k.size,this;k=this.__data__=new Kt(H)}return k.set(h,x),this.size=k.size,this}Tt.prototype.clear=$b,Tt.prototype.delete=Kb,Tt.prototype.get=ey,Tt.prototype.has=ty,Tt.prototype.set=ny;function ry(h,x){var k=Xr(h),H=!k&&yy(h),Ce=!k&&!H&&fo(h),oe=!k&&!H&&!Ce&&ll(h),Ee=k||H||Ce||oe,Ge=Ee?to(h.length,String):[],Oe=Ge.length;for(var Ae in h)ae.call(h,Ae)&&!(Ee&&(Ae=="length"||Ce&&(Ae=="offset"||Ae=="parent")||oe&&(Ae=="buffer"||Ae=="byteLength"||Ae=="byteOffset")||fy(Ae,Oe)))&&Ge.push(Ae);return Ge}function Mr(h,x){for(var k=h.length;k--;)if(ol(h[k][0],x))return k;return-1}function iy(h,x,k){var H=x(h);return Xr(h)?H:Tr(H,k(h))}function Un(h){return h==null?h===void 0?D:v:qt&&qt in Object(h)?dy(h):by(h)}function tl(h){return Qn(h)&&Un(h)==u}function nl(h,x,k,H,Ce){return h===x?!0:h==null||x==null||!Qn(h)&&!Qn(x)?h!==h&&x!==x:oy(h,x,k,H,nl,Ce)}function oy(h,x,k,H,Ce,oe){var Ee=Xr(h),Ge=Xr(x),Oe=Ee?a:Vt(h),Ae=Ge?a:Vt(x);Oe=Oe==u?A:Oe,Ae=Ae==u?A:Ae;var _e=Oe==A,ot=Ae==A,De=Oe==Ae;if(De&&fo(h)){if(!fo(x))return!1;Ee=!0,_e=!1}if(De&&!_e)return oe||(oe=new Tt),Ee||ll(h)?rl(h,x,k,H,Ce,oe):ly(h,x,Oe,k,H,Ce,oe);if(!(k&i)){var Ke=_e&&ae.call(h,"__wrapped__"),et=ot&&ae.call(x,"__wrapped__");if(Ke||et){var Rt=Ke?h.value():h,Ct=et?x.value():x;return oe||(oe=new Tt),Ce(Rt,Ct,k,H,oe)}}return De?(oe||(oe=new Tt),cy(h,x,k,H,Ce,oe)):!1}function sy(h){if(!al(h)||gy(h))return!1;var x=sl(h)?rt:m;return x.test(en(h))}function uy(h){return Qn(h)&&ul(h.length)&&!!ne[Un(h)]}function ay(h){if(!my(h))return kb(h);var x=[];for(var k in Object(h))ae.call(h,k)&&k!="constructor"&&x.push(k);return x}function rl(h,x,k,H,Ce,oe){var Ee=k&i,Ge=h.length,Oe=x.length;if(Ge!=Oe&&!(Ee&&Oe>Ge))return!1;var Ae=oe.get(h);if(Ae&&oe.get(x))return Ae==x;var _e=-1,ot=!0,De=k&o?new Nr:void 0;for(oe.set(h,x),oe.set(x,h);++_e<Ge;){var Ke=h[_e],et=x[_e];if(H)var Rt=Ee?H(et,Ke,_e,x,h,oe):H(Ke,et,_e,h,x,oe);if(Rt!==void 0){if(Rt)continue;ot=!1;break}if(De){if(!Vr(x,function(Ct,tn){if(!Dr(De,tn)&&(Ke===Ct||Ce(Ke,Ct,k,H,oe)))return De.push(tn)})){ot=!1;break}}else if(!(Ke===et||Ce(Ke,et,k,H,oe))){ot=!1;break}}return oe.delete(h),oe.delete(x),ot}function ly(h,x,k,H,Ce,oe,Ee){switch(k){case R:if(h.byteLength!=x.byteLength||h.byteOffset!=x.byteOffset)return!1;h=h.buffer,x=x.buffer;case L:return!(h.byteLength!=x.byteLength||!oe(new Re(h),new Re(x)));case c:case d:case I:return ol(+h,+x);case f:return h.name==x.name&&h.message==x.message;case P:case O:return h==x+"";case g:var Ge=ro;case E:var Oe=H&i;if(Ge||(Ge=oo),h.size!=x.size&&!Oe)return!1;var Ae=Ee.get(h);if(Ae)return Ae==x;H|=o,Ee.set(h,x);var _e=rl(Ge(h),Ge(x),H,Ce,oe,Ee);return Ee.delete(h),_e;case B:if(po)return po.call(h)==po.call(x)}return!1}function cy(h,x,k,H,Ce,oe){var Ee=k&i,Ge=il(h),Oe=Ge.length,Ae=il(x),_e=Ae.length;if(Oe!=_e&&!Ee)return!1;for(var ot=Oe;ot--;){var De=Ge[ot];if(!(Ee?De in x:ae.call(x,De)))return!1}var Ke=oe.get(h);if(Ke&&oe.get(x))return Ke==x;var et=!0;oe.set(h,x),oe.set(x,h);for(var Rt=Ee;++ot<Oe;){De=Ge[ot];var Ct=h[De],tn=x[De];if(H)var cl=Ee?H(tn,Ct,De,x,h,oe):H(Ct,tn,De,h,x,oe);if(!(cl===void 0?Ct===tn||Ce(Ct,tn,k,H,oe):cl)){et=!1;break}Rt||(Rt=De=="constructor")}if(et&&!Rt){var zr=h.constructor,Hr=x.constructor;zr!=Hr&&"constructor"in h&&"constructor"in x&&!(typeof zr=="function"&&zr instanceof zr&&typeof Hr=="function"&&Hr instanceof Hr)&&(et=!1)}return oe.delete(h),oe.delete(x),et}function il(h){return iy(h,Cy,py)}function Lr(h,x){var k=h.__data__;return hy(x)?k[typeof x=="string"?"string":"hash"]:k.map}function En(h,x){var k=no(h,x);return sy(k)?k:void 0}function dy(h){var x=ae.call(h,qt),k=h[qt];try{h[qt]=void 0;var H=!0}catch{}var Ce=ht.call(h);return H&&(x?h[qt]=k:delete h[qt]),Ce}var py=Ka?function(h){return h==null?[]:(h=Object(h),wn(Ka(h),function(x){return It.call(h,x)}))}:xy,Vt=Un;(uo&&Vt(new uo(new ArrayBuffer(1)))!=R||Yn&&Vt(new Yn)!=g||ao&&Vt(ao.resolve())!=w||lo&&Vt(new lo)!=E||co&&Vt(new co)!=j)&&(Vt=function(h){var x=Un(h),k=x==A?h.constructor:void 0,H=k?en(k):"";if(H)switch(H){case Gb:return R;case Bb:return g;case Ob:return w;case Tb:return E;case Vb:return j}return x});function fy(h,x){return x=x??s,!!x&&(typeof h=="number"||me.test(h))&&h>-1&&h%1==0&&h<x}function hy(h){var x=typeof h;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?h!=="__proto__":h===null}function gy(h){return!!We&&We in h}function my(h){var x=h&&h.constructor,k=typeof x=="function"&&x.prototype||N;return h===k}function by(h){return ht.call(h)}function en(h){if(h!=null){try{return ue.call(h)}catch{}try{return h+""}catch{}}return""}function ol(h,x){return h===x||h!==h&&x!==x}var yy=tl(function(){return arguments}())?tl:function(h){return Qn(h)&&ae.call(h,"callee")&&!It.call(h,"callee")},Xr=Array.isArray;function Iy(h){return h!=null&&ul(h.length)&&!sl(h)}var fo=Pb||Ay;function vy(h,x){return nl(h,x)}function sl(h){if(!al(h))return!1;var x=Un(h);return x==p||x==y||x==l||x==S}function ul(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=s}function al(h){var x=typeof h;return h!=null&&(x=="object"||x=="function")}function Qn(h){return h!=null&&typeof h=="object"}var ll=Qt?Rr(Qt):uy;function Cy(h){return Iy(h)?ry(h):ay(h)}function xy(){return[]}function Ay(){return!1}e.exports=vy}($n,$n.exports);var hl=$n.exports;const gl=Ao(hl);var Fn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Nt=typeof window>"u"||"Deno"in globalThis;function Ue(){}function ml(e,t){return typeof e=="function"?e(t):e}function jr(e){return typeof e=="number"&&e>=0&&e!==1/0}function So(e,t){return Math.max(e+(t||0)-Date.now(),0)}function rn(e,t){return typeof e=="function"?e(t):e}function tt(e,t){return typeof e=="function"?e(t):e}function wo(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:u}=e;if(s){if(r){if(t.queryHash!==Jr(s,t.options))return!1}else if(!kn(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||o&&!o(t))}function Eo(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Pn(t.options.mutationKey)!==Pn(o))return!1}else if(!kn(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Jr(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pn)(e)}function Pn(e){return JSON.stringify(e,(t,n)=>Ur(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function kn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!kn(e[n],t[n])):!1}function Yr(e,t){if(e===t)return e;const n=Fo(e)&&Fo(t);if(n||Ur(e)&&Ur(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,u=n?[]:{};let a=0;for(let l=0;l<s;l++){const c=n?l:o[l];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(u[c]=void 0,a++):(u[c]=Yr(e[c],t[c]),u[c]===e[c]&&e[c]!==void 0&&a++)}return i===s&&a===i?e:u}return t}function _r(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Fo(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ur(e){if(!Po(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Po(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Po(e){return Object.prototype.toString.call(e)==="[object Object]"}function bl(e){return new Promise(t=>{setTimeout(t,e)})}function Qr(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Yr(e,t)}catch(r){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`)}return Yr(e,t)}return t}function yl(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Il(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Kn=Symbol();function ko(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Kn&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Kn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var vl=(Za=class extends Fn{constructor(){super();ee(this,Wt);ee(this,wt);ee(this,pn);Z(this,pn,t=>{if(!Nt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,wt)||this.setEventListener(C(this,pn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,wt))==null||t.call(this),Z(this,wt,void 0))}setEventListener(t){var n;Z(this,pn,t),(n=C(this,wt))==null||n.call(this),Z(this,wt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,Wt)!==t&&(Z(this,Wt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,Wt)=="boolean"?C(this,Wt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Wt=new WeakMap,wt=new WeakMap,pn=new WeakMap,Za),qr=new vl,Cl=(ja=class extends Fn{constructor(){super();ee(this,fn,!0);ee(this,Et);ee(this,hn);Z(this,hn,t=>{if(!Nt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,Et)||this.setEventListener(C(this,hn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Et))==null||t.call(this),Z(this,Et,void 0))}setEventListener(t){var n;Z(this,hn,t),(n=C(this,Et))==null||n.call(this),Z(this,Et,t(this.setOnline.bind(this)))}setOnline(t){C(this,fn)!==t&&(Z(this,fn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,fn)}},fn=new WeakMap,Et=new WeakMap,hn=new WeakMap,ja),er=new Cl;function $r(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function xl(e){return Math.min(1e3*2**e,3e4)}function Go(e){return(e??"online")==="online"?er.isOnline():!0}var Bo=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Kr(e){return e instanceof Bo}function Oo(e){let t=!1,n=0,r=!1,i;const o=$r(),s=g=>{var I;r||(f(new Bo(g)),(I=e.abort)==null||I.call(e))},u=()=>{t=!0},a=()=>{t=!1},l=()=>qr.isFocused()&&(e.networkMode==="always"||er.isOnline())&&e.canRun(),c=()=>Go(e.networkMode)&&e.canRun(),d=g=>{var I;r||(r=!0,(I=e.onSuccess)==null||I.call(e,g),i==null||i(),o.resolve(g))},f=g=>{var I;r||(r=!0,(I=e.onError)==null||I.call(e,g),i==null||i(),o.reject(g))},p=()=>new Promise(g=>{var I;i=v=>{(r||l())&&g(v)},(I=e.onPause)==null||I.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),y=()=>{if(r)return;let g;const I=n===0?e.initialPromise:void 0;try{g=I??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(d).catch(v=>{var E;if(r)return;const A=e.retry??(Nt?0:3),w=e.retryDelay??xl,S=typeof w=="function"?w(n,v):w,P=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,v);if(t||!P){f(v);return}n++,(E=e.onFail)==null||E.call(e,n,v),bl(S).then(()=>l()?void 0:p()).then(()=>{t?f(v):y()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:u,continueRetry:a,canStart:c,start:()=>(c()?y():p().then(y),o)}}function Al(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=u=>setTimeout(u,0);const o=u=>{t?e.push(u):i(()=>{n(u)})},s=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(a=>{n(a)})})})};return{batch:u=>{let a;t++;try{a=u()}finally{t--,t||s()}return a},batchCalls:u=>(...a)=>{o(()=>{u(...a)})},schedule:o,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var Be=Al(),To=(Ja=class{constructor(){ee(this,Zt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jr(this.gcTime)&&Z(this,Zt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Nt?1/0:5*60*1e3))}clearGcTimeout(){C(this,Zt)&&(clearTimeout(C(this,Zt)),Z(this,Zt,void 0))}},Zt=new WeakMap,Ja),Sl=(Ya=class extends To{constructor(t){super();ee(this,nt);ee(this,gn);ee(this,mn);ee(this,$e);ee(this,Ve);ee(this,Wn);ee(this,jt);Z(this,jt,!1),Z(this,Wn,t.defaultOptions),this.setOptions(t.options),this.observers=[],Z(this,$e,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Z(this,gn,wl(this.options)),this.state=t.state??C(this,gn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Ve))==null?void 0:t.promise}setOptions(t){this.options={...C(this,Wn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,$e).remove(this)}setData(t,n){const r=Qr(this.state.data,t,this.options);return pe(this,nt,xt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){pe(this,nt,xt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=C(this,Ve))==null?void 0:r.promise;return(i=C(this,Ve))==null||i.cancel(t),n?n.then(Ue).catch(Ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,gn))}isActive(){return this.observers.some(t=>tt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Kn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!So(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Ve))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Ve))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,$e).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Ve)&&(C(this,jt)?C(this,Ve).cancel({revert:!0}):C(this,Ve).cancelRetry()),this.scheduleGc()),C(this,$e).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,nt,xt).call(this,{type:"invalidate"})}fetch(t,n){var a,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Ve))return C(this,Ve).continueRetry(),C(this,Ve).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(Z(this,jt,!0),r.signal)})},o=()=>{const d=ko(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),Z(this,jt,!1),this.options.persister?this.options.persister(d,f,this):d(f)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(s),(a=this.options.behavior)==null||a.onFetch(s,this),Z(this,mn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=s.fetchOptions)==null?void 0:l.meta))&&pe(this,nt,xt).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const u=d=>{var f,p,y,g;Kr(d)&&d.silent||pe(this,nt,xt).call(this,{type:"error",error:d}),Kr(d)||((p=(f=C(this,$e).config).onError)==null||p.call(f,d,this),(g=(y=C(this,$e).config).onSettled)==null||g.call(y,this.state.data,d,this)),this.scheduleGc()};return Z(this,Ve,Oo({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,p,y,g;if(d===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(I){u(I);return}(p=(f=C(this,$e).config).onSuccess)==null||p.call(f,d,this),(g=(y=C(this,$e).config).onSettled)==null||g.call(y,d,this.state.error,this),this.scheduleGc()},onError:u,onFail:(d,f)=>{pe(this,nt,xt).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{pe(this,nt,xt).call(this,{type:"pause"})},onContinue:()=>{pe(this,nt,xt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),C(this,Ve).start()}},gn=new WeakMap,mn=new WeakMap,$e=new WeakMap,Ve=new WeakMap,Wn=new WeakMap,jt=new WeakMap,nt=new WeakSet,xt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Vo(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Kr(i)&&i.revert&&C(this,mn)?{...C(this,mn),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Be.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,$e).notify({query:this,type:"updated",action:t})})},Ya);function Vo(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Go(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function wl(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var El=(_a=class extends Fn{constructor(t={}){super();ee(this,ct);this.config=t,Z(this,ct,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Jr(i,n);let s=this.get(o);return s||(s=new Sl({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){C(this,ct).has(t.queryHash)||(C(this,ct).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,ct).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,ct).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,ct).get(t)}getAll(){return[...C(this,ct).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>wo(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>wo(t,r)):n}notify(t){Be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Be.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Be.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ct=new WeakMap,_a),Fl=(Ua=class extends To{constructor(t){super();ee(this,pt);ee(this,dt);ee(this,Ne);ee(this,Jt);this.mutationId=t.mutationId,Z(this,Ne,t.mutationCache),Z(this,dt,[]),this.state=t.state||Pl(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,dt).includes(t)||(C(this,dt).push(t),this.clearGcTimeout(),C(this,Ne).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Z(this,dt,C(this,dt).filter(n=>n!==t)),this.scheduleGc(),C(this,Ne).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,dt).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ne).remove(this))}continue(){var t;return((t=C(this,Jt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,u,a,l,c,d,f,p,y,g,I,v,A,w,S,P,E,O;Z(this,Jt,Oo({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(B,D)=>{pe(this,pt,Dt).call(this,{type:"failed",failureCount:B,error:D})},onPause:()=>{pe(this,pt,Dt).call(this,{type:"pause"})},onContinue:()=>{pe(this,pt,Dt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ne).canRun(this)}));const n=this.state.status==="pending",r=!C(this,Jt).canStart();try{if(!n){pe(this,pt,Dt).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=C(this,Ne).config).onMutate)==null?void 0:o.call(i,t,this));const D=await((u=(s=this.options).onMutate)==null?void 0:u.call(s,t));D!==this.state.context&&pe(this,pt,Dt).call(this,{type:"pending",context:D,variables:t,isPaused:r})}const B=await C(this,Jt).start();return await((l=(a=C(this,Ne).config).onSuccess)==null?void 0:l.call(a,B,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,B,t,this.state.context)),await((p=(f=C(this,Ne).config).onSettled)==null?void 0:p.call(f,B,null,this.state.variables,this.state.context,this)),await((g=(y=this.options).onSettled)==null?void 0:g.call(y,B,null,t,this.state.context)),pe(this,pt,Dt).call(this,{type:"success",data:B}),B}catch(B){try{throw await((v=(I=C(this,Ne).config).onError)==null?void 0:v.call(I,B,t,this.state.context,this)),await((w=(A=this.options).onError)==null?void 0:w.call(A,B,t,this.state.context)),await((P=(S=C(this,Ne).config).onSettled)==null?void 0:P.call(S,void 0,B,this.state.variables,this.state.context,this)),await((O=(E=this.options).onSettled)==null?void 0:O.call(E,void 0,B,t,this.state.context)),B}finally{pe(this,pt,Dt).call(this,{type:"error",error:B})}}finally{C(this,Ne).runNext(this)}}},dt=new WeakMap,Ne=new WeakMap,Jt=new WeakMap,pt=new WeakSet,Dt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Be.batch(()=>{C(this,dt).forEach(r=>{r.onMutationUpdate(t)}),C(this,Ne).notify({mutation:this,type:"updated",action:t})})},Ua);function Pl(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var kl=(Qa=class extends Fn{constructor(t={}){super();ee(this,Je);ee(this,Zn);this.config=t,Z(this,Je,new Map),Z(this,Zn,Date.now())}build(t,n,r){const i=new Fl({mutationCache:this,mutationId:++Wr(this,Zn)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=tr(t),r=C(this,Je).get(n)??[];r.push(t),C(this,Je).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=tr(t);if(C(this,Je).has(n)){const i=(r=C(this,Je).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?C(this,Je).delete(n):C(this,Je).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=C(this,Je).get(tr(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=C(this,Je).get(tr(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...C(this,Je).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Eo(n,r))}findAll(t={}){return this.getAll().filter(n=>Eo(t,n))}notify(t){Be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Be.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ue))))}},Je=new WeakMap,Zn=new WeakMap,Qa);function tr(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Ro(e){return{onFetch:(t,n)=>{var c,d,f,p,y;const r=t.options,i=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,o=((p=t.state.data)==null?void 0:p.pages)||[],s=((y=t.state.data)==null?void 0:y.pageParams)||[];let u={pages:[],pageParams:[]},a=0;const l=async()=>{let g=!1;const I=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=ko(t.options,t.fetchOptions),A=async(w,S,P)=>{if(g)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const E={queryKey:t.queryKey,pageParam:S,direction:P?"backward":"forward",meta:t.options.meta};I(E);const O=await v(E),{maxPages:B}=t.options,D=P?Il:yl;return{pages:D(w.pages,O,B),pageParams:D(w.pageParams,S,B)}};if(i&&o.length){const w=i==="backward",S=w?Gl:Do,P={pages:o,pageParams:s},E=S(r,P);u=await A(P,E,w)}else{const w=e??o.length;do{const S=a===0?s[0]??r.initialPageParam:Do(r,u);if(a>0&&S==null)break;u=await A(u,S),a++}while(a<w)}return u};t.options.persister?t.fetchFn=()=>{var g,I;return(I=(g=t.options).persister)==null?void 0:I.call(g,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Do(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Gl(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Bl=(qa=class{constructor(e={}){ee(this,we);ee(this,Ft);ee(this,Pt);ee(this,bn);ee(this,yn);ee(this,kt);ee(this,In);ee(this,vn);Z(this,we,e.queryCache||new El),Z(this,Ft,e.mutationCache||new kl),Z(this,Pt,e.defaultOptions||{}),Z(this,bn,new Map),Z(this,yn,new Map),Z(this,kt,0)}mount(){Wr(this,kt)._++,C(this,kt)===1&&(Z(this,In,qr.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,we).onFocus())})),Z(this,vn,er.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,we).onOnline())})))}unmount(){var e,t;Wr(this,kt)._--,C(this,kt)===0&&((e=C(this,In))==null||e.call(this),Z(this,In,void 0),(t=C(this,vn))==null||t.call(this),Z(this,vn,void 0))}isFetching(e){return C(this,we).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Ft).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,we).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=C(this,we).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(rn(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return C(this,we).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=C(this,we).get(r.queryHash),o=i==null?void 0:i.state.data,s=ml(t,o);if(s!==void 0)return C(this,we).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Be.batch(()=>C(this,we).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,we).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,we);Be.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,we),r={type:"active",...e};return Be.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Be.batch(()=>C(this,we).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ue).catch(Ue)}invalidateQueries(e={},t={}){return Be.batch(()=>{if(C(this,we).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Be.batch(()=>C(this,we).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ue)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Ue)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,we).build(this,t);return n.isStaleByTime(rn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ue).catch(Ue)}fetchInfiniteQuery(e){return e.behavior=Ro(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ue).catch(Ue)}ensureInfiniteQueryData(e){return e.behavior=Ro(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return er.isOnline()?C(this,Ft).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,we)}getMutationCache(){return C(this,Ft)}getDefaultOptions(){return C(this,Pt)}setDefaultOptions(e){Z(this,Pt,e)}setQueryDefaults(e,t){C(this,bn).set(Pn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,bn).values()];let n={};return t.forEach(r=>{kn(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){C(this,yn).set(Pn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,yn).values()];let n={};return t.forEach(r=>{kn(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Pt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Jr(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Kn&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Pt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,we).clear(),C(this,Ft).clear()}},we=new WeakMap,Ft=new WeakMap,Pt=new WeakMap,bn=new WeakMap,yn=new WeakMap,kt=new WeakMap,In=new WeakMap,vn=new WeakMap,qa),Ol=($a=class extends Fn{constructor(t,n){super();ee(this,be);ee(this,He);ee(this,de);ee(this,jn);ee(this,Me);ee(this,Yt);ee(this,Cn);ee(this,Gt);ee(this,ft);ee(this,Jn);ee(this,xn);ee(this,An);ee(this,_t);ee(this,Ut);ee(this,Bt);ee(this,Sn,new Set);this.options=n,Z(this,He,t),Z(this,ft,null),Z(this,Gt,$r()),this.options.experimental_prefetchInRender||C(this,Gt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,de).addObserver(this),No(C(this,de),this.options)?pe(this,be,qn).call(this):this.updateResult(),pe(this,be,yo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ei(C(this,de),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ei(C(this,de),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,be,Io).call(this),pe(this,be,vo).call(this),C(this,de).removeObserver(this)}setOptions(t,n){const r=this.options,i=C(this,de);if(this.options=C(this,He).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof tt(this.options.enabled,C(this,de))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pe(this,be,Co).call(this),C(this,de).setOptions(this.options),r._defaulted&&!_r(this.options,r)&&C(this,He).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,de),observer:this});const o=this.hasListeners();o&&Mo(C(this,de),i,this.options,r)&&pe(this,be,qn).call(this),this.updateResult(n),o&&(C(this,de)!==i||tt(this.options.enabled,C(this,de))!==tt(r.enabled,C(this,de))||rn(this.options.staleTime,C(this,de))!==rn(r.staleTime,C(this,de)))&&pe(this,be,go).call(this);const s=pe(this,be,mo).call(this);o&&(C(this,de)!==i||tt(this.options.enabled,C(this,de))!==tt(r.enabled,C(this,de))||s!==C(this,Bt))&&pe(this,be,bo).call(this,s)}getOptimisticResult(t){const n=C(this,He).getQueryCache().build(C(this,He),t),r=this.createResult(n,t);return Vl(this,r)&&(Z(this,Me,r),Z(this,Cn,this.options),Z(this,Yt,C(this,de).state)),r}getCurrentResult(){return C(this,Me)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){C(this,Sn).add(t)}getCurrentQuery(){return C(this,de)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,He).defaultQueryOptions(t),r=C(this,He).getQueryCache().build(C(this,He),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return pe(this,be,qn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Me)))}createResult(t,n){var B;const r=C(this,de),i=this.options,o=C(this,Me),s=C(this,Yt),u=C(this,Cn),l=t!==r?t.state:C(this,jn),{state:c}=t;let d={...c},f=!1,p;if(n._optimisticResults){const D=this.hasListeners(),j=!D&&No(t,n),L=D&&Mo(t,r,n,i);(j||L)&&(d={...d,...Vo(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:y,errorUpdatedAt:g,status:I}=d;if(n.select&&d.data!==void 0)if(o&&d.data===(s==null?void 0:s.data)&&n.select===C(this,Jn))p=C(this,xn);else try{Z(this,Jn,n.select),p=n.select(d.data),p=Qr(o==null?void 0:o.data,p,n),Z(this,xn,p),Z(this,ft,null)}catch(D){Z(this,ft,D)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&I==="pending"){let D;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData))D=o.data;else if(D=typeof n.placeholderData=="function"?n.placeholderData((B=C(this,An))==null?void 0:B.state.data,C(this,An)):n.placeholderData,n.select&&D!==void 0)try{D=n.select(D),Z(this,ft,null)}catch(j){Z(this,ft,j)}D!==void 0&&(I="success",p=Qr(o==null?void 0:o.data,D,n),f=!0)}C(this,ft)&&(y=C(this,ft),p=C(this,xn),g=Date.now(),I="error");const v=d.fetchStatus==="fetching",A=I==="pending",w=I==="error",S=A&&v,P=p!==void 0,O={status:I,fetchStatus:d.fetchStatus,isPending:A,isSuccess:I==="success",isError:w,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:d.dataUpdatedAt,error:y,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!A,isLoadingError:w&&!P,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:w&&P,isStale:ti(t,n),refetch:this.refetch,promise:C(this,Gt)};if(this.options.experimental_prefetchInRender){const D=R=>{O.status==="error"?R.reject(O.error):O.data!==void 0&&R.resolve(O.data)},j=()=>{const R=Z(this,Gt,O.promise=$r());D(R)},L=C(this,Gt);switch(L.status){case"pending":t.queryHash===r.queryHash&&D(L);break;case"fulfilled":(O.status==="error"||O.data!==L.value)&&j();break;case"rejected":(O.status!=="error"||O.error!==L.reason)&&j();break}}return O}updateResult(t){const n=C(this,Me),r=this.createResult(C(this,de),this.options);if(Z(this,Yt,C(this,de).state),Z(this,Cn,this.options),C(this,Yt).data!==void 0&&Z(this,An,C(this,de)),_r(r,n))return;Z(this,Me,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!C(this,Sn).size)return!0;const a=new Set(u??C(this,Sn));return this.options.throwOnError&&a.add("error"),Object.keys(C(this,Me)).some(l=>{const c=l;return C(this,Me)[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),pe(this,be,pl).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,be,yo).call(this)}},He=new WeakMap,de=new WeakMap,jn=new WeakMap,Me=new WeakMap,Yt=new WeakMap,Cn=new WeakMap,Gt=new WeakMap,ft=new WeakMap,Jn=new WeakMap,xn=new WeakMap,An=new WeakMap,_t=new WeakMap,Ut=new WeakMap,Bt=new WeakMap,Sn=new WeakMap,be=new WeakSet,qn=function(t){pe(this,be,Co).call(this);let n=C(this,de).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ue)),n},go=function(){pe(this,be,Io).call(this);const t=rn(this.options.staleTime,C(this,de));if(Nt||C(this,Me).isStale||!jr(t))return;const r=So(C(this,Me).dataUpdatedAt,t)+1;Z(this,_t,setTimeout(()=>{C(this,Me).isStale||this.updateResult()},r))},mo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,de)):this.options.refetchInterval)??!1},bo=function(t){pe(this,be,vo).call(this),Z(this,Bt,t),!(Nt||tt(this.options.enabled,C(this,de))===!1||!jr(C(this,Bt))||C(this,Bt)===0)&&Z(this,Ut,setInterval(()=>{(this.options.refetchIntervalInBackground||qr.isFocused())&&pe(this,be,qn).call(this)},C(this,Bt)))},yo=function(){pe(this,be,go).call(this),pe(this,be,bo).call(this,pe(this,be,mo).call(this))},Io=function(){C(this,_t)&&(clearTimeout(C(this,_t)),Z(this,_t,void 0))},vo=function(){C(this,Ut)&&(clearInterval(C(this,Ut)),Z(this,Ut,void 0))},Co=function(){const t=C(this,He).getQueryCache().build(C(this,He),this.options);if(t===C(this,de))return;const n=C(this,de);Z(this,de,t),Z(this,jn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},pl=function(t){Be.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Me))}),C(this,He).getQueryCache().notify({query:C(this,de),type:"observerResultsUpdated"})})},$a);function Tl(e,t){return tt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function No(e,t){return Tl(e,t)||e.state.data!==void 0&&ei(e,t,t.refetchOnMount)}function ei(e,t,n){if(tt(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ti(e,t)}return!1}function Mo(e,t,n,r){return(e!==t||tt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ti(e,n)}function ti(e,t){return tt(t.enabled,e)!==!1&&e.isStaleByTime(rn(t.staleTime,e))}function Vl(e,t){return!_r(e.getCurrentResult(),t)}var Lo=re.createContext(void 0),Rl=e=>{const t=re.useContext(Lo);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Dl=({client:e,children:t})=>(re.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),T.jsx(Lo.Provider,{value:e,children:t})),Xo=re.createContext(!1),Nl=()=>re.useContext(Xo);Xo.Provider;function Ml(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ll=re.createContext(Ml()),Xl=()=>re.useContext(Ll);function zl(e,t){return typeof e=="function"?e(...t):!!e}function zo(){}var Hl=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Wl=e=>{re.useEffect(()=>{e.clearReset()},[e])},Zl=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&zl(n,[e.error,r]),jl=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Jl=(e,t)=>e.isLoading&&e.isFetching&&!t,Yl=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ho=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function _l(e,t,n){var c,d,f,p,y;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Rl(),i=Nl(),o=Xl(),s=r.defaultQueryOptions(e);(d=(c=r.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||d.call(c,s),s._optimisticResults=i?"isRestoring":"optimistic",jl(s),Hl(s,o),Wl(o);const u=!r.getQueryCache().get(s.queryHash),[a]=re.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(re.useSyncExternalStore(re.useCallback(g=>{const I=i?zo:a.subscribe(Be.batchCalls(g));return a.updateResult(),I},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),re.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),Yl(s,l))throw Ho(s,a,o);if(Zl({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;if((p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,s,l),s.experimental_prefetchInRender&&!Nt&&Jl(l,i)){const g=u?Ho(s,a,o):(y=r.getQueryCache().get(s.queryHash))==null?void 0:y.promise;g==null||g.catch(zo).finally(()=>{a.updateResult()})}return s.notifyOnChangeProps?l:a.trackResult(l)}function Mt(e,t){return _l(e,Ol)}const Wo=G.createContext(void 0),mt=()=>{const e=G.useContext(Wo);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},Ul=({children:e,client:t})=>{const n=new Bl({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return T.jsx(Dl,{client:n,children:T.jsx(Wo.Provider,{value:t,children:e})})};function Zo(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function Ql(e){if(typeof e=="object"&&e&&"selectedOptions"in e&&Array.isArray(e.selectedOptions)){const t=e.selectedOptions,n=[];for(const r of t)if(typeof r=="object"&&r&&"emitValue"in r){const i=r.emitValue;typeof i=="object"&&i&&"__lv"in i?n.push(i.__lv.value):n.push(i)}else return[];return n}return Array.isArray(e)?e:[]}function ql(e){const t=Ql(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function $l(e){const t=Zo(e.value);if(t==null||typeof t>"u")return["required"]}function Kl(e){const{prop:t,value:n}=e,r=Zo(n);if(!t.default&&(r==null||typeof r>"u"))return["required"];const i=typeof r=="number"?r:parseInt(String(r));if(Number.isNaN(i))return["not a number"];const o=[];return typeof t.min=="number"&&i<t.min&&o.push("number too small"),typeof t.max=="number"&&i>t.max&&o.push("number too big"),o}function ec(e){const{prop:t,value:n}=e;if(!t.default&&(n==null||typeof n>"u"))return["required"]}function tc(e){const t=e.auth_type==="oauth",n=JSON.parse(e.custom_fields_json||"[]");if("extracted_custom_fields_names"in e&&e.extracted_custom_fields_names){const r=(e.extracted_custom_fields_names||[]).map(i=>({name:i}));n.push(...r)}return n.map(r=>({...r,optional:r.optional||t}))}function nc(e){const{app:t,value:n}=e;if(!t)return["app field not registered"];if(!n)return["no app configured"];if(typeof n!="object")return["not an app"];const r=n;if("authProvisionId"in r&&!r.authProvisionId&&t.auth_type){const i=[];if(t.auth_type==="oauth"&&!r.oauth_access_token&&i.push("missing oauth token"),t.auth_type==="oauth"||t.auth_type==="keys"){const o=tc(t),s=r;for(const u of o)!u.optional&&!s[u.name]&&i.push(`missing custom field: ${u.name}`)}return t.auth_type!=="none"&&i.push("no auth provision configured"),i}}const Gn=["$.service.db","$.interface.http","$.interface.apphook","$.interface.timer"],ni=G.createContext(void 0),nr=()=>{const e=G.useContext(ni);if(!e)throw new Error("Must be used inside provider");return e},jo=({children:e,props:t})=>{const n=mt(),r=G.useId(),{component:i,configuredProps:o,propNames:s,userId:u}=t,a=i.key,[l,c]=G.useState(0),[d,f]=G.useState({}),[p,y]=G.useState(!1),[g,I]=G.useState({}),[v,A]=G.useState({});G.useEffect(()=>{A({})},[i.key]);const w=M=>v[M.name];let S=o||{};const[P,E]=G.useState(S),O=t.onUpdateConfiguredProps||E;t.onUpdateConfiguredProps||(S=P);const[B,D]=G.useState(),[j,L]=G.useState(),R={userId:u,componentId:a,configuredProps:S,dynamicPropsId:B==null?void 0:B.id},te={...R},{isFetching:se}=Mt({queryKey:["dynamicProps",te],queryFn:async()=>{var W;const{dynamicProps:M}=await n.componentReloadProps(R);return M&&((W=t.onUpdateDynamicProps)==null||W.call(t,M),D(M)),L(void 0),[]},enabled:j!=null}),[z,U]=G.useState([]);G.useEffect(()=>{ne()},[S]);let Q=(B==null?void 0:B.configurableProps)||t.component.configurable_props||[];if(s!=null&&s.length){const M=[];for(const W of Q)s.findIndex(q=>W.name===q)>=0&&M.push(W);Q=M}j!=null&&(Q=Q.slice(0,j+1));const ce=(M,W)=>{const q=[];if(M.optional||M.hidden||M.disabled||Gn.includes(M.type))return[];if(M.type==="app"){const he=d[M.name];if(he){const ke=he.extra.app;q.push(...nc({prop:M,value:W,app:ke})??[])}else q.push("field not registered")}else M.type==="boolean"?q.push(...$l({prop:M,value:W})??[]):M.type==="integer"?q.push(...Kl({prop:M,value:W})??[]):M.type==="string"?q.push(...ec({prop:M,value:W})??[]):M.type==="string[]"&&q.push(...ql({prop:M,value:W})??[]);return q},ye=M=>{let W;for(let q=0;q<Q.length;q++){const he=Q[q];if(he.hidden||he.optional&&!w(he))continue;if(M[he.name]===void 0&&W==null&&(he.type==="app"||he.remoteOptions)){W=q;break}}c(W)},b=M=>{O(M),ye(M);const W={};for(let q=0;q<Q.length;q++){const he=Q[q],ke=M[he.name],Ye=ce(he,ke);Ye.length&&(W[he.name]=Ye)}I(W)};G.useEffect(()=>{const M={};for(const W of Q){if(W.hidden||Gn.includes(W.type)||W.optional&&!w(W))continue;const q=S[W.name];q===void 0?"default"in W&&W.default!=null&&(M[W.name]=W.default):W.type==="integer"&&typeof q!="number"?delete M[W.name]:M[W.name]=q}gl(M,S)||b(M)},[Q]);const[xe,le]=G.useState(u);G.useEffect(()=>{xe!==u&&(b({}),le(u))},[u]);const m=(M,W)=>{const q=Q[M],he={...S};W===void 0?delete he[q.name]:he[q.name]=W,O(he),q.reloadProps&&L(M),(q.type==="app"||q.remoteOptions)&&ye(he);const ke=ce(q,W),Ye={...g};ke.length?Ye[q.name]=ke:delete Ye[q.name],I(Ye)},me=(M,W)=>{const q={...v};W?q[M.name]=!0:delete q[M.name];const he=Q.findIndex(ke=>ke.name===M.name);W?(o==null?void 0:o[M.name])!==void 0?m(he,o[M.name]):"default"in M&&M.default!=null&&m(he,M.default):m(he,void 0),A(q)},ne=()=>{const M=[];for(const W of Q){if(!W||W.optional||W.hidden||Gn.includes(W.type))continue;const q=S[W.name];ce(W,q).length&&M.push(W.name)}U(M)},fe=M=>{f(W=>(W[M.prop.name]=M,W))},Pe={id:r,isValid:!Object.keys(g).length,props:t,userId:u,component:i,configurableProps:Q,configuredProps:S,dynamicProps:B,dynamicPropsQueryIsFetching:se,errors:g,fields:d,optionalPropIsEnabled:w,optionalPropSetEnabled:me,propsNeedConfiguring:z,queryDisabledIdx:l,registerField:fe,setConfiguredProp:m,setSubmitting:y,submitting:p};return T.jsx(ni.Provider,{value:Pe,children:e})};function Lt(e){"@babel/helpers - typeof";return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(e)}function rc(e,t){if(Lt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jo(e){var t=rc(e,"string");return Lt(t)=="symbol"?t:t+""}function Bn(e,t,n){return(t=Jo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yo(Object(n),!0).forEach(function(r){Bn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ic(e){if(Array.isArray(e))return e}function oc(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,u=[],a=!0,l=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);a=!0);}catch(c){l=!0,i=c}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return u}}function ri(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _o(e,t){if(e){if(typeof e=="string")return ri(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ri(e,t):void 0}}function sc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bt(e,t){return ic(e)||oc(e,t)||_o(e,t)||sc()}function uc(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function st(e,t){if(e==null)return{};var n,r,i=uc(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ac=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Uo(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,s=o===void 0?null:o,u=e.inputValue,a=e.menuIsOpen,l=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,y=st(e,ac),g=G.useState(u!==void 0?u:n),I=bt(g,2),v=I[0],A=I[1],w=G.useState(a!==void 0?a:i),S=bt(w,2),P=S[0],E=S[1],O=G.useState(p!==void 0?p:s),B=bt(O,2),D=B[0],j=B[1],L=G.useCallback(function(ce,ye){typeof l=="function"&&l(ce,ye),j(ce)},[l]),R=G.useCallback(function(ce,ye){var b;typeof c=="function"&&(b=c(ce,ye)),A(b!==void 0?b:ce)},[c]),te=G.useCallback(function(){typeof f=="function"&&f(),E(!0)},[f]),se=G.useCallback(function(){typeof d=="function"&&d(),E(!1)},[d]),z=u!==void 0?u:v,U=a!==void 0?a:P,Q=p!==void 0?p:D;return Y(Y({},y),{},{inputValue:z,menuIsOpen:U,onChange:L,onInputChange:R,onMenuClose:se,onMenuOpen:te,value:Q})}function _(){return _=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},_.apply(null,arguments)}function lc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jo(r.key),r)}}function cc(e,t,n){return t&&Qo(e.prototype,t),n&&Qo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ii(e,t){return ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ii(e,t)}function dc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ii(e,t)}function rr(e){return rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rr(e)}function qo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qo=function(){return!!e})()}function pc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fc(e,t){if(t&&(Lt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pc(e)}function hc(e){var t=qo();return function(){var n,r=rr(e);if(t){var i=rr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fc(this,n)}}function gc(e){if(Array.isArray(e))return ri(e)}function mc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bc(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function on(e){return gc(e)||mc(e)||_o(e)||bc()}function yc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Ic=Math.min,vc=Math.max,ir=Math.round,or=Math.floor,sr=e=>({x:e,y:e});function Cc(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ur(){return typeof window<"u"}function $o(e){return es(e)?(e.nodeName||"").toLowerCase():"#document"}function yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ko(e){var t;return(t=(es(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function es(e){return ur()?e instanceof Node||e instanceof yt(e).Node:!1}function xc(e){return ur()?e instanceof Element||e instanceof yt(e).Element:!1}function oi(e){return ur()?e instanceof HTMLElement||e instanceof yt(e).HTMLElement:!1}function ts(e){return!ur()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yt(e).ShadowRoot}function ns(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=si(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Ac(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Sc(e){return["html","body","#document"].includes($o(e))}function si(e){return yt(e).getComputedStyle(e)}function wc(e){if($o(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ts(e)&&e.host||Ko(e);return ts(t)?t.host:t}function rs(e){const t=wc(e);return Sc(t)?e.ownerDocument?e.ownerDocument.body:e.body:oi(t)&&ns(t)?t:rs(t)}function ar(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=rs(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=yt(i);if(o){const u=ui(s);return t.concat(s,s.visualViewport||[],ns(i)?i:[],u&&n?ar(u):[])}return t.concat(i,ar(i,[],n))}function ui(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ec(e){const t=si(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=oi(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,u=ir(n)!==o||ir(r)!==s;return u&&(n=o,r=s),{width:n,height:r,$:u}}function ai(e){return xc(e)?e:e.contextElement}function is(e){const t=ai(e);if(!oi(t))return sr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ec(t);let s=(o?ir(n.width):n.width)/r,u=(o?ir(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const Fc=sr(0);function Pc(e){const t=yt(e);return!Ac()||!t.visualViewport?Fc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kc(e,t,n){return!1}function os(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=ai(e);let s=sr(1);t&&(s=is(e));const u=kc()?Pc(o):sr(0);let a=(i.left+u.x)/s.x,l=(i.top+u.y)/s.y,c=i.width/s.x,d=i.height/s.y;if(o){const f=yt(o),p=r;let y=f,g=ui(y);for(;g&&r&&p!==y;){const I=is(g),v=g.getBoundingClientRect(),A=si(g),w=v.left+(g.clientLeft+parseFloat(A.paddingLeft))*I.x,S=v.top+(g.clientTop+parseFloat(A.paddingTop))*I.y;a*=I.x,l*=I.y,c*=I.x,d*=I.y,a+=w,l+=S,y=yt(g),g=ui(y)}}return Cc({width:c,height:d,x:a,y:l})}function Gc(e,t){let n=null,r;const i=Ko(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function s(u,a){u===void 0&&(u=!1),a===void 0&&(a=1),o();const{left:l,top:c,width:d,height:f}=e.getBoundingClientRect();if(u||t(),!d||!f)return;const p=or(c),y=or(i.clientWidth-(l+d)),g=or(i.clientHeight-(c+f)),I=or(l),A={rootMargin:-p+"px "+-y+"px "+-g+"px "+-I+"px",threshold:vc(0,Ic(1,a))||1};let w=!0;function S(P){const E=P[0].intersectionRatio;if(E!==a){if(!w)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(S,{...A,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,A)}n.observe(e)}return s(!0),o}function Bc(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,l=ai(e),c=i||o?[...l?ar(l):[],...ar(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const d=l&&u?Gc(l,n):null;let f=-1,p=null;s&&(p=new ResizeObserver(v=>{let[A]=v;A&&A.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),l&&!a&&p.observe(l),p.observe(t));let y,g=a?os(e):null;a&&I();function I(){const v=os(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,y=requestAnimationFrame(I)}return n(),()=>{var v;c.forEach(A=>{i&&A.removeEventListener("scroll",n),o&&A.removeEventListener("resize",n)}),d==null||d(),(v=p)==null||v.disconnect(),p=null,a&&cancelAnimationFrame(y)}}var li=G.useLayoutEffect,Oc=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],lr=function(){};function Tc(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Vc(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&o.push("".concat(Tc(e,s)));return o.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var cr=function(t){return Wc(t)?t.filter(Boolean):Lt(t)==="object"&&t!==null?[t]:[]},ss=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=st(t,Oc);return Y({},n)},Se=function(t,n,r){var i=t.cx,o=t.getStyles,s=t.getClassNames,u=t.className;return{css:o(n,t),className:i(r??{},s(n,t),u)}};function dr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Rc(e){return dr(e)?window.innerHeight:e.clientHeight}function us(e){return dr(e)?window.pageYOffset:e.scrollTop}function pr(e,t){if(dr(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Dc(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function Nc(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function fr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:lr,i=us(e),o=t-i,s=10,u=0;function a(){u+=s;var l=Nc(u,i,o,n);pr(e,l),u<n?window.requestAnimationFrame(a):r(e)}a()}function as(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?pr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&pr(e,Math.max(t.offsetTop-i,0))}function Mc(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function ls(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Lc(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var cs=!1,Xc={get passive(){return cs=!0}},hr=typeof window<"u"?window:{};hr.addEventListener&&hr.removeEventListener&&(hr.addEventListener("p",lr,Xc),hr.removeEventListener("p",lr,!1));var zc=cs;function Hc(e){return e!=null}function Wc(e){return Array.isArray(e)}function On(e,t,n){return e?t:n}function Sy(e){return e}function wy(e){return e}var Zc=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=Object.entries(t).filter(function(s){var u=bt(s,1),a=u[0];return!r.includes(a)});return o.reduce(function(s,u){var a=bt(u,2),l=a[0],c=a[1];return s[l]=c,s},{})},jc=["children","innerProps"],Jc=["children","innerProps"];function Yc(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,s=e.isFixedPosition,u=e.controlHeight,a=Dc(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=a.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),p=f.bottom,y=f.height,g=f.top,I=n.offsetParent.getBoundingClientRect(),v=I.top,A=s?window.innerHeight:Rc(a),w=us(a),S=parseInt(getComputedStyle(n).marginBottom,10),P=parseInt(getComputedStyle(n).marginTop,10),E=v-P,O=A-g,B=E+w,D=d-w-g,j=p-A+w+S,L=w+g-P,R=160;switch(i){case"auto":case"bottom":if(O>=y)return{placement:"bottom",maxHeight:t};if(D>=y&&!s)return o&&fr(a,j,R),{placement:"bottom",maxHeight:t};if(!s&&D>=r||s&&O>=r){o&&fr(a,j,R);var te=s?O-S:D-S;return{placement:"bottom",maxHeight:te}}if(i==="auto"||s){var se=t,z=s?E:B;return z>=r&&(se=Math.min(z-S-u,t)),{placement:"top",maxHeight:se}}if(i==="bottom")return o&&pr(a,j),{placement:"bottom",maxHeight:t};break;case"top":if(E>=y)return{placement:"top",maxHeight:t};if(B>=y&&!s)return o&&fr(a,L,R),{placement:"top",maxHeight:t};if(!s&&B>=r||s&&E>=r){var U=t;return(!s&&B>=r||s&&E>=r)&&(U=s?E-P:B-P),o&&fr(a,L,R),{placement:"top",maxHeight:U}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return l}function _c(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var ds=function(t){return t==="auto"?"bottom":t},Uc=function(t,n){var r,i=t.placement,o=t.theme,s=o.borderRadius,u=o.spacing,a=o.colors;return Y((r={label:"menu"},Bn(r,_c(i),"100%"),Bn(r,"position","absolute"),Bn(r,"width","100%"),Bn(r,"zIndex",1),r),n?{}:{backgroundColor:a.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},ps=G.createContext(null),Qc=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,u=t.menuShouldScrollIntoView,a=t.theme,l=G.useContext(ps)||{},c=l.setPortalPlacement,d=G.useRef(null),f=G.useState(i),p=bt(f,2),y=p[0],g=p[1],I=G.useState(null),v=bt(I,2),A=v[0],w=v[1],S=a.spacing.controlHeight;return li(function(){var P=d.current;if(P){var E=s==="fixed",O=u&&!E,B=Yc({maxHeight:i,menuEl:P,minHeight:r,placement:o,shouldScroll:O,isFixedPosition:E,controlHeight:S});g(B.maxHeight),w(B.placement),c==null||c(B.placement)}},[i,o,s,u,r,c,S]),n({ref:d,placerProps:Y(Y({},t),{},{placement:A||ds(o),maxHeight:y})})},qc=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return J.jsx("div",_({},Se(t,"menu",{menu:!0}),{ref:r},i),n)},$c=qc,Kc=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return Y({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},ed=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return J.jsx("div",_({},Se(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},fs=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return Y({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},td=fs,nd=fs,rd=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=st(t,jc);return J.jsx("div",_({},Se(Y(Y({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},id=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=st(t,Jc);return J.jsx("div",_({},Se(Y(Y({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},od=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},sd=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,s=t.menuPlacement,u=t.menuPosition,a=G.useRef(null),l=G.useRef(null),c=G.useState(ds(s)),d=bt(c,2),f=d[0],p=d[1],y=G.useMemo(function(){return{setPortalPlacement:p}},[]),g=G.useState(null),I=bt(g,2),v=I[0],A=I[1],w=G.useCallback(function(){if(i){var O=Mc(i),B=u==="fixed"?0:window.pageYOffset,D=O[f]+B;(D!==(v==null?void 0:v.offset)||O.left!==(v==null?void 0:v.rect.left)||O.width!==(v==null?void 0:v.rect.width))&&A({offset:D,rect:O})}},[i,u,f,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);li(function(){w()},[w]);var S=G.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),i&&a.current&&(l.current=Bc(i,a.current,w,{elementResize:"ResizeObserver"in window}))},[i,w]);li(function(){S()},[S]);var P=G.useCallback(function(O){a.current=O,S()},[S]);if(!n&&u!=="fixed"||!v)return null;var E=J.jsx("div",_({ref:P},Se(Y(Y({},t),{},{offset:v.offset,position:u,rect:v.rect}),"menuPortal",{"menu-portal":!0}),o),r);return J.jsx(ps.Provider,{value:y},n?Zr.createPortal(E,n):E)},ud=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},ad=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return J.jsx("div",_({},Se(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},ld=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,s=t.selectProps.controlShouldRenderValue;return Y({alignItems:"center",display:i&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},cd=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return J.jsx("div",_({},Se(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},dd=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},pd=function(t){var n=t.children,r=t.innerProps;return J.jsx("div",_({},Se(t,"indicatorsContainer",{indicators:!0}),r),n)},hs,fd=["size"],hd=["innerProps","isRtl","size"];function gd(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var md=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7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gc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:gd},gs=function(t){var n=t.size,r=st(t,fd);return J.jsx("svg",_({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:md},r))},ci=function(t){return J.jsx(gs,_({size:20},t),J.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ms=function(t){return J.jsx(gs,_({size:20},t),J.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},bs=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return Y({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:o*2,":hover":{color:r?s.neutral80:s.neutral40}})},bd=bs,yd=function(t){var n=t.children,r=t.innerProps;return J.jsx("div",_({},Se(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||J.jsx(ms,null))},Id=bs,vd=function(t){var n=t.children,r=t.innerProps;return J.jsx("div",_({},Se(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||J.jsx(ci,null))},Cd=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return Y({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},xd=function(t){var n=t.innerProps;return J.jsx("span",_({},n,Se(t,"indicatorSeparator",{"indicator-separator":!0})))},Ad=J.keyframes(hs||(hs=yc([`
1
+ (function(X,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react/jsx-runtime"),require("react"),require("@emotion/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@emotion/react","react-dom"],T):(X=typeof globalThis<"u"?globalThis:X||self,T(X["connect-react"]={},X["react/jsx-runtime"],X.React,X["@emotion/react"],X.ReactDOM))})(this,function(X,T,G,J,Zr){"use strict";var dl=X=>{throw TypeError(X)};var ho=(X,T,G)=>T.has(X)||dl("Cannot "+G);var C=(X,T,G)=>(ho(X,T,"read from private field"),G?G.call(X):T.get(X)),ee=(X,T,G)=>T.has(X)?dl("Cannot add the same private member more than once"):T instanceof WeakSet?T.add(X):T.set(X,G),Z=(X,T,G,J)=>(ho(X,T,"write to private field"),J?J.call(X,G):T.set(X,G),G),pe=(X,T,G)=>(ho(X,T,"access private method"),G);var Wr=(X,T,G,J)=>({set _(Zr){Z(X,T,Zr,G)},get _(){return C(X,T,J)}});var Wt,wt,pn,Za,fn,Et,hn,ja,Zt,Ja,gn,mn,$e,Ve,Wn,jt,nt,xt,Ya,ct,_a,dt,Ne,Jt,pt,Dt,Ua,Je,Zn,Qa,we,Ft,Pt,bn,yn,kt,In,vn,qa,He,de,jn,Me,Yt,Cn,Gt,ft,Jn,xn,An,_t,Ut,Bt,Sn,be,qn,go,mo,bo,yo,Io,vo,Co,pl,$a;function fl(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 re=fl(G);typeof document>"u"&&(globalThis.document={createElement:()=>{}});function xo({prop:e}){return T.jsx("p",{className:`pd-alert-${e.alertType}`,children:e.content})}var nn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ao(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $n={exports:{}};$n.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,u="[object Arguments]",a="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",y="[object GeneratorFunction]",g="[object Map]",I="[object Number]",v="[object Null]",A="[object Object]",E="[object Promise]",S="[object Proxy]",P="[object RegExp]",w="[object Set]",O="[object String]",B="[object Symbol]",D="[object Undefined]",j="[object WeakMap]",L="[object ArrayBuffer]",R="[object DataView]",te="[object Float32Array]",se="[object Float64Array]",z="[object Int8Array]",U="[object Int16Array]",Q="[object Int32Array]",ce="[object Uint8Array]",ye="[object Uint8ClampedArray]",b="[object Uint16Array]",xe="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,m=/^\[object .+?Constructor\]$/,me=/^(?:0|[1-9]\d*)$/,ne={};ne[te]=ne[se]=ne[z]=ne[U]=ne[Q]=ne[ce]=ne[ye]=ne[b]=ne[xe]=!0,ne[u]=ne[a]=ne[L]=ne[c]=ne[R]=ne[d]=ne[f]=ne[p]=ne[g]=ne[I]=ne[A]=ne[P]=ne[w]=ne[O]=ne[j]=!1;var fe=typeof nn=="object"&&nn&&nn.Object===Object&&nn,Pe=typeof self=="object"&&self&&self.Object===Object&&self,M=fe||Pe||Function("return this")(),W=t&&!t.nodeType&&t,q=W&&!0&&e&&!e.nodeType&&e,he=q&&q.exports===W,ke=he&&fe.process,Ye=function(){try{return ke&&ke.binding&&ke.binding("util")}catch{}}(),Qt=Ye&&Ye.isTypedArray;function wn(h,x){for(var k=-1,H=h==null?0:h.length,Ce=0,oe=[];++k<H;){var Ee=h[k];x(Ee,k,h)&&(oe[Ce++]=Ee)}return oe}function Tr(h,x){for(var k=-1,H=x.length,Ce=h.length;++k<H;)h[Ce+k]=x[k];return h}function Vr(h,x){for(var k=-1,H=h==null?0:h.length;++k<H;)if(x(h[k],k,h))return!0;return!1}function to(h,x){for(var k=-1,H=Array(h);++k<h;)H[k]=x(k);return H}function Rr(h){return function(x){return h(x)}}function Dr(h,x){return h.has(x)}function no(h,x){return h==null?void 0:h[x]}function ro(h){var x=-1,k=Array(h.size);return h.forEach(function(H,Ce){k[++x]=[Ce,H]}),k}function io(h,x){return function(k){return h(x(k))}}function oo(h){var x=-1,k=Array(h.size);return h.forEach(function(H){k[++x]=H}),k}var so=Array.prototype,F=Function.prototype,N=Object.prototype,K=M["__core-js_shared__"],ue=F.toString,ae=N.hasOwnProperty,We=function(){var h=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),ht=N.toString,rt=RegExp("^"+ue.call(ae).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ot=he?M.Buffer:void 0,gt=M.Symbol,Re=M.Uint8Array,It=N.propertyIsEnumerable,it=so.splice,qt=gt?gt.toStringTag:void 0,Ka=Object.getOwnPropertySymbols,Pb=Ot?Ot.isBuffer:void 0,kb=io(Object.keys,Object),uo=En(M,"DataView"),Yn=En(M,"Map"),ao=En(M,"Promise"),lo=En(M,"Set"),co=En(M,"WeakMap"),_n=En(Object,"create"),Gb=en(uo),Bb=en(Yn),Ob=en(ao),Tb=en(lo),Vb=en(co),el=gt?gt.prototype:void 0,po=el?el.valueOf:void 0;function $t(h){var x=-1,k=h==null?0:h.length;for(this.clear();++x<k;){var H=h[x];this.set(H[0],H[1])}}function Rb(){this.__data__=_n?_n(null):{},this.size=0}function Db(h){var x=this.has(h)&&delete this.__data__[h];return this.size-=x?1:0,x}function Nb(h){var x=this.__data__;if(_n){var k=x[h];return k===r?void 0:k}return ae.call(x,h)?x[h]:void 0}function Mb(h){var x=this.__data__;return _n?x[h]!==void 0:ae.call(x,h)}function Lb(h,x){var k=this.__data__;return this.size+=this.has(h)?0:1,k[h]=_n&&x===void 0?r:x,this}$t.prototype.clear=Rb,$t.prototype.delete=Db,$t.prototype.get=Nb,$t.prototype.has=Mb,$t.prototype.set=Lb;function vt(h){var x=-1,k=h==null?0:h.length;for(this.clear();++x<k;){var H=h[x];this.set(H[0],H[1])}}function Xb(){this.__data__=[],this.size=0}function zb(h){var x=this.__data__,k=Mr(x,h);if(k<0)return!1;var H=x.length-1;return k==H?x.pop():it.call(x,k,1),--this.size,!0}function Hb(h){var x=this.__data__,k=Mr(x,h);return k<0?void 0:x[k][1]}function Wb(h){return Mr(this.__data__,h)>-1}function Zb(h,x){var k=this.__data__,H=Mr(k,h);return H<0?(++this.size,k.push([h,x])):k[H][1]=x,this}vt.prototype.clear=Xb,vt.prototype.delete=zb,vt.prototype.get=Hb,vt.prototype.has=Wb,vt.prototype.set=Zb;function Kt(h){var x=-1,k=h==null?0:h.length;for(this.clear();++x<k;){var H=h[x];this.set(H[0],H[1])}}function jb(){this.size=0,this.__data__={hash:new $t,map:new(Yn||vt),string:new $t}}function Jb(h){var x=Lr(this,h).delete(h);return this.size-=x?1:0,x}function Yb(h){return Lr(this,h).get(h)}function _b(h){return Lr(this,h).has(h)}function Ub(h,x){var k=Lr(this,h),H=k.size;return k.set(h,x),this.size+=k.size==H?0:1,this}Kt.prototype.clear=jb,Kt.prototype.delete=Jb,Kt.prototype.get=Yb,Kt.prototype.has=_b,Kt.prototype.set=Ub;function Nr(h){var x=-1,k=h==null?0:h.length;for(this.__data__=new Kt;++x<k;)this.add(h[x])}function Qb(h){return this.__data__.set(h,r),this}function qb(h){return this.__data__.has(h)}Nr.prototype.add=Nr.prototype.push=Qb,Nr.prototype.has=qb;function Tt(h){var x=this.__data__=new vt(h);this.size=x.size}function $b(){this.__data__=new vt,this.size=0}function Kb(h){var x=this.__data__,k=x.delete(h);return this.size=x.size,k}function ey(h){return this.__data__.get(h)}function ty(h){return this.__data__.has(h)}function ny(h,x){var k=this.__data__;if(k instanceof vt){var H=k.__data__;if(!Yn||H.length<n-1)return H.push([h,x]),this.size=++k.size,this;k=this.__data__=new Kt(H)}return k.set(h,x),this.size=k.size,this}Tt.prototype.clear=$b,Tt.prototype.delete=Kb,Tt.prototype.get=ey,Tt.prototype.has=ty,Tt.prototype.set=ny;function ry(h,x){var k=Xr(h),H=!k&&yy(h),Ce=!k&&!H&&fo(h),oe=!k&&!H&&!Ce&&ll(h),Ee=k||H||Ce||oe,Ge=Ee?to(h.length,String):[],Oe=Ge.length;for(var Ae in h)ae.call(h,Ae)&&!(Ee&&(Ae=="length"||Ce&&(Ae=="offset"||Ae=="parent")||oe&&(Ae=="buffer"||Ae=="byteLength"||Ae=="byteOffset")||fy(Ae,Oe)))&&Ge.push(Ae);return Ge}function Mr(h,x){for(var k=h.length;k--;)if(ol(h[k][0],x))return k;return-1}function iy(h,x,k){var H=x(h);return Xr(h)?H:Tr(H,k(h))}function Un(h){return h==null?h===void 0?D:v:qt&&qt in Object(h)?dy(h):by(h)}function tl(h){return Qn(h)&&Un(h)==u}function nl(h,x,k,H,Ce){return h===x?!0:h==null||x==null||!Qn(h)&&!Qn(x)?h!==h&&x!==x:oy(h,x,k,H,nl,Ce)}function oy(h,x,k,H,Ce,oe){var Ee=Xr(h),Ge=Xr(x),Oe=Ee?a:Vt(h),Ae=Ge?a:Vt(x);Oe=Oe==u?A:Oe,Ae=Ae==u?A:Ae;var _e=Oe==A,ot=Ae==A,De=Oe==Ae;if(De&&fo(h)){if(!fo(x))return!1;Ee=!0,_e=!1}if(De&&!_e)return oe||(oe=new Tt),Ee||ll(h)?rl(h,x,k,H,Ce,oe):ly(h,x,Oe,k,H,Ce,oe);if(!(k&i)){var Ke=_e&&ae.call(h,"__wrapped__"),et=ot&&ae.call(x,"__wrapped__");if(Ke||et){var Rt=Ke?h.value():h,Ct=et?x.value():x;return oe||(oe=new Tt),Ce(Rt,Ct,k,H,oe)}}return De?(oe||(oe=new Tt),cy(h,x,k,H,Ce,oe)):!1}function sy(h){if(!al(h)||gy(h))return!1;var x=sl(h)?rt:m;return x.test(en(h))}function uy(h){return Qn(h)&&ul(h.length)&&!!ne[Un(h)]}function ay(h){if(!my(h))return kb(h);var x=[];for(var k in Object(h))ae.call(h,k)&&k!="constructor"&&x.push(k);return x}function rl(h,x,k,H,Ce,oe){var Ee=k&i,Ge=h.length,Oe=x.length;if(Ge!=Oe&&!(Ee&&Oe>Ge))return!1;var Ae=oe.get(h);if(Ae&&oe.get(x))return Ae==x;var _e=-1,ot=!0,De=k&o?new Nr:void 0;for(oe.set(h,x),oe.set(x,h);++_e<Ge;){var Ke=h[_e],et=x[_e];if(H)var Rt=Ee?H(et,Ke,_e,x,h,oe):H(Ke,et,_e,h,x,oe);if(Rt!==void 0){if(Rt)continue;ot=!1;break}if(De){if(!Vr(x,function(Ct,tn){if(!Dr(De,tn)&&(Ke===Ct||Ce(Ke,Ct,k,H,oe)))return De.push(tn)})){ot=!1;break}}else if(!(Ke===et||Ce(Ke,et,k,H,oe))){ot=!1;break}}return oe.delete(h),oe.delete(x),ot}function ly(h,x,k,H,Ce,oe,Ee){switch(k){case R:if(h.byteLength!=x.byteLength||h.byteOffset!=x.byteOffset)return!1;h=h.buffer,x=x.buffer;case L:return!(h.byteLength!=x.byteLength||!oe(new Re(h),new Re(x)));case c:case d:case I:return ol(+h,+x);case f:return h.name==x.name&&h.message==x.message;case P:case O:return h==x+"";case g:var Ge=ro;case w:var Oe=H&i;if(Ge||(Ge=oo),h.size!=x.size&&!Oe)return!1;var Ae=Ee.get(h);if(Ae)return Ae==x;H|=o,Ee.set(h,x);var _e=rl(Ge(h),Ge(x),H,Ce,oe,Ee);return Ee.delete(h),_e;case B:if(po)return po.call(h)==po.call(x)}return!1}function cy(h,x,k,H,Ce,oe){var Ee=k&i,Ge=il(h),Oe=Ge.length,Ae=il(x),_e=Ae.length;if(Oe!=_e&&!Ee)return!1;for(var ot=Oe;ot--;){var De=Ge[ot];if(!(Ee?De in x:ae.call(x,De)))return!1}var Ke=oe.get(h);if(Ke&&oe.get(x))return Ke==x;var et=!0;oe.set(h,x),oe.set(x,h);for(var Rt=Ee;++ot<Oe;){De=Ge[ot];var Ct=h[De],tn=x[De];if(H)var cl=Ee?H(tn,Ct,De,x,h,oe):H(Ct,tn,De,h,x,oe);if(!(cl===void 0?Ct===tn||Ce(Ct,tn,k,H,oe):cl)){et=!1;break}Rt||(Rt=De=="constructor")}if(et&&!Rt){var zr=h.constructor,Hr=x.constructor;zr!=Hr&&"constructor"in h&&"constructor"in x&&!(typeof zr=="function"&&zr instanceof zr&&typeof Hr=="function"&&Hr instanceof Hr)&&(et=!1)}return oe.delete(h),oe.delete(x),et}function il(h){return iy(h,Cy,py)}function Lr(h,x){var k=h.__data__;return hy(x)?k[typeof x=="string"?"string":"hash"]:k.map}function En(h,x){var k=no(h,x);return sy(k)?k:void 0}function dy(h){var x=ae.call(h,qt),k=h[qt];try{h[qt]=void 0;var H=!0}catch{}var Ce=ht.call(h);return H&&(x?h[qt]=k:delete h[qt]),Ce}var py=Ka?function(h){return h==null?[]:(h=Object(h),wn(Ka(h),function(x){return It.call(h,x)}))}:xy,Vt=Un;(uo&&Vt(new uo(new ArrayBuffer(1)))!=R||Yn&&Vt(new Yn)!=g||ao&&Vt(ao.resolve())!=E||lo&&Vt(new lo)!=w||co&&Vt(new co)!=j)&&(Vt=function(h){var x=Un(h),k=x==A?h.constructor:void 0,H=k?en(k):"";if(H)switch(H){case Gb:return R;case Bb:return g;case Ob:return E;case Tb:return w;case Vb:return j}return x});function fy(h,x){return x=x??s,!!x&&(typeof h=="number"||me.test(h))&&h>-1&&h%1==0&&h<x}function hy(h){var x=typeof h;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?h!=="__proto__":h===null}function gy(h){return!!We&&We in h}function my(h){var x=h&&h.constructor,k=typeof x=="function"&&x.prototype||N;return h===k}function by(h){return ht.call(h)}function en(h){if(h!=null){try{return ue.call(h)}catch{}try{return h+""}catch{}}return""}function ol(h,x){return h===x||h!==h&&x!==x}var yy=tl(function(){return arguments}())?tl:function(h){return Qn(h)&&ae.call(h,"callee")&&!It.call(h,"callee")},Xr=Array.isArray;function Iy(h){return h!=null&&ul(h.length)&&!sl(h)}var fo=Pb||Ay;function vy(h,x){return nl(h,x)}function sl(h){if(!al(h))return!1;var x=Un(h);return x==p||x==y||x==l||x==S}function ul(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=s}function al(h){var x=typeof h;return h!=null&&(x=="object"||x=="function")}function Qn(h){return h!=null&&typeof h=="object"}var ll=Qt?Rr(Qt):uy;function Cy(h){return Iy(h)?ry(h):ay(h)}function xy(){return[]}function Ay(){return!1}e.exports=vy}($n,$n.exports);var hl=$n.exports;const gl=Ao(hl);var Fn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Nt=typeof window>"u"||"Deno"in globalThis;function Ue(){}function ml(e,t){return typeof e=="function"?e(t):e}function jr(e){return typeof e=="number"&&e>=0&&e!==1/0}function So(e,t){return Math.max(e+(t||0)-Date.now(),0)}function rn(e,t){return typeof e=="function"?e(t):e}function tt(e,t){return typeof e=="function"?e(t):e}function wo(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:u}=e;if(s){if(r){if(t.queryHash!==Jr(s,t.options))return!1}else if(!kn(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||o&&!o(t))}function Eo(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Pn(t.options.mutationKey)!==Pn(o))return!1}else if(!kn(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Jr(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pn)(e)}function Pn(e){return JSON.stringify(e,(t,n)=>Ur(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function kn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!kn(e[n],t[n])):!1}function Yr(e,t){if(e===t)return e;const n=Fo(e)&&Fo(t);if(n||Ur(e)&&Ur(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,u=n?[]:{};let a=0;for(let l=0;l<s;l++){const c=n?l:o[l];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(u[c]=void 0,a++):(u[c]=Yr(e[c],t[c]),u[c]===e[c]&&e[c]!==void 0&&a++)}return i===s&&a===i?e:u}return t}function _r(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Fo(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ur(e){if(!Po(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Po(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Po(e){return Object.prototype.toString.call(e)==="[object Object]"}function bl(e){return new Promise(t=>{setTimeout(t,e)})}function Qr(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Yr(e,t)}catch(r){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`)}return Yr(e,t)}return t}function yl(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Il(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Kn=Symbol();function ko(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Kn&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Kn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var vl=(Za=class extends Fn{constructor(){super();ee(this,Wt);ee(this,wt);ee(this,pn);Z(this,pn,t=>{if(!Nt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,wt)||this.setEventListener(C(this,pn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,wt))==null||t.call(this),Z(this,wt,void 0))}setEventListener(t){var n;Z(this,pn,t),(n=C(this,wt))==null||n.call(this),Z(this,wt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,Wt)!==t&&(Z(this,Wt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,Wt)=="boolean"?C(this,Wt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Wt=new WeakMap,wt=new WeakMap,pn=new WeakMap,Za),qr=new vl,Cl=(ja=class extends Fn{constructor(){super();ee(this,fn,!0);ee(this,Et);ee(this,hn);Z(this,hn,t=>{if(!Nt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,Et)||this.setEventListener(C(this,hn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Et))==null||t.call(this),Z(this,Et,void 0))}setEventListener(t){var n;Z(this,hn,t),(n=C(this,Et))==null||n.call(this),Z(this,Et,t(this.setOnline.bind(this)))}setOnline(t){C(this,fn)!==t&&(Z(this,fn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,fn)}},fn=new WeakMap,Et=new WeakMap,hn=new WeakMap,ja),er=new Cl;function $r(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function xl(e){return Math.min(1e3*2**e,3e4)}function Go(e){return(e??"online")==="online"?er.isOnline():!0}var Bo=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Kr(e){return e instanceof Bo}function Oo(e){let t=!1,n=0,r=!1,i;const o=$r(),s=g=>{var I;r||(f(new Bo(g)),(I=e.abort)==null||I.call(e))},u=()=>{t=!0},a=()=>{t=!1},l=()=>qr.isFocused()&&(e.networkMode==="always"||er.isOnline())&&e.canRun(),c=()=>Go(e.networkMode)&&e.canRun(),d=g=>{var I;r||(r=!0,(I=e.onSuccess)==null||I.call(e,g),i==null||i(),o.resolve(g))},f=g=>{var I;r||(r=!0,(I=e.onError)==null||I.call(e,g),i==null||i(),o.reject(g))},p=()=>new Promise(g=>{var I;i=v=>{(r||l())&&g(v)},(I=e.onPause)==null||I.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),y=()=>{if(r)return;let g;const I=n===0?e.initialPromise:void 0;try{g=I??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(d).catch(v=>{var w;if(r)return;const A=e.retry??(Nt?0:3),E=e.retryDelay??xl,S=typeof E=="function"?E(n,v):E,P=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,v);if(t||!P){f(v);return}n++,(w=e.onFail)==null||w.call(e,n,v),bl(S).then(()=>l()?void 0:p()).then(()=>{t?f(v):y()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:u,continueRetry:a,canStart:c,start:()=>(c()?y():p().then(y),o)}}function Al(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=u=>setTimeout(u,0);const o=u=>{t?e.push(u):i(()=>{n(u)})},s=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(a=>{n(a)})})})};return{batch:u=>{let a;t++;try{a=u()}finally{t--,t||s()}return a},batchCalls:u=>(...a)=>{o(()=>{u(...a)})},schedule:o,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var Be=Al(),To=(Ja=class{constructor(){ee(this,Zt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jr(this.gcTime)&&Z(this,Zt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Nt?1/0:5*60*1e3))}clearGcTimeout(){C(this,Zt)&&(clearTimeout(C(this,Zt)),Z(this,Zt,void 0))}},Zt=new WeakMap,Ja),Sl=(Ya=class extends To{constructor(t){super();ee(this,nt);ee(this,gn);ee(this,mn);ee(this,$e);ee(this,Ve);ee(this,Wn);ee(this,jt);Z(this,jt,!1),Z(this,Wn,t.defaultOptions),this.setOptions(t.options),this.observers=[],Z(this,$e,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Z(this,gn,wl(this.options)),this.state=t.state??C(this,gn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Ve))==null?void 0:t.promise}setOptions(t){this.options={...C(this,Wn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,$e).remove(this)}setData(t,n){const r=Qr(this.state.data,t,this.options);return pe(this,nt,xt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){pe(this,nt,xt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=C(this,Ve))==null?void 0:r.promise;return(i=C(this,Ve))==null||i.cancel(t),n?n.then(Ue).catch(Ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,gn))}isActive(){return this.observers.some(t=>tt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Kn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!So(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Ve))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Ve))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,$e).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Ve)&&(C(this,jt)?C(this,Ve).cancel({revert:!0}):C(this,Ve).cancelRetry()),this.scheduleGc()),C(this,$e).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,nt,xt).call(this,{type:"invalidate"})}fetch(t,n){var a,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Ve))return C(this,Ve).continueRetry(),C(this,Ve).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(Z(this,jt,!0),r.signal)})},o=()=>{const d=ko(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),Z(this,jt,!1),this.options.persister?this.options.persister(d,f,this):d(f)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(s),(a=this.options.behavior)==null||a.onFetch(s,this),Z(this,mn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=s.fetchOptions)==null?void 0:l.meta))&&pe(this,nt,xt).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const u=d=>{var f,p,y,g;Kr(d)&&d.silent||pe(this,nt,xt).call(this,{type:"error",error:d}),Kr(d)||((p=(f=C(this,$e).config).onError)==null||p.call(f,d,this),(g=(y=C(this,$e).config).onSettled)==null||g.call(y,this.state.data,d,this)),this.scheduleGc()};return Z(this,Ve,Oo({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,p,y,g;if(d===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(I){u(I);return}(p=(f=C(this,$e).config).onSuccess)==null||p.call(f,d,this),(g=(y=C(this,$e).config).onSettled)==null||g.call(y,d,this.state.error,this),this.scheduleGc()},onError:u,onFail:(d,f)=>{pe(this,nt,xt).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{pe(this,nt,xt).call(this,{type:"pause"})},onContinue:()=>{pe(this,nt,xt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),C(this,Ve).start()}},gn=new WeakMap,mn=new WeakMap,$e=new WeakMap,Ve=new WeakMap,Wn=new WeakMap,jt=new WeakMap,nt=new WeakSet,xt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Vo(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Kr(i)&&i.revert&&C(this,mn)?{...C(this,mn),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Be.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,$e).notify({query:this,type:"updated",action:t})})},Ya);function Vo(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Go(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function wl(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var El=(_a=class extends Fn{constructor(t={}){super();ee(this,ct);this.config=t,Z(this,ct,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Jr(i,n);let s=this.get(o);return s||(s=new Sl({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){C(this,ct).has(t.queryHash)||(C(this,ct).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,ct).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,ct).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,ct).get(t)}getAll(){return[...C(this,ct).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>wo(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>wo(t,r)):n}notify(t){Be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Be.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Be.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ct=new WeakMap,_a),Fl=(Ua=class extends To{constructor(t){super();ee(this,pt);ee(this,dt);ee(this,Ne);ee(this,Jt);this.mutationId=t.mutationId,Z(this,Ne,t.mutationCache),Z(this,dt,[]),this.state=t.state||Pl(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,dt).includes(t)||(C(this,dt).push(t),this.clearGcTimeout(),C(this,Ne).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Z(this,dt,C(this,dt).filter(n=>n!==t)),this.scheduleGc(),C(this,Ne).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,dt).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ne).remove(this))}continue(){var t;return((t=C(this,Jt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,u,a,l,c,d,f,p,y,g,I,v,A,E,S,P,w,O;Z(this,Jt,Oo({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(B,D)=>{pe(this,pt,Dt).call(this,{type:"failed",failureCount:B,error:D})},onPause:()=>{pe(this,pt,Dt).call(this,{type:"pause"})},onContinue:()=>{pe(this,pt,Dt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ne).canRun(this)}));const n=this.state.status==="pending",r=!C(this,Jt).canStart();try{if(!n){pe(this,pt,Dt).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=C(this,Ne).config).onMutate)==null?void 0:o.call(i,t,this));const D=await((u=(s=this.options).onMutate)==null?void 0:u.call(s,t));D!==this.state.context&&pe(this,pt,Dt).call(this,{type:"pending",context:D,variables:t,isPaused:r})}const B=await C(this,Jt).start();return await((l=(a=C(this,Ne).config).onSuccess)==null?void 0:l.call(a,B,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,B,t,this.state.context)),await((p=(f=C(this,Ne).config).onSettled)==null?void 0:p.call(f,B,null,this.state.variables,this.state.context,this)),await((g=(y=this.options).onSettled)==null?void 0:g.call(y,B,null,t,this.state.context)),pe(this,pt,Dt).call(this,{type:"success",data:B}),B}catch(B){try{throw await((v=(I=C(this,Ne).config).onError)==null?void 0:v.call(I,B,t,this.state.context,this)),await((E=(A=this.options).onError)==null?void 0:E.call(A,B,t,this.state.context)),await((P=(S=C(this,Ne).config).onSettled)==null?void 0:P.call(S,void 0,B,this.state.variables,this.state.context,this)),await((O=(w=this.options).onSettled)==null?void 0:O.call(w,void 0,B,t,this.state.context)),B}finally{pe(this,pt,Dt).call(this,{type:"error",error:B})}}finally{C(this,Ne).runNext(this)}}},dt=new WeakMap,Ne=new WeakMap,Jt=new WeakMap,pt=new WeakSet,Dt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Be.batch(()=>{C(this,dt).forEach(r=>{r.onMutationUpdate(t)}),C(this,Ne).notify({mutation:this,type:"updated",action:t})})},Ua);function Pl(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var kl=(Qa=class extends Fn{constructor(t={}){super();ee(this,Je);ee(this,Zn);this.config=t,Z(this,Je,new Map),Z(this,Zn,Date.now())}build(t,n,r){const i=new Fl({mutationCache:this,mutationId:++Wr(this,Zn)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=tr(t),r=C(this,Je).get(n)??[];r.push(t),C(this,Je).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=tr(t);if(C(this,Je).has(n)){const i=(r=C(this,Je).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?C(this,Je).delete(n):C(this,Je).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=C(this,Je).get(tr(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=C(this,Je).get(tr(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...C(this,Je).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Eo(n,r))}findAll(t={}){return this.getAll().filter(n=>Eo(t,n))}notify(t){Be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Be.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ue))))}},Je=new WeakMap,Zn=new WeakMap,Qa);function tr(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Ro(e){return{onFetch:(t,n)=>{var c,d,f,p,y;const r=t.options,i=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,o=((p=t.state.data)==null?void 0:p.pages)||[],s=((y=t.state.data)==null?void 0:y.pageParams)||[];let u={pages:[],pageParams:[]},a=0;const l=async()=>{let g=!1;const I=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=ko(t.options,t.fetchOptions),A=async(E,S,P)=>{if(g)return Promise.reject();if(S==null&&E.pages.length)return Promise.resolve(E);const w={queryKey:t.queryKey,pageParam:S,direction:P?"backward":"forward",meta:t.options.meta};I(w);const O=await v(w),{maxPages:B}=t.options,D=P?Il:yl;return{pages:D(E.pages,O,B),pageParams:D(E.pageParams,S,B)}};if(i&&o.length){const E=i==="backward",S=E?Gl:Do,P={pages:o,pageParams:s},w=S(r,P);u=await A(P,w,E)}else{const E=e??o.length;do{const S=a===0?s[0]??r.initialPageParam:Do(r,u);if(a>0&&S==null)break;u=await A(u,S),a++}while(a<E)}return u};t.options.persister?t.fetchFn=()=>{var g,I;return(I=(g=t.options).persister)==null?void 0:I.call(g,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Do(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Gl(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Bl=(qa=class{constructor(e={}){ee(this,we);ee(this,Ft);ee(this,Pt);ee(this,bn);ee(this,yn);ee(this,kt);ee(this,In);ee(this,vn);Z(this,we,e.queryCache||new El),Z(this,Ft,e.mutationCache||new kl),Z(this,Pt,e.defaultOptions||{}),Z(this,bn,new Map),Z(this,yn,new Map),Z(this,kt,0)}mount(){Wr(this,kt)._++,C(this,kt)===1&&(Z(this,In,qr.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,we).onFocus())})),Z(this,vn,er.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,we).onOnline())})))}unmount(){var e,t;Wr(this,kt)._--,C(this,kt)===0&&((e=C(this,In))==null||e.call(this),Z(this,In,void 0),(t=C(this,vn))==null||t.call(this),Z(this,vn,void 0))}isFetching(e){return C(this,we).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Ft).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,we).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=C(this,we).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(rn(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return C(this,we).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=C(this,we).get(r.queryHash),o=i==null?void 0:i.state.data,s=ml(t,o);if(s!==void 0)return C(this,we).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Be.batch(()=>C(this,we).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,we).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,we);Be.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,we),r={type:"active",...e};return Be.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Be.batch(()=>C(this,we).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ue).catch(Ue)}invalidateQueries(e={},t={}){return Be.batch(()=>{if(C(this,we).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Be.batch(()=>C(this,we).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ue)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Ue)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,we).build(this,t);return n.isStaleByTime(rn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ue).catch(Ue)}fetchInfiniteQuery(e){return e.behavior=Ro(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ue).catch(Ue)}ensureInfiniteQueryData(e){return e.behavior=Ro(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return er.isOnline()?C(this,Ft).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,we)}getMutationCache(){return C(this,Ft)}getDefaultOptions(){return C(this,Pt)}setDefaultOptions(e){Z(this,Pt,e)}setQueryDefaults(e,t){C(this,bn).set(Pn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,bn).values()];let n={};return t.forEach(r=>{kn(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){C(this,yn).set(Pn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,yn).values()];let n={};return t.forEach(r=>{kn(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Pt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Jr(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Kn&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Pt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,we).clear(),C(this,Ft).clear()}},we=new WeakMap,Ft=new WeakMap,Pt=new WeakMap,bn=new WeakMap,yn=new WeakMap,kt=new WeakMap,In=new WeakMap,vn=new WeakMap,qa),Ol=($a=class extends Fn{constructor(t,n){super();ee(this,be);ee(this,He);ee(this,de);ee(this,jn);ee(this,Me);ee(this,Yt);ee(this,Cn);ee(this,Gt);ee(this,ft);ee(this,Jn);ee(this,xn);ee(this,An);ee(this,_t);ee(this,Ut);ee(this,Bt);ee(this,Sn,new Set);this.options=n,Z(this,He,t),Z(this,ft,null),Z(this,Gt,$r()),this.options.experimental_prefetchInRender||C(this,Gt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,de).addObserver(this),No(C(this,de),this.options)?pe(this,be,qn).call(this):this.updateResult(),pe(this,be,yo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ei(C(this,de),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ei(C(this,de),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,be,Io).call(this),pe(this,be,vo).call(this),C(this,de).removeObserver(this)}setOptions(t,n){const r=this.options,i=C(this,de);if(this.options=C(this,He).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof tt(this.options.enabled,C(this,de))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pe(this,be,Co).call(this),C(this,de).setOptions(this.options),r._defaulted&&!_r(this.options,r)&&C(this,He).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,de),observer:this});const o=this.hasListeners();o&&Mo(C(this,de),i,this.options,r)&&pe(this,be,qn).call(this),this.updateResult(n),o&&(C(this,de)!==i||tt(this.options.enabled,C(this,de))!==tt(r.enabled,C(this,de))||rn(this.options.staleTime,C(this,de))!==rn(r.staleTime,C(this,de)))&&pe(this,be,go).call(this);const s=pe(this,be,mo).call(this);o&&(C(this,de)!==i||tt(this.options.enabled,C(this,de))!==tt(r.enabled,C(this,de))||s!==C(this,Bt))&&pe(this,be,bo).call(this,s)}getOptimisticResult(t){const n=C(this,He).getQueryCache().build(C(this,He),t),r=this.createResult(n,t);return Vl(this,r)&&(Z(this,Me,r),Z(this,Cn,this.options),Z(this,Yt,C(this,de).state)),r}getCurrentResult(){return C(this,Me)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){C(this,Sn).add(t)}getCurrentQuery(){return C(this,de)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,He).defaultQueryOptions(t),r=C(this,He).getQueryCache().build(C(this,He),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return pe(this,be,qn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Me)))}createResult(t,n){var B;const r=C(this,de),i=this.options,o=C(this,Me),s=C(this,Yt),u=C(this,Cn),l=t!==r?t.state:C(this,jn),{state:c}=t;let d={...c},f=!1,p;if(n._optimisticResults){const D=this.hasListeners(),j=!D&&No(t,n),L=D&&Mo(t,r,n,i);(j||L)&&(d={...d,...Vo(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:y,errorUpdatedAt:g,status:I}=d;if(n.select&&d.data!==void 0)if(o&&d.data===(s==null?void 0:s.data)&&n.select===C(this,Jn))p=C(this,xn);else try{Z(this,Jn,n.select),p=n.select(d.data),p=Qr(o==null?void 0:o.data,p,n),Z(this,xn,p),Z(this,ft,null)}catch(D){Z(this,ft,D)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&I==="pending"){let D;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData))D=o.data;else if(D=typeof n.placeholderData=="function"?n.placeholderData((B=C(this,An))==null?void 0:B.state.data,C(this,An)):n.placeholderData,n.select&&D!==void 0)try{D=n.select(D),Z(this,ft,null)}catch(j){Z(this,ft,j)}D!==void 0&&(I="success",p=Qr(o==null?void 0:o.data,D,n),f=!0)}C(this,ft)&&(y=C(this,ft),p=C(this,xn),g=Date.now(),I="error");const v=d.fetchStatus==="fetching",A=I==="pending",E=I==="error",S=A&&v,P=p!==void 0,O={status:I,fetchStatus:d.fetchStatus,isPending:A,isSuccess:I==="success",isError:E,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:d.dataUpdatedAt,error:y,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!A,isLoadingError:E&&!P,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:E&&P,isStale:ti(t,n),refetch:this.refetch,promise:C(this,Gt)};if(this.options.experimental_prefetchInRender){const D=R=>{O.status==="error"?R.reject(O.error):O.data!==void 0&&R.resolve(O.data)},j=()=>{const R=Z(this,Gt,O.promise=$r());D(R)},L=C(this,Gt);switch(L.status){case"pending":t.queryHash===r.queryHash&&D(L);break;case"fulfilled":(O.status==="error"||O.data!==L.value)&&j();break;case"rejected":(O.status!=="error"||O.error!==L.reason)&&j();break}}return O}updateResult(t){const n=C(this,Me),r=this.createResult(C(this,de),this.options);if(Z(this,Yt,C(this,de).state),Z(this,Cn,this.options),C(this,Yt).data!==void 0&&Z(this,An,C(this,de)),_r(r,n))return;Z(this,Me,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!C(this,Sn).size)return!0;const a=new Set(u??C(this,Sn));return this.options.throwOnError&&a.add("error"),Object.keys(C(this,Me)).some(l=>{const c=l;return C(this,Me)[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),pe(this,be,pl).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,be,yo).call(this)}},He=new WeakMap,de=new WeakMap,jn=new WeakMap,Me=new WeakMap,Yt=new WeakMap,Cn=new WeakMap,Gt=new WeakMap,ft=new WeakMap,Jn=new WeakMap,xn=new WeakMap,An=new WeakMap,_t=new WeakMap,Ut=new WeakMap,Bt=new WeakMap,Sn=new WeakMap,be=new WeakSet,qn=function(t){pe(this,be,Co).call(this);let n=C(this,de).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ue)),n},go=function(){pe(this,be,Io).call(this);const t=rn(this.options.staleTime,C(this,de));if(Nt||C(this,Me).isStale||!jr(t))return;const r=So(C(this,Me).dataUpdatedAt,t)+1;Z(this,_t,setTimeout(()=>{C(this,Me).isStale||this.updateResult()},r))},mo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,de)):this.options.refetchInterval)??!1},bo=function(t){pe(this,be,vo).call(this),Z(this,Bt,t),!(Nt||tt(this.options.enabled,C(this,de))===!1||!jr(C(this,Bt))||C(this,Bt)===0)&&Z(this,Ut,setInterval(()=>{(this.options.refetchIntervalInBackground||qr.isFocused())&&pe(this,be,qn).call(this)},C(this,Bt)))},yo=function(){pe(this,be,go).call(this),pe(this,be,bo).call(this,pe(this,be,mo).call(this))},Io=function(){C(this,_t)&&(clearTimeout(C(this,_t)),Z(this,_t,void 0))},vo=function(){C(this,Ut)&&(clearInterval(C(this,Ut)),Z(this,Ut,void 0))},Co=function(){const t=C(this,He).getQueryCache().build(C(this,He),this.options);if(t===C(this,de))return;const n=C(this,de);Z(this,de,t),Z(this,jn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},pl=function(t){Be.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Me))}),C(this,He).getQueryCache().notify({query:C(this,de),type:"observerResultsUpdated"})})},$a);function Tl(e,t){return tt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function No(e,t){return Tl(e,t)||e.state.data!==void 0&&ei(e,t,t.refetchOnMount)}function ei(e,t,n){if(tt(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ti(e,t)}return!1}function Mo(e,t,n,r){return(e!==t||tt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ti(e,n)}function ti(e,t){return tt(t.enabled,e)!==!1&&e.isStaleByTime(rn(t.staleTime,e))}function Vl(e,t){return!_r(e.getCurrentResult(),t)}var Lo=re.createContext(void 0),Rl=e=>{const t=re.useContext(Lo);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Dl=({client:e,children:t})=>(re.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),T.jsx(Lo.Provider,{value:e,children:t})),Xo=re.createContext(!1),Nl=()=>re.useContext(Xo);Xo.Provider;function Ml(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ll=re.createContext(Ml()),Xl=()=>re.useContext(Ll);function zl(e,t){return typeof e=="function"?e(...t):!!e}function zo(){}var Hl=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Wl=e=>{re.useEffect(()=>{e.clearReset()},[e])},Zl=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&zl(n,[e.error,r]),jl=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Jl=(e,t)=>e.isLoading&&e.isFetching&&!t,Yl=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ho=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function _l(e,t,n){var c,d,f,p,y;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Rl(),i=Nl(),o=Xl(),s=r.defaultQueryOptions(e);(d=(c=r.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||d.call(c,s),s._optimisticResults=i?"isRestoring":"optimistic",jl(s),Hl(s,o),Wl(o);const u=!r.getQueryCache().get(s.queryHash),[a]=re.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(re.useSyncExternalStore(re.useCallback(g=>{const I=i?zo:a.subscribe(Be.batchCalls(g));return a.updateResult(),I},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),re.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),Yl(s,l))throw Ho(s,a,o);if(Zl({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;if((p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,s,l),s.experimental_prefetchInRender&&!Nt&&Jl(l,i)){const g=u?Ho(s,a,o):(y=r.getQueryCache().get(s.queryHash))==null?void 0:y.promise;g==null||g.catch(zo).finally(()=>{a.updateResult()})}return s.notifyOnChangeProps?l:a.trackResult(l)}function Mt(e,t){return _l(e,Ol)}const Wo=G.createContext(void 0),mt=()=>{const e=G.useContext(Wo);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},Ul=({children:e,client:t})=>{const n=new Bl({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return T.jsx(Dl,{client:n,children:T.jsx(Wo.Provider,{value:t,children:e})})};function Zo(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function Ql(e){if(typeof e=="object"&&e&&"selectedOptions"in e&&Array.isArray(e.selectedOptions)){const t=e.selectedOptions,n=[];for(const r of t)if(typeof r=="object"&&r&&"emitValue"in r){const i=r.emitValue;typeof i=="object"&&i&&"__lv"in i?n.push(i.__lv.value):n.push(i)}else return[];return n}return Array.isArray(e)?e:[]}function ql(e){const t=Ql(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function $l(e){const t=Zo(e.value);if(t==null||typeof t>"u")return["required"]}function Kl(e){const{prop:t,value:n}=e,r=Zo(n);if(!t.default&&(r==null||typeof r>"u"))return["required"];const i=typeof r=="number"?r:parseInt(String(r));if(Number.isNaN(i))return["not a number"];const o=[];return typeof t.min=="number"&&i<t.min&&o.push("number too small"),typeof t.max=="number"&&i>t.max&&o.push("number too big"),o}function ec(e){const{prop:t,value:n}=e;if(!t.default&&(n==null||typeof n>"u"))return["required"]}function tc(e){const t=e.auth_type==="oauth",n=JSON.parse(e.custom_fields_json||"[]");if("extracted_custom_fields_names"in e&&e.extracted_custom_fields_names){const r=(e.extracted_custom_fields_names||[]).map(i=>({name:i}));n.push(...r)}return n.map(r=>({...r,optional:r.optional||t}))}function nc(e){const{app:t,value:n}=e;if(!t)return["app field not registered"];if(!n)return["no app configured"];if(typeof n!="object")return["not an app"];const r=n;if("authProvisionId"in r&&!r.authProvisionId&&t.auth_type){const i=[];if(t.auth_type==="oauth"&&!r.oauth_access_token&&i.push("missing oauth token"),t.auth_type==="oauth"||t.auth_type==="keys"){const o=tc(t),s=r;for(const u of o)!u.optional&&!s[u.name]&&i.push(`missing custom field: ${u.name}`)}return t.auth_type!=="none"&&i.push("no auth provision configured"),i}}const Gn=["$.service.db","$.interface.http","$.interface.apphook","$.interface.timer"],ni=G.createContext(void 0),nr=()=>{const e=G.useContext(ni);if(!e)throw new Error("Must be used inside provider");return e},jo=({children:e,props:t})=>{const n=mt(),r=G.useId(),{component:i,configuredProps:o,propNames:s,userId:u}=t,a=i.key,[l,c]=G.useState(0),[d,f]=G.useState({}),[p,y]=G.useState(!1),[g,I]=G.useState({}),[v,A]=G.useState({});G.useEffect(()=>{A({})},[i.key]);const E=M=>v[M.name];let S=o||{};const[P,w]=G.useState(S),O=t.onUpdateConfiguredProps||w;t.onUpdateConfiguredProps||(S=P);const[B,D]=G.useState(),[j,L]=G.useState(),R={userId:u,componentId:a,configuredProps:S,dynamicPropsId:B==null?void 0:B.id},te={...R},{isFetching:se}=Mt({queryKey:["dynamicProps",te],queryFn:async()=>{var W;const{dynamicProps:M}=await n.componentReloadProps(R);return M&&((W=t.onUpdateDynamicProps)==null||W.call(t,M),D(M)),L(void 0),[]},enabled:j!=null}),[z,U]=G.useState([]);G.useEffect(()=>{ne()},[S]);let Q=(B==null?void 0:B.configurableProps)||t.component.configurable_props||[];if(s!=null&&s.length){const M=[];for(const W of Q)s.findIndex(q=>W.name===q)>=0&&M.push(W);Q=M}j!=null&&(Q=Q.slice(0,j+1));const ce=(M,W)=>{const q=[];if(M.optional||M.hidden||M.disabled||Gn.includes(M.type))return[];if(M.type==="app"){const he=d[M.name];if(he){const ke=he.extra.app;q.push(...nc({prop:M,value:W,app:ke})??[])}else q.push("field not registered")}else M.type==="boolean"?q.push(...$l({prop:M,value:W})??[]):M.type==="integer"?q.push(...Kl({prop:M,value:W})??[]):M.type==="string"?q.push(...ec({prop:M,value:W})??[]):M.type==="string[]"&&q.push(...ql({prop:M,value:W})??[]);return q},ye=M=>{let W;for(let q=0;q<Q.length;q++){const he=Q[q];if(he.hidden||he.optional&&!E(he))continue;if(M[he.name]===void 0&&W==null&&(he.type==="app"||he.remoteOptions)){W=q;break}}c(W)},b=M=>{O(M),ye(M);const W={};for(let q=0;q<Q.length;q++){const he=Q[q],ke=M[he.name],Ye=ce(he,ke);Ye.length&&(W[he.name]=Ye)}I(W)};G.useEffect(()=>{const M={};for(const W of Q){if(W.hidden||Gn.includes(W.type)||W.optional&&!E(W))continue;const q=S[W.name];q===void 0?"default"in W&&W.default!=null&&(M[W.name]=W.default):W.type==="integer"&&typeof q!="number"?delete M[W.name]:M[W.name]=q}gl(M,S)||b(M)},[Q]);const[xe,le]=G.useState(u);G.useEffect(()=>{xe!==u&&(b({}),le(u))},[u]);const m=(M,W)=>{const q=Q[M],he={...S};W===void 0?delete he[q.name]:he[q.name]=W,O(he),q.reloadProps&&L(M),(q.type==="app"||q.remoteOptions)&&ye(he);const ke=ce(q,W),Ye={...g};ke.length?Ye[q.name]=ke:delete Ye[q.name],I(Ye)},me=(M,W)=>{const q={...v};W?q[M.name]=!0:delete q[M.name];const he=Q.findIndex(ke=>ke.name===M.name);W?(o==null?void 0:o[M.name])!==void 0?m(he,o[M.name]):"default"in M&&M.default!=null&&m(he,M.default):m(he,void 0),A(q)},ne=()=>{const M=[];for(const W of Q){if(!W||W.optional||W.hidden||Gn.includes(W.type))continue;const q=S[W.name];ce(W,q).length&&M.push(W.name)}U(M)},fe=M=>{f(W=>(W[M.prop.name]=M,W))},Pe={id:r,isValid:!Object.keys(g).length,props:t,userId:u,component:i,configurableProps:Q,configuredProps:S,dynamicProps:B,dynamicPropsQueryIsFetching:se,errors:g,fields:d,optionalPropIsEnabled:E,optionalPropSetEnabled:me,propsNeedConfiguring:z,queryDisabledIdx:l,registerField:fe,setConfiguredProp:m,setSubmitting:y,submitting:p};return T.jsx(ni.Provider,{value:Pe,children:e})};function Lt(e){"@babel/helpers - typeof";return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(e)}function rc(e,t){if(Lt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jo(e){var t=rc(e,"string");return Lt(t)=="symbol"?t:t+""}function Bn(e,t,n){return(t=Jo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yo(Object(n),!0).forEach(function(r){Bn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ic(e){if(Array.isArray(e))return e}function oc(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,u=[],a=!0,l=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);a=!0);}catch(c){l=!0,i=c}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return u}}function ri(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _o(e,t){if(e){if(typeof e=="string")return ri(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ri(e,t):void 0}}function sc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bt(e,t){return ic(e)||oc(e,t)||_o(e,t)||sc()}function uc(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function st(e,t){if(e==null)return{};var n,r,i=uc(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ac=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Uo(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,s=o===void 0?null:o,u=e.inputValue,a=e.menuIsOpen,l=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,y=st(e,ac),g=G.useState(u!==void 0?u:n),I=bt(g,2),v=I[0],A=I[1],E=G.useState(a!==void 0?a:i),S=bt(E,2),P=S[0],w=S[1],O=G.useState(p!==void 0?p:s),B=bt(O,2),D=B[0],j=B[1],L=G.useCallback(function(ce,ye){typeof l=="function"&&l(ce,ye),j(ce)},[l]),R=G.useCallback(function(ce,ye){var b;typeof c=="function"&&(b=c(ce,ye)),A(b!==void 0?b:ce)},[c]),te=G.useCallback(function(){typeof f=="function"&&f(),w(!0)},[f]),se=G.useCallback(function(){typeof d=="function"&&d(),w(!1)},[d]),z=u!==void 0?u:v,U=a!==void 0?a:P,Q=p!==void 0?p:D;return Y(Y({},y),{},{inputValue:z,menuIsOpen:U,onChange:L,onInputChange:R,onMenuClose:se,onMenuOpen:te,value:Q})}function _(){return _=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},_.apply(null,arguments)}function lc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jo(r.key),r)}}function cc(e,t,n){return t&&Qo(e.prototype,t),n&&Qo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ii(e,t){return ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ii(e,t)}function dc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ii(e,t)}function rr(e){return rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rr(e)}function qo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qo=function(){return!!e})()}function pc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fc(e,t){if(t&&(Lt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pc(e)}function hc(e){var t=qo();return function(){var n,r=rr(e);if(t){var i=rr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fc(this,n)}}function gc(e){if(Array.isArray(e))return ri(e)}function mc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bc(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function on(e){return gc(e)||mc(e)||_o(e)||bc()}function yc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Ic=Math.min,vc=Math.max,ir=Math.round,or=Math.floor,sr=e=>({x:e,y:e});function Cc(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ur(){return typeof window<"u"}function $o(e){return es(e)?(e.nodeName||"").toLowerCase():"#document"}function yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ko(e){var t;return(t=(es(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function es(e){return ur()?e instanceof Node||e instanceof yt(e).Node:!1}function xc(e){return ur()?e instanceof Element||e instanceof yt(e).Element:!1}function oi(e){return ur()?e instanceof HTMLElement||e instanceof yt(e).HTMLElement:!1}function ts(e){return!ur()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yt(e).ShadowRoot}function ns(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=si(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Ac(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Sc(e){return["html","body","#document"].includes($o(e))}function si(e){return yt(e).getComputedStyle(e)}function wc(e){if($o(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ts(e)&&e.host||Ko(e);return ts(t)?t.host:t}function rs(e){const t=wc(e);return Sc(t)?e.ownerDocument?e.ownerDocument.body:e.body:oi(t)&&ns(t)?t:rs(t)}function ar(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=rs(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=yt(i);if(o){const u=ui(s);return t.concat(s,s.visualViewport||[],ns(i)?i:[],u&&n?ar(u):[])}return t.concat(i,ar(i,[],n))}function ui(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ec(e){const t=si(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=oi(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,u=ir(n)!==o||ir(r)!==s;return u&&(n=o,r=s),{width:n,height:r,$:u}}function ai(e){return xc(e)?e:e.contextElement}function is(e){const t=ai(e);if(!oi(t))return sr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ec(t);let s=(o?ir(n.width):n.width)/r,u=(o?ir(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const Fc=sr(0);function Pc(e){const t=yt(e);return!Ac()||!t.visualViewport?Fc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kc(e,t,n){return!1}function os(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=ai(e);let s=sr(1);t&&(s=is(e));const u=kc()?Pc(o):sr(0);let a=(i.left+u.x)/s.x,l=(i.top+u.y)/s.y,c=i.width/s.x,d=i.height/s.y;if(o){const f=yt(o),p=r;let y=f,g=ui(y);for(;g&&r&&p!==y;){const I=is(g),v=g.getBoundingClientRect(),A=si(g),E=v.left+(g.clientLeft+parseFloat(A.paddingLeft))*I.x,S=v.top+(g.clientTop+parseFloat(A.paddingTop))*I.y;a*=I.x,l*=I.y,c*=I.x,d*=I.y,a+=E,l+=S,y=yt(g),g=ui(y)}}return Cc({width:c,height:d,x:a,y:l})}function Gc(e,t){let n=null,r;const i=Ko(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function s(u,a){u===void 0&&(u=!1),a===void 0&&(a=1),o();const{left:l,top:c,width:d,height:f}=e.getBoundingClientRect();if(u||t(),!d||!f)return;const p=or(c),y=or(i.clientWidth-(l+d)),g=or(i.clientHeight-(c+f)),I=or(l),A={rootMargin:-p+"px "+-y+"px "+-g+"px "+-I+"px",threshold:vc(0,Ic(1,a))||1};let E=!0;function S(P){const w=P[0].intersectionRatio;if(w!==a){if(!E)return s();w?s(!1,w):r=setTimeout(()=>{s(!1,1e-7)},1e3)}E=!1}try{n=new IntersectionObserver(S,{...A,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,A)}n.observe(e)}return s(!0),o}function Bc(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,l=ai(e),c=i||o?[...l?ar(l):[],...ar(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const d=l&&u?Gc(l,n):null;let f=-1,p=null;s&&(p=new ResizeObserver(v=>{let[A]=v;A&&A.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var E;(E=p)==null||E.observe(t)})),n()}),l&&!a&&p.observe(l),p.observe(t));let y,g=a?os(e):null;a&&I();function I(){const v=os(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,y=requestAnimationFrame(I)}return n(),()=>{var v;c.forEach(A=>{i&&A.removeEventListener("scroll",n),o&&A.removeEventListener("resize",n)}),d==null||d(),(v=p)==null||v.disconnect(),p=null,a&&cancelAnimationFrame(y)}}var li=G.useLayoutEffect,Oc=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],lr=function(){};function Tc(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Vc(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&o.push("".concat(Tc(e,s)));return o.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var cr=function(t){return Wc(t)?t.filter(Boolean):Lt(t)==="object"&&t!==null?[t]:[]},ss=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=st(t,Oc);return Y({},n)},Se=function(t,n,r){var i=t.cx,o=t.getStyles,s=t.getClassNames,u=t.className;return{css:o(n,t),className:i(r??{},s(n,t),u)}};function dr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Rc(e){return dr(e)?window.innerHeight:e.clientHeight}function us(e){return dr(e)?window.pageYOffset:e.scrollTop}function pr(e,t){if(dr(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Dc(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function Nc(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function fr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:lr,i=us(e),o=t-i,s=10,u=0;function a(){u+=s;var l=Nc(u,i,o,n);pr(e,l),u<n?window.requestAnimationFrame(a):r(e)}a()}function as(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?pr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&pr(e,Math.max(t.offsetTop-i,0))}function Mc(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function ls(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Lc(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var cs=!1,Xc={get passive(){return cs=!0}},hr=typeof window<"u"?window:{};hr.addEventListener&&hr.removeEventListener&&(hr.addEventListener("p",lr,Xc),hr.removeEventListener("p",lr,!1));var zc=cs;function Hc(e){return e!=null}function Wc(e){return Array.isArray(e)}function On(e,t,n){return e?t:n}function Sy(e){return e}function wy(e){return e}var Zc=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=Object.entries(t).filter(function(s){var u=bt(s,1),a=u[0];return!r.includes(a)});return o.reduce(function(s,u){var a=bt(u,2),l=a[0],c=a[1];return s[l]=c,s},{})},jc=["children","innerProps"],Jc=["children","innerProps"];function Yc(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,s=e.isFixedPosition,u=e.controlHeight,a=Dc(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=a.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),p=f.bottom,y=f.height,g=f.top,I=n.offsetParent.getBoundingClientRect(),v=I.top,A=s?window.innerHeight:Rc(a),E=us(a),S=parseInt(getComputedStyle(n).marginBottom,10),P=parseInt(getComputedStyle(n).marginTop,10),w=v-P,O=A-g,B=w+E,D=d-E-g,j=p-A+E+S,L=E+g-P,R=160;switch(i){case"auto":case"bottom":if(O>=y)return{placement:"bottom",maxHeight:t};if(D>=y&&!s)return o&&fr(a,j,R),{placement:"bottom",maxHeight:t};if(!s&&D>=r||s&&O>=r){o&&fr(a,j,R);var te=s?O-S:D-S;return{placement:"bottom",maxHeight:te}}if(i==="auto"||s){var se=t,z=s?w:B;return z>=r&&(se=Math.min(z-S-u,t)),{placement:"top",maxHeight:se}}if(i==="bottom")return o&&pr(a,j),{placement:"bottom",maxHeight:t};break;case"top":if(w>=y)return{placement:"top",maxHeight:t};if(B>=y&&!s)return o&&fr(a,L,R),{placement:"top",maxHeight:t};if(!s&&B>=r||s&&w>=r){var U=t;return(!s&&B>=r||s&&w>=r)&&(U=s?w-P:B-P),o&&fr(a,L,R),{placement:"top",maxHeight:U}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return l}function _c(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var ds=function(t){return t==="auto"?"bottom":t},Uc=function(t,n){var r,i=t.placement,o=t.theme,s=o.borderRadius,u=o.spacing,a=o.colors;return Y((r={label:"menu"},Bn(r,_c(i),"100%"),Bn(r,"position","absolute"),Bn(r,"width","100%"),Bn(r,"zIndex",1),r),n?{}:{backgroundColor:a.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},ps=G.createContext(null),Qc=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,u=t.menuShouldScrollIntoView,a=t.theme,l=G.useContext(ps)||{},c=l.setPortalPlacement,d=G.useRef(null),f=G.useState(i),p=bt(f,2),y=p[0],g=p[1],I=G.useState(null),v=bt(I,2),A=v[0],E=v[1],S=a.spacing.controlHeight;return li(function(){var P=d.current;if(P){var w=s==="fixed",O=u&&!w,B=Yc({maxHeight:i,menuEl:P,minHeight:r,placement:o,shouldScroll:O,isFixedPosition:w,controlHeight:S});g(B.maxHeight),E(B.placement),c==null||c(B.placement)}},[i,o,s,u,r,c,S]),n({ref:d,placerProps:Y(Y({},t),{},{placement:A||ds(o),maxHeight:y})})},qc=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return J.jsx("div",_({},Se(t,"menu",{menu:!0}),{ref:r},i),n)},$c=qc,Kc=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return Y({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},ed=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return J.jsx("div",_({},Se(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},fs=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return Y({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},td=fs,nd=fs,rd=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=st(t,jc);return J.jsx("div",_({},Se(Y(Y({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},id=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=st(t,Jc);return J.jsx("div",_({},Se(Y(Y({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},od=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},sd=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,s=t.menuPlacement,u=t.menuPosition,a=G.useRef(null),l=G.useRef(null),c=G.useState(ds(s)),d=bt(c,2),f=d[0],p=d[1],y=G.useMemo(function(){return{setPortalPlacement:p}},[]),g=G.useState(null),I=bt(g,2),v=I[0],A=I[1],E=G.useCallback(function(){if(i){var O=Mc(i),B=u==="fixed"?0:window.pageYOffset,D=O[f]+B;(D!==(v==null?void 0:v.offset)||O.left!==(v==null?void 0:v.rect.left)||O.width!==(v==null?void 0:v.rect.width))&&A({offset:D,rect:O})}},[i,u,f,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);li(function(){E()},[E]);var S=G.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),i&&a.current&&(l.current=Bc(i,a.current,E,{elementResize:"ResizeObserver"in window}))},[i,E]);li(function(){S()},[S]);var P=G.useCallback(function(O){a.current=O,S()},[S]);if(!n&&u!=="fixed"||!v)return null;var w=J.jsx("div",_({ref:P},Se(Y(Y({},t),{},{offset:v.offset,position:u,rect:v.rect}),"menuPortal",{"menu-portal":!0}),o),r);return J.jsx(ps.Provider,{value:y},n?Zr.createPortal(w,n):w)},ud=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},ad=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return J.jsx("div",_({},Se(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},ld=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,s=t.selectProps.controlShouldRenderValue;return Y({alignItems:"center",display:i&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},cd=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return J.jsx("div",_({},Se(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},dd=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},pd=function(t){var n=t.children,r=t.innerProps;return J.jsx("div",_({},Se(t,"indicatorsContainer",{indicators:!0}),r),n)},hs,fd=["size"],hd=["innerProps","isRtl","size"];function gd(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var md=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLy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pc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:gd},gs=function(t){var n=t.size,r=st(t,fd);return J.jsx("svg",_({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:md},r))},ci=function(t){return J.jsx(gs,_({size:20},t),J.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ms=function(t){return J.jsx(gs,_({size:20},t),J.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},bs=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return Y({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:o*2,":hover":{color:r?s.neutral80:s.neutral40}})},bd=bs,yd=function(t){var n=t.children,r=t.innerProps;return J.jsx("div",_({},Se(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||J.jsx(ms,null))},Id=bs,vd=function(t){var n=t.children,r=t.innerProps;return J.jsx("div",_({},Se(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||J.jsx(ci,null))},Cd=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return Y({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},xd=function(t){var n=t.innerProps;return J.jsx("span",_({},n,Se(t,"indicatorSeparator",{"indicator-separator":!0})))},Ad=J.keyframes(hs||(hs=yc([`
4
4
  0%, 80%, 100% { opacity: 0; }
5
5
  40% { opacity: 1; }
6
- `]))),Sd=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,s=o.colors,u=o.spacing.baseUnit;return Y({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?s.neutral60:s.neutral20,padding:u*2})},di=function(t){var n=t.delay,r=t.offset;return J.jsx("span",{css:J.css({animation:"".concat(Ad," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBz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F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},wd=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,s=st(t,hd);return J.jsx("div",_({},Se(Y(Y({},s),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),J.jsx(di,{delay:0,offset:r}),J.jsx(di,{delay:160,offset:!0}),J.jsx(di,{delay:320,offset:!r}))},Ed=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,s=o.colors,u=o.borderRadius,a=o.spacing;return Y({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?s.neutral5:s.neutral0,borderColor:r?s.neutral10:i?s.primary:s.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:i?s.primary:s.neutral30}})},Fd=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,s=t.innerProps,u=t.menuIsOpen;return J.jsx("div",_({ref:o},Se(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":u}),s,{"aria-disabled":r||void 0}),n)},Pd=Fd,kd=["data"],Gd=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},Bd=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,s=t.Heading,u=t.headingProps,a=t.innerProps,l=t.label,c=t.theme,d=t.selectProps;return J.jsx("div",_({},Se(t,"group",{group:!0}),a),J.jsx(s,_({},u,{selectProps:d,theme:c,getStyles:i,getClassNames:o,cx:r}),l),J.jsx("div",null,n))},Od=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return Y({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},Td=function(t){var n=ss(t);n.data;var r=st(n,kd);return J.jsx("div",_({},Se(t,"groupHeading",{"group-heading":!0}),r))},Vd=Bd,Rd=["innerRef","isDisabled","isHidden","inputClassName"],Dd=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,s=o.spacing,u=o.colors;return Y(Y({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},Nd),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:u.neutral80})},ys={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Nd={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Y({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ys)},Md=function(t){return Y({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ys)},Ld=function(t){var n=t.cx,r=t.value,i=ss(t),o=i.innerRef,s=i.isDisabled,u=i.isHidden,a=i.inputClassName,l=st(i,Rd);return J.jsx("div",_({},Se(t,"input",{"input-container":!0}),{"data-value":r||""}),J.jsx("input",_({className:n({input:!0},a),ref:o,style:Md(u),disabled:s},l)))},Xd=Ld,zd=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,s=r.colors;return Y({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},Hd=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,s=t.cropWithEllipsis;return Y({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Wd=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,s=r.colors,u=t.isFocused;return Y({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:u?s.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},Is=function(t){var n=t.children,r=t.innerProps;return J.jsx("div",r,n)},Zd=Is,jd=Is;function Jd(e){var t=e.children,n=e.innerProps;return J.jsx("div",_({role:"button"},n),t||J.jsx(ci,{size:14}))}var Yd=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,s=t.isDisabled,u=t.removeProps,a=t.selectProps,l=r.Container,c=r.Label,d=r.Remove;return J.jsx(l,{data:i,innerProps:Y(Y({},Se(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:a},J.jsx(c,{data:i,innerProps:Y({},Se(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},n),J.jsx(d,{data:i,innerProps:Y(Y({},Se(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},u),selectProps:a}))},_d=Yd,Ud=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.theme,u=s.spacing,a=s.colors;return Y({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?a.primary:i?a.primary25:"transparent",color:r?a.neutral20:o?a.neutral0:"inherit",padding:"".concat(u.baseUnit*2,"px ").concat(u.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?a.primary:a.primary50}})},Qd=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.innerRef,u=t.innerProps;return J.jsx("div",_({},Se(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:s,"aria-disabled":r},u),n)},qd=Qd,$d=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return Y({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Kd=function(t){var n=t.children,r=t.innerProps;return J.jsx("div",_({},Se(t,"placeholder",{placeholder:!0}),r),n)},ep=Kd,tp=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,s=i.colors;return Y({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?s.neutral40:s.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},np=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return J.jsx("div",_({},Se(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},rp=np,Tn={ClearIndicator:vd,Control:Pd,DropdownIndicator:yd,DownChevron:ms,CrossIcon:ci,Group:Vd,GroupHeading:Td,IndicatorsContainer:pd,IndicatorSeparator:xd,Input:Xd,LoadingIndicator:wd,Menu:$c,MenuList:ed,MenuPortal:sd,LoadingMessage:id,NoOptionsMessage:rd,MultiValue:_d,MultiValueContainer:Zd,MultiValueLabel:jd,MultiValueRemove:Jd,Option:qd,Placeholder:ep,SelectContainer:ad,SingleValue:rp,ValueContainer:cd},ip=function(t){return Y(Y({},Tn),t.components)},vs=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function op(e,t){return!!(e===t||vs(e)&&vs(t))}function sp(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!op(e[n],t[n]))return!1;return!0}function up(e,t){t===void 0&&(t=sp);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var s=e.apply(this,i);return n={lastResult:s,lastArgs:i,lastThis:this},s}return r.clear=function(){n=null},r}function ap(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var lp=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:ap},cp=function(t){return J.jsx("span",_({css:lp},t))},Cs=cp,dp={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,o=t.context,s=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return s?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,o=t.labels,s=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return s?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,s=o===void 0?"":o,u=t.selectValue,a=t.isDisabled,l=t.isSelected,c=t.isAppleDevice,d=function(g,I){return g&&g.length?"".concat(g.indexOf(I)+1," of ").concat(g.length):""};if(n==="value"&&u)return"value ".concat(s," focused, ").concat(d(u,r),".");if(n==="menu"&&c){var f=a?" disabled":"",p="".concat(l?" selected":"").concat(f);return"".concat(s).concat(p,", ").concat(d(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},pp=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,s=t.isFocused,u=t.selectValue,a=t.selectProps,l=t.id,c=t.isAppleDevice,d=a.ariaLiveMessages,f=a.getOptionLabel,p=a.inputValue,y=a.isMulti,g=a.isOptionDisabled,I=a.isSearchable,v=a.menuIsOpen,A=a.options,w=a.screenReaderStatus,S=a.tabSelectsValue,P=a.isLoading,E=a["aria-label"],O=a["aria-live"],B=G.useMemo(function(){return Y(Y({},dp),d||{})},[d]),D=G.useMemo(function(){var z="";if(n&&B.onChange){var U=n.option,Q=n.options,ce=n.removedValue,ye=n.removedValues,b=n.value,xe=function(M){return Array.isArray(M)?null:M},le=ce||U||xe(b),m=le?f(le):"",me=Q||ye||void 0,ne=me?me.map(f):[],fe=Y({isDisabled:le&&g(le,u),label:m,labels:ne},n);z=B.onChange(fe)}return z},[n,B,g,u,f]),j=G.useMemo(function(){var z="",U=r||i,Q=!!(r&&u&&u.includes(r));if(U&&B.onFocus){var ce={focused:U,label:f(U),isDisabled:g(U,u),isSelected:Q,options:o,context:U===r?"menu":"value",selectValue:u,isAppleDevice:c};z=B.onFocus(ce)}return z},[r,i,f,g,B,o,u,c]),L=G.useMemo(function(){var z="";if(v&&A.length&&!P&&B.onFilter){var U=w({count:o.length});z=B.onFilter({inputValue:p,resultsMessage:U})}return z},[o,p,v,B,A,w,P]),R=(n==null?void 0:n.action)==="initial-input-focus",te=G.useMemo(function(){var z="";if(B.guidance){var U=i?"value":v?"menu":"input";z=B.guidance({"aria-label":E,context:U,isDisabled:r&&g(r,u),isMulti:y,isSearchable:I,tabSelectsValue:S,isInitialFocus:R})}return z},[E,r,i,y,g,I,v,B,u,S,R]),se=J.jsx(G.Fragment,null,J.jsx("span",{id:"aria-selection"},D),J.jsx("span",{id:"aria-focused"},j),J.jsx("span",{id:"aria-results"},L),J.jsx("span",{id:"aria-guidance"},te));return J.jsx(G.Fragment,null,J.jsx(Cs,{id:l},R&&se),J.jsx(Cs,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!R&&se))},fp=pp,pi=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],hp=new RegExp("["+pi.map(function(e){return e.letters}).join("")+"]","g"),xs={},fi=0;fi<pi.length;fi++)for(var hi=pi[fi],gi=0;gi<hi.letters.length;gi++)xs[hi.letters[gi]]=hi.base;var As=function(t){return t.replace(hp,function(n){return xs[n]})},gp=up(As),Ss=function(t){return t.replace(/^\s+|\s+$/g,"")},mp=function(t){return"".concat(t.label," ").concat(t.value)},bp=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=Y({ignoreCase:!0,ignoreAccents:!0,stringify:mp,trim:!0,matchFrom:"any"},t),o=i.ignoreCase,s=i.ignoreAccents,u=i.stringify,a=i.trim,l=i.matchFrom,c=a?Ss(r):r,d=a?Ss(u(n)):u(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),s&&(c=gp(c),d=As(d)),l==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},yp=["innerRef"];function Ip(e){var t=e.innerRef,n=st(e,yp),r=Zc(n,"onExited","in","enter","exit","appear");return J.jsx("input",_({ref:t},r,{css:J.css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var vp=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Cp(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,s=G.useRef(!1),u=G.useRef(!1),a=G.useRef(0),l=G.useRef(null),c=G.useCallback(function(I,v){if(l.current!==null){var A=l.current,w=A.scrollTop,S=A.scrollHeight,P=A.clientHeight,E=l.current,O=v>0,B=S-P-w,D=!1;B>v&&s.current&&(r&&r(I),s.current=!1),O&&u.current&&(o&&o(I),u.current=!1),O&&v>B?(n&&!s.current&&n(I),E.scrollTop=S,D=!0,s.current=!0):!O&&-v>w&&(i&&!u.current&&i(I),E.scrollTop=0,D=!0,u.current=!0),D&&vp(I)}},[n,r,i,o]),d=G.useCallback(function(I){c(I,I.deltaY)},[c]),f=G.useCallback(function(I){a.current=I.changedTouches[0].clientY},[]),p=G.useCallback(function(I){var v=a.current-I.changedTouches[0].clientY;c(I,v)},[c]),y=G.useCallback(function(I){if(I){var v=zc?{passive:!1}:!1;I.addEventListener("wheel",d,v),I.addEventListener("touchstart",f,v),I.addEventListener("touchmove",p,v)}},[p,f,d]),g=G.useCallback(function(I){I&&(I.removeEventListener("wheel",d,!1),I.removeEventListener("touchstart",f,!1),I.removeEventListener("touchmove",p,!1))},[p,f,d]);return G.useEffect(function(){if(t){var I=l.current;return y(I),function(){g(I)}}},[t,y,g]),function(I){l.current=I}}var ws=["boxSizing","height","overflow","paddingRight","position"],Es={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Fs(e){e.cancelable&&e.preventDefault()}function Ps(e){e.stopPropagation()}function ks(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Gs(){return"ontouchstart"in window||navigator.maxTouchPoints}var Bs=!!(typeof window<"u"&&window.document&&window.document.createElement),Vn=0,sn={capture:!1,passive:!1};function xp(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=G.useRef({}),o=G.useRef(null),s=G.useCallback(function(a){if(Bs){var l=document.body,c=l&&l.style;if(r&&ws.forEach(function(y){var g=c&&c[y];i.current[y]=g}),r&&Vn<1){var d=parseInt(i.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys(Es).forEach(function(y){var g=Es[y];c&&(c[y]=g)}),c&&(c.paddingRight="".concat(p,"px"))}l&&Gs()&&(l.addEventListener("touchmove",Fs,sn),a&&(a.addEventListener("touchstart",ks,sn),a.addEventListener("touchmove",Ps,sn))),Vn+=1}},[r]),u=G.useCallback(function(a){if(Bs){var l=document.body,c=l&&l.style;Vn=Math.max(Vn-1,0),r&&Vn<1&&ws.forEach(function(d){var f=i.current[d];c&&(c[d]=f)}),l&&Gs()&&(l.removeEventListener("touchmove",Fs,sn),a&&(a.removeEventListener("touchstart",ks,sn),a.removeEventListener("touchmove",Ps,sn)))}},[r]);return G.useEffect(function(){if(t){var a=o.current;return s(a),function(){u(a)}}},[t,s,u]),function(a){o.current=a}}function Ap(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Sp=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},wp=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZ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ZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:Ap};function Ep(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,s=e.onBottomLeave,u=e.onTopArrive,a=e.onTopLeave,l=Cp({isEnabled:i,onBottomArrive:o,onBottomLeave:s,onTopArrive:u,onTopLeave:a}),c=xp({isEnabled:n}),d=function(p){l(p),c(p)};return J.jsx(G.Fragment,null,n&&J.jsx("div",{onClick:Sp,css:wp}),t(d))}function Fp(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Pp=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:Fp},kp=function(t){var n=t.name,r=t.onFocus;return J.jsx("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Pp,value:"",onChange:function(){}})},Gp=kp;function mi(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Bp(){return mi(/^iPhone/i)}function Os(){return mi(/^Mac/i)}function Op(){return mi(/^iPad/i)||Os()&&navigator.maxTouchPoints>1}function Tp(){return Bp()||Op()}function Vp(){return Os()||Tp()}var Rp=function(t){return t.label},Ts=function(t){return t.label},Vs=function(t){return t.value},Dp=function(t){return!!t.isDisabled},Np={clearIndicator:Id,container:ud,control:Ed,dropdownIndicator:bd,group:Gd,groupHeading:Od,indicatorsContainer:dd,indicatorSeparator:Cd,input:Dd,loadingIndicator:Sd,loadingMessage:nd,menu:Uc,menuList:Kc,menuPortal:od,multiValue:zd,multiValueLabel:Hd,multiValueRemove:Wd,noOptionsMessage:td,option:Ud,placeholder:$d,singleValue:tp,valueContainer:ld};function Mp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Y({},e);return Object.keys(t).forEach(function(r){var i=r;e[i]?n[i]=function(o,s){return t[i](e[i](o,s),s)}:n[i]=t[i]}),n}var Lp={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Xp=4,Rs=4,zp=38,Hp=Rs*2,Wp={baseUnit:Rs,controlHeight:zp,menuGutter:Hp},Rn={borderRadius:Xp,colors:Lp,spacing:Wp},Zp={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ls(),captureMenuScroll:!ls(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:bp(),formatGroupLabel:Rp,getOptionLabel:Ts,getOptionValue:Vs,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Dp,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Lc(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Ds(e,t,n,r){var i=zs(e,t,n),o=Hs(e,t,n),s=Xs(e,t),u=mr(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:s,value:u,index:r}}function gr(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(s,u){return Ds(e,s,t,u)}).filter(function(s){return Ls(e,s)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=Ds(e,n,t,r);return Ls(e,o)?o:void 0}).filter(Hc)}function Ns(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,on(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Ms(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,on(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function jp(e,t){return Ns(gr(e,t))}function Ls(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,s=t.label,u=t.value;return(!Zs(e)||!o)&&Ws(e,{label:s,value:u,data:i},r)}function Jp(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i<t.length)return t[i]}return null}function Yp(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var bi=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},Xs=function(t,n){return t.getOptionLabel(n)},mr=function(t,n){return t.getOptionValue(n)};function zs(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Hs(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=mr(e,t);return n.some(function(i){return mr(e,i)===r})}function Ws(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Zs=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},_p=1,yi=function(e){dc(n,e);var t=hc(n);function n(r){var i;if(lc(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=Vp(),i.controlRef=null,i.getControlRef=function(a){i.controlRef=a},i.focusedOptionRef=null,i.getFocusedOptionRef=function(a){i.focusedOptionRef=a},i.menuListRef=null,i.getMenuListRef=function(a){i.menuListRef=a},i.inputRef=null,i.getInputRef=function(a){i.inputRef=a},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(a,l){var c=i.props,d=c.onChange,f=c.name;l.name=f,i.ariaOnChange(a,l),d(a,l)},i.setValue=function(a,l,c){var d=i.props,f=d.closeMenuOnSelect,p=d.isMulti,y=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:y}),f&&(i.setState({inputIsHiddenAfterUpdate:!p}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(a,{action:l,option:c})},i.selectOption=function(a){var l=i.props,c=l.blurInputOnSelect,d=l.isMulti,f=l.name,p=i.state.selectValue,y=d&&i.isOptionSelected(a,p),g=i.isOptionDisabled(a,p);if(y){var I=i.getOptionValue(a);i.setValue(p.filter(function(v){return i.getOptionValue(v)!==I}),"deselect-option",a)}else if(!g)d?i.setValue([].concat(on(p),[a]),"select-option",a):i.setValue(a,"select-option");else{i.ariaOnChange(a,{action:"select-option",option:a,name:f});return}c&&i.blurInput()},i.removeValue=function(a){var l=i.props.isMulti,c=i.state.selectValue,d=i.getOptionValue(a),f=c.filter(function(y){return i.getOptionValue(y)!==d}),p=On(l,f,f[0]||null);i.onChange(p,{action:"remove-value",removedValue:a}),i.focusInput()},i.clearValue=function(){var a=i.state.selectValue;i.onChange(On(i.props.isMulti,[],null),{action:"clear",removedValues:a})},i.popValue=function(){var a=i.props.isMulti,l=i.state.selectValue,c=l[l.length-1],d=l.slice(0,l.length-1),f=On(a,d,d[0]||null);c&&i.onChange(f,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(a){return bi(i.state.focusableOptionsWithIds,a)},i.getFocusableOptionsWithIds=function(){return Ms(gr(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return Vc.apply(void 0,[i.props.classNamePrefix].concat(l))},i.getOptionLabel=function(a){return Xs(i.props,a)},i.getOptionValue=function(a){return mr(i.props,a)},i.getStyles=function(a,l){var c=i.props.unstyled,d=Np[a](l,c);d.boxSizing="border-box";var f=i.props.styles[a];return f?f(d,l):d},i.getClassNames=function(a,l){var c,d;return(c=(d=i.props.classNames)[a])===null||c===void 0?void 0:c.call(d,l)},i.getElementId=function(a){return"".concat(i.state.instancePrefix,"-").concat(a)},i.getComponents=function(){return ip(i.props)},i.buildCategorizedOptions=function(){return gr(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return Ns(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(a,l){i.setState({ariaSelection:Y({value:a},l)})},i.onMenuMouseDown=function(a){a.button===0&&(a.stopPropagation(),a.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(a){i.blockOptionHover=!1},i.onControlMouseDown=function(a){if(!a.defaultPrevented){var l=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&i.onMenuClose():l&&i.openMenu("first"):(l&&(i.openAfterFocus=!0),i.focusInput()),a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.preventDefault()}},i.onDropdownIndicatorMouseDown=function(a){if(!(a&&a.type==="mousedown"&&a.button!==0)&&!i.props.isDisabled){var l=i.props,c=l.isMulti,d=l.menuIsOpen;i.focusInput(),d?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),a.preventDefault()}},i.onClearIndicatorMouseDown=function(a){a&&a.type==="mousedown"&&a.button!==0||(i.clearValue(),a.preventDefault(),i.openAfterFocus=!1,a.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(a){typeof i.props.closeMenuOnScroll=="boolean"?a.target instanceof HTMLElement&&dr(a.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(a)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(a){var l=a.touches,c=l&&l.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(a){var l=a.touches,c=l&&l.item(0);if(c){var d=Math.abs(c.clientX-i.initialTouchX),f=Math.abs(c.clientY-i.initialTouchY),p=5;i.userIsDragging=d>p||f>p}},i.onTouchEnd=function(a){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(a.target)&&i.menuListRef&&!i.menuListRef.contains(a.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(a){i.userIsDragging||i.onControlMouseDown(a)},i.onClearIndicatorTouchEnd=function(a){i.userIsDragging||i.onClearIndicatorMouseDown(a)},i.onDropdownIndicatorTouchEnd=function(a){i.userIsDragging||i.onDropdownIndicatorMouseDown(a)},i.handleInputChange=function(a){var l=i.props.inputValue,c=a.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:l}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(a){i.props.onFocus&&i.props.onFocus(a),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(a){var l=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(a),i.onInputChange("",{action:"input-blur",prevInputValue:l}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(a){if(!(i.blockOptionHover||i.state.focusedOption===a)){var l=i.getFocusableOptions(),c=l.indexOf(a);i.setState({focusedOption:a,focusedOptionId:c>-1?i.getFocusedOptionId(a):null})}},i.shouldHideSelectedOptions=function(){return Zs(i.props)},i.onValueInputFocus=function(a){a.preventDefault(),a.stopPropagation(),i.focus()},i.onKeyDown=function(a){var l=i.props,c=l.isMulti,d=l.backspaceRemovesValue,f=l.escapeClearsValue,p=l.inputValue,y=l.isClearable,g=l.isDisabled,I=l.menuIsOpen,v=l.onKeyDown,A=l.tabSelectsValue,w=l.openMenuOnFocus,S=i.state,P=S.focusedOption,E=S.focusedValue,O=S.selectValue;if(!g&&!(typeof v=="function"&&(v(a),a.defaultPrevented))){switch(i.blockOptionHover=!0,a.key){case"ArrowLeft":if(!c||p)return;i.focusValue("previous");break;case"ArrowRight":if(!c||p)return;i.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(E)i.removeValue(E);else{if(!d)return;c?i.popValue():y&&i.clearValue()}break;case"Tab":if(i.isComposing||a.shiftKey||!I||!A||!P||w&&i.isOptionSelected(P,O))return;i.selectOption(P);break;case"Enter":if(a.keyCode===229)break;if(I){if(!P||i.isComposing)return;i.selectOption(P);break}return;case"Escape":I?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:p}),i.onMenuClose()):y&&f&&i.clearValue();break;case" ":if(p)return;if(!I){i.openMenu("first");break}if(!P)return;i.selectOption(P);break;case"ArrowUp":I?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":I?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!I)return;i.focusOption("pageup");break;case"PageDown":if(!I)return;i.focusOption("pagedown");break;case"Home":if(!I)return;i.focusOption("first");break;case"End":if(!I)return;i.focusOption("last");break;default:return}a.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++_p),i.state.selectValue=cr(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),s=i.buildFocusableOptions(),u=s.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=s[u],i.state.focusedOptionId=bi(o,s[u])}return i}return cc(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&as(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,s=o.isDisabled,u=o.menuIsOpen,a=this.state.isFocused;(a&&!s&&i.isDisabled||a&&u&&!i.menuIsOpen)&&this.focusInput(),a&&s&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!a&&!s&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(as(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,s=this.state,u=s.selectValue,a=s.isFocused,l=this.buildFocusableOptions(),c=i==="first"?0:l.length-1;if(!this.props.isMulti){var d=l.indexOf(u[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[c],focusedOptionId:this.getFocusedOptionId(l[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,s=o.selectValue,u=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=s.indexOf(u);u||(a=-1);var l=s.length-1,c=-1;if(s.length){switch(i){case"previous":a===0?c=0:a===-1?c=l:c=a-1;break;case"next":a>-1&&a<l&&(c=a+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:s[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,s=this.state.focusedOption,u=this.getFocusableOptions();if(u.length){var a=0,l=u.indexOf(s);s||(l=-1),i==="up"?a=l>0?l-1:u.length-1:i==="down"?a=(l+1)%u.length:i==="pageup"?(a=l-o,a<0&&(a=0)):i==="pagedown"?(a=l+o,a>u.length-1&&(a=u.length-1)):i==="last"&&(a=u.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:u[a],focusedValue:null,focusedOptionId:this.getFocusedOptionId(u[a])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Rn):Y(Y({},Rn),this.props.theme):Rn}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,s=this.getStyles,u=this.getClassNames,a=this.getValue,l=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,p=d.isRtl,y=d.options,g=this.hasValue();return{clearValue:i,cx:o,getStyles:s,getClassNames:u,getValue:a,hasValue:g,isMulti:f,isRtl:p,options:y,selectOption:l,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,s=i.isMulti;return o===void 0?s:o}},{key:"isOptionDisabled",value:function(i,o){return zs(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return Hs(this.props,i,o)}},{key:"filterOption",value:function(i,o){return Ws(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,u=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:s,selectValue:u})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,s=i.isSearchable,u=i.inputId,a=i.inputValue,l=i.tabIndex,c=i.form,d=i.menuIsOpen,f=i.required,p=this.getComponents(),y=p.Input,g=this.state,I=g.inputIsHidden,v=g.ariaSelection,A=this.commonProps,w=u||this.getElementId("input"),S=Y(Y(Y({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(v==null?void 0:v.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?re.createElement(y,_({},A,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:w,innerRef:this.getInputRef,isDisabled:o,isHidden:I,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:c,type:"text",value:a},S)):re.createElement(Ip,_({id:w,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:lr,onFocus:this.onInputFocus,disabled:o,tabIndex:l,inputMode:"none",form:c,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),s=o.MultiValue,u=o.MultiValueContainer,a=o.MultiValueLabel,l=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,f=this.commonProps,p=this.props,y=p.controlShouldRenderValue,g=p.isDisabled,I=p.isMulti,v=p.inputValue,A=p.placeholder,w=this.state,S=w.selectValue,P=w.focusedValue,E=w.isFocused;if(!this.hasValue()||!y)return v?null:re.createElement(d,_({},f,{key:"placeholder",isDisabled:g,isFocused:E,innerProps:{id:this.getElementId("placeholder")}}),A);if(I)return S.map(function(B,D){var j=B===P,L="".concat(i.getOptionLabel(B),"-").concat(i.getOptionValue(B));return re.createElement(s,_({},f,{components:{Container:u,Label:a,Remove:l},isFocused:j,isDisabled:g,key:L,index:D,removeProps:{onClick:function(){return i.removeValue(B)},onTouchEnd:function(){return i.removeValue(B)},onMouseDown:function(te){te.preventDefault()}},data:B}),i.formatOptionLabel(B,"value"))});if(v)return null;var O=S[0];return re.createElement(c,_({},f,{data:O,isDisabled:g}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,s=this.commonProps,u=this.props,a=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||a||!this.hasValue()||l)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return re.createElement(o,_({},s,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,s=this.commonProps,u=this.props,a=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!o||!l)return null;var d={"aria-hidden":"true"};return re.createElement(o,_({},s,{innerProps:d,isDisabled:a,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,s=i.IndicatorSeparator;if(!o||!s)return null;var u=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused;return re.createElement(s,_({},u,{isDisabled:a,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var s=this.commonProps,u=this.props.isDisabled,a=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return re.createElement(o,_({},s,{innerProps:l,isDisabled:u,isFocused:a}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),s=o.Group,u=o.GroupHeading,a=o.Menu,l=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,p=o.Option,y=this.commonProps,g=this.state.focusedOption,I=this.props,v=I.captureMenuScroll,A=I.inputValue,w=I.isLoading,S=I.loadingMessage,P=I.minMenuHeight,E=I.maxMenuHeight,O=I.menuIsOpen,B=I.menuPlacement,D=I.menuPosition,j=I.menuPortalTarget,L=I.menuShouldBlockScroll,R=I.menuShouldScrollIntoView,te=I.noOptionsMessage,se=I.onMenuScrollToTop,z=I.onMenuScrollToBottom;if(!O)return null;var U=function(m,me){var ne=m.type,fe=m.data,Pe=m.isDisabled,M=m.isSelected,W=m.label,q=m.value,he=g===fe,ke=Pe?void 0:function(){return i.onOptionHover(fe)},Ye=Pe?void 0:function(){return i.selectOption(fe)},Qt="".concat(i.getElementId("option"),"-").concat(me),wn={id:Qt,onClick:Ye,onMouseMove:ke,onMouseOver:ke,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:M};return re.createElement(p,_({},y,{innerProps:wn,data:fe,isDisabled:Pe,isSelected:M,key:Qt,label:W,type:ne,value:q,isFocused:he,innerRef:he?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(m.data,"menu"))},Q;if(this.hasOptions())Q=this.getCategorizedOptions().map(function(le){if(le.type==="group"){var m=le.data,me=le.options,ne=le.index,fe="".concat(i.getElementId("group"),"-").concat(ne),Pe="".concat(fe,"-heading");return re.createElement(s,_({},y,{key:fe,data:m,options:me,Heading:u,headingProps:{id:Pe,data:le.data},label:i.formatGroupLabel(le.data)}),le.options.map(function(M){return U(M,"".concat(ne,"-").concat(M.index))}))}else if(le.type==="option")return U(le,"".concat(le.index))});else if(w){var ce=S({inputValue:A});if(ce===null)return null;Q=re.createElement(d,y,ce)}else{var ye=te({inputValue:A});if(ye===null)return null;Q=re.createElement(f,y,ye)}var b={minMenuHeight:P,maxMenuHeight:E,menuPlacement:B,menuPosition:D,menuShouldScrollIntoView:R},xe=re.createElement(Qc,_({},y,b),function(le){var m=le.ref,me=le.placerProps,ne=me.placement,fe=me.maxHeight;return re.createElement(a,_({},y,b,{innerRef:m,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:w,placement:ne}),re.createElement(Ep,{captureEnabled:v,onTopArrive:se,onBottomArrive:z,lockEnabled:L},function(Pe){return re.createElement(l,_({},y,{innerRef:function(W){i.getMenuListRef(W),Pe(W)},innerProps:{role:"listbox","aria-multiselectable":y.isMulti,id:i.getElementId("listbox")},isLoading:w,maxHeight:fe,focusedOption:g}),Q)}))});return j||D==="fixed"?re.createElement(c,_({},y,{appendTo:j,controlElement:this.controlRef,menuPlacement:B,menuPosition:D}),xe):xe}},{key:"renderFormField",value:function(){var i=this,o=this.props,s=o.delimiter,u=o.isDisabled,a=o.isMulti,l=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!u)return re.createElement(Gp,{name:l,onFocus:this.onValueInputFocus});if(!(!l||u))if(a)if(s){var f=d.map(function(g){return i.getOptionValue(g)}).join(s);return re.createElement("input",{name:l,type:"hidden",value:f})}else{var p=d.length>0?d.map(function(g,I){return re.createElement("input",{key:"i-".concat(I),name:l,type:"hidden",value:i.getOptionValue(g)})}):re.createElement("input",{name:l,type:"hidden",value:""});return re.createElement("div",null,p)}else{var y=d[0]?this.getOptionValue(d[0]):"";return re.createElement("input",{name:l,type:"hidden",value:y})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,s=o.ariaSelection,u=o.focusedOption,a=o.focusedValue,l=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return re.createElement(fp,_({},i,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:u,focusedValue:a,isFocused:l,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,s=i.IndicatorsContainer,u=i.SelectContainer,a=i.ValueContainer,l=this.props,c=l.className,d=l.id,f=l.isDisabled,p=l.menuIsOpen,y=this.state.isFocused,g=this.commonProps=this.getCommonProps();return re.createElement(u,_({},g,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:y}),this.renderLiveRegion(),re.createElement(o,_({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:y,menuIsOpen:p}),re.createElement(a,_({},g,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),re.createElement(s,_({},g,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var s=o.prevProps,u=o.clearFocusValueOnUpdate,a=o.inputIsHiddenAfterUpdate,l=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,p=i.options,y=i.value,g=i.menuIsOpen,I=i.inputValue,v=i.isMulti,A=cr(y),w={};if(s&&(y!==s.value||p!==s.options||g!==s.menuIsOpen||I!==s.inputValue)){var S=g?jp(i,A):[],P=g?Ms(gr(i,A),"".concat(f,"-option")):[],E=u?Jp(o,A):null,O=Yp(o,S),B=bi(P,O);w={selectValue:A,focusedOption:O,focusedOptionId:B,focusableOptionsWithIds:P,focusedValue:E,clearFocusValueOnUpdate:!1}}var D=a!=null&&i!==s?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},j=l,L=c&&d;return c&&!L&&(j={value:On(v,A,A[0]||null),options:A,action:"initial-input-focus"},L=!d),(l==null?void 0:l.action)==="initial-input-focus"&&(j=null),Y(Y(Y({},w),D),{},{prevProps:i,ariaSelection:j,prevWasFocused:L})}}]),n}(G.Component);yi.defaultProps=Zp;var Up=G.forwardRef(function(e,t){var n=Uo(e);return re.createElement(yi,_({ref:t},n))}),br=Up;const Qp=Rn,yr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},boxShadow:{button:"rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px",card:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",dropdown:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",input:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},spacing:{baseUnit:4,controlHeight:32,menuGutter:8}},js={colors:{},spacing:{baseUnit:4,controlHeight:32,menuGutter:8},boxShadow:{button:"none",input:"none",card:"none",dropdown:"none"}};function Js(e){if(!e)return Rn;const t=typeof e=="function"?e(yr):e,{colors:n,spacing:r,borderRadius:i}=Ir(Qp,t);return{borderRadius:i,colors:n,spacing:r}}function Ir(e,...t){const n={borderRadius:e.borderRadius,colors:{...e.colors},spacing:{...e.spacing},boxShadow:{...e.boxShadow}};for(const r of t)r&&(n.borderRadius=r.borderRadius??n.borderRadius,Object.assign(n.boxShadow,r.boxShadow),Object.assign(n.colors,r.colors),Object.assign(n.spacing,r.spacing));return n}function Ey(){}function Fy(){}function qp(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const $p=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Kp=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ef={};function Ys(e,t){return(ef.jsx?Kp:$p).test(e)}const tf=/[ \t\n\f\r]/g;function nf(e){return typeof e=="object"?e.type==="text"?_s(e.value):!1:_s(e)}function _s(e){return e.replace(tf,"")===""}class Dn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Dn.prototype.property={},Dn.prototype.normal={},Dn.prototype.space=null;function Us(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Dn(n,r,t)}function Ii(e){return e.toLowerCase()}class Qe{constructor(t,n){this.property=t,this.attribute=n}}Qe.prototype.space=null,Qe.prototype.boolean=!1,Qe.prototype.booleanish=!1,Qe.prototype.overloadedBoolean=!1,Qe.prototype.number=!1,Qe.prototype.commaSeparated=!1,Qe.prototype.spaceSeparated=!1,Qe.prototype.commaOrSpaceSeparated=!1,Qe.prototype.mustUseProperty=!1,Qe.prototype.defined=!1;let rf=0;const ie=Xt(),Fe=Xt(),Qs=Xt(),V=Xt(),Ie=Xt(),un=Xt(),Ze=Xt();function Xt(){return 2**++rf}const vi=Object.freeze(Object.defineProperty({__proto__:null,boolean:ie,booleanish:Fe,commaOrSpaceSeparated:Ze,commaSeparated:un,number:V,overloadedBoolean:Qs,spaceSeparated:Ie},Symbol.toStringTag,{value:"Module"})),Ci=Object.keys(vi);class xi extends Qe{constructor(t,n,r,i){let o=-1;if(super(t,n),qs(this,"space",i),typeof r=="number")for(;++o<Ci.length;){const s=Ci[o];qs(this,Ci[o],(r&vi[s])===vi[s])}}}xi.prototype.defined=!0;function qs(e,t,n){n&&(e[t]=n)}const of={}.hasOwnProperty;function an(e){const t={},n={};let r;for(r in e.properties)if(of.call(e.properties,r)){const i=e.properties[r],o=new xi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Ii(r)]=r,n[Ii(o.attribute)]=r}return new Dn(t,n,e.space)}const $s=an({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Ks=an({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function eu(e,t){return t in e?e[t]:t}function tu(e,t){return eu(e,t.toLowerCase())}const nu=an({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:tu,properties:{xmlns:null,xmlnsXLink:null}}),ru=an({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Fe,ariaAutoComplete:null,ariaBusy:Fe,ariaChecked:Fe,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:Ie,ariaCurrent:null,ariaDescribedBy:Ie,ariaDetails:null,ariaDisabled:Fe,ariaDropEffect:Ie,ariaErrorMessage:null,ariaExpanded:Fe,ariaFlowTo:Ie,ariaGrabbed:Fe,ariaHasPopup:null,ariaHidden:Fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ie,ariaLevel:V,ariaLive:null,ariaModal:Fe,ariaMultiLine:Fe,ariaMultiSelectable:Fe,ariaOrientation:null,ariaOwns:Ie,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:Fe,ariaReadOnly:Fe,ariaRelevant:null,ariaRequired:Fe,ariaRoleDescription:Ie,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:Fe,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null}}),sf=an({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:tu,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:un,acceptCharset:Ie,accessKey:Ie,action:null,allow:null,allowFullScreen:ie,allowPaymentRequest:ie,allowUserMedia:ie,alt:null,as:null,async:ie,autoCapitalize:null,autoComplete:Ie,autoFocus:ie,autoPlay:ie,blocking:Ie,capture:null,charSet:null,checked:ie,cite:null,className:Ie,cols:V,colSpan:null,content:null,contentEditable:Fe,controls:ie,controlsList:Ie,coords:V|un,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ie,defer:ie,dir:null,dirName:null,disabled:ie,download:Qs,draggable:Fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ie,formTarget:null,headers:Ie,height:V,hidden:ie,high:V,href:null,hrefLang:null,htmlFor:Ie,httpEquiv:Ie,id:null,imageSizes:null,imageSrcSet:null,inert:ie,inputMode:null,integrity:null,is:null,isMap:ie,itemId:null,itemProp:Ie,itemRef:Ie,itemScope:ie,itemType:Ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ie,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:ie,muted:ie,name:null,nonce:null,noModule:ie,noValidate:ie,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ie,optimum:V,pattern:null,ping:Ie,placeholder:null,playsInline:ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ie,referrerPolicy:null,rel:Ie,required:ie,reversed:ie,rows:V,rowSpan:V,sandbox:Ie,scope:null,scoped:ie,seamless:ie,selected:ie,shadowRootClonable:ie,shadowRootDelegatesFocus:ie,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:Fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:ie,useMap:null,value:Fe,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ie,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ie,declare:ie,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:ie,noHref:ie,noShade:ie,noWrap:ie,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:Fe,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ie,disableRemotePlayback:ie,prefix:null,property:null,results:V,security:null,unselectable:null}}),uf=an({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:eu,properties:{about:Ze,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:Ie,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:un,g2:un,glyphName:un,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:Ze,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:V,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ze,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ze,rev:Ze,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ze,requiredFeatures:Ze,requiredFonts:Ze,requiredFormats:Ze,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:Ze,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ze,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ze,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),af=/^data[-\w.:]+$/i,iu=/-[a-z]/g,lf=/[A-Z]/g;function cf(e,t){const n=Ii(t);let r=t,i=Qe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&af.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(iu,pf);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!iu.test(o)){let s=o.replace(lf,df);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=xi}return new i(r,t)}function df(e){return"-"+e.toLowerCase()}function pf(e){return e.charAt(1).toUpperCase()}const ff={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},hf=Us([Ks,$s,nu,ru,sf],"html"),Ai=Us([Ks,$s,nu,ru,uf],"svg");function gf(e){return e.join(" ").trim()}var ou={},su=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,mf=/\n/g,bf=/^\s*/,yf=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,If=/^:\s*/,vf=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Cf=/^[;\s]*/,xf=/^\s+|\s+$/g,Af=`
7
- `,uu="/",au="*",zt="",Sf="comment",wf="declaration",Ef=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(y){var g=y.match(mf);g&&(n+=g.length);var I=y.lastIndexOf(Af);r=~I?y.length-I:r+y.length}function o(){var y={line:n,column:r};return function(g){return g.position=new s(y),l(),g}}function s(y){this.start=y,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function u(y){var g=new Error(t.source+":"+n+":"+r+": "+y);if(g.reason=y,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function a(y){var g=y.exec(e);if(g){var I=g[0];return i(I),e=e.slice(I.length),g}}function l(){a(bf)}function c(y){var g;for(y=y||[];g=d();)g!==!1&&y.push(g);return y}function d(){var y=o();if(!(uu!=e.charAt(0)||au!=e.charAt(1))){for(var g=2;zt!=e.charAt(g)&&(au!=e.charAt(g)||uu!=e.charAt(g+1));)++g;if(g+=2,zt===e.charAt(g-1))return u("End of comment missing");var I=e.slice(2,g-2);return r+=2,i(I),e=e.slice(g),r+=2,y({type:Sf,comment:I})}}function f(){var y=o(),g=a(yf);if(g){if(d(),!a(If))return u("property missing ':'");var I=a(vf),v=y({type:wf,property:lu(g[0].replace(su,zt)),value:I?lu(I[0].replace(su,zt)):zt});return a(Cf),v}}function p(){var y=[];c(y);for(var g;g=f();)g!==!1&&(y.push(g),c(y));return y}return l(),p()};function lu(e){return e?e.replace(xf,zt):zt}var Ff=nn&&nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ou,"__esModule",{value:!0});var cu=ou.default=kf,Pf=Ff(Ef);function kf(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Pf.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var s=o.property,u=o.value;i?t(s,u,o):u&&(n=n||{},n[s]=u)}}),n}const Gf=cu.default||cu,du=pu("end"),Si=pu("start");function pu(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Bf(e){const t=Si(e),n=du(e);if(t&&n)return{start:t,end:n}}function Nn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?fu(e.position):"start"in e||"end"in e?fu(e):"line"in e||"column"in e?wi(e):""}function wi(e){return hu(e&&e.line)+":"+hu(e&&e.column)}function fu(e){return wi(e&&e.start)+"-"+wi(e&&e.end)}function hu(e){return e&&typeof e=="number"?e:1}class Te extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?o.ruleId=r:(o.source=r.slice(0,a),o.ruleId=r.slice(a+1))}if(!o.place&&o.ancestors&&o.ancestors){const a=o.ancestors[o.ancestors.length-1];a&&(o.place=a.position)}const u=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=u?u.line:void 0,this.name=Nn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Te.prototype.file="",Te.prototype.name="",Te.prototype.reason="",Te.prototype.message="",Te.prototype.stack="",Te.prototype.column=void 0,Te.prototype.line=void 0,Te.prototype.ancestors=void 0,Te.prototype.cause=void 0,Te.prototype.fatal=void 0,Te.prototype.place=void 0,Te.prototype.ruleId=void 0,Te.prototype.source=void 0;const Ei={}.hasOwnProperty,Of=new Map,Tf=/[A-Z]/g,Vf=/-([a-z])/g,Rf=new Set(["table","tbody","thead","tfoot","tr"]),Df=new Set(["td","th"]),gu="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Nf(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=jf(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Zf(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Ai:hf,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=mu(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function mu(e,t,n){if(t.type==="element")return Mf(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Lf(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return zf(e,t,n);if(t.type==="mdxjsEsm")return Xf(e,t);if(t.type==="root")return Hf(e,t,n);if(t.type==="text")return Wf(e,t)}function Mf(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ai,e.schema=i),e.ancestors.push(t);const o=yu(e,t.tagName,!1),s=Jf(e,t);let u=Pi(e,t);return Rf.has(t.tagName)&&(u=u.filter(function(a){return typeof a=="string"?!nf(a):!0})),bu(e,s,o,t),Fi(s,u),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function Lf(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Mn(e,t.position)}function Xf(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Mn(e,t.position)}function zf(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Ai,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:yu(e,t.name,!0),s=Yf(e,t),u=Pi(e,t);return bu(e,s,o,t),Fi(s,u),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function Hf(e,t,n){const r={};return Fi(r,Pi(e,t)),e.create(t,e.Fragment,r,n)}function Wf(e,t){return t.value}function bu(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Fi(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Zf(e,t,n){return r;function r(i,o,s,u){const l=Array.isArray(s.children)?n:t;return u?l(o,s,u):l(o,s)}}function jf(e,t){return n;function n(r,i,o,s){const u=Array.isArray(o.children),a=Si(r);return t(i,o,s,u,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function Jf(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Ei.call(t.properties,i)){const o=_f(e,i,t.properties[i]);if(o){const[s,u]=o;e.tableCellAlignToStyle&&s==="align"&&typeof u=="string"&&Df.has(t.tagName)?r=u:n[s]=u}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Yf(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const s=o.expression;s.type;const u=s.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Mn(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,o=e.evaluater.evaluateExpression(u.expression)}else Mn(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Pi(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Of;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const a=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(a){const l=i.get(a)||0;s=a+"-"+l,i.set(a,l+1)}}const u=mu(e,o,s);u!==void 0&&n.push(u)}return n}function _f(e,t,n){const r=cf(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?qp(n):gf(n)),r.property==="style"){let i=typeof n=="object"?n:Uf(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Qf(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ff[r.property]||r.property:r.attribute,n]}}function Uf(e,t){const n={};try{Gf(t,r)}catch(i){if(!e.ignoreInvalidStyle){const o=i,s=new Te("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=gu+"#cannot-parse-style-attribute",s}}return n;function r(i,o){let s=i;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(Vf,$f)),n[s]=o}}function yu(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,s;for(;++o<i.length;){const u=Ys(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:u,computed:!!(o&&u.type==="Literal"),optional:!1}:u}r=s}else r=Ys(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Ei.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Mn(e)}function Mn(e,t){const n=new Te("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=gu+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Qf(e){const t={};let n;for(n in e)Ei.call(e,n)&&(t[qf(n)]=e[n]);return t}function qf(e){let t=e.replace(Tf,Kf);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function $f(e,t){return t.toUpperCase()}function Kf(e){return"-"+e.toLowerCase()}const ki={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},eh={};function th(e,t){const n=eh,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Iu(e,r,i)}function Iu(e,t,n){if(nh(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 vu(e.children,t,n)}return Array.isArray(e)?vu(e,t,n):""}function vu(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Iu(e[i],t,n);return r.join("")}function nh(e){return!!(e&&typeof e=="object")}const Cu=document.createElement("i");function Gi(e){const t="&"+e+";";Cu.innerHTML=t;const n=Cu.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ut(e,t,n,r){const i=e.length;let o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function qe(e,t){return e.length>0?(ut(e,e.length,0,t),e):t}const xu={}.hasOwnProperty;function rh(e){const t={};let n=-1;for(;++n<e.length;)ih(t,e[n]);return t}function ih(e,t){let n;for(n in t){const i=(xu.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){xu.call(i,s)||(i[s]=[]);const u=o[s];oh(i[s],Array.isArray(u)?u:u?[u]:[])}}}function oh(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 Au(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)}function ln(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const at=At(/[A-Za-z]/),je=At(/[\dA-Za-z]/),sh=At(/[#-'*+\--9=?A-Z^-~]/);function Bi(e){return e!==null&&(e<32||e===127)}const Oi=At(/\d/),uh=At(/[\dA-Fa-f]/),ah=At(/[!-/:-@[-`{-~]/);function $(e){return e!==null&&e<-2}function Le(e){return e!==null&&(e<0||e===32)}function ge(e){return e===-2||e===-1||e===32}const lh=At(new RegExp("\\p{P}|\\p{S}","u")),ch=At(/\s/);function At(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function cn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&je(e.charCodeAt(n+1))&&je(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const u=e.charCodeAt(n+1);o<56320&&u>56319&&u<57344?(s=String.fromCharCode(o,u),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ve(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(a){return ge(a)?(e.enter(n),u(a)):t(a)}function u(a){return ge(a)&&o++<i?(e.consume(a),u):(e.exit(n),t(a))}}const dh={tokenize:ph};function ph(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ve(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),o(u)}function o(u){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,s(u)}function s(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return $(u)?(e.consume(u),e.exit("chunkText"),o):(e.consume(u),s)}}const fh={tokenize:hh},Su={tokenize:gh};function hh(e){const t=this,n=[];let r=0,i,o,s;return u;function u(w){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,a,l)(w)}return l(w)}function a(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&A();const S=t.events.length;let P=S,E;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){E=t.events[P][1].end;break}v(r);let O=S;for(;O<t.events.length;)t.events[O][1].end={...E},O++;return ut(t.events,P+1,0,t.events.slice(S)),t.events.length=O,l(w)}return u(w)}function l(w){if(r===n.length){if(!i)return f(w);if(i.currentConstruct&&i.currentConstruct.concrete)return y(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Su,c,d)(w)}function c(w){return i&&A(),v(r),f(w)}function d(w){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,y(w)}function f(w){return t.containerState={},e.attempt(Su,p,y)(w)}function p(w){return r++,n.push([t.currentConstruct,t.containerState]),f(w)}function y(w){if(w===null){i&&A(),v(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),g(w)}function g(w){if(w===null){I(e.exit("chunkFlow"),!0),v(0),e.consume(w);return}return $(w)?(e.consume(w),I(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(w),g)}function I(w,S){const P=t.sliceStream(w);if(S&&P.push(null),w.previous=o,o&&(o.next=w),o=w,i.defineSkip(w.start),i.write(P),t.parser.lazy[w.start.line]){let E=i.events.length;for(;E--;)if(i.events[E][1].start.offset<s&&(!i.events[E][1].end||i.events[E][1].end.offset>s))return;const O=t.events.length;let B=O,D,j;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(D){j=t.events[B][1].end;break}D=!0}for(v(r),E=O;E<t.events.length;)t.events[E][1].end={...j},E++;ut(t.events,B+1,0,t.events.slice(O)),t.events.length=E}}function v(w){let S=n.length;for(;S-- >w;){const P=n[S];t.containerState=P[1],P[0].exit.call(t,e)}n.length=w}function A(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function gh(e,t,n){return ve(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function wu(e){if(e===null||Le(e)||ch(e))return 1;if(lh(e))return 2}function Ti(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Vi={name:"attention",resolveAll:mh,tokenize:bh};function mh(e,t){let n=-1,r,i,o,s,u,a,l,c;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;a=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 d={...e[r][1].end},f={...e[n][1].start};Eu(d,-a),Eu(f,a),s={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},u={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?"strong":"emphasis",start:{...s.start},end:{...u.end}},e[r][1].end={...s.start},e[n][1].start={...u.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=qe(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=qe(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),l=qe(l,Ti(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=qe(l,[["exit",o,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=qe(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,ut(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function bh(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=wu(r);let o;return s;function s(a){return o=a,e.enter("attentionSequence"),u(a)}function u(a){if(a===o)return e.consume(a),u;const l=e.exit("attentionSequence"),c=wu(a),d=!c||c===2&&i||n.includes(a),f=!i||i===2&&c||n.includes(r);return l._open=!!(o===42?d:d&&(i||!f)),l._close=!!(o===42?f:f&&(c||!d)),t(a)}}function Eu(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const yh={name:"autolink",tokenize:Ih};function Ih(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return at(p)?(e.consume(p),s):p===64?n(p):l(p)}function s(p){return p===43||p===45||p===46||je(p)?(r=1,u(p)):l(p)}function u(p){return p===58?(e.consume(p),r=0,a):(p===43||p===45||p===46||je(p))&&r++<32?(e.consume(p),u):(r=0,l(p))}function a(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Bi(p)?n(p):(e.consume(p),a)}function l(p){return p===64?(e.consume(p),c):sh(p)?(e.consume(p),l):n(p)}function c(p){return je(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||je(p))&&r++<63){const y=p===45?f:d;return e.consume(p),y}return n(p)}}const vr={partial:!0,tokenize:vh};function vh(e,t,n){return r;function r(o){return ge(o)?ve(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||$(o)?t(o):n(o)}}const Fu={continuation:{tokenize:xh},exit:Ah,name:"blockQuote",tokenize:Ch};function Ch(e,t,n){const r=this;return i;function i(s){if(s===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return ge(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function xh(e,t,n){const r=this;return i;function i(s){return ge(s)?ve(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(Fu,t,n)(s)}}function Ah(e){e.exit("blockQuote")}const Pu={name:"characterEscape",tokenize:Sh};function Sh(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return ah(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const ku={name:"characterReference",tokenize:wh};function wh(e,t,n){const r=this;let i=0,o,s;return u;function u(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),a}function a(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,s=je,c(d))}function l(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=uh,c):(e.enter("characterReferenceValue"),o=7,s=Oi,c(d))}function c(d){if(d===59&&i){const f=e.exit("characterReferenceValue");return s===je&&!Gi(r.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<o?(e.consume(d),c):n(d)}}const Gu={partial:!0,tokenize:Fh},Bu={concrete:!0,name:"codeFenced",tokenize:Eh};function Eh(e,t,n){const r=this,i={partial:!0,tokenize:P};let o=0,s=0,u;return a;function a(E){return l(E)}function l(E){const O=r.events[r.events.length-1];return o=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,u=E,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(E)}function c(E){return E===u?(s++,e.consume(E),c):s<3?n(E):(e.exit("codeFencedFenceSequence"),ge(E)?ve(e,d,"whitespace")(E):d(E))}function d(E){return E===null||$(E)?(e.exit("codeFencedFence"),r.interrupt?t(E):e.check(Gu,g,S)(E)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(E))}function f(E){return E===null||$(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(E)):ge(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ve(e,p,"whitespace")(E)):E===96&&E===u?n(E):(e.consume(E),f)}function p(E){return E===null||$(E)?d(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(E))}function y(E){return E===null||$(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(E)):E===96&&E===u?n(E):(e.consume(E),y)}function g(E){return e.attempt(i,S,I)(E)}function I(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),v}function v(E){return o>0&&ge(E)?ve(e,A,"linePrefix",o+1)(E):A(E)}function A(E){return E===null||$(E)?e.check(Gu,g,S)(E):(e.enter("codeFlowValue"),w(E))}function w(E){return E===null||$(E)?(e.exit("codeFlowValue"),A(E)):(e.consume(E),w)}function S(E){return e.exit("codeFenced"),t(E)}function P(E,O,B){let D=0;return j;function j(z){return E.enter("lineEnding"),E.consume(z),E.exit("lineEnding"),L}function L(z){return E.enter("codeFencedFence"),ge(z)?ve(E,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):R(z)}function R(z){return z===u?(E.enter("codeFencedFenceSequence"),te(z)):B(z)}function te(z){return z===u?(D++,E.consume(z),te):D>=s?(E.exit("codeFencedFenceSequence"),ge(z)?ve(E,se,"whitespace")(z):se(z)):B(z)}function se(z){return z===null||$(z)?(E.exit("codeFencedFence"),O(z)):B(z)}}}function Fh(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Ri={name:"codeIndented",tokenize:kh},Ph={partial:!0,tokenize:Gh};function kh(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),ve(e,o,"linePrefix",5)(l)}function o(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?a(l):$(l)?e.attempt(Ph,s,a)(l):(e.enter("codeFlowValue"),u(l))}function u(l){return l===null||$(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),u)}function a(l){return e.exit("codeIndented"),t(l)}}function Gh(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):$(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ve(e,o,"linePrefix",5)(s)}function o(s){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):$(s)?i(s):n(s)}}const Bh={name:"codeText",previous:Th,resolve:Oh,tokenize:Vh};function Oh(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 Th(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Vh(e,t,n){let r=0,i,o;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),u(d)}function u(d){return d===96?(e.consume(d),r++,u):(e.exit("codeTextSequence"),a(d))}function a(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),a):d===96?(o=e.enter("codeTextSequence"),i=0,c(d)):$(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),a):(e.enter("codeTextData"),l(d))}function l(d){return d===null||d===32||d===96||$(d)?(e.exit("codeTextData"),a(d)):(e.consume(d),l)}function c(d){return d===96?(e.consume(d),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",l(d))}}class Rh{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 o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ln(this.left,r),o.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),Ln(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ln(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);Ln(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ln(this.left,n.reverse())}}}function Ln(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 Ou(e){const t={};let n=-1,r,i,o,s,u,a,l;const c=new Rh(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Dh(c,n)),n=t[n],l=!0);else if(r[1]._container){for(o=n,i=void 0;o--&&(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);i&&(r[1].end={...c.get(i)[1].start},u=c.slice(i,n),u.unshift(r),c.splice(i,n-i+1,u))}}return ut(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function Dh(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[],s=n._tokenizer||r.parser[n.contentType](n.start),u=s.events,a=[],l={};let c,d,f=-1,p=n,y=0,g=0;const I=[g];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),d&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<u.length;)u[f][0]==="exit"&&u[f-1][0]==="enter"&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(g=f+1,I.push(g),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):I.pop(),f=I.length;f--;){const v=u.slice(I[f],I[f+1]),A=o.pop();a.push([A,A+v.length-1]),e.splice(A,2,v)}for(a.reverse(),f=-1;++f<a.length;)l[y+a[f][0]]=y+a[f][1],y+=a[f][1]-a[f][0]-1;return l}const Nh={resolve:Lh,tokenize:Xh},Mh={partial:!0,tokenize:zh};function Lh(e){return Ou(e),e}function Xh(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?o(u):$(u)?e.check(Mh,s,o)(u):(e.consume(u),i)}function o(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function s(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function zh(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ve(e,o,"linePrefix")}function o(s){if(s===null||$(s))return n(s);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Tu(e,t,n,r,i,o,s,u,a){const l=a||Number.POSITIVE_INFINITY;let c=0;return d;function d(v){return v===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(v),e.exit(o),f):v===null||v===32||v===41||Bi(v)?n(v):(e.enter(r),e.enter(s),e.enter(u),e.enter("chunkString",{contentType:"string"}),g(v))}function f(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(u),f(v)):v===null||v===60||$(v)?n(v):(e.consume(v),v===92?y:p)}function y(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function g(v){return!c&&(v===null||v===41||Le(v))?(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(r),t(v)):c<l&&v===40?(e.consume(v),c++,g):v===41?(e.consume(v),c--,g):v===null||v===32||v===40||Bi(v)?n(v):(e.consume(v),v===92?I:g)}function I(v){return v===40||v===41||v===92?(e.consume(v),g):g(v)}}function Vu(e,t,n,r,i,o){const s=this;let u=0,a;return l;function l(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),c}function c(p){return u>999||p===null||p===91||p===93&&!a||p===94&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):$(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||$(p)||u++>999?(e.exit("chunkString"),c(p)):(e.consume(p),a||(a=!ge(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),u++,d):d(p)}}function Ru(e,t,n,r,i,o){let s;return u;function u(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),s=f===40?41:f,a):n(f)}function a(f){return f===s?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),l(f))}function l(f){return f===s?(e.exit(o),a(s)):f===null?n(f):$(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ve(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===s||f===null||$(f)?(e.exit("chunkString"),l(f)):(e.consume(f),f===92?d:c)}function d(f){return f===s||f===92?(e.consume(f),c):c(f)}}function Xn(e,t){let n;return r;function r(i){return $(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ge(i)?ve(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Hh={name:"definition",tokenize:Zh},Wh={partial:!0,tokenize:jh};function Zh(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),s(p)}function s(p){return Vu.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function u(p){return i=ln(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):n(p)}function a(p){return Le(p)?Xn(e,l)(p):l(p)}function l(p){return Tu(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(Wh,d,d)(p)}function d(p){return ge(p)?ve(e,f,"whitespace")(p):f(p)}function f(p){return p===null||$(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function jh(e,t,n){return r;function r(u){return Le(u)?Xn(e,i)(u):n(u)}function i(u){return Ru(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function o(u){return ge(u)?ve(e,s,"whitespace")(u):s(u)}function s(u){return u===null||$(u)?t(u):n(u)}}const Jh={name:"hardBreakEscape",tokenize:Yh};function Yh(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return $(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const _h={name:"headingAtx",resolve:Uh,tokenize:Qh};function Uh(e,t){let n=e.length-2,r=3,i,o;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},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ut(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Qh(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Le(c)?(e.exit("atxHeadingSequence"),u(c)):n(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||$(c)?(e.exit("atxHeading"),t(c)):ge(c)?ve(e,u,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),u(c))}function l(c){return c===null||c===35||Le(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),l)}}const qh=["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"],Du=["pre","script","style","textarea"],$h={concrete:!0,name:"htmlFlow",resolveTo:tg,tokenize:ng},Kh={partial:!0,tokenize:ig},eg={partial:!0,tokenize:rg};function tg(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 ng(e,t,n){const r=this;let i,o,s,u,a;return l;function l(m){return c(m)}function c(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),d}function d(m){return m===33?(e.consume(m),f):m===47?(e.consume(m),o=!0,g):m===63?(e.consume(m),i=3,r.interrupt?t:b):at(m)?(e.consume(m),s=String.fromCharCode(m),I):n(m)}function f(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,u=0,y):at(m)?(e.consume(m),i=4,r.interrupt?t:b):n(m)}function p(m){return m===45?(e.consume(m),r.interrupt?t:b):n(m)}function y(m){const me="CDATA[";return m===me.charCodeAt(u++)?(e.consume(m),u===me.length?r.interrupt?t:R:y):n(m)}function g(m){return at(m)?(e.consume(m),s=String.fromCharCode(m),I):n(m)}function I(m){if(m===null||m===47||m===62||Le(m)){const me=m===47,ne=s.toLowerCase();return!me&&!o&&Du.includes(ne)?(i=1,r.interrupt?t(m):R(m)):qh.includes(s.toLowerCase())?(i=6,me?(e.consume(m),v):r.interrupt?t(m):R(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(m):o?A(m):w(m))}return m===45||je(m)?(e.consume(m),s+=String.fromCharCode(m),I):n(m)}function v(m){return m===62?(e.consume(m),r.interrupt?t:R):n(m)}function A(m){return ge(m)?(e.consume(m),A):j(m)}function w(m){return m===47?(e.consume(m),j):m===58||m===95||at(m)?(e.consume(m),S):ge(m)?(e.consume(m),w):j(m)}function S(m){return m===45||m===46||m===58||m===95||je(m)?(e.consume(m),S):P(m)}function P(m){return m===61?(e.consume(m),E):ge(m)?(e.consume(m),P):w(m)}function E(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),a=m,O):ge(m)?(e.consume(m),E):B(m)}function O(m){return m===a?(e.consume(m),a=null,D):m===null||$(m)?n(m):(e.consume(m),O)}function B(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||Le(m)?P(m):(e.consume(m),B)}function D(m){return m===47||m===62||ge(m)?w(m):n(m)}function j(m){return m===62?(e.consume(m),L):n(m)}function L(m){return m===null||$(m)?R(m):ge(m)?(e.consume(m),L):n(m)}function R(m){return m===45&&i===2?(e.consume(m),U):m===60&&i===1?(e.consume(m),Q):m===62&&i===4?(e.consume(m),xe):m===63&&i===3?(e.consume(m),b):m===93&&i===5?(e.consume(m),ye):$(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Kh,le,te)(m)):m===null||$(m)?(e.exit("htmlFlowData"),te(m)):(e.consume(m),R)}function te(m){return e.check(eg,se,le)(m)}function se(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),z}function z(m){return m===null||$(m)?te(m):(e.enter("htmlFlowData"),R(m))}function U(m){return m===45?(e.consume(m),b):R(m)}function Q(m){return m===47?(e.consume(m),s="",ce):R(m)}function ce(m){if(m===62){const me=s.toLowerCase();return Du.includes(me)?(e.consume(m),xe):R(m)}return at(m)&&s.length<8?(e.consume(m),s+=String.fromCharCode(m),ce):R(m)}function ye(m){return m===93?(e.consume(m),b):R(m)}function b(m){return m===62?(e.consume(m),xe):m===45&&i===2?(e.consume(m),b):R(m)}function xe(m){return m===null||$(m)?(e.exit("htmlFlowData"),le(m)):(e.consume(m),xe)}function le(m){return e.exit("htmlFlow"),t(m)}}function rg(e,t,n){const r=this;return i;function i(s){return $(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function ig(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(vr,t,n)}}const og={name:"htmlText",tokenize:sg};function sg(e,t,n){const r=this;let i,o,s;return u;function u(b){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(b),a}function a(b){return b===33?(e.consume(b),l):b===47?(e.consume(b),P):b===63?(e.consume(b),w):at(b)?(e.consume(b),B):n(b)}function l(b){return b===45?(e.consume(b),c):b===91?(e.consume(b),o=0,y):at(b)?(e.consume(b),A):n(b)}function c(b){return b===45?(e.consume(b),p):n(b)}function d(b){return b===null?n(b):b===45?(e.consume(b),f):$(b)?(s=d,Q(b)):(e.consume(b),d)}function f(b){return b===45?(e.consume(b),p):d(b)}function p(b){return b===62?U(b):b===45?f(b):d(b)}function y(b){const xe="CDATA[";return b===xe.charCodeAt(o++)?(e.consume(b),o===xe.length?g:y):n(b)}function g(b){return b===null?n(b):b===93?(e.consume(b),I):$(b)?(s=g,Q(b)):(e.consume(b),g)}function I(b){return b===93?(e.consume(b),v):g(b)}function v(b){return b===62?U(b):b===93?(e.consume(b),v):g(b)}function A(b){return b===null||b===62?U(b):$(b)?(s=A,Q(b)):(e.consume(b),A)}function w(b){return b===null?n(b):b===63?(e.consume(b),S):$(b)?(s=w,Q(b)):(e.consume(b),w)}function S(b){return b===62?U(b):w(b)}function P(b){return at(b)?(e.consume(b),E):n(b)}function E(b){return b===45||je(b)?(e.consume(b),E):O(b)}function O(b){return $(b)?(s=O,Q(b)):ge(b)?(e.consume(b),O):U(b)}function B(b){return b===45||je(b)?(e.consume(b),B):b===47||b===62||Le(b)?D(b):n(b)}function D(b){return b===47?(e.consume(b),U):b===58||b===95||at(b)?(e.consume(b),j):$(b)?(s=D,Q(b)):ge(b)?(e.consume(b),D):U(b)}function j(b){return b===45||b===46||b===58||b===95||je(b)?(e.consume(b),j):L(b)}function L(b){return b===61?(e.consume(b),R):$(b)?(s=L,Q(b)):ge(b)?(e.consume(b),L):D(b)}function R(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),i=b,te):$(b)?(s=R,Q(b)):ge(b)?(e.consume(b),R):(e.consume(b),se)}function te(b){return b===i?(e.consume(b),i=void 0,z):b===null?n(b):$(b)?(s=te,Q(b)):(e.consume(b),te)}function se(b){return b===null||b===34||b===39||b===60||b===61||b===96?n(b):b===47||b===62||Le(b)?D(b):(e.consume(b),se)}function z(b){return b===47||b===62||Le(b)?D(b):n(b)}function U(b){return b===62?(e.consume(b),e.exit("htmlTextData"),e.exit("htmlText"),t):n(b)}function Q(b){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),ce}function ce(b){return ge(b)?ve(e,ye,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):ye(b)}function ye(b){return e.enter("htmlTextData"),s(b)}}const Di={name:"labelEnd",resolveAll:cg,resolveTo:dg,tokenize:pg},ug={tokenize:fg},ag={tokenize:hg},lg={tokenize:gg};function cg(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 dg(e,t){let n=e.length,r=0,i,o,s,u;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const a={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[s-2][1].start}};return u=[["enter",a,t],["enter",l,t]],u=qe(u,e.slice(o+1,o+r+3)),u=qe(u,[["enter",c,t]]),u=qe(u,Ti(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),u=qe(u,[["exit",c,t],e[s-2],e[s-1],["exit",l,t]]),u=qe(u,e.slice(s+1)),u=qe(u,[["exit",a,t]]),ut(e,o,e.length,u),e}function pg(e,t,n){const r=this;let i=r.events.length,o,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return u;function u(f){return o?o._inactive?d(f):(s=r.parser.defined.includes(ln(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),a):n(f)}function a(f){return f===40?e.attempt(ug,c,s?c:d)(f):f===91?e.attempt(ag,c,s?l:d)(f):s?c(f):d(f)}function l(f){return e.attempt(lg,c,d)(f)}function c(f){return t(f)}function d(f){return o._balanced=!0,n(f)}}function fg(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return Le(d)?Xn(e,o)(d):o(d)}function o(d){return d===41?c(d):Tu(e,s,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Le(d)?Xn(e,a)(d):c(d)}function u(d){return n(d)}function a(d){return d===34||d===39||d===40?Ru(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function l(d){return Le(d)?Xn(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function hg(e,t,n){const r=this;return i;function i(u){return Vu.call(r,e,o,s,"reference","referenceMarker","referenceString")(u)}function o(u){return r.parser.defined.includes(ln(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function s(u){return n(u)}}function gg(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const mg={name:"labelStartImage",resolveAll:Di.resolveAll,tokenize:bg};function bg(e,t,n){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),o}function o(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),s):n(u)}function s(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const yg={name:"labelStartLink",resolveAll:Di.resolveAll,tokenize:Ig};function Ig(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Ni={name:"lineEnding",tokenize:vg};function vg(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ve(e,t,"linePrefix")}}const Cr={name:"thematicBreak",tokenize:Cg};function Cg(e,t,n){let r=0,i;return o;function o(l){return e.enter("thematicBreak"),s(l)}function s(l){return i=l,u(l)}function u(l){return l===i?(e.enter("thematicBreakSequence"),a(l)):r>=3&&(l===null||$(l))?(e.exit("thematicBreak"),t(l)):n(l)}function a(l){return l===i?(e.consume(l),r++,a):(e.exit("thematicBreakSequence"),ge(l)?ve(e,u,"whitespace")(l):u(l))}}const Xe={continuation:{tokenize:wg},exit:Fg,name:"list",tokenize:Sg},xg={partial:!0,tokenize:Pg},Ag={partial:!0,tokenize:Eg};function Sg(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return u;function u(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Oi(p)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Cr,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)}function a(p){return Oi(p)&&++s<10?(e.consume(p),a):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(vr,r.interrupt?n:c,e.attempt(xg,f,d))}function c(p){return r.containerState.initialBlankLine=!0,o++,f(p)}function d(p){return ge(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function wg(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(vr,i,o);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ve(e,t,"listItemIndent",r.containerState.size+1)(u)}function o(u){return r.containerState.furtherBlankLines||!ge(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ag,t,s)(u))}function s(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,ve(e,e.attempt(Xe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function Eg(e,t,n){const r=this;return ve(e,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function Fg(e){e.exit(this.containerState.type)}function Pg(e,t,n){const r=this;return ve(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!ge(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Nu={name:"setextUnderline",resolveTo:kg,tokenize:Gg};function kg(e,t){let n=e.length,r,i,o;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),!o&&e[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function Gg(e,t,n){const r=this;let i;return o;function o(l){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),u(l)}function u(l){return l===i?(e.consume(l),u):(e.exit("setextHeadingLineSequence"),ge(l)?ve(e,a,"lineSuffix")(l):a(l))}function a(l){return l===null||$(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const Bg={tokenize:Og};function Og(e){const t=this,n=e.attempt(vr,r,e.attempt(this.parser.constructs.flowInitial,i,ve(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Nh,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Tg={resolveAll:Lu()},Vg=Mu("string"),Rg=Mu("text");function Mu(e){return{resolveAll:Lu(e==="text"?Dg:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,s,u);return s;function s(c){return l(c)?o(c):u(c)}function u(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),a}function a(c){return l(c)?(n.exit("data"),o(c)):(n.consume(c),a)}function l(c){if(c===null)return!0;const d=i[c];let f=-1;if(d)for(;++f<d.length;){const p=d[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Lu(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Dg(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 o=i.length,s=-1,u=0,a;for(;o--;){const l=i[o];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)u++,s--;if(s)break;s=-1}else if(l===-2)a=!0,u++;else if(l!==-1){o++;break}}if(u){const l={type:n===e.length||a||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const Ng=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Hh},disable:{null:[]},document:{42:Xe,43:Xe,45:Xe,48:Xe,49:Xe,50:Xe,51:Xe,52:Xe,53:Xe,54:Xe,55:Xe,56:Xe,57:Xe,62:Fu},flow:{35:_h,42:Cr,45:[Nu,Cr],60:$h,61:Nu,95:Cr,96:Bu,126:Bu},flowInitial:{[-2]:Ri,[-1]:Ri,32:Ri},insideSpan:{null:[Vi,Tg]},string:{38:ku,92:Pu},text:{[-5]:Ni,[-4]:Ni,[-3]:Ni,33:mg,38:ku,42:Vi,60:[yh,og],91:yg,92:[Jh,Pu],93:Di,95:Vi,96:Bh}},Symbol.toStringTag,{value:"Module"}));function Mg(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={},o=[];let s=[],u=[];const a={attempt:O(P),check:O(E),consume:A,enter:w,exit:S,interrupt:O(E,{interrupt:!0})},l={code:null,containerState:{},defineSkip:g,events:[],now:y,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d};let c=t.tokenize.call(l,a);return t.resolveAll&&o.push(t),l;function d(L){return s=qe(s,L),I(),s[s.length-1]!==null?[]:(B(t,0),l.events=Ti(o,l.events,l),l.events)}function f(L,R){return Xg(p(L),R)}function p(L){return Lg(s,L)}function y(){const{_bufferIndex:L,_index:R,line:te,column:se,offset:z}=r;return{_bufferIndex:L,_index:R,line:te,column:se,offset:z}}function g(L){i[L.line]=L.column,j()}function I(){let L;for(;r._index<s.length;){const R=s[r._index];if(typeof R=="string")for(L=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===L&&r._bufferIndex<R.length;)v(R.charCodeAt(r._bufferIndex));else v(R)}}function v(L){c=c(L)}function A(L){$(L)?(r.line++,r.column=1,r.offset+=L===-3?2:1,j()):L!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=L}function w(L,R){const te=R||{};return te.type=L,te.start=y(),l.events.push(["enter",te,l]),u.push(te),te}function S(L){const R=u.pop();return R.end=y(),l.events.push(["exit",R,l]),R}function P(L,R){B(L,R.from)}function E(L,R){R.restore()}function O(L,R){return te;function te(se,z,U){let Q,ce,ye,b;return Array.isArray(se)?le(se):"tokenize"in se?le([se]):xe(se);function xe(fe){return Pe;function Pe(M){const W=M!==null&&fe[M],q=M!==null&&fe.null,he=[...Array.isArray(W)?W:W?[W]:[],...Array.isArray(q)?q:q?[q]:[]];return le(he)(M)}}function le(fe){return Q=fe,ce=0,fe.length===0?U:m(fe[ce])}function m(fe){return Pe;function Pe(M){return b=D(),ye=fe,fe.partial||(l.currentConstruct=fe),fe.name&&l.parser.constructs.disable.null.includes(fe.name)?ne():fe.tokenize.call(R?Object.assign(Object.create(l),R):l,a,me,ne)(M)}}function me(fe){return L(ye,b),z}function ne(fe){return b.restore(),++ce<Q.length?m(Q[ce]):U}}}function B(L,R){L.resolveAll&&!o.includes(L)&&o.push(L),L.resolve&&ut(l.events,R,l.events.length-R,L.resolve(l.events.slice(R),l)),L.resolveTo&&(l.events=L.resolveTo(l.events,l))}function D(){const L=y(),R=l.previous,te=l.currentConstruct,se=l.events.length,z=Array.from(u);return{from:se,restore:U};function U(){r=L,l.previous=R,l.currentConstruct=te,l.events.length=se,u=z,j()}}function j(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Lg(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const u=s[0];typeof u=="string"?s[0]=u.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function Xg(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
6
+ `]))),Sd=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,s=o.colors,u=o.spacing.baseUnit;return Y({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?s.neutral60:s.neutral20,padding:u*2})},di=function(t){var n=t.delay,r=t.offset;return J.jsx("span",{css:J.css({animation:"".concat(Ad," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplL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IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},wd=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,s=st(t,hd);return J.jsx("div",_({},Se(Y(Y({},s),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),J.jsx(di,{delay:0,offset:r}),J.jsx(di,{delay:160,offset:!0}),J.jsx(di,{delay:320,offset:!r}))},Ed=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,s=o.colors,u=o.borderRadius,a=o.spacing;return Y({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?s.neutral5:s.neutral0,borderColor:r?s.neutral10:i?s.primary:s.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:i?s.primary:s.neutral30}})},Fd=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,s=t.innerProps,u=t.menuIsOpen;return J.jsx("div",_({ref:o},Se(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":u}),s,{"aria-disabled":r||void 0}),n)},Pd=Fd,kd=["data"],Gd=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},Bd=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,s=t.Heading,u=t.headingProps,a=t.innerProps,l=t.label,c=t.theme,d=t.selectProps;return J.jsx("div",_({},Se(t,"group",{group:!0}),a),J.jsx(s,_({},u,{selectProps:d,theme:c,getStyles:i,getClassNames:o,cx:r}),l),J.jsx("div",null,n))},Od=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return Y({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},Td=function(t){var n=ss(t);n.data;var r=st(n,kd);return J.jsx("div",_({},Se(t,"groupHeading",{"group-heading":!0}),r))},Vd=Bd,Rd=["innerRef","isDisabled","isHidden","inputClassName"],Dd=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,s=o.spacing,u=o.colors;return Y(Y({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},Nd),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:u.neutral80})},ys={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Nd={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Y({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ys)},Md=function(t){return Y({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ys)},Ld=function(t){var n=t.cx,r=t.value,i=ss(t),o=i.innerRef,s=i.isDisabled,u=i.isHidden,a=i.inputClassName,l=st(i,Rd);return J.jsx("div",_({},Se(t,"input",{"input-container":!0}),{"data-value":r||""}),J.jsx("input",_({className:n({input:!0},a),ref:o,style:Md(u),disabled:s},l)))},Xd=Ld,zd=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,s=r.colors;return Y({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},Hd=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,s=t.cropWithEllipsis;return Y({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Wd=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,s=r.colors,u=t.isFocused;return Y({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:u?s.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},Is=function(t){var n=t.children,r=t.innerProps;return J.jsx("div",r,n)},Zd=Is,jd=Is;function Jd(e){var t=e.children,n=e.innerProps;return J.jsx("div",_({role:"button"},n),t||J.jsx(ci,{size:14}))}var Yd=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,s=t.isDisabled,u=t.removeProps,a=t.selectProps,l=r.Container,c=r.Label,d=r.Remove;return J.jsx(l,{data:i,innerProps:Y(Y({},Se(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:a},J.jsx(c,{data:i,innerProps:Y({},Se(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},n),J.jsx(d,{data:i,innerProps:Y(Y({},Se(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},u),selectProps:a}))},_d=Yd,Ud=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.theme,u=s.spacing,a=s.colors;return Y({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?a.primary:i?a.primary25:"transparent",color:r?a.neutral20:o?a.neutral0:"inherit",padding:"".concat(u.baseUnit*2,"px ").concat(u.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?a.primary:a.primary50}})},Qd=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.innerRef,u=t.innerProps;return J.jsx("div",_({},Se(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:s,"aria-disabled":r},u),n)},qd=Qd,$d=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return Y({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Kd=function(t){var n=t.children,r=t.innerProps;return J.jsx("div",_({},Se(t,"placeholder",{placeholder:!0}),r),n)},ep=Kd,tp=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,s=i.colors;return Y({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?s.neutral40:s.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},np=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return J.jsx("div",_({},Se(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},rp=np,Tn={ClearIndicator:vd,Control:Pd,DropdownIndicator:yd,DownChevron:ms,CrossIcon:ci,Group:Vd,GroupHeading:Td,IndicatorsContainer:pd,IndicatorSeparator:xd,Input:Xd,LoadingIndicator:wd,Menu:$c,MenuList:ed,MenuPortal:sd,LoadingMessage:id,NoOptionsMessage:rd,MultiValue:_d,MultiValueContainer:Zd,MultiValueLabel:jd,MultiValueRemove:Jd,Option:qd,Placeholder:ep,SelectContainer:ad,SingleValue:rp,ValueContainer:cd},ip=function(t){return Y(Y({},Tn),t.components)},vs=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function op(e,t){return!!(e===t||vs(e)&&vs(t))}function sp(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!op(e[n],t[n]))return!1;return!0}function up(e,t){t===void 0&&(t=sp);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var s=e.apply(this,i);return n={lastResult:s,lastArgs:i,lastThis:this},s}return r.clear=function(){n=null},r}function ap(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var lp=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:ap},cp=function(t){return J.jsx("span",_({css:lp},t))},Cs=cp,dp={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,o=t.context,s=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return s?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,o=t.labels,s=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return s?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,s=o===void 0?"":o,u=t.selectValue,a=t.isDisabled,l=t.isSelected,c=t.isAppleDevice,d=function(g,I){return g&&g.length?"".concat(g.indexOf(I)+1," of ").concat(g.length):""};if(n==="value"&&u)return"value ".concat(s," focused, ").concat(d(u,r),".");if(n==="menu"&&c){var f=a?" disabled":"",p="".concat(l?" selected":"").concat(f);return"".concat(s).concat(p,", ").concat(d(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},pp=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,s=t.isFocused,u=t.selectValue,a=t.selectProps,l=t.id,c=t.isAppleDevice,d=a.ariaLiveMessages,f=a.getOptionLabel,p=a.inputValue,y=a.isMulti,g=a.isOptionDisabled,I=a.isSearchable,v=a.menuIsOpen,A=a.options,E=a.screenReaderStatus,S=a.tabSelectsValue,P=a.isLoading,w=a["aria-label"],O=a["aria-live"],B=G.useMemo(function(){return Y(Y({},dp),d||{})},[d]),D=G.useMemo(function(){var z="";if(n&&B.onChange){var U=n.option,Q=n.options,ce=n.removedValue,ye=n.removedValues,b=n.value,xe=function(M){return Array.isArray(M)?null:M},le=ce||U||xe(b),m=le?f(le):"",me=Q||ye||void 0,ne=me?me.map(f):[],fe=Y({isDisabled:le&&g(le,u),label:m,labels:ne},n);z=B.onChange(fe)}return z},[n,B,g,u,f]),j=G.useMemo(function(){var z="",U=r||i,Q=!!(r&&u&&u.includes(r));if(U&&B.onFocus){var ce={focused:U,label:f(U),isDisabled:g(U,u),isSelected:Q,options:o,context:U===r?"menu":"value",selectValue:u,isAppleDevice:c};z=B.onFocus(ce)}return z},[r,i,f,g,B,o,u,c]),L=G.useMemo(function(){var z="";if(v&&A.length&&!P&&B.onFilter){var U=E({count:o.length});z=B.onFilter({inputValue:p,resultsMessage:U})}return z},[o,p,v,B,A,E,P]),R=(n==null?void 0:n.action)==="initial-input-focus",te=G.useMemo(function(){var z="";if(B.guidance){var U=i?"value":v?"menu":"input";z=B.guidance({"aria-label":w,context:U,isDisabled:r&&g(r,u),isMulti:y,isSearchable:I,tabSelectsValue:S,isInitialFocus:R})}return z},[w,r,i,y,g,I,v,B,u,S,R]),se=J.jsx(G.Fragment,null,J.jsx("span",{id:"aria-selection"},D),J.jsx("span",{id:"aria-focused"},j),J.jsx("span",{id:"aria-results"},L),J.jsx("span",{id:"aria-guidance"},te));return J.jsx(G.Fragment,null,J.jsx(Cs,{id:l},R&&se),J.jsx(Cs,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!R&&se))},fp=pp,pi=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],hp=new RegExp("["+pi.map(function(e){return e.letters}).join("")+"]","g"),xs={},fi=0;fi<pi.length;fi++)for(var hi=pi[fi],gi=0;gi<hi.letters.length;gi++)xs[hi.letters[gi]]=hi.base;var As=function(t){return t.replace(hp,function(n){return xs[n]})},gp=up(As),Ss=function(t){return t.replace(/^\s+|\s+$/g,"")},mp=function(t){return"".concat(t.label," ").concat(t.value)},bp=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=Y({ignoreCase:!0,ignoreAccents:!0,stringify:mp,trim:!0,matchFrom:"any"},t),o=i.ignoreCase,s=i.ignoreAccents,u=i.stringify,a=i.trim,l=i.matchFrom,c=a?Ss(r):r,d=a?Ss(u(n)):u(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),s&&(c=gp(c),d=As(d)),l==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},yp=["innerRef"];function Ip(e){var t=e.innerRef,n=st(e,yp),r=Zc(n,"onExited","in","enter","exit","appear");return J.jsx("input",_({ref:t},r,{css:J.css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var vp=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Cp(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,s=G.useRef(!1),u=G.useRef(!1),a=G.useRef(0),l=G.useRef(null),c=G.useCallback(function(I,v){if(l.current!==null){var A=l.current,E=A.scrollTop,S=A.scrollHeight,P=A.clientHeight,w=l.current,O=v>0,B=S-P-E,D=!1;B>v&&s.current&&(r&&r(I),s.current=!1),O&&u.current&&(o&&o(I),u.current=!1),O&&v>B?(n&&!s.current&&n(I),w.scrollTop=S,D=!0,s.current=!0):!O&&-v>E&&(i&&!u.current&&i(I),w.scrollTop=0,D=!0,u.current=!0),D&&vp(I)}},[n,r,i,o]),d=G.useCallback(function(I){c(I,I.deltaY)},[c]),f=G.useCallback(function(I){a.current=I.changedTouches[0].clientY},[]),p=G.useCallback(function(I){var v=a.current-I.changedTouches[0].clientY;c(I,v)},[c]),y=G.useCallback(function(I){if(I){var v=zc?{passive:!1}:!1;I.addEventListener("wheel",d,v),I.addEventListener("touchstart",f,v),I.addEventListener("touchmove",p,v)}},[p,f,d]),g=G.useCallback(function(I){I&&(I.removeEventListener("wheel",d,!1),I.removeEventListener("touchstart",f,!1),I.removeEventListener("touchmove",p,!1))},[p,f,d]);return G.useEffect(function(){if(t){var I=l.current;return y(I),function(){g(I)}}},[t,y,g]),function(I){l.current=I}}var ws=["boxSizing","height","overflow","paddingRight","position"],Es={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Fs(e){e.cancelable&&e.preventDefault()}function Ps(e){e.stopPropagation()}function ks(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Gs(){return"ontouchstart"in window||navigator.maxTouchPoints}var Bs=!!(typeof window<"u"&&window.document&&window.document.createElement),Vn=0,sn={capture:!1,passive:!1};function xp(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=G.useRef({}),o=G.useRef(null),s=G.useCallback(function(a){if(Bs){var l=document.body,c=l&&l.style;if(r&&ws.forEach(function(y){var g=c&&c[y];i.current[y]=g}),r&&Vn<1){var d=parseInt(i.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys(Es).forEach(function(y){var g=Es[y];c&&(c[y]=g)}),c&&(c.paddingRight="".concat(p,"px"))}l&&Gs()&&(l.addEventListener("touchmove",Fs,sn),a&&(a.addEventListener("touchstart",ks,sn),a.addEventListener("touchmove",Ps,sn))),Vn+=1}},[r]),u=G.useCallback(function(a){if(Bs){var l=document.body,c=l&&l.style;Vn=Math.max(Vn-1,0),r&&Vn<1&&ws.forEach(function(d){var f=i.current[d];c&&(c[d]=f)}),l&&Gs()&&(l.removeEventListener("touchmove",Fs,sn),a&&(a.removeEventListener("touchstart",ks,sn),a.removeEventListener("touchmove",Ps,sn)))}},[r]);return G.useEffect(function(){if(t){var a=o.current;return s(a),function(){u(a)}}},[t,s,u]),function(a){o.current=a}}function Ap(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Sp=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},wp=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46ICh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ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:Ap};function Ep(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,s=e.onBottomLeave,u=e.onTopArrive,a=e.onTopLeave,l=Cp({isEnabled:i,onBottomArrive:o,onBottomLeave:s,onTopArrive:u,onTopLeave:a}),c=xp({isEnabled:n}),d=function(p){l(p),c(p)};return J.jsx(G.Fragment,null,n&&J.jsx("div",{onClick:Sp,css:wp}),t(d))}function Fp(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Pp=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:Fp},kp=function(t){var n=t.name,r=t.onFocus;return J.jsx("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Pp,value:"",onChange:function(){}})},Gp=kp;function mi(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Bp(){return mi(/^iPhone/i)}function Os(){return mi(/^Mac/i)}function Op(){return mi(/^iPad/i)||Os()&&navigator.maxTouchPoints>1}function Tp(){return Bp()||Op()}function Vp(){return Os()||Tp()}var Rp=function(t){return t.label},Ts=function(t){return t.label},Vs=function(t){return t.value},Dp=function(t){return!!t.isDisabled},Np={clearIndicator:Id,container:ud,control:Ed,dropdownIndicator:bd,group:Gd,groupHeading:Od,indicatorsContainer:dd,indicatorSeparator:Cd,input:Dd,loadingIndicator:Sd,loadingMessage:nd,menu:Uc,menuList:Kc,menuPortal:od,multiValue:zd,multiValueLabel:Hd,multiValueRemove:Wd,noOptionsMessage:td,option:Ud,placeholder:$d,singleValue:tp,valueContainer:ld};function Mp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Y({},e);return Object.keys(t).forEach(function(r){var i=r;e[i]?n[i]=function(o,s){return t[i](e[i](o,s),s)}:n[i]=t[i]}),n}var Lp={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Xp=4,Rs=4,zp=38,Hp=Rs*2,Wp={baseUnit:Rs,controlHeight:zp,menuGutter:Hp},Rn={borderRadius:Xp,colors:Lp,spacing:Wp},Zp={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ls(),captureMenuScroll:!ls(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:bp(),formatGroupLabel:Rp,getOptionLabel:Ts,getOptionValue:Vs,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Dp,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Lc(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Ds(e,t,n,r){var i=zs(e,t,n),o=Hs(e,t,n),s=Xs(e,t),u=mr(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:s,value:u,index:r}}function gr(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(s,u){return Ds(e,s,t,u)}).filter(function(s){return Ls(e,s)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=Ds(e,n,t,r);return Ls(e,o)?o:void 0}).filter(Hc)}function Ns(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,on(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Ms(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,on(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function jp(e,t){return Ns(gr(e,t))}function Ls(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,s=t.label,u=t.value;return(!Zs(e)||!o)&&Ws(e,{label:s,value:u,data:i},r)}function Jp(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i<t.length)return t[i]}return null}function Yp(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var bi=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},Xs=function(t,n){return t.getOptionLabel(n)},mr=function(t,n){return t.getOptionValue(n)};function zs(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Hs(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=mr(e,t);return n.some(function(i){return mr(e,i)===r})}function Ws(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Zs=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},_p=1,yi=function(e){dc(n,e);var t=hc(n);function n(r){var i;if(lc(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=Vp(),i.controlRef=null,i.getControlRef=function(a){i.controlRef=a},i.focusedOptionRef=null,i.getFocusedOptionRef=function(a){i.focusedOptionRef=a},i.menuListRef=null,i.getMenuListRef=function(a){i.menuListRef=a},i.inputRef=null,i.getInputRef=function(a){i.inputRef=a},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(a,l){var c=i.props,d=c.onChange,f=c.name;l.name=f,i.ariaOnChange(a,l),d(a,l)},i.setValue=function(a,l,c){var d=i.props,f=d.closeMenuOnSelect,p=d.isMulti,y=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:y}),f&&(i.setState({inputIsHiddenAfterUpdate:!p}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(a,{action:l,option:c})},i.selectOption=function(a){var l=i.props,c=l.blurInputOnSelect,d=l.isMulti,f=l.name,p=i.state.selectValue,y=d&&i.isOptionSelected(a,p),g=i.isOptionDisabled(a,p);if(y){var I=i.getOptionValue(a);i.setValue(p.filter(function(v){return i.getOptionValue(v)!==I}),"deselect-option",a)}else if(!g)d?i.setValue([].concat(on(p),[a]),"select-option",a):i.setValue(a,"select-option");else{i.ariaOnChange(a,{action:"select-option",option:a,name:f});return}c&&i.blurInput()},i.removeValue=function(a){var l=i.props.isMulti,c=i.state.selectValue,d=i.getOptionValue(a),f=c.filter(function(y){return i.getOptionValue(y)!==d}),p=On(l,f,f[0]||null);i.onChange(p,{action:"remove-value",removedValue:a}),i.focusInput()},i.clearValue=function(){var a=i.state.selectValue;i.onChange(On(i.props.isMulti,[],null),{action:"clear",removedValues:a})},i.popValue=function(){var a=i.props.isMulti,l=i.state.selectValue,c=l[l.length-1],d=l.slice(0,l.length-1),f=On(a,d,d[0]||null);c&&i.onChange(f,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(a){return bi(i.state.focusableOptionsWithIds,a)},i.getFocusableOptionsWithIds=function(){return Ms(gr(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return Vc.apply(void 0,[i.props.classNamePrefix].concat(l))},i.getOptionLabel=function(a){return Xs(i.props,a)},i.getOptionValue=function(a){return mr(i.props,a)},i.getStyles=function(a,l){var c=i.props.unstyled,d=Np[a](l,c);d.boxSizing="border-box";var f=i.props.styles[a];return f?f(d,l):d},i.getClassNames=function(a,l){var c,d;return(c=(d=i.props.classNames)[a])===null||c===void 0?void 0:c.call(d,l)},i.getElementId=function(a){return"".concat(i.state.instancePrefix,"-").concat(a)},i.getComponents=function(){return ip(i.props)},i.buildCategorizedOptions=function(){return gr(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return Ns(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(a,l){i.setState({ariaSelection:Y({value:a},l)})},i.onMenuMouseDown=function(a){a.button===0&&(a.stopPropagation(),a.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(a){i.blockOptionHover=!1},i.onControlMouseDown=function(a){if(!a.defaultPrevented){var l=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&i.onMenuClose():l&&i.openMenu("first"):(l&&(i.openAfterFocus=!0),i.focusInput()),a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.preventDefault()}},i.onDropdownIndicatorMouseDown=function(a){if(!(a&&a.type==="mousedown"&&a.button!==0)&&!i.props.isDisabled){var l=i.props,c=l.isMulti,d=l.menuIsOpen;i.focusInput(),d?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),a.preventDefault()}},i.onClearIndicatorMouseDown=function(a){a&&a.type==="mousedown"&&a.button!==0||(i.clearValue(),a.preventDefault(),i.openAfterFocus=!1,a.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(a){typeof i.props.closeMenuOnScroll=="boolean"?a.target instanceof HTMLElement&&dr(a.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(a)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(a){var l=a.touches,c=l&&l.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(a){var l=a.touches,c=l&&l.item(0);if(c){var d=Math.abs(c.clientX-i.initialTouchX),f=Math.abs(c.clientY-i.initialTouchY),p=5;i.userIsDragging=d>p||f>p}},i.onTouchEnd=function(a){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(a.target)&&i.menuListRef&&!i.menuListRef.contains(a.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(a){i.userIsDragging||i.onControlMouseDown(a)},i.onClearIndicatorTouchEnd=function(a){i.userIsDragging||i.onClearIndicatorMouseDown(a)},i.onDropdownIndicatorTouchEnd=function(a){i.userIsDragging||i.onDropdownIndicatorMouseDown(a)},i.handleInputChange=function(a){var l=i.props.inputValue,c=a.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:l}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(a){i.props.onFocus&&i.props.onFocus(a),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(a){var l=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(a),i.onInputChange("",{action:"input-blur",prevInputValue:l}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(a){if(!(i.blockOptionHover||i.state.focusedOption===a)){var l=i.getFocusableOptions(),c=l.indexOf(a);i.setState({focusedOption:a,focusedOptionId:c>-1?i.getFocusedOptionId(a):null})}},i.shouldHideSelectedOptions=function(){return Zs(i.props)},i.onValueInputFocus=function(a){a.preventDefault(),a.stopPropagation(),i.focus()},i.onKeyDown=function(a){var l=i.props,c=l.isMulti,d=l.backspaceRemovesValue,f=l.escapeClearsValue,p=l.inputValue,y=l.isClearable,g=l.isDisabled,I=l.menuIsOpen,v=l.onKeyDown,A=l.tabSelectsValue,E=l.openMenuOnFocus,S=i.state,P=S.focusedOption,w=S.focusedValue,O=S.selectValue;if(!g&&!(typeof v=="function"&&(v(a),a.defaultPrevented))){switch(i.blockOptionHover=!0,a.key){case"ArrowLeft":if(!c||p)return;i.focusValue("previous");break;case"ArrowRight":if(!c||p)return;i.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(w)i.removeValue(w);else{if(!d)return;c?i.popValue():y&&i.clearValue()}break;case"Tab":if(i.isComposing||a.shiftKey||!I||!A||!P||E&&i.isOptionSelected(P,O))return;i.selectOption(P);break;case"Enter":if(a.keyCode===229)break;if(I){if(!P||i.isComposing)return;i.selectOption(P);break}return;case"Escape":I?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:p}),i.onMenuClose()):y&&f&&i.clearValue();break;case" ":if(p)return;if(!I){i.openMenu("first");break}if(!P)return;i.selectOption(P);break;case"ArrowUp":I?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":I?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!I)return;i.focusOption("pageup");break;case"PageDown":if(!I)return;i.focusOption("pagedown");break;case"Home":if(!I)return;i.focusOption("first");break;case"End":if(!I)return;i.focusOption("last");break;default:return}a.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++_p),i.state.selectValue=cr(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),s=i.buildFocusableOptions(),u=s.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=s[u],i.state.focusedOptionId=bi(o,s[u])}return i}return cc(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&as(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,s=o.isDisabled,u=o.menuIsOpen,a=this.state.isFocused;(a&&!s&&i.isDisabled||a&&u&&!i.menuIsOpen)&&this.focusInput(),a&&s&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!a&&!s&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(as(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,s=this.state,u=s.selectValue,a=s.isFocused,l=this.buildFocusableOptions(),c=i==="first"?0:l.length-1;if(!this.props.isMulti){var d=l.indexOf(u[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[c],focusedOptionId:this.getFocusedOptionId(l[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,s=o.selectValue,u=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=s.indexOf(u);u||(a=-1);var l=s.length-1,c=-1;if(s.length){switch(i){case"previous":a===0?c=0:a===-1?c=l:c=a-1;break;case"next":a>-1&&a<l&&(c=a+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:s[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,s=this.state.focusedOption,u=this.getFocusableOptions();if(u.length){var a=0,l=u.indexOf(s);s||(l=-1),i==="up"?a=l>0?l-1:u.length-1:i==="down"?a=(l+1)%u.length:i==="pageup"?(a=l-o,a<0&&(a=0)):i==="pagedown"?(a=l+o,a>u.length-1&&(a=u.length-1)):i==="last"&&(a=u.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:u[a],focusedValue:null,focusedOptionId:this.getFocusedOptionId(u[a])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Rn):Y(Y({},Rn),this.props.theme):Rn}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,s=this.getStyles,u=this.getClassNames,a=this.getValue,l=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,p=d.isRtl,y=d.options,g=this.hasValue();return{clearValue:i,cx:o,getStyles:s,getClassNames:u,getValue:a,hasValue:g,isMulti:f,isRtl:p,options:y,selectOption:l,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,s=i.isMulti;return o===void 0?s:o}},{key:"isOptionDisabled",value:function(i,o){return zs(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return Hs(this.props,i,o)}},{key:"filterOption",value:function(i,o){return Ws(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,u=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:s,selectValue:u})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,s=i.isSearchable,u=i.inputId,a=i.inputValue,l=i.tabIndex,c=i.form,d=i.menuIsOpen,f=i.required,p=this.getComponents(),y=p.Input,g=this.state,I=g.inputIsHidden,v=g.ariaSelection,A=this.commonProps,E=u||this.getElementId("input"),S=Y(Y(Y({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(v==null?void 0:v.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?re.createElement(y,_({},A,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:E,innerRef:this.getInputRef,isDisabled:o,isHidden:I,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:c,type:"text",value:a},S)):re.createElement(Ip,_({id:E,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:lr,onFocus:this.onInputFocus,disabled:o,tabIndex:l,inputMode:"none",form:c,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),s=o.MultiValue,u=o.MultiValueContainer,a=o.MultiValueLabel,l=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,f=this.commonProps,p=this.props,y=p.controlShouldRenderValue,g=p.isDisabled,I=p.isMulti,v=p.inputValue,A=p.placeholder,E=this.state,S=E.selectValue,P=E.focusedValue,w=E.isFocused;if(!this.hasValue()||!y)return v?null:re.createElement(d,_({},f,{key:"placeholder",isDisabled:g,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),A);if(I)return S.map(function(B,D){var j=B===P,L="".concat(i.getOptionLabel(B),"-").concat(i.getOptionValue(B));return re.createElement(s,_({},f,{components:{Container:u,Label:a,Remove:l},isFocused:j,isDisabled:g,key:L,index:D,removeProps:{onClick:function(){return i.removeValue(B)},onTouchEnd:function(){return i.removeValue(B)},onMouseDown:function(te){te.preventDefault()}},data:B}),i.formatOptionLabel(B,"value"))});if(v)return null;var O=S[0];return re.createElement(c,_({},f,{data:O,isDisabled:g}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,s=this.commonProps,u=this.props,a=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||a||!this.hasValue()||l)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return re.createElement(o,_({},s,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,s=this.commonProps,u=this.props,a=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!o||!l)return null;var d={"aria-hidden":"true"};return re.createElement(o,_({},s,{innerProps:d,isDisabled:a,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,s=i.IndicatorSeparator;if(!o||!s)return null;var u=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused;return re.createElement(s,_({},u,{isDisabled:a,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var s=this.commonProps,u=this.props.isDisabled,a=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return re.createElement(o,_({},s,{innerProps:l,isDisabled:u,isFocused:a}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),s=o.Group,u=o.GroupHeading,a=o.Menu,l=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,p=o.Option,y=this.commonProps,g=this.state.focusedOption,I=this.props,v=I.captureMenuScroll,A=I.inputValue,E=I.isLoading,S=I.loadingMessage,P=I.minMenuHeight,w=I.maxMenuHeight,O=I.menuIsOpen,B=I.menuPlacement,D=I.menuPosition,j=I.menuPortalTarget,L=I.menuShouldBlockScroll,R=I.menuShouldScrollIntoView,te=I.noOptionsMessage,se=I.onMenuScrollToTop,z=I.onMenuScrollToBottom;if(!O)return null;var U=function(m,me){var ne=m.type,fe=m.data,Pe=m.isDisabled,M=m.isSelected,W=m.label,q=m.value,he=g===fe,ke=Pe?void 0:function(){return i.onOptionHover(fe)},Ye=Pe?void 0:function(){return i.selectOption(fe)},Qt="".concat(i.getElementId("option"),"-").concat(me),wn={id:Qt,onClick:Ye,onMouseMove:ke,onMouseOver:ke,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:M};return re.createElement(p,_({},y,{innerProps:wn,data:fe,isDisabled:Pe,isSelected:M,key:Qt,label:W,type:ne,value:q,isFocused:he,innerRef:he?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(m.data,"menu"))},Q;if(this.hasOptions())Q=this.getCategorizedOptions().map(function(le){if(le.type==="group"){var m=le.data,me=le.options,ne=le.index,fe="".concat(i.getElementId("group"),"-").concat(ne),Pe="".concat(fe,"-heading");return re.createElement(s,_({},y,{key:fe,data:m,options:me,Heading:u,headingProps:{id:Pe,data:le.data},label:i.formatGroupLabel(le.data)}),le.options.map(function(M){return U(M,"".concat(ne,"-").concat(M.index))}))}else if(le.type==="option")return U(le,"".concat(le.index))});else if(E){var ce=S({inputValue:A});if(ce===null)return null;Q=re.createElement(d,y,ce)}else{var ye=te({inputValue:A});if(ye===null)return null;Q=re.createElement(f,y,ye)}var b={minMenuHeight:P,maxMenuHeight:w,menuPlacement:B,menuPosition:D,menuShouldScrollIntoView:R},xe=re.createElement(Qc,_({},y,b),function(le){var m=le.ref,me=le.placerProps,ne=me.placement,fe=me.maxHeight;return re.createElement(a,_({},y,b,{innerRef:m,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:E,placement:ne}),re.createElement(Ep,{captureEnabled:v,onTopArrive:se,onBottomArrive:z,lockEnabled:L},function(Pe){return re.createElement(l,_({},y,{innerRef:function(W){i.getMenuListRef(W),Pe(W)},innerProps:{role:"listbox","aria-multiselectable":y.isMulti,id:i.getElementId("listbox")},isLoading:E,maxHeight:fe,focusedOption:g}),Q)}))});return j||D==="fixed"?re.createElement(c,_({},y,{appendTo:j,controlElement:this.controlRef,menuPlacement:B,menuPosition:D}),xe):xe}},{key:"renderFormField",value:function(){var i=this,o=this.props,s=o.delimiter,u=o.isDisabled,a=o.isMulti,l=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!u)return re.createElement(Gp,{name:l,onFocus:this.onValueInputFocus});if(!(!l||u))if(a)if(s){var f=d.map(function(g){return i.getOptionValue(g)}).join(s);return re.createElement("input",{name:l,type:"hidden",value:f})}else{var p=d.length>0?d.map(function(g,I){return re.createElement("input",{key:"i-".concat(I),name:l,type:"hidden",value:i.getOptionValue(g)})}):re.createElement("input",{name:l,type:"hidden",value:""});return re.createElement("div",null,p)}else{var y=d[0]?this.getOptionValue(d[0]):"";return re.createElement("input",{name:l,type:"hidden",value:y})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,s=o.ariaSelection,u=o.focusedOption,a=o.focusedValue,l=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return re.createElement(fp,_({},i,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:u,focusedValue:a,isFocused:l,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,s=i.IndicatorsContainer,u=i.SelectContainer,a=i.ValueContainer,l=this.props,c=l.className,d=l.id,f=l.isDisabled,p=l.menuIsOpen,y=this.state.isFocused,g=this.commonProps=this.getCommonProps();return re.createElement(u,_({},g,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:y}),this.renderLiveRegion(),re.createElement(o,_({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:y,menuIsOpen:p}),re.createElement(a,_({},g,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),re.createElement(s,_({},g,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var s=o.prevProps,u=o.clearFocusValueOnUpdate,a=o.inputIsHiddenAfterUpdate,l=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,p=i.options,y=i.value,g=i.menuIsOpen,I=i.inputValue,v=i.isMulti,A=cr(y),E={};if(s&&(y!==s.value||p!==s.options||g!==s.menuIsOpen||I!==s.inputValue)){var S=g?jp(i,A):[],P=g?Ms(gr(i,A),"".concat(f,"-option")):[],w=u?Jp(o,A):null,O=Yp(o,S),B=bi(P,O);E={selectValue:A,focusedOption:O,focusedOptionId:B,focusableOptionsWithIds:P,focusedValue:w,clearFocusValueOnUpdate:!1}}var D=a!=null&&i!==s?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},j=l,L=c&&d;return c&&!L&&(j={value:On(v,A,A[0]||null),options:A,action:"initial-input-focus"},L=!d),(l==null?void 0:l.action)==="initial-input-focus"&&(j=null),Y(Y(Y({},E),D),{},{prevProps:i,ariaSelection:j,prevWasFocused:L})}}]),n}(G.Component);yi.defaultProps=Zp;var Up=G.forwardRef(function(e,t){var n=Uo(e);return re.createElement(yi,_({ref:t},n))}),br=Up;const Qp=Rn,yr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},boxShadow:{button:"rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px",card:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",dropdown:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",input:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},spacing:{baseUnit:4,controlHeight:32,menuGutter:8}},js={colors:{},spacing:{baseUnit:4,controlHeight:32,menuGutter:8},boxShadow:{button:"none",input:"none",card:"none",dropdown:"none"}};function Js(e){if(!e)return Rn;const t=typeof e=="function"?e(yr):e,{colors:n,spacing:r,borderRadius:i}=Ir(Qp,t);return{borderRadius:i,colors:n,spacing:r}}function Ir(e,...t){const n={borderRadius:e.borderRadius,colors:{...e.colors},spacing:{...e.spacing},boxShadow:{...e.boxShadow}};for(const r of t)r&&(n.borderRadius=r.borderRadius??n.borderRadius,Object.assign(n.boxShadow,r.boxShadow),Object.assign(n.colors,r.colors),Object.assign(n.spacing,r.spacing));return n}function Ey(){}function Fy(){}function qp(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const $p=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Kp=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ef={};function Ys(e,t){return(ef.jsx?Kp:$p).test(e)}const tf=/[ \t\n\f\r]/g;function nf(e){return typeof e=="object"?e.type==="text"?_s(e.value):!1:_s(e)}function _s(e){return e.replace(tf,"")===""}class Dn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Dn.prototype.property={},Dn.prototype.normal={},Dn.prototype.space=null;function Us(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Dn(n,r,t)}function Ii(e){return e.toLowerCase()}class Qe{constructor(t,n){this.property=t,this.attribute=n}}Qe.prototype.space=null,Qe.prototype.boolean=!1,Qe.prototype.booleanish=!1,Qe.prototype.overloadedBoolean=!1,Qe.prototype.number=!1,Qe.prototype.commaSeparated=!1,Qe.prototype.spaceSeparated=!1,Qe.prototype.commaOrSpaceSeparated=!1,Qe.prototype.mustUseProperty=!1,Qe.prototype.defined=!1;let rf=0;const ie=Xt(),Fe=Xt(),Qs=Xt(),V=Xt(),Ie=Xt(),un=Xt(),Ze=Xt();function Xt(){return 2**++rf}const vi=Object.freeze(Object.defineProperty({__proto__:null,boolean:ie,booleanish:Fe,commaOrSpaceSeparated:Ze,commaSeparated:un,number:V,overloadedBoolean:Qs,spaceSeparated:Ie},Symbol.toStringTag,{value:"Module"})),Ci=Object.keys(vi);class xi extends Qe{constructor(t,n,r,i){let o=-1;if(super(t,n),qs(this,"space",i),typeof r=="number")for(;++o<Ci.length;){const s=Ci[o];qs(this,Ci[o],(r&vi[s])===vi[s])}}}xi.prototype.defined=!0;function qs(e,t,n){n&&(e[t]=n)}const of={}.hasOwnProperty;function an(e){const t={},n={};let r;for(r in e.properties)if(of.call(e.properties,r)){const i=e.properties[r],o=new xi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Ii(r)]=r,n[Ii(o.attribute)]=r}return new Dn(t,n,e.space)}const $s=an({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Ks=an({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function eu(e,t){return t in e?e[t]:t}function tu(e,t){return eu(e,t.toLowerCase())}const nu=an({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:tu,properties:{xmlns:null,xmlnsXLink:null}}),ru=an({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Fe,ariaAutoComplete:null,ariaBusy:Fe,ariaChecked:Fe,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:Ie,ariaCurrent:null,ariaDescribedBy:Ie,ariaDetails:null,ariaDisabled:Fe,ariaDropEffect:Ie,ariaErrorMessage:null,ariaExpanded:Fe,ariaFlowTo:Ie,ariaGrabbed:Fe,ariaHasPopup:null,ariaHidden:Fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ie,ariaLevel:V,ariaLive:null,ariaModal:Fe,ariaMultiLine:Fe,ariaMultiSelectable:Fe,ariaOrientation:null,ariaOwns:Ie,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:Fe,ariaReadOnly:Fe,ariaRelevant:null,ariaRequired:Fe,ariaRoleDescription:Ie,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:Fe,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null}}),sf=an({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:tu,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:un,acceptCharset:Ie,accessKey:Ie,action:null,allow:null,allowFullScreen:ie,allowPaymentRequest:ie,allowUserMedia:ie,alt:null,as:null,async:ie,autoCapitalize:null,autoComplete:Ie,autoFocus:ie,autoPlay:ie,blocking:Ie,capture:null,charSet:null,checked:ie,cite:null,className:Ie,cols:V,colSpan:null,content:null,contentEditable:Fe,controls:ie,controlsList:Ie,coords:V|un,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ie,defer:ie,dir:null,dirName:null,disabled:ie,download:Qs,draggable:Fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ie,formTarget:null,headers:Ie,height:V,hidden:ie,high:V,href:null,hrefLang:null,htmlFor:Ie,httpEquiv:Ie,id:null,imageSizes:null,imageSrcSet:null,inert:ie,inputMode:null,integrity:null,is:null,isMap:ie,itemId:null,itemProp:Ie,itemRef:Ie,itemScope:ie,itemType:Ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ie,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:ie,muted:ie,name:null,nonce:null,noModule:ie,noValidate:ie,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ie,optimum:V,pattern:null,ping:Ie,placeholder:null,playsInline:ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ie,referrerPolicy:null,rel:Ie,required:ie,reversed:ie,rows:V,rowSpan:V,sandbox:Ie,scope:null,scoped:ie,seamless:ie,selected:ie,shadowRootClonable:ie,shadowRootDelegatesFocus:ie,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:Fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:ie,useMap:null,value:Fe,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ie,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ie,declare:ie,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:ie,noHref:ie,noShade:ie,noWrap:ie,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:Fe,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ie,disableRemotePlayback:ie,prefix:null,property:null,results:V,security:null,unselectable:null}}),uf=an({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:eu,properties:{about:Ze,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:Ie,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:un,g2:un,glyphName:un,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:Ze,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:V,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ze,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ze,rev:Ze,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ze,requiredFeatures:Ze,requiredFonts:Ze,requiredFormats:Ze,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:Ze,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ze,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ze,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),af=/^data[-\w.:]+$/i,iu=/-[a-z]/g,lf=/[A-Z]/g;function cf(e,t){const n=Ii(t);let r=t,i=Qe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&af.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(iu,pf);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!iu.test(o)){let s=o.replace(lf,df);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=xi}return new i(r,t)}function df(e){return"-"+e.toLowerCase()}function pf(e){return e.charAt(1).toUpperCase()}const ff={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},hf=Us([Ks,$s,nu,ru,sf],"html"),Ai=Us([Ks,$s,nu,ru,uf],"svg");function gf(e){return e.join(" ").trim()}var ou={},su=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,mf=/\n/g,bf=/^\s*/,yf=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,If=/^:\s*/,vf=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Cf=/^[;\s]*/,xf=/^\s+|\s+$/g,Af=`
7
+ `,uu="/",au="*",zt="",Sf="comment",wf="declaration",Ef=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(y){var g=y.match(mf);g&&(n+=g.length);var I=y.lastIndexOf(Af);r=~I?y.length-I:r+y.length}function o(){var y={line:n,column:r};return function(g){return g.position=new s(y),l(),g}}function s(y){this.start=y,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function u(y){var g=new Error(t.source+":"+n+":"+r+": "+y);if(g.reason=y,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function a(y){var g=y.exec(e);if(g){var I=g[0];return i(I),e=e.slice(I.length),g}}function l(){a(bf)}function c(y){var g;for(y=y||[];g=d();)g!==!1&&y.push(g);return y}function d(){var y=o();if(!(uu!=e.charAt(0)||au!=e.charAt(1))){for(var g=2;zt!=e.charAt(g)&&(au!=e.charAt(g)||uu!=e.charAt(g+1));)++g;if(g+=2,zt===e.charAt(g-1))return u("End of comment missing");var I=e.slice(2,g-2);return r+=2,i(I),e=e.slice(g),r+=2,y({type:Sf,comment:I})}}function f(){var y=o(),g=a(yf);if(g){if(d(),!a(If))return u("property missing ':'");var I=a(vf),v=y({type:wf,property:lu(g[0].replace(su,zt)),value:I?lu(I[0].replace(su,zt)):zt});return a(Cf),v}}function p(){var y=[];c(y);for(var g;g=f();)g!==!1&&(y.push(g),c(y));return y}return l(),p()};function lu(e){return e?e.replace(xf,zt):zt}var Ff=nn&&nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ou,"__esModule",{value:!0});var cu=ou.default=kf,Pf=Ff(Ef);function kf(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Pf.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var s=o.property,u=o.value;i?t(s,u,o):u&&(n=n||{},n[s]=u)}}),n}const Gf=cu.default||cu,du=pu("end"),Si=pu("start");function pu(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Bf(e){const t=Si(e),n=du(e);if(t&&n)return{start:t,end:n}}function Nn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?fu(e.position):"start"in e||"end"in e?fu(e):"line"in e||"column"in e?wi(e):""}function wi(e){return hu(e&&e.line)+":"+hu(e&&e.column)}function fu(e){return wi(e&&e.start)+"-"+wi(e&&e.end)}function hu(e){return e&&typeof e=="number"?e:1}class Te extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?o.ruleId=r:(o.source=r.slice(0,a),o.ruleId=r.slice(a+1))}if(!o.place&&o.ancestors&&o.ancestors){const a=o.ancestors[o.ancestors.length-1];a&&(o.place=a.position)}const u=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=u?u.line:void 0,this.name=Nn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Te.prototype.file="",Te.prototype.name="",Te.prototype.reason="",Te.prototype.message="",Te.prototype.stack="",Te.prototype.column=void 0,Te.prototype.line=void 0,Te.prototype.ancestors=void 0,Te.prototype.cause=void 0,Te.prototype.fatal=void 0,Te.prototype.place=void 0,Te.prototype.ruleId=void 0,Te.prototype.source=void 0;const Ei={}.hasOwnProperty,Of=new Map,Tf=/[A-Z]/g,Vf=/-([a-z])/g,Rf=new Set(["table","tbody","thead","tfoot","tr"]),Df=new Set(["td","th"]),gu="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Nf(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=jf(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Zf(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Ai:hf,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=mu(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function mu(e,t,n){if(t.type==="element")return Mf(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Lf(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return zf(e,t,n);if(t.type==="mdxjsEsm")return Xf(e,t);if(t.type==="root")return Hf(e,t,n);if(t.type==="text")return Wf(e,t)}function Mf(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ai,e.schema=i),e.ancestors.push(t);const o=yu(e,t.tagName,!1),s=Jf(e,t);let u=Pi(e,t);return Rf.has(t.tagName)&&(u=u.filter(function(a){return typeof a=="string"?!nf(a):!0})),bu(e,s,o,t),Fi(s,u),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function Lf(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Mn(e,t.position)}function Xf(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Mn(e,t.position)}function zf(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Ai,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:yu(e,t.name,!0),s=Yf(e,t),u=Pi(e,t);return bu(e,s,o,t),Fi(s,u),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function Hf(e,t,n){const r={};return Fi(r,Pi(e,t)),e.create(t,e.Fragment,r,n)}function Wf(e,t){return t.value}function bu(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Fi(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Zf(e,t,n){return r;function r(i,o,s,u){const l=Array.isArray(s.children)?n:t;return u?l(o,s,u):l(o,s)}}function jf(e,t){return n;function n(r,i,o,s){const u=Array.isArray(o.children),a=Si(r);return t(i,o,s,u,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function Jf(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Ei.call(t.properties,i)){const o=_f(e,i,t.properties[i]);if(o){const[s,u]=o;e.tableCellAlignToStyle&&s==="align"&&typeof u=="string"&&Df.has(t.tagName)?r=u:n[s]=u}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Yf(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const s=o.expression;s.type;const u=s.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Mn(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,o=e.evaluater.evaluateExpression(u.expression)}else Mn(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Pi(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Of;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const a=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(a){const l=i.get(a)||0;s=a+"-"+l,i.set(a,l+1)}}const u=mu(e,o,s);u!==void 0&&n.push(u)}return n}function _f(e,t,n){const r=cf(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?qp(n):gf(n)),r.property==="style"){let i=typeof n=="object"?n:Uf(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Qf(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ff[r.property]||r.property:r.attribute,n]}}function Uf(e,t){const n={};try{Gf(t,r)}catch(i){if(!e.ignoreInvalidStyle){const o=i,s=new Te("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=gu+"#cannot-parse-style-attribute",s}}return n;function r(i,o){let s=i;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(Vf,$f)),n[s]=o}}function yu(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,s;for(;++o<i.length;){const u=Ys(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:u,computed:!!(o&&u.type==="Literal"),optional:!1}:u}r=s}else r=Ys(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Ei.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Mn(e)}function Mn(e,t){const n=new Te("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=gu+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Qf(e){const t={};let n;for(n in e)Ei.call(e,n)&&(t[qf(n)]=e[n]);return t}function qf(e){let t=e.replace(Tf,Kf);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function $f(e,t){return t.toUpperCase()}function Kf(e){return"-"+e.toLowerCase()}const ki={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},eh={};function th(e,t){const n=eh,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Iu(e,r,i)}function Iu(e,t,n){if(nh(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 vu(e.children,t,n)}return Array.isArray(e)?vu(e,t,n):""}function vu(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Iu(e[i],t,n);return r.join("")}function nh(e){return!!(e&&typeof e=="object")}const Cu=document.createElement("i");function Gi(e){const t="&"+e+";";Cu.innerHTML=t;const n=Cu.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ut(e,t,n,r){const i=e.length;let o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function qe(e,t){return e.length>0?(ut(e,e.length,0,t),e):t}const xu={}.hasOwnProperty;function rh(e){const t={};let n=-1;for(;++n<e.length;)ih(t,e[n]);return t}function ih(e,t){let n;for(n in t){const i=(xu.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){xu.call(i,s)||(i[s]=[]);const u=o[s];oh(i[s],Array.isArray(u)?u:u?[u]:[])}}}function oh(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 Au(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)}function ln(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const at=At(/[A-Za-z]/),je=At(/[\dA-Za-z]/),sh=At(/[#-'*+\--9=?A-Z^-~]/);function Bi(e){return e!==null&&(e<32||e===127)}const Oi=At(/\d/),uh=At(/[\dA-Fa-f]/),ah=At(/[!-/:-@[-`{-~]/);function $(e){return e!==null&&e<-2}function Le(e){return e!==null&&(e<0||e===32)}function ge(e){return e===-2||e===-1||e===32}const lh=At(new RegExp("\\p{P}|\\p{S}","u")),ch=At(/\s/);function At(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function cn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&je(e.charCodeAt(n+1))&&je(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const u=e.charCodeAt(n+1);o<56320&&u>56319&&u<57344?(s=String.fromCharCode(o,u),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ve(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(a){return ge(a)?(e.enter(n),u(a)):t(a)}function u(a){return ge(a)&&o++<i?(e.consume(a),u):(e.exit(n),t(a))}}const dh={tokenize:ph};function ph(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ve(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),o(u)}function o(u){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,s(u)}function s(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return $(u)?(e.consume(u),e.exit("chunkText"),o):(e.consume(u),s)}}const fh={tokenize:hh},Su={tokenize:gh};function hh(e){const t=this,n=[];let r=0,i,o,s;return u;function u(E){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,a,l)(E)}return l(E)}function a(E){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&A();const S=t.events.length;let P=S,w;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){w=t.events[P][1].end;break}v(r);let O=S;for(;O<t.events.length;)t.events[O][1].end={...w},O++;return ut(t.events,P+1,0,t.events.slice(S)),t.events.length=O,l(E)}return u(E)}function l(E){if(r===n.length){if(!i)return f(E);if(i.currentConstruct&&i.currentConstruct.concrete)return y(E);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Su,c,d)(E)}function c(E){return i&&A(),v(r),f(E)}function d(E){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,y(E)}function f(E){return t.containerState={},e.attempt(Su,p,y)(E)}function p(E){return r++,n.push([t.currentConstruct,t.containerState]),f(E)}function y(E){if(E===null){i&&A(),v(0),e.consume(E);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),g(E)}function g(E){if(E===null){I(e.exit("chunkFlow"),!0),v(0),e.consume(E);return}return $(E)?(e.consume(E),I(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(E),g)}function I(E,S){const P=t.sliceStream(E);if(S&&P.push(null),E.previous=o,o&&(o.next=E),o=E,i.defineSkip(E.start),i.write(P),t.parser.lazy[E.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<s&&(!i.events[w][1].end||i.events[w][1].end.offset>s))return;const O=t.events.length;let B=O,D,j;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(D){j=t.events[B][1].end;break}D=!0}for(v(r),w=O;w<t.events.length;)t.events[w][1].end={...j},w++;ut(t.events,B+1,0,t.events.slice(O)),t.events.length=w}}function v(E){let S=n.length;for(;S-- >E;){const P=n[S];t.containerState=P[1],P[0].exit.call(t,e)}n.length=E}function A(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function gh(e,t,n){return ve(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function wu(e){if(e===null||Le(e)||ch(e))return 1;if(lh(e))return 2}function Ti(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Vi={name:"attention",resolveAll:mh,tokenize:bh};function mh(e,t){let n=-1,r,i,o,s,u,a,l,c;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;a=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 d={...e[r][1].end},f={...e[n][1].start};Eu(d,-a),Eu(f,a),s={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},u={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?"strong":"emphasis",start:{...s.start},end:{...u.end}},e[r][1].end={...s.start},e[n][1].start={...u.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=qe(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=qe(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),l=qe(l,Ti(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=qe(l,[["exit",o,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=qe(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,ut(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function bh(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=wu(r);let o;return s;function s(a){return o=a,e.enter("attentionSequence"),u(a)}function u(a){if(a===o)return e.consume(a),u;const l=e.exit("attentionSequence"),c=wu(a),d=!c||c===2&&i||n.includes(a),f=!i||i===2&&c||n.includes(r);return l._open=!!(o===42?d:d&&(i||!f)),l._close=!!(o===42?f:f&&(c||!d)),t(a)}}function Eu(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const yh={name:"autolink",tokenize:Ih};function Ih(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return at(p)?(e.consume(p),s):p===64?n(p):l(p)}function s(p){return p===43||p===45||p===46||je(p)?(r=1,u(p)):l(p)}function u(p){return p===58?(e.consume(p),r=0,a):(p===43||p===45||p===46||je(p))&&r++<32?(e.consume(p),u):(r=0,l(p))}function a(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Bi(p)?n(p):(e.consume(p),a)}function l(p){return p===64?(e.consume(p),c):sh(p)?(e.consume(p),l):n(p)}function c(p){return je(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||je(p))&&r++<63){const y=p===45?f:d;return e.consume(p),y}return n(p)}}const vr={partial:!0,tokenize:vh};function vh(e,t,n){return r;function r(o){return ge(o)?ve(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||$(o)?t(o):n(o)}}const Fu={continuation:{tokenize:xh},exit:Ah,name:"blockQuote",tokenize:Ch};function Ch(e,t,n){const r=this;return i;function i(s){if(s===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return ge(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function xh(e,t,n){const r=this;return i;function i(s){return ge(s)?ve(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(Fu,t,n)(s)}}function Ah(e){e.exit("blockQuote")}const Pu={name:"characterEscape",tokenize:Sh};function Sh(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return ah(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const ku={name:"characterReference",tokenize:wh};function wh(e,t,n){const r=this;let i=0,o,s;return u;function u(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),a}function a(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,s=je,c(d))}function l(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=uh,c):(e.enter("characterReferenceValue"),o=7,s=Oi,c(d))}function c(d){if(d===59&&i){const f=e.exit("characterReferenceValue");return s===je&&!Gi(r.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<o?(e.consume(d),c):n(d)}}const Gu={partial:!0,tokenize:Fh},Bu={concrete:!0,name:"codeFenced",tokenize:Eh};function Eh(e,t,n){const r=this,i={partial:!0,tokenize:P};let o=0,s=0,u;return a;function a(w){return l(w)}function l(w){const O=r.events[r.events.length-1];return o=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,u=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(w)}function c(w){return w===u?(s++,e.consume(w),c):s<3?n(w):(e.exit("codeFencedFenceSequence"),ge(w)?ve(e,d,"whitespace")(w):d(w))}function d(w){return w===null||$(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(Gu,g,S)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(w))}function f(w){return w===null||$(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(w)):ge(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ve(e,p,"whitespace")(w)):w===96&&w===u?n(w):(e.consume(w),f)}function p(w){return w===null||$(w)?d(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(w))}function y(w){return w===null||$(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(w)):w===96&&w===u?n(w):(e.consume(w),y)}function g(w){return e.attempt(i,S,I)(w)}function I(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),v}function v(w){return o>0&&ge(w)?ve(e,A,"linePrefix",o+1)(w):A(w)}function A(w){return w===null||$(w)?e.check(Gu,g,S)(w):(e.enter("codeFlowValue"),E(w))}function E(w){return w===null||$(w)?(e.exit("codeFlowValue"),A(w)):(e.consume(w),E)}function S(w){return e.exit("codeFenced"),t(w)}function P(w,O,B){let D=0;return j;function j(z){return w.enter("lineEnding"),w.consume(z),w.exit("lineEnding"),L}function L(z){return w.enter("codeFencedFence"),ge(z)?ve(w,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):R(z)}function R(z){return z===u?(w.enter("codeFencedFenceSequence"),te(z)):B(z)}function te(z){return z===u?(D++,w.consume(z),te):D>=s?(w.exit("codeFencedFenceSequence"),ge(z)?ve(w,se,"whitespace")(z):se(z)):B(z)}function se(z){return z===null||$(z)?(w.exit("codeFencedFence"),O(z)):B(z)}}}function Fh(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Ri={name:"codeIndented",tokenize:kh},Ph={partial:!0,tokenize:Gh};function kh(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),ve(e,o,"linePrefix",5)(l)}function o(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?a(l):$(l)?e.attempt(Ph,s,a)(l):(e.enter("codeFlowValue"),u(l))}function u(l){return l===null||$(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),u)}function a(l){return e.exit("codeIndented"),t(l)}}function Gh(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):$(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ve(e,o,"linePrefix",5)(s)}function o(s){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):$(s)?i(s):n(s)}}const Bh={name:"codeText",previous:Th,resolve:Oh,tokenize:Vh};function Oh(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 Th(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Vh(e,t,n){let r=0,i,o;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),u(d)}function u(d){return d===96?(e.consume(d),r++,u):(e.exit("codeTextSequence"),a(d))}function a(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),a):d===96?(o=e.enter("codeTextSequence"),i=0,c(d)):$(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),a):(e.enter("codeTextData"),l(d))}function l(d){return d===null||d===32||d===96||$(d)?(e.exit("codeTextData"),a(d)):(e.consume(d),l)}function c(d){return d===96?(e.consume(d),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",l(d))}}class Rh{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 o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ln(this.left,r),o.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),Ln(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ln(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);Ln(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ln(this.left,n.reverse())}}}function Ln(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 Ou(e){const t={};let n=-1,r,i,o,s,u,a,l;const c=new Rh(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Dh(c,n)),n=t[n],l=!0);else if(r[1]._container){for(o=n,i=void 0;o--&&(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);i&&(r[1].end={...c.get(i)[1].start},u=c.slice(i,n),u.unshift(r),c.splice(i,n-i+1,u))}}return ut(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function Dh(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[],s=n._tokenizer||r.parser[n.contentType](n.start),u=s.events,a=[],l={};let c,d,f=-1,p=n,y=0,g=0;const I=[g];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),d&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<u.length;)u[f][0]==="exit"&&u[f-1][0]==="enter"&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(g=f+1,I.push(g),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):I.pop(),f=I.length;f--;){const v=u.slice(I[f],I[f+1]),A=o.pop();a.push([A,A+v.length-1]),e.splice(A,2,v)}for(a.reverse(),f=-1;++f<a.length;)l[y+a[f][0]]=y+a[f][1],y+=a[f][1]-a[f][0]-1;return l}const Nh={resolve:Lh,tokenize:Xh},Mh={partial:!0,tokenize:zh};function Lh(e){return Ou(e),e}function Xh(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?o(u):$(u)?e.check(Mh,s,o)(u):(e.consume(u),i)}function o(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function s(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function zh(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ve(e,o,"linePrefix")}function o(s){if(s===null||$(s))return n(s);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Tu(e,t,n,r,i,o,s,u,a){const l=a||Number.POSITIVE_INFINITY;let c=0;return d;function d(v){return v===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(v),e.exit(o),f):v===null||v===32||v===41||Bi(v)?n(v):(e.enter(r),e.enter(s),e.enter(u),e.enter("chunkString",{contentType:"string"}),g(v))}function f(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(u),f(v)):v===null||v===60||$(v)?n(v):(e.consume(v),v===92?y:p)}function y(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function g(v){return!c&&(v===null||v===41||Le(v))?(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(r),t(v)):c<l&&v===40?(e.consume(v),c++,g):v===41?(e.consume(v),c--,g):v===null||v===32||v===40||Bi(v)?n(v):(e.consume(v),v===92?I:g)}function I(v){return v===40||v===41||v===92?(e.consume(v),g):g(v)}}function Vu(e,t,n,r,i,o){const s=this;let u=0,a;return l;function l(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),c}function c(p){return u>999||p===null||p===91||p===93&&!a||p===94&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):$(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||$(p)||u++>999?(e.exit("chunkString"),c(p)):(e.consume(p),a||(a=!ge(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),u++,d):d(p)}}function Ru(e,t,n,r,i,o){let s;return u;function u(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),s=f===40?41:f,a):n(f)}function a(f){return f===s?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),l(f))}function l(f){return f===s?(e.exit(o),a(s)):f===null?n(f):$(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ve(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===s||f===null||$(f)?(e.exit("chunkString"),l(f)):(e.consume(f),f===92?d:c)}function d(f){return f===s||f===92?(e.consume(f),c):c(f)}}function Xn(e,t){let n;return r;function r(i){return $(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ge(i)?ve(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Hh={name:"definition",tokenize:Zh},Wh={partial:!0,tokenize:jh};function Zh(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),s(p)}function s(p){return Vu.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function u(p){return i=ln(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):n(p)}function a(p){return Le(p)?Xn(e,l)(p):l(p)}function l(p){return Tu(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(Wh,d,d)(p)}function d(p){return ge(p)?ve(e,f,"whitespace")(p):f(p)}function f(p){return p===null||$(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function jh(e,t,n){return r;function r(u){return Le(u)?Xn(e,i)(u):n(u)}function i(u){return Ru(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function o(u){return ge(u)?ve(e,s,"whitespace")(u):s(u)}function s(u){return u===null||$(u)?t(u):n(u)}}const Jh={name:"hardBreakEscape",tokenize:Yh};function Yh(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return $(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const _h={name:"headingAtx",resolve:Uh,tokenize:Qh};function Uh(e,t){let n=e.length-2,r=3,i,o;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},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ut(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Qh(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Le(c)?(e.exit("atxHeadingSequence"),u(c)):n(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||$(c)?(e.exit("atxHeading"),t(c)):ge(c)?ve(e,u,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),u(c))}function l(c){return c===null||c===35||Le(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),l)}}const qh=["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"],Du=["pre","script","style","textarea"],$h={concrete:!0,name:"htmlFlow",resolveTo:tg,tokenize:ng},Kh={partial:!0,tokenize:ig},eg={partial:!0,tokenize:rg};function tg(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 ng(e,t,n){const r=this;let i,o,s,u,a;return l;function l(m){return c(m)}function c(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),d}function d(m){return m===33?(e.consume(m),f):m===47?(e.consume(m),o=!0,g):m===63?(e.consume(m),i=3,r.interrupt?t:b):at(m)?(e.consume(m),s=String.fromCharCode(m),I):n(m)}function f(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,u=0,y):at(m)?(e.consume(m),i=4,r.interrupt?t:b):n(m)}function p(m){return m===45?(e.consume(m),r.interrupt?t:b):n(m)}function y(m){const me="CDATA[";return m===me.charCodeAt(u++)?(e.consume(m),u===me.length?r.interrupt?t:R:y):n(m)}function g(m){return at(m)?(e.consume(m),s=String.fromCharCode(m),I):n(m)}function I(m){if(m===null||m===47||m===62||Le(m)){const me=m===47,ne=s.toLowerCase();return!me&&!o&&Du.includes(ne)?(i=1,r.interrupt?t(m):R(m)):qh.includes(s.toLowerCase())?(i=6,me?(e.consume(m),v):r.interrupt?t(m):R(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(m):o?A(m):E(m))}return m===45||je(m)?(e.consume(m),s+=String.fromCharCode(m),I):n(m)}function v(m){return m===62?(e.consume(m),r.interrupt?t:R):n(m)}function A(m){return ge(m)?(e.consume(m),A):j(m)}function E(m){return m===47?(e.consume(m),j):m===58||m===95||at(m)?(e.consume(m),S):ge(m)?(e.consume(m),E):j(m)}function S(m){return m===45||m===46||m===58||m===95||je(m)?(e.consume(m),S):P(m)}function P(m){return m===61?(e.consume(m),w):ge(m)?(e.consume(m),P):E(m)}function w(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),a=m,O):ge(m)?(e.consume(m),w):B(m)}function O(m){return m===a?(e.consume(m),a=null,D):m===null||$(m)?n(m):(e.consume(m),O)}function B(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||Le(m)?P(m):(e.consume(m),B)}function D(m){return m===47||m===62||ge(m)?E(m):n(m)}function j(m){return m===62?(e.consume(m),L):n(m)}function L(m){return m===null||$(m)?R(m):ge(m)?(e.consume(m),L):n(m)}function R(m){return m===45&&i===2?(e.consume(m),U):m===60&&i===1?(e.consume(m),Q):m===62&&i===4?(e.consume(m),xe):m===63&&i===3?(e.consume(m),b):m===93&&i===5?(e.consume(m),ye):$(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Kh,le,te)(m)):m===null||$(m)?(e.exit("htmlFlowData"),te(m)):(e.consume(m),R)}function te(m){return e.check(eg,se,le)(m)}function se(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),z}function z(m){return m===null||$(m)?te(m):(e.enter("htmlFlowData"),R(m))}function U(m){return m===45?(e.consume(m),b):R(m)}function Q(m){return m===47?(e.consume(m),s="",ce):R(m)}function ce(m){if(m===62){const me=s.toLowerCase();return Du.includes(me)?(e.consume(m),xe):R(m)}return at(m)&&s.length<8?(e.consume(m),s+=String.fromCharCode(m),ce):R(m)}function ye(m){return m===93?(e.consume(m),b):R(m)}function b(m){return m===62?(e.consume(m),xe):m===45&&i===2?(e.consume(m),b):R(m)}function xe(m){return m===null||$(m)?(e.exit("htmlFlowData"),le(m)):(e.consume(m),xe)}function le(m){return e.exit("htmlFlow"),t(m)}}function rg(e,t,n){const r=this;return i;function i(s){return $(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function ig(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(vr,t,n)}}const og={name:"htmlText",tokenize:sg};function sg(e,t,n){const r=this;let i,o,s;return u;function u(b){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(b),a}function a(b){return b===33?(e.consume(b),l):b===47?(e.consume(b),P):b===63?(e.consume(b),E):at(b)?(e.consume(b),B):n(b)}function l(b){return b===45?(e.consume(b),c):b===91?(e.consume(b),o=0,y):at(b)?(e.consume(b),A):n(b)}function c(b){return b===45?(e.consume(b),p):n(b)}function d(b){return b===null?n(b):b===45?(e.consume(b),f):$(b)?(s=d,Q(b)):(e.consume(b),d)}function f(b){return b===45?(e.consume(b),p):d(b)}function p(b){return b===62?U(b):b===45?f(b):d(b)}function y(b){const xe="CDATA[";return b===xe.charCodeAt(o++)?(e.consume(b),o===xe.length?g:y):n(b)}function g(b){return b===null?n(b):b===93?(e.consume(b),I):$(b)?(s=g,Q(b)):(e.consume(b),g)}function I(b){return b===93?(e.consume(b),v):g(b)}function v(b){return b===62?U(b):b===93?(e.consume(b),v):g(b)}function A(b){return b===null||b===62?U(b):$(b)?(s=A,Q(b)):(e.consume(b),A)}function E(b){return b===null?n(b):b===63?(e.consume(b),S):$(b)?(s=E,Q(b)):(e.consume(b),E)}function S(b){return b===62?U(b):E(b)}function P(b){return at(b)?(e.consume(b),w):n(b)}function w(b){return b===45||je(b)?(e.consume(b),w):O(b)}function O(b){return $(b)?(s=O,Q(b)):ge(b)?(e.consume(b),O):U(b)}function B(b){return b===45||je(b)?(e.consume(b),B):b===47||b===62||Le(b)?D(b):n(b)}function D(b){return b===47?(e.consume(b),U):b===58||b===95||at(b)?(e.consume(b),j):$(b)?(s=D,Q(b)):ge(b)?(e.consume(b),D):U(b)}function j(b){return b===45||b===46||b===58||b===95||je(b)?(e.consume(b),j):L(b)}function L(b){return b===61?(e.consume(b),R):$(b)?(s=L,Q(b)):ge(b)?(e.consume(b),L):D(b)}function R(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),i=b,te):$(b)?(s=R,Q(b)):ge(b)?(e.consume(b),R):(e.consume(b),se)}function te(b){return b===i?(e.consume(b),i=void 0,z):b===null?n(b):$(b)?(s=te,Q(b)):(e.consume(b),te)}function se(b){return b===null||b===34||b===39||b===60||b===61||b===96?n(b):b===47||b===62||Le(b)?D(b):(e.consume(b),se)}function z(b){return b===47||b===62||Le(b)?D(b):n(b)}function U(b){return b===62?(e.consume(b),e.exit("htmlTextData"),e.exit("htmlText"),t):n(b)}function Q(b){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),ce}function ce(b){return ge(b)?ve(e,ye,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):ye(b)}function ye(b){return e.enter("htmlTextData"),s(b)}}const Di={name:"labelEnd",resolveAll:cg,resolveTo:dg,tokenize:pg},ug={tokenize:fg},ag={tokenize:hg},lg={tokenize:gg};function cg(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 dg(e,t){let n=e.length,r=0,i,o,s,u;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const a={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[s-2][1].start}};return u=[["enter",a,t],["enter",l,t]],u=qe(u,e.slice(o+1,o+r+3)),u=qe(u,[["enter",c,t]]),u=qe(u,Ti(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),u=qe(u,[["exit",c,t],e[s-2],e[s-1],["exit",l,t]]),u=qe(u,e.slice(s+1)),u=qe(u,[["exit",a,t]]),ut(e,o,e.length,u),e}function pg(e,t,n){const r=this;let i=r.events.length,o,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return u;function u(f){return o?o._inactive?d(f):(s=r.parser.defined.includes(ln(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),a):n(f)}function a(f){return f===40?e.attempt(ug,c,s?c:d)(f):f===91?e.attempt(ag,c,s?l:d)(f):s?c(f):d(f)}function l(f){return e.attempt(lg,c,d)(f)}function c(f){return t(f)}function d(f){return o._balanced=!0,n(f)}}function fg(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return Le(d)?Xn(e,o)(d):o(d)}function o(d){return d===41?c(d):Tu(e,s,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Le(d)?Xn(e,a)(d):c(d)}function u(d){return n(d)}function a(d){return d===34||d===39||d===40?Ru(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function l(d){return Le(d)?Xn(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function hg(e,t,n){const r=this;return i;function i(u){return Vu.call(r,e,o,s,"reference","referenceMarker","referenceString")(u)}function o(u){return r.parser.defined.includes(ln(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function s(u){return n(u)}}function gg(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const mg={name:"labelStartImage",resolveAll:Di.resolveAll,tokenize:bg};function bg(e,t,n){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),o}function o(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),s):n(u)}function s(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const yg={name:"labelStartLink",resolveAll:Di.resolveAll,tokenize:Ig};function Ig(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Ni={name:"lineEnding",tokenize:vg};function vg(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ve(e,t,"linePrefix")}}const Cr={name:"thematicBreak",tokenize:Cg};function Cg(e,t,n){let r=0,i;return o;function o(l){return e.enter("thematicBreak"),s(l)}function s(l){return i=l,u(l)}function u(l){return l===i?(e.enter("thematicBreakSequence"),a(l)):r>=3&&(l===null||$(l))?(e.exit("thematicBreak"),t(l)):n(l)}function a(l){return l===i?(e.consume(l),r++,a):(e.exit("thematicBreakSequence"),ge(l)?ve(e,u,"whitespace")(l):u(l))}}const Xe={continuation:{tokenize:wg},exit:Fg,name:"list",tokenize:Sg},xg={partial:!0,tokenize:Pg},Ag={partial:!0,tokenize:Eg};function Sg(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return u;function u(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Oi(p)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Cr,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)}function a(p){return Oi(p)&&++s<10?(e.consume(p),a):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(vr,r.interrupt?n:c,e.attempt(xg,f,d))}function c(p){return r.containerState.initialBlankLine=!0,o++,f(p)}function d(p){return ge(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function wg(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(vr,i,o);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ve(e,t,"listItemIndent",r.containerState.size+1)(u)}function o(u){return r.containerState.furtherBlankLines||!ge(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ag,t,s)(u))}function s(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,ve(e,e.attempt(Xe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function Eg(e,t,n){const r=this;return ve(e,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function Fg(e){e.exit(this.containerState.type)}function Pg(e,t,n){const r=this;return ve(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!ge(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Nu={name:"setextUnderline",resolveTo:kg,tokenize:Gg};function kg(e,t){let n=e.length,r,i,o;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),!o&&e[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function Gg(e,t,n){const r=this;let i;return o;function o(l){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),u(l)}function u(l){return l===i?(e.consume(l),u):(e.exit("setextHeadingLineSequence"),ge(l)?ve(e,a,"lineSuffix")(l):a(l))}function a(l){return l===null||$(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const Bg={tokenize:Og};function Og(e){const t=this,n=e.attempt(vr,r,e.attempt(this.parser.constructs.flowInitial,i,ve(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Nh,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Tg={resolveAll:Lu()},Vg=Mu("string"),Rg=Mu("text");function Mu(e){return{resolveAll:Lu(e==="text"?Dg:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,s,u);return s;function s(c){return l(c)?o(c):u(c)}function u(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),a}function a(c){return l(c)?(n.exit("data"),o(c)):(n.consume(c),a)}function l(c){if(c===null)return!0;const d=i[c];let f=-1;if(d)for(;++f<d.length;){const p=d[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Lu(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Dg(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 o=i.length,s=-1,u=0,a;for(;o--;){const l=i[o];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)u++,s--;if(s)break;s=-1}else if(l===-2)a=!0,u++;else if(l!==-1){o++;break}}if(u){const l={type:n===e.length||a||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const Ng=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Hh},disable:{null:[]},document:{42:Xe,43:Xe,45:Xe,48:Xe,49:Xe,50:Xe,51:Xe,52:Xe,53:Xe,54:Xe,55:Xe,56:Xe,57:Xe,62:Fu},flow:{35:_h,42:Cr,45:[Nu,Cr],60:$h,61:Nu,95:Cr,96:Bu,126:Bu},flowInitial:{[-2]:Ri,[-1]:Ri,32:Ri},insideSpan:{null:[Vi,Tg]},string:{38:ku,92:Pu},text:{[-5]:Ni,[-4]:Ni,[-3]:Ni,33:mg,38:ku,42:Vi,60:[yh,og],91:yg,92:[Jh,Pu],93:Di,95:Vi,96:Bh}},Symbol.toStringTag,{value:"Module"}));function Mg(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={},o=[];let s=[],u=[];const a={attempt:O(P),check:O(w),consume:A,enter:E,exit:S,interrupt:O(w,{interrupt:!0})},l={code:null,containerState:{},defineSkip:g,events:[],now:y,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d};let c=t.tokenize.call(l,a);return t.resolveAll&&o.push(t),l;function d(L){return s=qe(s,L),I(),s[s.length-1]!==null?[]:(B(t,0),l.events=Ti(o,l.events,l),l.events)}function f(L,R){return Xg(p(L),R)}function p(L){return Lg(s,L)}function y(){const{_bufferIndex:L,_index:R,line:te,column:se,offset:z}=r;return{_bufferIndex:L,_index:R,line:te,column:se,offset:z}}function g(L){i[L.line]=L.column,j()}function I(){let L;for(;r._index<s.length;){const R=s[r._index];if(typeof R=="string")for(L=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===L&&r._bufferIndex<R.length;)v(R.charCodeAt(r._bufferIndex));else v(R)}}function v(L){c=c(L)}function A(L){$(L)?(r.line++,r.column=1,r.offset+=L===-3?2:1,j()):L!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=L}function E(L,R){const te=R||{};return te.type=L,te.start=y(),l.events.push(["enter",te,l]),u.push(te),te}function S(L){const R=u.pop();return R.end=y(),l.events.push(["exit",R,l]),R}function P(L,R){B(L,R.from)}function w(L,R){R.restore()}function O(L,R){return te;function te(se,z,U){let Q,ce,ye,b;return Array.isArray(se)?le(se):"tokenize"in se?le([se]):xe(se);function xe(fe){return Pe;function Pe(M){const W=M!==null&&fe[M],q=M!==null&&fe.null,he=[...Array.isArray(W)?W:W?[W]:[],...Array.isArray(q)?q:q?[q]:[]];return le(he)(M)}}function le(fe){return Q=fe,ce=0,fe.length===0?U:m(fe[ce])}function m(fe){return Pe;function Pe(M){return b=D(),ye=fe,fe.partial||(l.currentConstruct=fe),fe.name&&l.parser.constructs.disable.null.includes(fe.name)?ne():fe.tokenize.call(R?Object.assign(Object.create(l),R):l,a,me,ne)(M)}}function me(fe){return L(ye,b),z}function ne(fe){return b.restore(),++ce<Q.length?m(Q[ce]):U}}}function B(L,R){L.resolveAll&&!o.includes(L)&&o.push(L),L.resolve&&ut(l.events,R,l.events.length-R,L.resolve(l.events.slice(R),l)),L.resolveTo&&(l.events=L.resolveTo(l.events,l))}function D(){const L=y(),R=l.previous,te=l.currentConstruct,se=l.events.length,z=Array.from(u);return{from:se,restore:U};function U(){r=L,l.previous=R,l.currentConstruct=te,l.events.length=se,u=z,j()}}function j(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Lg(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const u=s[0];typeof u=="string"?s[0]=u.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function Xg(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
8
8
  `;break}case-3:{s=`\r
9
- `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function zg(e){const r={constructs:rh([Ng,...(e||{}).extensions||[]]),content:i(dh),defined:[],document:i(fh),flow:i(Bg),lazy:{},string:i(Vg),text:i(Rg)};return r;function i(o){return s;function s(u){return Mg(r,o,u)}}}function Hg(e){for(;!Ou(e););return e}const Xu=/[\0\t\n\r]/g;function Wg(){let e=1,t="",n=!0,r;return i;function i(o,s,u){const a=[];let l,c,d,f,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(Xu.lastIndex=d,l=Xu.exec(o),f=l&&l.index!==void 0?l.index:o.length,p=o.charCodeAt(f),!l){t=o.slice(d);break}if(p===10&&d===f&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),d<f&&(a.push(o.slice(d,f)),e+=f-d),p){case 0:{a.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,a.push(-2);e++<c;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}d=f+1}return u&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const Zg=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jg(e){return e.replace(Zg,Jg)}function Jg(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Au(n.slice(o?2:1),o?16:10)}return Gi(n)||e}const zu={}.hasOwnProperty;function Yg(e,t,n){return typeof t!="string"&&(n=t,t=void 0),_g(n)(Hg(zg(n).document().write(Wg()(e,t,!0))))}function _g(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Rr),autolinkProtocol:D,autolinkEmail:D,atxHeading:o(wn),blockQuote:o(q),characterEscape:D,characterReference:D,codeFenced:o(he),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(he,s),codeText:o(ke,s),codeTextData:D,data:D,codeFlowValue:D,definition:o(Ye),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Qt),hardBreakEscape:o(Tr),hardBreakTrailing:o(Tr),htmlFlow:o(Vr,s),htmlFlowData:D,htmlText:o(Vr,s),htmlTextData:D,image:o(to),label:s,link:o(Rr),listItem:o(no),listItemValue:f,listOrdered:o(Dr,d),listUnordered:o(Dr),paragraph:o(ro),reference:m,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(wn),strong:o(io),thematicBreak:o(so)},exit:{atxHeading:a(),atxHeadingSequence:P,autolink:a(),autolinkEmail:W,autolinkProtocol:M,blockQuote:a(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:ne,characterReferenceMarkerNumeric:ne,characterReferenceValue:fe,characterReference:Pe,codeFenced:a(I),codeFencedFence:g,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:j,codeIndented:a(v),codeText:a(z),codeTextData:j,data:j,definition:a(),definitionDestinationString:S,definitionLabelString:A,definitionTitleString:w,emphasis:a(),hardBreakEscape:a(R),hardBreakTrailing:a(R),htmlFlow:a(te),htmlFlowData:j,htmlText:a(se),htmlTextData:j,image:a(Q),label:ye,labelText:ce,lineEnding:L,link:a(U),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:me,resourceDestinationString:b,resourceTitleString:xe,resource:le,setextHeading:a(B),setextHeadingLineSequence:O,setextHeadingText:E,strong:a(),thematicBreak:a()}};Hu(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(F){let N={type:"root",children:[]};const K={stack:[N],tokenStack:[],config:t,enter:u,exit:l,buffer:s,resume:c,data:n},ue=[];let ae=-1;for(;++ae<F.length;)if(F[ae][1].type==="listOrdered"||F[ae][1].type==="listUnordered")if(F[ae][0]==="enter")ue.push(ae);else{const We=ue.pop();ae=i(F,We,ae)}for(ae=-1;++ae<F.length;){const We=t[F[ae][0]];zu.call(We,F[ae][1].type)&&We[F[ae][1].type].call(Object.assign({sliceSerialize:F[ae][2].sliceSerialize},K),F[ae][1])}if(K.tokenStack.length>0){const We=K.tokenStack[K.tokenStack.length-1];(We[1]||Wu).call(K,void 0,We[0])}for(N.position={start:St(F.length>0?F[0][1].start:{line:1,column:1,offset:0}),end:St(F.length>0?F[F.length-2][1].end:{line:1,column:1,offset:0})},ae=-1;++ae<t.transforms.length;)N=t.transforms[ae](N)||N;return N}function i(F,N,K){let ue=N-1,ae=-1,We=!1,ht,rt,Ot,gt;for(;++ue<=K;){const Re=F[ue];switch(Re[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Re[0]==="enter"?ae++:ae--,gt=void 0;break}case"lineEndingBlank":{Re[0]==="enter"&&(ht&&!gt&&!ae&&!Ot&&(Ot=ue),gt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:gt=void 0}if(!ae&&Re[0]==="enter"&&Re[1].type==="listItemPrefix"||ae===-1&&Re[0]==="exit"&&(Re[1].type==="listUnordered"||Re[1].type==="listOrdered")){if(ht){let It=ue;for(rt=void 0;It--;){const it=F[It];if(it[1].type==="lineEnding"||it[1].type==="lineEndingBlank"){if(it[0]==="exit")continue;rt&&(F[rt][1].type="lineEndingBlank",We=!0),it[1].type="lineEnding",rt=It}else if(!(it[1].type==="linePrefix"||it[1].type==="blockQuotePrefix"||it[1].type==="blockQuotePrefixWhitespace"||it[1].type==="blockQuoteMarker"||it[1].type==="listItemIndent"))break}Ot&&(!rt||Ot<rt)&&(ht._spread=!0),ht.end=Object.assign({},rt?F[rt][1].start:Re[1].end),F.splice(rt||ue,0,["exit",ht,Re[2]]),ue++,K++}if(Re[1].type==="listItemPrefix"){const It={type:"listItem",_spread:!1,start:Object.assign({},Re[1].start),end:void 0};ht=It,F.splice(ue,0,["enter",It,Re[2]]),ue++,K++,Ot=void 0,gt=!0}}}return F[N][1]._spread=We,K}function o(F,N){return K;function K(ue){u.call(this,F(ue),ue),N&&N.call(this,ue)}}function s(){this.stack.push({type:"fragment",children:[]})}function u(F,N,K){this.stack[this.stack.length-1].children.push(F),this.stack.push(F),this.tokenStack.push([N,K||void 0]),F.position={start:St(N.start),end:void 0}}function a(F){return N;function N(K){F&&F.call(this,K),l.call(this,K)}}function l(F,N){const K=this.stack.pop(),ue=this.tokenStack.pop();if(ue)ue[0].type!==F.type&&(N?N.call(this,F,ue[0]):(ue[1]||Wu).call(this,F,ue[0]));else throw new Error("Cannot close `"+F.type+"` ("+Nn({start:F.start,end:F.end})+"): it’s not open");K.position.end=St(F.end)}function c(){return th(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(F){if(this.data.expectingFirstListItemValue){const N=this.stack[this.stack.length-2];N.start=Number.parseInt(this.sliceSerialize(F),10),this.data.expectingFirstListItemValue=void 0}}function p(){const F=this.resume(),N=this.stack[this.stack.length-1];N.lang=F}function y(){const F=this.resume(),N=this.stack[this.stack.length-1];N.meta=F}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const F=this.resume(),N=this.stack[this.stack.length-1];N.value=F.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const F=this.resume(),N=this.stack[this.stack.length-1];N.value=F.replace(/(\r?\n|\r)$/g,"")}function A(F){const N=this.resume(),K=this.stack[this.stack.length-1];K.label=N,K.identifier=ln(this.sliceSerialize(F)).toLowerCase()}function w(){const F=this.resume(),N=this.stack[this.stack.length-1];N.title=F}function S(){const F=this.resume(),N=this.stack[this.stack.length-1];N.url=F}function P(F){const N=this.stack[this.stack.length-1];if(!N.depth){const K=this.sliceSerialize(F).length;N.depth=K}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function O(F){const N=this.stack[this.stack.length-1];N.depth=this.sliceSerialize(F).codePointAt(0)===61?1:2}function B(){this.data.setextHeadingSlurpLineEnding=void 0}function D(F){const K=this.stack[this.stack.length-1].children;let ue=K[K.length-1];(!ue||ue.type!=="text")&&(ue=oo(),ue.position={start:St(F.start),end:void 0},K.push(ue)),this.stack.push(ue)}function j(F){const N=this.stack.pop();N.value+=this.sliceSerialize(F),N.position.end=St(F.end)}function L(F){const N=this.stack[this.stack.length-1];if(this.data.atHardBreak){const K=N.children[N.children.length-1];K.position.end=St(F.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(N.type)&&(D.call(this,F),j.call(this,F))}function R(){this.data.atHardBreak=!0}function te(){const F=this.resume(),N=this.stack[this.stack.length-1];N.value=F}function se(){const F=this.resume(),N=this.stack[this.stack.length-1];N.value=F}function z(){const F=this.resume(),N=this.stack[this.stack.length-1];N.value=F}function U(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const N=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=N,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function Q(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const N=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=N,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function ce(F){const N=this.sliceSerialize(F),K=this.stack[this.stack.length-2];K.label=jg(N),K.identifier=ln(N).toLowerCase()}function ye(){const F=this.stack[this.stack.length-1],N=this.resume(),K=this.stack[this.stack.length-1];if(this.data.inReference=!0,K.type==="link"){const ue=F.children;K.children=ue}else K.alt=N}function b(){const F=this.resume(),N=this.stack[this.stack.length-1];N.url=F}function xe(){const F=this.resume(),N=this.stack[this.stack.length-1];N.title=F}function le(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function me(F){const N=this.resume(),K=this.stack[this.stack.length-1];K.label=N,K.identifier=ln(this.sliceSerialize(F)).toLowerCase(),this.data.referenceType="full"}function ne(F){this.data.characterReferenceType=F.type}function fe(F){const N=this.sliceSerialize(F),K=this.data.characterReferenceType;let ue;K?(ue=Au(N,K==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ue=Gi(N);const ae=this.stack[this.stack.length-1];ae.value+=ue}function Pe(F){const N=this.stack.pop();N.position.end=St(F.end)}function M(F){j.call(this,F);const N=this.stack[this.stack.length-1];N.url=this.sliceSerialize(F)}function W(F){j.call(this,F);const N=this.stack[this.stack.length-1];N.url="mailto:"+this.sliceSerialize(F)}function q(){return{type:"blockquote",children:[]}}function he(){return{type:"code",lang:null,meta:null,value:""}}function ke(){return{type:"inlineCode",value:""}}function Ye(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Qt(){return{type:"emphasis",children:[]}}function wn(){return{type:"heading",depth:0,children:[]}}function Tr(){return{type:"break"}}function Vr(){return{type:"html",value:""}}function to(){return{type:"image",title:null,url:"",alt:null}}function Rr(){return{type:"link",title:null,url:"",children:[]}}function Dr(F){return{type:"list",ordered:F.type==="listOrdered",start:null,spread:F._spread,children:[]}}function no(F){return{type:"listItem",spread:F._spread,checked:null,children:[]}}function ro(){return{type:"paragraph",children:[]}}function io(){return{type:"strong",children:[]}}function oo(){return{type:"text",value:""}}function so(){return{type:"thematicBreak"}}}function St(e){return{line:e.line,column:e.column,offset:e.offset}}function Hu(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Hu(e,r):Ug(e,r)}}function Ug(e,t){let n;for(n in t)if(zu.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 Wu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Nn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Nn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Nn({start:t.start,end:t.end})+") is still open")}function Qg(e){const t=this;t.parser=n;function n(r){return Yg(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function qg(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function $g(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
9
+ `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function zg(e){const r={constructs:rh([Ng,...(e||{}).extensions||[]]),content:i(dh),defined:[],document:i(fh),flow:i(Bg),lazy:{},string:i(Vg),text:i(Rg)};return r;function i(o){return s;function s(u){return Mg(r,o,u)}}}function Hg(e){for(;!Ou(e););return e}const Xu=/[\0\t\n\r]/g;function Wg(){let e=1,t="",n=!0,r;return i;function i(o,s,u){const a=[];let l,c,d,f,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(Xu.lastIndex=d,l=Xu.exec(o),f=l&&l.index!==void 0?l.index:o.length,p=o.charCodeAt(f),!l){t=o.slice(d);break}if(p===10&&d===f&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),d<f&&(a.push(o.slice(d,f)),e+=f-d),p){case 0:{a.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,a.push(-2);e++<c;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}d=f+1}return u&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const Zg=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jg(e){return e.replace(Zg,Jg)}function Jg(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Au(n.slice(o?2:1),o?16:10)}return Gi(n)||e}const zu={}.hasOwnProperty;function Yg(e,t,n){return typeof t!="string"&&(n=t,t=void 0),_g(n)(Hg(zg(n).document().write(Wg()(e,t,!0))))}function _g(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Rr),autolinkProtocol:D,autolinkEmail:D,atxHeading:o(wn),blockQuote:o(q),characterEscape:D,characterReference:D,codeFenced:o(he),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(he,s),codeText:o(ke,s),codeTextData:D,data:D,codeFlowValue:D,definition:o(Ye),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Qt),hardBreakEscape:o(Tr),hardBreakTrailing:o(Tr),htmlFlow:o(Vr,s),htmlFlowData:D,htmlText:o(Vr,s),htmlTextData:D,image:o(to),label:s,link:o(Rr),listItem:o(no),listItemValue:f,listOrdered:o(Dr,d),listUnordered:o(Dr),paragraph:o(ro),reference:m,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(wn),strong:o(io),thematicBreak:o(so)},exit:{atxHeading:a(),atxHeadingSequence:P,autolink:a(),autolinkEmail:W,autolinkProtocol:M,blockQuote:a(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:ne,characterReferenceMarkerNumeric:ne,characterReferenceValue:fe,characterReference:Pe,codeFenced:a(I),codeFencedFence:g,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:j,codeIndented:a(v),codeText:a(z),codeTextData:j,data:j,definition:a(),definitionDestinationString:S,definitionLabelString:A,definitionTitleString:E,emphasis:a(),hardBreakEscape:a(R),hardBreakTrailing:a(R),htmlFlow:a(te),htmlFlowData:j,htmlText:a(se),htmlTextData:j,image:a(Q),label:ye,labelText:ce,lineEnding:L,link:a(U),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:me,resourceDestinationString:b,resourceTitleString:xe,resource:le,setextHeading:a(B),setextHeadingLineSequence:O,setextHeadingText:w,strong:a(),thematicBreak:a()}};Hu(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(F){let N={type:"root",children:[]};const K={stack:[N],tokenStack:[],config:t,enter:u,exit:l,buffer:s,resume:c,data:n},ue=[];let ae=-1;for(;++ae<F.length;)if(F[ae][1].type==="listOrdered"||F[ae][1].type==="listUnordered")if(F[ae][0]==="enter")ue.push(ae);else{const We=ue.pop();ae=i(F,We,ae)}for(ae=-1;++ae<F.length;){const We=t[F[ae][0]];zu.call(We,F[ae][1].type)&&We[F[ae][1].type].call(Object.assign({sliceSerialize:F[ae][2].sliceSerialize},K),F[ae][1])}if(K.tokenStack.length>0){const We=K.tokenStack[K.tokenStack.length-1];(We[1]||Wu).call(K,void 0,We[0])}for(N.position={start:St(F.length>0?F[0][1].start:{line:1,column:1,offset:0}),end:St(F.length>0?F[F.length-2][1].end:{line:1,column:1,offset:0})},ae=-1;++ae<t.transforms.length;)N=t.transforms[ae](N)||N;return N}function i(F,N,K){let ue=N-1,ae=-1,We=!1,ht,rt,Ot,gt;for(;++ue<=K;){const Re=F[ue];switch(Re[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Re[0]==="enter"?ae++:ae--,gt=void 0;break}case"lineEndingBlank":{Re[0]==="enter"&&(ht&&!gt&&!ae&&!Ot&&(Ot=ue),gt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:gt=void 0}if(!ae&&Re[0]==="enter"&&Re[1].type==="listItemPrefix"||ae===-1&&Re[0]==="exit"&&(Re[1].type==="listUnordered"||Re[1].type==="listOrdered")){if(ht){let It=ue;for(rt=void 0;It--;){const it=F[It];if(it[1].type==="lineEnding"||it[1].type==="lineEndingBlank"){if(it[0]==="exit")continue;rt&&(F[rt][1].type="lineEndingBlank",We=!0),it[1].type="lineEnding",rt=It}else if(!(it[1].type==="linePrefix"||it[1].type==="blockQuotePrefix"||it[1].type==="blockQuotePrefixWhitespace"||it[1].type==="blockQuoteMarker"||it[1].type==="listItemIndent"))break}Ot&&(!rt||Ot<rt)&&(ht._spread=!0),ht.end=Object.assign({},rt?F[rt][1].start:Re[1].end),F.splice(rt||ue,0,["exit",ht,Re[2]]),ue++,K++}if(Re[1].type==="listItemPrefix"){const It={type:"listItem",_spread:!1,start:Object.assign({},Re[1].start),end:void 0};ht=It,F.splice(ue,0,["enter",It,Re[2]]),ue++,K++,Ot=void 0,gt=!0}}}return F[N][1]._spread=We,K}function o(F,N){return K;function K(ue){u.call(this,F(ue),ue),N&&N.call(this,ue)}}function s(){this.stack.push({type:"fragment",children:[]})}function u(F,N,K){this.stack[this.stack.length-1].children.push(F),this.stack.push(F),this.tokenStack.push([N,K||void 0]),F.position={start:St(N.start),end:void 0}}function a(F){return N;function N(K){F&&F.call(this,K),l.call(this,K)}}function l(F,N){const K=this.stack.pop(),ue=this.tokenStack.pop();if(ue)ue[0].type!==F.type&&(N?N.call(this,F,ue[0]):(ue[1]||Wu).call(this,F,ue[0]));else throw new Error("Cannot close `"+F.type+"` ("+Nn({start:F.start,end:F.end})+"): it’s not open");K.position.end=St(F.end)}function c(){return th(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(F){if(this.data.expectingFirstListItemValue){const N=this.stack[this.stack.length-2];N.start=Number.parseInt(this.sliceSerialize(F),10),this.data.expectingFirstListItemValue=void 0}}function p(){const F=this.resume(),N=this.stack[this.stack.length-1];N.lang=F}function y(){const F=this.resume(),N=this.stack[this.stack.length-1];N.meta=F}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const F=this.resume(),N=this.stack[this.stack.length-1];N.value=F.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const F=this.resume(),N=this.stack[this.stack.length-1];N.value=F.replace(/(\r?\n|\r)$/g,"")}function A(F){const N=this.resume(),K=this.stack[this.stack.length-1];K.label=N,K.identifier=ln(this.sliceSerialize(F)).toLowerCase()}function E(){const F=this.resume(),N=this.stack[this.stack.length-1];N.title=F}function S(){const F=this.resume(),N=this.stack[this.stack.length-1];N.url=F}function P(F){const N=this.stack[this.stack.length-1];if(!N.depth){const K=this.sliceSerialize(F).length;N.depth=K}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function O(F){const N=this.stack[this.stack.length-1];N.depth=this.sliceSerialize(F).codePointAt(0)===61?1:2}function B(){this.data.setextHeadingSlurpLineEnding=void 0}function D(F){const K=this.stack[this.stack.length-1].children;let ue=K[K.length-1];(!ue||ue.type!=="text")&&(ue=oo(),ue.position={start:St(F.start),end:void 0},K.push(ue)),this.stack.push(ue)}function j(F){const N=this.stack.pop();N.value+=this.sliceSerialize(F),N.position.end=St(F.end)}function L(F){const N=this.stack[this.stack.length-1];if(this.data.atHardBreak){const K=N.children[N.children.length-1];K.position.end=St(F.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(N.type)&&(D.call(this,F),j.call(this,F))}function R(){this.data.atHardBreak=!0}function te(){const F=this.resume(),N=this.stack[this.stack.length-1];N.value=F}function se(){const F=this.resume(),N=this.stack[this.stack.length-1];N.value=F}function z(){const F=this.resume(),N=this.stack[this.stack.length-1];N.value=F}function U(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const N=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=N,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function Q(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const N=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=N,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function ce(F){const N=this.sliceSerialize(F),K=this.stack[this.stack.length-2];K.label=jg(N),K.identifier=ln(N).toLowerCase()}function ye(){const F=this.stack[this.stack.length-1],N=this.resume(),K=this.stack[this.stack.length-1];if(this.data.inReference=!0,K.type==="link"){const ue=F.children;K.children=ue}else K.alt=N}function b(){const F=this.resume(),N=this.stack[this.stack.length-1];N.url=F}function xe(){const F=this.resume(),N=this.stack[this.stack.length-1];N.title=F}function le(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function me(F){const N=this.resume(),K=this.stack[this.stack.length-1];K.label=N,K.identifier=ln(this.sliceSerialize(F)).toLowerCase(),this.data.referenceType="full"}function ne(F){this.data.characterReferenceType=F.type}function fe(F){const N=this.sliceSerialize(F),K=this.data.characterReferenceType;let ue;K?(ue=Au(N,K==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ue=Gi(N);const ae=this.stack[this.stack.length-1];ae.value+=ue}function Pe(F){const N=this.stack.pop();N.position.end=St(F.end)}function M(F){j.call(this,F);const N=this.stack[this.stack.length-1];N.url=this.sliceSerialize(F)}function W(F){j.call(this,F);const N=this.stack[this.stack.length-1];N.url="mailto:"+this.sliceSerialize(F)}function q(){return{type:"blockquote",children:[]}}function he(){return{type:"code",lang:null,meta:null,value:""}}function ke(){return{type:"inlineCode",value:""}}function Ye(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Qt(){return{type:"emphasis",children:[]}}function wn(){return{type:"heading",depth:0,children:[]}}function Tr(){return{type:"break"}}function Vr(){return{type:"html",value:""}}function to(){return{type:"image",title:null,url:"",alt:null}}function Rr(){return{type:"link",title:null,url:"",children:[]}}function Dr(F){return{type:"list",ordered:F.type==="listOrdered",start:null,spread:F._spread,children:[]}}function no(F){return{type:"listItem",spread:F._spread,checked:null,children:[]}}function ro(){return{type:"paragraph",children:[]}}function io(){return{type:"strong",children:[]}}function oo(){return{type:"text",value:""}}function so(){return{type:"thematicBreak"}}}function St(e){return{line:e.line,column:e.column,offset:e.offset}}function Hu(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Hu(e,r):Ug(e,r)}}function Ug(e,t){let n;for(n in t)if(zu.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 Wu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Nn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Nn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Nn({start:t.start,end:t.end})+") is still open")}function Qg(e){const t=this;t.parser=n;function n(r){return Yg(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function qg(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function $g(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
10
10
  `}]}function Kg(e,t){const n=t.value?t.value+`
11
11
  `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function em(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function tm(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nm(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=cn(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,u+=1,e.footnoteCounts.set(r,u);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,a);const l={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,l),e.applyData(t,l)}function rm(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function im(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Zu(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function om(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Zu(e,t);const i={src:cn(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function sm(e,t){const n={src:cn(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function um(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function am(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Zu(e,t);const i={href:cn(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function lm(e,t){const n={href:cn(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function cm(e,t,n){const r=e.all(t),i=n?dm(n):ju(t),o={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const c=r[u];(i||u!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
12
12
  `}),c.type==="element"&&c.tagName==="p"&&!i?s.push(...c.children):s.push(c)}const a=r[r.length-1];a&&(i||a.type!=="element"||a.tagName!=="p")&&s.push({type:"text",value:`
@@ -16,4 +16,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
16
16
  `});++r<e.length;)r&&n.push({type:"text",value:`
17
17
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
18
18
  `}),n}function oa(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function sa(e,t){const n=Xm(e,t),r=n.one(e,void 0),i=km(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
19
- `},i),o}function jm(e,t){return e&&"run"in e?async function(n,r){const i=sa(n,{file:r,...t});await e.run(i,r)}:function(n,r){return sa(n,{file:r,...e||t})}}function ua(e){if(e)throw e}var kr=Object.prototype.hasOwnProperty,aa=Object.prototype.toString,la=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,da=function(t){return typeof Array.isArray=="function"?Array.isArray(t):aa.call(t)==="[object Array]"},pa=function(t){if(!t||aa.call(t)!=="[object Object]")return!1;var n=kr.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&kr.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||kr.call(t,i)},fa=function(t,n){la&&n.name==="__proto__"?la(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},ha=function(t,n){if(n==="__proto__")if(kr.call(t,n)){if(ca)return ca(t,n).value}else return;return t[n]},Jm=function e(){var t,n,r,i,o,s,u=arguments[0],a=1,l=arguments.length,c=!1;for(typeof u=="boolean"&&(c=u,u=arguments[1]||{},a=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});a<l;++a)if(t=arguments[a],t!=null)for(n in t)r=ha(u,n),i=ha(t,n),u!==i&&(c&&i&&(pa(i)||(o=da(i)))?(o?(o=!1,s=r&&da(r)?r:[]):s=r&&pa(r)?r:{},fa(u,{name:n,newValue:e(c,s,i)})):typeof i<"u"&&fa(u,{name:n,newValue:i}));return u};const Wi=Ao(Jm);function Zi(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 Ym(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);u(null,...i);function u(a,...l){const c=e[++o];let d=-1;if(a){s(a);return}for(;++d<i.length;)(l[d]===null||l[d]===void 0)&&(l[d]=i[d]);i=l,c?_m(c,u)(...l):s(null,...l)}}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(...s){const u=e.length>s.length;let a;u&&s.push(i);try{a=e.apply(this,s)}catch(l){const c=l;if(u&&n)throw c;return i(c)}u||(a&&a.then&&typeof a.then=="function"?a.then(o,i):a instanceof Error?i(a):o(a))}function i(s,...u){n||(n=!0,t(s,...u))}function o(s){i(null,s)}}const lt={basename:Um,dirname:Qm,extname:qm,join:$m,sep:"/"};function Um(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Hn(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Qm(e){if(Hn(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 qm(e){Hn(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const u=e.codePointAt(t);if(u===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),u===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function $m(...e){let t=-1,n;for(;++t<e.length;)Hn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Km(n)}function Km(e){Hn(e);const t=e.codePointAt(0)===47;let n=eb(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function eb(e,t){let n="",r=0,i=-1,o=0,s=-1,u,a;for(;++s<=e.length;){if(s<e.length)u=e.codePointAt(s);else{if(u===47)break;u=47}if(u===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(n.length>0){n="",r=0,i=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,o=0}else u===46&&o>-1?o++:o=-1}return n}function Hn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const tb={cwd:nb};function nb(){return"/"}function ji(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function rb(e){if(typeof e=="string")e=new URL(e);else if(!ji(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 ib(e)}function ib(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 Ji=["history","path","basename","stem","extname","dirname"];class ga{constructor(t){let n;t?ji(t)?n={path:t}:typeof t=="string"||ob(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":tb.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ji.length;){const o=Ji[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Ji.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?lt.basename(this.path):void 0}set basename(t){_i(t,"basename"),Yi(t,"basename"),this.path=lt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?lt.dirname(this.path):void 0}set dirname(t){ma(this.basename,"dirname"),this.path=lt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?lt.extname(this.path):void 0}set extname(t){if(Yi(t,"extname"),ma(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=lt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ji(t)&&(t=rb(t)),_i(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?lt.basename(this.path,this.extname):void 0}set stem(t){_i(t,"stem"),Yi(t,"stem"),this.path=lt.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 Te(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 Yi(e,t){if(e&&e.includes(lt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+lt.sep+"`")}function _i(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ma(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function ob(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const sb=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},ub={}.hasOwnProperty;class Ui extends sb{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=Ym()}copy(){const t=new Ui;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Wi(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?($i("data",this.frozen),this.namespace[t]=n,this):ub.call(this.namespace,t)&&this.namespace[t]||void 0:t?($i("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=Gr(t),r=this.parser||this.Parser;return Qi("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Qi("process",this.parser||this.Parser),qi("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const u=Gr(t),a=r.parse(u);r.run(a,u,function(c,d,f){if(c||!d||!f)return l(c);const p=d,y=r.stringify(p,f);cb(y)?f.value=y:f.result=y,l(c,f)});function l(c,d){c||!d?s(c):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Qi("processSync",this.parser||this.Parser),qi("processSync",this.compiler||this.Compiler),this.process(t,i),ya("processSync","process",n),r;function i(o,s){n=!0,ua(o),r=s}}run(t,n,r){ba(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,u){const a=Gr(n);i.run(t,a,l);function l(c,d,f){const p=d||t;c?u(c):s?s(p):r(void 0,p,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),ya("runSync","run",r),i;function o(s,u){ua(s),i=u,r=!0}}stringify(t,n){this.freeze();const r=Gr(n),i=this.compiler||this.Compiler;return qi("stringify",i),ba(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if($i("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(l){if(typeof l=="function")a(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[c,...d]=l;a(c,d)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))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");u(l.plugins),l.settings&&(i.settings=Wi(!0,i.settings,l.settings))}function u(l){let c=-1;if(l!=null)if(Array.isArray(l))for(;++c<l.length;){const d=l[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function a(l,c){let d=-1,f=-1;for(;++d<r.length;)if(r[d][0]===l){f=d;break}if(f===-1)r.push([l,...c]);else if(c.length>0){let[p,...y]=c;const g=r[f][1];Zi(g)&&Zi(p)&&(p=Wi(!0,g,p)),r[f]=[l,p,...y]}}}}const ab=new Ui().freeze();function Qi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function qi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function $i(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 ba(e){if(!Zi(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ya(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Gr(e){return lb(e)?e:new ga(e)}function lb(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function cb(e){return typeof e=="string"||db(e)}function db(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const pb="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ia=[],va={allowDangerousHtml:!0},fb=/^(https?|ircs?|mailto|xmpp)$/i,hb=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function gb(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,s=e.disallowedElements,u=e.rehypePlugins||Ia,a=e.remarkPlugins||Ia,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...va}:va,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||mb,p=ab().use(Qg).use(a).use(jm,l).use(u),y=new ga;typeof r=="string"&&(y.value=r);for(const A of hb)Object.hasOwn(e,A.from)&&(""+A.from+(A.to?"use `"+A.to+"` instead":"remove it")+pb+A.id,void 0);const g=p.parse(y);let I=p.runSync(g,y);return i&&(I={type:"element",tagName:"div",properties:{className:i},children:I.type==="root"?I.children:[I]}),ia(I,v),Nf(I,{Fragment:T.Fragment,components:o,ignoreInvalidStyle:!0,jsx:T.jsx,jsxs:T.jsxs,passKeys:!0,passNode:!0});function v(A,w,S){if(A.type==="raw"&&S&&typeof w=="number")return c?S.children.splice(w,1):S.children[w]={type:"text",value:A.value},w;if(A.type==="element"){let P;for(P in ki)if(Object.hasOwn(ki,P)&&Object.hasOwn(A.properties,P)){const E=A.properties[P],O=ki[P];(O===null||O.includes(A.tagName))&&(A.properties[P]=f(String(E||""),P,A))}}if(A.type==="element"){let P=t?!t.includes(A.tagName):s?s.includes(A.tagName):!1;if(!P&&n&&typeof w=="number"&&(P=!n(A,w,S)),P&&S&&typeof w=="number")return d&&A.children?S.children.splice(w,1,...A.children):S.children.splice(w,1),w}}}function mb(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||fb.test(e.slice(0,t))?e:""}function Ca(e){e.field||console.log("props",e);const{field:t,markdown:n}=e,{prop:r}=t,{getClassNames:i,getStyles:o,theme:s}=ze(),u={color:s.colors.neutral50,fontWeight:400,fontSize:"0.75rem",gridArea:"description",textWrap:"balance",lineHeight:"1.5"};return r.type==="app"?T.jsx("p",{className:i("description",e),style:o("description",u,e),children:"Credentials are encrypted."}):r.description?T.jsx("div",{className:i("description",e),style:o("description",u,e),children:T.jsx(gb,{children:n})}):null}function xa(e){const{errors:t}=e,{getProps:n,theme:r}=ze(),i={color:r.colors.danger,gridArea:"errors"};return t.length?T.jsx("ul",{...n("errors",i,e),children:t.map(o=>T.jsx("li",{...n("error",i,e),children:o},o))}):null}function Aa(e){const{text:t,field:n}=e,{id:r}=n,{getProps:i,theme:o}=ze(),s={color:o.colors.neutral90,fontWeight:450,gridArea:"label",lineHeight:"1.5"};return T.jsx("label",{htmlFor:r,...i("label",s,e),children:t})}const Sa=e=>{const{prop:t,enabled:n,onClick:r}=e,{getProps:i,theme:o}=ze(),s={color:o.colors.neutral60,display:"inline-flex",alignItems:"center",padding:`${o.spacing.baseUnit}px ${o.spacing.baseUnit*1.5}px ${o.spacing.baseUnit}px ${o.spacing.baseUnit*2.5}px`,border:`1px solid ${o.colors.neutral30}`,borderRadius:o.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:o.spacing.baseUnit*2,textWrap:"nowrap"};return T.jsxs("button",{onClick:r,type:"button",...i("optionalFieldButton",s,e),children:[T.jsx("span",{children:n?"-":"+"}),T.jsx("span",{style:{marginRight:8},children:t.label||t.name})]})},wa=e=>{const{onChange:t}=e,{getProps:n,theme:r}=ze(),i={backgroundColor:r.colors.primary,borderRadius:r.borderRadius,border:"solid 1px",borderColor:r.colors.primary25,color:r.colors.primary25,padding:"0.5rem",fontSize:"0.8125rem",fontWeight:"450",gridArea:"control",cursor:"pointer",width:"100%"};return T.jsx("button",{onClick:t,type:"button",...n("loadMoreButton",i,e),children:"Load More"})},Ea={Description:Ca,Errors:xa,Label:Aa,OptionalFieldButton:Sa,Button:wa},Br=G.createContext({classNames:{},classNamePrefix:"",components:{},styles:{},theme:yr,unstyled:!1});function bb(){const e=G.useContext(Br)??{},t=Js(e.theme??{});function n(){return e.classNamePrefix??""}function r(u){var c;const a=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${u}`,l={...((c=e.classNames)==null?void 0:c[u])??{}};return typeof(l==null?void 0:l.container)=="function"&&(l.container=typeof(l==null?void 0:l.container)=="function"?(...d)=>{var f;return[(f=l==null?void 0:l.container)==null?void 0:f.call(l,...d),a].join(" ")}:()=>a),l}function i(u,a){var l;return{...Tn,...a??{},...((l=e==null?void 0:e.components)==null?void 0:l[u])??{}}}function o(u,a){var l;return Mp(((l=e.styles)==null?void 0:l[u])??{},a??{})}function s(u,a){return{classNamePrefix:n(),classNames:r(u),components:i(u,a==null?void 0:a.components),styles:o(u,a==null?void 0:a.styles),theme:t}}return{getClassNamePrefix:n,getClassNames:r,getComponents:i,getProps:s,getStyles:o,theme:t}}function ze(){const e=G.useContext(Br)??{},t=e.theme,n=e.unstyled?js:yr,r=typeof t=="function"?Ir(n,t(n)):Ir(n,t);function i(a,l){var f;const c=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${a.toLowerCase()}`,d=(f=e.classNames)==null?void 0:f[a];if(typeof d=="function"){const p=d,y={...l??{},theme:r};return[c,p(y)].filter(Boolean).join(" ")}return[c,d].filter(Boolean).join(" ")}function o(){return{...Ea,...(e==null?void 0:e.components)??{}}}function s(a,l,c){var f;const d=(f=e.styles)==null?void 0:f[a];if(typeof d=="function"){const p=d,y={...c??{},theme:r};return p(l,y)}return d?{...l,...d}:l}function u(a,l,c){return{className:i(a,c),style:s(a,l,c)}}return{getClassNames:i,getComponents:o,getProps:u,getStyles:s,select:bb(),theme:r}}const yb=({children:e,...t})=>T.jsx(Br.Provider,{value:t,children:e}),Ki=G.createContext(void 0),Ht=()=>{const e=G.useContext(Ki);if(!e)throw new Error("Must be used inside FormFieldContext.Provider");return e},Fa=(e,t)=>{var i;const n=mt(),r=Mt({...t==null?void 0:t.useQueryOpts,queryKey:["accounts",e],queryFn:()=>n.getAccounts(e)});return{...r,accounts:((i=r.data)==null?void 0:i.data)||[]}},Ib=e=>T.jsx(Tn.Option,{...e,children:e.data.name});function Pa({app:e}){const t=mt(),n=Ht(),{id:r,prop:i,value:o,onChange:s}=n,{getProps:u,select:a,theme:l}=ze(),c={color:l.colors.neutral60,gridArea:"control"},d={backgroundColor:l.colors.primary,borderRadius:l.borderRadius,border:"solid 1px",borderColor:l.colors.primary25,color:l.colors.primary25,padding:"0.25rem 0.5rem",gridArea:"control"},f={components:{Option:Ib},styles:{control:S=>({...S,gridArea:"control",boxShadow:l.boxShadow.input})}},p=a.getProps("controlAppSelect",f),y=void 0,{isLoading:g,accounts:I,refetch:v}=Fa({app:e.name_slug,oauth_app_id:y},{useQueryOpts:{enabled:!!e,suspense:!!e}}),A=async()=>{t.connectAccount({app:i.app,oauthAppId:y,onSuccess:async S=>{await v(),s({authProvisionId:S.id})},onError:()=>{}})},w=G.useMemo(()=>{let S=o;if(S!=null){for(const P of I)if(S.authProvisionId===P.id){S=P;break}}return S},[I,o]);return T.jsx("div",{...u("controlApp",c,{app:e,...n}),children:g?`Loading ${e.name} accounts...`:I.length?T.jsx(br,{instanceId:r,value:w,options:[...I,{id:"_new",name:`Connect new ${e.name} account...`}],...p,required:!0,placeholder:`Select ${e.name} account...`,isLoading:g,isClearable:!0,isSearchable:!0,getOptionLabel:S=>S.name,getOptionValue:S=>S.id,onChange:S=>{S?S.id==="_new"?A():s({authProvisionId:S.id}):s(void 0)}}):T.jsxs("button",{type:"button",...u("connectButton",d,{app:e,...n}),onClick:()=>A(),children:["Connect ",e.name]})})}function ka(){const e=Ht(),{id:t,value:n,onChange:r}=e,{getProps:i}=ze(),o={width:"16px",height:"16px",gridArea:"control",margin:"0 0.5rem 0 0"};return T.jsx("input",{id:t,type:"checkbox",...i("controlBoolean",o,e),checked:n??!1,onChange:s=>r(s.target.checked)})}function Ga(){const e=Ht(),{id:t,onChange:n,prop:r,value:i}=e,{getProps:o,theme:s}=ze(),u={color:s.colors.neutral60,display:"block",border:"1px solid",borderColor:s.colors.neutral20,padding:6,width:"100%",borderRadius:s.borderRadius,gridArea:"control",boxShadow:s.boxShadow.input};let a="off",l="text",c=d=>d;switch(r.type){case"string":break;case"integer":l="number",c=d=>d?parseInt(d):void 0;break;default:throw new Error("unexpected prop.type for ControlInput: "+r.type)}return"secret"in r&&r.secret&&(l="password",a="new-password"),T.jsx("input",{id:t,type:l,name:r.name,value:i??"",onChange:d=>n(c(d.target.value)),...o("controlInput",u,e),min:"min"in r?r.min:void 0,max:"max"in r?r.max:void 0,autoComplete:a,"data-lpignore":"true","data-1p-ignore":"true",required:!r.optional})}var vb=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Ba=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=String(t).toLowerCase(),o=String(r.getOptionValue(n)).toLowerCase(),s=String(r.getOptionLabel(n)).toLowerCase();return o===i||s===i},eo={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,r,i){return!(!t||n.some(function(o){return Ba(t,o,i)})||r.some(function(o){return Ba(t,o,i)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function Cb(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,r=e.createOptionPosition,i=r===void 0?"last":r,o=e.formatCreateLabel,s=o===void 0?eo.formatCreateLabel:o,u=e.isValidNewOption,a=u===void 0?eo.isValidNewOption:u,l=e.getNewOptionData,c=l===void 0?eo.getNewOptionData:l,d=e.onCreateOption,f=e.options,p=f===void 0?[]:f,y=e.onChange,g=st(e,vb),I=g.getOptionValue,v=I===void 0?Vs:I,A=g.getOptionLabel,w=A===void 0?Ts:A,S=g.inputValue,P=g.isLoading,E=g.isMulti,O=g.value,B=g.name,D=G.useMemo(function(){return a(S,cr(O),p,{getOptionValue:v,getOptionLabel:w})?c(S,s(S)):void 0},[s,c,w,v,S,a,p,O]),j=G.useMemo(function(){return(n||!P)&&D?i==="first"?[D].concat(on(p)):[].concat(on(p),[D]):p},[n,i,P,D,p]),L=G.useCallback(function(R,te){if(te.action!=="select-option")return y(R,te);var se=Array.isArray(R)?R:[R];if(se[se.length-1]===D){if(d)d(S);else{var z=c(S,S),U={action:"create-option",name:B,option:z};y(On(E,[].concat(on(cr(O)),[z]),z),U)}return}y(R,te)},[c,S,E,B,D,d,y,O]);return Y(Y({},g),{},{options:j,onChange:L})}var xb=G.forwardRef(function(e,t){var n=Uo(e),r=Cb(n);return re.createElement(yi,_({ref:t},r))}),Ab=xb;function Or({isCreatable:e,options:t,selectProps:n,showLoadMoreButton:r,onLoadMore:i}){const o=Ht(),{id:s,prop:u,value:a,onChange:l}=o,{select:c,theme:d}=ze(),f={styles:{container:A=>({...A,gridArea:"control",boxShadow:d.boxShadow.input})}},p=G.useMemo(()=>{let A=a;if(A!=null)if(Array.isArray(A)){if(typeof A[0]!="object"){const w=[];for(const S of A)w.push({label:S,value:S});A=w}}else if(typeof A!="object"){if((t==null?void 0:t[0])&&typeof t[0]=="object"){for(const S of t)if(S.value===a){A=S;break}}}else A.__lv&&(A=A.__lv);return A},[a,t]),y=({children:A,...w})=>T.jsxs(Tn.MenuList,{...w,children:[A,T.jsx("div",{className:"pt-4",children:T.jsx(wa,{onChange:i})})]}),g=c.getProps("controlSelect",f);r&&(g.components={...g.components,MenuList:y});const I=A=>{t.unshift({label:A,value:A})},v=e?Ab:br;return T.jsx(v,{inputId:s,instanceId:s,options:t,value:p,isMulti:u.type.endsWith("[]"),isClearable:!0,required:!u.optional,...g,...n,onCreateOption:I,onChange:A=>{if(A)if(Array.isArray(A))if(typeof A[0]=="object"&&"value"in A[0]){const w=[];for(const S of A)u.withLabel?w.push(S):w.push(S.value);l(w)}else l(A);else if(typeof A=="object"&&"value"in A)u.withLabel?l({__lv:A}):l(A.value);else throw new Error("unhandled option type");else l(void 0)}})}function Oa({queryEnabled:e}){const t=mt(),{userId:n,component:r,configurableProps:i,configuredProps:o,dynamicProps:s,props:{disableQueryDisabling:u}}=nr(),{idx:a,prop:l}=Ht(),[c,d]=G.useState(""),[f,p]=G.useState(0),[y,g]=G.useState(!0),[I,v]=G.useState(void 0),[A,w]=G.useState({page:0,prevContext:{},data:[],values:new Set}),S={};for(let z=0;z<a;z++){const U=i[z];S[U.name]=o[U.name]}const P={userId:n,page:f,prevContext:I,componentId:r.key,propName:l.name,configuredProps:S,dynamicPropsId:s==null?void 0:s.id};l.useQuery&&(P.query=c||"");const E={...P};delete E.dynamicPropsId;const[O,B]=G.useState(),D=()=>{p(A.page),v(A.prevContext),w({...A,prevContext:{}})},{isFetching:j,refetch:L}=Mt({queryKey:["componentConfigure",E],queryFn:async()=>{B(void 0);const z=await t.componentConfigure(P),{options:U,stringOptions:Q,errors:ce}=z;if(ce!=null&&ce.length){try{B(JSON.parse(ce[0]))}catch{B({name:"Error",message:ce[0]})}return[]}let ye=[];if(U!=null&&U.length&&(ye=U),Q!=null&&Q.length){const m=[];for(const me of Q)m.push({label:me,value:me});ye=m}const b=[],xe=new Set(A.values);for(const m of ye||[]){const me=typeof m=="string"?m:m.value;xe.has(me)||(xe.add(me),b.push(m))}let le=A.data;return b.length?(le=[...A.data,...b],w({page:f+1,prevContext:z.context,data:le,values:xe})):g(!1),le},enabled:!!e}),R=()=>!j&&!O&&y,te=O?O.message:u?"Click to configure":e?void 0:"Configure props above first",se=u?!1:!e;return T.jsx(Or,{isCreatable:!0,showLoadMoreButton:R(),onLoadMore:D,options:A.data,selectProps:{isLoading:j,placeholder:te,isDisabled:se,inputValue:l.useQuery?c:void 0,onInputChange(z){l.useQuery&&(d(z),L())},onMenuOpen(){u&&!e&&L()}}})}function Ta(e){const{field:t,form:n}=e,{queryDisabledIdx:r}=n,{prop:i,idx:o}=t,s="app"in t.extra?t.extra.app:void 0;if(i.remoteOptions||i.type==="$.discord.channel")return T.jsx(Oa,{queryEnabled:r==null||r>=o});if("options"in i&&i.options){let u=i.options;return typeof u[0]!="object"&&(u=u.map(a=>({label:a,value:a}))),T.jsx(Or,{options:u,components:{IndicatorSeparator:()=>null}})}if(i.type.endsWith("[][]"))throw new Error("Unsupported property type: "+i.type);if(i.type.endsWith("[]"))return T.jsx(Or,{isCreatable:!0,options:[],components:{IndicatorSeparator:()=>null}});switch(i.type){case"app":return T.jsx(Pa,{app:s});case"boolean":return T.jsx(ka,{});case"string":case"integer":return T.jsx(Ga,{});default:throw new Error("Unsupported property type: "+i.type)}}function Va(e){const{form:t,field:n}=e,{prop:r}=n,{getProps:i,getComponents:o}=ze(),s={display:"grid",gridTemplateAreas:n.prop.type=="boolean"?'"control label" "description description" "error error"':'"label label" "control control" "description description" "error error"',gridTemplateColumns:"min-content auto",gap:"0.25rem 0",alignItems:"center",fontSize:"0.875rem"},{Label:u,Description:a,Errors:l}=o(),c=[],d="app"in n.extra?n.extra.app:void 0;if(d&&!d.auth_type)return null;let f=r.label||r.name;return d&&(f=`Connect ${d.name} account`),T.jsxs("div",{...i("field",s,e),children:[T.jsx(u,{text:f,field:n,form:t}),T.jsx(Ta,{field:n,form:t}),T.jsx(a,{markdown:r.description,field:n,form:t}),T.jsx(l,{errors:c,field:n,form:t})]})}const Ra=(e,t)=>{var i;const n=mt(),r=Mt({queryKey:["app",e],queryFn:()=>n.app(e),...t==null?void 0:t.useQueryOpts});return{...r,app:(i=r.data)==null?void 0:i.data}};function Da({prop:e,idx:t}){const n=nr(),{id:r,configuredProps:i,registerField:o,setConfiguredProp:s}=n,u=e.type==="app"&&"app"in e?e.app:void 0,{app:a}=Ra(u||"",{useQueryOpts:{enabled:!!u,suspense:!!u}}),c={id:`pd${r}${e.name}`,prop:e,idx:t,value:i[e.name],onChange(d){s(t,d)},extra:{app:a}};return G.useEffect(()=>o(c),[c]),T.jsx(Ki.Provider,{value:c,children:T.jsx(Va,{field:c,form:n})})}class Na extends G.Component{constructor(){super(...arguments),this.state={err:void 0}}static getDerivedStateFromError(t){return{err:t}}render(){const{err:t}=this.state;return t?this.props.fallback(t):this.props.children}}function Ma(e){const{form:t}=e,{propsNeedConfiguring:n,submitting:r}=t,{getProps:i,theme:o}=ze(),s=u=>{var a;return{width:"fit-content",textTransform:"capitalize",backgroundColor:u?o.colors.neutral10:o.colors.primary,color:u?o.colors.neutral40:o.colors.neutral0,padding:`${o.spacing.baseUnit*1.75}px ${o.spacing.baseUnit*16}px`,borderRadius:o.borderRadius,boxShadow:(a=o.boxShadow)==null?void 0:a.button,cursor:"pointer",fontSize:"0.875rem",opacity:r?.5:void 0,margin:"0.5rem 0 0 0"}};return T.jsx("input",{type:"submit",value:r?"Submitting...":"Submit",...i("controlSubmit",s(n.length||r),e),disabled:n.length||r})}function La(){const e=nr(),{configurableProps:t,dynamicPropsQueryIsFetching:n,isValid:r,optionalPropIsEnabled:i,optionalPropSetEnabled:o,props:s,setSubmitting:u}=e,{hideOptionalProps:a,onSubmit:l}=s,{getComponents:c,getProps:d,theme:f}=ze(),{OptionalFieldButton:p}=c(),y={display:"flex",flexDirection:"column",gap:"1.5rem"},g={display:"flex",flexWrap:"wrap",gap:"0.375rem"},I={fontWeight:600,textTransform:"capitalize",color:f.colors.neutral60,fontSize:"0.875rem",lineHeight:"1.375",margin:"0 0 0.5rem 0"},v=async S=>{if(l&&(S.preventDefault(),r)){u(!0);try{await l(e)}finally{u(!1)}}},A=[],w=[];for(let S=0;S<t.length;S++){const P=t[S];if(!P.hidden&&!Gn.includes(P.type)){if(P.optional){const E=i(P);if(w.push([P,E]),!E)continue}A.push([P,S])}}return T.jsx(Na,{fallback:S=>T.jsxs("p",{style:{color:"red"},children:["Error: ",S&&typeof S=="object"&&"message"in S&&typeof S.message=="string"?S.message:"Unknown"]}),children:T.jsx(G.Suspense,{fallback:T.jsx("p",{children:"Loading form..."}),children:T.jsxs("form",{...d("componentForm",y,s),onSubmit:v,children:[A.map(([S,P])=>S.type==="alert"?T.jsx(xo,{prop:S},S.name):T.jsx(Da,{prop:S,idx:P},S.name)),n&&T.jsx("p",{children:"Loading dynamic props..."}),!a&&w.length?T.jsxs("div",{children:[T.jsx("div",{...d("heading",I,s),children:"Optional Props"}),T.jsx("div",{...d("optionalFields",g,s),children:w.map(([S,P])=>T.jsx(p,{prop:S,enabled:P,onClick:()=>o(S,!P)},S.name))})]}):null,l&&T.jsx(Ma,{form:e})]})})})}function Xa(e){return T.jsx(jo,{props:e,children:T.jsx(La,{})})}const za=({key:e},t)=>{var i;const n=mt(),r=Mt({queryKey:["component",e],queryFn:()=>n.component({key:e}),enabled:!!e,...t==null?void 0:t.useQueryOpts});return{...r,component:(i=r.data)==null?void 0:i.data}};function Sb(e){const{isLoading:t,error:n,component:r}=za({key:e.componentKey});if(!e.componentKey)throw new Error("componentKey required");return t?T.jsx("p",{children:"Loading..."}):n?T.jsxs("p",{children:["Error: ",n.message]}):r?T.jsx(Xa,{component:r,...e}):T.jsx("p",{children:"Component not found"})}function wb(){const e=Ht(),{id:t,onChange:n,value:r}=e,{getProps:i,theme:o}=ze(),s={display:"block",gridArea:"control",width:"100%",fontSize:"0.875rem",boxShadow:o.boxShadow.input};let u=r;return typeof u=="object"&&(u=JSON.stringify(u)),T.jsx("textarea",{id:t,value:u,onChange:a=>n(a.target.value),...i("controlAny",s,e)})}const Ha=e=>{var r;const t=mt(),n=Mt({queryKey:["apps",e],queryFn:()=>t.apps(e)});return{...n,apps:(r=n.data)==null?void 0:r.data}};function Eb({value:e,onChange:t}){const[n,r]=G.useState(""),i=G.useId(),{isLoading:o,apps:s}=Ha({q:n}),{Option:u}=Tn;return T.jsx(br,{instanceId:i,className:"react-select-container text-sm",classNamePrefix:"react-select",components:{Option:a=>T.jsx(u,{...a,children:T.jsxs("div",{style:{display:"flex",gap:10},children:[T.jsx("img",{src:`https://pipedream.com/s.v0/${a.data.id}/logo/48`,style:{height:24,width:24},alt:a.data.name}),T.jsx("span",{style:{whiteSpace:"nowrap"},children:a.data.name})]})}),IndicatorSeparator:()=>null},options:s||[],getOptionLabel:a=>a.name||a.name_slug,getOptionValue:a=>a.name_slug,value:e,onChange:a=>t==null?void 0:t(a||void 0),onInputChange:a=>r(a),isLoading:o})}const Wa=e=>{var r;const t=mt(),n=Mt({queryKey:["components",e],queryFn:()=>t.components(e)});return{...n,components:((r=n.data)==null?void 0:r.data)||[]}};function Fb({app:e,componentType:t,value:n,onChange:r}){const i=G.useId(),{isLoading:o,components:s}=Wa({app:e==null?void 0:e.name_slug,componentType:t});return T.jsx(br,{instanceId:i,className:"react-select-container text-sm",classNamePrefix:"react-select",options:s,getOptionLabel:u=>u.name||u.key,getOptionValue:u=>u.key,value:n,onChange:u=>r==null?void 0:r(u||void 0),isLoading:o,components:{IndicatorSeparator:()=>null}})}X.Alert=xo,X.ComponentForm=Xa,X.ComponentFormContainer=Sb,X.Control=Ta,X.ControlAny=wb,X.ControlApp=Pa,X.ControlBoolean=ka,X.ControlInput=Ga,X.ControlSelect=Or,X.ControlSubmit=Ma,X.CustomizationContext=Br,X.CustomizeProvider=yb,X.Description=Ca,X.ErrorBoundary=Na,X.Errors=xa,X.Field=Va,X.FormContext=ni,X.FormContextProvider=jo,X.FormFieldContext=Ki,X.FrontendClientProvider=Ul,X.InternalComponentForm=La,X.InternalField=Da,X.Label=Aa,X.OptionalFieldButton=Sa,X.RemoteOptionsContainer=Oa,X.SelectApp=Eb,X.SelectComponent=Fb,X.defaultComponents=Ea,X.defaultTheme=yr,X.getReactSelectTheme=Js,X.mergeTheme=Ir,X.skippablePropTypes=Gn,X.unstyledTheme=js,X.useAccounts=Fa,X.useApp=Ra,X.useApps=Ha,X.useComponent=za,X.useComponents=Wa,X.useCustomize=ze,X.useFormContext=nr,X.useFormFieldContext=Ht,X.useFrontendClient=mt,Object.defineProperty(X,Symbol.toStringTag,{value:"Module"})});
19
+ `},i),o}function jm(e,t){return e&&"run"in e?async function(n,r){const i=sa(n,{file:r,...t});await e.run(i,r)}:function(n,r){return sa(n,{file:r,...e||t})}}function ua(e){if(e)throw e}var kr=Object.prototype.hasOwnProperty,aa=Object.prototype.toString,la=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,da=function(t){return typeof Array.isArray=="function"?Array.isArray(t):aa.call(t)==="[object Array]"},pa=function(t){if(!t||aa.call(t)!=="[object Object]")return!1;var n=kr.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&kr.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||kr.call(t,i)},fa=function(t,n){la&&n.name==="__proto__"?la(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},ha=function(t,n){if(n==="__proto__")if(kr.call(t,n)){if(ca)return ca(t,n).value}else return;return t[n]},Jm=function e(){var t,n,r,i,o,s,u=arguments[0],a=1,l=arguments.length,c=!1;for(typeof u=="boolean"&&(c=u,u=arguments[1]||{},a=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});a<l;++a)if(t=arguments[a],t!=null)for(n in t)r=ha(u,n),i=ha(t,n),u!==i&&(c&&i&&(pa(i)||(o=da(i)))?(o?(o=!1,s=r&&da(r)?r:[]):s=r&&pa(r)?r:{},fa(u,{name:n,newValue:e(c,s,i)})):typeof i<"u"&&fa(u,{name:n,newValue:i}));return u};const Wi=Ao(Jm);function Zi(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 Ym(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);u(null,...i);function u(a,...l){const c=e[++o];let d=-1;if(a){s(a);return}for(;++d<i.length;)(l[d]===null||l[d]===void 0)&&(l[d]=i[d]);i=l,c?_m(c,u)(...l):s(null,...l)}}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(...s){const u=e.length>s.length;let a;u&&s.push(i);try{a=e.apply(this,s)}catch(l){const c=l;if(u&&n)throw c;return i(c)}u||(a&&a.then&&typeof a.then=="function"?a.then(o,i):a instanceof Error?i(a):o(a))}function i(s,...u){n||(n=!0,t(s,...u))}function o(s){i(null,s)}}const lt={basename:Um,dirname:Qm,extname:qm,join:$m,sep:"/"};function Um(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Hn(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Qm(e){if(Hn(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 qm(e){Hn(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const u=e.codePointAt(t);if(u===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),u===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function $m(...e){let t=-1,n;for(;++t<e.length;)Hn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Km(n)}function Km(e){Hn(e);const t=e.codePointAt(0)===47;let n=eb(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function eb(e,t){let n="",r=0,i=-1,o=0,s=-1,u,a;for(;++s<=e.length;){if(s<e.length)u=e.codePointAt(s);else{if(u===47)break;u=47}if(u===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(n.length>0){n="",r=0,i=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,o=0}else u===46&&o>-1?o++:o=-1}return n}function Hn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const tb={cwd:nb};function nb(){return"/"}function ji(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function rb(e){if(typeof e=="string")e=new URL(e);else if(!ji(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 ib(e)}function ib(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 Ji=["history","path","basename","stem","extname","dirname"];class ga{constructor(t){let n;t?ji(t)?n={path:t}:typeof t=="string"||ob(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":tb.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ji.length;){const o=Ji[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Ji.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?lt.basename(this.path):void 0}set basename(t){_i(t,"basename"),Yi(t,"basename"),this.path=lt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?lt.dirname(this.path):void 0}set dirname(t){ma(this.basename,"dirname"),this.path=lt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?lt.extname(this.path):void 0}set extname(t){if(Yi(t,"extname"),ma(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=lt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ji(t)&&(t=rb(t)),_i(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?lt.basename(this.path,this.extname):void 0}set stem(t){_i(t,"stem"),Yi(t,"stem"),this.path=lt.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 Te(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 Yi(e,t){if(e&&e.includes(lt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+lt.sep+"`")}function _i(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ma(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function ob(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const sb=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},ub={}.hasOwnProperty;class Ui extends sb{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=Ym()}copy(){const t=new Ui;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Wi(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?($i("data",this.frozen),this.namespace[t]=n,this):ub.call(this.namespace,t)&&this.namespace[t]||void 0:t?($i("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=Gr(t),r=this.parser||this.Parser;return Qi("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Qi("process",this.parser||this.Parser),qi("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const u=Gr(t),a=r.parse(u);r.run(a,u,function(c,d,f){if(c||!d||!f)return l(c);const p=d,y=r.stringify(p,f);cb(y)?f.value=y:f.result=y,l(c,f)});function l(c,d){c||!d?s(c):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Qi("processSync",this.parser||this.Parser),qi("processSync",this.compiler||this.Compiler),this.process(t,i),ya("processSync","process",n),r;function i(o,s){n=!0,ua(o),r=s}}run(t,n,r){ba(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,u){const a=Gr(n);i.run(t,a,l);function l(c,d,f){const p=d||t;c?u(c):s?s(p):r(void 0,p,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),ya("runSync","run",r),i;function o(s,u){ua(s),i=u,r=!0}}stringify(t,n){this.freeze();const r=Gr(n),i=this.compiler||this.Compiler;return qi("stringify",i),ba(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if($i("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(l){if(typeof l=="function")a(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[c,...d]=l;a(c,d)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))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");u(l.plugins),l.settings&&(i.settings=Wi(!0,i.settings,l.settings))}function u(l){let c=-1;if(l!=null)if(Array.isArray(l))for(;++c<l.length;){const d=l[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function a(l,c){let d=-1,f=-1;for(;++d<r.length;)if(r[d][0]===l){f=d;break}if(f===-1)r.push([l,...c]);else if(c.length>0){let[p,...y]=c;const g=r[f][1];Zi(g)&&Zi(p)&&(p=Wi(!0,g,p)),r[f]=[l,p,...y]}}}}const ab=new Ui().freeze();function Qi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function qi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function $i(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 ba(e){if(!Zi(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ya(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Gr(e){return lb(e)?e:new ga(e)}function lb(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function cb(e){return typeof e=="string"||db(e)}function db(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const pb="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ia=[],va={allowDangerousHtml:!0},fb=/^(https?|ircs?|mailto|xmpp)$/i,hb=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function gb(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,s=e.disallowedElements,u=e.rehypePlugins||Ia,a=e.remarkPlugins||Ia,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...va}:va,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||mb,p=ab().use(Qg).use(a).use(jm,l).use(u),y=new ga;typeof r=="string"&&(y.value=r);for(const A of hb)Object.hasOwn(e,A.from)&&(""+A.from+(A.to?"use `"+A.to+"` instead":"remove it")+pb+A.id,void 0);const g=p.parse(y);let I=p.runSync(g,y);return i&&(I={type:"element",tagName:"div",properties:{className:i},children:I.type==="root"?I.children:[I]}),ia(I,v),Nf(I,{Fragment:T.Fragment,components:o,ignoreInvalidStyle:!0,jsx:T.jsx,jsxs:T.jsxs,passKeys:!0,passNode:!0});function v(A,E,S){if(A.type==="raw"&&S&&typeof E=="number")return c?S.children.splice(E,1):S.children[E]={type:"text",value:A.value},E;if(A.type==="element"){let P;for(P in ki)if(Object.hasOwn(ki,P)&&Object.hasOwn(A.properties,P)){const w=A.properties[P],O=ki[P];(O===null||O.includes(A.tagName))&&(A.properties[P]=f(String(w||""),P,A))}}if(A.type==="element"){let P=t?!t.includes(A.tagName):s?s.includes(A.tagName):!1;if(!P&&n&&typeof E=="number"&&(P=!n(A,E,S)),P&&S&&typeof E=="number")return d&&A.children?S.children.splice(E,1,...A.children):S.children.splice(E,1),E}}}function mb(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||fb.test(e.slice(0,t))?e:""}function Ca(e){e.field||console.log("props",e);const{field:t,markdown:n}=e,{prop:r}=t,{getClassNames:i,getStyles:o,theme:s}=ze(),u={color:s.colors.neutral50,fontWeight:400,fontSize:"0.75rem",gridArea:"description",textWrap:"balance",lineHeight:"1.5"};return r.type==="app"?T.jsx("p",{className:i("description",e),style:o("description",u,e),children:"Credentials are encrypted."}):r.description?T.jsx("div",{className:i("description",e),style:o("description",u,e),children:T.jsx(gb,{children:n})}):null}function xa(e){const{errors:t}=e,{getProps:n,theme:r}=ze(),i={color:r.colors.danger,gridArea:"errors"};return t.length?T.jsx("ul",{...n("errors",i,e),children:t.map(o=>T.jsx("li",{...n("error",i,e),children:o},o))}):null}function Aa(e){const{text:t,field:n}=e,{id:r}=n,{getProps:i,theme:o}=ze(),s={color:o.colors.neutral90,fontWeight:450,gridArea:"label",lineHeight:"1.5"};return T.jsx("label",{htmlFor:r,...i("label",s,e),children:t})}const Sa=e=>{const{prop:t,enabled:n,onClick:r}=e,{getProps:i,theme:o}=ze(),s={color:o.colors.neutral60,display:"inline-flex",alignItems:"center",padding:`${o.spacing.baseUnit}px ${o.spacing.baseUnit*1.5}px ${o.spacing.baseUnit}px ${o.spacing.baseUnit*2.5}px`,border:`1px solid ${o.colors.neutral30}`,borderRadius:o.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:o.spacing.baseUnit*2,textWrap:"nowrap"};return T.jsxs("button",{onClick:r,type:"button",...i("optionalFieldButton",s,e),children:[T.jsx("span",{children:n?"-":"+"}),T.jsx("span",{style:{marginRight:8},children:t.label||t.name})]})},wa=e=>{const{onChange:t}=e,{getProps:n,theme:r}=ze(),i={backgroundColor:r.colors.primary,borderRadius:r.borderRadius,border:"solid 1px",borderColor:r.colors.primary25,color:r.colors.primary25,padding:"0.5rem",fontSize:"0.8125rem",fontWeight:"450",gridArea:"control",cursor:"pointer",width:"100%"};return T.jsx("button",{onClick:t,type:"button",...n("loadMoreButton",i,e),children:"Load More"})},Ea={Description:Ca,Errors:xa,Label:Aa,OptionalFieldButton:Sa,Button:wa},Br=G.createContext({classNames:{},classNamePrefix:"",components:{},styles:{},theme:yr,unstyled:!1});function bb(){const e=G.useContext(Br)??{},t=Js(e.theme??{});function n(){return e.classNamePrefix??""}function r(u){var c;const a=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${u}`,l={...((c=e.classNames)==null?void 0:c[u])??{}};return typeof(l==null?void 0:l.container)=="function"&&(l.container=typeof(l==null?void 0:l.container)=="function"?(...d)=>{var f;return[(f=l==null?void 0:l.container)==null?void 0:f.call(l,...d),a].join(" ")}:()=>a),l}function i(u,a){var l;return{...Tn,...a??{},...((l=e==null?void 0:e.components)==null?void 0:l[u])??{}}}function o(u,a){var l;return Mp(((l=e.styles)==null?void 0:l[u])??{},a??{})}function s(u,a){return{classNamePrefix:n(),classNames:r(u),components:i(u,a==null?void 0:a.components),styles:o(u,a==null?void 0:a.styles),theme:t}}return{getClassNamePrefix:n,getClassNames:r,getComponents:i,getProps:s,getStyles:o,theme:t}}function ze(){const e=G.useContext(Br)??{},t=e.theme,n=e.unstyled?js:yr,r=typeof t=="function"?Ir(n,t(n)):Ir(n,t);function i(a,l){var f;const c=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${a.toLowerCase()}`,d=(f=e.classNames)==null?void 0:f[a];if(typeof d=="function"){const p=d,y={...l??{},theme:r};return[c,p(y)].filter(Boolean).join(" ")}return[c,d].filter(Boolean).join(" ")}function o(){return{...Ea,...(e==null?void 0:e.components)??{}}}function s(a,l,c){var f;const d=(f=e.styles)==null?void 0:f[a];if(typeof d=="function"){const p=d,y={...c??{},theme:r};return p(l,y)}return d?{...l,...d}:l}function u(a,l,c){return{className:i(a,c),style:s(a,l,c)}}return{getClassNames:i,getComponents:o,getProps:u,getStyles:s,select:bb(),theme:r}}const yb=({children:e,...t})=>T.jsx(Br.Provider,{value:t,children:e}),Ki=G.createContext(void 0),Ht=()=>{const e=G.useContext(Ki);if(!e)throw new Error("Must be used inside FormFieldContext.Provider");return e},Fa=(e,t)=>{var i;const n=mt(),r=Mt({...t==null?void 0:t.useQueryOpts,queryKey:["accounts",e],queryFn:()=>n.getAccounts(e)});return{...r,accounts:((i=r.data)==null?void 0:i.data)||[]}},Ib=e=>T.jsx(Tn.Option,{...e,children:e.data.name});function Pa({app:e}){const t=mt(),n=Ht(),{id:r,prop:i,value:o,onChange:s}=n,{getProps:u,select:a,theme:l}=ze(),c={color:l.colors.neutral60,gridArea:"control"},d={backgroundColor:l.colors.primary,borderRadius:l.borderRadius,border:"solid 1px",borderColor:l.colors.primary25,color:l.colors.primary25,padding:"0.25rem 0.5rem",gridArea:"control"},f={components:{Option:Ib},styles:{control:S=>({...S,gridArea:"control",boxShadow:l.boxShadow.input})}},p=a.getProps("controlAppSelect",f),y=void 0,{isLoading:g,accounts:I,refetch:v}=Fa({app:e.name_slug,oauth_app_id:y},{useQueryOpts:{enabled:!!e,suspense:!!e}}),A=async()=>{t.connectAccount({app:i.app,oauthAppId:y,onSuccess:async S=>{await v(),s({authProvisionId:S.id})},onError:()=>{}})},E=G.useMemo(()=>{let S=o;if(S!=null){for(const P of I)if(S.authProvisionId===P.id){S=P;break}}return S},[I,o]);return T.jsx("div",{...u("controlApp",c,{app:e,...n}),children:g?`Loading ${e.name} accounts...`:I.length?T.jsx(br,{instanceId:r,value:E,options:[...I,{id:"_new",name:`Connect new ${e.name} account...`}],...p,required:!0,placeholder:`Select ${e.name} account...`,isLoading:g,isClearable:!0,isSearchable:!0,getOptionLabel:S=>S.name,getOptionValue:S=>S.id,onChange:S=>{S?S.id==="_new"?A():s({authProvisionId:S.id}):s(void 0)}}):T.jsxs("button",{type:"button",...u("connectButton",d,{app:e,...n}),onClick:()=>A(),children:["Connect ",e.name]})})}function ka(){const e=Ht(),{id:t,value:n,onChange:r}=e,{getProps:i}=ze(),o={width:"16px",height:"16px",gridArea:"control",margin:"0 0.5rem 0 0"};return T.jsx("input",{id:t,type:"checkbox",...i("controlBoolean",o,e),checked:n??!1,onChange:s=>r(s.target.checked)})}function Ga(){const e=Ht(),{id:t,onChange:n,prop:r,value:i}=e,{getProps:o,theme:s}=ze(),u={color:s.colors.neutral60,display:"block",border:"1px solid",borderColor:s.colors.neutral20,padding:6,width:"100%",borderRadius:s.borderRadius,gridArea:"control",boxShadow:s.boxShadow.input};let a="off",l="text",c=d=>d;switch(r.type){case"string":break;case"integer":l="number",c=d=>d?parseInt(d):void 0;break;default:throw new Error("unexpected prop.type for ControlInput: "+r.type)}return"secret"in r&&r.secret&&(l="password",a="new-password"),T.jsx("input",{id:t,type:l,name:r.name,value:i??"",onChange:d=>n(c(d.target.value)),...o("controlInput",u,e),min:"min"in r?r.min:void 0,max:"max"in r?r.max:void 0,autoComplete:a,"data-lpignore":"true","data-1p-ignore":"true",required:!r.optional})}var vb=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Ba=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=String(t).toLowerCase(),o=String(r.getOptionValue(n)).toLowerCase(),s=String(r.getOptionLabel(n)).toLowerCase();return o===i||s===i},eo={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,r,i){return!(!t||n.some(function(o){return Ba(t,o,i)})||r.some(function(o){return Ba(t,o,i)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function Cb(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,r=e.createOptionPosition,i=r===void 0?"last":r,o=e.formatCreateLabel,s=o===void 0?eo.formatCreateLabel:o,u=e.isValidNewOption,a=u===void 0?eo.isValidNewOption:u,l=e.getNewOptionData,c=l===void 0?eo.getNewOptionData:l,d=e.onCreateOption,f=e.options,p=f===void 0?[]:f,y=e.onChange,g=st(e,vb),I=g.getOptionValue,v=I===void 0?Vs:I,A=g.getOptionLabel,E=A===void 0?Ts:A,S=g.inputValue,P=g.isLoading,w=g.isMulti,O=g.value,B=g.name,D=G.useMemo(function(){return a(S,cr(O),p,{getOptionValue:v,getOptionLabel:E})?c(S,s(S)):void 0},[s,c,E,v,S,a,p,O]),j=G.useMemo(function(){return(n||!P)&&D?i==="first"?[D].concat(on(p)):[].concat(on(p),[D]):p},[n,i,P,D,p]),L=G.useCallback(function(R,te){if(te.action!=="select-option")return y(R,te);var se=Array.isArray(R)?R:[R];if(se[se.length-1]===D){if(d)d(S);else{var z=c(S,S),U={action:"create-option",name:B,option:z};y(On(w,[].concat(on(cr(O)),[z]),z),U)}return}y(R,te)},[c,S,w,B,D,d,y,O]);return Y(Y({},g),{},{options:j,onChange:L})}var xb=G.forwardRef(function(e,t){var n=Uo(e),r=Cb(n);return re.createElement(yi,_({ref:t},r))}),Ab=xb;function Or({isCreatable:e,options:t,selectProps:n,showLoadMoreButton:r,onLoadMore:i}){const o=Ht(),{id:s,prop:u,value:a,onChange:l}=o,{select:c,theme:d}=ze(),f={styles:{container:A=>({...A,gridArea:"control",boxShadow:d.boxShadow.input})}},p=G.useMemo(()=>{let A=a;if(A!=null)if(Array.isArray(A)){if(typeof A[0]!="object"){const E=[];for(const S of A){let P={label:S,value:S};for(const w of t)if(w.value===S){P=w;break}E.push(P)}A=E}}else if(typeof A!="object"){if((t==null?void 0:t[0])&&typeof t[0]=="object"){for(const S of t)if(S.value===a){A=S;break}}}else A.__lv&&(A=A.__lv);return A},[a,t]),y=({children:A,...E})=>T.jsxs(Tn.MenuList,{...E,children:[A,T.jsx("div",{className:"pt-4",children:T.jsx(wa,{onChange:i})})]}),g=c.getProps("controlSelect",f);r&&(g.components={...g.components,MenuList:y});const I=A=>{t.unshift({label:A,value:A})},v=e?Ab:br;return T.jsx(v,{inputId:s,instanceId:s,options:t,value:p,isMulti:u.type.endsWith("[]"),isClearable:!0,required:!u.optional,...g,...n,onCreateOption:I,onChange:A=>{if(A)if(Array.isArray(A))if(typeof A[0]=="object"&&"value"in A[0]){const E=[];for(const S of A)u.withLabel?E.push(S):E.push(S.value);l(E)}else l(A);else if(typeof A=="object"&&"value"in A)u.withLabel?l({__lv:A}):l(A.value);else throw new Error("unhandled option type");else l(void 0)}})}function Oa({queryEnabled:e}){const t=mt(),{userId:n,component:r,configurableProps:i,configuredProps:o,dynamicProps:s,props:{disableQueryDisabling:u}}=nr(),{idx:a,prop:l}=Ht(),[c,d]=G.useState(""),[f,p]=G.useState(0),[y,g]=G.useState(!0),[I,v]=G.useState(void 0),[A,E]=G.useState({page:0,prevContext:{},data:[],values:new Set}),S={};for(let z=0;z<a;z++){const U=i[z];S[U.name]=o[U.name]}const P={userId:n,page:f,prevContext:I,componentId:r.key,propName:l.name,configuredProps:S,dynamicPropsId:s==null?void 0:s.id};l.useQuery&&(P.query=c||"");const w={...P};delete w.dynamicPropsId;const[O,B]=G.useState(),D=()=>{p(A.page),v(A.prevContext),E({...A,prevContext:{}})},{isFetching:j,refetch:L}=Mt({queryKey:["componentConfigure",w],queryFn:async()=>{B(void 0);const z=await t.componentConfigure(P),{options:U,stringOptions:Q,errors:ce}=z;if(ce!=null&&ce.length){try{B(JSON.parse(ce[0]))}catch{B({name:"Error",message:ce[0]})}return[]}let ye=[];if(U!=null&&U.length&&(ye=U),Q!=null&&Q.length){const m=[];for(const me of Q)m.push({label:me,value:me});ye=m}const b=[],xe=new Set(A.values);for(const m of ye||[]){const me=typeof m=="string"?m:m.value;xe.has(me)||(xe.add(me),b.push(m))}let le=A.data;return b.length?(le=[...A.data,...b],E({page:f+1,prevContext:z.context,data:le,values:xe})):g(!1),le},enabled:!!e}),R=()=>!j&&!O&&y,te=O?O.message:u?"Click to configure":e?void 0:"Configure props above first",se=u?!1:!e;return T.jsx(Or,{isCreatable:!0,showLoadMoreButton:R(),onLoadMore:D,options:A.data,selectProps:{isLoading:j,placeholder:te,isDisabled:se,inputValue:l.useQuery?c:void 0,onInputChange(z){l.useQuery&&(d(z),L())},onMenuOpen(){u&&!e&&L()}}})}function Ta(e){const{field:t,form:n}=e,{queryDisabledIdx:r}=n,{prop:i,idx:o}=t,s="app"in t.extra?t.extra.app:void 0;if(i.remoteOptions||i.type==="$.discord.channel")return T.jsx(Oa,{queryEnabled:r==null||r>=o});if("options"in i&&i.options){let u=i.options;return typeof u[0]!="object"&&(u=u.map(a=>({label:a,value:a}))),T.jsx(Or,{options:u,components:{IndicatorSeparator:()=>null}})}if(i.type.endsWith("[][]"))throw new Error("Unsupported property type: "+i.type);if(i.type.endsWith("[]"))return T.jsx(Or,{isCreatable:!0,options:[],components:{IndicatorSeparator:()=>null}});switch(i.type){case"app":return T.jsx(Pa,{app:s});case"boolean":return T.jsx(ka,{});case"string":case"integer":return T.jsx(Ga,{});default:throw new Error("Unsupported property type: "+i.type)}}function Va(e){const{form:t,field:n}=e,{prop:r}=n,{getProps:i,getComponents:o}=ze(),s={display:"grid",gridTemplateAreas:n.prop.type=="boolean"?'"control label" "description description" "error error"':'"label label" "control control" "description description" "error error"',gridTemplateColumns:"min-content auto",gap:"0.25rem 0",alignItems:"center",fontSize:"0.875rem"},{Label:u,Description:a,Errors:l}=o(),c=[],d="app"in n.extra?n.extra.app:void 0;if(d&&!d.auth_type)return null;let f=r.label||r.name;return d&&(f=`Connect ${d.name} account`),T.jsxs("div",{...i("field",s,e),children:[T.jsx(u,{text:f,field:n,form:t}),T.jsx(Ta,{field:n,form:t}),T.jsx(a,{markdown:r.description,field:n,form:t}),T.jsx(l,{errors:c,field:n,form:t})]})}const Ra=(e,t)=>{var i;const n=mt(),r=Mt({queryKey:["app",e],queryFn:()=>n.app(e),...t==null?void 0:t.useQueryOpts});return{...r,app:(i=r.data)==null?void 0:i.data}};function Da({prop:e,idx:t}){const n=nr(),{id:r,configuredProps:i,registerField:o,setConfiguredProp:s}=n,u=e.type==="app"&&"app"in e?e.app:void 0,{app:a}=Ra(u||"",{useQueryOpts:{enabled:!!u,suspense:!!u}}),c={id:`pd${r}${e.name}`,prop:e,idx:t,value:i[e.name],onChange(d){s(t,d)},extra:{app:a}};return G.useEffect(()=>o(c),[c]),T.jsx(Ki.Provider,{value:c,children:T.jsx(Va,{field:c,form:n})})}class Na extends G.Component{constructor(){super(...arguments),this.state={err:void 0}}static getDerivedStateFromError(t){return{err:t}}render(){const{err:t}=this.state;return t?this.props.fallback(t):this.props.children}}function Ma(e){const{form:t}=e,{propsNeedConfiguring:n,submitting:r}=t,{getProps:i,theme:o}=ze(),s=u=>{var a;return{width:"fit-content",textTransform:"capitalize",backgroundColor:u?o.colors.neutral10:o.colors.primary,color:u?o.colors.neutral40:o.colors.neutral0,padding:`${o.spacing.baseUnit*1.75}px ${o.spacing.baseUnit*16}px`,borderRadius:o.borderRadius,boxShadow:(a=o.boxShadow)==null?void 0:a.button,cursor:"pointer",fontSize:"0.875rem",opacity:r?.5:void 0,margin:"0.5rem 0 0 0"}};return T.jsx("input",{type:"submit",value:r?"Submitting...":"Submit",...i("controlSubmit",s(n.length||r),e),disabled:n.length||r})}function La(){const e=nr(),{configurableProps:t,dynamicPropsQueryIsFetching:n,isValid:r,optionalPropIsEnabled:i,optionalPropSetEnabled:o,props:s,setSubmitting:u}=e,{hideOptionalProps:a,onSubmit:l}=s,{getComponents:c,getProps:d,theme:f}=ze(),{OptionalFieldButton:p}=c(),y={display:"flex",flexDirection:"column",gap:"1.5rem"},g={display:"flex",flexWrap:"wrap",gap:"0.375rem"},I={fontWeight:600,textTransform:"capitalize",color:f.colors.neutral60,fontSize:"0.875rem",lineHeight:"1.375",margin:"0 0 0.5rem 0"},v=async S=>{if(l&&(S.preventDefault(),r)){u(!0);try{await l(e)}finally{u(!1)}}},A=[],E=[];for(let S=0;S<t.length;S++){const P=t[S];if(!P.hidden&&!Gn.includes(P.type)){if(P.optional){const w=i(P);if(E.push([P,w]),!w)continue}A.push([P,S])}}return T.jsx(Na,{fallback:S=>T.jsxs("p",{style:{color:"red"},children:["Error: ",S&&typeof S=="object"&&"message"in S&&typeof S.message=="string"?S.message:"Unknown"]}),children:T.jsx(G.Suspense,{fallback:T.jsx("p",{children:"Loading form..."}),children:T.jsxs("form",{...d("componentForm",y,s),onSubmit:v,children:[A.map(([S,P])=>S.type==="alert"?T.jsx(xo,{prop:S},S.name):T.jsx(Da,{prop:S,idx:P},S.name)),n&&T.jsx("p",{children:"Loading dynamic props..."}),!a&&E.length?T.jsxs("div",{children:[T.jsx("div",{...d("heading",I,s),children:"Optional Props"}),T.jsx("div",{...d("optionalFields",g,s),children:E.map(([S,P])=>T.jsx(p,{prop:S,enabled:P,onClick:()=>o(S,!P)},S.name))})]}):null,l&&T.jsx(Ma,{form:e})]})})})}function Xa(e){return T.jsx(jo,{props:e,children:T.jsx(La,{})})}const za=({key:e},t)=>{var i;const n=mt(),r=Mt({queryKey:["component",e],queryFn:()=>n.component({key:e}),enabled:!!e,...t==null?void 0:t.useQueryOpts});return{...r,component:(i=r.data)==null?void 0:i.data}};function Sb(e){const{isLoading:t,error:n,component:r}=za({key:e.componentKey});if(!e.componentKey)throw new Error("componentKey required");return t?T.jsx("p",{children:"Loading..."}):n?T.jsxs("p",{children:["Error: ",n.message]}):r?T.jsx(Xa,{component:r,...e}):T.jsx("p",{children:"Component not found"})}function wb(){const e=Ht(),{id:t,onChange:n,value:r}=e,{getProps:i,theme:o}=ze(),s={display:"block",gridArea:"control",width:"100%",fontSize:"0.875rem",boxShadow:o.boxShadow.input};let u=r;return typeof u=="object"&&(u=JSON.stringify(u)),T.jsx("textarea",{id:t,value:u,onChange:a=>n(a.target.value),...i("controlAny",s,e)})}const Ha=e=>{var r;const t=mt(),n=Mt({queryKey:["apps",e],queryFn:()=>t.apps(e)});return{...n,apps:(r=n.data)==null?void 0:r.data}};function Eb({value:e,onChange:t}){const[n,r]=G.useState(""),i=G.useId(),{isLoading:o,apps:s}=Ha({q:n}),{Option:u}=Tn;return T.jsx(br,{instanceId:i,className:"react-select-container text-sm",classNamePrefix:"react-select",components:{Option:a=>T.jsx(u,{...a,children:T.jsxs("div",{style:{display:"flex",gap:10},children:[T.jsx("img",{src:`https://pipedream.com/s.v0/${a.data.id}/logo/48`,style:{height:24,width:24},alt:a.data.name}),T.jsx("span",{style:{whiteSpace:"nowrap"},children:a.data.name})]})}),IndicatorSeparator:()=>null},options:s||[],getOptionLabel:a=>a.name||a.name_slug,getOptionValue:a=>a.name_slug,value:e,onChange:a=>t==null?void 0:t(a||void 0),onInputChange:a=>r(a),isLoading:o})}const Wa=e=>{var r;const t=mt(),n=Mt({queryKey:["components",e],queryFn:()=>t.components(e)});return{...n,components:((r=n.data)==null?void 0:r.data)||[]}};function Fb({app:e,componentType:t,value:n,onChange:r}){const i=G.useId(),{isLoading:o,components:s}=Wa({app:e==null?void 0:e.name_slug,componentType:t});return T.jsx(br,{instanceId:i,className:"react-select-container text-sm",classNamePrefix:"react-select",options:s,getOptionLabel:u=>u.name||u.key,getOptionValue:u=>u.key,value:n,onChange:u=>r==null?void 0:r(u||void 0),isLoading:o,components:{IndicatorSeparator:()=>null}})}X.Alert=xo,X.ComponentForm=Xa,X.ComponentFormContainer=Sb,X.Control=Ta,X.ControlAny=wb,X.ControlApp=Pa,X.ControlBoolean=ka,X.ControlInput=Ga,X.ControlSelect=Or,X.ControlSubmit=Ma,X.CustomizationContext=Br,X.CustomizeProvider=yb,X.Description=Ca,X.ErrorBoundary=Na,X.Errors=xa,X.Field=Va,X.FormContext=ni,X.FormContextProvider=jo,X.FormFieldContext=Ki,X.FrontendClientProvider=Ul,X.InternalComponentForm=La,X.InternalField=Da,X.Label=Aa,X.OptionalFieldButton=Sa,X.RemoteOptionsContainer=Oa,X.SelectApp=Eb,X.SelectComponent=Fb,X.defaultComponents=Ea,X.defaultTheme=yr,X.getReactSelectTheme=Js,X.mergeTheme=Ir,X.skippablePropTypes=Gn,X.unstyledTheme=js,X.useAccounts=Fa,X.useApp=Ra,X.useApps=Ha,X.useComponent=za,X.useComponents=Wa,X.useCustomize=ze,X.useFormContext=nr,X.useFormFieldContext=Ht,X.useFrontendClient=mt,Object.defineProperty(X,Symbol.toStringTag,{value:"Module"})});