@pipedream/connect-react 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11154,6 +11154,8 @@ function wg(e) {
11154
11154
  return [
11155
11155
  "app field not registered"
11156
11156
  ];
11157
+ if (!t.auth_type)
11158
+ return;
11157
11159
  if (!n)
11158
11160
  return [
11159
11161
  "no app configured"
@@ -11163,14 +11165,14 @@ function wg(e) {
11163
11165
  "not an app"
11164
11166
  ];
11165
11167
  const r = n;
11166
- if ("authProvisionId" in r && !r.authProvisionId && t.auth_type) {
11168
+ if ("authProvisionId" in r && !r.authProvisionId) {
11167
11169
  const i = [];
11168
11170
  if (t.auth_type === "oauth" && !r.oauth_access_token && i.push("missing oauth token"), t.auth_type === "oauth" || t.auth_type === "keys") {
11169
11171
  const o = Ag(t), a = r;
11170
11172
  for (const s of o)
11171
11173
  !s.optional && !a[s.name] && i.push(`missing custom field: ${s.name}`);
11172
11174
  }
11173
- return t.auth_type !== "none" && i.push("no auth provision configured"), i;
11175
+ return i;
11174
11176
  }
11175
11177
  }
11176
11178
  const Sg = (e, t) => {
@@ -16247,7 +16249,7 @@ const tv = (e) => {
16247
16249
  "components",
16248
16250
  e
16249
16251
  ],
16250
- queryFn: () => t.components(e)
16252
+ queryFn: () => t.getComponents(e)
16251
16253
  });
16252
16254
  return {
16253
16255
  ...n,
@@ -17,7 +17,7 @@ import { FetchStatus } from '@tanstack/query-core';
17
17
  import { GetAccountOpts } from '@pipedream/sdk';
18
18
  import { GetAppResponse } from '@pipedream/sdk';
19
19
  import { GetAppsOpts } from '@pipedream/sdk';
20
- import { GetComponentOpts } from '@pipedream/sdk';
20
+ import { GetComponentsOpts } from '@pipedream/sdk';
21
21
  import { GroupBase } from 'react-select';
22
22
  import { JSX as JSX_2 } from 'react/jsx-runtime';
23
23
  import { JSXElementConstructor } from 'react';
@@ -1019,7 +1019,7 @@ export declare const useComponent: ({ key }: {
1019
1019
  /**
1020
1020
  * Get list of components
1021
1021
  */
1022
- export declare const useComponents: (input?: GetComponentOpts) => {
1022
+ export declare const useComponents: (input?: GetComponentsOpts) => {
1023
1023
  components: any;
1024
1024
  data: any;
1025
1025
  error: Error;
@@ -12,10 +12,10 @@
12
12
  `});++r<e.length;)r&&n.push({type:"text",value:`
13
13
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
14
14
  `}),n}function Ls(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Rs(e,t){const n=hf(e,t),r=n.one(e,void 0),i=nf(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
15
- `},i),o}function vf(e,t){return e&&"run"in e?async function(n,r){const i=Rs(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Rs(n,{file:r,...e||t})}}function Ms(e){if(e)throw e}var vr=Object.prototype.hasOwnProperty,Xs=Object.prototype.toString,Hs=Object.defineProperty,zs=Object.getOwnPropertyDescriptor,Ws=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Xs.call(t)==="[object Array]"},Zs=function(t){if(!t||Xs.call(t)!=="[object Object]")return!1;var n=vr.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&vr.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||vr.call(t,i)},js=function(t,n){Hs&&n.name==="__proto__"?Hs(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Js=function(t,n){if(n==="__proto__")if(vr.call(t,n)){if(zs)return zs(t,n).value}else return;return t[n]},If=function e(){var t,n,r,i,o,s,a=arguments[0],l=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)r=Js(a,n),i=Js(t,n),a!==i&&(c&&i&&(Zs(i)||(o=Ws(i)))?(o?(o=!1,s=r&&Ws(r)?r:[]):s=r&&Zs(r)?r:{},js(a,{name:n,newValue:e(c,s,i)})):typeof i<"u"&&js(a,{name:n,newValue:i}));return a};const xi=No(If);function Ai(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 Cf(){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);a(null,...i);function a(l,...u){const c=e[++o];let d=-1;if(l){s(l);return}for(;++d<i.length;)(u[d]===null||u[d]===void 0)&&(u[d]=i[d]);i=u,c?xf(c,a)(...u):s(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function xf(e,t){let n;return r;function r(...s){const a=e.length>s.length;let l;a&&s.push(i);try{l=e.apply(this,s)}catch(u){const c=u;if(a&&n)throw c;return i(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(s,...a){n||(n=!0,t(s,...a))}function o(s){i(null,s)}}const ft={basename:Af,dirname:wf,extname:Sf,join:Ef,sep:"/"};function Af(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,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function wf(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 Sf(e){Hn(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const a=e.codePointAt(t);if(a===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),a===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 Ef(...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?".":kf(n)}function kf(e){Hn(e);const t=e.codePointAt(0)===47;let n=Ff(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Ff(e,t){let n="",r=0,i=-1,o=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===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(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),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 a===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 Pf={cwd:Gf};function Gf(){return"/"}function wi(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Bf(e){if(typeof e=="string")e=new URL(e);else if(!wi(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 Tf(e)}function Tf(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 Si=["history","path","basename","stem","extname","dirname"];class Ys{constructor(t){let n;t?wi(t)?n={path:t}:typeof t=="string"||Of(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Pf.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Si.length;){const o=Si[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)Si.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?ft.basename(this.path):void 0}set basename(t){ki(t,"basename"),Ei(t,"basename"),this.path=ft.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ft.dirname(this.path):void 0}set dirname(t){_s(this.basename,"dirname"),this.path=ft.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ft.extname(this.path):void 0}set extname(t){if(Ei(t,"extname"),_s(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=ft.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){wi(t)&&(t=Bf(t)),ki(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ft.basename(this.path,this.extname):void 0}set stem(t){ki(t,"stem"),Ei(t,"stem"),this.path=ft.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 Ve(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 Ei(e,t){if(e&&e.includes(ft.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ft.sep+"`")}function ki(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function _s(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Of(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Df=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},Vf={}.hasOwnProperty;class Fi extends Df{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=Cf()}copy(){const t=new Fi;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(xi(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Bi("data",this.frozen),this.namespace[t]=n,this):Vf.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Bi("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=Ir(t),r=this.parser||this.Parser;return Pi("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Pi("process",this.parser||this.Parser),Gi("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const a=Ir(t),l=r.parse(a);r.run(l,a,function(c,d,f){if(c||!d||!f)return u(c);const p=d,b=r.stringify(p,f);Rf(b)?f.value=b:f.result=b,u(c,f)});function u(c,d){c||!d?s(c):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Pi("processSync",this.parser||this.Parser),Gi("processSync",this.compiler||this.Compiler),this.process(t,i),qs("processSync","process",n),r;function i(o,s){n=!0,Ms(o),r=s}}run(t,n,r){Us(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,a){const l=Ir(n);i.run(t,l,u);function u(c,d,f){const p=d||t;c?a(c):s?s(p):r(void 0,p,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),qs("runSync","run",r),i;function o(s,a){Ms(s),i=a,r=!0}}stringify(t,n){this.freeze();const r=Ir(n),i=this.compiler||this.Compiler;return Gi("stringify",i),Us(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Bi("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;l(c,d)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))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");a(u.plugins),u.settings&&(i.settings=xi(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let d=-1,f=-1;for(;++d<r.length;)if(r[d][0]===u){f=d;break}if(f===-1)r.push([u,...c]);else if(c.length>0){let[p,...b]=c;const g=r[f][1];Ai(g)&&Ai(p)&&(p=xi(!0,g,p)),r[f]=[u,p,...b]}}}}const Nf=new Fi().freeze();function Pi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Gi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Bi(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 Us(e){if(!Ai(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function qs(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ir(e){return Lf(e)?e:new Ys(e)}function Lf(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Rf(e){return typeof e=="string"||Mf(e)}function Mf(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Xf="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Qs=[],$s={allowDangerousHtml:!0},Hf=/^(https?|ircs?|mailto|xmpp)$/i,zf=[{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 Ks(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,s=e.disallowedElements,a=e.rehypePlugins||Qs,l=e.remarkPlugins||Qs,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...$s}:$s,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||Wf,p=Nf().use(Ap).use(l).use(vf,u).use(a),b=new Ys;typeof r=="string"&&(b.value=r);for(const k of zf)Object.hasOwn(e,k.from)&&(""+k.from+(k.to?"use `"+k.to+"` instead":"remove it")+Xf+k.id,void 0);const g=p.parse(b);let I=p.runSync(g,b);return i&&(I={type:"element",tagName:"div",properties:{className:i},children:I.type==="root"?I.children:[I]}),Ns(I,v),ac(I,{Fragment:B.Fragment,components:o,ignoreInvalidStyle:!0,jsx:B.jsx,jsxs:B.jsxs,passKeys:!0,passNode:!0});function v(k,A,E){if(k.type==="raw"&&E&&typeof A=="number")return c?E.children.splice(A,1):E.children[A]={type:"text",value:k.value},A;if(k.type==="element"){let S;for(S in ui)if(Object.hasOwn(ui,S)&&Object.hasOwn(k.properties,S)){const C=k.properties[S],L=ui[S];(L===null||L.includes(k.tagName))&&(k.properties[S]=f(String(C||""),S,k))}}if(k.type==="element"){let S=t?!t.includes(k.tagName):s?s.includes(k.tagName):!1;if(!S&&n&&typeof A=="number"&&(S=!n(k,A,E)),S&&E&&typeof A=="number")return d&&k.children?E.children.splice(A,1,...k.children):E.children.splice(A,1),A}}}function Wf(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||Hf.test(e.slice(0,t))?e:""}function Cr({prop:e}){const t={width:"100%",background:"#e2e3e5",borderRadius:"5px",paddingTop:"2px",paddingLeft:"10px",paddingRight:"10px",paddingBottom:"2px"},n={...t,background:"#fff3cd"},r={...t,background:"#d1ecf1"},i={...t,background:"#f8d7da"},o={...t,background:"#fffff2"};let s={};switch(e.alertType){case"info":s=r;break;case"neutral":s=o;break;case"warning":s=n;break;case"error":s=i;break;default:s=t}return B.jsx("div",{className:`pd-alert-${e.alertType}`,style:s,children:B.jsx(Ks,{components:{a:({...a})=>B.jsx("a",{...a,target:"_blank",rel:"noopener noreferrer"})},children:e.content})})}var xr={exports:{}};xr.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",b="[object GeneratorFunction]",g="[object Map]",I="[object Number]",v="[object Null]",k="[object Object]",A="[object Promise]",E="[object Proxy]",S="[object RegExp]",C="[object Set]",L="[object String]",P="[object Symbol]",N="[object Undefined]",D="[object WeakMap]",T="[object ArrayBuffer]",R="[object DataView]",Q="[object Float32Array]",ae="[object Float64Array]",H="[object Int8Array]",q="[object Int16Array]",ie="[object Int32Array]",fe="[object Uint8Array]",ve="[object Uint8ClampedArray]",y="[object Uint16Array]",Ae="[object Uint32Array]",ue=/[\\^$.*+?()[\]{}|]/g,m=/^\[object .+?Constructor\]$/,le=/^(?:0|[1-9]\d*)$/,ee={};ee[Q]=ee[ae]=ee[H]=ee[q]=ee[ie]=ee[fe]=ee[ve]=ee[y]=ee[Ae]=!0,ee[a]=ee[l]=ee[T]=ee[c]=ee[R]=ee[d]=ee[f]=ee[p]=ee[g]=ee[I]=ee[k]=ee[S]=ee[C]=ee[L]=ee[D]=!1;var de=typeof fn=="object"&&fn&&fn.Object===Object&&fn,Ge=typeof self=="object"&&self&&self.Object===Object&&self,be=de||Ge||Function("return this")(),Re=t&&!t.nodeType&&t,$e=Re&&!0&&e&&!e.nodeType&&e,We=$e&&$e.exports===Re,It=We&&de.process,kt=function(){try{return It&&It.binding&&It.binding("util")}catch{}}(),Ft=kt&&kt.isTypedArray;function Ct(h,w){for(var O=-1,Z=h==null?0:h.length,xe=0,se=[];++O<Z;){var Fe=h[O];w(Fe,O,h)&&(se[xe++]=Fe)}return se}function On(h,w){for(var O=-1,Z=w.length,xe=h.length;++O<Z;)h[xe+O]=w[O];return h}function X(h,w){for(var O=-1,Z=h==null?0:h.length;++O<Z;)if(w(h[O],O,h))return!0;return!1}function J(h,w){for(var O=-1,Z=Array(h);++O<h;)Z[O]=w(O);return Z}function $(h){return function(w){return h(w)}}function ge(h,w){return h.has(w)}function Be(h,w){return h==null?void 0:h[w]}function Ze(h){var w=-1,O=Array(h.size);return h.forEach(function(Z,xe){O[++w]=[xe,Z]}),O}function nr(h,w){return function(O){return h(w(O))}}function rr(h){var w=-1,O=Array(h.size);return h.forEach(function(Z){O[++w]=Z}),O}var we=Array.prototype,F=Function.prototype,V=Object.prototype,W=be["__core-js_shared__"],oe=F.toString,ce=V.hasOwnProperty,_e=function(){var h=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),xt=V.toString,lt=RegExp("^"+oe.call(ce).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zt=We?be.Buffer:void 0,At=be.Symbol,Me=be.Uint8Array,Pt=V.propertyIsEnumerable,ut=we.splice,sn=At?At.toStringTag:void 0,au=Object.getOwnPropertySymbols,Wb=zt?zt.isBuffer:void 0,Zb=nr(Object.keys,Object),uo=Dn(be,"DataView"),ir=Dn(be,"Map"),co=Dn(be,"Promise"),po=Dn(be,"Set"),fo=Dn(be,"WeakMap"),or=Dn(Object,"create"),jb=un(uo),Jb=un(ir),Yb=un(co),_b=un(po),Ub=un(fo),lu=At?At.prototype:void 0,ho=lu?lu.valueOf:void 0;function an(h){var w=-1,O=h==null?0:h.length;for(this.clear();++w<O;){var Z=h[w];this.set(Z[0],Z[1])}}function qb(){this.__data__=or?or(null):{},this.size=0}function Qb(h){var w=this.has(h)&&delete this.__data__[h];return this.size-=w?1:0,w}function $b(h){var w=this.__data__;if(or){var O=w[h];return O===r?void 0:O}return ce.call(w,h)?w[h]:void 0}function Kb(h){var w=this.__data__;return or?w[h]!==void 0:ce.call(w,h)}function ey(h,w){var O=this.__data__;return this.size+=this.has(h)?0:1,O[h]=or&&w===void 0?r:w,this}an.prototype.clear=qb,an.prototype.delete=Qb,an.prototype.get=$b,an.prototype.has=Kb,an.prototype.set=ey;function Gt(h){var w=-1,O=h==null?0:h.length;for(this.clear();++w<O;){var Z=h[w];this.set(Z[0],Z[1])}}function ty(){this.__data__=[],this.size=0}function ny(h){var w=this.__data__,O=Jr(w,h);if(O<0)return!1;var Z=w.length-1;return O==Z?w.pop():ut.call(w,O,1),--this.size,!0}function ry(h){var w=this.__data__,O=Jr(w,h);return O<0?void 0:w[O][1]}function iy(h){return Jr(this.__data__,h)>-1}function oy(h,w){var O=this.__data__,Z=Jr(O,h);return Z<0?(++this.size,O.push([h,w])):O[Z][1]=w,this}Gt.prototype.clear=ty,Gt.prototype.delete=ny,Gt.prototype.get=ry,Gt.prototype.has=iy,Gt.prototype.set=oy;function ln(h){var w=-1,O=h==null?0:h.length;for(this.clear();++w<O;){var Z=h[w];this.set(Z[0],Z[1])}}function sy(){this.size=0,this.__data__={hash:new an,map:new(ir||Gt),string:new an}}function ay(h){var w=Yr(this,h).delete(h);return this.size-=w?1:0,w}function ly(h){return Yr(this,h).get(h)}function uy(h){return Yr(this,h).has(h)}function cy(h,w){var O=Yr(this,h),Z=O.size;return O.set(h,w),this.size+=O.size==Z?0:1,this}ln.prototype.clear=sy,ln.prototype.delete=ay,ln.prototype.get=ly,ln.prototype.has=uy,ln.prototype.set=cy;function jr(h){var w=-1,O=h==null?0:h.length;for(this.__data__=new ln;++w<O;)this.add(h[w])}function dy(h){return this.__data__.set(h,r),this}function py(h){return this.__data__.has(h)}jr.prototype.add=jr.prototype.push=dy,jr.prototype.has=py;function Wt(h){var w=this.__data__=new Gt(h);this.size=w.size}function fy(){this.__data__=new Gt,this.size=0}function hy(h){var w=this.__data__,O=w.delete(h);return this.size=w.size,O}function gy(h){return this.__data__.get(h)}function my(h){return this.__data__.has(h)}function by(h,w){var O=this.__data__;if(O instanceof Gt){var Z=O.__data__;if(!ir||Z.length<n-1)return Z.push([h,w]),this.size=++O.size,this;O=this.__data__=new ln(Z)}return O.set(h,w),this.size=O.size,this}Wt.prototype.clear=fy,Wt.prototype.delete=hy,Wt.prototype.get=gy,Wt.prototype.has=my,Wt.prototype.set=by;function yy(h,w){var O=_r(h),Z=!O&&Oy(h),xe=!O&&!Z&&go(h),se=!O&&!Z&&!xe&&bu(h),Fe=O||Z||xe||se,Te=Fe?J(h.length,String):[],De=Te.length;for(var Se in h)ce.call(h,Se)&&!(Fe&&(Se=="length"||xe&&(Se=="offset"||Se=="parent")||se&&(Se=="buffer"||Se=="byteLength"||Se=="byteOffset")||Fy(Se,De)))&&Te.push(Se);return Te}function Jr(h,w){for(var O=h.length;O--;)if(fu(h[O][0],w))return O;return-1}function vy(h,w,O){var Z=w(h);return _r(h)?Z:On(Z,O(h))}function sr(h){return h==null?h===void 0?N:v:sn&&sn in Object(h)?Ey(h):Ty(h)}function uu(h){return ar(h)&&sr(h)==a}function cu(h,w,O,Z,xe){return h===w?!0:h==null||w==null||!ar(h)&&!ar(w)?h!==h&&w!==w:Iy(h,w,O,Z,cu,xe)}function Iy(h,w,O,Z,xe,se){var Fe=_r(h),Te=_r(w),De=Fe?l:Zt(h),Se=Te?l:Zt(w);De=De==a?k:De,Se=Se==a?k:Se;var Ke=De==k,ct=Se==k,Xe=De==Se;if(Xe&&go(h)){if(!go(w))return!1;Fe=!0,Ke=!1}if(Xe&&!Ke)return se||(se=new Wt),Fe||bu(h)?du(h,w,O,Z,xe,se):wy(h,w,De,O,Z,xe,se);if(!(O&i)){var it=Ke&&ce.call(h,"__wrapped__"),ot=ct&&ce.call(w,"__wrapped__");if(it||ot){var jt=it?h.value():h,Bt=ot?w.value():w;return se||(se=new Wt),xe(jt,Bt,O,Z,se)}}return Xe?(se||(se=new Wt),Sy(h,w,O,Z,xe,se)):!1}function Cy(h){if(!mu(h)||Gy(h))return!1;var w=hu(h)?lt:m;return w.test(un(h))}function xy(h){return ar(h)&&gu(h.length)&&!!ee[sr(h)]}function Ay(h){if(!By(h))return Zb(h);var w=[];for(var O in Object(h))ce.call(h,O)&&O!="constructor"&&w.push(O);return w}function du(h,w,O,Z,xe,se){var Fe=O&i,Te=h.length,De=w.length;if(Te!=De&&!(Fe&&De>Te))return!1;var Se=se.get(h);if(Se&&se.get(w))return Se==w;var Ke=-1,ct=!0,Xe=O&o?new jr:void 0;for(se.set(h,w),se.set(w,h);++Ke<Te;){var it=h[Ke],ot=w[Ke];if(Z)var jt=Fe?Z(ot,it,Ke,w,h,se):Z(it,ot,Ke,h,w,se);if(jt!==void 0){if(jt)continue;ct=!1;break}if(Xe){if(!X(w,function(Bt,cn){if(!ge(Xe,cn)&&(it===Bt||xe(it,Bt,O,Z,se)))return Xe.push(cn)})){ct=!1;break}}else if(!(it===ot||xe(it,ot,O,Z,se))){ct=!1;break}}return se.delete(h),se.delete(w),ct}function wy(h,w,O,Z,xe,se,Fe){switch(O){case R:if(h.byteLength!=w.byteLength||h.byteOffset!=w.byteOffset)return!1;h=h.buffer,w=w.buffer;case T:return!(h.byteLength!=w.byteLength||!se(new Me(h),new Me(w)));case c:case d:case I:return fu(+h,+w);case f:return h.name==w.name&&h.message==w.message;case S:case L:return h==w+"";case g:var Te=Ze;case C:var De=Z&i;if(Te||(Te=rr),h.size!=w.size&&!De)return!1;var Se=Fe.get(h);if(Se)return Se==w;Z|=o,Fe.set(h,w);var Ke=du(Te(h),Te(w),Z,xe,se,Fe);return Fe.delete(h),Ke;case P:if(ho)return ho.call(h)==ho.call(w)}return!1}function Sy(h,w,O,Z,xe,se){var Fe=O&i,Te=pu(h),De=Te.length,Se=pu(w),Ke=Se.length;if(De!=Ke&&!Fe)return!1;for(var ct=De;ct--;){var Xe=Te[ct];if(!(Fe?Xe in w:ce.call(w,Xe)))return!1}var it=se.get(h);if(it&&se.get(w))return it==w;var ot=!0;se.set(h,w),se.set(w,h);for(var jt=Fe;++ct<De;){Xe=Te[ct];var Bt=h[Xe],cn=w[Xe];if(Z)var yu=Fe?Z(cn,Bt,Xe,w,h,se):Z(Bt,cn,Xe,h,w,se);if(!(yu===void 0?Bt===cn||xe(Bt,cn,O,Z,se):yu)){ot=!1;break}jt||(jt=Xe=="constructor")}if(ot&&!jt){var Ur=h.constructor,qr=w.constructor;Ur!=qr&&"constructor"in h&&"constructor"in w&&!(typeof Ur=="function"&&Ur instanceof Ur&&typeof qr=="function"&&qr instanceof qr)&&(ot=!1)}return se.delete(h),se.delete(w),ot}function pu(h){return vy(h,Ny,ky)}function Yr(h,w){var O=h.__data__;return Py(w)?O[typeof w=="string"?"string":"hash"]:O.map}function Dn(h,w){var O=Be(h,w);return Cy(O)?O:void 0}function Ey(h){var w=ce.call(h,sn),O=h[sn];try{h[sn]=void 0;var Z=!0}catch{}var xe=xt.call(h);return Z&&(w?h[sn]=O:delete h[sn]),xe}var ky=au?function(h){return h==null?[]:(h=Object(h),Ct(au(h),function(w){return Pt.call(h,w)}))}:Ly,Zt=sr;(uo&&Zt(new uo(new ArrayBuffer(1)))!=R||ir&&Zt(new ir)!=g||co&&Zt(co.resolve())!=A||po&&Zt(new po)!=C||fo&&Zt(new fo)!=D)&&(Zt=function(h){var w=sr(h),O=w==k?h.constructor:void 0,Z=O?un(O):"";if(Z)switch(Z){case jb:return R;case Jb:return g;case Yb:return A;case _b:return C;case Ub:return D}return w});function Fy(h,w){return w=w??s,!!w&&(typeof h=="number"||le.test(h))&&h>-1&&h%1==0&&h<w}function Py(h){var w=typeof h;return w=="string"||w=="number"||w=="symbol"||w=="boolean"?h!=="__proto__":h===null}function Gy(h){return!!_e&&_e in h}function By(h){var w=h&&h.constructor,O=typeof w=="function"&&w.prototype||V;return h===O}function Ty(h){return xt.call(h)}function un(h){if(h!=null){try{return oe.call(h)}catch{}try{return h+""}catch{}}return""}function fu(h,w){return h===w||h!==h&&w!==w}var Oy=uu(function(){return arguments}())?uu:function(h){return ar(h)&&ce.call(h,"callee")&&!Pt.call(h,"callee")},_r=Array.isArray;function Dy(h){return h!=null&&gu(h.length)&&!hu(h)}var go=Wb||Ry;function Vy(h,w){return cu(h,w)}function hu(h){if(!mu(h))return!1;var w=sr(h);return w==p||w==b||w==u||w==E}function gu(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=s}function mu(h){var w=typeof h;return h!=null&&(w=="object"||w=="function")}function ar(h){return h!=null&&typeof h=="object"}var bu=Ft?$(Ft):xy;function Ny(h){return Dy(h)?yy(h):Ay(h)}function Ly(){return[]}function Ry(){return!1}e.exports=Vy}(xr,xr.exports);var Zf=xr.exports;const ea=No(Zf);var zn=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(){}},Ut=typeof window>"u"||"Deno"in globalThis;function nt(){}function jf(e,t){return typeof e=="function"?e(t):e}function Ti(e){return typeof e=="number"&&e>=0&&e!==1/0}function ta(e,t){return Math.max(e+(t||0)-Date.now(),0)}function bn(e,t){return typeof e=="function"?e(t):e}function st(e,t){return typeof e=="function"?e(t):e}function na(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Oi(s,t.options))return!1}else if(!Zn(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function ra(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Wn(t.options.mutationKey)!==Wn(o))return!1}else if(!Zn(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Oi(e,t){return((t==null?void 0:t.queryKeyHashFn)||Wn)(e)}function Wn(e){return JSON.stringify(e,(t,n)=>Ni(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Zn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Zn(e[n],t[n])):!1}function Di(e,t){if(e===t)return e;const n=ia(e)&&ia(t);if(n||Ni(e)&&Ni(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,a=n?[]:{};let l=0;for(let u=0;u<s;u++){const c=n?u:o[u];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(a[c]=void 0,l++):(a[c]=Di(e[c],t[c]),a[c]===e[c]&&e[c]!==void 0&&l++)}return i===s&&l===i?e:a}return t}function Vi(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 ia(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ni(e){if(!oa(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!oa(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function oa(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jf(e){return new Promise(t=>{setTimeout(t,e)})}function Li(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 Di(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 Di(e,t)}return t}function Yf(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function _f(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ar=Symbol();function sa(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Ar&&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===Ar?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Uf=($l=class extends zn{constructor(){super();te(this,$t);te(this,Vt);te(this,In);j(this,In,t=>{if(!Ut&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){x(this,Vt)||this.setEventListener(x(this,In))}onUnsubscribe(){var t;this.hasListeners()||((t=x(this,Vt))==null||t.call(this),j(this,Vt,void 0))}setEventListener(t){var n;j(this,In,t),(n=x(this,Vt))==null||n.call(this),j(this,Vt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){x(this,$t)!==t&&(j(this,$t,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof x(this,$t)=="boolean"?x(this,$t):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},$t=new WeakMap,Vt=new WeakMap,In=new WeakMap,$l),Ri=new Uf,qf=(Kl=class extends zn{constructor(){super();te(this,Cn,!0);te(this,Nt);te(this,xn);j(this,xn,t=>{if(!Ut&&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(){x(this,Nt)||this.setEventListener(x(this,xn))}onUnsubscribe(){var t;this.hasListeners()||((t=x(this,Nt))==null||t.call(this),j(this,Nt,void 0))}setEventListener(t){var n;j(this,xn,t),(n=x(this,Nt))==null||n.call(this),j(this,Nt,t(this.setOnline.bind(this)))}setOnline(t){x(this,Cn)!==t&&(j(this,Cn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return x(this,Cn)}},Cn=new WeakMap,Nt=new WeakMap,xn=new WeakMap,Kl),wr=new qf;function Mi(){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 Qf(e){return Math.min(1e3*2**e,3e4)}function aa(e){return(e??"online")==="online"?wr.isOnline():!0}var la=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Xi(e){return e instanceof la}function ua(e){let t=!1,n=0,r=!1,i;const o=Mi(),s=g=>{var I;r||(f(new la(g)),(I=e.abort)==null||I.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Ri.isFocused()&&(e.networkMode==="always"||wr.isOnline())&&e.canRun(),c=()=>aa(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||u())&&g(v)},(I=e.onPause)==null||I.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),b=()=>{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 C;if(r)return;const k=e.retry??(Ut?0:3),A=e.retryDelay??Qf,E=typeof A=="function"?A(n,v):A,S=k===!0||typeof k=="number"&&n<k||typeof k=="function"&&k(n,v);if(t||!S){f(v);return}n++,(C=e.onFail)==null||C.call(e,n,v),Jf(E).then(()=>u()?void 0:p()).then(()=>{t?f(v):b()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?b():p().then(b),o)}}function $f(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=a=>setTimeout(a,0);const o=a=>{t?e.push(a):i(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var Oe=$f(),ca=(eu=class{constructor(){te(this,Kt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ti(this.gcTime)&&j(this,Kt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ut?1/0:5*60*1e3))}clearGcTimeout(){x(this,Kt)&&(clearTimeout(x(this,Kt)),j(this,Kt,void 0))}},Kt=new WeakMap,eu),Kf=(tu=class extends ca{constructor(t){super();te(this,at);te(this,An);te(this,wn);te(this,rt);te(this,Le);te(this,$n);te(this,en);j(this,en,!1),j(this,$n,t.defaultOptions),this.setOptions(t.options),this.observers=[],j(this,rt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,j(this,An,eh(this.options)),this.state=t.state??x(this,An),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=x(this,Le))==null?void 0:t.promise}setOptions(t){this.options={...x(this,$n),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&x(this,rt).remove(this)}setData(t,n){const r=Li(this.state.data,t,this.options);return he(this,at,Tt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){he(this,at,Tt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=x(this,Le))==null?void 0:r.promise;return(i=x(this,Le))==null||i.cancel(t),n?n.then(nt).catch(nt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(x(this,An))}isActive(){return this.observers.some(t=>st(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ar||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||!ta(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=x(this,Le))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=x(this,Le))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),x(this,rt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(x(this,Le)&&(x(this,en)?x(this,Le).cancel({revert:!0}):x(this,Le).cancelRetry()),this.scheduleGc()),x(this,rt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||he(this,at,Tt).call(this,{type:"invalidate"})}fetch(t,n){var l,u,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(x(this,Le))return x(this,Le).continueRetry(),x(this,Le).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:()=>(j(this,en,!0),r.signal)})},o=()=>{const d=sa(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),j(this,en,!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),(l=this.options.behavior)==null||l.onFetch(s,this),j(this,wn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&he(this,at,Tt).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const a=d=>{var f,p,b,g;Xi(d)&&d.silent||he(this,at,Tt).call(this,{type:"error",error:d}),Xi(d)||((p=(f=x(this,rt).config).onError)==null||p.call(f,d,this),(g=(b=x(this,rt).config).onSettled)==null||g.call(b,this.state.data,d,this)),this.scheduleGc()};return j(this,Le,ua({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,p,b,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}`),a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(I){a(I);return}(p=(f=x(this,rt).config).onSuccess)==null||p.call(f,d,this),(g=(b=x(this,rt).config).onSettled)==null||g.call(b,d,this.state.error,this),this.scheduleGc()},onError:a,onFail:(d,f)=>{he(this,at,Tt).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{he(this,at,Tt).call(this,{type:"pause"})},onContinue:()=>{he(this,at,Tt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),x(this,Le).start()}},An=new WeakMap,wn=new WeakMap,rt=new WeakMap,Le=new WeakMap,$n=new WeakMap,en=new WeakMap,at=new WeakSet,Tt=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,...da(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 Xi(i)&&i.revert&&x(this,wn)?{...x(this,wn),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),Oe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),x(this,rt).notify({query:this,type:"updated",action:t})})},tu);function da(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:aa(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function eh(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 th=(nu=class extends zn{constructor(t={}){super();te(this,mt);this.config=t,j(this,mt,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Oi(i,n);let s=this.get(o);return s||(s=new Kf({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){x(this,mt).has(t.queryHash)||(x(this,mt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=x(this,mt).get(t.queryHash);n&&(t.destroy(),n===t&&x(this,mt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Oe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return x(this,mt).get(t)}getAll(){return[...x(this,mt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>na(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>na(t,r)):n}notify(t){Oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Oe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Oe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},mt=new WeakMap,nu),nh=(ru=class extends ca{constructor(t){super();te(this,yt);te(this,bt);te(this,He);te(this,tn);this.mutationId=t.mutationId,j(this,He,t.mutationCache),j(this,bt,[]),this.state=t.state||rh(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){x(this,bt).includes(t)||(x(this,bt).push(t),this.clearGcTimeout(),x(this,He).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){j(this,bt,x(this,bt).filter(n=>n!==t)),this.scheduleGc(),x(this,He).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){x(this,bt).length||(this.state.status==="pending"?this.scheduleGc():x(this,He).remove(this))}continue(){var t;return((t=x(this,tn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,a,l,u,c,d,f,p,b,g,I,v,k,A,E,S,C,L;j(this,tn,ua({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,N)=>{he(this,yt,Jt).call(this,{type:"failed",failureCount:P,error:N})},onPause:()=>{he(this,yt,Jt).call(this,{type:"pause"})},onContinue:()=>{he(this,yt,Jt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>x(this,He).canRun(this)}));const n=this.state.status==="pending",r=!x(this,tn).canStart();try{if(!n){he(this,yt,Jt).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=x(this,He).config).onMutate)==null?void 0:o.call(i,t,this));const N=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t));N!==this.state.context&&he(this,yt,Jt).call(this,{type:"pending",context:N,variables:t,isPaused:r})}const P=await x(this,tn).start();return await((u=(l=x(this,He).config).onSuccess)==null?void 0:u.call(l,P,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,P,t,this.state.context)),await((p=(f=x(this,He).config).onSettled)==null?void 0:p.call(f,P,null,this.state.variables,this.state.context,this)),await((g=(b=this.options).onSettled)==null?void 0:g.call(b,P,null,t,this.state.context)),he(this,yt,Jt).call(this,{type:"success",data:P}),P}catch(P){try{throw await((v=(I=x(this,He).config).onError)==null?void 0:v.call(I,P,t,this.state.context,this)),await((A=(k=this.options).onError)==null?void 0:A.call(k,P,t,this.state.context)),await((S=(E=x(this,He).config).onSettled)==null?void 0:S.call(E,void 0,P,this.state.variables,this.state.context,this)),await((L=(C=this.options).onSettled)==null?void 0:L.call(C,void 0,P,t,this.state.context)),P}finally{he(this,yt,Jt).call(this,{type:"error",error:P})}}finally{x(this,He).runNext(this)}}},bt=new WeakMap,He=new WeakMap,tn=new WeakMap,yt=new WeakSet,Jt=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),Oe.batch(()=>{x(this,bt).forEach(r=>{r.onMutationUpdate(t)}),x(this,He).notify({mutation:this,type:"updated",action:t})})},ru);function rh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ih=(iu=class extends zn{constructor(t={}){super();te(this,Qe);te(this,Kn);this.config=t,j(this,Qe,new Map),j(this,Kn,Date.now())}build(t,n,r){const i=new nh({mutationCache:this,mutationId:++Qr(this,Kn)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Sr(t),r=x(this,Qe).get(n)??[];r.push(t),x(this,Qe).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Sr(t);if(x(this,Qe).has(n)){const i=(r=x(this,Qe).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?x(this,Qe).delete(n):x(this,Qe).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=x(this,Qe).get(Sr(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=x(this,Qe).get(Sr(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Oe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...x(this,Qe).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ra(n,r))}findAll(t={}){return this.getAll().filter(n=>ra(t,n))}notify(t){Oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Oe.batch(()=>Promise.all(t.map(n=>n.continue().catch(nt))))}},Qe=new WeakMap,Kn=new WeakMap,iu);function Sr(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function pa(e){return{onFetch:(t,n)=>{var c,d,f,p,b;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=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const I=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=sa(t.options,t.fetchOptions),k=async(A,E,S)=>{if(g)return Promise.reject();if(E==null&&A.pages.length)return Promise.resolve(A);const C={queryKey:t.queryKey,pageParam:E,direction:S?"backward":"forward",meta:t.options.meta};I(C);const L=await v(C),{maxPages:P}=t.options,N=S?_f:Yf;return{pages:N(A.pages,L,P),pageParams:N(A.pageParams,E,P)}};if(i&&o.length){const A=i==="backward",E=A?oh:fa,S={pages:o,pageParams:s},C=E(r,S);a=await k(S,C,A)}else{const A=e??o.length;do{const E=l===0?s[0]??r.initialPageParam:fa(r,a);if(l>0&&E==null)break;a=await k(a,E),l++}while(l<A)}return a};t.options.persister?t.fetchFn=()=>{var g,I;return(I=(g=t.options).persister)==null?void 0:I.call(g,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function fa(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 oh(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 sh=(ou=class{constructor(e={}){te(this,ke);te(this,Lt);te(this,Rt);te(this,Sn);te(this,En);te(this,Mt);te(this,kn);te(this,Fn);j(this,ke,e.queryCache||new th),j(this,Lt,e.mutationCache||new ih),j(this,Rt,e.defaultOptions||{}),j(this,Sn,new Map),j(this,En,new Map),j(this,Mt,0)}mount(){Qr(this,Mt)._++,x(this,Mt)===1&&(j(this,kn,Ri.subscribe(async e=>{e&&(await this.resumePausedMutations(),x(this,ke).onFocus())})),j(this,Fn,wr.subscribe(async e=>{e&&(await this.resumePausedMutations(),x(this,ke).onOnline())})))}unmount(){var e,t;Qr(this,Mt)._--,x(this,Mt)===0&&((e=x(this,kn))==null||e.call(this),j(this,kn,void 0),(t=x(this,Fn))==null||t.call(this),j(this,Fn,void 0))}isFetching(e){return x(this,ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return x(this,Lt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=x(this,ke).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=x(this,ke).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(bn(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return x(this,ke).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=x(this,ke).get(r.queryHash),o=i==null?void 0:i.state.data,s=jf(t,o);if(s!==void 0)return x(this,ke).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Oe.batch(()=>x(this,ke).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=x(this,ke).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=x(this,ke);Oe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=x(this,ke),r={type:"active",...e};return Oe.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Oe.batch(()=>x(this,ke).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(nt).catch(nt)}invalidateQueries(e={},t={}){return Oe.batch(()=>{if(x(this,ke).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=Oe.batch(()=>x(this,ke).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(nt)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(nt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=x(this,ke).build(this,t);return n.isStaleByTime(bn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(nt).catch(nt)}fetchInfiniteQuery(e){return e.behavior=pa(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(nt).catch(nt)}ensureInfiniteQueryData(e){return e.behavior=pa(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return wr.isOnline()?x(this,Lt).resumePausedMutations():Promise.resolve()}getQueryCache(){return x(this,ke)}getMutationCache(){return x(this,Lt)}getDefaultOptions(){return x(this,Rt)}setDefaultOptions(e){j(this,Rt,e)}setQueryDefaults(e,t){x(this,Sn).set(Wn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...x(this,Sn).values()];let n={};return t.forEach(r=>{Zn(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){x(this,En).set(Wn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...x(this,En).values()];let n={};return t.forEach(r=>{Zn(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...x(this,Rt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Oi(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===Ar&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...x(this,Rt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){x(this,ke).clear(),x(this,Lt).clear()}},ke=new WeakMap,Lt=new WeakMap,Rt=new WeakMap,Sn=new WeakMap,En=new WeakMap,Mt=new WeakMap,kn=new WeakMap,Fn=new WeakMap,ou),ah=(su=class extends zn{constructor(t,n){super();te(this,ye);te(this,Ye);te(this,pe);te(this,er);te(this,ze);te(this,nn);te(this,Pn);te(this,Xt);te(this,vt);te(this,tr);te(this,Gn);te(this,Bn);te(this,rn);te(this,on);te(this,Ht);te(this,Tn,new Set);this.options=n,j(this,Ye,t),j(this,vt,null),j(this,Xt,Mi()),this.options.experimental_prefetchInRender||x(this,Xt).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&&(x(this,pe).addObserver(this),ha(x(this,pe),this.options)?he(this,ye,lr).call(this):this.updateResult(),he(this,ye,Io).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hi(x(this,pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hi(x(this,pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,he(this,ye,Co).call(this),he(this,ye,xo).call(this),x(this,pe).removeObserver(this)}setOptions(t,n){const r=this.options,i=x(this,pe);if(this.options=x(this,Ye).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof st(this.options.enabled,x(this,pe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");he(this,ye,Ao).call(this),x(this,pe).setOptions(this.options),r._defaulted&&!Vi(this.options,r)&&x(this,Ye).getQueryCache().notify({type:"observerOptionsUpdated",query:x(this,pe),observer:this});const o=this.hasListeners();o&&ga(x(this,pe),i,this.options,r)&&he(this,ye,lr).call(this),this.updateResult(n),o&&(x(this,pe)!==i||st(this.options.enabled,x(this,pe))!==st(r.enabled,x(this,pe))||bn(this.options.staleTime,x(this,pe))!==bn(r.staleTime,x(this,pe)))&&he(this,ye,bo).call(this);const s=he(this,ye,yo).call(this);o&&(x(this,pe)!==i||st(this.options.enabled,x(this,pe))!==st(r.enabled,x(this,pe))||s!==x(this,Ht))&&he(this,ye,vo).call(this,s)}getOptimisticResult(t){const n=x(this,Ye).getQueryCache().build(x(this,Ye),t),r=this.createResult(n,t);return uh(this,r)&&(j(this,ze,r),j(this,Pn,this.options),j(this,nn,x(this,pe).state)),r}getCurrentResult(){return x(this,ze)}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){x(this,Tn).add(t)}getCurrentQuery(){return x(this,pe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=x(this,Ye).defaultQueryOptions(t),r=x(this,Ye).getQueryCache().build(x(this,Ye),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return he(this,ye,lr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),x(this,ze)))}createResult(t,n){var P;const r=x(this,pe),i=this.options,o=x(this,ze),s=x(this,nn),a=x(this,Pn),u=t!==r?t.state:x(this,er),{state:c}=t;let d={...c},f=!1,p;if(n._optimisticResults){const N=this.hasListeners(),D=!N&&ha(t,n),T=N&&ga(t,r,n,i);(D||T)&&(d={...d,...da(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:I}=d;if(n.select&&d.data!==void 0)if(o&&d.data===(s==null?void 0:s.data)&&n.select===x(this,tr))p=x(this,Gn);else try{j(this,tr,n.select),p=n.select(d.data),p=Li(o==null?void 0:o.data,p,n),j(this,Gn,p),j(this,vt,null)}catch(N){j(this,vt,N)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&I==="pending"){let N;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))N=o.data;else if(N=typeof n.placeholderData=="function"?n.placeholderData((P=x(this,Bn))==null?void 0:P.state.data,x(this,Bn)):n.placeholderData,n.select&&N!==void 0)try{N=n.select(N),j(this,vt,null)}catch(D){j(this,vt,D)}N!==void 0&&(I="success",p=Li(o==null?void 0:o.data,N,n),f=!0)}x(this,vt)&&(b=x(this,vt),p=x(this,Gn),g=Date.now(),I="error");const v=d.fetchStatus==="fetching",k=I==="pending",A=I==="error",E=k&&v,S=p!==void 0,L={status:I,fetchStatus:d.fetchStatus,isPending:k,isSuccess:I==="success",isError:A,isInitialLoading:E,isLoading:E,data:p,dataUpdatedAt:d.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&!k,isLoadingError:A&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:A&&S,isStale:zi(t,n),refetch:this.refetch,promise:x(this,Xt)};if(this.options.experimental_prefetchInRender){const N=R=>{L.status==="error"?R.reject(L.error):L.data!==void 0&&R.resolve(L.data)},D=()=>{const R=j(this,Xt,L.promise=Mi());N(R)},T=x(this,Xt);switch(T.status){case"pending":t.queryHash===r.queryHash&&N(T);break;case"fulfilled":(L.status==="error"||L.data!==T.value)&&D();break;case"rejected":(L.status!=="error"||L.error!==T.reason)&&D();break}}return L}updateResult(t){const n=x(this,ze),r=this.createResult(x(this,pe),this.options);if(j(this,nn,x(this,pe).state),j(this,Pn,this.options),x(this,nn).data!==void 0&&j(this,Bn,x(this,pe)),Vi(r,n))return;j(this,ze,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!x(this,Tn).size)return!0;const l=new Set(a??x(this,Tn));return this.options.throwOnError&&l.add("error"),Object.keys(x(this,ze)).some(u=>{const c=u;return x(this,ze)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),he(this,ye,Iu).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&he(this,ye,Io).call(this)}},Ye=new WeakMap,pe=new WeakMap,er=new WeakMap,ze=new WeakMap,nn=new WeakMap,Pn=new WeakMap,Xt=new WeakMap,vt=new WeakMap,tr=new WeakMap,Gn=new WeakMap,Bn=new WeakMap,rn=new WeakMap,on=new WeakMap,Ht=new WeakMap,Tn=new WeakMap,ye=new WeakSet,lr=function(t){he(this,ye,Ao).call(this);let n=x(this,pe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(nt)),n},bo=function(){he(this,ye,Co).call(this);const t=bn(this.options.staleTime,x(this,pe));if(Ut||x(this,ze).isStale||!Ti(t))return;const r=ta(x(this,ze).dataUpdatedAt,t)+1;j(this,rn,setTimeout(()=>{x(this,ze).isStale||this.updateResult()},r))},yo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(x(this,pe)):this.options.refetchInterval)??!1},vo=function(t){he(this,ye,xo).call(this),j(this,Ht,t),!(Ut||st(this.options.enabled,x(this,pe))===!1||!Ti(x(this,Ht))||x(this,Ht)===0)&&j(this,on,setInterval(()=>{(this.options.refetchIntervalInBackground||Ri.isFocused())&&he(this,ye,lr).call(this)},x(this,Ht)))},Io=function(){he(this,ye,bo).call(this),he(this,ye,vo).call(this,he(this,ye,yo).call(this))},Co=function(){x(this,rn)&&(clearTimeout(x(this,rn)),j(this,rn,void 0))},xo=function(){x(this,on)&&(clearInterval(x(this,on)),j(this,on,void 0))},Ao=function(){const t=x(this,Ye).getQueryCache().build(x(this,Ye),this.options);if(t===x(this,pe))return;const n=x(this,pe);j(this,pe,t),j(this,er,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Iu=function(t){Oe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(x(this,ze))}),x(this,Ye).getQueryCache().notify({query:x(this,pe),type:"observerResultsUpdated"})})},su);function lh(e,t){return st(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ha(e,t){return lh(e,t)||e.state.data!==void 0&&Hi(e,t,t.refetchOnMount)}function Hi(e,t,n){if(st(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&zi(e,t)}return!1}function ga(e,t,n,r){return(e!==t||st(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&zi(e,n)}function zi(e,t){return st(t.enabled,e)!==!1&&e.isStaleByTime(bn(t.staleTime,e))}function uh(e,t){return!Vi(e.getCurrentResult(),t)}var ma=ne.createContext(void 0),ch=e=>{const t=ne.useContext(ma);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},dh=({client:e,children:t})=>(ne.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),B.jsx(ma.Provider,{value:e,children:t})),ba=ne.createContext(!1),ph=()=>ne.useContext(ba);ba.Provider;function fh(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var hh=ne.createContext(fh()),gh=()=>ne.useContext(hh);function mh(e,t){return typeof e=="function"?e(...t):!!e}function ya(){}var bh=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},yh=e=>{ne.useEffect(()=>{e.clearReset()},[e])},vh=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&mh(n,[e.error,r]),Ih=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Ch=(e,t)=>e.isLoading&&e.isFetching&&!t,xh=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,va=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Ah(e,t,n){var c,d,f,p,b;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=ch(),i=ph(),o=gh(),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",Ih(s),bh(s,o),yh(o);const a=!r.getQueryCache().get(s.queryHash),[l]=ne.useState(()=>new t(r,s)),u=l.getOptimisticResult(s);if(ne.useSyncExternalStore(ne.useCallback(g=>{const I=i?ya:l.subscribe(Oe.batchCalls(g));return l.updateResult(),I},[l,i]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),ne.useEffect(()=>{l.setOptions(s,{listeners:!1})},[s,l]),xh(s,u))throw va(s,l,o);if(vh({result:u,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw u.error;if((p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,s,u),s.experimental_prefetchInRender&&!Ut&&Ch(u,i)){const g=a?va(s,l,o):(b=r.getQueryCache().get(s.queryHash))==null?void 0:b.promise;g==null||g.catch(ya).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?u:l.trackResult(u)}function qt(e,t){return Ah(e,ah)}const Ia=G.createContext(void 0),wt=()=>{const e=G.useContext(Ia);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},wh=({children:e,client:t})=>{const n=new sh({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return B.jsx(dh,{client:n,children:B.jsx(Ia.Provider,{value:t,children:e})})};function Ca(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function Sh(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 e&&typeof e=="object"&&Array.isArray(e.__lv)?e.__lv:Array.isArray(e)?e:[]}function Eh(e){const t=Sh(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function kh(e){const t=Ca(e.value);if(t==null||typeof t>"u")return["required"]}function Fh(e){const{prop:t,value:n}=e,r=Ca(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 Ph(e){const{prop:t,value:n}=e;if(!t.default&&(n==null||typeof n>"u"))return["required"]}function Gh(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 Bh(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=Gh(t),s=r;for(const a of o)!a.optional&&!s[a.name]&&i.push(`missing custom field: ${a.name}`)}return t.auth_type!=="none"&&i.push("no auth provision configured"),i}}const Th=(e,t)=>{if(e!==void 0&&e!=="")return t!==void 0&&t!==""?{resolvedId:e,warningType:"both"}:{resolvedId:e};if(t!==void 0&&t!=="")return{resolvedId:t,warningType:"deprecated"};throw new Error("Either externalUserId or userId must be provided")},jn=["$.service.db","$.interface.http","$.interface.apphook","$.interface.timer","dir"],Wi=G.createContext(void 0),Jn=()=>{const e=G.useContext(Wi);if(!e)throw new Error("Must be used inside provider");return e},xa=({children:e,props:t})=>{const n=wt(),r=G.useId(),{component:i,configuredProps:o,propNames:s,externalUserId:a,userId:l,sdkResponse:u,enableDebugging:c}=t,{resolvedId:d,warningType:f}=G.useMemo(()=>Th(a,l),[a,l]);G.useEffect(()=>{process.env.NODE_ENV!=="production"&&(f==="both"?console.warn("[connect-react] Both externalUserId and userId provided. Using externalUserId. Please remove userId to avoid this warning."):f==="deprecated"&&console.warn("[connect-react] userId is deprecated. Please use externalUserId instead."))},[f]);const p=i.key,[b,g]=G.useState(0),[I,v]=G.useState({}),[k,A]=G.useState(!1),[E,S]=G.useState({}),[C,L]=G.useState([]),[P,N]=G.useState({});G.useEffect(()=>{N({})},[i.key]);const D=X=>P[X.name];let T=o||{};const[R,Q]=G.useState(T),ae=t.onUpdateConfiguredProps||Q;t.onUpdateConfiguredProps||(T=R);const[H,q]=G.useState(),[ie,fe]=G.useState(),ve={externalUserId:d,componentId:p,configuredProps:T,dynamicPropsId:H==null?void 0:H.id},y={...ve},{isFetching:Ae}=qt({queryKey:["dynamicProps",y],queryFn:async()=>{var Be;const X=await n.reloadComponentProps(ve),{dynamicProps:J,observations:$,errors:ge}=X;return $&&$.filter(Ze=>Ze.k==="error").length>0?Ct($):Ct(ge),J&&((Be=t.onUpdateDynamicProps)==null||Be.call(t,J),q(J)),fe(void 0),[]},enabled:ie!=null}),[ue,m]=G.useState([]);G.useEffect(()=>{kt()},[T]);const le=G.useMemo(()=>{let X=(H==null?void 0:H.configurableProps)||t.component.configurable_props||[];if(s!=null&&s.length){const J=[];for(const $ of X)s.findIndex(ge=>$.name===ge)>=0&&J.push($);X=J}return ie!=null&&(X=Array.isArray(X)?X.slice(0,ie+1):X),X},[H==null?void 0:H.configurableProps,t.component.configurable_props,s,ie]),ee=(X,J)=>{const $=[];if(X.optional||X.hidden||X.disabled||jn.includes(X.type))return[];if(X.type==="app"){const ge=I[X.name];if(ge){const Be=ge.extra.app;$.push(...Bh({prop:X,value:J,app:Be})??[])}else $.push("field not registered")}else X.type==="boolean"?$.push(...kh({prop:X,value:J})??[]):X.type==="integer"?$.push(...Fh({prop:X,value:J})??[]):X.type==="string"?$.push(...Ph({prop:X,value:J})??[]):X.type==="string[]"&&$.push(...Eh({prop:X,value:J})??[]);return $},de=X=>{let J;for(let $=0;$<le.length;$++){const ge=le[$];if(ge.hidden||ge.optional&&!D(ge))continue;if(X[ge.name]===void 0&&J==null&&(ge.type==="app"||ge.remoteOptions)){J=$;break}}g(J)},Ge=X=>{ae(X),de(X),be(X)},be=X=>{const J={};for(let $=0;$<le.length;$++){const ge=le[$],Be=X[ge.name],Ze=ee(ge,Be);Ze.length&&(J[ge.name]=Ze)}S(J)};G.useEffect(()=>{de(R)},[R]),G.useEffect(()=>{be(T)},[T,ie,b]),G.useEffect(()=>{Ct(u)},[u]),G.useEffect(()=>{const X={};for(const J of le){if(J.hidden||jn.includes(J.type)||J.optional&&!D(J))continue;const $=T[J.name];$===void 0?"default"in J&&J.default!=null&&(X[J.name]=J.default):J.type==="integer"&&typeof $!="number"?delete X[J.name]:X[J.name]=$}ea(X,T)||Ge(X)},[le]);const[Re,$e]=G.useState(d);G.useEffect(()=>{Re!==d&&(Ge({}),$e(d))},[d]);const We=(X,J)=>{const $=le[X],ge={...T};J===void 0?delete ge[$.name]:ge[$.name]=J,ae(ge),$.reloadProps&&fe(X),($.type==="app"||$.remoteOptions)&&de(ge);const Be=ee($,J),Ze={...E};Be.length?Ze[$.name]=Be:delete Ze[$.name],S(Ze)},It=(X,J)=>{const $={...P};J?$[X.name]=!0:delete $[X.name];const ge=le.findIndex(Be=>Be.name===X.name);J?(o==null?void 0:o[X.name])!==void 0?We(ge,o[X.name]):"default"in X&&X.default!=null&&We(ge,X.default):We(ge,void 0),N($)},kt=()=>{const X=[];for(const J of le){if(!J||J.optional||J.hidden||jn.includes(J.type))continue;const $=T[J.name];ee(J,$).length&&X.push(J.name)}X&&ue&&ea(X,ue)||m(X)},Ft=X=>{v(J=>(J[X.prop.name]=X,J)),kt()},Ct=X=>{if(!X)return;let J=[...C];const $=(we,F)=>{try{const V=JSON.parse(we),W={name:V.name,message:V.message};W.name&&W.message&&F.push(W)}catch{}},ge=(we,F)=>{const V={name:we.name,message:we.message};V.name&&V.message&&F.push(V)},Be=(we,F)=>{var W,oe;const V={name:(W=we.err)==null?void 0:W.name,message:(oe=we.err)==null?void 0:oe.message};V.name&&V.message&&F.push(V)},Ze=(we,F)=>{const V=we.os||we.observations;if(Array.isArray(V)&&V.length>0)for(let W=0;W<V.length;W++)V[W].k==="error"&&Be(V[W],F)},nr=(we,F)=>{F.push({name:we.error,message:JSON.stringify(we.details)})},rr=(we,F)=>{var V;try{const W=(V=JSON.parse(we.message))==null?void 0:V.data;W&&"observations"in W?Ze(W,F):W&&"error"in W&&"details"in W&&nr(W,F)}catch{}};if(Array.isArray(X)&&X.length>0)for(let we=0;we<X.length;we++){const F=X[we];typeof F=="string"?$(F,J):typeof F=="object"&&"name"in F&&"message"in F?ge(F,J):typeof F=="object"&&F.k==="error"&&Be(F,J)}else typeof X=="object"&&"os"in X||"observations"in X?Ze(X,J):typeof X=="object"&&"message"in X?rr(X,J):J=[];L(J)},On={id:r,isValid:!Object.keys(E).length,props:t,externalUserId:d,userId:d,component:i,configurableProps:le,configuredProps:T,dynamicProps:H,dynamicPropsQueryIsFetching:Ae,errors:E,fields:I,optionalPropIsEnabled:D,optionalPropSetEnabled:It,propsNeedConfiguring:ue,queryDisabledIdx:b,registerField:Ft,setConfiguredProp:We,setSubmitting:A,submitting:k,sdkErrors:C,enableDebugging:c};return B.jsx(Wi.Provider,{value:On,children:e})};function Qt(e){"@babel/helpers - typeof";return Qt=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},Qt(e)}function Oh(e,t){if(Qt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Aa(e){var t=Oh(e,"string");return Qt(t)=="symbol"?t:t+""}function Yn(e,t,n){return(t=Aa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wa(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 _(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wa(Object(n),!0).forEach(function(r){Yn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wa(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dh(e){if(Array.isArray(e))return e}function Vh(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function Zi(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 Sa(e,t){if(e){if(typeof e=="string")return Zi(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)?Zi(e,t):void 0}}function Nh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
15
+ `},i),o}function vf(e,t){return e&&"run"in e?async function(n,r){const i=Rs(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Rs(n,{file:r,...e||t})}}function Ms(e){if(e)throw e}var vr=Object.prototype.hasOwnProperty,Xs=Object.prototype.toString,Hs=Object.defineProperty,zs=Object.getOwnPropertyDescriptor,Ws=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Xs.call(t)==="[object Array]"},Zs=function(t){if(!t||Xs.call(t)!=="[object Object]")return!1;var n=vr.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&vr.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||vr.call(t,i)},js=function(t,n){Hs&&n.name==="__proto__"?Hs(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Js=function(t,n){if(n==="__proto__")if(vr.call(t,n)){if(zs)return zs(t,n).value}else return;return t[n]},If=function e(){var t,n,r,i,o,s,a=arguments[0],l=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)r=Js(a,n),i=Js(t,n),a!==i&&(c&&i&&(Zs(i)||(o=Ws(i)))?(o?(o=!1,s=r&&Ws(r)?r:[]):s=r&&Zs(r)?r:{},js(a,{name:n,newValue:e(c,s,i)})):typeof i<"u"&&js(a,{name:n,newValue:i}));return a};const xi=No(If);function Ai(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 Cf(){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);a(null,...i);function a(l,...u){const c=e[++o];let d=-1;if(l){s(l);return}for(;++d<i.length;)(u[d]===null||u[d]===void 0)&&(u[d]=i[d]);i=u,c?xf(c,a)(...u):s(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function xf(e,t){let n;return r;function r(...s){const a=e.length>s.length;let l;a&&s.push(i);try{l=e.apply(this,s)}catch(u){const c=u;if(a&&n)throw c;return i(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(s,...a){n||(n=!0,t(s,...a))}function o(s){i(null,s)}}const ft={basename:Af,dirname:wf,extname:Sf,join:Ef,sep:"/"};function Af(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,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function wf(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 Sf(e){Hn(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const a=e.codePointAt(t);if(a===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),a===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 Ef(...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?".":kf(n)}function kf(e){Hn(e);const t=e.codePointAt(0)===47;let n=Ff(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Ff(e,t){let n="",r=0,i=-1,o=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===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(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),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 a===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 Pf={cwd:Gf};function Gf(){return"/"}function wi(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Bf(e){if(typeof e=="string")e=new URL(e);else if(!wi(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 Tf(e)}function Tf(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 Si=["history","path","basename","stem","extname","dirname"];class Ys{constructor(t){let n;t?wi(t)?n={path:t}:typeof t=="string"||Of(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Pf.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Si.length;){const o=Si[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)Si.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?ft.basename(this.path):void 0}set basename(t){ki(t,"basename"),Ei(t,"basename"),this.path=ft.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ft.dirname(this.path):void 0}set dirname(t){_s(this.basename,"dirname"),this.path=ft.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ft.extname(this.path):void 0}set extname(t){if(Ei(t,"extname"),_s(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=ft.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){wi(t)&&(t=Bf(t)),ki(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ft.basename(this.path,this.extname):void 0}set stem(t){ki(t,"stem"),Ei(t,"stem"),this.path=ft.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 Ve(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 Ei(e,t){if(e&&e.includes(ft.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ft.sep+"`")}function ki(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function _s(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Of(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Df=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},Vf={}.hasOwnProperty;class Fi extends Df{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=Cf()}copy(){const t=new Fi;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(xi(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Bi("data",this.frozen),this.namespace[t]=n,this):Vf.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Bi("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=Ir(t),r=this.parser||this.Parser;return Pi("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Pi("process",this.parser||this.Parser),Gi("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const a=Ir(t),l=r.parse(a);r.run(l,a,function(c,d,f){if(c||!d||!f)return u(c);const p=d,b=r.stringify(p,f);Rf(b)?f.value=b:f.result=b,u(c,f)});function u(c,d){c||!d?s(c):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Pi("processSync",this.parser||this.Parser),Gi("processSync",this.compiler||this.Compiler),this.process(t,i),qs("processSync","process",n),r;function i(o,s){n=!0,Ms(o),r=s}}run(t,n,r){Us(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,a){const l=Ir(n);i.run(t,l,u);function u(c,d,f){const p=d||t;c?a(c):s?s(p):r(void 0,p,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),qs("runSync","run",r),i;function o(s,a){Ms(s),i=a,r=!0}}stringify(t,n){this.freeze();const r=Ir(n),i=this.compiler||this.Compiler;return Gi("stringify",i),Us(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Bi("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;l(c,d)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))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");a(u.plugins),u.settings&&(i.settings=xi(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let d=-1,f=-1;for(;++d<r.length;)if(r[d][0]===u){f=d;break}if(f===-1)r.push([u,...c]);else if(c.length>0){let[p,...b]=c;const g=r[f][1];Ai(g)&&Ai(p)&&(p=xi(!0,g,p)),r[f]=[u,p,...b]}}}}const Nf=new Fi().freeze();function Pi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Gi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Bi(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 Us(e){if(!Ai(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function qs(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ir(e){return Lf(e)?e:new Ys(e)}function Lf(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Rf(e){return typeof e=="string"||Mf(e)}function Mf(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Xf="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Qs=[],$s={allowDangerousHtml:!0},Hf=/^(https?|ircs?|mailto|xmpp)$/i,zf=[{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 Ks(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,s=e.disallowedElements,a=e.rehypePlugins||Qs,l=e.remarkPlugins||Qs,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...$s}:$s,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||Wf,p=Nf().use(Ap).use(l).use(vf,u).use(a),b=new Ys;typeof r=="string"&&(b.value=r);for(const k of zf)Object.hasOwn(e,k.from)&&(""+k.from+(k.to?"use `"+k.to+"` instead":"remove it")+Xf+k.id,void 0);const g=p.parse(b);let I=p.runSync(g,b);return i&&(I={type:"element",tagName:"div",properties:{className:i},children:I.type==="root"?I.children:[I]}),Ns(I,v),ac(I,{Fragment:B.Fragment,components:o,ignoreInvalidStyle:!0,jsx:B.jsx,jsxs:B.jsxs,passKeys:!0,passNode:!0});function v(k,A,E){if(k.type==="raw"&&E&&typeof A=="number")return c?E.children.splice(A,1):E.children[A]={type:"text",value:k.value},A;if(k.type==="element"){let S;for(S in ui)if(Object.hasOwn(ui,S)&&Object.hasOwn(k.properties,S)){const C=k.properties[S],L=ui[S];(L===null||L.includes(k.tagName))&&(k.properties[S]=f(String(C||""),S,k))}}if(k.type==="element"){let S=t?!t.includes(k.tagName):s?s.includes(k.tagName):!1;if(!S&&n&&typeof A=="number"&&(S=!n(k,A,E)),S&&E&&typeof A=="number")return d&&k.children?E.children.splice(A,1,...k.children):E.children.splice(A,1),A}}}function Wf(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||Hf.test(e.slice(0,t))?e:""}function Cr({prop:e}){const t={width:"100%",background:"#e2e3e5",borderRadius:"5px",paddingTop:"2px",paddingLeft:"10px",paddingRight:"10px",paddingBottom:"2px"},n={...t,background:"#fff3cd"},r={...t,background:"#d1ecf1"},i={...t,background:"#f8d7da"},o={...t,background:"#fffff2"};let s={};switch(e.alertType){case"info":s=r;break;case"neutral":s=o;break;case"warning":s=n;break;case"error":s=i;break;default:s=t}return B.jsx("div",{className:`pd-alert-${e.alertType}`,style:s,children:B.jsx(Ks,{components:{a:({...a})=>B.jsx("a",{...a,target:"_blank",rel:"noopener noreferrer"})},children:e.content})})}var xr={exports:{}};xr.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",b="[object GeneratorFunction]",g="[object Map]",I="[object Number]",v="[object Null]",k="[object Object]",A="[object Promise]",E="[object Proxy]",S="[object RegExp]",C="[object Set]",L="[object String]",P="[object Symbol]",N="[object Undefined]",D="[object WeakMap]",T="[object ArrayBuffer]",R="[object DataView]",Q="[object Float32Array]",ae="[object Float64Array]",H="[object Int8Array]",q="[object Int16Array]",ie="[object Int32Array]",fe="[object Uint8Array]",ve="[object Uint8ClampedArray]",y="[object Uint16Array]",Ae="[object Uint32Array]",ue=/[\\^$.*+?()[\]{}|]/g,m=/^\[object .+?Constructor\]$/,le=/^(?:0|[1-9]\d*)$/,ee={};ee[Q]=ee[ae]=ee[H]=ee[q]=ee[ie]=ee[fe]=ee[ve]=ee[y]=ee[Ae]=!0,ee[a]=ee[l]=ee[T]=ee[c]=ee[R]=ee[d]=ee[f]=ee[p]=ee[g]=ee[I]=ee[k]=ee[S]=ee[C]=ee[L]=ee[D]=!1;var de=typeof fn=="object"&&fn&&fn.Object===Object&&fn,Ge=typeof self=="object"&&self&&self.Object===Object&&self,be=de||Ge||Function("return this")(),Re=t&&!t.nodeType&&t,$e=Re&&!0&&e&&!e.nodeType&&e,We=$e&&$e.exports===Re,It=We&&de.process,kt=function(){try{return It&&It.binding&&It.binding("util")}catch{}}(),Ft=kt&&kt.isTypedArray;function Ct(h,w){for(var O=-1,Z=h==null?0:h.length,xe=0,se=[];++O<Z;){var Fe=h[O];w(Fe,O,h)&&(se[xe++]=Fe)}return se}function On(h,w){for(var O=-1,Z=w.length,xe=h.length;++O<Z;)h[xe+O]=w[O];return h}function X(h,w){for(var O=-1,Z=h==null?0:h.length;++O<Z;)if(w(h[O],O,h))return!0;return!1}function J(h,w){for(var O=-1,Z=Array(h);++O<h;)Z[O]=w(O);return Z}function $(h){return function(w){return h(w)}}function ge(h,w){return h.has(w)}function Be(h,w){return h==null?void 0:h[w]}function Ze(h){var w=-1,O=Array(h.size);return h.forEach(function(Z,xe){O[++w]=[xe,Z]}),O}function nr(h,w){return function(O){return h(w(O))}}function rr(h){var w=-1,O=Array(h.size);return h.forEach(function(Z){O[++w]=Z}),O}var we=Array.prototype,F=Function.prototype,V=Object.prototype,W=be["__core-js_shared__"],oe=F.toString,ce=V.hasOwnProperty,_e=function(){var h=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),xt=V.toString,lt=RegExp("^"+oe.call(ce).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zt=We?be.Buffer:void 0,At=be.Symbol,Me=be.Uint8Array,Pt=V.propertyIsEnumerable,ut=we.splice,sn=At?At.toStringTag:void 0,au=Object.getOwnPropertySymbols,Wb=zt?zt.isBuffer:void 0,Zb=nr(Object.keys,Object),uo=Dn(be,"DataView"),ir=Dn(be,"Map"),co=Dn(be,"Promise"),po=Dn(be,"Set"),fo=Dn(be,"WeakMap"),or=Dn(Object,"create"),jb=un(uo),Jb=un(ir),Yb=un(co),_b=un(po),Ub=un(fo),lu=At?At.prototype:void 0,ho=lu?lu.valueOf:void 0;function an(h){var w=-1,O=h==null?0:h.length;for(this.clear();++w<O;){var Z=h[w];this.set(Z[0],Z[1])}}function qb(){this.__data__=or?or(null):{},this.size=0}function Qb(h){var w=this.has(h)&&delete this.__data__[h];return this.size-=w?1:0,w}function $b(h){var w=this.__data__;if(or){var O=w[h];return O===r?void 0:O}return ce.call(w,h)?w[h]:void 0}function Kb(h){var w=this.__data__;return or?w[h]!==void 0:ce.call(w,h)}function ey(h,w){var O=this.__data__;return this.size+=this.has(h)?0:1,O[h]=or&&w===void 0?r:w,this}an.prototype.clear=qb,an.prototype.delete=Qb,an.prototype.get=$b,an.prototype.has=Kb,an.prototype.set=ey;function Gt(h){var w=-1,O=h==null?0:h.length;for(this.clear();++w<O;){var Z=h[w];this.set(Z[0],Z[1])}}function ty(){this.__data__=[],this.size=0}function ny(h){var w=this.__data__,O=Jr(w,h);if(O<0)return!1;var Z=w.length-1;return O==Z?w.pop():ut.call(w,O,1),--this.size,!0}function ry(h){var w=this.__data__,O=Jr(w,h);return O<0?void 0:w[O][1]}function iy(h){return Jr(this.__data__,h)>-1}function oy(h,w){var O=this.__data__,Z=Jr(O,h);return Z<0?(++this.size,O.push([h,w])):O[Z][1]=w,this}Gt.prototype.clear=ty,Gt.prototype.delete=ny,Gt.prototype.get=ry,Gt.prototype.has=iy,Gt.prototype.set=oy;function ln(h){var w=-1,O=h==null?0:h.length;for(this.clear();++w<O;){var Z=h[w];this.set(Z[0],Z[1])}}function sy(){this.size=0,this.__data__={hash:new an,map:new(ir||Gt),string:new an}}function ay(h){var w=Yr(this,h).delete(h);return this.size-=w?1:0,w}function ly(h){return Yr(this,h).get(h)}function uy(h){return Yr(this,h).has(h)}function cy(h,w){var O=Yr(this,h),Z=O.size;return O.set(h,w),this.size+=O.size==Z?0:1,this}ln.prototype.clear=sy,ln.prototype.delete=ay,ln.prototype.get=ly,ln.prototype.has=uy,ln.prototype.set=cy;function jr(h){var w=-1,O=h==null?0:h.length;for(this.__data__=new ln;++w<O;)this.add(h[w])}function dy(h){return this.__data__.set(h,r),this}function py(h){return this.__data__.has(h)}jr.prototype.add=jr.prototype.push=dy,jr.prototype.has=py;function Wt(h){var w=this.__data__=new Gt(h);this.size=w.size}function fy(){this.__data__=new Gt,this.size=0}function hy(h){var w=this.__data__,O=w.delete(h);return this.size=w.size,O}function gy(h){return this.__data__.get(h)}function my(h){return this.__data__.has(h)}function by(h,w){var O=this.__data__;if(O instanceof Gt){var Z=O.__data__;if(!ir||Z.length<n-1)return Z.push([h,w]),this.size=++O.size,this;O=this.__data__=new ln(Z)}return O.set(h,w),this.size=O.size,this}Wt.prototype.clear=fy,Wt.prototype.delete=hy,Wt.prototype.get=gy,Wt.prototype.has=my,Wt.prototype.set=by;function yy(h,w){var O=_r(h),Z=!O&&Oy(h),xe=!O&&!Z&&go(h),se=!O&&!Z&&!xe&&bu(h),Fe=O||Z||xe||se,Te=Fe?J(h.length,String):[],De=Te.length;for(var Se in h)ce.call(h,Se)&&!(Fe&&(Se=="length"||xe&&(Se=="offset"||Se=="parent")||se&&(Se=="buffer"||Se=="byteLength"||Se=="byteOffset")||Fy(Se,De)))&&Te.push(Se);return Te}function Jr(h,w){for(var O=h.length;O--;)if(fu(h[O][0],w))return O;return-1}function vy(h,w,O){var Z=w(h);return _r(h)?Z:On(Z,O(h))}function sr(h){return h==null?h===void 0?N:v:sn&&sn in Object(h)?Ey(h):Ty(h)}function uu(h){return ar(h)&&sr(h)==a}function cu(h,w,O,Z,xe){return h===w?!0:h==null||w==null||!ar(h)&&!ar(w)?h!==h&&w!==w:Iy(h,w,O,Z,cu,xe)}function Iy(h,w,O,Z,xe,se){var Fe=_r(h),Te=_r(w),De=Fe?l:Zt(h),Se=Te?l:Zt(w);De=De==a?k:De,Se=Se==a?k:Se;var Ke=De==k,ct=Se==k,Xe=De==Se;if(Xe&&go(h)){if(!go(w))return!1;Fe=!0,Ke=!1}if(Xe&&!Ke)return se||(se=new Wt),Fe||bu(h)?du(h,w,O,Z,xe,se):wy(h,w,De,O,Z,xe,se);if(!(O&i)){var it=Ke&&ce.call(h,"__wrapped__"),ot=ct&&ce.call(w,"__wrapped__");if(it||ot){var jt=it?h.value():h,Bt=ot?w.value():w;return se||(se=new Wt),xe(jt,Bt,O,Z,se)}}return Xe?(se||(se=new Wt),Sy(h,w,O,Z,xe,se)):!1}function Cy(h){if(!mu(h)||Gy(h))return!1;var w=hu(h)?lt:m;return w.test(un(h))}function xy(h){return ar(h)&&gu(h.length)&&!!ee[sr(h)]}function Ay(h){if(!By(h))return Zb(h);var w=[];for(var O in Object(h))ce.call(h,O)&&O!="constructor"&&w.push(O);return w}function du(h,w,O,Z,xe,se){var Fe=O&i,Te=h.length,De=w.length;if(Te!=De&&!(Fe&&De>Te))return!1;var Se=se.get(h);if(Se&&se.get(w))return Se==w;var Ke=-1,ct=!0,Xe=O&o?new jr:void 0;for(se.set(h,w),se.set(w,h);++Ke<Te;){var it=h[Ke],ot=w[Ke];if(Z)var jt=Fe?Z(ot,it,Ke,w,h,se):Z(it,ot,Ke,h,w,se);if(jt!==void 0){if(jt)continue;ct=!1;break}if(Xe){if(!X(w,function(Bt,cn){if(!ge(Xe,cn)&&(it===Bt||xe(it,Bt,O,Z,se)))return Xe.push(cn)})){ct=!1;break}}else if(!(it===ot||xe(it,ot,O,Z,se))){ct=!1;break}}return se.delete(h),se.delete(w),ct}function wy(h,w,O,Z,xe,se,Fe){switch(O){case R:if(h.byteLength!=w.byteLength||h.byteOffset!=w.byteOffset)return!1;h=h.buffer,w=w.buffer;case T:return!(h.byteLength!=w.byteLength||!se(new Me(h),new Me(w)));case c:case d:case I:return fu(+h,+w);case f:return h.name==w.name&&h.message==w.message;case S:case L:return h==w+"";case g:var Te=Ze;case C:var De=Z&i;if(Te||(Te=rr),h.size!=w.size&&!De)return!1;var Se=Fe.get(h);if(Se)return Se==w;Z|=o,Fe.set(h,w);var Ke=du(Te(h),Te(w),Z,xe,se,Fe);return Fe.delete(h),Ke;case P:if(ho)return ho.call(h)==ho.call(w)}return!1}function Sy(h,w,O,Z,xe,se){var Fe=O&i,Te=pu(h),De=Te.length,Se=pu(w),Ke=Se.length;if(De!=Ke&&!Fe)return!1;for(var ct=De;ct--;){var Xe=Te[ct];if(!(Fe?Xe in w:ce.call(w,Xe)))return!1}var it=se.get(h);if(it&&se.get(w))return it==w;var ot=!0;se.set(h,w),se.set(w,h);for(var jt=Fe;++ct<De;){Xe=Te[ct];var Bt=h[Xe],cn=w[Xe];if(Z)var yu=Fe?Z(cn,Bt,Xe,w,h,se):Z(Bt,cn,Xe,h,w,se);if(!(yu===void 0?Bt===cn||xe(Bt,cn,O,Z,se):yu)){ot=!1;break}jt||(jt=Xe=="constructor")}if(ot&&!jt){var Ur=h.constructor,qr=w.constructor;Ur!=qr&&"constructor"in h&&"constructor"in w&&!(typeof Ur=="function"&&Ur instanceof Ur&&typeof qr=="function"&&qr instanceof qr)&&(ot=!1)}return se.delete(h),se.delete(w),ot}function pu(h){return vy(h,Ny,ky)}function Yr(h,w){var O=h.__data__;return Py(w)?O[typeof w=="string"?"string":"hash"]:O.map}function Dn(h,w){var O=Be(h,w);return Cy(O)?O:void 0}function Ey(h){var w=ce.call(h,sn),O=h[sn];try{h[sn]=void 0;var Z=!0}catch{}var xe=xt.call(h);return Z&&(w?h[sn]=O:delete h[sn]),xe}var ky=au?function(h){return h==null?[]:(h=Object(h),Ct(au(h),function(w){return Pt.call(h,w)}))}:Ly,Zt=sr;(uo&&Zt(new uo(new ArrayBuffer(1)))!=R||ir&&Zt(new ir)!=g||co&&Zt(co.resolve())!=A||po&&Zt(new po)!=C||fo&&Zt(new fo)!=D)&&(Zt=function(h){var w=sr(h),O=w==k?h.constructor:void 0,Z=O?un(O):"";if(Z)switch(Z){case jb:return R;case Jb:return g;case Yb:return A;case _b:return C;case Ub:return D}return w});function Fy(h,w){return w=w??s,!!w&&(typeof h=="number"||le.test(h))&&h>-1&&h%1==0&&h<w}function Py(h){var w=typeof h;return w=="string"||w=="number"||w=="symbol"||w=="boolean"?h!=="__proto__":h===null}function Gy(h){return!!_e&&_e in h}function By(h){var w=h&&h.constructor,O=typeof w=="function"&&w.prototype||V;return h===O}function Ty(h){return xt.call(h)}function un(h){if(h!=null){try{return oe.call(h)}catch{}try{return h+""}catch{}}return""}function fu(h,w){return h===w||h!==h&&w!==w}var Oy=uu(function(){return arguments}())?uu:function(h){return ar(h)&&ce.call(h,"callee")&&!Pt.call(h,"callee")},_r=Array.isArray;function Dy(h){return h!=null&&gu(h.length)&&!hu(h)}var go=Wb||Ry;function Vy(h,w){return cu(h,w)}function hu(h){if(!mu(h))return!1;var w=sr(h);return w==p||w==b||w==u||w==E}function gu(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=s}function mu(h){var w=typeof h;return h!=null&&(w=="object"||w=="function")}function ar(h){return h!=null&&typeof h=="object"}var bu=Ft?$(Ft):xy;function Ny(h){return Dy(h)?yy(h):Ay(h)}function Ly(){return[]}function Ry(){return!1}e.exports=Vy}(xr,xr.exports);var Zf=xr.exports;const ea=No(Zf);var zn=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(){}},Ut=typeof window>"u"||"Deno"in globalThis;function nt(){}function jf(e,t){return typeof e=="function"?e(t):e}function Ti(e){return typeof e=="number"&&e>=0&&e!==1/0}function ta(e,t){return Math.max(e+(t||0)-Date.now(),0)}function bn(e,t){return typeof e=="function"?e(t):e}function st(e,t){return typeof e=="function"?e(t):e}function na(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Oi(s,t.options))return!1}else if(!Zn(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function ra(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Wn(t.options.mutationKey)!==Wn(o))return!1}else if(!Zn(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Oi(e,t){return((t==null?void 0:t.queryKeyHashFn)||Wn)(e)}function Wn(e){return JSON.stringify(e,(t,n)=>Ni(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Zn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Zn(e[n],t[n])):!1}function Di(e,t){if(e===t)return e;const n=ia(e)&&ia(t);if(n||Ni(e)&&Ni(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,a=n?[]:{};let l=0;for(let u=0;u<s;u++){const c=n?u:o[u];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(a[c]=void 0,l++):(a[c]=Di(e[c],t[c]),a[c]===e[c]&&e[c]!==void 0&&l++)}return i===s&&l===i?e:a}return t}function Vi(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 ia(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ni(e){if(!oa(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!oa(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function oa(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jf(e){return new Promise(t=>{setTimeout(t,e)})}function Li(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 Di(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 Di(e,t)}return t}function Yf(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function _f(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ar=Symbol();function sa(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Ar&&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===Ar?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Uf=($l=class extends zn{constructor(){super();te(this,$t);te(this,Vt);te(this,In);j(this,In,t=>{if(!Ut&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){x(this,Vt)||this.setEventListener(x(this,In))}onUnsubscribe(){var t;this.hasListeners()||((t=x(this,Vt))==null||t.call(this),j(this,Vt,void 0))}setEventListener(t){var n;j(this,In,t),(n=x(this,Vt))==null||n.call(this),j(this,Vt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){x(this,$t)!==t&&(j(this,$t,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof x(this,$t)=="boolean"?x(this,$t):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},$t=new WeakMap,Vt=new WeakMap,In=new WeakMap,$l),Ri=new Uf,qf=(Kl=class extends zn{constructor(){super();te(this,Cn,!0);te(this,Nt);te(this,xn);j(this,xn,t=>{if(!Ut&&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(){x(this,Nt)||this.setEventListener(x(this,xn))}onUnsubscribe(){var t;this.hasListeners()||((t=x(this,Nt))==null||t.call(this),j(this,Nt,void 0))}setEventListener(t){var n;j(this,xn,t),(n=x(this,Nt))==null||n.call(this),j(this,Nt,t(this.setOnline.bind(this)))}setOnline(t){x(this,Cn)!==t&&(j(this,Cn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return x(this,Cn)}},Cn=new WeakMap,Nt=new WeakMap,xn=new WeakMap,Kl),wr=new qf;function Mi(){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 Qf(e){return Math.min(1e3*2**e,3e4)}function aa(e){return(e??"online")==="online"?wr.isOnline():!0}var la=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Xi(e){return e instanceof la}function ua(e){let t=!1,n=0,r=!1,i;const o=Mi(),s=g=>{var I;r||(f(new la(g)),(I=e.abort)==null||I.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Ri.isFocused()&&(e.networkMode==="always"||wr.isOnline())&&e.canRun(),c=()=>aa(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||u())&&g(v)},(I=e.onPause)==null||I.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),b=()=>{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 C;if(r)return;const k=e.retry??(Ut?0:3),A=e.retryDelay??Qf,E=typeof A=="function"?A(n,v):A,S=k===!0||typeof k=="number"&&n<k||typeof k=="function"&&k(n,v);if(t||!S){f(v);return}n++,(C=e.onFail)==null||C.call(e,n,v),Jf(E).then(()=>u()?void 0:p()).then(()=>{t?f(v):b()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?b():p().then(b),o)}}function $f(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=a=>setTimeout(a,0);const o=a=>{t?e.push(a):i(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var Oe=$f(),ca=(eu=class{constructor(){te(this,Kt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ti(this.gcTime)&&j(this,Kt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ut?1/0:5*60*1e3))}clearGcTimeout(){x(this,Kt)&&(clearTimeout(x(this,Kt)),j(this,Kt,void 0))}},Kt=new WeakMap,eu),Kf=(tu=class extends ca{constructor(t){super();te(this,at);te(this,An);te(this,wn);te(this,rt);te(this,Le);te(this,$n);te(this,en);j(this,en,!1),j(this,$n,t.defaultOptions),this.setOptions(t.options),this.observers=[],j(this,rt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,j(this,An,eh(this.options)),this.state=t.state??x(this,An),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=x(this,Le))==null?void 0:t.promise}setOptions(t){this.options={...x(this,$n),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&x(this,rt).remove(this)}setData(t,n){const r=Li(this.state.data,t,this.options);return he(this,at,Tt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){he(this,at,Tt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=x(this,Le))==null?void 0:r.promise;return(i=x(this,Le))==null||i.cancel(t),n?n.then(nt).catch(nt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(x(this,An))}isActive(){return this.observers.some(t=>st(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ar||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||!ta(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=x(this,Le))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=x(this,Le))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),x(this,rt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(x(this,Le)&&(x(this,en)?x(this,Le).cancel({revert:!0}):x(this,Le).cancelRetry()),this.scheduleGc()),x(this,rt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||he(this,at,Tt).call(this,{type:"invalidate"})}fetch(t,n){var l,u,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(x(this,Le))return x(this,Le).continueRetry(),x(this,Le).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:()=>(j(this,en,!0),r.signal)})},o=()=>{const d=sa(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),j(this,en,!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),(l=this.options.behavior)==null||l.onFetch(s,this),j(this,wn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&he(this,at,Tt).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const a=d=>{var f,p,b,g;Xi(d)&&d.silent||he(this,at,Tt).call(this,{type:"error",error:d}),Xi(d)||((p=(f=x(this,rt).config).onError)==null||p.call(f,d,this),(g=(b=x(this,rt).config).onSettled)==null||g.call(b,this.state.data,d,this)),this.scheduleGc()};return j(this,Le,ua({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,p,b,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}`),a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(I){a(I);return}(p=(f=x(this,rt).config).onSuccess)==null||p.call(f,d,this),(g=(b=x(this,rt).config).onSettled)==null||g.call(b,d,this.state.error,this),this.scheduleGc()},onError:a,onFail:(d,f)=>{he(this,at,Tt).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{he(this,at,Tt).call(this,{type:"pause"})},onContinue:()=>{he(this,at,Tt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),x(this,Le).start()}},An=new WeakMap,wn=new WeakMap,rt=new WeakMap,Le=new WeakMap,$n=new WeakMap,en=new WeakMap,at=new WeakSet,Tt=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,...da(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 Xi(i)&&i.revert&&x(this,wn)?{...x(this,wn),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),Oe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),x(this,rt).notify({query:this,type:"updated",action:t})})},tu);function da(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:aa(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function eh(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 th=(nu=class extends zn{constructor(t={}){super();te(this,mt);this.config=t,j(this,mt,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Oi(i,n);let s=this.get(o);return s||(s=new Kf({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){x(this,mt).has(t.queryHash)||(x(this,mt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=x(this,mt).get(t.queryHash);n&&(t.destroy(),n===t&&x(this,mt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Oe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return x(this,mt).get(t)}getAll(){return[...x(this,mt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>na(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>na(t,r)):n}notify(t){Oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Oe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Oe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},mt=new WeakMap,nu),nh=(ru=class extends ca{constructor(t){super();te(this,yt);te(this,bt);te(this,He);te(this,tn);this.mutationId=t.mutationId,j(this,He,t.mutationCache),j(this,bt,[]),this.state=t.state||rh(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){x(this,bt).includes(t)||(x(this,bt).push(t),this.clearGcTimeout(),x(this,He).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){j(this,bt,x(this,bt).filter(n=>n!==t)),this.scheduleGc(),x(this,He).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){x(this,bt).length||(this.state.status==="pending"?this.scheduleGc():x(this,He).remove(this))}continue(){var t;return((t=x(this,tn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,a,l,u,c,d,f,p,b,g,I,v,k,A,E,S,C,L;j(this,tn,ua({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,N)=>{he(this,yt,Jt).call(this,{type:"failed",failureCount:P,error:N})},onPause:()=>{he(this,yt,Jt).call(this,{type:"pause"})},onContinue:()=>{he(this,yt,Jt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>x(this,He).canRun(this)}));const n=this.state.status==="pending",r=!x(this,tn).canStart();try{if(!n){he(this,yt,Jt).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=x(this,He).config).onMutate)==null?void 0:o.call(i,t,this));const N=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t));N!==this.state.context&&he(this,yt,Jt).call(this,{type:"pending",context:N,variables:t,isPaused:r})}const P=await x(this,tn).start();return await((u=(l=x(this,He).config).onSuccess)==null?void 0:u.call(l,P,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,P,t,this.state.context)),await((p=(f=x(this,He).config).onSettled)==null?void 0:p.call(f,P,null,this.state.variables,this.state.context,this)),await((g=(b=this.options).onSettled)==null?void 0:g.call(b,P,null,t,this.state.context)),he(this,yt,Jt).call(this,{type:"success",data:P}),P}catch(P){try{throw await((v=(I=x(this,He).config).onError)==null?void 0:v.call(I,P,t,this.state.context,this)),await((A=(k=this.options).onError)==null?void 0:A.call(k,P,t,this.state.context)),await((S=(E=x(this,He).config).onSettled)==null?void 0:S.call(E,void 0,P,this.state.variables,this.state.context,this)),await((L=(C=this.options).onSettled)==null?void 0:L.call(C,void 0,P,t,this.state.context)),P}finally{he(this,yt,Jt).call(this,{type:"error",error:P})}}finally{x(this,He).runNext(this)}}},bt=new WeakMap,He=new WeakMap,tn=new WeakMap,yt=new WeakSet,Jt=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),Oe.batch(()=>{x(this,bt).forEach(r=>{r.onMutationUpdate(t)}),x(this,He).notify({mutation:this,type:"updated",action:t})})},ru);function rh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ih=(iu=class extends zn{constructor(t={}){super();te(this,Qe);te(this,Kn);this.config=t,j(this,Qe,new Map),j(this,Kn,Date.now())}build(t,n,r){const i=new nh({mutationCache:this,mutationId:++Qr(this,Kn)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Sr(t),r=x(this,Qe).get(n)??[];r.push(t),x(this,Qe).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Sr(t);if(x(this,Qe).has(n)){const i=(r=x(this,Qe).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?x(this,Qe).delete(n):x(this,Qe).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=x(this,Qe).get(Sr(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=x(this,Qe).get(Sr(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Oe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...x(this,Qe).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ra(n,r))}findAll(t={}){return this.getAll().filter(n=>ra(t,n))}notify(t){Oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Oe.batch(()=>Promise.all(t.map(n=>n.continue().catch(nt))))}},Qe=new WeakMap,Kn=new WeakMap,iu);function Sr(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function pa(e){return{onFetch:(t,n)=>{var c,d,f,p,b;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=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const I=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=sa(t.options,t.fetchOptions),k=async(A,E,S)=>{if(g)return Promise.reject();if(E==null&&A.pages.length)return Promise.resolve(A);const C={queryKey:t.queryKey,pageParam:E,direction:S?"backward":"forward",meta:t.options.meta};I(C);const L=await v(C),{maxPages:P}=t.options,N=S?_f:Yf;return{pages:N(A.pages,L,P),pageParams:N(A.pageParams,E,P)}};if(i&&o.length){const A=i==="backward",E=A?oh:fa,S={pages:o,pageParams:s},C=E(r,S);a=await k(S,C,A)}else{const A=e??o.length;do{const E=l===0?s[0]??r.initialPageParam:fa(r,a);if(l>0&&E==null)break;a=await k(a,E),l++}while(l<A)}return a};t.options.persister?t.fetchFn=()=>{var g,I;return(I=(g=t.options).persister)==null?void 0:I.call(g,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function fa(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 oh(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 sh=(ou=class{constructor(e={}){te(this,ke);te(this,Lt);te(this,Rt);te(this,Sn);te(this,En);te(this,Mt);te(this,kn);te(this,Fn);j(this,ke,e.queryCache||new th),j(this,Lt,e.mutationCache||new ih),j(this,Rt,e.defaultOptions||{}),j(this,Sn,new Map),j(this,En,new Map),j(this,Mt,0)}mount(){Qr(this,Mt)._++,x(this,Mt)===1&&(j(this,kn,Ri.subscribe(async e=>{e&&(await this.resumePausedMutations(),x(this,ke).onFocus())})),j(this,Fn,wr.subscribe(async e=>{e&&(await this.resumePausedMutations(),x(this,ke).onOnline())})))}unmount(){var e,t;Qr(this,Mt)._--,x(this,Mt)===0&&((e=x(this,kn))==null||e.call(this),j(this,kn,void 0),(t=x(this,Fn))==null||t.call(this),j(this,Fn,void 0))}isFetching(e){return x(this,ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return x(this,Lt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=x(this,ke).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=x(this,ke).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(bn(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return x(this,ke).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=x(this,ke).get(r.queryHash),o=i==null?void 0:i.state.data,s=jf(t,o);if(s!==void 0)return x(this,ke).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Oe.batch(()=>x(this,ke).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=x(this,ke).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=x(this,ke);Oe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=x(this,ke),r={type:"active",...e};return Oe.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Oe.batch(()=>x(this,ke).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(nt).catch(nt)}invalidateQueries(e={},t={}){return Oe.batch(()=>{if(x(this,ke).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=Oe.batch(()=>x(this,ke).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(nt)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(nt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=x(this,ke).build(this,t);return n.isStaleByTime(bn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(nt).catch(nt)}fetchInfiniteQuery(e){return e.behavior=pa(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(nt).catch(nt)}ensureInfiniteQueryData(e){return e.behavior=pa(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return wr.isOnline()?x(this,Lt).resumePausedMutations():Promise.resolve()}getQueryCache(){return x(this,ke)}getMutationCache(){return x(this,Lt)}getDefaultOptions(){return x(this,Rt)}setDefaultOptions(e){j(this,Rt,e)}setQueryDefaults(e,t){x(this,Sn).set(Wn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...x(this,Sn).values()];let n={};return t.forEach(r=>{Zn(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){x(this,En).set(Wn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...x(this,En).values()];let n={};return t.forEach(r=>{Zn(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...x(this,Rt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Oi(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===Ar&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...x(this,Rt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){x(this,ke).clear(),x(this,Lt).clear()}},ke=new WeakMap,Lt=new WeakMap,Rt=new WeakMap,Sn=new WeakMap,En=new WeakMap,Mt=new WeakMap,kn=new WeakMap,Fn=new WeakMap,ou),ah=(su=class extends zn{constructor(t,n){super();te(this,ye);te(this,Ye);te(this,pe);te(this,er);te(this,ze);te(this,nn);te(this,Pn);te(this,Xt);te(this,vt);te(this,tr);te(this,Gn);te(this,Bn);te(this,rn);te(this,on);te(this,Ht);te(this,Tn,new Set);this.options=n,j(this,Ye,t),j(this,vt,null),j(this,Xt,Mi()),this.options.experimental_prefetchInRender||x(this,Xt).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&&(x(this,pe).addObserver(this),ha(x(this,pe),this.options)?he(this,ye,lr).call(this):this.updateResult(),he(this,ye,Io).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hi(x(this,pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hi(x(this,pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,he(this,ye,Co).call(this),he(this,ye,xo).call(this),x(this,pe).removeObserver(this)}setOptions(t,n){const r=this.options,i=x(this,pe);if(this.options=x(this,Ye).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof st(this.options.enabled,x(this,pe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");he(this,ye,Ao).call(this),x(this,pe).setOptions(this.options),r._defaulted&&!Vi(this.options,r)&&x(this,Ye).getQueryCache().notify({type:"observerOptionsUpdated",query:x(this,pe),observer:this});const o=this.hasListeners();o&&ga(x(this,pe),i,this.options,r)&&he(this,ye,lr).call(this),this.updateResult(n),o&&(x(this,pe)!==i||st(this.options.enabled,x(this,pe))!==st(r.enabled,x(this,pe))||bn(this.options.staleTime,x(this,pe))!==bn(r.staleTime,x(this,pe)))&&he(this,ye,bo).call(this);const s=he(this,ye,yo).call(this);o&&(x(this,pe)!==i||st(this.options.enabled,x(this,pe))!==st(r.enabled,x(this,pe))||s!==x(this,Ht))&&he(this,ye,vo).call(this,s)}getOptimisticResult(t){const n=x(this,Ye).getQueryCache().build(x(this,Ye),t),r=this.createResult(n,t);return uh(this,r)&&(j(this,ze,r),j(this,Pn,this.options),j(this,nn,x(this,pe).state)),r}getCurrentResult(){return x(this,ze)}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){x(this,Tn).add(t)}getCurrentQuery(){return x(this,pe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=x(this,Ye).defaultQueryOptions(t),r=x(this,Ye).getQueryCache().build(x(this,Ye),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return he(this,ye,lr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),x(this,ze)))}createResult(t,n){var P;const r=x(this,pe),i=this.options,o=x(this,ze),s=x(this,nn),a=x(this,Pn),u=t!==r?t.state:x(this,er),{state:c}=t;let d={...c},f=!1,p;if(n._optimisticResults){const N=this.hasListeners(),D=!N&&ha(t,n),T=N&&ga(t,r,n,i);(D||T)&&(d={...d,...da(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:I}=d;if(n.select&&d.data!==void 0)if(o&&d.data===(s==null?void 0:s.data)&&n.select===x(this,tr))p=x(this,Gn);else try{j(this,tr,n.select),p=n.select(d.data),p=Li(o==null?void 0:o.data,p,n),j(this,Gn,p),j(this,vt,null)}catch(N){j(this,vt,N)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&I==="pending"){let N;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))N=o.data;else if(N=typeof n.placeholderData=="function"?n.placeholderData((P=x(this,Bn))==null?void 0:P.state.data,x(this,Bn)):n.placeholderData,n.select&&N!==void 0)try{N=n.select(N),j(this,vt,null)}catch(D){j(this,vt,D)}N!==void 0&&(I="success",p=Li(o==null?void 0:o.data,N,n),f=!0)}x(this,vt)&&(b=x(this,vt),p=x(this,Gn),g=Date.now(),I="error");const v=d.fetchStatus==="fetching",k=I==="pending",A=I==="error",E=k&&v,S=p!==void 0,L={status:I,fetchStatus:d.fetchStatus,isPending:k,isSuccess:I==="success",isError:A,isInitialLoading:E,isLoading:E,data:p,dataUpdatedAt:d.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&!k,isLoadingError:A&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:A&&S,isStale:zi(t,n),refetch:this.refetch,promise:x(this,Xt)};if(this.options.experimental_prefetchInRender){const N=R=>{L.status==="error"?R.reject(L.error):L.data!==void 0&&R.resolve(L.data)},D=()=>{const R=j(this,Xt,L.promise=Mi());N(R)},T=x(this,Xt);switch(T.status){case"pending":t.queryHash===r.queryHash&&N(T);break;case"fulfilled":(L.status==="error"||L.data!==T.value)&&D();break;case"rejected":(L.status!=="error"||L.error!==T.reason)&&D();break}}return L}updateResult(t){const n=x(this,ze),r=this.createResult(x(this,pe),this.options);if(j(this,nn,x(this,pe).state),j(this,Pn,this.options),x(this,nn).data!==void 0&&j(this,Bn,x(this,pe)),Vi(r,n))return;j(this,ze,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!x(this,Tn).size)return!0;const l=new Set(a??x(this,Tn));return this.options.throwOnError&&l.add("error"),Object.keys(x(this,ze)).some(u=>{const c=u;return x(this,ze)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),he(this,ye,Iu).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&he(this,ye,Io).call(this)}},Ye=new WeakMap,pe=new WeakMap,er=new WeakMap,ze=new WeakMap,nn=new WeakMap,Pn=new WeakMap,Xt=new WeakMap,vt=new WeakMap,tr=new WeakMap,Gn=new WeakMap,Bn=new WeakMap,rn=new WeakMap,on=new WeakMap,Ht=new WeakMap,Tn=new WeakMap,ye=new WeakSet,lr=function(t){he(this,ye,Ao).call(this);let n=x(this,pe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(nt)),n},bo=function(){he(this,ye,Co).call(this);const t=bn(this.options.staleTime,x(this,pe));if(Ut||x(this,ze).isStale||!Ti(t))return;const r=ta(x(this,ze).dataUpdatedAt,t)+1;j(this,rn,setTimeout(()=>{x(this,ze).isStale||this.updateResult()},r))},yo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(x(this,pe)):this.options.refetchInterval)??!1},vo=function(t){he(this,ye,xo).call(this),j(this,Ht,t),!(Ut||st(this.options.enabled,x(this,pe))===!1||!Ti(x(this,Ht))||x(this,Ht)===0)&&j(this,on,setInterval(()=>{(this.options.refetchIntervalInBackground||Ri.isFocused())&&he(this,ye,lr).call(this)},x(this,Ht)))},Io=function(){he(this,ye,bo).call(this),he(this,ye,vo).call(this,he(this,ye,yo).call(this))},Co=function(){x(this,rn)&&(clearTimeout(x(this,rn)),j(this,rn,void 0))},xo=function(){x(this,on)&&(clearInterval(x(this,on)),j(this,on,void 0))},Ao=function(){const t=x(this,Ye).getQueryCache().build(x(this,Ye),this.options);if(t===x(this,pe))return;const n=x(this,pe);j(this,pe,t),j(this,er,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Iu=function(t){Oe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(x(this,ze))}),x(this,Ye).getQueryCache().notify({query:x(this,pe),type:"observerResultsUpdated"})})},su);function lh(e,t){return st(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ha(e,t){return lh(e,t)||e.state.data!==void 0&&Hi(e,t,t.refetchOnMount)}function Hi(e,t,n){if(st(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&zi(e,t)}return!1}function ga(e,t,n,r){return(e!==t||st(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&zi(e,n)}function zi(e,t){return st(t.enabled,e)!==!1&&e.isStaleByTime(bn(t.staleTime,e))}function uh(e,t){return!Vi(e.getCurrentResult(),t)}var ma=ne.createContext(void 0),ch=e=>{const t=ne.useContext(ma);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},dh=({client:e,children:t})=>(ne.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),B.jsx(ma.Provider,{value:e,children:t})),ba=ne.createContext(!1),ph=()=>ne.useContext(ba);ba.Provider;function fh(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var hh=ne.createContext(fh()),gh=()=>ne.useContext(hh);function mh(e,t){return typeof e=="function"?e(...t):!!e}function ya(){}var bh=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},yh=e=>{ne.useEffect(()=>{e.clearReset()},[e])},vh=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&mh(n,[e.error,r]),Ih=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Ch=(e,t)=>e.isLoading&&e.isFetching&&!t,xh=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,va=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Ah(e,t,n){var c,d,f,p,b;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=ch(),i=ph(),o=gh(),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",Ih(s),bh(s,o),yh(o);const a=!r.getQueryCache().get(s.queryHash),[l]=ne.useState(()=>new t(r,s)),u=l.getOptimisticResult(s);if(ne.useSyncExternalStore(ne.useCallback(g=>{const I=i?ya:l.subscribe(Oe.batchCalls(g));return l.updateResult(),I},[l,i]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),ne.useEffect(()=>{l.setOptions(s,{listeners:!1})},[s,l]),xh(s,u))throw va(s,l,o);if(vh({result:u,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw u.error;if((p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,s,u),s.experimental_prefetchInRender&&!Ut&&Ch(u,i)){const g=a?va(s,l,o):(b=r.getQueryCache().get(s.queryHash))==null?void 0:b.promise;g==null||g.catch(ya).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?u:l.trackResult(u)}function qt(e,t){return Ah(e,ah)}const Ia=G.createContext(void 0),wt=()=>{const e=G.useContext(Ia);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},wh=({children:e,client:t})=>{const n=new sh({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return B.jsx(dh,{client:n,children:B.jsx(Ia.Provider,{value:t,children:e})})};function Ca(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function Sh(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 e&&typeof e=="object"&&Array.isArray(e.__lv)?e.__lv:Array.isArray(e)?e:[]}function Eh(e){const t=Sh(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function kh(e){const t=Ca(e.value);if(t==null||typeof t>"u")return["required"]}function Fh(e){const{prop:t,value:n}=e,r=Ca(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 Ph(e){const{prop:t,value:n}=e;if(!t.default&&(n==null||typeof n>"u"))return["required"]}function Gh(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 Bh(e){const{app:t,value:n}=e;if(!t)return["app field not registered"];if(!t.auth_type)return;if(!n)return["no app configured"];if(typeof n!="object")return["not an app"];const r=n;if("authProvisionId"in r&&!r.authProvisionId){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=Gh(t),s=r;for(const a of o)!a.optional&&!s[a.name]&&i.push(`missing custom field: ${a.name}`)}return i}}const Th=(e,t)=>{if(e!==void 0&&e!=="")return t!==void 0&&t!==""?{resolvedId:e,warningType:"both"}:{resolvedId:e};if(t!==void 0&&t!=="")return{resolvedId:t,warningType:"deprecated"};throw new Error("Either externalUserId or userId must be provided")},jn=["$.service.db","$.interface.http","$.interface.apphook","$.interface.timer","dir"],Wi=G.createContext(void 0),Jn=()=>{const e=G.useContext(Wi);if(!e)throw new Error("Must be used inside provider");return e},xa=({children:e,props:t})=>{const n=wt(),r=G.useId(),{component:i,configuredProps:o,propNames:s,externalUserId:a,userId:l,sdkResponse:u,enableDebugging:c}=t,{resolvedId:d,warningType:f}=G.useMemo(()=>Th(a,l),[a,l]);G.useEffect(()=>{process.env.NODE_ENV!=="production"&&(f==="both"?console.warn("[connect-react] Both externalUserId and userId provided. Using externalUserId. Please remove userId to avoid this warning."):f==="deprecated"&&console.warn("[connect-react] userId is deprecated. Please use externalUserId instead."))},[f]);const p=i.key,[b,g]=G.useState(0),[I,v]=G.useState({}),[k,A]=G.useState(!1),[E,S]=G.useState({}),[C,L]=G.useState([]),[P,N]=G.useState({});G.useEffect(()=>{N({})},[i.key]);const D=X=>P[X.name];let T=o||{};const[R,Q]=G.useState(T),ae=t.onUpdateConfiguredProps||Q;t.onUpdateConfiguredProps||(T=R);const[H,q]=G.useState(),[ie,fe]=G.useState(),ve={externalUserId:d,componentId:p,configuredProps:T,dynamicPropsId:H==null?void 0:H.id},y={...ve},{isFetching:Ae}=qt({queryKey:["dynamicProps",y],queryFn:async()=>{var Be;const X=await n.reloadComponentProps(ve),{dynamicProps:J,observations:$,errors:ge}=X;return $&&$.filter(Ze=>Ze.k==="error").length>0?Ct($):Ct(ge),J&&((Be=t.onUpdateDynamicProps)==null||Be.call(t,J),q(J)),fe(void 0),[]},enabled:ie!=null}),[ue,m]=G.useState([]);G.useEffect(()=>{kt()},[T]);const le=G.useMemo(()=>{let X=(H==null?void 0:H.configurableProps)||t.component.configurable_props||[];if(s!=null&&s.length){const J=[];for(const $ of X)s.findIndex(ge=>$.name===ge)>=0&&J.push($);X=J}return ie!=null&&(X=Array.isArray(X)?X.slice(0,ie+1):X),X},[H==null?void 0:H.configurableProps,t.component.configurable_props,s,ie]),ee=(X,J)=>{const $=[];if(X.optional||X.hidden||X.disabled||jn.includes(X.type))return[];if(X.type==="app"){const ge=I[X.name];if(ge){const Be=ge.extra.app;$.push(...Bh({prop:X,value:J,app:Be})??[])}else $.push("field not registered")}else X.type==="boolean"?$.push(...kh({prop:X,value:J})??[]):X.type==="integer"?$.push(...Fh({prop:X,value:J})??[]):X.type==="string"?$.push(...Ph({prop:X,value:J})??[]):X.type==="string[]"&&$.push(...Eh({prop:X,value:J})??[]);return $},de=X=>{let J;for(let $=0;$<le.length;$++){const ge=le[$];if(ge.hidden||ge.optional&&!D(ge))continue;if(X[ge.name]===void 0&&J==null&&(ge.type==="app"||ge.remoteOptions)){J=$;break}}g(J)},Ge=X=>{ae(X),de(X),be(X)},be=X=>{const J={};for(let $=0;$<le.length;$++){const ge=le[$],Be=X[ge.name],Ze=ee(ge,Be);Ze.length&&(J[ge.name]=Ze)}S(J)};G.useEffect(()=>{de(R)},[R]),G.useEffect(()=>{be(T)},[T,ie,b]),G.useEffect(()=>{Ct(u)},[u]),G.useEffect(()=>{const X={};for(const J of le){if(J.hidden||jn.includes(J.type)||J.optional&&!D(J))continue;const $=T[J.name];$===void 0?"default"in J&&J.default!=null&&(X[J.name]=J.default):J.type==="integer"&&typeof $!="number"?delete X[J.name]:X[J.name]=$}ea(X,T)||Ge(X)},[le]);const[Re,$e]=G.useState(d);G.useEffect(()=>{Re!==d&&(Ge({}),$e(d))},[d]);const We=(X,J)=>{const $=le[X],ge={...T};J===void 0?delete ge[$.name]:ge[$.name]=J,ae(ge),$.reloadProps&&fe(X),($.type==="app"||$.remoteOptions)&&de(ge);const Be=ee($,J),Ze={...E};Be.length?Ze[$.name]=Be:delete Ze[$.name],S(Ze)},It=(X,J)=>{const $={...P};J?$[X.name]=!0:delete $[X.name];const ge=le.findIndex(Be=>Be.name===X.name);J?(o==null?void 0:o[X.name])!==void 0?We(ge,o[X.name]):"default"in X&&X.default!=null&&We(ge,X.default):We(ge,void 0),N($)},kt=()=>{const X=[];for(const J of le){if(!J||J.optional||J.hidden||jn.includes(J.type))continue;const $=T[J.name];ee(J,$).length&&X.push(J.name)}X&&ue&&ea(X,ue)||m(X)},Ft=X=>{v(J=>(J[X.prop.name]=X,J)),kt()},Ct=X=>{if(!X)return;let J=[...C];const $=(we,F)=>{try{const V=JSON.parse(we),W={name:V.name,message:V.message};W.name&&W.message&&F.push(W)}catch{}},ge=(we,F)=>{const V={name:we.name,message:we.message};V.name&&V.message&&F.push(V)},Be=(we,F)=>{var W,oe;const V={name:(W=we.err)==null?void 0:W.name,message:(oe=we.err)==null?void 0:oe.message};V.name&&V.message&&F.push(V)},Ze=(we,F)=>{const V=we.os||we.observations;if(Array.isArray(V)&&V.length>0)for(let W=0;W<V.length;W++)V[W].k==="error"&&Be(V[W],F)},nr=(we,F)=>{F.push({name:we.error,message:JSON.stringify(we.details)})},rr=(we,F)=>{var V;try{const W=(V=JSON.parse(we.message))==null?void 0:V.data;W&&"observations"in W?Ze(W,F):W&&"error"in W&&"details"in W&&nr(W,F)}catch{}};if(Array.isArray(X)&&X.length>0)for(let we=0;we<X.length;we++){const F=X[we];typeof F=="string"?$(F,J):typeof F=="object"&&"name"in F&&"message"in F?ge(F,J):typeof F=="object"&&F.k==="error"&&Be(F,J)}else typeof X=="object"&&"os"in X||"observations"in X?Ze(X,J):typeof X=="object"&&"message"in X?rr(X,J):J=[];L(J)},On={id:r,isValid:!Object.keys(E).length,props:t,externalUserId:d,userId:d,component:i,configurableProps:le,configuredProps:T,dynamicProps:H,dynamicPropsQueryIsFetching:Ae,errors:E,fields:I,optionalPropIsEnabled:D,optionalPropSetEnabled:It,propsNeedConfiguring:ue,queryDisabledIdx:b,registerField:Ft,setConfiguredProp:We,setSubmitting:A,submitting:k,sdkErrors:C,enableDebugging:c};return B.jsx(Wi.Provider,{value:On,children:e})};function Qt(e){"@babel/helpers - typeof";return Qt=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},Qt(e)}function Oh(e,t){if(Qt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Aa(e){var t=Oh(e,"string");return Qt(t)=="symbol"?t:t+""}function Yn(e,t,n){return(t=Aa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wa(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 _(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wa(Object(n),!0).forEach(function(r){Yn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wa(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dh(e){if(Array.isArray(e))return e}function Vh(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function Zi(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 Sa(e,t){if(e){if(typeof e=="string")return Zi(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)?Zi(e,t):void 0}}function Nh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16
16
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function St(e,t){return Dh(e)||Vh(e,t)||Sa(e,t)||Nh()}function Lh(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 ht(e,t){if(e==null)return{};var n,r,i=Lh(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 Rh=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Ea(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,a=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,b=ht(e,Rh),g=G.useState(a!==void 0?a:n),I=St(g,2),v=I[0],k=I[1],A=G.useState(l!==void 0?l:i),E=St(A,2),S=E[0],C=E[1],L=G.useState(p!==void 0?p:s),P=St(L,2),N=P[0],D=P[1],T=G.useCallback(function(fe,ve){typeof u=="function"&&u(fe,ve),D(fe)},[u]),R=G.useCallback(function(fe,ve){var y;typeof c=="function"&&(y=c(fe,ve)),k(y!==void 0?y:fe)},[c]),Q=G.useCallback(function(){typeof f=="function"&&f(),C(!0)},[f]),ae=G.useCallback(function(){typeof d=="function"&&d(),C(!1)},[d]),H=a!==void 0?a:v,q=l!==void 0?l:S,ie=p!==void 0?p:N;return _(_({},b),{},{inputValue:H,menuIsOpen:q,onChange:T,onInputChange:R,onMenuClose:ae,onMenuOpen:Q,value:ie})}function U(){return U=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},U.apply(null,arguments)}function Mh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ka(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,Aa(r.key),r)}}function Xh(e,t,n){return t&&ka(e.prototype,t),n&&ka(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ji(e,t){return ji=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ji(e,t)}function Hh(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&&ji(e,t)}function Er(e){return Er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Er(e)}function Fa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fa=function(){return!!e})()}function zh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wh(e,t){if(t&&(Qt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zh(e)}function Zh(e){var t=Fa();return function(){var n,r=Er(e);if(t){var i=Er(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Wh(this,n)}}function jh(e){if(Array.isArray(e))return Zi(e)}function Jh(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yh(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
17
17
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yn(e){return jh(e)||Jh(e)||Sa(e)||Yh()}function _h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Uh=Math.min,qh=Math.max,kr=Math.round,Fr=Math.floor,Pr=e=>({x:e,y:e});function Qh(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 Gr(){return typeof window<"u"}function Pa(e){return Ba(e)?(e.nodeName||"").toLowerCase():"#document"}function Et(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ga(e){var t;return(t=(Ba(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ba(e){return Gr()?e instanceof Node||e instanceof Et(e).Node:!1}function $h(e){return Gr()?e instanceof Element||e instanceof Et(e).Element:!1}function Ji(e){return Gr()?e instanceof HTMLElement||e instanceof Et(e).HTMLElement:!1}function Ta(e){return!Gr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Et(e).ShadowRoot}function Oa(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Yi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Kh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function eg(e){return["html","body","#document"].includes(Pa(e))}function Yi(e){return Et(e).getComputedStyle(e)}function tg(e){if(Pa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ta(e)&&e.host||Ga(e);return Ta(t)?t.host:t}function Da(e){const t=tg(e);return eg(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ji(t)&&Oa(t)?t:Da(t)}function Br(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Da(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Et(i);if(o){const a=_i(s);return t.concat(s,s.visualViewport||[],Oa(i)?i:[],a&&n?Br(a):[])}return t.concat(i,Br(i,[],n))}function _i(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ng(e){const t=Yi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ji(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=kr(n)!==o||kr(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Ui(e){return $h(e)?e:e.contextElement}function Va(e){const t=Ui(e);if(!Ji(t))return Pr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=ng(t);let s=(o?kr(n.width):n.width)/r,a=(o?kr(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const rg=Pr(0);function ig(e){const t=Et(e);return!Kh()||!t.visualViewport?rg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function og(e,t,n){return!1}function Na(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=Ui(e);let s=Pr(1);t&&(s=Va(e));const a=og()?ig(o):Pr(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,c=i.width/s.x,d=i.height/s.y;if(o){const f=Et(o),p=r;let b=f,g=_i(b);for(;g&&r&&p!==b;){const I=Va(g),v=g.getBoundingClientRect(),k=Yi(g),A=v.left+(g.clientLeft+parseFloat(k.paddingLeft))*I.x,E=v.top+(g.clientTop+parseFloat(k.paddingTop))*I.y;l*=I.x,u*=I.y,c*=I.x,d*=I.y,l+=A,u+=E,b=Et(g),g=_i(b)}}return Qh({width:c,height:d,x:l,y:u})}function sg(e,t){let n=null,r;const i=Ga(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;const p=Fr(c),b=Fr(i.clientWidth-(u+d)),g=Fr(i.clientHeight-(c+f)),I=Fr(u),k={rootMargin:-p+"px "+-b+"px "+-g+"px "+-I+"px",threshold:qh(0,Uh(1,l))||1};let A=!0;function E(S){const C=S[0].intersectionRatio;if(C!==l){if(!A)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}A=!1}try{n=new IntersectionObserver(E,{...k,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,k)}n.observe(e)}return s(!0),o}function ag(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Ui(e),c=i||o?[...u?Br(u):[],...Br(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const d=u&&a?sg(u,n):null;let f=-1,p=null;s&&(p=new ResizeObserver(v=>{let[k]=v;k&&k.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var A;(A=p)==null||A.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let b,g=l?Na(e):null;l&&I();function I(){const v=Na(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,b=requestAnimationFrame(I)}return n(),()=>{var v;c.forEach(k=>{i&&k.removeEventListener("scroll",n),o&&k.removeEventListener("resize",n)}),d==null||d(),(v=p)==null||v.disconnect(),p=null,l&&cancelAnimationFrame(b)}}var qi=G.useLayoutEffect,lg=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Tr=function(){};function ug(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function cg(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(ug(e,s)));return o.filter(function(a){return a}).map(function(a){return String(a).trim()}).join(" ")}var Or=function(t){return vg(t)?t.filter(Boolean):Qt(t)==="object"&&t!==null?[t]:[]},La=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=ht(t,lg);return _({},n)},Ee=function(t,n,r){var i=t.cx,o=t.getStyles,s=t.getClassNames,a=t.className;return{css:o(n,t),className:i(r??{},s(n,t),a)}};function Dr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function dg(e){return Dr(e)?window.innerHeight:e.clientHeight}function Ra(e){return Dr(e)?window.pageYOffset:e.scrollTop}function Vr(e,t){if(Dr(e)){window.scrollTo(0,t);return}e.scrollTop=t}function pg(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 fg(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Nr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Tr,i=Ra(e),o=t-i,s=10,a=0;function l(){a+=s;var u=fg(a,i,o,n);Vr(e,u),a<n?window.requestAnimationFrame(l):r(e)}l()}function Ma(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Vr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Vr(e,Math.max(t.offsetTop-i,0))}function hg(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 Xa(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function gg(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Ha=!1,mg={get passive(){return Ha=!0}},Lr=typeof window<"u"?window:{};Lr.addEventListener&&Lr.removeEventListener&&(Lr.addEventListener("p",Tr,mg),Lr.removeEventListener("p",Tr,!1));var bg=Ha;function yg(e){return e!=null}function vg(e){return Array.isArray(e)}function _n(e,t,n){return e?t:n}function Qy(e){return e}function $y(e){return e}var Ig=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 a=St(s,1),l=a[0];return!r.includes(l)});return o.reduce(function(s,a){var l=St(a,2),u=l[0],c=l[1];return s[u]=c,s},{})},Cg=["children","innerProps"],xg=["children","innerProps"];function Ag(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,l=pg(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),p=f.bottom,b=f.height,g=f.top,I=n.offsetParent.getBoundingClientRect(),v=I.top,k=s?window.innerHeight:dg(l),A=Ra(l),E=parseInt(getComputedStyle(n).marginBottom,10),S=parseInt(getComputedStyle(n).marginTop,10),C=v-S,L=k-g,P=C+A,N=d-A-g,D=p-k+A+E,T=A+g-S,R=160;switch(i){case"auto":case"bottom":if(L>=b)return{placement:"bottom",maxHeight:t};if(N>=b&&!s)return o&&Nr(l,D,R),{placement:"bottom",maxHeight:t};if(!s&&N>=r||s&&L>=r){o&&Nr(l,D,R);var Q=s?L-E:N-E;return{placement:"bottom",maxHeight:Q}}if(i==="auto"||s){var ae=t,H=s?C:P;return H>=r&&(ae=Math.min(H-E-a,t)),{placement:"top",maxHeight:ae}}if(i==="bottom")return o&&Vr(l,D),{placement:"bottom",maxHeight:t};break;case"top":if(C>=b)return{placement:"top",maxHeight:t};if(P>=b&&!s)return o&&Nr(l,T,R),{placement:"top",maxHeight:t};if(!s&&P>=r||s&&C>=r){var q=t;return(!s&&P>=r||s&&C>=r)&&(q=s?C-S:P-S),o&&Nr(l,T,R),{placement:"top",maxHeight:q}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function wg(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var za=function(t){return t==="auto"?"bottom":t},Sg=function(t,n){var r,i=t.placement,o=t.theme,s=o.borderRadius,a=o.spacing,l=o.colors;return _((r={label:"menu"},Yn(r,wg(i),"100%"),Yn(r,"position","absolute"),Yn(r,"width","100%"),Yn(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},Wa=G.createContext(null),Eg=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,a=t.menuShouldScrollIntoView,l=t.theme,u=G.useContext(Wa)||{},c=u.setPortalPlacement,d=G.useRef(null),f=G.useState(i),p=St(f,2),b=p[0],g=p[1],I=G.useState(null),v=St(I,2),k=v[0],A=v[1],E=l.spacing.controlHeight;return qi(function(){var S=d.current;if(S){var C=s==="fixed",L=a&&!C,P=Ag({maxHeight:i,menuEl:S,minHeight:r,placement:o,shouldScroll:L,isFixedPosition:C,controlHeight:E});g(P.maxHeight),A(P.placement),c==null||c(P.placement)}},[i,o,s,a,r,c,E]),n({ref:d,placerProps:_(_({},t),{},{placement:k||za(o),maxHeight:b})})},kg=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return Y.jsx("div",U({},Ee(t,"menu",{menu:!0}),{ref:r},i),n)},Fg=kg,Pg=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return _({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},Gg=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return Y.jsx("div",U({},Ee(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},Za=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return _({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},Bg=Za,Tg=Za,Og=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=ht(t,Cg);return Y.jsx("div",U({},Ee(_(_({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},Dg=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=ht(t,xg);return Y.jsx("div",U({},Ee(_(_({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},Vg=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}},Ng=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,s=t.menuPlacement,a=t.menuPosition,l=G.useRef(null),u=G.useRef(null),c=G.useState(za(s)),d=St(c,2),f=d[0],p=d[1],b=G.useMemo(function(){return{setPortalPlacement:p}},[]),g=G.useState(null),I=St(g,2),v=I[0],k=I[1],A=G.useCallback(function(){if(i){var L=hg(i),P=a==="fixed"?0:window.pageYOffset,N=L[f]+P;(N!==(v==null?void 0:v.offset)||L.left!==(v==null?void 0:v.rect.left)||L.width!==(v==null?void 0:v.rect.width))&&k({offset:N,rect:L})}},[i,a,f,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);qi(function(){A()},[A]);var E=G.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=ag(i,l.current,A,{elementResize:"ResizeObserver"in window}))},[i,A]);qi(function(){E()},[E]);var S=G.useCallback(function(L){l.current=L,E()},[E]);if(!n&&a!=="fixed"||!v)return null;var C=Y.jsx("div",U({ref:S},Ee(_(_({},t),{},{offset:v.offset,position:a,rect:v.rect}),"menuPortal",{"menu-portal":!0}),o),r);return Y.jsx(Wa.Provider,{value:b},n?$r.createPortal(C,n):C)},Lg=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},Rg=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return Y.jsx("div",U({},Ee(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},Mg=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,s=t.selectProps.controlShouldRenderValue;return _({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")})},Xg=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return Y.jsx("div",U({},Ee(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},Hg=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},zg=function(t){var n=t.children,r=t.innerProps;return Y.jsx("div",U({},Ee(t,"indicatorsContainer",{indicators:!0}),r),n)},ja,Wg=["size"],Zg=["innerProps","isRtl","size"];function jg(){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 Jg=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi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V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:jg},Ja=function(t){var n=t.size,r=ht(t,Wg);return Y.jsx("svg",U({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Jg},r))},Qi=function(t){return Y.jsx(Ja,U({size:20},t),Y.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"}))},Ya=function(t){return Y.jsx(Ja,U({size:20},t),Y.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"}))},_a=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return _({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:o*2,":hover":{color:r?s.neutral80:s.neutral40}})},Yg=_a,_g=function(t){var n=t.children,r=t.innerProps;return Y.jsx("div",U({},Ee(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||Y.jsx(Ya,null))},Ug=_a,qg=function(t){var n=t.children,r=t.innerProps;return Y.jsx("div",U({},Ee(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||Y.jsx(Qi,null))},Qg=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return _({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},$g=function(t){var n=t.innerProps;return Y.jsx("span",U({},n,Ee(t,"indicatorSeparator",{"indicator-separator":!0})))},Kg=Y.keyframes(ja||(ja=_h([`
18
18
  0%, 80%, 100% { opacity: 0; }
19
19
  40% { opacity: 1; }
20
20
  `]))),em=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,s=o.colors,a=o.spacing.baseUnit;return _({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:a*2})},$i=function(t){var n=t.delay,r=t.offset;return Y.jsx("span",{css:Y.css({animation:"".concat(Kg," 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuIC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A8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},tm=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,s=ht(t,Zg);return Y.jsx("div",U({},Ee(_(_({},s),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),Y.jsx($i,{delay:0,offset:r}),Y.jsx($i,{delay:160,offset:!0}),Y.jsx($i,{delay:320,offset:!r}))},nm=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,s=o.colors,a=o.borderRadius,l=o.spacing;return _({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.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:a,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:i?s.primary:s.neutral30}})},rm=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,s=t.innerProps,a=t.menuIsOpen;return Y.jsx("div",U({ref:o},Ee(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":a}),s,{"aria-disabled":r||void 0}),n)},im=rm,om=["data"],sm=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},am=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,s=t.Heading,a=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,d=t.selectProps;return Y.jsx("div",U({},Ee(t,"group",{group:!0}),l),Y.jsx(s,U({},a,{selectProps:d,theme:c,getStyles:i,getClassNames:o,cx:r}),u),Y.jsx("div",null,n))},lm=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return _({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"})},um=function(t){var n=La(t);n.data;var r=ht(n,om);return Y.jsx("div",U({},Ee(t,"groupHeading",{"group-heading":!0}),r))},cm=am,dm=["innerRef","isDisabled","isHidden","inputClassName"],pm=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,s=o.spacing,a=o.colors;return _(_({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},fm),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:a.neutral80})},Ua={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},fm={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":_({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ua)},hm=function(t){return _({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Ua)},gm=function(t){var n=t.cx,r=t.value,i=La(t),o=i.innerRef,s=i.isDisabled,a=i.isHidden,l=i.inputClassName,u=ht(i,dm);return Y.jsx("div",U({},Ee(t,"input",{"input-container":!0}),{"data-value":r||""}),Y.jsx("input",U({className:n({input:!0},l),ref:o,style:hm(a),disabled:s},u)))},mm=gm,bm=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,s=r.colors;return _({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},ym=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,s=t.cropWithEllipsis;return _({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})},vm=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,s=r.colors,a=t.isFocused;return _({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:a?s.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},qa=function(t){var n=t.children,r=t.innerProps;return Y.jsx("div",r,n)},Im=qa,Cm=qa;function xm(e){var t=e.children,n=e.innerProps;return Y.jsx("div",U({role:"button"},n),t||Y.jsx(Qi,{size:14}))}var Am=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,s=t.isDisabled,a=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,d=r.Remove;return Y.jsx(u,{data:i,innerProps:_(_({},Ee(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:l},Y.jsx(c,{data:i,innerProps:_({},Ee(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),Y.jsx(d,{data:i,innerProps:_(_({},Ee(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:l}))},wm=Am,Sm=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.theme,a=s.spacing,l=s.colors;return _({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?l.primary:l.primary50}})},Em=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.innerRef,a=t.innerProps;return Y.jsx("div",U({},Ee(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:s,"aria-disabled":r},a),n)},km=Em,Fm=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return _({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Pm=function(t){var n=t.children,r=t.innerProps;return Y.jsx("div",U({},Ee(t,"placeholder",{placeholder:!0}),r),n)},Gm=Pm,Bm=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,s=i.colors;return _({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})},Tm=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return Y.jsx("div",U({},Ee(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},Om=Tm,Un={ClearIndicator:qg,Control:im,DropdownIndicator:_g,DownChevron:Ya,CrossIcon:Qi,Group:cm,GroupHeading:um,IndicatorsContainer:zg,IndicatorSeparator:$g,Input:mm,LoadingIndicator:tm,Menu:Fg,MenuList:Gg,MenuPortal:Ng,LoadingMessage:Dg,NoOptionsMessage:Og,MultiValue:wm,MultiValueContainer:Im,MultiValueLabel:Cm,MultiValueRemove:xm,Option:km,Placeholder:Gm,SelectContainer:Rg,SingleValue:Om,ValueContainer:Xg},Dm=function(t){return _(_({},Un),t.components)},Qa=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Vm(e,t){return!!(e===t||Qa(e)&&Qa(t))}function Nm(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Vm(e[n],t[n]))return!1;return!0}function Lm(e,t){t===void 0&&(t=Nm);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 Rm(){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 Mm=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:Rm},Xm=function(t){return Y.jsx("span",U({css:Mm},t))},$a=Xm,Hm={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,a=t.selectValue,l=t.isDisabled,u=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"&&a)return"value ".concat(s," focused, ").concat(d(a,r),".");if(n==="menu"&&c){var f=l?" disabled":"",p="".concat(u?" 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:"",".")}},zm=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,s=t.isFocused,a=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,b=l.isMulti,g=l.isOptionDisabled,I=l.isSearchable,v=l.menuIsOpen,k=l.options,A=l.screenReaderStatus,E=l.tabSelectsValue,S=l.isLoading,C=l["aria-label"],L=l["aria-live"],P=G.useMemo(function(){return _(_({},Hm),d||{})},[d]),N=G.useMemo(function(){var H="";if(n&&P.onChange){var q=n.option,ie=n.options,fe=n.removedValue,ve=n.removedValues,y=n.value,Ae=function(be){return Array.isArray(be)?null:be},ue=fe||q||Ae(y),m=ue?f(ue):"",le=ie||ve||void 0,ee=le?le.map(f):[],de=_({isDisabled:ue&&g(ue,a),label:m,labels:ee},n);H=P.onChange(de)}return H},[n,P,g,a,f]),D=G.useMemo(function(){var H="",q=r||i,ie=!!(r&&a&&a.includes(r));if(q&&P.onFocus){var fe={focused:q,label:f(q),isDisabled:g(q,a),isSelected:ie,options:o,context:q===r?"menu":"value",selectValue:a,isAppleDevice:c};H=P.onFocus(fe)}return H},[r,i,f,g,P,o,a,c]),T=G.useMemo(function(){var H="";if(v&&k.length&&!S&&P.onFilter){var q=A({count:o.length});H=P.onFilter({inputValue:p,resultsMessage:q})}return H},[o,p,v,P,k,A,S]),R=(n==null?void 0:n.action)==="initial-input-focus",Q=G.useMemo(function(){var H="";if(P.guidance){var q=i?"value":v?"menu":"input";H=P.guidance({"aria-label":C,context:q,isDisabled:r&&g(r,a),isMulti:b,isSearchable:I,tabSelectsValue:E,isInitialFocus:R})}return H},[C,r,i,b,g,I,v,P,a,E,R]),ae=Y.jsx(G.Fragment,null,Y.jsx("span",{id:"aria-selection"},N),Y.jsx("span",{id:"aria-focused"},D),Y.jsx("span",{id:"aria-results"},T),Y.jsx("span",{id:"aria-guidance"},Q));return Y.jsx(G.Fragment,null,Y.jsx($a,{id:u},R&&ae),Y.jsx($a,{"aria-live":L,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!R&&ae))},Wm=zm,Ki=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Zm=new RegExp("["+Ki.map(function(e){return e.letters}).join("")+"]","g"),Ka={},eo=0;eo<Ki.length;eo++)for(var to=Ki[eo],no=0;no<to.letters.length;no++)Ka[to.letters[no]]=to.base;var el=function(t){return t.replace(Zm,function(n){return Ka[n]})},jm=Lm(el),tl=function(t){return t.replace(/^\s+|\s+$/g,"")},Jm=function(t){return"".concat(t.label," ").concat(t.value)},Ym=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=_({ignoreCase:!0,ignoreAccents:!0,stringify:Jm,trim:!0,matchFrom:"any"},t),o=i.ignoreCase,s=i.ignoreAccents,a=i.stringify,l=i.trim,u=i.matchFrom,c=l?tl(r):r,d=l?tl(a(n)):a(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),s&&(c=jm(c),d=el(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},_m=["innerRef"];function Um(e){var t=e.innerRef,n=ht(e,_m),r=Ig(n,"onExited","in","enter","exit","appear");return Y.jsx("input",U({ref:t},r,{css:Y.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 qm=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Qm(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,s=G.useRef(!1),a=G.useRef(!1),l=G.useRef(0),u=G.useRef(null),c=G.useCallback(function(I,v){if(u.current!==null){var k=u.current,A=k.scrollTop,E=k.scrollHeight,S=k.clientHeight,C=u.current,L=v>0,P=E-S-A,N=!1;P>v&&s.current&&(r&&r(I),s.current=!1),L&&a.current&&(o&&o(I),a.current=!1),L&&v>P?(n&&!s.current&&n(I),C.scrollTop=E,N=!0,s.current=!0):!L&&-v>A&&(i&&!a.current&&i(I),C.scrollTop=0,N=!0,a.current=!0),N&&qm(I)}},[n,r,i,o]),d=G.useCallback(function(I){c(I,I.deltaY)},[c]),f=G.useCallback(function(I){l.current=I.changedTouches[0].clientY},[]),p=G.useCallback(function(I){var v=l.current-I.changedTouches[0].clientY;c(I,v)},[c]),b=G.useCallback(function(I){if(I){var v=bg?{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=u.current;return b(I),function(){g(I)}}},[t,b,g]),function(I){u.current=I}}var nl=["boxSizing","height","overflow","paddingRight","position"],rl={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function il(e){e.cancelable&&e.preventDefault()}function ol(e){e.stopPropagation()}function sl(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function al(){return"ontouchstart"in window||navigator.maxTouchPoints}var ll=!!(typeof window<"u"&&window.document&&window.document.createElement),qn=0,vn={capture:!1,passive:!1};function $m(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(l){if(ll){var u=document.body,c=u&&u.style;if(r&&nl.forEach(function(b){var g=c&&c[b];i.current[b]=g}),r&&qn<1){var d=parseInt(i.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys(rl).forEach(function(b){var g=rl[b];c&&(c[b]=g)}),c&&(c.paddingRight="".concat(p,"px"))}u&&al()&&(u.addEventListener("touchmove",il,vn),l&&(l.addEventListener("touchstart",sl,vn),l.addEventListener("touchmove",ol,vn))),qn+=1}},[r]),a=G.useCallback(function(l){if(ll){var u=document.body,c=u&&u.style;qn=Math.max(qn-1,0),r&&qn<1&&nl.forEach(function(d){var f=i.current[d];c&&(c[d]=f)}),u&&al()&&(u.removeEventListener("touchmove",il,vn),l&&(l.removeEventListener("touchstart",sl,vn),l.removeEventListener("touchmove",ol,vn)))}},[r]);return G.useEffect(function(){if(t){var l=o.current;return s(l),function(){a(l)}}},[t,s,a]),function(l){o.current=l}}function Km(){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 eb=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},tb=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:Km};function nb(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,s=e.onBottomLeave,a=e.onTopArrive,l=e.onTopLeave,u=Qm({isEnabled:i,onBottomArrive:o,onBottomLeave:s,onTopArrive:a,onTopLeave:l}),c=$m({isEnabled:n}),d=function(p){u(p),c(p)};return Y.jsx(G.Fragment,null,n&&Y.jsx("div",{onClick:eb,css:tb}),t(d))}function rb(){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 ib=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:rb},ob=function(t){var n=t.name,r=t.onFocus;return Y.jsx("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:ib,value:"",onChange:function(){}})},sb=ob;function ro(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 ab(){return ro(/^iPhone/i)}function ul(){return ro(/^Mac/i)}function lb(){return ro(/^iPad/i)||ul()&&navigator.maxTouchPoints>1}function ub(){return ab()||lb()}function cb(){return ul()||ub()}var db=function(t){return t.label},cl=function(t){return t.label},dl=function(t){return t.value},pb=function(t){return!!t.isDisabled},fb={clearIndicator:Ug,container:Lg,control:nm,dropdownIndicator:Yg,group:sm,groupHeading:lm,indicatorsContainer:Hg,indicatorSeparator:Qg,input:pm,loadingIndicator:em,loadingMessage:Tg,menu:Sg,menuList:Pg,menuPortal:Vg,multiValue:bm,multiValueLabel:ym,multiValueRemove:vm,noOptionsMessage:Bg,option:Sm,placeholder:Fm,singleValue:Bm,valueContainer:Mg};function hb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=_({},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 gb={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%)"},mb=4,pl=4,bb=38,yb=pl*2,vb={baseUnit:pl,controlHeight:bb,menuGutter:yb},Qn={borderRadius:mb,colors:gb,spacing:vb},Ib={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Xa(),captureMenuScroll:!Xa(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Ym(),formatGroupLabel:db,getOptionLabel:cl,getOptionValue:dl,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:pb,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!gg(),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 fl(e,t,n,r){var i=yl(e,t,n),o=vl(e,t,n),s=bl(e,t),a=Mr(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:s,value:a,index:r}}function Rr(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(s,a){return fl(e,s,t,a)}).filter(function(s){return ml(e,s)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=fl(e,n,t,r);return ml(e,o)?o:void 0}).filter(yg)}function hl(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,yn(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function gl(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,yn(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 Cb(e,t){return hl(Rr(e,t))}function ml(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,s=t.label,a=t.value;return(!Cl(e)||!o)&&Il(e,{label:s,value:a,data:i},r)}function xb(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 Ab(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var io=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},bl=function(t,n){return t.getOptionLabel(n)},Mr=function(t,n){return t.getOptionValue(n)};function yl(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function vl(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 Il(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Cl=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},wb=1,oo=function(e){Hh(n,e);var t=Zh(n);function n(r){var i;if(Mh(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=cb(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,u){var c=i.props,d=c.onChange,f=c.name;u.name=f,i.ariaOnChange(l,u),d(l,u)},i.setValue=function(l,u,c){var d=i.props,f=d.closeMenuOnSelect,p=d.isMulti,b=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:b}),f&&(i.setState({inputIsHiddenAfterUpdate:!p}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:u,option:c})},i.selectOption=function(l){var u=i.props,c=u.blurInputOnSelect,d=u.isMulti,f=u.name,p=i.state.selectValue,b=d&&i.isOptionSelected(l,p),g=i.isOptionDisabled(l,p);if(b){var I=i.getOptionValue(l);i.setValue(p.filter(function(v){return i.getOptionValue(v)!==I}),"deselect-option",l)}else if(!g)d?i.setValue([].concat(yn(p),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:f});return}c&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,c=i.state.selectValue,d=i.getOptionValue(l),f=c.filter(function(b){return i.getOptionValue(b)!==d}),p=_n(u,f,f[0]||null);i.onChange(p,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(_n(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,u=i.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),f=_n(l,d,d[0]||null);c&&i.onChange(f,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return io(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return gl(Rr(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return cg.apply(void 0,[i.props.classNamePrefix].concat(u))},i.getOptionLabel=function(l){return bl(i.props,l)},i.getOptionValue=function(l){return Mr(i.props,l)},i.getStyles=function(l,u){var c=i.props.unstyled,d=fb[l](u,c);d.boxSizing="border-box";var f=i.props.styles[l];return f?f(d,u):d},i.getClassNames=function(l,u){var c,d;return(c=(d=i.props.classNames)[l])===null||c===void 0?void 0:c.call(d,u)},i.getElementId=function(l){return"".concat(i.state.instancePrefix,"-").concat(l)},i.getComponents=function(){return Dm(i.props)},i.buildCategorizedOptions=function(){return Rr(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return hl(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,u){i.setState({ariaSelection:_({value:l},u)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():u&&i.openMenu("first"):(u&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var u=i.props,c=u.isMulti,d=u.menuIsOpen;i.focusInput(),d?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Dr(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var u=l.touches,c=u&&u.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var u=l.touches,c=u&&u.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(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var u=i.props.inputValue,c=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var u=i.getFocusableOptions(),c=u.indexOf(l);i.setState({focusedOption:l,focusedOptionId:c>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return Cl(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var u=i.props,c=u.isMulti,d=u.backspaceRemovesValue,f=u.escapeClearsValue,p=u.inputValue,b=u.isClearable,g=u.isDisabled,I=u.menuIsOpen,v=u.onKeyDown,k=u.tabSelectsValue,A=u.openMenuOnFocus,E=i.state,S=E.focusedOption,C=E.focusedValue,L=E.selectValue;if(!g&&!(typeof v=="function"&&(v(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.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(C)i.removeValue(C);else{if(!d)return;c?i.popValue():b&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!I||!k||!S||A&&i.isOptionSelected(S,L))return;i.selectOption(S);break;case"Enter":if(l.keyCode===229)break;if(I){if(!S||i.isComposing)return;i.selectOption(S);break}return;case"Escape":I?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:p}),i.onMenuClose()):b&&f&&i.clearValue();break;case" ":if(p)return;if(!I){i.openMenu("first");break}if(!S)return;i.selectOption(S);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}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++wb),i.state.selectValue=Or(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),s=i.buildFocusableOptions(),a=s.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=s[a],i.state.focusedOptionId=io(o,s[a])}return i}return Xh(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&&Ma(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,s=o.isDisabled,a=o.menuIsOpen,l=this.state.isFocused;(l&&!s&&i.isDisabled||l&&a&&!i.menuIsOpen)&&this.focusInput(),l&&s&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!s&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Ma(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,a=s.selectValue,l=s.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(a[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,s=o.selectValue,a=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=s.indexOf(a);a||(l=-1);var u=s.length-1,c=-1;if(s.length){switch(i){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l<u&&(c=l+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,a=this.getFocusableOptions();if(a.length){var l=0,u=a.indexOf(s);s||(u=-1),i==="up"?l=u>0?u-1:a.length-1:i==="down"?l=(u+1)%a.length:i==="pageup"?(l=u-o,l<0&&(l=0)):i==="pagedown"?(l=u+o,l>a.length-1&&(l=a.length-1)):i==="last"&&(l=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Qn):_(_({},Qn),this.props.theme):Qn}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,s=this.getStyles,a=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,p=d.isRtl,b=d.options,g=this.hasValue();return{clearValue:i,cx:o,getStyles:s,getClassNames:a,getValue:l,hasValue:g,isMulti:f,isRtl:p,options:b,selectOption:u,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 yl(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return vl(this.props,i,o)}},{key:"filterOption",value:function(i,o){return Il(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:s,selectValue:a})}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,a=i.inputId,l=i.inputValue,u=i.tabIndex,c=i.form,d=i.menuIsOpen,f=i.required,p=this.getComponents(),b=p.Input,g=this.state,I=g.inputIsHidden,v=g.ariaSelection,k=this.commonProps,A=a||this.getElementId("input"),E=_(_(_({"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?ne.createElement(b,U({},k,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:A,innerRef:this.getInputRef,isDisabled:o,isHidden:I,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},E)):ne.createElement(Um,U({id:A,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Tr,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},E))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),s=o.MultiValue,a=o.MultiValueContainer,l=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,f=this.commonProps,p=this.props,b=p.controlShouldRenderValue,g=p.isDisabled,I=p.isMulti,v=p.inputValue,k=p.placeholder,A=this.state,E=A.selectValue,S=A.focusedValue,C=A.isFocused;if(!this.hasValue()||!b)return v?null:ne.createElement(d,U({},f,{key:"placeholder",isDisabled:g,isFocused:C,innerProps:{id:this.getElementId("placeholder")}}),k);if(I)return E.map(function(P,N){var D=P===S,T="".concat(i.getOptionLabel(P),"-").concat(i.getOptionValue(P));return ne.createElement(s,U({},f,{components:{Container:a,Label:l,Remove:u},isFocused:D,isDisabled:g,key:T,index:N,removeProps:{onClick:function(){return i.removeValue(P)},onTouchEnd:function(){return i.removeValue(P)},onMouseDown:function(Q){Q.preventDefault()}},data:P}),i.formatOptionLabel(P,"value"))});if(v)return null;var L=E[0];return ne.createElement(c,U({},f,{data:L,isDisabled:g}),this.formatOptionLabel(L,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return ne.createElement(o,U({},s,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!o||!u)return null;var d={"aria-hidden":"true"};return ne.createElement(o,U({},s,{innerProps:d,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,s=i.IndicatorSeparator;if(!o||!s)return null;var a=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return ne.createElement(s,U({},a,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var s=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return ne.createElement(o,U({},s,{innerProps:u,isDisabled:a,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),s=o.Group,a=o.GroupHeading,l=o.Menu,u=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,p=o.Option,b=this.commonProps,g=this.state.focusedOption,I=this.props,v=I.captureMenuScroll,k=I.inputValue,A=I.isLoading,E=I.loadingMessage,S=I.minMenuHeight,C=I.maxMenuHeight,L=I.menuIsOpen,P=I.menuPlacement,N=I.menuPosition,D=I.menuPortalTarget,T=I.menuShouldBlockScroll,R=I.menuShouldScrollIntoView,Q=I.noOptionsMessage,ae=I.onMenuScrollToTop,H=I.onMenuScrollToBottom;if(!L)return null;var q=function(m,le){var ee=m.type,de=m.data,Ge=m.isDisabled,be=m.isSelected,Re=m.label,$e=m.value,We=g===de,It=Ge?void 0:function(){return i.onOptionHover(de)},kt=Ge?void 0:function(){return i.selectOption(de)},Ft="".concat(i.getElementId("option"),"-").concat(le),Ct={id:Ft,onClick:kt,onMouseMove:It,onMouseOver:It,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:be};return ne.createElement(p,U({},b,{innerProps:Ct,data:de,isDisabled:Ge,isSelected:be,key:Ft,label:Re,type:ee,value:$e,isFocused:We,innerRef:We?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(m.data,"menu"))},ie;if(this.hasOptions())ie=this.getCategorizedOptions().map(function(ue){if(ue.type==="group"){var m=ue.data,le=ue.options,ee=ue.index,de="".concat(i.getElementId("group"),"-").concat(ee),Ge="".concat(de,"-heading");return ne.createElement(s,U({},b,{key:de,data:m,options:le,Heading:a,headingProps:{id:Ge,data:ue.data},label:i.formatGroupLabel(ue.data)}),ue.options.map(function(be){return q(be,"".concat(ee,"-").concat(be.index))}))}else if(ue.type==="option")return q(ue,"".concat(ue.index))});else if(A){var fe=E({inputValue:k});if(fe===null)return null;ie=ne.createElement(d,b,fe)}else{var ve=Q({inputValue:k});if(ve===null)return null;ie=ne.createElement(f,b,ve)}var y={minMenuHeight:S,maxMenuHeight:C,menuPlacement:P,menuPosition:N,menuShouldScrollIntoView:R},Ae=ne.createElement(Eg,U({},b,y),function(ue){var m=ue.ref,le=ue.placerProps,ee=le.placement,de=le.maxHeight;return ne.createElement(l,U({},b,y,{innerRef:m,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:A,placement:ee}),ne.createElement(nb,{captureEnabled:v,onTopArrive:ae,onBottomArrive:H,lockEnabled:T},function(Ge){return ne.createElement(u,U({},b,{innerRef:function(Re){i.getMenuListRef(Re),Ge(Re)},innerProps:{role:"listbox","aria-multiselectable":b.isMulti,id:i.getElementId("listbox")},isLoading:A,maxHeight:de,focusedOption:g}),ie)}))});return D||N==="fixed"?ne.createElement(c,U({},b,{appendTo:D,controlElement:this.controlRef,menuPlacement:P,menuPosition:N}),Ae):Ae}},{key:"renderFormField",value:function(){var i=this,o=this.props,s=o.delimiter,a=o.isDisabled,l=o.isMulti,u=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!a)return ne.createElement(sb,{name:u,onFocus:this.onValueInputFocus});if(!(!u||a))if(l)if(s){var f=d.map(function(g){return i.getOptionValue(g)}).join(s);return ne.createElement("input",{name:u,type:"hidden",value:f})}else{var p=d.length>0?d.map(function(g,I){return ne.createElement("input",{key:"i-".concat(I),name:u,type:"hidden",value:i.getOptionValue(g)})}):ne.createElement("input",{name:u,type:"hidden",value:""});return ne.createElement("div",null,p)}else{var b=d[0]?this.getOptionValue(d[0]):"";return ne.createElement("input",{name:u,type:"hidden",value:b})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,s=o.ariaSelection,a=o.focusedOption,l=o.focusedValue,u=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return ne.createElement(Wm,U({},i,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:a,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,s=i.IndicatorsContainer,a=i.SelectContainer,l=i.ValueContainer,u=this.props,c=u.className,d=u.id,f=u.isDisabled,p=u.menuIsOpen,b=this.state.isFocused,g=this.commonProps=this.getCommonProps();return ne.createElement(a,U({},g,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:b}),this.renderLiveRegion(),ne.createElement(o,U({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:b,menuIsOpen:p}),ne.createElement(l,U({},g,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),ne.createElement(s,U({},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,a=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,p=i.options,b=i.value,g=i.menuIsOpen,I=i.inputValue,v=i.isMulti,k=Or(b),A={};if(s&&(b!==s.value||p!==s.options||g!==s.menuIsOpen||I!==s.inputValue)){var E=g?Cb(i,k):[],S=g?gl(Rr(i,k),"".concat(f,"-option")):[],C=a?xb(o,k):null,L=Ab(o,E),P=io(S,L);A={selectValue:k,focusedOption:L,focusedOptionId:P,focusableOptionsWithIds:S,focusedValue:C,clearFocusValueOnUpdate:!1}}var N=l!=null&&i!==s?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},D=u,T=c&&d;return c&&!T&&(D={value:_n(v,k,k[0]||null),options:k,action:"initial-input-focus"},T=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(D=null),_(_(_({},A),N),{},{prevProps:i,ariaSelection:D,prevWasFocused:T})}}]),n}(G.Component);oo.defaultProps=Ib;var Sb=G.forwardRef(function(e,t){var n=Ea(e);return ne.createElement(oo,U({ref:t},n))}),Xr=Sb;const Eb=Qn,Hr={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}},xl={colors:{},spacing:{baseUnit:4,controlHeight:32,menuGutter:8},boxShadow:{button:"none",input:"none",card:"none",dropdown:"none"}};function Al(e){if(!e)return Qn;const t=typeof e=="function"?e(Hr):e,{colors:n,spacing:r,borderRadius:i}=zr(Eb,t);return{borderRadius:i,colors:n,spacing:r}}function zr(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}const kb=({...e})=>{const[t,n]=G.useState(!1),r={textDecoration:"underline",textUnderlineOffset:"3px",color:"inherit",transition:"opacity 0.2s ease",opacity:t?.7:1};return B.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"2px"},children:[B.jsx("a",{...e,target:"_blank",rel:"noopener noreferrer",style:r,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)}),B.jsx("span",{style:{fontSize:"0.7em",opacity:.7},children:"↗"})]})};function wl(e){const{field:t,markdown:n}=e,{prop:r}=t,{getClassNames:i,getStyles:o,theme:s}=Ne(),a=G.useMemo(()=>({color:s.colors.neutral50,fontWeight:400,fontSize:"0.75rem",gridArea:"description",textWrap:"balance",lineHeight:"1.5"}),[s.colors.neutral50]),l=G.useMemo(()=>({a:kb}),[]),u=e;return r.type==="app"?B.jsx("p",{className:i("description",u),style:o("description",a,u),children:"Credentials are encrypted."}):r.description?B.jsxs("div",{className:i("description",u),style:o("description",a,u),children:[" ",B.jsx(Ks,{components:l,children:n})]}):null}function Sl(e){const{field:t}=e,{errors:n={},prop:r={},enableDebugging:i}=t;if(!i||!n[r.name])return null;const o=n[r.name].map(l=>({type:"alert",alertType:"error",content:l})),s={display:"grid",gridTemplateColumns:"max-content"},a=()=>B.jsx(B.Fragment,{children:o.map((l,u)=>B.jsx(Cr,{prop:l},u))});return B.jsx("div",{className:"pd-errors",style:s,children:B.jsx(a,{})})}function El(e){const{text:t,field:n}=e,{id:r}=n,{getProps:i,theme:o}=Ne(),s={color:o.colors.neutral90,fontWeight:450,gridArea:"label",lineHeight:"1.5"};return B.jsx("label",{htmlFor:r,...i("label",s,e),children:t})}const kl=e=>{const{prop:t,enabled:n,onClick:r}=e,{getProps:i,theme:o}=Ne(),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 B.jsxs("button",{onClick:r,type:"button",...i("optionalFieldButton",s,e),children:[B.jsx("span",{children:n?"-":"+"}),B.jsx("span",{style:{marginRight:8},children:t.label||t.name})]})},Fl=e=>{const{onChange:t}=e,{getProps:n,theme:r}=Ne(),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 B.jsx("button",{onClick:t,type:"button",...n("loadMoreButton",i,e),children:"Load More"})},Pl={Description:wl,Errors:Sl,Label:El,OptionalFieldButton:kl,Button:Fl},Wr=G.createContext({classNames:{},classNamePrefix:"",components:{},styles:{},theme:Hr,unstyled:!1});function Fb(){const e=G.useContext(Wr)??{},t=Al(e.theme??{});function n(){return e.classNamePrefix??""}function r(a){var c;const l=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${a}`,u={...((c=e.classNames)==null?void 0:c[a])??{}};return typeof(u==null?void 0:u.container)=="function"&&(u.container=typeof(u==null?void 0:u.container)=="function"?(...d)=>{var f;return[(f=u==null?void 0:u.container)==null?void 0:f.call(u,...d),l].join(" ")}:()=>l),u}function i(a,l){var u;return{...Un,...l??{},...((u=e==null?void 0:e.components)==null?void 0:u[a])??{}}}function o(a,l){var u;return hb(((u=e.styles)==null?void 0:u[a])??{},l??{})}function s(a,l){return{classNamePrefix:n(),classNames:r(a),components:i(a,l==null?void 0:l.components),styles:o(a,l==null?void 0:l.styles),theme:t}}return{getClassNamePrefix:n,getClassNames:r,getComponents:i,getProps:s,getStyles:o,theme:t}}function Ne(){const e=G.useContext(Wr)??{},t=e.theme,n=e.unstyled?xl:Hr,r=typeof t=="function"?zr(n,t(n)):zr(n,t);function i(l,u){var f;const c=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${l.toLowerCase()}`,d=(f=e.classNames)==null?void 0:f[l];if(typeof d=="function"){const p=d,b={...u??{},theme:r};return[c,p(b)].filter(Boolean).join(" ")}return[c,d].filter(Boolean).join(" ")}function o(){return{...Pl,...(e==null?void 0:e.components)??{}}}function s(l,u,c){var f;const d=(f=e.styles)==null?void 0:f[l];if(typeof d=="function"){const p=d,b={...c??{},theme:r};return p(u,b)}return d?{...u,...d}:u}function a(l,u,c){return{className:i(l,c),style:s(l,u,c)}}return{getClassNames:i,getComponents:o,getProps:a,getStyles:s,select:Fb(),theme:r}}const Pb=({children:e,...t})=>B.jsx(Wr.Provider,{value:t,children:e}),so=G.createContext(void 0),gt=()=>{const e=G.useContext(so);if(!e)throw new Error("Must be used inside FormFieldContext.Provider");return e},Gl=(e,t)=>{var i;const n=wt(),r=qt({...t==null?void 0:t.useQueryOpts,queryKey:["accounts",e],queryFn:()=>n.getAccounts(e)});return{...r,accounts:((i=r.data)==null?void 0:i.data)||[]}},Gb=e=>B.jsx(Un.Option,{...e,children:e.data.name});function Bl({app:e}){const t=wt(),{externalUserId:n}=Jn(),r=gt(),{id:i,prop:o,value:s,onChange:a}=r,{getProps:l,select:u,theme:c}=Ne(),d={color:c.colors.neutral60,gridArea:"control"},f={backgroundColor:c.colors.primary,borderRadius:c.borderRadius,border:"solid 1px",borderColor:c.colors.primary25,color:c.colors.primary25,padding:"0.25rem 0.5rem",gridArea:"control"},p={components:{Option:Gb},styles:{control:S=>({...S,gridArea:"control",boxShadow:c.boxShadow.input})}},b=u.getProps("controlAppSelect",p),g=void 0,{isLoading:I,accounts:v,refetch:k}=Gl({externalUserId:n,app:e.name_slug,oauth_app_id:g},{useQueryOpts:{enabled:!!e,suspense:!!e}}),A=async()=>{t.connectAccount({app:o.app,oauthAppId:g,onSuccess:async S=>{await k(),a({authProvisionId:S.id})},onError:()=>{}})},E=G.useMemo(()=>{let S=s;if(S!=null){for(const C of v)if(S.authProvisionId===C.id){S=C;break}}return S},[v,s]);return B.jsx("div",{...l("controlApp",d,{app:e,...r}),children:I?`Loading ${e.name} accounts...`:v.length?B.jsx(Xr,{instanceId:i,value:E,options:[...v,{id:"_new",name:`Connect new ${e.name} account...`}],...b,required:!0,placeholder:`Select ${e.name} account...`,isLoading:I,isClearable:!0,isSearchable:!0,getOptionLabel:S=>S.name,getOptionValue:S=>S.id,onChange:S=>{S?S.id==="_new"?A():a({authProvisionId:S.id}):a(void 0)}}):B.jsxs("button",{type:"button",...l("connectButton",f,{app:e,...r}),onClick:()=>A(),children:["Connect ",e.name]})})}const Tl=e=>({color:e.colors.neutral60,border:"1px solid",borderColor:e.colors.neutral20,padding:6,borderRadius:e.borderRadius,boxShadow:e.boxShadow.input,flex:1}),ao=e=>({color:e.colors.neutral60,display:"inline-flex",alignItems:"center",padding:`${e.spacing.baseUnit}px ${e.spacing.baseUnit*1.5}px ${e.spacing.baseUnit}px ${e.spacing.baseUnit*2.5}px`,border:`1px solid ${e.colors.neutral30}`,borderRadius:e.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:e.spacing.baseUnit*2,textWrap:"nowrap",backgroundColor:"white"}),Ol=e=>({...ao(e),flex:"0 0 auto",padding:"6px 8px"}),Dl=()=>({gridArea:"control",display:"flex",flexDirection:"column",gap:"0.5rem"}),Vl=()=>({display:"flex",gap:"0.5rem",alignItems:"center"});function Bb(){var A;const e=gt(),{onChange:t,prop:n,value:r}=e,{getProps:i,theme:o}=Ne(),s=()=>{if(!r||!Array.isArray(r))return[""];const E=r.map(S=>typeof S=="string"?S:JSON.stringify(S));return E.length>0?E:[""]},[a,l]=G.useState(s);G.useEffect(()=>{l(s())},[r]);const u=E=>{const S=E.filter(C=>C.trim()!=="");if(S.length===0){t(void 0);return}t(S)},c=(E,S)=>{const C=[...a];C[E]=S,l(C),u(C)},d=()=>{const E=[...a,""];l(E)},f=E=>{const S=a.filter((C,L)=>L!==E);l(S.length>0?S:[""]),u(S)},p=Dl(),b=Vl(),g=Tl(o),I=ao(o),v=Ol(o),k=((A=a[a.length-1])==null?void 0:A.trim())||a.length>1;return B.jsxs("div",{...i("controlArray",p,e),children:[a.map((E,S)=>B.jsxs("div",{style:b,children:[B.jsx("input",{type:"text",value:E,onChange:C=>c(S,C.target.value),placeholder:"",style:g,required:!n.optional&&S===0}),a.length>1&&B.jsx("button",{type:"button",onClick:()=>f(S),style:v,"aria-label":"Remove value",children:"×"})]},S)),k&&B.jsxs("button",{type:"button",onClick:d,style:{...I,alignSelf:"flex-start",paddingRight:`${o.spacing.baseUnit*2}px`},children:[B.jsx("span",{children:"+"}),B.jsx("span",{children:"Add more"})]})]})}function Nl(){const e=gt(),{id:t,value:n,onChange:r}=e,{getProps:i}=Ne(),o={width:"16px",height:"16px",gridArea:"control",margin:"0 0.5rem 0 0"};return B.jsx("input",{id:t,type:"checkbox",...i("controlBoolean",o,e),checked:n??!1,onChange:s=>r(s.target.checked)})}function Ll(){const e=gt(),{id:t,onChange:n,prop:r,value:i}=e,{getProps:o,theme:s}=Ne(),a={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 l="off",u="text",c=d=>d;switch(r.type){case"string":break;case"integer":u="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&&(u="password",l="new-password"),B.jsx("input",{id:t,type:u,name:r.name,value:i??"",onChange:d=>n(c(d.target.value)),...o("controlInput",a,e),min:"min"in r?r.min:void 0,max:"max"in r?r.max:void 0,autoComplete:l,"data-lpignore":"true","data-1p-ignore":"true",required:!r.optional})}function Tb(){const e=gt(),{onChange:t,prop:n,value:r}=e,{getProps:i,theme:o}=Ne(),s=A=>{if(A===null||typeof A!="object"||A instanceof Date||A instanceof Function||A instanceof RegExp)return!1;const E=Object.getPrototypeOf(A);return E===Object.prototype||E===null},a=()=>{if(!r||typeof r!="object"||Array.isArray(r))return[{key:"",value:""}];if(!s(r))return[{key:"",value:""}];const A=Object.entries(r).map(([E,S])=>({key:E,value:typeof S=="string"?S:(()=>{try{return JSON.stringify(S)}catch{return String(S)}})()}));return A.length>0?A:[{key:"",value:""}]},[l,u]=G.useState(a);G.useEffect(()=>{if(!r||typeof r!="object"||Array.isArray(r)){u([{key:"",value:""}]);return}if(!s(r)){u([{key:"",value:""}]);return}const A=Object.entries(r).map(([E,S])=>({key:E,value:typeof S=="string"?S:(()=>{try{return JSON.stringify(S)}catch{return String(S)}})()}));u(A.length>0?A:[{key:"",value:""}])},[r]);const c=A=>{const E=A.filter(C=>C.key.trim()!=="");if(E.length===0){t(void 0);return}const S={};E.forEach(C=>{if(C.key.trim())try{S[C.key]=JSON.parse(C.value)}catch{S[C.key]=C.value}}),t(S)},d=(A,E,S)=>{const C=[...l];C[A]={...C[A],[E]:S},u(C),c(C)},f=()=>{const A=[...l,{key:"",value:""}];u(A)},p=A=>{const E=l.filter((S,C)=>C!==A);u(E.length>0?E:[{key:"",value:""}]),c(E)},b=Dl(),g=Vl(),I=Tl(o),v=ao(o),k=Ol(o);return B.jsxs("div",{...i("controlObject",b,e),children:[l.map((A,E)=>B.jsxs("div",{style:g,children:[B.jsx("input",{type:"text",value:A.key,onChange:S=>d(E,"key",S.target.value),placeholder:"Key",style:I,required:!n.optional&&E===0}),B.jsx("input",{type:"text",value:A.value,onChange:S=>d(E,"value",S.target.value),placeholder:"Value",style:I}),l.length>1&&B.jsx("button",{type:"button",onClick:()=>p(E),style:k,"aria-label":"Remove pair",children:"×"})]},E)),B.jsxs("button",{type:"button",onClick:f,style:{...v,alignSelf:"flex-start",paddingRight:`${o.spacing.baseUnit*2}px`},children:[B.jsx("span",{children:"+"}),B.jsx("span",{children:"Add more"})]})]})}var Ob=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Rl=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},lo={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,r,i){return!(!t||n.some(function(o){return Rl(t,o,i)})||r.some(function(o){return Rl(t,o,i)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function Db(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?lo.formatCreateLabel:o,a=e.isValidNewOption,l=a===void 0?lo.isValidNewOption:a,u=e.getNewOptionData,c=u===void 0?lo.getNewOptionData:u,d=e.onCreateOption,f=e.options,p=f===void 0?[]:f,b=e.onChange,g=ht(e,Ob),I=g.getOptionValue,v=I===void 0?dl:I,k=g.getOptionLabel,A=k===void 0?cl:k,E=g.inputValue,S=g.isLoading,C=g.isMulti,L=g.value,P=g.name,N=G.useMemo(function(){return l(E,Or(L),p,{getOptionValue:v,getOptionLabel:A})?c(E,s(E)):void 0},[s,c,A,v,E,l,p,L]),D=G.useMemo(function(){return(n||!S)&&N?i==="first"?[N].concat(yn(p)):[].concat(yn(p),[N]):p},[n,i,S,N,p]),T=G.useCallback(function(R,Q){if(Q.action!=="select-option")return b(R,Q);var ae=Array.isArray(R)?R:[R];if(ae[ae.length-1]===N){if(d)d(E);else{var H=c(E,E),q={action:"create-option",name:P,option:H};b(_n(C,[].concat(yn(Or(L)),[H]),H),q)}return}b(R,Q)},[c,E,C,P,N,d,b,L]);return _(_({},g),{},{options:D,onChange:T})}var Vb=G.forwardRef(function(e,t){var n=Ea(e),r=Db(n);return ne.createElement(oo,U({ref:t},r))}),Nb=Vb;function Zr({isCreatable:e,options:t,selectProps:n,showLoadMoreButton:r,onLoadMore:i}){const o=gt(),{id:s,prop:a,value:l,onChange:u}=o,{select:c,theme:d}=Ne(),[f,p]=G.useState(t),[b,g]=G.useState(l);G.useEffect(()=>{p(t)},[t]),G.useEffect(()=>{g(l)},[l]);const I={styles:{container:P=>({...P,gridArea:"control",boxShadow:d.boxShadow.input})}},v=G.useMemo(()=>{let P=b;if(P!=null)if(Array.isArray(P)){if(typeof P[0]!="object"){const N=[];for(const D of P){let T={label:D,value:D};for(const R of f)if(R.value===D){T=R;break}N.push(T)}P=N}}else if(typeof P!="object")if((f==null?void 0:f[0])&&typeof f[0]=="object"){for(const D of f)if(D.value===b){P=D;break}}else P={label:b,value:b};else P.__lv&&(P=P.__lv);return P},[b,f]),k=({children:P,...N})=>B.jsxs(Un.MenuList,{...N,children:[P,B.jsx("div",{className:"pt-4",children:B.jsx(Fl,{onChange:i})})]}),A=c.getProps("controlSelect",I);r&&(A.components={...A.components,MenuList:k});const E=P=>{const N=Q=>typeof Q=="object"?Q:{label:Q,value:Q},D=N(P);let T=D;const R=f?[D,...f]:[D];p(R),a.type.endsWith("[]")&&(Array.isArray(b)?T=[...b.map(N),D]:T=[D]),g(T),S(T)},S=P=>{if(P)if(Array.isArray(P))typeof P[0]=="object"&&"value"in P[0]?u({__lv:P}):u(P);else if(typeof P=="object"&&"value"in P)u({__lv:P});else throw new Error("unhandled option type");else u(void 0)},C={onCreateOption:a.remoteOptions?E:void 0},L=e?Nb:Xr;return B.jsx(L,{inputId:s,instanceId:s,options:f,value:v,isMulti:a.type.endsWith("[]"),isClearable:!0,required:!a.optional,...A,...n,...C,onChange:S})}const Lb=e=>typeof e=="object"&&e!==null&&"query"in e&&typeof e.query=="string";function Ml(){var f;const e=gt(),{id:t,onChange:n,prop:r,value:i}=e,{getProps:o,theme:s}=Ne(),l=((f=r.auth)==null?void 0:f.app)||"postgresql";let u="";Lb(i)?u=i.query:typeof i=="string"&&(u=i);const c=p=>{n({app:l,query:p,params:[]})},d={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,fontSize:"0.875rem",fontFamily:"monospace",minHeight:"120px",resize:"vertical"};return B.jsx("textarea",{id:t,name:r.name,value:u,onChange:p=>c(p.target.value),placeholder:"SELECT * FROM table_name",required:!r.optional,...o("controlSql",d,e)})}function Xl({queryEnabled:e}){const t=wt(),{externalUserId:n,component:r,configurableProps:i,configuredProps:o,dynamicProps:s,props:{disableQueryDisabling:a}}=Jn(),{idx:l,prop:u}=gt(),[c,d]=G.useState(""),[f,p]=G.useState(0),[b,g]=G.useState(!0),[I,v]=G.useState(void 0),[k,A]=G.useState({page:0,prevContext:{},data:[],values:new Set}),E={};for(let H=0;H<l;H++){const q=i[H];E[q.name]=o[q.name]}const S={externalUserId:n,page:f,prevContext:I,componentId:r.key,propName:u.name,configuredProps:E,dynamicPropsId:s==null?void 0:s.id};u.useQuery&&(S.query=c||"");const C={...S};delete C.dynamicPropsId;const[L,P]=G.useState(),N=()=>{p(k.page),v(k.prevContext),A({...k,prevContext:{}})},{isFetching:D,refetch:T}=qt({queryKey:["componentConfigure",C],queryFn:async()=>{P(void 0);const H=await t.componentConfigure(S),{options:q,stringOptions:ie,errors:fe}=H;if(fe!=null&&fe.length){try{P(JSON.parse(fe[0]))}catch{P({name:"Error",message:fe[0]})}return[]}let ve=[];if(q!=null&&q.length&&(ve=q),ie!=null&&ie.length){const m=[];for(const le of ie)m.push({label:le,value:le});ve=m}const y=[],Ae=new Set(k.values);for(const m of ve||[]){const le=typeof m=="string"?m:m.value;Ae.has(le)||(Ae.add(le),y.push(m))}let ue=k.data;return y.length?(ue=[...k.data,...y],A({page:f+1,prevContext:H.context,data:ue,values:Ae})):g(!1),ue},enabled:!!e}),R=()=>!D&&!L&&b,Q=L?L.message:a?"Click to configure":e?void 0:"Configure props above first",ae=a?!1:!e;return B.jsx(Zr,{isCreatable:!0,showLoadMoreButton:R(),onLoadMore:N,options:k.data,selectProps:{isLoading:D,placeholder:Q,isDisabled:ae,inputValue:u.useQuery?c:void 0,onInputChange(H){u.useQuery&&(d(H),T())},onMenuOpen(){a&&!e&&T()}}})}function Hl(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 B.jsx(Xl,{queryEnabled:r==null||r>=o});if("options"in i&&i.options){let a=i.options;return typeof a[0]!="object"&&(a=a.map(l=>({label:l,value:l}))),B.jsx(Zr,{options:a,components:{IndicatorSeparator:()=>null}})}if(i.type.endsWith("[][]"))throw new Error("Unsupported property type: "+i.type);if(i.type.endsWith("[]"))return!("options"in i)||!i.options?B.jsx(Bb,{}):B.jsx(Zr,{isCreatable:!0,options:[],components:{IndicatorSeparator:()=>null}});switch(i.type){case"app":return B.jsx(Bl,{app:s});case"boolean":return B.jsx(Nl,{});case"string":case"integer":return B.jsx(Ll,{});case"object":return B.jsx(Tb,{});case"sql":return B.jsx(Ml,{});default:throw new Error("Unsupported property type: "+i.type)}}function zl(e){const{form:t,field:n}=e,{prop:r}=n,{getProps:i,getComponents:o}=Ne(),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:a,Description:l,Errors:u}=o(),c="app"in n.extra?n.extra.app:void 0;if(c&&!c.auth_type)return null;let d=r.label||r.name;return c&&(d=`Connect ${c.name} account`),B.jsxs("div",{...i("field",s,e),children:[B.jsx(a,{text:d,field:n,form:t}),B.jsx(Hl,{field:n,form:t}),B.jsx(l,{markdown:r.description,field:n,form:t}),B.jsx(u,{field:n,form:t})]})}const Wl=(e,t)=>{var i;const n=wt(),r=qt({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 Zl({prop:e,idx:t}){const n=Jn(),{id:r,configuredProps:i,registerField:o,setConfiguredProp:s,errors:a,enableDebugging:l}=n,u=e.type==="app"&&"app"in e?e.app:void 0,{app:c}=Wl(u||"",{useQueryOpts:{enabled:!!u,suspense:!!u}}),f={id:`pd${r}${e.name}`,prop:e,idx:t,value:i[e.name],onChange(p){s(t,p)},extra:{app:c},errors:a,enableDebugging:l};return G.useEffect(()=>o(f),[f]),B.jsx(so.Provider,{value:f,children:B.jsx(zl,{field:f,form:n})})}class jl 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 Jl(e){const{form:t}=e,{propsNeedConfiguring:n,submitting:r}=t,{getProps:i,theme:o}=Ne(),s=a=>{var l;return{width:"fit-content",textTransform:"capitalize",backgroundColor:a?o.colors.neutral10:o.colors.primary,color:a?o.colors.neutral40:o.colors.neutral0,padding:`${o.spacing.baseUnit*1.75}px ${o.spacing.baseUnit*16}px`,borderRadius:o.borderRadius,boxShadow:(l=o.boxShadow)==null?void 0:l.button,cursor:"pointer",fontSize:"0.875rem",opacity:r?.5:void 0,margin:"0.5rem 0 0 0"}};return B.jsx("input",{type:"submit",value:r?"Submitting...":"Submit",...i("controlSubmit",s(n.length||r),e),disabled:n.length||r})}const Rb=["ConfigurationError"];function Yl(){const e=Jn(),{configurableProps:t,dynamicPropsQueryIsFetching:n,isValid:r,optionalPropIsEnabled:i,optionalPropSetEnabled:o,props:s,setSubmitting:a,sdkErrors:l,submitting:u,enableDebugging:c}=e,d=c||l.filter(D=>Rb.includes(D.name)).length>0,{hideOptionalProps:f,onSubmit:p}=s,[b,g]=G.useState([]);G.useEffect(()=>{u?g([]):l&&l.length&&g(l.map(D=>({type:"alert",alertType:"error",content:`# ${D.name}
21
- ${D.message}`})))},[l,u]);const{getComponents:I,getProps:v,theme:k}=Ne(),{OptionalFieldButton:A}=I(),E={display:"flex",flexDirection:"column",gap:"1.5rem"},S={display:"flex",flexWrap:"wrap",gap:"0.375rem"},C={fontWeight:600,textTransform:"capitalize",color:k.colors.neutral60,fontSize:"0.875rem",lineHeight:"1.375",margin:"0 0 0.5rem 0"},L=async D=>{if(p&&(D.preventDefault(),r)){a(!0);try{await p(e)}finally{a(!1)}}},P=[],N=[];for(let D=0;D<t.length;D++){const T=t[D];if(!T.hidden&&!jn.includes(T.type)){if(T.optional){const R=i(T);if(N.push([T,R]),!R)continue}P.push([T,D])}}return B.jsx(jl,{fallback:D=>B.jsxs("p",{style:{color:"red"},children:["Error: ",D&&typeof D=="object"&&"message"in D&&typeof D.message=="string"?D.message:"Unknown"]}),children:B.jsx(G.Suspense,{fallback:B.jsx("p",{children:"Loading form..."}),children:B.jsxs("form",{...v("componentForm",E,s),onSubmit:L,children:[P.map(([D,T])=>D.type==="alert"?B.jsx(Cr,{prop:D},D.name):B.jsx(Zl,{prop:D,idx:T},D.name)),n&&B.jsx("p",{children:"Loading dynamic props..."}),!f&&N.length?B.jsxs("div",{children:[B.jsx("div",{...v("heading",C,s),children:"Optional Props"}),B.jsx("div",{...v("optionalFields",S,s),children:N.map(([D,T])=>B.jsx(A,{prop:D,enabled:T,onClick:()=>o(D,!T)},D.name))})]}):null,d&&(b==null?void 0:b.map((D,T)=>B.jsx(Cr,{prop:D},T))),p&&B.jsx(Jl,{form:e})]})})})}function _l(e){return B.jsx(xa,{props:e,children:B.jsx(Yl,{})})}const Ul=({key:e},t)=>{var i;const n=wt(),r=qt({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 Mb(e){const{isLoading:t,error:n,component:r}=Ul({key:e.componentKey});if(!e.componentKey)throw new Error("componentKey required");return t?B.jsx("p",{children:"Loading..."}):n?B.jsxs("p",{children:["Error: ",n.message]}):r?B.jsx(_l,{component:r,...e}):B.jsx("p",{children:"Component not found"})}function Xb(){const e=gt(),{id:t,onChange:n,value:r}=e,{getProps:i,theme:o}=Ne(),s={display:"block",gridArea:"control",width:"100%",fontSize:"0.875rem",boxShadow:o.boxShadow.input};let a=r;return typeof a=="object"&&(a=JSON.stringify(a)),B.jsx("textarea",{id:t,value:a,onChange:l=>n(l.target.value),...i("controlAny",s,e)})}const ql=e=>{var r;const t=wt(),n=qt({queryKey:["apps",e],queryFn:()=>t.apps(e)});return{...n,apps:((r=n.data)==null?void 0:r.data)||[]}};function Hb({value:e,onChange:t}){const[n,r]=G.useState(""),[i,o]=G.useState(""),s=G.useId();G.useEffect(()=>{const f=setTimeout(()=>{o(n)},300);return()=>clearTimeout(f)},[n]);const{isLoading:a,apps:l}=ql({q:i}),{Option:u,SingleValue:c}=Un,d=(l==null?void 0:l.find(f=>f.name_slug===(e==null?void 0:e.name_slug)))||(e!=null&&e.name_slug?e:null);return B.jsx(Xr,{instanceId:s,className:"react-select-container text-sm",classNamePrefix:"react-select",components:{Option:f=>B.jsx(u,{...f,children:B.jsxs("div",{style:{display:"flex",gap:10},children:[B.jsx("img",{src:`https://pipedream.com/s.v0/${f.data.id}/logo/48`,style:{height:24,width:24},alt:f.data.name}),B.jsx("span",{style:{whiteSpace:"nowrap"},children:f.data.name})]})}),SingleValue:f=>B.jsx(c,{...f,children:B.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[B.jsx("img",{src:`https://pipedream.com/s.v0/${f.data.id}/logo/48`,style:{height:24,width:24},alt:f.data.name}),B.jsx("span",{style:{whiteSpace:"nowrap"},children:f.data.name})]})}),IndicatorSeparator:()=>null},options:l||[],getOptionLabel:f=>f.name||f.name_slug,getOptionValue:f=>f.name_slug,value:d,onChange:f=>t==null?void 0:t(f||void 0),onInputChange:(f,{action:p})=>{p==="input-change"&&r(f)},isLoading:a})}const Ql=e=>{var r;const t=wt(),n=qt({queryKey:["components",e],queryFn:()=>t.components(e)});return{...n,components:((r=n.data)==null?void 0:r.data)||[]}};function zb({app:e,componentType:t,value:n,onChange:r}){const i=G.useId(),{isLoading:o,components:s}=Ql({app:e==null?void 0:e.name_slug,componentType:t}),a=(s==null?void 0:s.find(l=>l.key===(n==null?void 0:n.key)))||null;return B.jsx(Xr,{instanceId:i,className:"react-select-container text-sm",classNamePrefix:"react-select",options:s,getOptionLabel:l=>l.name||l.key,getOptionValue:l=>l.key,value:a,onChange:l=>r==null?void 0:r(l||void 0),isLoading:o,components:{IndicatorSeparator:()=>null}})}z.Alert=Cr,z.ComponentForm=_l,z.ComponentFormContainer=Mb,z.Control=Hl,z.ControlAny=Xb,z.ControlApp=Bl,z.ControlBoolean=Nl,z.ControlInput=Ll,z.ControlSelect=Zr,z.ControlSql=Ml,z.ControlSubmit=Jl,z.CustomizationContext=Wr,z.CustomizeProvider=Pb,z.Description=wl,z.ErrorBoundary=jl,z.Errors=Sl,z.Field=zl,z.FormContext=Wi,z.FormContextProvider=xa,z.FormFieldContext=so,z.FrontendClientProvider=wh,z.InternalComponentForm=Yl,z.InternalField=Zl,z.Label=El,z.OptionalFieldButton=kl,z.RemoteOptionsContainer=Xl,z.SelectApp=Hb,z.SelectComponent=zb,z.defaultComponents=Pl,z.defaultTheme=Hr,z.getReactSelectTheme=Al,z.mergeTheme=zr,z.skippablePropTypes=jn,z.unstyledTheme=xl,z.useAccounts=Gl,z.useApp=Wl,z.useApps=ql,z.useComponent=Ul,z.useComponents=Ql,z.useCustomize=Ne,z.useFormContext=Jn,z.useFormFieldContext=gt,z.useFrontendClient=wt,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
21
+ ${D.message}`})))},[l,u]);const{getComponents:I,getProps:v,theme:k}=Ne(),{OptionalFieldButton:A}=I(),E={display:"flex",flexDirection:"column",gap:"1.5rem"},S={display:"flex",flexWrap:"wrap",gap:"0.375rem"},C={fontWeight:600,textTransform:"capitalize",color:k.colors.neutral60,fontSize:"0.875rem",lineHeight:"1.375",margin:"0 0 0.5rem 0"},L=async D=>{if(p&&(D.preventDefault(),r)){a(!0);try{await p(e)}finally{a(!1)}}},P=[],N=[];for(let D=0;D<t.length;D++){const T=t[D];if(!T.hidden&&!jn.includes(T.type)){if(T.optional){const R=i(T);if(N.push([T,R]),!R)continue}P.push([T,D])}}return B.jsx(jl,{fallback:D=>B.jsxs("p",{style:{color:"red"},children:["Error: ",D&&typeof D=="object"&&"message"in D&&typeof D.message=="string"?D.message:"Unknown"]}),children:B.jsx(G.Suspense,{fallback:B.jsx("p",{children:"Loading form..."}),children:B.jsxs("form",{...v("componentForm",E,s),onSubmit:L,children:[P.map(([D,T])=>D.type==="alert"?B.jsx(Cr,{prop:D},D.name):B.jsx(Zl,{prop:D,idx:T},D.name)),n&&B.jsx("p",{children:"Loading dynamic props..."}),!f&&N.length?B.jsxs("div",{children:[B.jsx("div",{...v("heading",C,s),children:"Optional Props"}),B.jsx("div",{...v("optionalFields",S,s),children:N.map(([D,T])=>B.jsx(A,{prop:D,enabled:T,onClick:()=>o(D,!T)},D.name))})]}):null,d&&(b==null?void 0:b.map((D,T)=>B.jsx(Cr,{prop:D},T))),p&&B.jsx(Jl,{form:e})]})})})}function _l(e){return B.jsx(xa,{props:e,children:B.jsx(Yl,{})})}const Ul=({key:e},t)=>{var i;const n=wt(),r=qt({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 Mb(e){const{isLoading:t,error:n,component:r}=Ul({key:e.componentKey});if(!e.componentKey)throw new Error("componentKey required");return t?B.jsx("p",{children:"Loading..."}):n?B.jsxs("p",{children:["Error: ",n.message]}):r?B.jsx(_l,{component:r,...e}):B.jsx("p",{children:"Component not found"})}function Xb(){const e=gt(),{id:t,onChange:n,value:r}=e,{getProps:i,theme:o}=Ne(),s={display:"block",gridArea:"control",width:"100%",fontSize:"0.875rem",boxShadow:o.boxShadow.input};let a=r;return typeof a=="object"&&(a=JSON.stringify(a)),B.jsx("textarea",{id:t,value:a,onChange:l=>n(l.target.value),...i("controlAny",s,e)})}const ql=e=>{var r;const t=wt(),n=qt({queryKey:["apps",e],queryFn:()=>t.apps(e)});return{...n,apps:((r=n.data)==null?void 0:r.data)||[]}};function Hb({value:e,onChange:t}){const[n,r]=G.useState(""),[i,o]=G.useState(""),s=G.useId();G.useEffect(()=>{const f=setTimeout(()=>{o(n)},300);return()=>clearTimeout(f)},[n]);const{isLoading:a,apps:l}=ql({q:i}),{Option:u,SingleValue:c}=Un,d=(l==null?void 0:l.find(f=>f.name_slug===(e==null?void 0:e.name_slug)))||(e!=null&&e.name_slug?e:null);return B.jsx(Xr,{instanceId:s,className:"react-select-container text-sm",classNamePrefix:"react-select",components:{Option:f=>B.jsx(u,{...f,children:B.jsxs("div",{style:{display:"flex",gap:10},children:[B.jsx("img",{src:`https://pipedream.com/s.v0/${f.data.id}/logo/48`,style:{height:24,width:24},alt:f.data.name}),B.jsx("span",{style:{whiteSpace:"nowrap"},children:f.data.name})]})}),SingleValue:f=>B.jsx(c,{...f,children:B.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[B.jsx("img",{src:`https://pipedream.com/s.v0/${f.data.id}/logo/48`,style:{height:24,width:24},alt:f.data.name}),B.jsx("span",{style:{whiteSpace:"nowrap"},children:f.data.name})]})}),IndicatorSeparator:()=>null},options:l||[],getOptionLabel:f=>f.name||f.name_slug,getOptionValue:f=>f.name_slug,value:d,onChange:f=>t==null?void 0:t(f||void 0),onInputChange:(f,{action:p})=>{p==="input-change"&&r(f)},isLoading:a})}const Ql=e=>{var r;const t=wt(),n=qt({queryKey:["components",e],queryFn:()=>t.getComponents(e)});return{...n,components:((r=n.data)==null?void 0:r.data)||[]}};function zb({app:e,componentType:t,value:n,onChange:r}){const i=G.useId(),{isLoading:o,components:s}=Ql({app:e==null?void 0:e.name_slug,componentType:t}),a=(s==null?void 0:s.find(l=>l.key===(n==null?void 0:n.key)))||null;return B.jsx(Xr,{instanceId:i,className:"react-select-container text-sm",classNamePrefix:"react-select",options:s,getOptionLabel:l=>l.name||l.key,getOptionValue:l=>l.key,value:a,onChange:l=>r==null?void 0:r(l||void 0),isLoading:o,components:{IndicatorSeparator:()=>null}})}z.Alert=Cr,z.ComponentForm=_l,z.ComponentFormContainer=Mb,z.Control=Hl,z.ControlAny=Xb,z.ControlApp=Bl,z.ControlBoolean=Nl,z.ControlInput=Ll,z.ControlSelect=Zr,z.ControlSql=Ml,z.ControlSubmit=Jl,z.CustomizationContext=Wr,z.CustomizeProvider=Pb,z.Description=wl,z.ErrorBoundary=jl,z.Errors=Sl,z.Field=zl,z.FormContext=Wi,z.FormContextProvider=xa,z.FormFieldContext=so,z.FrontendClientProvider=wh,z.InternalComponentForm=Yl,z.InternalField=Zl,z.Label=El,z.OptionalFieldButton=kl,z.RemoteOptionsContainer=Xl,z.SelectApp=Hb,z.SelectComponent=zb,z.defaultComponents=Pl,z.defaultTheme=Hr,z.getReactSelectTheme=Al,z.mergeTheme=zr,z.skippablePropTypes=jn,z.unstyledTheme=xl,z.useAccounts=Gl,z.useApp=Wl,z.useApps=ql,z.useComponent=Ul,z.useComponents=Ql,z.useCustomize=Ne,z.useFormContext=Jn,z.useFormFieldContext=gt,z.useFrontendClient=wt,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/connect-react",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Pipedream Connect library for React",
5
5
  "files": [
6
6
  "dist"
@@ -27,7 +27,7 @@
27
27
  "lodash.isequal": "^4.5.0",
28
28
  "react-markdown": "^9.0.1",
29
29
  "react-select": "^5.8.2",
30
- "@pipedream/sdk": "^1.6.9"
30
+ "@pipedream/sdk": "^1.7.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@emotion/react": "^11.13.5",