aiware-js 1.0.0-master.909 → 1.0.0-master.910
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js-core.esm.js +6 -5
- package/js-core.esm.js.gz +0 -0
- package/js-core.esm11.js +3 -3
- package/js-core.esm11.js.gz +0 -0
- package/js-core.esm13.js +1 -1
- package/js-core.esm13.js.gz +0 -0
- package/js-core.esm20.js +1 -1
- package/js-core.esm20.js.gz +0 -0
- package/js-core.esm21.js +1 -1
- package/js-core.esm21.js.gz +0 -0
- package/js-core.esm22.js +1 -1
- package/js-core.esm22.js.gz +0 -0
- package/js-core.esm31.js +1 -1
- package/js-core.esm31.js.gz +0 -0
- package/js-core.esm32.js +1 -1
- package/js-core.esm32.js.gz +0 -0
- package/js-core.esm36.js +1 -1
- package/js-core.esm36.js.gz +0 -0
- package/js-core.esm37.js +1 -1
- package/js-core.esm37.js.gz +0 -0
- package/js-core.esm38.js +1 -1
- package/js-core.esm38.js.gz +0 -0
- package/js-core.esm39.js +1 -1
- package/js-core.esm39.js.gz +0 -0
- package/js-core.esm43.js +1 -1
- package/js-core.esm43.js.gz +0 -0
- package/js-core.esm44.js +1 -1
- package/js-core.esm44.js.gz +0 -0
- package/js-core.esm45.js +1 -1
- package/js-core.esm45.js.gz +0 -0
- package/js-core.esm46.js +1 -1
- package/js-core.esm46.js.gz +0 -0
- package/js-core.esm48.js +1 -1
- package/js-core.esm48.js.gz +0 -0
- package/js-core.esm49.js +1 -1
- package/js-core.esm49.js.gz +0 -0
- package/js-core.esm50.js +1 -1
- package/js-core.esm50.js.gz +0 -0
- package/js-core.esm51.js +1 -1
- package/js-core.esm51.js.gz +0 -0
- package/js-core.esm52.js +1 -1
- package/js-core.esm52.js.gz +0 -0
- package/js-core.esm54.js +1 -1
- package/js-core.esm54.js.gz +0 -0
- package/js-core.esm55.js +1 -1
- package/js-core.esm55.js.gz +0 -0
- package/js-core.esm56.js +1 -1
- package/js-core.esm56.js.gz +0 -0
- package/js-core.esm58.js +1 -1
- package/js-core.esm58.js.gz +0 -0
- package/js-core.esm63.js +1 -1
- package/js-core.esm63.js.gz +0 -0
- package/js-core.esm66.js +1 -1
- package/js-core.esm66.js.gz +0 -0
- package/js-core.esm69.js +1 -1
- package/js-core.esm69.js.gz +0 -0
- package/js-core.esm71.js +1 -1
- package/js-core.esm71.js.gz +0 -0
- package/js-core.esm76.js +1 -1
- package/js-core.esm76.js.gz +0 -0
- package/js-core.esm89.js +1 -1
- package/js-core.esm89.js.gz +0 -0
- package/js-core.esm91.js +1 -1
- package/js-core.esm91.js.gz +0 -0
- package/js-core.umd.js +179 -178
- package/js-core.umd.js.gz +0 -0
- package/locales/en.json +1 -1
- package/locales/es.json +1 -1
- package/locales/fr.json +1 -1
- package/package.json +1 -1
package/js-core.esm.js
CHANGED
|
@@ -481,8 +481,8 @@ ${v.current.stack}
|
|
|
481
481
|
message: $message
|
|
482
482
|
replyTo: "dev@veritone.com"
|
|
483
483
|
})
|
|
484
|
-
}`,fetchTemplateGalleryQuery=`query {
|
|
485
|
-
flowTemplates {
|
|
484
|
+
}`,fetchTemplateGalleryQuery=`query($isPublic: Boolean, $categories: [String], $tags: [String], $developers: [String], $limit: Int, $offset: Int) {
|
|
485
|
+
flowTemplates(showPublic: $isPublic, categories: $categories, tags: $tags, authors: $developers, limit: $limit, offset: $offset){
|
|
486
486
|
records {
|
|
487
487
|
id
|
|
488
488
|
title
|
|
@@ -495,6 +495,7 @@ ${v.current.stack}
|
|
|
495
495
|
image
|
|
496
496
|
logo
|
|
497
497
|
categories
|
|
498
|
+
public
|
|
498
499
|
}
|
|
499
500
|
}
|
|
500
501
|
}`,fetchTemplateGalleryQueryFallback=`query {
|
|
@@ -863,7 +864,7 @@ createScheduledJob(input:{
|
|
|
863
864
|
}
|
|
864
865
|
}
|
|
865
866
|
}
|
|
866
|
-
`;var gqlQueries=Object.freeze({__proto__:null,fetchEngineQuery:fetchEngineQuery,fetchEnginesQuery:fetchEnginesQuery,deleteEngineQuery:deleteEngineQuery,fetchApplicationsQuery:fetchApplicationsQuery,fetchApplicationByIdQuery:fetchApplicationByIdQuery,fetchOrganizationNameQuery:fetchOrganizationNameQuery,fetchTasksQuery:fetchTasksQuery,getRoutesQuery:getRoutesQuery,getSignedUrlQuery:getSignedUrlQuery,createSingleJobQuery:createSingleJobQuery,getJobStatusQuery:getJobStatusQuery,engineResultQuery:engineResultQuery,sendMailMutation:sendMailMutation,fetchTemplateGalleryQuery:fetchTemplateGalleryQuery,fetchTemplateGalleryQueryFallback:fetchTemplateGalleryQueryFallback,getTemplateByIdQuery:getTemplateByIdQuery,getTemplateByIdQueryFallback:getTemplateByIdQueryFallback,createEngineMutation:createEngineMutation,createEngineBuildMutation:createEngineBuildMutation,fetchFlowsQuery:fetchFlowsQuery,fetchFlowsIdsQuery:fetchFlowsIdsQuery,fetchTagByFlowIdQuery:fetchTagByFlowIdQuery,scheduledJobsQuery:scheduledJobsQuery,getGeneratedFetchTagsQueryFromListIds:getGeneratedFetchTagsQueryFromListIds,createJobTemplateQuery:createJobTemplateQuery,runJobTemplateQuery:runJobTemplateQuery,createJobQuery:createJobQuery,isRevisionsExistOnServerQuery:isRevisionsExistOnServerQuery});let apiEndpoint;function setApiEndpoint(e){apiEndpoint=e}const fetchEngine=(n,r,i)=>__awaiter$f(void 0,void 0,void 0,function*(){var e={engineId:n,limit:r},t=gqlQueries["fetchEngineQuery"];return fetchVeritoneGraphQLApi(apiEndpoint,i,t,e)}),fetchTemplateGallery=e=>{var t=gqlQueries["fetchTemplateGalleryQuery"];return fetchVeritoneGraphQLApi(apiEndpoint,e,t,{})},fetchTemplateGalleryFallback=e=>{var t=gqlQueries["fetchTemplateGalleryQueryFallback"];return fetchVeritoneGraphQLApi(apiEndpoint,e,t,{})},fetchFlows=({name:e,owned:t,offset:n,limit:r,authToken:i=""})=>{let o;o=""===e&&null===t?{offset:n,limit:r}:""!==e&&null===t?{name:e,offset:n,limit:r}:""===e&&null!==t?{offset:n,limit:r,owned:t}:{name:e,offset:n,limit:r,owned:t};e=gqlQueries.fetchFlowsQuery;return fetchVeritoneGraphQLApi(apiEndpoint,i,e,o)},deleteEngine=(e,t)=>{var n=gqlQueries["deleteEngineQuery"];return fetchVeritoneGraphQLApi(apiEndpoint,t,n,{id:e})},fetchAllTags=r=>__awaiter$f(void 0,void 0,void 0,function*(){var e=gqlQueries["getGeneratedFetchTagsQueryFromListIds"],e=e(r),e=yield fetchVeritoneGraphQLApi(apiEndpoint,"",e,{});let t=Object.values(lodash.exports.get(e,"data")),n=(t=t.map(e=>e.records[0].tags),[]);return _$3.forEach(t,e=>{n=_$3.union(n,e)}),n.sort(function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}),n}),isRevisionsExistOnServerRequest=t=>__awaiter$f(void 0,void 0,void 0,function*(){var e=gqlQueries["isRevisionsExistOnServerQuery"];return fetchVeritoneGraphQLApi(apiEndpoint,t,e,{})}),langs=[{locale:"en",name:"English"},{locale:"fr",name:"French"},{locale:"es",name:"Spanish"}],translationPromises={},getAssetsBaseUrl=()=>{var e,t=document.getElementsByTagName("script");return t.length?(e=Array.from(t).find(e=>e.src.includes("js-core")||e.src.includes("aiware-ui")),t=Array.from(t).find(e=>e.src.includes("main.js")),t=(e=(null==e?void 0:e.src)||(null==t?void 0:t.src)||"").split("/").pop()||"",(e.split(t)[0]||"/").replace(/\/+$/,"")):"/"},fetchTranslationJson=t=>__awaiter$f(void 0,void 0,void 0,function*(){try{var e;return translationPromises.hasOwnProperty(t)||(e=getAssetsBaseUrl(),translationPromises[t]=(yield fetch(e+`/locales/${t}.json`)).json()),translationPromises[t]}catch(e){return isEqual_1("production","development")&&console.log("Error fetching translation json for `lang`: "+t,e),Promise.resolve({})}}),intls={},createIntlInstances=()=>{var e;Object.keys(intls).length||(e=langs.map(({locale:t})=>__awaiter$f(void 0,void 0,void 0,function*(){var e=yield fetchTranslationJson(t);return{locale:t,messages:e}})),Promise.all(e).then(e=>{e.forEach(({locale:e,messages:t})=>{intls[e]=createIntl({locale:e,messages:t,defaultLocale:"en"})})}).catch(e=>{isEqual_1("production","development")&&console.log(e)}))},AIWareFormatMessage=r=>(e,t)=>{var n;return null==(n=intls[r])?void 0:n.formatMessage(e,t)};createIntlInstances();class EnumHelpers{static getNamesAndValues(t){return EnumHelpers.getNames(t).map(e=>({name:e,value:t[e]}))}static getNames(e){return EnumHelpers.getObjValues(e).filter(e=>"string"==typeof e)}static getValues(e){return EnumHelpers.getObjValues(e).filter(e=>"number"==typeof e)}static getObjValues(t){return Object.keys(t).map(e=>t[e])}}const ENGINE_OWNER_TYPES={ORGANIZATION:"organization",MINE:"mine",FAVORITES:"favorites",SHARED:"shared",TEMPLATES:"templates"},ENGINE_FILTER_TYPES={CERTIFIED:"certified",CATEGORIES:"categories",CLASSES:"classes",NOTEWORTHY:"noteworthy",TAGS:"tags",PRICE:"price",INDUSTRIES:"industries",APPLICATIONS:"applications"};var md5$1={exports:{}},crypt={exports:{}},charenc=(!function(){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];0<e;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],n=0;n<e.length;n+=3)for(var r=e[n]<<16|e[n+1]<<8|e[n+2],i=0;i<4;i++)8*n+6*i<=8*e.length?t.push(o.charAt(r>>>6*(3-i)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],n=0,r=0;n<e.length;r=++n%4)0!=r&&t.push((o.indexOf(e.charAt(n-1))&Math.pow(2,-2*r+8)-1)<<2*r|o.indexOf(e.charAt(n))>>>6-2*r);return t}};crypt.exports=n}(),{utf8:{stringToBytes:function(e){return charenc.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(charenc.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}}),charenc_1=charenc,isBuffer_1=function(e){return null!=e&&(isBuffer$2(e)||isSlowBuffer(e)||!!e._isBuffer)};function isBuffer$2(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&isBuffer$2(e.slice(0,0))}!function(){function g(e,t){e.constructor==String?e=(t&&"binary"===t.encoding?x:$).stringToBytes(e):v(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=y.bytesToWords(e),t=8*e.length,r=1732584193,i=-271733879,o=-1732584194,a=271733878,s=0;s<n.length;s++)n[s]=16711935&(n[s]<<8|n[s]>>>24)|4278255360&(n[s]<<24|n[s]>>>8);n[t>>>5]|=128<<t%32,n[14+(64+t>>>9<<4)]=t;for(var l=g._ff,c=g._gg,u=g._hh,d=g._ii,s=0;s<n.length;s+=16){var p=r,f=i,h=o,m=a,r=l(r,i,o,a,n[s+0],7,-680876936),a=l(a,r,i,o,n[s+1],12,-389564586),o=l(o,a,r,i,n[s+2],17,606105819),i=l(i,o,a,r,n[s+3],22,-1044525330);r=l(r,i,o,a,n[s+4],7,-176418897),a=l(a,r,i,o,n[s+5],12,1200080426),o=l(o,a,r,i,n[s+6],17,-1473231341),i=l(i,o,a,r,n[s+7],22,-45705983),r=l(r,i,o,a,n[s+8],7,1770035416),a=l(a,r,i,o,n[s+9],12,-1958414417),o=l(o,a,r,i,n[s+10],17,-42063),i=l(i,o,a,r,n[s+11],22,-1990404162),r=l(r,i,o,a,n[s+12],7,1804603682),a=l(a,r,i,o,n[s+13],12,-40341101),o=l(o,a,r,i,n[s+14],17,-1502002290),r=c(r,i=l(i,o,a,r,n[s+15],22,1236535329),o,a,n[s+1],5,-165796510),a=c(a,r,i,o,n[s+6],9,-1069501632),o=c(o,a,r,i,n[s+11],14,643717713),i=c(i,o,a,r,n[s+0],20,-373897302),r=c(r,i,o,a,n[s+5],5,-701558691),a=c(a,r,i,o,n[s+10],9,38016083),o=c(o,a,r,i,n[s+15],14,-660478335),i=c(i,o,a,r,n[s+4],20,-405537848),r=c(r,i,o,a,n[s+9],5,568446438),a=c(a,r,i,o,n[s+14],9,-1019803690),o=c(o,a,r,i,n[s+3],14,-187363961),i=c(i,o,a,r,n[s+8],20,1163531501),r=c(r,i,o,a,n[s+13],5,-1444681467),a=c(a,r,i,o,n[s+2],9,-51403784),o=c(o,a,r,i,n[s+7],14,1735328473),r=u(r,i=c(i,o,a,r,n[s+12],20,-1926607734),o,a,n[s+5],4,-378558),a=u(a,r,i,o,n[s+8],11,-2022574463),o=u(o,a,r,i,n[s+11],16,1839030562),i=u(i,o,a,r,n[s+14],23,-35309556),r=u(r,i,o,a,n[s+1],4,-1530992060),a=u(a,r,i,o,n[s+4],11,1272893353),o=u(o,a,r,i,n[s+7],16,-155497632),i=u(i,o,a,r,n[s+10],23,-1094730640),r=u(r,i,o,a,n[s+13],4,681279174),a=u(a,r,i,o,n[s+0],11,-358537222),o=u(o,a,r,i,n[s+3],16,-722521979),i=u(i,o,a,r,n[s+6],23,76029189),r=u(r,i,o,a,n[s+9],4,-640364487),a=u(a,r,i,o,n[s+12],11,-421815835),o=u(o,a,r,i,n[s+15],16,530742520),r=d(r,i=u(i,o,a,r,n[s+2],23,-995338651),o,a,n[s+0],6,-198630844),a=d(a,r,i,o,n[s+7],10,1126891415),o=d(o,a,r,i,n[s+14],15,-1416354905),i=d(i,o,a,r,n[s+5],21,-57434055),r=d(r,i,o,a,n[s+12],6,1700485571),a=d(a,r,i,o,n[s+3],10,-1894986606),o=d(o,a,r,i,n[s+10],15,-1051523),i=d(i,o,a,r,n[s+1],21,-2054922799),r=d(r,i,o,a,n[s+8],6,1873313359),a=d(a,r,i,o,n[s+15],10,-30611744),o=d(o,a,r,i,n[s+6],15,-1560198380),i=d(i,o,a,r,n[s+13],21,1309151649),r=d(r,i,o,a,n[s+4],6,-145523070),a=d(a,r,i,o,n[s+11],10,-1120210379),o=d(o,a,r,i,n[s+2],15,718787259),i=d(i,o,a,r,n[s+9],21,-343485551),r=r+p>>>0,i=i+f>>>0,o=o+h>>>0,a=a+m>>>0}return y.endian([r,i,o,a])}var y=crypt.exports,$=charenc_1.utf8,v=isBuffer_1,x=charenc_1.bin;g._ff=function(e,t,n,r,i,o,a){e=e+(t&n|~t&r)+(i>>>0)+a;return(e<<o|e>>>32-o)+t},g._gg=function(e,t,n,r,i,o,a){e=e+(t&r|n&~r)+(i>>>0)+a;return(e<<o|e>>>32-o)+t},g._hh=function(e,t,n,r,i,o,a){e=e+(t^n^r)+(i>>>0)+a;return(e<<o|e>>>32-o)+t},g._ii=function(e,t,n,r,i,o,a){e=e+(n^(t|~r))+(i>>>0)+a;return(e<<o|e>>>32-o)+t},g._blocksize=16,g._digestsize=16,md5$1.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);e=y.wordsToBytes(g(e,t));return t&&t.asBytes?e:t&&t.asString?x.bytesToString(e):y.bytesToHex(e)}}();var md5=md5$1.exports,genericMessage="Invariant Violation",_a$1=Object.setPrototypeOf,setPrototypeOf$3=void 0===_a$1?function(e,t){return e.__proto__=t,e}:_a$1,InvariantError=function(t){function n(e){e=t.call(this,"number"==typeof(e=void 0===e?genericMessage:e)?genericMessage+": "+e+" (see https://github.com/apollographql/invariant-packages)":e)||this;return e.framesToPop=1,e.name=genericMessage,setPrototypeOf$3(e,n.prototype),e}return __extends(n,t),n}(Error);function invariant$7(e,t){if(!e)throw new InvariantError(t)}var verbosityLevels=["debug","log","warn","error","silent"],verbosityLevel=verbosityLevels.indexOf("log");function wrapConsoleMethod(e){return function(){if(verbosityLevels.indexOf(e)>=verbosityLevel)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=wrapConsoleMethod("debug"),e.log=wrapConsoleMethod("log"),e.warn=wrapConsoleMethod("warn"),e.error=wrapConsoleMethod("error")}(invariant$7=invariant$7||{});var version$2="3.8.1";function maybe$2(e){try{return e()}catch(e){}}var global$h=maybe$2(function(){return globalThis})||maybe$2(function(){return window})||maybe$2(function(){return self})||maybe$2(function(){return global})||maybe$2(function(){return maybe$2.constructor("return this")()}),prefixCounts=new Map;function makeUniqueId(e){var t=prefixCounts.get(e)||1;return prefixCounts.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function stringifyForDisplay(e,t){void 0===t&&(t=0);var n=makeUniqueId("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?n:t},t).split(JSON.stringify(n)).join("<undefined>")}function wrap$5(r){return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];r.apply(void 0,__spreadArray(["number"==typeof e?getErrorMsg(e):e],t,!1))}}var invariant$6=Object.assign(function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e||invariant$7(e,getErrorMsg(t,n))},{debug:wrap$5(invariant$7.debug),log:wrap$5(invariant$7.log),warn:wrap$5(invariant$7.warn),error:wrap$5(invariant$7.error)});function newInvariantError(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new InvariantError(getErrorMsg(e,t))}var ApolloErrorMessageHandler=Symbol.for("ApolloErrorMessageHandler_"+version$2);function getErrorMsg(e,t){if(void 0===t&&(t=[]),e)return t=t.map(function(e){return"string"==typeof e?e:stringifyForDisplay(e,2).slice(0,1e3)}),global$h[ApolloErrorMessageHandler]&&global$h[ApolloErrorMessageHandler](e,t)||"An error occured! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:version$2,message:e,args:t})))}function _typeof$C(e){return(_typeof$C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function isObjectLike$3(e){return"object"==_typeof$C(e)&&null!==e}var SYMBOL_TO_STRING_TAG="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function getLocation(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}function printLocation(e){return printSourceLocation(e.source,getLocation(e.source,e.start))}function printSourceLocation(e,t){var n=e.locationOffset.column-1,r=whitespace$2(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,o=t.line+o,n=1===t.line?n:0,t=t.column+n,n="".concat(e.name,":").concat(o,":").concat(t,"\n"),e=r.split(/\r\n|[\n\r]/g),a=e[i];if(120<a.length){for(var r=Math.floor(t/80),s=t%80,l=[],c=0;c<a.length;c+=80)l.push(a.slice(c,c+80));return n+printPrefixedLines([["".concat(o),l[0]]].concat(l.slice(1,r+1).map(function(e){return["",e]}),[[" ",whitespace$2(s-1)+"^"],["",l[r+1]]]))}return n+printPrefixedLines([["".concat(o-1),e[i-1]],["".concat(o),a],["",whitespace$2(t-1)+"^"],["".concat(o+1),e[1+i]]])}function printPrefixedLines(e){var e=e.filter(function(e){return e[0],void 0!==e[1]}),n=Math.max.apply(Math,e.map(function(e){return e[0].length}));return e.map(function(e){var t=e[0],e=e[1];return leftPad(n,t)+(e?" | "+e:" |")}).join("\n")}function whitespace$2(e){return Array(e+1).join(" ")}function leftPad(e,t){return whitespace$2(e-t.length)+t}function _typeof$B(e){return(_typeof$B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys$3(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys$3(Object(n),!0).forEach(function(e){_defineProperty$w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys$3(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty$w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _classCallCheck$x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$C(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,r.key,r)}}function _createClass$C(e,t,n){return t&&_defineProperties$C(e.prototype,t),n&&_defineProperties$C(e,n),e}function _inherits$w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf$z(e,t)}function _createSuper$w(n){var r=_isNativeReflectConstruct$z();return function(){var e,t=_getPrototypeOf$z(n);return _possibleConstructorReturn$w(this,r?(e=_getPrototypeOf$z(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function _possibleConstructorReturn$w(e,t){return!t||"object"!==_typeof$B(t)&&"function"!=typeof t?_assertThisInitialized$w(e):t}function _assertThisInitialized$w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _wrapNativeSuper$3(e){var n="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper$3=function(e){if(null===e||!_isNativeFunction$3(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return _construct$3(e,arguments,_getPrototypeOf$z(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$z(t,e)})(e)}function _construct$3(e,t,n){return(_construct$3=_isNativeReflectConstruct$z()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);t=new(Function.bind.apply(e,r));return n&&_setPrototypeOf$z(t,n.prototype),t}).apply(null,arguments)}function _isNativeReflectConstruct$z(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function _isNativeFunction$3(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _setPrototypeOf$z(e,t){return(_setPrototypeOf$z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _getPrototypeOf$z(e){return(_getPrototypeOf$z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var GraphQLError=function(){_inherits$w(p,_wrapNativeSuper$3(Error));var d=_createSuper$w(p);function p(e,t,n,r,i,o,a){_classCallCheck$x(this,p),(e=d.call(this,e)).name="GraphQLError",e.originalError=null!=o?o:void 0,e.nodes=undefinedIfEmpty(Array.isArray(t)?t:t?[t]:void 0);for(var s=[],l=0,c=null!=(t=e.nodes)?t:[];l<c.length;l++){var u=c[l].loc;null!=u&&s.push(u)}s=undefinedIfEmpty(s),e.source=null!=n?n:null==(t=s)?void 0:t[0].source,e.positions=null!=r?r:null==(t=s)?void 0:t.map(function(e){return e.start}),e.locations=r&&n?r.map(function(e){return getLocation(n,e)}):null==(t=s)?void 0:t.map(function(e){return getLocation(e.source,e.start)}),e.path=null!=i?i:void 0;r=null==o?void 0:o.extensions;return null==a&&isObjectLike$3(r)?e.extensions=_objectSpread({},r):e.extensions=null!=a?a:{},Object.defineProperties(_assertThisInitialized$w(e),{message:{enumerable:!0},locations:{enumerable:null!=e.locations},path:{enumerable:null!=e.path},extensions:{enumerable:null!=e.extensions&&0<Object.keys(e.extensions).length},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=o&&o.stack?(Object.defineProperty(_assertThisInitialized$w(e),"stack",{value:o.stack,writable:!0,configurable:!0}),_possibleConstructorReturn$w(e)):(Error.captureStackTrace?Error.captureStackTrace(_assertThisInitialized$w(e),p):Object.defineProperty(_assertThisInitialized$w(e),"stack",{value:Error().stack,writable:!0,configurable:!0}),e)}return _createClass$C(p,[{key:"toString",value:function(){return printError(this)}},{key:SYMBOL_TO_STRING_TAG,get:function(){return"Object"}}]),p}();function undefinedIfEmpty(e){return void 0===e||0===e.length?void 0:e}function printError(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+printLocation(i.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var s=a[o];t+="\n\n"+printSourceLocation(e.source,s)}return t}function syntaxError(e,t,n){return new GraphQLError("Syntax Error: ".concat(n),void 0,e,[t])}var Kind$1=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function invariant$5(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}var nodejsCustomInspectSymbol$2="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0,nodejsCustomInspectSymbol$3=nodejsCustomInspectSymbol$2;function defineInspect$2(e){var t=e.prototype.toJSON;"function"!=typeof t&&invariant$5(0),e.prototype.inspect=t,nodejsCustomInspectSymbol$3&&(e.prototype[nodejsCustomInspectSymbol$3]=t)}var Location$2=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}(),Token$1=(defineInspect$2(Location$2),function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}());function isNode$1(e){return null!=e&&"string"==typeof e.kind}defineInspect$2(Token$1);var TokenKind=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function _typeof$A(e){return(_typeof$A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var MAX_ARRAY_LENGTH$2=10,MAX_RECURSIVE_DEPTH$1=2;function inspect$2(e){return formatValue$1(e,[])}function formatValue$1(e,t){switch(_typeof$A(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":formatObjectValue$1(e,t);default:return String(e)}}function formatObjectValue$1(e,t){if(-1!==t.indexOf(e))return"[Circular]";var t=[].concat(t,[e]),n=getCustomFn$1(e);if(void 0!==n){n=n.call(e);if(n!==e)return"string"==typeof n?n:formatValue$1(n,t)}else if(Array.isArray(e))return formatArray$1(e,t);return formatObject$1(e,t)}function formatObject$1(t,n){var e=Object.keys(t);return 0===e.length?"{}":n.length>MAX_RECURSIVE_DEPTH$1?"["+getObjectTag$1(t)+"]":"{ "+e.map(function(e){return e+": "+formatValue$1(t[e],n)}).join(", ")+" }"}function formatArray$1(e,t){if(0===e.length)return"[]";if(t.length>MAX_RECURSIVE_DEPTH$1)return"[Array]";for(var n=Math.min(MAX_ARRAY_LENGTH$2,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(formatValue$1(e[o],t));return 1==r?i.push("... 1 more item"):1<r&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}function getCustomFn$1(e){var t=e[String(nodejsCustomInspectSymbol$3)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}function getObjectTag$1(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){e=e.constructor.name;if("string"==typeof e&&""!==e)return e}return t}function devAssert(e,t){if(!Boolean(e))throw new Error(t)}var instanceOf=function(e,t){return e instanceof t};function _defineProperties$B(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,r.key,r)}}function _createClass$B(e,t,n){return t&&_defineProperties$B(e.prototype,t),n&&_defineProperties$B(e,n),e}var Source$1=function(){function e(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"!=typeof e&&devAssert(0,"Body must be a string. Received: ".concat(inspect$2(e),".")),this.body=e,this.name=t,this.locationOffset=n,0<this.locationOffset.line||devAssert(0,"line in locationOffset is 1-indexed and must be positive."),0<this.locationOffset.column||devAssert(0,"column in locationOffset is 1-indexed and must be positive.")}return _createClass$B(e,[{key:SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}]),e}();function isSource(e){return instanceOf(e,Source$1)}var DirectiveLocation=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function dedentBlockStringValue$1(e){var t=e.split(/\r\n|[\n\r]/g),n=getBlockStringIndentation$1(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var i=0;i<t.length&&isBlank$1(t[i]);)++i;for(var o=t.length;i<o&&isBlank$1(t[o-1]);)--o;return t.slice(i,o).join("\n")}function isBlank$1(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function getBlockStringIndentation$1(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:r=!(n=!1),i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!=(t=o)?t:0}function printBlockString$1(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],o=!r||o||a||n,a="";return!o||r&&i||(a+="\n"+t),a+=t?e.replace(/\n/g,"\n"+t):e,o&&(a+="\n"),'"""'+a.replace(/"""/g,'\\"""')+'"""'}var Lexer=function(){function e(e){var t=new Token$1(TokenKind.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){if((t=this.token).kind!==TokenKind.EOF)do{var e,t=null!=(e=t.next)?e:t.next=readToken(this,t)}while(t.kind===TokenKind.COMMENT);return t},e}();function isPunctuatorTokenKind(e){return e===TokenKind.BANG||e===TokenKind.DOLLAR||e===TokenKind.AMP||e===TokenKind.PAREN_L||e===TokenKind.PAREN_R||e===TokenKind.SPREAD||e===TokenKind.COLON||e===TokenKind.EQUALS||e===TokenKind.AT||e===TokenKind.BRACKET_L||e===TokenKind.BRACKET_R||e===TokenKind.BRACE_L||e===TokenKind.PIPE||e===TokenKind.BRACE_R}function printCharCode(e){return isNaN(e)?TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function readToken(e,t){for(var n=e.source,r=n.body,i=r.length,o=t.end;o<i;){var a=r.charCodeAt(o),s=e.line,l=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new Token$1(TokenKind.BANG,o,o+1,s,l,t);case 35:return readComment(n,o,s,l,t);case 36:return new Token$1(TokenKind.DOLLAR,o,o+1,s,l,t);case 38:return new Token$1(TokenKind.AMP,o,o+1,s,l,t);case 40:return new Token$1(TokenKind.PAREN_L,o,o+1,s,l,t);case 41:return new Token$1(TokenKind.PAREN_R,o,o+1,s,l,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new Token$1(TokenKind.SPREAD,o,o+3,s,l,t);break;case 58:return new Token$1(TokenKind.COLON,o,o+1,s,l,t);case 61:return new Token$1(TokenKind.EQUALS,o,o+1,s,l,t);case 64:return new Token$1(TokenKind.AT,o,o+1,s,l,t);case 91:return new Token$1(TokenKind.BRACKET_L,o,o+1,s,l,t);case 93:return new Token$1(TokenKind.BRACKET_R,o,o+1,s,l,t);case 123:return new Token$1(TokenKind.BRACE_L,o,o+1,s,l,t);case 124:return new Token$1(TokenKind.PIPE,o,o+1,s,l,t);case 125:return new Token$1(TokenKind.BRACE_R,o,o+1,s,l,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?readBlockString(n,o,s,l,t,e):readString(n,o,s,l,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return readNumber(n,o,a,s,l,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return readName(n,o,s,l,t)}throw syntaxError(n,o,unexpectedCharacterMessage(a))}var c=e.line,u=1+o-e.lineStart;return new Token$1(TokenKind.EOF,i,i,c,u,t)}function unexpectedCharacterMessage(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(printCharCode(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(printCharCode(e),".")}function readComment(e,t,n,r,i){for(var o,a=e.body,s=t;o=a.charCodeAt(++s),!isNaN(o)&&(31<o||9===o););return new Token$1(TokenKind.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function readNumber(e,t,n,r,i,o){var a=e.body,s=t,l=!1;if(48===(n=45===n?a.charCodeAt(++s):n)){if(48<=(n=a.charCodeAt(++s))&&n<=57)throw syntaxError(e,s,"Invalid number, unexpected digit after 0: ".concat(printCharCode(n),"."))}else s=readDigits(e,s,n),n=a.charCodeAt(s);if(46===n&&(l=!0,n=a.charCodeAt(++s),s=readDigits(e,s,n),n=a.charCodeAt(s)),69!==n&&101!==n||(l=!0,43!==(n=a.charCodeAt(++s))&&45!==n||(n=a.charCodeAt(++s)),s=readDigits(e,s,n),n=a.charCodeAt(s)),46===n||isNameStart(n))throw syntaxError(e,s,"Invalid number, expected digit but got: ".concat(printCharCode(n),"."));return new Token$1(l?TokenKind.FLOAT:TokenKind.INT,t,s,r,i,o,a.slice(t,s))}function readDigits(e,t,n){var r=e.body,i=t,o=n;if(48<=o&&o<=57){for(;48<=(o=r.charCodeAt(++i))&&o<=57;);return i}throw syntaxError(e,i,"Invalid number, expected digit but got: ".concat(printCharCode(o),"."))}function readString(e,t,n,r,i){for(var o=e.body,a=t+1,s=a,l=0,c="";a<o.length&&!isNaN(l=o.charCodeAt(a))&&10!==l&&13!==l;){if(34===l)return c+=o.slice(s,a),new Token$1(TokenKind.STRING,t,a+1,n,r,i,c);if(l<32&&9!==l)throw syntaxError(e,a,"Invalid character within String: ".concat(printCharCode(l),"."));if(++a,92===l){switch(c+=o.slice(s,a-1),l=o.charCodeAt(a)){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+="\n";break;case 114:c+="\r";break;case 116:c+="\t";break;case 117:var u,d=uniCharCode(o.charCodeAt(a+1),o.charCodeAt(a+2),o.charCodeAt(a+3),o.charCodeAt(a+4));if(d<0)throw u=o.slice(a+1,a+5),syntaxError(e,a,"Invalid character escape sequence: \\u".concat(u,"."));c+=String.fromCharCode(d),a+=4;break;default:throw syntaxError(e,a,"Invalid character escape sequence: \\".concat(String.fromCharCode(l),"."))}s=++a}}throw syntaxError(e,a,"Unterminated string.")}function readBlockString(e,t,n,r,i,o){for(var a=e.body,s=t+3,l=s,c=0,u="";s<a.length&&!isNaN(c=a.charCodeAt(s));){if(34===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return u+=a.slice(l,s),new Token$1(TokenKind.BLOCK_STRING,t,s+3,n,r,i,dedentBlockStringValue$1(u));if(c<32&&9!==c&&10!==c&&13!==c)throw syntaxError(e,s,"Invalid character within String: ".concat(printCharCode(c),"."));10===c?(++s,++o.line,o.lineStart=s):13===c?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(u+=a.slice(l,s)+'"""',l=s+=4):++s}throw syntaxError(e,s,"Unterminated string.")}function uniCharCode(e,t,n,r){return char2hex(e)<<12|char2hex(t)<<8|char2hex(n)<<4|char2hex(r)}function char2hex(e){return 48<=e&&e<=57?e-48:65<=e&&e<=70?e-55:97<=e&&e<=102?e-87:-1}function readName(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,l=0;s!==a&&!isNaN(l=o.charCodeAt(s))&&(95===l||48<=l&&l<=57||65<=l&&l<=90||97<=l&&l<=122);)++s;return new Token$1(TokenKind.NAME,t,s,n,r,i,o.slice(t,s))}function isNameStart(e){return 95===e||65<=e&&e<=90||97<=e&&e<=122}function parse$8(e,t){return new Parser$1(e,t).parseDocument()}var Parser$1=function(){function e(e,t){e=isSource(e)?e:new Source$1(e);this._lexer=new Lexer(e),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(TokenKind.NAME);return{kind:Kind$1.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:Kind$1.DOCUMENT,definitions:this.many(TokenKind.SOF,this.parseDefinition,TokenKind.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e,t,n=this._lexer.token;return this.peek(TokenKind.BRACE_L)?{kind:Kind$1.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)}:(e=this.parseOperationType(),this.peek(TokenKind.NAME)&&(t=this.parseName()),{kind:Kind$1.OPERATION_DEFINITION,operation:e,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)})},t.parseOperationType=function(){var e=this.expectToken(TokenKind.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(TokenKind.PAREN_L,this.parseVariableDefinition,TokenKind.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:Kind$1.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(TokenKind.DOLLAR),{kind:Kind$1.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:Kind$1.SELECTION_SET,selections:this.many(TokenKind.BRACE_L,this.parseSelection,TokenKind.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(TokenKind.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t=this._lexer.token,n=this.parseName(),n=this.expectOptionalToken(TokenKind.COLON)?(e=n,this.parseName()):n;return{kind:Kind$1.FIELD,alias:e,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(t)}},t.parseArguments=function(e){e=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(TokenKind.PAREN_L,e,TokenKind.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(TokenKind.COLON),{kind:Kind$1.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:Kind$1.ARGUMENT,name:this.parseName(),value:(this.expectToken(TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token,t=(this.expectToken(TokenKind.SPREAD),this.expectOptionalKeyword("on"));return!t&&this.peek(TokenKind.NAME)?{kind:Kind$1.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:Kind$1.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null==(e=this._options)?void 0:e.experimentalFragmentVariables)?{kind:Kind$1.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:Kind$1.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case TokenKind.BRACKET_L:return this.parseList(e);case TokenKind.BRACE_L:return this.parseObject(e);case TokenKind.INT:return this._lexer.advance(),{kind:Kind$1.INT,value:t.value,loc:this.loc(t)};case TokenKind.FLOAT:return this._lexer.advance(),{kind:Kind$1.FLOAT,value:t.value,loc:this.loc(t)};case TokenKind.STRING:case TokenKind.BLOCK_STRING:return this.parseStringLiteral();case TokenKind.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:Kind$1.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:Kind$1.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:Kind$1.NULL,loc:this.loc(t)};default:return{kind:Kind$1.ENUM,value:t.value,loc:this.loc(t)}}case TokenKind.DOLLAR:if(e)break;return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:Kind$1.STRING,value:e.value,block:e.kind===TokenKind.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:Kind$1.LIST,values:this.any(TokenKind.BRACKET_L,function(){return t.parseValueLiteral(e)},TokenKind.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:Kind$1.OBJECT,fields:this.any(TokenKind.BRACE_L,function(){return t.parseObjectField(e)},TokenKind.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(TokenKind.COLON),{kind:Kind$1.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(TokenKind.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(TokenKind.AT),{kind:Kind$1.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e=this._lexer.token,t=this.expectOptionalToken(TokenKind.BRACKET_L)?(t=this.parseTypeReference(),this.expectToken(TokenKind.BRACKET_R),{kind:Kind$1.LIST_TYPE,type:t,loc:this.loc(e)}):this.parseNamedType();return this.expectOptionalToken(TokenKind.BANG)?{kind:Kind$1.NON_NULL_TYPE,type:t,loc:this.loc(e)}:t},t.parseNamedType=function(){var e=this._lexer.token;return{kind:Kind$1.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(TokenKind.STRING)||this.peek(TokenKind.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=(this.expectKeyword("schema"),this.parseDirectives(!0)),r=this.many(TokenKind.BRACE_L,this.parseOperationTypeDefinition,TokenKind.BRACE_R);return{kind:Kind$1.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType(),n=(this.expectToken(TokenKind.COLON),this.parseNamedType());return{kind:Kind$1.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=(this.expectKeyword("scalar"),this.parseName()),r=this.parseDirectives(!0);return{kind:Kind$1.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=(this.expectKeyword("type"),this.parseName()),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:Kind$1.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0!==(null==(e=this._options)?void 0:e.allowLegacySDLImplementsInterfaces))return this.delimitedMany(TokenKind.AMP,this.parseNamedType);var t=[];for(this.expectOptionalToken(TokenKind.AMP);t.push(this.parseNamedType()),this.expectOptionalToken(TokenKind.AMP)||this.peek(TokenKind.NAME););return t},t.parseFieldsDefinition=function(){var e;return!0===(null==(e=this._options)?void 0:e.allowLegacySDLEmptyFields)&&this.peek(TokenKind.BRACE_L)&&this._lexer.lookahead().kind===TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(TokenKind.BRACE_L,this.parseFieldDefinition,TokenKind.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs(),i=(this.expectToken(TokenKind.COLON),this.parseTypeReference()),o=this.parseDirectives(!0);return{kind:Kind$1.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(TokenKind.PAREN_L,this.parseInputValueDef,TokenKind.PAREN_R)},t.parseInputValueDef=function(){var e,t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=(this.expectToken(TokenKind.COLON),this.parseTypeReference()),o=(this.expectOptionalToken(TokenKind.EQUALS)&&(e=this.parseValueLiteral(!0)),this.parseDirectives(!0));return{kind:Kind$1.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:e,directives:o,loc:this.loc(t)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=(this.expectKeyword("interface"),this.parseName()),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:Kind$1.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=(this.expectKeyword("union"),this.parseName()),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:Kind$1.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(TokenKind.EQUALS)?this.delimitedMany(TokenKind.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=(this.expectKeyword("enum"),this.parseName()),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:Kind$1.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(TokenKind.BRACE_L,this.parseEnumValueDefinition,TokenKind.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:Kind$1.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=(this.expectKeyword("input"),this.parseName()),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:Kind$1.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(TokenKind.BRACE_L,this.parseInputValueDef,TokenKind.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token,t=(this.expectKeyword("extend"),this.expectKeyword("schema"),this.parseDirectives(!0)),n=this.optionalMany(TokenKind.BRACE_L,this.parseOperationTypeDefinition,TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:Kind$1.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token,t=(this.expectKeyword("extend"),this.expectKeyword("scalar"),this.parseName()),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:Kind$1.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token,t=(this.expectKeyword("extend"),this.expectKeyword("type"),this.parseName()),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:Kind$1.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token,t=(this.expectKeyword("extend"),this.expectKeyword("interface"),this.parseName()),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:Kind$1.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token,t=(this.expectKeyword("extend"),this.expectKeyword("union"),this.parseName()),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:Kind$1.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token,t=(this.expectKeyword("extend"),this.expectKeyword("enum"),this.parseName()),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:Kind$1.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token,t=(this.expectKeyword("extend"),this.expectKeyword("input"),this.parseName()),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:Kind$1.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=(this.expectKeyword("directive"),this.expectToken(TokenKind.AT),this.parseName()),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable"),o=(this.expectKeyword("on"),this.parseDirectiveLocations());return{kind:Kind$1.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(TokenKind.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==DirectiveLocation[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null==(t=this._options)?void 0:t.noLocation))return new Location$2(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw syntaxError(this._lexer.source,t.start,"Expected ".concat(getTokenKindDesc(e),", found ").concat(getTokenDesc(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==TokenKind.NAME||t.value!==e)throw syntaxError(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(getTokenDesc(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===TokenKind.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){e=null!=e?e:this._lexer.token;return syntaxError(this._lexer.source,e.start,"Unexpected ".concat(getTokenDesc(e),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){for(var r=[];r.push(t.call(this)),!this.expectOptionalToken(n););return r}return[]},t.many=function(e,t,n){this.expectToken(e);for(var r=[];r.push(t.call(this)),!this.expectOptionalToken(n););return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);for(var n=[];n.push(t.call(this)),this.expectOptionalToken(e););return n},e}();function getTokenDesc(e){var t=e.value;return getTokenKindDesc(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function getTokenKindDesc(e){return isPunctuatorTokenKind(e)?'"'.concat(e,'"'):e}var QueryDocumentKeys$1={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},BREAK$1=Object.freeze({});function visit$3(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:QueryDocumentKeys$1,r=void 0,i=Array.isArray(e),o=[e],a=-1,s=[],l=void 0,c=void 0,u=void 0,d=[],p=[],f=e;do{var h=++a===o.length,m=h&&0!==s.length;if(h){if(c=0===p.length?void 0:d[d.length-1],l=u,u=p.pop(),m){if(i)l=l.slice();else{for(var g={},y=0,$=Object.keys(l);y<$.length;y++){var v=$[y];g[v]=l[v]}l=g}for(var x=0,b=0;b<s.length;b++){var C=s[b][0],S=s[b][1];i&&(C-=x),i&&null===S?(l.splice(C,1),x++):l[C]=S}}a=r.index,o=r.keys,s=r.edits,i=r.inArray,r=r.prev}else{if(c=u?i?a:o[a]:void 0,null==(l=u?u[c]:f))continue;u&&d.push(c)}var w=void 0;if(!Array.isArray(l)){if(!isNode$1(l))throw new Error("Invalid AST Node: ".concat(inspect$2(l),"."));var _=getVisitFn$1(t,l.kind,h);if(_){if((w=_.call(t,l,c,u,d,p))===BREAK$1)break;if(!1===w){if(!h){d.pop();continue}}else if(void 0!==w&&(s.push([c,w]),!h)){if(!isNode$1(w)){d.pop();continue}l=w}}}void 0===w&&m&&s.push([c,l]),h?d.pop():(r={inArray:i,index:a,keys:o,edits:s,prev:r},o=(i=Array.isArray(l))?l:null!=(_=n[l.kind])?_:[],a=-1,s=[],u&&p.push(u),u=l)}while(void 0!==r);return f=0!==s.length?s[s.length-1][1]:f}function getVisitFn$1(e,t,n){var r,i=e[t];return i?n||"function"!=typeof i?"function"==typeof(r=n?i.leave:i.enter)?r:void 0:i:(r=n?e.leave:e.enter)?"function"==typeof r?r:"function"==typeof(i=r[t])?i:void 0:void 0}function print$2(e){return visit$3(e,{leave:printDocASTReducer$1})}var MAX_LINE_LENGTH$1=80,printDocASTReducer$1={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return join$5(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=wrap$4("(",join$5(e.variableDefinitions,", "),")"),i=join$5(e.directives," "),e=e.selectionSet;return n||i||r||"query"!==t?join$5([t,join$5([n,r]),i,e]," "):e},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,e=e.directives;return t+": "+n+wrap$4(" = ",r)+wrap$4(" ",join$5(e," "))},SelectionSet:function(e){return block$1(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,e=e.selectionSet,t=wrap$4("",t,": ")+n,n=t+wrap$4("(",join$5(r,", "),")");return n.length>MAX_LINE_LENGTH$1&&(n=t+wrap$4("(\n",indent$1(join$5(r,"\n")),"\n)")),join$5([n,join$5(i," "),e]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+wrap$4(" ",join$5(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,e=e.selectionSet;return join$5(["...",wrap$4("on ",t),join$5(n," "),e]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,e=e.selectionSet;return"fragment ".concat(t).concat(wrap$4("(",join$5(r,", "),")")," ")+"on ".concat(n," ").concat(wrap$4("",join$5(i," ")," "))+e},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?printBlockString$1(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+join$5(e.values,", ")+"]"},ObjectValue:function(e){return"{"+join$5(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+wrap$4("(",join$5(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:addDescription$1(function(e){var t=e.directives,e=e.operationTypes;return join$5(["schema",join$5(t," "),block$1(e)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:addDescription$1(function(e){return join$5(["scalar",e.name,join$5(e.directives," ")]," ")}),ObjectTypeDefinition:addDescription$1(function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join$5(["type",t,wrap$4("implements ",join$5(n," & ")),join$5(r," "),block$1(e)]," ")}),FieldDefinition:addDescription$1(function(e){var t=e.name,n=e.arguments,r=e.type,e=e.directives;return t+(hasMultilineItems$1(n)?wrap$4("(\n",indent$1(join$5(n,"\n")),"\n)"):wrap$4("(",join$5(n,", "),")"))+": "+r+wrap$4(" ",join$5(e," "))}),InputValueDefinition:addDescription$1(function(e){var t=e.name,n=e.type,r=e.defaultValue,e=e.directives;return join$5([t+": "+n,wrap$4("= ",r),join$5(e," ")]," ")}),InterfaceTypeDefinition:addDescription$1(function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join$5(["interface",t,wrap$4("implements ",join$5(n," & ")),join$5(r," "),block$1(e)]," ")}),UnionTypeDefinition:addDescription$1(function(e){var t=e.name,n=e.directives,e=e.types;return join$5(["union",t,join$5(n," "),e&&0!==e.length?"= "+join$5(e," | "):""]," ")}),EnumTypeDefinition:addDescription$1(function(e){var t=e.name,n=e.directives,e=e.values;return join$5(["enum",t,join$5(n," "),block$1(e)]," ")}),EnumValueDefinition:addDescription$1(function(e){return join$5([e.name,join$5(e.directives," ")]," ")}),InputObjectTypeDefinition:addDescription$1(function(e){var t=e.name,n=e.directives,e=e.fields;return join$5(["input",t,join$5(n," "),block$1(e)]," ")}),DirectiveDefinition:addDescription$1(function(e){var t=e.name,n=e.arguments,r=e.repeatable,e=e.locations;return"directive @"+t+(hasMultilineItems$1(n)?wrap$4("(\n",indent$1(join$5(n,"\n")),"\n)"):wrap$4("(",join$5(n,", "),")"))+(r?" repeatable":"")+" on "+join$5(e," | ")}),SchemaExtension:function(e){var t=e.directives,e=e.operationTypes;return join$5(["extend schema",join$5(t," "),block$1(e)]," ")},ScalarTypeExtension:function(e){return join$5(["extend scalar",e.name,join$5(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join$5(["extend type",t,wrap$4("implements ",join$5(n," & ")),join$5(r," "),block$1(e)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join$5(["extend interface",t,wrap$4("implements ",join$5(n," & ")),join$5(r," "),block$1(e)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,e=e.types;return join$5(["extend union",t,join$5(n," "),e&&0!==e.length?"= "+join$5(e," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,e=e.values;return join$5(["extend enum",t,join$5(n," "),block$1(e)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,e=e.fields;return join$5(["extend input",t,join$5(n," "),block$1(e)]," ")}};function addDescription$1(t){return function(e){return join$5([e.description,t(e)],"\n")}}function join$5(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return null!=(t=null==e?void 0:e.filter(function(e){return e}).join(t))?t:""}function block$1(e){return wrap$4("{\n",indent$1(join$5(e,"\n")),"\n}")}function wrap$4(e,t){return null!=t&&""!==t?e+t+(2<arguments.length&&void 0!==arguments[2]?arguments[2]:""):""}function indent$1(e){return wrap$4(" ",e.replace(/\n/g,"\n "))}function isMultiline$1(e){return-1!==e.indexOf("\n")}function hasMultilineItems$1(e){return null!=e&&e.some(isMultiline$1)}function isSelectionNode(e){return e.kind===Kind$1.FIELD||e.kind===Kind$1.FRAGMENT_SPREAD||e.kind===Kind$1.INLINE_FRAGMENT}function shouldInclude(e,r){e=e.directives;return!e||!e.length||getInclusionDirectives(e).every(function(e){var t=e.directive,e=e.ifArgument,n=!1;return"Variable"===e.value.kind?(n=r&&r[e.value.name.value],invariant$6(void 0!==n,64,t.name.value)):n=e.value.value,"skip"===t.name.value?!n:n})}function hasDirectives(e,t,n){var r=new Set(e),e=r.size;return visit$3(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return BREAK$1}}),n?!r.size:r.size<e}function hasClientExports(e){return e&&hasDirectives(["client","export"],e,!0)}function isInclusionDirective(e){e=e.name.value;return"skip"===e||"include"===e}function getInclusionDirectives(e){var i=[];return e&&e.length&&e.forEach(function(e){var t,n,r;isInclusionDirective(e)&&(n=e.arguments,t=e.name.value,invariant$6(n&&1===n.length,65,t),n=n[0],invariant$6(n.name&&"if"===n.name.value,66,t),r=n.value,invariant$6(r&&("Variable"===r.kind||"BooleanValue"===r.kind),67,t),i.push({directive:e,ifArgument:n}))}),i}const defaultMakeData=()=>Object.create(null),{forEach,slice:slice$4}=Array.prototype,hasOwnProperty$e=Object.prototype["hasOwnProperty"];class Trie{constructor(e=!0,t=defaultMakeData){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return forEach.call(e,e=>t=t.getChildTrie(e)),hasOwnProperty$e.call(t,"data")?t.data:t.data=this.makeData(slice$4.call(e))}peek(...e){return this.peekArray(e)}peekArray(n){let r=this;for(let e=0,t=n.length;r&&e<t;++e){var i=this.weakness&&isObjRef(n[e])?r.weak:r.strong;r=i&&i.get(n[e])}return r&&r.data}getChildTrie(e){var t=this.weakness&&isObjRef(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);let n=t.get(e);return n||t.set(e,n=new Trie(this.weakness,this.makeData)),n}}function isObjRef(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}var canUseWeakMap="function"==typeof WeakMap&&"ReactNative"!==maybe$2(function(){return navigator.product}),canUseWeakSet="function"==typeof WeakSet,canUseSymbol="function"==typeof Symbol&&"function"==typeof Symbol.for,canUseAsyncIteratorSymbol=canUseSymbol&&Symbol.asyncIterator;function isNonNullObject(e){return null!==e&&"object"==typeof e}function getFragmentQueryDocument(e,t){var n=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw newInvariantError(68,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&n.push(e)}),void 0===t&&(invariant$6(1===n.length,69,n.length),t=n[0].name.value),__assign$2(__assign$2({},e),{definitions:__spreadArray([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:t}}]}}],e.definitions,!0)})}function createFragmentMap(e){var t={};return(e=void 0===e?[]:e).forEach(function(e){t[e.name.value]=e}),t}function getFragmentFromSelection(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n,r=e.name.value;return"function"==typeof t?t(r):(n=t&&t[r],invariant$6(n,70,r),n||null);default:return null}}function makeReference(e){return{__ref:String(e)}}function isReference(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function isDocumentNode(e){return isNonNullObject(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function isStringValue(e){return"StringValue"===e.kind}function isBooleanValue(e){return"BooleanValue"===e.kind}function isIntValue(e){return"IntValue"===e.kind}function isFloatValue(e){return"FloatValue"===e.kind}function isVariable(e){return"Variable"===e.kind}function isObjectValue(e){return"ObjectValue"===e.kind}function isListValue(e){return"ListValue"===e.kind}function isEnumValue(e){return"EnumValue"===e.kind}function isNullValue(e){return"NullValue"===e.kind}function valueToObjectRepresentation(e,n,t,r){if(isIntValue(t)||isFloatValue(t))e[n.value]=Number(t.value);else if(isBooleanValue(t)||isStringValue(t))e[n.value]=t.value;else if(isObjectValue(t)){var i={};t.fields.map(function(e){return valueToObjectRepresentation(i,e.name,e.value,r)}),e[n.value]=i}else if(isVariable(t)){var o=(r||{})[t.name.value];e[n.value]=o}else if(isListValue(t))e[n.value]=t.values.map(function(e){var t={};return valueToObjectRepresentation(t,n,e,r),t[n.value]});else if(isEnumValue(t))e[n.value]=t.value;else{if(!isNullValue(t))throw newInvariantError(79,n.value,t.kind);e[n.value]=null}}function storeKeyNameFromField(e,r){var i=null,n=(e.directives&&(i={},e.directives.forEach(function(n){i[n.name.value]={},n.arguments&&n.arguments.forEach(function(e){var t=e.name,e=e.value;return valueToObjectRepresentation(i[n.name.value],t,e,r)})})),null);return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var t=e.name,e=e.value;return valueToObjectRepresentation(n,t,e,r)})),getStoreKeyName(e.name.value,n,i)}maybe$2(function(){return window.document.createElement}),maybe$2(function(){return 0<=navigator.userAgent.indexOf("jsdom")});var KNOWN_DIRECTIVES=["connection","include","skip","client","rest","export","nonreactive"],getStoreKeyName=Object.assign(function(e,t,n){var r,i,o;return t&&n&&n.connection&&n.connection.key?n.connection.filter&&0<n.connection.filter.length?((o=n.connection.filter||[]).sort(),r={},o.forEach(function(e){r[e]=t[e]}),"".concat(n.connection.key,"(").concat(stringify$6(r),")")):n.connection.key:(i=e,t&&(o=stringify$6(t),i+="(".concat(o,")")),n&&Object.keys(n).forEach(function(e){-1===KNOWN_DIRECTIVES.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?i+="@".concat(e,"(").concat(stringify$6(n[e]),")"):i+="@".concat(e))}),i)},{setStringify:function(e){var t=stringify$6;return stringify$6=e,t}}),stringify$6=function(e){return JSON.stringify(e,stringifyReplacer)};function stringifyReplacer(e,n){return n=isNonNullObject(n)&&!Array.isArray(n)?Object.keys(n).sort().reduce(function(e,t){return e[t]=n[t],e},{}):n}function argumentsObjectFromField(e,n){var r;return e.arguments&&e.arguments.length?(r={},e.arguments.forEach(function(e){var t=e.name,e=e.value;return valueToObjectRepresentation(r,t,e,n)}),r):null}function resultKeyNameFromField(e){return(e.alias||e.name).value}function getTypenameFromResult(e,t,n){for(var r,i=0,o=t.selections;i<o.length;i++)if(isField(l=o[i])){if("__typename"===l.name.value)return e[resultKeyNameFromField(l)]}else r?r.push(l):r=[l];if("string"==typeof e.__typename)return e.__typename;if(r)for(var a=0,s=r;a<s.length;a++){var l,c=getTypenameFromResult(e,getFragmentFromSelection(l=s[a],n).selectionSet,n);if("string"==typeof c)return c}}function isField(e){return"Field"===e.kind}function isInlineFragment(e){return"InlineFragment"===e.kind}function checkDocument(e){invariant$6(e&&"Document"===e.kind,71);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw newInvariantError(72,e.kind);return e});return invariant$6(t.length<=1,73,t.length),e}function getOperationDefinition(e){return checkDocument(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function getOperationName(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function getFragmentDefinitions(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function getQueryDefinition(e){e=getOperationDefinition(e);return invariant$6(e&&"query"===e.operation,74),e}function getFragmentDefinition(e){invariant$6("Document"===e.kind,75),invariant$6(e.definitions.length<=1,76);e=e.definitions[0];return invariant$6("FragmentDefinition"===e.kind,77),e}function getMainDefinition(e){var t;checkDocument(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"===i.kind&&(t=t||i)}if(t)return t;throw newInvariantError(78)}function getDefaultValues(e){var t=Object.create(null),e=e&&e.variableDefinitions;return e&&e.length&&e.forEach(function(e){e.defaultValue&&valueToObjectRepresentation(t,e.variable.name,e.defaultValue)}),t}function identity$3(e){return e}var DocumentTransform=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=new(canUseWeakSet?WeakSet:Set),this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),!1!==t.cache&&(this.stableCacheKeys=new Trie(canUseWeakMap,function(e){return{key:e}}))}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(identity$3,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),new e(function(e){return(t(e)?n:r).transformDocument(e)},{cache:!1})},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.getStableCacheEntry(e);if(t&&t.value)return t.value;checkDocument(e);e=this.transform(e);return this.resultCache.add(e),t&&(t.value=e),e},e.prototype.concat=function(t){var n=this;return new e(function(e){return t.transformDocument(n.transformDocument(e))},{cache:!1})},e.prototype.getStableCacheEntry=function(e){return this.stableCacheKeys&&(e=this.getCacheKey(e))?(invariant$6(Array.isArray(e),63),this.stableCacheKeys.lookupArray(e)):void 0},e}(),printCache=canUseWeakMap?new WeakMap:void 0,print$1=function(e){var t=null==printCache?void 0:printCache.get(e);return t||(t=print$2(e),null!=printCache&&printCache.set(e,t)),t},isArray$9=Array.isArray;function isNonEmptyArray(e){return Array.isArray(e)&&0<e.length}var TYPENAME_FIELD={kind:Kind$1.FIELD,name:{kind:Kind$1.NAME,value:"__typename"}};function isEmpty$1(e,t){return!e||e.selectionSet.selections.every(function(e){return e.kind===Kind$1.FRAGMENT_SPREAD&&isEmpty$1(t[e.name.value],t)})}function nullIfDocIsEmpty(e){return isEmpty$1(getOperationDefinition(e)||getFragmentDefinition(e),createFragmentMap(getFragmentDefinitions(e)))?null:e}function getDirectiveMatcher(e){var t=new Map,i=new Map;return e.forEach(function(e){e&&(e.name?t.set(e.name,e):e.test&&i.set(e.test,e))}),function(n){var r=t.get(n.name.value);return!r&&i.size&&i.forEach(function(e,t){t(n)&&(r=e)}),r}}function makeInUseGetterFunction(n){var r=new Map;return function(e){var t=r.get(e=void 0===e?n:e);return t||r.set(e,t={variables:new Set,fragmentSpreads:new Set}),t}}function removeDirectivesFromDocument(e,t){checkDocument(t);function o(e){for(var t=0,n=void 0;t<e.length&&(n=e[t]);++t)if(!isArray$9(n)){if(n.kind===Kind$1.OPERATION_DEFINITION)return r(n.name&&n.name.value);if(n.kind===Kind$1.FRAGMENT_DEFINITION)return i(n.name.value)}return!1!==globalThis.__DEV__&&invariant$6.error(80),null}for(var r=makeInUseGetterFunction(""),i=makeInUseGetterFunction(""),a=0,n=t.definitions.length-1;0<=n;--n)t.definitions[n].kind===Kind$1.OPERATION_DEFINITION&&++a;function s(e){return isNonEmptyArray(e)&&e.map(u).some(function(e){return e&&e.remove})}var l,c,u=getDirectiveMatcher(e),d=new Map,p=!1,e={enter:function(e){if(s(e.directives))return p=!0,null}},e=visit$3(t,{Field:e,InlineFragment:e,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,i){i=o(i);i&&i.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,i){if(s(e.directives))return p=!0,null;i=o(i);i&&i.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){d.set(JSON.stringify(r),e)},leave:function(e,t,n,r){return e===d.get(JSON.stringify(r))?e:0<a&&e.selectionSet.selections.every(function(e){return e.kind===Kind$1.FIELD&&"__typename"===e.name.value})?(i(e.name.value).removed=!0,p=!0,null):void 0}},Directive:{leave:function(e){if(u(e))return p=!0,null}}});return p?(l=function(t){return t.transitiveVars||(t.transitiveVars=new Set(t.variables),t.removed)||t.fragmentSpreads.forEach(function(e){l(i(e)).transitiveVars.forEach(function(e){t.transitiveVars.add(e)})}),t},c=new Set,e.definitions.forEach(function(e){e.kind===Kind$1.OPERATION_DEFINITION?l(r(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){c.add(e)}):e.kind!==Kind$1.FRAGMENT_DEFINITION||0!==a||i(e.name.value).removed||c.add(e.name.value)}),c.forEach(function(e){l(i(e)).fragmentSpreads.forEach(function(e){c.add(e)})}),nullIfDocIsEmpty(visit$3(e,{FragmentSpread:e={enter:function(e){if(e=e.name.value,!(c.has(e)&&!i(e).removed))return null}},FragmentDefinition:e,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=l(r(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return __assign$2(__assign$2({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))):t}var addTypenameToDocument=Object.assign(function(e){return visit$3(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==Kind$1.OPERATION_DEFINITION){var r=e.selections;if(r){var i=r.some(function(e){return isField(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))});if(!i){i=n;if(!(isField(i)&&i.directives&&i.directives.some(function(e){return"export"===e.name.value})))return __assign$2(__assign$2({},e),{selections:__spreadArray(__spreadArray([],r,!0),[TYPENAME_FIELD],!1)})}}}}}})},{added:function(e){return e===TYPENAME_FIELD}});function buildQueryFromSelectionSet(e){return"query"===getMainDefinition(e).operation?e:visit$3(e,{OperationDefinition:{enter:function(e){return __assign$2(__assign$2({},e),{operation:"query"})}}})}function removeClientSetsFromDocument(e){return checkDocument(e),removeDirectivesFromDocument([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var hasOwnProperty$d=Object.prototype.hasOwnProperty;function mergeDeep(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mergeDeepArray(e)}function mergeDeepArray(e){var t=e[0]||{},n=e.length;if(1<n)for(var r=new DeepMerger,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var defaultReconciler=function(e,t,n){return this.merge(e[n],t[n])},DeepMerger=function(){function e(e){this.reconciler=e=void 0===e?defaultReconciler:e,this.isObject=isNonNullObject,this.pastCopies=new Set}return e.prototype.merge=function(r,i){for(var o=this,a=[],e=2;e<arguments.length;e++)a[e-2]=arguments[e];return isNonNullObject(i)&&isNonNullObject(r)?(Object.keys(i).forEach(function(e){var t,n;hasOwnProperty$d.call(r,e)?(t=r[e],i[e]!==t&&(n=o.reconciler.apply(o,__spreadArray([r,i,e],a,!1)))!==t&&((r=o.shallowCopyForMerge(r))[e]=n)):(r=o.shallowCopyForMerge(r))[e]=i[e]}),r):i},e.prototype.shallowCopyForMerge=function(e){return isNonNullObject(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):__assign$2({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function _createForOfIteratorHelperLoose$3(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_unsupportedIterableToArray$4(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray$4(e,t){var n;if(e)return"string"==typeof e?_arrayLikeToArray$4(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray$4(e,t):void 0}function _arrayLikeToArray$4(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _defineProperties$A(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,r.key,r)}}function _createClass$A(e,t,n){return t&&_defineProperties$A(e.prototype,t),n&&_defineProperties$A(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var hasSymbols=function(){return"function"==typeof Symbol},hasSymbol=function(e){return hasSymbols()&&Boolean(Symbol[e])},getSymbol=function(e){return hasSymbol(e)?Symbol[e]:"@@"+e},SymbolIterator=(hasSymbols()&&!hasSymbol("observable")&&(Symbol.observable=Symbol("observable")),getSymbol("iterator")),SymbolObservable=getSymbol("observable"),SymbolSpecies=getSymbol("species");function getMethod$5(e,t){e=e[t];if(null!=e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}}function getSpecies(e){e=e.constructor;return void 0!==(e=void 0!==e&&null===(e=e[SymbolSpecies])?void 0:e)?e:Observable}function isObservable(e){return e instanceof Observable}function hostReportError(e){hostReportError.log?hostReportError.log(e):setTimeout(function(){throw e})}function enqueue(e){Promise.resolve().then(function(){try{e()}catch(e){hostReportError(e)}})}function cleanupSubscription(e){var t,n=e._cleanup;if(void 0!==n&&(e._cleanup=void 0,n))try{"function"==typeof n?n():(t=getMethod$5(n,"unsubscribe"))&&t.call(n)}catch(e){hostReportError(e)}}function closeSubscription(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function flushSubscription(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(notifySubscription(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}function notifySubscription(e,t,n){e._state="running";var r=e._observer;try{var i=getMethod$5(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(closeSubscription(e),!i)throw n;i.call(r,n);break;case"complete":closeSubscription(e),i&&i.call(r)}}catch(e){hostReportError(e)}"closed"===e._state?cleanupSubscription(e):"running"===e._state&&(e._state="ready")}function onNotify(e,t,n){"closed"!==e._state&&("buffering"===e._state?e._queue.push({type:t,value:n}):"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],enqueue(function(){return flushSubscription(e)})):notifySubscription(e,t,n))}var root$2,Subscription=function(){function e(t,e){this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";t=new SubscriptionObserver(this);try{this._cleanup=e.call(void 0,t)}catch(e){t.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(closeSubscription(this),cleanupSubscription(this))},_createClass$A(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),SubscriptionObserver=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){onNotify(this._subscription,"next",e)},t.error=function(e){onNotify(this._subscription,"error",e)},t.complete=function(){onNotify(this._subscription,"complete")},_createClass$A(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),Observable=function(){function o(e){if(!(this instanceof o))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof e)throw new TypeError("Observable initializer must be a function");this._subscriber=e}var e=o.prototype;return e.subscribe=function(e){return new Subscription(e="object"==typeof e&&null!==e?e:{next:e,error:arguments[1],complete:arguments[2]},this._subscriber)},e.forEach=function(i){var o=this;return new Promise(function(e,t){var n;function r(){n.unsubscribe(),e()}"function"!=typeof i?t(new TypeError(i+" is not a function")):n=o.subscribe({next:function(e){try{i(e,r)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e})})},e.map=function(n){var e=this;if("function"!=typeof n)throw new TypeError(n+" is not a function");return new(getSpecies(this))(function(t){return e.subscribe({next:function(e){try{e=n(e)}catch(e){return t.error(e)}t.next(e)},error:function(e){t.error(e)},complete:function(){t.complete()}})})},e.filter=function(n){var e=this;if("function"!=typeof n)throw new TypeError(n+" is not a function");return new(getSpecies(this))(function(t){return e.subscribe({next:function(e){try{if(!n(e))return}catch(e){return t.error(e)}t.next(e)},error:function(e){t.error(e)},complete:function(){t.complete()}})})},e.reduce=function(r){var e=this;if("function"!=typeof r)throw new TypeError(r+" is not a function");var t=getSpecies(this),i=1<arguments.length,o=!1,a=arguments[1];return new t(function(n){return e.subscribe({next:function(e){var t=!o;if(o=!0,!t||i)try{a=r(a,e)}catch(e){return n.error(e)}else a=e},error:function(e){n.error(e)},complete:function(){if(!o&&!i)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})})},e.concat=function(){for(var e=this,t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];var a=getSpecies(this);return new a(function(n){var r,i=0;return function e(t){r=t.subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){i===o.length?(r=void 0,n.complete()):e(a.from(o[i++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}})},e.flatMap=function(o){var t=this;if("function"!=typeof o)throw new TypeError(o+" is not a function");var a=getSpecies(this);return new a(function(n){var r=[],e=t.subscribe({next:function(e){if(o)try{e=o(e)}catch(e){return n.error(e)}var t=a.from(e).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=r.indexOf(t);0<=e&&r.splice(e,1),i()}});r.push(t)},error:function(e){n.error(e)},complete:function(){i()}});function i(){e.closed&&0===r.length&&n.complete()}return function(){r.forEach(function(e){return e.unsubscribe()}),e.unsubscribe()}})},e[SymbolObservable]=function(){return this},o.from=function(r){var e="function"==typeof this?this:o;if(null==r)throw new TypeError(r+" is not an object");var i=getMethod$5(r,SymbolObservable);if(i){var t=i.call(r);if(Object(t)!==t)throw new TypeError(t+" is not an object");return isObservable(t)&&t.constructor===e?t:new e(function(e){return t.subscribe(e)})}if(hasSymbol("iterator")&&(i=getMethod$5(r,SymbolIterator)))return new e(function(n){enqueue(function(){if(!n.closed){for(var e=_createForOfIteratorHelperLoose$3(i.call(r));!(t=e()).done;){var t=t.value;if(n.next(t),n.closed)return}n.complete()}})});if(Array.isArray(r))return new e(function(t){enqueue(function(){if(!t.closed){for(var e=0;e<r.length;++e)if(t.next(r[e]),t.closed)return;t.complete()}})});throw new TypeError(r+" is not observable")},o.of=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return new("function"==typeof this?this:o)(function(t){enqueue(function(){if(!t.closed){for(var e=0;e<n.length;++e)if(t.next(n[e]),t.closed)return;t.complete()}})})},_createClass$A(o,null,[{key:SymbolSpecies,get:function(){return this}}]),o}();function symbolObservablePonyfill(e){var t,e=e.Symbol;if("function"==typeof e)if(e.observable)t=e.observable;else{t="function"==typeof e.for?e.for("https://github.com/benlesh/symbol-observable"):e("https://github.com/benlesh/symbol-observable");try{e.observable=t}catch(e){}}else t="@@observable";return t}hasSymbols()&&Object.defineProperty(Observable,Symbol("extensions"),{value:{symbol:SymbolObservable,hostReportError:hostReportError},configurable:!0}),symbolObservablePonyfill(root$2="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")());var prototype=Observable.prototype,fakeObsSymbol="@@observable",toString$c=(prototype[fakeObsSymbol]||(prototype[fakeObsSymbol]=function(){return this}),Object.prototype.toString);function cloneDeep(e){return cloneDeepHelper(e)}function cloneDeepHelper(t,n){switch(toString$c.call(t)){case"[object Array]":var r;return(n=n||new Map).has(t)?n.get(t):(r=t.slice(0),n.set(t,r),r.forEach(function(e,t){r[t]=cloneDeepHelper(e,n)}),r);case"[object Object]":var i;return(n=n||new Map).has(t)?n.get(t):(i=Object.create(Object.getPrototypeOf(t)),n.set(t,i),Object.keys(t).forEach(function(e){i[e]=cloneDeepHelper(t[e],n)}),i);default:return t}}function deepFreeze(e){var n=new Set([e]);return n.forEach(function(t){isNonNullObject(t)&&shallowFreeze(t)===t&&Object.getOwnPropertyNames(t).forEach(function(e){isNonNullObject(t[e])&&n.add(t[e])})}),e}function shallowFreeze(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}function maybeDeepFreeze(e){return!1!==globalThis.__DEV__&&deepFreeze(e),e}function iterateObserversSafely(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function asyncMap(u,d,p){return new Observable(function(r){var i=r.next,o=r.error,e=r.complete,a=0,s=!1,l={then:function(t){return new Promise(function(e){return e(t())})}};function t(n,t){return n?function(e){++a;function t(){return n(e)}l=l.then(t,t).then(function(e){--a,i&&i.call(r,e),s&&c.complete()},function(e){throw--a,e}).catch(function(e){o&&o.call(r,e)})}:function(e){return t&&t.call(r,e)}}var c={next:t(d,i),error:t(p,o),complete:function(){s=!0,a||e&&e.call(r)}},n=u.subscribe(c);return function(){return n.unsubscribe()}})}function fixObservableSubclass(t){function e(e){Object.defineProperty(t,e,{value:Observable})}return canUseSymbol&&Symbol.species&&e(Symbol.species),e("@@species"),t}function isPromiseLike(e){return e&&"function"==typeof e.then}var Concast=function(t){function e(e){var n=t.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),iterateObserversSafely(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),iterateObserversSafely(n.observers,"error",e))},complete:function(){var e=n.sub,t=n.sources;null!==e&&((t=(void 0===t?[]:t).shift())?isPromiseLike(t)?t.then(function(e){return n.sub=e.subscribe(n.handlers)}):n.sub=t.subscribe(n.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),iterateObserversSafely(n.observers,"complete")))}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch(function(e){}),isPromiseLike(e="function"==typeof e?[new Observable(e)]:e)?e.then(function(e){return n.start(e)},n.handlers.error):n.start(e),n}return __extends(e,t),e.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},e.prototype.deliverLastMessage=function(e){var t,n;this.latest&&((n=e[t=this.latest[0]])&&n.call(e,this.latest[1]),null===this.sub)&&"next"===t&&e.complete&&e.complete()},e.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},e.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},e.prototype.notify=function(t,n){var e=this.nextResultListeners;e.size&&(this.nextResultListeners=new Set,e.forEach(function(e){return e(t,n)}))},e.prototype.beforeNext=function(n){var r=!1;this.nextResultListeners.add(function(e,t){r||(r=!0,n(e,t))})},e}(Observable);function isExecutionPatchIncrementalResult(e){return"incremental"in e}function isExecutionPatchInitialResult(e){return"hasNext"in e&&"data"in e}function isExecutionPatchResult(e){return isExecutionPatchIncrementalResult(e)||isExecutionPatchInitialResult(e)}function isApolloPayloadResult(e){return isNonNullObject(e)&&"payload"in e}function mergeIncrementalData(e,t){var a=e,s=new DeepMerger;return isExecutionPatchIncrementalResult(t)&&isNonEmptyArray(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,n=e.path,r=n.length-1;0<=r;--r){var i=n[r],o=!isNaN(+i)?[]:{};o[i]=t,t=o}a=s.merge(a,t)}),a}function graphQLResultHasError(e){return isNonEmptyArray(getGraphQLErrorsFromResult(e))}function getGraphQLErrorsFromResult(e){var t=isNonEmptyArray(e.errors)?e.errors.slice(0):[];return isExecutionPatchIncrementalResult(e)&&isNonEmptyArray(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}function compact$1(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(n){n&&Object.keys(n).forEach(function(e){var t=n[e];void 0!==t&&(r[e]=t)})}),r}function mergeOptions(e,t){return compact$1(e,t,t.variables&&{variables:compact$1(__assign$2(__assign$2({},e&&e.variables),t.variables))})}function fromError(t){return new Observable(function(e){e.error(t)})}fixObservableSubclass(Concast);var throwServerError=function(e,t,n){n=new Error(n);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n};function validateOperation(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw newInvariantError(41,i)}return e}function createOperation(e,t){var n=__assign$2({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=__assign$2(__assign$2({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return __assign$2({},n)}}),t}function transformOperation(e){e={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return e.operationName||(e.operationName="string"!=typeof e.query?getOperationName(e.query)||void 0:""),e}function filterOperationVariables(e,t){var n=__assign$2({},e),r=new Set(Object.keys(e));return visit$3(t,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&r.delete(e.name.value)}}),r.forEach(function(e){delete n[e]}),n}function passthrough(e,t){return t?t(e):Observable.of()}function toLink(e){return"function"==typeof e?new ApolloLink(e):e}function isTerminating(e){return e.request.length<=1}var ApolloLink=function(){function o(e){e&&(this.request=e)}return o.empty=function(){return new o(function(){return Observable.of()})},o.from=function(e){return 0===e.length?o.empty():e.map(toLink).reduce(function(e,t){return e.concat(t)})},o.split=function(n,e,t){var r=toLink(e),i=toLink(t||new o(passthrough));return isTerminating(r)&&isTerminating(i)?new o(function(e){return n(e)?r.request(e)||Observable.of():i.request(e)||Observable.of()}):new o(function(e,t){return n(e)?r.request(e,t)||Observable.of():i.request(e,t)||Observable.of()})},o.execute=function(e,t){return e.request(createOperation(t.context,transformOperation(validateOperation(t))))||Observable.of()},o.concat=function(e,t){var n,r=toLink(e);return isTerminating(r)?(!1!==globalThis.__DEV__&&invariant$6.warn(33,r),r):isTerminating(n=toLink(t))?new o(function(e){return r.request(e,function(e){return n.request(e)||Observable.of()})||Observable.of()}):new o(function(e,t){return r.request(e,function(e){return n.request(e,t)||Observable.of()})||Observable.of()})},o.prototype.split=function(e,t,n){return this.concat(o.split(e,t,n||new o(passthrough)))},o.prototype.concat=function(e){return o.concat(this,e)},o.prototype.request=function(e,t){throw newInvariantError(34)},o.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},o.prototype.setOnError=function(e){return this.onError=e,this},o}(),execute$1=ApolloLink.execute;function asyncIterator(e){var t=e[Symbol.asyncIterator](),e={next:function(){return t.next()}};return e[Symbol.asyncIterator]=function(){return this},e}function nodeStreamIterator(e){var n=null,r=null,i=!1,o=[],a=[];function t(e){if(!r){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}o.push(e)}}function s(t){r=t,a.slice().forEach(function(e){e[1](t)}),n&&n()}function l(){i=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),n&&n()}n=function(){n=null,e.removeListener("data",t),e.removeListener("error",s),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",t),e.on("error",s),e.on("end",l),e.on("finish",l),e.on("close",l);var c={next:function(){return new Promise(function(e,t){return r?t(r):o.length?e({value:o.shift(),done:!1}):i?e({value:void 0,done:!0}):void a.push([e,t])})}};return canUseAsyncIteratorSymbol&&(c[Symbol.asyncIterator]=function(){return this}),c}function promiseIterator(n){var e=!1,t={next:function(){return e?Promise.resolve({value:void 0,done:!0}):(e=!0,new Promise(function(t,e){n.then(function(e){t({value:e,done:!1})}).catch(e)}))}};return canUseAsyncIteratorSymbol&&(t[Symbol.asyncIterator]=function(){return this}),t}function readerIterator(e){var t={next:function(){return e.read()}};return canUseAsyncIteratorSymbol&&(t[Symbol.asyncIterator]=function(){return this}),t}function isNodeResponse(e){return!!e.body}function isReadableStream(e){return!!e.getReader}function isAsyncIterableIterator(e){return!(!canUseAsyncIteratorSymbol||!e[Symbol.asyncIterator])}function isStreamableBlob(e){return!!e.stream}function isBlob(e){return!!e.arrayBuffer}function isNodeReadableStream(e){return!!e.pipe}function responseIterator(e){var t=e;if(isAsyncIterableIterator(t=isNodeResponse(e)?e.body:t))return asyncIterator(t);if(isReadableStream(t))return readerIterator(t.getReader());if(isStreamableBlob(t))return readerIterator(t.stream().getReader());if(isBlob(t))return promiseIterator(t.arrayBuffer());if(isNodeReadableStream(t))return nodeStreamIterator(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var PROTOCOL_ERRORS_SYMBOL=Symbol();function graphQLResultHasProtocolErrors(e){return!!e.extensions&&Array.isArray(e.extensions[PROTOCOL_ERRORS_SYMBOL])}function isApolloError(e){return e.hasOwnProperty("graphQLErrors")}var generateErrorMessage=function(e){var t=__spreadArray(__spreadArray(__spreadArray([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return isNonNullObject(e)&&e.message||"Error message not found."}).join("\n")},ApolloError=function(s){function l(e){var t=e.graphQLErrors,n=e.protocolErrors,r=e.clientErrors,i=e.networkError,o=e.errorMessage,e=e.extraInfo,a=s.call(this,o)||this;return a.name="ApolloError",a.graphQLErrors=t||[],a.protocolErrors=n||[],a.clientErrors=r||[],a.networkError=i||null,a.message=o||generateErrorMessage(a),a.extraInfo=e,a.__proto__=l.prototype,a}return __extends(l,s),l}(Error),hasOwnProperty$c=Object.prototype.hasOwnProperty;function readMultipartBody(f,h){var m;return __awaiter$g(this,void 0,void 0,function(){var t,n,r,i,o,a,s,l,c,u,d,p;return __generator$1(this,function(e){switch(e.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");t=new TextDecoder("utf-8"),o=null==(m=f.headers)?void 0:m.get("content-type"),i="boundary=",o=null!=o&&o.includes(i)?null==o?void 0:o.substring((null==o?void 0:o.indexOf(i))+i.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",n="\r\n--".concat(o),r="",i=responseIterator(f),o=!0,e.label=1;case 1:return o?[4,i.next()]:[3,3];case 2:for(a=e.sent(),s=a.value,a=a.done,s="string"==typeof s?s:t.decode(s),l=r.length-n.length+1,o=!a,c=(r+=s).indexOf(n,l);-1<c;){if(u=void 0,d=[r.slice(0,c),r.slice(c+n.length)],u=d[0],r=d[1],d=u.indexOf("\r\n\r\n"),p=parseHeaders(u.slice(0,d)),(p=p["content-type"])&&-1===p.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(p=u.slice(d))if(u=parseJsonBody(f,p),1<Object.keys(u).length||"data"in u||"incremental"in u||"errors"in u||"payload"in u)isApolloPayloadResult(u)?(d={},"payload"in u&&(d=__assign$2({},u.payload)),"errors"in u&&(d=__assign$2(__assign$2({},d),{extensions:__assign$2(__assign$2({},"extensions"in d?d.extensions:null),((p={})[PROTOCOL_ERRORS_SYMBOL]=u.errors,p))})),h(d)):h(u);else if(1===Object.keys(u).length&&"hasNext"in u&&!u.hasNext)return[2];c=r.indexOf(n)}return[3,1];case 3:return[2]}})})}function parseHeaders(e){var r={};return e.split("\n").forEach(function(e){var t,n=e.indexOf(":");-1<n&&(t=e.slice(0,n).trim().toLowerCase(),e=e.slice(n+1).trim(),r[t]=e)}),r}function parseJsonBody(t,n){300<=t.status&&throwServerError(t,function(){try{return JSON.parse(n)}catch(e){return n}}(),"Response not successful: Received status code ".concat(t.status));try{return JSON.parse(n)}catch(e){var r=e;throw r.name="ServerParseError",r.response=t,r.statusCode=t.status,r.bodyText=n,r}}function handleError(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function parseAndCheckHttpResponse(n){return function(t){return t.text().then(function(e){return parseJsonBody(t,e)}).then(function(e){return 300<=t.status&&throwServerError(t,e,"Response not successful: Received status code ".concat(t.status)),Array.isArray(e)||hasOwnProperty$c.call(e,"data")||hasOwnProperty$c.call(e,"errors")||throwServerError(t,e,"Server response was missing for query '".concat(Array.isArray(n)?n.map(function(e){return e.operationName}):n.operationName,"'.")),e})}}var serializeFetchParameter=function(t,n){var e;try{e=JSON.stringify(t)}catch(e){t=newInvariantError(37,n,e.message);throw t.parseError=e,t}return e},defaultHttpOptions={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},defaultHeaders={accept:"*/*","content-type":"application/json"},defaultOptions$2={method:"POST"},fallbackHttpConfig={http:defaultHttpOptions,headers:defaultHeaders,options:defaultOptions$2},defaultPrinter=function(e,t){return t(e)};function selectHttpOptionsAndBodyInternal(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},o={},a=(n.forEach(function(e){i=__assign$2(__assign$2(__assign$2({},i),e.options),{headers:__assign$2(__assign$2({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=__assign$2(__assign$2({},o),e.http)}),i.headers&&(i.headers=removeDuplicateHeaders(i.headers,o.preserveHeaderCase)),e.operationName),s=e.extensions,l=e.variables,c=e.query,a={operationName:a,variables:l};return o.includeExtensions&&(a.extensions=s),o.includeQuery&&(a.query=t(c,print$1)),{options:i,body:a}}function removeDuplicateHeaders(t,e){var n,r,i;return e?(r=Object.create(null),Object.keys(Object(t)).forEach(function(e){r[e.toLowerCase()]={originalName:e,value:t[e]}}),i=Object.create(null),Object.keys(r).forEach(function(e){i[r[e].originalName]=r[e].value}),i):(n=Object.create(null),Object.keys(Object(t)).forEach(function(e){n[e.toLowerCase()]=t[e]}),n)}var checkFetcher=function(e){if(!e&&"undefined"==typeof fetch)throw newInvariantError(35)},selectURI=function(e,t){var n=e.getContext().uri;return n||("function"==typeof t?t(e):t||"/graphql")};function rewriteURIForGET(e,t){function n(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))}var r=[];if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=serializeFetchParameter(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){i=void 0;try{i=serializeFetchParameter(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",i)}var t="",i=e,o=e.indexOf("#"),e=(-1!==o&&(t=e.substr(o),i=e.substr(0,o)),-1===i.indexOf("?")?"?":"&");return{newURI:i+e+r.join("&")+t}}var backupFetch=maybe$2(function(){return fetch}),createHttpLink=function(e){var t=(e=void 0===e?{}:e).uri,c=void 0===t?"/graphql":t,u=e.fetch,t=e.print,d=void 0===t?defaultPrinter:t,t=e.includeExtensions,n=e.preserveHeaderCase,p=e.useGETForQueries,r=e.includeUnusedVariables,f=void 0!==r&&r,r=__rest$7(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]),h=(!1!==globalThis.__DEV__&&checkFetcher(u||backupFetch),{http:{includeExtensions:t,preserveHeaderCase:n},options:r.fetchOptions,credentials:r.credentials,headers:r.headers});return new ApolloLink(function(r){var i=selectURI(r,c),e=r.getContext(),t={},n=(e.clientAwareness&&(n=(o=e.clientAwareness).name,o=o.version,n&&(t["apollographql-client-name"]=n),o)&&(t["apollographql-client-version"]=o),__assign$2(__assign$2({},t),e.headers)),o={http:e.http,options:e.fetchOptions,credentials:e.credentials,headers:n};if(hasDirectives(["client"],r.query)){t=removeClientSetsFromDocument(r.query);if(!t)return fromError(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));r.query=t}var a,e=selectHttpOptionsAndBodyInternal(r,d,fallbackHttpConfig,h,o),s=e.options,n=e.body,o=(n.variables&&!f&&(n.variables=filterOperationVariables(n.variables,r.query)),s.signal||"undefined"==typeof AbortController||(a=new AbortController,s.signal=a.signal),"OperationDefinition"===(t=getMainDefinition(r.query)).kind&&"subscription"===t.operation),e=hasDirectives(["defer"],r.query);if(p&&!r.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(s.method="GET"),(e||o)&&(s.headers=s.headers||{},t="multipart/mixed;",o&&e&&!1!==globalThis.__DEV__&&invariant$6.warn(36),o?t+="boundary=graphql;subscriptionSpec=1.0,application/json":e&&(t+="deferSpec=20220824,application/json"),s.headers.accept=t),"GET"===s.method){var o=rewriteURIForGET(i,n),e=o.newURI,l=o.parseError;if(l)return fromError(l);i=e}else try{s.body=serializeFetchParameter(n,"Payload")}catch(l){return fromError(l)}return new Observable(function(t){var e=u||maybe$2(function(){return fetch})||backupFetch,n=t.next.bind(t);return e(i,s).then(function(e){r.setContext({response:e});var t=null==(t=e.headers)?void 0:t.get("content-type");return null!==t&&/^multipart\/mixed/i.test(t)?readMultipartBody(e,n):parseAndCheckHttpResponse(r)(e).then(n)}).then(function(){a=void 0,t.complete()}).catch(function(e){a=void 0,handleError(e,t)}),function(){a&&a.abort()}})})},HttpLink=function(n){function e(e){var t=n.call(this,createHttpLink(e=void 0===e?{}:e).request)||this;return t.options=e,t}return __extends(e,n),e}(ApolloLink);const{toString:toString$b,hasOwnProperty:hasOwnProperty$b}=Object.prototype,fnToStr=Function.prototype.toString,previousComparisons=new Map;function equal(e,t){try{return check$2(e,t)}finally{previousComparisons.clear()}}function check$2(t,n){if(t===n)return!0;var e=toString$b.call(t),r=toString$b.call(n);if(e===r)switch(e){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":if(!previouslyCompared(t,n)){var i=definedKeys(t),o=definedKeys(n),a=i.length;if(a!==o.length)return!1;for(let e=0;e<a;++e)if(!hasOwnProperty$b.call(n,i[e]))return!1;for(let e=0;e<a;++e){var s=i[e];if(!check$2(t[s],n[s]))return!1}}return!0;case"[object Error]":return t.name===n.name&&t.message===n.message;case"[object Number]":if(t!=t)return n!=n;case"[object Boolean]":case"[object Date]":return+t==+n;case"[object RegExp]":case"[object String]":return t==""+n;case"[object Map]":case"[object Set]":if(t.size!==n.size)return!1;if(!previouslyCompared(t,n))for(var l=t.entries(),c="[object Map]"===e;;){var u=l.next();if(u.done)break;var[u,d]=u.value;if(!n.has(u))return!1;if(c&&!check$2(d,n.get(u)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),n=new Uint8Array(n);case"[object DataView]":{let e=t.byteLength;if(e===n.byteLength)for(;e--&&t[e]===n[e];);return-1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":o=fnToStr.call(t);return o!==fnToStr.call(n)?!1:!endsWith(o,nativeCodeSuffix)}return!1}function definedKeys(e){return Object.keys(e).filter(isDefinedKey,e)}function isDefinedKey(e){return void 0!==this[e]}const nativeCodeSuffix="{ [native code] }";function endsWith(e,t){var n=e.length-t.length;return 0<=n&&e.indexOf(t,n)===n}function previouslyCompared(e,t){let n=previousComparisons.get(e);if(n){if(n.has(t))return!0}else previousComparisons.set(e,n=new Set);return n.add(t),!1}function defaultDispose(){}class Cache{constructor(e=1/0,t=defaultDispose){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){e=this.getNode(e);return e&&e.value}getNode(e){var t,n,e=this.map.get(e);return e&&e!==this.newest&&({older:t,newer:n}=e,n&&(n.older=t),t&&(t.newer=n),e.older=this.newest,(e.older.newer=e).newer=null,(this.newest=e)===this.oldest)&&(this.oldest=n),e}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}var currentContext$1=null,MISSING_VALUE$1={},idCounter$1=1,makeSlotClass$1=function(){return e.prototype.hasValue=function(){for(var e=currentContext$1;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===MISSING_VALUE$1)break;return e!==currentContext$1&&(currentContext$1.slots[this.id]=t),!0}return currentContext$1&&(currentContext$1.slots[this.id]=MISSING_VALUE$1),!1},e.prototype.getValue=function(){if(this.hasValue())return currentContext$1.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i;(i={__proto__:null})[this.id]=e;e=currentContext$1;currentContext$1={parent:e,slots:i};try{return t.apply(r,n)}finally{currentContext$1=e}},e.bind=function(t){var n=currentContext$1;return function(){var e=currentContext$1;try{return currentContext$1=n,t.apply(this,arguments)}finally{currentContext$1=e}}},e.noContext=function(e,t,n){if(!currentContext$1)return e.apply(n,t);var r=currentContext$1;try{return currentContext$1=null,e.apply(n,t)}finally{currentContext$1=r}},e;function e(){this.id=["slot",idCounter$1++,Date.now(),Math.random().toString(36).slice(2)].join(":")}};function maybe$1(e){try{return e()}catch(e){}}var globalKey$1="@wry/context:Slot",host$1=maybe$1(function(){return globalThis})||maybe$1(function(){return global})||Object.create(null),globalHost$1=host$1,Slot$1=globalHost$1[globalKey$1]||Array[globalKey$1]||function(e){try{Object.defineProperty(globalHost$1,globalKey$1,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(makeSlotClass$1());Slot$1.bind,Slot$1.noContext;const parentEntrySlot=new Slot$1,hasOwnProperty$a=Object.prototype["hasOwnProperty"],arrayFromSet=Array.from||function(e){const t=[];return e.forEach(e=>t.push(e)),t};function maybeUnsubscribe(e){var t=e["unsubscribe"];"function"==typeof t&&(e.unsubscribe=void 0,t())}const emptySetPool=[],POOL_TARGET_SIZE=100;function assert$2(e,t){if(!e)throw new Error(t||"assertion failure")}function valueIs(e,t){var n=e.length;return 0<n&&n===t.length&&e[n-1]===t[n-1]}function valueGet(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function valueCopy(e){return e.slice(0)}class Entry{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Entry.count}peek(){if(1===this.value.length&&!mightBeDirty(this))return rememberParent(this),this.value[0]}recompute(e){return assert$2(!this.recomputing,"already recomputing"),rememberParent(this),mightBeDirty(this)?reallyRecompute(this,e):valueGet(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,reportDirty(this),maybeUnsubscribe(this))}dispose(){this.setDirty(),forgetChildren(this),eachParent(this,(e,t)=>{e.setDirty(),forgetChild(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=emptySetPool.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(arrayFromSet(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),emptySetPool.push(this.deps),this.deps=null)}}function rememberParent(e){var t=parentEntrySlot.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),(mightBeDirty(e)?reportDirtyChild:reportCleanChild)(t,e),t}function reallyRecompute(e,t){return forgetChildren(e),parentEntrySlot.withValue(e,recomputeNewValue,[e,t]),maybeSubscribe(e,t)&&setClean(e),valueGet(e.value)}function recomputeNewValue(t,e){t.recomputing=!0,t.value.length=0;try{t.value[0]=t.fn.apply(null,e)}catch(e){t.value[1]=e}t.recomputing=!1}function mightBeDirty(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function setClean(e){e.dirty=!1,mightBeDirty(e)||reportClean(e)}function reportDirty(e){eachParent(e,reportDirtyChild)}function reportClean(e){eachParent(e,reportCleanChild)}function eachParent(t,n){var r=t.parents.size;if(r){var i=arrayFromSet(t.parents);for(let e=0;e<r;++e)n(i[e],t)}}function reportDirtyChild(e,t){assert$2(e.childValues.has(t)),assert$2(mightBeDirty(t));var n=!mightBeDirty(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=emptySetPool.pop()||new Set;e.dirtyChildren.add(t),n&&reportDirty(e)}function reportCleanChild(e,t){assert$2(e.childValues.has(t)),assert$2(!mightBeDirty(t));var n=e.childValues.get(t);0===n.length?e.childValues.set(t,valueCopy(t.value)):valueIs(n,t.value)||e.setDirty(),removeDirtyChild(e,t),mightBeDirty(e)||reportClean(e)}function removeDirtyChild(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size)&&(emptySetPool.length<POOL_TARGET_SIZE&&emptySetPool.push(n),e.dirtyChildren=null)}function forgetChildren(n){0<n.childValues.size&&n.childValues.forEach((e,t)=>{forgetChild(n,t)}),n.forgetDeps(),assert$2(null===n.dirtyChildren)}function forgetChild(e,t){t.parents.delete(e),e.childValues.delete(t),removeDirtyChild(e,t)}function maybeSubscribe(t,e){if("function"==typeof t.subscribe)try{maybeUnsubscribe(t),t.unsubscribe=t.subscribe.apply(null,e)}catch(e){return t.setDirty(),!1}return!0}const EntryMethods={setDirty:!(Entry.count=0),dispose:!0,forget:!0};function dep(e){const i=new Map,r=e&&e.subscribe;function t(t){var n=parentEntrySlot.getValue();if(n){let e=i.get(t);e||i.set(t,e=new Set),n.dependOn(e),"function"==typeof r&&(maybeUnsubscribe(e),e.unsubscribe=r(t))}}return t.dirty=function(e,t){var n=i.get(e);if(n){const r=t&&hasOwnProperty$a.call(EntryMethods,t)?t:"setDirty";arrayFromSet(n).forEach(e=>e[r]()),i.delete(e),maybeUnsubscribe(n)}},t}let defaultKeyTrie;function defaultMakeCacheKey(...e){defaultKeyTrie=defaultKeyTrie||new Trie("function"==typeof WeakMap);return defaultKeyTrie.lookupArray(e)}const caches=new Set;function wrap$3(r,{max:e=Math.pow(2,16),makeCacheKey:i=defaultMakeCacheKey,keyArgs:o,subscribe:a}=Object.create(null)){const s=new Cache(e,e=>e.dispose());function t(){const e=i.apply(null,o?o.apply(null,arguments):arguments);if(void 0===e)return r.apply(null,arguments);let t=s.get(e);t||(s.set(e,t=new Entry(r)),t.subscribe=a,t.forget=()=>s.delete(e));var n=t.recompute(Array.prototype.slice.call(arguments));return s.set(e,t),caches.add(s),parentEntrySlot.hasValue()||(caches.forEach(e=>e.clean()),caches.clear()),n}function n(e){e=s.get(e);e&&e.setDirty()}function l(e){e=s.get(e);if(e)return e.peek()}function c(e){return s.delete(e)}return Object.defineProperty(t,"size",{get(){return s.map.size},configurable:!1,enumerable:!1}),Object.freeze(t.options={max:e,makeCacheKey:i,keyArgs:o,subscribe:a}),t.dirtyKey=n,t.dirty=function(){n(i.apply(null,arguments))},t.peekKey=l,t.peek=function(){return l(i.apply(null,arguments))},t.forgetKey=c,t.forget=function(){return c(i.apply(null,arguments))},t.makeCacheKey=i,t.getKey=o?function(){return i.apply(null,o.apply(null,arguments))}:i,Object.freeze(t)}var ApolloCache=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=wrap$3(getFragmentQueryDocument)}return e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(n)},r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(__assign$2(__assign$2({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(__assign$2(__assign$2({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,e=__rest$7(e,["id","data"]);return this.write(Object.assign(e,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,e=__rest$7(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(e,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(r,i){return this.batch({update:function(e){var t=e.readQuery(r),n=i(t);return null==n?t:(e.writeQuery(__assign$2(__assign$2({},r),{data:n})),n)}})},e.prototype.updateFragment=function(r,i){return this.batch({update:function(e){var t=e.readFragment(r),n=i(t);return null==n?t:(e.writeFragment(__assign$2(__assign$2({},r),{data:n})),n)}})},e}(),MissingFieldError=function(s){function l(e,t,n,r){var i,o=s.call(this,e)||this;if(o.message=e,o.path=t,o.query=n,o.variables=r,Array.isArray(o.path)){o.missing=o.message;for(var a=o.path.length-1;0<=a;--a)o.missing=((i={})[o.path[a]]=o.missing,i)}else o.missing=o.path;return o.__proto__=l.prototype,o}return __extends(l,s),l}(Error),hasOwn$c=Object.prototype.hasOwnProperty;function isNullish(e){return null==e}function defaultDataIdFromObject(e,t){var n=e.__typename,r=e.id,e=e._id;if("string"==typeof n&&(t&&(t.keyObject=isNullish(r)?isNullish(e)?void 0:{_id:e}:{id:r}),isNullish(r)&&!isNullish(e)&&(r=e),!isNullish(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var defaultConfig={dataIdFromObject:defaultDataIdFromObject,addTypename:!0,resultCaching:!0,canonizeResults:!1};function normalizeConfig(e){return compact$1(defaultConfig,e)}function shouldCanonizeResults(e){e=e.canonizeResults;return void 0===e?defaultConfig.canonizeResults:e}function getTypenameFromStoreObject(e,t){return isReference(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var TypeOrFieldNameRegExp=/^[_a-z][_0-9a-z]*/i;function fieldNameFromStoreName(e){var t=e.match(TypeOrFieldNameRegExp);return t?t[0]:e}function selectionSetMatchesResult(t,n,r){return!!isNonNullObject(n)&&(isArray$9(n)?n.every(function(e){return selectionSetMatchesResult(t,e,r)}):t.selections.every(function(e){var t;return!isField(e)||!shouldInclude(e,r)||(t=resultKeyNameFromField(e),hasOwn$c.call(n,t)&&(!e.selectionSet||selectionSetMatchesResult(e.selectionSet,n[t],r)))}))}function storeValueIsStoreObject(e){return isNonNullObject(e)&&!isReference(e)&&!isArray$9(e)}function makeProcessedFieldsMerger(){return new DeepMerger}function extractFragmentContext(e,n){var r=createFragmentMap(getFragmentDefinitions(e));return{fragmentMap:r,lookupFragment:function(e){var t=r[e];return(t=!t&&n?n.lookup(e):t)||null}}}var DELETE=Object.create(null),delModifier=function(){return DELETE},INVALIDATE=Object.create(null),EntityStore=function(){function e(e,t){var i=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return maybeDeepFreeze(isReference(e)?i.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return isReference(e)?i.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){var n,r;return"string"==typeof e?makeReference(e):isReference(e)?e:(n=i.policies.identify(e)[0])?(r=makeReference(n),t&&i.merge(n,e),r):void 0}}return e.prototype.toObject=function(){return __assign$2({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),hasOwn$c.call(this.data,e)){var n=this.data[e];if(n&&hasOwn$c.call(n,t))return n[t]}return"__typename"===t&&hasOwn$c.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Layer?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),hasOwn$c.call(this.data,e)?this.data[e]:this instanceof Layer?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r,i,o=this,a=(isReference(e)&&(e=e.__ref),isReference(t)&&(t=t.__ref),"string"==typeof e?this.lookup(n=e):e),e="string"==typeof t?this.lookup(n=t):t;e&&(invariant$6("string"==typeof n,1),r=new DeepMerger(storeObjectReconciler).merge(a,e),(this.data[n]=r)!==a)&&(delete this.refs[n],this.group.caching)&&(i=Object.create(null),a||(i.__exists=1),Object.keys(e).forEach(function(e){var t;a&&a[e]===r[e]||(i[e]=1,(t=fieldNameFromStoreName(e))===e||o.policies.hasKeyArgs(r.__typename,t)||(i[t]=1),void 0!==r[e])||o instanceof Layer||delete r[e]}),!i.__typename||a&&a.__typename||this.policies.rootTypenamesById[n]!==r.__typename||delete i.__typename,Object.keys(i).forEach(function(e){return o.group.dirty(n,e)}))},e.prototype.modify=function(i,o){var a=this,s=this.lookup(i);if(s){var l=Object.create(null),c=!1,u=!0,d={DELETE:DELETE,INVALIDATE:INVALIDATE,isReference:isReference,toReference:this.toReference,canRead:this.canRead,readField:function(e,t){return a.policies.readField("string"==typeof e?{fieldName:e,from:t||makeReference(i)}:e,{store:a})}};if(Object.keys(s).forEach(function(e){var t,n=fieldNameFromStoreName(e),r=s[e];void 0!==r&&((t="function"==typeof o?o:o[e]||o[n])&&((t=t===delModifier?DELETE:t(maybeDeepFreeze(r),__assign$2(__assign$2({},d),{fieldName:n,storeFieldName:e,storage:a.getStorage(i,e)})))===INVALIDATE?a.group.dirty(i,e):(t=t===DELETE?void 0:t)!==r&&(l[e]=t,c=!0,r=t)),void 0!==r)&&(u=!1)}),c)return this.merge(i,l),u&&(this instanceof Layer?this.data[i]=void 0:delete this.data[i],this.group.dirty(i,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r=this.lookup(e);return!!r&&(r=this.getFieldValue(r,"__typename"),r=t&&n?this.policies.getStoreFieldName({typename:r,fieldName:t,args:n}):t,this.modify(e,r?((n={})[r]=delModifier,n):delModifier))},e.prototype.evict=function(e,t){var n=!1;return e.id&&(hasOwn$c.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof Layer&&this!==t&&(n=this.parent.evict(e,t)||n),e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists"),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,e=this.toObject(),n=[];return this.getRootIdSet().forEach(function(e){hasOwn$c.call(t.policies.rootTypenamesById,e)||n.push(e)}),n.length&&(e.__META={extraRootIds:n.sort()}),e},e.prototype.replace=function(t){var e,n,r=this;Object.keys(this.data).forEach(function(e){t&&hasOwn$c.call(t,e)||r.delete(e)}),t&&(e=t.__META,n=__rest$7(t,["__META"]),Object.keys(n).forEach(function(e){r.merge(e,n[e])}),e)&&e.extraRootIds.forEach(this.retain,this)},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){var t;return 0<this.rootIds[e]?((t=--this.rootIds[e])||delete this.rootIds[e],t):0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Layer?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var t=this,n=this.getRootIdSet(),r=this.toObject(),e=(n.forEach(function(e){hasOwn$c.call(r,e)&&(Object.keys(t.findChildRefIds(e)).forEach(n.add,n),delete r[e])}),Object.keys(r));if(e.length){for(var i=this;i instanceof Layer;)i=i.parent;e.forEach(function(e){return i.delete(e)})}return e},e.prototype.findChildRefIds=function(e){if(!hasOwn$c.call(this.refs,e)){var n=this.refs[e]=Object.create(null),t=this.data[e];if(!t)return n;var r=new Set([t]);r.forEach(function(t){isReference(t)&&(n[t.__ref]=!0),isNonNullObject(t)&&Object.keys(t).forEach(function(e){e=t[e];isNonNullObject(e)&&r.add(e)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),CacheGroup=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?dep():null,this.keyMaker=new Trie(canUseWeakMap)},e.prototype.depend=function(e,t){var n;this.d&&(this.d(makeDepKey(e,t)),(n=fieldNameFromStoreName(t))!==t&&this.d(makeDepKey(e,n)),this.parent)&&this.parent.depend(e,t)},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(makeDepKey(e,t),"__exists"===t?"forget":"setDirty")},e}();function makeDepKey(e,t){return t+"#"+e}function maybeDependOnExistenceOfEntity(e,t){supportsResultCaching(e)&&e.group.depend(t,"__exists")}!function(e){__extends(n,r=e),n.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},n.prototype.removeLayer=function(){return this},n.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)};var r,t=n;function n(e){var t=e.policies,n=e.resultCaching,e=e.seed,t=r.call(this,t,new CacheGroup(void 0===n||n))||this;return t.stump=new Stump(t),t.storageTrie=new Trie(canUseWeakMap),e&&t.replace(e),t}e.Root=t}(EntityStore=EntityStore||{});var Layer=function(o){function n(e,t,n,r){var i=o.call(this,t.policies,r)||this;return i.id=e,i.parent=t,i.replay=n,i.group=r,n(i),i}return __extends(n,o),n.prototype.addLayer=function(e,t){return new n(e,this,t,this.group)},n.prototype.removeLayer=function(e){var i=this,o=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(t){var n=i.data[t],r=o.lookup(t);r?n?n!==r&&Object.keys(n).forEach(function(e){equal(n[e],r[e])||i.group.dirty(t,e)}):(i.group.dirty(t,"__exists"),Object.keys(r).forEach(function(e){i.group.dirty(t,e)})):i.delete(t)}),o):o===this.parent?this:o.addLayer(this.id,this.replay)},n.prototype.toObject=function(){return __assign$2(__assign$2({},this.parent.toObject()),this.data)},n.prototype.findChildRefIds=function(e){var t=this.parent.findChildRefIds(e);return hasOwn$c.call(this.data,e)?__assign$2(__assign$2({},t),o.prototype.findChildRefIds.call(this,e)):t},n.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},n}(EntityStore),Stump=function(t){function e(e){return t.call(this,"EntityStore.Stump",e,function(){},new CacheGroup(e.group.caching,e.group))||this}return __extends(e,t),e.prototype.removeLayer=function(){return this},e.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},e}(Layer);function storeObjectReconciler(e,t,n){e=e[n],t=t[n];return equal(e,t)?e:t}function supportsResultCaching(e){return!!(e instanceof EntityStore&&e.group.caching)}function shallowCopy(e){return isNonNullObject(e)?isArray$9(e)?e.slice(0):__assign$2({__proto__:Object.getPrototypeOf(e)},e):e}var stringifyCanon,stringifyCache,ObjectCanon=function(){function e(){this.known=new(canUseWeakSet?WeakSet:Set),this.pool=new Trie(canUseWeakMap),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return isNonNullObject(e)&&this.known.has(e)},e.prototype.pass=function(e){var t;return isNonNullObject(e)?(t=shallowCopy(e),this.passes.set(t,e),t):e},e.prototype.admit=function(t){var n=this;if(isNonNullObject(t)){var e,r,i,o,a,s,l=this.passes.get(t);if(l)return l;switch(Object.getPrototypeOf(t)){case Array.prototype:return this.known.has(t)?t:(e=t.map(this.admit,this),(a=this.pool.lookupArray(e)).array||(this.known.add(a.array=e),!1!==globalThis.__DEV__&&Object.freeze(e)),a.array);case null:case Object.prototype:return this.known.has(t)?t:(e=Object.getPrototypeOf(t),r=[e],i=this.sortedKeys(t),r.push(i.json),o=r.length,i.sorted.forEach(function(e){r.push(n.admit(t[e]))}),(a=this.pool.lookupArray(r)).object||(s=a.object=Object.create(e),this.known.add(s),i.sorted.forEach(function(e,t){s[e]=r[o+t]}),!1!==globalThis.__DEV__&&Object.freeze(s)),a.object)}}return t},e.prototype.sortedKeys=function(e){var t,e=Object.keys(e),n=this.pool.lookupArray(e);return n.keys||(e.sort(),t=JSON.stringify(e),n.keys=this.keysByJSON.get(t))||this.keysByJSON.set(t,n.keys={sorted:e,json:t}),n.keys},e}(),canonicalStringify=Object.assign(function(e){var t,n;return isNonNullObject(e)?(void 0===stringifyCanon&&resetCanonicalStringify(),t=stringifyCanon.admit(e),void 0===(n=stringifyCache.get(t))&&stringifyCache.set(t,n=JSON.stringify(t)),n):JSON.stringify(e)},{reset:resetCanonicalStringify});function resetCanonicalStringify(){stringifyCanon=new ObjectCanon,stringifyCache=new(canUseWeakMap?WeakMap:Map)}function execSelectionSetKeyArgs(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var StoreReader=function(){function e(e){var i=this;this.knownResults=new(canUseWeakMap?WeakMap:Map),this.config=compact$1(e,{addTypename:!1!==e.addTypename,canonizeResults:shouldCanonizeResults(e)}),this.canon=e.canon||new ObjectCanon,this.executeSelectionSet=wrap$3(function(e){var t=e.context.canonizeResults,n=execSelectionSetKeyArgs(e),r=(n[3]=!t,(r=i.executeSelectionSet).peek.apply(r,n));return r?t?__assign$2(__assign$2({},r),{result:i.canon.admit(r.result)}):r:(maybeDependOnExistenceOfEntity(e.context.store,e.enclosingRef.__ref),i.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:execSelectionSetKeyArgs,makeCacheKey:function(e,t,n,r){if(supportsResultCaching(n.store))return n.store.makeCacheKey(e,isReference(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=wrap$3(function(e){return maybeDependOnExistenceOfEntity(e.context.store,e.enclosingRef.__ref),i.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,e=e.context;if(supportsResultCaching(e.store))return e.store.makeCacheKey(t,n,e.varString)}})}return e.prototype.resetCanon=function(){this.canon=new ObjectCanon},e.prototype.diffQueryAgainstStore=function(e){var t,n=e.store,r=e.query,i=e.rootId,i=void 0===i?"ROOT_QUERY":i,o=e.variables,a=e.returnPartialData,a=void 0===a||a,e=e.canonizeResults,e=void 0===e?this.config.canonizeResults:e,s=this.config.cache.policies,o=__assign$2(__assign$2({},getDefaultValues(getQueryDefinition(r))),o),i=makeReference(i),i=this.executeSelectionSet({selectionSet:getMainDefinition(r).selectionSet,objectOrReference:i,enclosingRef:i,context:__assign$2({store:n,query:r,policies:s,variables:o,varString:canonicalStringify(o),canonizeResults:e},extractFragmentContext(r,this.config.fragments))});if(i.missing&&(t=[new MissingFieldError(firstMissing(i.missing),i.missing,r,o)],!a))throw t[0];return{result:i.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,n,r){if(supportsResultCaching(r.store)&&this.knownResults.get(e)===n){n=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(n&&e===n.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var i=this,t=e.selectionSet,o=e.objectOrReference,a=e.enclosingRef,s=e.context;if(isReference(o)&&!s.policies.rootTypenamesById[o.__ref]&&!s.store.has(o.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(o.__ref," object")};var l,c=s.variables,u=s.policies,d=s.store.getFieldValue(o,"__typename"),p=[],f=new DeepMerger;function h(e,t){var n;return e.missing&&(l=f.merge(l,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof d&&!u.rootIdsByTypename[d]&&p.push({__typename:d});var m=new Set(t.selections);m.forEach(function(e){var t;if(shouldInclude(e,c))if(isField(e)){var n=u.readField({fieldName:e.name.value,field:e,variables:s.variables,from:o},s),r=resultKeyNameFromField(e);void 0===n?addTypenameToDocument.added(e)||(l=f.merge(l,((t={})[r]="Can't find field '".concat(e.name.value,"' on ").concat(isReference(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2)),t))):isArray$9(n)?n=h(i.executeSubSelectedArray({field:e,array:n,enclosingRef:a,context:s}),r):e.selectionSet?null!=n&&(n=h(i.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:n,enclosingRef:isReference(n)?n:a,context:s}),r)):s.canonizeResults&&(n=i.canon.pass(n)),void 0!==n&&p.push(((t={})[r]=n,t))}else{r=getFragmentFromSelection(e,s.lookupFragment);if(!r&&e.kind===Kind$1.FRAGMENT_SPREAD)throw newInvariantError(7,e.name.value);r&&u.fragmentMatches(r,d)&&r.selectionSet.selections.forEach(m.add,m)}});e={result:mergeDeepArray(p),missing:l},e=s.canonizeResults?this.canon.admit(e):maybeDeepFreeze(e);return e.result&&this.knownResults.set(e.result,t),e},e.prototype.execSubSelectedArrayImpl=function(e){var r,n=this,i=e.field,t=e.array,o=e.enclosingRef,a=e.context,s=new DeepMerger;function l(e,t){var n;return e.missing&&(r=s.merge(r,((n={})[t]=e.missing,n))),e.result}return t=(t=i.selectionSet?t.filter(a.store.canRead):t).map(function(e,t){return null===e?null:isArray$9(e)?l(n.executeSubSelectedArray({field:i,array:e,enclosingRef:o,context:a}),t):i.selectionSet?l(n.executeSelectionSet({selectionSet:i.selectionSet,objectOrReference:e,enclosingRef:isReference(e)?e:o,context:a}),t):(!1!==globalThis.__DEV__&&assertSelectionSetForIdValue(a.store,i,e),e)}),{result:a.canonizeResults?this.canon.admit(t):t,missing:r}},e}();function firstMissing(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}function assertSelectionSetForIdValue(t,n,e){var r;n.selectionSet||(r=new Set([e])).forEach(function(e){isNonNullObject(e)&&(invariant$6(!isReference(e),8,getTypenameFromStoreObject(t,e),n.name.value),Object.values(e).forEach(r.add,r))})}let currentContext=null;const MISSING_VALUE={};let idCounter=1;const makeSlotClass=()=>class{constructor(){this.id=["slot",idCounter++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=currentContext;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===MISSING_VALUE)break;return e!==currentContext&&(currentContext.slots[this.id]=t),!0}return currentContext&&(currentContext.slots[this.id]=MISSING_VALUE),!1}getValue(){if(this.hasValue())return currentContext.slots[this.id]}withValue(e,t,n,r){var e={__proto__:null,[this.id]:e},i=currentContext;currentContext={parent:i,slots:e};try{return t.apply(r,n)}finally{currentContext=i}}static bind(t){const n=currentContext;return function(){var e=currentContext;try{return currentContext=n,t.apply(this,arguments)}finally{currentContext=e}}}static noContext(e,t,n){if(!currentContext)return e.apply(n,t);var r=currentContext;try{return currentContext=null,e.apply(n,t)}finally{currentContext=r}}};function maybe(e){try{return e()}catch(e){}}const globalKey="@wry/context:Slot",host=maybe(()=>globalThis)||maybe(()=>global)||Object.create(null),globalHost=host,Slot=globalHost[globalKey]||Array[globalKey]||function(e){try{Object.defineProperty(globalHost,globalKey,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(makeSlotClass());var cacheSlot=new Slot,cacheInfoMap=new WeakMap;function getCacheInfo(e){var t=cacheInfoMap.get(e);return t||cacheInfoMap.set(e,t={vars:new Set,dep:dep()}),t}function forgetCache(t){getCacheInfo(t).vars.forEach(function(e){return e.forgetCache(t)})}function recallCache(t){getCacheInfo(t).vars.forEach(function(e){return e.attachCache(t)})}function makeVar(n){function r(e){var t;return 0<arguments.length?n!==e&&(n=e,i.forEach(function(e){getCacheInfo(e).dep.dirty(r),broadcast(e)}),t=Array.from(o),o.clear(),t.forEach(function(e){return e(n)})):(t=cacheSlot.getValue())&&(a(t),getCacheInfo(t).dep(r)),n}var i=new Set,o=new Set,a=(r.onNextChange=function(e){return o.add(e),function(){o.delete(e)}},r.attachCache=function(e){return i.add(e),getCacheInfo(e).vars.add(r),r});return r.forgetCache=function(e){return i.delete(e)},r}function broadcast(e){e.broadcastWatches&&e.broadcastWatches()}var specifierInfoCache=Object.create(null);function lookupSpecifierInfo(e){e=JSON.stringify(e);return specifierInfoCache[e]||(specifierInfoCache[e]=Object.create(null))}function keyFieldsFnFromSpecifier(t){var e=lookupSpecifierInfo(t);return e.keyFieldsFn||(e.keyFieldsFn=function(n,r){function i(e,t){return r.readField(t,e)}var e=r.keyObject=collectSpecifierPaths(t,function(e){var t=extractKeyPath(r.storeObject,e,i);return void 0===t&&n!==r.storeObject&&hasOwn$c.call(n,e[0])&&(t=extractKeyPath(n,e,extractKey)),invariant$6(void 0!==t,2,e.join("."),n),t});return"".concat(r.typename,":").concat(JSON.stringify(e))})}function keyArgsFnFromSpecifier(n){var e=lookupSpecifierInfo(n);return e.keyArgsFn||(e.keyArgsFn=function(o,e){var a=e.field,s=e.variables,e=e.fieldName,t=collectSpecifierPaths(n,function(e){var t,n,r=e[0],i=r.charAt(0);return"@"===i?a&&isNonEmptyArray(a.directives)?(t=r.slice(1),(n=(n=a.directives.find(function(e){return e.name.value===t}))&&argumentsObjectFromField(n,s))&&extractKeyPath(n,e.slice(1))):void 0:"$"===i?(n=r.slice(1),s&&hasOwn$c.call(s,n)?((i=e.slice(0))[0]=n,extractKeyPath(s,i)):void 0):o?extractKeyPath(o,e):void 0}),t=JSON.stringify(t);return!o&&"{}"===t||(e+=":"+t),e})}function collectSpecifierPaths(e,o){var a=new DeepMerger;return getSpecifierPaths(e).reduce(function(e,t){var n,r=o(t);if(void 0!==r){for(var i=t.length-1;0<=i;--i)(n={})[t[i]]=r,r=n;e=a.merge(e,r)}return e},Object.create(null))}function getSpecifierPaths(n){var r,i,e=lookupSpecifierInfo(n);return e.paths||(r=e.paths=[],i=[],n.forEach(function(e,t){isArray$9(e)?(getSpecifierPaths(e).forEach(function(e){return r.push(i.concat(e))}),i.length=0):(i.push(e),isArray$9(n[t+1])||(r.push(i.slice(0)),i.length=0))})),e.paths}function extractKey(e,t){return e[t]}function extractKeyPath(e,t,r){return r=r||extractKey,normalize$6(t.reduce(function t(e,n){return isArray$9(e)?e.map(function(e){return t(e,n)}):e&&r(e,n)},e))}function normalize$6(t){return isNonNullObject(t)?isArray$9(t)?t.map(normalize$6):collectSpecifierPaths(Object.keys(t).sort(),function(e){return extractKeyPath(t,e)}):t}function argsFromFieldSpecifier(e){return void 0!==e.args?e.args:e.field?argumentsObjectFromField(e.field,e.variables):null}getStoreKeyName.setStringify(canonicalStringify);var nullKeyFieldsFn=function(){},simpleKeyArgsFn=function(e,t){return t.fieldName},mergeTrueFn=function(e,t,n){return(0,n.mergeObjects)(e,t)},mergeFalseFn=function(e,t){return t},Policies=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=__assign$2({dataIdFromObject:defaultDataIdFromObject},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n=this,r=t&&(t.typename||(null==(r=t.storeObject)?void 0:r.__typename))||e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,o=t&&t.storeObject||e,a=__assign$2(__assign$2({},t),{typename:r,storeObject:o,readField:t&&t.readField||function(){var e=normalizeReadFieldOptions(arguments,o);return n.readField(e,{store:n.cache.data,variables:e.variables})}}),t=r&&this.getTypePolicy(r),s=t&&t.keyFn||this.config.dataIdFromObject;s;){var l=s(__assign$2(__assign$2({},e),o),a);if(!isArray$9(l)){i=l;break}s=keyFieldsFnFromSpecifier(l)}return i=i?String(i):void 0,a.keyObject?[i,a.keyObject]:[i]},e.prototype.addTypePolicies=function(o){var a=this;Object.keys(o).forEach(function(e){var t=o[e],n=t.queryType,r=t.mutationType,i=t.subscriptionType,t=__rest$7(t,["queryType","mutationType","subscriptionType"]);n&&a.setRootTypename("Query",e),r&&a.setRootTypename("Mutation",e),i&&a.setRootTypename("Subscription",e),hasOwn$c.call(a.toBeAdded,e)?a.toBeAdded[e].push(t):a.toBeAdded[e]=[t]})},e.prototype.updateTypePolicy=function(i,e){var o=this,t=this.getTypePolicy(i),n=e.keyFields,a=e.fields;function s(e,t){e.merge="function"==typeof t?t:!0===t?mergeTrueFn:!1===t?mergeFalseFn:e.merge}s(t,e.merge),t.keyFn=!1===n?nullKeyFieldsFn:isArray$9(n)?keyFieldsFnFromSpecifier(n):"function"==typeof n?n:t.keyFn,a&&Object.keys(a).forEach(function(e){var t,n,r=o.getFieldPolicy(i,e,!0),e=a[e];"function"==typeof e?r.read=e:(t=e.keyArgs,n=e.read,e=e.merge,r.keyFn=!1===t?simpleKeyArgsFn:isArray$9(t)?keyArgsFnFromSpecifier(t):"function"==typeof t?t:r.keyFn,"function"==typeof n&&(r.read=n),s(r,e)),r.read&&r.merge&&(r.keyFn=r.keyFn||simpleKeyArgsFn)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(invariant$6(!r||r===e,3,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var r=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){r.getSupertypeSet(n,!0),e[n].forEach(function(e){r.getSupertypeSet(e,!0).add(n);var t=e.match(TypeOrFieldNameRegExp);t&&t[0]===e||r.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(n){var r,i,o=this,e=(hasOwn$c.call(this.typePolicies,n)||((r=this.typePolicies[n]=Object.create(null)).fields=Object.create(null),!(i=this.supertypeMap.get(n))&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(n,!0),this.fuzzySubtypes.forEach(function(e,t){e.test(n)&&(e=o.supertypeMap.get(t))&&e.forEach(function(e){return i.add(e)})})),i&&i.size&&i.forEach(function(e){var e=o.getTypePolicy(e),t=e.fields,e=__rest$7(e,["fields"]);Object.assign(r,e),Object.assign(r.fields,t)})),this.toBeAdded[n]);return e&&e.length&&e.splice(0).forEach(function(e){o.updateTypePolicy(n,e)}),this.typePolicies[n]},e.prototype.getFieldPolicy=function(e,t,n){if(e)return(e=this.getTypePolicy(e).fields)[t]||n&&(e[t]=Object.create(null))},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,n,t,r){var i=this;if(!e.typeCondition)return!0;if(n){var o=e.typeCondition.name.value;if(n===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o)){function a(e){e=i.getSupertypeSet(e,!1);e&&e.size&&l.indexOf(e)<0&&l.push(e)}for(var s=this.getSupertypeSet(n,!0),l=[s],c=!(!t||!this.fuzzySubtypes.size),u=!1,d=0;d<l.length;++d){var p=l[d];if(p.has(o))return s.has(o)||(u&&!1!==globalThis.__DEV__&&invariant$6.warn(4,n,o),s.add(o)),!0;p.forEach(a),c&&d===l.length-1&&selectionSetMatchesResult(e.selectionSet,t,r)&&(u=!(c=!1),this.fuzzySubtypes.forEach(function(e,t){e=n.match(e);e&&e[0]===n&&a(t)}))}}}return!1},e.prototype.hasKeyArgs=function(e,t){e=this.getFieldPolicy(e,t,!1);return!(!e||!e.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),o=i&&i.keyFn;if(o&&n)for(var a={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=argsFromFieldSpecifier(e);o;){var l=o(s,a);if(!isArray$9(l)){t=l||r;break}o=keyArgsFnFromSpecifier(l)}return!1===(t=void 0===t?e.field?storeKeyNameFromField(e.field,e.variables):getStoreKeyName(r,argsFromFieldSpecifier(e)):t)?r:r===fieldNameFromStoreName(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n,r,i,o=e.from;if(o&&(e.field||e.fieldName))return void 0===e.typename&&(n=t.store.getFieldValue(o,"__typename"))&&(e.typename=n),i=fieldNameFromStoreName(n=this.getStoreFieldName(e)),r=t.store.getFieldValue(o,n),(i=(i=this.getFieldPolicy(e.typename,i,!1))&&i.read)?(e=makeFieldFunctionOptions(this,o,e,t,t.store.getStorage(isReference(o)?o.__ref:o,n)),cacheSlot.withValue(this.cache,i,[r,e])):r},e.prototype.getReadFunction=function(e,t){e=this.getFieldPolicy(e,t,!1);return e&&e.read},e.prototype.getMergeFunction=function(e,t,n){e=this.getFieldPolicy(e,t,!1),t=e&&e.merge;return t=!t&&n?(e=this.getTypePolicy(n))&&e.merge:t},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,a=n.typename,n=n.merge;return n===mergeTrueFn?makeMergeObjectsFunction(r.store)(e,t):n===mergeFalseFn?t:n(e=r.overwrite?void 0:e,t,makeFieldFunctionOptions(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null)))},e}();function makeFieldFunctionOptions(e,t,n,r,i){var o=e.getStoreFieldName(n),a=fieldNameFromStoreName(o),s=n.variables||r.variables,l=r.store,c=l.toReference,l=l.canRead;return{args:argsFromFieldSpecifier(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:isReference,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(normalizeReadFieldOptions(arguments,t,s),r)},mergeObjects:makeMergeObjectsFunction(r.store)}}function normalizeReadFieldOptions(e,t,n){var r,i=e[0],o=e[1],a=e.length;return"string"==typeof i?r={fieldName:i,from:1<a?o:t}:(r=__assign$2({},i),hasOwn$c.call(r,"from")||(r.from=t)),!1!==globalThis.__DEV__&&void 0===r.from&&!1!==globalThis.__DEV__&&invariant$6.warn(5,stringifyForDisplay(Array.from(e))),void 0===r.variables&&(r.variables=n),r}function makeMergeObjectsFunction(i){return function(e,t){if(isArray$9(e)||isArray$9(t))throw newInvariantError(6);if(isNonNullObject(e)&&isNonNullObject(t)){var n=i.getFieldValue(e,"__typename"),r=i.getFieldValue(t,"__typename");if(n&&r&&n!==r)return t;if(isReference(e)&&storeValueIsStoreObject(t))return i.merge(e.__ref,t),e;if(storeValueIsStoreObject(e)&&isReference(t))return i.merge(e,t.__ref),t;if(storeValueIsStoreObject(e)&&storeValueIsStoreObject(t))return __assign$2(__assign$2({},e),t)}return t}}function getContextFlavor(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:__assign$2(__assign$2({},e),{clientOnly:t,deferred:n})),i}var StoreWriter=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(s,e){var l=this,t=e.query,n=e.result,r=e.dataId,i=e.variables,e=e.overwrite,o=getOperationDefinition(t),a=makeProcessedFieldsMerger(),i=__assign$2(__assign$2({},getDefaultValues(o)),i),c=__assign$2(__assign$2({store:s,written:Object.create(null),merge:function(e,t){return a.merge(e,t)},variables:i,varString:canonicalStringify(i)},extractFragmentContext(t,this.fragments)),{overwrite:!!e,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),i=this.processSelectionSet({result:n||Object.create(null),dataId:r,selectionSet:o.selectionSet,mergeTree:{map:new Map},context:c});if(isReference(i))return c.incomingById.forEach(function(e,t){var n,r=e.storeObject,i=e.mergeTree,e=e.fieldNodeSet,o=makeReference(t);if(i&&i.map.size){var a=l.applyMerges(i,o,r,c);if(isReference(a))return;r=a}!1===globalThis.__DEV__||c.overwrite||(n=Object.create(null),e.forEach(function(e){e.selectionSet&&(n[e.name.value]=!0)}),Object.keys(r).forEach(function(e){!0!==n[fieldNameFromStoreName(e)]||function(e){e=i&&i.map.get(e);return Boolean(e&&e.info&&e.info.merge)}(e)||warnAboutDataLoss(o,r,e,c.store)})),s.merge(t,r)}),s.retain(i.__ref),i;throw newInvariantError(9,n)},e.prototype.processSelectionSet=function(e){function a(){var e=normalizeReadFieldOptions(arguments,d,i.variables);if(isReference(e.from)){var t=i.incomingById.get(e.from.__ref);if(t){t=u.readField(__assign$2(__assign$2({},e),{from:t.storeObject}),i);if(void 0!==t)return t}}return u.readField(e,i)}var t,s=this,n=e.dataId,l=e.result,r=e.selectionSet,i=e.context,c=e.mergeTree,u=this.cache.policies,d=Object.create(null),p=n&&u.rootTypenamesById[n]||getTypenameFromResult(l,r,i.fragmentMap)||n&&i.store.get(n,"__typename"),f=("string"==typeof p&&(d.__typename=p),new Set);this.flattenFields(r,l,i,p).forEach(function(e,t){var n,r,i,o=resultKeyNameFromField(t),o=l[o];f.add(t),void 0!==o?(n=u.getStoreFieldName({typename:p,fieldName:t.name.value,field:t,variables:e.variables}),r=getChildMergeTree(c,n),o=s.processFieldValue(o,t,t.selectionSet?getContextFlavor(e,!1,!1):e,r),i=void 0,t.selectionSet&&(isReference(o)||storeValueIsStoreObject(o))&&(i=a("__typename",o)),(i=u.getMergeFunction(p,t.name.value,i))?r.info={field:t,typename:p,merge:i}:maybeRecycleChildMergeTree(c,n),d=e.merge(d,((r={})[n]=o,r))):!1===globalThis.__DEV__||e.clientOnly||e.deferred||addTypenameToDocument.added(t)||u.getReadFunction(p,t.name.value)||!1!==globalThis.__DEV__&&invariant$6.error(10,resultKeyNameFromField(t),l)});try{var o=u.identify(l,{typename:p,selectionSet:r,fragmentMap:i.fragmentMap,storeObject:d,readField:a}),h=o[0],m=o[1],n=n||h;m&&(d=i.merge(d,m))}catch(e){if(!n)throw e}return"string"==typeof n?(e=makeReference(n),0<=(o=i.written[n]||(i.written[n]=[])).indexOf(r)||(o.push(r),this.reader&&this.reader.isFresh(l,e,r,i))||((t=i.incomingById.get(n))?(t.storeObject=i.merge(t.storeObject,d),t.mergeTree=mergeMergeTrees(t.mergeTree,c),f.forEach(function(e){return t.fieldNodeSet.add(e)})):i.incomingById.set(n,{storeObject:d,mergeTree:mergeTreeIsEmpty(c)?void 0:c,fieldNodeSet:f})),e):d},e.prototype.processFieldValue=function(e,n,r,i){var o=this;return n.selectionSet&&null!==e?isArray$9(e)?e.map(function(e,t){e=o.processFieldValue(e,n,r,getChildMergeTree(i,t));return maybeRecycleChildMergeTree(i,t),e}):this.processSelectionSet({result:e,selectionSet:n.selectionSet,context:r,mergeTree:i}):!1!==globalThis.__DEV__?cloneDeep(e):e},e.prototype.flattenFields=function(e,a,s,l){void 0===l&&(l=getTypenameFromResult(a,e,s.fragmentMap));var c=new Map,u=this.cache.policies,n=new Trie(!1);return function i(e,o){var t=n.lookup(e,o.clientOnly,o.deferred);t.visited||(t.visited=!0,e.selections.forEach(function(e){if(shouldInclude(e,s.variables)){var n=o.clientOnly,r=o.deferred;if(n&&r||!isNonEmptyArray(e.directives)||e.directives.forEach(function(e){var t=e.name.value;"client"===t&&(n=!0),"defer"!==t||(t=argumentsObjectFromField(e,s.variables))&&!1===t.if||(r=!0)}),isField(e)){var t=c.get(e);t&&(n=n&&t.clientOnly,r=r&&t.deferred),c.set(e,getContextFlavor(s,n,r))}else{t=getFragmentFromSelection(e,s.lookupFragment);if(!t&&e.kind===Kind$1.FRAGMENT_SPREAD)throw newInvariantError(11,e.name.value);t&&u.fragmentMatches(t,l,a,s.variables)&&i(t.selectionSet,getContextFlavor(s,n,r))}}}))}(e,s),c},e.prototype.applyMerges=function(e,t,n,i,o){var a,s,l,c,u=this;return e.map.size&&!isReference(n)&&(a=isArray$9(n)||!isReference(t)&&!storeValueIsStoreObject(t)?void 0:t,s=n,a&&!o&&(o=[isReference(a)?a.__ref:a]),c=function(e,t){return isArray$9(e)?"number"==typeof t?e[t]:void 0:i.store.getFieldValue(e,String(t))},e.map.forEach(function(e,t){var n=c(a,t),r=c(s,t);void 0!==r&&(o&&o.push(t),(e=u.applyMerges(e,n,r,i,o))!==r&&(l=l||new Map).set(t,e),o)&&invariant$6(o.pop()===t)}),l)&&(n=isArray$9(s)?s.slice(0):__assign$2({},s),l.forEach(function(e,t){n[t]=e})),e.info?this.cache.policies.runMergeFunction(t,n,e.info,i,o&&(t=i.store).getStorage.apply(t,o)):n},e}(),emptyMergeTreePool=[];function getChildMergeTree(e,t){e=e.map;return e.has(t)||e.set(t,emptyMergeTreePool.pop()||{map:new Map}),e.get(t)}function mergeMergeTrees(t,n){var e,r,i,o;return t===n||!n||mergeTreeIsEmpty(n)?t:!t||mergeTreeIsEmpty(t)?n:(e=t.info&&n.info?__assign$2(__assign$2({},t.info),n.info):t.info||n.info,r=t.map.size&&n.map.size,i={info:e,map:r?new Map:(t.map.size?t:n).map},r&&(o=new Set(n.map.keys()),t.map.forEach(function(e,t){i.map.set(t,mergeMergeTrees(e,n.map.get(t))),o.delete(t)}),o.forEach(function(e){i.map.set(e,mergeMergeTrees(n.map.get(e),t.map.get(e)))})),i)}function mergeTreeIsEmpty(e){return!e||!(e.info||e.map.size)}function maybeRecycleChildMergeTree(e,t){var e=e.map,n=e.get(t);n&&mergeTreeIsEmpty(n)&&(emptyMergeTreePool.push(n),e.delete(t))}var warnings=new Set;function warnAboutDataLoss(e,t,n,r){function i(e){return"object"==typeof(e=r.getFieldValue(e,n))&&e}var o,a,s,l=i(e);!l||!(o=i(t))||isReference(l)||equal(l,o)||Object.keys(l).every(function(e){return void 0!==r.getFieldValue(o,e)})||(e=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),t=fieldNameFromStoreName(n),a="".concat(e,".").concat(t),warnings.has(a))||(warnings.add(a),s=[],isArray$9(l)||isArray$9(o)||[l,o].forEach(function(e){e=r.getFieldValue(e,"__typename");"string"!=typeof e||s.includes(e)||s.push(e)}),!1!==globalThis.__DEV__&&invariant$6.warn(12,t,e,s.length?"either ensure all objects of type "+s.join(" and ")+" have an ID or a custom merge function, or ":"",a,l,o))}var NetworkStatus,InMemoryCache=function(n){function e(e){void 0===e&&(e={});var t=n.call(this)||this;return t.watches=new Set,t.addTypenameTransform=new DocumentTransform(addTypenameToDocument),t.assumeImmutableResults=!0,t.makeVar=makeVar,t.txCount=0,t.config=normalizeConfig(e),t.addTypename=!!t.config.addTypename,t.policies=new Policies({cache:t,dataIdFromObject:t.config.dataIdFromObject,possibleTypes:t.config.possibleTypes,typePolicies:t.config.typePolicies}),t.init(),t}return __extends(e,n),e.prototype.init=function(){var e=this.data=new EntityStore.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},e.prototype.resetResultCache=function(e){var o=this,t=this.storeReader,n=this.config.fragments;this.storeWriter=new StoreWriter(this,this.storeReader=new StoreReader({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:shouldCanonizeResults(this.config),canon:e?void 0:t&&t.canon,fragments:n}),n),this.maybeBroadcastWatch=wrap$3(function(e,t){return o.broadcastWatch(e,t)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t,n,r,i=e.optimistic?o.optimisticData:o.data;if(supportsResultCaching(i))return t=e.optimistic,n=e.id,r=e.variables,i.makeCacheKey(e.query,e.callback,canonicalStringify({optimistic:t,id:n,variables:r}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},e.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},e.prototype.extract=function(e){return((e=void 0===e?!1:e)?this.optimisticData:this.data).extract()},e.prototype.read=function(e){var t=e.returnPartialData,t=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(__assign$2(__assign$2({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:t})).result||null}catch(e){if(e instanceof MissingFieldError)return null;throw e}},e.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},e.prototype.modify=function(e){if(hasOwn$c.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},e.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(__assign$2(__assign$2({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},e.prototype.watch=function(e){var t=this;return this.watches.size||recallCache(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&forgetCache(t),t.maybeBroadcastWatch.forget(e)}},e.prototype.gc=function(e){canonicalStringify.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},e.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},e.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},e.prototype.identify=function(e){if(isReference(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&invariant$6.warn(e)}},e.prototype.evict=function(e){if(!e.id){if(hasOwn$c.call(e,"id"))return!1;e=__assign$2(__assign$2({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},e.prototype.reset=function(e){var t=this;return this.init(),canonicalStringify.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),forgetCache(this)):this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(e){e=this.optimisticData.removeLayer(e);e!==this.optimisticData&&(this.optimisticData=e,this.broadcastWatches())},e.prototype.batch=function(e){function t(e){var t=i.data,n=i.optimisticData;++i.txCount,e&&(i.data=i.optimisticData=e);try{return r=o(i)}finally{--i.txCount,i.data=t,i.optimisticData=n}}var r,i=this,o=e.update,n=e.optimistic,n=void 0===n||n,a=e.removeOptimistic,s=e.onWatchUpdated,l=new Set;return s&&!this.txCount&&this.broadcastWatches(__assign$2(__assign$2({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof n?this.optimisticData=this.optimisticData.addLayer(n,t):!1===n?t(this.data):t(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),s&&l.size?(this.broadcastWatches(__assign$2(__assign$2({},e),{onWatchUpdated:function(e,t){t=s.call(this,e,t);return!1!==t&&l.delete(e),t}})),l.size&&l.forEach(function(e){return i.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),r},e.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},e.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},e.prototype.broadcastWatches=function(t){var n=this;this.txCount||this.watches.forEach(function(e){return n.maybeBroadcastWatch(e,t)})},e.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},e.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},e.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated)&&!1===t.onWatchUpdated.call(this,e,r,n)||n&&equal(n.result,r.result)||e.callback(e.lastDiff=r,n)},e}(ApolloCache);function isNetworkRequestInFlight(e){return!!e&&e<7}function equalByQuery(e,t,n,r){var i=t.data,t=__rest$7(t,["data"]),o=n.data;return equal(t,__rest$7(n,["data"]))&&equalBySelectionSet(getMainDefinition(e).selectionSet,i,o,{fragmentMap:createFragmentMap(getFragmentDefinitions(e)),variables:r})}function equalBySelectionSet(e,l,c,u){var d;return l===c||(d=new Set,e.selections.every(function(e){if(d.has(e))return!0;if(d.add(e),!shouldInclude(e,u.variables))return!0;if(selectionHasNonreactiveDirective(e))return!0;if(isField(e)){var t=resultKeyNameFromField(e),n=l&&l[t],r=c&&c[t],i=e.selectionSet;if(!i)return equal(n,r);var t=Array.isArray(n),o=Array.isArray(r);if(t!==o)return!1;if(t&&o){var a=n.length;if(r.length!==a)return!1;for(var s=0;s<a;++s)if(!equalBySelectionSet(i,n[s],r[s],u))return!1;return!0}return equalBySelectionSet(i,n,r,u)}t=getFragmentFromSelection(e,u.fragmentMap);return t?!!selectionHasNonreactiveDirective(t)||equalBySelectionSet(t.selectionSet,l,c,u):void 0}))}function selectionHasNonreactiveDirective(e){return!!e.directives&&e.directives.some(directiveIsNonreactive)}function directiveIsNonreactive(e){return"nonreactive"===e.name.value}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(NetworkStatus=NetworkStatus||{});var assign$3=Object.assign,hasOwnProperty$9=Object.hasOwnProperty,ObservableQuery=function(s){function e(e){var t=e.queryManager,n=e.queryInfo,e=e.options,r=s.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=defaultSubscriptionObserverErrorCallback)}catch(e){}var t=!r.observers.size,n=(r.observers.add(e),r.last);return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),t&&r.reobserve().catch(function(){}),function(){r.observers.delete(e)&&!r.observers.size&&r.tearDownQuery()}})||this,i=(r.observers=new Set,r.subscriptions=new Set,r.queryInfo=n,r.queryManager=t,r.waitForOwnResult=skipCacheDataFor(e.fetchPolicy),r.isTornDown=!1,t.defaultOptions.watchQuery),i=(void 0===i?{}:i).fetchPolicy,i=void 0===i?"cache-first":i,o=e.fetchPolicy,o=void 0===o?i:o,a=e.initialFetchPolicy,i=void 0===a?"standby"===o?i:o:a,a=(r.options=__assign$2(__assign$2({},e),{initialFetchPolicy:i,fetchPolicy:o}),r.queryId=n.queryId||t.generateQueryId(),getOperationDefinition(r.query));return r.queryName=a&&a.name&&a.name.value,r}return __extends(e,s),Object.defineProperty(e.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),e.prototype.result=function(){var i=this;return new Promise(function(t,e){var n={next:function(e){t(e),i.observers.delete(n),i.observers.size||i.queryManager.removeQuery(i.queryId),setTimeout(function(){r.unsubscribe()},0)},error:e},r=i.subscribe(n)})},e.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t,n=this.getLastResult(!0),r=this.queryInfo.networkStatus||n&&n.networkStatus||NetworkStatus.ready,n=__assign$2(__assign$2({},n),{loading:isNetworkRequestInFlight(r),networkStatus:r}),r=this.options.fetchPolicy,r=void 0===r?"cache-first":r;return skipCacheDataFor(r)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers||(this.waitForOwnResult?this.queryInfo.updateWatch():(((t=this.queryInfo.getDiff()).complete||this.options.returnPartialData)&&(n.data=t.result),equal(n.data,{})&&(n.data=void 0),t.complete?(delete n.partial,!t.complete||n.networkStatus!==NetworkStatus.loading||"cache-first"!==r&&"cache-only"!==r||(n.networkStatus=NetworkStatus.ready,n.loading=!1)):n.partial=!0,!1===globalThis.__DEV__||t.complete||this.options.partialRefetch||n.loading||n.data||n.error||logMissingFieldErrors(t.missing))),e&&this.updateLastResult(n),n},e.prototype.isDifferentFromLastResult=function(e,t){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!equalByQuery(this.query,this.last.result,e,this.variables):!equal(this.last.result,e))||t&&!equal(this.last.variables,t)},e.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||equal(n.variables,this.variables)))return n[e]},e.prototype.getLastResult=function(e){return this.getLast("result",e)},e.prototype.getLastError=function(e){return this.getLast("error",e)},e.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},e.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;return n.fetchPolicy="cache-and-network"===r?r:"no-cache"===r?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&hasOwnProperty$9.call(e,"variables")&&((t=(r=getQueryDefinition(this.query)).variableDefinitions)&&t.some(function(e){return"variables"===e.variable.name.value})||!1!==globalThis.__DEV__&&invariant$6.warn(18,e,(null==(t=r.name)?void 0:t.value)||r)),e&&!equal(this.options.variables,e)&&(n.variables=this.options.variables=__assign$2(__assign$2({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,NetworkStatus.refetch)},e.prototype.fetchMore=function(r){var i=this,o=__assign$2(__assign$2({},r.query?r:__assign$2(__assign$2(__assign$2(__assign$2({},this.options),{query:this.options.query}),r),{variables:__assign$2(__assign$2({},this.options.variables),r.variables)})),{fetchPolicy:"no-cache"}),e=(o.query=this.transformDocument(o.query),this.queryManager.generateQueryId()),t=(this.lastQuery=r.query?this.transformDocument(this.options.query):o.query,this.queryInfo),a=t.networkStatus,s=(t.networkStatus=NetworkStatus.fetchMore,o.notifyOnNetworkStatusChange&&this.observe(),new Set);return this.queryManager.fetchQuery(e,o,NetworkStatus.fetchMore).then(function(n){return i.queryManager.removeQuery(e),t.networkStatus===NetworkStatus.fetchMore&&(t.networkStatus=a),i.queryManager.cache.batch({update:function(e){var t=r.updateQuery;t?e.updateQuery({query:i.query,variables:i.variables,returnPartialData:!0,optimistic:!1},function(e){return t(e,{fetchMoreResult:n.data,variables:o.variables})}):e.writeQuery({query:o.query,variables:o.variables,data:n.data})},onWatchUpdated:function(e){s.add(e.query)}}),n}).finally(function(){s.has(i.query)||reobserveCacheFirst(i)})},e.prototype.subscribeToMore=function(t){var e=this,n=this.queryManager.startGraphQLSubscription({query:t.document,variables:t.variables,context:t.context}).subscribe({next:function(n){var r=t.updateQuery;r&&e.updateQuery(function(e,t){t=t.variables;return r(e,{subscriptionData:n,variables:t})})},error:function(e){t.onError?t.onError(e):!1!==globalThis.__DEV__&&invariant$6.error(19,e)}});return this.subscriptions.add(n),function(){e.subscriptions.delete(n)&&n.unsubscribe()}},e.prototype.setOptions=function(e){return this.reobserve(e)},e.prototype.silentSetOptions=function(e){e=compact$1(this.options,e||{});assign$3(this.options,e)},e.prototype.setVariables=function(e){return equal(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},NetworkStatus.setVariables):Promise.resolve())},e.prototype.updateQuery=function(e){var t=this.queryManager,e=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});e&&(t.cache.writeQuery({query:this.options.query,data:e,variables:this.variables}),t.broadcastQueries())},e.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},e.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},e.prototype.applyNextFetchPolicy=function(e,t){var n,r;return t.nextFetchPolicy&&(n=void 0===(n=t.fetchPolicy)?"cache-first":n,r=void 0===(r=t.initialFetchPolicy)?n:r,"standby"!==n)&&("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:r}):t.fetchPolicy="variables-changed"===e?r:t.nextFetchPolicy),t.fetchPolicy},e.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t)},e.prototype.updatePolling=function(){var e,t,n,r,i=this;this.queryManager.ssrMode||(e=this.pollingInfo,(t=this.options.pollInterval)?e&&e.interval===t||(invariant$6(t,20),(e||(this.pollingInfo={})).interval=t,n=function(){i.pollingInfo&&(isNetworkRequestInFlight(i.queryInfo.networkStatus)?r():i.reobserve({fetchPolicy:"no-cache"===i.options.initialFetchPolicy?"no-cache":"network-only"},NetworkStatus.poll).then(r,r))},(r=function(){var e=i.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(n,e.interval))})()):e&&(clearTimeout(e.timeout),delete this.pollingInfo))},e.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var n=this.getLastError();return n&&this.last&&!equal(t,this.last.variables)&&(n=void 0),this.last=__assign$2({result:this.queryManager.assumeImmutableResults?e:cloneDeep(e),variables:t},n?{error:n}:null)},e.prototype.reobserveAsConcast=function(e,t){function n(){r.concast===u&&(r.waitForOwnResult=!1)}var r=this,i=(this.isTornDown=!1,t===NetworkStatus.refetch||t===NetworkStatus.fetchMore||t===NetworkStatus.poll),o=this.options.variables,a=this.options.fetchPolicy,s=compact$1(this.options,e||{}),s=i?s:assign$3(this.options,s),l=this.transformDocument(s.query),e=(this.lastQuery=l,i||(this.updatePolling(),e&&e.variables&&!equal(e.variables,o)&&"standby"!==s.fetchPolicy&&s.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",s),void 0===t)&&(t=NetworkStatus.setVariables)),l===s.query?s:__assign$2(__assign$2({},s),{query:l})),c=(this.waitForOwnResult&&(this.waitForOwnResult=skipCacheDataFor(e.fetchPolicy)),e.variables&&__assign$2({},e.variables)),o=this.fetch(e,t),u=o.concast,a=o.fromLink,s={next:function(e){n(),r.reportResult(e,c)},error:function(e){n(),r.reportError(e,c)}};return i||!a&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=u,this.observer=s),u.addObserver(s),u},e.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},e.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},e.prototype.reportResult=function(e,t){var n=this.getLastError(),r=this.isDifferentFromLastResult(e,t);!n&&e.partial&&!this.options.returnPartialData||this.updateLastResult(e,t),(n||r)&&iterateObserversSafely(this.observers,"next",e)},e.prototype.reportError=function(e,t){var n=__assign$2(__assign$2({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:NetworkStatus.error,loading:!1});this.updateLastResult(n,t),iterateObserversSafely(this.observers,"error",this.last.error=e)},e.prototype.hasObservers=function(){return 0<this.observers.size},e.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},e.prototype.transformDocument=function(e){return this.queryManager.transform(e)},e}(Observable);function reobserveCacheFirst(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return"function"==typeof(this.nextFetchPolicy=r)?r.apply(this,arguments):n}}):e.reobserve()}function defaultSubscriptionObserverErrorCallback(e){!1!==globalThis.__DEV__&&invariant$6.error(21,e.message,e.stack)}function logMissingFieldErrors(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&invariant$6.debug(22,e)}function skipCacheDataFor(e){return"network-only"===e||"no-cache"===e||"standby"===e}fixObservableSubclass(ObservableQuery);var LocalState=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,e=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),e&&this.setFragmentMatcher(e)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=mergeDeep(t.resolvers,e)}):this.resolvers=mergeDeep(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,e=e.onlyRunForcedResolvers,o=void 0!==e&&e;return __awaiter$g(this,void 0,void 0,function(){return __generator$1(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,o).then(function(e){return __assign$2(__assign$2({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return hasDirectives(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return removeClientSetsFromDocument(e)},e.prototype.prepareContext=function(e){var t=this.cache;return __assign$2(__assign$2({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),__awaiter$g(this,void 0,void 0,function(){return __generator$1(this,function(e){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,n)||{},this.prepareContext(r),n).then(function(e){return __assign$2(__assign$2({},n),e.exportedVariables)})]:[2,__assign$2({},n)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return visit$3(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return BREAK$1}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:buildQueryFromSelectionSet(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(l,c,u,d,p,f){return void 0===u&&(u={}),void 0===d&&(d={}),void 0===p&&(p=function(){return!0}),void 0===f&&(f=!1),__awaiter$g(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return __generator$1(this,function(e){return t=getMainDefinition(l),n=getFragmentDefinitions(l),n=createFragmentMap(n),r=this.collectSelectionsToResolve(t,n),i=t.operation,i=i?i.charAt(0).toUpperCase()+i.slice(1):"Query",o=(a=this).cache,a=a.client,s={fragmentMap:n,context:__assign$2(__assign$2({},u),{cache:o,client:a}),variables:d,fragmentMatcher:p,defaultOperationType:i,exportedVariables:{},selectionsToResolve:r,onlyRunForcedResolvers:f},[2,this.resolveSelectionSet(t.selectionSet,!1,c,s).then(function(e){return{result:e,exportedVariables:s.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(r,l,c,u){return __awaiter$g(this,void 0,void 0,function(){var i,o,a,s,t,n=this;return __generator$1(this,function(e){return i=u.fragmentMap,o=u.context,a=u.variables,s=[c],t=function(r){return __awaiter$g(n,void 0,void 0,function(){var t,n;return __generator$1(this,function(e){return(l||u.selectionsToResolve.has(r))&&shouldInclude(r,a)?isField(r)?[2,this.resolveField(r,l,c,u).then(function(e){var t;void 0!==e&&s.push(((t={})[resultKeyNameFromField(r)]=e,t))})]:(isInlineFragment(r)?t=r:(t=i[r.name.value],invariant$6(t,16,r.name.value)),t&&t.typeCondition&&(n=t.typeCondition.name.value,u.fragmentMatcher(c,n,o))?[2,this.resolveSelectionSet(t.selectionSet,l,c,u).then(function(e){s.push(e)})]:[2]):[2]})})},[2,Promise.all(r.selections.map(t)).then(function(){return mergeDeepArray(s)})]})})},e.prototype.resolveField=function(c,u,d,p){return __awaiter$g(this,void 0,void 0,function(){var t,n,r,i,o,a,s,l=this;return __generator$1(this,function(e){return d?(t=p.variables,n=c.name.value,r=resultKeyNameFromField(c),i=n!==r,o=d[r]||d[n],a=Promise.resolve(o),p.onlyRunForcedResolvers&&!this.shouldForceResolvers(c)||(s=d.__typename||p.defaultOperationType,(s=this.resolvers&&this.resolvers[s])&&(s=s[i?n:r])&&(a=Promise.resolve(cacheSlot.withValue(this.cache,s,[d,argumentsObjectFromField(c,t),p.context,{field:c,fragmentMap:p.fragmentMap}])))),[2,a.then(function(t){var e;return void 0===t&&(t=o),c.directives&&c.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(p.exportedVariables[e.value.value]=t)})}),!c.selectionSet||null==t?t:(e=null!=(e=null==(e=c.directives)?void 0:e.some(function(e){return"client"===e.name.value}))&&e,Array.isArray(t)?l.resolveSubSelectedArray(c,u||e,t,p):c.selectionSet?l.resolveSelectionSet(c.selectionSet,u||e,t,p):void 0)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,e,r){var i=this;return Promise.all(e.map(function(e){return null===e?null:Array.isArray(e)?i.resolveSubSelectedArray(t,n,e,r):t.selectionSet?i.resolveSelectionSet(t.selectionSet,n,e,r):void 0}))},e.prototype.collectSelectionsToResolve=function(e,l){function c(e){return!Array.isArray(e)}var t=this.selectionsToResolveCache;return function a(e){var s;return t.has(e)||(s=new Set,t.set(e,s),visit$3(e,{Directive:function(e,t,n,r,i){"client"===e.name.value&&i.forEach(function(e){c(e)&&isSelectionNode(e)&&s.add(e)})},FragmentSpread:function(e,t,n,r,i){var o=l[e.name.value];invariant$6(o,17,e.name.value),0<(o=a(o)).size&&(i.forEach(function(e){c(e)&&isSelectionNode(e)&&s.add(e)}),s.add(e),o.forEach(function(e){s.add(e)}))}})),t.get(e)}(e)},e}(),destructiveMethodCounts=new(canUseWeakMap?WeakMap:Map);function wrapDestructiveCacheMethod(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return destructiveMethodCounts.set(e,(destructiveMethodCounts.get(e)+1)%1e15),n.apply(this,arguments)})}function cancelNotifyTimeout(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var QueryInfo=function(){function t(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;t=this.cache=e.cache;destructiveMethodCounts.has(t)||(destructiveMethodCounts.set(t,0),wrapDestructiveCacheMethod(t,"evict"),wrapDestructiveCacheMethod(t,"modify"),wrapDestructiveCacheMethod(t,"reset"))}return t.prototype.init=function(e){var t=e.networkStatus||NetworkStatus.loading;return this.variables&&this.networkStatus!==NetworkStatus.loading&&!equal(this.variables,e.variables)&&(t=NetworkStatus.setVariables),equal(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},t.prototype.reset=function(){cancelNotifyTimeout(this),this.dirty=!1},t.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&equal(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var e=this.observableQuery;return e&&"no-cache"===e.options.fetchPolicy?{complete:!1}:(e=this.cache.diff(t),this.updateLastDiff(e,t),e)},t.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},t.prototype.getDiffOptions=function(e){return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(e=this.observableQuery)?void 0:e.options.canonizeResults}},t.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||equal(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout)||(this.notifyTimeout=setTimeout(function(){return t.notify()},0))},t.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),(this.observableQuery=e)?(e.queryInfo=this).listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():reobserveCacheFirst(e)}):delete this.oqListener)},t.prototype.notify=function(){var t=this;cancelNotifyTimeout(this),this.shouldNotify()&&this.listeners.forEach(function(e){return e(t)}),this.dirty=!1},t.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(isNetworkRequestInFlight(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},t.prototype.stop=function(){var e;!this.stopped&&(this.stopped=!0,this.reset(),this.cancel(),this.cancel=t.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()}),e=this.observableQuery)&&e.stopPolling()},t.prototype.cancel=function(){},t.prototype.updateWatch=function(e){var t=this,n=(void 0===e&&(e=this.variables),this.observableQuery);n&&"no-cache"===n.options.fetchPolicy||(n=__assign$2(__assign$2({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}}),this.lastWatch&&equal(n,this.lastWatch))||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=n))},t.prototype.resetLastWrite=function(){this.lastWrite=void 0},t.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===destructiveMethodCounts.get(this.cache)&&equal(t,n.variables)&&equal(e.data,n.result.data))},t.prototype.markResult=function(n,r,i,o){var e,a=this,t=new DeepMerger,s=isNonEmptyArray(n.errors)?n.errors.slice(0):[];this.reset(),"incremental"in n&&isNonEmptyArray(n.incremental)?(e=mergeIncrementalData(this.getDiff().result,n),n.data=e):"hasNext"in n&&n.hasNext&&(e=this.getDiff(),n.data=t.merge(e.result,n.data)),this.graphQLErrors=s,"no-cache"===i.fetchPolicy?this.updateLastDiff({result:n.data,complete:!0},this.getDiffOptions(i.variables)):0!==o&&(shouldWriteResult(n,i.errorPolicy)?this.cache.performTransaction(function(e){if(a.shouldWrite(n,i.variables))e.writeQuery({query:r,data:n.data,variables:i.variables,overwrite:1===o}),a.lastWrite={result:n,variables:i.variables,dmCount:destructiveMethodCounts.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete)return void(n.data=a.lastDiff.diff.result);var t=a.getDiffOptions(i.variables),e=e.diff(t);a.stopped||a.updateWatch(i.variables),a.updateLastDiff(e,t),e.complete&&(n.data=e.result)}):this.lastWrite=void 0)},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=NetworkStatus.ready},t.prototype.markError=function(e){return this.networkStatus=NetworkStatus.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},t}();function shouldWriteResult(e,t){var t="ignore"===(t=void 0===t?"none":t)||"all"===t,n=!graphQLResultHasError(e);return n=!n&&t&&e.data?!0:n}var hasOwnProperty$8=Object.prototype.hasOwnProperty,QueryManager=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,i=e.documentTransform,o=e.queryDeduplication,o=void 0!==o&&o,a=e.onBroadcast,s=e.ssrMode,s=void 0!==s&&s,l=e.clientAwareness,l=void 0===l?{}:l,c=e.localState,e=e.assumeImmutableResults,e=void 0===e?!!t.assumeImmutableResults:e,u=this,d=(this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(canUseWeakMap?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,new DocumentTransform(function(e){return u.cache.transformDocument(e)},{cache:!1}));this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=o,this.clientAwareness=l,this.localState=c||new LocalState({cache:t}),this.ssrMode=s,this.assumeImmutableResults=e,this.documentTransform=i?d.concat(i).concat(d):d,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var n=this;this.queries.forEach(function(e,t){n.stopQueryNoBroadcast(t)}),this.cancelPendingFetches(newInvariantError(23))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(e){return e(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var a=e.mutation,s=e.variables,l=e.optimisticResponse,c=e.updateQueries,t=e.refetchQueries,u=void 0===t?[]:t,t=e.awaitRefetchQueries,d=void 0!==t&&t,p=e.update,f=e.onQueryUpdated,t=e.fetchPolicy,h=void 0===t?(null==(n=this.defaultOptions.mutate)?void 0:n.fetchPolicy)||"network-only":t,n=e.errorPolicy,m=void 0===n?(null==(t=this.defaultOptions.mutate)?void 0:t.errorPolicy)||"none":n,g=e.keepRootFields,y=e.context;return __awaiter$g(this,void 0,void 0,function(){var r,t,i,o;return __generator$1(this,function(e){switch(e.label){case 0:return(invariant$6(a,24),invariant$6("network-only"===h||"no-cache"===h,25),r=this.generateMutationId(),a=this.cache.transformForLink(this.transform(a)),t=this.getDocumentInfo(a).hasClientExports,s=this.getVariables(a,s),t)?[4,this.localState.addExportedVariables(a,s,y)]:[3,2];case 1:s=e.sent(),e.label=2;case 2:return i=this.mutationStore&&(this.mutationStore[r]={mutation:a,variables:s,loading:!0,error:null}),l&&this.markMutationOptimistic(l,{mutationId:r,document:a,variables:s,fetchPolicy:h,errorPolicy:m,context:y,updateQueries:c,update:p,keepRootFields:g}),this.broadcastQueries(),o=this,[2,new Promise(function(t,n){return asyncMap(o.getObservableFromLink(a,__assign$2(__assign$2({},y),{optimisticResponse:l}),s,!1),function(e){if(graphQLResultHasError(e)&&"none"===m)throw new ApolloError({graphQLErrors:getGraphQLErrorsFromResult(e)});i&&(i.loading=!1,i.error=null);e=__assign$2({},e);return"function"==typeof u&&(u=u(e)),"ignore"===m&&graphQLResultHasError(e)&&delete e.errors,o.markMutationResult({mutationId:r,result:e,document:a,variables:s,fetchPolicy:h,errorPolicy:m,context:y,update:p,updateQueries:c,awaitRefetchQueries:d,refetchQueries:u,removeOptimistic:l?r:void 0,onQueryUpdated:f,keepRootFields:g})}).subscribe({next:function(e){o.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(e){i&&(i.loading=!1,i.error=e),l&&o.cache.removeOptimistic(r),o.broadcastQueries(),n(e instanceof ApolloError?e:new ApolloError({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(i,o){var e,t,a,s=this,l=(void 0===o&&(o=this.cache),i.result),c=[],u="no-cache"===i.fetchPolicy;if(!u&&shouldWriteResult(l,i.errorPolicy)&&(isExecutionPatchIncrementalResult(l)||c.push({result:l.data,dataId:"ROOT_MUTATION",query:i.document,variables:i.variables}),isExecutionPatchIncrementalResult(l)&&isNonEmptyArray(l.incremental)&&(t=void 0)!==(t=(e=o.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(i.document).asQuery,variables:i.variables,optimistic:!1,returnPartialData:!0})).result?mergeIncrementalData(e.result,l):t)&&(l.data=t,c.push({result:t,dataId:"ROOT_MUTATION",query:i.document,variables:i.variables})),a=i.updateQueries)&&this.queries.forEach(function(e,t){var n,r,i,e=e.observableQuery,e=e&&e.queryName;e&&hasOwnProperty$8.call(a,e)&&(e=a[e],n=(t=s.queries.get(t)).document,t=t.variables,r=(i=o.diff({query:n,variables:t,returnPartialData:!0,optimistic:!1})).result,i.complete)&&r&&(i=e(r,{mutationResult:l,queryName:n&&getOperationName(n)||void 0,queryVariables:t}))&&c.push({result:i,dataId:"ROOT_QUERY",query:n,variables:t})}),0<c.length||i.refetchQueries||i.update||i.onQueryUpdated||i.removeOptimistic){var n=[];if(this.refetchQueries({updateCache:function(t){u||c.forEach(function(e){return t.write(e)});var e,n=i.update,r=!isExecutionPatchResult(l)||isExecutionPatchIncrementalResult(l)&&!l.hasNext;n&&(u||(e=t.diff({id:"ROOT_MUTATION",query:s.getDocumentInfo(i.document).asQuery,variables:i.variables,optimistic:!1,returnPartialData:!0})).complete&&("incremental"in(l=__assign$2(__assign$2({},l),{data:e.result}))&&delete l.incremental,"hasNext"in l)&&delete l.hasNext,r)&&n(t,l,{context:i.context,variables:i.variables}),u||i.keepRootFields||!r||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,t=t.DELETE;return"__typename"===n?e:t}})},include:i.refetchQueries,optimistic:!1,removeOptimistic:i.removeOptimistic,onQueryUpdated:i.onQueryUpdated||null}).forEach(function(e){return n.push(e)}),i.awaitRefetchQueries||i.onQueryUpdated)return Promise.all(n).then(function(){return l})}return Promise.resolve(l)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult(__assign$2(__assign$2({},t),{result:{data:r}}),e)}catch(e){!1!==globalThis.__DEV__&&invariant$6.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast.promise},e.prototype.getQueryStore=function(){var n=Object.create(null);return this.queries.forEach(function(e,t){n[t]={variables:e.variables,networkStatus:e.networkStatus,networkError:e.networkError,graphQLErrors:e.graphQLErrors}}),n},e.prototype.resetErrors=function(e){e=this.queries.get(e);e&&(e.networkError=void 0,e.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t,n=this.transformCache;return n.has(e)||(t={hasClientExports:hasClientExports(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:hasDirectives(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:removeDirectivesFromDocument([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:getDefaultValues(getOperationDefinition(e)),asQuery:__assign$2(__assign$2({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?__assign$2(__assign$2({},e),{operation:"query"}):e})})},n.set(e,t)),n.get(e)},e.prototype.getVariables=function(e,t){return __assign$2(__assign$2({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query),n=(void 0===(e=__assign$2(__assign$2({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1),new QueryInfo(this)),e=new ObservableQuery({queryManager:this,queryInfo:n,options:e});return e.lastQuery=t,this.queries.set(e.queryId,n),n.init({document:t,observableQuery:e,variables:e.variables}),e},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),invariant$6(e.query,26),invariant$6("Document"===e.query.kind,27),invariant$6(!e.returnPartialData,28),invariant$6(!e.pollInterval,29),this.fetchQuery(t,__assign$2(__assign$2({},e),{query:this.transform(e.query)})).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){e=this.queries.get(e);e&&e.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(newInvariantError(30)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=NetworkStatus.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(i){var r=this,o=(void 0===i&&(i="active"),new Map),a=new Map,t=new Set;return Array.isArray(i)&&i.forEach(function(e){"string"==typeof e?a.set(e,!1):isDocumentNode(e)?a.set(r.transform(e),!1):isNonNullObject(e)&&e.query&&t.add(e)}),this.queries.forEach(function(e,t){var n,r=e.observableQuery,e=e.document;r&&("all"===i?o.set(t,r):(n=r.queryName,"standby"===r.options.fetchPolicy||"active"===i&&!r.hasObservers()||("active"===i||n&&a.has(n)||e&&a.has(e))&&(o.set(t,r),n&&a.set(n,!0),e)&&a.set(e,!0)))}),t.size&&t.forEach(function(e){var t=makeUniqueId("legacyOneTimeQuery"),n=r.getQuery(t).init({document:e.query,variables:e.variables}),e=new ObservableQuery({queryManager:r,queryInfo:n,options:__assign$2(__assign$2({},e),{fetchPolicy:"network-only"})});invariant$6(e.queryId===t),n.setObservableQuery(e),o.set(t,e)}),!1!==globalThis.__DEV__&&a.size&&a.forEach(function(e,t){e||!1!==globalThis.__DEV__&&invariant$6.warn("string"==typeof t?31:32,t)}),o},e.prototype.reFetchObservableQueries=function(r){var i=this,o=(void 0===r&&(r=!1),[]);return this.getObservableQueries(r?"all":"active").forEach(function(e,t){var n=e.options.fetchPolicy;e.resetLastResults(),(r||"standby"!==n&&"cache-only"!==n)&&o.push(e.refetch()),i.getQuery(t).setDiff(null)}),this.broadcastQueries(),Promise.all(o)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){function t(i){return o.getObservableFromLink(a,c,i).map(function(e){"no-cache"!==s&&(shouldWriteResult(e,l)&&o.cache.write({query:a,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:i}),o.broadcastQueries());var t,n=graphQLResultHasError(e),r=graphQLResultHasProtocolErrors(e);if(n||r)throw t={},n&&(t.graphQLErrors=e.errors),r&&(t.protocolErrors=e.extensions[PROTOCOL_ERRORS_SYMBOL]),new ApolloError(t);return e})}var r,o=this,a=e.query,s=e.fetchPolicy,l=e.errorPolicy,n=e.variables,e=e.context,c=void 0===e?{}:e,a=this.transform(a),n=this.getVariables(a,n);return this.getDocumentInfo(a).hasClientExports?(r=this.localState.addExportedVariables(a,n,c).then(t),new Observable(function(t){var n=null;return r.then(function(e){return n=e.subscribe(t)},t.error),function(){return n&&n.unsubscribe()}})):t(n)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o,a,s,l,c,u=this,d=(void 0===r&&(r=null!=(d=null==t?void 0:t.queryDeduplication)?d:this.queryDeduplication),this.getDocumentInfo(e)),e=d.serverQuery,p=d.clientQuery;return e?(i=this.inFlightLinkObservables,d=this.link,o={query:e,variables:n,operationName:getOperationName(e)||void 0,context:this.prepareContext(__assign$2(__assign$2({},t),{forceFetch:!r}))},t=o.context,r?(a=print$1(e),s=i.get(a)||new Map,i.set(a,s),l=canonicalStringify(n),(c=s.get(l))||(r=new Concast([execute$1(d,o)]),s.set(l,c=r),r.beforeNext(function(){s.delete(l)&&s.size<1&&i.delete(a)}))):c=new Concast([execute$1(d,o)])):(c=new Concast([Observable.of({data:{}})]),t=this.prepareContext(t)),c=p?asyncMap(c,function(e){return u.localState.runResolvers({document:p,remoteResult:e,context:t,variables:n})}):c},e.prototype.getResultsFromLink=function(r,i,o){var a=r.lastRequestId=this.generateRequestId(),s=this.cache.transformForLink(o.query);return asyncMap(this.getObservableFromLink(s,o.context,o.variables),function(e){var t=getGraphQLErrorsFromResult(e),n=0<t.length;if(a>=r.lastRequestId){if(n&&"none"===o.errorPolicy)throw r.markError(new ApolloError({graphQLErrors:t}));r.markResult(e,s,o,i),r.markReady()}e={data:e.data,loading:!1,networkStatus:NetworkStatus.ready};return n&&"ignore"!==o.errorPolicy&&(e.errors=t,e.networkStatus=NetworkStatus.error),e},function(e){e=isApolloError(e)?e:new ApolloError({networkError:e});throw a>=r.lastRequestId&&r.markError(e),e})},e.prototype.fetchConcastWithInfo=function(e,t,n){function r(e){return g.variables=e,e=s.fetchQueryByPolicy(u,g,n),"standby"!==g.fetchPolicy&&0<e.sources.length&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),e}function i(){return s.fetchCancelFns.delete(e)}var o,a,s=this,l=(void 0===n&&(n=NetworkStatus.loading),t.query),c=this.getVariables(l,t.variables),u=this.getQuery(e),d=this.defaultOptions.watchQuery,p=t.fetchPolicy,p=void 0===p?d&&d.fetchPolicy||"cache-first":p,f=t.errorPolicy,d=void 0===f?d&&d.errorPolicy||"none":f,f=t.returnPartialData,h=t.notifyOnNetworkStatusChange,m=t.context,g=Object.assign({},t,{query:l,variables:c,fetchPolicy:p,errorPolicy:d,returnPartialData:void 0!==f&&f,notifyOnNetworkStatusChange:void 0!==h&&h,context:void 0===m?{}:m});return this.fetchCancelFns.set(e,function(e){i(),setTimeout(function(){return a.cancel(e)})}),this.getDocumentInfo(g.query).hasClientExports?(a=new Concast(this.localState.addExportedVariables(g.query,g.variables,g.context).then(r).then(function(e){return e.sources})),o=!0):(o=(l=r(g.variables)).fromLink,a=new Concast(l.sources)),a.promise.then(i,i),{concast:a,fromLink:o}},e.prototype.refetchQueries=function(e){var o=this,t=e.updateCache,n=e.include,r=e.optimistic,r=void 0!==r&&r,i=e.removeOptimistic,i=void 0===i?r?makeUniqueId("refetchQueries"):void 0:i,a=e.onQueryUpdated,s=new Map,l=(n&&this.getObservableQueries(n).forEach(function(e,t){s.set(t,{oq:e,lastDiff:o.getQuery(t).getDiff()})}),new Map);return t&&this.cache.batch({update:t,optimistic:r&&i||!1,removeOptimistic:i,onWatchUpdated:function(e,t,n){var r,e=e.watcher instanceof QueryInfo&&e.watcher.observableQuery;if(e){if(a)return s.delete(e.queryId),!1!==(r=!0===(r=a(e,t,n))?e.refetch():r)&&l.set(e,r),r;null!==a&&s.set(e.queryId,{oq:e,lastDiff:n,diff:t})}}}),s.size&&s.forEach(function(e,t){var n,r=e.oq,i=e.lastDiff,e=e.diff;a&&(e||((n=r.queryInfo).reset(),e=n.getDiff()),n=a(r,e,i)),!1!==(n=a&&!0!==n?n:r.refetch())&&l.set(r,n),0<=t.indexOf("legacyOneTimeQuery")&&o.stopQueryNoBroadcast(t)}),i&&this.cache.removeOptimistic(i),l},e.prototype.fetchQueryByPolicy=function(i,e,t){function n(){return i.getDiff(c)}function r(t,n){function r(e){return Observable.of(__assign$2({data:e,loading:isNetworkRequestInFlight(n),networkStatus:n},t.complete?null:{partial:!0}))}void 0===n&&(n=i.networkStatus||NetworkStatus.loading);var e=t.result;return!1===globalThis.__DEV__||f||equal(e,{})||logMissingFieldErrors(t.missing),e&&s.getDocumentInfo(l).hasForcedResolvers?s.localState.runResolvers({document:l,remoteResult:{data:e},context:h,variables:c,onlyRunForcedResolvers:!0}).then(function(e){return r(e.data||void 0)}):"none"===p&&n===NetworkStatus.refetch&&Array.isArray(t.missing)?r(void 0):r(e)}function o(){return s.getResultsFromLink(i,g,{query:l,variables:c,context:h,fetchPolicy:u,errorPolicy:p})}var a,s=this,l=e.query,c=e.variables,u=e.fetchPolicy,d=e.refetchWritePolicy,p=e.errorPolicy,f=e.returnPartialData,h=e.context,e=e.notifyOnNetworkStatusChange,m=i.networkStatus,g=(i.init({document:l,variables:c,networkStatus:t}),"no-cache"===u?0:t===NetworkStatus.refetch&&"merge"!==d?1:2),y=e&&"number"==typeof m&&m!==t&&isNetworkRequestInFlight(t);switch(u){default:case"cache-first":return(a=n()).complete?{fromLink:!1,sources:[r(a,i.markReady())]}:f||y?{fromLink:!0,sources:[r(a),o()]}:{fromLink:!0,sources:[o()]};case"cache-and-network":return(a=n()).complete||f||y?{fromLink:!0,sources:[r(a),o()]}:{fromLink:!0,sources:[o()]};case"cache-only":return{fromLink:!1,sources:[r(n(),i.markReady())]};case"network-only":return y?{fromLink:!0,sources:[r(n()),o()]}:{fromLink:!0,sources:[o()]};case"no-cache":return y?{fromLink:!0,sources:[r(i.getDiff()),o()]}:{fromLink:!0,sources:[o()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new QueryInfo(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){e=this.localState.prepareContext(e=void 0===e?{}:e);return __assign$2(__assign$2({},e),{clientAwareness:this.clientAwareness})},e}(),hasSuggestedDevtools=!1,ApolloClient=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw newInvariantError(13);var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.documentTransform,s=e.ssrMode,s=void 0!==s&&s,l=e.ssrForceFetchDelay,l=void 0===l?0:l,c=e.connectToDevTools,c=void 0===c?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:c,u=e.queryDeduplication,u=void 0===u||u,d=e.defaultOptions,p=e.assumeImmutableResults,p=void 0===p?o.assumeImmutableResults:p,f=e.resolvers,h=e.typeDefs,m=e.fragmentMatcher,g=e.name,y=e.version,e=(e=e.link)||(n?new HttpLink({uri:n,credentials:r,headers:i}):ApolloLink.empty());this.link=e,this.cache=o,this.disableNetworkFetches=s||0<l,this.queryDeduplication=u,this.defaultOptions=d||Object.create(null),this.typeDefs=h,l&&setTimeout(function(){return t.disableNetworkFetches=!1},l),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),c&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!hasSuggestedDevtools&&c&&!1!==globalThis.__DEV__&&(hasSuggestedDevtools=!0,"undefined"!=typeof window)&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__&&(n=void 0,"string"==typeof(i=(r=window.navigator)&&r.userAgent)&&(-1<i.indexOf("Chrome/")?n="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":-1<i.indexOf("Firefox/")&&(n="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),n)&&!1!==globalThis.__DEV__&&invariant$6.log("Download the Apollo DevTools for a better development experience: %s",n),this.version=version$2,this.localState=new LocalState({cache:o,client:this,resolvers:f,fragmentMatcher:m}),this.queryManager=new QueryManager({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:a,queryDeduplication:u,ssrMode:s,clientAwareness:{name:g,version:y},localState:this.localState,assumeImmutableResults:p,onBroadcast:c?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=mergeOptions(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=__assign$2(__assign$2({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=mergeOptions(this.defaultOptions.query,e)),invariant$6("cache-and-network"!==e.fetchPolicy,14),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=__assign$2(__assign$2({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=mergeOptions(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return this.cache.readQuery(e,t=void 0===t?!1:t)},e.prototype.readFragment=function(e,t){return this.cache.readFragment(e,t=void 0===t?!1:t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return execute$1(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(t){var e=this;return this.resetStoreCallbacks.push(t),function(){e.resetStoreCallbacks=e.resetStoreCallbacks.filter(function(e){return e!==t})}},e.prototype.onClearStore=function(t){var e=this;return this.clearStoreCallbacks.push(t),function(){e.clearStoreCallbacks=e.clearStoreCallbacks.filter(function(e){return e!==t})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var e=this.queryManager.refetchQueries(e),n=[],r=[],e=(e.forEach(function(e,t){n.push(t),r.push(e)}),Promise.all(r));return e.queries=n,e.results=r,e.catch(function(e){!1!==globalThis.__DEV__&&invariant$6.debug(15,e)}),e},e.prototype.getObservableQueries=function(e){return this.queryManager.getObservableQueries(e=void 0===e?"active":e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),docCache=new Map,fragmentSourceMap=new Map,printFragmentWarnings=!0,experimentalFragmentVariables=!1;function normalize$5(e){return e.replace(/[\s,]+/g," ").trim()}function cacheKeyFromLoc(e){return normalize$5(e.source.body.substring(e.start,e.end))}function processFragments(e){var i=new Set,o=[];return e.definitions.forEach(function(e){var t,n,r;"FragmentDefinition"===e.kind?(t=e.name.value,n=cacheKeyFromLoc(e.loc),(r=fragmentSourceMap.get(t))&&!r.has(n)?printFragmentWarnings&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):r||fragmentSourceMap.set(t,r=new Set),r.add(n),i.has(n)||(i.add(n),o.push(e))):o.push(e)}),__assign$2(__assign$2({},e),{definitions:o})}function stripLoc(e){var n=new Set(e.definitions),t=(n.forEach(function(t){t.loc&&delete t.loc,Object.keys(t).forEach(function(e){e=t[e];e&&"object"==typeof e&&n.add(e)})}),e.loc);return t&&(delete t.startToken,delete t.endToken),e}function parseDocument(e){var t=normalize$5(e);if(!docCache.has(t)){e=parse$8(e,{experimentalFragmentVariables:experimentalFragmentVariables,allowLegacyFragmentVariables:experimentalFragmentVariables});if(!e||"Document"!==e.kind)throw new Error("Not a valid GraphQL document.");docCache.set(t,stripLoc(processFragments(e)))}return docCache.get(t)}function gql(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];var r=(n="string"==typeof n?[n]:n)[0];return e.forEach(function(e,t){e&&"Document"===e.kind?r+=e.loc.source.body:r+=e,r+=n[t+1]}),parseDocument(r)}function resetCaches(){docCache.clear(),fragmentSourceMap.clear()}function disableFragmentWarnings(){printFragmentWarnings=!1}function enableExperimentalFragmentVariables(){experimentalFragmentVariables=!0}function disableExperimentalFragmentVariables(){experimentalFragmentVariables=!1}var extras={gql:gql,resetCaches:resetCaches,disableFragmentWarnings:disableFragmentWarnings,enableExperimentalFragmentVariables:enableExperimentalFragmentVariables,disableExperimentalFragmentVariables:disableExperimentalFragmentVariables},client=(!function(e){e.gql=extras.gql,e.resetCaches=extras.resetCaches,e.disableFragmentWarnings=extras.disableFragmentWarnings,e.enableExperimentalFragmentVariables=extras.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=extras.disableExperimentalFragmentVariables}(gql=gql||{}),gql.default=gql,{}),backo2=Backoff$1;function Backoff$1(e){this.ms=(e=e||{}).min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=0<e.jitter&&e.jitter<=1?e.jitter:0,this.attempts=0}Backoff$1.prototype.duration=function(){var e,t,n=this.ms*Math.pow(this.factor,this.attempts++);return this.jitter&&(e=Math.random(),t=Math.floor(e*this.jitter*n),n=0==(1&Math.floor(10*e))?n-t:n+t),0|Math.min(n,this.max)},Backoff$1.prototype.reset=function(){this.attempts=0},Backoff$1.prototype.setMin=function(e){this.ms=e},Backoff$1.prototype.setMax=function(e){this.max=e},Backoff$1.prototype.setJitter=function(e){this.jitter=e};var eventemitter3={exports:{}},isString$7=(!function(e){var r=Object.prototype.hasOwnProperty,f="~";function n(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,n,r,i){if("function"!=typeof n)throw new TypeError("The listener must be a function");n=new o(n,r||e,i),r=f?f+t:t;return e._events[r]?e._events[r].fn?e._events[r]=[e._events[r],n]:e._events[r].push(n):(e._events[r]=n,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function t(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(f=!1)),t.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(f?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},t.prototype.listeners=function(e){var e=f?f+e:e,t=this._events[e];if(!t)return[];if(t.fn)return[t.fn];for(var n=0,r=t.length,i=new Array(r);n<r;n++)i[n]=t[n].fn;return i},t.prototype.listenerCount=function(e){e=f?f+e:e,e=this._events[e];return e?e.fn?1:e.length:0},t.prototype.emit=function(e,t,n,r,i,o){var a=f?f+e:e;if(!this._events[a])return!1;var s,l=this._events[a],c=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,r),!0;case 5:return l.fn.call(l.context,t,n,r,i),!0;case 6:return l.fn.call(l.context,t,n,r,i,o),!0}for(p=1,s=new Array(c-1);p<c;p++)s[p-1]=arguments[p];l.fn.apply(l.context,s)}else for(var u,d=l.length,p=0;p<d;p++)switch(l[p].once&&this.removeListener(e,l[p].fn,void 0,!0),c){case 1:l[p].fn.call(l[p].context);break;case 2:l[p].fn.call(l[p].context,t);break;case 3:l[p].fn.call(l[p].context,t,n);break;case 4:l[p].fn.call(l[p].context,t,n,r);break;default:if(!s)for(u=1,s=new Array(c-1);u<c;u++)s[u-1]=arguments[u];l[p].fn.apply(l[p].context,s)}return!0},t.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},t.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},t.prototype.removeListener=function(e,t,n,r){e=f?f+e:e;if(this._events[e])if(t){var i=this._events[e];if(i.fn)i.fn!==t||r&&!i.once||n&&i.context!==n||l(this,e);else{for(var o=0,a=[],s=i.length;o<s;o++)(i[o].fn!==t||r&&!i[o].once||n&&i[o].context!==n)&&a.push(i[o]);a.length?this._events[e]=1===a.length?a[0]:a:l(this,e)}}else l(this,e);return this},t.prototype.removeAllListeners=function(e){return e?(e=f?f+e:e,this._events[e]&&l(this,e)):(this._events=new n,this._eventsCount=0),this},t.prototype.off=t.prototype.removeListener,t.prototype.addListener=t.prototype.on,t.prefixed=f,e.exports=t.EventEmitter=t}(eventemitter3),{});function isString$6(e){return"string"==typeof e}Object.defineProperty(isString$7,"__esModule",{value:!0}),isString$7.default=isString$6;var isObject$h={};function isObject$g(e){return null!==e&&"object"==typeof e}Object.defineProperty(isObject$h,"__esModule",{value:!0}),isObject$h.default=isObject$g;var printer={},visitor={},inspect$1={},nodejsCustomInspectSymbol$1={},nodejsCustomInspectSymbol=(Object.defineProperty(nodejsCustomInspectSymbol$1,"__esModule",{value:!0}),nodejsCustomInspectSymbol$1.default=void 0,"function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0),_default$g=nodejsCustomInspectSymbol,_nodejsCustomInspectSymbol$1=(nodejsCustomInspectSymbol$1.default=_default$g,Object.defineProperty(inspect$1,"__esModule",{value:!0}),inspect$1.default=inspect,_interopRequireDefault$j(nodejsCustomInspectSymbol$1));function _interopRequireDefault$j(e){return e&&e.__esModule?e:{default:e}}function _typeof$z(e){return(_typeof$z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var MAX_ARRAY_LENGTH$1=10,MAX_RECURSIVE_DEPTH=2;function inspect(e){return formatValue(e,[])}function formatValue(e,t){switch(_typeof$z(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":formatObjectValue(e,t);default:return String(e)}}function formatObjectValue(e,t){if(-1!==t.indexOf(e))return"[Circular]";var t=[].concat(t,[e]),n=getCustomFn(e);if(void 0!==n){n=n.call(e);if(n!==e)return"string"==typeof n?n:formatValue(n,t)}else if(Array.isArray(e))return formatArray(e,t);return formatObject(e,t)}function formatObject(t,n){var e=Object.keys(t);return 0===e.length?"{}":n.length>MAX_RECURSIVE_DEPTH?"["+getObjectTag(t)+"]":"{ "+e.map(function(e){return e+": "+formatValue(t[e],n)}).join(", ")+" }"}function formatArray(e,t){if(0===e.length)return"[]";if(t.length>MAX_RECURSIVE_DEPTH)return"[Array]";for(var n=Math.min(MAX_ARRAY_LENGTH$1,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(formatValue(e[o],t));return 1==r?i.push("... 1 more item"):1<r&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}function getCustomFn(e){var t=e[String(_nodejsCustomInspectSymbol$1.default)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}function getObjectTag(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){e=e.constructor.name;if("string"==typeof e&&""!==e)return e}return t}var ast={},defineInspect$1={},invariant$4={};function invariant$3(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}Object.defineProperty(invariant$4,"__esModule",{value:!0}),invariant$4.default=invariant$3,Object.defineProperty(defineInspect$1,"__esModule",{value:!0}),defineInspect$1.default=defineInspect;var _invariant=_interopRequireDefault$i(invariant$4),_nodejsCustomInspectSymbol=_interopRequireDefault$i(nodejsCustomInspectSymbol$1);function _interopRequireDefault$i(e){return e&&e.__esModule?e:{default:e}}function defineInspect(e){var t=e.prototype.toJSON;"function"!=typeof t&&(0,_invariant.default)(0),e.prototype.inspect=t,_nodejsCustomInspectSymbol.default&&(e.prototype[_nodejsCustomInspectSymbol.default]=t)}Object.defineProperty(ast,"__esModule",{value:!0}),ast.isNode=isNode,ast.Token=ast.Location=void 0;var _defineInspect=_interopRequireDefault$h(defineInspect$1);function _interopRequireDefault$h(e){return e&&e.__esModule?e:{default:e}}var Location$1=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}(),Token=(ast.Location=Location$1,(0,_defineInspect.default)(Location$1),function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}());function isNode(e){return null!=e&&"string"==typeof e.kind}ast.Token=Token,(0,_defineInspect.default)(Token),Object.defineProperty(visitor,"__esModule",{value:!0}),visitor.visit=visit$2,visitor.visitInParallel=visitInParallel,visitor.getVisitFn=getVisitFn,visitor.BREAK=visitor.QueryDocumentKeys=void 0;var _inspect=_interopRequireDefault$g(inspect$1),_ast=ast;function _interopRequireDefault$g(e){return e&&e.__esModule?e:{default:e}}var QueryDocumentKeys={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},BREAK=(visitor.QueryDocumentKeys=QueryDocumentKeys,Object.freeze({}));function visit$2(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:QueryDocumentKeys,r=void 0,i=Array.isArray(e),o=[e],a=-1,s=[],l=void 0,c=void 0,u=void 0,d=[],p=[],f=e;do{var h=++a===o.length,m=h&&0!==s.length;if(h){if(c=0===p.length?void 0:d[d.length-1],l=u,u=p.pop(),m){if(i)l=l.slice();else{for(var g={},y=0,$=Object.keys(l);y<$.length;y++){var v=$[y];g[v]=l[v]}l=g}for(var x=0,b=0;b<s.length;b++){var C=s[b][0],S=s[b][1];i&&(C-=x),i&&null===S?(l.splice(C,1),x++):l[C]=S}}a=r.index,o=r.keys,s=r.edits,i=r.inArray,r=r.prev}else{if(c=u?i?a:o[a]:void 0,null==(l=u?u[c]:f))continue;u&&d.push(c)}var w=void 0;if(!Array.isArray(l)){if(!(0,_ast.isNode)(l))throw new Error("Invalid AST Node: ".concat((0,_inspect.default)(l),"."));var _=getVisitFn(t,l.kind,h);if(_){if((w=_.call(t,l,c,u,d,p))===BREAK)break;if(!1===w){if(!h){d.pop();continue}}else if(void 0!==w&&(s.push([c,w]),!h)){if(!(0,_ast.isNode)(w)){d.pop();continue}l=w}}}void 0===w&&m&&s.push([c,l]),h?d.pop():(r={inArray:i,index:a,keys:o,edits:s,prev:r},o=(i=Array.isArray(l))?l:null!=(_=n[l.kind])?_:[],a=-1,s=[],u&&p.push(u),u=l)}while(void 0!==r);return f=0!==s.length?s[s.length-1][1]:f}function visitInParallel(r){var i=new Array(r.length);return{enter:function(e){for(var t=0;t<r.length;t++)if(null==i[t]){var n=getVisitFn(r[t],e.kind,!1);if(n){n=n.apply(r[t],arguments);if(!1===n)i[t]=e;else if(n===BREAK)i[t]=BREAK;else if(void 0!==n)return n}}},leave:function(e){for(var t=0;t<r.length;t++)if(null==i[t]){var n=getVisitFn(r[t],e.kind,!0);if(n){n=n.apply(r[t],arguments);if(n===BREAK)i[t]=BREAK;else if(void 0!==n&&!1!==n)return n}}else i[t]===e&&(i[t]=null)}}}function getVisitFn(e,t,n){var r,i=e[t];return i?n||"function"!=typeof i?"function"==typeof(r=n?i.leave:i.enter)?r:void 0:i:(r=n?e.leave:e.enter)?"function"==typeof r?r:"function"==typeof(i=r[t])?i:void 0:void 0}visitor.BREAK=BREAK;var blockString={};function dedentBlockStringValue(e){var t=e.split(/\r\n|[\n\r]/g),n=getBlockStringIndentation(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var i=0;i<t.length&&isBlank(t[i]);)++i;for(var o=t.length;i<o&&isBlank(t[o-1]);)--o;return t.slice(i,o).join("\n")}function isBlank(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function getBlockStringIndentation(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:r=!(n=!1),i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!=(t=o)?t:0}function printBlockString(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],o=!r||o||a||n,a="";return!o||r&&i||(a+="\n"+t),a+=t?e.replace(/\n/g,"\n"+t):e,o&&(a+="\n"),'"""'+a.replace(/"""/g,'\\"""')+'"""'}Object.defineProperty(blockString,"__esModule",{value:!0}),blockString.dedentBlockStringValue=dedentBlockStringValue,blockString.getBlockStringIndentation=getBlockStringIndentation,blockString.printBlockString=printBlockString,Object.defineProperty(printer,"__esModule",{value:!0}),printer.print=print;var _visitor=visitor,_blockString=blockString;function print(e){return(0,_visitor.visit)(e,{leave:printDocASTReducer})}var MAX_LINE_LENGTH=80,printDocASTReducer={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return join$4(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=wrap$2("(",join$4(e.variableDefinitions,", "),")"),i=join$4(e.directives," "),e=e.selectionSet;return n||i||r||"query"!==t?join$4([t,join$4([n,r]),i,e]," "):e},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,e=e.directives;return t+": "+n+wrap$2(" = ",r)+wrap$2(" ",join$4(e," "))},SelectionSet:function(e){return block(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,e=e.selectionSet,t=wrap$2("",t,": ")+n,n=t+wrap$2("(",join$4(r,", "),")");return n.length>MAX_LINE_LENGTH&&(n=t+wrap$2("(\n",indent(join$4(r,"\n")),"\n)")),join$4([n,join$4(i," "),e]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+wrap$2(" ",join$4(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,e=e.selectionSet;return join$4(["...",wrap$2("on ",t),join$4(n," "),e]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,e=e.selectionSet;return"fragment ".concat(t).concat(wrap$2("(",join$4(r,", "),")")," ")+"on ".concat(n," ").concat(wrap$2("",join$4(i," ")," "))+e},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,_blockString.printBlockString)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+join$4(e.values,", ")+"]"},ObjectValue:function(e){return"{"+join$4(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+wrap$2("(",join$4(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:addDescription(function(e){var t=e.directives,e=e.operationTypes;return join$4(["schema",join$4(t," "),block(e)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:addDescription(function(e){return join$4(["scalar",e.name,join$4(e.directives," ")]," ")}),ObjectTypeDefinition:addDescription(function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join$4(["type",t,wrap$2("implements ",join$4(n," & ")),join$4(r," "),block(e)]," ")}),FieldDefinition:addDescription(function(e){var t=e.name,n=e.arguments,r=e.type,e=e.directives;return t+(hasMultilineItems(n)?wrap$2("(\n",indent(join$4(n,"\n")),"\n)"):wrap$2("(",join$4(n,", "),")"))+": "+r+wrap$2(" ",join$4(e," "))}),InputValueDefinition:addDescription(function(e){var t=e.name,n=e.type,r=e.defaultValue,e=e.directives;return join$4([t+": "+n,wrap$2("= ",r),join$4(e," ")]," ")}),InterfaceTypeDefinition:addDescription(function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join$4(["interface",t,wrap$2("implements ",join$4(n," & ")),join$4(r," "),block(e)]," ")}),UnionTypeDefinition:addDescription(function(e){var t=e.name,n=e.directives,e=e.types;return join$4(["union",t,join$4(n," "),e&&0!==e.length?"= "+join$4(e," | "):""]," ")}),EnumTypeDefinition:addDescription(function(e){var t=e.name,n=e.directives,e=e.values;return join$4(["enum",t,join$4(n," "),block(e)]," ")}),EnumValueDefinition:addDescription(function(e){return join$4([e.name,join$4(e.directives," ")]," ")}),InputObjectTypeDefinition:addDescription(function(e){var t=e.name,n=e.directives,e=e.fields;return join$4(["input",t,join$4(n," "),block(e)]," ")}),DirectiveDefinition:addDescription(function(e){var t=e.name,n=e.arguments,r=e.repeatable,e=e.locations;return"directive @"+t+(hasMultilineItems(n)?wrap$2("(\n",indent(join$4(n,"\n")),"\n)"):wrap$2("(",join$4(n,", "),")"))+(r?" repeatable":"")+" on "+join$4(e," | ")}),SchemaExtension:function(e){var t=e.directives,e=e.operationTypes;return join$4(["extend schema",join$4(t," "),block(e)]," ")},ScalarTypeExtension:function(e){return join$4(["extend scalar",e.name,join$4(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join$4(["extend type",t,wrap$2("implements ",join$4(n," & ")),join$4(r," "),block(e)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join$4(["extend interface",t,wrap$2("implements ",join$4(n," & ")),join$4(r," "),block(e)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,e=e.types;return join$4(["extend union",t,join$4(n," "),e&&0!==e.length?"= "+join$4(e," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,e=e.values;return join$4(["extend enum",t,join$4(n," "),block(e)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,e=e.fields;return join$4(["extend input",t,join$4(n," "),block(e)]," ")}};function addDescription(t){return function(e){return join$4([e.description,t(e)],"\n")}}function join$4(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return null!=(t=null==e?void 0:e.filter(function(e){return e}).join(t))?t:""}function block(e){return wrap$2("{\n",indent(join$4(e,"\n")),"\n}")}function wrap$2(e,t){return null!=t&&""!==t?e+t+(2<arguments.length&&void 0!==arguments[2]?arguments[2]:""):""}function indent(e){return wrap$2(" ",e.replace(/\n/g,"\n "))}function isMultiline(e){return-1!==e.indexOf("\n")}function hasMultilineItems(e){return null!=e&&e.some(isMultiline)}var getOperationAST$1={},kinds={},Kind=(Object.defineProperty(kinds,"__esModule",{value:!0}),kinds.Kind=void 0,Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})),_kinds=(kinds.Kind=Kind,Object.defineProperty(getOperationAST$1,"__esModule",{value:!0}),getOperationAST$1.getOperationAST=getOperationAST,kinds);function getOperationAST(e,t){for(var n=null,r=0,i=e.definitions;r<i.length;r++){var o,a=i[r];if(a.kind===_kinds.Kind.OPERATION_DEFINITION)if(null==t){if(n)return null;n=a}else if((null==(o=a.name)?void 0:o.value)===t)return a}return n}var protocol={},GRAPHQL_WS=(Object.defineProperty(protocol,"__esModule",{value:!0}),protocol.GRAPHQL_SUBSCRIPTIONS=protocol.GRAPHQL_WS=void 0,"graphql-ws"),GRAPHQL_SUBSCRIPTIONS=(protocol.GRAPHQL_WS=GRAPHQL_WS,"graphql-subscriptions"),defaults$1=(protocol.GRAPHQL_SUBSCRIPTIONS=GRAPHQL_SUBSCRIPTIONS,{}),MIN_WS_TIMEOUT=(Object.defineProperty(defaults$1,"__esModule",{value:!0}),defaults$1.WS_TIMEOUT=defaults$1.MIN_WS_TIMEOUT=void 0,1e3),WS_TIMEOUT=(defaults$1.MIN_WS_TIMEOUT=MIN_WS_TIMEOUT,3e4),messageTypes=(defaults$1.WS_TIMEOUT=WS_TIMEOUT,{}),MessageTypes=(Object.defineProperty(messageTypes,"__esModule",{value:!0}),function(){function e(){throw new Error("Static Class")}return e.GQL_CONNECTION_INIT="connection_init",e.GQL_CONNECTION_ACK="connection_ack",e.GQL_CONNECTION_ERROR="connection_error",e.GQL_CONNECTION_KEEP_ALIVE="ka",e.GQL_CONNECTION_TERMINATE="connection_terminate",e.GQL_START="start",e.GQL_DATA="data",e.GQL_ERROR="error",e.GQL_COMPLETE="complete",e.GQL_STOP="stop",e.SUBSCRIPTION_START="subscription_start",e.SUBSCRIPTION_DATA="subscription_data",e.SUBSCRIPTION_SUCCESS="subscription_success",e.SUBSCRIPTION_FAIL="subscription_fail",e.SUBSCRIPTION_END="subscription_end",e.INIT="init",e.INIT_SUCCESS="init_success",e.INIT_FAIL="init_fail",e.KEEP_ALIVE="keepalive",e}()),__assign$1=(messageTypes.default=MessageTypes,commonjsGlobal$3&&commonjsGlobal$3.__assign||function(){return(__assign$1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)}),__awaiter$e=commonjsGlobal$3&&commonjsGlobal$3.__awaiter||function(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})},__generator=commonjsGlobal$3&&commonjsGlobal$3.__generator||function(r,i){var o,a,s,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return l.label++,{value:t[1],done:!1};case 5:l.label++,a=t[1],t=[0];continue;case 7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(s=0<(s=l.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3]))l.label=t[1];else if(6===t[0]&&l.label<s[1])l.label=s[1],s=t;else{if(!(s&&l.label<s[2])){s[2]&&l.ops.pop(),l.trys.pop();continue}l.label=s[2],l.ops.push(t)}}t=i.call(r,l)}catch(e){t=[6,e],a=0}finally{o=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},__spreadArrays=commonjsGlobal$3&&commonjsGlobal$3.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},SubscriptionClient_1=(Object.defineProperty(client,"__esModule",{value:!0}),client.SubscriptionClient=void 0),_global=void 0!==commonjsGlobal$3?commonjsGlobal$3:"undefined"!=typeof window?window:{},NativeWebSocket=_global.WebSocket||_global.MozWebSocket,Backoff=backo2,eventemitter3_1=eventemitter3.exports,is_string_1=isString$7,is_object_1=isObject$h,printer_1=printer,getOperationAST_1=getOperationAST$1,symbol_observable_1=result,protocol_1=protocol,defaults_1=defaults$1,message_types_1=messageTypes,SubscriptionClient=function(){function e(e,t,n,r){var t=t||{},i=t.connectionCallback,i=void 0===i?void 0:i,o=t.connectionParams,o=void 0===o?{}:o,a=t.minTimeout,a=void 0===a?defaults_1.MIN_WS_TIMEOUT:a,s=t.timeout,s=void 0===s?defaults_1.WS_TIMEOUT:s,l=t.reconnect,l=void 0!==l&&l,c=t.reconnectionAttempts,c=void 0===c?1/0:c,u=t.lazy,u=void 0!==u&&u,d=t.inactivityTimeout,d=void 0===d?0:d,t=t.wsOptionArguments,t=void 0===t?[]:t;if(this.wsImpl=n||NativeWebSocket,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=r||protocol_1.GRAPHQL_WS,this.connectionCallback=i,this.url=e,this.operations={},this.nextOperationId=0,this.minWsTimeout=a,this.wsTimeout=s,this.unsentMessagesQueue=[],this.reconnect=l,this.reconnecting=!1,this.reconnectionAttempts=c,this.lazy=!!u,this.inactivityTimeout=d,this.closedByUser=!1,this.backoff=new Backoff({jitter:.5}),this.eventEmitter=new eventemitter3_1.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(o),this.wsOptionArguments=t,this.lazy||this.connect()}return Object.defineProperty(e.prototype,"status",{get:function(){return null===this.client?this.wsImpl.CLOSED:this.client.readyState},enumerable:!1,configurable:!0}),e.prototype.close=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.clearInactivityTimeout(),null!==this.client&&(this.closedByUser=t,e&&(this.clearCheckConnectionInterval(),this.clearMaxConnectTimeout(),this.clearTryReconnectTimeout(),this.unsubscribeAll(),this.sendMessage(void 0,message_types_1.default.GQL_CONNECTION_TERMINATE,null)),this.client.close(),this.client.onopen=null,this.client.onclose=null,this.client.onerror=null,this.client.onmessage=null,this.client=null,this.eventEmitter.emit("disconnected"),e||this.tryReconnect())},e.prototype.request=function(i){var e,o,a=this.getObserver.bind(this),s=this.executeOperation.bind(this),l=this.unsubscribe.bind(this);return this.clearInactivityTimeout(),(e={})[symbol_observable_1.default]=function(){return this},e.subscribe=function(e,t,n){var r=a(e,t,n);return o=s(i,function(e,t){null===e&&null===t?r.complete&&r.complete():e?r.error&&r.error(e[0]):r.next&&r.next(t)}),{unsubscribe:function(){o&&(l(o),o=null)}}},e},e.prototype.on=function(e,t,n){var r=this.eventEmitter.on(e,t,n);return function(){r.off(e,t,n)}},e.prototype.onConnected=function(e,t){return this.on("connected",e,t)},e.prototype.onConnecting=function(e,t){return this.on("connecting",e,t)},e.prototype.onDisconnected=function(e,t){return this.on("disconnected",e,t)},e.prototype.onReconnected=function(e,t){return this.on("reconnected",e,t)},e.prototype.onReconnecting=function(e,t){return this.on("reconnecting",e,t)},e.prototype.onError=function(e,t){return this.on("error",e,t)},e.prototype.unsubscribeAll=function(){var t=this;Object.keys(this.operations).forEach(function(e){t.unsubscribe(e)})},e.prototype.applyMiddlewares=function(a){var e=this;return new Promise(function(t,n){var r,i;function o(e){e?n(e):0<r.length?(e=r.shift())&&e.applyMiddleware.apply(i,[a,o]):t(a)}r=__spreadArrays(e.middlewares),i=e,o()})},e.prototype.use=function(e){var t=this;return e.filter(Boolean).map(function(e){if("function"!=typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(e)}),this},e.prototype.getConnectionParams=function(n){return function(){return new Promise(function(e,t){if("function"==typeof n)try{return e(n.call(null))}catch(e){return t(e)}e(n)})}},e.prototype.executeOperation=function(e,t){var n=this,r=(null===this.client&&this.connect(),this.generateOperationId());return this.operations[r]={options:e,handler:t},this.applyMiddlewares(e).then(function(e){n.checkOperationOptions(e,t),n.operations[r]&&(n.operations[r]={options:e,handler:t},n.sendMessage(r,message_types_1.default.GQL_START,e))}).catch(function(e){n.unsubscribe(r),t(n.formatErrors(e))}),r},e.prototype.getObserver=function(t,n,e){return"function"==typeof t?{next:function(e){return t(e)},error:function(e){return n&&n(e)},complete:function(){return e&&e()}}:t},e.prototype.createMaxConnectTimeGenerator=function(){var e=this.minWsTimeout,t=this.wsTimeout;return new Backoff({min:e,max:t,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var e=this;0<this.inactivityTimeout&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout(function(){0===Object.keys(e.operations).length&&e.close()},this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var n=e.query,r=e.variables,e=e.operationName;if(!n)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!is_string_1.default(n)&&!getOperationAST_1.getOperationAST(n,e)||e&&!is_string_1.default(e)||r&&!is_object_1.default(r))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,n){return{id:e,type:t,payload:n&&n.query?__assign$1(__assign$1({},n),{query:"string"==typeof n.query?n.query:printer_1.print(n.query)}):n}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},e.prototype.sendMessage=function(e,t,n){this.sendMessageRaw(this.buildMessage(e,t,n))},e.prototype.sendMessageRaw=function(t){switch(this.status){case this.wsImpl.OPEN:var e=JSON.stringify(t);try{JSON.parse(e)}catch(e){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+t))}this.client.send(e);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(t);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(t)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e,t=this;!this.reconnect||this.backoff.attempts>=this.reconnectionAttempts||(this.reconnecting||(Object.keys(this.operations).forEach(function(e){t.unsentMessagesQueue.push(t.buildMessage(e,message_types_1.default.GQL_START,t.operations[e].options))}),this.reconnecting=!0),this.clearTryReconnectTimeout(),e=this.backoff.duration(),this.tryReconnectTimeoutId=setTimeout(function(){t.connect()},e))},e.prototype.flushUnsentMessagesQueue=function(){var t=this;this.unsentMessagesQueue.forEach(function(e){t.sendMessageRaw(e)}),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout(function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))},this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e,t=this;this.client=new((e=this.wsImpl).bind.apply(e,__spreadArrays([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return __awaiter$e(t,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return t=e.sent(),this.sendMessage(void 0,message_types_1.default.GQL_CONNECTION_INIT,t),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=e.sent(),this.sendMessage(void 0,message_types_1.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}})})},this.client.onclose=function(){t.closedByUser||t.close(!1,!1)},this.client.onerror=function(e){t.eventEmitter.emit("error",e)},this.client.onmessage=function(e){e=e.data;t.processReceivedData(e)}},e.prototype.processReceivedData=function(t){var e,n;try{n=(e=JSON.parse(t)).id}catch(e){throw new Error("Message must be JSON-parseable. Got: "+t)}if(-1===[message_types_1.default.GQL_DATA,message_types_1.default.GQL_COMPLETE,message_types_1.default.GQL_ERROR].indexOf(e.type)||this.operations[n])switch(e.type){case message_types_1.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(e.payload);break;case message_types_1.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",e.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case message_types_1.default.GQL_COMPLETE:var r=this.operations[n].handler;delete this.operations[n],r.call(this,null,null);break;case message_types_1.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(e.payload),null),delete this.operations[n];break;case message_types_1.default.GQL_DATA:r=e.payload.errors?__assign$1(__assign$1({},e.payload),{errors:this.formatErrors(e.payload.errors)}):e.payload;this.operations[n].handler(null,r);break;case message_types_1.default.GQL_CONNECTION_KEEP_ALIVE:r=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,r&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(n)},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,message_types_1.default.GQL_STOP,void 0))},e}(),SubscriptionClient_1=client.SubscriptionClient=SubscriptionClient,WebSocketLink=function(n){function e(e){var t=n.call(this)||this;return e instanceof SubscriptionClient_1?t.subscriptionClient=e:t.subscriptionClient=new SubscriptionClient_1(e.uri,e.options,e.webSocketImpl),t}return __extends(e,n),e.prototype.request=function(e){return this.subscriptionClient.request(e)},e}(ApolloLink),dev={apiRoot:"https://api.dev.us-1.veritone.com",switchAppUrl:"https://aiware.dev.us-1.veritone.com/switch-app",graphEndpoint:"https://api.dev.us-1.veritone.com/v3/graphql",graphEndpointWS:"wss://api.dev.us-1.veritone.com/v3/graphql",loginUrl:"https://desktop.dev.us-1.veritone.com/ui/auth/login",logoutUrl:"https://desktop.dev.us-1.veritone.com/ui/auth/logout",adminAppUrl:"https://admin.dev.us-1.veritone.com",automateUrl:"https://automate.dev.us-1.veritone.com",automateControllerUrl:"https://automate-controller-v3f.aws-dev-rt.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:dev",cmsAppUrl:"https://cms.dev.us-1.veritone.com",desktopAppUrl:"https://desktop.dev.us-1.veritone.com/"},stage={apiRoot:"https://api.stage.us-1.veritone.com",switchAppUrl:"https://aiware.stage.us-1.veritone.com/switch-app",graphEndpoint:"https://api.stage.us-1.veritone.com/v3/graphql",graphEndpointWS:"wss://api.stage.us-1.veritone.com/v3/graphql",loginUrl:"https://desktop.stage.us-1.veritone.com/ui/auth/login",logoutUrl:"https://desktop.stage.us-1.veritone.com/ui/auth/logout",adminAppUrl:"https://admin.stage.us-1.veritone.com",automateUrl:"https://automate.stage.us-1.veritone.com",automateControllerUrl:"https://automate-controller-v3f.aws-stage-rt.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:stage",cmsAppUrl:"https://cms.stage.us-1.veritone.com",desktopAppUrl:"https://desktop.stage.us-1.veritone.com/"},config$2={dev:dev,stage:stage,"stage-me":{apiRoot:"https://api.stage-me.us-1.veritone.com",switchAppUrl:"https://aiware.stage-me.us-1.veritone.com/switch-app",graphEndpoint:"https://api.stage-me.us-1.veritone.com/v3/graphql",graphEndpointWS:"wss://api.stage-me.us-1.veritone.com/v3/graphql",loginUrl:"https://aiware.stage-me.us-1.veritone.com/login/#",logoutUrl:"https://admin.stage-me.us-1.veritone.com/logout",adminAppUrl:"https://admin.stage-me.us-1.veritone.com",automateUrl:"https://automate.stage-me.us-1.veritone.com",automateControllerUrl:"https://automate-controller-v3f.aws-stage-me-rt.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:stage2",cmsAppUrl:"https://cms.stage-me.us-1.veritone.com",desktopAppUrl:"https://desktop.stage-me.us-1.veritone.com/"},"prod-us-1":{apiRoot:"https://api.us-1.veritone.com",switchAppUrl:"https://aiware.us-1.veritone.com/switch-app",graphEndpoint:"https://api.us-1.veritone.com/v3/graphql",graphEndpointWS:"wss://api.us-1.veritone.com/v3/graphql",loginUrl:"https://desktop.us-1.veritone.com/ui/auth/login",logoutUrl:"https://desktop.us-1.veritone.com/ui/auth/logout",adminAppUrl:"https://admin.us-1.veritone.com",automateUrl:"https://automate.us-1.veritone.com",automateControllerUrl:"https://automate-controller-v3f.aws-prod-rt.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:prod",cmsAppUrl:"https://cms.us-1.veritone.com",desktopAppUrl:"https://desktop.us-1.veritone.com/"},"prod-us-2":{apiRoot:"https://api.us-2.veritone.com",switchAppUrl:"https://aiware.us-2.veritone.com/switch-app",graphEndpoint:"https://api.us-2.veritone.com/v3/graphql",graphEndpointWS:"wss://api.us-2.veritone.com/v3/graphql",loginUrl:"https://login.us-2.veritone.com",logoutUrl:"https://admin.us-2.veritone.com/logout",adminAppUrl:"https://admin.us-2.veritone.com",automateUrl:"https://automate.us-2.veritone.com",automateControllerUrl:"https://v3f-controller-veritone-edge.us-2.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:prod",cmsAppUrl:"https://cms.us-2.veritone.com",desktopAppUrl:"https://desktop.us-2.veritone.com/"},"prod-uk":{apiRoot:"https://api.uk.veritone.com",switchAppUrl:"https://aiware.uk.veritone.com/switch-app",graphEndpoint:"https://api.uk.veritone.com/v3/graphql",graphEndpointWS:"wss://api.uk.veritone.com/v3/graphql",loginUrl:"https://login.veritone.com",logoutUrl:"https://admin.uk.veritone.com/logout",adminAppUrl:"https://admin.uk.veritone.com",automateUrl:"https://automate.uk.veritone.com",automateControllerUrl:"https://automate-controller-v3f.aws-stage-rt.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:stage",cmsAppUrl:"https://cms.uk.veritone.com",desktopAppUrl:"https://desktop.uk.veritone.com/"},"prod-uk-1":{apiRoot:"https://api.uk-1.veritone.com",switchAppUrl:"https://aiware.uk-1.veritone.com/switch-app",graphEndpoint:"https://api.uk-1.veritone.com/v3/graphql",graphEndpointWS:"wss://api.uk-1.veritone.com/v3/graphql",loginUrl:"https://login.veritone.com",logoutUrl:"https://admin.uk-1.veritone.com/logout",adminAppUrl:"https://admin.uk-1.veritone.com",automateUrl:"https://automate.uk-1.veritone.com",automateControllerUrl:"https://automate-controller-v3f.aws-stage-rt.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:stage",cmsAppUrl:"https://cms.uk-1.veritone.com",desktopAppUrl:"https://desktop.uk-1.veritone.com/"},"azure-stage":{apiRoot:"https://api.stage.us-gov-2.veritone.com",switchAppUrl:"https://www.stage.us-gov-2.veritone.com/switch-app",graphEndpoint:"https://api.stage.us-gov-2.veritone.com/v3/graphql",graphEndpointWS:"wss://api.stage.us-gov-2.veritone.com/v3/graphql",loginUrl:"https://www.stage.us-gov-2.veritone.com/login",logoutUrl:"https://admin.stage.us-gov-2.veritone.com/logout",adminAppUrl:"https://admin.stage.us-gov-2.veritone.com",automateUrl:"https://automate.stage.us-gov-2.veritone.com",automateControllerUrl:"https://automate-controller-v3f.aws-stage-rt.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:stage",cmsAppUrl:"https://cms.stage.us-gov-2.veritone.com",desktopAppUrl:"https://desktop.stage.us-gov-2.veritone.com/"},"azure-ca":{apiRoot:"https://api.ca-1.veritone.com",switchAppUrl:"https://www.ca-1.veritone.com/switch-app",graphEndpoint:"https://api.ca-1.veritone.com/v3/graphql",graphEndpointWS:"wss://api.ca-1.veritone.com/v3/graphql",loginUrl:"https://www.ca-1.veritone.com/login",logoutUrl:"https://admin.ca-1.veritone.com/logout",adminAppUrl:"https://admin.ca-1.veritone.com",automateUrl:"https://automate.ca-1.veritone.com",automateControllerUrl:"https://automate-controller-v3f.aws-stage-rt.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:stage",cmsAppUrl:"https://cms.ca-1.veritone.com",desktopAppUrl:"https://desktop.ca-1.veritone.com/"},"azure-prod":{apiRoot:"https://api.us-gov-2.veritone.com",switchAppUrl:"https://www.us-gov-2.veritone.com/switch-app",graphEndpoint:"https://api.us-gov-2.veritone.com/v3/graphql",graphEndpointWS:"wss://api.us-gov-2.veritone.com/v3/graphql",loginUrl:"https://www.us-gov-2.veritone.com/login",logoutUrl:"https://admin.us-gov-2.veritone.com/logout",adminAppUrl:"https://admin.us-gov-2.veritone.com",automateUrl:"https://automate.us-gov-2.veritone.com",automateControllerUrl:"https://automate-controller-v3f.aws-stage-rt.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:stage",cmsAppUrl:"https://cms.us-gov-2.veritone.com",desktopAppUrl:"https://desktop.us-gov-2.veritone.com/"},"aws-sled":{apiRoot:"https://api.us-gov-1.veritone.com",switchAppUrl:"https://aiware.us-gov-1.veritone.com/switch-app",graphEndpoint:"https://api.us-gov-1.veritone.com/v3/graphql",graphEndpointWS:"wss://api.us-gov-1.veritone.com/v3/graphql",loginUrl:"https://aiware.us-gov-1.veritone.com/login",logoutUrl:"https://admin.us-gov-1.veritone.com/logout",adminAppUrl:"https://admin.us-gov-1.veritone.com",automateUrl:"https://automate.us-gov-1.veritone.com",automateControllerUrl:"https://automate-controller-v3f.us-gov-1.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:aws-sled-prod",cmsAppUrl:"https://cms.us-gov-2.veritone.com",desktopAppUrl:"https://desktop.us-gov-2.veritone.com/"},"aws-fed-tenant1":{apiRoot:"https://api.us-fed-1.veritone.com",switchAppUrl:"https://aiware.us-fed-1.veritone.com/switch-app",graphEndpoint:"https://api.us-fed-1.veritone.com/v3/graphql",graphEndpointWS:"wss://api.us-fed-1.veritone.com/v3/graphql",loginUrl:"https://login.us-fed-1.veritone.com",logoutUrl:"https://admin.us-fed-1.veritone.com/logout",adminAppUrl:"https://admin.us-fed-1.veritone.com",automateUrl:"https://automate.us-fed-1.veritone.com",automateControllerUrl:"https://automate-controller-v3f.us-fed-1.veritone.com",controllerNodeRedImage:"911809300469.dkr.ecr.us-gov-west-1.amazonaws.com/node-red-runner-v3:prod",cmsAppUrl:"https://cms.us-fed-1.veritone.com",desktopAppUrl:"https://desktop.us-fed-1.veritone.com/"},"azure-fed-tenant2":{apiRoot:"https://api.us-fed-2.veritone.com",switchAppUrl:"https://aiware.us-fed-2.veritone.com/switch-app",graphEndpoint:"https://api.us-fed-2.veritone.com/v3/graphql",graphEndpointWS:"wss://api.us-fed-2.veritone.com/v3/graphql",loginUrl:"https://login.us-fed-2.veritone.com",logoutUrl:"https://admin.us-fed-2.veritone.com/logout",adminAppUrl:"https://admin.us-fed-2.veritone.com",automateUrl:"https://automate.us-fed-2.veritone.com",automateControllerUrl:"https://automate-controller-v3f.us-fed-2.veritone.com",controllerNodeRedImage:"911809300469.dkr.ecr.us-gov-west-1.amazonaws.com/node-red-runner-v3:prod",cmsAppUrl:"https://cms.us-fed-2.veritone.com",desktopAppUrl:"https://desktop.us-fed-2.veritone.com/"}};function __rest$6(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function __awaiter$d(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}function baseGraphQLApi({query:e,extraHeaders:t,variables:n,operationName:r,graphEndpoint:i,token:o}){return __awaiter$d(this,void 0,void 0,function*(){return(yield fetch(i,{method:"post",body:JSON.stringify({query:e,variables:n,operationName:r}),credentials:"include",headers:Object.assign(Object.assign({"Content-Type":"application/json"},o&&{Authorization:"Bearer "+o}),t)})).json()})}class GqlInstrospection{constructor(e=!1){this.initialized=!1,this.query=[],this.mutation=[],this.types=[],this.introspectionEnabled=!0,this.hashMap={},this.alertDevs=!1,this.params=[],this.safety=e,this.enums={}}initialize(t,n,r,i=!1){var o;return __awaiter$d(this,void 0,void 0,function*(){var e;this.alertDevs=r,this.safety=i,this.initialized||(this.initialized=!0,(e=yield baseGraphQLApi({query:`{
|
|
867
|
+
`;var gqlQueries=Object.freeze({__proto__:null,fetchEngineQuery:fetchEngineQuery,fetchEnginesQuery:fetchEnginesQuery,deleteEngineQuery:deleteEngineQuery,fetchApplicationsQuery:fetchApplicationsQuery,fetchApplicationByIdQuery:fetchApplicationByIdQuery,fetchOrganizationNameQuery:fetchOrganizationNameQuery,fetchTasksQuery:fetchTasksQuery,getRoutesQuery:getRoutesQuery,getSignedUrlQuery:getSignedUrlQuery,createSingleJobQuery:createSingleJobQuery,getJobStatusQuery:getJobStatusQuery,engineResultQuery:engineResultQuery,sendMailMutation:sendMailMutation,fetchTemplateGalleryQuery:fetchTemplateGalleryQuery,fetchTemplateGalleryQueryFallback:fetchTemplateGalleryQueryFallback,getTemplateByIdQuery:getTemplateByIdQuery,getTemplateByIdQueryFallback:getTemplateByIdQueryFallback,createEngineMutation:createEngineMutation,createEngineBuildMutation:createEngineBuildMutation,fetchFlowsQuery:fetchFlowsQuery,fetchFlowsIdsQuery:fetchFlowsIdsQuery,fetchTagByFlowIdQuery:fetchTagByFlowIdQuery,scheduledJobsQuery:scheduledJobsQuery,getGeneratedFetchTagsQueryFromListIds:getGeneratedFetchTagsQueryFromListIds,createJobTemplateQuery:createJobTemplateQuery,runJobTemplateQuery:runJobTemplateQuery,createJobQuery:createJobQuery,isRevisionsExistOnServerQuery:isRevisionsExistOnServerQuery});let apiEndpoint;function setApiEndpoint(e){apiEndpoint=e}const fetchEngine=(n,r,i)=>__awaiter$f(void 0,void 0,void 0,function*(){var e={engineId:n,limit:r},t=gqlQueries["fetchEngineQuery"];return fetchVeritoneGraphQLApi(apiEndpoint,i,t,e)}),fetchTemplateGallery=(e,{isPublic:t,categories:n,tags:r,developers:i,limit:o,offset:a})=>{var s=gqlQueries["fetchTemplateGalleryQuery"];return fetchVeritoneGraphQLApi(apiEndpoint,e,s,{isPublic:t,categories:n,tags:r,developers:i,limit:o,offset:a})},fetchTemplateGalleryFallback=e=>{var t=gqlQueries["fetchTemplateGalleryQueryFallback"];return fetchVeritoneGraphQLApi(apiEndpoint,e,t,{})},fetchFlows=({name:e,owned:t,offset:n,limit:r,authToken:i=""})=>{let o;o=""===e&&null===t?{offset:n,limit:r}:""!==e&&null===t?{name:e,offset:n,limit:r}:""===e&&null!==t?{offset:n,limit:r,owned:t}:{name:e,offset:n,limit:r,owned:t};e=gqlQueries.fetchFlowsQuery;return fetchVeritoneGraphQLApi(apiEndpoint,i,e,o)},deleteEngine=(e,t)=>{var n=gqlQueries["deleteEngineQuery"];return fetchVeritoneGraphQLApi(apiEndpoint,t,n,{id:e})},fetchAllTags=r=>__awaiter$f(void 0,void 0,void 0,function*(){var e=gqlQueries["getGeneratedFetchTagsQueryFromListIds"],e=e(r),e=yield fetchVeritoneGraphQLApi(apiEndpoint,"",e,{});let t=Object.values(lodash.exports.get(e,"data")),n=(t=t.map(e=>e.records[0].tags),[]);return _$3.forEach(t,e=>{n=_$3.union(n,e)}),n.sort(function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}),n}),isRevisionsExistOnServerRequest=t=>__awaiter$f(void 0,void 0,void 0,function*(){var e=gqlQueries["isRevisionsExistOnServerQuery"];return fetchVeritoneGraphQLApi(apiEndpoint,t,e,{})}),langs=[{locale:"en",name:"English"},{locale:"fr",name:"French"},{locale:"es",name:"Spanish"}],translationPromises={},getAssetsBaseUrl=()=>{var e,t=document.getElementsByTagName("script");return t.length?(e=Array.from(t).find(e=>e.src.includes("js-core")||e.src.includes("aiware-ui")),t=Array.from(t).find(e=>e.src.includes("main.js")),t=(e=(null==e?void 0:e.src)||(null==t?void 0:t.src)||"").split("/").pop()||"",(e.split(t)[0]||"/").replace(/\/+$/,"")):"/"},fetchTranslationJson=t=>__awaiter$f(void 0,void 0,void 0,function*(){try{var e;return translationPromises.hasOwnProperty(t)||(e=getAssetsBaseUrl(),translationPromises[t]=(yield fetch(e+`/locales/${t}.json`)).json()),translationPromises[t]}catch(e){return isEqual_1("production","development")&&console.log("Error fetching translation json for `lang`: "+t,e),Promise.resolve({})}}),intls={},createIntlInstances=()=>{var e;Object.keys(intls).length||(e=langs.map(({locale:t})=>__awaiter$f(void 0,void 0,void 0,function*(){var e=yield fetchTranslationJson(t);return{locale:t,messages:e}})),Promise.all(e).then(e=>{e.forEach(({locale:e,messages:t})=>{intls[e]=createIntl({locale:e,messages:t,defaultLocale:"en"})})}).catch(e=>{isEqual_1("production","development")&&console.log(e)}))},AIWareFormatMessage=r=>(e,t)=>{var n;return null==(n=intls[r])?void 0:n.formatMessage(e,t)};createIntlInstances();class EnumHelpers{static getNamesAndValues(t){return EnumHelpers.getNames(t).map(e=>({name:e,value:t[e]}))}static getNames(e){return EnumHelpers.getObjValues(e).filter(e=>"string"==typeof e)}static getValues(e){return EnumHelpers.getObjValues(e).filter(e=>"number"==typeof e)}static getObjValues(t){return Object.keys(t).map(e=>t[e])}}const ENGINE_OWNER_TYPES={ORGANIZATION:"organization",MINE:"mine",FAVORITES:"favorites",SHARED:"shared",TEMPLATES:"templates"},ENGINE_FILTER_TYPES={CERTIFIED:"certified",CATEGORIES:"categories",CLASSES:"classes",NOTEWORTHY:"noteworthy",TAGS:"tags",PRICE:"price",INDUSTRIES:"industries",APPLICATIONS:"applications",PUBLIC:"public",DEVELOPERS:"developers"};var md5$1={exports:{}},crypt={exports:{}},charenc=(!function(){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];0<e;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],n=0;n<e.length;n+=3)for(var r=e[n]<<16|e[n+1]<<8|e[n+2],i=0;i<4;i++)8*n+6*i<=8*e.length?t.push(o.charAt(r>>>6*(3-i)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],n=0,r=0;n<e.length;r=++n%4)0!=r&&t.push((o.indexOf(e.charAt(n-1))&Math.pow(2,-2*r+8)-1)<<2*r|o.indexOf(e.charAt(n))>>>6-2*r);return t}};crypt.exports=n}(),{utf8:{stringToBytes:function(e){return charenc.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(charenc.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}}),charenc_1=charenc,isBuffer_1=function(e){return null!=e&&(isBuffer$2(e)||isSlowBuffer(e)||!!e._isBuffer)};function isBuffer$2(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&isBuffer$2(e.slice(0,0))}!function(){function g(e,t){e.constructor==String?e=(t&&"binary"===t.encoding?x:$).stringToBytes(e):v(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=y.bytesToWords(e),t=8*e.length,r=1732584193,i=-271733879,o=-1732584194,a=271733878,s=0;s<n.length;s++)n[s]=16711935&(n[s]<<8|n[s]>>>24)|4278255360&(n[s]<<24|n[s]>>>8);n[t>>>5]|=128<<t%32,n[14+(64+t>>>9<<4)]=t;for(var l=g._ff,c=g._gg,u=g._hh,d=g._ii,s=0;s<n.length;s+=16){var p=r,f=i,h=o,m=a,r=l(r,i,o,a,n[s+0],7,-680876936),a=l(a,r,i,o,n[s+1],12,-389564586),o=l(o,a,r,i,n[s+2],17,606105819),i=l(i,o,a,r,n[s+3],22,-1044525330);r=l(r,i,o,a,n[s+4],7,-176418897),a=l(a,r,i,o,n[s+5],12,1200080426),o=l(o,a,r,i,n[s+6],17,-1473231341),i=l(i,o,a,r,n[s+7],22,-45705983),r=l(r,i,o,a,n[s+8],7,1770035416),a=l(a,r,i,o,n[s+9],12,-1958414417),o=l(o,a,r,i,n[s+10],17,-42063),i=l(i,o,a,r,n[s+11],22,-1990404162),r=l(r,i,o,a,n[s+12],7,1804603682),a=l(a,r,i,o,n[s+13],12,-40341101),o=l(o,a,r,i,n[s+14],17,-1502002290),r=c(r,i=l(i,o,a,r,n[s+15],22,1236535329),o,a,n[s+1],5,-165796510),a=c(a,r,i,o,n[s+6],9,-1069501632),o=c(o,a,r,i,n[s+11],14,643717713),i=c(i,o,a,r,n[s+0],20,-373897302),r=c(r,i,o,a,n[s+5],5,-701558691),a=c(a,r,i,o,n[s+10],9,38016083),o=c(o,a,r,i,n[s+15],14,-660478335),i=c(i,o,a,r,n[s+4],20,-405537848),r=c(r,i,o,a,n[s+9],5,568446438),a=c(a,r,i,o,n[s+14],9,-1019803690),o=c(o,a,r,i,n[s+3],14,-187363961),i=c(i,o,a,r,n[s+8],20,1163531501),r=c(r,i,o,a,n[s+13],5,-1444681467),a=c(a,r,i,o,n[s+2],9,-51403784),o=c(o,a,r,i,n[s+7],14,1735328473),r=u(r,i=c(i,o,a,r,n[s+12],20,-1926607734),o,a,n[s+5],4,-378558),a=u(a,r,i,o,n[s+8],11,-2022574463),o=u(o,a,r,i,n[s+11],16,1839030562),i=u(i,o,a,r,n[s+14],23,-35309556),r=u(r,i,o,a,n[s+1],4,-1530992060),a=u(a,r,i,o,n[s+4],11,1272893353),o=u(o,a,r,i,n[s+7],16,-155497632),i=u(i,o,a,r,n[s+10],23,-1094730640),r=u(r,i,o,a,n[s+13],4,681279174),a=u(a,r,i,o,n[s+0],11,-358537222),o=u(o,a,r,i,n[s+3],16,-722521979),i=u(i,o,a,r,n[s+6],23,76029189),r=u(r,i,o,a,n[s+9],4,-640364487),a=u(a,r,i,o,n[s+12],11,-421815835),o=u(o,a,r,i,n[s+15],16,530742520),r=d(r,i=u(i,o,a,r,n[s+2],23,-995338651),o,a,n[s+0],6,-198630844),a=d(a,r,i,o,n[s+7],10,1126891415),o=d(o,a,r,i,n[s+14],15,-1416354905),i=d(i,o,a,r,n[s+5],21,-57434055),r=d(r,i,o,a,n[s+12],6,1700485571),a=d(a,r,i,o,n[s+3],10,-1894986606),o=d(o,a,r,i,n[s+10],15,-1051523),i=d(i,o,a,r,n[s+1],21,-2054922799),r=d(r,i,o,a,n[s+8],6,1873313359),a=d(a,r,i,o,n[s+15],10,-30611744),o=d(o,a,r,i,n[s+6],15,-1560198380),i=d(i,o,a,r,n[s+13],21,1309151649),r=d(r,i,o,a,n[s+4],6,-145523070),a=d(a,r,i,o,n[s+11],10,-1120210379),o=d(o,a,r,i,n[s+2],15,718787259),i=d(i,o,a,r,n[s+9],21,-343485551),r=r+p>>>0,i=i+f>>>0,o=o+h>>>0,a=a+m>>>0}return y.endian([r,i,o,a])}var y=crypt.exports,$=charenc_1.utf8,v=isBuffer_1,x=charenc_1.bin;g._ff=function(e,t,n,r,i,o,a){e=e+(t&n|~t&r)+(i>>>0)+a;return(e<<o|e>>>32-o)+t},g._gg=function(e,t,n,r,i,o,a){e=e+(t&r|n&~r)+(i>>>0)+a;return(e<<o|e>>>32-o)+t},g._hh=function(e,t,n,r,i,o,a){e=e+(t^n^r)+(i>>>0)+a;return(e<<o|e>>>32-o)+t},g._ii=function(e,t,n,r,i,o,a){e=e+(n^(t|~r))+(i>>>0)+a;return(e<<o|e>>>32-o)+t},g._blocksize=16,g._digestsize=16,md5$1.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);e=y.wordsToBytes(g(e,t));return t&&t.asBytes?e:t&&t.asString?x.bytesToString(e):y.bytesToHex(e)}}();var md5=md5$1.exports,genericMessage="Invariant Violation",_a$1=Object.setPrototypeOf,setPrototypeOf$3=void 0===_a$1?function(e,t){return e.__proto__=t,e}:_a$1,InvariantError=function(t){function n(e){e=t.call(this,"number"==typeof(e=void 0===e?genericMessage:e)?genericMessage+": "+e+" (see https://github.com/apollographql/invariant-packages)":e)||this;return e.framesToPop=1,e.name=genericMessage,setPrototypeOf$3(e,n.prototype),e}return __extends(n,t),n}(Error);function invariant$7(e,t){if(!e)throw new InvariantError(t)}var verbosityLevels=["debug","log","warn","error","silent"],verbosityLevel=verbosityLevels.indexOf("log");function wrapConsoleMethod(e){return function(){if(verbosityLevels.indexOf(e)>=verbosityLevel)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=wrapConsoleMethod("debug"),e.log=wrapConsoleMethod("log"),e.warn=wrapConsoleMethod("warn"),e.error=wrapConsoleMethod("error")}(invariant$7=invariant$7||{});var version$2="3.8.1";function maybe$2(e){try{return e()}catch(e){}}var global$h=maybe$2(function(){return globalThis})||maybe$2(function(){return window})||maybe$2(function(){return self})||maybe$2(function(){return global})||maybe$2(function(){return maybe$2.constructor("return this")()}),prefixCounts=new Map;function makeUniqueId(e){var t=prefixCounts.get(e)||1;return prefixCounts.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function stringifyForDisplay(e,t){void 0===t&&(t=0);var n=makeUniqueId("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?n:t},t).split(JSON.stringify(n)).join("<undefined>")}function wrap$5(r){return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];r.apply(void 0,__spreadArray(["number"==typeof e?getErrorMsg(e):e],t,!1))}}var invariant$6=Object.assign(function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e||invariant$7(e,getErrorMsg(t,n))},{debug:wrap$5(invariant$7.debug),log:wrap$5(invariant$7.log),warn:wrap$5(invariant$7.warn),error:wrap$5(invariant$7.error)});function newInvariantError(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new InvariantError(getErrorMsg(e,t))}var ApolloErrorMessageHandler=Symbol.for("ApolloErrorMessageHandler_"+version$2);function getErrorMsg(e,t){if(void 0===t&&(t=[]),e)return t=t.map(function(e){return"string"==typeof e?e:stringifyForDisplay(e,2).slice(0,1e3)}),global$h[ApolloErrorMessageHandler]&&global$h[ApolloErrorMessageHandler](e,t)||"An error occured! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:version$2,message:e,args:t})))}function _typeof$C(e){return(_typeof$C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function isObjectLike$3(e){return"object"==_typeof$C(e)&&null!==e}var SYMBOL_TO_STRING_TAG="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function getLocation(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}function printLocation(e){return printSourceLocation(e.source,getLocation(e.source,e.start))}function printSourceLocation(e,t){var n=e.locationOffset.column-1,r=whitespace$2(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,o=t.line+o,n=1===t.line?n:0,t=t.column+n,n="".concat(e.name,":").concat(o,":").concat(t,"\n"),e=r.split(/\r\n|[\n\r]/g),a=e[i];if(120<a.length){for(var r=Math.floor(t/80),s=t%80,l=[],c=0;c<a.length;c+=80)l.push(a.slice(c,c+80));return n+printPrefixedLines([["".concat(o),l[0]]].concat(l.slice(1,r+1).map(function(e){return["",e]}),[[" ",whitespace$2(s-1)+"^"],["",l[r+1]]]))}return n+printPrefixedLines([["".concat(o-1),e[i-1]],["".concat(o),a],["",whitespace$2(t-1)+"^"],["".concat(o+1),e[1+i]]])}function printPrefixedLines(e){var e=e.filter(function(e){return e[0],void 0!==e[1]}),n=Math.max.apply(Math,e.map(function(e){return e[0].length}));return e.map(function(e){var t=e[0],e=e[1];return leftPad(n,t)+(e?" | "+e:" |")}).join("\n")}function whitespace$2(e){return Array(e+1).join(" ")}function leftPad(e,t){return whitespace$2(e-t.length)+t}function _typeof$B(e){return(_typeof$B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys$3(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys$3(Object(n),!0).forEach(function(e){_defineProperty$w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys$3(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty$w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _classCallCheck$x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$C(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,r.key,r)}}function _createClass$C(e,t,n){return t&&_defineProperties$C(e.prototype,t),n&&_defineProperties$C(e,n),e}function _inherits$w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf$z(e,t)}function _createSuper$w(n){var r=_isNativeReflectConstruct$z();return function(){var e,t=_getPrototypeOf$z(n);return _possibleConstructorReturn$w(this,r?(e=_getPrototypeOf$z(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function _possibleConstructorReturn$w(e,t){return!t||"object"!==_typeof$B(t)&&"function"!=typeof t?_assertThisInitialized$w(e):t}function _assertThisInitialized$w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _wrapNativeSuper$3(e){var n="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper$3=function(e){if(null===e||!_isNativeFunction$3(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return _construct$3(e,arguments,_getPrototypeOf$z(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$z(t,e)})(e)}function _construct$3(e,t,n){return(_construct$3=_isNativeReflectConstruct$z()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);t=new(Function.bind.apply(e,r));return n&&_setPrototypeOf$z(t,n.prototype),t}).apply(null,arguments)}function _isNativeReflectConstruct$z(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function _isNativeFunction$3(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _setPrototypeOf$z(e,t){return(_setPrototypeOf$z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _getPrototypeOf$z(e){return(_getPrototypeOf$z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var GraphQLError=function(){_inherits$w(p,_wrapNativeSuper$3(Error));var d=_createSuper$w(p);function p(e,t,n,r,i,o,a){_classCallCheck$x(this,p),(e=d.call(this,e)).name="GraphQLError",e.originalError=null!=o?o:void 0,e.nodes=undefinedIfEmpty(Array.isArray(t)?t:t?[t]:void 0);for(var s=[],l=0,c=null!=(t=e.nodes)?t:[];l<c.length;l++){var u=c[l].loc;null!=u&&s.push(u)}s=undefinedIfEmpty(s),e.source=null!=n?n:null==(t=s)?void 0:t[0].source,e.positions=null!=r?r:null==(t=s)?void 0:t.map(function(e){return e.start}),e.locations=r&&n?r.map(function(e){return getLocation(n,e)}):null==(t=s)?void 0:t.map(function(e){return getLocation(e.source,e.start)}),e.path=null!=i?i:void 0;r=null==o?void 0:o.extensions;return null==a&&isObjectLike$3(r)?e.extensions=_objectSpread({},r):e.extensions=null!=a?a:{},Object.defineProperties(_assertThisInitialized$w(e),{message:{enumerable:!0},locations:{enumerable:null!=e.locations},path:{enumerable:null!=e.path},extensions:{enumerable:null!=e.extensions&&0<Object.keys(e.extensions).length},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=o&&o.stack?(Object.defineProperty(_assertThisInitialized$w(e),"stack",{value:o.stack,writable:!0,configurable:!0}),_possibleConstructorReturn$w(e)):(Error.captureStackTrace?Error.captureStackTrace(_assertThisInitialized$w(e),p):Object.defineProperty(_assertThisInitialized$w(e),"stack",{value:Error().stack,writable:!0,configurable:!0}),e)}return _createClass$C(p,[{key:"toString",value:function(){return printError(this)}},{key:SYMBOL_TO_STRING_TAG,get:function(){return"Object"}}]),p}();function undefinedIfEmpty(e){return void 0===e||0===e.length?void 0:e}function printError(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+printLocation(i.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var s=a[o];t+="\n\n"+printSourceLocation(e.source,s)}return t}function syntaxError(e,t,n){return new GraphQLError("Syntax Error: ".concat(n),void 0,e,[t])}var Kind$1=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function invariant$5(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}var nodejsCustomInspectSymbol$2="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0,nodejsCustomInspectSymbol$3=nodejsCustomInspectSymbol$2;function defineInspect$2(e){var t=e.prototype.toJSON;"function"!=typeof t&&invariant$5(0),e.prototype.inspect=t,nodejsCustomInspectSymbol$3&&(e.prototype[nodejsCustomInspectSymbol$3]=t)}var Location$2=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}(),Token$1=(defineInspect$2(Location$2),function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}());function isNode$1(e){return null!=e&&"string"==typeof e.kind}defineInspect$2(Token$1);var TokenKind=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function _typeof$A(e){return(_typeof$A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var MAX_ARRAY_LENGTH$2=10,MAX_RECURSIVE_DEPTH$1=2;function inspect$2(e){return formatValue$1(e,[])}function formatValue$1(e,t){switch(_typeof$A(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":formatObjectValue$1(e,t);default:return String(e)}}function formatObjectValue$1(e,t){if(-1!==t.indexOf(e))return"[Circular]";var t=[].concat(t,[e]),n=getCustomFn$1(e);if(void 0!==n){n=n.call(e);if(n!==e)return"string"==typeof n?n:formatValue$1(n,t)}else if(Array.isArray(e))return formatArray$1(e,t);return formatObject$1(e,t)}function formatObject$1(t,n){var e=Object.keys(t);return 0===e.length?"{}":n.length>MAX_RECURSIVE_DEPTH$1?"["+getObjectTag$1(t)+"]":"{ "+e.map(function(e){return e+": "+formatValue$1(t[e],n)}).join(", ")+" }"}function formatArray$1(e,t){if(0===e.length)return"[]";if(t.length>MAX_RECURSIVE_DEPTH$1)return"[Array]";for(var n=Math.min(MAX_ARRAY_LENGTH$2,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(formatValue$1(e[o],t));return 1==r?i.push("... 1 more item"):1<r&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}function getCustomFn$1(e){var t=e[String(nodejsCustomInspectSymbol$3)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}function getObjectTag$1(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){e=e.constructor.name;if("string"==typeof e&&""!==e)return e}return t}function devAssert(e,t){if(!Boolean(e))throw new Error(t)}var instanceOf=function(e,t){return e instanceof t};function _defineProperties$B(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,r.key,r)}}function _createClass$B(e,t,n){return t&&_defineProperties$B(e.prototype,t),n&&_defineProperties$B(e,n),e}var Source$1=function(){function e(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"!=typeof e&&devAssert(0,"Body must be a string. Received: ".concat(inspect$2(e),".")),this.body=e,this.name=t,this.locationOffset=n,0<this.locationOffset.line||devAssert(0,"line in locationOffset is 1-indexed and must be positive."),0<this.locationOffset.column||devAssert(0,"column in locationOffset is 1-indexed and must be positive.")}return _createClass$B(e,[{key:SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}]),e}();function isSource(e){return instanceOf(e,Source$1)}var DirectiveLocation=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function dedentBlockStringValue$1(e){var t=e.split(/\r\n|[\n\r]/g),n=getBlockStringIndentation$1(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var i=0;i<t.length&&isBlank$1(t[i]);)++i;for(var o=t.length;i<o&&isBlank$1(t[o-1]);)--o;return t.slice(i,o).join("\n")}function isBlank$1(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function getBlockStringIndentation$1(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:r=!(n=!1),i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!=(t=o)?t:0}function printBlockString$1(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],o=!r||o||a||n,a="";return!o||r&&i||(a+="\n"+t),a+=t?e.replace(/\n/g,"\n"+t):e,o&&(a+="\n"),'"""'+a.replace(/"""/g,'\\"""')+'"""'}var Lexer=function(){function e(e){var t=new Token$1(TokenKind.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){if((t=this.token).kind!==TokenKind.EOF)do{var e,t=null!=(e=t.next)?e:t.next=readToken(this,t)}while(t.kind===TokenKind.COMMENT);return t},e}();function isPunctuatorTokenKind(e){return e===TokenKind.BANG||e===TokenKind.DOLLAR||e===TokenKind.AMP||e===TokenKind.PAREN_L||e===TokenKind.PAREN_R||e===TokenKind.SPREAD||e===TokenKind.COLON||e===TokenKind.EQUALS||e===TokenKind.AT||e===TokenKind.BRACKET_L||e===TokenKind.BRACKET_R||e===TokenKind.BRACE_L||e===TokenKind.PIPE||e===TokenKind.BRACE_R}function printCharCode(e){return isNaN(e)?TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function readToken(e,t){for(var n=e.source,r=n.body,i=r.length,o=t.end;o<i;){var a=r.charCodeAt(o),s=e.line,l=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new Token$1(TokenKind.BANG,o,o+1,s,l,t);case 35:return readComment(n,o,s,l,t);case 36:return new Token$1(TokenKind.DOLLAR,o,o+1,s,l,t);case 38:return new Token$1(TokenKind.AMP,o,o+1,s,l,t);case 40:return new Token$1(TokenKind.PAREN_L,o,o+1,s,l,t);case 41:return new Token$1(TokenKind.PAREN_R,o,o+1,s,l,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new Token$1(TokenKind.SPREAD,o,o+3,s,l,t);break;case 58:return new Token$1(TokenKind.COLON,o,o+1,s,l,t);case 61:return new Token$1(TokenKind.EQUALS,o,o+1,s,l,t);case 64:return new Token$1(TokenKind.AT,o,o+1,s,l,t);case 91:return new Token$1(TokenKind.BRACKET_L,o,o+1,s,l,t);case 93:return new Token$1(TokenKind.BRACKET_R,o,o+1,s,l,t);case 123:return new Token$1(TokenKind.BRACE_L,o,o+1,s,l,t);case 124:return new Token$1(TokenKind.PIPE,o,o+1,s,l,t);case 125:return new Token$1(TokenKind.BRACE_R,o,o+1,s,l,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?readBlockString(n,o,s,l,t,e):readString(n,o,s,l,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return readNumber(n,o,a,s,l,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return readName(n,o,s,l,t)}throw syntaxError(n,o,unexpectedCharacterMessage(a))}var c=e.line,u=1+o-e.lineStart;return new Token$1(TokenKind.EOF,i,i,c,u,t)}function unexpectedCharacterMessage(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(printCharCode(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(printCharCode(e),".")}function readComment(e,t,n,r,i){for(var o,a=e.body,s=t;o=a.charCodeAt(++s),!isNaN(o)&&(31<o||9===o););return new Token$1(TokenKind.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function readNumber(e,t,n,r,i,o){var a=e.body,s=t,l=!1;if(48===(n=45===n?a.charCodeAt(++s):n)){if(48<=(n=a.charCodeAt(++s))&&n<=57)throw syntaxError(e,s,"Invalid number, unexpected digit after 0: ".concat(printCharCode(n),"."))}else s=readDigits(e,s,n),n=a.charCodeAt(s);if(46===n&&(l=!0,n=a.charCodeAt(++s),s=readDigits(e,s,n),n=a.charCodeAt(s)),69!==n&&101!==n||(l=!0,43!==(n=a.charCodeAt(++s))&&45!==n||(n=a.charCodeAt(++s)),s=readDigits(e,s,n),n=a.charCodeAt(s)),46===n||isNameStart(n))throw syntaxError(e,s,"Invalid number, expected digit but got: ".concat(printCharCode(n),"."));return new Token$1(l?TokenKind.FLOAT:TokenKind.INT,t,s,r,i,o,a.slice(t,s))}function readDigits(e,t,n){var r=e.body,i=t,o=n;if(48<=o&&o<=57){for(;48<=(o=r.charCodeAt(++i))&&o<=57;);return i}throw syntaxError(e,i,"Invalid number, expected digit but got: ".concat(printCharCode(o),"."))}function readString(e,t,n,r,i){for(var o=e.body,a=t+1,s=a,l=0,c="";a<o.length&&!isNaN(l=o.charCodeAt(a))&&10!==l&&13!==l;){if(34===l)return c+=o.slice(s,a),new Token$1(TokenKind.STRING,t,a+1,n,r,i,c);if(l<32&&9!==l)throw syntaxError(e,a,"Invalid character within String: ".concat(printCharCode(l),"."));if(++a,92===l){switch(c+=o.slice(s,a-1),l=o.charCodeAt(a)){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+="\n";break;case 114:c+="\r";break;case 116:c+="\t";break;case 117:var u,d=uniCharCode(o.charCodeAt(a+1),o.charCodeAt(a+2),o.charCodeAt(a+3),o.charCodeAt(a+4));if(d<0)throw u=o.slice(a+1,a+5),syntaxError(e,a,"Invalid character escape sequence: \\u".concat(u,"."));c+=String.fromCharCode(d),a+=4;break;default:throw syntaxError(e,a,"Invalid character escape sequence: \\".concat(String.fromCharCode(l),"."))}s=++a}}throw syntaxError(e,a,"Unterminated string.")}function readBlockString(e,t,n,r,i,o){for(var a=e.body,s=t+3,l=s,c=0,u="";s<a.length&&!isNaN(c=a.charCodeAt(s));){if(34===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return u+=a.slice(l,s),new Token$1(TokenKind.BLOCK_STRING,t,s+3,n,r,i,dedentBlockStringValue$1(u));if(c<32&&9!==c&&10!==c&&13!==c)throw syntaxError(e,s,"Invalid character within String: ".concat(printCharCode(c),"."));10===c?(++s,++o.line,o.lineStart=s):13===c?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(u+=a.slice(l,s)+'"""',l=s+=4):++s}throw syntaxError(e,s,"Unterminated string.")}function uniCharCode(e,t,n,r){return char2hex(e)<<12|char2hex(t)<<8|char2hex(n)<<4|char2hex(r)}function char2hex(e){return 48<=e&&e<=57?e-48:65<=e&&e<=70?e-55:97<=e&&e<=102?e-87:-1}function readName(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,l=0;s!==a&&!isNaN(l=o.charCodeAt(s))&&(95===l||48<=l&&l<=57||65<=l&&l<=90||97<=l&&l<=122);)++s;return new Token$1(TokenKind.NAME,t,s,n,r,i,o.slice(t,s))}function isNameStart(e){return 95===e||65<=e&&e<=90||97<=e&&e<=122}function parse$8(e,t){return new Parser$1(e,t).parseDocument()}var Parser$1=function(){function e(e,t){e=isSource(e)?e:new Source$1(e);this._lexer=new Lexer(e),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(TokenKind.NAME);return{kind:Kind$1.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:Kind$1.DOCUMENT,definitions:this.many(TokenKind.SOF,this.parseDefinition,TokenKind.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e,t,n=this._lexer.token;return this.peek(TokenKind.BRACE_L)?{kind:Kind$1.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)}:(e=this.parseOperationType(),this.peek(TokenKind.NAME)&&(t=this.parseName()),{kind:Kind$1.OPERATION_DEFINITION,operation:e,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)})},t.parseOperationType=function(){var e=this.expectToken(TokenKind.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(TokenKind.PAREN_L,this.parseVariableDefinition,TokenKind.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:Kind$1.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(TokenKind.DOLLAR),{kind:Kind$1.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:Kind$1.SELECTION_SET,selections:this.many(TokenKind.BRACE_L,this.parseSelection,TokenKind.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(TokenKind.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t=this._lexer.token,n=this.parseName(),n=this.expectOptionalToken(TokenKind.COLON)?(e=n,this.parseName()):n;return{kind:Kind$1.FIELD,alias:e,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(t)}},t.parseArguments=function(e){e=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(TokenKind.PAREN_L,e,TokenKind.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(TokenKind.COLON),{kind:Kind$1.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:Kind$1.ARGUMENT,name:this.parseName(),value:(this.expectToken(TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token,t=(this.expectToken(TokenKind.SPREAD),this.expectOptionalKeyword("on"));return!t&&this.peek(TokenKind.NAME)?{kind:Kind$1.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:Kind$1.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null==(e=this._options)?void 0:e.experimentalFragmentVariables)?{kind:Kind$1.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:Kind$1.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case TokenKind.BRACKET_L:return this.parseList(e);case TokenKind.BRACE_L:return this.parseObject(e);case TokenKind.INT:return this._lexer.advance(),{kind:Kind$1.INT,value:t.value,loc:this.loc(t)};case TokenKind.FLOAT:return this._lexer.advance(),{kind:Kind$1.FLOAT,value:t.value,loc:this.loc(t)};case TokenKind.STRING:case TokenKind.BLOCK_STRING:return this.parseStringLiteral();case TokenKind.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:Kind$1.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:Kind$1.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:Kind$1.NULL,loc:this.loc(t)};default:return{kind:Kind$1.ENUM,value:t.value,loc:this.loc(t)}}case TokenKind.DOLLAR:if(e)break;return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:Kind$1.STRING,value:e.value,block:e.kind===TokenKind.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:Kind$1.LIST,values:this.any(TokenKind.BRACKET_L,function(){return t.parseValueLiteral(e)},TokenKind.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:Kind$1.OBJECT,fields:this.any(TokenKind.BRACE_L,function(){return t.parseObjectField(e)},TokenKind.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(TokenKind.COLON),{kind:Kind$1.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(TokenKind.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(TokenKind.AT),{kind:Kind$1.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e=this._lexer.token,t=this.expectOptionalToken(TokenKind.BRACKET_L)?(t=this.parseTypeReference(),this.expectToken(TokenKind.BRACKET_R),{kind:Kind$1.LIST_TYPE,type:t,loc:this.loc(e)}):this.parseNamedType();return this.expectOptionalToken(TokenKind.BANG)?{kind:Kind$1.NON_NULL_TYPE,type:t,loc:this.loc(e)}:t},t.parseNamedType=function(){var e=this._lexer.token;return{kind:Kind$1.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(TokenKind.STRING)||this.peek(TokenKind.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=(this.expectKeyword("schema"),this.parseDirectives(!0)),r=this.many(TokenKind.BRACE_L,this.parseOperationTypeDefinition,TokenKind.BRACE_R);return{kind:Kind$1.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType(),n=(this.expectToken(TokenKind.COLON),this.parseNamedType());return{kind:Kind$1.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=(this.expectKeyword("scalar"),this.parseName()),r=this.parseDirectives(!0);return{kind:Kind$1.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=(this.expectKeyword("type"),this.parseName()),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:Kind$1.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0!==(null==(e=this._options)?void 0:e.allowLegacySDLImplementsInterfaces))return this.delimitedMany(TokenKind.AMP,this.parseNamedType);var t=[];for(this.expectOptionalToken(TokenKind.AMP);t.push(this.parseNamedType()),this.expectOptionalToken(TokenKind.AMP)||this.peek(TokenKind.NAME););return t},t.parseFieldsDefinition=function(){var e;return!0===(null==(e=this._options)?void 0:e.allowLegacySDLEmptyFields)&&this.peek(TokenKind.BRACE_L)&&this._lexer.lookahead().kind===TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(TokenKind.BRACE_L,this.parseFieldDefinition,TokenKind.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs(),i=(this.expectToken(TokenKind.COLON),this.parseTypeReference()),o=this.parseDirectives(!0);return{kind:Kind$1.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(TokenKind.PAREN_L,this.parseInputValueDef,TokenKind.PAREN_R)},t.parseInputValueDef=function(){var e,t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=(this.expectToken(TokenKind.COLON),this.parseTypeReference()),o=(this.expectOptionalToken(TokenKind.EQUALS)&&(e=this.parseValueLiteral(!0)),this.parseDirectives(!0));return{kind:Kind$1.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:e,directives:o,loc:this.loc(t)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=(this.expectKeyword("interface"),this.parseName()),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:Kind$1.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=(this.expectKeyword("union"),this.parseName()),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:Kind$1.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(TokenKind.EQUALS)?this.delimitedMany(TokenKind.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=(this.expectKeyword("enum"),this.parseName()),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:Kind$1.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(TokenKind.BRACE_L,this.parseEnumValueDefinition,TokenKind.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:Kind$1.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=(this.expectKeyword("input"),this.parseName()),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:Kind$1.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(TokenKind.BRACE_L,this.parseInputValueDef,TokenKind.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token,t=(this.expectKeyword("extend"),this.expectKeyword("schema"),this.parseDirectives(!0)),n=this.optionalMany(TokenKind.BRACE_L,this.parseOperationTypeDefinition,TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:Kind$1.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token,t=(this.expectKeyword("extend"),this.expectKeyword("scalar"),this.parseName()),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:Kind$1.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token,t=(this.expectKeyword("extend"),this.expectKeyword("type"),this.parseName()),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:Kind$1.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token,t=(this.expectKeyword("extend"),this.expectKeyword("interface"),this.parseName()),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:Kind$1.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token,t=(this.expectKeyword("extend"),this.expectKeyword("union"),this.parseName()),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:Kind$1.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token,t=(this.expectKeyword("extend"),this.expectKeyword("enum"),this.parseName()),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:Kind$1.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token,t=(this.expectKeyword("extend"),this.expectKeyword("input"),this.parseName()),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:Kind$1.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=(this.expectKeyword("directive"),this.expectToken(TokenKind.AT),this.parseName()),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable"),o=(this.expectKeyword("on"),this.parseDirectiveLocations());return{kind:Kind$1.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(TokenKind.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==DirectiveLocation[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null==(t=this._options)?void 0:t.noLocation))return new Location$2(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw syntaxError(this._lexer.source,t.start,"Expected ".concat(getTokenKindDesc(e),", found ").concat(getTokenDesc(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==TokenKind.NAME||t.value!==e)throw syntaxError(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(getTokenDesc(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===TokenKind.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){e=null!=e?e:this._lexer.token;return syntaxError(this._lexer.source,e.start,"Unexpected ".concat(getTokenDesc(e),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){for(var r=[];r.push(t.call(this)),!this.expectOptionalToken(n););return r}return[]},t.many=function(e,t,n){this.expectToken(e);for(var r=[];r.push(t.call(this)),!this.expectOptionalToken(n););return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);for(var n=[];n.push(t.call(this)),this.expectOptionalToken(e););return n},e}();function getTokenDesc(e){var t=e.value;return getTokenKindDesc(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function getTokenKindDesc(e){return isPunctuatorTokenKind(e)?'"'.concat(e,'"'):e}var QueryDocumentKeys$1={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},BREAK$1=Object.freeze({});function visit$3(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:QueryDocumentKeys$1,r=void 0,i=Array.isArray(e),o=[e],a=-1,s=[],l=void 0,c=void 0,u=void 0,d=[],p=[],f=e;do{var h=++a===o.length,m=h&&0!==s.length;if(h){if(c=0===p.length?void 0:d[d.length-1],l=u,u=p.pop(),m){if(i)l=l.slice();else{for(var g={},y=0,$=Object.keys(l);y<$.length;y++){var v=$[y];g[v]=l[v]}l=g}for(var x=0,b=0;b<s.length;b++){var C=s[b][0],S=s[b][1];i&&(C-=x),i&&null===S?(l.splice(C,1),x++):l[C]=S}}a=r.index,o=r.keys,s=r.edits,i=r.inArray,r=r.prev}else{if(c=u?i?a:o[a]:void 0,null==(l=u?u[c]:f))continue;u&&d.push(c)}var w=void 0;if(!Array.isArray(l)){if(!isNode$1(l))throw new Error("Invalid AST Node: ".concat(inspect$2(l),"."));var _=getVisitFn$1(t,l.kind,h);if(_){if((w=_.call(t,l,c,u,d,p))===BREAK$1)break;if(!1===w){if(!h){d.pop();continue}}else if(void 0!==w&&(s.push([c,w]),!h)){if(!isNode$1(w)){d.pop();continue}l=w}}}void 0===w&&m&&s.push([c,l]),h?d.pop():(r={inArray:i,index:a,keys:o,edits:s,prev:r},o=(i=Array.isArray(l))?l:null!=(_=n[l.kind])?_:[],a=-1,s=[],u&&p.push(u),u=l)}while(void 0!==r);return f=0!==s.length?s[s.length-1][1]:f}function getVisitFn$1(e,t,n){var r,i=e[t];return i?n||"function"!=typeof i?"function"==typeof(r=n?i.leave:i.enter)?r:void 0:i:(r=n?e.leave:e.enter)?"function"==typeof r?r:"function"==typeof(i=r[t])?i:void 0:void 0}function print$2(e){return visit$3(e,{leave:printDocASTReducer$1})}var MAX_LINE_LENGTH$1=80,printDocASTReducer$1={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return join$5(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=wrap$4("(",join$5(e.variableDefinitions,", "),")"),i=join$5(e.directives," "),e=e.selectionSet;return n||i||r||"query"!==t?join$5([t,join$5([n,r]),i,e]," "):e},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,e=e.directives;return t+": "+n+wrap$4(" = ",r)+wrap$4(" ",join$5(e," "))},SelectionSet:function(e){return block$1(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,e=e.selectionSet,t=wrap$4("",t,": ")+n,n=t+wrap$4("(",join$5(r,", "),")");return n.length>MAX_LINE_LENGTH$1&&(n=t+wrap$4("(\n",indent$1(join$5(r,"\n")),"\n)")),join$5([n,join$5(i," "),e]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+wrap$4(" ",join$5(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,e=e.selectionSet;return join$5(["...",wrap$4("on ",t),join$5(n," "),e]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,e=e.selectionSet;return"fragment ".concat(t).concat(wrap$4("(",join$5(r,", "),")")," ")+"on ".concat(n," ").concat(wrap$4("",join$5(i," ")," "))+e},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?printBlockString$1(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+join$5(e.values,", ")+"]"},ObjectValue:function(e){return"{"+join$5(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+wrap$4("(",join$5(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:addDescription$1(function(e){var t=e.directives,e=e.operationTypes;return join$5(["schema",join$5(t," "),block$1(e)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:addDescription$1(function(e){return join$5(["scalar",e.name,join$5(e.directives," ")]," ")}),ObjectTypeDefinition:addDescription$1(function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join$5(["type",t,wrap$4("implements ",join$5(n," & ")),join$5(r," "),block$1(e)]," ")}),FieldDefinition:addDescription$1(function(e){var t=e.name,n=e.arguments,r=e.type,e=e.directives;return t+(hasMultilineItems$1(n)?wrap$4("(\n",indent$1(join$5(n,"\n")),"\n)"):wrap$4("(",join$5(n,", "),")"))+": "+r+wrap$4(" ",join$5(e," "))}),InputValueDefinition:addDescription$1(function(e){var t=e.name,n=e.type,r=e.defaultValue,e=e.directives;return join$5([t+": "+n,wrap$4("= ",r),join$5(e," ")]," ")}),InterfaceTypeDefinition:addDescription$1(function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join$5(["interface",t,wrap$4("implements ",join$5(n," & ")),join$5(r," "),block$1(e)]," ")}),UnionTypeDefinition:addDescription$1(function(e){var t=e.name,n=e.directives,e=e.types;return join$5(["union",t,join$5(n," "),e&&0!==e.length?"= "+join$5(e," | "):""]," ")}),EnumTypeDefinition:addDescription$1(function(e){var t=e.name,n=e.directives,e=e.values;return join$5(["enum",t,join$5(n," "),block$1(e)]," ")}),EnumValueDefinition:addDescription$1(function(e){return join$5([e.name,join$5(e.directives," ")]," ")}),InputObjectTypeDefinition:addDescription$1(function(e){var t=e.name,n=e.directives,e=e.fields;return join$5(["input",t,join$5(n," "),block$1(e)]," ")}),DirectiveDefinition:addDescription$1(function(e){var t=e.name,n=e.arguments,r=e.repeatable,e=e.locations;return"directive @"+t+(hasMultilineItems$1(n)?wrap$4("(\n",indent$1(join$5(n,"\n")),"\n)"):wrap$4("(",join$5(n,", "),")"))+(r?" repeatable":"")+" on "+join$5(e," | ")}),SchemaExtension:function(e){var t=e.directives,e=e.operationTypes;return join$5(["extend schema",join$5(t," "),block$1(e)]," ")},ScalarTypeExtension:function(e){return join$5(["extend scalar",e.name,join$5(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join$5(["extend type",t,wrap$4("implements ",join$5(n," & ")),join$5(r," "),block$1(e)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join$5(["extend interface",t,wrap$4("implements ",join$5(n," & ")),join$5(r," "),block$1(e)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,e=e.types;return join$5(["extend union",t,join$5(n," "),e&&0!==e.length?"= "+join$5(e," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,e=e.values;return join$5(["extend enum",t,join$5(n," "),block$1(e)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,e=e.fields;return join$5(["extend input",t,join$5(n," "),block$1(e)]," ")}};function addDescription$1(t){return function(e){return join$5([e.description,t(e)],"\n")}}function join$5(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return null!=(t=null==e?void 0:e.filter(function(e){return e}).join(t))?t:""}function block$1(e){return wrap$4("{\n",indent$1(join$5(e,"\n")),"\n}")}function wrap$4(e,t){return null!=t&&""!==t?e+t+(2<arguments.length&&void 0!==arguments[2]?arguments[2]:""):""}function indent$1(e){return wrap$4(" ",e.replace(/\n/g,"\n "))}function isMultiline$1(e){return-1!==e.indexOf("\n")}function hasMultilineItems$1(e){return null!=e&&e.some(isMultiline$1)}function isSelectionNode(e){return e.kind===Kind$1.FIELD||e.kind===Kind$1.FRAGMENT_SPREAD||e.kind===Kind$1.INLINE_FRAGMENT}function shouldInclude(e,r){e=e.directives;return!e||!e.length||getInclusionDirectives(e).every(function(e){var t=e.directive,e=e.ifArgument,n=!1;return"Variable"===e.value.kind?(n=r&&r[e.value.name.value],invariant$6(void 0!==n,64,t.name.value)):n=e.value.value,"skip"===t.name.value?!n:n})}function hasDirectives(e,t,n){var r=new Set(e),e=r.size;return visit$3(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return BREAK$1}}),n?!r.size:r.size<e}function hasClientExports(e){return e&&hasDirectives(["client","export"],e,!0)}function isInclusionDirective(e){e=e.name.value;return"skip"===e||"include"===e}function getInclusionDirectives(e){var i=[];return e&&e.length&&e.forEach(function(e){var t,n,r;isInclusionDirective(e)&&(n=e.arguments,t=e.name.value,invariant$6(n&&1===n.length,65,t),n=n[0],invariant$6(n.name&&"if"===n.name.value,66,t),r=n.value,invariant$6(r&&("Variable"===r.kind||"BooleanValue"===r.kind),67,t),i.push({directive:e,ifArgument:n}))}),i}const defaultMakeData=()=>Object.create(null),{forEach,slice:slice$4}=Array.prototype,hasOwnProperty$e=Object.prototype["hasOwnProperty"];class Trie{constructor(e=!0,t=defaultMakeData){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return forEach.call(e,e=>t=t.getChildTrie(e)),hasOwnProperty$e.call(t,"data")?t.data:t.data=this.makeData(slice$4.call(e))}peek(...e){return this.peekArray(e)}peekArray(n){let r=this;for(let e=0,t=n.length;r&&e<t;++e){var i=this.weakness&&isObjRef(n[e])?r.weak:r.strong;r=i&&i.get(n[e])}return r&&r.data}getChildTrie(e){var t=this.weakness&&isObjRef(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);let n=t.get(e);return n||t.set(e,n=new Trie(this.weakness,this.makeData)),n}}function isObjRef(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}var canUseWeakMap="function"==typeof WeakMap&&"ReactNative"!==maybe$2(function(){return navigator.product}),canUseWeakSet="function"==typeof WeakSet,canUseSymbol="function"==typeof Symbol&&"function"==typeof Symbol.for,canUseAsyncIteratorSymbol=canUseSymbol&&Symbol.asyncIterator;function isNonNullObject(e){return null!==e&&"object"==typeof e}function getFragmentQueryDocument(e,t){var n=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw newInvariantError(68,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&n.push(e)}),void 0===t&&(invariant$6(1===n.length,69,n.length),t=n[0].name.value),__assign$2(__assign$2({},e),{definitions:__spreadArray([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:t}}]}}],e.definitions,!0)})}function createFragmentMap(e){var t={};return(e=void 0===e?[]:e).forEach(function(e){t[e.name.value]=e}),t}function getFragmentFromSelection(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n,r=e.name.value;return"function"==typeof t?t(r):(n=t&&t[r],invariant$6(n,70,r),n||null);default:return null}}function makeReference(e){return{__ref:String(e)}}function isReference(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function isDocumentNode(e){return isNonNullObject(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function isStringValue(e){return"StringValue"===e.kind}function isBooleanValue(e){return"BooleanValue"===e.kind}function isIntValue(e){return"IntValue"===e.kind}function isFloatValue(e){return"FloatValue"===e.kind}function isVariable(e){return"Variable"===e.kind}function isObjectValue(e){return"ObjectValue"===e.kind}function isListValue(e){return"ListValue"===e.kind}function isEnumValue(e){return"EnumValue"===e.kind}function isNullValue(e){return"NullValue"===e.kind}function valueToObjectRepresentation(e,n,t,r){if(isIntValue(t)||isFloatValue(t))e[n.value]=Number(t.value);else if(isBooleanValue(t)||isStringValue(t))e[n.value]=t.value;else if(isObjectValue(t)){var i={};t.fields.map(function(e){return valueToObjectRepresentation(i,e.name,e.value,r)}),e[n.value]=i}else if(isVariable(t)){var o=(r||{})[t.name.value];e[n.value]=o}else if(isListValue(t))e[n.value]=t.values.map(function(e){var t={};return valueToObjectRepresentation(t,n,e,r),t[n.value]});else if(isEnumValue(t))e[n.value]=t.value;else{if(!isNullValue(t))throw newInvariantError(79,n.value,t.kind);e[n.value]=null}}function storeKeyNameFromField(e,r){var i=null,n=(e.directives&&(i={},e.directives.forEach(function(n){i[n.name.value]={},n.arguments&&n.arguments.forEach(function(e){var t=e.name,e=e.value;return valueToObjectRepresentation(i[n.name.value],t,e,r)})})),null);return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var t=e.name,e=e.value;return valueToObjectRepresentation(n,t,e,r)})),getStoreKeyName(e.name.value,n,i)}maybe$2(function(){return window.document.createElement}),maybe$2(function(){return 0<=navigator.userAgent.indexOf("jsdom")});var KNOWN_DIRECTIVES=["connection","include","skip","client","rest","export","nonreactive"],getStoreKeyName=Object.assign(function(e,t,n){var r,i,o;return t&&n&&n.connection&&n.connection.key?n.connection.filter&&0<n.connection.filter.length?((o=n.connection.filter||[]).sort(),r={},o.forEach(function(e){r[e]=t[e]}),"".concat(n.connection.key,"(").concat(stringify$6(r),")")):n.connection.key:(i=e,t&&(o=stringify$6(t),i+="(".concat(o,")")),n&&Object.keys(n).forEach(function(e){-1===KNOWN_DIRECTIVES.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?i+="@".concat(e,"(").concat(stringify$6(n[e]),")"):i+="@".concat(e))}),i)},{setStringify:function(e){var t=stringify$6;return stringify$6=e,t}}),stringify$6=function(e){return JSON.stringify(e,stringifyReplacer)};function stringifyReplacer(e,n){return n=isNonNullObject(n)&&!Array.isArray(n)?Object.keys(n).sort().reduce(function(e,t){return e[t]=n[t],e},{}):n}function argumentsObjectFromField(e,n){var r;return e.arguments&&e.arguments.length?(r={},e.arguments.forEach(function(e){var t=e.name,e=e.value;return valueToObjectRepresentation(r,t,e,n)}),r):null}function resultKeyNameFromField(e){return(e.alias||e.name).value}function getTypenameFromResult(e,t,n){for(var r,i=0,o=t.selections;i<o.length;i++)if(isField(l=o[i])){if("__typename"===l.name.value)return e[resultKeyNameFromField(l)]}else r?r.push(l):r=[l];if("string"==typeof e.__typename)return e.__typename;if(r)for(var a=0,s=r;a<s.length;a++){var l,c=getTypenameFromResult(e,getFragmentFromSelection(l=s[a],n).selectionSet,n);if("string"==typeof c)return c}}function isField(e){return"Field"===e.kind}function isInlineFragment(e){return"InlineFragment"===e.kind}function checkDocument(e){invariant$6(e&&"Document"===e.kind,71);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw newInvariantError(72,e.kind);return e});return invariant$6(t.length<=1,73,t.length),e}function getOperationDefinition(e){return checkDocument(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function getOperationName(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function getFragmentDefinitions(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function getQueryDefinition(e){e=getOperationDefinition(e);return invariant$6(e&&"query"===e.operation,74),e}function getFragmentDefinition(e){invariant$6("Document"===e.kind,75),invariant$6(e.definitions.length<=1,76);e=e.definitions[0];return invariant$6("FragmentDefinition"===e.kind,77),e}function getMainDefinition(e){var t;checkDocument(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"===i.kind&&(t=t||i)}if(t)return t;throw newInvariantError(78)}function getDefaultValues(e){var t=Object.create(null),e=e&&e.variableDefinitions;return e&&e.length&&e.forEach(function(e){e.defaultValue&&valueToObjectRepresentation(t,e.variable.name,e.defaultValue)}),t}function identity$3(e){return e}var DocumentTransform=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=new(canUseWeakSet?WeakSet:Set),this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),!1!==t.cache&&(this.stableCacheKeys=new Trie(canUseWeakMap,function(e){return{key:e}}))}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(identity$3,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),new e(function(e){return(t(e)?n:r).transformDocument(e)},{cache:!1})},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.getStableCacheEntry(e);if(t&&t.value)return t.value;checkDocument(e);e=this.transform(e);return this.resultCache.add(e),t&&(t.value=e),e},e.prototype.concat=function(t){var n=this;return new e(function(e){return t.transformDocument(n.transformDocument(e))},{cache:!1})},e.prototype.getStableCacheEntry=function(e){return this.stableCacheKeys&&(e=this.getCacheKey(e))?(invariant$6(Array.isArray(e),63),this.stableCacheKeys.lookupArray(e)):void 0},e}(),printCache=canUseWeakMap?new WeakMap:void 0,print$1=function(e){var t=null==printCache?void 0:printCache.get(e);return t||(t=print$2(e),null!=printCache&&printCache.set(e,t)),t},isArray$9=Array.isArray;function isNonEmptyArray(e){return Array.isArray(e)&&0<e.length}var TYPENAME_FIELD={kind:Kind$1.FIELD,name:{kind:Kind$1.NAME,value:"__typename"}};function isEmpty$1(e,t){return!e||e.selectionSet.selections.every(function(e){return e.kind===Kind$1.FRAGMENT_SPREAD&&isEmpty$1(t[e.name.value],t)})}function nullIfDocIsEmpty(e){return isEmpty$1(getOperationDefinition(e)||getFragmentDefinition(e),createFragmentMap(getFragmentDefinitions(e)))?null:e}function getDirectiveMatcher(e){var t=new Map,i=new Map;return e.forEach(function(e){e&&(e.name?t.set(e.name,e):e.test&&i.set(e.test,e))}),function(n){var r=t.get(n.name.value);return!r&&i.size&&i.forEach(function(e,t){t(n)&&(r=e)}),r}}function makeInUseGetterFunction(n){var r=new Map;return function(e){var t=r.get(e=void 0===e?n:e);return t||r.set(e,t={variables:new Set,fragmentSpreads:new Set}),t}}function removeDirectivesFromDocument(e,t){checkDocument(t);function o(e){for(var t=0,n=void 0;t<e.length&&(n=e[t]);++t)if(!isArray$9(n)){if(n.kind===Kind$1.OPERATION_DEFINITION)return r(n.name&&n.name.value);if(n.kind===Kind$1.FRAGMENT_DEFINITION)return i(n.name.value)}return!1!==globalThis.__DEV__&&invariant$6.error(80),null}for(var r=makeInUseGetterFunction(""),i=makeInUseGetterFunction(""),a=0,n=t.definitions.length-1;0<=n;--n)t.definitions[n].kind===Kind$1.OPERATION_DEFINITION&&++a;function s(e){return isNonEmptyArray(e)&&e.map(u).some(function(e){return e&&e.remove})}var l,c,u=getDirectiveMatcher(e),d=new Map,p=!1,e={enter:function(e){if(s(e.directives))return p=!0,null}},e=visit$3(t,{Field:e,InlineFragment:e,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,i){i=o(i);i&&i.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,i){if(s(e.directives))return p=!0,null;i=o(i);i&&i.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){d.set(JSON.stringify(r),e)},leave:function(e,t,n,r){return e===d.get(JSON.stringify(r))?e:0<a&&e.selectionSet.selections.every(function(e){return e.kind===Kind$1.FIELD&&"__typename"===e.name.value})?(i(e.name.value).removed=!0,p=!0,null):void 0}},Directive:{leave:function(e){if(u(e))return p=!0,null}}});return p?(l=function(t){return t.transitiveVars||(t.transitiveVars=new Set(t.variables),t.removed)||t.fragmentSpreads.forEach(function(e){l(i(e)).transitiveVars.forEach(function(e){t.transitiveVars.add(e)})}),t},c=new Set,e.definitions.forEach(function(e){e.kind===Kind$1.OPERATION_DEFINITION?l(r(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){c.add(e)}):e.kind!==Kind$1.FRAGMENT_DEFINITION||0!==a||i(e.name.value).removed||c.add(e.name.value)}),c.forEach(function(e){l(i(e)).fragmentSpreads.forEach(function(e){c.add(e)})}),nullIfDocIsEmpty(visit$3(e,{FragmentSpread:e={enter:function(e){if(e=e.name.value,!(c.has(e)&&!i(e).removed))return null}},FragmentDefinition:e,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=l(r(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return __assign$2(__assign$2({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))):t}var addTypenameToDocument=Object.assign(function(e){return visit$3(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==Kind$1.OPERATION_DEFINITION){var r=e.selections;if(r){var i=r.some(function(e){return isField(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))});if(!i){i=n;if(!(isField(i)&&i.directives&&i.directives.some(function(e){return"export"===e.name.value})))return __assign$2(__assign$2({},e),{selections:__spreadArray(__spreadArray([],r,!0),[TYPENAME_FIELD],!1)})}}}}}})},{added:function(e){return e===TYPENAME_FIELD}});function buildQueryFromSelectionSet(e){return"query"===getMainDefinition(e).operation?e:visit$3(e,{OperationDefinition:{enter:function(e){return __assign$2(__assign$2({},e),{operation:"query"})}}})}function removeClientSetsFromDocument(e){return checkDocument(e),removeDirectivesFromDocument([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var hasOwnProperty$d=Object.prototype.hasOwnProperty;function mergeDeep(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mergeDeepArray(e)}function mergeDeepArray(e){var t=e[0]||{},n=e.length;if(1<n)for(var r=new DeepMerger,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var defaultReconciler=function(e,t,n){return this.merge(e[n],t[n])},DeepMerger=function(){function e(e){this.reconciler=e=void 0===e?defaultReconciler:e,this.isObject=isNonNullObject,this.pastCopies=new Set}return e.prototype.merge=function(r,i){for(var o=this,a=[],e=2;e<arguments.length;e++)a[e-2]=arguments[e];return isNonNullObject(i)&&isNonNullObject(r)?(Object.keys(i).forEach(function(e){var t,n;hasOwnProperty$d.call(r,e)?(t=r[e],i[e]!==t&&(n=o.reconciler.apply(o,__spreadArray([r,i,e],a,!1)))!==t&&((r=o.shallowCopyForMerge(r))[e]=n)):(r=o.shallowCopyForMerge(r))[e]=i[e]}),r):i},e.prototype.shallowCopyForMerge=function(e){return isNonNullObject(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):__assign$2({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function _createForOfIteratorHelperLoose$3(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_unsupportedIterableToArray$4(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray$4(e,t){var n;if(e)return"string"==typeof e?_arrayLikeToArray$4(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray$4(e,t):void 0}function _arrayLikeToArray$4(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _defineProperties$A(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,r.key,r)}}function _createClass$A(e,t,n){return t&&_defineProperties$A(e.prototype,t),n&&_defineProperties$A(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var hasSymbols=function(){return"function"==typeof Symbol},hasSymbol=function(e){return hasSymbols()&&Boolean(Symbol[e])},getSymbol=function(e){return hasSymbol(e)?Symbol[e]:"@@"+e},SymbolIterator=(hasSymbols()&&!hasSymbol("observable")&&(Symbol.observable=Symbol("observable")),getSymbol("iterator")),SymbolObservable=getSymbol("observable"),SymbolSpecies=getSymbol("species");function getMethod$5(e,t){e=e[t];if(null!=e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}}function getSpecies(e){e=e.constructor;return void 0!==(e=void 0!==e&&null===(e=e[SymbolSpecies])?void 0:e)?e:Observable}function isObservable(e){return e instanceof Observable}function hostReportError(e){hostReportError.log?hostReportError.log(e):setTimeout(function(){throw e})}function enqueue(e){Promise.resolve().then(function(){try{e()}catch(e){hostReportError(e)}})}function cleanupSubscription(e){var t,n=e._cleanup;if(void 0!==n&&(e._cleanup=void 0,n))try{"function"==typeof n?n():(t=getMethod$5(n,"unsubscribe"))&&t.call(n)}catch(e){hostReportError(e)}}function closeSubscription(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function flushSubscription(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(notifySubscription(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}function notifySubscription(e,t,n){e._state="running";var r=e._observer;try{var i=getMethod$5(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(closeSubscription(e),!i)throw n;i.call(r,n);break;case"complete":closeSubscription(e),i&&i.call(r)}}catch(e){hostReportError(e)}"closed"===e._state?cleanupSubscription(e):"running"===e._state&&(e._state="ready")}function onNotify(e,t,n){"closed"!==e._state&&("buffering"===e._state?e._queue.push({type:t,value:n}):"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],enqueue(function(){return flushSubscription(e)})):notifySubscription(e,t,n))}var root$2,Subscription=function(){function e(t,e){this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";t=new SubscriptionObserver(this);try{this._cleanup=e.call(void 0,t)}catch(e){t.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(closeSubscription(this),cleanupSubscription(this))},_createClass$A(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),SubscriptionObserver=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){onNotify(this._subscription,"next",e)},t.error=function(e){onNotify(this._subscription,"error",e)},t.complete=function(){onNotify(this._subscription,"complete")},_createClass$A(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),Observable=function(){function o(e){if(!(this instanceof o))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof e)throw new TypeError("Observable initializer must be a function");this._subscriber=e}var e=o.prototype;return e.subscribe=function(e){return new Subscription(e="object"==typeof e&&null!==e?e:{next:e,error:arguments[1],complete:arguments[2]},this._subscriber)},e.forEach=function(i){var o=this;return new Promise(function(e,t){var n;function r(){n.unsubscribe(),e()}"function"!=typeof i?t(new TypeError(i+" is not a function")):n=o.subscribe({next:function(e){try{i(e,r)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e})})},e.map=function(n){var e=this;if("function"!=typeof n)throw new TypeError(n+" is not a function");return new(getSpecies(this))(function(t){return e.subscribe({next:function(e){try{e=n(e)}catch(e){return t.error(e)}t.next(e)},error:function(e){t.error(e)},complete:function(){t.complete()}})})},e.filter=function(n){var e=this;if("function"!=typeof n)throw new TypeError(n+" is not a function");return new(getSpecies(this))(function(t){return e.subscribe({next:function(e){try{if(!n(e))return}catch(e){return t.error(e)}t.next(e)},error:function(e){t.error(e)},complete:function(){t.complete()}})})},e.reduce=function(r){var e=this;if("function"!=typeof r)throw new TypeError(r+" is not a function");var t=getSpecies(this),i=1<arguments.length,o=!1,a=arguments[1];return new t(function(n){return e.subscribe({next:function(e){var t=!o;if(o=!0,!t||i)try{a=r(a,e)}catch(e){return n.error(e)}else a=e},error:function(e){n.error(e)},complete:function(){if(!o&&!i)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})})},e.concat=function(){for(var e=this,t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];var a=getSpecies(this);return new a(function(n){var r,i=0;return function e(t){r=t.subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){i===o.length?(r=void 0,n.complete()):e(a.from(o[i++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}})},e.flatMap=function(o){var t=this;if("function"!=typeof o)throw new TypeError(o+" is not a function");var a=getSpecies(this);return new a(function(n){var r=[],e=t.subscribe({next:function(e){if(o)try{e=o(e)}catch(e){return n.error(e)}var t=a.from(e).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=r.indexOf(t);0<=e&&r.splice(e,1),i()}});r.push(t)},error:function(e){n.error(e)},complete:function(){i()}});function i(){e.closed&&0===r.length&&n.complete()}return function(){r.forEach(function(e){return e.unsubscribe()}),e.unsubscribe()}})},e[SymbolObservable]=function(){return this},o.from=function(r){var e="function"==typeof this?this:o;if(null==r)throw new TypeError(r+" is not an object");var i=getMethod$5(r,SymbolObservable);if(i){var t=i.call(r);if(Object(t)!==t)throw new TypeError(t+" is not an object");return isObservable(t)&&t.constructor===e?t:new e(function(e){return t.subscribe(e)})}if(hasSymbol("iterator")&&(i=getMethod$5(r,SymbolIterator)))return new e(function(n){enqueue(function(){if(!n.closed){for(var e=_createForOfIteratorHelperLoose$3(i.call(r));!(t=e()).done;){var t=t.value;if(n.next(t),n.closed)return}n.complete()}})});if(Array.isArray(r))return new e(function(t){enqueue(function(){if(!t.closed){for(var e=0;e<r.length;++e)if(t.next(r[e]),t.closed)return;t.complete()}})});throw new TypeError(r+" is not observable")},o.of=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return new("function"==typeof this?this:o)(function(t){enqueue(function(){if(!t.closed){for(var e=0;e<n.length;++e)if(t.next(n[e]),t.closed)return;t.complete()}})})},_createClass$A(o,null,[{key:SymbolSpecies,get:function(){return this}}]),o}();function symbolObservablePonyfill(e){var t,e=e.Symbol;if("function"==typeof e)if(e.observable)t=e.observable;else{t="function"==typeof e.for?e.for("https://github.com/benlesh/symbol-observable"):e("https://github.com/benlesh/symbol-observable");try{e.observable=t}catch(e){}}else t="@@observable";return t}hasSymbols()&&Object.defineProperty(Observable,Symbol("extensions"),{value:{symbol:SymbolObservable,hostReportError:hostReportError},configurable:!0}),symbolObservablePonyfill(root$2="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")());var prototype=Observable.prototype,fakeObsSymbol="@@observable",toString$c=(prototype[fakeObsSymbol]||(prototype[fakeObsSymbol]=function(){return this}),Object.prototype.toString);function cloneDeep(e){return cloneDeepHelper(e)}function cloneDeepHelper(t,n){switch(toString$c.call(t)){case"[object Array]":var r;return(n=n||new Map).has(t)?n.get(t):(r=t.slice(0),n.set(t,r),r.forEach(function(e,t){r[t]=cloneDeepHelper(e,n)}),r);case"[object Object]":var i;return(n=n||new Map).has(t)?n.get(t):(i=Object.create(Object.getPrototypeOf(t)),n.set(t,i),Object.keys(t).forEach(function(e){i[e]=cloneDeepHelper(t[e],n)}),i);default:return t}}function deepFreeze(e){var n=new Set([e]);return n.forEach(function(t){isNonNullObject(t)&&shallowFreeze(t)===t&&Object.getOwnPropertyNames(t).forEach(function(e){isNonNullObject(t[e])&&n.add(t[e])})}),e}function shallowFreeze(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}function maybeDeepFreeze(e){return!1!==globalThis.__DEV__&&deepFreeze(e),e}function iterateObserversSafely(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function asyncMap(u,d,p){return new Observable(function(r){var i=r.next,o=r.error,e=r.complete,a=0,s=!1,l={then:function(t){return new Promise(function(e){return e(t())})}};function t(n,t){return n?function(e){++a;function t(){return n(e)}l=l.then(t,t).then(function(e){--a,i&&i.call(r,e),s&&c.complete()},function(e){throw--a,e}).catch(function(e){o&&o.call(r,e)})}:function(e){return t&&t.call(r,e)}}var c={next:t(d,i),error:t(p,o),complete:function(){s=!0,a||e&&e.call(r)}},n=u.subscribe(c);return function(){return n.unsubscribe()}})}function fixObservableSubclass(t){function e(e){Object.defineProperty(t,e,{value:Observable})}return canUseSymbol&&Symbol.species&&e(Symbol.species),e("@@species"),t}function isPromiseLike(e){return e&&"function"==typeof e.then}var Concast=function(t){function e(e){var n=t.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),iterateObserversSafely(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),iterateObserversSafely(n.observers,"error",e))},complete:function(){var e=n.sub,t=n.sources;null!==e&&((t=(void 0===t?[]:t).shift())?isPromiseLike(t)?t.then(function(e){return n.sub=e.subscribe(n.handlers)}):n.sub=t.subscribe(n.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),iterateObserversSafely(n.observers,"complete")))}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch(function(e){}),isPromiseLike(e="function"==typeof e?[new Observable(e)]:e)?e.then(function(e){return n.start(e)},n.handlers.error):n.start(e),n}return __extends(e,t),e.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},e.prototype.deliverLastMessage=function(e){var t,n;this.latest&&((n=e[t=this.latest[0]])&&n.call(e,this.latest[1]),null===this.sub)&&"next"===t&&e.complete&&e.complete()},e.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},e.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},e.prototype.notify=function(t,n){var e=this.nextResultListeners;e.size&&(this.nextResultListeners=new Set,e.forEach(function(e){return e(t,n)}))},e.prototype.beforeNext=function(n){var r=!1;this.nextResultListeners.add(function(e,t){r||(r=!0,n(e,t))})},e}(Observable);function isExecutionPatchIncrementalResult(e){return"incremental"in e}function isExecutionPatchInitialResult(e){return"hasNext"in e&&"data"in e}function isExecutionPatchResult(e){return isExecutionPatchIncrementalResult(e)||isExecutionPatchInitialResult(e)}function isApolloPayloadResult(e){return isNonNullObject(e)&&"payload"in e}function mergeIncrementalData(e,t){var a=e,s=new DeepMerger;return isExecutionPatchIncrementalResult(t)&&isNonEmptyArray(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,n=e.path,r=n.length-1;0<=r;--r){var i=n[r],o=!isNaN(+i)?[]:{};o[i]=t,t=o}a=s.merge(a,t)}),a}function graphQLResultHasError(e){return isNonEmptyArray(getGraphQLErrorsFromResult(e))}function getGraphQLErrorsFromResult(e){var t=isNonEmptyArray(e.errors)?e.errors.slice(0):[];return isExecutionPatchIncrementalResult(e)&&isNonEmptyArray(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}function compact$1(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(n){n&&Object.keys(n).forEach(function(e){var t=n[e];void 0!==t&&(r[e]=t)})}),r}function mergeOptions(e,t){return compact$1(e,t,t.variables&&{variables:compact$1(__assign$2(__assign$2({},e&&e.variables),t.variables))})}function fromError(t){return new Observable(function(e){e.error(t)})}fixObservableSubclass(Concast);var throwServerError=function(e,t,n){n=new Error(n);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n};function validateOperation(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw newInvariantError(41,i)}return e}function createOperation(e,t){var n=__assign$2({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=__assign$2(__assign$2({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return __assign$2({},n)}}),t}function transformOperation(e){e={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return e.operationName||(e.operationName="string"!=typeof e.query?getOperationName(e.query)||void 0:""),e}function filterOperationVariables(e,t){var n=__assign$2({},e),r=new Set(Object.keys(e));return visit$3(t,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&r.delete(e.name.value)}}),r.forEach(function(e){delete n[e]}),n}function passthrough(e,t){return t?t(e):Observable.of()}function toLink(e){return"function"==typeof e?new ApolloLink(e):e}function isTerminating(e){return e.request.length<=1}var ApolloLink=function(){function o(e){e&&(this.request=e)}return o.empty=function(){return new o(function(){return Observable.of()})},o.from=function(e){return 0===e.length?o.empty():e.map(toLink).reduce(function(e,t){return e.concat(t)})},o.split=function(n,e,t){var r=toLink(e),i=toLink(t||new o(passthrough));return isTerminating(r)&&isTerminating(i)?new o(function(e){return n(e)?r.request(e)||Observable.of():i.request(e)||Observable.of()}):new o(function(e,t){return n(e)?r.request(e,t)||Observable.of():i.request(e,t)||Observable.of()})},o.execute=function(e,t){return e.request(createOperation(t.context,transformOperation(validateOperation(t))))||Observable.of()},o.concat=function(e,t){var n,r=toLink(e);return isTerminating(r)?(!1!==globalThis.__DEV__&&invariant$6.warn(33,r),r):isTerminating(n=toLink(t))?new o(function(e){return r.request(e,function(e){return n.request(e)||Observable.of()})||Observable.of()}):new o(function(e,t){return r.request(e,function(e){return n.request(e,t)||Observable.of()})||Observable.of()})},o.prototype.split=function(e,t,n){return this.concat(o.split(e,t,n||new o(passthrough)))},o.prototype.concat=function(e){return o.concat(this,e)},o.prototype.request=function(e,t){throw newInvariantError(34)},o.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},o.prototype.setOnError=function(e){return this.onError=e,this},o}(),execute$1=ApolloLink.execute;function asyncIterator(e){var t=e[Symbol.asyncIterator](),e={next:function(){return t.next()}};return e[Symbol.asyncIterator]=function(){return this},e}function nodeStreamIterator(e){var n=null,r=null,i=!1,o=[],a=[];function t(e){if(!r){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}o.push(e)}}function s(t){r=t,a.slice().forEach(function(e){e[1](t)}),n&&n()}function l(){i=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),n&&n()}n=function(){n=null,e.removeListener("data",t),e.removeListener("error",s),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",t),e.on("error",s),e.on("end",l),e.on("finish",l),e.on("close",l);var c={next:function(){return new Promise(function(e,t){return r?t(r):o.length?e({value:o.shift(),done:!1}):i?e({value:void 0,done:!0}):void a.push([e,t])})}};return canUseAsyncIteratorSymbol&&(c[Symbol.asyncIterator]=function(){return this}),c}function promiseIterator(n){var e=!1,t={next:function(){return e?Promise.resolve({value:void 0,done:!0}):(e=!0,new Promise(function(t,e){n.then(function(e){t({value:e,done:!1})}).catch(e)}))}};return canUseAsyncIteratorSymbol&&(t[Symbol.asyncIterator]=function(){return this}),t}function readerIterator(e){var t={next:function(){return e.read()}};return canUseAsyncIteratorSymbol&&(t[Symbol.asyncIterator]=function(){return this}),t}function isNodeResponse(e){return!!e.body}function isReadableStream(e){return!!e.getReader}function isAsyncIterableIterator(e){return!(!canUseAsyncIteratorSymbol||!e[Symbol.asyncIterator])}function isStreamableBlob(e){return!!e.stream}function isBlob(e){return!!e.arrayBuffer}function isNodeReadableStream(e){return!!e.pipe}function responseIterator(e){var t=e;if(isAsyncIterableIterator(t=isNodeResponse(e)?e.body:t))return asyncIterator(t);if(isReadableStream(t))return readerIterator(t.getReader());if(isStreamableBlob(t))return readerIterator(t.stream().getReader());if(isBlob(t))return promiseIterator(t.arrayBuffer());if(isNodeReadableStream(t))return nodeStreamIterator(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var PROTOCOL_ERRORS_SYMBOL=Symbol();function graphQLResultHasProtocolErrors(e){return!!e.extensions&&Array.isArray(e.extensions[PROTOCOL_ERRORS_SYMBOL])}function isApolloError(e){return e.hasOwnProperty("graphQLErrors")}var generateErrorMessage=function(e){var t=__spreadArray(__spreadArray(__spreadArray([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return isNonNullObject(e)&&e.message||"Error message not found."}).join("\n")},ApolloError=function(s){function l(e){var t=e.graphQLErrors,n=e.protocolErrors,r=e.clientErrors,i=e.networkError,o=e.errorMessage,e=e.extraInfo,a=s.call(this,o)||this;return a.name="ApolloError",a.graphQLErrors=t||[],a.protocolErrors=n||[],a.clientErrors=r||[],a.networkError=i||null,a.message=o||generateErrorMessage(a),a.extraInfo=e,a.__proto__=l.prototype,a}return __extends(l,s),l}(Error),hasOwnProperty$c=Object.prototype.hasOwnProperty;function readMultipartBody(f,h){var m;return __awaiter$g(this,void 0,void 0,function(){var t,n,r,i,o,a,s,l,c,u,d,p;return __generator$1(this,function(e){switch(e.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");t=new TextDecoder("utf-8"),o=null==(m=f.headers)?void 0:m.get("content-type"),i="boundary=",o=null!=o&&o.includes(i)?null==o?void 0:o.substring((null==o?void 0:o.indexOf(i))+i.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",n="\r\n--".concat(o),r="",i=responseIterator(f),o=!0,e.label=1;case 1:return o?[4,i.next()]:[3,3];case 2:for(a=e.sent(),s=a.value,a=a.done,s="string"==typeof s?s:t.decode(s),l=r.length-n.length+1,o=!a,c=(r+=s).indexOf(n,l);-1<c;){if(u=void 0,d=[r.slice(0,c),r.slice(c+n.length)],u=d[0],r=d[1],d=u.indexOf("\r\n\r\n"),p=parseHeaders(u.slice(0,d)),(p=p["content-type"])&&-1===p.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(p=u.slice(d))if(u=parseJsonBody(f,p),1<Object.keys(u).length||"data"in u||"incremental"in u||"errors"in u||"payload"in u)isApolloPayloadResult(u)?(d={},"payload"in u&&(d=__assign$2({},u.payload)),"errors"in u&&(d=__assign$2(__assign$2({},d),{extensions:__assign$2(__assign$2({},"extensions"in d?d.extensions:null),((p={})[PROTOCOL_ERRORS_SYMBOL]=u.errors,p))})),h(d)):h(u);else if(1===Object.keys(u).length&&"hasNext"in u&&!u.hasNext)return[2];c=r.indexOf(n)}return[3,1];case 3:return[2]}})})}function parseHeaders(e){var r={};return e.split("\n").forEach(function(e){var t,n=e.indexOf(":");-1<n&&(t=e.slice(0,n).trim().toLowerCase(),e=e.slice(n+1).trim(),r[t]=e)}),r}function parseJsonBody(t,n){300<=t.status&&throwServerError(t,function(){try{return JSON.parse(n)}catch(e){return n}}(),"Response not successful: Received status code ".concat(t.status));try{return JSON.parse(n)}catch(e){var r=e;throw r.name="ServerParseError",r.response=t,r.statusCode=t.status,r.bodyText=n,r}}function handleError(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function parseAndCheckHttpResponse(n){return function(t){return t.text().then(function(e){return parseJsonBody(t,e)}).then(function(e){return 300<=t.status&&throwServerError(t,e,"Response not successful: Received status code ".concat(t.status)),Array.isArray(e)||hasOwnProperty$c.call(e,"data")||hasOwnProperty$c.call(e,"errors")||throwServerError(t,e,"Server response was missing for query '".concat(Array.isArray(n)?n.map(function(e){return e.operationName}):n.operationName,"'.")),e})}}var serializeFetchParameter=function(t,n){var e;try{e=JSON.stringify(t)}catch(e){t=newInvariantError(37,n,e.message);throw t.parseError=e,t}return e},defaultHttpOptions={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},defaultHeaders={accept:"*/*","content-type":"application/json"},defaultOptions$2={method:"POST"},fallbackHttpConfig={http:defaultHttpOptions,headers:defaultHeaders,options:defaultOptions$2},defaultPrinter=function(e,t){return t(e)};function selectHttpOptionsAndBodyInternal(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},o={},a=(n.forEach(function(e){i=__assign$2(__assign$2(__assign$2({},i),e.options),{headers:__assign$2(__assign$2({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=__assign$2(__assign$2({},o),e.http)}),i.headers&&(i.headers=removeDuplicateHeaders(i.headers,o.preserveHeaderCase)),e.operationName),s=e.extensions,l=e.variables,c=e.query,a={operationName:a,variables:l};return o.includeExtensions&&(a.extensions=s),o.includeQuery&&(a.query=t(c,print$1)),{options:i,body:a}}function removeDuplicateHeaders(t,e){var n,r,i;return e?(r=Object.create(null),Object.keys(Object(t)).forEach(function(e){r[e.toLowerCase()]={originalName:e,value:t[e]}}),i=Object.create(null),Object.keys(r).forEach(function(e){i[r[e].originalName]=r[e].value}),i):(n=Object.create(null),Object.keys(Object(t)).forEach(function(e){n[e.toLowerCase()]=t[e]}),n)}var checkFetcher=function(e){if(!e&&"undefined"==typeof fetch)throw newInvariantError(35)},selectURI=function(e,t){var n=e.getContext().uri;return n||("function"==typeof t?t(e):t||"/graphql")};function rewriteURIForGET(e,t){function n(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))}var r=[];if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=serializeFetchParameter(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){i=void 0;try{i=serializeFetchParameter(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",i)}var t="",i=e,o=e.indexOf("#"),e=(-1!==o&&(t=e.substr(o),i=e.substr(0,o)),-1===i.indexOf("?")?"?":"&");return{newURI:i+e+r.join("&")+t}}var backupFetch=maybe$2(function(){return fetch}),createHttpLink=function(e){var t=(e=void 0===e?{}:e).uri,c=void 0===t?"/graphql":t,u=e.fetch,t=e.print,d=void 0===t?defaultPrinter:t,t=e.includeExtensions,n=e.preserveHeaderCase,p=e.useGETForQueries,r=e.includeUnusedVariables,f=void 0!==r&&r,r=__rest$7(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]),h=(!1!==globalThis.__DEV__&&checkFetcher(u||backupFetch),{http:{includeExtensions:t,preserveHeaderCase:n},options:r.fetchOptions,credentials:r.credentials,headers:r.headers});return new ApolloLink(function(r){var i=selectURI(r,c),e=r.getContext(),t={},n=(e.clientAwareness&&(n=(o=e.clientAwareness).name,o=o.version,n&&(t["apollographql-client-name"]=n),o)&&(t["apollographql-client-version"]=o),__assign$2(__assign$2({},t),e.headers)),o={http:e.http,options:e.fetchOptions,credentials:e.credentials,headers:n};if(hasDirectives(["client"],r.query)){t=removeClientSetsFromDocument(r.query);if(!t)return fromError(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));r.query=t}var a,e=selectHttpOptionsAndBodyInternal(r,d,fallbackHttpConfig,h,o),s=e.options,n=e.body,o=(n.variables&&!f&&(n.variables=filterOperationVariables(n.variables,r.query)),s.signal||"undefined"==typeof AbortController||(a=new AbortController,s.signal=a.signal),"OperationDefinition"===(t=getMainDefinition(r.query)).kind&&"subscription"===t.operation),e=hasDirectives(["defer"],r.query);if(p&&!r.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(s.method="GET"),(e||o)&&(s.headers=s.headers||{},t="multipart/mixed;",o&&e&&!1!==globalThis.__DEV__&&invariant$6.warn(36),o?t+="boundary=graphql;subscriptionSpec=1.0,application/json":e&&(t+="deferSpec=20220824,application/json"),s.headers.accept=t),"GET"===s.method){var o=rewriteURIForGET(i,n),e=o.newURI,l=o.parseError;if(l)return fromError(l);i=e}else try{s.body=serializeFetchParameter(n,"Payload")}catch(l){return fromError(l)}return new Observable(function(t){var e=u||maybe$2(function(){return fetch})||backupFetch,n=t.next.bind(t);return e(i,s).then(function(e){r.setContext({response:e});var t=null==(t=e.headers)?void 0:t.get("content-type");return null!==t&&/^multipart\/mixed/i.test(t)?readMultipartBody(e,n):parseAndCheckHttpResponse(r)(e).then(n)}).then(function(){a=void 0,t.complete()}).catch(function(e){a=void 0,handleError(e,t)}),function(){a&&a.abort()}})})},HttpLink=function(n){function e(e){var t=n.call(this,createHttpLink(e=void 0===e?{}:e).request)||this;return t.options=e,t}return __extends(e,n),e}(ApolloLink);const{toString:toString$b,hasOwnProperty:hasOwnProperty$b}=Object.prototype,fnToStr=Function.prototype.toString,previousComparisons=new Map;function equal(e,t){try{return check$2(e,t)}finally{previousComparisons.clear()}}function check$2(t,n){if(t===n)return!0;var e=toString$b.call(t),r=toString$b.call(n);if(e===r)switch(e){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":if(!previouslyCompared(t,n)){var i=definedKeys(t),o=definedKeys(n),a=i.length;if(a!==o.length)return!1;for(let e=0;e<a;++e)if(!hasOwnProperty$b.call(n,i[e]))return!1;for(let e=0;e<a;++e){var s=i[e];if(!check$2(t[s],n[s]))return!1}}return!0;case"[object Error]":return t.name===n.name&&t.message===n.message;case"[object Number]":if(t!=t)return n!=n;case"[object Boolean]":case"[object Date]":return+t==+n;case"[object RegExp]":case"[object String]":return t==""+n;case"[object Map]":case"[object Set]":if(t.size!==n.size)return!1;if(!previouslyCompared(t,n))for(var l=t.entries(),c="[object Map]"===e;;){var u=l.next();if(u.done)break;var[u,d]=u.value;if(!n.has(u))return!1;if(c&&!check$2(d,n.get(u)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),n=new Uint8Array(n);case"[object DataView]":{let e=t.byteLength;if(e===n.byteLength)for(;e--&&t[e]===n[e];);return-1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":o=fnToStr.call(t);return o!==fnToStr.call(n)?!1:!endsWith(o,nativeCodeSuffix)}return!1}function definedKeys(e){return Object.keys(e).filter(isDefinedKey,e)}function isDefinedKey(e){return void 0!==this[e]}const nativeCodeSuffix="{ [native code] }";function endsWith(e,t){var n=e.length-t.length;return 0<=n&&e.indexOf(t,n)===n}function previouslyCompared(e,t){let n=previousComparisons.get(e);if(n){if(n.has(t))return!0}else previousComparisons.set(e,n=new Set);return n.add(t),!1}function defaultDispose(){}class Cache{constructor(e=1/0,t=defaultDispose){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){e=this.getNode(e);return e&&e.value}getNode(e){var t,n,e=this.map.get(e);return e&&e!==this.newest&&({older:t,newer:n}=e,n&&(n.older=t),t&&(t.newer=n),e.older=this.newest,(e.older.newer=e).newer=null,(this.newest=e)===this.oldest)&&(this.oldest=n),e}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}var currentContext$1=null,MISSING_VALUE$1={},idCounter$1=1,makeSlotClass$1=function(){return e.prototype.hasValue=function(){for(var e=currentContext$1;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===MISSING_VALUE$1)break;return e!==currentContext$1&&(currentContext$1.slots[this.id]=t),!0}return currentContext$1&&(currentContext$1.slots[this.id]=MISSING_VALUE$1),!1},e.prototype.getValue=function(){if(this.hasValue())return currentContext$1.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i;(i={__proto__:null})[this.id]=e;e=currentContext$1;currentContext$1={parent:e,slots:i};try{return t.apply(r,n)}finally{currentContext$1=e}},e.bind=function(t){var n=currentContext$1;return function(){var e=currentContext$1;try{return currentContext$1=n,t.apply(this,arguments)}finally{currentContext$1=e}}},e.noContext=function(e,t,n){if(!currentContext$1)return e.apply(n,t);var r=currentContext$1;try{return currentContext$1=null,e.apply(n,t)}finally{currentContext$1=r}},e;function e(){this.id=["slot",idCounter$1++,Date.now(),Math.random().toString(36).slice(2)].join(":")}};function maybe$1(e){try{return e()}catch(e){}}var globalKey$1="@wry/context:Slot",host$1=maybe$1(function(){return globalThis})||maybe$1(function(){return global})||Object.create(null),globalHost$1=host$1,Slot$1=globalHost$1[globalKey$1]||Array[globalKey$1]||function(e){try{Object.defineProperty(globalHost$1,globalKey$1,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(makeSlotClass$1());Slot$1.bind,Slot$1.noContext;const parentEntrySlot=new Slot$1,hasOwnProperty$a=Object.prototype["hasOwnProperty"],arrayFromSet=Array.from||function(e){const t=[];return e.forEach(e=>t.push(e)),t};function maybeUnsubscribe(e){var t=e["unsubscribe"];"function"==typeof t&&(e.unsubscribe=void 0,t())}const emptySetPool=[],POOL_TARGET_SIZE=100;function assert$2(e,t){if(!e)throw new Error(t||"assertion failure")}function valueIs(e,t){var n=e.length;return 0<n&&n===t.length&&e[n-1]===t[n-1]}function valueGet(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function valueCopy(e){return e.slice(0)}class Entry{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Entry.count}peek(){if(1===this.value.length&&!mightBeDirty(this))return rememberParent(this),this.value[0]}recompute(e){return assert$2(!this.recomputing,"already recomputing"),rememberParent(this),mightBeDirty(this)?reallyRecompute(this,e):valueGet(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,reportDirty(this),maybeUnsubscribe(this))}dispose(){this.setDirty(),forgetChildren(this),eachParent(this,(e,t)=>{e.setDirty(),forgetChild(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=emptySetPool.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(arrayFromSet(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),emptySetPool.push(this.deps),this.deps=null)}}function rememberParent(e){var t=parentEntrySlot.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),(mightBeDirty(e)?reportDirtyChild:reportCleanChild)(t,e),t}function reallyRecompute(e,t){return forgetChildren(e),parentEntrySlot.withValue(e,recomputeNewValue,[e,t]),maybeSubscribe(e,t)&&setClean(e),valueGet(e.value)}function recomputeNewValue(t,e){t.recomputing=!0,t.value.length=0;try{t.value[0]=t.fn.apply(null,e)}catch(e){t.value[1]=e}t.recomputing=!1}function mightBeDirty(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function setClean(e){e.dirty=!1,mightBeDirty(e)||reportClean(e)}function reportDirty(e){eachParent(e,reportDirtyChild)}function reportClean(e){eachParent(e,reportCleanChild)}function eachParent(t,n){var r=t.parents.size;if(r){var i=arrayFromSet(t.parents);for(let e=0;e<r;++e)n(i[e],t)}}function reportDirtyChild(e,t){assert$2(e.childValues.has(t)),assert$2(mightBeDirty(t));var n=!mightBeDirty(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=emptySetPool.pop()||new Set;e.dirtyChildren.add(t),n&&reportDirty(e)}function reportCleanChild(e,t){assert$2(e.childValues.has(t)),assert$2(!mightBeDirty(t));var n=e.childValues.get(t);0===n.length?e.childValues.set(t,valueCopy(t.value)):valueIs(n,t.value)||e.setDirty(),removeDirtyChild(e,t),mightBeDirty(e)||reportClean(e)}function removeDirtyChild(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size)&&(emptySetPool.length<POOL_TARGET_SIZE&&emptySetPool.push(n),e.dirtyChildren=null)}function forgetChildren(n){0<n.childValues.size&&n.childValues.forEach((e,t)=>{forgetChild(n,t)}),n.forgetDeps(),assert$2(null===n.dirtyChildren)}function forgetChild(e,t){t.parents.delete(e),e.childValues.delete(t),removeDirtyChild(e,t)}function maybeSubscribe(t,e){if("function"==typeof t.subscribe)try{maybeUnsubscribe(t),t.unsubscribe=t.subscribe.apply(null,e)}catch(e){return t.setDirty(),!1}return!0}const EntryMethods={setDirty:!(Entry.count=0),dispose:!0,forget:!0};function dep(e){const i=new Map,r=e&&e.subscribe;function t(t){var n=parentEntrySlot.getValue();if(n){let e=i.get(t);e||i.set(t,e=new Set),n.dependOn(e),"function"==typeof r&&(maybeUnsubscribe(e),e.unsubscribe=r(t))}}return t.dirty=function(e,t){var n=i.get(e);if(n){const r=t&&hasOwnProperty$a.call(EntryMethods,t)?t:"setDirty";arrayFromSet(n).forEach(e=>e[r]()),i.delete(e),maybeUnsubscribe(n)}},t}let defaultKeyTrie;function defaultMakeCacheKey(...e){defaultKeyTrie=defaultKeyTrie||new Trie("function"==typeof WeakMap);return defaultKeyTrie.lookupArray(e)}const caches=new Set;function wrap$3(r,{max:e=Math.pow(2,16),makeCacheKey:i=defaultMakeCacheKey,keyArgs:o,subscribe:a}=Object.create(null)){const s=new Cache(e,e=>e.dispose());function t(){const e=i.apply(null,o?o.apply(null,arguments):arguments);if(void 0===e)return r.apply(null,arguments);let t=s.get(e);t||(s.set(e,t=new Entry(r)),t.subscribe=a,t.forget=()=>s.delete(e));var n=t.recompute(Array.prototype.slice.call(arguments));return s.set(e,t),caches.add(s),parentEntrySlot.hasValue()||(caches.forEach(e=>e.clean()),caches.clear()),n}function n(e){e=s.get(e);e&&e.setDirty()}function l(e){e=s.get(e);if(e)return e.peek()}function c(e){return s.delete(e)}return Object.defineProperty(t,"size",{get(){return s.map.size},configurable:!1,enumerable:!1}),Object.freeze(t.options={max:e,makeCacheKey:i,keyArgs:o,subscribe:a}),t.dirtyKey=n,t.dirty=function(){n(i.apply(null,arguments))},t.peekKey=l,t.peek=function(){return l(i.apply(null,arguments))},t.forgetKey=c,t.forget=function(){return c(i.apply(null,arguments))},t.makeCacheKey=i,t.getKey=o?function(){return i.apply(null,o.apply(null,arguments))}:i,Object.freeze(t)}var ApolloCache=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=wrap$3(getFragmentQueryDocument)}return e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(n)},r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(__assign$2(__assign$2({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(__assign$2(__assign$2({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,e=__rest$7(e,["id","data"]);return this.write(Object.assign(e,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,e=__rest$7(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(e,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(r,i){return this.batch({update:function(e){var t=e.readQuery(r),n=i(t);return null==n?t:(e.writeQuery(__assign$2(__assign$2({},r),{data:n})),n)}})},e.prototype.updateFragment=function(r,i){return this.batch({update:function(e){var t=e.readFragment(r),n=i(t);return null==n?t:(e.writeFragment(__assign$2(__assign$2({},r),{data:n})),n)}})},e}(),MissingFieldError=function(s){function l(e,t,n,r){var i,o=s.call(this,e)||this;if(o.message=e,o.path=t,o.query=n,o.variables=r,Array.isArray(o.path)){o.missing=o.message;for(var a=o.path.length-1;0<=a;--a)o.missing=((i={})[o.path[a]]=o.missing,i)}else o.missing=o.path;return o.__proto__=l.prototype,o}return __extends(l,s),l}(Error),hasOwn$c=Object.prototype.hasOwnProperty;function isNullish(e){return null==e}function defaultDataIdFromObject(e,t){var n=e.__typename,r=e.id,e=e._id;if("string"==typeof n&&(t&&(t.keyObject=isNullish(r)?isNullish(e)?void 0:{_id:e}:{id:r}),isNullish(r)&&!isNullish(e)&&(r=e),!isNullish(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var defaultConfig={dataIdFromObject:defaultDataIdFromObject,addTypename:!0,resultCaching:!0,canonizeResults:!1};function normalizeConfig(e){return compact$1(defaultConfig,e)}function shouldCanonizeResults(e){e=e.canonizeResults;return void 0===e?defaultConfig.canonizeResults:e}function getTypenameFromStoreObject(e,t){return isReference(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var TypeOrFieldNameRegExp=/^[_a-z][_0-9a-z]*/i;function fieldNameFromStoreName(e){var t=e.match(TypeOrFieldNameRegExp);return t?t[0]:e}function selectionSetMatchesResult(t,n,r){return!!isNonNullObject(n)&&(isArray$9(n)?n.every(function(e){return selectionSetMatchesResult(t,e,r)}):t.selections.every(function(e){var t;return!isField(e)||!shouldInclude(e,r)||(t=resultKeyNameFromField(e),hasOwn$c.call(n,t)&&(!e.selectionSet||selectionSetMatchesResult(e.selectionSet,n[t],r)))}))}function storeValueIsStoreObject(e){return isNonNullObject(e)&&!isReference(e)&&!isArray$9(e)}function makeProcessedFieldsMerger(){return new DeepMerger}function extractFragmentContext(e,n){var r=createFragmentMap(getFragmentDefinitions(e));return{fragmentMap:r,lookupFragment:function(e){var t=r[e];return(t=!t&&n?n.lookup(e):t)||null}}}var DELETE=Object.create(null),delModifier=function(){return DELETE},INVALIDATE=Object.create(null),EntityStore=function(){function e(e,t){var i=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return maybeDeepFreeze(isReference(e)?i.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return isReference(e)?i.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){var n,r;return"string"==typeof e?makeReference(e):isReference(e)?e:(n=i.policies.identify(e)[0])?(r=makeReference(n),t&&i.merge(n,e),r):void 0}}return e.prototype.toObject=function(){return __assign$2({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),hasOwn$c.call(this.data,e)){var n=this.data[e];if(n&&hasOwn$c.call(n,t))return n[t]}return"__typename"===t&&hasOwn$c.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Layer?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),hasOwn$c.call(this.data,e)?this.data[e]:this instanceof Layer?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r,i,o=this,a=(isReference(e)&&(e=e.__ref),isReference(t)&&(t=t.__ref),"string"==typeof e?this.lookup(n=e):e),e="string"==typeof t?this.lookup(n=t):t;e&&(invariant$6("string"==typeof n,1),r=new DeepMerger(storeObjectReconciler).merge(a,e),(this.data[n]=r)!==a)&&(delete this.refs[n],this.group.caching)&&(i=Object.create(null),a||(i.__exists=1),Object.keys(e).forEach(function(e){var t;a&&a[e]===r[e]||(i[e]=1,(t=fieldNameFromStoreName(e))===e||o.policies.hasKeyArgs(r.__typename,t)||(i[t]=1),void 0!==r[e])||o instanceof Layer||delete r[e]}),!i.__typename||a&&a.__typename||this.policies.rootTypenamesById[n]!==r.__typename||delete i.__typename,Object.keys(i).forEach(function(e){return o.group.dirty(n,e)}))},e.prototype.modify=function(i,o){var a=this,s=this.lookup(i);if(s){var l=Object.create(null),c=!1,u=!0,d={DELETE:DELETE,INVALIDATE:INVALIDATE,isReference:isReference,toReference:this.toReference,canRead:this.canRead,readField:function(e,t){return a.policies.readField("string"==typeof e?{fieldName:e,from:t||makeReference(i)}:e,{store:a})}};if(Object.keys(s).forEach(function(e){var t,n=fieldNameFromStoreName(e),r=s[e];void 0!==r&&((t="function"==typeof o?o:o[e]||o[n])&&((t=t===delModifier?DELETE:t(maybeDeepFreeze(r),__assign$2(__assign$2({},d),{fieldName:n,storeFieldName:e,storage:a.getStorage(i,e)})))===INVALIDATE?a.group.dirty(i,e):(t=t===DELETE?void 0:t)!==r&&(l[e]=t,c=!0,r=t)),void 0!==r)&&(u=!1)}),c)return this.merge(i,l),u&&(this instanceof Layer?this.data[i]=void 0:delete this.data[i],this.group.dirty(i,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r=this.lookup(e);return!!r&&(r=this.getFieldValue(r,"__typename"),r=t&&n?this.policies.getStoreFieldName({typename:r,fieldName:t,args:n}):t,this.modify(e,r?((n={})[r]=delModifier,n):delModifier))},e.prototype.evict=function(e,t){var n=!1;return e.id&&(hasOwn$c.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof Layer&&this!==t&&(n=this.parent.evict(e,t)||n),e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists"),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,e=this.toObject(),n=[];return this.getRootIdSet().forEach(function(e){hasOwn$c.call(t.policies.rootTypenamesById,e)||n.push(e)}),n.length&&(e.__META={extraRootIds:n.sort()}),e},e.prototype.replace=function(t){var e,n,r=this;Object.keys(this.data).forEach(function(e){t&&hasOwn$c.call(t,e)||r.delete(e)}),t&&(e=t.__META,n=__rest$7(t,["__META"]),Object.keys(n).forEach(function(e){r.merge(e,n[e])}),e)&&e.extraRootIds.forEach(this.retain,this)},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){var t;return 0<this.rootIds[e]?((t=--this.rootIds[e])||delete this.rootIds[e],t):0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Layer?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var t=this,n=this.getRootIdSet(),r=this.toObject(),e=(n.forEach(function(e){hasOwn$c.call(r,e)&&(Object.keys(t.findChildRefIds(e)).forEach(n.add,n),delete r[e])}),Object.keys(r));if(e.length){for(var i=this;i instanceof Layer;)i=i.parent;e.forEach(function(e){return i.delete(e)})}return e},e.prototype.findChildRefIds=function(e){if(!hasOwn$c.call(this.refs,e)){var n=this.refs[e]=Object.create(null),t=this.data[e];if(!t)return n;var r=new Set([t]);r.forEach(function(t){isReference(t)&&(n[t.__ref]=!0),isNonNullObject(t)&&Object.keys(t).forEach(function(e){e=t[e];isNonNullObject(e)&&r.add(e)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),CacheGroup=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?dep():null,this.keyMaker=new Trie(canUseWeakMap)},e.prototype.depend=function(e,t){var n;this.d&&(this.d(makeDepKey(e,t)),(n=fieldNameFromStoreName(t))!==t&&this.d(makeDepKey(e,n)),this.parent)&&this.parent.depend(e,t)},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(makeDepKey(e,t),"__exists"===t?"forget":"setDirty")},e}();function makeDepKey(e,t){return t+"#"+e}function maybeDependOnExistenceOfEntity(e,t){supportsResultCaching(e)&&e.group.depend(t,"__exists")}!function(e){__extends(n,r=e),n.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},n.prototype.removeLayer=function(){return this},n.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)};var r,t=n;function n(e){var t=e.policies,n=e.resultCaching,e=e.seed,t=r.call(this,t,new CacheGroup(void 0===n||n))||this;return t.stump=new Stump(t),t.storageTrie=new Trie(canUseWeakMap),e&&t.replace(e),t}e.Root=t}(EntityStore=EntityStore||{});var Layer=function(o){function n(e,t,n,r){var i=o.call(this,t.policies,r)||this;return i.id=e,i.parent=t,i.replay=n,i.group=r,n(i),i}return __extends(n,o),n.prototype.addLayer=function(e,t){return new n(e,this,t,this.group)},n.prototype.removeLayer=function(e){var i=this,o=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(t){var n=i.data[t],r=o.lookup(t);r?n?n!==r&&Object.keys(n).forEach(function(e){equal(n[e],r[e])||i.group.dirty(t,e)}):(i.group.dirty(t,"__exists"),Object.keys(r).forEach(function(e){i.group.dirty(t,e)})):i.delete(t)}),o):o===this.parent?this:o.addLayer(this.id,this.replay)},n.prototype.toObject=function(){return __assign$2(__assign$2({},this.parent.toObject()),this.data)},n.prototype.findChildRefIds=function(e){var t=this.parent.findChildRefIds(e);return hasOwn$c.call(this.data,e)?__assign$2(__assign$2({},t),o.prototype.findChildRefIds.call(this,e)):t},n.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},n}(EntityStore),Stump=function(t){function e(e){return t.call(this,"EntityStore.Stump",e,function(){},new CacheGroup(e.group.caching,e.group))||this}return __extends(e,t),e.prototype.removeLayer=function(){return this},e.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},e}(Layer);function storeObjectReconciler(e,t,n){e=e[n],t=t[n];return equal(e,t)?e:t}function supportsResultCaching(e){return!!(e instanceof EntityStore&&e.group.caching)}function shallowCopy(e){return isNonNullObject(e)?isArray$9(e)?e.slice(0):__assign$2({__proto__:Object.getPrototypeOf(e)},e):e}var stringifyCanon,stringifyCache,ObjectCanon=function(){function e(){this.known=new(canUseWeakSet?WeakSet:Set),this.pool=new Trie(canUseWeakMap),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return isNonNullObject(e)&&this.known.has(e)},e.prototype.pass=function(e){var t;return isNonNullObject(e)?(t=shallowCopy(e),this.passes.set(t,e),t):e},e.prototype.admit=function(t){var n=this;if(isNonNullObject(t)){var e,r,i,o,a,s,l=this.passes.get(t);if(l)return l;switch(Object.getPrototypeOf(t)){case Array.prototype:return this.known.has(t)?t:(e=t.map(this.admit,this),(a=this.pool.lookupArray(e)).array||(this.known.add(a.array=e),!1!==globalThis.__DEV__&&Object.freeze(e)),a.array);case null:case Object.prototype:return this.known.has(t)?t:(e=Object.getPrototypeOf(t),r=[e],i=this.sortedKeys(t),r.push(i.json),o=r.length,i.sorted.forEach(function(e){r.push(n.admit(t[e]))}),(a=this.pool.lookupArray(r)).object||(s=a.object=Object.create(e),this.known.add(s),i.sorted.forEach(function(e,t){s[e]=r[o+t]}),!1!==globalThis.__DEV__&&Object.freeze(s)),a.object)}}return t},e.prototype.sortedKeys=function(e){var t,e=Object.keys(e),n=this.pool.lookupArray(e);return n.keys||(e.sort(),t=JSON.stringify(e),n.keys=this.keysByJSON.get(t))||this.keysByJSON.set(t,n.keys={sorted:e,json:t}),n.keys},e}(),canonicalStringify=Object.assign(function(e){var t,n;return isNonNullObject(e)?(void 0===stringifyCanon&&resetCanonicalStringify(),t=stringifyCanon.admit(e),void 0===(n=stringifyCache.get(t))&&stringifyCache.set(t,n=JSON.stringify(t)),n):JSON.stringify(e)},{reset:resetCanonicalStringify});function resetCanonicalStringify(){stringifyCanon=new ObjectCanon,stringifyCache=new(canUseWeakMap?WeakMap:Map)}function execSelectionSetKeyArgs(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var StoreReader=function(){function e(e){var i=this;this.knownResults=new(canUseWeakMap?WeakMap:Map),this.config=compact$1(e,{addTypename:!1!==e.addTypename,canonizeResults:shouldCanonizeResults(e)}),this.canon=e.canon||new ObjectCanon,this.executeSelectionSet=wrap$3(function(e){var t=e.context.canonizeResults,n=execSelectionSetKeyArgs(e),r=(n[3]=!t,(r=i.executeSelectionSet).peek.apply(r,n));return r?t?__assign$2(__assign$2({},r),{result:i.canon.admit(r.result)}):r:(maybeDependOnExistenceOfEntity(e.context.store,e.enclosingRef.__ref),i.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:execSelectionSetKeyArgs,makeCacheKey:function(e,t,n,r){if(supportsResultCaching(n.store))return n.store.makeCacheKey(e,isReference(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=wrap$3(function(e){return maybeDependOnExistenceOfEntity(e.context.store,e.enclosingRef.__ref),i.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,e=e.context;if(supportsResultCaching(e.store))return e.store.makeCacheKey(t,n,e.varString)}})}return e.prototype.resetCanon=function(){this.canon=new ObjectCanon},e.prototype.diffQueryAgainstStore=function(e){var t,n=e.store,r=e.query,i=e.rootId,i=void 0===i?"ROOT_QUERY":i,o=e.variables,a=e.returnPartialData,a=void 0===a||a,e=e.canonizeResults,e=void 0===e?this.config.canonizeResults:e,s=this.config.cache.policies,o=__assign$2(__assign$2({},getDefaultValues(getQueryDefinition(r))),o),i=makeReference(i),i=this.executeSelectionSet({selectionSet:getMainDefinition(r).selectionSet,objectOrReference:i,enclosingRef:i,context:__assign$2({store:n,query:r,policies:s,variables:o,varString:canonicalStringify(o),canonizeResults:e},extractFragmentContext(r,this.config.fragments))});if(i.missing&&(t=[new MissingFieldError(firstMissing(i.missing),i.missing,r,o)],!a))throw t[0];return{result:i.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,n,r){if(supportsResultCaching(r.store)&&this.knownResults.get(e)===n){n=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(n&&e===n.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var i=this,t=e.selectionSet,o=e.objectOrReference,a=e.enclosingRef,s=e.context;if(isReference(o)&&!s.policies.rootTypenamesById[o.__ref]&&!s.store.has(o.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(o.__ref," object")};var l,c=s.variables,u=s.policies,d=s.store.getFieldValue(o,"__typename"),p=[],f=new DeepMerger;function h(e,t){var n;return e.missing&&(l=f.merge(l,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof d&&!u.rootIdsByTypename[d]&&p.push({__typename:d});var m=new Set(t.selections);m.forEach(function(e){var t;if(shouldInclude(e,c))if(isField(e)){var n=u.readField({fieldName:e.name.value,field:e,variables:s.variables,from:o},s),r=resultKeyNameFromField(e);void 0===n?addTypenameToDocument.added(e)||(l=f.merge(l,((t={})[r]="Can't find field '".concat(e.name.value,"' on ").concat(isReference(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2)),t))):isArray$9(n)?n=h(i.executeSubSelectedArray({field:e,array:n,enclosingRef:a,context:s}),r):e.selectionSet?null!=n&&(n=h(i.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:n,enclosingRef:isReference(n)?n:a,context:s}),r)):s.canonizeResults&&(n=i.canon.pass(n)),void 0!==n&&p.push(((t={})[r]=n,t))}else{r=getFragmentFromSelection(e,s.lookupFragment);if(!r&&e.kind===Kind$1.FRAGMENT_SPREAD)throw newInvariantError(7,e.name.value);r&&u.fragmentMatches(r,d)&&r.selectionSet.selections.forEach(m.add,m)}});e={result:mergeDeepArray(p),missing:l},e=s.canonizeResults?this.canon.admit(e):maybeDeepFreeze(e);return e.result&&this.knownResults.set(e.result,t),e},e.prototype.execSubSelectedArrayImpl=function(e){var r,n=this,i=e.field,t=e.array,o=e.enclosingRef,a=e.context,s=new DeepMerger;function l(e,t){var n;return e.missing&&(r=s.merge(r,((n={})[t]=e.missing,n))),e.result}return t=(t=i.selectionSet?t.filter(a.store.canRead):t).map(function(e,t){return null===e?null:isArray$9(e)?l(n.executeSubSelectedArray({field:i,array:e,enclosingRef:o,context:a}),t):i.selectionSet?l(n.executeSelectionSet({selectionSet:i.selectionSet,objectOrReference:e,enclosingRef:isReference(e)?e:o,context:a}),t):(!1!==globalThis.__DEV__&&assertSelectionSetForIdValue(a.store,i,e),e)}),{result:a.canonizeResults?this.canon.admit(t):t,missing:r}},e}();function firstMissing(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}function assertSelectionSetForIdValue(t,n,e){var r;n.selectionSet||(r=new Set([e])).forEach(function(e){isNonNullObject(e)&&(invariant$6(!isReference(e),8,getTypenameFromStoreObject(t,e),n.name.value),Object.values(e).forEach(r.add,r))})}let currentContext=null;const MISSING_VALUE={};let idCounter=1;const makeSlotClass=()=>class{constructor(){this.id=["slot",idCounter++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=currentContext;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===MISSING_VALUE)break;return e!==currentContext&&(currentContext.slots[this.id]=t),!0}return currentContext&&(currentContext.slots[this.id]=MISSING_VALUE),!1}getValue(){if(this.hasValue())return currentContext.slots[this.id]}withValue(e,t,n,r){var e={__proto__:null,[this.id]:e},i=currentContext;currentContext={parent:i,slots:e};try{return t.apply(r,n)}finally{currentContext=i}}static bind(t){const n=currentContext;return function(){var e=currentContext;try{return currentContext=n,t.apply(this,arguments)}finally{currentContext=e}}}static noContext(e,t,n){if(!currentContext)return e.apply(n,t);var r=currentContext;try{return currentContext=null,e.apply(n,t)}finally{currentContext=r}}};function maybe(e){try{return e()}catch(e){}}const globalKey="@wry/context:Slot",host=maybe(()=>globalThis)||maybe(()=>global)||Object.create(null),globalHost=host,Slot=globalHost[globalKey]||Array[globalKey]||function(e){try{Object.defineProperty(globalHost,globalKey,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(makeSlotClass());var cacheSlot=new Slot,cacheInfoMap=new WeakMap;function getCacheInfo(e){var t=cacheInfoMap.get(e);return t||cacheInfoMap.set(e,t={vars:new Set,dep:dep()}),t}function forgetCache(t){getCacheInfo(t).vars.forEach(function(e){return e.forgetCache(t)})}function recallCache(t){getCacheInfo(t).vars.forEach(function(e){return e.attachCache(t)})}function makeVar(n){function r(e){var t;return 0<arguments.length?n!==e&&(n=e,i.forEach(function(e){getCacheInfo(e).dep.dirty(r),broadcast(e)}),t=Array.from(o),o.clear(),t.forEach(function(e){return e(n)})):(t=cacheSlot.getValue())&&(a(t),getCacheInfo(t).dep(r)),n}var i=new Set,o=new Set,a=(r.onNextChange=function(e){return o.add(e),function(){o.delete(e)}},r.attachCache=function(e){return i.add(e),getCacheInfo(e).vars.add(r),r});return r.forgetCache=function(e){return i.delete(e)},r}function broadcast(e){e.broadcastWatches&&e.broadcastWatches()}var specifierInfoCache=Object.create(null);function lookupSpecifierInfo(e){e=JSON.stringify(e);return specifierInfoCache[e]||(specifierInfoCache[e]=Object.create(null))}function keyFieldsFnFromSpecifier(t){var e=lookupSpecifierInfo(t);return e.keyFieldsFn||(e.keyFieldsFn=function(n,r){function i(e,t){return r.readField(t,e)}var e=r.keyObject=collectSpecifierPaths(t,function(e){var t=extractKeyPath(r.storeObject,e,i);return void 0===t&&n!==r.storeObject&&hasOwn$c.call(n,e[0])&&(t=extractKeyPath(n,e,extractKey)),invariant$6(void 0!==t,2,e.join("."),n),t});return"".concat(r.typename,":").concat(JSON.stringify(e))})}function keyArgsFnFromSpecifier(n){var e=lookupSpecifierInfo(n);return e.keyArgsFn||(e.keyArgsFn=function(o,e){var a=e.field,s=e.variables,e=e.fieldName,t=collectSpecifierPaths(n,function(e){var t,n,r=e[0],i=r.charAt(0);return"@"===i?a&&isNonEmptyArray(a.directives)?(t=r.slice(1),(n=(n=a.directives.find(function(e){return e.name.value===t}))&&argumentsObjectFromField(n,s))&&extractKeyPath(n,e.slice(1))):void 0:"$"===i?(n=r.slice(1),s&&hasOwn$c.call(s,n)?((i=e.slice(0))[0]=n,extractKeyPath(s,i)):void 0):o?extractKeyPath(o,e):void 0}),t=JSON.stringify(t);return!o&&"{}"===t||(e+=":"+t),e})}function collectSpecifierPaths(e,o){var a=new DeepMerger;return getSpecifierPaths(e).reduce(function(e,t){var n,r=o(t);if(void 0!==r){for(var i=t.length-1;0<=i;--i)(n={})[t[i]]=r,r=n;e=a.merge(e,r)}return e},Object.create(null))}function getSpecifierPaths(n){var r,i,e=lookupSpecifierInfo(n);return e.paths||(r=e.paths=[],i=[],n.forEach(function(e,t){isArray$9(e)?(getSpecifierPaths(e).forEach(function(e){return r.push(i.concat(e))}),i.length=0):(i.push(e),isArray$9(n[t+1])||(r.push(i.slice(0)),i.length=0))})),e.paths}function extractKey(e,t){return e[t]}function extractKeyPath(e,t,r){return r=r||extractKey,normalize$6(t.reduce(function t(e,n){return isArray$9(e)?e.map(function(e){return t(e,n)}):e&&r(e,n)},e))}function normalize$6(t){return isNonNullObject(t)?isArray$9(t)?t.map(normalize$6):collectSpecifierPaths(Object.keys(t).sort(),function(e){return extractKeyPath(t,e)}):t}function argsFromFieldSpecifier(e){return void 0!==e.args?e.args:e.field?argumentsObjectFromField(e.field,e.variables):null}getStoreKeyName.setStringify(canonicalStringify);var nullKeyFieldsFn=function(){},simpleKeyArgsFn=function(e,t){return t.fieldName},mergeTrueFn=function(e,t,n){return(0,n.mergeObjects)(e,t)},mergeFalseFn=function(e,t){return t},Policies=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=__assign$2({dataIdFromObject:defaultDataIdFromObject},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n=this,r=t&&(t.typename||(null==(r=t.storeObject)?void 0:r.__typename))||e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,o=t&&t.storeObject||e,a=__assign$2(__assign$2({},t),{typename:r,storeObject:o,readField:t&&t.readField||function(){var e=normalizeReadFieldOptions(arguments,o);return n.readField(e,{store:n.cache.data,variables:e.variables})}}),t=r&&this.getTypePolicy(r),s=t&&t.keyFn||this.config.dataIdFromObject;s;){var l=s(__assign$2(__assign$2({},e),o),a);if(!isArray$9(l)){i=l;break}s=keyFieldsFnFromSpecifier(l)}return i=i?String(i):void 0,a.keyObject?[i,a.keyObject]:[i]},e.prototype.addTypePolicies=function(o){var a=this;Object.keys(o).forEach(function(e){var t=o[e],n=t.queryType,r=t.mutationType,i=t.subscriptionType,t=__rest$7(t,["queryType","mutationType","subscriptionType"]);n&&a.setRootTypename("Query",e),r&&a.setRootTypename("Mutation",e),i&&a.setRootTypename("Subscription",e),hasOwn$c.call(a.toBeAdded,e)?a.toBeAdded[e].push(t):a.toBeAdded[e]=[t]})},e.prototype.updateTypePolicy=function(i,e){var o=this,t=this.getTypePolicy(i),n=e.keyFields,a=e.fields;function s(e,t){e.merge="function"==typeof t?t:!0===t?mergeTrueFn:!1===t?mergeFalseFn:e.merge}s(t,e.merge),t.keyFn=!1===n?nullKeyFieldsFn:isArray$9(n)?keyFieldsFnFromSpecifier(n):"function"==typeof n?n:t.keyFn,a&&Object.keys(a).forEach(function(e){var t,n,r=o.getFieldPolicy(i,e,!0),e=a[e];"function"==typeof e?r.read=e:(t=e.keyArgs,n=e.read,e=e.merge,r.keyFn=!1===t?simpleKeyArgsFn:isArray$9(t)?keyArgsFnFromSpecifier(t):"function"==typeof t?t:r.keyFn,"function"==typeof n&&(r.read=n),s(r,e)),r.read&&r.merge&&(r.keyFn=r.keyFn||simpleKeyArgsFn)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(invariant$6(!r||r===e,3,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var r=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){r.getSupertypeSet(n,!0),e[n].forEach(function(e){r.getSupertypeSet(e,!0).add(n);var t=e.match(TypeOrFieldNameRegExp);t&&t[0]===e||r.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(n){var r,i,o=this,e=(hasOwn$c.call(this.typePolicies,n)||((r=this.typePolicies[n]=Object.create(null)).fields=Object.create(null),!(i=this.supertypeMap.get(n))&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(n,!0),this.fuzzySubtypes.forEach(function(e,t){e.test(n)&&(e=o.supertypeMap.get(t))&&e.forEach(function(e){return i.add(e)})})),i&&i.size&&i.forEach(function(e){var e=o.getTypePolicy(e),t=e.fields,e=__rest$7(e,["fields"]);Object.assign(r,e),Object.assign(r.fields,t)})),this.toBeAdded[n]);return e&&e.length&&e.splice(0).forEach(function(e){o.updateTypePolicy(n,e)}),this.typePolicies[n]},e.prototype.getFieldPolicy=function(e,t,n){if(e)return(e=this.getTypePolicy(e).fields)[t]||n&&(e[t]=Object.create(null))},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,n,t,r){var i=this;if(!e.typeCondition)return!0;if(n){var o=e.typeCondition.name.value;if(n===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o)){function a(e){e=i.getSupertypeSet(e,!1);e&&e.size&&l.indexOf(e)<0&&l.push(e)}for(var s=this.getSupertypeSet(n,!0),l=[s],c=!(!t||!this.fuzzySubtypes.size),u=!1,d=0;d<l.length;++d){var p=l[d];if(p.has(o))return s.has(o)||(u&&!1!==globalThis.__DEV__&&invariant$6.warn(4,n,o),s.add(o)),!0;p.forEach(a),c&&d===l.length-1&&selectionSetMatchesResult(e.selectionSet,t,r)&&(u=!(c=!1),this.fuzzySubtypes.forEach(function(e,t){e=n.match(e);e&&e[0]===n&&a(t)}))}}}return!1},e.prototype.hasKeyArgs=function(e,t){e=this.getFieldPolicy(e,t,!1);return!(!e||!e.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),o=i&&i.keyFn;if(o&&n)for(var a={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=argsFromFieldSpecifier(e);o;){var l=o(s,a);if(!isArray$9(l)){t=l||r;break}o=keyArgsFnFromSpecifier(l)}return!1===(t=void 0===t?e.field?storeKeyNameFromField(e.field,e.variables):getStoreKeyName(r,argsFromFieldSpecifier(e)):t)?r:r===fieldNameFromStoreName(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n,r,i,o=e.from;if(o&&(e.field||e.fieldName))return void 0===e.typename&&(n=t.store.getFieldValue(o,"__typename"))&&(e.typename=n),i=fieldNameFromStoreName(n=this.getStoreFieldName(e)),r=t.store.getFieldValue(o,n),(i=(i=this.getFieldPolicy(e.typename,i,!1))&&i.read)?(e=makeFieldFunctionOptions(this,o,e,t,t.store.getStorage(isReference(o)?o.__ref:o,n)),cacheSlot.withValue(this.cache,i,[r,e])):r},e.prototype.getReadFunction=function(e,t){e=this.getFieldPolicy(e,t,!1);return e&&e.read},e.prototype.getMergeFunction=function(e,t,n){e=this.getFieldPolicy(e,t,!1),t=e&&e.merge;return t=!t&&n?(e=this.getTypePolicy(n))&&e.merge:t},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,a=n.typename,n=n.merge;return n===mergeTrueFn?makeMergeObjectsFunction(r.store)(e,t):n===mergeFalseFn?t:n(e=r.overwrite?void 0:e,t,makeFieldFunctionOptions(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null)))},e}();function makeFieldFunctionOptions(e,t,n,r,i){var o=e.getStoreFieldName(n),a=fieldNameFromStoreName(o),s=n.variables||r.variables,l=r.store,c=l.toReference,l=l.canRead;return{args:argsFromFieldSpecifier(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:isReference,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(normalizeReadFieldOptions(arguments,t,s),r)},mergeObjects:makeMergeObjectsFunction(r.store)}}function normalizeReadFieldOptions(e,t,n){var r,i=e[0],o=e[1],a=e.length;return"string"==typeof i?r={fieldName:i,from:1<a?o:t}:(r=__assign$2({},i),hasOwn$c.call(r,"from")||(r.from=t)),!1!==globalThis.__DEV__&&void 0===r.from&&!1!==globalThis.__DEV__&&invariant$6.warn(5,stringifyForDisplay(Array.from(e))),void 0===r.variables&&(r.variables=n),r}function makeMergeObjectsFunction(i){return function(e,t){if(isArray$9(e)||isArray$9(t))throw newInvariantError(6);if(isNonNullObject(e)&&isNonNullObject(t)){var n=i.getFieldValue(e,"__typename"),r=i.getFieldValue(t,"__typename");if(n&&r&&n!==r)return t;if(isReference(e)&&storeValueIsStoreObject(t))return i.merge(e.__ref,t),e;if(storeValueIsStoreObject(e)&&isReference(t))return i.merge(e,t.__ref),t;if(storeValueIsStoreObject(e)&&storeValueIsStoreObject(t))return __assign$2(__assign$2({},e),t)}return t}}function getContextFlavor(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:__assign$2(__assign$2({},e),{clientOnly:t,deferred:n})),i}var StoreWriter=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(s,e){var l=this,t=e.query,n=e.result,r=e.dataId,i=e.variables,e=e.overwrite,o=getOperationDefinition(t),a=makeProcessedFieldsMerger(),i=__assign$2(__assign$2({},getDefaultValues(o)),i),c=__assign$2(__assign$2({store:s,written:Object.create(null),merge:function(e,t){return a.merge(e,t)},variables:i,varString:canonicalStringify(i)},extractFragmentContext(t,this.fragments)),{overwrite:!!e,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),i=this.processSelectionSet({result:n||Object.create(null),dataId:r,selectionSet:o.selectionSet,mergeTree:{map:new Map},context:c});if(isReference(i))return c.incomingById.forEach(function(e,t){var n,r=e.storeObject,i=e.mergeTree,e=e.fieldNodeSet,o=makeReference(t);if(i&&i.map.size){var a=l.applyMerges(i,o,r,c);if(isReference(a))return;r=a}!1===globalThis.__DEV__||c.overwrite||(n=Object.create(null),e.forEach(function(e){e.selectionSet&&(n[e.name.value]=!0)}),Object.keys(r).forEach(function(e){!0!==n[fieldNameFromStoreName(e)]||function(e){e=i&&i.map.get(e);return Boolean(e&&e.info&&e.info.merge)}(e)||warnAboutDataLoss(o,r,e,c.store)})),s.merge(t,r)}),s.retain(i.__ref),i;throw newInvariantError(9,n)},e.prototype.processSelectionSet=function(e){function a(){var e=normalizeReadFieldOptions(arguments,d,i.variables);if(isReference(e.from)){var t=i.incomingById.get(e.from.__ref);if(t){t=u.readField(__assign$2(__assign$2({},e),{from:t.storeObject}),i);if(void 0!==t)return t}}return u.readField(e,i)}var t,s=this,n=e.dataId,l=e.result,r=e.selectionSet,i=e.context,c=e.mergeTree,u=this.cache.policies,d=Object.create(null),p=n&&u.rootTypenamesById[n]||getTypenameFromResult(l,r,i.fragmentMap)||n&&i.store.get(n,"__typename"),f=("string"==typeof p&&(d.__typename=p),new Set);this.flattenFields(r,l,i,p).forEach(function(e,t){var n,r,i,o=resultKeyNameFromField(t),o=l[o];f.add(t),void 0!==o?(n=u.getStoreFieldName({typename:p,fieldName:t.name.value,field:t,variables:e.variables}),r=getChildMergeTree(c,n),o=s.processFieldValue(o,t,t.selectionSet?getContextFlavor(e,!1,!1):e,r),i=void 0,t.selectionSet&&(isReference(o)||storeValueIsStoreObject(o))&&(i=a("__typename",o)),(i=u.getMergeFunction(p,t.name.value,i))?r.info={field:t,typename:p,merge:i}:maybeRecycleChildMergeTree(c,n),d=e.merge(d,((r={})[n]=o,r))):!1===globalThis.__DEV__||e.clientOnly||e.deferred||addTypenameToDocument.added(t)||u.getReadFunction(p,t.name.value)||!1!==globalThis.__DEV__&&invariant$6.error(10,resultKeyNameFromField(t),l)});try{var o=u.identify(l,{typename:p,selectionSet:r,fragmentMap:i.fragmentMap,storeObject:d,readField:a}),h=o[0],m=o[1],n=n||h;m&&(d=i.merge(d,m))}catch(e){if(!n)throw e}return"string"==typeof n?(e=makeReference(n),0<=(o=i.written[n]||(i.written[n]=[])).indexOf(r)||(o.push(r),this.reader&&this.reader.isFresh(l,e,r,i))||((t=i.incomingById.get(n))?(t.storeObject=i.merge(t.storeObject,d),t.mergeTree=mergeMergeTrees(t.mergeTree,c),f.forEach(function(e){return t.fieldNodeSet.add(e)})):i.incomingById.set(n,{storeObject:d,mergeTree:mergeTreeIsEmpty(c)?void 0:c,fieldNodeSet:f})),e):d},e.prototype.processFieldValue=function(e,n,r,i){var o=this;return n.selectionSet&&null!==e?isArray$9(e)?e.map(function(e,t){e=o.processFieldValue(e,n,r,getChildMergeTree(i,t));return maybeRecycleChildMergeTree(i,t),e}):this.processSelectionSet({result:e,selectionSet:n.selectionSet,context:r,mergeTree:i}):!1!==globalThis.__DEV__?cloneDeep(e):e},e.prototype.flattenFields=function(e,a,s,l){void 0===l&&(l=getTypenameFromResult(a,e,s.fragmentMap));var c=new Map,u=this.cache.policies,n=new Trie(!1);return function i(e,o){var t=n.lookup(e,o.clientOnly,o.deferred);t.visited||(t.visited=!0,e.selections.forEach(function(e){if(shouldInclude(e,s.variables)){var n=o.clientOnly,r=o.deferred;if(n&&r||!isNonEmptyArray(e.directives)||e.directives.forEach(function(e){var t=e.name.value;"client"===t&&(n=!0),"defer"!==t||(t=argumentsObjectFromField(e,s.variables))&&!1===t.if||(r=!0)}),isField(e)){var t=c.get(e);t&&(n=n&&t.clientOnly,r=r&&t.deferred),c.set(e,getContextFlavor(s,n,r))}else{t=getFragmentFromSelection(e,s.lookupFragment);if(!t&&e.kind===Kind$1.FRAGMENT_SPREAD)throw newInvariantError(11,e.name.value);t&&u.fragmentMatches(t,l,a,s.variables)&&i(t.selectionSet,getContextFlavor(s,n,r))}}}))}(e,s),c},e.prototype.applyMerges=function(e,t,n,i,o){var a,s,l,c,u=this;return e.map.size&&!isReference(n)&&(a=isArray$9(n)||!isReference(t)&&!storeValueIsStoreObject(t)?void 0:t,s=n,a&&!o&&(o=[isReference(a)?a.__ref:a]),c=function(e,t){return isArray$9(e)?"number"==typeof t?e[t]:void 0:i.store.getFieldValue(e,String(t))},e.map.forEach(function(e,t){var n=c(a,t),r=c(s,t);void 0!==r&&(o&&o.push(t),(e=u.applyMerges(e,n,r,i,o))!==r&&(l=l||new Map).set(t,e),o)&&invariant$6(o.pop()===t)}),l)&&(n=isArray$9(s)?s.slice(0):__assign$2({},s),l.forEach(function(e,t){n[t]=e})),e.info?this.cache.policies.runMergeFunction(t,n,e.info,i,o&&(t=i.store).getStorage.apply(t,o)):n},e}(),emptyMergeTreePool=[];function getChildMergeTree(e,t){e=e.map;return e.has(t)||e.set(t,emptyMergeTreePool.pop()||{map:new Map}),e.get(t)}function mergeMergeTrees(t,n){var e,r,i,o;return t===n||!n||mergeTreeIsEmpty(n)?t:!t||mergeTreeIsEmpty(t)?n:(e=t.info&&n.info?__assign$2(__assign$2({},t.info),n.info):t.info||n.info,r=t.map.size&&n.map.size,i={info:e,map:r?new Map:(t.map.size?t:n).map},r&&(o=new Set(n.map.keys()),t.map.forEach(function(e,t){i.map.set(t,mergeMergeTrees(e,n.map.get(t))),o.delete(t)}),o.forEach(function(e){i.map.set(e,mergeMergeTrees(n.map.get(e),t.map.get(e)))})),i)}function mergeTreeIsEmpty(e){return!e||!(e.info||e.map.size)}function maybeRecycleChildMergeTree(e,t){var e=e.map,n=e.get(t);n&&mergeTreeIsEmpty(n)&&(emptyMergeTreePool.push(n),e.delete(t))}var warnings=new Set;function warnAboutDataLoss(e,t,n,r){function i(e){return"object"==typeof(e=r.getFieldValue(e,n))&&e}var o,a,s,l=i(e);!l||!(o=i(t))||isReference(l)||equal(l,o)||Object.keys(l).every(function(e){return void 0!==r.getFieldValue(o,e)})||(e=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),t=fieldNameFromStoreName(n),a="".concat(e,".").concat(t),warnings.has(a))||(warnings.add(a),s=[],isArray$9(l)||isArray$9(o)||[l,o].forEach(function(e){e=r.getFieldValue(e,"__typename");"string"!=typeof e||s.includes(e)||s.push(e)}),!1!==globalThis.__DEV__&&invariant$6.warn(12,t,e,s.length?"either ensure all objects of type "+s.join(" and ")+" have an ID or a custom merge function, or ":"",a,l,o))}var NetworkStatus,InMemoryCache=function(n){function e(e){void 0===e&&(e={});var t=n.call(this)||this;return t.watches=new Set,t.addTypenameTransform=new DocumentTransform(addTypenameToDocument),t.assumeImmutableResults=!0,t.makeVar=makeVar,t.txCount=0,t.config=normalizeConfig(e),t.addTypename=!!t.config.addTypename,t.policies=new Policies({cache:t,dataIdFromObject:t.config.dataIdFromObject,possibleTypes:t.config.possibleTypes,typePolicies:t.config.typePolicies}),t.init(),t}return __extends(e,n),e.prototype.init=function(){var e=this.data=new EntityStore.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},e.prototype.resetResultCache=function(e){var o=this,t=this.storeReader,n=this.config.fragments;this.storeWriter=new StoreWriter(this,this.storeReader=new StoreReader({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:shouldCanonizeResults(this.config),canon:e?void 0:t&&t.canon,fragments:n}),n),this.maybeBroadcastWatch=wrap$3(function(e,t){return o.broadcastWatch(e,t)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t,n,r,i=e.optimistic?o.optimisticData:o.data;if(supportsResultCaching(i))return t=e.optimistic,n=e.id,r=e.variables,i.makeCacheKey(e.query,e.callback,canonicalStringify({optimistic:t,id:n,variables:r}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},e.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},e.prototype.extract=function(e){return((e=void 0===e?!1:e)?this.optimisticData:this.data).extract()},e.prototype.read=function(e){var t=e.returnPartialData,t=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(__assign$2(__assign$2({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:t})).result||null}catch(e){if(e instanceof MissingFieldError)return null;throw e}},e.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},e.prototype.modify=function(e){if(hasOwn$c.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},e.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(__assign$2(__assign$2({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},e.prototype.watch=function(e){var t=this;return this.watches.size||recallCache(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&forgetCache(t),t.maybeBroadcastWatch.forget(e)}},e.prototype.gc=function(e){canonicalStringify.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},e.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},e.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},e.prototype.identify=function(e){if(isReference(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&invariant$6.warn(e)}},e.prototype.evict=function(e){if(!e.id){if(hasOwn$c.call(e,"id"))return!1;e=__assign$2(__assign$2({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},e.prototype.reset=function(e){var t=this;return this.init(),canonicalStringify.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),forgetCache(this)):this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(e){e=this.optimisticData.removeLayer(e);e!==this.optimisticData&&(this.optimisticData=e,this.broadcastWatches())},e.prototype.batch=function(e){function t(e){var t=i.data,n=i.optimisticData;++i.txCount,e&&(i.data=i.optimisticData=e);try{return r=o(i)}finally{--i.txCount,i.data=t,i.optimisticData=n}}var r,i=this,o=e.update,n=e.optimistic,n=void 0===n||n,a=e.removeOptimistic,s=e.onWatchUpdated,l=new Set;return s&&!this.txCount&&this.broadcastWatches(__assign$2(__assign$2({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof n?this.optimisticData=this.optimisticData.addLayer(n,t):!1===n?t(this.data):t(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),s&&l.size?(this.broadcastWatches(__assign$2(__assign$2({},e),{onWatchUpdated:function(e,t){t=s.call(this,e,t);return!1!==t&&l.delete(e),t}})),l.size&&l.forEach(function(e){return i.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),r},e.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},e.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},e.prototype.broadcastWatches=function(t){var n=this;this.txCount||this.watches.forEach(function(e){return n.maybeBroadcastWatch(e,t)})},e.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},e.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},e.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated)&&!1===t.onWatchUpdated.call(this,e,r,n)||n&&equal(n.result,r.result)||e.callback(e.lastDiff=r,n)},e}(ApolloCache);function isNetworkRequestInFlight(e){return!!e&&e<7}function equalByQuery(e,t,n,r){var i=t.data,t=__rest$7(t,["data"]),o=n.data;return equal(t,__rest$7(n,["data"]))&&equalBySelectionSet(getMainDefinition(e).selectionSet,i,o,{fragmentMap:createFragmentMap(getFragmentDefinitions(e)),variables:r})}function equalBySelectionSet(e,l,c,u){var d;return l===c||(d=new Set,e.selections.every(function(e){if(d.has(e))return!0;if(d.add(e),!shouldInclude(e,u.variables))return!0;if(selectionHasNonreactiveDirective(e))return!0;if(isField(e)){var t=resultKeyNameFromField(e),n=l&&l[t],r=c&&c[t],i=e.selectionSet;if(!i)return equal(n,r);var t=Array.isArray(n),o=Array.isArray(r);if(t!==o)return!1;if(t&&o){var a=n.length;if(r.length!==a)return!1;for(var s=0;s<a;++s)if(!equalBySelectionSet(i,n[s],r[s],u))return!1;return!0}return equalBySelectionSet(i,n,r,u)}t=getFragmentFromSelection(e,u.fragmentMap);return t?!!selectionHasNonreactiveDirective(t)||equalBySelectionSet(t.selectionSet,l,c,u):void 0}))}function selectionHasNonreactiveDirective(e){return!!e.directives&&e.directives.some(directiveIsNonreactive)}function directiveIsNonreactive(e){return"nonreactive"===e.name.value}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(NetworkStatus=NetworkStatus||{});var assign$3=Object.assign,hasOwnProperty$9=Object.hasOwnProperty,ObservableQuery=function(s){function e(e){var t=e.queryManager,n=e.queryInfo,e=e.options,r=s.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=defaultSubscriptionObserverErrorCallback)}catch(e){}var t=!r.observers.size,n=(r.observers.add(e),r.last);return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),t&&r.reobserve().catch(function(){}),function(){r.observers.delete(e)&&!r.observers.size&&r.tearDownQuery()}})||this,i=(r.observers=new Set,r.subscriptions=new Set,r.queryInfo=n,r.queryManager=t,r.waitForOwnResult=skipCacheDataFor(e.fetchPolicy),r.isTornDown=!1,t.defaultOptions.watchQuery),i=(void 0===i?{}:i).fetchPolicy,i=void 0===i?"cache-first":i,o=e.fetchPolicy,o=void 0===o?i:o,a=e.initialFetchPolicy,i=void 0===a?"standby"===o?i:o:a,a=(r.options=__assign$2(__assign$2({},e),{initialFetchPolicy:i,fetchPolicy:o}),r.queryId=n.queryId||t.generateQueryId(),getOperationDefinition(r.query));return r.queryName=a&&a.name&&a.name.value,r}return __extends(e,s),Object.defineProperty(e.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),e.prototype.result=function(){var i=this;return new Promise(function(t,e){var n={next:function(e){t(e),i.observers.delete(n),i.observers.size||i.queryManager.removeQuery(i.queryId),setTimeout(function(){r.unsubscribe()},0)},error:e},r=i.subscribe(n)})},e.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t,n=this.getLastResult(!0),r=this.queryInfo.networkStatus||n&&n.networkStatus||NetworkStatus.ready,n=__assign$2(__assign$2({},n),{loading:isNetworkRequestInFlight(r),networkStatus:r}),r=this.options.fetchPolicy,r=void 0===r?"cache-first":r;return skipCacheDataFor(r)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers||(this.waitForOwnResult?this.queryInfo.updateWatch():(((t=this.queryInfo.getDiff()).complete||this.options.returnPartialData)&&(n.data=t.result),equal(n.data,{})&&(n.data=void 0),t.complete?(delete n.partial,!t.complete||n.networkStatus!==NetworkStatus.loading||"cache-first"!==r&&"cache-only"!==r||(n.networkStatus=NetworkStatus.ready,n.loading=!1)):n.partial=!0,!1===globalThis.__DEV__||t.complete||this.options.partialRefetch||n.loading||n.data||n.error||logMissingFieldErrors(t.missing))),e&&this.updateLastResult(n),n},e.prototype.isDifferentFromLastResult=function(e,t){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!equalByQuery(this.query,this.last.result,e,this.variables):!equal(this.last.result,e))||t&&!equal(this.last.variables,t)},e.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||equal(n.variables,this.variables)))return n[e]},e.prototype.getLastResult=function(e){return this.getLast("result",e)},e.prototype.getLastError=function(e){return this.getLast("error",e)},e.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},e.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;return n.fetchPolicy="cache-and-network"===r?r:"no-cache"===r?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&hasOwnProperty$9.call(e,"variables")&&((t=(r=getQueryDefinition(this.query)).variableDefinitions)&&t.some(function(e){return"variables"===e.variable.name.value})||!1!==globalThis.__DEV__&&invariant$6.warn(18,e,(null==(t=r.name)?void 0:t.value)||r)),e&&!equal(this.options.variables,e)&&(n.variables=this.options.variables=__assign$2(__assign$2({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,NetworkStatus.refetch)},e.prototype.fetchMore=function(r){var i=this,o=__assign$2(__assign$2({},r.query?r:__assign$2(__assign$2(__assign$2(__assign$2({},this.options),{query:this.options.query}),r),{variables:__assign$2(__assign$2({},this.options.variables),r.variables)})),{fetchPolicy:"no-cache"}),e=(o.query=this.transformDocument(o.query),this.queryManager.generateQueryId()),t=(this.lastQuery=r.query?this.transformDocument(this.options.query):o.query,this.queryInfo),a=t.networkStatus,s=(t.networkStatus=NetworkStatus.fetchMore,o.notifyOnNetworkStatusChange&&this.observe(),new Set);return this.queryManager.fetchQuery(e,o,NetworkStatus.fetchMore).then(function(n){return i.queryManager.removeQuery(e),t.networkStatus===NetworkStatus.fetchMore&&(t.networkStatus=a),i.queryManager.cache.batch({update:function(e){var t=r.updateQuery;t?e.updateQuery({query:i.query,variables:i.variables,returnPartialData:!0,optimistic:!1},function(e){return t(e,{fetchMoreResult:n.data,variables:o.variables})}):e.writeQuery({query:o.query,variables:o.variables,data:n.data})},onWatchUpdated:function(e){s.add(e.query)}}),n}).finally(function(){s.has(i.query)||reobserveCacheFirst(i)})},e.prototype.subscribeToMore=function(t){var e=this,n=this.queryManager.startGraphQLSubscription({query:t.document,variables:t.variables,context:t.context}).subscribe({next:function(n){var r=t.updateQuery;r&&e.updateQuery(function(e,t){t=t.variables;return r(e,{subscriptionData:n,variables:t})})},error:function(e){t.onError?t.onError(e):!1!==globalThis.__DEV__&&invariant$6.error(19,e)}});return this.subscriptions.add(n),function(){e.subscriptions.delete(n)&&n.unsubscribe()}},e.prototype.setOptions=function(e){return this.reobserve(e)},e.prototype.silentSetOptions=function(e){e=compact$1(this.options,e||{});assign$3(this.options,e)},e.prototype.setVariables=function(e){return equal(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},NetworkStatus.setVariables):Promise.resolve())},e.prototype.updateQuery=function(e){var t=this.queryManager,e=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});e&&(t.cache.writeQuery({query:this.options.query,data:e,variables:this.variables}),t.broadcastQueries())},e.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},e.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},e.prototype.applyNextFetchPolicy=function(e,t){var n,r;return t.nextFetchPolicy&&(n=void 0===(n=t.fetchPolicy)?"cache-first":n,r=void 0===(r=t.initialFetchPolicy)?n:r,"standby"!==n)&&("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:r}):t.fetchPolicy="variables-changed"===e?r:t.nextFetchPolicy),t.fetchPolicy},e.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t)},e.prototype.updatePolling=function(){var e,t,n,r,i=this;this.queryManager.ssrMode||(e=this.pollingInfo,(t=this.options.pollInterval)?e&&e.interval===t||(invariant$6(t,20),(e||(this.pollingInfo={})).interval=t,n=function(){i.pollingInfo&&(isNetworkRequestInFlight(i.queryInfo.networkStatus)?r():i.reobserve({fetchPolicy:"no-cache"===i.options.initialFetchPolicy?"no-cache":"network-only"},NetworkStatus.poll).then(r,r))},(r=function(){var e=i.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(n,e.interval))})()):e&&(clearTimeout(e.timeout),delete this.pollingInfo))},e.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var n=this.getLastError();return n&&this.last&&!equal(t,this.last.variables)&&(n=void 0),this.last=__assign$2({result:this.queryManager.assumeImmutableResults?e:cloneDeep(e),variables:t},n?{error:n}:null)},e.prototype.reobserveAsConcast=function(e,t){function n(){r.concast===u&&(r.waitForOwnResult=!1)}var r=this,i=(this.isTornDown=!1,t===NetworkStatus.refetch||t===NetworkStatus.fetchMore||t===NetworkStatus.poll),o=this.options.variables,a=this.options.fetchPolicy,s=compact$1(this.options,e||{}),s=i?s:assign$3(this.options,s),l=this.transformDocument(s.query),e=(this.lastQuery=l,i||(this.updatePolling(),e&&e.variables&&!equal(e.variables,o)&&"standby"!==s.fetchPolicy&&s.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",s),void 0===t)&&(t=NetworkStatus.setVariables)),l===s.query?s:__assign$2(__assign$2({},s),{query:l})),c=(this.waitForOwnResult&&(this.waitForOwnResult=skipCacheDataFor(e.fetchPolicy)),e.variables&&__assign$2({},e.variables)),o=this.fetch(e,t),u=o.concast,a=o.fromLink,s={next:function(e){n(),r.reportResult(e,c)},error:function(e){n(),r.reportError(e,c)}};return i||!a&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=u,this.observer=s),u.addObserver(s),u},e.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},e.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},e.prototype.reportResult=function(e,t){var n=this.getLastError(),r=this.isDifferentFromLastResult(e,t);!n&&e.partial&&!this.options.returnPartialData||this.updateLastResult(e,t),(n||r)&&iterateObserversSafely(this.observers,"next",e)},e.prototype.reportError=function(e,t){var n=__assign$2(__assign$2({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:NetworkStatus.error,loading:!1});this.updateLastResult(n,t),iterateObserversSafely(this.observers,"error",this.last.error=e)},e.prototype.hasObservers=function(){return 0<this.observers.size},e.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},e.prototype.transformDocument=function(e){return this.queryManager.transform(e)},e}(Observable);function reobserveCacheFirst(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return"function"==typeof(this.nextFetchPolicy=r)?r.apply(this,arguments):n}}):e.reobserve()}function defaultSubscriptionObserverErrorCallback(e){!1!==globalThis.__DEV__&&invariant$6.error(21,e.message,e.stack)}function logMissingFieldErrors(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&invariant$6.debug(22,e)}function skipCacheDataFor(e){return"network-only"===e||"no-cache"===e||"standby"===e}fixObservableSubclass(ObservableQuery);var LocalState=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,e=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),e&&this.setFragmentMatcher(e)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=mergeDeep(t.resolvers,e)}):this.resolvers=mergeDeep(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,e=e.onlyRunForcedResolvers,o=void 0!==e&&e;return __awaiter$g(this,void 0,void 0,function(){return __generator$1(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,o).then(function(e){return __assign$2(__assign$2({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return hasDirectives(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return removeClientSetsFromDocument(e)},e.prototype.prepareContext=function(e){var t=this.cache;return __assign$2(__assign$2({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),__awaiter$g(this,void 0,void 0,function(){return __generator$1(this,function(e){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,n)||{},this.prepareContext(r),n).then(function(e){return __assign$2(__assign$2({},n),e.exportedVariables)})]:[2,__assign$2({},n)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return visit$3(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return BREAK$1}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:buildQueryFromSelectionSet(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(l,c,u,d,p,f){return void 0===u&&(u={}),void 0===d&&(d={}),void 0===p&&(p=function(){return!0}),void 0===f&&(f=!1),__awaiter$g(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return __generator$1(this,function(e){return t=getMainDefinition(l),n=getFragmentDefinitions(l),n=createFragmentMap(n),r=this.collectSelectionsToResolve(t,n),i=t.operation,i=i?i.charAt(0).toUpperCase()+i.slice(1):"Query",o=(a=this).cache,a=a.client,s={fragmentMap:n,context:__assign$2(__assign$2({},u),{cache:o,client:a}),variables:d,fragmentMatcher:p,defaultOperationType:i,exportedVariables:{},selectionsToResolve:r,onlyRunForcedResolvers:f},[2,this.resolveSelectionSet(t.selectionSet,!1,c,s).then(function(e){return{result:e,exportedVariables:s.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(r,l,c,u){return __awaiter$g(this,void 0,void 0,function(){var i,o,a,s,t,n=this;return __generator$1(this,function(e){return i=u.fragmentMap,o=u.context,a=u.variables,s=[c],t=function(r){return __awaiter$g(n,void 0,void 0,function(){var t,n;return __generator$1(this,function(e){return(l||u.selectionsToResolve.has(r))&&shouldInclude(r,a)?isField(r)?[2,this.resolveField(r,l,c,u).then(function(e){var t;void 0!==e&&s.push(((t={})[resultKeyNameFromField(r)]=e,t))})]:(isInlineFragment(r)?t=r:(t=i[r.name.value],invariant$6(t,16,r.name.value)),t&&t.typeCondition&&(n=t.typeCondition.name.value,u.fragmentMatcher(c,n,o))?[2,this.resolveSelectionSet(t.selectionSet,l,c,u).then(function(e){s.push(e)})]:[2]):[2]})})},[2,Promise.all(r.selections.map(t)).then(function(){return mergeDeepArray(s)})]})})},e.prototype.resolveField=function(c,u,d,p){return __awaiter$g(this,void 0,void 0,function(){var t,n,r,i,o,a,s,l=this;return __generator$1(this,function(e){return d?(t=p.variables,n=c.name.value,r=resultKeyNameFromField(c),i=n!==r,o=d[r]||d[n],a=Promise.resolve(o),p.onlyRunForcedResolvers&&!this.shouldForceResolvers(c)||(s=d.__typename||p.defaultOperationType,(s=this.resolvers&&this.resolvers[s])&&(s=s[i?n:r])&&(a=Promise.resolve(cacheSlot.withValue(this.cache,s,[d,argumentsObjectFromField(c,t),p.context,{field:c,fragmentMap:p.fragmentMap}])))),[2,a.then(function(t){var e;return void 0===t&&(t=o),c.directives&&c.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(p.exportedVariables[e.value.value]=t)})}),!c.selectionSet||null==t?t:(e=null!=(e=null==(e=c.directives)?void 0:e.some(function(e){return"client"===e.name.value}))&&e,Array.isArray(t)?l.resolveSubSelectedArray(c,u||e,t,p):c.selectionSet?l.resolveSelectionSet(c.selectionSet,u||e,t,p):void 0)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,e,r){var i=this;return Promise.all(e.map(function(e){return null===e?null:Array.isArray(e)?i.resolveSubSelectedArray(t,n,e,r):t.selectionSet?i.resolveSelectionSet(t.selectionSet,n,e,r):void 0}))},e.prototype.collectSelectionsToResolve=function(e,l){function c(e){return!Array.isArray(e)}var t=this.selectionsToResolveCache;return function a(e){var s;return t.has(e)||(s=new Set,t.set(e,s),visit$3(e,{Directive:function(e,t,n,r,i){"client"===e.name.value&&i.forEach(function(e){c(e)&&isSelectionNode(e)&&s.add(e)})},FragmentSpread:function(e,t,n,r,i){var o=l[e.name.value];invariant$6(o,17,e.name.value),0<(o=a(o)).size&&(i.forEach(function(e){c(e)&&isSelectionNode(e)&&s.add(e)}),s.add(e),o.forEach(function(e){s.add(e)}))}})),t.get(e)}(e)},e}(),destructiveMethodCounts=new(canUseWeakMap?WeakMap:Map);function wrapDestructiveCacheMethod(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return destructiveMethodCounts.set(e,(destructiveMethodCounts.get(e)+1)%1e15),n.apply(this,arguments)})}function cancelNotifyTimeout(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var QueryInfo=function(){function t(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;t=this.cache=e.cache;destructiveMethodCounts.has(t)||(destructiveMethodCounts.set(t,0),wrapDestructiveCacheMethod(t,"evict"),wrapDestructiveCacheMethod(t,"modify"),wrapDestructiveCacheMethod(t,"reset"))}return t.prototype.init=function(e){var t=e.networkStatus||NetworkStatus.loading;return this.variables&&this.networkStatus!==NetworkStatus.loading&&!equal(this.variables,e.variables)&&(t=NetworkStatus.setVariables),equal(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},t.prototype.reset=function(){cancelNotifyTimeout(this),this.dirty=!1},t.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&equal(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var e=this.observableQuery;return e&&"no-cache"===e.options.fetchPolicy?{complete:!1}:(e=this.cache.diff(t),this.updateLastDiff(e,t),e)},t.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},t.prototype.getDiffOptions=function(e){return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(e=this.observableQuery)?void 0:e.options.canonizeResults}},t.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||equal(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout)||(this.notifyTimeout=setTimeout(function(){return t.notify()},0))},t.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),(this.observableQuery=e)?(e.queryInfo=this).listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():reobserveCacheFirst(e)}):delete this.oqListener)},t.prototype.notify=function(){var t=this;cancelNotifyTimeout(this),this.shouldNotify()&&this.listeners.forEach(function(e){return e(t)}),this.dirty=!1},t.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(isNetworkRequestInFlight(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},t.prototype.stop=function(){var e;!this.stopped&&(this.stopped=!0,this.reset(),this.cancel(),this.cancel=t.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()}),e=this.observableQuery)&&e.stopPolling()},t.prototype.cancel=function(){},t.prototype.updateWatch=function(e){var t=this,n=(void 0===e&&(e=this.variables),this.observableQuery);n&&"no-cache"===n.options.fetchPolicy||(n=__assign$2(__assign$2({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}}),this.lastWatch&&equal(n,this.lastWatch))||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=n))},t.prototype.resetLastWrite=function(){this.lastWrite=void 0},t.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===destructiveMethodCounts.get(this.cache)&&equal(t,n.variables)&&equal(e.data,n.result.data))},t.prototype.markResult=function(n,r,i,o){var e,a=this,t=new DeepMerger,s=isNonEmptyArray(n.errors)?n.errors.slice(0):[];this.reset(),"incremental"in n&&isNonEmptyArray(n.incremental)?(e=mergeIncrementalData(this.getDiff().result,n),n.data=e):"hasNext"in n&&n.hasNext&&(e=this.getDiff(),n.data=t.merge(e.result,n.data)),this.graphQLErrors=s,"no-cache"===i.fetchPolicy?this.updateLastDiff({result:n.data,complete:!0},this.getDiffOptions(i.variables)):0!==o&&(shouldWriteResult(n,i.errorPolicy)?this.cache.performTransaction(function(e){if(a.shouldWrite(n,i.variables))e.writeQuery({query:r,data:n.data,variables:i.variables,overwrite:1===o}),a.lastWrite={result:n,variables:i.variables,dmCount:destructiveMethodCounts.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete)return void(n.data=a.lastDiff.diff.result);var t=a.getDiffOptions(i.variables),e=e.diff(t);a.stopped||a.updateWatch(i.variables),a.updateLastDiff(e,t),e.complete&&(n.data=e.result)}):this.lastWrite=void 0)},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=NetworkStatus.ready},t.prototype.markError=function(e){return this.networkStatus=NetworkStatus.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},t}();function shouldWriteResult(e,t){var t="ignore"===(t=void 0===t?"none":t)||"all"===t,n=!graphQLResultHasError(e);return n=!n&&t&&e.data?!0:n}var hasOwnProperty$8=Object.prototype.hasOwnProperty,QueryManager=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,i=e.documentTransform,o=e.queryDeduplication,o=void 0!==o&&o,a=e.onBroadcast,s=e.ssrMode,s=void 0!==s&&s,l=e.clientAwareness,l=void 0===l?{}:l,c=e.localState,e=e.assumeImmutableResults,e=void 0===e?!!t.assumeImmutableResults:e,u=this,d=(this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(canUseWeakMap?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,new DocumentTransform(function(e){return u.cache.transformDocument(e)},{cache:!1}));this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=o,this.clientAwareness=l,this.localState=c||new LocalState({cache:t}),this.ssrMode=s,this.assumeImmutableResults=e,this.documentTransform=i?d.concat(i).concat(d):d,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var n=this;this.queries.forEach(function(e,t){n.stopQueryNoBroadcast(t)}),this.cancelPendingFetches(newInvariantError(23))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(e){return e(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var a=e.mutation,s=e.variables,l=e.optimisticResponse,c=e.updateQueries,t=e.refetchQueries,u=void 0===t?[]:t,t=e.awaitRefetchQueries,d=void 0!==t&&t,p=e.update,f=e.onQueryUpdated,t=e.fetchPolicy,h=void 0===t?(null==(n=this.defaultOptions.mutate)?void 0:n.fetchPolicy)||"network-only":t,n=e.errorPolicy,m=void 0===n?(null==(t=this.defaultOptions.mutate)?void 0:t.errorPolicy)||"none":n,g=e.keepRootFields,y=e.context;return __awaiter$g(this,void 0,void 0,function(){var r,t,i,o;return __generator$1(this,function(e){switch(e.label){case 0:return(invariant$6(a,24),invariant$6("network-only"===h||"no-cache"===h,25),r=this.generateMutationId(),a=this.cache.transformForLink(this.transform(a)),t=this.getDocumentInfo(a).hasClientExports,s=this.getVariables(a,s),t)?[4,this.localState.addExportedVariables(a,s,y)]:[3,2];case 1:s=e.sent(),e.label=2;case 2:return i=this.mutationStore&&(this.mutationStore[r]={mutation:a,variables:s,loading:!0,error:null}),l&&this.markMutationOptimistic(l,{mutationId:r,document:a,variables:s,fetchPolicy:h,errorPolicy:m,context:y,updateQueries:c,update:p,keepRootFields:g}),this.broadcastQueries(),o=this,[2,new Promise(function(t,n){return asyncMap(o.getObservableFromLink(a,__assign$2(__assign$2({},y),{optimisticResponse:l}),s,!1),function(e){if(graphQLResultHasError(e)&&"none"===m)throw new ApolloError({graphQLErrors:getGraphQLErrorsFromResult(e)});i&&(i.loading=!1,i.error=null);e=__assign$2({},e);return"function"==typeof u&&(u=u(e)),"ignore"===m&&graphQLResultHasError(e)&&delete e.errors,o.markMutationResult({mutationId:r,result:e,document:a,variables:s,fetchPolicy:h,errorPolicy:m,context:y,update:p,updateQueries:c,awaitRefetchQueries:d,refetchQueries:u,removeOptimistic:l?r:void 0,onQueryUpdated:f,keepRootFields:g})}).subscribe({next:function(e){o.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(e){i&&(i.loading=!1,i.error=e),l&&o.cache.removeOptimistic(r),o.broadcastQueries(),n(e instanceof ApolloError?e:new ApolloError({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(i,o){var e,t,a,s=this,l=(void 0===o&&(o=this.cache),i.result),c=[],u="no-cache"===i.fetchPolicy;if(!u&&shouldWriteResult(l,i.errorPolicy)&&(isExecutionPatchIncrementalResult(l)||c.push({result:l.data,dataId:"ROOT_MUTATION",query:i.document,variables:i.variables}),isExecutionPatchIncrementalResult(l)&&isNonEmptyArray(l.incremental)&&(t=void 0)!==(t=(e=o.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(i.document).asQuery,variables:i.variables,optimistic:!1,returnPartialData:!0})).result?mergeIncrementalData(e.result,l):t)&&(l.data=t,c.push({result:t,dataId:"ROOT_MUTATION",query:i.document,variables:i.variables})),a=i.updateQueries)&&this.queries.forEach(function(e,t){var n,r,i,e=e.observableQuery,e=e&&e.queryName;e&&hasOwnProperty$8.call(a,e)&&(e=a[e],n=(t=s.queries.get(t)).document,t=t.variables,r=(i=o.diff({query:n,variables:t,returnPartialData:!0,optimistic:!1})).result,i.complete)&&r&&(i=e(r,{mutationResult:l,queryName:n&&getOperationName(n)||void 0,queryVariables:t}))&&c.push({result:i,dataId:"ROOT_QUERY",query:n,variables:t})}),0<c.length||i.refetchQueries||i.update||i.onQueryUpdated||i.removeOptimistic){var n=[];if(this.refetchQueries({updateCache:function(t){u||c.forEach(function(e){return t.write(e)});var e,n=i.update,r=!isExecutionPatchResult(l)||isExecutionPatchIncrementalResult(l)&&!l.hasNext;n&&(u||(e=t.diff({id:"ROOT_MUTATION",query:s.getDocumentInfo(i.document).asQuery,variables:i.variables,optimistic:!1,returnPartialData:!0})).complete&&("incremental"in(l=__assign$2(__assign$2({},l),{data:e.result}))&&delete l.incremental,"hasNext"in l)&&delete l.hasNext,r)&&n(t,l,{context:i.context,variables:i.variables}),u||i.keepRootFields||!r||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,t=t.DELETE;return"__typename"===n?e:t}})},include:i.refetchQueries,optimistic:!1,removeOptimistic:i.removeOptimistic,onQueryUpdated:i.onQueryUpdated||null}).forEach(function(e){return n.push(e)}),i.awaitRefetchQueries||i.onQueryUpdated)return Promise.all(n).then(function(){return l})}return Promise.resolve(l)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult(__assign$2(__assign$2({},t),{result:{data:r}}),e)}catch(e){!1!==globalThis.__DEV__&&invariant$6.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast.promise},e.prototype.getQueryStore=function(){var n=Object.create(null);return this.queries.forEach(function(e,t){n[t]={variables:e.variables,networkStatus:e.networkStatus,networkError:e.networkError,graphQLErrors:e.graphQLErrors}}),n},e.prototype.resetErrors=function(e){e=this.queries.get(e);e&&(e.networkError=void 0,e.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t,n=this.transformCache;return n.has(e)||(t={hasClientExports:hasClientExports(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:hasDirectives(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:removeDirectivesFromDocument([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:getDefaultValues(getOperationDefinition(e)),asQuery:__assign$2(__assign$2({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?__assign$2(__assign$2({},e),{operation:"query"}):e})})},n.set(e,t)),n.get(e)},e.prototype.getVariables=function(e,t){return __assign$2(__assign$2({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query),n=(void 0===(e=__assign$2(__assign$2({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1),new QueryInfo(this)),e=new ObservableQuery({queryManager:this,queryInfo:n,options:e});return e.lastQuery=t,this.queries.set(e.queryId,n),n.init({document:t,observableQuery:e,variables:e.variables}),e},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),invariant$6(e.query,26),invariant$6("Document"===e.query.kind,27),invariant$6(!e.returnPartialData,28),invariant$6(!e.pollInterval,29),this.fetchQuery(t,__assign$2(__assign$2({},e),{query:this.transform(e.query)})).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){e=this.queries.get(e);e&&e.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(newInvariantError(30)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=NetworkStatus.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(i){var r=this,o=(void 0===i&&(i="active"),new Map),a=new Map,t=new Set;return Array.isArray(i)&&i.forEach(function(e){"string"==typeof e?a.set(e,!1):isDocumentNode(e)?a.set(r.transform(e),!1):isNonNullObject(e)&&e.query&&t.add(e)}),this.queries.forEach(function(e,t){var n,r=e.observableQuery,e=e.document;r&&("all"===i?o.set(t,r):(n=r.queryName,"standby"===r.options.fetchPolicy||"active"===i&&!r.hasObservers()||("active"===i||n&&a.has(n)||e&&a.has(e))&&(o.set(t,r),n&&a.set(n,!0),e)&&a.set(e,!0)))}),t.size&&t.forEach(function(e){var t=makeUniqueId("legacyOneTimeQuery"),n=r.getQuery(t).init({document:e.query,variables:e.variables}),e=new ObservableQuery({queryManager:r,queryInfo:n,options:__assign$2(__assign$2({},e),{fetchPolicy:"network-only"})});invariant$6(e.queryId===t),n.setObservableQuery(e),o.set(t,e)}),!1!==globalThis.__DEV__&&a.size&&a.forEach(function(e,t){e||!1!==globalThis.__DEV__&&invariant$6.warn("string"==typeof t?31:32,t)}),o},e.prototype.reFetchObservableQueries=function(r){var i=this,o=(void 0===r&&(r=!1),[]);return this.getObservableQueries(r?"all":"active").forEach(function(e,t){var n=e.options.fetchPolicy;e.resetLastResults(),(r||"standby"!==n&&"cache-only"!==n)&&o.push(e.refetch()),i.getQuery(t).setDiff(null)}),this.broadcastQueries(),Promise.all(o)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){function t(i){return o.getObservableFromLink(a,c,i).map(function(e){"no-cache"!==s&&(shouldWriteResult(e,l)&&o.cache.write({query:a,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:i}),o.broadcastQueries());var t,n=graphQLResultHasError(e),r=graphQLResultHasProtocolErrors(e);if(n||r)throw t={},n&&(t.graphQLErrors=e.errors),r&&(t.protocolErrors=e.extensions[PROTOCOL_ERRORS_SYMBOL]),new ApolloError(t);return e})}var r,o=this,a=e.query,s=e.fetchPolicy,l=e.errorPolicy,n=e.variables,e=e.context,c=void 0===e?{}:e,a=this.transform(a),n=this.getVariables(a,n);return this.getDocumentInfo(a).hasClientExports?(r=this.localState.addExportedVariables(a,n,c).then(t),new Observable(function(t){var n=null;return r.then(function(e){return n=e.subscribe(t)},t.error),function(){return n&&n.unsubscribe()}})):t(n)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o,a,s,l,c,u=this,d=(void 0===r&&(r=null!=(d=null==t?void 0:t.queryDeduplication)?d:this.queryDeduplication),this.getDocumentInfo(e)),e=d.serverQuery,p=d.clientQuery;return e?(i=this.inFlightLinkObservables,d=this.link,o={query:e,variables:n,operationName:getOperationName(e)||void 0,context:this.prepareContext(__assign$2(__assign$2({},t),{forceFetch:!r}))},t=o.context,r?(a=print$1(e),s=i.get(a)||new Map,i.set(a,s),l=canonicalStringify(n),(c=s.get(l))||(r=new Concast([execute$1(d,o)]),s.set(l,c=r),r.beforeNext(function(){s.delete(l)&&s.size<1&&i.delete(a)}))):c=new Concast([execute$1(d,o)])):(c=new Concast([Observable.of({data:{}})]),t=this.prepareContext(t)),c=p?asyncMap(c,function(e){return u.localState.runResolvers({document:p,remoteResult:e,context:t,variables:n})}):c},e.prototype.getResultsFromLink=function(r,i,o){var a=r.lastRequestId=this.generateRequestId(),s=this.cache.transformForLink(o.query);return asyncMap(this.getObservableFromLink(s,o.context,o.variables),function(e){var t=getGraphQLErrorsFromResult(e),n=0<t.length;if(a>=r.lastRequestId){if(n&&"none"===o.errorPolicy)throw r.markError(new ApolloError({graphQLErrors:t}));r.markResult(e,s,o,i),r.markReady()}e={data:e.data,loading:!1,networkStatus:NetworkStatus.ready};return n&&"ignore"!==o.errorPolicy&&(e.errors=t,e.networkStatus=NetworkStatus.error),e},function(e){e=isApolloError(e)?e:new ApolloError({networkError:e});throw a>=r.lastRequestId&&r.markError(e),e})},e.prototype.fetchConcastWithInfo=function(e,t,n){function r(e){return g.variables=e,e=s.fetchQueryByPolicy(u,g,n),"standby"!==g.fetchPolicy&&0<e.sources.length&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),e}function i(){return s.fetchCancelFns.delete(e)}var o,a,s=this,l=(void 0===n&&(n=NetworkStatus.loading),t.query),c=this.getVariables(l,t.variables),u=this.getQuery(e),d=this.defaultOptions.watchQuery,p=t.fetchPolicy,p=void 0===p?d&&d.fetchPolicy||"cache-first":p,f=t.errorPolicy,d=void 0===f?d&&d.errorPolicy||"none":f,f=t.returnPartialData,h=t.notifyOnNetworkStatusChange,m=t.context,g=Object.assign({},t,{query:l,variables:c,fetchPolicy:p,errorPolicy:d,returnPartialData:void 0!==f&&f,notifyOnNetworkStatusChange:void 0!==h&&h,context:void 0===m?{}:m});return this.fetchCancelFns.set(e,function(e){i(),setTimeout(function(){return a.cancel(e)})}),this.getDocumentInfo(g.query).hasClientExports?(a=new Concast(this.localState.addExportedVariables(g.query,g.variables,g.context).then(r).then(function(e){return e.sources})),o=!0):(o=(l=r(g.variables)).fromLink,a=new Concast(l.sources)),a.promise.then(i,i),{concast:a,fromLink:o}},e.prototype.refetchQueries=function(e){var o=this,t=e.updateCache,n=e.include,r=e.optimistic,r=void 0!==r&&r,i=e.removeOptimistic,i=void 0===i?r?makeUniqueId("refetchQueries"):void 0:i,a=e.onQueryUpdated,s=new Map,l=(n&&this.getObservableQueries(n).forEach(function(e,t){s.set(t,{oq:e,lastDiff:o.getQuery(t).getDiff()})}),new Map);return t&&this.cache.batch({update:t,optimistic:r&&i||!1,removeOptimistic:i,onWatchUpdated:function(e,t,n){var r,e=e.watcher instanceof QueryInfo&&e.watcher.observableQuery;if(e){if(a)return s.delete(e.queryId),!1!==(r=!0===(r=a(e,t,n))?e.refetch():r)&&l.set(e,r),r;null!==a&&s.set(e.queryId,{oq:e,lastDiff:n,diff:t})}}}),s.size&&s.forEach(function(e,t){var n,r=e.oq,i=e.lastDiff,e=e.diff;a&&(e||((n=r.queryInfo).reset(),e=n.getDiff()),n=a(r,e,i)),!1!==(n=a&&!0!==n?n:r.refetch())&&l.set(r,n),0<=t.indexOf("legacyOneTimeQuery")&&o.stopQueryNoBroadcast(t)}),i&&this.cache.removeOptimistic(i),l},e.prototype.fetchQueryByPolicy=function(i,e,t){function n(){return i.getDiff(c)}function r(t,n){function r(e){return Observable.of(__assign$2({data:e,loading:isNetworkRequestInFlight(n),networkStatus:n},t.complete?null:{partial:!0}))}void 0===n&&(n=i.networkStatus||NetworkStatus.loading);var e=t.result;return!1===globalThis.__DEV__||f||equal(e,{})||logMissingFieldErrors(t.missing),e&&s.getDocumentInfo(l).hasForcedResolvers?s.localState.runResolvers({document:l,remoteResult:{data:e},context:h,variables:c,onlyRunForcedResolvers:!0}).then(function(e){return r(e.data||void 0)}):"none"===p&&n===NetworkStatus.refetch&&Array.isArray(t.missing)?r(void 0):r(e)}function o(){return s.getResultsFromLink(i,g,{query:l,variables:c,context:h,fetchPolicy:u,errorPolicy:p})}var a,s=this,l=e.query,c=e.variables,u=e.fetchPolicy,d=e.refetchWritePolicy,p=e.errorPolicy,f=e.returnPartialData,h=e.context,e=e.notifyOnNetworkStatusChange,m=i.networkStatus,g=(i.init({document:l,variables:c,networkStatus:t}),"no-cache"===u?0:t===NetworkStatus.refetch&&"merge"!==d?1:2),y=e&&"number"==typeof m&&m!==t&&isNetworkRequestInFlight(t);switch(u){default:case"cache-first":return(a=n()).complete?{fromLink:!1,sources:[r(a,i.markReady())]}:f||y?{fromLink:!0,sources:[r(a),o()]}:{fromLink:!0,sources:[o()]};case"cache-and-network":return(a=n()).complete||f||y?{fromLink:!0,sources:[r(a),o()]}:{fromLink:!0,sources:[o()]};case"cache-only":return{fromLink:!1,sources:[r(n(),i.markReady())]};case"network-only":return y?{fromLink:!0,sources:[r(n()),o()]}:{fromLink:!0,sources:[o()]};case"no-cache":return y?{fromLink:!0,sources:[r(i.getDiff()),o()]}:{fromLink:!0,sources:[o()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new QueryInfo(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){e=this.localState.prepareContext(e=void 0===e?{}:e);return __assign$2(__assign$2({},e),{clientAwareness:this.clientAwareness})},e}(),hasSuggestedDevtools=!1,ApolloClient=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw newInvariantError(13);var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.documentTransform,s=e.ssrMode,s=void 0!==s&&s,l=e.ssrForceFetchDelay,l=void 0===l?0:l,c=e.connectToDevTools,c=void 0===c?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:c,u=e.queryDeduplication,u=void 0===u||u,d=e.defaultOptions,p=e.assumeImmutableResults,p=void 0===p?o.assumeImmutableResults:p,f=e.resolvers,h=e.typeDefs,m=e.fragmentMatcher,g=e.name,y=e.version,e=(e=e.link)||(n?new HttpLink({uri:n,credentials:r,headers:i}):ApolloLink.empty());this.link=e,this.cache=o,this.disableNetworkFetches=s||0<l,this.queryDeduplication=u,this.defaultOptions=d||Object.create(null),this.typeDefs=h,l&&setTimeout(function(){return t.disableNetworkFetches=!1},l),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),c&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!hasSuggestedDevtools&&c&&!1!==globalThis.__DEV__&&(hasSuggestedDevtools=!0,"undefined"!=typeof window)&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__&&(n=void 0,"string"==typeof(i=(r=window.navigator)&&r.userAgent)&&(-1<i.indexOf("Chrome/")?n="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":-1<i.indexOf("Firefox/")&&(n="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),n)&&!1!==globalThis.__DEV__&&invariant$6.log("Download the Apollo DevTools for a better development experience: %s",n),this.version=version$2,this.localState=new LocalState({cache:o,client:this,resolvers:f,fragmentMatcher:m}),this.queryManager=new QueryManager({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:a,queryDeduplication:u,ssrMode:s,clientAwareness:{name:g,version:y},localState:this.localState,assumeImmutableResults:p,onBroadcast:c?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=mergeOptions(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=__assign$2(__assign$2({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=mergeOptions(this.defaultOptions.query,e)),invariant$6("cache-and-network"!==e.fetchPolicy,14),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=__assign$2(__assign$2({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=mergeOptions(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return this.cache.readQuery(e,t=void 0===t?!1:t)},e.prototype.readFragment=function(e,t){return this.cache.readFragment(e,t=void 0===t?!1:t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return execute$1(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(t){var e=this;return this.resetStoreCallbacks.push(t),function(){e.resetStoreCallbacks=e.resetStoreCallbacks.filter(function(e){return e!==t})}},e.prototype.onClearStore=function(t){var e=this;return this.clearStoreCallbacks.push(t),function(){e.clearStoreCallbacks=e.clearStoreCallbacks.filter(function(e){return e!==t})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var e=this.queryManager.refetchQueries(e),n=[],r=[],e=(e.forEach(function(e,t){n.push(t),r.push(e)}),Promise.all(r));return e.queries=n,e.results=r,e.catch(function(e){!1!==globalThis.__DEV__&&invariant$6.debug(15,e)}),e},e.prototype.getObservableQueries=function(e){return this.queryManager.getObservableQueries(e=void 0===e?"active":e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),docCache=new Map,fragmentSourceMap=new Map,printFragmentWarnings=!0,experimentalFragmentVariables=!1;function normalize$5(e){return e.replace(/[\s,]+/g," ").trim()}function cacheKeyFromLoc(e){return normalize$5(e.source.body.substring(e.start,e.end))}function processFragments(e){var i=new Set,o=[];return e.definitions.forEach(function(e){var t,n,r;"FragmentDefinition"===e.kind?(t=e.name.value,n=cacheKeyFromLoc(e.loc),(r=fragmentSourceMap.get(t))&&!r.has(n)?printFragmentWarnings&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):r||fragmentSourceMap.set(t,r=new Set),r.add(n),i.has(n)||(i.add(n),o.push(e))):o.push(e)}),__assign$2(__assign$2({},e),{definitions:o})}function stripLoc(e){var n=new Set(e.definitions),t=(n.forEach(function(t){t.loc&&delete t.loc,Object.keys(t).forEach(function(e){e=t[e];e&&"object"==typeof e&&n.add(e)})}),e.loc);return t&&(delete t.startToken,delete t.endToken),e}function parseDocument(e){var t=normalize$5(e);if(!docCache.has(t)){e=parse$8(e,{experimentalFragmentVariables:experimentalFragmentVariables,allowLegacyFragmentVariables:experimentalFragmentVariables});if(!e||"Document"!==e.kind)throw new Error("Not a valid GraphQL document.");docCache.set(t,stripLoc(processFragments(e)))}return docCache.get(t)}function gql(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];var r=(n="string"==typeof n?[n]:n)[0];return e.forEach(function(e,t){e&&"Document"===e.kind?r+=e.loc.source.body:r+=e,r+=n[t+1]}),parseDocument(r)}function resetCaches(){docCache.clear(),fragmentSourceMap.clear()}function disableFragmentWarnings(){printFragmentWarnings=!1}function enableExperimentalFragmentVariables(){experimentalFragmentVariables=!0}function disableExperimentalFragmentVariables(){experimentalFragmentVariables=!1}var extras={gql:gql,resetCaches:resetCaches,disableFragmentWarnings:disableFragmentWarnings,enableExperimentalFragmentVariables:enableExperimentalFragmentVariables,disableExperimentalFragmentVariables:disableExperimentalFragmentVariables},client=(!function(e){e.gql=extras.gql,e.resetCaches=extras.resetCaches,e.disableFragmentWarnings=extras.disableFragmentWarnings,e.enableExperimentalFragmentVariables=extras.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=extras.disableExperimentalFragmentVariables}(gql=gql||{}),gql.default=gql,{}),backo2=Backoff$1;function Backoff$1(e){this.ms=(e=e||{}).min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=0<e.jitter&&e.jitter<=1?e.jitter:0,this.attempts=0}Backoff$1.prototype.duration=function(){var e,t,n=this.ms*Math.pow(this.factor,this.attempts++);return this.jitter&&(e=Math.random(),t=Math.floor(e*this.jitter*n),n=0==(1&Math.floor(10*e))?n-t:n+t),0|Math.min(n,this.max)},Backoff$1.prototype.reset=function(){this.attempts=0},Backoff$1.prototype.setMin=function(e){this.ms=e},Backoff$1.prototype.setMax=function(e){this.max=e},Backoff$1.prototype.setJitter=function(e){this.jitter=e};var eventemitter3={exports:{}},isString$7=(!function(e){var r=Object.prototype.hasOwnProperty,f="~";function n(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,n,r,i){if("function"!=typeof n)throw new TypeError("The listener must be a function");n=new o(n,r||e,i),r=f?f+t:t;return e._events[r]?e._events[r].fn?e._events[r]=[e._events[r],n]:e._events[r].push(n):(e._events[r]=n,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function t(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(f=!1)),t.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(f?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},t.prototype.listeners=function(e){var e=f?f+e:e,t=this._events[e];if(!t)return[];if(t.fn)return[t.fn];for(var n=0,r=t.length,i=new Array(r);n<r;n++)i[n]=t[n].fn;return i},t.prototype.listenerCount=function(e){e=f?f+e:e,e=this._events[e];return e?e.fn?1:e.length:0},t.prototype.emit=function(e,t,n,r,i,o){var a=f?f+e:e;if(!this._events[a])return!1;var s,l=this._events[a],c=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,r),!0;case 5:return l.fn.call(l.context,t,n,r,i),!0;case 6:return l.fn.call(l.context,t,n,r,i,o),!0}for(p=1,s=new Array(c-1);p<c;p++)s[p-1]=arguments[p];l.fn.apply(l.context,s)}else for(var u,d=l.length,p=0;p<d;p++)switch(l[p].once&&this.removeListener(e,l[p].fn,void 0,!0),c){case 1:l[p].fn.call(l[p].context);break;case 2:l[p].fn.call(l[p].context,t);break;case 3:l[p].fn.call(l[p].context,t,n);break;case 4:l[p].fn.call(l[p].context,t,n,r);break;default:if(!s)for(u=1,s=new Array(c-1);u<c;u++)s[u-1]=arguments[u];l[p].fn.apply(l[p].context,s)}return!0},t.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},t.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},t.prototype.removeListener=function(e,t,n,r){e=f?f+e:e;if(this._events[e])if(t){var i=this._events[e];if(i.fn)i.fn!==t||r&&!i.once||n&&i.context!==n||l(this,e);else{for(var o=0,a=[],s=i.length;o<s;o++)(i[o].fn!==t||r&&!i[o].once||n&&i[o].context!==n)&&a.push(i[o]);a.length?this._events[e]=1===a.length?a[0]:a:l(this,e)}}else l(this,e);return this},t.prototype.removeAllListeners=function(e){return e?(e=f?f+e:e,this._events[e]&&l(this,e)):(this._events=new n,this._eventsCount=0),this},t.prototype.off=t.prototype.removeListener,t.prototype.addListener=t.prototype.on,t.prefixed=f,e.exports=t.EventEmitter=t}(eventemitter3),{});function isString$6(e){return"string"==typeof e}Object.defineProperty(isString$7,"__esModule",{value:!0}),isString$7.default=isString$6;var isObject$h={};function isObject$g(e){return null!==e&&"object"==typeof e}Object.defineProperty(isObject$h,"__esModule",{value:!0}),isObject$h.default=isObject$g;var printer={},visitor={},inspect$1={},nodejsCustomInspectSymbol$1={},nodejsCustomInspectSymbol=(Object.defineProperty(nodejsCustomInspectSymbol$1,"__esModule",{value:!0}),nodejsCustomInspectSymbol$1.default=void 0,"function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0),_default$g=nodejsCustomInspectSymbol,_nodejsCustomInspectSymbol$1=(nodejsCustomInspectSymbol$1.default=_default$g,Object.defineProperty(inspect$1,"__esModule",{value:!0}),inspect$1.default=inspect,_interopRequireDefault$j(nodejsCustomInspectSymbol$1));function _interopRequireDefault$j(e){return e&&e.__esModule?e:{default:e}}function _typeof$z(e){return(_typeof$z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var MAX_ARRAY_LENGTH$1=10,MAX_RECURSIVE_DEPTH=2;function inspect(e){return formatValue(e,[])}function formatValue(e,t){switch(_typeof$z(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":formatObjectValue(e,t);default:return String(e)}}function formatObjectValue(e,t){if(-1!==t.indexOf(e))return"[Circular]";var t=[].concat(t,[e]),n=getCustomFn(e);if(void 0!==n){n=n.call(e);if(n!==e)return"string"==typeof n?n:formatValue(n,t)}else if(Array.isArray(e))return formatArray(e,t);return formatObject(e,t)}function formatObject(t,n){var e=Object.keys(t);return 0===e.length?"{}":n.length>MAX_RECURSIVE_DEPTH?"["+getObjectTag(t)+"]":"{ "+e.map(function(e){return e+": "+formatValue(t[e],n)}).join(", ")+" }"}function formatArray(e,t){if(0===e.length)return"[]";if(t.length>MAX_RECURSIVE_DEPTH)return"[Array]";for(var n=Math.min(MAX_ARRAY_LENGTH$1,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(formatValue(e[o],t));return 1==r?i.push("... 1 more item"):1<r&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}function getCustomFn(e){var t=e[String(_nodejsCustomInspectSymbol$1.default)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}function getObjectTag(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){e=e.constructor.name;if("string"==typeof e&&""!==e)return e}return t}var ast={},defineInspect$1={},invariant$4={};function invariant$3(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}Object.defineProperty(invariant$4,"__esModule",{value:!0}),invariant$4.default=invariant$3,Object.defineProperty(defineInspect$1,"__esModule",{value:!0}),defineInspect$1.default=defineInspect;var _invariant=_interopRequireDefault$i(invariant$4),_nodejsCustomInspectSymbol=_interopRequireDefault$i(nodejsCustomInspectSymbol$1);function _interopRequireDefault$i(e){return e&&e.__esModule?e:{default:e}}function defineInspect(e){var t=e.prototype.toJSON;"function"!=typeof t&&(0,_invariant.default)(0),e.prototype.inspect=t,_nodejsCustomInspectSymbol.default&&(e.prototype[_nodejsCustomInspectSymbol.default]=t)}Object.defineProperty(ast,"__esModule",{value:!0}),ast.isNode=isNode,ast.Token=ast.Location=void 0;var _defineInspect=_interopRequireDefault$h(defineInspect$1);function _interopRequireDefault$h(e){return e&&e.__esModule?e:{default:e}}var Location$1=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}(),Token=(ast.Location=Location$1,(0,_defineInspect.default)(Location$1),function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}());function isNode(e){return null!=e&&"string"==typeof e.kind}ast.Token=Token,(0,_defineInspect.default)(Token),Object.defineProperty(visitor,"__esModule",{value:!0}),visitor.visit=visit$2,visitor.visitInParallel=visitInParallel,visitor.getVisitFn=getVisitFn,visitor.BREAK=visitor.QueryDocumentKeys=void 0;var _inspect=_interopRequireDefault$g(inspect$1),_ast=ast;function _interopRequireDefault$g(e){return e&&e.__esModule?e:{default:e}}var QueryDocumentKeys={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},BREAK=(visitor.QueryDocumentKeys=QueryDocumentKeys,Object.freeze({}));function visit$2(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:QueryDocumentKeys,r=void 0,i=Array.isArray(e),o=[e],a=-1,s=[],l=void 0,c=void 0,u=void 0,d=[],p=[],f=e;do{var h=++a===o.length,m=h&&0!==s.length;if(h){if(c=0===p.length?void 0:d[d.length-1],l=u,u=p.pop(),m){if(i)l=l.slice();else{for(var g={},y=0,$=Object.keys(l);y<$.length;y++){var v=$[y];g[v]=l[v]}l=g}for(var x=0,b=0;b<s.length;b++){var C=s[b][0],S=s[b][1];i&&(C-=x),i&&null===S?(l.splice(C,1),x++):l[C]=S}}a=r.index,o=r.keys,s=r.edits,i=r.inArray,r=r.prev}else{if(c=u?i?a:o[a]:void 0,null==(l=u?u[c]:f))continue;u&&d.push(c)}var w=void 0;if(!Array.isArray(l)){if(!(0,_ast.isNode)(l))throw new Error("Invalid AST Node: ".concat((0,_inspect.default)(l),"."));var _=getVisitFn(t,l.kind,h);if(_){if((w=_.call(t,l,c,u,d,p))===BREAK)break;if(!1===w){if(!h){d.pop();continue}}else if(void 0!==w&&(s.push([c,w]),!h)){if(!(0,_ast.isNode)(w)){d.pop();continue}l=w}}}void 0===w&&m&&s.push([c,l]),h?d.pop():(r={inArray:i,index:a,keys:o,edits:s,prev:r},o=(i=Array.isArray(l))?l:null!=(_=n[l.kind])?_:[],a=-1,s=[],u&&p.push(u),u=l)}while(void 0!==r);return f=0!==s.length?s[s.length-1][1]:f}function visitInParallel(r){var i=new Array(r.length);return{enter:function(e){for(var t=0;t<r.length;t++)if(null==i[t]){var n=getVisitFn(r[t],e.kind,!1);if(n){n=n.apply(r[t],arguments);if(!1===n)i[t]=e;else if(n===BREAK)i[t]=BREAK;else if(void 0!==n)return n}}},leave:function(e){for(var t=0;t<r.length;t++)if(null==i[t]){var n=getVisitFn(r[t],e.kind,!0);if(n){n=n.apply(r[t],arguments);if(n===BREAK)i[t]=BREAK;else if(void 0!==n&&!1!==n)return n}}else i[t]===e&&(i[t]=null)}}}function getVisitFn(e,t,n){var r,i=e[t];return i?n||"function"!=typeof i?"function"==typeof(r=n?i.leave:i.enter)?r:void 0:i:(r=n?e.leave:e.enter)?"function"==typeof r?r:"function"==typeof(i=r[t])?i:void 0:void 0}visitor.BREAK=BREAK;var blockString={};function dedentBlockStringValue(e){var t=e.split(/\r\n|[\n\r]/g),n=getBlockStringIndentation(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var i=0;i<t.length&&isBlank(t[i]);)++i;for(var o=t.length;i<o&&isBlank(t[o-1]);)--o;return t.slice(i,o).join("\n")}function isBlank(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function getBlockStringIndentation(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:r=!(n=!1),i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!=(t=o)?t:0}function printBlockString(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],o=!r||o||a||n,a="";return!o||r&&i||(a+="\n"+t),a+=t?e.replace(/\n/g,"\n"+t):e,o&&(a+="\n"),'"""'+a.replace(/"""/g,'\\"""')+'"""'}Object.defineProperty(blockString,"__esModule",{value:!0}),blockString.dedentBlockStringValue=dedentBlockStringValue,blockString.getBlockStringIndentation=getBlockStringIndentation,blockString.printBlockString=printBlockString,Object.defineProperty(printer,"__esModule",{value:!0}),printer.print=print;var _visitor=visitor,_blockString=blockString;function print(e){return(0,_visitor.visit)(e,{leave:printDocASTReducer})}var MAX_LINE_LENGTH=80,printDocASTReducer={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return join$4(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=wrap$2("(",join$4(e.variableDefinitions,", "),")"),i=join$4(e.directives," "),e=e.selectionSet;return n||i||r||"query"!==t?join$4([t,join$4([n,r]),i,e]," "):e},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,e=e.directives;return t+": "+n+wrap$2(" = ",r)+wrap$2(" ",join$4(e," "))},SelectionSet:function(e){return block(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,e=e.selectionSet,t=wrap$2("",t,": ")+n,n=t+wrap$2("(",join$4(r,", "),")");return n.length>MAX_LINE_LENGTH&&(n=t+wrap$2("(\n",indent(join$4(r,"\n")),"\n)")),join$4([n,join$4(i," "),e]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+wrap$2(" ",join$4(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,e=e.selectionSet;return join$4(["...",wrap$2("on ",t),join$4(n," "),e]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,e=e.selectionSet;return"fragment ".concat(t).concat(wrap$2("(",join$4(r,", "),")")," ")+"on ".concat(n," ").concat(wrap$2("",join$4(i," ")," "))+e},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,_blockString.printBlockString)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+join$4(e.values,", ")+"]"},ObjectValue:function(e){return"{"+join$4(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+wrap$2("(",join$4(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:addDescription(function(e){var t=e.directives,e=e.operationTypes;return join$4(["schema",join$4(t," "),block(e)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:addDescription(function(e){return join$4(["scalar",e.name,join$4(e.directives," ")]," ")}),ObjectTypeDefinition:addDescription(function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join$4(["type",t,wrap$2("implements ",join$4(n," & ")),join$4(r," "),block(e)]," ")}),FieldDefinition:addDescription(function(e){var t=e.name,n=e.arguments,r=e.type,e=e.directives;return t+(hasMultilineItems(n)?wrap$2("(\n",indent(join$4(n,"\n")),"\n)"):wrap$2("(",join$4(n,", "),")"))+": "+r+wrap$2(" ",join$4(e," "))}),InputValueDefinition:addDescription(function(e){var t=e.name,n=e.type,r=e.defaultValue,e=e.directives;return join$4([t+": "+n,wrap$2("= ",r),join$4(e," ")]," ")}),InterfaceTypeDefinition:addDescription(function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join$4(["interface",t,wrap$2("implements ",join$4(n," & ")),join$4(r," "),block(e)]," ")}),UnionTypeDefinition:addDescription(function(e){var t=e.name,n=e.directives,e=e.types;return join$4(["union",t,join$4(n," "),e&&0!==e.length?"= "+join$4(e," | "):""]," ")}),EnumTypeDefinition:addDescription(function(e){var t=e.name,n=e.directives,e=e.values;return join$4(["enum",t,join$4(n," "),block(e)]," ")}),EnumValueDefinition:addDescription(function(e){return join$4([e.name,join$4(e.directives," ")]," ")}),InputObjectTypeDefinition:addDescription(function(e){var t=e.name,n=e.directives,e=e.fields;return join$4(["input",t,join$4(n," "),block(e)]," ")}),DirectiveDefinition:addDescription(function(e){var t=e.name,n=e.arguments,r=e.repeatable,e=e.locations;return"directive @"+t+(hasMultilineItems(n)?wrap$2("(\n",indent(join$4(n,"\n")),"\n)"):wrap$2("(",join$4(n,", "),")"))+(r?" repeatable":"")+" on "+join$4(e," | ")}),SchemaExtension:function(e){var t=e.directives,e=e.operationTypes;return join$4(["extend schema",join$4(t," "),block(e)]," ")},ScalarTypeExtension:function(e){return join$4(["extend scalar",e.name,join$4(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join$4(["extend type",t,wrap$2("implements ",join$4(n," & ")),join$4(r," "),block(e)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join$4(["extend interface",t,wrap$2("implements ",join$4(n," & ")),join$4(r," "),block(e)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,e=e.types;return join$4(["extend union",t,join$4(n," "),e&&0!==e.length?"= "+join$4(e," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,e=e.values;return join$4(["extend enum",t,join$4(n," "),block(e)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,e=e.fields;return join$4(["extend input",t,join$4(n," "),block(e)]," ")}};function addDescription(t){return function(e){return join$4([e.description,t(e)],"\n")}}function join$4(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return null!=(t=null==e?void 0:e.filter(function(e){return e}).join(t))?t:""}function block(e){return wrap$2("{\n",indent(join$4(e,"\n")),"\n}")}function wrap$2(e,t){return null!=t&&""!==t?e+t+(2<arguments.length&&void 0!==arguments[2]?arguments[2]:""):""}function indent(e){return wrap$2(" ",e.replace(/\n/g,"\n "))}function isMultiline(e){return-1!==e.indexOf("\n")}function hasMultilineItems(e){return null!=e&&e.some(isMultiline)}var getOperationAST$1={},kinds={},Kind=(Object.defineProperty(kinds,"__esModule",{value:!0}),kinds.Kind=void 0,Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})),_kinds=(kinds.Kind=Kind,Object.defineProperty(getOperationAST$1,"__esModule",{value:!0}),getOperationAST$1.getOperationAST=getOperationAST,kinds);function getOperationAST(e,t){for(var n=null,r=0,i=e.definitions;r<i.length;r++){var o,a=i[r];if(a.kind===_kinds.Kind.OPERATION_DEFINITION)if(null==t){if(n)return null;n=a}else if((null==(o=a.name)?void 0:o.value)===t)return a}return n}var protocol={},GRAPHQL_WS=(Object.defineProperty(protocol,"__esModule",{value:!0}),protocol.GRAPHQL_SUBSCRIPTIONS=protocol.GRAPHQL_WS=void 0,"graphql-ws"),GRAPHQL_SUBSCRIPTIONS=(protocol.GRAPHQL_WS=GRAPHQL_WS,"graphql-subscriptions"),defaults$1=(protocol.GRAPHQL_SUBSCRIPTIONS=GRAPHQL_SUBSCRIPTIONS,{}),MIN_WS_TIMEOUT=(Object.defineProperty(defaults$1,"__esModule",{value:!0}),defaults$1.WS_TIMEOUT=defaults$1.MIN_WS_TIMEOUT=void 0,1e3),WS_TIMEOUT=(defaults$1.MIN_WS_TIMEOUT=MIN_WS_TIMEOUT,3e4),messageTypes=(defaults$1.WS_TIMEOUT=WS_TIMEOUT,{}),MessageTypes=(Object.defineProperty(messageTypes,"__esModule",{value:!0}),function(){function e(){throw new Error("Static Class")}return e.GQL_CONNECTION_INIT="connection_init",e.GQL_CONNECTION_ACK="connection_ack",e.GQL_CONNECTION_ERROR="connection_error",e.GQL_CONNECTION_KEEP_ALIVE="ka",e.GQL_CONNECTION_TERMINATE="connection_terminate",e.GQL_START="start",e.GQL_DATA="data",e.GQL_ERROR="error",e.GQL_COMPLETE="complete",e.GQL_STOP="stop",e.SUBSCRIPTION_START="subscription_start",e.SUBSCRIPTION_DATA="subscription_data",e.SUBSCRIPTION_SUCCESS="subscription_success",e.SUBSCRIPTION_FAIL="subscription_fail",e.SUBSCRIPTION_END="subscription_end",e.INIT="init",e.INIT_SUCCESS="init_success",e.INIT_FAIL="init_fail",e.KEEP_ALIVE="keepalive",e}()),__assign$1=(messageTypes.default=MessageTypes,commonjsGlobal$3&&commonjsGlobal$3.__assign||function(){return(__assign$1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)}),__awaiter$e=commonjsGlobal$3&&commonjsGlobal$3.__awaiter||function(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})},__generator=commonjsGlobal$3&&commonjsGlobal$3.__generator||function(r,i){var o,a,s,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return l.label++,{value:t[1],done:!1};case 5:l.label++,a=t[1],t=[0];continue;case 7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(s=0<(s=l.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3]))l.label=t[1];else if(6===t[0]&&l.label<s[1])l.label=s[1],s=t;else{if(!(s&&l.label<s[2])){s[2]&&l.ops.pop(),l.trys.pop();continue}l.label=s[2],l.ops.push(t)}}t=i.call(r,l)}catch(e){t=[6,e],a=0}finally{o=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},__spreadArrays=commonjsGlobal$3&&commonjsGlobal$3.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},SubscriptionClient_1=(Object.defineProperty(client,"__esModule",{value:!0}),client.SubscriptionClient=void 0),_global=void 0!==commonjsGlobal$3?commonjsGlobal$3:"undefined"!=typeof window?window:{},NativeWebSocket=_global.WebSocket||_global.MozWebSocket,Backoff=backo2,eventemitter3_1=eventemitter3.exports,is_string_1=isString$7,is_object_1=isObject$h,printer_1=printer,getOperationAST_1=getOperationAST$1,symbol_observable_1=result,protocol_1=protocol,defaults_1=defaults$1,message_types_1=messageTypes,SubscriptionClient=function(){function e(e,t,n,r){var t=t||{},i=t.connectionCallback,i=void 0===i?void 0:i,o=t.connectionParams,o=void 0===o?{}:o,a=t.minTimeout,a=void 0===a?defaults_1.MIN_WS_TIMEOUT:a,s=t.timeout,s=void 0===s?defaults_1.WS_TIMEOUT:s,l=t.reconnect,l=void 0!==l&&l,c=t.reconnectionAttempts,c=void 0===c?1/0:c,u=t.lazy,u=void 0!==u&&u,d=t.inactivityTimeout,d=void 0===d?0:d,t=t.wsOptionArguments,t=void 0===t?[]:t;if(this.wsImpl=n||NativeWebSocket,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=r||protocol_1.GRAPHQL_WS,this.connectionCallback=i,this.url=e,this.operations={},this.nextOperationId=0,this.minWsTimeout=a,this.wsTimeout=s,this.unsentMessagesQueue=[],this.reconnect=l,this.reconnecting=!1,this.reconnectionAttempts=c,this.lazy=!!u,this.inactivityTimeout=d,this.closedByUser=!1,this.backoff=new Backoff({jitter:.5}),this.eventEmitter=new eventemitter3_1.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(o),this.wsOptionArguments=t,this.lazy||this.connect()}return Object.defineProperty(e.prototype,"status",{get:function(){return null===this.client?this.wsImpl.CLOSED:this.client.readyState},enumerable:!1,configurable:!0}),e.prototype.close=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.clearInactivityTimeout(),null!==this.client&&(this.closedByUser=t,e&&(this.clearCheckConnectionInterval(),this.clearMaxConnectTimeout(),this.clearTryReconnectTimeout(),this.unsubscribeAll(),this.sendMessage(void 0,message_types_1.default.GQL_CONNECTION_TERMINATE,null)),this.client.close(),this.client.onopen=null,this.client.onclose=null,this.client.onerror=null,this.client.onmessage=null,this.client=null,this.eventEmitter.emit("disconnected"),e||this.tryReconnect())},e.prototype.request=function(i){var e,o,a=this.getObserver.bind(this),s=this.executeOperation.bind(this),l=this.unsubscribe.bind(this);return this.clearInactivityTimeout(),(e={})[symbol_observable_1.default]=function(){return this},e.subscribe=function(e,t,n){var r=a(e,t,n);return o=s(i,function(e,t){null===e&&null===t?r.complete&&r.complete():e?r.error&&r.error(e[0]):r.next&&r.next(t)}),{unsubscribe:function(){o&&(l(o),o=null)}}},e},e.prototype.on=function(e,t,n){var r=this.eventEmitter.on(e,t,n);return function(){r.off(e,t,n)}},e.prototype.onConnected=function(e,t){return this.on("connected",e,t)},e.prototype.onConnecting=function(e,t){return this.on("connecting",e,t)},e.prototype.onDisconnected=function(e,t){return this.on("disconnected",e,t)},e.prototype.onReconnected=function(e,t){return this.on("reconnected",e,t)},e.prototype.onReconnecting=function(e,t){return this.on("reconnecting",e,t)},e.prototype.onError=function(e,t){return this.on("error",e,t)},e.prototype.unsubscribeAll=function(){var t=this;Object.keys(this.operations).forEach(function(e){t.unsubscribe(e)})},e.prototype.applyMiddlewares=function(a){var e=this;return new Promise(function(t,n){var r,i;function o(e){e?n(e):0<r.length?(e=r.shift())&&e.applyMiddleware.apply(i,[a,o]):t(a)}r=__spreadArrays(e.middlewares),i=e,o()})},e.prototype.use=function(e){var t=this;return e.filter(Boolean).map(function(e){if("function"!=typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(e)}),this},e.prototype.getConnectionParams=function(n){return function(){return new Promise(function(e,t){if("function"==typeof n)try{return e(n.call(null))}catch(e){return t(e)}e(n)})}},e.prototype.executeOperation=function(e,t){var n=this,r=(null===this.client&&this.connect(),this.generateOperationId());return this.operations[r]={options:e,handler:t},this.applyMiddlewares(e).then(function(e){n.checkOperationOptions(e,t),n.operations[r]&&(n.operations[r]={options:e,handler:t},n.sendMessage(r,message_types_1.default.GQL_START,e))}).catch(function(e){n.unsubscribe(r),t(n.formatErrors(e))}),r},e.prototype.getObserver=function(t,n,e){return"function"==typeof t?{next:function(e){return t(e)},error:function(e){return n&&n(e)},complete:function(){return e&&e()}}:t},e.prototype.createMaxConnectTimeGenerator=function(){var e=this.minWsTimeout,t=this.wsTimeout;return new Backoff({min:e,max:t,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var e=this;0<this.inactivityTimeout&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout(function(){0===Object.keys(e.operations).length&&e.close()},this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var n=e.query,r=e.variables,e=e.operationName;if(!n)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!is_string_1.default(n)&&!getOperationAST_1.getOperationAST(n,e)||e&&!is_string_1.default(e)||r&&!is_object_1.default(r))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,n){return{id:e,type:t,payload:n&&n.query?__assign$1(__assign$1({},n),{query:"string"==typeof n.query?n.query:printer_1.print(n.query)}):n}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},e.prototype.sendMessage=function(e,t,n){this.sendMessageRaw(this.buildMessage(e,t,n))},e.prototype.sendMessageRaw=function(t){switch(this.status){case this.wsImpl.OPEN:var e=JSON.stringify(t);try{JSON.parse(e)}catch(e){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+t))}this.client.send(e);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(t);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(t)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e,t=this;!this.reconnect||this.backoff.attempts>=this.reconnectionAttempts||(this.reconnecting||(Object.keys(this.operations).forEach(function(e){t.unsentMessagesQueue.push(t.buildMessage(e,message_types_1.default.GQL_START,t.operations[e].options))}),this.reconnecting=!0),this.clearTryReconnectTimeout(),e=this.backoff.duration(),this.tryReconnectTimeoutId=setTimeout(function(){t.connect()},e))},e.prototype.flushUnsentMessagesQueue=function(){var t=this;this.unsentMessagesQueue.forEach(function(e){t.sendMessageRaw(e)}),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout(function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))},this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e,t=this;this.client=new((e=this.wsImpl).bind.apply(e,__spreadArrays([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return __awaiter$e(t,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return t=e.sent(),this.sendMessage(void 0,message_types_1.default.GQL_CONNECTION_INIT,t),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=e.sent(),this.sendMessage(void 0,message_types_1.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}})})},this.client.onclose=function(){t.closedByUser||t.close(!1,!1)},this.client.onerror=function(e){t.eventEmitter.emit("error",e)},this.client.onmessage=function(e){e=e.data;t.processReceivedData(e)}},e.prototype.processReceivedData=function(t){var e,n;try{n=(e=JSON.parse(t)).id}catch(e){throw new Error("Message must be JSON-parseable. Got: "+t)}if(-1===[message_types_1.default.GQL_DATA,message_types_1.default.GQL_COMPLETE,message_types_1.default.GQL_ERROR].indexOf(e.type)||this.operations[n])switch(e.type){case message_types_1.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(e.payload);break;case message_types_1.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",e.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case message_types_1.default.GQL_COMPLETE:var r=this.operations[n].handler;delete this.operations[n],r.call(this,null,null);break;case message_types_1.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(e.payload),null),delete this.operations[n];break;case message_types_1.default.GQL_DATA:r=e.payload.errors?__assign$1(__assign$1({},e.payload),{errors:this.formatErrors(e.payload.errors)}):e.payload;this.operations[n].handler(null,r);break;case message_types_1.default.GQL_CONNECTION_KEEP_ALIVE:r=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,r&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(n)},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,message_types_1.default.GQL_STOP,void 0))},e}(),SubscriptionClient_1=client.SubscriptionClient=SubscriptionClient,WebSocketLink=function(n){function e(e){var t=n.call(this)||this;return e instanceof SubscriptionClient_1?t.subscriptionClient=e:t.subscriptionClient=new SubscriptionClient_1(e.uri,e.options,e.webSocketImpl),t}return __extends(e,n),e.prototype.request=function(e){return this.subscriptionClient.request(e)},e}(ApolloLink),dev={apiRoot:"https://api.dev.us-1.veritone.com",switchAppUrl:"https://aiware.dev.us-1.veritone.com/switch-app",graphEndpoint:"https://api.dev.us-1.veritone.com/v3/graphql",graphEndpointWS:"wss://api.dev.us-1.veritone.com/v3/graphql",loginUrl:"https://desktop.dev.us-1.veritone.com/ui/auth/login",logoutUrl:"https://desktop.dev.us-1.veritone.com/ui/auth/logout",adminAppUrl:"https://admin.dev.us-1.veritone.com",automateUrl:"https://automate.dev.us-1.veritone.com",automateControllerUrl:"https://automate-controller-v3f.aws-dev-rt.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:dev",cmsAppUrl:"https://cms.dev.us-1.veritone.com",desktopAppUrl:"https://desktop.dev.us-1.veritone.com/"},stage={apiRoot:"https://api.stage.us-1.veritone.com",switchAppUrl:"https://aiware.stage.us-1.veritone.com/switch-app",graphEndpoint:"https://api.stage.us-1.veritone.com/v3/graphql",graphEndpointWS:"wss://api.stage.us-1.veritone.com/v3/graphql",loginUrl:"https://desktop.stage.us-1.veritone.com/ui/auth/login",logoutUrl:"https://desktop.stage.us-1.veritone.com/ui/auth/logout",adminAppUrl:"https://admin.stage.us-1.veritone.com",automateUrl:"https://automate.stage.us-1.veritone.com",automateControllerUrl:"https://automate-controller-v3f.aws-stage-rt.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:stage",cmsAppUrl:"https://cms.stage.us-1.veritone.com",desktopAppUrl:"https://desktop.stage.us-1.veritone.com/"},config$2={dev:dev,stage:stage,"stage-me":{apiRoot:"https://api.stage-me.us-1.veritone.com",switchAppUrl:"https://aiware.stage-me.us-1.veritone.com/switch-app",graphEndpoint:"https://api.stage-me.us-1.veritone.com/v3/graphql",graphEndpointWS:"wss://api.stage-me.us-1.veritone.com/v3/graphql",loginUrl:"https://aiware.stage-me.us-1.veritone.com/login/#",logoutUrl:"https://admin.stage-me.us-1.veritone.com/logout",adminAppUrl:"https://admin.stage-me.us-1.veritone.com",automateUrl:"https://automate.stage-me.us-1.veritone.com",automateControllerUrl:"https://automate-controller-v3f.aws-stage-me-rt.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:stage2",cmsAppUrl:"https://cms.stage-me.us-1.veritone.com",desktopAppUrl:"https://desktop.stage-me.us-1.veritone.com/"},"prod-us-1":{apiRoot:"https://api.us-1.veritone.com",switchAppUrl:"https://aiware.us-1.veritone.com/switch-app",graphEndpoint:"https://api.us-1.veritone.com/v3/graphql",graphEndpointWS:"wss://api.us-1.veritone.com/v3/graphql",loginUrl:"https://desktop.us-1.veritone.com/ui/auth/login",logoutUrl:"https://desktop.us-1.veritone.com/ui/auth/logout",adminAppUrl:"https://admin.us-1.veritone.com",automateUrl:"https://automate.us-1.veritone.com",automateControllerUrl:"https://automate-controller-v3f.aws-prod-rt.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:prod",cmsAppUrl:"https://cms.us-1.veritone.com",desktopAppUrl:"https://desktop.us-1.veritone.com/"},"prod-us-2":{apiRoot:"https://api.us-2.veritone.com",switchAppUrl:"https://aiware.us-2.veritone.com/switch-app",graphEndpoint:"https://api.us-2.veritone.com/v3/graphql",graphEndpointWS:"wss://api.us-2.veritone.com/v3/graphql",loginUrl:"https://login.us-2.veritone.com",logoutUrl:"https://admin.us-2.veritone.com/logout",adminAppUrl:"https://admin.us-2.veritone.com",automateUrl:"https://automate.us-2.veritone.com",automateControllerUrl:"https://v3f-controller-veritone-edge.us-2.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:prod",cmsAppUrl:"https://cms.us-2.veritone.com",desktopAppUrl:"https://desktop.us-2.veritone.com/"},"prod-uk":{apiRoot:"https://api.uk.veritone.com",switchAppUrl:"https://aiware.uk.veritone.com/switch-app",graphEndpoint:"https://api.uk.veritone.com/v3/graphql",graphEndpointWS:"wss://api.uk.veritone.com/v3/graphql",loginUrl:"https://login.veritone.com",logoutUrl:"https://admin.uk.veritone.com/logout",adminAppUrl:"https://admin.uk.veritone.com",automateUrl:"https://automate.uk.veritone.com",automateControllerUrl:"https://automate-controller-v3f.aws-stage-rt.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:stage",cmsAppUrl:"https://cms.uk.veritone.com",desktopAppUrl:"https://desktop.uk.veritone.com/"},"prod-uk-1":{apiRoot:"https://api.uk-1.veritone.com",switchAppUrl:"https://aiware.uk-1.veritone.com/switch-app",graphEndpoint:"https://api.uk-1.veritone.com/v3/graphql",graphEndpointWS:"wss://api.uk-1.veritone.com/v3/graphql",loginUrl:"https://login.veritone.com",logoutUrl:"https://admin.uk-1.veritone.com/logout",adminAppUrl:"https://admin.uk-1.veritone.com",automateUrl:"https://automate.uk-1.veritone.com",automateControllerUrl:"https://automate-controller-v3f.aws-stage-rt.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:stage",cmsAppUrl:"https://cms.uk-1.veritone.com",desktopAppUrl:"https://desktop.uk-1.veritone.com/"},"azure-stage":{apiRoot:"https://api.stage.us-gov-2.veritone.com",switchAppUrl:"https://www.stage.us-gov-2.veritone.com/switch-app",graphEndpoint:"https://api.stage.us-gov-2.veritone.com/v3/graphql",graphEndpointWS:"wss://api.stage.us-gov-2.veritone.com/v3/graphql",loginUrl:"https://www.stage.us-gov-2.veritone.com/login",logoutUrl:"https://admin.stage.us-gov-2.veritone.com/logout",adminAppUrl:"https://admin.stage.us-gov-2.veritone.com",automateUrl:"https://automate.stage.us-gov-2.veritone.com",automateControllerUrl:"https://automate-controller-v3f.aws-stage-rt.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:stage",cmsAppUrl:"https://cms.stage.us-gov-2.veritone.com",desktopAppUrl:"https://desktop.stage.us-gov-2.veritone.com/"},"azure-ca":{apiRoot:"https://api.ca-1.veritone.com",switchAppUrl:"https://www.ca-1.veritone.com/switch-app",graphEndpoint:"https://api.ca-1.veritone.com/v3/graphql",graphEndpointWS:"wss://api.ca-1.veritone.com/v3/graphql",loginUrl:"https://www.ca-1.veritone.com/login",logoutUrl:"https://admin.ca-1.veritone.com/logout",adminAppUrl:"https://admin.ca-1.veritone.com",automateUrl:"https://automate.ca-1.veritone.com",automateControllerUrl:"https://automate-controller-v3f.aws-stage-rt.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:stage",cmsAppUrl:"https://cms.ca-1.veritone.com",desktopAppUrl:"https://desktop.ca-1.veritone.com/"},"azure-prod":{apiRoot:"https://api.us-gov-2.veritone.com",switchAppUrl:"https://www.us-gov-2.veritone.com/switch-app",graphEndpoint:"https://api.us-gov-2.veritone.com/v3/graphql",graphEndpointWS:"wss://api.us-gov-2.veritone.com/v3/graphql",loginUrl:"https://www.us-gov-2.veritone.com/login",logoutUrl:"https://admin.us-gov-2.veritone.com/logout",adminAppUrl:"https://admin.us-gov-2.veritone.com",automateUrl:"https://automate.us-gov-2.veritone.com",automateControllerUrl:"https://automate-controller-v3f.aws-stage-rt.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:stage",cmsAppUrl:"https://cms.us-gov-2.veritone.com",desktopAppUrl:"https://desktop.us-gov-2.veritone.com/"},"aws-sled":{apiRoot:"https://api.us-gov-1.veritone.com",switchAppUrl:"https://aiware.us-gov-1.veritone.com/switch-app",graphEndpoint:"https://api.us-gov-1.veritone.com/v3/graphql",graphEndpointWS:"wss://api.us-gov-1.veritone.com/v3/graphql",loginUrl:"https://aiware.us-gov-1.veritone.com/login",logoutUrl:"https://admin.us-gov-1.veritone.com/logout",adminAppUrl:"https://admin.us-gov-1.veritone.com",automateUrl:"https://automate.us-gov-1.veritone.com",automateControllerUrl:"https://automate-controller-v3f.us-gov-1.veritone.com",controllerNodeRedImage:"registry.central.aiware.com/node-red-runner-v3:aws-sled-prod",cmsAppUrl:"https://cms.us-gov-2.veritone.com",desktopAppUrl:"https://desktop.us-gov-2.veritone.com/"},"aws-fed-tenant1":{apiRoot:"https://api.us-fed-1.veritone.com",switchAppUrl:"https://aiware.us-fed-1.veritone.com/switch-app",graphEndpoint:"https://api.us-fed-1.veritone.com/v3/graphql",graphEndpointWS:"wss://api.us-fed-1.veritone.com/v3/graphql",loginUrl:"https://login.us-fed-1.veritone.com",logoutUrl:"https://admin.us-fed-1.veritone.com/logout",adminAppUrl:"https://admin.us-fed-1.veritone.com",automateUrl:"https://automate.us-fed-1.veritone.com",automateControllerUrl:"https://automate-controller-v3f.us-fed-1.veritone.com",controllerNodeRedImage:"911809300469.dkr.ecr.us-gov-west-1.amazonaws.com/node-red-runner-v3:prod",cmsAppUrl:"https://cms.us-fed-1.veritone.com",desktopAppUrl:"https://desktop.us-fed-1.veritone.com/"},"azure-fed-tenant2":{apiRoot:"https://api.us-fed-2.veritone.com",switchAppUrl:"https://aiware.us-fed-2.veritone.com/switch-app",graphEndpoint:"https://api.us-fed-2.veritone.com/v3/graphql",graphEndpointWS:"wss://api.us-fed-2.veritone.com/v3/graphql",loginUrl:"https://login.us-fed-2.veritone.com",logoutUrl:"https://admin.us-fed-2.veritone.com/logout",adminAppUrl:"https://admin.us-fed-2.veritone.com",automateUrl:"https://automate.us-fed-2.veritone.com",automateControllerUrl:"https://automate-controller-v3f.us-fed-2.veritone.com",controllerNodeRedImage:"911809300469.dkr.ecr.us-gov-west-1.amazonaws.com/node-red-runner-v3:prod",cmsAppUrl:"https://cms.us-fed-2.veritone.com",desktopAppUrl:"https://desktop.us-fed-2.veritone.com/"}};function __rest$6(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function __awaiter$d(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}function baseGraphQLApi({query:e,extraHeaders:t,variables:n,operationName:r,graphEndpoint:i,token:o}){return __awaiter$d(this,void 0,void 0,function*(){return(yield fetch(i,{method:"post",body:JSON.stringify({query:e,variables:n,operationName:r}),credentials:"include",headers:Object.assign(Object.assign({"Content-Type":"application/json"},o&&{Authorization:"Bearer "+o}),t)})).json()})}class GqlInstrospection{constructor(e=!1){this.initialized=!1,this.query=[],this.mutation=[],this.types=[],this.introspectionEnabled=!0,this.hashMap={},this.alertDevs=!1,this.params=[],this.safety=e,this.enums={}}initialize(t,n,r,i=!1){var o;return __awaiter$d(this,void 0,void 0,function*(){var e;this.alertDevs=r,this.safety=i,this.initialized||(this.initialized=!0,(e=yield baseGraphQLApi({query:`{
|
|
867
868
|
__schema {
|
|
868
869
|
queryType {
|
|
869
870
|
fields {
|
|
@@ -1452,7 +1453,7 @@ createScheduledJob(input:{
|
|
|
1452
1453
|
}
|
|
1453
1454
|
`)}),n},[]).join("\r\n")}
|
|
1454
1455
|
}
|
|
1455
|
-
`,l={entityId:t,entityType:e};try{a=yield baseGraphQLApi({query:s,operationName:n,variables:l,graphEndpoint:u,token:d})}catch(e){i=!0}if(a.errors){if(0===(o=a.errors.filter(({message:e})=>e.includes(' does not exist in "AuthPermissionType" enum.')).map(({message:e})=>{var t='Value "',n=e.substring(t.length).indexOf('"');return e.substring(t.length,t.length+n)})).length)throw i=!0,a={},new Error((null==(f=(a.errors||[])[0])?void 0:f.message)||"Error")}else i=!0}const c=a.data||{};return Object.keys(c).map(e=>{var t=e.split("__");return 3===t.length?{fetchedTargetEntityType:t[0],fetchedTargetGroupType:t[1],fetchedTargetAction:t[2],hasPermission:c[e][0].hasPermission}:{fetchedTargetEntityType:t[0],fetchedTargetAction:t[1],hasPermission:c[e][0].hasPermission}}).reduce((e,t)=>{var n=t.fetchedTargetGroupType||t.fetchedTargetEntityType;return t.hasPermission&&(e[n]||(e[n]={}),e[n][t.fetchedTargetAction]=t.hasPermission),e},{})})}function getMyRights(t){return __awaiter$5(this,void 0,void 0,function*(){var e="getMyRights";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getMyRights {\n myRights {\n operations\n }\n }\n ",operationName:e},t))).myRights.operations})}const selectPermissionsByEntity=(t,n,r)=>e=>{return t&&n&&(e=e[namespace$7].permissionsByObject[t])&&e[n]?e[n][r||t]:void 0},selectMyRights=e=>e[namespace$7].rights;var index=Object.freeze({__proto__:null,selectPermissionsByEntity:selectPermissionsByEntity,selectMyRights:selectMyRights});function*fetchObjectPermissions(t){var{entityId:t,entityType:n}=t.payload,i=yield select(selectApiConfigs$2),e=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector),a=yield select(selectIsOLPEnabled),r=yield select(selectPermissionsByEntity(n,t));if(!r||"success"!==r.status&&"pending"!==r.status){yield put(actions$6.fetchObjectPermissionsStarted({entityId:t,entityType:n}));try{let r={};if(a)r=yield call$j(getObjectPermissions,e,o,{entityType:n,entityId:t});else{let e=yield select(selectMyRights);if("success"!==e.status&&"pending"!==e.status){yield put(actions$6.fetchMyRightsStarted);try{var s=yield call$j(getMyRights,i);yield put(actions$6.fetchMyRightsSucceeded(s)),e=yield select(selectMyRights)}catch(e){throw yield put(actions$6.fetchMyRightsFailed),e}}else"pending"===e.status&&(yield take([actions$6.fetchMyRightsFailed,actions$6.fetchMyRightsSucceeded]),e=yield select(selectMyRights));const l=e["myRights"];getPermissionTypesToQuery(n).forEach(n=>{var{action:e,resource:t}=n.targetActions.reduce((e,t)=>(e.action[t.targetAction]=convertPermissionsToRights(t.resource||n.targetObjectType,t.targetAction,l),e.resource=t.resource,e),{action:{}});r[t||n.targetObjectType]=e})}yield put(actions$6.fetchObjectPermissionsSucceeded({entityId:t,entityType:n,permissions:r}))}catch(e){actions$6.fetchObjectPermissionsFailed({entityId:t,entityType:n})}}}function*watchPermissionsStart(){yield takeEvery$1(actions$6.fetchObjectPermissionsStart.type,fetchObjectPermissions)}function*rootSaga$2(){yield all$2([watchPermissionsStart()])}function getPermissionsModule(){return{id:namespace$7,reducerMap:{[namespace$7]:permissionsReducer},sagas:[rootSaga$2],initialActions:[]}}const useOrganizationPermissions=e=>{const t=react$1.exports.useRef(),n=useDispatch(),r=null==(o=useSelector(userSelector$2).organization)?void 0:o.organizationId,i=useSelector(selectPermissionsByEntity(EAuthResourceType.Organization,String(r),e));react$1.exports.useEffect(()=>{!r||i&&"failure"!==i.status&&"idle"!==i.status&&t.current===r||(t.current=r,n(actions$6.fetchObjectPermissionsStart({entityType:EAuthResourceType.Organization,entityId:String(r)})))},[n,r,i]);var o=react$1.exports.useCallback(e=>{return!isPermissionLoading(i)&&hasPermission(i,e)},[i]);return{permissions:i,hasPermission:o}},nameSpace$1="@helpPanel",updateSelectedTab=createAction(nameSpace$1+"/UPDATE_SELECTED_TAB",function(e,t){return{payload:{selectedTabId:e,tabLink:t}}}),setCustomKnowledgeBaseUrl=createAction(nameSpace$1+"/SET_CUSTOM_KNOWLEDGE_BASE_URL",function(e){return{payload:{url:e}}}),setCustomDocsUrl=createAction(nameSpace$1+"/SET_CUSTOM_DOCS_URL",function(e){return{payload:{url:e}}}),initialState$7={selectedTabId:0,tabLink:"https://support.veritone.com/",customKnowledgeBaseUrl:"",customDocsUrl:""},getTabLinkReducer=createReducer(initialState$7,e=>{e.addCase(updateSelectedTab,(e,t)=>Object.assign(Object.assign({},e),{tabLink:t.payload.tabLink,selectedTabId:t.payload.selectedTabId})),e.addCase(setCustomKnowledgeBaseUrl,(e,t)=>Object.assign(Object.assign({},e),{customKnowledgeBaseUrl:t.payload.url})),e.addCase(setCustomDocsUrl,(e,t)=>Object.assign(Object.assign({},e),{customDocsUrl:t.payload.url}))});function*helpSaga(){yield takeEvery$1("OPEN_HELP_LINK",function*(){var e=yield select(e=>e.helpPanel.tabLink);yield put(openLinkOnNewTab({url:e}))})}const namespace$6="helpPanel",helpCenterSelectedTabIdSelector=e=>null!=e&&e[namespace$6]?e[namespace$6].selectedTabId:0,customDocsUrlSelector=e=>null!=e&&e[namespace$6]?e[namespace$6].customDocsUrl:"",customKnowledgeBaseUrlSelector=e=>null!=e&&e[namespace$6]?e[namespace$6].customKnowledgeBaseUrl:"";function getHelpPanelModule(){return{id:"help",reducerMap:{[namespace$6]:getTabLinkReducer},sagas:[helpSaga],initialActions:[]}}var knowledgeBaseUrl$1="https://docs.veritone.com/help/index.html",documentUrl$1="https://docs.veritone.com",config={knowledgeBaseUrl:knowledgeBaseUrl$1,documentUrl:documentUrl$1};const useStyles$m=makeStyles()(e=>({root:{height:"calc(100% - 110px)",textAlign:"left","& .Sdk-MuiTab-root.Mui-selected":{color:e.palette.text.primary,fontWeight:600}},tabs:{padding:e.spacing(2.4,6,0,6)},tabPanels:{width:"100%",height:"100%"},aiWareIcon:{position:"relative",maxHeight:50,opacity:"inherit",padding:e.spacing(4,3.2,0,3.2),display:"flex",justifyContent:"flex-end"},customTabs:{margin:e.spacing(0,4)},kbRoot:{height:"100%",textAlign:"left"},loadingContainer:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white"},kbToolBarBox:{padding:e.spacing(6,6,1.6,6)},kbTabContent:{height:"calc(100% - 92px)"},kbTabPanel:{padding:e.spacing(6)},dRoot:{height:"100%",width:"100%"},dNavBar:{height:"100%",overflow:"hidden",background:"#F4F4F4"},dTitle:{color:"#2A323C",fontWeight:600,fontSize:"18px",lineHeight:"24px",padding:e.spacing(3.2)},dContent:{height:"100%",width:"100%",position:"relative"},dMenu:{overflowY:"auto",height:"calc(100% - 52px)"},drawerContainer:{display:"flex",height:"100%",background:e.palette.background.default},tabContainer:{borderRight:"0.5px solid #D5DFE9",overflow:"hidden",height:"100%",width:"100%"},tabName:{borderBottom:"0.5px solid #D5DFE9",display:"flex",justifyContent:"space-between",alignItems:"center",height:"64px",padding:e.spacing(0,6)},actionIcons:{margin:e.spacing(-2.4)},tabContent:{height:"calc(100vh - 57px - 60px)",overflowY:"auto",overflowX:"hidden"}})),documentUrl=config.documentUrl,Documentation=({path:e=documentUrl})=>{var t=useStyles$m()["classes"];const[n,r]=react$1.exports.useState(!0);return jsxRuntime.exports.jsxs("div",Object.assign({className:classNames(t.dRoot,"hide-in-percy")},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),jsxRuntime.exports.jsx("iframe",{"data-cy":"docs-iframe",title:"Document Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){setTimeout(()=>{r(!1)},1e3)}})]}))},knowledgeBaseUrl=config["knowledgeBaseUrl"];function Knowledgebase({path:e=knowledgeBaseUrl}){var t=useStyles$m()["classes"];const[n,r]=react$1.exports.useState(!0);return jsxRuntime.exports.jsxs("div",Object.assign({className:t.kbRoot},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),jsxRuntime.exports.jsx("iframe",{"data-cy":"knowledgebase-iframe",title:"Knowledgebase Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){r(!1)}})]}))}const defaultLocale="en-us",tabsList=[{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-help-panel.au1+VZ",defaultMessage:"Knowledgebase",description:"Help Panel: Knowledgebase tab label"}),disabled:!1,url:"https://support.veritone.com/"},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-help-panel.8bnkm8",defaultMessage:"Documentation",description:"Help Panel: Documentation tab label"}),disabled:!1,url:"https://docs.veritone.com/#/aiware/"}];function HelpCenter$1(){var e=useSelector(initialConfigSelector),t=useSelector(customKnowledgeBaseUrlSelector),n=useSelector(customDocsUrlSelector),r=useSelector(helpCenterSelectedTabIdSelector),i=useSelector(e=>null==e?void 0:e.panels),o=useStyles$m()["classes"],[a]=react$1.exports.useState(defaultLocale);const s=useDispatch();i=null==i?void 0:i.find(e=>"CUSTOM_HELP_PANEL_ID"===e.panelId),t=i&&t?t:e.knowledgeBaseUrl,i=i&&n?n:e.docsURL;return jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getHelpPanelModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,Object.assign({locale:a},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.drawerContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({id:"setting-content",className:o.tabContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.tabContent},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.root},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.tabPanels},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:o.customTabs},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:r,onChangeTab:e=>{s(updateSelectedTab(e,tabsList[e].url))},tabsList:tabsList})})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:o.tabPanels},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:0},{children:jsxRuntime.exports.jsx(Knowledgebase,{path:t})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:1},{children:jsxRuntime.exports.jsx(Documentation,{path:i})}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:o.aiWareIcon},{children:jsxRuntime.exports.jsx("img",{src:img$D,alt:"icon",draggable:"false"})}))]}))}))}))}))}))}))}))}var PermissionChangedAction,WidgetsStatus,index_esm$3=Object.freeze({__proto__:null,HelpCenterPanel:HelpCenter$1,customDocsUrlSelector:customDocsUrlSelector,customKnowledgeBaseUrlSelector:customKnowledgeBaseUrlSelector,helpCenterSelectedTabIdSelector:helpCenterSelectedTabIdSelector,setCustomDocsUrl:setCustomDocsUrl,setCustomKnowledgeBaseUrl:setCustomKnowledgeBaseUrl,updateSelectedTab:updateSelectedTab});class DataCenter{openImporterPanel(){store$7.dispatch(mountPanel$1({panelId:"DATA_CENTER_IMPORTER",microFrontend:{name:"DATA_CENTER_IMPORTER",config:{name:"Local Importer"}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"large",zIndex:1e3,dimmed:0}}))}}class AiwareSDKHelpers{isURLValid(e=""){let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}unmountAllPanel(){store$7.dispatch(unmountAllPanel(""))}}!function(e){e.GRANTED="granted",e.REVOKED="revoked"}(PermissionChangedAction=PermissionChangedAction||{});class SdkEventsManager extends AiwareSDKHelpers{constructor(){super(...arguments),this.events=new Map}on(e,n){if(!SdkEvents[e])throw new SdkError(`Unknown event type: \`${e}\``);this.events.set(e,function(e,...t){n(e,...t)})}off(e){this.events.delete(e)}dispatch(e,t,...n){this.events.has(e)&&this.events.get(e)(t,...n)}createError(e){return new SdkError(e)}}class SdkError extends Error{constructor(e,t="error"){super("[AiwareJS SDK error]: "+e),this.type="error",this.type=t}}const sdkEventManager=new SdkEventsManager;class HelpCenter extends AiwareSDKHelpers{constructor({actions:e}){super(),this.CUSTOM_HELP_PANEL_ID="CUSTOM_HELP_PANEL_ID",this.actions=e}getPanelConfig(){return{helpPanelMicroFrontend:{name:"HELP_PANEL",config:{name:"Help panel",dataId:"helpDataId",type:"SIMPLE_PANEL"}},helpPanelConfig:{panelId:this.CUSTOM_HELP_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,size:"large",header:{divider:!0,title:"HELP CENTER",actions:[{iconUrl:img$V,action:{type:"OPEN_HELP_LINK"}}]}}}}mountHelpPanel(){var{helpPanelMicroFrontend:e,helpPanelConfig:t}=this.getPanelConfig();store$7.dispatch(mountPanel$1({panelId:this.CUSTOM_HELP_PANEL_ID,microFrontend:e,panelConfig:t}))}panels(){return(null===store$7||void 0===store$7?void 0:store$7.getState()).panels}isCustomHelpPanelOpen(){return!!this.panels().find(e=>e.panelId===this.CUSTOM_HELP_PANEL_ID)}handleCustomDocsUrl(e){this.isURLValid(e)&&(store$7.dispatch(this.actions.setCustomDocsUrlAction(e)),store$7.dispatch(this.actions.updateSelectedTabAction(1,"")))}handleCustomKnowledgeBaseUrl(e){this.isURLValid(e)&&(store$7.dispatch(this.actions.setCustomKnowledgeBaseUrlAction(e)),store$7.dispatch(this.actions.updateSelectedTabAction(0,"")))}openDocsPanel(e,t=!0){var n;e&&!this.isURLValid(e)?(n=new SdkError("Can not open the custom url! The url should be valid and start with http or https"),console.error(n.message),store$7.dispatch(this.actions.updateSelectedTabAction(1,""))):this.isCustomHelpPanelOpen()||(t&&this.unmountAllPanel(),this.mountHelpPanel(),e)?this.handleCustomDocsUrl(e):store$7.dispatch(this.actions.updateSelectedTabAction(1,""))}openKnowledgeBasePanel(e){var t;e&&!this.isURLValid(e)?(t=new SdkError("Can not open the custom url! The url should be valid and start with http or https"),console.error(t.message),store$7.dispatch(this.actions.updateSelectedTabAction(0,""))):this.isCustomHelpPanelOpen()||(this.unmountAllPanel(),this.mountHelpPanel(),e)?this.handleCustomKnowledgeBaseUrl(e):store$7.dispatch(this.actions.updateSelectedTabAction(0,""))}}function validateConfig(e){return e.applicationId||console.info("@aiware/js: applicationId is required. Go to developer app to find your application id."),e.baseUrl||console.info("@aiware/js: baseUrl is required. It defaults to the US Commercial environment which is https://api.us-1.veritone.com/v3/graphql"),e.knowledgeBaseURL&&e.knowledgeBaseUrl&&e.knowledgeBaseURL!==e.knowledgeBaseUrl||e.knowledgeBaseURL&&!e.knowledgeBaseUrl?(console.info("@aiware/js: knowledgeBaseURL is deprecated and scheduled to be removed in v3. Please use knowledgeBaseUrl instead."),Object.assign(Object.assign({},e),{knowledgeBaseUrl:e.knowledgeBaseURL})):e}const WIDGETS_FEATURE_KEY="widgets",initialState$6=(!function(e){e.idle="idle",e.mounting="mounting",e.unmounting="unmounting",e.error="error",e.eventing="eventing"}(WidgetsStatus=WidgetsStatus||{}),{value:[],status:WidgetsStatus.idle}),widgetsSelector=e=>e[name].value,callWidgetOnComplete=(e,t)=>{e=e.find(e=>e.widgetName===t);null!=e&&e.onComplete&&e.onComplete()},{name,reducer,actions:{mountWidget:mountWidgetAction,mountWidgetSuccess,mountWidgetError,unmountWidget:unmountWidgetAction,unmountWidgetSuccess,unmountWidgetFailure,triggerWidgetCallback,triggerWidgetCallbackSuccess}}=createSlice({name:WIDGETS_FEATURE_KEY,initialState:initialState$6,reducers:{mountWidget:(e,t)=>{e.value.push(t.payload),e.status=WidgetsStatus.mounting},mountWidgetSuccess:e=>{e.status=WidgetsStatus.idle},mountWidgetError:e=>{e.status=WidgetsStatus.error},triggerWidgetCallback:(e,t)=>{e.status=WidgetsStatus.eventing},triggerWidgetCallbackSuccess:e=>{e.status=WidgetsStatus.idle},unmountWidget:(e,t)=>{e.status=WidgetsStatus.unmounting},unmountWidgetSuccess:(e,t)=>{e.value=e.value.filter(e=>e.widgetId!==t.payload),e.status=WidgetsStatus.idle},unmountWidgetFailure:e=>{e.status=WidgetsStatus.error}}}),mountWidgetListenerFactory=l=>function*(){let a;const s={};yield takeEvery$1(mountWidgetAction.type,function*(e){try{var{widgetConfig:t={},widgetName:n,elementId:r}=null==e?void 0:e.payload,i=(yield call$j(l,n))||(()=>jsxRuntime.exports.jsx("div",{children:"Component Not Found."})),o=getElement(r,n);o.classList.add("aiware-el"),s[r]?a=s[r]:(a=client$1.createRoot(o),s[r]=a),a.render(jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider$1,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$7},{children:jsxRuntime.exports.jsx(i,Object.assign({},t))}))})})),yield put(mountWidgetSuccess())}catch(e){yield put(mountWidgetError())}}),yield takeEvery$1(e=>/\/booted$/.test(e.type),function*(e){var[e]=e.type.split("/");yield put(triggerWidgetCallback(e))}),yield takeEvery$1(unmountWidgetAction.type,function*(t){try{const e=yield select(e=>{return(null==(e=widgetsSelector(e).find(e=>e.widgetId===t.payload))?void 0:e.elementId)||""});setTimeout(()=>{s[e]&&s[e].unmount(),delete s[e]}),yield put(unmountWidgetSuccess(t.payload))}catch(e){yield put(unmountWidgetFailure())}}),yield takeEvery$1(triggerWidgetCallback("").type,function*(e){var t=yield select(widgetsSelector);callWidgetOnComplete(t,e.payload),yield put(triggerWidgetCallbackSuccess())})};function getWidgetsModule(e){return{id:name,reducerMap:{[name]:reducer},sagas:[mountWidgetListenerFactory(e)],initialActions:[]}}const mountWidget=(e,t)=>{var n=getUniqueID(),{name:e,elementId:r,config:i}=e;return e&&r&&i||console.error("[aiwarejs-error]: `mountWidget` function should include all the following params: name, elementId, config"),store$7.dispatch(mountWidgetAction({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n},unmountWidget=e=>(store$7.dispatch(unmountWidgetAction(e)),!0);function getDataModule(){return{id:"data",reducerMap:{data:(e,{type:t,payload:n})=>{return t===setData({}).type?[...e.filter(e=>e.id!==n.id),n]:e||[]}},sagas:[],initialActions:[]}}function handleEvents(n){function r(e){if(!e||"string"!=typeof e)throw new SdkError("Please provide a valid event name!");if(!SdkEvents[e])throw new SdkError("Unknown event: "+e)}return{on:function(e,t){r(e),n.on.call(n,e,t)},off:function(e){r(e),n.off.call(n,e)}}}const useStyles$1$3=makeStyles()(e=>({sdkSnackbarContainer:{"& svg":{fill:"white"}}}));function CustomSnackbar(){const n=useDispatch(),[e,t]=react$1.exports.useState([]),[r,i]=react$1.exports.useState(!1),[o,a]=react$1.exports.useState(void 0),{message:s,duration:l}=useSelector(snackbarSelector);var c=useStyles$1$3()["classes"],u=(react$1.exports.useEffect(()=>{null!==s&&void 0!==s&&s.content&&t(e=>[...e,s])},[s]),react$1.exports.useEffect(()=>{e.length&&!o?(a(Object.assign({},e[0])),t(e=>e.slice(1)),i(!0)):e.length&&o&&r&&(n(clearMessage()),i(!1))},[e,o,r,n]),(e,t)=>{"clickaway"!==t&&(i(!1),n(clearMessage()))});return jsxRuntime.exports.jsx(Snackbar$1,Object.assign({anchorOrigin:{vertical:"bottom",horizontal:"right"},open:r,autoHideDuration:l||3e3,onClose:u,TransitionProps:{onExited:()=>{a(void 0),n(clearMessage())}},className:c.sdkSnackbarContainer,"data-snackbarid":(null===o||void 0===o?void 0:o.key)||"na","data-testid":"snackbar.message."+((null===o||void 0===o?void 0:o.severity)||"na")},{children:jsxRuntime.exports.jsx(Alert$1,Object.assign({onClose:u,severity:null===o||void 0===o?void 0:o.severity,elevation:6,variant:"filled"},{children:null===o||void 0===o?void 0:o.content}))}),o?o.key:void 0)}const useStyles$l=makeStyles()(()=>({dialog:{top:"125px",overflowX:"hidden",overflowY:"hidden",display:"flex",alignItems:"center",flexDirection:"column"},container:{borderRadius:"4px",backgroundColor:"#fff",width:"430px",overflow:"hidden",outline:0,boxShadow:"0px 0px 7px rgba(0, 0, 0, .25)"},header:{textTransform:"capitalize"},appListContainer:{width:"100%"},orgName:{fontWeight:"bold"}})),ApplicationDialog=()=>{const[e,t]=react$1.exports.useState(null),[n,r]=react$1.exports.useState(0);var i=useSelector(userSelector$2),o=useStyles$l()["classes"];const a=useSelector(initialConfigSelector),s=a.applicationId,l=useSelector(applicationSelector),c=useSelector(switchApiSelector);var u=(null===l||void 0===l?void 0:l.application)||[],d=null===l||void 0===l?void 0:l.status;var p=[...u].sort(function(e,t){return(null==e?void 0:e.name)>(null==t?void 0:t.name)?1:(null==e?void 0:e.name)<(null==t?void 0:t.name)?-1:0}),f=u.findIndex(e=>e.id===s);useInterval(()=>{t(e=>e&&e-1)},e&&n<3?1e3:null),react$1.exports.useEffect(()=>{"success"!==(null===l||void 0===l?void 0:l.status)||1!==(null===l||void 0===l?void 0:l.application.length)||(null===l||void 0===l?void 0:l.application[0].id)===a.applicationId||e||(0===e?window.open(c+"/"+(null===l||void 0===l?void 0:l.application[0].id),"_self"):t(10))},[a,l,c,e]);return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(s)&&f<0&&"success"===d?jsxRuntime.exports.jsx(Modal$1,Object.assign({className:o.dialog,open:!0},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.container},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"application-dialog-title",className:o.header,variant:"h1",sx:{px:"30px",pt:"30px"}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-title",defaultMessage:"Application Not Available",description:"Title for modal"})})),jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"10px"}},{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message1",defaultMessage:"Looks like you switched organizations, your current application is not available in the current",description:"Description current application not available"})," ",jsxRuntime.exports.jsx("span",Object.assign({className:o.orgName},{children:null!=(f=null==i?void 0:i.organization)&&f.organizationName?i.organization.organizationName:""}))," ",jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message2",defaultMessage:"organization you are viewing.",description:"Description current application not available"})]})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message3",defaultMessage:"Please select from the available applications below to be redirected.",description:"Instructions for current application not available"})})),e&&jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"},onClick:()=>{r(e=>e+1)}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-countdown-message",defaultMessage:"You will be automatically forwarded to {appName} in {timeRemaining} seconds.",description:"Instructions for current application not available",values:{timeRemaining:e,appName:null==(d=u[0])?void 0:d.name}})})),jsxRuntime.exports.jsx("div",Object.assign({className:o.appListContainer},{children:jsxRuntime.exports.jsx(AppList,{title:"",selectedAppId:null,onSelectApplication:e=>{window.open(c+"/"+e,"_self")},applications:p,useGrid:!1,row:3})}))]}))})):null};function ApplicationDialogPreLoader(){var e=useSelector(authSelector);return null!=(e=null==e?void 0:e.user)&&e.token?jsxRuntime.exports.jsx(ApplicationDialog,{}):null}const ThemeInitializer=()=>(useTheme(),null),AppBarPreLoader=({store:e,onLoad:t})=>{var n=useSelector(authSelector);return null!=(n=null==n?void 0:n.user)&&n.token&&setTimeout(()=>{t(),e.addModules([getAppbarPanelModule()])},0),null},ID="openSupportChatButton",DATA_ATTR="open-support-chat-button";var SupportCenterPixel=()=>jsxRuntime.exports.jsx(Portal$1,{children:jsxRuntime.exports.jsx("div",{id:ID,"data-veritone-element":DATA_ATTR,style:{width:1,height:1,position:"fixed",right:55,bottom:20}})});const Preloader=({store:e})=>{const[t,n]=react$1.exports.useState(!1);return jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsxs(AIWareThemeProvider$1,{children:[jsxRuntime.exports.jsx(SupportCenterPixel,{}),jsxRuntime.exports.jsx(Provider$2,Object.assign({store:e},{children:jsxRuntime.exports.jsxs(AIWareIntlProvider,{children:[t&&jsxRuntime.exports.jsx(ApplicationDialogPreLoader,{}),!t&&jsxRuntime.exports.jsx(AppBarPreLoader,{store:e,onLoad:()=>{n(!0)}}),jsxRuntime.exports.jsx(CustomSnackbar,{})]})})),!t&&jsxRuntime.exports.jsx(ThemeInitializer,{})]})})};class RateLimiter{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}}const rateLimiter=new RateLimiter,createAuthHelpers=t=>({updateToken(e){e?t.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{t.dispatch(logout$1())},1e3)):t.dispatch(logout$1())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&t.dispatch(updateActivityStatus$1())}}),helpCenter=()=>{var e=new HelpCenter({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}},dataCenter=()=>{var e=new DataCenter;return{openImporterPanel:e.openImporterPanel.bind(e)}},unmountPanel=t=>e=>(t.dispatch(unmountPanel$1(e)),!0),hidePanel=t=>e=>(t.dispatch(hidePanel$1(e)),!0),mountPanel=o=>(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:r}=e;o.dispatch(mountPanel$1({microFrontend:e,panelId:n,panelConfig:r}));const i=[...(null==(e=null==r?void 0:r.header)?void 0:e.actions)||[],...(null==(e=null==r?void 0:r.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);r={id:n,sagas:[function*(){yield takeEvery$1(i.map(e=>e.type),function*(){var e=(yield select(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return o.addModule(r),n},mountPanelForResponse=t=>e=>mountPanelForResponse$1(e,t),attachSdkToWindow=e=>{var{init:e,store:t,aiwareEvents:n,registrySet:r}=e;!window||void 0!==window.aiware&&0!==Object.keys(window.aiware).length||(window.aiware={init:e,store:t,auth:createAuthHelpers(t),helpCenter:helpCenter(),dataCenter:dataCenter(),on:n.on,off:n.off,hidePanel:hidePanel(t),unmountPanel:unmountPanel(t),mountPanel:mountPanel(t),mountPanelForResponse:mountPanelForResponse(t),registry:r.registry,registryLookup:r.registryLookup,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,unmountWidget:unmountWidget,version:"undefined",commit:"7a647a991",releaseDate:"2023-10-20T22:50:23.211Z"})},checkAndDecodeBase64String=t=>{if(null==t||!t.trim())return t;try{return window.btoa(window.atob(t))==t?window.atob(t):t}catch(e){return t}},bootstrapSdk=e=>{var t=(null==e?void 0:e.registry)||{},n=(null==e?void 0:e.registryLookup)||Promise.resolve(null),r=handleEvents(sdkEventManager),i=store$7.getState(),n=(null!=i&&i.widgets||(store$7.addModules([getWidgetsModule(n),getPanelsModule(t,n),getDataModule(),getConfigModule(),getAuthModule(sdkEventManager),getPermissionsModule(),getSnackbarModule()]),(i=getElement("aiWARE")).classList.add("aiware-el"),t=client$1.createRoot(i),"_auth"===window.name?handleImplicitRedirect(window.location.hash,window.opener):t.render(jsxRuntime.exports.jsx(Preloader,{store:store$7}))),(e,t)=>{var n;"idle"===store$7.getState().configs.status&&((e=validateConfig(e))?(n=e["authToken"],n=checkAndDecodeBase64String(n||""),store$7.dispatch(getInitConfig(Object.assign(Object.assign({},e),{authToken:n,onComplete:t})))):console.error("@aiware/js initialization failed. Please pass valid configuration object."))});return attachSdkToWindow({init:n,store:store$7,aiwareEvents:r,registrySet:e}),{store:store$7,aiwareEvents:r,init:n}};var Et=Object.create,Ye=Object.defineProperty,bt=Object.getOwnPropertyDescriptor,gt=Object.getOwnPropertyNames,yt=Object.getPrototypeOf,wt=Object.prototype.hasOwnProperty,Lt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Pt=(t,n,r,i)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let e of gt(n))wt.call(t,e)||e===r||Ye(t,e,{get:()=>n[e],enumerable:!(i=bt(n,e))||i.enumerable});return t},St=(e,t,n)=>(n=null!=e?Et(yt(e)):{},Pt(!t&&e&&e.__esModule?n:Ye(n,"default",{value:e,enumerable:!0}),e)),je=Lt((e,t)=>{var n,r;r=function(e){function t(e){var t=o.get(e),n=void 0===t?e.size:t<1073741824?t+1:0;if(e.has(n))if(e.size<536870912)for(;e.has(n);)n=Math.floor(1073741824*Math.random());else{if(e.size>s)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(n);)n=Math.floor(Math.random()*s)}return i(e,n)}function n(e){var t=r(e);return e.add(t),t}var r,i,o,a,s=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,l=new WeakMap;i=function(e,t){return a.set(e,t),t},o=a=l,r=t;e.addUniqueNumber=n,e.generateUniqueNumber=t},"object"==typeof(n=e)&&typeof t<"u"?r(e):"function"==typeof define&&define.amd?define(["exports"],r):r((n=typeof globalThis<"u"?globalThis:n||self).fastUniqueNumbers={})}),M$1=(St(je()),"object"==("u"<typeof window?"undefined":typeof window)),I$1={setTimeout:M$1?setTimeout.bind(window):setTimeout,clearTimeout:M$1?clearTimeout.bind(window):clearTimeout,setInterval:M$1?setInterval.bind(window):setInterval,clearInterval:M$1?clearInterval.bind(window):clearInterval};function it(e){I$1.setTimeout=e.setTimeout,I$1.clearTimeout=e.clearTimeout,I$1.setInterval=e.setInterval,I$1.clearInterval=e.clearInterval}var Q$1={},Ae=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,Q$1[e]=Q$1[e]||[],Q$1[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){e.storageArea===window.localStorage&&e.key.substring(0,this.name.length)===this.name&&null!==e.newValue&&(e=JSON.parse(e.newValue),this.mc.port2.postMessage(e))}postMessage(e){if(this.closed)throw new Error("InvalidStateError");let t=JSON.stringify(e),n=this.name+":"+String(Date.now())+String(Math.random());window.localStorage.setItem(n,t),I$1.setTimeout(()=>{window.localStorage.removeItem(n)},500),Q$1[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){var e;this.closed||(this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage),e=Q$1[this.name].indexOf(this),Q$1[this.name].splice(e,1))}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},st="u"<typeof window?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:Ae;function ot(t=0){return new Promise(e=>I$1.setTimeout(e,t))}function Te(){return Math.random().toString(36).substring(2)}var Ie=class{options;channel;token=Te();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return!(this.reApply=!0);let n=!(this.isApplying=!0),e=e=>{var{token:e,action:t}=e.data;e!==this.token&&(0===t&&e>this.token&&(n=!0),1===t)&&(n=!0)};this.channel.addEventListener("message",e);try{return this.sendAction(0),await ot(this.options.responseTime),this.channel.removeEventListener("message",e),this.isApplying=!1,n?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let i=!1,o=null;return new Promise(t=>{let n=()=>{if(!i){i=!0;try{I$1.clearInterval(o)}catch{}var e=this.intervals.indexOf(o);0<=e&&this.intervals.splice(e,1),this.channel.removeEventListener("message",r),t()}},r=(o=I$1.setInterval(()=>{this.apply().then(()=>{this.isLeader&&n()})},this.options.fallbackInterval),this.intervals.push(o),e=>{e=e.data.action;2===e&&this.apply().then(()=>{this.isLeader&&n()})});this.channel.addEventListener("message",r)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;var e=e=>{e=e.data.action;0===e&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership(),this.deferred)}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>I$1.clearInterval(e))}catch{}}}},Ee=class{channel;options;elector;token=Te();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){var t=e["channelName"];this.options=e,this.channel=new st(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new Ie(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{var{action:e,token:t,data:n}=e.data;switch(e){case 3:this.registry.set(t,2);break;case 4:this.registry.delete(t);break;case 5:this.idle(t);break;case 6:this.active(t);break;case 7:this.prompt(t);break;case 8:this.start(t);break;case 9:this.reset(t);break;case 10:this.activate(t);break;case 11:this.pause(t);break;case 12:this.resume(t);break;case 13:this.options.onMessage(n)}}),this.send(3)}get isLeader(){if(this.elector)return this.elector.isLeader;throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.')}prompt(e=this.token){this.registry.set(e,0);var t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);var t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);var t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},at=M$1?document:null,xe=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function ct(t,n){let r;function e(...e){r&&clearTimeout(r),r=setTimeout(()=>{t(...e),r=null},n)}return e.cancel=function(){clearTimeout(r)},e}function be(n,r){let i=0;return function(...e){var t=(new Date).getTime();if(!(t-i<r))return i=t,n(...e)}}var v$1=()=>Date.now(),Z=2147483647;function se({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:L=at,events:N=xe,timers:D=void 0,immediateEvents:r=[],onPresenceChange:F=()=>{},onPrompt:V=()=>{},onIdle:H=()=>{},onActive:B=()=>{},onAction:U=()=>{},onMessage:i=()=>{},debounce:o=0,throttle:a=0,eventsThrottle:z=200,startOnMount:s=!0,startManually:l=!1,stopOnIdle:W=!1,crossTab:c=!1,name:G="idle-timer",syncTimers:u=0,leaderElection:q=!1,disabled:d=!1}={}){let K=react$1.exports.useRef(v$1()),Y=react$1.exports.useRef(v$1()),p=react$1.exports.useRef(null),f=react$1.exports.useRef(null),h=react$1.exports.useRef(0),m=react$1.exports.useRef(0),g=react$1.exports.useRef(0),y=react$1.exports.useRef(0),$=react$1.exports.useRef(!1),v=react$1.exports.useRef(!1),x=react$1.exports.useRef(!1),b=react$1.exports.useRef(!0),Q=react$1.exports.useRef(!1),C=react$1.exports.useRef(null),S=react$1.exports.useRef(null),w=react$1.exports.useRef(e),_=react$1.exports.useRef(0),X=(react$1.exports.useEffect(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(Z<=e)throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${Z}.`);if(Z<=t)throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${Z}.`);if(Z<=n)throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${Z}.`);if(e<=n)throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);n?(w.current=e-n,_.current=n):(w.current=e,_.current=t),b.current||l||d||($.current&&(E.current(null,P),S.current)&&S.current.active(),M())},[e,t,n,l,d]),react$1.exports.useRef(W)),J=(react$1.exports.useEffect(()=>{X.current=W},[W]),react$1.exports.useRef(r)),ee=react$1.exports.useRef(L),te=react$1.exports.useRef([...new Set([...N,...r]).values()]),T=react$1.exports.useRef(d),ne=(react$1.exports.useEffect(()=>{T.current=d,b.current||(d?me():l||M())},[d]),react$1.exports.useRef(F)),re=(react$1.exports.useEffect(()=>{ne.current=F},[F]),react$1.exports.useRef(V)),ie=(react$1.exports.useEffect(()=>{re.current=V},[V]),react$1.exports.useRef(H)),E=(react$1.exports.useEffect(()=>{ie.current=H},[H]),react$1.exports.useRef(B)),oe=(react$1.exports.useEffect(()=>{E.current=B},[B]),react$1.exports.useRef(U)),j=(react$1.exports.useEffect(()=>{oe.current=U},[U]),react$1.exports.useRef(i)),I=(react$1.exports.useEffect(()=>{j.current=i},[i]),react$1.exports.useMemo(()=>{var e=(e,t)=>oe.current(e,t);return 0<o?ct(e,o):0<a?be(e,a):e},[a,o])),ae=react$1.exports.useRef(),R=(react$1.exports.useEffect(()=>{c&&u&&(ae.current=be(()=>{S.current.active()},u))},[c,u]),()=>{null!==C.current&&(I$1.clearTimeout(C.current),C.current=null)}),O=(e,t=!0)=>{R(),C.current=I$1.setTimeout(ue,e||w.current),t&&(f.current=v$1())},se=e=>{v.current||$.current||(re.current(e,P),ne.current({type:"active",prompted:!0},P)),y.current=0,g.current=v$1(),v.current=!0,O(_.current,!1)},le=()=>{R(),$.current||(ie.current(null,P),ne.current({type:"idle"},P)),$.current=!0,p.current=v$1(),X.current?k():v.current&&(g.current=0,v.current=!1)},ce=e=>{R(),($.current||v.current)&&(E.current(e,P),ne.current({type:"active",prompted:!1},P)),v.current=!1,g.current=0,$.current=!1,h.current+=v$1()-p.current,m.current+=v$1()-p.current,A(),O()},ue=e=>{var t;if(!$.current)return I.cancel&&I.cancel(),t=v$1()-f.current,w.current+_.current<t||!(0<_.current)||v.current?void(S.current?S.current.idle():le()):void(S.current?S.current.prompt():se(e));S.current?S.current.active():ce(e)},de=e=>{var t;s||f.current||(f.current=v$1(),E.current(null,P)),I(e,P),v.current||(R(),!$.current&&J.current.includes(e.type)||(t=v$1()-f.current,$.current&&!W)||!$.current&&t>=w.current?ue(e):(x.current=!1,y.current=0,g.current=0,O(),c&&u&&ae.current()))},pe=react$1.exports.useRef(de),A=(react$1.exports.useEffect(()=>{var e=Q.current;e&&k(),pe.current=0<z?be(de,z):de,e&&A()},[z,a,o,oe,c,u]),()=>{M$1&&ee.current&&(Q.current||(te.current.forEach(e=>{ee.current.addEventListener(e,pe.current,{capture:!0,passive:!0})}),Q.current=!0))}),k=(e=!1)=>{M$1&&ee.current&&(Q.current||e)&&(te.current.forEach(e=>{ee.current.removeEventListener(e,pe.current,{capture:!0})}),Q.current=!1)},M=react$1.exports.useCallback(e=>!T.current&&(R(),A(),$.current=!1,v.current=!1,x.current=!1,y.current=0,g.current=0,S.current&&!e&&S.current.start(),O(),!0),[C,$,T,w,S]),fe=react$1.exports.useCallback(e=>!T.current&&(R(),A(),Y.current=v$1(),h.current+=v$1()-p.current,m.current+=v$1()-p.current,h.current=0,$.current=!1,v.current=!1,x.current=!1,y.current=0,g.current=0,S.current&&!e&&S.current.reset(),l||O(),!0),[C,$,w,l,T,S]),he=react$1.exports.useCallback(e=>!T.current&&(R(),A(),($.current||v.current)&&ce(),$.current=!1,v.current=!1,x.current=!1,y.current=0,g.current=0,Y.current=v$1(),S.current&&!e&&S.current.activate(),O(),!0),[C,$,v,T,w,S]),me=react$1.exports.useCallback((e=!1)=>!T.current&&!x.current&&(y.current=_e(),x.current=!0,k(),R(),S.current&&!e&&S.current.pause(),!0),[C,T,S]),ge=react$1.exports.useCallback((e=!1)=>!(T.current||!x.current||(x.current=!1,v.current||A(),$.current||O(y.current),g.current&&(g.current=v$1()),S.current&&!e&&S.current.resume(),0)),[C,w,T,y,S]),ye=react$1.exports.useCallback((e,t)=>(S.current?(t&&j.current(e,P),S.current.message(e)):t&&j.current(e,P),!0),[i]),$e=react$1.exports.useCallback(()=>$.current,[$]),ve=react$1.exports.useCallback(()=>v.current,[v]),Ce=react$1.exports.useCallback(()=>S.current?S.current.isLeader:null,[S]),Se=react$1.exports.useCallback(()=>S.current?S.current.isLastActive:null,[S]),we=react$1.exports.useCallback(()=>S.current?S.current.token:null,[S]),_e=react$1.exports.useCallback(()=>{var e,t;return x.current?y.current:(t=y.current||_.current+w.current,e=f.current?v$1()-f.current:0,(t=Math.floor(t-e))<0?0:Math.abs(t))},[w,_,v,y,f]),Te=react$1.exports.useCallback(()=>Math.round(v$1()-Y.current),[Y]),je=react$1.exports.useCallback(()=>Math.round(v$1()-K.current),[K]),Ie=react$1.exports.useCallback(()=>p.current?new Date(p.current):null,[p]),Re=react$1.exports.useCallback(()=>f.current?new Date(f.current):null,[f]),Oe=react$1.exports.useCallback(()=>$.current?Math.round(v$1()-p.current+h.current):Math.round(h.current),[p,h]),Ae=react$1.exports.useCallback(()=>$.current?Math.round(v$1()-p.current+m.current):Math.round(m.current),[p,m]),ke=react$1.exports.useCallback(()=>{var e=Math.round(Te()-Oe());return 0<=e?e:0},[p,h]),Me=react$1.exports.useCallback(()=>{var e=Math.round(je()-Ae());return 0<=e?e:0},[p,h]),P=(react$1.exports.useEffect(()=>{if(0<o&&0<a)throw new Error("❌ onAction can either be throttled or debounced, not both.");D&&it(D);let e=()=>{S.current&&S.current.close(),I.cancel&&I.cancel(),R(),k(!0)};return M$1&&window.addEventListener("beforeunload",e),()=>{M$1&&window.removeEventListener("beforeunload",e),S.current&&S.current.close(),I.cancel&&I.cancel(),R(),k(!0)}},[]),react$1.exports.useEffect(()=>{S.current&&S.current.close(),S.current=c?new Ee({channelName:G,leaderElection:q,onPrompt:()=>{se()},onIdle:()=>{le()},onActive:()=>{ce()},onMessage:e=>{j.current(e,P)},start:M,reset:fe,activate:he,pause:me,resume:ge}):null},[c,G,q,re,ie,E,j,M,fe,me,ge]),react$1.exports.useEffect(()=>{b.current||(R(),k(!0)),l||d||(s?M:A)()},[l,s,d,b]),react$1.exports.useEffect(()=>{var e;b.current||(e=[...new Set([...N,...r]).values()],k(),te.current=e,ee.current=L,J.current=r,l)||d||(s?M:A)()},[L,JSON.stringify(N),JSON.stringify(r),b,d,l,s]),react$1.exports.useEffect(()=>{b.current&&(b.current=!1)},[b]),{message:ye,start:M,reset:fe,activate:he,pause:me,resume:ge,isIdle:$e,isPrompted:ve,isLeader:Ce,isLastActiveTab:Se,getTabId:we,getRemainingTime:_e,getElapsedTime:Te,getTotalElapsedTime:je,getLastIdleTime:Ie,getLastActiveTime:Re,getIdleTime:Oe,getTotalIdleTime:Ae,getActiveTime:ke,getTotalActiveTime:Me,setOnPresenceChange:e=>{F=e,ne.current=e},setOnPrompt:e=>{V=e,re.current=e},setOnIdle:e=>{H=e,ie.current=e},setOnActive:e=>{B=e,E.current=e},setOnAction:e=>{U=e,oe.current=e},setOnMessage:e=>{i=e,j.current=e}});return P}var match$1,version$1,set$1$1,get$1,store$5,STATE$1,$location$1,defer$1,channel$1,port$1,toggle$1,node$1,promise$1,then$1,queue$3,flush$1,notify$1$1,Internal$1,OwnPromiseCapability$1,PromiseWrapper$1,nativeThen$1,ge=react$1.exports.createContext(null),tinycolor$1=(ge.Consumer,{exports:{}}),tinycolor=(!function(e){function u(e,t){var n;return t=t||{},(e=e||"")instanceof u?e:this instanceof u?(n=function(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;"string"==typeof e&&(e=function(e){e=e.replace(S,"").replace(w,"").toLowerCase();var t,n=!1;if(R[e])e=R[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=P.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=P.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=P.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=P.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=P.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=P.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=P.hex8.exec(e))return{r:g(t[1]),g:g(t[2]),b:g(t[3]),a:x(t[4]),format:n?"name":"hex8"};if(t=P.hex6.exec(e))return{r:g(t[1]),g:g(t[2]),b:g(t[3]),format:n?"name":"hex"};if(t=P.hex4.exec(e))return{r:g(t[1]+""+t[1]),g:g(t[2]+""+t[2]),b:g(t[3]+""+t[3]),a:x(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=P.hex3.exec(e))return{r:g(t[1]+""+t[1]),g:g(t[2]+""+t[2]),b:g(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(b(e.r)&&b(e.g)&&b(e.b)?(t=function(e,t,n){return{r:255*h(e,255),g:255*h(t,255),b:255*h(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):b(e.h)&&b(e.s)&&b(e.v)?(r=$(e.s),i=$(e.v),t=function(e,t,n){e=6*h(e,360),t=h(t,100),n=h(n,100);var r=C.floor(e),e=e-r,i=n*(1-t),o=n*(1-e*t),e=n*(1-(1-e)*t),t=r%6;return{r:255*[n,o,i,i,e,n][t],g:255*[e,n,n,o,i,i][t],b:255*[i,i,e,n,n,o][t]}}(e.h,r,i),a=!0,s="hsv"):b(e.h)&&b(e.s)&&b(e.l)&&(r=$(e.s),o=$(e.l),t=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}e=h(e,360),t=h(t,100),n=h(n,100),0===t?r=i=o=n:(r=a(t=2*n-(n=n<.5?n*(1+t):n+t-n*t),n,e+1/3),i=a(t,n,e),o=a(t,n,e-1/3));return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a"))&&(n=e.a);return n=f(n),{ok:a,format:e.format||s,r:E(255,j(t.r,0)),g:E(255,j(t.g,0)),b:E(255,j(t.b,0)),a:n}}(e),this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=T(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=T(this._r)),this._g<1&&(this._g=T(this._g)),this._b<1&&(this._b=T(this._b)),this._ok=n.ok,void(this._tc_id=_++)):new u(e,t)}function r(e,t,n){e=h(e,255),t=h(t,255),n=h(n,255);var r,i=j(e,t,n),o=E(e,t,n),a=(i+o)/2;if(i==o)r=l=0;else{var s=i-o,l=.5<a?s/(2-i-o):s/(i+o);switch(i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:l,l:a}}function i(e,t,n){e=h(e,255),t=h(t,255),n=h(n,255);var r,i=j(e,t,n),o=E(e,t,n),a=i,s=i-o,l=0===i?0:s/i;if(i==o)r=0;else{switch(i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:l,v:a}}function t(e,t,n,r){e=[y(T(e).toString(16)),y(T(t).toString(16)),y(T(n).toString(16))];return r&&e[0].charAt(0)==e[0].charAt(1)&&e[1].charAt(0)==e[1].charAt(1)&&e[2].charAt(0)==e[2].charAt(1)?e[0].charAt(0)+e[1].charAt(0)+e[2].charAt(0):e.join("")}function o(e,t,n,r){return[y(v(r)),y(T(e).toString(16)),y(T(t).toString(16)),y(T(n).toString(16))].join("")}function n(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.s-=t/100,e.s=m(e.s),u(e)}function a(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.s+=t/100,e.s=m(e.s),u(e)}function s(e){return u(e).desaturate(100)}function l(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.l+=t/100,e.l=m(e.l),u(e)}function c(e,t){t=0===t?0:t||10;e=u(e).toRgb();return e.r=j(0,E(255,e.r-T(-t/100*255))),e.g=j(0,E(255,e.g-T(-t/100*255))),e.b=j(0,E(255,e.b-T(-t/100*255))),u(e)}function d(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.l-=t/100,e.l=m(e.l),u(e)}function p(e,t){e=u(e).toHsl(),t=(e.h+t)%360;return e.h=t<0?360+t:t,u(e)}function L(e){e=u(e).toHsl();return e.h=(e.h+180)%360,u(e)}function N(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+120)%360,s:t.s,l:t.l}),u({h:(n+240)%360,s:t.s,l:t.l})]}function D(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+90)%360,s:t.s,l:t.l}),u({h:(n+180)%360,s:t.s,l:t.l}),u({h:(n+270)%360,s:t.s,l:t.l})]}function F(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+72)%360,s:t.s,l:t.l}),u({h:(n+216)%360,s:t.s,l:t.l})]}function V(e,t,n){t=t||6,n=n||30;var r=u(e).toHsl(),i=360/n,o=[u(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(u(r));return o}function H(e,t){t=t||6;for(var e=u(e).toHsv(),n=e.h,r=e.s,i=e.v,o=[],a=1/t;t--;)o.push(u({h:n,s:r,v:i})),i=(i+a)%1;return o}function f(e){return e=parseFloat(e),e=isNaN(e)||e<0||1<e?1:e}function h(e,t){"string"==typeof(n=e)&&-1!=n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var n="string"==typeof(n=e)&&-1!=n.indexOf("%");return e=E(t,j(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),C.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function m(e){return E(1,j(0,e))}function g(e){return parseInt(e,16)}function y(e){return 1==e.length?"0"+e:""+e}function $(e){return e=e<=1?100*e+"%":e}function v(e){return C.round(255*parseFloat(e)).toString(16)}function x(e){return g(e)/255}function b(e){return P.CSS_UNIT.exec(e)}var C,S,w,_,T,E,j,I,R,O,A,k,M,P;C=Math,S=/^\s+/,w=/\s+$/,_=0,T=C.round,E=C.min,j=C.max,I=C.random,u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,e=e.b/255,t=t<=.03928?t/12.92:C.pow((.055+t)/1.055,2.4),n=n<=.03928?n/12.92:C.pow((.055+n)/1.055,2.4),e=e<=.03928?e/12.92:C.pow((.055+e)/1.055,2.4);return.2126*t+.7152*n+.0722*e},setAlpha:function(e){return this._a=f(e),this._roundA=T(100*this._a)/100,this},toHsv:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=i(this._r,this._g,this._b),t=T(360*e.h),n=T(100*e.s),e=T(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+e+"%)":"hsva("+t+", "+n+"%, "+e+"%, "+this._roundA+")"},toHsl:function(){var e=r(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=r(this._r,this._g,this._b),t=T(360*e.h),n=T(100*e.s),e=T(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+e+"%)":"hsla("+t+", "+n+"%, "+e+"%, "+this._roundA+")"},toHex:function(e){return t(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t=this._r,n=this._g,r=this._b,i=this._a;return t=[y(T(t).toString(16)),y(T(n).toString(16)),y(T(r).toString(16)),y(v(i))],e&&t[0].charAt(0)==t[0].charAt(1)&&t[1].charAt(0)==t[1].charAt(1)&&t[2].charAt(0)==t[2].charAt(1)&&t[3].charAt(0)==t[3].charAt(1)?t[0].charAt(0)+t[1].charAt(0)+t[2].charAt(0)+t[3].charAt(0):t.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:T(this._r),g:T(this._g),b:T(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+T(this._r)+", "+T(this._g)+", "+T(this._b)+")":"rgba("+T(this._r)+", "+T(this._g)+", "+T(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:T(100*h(this._r,255))+"%",g:T(100*h(this._g,255))+"%",b:T(100*h(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+T(100*h(this._r,255))+"%, "+T(100*h(this._g,255))+"%, "+T(100*h(this._b,255))+"%)":"rgba("+T(100*h(this._r,255))+"%, "+T(100*h(this._g,255))+"%, "+T(100*h(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&O[t(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+o(this._r,this._g,this._b,this._a),n=t;return"progid:DXImageTransform.Microsoft.gradient("+(this._gradientType?"GradientType = 1, ":"")+"startColorstr="+t+",endColorstr="+(n=e?"#"+o((t=u(e))._r,t._g,t._b,t._a):n)+")"},toString:function(e){var t=!!e,n=(e=e||this._format,!1),r=this._a<1&&0<=this._a;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),(n="hsv"===e?this.toHsvString():n)||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return u(this.toString())},_applyModification:function(e,t){e=e.apply(null,[this].concat([].slice.call(t)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(c,arguments)},darken:function(){return this._applyModification(d,arguments)},desaturate:function(){return this._applyModification(n,arguments)},saturate:function(){return this._applyModification(a,arguments)},greyscale:function(){return this._applyModification(s,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(V,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination(H,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(N,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},u.fromRatio=function(e,t){if("object"==typeof e){var n,r={};for(n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:$(e[n]));e=r}return u(e,t)},u.equals=function(e,t){return!(!e||!t)&&u(e).toRgbString()==u(t).toRgbString()},u.random=function(){return u.fromRatio({r:I(),g:I(),b:I()})},u.mix=function(e,t,n){n=0===n?0:n||50;e=u(e).toRgb(),t=u(t).toRgb(),n/=100;return u({r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b,a:(t.a-e.a)*n+e.a})},u.readability=function(e,t){e=u(e),t=u(t);return(C.max(e.getLuminance(),t.getLuminance())+.05)/(C.min(e.getLuminance(),t.getLuminance())+.05)},u.isReadable=function(e,t,n){var r=u.readability(e,t),i=!1,e=function(e){var t;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),e=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==e&&"large"!==e&&(e="small");return{level:t,size:e}}(n);switch(e.level+e.size){case"AAsmall":case"AAAlarge":i=4.5<=r;break;case"AAlarge":i=3<=r;break;case"AAAsmall":i=7<=r}return i},u.mostReadable=function(e,t,n){for(var r,i=null,o=0,a=(n=n||{}).includeFallbackColors,s=n.level,l=n.size,c=0;c<t.length;c++)o<(r=u.readability(e,t[c]))&&(o=r,i=u(t[c]));return u.isReadable(e,i,{level:s,size:l})||!a?i:(n.includeFallbackColors=!1,u.mostReadable(e,["#fff","#000"],n))},R=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},O=u.hexNames=function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n}(R),k="[\\s|\\(]+("+(A="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",M="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",P={CSS_UNIT:new RegExp(A),rgb:new RegExp("rgb"+k),rgba:new RegExp("rgba"+M),hsl:new RegExp("hsl"+k),hsla:new RegExp("hsla"+M),hsv:new RegExp("hsv"+k),hsva:new RegExp("hsva"+M),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/},e.exports?e.exports=u:window.tinycolor=u}(tinycolor$1),tinycolor$1.exports),commonjsGlobal$1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check$1=function(e){return e&&e.Math==Math&&e},global$g=check$1("object"==typeof globalThis&&globalThis)||check$1("object"==typeof window&&window)||check$1("object"==typeof self&&self)||check$1("object"==typeof commonjsGlobal$1&&commonjsGlobal$1)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$1={},fails$e=function(e){try{return!!e()}catch(e){return!0}},descriptors$1=!fails$e(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),functionBindNative$1=!fails$e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3$1=functionBindNative$1,call$e=Function.prototype.call,functionCall$1=NATIVE_BIND$3$1?call$e.bind(call$e):function(){return call$e.apply(call$e,arguments)},objectPropertyIsEnumerable$1={},$propertyIsEnumerable$1={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$1=Object.getOwnPropertyDescriptor,NASHORN_BUG$1=getOwnPropertyDescriptor$2$1&&!$propertyIsEnumerable$1.call({1:2},1),createPropertyDescriptor$3=(objectPropertyIsEnumerable$1.f=NASHORN_BUG$1?function(e){return!!(e=getOwnPropertyDescriptor$2$1(this,e))&&e.enumerable}:$propertyIsEnumerable$1,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2$1=functionBindNative$1,FunctionPrototype$2$1=Function.prototype,call$d=FunctionPrototype$2$1.call,uncurryThisWithBind$1=NATIVE_BIND$2$1&&FunctionPrototype$2$1.bind.bind(call$d,call$d),functionUncurryThis$1=NATIVE_BIND$2$1?uncurryThisWithBind$1:function(e){return function(){return call$d.apply(e,arguments)}},uncurryThis$f=functionUncurryThis$1,toString$3=uncurryThis$f({}.toString),stringSlice$1$1=uncurryThis$f("".slice),classofRaw$2$1=function(e){return stringSlice$1$1(toString$3(e),8,-1)},fails$b=fails$e,classof$6=classofRaw$2$1,$Object$4=Object,split$1=functionUncurryThis$1("".split),indexedObject$1=fails$b(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$6(e)?split$1(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$4$1=function(e){return null==e},isNullOrUndefined$3$1=isNullOrUndefined$4$1,$TypeError$d=TypeError,requireObjectCoercible$3=function(e){if(isNullOrUndefined$3$1(e))throw $TypeError$d("Can't call method on "+e);return e},IndexedObject$1=indexedObject$1,requireObjectCoercible$2$1=requireObjectCoercible$3,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$2$1(e))},documentAll$2$1="object"==typeof document&&document.all,IS_HTMLDDA$1=void 0===documentAll$2$1&&void 0!==documentAll$2$1,documentAll_1$1={all:documentAll$2$1,IS_HTMLDDA:IS_HTMLDDA$1},$documentAll$1$1=documentAll_1$1,documentAll$1$1=$documentAll$1$1.all,isCallable$k=$documentAll$1$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1$1}:function(e){return"function"==typeof e},isCallable$j=isCallable$k,$documentAll$2=documentAll_1$1,documentAll$3=$documentAll$2.all,isObject$9=$documentAll$2.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$j(e)||e===documentAll$3}:function(e){return"object"==typeof e?null!==e:isCallable$j(e)},global$f$1=global$g,isCallable$i=isCallable$k,aFunction$1=function(e){return isCallable$i(e)?e:void 0},getBuiltIn$7$1=function(e,t){return arguments.length<2?aFunction$1(global$f$1[e]):global$f$1[e]&&global$f$1[e][t]},objectIsPrototypeOf$1=functionUncurryThis$1({}.isPrototypeOf),engineUserAgent$1="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$e$1=global$g,userAgent$3$1=engineUserAgent$1,process$4$1=global$e$1.process,Deno$1$1=global$e$1.Deno,versions$1=process$4$1&&process$4$1.versions||Deno$1$1&&Deno$1$1.version,v8$1=versions$1&&versions$1.v8,engineV8Version$1=version$1=!(version$1=v8$1?0<(match$1=v8$1.split("."))[0]&&match$1[0]<4?1:+(match$1[0]+match$1[1]):version$1)&&userAgent$3$1&&(!(match$1=userAgent$3$1.match(/Edge\/(\d+)/))||74<=match$1[1])&&(match$1=userAgent$3$1.match(/Chrome\/(\d+)/))?+match$1[1]:version$1,V8_VERSION$1$1=engineV8Version$1,fails$a$1=fails$e,symbolConstructorDetection$1=!!Object.getOwnPropertySymbols&&!fails$a$1(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$1&&V8_VERSION$1$1<41}),useSymbolAsUid$1=symbolConstructorDetection$1&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6$1=getBuiltIn$7$1,isCallable$h$1=isCallable$k,isPrototypeOf$2$1=objectIsPrototypeOf$1,$Object$3$1=Object,isSymbol$2$1=useSymbolAsUid$1?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6$1("Symbol");return isCallable$h$1(t)&&isPrototypeOf$2$1(t.prototype,$Object$3$1(e))},$String$4=String,tryToString$4$1=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$g$1=isCallable$k,tryToString$3$1=tryToString$4$1,$TypeError$c$1=TypeError,aCallable$8$1=function(e){if(isCallable$g$1(e))return e;throw $TypeError$c$1(tryToString$3$1(e)+" is not a function")},aCallable$7$1=aCallable$8$1,isNullOrUndefined$2$1=isNullOrUndefined$4$1,getMethod$3$1=function(e,t){return e=e[t],isNullOrUndefined$2$1(e)?void 0:aCallable$7$1(e)},call$c$1=functionCall$1,isCallable$f$1=isCallable$k,isObject$8=isObject$9,$TypeError$b$1=TypeError,ordinaryToPrimitive$1$1=function(e,t){var n,r;if("string"===t&&isCallable$f$1(n=e.toString)&&!isObject$8(r=call$c$1(n,e)))return r;if(isCallable$f$1(n=e.valueOf)&&!isObject$8(r=call$c$1(n,e)))return r;if("string"!==t&&isCallable$f$1(n=e.toString)&&!isObject$8(r=call$c$1(n,e)))return r;throw $TypeError$b$1("Can't convert object to primitive value")},shared$3$1={exports:{}},global$d$1=global$g,defineProperty$6=Object.defineProperty,defineGlobalProperty$3$1=function(t,n){try{defineProperty$6(global$d$1,t,{value:n,configurable:!0,writable:!0})}catch(e){global$d$1[t]=n}return n},defineGlobalProperty$2$1=defineGlobalProperty$3$1,SHARED$1="__core-js_shared__",store$3$1=global$g[SHARED$1]||defineGlobalProperty$2$1(SHARED$1,{}),sharedStore$1=store$3$1,store$2$1=sharedStore$1,requireObjectCoercible$1$1=((shared$3$1.exports=function(e,t){return store$2$1[e]||(store$2$1[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$3),$Object$2$1=Object,toObject$3=function(e){return $Object$2$1(requireObjectCoercible$1$1(e))},toObject$2=toObject$3,hasOwnProperty$1=functionUncurryThis$1({}.hasOwnProperty),hasOwnProperty_1$1=Object.hasOwn||function(e,t){return hasOwnProperty$1(toObject$2(e),t)},uncurryThis$b$1=functionUncurryThis$1,id$1=0,postfix$1=Math.random(),toString$2=uncurryThis$b$1(1..toString),uid$2$1=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$2(++id$1+postfix$1,36)},global$b$1=global$g,shared$2$1=shared$3$1.exports,hasOwn$9=hasOwnProperty_1$1,uid$1$1=uid$2$1,NATIVE_SYMBOL$2=symbolConstructorDetection$1,USE_SYMBOL_AS_UID$2=useSymbolAsUid$1,Symbol$1$1=global$b$1.Symbol,WellKnownSymbolsStore$1=shared$2$1("wks"),createWellKnownSymbol$1=USE_SYMBOL_AS_UID$2?Symbol$1$1.for||Symbol$1$1:Symbol$1$1&&Symbol$1$1.withoutSetter||uid$1$1,wellKnownSymbol$g=function(e){return hasOwn$9(WellKnownSymbolsStore$1,e)||(WellKnownSymbolsStore$1[e]=NATIVE_SYMBOL$2&&hasOwn$9(Symbol$1$1,e)?Symbol$1$1[e]:createWellKnownSymbol$1("Symbol."+e)),WellKnownSymbolsStore$1[e]},call$b$1=functionCall$1,isObject$7$1=isObject$9,isSymbol$1$1=isSymbol$2$1,getMethod$2$1=getMethod$3$1,ordinaryToPrimitive$2=ordinaryToPrimitive$1$1,$TypeError$a$1=TypeError,TO_PRIMITIVE$1=wellKnownSymbol$g("toPrimitive"),toPrimitive$1$1=function(e,t){if(!isObject$7$1(e)||isSymbol$1$1(e))return e;var n=getMethod$2$1(e,TO_PRIMITIVE$1);if(n){if(n=call$b$1(n,e,t=void 0===t?"default":t),!isObject$7$1(n)||isSymbol$1$1(n))return n;throw $TypeError$a$1("Can't convert object to primitive value")}return ordinaryToPrimitive$2(e,t=void 0===t?"number":t)},toPrimitive$2=toPrimitive$1$1,isSymbol$3=isSymbol$2$1,toPropertyKey$2$1=function(e){return e=toPrimitive$2(e,"string"),isSymbol$3(e)?e:e+""},isObject$6$1=isObject$9,document$3$1=global$g.document,EXISTS$1$1=isObject$6$1(document$3$1)&&isObject$6$1(document$3$1.createElement),documentCreateElement$2=function(e){return EXISTS$1$1?document$3$1.createElement(e):{}},createElement$1$1=documentCreateElement$2,ie8DomDefine$1=!descriptors$1&&!fails$e(function(){return 7!=Object.defineProperty(createElement$1$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$9=descriptors$1,call$a$1=functionCall$1,propertyIsEnumerableModule$1=objectPropertyIsEnumerable$1,createPropertyDescriptor$2$1=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1$1=toPropertyKey$2$1,hasOwn$8$1=hasOwnProperty_1$1,IE8_DOM_DEFINE$1$1=ie8DomDefine$1,$getOwnPropertyDescriptor$1$1=Object.getOwnPropertyDescriptor,objectDefineProperty$1=(objectGetOwnPropertyDescriptor$1.f=DESCRIPTORS$9?$getOwnPropertyDescriptor$1$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1$1(t),IE8_DOM_DEFINE$1$1)try{return $getOwnPropertyDescriptor$1$1(e,t)}catch(e){}if(hasOwn$8$1(e,t))return createPropertyDescriptor$2$1(!call$a$1(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),v8PrototypeDefineBug$1=descriptors$1&&fails$e(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$5$1=isObject$9,$String$3$1=String,$TypeError$9$1=TypeError,anObject$a=function(e){if(isObject$5$1(e))return e;throw $TypeError$9$1($String$3$1(e)+" is not an object")},DESCRIPTORS$7$1=descriptors$1,IE8_DOM_DEFINE$2=ie8DomDefine$1,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug$1,anObject$9=anObject$a,toPropertyKey$3=toPropertyKey$2$1,$TypeError$8$1=TypeError,$defineProperty$1=Object.defineProperty,$getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,ENUMERABLE$1="enumerable",CONFIGURABLE$1$1="configurable",WRITABLE$1="writable",DESCRIPTORS$6$1=(objectDefineProperty$1.f=DESCRIPTORS$7$1?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,n){var r;return anObject$9(e),t=toPropertyKey$3(t),anObject$9(n),"function"==typeof e&&"prototype"===t&&"value"in n&&WRITABLE$1 in n&&!n[WRITABLE$1]&&(r=$getOwnPropertyDescriptor$2(e,t))&&r[WRITABLE$1]&&(e[t]=n.value,n={configurable:(CONFIGURABLE$1$1 in n?n:r)[CONFIGURABLE$1$1],enumerable:(ENUMERABLE$1 in n?n:r)[ENUMERABLE$1],writable:!1}),$defineProperty$1(e,t,n)}:$defineProperty$1:function(e,t,n){if(anObject$9(e),t=toPropertyKey$3(t),anObject$9(n),IE8_DOM_DEFINE$2)try{return $defineProperty$1(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $TypeError$8$1("Accessors not supported");return"value"in n&&(e[t]=n.value),e},descriptors$1),definePropertyModule$3=objectDefineProperty$1,createPropertyDescriptor$1$1=createPropertyDescriptor$3,createNonEnumerableProperty$4=DESCRIPTORS$6$1?function(e,t,n){return definePropertyModule$3.f(e,t,createPropertyDescriptor$1$1(1,n))}:function(e,t,n){return e[t]=n,e},makeBuiltIn$3$1={exports:{}},DESCRIPTORS$5$1=descriptors$1,hasOwn$7$1=hasOwnProperty_1$1,FunctionPrototype$1$1=Function.prototype,getDescriptor$1=DESCRIPTORS$5$1&&Object.getOwnPropertyDescriptor,EXISTS$2=hasOwn$7$1(FunctionPrototype$1$1,"name"),PROPER$1=EXISTS$2&&"something"===function(){}.name,CONFIGURABLE$2=EXISTS$2&&(!DESCRIPTORS$5$1||getDescriptor$1(FunctionPrototype$1$1,"name").configurable),functionName$1={EXISTS:EXISTS$2,PROPER:PROPER$1,CONFIGURABLE:CONFIGURABLE$2},isCallable$e$1=isCallable$k,store$1$1=sharedStore$1,functionToString$1=functionUncurryThis$1(Function.toString),inspectSource$3$1=(isCallable$e$1(store$1$1.inspectSource)||(store$1$1.inspectSource=function(e){return functionToString$1(e)}),store$1$1.inspectSource),isCallable$d$1=isCallable$k,WeakMap$1$1=global$g.WeakMap,weakMapBasicDetection$1=isCallable$d$1(WeakMap$1$1)&&/native code/.test(String(WeakMap$1$1)),shared$1$1=shared$3$1.exports,uid$3=uid$2$1,keys$1=shared$1$1("keys"),sharedKey$3=function(e){return keys$1[e]||(keys$1[e]=uid$3(e))},hiddenKeys$4={},NATIVE_WEAK_MAP$1=weakMapBasicDetection$1,global$8$1=global$g,isObject$4$1=isObject$9,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$6$1=hasOwnProperty_1$1,shared$4=sharedStore$1,sharedKey$2=sharedKey$3,hiddenKeys$3$1=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED$1="Object already initialized",TypeError$2$1=global$8$1.TypeError,WeakMap$3=global$8$1.WeakMap,enforce$1=function(e){return has$1(e)?get$1(e):set$1$1(e,{})},getterFor$1=function(t){return function(e){if(isObject$4$1(e)&&(e=get$1(e)).type===t)return e;throw TypeError$2$1("Incompatible receiver, "+t+" required")}},has$1=NATIVE_WEAK_MAP$1||shared$4.state?((store$5=shared$4.state||(shared$4.state=new WeakMap$3)).get=store$5.get,store$5.has=store$5.has,store$5.set=store$5.set,set$1$1=function(e,t){if(store$5.has(e))throw TypeError$2$1(OBJECT_ALREADY_INITIALIZED$1);return t.facade=e,store$5.set(e,t),t},get$1=function(e){return store$5.get(e)||{}},function(e){return store$5.has(e)}):(STATE$1=sharedKey$2("state"),hiddenKeys$3$1[STATE$1]=!0,set$1$1=function(e,t){if(hasOwn$6$1(e,STATE$1))throw TypeError$2$1(OBJECT_ALREADY_INITIALIZED$1);return t.facade=e,createNonEnumerableProperty$3(e,STATE$1,t),t},get$1=function(e){return hasOwn$6$1(e,STATE$1)?e[STATE$1]:{}},function(e){return hasOwn$6$1(e,STATE$1)}),internalState$1={set:set$1$1,get:get$1,has:has$1,enforce:enforce$1,getterFor:getterFor$1},uncurryThis$9$1=functionUncurryThis$1,fails$7$1=fails$e,isCallable$c$1=isCallable$k,hasOwn$5$1=hasOwnProperty_1$1,DESCRIPTORS$4$1=descriptors$1,CONFIGURABLE_FUNCTION_NAME$1=functionName$1.CONFIGURABLE,inspectSource$2$1=inspectSource$3$1,InternalStateModule$2=internalState$1,enforceInternalState$1=InternalStateModule$2.enforce,getInternalState$1=InternalStateModule$2.get,$String$2$1=String,defineProperty$5=Object.defineProperty,stringSlice$2=uncurryThis$9$1("".slice),replace$1=uncurryThis$9$1("".replace),join$1=uncurryThis$9$1([].join),CONFIGURABLE_LENGTH$1=DESCRIPTORS$4$1&&!fails$7$1(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE$1=String(String).split("String"),makeBuiltIn$2$1=makeBuiltIn$3$1.exports=function(e,t,n){"Symbol("===stringSlice$2($String$2$1(t),0,7)&&(t="["+replace$1($String$2$1(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hasOwn$5$1(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$4$1?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH$1&&n&&hasOwn$5$1(n,"arity")&&e.length!==n.arity&&defineProperty$5(e,"length",{value:n.arity});try{n&&hasOwn$5$1(n,"constructor")&&n.constructor?DESCRIPTORS$4$1&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}return n=enforceInternalState$1(e),hasOwn$5$1(n,"source")||(n.source=join$1(TEMPLATE$1,"string"==typeof t?t:"")),e},isCallable$b$1=(Function.prototype.toString=makeBuiltIn$2$1(function(){return isCallable$c$1(this)&&getInternalState$1(this).source||inspectSource$2$1(this)},"toString"),isCallable$k),definePropertyModule$2$1=objectDefineProperty$1,makeBuiltIn$1$1=makeBuiltIn$3$1.exports,defineGlobalProperty$1$1=defineGlobalProperty$3$1,defineBuiltIn$5=function(e,t,n,r){var i=(r=r||{}).enumerable,o=void 0!==r.name?r.name:t;if(isCallable$b$1(n)&&makeBuiltIn$1$1(n,o,r),r.global)i?e[t]=n:defineGlobalProperty$1$1(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:definePropertyModule$2$1.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},objectGetOwnPropertyNames$1={},ceil$1=Math.ceil,floor$1=Math.floor,mathTrunc$1=Math.trunc||function(e){return(0<(e=+e)?floor$1:ceil$1)(e)},trunc$1=mathTrunc$1,toIntegerOrInfinity$2$1=function(e){return(e=+e)!=e||0==e?0:trunc$1(e)},toIntegerOrInfinity$1$1=toIntegerOrInfinity$2$1,max$1=Math.max,min$1$1=Math.min,toAbsoluteIndex$1$1=function(e,t){return(e=toIntegerOrInfinity$1$1(e))<0?max$1(e+t,0):min$1$1(e,t)},toIntegerOrInfinity$3=toIntegerOrInfinity$2$1,min$2=Math.min,toLength$1$1=function(e){return 0<e?min$2(toIntegerOrInfinity$3(e),9007199254740991):0},toLength$2=toLength$1$1,lengthOfArrayLike$2$1=function(e){return toLength$2(e.length)},toIndexedObject$3$1=toIndexedObject$5,toAbsoluteIndex$2=toAbsoluteIndex$1$1,lengthOfArrayLike$1$1=lengthOfArrayLike$2$1,createMethod$1=function(s){return function(e,t,n){var r,i=toIndexedObject$3$1(e),o=lengthOfArrayLike$1$1(i),a=toAbsoluteIndex$2(n,o);if(s&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}},arrayIncludes$1={includes:createMethod$1(!0),indexOf:createMethod$1(!1)},uncurryThis$8$1=functionUncurryThis$1,hasOwn$4$1=hasOwnProperty_1$1,toIndexedObject$2$1=toIndexedObject$5,indexOf$1=arrayIncludes$1.indexOf,hiddenKeys$2$1=hiddenKeys$4,push$1=uncurryThis$8$1([].push),objectKeysInternal$1=function(e,t){var n,r=toIndexedObject$2$1(e),i=0,o=[];for(n in r)!hasOwn$4$1(hiddenKeys$2$1,n)&&hasOwn$4$1(r,n)&&push$1(o,n);for(;t.length>i;)hasOwn$4$1(r,n=t[i++])&&!~indexOf$1(o,n)&&push$1(o,n);return o},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal$1,hiddenKeys$1$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols$1=(objectGetOwnPropertyNames$1.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1$1)},{}),getBuiltIn$5$1=(objectGetOwnPropertySymbols$1.f=Object.getOwnPropertySymbols,getBuiltIn$7$1),getOwnPropertyNamesModule$1=objectGetOwnPropertyNames$1,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols$1,anObject$8$1=anObject$a,concat$1=functionUncurryThis$1([].concat),ownKeys$1$1=getBuiltIn$5$1("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule$1.f(anObject$8$1(e)),n=getOwnPropertySymbolsModule$1.f;return n?concat$1(t,n(e)):t},hasOwn$3$1=hasOwnProperty_1$1,ownKeys$2=ownKeys$1$1,getOwnPropertyDescriptorModule$1=objectGetOwnPropertyDescriptor$1,definePropertyModule$1$1=objectDefineProperty$1,copyConstructorProperties$1$1=function(e,t,n){for(var r=ownKeys$2(t),i=definePropertyModule$1$1.f,o=getOwnPropertyDescriptorModule$1.f,a=0;a<r.length;a++){var s=r[a];hasOwn$3$1(e,s)||n&&hasOwn$3$1(n,s)||i(e,s,o(t,s))}},fails$6$1=fails$e,isCallable$a$1=isCallable$k,replacement$1=/#|\.prototype\./,isForced$2$1=function(e,t){return(e=data$1[normalize$1(e)])==POLYFILL$1||e!=NATIVE$1&&(isCallable$a$1(t)?fails$6$1(t):!!t)},normalize$1=isForced$2$1.normalize=function(e){return String(e).replace(replacement$1,".").toLowerCase()},data$1=isForced$2$1.data={},NATIVE$1=isForced$2$1.NATIVE="N",POLYFILL$1=isForced$2$1.POLYFILL="P",isForced_1$1=isForced$2$1,global$7$1=global$g,getOwnPropertyDescriptor$1$1=objectGetOwnPropertyDescriptor$1.f,createNonEnumerableProperty$2$1=createNonEnumerableProperty$4,defineBuiltIn$4=defineBuiltIn$5,defineGlobalProperty$4=defineGlobalProperty$3$1,copyConstructorProperties$2=copyConstructorProperties$1$1,isForced$1$1=isForced_1$1,_export$1=function(e,t){var n,r,i,o=e.target,a=e.global,s=e.stat,l=a?global$7$1:s?global$7$1[o]||defineGlobalProperty$4(o,{}):(global$7$1[o]||{}).prototype;if(l)for(n in t){if(r=t[n],i=e.dontCallGetSet?(i=getOwnPropertyDescriptor$1$1(l,n))&&i.value:l[n],!isForced$1$1(a?n:o+(s?".":"#")+n,e.forced)&&void 0!==i){if(typeof r==typeof i)continue;copyConstructorProperties$2(r,i)}(e.sham||i&&i.sham)&&createNonEnumerableProperty$2$1(r,"sham",!0),defineBuiltIn$4(l,n,r,e)}},engineIsNode$1="undefined"!=typeof process&&"process"==classofRaw$2$1(process),uncurryThis$6$1=functionUncurryThis$1,aCallable$6$1=aCallable$8$1,functionUncurryThisAccessor$1=function(e,t,n){try{return uncurryThis$6$1(aCallable$6$1(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},isCallable$9$1=isCallable$k,$String$1$1=String,$TypeError$7$1=TypeError,aPossiblePrototype$1$1=function(e){if("object"==typeof e||isCallable$9$1(e))return e;throw $TypeError$7$1("Can't set "+$String$1$1(e)+" as a prototype")},uncurryThisAccessor$1=functionUncurryThisAccessor$1,anObject$7$1=anObject$a,aPossiblePrototype$2=aPossiblePrototype$1$1,objectSetPrototypeOf$1=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=uncurryThisAccessor$1(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return anObject$7$1(e),aPossiblePrototype$2(t),r?n(e,t):e.__proto__=t,e}}():void 0),defineProperty$4=objectDefineProperty$1.f,hasOwn$2$1=hasOwnProperty_1$1,TO_STRING_TAG$3=wellKnownSymbol$g("toStringTag"),setToStringTag$3=function(e,t,n){(e=e&&!n?e.prototype:e)&&!hasOwn$2$1(e,TO_STRING_TAG$3)&&defineProperty$4(e,TO_STRING_TAG$3,{configurable:!0,value:t})},makeBuiltIn$4=makeBuiltIn$3$1.exports,defineProperty$3$1=objectDefineProperty$1,defineBuiltInAccessor$1$1=function(e,t,n){return n.get&&makeBuiltIn$4(n.get,t,{getter:!0}),n.set&&makeBuiltIn$4(n.set,t,{setter:!0}),defineProperty$3$1.f(e,t,n)},getBuiltIn$4$1=getBuiltIn$7$1,defineBuiltInAccessor$2=defineBuiltInAccessor$1$1,DESCRIPTORS$3$1=descriptors$1,SPECIES$2$1=wellKnownSymbol$g("species"),setSpecies$1$1=function(e){e=getBuiltIn$4$1(e),DESCRIPTORS$3$1&&e&&!e[SPECIES$2$1]&&defineBuiltInAccessor$2(e,SPECIES$2$1,{configurable:!0,get:function(){return this}})},isPrototypeOf$1$1=objectIsPrototypeOf$1,$TypeError$6$1=TypeError,anInstance$1$1=function(e,t){if(isPrototypeOf$1$1(t,e))return e;throw $TypeError$6$1("Incorrect invocation")},TO_STRING_TAG$2$1=wellKnownSymbol$g("toStringTag"),test$1={},toStringTagSupport$1=(test$1[TO_STRING_TAG$2$1]="z","[object z]"===String(test$1)),TO_STRING_TAG_SUPPORT$1=toStringTagSupport$1,isCallable$8$1=isCallable$k,classofRaw$1$1=classofRaw$2$1,TO_STRING_TAG$1$1=wellKnownSymbol$g("toStringTag"),$Object$1$1=Object,CORRECT_ARGUMENTS$1="Arguments"==classofRaw$1$1(function(){return arguments}()),tryGet$1=function(e,t){try{return e[t]}catch(e){}},classof$4$1=TO_STRING_TAG_SUPPORT$1?classofRaw$1$1:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet$1(e=$Object$1$1(e),TO_STRING_TAG$1$1))?t:CORRECT_ARGUMENTS$1?classofRaw$1$1(e):"Object"==(t=classofRaw$1$1(e))&&isCallable$8$1(e.callee)?"Arguments":t},uncurryThis$5$1=functionUncurryThis$1,fails$5$1=fails$e,isCallable$7$1=isCallable$k,classof$3$1=classof$4$1,inspectSource$1$1=inspectSource$3$1,noop$1=function(){},empty$1=[],construct$1=getBuiltIn$7$1("Reflect","construct"),constructorRegExp$1=/^\s*(?:class|function)\b/,exec$1=uncurryThis$5$1(constructorRegExp$1.exec),INCORRECT_TO_STRING$1=!constructorRegExp$1.exec(noop$1),isConstructorModern$1=function(e){if(!isCallable$7$1(e))return!1;try{return construct$1(noop$1,empty$1,e),!0}catch(e){return!1}},isConstructorLegacy$1=function(e){if(!isCallable$7$1(e))return!1;switch(classof$3$1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$1||!!exec$1(constructorRegExp$1,inspectSource$1$1(e))}catch(e){return!0}},isConstructor$1$1=(isConstructorLegacy$1.sham=!0,!construct$1||fails$5$1(function(){var e;return isConstructorModern$1(isConstructorModern$1.call)||!isConstructorModern$1(Object)||!isConstructorModern$1(function(){e=!0})||e})?isConstructorLegacy$1:isConstructorModern$1),isConstructor$2=isConstructor$1$1,tryToString$2$1=tryToString$4$1,$TypeError$5$1=TypeError,aConstructor$1$1=function(e){if(isConstructor$2(e))return e;throw $TypeError$5$1(tryToString$2$1(e)+" is not a constructor")},anObject$6$1=anObject$a,aConstructor$2=aConstructor$1$1,isNullOrUndefined$1$1=isNullOrUndefined$4$1,SPECIES$1$1=wellKnownSymbol$g("species"),speciesConstructor$1$1=function(e,t){return void 0===(e=anObject$6$1(e).constructor)||isNullOrUndefined$1$1(e=anObject$6$1(e)[SPECIES$1$1])?t:aConstructor$2(e)},NATIVE_BIND$1$1=functionBindNative$1,FunctionPrototype$3=Function.prototype,apply$1$1=FunctionPrototype$3.apply,call$9$1=FunctionPrototype$3.call,functionApply$1="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1$1?call$9$1.bind(apply$1$1):function(){return call$9$1.apply(apply$1$1,arguments)}),classofRaw$3=classofRaw$2$1,uncurryThis$4$1=functionUncurryThis$1,functionUncurryThisClause$1=function(e){if("Function"===classofRaw$3(e))return uncurryThis$4$1(e)},aCallable$5$1=aCallable$8$1,NATIVE_BIND$4=functionBindNative$1,bind$4$1=functionUncurryThisClause$1(functionUncurryThisClause$1.bind),functionBindContext$1=function(e,t){return aCallable$5$1(e),void 0===t?e:NATIVE_BIND$4?bind$4$1(e,t):function(){return e.apply(t,arguments)}},html$2=getBuiltIn$7$1("document","documentElement"),arraySlice$1$1=functionUncurryThis$1([].slice),$TypeError$4$1=TypeError,validateArgumentsLength$1$1=function(e,t){if(e<t)throw $TypeError$4$1("Not enough arguments");return e},userAgent$2$1=engineUserAgent$1,engineIsIos$1=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2$1),global$6$1=global$g,apply$2=functionApply$1,bind$3$1=functionBindContext$1,isCallable$6$1=isCallable$k,hasOwn$1$1=hasOwnProperty_1$1,fails$4$1=fails$e,html$1$1=html$2,arraySlice$2=arraySlice$1$1,createElement$2=documentCreateElement$2,validateArgumentsLength$2=validateArgumentsLength$1$1,IS_IOS$1$1=engineIsIos$1,IS_NODE$3$1=engineIsNode$1,set$2=global$6$1.setImmediate,clear$1=global$6$1.clearImmediate,process$3$1=global$6$1.process,Dispatch$1=global$6$1.Dispatch,Function$1$1=global$6$1.Function,MessageChannel$2=global$6$1.MessageChannel,String$1$1=global$6$1.String,counter$1=0,queue$2$1={},ONREADYSTATECHANGE$1="onreadystatechange",run$1=(fails$4$1(function(){$location$1=global$6$1.location}),function(e){var t;hasOwn$1$1(queue$2$1,e)&&(t=queue$2$1[e],delete queue$2$1[e],t())}),runner$1=function(e){return function(){run$1(e)}},eventListener$1=function(e){run$1(e.data)},globalPostMessageDefer$1=function(e){global$6$1.postMessage(String$1$1(e),$location$1.protocol+"//"+$location$1.host)},task$1$1=(set$2&&clear$1||(set$2=function(e){validateArgumentsLength$2(arguments.length,1);var t=isCallable$6$1(e)?e:Function$1$1(e),n=arraySlice$2(arguments,1);return queue$2$1[++counter$1]=function(){apply$2(t,void 0,n)},defer$1(counter$1),counter$1},clear$1=function(e){delete queue$2$1[e]},IS_NODE$3$1?defer$1=function(e){process$3$1.nextTick(runner$1(e))}:Dispatch$1&&Dispatch$1.now?defer$1=function(e){Dispatch$1.now(runner$1(e))}:MessageChannel$2&&!IS_IOS$1$1?(port$1=(channel$1=new MessageChannel$2).port2,channel$1.port1.onmessage=eventListener$1,defer$1=bind$3$1(port$1.postMessage,port$1)):global$6$1.addEventListener&&isCallable$6$1(global$6$1.postMessage)&&!global$6$1.importScripts&&$location$1&&"file:"!==$location$1.protocol&&!fails$4$1(globalPostMessageDefer$1)?(defer$1=globalPostMessageDefer$1,global$6$1.addEventListener("message",eventListener$1,!1)):defer$1=ONREADYSTATECHANGE$1 in createElement$2("script")?function(e){html$1$1.appendChild(createElement$2("script"))[ONREADYSTATECHANGE$1]=function(){html$1$1.removeChild(this),run$1(e)}}:function(e){setTimeout(runner$1(e),0)}),{set:set$2,clear:clear$1}),Queue$2$1=function(){this.head=null,this.tail=null},queue$1$1=(Queue$2$1.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},Queue$2$1),userAgent$1$1=engineUserAgent$1,engineIsIosPebble$1=/ipad|iphone|ipod/i.test(userAgent$1$1)&&"undefined"!=typeof Pebble,userAgent$4=engineUserAgent$1,engineIsWebosWebkit$1=/web0s(?!.*chrome)/i.test(userAgent$4),global$5$1=global$g,bind$2$1=functionBindContext$1,getOwnPropertyDescriptor$3=objectGetOwnPropertyDescriptor$1.f,macrotask$1=task$1$1.set,Queue$1$1=queue$1$1,IS_IOS$2=engineIsIos$1,IS_IOS_PEBBLE$1=engineIsIosPebble$1,IS_WEBOS_WEBKIT$1=engineIsWebosWebkit$1,IS_NODE$2$1=engineIsNode$1,MutationObserver$1=global$5$1.MutationObserver||global$5$1.WebKitMutationObserver,document$2$1=global$5$1.document,process$2$1=global$5$1.process,Promise$1$1=global$5$1.Promise,queueMicrotaskDescriptor$1=getOwnPropertyDescriptor$3(global$5$1,"queueMicrotask"),microtask$1$1=queueMicrotaskDescriptor$1&&queueMicrotaskDescriptor$1.value,microtask_1$1=(microtask$1$1||(queue$3=new Queue$1$1,flush$1=function(){var e,t;for(IS_NODE$2$1&&(e=process$2$1.domain)&&e.exit();t=queue$3.get();)try{t()}catch(e){throw queue$3.head&¬ify$1$1(),e}e&&e.enter()},notify$1$1=IS_IOS$2||IS_NODE$2$1||IS_WEBOS_WEBKIT$1||!MutationObserver$1||!document$2$1?!IS_IOS_PEBBLE$1&&Promise$1$1&&Promise$1$1.resolve?((promise$1=Promise$1$1.resolve(void 0)).constructor=Promise$1$1,then$1=bind$2$1(promise$1.then,promise$1),function(){then$1(flush$1)}):IS_NODE$2$1?function(){process$2$1.nextTick(flush$1)}:(macrotask$1=bind$2$1(macrotask$1,global$5$1),function(){macrotask$1(flush$1)}):(toggle$1=!0,node$1=document$2$1.createTextNode(""),new MutationObserver$1(flush$1).observe(node$1,{characterData:!0}),function(){node$1.data=toggle$1=!toggle$1}),microtask$1$1=function(e){queue$3.head||notify$1$1(),queue$3.add(e)}),microtask$1$1),hostReportErrors$1$1=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},perform$3$1=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},promiseNativeConstructor$1=global$g.Promise,engineIsDeno$1="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,engineIsBrowser$1=!engineIsDeno$1&&!engineIsNode$1&&"object"==typeof window&&"object"==typeof document,global$3$1=global$g,NativePromiseConstructor$3$1=promiseNativeConstructor$1,isCallable$5$1=isCallable$k,isForced$3=isForced_1$1,inspectSource$4=inspectSource$3$1,wellKnownSymbol$9$1=wellKnownSymbol$g,IS_BROWSER$1=engineIsBrowser$1,IS_DENO$2=engineIsDeno$1,V8_VERSION$2=engineV8Version$1,SPECIES$3=(NativePromiseConstructor$3$1&&NativePromiseConstructor$3$1.prototype,wellKnownSymbol$9$1("species")),SUBCLASSING$1=!1,NATIVE_PROMISE_REJECTION_EVENT$1$1=isCallable$5$1(global$3$1.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5$1=isForced$3("Promise",function(){var e=inspectSource$4(NativePromiseConstructor$3$1),t=e!==String(NativePromiseConstructor$3$1);if(!t&&66===V8_VERSION$2)return!0;if(!V8_VERSION$2||V8_VERSION$2<51||!/native code/.test(e)){function n(e){e(function(){},function(){})}if(((e=new NativePromiseConstructor$3$1(function(e){e(1)})).constructor={})[SPECIES$3]=n,!(SUBCLASSING$1=e.then(function(){})instanceof n))return!0}return!t&&(IS_BROWSER$1||IS_DENO$2)&&!NATIVE_PROMISE_REJECTION_EVENT$1$1}),promiseConstructorDetection$1={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$1,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$1,SUBCLASSING:SUBCLASSING$1},newPromiseCapability$2$1={},aCallable$4$1=aCallable$8$1,$TypeError$3$1=TypeError,PromiseCapability$1=function(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw $TypeError$3$1("Bad Promise constructor");n=e,r=t}),this.resolve=aCallable$4$1(n),this.reject=aCallable$4$1(r)},$$9=(newPromiseCapability$2$1.f=function(e){return new PromiseCapability$1(e)},_export$1),IS_NODE$4=engineIsNode$1,global$2$1=global$g,call$8$1=functionCall$1,defineBuiltIn$3$1=defineBuiltIn$5,setPrototypeOf$1=objectSetPrototypeOf$1,setToStringTag$2=setToStringTag$3,setSpecies$2=setSpecies$1$1,aCallable$3$1=aCallable$8$1,isCallable$4$1=isCallable$k,isObject$3$1=isObject$9,anInstance$2=anInstance$1$1,speciesConstructor$2=speciesConstructor$1$1,task$2=task$1$1.set,microtask$2=microtask_1$1,hostReportErrors$2=hostReportErrors$1$1,perform$2$1=perform$3$1,Queue$3=queue$1$1,InternalStateModule$1$1=internalState$1,NativePromiseConstructor$2$1=promiseNativeConstructor$1,PromiseConstructorDetection$1=promiseConstructorDetection$1,newPromiseCapabilityModule$3$1=newPromiseCapability$2$1,PROMISE$1="Promise",FORCED_PROMISE_CONSTRUCTOR$4$1=PromiseConstructorDetection$1.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$2=PromiseConstructorDetection$1.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$1=PromiseConstructorDetection$1.SUBCLASSING,getInternalPromiseState$1=InternalStateModule$1$1.getterFor(PROMISE$1),setInternalState$1=InternalStateModule$1$1.set,NativePromisePrototype$1$1=NativePromiseConstructor$2$1&&NativePromiseConstructor$2$1.prototype,PromiseConstructor$1=NativePromiseConstructor$2$1,PromisePrototype$1=NativePromisePrototype$1$1,TypeError$1$1=global$2$1.TypeError,document$1$1=global$2$1.document,process$1$1=global$2$1.process,newPromiseCapability$1$1=newPromiseCapabilityModule$3$1.f,newGenericPromiseCapability$1=newPromiseCapability$1$1,DISPATCH_EVENT$1=!!(document$1$1&&document$1$1.createEvent&&global$2$1.dispatchEvent),UNHANDLED_REJECTION$1="unhandledrejection",REJECTION_HANDLED$1="rejectionhandled",PENDING$1=0,FULFILLED$1=1,REJECTED$1=2,HANDLED$1=1,UNHANDLED$1=2,isThenable$1=function(e){var t;return!(!isObject$3$1(e)||!isCallable$4$1(t=e.then))&&t},callReaction$1=function(e,t){var n,r,i,o=t.value,a=t.state==FULFILLED$1,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(t.rejection===UNHANDLED$1&&onHandleUnhandled$1(t),t.rejection=HANDLED$1),!0===s?n=o:(u&&u.enter(),n=s(o),u&&(u.exit(),i=!0)),n===e.promise?c(TypeError$1$1("Promise-chain cycle")):(r=isThenable$1(n))?call$8$1(r,n,l,c):l(n)):c(o)}catch(e){u&&!i&&u.exit(),c(e)}},notify$2=function(n,r){n.notified||(n.notified=!0,microtask$2(function(){for(var e,t=n.reactions;e=t.get();)callReaction$1(e,n);n.notified=!1,r&&!n.rejection&&onUnhandled$1(n)}))},dispatchEvent$1=function(e,t,n){var r;DISPATCH_EVENT$1?((r=document$1$1.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),global$2$1.dispatchEvent(r)):r={promise:t,reason:n},!NATIVE_PROMISE_REJECTION_EVENT$2&&(t=global$2$1["on"+e])?t(r):e===UNHANDLED_REJECTION$1&&hostReportErrors$2("Unhandled promise rejection",n)},onUnhandled$1=function(r){call$8$1(task$2,global$2$1,function(){var e=r.facade,t=r.value,n=isUnhandled$1(r);if(n&&(n=perform$2$1(function(){IS_NODE$4?process$1$1.emit("unhandledRejection",t,e):dispatchEvent$1(UNHANDLED_REJECTION$1,e,t)}),r.rejection=IS_NODE$4||isUnhandled$1(r)?UNHANDLED$1:HANDLED$1,n.error))throw n.value})},isUnhandled$1=function(e){return e.rejection!==HANDLED$1&&!e.parent},onHandleUnhandled$1=function(t){call$8$1(task$2,global$2$1,function(){var e=t.facade;IS_NODE$4?process$1$1.emit("rejectionHandled",e):dispatchEvent$1(REJECTION_HANDLED$1,e,t.value)})},bind$1$1=function(t,n,r){return function(e){t(n,e,r)}},internalReject$1=function(e,t,n){e.done||(e.done=!0,(e=n||e).value=t,e.state=REJECTED$1,notify$2(e,!0))},internalResolve$1=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw TypeError$1$1("Promise can't be resolved itself");var r=isThenable$1(e);r?microtask$2(function(){var t={done:!1};try{call$8$1(r,e,bind$1$1(internalResolve$1,t,n),bind$1$1(internalReject$1,t,n))}catch(e){internalReject$1(t,e,n)}}):(n.value=e,n.state=FULFILLED$1,notify$2(n,!1))}catch(e){internalReject$1({done:!1},e,n)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$1&&(PromisePrototype$1=(PromiseConstructor$1=function(e){anInstance$2(this,PromisePrototype$1),aCallable$3$1(e),call$8$1(Internal$1,this);var t=getInternalPromiseState$1(this);try{e(bind$1$1(internalResolve$1,t),bind$1$1(internalReject$1,t))}catch(e){internalReject$1(t,e)}}).prototype,(Internal$1=function(e){setInternalState$1(this,{type:PROMISE$1,done:!1,notified:!1,parent:!1,reactions:new Queue$3,rejection:!1,state:PENDING$1,value:void 0})}).prototype=defineBuiltIn$3$1(PromisePrototype$1,"then",function(e,t){var n=getInternalPromiseState$1(this),r=newPromiseCapability$1$1(speciesConstructor$2(this,PromiseConstructor$1));return n.parent=!0,r.ok=!isCallable$4$1(e)||e,r.fail=isCallable$4$1(t)&&t,r.domain=IS_NODE$4?process$1$1.domain:void 0,n.state==PENDING$1?n.reactions.add(r):microtask$2(function(){callReaction$1(r,n)}),r.promise}),OwnPromiseCapability$1=function(){var e=new Internal$1,t=getInternalPromiseState$1(e);this.promise=e,this.resolve=bind$1$1(internalResolve$1,t),this.reject=bind$1$1(internalReject$1,t)},newPromiseCapabilityModule$3$1.f=newPromiseCapability$1$1=function(e){return e===PromiseConstructor$1||e===PromiseWrapper$1?new OwnPromiseCapability$1(e):newGenericPromiseCapability$1(e)},isCallable$4$1(NativePromiseConstructor$2$1))&&NativePromisePrototype$1$1!==Object.prototype){nativeThen$1=NativePromisePrototype$1$1.then,NATIVE_PROMISE_SUBCLASSING$1||defineBuiltIn$3$1(NativePromisePrototype$1$1,"then",function(e,t){var n=this;return new PromiseConstructor$1(function(e,t){call$8$1(nativeThen$1,n,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1$1.constructor}catch(e){}setPrototypeOf$1&&setPrototypeOf$1(NativePromisePrototype$1$1,PromisePrototype$1)}$$9({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$1},{Promise:PromiseConstructor$1}),setToStringTag$2(PromiseConstructor$1,PROMISE$1,!1),setSpecies$2(PROMISE$1);var iterators$1={},Iterators$4=iterators$1,ITERATOR$5=wellKnownSymbol$g("iterator"),ArrayPrototype$1=Array.prototype,isArrayIteratorMethod$1$1=function(e){return void 0!==e&&(Iterators$4.Array===e||ArrayPrototype$1[ITERATOR$5]===e)},classof$2$1=classof$4$1,getMethod$1$1=getMethod$3$1,isNullOrUndefined$5=isNullOrUndefined$4$1,Iterators$3=iterators$1,ITERATOR$4=wellKnownSymbol$g("iterator"),getIteratorMethod$2$1=function(e){if(!isNullOrUndefined$5(e))return getMethod$1$1(e,ITERATOR$4)||getMethod$1$1(e,"@@iterator")||Iterators$3[classof$2$1(e)]},call$7$1=functionCall$1,aCallable$2$1=aCallable$8$1,anObject$5$1=anObject$a,tryToString$1$1=tryToString$4$1,getIteratorMethod$1$1=getIteratorMethod$2$1,$TypeError$2$1=TypeError,getIterator$1$1=function(e,t){var n=arguments.length<2?getIteratorMethod$1$1(e):t;if(aCallable$2$1(n))return anObject$5$1(call$7$1(n,e));throw $TypeError$2$1(tryToString$1$1(e)+" is not iterable")},call$6$1=functionCall$1,anObject$4$1=anObject$a,getMethod$4=getMethod$3$1,iteratorClose$1$1=function(e,t,n){var r,i;anObject$4$1(e);try{if(!(r=getMethod$4(e,"return"))){if("throw"===t)throw n;return n}r=call$6$1(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return anObject$4$1(r),n},bind$5=functionBindContext$1,call$5$1=functionCall$1,anObject$3$1=anObject$a,tryToString$5=tryToString$4$1,isArrayIteratorMethod$2=isArrayIteratorMethod$1$1,lengthOfArrayLike$3=lengthOfArrayLike$2$1,isPrototypeOf$3=objectIsPrototypeOf$1,getIterator$2=getIterator$1$1,getIteratorMethod$3=getIteratorMethod$2$1,iteratorClose$2=iteratorClose$1$1,$TypeError$1$1=TypeError,Result$1=function(e,t){this.stopped=e,this.result=t},ResultPrototype$1=Result$1.prototype,iterate$2$1=function(e,t,n){function r(e){return o&&iteratorClose$2(o,"normal",e),new Result$1(!0,e)}function i(e){return p?(anObject$3$1(e),m?g(e[0],e[1],r):g(e[0],e[1])):m?g(e,r):g(e)}var o,a,s,l,c,u,d=n&&n.that,p=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),g=bind$5(t,d);if(f)o=e.iterator;else if(h)o=e;else{if(!(n=getIteratorMethod$3(e)))throw $TypeError$1$1(tryToString$5(e)+" is not iterable");if(isArrayIteratorMethod$2(n)){for(a=0,s=lengthOfArrayLike$3(e);a<s;a++)if((l=i(e[a]))&&isPrototypeOf$3(ResultPrototype$1,l))return l;return new Result$1(!1)}o=getIterator$2(e,n)}for(c=(f?e:o).next;!(u=call$5$1(c,o)).done;){try{l=i(u.value)}catch(e){iteratorClose$2(o,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf$3(ResultPrototype$1,l))return l}return new Result$1(!1)},ITERATOR$3=wellKnownSymbol$g("iterator"),SAFE_CLOSING$1=!1;try{var called$1=0,iteratorWithReturn$1={next:function(){return{done:!!called$1++}},return:function(){SAFE_CLOSING$1=!0}};iteratorWithReturn$1[ITERATOR$3]=function(){return this},Array.from(iteratorWithReturn$1,function(){throw 2})}catch(e){}var method$1,activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,checkCorrectnessOfIteration$1$1=function(e,t){if(!t&&!SAFE_CLOSING$1)return!1;var n=!1;try{var r={};r[ITERATOR$3]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},NativePromiseConstructor$1$1=promiseNativeConstructor$1,checkCorrectnessOfIteration$2=checkCorrectnessOfIteration$1$1,FORCED_PROMISE_CONSTRUCTOR$3$1=promiseConstructorDetection$1.CONSTRUCTOR,promiseStaticsIncorrectIteration$1=FORCED_PROMISE_CONSTRUCTOR$3$1||!checkCorrectnessOfIteration$2(function(e){NativePromiseConstructor$1$1.all(e).then(void 0,function(){})}),call$4$1=functionCall$1,aCallable$1$1=aCallable$8$1,newPromiseCapabilityModule$2$1=newPromiseCapability$2$1,perform$1$1=perform$3$1,iterate$1$1=iterate$2$1,$$7=(_export$1({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration$1},{all:function(e){var s=this,t=newPromiseCapabilityModule$2$1.f(s),l=t.resolve,c=t.reject,n=perform$1$1(function(){var r=aCallable$1$1(s.resolve),i=[],o=0,a=1;iterate$1$1(e,function(e){var t=o++,n=!1;a++,call$4$1(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a)||l(i)},c)}),--a||l(i)});return n.error&&c(n.value),t.promise}}),_export$1),FORCED_PROMISE_CONSTRUCTOR$2$1=promiseConstructorDetection$1.CONSTRUCTOR,NativePromiseConstructor$4=promiseNativeConstructor$1,getBuiltIn$1$1=getBuiltIn$7$1,isCallable$3$1=isCallable$k,defineBuiltIn$2$1=defineBuiltIn$5,NativePromisePrototype$2=NativePromiseConstructor$4&&NativePromiseConstructor$4.prototype,call$3$1=($$7({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$1,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable$3$1(NativePromiseConstructor$4)&&(method$1=getBuiltIn$1$1("Promise").prototype.catch,NativePromisePrototype$2.catch!==method$1)&&defineBuiltIn$2$1(NativePromisePrototype$2,"catch",method$1,{unsafe:!0}),functionCall$1),aCallable$9=aCallable$8$1,newPromiseCapabilityModule$1$1=newPromiseCapability$2$1,perform$4=perform$3$1,iterate$3=iterate$2$1,$$5$1=(_export$1({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration$1},{race:function(e){var n=this,r=newPromiseCapabilityModule$1$1.f(n),i=r.reject,t=perform$4(function(){var t=aCallable$9(n.resolve);iterate$3(e,function(e){call$3$1(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}}),_export$1),call$2$1=functionCall$1,newPromiseCapabilityModule$4=newPromiseCapability$2$1,FORCED_PROMISE_CONSTRUCTOR$1$1=promiseConstructorDetection$1.CONSTRUCTOR,anObject$2$1=($$5$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$1},{reject:function(e){var t=newPromiseCapabilityModule$4.f(this);return call$2$1(t.reject,void 0,e),t.promise}}),anObject$a),isObject$2$1=isObject$9,newPromiseCapability$3=newPromiseCapability$2$1,promiseResolve$1$1=function(e,t){return anObject$2$1(e),isObject$2$1(t)&&t.constructor===e?t:((0,(e=newPromiseCapability$3.f(e)).resolve)(t),e.promise)},$$4$1=_export$1,getBuiltIn$8=getBuiltIn$7$1,FORCED_PROMISE_CONSTRUCTOR$6=promiseConstructorDetection$1.CONSTRUCTOR,promiseResolve$2=promiseResolve$1$1,objectDefineProperties=(getBuiltIn$8("Promise"),$$4$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$6},{resolve:function(e){return promiseResolve$2(this,e)}}),{}),internalObjectKeys$2=objectKeysInternal$1,enumBugKeys$1$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys$2(e,enumBugKeys$1$1)},DESCRIPTORS$2$1=descriptors$1,V8_PROTOTYPE_DEFINE_BUG$2=v8PrototypeDefineBug$1,definePropertyModule$4=objectDefineProperty$1,anObject$1$1=anObject$a,toIndexedObject$1$1=toIndexedObject$5,objectKeys$1=objectKeys$2,anObject$b=(objectDefineProperties.f=DESCRIPTORS$2$1&&!V8_PROTOTYPE_DEFINE_BUG$2?Object.defineProperties:function(e,t){anObject$1$1(e);for(var n,r=toIndexedObject$1$1(t),i=objectKeys$1(t),o=i.length,a=0;a<o;)definePropertyModule$4.f(e,n=i[a++],r[n]);return e},anObject$a),definePropertiesModule=objectDefineProperties,enumBugKeys$2=enumBugKeys$3,hiddenKeys$5=hiddenKeys$4,html$3=html$2,documentCreateElement$1=documentCreateElement$2,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html$3.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys$2.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys$2[e]];return NullProtoObject()},objectCreate=(hiddenKeys$5[IE_PROTO$1]=!0,Object.create||function(e,t){var n;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$b(e),n=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,n[IE_PROTO$1]=e):n=NullProtoObject(),void 0===t?n:definePropertiesModule.f(n,t)}),wellKnownSymbol$5$1=wellKnownSymbol$g,create$1=objectCreate,defineProperty$2$1=objectDefineProperty$1.f,UNSCOPABLES=wellKnownSymbol$5$1("unscopables"),ArrayPrototype$2=Array.prototype,addToUnscopables$2=(null==ArrayPrototype$2[UNSCOPABLES]&&defineProperty$2$1(ArrayPrototype$2,UNSCOPABLES,{configurable:!0,value:create$1(null)}),function(e){ArrayPrototype$2[UNSCOPABLES][e]=!0}),correctPrototypeGetter=!fails$e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$a=hasOwnProperty_1$1,isCallable$2$1=isCallable$k,toObject$1$1=toObject$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object$5=Object,ObjectPrototype=$Object$5.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object$5.getPrototypeOf:function(e){var t,e=toObject$1$1(e);return hasOwn$a(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$2$1(t)&&e instanceof t?t.prototype:e instanceof $Object$5?ObjectPrototype:null)},fails$2$1=fails$e,isCallable$1$1=isCallable$k,isObject$1$1=isObject$9,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$1$1=defineBuiltIn$5,ITERATOR$2$1=wellKnownSymbol$g("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),!isObject$1$1(IteratorPrototype$2)||fails$2$1(function(){var e={};return IteratorPrototype$2[ITERATOR$2$1].call(e)!==e})),iteratorsCore=(isCallable$1$1((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$2$1])||defineBuiltIn$1$1(IteratorPrototype$2,ITERATOR$2$1,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),IteratorPrototype$1=iteratorsCore.IteratorPrototype,create=objectCreate,createPropertyDescriptor$4=createPropertyDescriptor$3,setToStringTag$1$1=setToStringTag$3,Iterators$2=iterators$1,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,n,r){return t+=" Iterator",e.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor$4(+!r,n)}),setToStringTag$1$1(e,t,!1),Iterators$2[t]=returnThis$1,e},$$3$1=_export$1,call$1$1=functionCall$1,FunctionName=functionName$1,isCallable$l=isCallable$k,createIteratorConstructor=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$2=objectSetPrototypeOf$1,setToStringTag$4=setToStringTag$3,createNonEnumerableProperty$1$1=createNonEnumerableProperty$4,defineBuiltIn$6=defineBuiltIn$5,wellKnownSymbol$3$1=wellKnownSymbol$g,Iterators$1$1=iterators$1,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME$2=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$1$1=wellKnownSymbol$3$1("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,n,r,i,o,a){function s(e){if(e===i&&f)return f;if(!BUGGY_SAFARI_ITERATORS&&e in d)return d[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new n(this,e)}}return function(){return new n(this)}}createIteratorConstructor(n,t,r);var l,c,r=t+" Iterator",u=!1,d=e.prototype,p=d[ITERATOR$1$1]||d["@@iterator"]||i&&d[i],f=!BUGGY_SAFARI_ITERATORS&&p||s(i),h="Array"==t&&d.entries||p;if(h&&(h=getPrototypeOf(h.call(new e)))!==Object.prototype&&h.next&&(getPrototypeOf(h)!==IteratorPrototype&&(setPrototypeOf$2?setPrototypeOf$2(h,IteratorPrototype):isCallable$l(h[ITERATOR$1$1])||defineBuiltIn$6(h,ITERATOR$1$1,returnThis)),setToStringTag$4(h,r,!0)),PROPER_FUNCTION_NAME&&i==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME$2?createNonEnumerableProperty$1$1(d,"name",VALUES):(u=!0,f=function(){return call$1$1(p,this)})),i)if(l={values:s(VALUES),keys:o?f:s(KEYS),entries:s(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in d||defineBuiltIn$6(d,c,l[c]);else $$3$1({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return d[ITERATOR$1$1]!==f&&defineBuiltIn$6(d,ITERATOR$1$1,f,{name:i}),Iterators$1$1[t]=f,l},createIterResultObject$1=function(e,t){return{value:e,done:t}},toIndexedObject$6=toIndexedObject$5,addToUnscopables$1=addToUnscopables$2,Iterators$5=iterators$1,InternalStateModule$3=internalState$1,defineProperty$1$1=objectDefineProperty$1.f,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$1,DESCRIPTORS$1$1=descriptors$1,ARRAY_ITERATOR="Array Iterator",setInternalState$2=InternalStateModule$3.set,getInternalState$2=InternalStateModule$3.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState$2(this,{type:ARRAY_ITERATOR,target:toIndexedObject$6(e),index:0,kind:t})},function(){var e=getInternalState$2(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,createIterResultObject(void 0,!0)):createIterResultObject("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)},"values"),values=Iterators$5.Arguments=Iterators$5.Array;if(addToUnscopables$1("keys"),addToUnscopables$1("values"),addToUnscopables$1("entries"),DESCRIPTORS$1$1&&"values"!==values.name)try{defineProperty$1$1(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$1$1=global$g,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$5=createNonEnumerableProperty$4,wellKnownSymbol$2$1=wellKnownSymbol$g,ITERATOR$6=wellKnownSymbol$2$1("iterator"),TO_STRING_TAG$4=wellKnownSymbol$2$1("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(e,t){if(e){if(e[ITERATOR$6]!==ArrayValues)try{createNonEnumerableProperty$5(e,ITERATOR$6,ArrayValues)}catch(t){e[ITERATOR$6]=ArrayValues}if(e[TO_STRING_TAG$4]||createNonEnumerableProperty$5(e,TO_STRING_TAG$4,t),DOMIterables[t])for(var n in ArrayIteratorMethods)if(e[n]!==ArrayIteratorMethods[n])try{createNonEnumerableProperty$5(e,n,ArrayIteratorMethods[n])}catch(t){e[n]=ArrayIteratorMethods[n]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$1$1[COLLECTION_NAME]&&global$1$1[COLLECTION_NAME].prototype,COLLECTION_NAME);function __awaiter$4(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}handlePrototype(DOMTokenListPrototype,"DOMTokenList");var react={exports:{}},react_production_min={},l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(e){return null!==e&&"object"==typeof e&&"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(e,t,n){this.props=e,this.context=t,this.refs=D,this.updater=n||B}function F(){}function G(e,t,n){this.props=e,this.context=t,this.refs=D,this.updater=n||B}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},F.prototype=E.prototype;var H=G.prototype=new F,I=(H.constructor=G,C(H,E.prototype),H.isPureReactComponent=!0,Array.isArray),J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var r,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)J.call(t,r)&&!L.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:l,type:e,key:o,ref:a,props:i,_owner:K.current}}function N(e,t){return{$$typeof:l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}function escape$1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}var P=/\/+/g;function Q(e,t){return"object"==typeof e&&null!==e&&null!=e.key?escape$1(""+e.key):t.toString(36)}function R(e,t,r,i,o){var a=!1;if(null===(e="undefined"!=(c=typeof e)&&"boolean"!==c?e:null))a=!0;else switch(c){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case l:case n:a=!0}}if(a)return o=o(a=e),e=""===i?"."+Q(a,0):i,I(o)?(r="",R(o,t,r=null!=e?e.replace(P,"$&/")+"/":r,"",function(e){return e})):null!=o&&(O(o)&&(o=N(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(P,"$&/")+"/")+e)),t.push(o)),1;if(a=0,i=""===i?".":i+":",I(e))for(var s=0;s<e.length;s++){var c,u=i+Q(c=e[s],s);a+=R(c,t,r,u,o)}else if("function"==typeof(u=A(e)))for(e=u.call(e),s=0;!(c=e.next()).done;)a+=R(c=c.value,t,r,u=i+Q(c,s++),o);else if("object"===c)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function S(e,t,n){var r;return null!=e&&(r=0,R(e,e=[],"","",function(e){return t.call(n,e,r++)})),e}function T(t){var e;if(-1===t._status&&((e=(e=t._result)()).then(function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)},function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)}),-1===t._status)&&(t._status=0,t._result=e),1===t._status)return t._result.default;throw t._result}var EMessageTypes,EFrameLinkEvents,U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};react_production_min.Children={map:S,forEach:function(e,t,n){S(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return S(e,function(){t++}),t},toArray:function(e){return S(e,function(e){return e})||[]},only:function(e){if(O(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},react_production_min.Component=E,react_production_min.Fragment=p,react_production_min.Profiler=r,react_production_min.PureComponent=G,react_production_min.StrictMode=q,react_production_min.Suspense=w,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,react_production_min.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=C({},e.props),i=e.key,o=e.ref,a=e._owner;if(null!=t)for(s in void 0!==t.ref&&(o=t.ref,a=K.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)J.call(t,s)&&!L.hasOwnProperty(s)&&(r[s]=(void 0===t[s]&&void 0!==c?c:t)[s]);var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];r.children=c}return{$$typeof:l,type:e.type,key:i,ref:o,props:r,_owner:a}},react_production_min.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:t,_context:e},e.Consumer=e},react_production_min.createElement=M,react_production_min.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(e){return{$$typeof:v,render:e}},react_production_min.isValidElement=O,react_production_min.lazy=function(e){return{$$typeof:y,_payload:{_status:-1,_result:e},_init:T}},react_production_min.memo=function(e,t){return{$$typeof:x,type:e,compare:void 0===t?null:t}},react_production_min.startTransition=function(e){var t=V.transition;V.transition={};try{e()}finally{V.transition=t}},react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},react_production_min.useCallback=function(e,t){return U.current.useCallback(e,t)},react_production_min.useContext=function(e){return U.current.useContext(e)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(e){return U.current.useDeferredValue(e)},react_production_min.useEffect=function(e,t){return U.current.useEffect(e,t)},react_production_min.useId=function(){return U.current.useId()},react_production_min.useImperativeHandle=function(e,t,n){return U.current.useImperativeHandle(e,t,n)},react_production_min.useInsertionEffect=function(e,t){return U.current.useInsertionEffect(e,t)},react_production_min.useLayoutEffect=function(e,t){return U.current.useLayoutEffect(e,t)},react_production_min.useMemo=function(e,t){return U.current.useMemo(e,t)},react_production_min.useReducer=function(e,t,n){return U.current.useReducer(e,t,n)},react_production_min.useRef=function(e){return U.current.useRef(e)},react_production_min.useState=function(e){return U.current.useState(e)},react_production_min.useSyncExternalStore=function(e,t,n){return U.current.useSyncExternalStore(e,t,n)},react_production_min.useTransition=function(){return U.current.useTransition()},react_production_min.version="18.2.0",react.exports=react_production_min,react.exports.createContext({});const filePicker=(e,t)=>window.aiware.mountPanel({panelId:"DATA_CENTER_IMPORTER",microFrontend:{name:"DATA_CENTER_IMPORTER",config:{requestId:e,frameLink:t}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:document.querySelector("#VERITONE_PANEL_ID")?80:0,size:"large",zIndex:1e3}}),errors={childCantSend:{id:"aiware-desktop.frame-link.child-cannot-send",defaultMessage:"Child frame cannot send this type of message",description:"Child frame is not allowed to send this type of message"},parentCantSend:{id:"aiware-desktop.frame-link.parent-cannot-send",defaultMessage:"Desktop App cannot send this type of message to child frame",description:"Desktop App is not allowed to send this type of message"},childAppNotResponding:{id:"aiware-desktop.frame-link.child-heartbeat-check-failed",defaultMessage:"Child frame appears to be frozen",description:"Child app failed to send a heartbeat to report healthy status"},unsupportedUtility:{id:"aiware-desktop.frame-link.unsupported-utility",defaultMessage:"Cannot find the requested utility",description:"Error when child app is requesting a use of unsupported utility"},operationCancelled:{id:"aiware-desktop.frame-link.operation-cancelled",defaultMessage:"Operation cancelled",description:"Error message when the operation requested by child frame is cancelled"}},Utilities=(function(e){e.getInitContext="getInitContext",e.initContext="initContext",e.updateContext="updateContext",e.reportActivity="reportActivity",e.response="response",e.utility="utility",e.error="error",e.heartbeat="heartbeat"}(EMessageTypes=EMessageTypes||{}),{filePicker:filePicker});(EFrameLinkEvents=EFrameLinkEvents||{}).init="init";var $$2$1=_export$1,$includes=arrayIncludes$1.includes,addToUnscopables=addToUnscopables$2,BROKEN_ON_SPARSE=fails$e(function(){return!Array(1).includes()}),isObject$a=($$2$1({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),addToUnscopables("includes"),isObject$9),classof$1$1=classofRaw$2$1,MATCH$1=wellKnownSymbol$g("match"),isRegexp=function(e){var t;return isObject$a(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$1$1(e))},isRegExp=isRegexp,$TypeError$e=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError$e("The method doesn't accept regular expressions");return e},classof$5=classof$4$1,$String$5=String,toString$1$1=function(e){if("Symbol"===classof$5(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$5(e)},MATCH=wellKnownSymbol$g("match"),correctIsRegexpLogic=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[MATCH]=!1,"/./"[t](n)}catch(e){}}return!1},$$1$1=_export$1,notARegExp=notARegexp,requireObjectCoercible$4=requireObjectCoercible$3,toString$4=toString$1$1,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=functionUncurryThis$1("".indexOf),DESCRIPTORS$8=($$1$1({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString$4(requireObjectCoercible$4(this)),toString$4(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}}),descriptors$1),uncurryThis$e=functionUncurryThis$1,call$f=functionCall$1,fails$c=fails$e,objectKeys=objectKeys$2,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols$1,propertyIsEnumerableModule$2=objectPropertyIsEnumerable$1,toObject$4=toObject$3,IndexedObject$2=indexedObject$1,$assign=Object.assign,defineProperty$7=Object.defineProperty,concat$2=uncurryThis$e([].concat),objectAssign=!$assign||fails$c(function(){var e,t,n,r;return!(!DESCRIPTORS$8||1===$assign({b:1},$assign(defineProperty$7({},"a",{enumerable:!0,get:function(){defineProperty$7(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[n])||objectKeys($assign({},t)).join("")!=r})?function(e,t){for(var n=toObject$4(e),r=arguments.length,i=1,o=getOwnPropertySymbolsModule$2.f,a=propertyIsEnumerableModule$2.f;i<r;)for(var s,l=IndexedObject$2(arguments[i++]),c=o?concat$2(objectKeys(l),o(l)):objectKeys(l),u=c.length,d=0;d<u;)s=c[d++],DESCRIPTORS$8&&!call$f(a,l,s)||(n[s]=l[s]);return n}:$assign,assign=objectAssign;function handleMessage(e){var t;if((this.isChild||e.origin===this.origin)&&e.data&&null!=(t=null==(t=e.data)?void 0:t.type)&&t.includes("aiware:"))switch(this.isChild||(this.heartbeatReceived=(new Date).getTime()),e.data.type.split(":")[1]){case EMessageTypes.getInitContext:var{auth:n,configs:r}=null==(n=this.store)?void 0:n.getState(),n={authToken:null==n?void 0:n.sessionToken,baseUrl:null==(r=null==r?void 0:r.initConfig)?void 0:r.baseUrl,userId:null==n?void 0:n.userId,organizationId:null==(r=null==(r=null==n?void 0:n.user)?void 0:r.organization)?void 0:r.organizationId,language:null==(r=null==n?void 0:n.user)?void 0:r.preferredLanguage};this.postMessage(EMessageTypes.initContext,n),this.initialized=!0;break;case EMessageTypes.initContext:this.initialized||(Object.assign(this.context,e.data.payload),this.contextReceivedResolve&&this.contextReceivedResolve(),this.subscribers.forEach(e=>{e(this.context)}));break;case EMessageTypes.response:var{requestId:r,data:n,error:i}=e.data.payload;this.responses[r]={data:n,error:i};break;case EMessageTypes.reportActivity:break;case EMessageTypes.utility:var{utility:r,requestId:n}=e.data.payload;Utilities[r](n,this);break;case EMessageTypes.error:var{requestId:i,error:r}=e.data.payload;i&&(this.responses[i]={error:r,data:null}),this.errorAction&&this.intl&&this.errorAction(this.intl.formatMessage(r))}}function postMessage(t,e={}){!!this.canSendMap.common.find(e=>e===t)||(this.isChild?!!this.canSendMap.child.find(e=>e===t):!!this.canSendMap.parent.find(e=>e===t))?(this.isChild?window.parent:document.querySelector("iframe").contentWindow).postMessage({type:"aiware:"+t,payload:e},this.isChild?document.referrer:this.origin):this.isChild?this.postMessage(EMessageTypes.error,errors.childCantSend):this.errorAction&&this.intl&&this.errorAction(this.intl.formatMessage(errors.parentCantSend))}function healthReporting(){setInterval(()=>{this.postMessage(EMessageTypes.heartbeat)},this.heartbeatInterval)}function healthMonitoring(){this.interval||(this.interval=setInterval(()=>{(new Date).getTime()-new Date(this.heartbeatReceived).getTime()>this.heartbeatInterval+500&&(this.errorAction&&this.intl&&this.errorAction(this.intl.formatMessage(errors.childAppNotResponding)),clearInterval(this.interval))},this.heartbeatInterval+500))}function reportActivity(e){this.postMessage(EMessageTypes.reportActivity,{activity:e})}function subscribe(t){return this.subscribers.push(t),this.subscribers.length,this.subscribers=[...new Set(this.subscribers)],this.subscribers.length,()=>{this.subscribers=this.subscribers.filter(e=>e!==t)}}function init$1(){this.isChild?(this.postMessage(EMessageTypes.getInitContext),this.healthReporting()):this.initialized?this.healthMonitoring():setTimeout(()=>{this.initialized?this.dispatch(EFrameLinkEvents.init,null,!0):this.dispatch(EFrameLinkEvents.init,new Error("Cannot establish handshake"))},this.heartbeatInterval),window.addEventListener("message",this.handleMessage.bind(this),!1)}function useUtility(e,t){var r;return __awaiter$4(this,void 0,void 0,function*(){if(Utilities[e]){const n=e+"-"+Date.now();return this.postMessage(EMessageTypes.utility,{utility:e,data:t,requestId:n}),yield new Promise(e=>{const t=setInterval(()=>{this.responses[n]&&(e(this.responses[n]),delete this.responses[n],clearInterval(t))},50)})}this.errorAction&&this.errorAction(null==(r=this.intl)?void 0:r.formatMessage(errors.unsupportedUtility))})}_export$1({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});class AiwareFrameLink{constructor(e,t){this.init=init$1.bind(this),this.handleMessage=handleMessage.bind(this),this.postMessage=postMessage.bind(this),this.healthReporting=healthReporting.bind(this),this.healthMonitoring=healthMonitoring.bind(this),this.subscribe=subscribe.bind(this),this.reportActivity=reportActivity.bind(this),this.useUtility=useUtility.bind(this),this.initialized=!1,this.canSendMap={parent:[EMessageTypes.initContext,EMessageTypes.updateContext],child:[EMessageTypes.getInitContext,EMessageTypes.reportActivity,EMessageTypes.utility,EMessageTypes.heartbeat],common:[EMessageTypes.error,EMessageTypes.response]},this.isChild=!e,this.origin=e,this.context={baseUrl:null,authToken:null,language:null,userId:null,organizationId:null},this.contextReceivedResolve=null,this.contextReceived=new Promise(e=>{this.contextReceivedResolve=e}),this.subscribers=[],this.responses={},this.heartbeatInterval=t||5e3,this.heartbeatReceived=(new Date).getTime(),this.events=new Map,this.init()}on(e,n){if(!EFrameLinkEvents[e])throw new Error(`Unknown event type: \`${e}\``);this.events.set(e,function(e,...t){n(e,...t)})}dispatch(e,t,...n){this.events.has(e)&&null!=(e=this.events.get(e))&&e(t,...n)}static init({origin:n,subscribers:r,errorAction:i,intl:o,store:a}){return __awaiter$4(this,void 0,void 0,function*(){var e=new AiwareFrameLink(n);if(i&&(e.errorAction=i),a&&(e.store=a),r&&r.length)for(const t of r)e.subscribe(t);return n?o&&(e.intl=o):(yield e.contextReceived,e.initialized=!0),e})}}function __rest$1(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function __awaiter$3(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}const useStyles$2$2=makeStyles()((e,{titleColor:t,logo:n,activeColor:r,onClickLogo:i},o)=>({appBar:{top:0,left:0,right:0,display:"flex",position:"fixed",boxShadow:"none",borderBottom:"0.5px solid "+e.palette.divider,["& ."+o.logo]:{cursor:"pointer","& img":{width:"100%",height:"100%",objectFit:"scale-down",userSelect:"none"}},backgroundColor:e.palette.background.default},menuButton:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0",marginLeft:e.spacing(5)},margin:{marginRight:e.spacing(.4),display:"flex",alignItems:"center"},barIcon:{padding:e.spacing(.8)},iconButton:{padding:0},hamburgerIcon:{padding:e.spacing(1.4),width:32,height:32,WebkitMask:`url("${img$1D}") no-repeat 50% 50%`,backgroundColor:t},appLogo:{display:"inline-block",width:150,height:32,backgroundImage:`url("${n}")`,backgroundRepeat:"no-repeat",backgroundPosition:"left center",cursor:i?"pointer":"default"},title:{fontStyle:"normal !important",fontWeight:600,fontSize:"18px !important",lineHeight:"22px !important",letterSpacing:"0.225px !important",mixBlendMode:"normal",textTransform:"uppercase",color:t+" important",whiteSpace:"nowrap","&:hover":{cursor:"pointer"}},content:{height:"100%",flexGrow:1,display:"flex",flexWrap:"nowrap",flexDirection:"row",alignItems:"center",padding:e.spacing(0,3.2),"& > div":{display:"flex",flexWrap:"nowrap",flexDirection:"row"},["& ."+o.left]:{justifyContent:"flex-start"},["& ."+o.right]:{justifyContent:"flex-end"},["& ."+o.searchBarHolder]:{flexGrow:1},["& ."+o.appLogo]:{userSelect:"none"},["& ."+o.controllers]:{display:"flex",alignItems:"center"}},iconGroup:{display:"flex",justifyContent:"space-between",alignItems:"center"},iconGroupIcon:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},rightActionLabel:{fontWeight:400,fontSize:14,lineHeight:"16px",textDecoration:"none",color:"white",cursor:"pointer",display:"block"},noSelect:{userSelect:"none"},active:{opacity:1},smallOrgAvatar:{width:"30px !important",height:"30px !important",fontSize:"16px !important"},passive:{opacity:.8},icon:{width:"40px !important",height:"40px !important",padding:0,backgroundPosition:"center",backgroundRepeat:"no-repeat"},logo:{},left:{},right:{},searchBarHolder:{},controllers:{},appIcon:{height:"32px",width:"32px",borderRadius:"50%",marginLeft:e.spacing(4.4),"&:hover":{cursor:"pointer"}},applicationIcon:{WebkitMask:`url("${img$15}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},veritoneLogo:{WebkitMask:`url("${img$1C}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openPanel:{backgroundImage:`url("${img$1g}") !important`},notificationIcon:{WebkitMask:`url("${img$8}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},applicationSettingsIcon:{WebkitMask:`url("${img$1v}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},dashboardIcon:{WebkitMask:`url("${img$a}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openNotificationPanel:{backgroundImage:`url(${img$1f}) !important`},orgIcon:{borderRadius:"50%",width:30,height:30,backgroundRepeat:"no-repeat",backgroundPosition:"center"},logoIcon:{WebkitMask:`url("${n}") no-repeat 50% 50%`,backgroundColor:t},helpIcon:{WebkitMask:`url("${img$9}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openHelp:{backgroundImage:`url(${img$1e}) !important`},orgButton:{padding:e.spacing(2)},panelActive:{borderRadius:"50%",backgroundColor:r},notificationBadge:{"& > span":{top:e.spacing(2),right:e.spacing(2)}},appBarSkeleton:{position:"absolute",zIndex:1005,height:55},marginRightSkeleton:{marginRight:e.spacing(4)},leftContainerSkeleton:{display:"flex",alignItems:"center",paddingLeft:e.spacing(5)}})),useStyles$1$2=makeStyles()((e,t,n)=>({popover:{marginTop:18,["& "+n.helpItemText]:{padding:e.spacing(0),fontSize:15},["& "+n.versionWrapper]:{padding:e.spacing(3.2,0),["& "+n.versionText]:{fontSize:12,color:"#757575"}}},helpItemText:{},versionWrapper:{},versionText:{},help:{},barIcon:{padding:e.spacing(.8)},icon:{width:"40px !important",height:"40px !important",padding:e.spacing(0),backgroundPosition:"center",backgroundRepeat:"no-repeat"},helpIcon:{WebkitMask:`url("${img$9}") no-repeat 50% 50%`,backgroundColor:e.palette.background.default,"&:hover":{backgroundColor:e.palette.background.default}},list:{backgroundColor:e.palette.background.default},popoverColor:{backgroundColor:e.palette.background.default}})),Help=({onOpen:t,onClose:e,helpDocLink:n,helpDocCallback:r,supportCallback:i,displaySupportChat:o,displayChatWithSupport:a,desktopIconStyle:s})=>{var l=useStyles$1$2()["classes"];const[c,u]=react$1.exports.useState(null);const d=()=>{u(null),null!=e&&e()};var p=n||r,f=null==(f=window.config)?void 0:f.appVersion;return jsxRuntime.exports.jsxs("div",Object.assign({className:l.help},{children:[jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.KrqRIg",defaultMessage:"Help Center",description:"appbar tooltip: help-center button text"}),"aria-label":"help"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:l.barIcon,onClick:e=>{u(e.currentTarget),null!=t&&t()},"data-veritone-element":"help-button","data-testid":"help-button","aria-label":"help",size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(l.icon,l.helpIcon),style:s})}))})),jsxRuntime.exports.jsx(Popover$1,Object.assign({open:Boolean(c),anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},onClose:d,className:l.popover,classes:{paper:l.popoverColor},disableScrollLock:!0},{children:jsxRuntime.exports.jsxs(List$2,Object.assign({disablePadding:!0,className:l.list},{children:[p&&jsxRuntime.exports.jsxs(ListItemButton$1,Object.assign({onClick:()=>{d(),null!=r&&r(),n&&window.open(n,"_blank")},"data-veritone-element":"show-help-doc-button","data-testid":"show-help-doc-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(AppBarArticleIcon,{})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.MSM3Vh",defaultMessage:"View Help Docs",description:"help tooltip: text for documentation"}),classes:{root:l.helpItemText}})]})),a&&jsxRuntime.exports.jsxs(ListItemButton$1,Object.assign({onClick:()=>{null!=i&&i(),sdkEventManager.dispatch(SdkEvents.openSupport),u(null)},"data-veritone-element":"open-chat-with-support-button","data-testid":"app-bar-show-chat-with-support-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(Chat,{fontSize:"small"})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-chat-with-support.MBM3Vh2",defaultMessage:"Chat with Support",description:"help tooltip: salesforce chat with support"}),classes:{root:l.helpItemText}})]})),o&&jsxRuntime.exports.jsxs(ListItemButton$1,Object.assign({onClick:()=>{null!=i&&i(),u(null)},"data-veritone-element":"open-support-chat-button","data-testid":"support-chat-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(AppBarInAppGuidance,{})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.8aLpuV",defaultMessage:"In-App Guidance",description:"help tooltip: text for documentation"}),classes:{root:l.helpItemText}})]})),f&&jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx(ListItem$1,Object.assign({className:l.versionWrapper},{children:jsxRuntime.exports.jsx(ListItemText$1,{primary:f,classes:{primary:l.versionText}})}))]})]}))}))]}))},namespace$5="users",userSelector=e=>null==e?void 0:e.aiWareHeaderBar,rootSelector=e=>e,notificationStatusSelector=e=>null!=e&&e.osNotificationPanel?null==e?void 0:e.osNotificationPanel.status:"",useStyles$k=makeStyles()(e=>({title:{paddingTop:e.spacing(5.5)},contentText:{fontSize:14},dialogActions:{marginBottom:e.spacing(3),paddingRight:e.spacing(5)},signOutButton:{height:34,marginRight:e.spacing(1)},staySignedInButton:{height:34}})),LOGOUT_CALL_LIMIT=1;let logoutCallCounter=0;const RESET_IDLE_TIMER_CALL_LIMIT=1,MINUTES_BEFORE_SESSION_EXPIRATION=3;let timer;const SessionTimeout=e=>{const t=e["test"],n=useDispatch();e=useStyles$k().classes;const r=useSelector(isIdleSelector);var i=useSelector(userSelector$2);const o=useSelector(sessionTokenSelector),a=useSelector(loginUrlSelector),s=useSelector(callLogoutSelector),l=useSelector(clickedLogoutSelector),c=null==i?void 0:i.tokenExpiration,u=useSelector(callResetIdleTimerSelector);i=useSelector(sessionTimeoutSelector)||60;const d=useSelector(reloadPageSelector),p=useSelector(resetIdleTimerCallCounterSelector),[f,h]=react$1.exports.useState(t?5:60),[m,g]=react$1.exports.useState(new Date),[y,$]=react$1.exports.useState(),[v,x]=react$1.exports.useState(),[b,C]=react$1.exports.useState(!1),[S,w]=react$1.exports.useState(!1),_=react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setIsIdle,value:e,ephemeral:!0,contentType:"json"}))},[n]),T=(react$1.exports.useEffect(()=>{n(getSessionTimeout(o))},[]),react$1.exports.useEffect(()=>{d&&window.location.replace("/")},[d]),react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setCallLogout,value:e,ephemeral:!0,contentType:"json"}))},[n])),E=react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setClickedLogout,value:e,ephemeral:!0,contentType:"json"}))},[n]),j=react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setCallResetIdleTimer,value:e,ephemeral:!0,contentType:"json"}))},[n]),I=react$1.exports.useCallback(()=>{logoutCallCounter++,T(!0);var e=l?500:5e3;n(logoutRequest({token:o})),setTimeout(()=>{window.location.href=a+"/#/?redirect="+window.location.href},t?2e3:e)},[T,n,o,a,l]);var R=react$1.exports.useCallback(()=>{logoutCallCounter++,_(!1),setTimeout(()=>{T(!0),E(!0),n(logoutRequest({token:o}))},500),setTimeout(()=>{window.location.href=a+"/#/?redirect="+window.location.href},500)},[T,n,o,a,E,_]);var O=()=>{_(!0),clearInterval(timer),timer=setInterval(()=>{h(e=>e-1)},1e3)},A=()=>{!r&&p<RESET_IDLE_TIMER_CALL_LIMIT&&j(!0)};const k=se(t?{timeout:5e3,onIdle:O,onAction:A,debounce:1e3,crossTab:!0,syncTimers:200}:{timeout:6e4*i,onIdle:O,onAction:A,debounce:i/4*6e4,crossTab:!0,syncTimers:200})["reset"],M=react$1.exports.useCallback(()=>{j(!1),k()},[j]),P=react$1.exports.useCallback(()=>{S&&(n(extendTokenRequest({token:o})),w(!1)),_(!1),M(),clearInterval(timer),setTimeout(()=>{h(t?5:60)},500)},[_,M,S,n,o]);return react$1.exports.useEffect(()=>{setTimeout(()=>{g(new Date)},1e3)},[m]),react$1.exports.useEffect(()=>{var e;c&&((e=new Date(c)).setMinutes(e.getMinutes()-MINUTES_BEFORE_SESSION_EXPIRATION),x(new Date(c)),$(e))},[c]),react$1.exports.useEffect(()=>{v&&v.getTime()<m.getTime()&&C(!0),y&&y.getTime()<m.getTime()&&w(!0)},[v,y,m]),react$1.exports.useEffect(()=>{b?I():S&&_(!0)},[v,y,S,b,I,_]),react$1.exports.useEffect(()=>{s&&logoutCallCounter<LOGOUT_CALL_LIMIT&&I()},[s,I]),react$1.exports.useEffect(()=>{r&&0===f&&(clearInterval(timer),setTimeout(()=>{h(10)},500),I())},[f,I,r]),react$1.exports.useEffect(()=>{!r&&u&&p===RESET_IDLE_TIMER_CALL_LIMIT&&M()},[u,r,p,M]),react$1.exports.useEffect(()=>{r||P()},[r,P]),jsxRuntime.exports.jsx(AIWareThemeProvider$1,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsxs(Dialog$1,Object.assign({open:r&&!l,"aria-labelledby":"session timeout dialog","aria-describedby":"session timeout dialog",disableEscapeKeyDown:!0,maxWidth:"xs","data-test":"session-timeout-dialog"},{children:[jsxRuntime.exports.jsx(DialogTitle$1,Object.assign({id:"session timeout dialog title",className:e.title},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.JEUssf",defaultMessage:"Session Timeout",description:"label session timeout dialog"})})),jsxRuntime.exports.jsx(DialogContent$1,{children:jsxRuntime.exports.jsx(DialogContentText$1,Object.assign({id:"session timeout dialog text",className:e.contentText},{children:s?l?null:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.l85HEz",defaultMessage:"You have been signed due to inactivity or due to your session being expired.",description:"signed out message"}):S?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.bDessH",defaultMessage:"Your session will expire soon. For your security, we'll automatically sign you out in {signOutTimer} seconds. Choose 'Stay Signed In' to continue or 'Sign Out' if you're done.",description:"label for idle warning expiring soon",values:{signOutTimer:f}}):jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.Ca6Qq0",defaultMessage:"You've been inactive for a while. For your security, we'll automatically sign you out in {signOutTimer} seconds. Choose 'Stay Signed In' to continue or 'Sign Out' if you're done.",description:"label for idle warning inactive for a while",values:{signOutTimer:f}})}))}),s?null:jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:e.dialogActions},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:R,color:"primary",variant:"outlined",className:e.signOutButton,"data-test":"sign-out-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.jN92ox",defaultMessage:"Sign Out",description:"label for sign out button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:P,color:"primary",variant:"contained",className:e.staySignedInButton,"data-test":"stay-signed-in-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.WvKhS2",defaultMessage:"Stay Signed In",description:"label for stay signed in button"})}))]}))]}))})})},appBarHeight=55,defaultAppBarZIndex=0,VERITONE_PANEL_ID="VERITONE_PANEL_ID",ORGANIZATION_PANEL_ID="ORGANIZATION_PANEL_ID",NOTIFICATION_PANEL_ID="NOTIFICATION_PANEL_ID",APPLICATION_PANEL_ID="APPLICATION_PANEL_ID",HELP_PANEL_ID="HELP_PANEL_ID",USER_APPLICATION_SETTINGS_PANEL="USER_APPLICATION_SETTINGS_PANEL",NOTIFICATION_BADGE_MAX_COUNT=20,HUB_APP_ID="9B774B0E-A5B1-452C-A0AA-4E2E64EAD2B3",getUserInfo=({appIcon:e="",currentUser:t})=>({appIcon:e,currentUser:null!=t&&t.organization?t:void 0});function NewAppBar({isEnableOrgPanel:e,zIndex:t=defaultAppBarZIndex,leftNav:n,onClickAppbarMenu:r,logoSrc:i,backgroundColor:o="rgb(32.9, 43.1, 47.8)",iconColor:a,title:s,help:l,notification:c=!0,userApplicationSettingsIcon:u,onClickOrgIcon:d,closeButton:p,onCloseSetting:f,onClose:h,onOpenSetting:m,onOpenHelpCenter:g,onOpenNotification:y,onOpenUserApplicationSettings:$,openSetting:v,organization:x={},panels:b=[],unseenCount:C,searchBarMountId:S,textColor:w,rightActions:_=[],applications:T=[],onClickAppSwitchIcon:E,displaySupportChat:j=!0,onDashboardClick:I,showDashboardIcon:R=!1,displayChatWithSupport:O=!0,disableGoHome:L,onClickLogo:A}){var k=tinycolor(o).isDark(),w=w||(k?"#fff":"#000"),k=k?"rgba(255,255,255,0.1)":"rgb(243,245,249)";const M=useStyles$2$2({titleColor:w,logo:i,activeColor:k,onClickLogo:A})["classes"],[P,N]=react$1.exports.useState([]);k=useSelector(userSelector)||{};const[D,F]=react$1.exports.useState(!0);var{appIcon:k,currentUser:V}=getUserInfo(k),H=useSelector(betaFeaturesSelector),B=useSelector(appIdSelector)===HUB_APP_ID;react$1.exports.useEffect(()=>("true"===localStorage.getItem("DEBUG")&&console.log("AppBar mounted"),()=>{"true"===localStorage.getItem("DEBUG")&&console.log("AppBar unmounted")}),[]),react$1.exports.useEffect(()=>{var e=b.map(e=>e.panelId);!e.length&&!P.length||isEqual$5(e,P)||N(e)},[b,P]);a={background:a||void 0};return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(SessionTimeout,{}),jsxRuntime.exports.jsx("div",{style:{height:appBarHeight}}),jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"appbar",className:M.appBar,style:{height:appBarHeight,background:o,zIndex:t}},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:M.menuButton},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-menu","data-testid":"app-bar-menu",className:M.iconButton,onClick:r,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.hamburgerIcon)})}))})),!!k&&""!==k&&jsxRuntime.exports.jsx("div",Object.assign({className:M.margin},{children:jsxRuntime.exports.jsx("img",{className:M.appIcon,src:k,alt:"appIcon"})})),jsxRuntime.exports.jsxs("div",Object.assign({className:M.content,style:{color:w}},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.left,M.noSelect),onClick:L&&!A?void 0:function(){A?A():window.location.href="/"},"data-test":"appbarTitle","data-testid":"appbarTitle"},{children:i?jsxRuntime.exports.jsx("span",{className:M.appLogo}):jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:M.title},{children:s}))})),jsxRuntime.exports.jsx("div",{"data-test":"appbarSearch",id:S||"search-bar-id",className:M.searchBarHolder}),jsxRuntime.exports.jsx("div",Object.assign({className:M.right},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:M.controllers},{children:[0<_.length&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.iconGroup,M.noSelect)},{children:_.map(({label:e,onClick:t,isActive:n=!0},r)=>jsxRuntime.exports.jsx("div",Object.assign({className:M.iconGroupIcon},{children:jsxRuntime.exports.jsx("span",{onClick:e=>t?t(e):null,className:classNames(M.rightActionLabel,n?M.active:M.passive),dangerouslySetInnerHTML:{__html:e}})}),"label-"+r))})),R&&jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.dashboard-button",defaultMessage:"aiWARE Dashboard",description:"aiWARE Dashboard label"}),"aria-label":"dashboard"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-dashboard-button",className:M.barIcon,onClick:I,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.dashboardIcon),style:a})}))})),l&&jsxRuntime.exports.jsx("div",Object.assign({"data-test":"app-bar-help-container","data-testid":"app-bar-help-container",className:classNames(M.margin,{[M.panelActive]:P.includes(HELP_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Help,{tooltipTitle:"",helpDocLabel:"View Help Docs",chatWithSupportLabel:"Chat with Support",supportLabel:"In-App Guidance",helpDocCallback:()=>{null!=g&&g()},supportCallback:f,titleColor:w,displaySupportChat:j,displayChatWithSupport:O,desktopIconStyle:a})})),c&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.margin,{[M.panelActive]:P.includes(NOTIFICATION_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.KFXxNr",defaultMessage:"Notifications",description:"appbar tooltip: notification button text"}),"aria-label":"notifications"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:M.barIcon,onClick:y,"data-test":"app-bar-notification-button",size:"large","data-testid":"app-bar-notification-button"},{children:jsxRuntime.exports.jsx(Badge$1,Object.assign({badgeContent:C,max:NOTIFICATION_BADGE_MAX_COUNT,color:"primary","data-test":"app-bar-notification-badge",className:M.notificationBadge},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.notificationIcon,{[M.openNotificationPanel]:null==v?void 0:v.openNotificationPanel}),style:a})}))}))}))})),H&&u&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.margin,{[M.panelActive]:P.includes(USER_APPLICATION_SETTINGS_PANEL)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.application-settings-button",defaultMessage:"Application Settings",description:"appbar tooltip: application settings button text"}),"aria-label":"application-settings"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:M.barIcon,onClick:$,size:"large","data-testid":"app-bar-user-application-settings-button"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.applicationSettingsIcon)})}))}))})),1<T.length&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames({[M.panelActive]:P.includes(APPLICATION_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.3v499g",defaultMessage:"Applications",description:"applications tooltip: text for applications button"}),"aria-label":"applications"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-switch-app-button",className:M.barIcon,onClick:E,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.applicationIcon,{[M.openPanel]:null==v?void 0:v.openAppSwitchPanel}),style:a})}))}))})),(x.imageUrl||x.name)&&e&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.margin,{[M.panelActive]:P.includes(ORGANIZATION_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.7qOwBg",defaultMessage:"Organization",description:"organization tooltip: text for documentation"}),"aria-label":"organization"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-org-button",className:M.barIcon+" "+M.orgButton,onClick:d,size:"large"},{children:x.imageUrl&&D?jsxRuntime.exports.jsx("img",{src:x.imageUrl,className:classNames(M.orgIcon),onError:function(){F(!1)},alt:"org_icon"}):jsxRuntime.exports.jsx(Avatar$1,Object.assign({className:M.smallOrgAvatar,variant:"circular","data-testid":"app-bar-avatar"},{children:getSortName(x.name||"")}))}))}))})),V&&!B&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames({[M.panelActive]:P.includes(VERITONE_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.eOxvvM",defaultMessage:"Utilities",description:"utilities tooltip: text for documentation"}),"aria-label":"utilities"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-setting-button","data-testid":"app-bar-setting-button",className:M.barIcon,onClick:m,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.veritoneLogo,{[M.openPanel]:null==v?void 0:v.openVeritonePanel}),style:a})}))}))})),p&&h&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:h,"data-test":"app-bar-close-button",size:"large","data-testid":"app-bar-close-button"},{children:jsxRuntime.exports.jsx(default_1$6,{htmlColor:w})}))}))})]}))}))]}))]}))]})}const GET_CURRENT_USER=`os-app-bar/${namespace$5}/get current user`,GET_CURRENT_USER_SUCCESS=`os-app-bar/${namespace$5}/get current user success`,GET_CURRENT_USER_FAIL=`os-app-bar/${namespace$5}/get current user fail`,GET_CURRENT_APP_ICON=`os-app-bar/${namespace$5}/get current app icon`,GET_CURRENT_APP_ICON_SUCCESS=`os-app-bar/${namespace$5}/get app icon success`,getCurrentUser=()=>({type:GET_CURRENT_USER}),getCurrentUserFail=()=>({type:GET_CURRENT_USER_FAIL}),getCurrentUserSuccess=e=>({type:GET_CURRENT_USER_SUCCESS,payload:e}),getCurrentAppIcon=({applicationId:e})=>({type:GET_CURRENT_APP_ICON,payload:{applicationId:e}}),getCurrentAppIconSuccess=e=>({type:GET_CURRENT_APP_ICON_SUCCESS,payload:e}),initialState$5={currentUser:{},fetched:!1,fetching:!1,error:!1};function userReducer(e,t){if(void 0===e)return initialState$5;switch(t.type){case GET_CURRENT_USER_FAIL:return Object.assign(Object.assign({},e),{fetching:!1,fetched:!0,error:!0});case GET_CURRENT_USER_SUCCESS:return Object.assign(Object.assign({},e),{currentUser:t.payload,fetching:!1,fetched:!0,error:!1});case GET_CURRENT_APP_ICON_SUCCESS:return Object.assign(Object.assign({},e),{appIcon:t.payload});default:return e}}const nameSpace="aiWareHeaderBar",BOOTING="APP_BAR/booting",BOOTED="APP_BAR/booted",onBooted=()=>({type:BOOTED}),getApplicationInfo=(t,n,r)=>__awaiter$3(void 0,void 0,void 0,function*(){var e=`
|
|
1456
|
+
`,l={entityId:t,entityType:e};try{a=yield baseGraphQLApi({query:s,operationName:n,variables:l,graphEndpoint:u,token:d})}catch(e){i=!0}if(a.errors){if(0===(o=a.errors.filter(({message:e})=>e.includes(' does not exist in "AuthPermissionType" enum.')).map(({message:e})=>{var t='Value "',n=e.substring(t.length).indexOf('"');return e.substring(t.length,t.length+n)})).length)throw i=!0,a={},new Error((null==(f=(a.errors||[])[0])?void 0:f.message)||"Error")}else i=!0}const c=a.data||{};return Object.keys(c).map(e=>{var t=e.split("__");return 3===t.length?{fetchedTargetEntityType:t[0],fetchedTargetGroupType:t[1],fetchedTargetAction:t[2],hasPermission:c[e][0].hasPermission}:{fetchedTargetEntityType:t[0],fetchedTargetAction:t[1],hasPermission:c[e][0].hasPermission}}).reduce((e,t)=>{var n=t.fetchedTargetGroupType||t.fetchedTargetEntityType;return t.hasPermission&&(e[n]||(e[n]={}),e[n][t.fetchedTargetAction]=t.hasPermission),e},{})})}function getMyRights(t){return __awaiter$5(this,void 0,void 0,function*(){var e="getMyRights";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getMyRights {\n myRights {\n operations\n }\n }\n ",operationName:e},t))).myRights.operations})}const selectPermissionsByEntity=(t,n,r)=>e=>{return t&&n&&(e=e[namespace$7].permissionsByObject[t])&&e[n]?e[n][r||t]:void 0},selectMyRights=e=>e[namespace$7].rights;var index=Object.freeze({__proto__:null,selectPermissionsByEntity:selectPermissionsByEntity,selectMyRights:selectMyRights});function*fetchObjectPermissions(t){var{entityId:t,entityType:n}=t.payload,i=yield select(selectApiConfigs$2),e=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector),a=yield select(selectIsOLPEnabled),r=yield select(selectPermissionsByEntity(n,t));if(!r||"success"!==r.status&&"pending"!==r.status){yield put(actions$6.fetchObjectPermissionsStarted({entityId:t,entityType:n}));try{let r={};if(a)r=yield call$j(getObjectPermissions,e,o,{entityType:n,entityId:t});else{let e=yield select(selectMyRights);if("success"!==e.status&&"pending"!==e.status){yield put(actions$6.fetchMyRightsStarted);try{var s=yield call$j(getMyRights,i);yield put(actions$6.fetchMyRightsSucceeded(s)),e=yield select(selectMyRights)}catch(e){throw yield put(actions$6.fetchMyRightsFailed),e}}else"pending"===e.status&&(yield take([actions$6.fetchMyRightsFailed,actions$6.fetchMyRightsSucceeded]),e=yield select(selectMyRights));const l=e["myRights"];getPermissionTypesToQuery(n).forEach(n=>{var{action:e,resource:t}=n.targetActions.reduce((e,t)=>(e.action[t.targetAction]=convertPermissionsToRights(t.resource||n.targetObjectType,t.targetAction,l),e.resource=t.resource,e),{action:{}});r[t||n.targetObjectType]=e})}yield put(actions$6.fetchObjectPermissionsSucceeded({entityId:t,entityType:n,permissions:r}))}catch(e){actions$6.fetchObjectPermissionsFailed({entityId:t,entityType:n})}}}function*watchPermissionsStart(){yield takeEvery$1(actions$6.fetchObjectPermissionsStart.type,fetchObjectPermissions)}function*rootSaga$2(){yield all$2([watchPermissionsStart()])}function getPermissionsModule(){return{id:namespace$7,reducerMap:{[namespace$7]:permissionsReducer},sagas:[rootSaga$2],initialActions:[]}}const useOrganizationPermissions=e=>{const t=react$1.exports.useRef(),n=useDispatch(),r=null==(o=useSelector(userSelector$2).organization)?void 0:o.organizationId,i=useSelector(selectPermissionsByEntity(EAuthResourceType.Organization,String(r),e));react$1.exports.useEffect(()=>{!r||i&&"failure"!==i.status&&"idle"!==i.status&&t.current===r||(t.current=r,n(actions$6.fetchObjectPermissionsStart({entityType:EAuthResourceType.Organization,entityId:String(r)})))},[n,r,i]);var o=react$1.exports.useCallback(e=>{return!isPermissionLoading(i)&&hasPermission(i,e)},[i]);return{permissions:i,hasPermission:o}},nameSpace$1="@helpPanel",updateSelectedTab=createAction(nameSpace$1+"/UPDATE_SELECTED_TAB",function(e,t){return{payload:{selectedTabId:e,tabLink:t}}}),setCustomKnowledgeBaseUrl=createAction(nameSpace$1+"/SET_CUSTOM_KNOWLEDGE_BASE_URL",function(e){return{payload:{url:e}}}),setCustomDocsUrl=createAction(nameSpace$1+"/SET_CUSTOM_DOCS_URL",function(e){return{payload:{url:e}}}),initialState$7={selectedTabId:0,tabLink:"https://support.veritone.com/",customKnowledgeBaseUrl:"",customDocsUrl:""},getTabLinkReducer=createReducer(initialState$7,e=>{e.addCase(updateSelectedTab,(e,t)=>Object.assign(Object.assign({},e),{tabLink:t.payload.tabLink,selectedTabId:t.payload.selectedTabId})),e.addCase(setCustomKnowledgeBaseUrl,(e,t)=>Object.assign(Object.assign({},e),{customKnowledgeBaseUrl:t.payload.url})),e.addCase(setCustomDocsUrl,(e,t)=>Object.assign(Object.assign({},e),{customDocsUrl:t.payload.url}))});function*helpSaga(){yield takeEvery$1("OPEN_HELP_LINK",function*(){var e=yield select(e=>e.helpPanel.tabLink);yield put(openLinkOnNewTab({url:e}))})}const namespace$6="helpPanel",helpCenterSelectedTabIdSelector=e=>null!=e&&e[namespace$6]?e[namespace$6].selectedTabId:0,customDocsUrlSelector=e=>null!=e&&e[namespace$6]?e[namespace$6].customDocsUrl:"",customKnowledgeBaseUrlSelector=e=>null!=e&&e[namespace$6]?e[namespace$6].customKnowledgeBaseUrl:"";function getHelpPanelModule(){return{id:"help",reducerMap:{[namespace$6]:getTabLinkReducer},sagas:[helpSaga],initialActions:[]}}var knowledgeBaseUrl$1="https://docs.veritone.com/help/index.html",documentUrl$1="https://docs.veritone.com",config={knowledgeBaseUrl:knowledgeBaseUrl$1,documentUrl:documentUrl$1};const useStyles$m=makeStyles()(e=>({root:{height:"calc(100% - 110px)",textAlign:"left","& .Sdk-MuiTab-root.Mui-selected":{color:e.palette.text.primary,fontWeight:600}},tabs:{padding:e.spacing(2.4,6,0,6)},tabPanels:{width:"100%",height:"100%"},aiWareIcon:{position:"relative",maxHeight:50,opacity:"inherit",padding:e.spacing(4,3.2,0,3.2),display:"flex",justifyContent:"flex-end"},customTabs:{margin:e.spacing(0,4)},kbRoot:{height:"100%",textAlign:"left"},loadingContainer:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white"},kbToolBarBox:{padding:e.spacing(6,6,1.6,6)},kbTabContent:{height:"calc(100% - 92px)"},kbTabPanel:{padding:e.spacing(6)},dRoot:{height:"100%",width:"100%"},dNavBar:{height:"100%",overflow:"hidden",background:"#F4F4F4"},dTitle:{color:"#2A323C",fontWeight:600,fontSize:"18px",lineHeight:"24px",padding:e.spacing(3.2)},dContent:{height:"100%",width:"100%",position:"relative"},dMenu:{overflowY:"auto",height:"calc(100% - 52px)"},drawerContainer:{display:"flex",height:"100%",background:e.palette.background.default},tabContainer:{borderRight:"0.5px solid #D5DFE9",overflow:"hidden",height:"100%",width:"100%"},tabName:{borderBottom:"0.5px solid #D5DFE9",display:"flex",justifyContent:"space-between",alignItems:"center",height:"64px",padding:e.spacing(0,6)},actionIcons:{margin:e.spacing(-2.4)},tabContent:{height:"calc(100vh - 57px - 60px)",overflowY:"auto",overflowX:"hidden"}})),documentUrl=config.documentUrl,Documentation=({path:e=documentUrl})=>{var t=useStyles$m()["classes"];const[n,r]=react$1.exports.useState(!0);return jsxRuntime.exports.jsxs("div",Object.assign({className:classNames(t.dRoot,"hide-in-percy")},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),jsxRuntime.exports.jsx("iframe",{"data-cy":"docs-iframe",title:"Document Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){setTimeout(()=>{r(!1)},1e3)}})]}))},knowledgeBaseUrl=config["knowledgeBaseUrl"];function Knowledgebase({path:e=knowledgeBaseUrl}){var t=useStyles$m()["classes"];const[n,r]=react$1.exports.useState(!0);return jsxRuntime.exports.jsxs("div",Object.assign({className:t.kbRoot},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),jsxRuntime.exports.jsx("iframe",{"data-cy":"knowledgebase-iframe",title:"Knowledgebase Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){r(!1)}})]}))}const defaultLocale="en-us",tabsList=[{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-help-panel.au1+VZ",defaultMessage:"Knowledgebase",description:"Help Panel: Knowledgebase tab label"}),disabled:!1,url:"https://support.veritone.com/"},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-help-panel.8bnkm8",defaultMessage:"Documentation",description:"Help Panel: Documentation tab label"}),disabled:!1,url:"https://docs.veritone.com/#/aiware/"}];function HelpCenter$1(){var e=useSelector(initialConfigSelector),t=useSelector(customKnowledgeBaseUrlSelector),n=useSelector(customDocsUrlSelector),r=useSelector(helpCenterSelectedTabIdSelector),i=useSelector(e=>null==e?void 0:e.panels),o=useStyles$m()["classes"],[a]=react$1.exports.useState(defaultLocale);const s=useDispatch();i=null==i?void 0:i.find(e=>"CUSTOM_HELP_PANEL_ID"===e.panelId),t=i&&t?t:e.knowledgeBaseUrl,i=i&&n?n:e.docsURL;return jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getHelpPanelModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,Object.assign({locale:a},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.drawerContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({id:"setting-content",className:o.tabContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.tabContent},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.root},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.tabPanels},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:o.customTabs},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:r,onChangeTab:e=>{s(updateSelectedTab(e,tabsList[e].url))},tabsList:tabsList})})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:o.tabPanels},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:0},{children:jsxRuntime.exports.jsx(Knowledgebase,{path:t})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:1},{children:jsxRuntime.exports.jsx(Documentation,{path:i})}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:o.aiWareIcon},{children:jsxRuntime.exports.jsx("img",{src:img$D,alt:"icon",draggable:"false"})}))]}))}))}))}))}))}))}))}var PermissionChangedAction,WidgetsStatus,index_esm$3=Object.freeze({__proto__:null,HelpCenterPanel:HelpCenter$1,customDocsUrlSelector:customDocsUrlSelector,customKnowledgeBaseUrlSelector:customKnowledgeBaseUrlSelector,helpCenterSelectedTabIdSelector:helpCenterSelectedTabIdSelector,setCustomDocsUrl:setCustomDocsUrl,setCustomKnowledgeBaseUrl:setCustomKnowledgeBaseUrl,updateSelectedTab:updateSelectedTab});class DataCenter{openImporterPanel(){store$7.dispatch(mountPanel$1({panelId:"DATA_CENTER_IMPORTER",microFrontend:{name:"DATA_CENTER_IMPORTER",config:{name:"Local Importer"}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"large",zIndex:1e3,dimmed:0}}))}}class AiwareSDKHelpers{isURLValid(e=""){let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}unmountAllPanel(){store$7.dispatch(unmountAllPanel(""))}}!function(e){e.GRANTED="granted",e.REVOKED="revoked"}(PermissionChangedAction=PermissionChangedAction||{});class SdkEventsManager extends AiwareSDKHelpers{constructor(){super(...arguments),this.events=new Map}on(e,n){if(!SdkEvents[e])throw new SdkError(`Unknown event type: \`${e}\``);this.events.set(e,function(e,...t){n(e,...t)})}off(e){this.events.delete(e)}dispatch(e,t,...n){this.events.has(e)&&this.events.get(e)(t,...n)}createError(e){return new SdkError(e)}}class SdkError extends Error{constructor(e,t="error"){super("[AiwareJS SDK error]: "+e),this.type="error",this.type=t}}const sdkEventManager=new SdkEventsManager;class HelpCenter extends AiwareSDKHelpers{constructor({actions:e}){super(),this.CUSTOM_HELP_PANEL_ID="CUSTOM_HELP_PANEL_ID",this.actions=e}getPanelConfig(){return{helpPanelMicroFrontend:{name:"HELP_PANEL",config:{name:"Help panel",dataId:"helpDataId",type:"SIMPLE_PANEL"}},helpPanelConfig:{panelId:this.CUSTOM_HELP_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,size:"large",header:{divider:!0,title:"HELP CENTER",actions:[{iconUrl:img$V,action:{type:"OPEN_HELP_LINK"}}]}}}}mountHelpPanel(){var{helpPanelMicroFrontend:e,helpPanelConfig:t}=this.getPanelConfig();store$7.dispatch(mountPanel$1({panelId:this.CUSTOM_HELP_PANEL_ID,microFrontend:e,panelConfig:t}))}panels(){return(null===store$7||void 0===store$7?void 0:store$7.getState()).panels}isCustomHelpPanelOpen(){return!!this.panels().find(e=>e.panelId===this.CUSTOM_HELP_PANEL_ID)}handleCustomDocsUrl(e){this.isURLValid(e)&&(store$7.dispatch(this.actions.setCustomDocsUrlAction(e)),store$7.dispatch(this.actions.updateSelectedTabAction(1,"")))}handleCustomKnowledgeBaseUrl(e){this.isURLValid(e)&&(store$7.dispatch(this.actions.setCustomKnowledgeBaseUrlAction(e)),store$7.dispatch(this.actions.updateSelectedTabAction(0,"")))}openDocsPanel(e,t=!0){var n;e&&!this.isURLValid(e)?(n=new SdkError("Can not open the custom url! The url should be valid and start with http or https"),console.error(n.message),store$7.dispatch(this.actions.updateSelectedTabAction(1,""))):this.isCustomHelpPanelOpen()||(t&&this.unmountAllPanel(),this.mountHelpPanel(),e)?this.handleCustomDocsUrl(e):store$7.dispatch(this.actions.updateSelectedTabAction(1,""))}openKnowledgeBasePanel(e){var t;e&&!this.isURLValid(e)?(t=new SdkError("Can not open the custom url! The url should be valid and start with http or https"),console.error(t.message),store$7.dispatch(this.actions.updateSelectedTabAction(0,""))):this.isCustomHelpPanelOpen()||(this.unmountAllPanel(),this.mountHelpPanel(),e)?this.handleCustomKnowledgeBaseUrl(e):store$7.dispatch(this.actions.updateSelectedTabAction(0,""))}}function validateConfig(e){return e.applicationId||console.info("@aiware/js: applicationId is required. Go to developer app to find your application id."),e.baseUrl||console.info("@aiware/js: baseUrl is required. It defaults to the US Commercial environment which is https://api.us-1.veritone.com/v3/graphql"),e.knowledgeBaseURL&&e.knowledgeBaseUrl&&e.knowledgeBaseURL!==e.knowledgeBaseUrl||e.knowledgeBaseURL&&!e.knowledgeBaseUrl?(console.info("@aiware/js: knowledgeBaseURL is deprecated and scheduled to be removed in v3. Please use knowledgeBaseUrl instead."),Object.assign(Object.assign({},e),{knowledgeBaseUrl:e.knowledgeBaseURL})):e}const WIDGETS_FEATURE_KEY="widgets",initialState$6=(!function(e){e.idle="idle",e.mounting="mounting",e.unmounting="unmounting",e.error="error",e.eventing="eventing"}(WidgetsStatus=WidgetsStatus||{}),{value:[],status:WidgetsStatus.idle}),widgetsSelector=e=>e[name].value,callWidgetOnComplete=(e,t)=>{e=e.find(e=>e.widgetName===t);null!=e&&e.onComplete&&e.onComplete()},{name,reducer,actions:{mountWidget:mountWidgetAction,mountWidgetSuccess,mountWidgetError,unmountWidget:unmountWidgetAction,unmountWidgetSuccess,unmountWidgetFailure,triggerWidgetCallback,triggerWidgetCallbackSuccess}}=createSlice({name:WIDGETS_FEATURE_KEY,initialState:initialState$6,reducers:{mountWidget:(e,t)=>{e.value.push(t.payload),e.status=WidgetsStatus.mounting},mountWidgetSuccess:e=>{e.status=WidgetsStatus.idle},mountWidgetError:e=>{e.status=WidgetsStatus.error},triggerWidgetCallback:(e,t)=>{e.status=WidgetsStatus.eventing},triggerWidgetCallbackSuccess:e=>{e.status=WidgetsStatus.idle},unmountWidget:(e,t)=>{e.status=WidgetsStatus.unmounting},unmountWidgetSuccess:(e,t)=>{e.value=e.value.filter(e=>e.widgetId!==t.payload),e.status=WidgetsStatus.idle},unmountWidgetFailure:e=>{e.status=WidgetsStatus.error}}}),mountWidgetListenerFactory=l=>function*(){let a;const s={};yield takeEvery$1(mountWidgetAction.type,function*(e){try{var{widgetConfig:t={},widgetName:n,elementId:r}=null==e?void 0:e.payload,i=(yield call$j(l,n))||(()=>jsxRuntime.exports.jsx("div",{children:"Component Not Found."})),o=getElement(r,n);o.classList.add("aiware-el"),s[r]?a=s[r]:(a=client$1.createRoot(o),s[r]=a),a.render(jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider$1,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$7},{children:jsxRuntime.exports.jsx(i,Object.assign({},t))}))})})),yield put(mountWidgetSuccess())}catch(e){yield put(mountWidgetError())}}),yield takeEvery$1(e=>/\/booted$/.test(e.type),function*(e){var[e]=e.type.split("/");yield put(triggerWidgetCallback(e))}),yield takeEvery$1(unmountWidgetAction.type,function*(t){try{const e=yield select(e=>{return(null==(e=widgetsSelector(e).find(e=>e.widgetId===t.payload))?void 0:e.elementId)||""});setTimeout(()=>{s[e]&&s[e].unmount(),delete s[e]}),yield put(unmountWidgetSuccess(t.payload))}catch(e){yield put(unmountWidgetFailure())}}),yield takeEvery$1(triggerWidgetCallback("").type,function*(e){var t=yield select(widgetsSelector);callWidgetOnComplete(t,e.payload),yield put(triggerWidgetCallbackSuccess())})};function getWidgetsModule(e){return{id:name,reducerMap:{[name]:reducer},sagas:[mountWidgetListenerFactory(e)],initialActions:[]}}const mountWidget=(e,t)=>{var n=getUniqueID(),{name:e,elementId:r,config:i}=e;return e&&r&&i||console.error("[aiwarejs-error]: `mountWidget` function should include all the following params: name, elementId, config"),store$7.dispatch(mountWidgetAction({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n},unmountWidget=e=>(store$7.dispatch(unmountWidgetAction(e)),!0);function getDataModule(){return{id:"data",reducerMap:{data:(e,{type:t,payload:n})=>{return t===setData({}).type?[...e.filter(e=>e.id!==n.id),n]:e||[]}},sagas:[],initialActions:[]}}function handleEvents(n){function r(e){if(!e||"string"!=typeof e)throw new SdkError("Please provide a valid event name!");if(!SdkEvents[e])throw new SdkError("Unknown event: "+e)}return{on:function(e,t){r(e),n.on.call(n,e,t)},off:function(e){r(e),n.off.call(n,e)}}}const useStyles$1$3=makeStyles()(e=>({sdkSnackbarContainer:{"& svg":{fill:"white"}}}));function CustomSnackbar(){const n=useDispatch(),[e,t]=react$1.exports.useState([]),[r,i]=react$1.exports.useState(!1),[o,a]=react$1.exports.useState(void 0),{message:s,duration:l}=useSelector(snackbarSelector);var c=useStyles$1$3()["classes"],u=(react$1.exports.useEffect(()=>{null!==s&&void 0!==s&&s.content&&t(e=>[...e,s])},[s]),react$1.exports.useEffect(()=>{e.length&&!o?(a(Object.assign({},e[0])),t(e=>e.slice(1)),i(!0)):e.length&&o&&r&&(n(clearMessage()),i(!1))},[e,o,r,n]),(e,t)=>{"clickaway"!==t&&(i(!1),n(clearMessage()))});return jsxRuntime.exports.jsx(Snackbar$1,Object.assign({anchorOrigin:{vertical:"bottom",horizontal:"right"},open:r,autoHideDuration:l||3e3,onClose:u,TransitionProps:{onExited:()=>{a(void 0),n(clearMessage())}},className:c.sdkSnackbarContainer,"data-snackbarid":(null===o||void 0===o?void 0:o.key)||"na","data-testid":"snackbar.message."+((null===o||void 0===o?void 0:o.severity)||"na")},{children:jsxRuntime.exports.jsx(Alert$1,Object.assign({onClose:u,severity:null===o||void 0===o?void 0:o.severity,elevation:6,variant:"filled"},{children:null===o||void 0===o?void 0:o.content}))}),o?o.key:void 0)}const useStyles$l=makeStyles()(()=>({dialog:{top:"125px",overflowX:"hidden",overflowY:"hidden",display:"flex",alignItems:"center",flexDirection:"column"},container:{borderRadius:"4px",backgroundColor:"#fff",width:"430px",overflow:"hidden",outline:0,boxShadow:"0px 0px 7px rgba(0, 0, 0, .25)"},header:{textTransform:"capitalize"},appListContainer:{width:"100%"},orgName:{fontWeight:"bold"}})),ApplicationDialog=()=>{const[e,t]=react$1.exports.useState(null),[n,r]=react$1.exports.useState(0);var i=useSelector(userSelector$2),o=useStyles$l()["classes"];const a=useSelector(initialConfigSelector),s=a.applicationId,l=useSelector(applicationSelector),c=useSelector(switchApiSelector);var u=(null===l||void 0===l?void 0:l.application)||[],d=null===l||void 0===l?void 0:l.status;var p=[...u].sort(function(e,t){return(null==e?void 0:e.name)>(null==t?void 0:t.name)?1:(null==e?void 0:e.name)<(null==t?void 0:t.name)?-1:0}),f=u.findIndex(e=>e.id===s);useInterval(()=>{t(e=>e&&e-1)},e&&n<3?1e3:null),react$1.exports.useEffect(()=>{"success"!==(null===l||void 0===l?void 0:l.status)||1!==(null===l||void 0===l?void 0:l.application.length)||(null===l||void 0===l?void 0:l.application[0].id)===a.applicationId||e||(0===e?window.open(c+"/"+(null===l||void 0===l?void 0:l.application[0].id),"_self"):t(10))},[a,l,c,e]);return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(s)&&f<0&&"success"===d?jsxRuntime.exports.jsx(Modal$1,Object.assign({className:o.dialog,open:!0},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.container},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"application-dialog-title",className:o.header,variant:"h1",sx:{px:"30px",pt:"30px"}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-title",defaultMessage:"Application Not Available",description:"Title for modal"})})),jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"10px"}},{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message1",defaultMessage:"Looks like you switched organizations, your current application is not available in the current",description:"Description current application not available"})," ",jsxRuntime.exports.jsx("span",Object.assign({className:o.orgName},{children:null!=(f=null==i?void 0:i.organization)&&f.organizationName?i.organization.organizationName:""}))," ",jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message2",defaultMessage:"organization you are viewing.",description:"Description current application not available"})]})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message3",defaultMessage:"Please select from the available applications below to be redirected.",description:"Instructions for current application not available"})})),e&&jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"},onClick:()=>{r(e=>e+1)}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-countdown-message",defaultMessage:"You will be automatically forwarded to {appName} in {timeRemaining} seconds.",description:"Instructions for current application not available",values:{timeRemaining:e,appName:null==(d=u[0])?void 0:d.name}})})),jsxRuntime.exports.jsx("div",Object.assign({className:o.appListContainer},{children:jsxRuntime.exports.jsx(AppList,{title:"",selectedAppId:null,onSelectApplication:e=>{window.open(c+"/"+e,"_self")},applications:p,useGrid:!1,row:3})}))]}))})):null};function ApplicationDialogPreLoader(){var e=useSelector(authSelector);return null!=(e=null==e?void 0:e.user)&&e.token?jsxRuntime.exports.jsx(ApplicationDialog,{}):null}const ThemeInitializer=()=>(useTheme(),null),AppBarPreLoader=({store:e,onLoad:t})=>{var n=useSelector(authSelector);return null!=(n=null==n?void 0:n.user)&&n.token&&setTimeout(()=>{t(),e.addModules([getAppbarPanelModule()])},0),null},ID="openSupportChatButton",DATA_ATTR="open-support-chat-button";var SupportCenterPixel=()=>jsxRuntime.exports.jsx(Portal$1,{children:jsxRuntime.exports.jsx("div",{id:ID,"data-veritone-element":DATA_ATTR,style:{width:1,height:1,position:"fixed",right:55,bottom:20}})});const Preloader=({store:e})=>{const[t,n]=react$1.exports.useState(!1);return jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsxs(AIWareThemeProvider$1,{children:[jsxRuntime.exports.jsx(SupportCenterPixel,{}),jsxRuntime.exports.jsx(Provider$2,Object.assign({store:e},{children:jsxRuntime.exports.jsxs(AIWareIntlProvider,{children:[t&&jsxRuntime.exports.jsx(ApplicationDialogPreLoader,{}),!t&&jsxRuntime.exports.jsx(AppBarPreLoader,{store:e,onLoad:()=>{n(!0)}}),jsxRuntime.exports.jsx(CustomSnackbar,{})]})})),!t&&jsxRuntime.exports.jsx(ThemeInitializer,{})]})})};class RateLimiter{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}}const rateLimiter=new RateLimiter,createAuthHelpers=t=>({updateToken(e){e?t.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{t.dispatch(logout$1())},1e3)):t.dispatch(logout$1())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&t.dispatch(updateActivityStatus$1())}}),helpCenter=()=>{var e=new HelpCenter({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}},dataCenter=()=>{var e=new DataCenter;return{openImporterPanel:e.openImporterPanel.bind(e)}},unmountPanel=t=>e=>(t.dispatch(unmountPanel$1(e)),!0),hidePanel=t=>e=>(t.dispatch(hidePanel$1(e)),!0),mountPanel=o=>(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:r}=e;o.dispatch(mountPanel$1({microFrontend:e,panelId:n,panelConfig:r}));const i=[...(null==(e=null==r?void 0:r.header)?void 0:e.actions)||[],...(null==(e=null==r?void 0:r.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);r={id:n,sagas:[function*(){yield takeEvery$1(i.map(e=>e.type),function*(){var e=(yield select(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return o.addModule(r),n},mountPanelForResponse=t=>e=>mountPanelForResponse$1(e,t),attachSdkToWindow=e=>{var{init:e,store:t,aiwareEvents:n,registrySet:r}=e;!window||void 0!==window.aiware&&0!==Object.keys(window.aiware).length||(window.aiware={init:e,store:t,auth:createAuthHelpers(t),helpCenter:helpCenter(),dataCenter:dataCenter(),on:n.on,off:n.off,hidePanel:hidePanel(t),unmountPanel:unmountPanel(t),mountPanel:mountPanel(t),mountPanelForResponse:mountPanelForResponse(t),registry:r.registry,registryLookup:r.registryLookup,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,unmountWidget:unmountWidget,version:"undefined",commit:"fa61f5c21",releaseDate:"2023-10-22T23:23:17.288Z"})},checkAndDecodeBase64String=t=>{if(null==t||!t.trim())return t;try{return window.btoa(window.atob(t))==t?window.atob(t):t}catch(e){return t}},bootstrapSdk=e=>{var t=(null==e?void 0:e.registry)||{},n=(null==e?void 0:e.registryLookup)||Promise.resolve(null),r=handleEvents(sdkEventManager),i=store$7.getState(),n=(null!=i&&i.widgets||(store$7.addModules([getWidgetsModule(n),getPanelsModule(t,n),getDataModule(),getConfigModule(),getAuthModule(sdkEventManager),getPermissionsModule(),getSnackbarModule()]),(i=getElement("aiWARE")).classList.add("aiware-el"),t=client$1.createRoot(i),"_auth"===window.name?handleImplicitRedirect(window.location.hash,window.opener):t.render(jsxRuntime.exports.jsx(Preloader,{store:store$7}))),(e,t)=>{var n;"idle"===store$7.getState().configs.status&&((e=validateConfig(e))?(n=e["authToken"],n=checkAndDecodeBase64String(n||""),store$7.dispatch(getInitConfig(Object.assign(Object.assign({},e),{authToken:n,onComplete:t})))):console.error("@aiware/js initialization failed. Please pass valid configuration object."))});return attachSdkToWindow({init:n,store:store$7,aiwareEvents:r,registrySet:e}),{store:store$7,aiwareEvents:r,init:n}};var Et=Object.create,Ye=Object.defineProperty,bt=Object.getOwnPropertyDescriptor,gt=Object.getOwnPropertyNames,yt=Object.getPrototypeOf,wt=Object.prototype.hasOwnProperty,Lt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Pt=(t,n,r,i)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let e of gt(n))wt.call(t,e)||e===r||Ye(t,e,{get:()=>n[e],enumerable:!(i=bt(n,e))||i.enumerable});return t},St=(e,t,n)=>(n=null!=e?Et(yt(e)):{},Pt(!t&&e&&e.__esModule?n:Ye(n,"default",{value:e,enumerable:!0}),e)),je=Lt((e,t)=>{var n,r;r=function(e){function t(e){var t=o.get(e),n=void 0===t?e.size:t<1073741824?t+1:0;if(e.has(n))if(e.size<536870912)for(;e.has(n);)n=Math.floor(1073741824*Math.random());else{if(e.size>s)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(n);)n=Math.floor(Math.random()*s)}return i(e,n)}function n(e){var t=r(e);return e.add(t),t}var r,i,o,a,s=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,l=new WeakMap;i=function(e,t){return a.set(e,t),t},o=a=l,r=t;e.addUniqueNumber=n,e.generateUniqueNumber=t},"object"==typeof(n=e)&&typeof t<"u"?r(e):"function"==typeof define&&define.amd?define(["exports"],r):r((n=typeof globalThis<"u"?globalThis:n||self).fastUniqueNumbers={})}),M$1=(St(je()),"object"==("u"<typeof window?"undefined":typeof window)),I$1={setTimeout:M$1?setTimeout.bind(window):setTimeout,clearTimeout:M$1?clearTimeout.bind(window):clearTimeout,setInterval:M$1?setInterval.bind(window):setInterval,clearInterval:M$1?clearInterval.bind(window):clearInterval};function it(e){I$1.setTimeout=e.setTimeout,I$1.clearTimeout=e.clearTimeout,I$1.setInterval=e.setInterval,I$1.clearInterval=e.clearInterval}var Q$1={},Ae=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,Q$1[e]=Q$1[e]||[],Q$1[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){e.storageArea===window.localStorage&&e.key.substring(0,this.name.length)===this.name&&null!==e.newValue&&(e=JSON.parse(e.newValue),this.mc.port2.postMessage(e))}postMessage(e){if(this.closed)throw new Error("InvalidStateError");let t=JSON.stringify(e),n=this.name+":"+String(Date.now())+String(Math.random());window.localStorage.setItem(n,t),I$1.setTimeout(()=>{window.localStorage.removeItem(n)},500),Q$1[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){var e;this.closed||(this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage),e=Q$1[this.name].indexOf(this),Q$1[this.name].splice(e,1))}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},st="u"<typeof window?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:Ae;function ot(t=0){return new Promise(e=>I$1.setTimeout(e,t))}function Te(){return Math.random().toString(36).substring(2)}var Ie=class{options;channel;token=Te();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return!(this.reApply=!0);let n=!(this.isApplying=!0),e=e=>{var{token:e,action:t}=e.data;e!==this.token&&(0===t&&e>this.token&&(n=!0),1===t)&&(n=!0)};this.channel.addEventListener("message",e);try{return this.sendAction(0),await ot(this.options.responseTime),this.channel.removeEventListener("message",e),this.isApplying=!1,n?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let i=!1,o=null;return new Promise(t=>{let n=()=>{if(!i){i=!0;try{I$1.clearInterval(o)}catch{}var e=this.intervals.indexOf(o);0<=e&&this.intervals.splice(e,1),this.channel.removeEventListener("message",r),t()}},r=(o=I$1.setInterval(()=>{this.apply().then(()=>{this.isLeader&&n()})},this.options.fallbackInterval),this.intervals.push(o),e=>{e=e.data.action;2===e&&this.apply().then(()=>{this.isLeader&&n()})});this.channel.addEventListener("message",r)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;var e=e=>{e=e.data.action;0===e&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership(),this.deferred)}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>I$1.clearInterval(e))}catch{}}}},Ee=class{channel;options;elector;token=Te();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){var t=e["channelName"];this.options=e,this.channel=new st(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new Ie(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{var{action:e,token:t,data:n}=e.data;switch(e){case 3:this.registry.set(t,2);break;case 4:this.registry.delete(t);break;case 5:this.idle(t);break;case 6:this.active(t);break;case 7:this.prompt(t);break;case 8:this.start(t);break;case 9:this.reset(t);break;case 10:this.activate(t);break;case 11:this.pause(t);break;case 12:this.resume(t);break;case 13:this.options.onMessage(n)}}),this.send(3)}get isLeader(){if(this.elector)return this.elector.isLeader;throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.')}prompt(e=this.token){this.registry.set(e,0);var t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);var t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);var t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},at=M$1?document:null,xe=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function ct(t,n){let r;function e(...e){r&&clearTimeout(r),r=setTimeout(()=>{t(...e),r=null},n)}return e.cancel=function(){clearTimeout(r)},e}function be(n,r){let i=0;return function(...e){var t=(new Date).getTime();if(!(t-i<r))return i=t,n(...e)}}var v$1=()=>Date.now(),Z=2147483647;function se({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:L=at,events:N=xe,timers:D=void 0,immediateEvents:r=[],onPresenceChange:F=()=>{},onPrompt:V=()=>{},onIdle:H=()=>{},onActive:B=()=>{},onAction:U=()=>{},onMessage:i=()=>{},debounce:o=0,throttle:a=0,eventsThrottle:z=200,startOnMount:s=!0,startManually:l=!1,stopOnIdle:W=!1,crossTab:c=!1,name:G="idle-timer",syncTimers:u=0,leaderElection:q=!1,disabled:d=!1}={}){let K=react$1.exports.useRef(v$1()),Y=react$1.exports.useRef(v$1()),p=react$1.exports.useRef(null),f=react$1.exports.useRef(null),h=react$1.exports.useRef(0),m=react$1.exports.useRef(0),g=react$1.exports.useRef(0),y=react$1.exports.useRef(0),$=react$1.exports.useRef(!1),v=react$1.exports.useRef(!1),x=react$1.exports.useRef(!1),b=react$1.exports.useRef(!0),Q=react$1.exports.useRef(!1),C=react$1.exports.useRef(null),S=react$1.exports.useRef(null),w=react$1.exports.useRef(e),_=react$1.exports.useRef(0),X=(react$1.exports.useEffect(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(Z<=e)throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${Z}.`);if(Z<=t)throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${Z}.`);if(Z<=n)throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${Z}.`);if(e<=n)throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);n?(w.current=e-n,_.current=n):(w.current=e,_.current=t),b.current||l||d||($.current&&(E.current(null,P),S.current)&&S.current.active(),M())},[e,t,n,l,d]),react$1.exports.useRef(W)),J=(react$1.exports.useEffect(()=>{X.current=W},[W]),react$1.exports.useRef(r)),ee=react$1.exports.useRef(L),te=react$1.exports.useRef([...new Set([...N,...r]).values()]),T=react$1.exports.useRef(d),ne=(react$1.exports.useEffect(()=>{T.current=d,b.current||(d?me():l||M())},[d]),react$1.exports.useRef(F)),re=(react$1.exports.useEffect(()=>{ne.current=F},[F]),react$1.exports.useRef(V)),ie=(react$1.exports.useEffect(()=>{re.current=V},[V]),react$1.exports.useRef(H)),E=(react$1.exports.useEffect(()=>{ie.current=H},[H]),react$1.exports.useRef(B)),oe=(react$1.exports.useEffect(()=>{E.current=B},[B]),react$1.exports.useRef(U)),j=(react$1.exports.useEffect(()=>{oe.current=U},[U]),react$1.exports.useRef(i)),I=(react$1.exports.useEffect(()=>{j.current=i},[i]),react$1.exports.useMemo(()=>{var e=(e,t)=>oe.current(e,t);return 0<o?ct(e,o):0<a?be(e,a):e},[a,o])),ae=react$1.exports.useRef(),R=(react$1.exports.useEffect(()=>{c&&u&&(ae.current=be(()=>{S.current.active()},u))},[c,u]),()=>{null!==C.current&&(I$1.clearTimeout(C.current),C.current=null)}),O=(e,t=!0)=>{R(),C.current=I$1.setTimeout(ue,e||w.current),t&&(f.current=v$1())},se=e=>{v.current||$.current||(re.current(e,P),ne.current({type:"active",prompted:!0},P)),y.current=0,g.current=v$1(),v.current=!0,O(_.current,!1)},le=()=>{R(),$.current||(ie.current(null,P),ne.current({type:"idle"},P)),$.current=!0,p.current=v$1(),X.current?k():v.current&&(g.current=0,v.current=!1)},ce=e=>{R(),($.current||v.current)&&(E.current(e,P),ne.current({type:"active",prompted:!1},P)),v.current=!1,g.current=0,$.current=!1,h.current+=v$1()-p.current,m.current+=v$1()-p.current,A(),O()},ue=e=>{var t;if(!$.current)return I.cancel&&I.cancel(),t=v$1()-f.current,w.current+_.current<t||!(0<_.current)||v.current?void(S.current?S.current.idle():le()):void(S.current?S.current.prompt():se(e));S.current?S.current.active():ce(e)},de=e=>{var t;s||f.current||(f.current=v$1(),E.current(null,P)),I(e,P),v.current||(R(),!$.current&&J.current.includes(e.type)||(t=v$1()-f.current,$.current&&!W)||!$.current&&t>=w.current?ue(e):(x.current=!1,y.current=0,g.current=0,O(),c&&u&&ae.current()))},pe=react$1.exports.useRef(de),A=(react$1.exports.useEffect(()=>{var e=Q.current;e&&k(),pe.current=0<z?be(de,z):de,e&&A()},[z,a,o,oe,c,u]),()=>{M$1&&ee.current&&(Q.current||(te.current.forEach(e=>{ee.current.addEventListener(e,pe.current,{capture:!0,passive:!0})}),Q.current=!0))}),k=(e=!1)=>{M$1&&ee.current&&(Q.current||e)&&(te.current.forEach(e=>{ee.current.removeEventListener(e,pe.current,{capture:!0})}),Q.current=!1)},M=react$1.exports.useCallback(e=>!T.current&&(R(),A(),$.current=!1,v.current=!1,x.current=!1,y.current=0,g.current=0,S.current&&!e&&S.current.start(),O(),!0),[C,$,T,w,S]),fe=react$1.exports.useCallback(e=>!T.current&&(R(),A(),Y.current=v$1(),h.current+=v$1()-p.current,m.current+=v$1()-p.current,h.current=0,$.current=!1,v.current=!1,x.current=!1,y.current=0,g.current=0,S.current&&!e&&S.current.reset(),l||O(),!0),[C,$,w,l,T,S]),he=react$1.exports.useCallback(e=>!T.current&&(R(),A(),($.current||v.current)&&ce(),$.current=!1,v.current=!1,x.current=!1,y.current=0,g.current=0,Y.current=v$1(),S.current&&!e&&S.current.activate(),O(),!0),[C,$,v,T,w,S]),me=react$1.exports.useCallback((e=!1)=>!T.current&&!x.current&&(y.current=_e(),x.current=!0,k(),R(),S.current&&!e&&S.current.pause(),!0),[C,T,S]),ge=react$1.exports.useCallback((e=!1)=>!(T.current||!x.current||(x.current=!1,v.current||A(),$.current||O(y.current),g.current&&(g.current=v$1()),S.current&&!e&&S.current.resume(),0)),[C,w,T,y,S]),ye=react$1.exports.useCallback((e,t)=>(S.current?(t&&j.current(e,P),S.current.message(e)):t&&j.current(e,P),!0),[i]),$e=react$1.exports.useCallback(()=>$.current,[$]),ve=react$1.exports.useCallback(()=>v.current,[v]),Ce=react$1.exports.useCallback(()=>S.current?S.current.isLeader:null,[S]),Se=react$1.exports.useCallback(()=>S.current?S.current.isLastActive:null,[S]),we=react$1.exports.useCallback(()=>S.current?S.current.token:null,[S]),_e=react$1.exports.useCallback(()=>{var e,t;return x.current?y.current:(t=y.current||_.current+w.current,e=f.current?v$1()-f.current:0,(t=Math.floor(t-e))<0?0:Math.abs(t))},[w,_,v,y,f]),Te=react$1.exports.useCallback(()=>Math.round(v$1()-Y.current),[Y]),je=react$1.exports.useCallback(()=>Math.round(v$1()-K.current),[K]),Ie=react$1.exports.useCallback(()=>p.current?new Date(p.current):null,[p]),Re=react$1.exports.useCallback(()=>f.current?new Date(f.current):null,[f]),Oe=react$1.exports.useCallback(()=>$.current?Math.round(v$1()-p.current+h.current):Math.round(h.current),[p,h]),Ae=react$1.exports.useCallback(()=>$.current?Math.round(v$1()-p.current+m.current):Math.round(m.current),[p,m]),ke=react$1.exports.useCallback(()=>{var e=Math.round(Te()-Oe());return 0<=e?e:0},[p,h]),Me=react$1.exports.useCallback(()=>{var e=Math.round(je()-Ae());return 0<=e?e:0},[p,h]),P=(react$1.exports.useEffect(()=>{if(0<o&&0<a)throw new Error("❌ onAction can either be throttled or debounced, not both.");D&&it(D);let e=()=>{S.current&&S.current.close(),I.cancel&&I.cancel(),R(),k(!0)};return M$1&&window.addEventListener("beforeunload",e),()=>{M$1&&window.removeEventListener("beforeunload",e),S.current&&S.current.close(),I.cancel&&I.cancel(),R(),k(!0)}},[]),react$1.exports.useEffect(()=>{S.current&&S.current.close(),S.current=c?new Ee({channelName:G,leaderElection:q,onPrompt:()=>{se()},onIdle:()=>{le()},onActive:()=>{ce()},onMessage:e=>{j.current(e,P)},start:M,reset:fe,activate:he,pause:me,resume:ge}):null},[c,G,q,re,ie,E,j,M,fe,me,ge]),react$1.exports.useEffect(()=>{b.current||(R(),k(!0)),l||d||(s?M:A)()},[l,s,d,b]),react$1.exports.useEffect(()=>{var e;b.current||(e=[...new Set([...N,...r]).values()],k(),te.current=e,ee.current=L,J.current=r,l)||d||(s?M:A)()},[L,JSON.stringify(N),JSON.stringify(r),b,d,l,s]),react$1.exports.useEffect(()=>{b.current&&(b.current=!1)},[b]),{message:ye,start:M,reset:fe,activate:he,pause:me,resume:ge,isIdle:$e,isPrompted:ve,isLeader:Ce,isLastActiveTab:Se,getTabId:we,getRemainingTime:_e,getElapsedTime:Te,getTotalElapsedTime:je,getLastIdleTime:Ie,getLastActiveTime:Re,getIdleTime:Oe,getTotalIdleTime:Ae,getActiveTime:ke,getTotalActiveTime:Me,setOnPresenceChange:e=>{F=e,ne.current=e},setOnPrompt:e=>{V=e,re.current=e},setOnIdle:e=>{H=e,ie.current=e},setOnActive:e=>{B=e,E.current=e},setOnAction:e=>{U=e,oe.current=e},setOnMessage:e=>{i=e,j.current=e}});return P}var match$1,version$1,set$1$1,get$1,store$5,STATE$1,$location$1,defer$1,channel$1,port$1,toggle$1,node$1,promise$1,then$1,queue$3,flush$1,notify$1$1,Internal$1,OwnPromiseCapability$1,PromiseWrapper$1,nativeThen$1,ge=react$1.exports.createContext(null),tinycolor$1=(ge.Consumer,{exports:{}}),tinycolor=(!function(e){function u(e,t){var n;return t=t||{},(e=e||"")instanceof u?e:this instanceof u?(n=function(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;"string"==typeof e&&(e=function(e){e=e.replace(S,"").replace(w,"").toLowerCase();var t,n=!1;if(R[e])e=R[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=P.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=P.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=P.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=P.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=P.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=P.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=P.hex8.exec(e))return{r:g(t[1]),g:g(t[2]),b:g(t[3]),a:x(t[4]),format:n?"name":"hex8"};if(t=P.hex6.exec(e))return{r:g(t[1]),g:g(t[2]),b:g(t[3]),format:n?"name":"hex"};if(t=P.hex4.exec(e))return{r:g(t[1]+""+t[1]),g:g(t[2]+""+t[2]),b:g(t[3]+""+t[3]),a:x(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=P.hex3.exec(e))return{r:g(t[1]+""+t[1]),g:g(t[2]+""+t[2]),b:g(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(b(e.r)&&b(e.g)&&b(e.b)?(t=function(e,t,n){return{r:255*h(e,255),g:255*h(t,255),b:255*h(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):b(e.h)&&b(e.s)&&b(e.v)?(r=$(e.s),i=$(e.v),t=function(e,t,n){e=6*h(e,360),t=h(t,100),n=h(n,100);var r=C.floor(e),e=e-r,i=n*(1-t),o=n*(1-e*t),e=n*(1-(1-e)*t),t=r%6;return{r:255*[n,o,i,i,e,n][t],g:255*[e,n,n,o,i,i][t],b:255*[i,i,e,n,n,o][t]}}(e.h,r,i),a=!0,s="hsv"):b(e.h)&&b(e.s)&&b(e.l)&&(r=$(e.s),o=$(e.l),t=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}e=h(e,360),t=h(t,100),n=h(n,100),0===t?r=i=o=n:(r=a(t=2*n-(n=n<.5?n*(1+t):n+t-n*t),n,e+1/3),i=a(t,n,e),o=a(t,n,e-1/3));return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a"))&&(n=e.a);return n=f(n),{ok:a,format:e.format||s,r:E(255,j(t.r,0)),g:E(255,j(t.g,0)),b:E(255,j(t.b,0)),a:n}}(e),this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=T(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=T(this._r)),this._g<1&&(this._g=T(this._g)),this._b<1&&(this._b=T(this._b)),this._ok=n.ok,void(this._tc_id=_++)):new u(e,t)}function r(e,t,n){e=h(e,255),t=h(t,255),n=h(n,255);var r,i=j(e,t,n),o=E(e,t,n),a=(i+o)/2;if(i==o)r=l=0;else{var s=i-o,l=.5<a?s/(2-i-o):s/(i+o);switch(i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:l,l:a}}function i(e,t,n){e=h(e,255),t=h(t,255),n=h(n,255);var r,i=j(e,t,n),o=E(e,t,n),a=i,s=i-o,l=0===i?0:s/i;if(i==o)r=0;else{switch(i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:l,v:a}}function t(e,t,n,r){e=[y(T(e).toString(16)),y(T(t).toString(16)),y(T(n).toString(16))];return r&&e[0].charAt(0)==e[0].charAt(1)&&e[1].charAt(0)==e[1].charAt(1)&&e[2].charAt(0)==e[2].charAt(1)?e[0].charAt(0)+e[1].charAt(0)+e[2].charAt(0):e.join("")}function o(e,t,n,r){return[y(v(r)),y(T(e).toString(16)),y(T(t).toString(16)),y(T(n).toString(16))].join("")}function n(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.s-=t/100,e.s=m(e.s),u(e)}function a(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.s+=t/100,e.s=m(e.s),u(e)}function s(e){return u(e).desaturate(100)}function l(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.l+=t/100,e.l=m(e.l),u(e)}function c(e,t){t=0===t?0:t||10;e=u(e).toRgb();return e.r=j(0,E(255,e.r-T(-t/100*255))),e.g=j(0,E(255,e.g-T(-t/100*255))),e.b=j(0,E(255,e.b-T(-t/100*255))),u(e)}function d(e,t){t=0===t?0:t||10;e=u(e).toHsl();return e.l-=t/100,e.l=m(e.l),u(e)}function p(e,t){e=u(e).toHsl(),t=(e.h+t)%360;return e.h=t<0?360+t:t,u(e)}function L(e){e=u(e).toHsl();return e.h=(e.h+180)%360,u(e)}function N(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+120)%360,s:t.s,l:t.l}),u({h:(n+240)%360,s:t.s,l:t.l})]}function D(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+90)%360,s:t.s,l:t.l}),u({h:(n+180)%360,s:t.s,l:t.l}),u({h:(n+270)%360,s:t.s,l:t.l})]}function F(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+72)%360,s:t.s,l:t.l}),u({h:(n+216)%360,s:t.s,l:t.l})]}function V(e,t,n){t=t||6,n=n||30;var r=u(e).toHsl(),i=360/n,o=[u(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(u(r));return o}function H(e,t){t=t||6;for(var e=u(e).toHsv(),n=e.h,r=e.s,i=e.v,o=[],a=1/t;t--;)o.push(u({h:n,s:r,v:i})),i=(i+a)%1;return o}function f(e){return e=parseFloat(e),e=isNaN(e)||e<0||1<e?1:e}function h(e,t){"string"==typeof(n=e)&&-1!=n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var n="string"==typeof(n=e)&&-1!=n.indexOf("%");return e=E(t,j(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),C.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function m(e){return E(1,j(0,e))}function g(e){return parseInt(e,16)}function y(e){return 1==e.length?"0"+e:""+e}function $(e){return e=e<=1?100*e+"%":e}function v(e){return C.round(255*parseFloat(e)).toString(16)}function x(e){return g(e)/255}function b(e){return P.CSS_UNIT.exec(e)}var C,S,w,_,T,E,j,I,R,O,A,k,M,P;C=Math,S=/^\s+/,w=/\s+$/,_=0,T=C.round,E=C.min,j=C.max,I=C.random,u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,e=e.b/255,t=t<=.03928?t/12.92:C.pow((.055+t)/1.055,2.4),n=n<=.03928?n/12.92:C.pow((.055+n)/1.055,2.4),e=e<=.03928?e/12.92:C.pow((.055+e)/1.055,2.4);return.2126*t+.7152*n+.0722*e},setAlpha:function(e){return this._a=f(e),this._roundA=T(100*this._a)/100,this},toHsv:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=i(this._r,this._g,this._b),t=T(360*e.h),n=T(100*e.s),e=T(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+e+"%)":"hsva("+t+", "+n+"%, "+e+"%, "+this._roundA+")"},toHsl:function(){var e=r(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=r(this._r,this._g,this._b),t=T(360*e.h),n=T(100*e.s),e=T(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+e+"%)":"hsla("+t+", "+n+"%, "+e+"%, "+this._roundA+")"},toHex:function(e){return t(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t=this._r,n=this._g,r=this._b,i=this._a;return t=[y(T(t).toString(16)),y(T(n).toString(16)),y(T(r).toString(16)),y(v(i))],e&&t[0].charAt(0)==t[0].charAt(1)&&t[1].charAt(0)==t[1].charAt(1)&&t[2].charAt(0)==t[2].charAt(1)&&t[3].charAt(0)==t[3].charAt(1)?t[0].charAt(0)+t[1].charAt(0)+t[2].charAt(0)+t[3].charAt(0):t.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:T(this._r),g:T(this._g),b:T(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+T(this._r)+", "+T(this._g)+", "+T(this._b)+")":"rgba("+T(this._r)+", "+T(this._g)+", "+T(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:T(100*h(this._r,255))+"%",g:T(100*h(this._g,255))+"%",b:T(100*h(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+T(100*h(this._r,255))+"%, "+T(100*h(this._g,255))+"%, "+T(100*h(this._b,255))+"%)":"rgba("+T(100*h(this._r,255))+"%, "+T(100*h(this._g,255))+"%, "+T(100*h(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&O[t(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+o(this._r,this._g,this._b,this._a),n=t;return"progid:DXImageTransform.Microsoft.gradient("+(this._gradientType?"GradientType = 1, ":"")+"startColorstr="+t+",endColorstr="+(n=e?"#"+o((t=u(e))._r,t._g,t._b,t._a):n)+")"},toString:function(e){var t=!!e,n=(e=e||this._format,!1),r=this._a<1&&0<=this._a;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),(n="hsv"===e?this.toHsvString():n)||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return u(this.toString())},_applyModification:function(e,t){e=e.apply(null,[this].concat([].slice.call(t)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(c,arguments)},darken:function(){return this._applyModification(d,arguments)},desaturate:function(){return this._applyModification(n,arguments)},saturate:function(){return this._applyModification(a,arguments)},greyscale:function(){return this._applyModification(s,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(V,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination(H,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(N,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},u.fromRatio=function(e,t){if("object"==typeof e){var n,r={};for(n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:$(e[n]));e=r}return u(e,t)},u.equals=function(e,t){return!(!e||!t)&&u(e).toRgbString()==u(t).toRgbString()},u.random=function(){return u.fromRatio({r:I(),g:I(),b:I()})},u.mix=function(e,t,n){n=0===n?0:n||50;e=u(e).toRgb(),t=u(t).toRgb(),n/=100;return u({r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b,a:(t.a-e.a)*n+e.a})},u.readability=function(e,t){e=u(e),t=u(t);return(C.max(e.getLuminance(),t.getLuminance())+.05)/(C.min(e.getLuminance(),t.getLuminance())+.05)},u.isReadable=function(e,t,n){var r=u.readability(e,t),i=!1,e=function(e){var t;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),e=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==e&&"large"!==e&&(e="small");return{level:t,size:e}}(n);switch(e.level+e.size){case"AAsmall":case"AAAlarge":i=4.5<=r;break;case"AAlarge":i=3<=r;break;case"AAAsmall":i=7<=r}return i},u.mostReadable=function(e,t,n){for(var r,i=null,o=0,a=(n=n||{}).includeFallbackColors,s=n.level,l=n.size,c=0;c<t.length;c++)o<(r=u.readability(e,t[c]))&&(o=r,i=u(t[c]));return u.isReadable(e,i,{level:s,size:l})||!a?i:(n.includeFallbackColors=!1,u.mostReadable(e,["#fff","#000"],n))},R=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},O=u.hexNames=function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n}(R),k="[\\s|\\(]+("+(A="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",M="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",P={CSS_UNIT:new RegExp(A),rgb:new RegExp("rgb"+k),rgba:new RegExp("rgba"+M),hsl:new RegExp("hsl"+k),hsla:new RegExp("hsla"+M),hsv:new RegExp("hsv"+k),hsva:new RegExp("hsva"+M),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/},e.exports?e.exports=u:window.tinycolor=u}(tinycolor$1),tinycolor$1.exports),commonjsGlobal$1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check$1=function(e){return e&&e.Math==Math&&e},global$g=check$1("object"==typeof globalThis&&globalThis)||check$1("object"==typeof window&&window)||check$1("object"==typeof self&&self)||check$1("object"==typeof commonjsGlobal$1&&commonjsGlobal$1)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$1={},fails$e=function(e){try{return!!e()}catch(e){return!0}},descriptors$1=!fails$e(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),functionBindNative$1=!fails$e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3$1=functionBindNative$1,call$e=Function.prototype.call,functionCall$1=NATIVE_BIND$3$1?call$e.bind(call$e):function(){return call$e.apply(call$e,arguments)},objectPropertyIsEnumerable$1={},$propertyIsEnumerable$1={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$1=Object.getOwnPropertyDescriptor,NASHORN_BUG$1=getOwnPropertyDescriptor$2$1&&!$propertyIsEnumerable$1.call({1:2},1),createPropertyDescriptor$3=(objectPropertyIsEnumerable$1.f=NASHORN_BUG$1?function(e){return!!(e=getOwnPropertyDescriptor$2$1(this,e))&&e.enumerable}:$propertyIsEnumerable$1,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2$1=functionBindNative$1,FunctionPrototype$2$1=Function.prototype,call$d=FunctionPrototype$2$1.call,uncurryThisWithBind$1=NATIVE_BIND$2$1&&FunctionPrototype$2$1.bind.bind(call$d,call$d),functionUncurryThis$1=NATIVE_BIND$2$1?uncurryThisWithBind$1:function(e){return function(){return call$d.apply(e,arguments)}},uncurryThis$f=functionUncurryThis$1,toString$3=uncurryThis$f({}.toString),stringSlice$1$1=uncurryThis$f("".slice),classofRaw$2$1=function(e){return stringSlice$1$1(toString$3(e),8,-1)},fails$b=fails$e,classof$6=classofRaw$2$1,$Object$4=Object,split$1=functionUncurryThis$1("".split),indexedObject$1=fails$b(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$6(e)?split$1(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$4$1=function(e){return null==e},isNullOrUndefined$3$1=isNullOrUndefined$4$1,$TypeError$d=TypeError,requireObjectCoercible$3=function(e){if(isNullOrUndefined$3$1(e))throw $TypeError$d("Can't call method on "+e);return e},IndexedObject$1=indexedObject$1,requireObjectCoercible$2$1=requireObjectCoercible$3,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$2$1(e))},documentAll$2$1="object"==typeof document&&document.all,IS_HTMLDDA$1=void 0===documentAll$2$1&&void 0!==documentAll$2$1,documentAll_1$1={all:documentAll$2$1,IS_HTMLDDA:IS_HTMLDDA$1},$documentAll$1$1=documentAll_1$1,documentAll$1$1=$documentAll$1$1.all,isCallable$k=$documentAll$1$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1$1}:function(e){return"function"==typeof e},isCallable$j=isCallable$k,$documentAll$2=documentAll_1$1,documentAll$3=$documentAll$2.all,isObject$9=$documentAll$2.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$j(e)||e===documentAll$3}:function(e){return"object"==typeof e?null!==e:isCallable$j(e)},global$f$1=global$g,isCallable$i=isCallable$k,aFunction$1=function(e){return isCallable$i(e)?e:void 0},getBuiltIn$7$1=function(e,t){return arguments.length<2?aFunction$1(global$f$1[e]):global$f$1[e]&&global$f$1[e][t]},objectIsPrototypeOf$1=functionUncurryThis$1({}.isPrototypeOf),engineUserAgent$1="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$e$1=global$g,userAgent$3$1=engineUserAgent$1,process$4$1=global$e$1.process,Deno$1$1=global$e$1.Deno,versions$1=process$4$1&&process$4$1.versions||Deno$1$1&&Deno$1$1.version,v8$1=versions$1&&versions$1.v8,engineV8Version$1=version$1=!(version$1=v8$1?0<(match$1=v8$1.split("."))[0]&&match$1[0]<4?1:+(match$1[0]+match$1[1]):version$1)&&userAgent$3$1&&(!(match$1=userAgent$3$1.match(/Edge\/(\d+)/))||74<=match$1[1])&&(match$1=userAgent$3$1.match(/Chrome\/(\d+)/))?+match$1[1]:version$1,V8_VERSION$1$1=engineV8Version$1,fails$a$1=fails$e,symbolConstructorDetection$1=!!Object.getOwnPropertySymbols&&!fails$a$1(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$1&&V8_VERSION$1$1<41}),useSymbolAsUid$1=symbolConstructorDetection$1&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6$1=getBuiltIn$7$1,isCallable$h$1=isCallable$k,isPrototypeOf$2$1=objectIsPrototypeOf$1,$Object$3$1=Object,isSymbol$2$1=useSymbolAsUid$1?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6$1("Symbol");return isCallable$h$1(t)&&isPrototypeOf$2$1(t.prototype,$Object$3$1(e))},$String$4=String,tryToString$4$1=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$g$1=isCallable$k,tryToString$3$1=tryToString$4$1,$TypeError$c$1=TypeError,aCallable$8$1=function(e){if(isCallable$g$1(e))return e;throw $TypeError$c$1(tryToString$3$1(e)+" is not a function")},aCallable$7$1=aCallable$8$1,isNullOrUndefined$2$1=isNullOrUndefined$4$1,getMethod$3$1=function(e,t){return e=e[t],isNullOrUndefined$2$1(e)?void 0:aCallable$7$1(e)},call$c$1=functionCall$1,isCallable$f$1=isCallable$k,isObject$8=isObject$9,$TypeError$b$1=TypeError,ordinaryToPrimitive$1$1=function(e,t){var n,r;if("string"===t&&isCallable$f$1(n=e.toString)&&!isObject$8(r=call$c$1(n,e)))return r;if(isCallable$f$1(n=e.valueOf)&&!isObject$8(r=call$c$1(n,e)))return r;if("string"!==t&&isCallable$f$1(n=e.toString)&&!isObject$8(r=call$c$1(n,e)))return r;throw $TypeError$b$1("Can't convert object to primitive value")},shared$3$1={exports:{}},global$d$1=global$g,defineProperty$6=Object.defineProperty,defineGlobalProperty$3$1=function(t,n){try{defineProperty$6(global$d$1,t,{value:n,configurable:!0,writable:!0})}catch(e){global$d$1[t]=n}return n},defineGlobalProperty$2$1=defineGlobalProperty$3$1,SHARED$1="__core-js_shared__",store$3$1=global$g[SHARED$1]||defineGlobalProperty$2$1(SHARED$1,{}),sharedStore$1=store$3$1,store$2$1=sharedStore$1,requireObjectCoercible$1$1=((shared$3$1.exports=function(e,t){return store$2$1[e]||(store$2$1[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$3),$Object$2$1=Object,toObject$3=function(e){return $Object$2$1(requireObjectCoercible$1$1(e))},toObject$2=toObject$3,hasOwnProperty$1=functionUncurryThis$1({}.hasOwnProperty),hasOwnProperty_1$1=Object.hasOwn||function(e,t){return hasOwnProperty$1(toObject$2(e),t)},uncurryThis$b$1=functionUncurryThis$1,id$1=0,postfix$1=Math.random(),toString$2=uncurryThis$b$1(1..toString),uid$2$1=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$2(++id$1+postfix$1,36)},global$b$1=global$g,shared$2$1=shared$3$1.exports,hasOwn$9=hasOwnProperty_1$1,uid$1$1=uid$2$1,NATIVE_SYMBOL$2=symbolConstructorDetection$1,USE_SYMBOL_AS_UID$2=useSymbolAsUid$1,Symbol$1$1=global$b$1.Symbol,WellKnownSymbolsStore$1=shared$2$1("wks"),createWellKnownSymbol$1=USE_SYMBOL_AS_UID$2?Symbol$1$1.for||Symbol$1$1:Symbol$1$1&&Symbol$1$1.withoutSetter||uid$1$1,wellKnownSymbol$g=function(e){return hasOwn$9(WellKnownSymbolsStore$1,e)||(WellKnownSymbolsStore$1[e]=NATIVE_SYMBOL$2&&hasOwn$9(Symbol$1$1,e)?Symbol$1$1[e]:createWellKnownSymbol$1("Symbol."+e)),WellKnownSymbolsStore$1[e]},call$b$1=functionCall$1,isObject$7$1=isObject$9,isSymbol$1$1=isSymbol$2$1,getMethod$2$1=getMethod$3$1,ordinaryToPrimitive$2=ordinaryToPrimitive$1$1,$TypeError$a$1=TypeError,TO_PRIMITIVE$1=wellKnownSymbol$g("toPrimitive"),toPrimitive$1$1=function(e,t){if(!isObject$7$1(e)||isSymbol$1$1(e))return e;var n=getMethod$2$1(e,TO_PRIMITIVE$1);if(n){if(n=call$b$1(n,e,t=void 0===t?"default":t),!isObject$7$1(n)||isSymbol$1$1(n))return n;throw $TypeError$a$1("Can't convert object to primitive value")}return ordinaryToPrimitive$2(e,t=void 0===t?"number":t)},toPrimitive$2=toPrimitive$1$1,isSymbol$3=isSymbol$2$1,toPropertyKey$2$1=function(e){return e=toPrimitive$2(e,"string"),isSymbol$3(e)?e:e+""},isObject$6$1=isObject$9,document$3$1=global$g.document,EXISTS$1$1=isObject$6$1(document$3$1)&&isObject$6$1(document$3$1.createElement),documentCreateElement$2=function(e){return EXISTS$1$1?document$3$1.createElement(e):{}},createElement$1$1=documentCreateElement$2,ie8DomDefine$1=!descriptors$1&&!fails$e(function(){return 7!=Object.defineProperty(createElement$1$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$9=descriptors$1,call$a$1=functionCall$1,propertyIsEnumerableModule$1=objectPropertyIsEnumerable$1,createPropertyDescriptor$2$1=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1$1=toPropertyKey$2$1,hasOwn$8$1=hasOwnProperty_1$1,IE8_DOM_DEFINE$1$1=ie8DomDefine$1,$getOwnPropertyDescriptor$1$1=Object.getOwnPropertyDescriptor,objectDefineProperty$1=(objectGetOwnPropertyDescriptor$1.f=DESCRIPTORS$9?$getOwnPropertyDescriptor$1$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1$1(t),IE8_DOM_DEFINE$1$1)try{return $getOwnPropertyDescriptor$1$1(e,t)}catch(e){}if(hasOwn$8$1(e,t))return createPropertyDescriptor$2$1(!call$a$1(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),v8PrototypeDefineBug$1=descriptors$1&&fails$e(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$5$1=isObject$9,$String$3$1=String,$TypeError$9$1=TypeError,anObject$a=function(e){if(isObject$5$1(e))return e;throw $TypeError$9$1($String$3$1(e)+" is not an object")},DESCRIPTORS$7$1=descriptors$1,IE8_DOM_DEFINE$2=ie8DomDefine$1,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug$1,anObject$9=anObject$a,toPropertyKey$3=toPropertyKey$2$1,$TypeError$8$1=TypeError,$defineProperty$1=Object.defineProperty,$getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,ENUMERABLE$1="enumerable",CONFIGURABLE$1$1="configurable",WRITABLE$1="writable",DESCRIPTORS$6$1=(objectDefineProperty$1.f=DESCRIPTORS$7$1?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,n){var r;return anObject$9(e),t=toPropertyKey$3(t),anObject$9(n),"function"==typeof e&&"prototype"===t&&"value"in n&&WRITABLE$1 in n&&!n[WRITABLE$1]&&(r=$getOwnPropertyDescriptor$2(e,t))&&r[WRITABLE$1]&&(e[t]=n.value,n={configurable:(CONFIGURABLE$1$1 in n?n:r)[CONFIGURABLE$1$1],enumerable:(ENUMERABLE$1 in n?n:r)[ENUMERABLE$1],writable:!1}),$defineProperty$1(e,t,n)}:$defineProperty$1:function(e,t,n){if(anObject$9(e),t=toPropertyKey$3(t),anObject$9(n),IE8_DOM_DEFINE$2)try{return $defineProperty$1(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $TypeError$8$1("Accessors not supported");return"value"in n&&(e[t]=n.value),e},descriptors$1),definePropertyModule$3=objectDefineProperty$1,createPropertyDescriptor$1$1=createPropertyDescriptor$3,createNonEnumerableProperty$4=DESCRIPTORS$6$1?function(e,t,n){return definePropertyModule$3.f(e,t,createPropertyDescriptor$1$1(1,n))}:function(e,t,n){return e[t]=n,e},makeBuiltIn$3$1={exports:{}},DESCRIPTORS$5$1=descriptors$1,hasOwn$7$1=hasOwnProperty_1$1,FunctionPrototype$1$1=Function.prototype,getDescriptor$1=DESCRIPTORS$5$1&&Object.getOwnPropertyDescriptor,EXISTS$2=hasOwn$7$1(FunctionPrototype$1$1,"name"),PROPER$1=EXISTS$2&&"something"===function(){}.name,CONFIGURABLE$2=EXISTS$2&&(!DESCRIPTORS$5$1||getDescriptor$1(FunctionPrototype$1$1,"name").configurable),functionName$1={EXISTS:EXISTS$2,PROPER:PROPER$1,CONFIGURABLE:CONFIGURABLE$2},isCallable$e$1=isCallable$k,store$1$1=sharedStore$1,functionToString$1=functionUncurryThis$1(Function.toString),inspectSource$3$1=(isCallable$e$1(store$1$1.inspectSource)||(store$1$1.inspectSource=function(e){return functionToString$1(e)}),store$1$1.inspectSource),isCallable$d$1=isCallable$k,WeakMap$1$1=global$g.WeakMap,weakMapBasicDetection$1=isCallable$d$1(WeakMap$1$1)&&/native code/.test(String(WeakMap$1$1)),shared$1$1=shared$3$1.exports,uid$3=uid$2$1,keys$1=shared$1$1("keys"),sharedKey$3=function(e){return keys$1[e]||(keys$1[e]=uid$3(e))},hiddenKeys$4={},NATIVE_WEAK_MAP$1=weakMapBasicDetection$1,global$8$1=global$g,isObject$4$1=isObject$9,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$6$1=hasOwnProperty_1$1,shared$4=sharedStore$1,sharedKey$2=sharedKey$3,hiddenKeys$3$1=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED$1="Object already initialized",TypeError$2$1=global$8$1.TypeError,WeakMap$3=global$8$1.WeakMap,enforce$1=function(e){return has$1(e)?get$1(e):set$1$1(e,{})},getterFor$1=function(t){return function(e){if(isObject$4$1(e)&&(e=get$1(e)).type===t)return e;throw TypeError$2$1("Incompatible receiver, "+t+" required")}},has$1=NATIVE_WEAK_MAP$1||shared$4.state?((store$5=shared$4.state||(shared$4.state=new WeakMap$3)).get=store$5.get,store$5.has=store$5.has,store$5.set=store$5.set,set$1$1=function(e,t){if(store$5.has(e))throw TypeError$2$1(OBJECT_ALREADY_INITIALIZED$1);return t.facade=e,store$5.set(e,t),t},get$1=function(e){return store$5.get(e)||{}},function(e){return store$5.has(e)}):(STATE$1=sharedKey$2("state"),hiddenKeys$3$1[STATE$1]=!0,set$1$1=function(e,t){if(hasOwn$6$1(e,STATE$1))throw TypeError$2$1(OBJECT_ALREADY_INITIALIZED$1);return t.facade=e,createNonEnumerableProperty$3(e,STATE$1,t),t},get$1=function(e){return hasOwn$6$1(e,STATE$1)?e[STATE$1]:{}},function(e){return hasOwn$6$1(e,STATE$1)}),internalState$1={set:set$1$1,get:get$1,has:has$1,enforce:enforce$1,getterFor:getterFor$1},uncurryThis$9$1=functionUncurryThis$1,fails$7$1=fails$e,isCallable$c$1=isCallable$k,hasOwn$5$1=hasOwnProperty_1$1,DESCRIPTORS$4$1=descriptors$1,CONFIGURABLE_FUNCTION_NAME$1=functionName$1.CONFIGURABLE,inspectSource$2$1=inspectSource$3$1,InternalStateModule$2=internalState$1,enforceInternalState$1=InternalStateModule$2.enforce,getInternalState$1=InternalStateModule$2.get,$String$2$1=String,defineProperty$5=Object.defineProperty,stringSlice$2=uncurryThis$9$1("".slice),replace$1=uncurryThis$9$1("".replace),join$1=uncurryThis$9$1([].join),CONFIGURABLE_LENGTH$1=DESCRIPTORS$4$1&&!fails$7$1(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE$1=String(String).split("String"),makeBuiltIn$2$1=makeBuiltIn$3$1.exports=function(e,t,n){"Symbol("===stringSlice$2($String$2$1(t),0,7)&&(t="["+replace$1($String$2$1(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hasOwn$5$1(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$4$1?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH$1&&n&&hasOwn$5$1(n,"arity")&&e.length!==n.arity&&defineProperty$5(e,"length",{value:n.arity});try{n&&hasOwn$5$1(n,"constructor")&&n.constructor?DESCRIPTORS$4$1&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}return n=enforceInternalState$1(e),hasOwn$5$1(n,"source")||(n.source=join$1(TEMPLATE$1,"string"==typeof t?t:"")),e},isCallable$b$1=(Function.prototype.toString=makeBuiltIn$2$1(function(){return isCallable$c$1(this)&&getInternalState$1(this).source||inspectSource$2$1(this)},"toString"),isCallable$k),definePropertyModule$2$1=objectDefineProperty$1,makeBuiltIn$1$1=makeBuiltIn$3$1.exports,defineGlobalProperty$1$1=defineGlobalProperty$3$1,defineBuiltIn$5=function(e,t,n,r){var i=(r=r||{}).enumerable,o=void 0!==r.name?r.name:t;if(isCallable$b$1(n)&&makeBuiltIn$1$1(n,o,r),r.global)i?e[t]=n:defineGlobalProperty$1$1(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:definePropertyModule$2$1.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},objectGetOwnPropertyNames$1={},ceil$1=Math.ceil,floor$1=Math.floor,mathTrunc$1=Math.trunc||function(e){return(0<(e=+e)?floor$1:ceil$1)(e)},trunc$1=mathTrunc$1,toIntegerOrInfinity$2$1=function(e){return(e=+e)!=e||0==e?0:trunc$1(e)},toIntegerOrInfinity$1$1=toIntegerOrInfinity$2$1,max$1=Math.max,min$1$1=Math.min,toAbsoluteIndex$1$1=function(e,t){return(e=toIntegerOrInfinity$1$1(e))<0?max$1(e+t,0):min$1$1(e,t)},toIntegerOrInfinity$3=toIntegerOrInfinity$2$1,min$2=Math.min,toLength$1$1=function(e){return 0<e?min$2(toIntegerOrInfinity$3(e),9007199254740991):0},toLength$2=toLength$1$1,lengthOfArrayLike$2$1=function(e){return toLength$2(e.length)},toIndexedObject$3$1=toIndexedObject$5,toAbsoluteIndex$2=toAbsoluteIndex$1$1,lengthOfArrayLike$1$1=lengthOfArrayLike$2$1,createMethod$1=function(s){return function(e,t,n){var r,i=toIndexedObject$3$1(e),o=lengthOfArrayLike$1$1(i),a=toAbsoluteIndex$2(n,o);if(s&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}},arrayIncludes$1={includes:createMethod$1(!0),indexOf:createMethod$1(!1)},uncurryThis$8$1=functionUncurryThis$1,hasOwn$4$1=hasOwnProperty_1$1,toIndexedObject$2$1=toIndexedObject$5,indexOf$1=arrayIncludes$1.indexOf,hiddenKeys$2$1=hiddenKeys$4,push$1=uncurryThis$8$1([].push),objectKeysInternal$1=function(e,t){var n,r=toIndexedObject$2$1(e),i=0,o=[];for(n in r)!hasOwn$4$1(hiddenKeys$2$1,n)&&hasOwn$4$1(r,n)&&push$1(o,n);for(;t.length>i;)hasOwn$4$1(r,n=t[i++])&&!~indexOf$1(o,n)&&push$1(o,n);return o},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal$1,hiddenKeys$1$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols$1=(objectGetOwnPropertyNames$1.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1$1)},{}),getBuiltIn$5$1=(objectGetOwnPropertySymbols$1.f=Object.getOwnPropertySymbols,getBuiltIn$7$1),getOwnPropertyNamesModule$1=objectGetOwnPropertyNames$1,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols$1,anObject$8$1=anObject$a,concat$1=functionUncurryThis$1([].concat),ownKeys$1$1=getBuiltIn$5$1("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule$1.f(anObject$8$1(e)),n=getOwnPropertySymbolsModule$1.f;return n?concat$1(t,n(e)):t},hasOwn$3$1=hasOwnProperty_1$1,ownKeys$2=ownKeys$1$1,getOwnPropertyDescriptorModule$1=objectGetOwnPropertyDescriptor$1,definePropertyModule$1$1=objectDefineProperty$1,copyConstructorProperties$1$1=function(e,t,n){for(var r=ownKeys$2(t),i=definePropertyModule$1$1.f,o=getOwnPropertyDescriptorModule$1.f,a=0;a<r.length;a++){var s=r[a];hasOwn$3$1(e,s)||n&&hasOwn$3$1(n,s)||i(e,s,o(t,s))}},fails$6$1=fails$e,isCallable$a$1=isCallable$k,replacement$1=/#|\.prototype\./,isForced$2$1=function(e,t){return(e=data$1[normalize$1(e)])==POLYFILL$1||e!=NATIVE$1&&(isCallable$a$1(t)?fails$6$1(t):!!t)},normalize$1=isForced$2$1.normalize=function(e){return String(e).replace(replacement$1,".").toLowerCase()},data$1=isForced$2$1.data={},NATIVE$1=isForced$2$1.NATIVE="N",POLYFILL$1=isForced$2$1.POLYFILL="P",isForced_1$1=isForced$2$1,global$7$1=global$g,getOwnPropertyDescriptor$1$1=objectGetOwnPropertyDescriptor$1.f,createNonEnumerableProperty$2$1=createNonEnumerableProperty$4,defineBuiltIn$4=defineBuiltIn$5,defineGlobalProperty$4=defineGlobalProperty$3$1,copyConstructorProperties$2=copyConstructorProperties$1$1,isForced$1$1=isForced_1$1,_export$1=function(e,t){var n,r,i,o=e.target,a=e.global,s=e.stat,l=a?global$7$1:s?global$7$1[o]||defineGlobalProperty$4(o,{}):(global$7$1[o]||{}).prototype;if(l)for(n in t){if(r=t[n],i=e.dontCallGetSet?(i=getOwnPropertyDescriptor$1$1(l,n))&&i.value:l[n],!isForced$1$1(a?n:o+(s?".":"#")+n,e.forced)&&void 0!==i){if(typeof r==typeof i)continue;copyConstructorProperties$2(r,i)}(e.sham||i&&i.sham)&&createNonEnumerableProperty$2$1(r,"sham",!0),defineBuiltIn$4(l,n,r,e)}},engineIsNode$1="undefined"!=typeof process&&"process"==classofRaw$2$1(process),uncurryThis$6$1=functionUncurryThis$1,aCallable$6$1=aCallable$8$1,functionUncurryThisAccessor$1=function(e,t,n){try{return uncurryThis$6$1(aCallable$6$1(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},isCallable$9$1=isCallable$k,$String$1$1=String,$TypeError$7$1=TypeError,aPossiblePrototype$1$1=function(e){if("object"==typeof e||isCallable$9$1(e))return e;throw $TypeError$7$1("Can't set "+$String$1$1(e)+" as a prototype")},uncurryThisAccessor$1=functionUncurryThisAccessor$1,anObject$7$1=anObject$a,aPossiblePrototype$2=aPossiblePrototype$1$1,objectSetPrototypeOf$1=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=uncurryThisAccessor$1(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return anObject$7$1(e),aPossiblePrototype$2(t),r?n(e,t):e.__proto__=t,e}}():void 0),defineProperty$4=objectDefineProperty$1.f,hasOwn$2$1=hasOwnProperty_1$1,TO_STRING_TAG$3=wellKnownSymbol$g("toStringTag"),setToStringTag$3=function(e,t,n){(e=e&&!n?e.prototype:e)&&!hasOwn$2$1(e,TO_STRING_TAG$3)&&defineProperty$4(e,TO_STRING_TAG$3,{configurable:!0,value:t})},makeBuiltIn$4=makeBuiltIn$3$1.exports,defineProperty$3$1=objectDefineProperty$1,defineBuiltInAccessor$1$1=function(e,t,n){return n.get&&makeBuiltIn$4(n.get,t,{getter:!0}),n.set&&makeBuiltIn$4(n.set,t,{setter:!0}),defineProperty$3$1.f(e,t,n)},getBuiltIn$4$1=getBuiltIn$7$1,defineBuiltInAccessor$2=defineBuiltInAccessor$1$1,DESCRIPTORS$3$1=descriptors$1,SPECIES$2$1=wellKnownSymbol$g("species"),setSpecies$1$1=function(e){e=getBuiltIn$4$1(e),DESCRIPTORS$3$1&&e&&!e[SPECIES$2$1]&&defineBuiltInAccessor$2(e,SPECIES$2$1,{configurable:!0,get:function(){return this}})},isPrototypeOf$1$1=objectIsPrototypeOf$1,$TypeError$6$1=TypeError,anInstance$1$1=function(e,t){if(isPrototypeOf$1$1(t,e))return e;throw $TypeError$6$1("Incorrect invocation")},TO_STRING_TAG$2$1=wellKnownSymbol$g("toStringTag"),test$1={},toStringTagSupport$1=(test$1[TO_STRING_TAG$2$1]="z","[object z]"===String(test$1)),TO_STRING_TAG_SUPPORT$1=toStringTagSupport$1,isCallable$8$1=isCallable$k,classofRaw$1$1=classofRaw$2$1,TO_STRING_TAG$1$1=wellKnownSymbol$g("toStringTag"),$Object$1$1=Object,CORRECT_ARGUMENTS$1="Arguments"==classofRaw$1$1(function(){return arguments}()),tryGet$1=function(e,t){try{return e[t]}catch(e){}},classof$4$1=TO_STRING_TAG_SUPPORT$1?classofRaw$1$1:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet$1(e=$Object$1$1(e),TO_STRING_TAG$1$1))?t:CORRECT_ARGUMENTS$1?classofRaw$1$1(e):"Object"==(t=classofRaw$1$1(e))&&isCallable$8$1(e.callee)?"Arguments":t},uncurryThis$5$1=functionUncurryThis$1,fails$5$1=fails$e,isCallable$7$1=isCallable$k,classof$3$1=classof$4$1,inspectSource$1$1=inspectSource$3$1,noop$1=function(){},empty$1=[],construct$1=getBuiltIn$7$1("Reflect","construct"),constructorRegExp$1=/^\s*(?:class|function)\b/,exec$1=uncurryThis$5$1(constructorRegExp$1.exec),INCORRECT_TO_STRING$1=!constructorRegExp$1.exec(noop$1),isConstructorModern$1=function(e){if(!isCallable$7$1(e))return!1;try{return construct$1(noop$1,empty$1,e),!0}catch(e){return!1}},isConstructorLegacy$1=function(e){if(!isCallable$7$1(e))return!1;switch(classof$3$1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$1||!!exec$1(constructorRegExp$1,inspectSource$1$1(e))}catch(e){return!0}},isConstructor$1$1=(isConstructorLegacy$1.sham=!0,!construct$1||fails$5$1(function(){var e;return isConstructorModern$1(isConstructorModern$1.call)||!isConstructorModern$1(Object)||!isConstructorModern$1(function(){e=!0})||e})?isConstructorLegacy$1:isConstructorModern$1),isConstructor$2=isConstructor$1$1,tryToString$2$1=tryToString$4$1,$TypeError$5$1=TypeError,aConstructor$1$1=function(e){if(isConstructor$2(e))return e;throw $TypeError$5$1(tryToString$2$1(e)+" is not a constructor")},anObject$6$1=anObject$a,aConstructor$2=aConstructor$1$1,isNullOrUndefined$1$1=isNullOrUndefined$4$1,SPECIES$1$1=wellKnownSymbol$g("species"),speciesConstructor$1$1=function(e,t){return void 0===(e=anObject$6$1(e).constructor)||isNullOrUndefined$1$1(e=anObject$6$1(e)[SPECIES$1$1])?t:aConstructor$2(e)},NATIVE_BIND$1$1=functionBindNative$1,FunctionPrototype$3=Function.prototype,apply$1$1=FunctionPrototype$3.apply,call$9$1=FunctionPrototype$3.call,functionApply$1="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1$1?call$9$1.bind(apply$1$1):function(){return call$9$1.apply(apply$1$1,arguments)}),classofRaw$3=classofRaw$2$1,uncurryThis$4$1=functionUncurryThis$1,functionUncurryThisClause$1=function(e){if("Function"===classofRaw$3(e))return uncurryThis$4$1(e)},aCallable$5$1=aCallable$8$1,NATIVE_BIND$4=functionBindNative$1,bind$4$1=functionUncurryThisClause$1(functionUncurryThisClause$1.bind),functionBindContext$1=function(e,t){return aCallable$5$1(e),void 0===t?e:NATIVE_BIND$4?bind$4$1(e,t):function(){return e.apply(t,arguments)}},html$2=getBuiltIn$7$1("document","documentElement"),arraySlice$1$1=functionUncurryThis$1([].slice),$TypeError$4$1=TypeError,validateArgumentsLength$1$1=function(e,t){if(e<t)throw $TypeError$4$1("Not enough arguments");return e},userAgent$2$1=engineUserAgent$1,engineIsIos$1=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2$1),global$6$1=global$g,apply$2=functionApply$1,bind$3$1=functionBindContext$1,isCallable$6$1=isCallable$k,hasOwn$1$1=hasOwnProperty_1$1,fails$4$1=fails$e,html$1$1=html$2,arraySlice$2=arraySlice$1$1,createElement$2=documentCreateElement$2,validateArgumentsLength$2=validateArgumentsLength$1$1,IS_IOS$1$1=engineIsIos$1,IS_NODE$3$1=engineIsNode$1,set$2=global$6$1.setImmediate,clear$1=global$6$1.clearImmediate,process$3$1=global$6$1.process,Dispatch$1=global$6$1.Dispatch,Function$1$1=global$6$1.Function,MessageChannel$2=global$6$1.MessageChannel,String$1$1=global$6$1.String,counter$1=0,queue$2$1={},ONREADYSTATECHANGE$1="onreadystatechange",run$1=(fails$4$1(function(){$location$1=global$6$1.location}),function(e){var t;hasOwn$1$1(queue$2$1,e)&&(t=queue$2$1[e],delete queue$2$1[e],t())}),runner$1=function(e){return function(){run$1(e)}},eventListener$1=function(e){run$1(e.data)},globalPostMessageDefer$1=function(e){global$6$1.postMessage(String$1$1(e),$location$1.protocol+"//"+$location$1.host)},task$1$1=(set$2&&clear$1||(set$2=function(e){validateArgumentsLength$2(arguments.length,1);var t=isCallable$6$1(e)?e:Function$1$1(e),n=arraySlice$2(arguments,1);return queue$2$1[++counter$1]=function(){apply$2(t,void 0,n)},defer$1(counter$1),counter$1},clear$1=function(e){delete queue$2$1[e]},IS_NODE$3$1?defer$1=function(e){process$3$1.nextTick(runner$1(e))}:Dispatch$1&&Dispatch$1.now?defer$1=function(e){Dispatch$1.now(runner$1(e))}:MessageChannel$2&&!IS_IOS$1$1?(port$1=(channel$1=new MessageChannel$2).port2,channel$1.port1.onmessage=eventListener$1,defer$1=bind$3$1(port$1.postMessage,port$1)):global$6$1.addEventListener&&isCallable$6$1(global$6$1.postMessage)&&!global$6$1.importScripts&&$location$1&&"file:"!==$location$1.protocol&&!fails$4$1(globalPostMessageDefer$1)?(defer$1=globalPostMessageDefer$1,global$6$1.addEventListener("message",eventListener$1,!1)):defer$1=ONREADYSTATECHANGE$1 in createElement$2("script")?function(e){html$1$1.appendChild(createElement$2("script"))[ONREADYSTATECHANGE$1]=function(){html$1$1.removeChild(this),run$1(e)}}:function(e){setTimeout(runner$1(e),0)}),{set:set$2,clear:clear$1}),Queue$2$1=function(){this.head=null,this.tail=null},queue$1$1=(Queue$2$1.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},Queue$2$1),userAgent$1$1=engineUserAgent$1,engineIsIosPebble$1=/ipad|iphone|ipod/i.test(userAgent$1$1)&&"undefined"!=typeof Pebble,userAgent$4=engineUserAgent$1,engineIsWebosWebkit$1=/web0s(?!.*chrome)/i.test(userAgent$4),global$5$1=global$g,bind$2$1=functionBindContext$1,getOwnPropertyDescriptor$3=objectGetOwnPropertyDescriptor$1.f,macrotask$1=task$1$1.set,Queue$1$1=queue$1$1,IS_IOS$2=engineIsIos$1,IS_IOS_PEBBLE$1=engineIsIosPebble$1,IS_WEBOS_WEBKIT$1=engineIsWebosWebkit$1,IS_NODE$2$1=engineIsNode$1,MutationObserver$1=global$5$1.MutationObserver||global$5$1.WebKitMutationObserver,document$2$1=global$5$1.document,process$2$1=global$5$1.process,Promise$1$1=global$5$1.Promise,queueMicrotaskDescriptor$1=getOwnPropertyDescriptor$3(global$5$1,"queueMicrotask"),microtask$1$1=queueMicrotaskDescriptor$1&&queueMicrotaskDescriptor$1.value,microtask_1$1=(microtask$1$1||(queue$3=new Queue$1$1,flush$1=function(){var e,t;for(IS_NODE$2$1&&(e=process$2$1.domain)&&e.exit();t=queue$3.get();)try{t()}catch(e){throw queue$3.head&¬ify$1$1(),e}e&&e.enter()},notify$1$1=IS_IOS$2||IS_NODE$2$1||IS_WEBOS_WEBKIT$1||!MutationObserver$1||!document$2$1?!IS_IOS_PEBBLE$1&&Promise$1$1&&Promise$1$1.resolve?((promise$1=Promise$1$1.resolve(void 0)).constructor=Promise$1$1,then$1=bind$2$1(promise$1.then,promise$1),function(){then$1(flush$1)}):IS_NODE$2$1?function(){process$2$1.nextTick(flush$1)}:(macrotask$1=bind$2$1(macrotask$1,global$5$1),function(){macrotask$1(flush$1)}):(toggle$1=!0,node$1=document$2$1.createTextNode(""),new MutationObserver$1(flush$1).observe(node$1,{characterData:!0}),function(){node$1.data=toggle$1=!toggle$1}),microtask$1$1=function(e){queue$3.head||notify$1$1(),queue$3.add(e)}),microtask$1$1),hostReportErrors$1$1=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},perform$3$1=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},promiseNativeConstructor$1=global$g.Promise,engineIsDeno$1="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,engineIsBrowser$1=!engineIsDeno$1&&!engineIsNode$1&&"object"==typeof window&&"object"==typeof document,global$3$1=global$g,NativePromiseConstructor$3$1=promiseNativeConstructor$1,isCallable$5$1=isCallable$k,isForced$3=isForced_1$1,inspectSource$4=inspectSource$3$1,wellKnownSymbol$9$1=wellKnownSymbol$g,IS_BROWSER$1=engineIsBrowser$1,IS_DENO$2=engineIsDeno$1,V8_VERSION$2=engineV8Version$1,SPECIES$3=(NativePromiseConstructor$3$1&&NativePromiseConstructor$3$1.prototype,wellKnownSymbol$9$1("species")),SUBCLASSING$1=!1,NATIVE_PROMISE_REJECTION_EVENT$1$1=isCallable$5$1(global$3$1.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5$1=isForced$3("Promise",function(){var e=inspectSource$4(NativePromiseConstructor$3$1),t=e!==String(NativePromiseConstructor$3$1);if(!t&&66===V8_VERSION$2)return!0;if(!V8_VERSION$2||V8_VERSION$2<51||!/native code/.test(e)){function n(e){e(function(){},function(){})}if(((e=new NativePromiseConstructor$3$1(function(e){e(1)})).constructor={})[SPECIES$3]=n,!(SUBCLASSING$1=e.then(function(){})instanceof n))return!0}return!t&&(IS_BROWSER$1||IS_DENO$2)&&!NATIVE_PROMISE_REJECTION_EVENT$1$1}),promiseConstructorDetection$1={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$1,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$1,SUBCLASSING:SUBCLASSING$1},newPromiseCapability$2$1={},aCallable$4$1=aCallable$8$1,$TypeError$3$1=TypeError,PromiseCapability$1=function(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw $TypeError$3$1("Bad Promise constructor");n=e,r=t}),this.resolve=aCallable$4$1(n),this.reject=aCallable$4$1(r)},$$9=(newPromiseCapability$2$1.f=function(e){return new PromiseCapability$1(e)},_export$1),IS_NODE$4=engineIsNode$1,global$2$1=global$g,call$8$1=functionCall$1,defineBuiltIn$3$1=defineBuiltIn$5,setPrototypeOf$1=objectSetPrototypeOf$1,setToStringTag$2=setToStringTag$3,setSpecies$2=setSpecies$1$1,aCallable$3$1=aCallable$8$1,isCallable$4$1=isCallable$k,isObject$3$1=isObject$9,anInstance$2=anInstance$1$1,speciesConstructor$2=speciesConstructor$1$1,task$2=task$1$1.set,microtask$2=microtask_1$1,hostReportErrors$2=hostReportErrors$1$1,perform$2$1=perform$3$1,Queue$3=queue$1$1,InternalStateModule$1$1=internalState$1,NativePromiseConstructor$2$1=promiseNativeConstructor$1,PromiseConstructorDetection$1=promiseConstructorDetection$1,newPromiseCapabilityModule$3$1=newPromiseCapability$2$1,PROMISE$1="Promise",FORCED_PROMISE_CONSTRUCTOR$4$1=PromiseConstructorDetection$1.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$2=PromiseConstructorDetection$1.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$1=PromiseConstructorDetection$1.SUBCLASSING,getInternalPromiseState$1=InternalStateModule$1$1.getterFor(PROMISE$1),setInternalState$1=InternalStateModule$1$1.set,NativePromisePrototype$1$1=NativePromiseConstructor$2$1&&NativePromiseConstructor$2$1.prototype,PromiseConstructor$1=NativePromiseConstructor$2$1,PromisePrototype$1=NativePromisePrototype$1$1,TypeError$1$1=global$2$1.TypeError,document$1$1=global$2$1.document,process$1$1=global$2$1.process,newPromiseCapability$1$1=newPromiseCapabilityModule$3$1.f,newGenericPromiseCapability$1=newPromiseCapability$1$1,DISPATCH_EVENT$1=!!(document$1$1&&document$1$1.createEvent&&global$2$1.dispatchEvent),UNHANDLED_REJECTION$1="unhandledrejection",REJECTION_HANDLED$1="rejectionhandled",PENDING$1=0,FULFILLED$1=1,REJECTED$1=2,HANDLED$1=1,UNHANDLED$1=2,isThenable$1=function(e){var t;return!(!isObject$3$1(e)||!isCallable$4$1(t=e.then))&&t},callReaction$1=function(e,t){var n,r,i,o=t.value,a=t.state==FULFILLED$1,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(t.rejection===UNHANDLED$1&&onHandleUnhandled$1(t),t.rejection=HANDLED$1),!0===s?n=o:(u&&u.enter(),n=s(o),u&&(u.exit(),i=!0)),n===e.promise?c(TypeError$1$1("Promise-chain cycle")):(r=isThenable$1(n))?call$8$1(r,n,l,c):l(n)):c(o)}catch(e){u&&!i&&u.exit(),c(e)}},notify$2=function(n,r){n.notified||(n.notified=!0,microtask$2(function(){for(var e,t=n.reactions;e=t.get();)callReaction$1(e,n);n.notified=!1,r&&!n.rejection&&onUnhandled$1(n)}))},dispatchEvent$1=function(e,t,n){var r;DISPATCH_EVENT$1?((r=document$1$1.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),global$2$1.dispatchEvent(r)):r={promise:t,reason:n},!NATIVE_PROMISE_REJECTION_EVENT$2&&(t=global$2$1["on"+e])?t(r):e===UNHANDLED_REJECTION$1&&hostReportErrors$2("Unhandled promise rejection",n)},onUnhandled$1=function(r){call$8$1(task$2,global$2$1,function(){var e=r.facade,t=r.value,n=isUnhandled$1(r);if(n&&(n=perform$2$1(function(){IS_NODE$4?process$1$1.emit("unhandledRejection",t,e):dispatchEvent$1(UNHANDLED_REJECTION$1,e,t)}),r.rejection=IS_NODE$4||isUnhandled$1(r)?UNHANDLED$1:HANDLED$1,n.error))throw n.value})},isUnhandled$1=function(e){return e.rejection!==HANDLED$1&&!e.parent},onHandleUnhandled$1=function(t){call$8$1(task$2,global$2$1,function(){var e=t.facade;IS_NODE$4?process$1$1.emit("rejectionHandled",e):dispatchEvent$1(REJECTION_HANDLED$1,e,t.value)})},bind$1$1=function(t,n,r){return function(e){t(n,e,r)}},internalReject$1=function(e,t,n){e.done||(e.done=!0,(e=n||e).value=t,e.state=REJECTED$1,notify$2(e,!0))},internalResolve$1=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw TypeError$1$1("Promise can't be resolved itself");var r=isThenable$1(e);r?microtask$2(function(){var t={done:!1};try{call$8$1(r,e,bind$1$1(internalResolve$1,t,n),bind$1$1(internalReject$1,t,n))}catch(e){internalReject$1(t,e,n)}}):(n.value=e,n.state=FULFILLED$1,notify$2(n,!1))}catch(e){internalReject$1({done:!1},e,n)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$1&&(PromisePrototype$1=(PromiseConstructor$1=function(e){anInstance$2(this,PromisePrototype$1),aCallable$3$1(e),call$8$1(Internal$1,this);var t=getInternalPromiseState$1(this);try{e(bind$1$1(internalResolve$1,t),bind$1$1(internalReject$1,t))}catch(e){internalReject$1(t,e)}}).prototype,(Internal$1=function(e){setInternalState$1(this,{type:PROMISE$1,done:!1,notified:!1,parent:!1,reactions:new Queue$3,rejection:!1,state:PENDING$1,value:void 0})}).prototype=defineBuiltIn$3$1(PromisePrototype$1,"then",function(e,t){var n=getInternalPromiseState$1(this),r=newPromiseCapability$1$1(speciesConstructor$2(this,PromiseConstructor$1));return n.parent=!0,r.ok=!isCallable$4$1(e)||e,r.fail=isCallable$4$1(t)&&t,r.domain=IS_NODE$4?process$1$1.domain:void 0,n.state==PENDING$1?n.reactions.add(r):microtask$2(function(){callReaction$1(r,n)}),r.promise}),OwnPromiseCapability$1=function(){var e=new Internal$1,t=getInternalPromiseState$1(e);this.promise=e,this.resolve=bind$1$1(internalResolve$1,t),this.reject=bind$1$1(internalReject$1,t)},newPromiseCapabilityModule$3$1.f=newPromiseCapability$1$1=function(e){return e===PromiseConstructor$1||e===PromiseWrapper$1?new OwnPromiseCapability$1(e):newGenericPromiseCapability$1(e)},isCallable$4$1(NativePromiseConstructor$2$1))&&NativePromisePrototype$1$1!==Object.prototype){nativeThen$1=NativePromisePrototype$1$1.then,NATIVE_PROMISE_SUBCLASSING$1||defineBuiltIn$3$1(NativePromisePrototype$1$1,"then",function(e,t){var n=this;return new PromiseConstructor$1(function(e,t){call$8$1(nativeThen$1,n,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1$1.constructor}catch(e){}setPrototypeOf$1&&setPrototypeOf$1(NativePromisePrototype$1$1,PromisePrototype$1)}$$9({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$1},{Promise:PromiseConstructor$1}),setToStringTag$2(PromiseConstructor$1,PROMISE$1,!1),setSpecies$2(PROMISE$1);var iterators$1={},Iterators$4=iterators$1,ITERATOR$5=wellKnownSymbol$g("iterator"),ArrayPrototype$1=Array.prototype,isArrayIteratorMethod$1$1=function(e){return void 0!==e&&(Iterators$4.Array===e||ArrayPrototype$1[ITERATOR$5]===e)},classof$2$1=classof$4$1,getMethod$1$1=getMethod$3$1,isNullOrUndefined$5=isNullOrUndefined$4$1,Iterators$3=iterators$1,ITERATOR$4=wellKnownSymbol$g("iterator"),getIteratorMethod$2$1=function(e){if(!isNullOrUndefined$5(e))return getMethod$1$1(e,ITERATOR$4)||getMethod$1$1(e,"@@iterator")||Iterators$3[classof$2$1(e)]},call$7$1=functionCall$1,aCallable$2$1=aCallable$8$1,anObject$5$1=anObject$a,tryToString$1$1=tryToString$4$1,getIteratorMethod$1$1=getIteratorMethod$2$1,$TypeError$2$1=TypeError,getIterator$1$1=function(e,t){var n=arguments.length<2?getIteratorMethod$1$1(e):t;if(aCallable$2$1(n))return anObject$5$1(call$7$1(n,e));throw $TypeError$2$1(tryToString$1$1(e)+" is not iterable")},call$6$1=functionCall$1,anObject$4$1=anObject$a,getMethod$4=getMethod$3$1,iteratorClose$1$1=function(e,t,n){var r,i;anObject$4$1(e);try{if(!(r=getMethod$4(e,"return"))){if("throw"===t)throw n;return n}r=call$6$1(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return anObject$4$1(r),n},bind$5=functionBindContext$1,call$5$1=functionCall$1,anObject$3$1=anObject$a,tryToString$5=tryToString$4$1,isArrayIteratorMethod$2=isArrayIteratorMethod$1$1,lengthOfArrayLike$3=lengthOfArrayLike$2$1,isPrototypeOf$3=objectIsPrototypeOf$1,getIterator$2=getIterator$1$1,getIteratorMethod$3=getIteratorMethod$2$1,iteratorClose$2=iteratorClose$1$1,$TypeError$1$1=TypeError,Result$1=function(e,t){this.stopped=e,this.result=t},ResultPrototype$1=Result$1.prototype,iterate$2$1=function(e,t,n){function r(e){return o&&iteratorClose$2(o,"normal",e),new Result$1(!0,e)}function i(e){return p?(anObject$3$1(e),m?g(e[0],e[1],r):g(e[0],e[1])):m?g(e,r):g(e)}var o,a,s,l,c,u,d=n&&n.that,p=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),g=bind$5(t,d);if(f)o=e.iterator;else if(h)o=e;else{if(!(n=getIteratorMethod$3(e)))throw $TypeError$1$1(tryToString$5(e)+" is not iterable");if(isArrayIteratorMethod$2(n)){for(a=0,s=lengthOfArrayLike$3(e);a<s;a++)if((l=i(e[a]))&&isPrototypeOf$3(ResultPrototype$1,l))return l;return new Result$1(!1)}o=getIterator$2(e,n)}for(c=(f?e:o).next;!(u=call$5$1(c,o)).done;){try{l=i(u.value)}catch(e){iteratorClose$2(o,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf$3(ResultPrototype$1,l))return l}return new Result$1(!1)},ITERATOR$3=wellKnownSymbol$g("iterator"),SAFE_CLOSING$1=!1;try{var called$1=0,iteratorWithReturn$1={next:function(){return{done:!!called$1++}},return:function(){SAFE_CLOSING$1=!0}};iteratorWithReturn$1[ITERATOR$3]=function(){return this},Array.from(iteratorWithReturn$1,function(){throw 2})}catch(e){}var method$1,activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,checkCorrectnessOfIteration$1$1=function(e,t){if(!t&&!SAFE_CLOSING$1)return!1;var n=!1;try{var r={};r[ITERATOR$3]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},NativePromiseConstructor$1$1=promiseNativeConstructor$1,checkCorrectnessOfIteration$2=checkCorrectnessOfIteration$1$1,FORCED_PROMISE_CONSTRUCTOR$3$1=promiseConstructorDetection$1.CONSTRUCTOR,promiseStaticsIncorrectIteration$1=FORCED_PROMISE_CONSTRUCTOR$3$1||!checkCorrectnessOfIteration$2(function(e){NativePromiseConstructor$1$1.all(e).then(void 0,function(){})}),call$4$1=functionCall$1,aCallable$1$1=aCallable$8$1,newPromiseCapabilityModule$2$1=newPromiseCapability$2$1,perform$1$1=perform$3$1,iterate$1$1=iterate$2$1,$$7=(_export$1({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration$1},{all:function(e){var s=this,t=newPromiseCapabilityModule$2$1.f(s),l=t.resolve,c=t.reject,n=perform$1$1(function(){var r=aCallable$1$1(s.resolve),i=[],o=0,a=1;iterate$1$1(e,function(e){var t=o++,n=!1;a++,call$4$1(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a)||l(i)},c)}),--a||l(i)});return n.error&&c(n.value),t.promise}}),_export$1),FORCED_PROMISE_CONSTRUCTOR$2$1=promiseConstructorDetection$1.CONSTRUCTOR,NativePromiseConstructor$4=promiseNativeConstructor$1,getBuiltIn$1$1=getBuiltIn$7$1,isCallable$3$1=isCallable$k,defineBuiltIn$2$1=defineBuiltIn$5,NativePromisePrototype$2=NativePromiseConstructor$4&&NativePromiseConstructor$4.prototype,call$3$1=($$7({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$1,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable$3$1(NativePromiseConstructor$4)&&(method$1=getBuiltIn$1$1("Promise").prototype.catch,NativePromisePrototype$2.catch!==method$1)&&defineBuiltIn$2$1(NativePromisePrototype$2,"catch",method$1,{unsafe:!0}),functionCall$1),aCallable$9=aCallable$8$1,newPromiseCapabilityModule$1$1=newPromiseCapability$2$1,perform$4=perform$3$1,iterate$3=iterate$2$1,$$5$1=(_export$1({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration$1},{race:function(e){var n=this,r=newPromiseCapabilityModule$1$1.f(n),i=r.reject,t=perform$4(function(){var t=aCallable$9(n.resolve);iterate$3(e,function(e){call$3$1(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}}),_export$1),call$2$1=functionCall$1,newPromiseCapabilityModule$4=newPromiseCapability$2$1,FORCED_PROMISE_CONSTRUCTOR$1$1=promiseConstructorDetection$1.CONSTRUCTOR,anObject$2$1=($$5$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$1},{reject:function(e){var t=newPromiseCapabilityModule$4.f(this);return call$2$1(t.reject,void 0,e),t.promise}}),anObject$a),isObject$2$1=isObject$9,newPromiseCapability$3=newPromiseCapability$2$1,promiseResolve$1$1=function(e,t){return anObject$2$1(e),isObject$2$1(t)&&t.constructor===e?t:((0,(e=newPromiseCapability$3.f(e)).resolve)(t),e.promise)},$$4$1=_export$1,getBuiltIn$8=getBuiltIn$7$1,FORCED_PROMISE_CONSTRUCTOR$6=promiseConstructorDetection$1.CONSTRUCTOR,promiseResolve$2=promiseResolve$1$1,objectDefineProperties=(getBuiltIn$8("Promise"),$$4$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$6},{resolve:function(e){return promiseResolve$2(this,e)}}),{}),internalObjectKeys$2=objectKeysInternal$1,enumBugKeys$1$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys$2(e,enumBugKeys$1$1)},DESCRIPTORS$2$1=descriptors$1,V8_PROTOTYPE_DEFINE_BUG$2=v8PrototypeDefineBug$1,definePropertyModule$4=objectDefineProperty$1,anObject$1$1=anObject$a,toIndexedObject$1$1=toIndexedObject$5,objectKeys$1=objectKeys$2,anObject$b=(objectDefineProperties.f=DESCRIPTORS$2$1&&!V8_PROTOTYPE_DEFINE_BUG$2?Object.defineProperties:function(e,t){anObject$1$1(e);for(var n,r=toIndexedObject$1$1(t),i=objectKeys$1(t),o=i.length,a=0;a<o;)definePropertyModule$4.f(e,n=i[a++],r[n]);return e},anObject$a),definePropertiesModule=objectDefineProperties,enumBugKeys$2=enumBugKeys$3,hiddenKeys$5=hiddenKeys$4,html$3=html$2,documentCreateElement$1=documentCreateElement$2,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html$3.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys$2.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys$2[e]];return NullProtoObject()},objectCreate=(hiddenKeys$5[IE_PROTO$1]=!0,Object.create||function(e,t){var n;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$b(e),n=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,n[IE_PROTO$1]=e):n=NullProtoObject(),void 0===t?n:definePropertiesModule.f(n,t)}),wellKnownSymbol$5$1=wellKnownSymbol$g,create$1=objectCreate,defineProperty$2$1=objectDefineProperty$1.f,UNSCOPABLES=wellKnownSymbol$5$1("unscopables"),ArrayPrototype$2=Array.prototype,addToUnscopables$2=(null==ArrayPrototype$2[UNSCOPABLES]&&defineProperty$2$1(ArrayPrototype$2,UNSCOPABLES,{configurable:!0,value:create$1(null)}),function(e){ArrayPrototype$2[UNSCOPABLES][e]=!0}),correctPrototypeGetter=!fails$e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$a=hasOwnProperty_1$1,isCallable$2$1=isCallable$k,toObject$1$1=toObject$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object$5=Object,ObjectPrototype=$Object$5.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object$5.getPrototypeOf:function(e){var t,e=toObject$1$1(e);return hasOwn$a(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$2$1(t)&&e instanceof t?t.prototype:e instanceof $Object$5?ObjectPrototype:null)},fails$2$1=fails$e,isCallable$1$1=isCallable$k,isObject$1$1=isObject$9,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$1$1=defineBuiltIn$5,ITERATOR$2$1=wellKnownSymbol$g("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),!isObject$1$1(IteratorPrototype$2)||fails$2$1(function(){var e={};return IteratorPrototype$2[ITERATOR$2$1].call(e)!==e})),iteratorsCore=(isCallable$1$1((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$2$1])||defineBuiltIn$1$1(IteratorPrototype$2,ITERATOR$2$1,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),IteratorPrototype$1=iteratorsCore.IteratorPrototype,create=objectCreate,createPropertyDescriptor$4=createPropertyDescriptor$3,setToStringTag$1$1=setToStringTag$3,Iterators$2=iterators$1,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,n,r){return t+=" Iterator",e.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor$4(+!r,n)}),setToStringTag$1$1(e,t,!1),Iterators$2[t]=returnThis$1,e},$$3$1=_export$1,call$1$1=functionCall$1,FunctionName=functionName$1,isCallable$l=isCallable$k,createIteratorConstructor=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$2=objectSetPrototypeOf$1,setToStringTag$4=setToStringTag$3,createNonEnumerableProperty$1$1=createNonEnumerableProperty$4,defineBuiltIn$6=defineBuiltIn$5,wellKnownSymbol$3$1=wellKnownSymbol$g,Iterators$1$1=iterators$1,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME$2=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$1$1=wellKnownSymbol$3$1("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,n,r,i,o,a){function s(e){if(e===i&&f)return f;if(!BUGGY_SAFARI_ITERATORS&&e in d)return d[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new n(this,e)}}return function(){return new n(this)}}createIteratorConstructor(n,t,r);var l,c,r=t+" Iterator",u=!1,d=e.prototype,p=d[ITERATOR$1$1]||d["@@iterator"]||i&&d[i],f=!BUGGY_SAFARI_ITERATORS&&p||s(i),h="Array"==t&&d.entries||p;if(h&&(h=getPrototypeOf(h.call(new e)))!==Object.prototype&&h.next&&(getPrototypeOf(h)!==IteratorPrototype&&(setPrototypeOf$2?setPrototypeOf$2(h,IteratorPrototype):isCallable$l(h[ITERATOR$1$1])||defineBuiltIn$6(h,ITERATOR$1$1,returnThis)),setToStringTag$4(h,r,!0)),PROPER_FUNCTION_NAME&&i==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME$2?createNonEnumerableProperty$1$1(d,"name",VALUES):(u=!0,f=function(){return call$1$1(p,this)})),i)if(l={values:s(VALUES),keys:o?f:s(KEYS),entries:s(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in d||defineBuiltIn$6(d,c,l[c]);else $$3$1({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return d[ITERATOR$1$1]!==f&&defineBuiltIn$6(d,ITERATOR$1$1,f,{name:i}),Iterators$1$1[t]=f,l},createIterResultObject$1=function(e,t){return{value:e,done:t}},toIndexedObject$6=toIndexedObject$5,addToUnscopables$1=addToUnscopables$2,Iterators$5=iterators$1,InternalStateModule$3=internalState$1,defineProperty$1$1=objectDefineProperty$1.f,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$1,DESCRIPTORS$1$1=descriptors$1,ARRAY_ITERATOR="Array Iterator",setInternalState$2=InternalStateModule$3.set,getInternalState$2=InternalStateModule$3.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState$2(this,{type:ARRAY_ITERATOR,target:toIndexedObject$6(e),index:0,kind:t})},function(){var e=getInternalState$2(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,createIterResultObject(void 0,!0)):createIterResultObject("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)},"values"),values=Iterators$5.Arguments=Iterators$5.Array;if(addToUnscopables$1("keys"),addToUnscopables$1("values"),addToUnscopables$1("entries"),DESCRIPTORS$1$1&&"values"!==values.name)try{defineProperty$1$1(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$1$1=global$g,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$5=createNonEnumerableProperty$4,wellKnownSymbol$2$1=wellKnownSymbol$g,ITERATOR$6=wellKnownSymbol$2$1("iterator"),TO_STRING_TAG$4=wellKnownSymbol$2$1("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(e,t){if(e){if(e[ITERATOR$6]!==ArrayValues)try{createNonEnumerableProperty$5(e,ITERATOR$6,ArrayValues)}catch(t){e[ITERATOR$6]=ArrayValues}if(e[TO_STRING_TAG$4]||createNonEnumerableProperty$5(e,TO_STRING_TAG$4,t),DOMIterables[t])for(var n in ArrayIteratorMethods)if(e[n]!==ArrayIteratorMethods[n])try{createNonEnumerableProperty$5(e,n,ArrayIteratorMethods[n])}catch(t){e[n]=ArrayIteratorMethods[n]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$1$1[COLLECTION_NAME]&&global$1$1[COLLECTION_NAME].prototype,COLLECTION_NAME);function __awaiter$4(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}handlePrototype(DOMTokenListPrototype,"DOMTokenList");var react={exports:{}},react_production_min={},l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(e){return null!==e&&"object"==typeof e&&"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(e,t,n){this.props=e,this.context=t,this.refs=D,this.updater=n||B}function F(){}function G(e,t,n){this.props=e,this.context=t,this.refs=D,this.updater=n||B}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},F.prototype=E.prototype;var H=G.prototype=new F,I=(H.constructor=G,C(H,E.prototype),H.isPureReactComponent=!0,Array.isArray),J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var r,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)J.call(t,r)&&!L.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:l,type:e,key:o,ref:a,props:i,_owner:K.current}}function N(e,t){return{$$typeof:l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}function escape$1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}var P=/\/+/g;function Q(e,t){return"object"==typeof e&&null!==e&&null!=e.key?escape$1(""+e.key):t.toString(36)}function R(e,t,r,i,o){var a=!1;if(null===(e="undefined"!=(c=typeof e)&&"boolean"!==c?e:null))a=!0;else switch(c){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case l:case n:a=!0}}if(a)return o=o(a=e),e=""===i?"."+Q(a,0):i,I(o)?(r="",R(o,t,r=null!=e?e.replace(P,"$&/")+"/":r,"",function(e){return e})):null!=o&&(O(o)&&(o=N(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(P,"$&/")+"/")+e)),t.push(o)),1;if(a=0,i=""===i?".":i+":",I(e))for(var s=0;s<e.length;s++){var c,u=i+Q(c=e[s],s);a+=R(c,t,r,u,o)}else if("function"==typeof(u=A(e)))for(e=u.call(e),s=0;!(c=e.next()).done;)a+=R(c=c.value,t,r,u=i+Q(c,s++),o);else if("object"===c)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function S(e,t,n){var r;return null!=e&&(r=0,R(e,e=[],"","",function(e){return t.call(n,e,r++)})),e}function T(t){var e;if(-1===t._status&&((e=(e=t._result)()).then(function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)},function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)}),-1===t._status)&&(t._status=0,t._result=e),1===t._status)return t._result.default;throw t._result}var EMessageTypes,EFrameLinkEvents,U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};react_production_min.Children={map:S,forEach:function(e,t,n){S(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return S(e,function(){t++}),t},toArray:function(e){return S(e,function(e){return e})||[]},only:function(e){if(O(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},react_production_min.Component=E,react_production_min.Fragment=p,react_production_min.Profiler=r,react_production_min.PureComponent=G,react_production_min.StrictMode=q,react_production_min.Suspense=w,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,react_production_min.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=C({},e.props),i=e.key,o=e.ref,a=e._owner;if(null!=t)for(s in void 0!==t.ref&&(o=t.ref,a=K.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)J.call(t,s)&&!L.hasOwnProperty(s)&&(r[s]=(void 0===t[s]&&void 0!==c?c:t)[s]);var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];r.children=c}return{$$typeof:l,type:e.type,key:i,ref:o,props:r,_owner:a}},react_production_min.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:t,_context:e},e.Consumer=e},react_production_min.createElement=M,react_production_min.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(e){return{$$typeof:v,render:e}},react_production_min.isValidElement=O,react_production_min.lazy=function(e){return{$$typeof:y,_payload:{_status:-1,_result:e},_init:T}},react_production_min.memo=function(e,t){return{$$typeof:x,type:e,compare:void 0===t?null:t}},react_production_min.startTransition=function(e){var t=V.transition;V.transition={};try{e()}finally{V.transition=t}},react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},react_production_min.useCallback=function(e,t){return U.current.useCallback(e,t)},react_production_min.useContext=function(e){return U.current.useContext(e)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(e){return U.current.useDeferredValue(e)},react_production_min.useEffect=function(e,t){return U.current.useEffect(e,t)},react_production_min.useId=function(){return U.current.useId()},react_production_min.useImperativeHandle=function(e,t,n){return U.current.useImperativeHandle(e,t,n)},react_production_min.useInsertionEffect=function(e,t){return U.current.useInsertionEffect(e,t)},react_production_min.useLayoutEffect=function(e,t){return U.current.useLayoutEffect(e,t)},react_production_min.useMemo=function(e,t){return U.current.useMemo(e,t)},react_production_min.useReducer=function(e,t,n){return U.current.useReducer(e,t,n)},react_production_min.useRef=function(e){return U.current.useRef(e)},react_production_min.useState=function(e){return U.current.useState(e)},react_production_min.useSyncExternalStore=function(e,t,n){return U.current.useSyncExternalStore(e,t,n)},react_production_min.useTransition=function(){return U.current.useTransition()},react_production_min.version="18.2.0",react.exports=react_production_min,react.exports.createContext({});const filePicker=(e,t)=>window.aiware.mountPanel({panelId:"DATA_CENTER_IMPORTER",microFrontend:{name:"DATA_CENTER_IMPORTER",config:{requestId:e,frameLink:t}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:document.querySelector("#VERITONE_PANEL_ID")?80:0,size:"large",zIndex:1e3}}),errors={childCantSend:{id:"aiware-desktop.frame-link.child-cannot-send",defaultMessage:"Child frame cannot send this type of message",description:"Child frame is not allowed to send this type of message"},parentCantSend:{id:"aiware-desktop.frame-link.parent-cannot-send",defaultMessage:"Desktop App cannot send this type of message to child frame",description:"Desktop App is not allowed to send this type of message"},childAppNotResponding:{id:"aiware-desktop.frame-link.child-heartbeat-check-failed",defaultMessage:"Child frame appears to be frozen",description:"Child app failed to send a heartbeat to report healthy status"},unsupportedUtility:{id:"aiware-desktop.frame-link.unsupported-utility",defaultMessage:"Cannot find the requested utility",description:"Error when child app is requesting a use of unsupported utility"},operationCancelled:{id:"aiware-desktop.frame-link.operation-cancelled",defaultMessage:"Operation cancelled",description:"Error message when the operation requested by child frame is cancelled"}},Utilities=(function(e){e.getInitContext="getInitContext",e.initContext="initContext",e.updateContext="updateContext",e.reportActivity="reportActivity",e.response="response",e.utility="utility",e.error="error",e.heartbeat="heartbeat"}(EMessageTypes=EMessageTypes||{}),{filePicker:filePicker});(EFrameLinkEvents=EFrameLinkEvents||{}).init="init";var $$2$1=_export$1,$includes=arrayIncludes$1.includes,addToUnscopables=addToUnscopables$2,BROKEN_ON_SPARSE=fails$e(function(){return!Array(1).includes()}),isObject$a=($$2$1({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),addToUnscopables("includes"),isObject$9),classof$1$1=classofRaw$2$1,MATCH$1=wellKnownSymbol$g("match"),isRegexp=function(e){var t;return isObject$a(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$1$1(e))},isRegExp=isRegexp,$TypeError$e=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError$e("The method doesn't accept regular expressions");return e},classof$5=classof$4$1,$String$5=String,toString$1$1=function(e){if("Symbol"===classof$5(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$5(e)},MATCH=wellKnownSymbol$g("match"),correctIsRegexpLogic=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[MATCH]=!1,"/./"[t](n)}catch(e){}}return!1},$$1$1=_export$1,notARegExp=notARegexp,requireObjectCoercible$4=requireObjectCoercible$3,toString$4=toString$1$1,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=functionUncurryThis$1("".indexOf),DESCRIPTORS$8=($$1$1({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString$4(requireObjectCoercible$4(this)),toString$4(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}}),descriptors$1),uncurryThis$e=functionUncurryThis$1,call$f=functionCall$1,fails$c=fails$e,objectKeys=objectKeys$2,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols$1,propertyIsEnumerableModule$2=objectPropertyIsEnumerable$1,toObject$4=toObject$3,IndexedObject$2=indexedObject$1,$assign=Object.assign,defineProperty$7=Object.defineProperty,concat$2=uncurryThis$e([].concat),objectAssign=!$assign||fails$c(function(){var e,t,n,r;return!(!DESCRIPTORS$8||1===$assign({b:1},$assign(defineProperty$7({},"a",{enumerable:!0,get:function(){defineProperty$7(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[n])||objectKeys($assign({},t)).join("")!=r})?function(e,t){for(var n=toObject$4(e),r=arguments.length,i=1,o=getOwnPropertySymbolsModule$2.f,a=propertyIsEnumerableModule$2.f;i<r;)for(var s,l=IndexedObject$2(arguments[i++]),c=o?concat$2(objectKeys(l),o(l)):objectKeys(l),u=c.length,d=0;d<u;)s=c[d++],DESCRIPTORS$8&&!call$f(a,l,s)||(n[s]=l[s]);return n}:$assign,assign=objectAssign;function handleMessage(e){var t;if((this.isChild||e.origin===this.origin)&&e.data&&null!=(t=null==(t=e.data)?void 0:t.type)&&t.includes("aiware:"))switch(this.isChild||(this.heartbeatReceived=(new Date).getTime()),e.data.type.split(":")[1]){case EMessageTypes.getInitContext:var{auth:n,configs:r}=null==(n=this.store)?void 0:n.getState(),n={authToken:null==n?void 0:n.sessionToken,baseUrl:null==(r=null==r?void 0:r.initConfig)?void 0:r.baseUrl,userId:null==n?void 0:n.userId,organizationId:null==(r=null==(r=null==n?void 0:n.user)?void 0:r.organization)?void 0:r.organizationId,language:null==(r=null==n?void 0:n.user)?void 0:r.preferredLanguage};this.postMessage(EMessageTypes.initContext,n),this.initialized=!0;break;case EMessageTypes.initContext:this.initialized||(Object.assign(this.context,e.data.payload),this.contextReceivedResolve&&this.contextReceivedResolve(),this.subscribers.forEach(e=>{e(this.context)}));break;case EMessageTypes.response:var{requestId:r,data:n,error:i}=e.data.payload;this.responses[r]={data:n,error:i};break;case EMessageTypes.reportActivity:break;case EMessageTypes.utility:var{utility:r,requestId:n}=e.data.payload;Utilities[r](n,this);break;case EMessageTypes.error:var{requestId:i,error:r}=e.data.payload;i&&(this.responses[i]={error:r,data:null}),this.errorAction&&this.intl&&this.errorAction(this.intl.formatMessage(r))}}function postMessage(t,e={}){!!this.canSendMap.common.find(e=>e===t)||(this.isChild?!!this.canSendMap.child.find(e=>e===t):!!this.canSendMap.parent.find(e=>e===t))?(this.isChild?window.parent:document.querySelector("iframe").contentWindow).postMessage({type:"aiware:"+t,payload:e},this.isChild?document.referrer:this.origin):this.isChild?this.postMessage(EMessageTypes.error,errors.childCantSend):this.errorAction&&this.intl&&this.errorAction(this.intl.formatMessage(errors.parentCantSend))}function healthReporting(){setInterval(()=>{this.postMessage(EMessageTypes.heartbeat)},this.heartbeatInterval)}function healthMonitoring(){this.interval||(this.interval=setInterval(()=>{(new Date).getTime()-new Date(this.heartbeatReceived).getTime()>this.heartbeatInterval+500&&(this.errorAction&&this.intl&&this.errorAction(this.intl.formatMessage(errors.childAppNotResponding)),clearInterval(this.interval))},this.heartbeatInterval+500))}function reportActivity(e){this.postMessage(EMessageTypes.reportActivity,{activity:e})}function subscribe(t){return this.subscribers.push(t),this.subscribers.length,this.subscribers=[...new Set(this.subscribers)],this.subscribers.length,()=>{this.subscribers=this.subscribers.filter(e=>e!==t)}}function init$1(){this.isChild?(this.postMessage(EMessageTypes.getInitContext),this.healthReporting()):this.initialized?this.healthMonitoring():setTimeout(()=>{this.initialized?this.dispatch(EFrameLinkEvents.init,null,!0):this.dispatch(EFrameLinkEvents.init,new Error("Cannot establish handshake"))},this.heartbeatInterval),window.addEventListener("message",this.handleMessage.bind(this),!1)}function useUtility(e,t){var r;return __awaiter$4(this,void 0,void 0,function*(){if(Utilities[e]){const n=e+"-"+Date.now();return this.postMessage(EMessageTypes.utility,{utility:e,data:t,requestId:n}),yield new Promise(e=>{const t=setInterval(()=>{this.responses[n]&&(e(this.responses[n]),delete this.responses[n],clearInterval(t))},50)})}this.errorAction&&this.errorAction(null==(r=this.intl)?void 0:r.formatMessage(errors.unsupportedUtility))})}_export$1({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});class AiwareFrameLink{constructor(e,t){this.init=init$1.bind(this),this.handleMessage=handleMessage.bind(this),this.postMessage=postMessage.bind(this),this.healthReporting=healthReporting.bind(this),this.healthMonitoring=healthMonitoring.bind(this),this.subscribe=subscribe.bind(this),this.reportActivity=reportActivity.bind(this),this.useUtility=useUtility.bind(this),this.initialized=!1,this.canSendMap={parent:[EMessageTypes.initContext,EMessageTypes.updateContext],child:[EMessageTypes.getInitContext,EMessageTypes.reportActivity,EMessageTypes.utility,EMessageTypes.heartbeat],common:[EMessageTypes.error,EMessageTypes.response]},this.isChild=!e,this.origin=e,this.context={baseUrl:null,authToken:null,language:null,userId:null,organizationId:null},this.contextReceivedResolve=null,this.contextReceived=new Promise(e=>{this.contextReceivedResolve=e}),this.subscribers=[],this.responses={},this.heartbeatInterval=t||5e3,this.heartbeatReceived=(new Date).getTime(),this.events=new Map,this.init()}on(e,n){if(!EFrameLinkEvents[e])throw new Error(`Unknown event type: \`${e}\``);this.events.set(e,function(e,...t){n(e,...t)})}dispatch(e,t,...n){this.events.has(e)&&null!=(e=this.events.get(e))&&e(t,...n)}static init({origin:n,subscribers:r,errorAction:i,intl:o,store:a}){return __awaiter$4(this,void 0,void 0,function*(){var e=new AiwareFrameLink(n);if(i&&(e.errorAction=i),a&&(e.store=a),r&&r.length)for(const t of r)e.subscribe(t);return n?o&&(e.intl=o):(yield e.contextReceived,e.initialized=!0),e})}}function __rest$1(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function __awaiter$3(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}const useStyles$2$2=makeStyles()((e,{titleColor:t,logo:n,activeColor:r,onClickLogo:i},o)=>({appBar:{top:0,left:0,right:0,display:"flex",position:"fixed",boxShadow:"none",borderBottom:"0.5px solid "+e.palette.divider,["& ."+o.logo]:{cursor:"pointer","& img":{width:"100%",height:"100%",objectFit:"scale-down",userSelect:"none"}},backgroundColor:e.palette.background.default},menuButton:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0",marginLeft:e.spacing(5)},margin:{marginRight:e.spacing(.4),display:"flex",alignItems:"center"},barIcon:{padding:e.spacing(.8)},iconButton:{padding:0},hamburgerIcon:{padding:e.spacing(1.4),width:32,height:32,WebkitMask:`url("${img$1D}") no-repeat 50% 50%`,backgroundColor:t},appLogo:{display:"inline-block",width:150,height:32,backgroundImage:`url("${n}")`,backgroundRepeat:"no-repeat",backgroundPosition:"left center",cursor:i?"pointer":"default"},title:{fontStyle:"normal !important",fontWeight:600,fontSize:"18px !important",lineHeight:"22px !important",letterSpacing:"0.225px !important",mixBlendMode:"normal",textTransform:"uppercase",color:t+" important",whiteSpace:"nowrap","&:hover":{cursor:"pointer"}},content:{height:"100%",flexGrow:1,display:"flex",flexWrap:"nowrap",flexDirection:"row",alignItems:"center",padding:e.spacing(0,3.2),"& > div":{display:"flex",flexWrap:"nowrap",flexDirection:"row"},["& ."+o.left]:{justifyContent:"flex-start"},["& ."+o.right]:{justifyContent:"flex-end"},["& ."+o.searchBarHolder]:{flexGrow:1},["& ."+o.appLogo]:{userSelect:"none"},["& ."+o.controllers]:{display:"flex",alignItems:"center"}},iconGroup:{display:"flex",justifyContent:"space-between",alignItems:"center"},iconGroupIcon:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},rightActionLabel:{fontWeight:400,fontSize:14,lineHeight:"16px",textDecoration:"none",color:"white",cursor:"pointer",display:"block"},noSelect:{userSelect:"none"},active:{opacity:1},smallOrgAvatar:{width:"30px !important",height:"30px !important",fontSize:"16px !important"},passive:{opacity:.8},icon:{width:"40px !important",height:"40px !important",padding:0,backgroundPosition:"center",backgroundRepeat:"no-repeat"},logo:{},left:{},right:{},searchBarHolder:{},controllers:{},appIcon:{height:"32px",width:"32px",borderRadius:"50%",marginLeft:e.spacing(4.4),"&:hover":{cursor:"pointer"}},applicationIcon:{WebkitMask:`url("${img$15}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},veritoneLogo:{WebkitMask:`url("${img$1C}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openPanel:{backgroundImage:`url("${img$1g}") !important`},notificationIcon:{WebkitMask:`url("${img$8}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},applicationSettingsIcon:{WebkitMask:`url("${img$1v}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},dashboardIcon:{WebkitMask:`url("${img$a}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openNotificationPanel:{backgroundImage:`url(${img$1f}) !important`},orgIcon:{borderRadius:"50%",width:30,height:30,backgroundRepeat:"no-repeat",backgroundPosition:"center"},logoIcon:{WebkitMask:`url("${n}") no-repeat 50% 50%`,backgroundColor:t},helpIcon:{WebkitMask:`url("${img$9}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openHelp:{backgroundImage:`url(${img$1e}) !important`},orgButton:{padding:e.spacing(2)},panelActive:{borderRadius:"50%",backgroundColor:r},notificationBadge:{"& > span":{top:e.spacing(2),right:e.spacing(2)}},appBarSkeleton:{position:"absolute",zIndex:1005,height:55},marginRightSkeleton:{marginRight:e.spacing(4)},leftContainerSkeleton:{display:"flex",alignItems:"center",paddingLeft:e.spacing(5)}})),useStyles$1$2=makeStyles()((e,t,n)=>({popover:{marginTop:18,["& "+n.helpItemText]:{padding:e.spacing(0),fontSize:15},["& "+n.versionWrapper]:{padding:e.spacing(3.2,0),["& "+n.versionText]:{fontSize:12,color:"#757575"}}},helpItemText:{},versionWrapper:{},versionText:{},help:{},barIcon:{padding:e.spacing(.8)},icon:{width:"40px !important",height:"40px !important",padding:e.spacing(0),backgroundPosition:"center",backgroundRepeat:"no-repeat"},helpIcon:{WebkitMask:`url("${img$9}") no-repeat 50% 50%`,backgroundColor:e.palette.background.default,"&:hover":{backgroundColor:e.palette.background.default}},list:{backgroundColor:e.palette.background.default},popoverColor:{backgroundColor:e.palette.background.default}})),Help=({onOpen:t,onClose:e,helpDocLink:n,helpDocCallback:r,supportCallback:i,displaySupportChat:o,displayChatWithSupport:a,desktopIconStyle:s})=>{var l=useStyles$1$2()["classes"];const[c,u]=react$1.exports.useState(null);const d=()=>{u(null),null!=e&&e()};var p=n||r,f=null==(f=window.config)?void 0:f.appVersion;return jsxRuntime.exports.jsxs("div",Object.assign({className:l.help},{children:[jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.KrqRIg",defaultMessage:"Help Center",description:"appbar tooltip: help-center button text"}),"aria-label":"help"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:l.barIcon,onClick:e=>{u(e.currentTarget),null!=t&&t()},"data-veritone-element":"help-button","data-testid":"help-button","aria-label":"help",size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(l.icon,l.helpIcon),style:s})}))})),jsxRuntime.exports.jsx(Popover$1,Object.assign({open:Boolean(c),anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},onClose:d,className:l.popover,classes:{paper:l.popoverColor},disableScrollLock:!0},{children:jsxRuntime.exports.jsxs(List$2,Object.assign({disablePadding:!0,className:l.list},{children:[p&&jsxRuntime.exports.jsxs(ListItemButton$1,Object.assign({onClick:()=>{d(),null!=r&&r(),n&&window.open(n,"_blank")},"data-veritone-element":"show-help-doc-button","data-testid":"show-help-doc-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(AppBarArticleIcon,{})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.MSM3Vh",defaultMessage:"View Help Docs",description:"help tooltip: text for documentation"}),classes:{root:l.helpItemText}})]})),a&&jsxRuntime.exports.jsxs(ListItemButton$1,Object.assign({onClick:()=>{null!=i&&i(),sdkEventManager.dispatch(SdkEvents.openSupport),u(null)},"data-veritone-element":"open-chat-with-support-button","data-testid":"app-bar-show-chat-with-support-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(Chat,{fontSize:"small"})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-chat-with-support.MBM3Vh2",defaultMessage:"Chat with Support",description:"help tooltip: salesforce chat with support"}),classes:{root:l.helpItemText}})]})),o&&jsxRuntime.exports.jsxs(ListItemButton$1,Object.assign({onClick:()=>{null!=i&&i(),u(null)},"data-veritone-element":"open-support-chat-button","data-testid":"support-chat-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(AppBarInAppGuidance,{})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.8aLpuV",defaultMessage:"In-App Guidance",description:"help tooltip: text for documentation"}),classes:{root:l.helpItemText}})]})),f&&jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx(ListItem$1,Object.assign({className:l.versionWrapper},{children:jsxRuntime.exports.jsx(ListItemText$1,{primary:f,classes:{primary:l.versionText}})}))]})]}))}))]}))},namespace$5="users",userSelector=e=>null==e?void 0:e.aiWareHeaderBar,rootSelector=e=>e,notificationStatusSelector=e=>null!=e&&e.osNotificationPanel?null==e?void 0:e.osNotificationPanel.status:"",useStyles$k=makeStyles()(e=>({title:{paddingTop:e.spacing(5.5)},contentText:{fontSize:14},dialogActions:{marginBottom:e.spacing(3),paddingRight:e.spacing(5)},signOutButton:{height:34,marginRight:e.spacing(1)},staySignedInButton:{height:34}})),LOGOUT_CALL_LIMIT=1;let logoutCallCounter=0;const RESET_IDLE_TIMER_CALL_LIMIT=1,MINUTES_BEFORE_SESSION_EXPIRATION=3;let timer;const SessionTimeout=e=>{const t=e["test"],n=useDispatch();e=useStyles$k().classes;const r=useSelector(isIdleSelector);var i=useSelector(userSelector$2);const o=useSelector(sessionTokenSelector),a=useSelector(loginUrlSelector),s=useSelector(callLogoutSelector),l=useSelector(clickedLogoutSelector),c=null==i?void 0:i.tokenExpiration,u=useSelector(callResetIdleTimerSelector);i=useSelector(sessionTimeoutSelector)||60;const d=useSelector(reloadPageSelector),p=useSelector(resetIdleTimerCallCounterSelector),[f,h]=react$1.exports.useState(t?5:60),[m,g]=react$1.exports.useState(new Date),[y,$]=react$1.exports.useState(),[v,x]=react$1.exports.useState(),[b,C]=react$1.exports.useState(!1),[S,w]=react$1.exports.useState(!1),_=react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setIsIdle,value:e,ephemeral:!0,contentType:"json"}))},[n]),T=(react$1.exports.useEffect(()=>{n(getSessionTimeout(o))},[]),react$1.exports.useEffect(()=>{d&&window.location.replace("/")},[d]),react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setCallLogout,value:e,ephemeral:!0,contentType:"json"}))},[n])),E=react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setClickedLogout,value:e,ephemeral:!0,contentType:"json"}))},[n]),j=react$1.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setCallResetIdleTimer,value:e,ephemeral:!0,contentType:"json"}))},[n]),I=react$1.exports.useCallback(()=>{logoutCallCounter++,T(!0);var e=l?500:5e3;n(logoutRequest({token:o})),setTimeout(()=>{window.location.href=a+"/#/?redirect="+window.location.href},t?2e3:e)},[T,n,o,a,l]);var R=react$1.exports.useCallback(()=>{logoutCallCounter++,_(!1),setTimeout(()=>{T(!0),E(!0),n(logoutRequest({token:o}))},500),setTimeout(()=>{window.location.href=a+"/#/?redirect="+window.location.href},500)},[T,n,o,a,E,_]);var O=()=>{_(!0),clearInterval(timer),timer=setInterval(()=>{h(e=>e-1)},1e3)},A=()=>{!r&&p<RESET_IDLE_TIMER_CALL_LIMIT&&j(!0)};const k=se(t?{timeout:5e3,onIdle:O,onAction:A,debounce:1e3,crossTab:!0,syncTimers:200}:{timeout:6e4*i,onIdle:O,onAction:A,debounce:i/4*6e4,crossTab:!0,syncTimers:200})["reset"],M=react$1.exports.useCallback(()=>{j(!1),k()},[j]),P=react$1.exports.useCallback(()=>{S&&(n(extendTokenRequest({token:o})),w(!1)),_(!1),M(),clearInterval(timer),setTimeout(()=>{h(t?5:60)},500)},[_,M,S,n,o]);return react$1.exports.useEffect(()=>{setTimeout(()=>{g(new Date)},1e3)},[m]),react$1.exports.useEffect(()=>{var e;c&&((e=new Date(c)).setMinutes(e.getMinutes()-MINUTES_BEFORE_SESSION_EXPIRATION),x(new Date(c)),$(e))},[c]),react$1.exports.useEffect(()=>{v&&v.getTime()<m.getTime()&&C(!0),y&&y.getTime()<m.getTime()&&w(!0)},[v,y,m]),react$1.exports.useEffect(()=>{b?I():S&&_(!0)},[v,y,S,b,I,_]),react$1.exports.useEffect(()=>{s&&logoutCallCounter<LOGOUT_CALL_LIMIT&&I()},[s,I]),react$1.exports.useEffect(()=>{r&&0===f&&(clearInterval(timer),setTimeout(()=>{h(10)},500),I())},[f,I,r]),react$1.exports.useEffect(()=>{!r&&u&&p===RESET_IDLE_TIMER_CALL_LIMIT&&M()},[u,r,p,M]),react$1.exports.useEffect(()=>{r||P()},[r,P]),jsxRuntime.exports.jsx(AIWareThemeProvider$1,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsxs(Dialog$1,Object.assign({open:r&&!l,"aria-labelledby":"session timeout dialog","aria-describedby":"session timeout dialog",disableEscapeKeyDown:!0,maxWidth:"xs","data-test":"session-timeout-dialog"},{children:[jsxRuntime.exports.jsx(DialogTitle$1,Object.assign({id:"session timeout dialog title",className:e.title},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.JEUssf",defaultMessage:"Session Timeout",description:"label session timeout dialog"})})),jsxRuntime.exports.jsx(DialogContent$1,{children:jsxRuntime.exports.jsx(DialogContentText$1,Object.assign({id:"session timeout dialog text",className:e.contentText},{children:s?l?null:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.l85HEz",defaultMessage:"You have been signed due to inactivity or due to your session being expired.",description:"signed out message"}):S?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.bDessH",defaultMessage:"Your session will expire soon. For your security, we'll automatically sign you out in {signOutTimer} seconds. Choose 'Stay Signed In' to continue or 'Sign Out' if you're done.",description:"label for idle warning expiring soon",values:{signOutTimer:f}}):jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.Ca6Qq0",defaultMessage:"You've been inactive for a while. For your security, we'll automatically sign you out in {signOutTimer} seconds. Choose 'Stay Signed In' to continue or 'Sign Out' if you're done.",description:"label for idle warning inactive for a while",values:{signOutTimer:f}})}))}),s?null:jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:e.dialogActions},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:R,color:"primary",variant:"outlined",className:e.signOutButton,"data-test":"sign-out-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.jN92ox",defaultMessage:"Sign Out",description:"label for sign out button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:P,color:"primary",variant:"contained",className:e.staySignedInButton,"data-test":"stay-signed-in-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.WvKhS2",defaultMessage:"Stay Signed In",description:"label for stay signed in button"})}))]}))]}))})})},appBarHeight=55,defaultAppBarZIndex=0,VERITONE_PANEL_ID="VERITONE_PANEL_ID",ORGANIZATION_PANEL_ID="ORGANIZATION_PANEL_ID",NOTIFICATION_PANEL_ID="NOTIFICATION_PANEL_ID",APPLICATION_PANEL_ID="APPLICATION_PANEL_ID",HELP_PANEL_ID="HELP_PANEL_ID",USER_APPLICATION_SETTINGS_PANEL="USER_APPLICATION_SETTINGS_PANEL",NOTIFICATION_BADGE_MAX_COUNT=20,HUB_APP_ID="9B774B0E-A5B1-452C-A0AA-4E2E64EAD2B3",getUserInfo=({appIcon:e="",currentUser:t})=>({appIcon:e,currentUser:null!=t&&t.organization?t:void 0});function NewAppBar({isEnableOrgPanel:e,zIndex:t=defaultAppBarZIndex,leftNav:n,onClickAppbarMenu:r,logoSrc:i,backgroundColor:o="rgb(32.9, 43.1, 47.8)",iconColor:a,title:s,help:l,notification:c=!0,userApplicationSettingsIcon:u,onClickOrgIcon:d,closeButton:p,onCloseSetting:f,onClose:h,onOpenSetting:m,onOpenHelpCenter:g,onOpenNotification:y,onOpenUserApplicationSettings:$,openSetting:v,organization:x={},panels:b=[],unseenCount:C,searchBarMountId:S,textColor:w,rightActions:_=[],applications:T=[],onClickAppSwitchIcon:E,displaySupportChat:j=!0,onDashboardClick:I,showDashboardIcon:R=!1,displayChatWithSupport:O=!0,disableGoHome:L,onClickLogo:A}){var k=tinycolor(o).isDark(),w=w||(k?"#fff":"#000"),k=k?"rgba(255,255,255,0.1)":"rgb(243,245,249)";const M=useStyles$2$2({titleColor:w,logo:i,activeColor:k,onClickLogo:A})["classes"],[P,N]=react$1.exports.useState([]);k=useSelector(userSelector)||{};const[D,F]=react$1.exports.useState(!0);var{appIcon:k,currentUser:V}=getUserInfo(k),H=useSelector(betaFeaturesSelector),B=useSelector(appIdSelector)===HUB_APP_ID;react$1.exports.useEffect(()=>("true"===localStorage.getItem("DEBUG")&&console.log("AppBar mounted"),()=>{"true"===localStorage.getItem("DEBUG")&&console.log("AppBar unmounted")}),[]),react$1.exports.useEffect(()=>{var e=b.map(e=>e.panelId);!e.length&&!P.length||isEqual$5(e,P)||N(e)},[b,P]);a={background:a||void 0};return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(SessionTimeout,{}),jsxRuntime.exports.jsx("div",{style:{height:appBarHeight}}),jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"appbar",className:M.appBar,style:{height:appBarHeight,background:o,zIndex:t}},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:M.menuButton},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-menu","data-testid":"app-bar-menu",className:M.iconButton,onClick:r,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.hamburgerIcon)})}))})),!!k&&""!==k&&jsxRuntime.exports.jsx("div",Object.assign({className:M.margin},{children:jsxRuntime.exports.jsx("img",{className:M.appIcon,src:k,alt:"appIcon"})})),jsxRuntime.exports.jsxs("div",Object.assign({className:M.content,style:{color:w}},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.left,M.noSelect),onClick:L&&!A?void 0:function(){A?A():window.location.href="/"},"data-test":"appbarTitle","data-testid":"appbarTitle"},{children:i?jsxRuntime.exports.jsx("span",{className:M.appLogo}):jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:M.title},{children:s}))})),jsxRuntime.exports.jsx("div",{"data-test":"appbarSearch",id:S||"search-bar-id",className:M.searchBarHolder}),jsxRuntime.exports.jsx("div",Object.assign({className:M.right},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:M.controllers},{children:[0<_.length&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.iconGroup,M.noSelect)},{children:_.map(({label:e,onClick:t,isActive:n=!0},r)=>jsxRuntime.exports.jsx("div",Object.assign({className:M.iconGroupIcon},{children:jsxRuntime.exports.jsx("span",{onClick:e=>t?t(e):null,className:classNames(M.rightActionLabel,n?M.active:M.passive),dangerouslySetInnerHTML:{__html:e}})}),"label-"+r))})),R&&jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.dashboard-button",defaultMessage:"aiWARE Dashboard",description:"aiWARE Dashboard label"}),"aria-label":"dashboard"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-dashboard-button",className:M.barIcon,onClick:I,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.dashboardIcon),style:a})}))})),l&&jsxRuntime.exports.jsx("div",Object.assign({"data-test":"app-bar-help-container","data-testid":"app-bar-help-container",className:classNames(M.margin,{[M.panelActive]:P.includes(HELP_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Help,{tooltipTitle:"",helpDocLabel:"View Help Docs",chatWithSupportLabel:"Chat with Support",supportLabel:"In-App Guidance",helpDocCallback:()=>{null!=g&&g()},supportCallback:f,titleColor:w,displaySupportChat:j,displayChatWithSupport:O,desktopIconStyle:a})})),c&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.margin,{[M.panelActive]:P.includes(NOTIFICATION_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.KFXxNr",defaultMessage:"Notifications",description:"appbar tooltip: notification button text"}),"aria-label":"notifications"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:M.barIcon,onClick:y,"data-test":"app-bar-notification-button",size:"large","data-testid":"app-bar-notification-button"},{children:jsxRuntime.exports.jsx(Badge$1,Object.assign({badgeContent:C,max:NOTIFICATION_BADGE_MAX_COUNT,color:"primary","data-test":"app-bar-notification-badge",className:M.notificationBadge},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.notificationIcon,{[M.openNotificationPanel]:null==v?void 0:v.openNotificationPanel}),style:a})}))}))}))})),H&&u&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.margin,{[M.panelActive]:P.includes(USER_APPLICATION_SETTINGS_PANEL)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.application-settings-button",defaultMessage:"Application Settings",description:"appbar tooltip: application settings button text"}),"aria-label":"application-settings"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:M.barIcon,onClick:$,size:"large","data-testid":"app-bar-user-application-settings-button"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.applicationSettingsIcon)})}))}))})),1<T.length&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames({[M.panelActive]:P.includes(APPLICATION_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.3v499g",defaultMessage:"Applications",description:"applications tooltip: text for applications button"}),"aria-label":"applications"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-switch-app-button",className:M.barIcon,onClick:E,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.applicationIcon,{[M.openPanel]:null==v?void 0:v.openAppSwitchPanel}),style:a})}))}))})),(x.imageUrl||x.name)&&e&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames(M.margin,{[M.panelActive]:P.includes(ORGANIZATION_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.7qOwBg",defaultMessage:"Organization",description:"organization tooltip: text for documentation"}),"aria-label":"organization"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-org-button",className:M.barIcon+" "+M.orgButton,onClick:d,size:"large"},{children:x.imageUrl&&D?jsxRuntime.exports.jsx("img",{src:x.imageUrl,className:classNames(M.orgIcon),onError:function(){F(!1)},alt:"org_icon"}):jsxRuntime.exports.jsx(Avatar$1,Object.assign({className:M.smallOrgAvatar,variant:"circular","data-testid":"app-bar-avatar"},{children:getSortName(x.name||"")}))}))}))})),V&&!B&&jsxRuntime.exports.jsx("div",Object.assign({className:classNames({[M.panelActive]:P.includes(VERITONE_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.eOxvvM",defaultMessage:"Utilities",description:"utilities tooltip: text for documentation"}),"aria-label":"utilities"},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-setting-button","data-testid":"app-bar-setting-button",className:M.barIcon,onClick:m,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classNames(M.icon,M.veritoneLogo,{[M.openPanel]:null==v?void 0:v.openVeritonePanel}),style:a})}))}))})),p&&h&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:h,"data-test":"app-bar-close-button",size:"large","data-testid":"app-bar-close-button"},{children:jsxRuntime.exports.jsx(default_1$6,{htmlColor:w})}))}))})]}))}))]}))]}))]})}const GET_CURRENT_USER=`os-app-bar/${namespace$5}/get current user`,GET_CURRENT_USER_SUCCESS=`os-app-bar/${namespace$5}/get current user success`,GET_CURRENT_USER_FAIL=`os-app-bar/${namespace$5}/get current user fail`,GET_CURRENT_APP_ICON=`os-app-bar/${namespace$5}/get current app icon`,GET_CURRENT_APP_ICON_SUCCESS=`os-app-bar/${namespace$5}/get app icon success`,getCurrentUser=()=>({type:GET_CURRENT_USER}),getCurrentUserFail=()=>({type:GET_CURRENT_USER_FAIL}),getCurrentUserSuccess=e=>({type:GET_CURRENT_USER_SUCCESS,payload:e}),getCurrentAppIcon=({applicationId:e})=>({type:GET_CURRENT_APP_ICON,payload:{applicationId:e}}),getCurrentAppIconSuccess=e=>({type:GET_CURRENT_APP_ICON_SUCCESS,payload:e}),initialState$5={currentUser:{},fetched:!1,fetching:!1,error:!1};function userReducer(e,t){if(void 0===e)return initialState$5;switch(t.type){case GET_CURRENT_USER_FAIL:return Object.assign(Object.assign({},e),{fetching:!1,fetched:!0,error:!0});case GET_CURRENT_USER_SUCCESS:return Object.assign(Object.assign({},e),{currentUser:t.payload,fetching:!1,fetched:!0,error:!1});case GET_CURRENT_APP_ICON_SUCCESS:return Object.assign(Object.assign({},e),{appIcon:t.payload});default:return e}}const nameSpace="aiWareHeaderBar",BOOTING="APP_BAR/booting",BOOTED="APP_BAR/booted",onBooted=()=>({type:BOOTED}),getApplicationInfo=(t,n,r)=>__awaiter$3(void 0,void 0,void 0,function*(){var e=`
|
|
1456
1457
|
query {
|
|
1457
1458
|
application(id:"${t}"){
|
|
1458
1459
|
iconUrl
|
|
@@ -1528,4 +1529,4 @@ createScheduledJob(input:{
|
|
|
1528
1529
|
100% {
|
|
1529
1530
|
opacity: 0;
|
|
1530
1531
|
}
|
|
1531
|
-
`),useStyles$2=makeStyles()(()=>({fullScreen:{position:"fixed",width:"100%",height:"100vh",top:"0",left:"0",backgroundColor:"#ffffff",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",textAlign:"center",fontSize:"14px",zIndex:99999,animation:fadeInOut+" 5s linear forwards"},loaderBox:{height:"200px",width:"200px"},veritoneDarkLogo:{height:"200px",width:"200px"}})),useStyles$1=makeStyles()(e=>({flexContainer:{display:"flex",alignItems:"center"},header:{alignItems:"center",display:"flex",justifyContent:"space-between",height:"55px",padding:e.spacing(6,0,6,6),borderBottom:"1px solid rgb(219, 226, 234)"},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end",paddingRight:"10px"},title:{color:"#2A323C"},panelRoot:{padding:"15px",height:"calc(100% - 70px);",overflowY:"scroll"},row:{display:"flex","& svg":{marginRight:"12px",marginBottom:"24px"}},widgets:{"& svg":{fill:"#555F7C"}},veriLogo:{transform:"translate(3px, 2px)"},versionText:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",marginBottom:"5px"},wrapperBox:{padding:"15px 0 15px 0px",marginBottom:"14px"},aiwareLogo:{marginBottom:"10px",marginTop:"10px",width:"151px"},boldTitle:{fontWeight:700},labelGrid:{padding:"2px",flexShrink:1},valueGrid:{padding:"2px",flexGrow:1},gridBox:{background:"#F7F7F7",height:"100%",padding:"10px",color:"#2A323C"},valueBox:{background:"#F7F7F7",height:"100%",padding:"10px",color:"#2A323C",textTransform:"capitalize"},imageContainer:{textAlign:"center"},falconLogo:{width:"148px"},osInfo:{display:"flex",justifyContent:"center","& *":{textAlign:"center"}},osName:{margin:"2px 0 6px","& p":{display:"inline-block",minWidth:"80px",padding:"5px 8px",background:"#465364",color:"white",textTransform:"uppercase",fontSize:"12px",fontWeight:"700",borderRadius:"4px"}},osVersion:{color:"#5C6269"}})),versionPanelLabels=e=>({closePanelTooltip:e.formatMessage({id:"version-panel.header.close-btn-tooltip",defaultMessage:[{type:0,value:"Close panel"}]}),versionInformationLabel:e.formatMessage({id:"version-panel.version-information-title",defaultMessage:[{type:0,value:"Version Information"}]}),versionLabel:e.formatMessage({id:"version-panel.version-title",defaultMessage:[{type:0,value:"Version"}]}),sdkVersionLabel:e.formatMessage({id:"version-panel.sdk-version-title",defaultMessage:[{type:0,value:"Sdk Version"}]}),viewReleaseNotes:e.formatMessage({id:"version-panel.view-release-notes",defaultMessage:[{type:0,value:"View Release Notes"}]}),noVersionInfo:e.formatMessage({id:"version-panel.no-info-label",defaultMessage:[{type:0,value:"Cannot get version information"}]}),clusterSizeLabel:e.formatMessage({id:"version-panel.cluster-size-label",defaultMessage:[{type:0,value:"Size"}]}),environmentLabel:e.formatMessage({id:"version-panel.environment-label",defaultMessage:[{type:0,value:"Environment"}]}),hostingTypeLabel:e.formatMessage({id:"version-panel.hosting-type-label",defaultMessage:[{type:0,value:"Hosting Type"}]}),infrastructureLabel:e.formatMessage({id:"version-panel.infrastructure-label",defaultMessage:[{type:0,value:"Infrastructure"}]})}),Header$1=()=>{const e=useDispatch();var t=useStyles$1()["classes"],n=useIntl(),{versionInformationLabel:n,closePanelTooltip:r}=versionPanelLabels(n);return jsxRuntime.exports.jsxs("header",Object.assign({className:t.header,"data-testid":"create-or-update-token-panel.header"},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1","data-testid":"version-panel-header-title",className:t.title},{children:n})),jsxRuntime.exports.jsx("div",Object.assign({className:t.headerActionContainer},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:r},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:()=>e(hidePanel$1(VERSION_PANEL)),"aria-labelledby":"version-panel.close-button","data-testid":"version-panel.close-button",size:"large"},{children:jsxRuntime.exports.jsx(Close$1,{})}))}))}))]}))},selectLoadingStatus=e=>{return null==(e=null==(e=null==e?void 0:e[PANEL_SLICE])?void 0:e[VERSION_PANEL_NAMESPACE])?void 0:e.status},selectCurrentVersion=e=>{return null==(e=null==(e=null==e?void 0:e[PANEL_SLICE])?void 0:e[VERSION_PANEL_NAMESPACE])?void 0:e.currentVersion},selectPreviousVersion=e=>{return null==(e=null==(e=null==e?void 0:e[PANEL_SLICE])?void 0:e[VERSION_PANEL_NAMESPACE])?void 0:e.previousVersion},selectPlatformProperties=e=>{return null==(e=null==(e=null==e?void 0:e[PANEL_SLICE])?void 0:e[VERSION_PANEL_NAMESPACE])?void 0:e.platformProperties},selectSelectedVersion=e=>{return null==(e=null==(e=null==e?void 0:e[PANEL_SLICE])?void 0:e[VERSION_PANEL_NAMESPACE])?void 0:e.selectedVersion},VERSION_PANEL="VERSION_PANEL",VersionChangelogNullState=({label:e})=>{var t=useStyles$1()["classes"];return jsxRuntime.exports.jsx(Box$1,Object.assign({className:t.gridBox,sx:{fontWeight:700,textAlign:"center",mb:"5px"},"data-test":"version-changelog-null-state"},{children:e}))},VersionPanelComponent=({sdk:e,edge:t,core:n})=>{const r=useStyles$1()["classes"];var i=useIntl();const o=useDispatch();var{versionLabel:i,viewReleaseNotes:a,noVersionInfo:s,clusterSizeLabel:l,environmentLabel:c,hostingTypeLabel:u,infrastructureLabel:d,sdkVersionLabel:p}=versionPanelLabels(i),f=useSelector(selectCurrentVersion),h=useSelector(selectPlatformProperties);const m=useSelector(selectLoadingStatus);var g={sdk:e,core:n,edge:null!=t&&t.includes("<Error>")?void 0:t},i=(react$1.exports.useEffect(()=>{["idle","failure"].includes(m)&&o(actions$1.fetchVersionInfoStart())},[o,m]),jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.osInfo},{children:jsxRuntime.exports.jsxs(Box$1,{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.osName},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{fontWeight:700}},{children:"Falcon"}))})),jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.osVersion},{children:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"caption","data-testid":"version-panel-version-info"},{children:[(null==f?void 0:f.version)&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[i," ",null==f?void 0:f.version]}),!(null!=f&&f.version)&&(null===g?void 0:g.sdk)&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[p," ",null===g?void 0:g.sdk]})]}))}))]})})));const y={Size:l,Environment:c,HostingType:u,Infrastructure:d};p=!!(e||t||n||h||f)&&["success","failure"].includes(m);return jsxRuntime.exports.jsxs(Box$1,{children:[jsxRuntime.exports.jsx(Header$1,{}),jsxRuntime.exports.jsxs("div",Object.assign({className:r.panelRoot},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.wrapperBox},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{p:"20px"}},{children:[p&&jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.imageContainer},{children:jsxRuntime.exports.jsx("img",{src:img$2,className:r.falconLogo,alt:"system-logo"})})),jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.imageContainer},{children:jsxRuntime.exports.jsx("img",{src:img$3,className:r.aiwareLogo,alt:"aiware-logo"})})),p&&i]})),p?jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0,sx:{mt:"10px"}},{children:h&&Object.entries(h).map(([e,t])=>y[e]&&jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:6,className:r.labelGrid},{children:jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.gridBox,sx:{fontWeight:700}},{children:[y[e],":"]}))})),jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:6,className:r.valueGrid},{children:jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.valueBox},{children:t}))}))]},e))})):jsxRuntime.exports.jsx(VersionChangelogNullState,{label:s})]})),jsxRuntime.exports.jsx(Button$1,Object.assign({sx:{width:"100%",cursor:"pointer"},variant:"outlined",onClick:()=>{o(mountPanel$1({panelId:"CHANGELOG_PANEL",microFrontend:{name:"CHANGELOG_PANEL",config:{}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"small",zIndex:1003,parentPanelId:VERSION_PANEL,dimmed:0,dimmedStatus:"dimParent",borderBottom:!0}}))},"data-test":"version-panel-release-notes-btn"},{children:a}))]}))]})},VersionPanel=e=>jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getPanelModule()]},{children:jsxRuntime.exports.jsx(VersionPanelComponent,Object.assign({},e))})),dateFormatter=e=>{e=new Date(e||"");return(8<e.getMonth()?e.getMonth()+1:"0"+(e.getMonth()+1))+"/"+(9<e.getDate()?e.getDate():"0"+e.getDate())+"/"+e.getFullYear()};let lottieScript,audio;const theme=createTheme({palette:{secondary:{main:"#1871E8"}}}),Logo_=()=>{const n=useDispatch();var e=useStyles$2()["classes"];const[r,i]=react$1.exports.useState(0),[t,o]=react$1.exports.useState(!1),[a,s]=react$1.exports.useState(!1),l=jsxRuntime.exports.jsx("p",Object.assign({style:{pointerEvents:"none"}},{children:"Loading Beta Features"})),[c,u]=react$1.exports.useState(l),d=useSelector(organizations_selector.selectOrgSwitchInitiated),p=useSelector(e=>{return null==(e=null==(e=null==e?void 0:e.configs)?void 0:e.initConfig)?void 0:e.betaFeatures}),[f,h]=react$1.exports.useState(!1),[m,g]=react$1.exports.useState(""),[y,$]=react$1.exports.useState(""),[v,x]=react$1.exports.useState(""),[b,C]=react$1.exports.useState(!1),S=useSelector(selectLoadingStatus);var w=useSelector(selectCurrentVersion);react$1.exports.useEffect(()=>{["idle","failure"].includes(S)&&n(actions$1.fetchVersionInfoStart())},[n,S]),react$1.exports.useEffect(()=>{f||(h(!0),(lottieScript=document.createElement("script")).setAttribute("src","https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.7.8/lottie.min.js"),lottieScript.onload=()=>s(!0),(audio=document.createElement("audio")).id="player",audio.src="https://static.veritone.com/aiware-js-animation/sound-effects/chime.wav",document.head.appendChild(lottieScript),document.body.appendChild(audio)),has_1(window,"aiware.version")&&((t=null==(t=window.aiware)?void 0:t.version)&&"sdk_release_version"!==t&&g(t),t=null==(t=window.aiware)?void 0:t.releaseDate,$(dateFormatter(t)));var t=document.getElementsByTagName("script");if(t.length){let e=Array.from(t).find(e=>e.src.includes("get.aiware.com"));(e=e||Array.from(t).find(e=>e.src.includes("https://cdn.jsdelivr.net/npm/aiware-js")))&&fetch(e.getAttribute("src")).then(e=>{g(e.url.split("@")[1].split("/")[0])})}fetch("https://get.aiware.com/aiware-versions/aiware-latest.txt",{headers:{"Content-Type":"text/plain"}}).then(e=>e.text()).then(e=>x(e))},[]),react$1.exports.useEffect(()=>{if(p&&!d)return;d&&u(jsxRuntime.exports.jsx("p",{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-organization-panel.organizations-switching-loader-message",defaultMessage:"Changing your Organization",description:"organizations switching loader message"})}));const e=10===r;if((e||d)&&(o(!0),a)){const t=window.bodymovin.loadAnimation({container:document.getElementById("loaderAnimation"),path:"https://static.veritone.com/aiware-js-animation/particle-explosion.json",renderer:"svg",loop:!1,autoplay:!0,name:"unicorn"});t.onComplete=()=>{e?(n(enableBetaFeatures()),i(0)):d&&u(l),o(!1),t.destroy()},null!==audio&&void 0!==audio&&audio.play()}},[r,p,n,t,d]);return jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[t&&jsxRuntime.exports.jsxs("div",Object.assign({className:e.fullScreen},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:e.loaderBox,id:"loaderAnimation"},{children:!a&&jsxRuntime.exports.jsx("img",{src:img$7,alt:"veritone-logo",className:e.veritoneDarkLogo})})),jsxRuntime.exports.jsxs("div",Object.assign({className:e.loaderBox},{children:[jsxRuntime.exports.jsx(StyledEngineProvider,Object.assign({injectFirst:!0},{children:jsxRuntime.exports.jsx(ThemeProvider,Object.assign({theme:theme},{children:jsxRuntime.exports.jsx(LinearProgress$1,{color:"secondary"})}))})),c]}))]})),jsxRuntime.exports.jsxs("div",{children:[w?jsxRuntime.exports.jsxs(Typography$1,Object.assign({"data-test":"veritone-panel.logo.version",sx:{color:"#9CA8B4",fontSize:"10px",textAlign:"center",cursor:"pointer",width:"60px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},onClick:()=>{var e,t;b?(C(!1),n(hidePanel$1(VERSION_PANEL))):(C(!0),e={name:VERSION_PANEL,config:{name:"Version Information",sdk:m,sdkRelease:y,edge:v}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"small",zIndex:1001,dimmed:0,borderBottom:!0},n(mountPanel$1({panelId:VERSION_PANEL,microFrontend:e,panelConfig:t})))}},{children:["V. ",w.version]})):null,jsxRuntime.exports.jsx("img",{onClick:()=>i(r+1),src:img$D,alt:"footer-icon",draggable:"false"})]})]})},Logo=injectIntl(Logo_);function getTabAction(e,t,n,r="APP_BAR_PANEL"){return{type:mountPanel$1({}).type,payload:{panelId:e,microFrontend:{name:r,config:{name:"Veritone",tabId:e,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,fullScreen:!1,width:n,header:{divider:!0,title:t}}}}}const tabsListDefault=[{id:TabId.PERSONAL_PANEL,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.personalProfile",defaultMessage:"Personal Profile",description:"Tooltip pops on the sidebar for personal profile"}),iconComponent:jsxRuntime.exports.jsx(PersonalProfile$1,{}),role:"",action:getTabAction(TabId.PERSONAL_PANEL,jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.panelTitle.personalProfile",defaultMessage:"Personal Profile",description:"Header title for personal profile"}),410)},{id:TabId.ORGANIZATION_PANEL,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.organizations",defaultMessage:"Organizations",description:"Tooltip pops on the sidebar for organizations"}),iconComponent:jsxRuntime.exports.jsx(Organizations,{}),role:"",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.ORGANIZATION_PANEL,microFrontend:{name:"ORGANIZATION_PANEL"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,width:560,zIndex:1e3}}}},{id:TabId.CMS_SHORTCUT,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.dataCenter",defaultMessage:"Data Center",description:"Tooltip pops on the sidebar for data center"}),iconComponent:jsxRuntime.exports.jsx(DataCenter$1,{}),role:"cms",action:{type:"panels/OPEN_APP_SHORTCUT",payload:"cms"}},{id:TabId.DATA_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.dataCenter",defaultMessage:"Data Center",description:"Tooltip pops on the sidebar for data center"}),iconComponent:jsxRuntime.exports.jsx(DataCenter$1,{}),role:"cms",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.DATA_CENTER,microFrontend:{name:"DATA_CENTER"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xlarge",zIndex:1e3}}}},{id:TabId.PROCESSING_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.processingCenter",defaultMessage:"Processing Center",description:"Tooltip pops on the sidebar for processing center"}),iconComponent:jsxRuntime.exports.jsx(Process,{}),role:"cms",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.PROCESSING_CENTER,microFrontend:{name:"PROCESSING_CENTER"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xxlarge",zIndex:1e3}}}},{id:TabId.FLOW_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.flowCenter",defaultMessage:"Flow Center",description:"Tooltip pops on the sidebar for flow center"}),iconComponent:jsxRuntime.exports.jsx(FlowCenter2,{}),role:"automate",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.FLOW_CENTER,microFrontend:{name:"FLOW_CENTER",config:{name:"Veritone",tabId:TabId.FLOW_CENTER,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE",zIndex:1200}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xxlarge"}}}},{id:TabId.ENGINE_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.developerCenter",defaultMessage:"Developer Center",description:"Tooltip pops on the sidebar for developer center"}),iconComponent:jsxRuntime.exports.jsx(DeveloperCenter,{}),role:"cms",action:{type:"panels/OPEN_APP_SHORTCUT",payload:"developer"}},{id:TabId.MARKETPLACE_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.marketplaceCenter",defaultMessage:"Marketplace",description:"Tooltip pops on the sidebar for marketplace center"}),iconComponent:jsxRuntime.exports.jsx(Marketplace$1,{}),role:"cms",action:{type:"panels/OPEN_APP_SHORTCUT",payload:"marketplace"}},{id:TabId.LIBRARY_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.libraryCenter",defaultMessage:"Library Center",description:"Tooltip pops on the sidebar for library center"}),iconComponent:jsxRuntime.exports.jsx(LibraryCenter,{}),role:"",action:{type:"panels/OPEN_APP_SHORTCUT",payload:"libray"}},{id:TabId.ADMIN_SHORTCUT,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.adminCenter",defaultMessage:"Admin Center",description:"Tooltip pops on the sidebar for admin center"}),iconComponent:jsxRuntime.exports.jsx(AdminCenter,{}),role:"admin",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.ADMIN_SHORTCUT,microFrontend:{name:"ADMIN_CENTER"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xlarge",zIndex:1e3}}}},{id:TabId.INSTANCE_ADMIN_CENTER_BROWSE,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.instanceAdminCenter",defaultMessage:"Instance Admin Center",description:"Tooltip pops on the sidebar for instance admin center"}),iconComponent:jsxRuntime.exports.jsx(AdminTabIcon,{}),role:"admin",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.INSTANCE_ADMIN_CENTER_BROWSE,microFrontend:{name:"INSTANCE_ADMIN_CENTER_BROWSE"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xlarge",zIndex:1e3}}}},{id:TabId.RESOURCE_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.resourceCenter",defaultMessage:"Resource Center",description:"Tooltip pops on the sidebar for resource center"}),iconComponent:jsxRuntime.exports.jsx(Resources$1,{}),role:"",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.RESOURCE_CENTER,microFrontend:{name:"RESOURCE_CENTER"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xxlarge",zIndex:1e3}}}}];function AppbarTabPanel({panelId:t,children:e,withTab:r=!0,withChild:n=!0}){const i=useDispatch(),[o,a]=react$1.exports.useState(),[s,l]=react$1.exports.useState([]),[c,u]=react$1.exports.useState(!1);var d=useSelector(e=>e.panels.find(e=>e.panelId===t))||{};const p=useSelector(e=>e.panels);const{microFrontend:f,panelConfig:h}=d,{minWidth:m,padding:g=0,header:y,footer:$,marginTop:v=0,marginStart:x=0,show:b,tabs:C=[],zIndex:S=1e3,userRoles:w=[],panelId:_,size:T,fullScreen:E,width:j,dimmed:I=0,parentPanelId:R,borderBottom:O}=h||{};const A=R?("ORGANIZATION_PANEL"!==R?"":"solid 5px #4D81B7")||("DATA_CENTER"!==R?"":"solid 5px #4D81B7"):"solid 5px #4D81B7",k=makeStyles()(e=>{return{container:{position:"fixed",top:v,right:E?0:x,height:`calc(100vh - ${v}px)`,minWidth:m,width:j||(E?"100%":getTabPanelWidthBySize(T)||560),borderBottom:O?"solid 5px #4D81B7":A,zIndex:E?1500:S,transitionTimingFunction:"ease-in-out !important"},padding:{padding:e.spacing(g),paddingTop:e.spacing(g/2)},margin:{margin:e.spacing()},headerContainer:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},headerTitle:{margin:e.spacing(),marginTop:e.spacing(2)},actionButton:{margin:e.spacing()},footer:{},actionContainer:{"&:last-child":{marginRight:e.spacing(2)}},content:{overflow:"overlay",overflowX:"hidden",height:(t=y?64:0,n=$?64:0,`calc(100vh - ${v}px - ${t}px - ${n}px - 5px)`)},paperContainer:{top:56,backgroundColor:"unset !important",boxShadow:"none"},tabContainer:{overflow:"hidden",width:"100%"},tabSelect:{paddingTop:e.spacing(6),width:80,display:"flex",flexDirection:"column"},drawerContainer:{display:"flex",background:e.palette.background.default},tabName:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"61px",padding:e.spacing(0,4,0,6)},actionIcons:{margin:e.spacing(-2.4)},title:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e.palette.text.secondary},tabContent:{borderRight:r?"0.5px solid "+e.palette.divider:"none",overflowY:"auto",overflowX:"hidden",width:"100%"},buttonAction:{textTransform:"unset"},aiWareIcon:{padding:e.spacing(2.4,0),display:"flex",justifyContent:"center",position:"fixed",bottom:"0",right:"10px"},noShadow:{boxShadow:"none",borderLeft:"0.5px solid "+e.palette.divider},panelMask:{position:"absolute",zIndex:1150,width:"100%",height:"100%",backgroundColor:e.palette.grey[50],opacity:.5}};var t,n})()["classes"];react$1.exports.useEffect(()=>{0<C.length?l([...tabsListDefault,...C]):l(tabsListDefault)},[C]),react$1.exports.useEffect(()=>{var e;null!==f&&void 0!==f&&f.config&&null!=(e=f.config)&&e.tabId&&a(f.config.tabId)},[f]),react$1.exports.useEffect(()=>{0<p.length&&o&&r&&(p.find(e=>e.panelId===o)||a(void 0))},[p,o,r]);n=jsxRuntime.exports.jsxs(Paper$1,Object.assign({className:`${k.container} ${n?"":k.noShadow} `,elevation:3,id:t,square:!0,"data-test":"panel-"+(_||"unknown")},{children:[0<I&&jsxRuntime.exports.jsx("div",{className:k.panelMask}),jsxRuntime.exports.jsxs("div",Object.assign({className:k.drawerContainer},{children:[n&&jsxRuntime.exports.jsxs("div",Object.assign({className:k.tabContent},{children:[y&&jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:k.tabName},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:k.title},{children:y.title||(null==(d=s.find(e=>e.id===o))?void 0:d.label)})),jsxRuntime.exports.jsxs("div",Object.assign({className:k.actionIcons},{children:[null==(n=y.actions)?void 0:n.map(e=>e.label?jsxRuntime.exports.jsx(Button$1,Object.assign({size:e.size,variant:e.variant,onClick:()=>i(e.action)},{children:e.label}),e.action.type):jsxRuntime.exports.jsxs(IconButton$1,Object.assign({onClick:()=>i(e.action),size:"large"},{children:[e.iconUrl&&jsxRuntime.exports.jsx("img",{src:e.iconUrl,alt:"icon",draggable:"false"}),e.icon&&jsxRuntime.exports.jsx("div",{children:e.icon})]}),e.action.type)),jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:()=>i(hidePanel$1(t)),"data-test":"close-button-"+t,size:"large"},{children:jsxRuntime.exports.jsx("img",{src:R?img$W:img$X,alt:"icon",draggable:"false"})}))]}))]})),y.divider&&jsxRuntime.exports.jsx(Divider$1,{})]}),jsxRuntime.exports.jsx("div",Object.assign({className:k.content},{children:e?react$1.exports.cloneElement(e,Object.assign(Object.assign({},(null===f||void 0===f?void 0:f.config)||{}),{dataId:t,hidePanel:()=>i(hidePanel$1(t)),tabId:o,panelRendered:c})):jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"No micro frontend passed!"})})})),$&&jsxRuntime.exports.jsxs("div",Object.assign({className:k.footer},{children:[$.divider&&jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx("div",Object.assign({className:k.headerContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({className:k.actionContainer},{children:null==(d=$.actions)?void 0:d.map(e=>{var t;if(e.iconUrl)return jsxRuntime.exports.jsxs(IconButton$1,Object.assign({className:k.actionButton,onClick:(t=e.action,()=>{i(t)}),size:"large"},{children:[e.iconUrl&&jsxRuntime.exports.jsx("img",{src:e.iconUrl,alt:"icon",draggable:"false"}),e.icon&&jsxRuntime.exports.jsx("div",{children:e.icon})]}),e.action.type);const n=e;return jsxRuntime.exports.jsx(Button$1,Object.assign({className:k.actionButton,size:n.size,variant:n.variant,onClick:()=>i(n.action)},{children:n.label}),e.action.type)})}))}))]}))]})),r&&jsxRuntime.exports.jsxs("div",Object.assign({id:"tabs-content",className:k.tabSelect},{children:[jsxRuntime.exports.jsx(Tabs,{selectedId:o,tabsList:s,onChangeTab:function(t){0<=p.map(e=>e.panelId).indexOf(VERSION_PANEL)&&i(hidePanel$1(VERSION_PANEL)),o&&i(hidePanel$1(o)),a(t);var e,n=s.find(e=>e.id===t);null!=(e=null==n?void 0:n.onClick)&&e.call(n,t),null!=n&&n.action&&i(n.action)},roles:w}),(null===$||void 0===$?void 0:$.logo)&&jsxRuntime.exports.jsx("div",Object.assign({className:k.aiWareIcon},{children:jsxRuntime.exports.jsx(Logo,{})}))]}))]}))]}));return jsxRuntime.exports.jsx(AIWareThemeProvider$1,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getPanelModule()]},{children:jsxRuntime.exports.jsx(Slide$1,Object.assign({"data-id":"123456",in:b,direction:"left",onEntered:()=>u(!0),onExited:()=>i(unmountPanel$1(t))},{children:n}))}))})})}const AppbarPanel=e=>jsxRuntime.exports.jsx(AppbarTabPanel,Object.assign({},e,{withChild:!0,withTab:!1})),Tab=e=>jsxRuntime.exports.jsx(AppbarTabPanel,Object.assign({},e,{withChild:!1,withTab:!0})),changelogPanelLabels=e=>({changelog:e.formatMessage({id:"changelog-panel.header.title",defaultMessage:[{type:0,value:"Release Notes"}]}),closePanelTooltip:e.formatMessage({id:"changelog-panel.header.close-btn-tooltip",defaultMessage:[{type:0,value:"Close panel"}]}),versionLabel:e.formatMessage({id:"changelog-panel.version-title",defaultMessage:[{type:0,value:"Version"}]}),updateRequiredLabel:e.formatMessage({id:"changelog-panel.update-required",defaultMessage:[{type:0,value:"Update required"}]}),deploymentLabel:e.formatMessage({id:"changelog-panel.deployment",defaultMessage:[{type:0,value:"Deployment"}]}),apiUnavailable:e.formatMessage({id:"changelog-panel.no-api",defaultMessage:[{type:0,value:"Cannot retrieve platform information"}]}),current:e.formatMessage({id:"changelog-panel.current",defaultMessage:[{type:0,value:"Current"}]}),previous:e.formatMessage({id:"changelog-panel.previous",defaultMessage:[{type:0,value:"Previous"}]}),noHighlights:e.formatMessage({id:"changelog-panel.no-highlights",defaultMessage:[{type:0,value:"Cannot retrieve version highlights"}]}),unknown:e.formatMessage({id:"changelog-panel.unknown",defaultMessage:[{type:0,value:"unknown"}]}),viewReleaseNotes:e.formatMessage({id:"version-panel.view-release-notes",defaultMessage:[{type:0,value:"View Version History"}]}),error:e.formatMessage({id:"version-panel.error-state",defaultMessage:[{type:0,value:"Error while fetching release notes"}]}),errorHelperText:e.formatMessage({id:"version-panel.error-state-helper-text",defaultMessage:[{type:0,value:"Please try again later"}]}),"current-version":{label:e.formatMessage({id:"changelog-panel.current-version",defaultMessage:[{type:0,value:"Current Version"}]}),noVersionHighlights:e.formatMessage({id:"changelog-panel.no-current-version-highlights",defaultMessage:[{type:0,value:"No Release Notes for Current Version"}]})},"previous-version":{label:e.formatMessage({id:"changelog-panel.previous-version",defaultMessage:[{type:0,value:"Previous Version"}]}),noVersionHighlights:e.formatMessage({id:"changelog-panel.no-prev-version-highlights",defaultMessage:[{type:0,value:"No Release Notes for Previous Version"}]})},"selected-version":{label:null,noVersionHighlights:e.formatMessage({id:"changelog-panel.no-selected-version-highlights",defaultMessage:[{type:0,value:"No Release Notes for Selected Version"}]})}}),useStyles$5=makeStyles()(e=>({flexContainer:{display:"flex",alignItems:"center"},header:{alignItems:"center",display:"flex",justifyContent:"space-between",height:"55px",padding:e.spacing(6,0,6,6),borderBottom:"1px solid rgb(219, 226, 234)"},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end",paddingRight:"10px"},title:{color:"#2A323C"},panelRoot:{padding:"15px",height:"calc(100% - 70px);",overflowY:"scroll"},row:{display:"flex","& svg":{marginRight:"12px",marginBottom:"24px"}},widgets:{"& svg":{fill:"#555F7C"}},veriLogo:{transform:"translate(3px, 2px)"},versionText:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",marginBottom:"5px"},wrapperBox:{padding:"15px 0 15px 15px",border:".5px solid #D5DFE9",borderRadius:"4px",marginBottom:"14px","& iframe":{width:"100%",border:"none"}},aiwareLogo:{marginBottom:"10px"},boldTitle:{fontWeight:700},releaseNotesBtn:{width:"100%",cursor:"pointer",height:"36px",border:"1px solid #5C6269",color:"#5C6269",marginTop:"15px","&:hover":{border:"1px solid #5C6269"}},errorStateContainer:{padding:"40px",textAlign:"center","& img":{width:"40%",marginBottom:"20px"}}})),Header=()=>{const e=useDispatch();var t=useStyles$5()["classes"],n=useIntl(),{changelog:n,closePanelTooltip:r}=changelogPanelLabels(n);return jsxRuntime.exports.jsxs("header",Object.assign({className:t.header,"data-testid":"changelog-panel.header"},{children:[jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"h1","data-testid":"changelog-panel-title",className:t.title},{children:["AIWARE ",n]})),jsxRuntime.exports.jsx("div",Object.assign({className:t.headerActionContainer},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:r},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:()=>e(hidePanel$1(CHANGELOG_PANEL)),"aria-labelledby":"changelog-panel.close-button","data-testid":"changelog-panel-close-button",size:"large"},{children:jsxRuntime.exports.jsx(Close$1,{})}))}))}))]}))},VersionHeader=({version:e,updateIsRequired:t})=>{var n=useStyles$5()["classes"],r=useIntl(),{versionLabel:r,updateRequiredLabel:i,deploymentLabel:o,unknown:a}=changelogPanelLabels(r);return jsxRuntime.exports.jsxs(Box$1,Object.assign({className:n.wrapperBox},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:n.flexContainer},{children:[jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"h1","data-test":"changelog-panel-header-title"},{children:[r," ",null!=e&&e.version?null==e?void 0:e.version:a]})),t?jsxRuntime.exports.jsxs(Typography$1,Object.assign({sx:{ml:"10px"},variant:"caption"},{children:["(",i,")"]})):null]})),jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{mt:"5px"}},{children:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2"},{children:[o," -"," ",e&&e.createdAt?dateFormatter((null==e?void 0:e.createdAt)||null):a]}))}))]}))},isValidHttpUrl=(e="")=>{let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol},VersionContent=({id:e,version:t,height:n})=>{var r=useStyles$5()["classes"],i=useIntl(),{[e]:{label:i,noVersionHighlights:o}}=changelogPanelLabels(i);return isValidHttpUrl(null==t?void 0:t.highlightsUrl)?jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.wrapperBox},{children:[t&&i&&jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",sx:{mb:"10px"}},{children:i})),jsxRuntime.exports.jsx("iframe",{id:e,title:e,src:null==t?void 0:t.highlightsUrl,height:n,onLoad:e=>{e.currentTarget.onerror=e=>console.log("ev",e)}})]})):jsxRuntime.exports.jsx(VersionChangelogNullState,{label:o})},CHANGELOG_PANEL="CHANGELOG_PANEL",RELEASE_NOTES_URL="https://docs.veritone.com/#/versions/readme",ChangelogPanelComponent=({id:t})=>{var e=useStyles$5()["classes"],n=useIntl(),{apiUnavailable:n,noHighlights:r,viewReleaseNotes:i,error:o,errorHelperText:a}=changelogPanelLabels(n);const s=useDispatch(),[l,c]=react$1.exports.useState(!1);var u=useSelector(selectLoadingStatus);const[d,p]=react$1.exports.useState({}),f=e=>{if("https://get.aiware.com"===e.origin){const{height:t,source:n}=e.data;p(e=>Object.assign(Object.assign({},e),{[n]:t+1}))}};react$1.exports.useEffect(()=>{var e=gqlIntrospection.getQueries().find(e=>"platformInfo"===e.name);return c(!!e),e&&s(actions.versionPanel.fetchVersionInfoStart(t)),window.addEventListener("message",f),()=>window.removeEventListener("message",f)},[s,t]);var h=useSelector(selectCurrentVersion),m=useSelector(selectPreviousVersion),g=useSelector(selectSelectedVersion),[y,,]=react$1.exports.useState(!1),$=jsxRuntime.exports.jsxs(Box$1,{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{display:"flex",flexDirection:"column",height:"100%"}},{children:[h&&!t?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(VersionHeader,{version:h,updateIsRequired:y}),jsxRuntime.exports.jsx(VersionContent,{id:"current-version",version:h,height:d[(null==($=null==h?void 0:h.highlightsUrl)?void 0:$.toString())||""]})]}):null,g&&t?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(VersionHeader,{version:g,updateIsRequired:y}),jsxRuntime.exports.jsx(VersionContent,{id:"selected-version",version:g,height:d[(null==($=null==g?void 0:g.highlightsUrl)?void 0:$.toString())||""]})]}):null]})),m&&!t?jsxRuntime.exports.jsx(VersionContent,{id:"previous-version",version:m,height:d[(null==(y=null==m?void 0:m.highlightsUrl)?void 0:y.toString())||""]}):null,!t&&!h&&!m&&jsxRuntime.exports.jsx(VersionChangelogNullState,{label:r}),t&&!g&&jsxRuntime.exports.jsx(VersionChangelogNullState,{label:r}),jsxRuntime.exports.jsxs(Button$1,Object.assign({className:e.releaseNotesBtn,variant:"outlined",onClick:()=>{window.open(RELEASE_NOTES_URL,"_blank")}},{children:[jsxRuntime.exports.jsx(Launch,{sx:{mr:"5px",width:"18px"}})," ",i]}))]}),y=jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.errorStateContainer},{children:[jsxRuntime.exports.jsx("img",{src:img$c,alt:"error"}),jsxRuntime.exports.jsx(Box$1,{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",sx:{fontWeight:700}},{children:o}))}),jsxRuntime.exports.jsx(Box$1,{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:a}))})]}));return jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{height:"calc(100vh - 60px)",overflow:"hidden"}},{children:[jsxRuntime.exports.jsx(Header,{}),"pending"===u&&jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{p:"15px",display:"flex",justifyContent:"center"}},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),"success"===u&&jsxRuntime.exports.jsx("div",Object.assign({className:e.panelRoot},{children:l?$:jsxRuntime.exports.jsx(VersionChangelogNullState,{label:n})})),"failure"===u&&y]}))},ChangelogPanel=({id:e})=>jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getPanelModule()]},{children:jsxRuntime.exports.jsx(ChangelogPanelComponent,{id:e})}));var index_esm$1=Object.freeze({__proto__:null,AppbarPanel:AppbarPanel,AppbarTabPanel:AppbarTabPanel,ChangelogPanel:ChangelogPanel,TabPanel:Tab,VersionPanel:VersionPanel});const Panel=({panelId:t,children:e})=>{var n;const r=useDispatch(),{microFrontend:i,panelConfig:{minWidth:o,padding:a=0,header:s,footer:l,marginTop:c=0,marginStart:u=0,show:d,width:p=500,zIndex:f=1}}=useSelector(e=>e.panels.find(e=>e.panelId===t)),h=makeStyles()(e=>({container:{position:"fixed",top:c,right:u,height:"100%",minWidth:o,width:p,zIndex:f},padding:{padding:e.spacing(a),paddingTop:e.spacing(a/2)},margin:{margin:e.spacing()},headerContainer:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},headerTitle:{margin:e.spacing()},actionButton:{margin:e.spacing()},actionContainer:{"&:last-child":{marginRight:e.spacing(2)}},footer:{}}))()["classes"],m=e=>{var t;return e.icon?jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:h.actionButton,onClick:()=>r(e.action),size:"large"},{children:e.icon})):(t=e,jsxRuntime.exports.jsx(Button$1,Object.assign({className:h.actionButton,size:t.size,variant:t.variant,onClick:()=>r(e.action)},{children:t.label})))};return jsxRuntime.exports.jsx(Slide$1,Object.assign({in:d,direction:"left",onExited:()=>r(unmountPanel$1(t))},{children:jsxRuntime.exports.jsxs(Paper$1,Object.assign({elevation:3,id:t,"data-test":"panel-"+(t||"unknown"),className:h.container},{children:[s&&jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:h.headerContainer},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({gutterBottom:!0,className:h.headerTitle,variant:"h4"},{children:s.title})),jsxRuntime.exports.jsxs("div",Object.assign({className:h.actionContainer},{children:[null==(n=s.actions)?void 0:n.map(e=>m(e)),jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"close-button-"+t,className:h.actionButton,onClick:()=>r(hidePanel$1(t)),size:"large"},{children:jsxRuntime.exports.jsx(default_1$6,{})}))]}))]})),s.divider&&jsxRuntime.exports.jsx(Divider$1,{})]}),jsxRuntime.exports.jsx("div",Object.assign({className:h.padding},{children:e?react$1.exports.cloneElement(e,Object.assign(Object.assign({},i.config||{}),{dataId:t,hidePanel:()=>r(hidePanel$1(t))})):jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"No micro frontend passed!"})})})),l&&jsxRuntime.exports.jsxs("div",Object.assign({className:h.footer},{children:[l.divider&&jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsxs("div",Object.assign({className:h.headerContainer},{children:[jsxRuntime.exports.jsx("div",{}),jsxRuntime.exports.jsx("div",Object.assign({className:h.actionContainer},{children:null==(n=l.actions)?void 0:n.map(e=>m(e))}))]}))]}))]}))}))},SamplePanel5=e=>jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"Welcome to SamplePanel5!"})}),SamplePanel4=e=>jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"Welcome to SamplePanel4!"})}),SamplePanel3=n=>{const r=useDispatch();return jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx("h1",{children:"Welcome to picker!"}),jsxRuntime.exports.jsx(Typography$1,Object.assign({id:"discrete-slider",gutterBottom:!0},{children:"Temperature"})),jsxRuntime.exports.jsx(Slider$1,{"data-test":"slider",defaultValue:n.value,value:n.value,"aria-labelledby":"discrete-slider",valueLabelDisplay:"auto",step:10,marks:!0,min:0,max:110,onChange:(e,t)=>{r(updatePanelMicroFrontendProps({id:n.dataId,props:Object.assign(Object.assign({},n),{value:t})}))},onChangeCommitted:(e,t)=>{r(updatePanelMicroFrontendProps({id:n.dataId,props:Object.assign(Object.assign({},n),{value:t})})),r(setData({id:n.dataId,data:t}))}})]})},SamplePanel2=e=>jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"Welcome to SamplePanel2!"})}),useStyles=makeStyles()(e=>({container:{},root:{minWidth:50},bullet:{display:"inline-block",margin:"0 2px",transform:"scale(0.8)"},title:{fontSize:14},pos:{marginBottom:12}})),SamplePanel1=e=>{var t=useStyles()["classes"],n=jsxRuntime.exports.jsx("span",Object.assign({className:t.bullet},{children:"•"}));return jsxRuntime.exports.jsxs("div",Object.assign({className:t.container},{children:[jsxRuntime.exports.jsxs("h1",{children:["Welcome to SamplePanel1 ",e.name||"Unknown Person","!"]}),jsxRuntime.exports.jsxs(Card$1,Object.assign({className:t.root},{children:[jsxRuntime.exports.jsxs(CardContent$1,{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({className:t.title,color:"textSecondary",gutterBottom:!0},{children:"Word of the Day"})),jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"h5",component:"h2"},{children:["be",n,"nev",n,"o",n,"lent"]})),jsxRuntime.exports.jsx(Typography$1,Object.assign({className:t.pos,color:"textSecondary"},{children:"adjective"})),jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2",component:"p"},{children:["well meaning and kindly.",jsxRuntime.exports.jsx("br",{}),'"a benevolent smile"']}))]}),jsxRuntime.exports.jsx(CardActions$1,{children:jsxRuntime.exports.jsx(Button$1,Object.assign({size:"small"},{children:"Learn More"}))})]}))]}))};var match,version,set$1,get,store$4,STATE,$location,defer,channel,port,toggle,node,promise,then,queue,flush,notify$1,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,index_esm=Object.freeze({__proto__:null,Panel:Panel,SamplePanel1:SamplePanel1,SamplePanel2:SamplePanel2,SamplePanel3:SamplePanel3,SamplePanel4:SamplePanel4,SamplePanel5:SamplePanel5}),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math==Math&&e},global$f=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$a=function(e){try{return!!e()}catch(e){return!0}},fails$9=fails$a,descriptors=!fails$a(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$8=fails$a,functionBindNative=!fails$a(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$c=Function.prototype.call,functionCall=NATIVE_BIND$3?call$c.bind(call$c):function(){return call$c.apply(call$c,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$2&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$2=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$2(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,call$b=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$2&&FunctionPrototype$2.bind.bind(call$b,call$b),functionUncurryThis=NATIVE_BIND$2?uncurryThisWithBind:function(e){return function(){return call$b.apply(e,arguments)}},uncurryThis$d=functionUncurryThis,toString$1=uncurryThis$d({}.toString),stringSlice$1=uncurryThis$d("".slice),classofRaw$2=function(e){return stringSlice$1(toString$1(e),8,-1)},uncurryThis$c=functionUncurryThis,fails$7=fails$a,classof$4=classofRaw$2,$Object$3=Object,split=functionUncurryThis("".split),indexedObject=fails$7(function(){return!$Object$3("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$4(e)?split(e,""):$Object$3(e)}:$Object$3,isNullOrUndefined$4=function(e){return null==e},isNullOrUndefined$3=isNullOrUndefined$4,$TypeError$c=TypeError,requireObjectCoercible$2=function(e){if(isNullOrUndefined$3(e))throw $TypeError$c("Can't call method on "+e);return e},IndexedObject=indexedObject,requireObjectCoercible$1=requireObjectCoercible$2,toIndexedObject$3=function(e){return IndexedObject(requireObjectCoercible$1(e))},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$h=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},isCallable$g=isCallable$h,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$7=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$g(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$g(e)},global$e=global$f,isCallable$f=isCallable$h,aFunction=function(e){return isCallable$f(e)?e:void 0},getBuiltIn$7=function(e,t){return arguments.length<2?aFunction(global$e[e]):global$e[e]&&global$e[e][t]},uncurryThis$b=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$d=global$f,userAgent$3=engineUserAgent,process$4=global$d.process,Deno$1=global$d.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent$3.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION$1=engineV8Version,fails$6=fails$a,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$6(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$1=symbolConstructorDetection,useSymbolAsUid=symbolConstructorDetection&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$7,isCallable$e=isCallable$h,isPrototypeOf$2=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$2=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$e(t)&&isPrototypeOf$2(t.prototype,$Object$2(e))},$String$3=String,tryToString$4=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$d=isCallable$h,tryToString$3=tryToString$4,$TypeError$b=TypeError,aCallable$8=function(e){if(isCallable$d(e))return e;throw $TypeError$b(tryToString$3(e)+" is not a function")},aCallable$7=aCallable$8,isNullOrUndefined$2=isNullOrUndefined$4,getMethod$3=function(e,t){e=e[t];return isNullOrUndefined$2(e)?void 0:aCallable$7(e)},call$a=functionCall,isCallable$c=isCallable$h,isObject$6=isObject$7,$TypeError$a=TypeError,ordinaryToPrimitive$1=function(e,t){var n,r;if("string"===t&&isCallable$c(n=e.toString)&&!isObject$6(r=call$a(n,e)))return r;if(isCallable$c(n=e.valueOf)&&!isObject$6(r=call$a(n,e)))return r;if("string"!==t&&isCallable$c(n=e.toString)&&!isObject$6(r=call$a(n,e)))return r;throw $TypeError$a("Can't convert object to primitive value")},shared$3={exports:{}},global$c=global$f,defineProperty$3=Object.defineProperty,defineGlobalProperty$3=function(t,n){try{defineProperty$3(global$c,t,{value:n,configurable:!0,writable:!0})}catch(e){global$c[t]=n}return n},global$b=global$f,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$f[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible=((shared$3.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$2),$Object$1=Object,toObject$1=function(e){return $Object$1(requireObjectCoercible(e))},uncurryThis$a=functionUncurryThis,toObject=toObject$1,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject(e),t)},uncurryThis$9=functionUncurryThis,id=0,postfix=Math.random(),toString=uncurryThis$9(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString(++id+postfix,36)},global$a=global$f,shared$2=shared$3.exports,hasOwn$8=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$1=global$a.Symbol,WellKnownSymbolsStore=shared$2("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1.for||Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$a=function(e){return hasOwn$8(WellKnownSymbolsStore,e)||(WellKnownSymbolsStore[e]=NATIVE_SYMBOL&&hasOwn$8(Symbol$1,e)?Symbol$1[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},call$9=functionCall,isObject$5=isObject$7,isSymbol$1=isSymbol$2,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$9=wellKnownSymbol$a,$TypeError$9=TypeError,TO_PRIMITIVE=wellKnownSymbol$a("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$5(e)||isSymbol$1(e))return e;var n=getMethod$2(e,TO_PRIMITIVE);if(n){if(n=call$9(n,e,t=void 0===t?"default":t),!isObject$5(n)||isSymbol$1(n))return n;throw $TypeError$9("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$2=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$9=global$f,isObject$4=isObject$7,document$3=global$f.document,EXISTS$1=isObject$4(document$3)&&isObject$4(document$3.createElement),documentCreateElement=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$7=descriptors,fails$5=fails$a,createElement$1=documentCreateElement,ie8DomDefine=!descriptors&&!fails$a(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$6=descriptors,call$8=functionCall,propertyIsEnumerableModule=objectPropertyIsEnumerable,createPropertyDescriptor$1=createPropertyDescriptor$2,toIndexedObject$2=toIndexedObject$3,toPropertyKey$1=toPropertyKey$2,hasOwn$7=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$6?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$2(e),t=toPropertyKey$1(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$7(e,t))return createPropertyDescriptor$1(!call$8(propertyIsEnumerableModule.f,e,t),e[t])},{}),DESCRIPTORS$5=descriptors,fails$4=fails$a,v8PrototypeDefineBug=descriptors&&fails$a(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$3=isObject$7,$String$2=String,$TypeError$8=TypeError,anObject$8=function(e){if(isObject$3(e))return e;throw $TypeError$8($String$2(e)+" is not an object")},DESCRIPTORS$4=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,anObject$7=anObject$8,toPropertyKey=toPropertyKey$2,$TypeError$7=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$3=(objectDefineProperty.f=DESCRIPTORS$4?V8_PROTOTYPE_DEFINE_BUG?function(e,t,n){var r;return anObject$7(e),t=toPropertyKey(t),anObject$7(n),"function"==typeof e&&"prototype"===t&&"value"in n&&WRITABLE in n&&!n[WRITABLE]&&(r=$getOwnPropertyDescriptor(e,t))&&r[WRITABLE]&&(e[t]=n.value,n={configurable:(CONFIGURABLE$1 in n?n:r)[CONFIGURABLE$1],enumerable:(ENUMERABLE in n?n:r)[ENUMERABLE],writable:!1}),$defineProperty(e,t,n)}:$defineProperty:function(e,t,n){if(anObject$7(e),t=toPropertyKey(t),anObject$7(n),IE8_DOM_DEFINE)try{return $defineProperty(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $TypeError$7("Accessors not supported");return"value"in n&&(e[t]=n.value),e},descriptors),definePropertyModule$2=objectDefineProperty,createPropertyDescriptor=createPropertyDescriptor$2,createNonEnumerableProperty$2=DESCRIPTORS$3?function(e,t,n){return definePropertyModule$2.f(e,t,createPropertyDescriptor(1,n))}:function(e,t,n){return e[t]=n,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$2=descriptors,hasOwn$6=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$2&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$6(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$2||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$8=functionUncurryThis,isCallable$b=isCallable$h,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$3=(isCallable$b(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$8=global$f,isCallable$a=isCallable$h,WeakMap$1=global$f.WeakMap,weakMapBasicDetection=isCallable$a(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$1=shared$3.exports,uid=uid$2,keys=shared$1("keys"),sharedKey$1=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$3={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$7=global$f,isObject$2=isObject$7,createNonEnumerableProperty$1=createNonEnumerableProperty$2,hasOwn$5=hasOwnProperty_1,shared=sharedStore,sharedKey=sharedKey$1,hiddenKeys$2=hiddenKeys$3,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$2=global$7.TypeError,WeakMap$2=global$7.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$2(e)&&(e=get(e)).type===t)return e;throw TypeError$2("Incompatible receiver, "+t+" required")}},has=NATIVE_WEAK_MAP||shared.state?((store$4=shared.state||(shared.state=new WeakMap$2)).get=store$4.get,store$4.has=store$4.has,store$4.set=store$4.set,set$1=function(e,t){if(store$4.has(e))throw TypeError$2(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store$4.set(e,t),t},get=function(e){return store$4.get(e)||{}},function(e){return store$4.has(e)}):(STATE=sharedKey("state"),hiddenKeys$2[STATE]=!0,set$1=function(e,t){if(hasOwn$5(e,STATE))throw TypeError$2(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$1(e,STATE,t),t},get=function(e){return hasOwn$5(e,STATE)?e[STATE]:{}},function(e){return hasOwn$5(e,STATE)}),internalState={set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor},uncurryThis$7=functionUncurryThis,fails$3=fails$a,isCallable$9=isCallable$h,hasOwn$4=hasOwnProperty_1,DESCRIPTORS$1=descriptors,CONFIGURABLE_FUNCTION_NAME=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,InternalStateModule$1=internalState,enforceInternalState=InternalStateModule$1.enforce,getInternalState=InternalStateModule$1.get,$String$1=String,defineProperty$2=Object.defineProperty,stringSlice=uncurryThis$7("".slice),replace=uncurryThis$7("".replace),join=uncurryThis$7([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$1&&!fails$3(function(){return 8!==defineProperty$2(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,n){"Symbol("===stringSlice($String$1(t),0,7)&&(t="["+replace($String$1(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hasOwn$4(e,"name")||CONFIGURABLE_FUNCTION_NAME&&e.name!==t)&&(DESCRIPTORS$1?defineProperty$2(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&n&&hasOwn$4(n,"arity")&&e.length!==n.arity&&defineProperty$2(e,"length",{value:n.arity});try{n&&hasOwn$4(n,"constructor")&&n.constructor?DESCRIPTORS$1&&defineProperty$2(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}n=enforceInternalState(e);return hasOwn$4(n,"source")||(n.source=join(TEMPLATE,"string"==typeof t?t:"")),e},isCallable$8=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$9(this)&&getInternalState(this).source||inspectSource$2(this)},"toString"),isCallable$h),definePropertyModule$1=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$3=function(e,t,n,r){var i=(r=r||{}).enumerable,o=void 0!==r.name?r.name:t;if(isCallable$8(n)&&makeBuiltIn$1(n,o,r),r.global)i?e[t]=n:defineGlobalProperty$1(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:definePropertyModule$1.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$2=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$1=toIntegerOrInfinity$2,max=Math.max,min$1=Math.min,toAbsoluteIndex$1=function(e,t){e=toIntegerOrInfinity$1(e);return e<0?max(e+t,0):min$1(e,t)},toIntegerOrInfinity=toIntegerOrInfinity$2,min=Math.min,toLength$1=function(e){return 0<e?min(toIntegerOrInfinity(e),9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$2=function(e){return toLength(e.length)},toIndexedObject$1=toIndexedObject$3,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike$1=lengthOfArrayLike$2,createMethod=function(s){return function(e,t,n){var r,i=toIndexedObject$1(e),o=lengthOfArrayLike$1(i),a=toAbsoluteIndex(n,o);if(s&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}},arrayIncludes={includes:createMethod(!0),indexOf:createMethod(!1)},uncurryThis$6=functionUncurryThis,hasOwn$3=hasOwnProperty_1,toIndexedObject=toIndexedObject$3,indexOf=arrayIncludes.indexOf,hiddenKeys$1=hiddenKeys$3,push=uncurryThis$6([].push),objectKeysInternal=function(e,t){var n,r=toIndexedObject(e),i=0,o=[];for(n in r)!hasOwn$3(hiddenKeys$1,n)&&hasOwn$3(r,n)&&push(o,n);for(;t.length>i;)!hasOwn$3(r,n=t[i++])||~indexOf(o,n)||push(o,n);return o},enumBugKeys$1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys=objectKeysInternal,enumBugKeys=enumBugKeys$1,hiddenKeys=enumBugKeys$1.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys(e,hiddenKeys)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$7),uncurryThis$5=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,anObject$6=anObject$8,concat=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$6(e)),n=getOwnPropertySymbolsModule.f;return n?concat(t,n(e)):t},hasOwn$2=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule=objectDefineProperty,copyConstructorProperties$1=function(e,t,n){for(var r=ownKeys(t),i=definePropertyModule.f,o=getOwnPropertyDescriptorModule.f,a=0;a<r.length;a++){var s=r[a];hasOwn$2(e,s)||n&&hasOwn$2(n,s)||i(e,s,o(t,s))}},fails$2=fails$a,isCallable$7=isCallable$h,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$7(t)?fails$2(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,global$6=global$f,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty=createNonEnumerableProperty$2,defineBuiltIn$2=defineBuiltIn$3,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=copyConstructorProperties$1,isForced$1=isForced_1,_export=function(e,t){var n,r,i,o=e.target,a=e.global,s=e.stat,l=a?global$6:s?global$6[o]||defineGlobalProperty(o,{}):(global$6[o]||{}).prototype;if(l)for(n in t){if(r=t[n],i=e.dontCallGetSet?(i=getOwnPropertyDescriptor$1(l,n))&&i.value:l[n],!isForced$1(a?n:o+(s?".":"#")+n,e.forced)&&void 0!==i){if(typeof r==typeof i)continue;copyConstructorProperties(r,i)}(e.sham||i&&i.sham)&&createNonEnumerableProperty(r,"sham",!0),defineBuiltIn$2(l,n,r,e)}},classof$3=classofRaw$2,engineIsNode="undefined"!=typeof process&&"process"==classofRaw$2(process),uncurryThis$4=functionUncurryThis,aCallable$6=aCallable$8,functionUncurryThisAccessor=function(e,t,n){try{return uncurryThis$4(aCallable$6(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},isCallable$6=isCallable$h,$String=String,$TypeError$6=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$6(e))return e;throw $TypeError$6("Can't set "+$String(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$5=anObject$8,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=uncurryThisAccessor(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return anObject$5(e),aPossiblePrototype(t),r?n(e,t):e.__proto__=t,e}}():void 0),defineProperty$1=objectDefineProperty.f,hasOwn$1=hasOwnProperty_1,wellKnownSymbol$8=wellKnownSymbol$a,TO_STRING_TAG$2=wellKnownSymbol$a("toStringTag"),setToStringTag$1=function(e,t,n){(e=e&&!n?e.prototype:e)&&!hasOwn$1(e,TO_STRING_TAG$2)&&defineProperty$1(e,TO_STRING_TAG$2,{configurable:!0,value:t})},makeBuiltIn=makeBuiltIn$3.exports,defineProperty=objectDefineProperty,defineBuiltInAccessor$1=function(e,t,n){return n.get&&makeBuiltIn(n.get,t,{getter:!0}),n.set&&makeBuiltIn(n.set,t,{setter:!0}),defineProperty.f(e,t,n)},getBuiltIn$4=getBuiltIn$7,defineBuiltInAccessor=defineBuiltInAccessor$1,wellKnownSymbol$7=wellKnownSymbol$a,DESCRIPTORS=descriptors,SPECIES$2=wellKnownSymbol$a("species"),setSpecies$1=function(e){e=getBuiltIn$4(e);DESCRIPTORS&&e&&!e[SPECIES$2]&&defineBuiltInAccessor(e,SPECIES$2,{configurable:!0,get:function(){return this}})},isPrototypeOf$1=objectIsPrototypeOf,$TypeError$5=TypeError,anInstance$1=function(e,t){if(isPrototypeOf$1(t,e))return e;throw $TypeError$5("Incorrect invocation")},wellKnownSymbol$6=wellKnownSymbol$a,TO_STRING_TAG$1=wellKnownSymbol$a("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$1]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$5=isCallable$h,classofRaw$1=classofRaw$2,wellKnownSymbol$5=wellKnownSymbol$a,TO_STRING_TAG=wellKnownSymbol$a("toStringTag"),$Object=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw$1(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$2=TO_STRING_TAG_SUPPORT?classofRaw$1:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object(e),TO_STRING_TAG))?t:CORRECT_ARGUMENTS?classofRaw$1(e):"Object"==(t=classofRaw$1(e))&&isCallable$5(e.callee)?"Arguments":t},uncurryThis$3=functionUncurryThis,fails$1=fails$a,isCallable$4=isCallable$h,classof$1=classof$2,getBuiltIn$3=getBuiltIn$7,inspectSource$1=inspectSource$3,noop=function(){},empty=[],construct=getBuiltIn$7("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis$3(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$4(e))return!1;try{return construct(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$4(e))return!1;switch(classof$1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec(constructorRegExp,inspectSource$1(e))}catch(e){return!0}},isConstructor$1=(isConstructorLegacy.sham=!0,!construct||fails$1(function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){e=!0})||e})?isConstructorLegacy:isConstructorModern),isConstructor=isConstructor$1,tryToString$2=tryToString$4,$TypeError$4=TypeError,aConstructor$1=function(e){if(isConstructor(e))return e;throw $TypeError$4(tryToString$2(e)+" is not a constructor")},anObject$4=anObject$8,aConstructor=aConstructor$1,isNullOrUndefined$1=isNullOrUndefined$4,wellKnownSymbol$4=wellKnownSymbol$a,SPECIES$1=wellKnownSymbol$a("species"),speciesConstructor$1=function(e,t){var e=anObject$4(e).constructor;return void 0===e||isNullOrUndefined$1(e=anObject$4(e)[SPECIES$1])?t:aConstructor(e)},NATIVE_BIND$1=functionBindNative,FunctionPrototype=Function.prototype,apply$1=FunctionPrototype.apply,call$7=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$7.bind(apply$1):function(){return call$7.apply(apply$1,arguments)}),classofRaw=classofRaw$2,uncurryThis$2=functionUncurryThis,functionUncurryThisClause=function(e){if("Function"===classofRaw(e))return uncurryThis$2(e)},uncurryThis$1=functionUncurryThisClause,aCallable$5=aCallable$8,NATIVE_BIND=functionBindNative,bind$4=functionUncurryThisClause(functionUncurryThisClause.bind),functionBindContext=function(e,t){return aCallable$5(e),void 0===t?e:NATIVE_BIND?bind$4(e,t):function(){return e.apply(t,arguments)}},getBuiltIn$2=getBuiltIn$7,html$1=getBuiltIn$7("document","documentElement"),uncurryThis=functionUncurryThis,arraySlice$1=functionUncurryThis([].slice),$TypeError$3=TypeError,validateArgumentsLength$1=function(e,t){if(e<t)throw $TypeError$3("Not enough arguments");return e},userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$5=global$f,apply=functionApply,bind$3=functionBindContext,isCallable$3=isCallable$h,hasOwn=hasOwnProperty_1,fails=fails$a,html=html$1,arraySlice=arraySlice$1,createElement=documentCreateElement,validateArgumentsLength=validateArgumentsLength$1,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$5.setImmediate,clear=global$5.clearImmediate,process$3=global$5.process,Dispatch=global$5.Dispatch,Function$1=global$5.Function,MessageChannel$1=global$5.MessageChannel,String$1=global$5.String,counter=0,queue$2={},ONREADYSTATECHANGE="onreadystatechange",run=(fails(function(){$location=global$5.location}),function(e){var t;hasOwn(queue$2,e)&&(t=queue$2[e],delete queue$2[e],t())}),runner=function(e){return function(){run(e)}},eventListener=function(e){run(e.data)},globalPostMessageDefer=function(e){global$5.postMessage(String$1(e),$location.protocol+"//"+$location.host)},task$1=(set&&clear||(set=function(e){validateArgumentsLength(arguments.length,1);var t=isCallable$3(e)?e:Function$1(e),n=arraySlice(arguments,1);return queue$2[++counter]=function(){apply(t,void 0,n)},defer(counter),counter},clear=function(e){delete queue$2[e]},IS_NODE$3?defer=function(e){process$3.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel$1&&!IS_IOS$1?(port=(channel=new MessageChannel$1).port2,channel.port1.onmessage=eventListener,defer=bind$3(port.postMessage,port)):global$5.addEventListener&&isCallable$3(global$5.postMessage)&&!global$5.importScripts&&$location&&"file:"!==$location.protocol&&!fails(globalPostMessageDefer)?(defer=globalPostMessageDefer,global$5.addEventListener("message",eventListener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)}),{set:set,clear:clear}),Queue$2=function(){this.head=null,this.tail=null},queue$1=(Queue$2.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},Queue$2),userAgent$1=engineUserAgent,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&"undefined"!=typeof Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$4=global$f,bind$2=functionBindContext,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,Queue$1=queue$1,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$4.MutationObserver||global$4.WebKitMutationObserver,document$2=global$4.document,process$2=global$4.process,Promise$1=global$4.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor(global$4,"queueMicrotask"),microtask$1=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value,microtask_1=(microtask$1||(queue=new Queue$1,flush=function(){var e,t;for(IS_NODE$2&&(e=process$2.domain)&&e.exit();t=queue.get();)try{t()}catch(e){throw queue.head&¬ify$1(),e}e&&e.enter()},notify$1=IS_IOS||IS_NODE$2||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$2(promise.then,promise),function(){then(flush)}):IS_NODE$2?function(){process$2.nextTick(flush)}:(macrotask=bind$2(macrotask,global$4),function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),function(){node.data=toggle=!toggle}),microtask$1=function(e){queue.head||notify$1(),queue.add(e)}),microtask$1),hostReportErrors$1=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},perform$3=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},global$3=global$f,promiseNativeConstructor=global$f.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$1=engineIsNode,engineIsBrowser=!engineIsDeno&&!engineIsNode&&"object"==typeof window&&"object"==typeof document,global$2=global$f,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$2=isCallable$h,isForced=isForced_1,inspectSource=inspectSource$3,wellKnownSymbol$3=wellKnownSymbol$a,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,SPECIES=(NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,wellKnownSymbol$3("species")),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$2(global$2.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",function(){var e=inspectSource(NativePromiseConstructor$3),t=e!==String(NativePromiseConstructor$3);if(!t&&66===V8_VERSION)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){function n(e){e(function(){},function(){})}e=new NativePromiseConstructor$3(function(e){e(1)});if((e.constructor={})[SPECIES]=n,!(SUBCLASSING=e.then(function(){})instanceof n))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$4=aCallable$8,$TypeError$2=TypeError,PromiseCapability=function(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw $TypeError$2("Bad Promise constructor");n=e,r=t}),this.resolve=aCallable$4(n),this.reject=aCallable$4(r)},$$5=(newPromiseCapability$2.f=function(e){return new PromiseCapability(e)},_export),IS_NODE=engineIsNode,global$1=global$f,call$6=functionCall,defineBuiltIn$1=defineBuiltIn$3,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$1,setSpecies=setSpecies$1,aCallable$3=aCallable$8,isCallable$1=isCallable$h,isObject$1=isObject$7,anInstance=anInstance$1,speciesConstructor=speciesConstructor$1,task=task$1.set,microtask=microtask_1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue$1,InternalStateModule=internalState,NativePromiseConstructor$2=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule.getterFor(PROMISE),setInternalState=InternalStateModule.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$1=global$1.TypeError,document$1=global$1.document,process$1=global$1.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$1.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$1(e)||!isCallable$1(t=e.then))&&t},callReaction=function(e,t){var n,r,i,o=t.value,a=t.state==FULFILLED,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?n=o:(u&&u.enter(),n=s(o),u&&(u.exit(),i=!0)),n===e.promise?c(TypeError$1("Promise-chain cycle")):(r=isThenable(n))?call$6(r,n,l,c):l(n)):c(o)}catch(e){u&&!i&&u.exit(),c(e)}},notify=function(n,r){n.notified||(n.notified=!0,microtask(function(){for(var e,t=n.reactions;e=t.get();)callReaction(e,n);n.notified=!1,r&&!n.rejection&&onUnhandled(n)}))},dispatchEvent=function(e,t,n){var r;DISPATCH_EVENT?((r=document$1.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),global$1.dispatchEvent(r)):r={promise:t,reason:n},!NATIVE_PROMISE_REJECTION_EVENT&&(t=global$1["on"+e])?t(r):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",n)},onUnhandled=function(r){call$6(task,global$1,function(){var e=r.facade,t=r.value,n=isUnhandled(r);if(n&&(n=perform$2(function(){IS_NODE?process$1.emit("unhandledRejection",t,e):dispatchEvent(UNHANDLED_REJECTION,e,t)}),r.rejection=IS_NODE||isUnhandled(r)?UNHANDLED:HANDLED,n.error))throw n.value})},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(t){call$6(task,global$1,function(){var e=t.facade;IS_NODE?process$1.emit("rejectionHandled",e):dispatchEvent(REJECTION_HANDLED,e,t.value)})},bind$1=function(t,n,r){return function(e){t(n,e,r)}},internalReject=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw TypeError$1("Promise can't be resolved itself");var r=isThenable(e);r?microtask(function(){var t={done:!1};try{call$6(r,e,bind$1(internalResolve,t,n),bind$1(internalReject,t,n))}catch(e){internalReject(t,e,n)}}):(n.value=e,n.state=FULFILLED,notify(n,!1))}catch(e){internalReject({done:!1},e,n)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance(this,PromisePrototype),aCallable$3(e),call$6(Internal,this);var t=getInternalPromiseState(this);try{e(bind$1(internalResolve,t),bind$1(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$1(PromisePrototype,"then",function(e,t){var n=getInternalPromiseState(this),r=newPromiseCapability$1(speciesConstructor(this,PromiseConstructor));return n.parent=!0,r.ok=!isCallable$1(e)||e,r.fail=isCallable$1(t)&&t,r.domain=IS_NODE?process$1.domain:void 0,n.state==PENDING?n.reactions.add(r):microtask(function(){callReaction(r,n)}),r.promise}),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$1(internalResolve,t),this.reject=bind$1(internalReject,t)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},isCallable$1(NativePromiseConstructor$2))&&NativePromisePrototype$1!==Object.prototype){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$1(NativePromisePrototype$1,"then",function(e,t){var n=this;return new PromiseConstructor(function(e,t){call$6(nativeThen,n,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch(e){}setPrototypeOf&&setPrototypeOf(NativePromisePrototype$1,PromisePrototype)}$$5({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var iterators={},wellKnownSymbol$2=wellKnownSymbol$a,Iterators$1=iterators,ITERATOR$2=wellKnownSymbol$a("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$1=function(e){return void 0!==e&&(Iterators$1.Array===e||ArrayPrototype[ITERATOR$2]===e)},classof=classof$2,getMethod$1=getMethod$3,isNullOrUndefined=isNullOrUndefined$4,Iterators=iterators,wellKnownSymbol$1=wellKnownSymbol$a,ITERATOR$1=wellKnownSymbol$a("iterator"),getIteratorMethod$2=function(e){if(!isNullOrUndefined(e))return getMethod$1(e,ITERATOR$1)||getMethod$1(e,"@@iterator")||Iterators[classof(e)]},call$5=functionCall,aCallable$2=aCallable$8,anObject$3=anObject$8,tryToString$1=tryToString$4,getIteratorMethod$1=getIteratorMethod$2,$TypeError$1=TypeError,getIterator$1=function(e,t){var n=arguments.length<2?getIteratorMethod$1(e):t;if(aCallable$2(n))return anObject$3(call$5(n,e));throw $TypeError$1(tryToString$1(e)+" is not iterable")},call$4=functionCall,anObject$2=anObject$8,getMethod=getMethod$3,iteratorClose$1=function(e,t,n){var r,i;anObject$2(e);try{if(!(r=getMethod(e,"return"))){if("throw"===t)throw n;return n}r=call$4(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return anObject$2(r),n},bind=functionBindContext,call$3=functionCall,anObject$1=anObject$8,tryToString=tryToString$4,isArrayIteratorMethod=isArrayIteratorMethod$1,lengthOfArrayLike=lengthOfArrayLike$2,isPrototypeOf=objectIsPrototypeOf,getIterator=getIterator$1,getIteratorMethod=getIteratorMethod$2,iteratorClose=iteratorClose$1,$TypeError=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$2=function(e,t,n){function r(e){return o&&iteratorClose(o,"normal",e),new Result(!0,e)}function i(e){return p?(anObject$1(e),m?g(e[0],e[1],r):g(e[0],e[1])):m?g(e,r):g(e)}var o,a,s,l,c,u,d=n&&n.that,p=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),g=bind(t,d);if(f)o=e.iterator;else if(h)o=e;else{if(!(n=getIteratorMethod(e)))throw $TypeError(tryToString(e)+" is not iterable");if(isArrayIteratorMethod(n)){for(a=0,s=lengthOfArrayLike(e);a<s;a++)if((l=i(e[a]))&&isPrototypeOf(ResultPrototype,l))return l;return new Result(!1)}o=getIterator(e,n)}for(c=(f?e:o).next;!(u=call$3(c,o)).done;){try{l=i(u.value)}catch(e){iteratorClose(o,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf(ResultPrototype,l))return l}return new Result(!1)},wellKnownSymbol=wellKnownSymbol$a,ITERATOR=wellKnownSymbol$a("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(e){}var method,checkCorrectnessOfIteration$1=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var n=!1;try{var r={};r[ITERATOR]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},NativePromiseConstructor$1=promiseNativeConstructor,checkCorrectnessOfIteration=checkCorrectnessOfIteration$1,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration(function(e){NativePromiseConstructor$1.all(e).then(void 0,function(){})}),$$4=_export,call$2=functionCall,aCallable$1=aCallable$8,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration,$$3=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{all:function(e){var s=this,t=newPromiseCapabilityModule$2.f(s),l=t.resolve,c=t.reject,n=perform$1(function(){var r=aCallable$1(s.resolve),i=[],o=0,a=1;iterate$1(e,function(e){var t=o++,n=!1;a++,call$2(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a)||l(i)},c)}),--a||l(i)});return n.error&&c(n.value),t.promise}}),_export),FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$7,isCallable=isCallable$h,defineBuiltIn=defineBuiltIn$3,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,$$2=($$3({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable(NativePromiseConstructor)&&(method=getBuiltIn$1("Promise").prototype.catch,NativePromisePrototype.catch!==method)&&defineBuiltIn(NativePromisePrototype,"catch",method,{unsafe:!0}),_export),call$1=functionCall,aCallable=aCallable$8,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,$$1=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function(e){var n=this,r=newPromiseCapabilityModule$1.f(n),i=r.reject,t=perform(function(){var t=aCallable(n.resolve);iterate(e,function(e){call$1(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}}),_export),call=functionCall,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR,anObject=($$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return call(t.reject,void 0,e),t.promise}}),anObject$8),isObject=isObject$7,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(e,t){return anObject(e),isObject(t)&&t.constructor===e?t:((0,(e=newPromiseCapability.f(e)).resolve)(t),e.promise)},$=_export,getBuiltIn=getBuiltIn$7,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;function __awaiter(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}getBuiltIn("Promise"),$({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}});const registry={[AvailableWidgets.APP_BAR]:App,[AvailableComponents.APP_BAR_PANEL]:SettingPanelComponent,[AvailablePanels.APP_BAR_PANEL_TEMPLATE]:AppbarPanel,[AvailablePanels.TAB_TEMPLATE]:Tab,[AvailablePanels.SIMPLE_PANEL]:Panel},registryLookup=t=>__awaiter(void 0,void 0,void 0,function*(){if(registry[t])return yield registry[t];let e=Promise.resolve(null);switch(t){case AvailableWidgets.SAMPLE_APP_BAR:e=import("./js-core.esm2.js").then(e=>e.SampleAppBar);break;case AvailableWidgets.RESET_PASSWORD:e=import("./js-core.esm4.js").then(e=>e.ResetPassword);break;case AvailableWidgets.FLOW_CENTER:e=import("./js-core.esm11.js").then(e=>e.App);break;case AvailableWidgets.FLOW_WIDGET:e=import("./js-core.esm13.js").then(function(e){return e.i}).then(e=>e.App);break;case AvailableWidgets.ENGINE_CENTER_BROWSE:e=import("./js-core.esm20.js").then(e=>e.EngineCenterBrowse);break;case AvailableWidgets.MACHINE_BOX_BROWSE:e=import("./js-core.esm29.js").then(e=>e.MachineBoxBrowse);break;case AvailableWidgets.DEVELOPER_OVERVIEW:e=import("./js-core.esm22.js").then(e=>e.DeveloperOverview);break;case AvailablePanels.APP_BAR_TAB_PANEL_TEMPLATE:e=Promise.resolve().then(function(){return index_esm$1}).then(e=>e.AppbarTabPanel);break;case AvailableComponents.NOTIFICATION_PANEL:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationPanel);break;case AvailableComponents.NOTIFICATION_DETAIL:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationDetailPanel);break;case AvailableComponents.NOTIFICATION_SETTING:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationSetting);break;case AvailableComponents.NOTIFICATION_UTILITY:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationUtilityPanel);break;case AvailableComponents.NOTIFICATION_APPLICATION:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationApplication);break;case AvailableComponents.HELP_PANEL:e=Promise.resolve().then(function(){return index_esm$3}).then(e=>e.HelpCenterPanel);break;case AvailableComponents.EDIT_PROFILE_PICTURE:e=Promise.resolve().then(function(){return index_esm$4}).then(e=>e.EditProFilePicture);break;case AvailableComponents.TEST_COMPONENT:e=Promise.resolve().then(function(){return index_esm}).then(e=>e.SamplePanel1);break;case AvailableComponents.TEST_COMPONENT2:e=Promise.resolve().then(function(){return index_esm}).then(e=>e.SamplePanel2);break;case AvailableComponents.TEST_COMPONENT3:e=Promise.resolve().then(function(){return index_esm}).then(e=>e.SamplePanel3);break;case AvailableComponents.SETTING_PREFERENCE:e=import("./js-core.esm30.js").then(e=>e.SettingsPreferencesPanel);break;case AvailableComponents.ORGANIZATION_PANEL:e=Promise.resolve().then(function(){return index_esm$2}).then(e=>e.OrganizationPanel);break;case AvailableComponents.INVITE_USERS_PANEL:e=Promise.resolve().then(function(){return index_esm$2}).then(e=>e.InviteUsersPanel);break;case AvailableComponents.INVITE_REQUESTS_PANEL:e=Promise.resolve().then(function(){return index_esm$2}).then(e=>e.InviteRequestsPanel);break;case AvailableComponents.REVIEW_ORG_INVITE_PANEL:e=Promise.resolve().then(function(){return index_esm$2}).then(e=>e.ReviewRequestPanel);break;case AvailableComponents.ADD_APPLICATIONS:e=Promise.resolve().then(function(){return index_esm$2}).then(e=>e.AddApplicationsPanel);break;case AvailableComponents.DATA_CENTER:e=import("./js-core.esm31.js").then(function(e){return e.c}).then(e=>e.DataCenterBrowse);break;case AvailableComponents.DATA_CENTER_FOLDERS_AND_FILES:e=import("./js-core.esm31.js").then(function(e){return e.c}).then(e=>e.FoldersAndFilesPanel);break;case AvailableComponents.DATA_CENTER_FILE_INFO_PANEL:e=import("./js-core.esm31.js").then(function(e){return e.c}).then(e=>e.FileInfoPanel);break;case AvailableComponents.DATA_CENTER_EDIT_METADATA_PANEL:e=import("./js-core.esm31.js").then(function(e){return e.c}).then(e=>e.EditMetadataPanel);break;case AvailableComponents.DATA_CENTER_IMPORTER:e=import("./js-core.esm37.js").then(e=>e.DataCenterImporter);break;case AvailableComponents.DATA_LABELER:e=import("./js-core.esm38.js").then(e=>e.DataLabelerPanel);break;case AvailableComponents.ADMIN_CENTER_OPEN_ID:e=import("./js-core.esm39.js").then(e=>e.AdminCenterOpenId);break;case AvailableComponents.ADMIN_CENTER:e=import("./js-core.esm42.js").then(e=>e.AdminCenterBrowse);break;case AvailableComponents.DATA_CENTER_PROCESS_AI:e=import("./js-core.esm48.js").then(e=>e.DataCenterProcessAI);break;case AvailableComponents.ENGINE_CENTER_NEW:e=import("./js-core.esm21.js").then(function(e){return e.h}).then(e=>e.EngineCenterNew);break;case AvailableComponents.ENGINE_CENTER_FILTER:e=import("./js-core.esm20.js").then(e=>e.EngineCenterFilter);break;case AvailableComponents.APP_CENTER_FILTER:e=import("./js-core.esm49.js").then(e=>e.AppCenterFilter);break;case AvailableComponents.ENGINE_CENTER_DETAILS:e=import("./js-core.esm20.js").then(e=>e.EngineDetails);break;case AvailableComponents.ENGINE_CENTER_NEW_BUILD:e=import("./js-core.esm20.js").then(e=>e.CreateNewBuildPanel);break;case AvailableComponents.ENGINE_CENTER_CUSTOM_FIELDS_FORM:e=import("./js-core.esm21.js").then(function(e){return e.h}).then(e=>e.EngineCenterCustomFieldsForm);break;case AvailableComponents.ENGINE_CENTER_SCHEMAS_FORM_PANEL:e=import("./js-core.esm21.js").then(function(e){return e.h}).then(e=>e.SchemasFormPanel);break;case AvailableComponents.ENGINE_CENTER_INPUT_TYPE_FLYOUT:e=import("./js-core.esm21.js").then(function(e){return e.h}).then(e=>e.InputTypeFlyout);break;case AvailableComponents.ENGINE_CENTER_EDIT_RELEASE_NOTES:e=import("./js-core.esm20.js").then(e=>e.EditReleaseNotes);break;case AvailableComponents.ENGINE_CENTER_VERSION_HISTORY_PANEL:e=import("./js-core.esm20.js").then(e=>e.VersionHistoryPanel);break;case AvailableComponents.SUPPORTED_FILE_TYPES:e=import("./js-core.esm37.js").then(e=>e.SupportedFileTypes);break;case AvailableComponents.EDIT_FILE_METADATA:e=import("./js-core.esm37.js").then(e=>e.EditFileMetadata);break;case AvailableWidgets.APP_CENTER_BROWSE:e=import("./js-core.esm49.js").then(e=>e.AppCenterBrowse);break;case AvailableComponents.APP_CENTER_NEW:e=import("./js-core.esm50.js").then(e=>e.AppCenterNew);break;case AvailableComponents.APP_CENTER_CONFIG_FIELDS_FORM:e=import("./js-core.esm50.js").then(e=>e.AppCenterConfigFieldsForm);break;case AvailableComponents.APP_CENTER_CONTEXT_MENU_EXTENSIONS:e=import("./js-core.esm50.js").then(e=>e.AppCenterContextMenuExtensionPanel);break;case AvailableComponents.APP_CENTER_APP_ROLES:e=import("./js-core.esm50.js").then(e=>e.AppCenterAppRolesPanel);break;case AvailableComponents.APP_CENTER_BROWSE:e=import("./js-core.esm49.js").then(e=>e.AppCenterBrowse);break;case AvailableComponents.APP_CENTER_DETAILS:e=import("./js-core.esm49.js").then(e=>e.AppCenterDetails);break;case AvailableComponents.DATA_CENTER_ENGINE_SELECTION:e=import("./js-core.esm48.js").then(e=>e.DataCenterEngineSelection);break;case AvailableComponents.ADMIN_CENTER_NEW_GROUP_PANEL:e=import("./js-core.esm36.js").then(e=>e.NewGroupPanel);break;case AvailableComponents.PERMISSIONS_PANEL:e=import("./js-core.esm32.js").then(e=>e.PermissionsPanel);break;case AvailableComponents.GROUP_INFO_PANEL:e=import("./js-core.esm32.js").then(e=>e.GroupInfoPanel);break;case AvailableComponents.NEW_PERMISSION_SET_PANEL:e=import("./js-core.esm32.js").then(e=>e.NewPermissionSetPanel);break;case AvailableComponents.PERMISSION_SET_DETAILS_PANEL:e=import("./js-core.esm32.js").then(e=>e.PermissionSetDetailsPanel);break;case AvailableComponents.DATA_CENTER_MDP_IFRAME_PANEL:e=import("./js-core.esm31.js").then(function(e){return e.c}).then(e=>e.MediaDetailsPanelIframe);break;case AvailableComponents.DATA_CENTER_INGESTION_CREATION_PANEL:e=import("./js-core.esm31.js").then(function(e){return e.c}).then(e=>e.IngestionCreationPanel);break;case AvailableComponents.DATA_CENTER_SELECT_IMPORT_SOURCE:e=import("./js-core.esm31.js").then(function(e){return e.c}).then(e=>e.SelectImportSource);break;case AvailableComponents.DATA_CENTER_SOURCE_CREATION_PANEL:e=import("./js-core.esm31.js").then(function(e){return e.c}).then(e=>e.SourceCreationPanel);break;case AvailableComponents.ADMIN_CENTER_GROUP_DETAILS_PANEL:e=import("./js-core.esm36.js").then(e=>e.GroupDetailsPanel);break;case AvailableComponents.ADMIN_CENTER_ADD_MEMBER_PANEL:e=import("./js-core.esm36.js").then(e=>e.AddMemberPanel);break;case AvailableComponents.APPLICATION_DETAILS_PANEL:e=import("./js-core.esm43.js").then(e=>e.ApplicationDetailsPanel);break;case AvailableComponents.PROCESSING_CENTER_SOURCES:e=import("./js-core.esm51.js").then(e=>e.ProcessingCenterSources);break;case AvailableComponents.PROCESSING_CENTER_ERROR_DETAIL:e=import("./js-core.esm51.js").then(e=>e.ErrorDetailPanel);break;case AvailableComponents.USER_APPLICATION_SETTINGS_PANEL:e=Promise.resolve().then(function(){return index_esm$6}).then(e=>e.UserApplicationSettingsPanel);break;case AvailableComponents.ADD_APPLICATION_USERS_PANEL:e=import("./js-core.esm43.js").then(e=>e.AddUsersPanel);break;case AvailableComponents.PROCESSING_CENTER:e=import("./js-core.esm53.js").then(e=>e.ProcessingCenterBrowse);break;case AvailableComponents.JOBS_TABLE_SETTINGS_PANEL:e=import("./js-core.esm54.js").then(e=>e.JobsTableSettingsPanel);break;case AvailableComponents.VERSION_PANEL:e=Promise.resolve().then(function(){return index_esm$1}).then(e=>e.VersionPanel);break;case AvailableComponents.CHANGELOG_PANEL:e=Promise.resolve().then(function(){return index_esm$1}).then(e=>e.ChangelogPanel);break;case AvailableComponents.PROCESSING_CENTER_DAG_BUILDER:e=import("./js-core.esm56.js").then(e=>e.DagBuilder);break;case AvailableComponents.PROCESSING_CENTER_INGESTION:e=import("./js-core.esm58.js").then(function(e){return e.au}).then(e=>e.ProcessingCenterIngestion);break;case AvailableComponents.PROCESSING_CENTER_ADVANCED_SETTINGS:e=import("./js-core.esm58.js").then(function(e){return e.au}).then(e=>e.ProcessingCenterAdvancedSettings);break;case AvailableComponents.PROCESSING_CENTER_AFFILIATE_PANEL:e=import("./js-core.esm58.js").then(function(e){return e.au}).then(e=>e.ProcessingCenterAffiliatePanel);break;case AvailableComponents.JOBS_DETAILS_PANEL:e=import("./js-core.esm54.js").then(e=>e.JobsDetailsPanel);break;case AvailableComponents.TASKS_TABLE_SETTINGS_PANEL:e=import("./js-core.esm55.js").then(e=>e.TasksTableSettingsPanel);break;case AvailableComponents.TASK_DETAILS_PANEL:e=import("./js-core.esm55.js").then(e=>e.TaskDetailsPanel);break;case AvailableComponents.RESOURCE_CENTER:e=import("./js-core.esm60.js").then(e=>e.ResourceCenterBrowse);break;case AvailableComponents.PACKAGE_DETAILS_PANEL:e=import("./js-core.esm64.js").then(e=>e.PackageDetails);break;case AvailableComponents.PACKAGE_MANAGER_PANEL:e=import("./js-core.esm65.js").then(function(e){return e.aa}).then(e=>e.PackageManager);break;case AvailableComponents.INSTANCE_ADMIN_CENTER_BROWSE:e=import("./js-core.esm66.js").then(e=>e.InstanceAdminCenterBrowse);break;case AvailableComponents.MANAGE_GRANTS:e=import("./js-core.esm64.js").then(e=>e.ManageGrantsPanel);break;case AvailableComponents.SCHEMA_DETAILS_PANEL:e=import("./js-core.esm68.js").then(e=>e.SchemaDetailsPanel);break;case AvailableComponents.FLOW_TEMPLATE_DETAILS_PANEL:e=import("./js-core.esm68.js").then(e=>e.TemplateDetailsPanel);break;case AvailableComponents.USER_DETAILS_PANEL:e=import("./js-core.esm44.js").then(e=>e.UserDetailsPanel);break;case AvailableComponents.CREATE_OR_UPDATE_TOKEN_PANEL:e=import("./js-core.esm45.js").then(e=>e.CreateOrUpdateApiTokenPanel);break;case AvailableComponents.FLOW_DETAILS_PANEL:e=import("./js-core.esm13.js").then(function(e){return e.i}).then(e=>e.App);break;case AvailableComponents.NODE_DETAILS_PANEL:e=import("./js-core.esm68.js").then(e=>e.NodeDetailsPanel);break;case AvailableComponents.PALETTE_DETAILS_PANEL:e=import("./js-core.esm68.js").then(e=>e.PaletteDetailsPanel);break;case AvailableComponents.CREATE_ORGANIZATION_PANEL:e=import("./js-core.esm67.js").then(e=>e.CreateOrgPanel);break;case AvailableComponents.CREATE_SCHEMA_PANEL:e=import("./js-core.esm68.js").then(e=>e.CreateSchemaPanel);break;case AvailableComponents.DATA_CENTER_DATA_DETAILS_PANEL:e=import("./js-core.esm69.js").then(e=>e.DataCenterDataDetails);break;case AvailableComponents.DATA_CENTER_SDO_VIEWER:e=import("./js-core.esm33.js").then(e=>e.StructuredDataViewer);break;case AvailableComponents.ADMIN_CENTER_APPROVAL_REQUESTS_PANEL:e=import("./js-core.esm46.js").then(e=>e.ApprovalRequestsPanel)}return yield registry[t]=e}),registerComponent=(e,t)=>{registry[e]=t},{store,init}=bootstrapSdk({registry:registry,registryLookup:registryLookup});window&&(window.aiWare_initTesting=()=>{window.aiWare_store=store,window.aiWare_theme={darkTheme:darkTheme$1,lightTheme:lightTheme$1}});export{IconButton$1 as $,AIWareIntlProvider as A,Box$1 as B,useLocation as C,DynamicModuleLoader as D,Button$1 as E,FormattedMessage$1 as F,useSearchParams as G,img$5 as H,StyledEngineProvider as I,Fade$1 as J,classNames as K,LinearProgress$1 as L,getAppbarPanelModule as M,LoadingButton$1 as N,authErrorMessage as O,Provider$2 as P,Grid$1 as Q,Routes as R,Switch$1 as S,Typography$1 as T,FormControl$1 as U,TextField$1 as V,resetPasswordRequest as W,InputLabel$1 as X,OutlinedInput$1 as Y,InputAdornment$1 as Z,_extends$5 as _,generateUtilityClasses as a,img$k as a$,Select$1 as a0,Location as a1,MenuItem$1 as a2,Divider$1 as a3,Popover$1 as a4,applicationSelector as a5,setUser as a6,logoutUser$1 as a7,all$2 as a8,Stack$4 as a9,createBox$1 as aA,createAction as aB,createReducer as aC,ENGINE_OWNER_TYPES as aD,ENGINE_FILTER_TYPES as aE,preferredLanguageSelector as aF,baseUrlSelector as aG,rootApiSelector as aH,sessionTokenSelector as aI,graphEndpointSelector as aJ,controllerNodeRedImageSelector as aK,controllerUrlSelector as aL,automateControllerUrlSelector as aM,flowCenterDialogSelector as aN,automateUrlSelector as aO,Portal$1 as aP,flowCenterDialogReducer as aQ,List$2 as aR,ListItem$1 as aS,ListItemIcon$1 as aT,ListItemText$1 as aU,flowCenterDialogAction as aV,img$q as aW,img$r as aX,img$t as aY,img$u as aZ,Tooltip$1 as a_,CheckmarkFilled as aa,Bullet as ab,takeEvery$1 as ac,select as ad,call$j as ae,put as af,showMessage as ag,MessageSeverity as ah,createTheme$1 as ai,systemStyled as aj,useThemeProps$1 as ak,useId as al,useControlled$1 as am,usePreviousProps$1 as an,useEventCallback as ao,setRef as ap,inputClasses$1 as aq,inputBaseClasses$1 as ar,outlinedInputClasses$1 as as,filledInputClasses$1 as at,Popper$1 as au,alpha as av,ListSubheader$1 as aw,ClearIcon as ax,ArrowDropDownIcon as ay,Chip$1 as az,styled$1 as b,_setPrototypeOf$A as b$,img$J as b0,Skeleton$1 as b1,takeLatest$1 as b2,fetchAllTags as b3,fetchFlows as b4,fetchTemplateGallery as b5,isRevisionsExistOnServerRequest as b6,FormLabel$1 as b7,default_1$e as b8,FormGroup$1 as b9,img$F as bA,DialogTitle$1 as bB,DialogContent$1 as bC,DialogActions$1 as bD,Snackbar$1 as bE,default_1$6 as bF,Search$1 as bG,img$l as bH,img$n as bI,img$X as bJ,Tabs$2 as bK,Tab$2 as bL,deleteEngine as bM,fetchEngine as bN,img$m as bO,AIWareFormatMessage as bP,FormattedDate as bQ,fetchVeritoneGraphQLApi as bR,useTheme as bS,KeyboardArrowRight as bT,KeyboardArrowLeft as bU,InputUnstyled as bV,isHostComponent as bW,getDefaultExportFromNamespaceIfNotNamed as bX,commonjsRequire as bY,_typeof$D as bZ,_assertThisInitialized$x as b_,FormControlLabel$1 as ba,Checkbox$1 as bb,fetchTemplateGalleryFallback as bc,Card$1 as bd,CardContent$1 as be,img$o as bf,CardActions$1 as bg,flowStyles as bh,NoResults as bi,CircularProgress$1 as bj,img$e as bk,Dialog$1 as bl,setApiEndpoint as bm,TableContainer$1 as bn,Table$1 as bo,TableHead$1 as bp,TableRow$1 as bq,TableCell$1 as br,TableSortLabel$1 as bs,TableBody$1 as bt,img$j as bu,default_1 as bv,ClickAwayListener as bw,img$v as bx,img$s as by,img$T as bz,Paper$1 as c,TabPanel as c$,reactDom as c0,Transition$1 as c1,_defineProperty$x as c2,__awaiter$g as c3,__generator$1 as c4,__spread as c5,React5 as c6,PropTypes as c7,TransitionGroup$1 as c8,connect$1 as c9,default_1$9 as cA,Controller as cB,FormHelperText$2 as cC,img$i as cD,ThemeProvider as cE,lightTheme$1 as cF,CssBaseline as cG,Hide as cH,has_1 as cI,Radio$2 as cJ,createSvgIcon$2 as cK,_createCompounder as cL,_toPropertyKey as cM,_inheritsLoose$3 as cN,hoistNonReactStatics_cjs as cO,commonjsGlobal$3 as cP,combineReducers as cQ,createSelector$1 as cR,fork as cS,statusPill as cT,AIWareThemeProvider$1 as cU,LocalizationProvider as cV,AdapterDateFns as cW,CalendarPicker as cX,Close$1 as cY,FullscreenExit as cZ,Fullscreen as c_,Bookmark as ca,EngineFlagIcons as cb,createAsyncThunk as cc,withStyles as cd,getConfigModule as ce,getAuthModule as cf,getSnackbarModule as cg,AIWareCacheProvider as ch,img$U as ci,img$g as cj,img$f as ck,isEmpty_1 as cl,find_1 as cm,Backdrop$1 as cn,getDefaultMiddleware as co,isNil_1 as cp,useForm as cq,UpDown as cr,Icon$1 as cs,get_1 as ct,map_1 as cu,keys_1 as cv,RadioGroup$1 as cw,Avatar$1 as cx,img$z as cy,baseGraphQLApi as cz,capitalize$2 as d,findIndex_1 as d$,ReactMarkdown as d0,default_1$8 as d1,unmountPanel$1 as d2,AvailableComponents as d3,DialogContentText$1 as d4,userSelector$2 as d5,MoreVert$1 as d6,Menu$1 as d7,Edit as d8,Upload as d9,isObject_1 as dA,_toKey as dB,_baseIteratee as dC,_baseToString as dD,_baseTrim as dE,_castSlice as dF,_stringToArray as dG,toString_1 as dH,upperFirst_1 as dI,_arrayMap as dJ,isArrayLike_1 as dK,isString_1 as dL,toInteger_1 as dM,_baseGet as dN,_baseSlice as dO,channel$3 as dP,useFormContext as dQ,useIntl as dR,useFieldArray as dS,VideoCamera as dT,Image$1 as dU,Sound as dV,Description as dW,toNumber_1 as dX,FormProvider as dY,ProgressStepper as dZ,size_1 as d_,Delete$1 as da,CustomTabs as db,mountPanel$1 as dc,hidePanel$1 as dd,delay$1 as de,useBackupImg as df,img$1C as dg,validate as dh,img$19 as di,VerifiedFilled as dj,Add as dk,ExpandLess$1 as dl,ExpandMore$1 as dm,Collapse$1 as dn,baseGraphQLApiWithError as dp,Filter$1 as dq,DynamicTable as dr,useTheme$3 as ds,getThemeProps as dt,useEnhancedEffect$3 as du,React as dv,_arrayPush as dw,isArray_1 as dx,_castPath as dy,_isIndex as dz,_objectWithoutPropertiesLoose$3 as e,ErrorBoundary$1 as e$,take as e0,CurlyBraces as e1,UnknownDocument as e2,VariableSizeList as e3,sdkEventManager as e4,SdkEvents as e5,SdkError as e6,distributionTypes as e7,EngineClassIcons as e8,Mode2 as e9,_Stack as eA,_baseFor as eB,identity_1 as eC,_isIterateeCall as eD,isSymbol_1 as eE,_baseMap as eF,_baseUnary as eG,_baseFindIndex as eH,_Set as eI,_setToArray as eJ,_SetCache as eK,_cacheHas as eL,img$Q as eM,img$P as eN,img$1y as eO,img$1x as eP,img$1w as eQ,img$N as eR,img$1A as eS,img$M as eT,authSelector as eU,emphasize as eV,useSlotProps as eW,_arraySome as eX,EntityType as eY,generateState as eZ,injectIntl as e_,EngineModeIcons as ea,DeploymentModelIcons as eb,markdown as ec,guid as ed,_arrayReduce as ee,_baseEach as ef,Engines as eg,ListItemAvatar$1 as eh,ApplicationTabIcon as ei,EditList as ej,ButtonBase$1 as ek,_Symbol as el,isArguments_1 as em,_arrayFilter as en,_getNative as eo,eq_1 as ep,_root as eq,_Uint8Array as er,_overArg as es,_isPrototype as et,isObjectLike_1 as eu,_baseGetTag as ev,_arrayLikeKeys as ew,isBuffer$5 as ex,isFunction_1 as ey,isTypedArray_1 as ez,clsx as f,PodcastSource as f$,EPermissionAction as f0,Process as f1,Information as f2,Download as f3,NewFolder as f4,SpecialFolder as f5,User as f6,DataRegistry as f7,Source as f8,Search$2 as f9,enginesFilter as fA,panelsSelector as fB,Badge$1 as fC,MoreHor as fD,convertEntityToAuthResource as fE,AutoSizer as fF,InfiniteLoader as fG,FixedSizeList as fH,selectUserOrgEdgeVersion as fI,EditAttributes as fJ,imageUpload as fK,gqlIntrospection as fL,ProcessingDetail as fM,img$y as fN,img$A as fO,img$6 as fP,FilterRemove as fQ,AlarmTwo as fR,tableInfiniteScroll as fS,CheckCircle as fT,FolderOpen as fU,Voice as fV,useDoubleClick as fW,FolderFilled as fX,Time as fY,img$B as fZ,Undefined as f_,selectIsOLPEnabled as fa,ListItemSecondaryAction$1 as fb,getLibraryModule as fc,cmsUrlSelector as fd,debounce_1 as fe,SearchStructuredData as ff,Grow$1 as fg,configSelector as fh,index as fi,betaFeaturesSelector as fj,actions$6 as fk,hasPermission as fl,UserAddFilled as fm,MenuList$1 as fn,MoveFolder as fo,EAuthResourceType as fp,Slide$1 as fq,img$c as fr,selectApiConfigs$2 as fs,selectPanelByPanelName as ft,FullScreenContainer as fu,EngineCategoryIcons as fv,isPermissionLoading as fw,Settings$3 as fx,Hamburger as fy,List as fz,generateUtilityClass as g,ArrowForward as g$,YoutubeSource as g0,TVSource as g1,RadioSource as g2,selectOrgId as g3,navSectionStyles as g4,PermissionsList as g5,selectIsUserAdmin as g6,AvatarGroup$1 as g7,index$1 as g8,ErrorState$2 as g9,useInterval as gA,Iam as gB,safeFormatMessage as gC,contextMenuStyles as gD,Users as gE,SecurityGroup as gF,Verified as gG,getOrganizationPanelModule as gH,Lock2 as gI,EApplicationConfigLevel as gJ,NoApps as gK,EApplicationConfigType as gL,green$1 as gM,md5 as gN,selectIsSuperAdmin as gO,organizations_selector as gP,actions$5 as gQ,AddUser as gR,Check as gS,Remove as gT,selectors as gU,LibraryDropdown as gV,Save as gW,Input$3 as gX,getElement as gY,client$1 as gZ,Copy as g_,Stepper$1 as ga,StepConnector$1 as gb,Step$1 as gc,StepLabel$1 as gd,isEqual_1 as ge,NullState$2 as gf,Group as gg,PermissionChangedAction as gh,PlaceholderElement as gi,Lock as gj,useOrganizationPermissions as gk,EAuthSubResourceType as gl,AddGroup as gm,initialConfigSelector as gn,EMessageTypes as go,errors as gp,ConfirmationModal as gq,panelComponents as gr,EnumHelpers as gs,formatBytes as gt,NotInterested as gu,mountPanelForResponse$1 as gv,default_1$a as gw,tableStyles as gx,ArrowDown as gy,ArrowUp as gz,composeClasses as h,init as h$,Modal$1 as h0,_getSymbols as h1,stubArray_1 as h2,_baseGetAllKeys as h3,_getTag as h4,_nodeUtil as h5,_getAllKeys as h6,_castFunction as h7,Slider$1 as h8,getDefaultExportFromCjs as h9,selectUserCanCreatePackage as hA,PackagesAvatar as hB,actionChannel as hC,cancelled as hD,flush$5 as hE,tableSearchComponents as hF,cancel as hG,FlowTemplate as hH,nested as hI,useTheme$1 as hJ,deepmerge as hK,Node as hL,Palette as hM,FlowCenter2 as hN,ArrowBack as hO,Schema$1 as hP,truncatedString as hQ,AiwareFrameLink as hR,EFrameLinkEvents as hS,Activity as hT,img$1 as hU,img$x as hV,AutomateNode as hW,Clear as hX,ExpandLess as hY,ExpandMore as hZ,store as h_,Article as ha,Task as hb,View as hc,isNumber_1 as hd,EngineIconsRenderer as he,FormattedRelativeTime$1 as hf,BottomQueue as hg,TopQueue as hh,Pause as hi,Cancel as hj,Folder as hk,Hidden as hl,dateRangeFilter as hm,statusFilter as hn,TableLoadingState as ho,setDuration as hp,resetDuration as hq,ButtonGroupContext$1 as hr,useSyncExternalStoreExports as hs,EngineComponentLoader as ht,EngineFieldType as hu,characterCountTextField as hv,createStack as hw,tabsClasses$1 as hx,Packages as hy,Resources$1 as hz,createSvgIcon$1 as i,registry as i0,registerComponent as i1,AvailableWidgets as i2,updatePanelMicroFrontendProps as i3,setData as i4,mountWidget as i5,jsxRuntime as j,interopRequireDefault as k,createSlice as l,makeStyles as m,Route as n,useDispatch as o,useSelector as p,authStatusSelector as q,react$1 as r,store$7 as s,authContextSelector as t,useThemeProps as u,AuthContext as v,lodash as w,Alert$1 as x,useNavigate as y,devErrorLogger as z};
|
|
1532
|
+
`),useStyles$2=makeStyles()(()=>({fullScreen:{position:"fixed",width:"100%",height:"100vh",top:"0",left:"0",backgroundColor:"#ffffff",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",textAlign:"center",fontSize:"14px",zIndex:99999,animation:fadeInOut+" 5s linear forwards"},loaderBox:{height:"200px",width:"200px"},veritoneDarkLogo:{height:"200px",width:"200px"}})),useStyles$1=makeStyles()(e=>({flexContainer:{display:"flex",alignItems:"center"},header:{alignItems:"center",display:"flex",justifyContent:"space-between",height:"55px",padding:e.spacing(6,0,6,6),borderBottom:"1px solid rgb(219, 226, 234)"},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end",paddingRight:"10px"},title:{color:"#2A323C"},panelRoot:{padding:"15px",height:"calc(100% - 70px);",overflowY:"scroll"},row:{display:"flex","& svg":{marginRight:"12px",marginBottom:"24px"}},widgets:{"& svg":{fill:"#555F7C"}},veriLogo:{transform:"translate(3px, 2px)"},versionText:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",marginBottom:"5px"},wrapperBox:{padding:"15px 0 15px 0px",marginBottom:"14px"},aiwareLogo:{marginBottom:"10px",marginTop:"10px",width:"151px"},boldTitle:{fontWeight:700},labelGrid:{padding:"2px",flexShrink:1},valueGrid:{padding:"2px",flexGrow:1},gridBox:{background:"#F7F7F7",height:"100%",padding:"10px",color:"#2A323C"},valueBox:{background:"#F7F7F7",height:"100%",padding:"10px",color:"#2A323C",textTransform:"capitalize"},imageContainer:{textAlign:"center"},falconLogo:{width:"148px"},osInfo:{display:"flex",justifyContent:"center","& *":{textAlign:"center"}},osName:{margin:"2px 0 6px","& p":{display:"inline-block",minWidth:"80px",padding:"5px 8px",background:"#465364",color:"white",textTransform:"uppercase",fontSize:"12px",fontWeight:"700",borderRadius:"4px"}},osVersion:{color:"#5C6269"}})),versionPanelLabels=e=>({closePanelTooltip:e.formatMessage({id:"version-panel.header.close-btn-tooltip",defaultMessage:[{type:0,value:"Close panel"}]}),versionInformationLabel:e.formatMessage({id:"version-panel.version-information-title",defaultMessage:[{type:0,value:"Version Information"}]}),versionLabel:e.formatMessage({id:"version-panel.version-title",defaultMessage:[{type:0,value:"Version"}]}),sdkVersionLabel:e.formatMessage({id:"version-panel.sdk-version-title",defaultMessage:[{type:0,value:"Sdk Version"}]}),viewReleaseNotes:e.formatMessage({id:"version-panel.view-release-notes",defaultMessage:[{type:0,value:"View Release Notes"}]}),noVersionInfo:e.formatMessage({id:"version-panel.no-info-label",defaultMessage:[{type:0,value:"Cannot get version information"}]}),clusterSizeLabel:e.formatMessage({id:"version-panel.cluster-size-label",defaultMessage:[{type:0,value:"Size"}]}),environmentLabel:e.formatMessage({id:"version-panel.environment-label",defaultMessage:[{type:0,value:"Environment"}]}),hostingTypeLabel:e.formatMessage({id:"version-panel.hosting-type-label",defaultMessage:[{type:0,value:"Hosting Type"}]}),infrastructureLabel:e.formatMessage({id:"version-panel.infrastructure-label",defaultMessage:[{type:0,value:"Infrastructure"}]})}),Header$1=()=>{const e=useDispatch();var t=useStyles$1()["classes"],n=useIntl(),{versionInformationLabel:n,closePanelTooltip:r}=versionPanelLabels(n);return jsxRuntime.exports.jsxs("header",Object.assign({className:t.header,"data-testid":"create-or-update-token-panel.header"},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1","data-testid":"version-panel-header-title",className:t.title},{children:n})),jsxRuntime.exports.jsx("div",Object.assign({className:t.headerActionContainer},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:r},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:()=>e(hidePanel$1(VERSION_PANEL)),"aria-labelledby":"version-panel.close-button","data-testid":"version-panel.close-button",size:"large"},{children:jsxRuntime.exports.jsx(Close$1,{})}))}))}))]}))},selectLoadingStatus=e=>{return null==(e=null==(e=null==e?void 0:e[PANEL_SLICE])?void 0:e[VERSION_PANEL_NAMESPACE])?void 0:e.status},selectCurrentVersion=e=>{return null==(e=null==(e=null==e?void 0:e[PANEL_SLICE])?void 0:e[VERSION_PANEL_NAMESPACE])?void 0:e.currentVersion},selectPreviousVersion=e=>{return null==(e=null==(e=null==e?void 0:e[PANEL_SLICE])?void 0:e[VERSION_PANEL_NAMESPACE])?void 0:e.previousVersion},selectPlatformProperties=e=>{return null==(e=null==(e=null==e?void 0:e[PANEL_SLICE])?void 0:e[VERSION_PANEL_NAMESPACE])?void 0:e.platformProperties},selectSelectedVersion=e=>{return null==(e=null==(e=null==e?void 0:e[PANEL_SLICE])?void 0:e[VERSION_PANEL_NAMESPACE])?void 0:e.selectedVersion},VERSION_PANEL="VERSION_PANEL",VersionChangelogNullState=({label:e})=>{var t=useStyles$1()["classes"];return jsxRuntime.exports.jsx(Box$1,Object.assign({className:t.gridBox,sx:{fontWeight:700,textAlign:"center",mb:"5px"},"data-test":"version-changelog-null-state"},{children:e}))},VersionPanelComponent=({sdk:e,edge:t,core:n})=>{const r=useStyles$1()["classes"];var i=useIntl();const o=useDispatch();var{versionLabel:i,viewReleaseNotes:a,noVersionInfo:s,clusterSizeLabel:l,environmentLabel:c,hostingTypeLabel:u,infrastructureLabel:d,sdkVersionLabel:p}=versionPanelLabels(i),f=useSelector(selectCurrentVersion),h=useSelector(selectPlatformProperties);const m=useSelector(selectLoadingStatus);var g={sdk:e,core:n,edge:null!=t&&t.includes("<Error>")?void 0:t},i=(react$1.exports.useEffect(()=>{["idle","failure"].includes(m)&&o(actions$1.fetchVersionInfoStart())},[o,m]),jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.osInfo},{children:jsxRuntime.exports.jsxs(Box$1,{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.osName},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{fontWeight:700}},{children:"Falcon"}))})),jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.osVersion},{children:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"caption","data-testid":"version-panel-version-info"},{children:[(null==f?void 0:f.version)&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[i," ",null==f?void 0:f.version]}),!(null!=f&&f.version)&&(null===g?void 0:g.sdk)&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[p," ",null===g?void 0:g.sdk]})]}))}))]})})));const y={Size:l,Environment:c,HostingType:u,Infrastructure:d};p=!!(e||t||n||h||f)&&["success","failure"].includes(m);return jsxRuntime.exports.jsxs(Box$1,{children:[jsxRuntime.exports.jsx(Header$1,{}),jsxRuntime.exports.jsxs("div",Object.assign({className:r.panelRoot},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.wrapperBox},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{p:"20px"}},{children:[p&&jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.imageContainer},{children:jsxRuntime.exports.jsx("img",{src:img$2,className:r.falconLogo,alt:"system-logo"})})),jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.imageContainer},{children:jsxRuntime.exports.jsx("img",{src:img$3,className:r.aiwareLogo,alt:"aiware-logo"})})),p&&i]})),p?jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0,sx:{mt:"10px"}},{children:h&&Object.entries(h).map(([e,t])=>y[e]&&jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:6,className:r.labelGrid},{children:jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.gridBox,sx:{fontWeight:700}},{children:[y[e],":"]}))})),jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:6,className:r.valueGrid},{children:jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.valueBox},{children:t}))}))]},e))})):jsxRuntime.exports.jsx(VersionChangelogNullState,{label:s})]})),jsxRuntime.exports.jsx(Button$1,Object.assign({sx:{width:"100%",cursor:"pointer"},variant:"outlined",onClick:()=>{o(mountPanel$1({panelId:"CHANGELOG_PANEL",microFrontend:{name:"CHANGELOG_PANEL",config:{}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"small",zIndex:1003,parentPanelId:VERSION_PANEL,dimmed:0,dimmedStatus:"dimParent",borderBottom:!0}}))},"data-test":"version-panel-release-notes-btn"},{children:a}))]}))]})},VersionPanel=e=>jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getPanelModule()]},{children:jsxRuntime.exports.jsx(VersionPanelComponent,Object.assign({},e))})),dateFormatter=e=>{e=new Date(e||"");return(8<e.getMonth()?e.getMonth()+1:"0"+(e.getMonth()+1))+"/"+(9<e.getDate()?e.getDate():"0"+e.getDate())+"/"+e.getFullYear()};let lottieScript,audio;const theme=createTheme({palette:{secondary:{main:"#1871E8"}}}),Logo_=()=>{const n=useDispatch();var e=useStyles$2()["classes"];const[r,i]=react$1.exports.useState(0),[t,o]=react$1.exports.useState(!1),[a,s]=react$1.exports.useState(!1),l=jsxRuntime.exports.jsx("p",Object.assign({style:{pointerEvents:"none"}},{children:"Loading Beta Features"})),[c,u]=react$1.exports.useState(l),d=useSelector(organizations_selector.selectOrgSwitchInitiated),p=useSelector(e=>{return null==(e=null==(e=null==e?void 0:e.configs)?void 0:e.initConfig)?void 0:e.betaFeatures}),[f,h]=react$1.exports.useState(!1),[m,g]=react$1.exports.useState(""),[y,$]=react$1.exports.useState(""),[v,x]=react$1.exports.useState(""),[b,C]=react$1.exports.useState(!1),S=useSelector(selectLoadingStatus);var w=useSelector(selectCurrentVersion);react$1.exports.useEffect(()=>{["idle","failure"].includes(S)&&n(actions$1.fetchVersionInfoStart())},[n,S]),react$1.exports.useEffect(()=>{f||(h(!0),(lottieScript=document.createElement("script")).setAttribute("src","https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.7.8/lottie.min.js"),lottieScript.onload=()=>s(!0),(audio=document.createElement("audio")).id="player",audio.src="https://static.veritone.com/aiware-js-animation/sound-effects/chime.wav",document.head.appendChild(lottieScript),document.body.appendChild(audio)),has_1(window,"aiware.version")&&((t=null==(t=window.aiware)?void 0:t.version)&&"sdk_release_version"!==t&&g(t),t=null==(t=window.aiware)?void 0:t.releaseDate,$(dateFormatter(t)));var t=document.getElementsByTagName("script");if(t.length){let e=Array.from(t).find(e=>e.src.includes("get.aiware.com"));(e=e||Array.from(t).find(e=>e.src.includes("https://cdn.jsdelivr.net/npm/aiware-js")))&&fetch(e.getAttribute("src")).then(e=>{g(e.url.split("@")[1].split("/")[0])})}fetch("https://get.aiware.com/aiware-versions/aiware-latest.txt",{headers:{"Content-Type":"text/plain"}}).then(e=>e.text()).then(e=>x(e))},[]),react$1.exports.useEffect(()=>{if(p&&!d)return;d&&u(jsxRuntime.exports.jsx("p",{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-organization-panel.organizations-switching-loader-message",defaultMessage:"Changing your Organization",description:"organizations switching loader message"})}));const e=10===r;if((e||d)&&(o(!0),a)){const t=window.bodymovin.loadAnimation({container:document.getElementById("loaderAnimation"),path:"https://static.veritone.com/aiware-js-animation/particle-explosion.json",renderer:"svg",loop:!1,autoplay:!0,name:"unicorn"});t.onComplete=()=>{e?(n(enableBetaFeatures()),i(0)):d&&u(l),o(!1),t.destroy()},null!==audio&&void 0!==audio&&audio.play()}},[r,p,n,t,d]);return jsxRuntime.exports.jsxs(react$1.exports.Fragment,{children:[t&&jsxRuntime.exports.jsxs("div",Object.assign({className:e.fullScreen},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:e.loaderBox,id:"loaderAnimation"},{children:!a&&jsxRuntime.exports.jsx("img",{src:img$7,alt:"veritone-logo",className:e.veritoneDarkLogo})})),jsxRuntime.exports.jsxs("div",Object.assign({className:e.loaderBox},{children:[jsxRuntime.exports.jsx(StyledEngineProvider,Object.assign({injectFirst:!0},{children:jsxRuntime.exports.jsx(ThemeProvider,Object.assign({theme:theme},{children:jsxRuntime.exports.jsx(LinearProgress$1,{color:"secondary"})}))})),c]}))]})),jsxRuntime.exports.jsxs("div",{children:[w?jsxRuntime.exports.jsxs(Typography$1,Object.assign({"data-test":"veritone-panel.logo.version",sx:{color:"#9CA8B4",fontSize:"10px",textAlign:"center",cursor:"pointer",width:"60px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},onClick:()=>{var e,t;b?(C(!1),n(hidePanel$1(VERSION_PANEL))):(C(!0),e={name:VERSION_PANEL,config:{name:"Version Information",sdk:m,sdkRelease:y,edge:v}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"small",zIndex:1001,dimmed:0,borderBottom:!0},n(mountPanel$1({panelId:VERSION_PANEL,microFrontend:e,panelConfig:t})))}},{children:["V. ",w.version]})):null,jsxRuntime.exports.jsx("img",{onClick:()=>i(r+1),src:img$D,alt:"footer-icon",draggable:"false"})]})]})},Logo=injectIntl(Logo_);function getTabAction(e,t,n,r="APP_BAR_PANEL"){return{type:mountPanel$1({}).type,payload:{panelId:e,microFrontend:{name:r,config:{name:"Veritone",tabId:e,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,fullScreen:!1,width:n,header:{divider:!0,title:t}}}}}const tabsListDefault=[{id:TabId.PERSONAL_PANEL,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.personalProfile",defaultMessage:"Personal Profile",description:"Tooltip pops on the sidebar for personal profile"}),iconComponent:jsxRuntime.exports.jsx(PersonalProfile$1,{}),role:"",action:getTabAction(TabId.PERSONAL_PANEL,jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.panelTitle.personalProfile",defaultMessage:"Personal Profile",description:"Header title for personal profile"}),410)},{id:TabId.ORGANIZATION_PANEL,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.organizations",defaultMessage:"Organizations",description:"Tooltip pops on the sidebar for organizations"}),iconComponent:jsxRuntime.exports.jsx(Organizations,{}),role:"",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.ORGANIZATION_PANEL,microFrontend:{name:"ORGANIZATION_PANEL"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,width:560,zIndex:1e3}}}},{id:TabId.CMS_SHORTCUT,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.dataCenter",defaultMessage:"Data Center",description:"Tooltip pops on the sidebar for data center"}),iconComponent:jsxRuntime.exports.jsx(DataCenter$1,{}),role:"cms",action:{type:"panels/OPEN_APP_SHORTCUT",payload:"cms"}},{id:TabId.DATA_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.dataCenter",defaultMessage:"Data Center",description:"Tooltip pops on the sidebar for data center"}),iconComponent:jsxRuntime.exports.jsx(DataCenter$1,{}),role:"cms",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.DATA_CENTER,microFrontend:{name:"DATA_CENTER"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xlarge",zIndex:1e3}}}},{id:TabId.PROCESSING_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.processingCenter",defaultMessage:"Processing Center",description:"Tooltip pops on the sidebar for processing center"}),iconComponent:jsxRuntime.exports.jsx(Process,{}),role:"cms",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.PROCESSING_CENTER,microFrontend:{name:"PROCESSING_CENTER"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xxlarge",zIndex:1e3}}}},{id:TabId.FLOW_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.flowCenter",defaultMessage:"Flow Center",description:"Tooltip pops on the sidebar for flow center"}),iconComponent:jsxRuntime.exports.jsx(FlowCenter2,{}),role:"automate",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.FLOW_CENTER,microFrontend:{name:"FLOW_CENTER",config:{name:"Veritone",tabId:TabId.FLOW_CENTER,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE",zIndex:1200}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xxlarge"}}}},{id:TabId.ENGINE_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.developerCenter",defaultMessage:"Developer Center",description:"Tooltip pops on the sidebar for developer center"}),iconComponent:jsxRuntime.exports.jsx(DeveloperCenter,{}),role:"cms",action:{type:"panels/OPEN_APP_SHORTCUT",payload:"developer"}},{id:TabId.MARKETPLACE_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.marketplaceCenter",defaultMessage:"Marketplace",description:"Tooltip pops on the sidebar for marketplace center"}),iconComponent:jsxRuntime.exports.jsx(Marketplace$1,{}),role:"cms",action:{type:"panels/OPEN_APP_SHORTCUT",payload:"marketplace"}},{id:TabId.LIBRARY_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.libraryCenter",defaultMessage:"Library Center",description:"Tooltip pops on the sidebar for library center"}),iconComponent:jsxRuntime.exports.jsx(LibraryCenter,{}),role:"",action:{type:"panels/OPEN_APP_SHORTCUT",payload:"libray"}},{id:TabId.ADMIN_SHORTCUT,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.adminCenter",defaultMessage:"Admin Center",description:"Tooltip pops on the sidebar for admin center"}),iconComponent:jsxRuntime.exports.jsx(AdminCenter,{}),role:"admin",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.ADMIN_SHORTCUT,microFrontend:{name:"ADMIN_CENTER"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xlarge",zIndex:1e3}}}},{id:TabId.INSTANCE_ADMIN_CENTER_BROWSE,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.instanceAdminCenter",defaultMessage:"Instance Admin Center",description:"Tooltip pops on the sidebar for instance admin center"}),iconComponent:jsxRuntime.exports.jsx(AdminTabIcon,{}),role:"admin",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.INSTANCE_ADMIN_CENTER_BROWSE,microFrontend:{name:"INSTANCE_ADMIN_CENTER_BROWSE"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xlarge",zIndex:1e3}}}},{id:TabId.RESOURCE_CENTER,label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-panel.tabItems.resourceCenter",defaultMessage:"Resource Center",description:"Tooltip pops on the sidebar for resource center"}),iconComponent:jsxRuntime.exports.jsx(Resources$1,{}),role:"",action:{type:mountPanel$1({}).type,payload:{panelId:TabId.RESOURCE_CENTER,microFrontend:{name:"RESOURCE_CENTER"},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xxlarge",zIndex:1e3}}}}];function AppbarTabPanel({panelId:t,children:e,withTab:r=!0,withChild:n=!0}){const i=useDispatch(),[o,a]=react$1.exports.useState(),[s,l]=react$1.exports.useState([]),[c,u]=react$1.exports.useState(!1);var d=useSelector(e=>e.panels.find(e=>e.panelId===t))||{};const p=useSelector(e=>e.panels);const{microFrontend:f,panelConfig:h}=d,{minWidth:m,padding:g=0,header:y,footer:$,marginTop:v=0,marginStart:x=0,show:b,tabs:C=[],zIndex:S=1e3,userRoles:w=[],panelId:_,size:T,fullScreen:E,width:j,dimmed:I=0,parentPanelId:R,borderBottom:O}=h||{};const A=R?("ORGANIZATION_PANEL"!==R?"":"solid 5px #4D81B7")||("DATA_CENTER"!==R?"":"solid 5px #4D81B7"):"solid 5px #4D81B7",k=makeStyles()(e=>{return{container:{position:"fixed",top:v,right:E?0:x,height:`calc(100vh - ${v}px)`,minWidth:m,width:j||(E?"100%":getTabPanelWidthBySize(T)||560),borderBottom:O?"solid 5px #4D81B7":A,zIndex:E?1500:S,transitionTimingFunction:"ease-in-out !important"},padding:{padding:e.spacing(g),paddingTop:e.spacing(g/2)},margin:{margin:e.spacing()},headerContainer:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},headerTitle:{margin:e.spacing(),marginTop:e.spacing(2)},actionButton:{margin:e.spacing()},footer:{},actionContainer:{"&:last-child":{marginRight:e.spacing(2)}},content:{overflow:"overlay",overflowX:"hidden",height:(t=y?64:0,n=$?64:0,`calc(100vh - ${v}px - ${t}px - ${n}px - 5px)`)},paperContainer:{top:56,backgroundColor:"unset !important",boxShadow:"none"},tabContainer:{overflow:"hidden",width:"100%"},tabSelect:{paddingTop:e.spacing(6),width:80,display:"flex",flexDirection:"column"},drawerContainer:{display:"flex",background:e.palette.background.default},tabName:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"61px",padding:e.spacing(0,4,0,6)},actionIcons:{margin:e.spacing(-2.4)},title:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e.palette.text.secondary},tabContent:{borderRight:r?"0.5px solid "+e.palette.divider:"none",overflowY:"auto",overflowX:"hidden",width:"100%"},buttonAction:{textTransform:"unset"},aiWareIcon:{padding:e.spacing(2.4,0),display:"flex",justifyContent:"center",position:"fixed",bottom:"0",right:"10px"},noShadow:{boxShadow:"none",borderLeft:"0.5px solid "+e.palette.divider},panelMask:{position:"absolute",zIndex:1150,width:"100%",height:"100%",backgroundColor:e.palette.grey[50],opacity:.5}};var t,n})()["classes"];react$1.exports.useEffect(()=>{0<C.length?l([...tabsListDefault,...C]):l(tabsListDefault)},[C]),react$1.exports.useEffect(()=>{var e;null!==f&&void 0!==f&&f.config&&null!=(e=f.config)&&e.tabId&&a(f.config.tabId)},[f]),react$1.exports.useEffect(()=>{0<p.length&&o&&r&&(p.find(e=>e.panelId===o)||a(void 0))},[p,o,r]);n=jsxRuntime.exports.jsxs(Paper$1,Object.assign({className:`${k.container} ${n?"":k.noShadow} `,elevation:3,id:t,square:!0,"data-test":"panel-"+(_||"unknown")},{children:[0<I&&jsxRuntime.exports.jsx("div",{className:k.panelMask}),jsxRuntime.exports.jsxs("div",Object.assign({className:k.drawerContainer},{children:[n&&jsxRuntime.exports.jsxs("div",Object.assign({className:k.tabContent},{children:[y&&jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:k.tabName},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:k.title},{children:y.title||(null==(d=s.find(e=>e.id===o))?void 0:d.label)})),jsxRuntime.exports.jsxs("div",Object.assign({className:k.actionIcons},{children:[null==(n=y.actions)?void 0:n.map(e=>e.label?jsxRuntime.exports.jsx(Button$1,Object.assign({size:e.size,variant:e.variant,onClick:()=>i(e.action)},{children:e.label}),e.action.type):jsxRuntime.exports.jsxs(IconButton$1,Object.assign({onClick:()=>i(e.action),size:"large"},{children:[e.iconUrl&&jsxRuntime.exports.jsx("img",{src:e.iconUrl,alt:"icon",draggable:"false"}),e.icon&&jsxRuntime.exports.jsx("div",{children:e.icon})]}),e.action.type)),jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:()=>i(hidePanel$1(t)),"data-test":"close-button-"+t,size:"large"},{children:jsxRuntime.exports.jsx("img",{src:R?img$W:img$X,alt:"icon",draggable:"false"})}))]}))]})),y.divider&&jsxRuntime.exports.jsx(Divider$1,{})]}),jsxRuntime.exports.jsx("div",Object.assign({className:k.content},{children:e?react$1.exports.cloneElement(e,Object.assign(Object.assign({},(null===f||void 0===f?void 0:f.config)||{}),{dataId:t,hidePanel:()=>i(hidePanel$1(t)),tabId:o,panelRendered:c})):jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"No micro frontend passed!"})})})),$&&jsxRuntime.exports.jsxs("div",Object.assign({className:k.footer},{children:[$.divider&&jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx("div",Object.assign({className:k.headerContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({className:k.actionContainer},{children:null==(d=$.actions)?void 0:d.map(e=>{var t;if(e.iconUrl)return jsxRuntime.exports.jsxs(IconButton$1,Object.assign({className:k.actionButton,onClick:(t=e.action,()=>{i(t)}),size:"large"},{children:[e.iconUrl&&jsxRuntime.exports.jsx("img",{src:e.iconUrl,alt:"icon",draggable:"false"}),e.icon&&jsxRuntime.exports.jsx("div",{children:e.icon})]}),e.action.type);const n=e;return jsxRuntime.exports.jsx(Button$1,Object.assign({className:k.actionButton,size:n.size,variant:n.variant,onClick:()=>i(n.action)},{children:n.label}),e.action.type)})}))}))]}))]})),r&&jsxRuntime.exports.jsxs("div",Object.assign({id:"tabs-content",className:k.tabSelect},{children:[jsxRuntime.exports.jsx(Tabs,{selectedId:o,tabsList:s,onChangeTab:function(t){0<=p.map(e=>e.panelId).indexOf(VERSION_PANEL)&&i(hidePanel$1(VERSION_PANEL)),o&&i(hidePanel$1(o)),a(t);var e,n=s.find(e=>e.id===t);null!=(e=null==n?void 0:n.onClick)&&e.call(n,t),null!=n&&n.action&&i(n.action)},roles:w}),(null===$||void 0===$?void 0:$.logo)&&jsxRuntime.exports.jsx("div",Object.assign({className:k.aiWareIcon},{children:jsxRuntime.exports.jsx(Logo,{})}))]}))]}))]}));return jsxRuntime.exports.jsx(AIWareThemeProvider$1,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getPanelModule()]},{children:jsxRuntime.exports.jsx(Slide$1,Object.assign({"data-id":"123456",in:b,direction:"left",onEntered:()=>u(!0),onExited:()=>i(unmountPanel$1(t))},{children:n}))}))})})}const AppbarPanel=e=>jsxRuntime.exports.jsx(AppbarTabPanel,Object.assign({},e,{withChild:!0,withTab:!1})),Tab=e=>jsxRuntime.exports.jsx(AppbarTabPanel,Object.assign({},e,{withChild:!1,withTab:!0})),changelogPanelLabels=e=>({changelog:e.formatMessage({id:"changelog-panel.header.title",defaultMessage:[{type:0,value:"Release Notes"}]}),closePanelTooltip:e.formatMessage({id:"changelog-panel.header.close-btn-tooltip",defaultMessage:[{type:0,value:"Close panel"}]}),versionLabel:e.formatMessage({id:"changelog-panel.version-title",defaultMessage:[{type:0,value:"Version"}]}),updateRequiredLabel:e.formatMessage({id:"changelog-panel.update-required",defaultMessage:[{type:0,value:"Update required"}]}),deploymentLabel:e.formatMessage({id:"changelog-panel.deployment",defaultMessage:[{type:0,value:"Deployment"}]}),apiUnavailable:e.formatMessage({id:"changelog-panel.no-api",defaultMessage:[{type:0,value:"Cannot retrieve platform information"}]}),current:e.formatMessage({id:"changelog-panel.current",defaultMessage:[{type:0,value:"Current"}]}),previous:e.formatMessage({id:"changelog-panel.previous",defaultMessage:[{type:0,value:"Previous"}]}),noHighlights:e.formatMessage({id:"changelog-panel.no-highlights",defaultMessage:[{type:0,value:"Cannot retrieve version highlights"}]}),unknown:e.formatMessage({id:"changelog-panel.unknown",defaultMessage:[{type:0,value:"unknown"}]}),viewReleaseNotes:e.formatMessage({id:"version-panel.view-release-notes",defaultMessage:[{type:0,value:"View Version History"}]}),error:e.formatMessage({id:"version-panel.error-state",defaultMessage:[{type:0,value:"Error while fetching release notes"}]}),errorHelperText:e.formatMessage({id:"version-panel.error-state-helper-text",defaultMessage:[{type:0,value:"Please try again later"}]}),"current-version":{label:e.formatMessage({id:"changelog-panel.current-version",defaultMessage:[{type:0,value:"Current Version"}]}),noVersionHighlights:e.formatMessage({id:"changelog-panel.no-current-version-highlights",defaultMessage:[{type:0,value:"No Release Notes for Current Version"}]})},"previous-version":{label:e.formatMessage({id:"changelog-panel.previous-version",defaultMessage:[{type:0,value:"Previous Version"}]}),noVersionHighlights:e.formatMessage({id:"changelog-panel.no-prev-version-highlights",defaultMessage:[{type:0,value:"No Release Notes for Previous Version"}]})},"selected-version":{label:null,noVersionHighlights:e.formatMessage({id:"changelog-panel.no-selected-version-highlights",defaultMessage:[{type:0,value:"No Release Notes for Selected Version"}]})}}),useStyles$5=makeStyles()(e=>({flexContainer:{display:"flex",alignItems:"center"},header:{alignItems:"center",display:"flex",justifyContent:"space-between",height:"55px",padding:e.spacing(6,0,6,6),borderBottom:"1px solid rgb(219, 226, 234)"},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end",paddingRight:"10px"},title:{color:"#2A323C"},panelRoot:{padding:"15px",height:"calc(100% - 70px);",overflowY:"scroll"},row:{display:"flex","& svg":{marginRight:"12px",marginBottom:"24px"}},widgets:{"& svg":{fill:"#555F7C"}},veriLogo:{transform:"translate(3px, 2px)"},versionText:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",marginBottom:"5px"},wrapperBox:{padding:"15px 0 15px 15px",border:".5px solid #D5DFE9",borderRadius:"4px",marginBottom:"14px","& iframe":{width:"100%",border:"none"}},aiwareLogo:{marginBottom:"10px"},boldTitle:{fontWeight:700},releaseNotesBtn:{width:"100%",cursor:"pointer",height:"36px",border:"1px solid #5C6269",color:"#5C6269",marginTop:"15px","&:hover":{border:"1px solid #5C6269"}},errorStateContainer:{padding:"40px",textAlign:"center","& img":{width:"40%",marginBottom:"20px"}}})),Header=()=>{const e=useDispatch();var t=useStyles$5()["classes"],n=useIntl(),{changelog:n,closePanelTooltip:r}=changelogPanelLabels(n);return jsxRuntime.exports.jsxs("header",Object.assign({className:t.header,"data-testid":"changelog-panel.header"},{children:[jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"h1","data-testid":"changelog-panel-title",className:t.title},{children:["AIWARE ",n]})),jsxRuntime.exports.jsx("div",Object.assign({className:t.headerActionContainer},{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:r},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:()=>e(hidePanel$1(CHANGELOG_PANEL)),"aria-labelledby":"changelog-panel.close-button","data-testid":"changelog-panel-close-button",size:"large"},{children:jsxRuntime.exports.jsx(Close$1,{})}))}))}))]}))},VersionHeader=({version:e,updateIsRequired:t})=>{var n=useStyles$5()["classes"],r=useIntl(),{versionLabel:r,updateRequiredLabel:i,deploymentLabel:o,unknown:a}=changelogPanelLabels(r);return jsxRuntime.exports.jsxs(Box$1,Object.assign({className:n.wrapperBox},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:n.flexContainer},{children:[jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"h1","data-test":"changelog-panel-header-title"},{children:[r," ",null!=e&&e.version?null==e?void 0:e.version:a]})),t?jsxRuntime.exports.jsxs(Typography$1,Object.assign({sx:{ml:"10px"},variant:"caption"},{children:["(",i,")"]})):null]})),jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{mt:"5px"}},{children:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2"},{children:[o," -"," ",e&&e.createdAt?dateFormatter((null==e?void 0:e.createdAt)||null):a]}))}))]}))},isValidHttpUrl=(e="")=>{let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol},VersionContent=({id:e,version:t,height:n})=>{var r=useStyles$5()["classes"],i=useIntl(),{[e]:{label:i,noVersionHighlights:o}}=changelogPanelLabels(i);return isValidHttpUrl(null==t?void 0:t.highlightsUrl)?jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.wrapperBox},{children:[t&&i&&jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",sx:{mb:"10px"}},{children:i})),jsxRuntime.exports.jsx("iframe",{id:e,title:e,src:null==t?void 0:t.highlightsUrl,height:n,onLoad:e=>{e.currentTarget.onerror=e=>console.log("ev",e)}})]})):jsxRuntime.exports.jsx(VersionChangelogNullState,{label:o})},CHANGELOG_PANEL="CHANGELOG_PANEL",RELEASE_NOTES_URL="https://docs.veritone.com/#/versions/readme",ChangelogPanelComponent=({id:t})=>{var e=useStyles$5()["classes"],n=useIntl(),{apiUnavailable:n,noHighlights:r,viewReleaseNotes:i,error:o,errorHelperText:a}=changelogPanelLabels(n);const s=useDispatch(),[l,c]=react$1.exports.useState(!1);var u=useSelector(selectLoadingStatus);const[d,p]=react$1.exports.useState({}),f=e=>{if("https://get.aiware.com"===e.origin){const{height:t,source:n}=e.data;p(e=>Object.assign(Object.assign({},e),{[n]:t+1}))}};react$1.exports.useEffect(()=>{var e=gqlIntrospection.getQueries().find(e=>"platformInfo"===e.name);return c(!!e),e&&s(actions.versionPanel.fetchVersionInfoStart(t)),window.addEventListener("message",f),()=>window.removeEventListener("message",f)},[s,t]);var h=useSelector(selectCurrentVersion),m=useSelector(selectPreviousVersion),g=useSelector(selectSelectedVersion),[y,,]=react$1.exports.useState(!1),$=jsxRuntime.exports.jsxs(Box$1,{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{display:"flex",flexDirection:"column",height:"100%"}},{children:[h&&!t?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(VersionHeader,{version:h,updateIsRequired:y}),jsxRuntime.exports.jsx(VersionContent,{id:"current-version",version:h,height:d[(null==($=null==h?void 0:h.highlightsUrl)?void 0:$.toString())||""]})]}):null,g&&t?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(VersionHeader,{version:g,updateIsRequired:y}),jsxRuntime.exports.jsx(VersionContent,{id:"selected-version",version:g,height:d[(null==($=null==g?void 0:g.highlightsUrl)?void 0:$.toString())||""]})]}):null]})),m&&!t?jsxRuntime.exports.jsx(VersionContent,{id:"previous-version",version:m,height:d[(null==(y=null==m?void 0:m.highlightsUrl)?void 0:y.toString())||""]}):null,!t&&!h&&!m&&jsxRuntime.exports.jsx(VersionChangelogNullState,{label:r}),t&&!g&&jsxRuntime.exports.jsx(VersionChangelogNullState,{label:r}),jsxRuntime.exports.jsxs(Button$1,Object.assign({className:e.releaseNotesBtn,variant:"outlined",onClick:()=>{window.open(RELEASE_NOTES_URL,"_blank")}},{children:[jsxRuntime.exports.jsx(Launch,{sx:{mr:"5px",width:"18px"}})," ",i]}))]}),y=jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.errorStateContainer},{children:[jsxRuntime.exports.jsx("img",{src:img$c,alt:"error"}),jsxRuntime.exports.jsx(Box$1,{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",sx:{fontWeight:700}},{children:o}))}),jsxRuntime.exports.jsx(Box$1,{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:a}))})]}));return jsxRuntime.exports.jsxs(Box$1,Object.assign({sx:{height:"calc(100vh - 60px)",overflow:"hidden"}},{children:[jsxRuntime.exports.jsx(Header,{}),"pending"===u&&jsxRuntime.exports.jsx(Box$1,Object.assign({sx:{p:"15px",display:"flex",justifyContent:"center"}},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),"success"===u&&jsxRuntime.exports.jsx("div",Object.assign({className:e.panelRoot},{children:l?$:jsxRuntime.exports.jsx(VersionChangelogNullState,{label:n})})),"failure"===u&&y]}))},ChangelogPanel=({id:e})=>jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getPanelModule()]},{children:jsxRuntime.exports.jsx(ChangelogPanelComponent,{id:e})}));var index_esm$1=Object.freeze({__proto__:null,AppbarPanel:AppbarPanel,AppbarTabPanel:AppbarTabPanel,ChangelogPanel:ChangelogPanel,TabPanel:Tab,VersionPanel:VersionPanel});const Panel=({panelId:t,children:e})=>{var n;const r=useDispatch(),{microFrontend:i,panelConfig:{minWidth:o,padding:a=0,header:s,footer:l,marginTop:c=0,marginStart:u=0,show:d,width:p=500,zIndex:f=1}}=useSelector(e=>e.panels.find(e=>e.panelId===t)),h=makeStyles()(e=>({container:{position:"fixed",top:c,right:u,height:"100%",minWidth:o,width:p,zIndex:f},padding:{padding:e.spacing(a),paddingTop:e.spacing(a/2)},margin:{margin:e.spacing()},headerContainer:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},headerTitle:{margin:e.spacing()},actionButton:{margin:e.spacing()},actionContainer:{"&:last-child":{marginRight:e.spacing(2)}},footer:{}}))()["classes"],m=e=>{var t;return e.icon?jsxRuntime.exports.jsx(IconButton$1,Object.assign({className:h.actionButton,onClick:()=>r(e.action),size:"large"},{children:e.icon})):(t=e,jsxRuntime.exports.jsx(Button$1,Object.assign({className:h.actionButton,size:t.size,variant:t.variant,onClick:()=>r(e.action)},{children:t.label})))};return jsxRuntime.exports.jsx(Slide$1,Object.assign({in:d,direction:"left",onExited:()=>r(unmountPanel$1(t))},{children:jsxRuntime.exports.jsxs(Paper$1,Object.assign({elevation:3,id:t,"data-test":"panel-"+(t||"unknown"),className:h.container},{children:[s&&jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:h.headerContainer},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({gutterBottom:!0,className:h.headerTitle,variant:"h4"},{children:s.title})),jsxRuntime.exports.jsxs("div",Object.assign({className:h.actionContainer},{children:[null==(n=s.actions)?void 0:n.map(e=>m(e)),jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"close-button-"+t,className:h.actionButton,onClick:()=>r(hidePanel$1(t)),size:"large"},{children:jsxRuntime.exports.jsx(default_1$6,{})}))]}))]})),s.divider&&jsxRuntime.exports.jsx(Divider$1,{})]}),jsxRuntime.exports.jsx("div",Object.assign({className:h.padding},{children:e?react$1.exports.cloneElement(e,Object.assign(Object.assign({},i.config||{}),{dataId:t,hidePanel:()=>r(hidePanel$1(t))})):jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"No micro frontend passed!"})})})),l&&jsxRuntime.exports.jsxs("div",Object.assign({className:h.footer},{children:[l.divider&&jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsxs("div",Object.assign({className:h.headerContainer},{children:[jsxRuntime.exports.jsx("div",{}),jsxRuntime.exports.jsx("div",Object.assign({className:h.actionContainer},{children:null==(n=l.actions)?void 0:n.map(e=>m(e))}))]}))]}))]}))}))},SamplePanel5=e=>jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"Welcome to SamplePanel5!"})}),SamplePanel4=e=>jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"Welcome to SamplePanel4!"})}),SamplePanel3=n=>{const r=useDispatch();return jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx("h1",{children:"Welcome to picker!"}),jsxRuntime.exports.jsx(Typography$1,Object.assign({id:"discrete-slider",gutterBottom:!0},{children:"Temperature"})),jsxRuntime.exports.jsx(Slider$1,{"data-test":"slider",defaultValue:n.value,value:n.value,"aria-labelledby":"discrete-slider",valueLabelDisplay:"auto",step:10,marks:!0,min:0,max:110,onChange:(e,t)=>{r(updatePanelMicroFrontendProps({id:n.dataId,props:Object.assign(Object.assign({},n),{value:t})}))},onChangeCommitted:(e,t)=>{r(updatePanelMicroFrontendProps({id:n.dataId,props:Object.assign(Object.assign({},n),{value:t})})),r(setData({id:n.dataId,data:t}))}})]})},SamplePanel2=e=>jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("h1",{children:"Welcome to SamplePanel2!"})}),useStyles=makeStyles()(e=>({container:{},root:{minWidth:50},bullet:{display:"inline-block",margin:"0 2px",transform:"scale(0.8)"},title:{fontSize:14},pos:{marginBottom:12}})),SamplePanel1=e=>{var t=useStyles()["classes"],n=jsxRuntime.exports.jsx("span",Object.assign({className:t.bullet},{children:"•"}));return jsxRuntime.exports.jsxs("div",Object.assign({className:t.container},{children:[jsxRuntime.exports.jsxs("h1",{children:["Welcome to SamplePanel1 ",e.name||"Unknown Person","!"]}),jsxRuntime.exports.jsxs(Card$1,Object.assign({className:t.root},{children:[jsxRuntime.exports.jsxs(CardContent$1,{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({className:t.title,color:"textSecondary",gutterBottom:!0},{children:"Word of the Day"})),jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"h5",component:"h2"},{children:["be",n,"nev",n,"o",n,"lent"]})),jsxRuntime.exports.jsx(Typography$1,Object.assign({className:t.pos,color:"textSecondary"},{children:"adjective"})),jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2",component:"p"},{children:["well meaning and kindly.",jsxRuntime.exports.jsx("br",{}),'"a benevolent smile"']}))]}),jsxRuntime.exports.jsx(CardActions$1,{children:jsxRuntime.exports.jsx(Button$1,Object.assign({size:"small"},{children:"Learn More"}))})]}))]}))};var match,version,set$1,get,store$4,STATE,$location,defer,channel,port,toggle,node,promise,then,queue,flush,notify$1,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,index_esm=Object.freeze({__proto__:null,Panel:Panel,SamplePanel1:SamplePanel1,SamplePanel2:SamplePanel2,SamplePanel3:SamplePanel3,SamplePanel4:SamplePanel4,SamplePanel5:SamplePanel5}),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math==Math&&e},global$f=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$a=function(e){try{return!!e()}catch(e){return!0}},fails$9=fails$a,descriptors=!fails$a(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$8=fails$a,functionBindNative=!fails$a(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$c=Function.prototype.call,functionCall=NATIVE_BIND$3?call$c.bind(call$c):function(){return call$c.apply(call$c,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$2&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$2=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$2(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,call$b=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$2&&FunctionPrototype$2.bind.bind(call$b,call$b),functionUncurryThis=NATIVE_BIND$2?uncurryThisWithBind:function(e){return function(){return call$b.apply(e,arguments)}},uncurryThis$d=functionUncurryThis,toString$1=uncurryThis$d({}.toString),stringSlice$1=uncurryThis$d("".slice),classofRaw$2=function(e){return stringSlice$1(toString$1(e),8,-1)},uncurryThis$c=functionUncurryThis,fails$7=fails$a,classof$4=classofRaw$2,$Object$3=Object,split=functionUncurryThis("".split),indexedObject=fails$7(function(){return!$Object$3("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$4(e)?split(e,""):$Object$3(e)}:$Object$3,isNullOrUndefined$4=function(e){return null==e},isNullOrUndefined$3=isNullOrUndefined$4,$TypeError$c=TypeError,requireObjectCoercible$2=function(e){if(isNullOrUndefined$3(e))throw $TypeError$c("Can't call method on "+e);return e},IndexedObject=indexedObject,requireObjectCoercible$1=requireObjectCoercible$2,toIndexedObject$3=function(e){return IndexedObject(requireObjectCoercible$1(e))},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$h=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},isCallable$g=isCallable$h,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$7=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$g(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$g(e)},global$e=global$f,isCallable$f=isCallable$h,aFunction=function(e){return isCallable$f(e)?e:void 0},getBuiltIn$7=function(e,t){return arguments.length<2?aFunction(global$e[e]):global$e[e]&&global$e[e][t]},uncurryThis$b=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$d=global$f,userAgent$3=engineUserAgent,process$4=global$d.process,Deno$1=global$d.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent$3.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION$1=engineV8Version,fails$6=fails$a,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$6(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$1=symbolConstructorDetection,useSymbolAsUid=symbolConstructorDetection&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$7,isCallable$e=isCallable$h,isPrototypeOf$2=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$2=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$e(t)&&isPrototypeOf$2(t.prototype,$Object$2(e))},$String$3=String,tryToString$4=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$d=isCallable$h,tryToString$3=tryToString$4,$TypeError$b=TypeError,aCallable$8=function(e){if(isCallable$d(e))return e;throw $TypeError$b(tryToString$3(e)+" is not a function")},aCallable$7=aCallable$8,isNullOrUndefined$2=isNullOrUndefined$4,getMethod$3=function(e,t){e=e[t];return isNullOrUndefined$2(e)?void 0:aCallable$7(e)},call$a=functionCall,isCallable$c=isCallable$h,isObject$6=isObject$7,$TypeError$a=TypeError,ordinaryToPrimitive$1=function(e,t){var n,r;if("string"===t&&isCallable$c(n=e.toString)&&!isObject$6(r=call$a(n,e)))return r;if(isCallable$c(n=e.valueOf)&&!isObject$6(r=call$a(n,e)))return r;if("string"!==t&&isCallable$c(n=e.toString)&&!isObject$6(r=call$a(n,e)))return r;throw $TypeError$a("Can't convert object to primitive value")},shared$3={exports:{}},global$c=global$f,defineProperty$3=Object.defineProperty,defineGlobalProperty$3=function(t,n){try{defineProperty$3(global$c,t,{value:n,configurable:!0,writable:!0})}catch(e){global$c[t]=n}return n},global$b=global$f,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$f[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible=((shared$3.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$2),$Object$1=Object,toObject$1=function(e){return $Object$1(requireObjectCoercible(e))},uncurryThis$a=functionUncurryThis,toObject=toObject$1,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject(e),t)},uncurryThis$9=functionUncurryThis,id=0,postfix=Math.random(),toString=uncurryThis$9(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString(++id+postfix,36)},global$a=global$f,shared$2=shared$3.exports,hasOwn$8=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$1=global$a.Symbol,WellKnownSymbolsStore=shared$2("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1.for||Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$a=function(e){return hasOwn$8(WellKnownSymbolsStore,e)||(WellKnownSymbolsStore[e]=NATIVE_SYMBOL&&hasOwn$8(Symbol$1,e)?Symbol$1[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},call$9=functionCall,isObject$5=isObject$7,isSymbol$1=isSymbol$2,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$9=wellKnownSymbol$a,$TypeError$9=TypeError,TO_PRIMITIVE=wellKnownSymbol$a("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$5(e)||isSymbol$1(e))return e;var n=getMethod$2(e,TO_PRIMITIVE);if(n){if(n=call$9(n,e,t=void 0===t?"default":t),!isObject$5(n)||isSymbol$1(n))return n;throw $TypeError$9("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$2=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$9=global$f,isObject$4=isObject$7,document$3=global$f.document,EXISTS$1=isObject$4(document$3)&&isObject$4(document$3.createElement),documentCreateElement=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$7=descriptors,fails$5=fails$a,createElement$1=documentCreateElement,ie8DomDefine=!descriptors&&!fails$a(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$6=descriptors,call$8=functionCall,propertyIsEnumerableModule=objectPropertyIsEnumerable,createPropertyDescriptor$1=createPropertyDescriptor$2,toIndexedObject$2=toIndexedObject$3,toPropertyKey$1=toPropertyKey$2,hasOwn$7=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$6?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$2(e),t=toPropertyKey$1(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$7(e,t))return createPropertyDescriptor$1(!call$8(propertyIsEnumerableModule.f,e,t),e[t])},{}),DESCRIPTORS$5=descriptors,fails$4=fails$a,v8PrototypeDefineBug=descriptors&&fails$a(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$3=isObject$7,$String$2=String,$TypeError$8=TypeError,anObject$8=function(e){if(isObject$3(e))return e;throw $TypeError$8($String$2(e)+" is not an object")},DESCRIPTORS$4=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,anObject$7=anObject$8,toPropertyKey=toPropertyKey$2,$TypeError$7=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$3=(objectDefineProperty.f=DESCRIPTORS$4?V8_PROTOTYPE_DEFINE_BUG?function(e,t,n){var r;return anObject$7(e),t=toPropertyKey(t),anObject$7(n),"function"==typeof e&&"prototype"===t&&"value"in n&&WRITABLE in n&&!n[WRITABLE]&&(r=$getOwnPropertyDescriptor(e,t))&&r[WRITABLE]&&(e[t]=n.value,n={configurable:(CONFIGURABLE$1 in n?n:r)[CONFIGURABLE$1],enumerable:(ENUMERABLE in n?n:r)[ENUMERABLE],writable:!1}),$defineProperty(e,t,n)}:$defineProperty:function(e,t,n){if(anObject$7(e),t=toPropertyKey(t),anObject$7(n),IE8_DOM_DEFINE)try{return $defineProperty(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $TypeError$7("Accessors not supported");return"value"in n&&(e[t]=n.value),e},descriptors),definePropertyModule$2=objectDefineProperty,createPropertyDescriptor=createPropertyDescriptor$2,createNonEnumerableProperty$2=DESCRIPTORS$3?function(e,t,n){return definePropertyModule$2.f(e,t,createPropertyDescriptor(1,n))}:function(e,t,n){return e[t]=n,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$2=descriptors,hasOwn$6=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$2&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$6(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$2||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$8=functionUncurryThis,isCallable$b=isCallable$h,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$3=(isCallable$b(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$8=global$f,isCallable$a=isCallable$h,WeakMap$1=global$f.WeakMap,weakMapBasicDetection=isCallable$a(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$1=shared$3.exports,uid=uid$2,keys=shared$1("keys"),sharedKey$1=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$3={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$7=global$f,isObject$2=isObject$7,createNonEnumerableProperty$1=createNonEnumerableProperty$2,hasOwn$5=hasOwnProperty_1,shared=sharedStore,sharedKey=sharedKey$1,hiddenKeys$2=hiddenKeys$3,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$2=global$7.TypeError,WeakMap$2=global$7.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$2(e)&&(e=get(e)).type===t)return e;throw TypeError$2("Incompatible receiver, "+t+" required")}},has=NATIVE_WEAK_MAP||shared.state?((store$4=shared.state||(shared.state=new WeakMap$2)).get=store$4.get,store$4.has=store$4.has,store$4.set=store$4.set,set$1=function(e,t){if(store$4.has(e))throw TypeError$2(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store$4.set(e,t),t},get=function(e){return store$4.get(e)||{}},function(e){return store$4.has(e)}):(STATE=sharedKey("state"),hiddenKeys$2[STATE]=!0,set$1=function(e,t){if(hasOwn$5(e,STATE))throw TypeError$2(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$1(e,STATE,t),t},get=function(e){return hasOwn$5(e,STATE)?e[STATE]:{}},function(e){return hasOwn$5(e,STATE)}),internalState={set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor},uncurryThis$7=functionUncurryThis,fails$3=fails$a,isCallable$9=isCallable$h,hasOwn$4=hasOwnProperty_1,DESCRIPTORS$1=descriptors,CONFIGURABLE_FUNCTION_NAME=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,InternalStateModule$1=internalState,enforceInternalState=InternalStateModule$1.enforce,getInternalState=InternalStateModule$1.get,$String$1=String,defineProperty$2=Object.defineProperty,stringSlice=uncurryThis$7("".slice),replace=uncurryThis$7("".replace),join=uncurryThis$7([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$1&&!fails$3(function(){return 8!==defineProperty$2(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,n){"Symbol("===stringSlice($String$1(t),0,7)&&(t="["+replace($String$1(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hasOwn$4(e,"name")||CONFIGURABLE_FUNCTION_NAME&&e.name!==t)&&(DESCRIPTORS$1?defineProperty$2(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&n&&hasOwn$4(n,"arity")&&e.length!==n.arity&&defineProperty$2(e,"length",{value:n.arity});try{n&&hasOwn$4(n,"constructor")&&n.constructor?DESCRIPTORS$1&&defineProperty$2(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}n=enforceInternalState(e);return hasOwn$4(n,"source")||(n.source=join(TEMPLATE,"string"==typeof t?t:"")),e},isCallable$8=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$9(this)&&getInternalState(this).source||inspectSource$2(this)},"toString"),isCallable$h),definePropertyModule$1=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$3=function(e,t,n,r){var i=(r=r||{}).enumerable,o=void 0!==r.name?r.name:t;if(isCallable$8(n)&&makeBuiltIn$1(n,o,r),r.global)i?e[t]=n:defineGlobalProperty$1(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:definePropertyModule$1.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$2=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$1=toIntegerOrInfinity$2,max=Math.max,min$1=Math.min,toAbsoluteIndex$1=function(e,t){e=toIntegerOrInfinity$1(e);return e<0?max(e+t,0):min$1(e,t)},toIntegerOrInfinity=toIntegerOrInfinity$2,min=Math.min,toLength$1=function(e){return 0<e?min(toIntegerOrInfinity(e),9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$2=function(e){return toLength(e.length)},toIndexedObject$1=toIndexedObject$3,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike$1=lengthOfArrayLike$2,createMethod=function(s){return function(e,t,n){var r,i=toIndexedObject$1(e),o=lengthOfArrayLike$1(i),a=toAbsoluteIndex(n,o);if(s&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}},arrayIncludes={includes:createMethod(!0),indexOf:createMethod(!1)},uncurryThis$6=functionUncurryThis,hasOwn$3=hasOwnProperty_1,toIndexedObject=toIndexedObject$3,indexOf=arrayIncludes.indexOf,hiddenKeys$1=hiddenKeys$3,push=uncurryThis$6([].push),objectKeysInternal=function(e,t){var n,r=toIndexedObject(e),i=0,o=[];for(n in r)!hasOwn$3(hiddenKeys$1,n)&&hasOwn$3(r,n)&&push(o,n);for(;t.length>i;)!hasOwn$3(r,n=t[i++])||~indexOf(o,n)||push(o,n);return o},enumBugKeys$1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys=objectKeysInternal,enumBugKeys=enumBugKeys$1,hiddenKeys=enumBugKeys$1.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys(e,hiddenKeys)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$7),uncurryThis$5=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,anObject$6=anObject$8,concat=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$6(e)),n=getOwnPropertySymbolsModule.f;return n?concat(t,n(e)):t},hasOwn$2=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule=objectDefineProperty,copyConstructorProperties$1=function(e,t,n){for(var r=ownKeys(t),i=definePropertyModule.f,o=getOwnPropertyDescriptorModule.f,a=0;a<r.length;a++){var s=r[a];hasOwn$2(e,s)||n&&hasOwn$2(n,s)||i(e,s,o(t,s))}},fails$2=fails$a,isCallable$7=isCallable$h,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$7(t)?fails$2(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,global$6=global$f,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty=createNonEnumerableProperty$2,defineBuiltIn$2=defineBuiltIn$3,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=copyConstructorProperties$1,isForced$1=isForced_1,_export=function(e,t){var n,r,i,o=e.target,a=e.global,s=e.stat,l=a?global$6:s?global$6[o]||defineGlobalProperty(o,{}):(global$6[o]||{}).prototype;if(l)for(n in t){if(r=t[n],i=e.dontCallGetSet?(i=getOwnPropertyDescriptor$1(l,n))&&i.value:l[n],!isForced$1(a?n:o+(s?".":"#")+n,e.forced)&&void 0!==i){if(typeof r==typeof i)continue;copyConstructorProperties(r,i)}(e.sham||i&&i.sham)&&createNonEnumerableProperty(r,"sham",!0),defineBuiltIn$2(l,n,r,e)}},classof$3=classofRaw$2,engineIsNode="undefined"!=typeof process&&"process"==classofRaw$2(process),uncurryThis$4=functionUncurryThis,aCallable$6=aCallable$8,functionUncurryThisAccessor=function(e,t,n){try{return uncurryThis$4(aCallable$6(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},isCallable$6=isCallable$h,$String=String,$TypeError$6=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$6(e))return e;throw $TypeError$6("Can't set "+$String(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$5=anObject$8,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=uncurryThisAccessor(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return anObject$5(e),aPossiblePrototype(t),r?n(e,t):e.__proto__=t,e}}():void 0),defineProperty$1=objectDefineProperty.f,hasOwn$1=hasOwnProperty_1,wellKnownSymbol$8=wellKnownSymbol$a,TO_STRING_TAG$2=wellKnownSymbol$a("toStringTag"),setToStringTag$1=function(e,t,n){(e=e&&!n?e.prototype:e)&&!hasOwn$1(e,TO_STRING_TAG$2)&&defineProperty$1(e,TO_STRING_TAG$2,{configurable:!0,value:t})},makeBuiltIn=makeBuiltIn$3.exports,defineProperty=objectDefineProperty,defineBuiltInAccessor$1=function(e,t,n){return n.get&&makeBuiltIn(n.get,t,{getter:!0}),n.set&&makeBuiltIn(n.set,t,{setter:!0}),defineProperty.f(e,t,n)},getBuiltIn$4=getBuiltIn$7,defineBuiltInAccessor=defineBuiltInAccessor$1,wellKnownSymbol$7=wellKnownSymbol$a,DESCRIPTORS=descriptors,SPECIES$2=wellKnownSymbol$a("species"),setSpecies$1=function(e){e=getBuiltIn$4(e);DESCRIPTORS&&e&&!e[SPECIES$2]&&defineBuiltInAccessor(e,SPECIES$2,{configurable:!0,get:function(){return this}})},isPrototypeOf$1=objectIsPrototypeOf,$TypeError$5=TypeError,anInstance$1=function(e,t){if(isPrototypeOf$1(t,e))return e;throw $TypeError$5("Incorrect invocation")},wellKnownSymbol$6=wellKnownSymbol$a,TO_STRING_TAG$1=wellKnownSymbol$a("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$1]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$5=isCallable$h,classofRaw$1=classofRaw$2,wellKnownSymbol$5=wellKnownSymbol$a,TO_STRING_TAG=wellKnownSymbol$a("toStringTag"),$Object=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw$1(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$2=TO_STRING_TAG_SUPPORT?classofRaw$1:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object(e),TO_STRING_TAG))?t:CORRECT_ARGUMENTS?classofRaw$1(e):"Object"==(t=classofRaw$1(e))&&isCallable$5(e.callee)?"Arguments":t},uncurryThis$3=functionUncurryThis,fails$1=fails$a,isCallable$4=isCallable$h,classof$1=classof$2,getBuiltIn$3=getBuiltIn$7,inspectSource$1=inspectSource$3,noop=function(){},empty=[],construct=getBuiltIn$7("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis$3(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$4(e))return!1;try{return construct(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$4(e))return!1;switch(classof$1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec(constructorRegExp,inspectSource$1(e))}catch(e){return!0}},isConstructor$1=(isConstructorLegacy.sham=!0,!construct||fails$1(function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){e=!0})||e})?isConstructorLegacy:isConstructorModern),isConstructor=isConstructor$1,tryToString$2=tryToString$4,$TypeError$4=TypeError,aConstructor$1=function(e){if(isConstructor(e))return e;throw $TypeError$4(tryToString$2(e)+" is not a constructor")},anObject$4=anObject$8,aConstructor=aConstructor$1,isNullOrUndefined$1=isNullOrUndefined$4,wellKnownSymbol$4=wellKnownSymbol$a,SPECIES$1=wellKnownSymbol$a("species"),speciesConstructor$1=function(e,t){var e=anObject$4(e).constructor;return void 0===e||isNullOrUndefined$1(e=anObject$4(e)[SPECIES$1])?t:aConstructor(e)},NATIVE_BIND$1=functionBindNative,FunctionPrototype=Function.prototype,apply$1=FunctionPrototype.apply,call$7=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$7.bind(apply$1):function(){return call$7.apply(apply$1,arguments)}),classofRaw=classofRaw$2,uncurryThis$2=functionUncurryThis,functionUncurryThisClause=function(e){if("Function"===classofRaw(e))return uncurryThis$2(e)},uncurryThis$1=functionUncurryThisClause,aCallable$5=aCallable$8,NATIVE_BIND=functionBindNative,bind$4=functionUncurryThisClause(functionUncurryThisClause.bind),functionBindContext=function(e,t){return aCallable$5(e),void 0===t?e:NATIVE_BIND?bind$4(e,t):function(){return e.apply(t,arguments)}},getBuiltIn$2=getBuiltIn$7,html$1=getBuiltIn$7("document","documentElement"),uncurryThis=functionUncurryThis,arraySlice$1=functionUncurryThis([].slice),$TypeError$3=TypeError,validateArgumentsLength$1=function(e,t){if(e<t)throw $TypeError$3("Not enough arguments");return e},userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$5=global$f,apply=functionApply,bind$3=functionBindContext,isCallable$3=isCallable$h,hasOwn=hasOwnProperty_1,fails=fails$a,html=html$1,arraySlice=arraySlice$1,createElement=documentCreateElement,validateArgumentsLength=validateArgumentsLength$1,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$5.setImmediate,clear=global$5.clearImmediate,process$3=global$5.process,Dispatch=global$5.Dispatch,Function$1=global$5.Function,MessageChannel$1=global$5.MessageChannel,String$1=global$5.String,counter=0,queue$2={},ONREADYSTATECHANGE="onreadystatechange",run=(fails(function(){$location=global$5.location}),function(e){var t;hasOwn(queue$2,e)&&(t=queue$2[e],delete queue$2[e],t())}),runner=function(e){return function(){run(e)}},eventListener=function(e){run(e.data)},globalPostMessageDefer=function(e){global$5.postMessage(String$1(e),$location.protocol+"//"+$location.host)},task$1=(set&&clear||(set=function(e){validateArgumentsLength(arguments.length,1);var t=isCallable$3(e)?e:Function$1(e),n=arraySlice(arguments,1);return queue$2[++counter]=function(){apply(t,void 0,n)},defer(counter),counter},clear=function(e){delete queue$2[e]},IS_NODE$3?defer=function(e){process$3.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel$1&&!IS_IOS$1?(port=(channel=new MessageChannel$1).port2,channel.port1.onmessage=eventListener,defer=bind$3(port.postMessage,port)):global$5.addEventListener&&isCallable$3(global$5.postMessage)&&!global$5.importScripts&&$location&&"file:"!==$location.protocol&&!fails(globalPostMessageDefer)?(defer=globalPostMessageDefer,global$5.addEventListener("message",eventListener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)}),{set:set,clear:clear}),Queue$2=function(){this.head=null,this.tail=null},queue$1=(Queue$2.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},Queue$2),userAgent$1=engineUserAgent,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&"undefined"!=typeof Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$4=global$f,bind$2=functionBindContext,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,Queue$1=queue$1,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$4.MutationObserver||global$4.WebKitMutationObserver,document$2=global$4.document,process$2=global$4.process,Promise$1=global$4.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor(global$4,"queueMicrotask"),microtask$1=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value,microtask_1=(microtask$1||(queue=new Queue$1,flush=function(){var e,t;for(IS_NODE$2&&(e=process$2.domain)&&e.exit();t=queue.get();)try{t()}catch(e){throw queue.head&¬ify$1(),e}e&&e.enter()},notify$1=IS_IOS||IS_NODE$2||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$2(promise.then,promise),function(){then(flush)}):IS_NODE$2?function(){process$2.nextTick(flush)}:(macrotask=bind$2(macrotask,global$4),function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),function(){node.data=toggle=!toggle}),microtask$1=function(e){queue.head||notify$1(),queue.add(e)}),microtask$1),hostReportErrors$1=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},perform$3=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},global$3=global$f,promiseNativeConstructor=global$f.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$1=engineIsNode,engineIsBrowser=!engineIsDeno&&!engineIsNode&&"object"==typeof window&&"object"==typeof document,global$2=global$f,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$2=isCallable$h,isForced=isForced_1,inspectSource=inspectSource$3,wellKnownSymbol$3=wellKnownSymbol$a,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,SPECIES=(NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,wellKnownSymbol$3("species")),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$2(global$2.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",function(){var e=inspectSource(NativePromiseConstructor$3),t=e!==String(NativePromiseConstructor$3);if(!t&&66===V8_VERSION)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){function n(e){e(function(){},function(){})}e=new NativePromiseConstructor$3(function(e){e(1)});if((e.constructor={})[SPECIES]=n,!(SUBCLASSING=e.then(function(){})instanceof n))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$4=aCallable$8,$TypeError$2=TypeError,PromiseCapability=function(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw $TypeError$2("Bad Promise constructor");n=e,r=t}),this.resolve=aCallable$4(n),this.reject=aCallable$4(r)},$$5=(newPromiseCapability$2.f=function(e){return new PromiseCapability(e)},_export),IS_NODE=engineIsNode,global$1=global$f,call$6=functionCall,defineBuiltIn$1=defineBuiltIn$3,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$1,setSpecies=setSpecies$1,aCallable$3=aCallable$8,isCallable$1=isCallable$h,isObject$1=isObject$7,anInstance=anInstance$1,speciesConstructor=speciesConstructor$1,task=task$1.set,microtask=microtask_1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue$1,InternalStateModule=internalState,NativePromiseConstructor$2=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule.getterFor(PROMISE),setInternalState=InternalStateModule.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$1=global$1.TypeError,document$1=global$1.document,process$1=global$1.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$1.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$1(e)||!isCallable$1(t=e.then))&&t},callReaction=function(e,t){var n,r,i,o=t.value,a=t.state==FULFILLED,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?n=o:(u&&u.enter(),n=s(o),u&&(u.exit(),i=!0)),n===e.promise?c(TypeError$1("Promise-chain cycle")):(r=isThenable(n))?call$6(r,n,l,c):l(n)):c(o)}catch(e){u&&!i&&u.exit(),c(e)}},notify=function(n,r){n.notified||(n.notified=!0,microtask(function(){for(var e,t=n.reactions;e=t.get();)callReaction(e,n);n.notified=!1,r&&!n.rejection&&onUnhandled(n)}))},dispatchEvent=function(e,t,n){var r;DISPATCH_EVENT?((r=document$1.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),global$1.dispatchEvent(r)):r={promise:t,reason:n},!NATIVE_PROMISE_REJECTION_EVENT&&(t=global$1["on"+e])?t(r):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",n)},onUnhandled=function(r){call$6(task,global$1,function(){var e=r.facade,t=r.value,n=isUnhandled(r);if(n&&(n=perform$2(function(){IS_NODE?process$1.emit("unhandledRejection",t,e):dispatchEvent(UNHANDLED_REJECTION,e,t)}),r.rejection=IS_NODE||isUnhandled(r)?UNHANDLED:HANDLED,n.error))throw n.value})},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(t){call$6(task,global$1,function(){var e=t.facade;IS_NODE?process$1.emit("rejectionHandled",e):dispatchEvent(REJECTION_HANDLED,e,t.value)})},bind$1=function(t,n,r){return function(e){t(n,e,r)}},internalReject=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw TypeError$1("Promise can't be resolved itself");var r=isThenable(e);r?microtask(function(){var t={done:!1};try{call$6(r,e,bind$1(internalResolve,t,n),bind$1(internalReject,t,n))}catch(e){internalReject(t,e,n)}}):(n.value=e,n.state=FULFILLED,notify(n,!1))}catch(e){internalReject({done:!1},e,n)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance(this,PromisePrototype),aCallable$3(e),call$6(Internal,this);var t=getInternalPromiseState(this);try{e(bind$1(internalResolve,t),bind$1(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$1(PromisePrototype,"then",function(e,t){var n=getInternalPromiseState(this),r=newPromiseCapability$1(speciesConstructor(this,PromiseConstructor));return n.parent=!0,r.ok=!isCallable$1(e)||e,r.fail=isCallable$1(t)&&t,r.domain=IS_NODE?process$1.domain:void 0,n.state==PENDING?n.reactions.add(r):microtask(function(){callReaction(r,n)}),r.promise}),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$1(internalResolve,t),this.reject=bind$1(internalReject,t)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},isCallable$1(NativePromiseConstructor$2))&&NativePromisePrototype$1!==Object.prototype){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$1(NativePromisePrototype$1,"then",function(e,t){var n=this;return new PromiseConstructor(function(e,t){call$6(nativeThen,n,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch(e){}setPrototypeOf&&setPrototypeOf(NativePromisePrototype$1,PromisePrototype)}$$5({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var iterators={},wellKnownSymbol$2=wellKnownSymbol$a,Iterators$1=iterators,ITERATOR$2=wellKnownSymbol$a("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$1=function(e){return void 0!==e&&(Iterators$1.Array===e||ArrayPrototype[ITERATOR$2]===e)},classof=classof$2,getMethod$1=getMethod$3,isNullOrUndefined=isNullOrUndefined$4,Iterators=iterators,wellKnownSymbol$1=wellKnownSymbol$a,ITERATOR$1=wellKnownSymbol$a("iterator"),getIteratorMethod$2=function(e){if(!isNullOrUndefined(e))return getMethod$1(e,ITERATOR$1)||getMethod$1(e,"@@iterator")||Iterators[classof(e)]},call$5=functionCall,aCallable$2=aCallable$8,anObject$3=anObject$8,tryToString$1=tryToString$4,getIteratorMethod$1=getIteratorMethod$2,$TypeError$1=TypeError,getIterator$1=function(e,t){var n=arguments.length<2?getIteratorMethod$1(e):t;if(aCallable$2(n))return anObject$3(call$5(n,e));throw $TypeError$1(tryToString$1(e)+" is not iterable")},call$4=functionCall,anObject$2=anObject$8,getMethod=getMethod$3,iteratorClose$1=function(e,t,n){var r,i;anObject$2(e);try{if(!(r=getMethod(e,"return"))){if("throw"===t)throw n;return n}r=call$4(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return anObject$2(r),n},bind=functionBindContext,call$3=functionCall,anObject$1=anObject$8,tryToString=tryToString$4,isArrayIteratorMethod=isArrayIteratorMethod$1,lengthOfArrayLike=lengthOfArrayLike$2,isPrototypeOf=objectIsPrototypeOf,getIterator=getIterator$1,getIteratorMethod=getIteratorMethod$2,iteratorClose=iteratorClose$1,$TypeError=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$2=function(e,t,n){function r(e){return o&&iteratorClose(o,"normal",e),new Result(!0,e)}function i(e){return p?(anObject$1(e),m?g(e[0],e[1],r):g(e[0],e[1])):m?g(e,r):g(e)}var o,a,s,l,c,u,d=n&&n.that,p=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),g=bind(t,d);if(f)o=e.iterator;else if(h)o=e;else{if(!(n=getIteratorMethod(e)))throw $TypeError(tryToString(e)+" is not iterable");if(isArrayIteratorMethod(n)){for(a=0,s=lengthOfArrayLike(e);a<s;a++)if((l=i(e[a]))&&isPrototypeOf(ResultPrototype,l))return l;return new Result(!1)}o=getIterator(e,n)}for(c=(f?e:o).next;!(u=call$3(c,o)).done;){try{l=i(u.value)}catch(e){iteratorClose(o,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf(ResultPrototype,l))return l}return new Result(!1)},wellKnownSymbol=wellKnownSymbol$a,ITERATOR=wellKnownSymbol$a("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(e){}var method,checkCorrectnessOfIteration$1=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var n=!1;try{var r={};r[ITERATOR]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},NativePromiseConstructor$1=promiseNativeConstructor,checkCorrectnessOfIteration=checkCorrectnessOfIteration$1,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration(function(e){NativePromiseConstructor$1.all(e).then(void 0,function(){})}),$$4=_export,call$2=functionCall,aCallable$1=aCallable$8,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration,$$3=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{all:function(e){var s=this,t=newPromiseCapabilityModule$2.f(s),l=t.resolve,c=t.reject,n=perform$1(function(){var r=aCallable$1(s.resolve),i=[],o=0,a=1;iterate$1(e,function(e){var t=o++,n=!1;a++,call$2(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a)||l(i)},c)}),--a||l(i)});return n.error&&c(n.value),t.promise}}),_export),FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$7,isCallable=isCallable$h,defineBuiltIn=defineBuiltIn$3,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,$$2=($$3({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable(NativePromiseConstructor)&&(method=getBuiltIn$1("Promise").prototype.catch,NativePromisePrototype.catch!==method)&&defineBuiltIn(NativePromisePrototype,"catch",method,{unsafe:!0}),_export),call$1=functionCall,aCallable=aCallable$8,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,$$1=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function(e){var n=this,r=newPromiseCapabilityModule$1.f(n),i=r.reject,t=perform(function(){var t=aCallable(n.resolve);iterate(e,function(e){call$1(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}}),_export),call=functionCall,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR,anObject=($$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return call(t.reject,void 0,e),t.promise}}),anObject$8),isObject=isObject$7,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(e,t){return anObject(e),isObject(t)&&t.constructor===e?t:((0,(e=newPromiseCapability.f(e)).resolve)(t),e.promise)},$=_export,getBuiltIn=getBuiltIn$7,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;function __awaiter(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}getBuiltIn("Promise"),$({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}});const registry={[AvailableWidgets.APP_BAR]:App,[AvailableComponents.APP_BAR_PANEL]:SettingPanelComponent,[AvailablePanels.APP_BAR_PANEL_TEMPLATE]:AppbarPanel,[AvailablePanels.TAB_TEMPLATE]:Tab,[AvailablePanels.SIMPLE_PANEL]:Panel},registryLookup=t=>__awaiter(void 0,void 0,void 0,function*(){if(registry[t])return yield registry[t];let e=Promise.resolve(null);switch(t){case AvailableWidgets.SAMPLE_APP_BAR:e=import("./js-core.esm2.js").then(e=>e.SampleAppBar);break;case AvailableWidgets.RESET_PASSWORD:e=import("./js-core.esm4.js").then(e=>e.ResetPassword);break;case AvailableWidgets.FLOW_CENTER:e=import("./js-core.esm11.js").then(e=>e.App);break;case AvailableWidgets.FLOW_WIDGET:e=import("./js-core.esm13.js").then(function(e){return e.i}).then(e=>e.App);break;case AvailableWidgets.ENGINE_CENTER_BROWSE:e=import("./js-core.esm20.js").then(e=>e.EngineCenterBrowse);break;case AvailableWidgets.MACHINE_BOX_BROWSE:e=import("./js-core.esm29.js").then(e=>e.MachineBoxBrowse);break;case AvailableWidgets.DEVELOPER_OVERVIEW:e=import("./js-core.esm22.js").then(e=>e.DeveloperOverview);break;case AvailablePanels.APP_BAR_TAB_PANEL_TEMPLATE:e=Promise.resolve().then(function(){return index_esm$1}).then(e=>e.AppbarTabPanel);break;case AvailableComponents.NOTIFICATION_PANEL:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationPanel);break;case AvailableComponents.NOTIFICATION_DETAIL:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationDetailPanel);break;case AvailableComponents.NOTIFICATION_SETTING:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationSetting);break;case AvailableComponents.NOTIFICATION_UTILITY:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationUtilityPanel);break;case AvailableComponents.NOTIFICATION_APPLICATION:e=Promise.resolve().then(function(){return index_esm$5}).then(e=>e.NotificationApplication);break;case AvailableComponents.HELP_PANEL:e=Promise.resolve().then(function(){return index_esm$3}).then(e=>e.HelpCenterPanel);break;case AvailableComponents.EDIT_PROFILE_PICTURE:e=Promise.resolve().then(function(){return index_esm$4}).then(e=>e.EditProFilePicture);break;case AvailableComponents.TEST_COMPONENT:e=Promise.resolve().then(function(){return index_esm}).then(e=>e.SamplePanel1);break;case AvailableComponents.TEST_COMPONENT2:e=Promise.resolve().then(function(){return index_esm}).then(e=>e.SamplePanel2);break;case AvailableComponents.TEST_COMPONENT3:e=Promise.resolve().then(function(){return index_esm}).then(e=>e.SamplePanel3);break;case AvailableComponents.SETTING_PREFERENCE:e=import("./js-core.esm30.js").then(e=>e.SettingsPreferencesPanel);break;case AvailableComponents.ORGANIZATION_PANEL:e=Promise.resolve().then(function(){return index_esm$2}).then(e=>e.OrganizationPanel);break;case AvailableComponents.INVITE_USERS_PANEL:e=Promise.resolve().then(function(){return index_esm$2}).then(e=>e.InviteUsersPanel);break;case AvailableComponents.INVITE_REQUESTS_PANEL:e=Promise.resolve().then(function(){return index_esm$2}).then(e=>e.InviteRequestsPanel);break;case AvailableComponents.REVIEW_ORG_INVITE_PANEL:e=Promise.resolve().then(function(){return index_esm$2}).then(e=>e.ReviewRequestPanel);break;case AvailableComponents.ADD_APPLICATIONS:e=Promise.resolve().then(function(){return index_esm$2}).then(e=>e.AddApplicationsPanel);break;case AvailableComponents.DATA_CENTER:e=import("./js-core.esm31.js").then(function(e){return e.c}).then(e=>e.DataCenterBrowse);break;case AvailableComponents.DATA_CENTER_FOLDERS_AND_FILES:e=import("./js-core.esm31.js").then(function(e){return e.c}).then(e=>e.FoldersAndFilesPanel);break;case AvailableComponents.DATA_CENTER_FILE_INFO_PANEL:e=import("./js-core.esm31.js").then(function(e){return e.c}).then(e=>e.FileInfoPanel);break;case AvailableComponents.DATA_CENTER_EDIT_METADATA_PANEL:e=import("./js-core.esm31.js").then(function(e){return e.c}).then(e=>e.EditMetadataPanel);break;case AvailableComponents.DATA_CENTER_IMPORTER:e=import("./js-core.esm37.js").then(e=>e.DataCenterImporter);break;case AvailableComponents.DATA_LABELER:e=import("./js-core.esm38.js").then(e=>e.DataLabelerPanel);break;case AvailableComponents.ADMIN_CENTER_OPEN_ID:e=import("./js-core.esm39.js").then(e=>e.AdminCenterOpenId);break;case AvailableComponents.ADMIN_CENTER:e=import("./js-core.esm42.js").then(e=>e.AdminCenterBrowse);break;case AvailableComponents.DATA_CENTER_PROCESS_AI:e=import("./js-core.esm48.js").then(e=>e.DataCenterProcessAI);break;case AvailableComponents.ENGINE_CENTER_NEW:e=import("./js-core.esm21.js").then(function(e){return e.h}).then(e=>e.EngineCenterNew);break;case AvailableComponents.ENGINE_CENTER_FILTER:e=import("./js-core.esm20.js").then(e=>e.EngineCenterFilter);break;case AvailableComponents.APP_CENTER_FILTER:e=import("./js-core.esm49.js").then(e=>e.AppCenterFilter);break;case AvailableComponents.ENGINE_CENTER_DETAILS:e=import("./js-core.esm20.js").then(e=>e.EngineDetails);break;case AvailableComponents.ENGINE_CENTER_NEW_BUILD:e=import("./js-core.esm20.js").then(e=>e.CreateNewBuildPanel);break;case AvailableComponents.ENGINE_CENTER_CUSTOM_FIELDS_FORM:e=import("./js-core.esm21.js").then(function(e){return e.h}).then(e=>e.EngineCenterCustomFieldsForm);break;case AvailableComponents.ENGINE_CENTER_SCHEMAS_FORM_PANEL:e=import("./js-core.esm21.js").then(function(e){return e.h}).then(e=>e.SchemasFormPanel);break;case AvailableComponents.ENGINE_CENTER_INPUT_TYPE_FLYOUT:e=import("./js-core.esm21.js").then(function(e){return e.h}).then(e=>e.InputTypeFlyout);break;case AvailableComponents.ENGINE_CENTER_EDIT_RELEASE_NOTES:e=import("./js-core.esm20.js").then(e=>e.EditReleaseNotes);break;case AvailableComponents.ENGINE_CENTER_VERSION_HISTORY_PANEL:e=import("./js-core.esm20.js").then(e=>e.VersionHistoryPanel);break;case AvailableComponents.SUPPORTED_FILE_TYPES:e=import("./js-core.esm37.js").then(e=>e.SupportedFileTypes);break;case AvailableComponents.EDIT_FILE_METADATA:e=import("./js-core.esm37.js").then(e=>e.EditFileMetadata);break;case AvailableWidgets.APP_CENTER_BROWSE:e=import("./js-core.esm49.js").then(e=>e.AppCenterBrowse);break;case AvailableComponents.APP_CENTER_NEW:e=import("./js-core.esm50.js").then(e=>e.AppCenterNew);break;case AvailableComponents.APP_CENTER_CONFIG_FIELDS_FORM:e=import("./js-core.esm50.js").then(e=>e.AppCenterConfigFieldsForm);break;case AvailableComponents.APP_CENTER_CONTEXT_MENU_EXTENSIONS:e=import("./js-core.esm50.js").then(e=>e.AppCenterContextMenuExtensionPanel);break;case AvailableComponents.APP_CENTER_APP_ROLES:e=import("./js-core.esm50.js").then(e=>e.AppCenterAppRolesPanel);break;case AvailableComponents.APP_CENTER_BROWSE:e=import("./js-core.esm49.js").then(e=>e.AppCenterBrowse);break;case AvailableComponents.APP_CENTER_DETAILS:e=import("./js-core.esm49.js").then(e=>e.AppCenterDetails);break;case AvailableComponents.DATA_CENTER_ENGINE_SELECTION:e=import("./js-core.esm48.js").then(e=>e.DataCenterEngineSelection);break;case AvailableComponents.ADMIN_CENTER_NEW_GROUP_PANEL:e=import("./js-core.esm36.js").then(e=>e.NewGroupPanel);break;case AvailableComponents.PERMISSIONS_PANEL:e=import("./js-core.esm32.js").then(e=>e.PermissionsPanel);break;case AvailableComponents.GROUP_INFO_PANEL:e=import("./js-core.esm32.js").then(e=>e.GroupInfoPanel);break;case AvailableComponents.NEW_PERMISSION_SET_PANEL:e=import("./js-core.esm32.js").then(e=>e.NewPermissionSetPanel);break;case AvailableComponents.PERMISSION_SET_DETAILS_PANEL:e=import("./js-core.esm32.js").then(e=>e.PermissionSetDetailsPanel);break;case AvailableComponents.DATA_CENTER_MDP_IFRAME_PANEL:e=import("./js-core.esm31.js").then(function(e){return e.c}).then(e=>e.MediaDetailsPanelIframe);break;case AvailableComponents.DATA_CENTER_INGESTION_CREATION_PANEL:e=import("./js-core.esm31.js").then(function(e){return e.c}).then(e=>e.IngestionCreationPanel);break;case AvailableComponents.DATA_CENTER_SELECT_IMPORT_SOURCE:e=import("./js-core.esm31.js").then(function(e){return e.c}).then(e=>e.SelectImportSource);break;case AvailableComponents.DATA_CENTER_SOURCE_CREATION_PANEL:e=import("./js-core.esm31.js").then(function(e){return e.c}).then(e=>e.SourceCreationPanel);break;case AvailableComponents.ADMIN_CENTER_GROUP_DETAILS_PANEL:e=import("./js-core.esm36.js").then(e=>e.GroupDetailsPanel);break;case AvailableComponents.ADMIN_CENTER_ADD_MEMBER_PANEL:e=import("./js-core.esm36.js").then(e=>e.AddMemberPanel);break;case AvailableComponents.APPLICATION_DETAILS_PANEL:e=import("./js-core.esm43.js").then(e=>e.ApplicationDetailsPanel);break;case AvailableComponents.PROCESSING_CENTER_SOURCES:e=import("./js-core.esm51.js").then(e=>e.ProcessingCenterSources);break;case AvailableComponents.PROCESSING_CENTER_ERROR_DETAIL:e=import("./js-core.esm51.js").then(e=>e.ErrorDetailPanel);break;case AvailableComponents.USER_APPLICATION_SETTINGS_PANEL:e=Promise.resolve().then(function(){return index_esm$6}).then(e=>e.UserApplicationSettingsPanel);break;case AvailableComponents.ADD_APPLICATION_USERS_PANEL:e=import("./js-core.esm43.js").then(e=>e.AddUsersPanel);break;case AvailableComponents.PROCESSING_CENTER:e=import("./js-core.esm53.js").then(e=>e.ProcessingCenterBrowse);break;case AvailableComponents.JOBS_TABLE_SETTINGS_PANEL:e=import("./js-core.esm54.js").then(e=>e.JobsTableSettingsPanel);break;case AvailableComponents.VERSION_PANEL:e=Promise.resolve().then(function(){return index_esm$1}).then(e=>e.VersionPanel);break;case AvailableComponents.CHANGELOG_PANEL:e=Promise.resolve().then(function(){return index_esm$1}).then(e=>e.ChangelogPanel);break;case AvailableComponents.PROCESSING_CENTER_DAG_BUILDER:e=import("./js-core.esm56.js").then(e=>e.DagBuilder);break;case AvailableComponents.PROCESSING_CENTER_INGESTION:e=import("./js-core.esm58.js").then(function(e){return e.au}).then(e=>e.ProcessingCenterIngestion);break;case AvailableComponents.PROCESSING_CENTER_ADVANCED_SETTINGS:e=import("./js-core.esm58.js").then(function(e){return e.au}).then(e=>e.ProcessingCenterAdvancedSettings);break;case AvailableComponents.PROCESSING_CENTER_AFFILIATE_PANEL:e=import("./js-core.esm58.js").then(function(e){return e.au}).then(e=>e.ProcessingCenterAffiliatePanel);break;case AvailableComponents.JOBS_DETAILS_PANEL:e=import("./js-core.esm54.js").then(e=>e.JobsDetailsPanel);break;case AvailableComponents.TASKS_TABLE_SETTINGS_PANEL:e=import("./js-core.esm55.js").then(e=>e.TasksTableSettingsPanel);break;case AvailableComponents.TASK_DETAILS_PANEL:e=import("./js-core.esm55.js").then(e=>e.TaskDetailsPanel);break;case AvailableComponents.RESOURCE_CENTER:e=import("./js-core.esm60.js").then(e=>e.ResourceCenterBrowse);break;case AvailableComponents.PACKAGE_DETAILS_PANEL:e=import("./js-core.esm64.js").then(e=>e.PackageDetails);break;case AvailableComponents.PACKAGE_MANAGER_PANEL:e=import("./js-core.esm65.js").then(function(e){return e.aa}).then(e=>e.PackageManager);break;case AvailableComponents.INSTANCE_ADMIN_CENTER_BROWSE:e=import("./js-core.esm66.js").then(e=>e.InstanceAdminCenterBrowse);break;case AvailableComponents.MANAGE_GRANTS:e=import("./js-core.esm64.js").then(e=>e.ManageGrantsPanel);break;case AvailableComponents.SCHEMA_DETAILS_PANEL:e=import("./js-core.esm68.js").then(e=>e.SchemaDetailsPanel);break;case AvailableComponents.FLOW_TEMPLATE_DETAILS_PANEL:e=import("./js-core.esm68.js").then(e=>e.TemplateDetailsPanel);break;case AvailableComponents.USER_DETAILS_PANEL:e=import("./js-core.esm44.js").then(e=>e.UserDetailsPanel);break;case AvailableComponents.CREATE_OR_UPDATE_TOKEN_PANEL:e=import("./js-core.esm45.js").then(e=>e.CreateOrUpdateApiTokenPanel);break;case AvailableComponents.FLOW_DETAILS_PANEL:e=import("./js-core.esm13.js").then(function(e){return e.i}).then(e=>e.App);break;case AvailableComponents.NODE_DETAILS_PANEL:e=import("./js-core.esm68.js").then(e=>e.NodeDetailsPanel);break;case AvailableComponents.PALETTE_DETAILS_PANEL:e=import("./js-core.esm68.js").then(e=>e.PaletteDetailsPanel);break;case AvailableComponents.CREATE_ORGANIZATION_PANEL:e=import("./js-core.esm67.js").then(e=>e.CreateOrgPanel);break;case AvailableComponents.CREATE_SCHEMA_PANEL:e=import("./js-core.esm68.js").then(e=>e.CreateSchemaPanel);break;case AvailableComponents.DATA_CENTER_DATA_DETAILS_PANEL:e=import("./js-core.esm69.js").then(e=>e.DataCenterDataDetails);break;case AvailableComponents.DATA_CENTER_SDO_VIEWER:e=import("./js-core.esm33.js").then(e=>e.StructuredDataViewer);break;case AvailableComponents.ADMIN_CENTER_APPROVAL_REQUESTS_PANEL:e=import("./js-core.esm46.js").then(e=>e.ApprovalRequestsPanel)}return yield registry[t]=e}),registerComponent=(e,t)=>{registry[e]=t},{store,init}=bootstrapSdk({registry:registry,registryLookup:registryLookup});window&&(window.aiWare_initTesting=()=>{window.aiWare_store=store,window.aiWare_theme={darkTheme:darkTheme$1,lightTheme:lightTheme$1}});export{IconButton$1 as $,AIWareIntlProvider as A,Box$1 as B,useLocation as C,DynamicModuleLoader as D,Button$1 as E,FormattedMessage$1 as F,useSearchParams as G,img$5 as H,StyledEngineProvider as I,Fade$1 as J,classNames as K,LinearProgress$1 as L,getAppbarPanelModule as M,LoadingButton$1 as N,authErrorMessage as O,Provider$2 as P,Grid$1 as Q,Routes as R,Switch$1 as S,Typography$1 as T,FormControl$1 as U,TextField$1 as V,resetPasswordRequest as W,InputLabel$1 as X,OutlinedInput$1 as Y,InputAdornment$1 as Z,_extends$5 as _,generateUtilityClasses as a,img$k as a$,Select$1 as a0,Location as a1,MenuItem$1 as a2,Divider$1 as a3,Popover$1 as a4,applicationSelector as a5,setUser as a6,logoutUser$1 as a7,all$2 as a8,Stack$4 as a9,createBox$1 as aA,createAction as aB,createReducer as aC,ENGINE_OWNER_TYPES as aD,ENGINE_FILTER_TYPES as aE,preferredLanguageSelector as aF,baseUrlSelector as aG,rootApiSelector as aH,sessionTokenSelector as aI,graphEndpointSelector as aJ,controllerNodeRedImageSelector as aK,controllerUrlSelector as aL,automateControllerUrlSelector as aM,flowCenterDialogSelector as aN,automateUrlSelector as aO,Portal$1 as aP,flowCenterDialogReducer as aQ,List$2 as aR,ListItem$1 as aS,ListItemIcon$1 as aT,ListItemText$1 as aU,flowCenterDialogAction as aV,img$q as aW,img$r as aX,img$t as aY,img$u as aZ,Tooltip$1 as a_,CheckmarkFilled as aa,Bullet as ab,takeEvery$1 as ac,select as ad,call$j as ae,put as af,showMessage as ag,MessageSeverity as ah,createTheme$1 as ai,systemStyled as aj,useThemeProps$1 as ak,useId as al,useControlled$1 as am,usePreviousProps$1 as an,useEventCallback as ao,setRef as ap,inputClasses$1 as aq,inputBaseClasses$1 as ar,outlinedInputClasses$1 as as,filledInputClasses$1 as at,Popper$1 as au,alpha as av,ListSubheader$1 as aw,ClearIcon as ax,ArrowDropDownIcon as ay,Chip$1 as az,styled$1 as b,_setPrototypeOf$A as b$,img$J as b0,Skeleton$1 as b1,takeLatest$1 as b2,fetchAllTags as b3,fetchFlows as b4,fetchTemplateGallery as b5,isRevisionsExistOnServerRequest as b6,FormLabel$1 as b7,default_1$e as b8,FormGroup$1 as b9,img$F as bA,DialogTitle$1 as bB,DialogContent$1 as bC,DialogActions$1 as bD,Snackbar$1 as bE,default_1$6 as bF,Search$1 as bG,img$l as bH,img$n as bI,img$X as bJ,Tabs$2 as bK,Tab$2 as bL,deleteEngine as bM,fetchEngine as bN,img$m as bO,AIWareFormatMessage as bP,FormattedDate as bQ,fetchVeritoneGraphQLApi as bR,useTheme as bS,KeyboardArrowRight as bT,KeyboardArrowLeft as bU,InputUnstyled as bV,isHostComponent as bW,getDefaultExportFromNamespaceIfNotNamed as bX,commonjsRequire as bY,_typeof$D as bZ,_assertThisInitialized$x as b_,FormControlLabel$1 as ba,Checkbox$1 as bb,fetchTemplateGalleryFallback as bc,Card$1 as bd,CardContent$1 as be,img$o as bf,CardActions$1 as bg,flowStyles as bh,NoResults as bi,TableContainer$1 as bj,Table$1 as bk,TableHead$1 as bl,TableBody$1 as bm,CircularProgress$1 as bn,img$e as bo,Dialog$1 as bp,setApiEndpoint as bq,TableRow$1 as br,TableCell$1 as bs,TableSortLabel$1 as bt,img$j as bu,default_1 as bv,ClickAwayListener as bw,img$v as bx,img$s as by,img$T as bz,Paper$1 as c,TabPanel as c$,reactDom as c0,Transition$1 as c1,_defineProperty$x as c2,__awaiter$g as c3,__generator$1 as c4,__spread as c5,React5 as c6,PropTypes as c7,TransitionGroup$1 as c8,connect$1 as c9,default_1$9 as cA,Controller as cB,FormHelperText$2 as cC,img$i as cD,ThemeProvider as cE,lightTheme$1 as cF,CssBaseline as cG,Hide as cH,has_1 as cI,Radio$2 as cJ,createSvgIcon$2 as cK,_createCompounder as cL,_toPropertyKey as cM,_inheritsLoose$3 as cN,hoistNonReactStatics_cjs as cO,commonjsGlobal$3 as cP,combineReducers as cQ,createSelector$1 as cR,fork as cS,statusPill as cT,AIWareThemeProvider$1 as cU,LocalizationProvider as cV,AdapterDateFns as cW,CalendarPicker as cX,Close$1 as cY,FullscreenExit as cZ,Fullscreen as c_,Bookmark as ca,EngineFlagIcons as cb,createAsyncThunk as cc,withStyles as cd,getConfigModule as ce,getAuthModule as cf,getSnackbarModule as cg,AIWareCacheProvider as ch,img$U as ci,img$g as cj,img$f as ck,isEmpty_1 as cl,find_1 as cm,Backdrop$1 as cn,getDefaultMiddleware as co,isNil_1 as cp,useForm as cq,UpDown as cr,Icon$1 as cs,get_1 as ct,map_1 as cu,keys_1 as cv,RadioGroup$1 as cw,Avatar$1 as cx,img$z as cy,baseGraphQLApi as cz,capitalize$2 as d,findIndex_1 as d$,ReactMarkdown as d0,default_1$8 as d1,unmountPanel$1 as d2,AvailableComponents as d3,DialogContentText$1 as d4,userSelector$2 as d5,MoreVert$1 as d6,Menu$1 as d7,Edit as d8,Upload as d9,isObject_1 as dA,_toKey as dB,_baseIteratee as dC,_baseToString as dD,_baseTrim as dE,_castSlice as dF,_stringToArray as dG,toString_1 as dH,upperFirst_1 as dI,_arrayMap as dJ,isArrayLike_1 as dK,isString_1 as dL,toInteger_1 as dM,_baseGet as dN,_baseSlice as dO,channel$3 as dP,useFormContext as dQ,useIntl as dR,useFieldArray as dS,VideoCamera as dT,Image$1 as dU,Sound as dV,Description as dW,toNumber_1 as dX,FormProvider as dY,ProgressStepper as dZ,size_1 as d_,Delete$1 as da,CustomTabs as db,mountPanel$1 as dc,hidePanel$1 as dd,delay$1 as de,useBackupImg as df,img$1C as dg,validate as dh,img$19 as di,VerifiedFilled as dj,Add as dk,ExpandLess$1 as dl,ExpandMore$1 as dm,Collapse$1 as dn,baseGraphQLApiWithError as dp,Filter$1 as dq,DynamicTable as dr,useTheme$3 as ds,getThemeProps as dt,useEnhancedEffect$3 as du,React as dv,_arrayPush as dw,isArray_1 as dx,_castPath as dy,_isIndex as dz,_objectWithoutPropertiesLoose$3 as e,ErrorBoundary$1 as e$,take as e0,CurlyBraces as e1,UnknownDocument as e2,VariableSizeList as e3,sdkEventManager as e4,SdkEvents as e5,SdkError as e6,distributionTypes as e7,EngineClassIcons as e8,Mode2 as e9,_Stack as eA,_baseFor as eB,identity_1 as eC,_isIterateeCall as eD,isSymbol_1 as eE,_baseMap as eF,_baseUnary as eG,_baseFindIndex as eH,_Set as eI,_setToArray as eJ,_SetCache as eK,_cacheHas as eL,img$Q as eM,img$P as eN,img$1y as eO,img$1x as eP,img$1w as eQ,img$N as eR,img$1A as eS,img$M as eT,authSelector as eU,emphasize as eV,useSlotProps as eW,_arraySome as eX,EntityType as eY,generateState as eZ,injectIntl as e_,EngineModeIcons as ea,DeploymentModelIcons as eb,markdown as ec,guid as ed,_arrayReduce as ee,_baseEach as ef,Engines as eg,ListItemAvatar$1 as eh,ApplicationTabIcon as ei,EditList as ej,ButtonBase$1 as ek,_Symbol as el,isArguments_1 as em,_arrayFilter as en,_getNative as eo,eq_1 as ep,_root as eq,_Uint8Array as er,_overArg as es,_isPrototype as et,isObjectLike_1 as eu,_baseGetTag as ev,_arrayLikeKeys as ew,isBuffer$5 as ex,isFunction_1 as ey,isTypedArray_1 as ez,clsx as f,PodcastSource as f$,EPermissionAction as f0,Process as f1,Information as f2,Download as f3,NewFolder as f4,SpecialFolder as f5,User as f6,DataRegistry as f7,Source as f8,Search$2 as f9,enginesFilter as fA,panelsSelector as fB,Badge$1 as fC,MoreHor as fD,convertEntityToAuthResource as fE,AutoSizer as fF,InfiniteLoader as fG,FixedSizeList as fH,selectUserOrgEdgeVersion as fI,EditAttributes as fJ,imageUpload as fK,gqlIntrospection as fL,ProcessingDetail as fM,img$y as fN,img$A as fO,img$6 as fP,FilterRemove as fQ,AlarmTwo as fR,tableInfiniteScroll as fS,CheckCircle as fT,FolderOpen as fU,Voice as fV,useDoubleClick as fW,FolderFilled as fX,Time as fY,img$B as fZ,Undefined as f_,selectIsOLPEnabled as fa,ListItemSecondaryAction$1 as fb,getLibraryModule as fc,cmsUrlSelector as fd,debounce_1 as fe,SearchStructuredData as ff,Grow$1 as fg,configSelector as fh,index as fi,betaFeaturesSelector as fj,actions$6 as fk,hasPermission as fl,UserAddFilled as fm,MenuList$1 as fn,MoveFolder as fo,EAuthResourceType as fp,Slide$1 as fq,img$c as fr,selectApiConfigs$2 as fs,selectPanelByPanelName as ft,FullScreenContainer as fu,EngineCategoryIcons as fv,isPermissionLoading as fw,Settings$3 as fx,Hamburger as fy,List as fz,generateUtilityClass as g,ArrowForward as g$,YoutubeSource as g0,TVSource as g1,RadioSource as g2,selectOrgId as g3,navSectionStyles as g4,PermissionsList as g5,selectIsUserAdmin as g6,AvatarGroup$1 as g7,index$1 as g8,ErrorState$2 as g9,useInterval as gA,Iam as gB,safeFormatMessage as gC,contextMenuStyles as gD,Users as gE,SecurityGroup as gF,Verified as gG,getOrganizationPanelModule as gH,Lock2 as gI,EApplicationConfigLevel as gJ,NoApps as gK,EApplicationConfigType as gL,green$1 as gM,md5 as gN,selectIsSuperAdmin as gO,organizations_selector as gP,actions$5 as gQ,AddUser as gR,Check as gS,Remove as gT,selectors as gU,LibraryDropdown as gV,Save as gW,Input$3 as gX,getElement as gY,client$1 as gZ,Copy as g_,Stepper$1 as ga,StepConnector$1 as gb,Step$1 as gc,StepLabel$1 as gd,isEqual_1 as ge,NullState$2 as gf,Group as gg,PermissionChangedAction as gh,PlaceholderElement as gi,Lock as gj,useOrganizationPermissions as gk,EAuthSubResourceType as gl,AddGroup as gm,initialConfigSelector as gn,EMessageTypes as go,errors as gp,ConfirmationModal as gq,panelComponents as gr,EnumHelpers as gs,formatBytes as gt,NotInterested as gu,mountPanelForResponse$1 as gv,default_1$a as gw,tableStyles as gx,ArrowDown as gy,ArrowUp as gz,composeClasses as h,init as h$,Modal$1 as h0,_getSymbols as h1,stubArray_1 as h2,_baseGetAllKeys as h3,_getTag as h4,_nodeUtil as h5,_getAllKeys as h6,_castFunction as h7,Slider$1 as h8,getDefaultExportFromCjs as h9,selectUserCanCreatePackage as hA,PackagesAvatar as hB,actionChannel as hC,cancelled as hD,flush$5 as hE,tableSearchComponents as hF,cancel as hG,FlowTemplate as hH,nested as hI,useTheme$1 as hJ,deepmerge as hK,Node as hL,Palette as hM,FlowCenter2 as hN,ArrowBack as hO,Schema$1 as hP,truncatedString as hQ,AiwareFrameLink as hR,EFrameLinkEvents as hS,Activity as hT,img$1 as hU,img$x as hV,AutomateNode as hW,Clear as hX,ExpandLess as hY,ExpandMore as hZ,store as h_,Article as ha,Task as hb,View as hc,isNumber_1 as hd,EngineIconsRenderer as he,FormattedRelativeTime$1 as hf,BottomQueue as hg,TopQueue as hh,Pause as hi,Cancel as hj,Folder as hk,Hidden as hl,dateRangeFilter as hm,statusFilter as hn,TableLoadingState as ho,setDuration as hp,resetDuration as hq,ButtonGroupContext$1 as hr,useSyncExternalStoreExports as hs,EngineComponentLoader as ht,EngineFieldType as hu,characterCountTextField as hv,createStack as hw,tabsClasses$1 as hx,Packages as hy,Resources$1 as hz,createSvgIcon$1 as i,registry as i0,registerComponent as i1,AvailableWidgets as i2,updatePanelMicroFrontendProps as i3,setData as i4,mountWidget as i5,jsxRuntime as j,interopRequireDefault as k,createSlice as l,makeStyles as m,Route as n,useDispatch as o,useSelector as p,authStatusSelector as q,react$1 as r,store$7 as s,authContextSelector as t,useThemeProps as u,AuthContext as v,lodash as w,Alert$1 as x,useNavigate as y,devErrorLogger as z};
|