aiware-js 2.15.0 → 2.16.0
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/index.esm.css +46 -46
- package/js-core.esm.js +20 -8
- package/js-core.esm13.js +1 -1
- package/js-core.esm14.js +1 -1
- package/js-core.esm15.js +1 -1
- package/js-core.esm16.js +1 -1
- package/js-core.esm17.js +1 -230
- package/js-core.esm18.js +222 -52
- package/js-core.esm19.js +60 -1
- package/js-core.esm20.js +1 -1
- package/js-core.esm21.js +1 -1
- package/js-core.esm22.js +1 -1
- package/js-core.esm23.js +1 -1
- package/js-core.esm24.js +1 -1
- package/js-core.esm25.js +1 -14
- package/js-core.esm26.js +1 -12
- package/js-core.esm27.js +7 -47
- package/js-core.esm28.js +12 -1
- package/js-core.esm29.js +54 -88
- package/js-core.esm30.js +1 -226
- package/js-core.esm31.js +80 -27
- package/js-core.esm32.js +211 -1
- package/js-core.esm33.js +35 -1
- package/js-core.esm34.js +1 -1
- package/js-core.esm35.js +1 -1
- package/js-core.esm36.js +1 -31
- package/js-core.esm37.js +1 -1
- package/js-core.esm38.js +31 -51
- package/js-core.esm39.js +1 -1
- package/js-core.esm4.js +1 -1
- package/js-core.esm40.js +48 -26
- package/js-core.esm41.js +1 -1
- package/js-core.esm42.js +29 -0
- package/js-core.esm43.js +73 -0
- package/js-core.esm5.js +3 -3
- package/js-core.esm7.js +3 -3
- package/js-core.umd.css +92 -92
- package/js-core.umd.js +176 -125
- package/lib/rate-limiter.d.ts +6 -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
|
@@ -801,7 +801,7 @@ createScheduledJob(input:{
|
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
|
-
`;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$9(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})},getTemplateById=(e,t)=>{var n=gqlQueries["getTemplateByIdQuery"];return fetchVeritoneGraphQLApi(apiEndpoint,t,n,{flowId:e})},getTemplateByIdFallback=(e,t)=>{var n=gqlQueries["getTemplateByIdQueryFallback"];return fetchVeritoneGraphQLApi(apiEndpoint,t,n,{flowId:e})},createEnginebuild=(e,t)=>{var n=gqlQueries["createEngineBuildMutation"];return fetchVeritoneGraphQLApi(apiEndpoint,t,n,e)},fetchAllTags=i=>__awaiter$9(void 0,void 0,void 0,function*(){const e=gqlQueries["getGeneratedFetchTagsQueryFromListIds"];var t=e(i),t=yield fetchVeritoneGraphQLApi(apiEndpoint,"",t,{});let n=Object.values(lodash.exports.get(t,"data")),r=(n=n.map(e=>e.records[0].tags),[]);return _$3.forEach(n,e=>{r=_$3.union(r,e)}),r.sort(function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}),r}),isRevisionsExistOnServerRequest=t=>__awaiter$9(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=document.getElementsByTagName("script");if(!e.length)return"/";var t=Array.from(e).find(e=>e.src.includes("js-core")),e=Array.from(e).find(e=>e.src.includes("main.js"));const n=(null==t?void 0:t.src)||(null==e?void 0:e.src)||"";t=n.split("/").pop()||"";const r=n.split(t)[0]||"/";return r.replace(/\/+$/,"")},fetchTranslationJson=t=>__awaiter$9(void 0,void 0,void 0,function*(){try{if(translationPromises.hasOwnProperty(t))return translationPromises[t];var e=getAssetsBaseUrl();return translationPromises[t]=(yield fetch(e+`/locales/${t}.json`)).json(),translationPromises[t]}catch(e){return 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$9(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"})})}))},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"};function n$2(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(e){return!!e&&!!e[Q]}function t(t){return!!t&&(function(){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;e=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return e===Object||"function"==typeof e&&Function.toString.call(e)===Z}()||Array.isArray(t)||!!t[L]||!!t.constructor[L]||s$3(t)||v$1(t))}function i$1(n,r,t){void 0===t&&(t=!1),0===o$1(n)?(t?Object.keys:nn)(n).forEach(function(e){t&&"symbol"==typeof e||r(e,n[e],n)}):n.forEach(function(e,t){return r(t,e,n)})}function o$1(e){var t=e[Q];return t?3<t.i?t.i-4:t.i:Array.isArray(e)?1:s$3(e)?2:v$1(e)?3:0}function u$1(e,t){return 2===o$1(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function a$1(e,t){return 2===o$1(e)?e.get(t):e[t]}function f$1(e,t,n){var r=o$1(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function c$1(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function s$3(e){return X&&e instanceof Map}function v$1(e){return q&&e instanceof Set}function p$1(e){return e.o||e.t}function l$3(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=rn(e);delete t[Q];for(var n=nn(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function d$1(e,n){return void 0===n&&(n=!1),y(e)||r(e)||!t(e)||(1<o$1(e)&&(e.set=e.add=e.clear=e.delete=h$1),Object.freeze(e),n&&i$1(e,function(e,t){return d$1(t,!0)},!0)),e}function h$1(){n$2(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=tn[e];return t||n$2(18,e),t}function m$1(e,t){tn[e]||(tn[e]=t)}function _$2(){return U}function j(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function O(e){g$1(e),e.p.forEach(S),e.p=null}function g$1(e){e===U&&(U=e.l)}function w(e){return U={p:[],l:U,h:e,m:!0,_:0}}function S(e){e=e[Q];0===e.i||1===e.i?e.j():e.O=!0}function P(e,n){n._=n.p.length;var r=n.p[0],i=void 0!==e&&e!==r;return n.h.g||b("ES5").S(n,e,i),i?(r[Q].P&&(O(n),n$2(4)),t(e)&&(e=M(n,e),n.l||x(n,e)),n.u&&b("Patches").M(r[Q].t,e,n.u,n.s)):e=M(n,r,[]),O(n),n.u&&n.v(n.u,n.s),e!==H?e:void 0}function M(n,r,i){if(y(r))return r;var o,a=r[Q];return a?a.A!==n?r:a.P?(a.I||(a.I=!0,a.A._--,o=4===a.i||5===a.i?a.o=l$3(a.k):a.o,i$1(3===a.i?new Set(o):o,function(e,t){return A(n,a,o,e,t,i)}),x(n,o,!1),i&&n.u&&b("Patches").R(a,i,n.u,n.s)),a.o):(x(n,a.t,!0),a.t):(i$1(r,function(e,t){return A(n,a,r,e,t,i)},!0),r)}function A(e,n,i,o,a,s){if(r(a)){s=M(e,a,s&&n&&3!==n.i&&!u$1(n.D,o)?s.concat(o):void 0);if(f$1(i,o,s),!r(s))return;e.m=!1}!t(a)||y(a)||!e.h.F&&e._<1||(M(e,a),n&&n.A.l||x(e,a))}function x(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&d$1(t,n)}function z(e,t){var n=e[Q];return(n?p$1(n):e)[t]}function I(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function k(e){e.P||(e.P=!0,e.l&&k(e.l))}function E(e){e.o||(e.o=l$3(e.t))}function R(e,t,n){var r,i,o=s$3(t)?b("MapSet").N(t,n):v$1(t)?b("MapSet").T(t,n):e.g?(e=t,r=n,o=Array.isArray(e),r={i:o?1:0,A:r?r.A:_$2(),P:!1,I:!1,D:{},l:r,t:e,k:null,o:null,j:null,C:!1},e=r,i=en,o&&(e=[r],i=on),o=Proxy.revocable(e,i),e=o.revoke,i=o.proxy,r.k=i,r.j=e,i):b("ES5").J(t,n);return(n?n.A:_$2()).p.push(o),o}function D(e){return r(e)||n$2(22,e),function n(e){if(!t(e))return e;var r,i=e[Q],o=o$1(e);if(i){if(!i.P&&(i.i<4||!b("ES5").K(i)))return i.t;i.I=!0,r=F(e,o),i.I=!1}else r=F(e,o);return i$1(r,function(e,t){i&&a$1(i.t,e)===t||f$1(r,e,n(t))}),3===o?new Set(r):r}(e)}function F(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return l$3(e)}function N(){function l(n,e){var t=a[n];return t?t.enumerable=e:a[n]=t={configurable:!0,enumerable:e,get:function(){var e=this[Q];return en.get(e,n)},set:function(e){var t=this[Q];en.set(t,n,e)}},t}function i(e){for(var t=e.length-1;0<=t;t--){var n=e[t][Q];if(!n.P)switch(n.i){case 5:u(n)&&k(n);break;case 4:o(n)&&k(n)}}}function o(e){for(var t=e.t,n=e.k,r=nn(n),i=r.length-1;0<=i;i--){var o=r[i];if(o!==Q){var a=t[o];if(void 0===a&&!u$1(t,o))return!0;var o=n[o],s=o&&o[Q];if(s?s.t!==a:!c$1(o,a))return!0}}e=!!t[Q];return r.length!==nn(t).length+(e?0:1)}function u(e){var t=e.k;if(t.length!==e.t.length)return!0;e=Object.getOwnPropertyDescriptor(t,t.length-1);if(e&&!e.get)return!0;for(var n=0;n<t.length;n++)if(!t.hasOwnProperty(n))return!0;return!1}var a={};m$1("ES5",{J:function(e,t){var n=Array.isArray(e),r=function(e,t){if(e){for(var n=Array(t.length),r=0;r<t.length;r++)Object.defineProperty(n,""+r,l(r,!0));return n}var i=rn(t);delete i[Q];for(var o=nn(i),a=0;a<o.length;a++){var s=o[a];i[s]=l(s,e||!!i[s].enumerable)}return Object.create(Object.getPrototypeOf(t),i)}(n,e),n={i:n?5:4,A:t?t.A:_$2(),P:!1,I:!1,D:{},l:t,t:e,k:r,o:null,O:!1,C:!1};return Object.defineProperty(r,Q,{value:n,writable:!0}),r},S:function(e,t,n){n?r(t)&&t[Q].A===e&&i(e.p):(e.u&&function t(e){if(e&&"object"==typeof e){var n=e[Q];if(n){var r=n.t,i=n.k,o=n.D,e=n.i;if(4===e)i$1(i,function(e){e!==Q&&(void 0!==r[e]||u$1(r,e)?o[e]||t(i[e]):(o[e]=!0,k(n)))}),i$1(r,function(e){void 0!==i[e]||u$1(i,e)||(o[e]=!1,k(n))});else if(5===e){if(u(n)&&(k(n),o.length=!0),i.length<r.length)for(var a=i.length;a<r.length;a++)o[a]=!1;else for(var s=r.length;s<i.length;s++)o[s]=!0;for(var l=Math.min(i.length,r.length),c=0;c<l;c++)i.hasOwnProperty(c)||(o[c]=!0),void 0===o[c]&&t(i[c])}}}}(e.p[0]),i(e.p))},K:function(e){return(4===e.i?o:u)(e)}})}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(t){var n={};return nn(t).forEach(function(e){n[e]=Object.getOwnPropertyDescriptor(t,e)}),n},tn={},en={get:function(e,n){if(n===Q)return e;var r,i=p$1(e);if(!u$1(i,n))return r=e,(o=I(i,n))?"value"in o?o.value:null==(o=o.get)?void 0:o.call(r.k):void 0;var o=i[n];return!e.I&&t(o)&&o===z(e.t,n)?(E(e),e.o[n]=R(e.A.h,o,e)):o},has:function(e,t){return t in p$1(e)},ownKeys:function(e){return Reflect.ownKeys(p$1(e))},set:function(e,t,n){var r=I(p$1(e),t);if(null!=r&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var r=z(p$1(e),t),i=null==r?void 0:r[Q];if(i&&i.t===n)return e.o[t]=n,!(e.D[t]=!1);if(c$1(n,r)&&(void 0!==n||u$1(e.t,t)))return!0;E(e),k(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0)},deleteProperty:function(e,t){return void 0!==z(e.t,t)||t in e.t?(e.D[t]=!1,E(e),k(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=p$1(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty:function(){n$2(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){n$2(12)}},on={},un=(i$1(en,function(e,t){on[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),on.deleteProperty=function(e,t){return on.set.call(this,e,t,void 0)},on.set=function(e,t,n){return en.set.call(this,e[0],t,n,e[0])},function(){function e(e){var u=this;this.g=B,this.F=!0,this.produce=function(e,o,n){var a,s,r;if("function"==typeof e&&"function"!=typeof o)return a=o,o=e,s=u,function(e){var t=this;void 0===e&&(e=a);for(var n=arguments.length,r=Array(1<n?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return s.produce(e,function(e){return o.call.apply(o,[t,e].concat(r))})};if("function"!=typeof o&&n$2(6),void 0!==n&&"function"!=typeof n&&n$2(7),t(e)){var i=w(u),l=R(u,e,void 0),c=!0;try{r=o(l),c=!1}finally{(c?O:g$1)(i)}return"undefined"!=typeof Promise&&r instanceof Promise?r.then(function(e){return j(i,n),P(e,i)},function(e){throw O(i),e}):(j(i,n),P(r,i))}if(!e||"object"!=typeof e)return(r=void 0===(r=o(e))?e:r)===H&&(r=void 0),u.F&&d$1(r,!0),n&&(l=[],c=[],b("Patches").M(e,r,l,c),n(l,c)),r;n$2(21,e)},this.produceWithPatches=function(i,e){if("function"==typeof i)return function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return u.produceWithPatches(e,function(e){return i.apply(void 0,[e].concat(n))})};var n,r,e=u.produce(i,e,function(e,t){n=e,r=t});return"undefined"!=typeof Promise&&e instanceof Promise?e.then(function(e){return[e,n,r]}):[e,n,r]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var n=e.prototype;return n.createDraft=function(e){t(e)||n$2(8),r(e)&&(e=D(e));var n=w(this),e=R(this,e,void 0);return e[Q].C=!0,g$1(n),e},n.finishDraft=function(e,t){e=(e&&e[Q]).A;return j(e,t),P(void 0,e)},n.setAutoFreeze=function(e){this.F=e},n.setUseProxies=function(e){e&&!B&&n$2(20),this.g=e},n.applyPatches=function(e,t){for(var n=t.length-1;0<=n;n--){var i=t[n];if(0===i.path.length&&"replace"===i.op){e=i.value;break}}-1<n&&(t=t.slice(n+1));var o=b("Patches").$;return r(e)?o(e,t):this.produce(e,function(e){return o(e,t)})},e}()),an=new un,fn=an.produce,createNextState2=(an.produceWithPatches.bind(an),an.setAutoFreeze.bind(an),an.setUseProxies.bind(an),an.applyPatches.bind(an),an.createDraft.bind(an),an.finishDraft.bind(an),fn);function defaultEqualityCheck(e,t){return e===t}function areArgumentsShallowlyEqual(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}function defaultMemoize(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:defaultEqualityCheck,n=null,r=null;return function(){return areArgumentsShallowlyEqual(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function getDependencies(e){var e=Array.isArray(e[0])?e[0]:e;if(e.every(function(e){return"function"==typeof e}))return e;throw e=e.map(function(e){return typeof e}).join(", "),new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+e+"]")}function createSelectorCreator(l){for(var e=arguments.length,c=Array(1<e?e-1:0),t=1;t<e;t++)c[t-1]=arguments[t];return function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=0,i=t.pop(),o=getDependencies(t),a=l.apply(void 0,[function(){return r++,i.apply(null,arguments)}].concat(c)),s=l(function(){for(var e=[],t=o.length,n=0;n<t;n++)e.push(o[n].apply(null,arguments));return a.apply(null,e)});return s.resultFunc=i,s.dependencies=o,s.recomputations=function(){return r},s.resetRecomputations=function(){return r=0},s}}var createSelector=createSelectorCreator(defaultMemoize),__extends=function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),__generator$1=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];break}if(6===t[0]&&l.label<s[1]){l.label=s[1],s=t;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(t);break}s[2]&&l.ops.pop(),l.trys.pop();continue}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}}}},__spreadArray=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=function(e,t,n){return t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},__spreadValues=function(e,t){for(var n in t=t||{})__hasOwnProp.call(t,n)&&__defNormalProp(e,n,t[n]);if(__getOwnPropSymbols)for(var r=0,i=__getOwnPropSymbols(t);r<i.length;r++){n=i[r];__propIsEnum.call(t,n)&&__defNormalProp(e,n,t[n])}return e},__spreadProps=function(e,t){return __defProps(e,__getOwnPropDescs(t))},__async=function(e,a,s){return new Promise(function(t,n){function r(e){e.done?t(e.value):Promise.resolve(e.value).then(i,o)}var i=function(e){try{r(s.next(e))}catch(e){n(e)}},o=function(e){try{r(s.throw(e))}catch(e){n(e)}};r((s=s.apply(e,a)).next())})},MiddlewareArray=function(r){function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,i.prototype),n}return __extends(i,r),Object.defineProperty(i,Symbol.species,{get:function(){return i},enumerable:!1,configurable:!0}),i.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.prototype.concat.apply(this,e)},i.prototype.prepend=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(1===e.length&&Array.isArray(e[0])?i.bind.apply(i,__spreadArray([void 0],e[0].concat(this))):i.bind.apply(i,__spreadArray([void 0],e.concat(this))))},i}(Array);function isBoolean(e){return"boolean"==typeof e}function getDefaultMiddleware(e){var t=(e=void 0===e?{}:e).thunk,t=void 0===t||t,e=(e.immutableCheck,e.serializableCheck,new MiddlewareArray);return t&&(isBoolean(t)?e.push(thunk):e.push(thunk.withExtraArgument(t.extraArgument))),e}function createAction(r,i){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(i){var n=i.apply(void 0,e);if(n)return __spreadValues(__spreadValues({type:r,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error});throw new Error("prepareAction did not return an object")}return{type:r,payload:e[0]}}return e.toString=function(){return""+r},e.type=r,e.match=function(e){return e.type===r},e}function executeReducerBuilderCallback(e){var t,n={},r=[],i={addCase:function(e,t){e="string"==typeof e?e:e.type;if(e in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[e]=t,i},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),i},addDefaultCase:function(e){return t=e,i}};return e(i),[n,r,t]}function createReducer(e,n,i,o){void 0===i&&(i=[]);var n="function"==typeof n?executeReducerBuilderCallback(n):[n,i,o],a=n[0],s=n[1],l=n[2],c=createNextState2(e,function(){});return function(e,o){void 0===e&&(e=c);var n=__spreadArray([a[o.type]],s.filter(function(e){return(0,e.matcher)(o)}).map(function(e){return e.reducer}));return(n=0===n.filter(function(e){return!!e}).length?[l]:n).reduce(function(e,n){if(n){var i;if(r(e))return void 0===(i=n(e,o))?e:i;if(t(e))return createNextState2(e,function(e){return n(e,o)});if(void 0!==(i=n(e,o)))return i;if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return e},e)}}function getType2(e,t){return e+"/"+t}function createSlice(e){var o=e.name,t=e.initialState;if(!o)throw new Error("`name` is a required option for createSlice");var a=e.reducers||{},e="function"==typeof e.extraReducers?executeReducerBuilderCallback(e.extraReducers):[e.extraReducers],n=e[0],n=void 0===n?{}:n,r=e[1],r=void 0===r?[]:r,e=e[2],e=void 0===e?void 0:e,i=Object.keys(a),s={},l={},c={};i.forEach(function(e){var t,n,r=a[e],i=getType2(o,e);"reducer"in r?(t=r.reducer,n=r.prepare):t=r,s[e]=t,l[i]=t,c[e]=n?createAction(i,n):createAction(i)});i=createReducer(t,__spreadValues(__spreadValues({},n),l),r,e);return{name:o,reducer:i,actions:c,caseReducers:s}}var urlAlphabet="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nanoid=function(e){for(var t="",n=e=void 0===e?21:e;n--;)t+=urlAlphabet[64*Math.random()|0];return t},commonProperties=["name","message","stack","code"],RejectWithValue=function(e,t){this.payload=e,this.meta=t},FulfillWithMeta=function(e,t){this.payload=e,this.meta=t},miniSerializeError=function(e){if("object"!=typeof e||null===e)return{message:String(e)};for(var t={},n=0,r=commonProperties;n<r.length;n++){var i=r[n];"string"==typeof e[i]&&(t[i]=e[i])}return t};function createAsyncThunk(e,d,p){var f=createAction(e+"/fulfilled",function(e,t,n,r){return{payload:e,meta:__spreadProps(__spreadValues({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}}),h=createAction(e+"/pending",function(e,t,n){return{payload:void 0,meta:__spreadProps(__spreadValues({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}}),m=createAction(e+"/rejected",function(e,t,n,r,i){return{payload:r,error:(p&&p.serializeError||miniSerializeError)(e||"Rejected"),meta:__spreadProps(__spreadValues({},i||{}),{arg:n,requestId:t,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}}),g="undefined"!=typeof AbortController?AbortController:(t.prototype.abort=function(){},t);function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){}}}return Object.assign(function(u){return function(r,i,o){var e,n,a=(null!=(e=null==p?void 0:p.idGenerator)?e:nanoid)(),s=new g,l=new Promise(function(e,t){return s.signal.addEventListener("abort",function(){return t({name:"AbortError",message:n||"Aborted"})})}),c=!1;var t=function(){return __async(this,null,function(){var t,n;return __generator$1(this,function(e){switch(e.label){case 0:if(e.trys.push([0,2,,3]),p&&p.condition&&!1===p.condition(u,{getState:i,extra:o}))throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return c=!0,r(h(a,u,null==(n=null==p?void 0:p.getPendingMeta)?void 0:n.call(p,{requestId:a,arg:u},{getState:i,extra:o}))),[4,Promise.race([l,Promise.resolve(d(u,{dispatch:r,getState:i,extra:o,requestId:a,signal:s.signal,rejectWithValue:function(e,t){return new RejectWithValue(e,t)},fulfillWithValue:function(e,t){return new FulfillWithMeta(e,t)}})).then(function(e){if(e instanceof RejectWithValue)throw e;return e instanceof FulfillWithMeta?f(e.payload,a,u,e.meta):f(e,a,u)})])];case 1:return t=e.sent(),[3,3];case 2:return n=e.sent(),t=n instanceof RejectWithValue?m(null,a,u,n.payload,n.meta):m(n,a,u),[3,3];case 3:return p&&!p.dispatchConditionRejection&&m.match(t)&&t.meta.condition||r(t),[2,t]}})})}();return Object.assign(t,{abort:function(e){c&&(n=e,s.abort())},requestId:a,arg:u,unwrap:function(){return t.then(unwrapResult)}})}},{pending:h,rejected:m,fulfilled:f,typePrefix:e})}function unwrapResult(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}N();var done=function(e){return{done:!0,value:e}},qEnd={};function safeName(e){return channel$1(e)?"channel":!stringableFunc(e)&&func(e)?e.name:String(e)}function fsmIterator(n,e,t){var r,i,o,a=e;function s(e,t){if(a===qEnd)return done(e);if(t&&!i)throw a=qEnd,t;return r&&r(e),t=t?n[i](t):n[a](),a=t.nextState,o=t.effect,r=t.stateUpdater,i=t.errorState,a===qEnd?done(e):o}return makeIterator(s,function(e){return s(null,e)},t)}function takeEvery(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];function o(e){return a=e}var a,s={done:!1,value:take(e)};return fsmIterator({q1:function(){return{nextState:"q2",effect:s,stateUpdater:o}},q2:function(){return{nextState:"q1",effect:(e=a,{done:!1,value:fork.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+safeName(e)+", "+t.name+")")}function takeLatest(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];function o(e){return{done:!1,value:fork.apply(void 0,[t].concat(r,[e]))}}function a(e){return l=e}function s(e){return c=e}var l,c,u={done:!1,value:take(e)};return fsmIterator({q1:function(){return{nextState:"q2",effect:u,stateUpdater:s}},q2:function(){return l?{nextState:"q3",effect:{done:!1,value:cancel(l)}}:{nextState:"q1",effect:o(c),stateUpdater:a}},q3:function(){return{nextState:"q1",effect:o(c),stateUpdater:a}}},"q1","takeLatest("+safeName(e)+", "+t.name+")")}function takeEvery$1(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return fork.apply(void 0,[takeEvery,e,t].concat(r))}function takeLatest$1(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return fork.apply(void 0,[takeLatest,e,t].concat(r))}function get$3(e,t,n){var r=Array.isArray(t)?t:t.split(".");let i=0;for(var o=r.length;null!=e&&i<o;)e=e[r[i++]];return i&&i===o&&e?e:n}function guid(){if(window.crypto){const e=[1e7,1e3,4e3,8e3,1e11],t=e.join("-");return t.replace(/[018]/g,e=>cryptoGenerateString(e))}return""}function cryptoGenerateString(e){e=Number(e);const t=e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4;return t.toString(16)}function isEqual(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}function pick$2(e,t){const n={};for(const r of t)e[r]&&(n[r]=JSON.parse(JSON.stringify(e[r])));return n}function slice$3(e,t,n){return[...e].slice(t,n)}function uniq(e){return e.filter((e,t,n)=>n.indexOf(e)===t)}!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const useInterval=(e,t)=>{const n=react.exports.useRef();react.exports.useEffect(()=>{n.current=e},[e]),react.exports.useEffect(()=>{if(null!==t){const e=setInterval(function(){n&&n.current&&n.current()},t);return()=>clearInterval(e)}},[t])},getSortName=e=>{const t=e.match(/\b\w/g)||[];return(1<t.length?(t.shift()||"")+(t.pop()||""):e.substr(0,2)).toUpperCase()};function formatBytes(e,t=1){if(0===e)return"0 Bytes";var n=Math.floor(getBaseLog(1024,e));return parseFloat((e/Math.pow(1024,n)).toFixed(t))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][n]}function getBaseLog(e,t){return Math.log(t)/Math.log(e)}const getUniqueID=()=>Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,7),useDoubleClick=(t,n=500)=>{const[r,i]=react.exports.useState(0),[o,a]=react.exports.useState();return react.exports.useEffect(()=>{const e=setTimeout(()=>{1===r&&(t(!1,o),i(0))},n);return 2===r&&(t(!0,o),i(0)),()=>{clearTimeout(e)}},[t,n,r,o]),react.exports.useCallback(e=>{i(e=>e+1),a(e)},[])},useBackupImg=(e,t)=>{const[n,r]=react.exports.useState(e||t);return[n,()=>r(t)]};function getElement(e,t){let n=document.getElementById(e);return n||((n=document.createElement("div")).id=e,"APP_BAR"===t?null!=(e=document.getElementsByTagName("body").item(0))&&e.prepend(n):null!=(t=document.getElementsByTagName("body").item(0))&&t.append(n),n)}!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const PANELS_FEATURE_KEY="panels",panelsSelector=e=>e[name$1],selectPanelByPanelName=t=>e=>e[PANELS_FEATURE_KEY].find(e=>{return(null==(e=null==e?void 0:e.panelConfig)?void 0:e.panelId)===t}),{name:name$1,reducer:reducer$2,actions:{mountPanel:mountPanel$1,unmountPanel:unmountPanel$1,hidePanel:hidePanel$1,updatePanelMicroFrontendProps,openLinkOnNewTab,unmountAllPanel:unmountAllPanel$1}}=createSlice({name:PANELS_FEATURE_KEY,initialState:[],reducers:{mountPanel:(e,t)=>(e.push(t.payload),e),unmountPanel:(e,t)=>e.filter(e=>e.panelId!==t.payload),hidePanel:(e,t)=>e,updatePanelMicroFrontendProps:(e,t)=>e,openLinkOnNewTab:(e,t)=>e,unmountAllPanel:(e,t)=>e}});function*handleClosePanel(e,t,n){t?yield put(unmountPanel$1(e)):yield put(hidePanel$1(e)),setTimeout(()=>{n()},0)}const mountPanelForResponse$1=(n,e)=>{const r=n.panelId||getUniqueID(),{microFrontend:t,panelConfig:i}=n;e.dispatch(mountPanel$1({microFrontend:t,panelId:r,panelConfig:i}));let o,a,s=()=>null;var l=new Promise((e,t)=>{o=e,a=t}),c={id:r,sagas:[function*(){yield r,yield takeEvery$1(t.name+"_RESPONSE",function*(e){yield e.payload,o(e.payload),yield call$7(handleClosePanel,r,n.panelConfig.disableHide,s)}),yield takeEvery$1(t.name+"_ERROR_RESPONSE",function*(e){var{error:e,closePanel:t}=e.payload;yield e,a(e),t&&(yield call$7(handleClosePanel,r,n.panelConfig.disableHide,s))})}]};return s=e.addModule(c).remove,l},setData=createAction("Set Data"),logout=createAction("os-app-bar-panel/logout"),logoutUser$1=createAction("os-app-bar-panel/users/logout"),listenLogout=createAction("logoutListener"),appSwitcherSetupListener=createAction("aiware/set up app switch listener"),appSwitcherHandleClick=createAction("aiware/handle app switch"),appSwitcherHandleClickAppNatively=createAction("aiware/applications/get handle click app");!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();var SdkEvents,PermissionChangedAction,img$1v="data:image/svg+xml,%3csvg width='18' height='12' viewBox='0 0 18 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 0H18V2H0V0ZM0 5H18V7H0V5ZM18 10H0V12H18V10Z' fill='%235C6269'/%3e%3c/svg%3e",img$1u="data:image/svg+xml,%3csvg width='26' height='24' viewBox='0 0 26 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath opacity='0.36' d='M14.9802 0L18.544 6.25185L22.1176 0H14.9802Z' fill='%23555F7C' /%3e %3cpath opacity='0.9' d='M22.117 0L8.4035 23.991H17.5961L26 9.22634L22.117 0Z' fill='%23555F7C' /%3e %3cpath opacity='0.36' d='M3.88435 0L0 9.2299L8.40696 24L13.0074 15.9602L3.88435 0Z' fill='%23555F7C' /%3e%3c/svg%3e",img$1t="data:image/svg+xml,%3csvg width='64' height='53' viewBox='0 0 64 53' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M58.55 52.13H5.13C3.76944 52.13 2.4646 51.5895 1.50254 50.6275C0.540481 49.6654 0 48.3606 0 47L0 5.13C0 3.76944 0.540481 2.4646 1.50254 1.50254C2.4646 0.540481 3.76944 0 5.13 0L58.55 0C59.9106 0 61.2154 0.540481 62.1775 1.50254C63.1395 2.4646 63.68 3.76944 63.68 5.13V47C63.68 48.3606 63.1395 49.6654 62.1775 50.6275C61.2154 51.5895 59.9106 52.13 58.55 52.13ZM5.13 4C4.83031 4 4.54289 4.11905 4.33097 4.33097C4.11905 4.54289 4 4.83031 4 5.13V47C4 47.1484 4.02923 47.2953 4.08602 47.4324C4.1428 47.5695 4.22604 47.6941 4.33097 47.799C4.4359 47.904 4.56047 47.9872 4.69757 48.044C4.83467 48.1008 4.98161 48.13 5.13 48.13H58.55C58.848 48.1274 59.1328 48.0071 59.3426 47.7955C59.5523 47.5839 59.67 47.298 59.67 47V5.13C59.67 4.83203 59.5523 4.54611 59.3426 4.33448C59.1328 4.12285 58.848 4.00264 58.55 4H5.13Z' fill='%23828282'/%3e%3cpath d='M10.7327 44.32H50.2427C50.5591 44.329 50.8717 44.249 51.1448 44.089C51.418 43.9291 51.6407 43.6956 51.7877 43.4153C51.9346 43.1349 51.9999 42.8189 51.976 42.5033C51.9522 42.1876 51.8401 41.8851 51.6527 41.63L46.2027 34.23C46.0605 34.0331 45.8774 33.8692 45.6661 33.7494C45.4548 33.6296 45.2201 33.5568 44.9781 33.5359C44.7361 33.5151 44.4924 33.5466 44.2637 33.6284C44.035 33.7102 43.8266 33.8404 43.6527 34.01L38.0527 39.34L25.0527 21.69C24.8909 21.4695 24.6779 21.2916 24.4321 21.1715C24.1864 21.0514 23.9151 20.9928 23.6417 21.0007C23.3683 21.0086 23.1009 21.0827 22.8624 21.2167C22.624 21.3507 22.4216 21.5405 22.2727 21.77L9.27271 41.71C9.10506 41.9681 9.01108 42.2671 9.00092 42.5748C8.99076 42.8824 9.06481 43.1869 9.21508 43.4556C9.36535 43.7242 9.58612 43.9467 9.85358 44.099C10.121 44.2514 10.425 44.3278 10.7327 44.32Z' fill='%23828282'/%3e%3cpath d='M44.13 21.0499C47.405 21.0499 50.06 18.395 50.06 15.1199C50.06 11.8449 47.405 9.18994 44.13 9.18994C40.8549 9.18994 38.2 11.8449 38.2 15.1199C38.2 18.395 40.8549 21.0499 44.13 21.0499Z' fill='%23828282'/%3e%3c/svg%3e",img$1s="data:image/svg+xml,%3csvg width='17' height='14' viewBox='0 0 17 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.75169 0.0126973L8.05424 0L12.7245 13.6679L10.3915 13.6806L6.36746 1.90297L2.43191 13.6678L0 13.6678L4.59129 0.0125519L5.75169 0.0126973ZM13.9471 0.0129114H16.4299V13.6679H13.9471V0.0129114Z' fill='%23057A9F'/%3e%3c/svg%3e",img$1r="data:image/svg+xml,%3csvg width='20' height='18' viewBox='0 0 20 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.7949 10.725C14.2051 10.6 17.6923 9.575 20 8.35V16.25C20 17.225 19.2051 18 18.2051 18H1.79487C0.794872 18 0 17.225 0 16.25V8.375C2.30769 9.6 5.79487 10.6 8.20513 10.75V11.5C8.20513 12.05 8.66667 12.5 9.23077 12.5H10.7692C11.3333 12.5 11.7949 12.05 11.7949 11.5V10.725ZM20 4.75V7.225C17.8462 8.5 14.2564 9.6 11.7949 9.75V9C11.7949 8.45 11.3333 8 10.7692 8H9.23077C8.66667 8 8.20513 8.45 8.20513 9V9.725C5.74359 9.575 2.15385 8.475 0 7.2V4.75C0 3.775 0.794872 3 1.79487 3H6.15385V2.25C6.15385 1 7.17949 0 8.46154 0H11.5385C12.8205 0 13.8462 1 13.8462 2.25V3H18.2051C19.2051 3 20 3.775 20 4.75ZM12.8205 2.25C12.8205 1.55 12.2564 1 11.5385 1H8.46154C7.74359 1 7.17949 1.55 7.17949 2.25V3H12.8205V2.25ZM10.7692 9H9.23077V11.5H10.7692V9Z' fill='%23786216'/%3e%3c/svg%3e",img$1q="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M1.06455 0H4.03807C4.3019 0 4.54849 0.115307 4.7332 0.292297C4.90898 0.469598 5.01488 0.71757 5.01488 0.992199V3.97748C5.01488 4.25211 4.90898 4.50008 4.7332 4.67738C4.54849 4.85437 4.30221 4.96968 4.03807 4.96968H1.06455C0.800718 4.96968 0.554438 4.85437 0.36942 4.67738C0.193638 4.50008 0.0880452 4.25211 0.0880452 3.97748V0.992199C0.0880452 0.71757 0.193638 0.469598 0.36942 0.292297C0.55413 0.115307 0.80041 0 1.06455 0ZM13.9705 13.0309H16.9355C17.2082 13.0309 17.4548 13.1459 17.6306 13.3226C17.8064 13.4999 17.9206 13.7482 17.9206 14.0225V17.0078C17.9206 17.2827 17.8064 17.531 17.6306 17.7077C17.4548 17.885 17.2082 18 16.9355 18H13.9705C13.6978 18 13.4515 17.885 13.2754 17.7077C13.0907 17.531 12.9854 17.2827 12.9854 17.0078V14.0225C12.9854 13.7482 13.091 13.4999 13.2754 13.3226C13.4518 13.1459 13.6981 13.0309 13.9705 13.0309ZM7.45182 13.0309H10.4253C10.6892 13.0309 10.9355 13.1459 11.1205 13.3226C11.2963 13.4999 11.4018 13.7482 11.4018 14.0225V17.0078C11.4018 17.2827 11.2963 17.531 11.1205 17.7077C10.9355 17.885 10.6895 18 10.4253 18H7.45182C7.18799 18 6.94141 17.885 6.7567 17.7077C6.58061 17.531 6.47501 17.2827 6.47501 17.0078V14.0225C6.47501 13.7482 6.58061 13.4999 6.7567 13.3226C6.94141 13.1459 7.18769 13.0309 7.45182 13.0309ZM0.985428 13.0309H3.95033C4.22309 13.0309 4.46937 13.1459 4.64546 13.3226C4.82124 13.4999 4.93545 13.7482 4.93545 14.0225V17.0078C4.93545 17.2827 4.82124 17.531 4.64546 17.7077C4.46937 17.885 4.22309 18 3.95033 18H0.985428C0.712673 18 0.466085 17.885 0.290303 17.7077C0.11452 17.531 0 17.2827 0 17.0078V14.0225C0 13.7482 0.11452 13.4999 0.290303 13.3226C0.466085 13.1459 0.712673 13.0309 0.985428 13.0309ZM14.006 6.51981H16.9795C17.2433 6.51981 17.4899 6.62613 17.6746 6.80343C17.8504 6.98941 17.9563 7.23738 17.9563 7.50302V10.4973C17.9563 10.7629 17.8504 11.0106 17.6746 11.1972C17.4899 11.3739 17.2436 11.4805 16.9795 11.4805H14.006C13.7421 11.4805 13.4958 11.3739 13.3108 11.1972C13.135 11.0106 13.0295 10.7632 13.0295 10.4973V7.50302C13.0295 7.23738 13.135 6.98941 13.3108 6.80343C13.4958 6.62613 13.7418 6.51981 14.006 6.51981ZM7.49554 6.51981H10.4604C10.7332 6.51981 10.9798 6.62613 11.1556 6.80343C11.3403 6.98941 11.4456 7.23738 11.4456 7.50302V10.4973C11.4456 10.7629 11.34 11.0106 11.1556 11.1972C10.9798 11.3739 10.7332 11.4805 10.4604 11.4805H7.49554C7.22278 11.4805 6.97619 11.3739 6.80041 11.1972C6.62463 11.0106 6.51011 10.7632 6.51011 10.4973V7.50302C6.51011 7.23738 6.62463 6.98941 6.80041 6.80343C6.9765 6.62613 7.22309 6.51981 7.49554 6.51981ZM1.02914 6.51981H3.99405C4.2668 6.51981 4.51339 6.62613 4.68917 6.80343C4.86496 6.98941 4.97948 7.23738 4.97948 7.50302V10.4973C4.97948 10.7629 4.86496 11.0106 4.68917 11.1972C4.51339 11.3739 4.2668 11.4805 3.99405 11.4805H1.02914C0.756388 11.4805 0.510108 11.3739 0.334017 11.1972C0.149307 11.0106 0.0440225 10.7632 0.0440225 10.4973V7.50302C0.0440225 7.23738 0.149615 6.98941 0.334017 6.80343C0.510416 6.62613 0.756696 6.51981 1.02914 6.51981ZM14.05 0H17.0146C17.2873 0 17.5339 0.115307 17.7097 0.292297C17.8947 0.469598 18 0.71757 18 0.992199V3.97748C18 4.25211 17.8944 4.50008 17.7097 4.67738C17.5339 4.85437 17.2873 4.96968 17.0146 4.96968H14.05C13.7769 4.96968 13.5306 4.85437 13.3548 4.67738C13.1788 4.50008 13.0645 4.25211 13.0645 3.97748V0.992199C13.0645 0.71757 13.1788 0.469598 13.3548 0.292297C13.5396 0.115307 13.7772 0 14.05 0ZM7.53956 0H10.5045C10.7772 0 11.0238 0.115307 11.1996 0.292297C11.3754 0.469598 11.4899 0.71757 11.4899 0.992199V3.97748C11.4899 4.25211 11.3754 4.50008 11.1996 4.67738C11.0238 4.85437 10.7772 4.96968 10.5045 4.96968H7.53956C7.2668 4.96968 7.02052 4.85437 6.84443 4.67738C6.66865 4.50008 6.55444 4.25211 6.55444 3.97748V0.992199C6.55444 0.71757 6.66865 0.469598 6.84443 0.292297C7.02052 0.115307 7.2668 0 7.53956 0Z' fill='%239B51E0'/%3e%3c/svg%3e",img$1p="data:image/svg+xml,%3csvg width='22' height='16' viewBox='0 0 22 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.39292 10.0683V12.9306L5.31163 16H16.2827C16.2827 16 16.4193 15.5687 16.5849 15.0293C16.974 13.7727 18.0256 12.9306 19.2055 12.9306V5.57826C18.0214 5.57826 16.9575 4.74693 16.5476 3.49457C16.3986 3.04184 16.2827 2.6954 16.2827 2.6954H7.91984C7.34851 4.42801 5.88296 5.57826 4.24351 5.57826H2.39292V8.44015H1.44484V6.0725C1.44484 5.79927 1.24614 5.57826 1.00602 5.57826H0.438826C0.194565 5.57826 0 5.79927 0 6.0725C0 7.41158 0 11.0973 0 12.4364C0 12.7092 0.194565 12.9306 0.438826 12.9306C0.616846 12.9306 0.823854 12.9306 1.00602 12.9306C1.24614 12.9306 1.44484 12.7092 1.44484 12.4364V10.0683H2.39292ZM20.1536 6.0725C20.1536 5.79927 20.3481 5.57826 20.5924 5.57826C20.8863 5.57826 21.2714 5.57826 21.5612 5.57826C21.8054 5.57826 22 5.79927 22 6.0725C22 7.41158 22 11.0973 22 12.4364C22 12.7092 21.8054 12.9306 21.5612 12.9306C21.2714 12.9306 20.8863 12.9306 20.5924 12.9306C20.3481 12.9306 20.1536 12.7092 20.1536 12.4364C20.1536 11.0973 20.1536 7.41158 20.1536 6.0725ZM7.91984 0.494212C7.91984 0.220987 8.1144 0 8.35866 0C9.80352 0 14.399 0 15.8438 0C16.0881 0 16.2827 0.220987 16.2827 0.494212C16.2827 0.697033 16.2827 0.931092 16.2827 1.13345C16.2827 1.40667 16.0881 1.62816 15.8438 1.62816C14.399 1.62816 9.80352 1.62816 8.35866 1.62816C8.1144 1.62816 7.91984 1.40667 7.91984 1.13345C7.91984 0.931092 7.91984 0.697033 7.91984 0.494212Z' fill='%23EB5757'/%3e%3c/svg%3e",img$1o="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M17.4298 10.98C17.4698 10.66 17.4998 10.34 17.4998 10C17.4998 9.66 17.4698 9.34 17.4298 9.02L19.5398 7.37C19.7298 7.22 19.7798 6.95 19.6598 6.73L17.6598 3.27C17.5698 3.11 17.3998 3.02 17.2198 3.02C17.1598 3.02 17.0998 3.03 17.0498 3.05L14.5598 4.05C14.0398 3.65 13.4798 3.32 12.8698 3.07L12.4898 0.42C12.4598 0.18 12.2498 0 11.9998 0H7.99984C7.74984 0 7.53984 0.18 7.50984 0.42L7.12984 3.07C6.51984 3.32 5.95984 3.66 5.43984 4.05L2.94984 3.05C2.88984 3.03 2.82984 3.02 2.76984 3.02C2.59984 3.02 2.42984 3.11 2.33984 3.27L0.339839 6.73C0.209839 6.95 0.26984 7.22 0.45984 7.37L2.56984 9.02C2.52984 9.34 2.49984 9.67 2.49984 10C2.49984 10.33 2.52984 10.66 2.56984 10.98L0.45984 12.63C0.26984 12.78 0.219839 13.05 0.339839 13.27L2.33984 16.73C2.42984 16.89 2.59984 16.98 2.77984 16.98C2.83984 16.98 2.89984 16.97 2.94984 16.95L5.43984 15.95C5.95984 16.35 6.51984 16.68 7.12984 16.93L7.50984 19.58C7.53984 19.82 7.74984 20 7.99984 20H11.9998C12.2498 20 12.4598 19.82 12.4898 19.58L12.8698 16.93C13.4798 16.68 14.0398 16.34 14.5598 15.95L17.0498 16.95C17.1098 16.97 17.1698 16.98 17.2298 16.98C17.3998 16.98 17.5698 16.89 17.6598 16.73L19.6598 13.27C19.7798 13.05 19.7298 12.78 19.5398 12.63L17.4298 10.98ZM15.4498 9.27C15.4898 9.58 15.4998 9.79 15.4998 10C15.4998 10.21 15.4798 10.43 15.4498 10.73L15.3098 11.86L16.1998 12.56L17.2798 13.4L16.5798 14.61L15.3098 14.1L14.2698 13.68L13.3698 14.36C12.9398 14.68 12.5298 14.92 12.1198 15.09L11.0598 15.52L10.8998 16.65L10.6998 18H9.29984L9.10984 16.65L8.94984 15.52L7.88984 15.09C7.45984 14.91 7.05984 14.68 6.65984 14.38L5.74984 13.68L4.68984 14.11L3.41984 14.62L2.71984 13.41L3.79984 12.57L4.68984 11.87L4.54984 10.74C4.51984 10.43 4.49984 10.2 4.49984 10C4.49984 9.8 4.51984 9.57 4.54984 9.27L4.68984 8.14L3.79984 7.44L2.71984 6.6L3.41984 5.39L4.68984 5.9L5.72984 6.32L6.62984 5.64C7.05984 5.32 7.46984 5.08 7.87984 4.91L8.93984 4.48L9.09984 3.35L9.29984 2H10.6898L10.8798 3.35L11.0398 4.48L12.0998 4.91C12.5298 5.09 12.9298 5.32 13.3298 5.62L14.2398 6.32L15.2998 5.89L16.5698 5.38L17.2698 6.59L16.1998 7.44L15.3098 8.14L15.4498 9.27ZM9.99984 6C7.78984 6 5.99984 7.79 5.99984 10C5.99984 12.21 7.78984 14 9.99984 14C12.2098 14 13.9998 12.21 13.9998 10C13.9998 7.79 12.2098 6 9.99984 6ZM9.99984 12C8.89984 12 7.99984 11.1 7.99984 10C7.99984 8.9 8.89984 8 9.99984 8C11.0998 8 11.9998 8.9 11.9998 10C11.9998 11.1 11.0998 12 9.99984 12Z' fill='%23555F7C'/%3e%3c/svg%3e",img$1n="data:image/svg+xml,%3csvg width='20' height='16' viewBox='0 0 20 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M20 2C20 0.9 19.1 0 18 0H2C0.9 0 0 0.9 0 2V14C0 15.1 0.9 16 2 16H18C19.1 16 20 15.1 20 14V2ZM18 2L10 7L2 2H18ZM18 14H2V4L10 9L18 4V14Z' fill='%23555F7C'/%3e%3c/svg%3e",img$1m="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M15 7V16H10V7H15ZM21 5H18V18H21V5ZM17 5H8V18H17V5ZM7 5H4V18H7V5Z' fill='%23555F7C'/%3e%3c/svg%3e",img$1l="data:image/svg+xml,%3csvg width='22' height='18' viewBox='0 0 22 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M20 0H2C0.9 0 0 0.9 0 2V14C0 15.1 0.9 16 2 16H7V18H15V16H20C21.1 16 22 15.1 22 14V2C22 0.9 21.1 0 20 0ZM20 14H2V2H20V14ZM18 4H7V6H18V4Z' fill='%23555F7C'/%3e%3c/svg%3e",img$1k="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='7.25' fill='white' stroke='%23555F7C' stroke-width='0.5'/%3e%3c/svg%3e",img$1j="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cellipse cx='8' cy='8' rx='7.5' ry='7.5' fill='%231871E8'/%3e%3cpath d='M6.92857 11.3481L4.25 8.19915L5.00536 7.31114L6.92857 9.56581L10.9946 4.78564L11.75 5.67996L6.92857 11.3481Z' fill='white'/%3e%3c/svg%3e",img$1i="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='20' cy='20' r='20' fill='%23F2F5F9'/%3e%3cpath d='M12.3436 13.223H17.0948C17.3837 13.223 17.6405 12.976 17.6405 12.6981V11.5249C17.6405 11.247 17.3837 11 17.0948 11H12.3436C12.0547 11 11.7979 11.247 11.7979 11.5249V12.6981C11.7979 12.976 12.0226 13.223 12.3436 13.223Z' fill='%23555F7C'/%3e%3cpath d='M22.9383 13.223H27.6895C27.9785 13.223 28.2353 12.976 28.2353 12.6981V11.5249C28.2353 11.247 27.9785 11 27.6895 11H22.9383C22.6494 11 22.3926 11.247 22.3926 11.5249V12.6981C22.3926 12.976 22.6494 13.223 22.9383 13.223Z' fill='%23555F7C'/%3e%3cpath d='M29.9679 26.7769L28.2343 14.5503H22.4238L22.1348 16.4954H17.8973L17.6083 14.5503H11.7978L10.0642 26.7769C10.0321 26.8695 10 26.993 10 27.1165C10 28.4133 12.3756 28.9999 14.687 28.9999C17.0305 28.9999 19.374 28.4133 19.374 27.1165C19.374 26.993 19.3419 26.9004 19.3098 26.7769L18.6677 22.2691H21.2681L20.626 26.7769C20.5939 26.8695 20.5618 26.993 20.5618 27.1165C20.5618 28.4133 22.9374 28.9999 25.2488 28.9999C27.5923 28.9999 29.9358 28.4133 29.9358 27.1165C30.0321 26.993 30 26.9004 29.9679 26.7769ZM14.7191 27.7649C12.825 27.7649 11.6693 27.3635 11.3804 27.1165C11.4446 27.0856 11.5088 27.0239 11.6372 26.9621C12.1509 26.746 13.1782 26.4681 14.7191 26.4681C16.26 26.4681 17.3194 26.746 17.801 26.9621C17.8973 27.0239 17.9936 27.0548 18.0578 27.1165C17.7368 27.3635 16.5811 27.7649 14.7191 27.7649ZM25.313 27.7649C23.4189 27.7649 22.2953 27.3635 21.9743 27.1165C22.0385 27.0856 22.1027 27.0239 22.2311 26.9621C22.7448 26.746 23.7721 26.4681 25.313 26.4681C26.8539 26.4681 27.9133 26.746 28.3949 26.9621C28.4912 27.0239 28.5875 27.0548 28.6517 27.1165C28.3628 27.3635 27.2071 27.7649 25.313 27.7649Z' fill='%23555F7C'/%3e%3c/svg%3e",img$1h="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='20' cy='20' r='20' fill='%23F2F5F9'/%3e%3cpath d='M19.012 24.8384C17.8439 24.8465 16.6997 24.51 15.7246 23.8716C14.7494 23.2332 13.9873 22.3216 13.5348 21.2525C13.0823 20.1834 12.9599 19.005 13.183 17.8667C13.4062 16.7284 13.9649 15.6816 14.7883 14.859C15.6116 14.0365 16.6626 13.4752 17.8077 13.2465C18.9529 13.0178 20.1406 13.1319 21.2204 13.5744C22.3001 14.0168 23.2231 14.7677 23.8723 15.7318C24.5215 16.6958 24.8676 17.8296 24.8668 18.9892C24.867 19.3201 24.8393 19.6504 24.7841 19.9767L28.0859 23.2826C28.0964 23.2655 28.1051 23.2474 28.112 23.2286C28.3195 22.6654 28.5255 22.1014 28.7301 21.5367C28.751 21.474 28.7481 21.4058 28.7221 21.345C28.6961 21.2842 28.6486 21.2348 28.5886 21.2061C28.0967 20.8431 27.6092 20.478 27.113 20.1258C27.0419 20.0802 26.9857 20.0151 26.9513 19.9383C26.9169 19.8616 26.9057 19.7765 26.9193 19.6936C26.941 19.5229 26.9475 19.3522 26.9563 19.1815C26.9564 19.1122 26.9771 19.0445 27.0158 18.9869C27.0546 18.9292 27.1095 18.8842 27.1739 18.8574C27.705 18.5938 28.2339 18.3302 28.7606 18.0601C28.8474 18.0018 28.9276 17.9344 29 17.8591V17.6646C28.9347 17.3967 28.8694 17.1309 28.8085 16.8608C28.7388 16.5583 28.6779 16.2558 28.6104 15.9533C28.6054 15.8809 28.5716 15.8134 28.5166 15.7656C28.4615 15.7178 28.3896 15.6936 28.3166 15.6984C27.7028 15.6595 27.089 15.6184 26.4752 15.5838C26.3999 15.5864 26.3253 15.5673 26.2605 15.529C26.1957 15.4907 26.1433 15.4348 26.1096 15.3678C26.0443 15.236 25.9725 15.1063 25.8919 14.9788C25.8508 14.917 25.8288 14.8445 25.8288 14.7703C25.8288 14.6962 25.8508 14.6237 25.8919 14.5618C26.201 14.0475 26.5057 13.529 26.8126 13.0125C26.84 12.9817 26.8605 12.9455 26.8728 12.9063C26.8851 12.867 26.8889 12.8256 26.884 12.7848C26.879 12.744 26.8655 12.7047 26.8442 12.6695C26.8229 12.6343 26.7943 12.6039 26.7604 12.5804L25.5459 11.3401C25.5244 11.3067 25.4959 11.2783 25.4624 11.2569C25.4288 11.2355 25.391 11.2215 25.3515 11.216C25.312 11.2104 25.2718 11.2135 25.2336 11.2248C25.1954 11.2362 25.1601 11.2556 25.1302 11.2818C24.6056 11.5735 24.0789 11.863 23.5565 12.159C23.4898 12.2051 23.4104 12.2298 23.3291 12.2298C23.2478 12.2298 23.1684 12.2051 23.1016 12.159C22.9841 12.0856 22.8622 12.0207 22.7403 11.943C22.6785 11.9086 22.6278 11.8574 22.5942 11.7954C22.5607 11.7333 22.5457 11.6631 22.551 11.5929C22.5336 11.0009 22.5118 10.4045 22.4944 9.80812C22.4944 9.52506 22.4465 9.48401 22.1657 9.41703L20.5856 9.03457C20.5564 9.02523 20.5281 9.01367 20.5007 9H20.3048C20.2341 9.0825 20.1694 9.16987 20.1111 9.26145C19.8354 9.76419 19.5641 10.2684 19.2971 10.774C19.2712 10.8502 19.2196 10.9153 19.151 10.9582C19.0824 11.0011 19.001 11.0192 18.9206 11.0095C18.7679 11.0036 18.6151 11.0101 18.4635 11.029C18.3917 11.0367 18.3192 11.0237 18.2547 10.9915C18.1903 10.9593 18.1365 10.9093 18.1 10.8475C17.7539 10.344 17.4035 9.8427 17.0553 9.33492C17.0384 9.29741 17.0137 9.26387 16.9828 9.2365C16.9519 9.20913 16.9155 9.18855 16.8761 9.1761C16.8366 9.16366 16.795 9.15963 16.7538 9.16428C16.7127 9.16894 16.673 9.18217 16.6374 9.20311L15.0224 9.75194C14.9859 9.7566 14.9509 9.76891 14.9196 9.78806C14.8883 9.80721 14.8614 9.83277 14.8408 9.86302C14.8202 9.89328 14.8064 9.92754 14.8001 9.96352C14.7939 9.99951 14.7955 10.0364 14.8048 10.0717C14.8461 10.6249 14.8788 11.1802 14.9375 11.7312C14.9696 11.8497 14.9593 11.9755 14.9085 12.0874C14.8578 12.1992 14.7696 12.2902 14.6589 12.3449C14.5338 12.4159 14.4151 12.4976 14.3042 12.589C14.2438 12.6376 14.1704 12.6676 14.093 12.6753C14.0157 12.683 13.9378 12.668 13.8689 12.6322C13.3095 12.3989 12.7501 12.1677 12.1908 11.9365C12.1561 11.9117 12.1164 11.8947 12.0745 11.8868C12.0325 11.8788 11.9893 11.88 11.9479 11.8902C11.9064 11.9005 11.8678 11.9197 11.8345 11.9463C11.8013 11.9729 11.7743 12.0065 11.7555 12.0445L10.7412 13.3086C10.7082 13.3342 10.6815 13.367 10.6631 13.4045C10.6447 13.4419 10.6352 13.483 10.6352 13.5246C10.6352 13.5663 10.6447 13.6074 10.6631 13.6448C10.6815 13.6822 10.7082 13.715 10.7412 13.7407C11.096 14.2096 11.4486 14.6806 11.8077 15.1452C11.8605 15.2028 11.8946 15.2748 11.9054 15.3519C11.9163 15.429 11.9035 15.5076 11.8686 15.5774C11.7685 15.7934 11.6793 16.0095 11.5901 16.2429C11.5673 16.3059 11.5274 16.3615 11.4748 16.4035C11.4221 16.4454 11.3588 16.4721 11.2919 16.4806C10.6912 16.5864 10.0904 16.6966 9.48972 16.8068C9.44611 16.8055 9.4027 16.8133 9.36235 16.8297C9.322 16.8462 9.28562 16.871 9.2556 16.9024C9.22558 16.9338 9.20261 16.9712 9.18819 17.0121C9.17377 17.053 9.16824 17.0964 9.17194 17.1396C9.12188 17.5717 9.074 18.0039 9.02394 18.4209C9.01801 18.4573 9.01002 18.4934 9 18.529V18.9741L10.0687 19.3544C10.3516 19.4559 10.6324 19.5704 10.9153 19.6612C10.9851 19.6827 11.0471 19.7241 11.0935 19.7801C11.1399 19.8362 11.1688 19.9045 11.1765 19.9767C11.2222 20.2489 11.2745 20.5233 11.3267 20.7956C11.3437 20.8702 11.3392 20.948 11.3138 21.0202C11.2884 21.0924 11.2431 21.1561 11.183 21.204C10.7412 21.608 10.3059 22.0207 9.87061 22.4313C9.8365 22.4522 9.80727 22.4801 9.78484 22.5131C9.76241 22.5461 9.7473 22.5834 9.74051 22.6227C9.73372 22.6619 9.7354 22.7021 9.74545 22.7406C9.75549 22.7792 9.77367 22.8151 9.79878 22.8462L10.5018 24.2139C10.5117 24.2512 10.5296 24.2858 10.5543 24.3155C10.579 24.3452 10.61 24.3692 10.645 24.3858C10.6799 24.4025 10.7182 24.4114 10.7569 24.4119C10.7957 24.4125 10.8342 24.4046 10.8696 24.3889C11.466 24.2571 12.0602 24.1253 12.6544 23.9892C12.717 23.9716 12.7834 23.972 12.8458 23.9903C12.9082 24.0087 12.9641 24.0443 13.007 24.0929L13.6599 24.7736C13.7087 24.8199 13.7434 24.8788 13.7604 24.9437C13.7773 25.0086 13.7757 25.0769 13.7557 25.1409C13.599 25.7394 13.4488 26.3401 13.2986 26.9408C13.2849 26.9729 13.2779 27.0075 13.278 27.0424C13.278 27.0772 13.2852 27.1118 13.299 27.1438C13.3128 27.1759 13.333 27.2049 13.3584 27.229C13.3837 27.2532 13.4138 27.272 13.4466 27.2844L14.8113 28.0557C14.8393 28.0789 14.8719 28.0959 14.907 28.1057C14.9421 28.1156 14.9788 28.1181 15.0149 28.113C15.051 28.1079 15.0856 28.0954 15.1165 28.0762C15.1474 28.057 15.1739 28.0317 15.1944 28.0017C15.6297 27.5696 16.0476 27.1374 16.4698 26.7053C16.5189 26.6473 16.5839 26.6046 16.6568 26.5823C16.7298 26.5601 16.8077 26.5593 16.8812 26.5799C17.1685 26.6491 17.4579 26.7139 17.7518 26.7744C17.8229 26.7862 17.8892 26.8182 17.9424 26.8665C17.9957 26.9148 18.0338 26.9774 18.0521 27.0467C18.235 27.6041 18.4243 28.1595 18.605 28.7169C18.6341 28.8333 18.7064 28.9344 18.8074 29H19.5017L20.2286 28.9157L20.5029 28.879C20.5426 28.8822 20.5827 28.8775 20.6205 28.865C20.6584 28.8525 20.6933 28.8325 20.7232 28.8062C20.753 28.78 20.7773 28.748 20.7944 28.7123C20.8115 28.6765 20.8212 28.6377 20.8228 28.5981C20.9469 28.0147 21.0731 27.4291 21.1885 26.8414C21.1999 26.7626 21.2338 26.6888 21.2863 26.6286C21.3388 26.5685 21.4076 26.5246 21.4845 26.5022C21.5977 26.4633 21.7021 26.4222 21.8219 26.379L20.1764 24.7325C19.7928 24.8064 19.4027 24.8419 19.012 24.8384Z' fill='%23555F7C'/%3e%3cpath d='M30.5612 28.5288C29.829 27.8007 29.0969 27.0747 28.3647 26.3509L28.1122 26.1005C27.3346 25.3277 26.5593 24.5506 25.7773 23.7779C24.9273 22.9382 24.0729 22.1029 23.2251 21.261C23.0157 21.0636 22.8549 20.8216 22.7552 20.5538C22.6555 20.2859 22.6193 19.9992 22.6496 19.7155C22.6496 19.6378 22.6547 19.5608 22.665 19.4846C22.6769 19.2562 22.6681 19.0272 22.6386 18.8003C22.3794 16.8835 20.3126 15.5625 18.4434 16.1345C18.2084 16.2057 18.193 16.2575 18.3666 16.4281C18.7927 16.8511 19.221 17.2735 19.6515 17.6951C19.762 17.7908 19.8508 17.9083 19.9121 18.0399C19.9734 18.1715 20.0058 18.3144 20.0072 18.4591C20.0087 18.6039 19.9791 18.7473 19.9205 18.8801C19.8618 19.0129 19.7754 19.132 19.6668 19.2298C19.5021 19.3961 19.3374 19.5579 19.1726 19.7242C18.6631 20.2336 18.0481 20.2314 17.5385 19.7242C17.1402 19.3255 16.739 18.9298 16.3348 18.537C16.1855 18.3923 16.1394 18.4053 16.0801 18.6017C16.021 18.8353 15.9944 19.0756 16.001 19.3162C15.9894 19.9078 16.1429 20.4911 16.445 21.003C16.747 21.5148 17.186 21.9355 17.7142 22.2194C18.2572 22.5124 18.8726 22.6507 19.4911 22.6188H19.6361C19.8941 22.607 20.1517 22.6501 20.3913 22.7451C20.6308 22.8401 20.8467 22.9848 21.0242 23.1692L22.5815 24.7061L26.3045 28.3864L28.5009 30.5579C28.6326 30.6961 28.7916 30.8066 28.9681 30.8826C29.1446 30.9586 29.335 30.9985 29.5278 31C29.7205 31.0014 29.9115 30.9643 30.0891 30.8908C30.2668 30.8174 30.4274 30.7093 30.5612 30.573C30.7001 30.44 30.8104 30.2811 30.8858 30.1056C30.9612 29.93 31 29.7414 31 29.5509C31 29.3604 30.9612 29.1718 30.8858 28.9963C30.8104 28.8207 30.7001 28.6618 30.5612 28.5288Z' fill='%23555F7C'/%3e%3c/svg%3e",img$1g="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='20' cy='20' r='20' fill='%23F2F5F9'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M28.3216 21.8098V24.3143L25.4454 27H14.6341C14.6341 27 14.4995 26.6226 14.3363 26.1506C13.9528 25.0511 12.9165 24.3143 11.7538 24.3143V17.881C12.9206 17.881 13.9691 17.1536 14.373 16.0577C14.5198 15.6616 14.6341 15.3585 14.6341 15.3585H22.8752C23.4382 16.8745 24.8824 17.881 26.498 17.881H28.3216V20.3851H29.2559V18.3134C29.2559 18.0744 29.4517 17.881 29.6883 17.881H30.2472C30.4879 17.881 30.6797 18.0744 30.6797 18.3134C30.6797 19.4851 30.6797 22.7102 30.6797 23.8819C30.6797 24.1205 30.4879 24.3143 30.2472 24.3143C30.0718 24.3143 29.8678 24.3143 29.6883 24.3143C29.4517 24.3143 29.2559 24.1205 29.2559 23.8819V21.8098H28.3216ZM10.8195 18.3134C10.8195 18.0744 10.6278 17.881 10.3871 17.881C10.0974 17.881 9.71802 17.881 9.43244 17.881C9.19173 17.881 9 18.0744 9 18.3134C9 19.4851 9 22.7102 9 23.8819C9 24.1205 9.19173 24.3143 9.43244 24.3143C9.71802 24.3143 10.0974 24.3143 10.3871 24.3143C10.6278 24.3143 10.8195 24.1205 10.8195 23.8819C10.8195 22.7102 10.8195 19.4851 10.8195 18.3134ZM22.8752 13.4324C22.8752 13.1934 22.6834 13 22.4427 13C21.0189 13 16.4904 13 15.0665 13C14.8258 13 14.6341 13.1934 14.6341 13.4324C14.6341 13.6099 14.6341 13.8147 14.6341 13.9918C14.6341 14.2308 14.8258 14.4246 15.0665 14.4246C16.4904 14.4246 21.0189 14.4246 22.4427 14.4246C22.6834 14.4246 22.8752 14.2308 22.8752 13.9918C22.8752 13.8147 22.8752 13.6099 22.8752 13.4324Z' fill='%23555F7C'/%3e%3c/svg%3e",img$1f="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='20' cy='20' r='20' fill='%23FFBB0A'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M22.196 7.80975C21.6328 7.30933 20.8631 7 20.0136 7C19.1638 7 18.3944 7.30933 17.8315 7.80975H22.196ZM23.3012 9.54633C23.3012 9.28856 23.073 9.07959 22.793 9.07959H17.2336C16.9539 9.07959 16.7263 9.2889 16.7263 9.54633C16.7263 9.80376 16.9539 10.0127 17.2336 10.0127H22.793C23.073 10.0131 23.3012 9.80376 23.3012 9.54633ZM16.7263 12.1562C16.7263 11.8988 16.9539 11.6895 17.2336 11.6895H22.793C23.073 11.6895 23.3012 11.8988 23.3012 12.1562C23.3012 12.4136 23.0733 12.6229 22.793 12.6229H17.2336C16.9539 12.6229 16.7263 12.414 16.7263 12.1562ZM17.2842 13.8926H22.743C22.8768 15.5313 23.4332 16.2969 24.0117 17.0927C24.739 18.0934 25.501 19.1419 25.5012 22.0341C25.5012 25.0029 22.9473 27.7024 20.0182 27.7024C20.0169 27.7024 20.0153 27.702 20.0138 27.702L20.0117 27.7022L20.0094 27.7024C17.0799 27.7024 14.5267 25.0029 14.5267 22.0341C14.5267 19.1418 15.2886 18.0934 16.0158 17.0926C16.5941 16.2968 17.1504 15.5312 17.2842 13.8926ZM17.2336 11.2162C16.9539 11.2162 16.7263 11.0069 16.7263 10.7491C16.7263 10.492 16.9539 10.2827 17.2336 10.2827H22.793C23.073 10.2827 23.3012 10.492 23.3012 10.7491C23.3012 11.0069 23.0733 11.2162 22.793 11.2162H17.2336ZM8 19.97C8 19.6359 8.24797 19.3647 8.55377 19.3647H12.6879C12.6049 19.7263 12.5386 20.1284 12.4924 20.5756H8.55377C8.24797 20.5756 8 20.3041 8 19.97ZM11.222 27.6208C11.0058 27.8573 11.0058 28.2405 11.222 28.4766C11.3298 28.5952 11.4715 28.6546 11.6133 28.6546C11.755 28.6546 11.8968 28.5952 12.0049 28.4766L13.9563 26.3426C13.7099 26.0326 13.4895 25.7009 13.2959 25.3521L11.222 27.6208ZM28.387 28.6545C28.2449 28.6545 28.1035 28.595 27.9947 28.4765L26.0581 26.3579C26.3051 26.0493 26.5264 25.7176 26.7206 25.3701L28.7782 27.6207C28.9945 27.8568 28.9945 28.24 28.7782 28.4765C28.6698 28.595 28.5281 28.6545 28.387 28.6545ZM31.4462 20.5756C31.752 20.5756 31.9999 20.3041 31.9999 19.97C31.9999 19.6356 31.752 19.3647 31.4462 19.3647H27.3391C27.4227 19.7267 27.489 20.1288 27.5349 20.5756H31.4462ZM20.018 29.9133H20.0525H20.062C20.227 29.9123 20.3904 29.9013 20.5538 29.8862V32.3945C20.5538 32.7289 20.3059 33.0001 20.0001 33.0001C19.6943 33.0001 19.4463 32.7289 19.4463 32.3945V29.8838C19.6185 29.9006 19.7914 29.9123 19.9661 29.9133H20.018Z' fill='white'/%3e%3c/svg%3e",img$1e="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='20' cy='20' r='20' fill='%231E53A3'/%3e%3cpath d='M19.8678 8C19.5887 8 19.3623 8.24379 19.3623 8.54455V12.5337H20.3732V8.54455C20.3732 8.24379 20.1469 8 19.8678 8Z' fill='white'/%3e%3cpath d='M23.1733 19.5016C23.7696 19.5016 24.2548 18.979 24.2548 18.3365C24.2548 17.694 23.7696 17.1714 23.1733 17.1714C22.577 17.1714 22.0918 17.694 22.0918 18.3365C22.0918 18.979 22.5769 19.5016 23.1733 19.5016Z' fill='white'/%3e%3cpath d='M23.3567 27.5781H16.3779V29.9993H23.3567V27.5781Z' fill='white'/%3e%3cpath d='M22.1928 24.1611H17.5419C16.9001 24.1611 16.3779 24.7237 16.3779 25.4151V26.4892H23.3567V25.4151C23.3567 24.7237 22.8345 24.1611 22.1928 24.1611Z' fill='white'/%3e%3cpath d='M16.8256 19.5016C17.422 19.5016 17.9071 18.979 17.9071 18.3365C17.9071 17.694 17.422 17.1714 16.8256 17.1714C16.2293 17.1714 15.7441 17.694 15.7441 18.3365C15.7441 18.979 16.2293 19.5016 16.8256 19.5016Z' fill='white'/%3e%3cpath d='M9 18.6357V24.8452C9 25.5366 9.52215 26.0991 10.1639 26.0991H11.4274V16.7822H10.7205C9.77174 16.7822 9 17.6137 9 18.6357Z' fill='white'/%3e%3cpath d='M31.0006 24.8452V18.6357C31.0006 17.6137 30.2288 16.7822 29.2801 16.7822H28.3086V26.0991H29.8366C30.4784 26.0991 31.0006 25.5366 31.0006 24.8452Z' fill='white'/%3e%3cpath d='M12.4385 14.9321V28.7461C12.4385 29.4376 12.9606 30.0001 13.6024 30.0001H15.3674V25.4157C15.3674 24.1237 16.343 23.0727 17.5423 23.0727H22.1932C23.3924 23.0727 24.368 24.1237 24.368 25.4157V30.0001H26.133C26.7748 30.0001 27.2969 29.4376 27.2969 28.7461V14.9321C27.2969 13.9101 26.5251 13.0786 25.5765 13.0786H14.1589C13.2103 13.0787 12.4385 13.9101 12.4385 14.9321ZM23.1739 16.0831C24.3276 16.0831 25.2663 17.0943 25.2663 18.3373C25.2663 19.5803 24.3276 20.5915 23.1739 20.5915C22.0201 20.5915 21.0814 19.5803 21.0814 18.3373C21.0814 17.0943 22.0201 16.0831 23.1739 16.0831ZM16.8261 16.0831C17.9798 16.0831 18.9185 17.0943 18.9185 18.3373C18.9185 19.5803 17.9799 20.5915 16.8261 20.5915C15.6723 20.5915 14.7337 19.5803 14.7337 18.3373C14.7337 17.0943 15.6723 16.0831 16.8261 16.0831Z' fill='white'/%3e%3c/svg%3e",img$1d="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='20' cy='20' r='20' fill='%23A21E1E'/%3e %3cpath d='M19.7977 15.8317C21.132 15.8317 22.2136 14.7501 22.2136 13.4159C22.2136 12.0816 21.132 11 19.7977 11C18.4635 11 17.3818 12.0816 17.3818 13.4159C17.3818 14.7501 18.4635 15.8317 19.7977 15.8317Z' fill='white'/%3e %3cpath d='M16.5816 17.7526C17.2612 16.5755 16.8579 15.0705 15.6809 14.391C14.5039 13.7114 12.9988 14.1147 12.3193 15.2917C11.6398 16.4687 12.043 17.9737 13.22 18.6533C14.397 19.3328 15.9021 18.9296 16.5816 17.7526Z' fill='white'/%3e %3cpath d='M10.4928 25.408C9.81329 24.231 8.30825 23.8277 7.13124 24.5072C5.95423 25.1868 5.55096 26.6918 6.2305 27.8688C6.91005 29.0458 8.41509 29.4491 9.5921 28.7696C10.7691 28.09 11.1724 26.585 10.4928 25.408Z' fill='white'/%3e %3cpath d='M19.7977 28.2229C21.132 28.2229 22.2136 27.1412 22.2136 25.807C22.2136 24.4727 21.132 23.3911 19.7977 23.3911C18.4635 23.3911 17.3818 24.4727 17.3818 25.807C17.3818 27.1412 18.4635 28.2229 19.7977 28.2229Z' fill='white'/%3e %3cpath d='M23.0131 21.4657C22.3335 22.6427 22.7368 24.1478 23.9138 24.8273C25.0908 25.5069 26.5959 25.1036 27.2754 23.9266C27.955 22.7496 27.5517 21.2445 26.3747 20.565C25.1977 19.8854 23.6926 20.2887 23.0131 21.4657Z' fill='white'/%3e %3cpath d='M23.013 17.7527C23.6926 18.9297 25.1976 19.333 26.3746 18.6534C27.5516 17.9739 27.9549 16.4688 27.2754 15.2918C26.5958 14.1148 25.0908 13.7115 23.9138 14.3911C22.7367 15.0706 22.3335 16.5757 23.013 17.7527Z' fill='white'/%3e %3cpath d='M19.7977 21.9885C21.132 21.9885 22.2136 20.9069 22.2136 19.5726C22.2136 18.2384 21.132 17.1567 19.7977 17.1567C18.4635 17.1567 17.3818 18.2384 17.3818 19.5726C17.3818 20.9069 18.4635 21.9885 19.7977 21.9885Z' fill='white'/%3e%3c/svg%3e",img$1c="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' %3e %3cpath d='M12 6V9L16 5L12 1V4C7.58 4 4 7.58 4 12C4 13.57 4.46 15.03 5.24 16.26L6.7 14.8C6.25 13.97 6 13.01 6 12C6 8.69 8.69 6 12 6ZM18.76 7.74L17.3 9.2C17.74 10.04 18 10.99 18 12C18 15.31 15.31 18 12 18V15L8 19L12 23V20C16.42 20 20 16.42 20 12C20 10.43 19.54 8.97 18.76 7.74V7.74Z' /%3e%3c/svg%3e",img$1b="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' %3e %3cpath d='M12 6.5C15.79 6.5 19.17 8.63 20.82 12C19.17 15.37 15.8 17.5 12 17.5C8.2 17.5 4.83 15.37 3.18 12C4.83 8.63 8.21 6.5 12 6.5ZM12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 9.5C13.38 9.5 14.5 10.62 14.5 12C14.5 13.38 13.38 14.5 12 14.5C10.62 14.5 9.5 13.38 9.5 12C9.5 10.62 10.62 9.5 12 9.5ZM12 7.5C9.52 7.5 7.5 9.52 7.5 12C7.5 14.48 9.52 16.5 12 16.5C14.48 16.5 16.5 14.48 16.5 12C16.5 9.52 14.48 7.5 12 7.5Z' /%3e%3c/svg%3e",img$1a="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M18 16.08C17.24 16.08 16.56 16.38 16.04 16.85L8.91 12.7C8.96 12.47 9 12.24 9 12C9 11.76 8.96 11.53 8.91 11.3L15.96 7.19C16.5 7.69 17.21 8 18 8C19.66 8 21 6.66 21 5C21 3.34 19.66 2 18 2C16.34 2 15 3.34 15 5C15 5.24 15.04 5.47 15.09 5.7L8.04 9.81C7.5 9.31 6.79 9 6 9C4.34 9 3 10.34 3 12C3 13.66 4.34 15 6 15C6.79 15 7.5 14.69 8.04 14.19L15.16 18.35C15.11 18.56 15.08 18.78 15.08 19C15.08 20.61 16.39 21.92 18 21.92C19.61 21.92 20.92 20.61 20.92 19C20.92 17.39 19.61 16.08 18 16.08ZM18 4C18.55 4 19 4.45 19 5C19 5.55 18.55 6 18 6C17.45 6 17 5.55 17 5C17 4.45 17.45 4 18 4ZM6 13C5.45 13 5 12.55 5 12C5 11.45 5.45 11 6 11C6.55 11 7 11.45 7 12C7 12.55 6.55 13 6 13ZM18 20.02C17.45 20.02 17 19.57 17 19.02C17 18.47 17.45 18.02 18 18.02C18.55 18.02 19 18.47 19 19.02C19 19.57 18.55 20.02 18 20.02Z' /%3e%3c/svg%3e",img$19="data:image/svg+xml,%3csvg width='28' height='24' viewBox='0 0 28 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath opacity='0.36' d='M15.9526 0.125092L19.5694 6.33421L23.1961 0.125092H15.9526Z' fill='%231871E8'/%3e%3cpath opacity='0.9' d='M23.1955 0.125092L9.27832 23.9521H18.6074L27.1361 9.28837L23.1955 0.125092Z' fill='%231871E8'/%3e%3cpath opacity='0.36' d='M4.69203 0.125L0.75 9.29182L9.2818 23.961L13.9506 15.9762L4.69203 0.125Z' fill='%231871E8'/%3e%3c/svg%3e",img$18="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M20.0013 30C21.1614 30 22.1107 29.0769 22.1107 27.9487H17.8919C17.8919 29.0769 18.8306 30 20.0013 30ZM26.3294 23.8462V18.7179C26.3294 15.5692 24.5997 12.9333 21.5833 12.2359V11.5385C21.5833 10.6872 20.8767 10 20.0013 10C19.1259 10 18.4193 10.6872 18.4193 11.5385V12.2359C15.3924 12.9333 13.6732 15.559 13.6732 18.7179V23.8462L12.3127 25.1692C11.6482 25.8154 12.1123 26.9231 13.051 26.9231H26.9411C27.8798 26.9231 28.3544 25.8154 27.6899 25.1692L26.3294 23.8462Z' fill='%231871E8'/%3e%3c/svg%3e",img$17="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M19.9937 30C25.47 30 30 25.47 30 20.0063C30 14.53 25.4574 10 19.9937 10C14.5173 10 10 14.53 10 20.0063C10 25.47 14.53 30 19.9937 30ZM19.8296 22.1262C19.3628 22.1262 19.0978 21.8738 19.0978 21.4069V21.2177C19.0978 20.2334 19.6152 19.6782 20.3849 19.1609C21.3186 18.5047 21.735 18.1388 21.735 17.4196C21.735 16.612 21.0915 16.0442 20.0694 16.0442C19.2871 16.0442 18.7066 16.4858 18.4417 17.1293C18.164 17.4827 18.0631 17.7603 17.5458 17.7603C17.2303 17.7603 16.9148 17.5331 16.9148 17.1167C16.9148 16.9527 16.9401 16.8013 16.9779 16.6372C17.2303 15.653 18.3785 14.795 20.1325 14.795C21.8612 14.795 23.3249 15.7161 23.3249 17.3565C23.3249 18.5426 22.6561 19.1357 21.6467 19.8296C20.9022 20.3344 20.5615 20.7003 20.5615 21.2934V21.47C20.5615 21.836 20.2965 22.1262 19.8296 22.1262ZM19.8675 25.0536C19.3249 25.0536 18.8328 24.612 18.8328 24.0442C18.8328 23.4764 19.3249 23.0473 19.8675 23.0473C20.4101 23.0473 20.9022 23.4637 20.9022 24.0442C20.9022 24.6246 20.4101 25.0536 19.8675 25.0536Z' fill='%231871E8'/%3e%3c/svg%3e",img$16="data:image/svg+xml,%3csvg width='14' height='12' viewBox='0 0 14 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.6 1.33333H10.381L9.1 0H4.9L3.619 1.33333H1.4C0.63 1.33333 0 1.93333 0 2.66667V10.6667C0 11.4 0.63 12 1.4 12H12.6C13.37 12 14 11.4 14 10.6667V2.66667C14 1.93333 13.37 1.33333 12.6 1.33333ZM12.6 10.6667H1.4V2.66667H4.235L5.516 1.33333H8.484L9.765 2.66667H12.6V10.6667ZM7 3.33333C5.068 3.33333 3.5 4.82667 3.5 6.66667C3.5 8.50667 5.068 10 7 10C8.932 10 10.5 8.50667 10.5 6.66667C10.5 4.82667 8.932 3.33333 7 3.33333ZM7 8.66667C5.845 8.66667 4.9 7.76667 4.9 6.66667C4.9 5.56667 5.845 4.66667 7 4.66667C8.155 4.66667 9.1 5.56667 9.1 6.66667C9.1 7.76667 8.155 8.66667 7 8.66667Z' fill='%23555F7C'/%3e%3c/svg%3e",img$13="data:image/svg+xml,%3csvg width='19' height='18' viewBox='0 0 19 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0 14.25V18H3.75L14.81 6.94L11.06 3.19L0 14.25ZM2.92 16H2V15.08L11.06 6.02L11.98 6.94L2.92 16ZM17.71 2.63L15.37 0.29C15.17 0.09 14.92 0 14.66 0C14.4 0 14.15 0.1 13.96 0.29L12.13 2.12L15.88 5.87L17.71 4.04C18.1 3.65 18.1 3.02 17.71 2.63Z' fill='%23555F7C'/%3e%3c/svg%3e",img$12="data:image/svg+xml,%3csvg width='16' height='19' viewBox='0 0 16 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3.11007 7.53L1.70007 6.11C0.800068 7.27 0.240068 8.61 0.0700684 10H2.09007C2.23007 9.13 2.58007 8.28 3.11007 7.53ZM2.09007 12H0.0700684C0.240068 13.39 0.790068 14.73 1.69007 15.89L3.10007 14.47C2.58007 13.72 2.23007 12.88 2.09007 12ZM3.10007 17.32C4.26007 18.22 5.61007 18.76 7.00007 18.93V16.9C6.13007 16.75 5.29007 16.41 4.54007 15.87L3.10007 17.32ZM9.00007 3.07V0L4.45007 4.55L9.00007 9V5.09C11.8401 5.57 14.0001 8.03 14.0001 11C14.0001 13.97 11.8401 16.43 9.00007 16.91V18.93C12.9501 18.44 16.0001 15.08 16.0001 11C16.0001 6.92 12.9501 3.56 9.00007 3.07Z' fill='%23555F7C'/%3e%3c/svg%3e",img$_="data:image/svg+xml,%3csvg width='21' height='20' viewBox='0 0 27 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.03768 0H6.33277C6.71385 0 7.07004 0.166555 7.33684 0.422207C7.59075 0.678308 7.74371 1.03649 7.74371 1.43318V5.74524C7.74371 6.14193 7.59075 6.50011 7.33684 6.75621C7.07004 7.01187 6.7143 7.17842 6.33277 7.17842H2.03768C1.65659 7.17842 1.30086 7.01187 1.03361 6.75621C0.779699 6.50011 0.627176 6.14193 0.627176 5.74524V1.43318C0.627176 1.03649 0.779699 0.678308 1.03361 0.422207C1.30041 0.166555 1.65615 0 2.03768 0ZM20.6797 18.8225H24.9623C25.3563 18.8225 25.7125 18.9886 25.9664 19.2438C26.2203 19.4999 26.3853 19.8585 26.3853 20.2548V24.5668C26.3853 24.964 26.2203 25.3226 25.9664 25.5778C25.7125 25.8339 25.3563 26 24.9623 26H20.6797C20.2857 26 19.93 25.8339 19.6756 25.5778C19.4088 25.3226 19.2567 24.964 19.2567 24.5668V20.2548C19.2567 19.8585 19.4093 19.4999 19.6756 19.2438C19.9304 18.9886 20.2861 18.8225 20.6797 18.8225ZM11.2637 18.8225H15.5588C15.9399 18.8225 16.2957 18.9886 16.5629 19.2438C16.8168 19.4999 16.9693 19.8585 16.9693 20.2548V24.5668C16.9693 24.964 16.8168 25.3226 16.5629 25.5778C16.2957 25.8339 15.9404 26 15.5588 26H11.2637C10.8827 26 10.5265 25.8339 10.2597 25.5778C10.0053 25.3226 9.8528 24.964 9.8528 24.5668V20.2548C9.8528 19.8585 10.0053 19.4999 10.2597 19.2438C10.5265 18.9886 10.8822 18.8225 11.2637 18.8225ZM1.9234 18.8225H6.20604C6.60002 18.8225 6.95575 18.9886 7.21011 19.2438C7.46402 19.4999 7.62899 19.8585 7.62899 20.2548V24.5668C7.62899 24.964 7.46402 25.3226 7.21011 25.5778C6.95575 25.8339 6.60002 26 6.20604 26H1.9234C1.52942 26 1.17323 25.8339 0.919326 25.5778C0.665418 25.3226 0.5 24.964 0.5 24.5668V20.2548C0.5 19.8585 0.665418 19.4999 0.919326 19.2438C1.17323 18.9886 1.52942 18.8225 1.9234 18.8225ZM20.7308 9.41751H25.0259C25.407 9.41751 25.7632 9.57108 26.03 9.82718C26.2839 10.0958 26.4369 10.454 26.4369 10.8377V15.1628C26.4369 15.5465 26.2839 15.9042 26.03 16.1737C25.7632 16.4289 25.4074 16.5829 25.0259 16.5829H20.7308C20.3497 16.5829 19.994 16.4289 19.7267 16.1737C19.4728 15.9042 19.3203 15.5469 19.3203 15.1628V10.8377C19.3203 10.454 19.4728 10.0958 19.7267 9.82718C19.994 9.57108 20.3493 9.41751 20.7308 9.41751ZM11.3269 9.41751H15.6095C16.0035 9.41751 16.3597 9.57108 16.6136 9.82718C16.8804 10.0958 17.0325 10.454 17.0325 10.8377V15.1628C17.0325 15.5465 16.88 15.9042 16.6136 16.1737C16.3597 16.4289 16.0035 16.5829 15.6095 16.5829H11.3269C10.9329 16.5829 10.5767 16.4289 10.3228 16.1737C10.0689 15.9042 9.90349 15.5469 9.90349 15.1628V10.8377C9.90349 10.454 10.0689 10.0958 10.3228 9.82718C10.5772 9.57108 10.9334 9.41751 11.3269 9.41751ZM1.98654 9.41751H6.26918C6.66316 9.41751 7.01934 9.57108 7.27325 9.82718C7.52716 10.0958 7.69258 10.454 7.69258 10.8377V15.1628C7.69258 15.5465 7.52716 15.9042 7.27325 16.1737C7.01934 16.4289 6.66316 16.5829 6.26918 16.5829H1.98654C1.59256 16.5829 1.23682 16.4289 0.98247 16.1737C0.715666 15.9042 0.563588 15.5469 0.563588 15.1628V10.8377C0.563588 10.454 0.716111 10.0958 0.98247 9.82718C1.23727 9.57108 1.593 9.41751 1.98654 9.41751ZM20.7944 0H25.0766C25.4706 0 25.8268 0.166555 26.0807 0.422207C26.3479 0.678308 26.5 1.03649 26.5 1.43318V5.74524C26.5 6.14193 26.3475 6.50011 26.0807 6.75621C25.8268 7.01187 25.4706 7.17842 25.0766 7.17842H20.7944C20.4 7.17842 20.0442 7.01187 19.7903 6.75621C19.536 6.50011 19.371 6.14193 19.371 5.74524V1.43318C19.371 1.03649 19.536 0.678308 19.7903 0.422207C20.0571 0.166555 20.4004 0 20.7944 0ZM11.3905 0H15.6731C16.0671 0 16.4233 0.166555 16.6772 0.422207C16.9311 0.678308 17.0965 1.03649 17.0965 1.43318V5.74524C17.0965 6.14193 16.9311 6.50011 16.6772 6.75621C16.4233 7.01187 16.0671 7.17842 15.6731 7.17842H11.3905C10.9965 7.17842 10.6408 7.01187 10.3864 6.75621C10.1325 6.50011 9.96752 6.14193 9.96752 5.74524V1.43318C9.96752 1.03649 10.1325 0.678308 10.3864 0.422207C10.6408 0.166555 10.9965 0 11.3905 0Z' fill='%23555F7C'/%3e%3c/svg%3e",img$V="data:image/svg+xml,%3csvg width='30' height='24' viewBox='0 0 30 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.89984 17.9131C3.19783 17.9131 1 15.8699 1 13.3593C1 11.0619 2.83988 9.15717 5.22364 8.84904C5.55861 4.46881 9.5023 1 14.2998 1C17.9816 1 21.2874 3.07115 22.6927 6.20387C26.1733 6.20387 29 8.83083 29 12.0585C29 15.2861 27.1057 17.9131 23.6328 17.9131' stroke='%2393930C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M20.0526 18.1812C20.0526 20.8188 17.7533 22.9652 14.9278 22.9652C13.004 22.9652 11.238 21.946 10.3652 20.3559H12.8316C12.9599 20.3559 13.0645 20.2583 13.0645 20.1385C13.0645 20.0182 12.9599 19.9206 12.8316 19.9206H9.8029C9.67464 19.9206 9.57007 20.0182 9.57007 20.1385V22.9652C9.57007 23.0849 9.67464 23.1826 9.8029 23.1826C9.93181 23.1826 10.0364 23.0849 10.0364 22.9652V20.7089C11.0151 22.3556 12.8915 23.3999 14.9278 23.3999C18.0104 23.3999 20.5183 21.0589 20.5183 18.1812C20.5183 18.0609 20.4143 17.9639 20.2854 17.9639C20.1565 17.9639 20.0526 18.0609 20.0526 18.1812Z' fill='%2393930C' stroke='%2393930C' stroke-width='0.6'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.57047 18.3989C9.69873 18.3989 9.8033 18.3019 9.8033 18.1816C9.8033 15.544 12.1026 13.3976 14.9282 13.3976C16.8513 13.3976 18.6186 14.4168 19.49 16.0069H17.0243C16.896 16.0069 16.7914 16.1045 16.7914 16.2243C16.7914 16.3446 16.896 16.4422 17.0243 16.4422H20.053C20.1813 16.4422 20.2852 16.3446 20.2852 16.2243V13.3976C20.2852 13.2779 20.1813 13.1802 20.053 13.1802C19.9234 13.1802 19.8195 13.2779 19.8195 13.3976V15.6539C18.8409 14.0073 16.9638 12.9629 14.9282 12.9629C11.8455 12.9629 9.33765 15.3039 9.33765 18.1816C9.33765 18.3019 9.44156 18.3989 9.57047 18.3989Z' fill='%2393930C' stroke='%2393930C' stroke-width='0.6'/%3e%3c/svg%3e",img$U="data:image/svg+xml,%3csvg width='30' height='28' viewBox='0 0 30 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M25.6629 11.3035C25.5391 10.8067 25.2913 10.4348 25.1674 10.0614C25.4167 9.68808 26.6554 8.1976 26.9047 7.82574C27.0286 7.70229 27.1539 7.45237 27.1539 7.0805C27.1539 6.58368 26.9047 5.96189 23.6825 2.98095C23.187 2.60758 22.4422 2.60758 22.0706 2.98095L19.7155 4.72134C19.3439 4.59789 18.9707 4.34797 18.5991 4.22451L18.1036 1.11861C17.9798 0.496825 17.4828 0 16.8634 0H12.771C12.1502 0 11.6547 0.373371 11.5308 0.995155C11.2815 2.11376 11.1592 3.23087 11.0353 4.22602C10.6637 4.34947 10.2905 4.59939 9.91893 4.72284L7.68619 2.859C7.43693 2.73555 7.19069 2.61059 6.81908 2.61059C5.7027 2.61059 2.8506 6.21332 2.8506 6.21332C2.60134 6.46173 2.47898 6.71014 2.47898 6.95855C2.47898 7.33193 2.60285 7.58034 2.8506 7.82724C3.34609 8.44903 3.96697 9.19426 4.58784 10.063C4.33859 10.4363 4.21623 10.8082 4.09235 11.1816L0.992497 11.6784C0.37162 11.8018 0 12.3002 0 12.9204V17.02C0 17.6418 0.495493 18.1386 0.992497 18.2621L4.09235 18.7589C4.21623 19.1323 4.46397 19.5041 4.58784 20.0009C4.33859 20.3743 3.09985 21.8648 2.8506 22.2367C2.72672 22.3601 2.60134 22.61 2.60134 22.9819C2.60134 23.4787 2.8506 24.1005 5.82507 26.958L5.94894 27.0815C6.44443 27.4548 7.31306 27.4548 7.5608 27.0815L9.42041 25.591V24.1005L6.93993 26.2128H6.81605L6.69218 26.0893C4.21169 23.7301 3.84007 23.1084 3.84007 22.9834C4.08933 22.61 5.45194 20.9961 5.82356 20.3743C5.94743 20.2509 5.94743 20.0009 5.82356 19.7525C5.45194 19.1308 5.20268 18.5105 5.07881 18.0121C4.95493 17.7637 4.82955 17.6388 4.58331 17.6388L1.23571 17.142V12.9189L4.70719 12.4221C4.95644 12.4221 5.07881 12.1737 5.20268 12.0487C5.45194 11.5519 5.5743 11.0536 5.82356 10.4348C5.94743 10.1864 5.94743 9.938 5.82356 9.81304C5.07881 8.69443 4.33557 7.82574 3.71469 7.0805V6.83209C4.33557 6.21031 6.44292 3.9746 6.81454 3.85114H6.93842L9.54278 5.83844C9.66665 5.96189 9.9144 5.96189 10.1637 5.83844C10.6591 5.71499 11.1562 5.46507 11.7755 5.21666C12.0248 5.0932 12.1471 4.96825 12.1471 4.59487C12.1471 4.59487 12.3964 2.35916 12.6426 1.36401C12.6426 1.36401 12.6426 1.24056 12.7665 1.24056H16.9827L17.4782 4.71833C17.4782 4.96674 17.7275 5.0917 17.8498 5.21515C18.3453 5.33861 18.8423 5.58852 19.4617 5.83694C19.711 5.96039 19.9572 5.96039 20.0826 5.83694L22.9347 3.84964C22.9347 3.84964 26.0345 6.95554 26.0345 7.0805C25.7853 7.45387 25.5391 7.82574 25.1674 8.19911C24.7958 8.69593 24.4227 9.19427 24.0511 9.68958C23.9272 9.81304 23.9272 10.063 24.0511 10.3114C24.3003 10.8082 24.5466 11.43 24.7958 12.0518C24.9197 12.3002 25.0451 12.4251 25.2913 12.4251L28.7628 13.0469V17.2699L25.2913 17.7667C25.042 17.7667 24.9197 18.0152 24.7958 18.1401C24.6719 18.6369 24.4242 19.1353 24.1749 19.754C24.0511 20.0025 24.0511 20.2509 24.1749 20.3758C24.7958 21.371 25.5391 22.2397 26.1584 22.9849V23.2333C25.6629 23.9786 23.5541 26.2143 23.0586 26.3392H22.9347L20.4542 24.3519V25.8424L22.3138 27.3329C22.5631 27.4563 22.8093 27.5813 23.0586 27.5813C24.1749 27.5813 27.027 24.1035 27.027 24.1035C27.2763 23.8551 27.3987 23.6067 27.3987 23.2348C27.3987 22.863 27.2748 22.613 27.1494 22.3661C26.5285 21.6209 25.9092 20.9991 25.4122 20.1304C25.6614 19.7571 25.7838 19.3852 25.9077 19.0118L29.0075 18.515C29.6284 18.3915 30 17.7698 30 17.2729V13.1734C29.7507 12.4281 29.3791 11.9313 28.7598 11.8064L25.6599 11.305L25.6629 11.3035Z' fill='%233F479E'/%3e%3cpath d='M12.1879 20.4815C10.2948 18.5845 9.39819 16.8973 9.39819 14.9617C9.39819 12.0535 11.8214 9.75037 14.8651 9.75037H14.9995C18.0424 9.75037 20.4665 12.0544 20.4665 14.9617L20.4662 15.0984C20.4174 16.9066 19.4092 18.7476 17.6784 20.4815L17.5076 20.6526V21.8816C17.5076 22.2047 17.2442 22.4667 16.9192 22.4667H12.9471C12.6221 22.4667 12.3587 22.2047 12.3587 21.8816V20.6526L12.1879 20.4815ZM16.3307 20.4116C16.3307 20.2572 16.3921 20.1091 16.5015 19.9995L16.843 19.6573C18.382 18.1155 19.2502 16.5302 19.2896 15.0827V14.9617C19.2896 12.7127 17.404 10.9204 14.9995 10.9204H14.8651C12.4599 10.9204 10.5751 12.7118 10.5751 14.9617C10.5751 16.5408 11.3291 17.9597 13.0234 19.6574L13.3648 19.9996C13.4742 20.1092 13.5356 20.2573 13.5356 20.4116V21.2966H16.3307V20.4116Z' fill='%233F479E'/%3e%3cpath d='M17.6214 24.1705H12.5215V25.4469H17.6214V24.1705Z' fill='%233F479E'/%3e%3cpath d='M16.3464 26.7236H13.7965V28H16.3464V26.7236Z' fill='%233F479E'/%3e%3c/svg%3e",img$T="data:image/svg+xml,%3csvg width='36' height='36' viewBox='0 0 36 36' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M28.5 7.5V28.5H7.5V7.5H28.5ZM28.5 4.5H7.5C5.85 4.5 4.5 5.85 4.5 7.5V28.5C4.5 30.15 5.85 31.5 7.5 31.5H28.5C30.15 31.5 31.5 30.15 31.5 28.5V7.5C31.5 5.85 30.15 4.5 28.5 4.5Z' fill='%23555F7C'/%3e%3cpath d='M21 25.5H10.5V22.5H21V25.5ZM25.5 19.5H10.5V16.5H25.5V19.5ZM25.5 13.5H10.5V10.5H25.5V13.5Z' fill='%23555F7C'/%3e%3c/svg%3e",img$S="data:image/svg+xml,%3csvg width='30' height='28' viewBox='0 0 30 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.48781 1.18445L7.56868 26.9511L1.08087 27.045L1 1.27836L7.48781 1.18445Z' stroke='%230D85CD' stroke-width='1.5'/%3e%3cpath d='M16.8352 1.19299H10.2701V27.0367H16.8352V1.19299Z' stroke='%230D85CD' stroke-width='1.5'/%3e%3cpath d='M25.5244 1L29.0001 27.1333' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M20.8901 1L24.3658 27.1333' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M3.51196 4.66443H5.05669' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='square'/%3e%3cpath d='M12.7804 4.66443H14.3251' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='square'/%3e%3cpath d='M3.51196 6.97864H5.05669' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='square'/%3e%3cpath d='M12.7804 6.97864H14.3251' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='square'/%3e%3c/svg%3e",img$R="data:image/svg+xml,%3csvg width='32' height='24' viewBox='0 0 32 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.19694 4.90455C9.43614 4.66674 9.43602 4.2813 9.19667 4.04364C8.95731 3.80598 8.56937 3.80611 8.33017 4.04391L1.17932 11.1531C0.94016 11.3909 0.940236 11.7762 1.17949 12.0139L8.33034 19.1175C8.56964 19.3552 8.95758 19.3552 9.19684 19.1174C9.43609 18.8797 9.43606 18.4942 9.19677 18.2565L2.4791 11.5832L9.19694 4.90455Z' fill='%23E0570A' stroke='%23E0570A' stroke-width='0.2'/%3e%3cpath d='M22.8045 18.2543C22.5652 18.492 22.5652 18.8774 22.8044 19.1152C23.0437 19.3529 23.4316 19.353 23.6709 19.1152L30.8206 12.0128C31.0599 11.7751 31.06 11.3897 30.8208 11.152L23.6711 4.04391C23.4319 3.80611 23.0439 3.80598 22.8046 4.04364C22.5652 4.2813 22.5651 4.66674 22.8043 4.90455L29.521 11.5821L22.8045 18.2543Z' fill='%23E0570A' stroke='%23E0570A' stroke-width='0.2'/%3e%3cpath d='M18.0402 1.45444L12.5533 22.2366C12.4674 22.5618 12.6632 22.8946 12.9905 22.9799C13.3178 23.0652 13.6527 22.8708 13.7386 22.5456L19.2255 1.76336C19.3114 1.43816 19.1157 1.10538 18.7883 1.02007C18.461 0.934765 18.1261 1.12924 18.0402 1.45444Z' fill='%23E0570A' stroke='%23E0570A' stroke-width='0.2'/%3e%3c/svg%3e",img$Q="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.58984 7.41L10.1798 12L5.58984 16.59L6.99984 18L12.9998 12L6.99984 6L5.58984 7.41ZM15.9998 6H17.9998V18H15.9998V6Z' fill='%23555F7C'/%3e%3c/svg%3e",img$P="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z' fill='%23555F7C'/%3e%3c/svg%3e",img$O="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M19 19H5V5H12V3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V12H19V19ZM14 3V5H17.59L7.76 14.83L9.17 16.24L19 6.41V10H21V3H14Z' fill='%23555F7C'/%3e%3c/svg%3e",img$N="data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11.0833 11.0833H2.91667V2.91667H7V1.75H2.91667C2.26917 1.75 1.75 2.275 1.75 2.91667V11.0833C1.75 11.725 2.26917 12.25 2.91667 12.25H11.0833C11.725 12.25 12.25 11.725 12.25 11.0833V7H11.0833V11.0833ZM8.16667 1.75V2.91667H10.2608L4.52667 8.65083L5.34917 9.47333L11.0833 3.73917V5.83333H12.25V1.75H8.16667Z' fill='%231871E8'/%3e%3c/svg%3e",img$M="data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.25 12.25H1.75V1.75H7V0.25H1.75C0.9175 0.25 0.25 0.925 0.25 1.75V12.25C0.25 13.075 0.9175 13.75 1.75 13.75H12.25C13.075 13.75 13.75 13.075 13.75 12.25V7H12.25V12.25ZM8.5 0.25V1.75H11.1925L3.82 9.1225L4.8775 10.18L12.25 2.8075V5.5H13.75V0.25H8.5Z' fill='%23555F7C'/%3e%3c/svg%3e",img$J="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='20' cy='20' r='20' fill='%23E8F7FF'/%3e%3c/svg%3e",img$I="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='20' cy='20' r='20' fill='%23E9FFF1'/%3e%3c/svg%3e",img$G="data:image/svg+xml,%3csvg width='34' height='37' viewBox='0 0 34 37' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M17.0005 19.0063C14.1671 19.0063 11.8315 21.3432 11.8315 24.2642C11.8315 26.3285 13.0185 28.12 14.7414 28.9769V34.7021C14.7414 35.9874 15.7369 37 17.0005 37C18.264 37 19.2595 35.9874 19.2595 34.7021V28.9769C20.9824 28.12 22.1694 26.3285 22.1694 24.2642C22.1694 21.3821 19.8338 19.0063 17.0005 19.0063Z' fill='%23EB5757'/%3e%3cpath d='M0 7.2442L3.44594 11.2947C6.8536 7.63368 11.6396 5.33579 17 5.33579C22.3221 5.33579 27.1464 7.63368 30.5541 11.2947L34 7.2442C29.6734 2.76525 23.6622 0 17 0C10.3761 0 4.36486 2.76525 0 7.2442Z' fill='%23EB5757'/%3e%3cpath d='M17.0001 9.50317C12.6736 9.50317 8.80644 11.4116 6.16455 14.4884L9.53391 18.4611C11.2569 16.1632 13.9754 14.6832 17.0001 14.6832C20.0249 14.6832 22.7434 16.1632 24.4663 18.4611L27.8357 14.4884C25.1938 11.4116 21.3267 9.50317 17.0001 9.50317Z' fill='%23EB5757'/%3e%3c/svg%3e",img$F="data:image/svg+xml,%3csvg width='34' height='34' viewBox='0 0 34 34' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M31.5841 8.25105C33.1473 10.8473 34 13.8703 34 17C34 18.2448 33.8579 19.454 33.6092 20.6276L29.4525 19.1339C29.559 18.4226 29.6301 17.7113 29.6301 17C29.6301 14.8305 29.0617 12.7678 28.1024 10.9895L31.5841 8.25105ZM16.9822 29.6611C10.0188 29.6611 4.33438 23.9707 4.33438 17C4.33438 14.9017 4.83177 12.9456 5.71996 11.2029L2.20272 8.53556C0.781609 11.0962 0 13.977 0 17C0 21.5523 1.77638 25.8201 4.97388 29.0209C8.17137 32.2218 12.4347 34 16.9822 34C21.5298 34 25.7931 32.2218 28.9906 29.0209C30.2696 27.7406 31.3354 26.2824 32.117 24.7176L27.9958 23.2238C25.8286 27.0649 21.7074 29.6611 16.9822 29.6611ZM16.9822 0C12.4347 0 8.17137 1.77824 4.97388 4.97908C4.93835 5.01464 4.90282 5.05021 4.86729 5.08577L8.38453 7.75314C10.6583 5.65481 13.6782 4.33891 17.0178 4.33891C20.2508 4.33891 23.1996 5.54812 25.4378 7.57531L28.884 4.83682C25.6865 1.70711 21.4587 0 16.9822 0ZM24.9404 18.4937C24.7273 19.5607 24.3365 20.6276 23.697 21.5523L24.6207 22.477C24.9404 22.7971 24.9404 23.3661 24.6207 23.6862L23.697 24.6109C23.3772 24.931 22.8088 24.931 22.489 24.6109L21.6008 23.7218C20.6771 24.3619 19.6113 24.7887 18.5455 25.0021V26.2824C18.5455 26.7448 18.1546 27.136 17.6928 27.136H16.3783C15.9164 27.136 15.5256 26.7448 15.5256 26.2824V25.0377C14.4598 24.8243 13.3939 24.3975 12.4347 23.7573L11.5465 24.6464C11.2267 24.9665 10.6583 24.9665 10.3386 24.6464L9.41484 23.7218C9.09509 23.4017 9.09509 22.8326 9.41484 22.5126L10.303 21.6234C9.66353 20.6632 9.2372 19.6318 9.02403 18.5649H7.78056C7.3187 18.5649 6.9279 18.1736 6.9279 17.7113V16.3954C6.9279 15.9331 7.3187 15.5418 7.78056 15.5418H9.05956C9.27273 14.4749 9.69906 13.4079 10.3386 12.4833L9.45036 11.5941C9.13062 11.2741 9.13062 10.705 9.45036 10.3849L10.3741 9.46025C10.6938 9.14017 11.2623 9.14017 11.582 9.46025L12.5057 10.3849C13.4295 9.74477 14.4953 9.31799 15.5611 9.14017V7.85983C15.5611 7.39749 15.9519 7.00628 16.4138 7.00628H17.7283C18.1902 7.00628 18.581 7.39749 18.581 7.85983V9.17573C19.6468 9.38912 20.6771 9.8159 21.6008 10.4205L22.5246 9.49582C22.8443 9.17573 23.4127 9.17573 23.7325 9.49582L24.6562 10.4205C24.976 10.7406 24.976 11.3096 24.6562 11.6297L23.7325 12.5544C24.372 13.4791 24.7983 14.5105 25.0115 15.5774H26.326C26.7879 15.5774 27.1787 15.9686 27.1787 16.431V17.7469C27.1787 18.2092 26.7879 18.6004 26.326 18.6004L24.9404 18.4937ZM20.1087 13.8703C18.4033 12.1632 15.5967 12.1632 13.8913 13.8703C12.186 15.5774 12.186 18.387 13.8913 20.0941C15.5967 21.8013 18.4033 21.8013 20.1087 20.0941C21.814 18.387 21.814 15.613 20.1087 13.8703Z' fill='%23555F7C'/%3e%3c/svg%3e",img$E="data:image/svg+xml,%3csvg width='148' height='148' viewBox='0 0 148 148' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M111 67.8334C111 71.965 111 76.035 111 80.1667C118.4 80.1667 128.02 80.1667 135.667 80.1667C135.667 76.035 135.667 71.965 135.667 67.8334C128.02 67.8334 118.4 67.8334 111 67.8334Z' fill='%23D43060'/%3e%3cpath d='M98.666 108.595C104.586 112.973 112.294 118.77 118.399 123.333C120.866 120.065 123.333 116.735 125.799 113.467C119.694 108.903 111.986 103.107 106.066 98.6666C103.599 101.997 101.133 105.327 98.666 108.595Z' fill='%23D43060'/%3e%3cpath d='M125.799 34.5333C123.333 31.265 120.866 27.935 118.399 24.6666C112.294 29.23 104.586 35.0266 98.666 39.4666C101.133 42.735 103.599 46.065 106.066 49.3333C111.986 44.8933 119.694 39.1583 125.799 34.5333Z' fill='%23D43060'/%3e%3cpath d='M24.6673 55.5C17.884 55.5 12.334 61.05 12.334 67.8333V80.1667C12.334 86.95 17.884 92.5 24.6673 92.5H30.834V117.167H43.1673V92.5H49.334L80.1673 111V37L49.334 55.5H24.6673ZM55.6856 66.045L67.834 58.7683V89.2317L55.6856 81.955L52.7257 80.1667H49.334H24.6673V67.8333H49.334H52.7257L55.6856 66.045Z' fill='%23D43060'/%3e%3cpath d='M95.584 73.9995C95.584 65.7979 92.0073 58.3979 86.334 53.3412V94.5962C92.0073 89.6012 95.584 82.2012 95.584 73.9995Z' fill='%23D43060'/%3e%3c/svg%3e",img$D="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11.9995 2.02002C6.48953 2.02002 2.01953 6.49002 2.01953 12C2.01953 17.51 6.48953 21.98 11.9995 21.98C17.5095 21.98 21.9795 17.51 21.9795 12C21.9795 6.49002 17.5095 2.02002 11.9995 2.02002ZM11.9995 19.98C7.59953 19.98 4.01953 16.4 4.01953 12C4.01953 7.60002 7.59953 4.02002 11.9995 4.02002C16.3995 4.02002 19.9795 7.60002 19.9795 12C19.9795 16.4 16.3995 19.98 11.9995 19.98ZM12.7495 5.00002L8.24953 13.5H11.3895V19L15.7495 10.5H12.7495V5.00002Z' fill='%23E7A600'/%3e%3c/svg%3e",img$C="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11 7H13V9H11V7ZM11 11H13V17H11V11ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z' fill='%23555F7C'/%3e%3c/svg%3e",img$B="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18 11C18 11.67 18 12.33 18 13C19.2 13 20.76 13 22 13C22 12.33 22 11.67 22 11C20.76 11 19.2 11 18 11Z' fill='%23D43060'/%3e%3cpath d='M16 17.61C16.96 18.32 18.21 19.26 19.2 20C19.6 19.47 20 18.93 20.4 18.4C19.41 17.66 18.16 16.72 17.2 16C16.8 16.54 16.4 17.08 16 17.61Z' fill='%23D43060'/%3e%3cpath d='M20.4 5.6C20 5.07 19.6 4.53 19.2 4C18.21 4.74 16.96 5.68 16 6.4C16.4 6.93 16.8 7.47 17.2 8C18.16 7.28 19.41 6.35 20.4 5.6Z' fill='%23D43060'/%3e%3cpath d='M4 9C2.9 9 2 9.9 2 11V13C2 14.1 2.9 15 4 15H5V19H7V15H8L13 18V6L8 9H4ZM9.03 10.71L11 9.53V14.47L9.03 13.29L8.55 13H8H4V11H8H8.55L9.03 10.71Z' fill='%23D43060'/%3e%3cpath d='M15.5 12C15.5 10.67 14.92 9.47002 14 8.65002V15.34C14.92 14.53 15.5 13.33 15.5 12Z' fill='%23D43060'/%3e%3c/svg%3e",img$A="data:image/svg+xml,%3csvg width='20' height='21' viewBox='0 0 20 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.443 6.19H8.943V12.19L13.693 15.04L14.443 13.81L10.443 11.44V6.19ZM15.28 0L19.887 3.845L18.607 5.38L13.997 1.537L15.28 0ZM4.606 0L5.888 1.536L1.28 5.38L0 3.844L4.606 0ZM9.943 2.19C4.973 2.19 0.943 6.22 0.943 11.19C0.943 16.16 4.973 20.19 9.943 20.19C14.913 20.19 18.943 16.16 18.943 11.19C18.943 6.22 14.913 2.19 9.943 2.19ZM9.943 18.19C6.083 18.19 2.943 15.05 2.943 11.19C2.943 7.33 6.083 4.19 9.943 4.19C13.803 4.19 16.943 7.33 16.943 11.19C16.943 15.05 13.803 18.19 9.943 18.19Z' fill='%236098D1'/%3e%3c/svg%3e",img$y="data:image/svg+xml,%3csvg width='14' height='18' viewBox='0 0 14 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11 6V16H3V6H11ZM9.5 0H4.5L3.5 1H0V3H14V1H10.5L9.5 0ZM13 4H1V16C1 17.1 1.9 18 3 18H11C12.1 18 13 17.1 13 16V4Z' fill='%23555F7C'/%3e%3c/svg%3e",img$w="data:image/svg+xml,%3csvg width='61' height='28' viewBox='0 0 61 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect x='2' y='26' width='52' height='1' fill='%236098D1'/%3e%3crect x='2' y='25' width='13' height='3' fill='%236098D1'/%3e%3cpath d='M3.51589 14.126C3.03989 14.126 2.61522 14.0327 2.24189 13.846C1.86856 13.6593 1.56989 13.4073 1.34589 13.09C1.13122 12.7727 1.02389 12.4133 1.02389 12.012C1.02389 11.508 1.14989 11.1113 1.40189 10.822C1.66322 10.5327 2.08789 10.3227 2.67589 10.192C3.27322 10.0613 4.07589 9.996 5.08389 9.996H5.55989V9.632C5.55989 9.1 5.44789 8.71733 5.22389 8.484C4.99989 8.25067 4.63122 8.134 4.11789 8.134C3.81922 8.134 3.50656 8.17133 3.17989 8.246C2.86256 8.32067 2.53122 8.44667 2.18589 8.624C1.98989 8.71733 1.82656 8.73133 1.69589 8.666C1.57456 8.60067 1.49056 8.498 1.44389 8.358C1.39722 8.218 1.40189 8.07333 1.45789 7.924C1.51389 7.77467 1.63056 7.66267 1.80789 7.588C2.21856 7.40133 2.62456 7.266 3.02589 7.182C3.42722 7.08867 3.80522 7.042 4.15989 7.042C5.09322 7.042 5.78389 7.266 6.23189 7.714C6.67989 8.15267 6.90389 8.84333 6.90389 9.786V13.384C6.90389 13.86 6.68456 14.098 6.24589 14.098C5.79789 14.098 5.57389 13.86 5.57389 13.384V12.866C5.40589 13.258 5.14456 13.566 4.78989 13.79C4.43522 14.014 4.01056 14.126 3.51589 14.126ZM3.79589 13.118C4.29989 13.118 4.71989 12.9407 5.05589 12.586C5.39189 12.2313 5.55989 11.7833 5.55989 11.242V10.864H5.09789C4.41656 10.864 3.87989 10.8967 3.48789 10.962C3.10522 11.0273 2.82989 11.1393 2.66189 11.298C2.50322 11.4473 2.42389 11.6573 2.42389 11.928C2.42389 12.2827 2.54522 12.572 2.78789 12.796C3.03056 13.0107 3.36656 13.118 3.79589 13.118ZM9.55142 5.642C9.27142 5.642 9.05209 5.572 8.89342 5.432C8.74409 5.292 8.66942 5.096 8.66942 4.844C8.66942 4.312 8.96342 4.046 9.55142 4.046C10.1394 4.046 10.4334 4.312 10.4334 4.844C10.4334 5.376 10.1394 5.642 9.55142 5.642ZM9.55142 14.084C9.08476 14.084 8.85142 13.8273 8.85142 13.314V7.854C8.85142 7.35 9.08476 7.098 9.55142 7.098C10.0274 7.098 10.2654 7.35 10.2654 7.854V13.314C10.2654 13.8273 10.0274 14.084 9.55142 14.084ZM15.7277 14.098C15.3357 14.098 15.0651 13.888 14.9157 13.468L11.9057 4.886C11.8217 4.64333 11.8357 4.44267 11.9477 4.284C12.0691 4.116 12.2651 4.032 12.5357 4.032C12.7411 4.032 12.8997 4.07867 13.0117 4.172C13.1331 4.26533 13.2264 4.41467 13.2917 4.62L15.7697 11.9L18.3037 4.648C18.4624 4.23733 18.7097 4.032 19.0457 4.032C19.2324 4.032 19.3771 4.08333 19.4797 4.186C19.5917 4.28867 19.6897 4.44733 19.7737 4.662L22.2797 11.984L24.8137 4.62C24.8791 4.424 24.9677 4.27933 25.0797 4.186C25.2011 4.08333 25.3597 4.032 25.5557 4.032C25.7984 4.032 25.9757 4.116 26.0877 4.284C26.2091 4.44267 26.2231 4.64333 26.1297 4.886L23.1057 13.482C23.0217 13.6873 22.9191 13.8413 22.7977 13.944C22.6764 14.0467 22.5131 14.098 22.3077 14.098C22.0931 14.098 21.9251 14.0467 21.8037 13.944C21.6824 13.8413 21.5844 13.6827 21.5097 13.468L19.0177 6.328L16.4977 13.482C16.4231 13.6873 16.3251 13.8413 16.2037 13.944C16.0917 14.0467 15.9331 14.098 15.7277 14.098ZM27.0647 14.098C26.7847 14.098 26.5887 14.0093 26.4767 13.832C26.374 13.6453 26.3833 13.4213 26.5047 13.16L30.2987 4.648C30.392 4.43333 30.5087 4.27933 30.6487 4.186C30.7887 4.08333 30.952 4.032 31.1387 4.032C31.3067 4.032 31.4607 4.08333 31.6007 4.186C31.75 4.27933 31.8713 4.43333 31.9647 4.648L35.7587 13.16C35.88 13.4307 35.8893 13.6547 35.7867 13.832C35.6933 14.0093 35.5113 14.098 35.2407 14.098C35.0353 14.098 34.872 14.0467 34.7507 13.944C34.6293 13.8413 34.522 13.6827 34.4287 13.468L33.6167 11.592H28.6187L27.8207 13.468C27.7273 13.692 27.6247 13.8553 27.5127 13.958C27.4007 14.0513 27.2513 14.098 27.0647 14.098ZM31.1107 5.74L29.1367 10.416H33.1267L31.1387 5.74H31.1107ZM38.1573 14.098C37.6719 14.098 37.4293 13.8507 37.4293 13.356V4.872C37.4293 4.37733 37.6766 4.13 38.1713 4.13H41.5173C42.5813 4.13 43.4026 4.38667 43.9813 4.9C44.5599 5.404 44.8493 6.11333 44.8493 7.028C44.8493 7.76533 44.6533 8.372 44.2613 8.848C43.8693 9.31467 43.3139 9.62733 42.5953 9.786C43.0433 9.93533 43.4213 10.2947 43.7293 10.864L44.9333 13.104C45.0733 13.356 45.1013 13.5847 45.0173 13.79C44.9333 13.9953 44.7419 14.098 44.4433 14.098C44.2379 14.098 44.0699 14.056 43.9393 13.972C43.8086 13.888 43.6966 13.7527 43.6033 13.566L42.1333 10.85C41.9373 10.486 41.7086 10.2433 41.4473 10.122C41.1953 9.99133 40.8686 9.926 40.4673 9.926H38.8853V13.356C38.8853 13.8507 38.6426 14.098 38.1573 14.098ZM38.8853 8.834H41.2793C42.7166 8.834 43.4353 8.24133 43.4353 7.056C43.4353 5.88 42.7166 5.292 41.2793 5.292H38.8853V8.834ZM47.6879 14C47.1652 14 46.9039 13.7387 46.9039 13.216V4.914C46.9039 4.39133 47.1652 4.13 47.6879 4.13H52.7979C53.1992 4.13 53.3999 4.32133 53.3999 4.704C53.3999 5.10533 53.1992 5.306 52.7979 5.306H48.3039V8.4H52.4899C52.8912 8.4 53.0919 8.596 53.0919 8.988C53.0919 9.38 52.8912 9.576 52.4899 9.576H48.3039V12.824H52.7979C53.1992 12.824 53.3999 13.02 53.3999 13.412C53.3999 13.804 53.1992 14 52.7979 14H47.6879Z' fill='%231C4072'/%3e%3cpath d='M56.287 7.032C56.1163 7.032 56.031 6.944 56.031 6.768V4.608H55.251C55.1043 4.608 55.031 4.536 55.031 4.392C55.031 4.25067 55.1043 4.18 55.251 4.18H57.323C57.4696 4.18 57.543 4.25067 57.543 4.392C57.543 4.536 57.4696 4.608 57.323 4.608H56.543V6.768C56.543 6.944 56.4576 7.032 56.287 7.032ZM58.0753 7.032C57.9207 7.032 57.8433 6.952 57.8433 6.792V4.388C57.8433 4.228 57.9233 4.148 58.0833 4.148C58.15 4.148 58.202 4.16133 58.2393 4.188C58.2793 4.212 58.3153 4.25467 58.3473 4.316L59.2713 6.024L60.1953 4.316C60.2273 4.25467 60.262 4.212 60.2993 4.188C60.3367 4.16133 60.3887 4.148 60.4553 4.148C60.61 4.148 60.6873 4.228 60.6873 4.388V6.792C60.6873 6.952 60.61 7.032 60.4553 7.032C60.3007 7.032 60.2233 6.952 60.2233 6.792V5.1L59.4713 6.472C59.4447 6.51733 59.4167 6.55067 59.3873 6.572C59.358 6.59333 59.318 6.604 59.2673 6.604C59.2167 6.604 59.1753 6.59333 59.1433 6.572C59.1113 6.548 59.0833 6.51467 59.0593 6.472L58.3073 5.108V6.792C58.3073 6.952 58.23 7.032 58.0753 7.032Z' fill='%231C4072'/%3e%3c/svg%3e",img$u="data:image/svg+xml,%3csvg viewBox='0 0 115 70' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3crect width='115' height='70' fill='%23FAFAFA'/%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M43.8997 20.1667L38.5333 32.7295L50.1478 52.8334H62.8523L43.8997 20.1667Z' fill='%23728FBE'/%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M59.2363 20.1667L64.1616 28.6794L69.1005 20.1667H59.2363Z' fill='%23728FBE'/%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M69.1003 20.1667L50.1477 52.8334H62.8522L74.4667 32.7295L69.1003 20.1667Z' fill='%23325491'/%3e%3c/svg%3e",img$t="data:image/svg+xml,%3csvg width='275' height='275' viewBox='0 0 275 275' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e %3cpath d='M76.4438 90.9271L71.4264 82.9105L40.4464 102.42C39.7533 102.858 39.2615 103.552 39.0784 104.351C38.8953 105.151 39.0358 105.99 39.4693 106.686L70.2876 156.236C70.5006 156.579 70.7795 156.878 71.1083 157.113C71.4371 157.349 71.8092 157.517 72.2032 157.608C72.5972 157.699 73.0054 157.712 73.4042 157.645C73.803 157.577 74.1846 157.432 74.527 157.217L113.896 132.438C114.589 132 115.081 131.306 115.264 130.506C115.447 129.707 115.306 128.868 114.873 128.172L89.0981 86.7177L81.837 91.2879C80.3562 92.2199 77.3721 92.4191 76.4438 90.9271Z' fill='%23FEECB2'/%3e %3cpath d='M76.2485 90.664C76.4894 91.0549 76.8053 91.3943 77.1778 91.6627C77.5504 91.9312 77.9723 92.1233 78.4194 92.2281C78.8665 92.3329 79.3298 92.3482 79.7829 92.2733C80.2359 92.1984 80.6697 92.0346 81.0592 91.7915L89.0983 86.729L71.4341 82.9218L76.2485 90.664Z' fill='%23FDC920'/%3e %3cpath d='M77.173 130.822C84.5333 130.822 90.5001 124.821 90.5001 117.42C90.5001 110.018 84.5333 104.017 77.173 104.017C69.8127 104.017 63.8459 110.018 63.8459 117.42C63.8459 124.821 69.8127 130.822 77.173 130.822Z' fill='%23FDC920'/%3e %3cpath d='M81.4048 113.947L72.475 114.266C72.3368 114.272 72.2026 114.315 72.0857 114.389C71.9688 114.463 71.8734 114.566 71.8088 114.688C71.7442 114.811 71.7127 114.948 71.7175 115.086C71.7223 115.224 71.7632 115.359 71.8361 115.477L76.5754 123.091C76.649 123.208 76.7521 123.303 76.8743 123.368C76.9964 123.433 77.1335 123.464 77.2716 123.459C77.4097 123.454 77.5441 123.413 77.6614 123.34C77.7786 123.267 77.8746 123.164 77.9397 123.042L82.1377 115.108C82.2037 114.985 82.2359 114.847 82.2309 114.707C82.226 114.568 82.1841 114.432 82.1096 114.314C82.0351 114.196 81.9306 114.1 81.8068 114.035C81.683 113.971 81.5443 113.94 81.4048 113.947Z' fill='%23FE8D00'/%3e %3cpath d='M122.476 139.628H133.646C134.552 139.628 135.444 139.854 136.241 140.285C137.038 140.716 137.715 141.339 138.212 142.097L143.256 149.775C143.752 150.533 144.43 151.156 145.227 151.587C146.024 152.018 146.916 152.244 147.822 152.244H185.492L182.072 189.245L187.518 197.761H113.223C112.562 197.759 111.907 197.627 111.297 197.372C110.687 197.117 110.132 196.745 109.666 196.276C109.2 195.807 108.831 195.25 108.579 194.639C108.328 194.027 108.2 193.372 108.202 192.71V144.69C108.198 144.028 108.325 143.371 108.575 142.758C108.826 142.144 109.195 141.586 109.661 141.116C110.128 140.646 110.682 140.272 111.294 140.017C111.905 139.761 112.56 139.629 113.223 139.628H122.476Z' fill='%23FD9F00'/%3e %3cpath d='M186.631 152.259H184.349C181.404 152.259 179.016 154.647 179.016 157.592V203.384C179.016 206.329 181.404 208.717 184.349 208.717H186.631C189.576 208.717 191.964 206.329 191.964 203.384V157.592C191.964 154.647 189.576 152.259 186.631 152.259Z' fill='%23FD9F00'/%3e %3cpath d='M182.188 152.259H179.907C176.962 152.259 174.574 154.647 174.574 157.592V203.384C174.574 206.329 176.962 208.717 179.907 208.717H182.188C185.134 208.717 187.521 206.329 187.521 203.384V157.592C187.521 154.647 185.134 152.259 182.188 152.259Z' fill='%23FD9F00'/%3e %3cpath d='M179.016 202.208V195.164C179.019 194.032 179.316 192.919 179.879 191.936C180.441 190.953 181.25 190.133 182.226 189.557V160.618C182.23 159.831 182.079 159.051 181.782 158.323C181.484 157.594 181.046 156.932 180.492 156.373C179.938 155.814 179.279 155.371 178.553 155.067C177.827 154.764 177.048 154.606 176.261 154.605H141.519C140.442 154.603 139.382 154.333 138.435 153.82C137.487 153.307 136.682 152.567 136.092 151.666L130.102 142.544C129.51 141.648 128.706 140.913 127.761 140.404C126.816 139.895 125.759 139.628 124.686 139.628H100.418C99.6314 139.63 98.8527 139.787 98.1267 140.09C97.4008 140.394 96.7419 140.838 96.1878 141.396C95.6337 141.955 95.1953 142.617 94.8977 143.346C94.6001 144.074 94.4493 144.854 94.4537 145.641V202.719C94.4498 203.505 94.601 204.285 94.8987 205.013C95.1965 205.741 95.6349 206.404 96.1889 206.962C96.7429 207.521 97.4016 207.965 98.1273 208.268C98.853 208.572 99.6315 208.73 100.418 208.732H182.282V207.864C181.289 207.291 180.464 206.466 179.891 205.474C179.318 204.481 179.016 203.354 179.016 202.208Z' fill='%23FE8D00'/%3e %3cpath d='M226.98 126.511L230.411 117.69L196.414 104.201C196.037 104.053 195.635 103.98 195.23 103.987C194.825 103.994 194.426 104.081 194.055 104.243C193.684 104.405 193.349 104.639 193.069 104.931C192.788 105.223 192.569 105.568 192.422 105.945L171.105 160.321C170.804 161.083 170.817 161.933 171.142 162.686C171.467 163.438 172.076 164.031 172.838 164.335L216.04 181.473C216.416 181.621 216.818 181.694 217.223 181.686C217.627 181.679 218.027 181.592 218.397 181.43C218.768 181.268 219.103 181.034 219.384 180.742C219.664 180.45 219.884 180.106 220.031 179.729L237.86 134.253L229.897 131.092C228.269 130.446 226.337 128.146 226.98 126.511Z' fill='%23FEECB2'/%3e %3cpath d='M227.074 126.199C226.733 127.063 226.749 128.027 227.117 128.88C227.486 129.733 228.177 130.406 229.04 130.75L237.86 134.249L230.411 117.69L227.074 126.199Z' fill='%23FDC920'/%3e %3cpath d='M204.727 146.017L215.626 140.706L219.873 151.805L225.187 138.248C225.397 137.717 225.388 137.124 225.162 136.599C224.936 136.075 224.511 135.661 223.981 135.448L198.27 125.274C198.008 125.17 197.727 125.119 197.445 125.123C197.162 125.128 196.884 125.188 196.625 125.301C196.366 125.414 196.132 125.577 195.936 125.781C195.741 125.985 195.587 126.225 195.485 126.488L187.284 147.407C187.153 147.74 187.107 148.101 187.149 148.456L202.739 140.845L204.727 146.017Z' fill='%23FDC920'/%3e %3cpath d='M188.322 150.151L188.491 150.23L192.727 151.91H192.757L188.322 150.151Z' fill='%23FDC920'/%3e %3cpath d='M192.727 151.891L214.183 160.4C214.366 160.473 214.558 160.52 214.754 160.539L192.727 151.891Z' fill='%23FDC920'/%3e %3cpath d='M204.727 146.017L202.739 140.83L187.149 148.441C187.191 148.795 187.32 149.134 187.524 149.427C187.729 149.719 188.003 149.957 188.322 150.117L192.757 151.861L204.727 146.017Z' fill='%23FDB200'/%3e %3cpath d='M216.968 159.171L219.854 151.805L215.607 140.706L204.708 146.017L209.462 158.419L192.738 151.853H192.708L214.735 160.498C215.201 160.551 215.672 160.451 216.076 160.211C216.479 159.971 216.792 159.606 216.968 159.171Z' fill='%23FE8D00'/%3e %3cpath d='M209.481 158.442L204.727 146.032L192.757 151.876L209.481 158.442Z' fill='%23FE8D00'/%3e %3cpath d='M200.691 135.956C199.962 135.664 199.379 135.096 199.066 134.376C198.754 133.656 198.738 132.842 199.022 132.111C199.163 131.75 199.375 131.421 199.644 131.141C199.912 130.862 200.234 130.639 200.589 130.484C200.944 130.329 201.327 130.245 201.714 130.238C202.102 130.231 202.487 130.3 202.848 130.442C203.575 130.735 204.158 131.303 204.468 132.023C204.779 132.743 204.792 133.557 204.505 134.287C204.219 135.013 203.657 135.596 202.943 135.909C202.228 136.222 201.418 136.239 200.691 135.956Z' fill='%23FEDF80'/%3e %3cpath d='M179.073 198.686L179.016 198.6V160.64C179.021 159.854 178.87 159.074 178.572 158.345C178.275 157.617 177.836 156.954 177.282 156.396C176.728 155.837 176.069 155.393 175.343 155.09C174.617 154.786 173.839 154.629 173.052 154.627H138.325C137.247 154.626 136.187 154.357 135.24 153.844C134.292 153.331 133.487 152.59 132.898 151.688L126.903 142.567C126.314 141.665 125.509 140.924 124.561 140.411C123.614 139.898 122.554 139.628 121.476 139.628H97.2087C96.4219 139.63 95.6432 139.787 94.9172 140.09C94.1913 140.394 93.5324 140.838 92.9783 141.396C92.4242 141.955 91.9858 142.617 91.6882 143.346C91.3907 144.074 91.2398 144.854 91.2442 145.641V176.557C105.816 190.737 125.343 198.676 145.676 198.686H179.073Z' fill='%23FDC000'/%3e %3cpath d='M97.2086 208.721H185.492L179.073 198.686H145.676C125.343 198.676 105.816 190.737 91.2442 176.557V202.719C91.2417 203.504 91.394 204.283 91.6924 205.01C91.9908 205.737 92.4295 206.398 92.9833 206.955C93.5372 207.512 94.1954 207.955 94.9204 208.258C95.6454 208.561 96.4229 208.718 97.2086 208.721Z' fill='%23FDB200'/%3e %3cpath d='M185.492 188.655C184.342 188.656 183.213 188.968 182.226 189.557V198.6L182.282 198.686V207.853C183.257 208.42 184.364 208.72 185.492 208.721C187.212 208.71 188.858 208.019 190.071 206.799C191.283 205.578 191.964 203.928 191.964 202.208V195.164C191.964 193.445 191.283 191.795 190.07 190.575C188.858 189.355 187.212 188.665 185.492 188.655Z' fill='%23FD9F00'/%3e %3cpath d='M182.226 198.6V189.557C181.25 190.133 180.442 190.953 179.879 191.936C179.316 192.919 179.019 194.032 179.016 195.164V202.208C179.019 203.351 179.323 204.474 179.896 205.463C180.469 206.452 181.292 207.274 182.282 207.845V198.686L182.226 198.6Z' fill='%23FE8D00'/%3e %3cpath d='M135.859 168.548H100.738V170.75H135.859V168.548Z' fill='%23FD9F00'/%3e %3cpath d='M119.308 177.609H100.738V179.812H119.308V177.609Z' fill='%23FD9F00'/%3e %3cpath d='M166.644 62.8185L167.222 53.3626L130.767 51.0061C130.362 50.9806 129.956 51.0352 129.573 51.1668C129.19 51.2983 128.836 51.5043 128.532 51.7727C128.228 52.0412 127.981 52.367 127.803 52.7313C127.625 53.0957 127.521 53.4916 127.497 53.8962L123.769 112.222C123.714 113.038 123.986 113.843 124.524 114.46C125.062 115.077 125.823 115.454 126.64 115.51L172.988 118.517C173.804 118.566 174.606 118.29 175.219 117.748C175.831 117.206 176.203 116.443 176.254 115.627L179.373 66.8399L170.827 66.2874C169.068 66.1672 166.531 64.5737 166.644 62.8185Z' fill='%23FEECB2'/%3e %3cpath d='M166.636 62.4915C166.575 63.4177 166.884 64.3302 167.495 65.0291C168.106 65.728 168.969 66.1562 169.895 66.2198L179.358 66.8324L167.223 53.3625L166.636 62.4915Z' fill='%23FDC920'/%3e%3cpath d='M147.882 86.2254C147.709 88.9765 146.157 90.6264 143.988 90.4874C143.429 90.4747 142.884 90.3029 142.418 89.9921C141.952 89.6813 141.584 89.2443 141.358 88.7322H141.316L141.057 93.0242L139.279 92.9077L140.031 81.3396L141.749 81.4523L141.655 82.9556H141.685C141.975 82.4678 142.397 82.072 142.902 81.8139C143.408 81.5559 143.976 81.4461 144.541 81.4974C146.725 81.644 148.059 83.4743 147.882 86.2254ZM146.059 86.1051C146.176 84.2899 145.372 83.0646 143.966 82.9744C142.56 82.8842 141.624 84.0193 141.508 85.812C141.391 87.6047 142.222 88.8525 143.586 88.9427C144.951 89.0329 145.943 87.9317 146.059 86.1051Z' fill='%23FD9F00'/%3e %3cpath d='M148.859 86.2856C149.036 83.5457 150.592 81.8958 152.76 82.0349C153.321 82.0482 153.866 82.2211 154.332 82.5333C154.798 82.8455 155.166 83.2841 155.391 83.7975H155.421L155.722 79.1222L157.503 79.2387L156.752 91.1601L155.027 91.0474L155.124 89.5703H155.049C154.758 90.0568 154.336 90.4511 153.83 90.7078C153.325 90.9645 152.757 91.0731 152.193 91.0211C150.017 90.8745 148.686 89.0291 148.859 86.2856ZM150.675 86.4058C150.558 88.2399 151.362 89.4426 152.768 89.5365C154.174 89.6305 155.117 88.518 155.233 86.699C155.35 84.8799 154.516 83.6585 153.151 83.5683C151.787 83.4781 150.791 84.5793 150.675 86.4058Z' fill='%23FD9F00'/%3e%3cpath d='M159.522 84.0305L158.331 83.9554L158.421 82.5573L159.612 82.6362L159.665 81.7831C159.774 80.0993 160.612 79.3552 162.371 79.4717C162.704 79.4942 163.034 79.5432 163.359 79.6183L163.273 80.9374C163.061 80.8898 162.846 80.8596 162.63 80.8472C161.856 80.7984 161.469 81.1629 161.42 81.9296L161.367 82.749L163.119 82.8617L163.028 84.2598L161.303 84.147L160.837 91.4269L159.056 91.3104L159.522 84.0305Z' fill='%23FD9F00'/%3e%3c/svg%3e",img$s="data:image/svg+xml,%3csvg width='275' height='275' viewBox='0 0 275 275' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e %3cpath d='M181 134.5L138.5 120.5V170L181 134.5Z' fill='%23FE8D00'/%3e %3cpath d='M138.5 120.5L94.5 135L138.5 170.5V120.5Z' fill='%23FD9F00'/%3e %3cpath d='M137.5 204V149L181.5 134.5V188.5L137.5 204Z' fill='%23FDC000'/%3e %3cpath d='M137.5 149L94.5 134.5V188.5L137.5 204V149Z' fill='%23FDB200'/%3e %3cpath d='M121.5 171L137 149L94.5 146V167L121.5 171Z' fill='%23FE8D00'/%3e %3cpath d='M159.5 163L137.5 149L181 134.5L200.5 148.5L159.5 163Z' fill='%23FEECB2'/%3e %3cpath d='M116 162.5L137.5 149L94.5 135L74 148L116 162.5Z' fill='%23FED966'/%3e %3cpath d='M159 107L138.5 120.5L181 134.5L202.5 122L159 107Z' fill='%23FDC000'/%3e %3cpath d='M75 121.5L94.5 135L138.5 120.5L118 107L75 121.5Z' fill='%23FEECB2'/%3e %3cpath d='M136.598 140.5C129.265 137.5 117.398 129.4 128.598 121C142.598 110.5 146.598 105.5 143.598 99.5C140.598 93.5 131.098 96 132.598 104C134.098 112 144.598 119 155.598 111.5C166.598 104 166.598 81 148.598 73' stroke='%23B9D1E1' stroke-dasharray='2 2'/%3e %3cpath d='M152.5 72.5C152.5 72.7215 152.381 72.9602 152.114 73.1607C151.847 73.3612 151.455 73.5 151 73.5C150.545 73.5 150.153 73.3612 149.886 73.1607C149.619 72.9602 149.5 72.7215 149.5 72.5C149.5 72.2785 149.619 72.0398 149.886 71.8393C150.153 71.6388 150.545 71.5 151 71.5C151.455 71.5 151.847 71.6388 152.114 71.8393C152.381 72.0398 152.5 72.2785 152.5 72.5Z' stroke='%23839DAE'/%3e %3ccircle cx='148.5' cy='72.5' r='1.5' fill='%23B9D1E1'/%3e%3cpath d='M150.5 75C150.5 75.4546 150.361 75.8468 150.161 76.1142C149.96 76.3814 149.722 76.5 149.5 76.5C149.278 76.5 149.04 76.3814 148.839 76.1142C148.639 75.8468 148.5 75.4546 148.5 75C148.5 74.5454 148.639 74.1532 148.839 73.8858C149.04 73.6186 149.278 73.5 149.5 73.5C149.722 73.5 149.96 73.6186 150.161 73.8858C150.361 74.1532 150.5 74.5454 150.5 75Z' stroke='%23839DAE'/%3e%3c/svg%3e",img$r="data:image/svg+xml,%3csvg width='275' height='275' viewBox='0 0 275 275' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e %3cpath d='M103.121 192.275V189.506H146.428L143.242 173.998H164.254L169.139 185.621C169.445 186.35 169.567 187.144 169.492 187.932C169.417 188.719 169.149 189.476 168.712 190.135C168.274 190.793 167.68 191.334 166.983 191.708C166.286 192.081 165.508 192.277 164.717 192.278L103.121 192.275Z' fill='%231D46A0'/%3e %3cpath d='M131.368 189.506H103.121V192.275H131.368V189.506Z' fill='%23063387'/%3e %3cpath d='M133.402 189.506H136.243C136.723 189.506 137.197 189.401 137.632 189.198C138.066 188.995 138.451 188.7 138.76 188.332C139.068 187.965 139.293 187.534 139.417 187.071C139.541 186.608 139.563 186.123 139.48 185.65L137.431 173.998H161.015L166.302 186.58C166.438 186.901 166.491 187.25 166.459 187.597C166.426 187.943 166.308 188.277 166.116 188.566C165.923 188.856 165.662 189.094 165.355 189.259C165.048 189.423 164.706 189.509 164.358 189.509L133.402 189.506Z' fill='%234B68B4'/%3e %3cpath d='M172.098 173.909H95.1732C94.5039 173.909 93.8426 173.763 93.2359 173.48C92.6293 173.198 92.092 172.785 91.6619 172.273C91.2318 171.76 90.9193 171.159 90.7465 170.512C90.5737 169.866 90.5448 169.189 90.6618 168.53L101.817 105.503C102.004 104.442 102.559 103.482 103.384 102.79C104.209 102.098 105.252 101.719 106.329 101.719H183.254C183.923 101.719 184.585 101.865 185.191 102.148C185.798 102.431 186.335 102.843 186.765 103.356C187.195 103.868 187.508 104.469 187.681 105.116C187.853 105.763 187.882 106.439 187.765 107.098L176.61 170.125C176.423 171.186 175.868 172.146 175.043 172.838C174.218 173.53 173.175 173.909 172.098 173.909V173.909Z' fill='%231D46A0'/%3e %3cpath d='M125.531 135.837C124.167 127.848 120.087 112.569 108.153 101.719H103.394C102.315 101.718 101.271 102.097 100.445 102.79C99.6187 103.483 99.0637 104.445 98.8775 105.508L87.7074 168.61C87.5888 169.27 87.6167 169.948 87.7892 170.596C87.9616 171.245 88.2745 171.847 88.7056 172.361C89.1366 172.875 89.6754 173.289 90.2838 173.571C90.8921 173.854 91.5552 174 92.2261 173.998H169.245C169.905 173.997 170.557 173.854 171.156 173.579C154.836 171.906 144.187 165.481 137.371 158.789C131.079 152.61 127.016 144.532 125.531 135.837Z' fill='%232C51A4'/%3e %3cpath d='M69.9194 98.9179L70.0148 98.8249L69.9194 98.9179Z' fill='%234B68B4'/%3e %3cpath d='M173.761 170.21L184.929 107.105C185.047 106.445 185.019 105.768 184.846 105.12C184.674 104.472 184.361 103.87 183.93 103.356C183.499 102.842 182.961 102.43 182.353 102.147C181.745 101.864 181.083 101.718 180.412 101.719H108.153C120.089 112.564 124.169 127.848 125.533 135.837C127.018 144.532 131.076 152.61 137.373 158.789C144.189 165.481 154.838 171.906 171.158 173.579C171.833 173.27 172.422 172.802 172.875 172.215C173.328 171.628 173.632 170.94 173.761 170.21V170.21Z' fill='%23506AB0'/%3e %3cpath d='M164.254 173.998H161.015H143.242H137.431L137.617 175.059L140.352 175.02L161.706 175.013H164.68L164.254 173.998Z' fill='%23063387'/%3e %3cpath d='M130.968 170.957C132.033 170.957 132.896 170.094 132.896 169.029C132.896 167.964 132.033 167.101 130.968 167.101C129.903 167.101 129.04 167.964 129.04 169.029C129.04 170.094 129.903 170.957 130.968 170.957Z' fill='%23002272'/%3e %3cpath d='M171.501 164.06H92.0308L102.521 104.794H181.989L171.501 164.06Z' fill='%23EDF4F9'/%3e %3cpath d='M181.22 109.142H101.75L102.521 104.794H181.989L181.22 109.142Z' fill='%23002272'/%3e %3cpath d='M105.309 107.45C105.617 107.45 105.866 107.201 105.866 106.893C105.866 106.586 105.617 106.337 105.309 106.337C105.002 106.337 104.752 106.586 104.752 106.893C104.752 107.201 105.002 107.45 105.309 107.45Z' fill='%23FF4E08'/%3e %3cpath d='M107.198 107.45C107.506 107.45 107.755 107.201 107.755 106.893C107.755 106.586 107.506 106.337 107.198 106.337C106.891 106.337 106.642 106.586 106.642 106.893C106.642 107.201 106.891 107.45 107.198 107.45Z' fill='%23FFBE00'/%3e %3cpath d='M109.088 107.45C109.395 107.45 109.645 107.201 109.645 106.893C109.645 106.586 109.395 106.337 109.088 106.337C108.78 106.337 108.531 106.586 108.531 106.893C108.531 107.201 108.78 107.45 109.088 107.45Z' fill='%2300B084'/%3e %3cpath d='M111.158 113.877H174.564C175.153 113.877 175.717 114.111 176.133 114.527C176.549 114.943 176.783 115.508 176.783 116.096L169.151 158.367C169.151 158.956 168.917 159.52 168.501 159.936C168.085 160.352 167.52 160.586 166.932 160.586H103.525C102.937 160.586 102.372 160.352 101.956 159.936C101.54 159.52 101.306 158.956 101.306 158.367L108.938 116.096C108.938 115.508 109.172 114.943 109.588 114.527C110.005 114.111 110.569 113.877 111.158 113.877Z' fill='%23E2EDF4'/%3e %3cpath d='M173.431 112.832H110.024C109.747 112.831 109.473 112.885 109.217 112.991C108.961 113.096 108.728 113.252 108.532 113.447C108.336 113.643 108.181 113.876 108.075 114.132C107.97 114.388 107.916 114.663 107.917 114.94L100.284 157.21C100.278 157.765 100.489 158.3 100.871 158.702C101.271 159.087 101.808 159.298 102.363 159.289H165.769C166.046 159.29 166.32 159.236 166.576 159.13C166.833 159.024 167.065 158.869 167.261 158.673C167.457 158.477 167.612 158.245 167.718 157.989C167.823 157.733 167.877 157.458 167.877 157.181L175.48 114.91C175.478 114.351 175.255 113.815 174.858 113.42C174.462 113.024 173.926 112.803 173.366 112.803L173.431 112.832Z' fill='white'/%3e %3cpath d='M107.794 152.972C108.27 152.972 108.657 152.585 108.657 152.109C108.657 151.632 108.27 151.246 107.794 151.246C107.317 151.246 106.931 151.632 106.931 152.109C106.931 152.585 107.317 152.972 107.794 152.972Z' fill='%23009DFF'/%3e %3cpath d='M115.332 151.733H112.214V152.478H115.332V151.733Z' fill='%23B3D0E2'/%3e %3cpath d='M112.209 151.733H110.413V152.478H112.209V151.733Z' fill='%23B3D0E2'/%3e %3cpath d='M115.327 154.715H110.413V155.085H115.327V154.715Z' fill='%23B3D0E2'/%3e %3cpath d='M124.702 152.972C125.179 152.972 125.565 152.585 125.565 152.109C125.565 151.632 125.179 151.246 124.702 151.246C124.226 151.246 123.839 151.632 123.839 152.109C123.839 152.585 124.226 152.972 124.702 152.972Z' fill='%23244FA9'/%3e %3cpath d='M132.234 151.733H127.32V152.478H132.234V151.733Z' fill='%23B3D0E2'/%3e %3cpath d='M132.234 154.715H127.32V155.085H132.234V154.715Z' fill='%23B3D0E2'/%3e %3cpath d='M158.846 147.506H112.093V149.193H158.846V147.506Z' fill='%23E2EDF4'/%3e %3cpath d='M126.34 116.437H116.183V117.552H126.34V116.437Z' fill='%23B3D0E2'/%3e %3cg opacity='0.2'%3e %3cpath opacity='0.2' d='M157.6 164.06H138.22L149.322 104.794H168.031L157.6 164.06Z' fill='white'/%3e %3c/g%3e %3cpath d='M148 133C148 139.627 142.024 145 135.227 145C128.43 145 124 139.627 124 133C124 126.373 129.51 121 136.307 121C143.104 121 148 126.373 148 133Z' fill='%230E8EFF'/%3e %3cpath d='M136.822 131.223L134.376 129.382V136.618L136.822 134.777L139.188 133L136.822 131.223ZM136.822 131.223L134.376 129.382V136.618L136.822 134.777L139.188 133L136.822 131.223ZM136.822 131.223L134.376 129.382V136.618L136.822 134.777L139.188 133L136.822 131.223ZM135.178 126.624V125C133.566 125.161 132.098 125.804 130.911 126.777L132.05 127.927C132.94 127.235 134.007 126.769 135.178 126.624ZM130.919 129.06L129.772 127.919C128.802 129.109 128.16 130.58 128 132.196H129.62C129.764 131.022 130.23 129.953 130.919 129.06ZM129.62 133.804H128C128.16 135.42 128.802 136.891 129.772 138.081L130.919 136.932C130.23 136.047 129.764 134.978 129.62 133.804ZM130.911 139.223C132.098 140.196 133.574 140.839 135.178 141V139.376C134.007 139.231 132.94 138.765 132.05 138.073L130.911 139.223ZM144 133C144 137.149 140.856 140.574 136.822 141V139.376C139.966 138.958 142.396 136.256 142.396 133C142.396 129.744 139.966 127.042 136.822 126.624V125C140.856 125.426 144 128.851 144 133Z' fill='white'/%3e %3ccircle cx='59.677' cy='132.203' r='18.677' fill='%230E8EFF'/%3e %3cpath d='M67.2082 127.142H60.9668L63.6758 124.433L63.0912 123.848L59.7976 127.142H59.7729L56.4793 123.848L55.9112 124.433L58.6119 127.142H52.387C51.4813 127.142 50.7402 127.883 50.7402 128.788V138.669C50.7402 139.575 51.4813 140.316 52.387 140.316H67.2082C68.1139 140.316 68.8549 139.575 68.8549 138.669V128.788C68.8549 127.883 68.1139 127.142 67.2082 127.142ZM67.2082 138.669H52.387V128.788H67.2082V138.669Z' fill='white'/%3e %3ccircle cx='148.845' cy='72.677' r='18.677' fill='%230E8EFF'/%3e %3cpath d='M151.828 68.7006V76.6534H141.887V68.7006H151.828ZM152.822 66.7124H140.893C140.346 66.7124 139.898 67.1598 139.898 67.7065V77.6475C139.898 78.1943 140.346 78.6416 140.893 78.6416H152.822C153.368 78.6416 153.816 78.1943 153.816 77.6475V74.1682L157.792 78.1446V67.2095L153.816 71.1859V67.7065C153.816 67.1598 153.368 66.7124 152.822 66.7124Z' fill='white'/%3e %3ccircle cx='216.323' cy='137.986' r='18.677' fill='%230E8EFF'/%3e %3cpath d='M223.352 132.685H213.249L220.382 129.8L219.794 128.367L208.879 132.814C208.249 133.056 207.808 133.695 207.808 134.412V144.774C207.808 145.724 208.577 146.501 209.535 146.501H223.352C224.311 146.501 225.079 145.724 225.079 144.774V134.412C225.079 133.453 224.311 132.685 223.352 132.685ZM223.352 134.412V137.002H221.625V135.275H219.898V137.002H209.535V134.412H223.352ZM209.535 144.774V138.729H223.352V144.774H209.535Z' fill='white'/%3e%3cpath d='M214.285 142.184C215.477 142.184 216.444 141.217 216.444 140.025C216.444 138.832 215.477 137.866 214.285 137.866C213.093 137.866 212.126 138.832 212.126 140.025C212.126 141.217 213.093 142.184 214.285 142.184Z' fill='white'/%3e%3c/svg%3e",img$p="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.99992 1.63636C4.9331 1.63636 1.6363 4.93317 1.6363 8.99998C1.6363 13.0668 4.9331 16.3636 8.99992 16.3636C13.0667 16.3636 16.3635 13.0668 16.3635 8.99998C16.3635 4.93317 13.0667 1.63636 8.99992 1.63636ZM-6.10352e-05 8.99998C-6.10352e-05 4.02943 4.02937 0 8.99992 0C13.9705 0 17.9999 4.02943 17.9999 8.99998C17.9999 13.9705 13.9705 18 8.99992 18C4.02937 18 -6.10352e-05 13.9705 -6.10352e-05 8.99998Z' fill='%23555F7C'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.86 13.0717L10.7194 13.647C10.2975 13.8132 9.96089 13.94 9.70947 14.0274C9.45805 14.1147 9.16615 14.1584 8.83376 14.1584C8.32239 14.1584 7.92503 14.0337 7.64164 13.7845C7.35826 13.5352 7.21657 13.2188 7.21657 12.8352C7.21657 12.6861 7.22723 12.5338 7.24853 12.3782C7.26984 12.2227 7.30393 12.0469 7.35081 11.8509L7.87495 9.9844C7.92183 9.80542 7.96125 9.63603 7.99321 9.47623C8.02517 9.31643 8.04115 9.17048 8.04115 9.03837C8.04115 8.79974 7.99214 8.63355 7.89413 8.5398C7.79612 8.44605 7.60862 8.39917 7.33163 8.39917C7.19527 8.39917 7.05571 8.42048 6.91295 8.46309C6.7702 8.50571 6.64768 8.54619 6.54541 8.58454L6.68603 8.00926C7.03121 7.86863 7.36146 7.74825 7.6768 7.64811C7.99214 7.54797 8.29043 7.4979 8.57168 7.4979C9.07879 7.4979 9.46976 7.62041 9.74462 7.86544C10.0195 8.11047 10.1569 8.429 10.1569 8.82105C10.1569 8.90201 10.1473 9.04477 10.1281 9.24931C10.109 9.45386 10.0738 9.64136 10.0227 9.81181L9.49853 11.6719C9.45592 11.821 9.41756 11.9915 9.38347 12.1833C9.34938 12.375 9.33234 12.5199 9.33234 12.6179C9.33234 12.8651 9.38773 13.0334 9.49853 13.1229C9.60932 13.2124 9.80108 13.2571 10.0738 13.2571C10.2017 13.2571 10.3465 13.2347 10.5085 13.19C10.6704 13.1453 10.7876 13.1058 10.86 13.0717ZM10.9943 5.26708C10.9943 5.59094 10.8718 5.86686 10.6267 6.09484C10.3817 6.32283 10.0866 6.43682 9.74143 6.43682C9.39625 6.43682 9.10009 6.32283 8.85293 6.09484C8.60577 5.86686 8.4822 5.59094 8.4822 5.26708C8.4822 4.94321 8.60577 4.66623 8.85293 4.43611C9.10009 4.206 9.39625 4.09094 9.74143 4.09094C10.0866 4.09094 10.3817 4.206 10.6267 4.43611C10.8718 4.66623 10.9943 4.94321 10.9943 5.26708Z' fill='%23555F7C'/%3e%3c/svg%3e",img$o="data:image/svg+xml,%3csvg width='50' height='50' viewBox='0 0 50 50' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M14.6645 29.3807C14.6689 29.3852 14.6751 29.387 14.6798 29.3904C14.7156 29.422 14.7554 29.4501 14.8011 29.4685C14.8524 29.489 14.9069 29.4999 14.9617 29.4999C15.0164 29.4999 15.0709 29.489 15.1222 29.4685C15.1679 29.4501 15.2077 29.4223 15.2435 29.3904C15.2482 29.3861 15.2541 29.3849 15.2588 29.3807L16.9068 27.7824C17.0707 27.6235 17.0707 27.3655 16.9068 27.2068C16.7434 27.0479 16.4768 27.0479 16.3128 27.2068L15.3817 28.1098V23.6226H23.3585C23.5903 23.6226 23.7785 23.4404 23.7785 23.2154V19.9141H24.5803V28.1095L23.6488 27.2062C23.4854 27.0473 23.2188 27.0473 23.0548 27.2062C22.8912 27.3652 22.8912 27.6235 23.0548 27.7821L24.7031 29.3801C24.7417 29.4175 24.7881 29.4477 24.8394 29.4682C24.8908 29.4887 24.9452 29.4996 25 29.4996C25.0547 29.4996 25.1092 29.4887 25.1605 29.4682C25.2121 29.4477 25.2582 29.4178 25.2968 29.3801L26.9451 27.7821C27.109 27.6235 27.109 27.3652 26.9454 27.2062C26.7817 27.0473 26.5154 27.0473 26.3515 27.2062L25.42 28.1095V19.9141H26.2214V23.2154C26.2214 23.4404 26.4093 23.6226 26.6414 23.6226H34.6198V28.1098L33.688 27.2068C33.5253 27.0479 33.258 27.0479 33.095 27.2068C32.9317 27.3655 32.9317 27.6235 33.0956 27.7824L34.7436 29.3804C34.7825 29.4181 34.8279 29.4477 34.8799 29.4685C34.9312 29.489 34.9857 29.4999 35.0411 29.4999C35.0961 29.4999 35.1509 29.489 35.2022 29.4685C35.2536 29.4483 35.2996 29.4181 35.3385 29.3804L36.9865 27.7824C37.1495 27.6235 37.1495 27.3655 36.9865 27.2068C36.8232 27.0479 36.5556 27.0479 36.3932 27.2068L35.4617 28.1098V23.2154C35.4617 22.9903 35.2738 22.8081 35.0414 22.8081H27.0611V19.9141H28.9618V12.2305H21.0375V19.9141H22.9382V22.8081H14.9617C14.7299 22.8081 14.5416 22.9903 14.5416 23.2154V28.1098L13.6105 27.2068C13.4465 27.0479 13.1799 27.0479 13.0165 27.2068C12.8526 27.3655 12.8526 27.6235 13.0165 27.7824L14.6645 29.3807Z' fill='%23555F7C'/%3e%3cpath d='M28.962 30.394H21.0381V38.0777H28.962V30.394Z' fill='%23555F7C'/%3e%3cpath d='M39 30.394H31.0754V38.0777H39V30.394Z' fill='%23555F7C'/%3e%3cpath d='M18.924 30.394H10.9998V38.0777H18.924V30.394Z' fill='%23555F7C'/%3e%3c/svg%3e",img$n="data:image/svg+xml,%3csvg width='50' height='50' viewBox='0 0 50 50' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M14.6645 29.3807C14.6689 29.3852 14.6751 29.387 14.6798 29.3904C14.7156 29.422 14.7554 29.4501 14.8011 29.4685C14.8524 29.489 14.9069 29.4999 14.9617 29.4999C15.0164 29.4999 15.0709 29.489 15.1222 29.4685C15.1679 29.4501 15.2077 29.4223 15.2435 29.3904C15.2482 29.3861 15.2541 29.3849 15.2588 29.3807L16.9068 27.7824C17.0707 27.6235 17.0707 27.3655 16.9068 27.2068C16.7434 27.0479 16.4768 27.0479 16.3128 27.2068L15.3817 28.1098V23.6226H23.3585C23.5903 23.6226 23.7785 23.4404 23.7785 23.2154V19.9141H24.5803V28.1095L23.6488 27.2062C23.4854 27.0473 23.2188 27.0473 23.0548 27.2062C22.8912 27.3652 22.8912 27.6235 23.0548 27.7821L24.7031 29.3801C24.7417 29.4175 24.7881 29.4477 24.8394 29.4682C24.8908 29.4887 24.9452 29.4996 25 29.4996C25.0547 29.4996 25.1092 29.4887 25.1605 29.4682C25.2121 29.4477 25.2582 29.4178 25.2968 29.3801L26.9451 27.7821C27.109 27.6235 27.109 27.3652 26.9454 27.2062C26.7817 27.0473 26.5154 27.0473 26.3515 27.2062L25.42 28.1095V19.9141H26.2214V23.2154C26.2214 23.4404 26.4093 23.6226 26.6414 23.6226H34.6198V28.1098L33.688 27.2068C33.5253 27.0479 33.258 27.0479 33.095 27.2068C32.9317 27.3655 32.9317 27.6235 33.0956 27.7824L34.7436 29.3804C34.7825 29.4181 34.8279 29.4477 34.8799 29.4685C34.9312 29.489 34.9857 29.4999 35.0411 29.4999C35.0961 29.4999 35.1509 29.489 35.2022 29.4685C35.2536 29.4483 35.2996 29.4181 35.3385 29.3804L36.9865 27.7824C37.1495 27.6235 37.1495 27.3655 36.9865 27.2068C36.8232 27.0479 36.5556 27.0479 36.3932 27.2068L35.4617 28.1098V23.2154C35.4617 22.9903 35.2738 22.8081 35.0414 22.8081H27.0611V19.9141H28.9618V12.2305H21.0375V19.9141H22.9382V22.8081H14.9617C14.7299 22.8081 14.5416 22.9903 14.5416 23.2154V28.1098L13.6105 27.2068C13.4465 27.0479 13.1799 27.0479 13.0165 27.2068C12.8526 27.3655 12.8526 27.6235 13.0165 27.7824L14.6645 29.3807Z' fill='%231871E8'/%3e%3cpath d='M28.962 30.394H21.0381V38.0777H28.962V30.394Z' fill='%231871E8'/%3e%3cpath d='M39 30.394H31.0754V38.0777H39V30.394Z' fill='%231871E8'/%3e%3cpath d='M18.924 30.394H10.9998V38.0777H18.924V30.394Z' fill='%231871E8'/%3e%3c/svg%3e",img$m="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M15.75 11.7075L14.6925 12.75L10.935 9L14.6925 5.25L15.75 6.2925L13.08 9L15.75 11.7075ZM2.25 4.5H12V6H2.25V4.5ZM2.25 9.75V8.25H9.75V9.75H2.25ZM2.25 13.5V12H12V13.5H2.25Z' fill='%23555F7C'/%3e%3c/svg%3e",img$l="data:image/svg+xml,%3csvg width='23' height='24' viewBox='0 0 23 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M20 4C20.5304 4 21.0391 4.21071 21.4142 4.58579C21.7893 4.96086 22 5.46957 22 6V18C22 18.5304 21.7893 19.0391 21.4142 19.4142C21.0391 19.7893 20.5304 20 20 20H4C3.46957 20 2.96086 19.7893 2.58579 19.4142C2.21071 19.0391 2 18.5304 2 18V6C2 5.46957 2.21071 4.96086 2.58579 4.58579C2.96086 4.21071 3.46957 4 4 4H20ZM20 18V6H4V18H20ZM6 10H8V12H6V10ZM6 14H14V16H6V14ZM16 14H18V16H16V14ZM10 10H18V12H10V10Z' fill='%23555F7C'/%3e%3c/svg%3e",img$k="data:image/svg+xml,%3csvg width='23' height='24' viewBox='0 0 23 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M20 4C20.5304 4 21.0391 4.21071 21.4142 4.58579C21.7893 4.96086 22 5.46957 22 6V18C22 18.5304 21.7893 19.0391 21.4142 19.4142C21.0391 19.7893 20.5304 20 20 20H4C3.46957 20 2.96086 19.7893 2.58579 19.4142C2.21071 19.0391 2 18.5304 2 18V6C2 5.46957 2.21071 4.96086 2.58579 4.58579C2.96086 4.21071 3.46957 4 4 4H20ZM20 18V6H4V18H20ZM6 10H8V12H6V10ZM6 14H14V16H6V14ZM16 14H18V16H16V14ZM10 10H18V12H10V10Z' fill='%231871E8'/%3e%3c/svg%3e",img$i="data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.4167 7L11.9934 5.3725L12.1917 3.22L10.0859 2.74167L8.98337 0.875L7.00004 1.72667L5.01671 0.875L3.91421 2.73583L1.80837 3.20833L2.00671 5.36667L0.583374 7L2.00671 8.6275L1.80837 10.7858L3.91421 11.2642L5.01671 13.125L7.00004 12.2675L8.98337 13.1192L10.0859 11.2583L12.1917 10.78L11.9934 8.6275L13.4167 7ZM5.88587 9.75333L3.66921 7.53083L4.53254 6.6675L5.88587 8.02667L9.29837 4.6025L10.1617 5.46583L5.88587 9.75333Z' fill='%23FFBB0A'/%3e%3c/svg%3e",img$h="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7 14H5V19H10V17H7V14ZM5 10H7V7H10V5H5V10ZM17 17H14V19H19V14H17V17ZM14 5V7H17V10H19V5H14Z' fill='%23555F7C'/%3e%3c/svg%3e",img$g="data:image/svg+xml,%3csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6.58335 3.08342H5.41669V5.41675H3.08335V6.58342H5.41669V8.91675H6.58335V6.58342H8.91669V5.41675H6.58335V3.08342ZM6.00002 0.166748C2.78002 0.166748 0.166687 2.78008 0.166687 6.00008C0.166687 9.22008 2.78002 11.8334 6.00002 11.8334C9.22002 11.8334 11.8334 9.22008 11.8334 6.00008C11.8334 2.78008 9.22002 0.166748 6.00002 0.166748ZM6.00002 10.6667C3.42752 10.6667 1.33335 8.57258 1.33335 6.00008C1.33335 3.42758 3.42752 1.33341 6.00002 1.33341C8.57252 1.33341 10.6667 3.42758 10.6667 6.00008C10.6667 8.57258 8.57252 10.6667 6.00002 10.6667Z' fill='%231871E8'/%3e%3c/svg%3e",img$f="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5 16H8V19H10V14H5V16ZM8 8H5V10H10V5H8V8ZM14 19H16V16H19V14H14V19ZM16 8V5H14V10H19V8H16Z' fill='%23555F7C'/%3e%3c/svg%3e",img$e="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M21 8H3V6H21V8ZM13.81 16H10V18H13.09C13.21 17.28 13.46 16.61 13.81 16ZM18 11H6V13H18V11ZM21.12 15.46L19 17.59L16.88 15.46L15.47 16.88L17.59 19L15.47 21.12L16.88 22.54L19 20.41L21.12 22.54L22.54 21.12L20.41 19L22.54 16.88L21.12 15.46Z' fill='%231B1D1F'/%3e%3c/svg%3e",img$d="data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.33329 1.16663H2.33329C1.69163 1.16663 1.16663 1.69163 1.16663 2.33329V10.5H2.33329V2.33329H9.33329V1.16663ZM11.6666 3.49996H4.66663C4.02496 3.49996 3.49996 4.02496 3.49996 4.66663V11.6666C3.49996 12.3083 4.02496 12.8333 4.66663 12.8333H11.6666C12.3083 12.8333 12.8333 12.3083 12.8333 11.6666V4.66663C12.8333 4.02496 12.3083 3.49996 11.6666 3.49996ZM11.6666 11.6666H4.66663V4.66663H11.6666V11.6666Z' fill='%23555F7C'/%3e%3cpath d='M7.875 5.83337H9.33333C9.72011 5.83337 10.091 5.98087 10.3645 6.24342C10.638 6.50598 10.7917 6.86207 10.7917 7.23337V9.10004C10.7917 9.47134 10.638 9.82744 10.3645 10.09C10.091 10.3525 9.72011 10.5 9.33333 10.5H7.875V5.83337ZM9.33333 9.56671C9.46226 9.56671 9.5859 9.51754 9.67707 9.43002C9.76823 9.34251 9.81944 9.22381 9.81944 9.10004V7.23337C9.81944 7.10961 9.76823 6.99091 9.67707 6.90339C9.5859 6.81587 9.46226 6.76671 9.33333 6.76671H8.84722V9.56671H9.33333Z' fill='%23555F7C'/%3e%3crect x='5.83337' y='5.83337' width='1.16667' height='4.66667' fill='%23555F7C'/%3e%3c/svg%3e",img$c="data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.5835 1.75C4.68433 1.75 2.3335 4.10083 2.3335 7H0.583496L2.91683 9.3275L5.25016 7H3.50016C3.50016 4.7425 5.326 2.91667 7.5835 2.91667C9.841 2.91667 11.6668 4.7425 11.6668 7C11.6668 9.2575 9.841 11.0833 7.5835 11.0833C6.45766 11.0833 5.43683 10.6225 4.70183 9.88167L3.8735 10.71C4.82433 11.6608 6.131 12.25 7.5835 12.25C10.4827 12.25 12.8335 9.89917 12.8335 7C12.8335 4.10083 10.4827 1.75 7.5835 1.75ZM7.00016 4.66667V7.58333L9.47933 9.05333L9.9285 8.30667L7.87516 7.0875V4.66667H7.00016Z' fill='%23555F7C'/%3e%3c/svg%3e",img$a="data:image/svg+xml,%3csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6.6 8.4V3.6H7.8V8.4H6.6ZM4.2 8.4V3.6H5.4V8.4H4.2ZM6 0C6.78793 0 7.56815 0.155195 8.2961 0.456723C9.02405 0.758251 9.68549 1.20021 10.2426 1.75736C10.7998 2.31451 11.2417 2.97595 11.5433 3.7039C11.8448 4.43185 12 5.21207 12 6C12 7.5913 11.3679 9.11742 10.2426 10.2426C9.11742 11.3679 7.5913 12 6 12C5.21207 12 4.43185 11.8448 3.7039 11.5433C2.97595 11.2417 2.31451 10.7998 1.75736 10.2426C0.632141 9.11742 0 7.5913 0 6C0 4.4087 0.632141 2.88258 1.75736 1.75736C2.88258 0.632141 4.4087 0 6 0ZM6 1.2C4.72696 1.2 3.50606 1.70571 2.60589 2.60589C1.70571 3.50606 1.2 4.72696 1.2 6C1.2 7.27304 1.70571 8.49394 2.60589 9.39411C3.50606 10.2943 4.72696 10.8 6 10.8C7.27304 10.8 8.49394 10.2943 9.39411 9.39411C10.2943 8.49394 10.8 7.27304 10.8 6C10.8 4.72696 10.2943 3.50606 9.39411 2.60589C8.49394 1.70571 7.27304 1.2 6 1.2Z' fill='white'/%3e%3c/svg%3e",img$9="data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.83317 9.62496L9.33317 6.99996L5.83317 4.37496V9.62496ZM6.99984 1.16663C3.77984 1.16663 1.1665 3.77996 1.1665 6.99996C1.1665 10.22 3.77984 12.8333 6.99984 12.8333C10.2198 12.8333 12.8332 10.22 12.8332 6.99996C12.8332 3.77996 10.2198 1.16663 6.99984 1.16663ZM6.99984 11.6666C4.42734 11.6666 2.33317 9.57246 2.33317 6.99996C2.33317 4.42746 4.42734 2.33329 6.99984 2.33329C9.57234 2.33329 11.6665 4.42746 11.6665 6.99996C11.6665 9.57246 9.57234 11.6666 6.99984 11.6666Z' fill='white'/%3e%3c/svg%3e",img$8="data:image/svg+xml,%3csvg width='275' height='275' viewBox='0 0 275 275' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e%3cpath d='M97.4147 116.707H67C67 116.707 67 118.077 67 119.766V155.234C67 156.923 67 158.293 67 158.293H94.3733C96.0531 158.293 97.4147 158.293 97.4147 158.293V140.136H127.502V168.185C127.502 176.619 134.324 183.48 142.709 183.48H165.354V191.941C165.354 193.63 165.354 195 165.354 195H195.959C197.638 195 199 195 199 195V168.902C199 167.212 199 165.842 199 165.842H165.354C165.354 165.842 165.354 167.212 165.354 168.902V177.362H142.709C137.678 177.362 133.585 173.245 133.585 168.184V140.136H165.354V148.596C165.354 150.285 165.354 151.655 165.354 151.655H195.959C197.638 151.655 199 151.655 199 151.655V125.557C199 123.868 199 122.498 199 122.498H165.354C165.354 122.498 165.354 123.868 165.354 125.557V134.017H133.585V106.815C133.585 101.754 137.678 97.6372 142.709 97.6372H165.354V106.098C165.354 107.787 165.354 109.157 165.354 109.157H195.959H199V80H195.959L165.354 80C165.354 80 165.354 81.3699 165.354 83.0592V91.5195H142.709C134.324 91.5195 127.502 98.3812 127.502 106.815V134.018H97.4147V119.766C97.4147 118.077 97.4147 116.707 97.4147 116.707Z' fill='%23FEECB2'/%3e%3crect x='67' y='116' width='31' height='43' fill='%23FDB200'/%3e%3crect x='165' y='80' width='34' height='30' fill='%23FE8D00'/%3e%3crect x='165' y='122' width='34' height='30' fill='%23FE8D00'/%3e%3crect x='165' y='165' width='34' height='30' fill='%23FE8D00'/%3e%3c/svg%3e",img$7="data:image/svg+xml,%3csvg width='275' height='275' viewBox='0 0 275 275' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e%3crect opacity='0.5' x='86.188' y='75.1882' width='72.6341' height='98.5749' rx='4' fill='%23B9D1E1'/%3e%3crect opacity='0.5' x='93.1055' y='70' width='72.6341' height='98.5749' rx='4' fill='%23D4E3ED'/%3e%3crect x='81' y='80.3763' width='72.6341' height='98.5749' rx='4' fill='%23D4E3ED'/%3e%3crect x='91.3765' y='99.3995' width='55.3403' height='5.18815' rx='2.59408' fill='%23B9D1E1'/%3e%3crect x='91.3765' y='111.505' width='55.3403' height='5.18815' rx='2.59408' fill='%23B9D1E1'/%3e%3crect x='91.3765' y='125.34' width='55.3403' height='5.18815' rx='2.59408' fill='%23B9D1E1'/%3e%3crect x='91.3765' y='135.717' width='55.3403' height='5.18815' rx='2.59408' fill='%23B9D1E1'/%3e%3crect x='91.3765' y='149.552' width='32.8583' height='5.18815' rx='2.59408' fill='%23B9D1E1'/%3e%3crect x='178.312' y='145.546' width='6.91753' height='20.7526' transform='rotate(121.819 178.312 145.546)' fill='%23E2F1FF'/%3e%3cpath d='M219.353 166.94C221.23 168.105 221.808 170.571 220.643 172.448L217.567 177.406C216.402 179.283 213.936 179.861 212.059 178.696L172.842 154.363L180.137 142.607L219.353 166.94Z' fill='%230E8EFF'/%3e%3crect x='182.518' y='142.049' width='17.2938' height='5.18815' transform='rotate(121.819 182.518 142.049)' fill='%238DC7FF'/%3e%3crect x='212.465' y='162.666' width='13.8351' height='5.18815' transform='rotate(121.819 212.465 162.666)' fill='%238DC7FF'/%3e%3crect opacity='0.6' x='112.723' y='142.524' width='54.4333' height='12.1057' transform='rotate(-58.1813 112.723 142.524)' fill='white'/%3e%3cpath opacity='0.6' d='M125.019 150.757L153.718 104.504L158.365 109.176L131.6 152.312L125.019 150.757Z' fill='white'/%3e%3ccircle cx='135.277' cy='124.353' r='27.8995' transform='rotate(-13.1813 135.277 124.353)' fill='%23E2F1FF' fill-opacity='0.5' stroke='%230E8EFF' stroke-width='3'/%3e%3c/svg%3e",img$6="data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='275' height='275' viewBox='0 0 275 275' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e %3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e %3cpath d='M182.25 137.083C182.25 164.371 163.37 189.888 138 196.083C112.63 189.888 93.75 164.371 93.75 137.083V107.583L138 87.9167L182.25 107.583V137.083ZM138 186.25C156.437 181.333 172.417 159.405 172.417 138.165V113.975L138 98.6351L103.583 113.975V138.165C103.583 159.405 119.562 181.333 138 186.25ZM133.083 117.417H142.917V146.917H133.083V117.417ZM133.083 156.75H142.917V166.583H133.083V156.75Z' fill='%23555F7C'/%3e%3c/svg%3e",img$5="data:image/svg+xml,%3csvg width='30' height='30' viewBox='0 0 30 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='15' cy='15' r='15' fill='rgba(0%2c 0%2c 0%2c 0.05)' fill-opacity='0.8'/%3e%3cpath d='M20.4444 9H9.55556C8.69222 9 8 9.675 8 10.5V19.5C8 20.325 8.69222 21 9.55556 21H20.4444C21.3 21 22 20.325 22 19.5V10.5C22 9.675 21.3078 9 20.4444 9ZM20.4444 19.5H9.55556V12H20.4444V19.5Z' fill='%23555F7C'/%3e%3c/svg%3e",img$4="data:image/svg+xml,%3csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M17.4167 4.58333V6.41667H13.75V4.58333H17.4167ZM8.25 4.58333V10.0833H4.58333V4.58333H8.25ZM17.4167 11.9167V17.4167H13.75V11.9167H17.4167ZM8.25 15.5833V17.4167H4.58333V15.5833H8.25ZM19.25 2.75H11.9167V8.25H19.25V2.75ZM10.0833 2.75H2.75V11.9167H10.0833V2.75ZM19.25 10.0833H11.9167V19.25H19.25V10.0833ZM10.0833 13.75H2.75V19.25H10.0833V13.75Z' fill='%23555F7C' /%3e %3c/svg%3e",img$3="data:image/svg+xml,%3csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.0835 16.4999H11.9168V14.6666H10.0835V16.4999ZM11.0002 1.83325C9.79638 1.83325 8.60438 2.07035 7.49223 2.53102C6.38008 2.99169 5.36955 3.6669 4.51835 4.51811C2.79927 6.23719 1.8335 8.56877 1.8335 10.9999C1.8335 13.4311 2.79927 15.7626 4.51835 17.4817C5.36955 18.3329 6.38008 19.0081 7.49223 19.4688C8.60438 19.9295 9.79638 20.1666 11.0002 20.1666C13.4313 20.1666 15.7629 19.2008 17.482 17.4817C19.2011 15.7626 20.1668 13.4311 20.1668 10.9999C20.1668 9.79613 19.9297 8.60414 19.4691 7.49199C19.0084 6.37984 18.3332 5.36931 17.482 4.51811C16.6308 3.6669 15.6202 2.99169 14.5081 2.53102C13.3959 2.07035 12.2039 1.83325 11.0002 1.83325ZM11.0002 18.3333C6.95766 18.3333 3.66683 15.0424 3.66683 10.9999C3.66683 6.95742 6.95766 3.66659 11.0002 3.66659C15.0427 3.66659 18.3335 6.95742 18.3335 10.9999C18.3335 15.0424 15.0427 18.3333 11.0002 18.3333ZM11.0002 5.49992C10.0277 5.49992 9.09507 5.88623 8.40744 6.57386C7.7198 7.26149 7.3335 8.19412 7.3335 9.16658H9.16683C9.16683 8.68035 9.35998 8.21404 9.7038 7.87022C10.0476 7.52641 10.5139 7.33325 11.0002 7.33325C11.4864 7.33325 11.9527 7.52641 12.2965 7.87022C12.6403 8.21404 12.8335 8.68035 12.8335 9.16658C12.8335 10.9999 10.0835 10.7708 10.0835 13.7499H11.9168C11.9168 11.6874 14.6668 11.4583 14.6668 9.16658C14.6668 8.19412 14.2805 7.26149 13.5929 6.57386C12.9053 5.88623 11.9726 5.49992 11.0002 5.49992Z' fill='%23555F7C'/%3e%3c/svg%3e",img$2="data:image/svg+xml,%3csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.9998 20.1667C12.0082 20.1667 12.8332 19.3417 12.8332 18.3334H9.1665C9.1665 19.3417 9.9915 20.1667 10.9998 20.1667ZM16.4998 14.6667V10.0834C16.4998 7.26925 15.0057 4.91341 12.3748 4.29008V3.66675C12.3748 2.90591 11.7607 2.29175 10.9998 2.29175C10.239 2.29175 9.62484 2.90591 9.62484 3.66675V4.29008C7.00317 4.91341 5.49984 7.26008 5.49984 10.0834V14.6667L3.6665 16.5001V17.4167H18.3332V16.5001L16.4998 14.6667ZM14.6665 15.5834H7.33317V10.0834C7.33317 7.81008 8.71734 5.95841 10.9998 5.95841C13.2823 5.95841 14.6665 7.81008 14.6665 10.0834V15.5834Z' fill='%23555F7C'/%3e%3c/svg%3e",img$1="data:image/svg+xml,%3csvg width='128' height='128' viewBox='0 0 128 128' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M37.7704 30L26.5996 56.1511L50.7767 98H77.2227L37.7704 30Z' fill='%23728FBE'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M69.6953 30L79.948 47.7202L90.2289 30H69.6953Z' fill='%23728FBE'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M90.2287 30L50.7764 98H77.2224L101.399 56.1511L90.2287 30Z' fill='%23325491'/%3e%3c/svg%3e",img="data:image/svg+xml,%3csvg width='275' height='275' viewBox='0 0 275 275' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e%3cpath d='M84 169H141V181L84 184V169Z' fill='%23FDB200'/%3e%3cpath d='M81 114H126C134.284 114 141 120.716 141 129V180H81V114Z' fill='%23FED966'/%3e%3cpath d='M141 184C144.866 184 148 182.209 148 180H134C134 182.209 137.134 184 141 184Z' fill='%23FE8D00'/%3e%3cpath d='M115.355 128L107.667 136.395L104.645 133.108L103 134.904L107.667 140L117 129.809L115.355 128Z' fill='%23FE8D00'/%3e%3crect x='97' y='150' width='25' height='3' fill='%23FE8D00'/%3e%3crect x='97' y='158' width='25' height='3' fill='%23FE8D00'/%3e%3crect x='97' y='166' width='25' height='3' fill='%23FE8D00'/%3e%3cpath d='M199 183L141 180L141 172L199 169L199 183Z' fill='%23FED966'/%3e%3cpath d='M141 129C141 120.716 147.716 114 156 114H201V180H141V129Z' fill='%23FDC000'/%3e%3cpath d='M180 128.41L178.59 127L173 132.59L167.41 127L166 128.41L171.59 134L166 139.59L167.41 141L173 135.41L178.59 141L180 139.59L174.41 134L180 128.41Z' fill='%23FEECB2'/%3e%3crect x='160' y='150' width='25' height='3' fill='%23FEECB2'/%3e%3crect x='160' y='158' width='25' height='3' fill='%23FEECB2'/%3e%3crect x='160' y='166' width='25' height='3' fill='%23FEECB2'/%3e%3cpath d='M141 117.5C144 103.259 140.999 94.5 137.999 88.5C134.999 82.5 125.499 85 126.999 93C128.499 101 137.473 105.009 149.999 100.5C162.5 96 164.5 80 145.5 74' stroke='%23B9D1E1' stroke-dasharray='2 2'/%3e%3cpath d='M144.674 71.5778C144.753 71.7848 144.727 72.0501 144.549 72.3325C144.37 72.6152 144.053 72.8846 143.628 73.0465C143.204 73.2084 142.788 73.2184 142.466 73.1263C142.145 73.0342 141.95 72.8534 141.871 72.6464C141.792 72.4394 141.817 72.1741 141.996 71.8916C142.174 71.609 142.491 71.3396 142.916 71.1777C143.341 71.0158 143.757 71.0057 144.078 71.0979C144.399 71.19 144.595 71.3708 144.674 71.5778Z' stroke='%23839DAE'/%3e%3ccircle cx='140.936' cy='73.0026' r='1.5' transform='rotate(-20.8665 140.936 73.0026)' fill='%23B9D1E1'/%3e%3cpath d='M143.695 74.6262C143.857 75.0509 143.867 75.4669 143.775 75.7882C143.683 76.1093 143.502 76.3051 143.295 76.384C143.088 76.4629 142.822 76.4371 142.54 76.2588C142.257 76.0804 141.988 75.7633 141.826 75.3386C141.664 74.9138 141.654 74.4978 141.746 74.1766C141.838 73.8555 142.019 73.6597 142.226 73.5807C142.433 73.5018 142.698 73.5276 142.981 73.7059C143.264 73.8843 143.533 74.2014 143.695 74.6262Z' stroke='%23839DAE'/%3e%3c/svg%3e";!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();class DataCenter$1{openImporterPanel(){store$4.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$4.dispatch(unmountAllPanel$1(""))}}!function(e){e.fileUpload="fileUpload",e.fileUploadProgress="fileUploadProgress",e.tdoCreated="tdoCreated",e.jobCreated="jobCreated",e.languageChange="languageChange",e.permissionChanged="permissionChanged"}(SdkEvents=SdkEvents||{}),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)}}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$2 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$O,action:{type:"OPEN_HELP_LINK"}}]}}}}mountHelpPanel(){var{helpPanelMicroFrontend:e,helpPanelConfig:t}=this.getPanelConfig();store$4.dispatch(mountPanel$1({panelId:this.CUSTOM_HELP_PANEL_ID,microFrontend:e,panelConfig:t}))}panels(){return(null===store$4||void 0===store$4?void 0:store$4.getState()).panels}isCustomHelpPanelOpen(){return!!this.panels().find(e=>e.panelId===this.CUSTOM_HELP_PANEL_ID)}handleCustomDocsUrl(e){this.isURLValid(e)&&(store$4.dispatch(this.actions.setCustomDocsUrlAction(e)),store$4.dispatch(this.actions.updateSelectedTabAction(1,"")))}handleCustomKnowledgeBaseUrl(e){this.isURLValid(e)&&(store$4.dispatch(this.actions.setCustomKnowledgeBaseUrlAction(e)),store$4.dispatch(this.actions.updateSelectedTabAction(0,"")))}openDocsPanel(e,t=!0){var n;if(e&&!this.isURLValid(e))return n=new SdkError("Can not open the custom url! The url should be valid and start with http or https"),console.error(n.message),void store$4.dispatch(this.actions.updateSelectedTabAction(1,""));this.isCustomHelpPanelOpen()?this.handleCustomDocsUrl(e):(t&&this.unmountAllPanel(),this.mountHelpPanel(),e?this.handleCustomDocsUrl(e):store$4.dispatch(this.actions.updateSelectedTabAction(1,"")))}openKnowledgeBasePanel(e){var t;if(e&&!this.isURLValid(e))return t=new SdkError("Can not open the custom url! The url should be valid and start with http or https"),console.error(t.message),void store$4.dispatch(this.actions.updateSelectedTabAction(0,""));this.isCustomHelpPanelOpen()?this.handleCustomKnowledgeBaseUrl(e):(this.unmountAllPanel(),this.mountHelpPanel(),e?this.handleCustomKnowledgeBaseUrl(e):store$4.dispatch(this.actions.updateSelectedTabAction(0,"")))}}var genericMessage="Invariant Violation",_a$4=Object.setPrototypeOf,setPrototypeOf$1=void 0===_a$4?function(e,t){return e.__proto__=t,e}:_a$4,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$1(e,n.prototype),e}return __extends$1(n,t),n}(Error);function invariant$1(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 maybe$1(e){try{return e()}catch(e){}}!function(e){e.debug=wrapConsoleMethod("debug"),e.log=wrapConsoleMethod("log"),e.warn=wrapConsoleMethod("warn"),e.error=wrapConsoleMethod("error")}(invariant$1=invariant$1||{});var global$c=maybe$1(function(){return globalThis})||maybe$1(function(){return window})||maybe$1(function(){return self})||maybe$1(function(){return global})||maybe$1(function(){return Function("return this")()}),__="__",GLOBAL_KEY=[__,__].join("DEV");function getDEV(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(global$c,GLOBAL_KEY,{value:"production"!==maybe$1(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),global$c[GLOBAL_KEY]}}var DEV=getDEV();function maybe(e){try{return e()}catch(e){}}const safeGlobal=maybe(function(){return globalThis})||maybe(function(){return window})||maybe(function(){return self})||maybe(function(){return global})||maybe(function(){return Function("return this")()});let needToRemove=!1;function install(){!safeGlobal||maybe(function(){return"production"})||maybe(function(){return process})||(Object.defineProperty(safeGlobal,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),needToRemove=!0)}function remove(){needToRemove&&(delete safeGlobal.process,needToRemove=!1)}function _typeof$2(e){return(_typeof$2="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$7(e){return"object"==_typeof$2(e)&&null!==e}install();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(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(s-1)+"^"],["",l[r+1]]]))}return n+printPrefixedLines([["".concat(o-1),e[i-1]],["".concat(o),a],["",whitespace(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(e){return Array(e+1).join(" ")}function leftPad(e,t){return whitespace(e-t.length)+t}function _typeof$1(e){return(_typeof$1="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$2(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$2(Object(n),!0).forEach(function(e){_defineProperty(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys$2(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty(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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$4(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$4(e,t,n){return t&&_defineProperties$4(e.prototype,t),n&&_defineProperties$4(e,n),e}function _inherits(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$2(e,t)}function _createSuper(n){var r=_isNativeReflectConstruct$2();return function(){var e,t=_getPrototypeOf$2(n);return _possibleConstructorReturn(this,r?(e=_getPrototypeOf$2(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof$1(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _wrapNativeSuper$2(e){var n="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper$2=function(e){if(null===e||!_isNativeFunction$2(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$2(e,arguments,_getPrototypeOf$2(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$2(t,e)})(e)}function _construct$2(e,t,n){return(_construct$2=_isNativeReflectConstruct$2()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);t=new(Function.bind.apply(e,r));return n&&_setPrototypeOf$2(t,n.prototype),t}).apply(null,arguments)}function _isNativeReflectConstruct$2(){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$2(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _setPrototypeOf$2(e,t){return(_setPrototypeOf$2=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _getPrototypeOf$2(e){return(_getPrototypeOf$2=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var GraphQLError=function(){_inherits(p,_wrapNativeSuper$2(Error));var d=_createSuper(p);function p(e,t,n,r,i,o,a){_classCallCheck(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$7(r)?e.extensions=_objectSpread({},r):e.extensions=null!=a?a:{},Object.defineProperties(_assertThisInitialized(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(e),"stack",{value:o.stack,writable:!0,configurable:!0}),_possibleConstructorReturn(e)):(Error.captureStackTrace?Error.captureStackTrace(_assertThisInitialized(e),p):Object.defineProperty(_assertThisInitialized(e),"stack",{value:Error().stack,writable:!0,configurable:!0}),e)}return _createClass$4(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=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(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}var nodejsCustomInspectSymbol="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0,nodejsCustomInspectSymbol$1=nodejsCustomInspectSymbol;function defineInspect(e){var t=e.prototype.toJSON;"function"!=typeof t&&invariant(0),e.prototype.inspect=t,nodejsCustomInspectSymbol$1&&(e.prototype[nodejsCustomInspectSymbol$1]=t)}var Location=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=(defineInspect(Location),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}defineInspect(Token);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(e){return(_typeof="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(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)];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}function devAssert(e,t){if(!Boolean(e))throw new Error(t)}var instanceOf=function(e,t){return e instanceof t};function _defineProperties$3(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$3(e,t,n){return t&&_defineProperties$3(e.prototype,t),n&&_defineProperties$3(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(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$3(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(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,'\\"""')+'"""'}var Lexer=function(){function e(e){var t=new Token(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(TokenKind.BANG,o,o+1,s,l,t);case 35:return readComment(n,o,s,l,t);case 36:return new Token(TokenKind.DOLLAR,o,o+1,s,l,t);case 38:return new Token(TokenKind.AMP,o,o+1,s,l,t);case 40:return new Token(TokenKind.PAREN_L,o,o+1,s,l,t);case 41:return new Token(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(TokenKind.SPREAD,o,o+3,s,l,t);break;case 58:return new Token(TokenKind.COLON,o,o+1,s,l,t);case 61:return new Token(TokenKind.EQUALS,o,o+1,s,l,t);case 64:return new Token(TokenKind.AT,o,o+1,s,l,t);case 91:return new Token(TokenKind.BRACKET_L,o,o+1,s,l,t);case 93:return new Token(TokenKind.BRACKET_R,o,o+1,s,l,t);case 123:return new Token(TokenKind.BRACE_L,o,o+1,s,l,t);case 124:return new Token(TokenKind.PIPE,o,o+1,s,l,t);case 125:return new Token(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(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(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(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(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(TokenKind.BLOCK_STRING,t,s+3,n,r,i,dedentBlockStringValue(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(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$2(e,t){return new Parser(e,t).parseDocument()}var Parser=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.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:Kind.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=this._lexer.token;if(this.peek(TokenKind.BRACE_L))return{kind:Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(TokenKind.NAME)&&(t=this.parseName()),{kind:Kind.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},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.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.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:Kind.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.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.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:Kind.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.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:Kind.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.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.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.INT,value:t.value,loc:this.loc(t)};case TokenKind.FLOAT:return this._lexer.advance(),{kind:Kind.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.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:Kind.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:Kind.NULL,loc:this.loc(t)};default:return{kind:Kind.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.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.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.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.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.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.LIST_TYPE,type:t,loc:this.loc(e)}):this.parseNamedType();return this.expectOptionalToken(TokenKind.BANG)?{kind:Kind.NON_NULL_TYPE,type:t,loc:this.loc(e)}:t},t.parseNamedType=function(){var e=this._lexer.token;return{kind:Kind.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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(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={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=Object.freeze({});function visit(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,v=Object.keys(l);y<v.length;y++){var x=v[y];g[x]=l[x]}l=g}for(var C=0,b=0;b<s.length;b++){var $=s[b][0],w=s[b][1];i&&($-=C),i&&null===w?(l.splice($,1),C++):l[$]=w}}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 S=void 0;if(!Array.isArray(l)){if(!isNode(l))throw new Error("Invalid AST Node: ".concat(inspect(l),"."));var _=getVisitFn(t,l.kind,h);if(_){if((S=_.call(t,l,c,u,d,p))===BREAK)break;if(!1===S){if(!h){d.pop();continue}}else if(void 0!==S&&(s.push([c,S]),!h)){if(!isNode(S)){d.pop();continue}l=S}}}void 0===S&&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(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;r=n?r.leave:r.enter;return"function"==typeof r?r:void 0}r=n?e.leave:e.enter;if(r){if("function"==typeof r)return r;n=r[t];return"function"==typeof n?n:void 0}}function print(e){return 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(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=wrap$1("(",join(e.variableDefinitions,", "),")"),i=join(e.directives," "),e=e.selectionSet;return n||i||r||"query"!==t?join([t,join([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$1(" = ",r)+wrap$1(" ",join(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$1("",t,": ")+n,n=t+wrap$1("(",join(r,", "),")");return n.length>MAX_LINE_LENGTH&&(n=t+wrap$1("(\n",indent(join(r,"\n")),"\n)")),join([n,join(i," "),e]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+wrap$1(" ",join(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,e=e.selectionSet;return join(["...",wrap$1("on ",t),join(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$1("(",join(r,", "),")")," ")+"on ".concat(n," ").concat(wrap$1("",join(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(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(e.values,", ")+"]"},ObjectValue:function(e){return"{"+join(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+wrap$1("(",join(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(["schema",join(t," "),block(e)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:addDescription(function(e){return join(["scalar",e.name,join(e.directives," ")]," ")}),ObjectTypeDefinition:addDescription(function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join(["type",t,wrap$1("implements ",join(n," & ")),join(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$1("(\n",indent(join(n,"\n")),"\n)"):wrap$1("(",join(n,", "),")"))+": "+r+wrap$1(" ",join(e," "))}),InputValueDefinition:addDescription(function(e){var t=e.name,n=e.type,r=e.defaultValue,e=e.directives;return join([t+": "+n,wrap$1("= ",r),join(e," ")]," ")}),InterfaceTypeDefinition:addDescription(function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join(["interface",t,wrap$1("implements ",join(n," & ")),join(r," "),block(e)]," ")}),UnionTypeDefinition:addDescription(function(e){var t=e.name,n=e.directives,e=e.types;return join(["union",t,join(n," "),e&&0!==e.length?"= "+join(e," | "):""]," ")}),EnumTypeDefinition:addDescription(function(e){var t=e.name,n=e.directives,e=e.values;return join(["enum",t,join(n," "),block(e)]," ")}),EnumValueDefinition:addDescription(function(e){return join([e.name,join(e.directives," ")]," ")}),InputObjectTypeDefinition:addDescription(function(e){var t=e.name,n=e.directives,e=e.fields;return join(["input",t,join(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$1("(\n",indent(join(n,"\n")),"\n)"):wrap$1("(",join(n,", "),")"))+(r?" repeatable":"")+" on "+join(e," | ")}),SchemaExtension:function(e){var t=e.directives,e=e.operationTypes;return join(["extend schema",join(t," "),block(e)]," ")},ScalarTypeExtension:function(e){return join(["extend scalar",e.name,join(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join(["extend type",t,wrap$1("implements ",join(n," & ")),join(r," "),block(e)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join(["extend interface",t,wrap$1("implements ",join(n," & ")),join(r," "),block(e)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,e=e.types;return join(["extend union",t,join(n," "),e&&0!==e.length?"= "+join(e," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,e=e.values;return join(["extend enum",t,join(n," "),block(e)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,e=e.fields;return join(["extend input",t,join(n," "),block(e)]," ")}};function addDescription(t){return function(e){return join([e.description,t(e)],"\n")}}function join(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$1("{\n",indent(join(e,"\n")),"\n}")}function wrap$1(e,t){return null!=t&&""!==t?e+t+(2<arguments.length&&void 0!==arguments[2]?arguments[2]:""):""}function indent(e){return wrap$1(" ",e.replace(/\n/g,"\n "))}function isMultiline(e){return-1!==e.indexOf("\n")}function hasMultilineItems(e){return null!=e&&e.some(isMultiline)}var printer=Object.freeze({__proto__:null,print:print});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===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 getOperationAST$1=Object.freeze({__proto__:null,getOperationAST:getOperationAST});function removeTemporaryGlobals(){return remove()}function checkDEV(){__DEV__?invariant$1("boolean"==typeof DEV,DEV):invariant$1("boolean"==typeof DEV,38)}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],__DEV__?invariant$1(void 0!==n,"Invalid variable referenced in @"+t.name.value+" directive."):invariant$1(void 0!==n,39)):n=e.value.value,"skip"===t.name.value?!n:n})}function getDirectiveNames(e){var t=[];return visit(e,{Directive:function(e){t.push(e.name.value)}}),t}function hasDirectives(t,e){return getDirectiveNames(e).some(function(e){return-1<t.indexOf(e)})}function hasClientExports(e){return e&&hasDirectives(["client"],e)&&hasDirectives(["export"],e)}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,__DEV__?invariant$1(n&&1===n.length,"Incorrect number of arguments for the @"+t+" directive."):invariant$1(n&&1===n.length,40),n=n[0],__DEV__?invariant$1(n.name&&"if"===n.name.value,"Invalid argument for the @"+t+" directive."):invariant$1(n.name&&"if"===n.name.value,41),r=n.value,__DEV__?invariant$1(r&&("Variable"===r.kind||"BooleanValue"===r.kind),"Argument for the @"+t+" directive must be a variable or a boolean value."):invariant$1(r&&("Variable"===r.kind||"BooleanValue"===r.kind),42),i.push({directive:e,ifArgument:n}))}),i}function getFragmentQueryDocument(e,t){var n=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new InvariantError("Found a "+e.operation+" operation"+(e.name?" named '"+e.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed."):new InvariantError(43);"FragmentDefinition"===e.kind&&n.push(e)}),void 0===t&&(__DEV__?invariant$1(1===n.length,"Found "+n.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):invariant$1(1===n.length,44),t=n[0].name.value),__assign$2(__assign$2({},e),{definitions:__spreadArray$1([{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=t&&t[e.name.value];return __DEV__?invariant$1(n,"No fragment named "+e.name.value+"."):invariant$1(n,45),n;default:return null}}function isNonNullObject(e){return null!==e&&"object"==typeof e}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 __DEV__?new InvariantError('The inline argument "'+n.value+'" of kind "'+t.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new InvariantError(54);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)}removeTemporaryGlobals(),checkDEV();var KNOWN_DIRECTIVES=["connection","include","skip","client","rest","export"],getStoreKeyName=Object.assign(function(e,t,n){var r;if(t&&n&&n.connection&&n.connection.key)return n.connection.filter&&0<n.connection.filter.length?((i=n.connection.filter||[]).sort(),r={},i.forEach(function(e){r[e]=t[e]}),n.connection.key+"("+stringify$2(r)+")"):n.connection.key;var i,o=e;return t&&(i=stringify$2(t),o+="("+i+")"),n&&Object.keys(n).forEach(function(e){-1===KNOWN_DIRECTIVES.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@"+e+"("+stringify$2(n[e])+")":o+="@"+e)}),o},{setStringify:function(e){var t=stringify$2;return stringify$2=e,t}}),stringify$2=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){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var o=i[r];if(isField(o)){if("__typename"===o.name.value)return e[resultKeyNameFromField(o)]}else{o=getTypenameFromResult(e,getFragmentFromSelection(o,n).selectionSet,n);if("string"==typeof o)return o}}}function isField(e){return"Field"===e.kind}function isInlineFragment(e){return"InlineFragment"===e.kind}function checkDocument(e){__DEV__?invariant$1(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):invariant$1(e&&"Document"===e.kind,46);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new InvariantError('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new InvariantError(47);return e});return __DEV__?invariant$1(t.length<=1,"Ambiguous GraphQL document: contains "+t.length+" operations"):invariant$1(t.length<=1,48),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 __DEV__?invariant$1(e&&"query"===e.operation,"Must contain a query definition."):invariant$1(e&&"query"===e.operation,49),e}function getFragmentDefinition(e){__DEV__?invariant$1("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):invariant$1("Document"===e.kind,50),__DEV__?invariant$1(e.definitions.length<=1,"Fragment must have exactly one definition."):invariant$1(e.definitions.length<=1,51);e=e.definitions[0];return __DEV__?invariant$1("FragmentDefinition"===e.kind,"Must be a fragment definition."):invariant$1("FragmentDefinition"===e.kind,52),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 __DEV__?new InvariantError("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new InvariantError(53)}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 filterInPlace(n,r,e){var i=0;return n.forEach(function(e,t){r.call(this,e,t,n)&&(n[i++]=e)},e),n.length=i,n}var TYPENAME_FIELD={kind:"Field",name:{kind:"Name",value:"__typename"}};function isEmpty$1(e,t){return e.selectionSet.selections.every(function(e){return"FragmentSpread"===e.kind&&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){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function removeDirectivesFromDocument(t,e){var r=Object.create(null),n=[],i=Object.create(null),o=[],e=nullIfDocIsEmpty(visit(e,{Variable:{enter:function(e,t,n){"VariableDefinition"!==n.kind&&(r[e.name.value]=!0)}},Field:{enter:function(e){if(t&&e.directives&&(t.some(function(e){return e.remove})&&e.directives&&e.directives.some(getDirectiveMatcher(t))))return e.arguments&&e.arguments.forEach(function(e){"Variable"===e.value.kind&&n.push({name:e.value.name.value})}),e.selectionSet&&getAllFragmentSpreadsFromSelectionSet(e.selectionSet).forEach(function(e){o.push({name:e.name.value})}),null}},FragmentSpread:{enter:function(e){i[e.name.value]=!0}},Directive:{enter:function(e){if(getDirectiveMatcher(t)(e))return null}}}));return e=(e=e&&filterInPlace(n,function(e){return!!e.name&&!r[e.name]}).length?removeArgumentsFromDocument(n,e):e)&&filterInPlace(o,function(e){return!!e.name&&!i[e.name]}).length?removeFragmentSpreadFromDocument(o,e):e}var addTypenameToDocument=Object.assign(function(e){return visit(checkDocument(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){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$1(__spreadArray$1([],r,!0),[TYPENAME_FIELD],!1)})}}}}}})},{added:function(e){return e===TYPENAME_FIELD}}),connectionRemoveConfig={test:function(e){var t="connection"===e.name.value;return!t||e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||__DEV__&&invariant$1.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),t}};function removeConnectionDirectiveFromDocument(e){return removeDirectivesFromDocument([connectionRemoveConfig],checkDocument(e))}function getArgumentMatcher(e){return function(t){return e.some(function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))})}}function removeArgumentsFromDocument(n,e){var r=getArgumentMatcher(n);return nullIfDocIsEmpty(visit(e,{OperationDefinition:{enter:function(e){return __assign$2(__assign$2({},e),{variableDefinitions:e.variableDefinitions?e.variableDefinitions.filter(function(t){return!n.some(function(e){return e.name===t.variable.name.value})}):[]})}},Field:{enter:function(e){if(n.some(function(e){return e.remove})){var t=0;if(e.arguments&&e.arguments.forEach(function(e){r(e)&&(t+=1)}),1===t)return null}}},Argument:{enter:function(e){if(r(e))return null}}}))}function removeFragmentSpreadFromDocument(e,t){function n(t){if(e.some(function(e){return e.name===t.name.value}))return null}return nullIfDocIsEmpty(visit(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}function getAllFragmentSpreadsFromSelectionSet(e){var t=[];return e.selections.forEach(function(e){(isField(e)||isInlineFragment(e))&&e.selectionSet?getAllFragmentSpreadsFromSelectionSet(e.selectionSet).forEach(function(e){return t.push(e)}):"FragmentSpread"===e.kind&&t.push(e)}),t}function buildQueryFromSelectionSet(e){return"query"===getMainDefinition(e).operation?e:visit(e,{OperationDefinition:{enter:function(e){return __assign$2(__assign$2({},e),{operation:"query"})}}})}function removeClientSetsFromDocument(e){checkDocument(e);e=removeDirectivesFromDocument([{test:function(e){return"client"===e.name.value},remove:!0}],e);return e=e&&visit(e,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return isField(e)&&"__typename"===e.name.value}))return null}}})}var hasOwnProperty$i=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$i.call(r,e)?(t=r[e],i[e]!==t&&(n=o.reconciler.apply(o,__spreadArray$1([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$2(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$2(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$2(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray$2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray$2(e,t):void 0}}function _arrayLikeToArray$2(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$2(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$2(e,t,n){return t&&_defineProperties$2(e.prototype,t),n&&_defineProperties$2(e,n),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$2(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$2(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$2(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){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void enqueue(function(){return flushSubscription(e)})):void notifySubscription(e,t,n);e._queue.push({type:t,value:n})}}var root$a,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$2(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$2(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$2(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$2(r,SymbolIterator)))return new e(function(n){enqueue(function(){if(!n.closed){for(var e=_createForOfIteratorHelperLoose$2(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$2(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$a="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$a=(prototype[fakeObsSymbol]||(prototype[fakeObsSymbol]=function(){return this}),Object.prototype.toString);function cloneDeep(e){return cloneDeepHelper(e)}function cloneDeepHelper(t,n){switch(toString$a.call(t)){case"[object Array]":if((n=n||new Map).has(t))return n.get(t);var r=t.slice(0);return n.set(t,r),r.forEach(function(e,t){r[t]=cloneDeepHelper(e,n)}),r;case"[object Object]":if((n=n||new Map).has(t))return n.get(t);var i=Object.create(Object.getPrototypeOf(t));return 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(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}function maybeDeepFreeze(e){return __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()}})}var canUseWeakMap="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),canUseWeakSet="function"==typeof WeakSet,canUseSymbol="function"==typeof Symbol&&"function"==typeof Symbol.for;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.addCount=0,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],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),iterateObserversSafely(n.observers,"error",e))},complete:function(){var e;null!==n.sub&&((e=n.sources.shift())?isPromiseLike(e)?e.then(function(e){return n.sub=e.subscribe(n.handlers)}):n.sub=e.subscribe(n.handlers):(n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),iterateObserversSafely(n.observers,"complete")))}},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$1(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),++this.addCount)},e.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},e.prototype.cleanup=function(e){function t(){r||(r=!0,n.observers.delete(i),e())}var n=this,r=!1,i={next:t,error:t,complete:t},o=this.addCount;this.addObserver(i),this.addCount=o},e}(Observable);function isNonEmptyArray(e){return Array.isArray(e)&&0<e.length}function graphQLResultHasError(e){return e.errors&&0<e.errors.length||!1}function compact(){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}fixObservableSubclass(Concast);var prefixCounts=new Map;function makeUniqueId(e){var t=prefixCounts.get(e)||1;return prefixCounts.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function stringifyForDisplay(e){var n=makeUniqueId("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?n:t}).split(JSON.stringify(n)).join("<undefined>")}function fromError(t){return new Observable(function(e){e.error(t)})}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 __DEV__?new InvariantError("illegal argument: "+i):new InvariantError(26)}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 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 LinkError=function(n){function e(e,t){e=n.call(this,e)||this;return e.link=t,e}return __extends$1(e,n),e}(Error),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=toLink(e);if(isTerminating(n))return __DEV__&&invariant$1.warn(new LinkError("You are calling concat on a terminating link, which will have no effect",n)),n;var r=toLink(t);return isTerminating(r)?new o(function(e){return n.request(e,function(e){return r.request(e)||Observable.of()})||Observable.of()}):new o(function(e,t){return n.request(e,function(e){return r.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 __DEV__?new InvariantError("request is not implemented"):new InvariantError(21)},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=ApolloLink.execute,version$1="3.4.16",hasOwnProperty$h=Object.prototype.hasOwnProperty;function parseAndCheckHttpResponse(t){return function(r){return r.text().then(function(t){try{return JSON.parse(t)}catch(e){var n=e;throw n.name="ServerParseError",n.response=r,n.statusCode=r.status,n.bodyText=t,n}}).then(function(e){return 300<=r.status&&throwServerError(r,e,"Response not successful: Received status code "+r.status),Array.isArray(e)||hasOwnProperty$h.call(e,"data")||hasOwnProperty$h.call(e,"errors")||throwServerError(r,e,"Server response was missing for query '"+(Array.isArray(t)?t.map(function(e){return e.operationName}):t.operationName)+"'."),e})}}var serializeFetchParameter=function(t,n){var e;try{e=JSON.stringify(t)}catch(e){t=__DEV__?new InvariantError("Network request failed. "+n+" is not serializable: "+e.message):new InvariantError(23);throw t.parseError=e,t}return e},defaultHttpOptions={includeQuery:!0,includeExtensions:!1},defaultHeaders={accept:"*/*","content-type":"application/json"},defaultOptions={method:"POST"},fallbackHttpConfig={http:defaultHttpOptions,headers:defaultHeaders,options:defaultOptions},selectHttpOptionsAndBody=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=__assign$2(__assign$2({},t.options),{headers:t.headers,credentials:t.credentials}),o=t.http||{},a=(n.forEach(function(e){i=__assign$2(__assign$2(__assign$2({},i),e.options),{headers:__assign$2(__assign$2({},i.headers),headersToLowerCase(e.headers))}),e.credentials&&(i.credentials=e.credentials),o=__assign$2(__assign$2({},o),e.http)}),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=print(c)),{options:i,body:a}};function headersToLowerCase(t){var n;return t&&(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 __DEV__?new InvariantError("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new InvariantError(22)},createSignalIfSupported=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}},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(e+"="+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$1(function(){return fetch}),createHttpLink=function(e){var t=(e=void 0===e?{}:e).uri,d=void 0===t?"/graphql":t,p=e.fetch,t=e.includeExtensions,f=e.useGETForQueries,n=e.includeUnusedVariables,h=void 0!==n&&n,n=__rest$5(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]),m=(__DEV__&&checkFetcher(p||backupFetch),{http:{includeExtensions:t},options:n.fetchOptions,credentials:n.credentials,headers:n.headers});return new ApolloLink(function(n){var r,e,i=selectURI(n,d),t=n.getContext(),o={},a=(t.clientAwareness&&(a=(s=t.clientAwareness).name,s=s.version,a&&(o["apollographql-client-name"]=a),s&&(o["apollographql-client-version"]=s)),__assign$2(__assign$2({},o),t.headers)),s={http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:a},o=selectHttpOptionsAndBody(n,fallbackHttpConfig,m,s),l=o.options,c=o.body;c.variables&&!h&&(r=new Set(Object.keys(c.variables)),visit(n.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&r.delete(e.name.value)}}),r.size&&(c.variables=__assign$2({},c.variables),r.forEach(function(e){delete c.variables[e]}))),l.signal||(a=(t=createSignalIfSupported()).controller,s=t.signal,(e=a)&&(l.signal=s));if(f&&!n.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(l.method="GET"),"GET"===l.method){var o=rewriteURIForGET(i,c),t=o.newURI,u=o.parseError;if(u)return fromError(u);i=t}else try{l.body=serializeFetchParameter(c,"Payload")}catch(u){return fromError(u)}return new Observable(function(t){return(p||maybe$1(function(){return fetch})||backupFetch)(i,l).then(function(e){return n.setContext({response:e}),e}).then(parseAndCheckHttpResponse(n)).then(function(e){return t.next(e),t.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e))}),function(){e&&e.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$1(e,n),e}(ApolloLink),_a$3=Object.prototype,toString$9=_a$3.toString,hasOwnProperty$g=_a$3.hasOwnProperty,fnToStr=Function.prototype.toString,previousComparisons=new Map;function equal(e,t){try{return check$1(e,t)}finally{previousComparisons.clear()}}function check$1(e,t){if(e===t)return!0;var n=toString$9.call(e);if(n!==toString$9.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(previouslyCompared(e,t))return!0;var r=definedKeys(e),i=definedKeys(t),o=r.length;if(o!==i.length)return!1;for(var a=0;a<o;++a)if(!hasOwnProperty$g.call(t,r[a]))return!1;for(a=0;a<o;++a){var s=r[a];if(!check$1(e[s],t[s]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(previouslyCompared(e,t))return!0;for(var l=e.entries(),c="[object Map]"===n;;){var u=l.next();if(u.done)break;var u=u.value,d=u[0],u=u[1];if(!t.has(d))return!1;if(c&&!check$1(u,t.get(d)))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]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":var p=e.byteLength;if(p===t.byteLength)for(;p--&&e[p]===t[p];);return-1===p;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":i=fnToStr.call(e);return i!==fnToStr.call(t)?!1:!endsWith(i,nativeCodeSuffix)}return!1}function definedKeys(e){return Object.keys(e).filter(isDefinedKey,e)}function isDefinedKey(e){return void 0!==this[e]}var 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){var n=previousComparisons.get(e);if(n){if(n.has(t))return!0}else previousComparisons.set(e,n=new Set);return n.add(t),!1}var defaultMakeData=function(){return Object.create(null)},_a$2=Array.prototype,forEach=_a$2.forEach,slice$2=_a$2.slice,Trie=function(){function r(e,t){void 0===t&&(t=defaultMakeData),this.weakness=e=void 0===e?!0:e,this.makeData=t}return r.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},r.prototype.lookupArray=function(e){var t=this;return forEach.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(slice$2.call(e)))},r.prototype.getChildTrie=function(e){var t=this.weakness&&isObjRef(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=t.get(e);return n||t.set(e,n=new r(this.weakness,this.makeData)),n},r}();function isObjRef(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}var currentContext=null,MISSING_VALUE={},idCounter=1,makeSlotClass=function(){return e.prototype.hasValue=function(){for(var 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},e.prototype.getValue=function(){if(this.hasValue())return currentContext.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i;(i={__proto__:null})[this.id]=e;e=currentContext;currentContext={parent:e,slots:i};try{return t.apply(r,n)}finally{currentContext=e}},e.bind=function(t){var n=currentContext;return function(){var e=currentContext;try{return currentContext=n,t.apply(this,arguments)}finally{currentContext=e}}},e.noContext=function(e,t,n){if(!currentContext)return e.apply(n,t);var r=currentContext;try{return currentContext=null,e.apply(n,t)}finally{currentContext=r}},e;function e(){this.id=["slot",idCounter++,Date.now(),Math.random().toString(36).slice(2)].join(":")}},globalKey="@wry/context:Slot",host=Array,Slot=host[globalKey]||function(){var e=makeSlotClass();try{Object.defineProperty(host,globalKey,{value:host[globalKey]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();function defaultDispose(){}Slot.bind,Slot.noContext;var _a$1,Cache=function(){function e(e,t){void 0===t&&(t=defaultDispose),this.max=e=void 0===e?1/0:e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){e=this.getNode(e);return e&&e.value},e.prototype.getNode=function(e){var t,n,e=this.map.get(e);return e&&e!==this.newest&&(t=e.older,(n=e.newer)&&(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},e.prototype.set=function(e,t){var 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)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(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)},e}(),parentEntrySlot=new Slot,hasOwnProperty$f=Object.prototype.hasOwnProperty,toArray=void 0===(_a$1=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:_a$1;function maybeUnsubscribe(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var 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)}var Entry=function(){function t(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,++t.count}return t.prototype.peek=function(){if(1===this.value.length&&!mightBeDirty(this))return rememberParent(this),this.value[0]},t.prototype.recompute=function(e){return assert$2(!this.recomputing,"already recomputing"),rememberParent(this),mightBeDirty(this)?reallyRecompute(this,e):valueGet(this.value)},t.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,reportDirty(this),maybeUnsubscribe(this))},t.prototype.dispose=function(){var n=this;this.setDirty(),forgetChildren(this),eachParent(this,function(e,t){e.setDirty(),forgetChild(e,n)})},t.prototype.forget=function(){this.dispose()},t.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=emptySetPool.pop()||new Set),this.deps.add(e)},t.prototype.forgetDeps=function(){var t=this;this.deps&&(toArray(this.deps).forEach(function(e){return e.delete(t)}),this.deps.clear(),emptySetPool.push(this.deps),this.deps=null)},t.count=0,t}();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(e,t){var n=e.parents.size;if(n)for(var r=toArray(e.parents),i=0;i<n;++i)t(r[i],e)}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(function(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}var EntryMethods={setDirty:!0,dispose:!0,forget:!0};function dep(e){var i=new Map,r=e&&e.subscribe;function t(e){var t,n=parentEntrySlot.getValue();n&&((t=i.get(e))||i.set(e,t=new Set),n.dependOn(t),"function"==typeof r&&(maybeUnsubscribe(t),t.unsubscribe=r(e)))}return t.dirty=function(e,t){var n,r=i.get(e);r&&(n=t&&hasOwnProperty$f.call(EntryMethods,t)?t:"setDirty",toArray(r).forEach(function(e){return e[n]()}),i.delete(e),maybeUnsubscribe(r))},t}function makeDefaultMakeCacheKeyFunction(){var e=new Trie("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}makeDefaultMakeCacheKeyFunction();var caches=new Set;function wrap(r,i){void 0===i&&(i=Object.create(null));function e(){var e=s.apply(null,a?a.apply(null,arguments):arguments);if(void 0===e)return r.apply(null,arguments);var t=o.get(e),n=(t||(o.set(e,t=new Entry(r)),t.subscribe=i.subscribe,t.forget=function(){return o.delete(e)}),t.recompute(Array.prototype.slice.call(arguments)));return o.set(e,t),caches.add(o),parentEntrySlot.hasValue()||(caches.forEach(function(e){return e.clean()}),caches.clear()),n}var o=new Cache(i.max||Math.pow(2,16),function(e){return e.dispose()}),a=i.keyArgs,s=i.makeCacheKey||makeDefaultMakeCacheKeyFunction();function t(e){e=o.get(e);e&&e.setDirty()}function n(e){e=o.get(e);if(e)return e.peek()}function l(e){return o.delete(e)}return Object.defineProperty(e,"size",{get:function(){return o.map.size},configurable:!1,enumerable:!1}),e.dirtyKey=t,e.dirty=function(){t(s.apply(null,arguments))},e.peekKey=n,e.peek=function(){return n(s.apply(null,arguments))},e.forgetKey=l,e.forget=function(){return l(s.apply(null,arguments))},e.makeCacheKey=s,e.getKey=a?function(){return s.apply(null,a.apply(null,arguments))}:s,Object.freeze(e)}var ApolloCache=function(){function e(){this.getFragmentDoc=wrap(getFragmentQueryDocument)}return e.prototype.batch=function(e){var t="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;this.performTransaction(e.update,t)},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},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$5(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$5(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(e,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e}(),MissingFieldError=function(o){function a(e,t,n,r){var i=o.call(this,e)||this;return i.message=e,i.path=t,i.query=n,i.variables=r,i.__proto__=a.prototype,i}return __extends$1(a,o),a}(Error),hasOwn$9=Object.prototype.hasOwnProperty;function defaultDataIdFromObject(e,t){var n=e.__typename,r=e.id,e=e._id;if("string"==typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==e?{_id:e}:void 0),void 0!==(r=void 0===r?e:r)))return n+":"+("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(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)&&(Array.isArray(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$9.call(n,t)&&(!e.selectionSet||selectionSetMatchesResult(e.selectionSet,n[t],r)))}))}function storeValueIsStoreObject(e){return isNonNullObject(e)&&!isReference(e)&&!Array.isArray(e)}function makeProcessedFieldsMerger(){return new DeepMerger}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){if("string"==typeof e)return makeReference(e);if(isReference(e))return e;var n,r=i.policies.identify(e)[0];return r?(n=makeReference(r),t&&i.merge(r,e),n):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$9.call(this.data,e)){var n=this.data[e];if(n&&hasOwn$9.call(n,t))return n[t]}return"__typename"===t&&hasOwn$9.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$9.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&&(__DEV__?invariant$1("string"==typeof n,"store.merge expects a string ID"):invariant$1("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$9.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$9.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$9.call(t,e)||r.delete(e)}),t&&(e=t.__META,n=__rest$5(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$9.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$9.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$1(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$1(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$9.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$1(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)?Array.isArray(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=this.passes.get(t);if(e)return e;switch(Object.getPrototypeOf(t)){case Array.prototype:if(this.known.has(t))return t;var r=t.map(this.admit,this);return(i=this.pool.lookupArray(r)).array||(this.known.add(i.array=r),__DEV__&&Object.freeze(r)),i.array;case null:case Object.prototype:if(this.known.has(t))return t;var i,o,r=Object.getPrototypeOf(t),a=[r],s=this.sortedKeys(t),l=(a.push(s.json),a.length);return s.sorted.forEach(function(e){a.push(n.admit(t[e]))}),(i=this.pool.lookupArray(a)).object||(o=i.object=Object.create(r),this.known.add(o),s.sorted.forEach(function(e,t){o[e]=a[l+t]}),__DEV__&&Object.freeze(o)),i.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 missingFromInvariant(e,t){return new MissingFieldError(e.message,t.path.slice(),t.query,t.variables)}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(e,{addTypename:!1!==e.addTypename,canonizeResults:shouldCanonizeResults(e)}),this.canon=e.canon||new ObjectCanon,this.executeSelectionSet=wrap(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(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=e.store,n=e.query,r=e.rootId,r=void 0===r?"ROOT_QUERY":r,i=e.variables,o=e.returnPartialData,o=void 0===o||o,e=e.canonizeResults,e=void 0===e?this.config.canonizeResults:e,a=this.config.cache.policies,i=__assign$2(__assign$2({},getDefaultValues(getQueryDefinition(n))),i),r=makeReference(r),r=this.executeSelectionSet({selectionSet:getMainDefinition(n).selectionSet,objectOrReference:r,enclosingRef:r,context:{store:t,query:n,policies:a,variables:i,varString:canonicalStringify(i),canonizeResults:e,fragmentMap:createFragmentMap(getFragmentDefinitions(n)),path:[]}}),t=r.missing&&0<r.missing.length;if(t&&!o)throw r.missing[0];return{result:r.result,missing:r.missing,complete:!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:[missingFromInvariant(__DEV__?new InvariantError("Dangling reference to missing "+o.__ref+" object"):new InvariantError(5),s)]};var l=s.variables,c=s.policies,e=s.store,u=[],n={result:null},d=e.getFieldValue(o,"__typename");function p(){return n.missing||(n.missing=[])}function f(e){var t;return e.missing&&(t=p()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof d&&!c.rootIdsByTypename[d]&&u.push({__typename:d});var h=new Set(t.selections),e=(h.forEach(function(e){var t,n,r;shouldInclude(e,l)&&(isField(e)?(r=c.readField({fieldName:e.name.value,field:e,variables:s.variables,from:o},s),n=resultKeyNameFromField(e),s.path.push(n),void 0===r?addTypenameToDocument.added(e)||p().push(missingFromInvariant(__DEV__?new InvariantError("Can't find field '"+e.name.value+"' on "+(isReference(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2))):new InvariantError(6),s)):Array.isArray(r)?r=f(i.executeSubSelectedArray({field:e,array:r,enclosingRef:a,context:s})):e.selectionSet?null!=r&&(r=f(i.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:r,enclosingRef:isReference(r)?r:a,context:s}))):s.canonizeResults&&(r=i.canon.pass(r)),void 0!==r&&u.push(((t={})[n]=r,t)),invariant$1(s.path.pop()===n)):(r=getFragmentFromSelection(e,s.fragmentMap))&&c.fragmentMatches(r,d)&&r.selectionSet.selections.forEach(h.add,h))}),mergeDeepArray(u));return n.result=s.canonizeResults?this.canon.admit(e):maybeDeepFreeze(e),this.knownResults.set(n.result,t),n},e.prototype.execSubSelectedArrayImpl=function(e){var n,r=this,i=e.field,t=e.array,o=e.enclosingRef,a=e.context;function s(e,t){return e.missing&&(n=n||[]).push.apply(n,e.missing),invariant$1(a.path.pop()===t),e.result}return t=(t=i.selectionSet?t.filter(a.store.canRead):t).map(function(e,t){return null===e?null:(a.path.push(t),Array.isArray(e)?s(r.executeSubSelectedArray({field:i,array:e,enclosingRef:o,context:a}),t):i.selectionSet?s(r.executeSelectionSet({selectionSet:i.selectionSet,objectOrReference:e,enclosingRef:isReference(e)?e:o,context:a}),t):(__DEV__&&assertSelectionSetForIdValue(a.store,i,e),invariant$1(a.path.pop()===t),e))}),{result:a.canonizeResults?this.canon.admit(t):t,missing:n}},e}();function assertSelectionSetForIdValue(t,n,e){var r;n.selectionSet||(r=new Set([e])).forEach(function(e){isNonNullObject(e)&&(__DEV__?invariant$1(!isReference(e),"Missing selection set for object of type "+getTypenameFromStoreObject(t,e)+" returned for query field "+n.name.value):invariant$1(!isReference(e),7),Object.values(e).forEach(r.add,r))})}var StoreWriter=function(){function e(e,t){this.cache=e,this.reader=t}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={store:s,written:Object.create(null),merge:function(e,t){return a.merge(e,t)},variables:i,varString:canonicalStringify(i),fragmentMap:createFragmentMap(getFragmentDefinitions(t)),overwrite:!!e,incomingById:new Map,clientOnly:!1},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.fields,i=e.mergeTree,e=e.selections,o=makeReference(t);if(i&&i.map.size){var a=l.applyMerges(i,o,r,c);if(isReference(a))return;r=a}__DEV__&&!c.overwrite&&(n=new Set,e.forEach(function(e){isField(e)&&e.selectionSet&&n.add(e.name.value)}),Object.keys(r).forEach(function(e){n.has(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 __DEV__?new InvariantError("Could not identify object "+JSON.stringify(n)):new InvariantError(8)},e.prototype.processSelectionSet=function(e){var s=this,t=e.dataId,l=e.result,n=e.selectionSet,c=e.context,u=e.mergeTree,d=this.cache.policies,e=d.identify(l,n,c.fragmentMap),r=e[0],e=e[1];if("string"==typeof(t=t||r)){var r=c.written[t]||(c.written[t]=[]),i=makeReference(t);if(0<=r.indexOf(n))return i;if(r.push(n),this.reader&&this.reader.isFresh(l,i,n,c))return i}var p=Object.create(null),f=(e&&(p=c.merge(p,e)),t&&d.rootTypenamesById[t]||getTypenameFromResult(l,n,c.fragmentMap)||t&&c.store.get(t,"__typename")),h=("string"==typeof f&&(p.__typename=f),new Set(n.selections));return h.forEach(function(e){var t,n,r,i,o,a;shouldInclude(e,c.variables)&&(isField(e)?(r=resultKeyNameFromField(e),r=l[r],t=c.clientOnly,c.clientOnly=t||!(!e.directives||!e.directives.some(function(e){return"client"===e.name.value})),void 0!==r?(n=d.getStoreFieldName({typename:f,fieldName:e.name.value,field:e,variables:c.variables}),a=getChildMergeTree(u,n),r=s.processFieldValue(r,e,c,a),i=void 0,e.selectionSet&&!(i=c.store.getFieldValue(r,"__typename"))&&isReference(r)&&(i=(o=c.incomingById.get(r.__ref))&&o.fields.__typename),(o=d.getMergeFunction(f,e.name.value,i))?a.info={field:e,typename:f,merge:o}:maybeRecycleChildMergeTree(u,n),p=c.merge(p,((i={})[n]=r,i))):c.clientOnly||addTypenameToDocument.added(e)||__DEV__&&invariant$1.error(("Missing field '"+resultKeyNameFromField(e)+"' while writing result "+JSON.stringify(l,null,2)).substring(0,1e3)),c.clientOnly=t):(a=getFragmentFromSelection(e,c.fragmentMap))&&d.fragmentMatches(a,f,l,c.variables)&&a.selectionSet.selections.forEach(h.add,h))}),"string"==typeof t?((r=c.incomingById.get(t))?(r.fields=c.merge(r.fields,p),r.mergeTree=mergeMergeTrees(r.mergeTree,u),r.selections.forEach(h.add,h),r.selections=h):c.incomingById.set(t,{fields:p,mergeTree:mergeTreeIsEmpty(u)?void 0:u,selections:h}),makeReference(t)):p},e.prototype.processFieldValue=function(e,n,r,i){var o=this;return n.selectionSet&&null!==e?Array.isArray(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}):__DEV__?cloneDeep(e):e},e.prototype.applyMerges=function(e,t,n,i,o){var a,s,l,c,u=this;return e.map.size&&!isReference(n)&&(a=Array.isArray(n)||!isReference(t)&&!storeValueIsStoreObject(t)?void 0:t,s=n,a&&!o&&(o=[isReference(a)?a.__ref:a]),c=function(e,t){return Array.isArray(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$1(o.pop()===t))}),l&&(n=Array.isArray(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){if(t===n||!n||mergeTreeIsEmpty(n))return t;if(!t||mergeTreeIsEmpty(t))return n;var r,e=t.info&&n.info?__assign$2(__assign$2({},t.info),n.info):t.info||n.info,i=t.map.size&&n.map.size,o={info:e,map:i?new Map:(t.map.size?t:n).map};return i&&(r=new Set(n.map.keys()),t.map.forEach(function(e,t){o.map.set(t,mergeMergeTrees(e,n.map.get(t))),r.delete(t)}),r.forEach(function(e){o.map.set(e,mergeMergeTrees(n.map.get(e),t.map.get(e)))})),o}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),warnings.has(a=e+"."+t)||(warnings.add(a),s=[],Array.isArray(l)||Array.isArray(o)||[l,o].forEach(function(e){e=r.getFieldValue(e,"__typename");"string"!=typeof e||s.includes(e)||s.push(e)}),__DEV__&&invariant$1.warn("Cache data may be lost when replacing the "+t+" field of a "+e+" object.\n\nTo address this problem (which is not a bug in Apollo Client), "+(s.length?"either ensure all objects of type "+s.join(" and ")+" have an ID or a custom merge function, or ":"")+"define a custom merge function for the "+a+" field, so InMemoryCache can safely merge these objects:\n\n existing: "+JSON.stringify(l).slice(0,1e3)+"\n incoming: "+JSON.stringify(o).slice(0,1e3)+"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n")))}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()}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,n){var r=t&&n?getTypenameFromResult(e,t,n):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,o={typename:r,selectionSet:t,fragmentMap:n},t=r&&this.getTypePolicy(r),a=t&&t.keyFn||this.config.dataIdFromObject;a;){var s=a(e,o);if(!Array.isArray(s)){i=s;break}a=keyFieldsFnFromSpecifier(s)}return i=i?String(i):void 0,o.keyObject?[i,o.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$5(t,["queryType","mutationType","subscriptionType"]);n&&a.setRootTypename("Query",e),r&&a.setRootTypename("Mutation",e),i&&a.setRootTypename("Subscription",e),hasOwn$9.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:Array.isArray(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:Array.isArray(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&&(__DEV__?invariant$1(!r||r===e,"Cannot change root "+e+" __typename more than once"):invariant$1(!r||r===e,2),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(t){var n,r=this,e=(hasOwn$9.call(this.typePolicies,t)||((n=this.typePolicies[t]=Object.create(null)).fields=Object.create(null),(e=this.supertypeMap.get(t))&&e.size&&e.forEach(function(e){var e=r.getTypePolicy(e),t=e.fields,e=__rest$5(e,["fields"]);Object.assign(n,e),Object.assign(n.fields,t)})),this.toBeAdded[t]);return e&&e.length&&e.splice(0).forEach(function(e){r.updateTypePolicy(t,e)}),this.typePolicies[t]},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)return!1;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&&__DEV__&&invariant$1.warn("Inferring subtype "+n+" of supertype "+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(!Array.isArray(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.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(r,i,e,o,t){var n=r.getStoreFieldName(e),a=fieldNameFromStoreName(n),s=e.variables||o.variables,l=o.store,c=l.toReference,l=l.canRead;return{args:argsFromFieldSpecifier(e),field:e.field||null,fieldName:a,storeFieldName:n,variables:s,isReference:isReference,toReference:c,storage:t,cache:r.cache,canRead:l,readField:function(e,t){var n;if("string"==typeof e)n={fieldName:e,from:1<arguments.length?t:i};else{if(!isNonNullObject(e))return void(__DEV__&&invariant$1.warn("Unexpected readField arguments: "+stringifyForDisplay(Array.from(arguments))));n=__assign$2({},e),hasOwn$9.call(e,"from")||(n.from=i)}return __DEV__&&void 0===n.from&&__DEV__&&invariant$1.warn("Undefined 'from' passed to readField with arguments "+stringifyForDisplay(Array.from(arguments))),void 0===n.variables&&(n.variables=s),r.readField(n,o)},mergeObjects:makeMergeObjectsFunction(o.store)}}function makeMergeObjectsFunction(i){return function(e,t){if(Array.isArray(e)||Array.isArray(t))throw __DEV__?new InvariantError("Cannot automatically merge arrays"):new InvariantError(3);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 keyArgsFnFromSpecifier(n){return function(e,t){return e?t.fieldName+":"+JSON.stringify(computeKeyObject(e,n,!1)):t.fieldName}}function keyFieldsFnFromSpecifier(r){var i=new Trie(canUseWeakMap);return function(e,t){t.selectionSet&&t.fragmentMap&&(n=(n=i.lookupArray([t.selectionSet,t.fragmentMap])).aliasMap||(n.aliasMap=makeAliasMap(t.selectionSet,t.fragmentMap)));var n,e=t.keyObject=computeKeyObject(e,r,!0,n);return t.typename+":"+JSON.stringify(e)}}function makeAliasMap(e,r){var i=Object.create(null),o=new Set([e]);return o.forEach(function(e){e.selections.forEach(function(e){var t,n;isField(e)?(e.alias&&(t=e.alias.value,(n=e.name.value)!==t&&((i.aliases||(i.aliases=Object.create(null)))[n]=t)),e.selectionSet&&((i.subsets||(i.subsets=Object.create(null)))[e.name.value]=makeAliasMap(e.selectionSet,r))):(n=getFragmentFromSelection(e,r))&&o.add(n.selectionSet)})}),i}function computeKeyObject(n,e,r,i){var o,a,s=Object.create(null);return e.forEach(function(e){var t;Array.isArray(e)?"string"==typeof a&&"string"==typeof o&&(t=(t=i&&i.subsets)&&t[a],s[a]=computeKeyObject(n[o],e,r,t)):(t=(t=i&&i.aliases)&&t[e]||e,hasOwn$9.call(n,t)?s[a=e]=n[o=t]:(__DEV__?invariant$1(!r,"Missing field '"+t+"' while computing key fields"):invariant$1(!r,4),o=a=void 0))}),s}var InMemoryCache=function(n){function e(e){void 0===e&&(e={});var t=n.call(this)||this;return t.watches=new Set,t.typenameDocumentCache=new Map,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$1(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;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})),this.maybeBroadcastWatch=wrap(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.rootId,r=e.variables,i.makeCacheKey(e.query,e.callback,canonicalStringify({optimistic:t,rootId: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$9.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){return isReference(e)?e.__ref:this.policies.identify(e)[0]},e.prototype.evict=function(e){if(!e.id){if(hasOwn$9.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=r.data,n=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{i(r)}finally{--r.txCount,r.data=t,r.optimisticData=n}}var r=this,i=e.update,n=e.optimistic,n=void 0===n||n,o=e.removeOptimistic,a=e.onWatchUpdated,s=new Set;a&&!this.txCount&&this.broadcastWatches(__assign$2(__assign$2({},e),{onWatchUpdated:function(e){return s.add(e),!1}})),"string"==typeof n?this.optimisticData=this.optimisticData.addLayer(n,t):!1===n?t(this.data):t(),"string"==typeof o&&(this.optimisticData=this.optimisticData.removeLayer(o)),a&&s.size?(this.broadcastWatches(__assign$2(__assign$2({},e),{onWatchUpdated:function(e,t){t=a.call(this,e,t);return!1!==t&&s.delete(e),t}})),s.size&&s.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e)},e.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},e.prototype.transformDocument=function(e){var t;return this.addTypename?((t=this.typenameDocumentCache.get(e))||(t=addTypenameToDocument(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t):e},e.prototype.broadcastWatches=function(t){var n=this;this.txCount||this.watches.forEach(function(e){return n.maybeBroadcastWatch(e,t)})},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 isApolloError(e){return e.hasOwnProperty("graphQLErrors")}var NetworkStatus,generateErrorMessage=function(e){var t="";return(isNonEmptyArray(e.graphQLErrors)||isNonEmptyArray(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEach(function(e){e=e?e.message:"Error message not found.";t+=e+"\n"}),e.networkError&&(t+=e.networkError.message+"\n"),t=t.replace(/\n$/,"")},ApolloError=function(a){function s(e){var t=e.graphQLErrors,n=e.clientErrors,r=e.networkError,i=e.errorMessage,e=e.extraInfo,o=a.call(this,i)||this;return o.graphQLErrors=t||[],o.clientErrors=n||[],o.networkError=r||null,o.message=i||generateErrorMessage(o),o.extraInfo=e,o.__proto__=s.prototype,o}return __extends$1(s,a),s}(Error);function isNetworkRequestInFlight(e){return!!e&&e<7}!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$1=Object.assign,hasOwnProperty$e=Object.hasOwnProperty,warnedAboutUpdateQuery=!1,ObservableQuery=function(o){function e(e){var t=e.queryManager,n=e.queryInfo,e=e.options,r=o.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.isTornDown=!1,r.options=e,r.queryId=n.queryId||t.generateQueryId(),getOperationDefinition(e.query));return r.queryName=i&&i.name&&i.name.value,r.initialFetchPolicy=e.fetchPolicy||"cache-first",r.queryManager=t,r.queryInfo=n,r}return __extends$1(e,o),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=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||NetworkStatus.ready,n=__assign$2(__assign$2({},t),{loading:isNetworkRequestInFlight(n),networkStatus:n}),r=this.options.fetchPolicy,r=void 0===r?"cache-first":r;return(t||"network-only"!==r&&"no-cache"!==r&&"standby"!==r)&&!this.queryManager.transform(this.options.query).hasForcedResolvers&&(((t=this.queryInfo.getDiff()).complete||this.options.returnPartialData)&&(n.data=t.result),equal(n.data,{})&&(n.data=void 0),t.complete?(n.networkStatus!==NetworkStatus.loading||"cache-first"!==r&&"cache-only"!==r||(n.networkStatus=NetworkStatus.ready,n.loading=!1),delete n.partial):"no-cache"!==r&&(n.partial=!0),!__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){return!this.last||!equal(this.last.result,e)},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"no-cache"===r?n.fetchPolicy="no-cache":"cache-and-network"!==r&&(n.fetchPolicy="network-only"),__DEV__&&e&&hasOwnProperty$e.call(e,"variables")&&((t=(r=getQueryDefinition(this.options.query)).variableDefinitions)&&t.some(function(e){return"variables"===e.variable.name.value})||__DEV__&&invariant$1.warn("Called refetch("+JSON.stringify(e)+") for query "+((null==(t=r.name)?void 0:t.value)||JSON.stringify(r))+", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?")),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({},this.options),r),{variables:__assign$2(__assign$2({},this.options.variables),r.variables)})),{fetchPolicy:"no-cache"}),e=this.queryManager.generateQueryId();return o.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=NetworkStatus.fetchMore,this.observe()),this.queryManager.fetchQuery(e,o,NetworkStatus.fetchMore).then(function(e){var t=e.data,n=r.updateQuery;return n?(__DEV__&&!warnedAboutUpdateQuery&&(__DEV__&&invariant$1.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),warnedAboutUpdateQuery=!0),i.updateQuery(function(e){return n(e,{fetchMoreResult:t,variables:o.variables})})):i.queryManager.cache.writeQuery({query:o.query,variables:o.variables,data:t}),e}).finally(function(){i.queryManager.stopQuery(e),i.reobserve()})},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):__DEV__&&invariant$1.error("Unhandled GraphQL subscription error",e)}});return this.subscriptions.add(n),function(){e.subscriptions.delete(n)&&n.unsubscribe()}},e.prototype.setOptions=function(e){return this.reobserve(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.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.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(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||(__DEV__?invariant$1(t,"Attempted to start a polling query without a polling interval."):invariant$1(t,12),(e||(this.pollingInfo={})).interval=t,n=function(){i.pollingInfo&&(isNetworkRequestInFlight(i.queryInfo.networkStatus)?r():i.reobserve({fetchPolicy:"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){return void 0===t&&(t=this.variables),this.last=__assign$2(__assign$2({},this.last),{result:this.queryManager.assumeImmutableResults?e:cloneDeep(e),variables:t}),isNonEmptyArray(e.errors)||delete this.last.error,this.last},e.prototype.reobserve=function(e,t){var n=this,r=(this.isTornDown=!1,t===NetworkStatus.refetch||t===NetworkStatus.fetchMore||t===NetworkStatus.poll),i=this.options.variables,o=r?compact(this.options,e):assign$1(this.options,compact(e)),a=(r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!equal(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=NetworkStatus.setVariables))),o.variables&&__assign$2({},o.variables)),e=this.fetch(o,t),i={next:function(e){n.reportResult(e,a)},error:function(e){n.reportError(e,a)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=e,this.observer=i),e.addObserver(i),e.promise},e.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},e.prototype.reportResult=function(e,t){(this.getLastError()||this.isDifferentFromLastResult(e))&&(this.updateLastResult(e,t),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}(Observable);function defaultSubscriptionObserverErrorCallback(e){__DEV__&&invariant$1.error("Unhandled error",e.message,e.stack)}function logMissingFieldErrors(e){__DEV__&&isNonEmptyArray(e)&&__DEV__&&invariant$1.debug("Missing cache result fields: "+e.map(function(e){return e.path.join(".")}).join(", "),e)}function applyNextFetchPolicy(e){var t=e.fetchPolicy,n=e.nextFetchPolicy;n&&(e.fetchPolicy="function"==typeof n?n.call(e,void 0===t?"cache-first":t):n)}fixObservableSubclass(ObservableQuery);var LocalState=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,e=e.fragmentMatcher;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$a(this,void 0,void 0,function(){return __generator$2(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$a(this,void 0,void 0,function(){return __generator$2(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(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}}}),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(s,l,c,u,d,p){return void 0===c&&(c={}),void 0===u&&(u={}),void 0===d&&(d=function(){return!0}),void 0===p&&(p=!1),__awaiter$a(this,void 0,void 0,function(){var t,n,r,i,o,a;return __generator$2(this,function(e){return t=getMainDefinition(s),n=getFragmentDefinitions(s),n=createFragmentMap(n),r=t.operation,r=r?r.charAt(0).toUpperCase()+r.slice(1):"Query",i=(o=this).cache,o=o.client,a={fragmentMap:n,context:__assign$2(__assign$2({},c),{cache:i,client:o}),variables:u,fragmentMatcher:d,defaultOperationType:r,exportedVariables:{},onlyRunForcedResolvers:p},[2,this.resolveSelectionSet(t.selectionSet,l,a).then(function(e){return{result:e,exportedVariables:a.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(r,l,c){return __awaiter$a(this,void 0,void 0,function(){var i,o,a,s,t,n=this;return __generator$2(this,function(e){return i=c.fragmentMap,o=c.context,a=c.variables,s=[l],t=function(r){return __awaiter$a(n,void 0,void 0,function(){var t,n;return __generator$2(this,function(e){return shouldInclude(r,a)?isField(r)?[2,this.resolveField(r,l,c).then(function(e){var t;void 0!==e&&s.push(((t={})[resultKeyNameFromField(r)]=e,t))})]:(isInlineFragment(r)?t=r:(t=i[r.name.value],__DEV__?invariant$1(t,"No fragment named "+r.name.value):invariant$1(t,11)),t&&t.typeCondition&&(n=t.typeCondition.name.value,c.fragmentMatcher(l,n,o))?[2,this.resolveSelectionSet(t.selectionSet,l,c).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){return __awaiter$a(this,void 0,void 0,function(){var t,n,r,i,o,a,s,l=this;return __generator$2(this,function(e){return t=d.variables,n=c.name.value,r=resultKeyNameFromField(c),i=n!==r,o=u[r]||u[n],a=Promise.resolve(o),d.onlyRunForcedResolvers&&!this.shouldForceResolvers(c)||(s=u.__typename||d.defaultOperationType,(s=this.resolvers&&this.resolvers[s])&&(s=s[i?n:r])&&(a=Promise.resolve(cacheSlot.withValue(this.cache,s,[u,argumentsObjectFromField(c,t),d.context,{field:c,fragmentMap:d.fragmentMap}])))),[2,a.then(function(t){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&&(d.exportedVariables[e.value.value]=t)})}),!c.selectionSet||null==t?t:Array.isArray(t)?l.resolveSubSelectedArray(c,t,d):c.selectionSet?l.resolveSelectionSet(c.selectionSet,t,d):void 0})]})})},e.prototype.resolveSubSelectedArray=function(t,e,n){var r=this;return Promise.all(e.map(function(e){return null===e?null:Array.isArray(e)?r.resolveSubSelectedArray(t,e,n):t.selectionSet?r.resolveSelectionSet(t.selectionSet,e,n):void 0}))},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.lastDiff=void 0,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);e=this.observableQuery;if(e&&"no-cache"===e.options.fetchPolicy)return{complete:!1};e=this.cache.diff(t);return 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():e.reobserve()}):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){var o=this;this.graphQLErrors=isNonEmptyArray(n.errors)?n.errors:[],this.reset(),"no-cache"===r.fetchPolicy?this.updateLastDiff({result:n.data,complete:!0},this.getDiffOptions(r.variables)):0!==i&&(shouldWriteResult(n,r.errorPolicy)?this.cache.performTransaction(function(e){if(o.shouldWrite(n,r.variables))e.writeQuery({query:o.document,data:n.data,variables:r.variables,overwrite:1===i}),o.lastWrite={result:n,variables:r.variables,dmCount:destructiveMethodCounts.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete)return void(n.data=o.lastDiff.diff.result);var t=o.getDiffOptions(r.variables),e=e.diff(t);o.stopped||o.updateWatch(r.variables),o.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$d=Object.prototype.hasOwnProperty,QueryManager=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,r=void 0!==r&&r,i=e.onBroadcast,o=e.ssrMode,o=void 0!==o&&o,a=e.clientAwareness,a=void 0===a?{}:a,s=e.localState,e=e.assumeImmutableResults;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,this.cache=t,this.link=n,this.queryDeduplication=r,this.clientAwareness=a,this.localState=s||new LocalState({cache:t}),this.ssrMode=o,this.assumeImmutableResults=!!e,(this.onBroadcast=i)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var n=this;this.queries.forEach(function(e,t){n.stopQueryNoBroadcast(t)}),this.cancelPendingFetches(__DEV__?new InvariantError("QueryManager stopped while query was in flight"):new InvariantError(13))},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.errorPolicy,h=void 0===t?"none":t,t=e.fetchPolicy,m=void 0===t?"network-only":t,g=e.keepRootFields,y=e.context;return __awaiter$a(this,void 0,void 0,function(){var r,i,o;return __generator$2(this,function(e){switch(e.label){case 0:return(__DEV__?invariant$1(a,"mutation option is required. You must specify your GraphQL document in the mutation option."):invariant$1(a,14),__DEV__?invariant$1("network-only"===m||"no-cache"===m,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):invariant$1("network-only"===m||"no-cache"===m,15),r=this.generateMutationId(),a=this.transform(a).document,s=this.getVariables(a,s),this.transform(a).hasClientExports)?[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:m,errorPolicy:h,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"===h)throw new ApolloError({graphQLErrors:e.errors});i&&(i.loading=!1,i.error=null);e=__assign$2({},e);return"function"==typeof u&&(u=u(e)),"ignore"===h&&graphQLResultHasError(e)&&delete e.errors,o.markMutationResult({mutationId:r,result:e,document:a,variables:s,fetchPolicy:m,errorPolicy:h,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(),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(r,o){var a,s=this,l=(void 0===o&&(o=this.cache),r.result),c=[],i="no-cache"===r.fetchPolicy;if(!i&&shouldWriteResult(l,r.errorPolicy)&&(c.push({result:l.data,dataId:"ROOT_MUTATION",query:r.document,variables:r.variables}),(a=r.updateQueries)&&this.queries.forEach(function(e,t){var n,r,i,e=e.observableQuery,e=e&&e.queryName;e&&hasOwnProperty$d.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||r.refetchQueries||r.update||r.onQueryUpdated||r.removeOptimistic){var t=[];if(this.refetchQueries({updateCache:function(t){i||c.forEach(function(e){return t.write(e)});var e,n=r.update;n&&(i||(e=t.diff({id:"ROOT_MUTATION",query:s.transform(r.document).asQuery,variables:r.variables,optimistic:!1,returnPartialData:!0})).complete&&(l=__assign$2(__assign$2({},l),{data:e.result})),n(t,l,{context:r.context,variables:r.variables})),i||r.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,t=t.DELETE;return"__typename"===n?e:t}})},include:r.refetchQueries,optimistic:!1,removeOptimistic:r.removeOptimistic,onQueryUpdated:r.onQueryUpdated||null}).forEach(function(e){return t.push(e)}),r.awaitRefetchQueries||r.onQueryUpdated)return Promise.all(t).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){__DEV__&&invariant$1.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).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){var t,n,r,i,o,a=this.transformCache;return a.has(e)||(t=this.cache.transformDocument(e),r=removeConnectionDirectiveFromDocument(this.cache.transformForLink(t)),n=this.localState.clientQuery(t),r=r&&this.localState.serverQuery(r),i={document:t,hasClientExports:hasClientExports(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),clientQuery:n,serverQuery:r,defaultVars:getDefaultValues(getOperationDefinition(t)),asQuery:__assign$2(__assign$2({},t),{definitions:t.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?__assign$2(__assign$2({},e),{operation:"query"}):e})})},(o=function(e){e&&!a.has(e)&&a.set(e,i)})(e),o(t),o(n),o(r)),a.get(e)},e.prototype.getVariables=function(e,t){return __assign$2(__assign$2({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=__assign$2(__assign$2({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new QueryInfo(this),n=new ObservableQuery({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?invariant$1(e.query,"query option is required. You must specify your GraphQL document in the query option."):invariant$1(e.query,16),__DEV__?invariant$1("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):invariant$1("Document"===e.query.kind,17),__DEV__?invariant$1(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):invariant$1(!e.returnPartialData,18),__DEV__?invariant$1(!e.pollInterval,"pollInterval option only supported on watchQuery."):invariant$1(!e.pollInterval,19),this.fetchQuery(t,e).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(__DEV__?new InvariantError("Store reset while query was in flight (not completed in link chain)"):new InvariantError(20)),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).document,!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$1(e.queryId===t),n.setObservableQuery(e),o.set(t,e)}),__DEV__&&a.size&&a.forEach(function(e,t){e||__DEV__&&invariant$1.warn("Unknown query "+("string"==typeof t?"named ":"")+JSON.stringify(t,null,2)+" requested in refetchQueries options.include array")}),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(t){return n.getObservableFromLink(i,l,t).map(function(e){if("no-cache"!==o&&(shouldWriteResult(e,a)&&n.cache.write({query:i,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:t}),n.broadcastQueries()),graphQLResultHasError(e))throw new ApolloError({graphQLErrors:e.errors});return e})}var r,n=this,i=e.query,o=e.fetchPolicy,a=e.errorPolicy,s=e.variables,e=e.context,l=void 0===e?{}:e,i=this.transform(i).document,s=this.getVariables(i,s);return this.transform(i).hasClientExports?(r=this.localState.addExportedVariables(i,s,l).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(s)},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.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!=(o=null==t?void 0:t.queryDeduplication)?o:this.queryDeduplication),this.transform(e).serverQuery),p=(d?(i=this.inFlightLinkObservables,o=this.link,a={query:d,variables:n,operationName:getOperationName(d)||void 0,context:this.prepareContext(__assign$2(__assign$2({},t),{forceFetch:!r}))},t=a.context,r?(s=i.get(d)||new Map,i.set(d,s),l=canonicalStringify(n),(c=s.get(l))||(r=new Concast([execute(o,a)]),s.set(l,c=r),r.cleanup(function(){s.delete(l)&&s.size<1&&i.delete(d)}))):c=new Concast([execute(o,a)])):(c=new Concast([Observable.of({data:{}})]),t=this.prepareContext(t)),this.transform(e).clientQuery);return 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();return asyncMap(this.getObservableFromLink(r.document,o.context,o.variables),function(e){var t=isNonEmptyArray(e.errors);if(a>=r.lastRequestId){if(t&&"none"===o.errorPolicy)throw r.markError(new ApolloError({graphQLErrors:e.errors}));r.markResult(e,o,i),r.markReady()}var n={data:e.data,loading:!1,networkStatus:r.networkStatus||NetworkStatus.ready};return t&&"ignore"!==o.errorPolicy&&(n.errors=e.errors),n},function(e){e=isApolloError(e)?e:new ApolloError({networkError:e});throw a>=r.lastRequestId&&r.markError(e),e})},e.prototype.fetchQueryObservable=function(e,t,n){function r(e){return f.variables=e,i.fetchQueryByPolicy(s,f,n)}var i=this,o=(void 0===n&&(n=NetworkStatus.loading),this.transform(t.query).document),a=this.getVariables(o,t.variables),s=this.getQuery(e),l=t.fetchPolicy,c=t.errorPolicy,u=t.returnPartialData,d=t.notifyOnNetworkStatusChange,p=t.context,f=Object.assign({},t,{query:o,variables:a,fetchPolicy:void 0===l?"cache-first":l,errorPolicy:void 0===c?"none":c,returnPartialData:void 0!==u&&u,notifyOnNetworkStatusChange:void 0!==d&&d,context:void 0===p?{}:p}),h=(this.fetchCancelFns.set(e,function(e){setTimeout(function(){return h.cancel(e)})}),new Concast(this.transform(f.query).hasClientExports?this.localState.addExportedVariables(f.query,f.variables,f.context).then(r):r(f.variables)));return h.cleanup(function(){i.fetchCancelFns.delete(e),applyNextFetchPolicy(t)}),h},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),!1;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!__DEV__||f||equal(e,{})||logMissingFieldErrors(t.missing),e&&s.transform(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)}):r(e)}function o(){return s.getResultsFromLink(i,g,{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?[r(a,i.markReady())]:f||y?[r(a),o()]:[o()];case"cache-and-network":return(a=n()).complete||f||y?[r(a),o()]:[o()];case"cache-only":return[r(n(),i.markReady())];case"network-only":return y?[r(n()),o()]:[o()];case"no-cache":return y?[r(i.getDiff()),o()]:[o()];case"standby":return[]}},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;function mergeOptions(e,t){return compact(e,t,t.variables&&{variables:__assign$2(__assign$2({},e.variables),t.variables)})}var ApolloClient=function(){function e(e){var t=this,n=(this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],e.uri),r=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,a=void 0!==a&&a,s=e.ssrForceFetchDelay,s=void 0===s?0:s,l=e.connectToDevTools,l=void 0===l?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:l,c=e.queryDeduplication,c=void 0===c||c,u=e.defaultOptions,d=e.assumeImmutableResults,d=void 0!==d&&d,p=e.resolvers,f=e.typeDefs,h=e.fragmentMatcher,m=e.name,g=e.version,e=(e=e.link)||(n?new HttpLink({uri:n,credentials:r,headers:i}):ApolloLink.empty());if(!o)throw __DEV__?new InvariantError("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new InvariantError(9);this.link=e,this.cache=o,this.disableNetworkFetches=a||0<s,this.queryDeduplication=c,this.defaultOptions=u||{},this.typeDefs=f,s&&setTimeout(function(){return t.disableNetworkFetches=!1},s),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),l&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!hasSuggestedDevtools&&__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&&__DEV__&&invariant$1.log("Download the Apollo DevTools for a better development experience: "+n))),this.version=version$1,this.localState=new LocalState({cache:o,client:this,resolvers:p,fragmentMatcher:h}),this.queryManager=new QueryManager({cache:this.cache,link:this.link,queryDeduplication:c,ssrMode:a,clientAwareness:{name:m,version:g},localState:this.localState,assumeImmutableResults:d,onBroadcast:l?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return 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)),__DEV__?invariant$1("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):invariant$1("cache-and-network"!==e.fetchPolicy,10),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){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return execute(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){__DEV__&&invariant$1.debug("In client.refetchQueries, Promise.all promise rejected with error "+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$1(e){return e.replace(/[\s,]+/g," ").trim()}function cacheKeyFromLoc(e){return normalize$1(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$1(e);if(!docCache.has(t)){e=parse$2(e,{experimentalFragmentVariables: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$5=(!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])return this;if(!t)return l(this,e),this;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)}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$4(e){return"string"==typeof e}Object.defineProperty(isString$5,"__esModule",{value:!0}),isString$5.default=isString$4;var isObject$e={};function isObject$d(e){return null!==e&&"object"==typeof e}Object.defineProperty(isObject$e,"__esModule",{value:!0}),isObject$e.default=isObject$d;var AuthContext,MessageSeverity,require$$4=getDefaultExportFromNamespaceIfNotNamed(printer),require$$5=getDefaultExportFromNamespaceIfNotNamed(getOperationAST$1),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=(protocol.GRAPHQL_SUBSCRIPTIONS=GRAPHQL_SUBSCRIPTIONS,{}),MIN_WS_TIMEOUT=(Object.defineProperty(defaults,"__esModule",{value:!0}),defaults.WS_TIMEOUT=defaults.MIN_WS_TIMEOUT=void 0,1e3),WS_TIMEOUT=(defaults.MIN_WS_TIMEOUT=MIN_WS_TIMEOUT,3e4),messageTypes=(defaults.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$1&&commonjsGlobal$1.__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$8=commonjsGlobal$1&&commonjsGlobal$1.__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$1&&commonjsGlobal$1.__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];break}if(6===t[0]&&l.label<s[1]){l.label=s[1],s=t;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(t);break}s[2]&&l.ops.pop(),l.trys.pop();continue}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$1&&commonjsGlobal$1.__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$1?commonjsGlobal$1:"undefined"!=typeof window?window:{},NativeWebSocket=_global.WebSocket||_global.MozWebSocket,Backoff=backo2,eventemitter3_1=eventemitter3.exports,is_string_1=isString$5,is_object_1=isObject$e,printer_1=require$$4,getOperationAST_1=require$$5,symbol_observable_1=result,protocol_1=protocol,defaults_1=defaults,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$8(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 t.subscriptionClient=e instanceof SubscriptionClient_1?e:new SubscriptionClient_1(e.uri,e.options,e.webSocketImpl),t}return __extends$1(e,n),e.prototype.request=function(e){return this.subscriptionClient.request(e)},e}(ApolloLink),dev=(!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}(),{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://login.dev.veritone.com",logoutUrl:"https://admin.dev.us-1.veritone.com/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"}),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://login.stage.veritone.com",logoutUrl:"https://admin.stage.us-1.veritone.com/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"},config$1={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"},"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://login.veritone.com",logoutUrl:"https://admin.us-1.veritone.com/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"},"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://aiware.us-2.veritone.com/login",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"},"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"},"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"},"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"},"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"},"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"},"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"},"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://aiware.us-fed-1.veritone.com/login",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"},"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://aiware.us-fed-2.veritone.com/login",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"}};(AuthContext=AuthContext||{}).ResetPassword="ResetPassword";const namespace$3$1="auth",initialState$3$1={OAuthToken:"",userId:"",sessionToken:"",user:{},status:"idle",authContext:null,errorMessage:null},authSlice=createSlice({name:namespace$3$1,initialState:initialState$3$1,reducers:{fetchUserRequest(e){e.status="loading"},fetchUserSuccess(e,t){var n;e.sessionToken=null==(n=t.payload)?void 0:n.token,e.userId=null==(n=t.payload)?void 0:n.userId,e.user=Object.assign({},t.payload),e.status="success"},fetchUserError(e){e.status="failure"},updateTokenRequest(e,t){e.status="idle"},updateTokenSuccess(e,t){t=t.payload.token;e.sessionToken=t,e.user.token=t,e.status="success"},updateTokenError(e){e.sessionToken="",e.status="failure"},updateUserLanguageStart(e,t){e.status="loading"},updateUserLanguageSuccess(e,t){e.user.preferredLanguage=t.payload,e.status="success"},refreshTokenRequest(e,t){e.status="loading"},refreshTokenSuccess(e,t){e.sessionToken=null==(t=null==(t=t.payload)?void 0:t.refreshToken)?void 0:t.token,e.status="success"},refreshTokenError(e){e.status="failure"},setTokenExpiration(e,t){e.user=Object.assign(Object.assign({},e.user),{tokenExpiration:null==(e=t.payload)?void 0:e.expirationTime})},logoutRequest(e,t){e.status="loading"},logoutSuccess(e){e.status="success"},logoutError(e){e.status="failure"},resetPasswordRequest(e,t){e.status="loading",e.errorMessage=null,e.authContext=AuthContext.ResetPassword},resetPasswordError(e,t){t=t.payload;e.status="failure",e.errorMessage=t.message},resetPasswordSuccess(e){e.status="success",e.errorMessage=null}}}),{fetchUserRequest,fetchUserSuccess,fetchUserError,refreshTokenRequest,refreshTokenSuccess,refreshTokenError,setTokenExpiration,logoutRequest,logoutSuccess,logoutError,updateTokenRequest,updateTokenSuccess,updateTokenError,updateUserLanguageStart,updateUserLanguageSuccess,resetPasswordRequest,resetPasswordError,resetPasswordSuccess}=authSlice.actions,authReducer=authSlice.reducer,namespace$2$1="configs",initialState$2$2={initConfig:{},config:null,status:"idle"},configsSlice=createSlice({name:namespace$2$1,initialState:initialState$2$2,reducers:{getInitConfig(e,t){e.initConfig=t.payload,e.status="loading"},getConfigFail(e){e.status="failure"},getConfigSuccess(e,t){e.status="success",e.config=t.payload},enableBetaFeatures(e){e.initConfig=Object.assign(Object.assign({},e.initConfig),{betaFeatures:!0})},disableBetaFeatures(e){e.initConfig=Object.assign(Object.assign({},e.initConfig),{betaFeatures:!1})}}}),{getInitConfig,getConfigFail,getConfigSuccess,enableBetaFeatures,disableBetaFeatures}=configsSlice.actions,configsReducer=configsSlice.reducer,sessionTokenSelector=e=>{return null==(e=e[namespace$3$1])?void 0:e.sessionToken},authSelector=e=>(null==e?void 0:e[namespace$3$1])||{},userSelector$2=e=>{return null==(e=e[namespace$3$1])?void 0:e.user},selectOrgGuid=e=>{return(null==(e=null==(e=null==(e=e[namespace$3$1])?void 0:e.user)?void 0:e.organization)?void 0:e.guid)||""},selectOrgId=e=>{return null==(e=null==(e=null==(e=e[namespace$3$1])?void 0:e.user)?void 0:e.organization)?void 0:e.organizationId},authErrorMessage=e=>{return null==(e=e[namespace$3$1])?void 0:e.errorMessage},authContextSelector=e=>{return null==(e=e[namespace$3$1])?void 0:e.authContext},authStatusSelector=e=>{return null==(e=e[namespace$3$1])?void 0:e.status},preferredLanguageSelector=e=>{var t;return null!=(t=null==(t=e[namespace$3$1])?void 0:t.user)&&t.preferredLanguage?null==(e=null==(t=e[namespace$3$1])?void 0:t.user)?void 0:e.preferredLanguage:"en"},selectIsUserAdmin=e=>{return null==(e=null==(e=null==(e=e[namespace$3$1])?void 0:e.user)?void 0:e.roles)?void 0:e.includes("superadmin")},rootApiSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.apiRoot},configSelector=e=>{return null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config},switchApiSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.switchAppUrl},cmsUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.cmsAppUrl},graphEndpointSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.graphEndpoint},loginUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.loginUrl},logoutUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.logoutUrl},hidePasswordResetSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.initConfig)?void 0:e.hidePasswordReset},logoutRedirectUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.initConfig)?void 0:e.logoutRedirectUrl},controllerNodeRedImageSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.controllerNodeRedImage},controllerUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.controllerUrl},automateControllerUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.automateControllerUrl},automateUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.automateUrl},baseUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.initConfig)?void 0:e.baseUrl},initialConfigSelector=e=>{return null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.initConfig},sessionTimeoutSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.initConfig)?void 0:e.sessionTimeout},betaFeaturesSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.initConfig)?void 0:e.betaFeatures},appIdSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.initConfig)?void 0:e.applicationId},selectApiConfigs$1=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,n)=>({apiRoot:e,graphQLEndpoint:t,token:n}));function __rest$4(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$7(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:t,extraHeaders:n,variables:r,operationName:i,graphEndpoint:o,token:a}){return __awaiter$7(this,void 0,void 0,function*(){const e=yield fetch(o,{method:"post",body:JSON.stringify({query:t,variables:r,operationName:i}),credentials:"include",headers:Object.assign(Object.assign({"Content-Type":"application/json"},a&&{Authorization:"Bearer "+a}),n)});return e.json()})}const getAppConfig=(e,t)=>__awaiter$7(void 0,void 0,void 0,function*(){try{return yield baseGraphQLApi({query:`query {
|
|
804
|
+
`;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$9(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})},getTemplateById=(e,t)=>{var n=gqlQueries["getTemplateByIdQuery"];return fetchVeritoneGraphQLApi(apiEndpoint,t,n,{flowId:e})},getTemplateByIdFallback=(e,t)=>{var n=gqlQueries["getTemplateByIdQueryFallback"];return fetchVeritoneGraphQLApi(apiEndpoint,t,n,{flowId:e})},createEnginebuild=(e,t)=>{var n=gqlQueries["createEngineBuildMutation"];return fetchVeritoneGraphQLApi(apiEndpoint,t,n,e)},fetchAllTags=i=>__awaiter$9(void 0,void 0,void 0,function*(){const e=gqlQueries["getGeneratedFetchTagsQueryFromListIds"];var t=e(i),t=yield fetchVeritoneGraphQLApi(apiEndpoint,"",t,{});let n=Object.values(lodash.exports.get(t,"data")),r=(n=n.map(e=>e.records[0].tags),[]);return _$3.forEach(n,e=>{r=_$3.union(r,e)}),r.sort(function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}),r}),isRevisionsExistOnServerRequest=t=>__awaiter$9(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=document.getElementsByTagName("script");if(!e.length)return"/";var t=Array.from(e).find(e=>e.src.includes("js-core")),e=Array.from(e).find(e=>e.src.includes("main.js"));const n=(null==t?void 0:t.src)||(null==e?void 0:e.src)||"";t=n.split("/").pop()||"";const r=n.split(t)[0]||"/";return r.replace(/\/+$/,"")},fetchTranslationJson=t=>__awaiter$9(void 0,void 0,void 0,function*(){try{if(translationPromises.hasOwnProperty(t))return translationPromises[t];var e=getAssetsBaseUrl();return translationPromises[t]=(yield fetch(e+`/locales/${t}.json`)).json(),translationPromises[t]}catch(e){return 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$9(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"})})}))},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"};function n$2(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(e){return!!e&&!!e[Q]}function t(t){return!!t&&(function(){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;e=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return e===Object||"function"==typeof e&&Function.toString.call(e)===Z}()||Array.isArray(t)||!!t[L]||!!t.constructor[L]||s$3(t)||v$1(t))}function i$1(n,r,t){void 0===t&&(t=!1),0===o$1(n)?(t?Object.keys:nn)(n).forEach(function(e){t&&"symbol"==typeof e||r(e,n[e],n)}):n.forEach(function(e,t){return r(t,e,n)})}function o$1(e){var t=e[Q];return t?3<t.i?t.i-4:t.i:Array.isArray(e)?1:s$3(e)?2:v$1(e)?3:0}function u$1(e,t){return 2===o$1(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function a$1(e,t){return 2===o$1(e)?e.get(t):e[t]}function f$1(e,t,n){var r=o$1(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function c$1(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function s$3(e){return X&&e instanceof Map}function v$1(e){return q&&e instanceof Set}function p$1(e){return e.o||e.t}function l$3(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=rn(e);delete t[Q];for(var n=nn(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function d$1(e,n){return void 0===n&&(n=!1),y(e)||r(e)||!t(e)||(1<o$1(e)&&(e.set=e.add=e.clear=e.delete=h$1),Object.freeze(e),n&&i$1(e,function(e,t){return d$1(t,!0)},!0)),e}function h$1(){n$2(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=tn[e];return t||n$2(18,e),t}function m$1(e,t){tn[e]||(tn[e]=t)}function _$2(){return U}function j(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function O(e){g$1(e),e.p.forEach(S),e.p=null}function g$1(e){e===U&&(U=e.l)}function w(e){return U={p:[],l:U,h:e,m:!0,_:0}}function S(e){e=e[Q];0===e.i||1===e.i?e.j():e.O=!0}function P(e,n){n._=n.p.length;var r=n.p[0],i=void 0!==e&&e!==r;return n.h.g||b("ES5").S(n,e,i),i?(r[Q].P&&(O(n),n$2(4)),t(e)&&(e=M(n,e),n.l||x(n,e)),n.u&&b("Patches").M(r[Q].t,e,n.u,n.s)):e=M(n,r,[]),O(n),n.u&&n.v(n.u,n.s),e!==H?e:void 0}function M(n,r,i){if(y(r))return r;var o,a=r[Q];return a?a.A!==n?r:a.P?(a.I||(a.I=!0,a.A._--,o=4===a.i||5===a.i?a.o=l$3(a.k):a.o,i$1(3===a.i?new Set(o):o,function(e,t){return A(n,a,o,e,t,i)}),x(n,o,!1),i&&n.u&&b("Patches").R(a,i,n.u,n.s)),a.o):(x(n,a.t,!0),a.t):(i$1(r,function(e,t){return A(n,a,r,e,t,i)},!0),r)}function A(e,n,i,o,a,s){if(r(a)){s=M(e,a,s&&n&&3!==n.i&&!u$1(n.D,o)?s.concat(o):void 0);if(f$1(i,o,s),!r(s))return;e.m=!1}!t(a)||y(a)||!e.h.F&&e._<1||(M(e,a),n&&n.A.l||x(e,a))}function x(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&d$1(t,n)}function z(e,t){var n=e[Q];return(n?p$1(n):e)[t]}function I(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function k(e){e.P||(e.P=!0,e.l&&k(e.l))}function E(e){e.o||(e.o=l$3(e.t))}function R(e,t,n){var r,i,o=s$3(t)?b("MapSet").N(t,n):v$1(t)?b("MapSet").T(t,n):e.g?(e=t,r=n,o=Array.isArray(e),r={i:o?1:0,A:r?r.A:_$2(),P:!1,I:!1,D:{},l:r,t:e,k:null,o:null,j:null,C:!1},e=r,i=en,o&&(e=[r],i=on),o=Proxy.revocable(e,i),e=o.revoke,i=o.proxy,r.k=i,r.j=e,i):b("ES5").J(t,n);return(n?n.A:_$2()).p.push(o),o}function D(e){return r(e)||n$2(22,e),function n(e){if(!t(e))return e;var r,i=e[Q],o=o$1(e);if(i){if(!i.P&&(i.i<4||!b("ES5").K(i)))return i.t;i.I=!0,r=F(e,o),i.I=!1}else r=F(e,o);return i$1(r,function(e,t){i&&a$1(i.t,e)===t||f$1(r,e,n(t))}),3===o?new Set(r):r}(e)}function F(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return l$3(e)}function N(){function l(n,e){var t=a[n];return t?t.enumerable=e:a[n]=t={configurable:!0,enumerable:e,get:function(){var e=this[Q];return en.get(e,n)},set:function(e){var t=this[Q];en.set(t,n,e)}},t}function i(e){for(var t=e.length-1;0<=t;t--){var n=e[t][Q];if(!n.P)switch(n.i){case 5:u(n)&&k(n);break;case 4:o(n)&&k(n)}}}function o(e){for(var t=e.t,n=e.k,r=nn(n),i=r.length-1;0<=i;i--){var o=r[i];if(o!==Q){var a=t[o];if(void 0===a&&!u$1(t,o))return!0;var o=n[o],s=o&&o[Q];if(s?s.t!==a:!c$1(o,a))return!0}}e=!!t[Q];return r.length!==nn(t).length+(e?0:1)}function u(e){var t=e.k;if(t.length!==e.t.length)return!0;e=Object.getOwnPropertyDescriptor(t,t.length-1);if(e&&!e.get)return!0;for(var n=0;n<t.length;n++)if(!t.hasOwnProperty(n))return!0;return!1}var a={};m$1("ES5",{J:function(e,t){var n=Array.isArray(e),r=function(e,t){if(e){for(var n=Array(t.length),r=0;r<t.length;r++)Object.defineProperty(n,""+r,l(r,!0));return n}var i=rn(t);delete i[Q];for(var o=nn(i),a=0;a<o.length;a++){var s=o[a];i[s]=l(s,e||!!i[s].enumerable)}return Object.create(Object.getPrototypeOf(t),i)}(n,e),n={i:n?5:4,A:t?t.A:_$2(),P:!1,I:!1,D:{},l:t,t:e,k:r,o:null,O:!1,C:!1};return Object.defineProperty(r,Q,{value:n,writable:!0}),r},S:function(e,t,n){n?r(t)&&t[Q].A===e&&i(e.p):(e.u&&function t(e){if(e&&"object"==typeof e){var n=e[Q];if(n){var r=n.t,i=n.k,o=n.D,e=n.i;if(4===e)i$1(i,function(e){e!==Q&&(void 0!==r[e]||u$1(r,e)?o[e]||t(i[e]):(o[e]=!0,k(n)))}),i$1(r,function(e){void 0!==i[e]||u$1(i,e)||(o[e]=!1,k(n))});else if(5===e){if(u(n)&&(k(n),o.length=!0),i.length<r.length)for(var a=i.length;a<r.length;a++)o[a]=!1;else for(var s=r.length;s<i.length;s++)o[s]=!0;for(var l=Math.min(i.length,r.length),c=0;c<l;c++)i.hasOwnProperty(c)||(o[c]=!0),void 0===o[c]&&t(i[c])}}}}(e.p[0]),i(e.p))},K:function(e){return(4===e.i?o:u)(e)}})}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(t){var n={};return nn(t).forEach(function(e){n[e]=Object.getOwnPropertyDescriptor(t,e)}),n},tn={},en={get:function(e,n){if(n===Q)return e;var r,i=p$1(e);if(!u$1(i,n))return r=e,(o=I(i,n))?"value"in o?o.value:null==(o=o.get)?void 0:o.call(r.k):void 0;var o=i[n];return!e.I&&t(o)&&o===z(e.t,n)?(E(e),e.o[n]=R(e.A.h,o,e)):o},has:function(e,t){return t in p$1(e)},ownKeys:function(e){return Reflect.ownKeys(p$1(e))},set:function(e,t,n){var r=I(p$1(e),t);if(null!=r&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var r=z(p$1(e),t),i=null==r?void 0:r[Q];if(i&&i.t===n)return e.o[t]=n,!(e.D[t]=!1);if(c$1(n,r)&&(void 0!==n||u$1(e.t,t)))return!0;E(e),k(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0)},deleteProperty:function(e,t){return void 0!==z(e.t,t)||t in e.t?(e.D[t]=!1,E(e),k(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=p$1(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty:function(){n$2(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){n$2(12)}},on={},un=(i$1(en,function(e,t){on[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),on.deleteProperty=function(e,t){return on.set.call(this,e,t,void 0)},on.set=function(e,t,n){return en.set.call(this,e[0],t,n,e[0])},function(){function e(e){var u=this;this.g=B,this.F=!0,this.produce=function(e,o,n){var a,s,r;if("function"==typeof e&&"function"!=typeof o)return a=o,o=e,s=u,function(e){var t=this;void 0===e&&(e=a);for(var n=arguments.length,r=Array(1<n?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return s.produce(e,function(e){return o.call.apply(o,[t,e].concat(r))})};if("function"!=typeof o&&n$2(6),void 0!==n&&"function"!=typeof n&&n$2(7),t(e)){var i=w(u),l=R(u,e,void 0),c=!0;try{r=o(l),c=!1}finally{(c?O:g$1)(i)}return"undefined"!=typeof Promise&&r instanceof Promise?r.then(function(e){return j(i,n),P(e,i)},function(e){throw O(i),e}):(j(i,n),P(r,i))}if(!e||"object"!=typeof e)return(r=void 0===(r=o(e))?e:r)===H&&(r=void 0),u.F&&d$1(r,!0),n&&(l=[],c=[],b("Patches").M(e,r,l,c),n(l,c)),r;n$2(21,e)},this.produceWithPatches=function(i,e){if("function"==typeof i)return function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return u.produceWithPatches(e,function(e){return i.apply(void 0,[e].concat(n))})};var n,r,e=u.produce(i,e,function(e,t){n=e,r=t});return"undefined"!=typeof Promise&&e instanceof Promise?e.then(function(e){return[e,n,r]}):[e,n,r]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var n=e.prototype;return n.createDraft=function(e){t(e)||n$2(8),r(e)&&(e=D(e));var n=w(this),e=R(this,e,void 0);return e[Q].C=!0,g$1(n),e},n.finishDraft=function(e,t){e=(e&&e[Q]).A;return j(e,t),P(void 0,e)},n.setAutoFreeze=function(e){this.F=e},n.setUseProxies=function(e){e&&!B&&n$2(20),this.g=e},n.applyPatches=function(e,t){for(var n=t.length-1;0<=n;n--){var i=t[n];if(0===i.path.length&&"replace"===i.op){e=i.value;break}}-1<n&&(t=t.slice(n+1));var o=b("Patches").$;return r(e)?o(e,t):this.produce(e,function(e){return o(e,t)})},e}()),an=new un,fn=an.produce,createNextState2=(an.produceWithPatches.bind(an),an.setAutoFreeze.bind(an),an.setUseProxies.bind(an),an.applyPatches.bind(an),an.createDraft.bind(an),an.finishDraft.bind(an),fn);function defaultEqualityCheck(e,t){return e===t}function areArgumentsShallowlyEqual(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}function defaultMemoize(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:defaultEqualityCheck,n=null,r=null;return function(){return areArgumentsShallowlyEqual(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function getDependencies(e){var e=Array.isArray(e[0])?e[0]:e;if(e.every(function(e){return"function"==typeof e}))return e;throw e=e.map(function(e){return typeof e}).join(", "),new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+e+"]")}function createSelectorCreator(l){for(var e=arguments.length,c=Array(1<e?e-1:0),t=1;t<e;t++)c[t-1]=arguments[t];return function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=0,i=t.pop(),o=getDependencies(t),a=l.apply(void 0,[function(){return r++,i.apply(null,arguments)}].concat(c)),s=l(function(){for(var e=[],t=o.length,n=0;n<t;n++)e.push(o[n].apply(null,arguments));return a.apply(null,e)});return s.resultFunc=i,s.dependencies=o,s.recomputations=function(){return r},s.resetRecomputations=function(){return r=0},s}}var createSelector=createSelectorCreator(defaultMemoize),__extends=function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),__generator$1=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];break}if(6===t[0]&&l.label<s[1]){l.label=s[1],s=t;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(t);break}s[2]&&l.ops.pop(),l.trys.pop();continue}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}}}},__spreadArray=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=function(e,t,n){return t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},__spreadValues=function(e,t){for(var n in t=t||{})__hasOwnProp.call(t,n)&&__defNormalProp(e,n,t[n]);if(__getOwnPropSymbols)for(var r=0,i=__getOwnPropSymbols(t);r<i.length;r++){n=i[r];__propIsEnum.call(t,n)&&__defNormalProp(e,n,t[n])}return e},__spreadProps=function(e,t){return __defProps(e,__getOwnPropDescs(t))},__async=function(e,a,s){return new Promise(function(t,n){function r(e){e.done?t(e.value):Promise.resolve(e.value).then(i,o)}var i=function(e){try{r(s.next(e))}catch(e){n(e)}},o=function(e){try{r(s.throw(e))}catch(e){n(e)}};r((s=s.apply(e,a)).next())})},MiddlewareArray=function(r){function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,i.prototype),n}return __extends(i,r),Object.defineProperty(i,Symbol.species,{get:function(){return i},enumerable:!1,configurable:!0}),i.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.prototype.concat.apply(this,e)},i.prototype.prepend=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(1===e.length&&Array.isArray(e[0])?i.bind.apply(i,__spreadArray([void 0],e[0].concat(this))):i.bind.apply(i,__spreadArray([void 0],e.concat(this))))},i}(Array);function isBoolean(e){return"boolean"==typeof e}function getDefaultMiddleware(e){var t=(e=void 0===e?{}:e).thunk,t=void 0===t||t,e=(e.immutableCheck,e.serializableCheck,new MiddlewareArray);return t&&(isBoolean(t)?e.push(thunk):e.push(thunk.withExtraArgument(t.extraArgument))),e}function createAction(r,i){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(i){var n=i.apply(void 0,e);if(n)return __spreadValues(__spreadValues({type:r,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error});throw new Error("prepareAction did not return an object")}return{type:r,payload:e[0]}}return e.toString=function(){return""+r},e.type=r,e.match=function(e){return e.type===r},e}function executeReducerBuilderCallback(e){var t,n={},r=[],i={addCase:function(e,t){e="string"==typeof e?e:e.type;if(e in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[e]=t,i},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),i},addDefaultCase:function(e){return t=e,i}};return e(i),[n,r,t]}function createReducer(e,n,i,o){void 0===i&&(i=[]);var n="function"==typeof n?executeReducerBuilderCallback(n):[n,i,o],a=n[0],s=n[1],l=n[2],c=createNextState2(e,function(){});return function(e,o){void 0===e&&(e=c);var n=__spreadArray([a[o.type]],s.filter(function(e){return(0,e.matcher)(o)}).map(function(e){return e.reducer}));return(n=0===n.filter(function(e){return!!e}).length?[l]:n).reduce(function(e,n){if(n){var i;if(r(e))return void 0===(i=n(e,o))?e:i;if(t(e))return createNextState2(e,function(e){return n(e,o)});if(void 0!==(i=n(e,o)))return i;if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return e},e)}}function getType2(e,t){return e+"/"+t}function createSlice(e){var o=e.name,t=e.initialState;if(!o)throw new Error("`name` is a required option for createSlice");var a=e.reducers||{},e="function"==typeof e.extraReducers?executeReducerBuilderCallback(e.extraReducers):[e.extraReducers],n=e[0],n=void 0===n?{}:n,r=e[1],r=void 0===r?[]:r,e=e[2],e=void 0===e?void 0:e,i=Object.keys(a),s={},l={},c={};i.forEach(function(e){var t,n,r=a[e],i=getType2(o,e);"reducer"in r?(t=r.reducer,n=r.prepare):t=r,s[e]=t,l[i]=t,c[e]=n?createAction(i,n):createAction(i)});i=createReducer(t,__spreadValues(__spreadValues({},n),l),r,e);return{name:o,reducer:i,actions:c,caseReducers:s}}var urlAlphabet="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nanoid=function(e){for(var t="",n=e=void 0===e?21:e;n--;)t+=urlAlphabet[64*Math.random()|0];return t},commonProperties=["name","message","stack","code"],RejectWithValue=function(e,t){this.payload=e,this.meta=t},FulfillWithMeta=function(e,t){this.payload=e,this.meta=t},miniSerializeError=function(e){if("object"!=typeof e||null===e)return{message:String(e)};for(var t={},n=0,r=commonProperties;n<r.length;n++){var i=r[n];"string"==typeof e[i]&&(t[i]=e[i])}return t};function createAsyncThunk(e,d,p){var f=createAction(e+"/fulfilled",function(e,t,n,r){return{payload:e,meta:__spreadProps(__spreadValues({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}}),h=createAction(e+"/pending",function(e,t,n){return{payload:void 0,meta:__spreadProps(__spreadValues({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}}),m=createAction(e+"/rejected",function(e,t,n,r,i){return{payload:r,error:(p&&p.serializeError||miniSerializeError)(e||"Rejected"),meta:__spreadProps(__spreadValues({},i||{}),{arg:n,requestId:t,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}}),g="undefined"!=typeof AbortController?AbortController:(t.prototype.abort=function(){},t);function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){}}}return Object.assign(function(u){return function(r,i,o){var e,n,a=(null!=(e=null==p?void 0:p.idGenerator)?e:nanoid)(),s=new g,l=new Promise(function(e,t){return s.signal.addEventListener("abort",function(){return t({name:"AbortError",message:n||"Aborted"})})}),c=!1;var t=function(){return __async(this,null,function(){var t,n;return __generator$1(this,function(e){switch(e.label){case 0:if(e.trys.push([0,2,,3]),p&&p.condition&&!1===p.condition(u,{getState:i,extra:o}))throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return c=!0,r(h(a,u,null==(n=null==p?void 0:p.getPendingMeta)?void 0:n.call(p,{requestId:a,arg:u},{getState:i,extra:o}))),[4,Promise.race([l,Promise.resolve(d(u,{dispatch:r,getState:i,extra:o,requestId:a,signal:s.signal,rejectWithValue:function(e,t){return new RejectWithValue(e,t)},fulfillWithValue:function(e,t){return new FulfillWithMeta(e,t)}})).then(function(e){if(e instanceof RejectWithValue)throw e;return e instanceof FulfillWithMeta?f(e.payload,a,u,e.meta):f(e,a,u)})])];case 1:return t=e.sent(),[3,3];case 2:return n=e.sent(),t=n instanceof RejectWithValue?m(null,a,u,n.payload,n.meta):m(n,a,u),[3,3];case 3:return p&&!p.dispatchConditionRejection&&m.match(t)&&t.meta.condition||r(t),[2,t]}})})}();return Object.assign(t,{abort:function(e){c&&(n=e,s.abort())},requestId:a,arg:u,unwrap:function(){return t.then(unwrapResult)}})}},{pending:h,rejected:m,fulfilled:f,typePrefix:e})}function unwrapResult(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}N();var done=function(e){return{done:!0,value:e}},qEnd={};function safeName(e){return channel$1(e)?"channel":!stringableFunc(e)&&func(e)?e.name:String(e)}function fsmIterator(n,e,t){var r,i,o,a=e;function s(e,t){if(a===qEnd)return done(e);if(t&&!i)throw a=qEnd,t;return r&&r(e),t=t?n[i](t):n[a](),a=t.nextState,o=t.effect,r=t.stateUpdater,i=t.errorState,a===qEnd?done(e):o}return makeIterator(s,function(e){return s(null,e)},t)}function takeEvery(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];function o(e){return a=e}var a,s={done:!1,value:take(e)};return fsmIterator({q1:function(){return{nextState:"q2",effect:s,stateUpdater:o}},q2:function(){return{nextState:"q1",effect:(e=a,{done:!1,value:fork.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+safeName(e)+", "+t.name+")")}function takeLatest(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];function o(e){return{done:!1,value:fork.apply(void 0,[t].concat(r,[e]))}}function a(e){return l=e}function s(e){return c=e}var l,c,u={done:!1,value:take(e)};return fsmIterator({q1:function(){return{nextState:"q2",effect:u,stateUpdater:s}},q2:function(){return l?{nextState:"q3",effect:{done:!1,value:cancel(l)}}:{nextState:"q1",effect:o(c),stateUpdater:a}},q3:function(){return{nextState:"q1",effect:o(c),stateUpdater:a}}},"q1","takeLatest("+safeName(e)+", "+t.name+")")}function takeEvery$1(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return fork.apply(void 0,[takeEvery,e,t].concat(r))}function takeLatest$1(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return fork.apply(void 0,[takeLatest,e,t].concat(r))}function get$3(e,t,n){var r=Array.isArray(t)?t:t.split(".");let i=0;for(var o=r.length;null!=e&&i<o;)e=e[r[i++]];return i&&i===o&&e?e:n}function guid(){if(window.crypto){const e=[1e7,1e3,4e3,8e3,1e11],t=e.join("-");return t.replace(/[018]/g,e=>cryptoGenerateString(e))}return""}function cryptoGenerateString(e){e=Number(e);const t=e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4;return t.toString(16)}function isEqual(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}function pick$2(e,t){const n={};for(const r of t)e[r]&&(n[r]=JSON.parse(JSON.stringify(e[r])));return n}function slice$3(e,t,n){return[...e].slice(t,n)}function uniq(e){return e.filter((e,t,n)=>n.indexOf(e)===t)}!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const useInterval=(e,t)=>{const n=react.exports.useRef();react.exports.useEffect(()=>{n.current=e},[e]),react.exports.useEffect(()=>{if(null!==t){const e=setInterval(function(){n&&n.current&&n.current()},t);return()=>clearInterval(e)}},[t])},getSortName=e=>{const t=e.match(/\b\w/g)||[];return(1<t.length?(t.shift()||"")+(t.pop()||""):e.substr(0,2)).toUpperCase()};function formatBytes(e,t=1){if(0===e)return"0 Bytes";var n=Math.floor(getBaseLog(1024,e));return parseFloat((e/Math.pow(1024,n)).toFixed(t))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][n]}function getBaseLog(e,t){return Math.log(t)/Math.log(e)}const getUniqueID=()=>Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,7),useDoubleClick=(t,n=500)=>{const[r,i]=react.exports.useState(0),[o,a]=react.exports.useState();return react.exports.useEffect(()=>{const e=setTimeout(()=>{1===r&&(t(!1,o),i(0))},n);return 2===r&&(t(!0,o),i(0)),()=>{clearTimeout(e)}},[t,n,r,o]),react.exports.useCallback(e=>{i(e=>e+1),a(e)},[])},useBackupImg=(e,t)=>{const[n,r]=react.exports.useState(e||t);return[n,()=>r(t)]};function getElement(e,t){let n=document.getElementById(e);return n||((n=document.createElement("div")).id=e,"APP_BAR"===t?null!=(e=document.getElementsByTagName("body").item(0))&&e.prepend(n):null!=(t=document.getElementsByTagName("body").item(0))&&t.append(n),n)}!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const PANELS_FEATURE_KEY="panels",panelsSelector=e=>e[name$1],selectPanelByPanelName=t=>e=>e[PANELS_FEATURE_KEY].find(e=>{return(null==(e=null==e?void 0:e.panelConfig)?void 0:e.panelId)===t}),{name:name$1,reducer:reducer$2,actions:{mountPanel:mountPanel$1,unmountPanel:unmountPanel$1,hidePanel:hidePanel$1,updatePanelMicroFrontendProps,openLinkOnNewTab,unmountAllPanel:unmountAllPanel$1}}=createSlice({name:PANELS_FEATURE_KEY,initialState:[],reducers:{mountPanel:(e,t)=>(e.push(t.payload),e),unmountPanel:(e,t)=>e.filter(e=>e.panelId!==t.payload),hidePanel:(e,t)=>e,updatePanelMicroFrontendProps:(e,t)=>e,openLinkOnNewTab:(e,t)=>e,unmountAllPanel:(e,t)=>e}});function*handleClosePanel(e,t,n){t?yield put(unmountPanel$1(e)):yield put(hidePanel$1(e)),setTimeout(()=>{n()},0)}const mountPanelForResponse$1=(n,e)=>{const r=n.panelId||getUniqueID(),{microFrontend:t,panelConfig:i}=n;e.dispatch(mountPanel$1({microFrontend:t,panelId:r,panelConfig:i}));let o,a,s=()=>null;var l=new Promise((e,t)=>{o=e,a=t}),c={id:r,sagas:[function*(){yield r,yield takeEvery$1(t.name+"_RESPONSE",function*(e){yield e.payload,o(e.payload),yield call$7(handleClosePanel,r,n.panelConfig.disableHide,s)}),yield takeEvery$1(t.name+"_ERROR_RESPONSE",function*(e){var{error:e,closePanel:t}=e.payload;yield e,a(e),t&&(yield call$7(handleClosePanel,r,n.panelConfig.disableHide,s))})}]};return s=e.addModule(c).remove,l},setData=createAction("Set Data"),logout=createAction("os-app-bar-panel/logout"),logoutUser$1=createAction("os-app-bar-panel/users/logout"),listenLogout=createAction("logoutListener"),updateActivityStatus$1=createAction("os-app-bar-panel/users/updateActivityStatus"),appSwitcherSetupListener=createAction("aiware/set up app switch listener"),appSwitcherHandleClick=createAction("aiware/handle app switch"),appSwitcherHandleClickAppNatively=createAction("aiware/applications/get handle click app");!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();var SdkEvents,PermissionChangedAction,img$1v="data:image/svg+xml,%3csvg width='18' height='12' viewBox='0 0 18 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 0H18V2H0V0ZM0 5H18V7H0V5ZM18 10H0V12H18V10Z' fill='%235C6269'/%3e%3c/svg%3e",img$1u="data:image/svg+xml,%3csvg width='26' height='24' viewBox='0 0 26 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath opacity='0.36' d='M14.9802 0L18.544 6.25185L22.1176 0H14.9802Z' fill='%23555F7C' /%3e %3cpath opacity='0.9' d='M22.117 0L8.4035 23.991H17.5961L26 9.22634L22.117 0Z' fill='%23555F7C' /%3e %3cpath opacity='0.36' d='M3.88435 0L0 9.2299L8.40696 24L13.0074 15.9602L3.88435 0Z' fill='%23555F7C' /%3e%3c/svg%3e",img$1t="data:image/svg+xml,%3csvg width='64' height='53' viewBox='0 0 64 53' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M58.55 52.13H5.13C3.76944 52.13 2.4646 51.5895 1.50254 50.6275C0.540481 49.6654 0 48.3606 0 47L0 5.13C0 3.76944 0.540481 2.4646 1.50254 1.50254C2.4646 0.540481 3.76944 0 5.13 0L58.55 0C59.9106 0 61.2154 0.540481 62.1775 1.50254C63.1395 2.4646 63.68 3.76944 63.68 5.13V47C63.68 48.3606 63.1395 49.6654 62.1775 50.6275C61.2154 51.5895 59.9106 52.13 58.55 52.13ZM5.13 4C4.83031 4 4.54289 4.11905 4.33097 4.33097C4.11905 4.54289 4 4.83031 4 5.13V47C4 47.1484 4.02923 47.2953 4.08602 47.4324C4.1428 47.5695 4.22604 47.6941 4.33097 47.799C4.4359 47.904 4.56047 47.9872 4.69757 48.044C4.83467 48.1008 4.98161 48.13 5.13 48.13H58.55C58.848 48.1274 59.1328 48.0071 59.3426 47.7955C59.5523 47.5839 59.67 47.298 59.67 47V5.13C59.67 4.83203 59.5523 4.54611 59.3426 4.33448C59.1328 4.12285 58.848 4.00264 58.55 4H5.13Z' fill='%23828282'/%3e%3cpath d='M10.7327 44.32H50.2427C50.5591 44.329 50.8717 44.249 51.1448 44.089C51.418 43.9291 51.6407 43.6956 51.7877 43.4153C51.9346 43.1349 51.9999 42.8189 51.976 42.5033C51.9522 42.1876 51.8401 41.8851 51.6527 41.63L46.2027 34.23C46.0605 34.0331 45.8774 33.8692 45.6661 33.7494C45.4548 33.6296 45.2201 33.5568 44.9781 33.5359C44.7361 33.5151 44.4924 33.5466 44.2637 33.6284C44.035 33.7102 43.8266 33.8404 43.6527 34.01L38.0527 39.34L25.0527 21.69C24.8909 21.4695 24.6779 21.2916 24.4321 21.1715C24.1864 21.0514 23.9151 20.9928 23.6417 21.0007C23.3683 21.0086 23.1009 21.0827 22.8624 21.2167C22.624 21.3507 22.4216 21.5405 22.2727 21.77L9.27271 41.71C9.10506 41.9681 9.01108 42.2671 9.00092 42.5748C8.99076 42.8824 9.06481 43.1869 9.21508 43.4556C9.36535 43.7242 9.58612 43.9467 9.85358 44.099C10.121 44.2514 10.425 44.3278 10.7327 44.32Z' fill='%23828282'/%3e%3cpath d='M44.13 21.0499C47.405 21.0499 50.06 18.395 50.06 15.1199C50.06 11.8449 47.405 9.18994 44.13 9.18994C40.8549 9.18994 38.2 11.8449 38.2 15.1199C38.2 18.395 40.8549 21.0499 44.13 21.0499Z' fill='%23828282'/%3e%3c/svg%3e",img$1s="data:image/svg+xml,%3csvg width='17' height='14' viewBox='0 0 17 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.75169 0.0126973L8.05424 0L12.7245 13.6679L10.3915 13.6806L6.36746 1.90297L2.43191 13.6678L0 13.6678L4.59129 0.0125519L5.75169 0.0126973ZM13.9471 0.0129114H16.4299V13.6679H13.9471V0.0129114Z' fill='%23057A9F'/%3e%3c/svg%3e",img$1r="data:image/svg+xml,%3csvg width='20' height='18' viewBox='0 0 20 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.7949 10.725C14.2051 10.6 17.6923 9.575 20 8.35V16.25C20 17.225 19.2051 18 18.2051 18H1.79487C0.794872 18 0 17.225 0 16.25V8.375C2.30769 9.6 5.79487 10.6 8.20513 10.75V11.5C8.20513 12.05 8.66667 12.5 9.23077 12.5H10.7692C11.3333 12.5 11.7949 12.05 11.7949 11.5V10.725ZM20 4.75V7.225C17.8462 8.5 14.2564 9.6 11.7949 9.75V9C11.7949 8.45 11.3333 8 10.7692 8H9.23077C8.66667 8 8.20513 8.45 8.20513 9V9.725C5.74359 9.575 2.15385 8.475 0 7.2V4.75C0 3.775 0.794872 3 1.79487 3H6.15385V2.25C6.15385 1 7.17949 0 8.46154 0H11.5385C12.8205 0 13.8462 1 13.8462 2.25V3H18.2051C19.2051 3 20 3.775 20 4.75ZM12.8205 2.25C12.8205 1.55 12.2564 1 11.5385 1H8.46154C7.74359 1 7.17949 1.55 7.17949 2.25V3H12.8205V2.25ZM10.7692 9H9.23077V11.5H10.7692V9Z' fill='%23786216'/%3e%3c/svg%3e",img$1q="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M1.06455 0H4.03807C4.3019 0 4.54849 0.115307 4.7332 0.292297C4.90898 0.469598 5.01488 0.71757 5.01488 0.992199V3.97748C5.01488 4.25211 4.90898 4.50008 4.7332 4.67738C4.54849 4.85437 4.30221 4.96968 4.03807 4.96968H1.06455C0.800718 4.96968 0.554438 4.85437 0.36942 4.67738C0.193638 4.50008 0.0880452 4.25211 0.0880452 3.97748V0.992199C0.0880452 0.71757 0.193638 0.469598 0.36942 0.292297C0.55413 0.115307 0.80041 0 1.06455 0ZM13.9705 13.0309H16.9355C17.2082 13.0309 17.4548 13.1459 17.6306 13.3226C17.8064 13.4999 17.9206 13.7482 17.9206 14.0225V17.0078C17.9206 17.2827 17.8064 17.531 17.6306 17.7077C17.4548 17.885 17.2082 18 16.9355 18H13.9705C13.6978 18 13.4515 17.885 13.2754 17.7077C13.0907 17.531 12.9854 17.2827 12.9854 17.0078V14.0225C12.9854 13.7482 13.091 13.4999 13.2754 13.3226C13.4518 13.1459 13.6981 13.0309 13.9705 13.0309ZM7.45182 13.0309H10.4253C10.6892 13.0309 10.9355 13.1459 11.1205 13.3226C11.2963 13.4999 11.4018 13.7482 11.4018 14.0225V17.0078C11.4018 17.2827 11.2963 17.531 11.1205 17.7077C10.9355 17.885 10.6895 18 10.4253 18H7.45182C7.18799 18 6.94141 17.885 6.7567 17.7077C6.58061 17.531 6.47501 17.2827 6.47501 17.0078V14.0225C6.47501 13.7482 6.58061 13.4999 6.7567 13.3226C6.94141 13.1459 7.18769 13.0309 7.45182 13.0309ZM0.985428 13.0309H3.95033C4.22309 13.0309 4.46937 13.1459 4.64546 13.3226C4.82124 13.4999 4.93545 13.7482 4.93545 14.0225V17.0078C4.93545 17.2827 4.82124 17.531 4.64546 17.7077C4.46937 17.885 4.22309 18 3.95033 18H0.985428C0.712673 18 0.466085 17.885 0.290303 17.7077C0.11452 17.531 0 17.2827 0 17.0078V14.0225C0 13.7482 0.11452 13.4999 0.290303 13.3226C0.466085 13.1459 0.712673 13.0309 0.985428 13.0309ZM14.006 6.51981H16.9795C17.2433 6.51981 17.4899 6.62613 17.6746 6.80343C17.8504 6.98941 17.9563 7.23738 17.9563 7.50302V10.4973C17.9563 10.7629 17.8504 11.0106 17.6746 11.1972C17.4899 11.3739 17.2436 11.4805 16.9795 11.4805H14.006C13.7421 11.4805 13.4958 11.3739 13.3108 11.1972C13.135 11.0106 13.0295 10.7632 13.0295 10.4973V7.50302C13.0295 7.23738 13.135 6.98941 13.3108 6.80343C13.4958 6.62613 13.7418 6.51981 14.006 6.51981ZM7.49554 6.51981H10.4604C10.7332 6.51981 10.9798 6.62613 11.1556 6.80343C11.3403 6.98941 11.4456 7.23738 11.4456 7.50302V10.4973C11.4456 10.7629 11.34 11.0106 11.1556 11.1972C10.9798 11.3739 10.7332 11.4805 10.4604 11.4805H7.49554C7.22278 11.4805 6.97619 11.3739 6.80041 11.1972C6.62463 11.0106 6.51011 10.7632 6.51011 10.4973V7.50302C6.51011 7.23738 6.62463 6.98941 6.80041 6.80343C6.9765 6.62613 7.22309 6.51981 7.49554 6.51981ZM1.02914 6.51981H3.99405C4.2668 6.51981 4.51339 6.62613 4.68917 6.80343C4.86496 6.98941 4.97948 7.23738 4.97948 7.50302V10.4973C4.97948 10.7629 4.86496 11.0106 4.68917 11.1972C4.51339 11.3739 4.2668 11.4805 3.99405 11.4805H1.02914C0.756388 11.4805 0.510108 11.3739 0.334017 11.1972C0.149307 11.0106 0.0440225 10.7632 0.0440225 10.4973V7.50302C0.0440225 7.23738 0.149615 6.98941 0.334017 6.80343C0.510416 6.62613 0.756696 6.51981 1.02914 6.51981ZM14.05 0H17.0146C17.2873 0 17.5339 0.115307 17.7097 0.292297C17.8947 0.469598 18 0.71757 18 0.992199V3.97748C18 4.25211 17.8944 4.50008 17.7097 4.67738C17.5339 4.85437 17.2873 4.96968 17.0146 4.96968H14.05C13.7769 4.96968 13.5306 4.85437 13.3548 4.67738C13.1788 4.50008 13.0645 4.25211 13.0645 3.97748V0.992199C13.0645 0.71757 13.1788 0.469598 13.3548 0.292297C13.5396 0.115307 13.7772 0 14.05 0ZM7.53956 0H10.5045C10.7772 0 11.0238 0.115307 11.1996 0.292297C11.3754 0.469598 11.4899 0.71757 11.4899 0.992199V3.97748C11.4899 4.25211 11.3754 4.50008 11.1996 4.67738C11.0238 4.85437 10.7772 4.96968 10.5045 4.96968H7.53956C7.2668 4.96968 7.02052 4.85437 6.84443 4.67738C6.66865 4.50008 6.55444 4.25211 6.55444 3.97748V0.992199C6.55444 0.71757 6.66865 0.469598 6.84443 0.292297C7.02052 0.115307 7.2668 0 7.53956 0Z' fill='%239B51E0'/%3e%3c/svg%3e",img$1p="data:image/svg+xml,%3csvg width='22' height='16' viewBox='0 0 22 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.39292 10.0683V12.9306L5.31163 16H16.2827C16.2827 16 16.4193 15.5687 16.5849 15.0293C16.974 13.7727 18.0256 12.9306 19.2055 12.9306V5.57826C18.0214 5.57826 16.9575 4.74693 16.5476 3.49457C16.3986 3.04184 16.2827 2.6954 16.2827 2.6954H7.91984C7.34851 4.42801 5.88296 5.57826 4.24351 5.57826H2.39292V8.44015H1.44484V6.0725C1.44484 5.79927 1.24614 5.57826 1.00602 5.57826H0.438826C0.194565 5.57826 0 5.79927 0 6.0725C0 7.41158 0 11.0973 0 12.4364C0 12.7092 0.194565 12.9306 0.438826 12.9306C0.616846 12.9306 0.823854 12.9306 1.00602 12.9306C1.24614 12.9306 1.44484 12.7092 1.44484 12.4364V10.0683H2.39292ZM20.1536 6.0725C20.1536 5.79927 20.3481 5.57826 20.5924 5.57826C20.8863 5.57826 21.2714 5.57826 21.5612 5.57826C21.8054 5.57826 22 5.79927 22 6.0725C22 7.41158 22 11.0973 22 12.4364C22 12.7092 21.8054 12.9306 21.5612 12.9306C21.2714 12.9306 20.8863 12.9306 20.5924 12.9306C20.3481 12.9306 20.1536 12.7092 20.1536 12.4364C20.1536 11.0973 20.1536 7.41158 20.1536 6.0725ZM7.91984 0.494212C7.91984 0.220987 8.1144 0 8.35866 0C9.80352 0 14.399 0 15.8438 0C16.0881 0 16.2827 0.220987 16.2827 0.494212C16.2827 0.697033 16.2827 0.931092 16.2827 1.13345C16.2827 1.40667 16.0881 1.62816 15.8438 1.62816C14.399 1.62816 9.80352 1.62816 8.35866 1.62816C8.1144 1.62816 7.91984 1.40667 7.91984 1.13345C7.91984 0.931092 7.91984 0.697033 7.91984 0.494212Z' fill='%23EB5757'/%3e%3c/svg%3e",img$1o="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M17.4298 10.98C17.4698 10.66 17.4998 10.34 17.4998 10C17.4998 9.66 17.4698 9.34 17.4298 9.02L19.5398 7.37C19.7298 7.22 19.7798 6.95 19.6598 6.73L17.6598 3.27C17.5698 3.11 17.3998 3.02 17.2198 3.02C17.1598 3.02 17.0998 3.03 17.0498 3.05L14.5598 4.05C14.0398 3.65 13.4798 3.32 12.8698 3.07L12.4898 0.42C12.4598 0.18 12.2498 0 11.9998 0H7.99984C7.74984 0 7.53984 0.18 7.50984 0.42L7.12984 3.07C6.51984 3.32 5.95984 3.66 5.43984 4.05L2.94984 3.05C2.88984 3.03 2.82984 3.02 2.76984 3.02C2.59984 3.02 2.42984 3.11 2.33984 3.27L0.339839 6.73C0.209839 6.95 0.26984 7.22 0.45984 7.37L2.56984 9.02C2.52984 9.34 2.49984 9.67 2.49984 10C2.49984 10.33 2.52984 10.66 2.56984 10.98L0.45984 12.63C0.26984 12.78 0.219839 13.05 0.339839 13.27L2.33984 16.73C2.42984 16.89 2.59984 16.98 2.77984 16.98C2.83984 16.98 2.89984 16.97 2.94984 16.95L5.43984 15.95C5.95984 16.35 6.51984 16.68 7.12984 16.93L7.50984 19.58C7.53984 19.82 7.74984 20 7.99984 20H11.9998C12.2498 20 12.4598 19.82 12.4898 19.58L12.8698 16.93C13.4798 16.68 14.0398 16.34 14.5598 15.95L17.0498 16.95C17.1098 16.97 17.1698 16.98 17.2298 16.98C17.3998 16.98 17.5698 16.89 17.6598 16.73L19.6598 13.27C19.7798 13.05 19.7298 12.78 19.5398 12.63L17.4298 10.98ZM15.4498 9.27C15.4898 9.58 15.4998 9.79 15.4998 10C15.4998 10.21 15.4798 10.43 15.4498 10.73L15.3098 11.86L16.1998 12.56L17.2798 13.4L16.5798 14.61L15.3098 14.1L14.2698 13.68L13.3698 14.36C12.9398 14.68 12.5298 14.92 12.1198 15.09L11.0598 15.52L10.8998 16.65L10.6998 18H9.29984L9.10984 16.65L8.94984 15.52L7.88984 15.09C7.45984 14.91 7.05984 14.68 6.65984 14.38L5.74984 13.68L4.68984 14.11L3.41984 14.62L2.71984 13.41L3.79984 12.57L4.68984 11.87L4.54984 10.74C4.51984 10.43 4.49984 10.2 4.49984 10C4.49984 9.8 4.51984 9.57 4.54984 9.27L4.68984 8.14L3.79984 7.44L2.71984 6.6L3.41984 5.39L4.68984 5.9L5.72984 6.32L6.62984 5.64C7.05984 5.32 7.46984 5.08 7.87984 4.91L8.93984 4.48L9.09984 3.35L9.29984 2H10.6898L10.8798 3.35L11.0398 4.48L12.0998 4.91C12.5298 5.09 12.9298 5.32 13.3298 5.62L14.2398 6.32L15.2998 5.89L16.5698 5.38L17.2698 6.59L16.1998 7.44L15.3098 8.14L15.4498 9.27ZM9.99984 6C7.78984 6 5.99984 7.79 5.99984 10C5.99984 12.21 7.78984 14 9.99984 14C12.2098 14 13.9998 12.21 13.9998 10C13.9998 7.79 12.2098 6 9.99984 6ZM9.99984 12C8.89984 12 7.99984 11.1 7.99984 10C7.99984 8.9 8.89984 8 9.99984 8C11.0998 8 11.9998 8.9 11.9998 10C11.9998 11.1 11.0998 12 9.99984 12Z' fill='%23555F7C'/%3e%3c/svg%3e",img$1n="data:image/svg+xml,%3csvg width='20' height='16' viewBox='0 0 20 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M20 2C20 0.9 19.1 0 18 0H2C0.9 0 0 0.9 0 2V14C0 15.1 0.9 16 2 16H18C19.1 16 20 15.1 20 14V2ZM18 2L10 7L2 2H18ZM18 14H2V4L10 9L18 4V14Z' fill='%23555F7C'/%3e%3c/svg%3e",img$1m="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M15 7V16H10V7H15ZM21 5H18V18H21V5ZM17 5H8V18H17V5ZM7 5H4V18H7V5Z' fill='%23555F7C'/%3e%3c/svg%3e",img$1l="data:image/svg+xml,%3csvg width='22' height='18' viewBox='0 0 22 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M20 0H2C0.9 0 0 0.9 0 2V14C0 15.1 0.9 16 2 16H7V18H15V16H20C21.1 16 22 15.1 22 14V2C22 0.9 21.1 0 20 0ZM20 14H2V2H20V14ZM18 4H7V6H18V4Z' fill='%23555F7C'/%3e%3c/svg%3e",img$1k="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='7.25' fill='white' stroke='%23555F7C' stroke-width='0.5'/%3e%3c/svg%3e",img$1j="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cellipse cx='8' cy='8' rx='7.5' ry='7.5' fill='%231871E8'/%3e%3cpath d='M6.92857 11.3481L4.25 8.19915L5.00536 7.31114L6.92857 9.56581L10.9946 4.78564L11.75 5.67996L6.92857 11.3481Z' fill='white'/%3e%3c/svg%3e",img$1i="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='20' cy='20' r='20' fill='%23F2F5F9'/%3e%3cpath d='M12.3436 13.223H17.0948C17.3837 13.223 17.6405 12.976 17.6405 12.6981V11.5249C17.6405 11.247 17.3837 11 17.0948 11H12.3436C12.0547 11 11.7979 11.247 11.7979 11.5249V12.6981C11.7979 12.976 12.0226 13.223 12.3436 13.223Z' fill='%23555F7C'/%3e%3cpath d='M22.9383 13.223H27.6895C27.9785 13.223 28.2353 12.976 28.2353 12.6981V11.5249C28.2353 11.247 27.9785 11 27.6895 11H22.9383C22.6494 11 22.3926 11.247 22.3926 11.5249V12.6981C22.3926 12.976 22.6494 13.223 22.9383 13.223Z' fill='%23555F7C'/%3e%3cpath d='M29.9679 26.7769L28.2343 14.5503H22.4238L22.1348 16.4954H17.8973L17.6083 14.5503H11.7978L10.0642 26.7769C10.0321 26.8695 10 26.993 10 27.1165C10 28.4133 12.3756 28.9999 14.687 28.9999C17.0305 28.9999 19.374 28.4133 19.374 27.1165C19.374 26.993 19.3419 26.9004 19.3098 26.7769L18.6677 22.2691H21.2681L20.626 26.7769C20.5939 26.8695 20.5618 26.993 20.5618 27.1165C20.5618 28.4133 22.9374 28.9999 25.2488 28.9999C27.5923 28.9999 29.9358 28.4133 29.9358 27.1165C30.0321 26.993 30 26.9004 29.9679 26.7769ZM14.7191 27.7649C12.825 27.7649 11.6693 27.3635 11.3804 27.1165C11.4446 27.0856 11.5088 27.0239 11.6372 26.9621C12.1509 26.746 13.1782 26.4681 14.7191 26.4681C16.26 26.4681 17.3194 26.746 17.801 26.9621C17.8973 27.0239 17.9936 27.0548 18.0578 27.1165C17.7368 27.3635 16.5811 27.7649 14.7191 27.7649ZM25.313 27.7649C23.4189 27.7649 22.2953 27.3635 21.9743 27.1165C22.0385 27.0856 22.1027 27.0239 22.2311 26.9621C22.7448 26.746 23.7721 26.4681 25.313 26.4681C26.8539 26.4681 27.9133 26.746 28.3949 26.9621C28.4912 27.0239 28.5875 27.0548 28.6517 27.1165C28.3628 27.3635 27.2071 27.7649 25.313 27.7649Z' fill='%23555F7C'/%3e%3c/svg%3e",img$1h="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='20' cy='20' r='20' fill='%23F2F5F9'/%3e%3cpath d='M19.012 24.8384C17.8439 24.8465 16.6997 24.51 15.7246 23.8716C14.7494 23.2332 13.9873 22.3216 13.5348 21.2525C13.0823 20.1834 12.9599 19.005 13.183 17.8667C13.4062 16.7284 13.9649 15.6816 14.7883 14.859C15.6116 14.0365 16.6626 13.4752 17.8077 13.2465C18.9529 13.0178 20.1406 13.1319 21.2204 13.5744C22.3001 14.0168 23.2231 14.7677 23.8723 15.7318C24.5215 16.6958 24.8676 17.8296 24.8668 18.9892C24.867 19.3201 24.8393 19.6504 24.7841 19.9767L28.0859 23.2826C28.0964 23.2655 28.1051 23.2474 28.112 23.2286C28.3195 22.6654 28.5255 22.1014 28.7301 21.5367C28.751 21.474 28.7481 21.4058 28.7221 21.345C28.6961 21.2842 28.6486 21.2348 28.5886 21.2061C28.0967 20.8431 27.6092 20.478 27.113 20.1258C27.0419 20.0802 26.9857 20.0151 26.9513 19.9383C26.9169 19.8616 26.9057 19.7765 26.9193 19.6936C26.941 19.5229 26.9475 19.3522 26.9563 19.1815C26.9564 19.1122 26.9771 19.0445 27.0158 18.9869C27.0546 18.9292 27.1095 18.8842 27.1739 18.8574C27.705 18.5938 28.2339 18.3302 28.7606 18.0601C28.8474 18.0018 28.9276 17.9344 29 17.8591V17.6646C28.9347 17.3967 28.8694 17.1309 28.8085 16.8608C28.7388 16.5583 28.6779 16.2558 28.6104 15.9533C28.6054 15.8809 28.5716 15.8134 28.5166 15.7656C28.4615 15.7178 28.3896 15.6936 28.3166 15.6984C27.7028 15.6595 27.089 15.6184 26.4752 15.5838C26.3999 15.5864 26.3253 15.5673 26.2605 15.529C26.1957 15.4907 26.1433 15.4348 26.1096 15.3678C26.0443 15.236 25.9725 15.1063 25.8919 14.9788C25.8508 14.917 25.8288 14.8445 25.8288 14.7703C25.8288 14.6962 25.8508 14.6237 25.8919 14.5618C26.201 14.0475 26.5057 13.529 26.8126 13.0125C26.84 12.9817 26.8605 12.9455 26.8728 12.9063C26.8851 12.867 26.8889 12.8256 26.884 12.7848C26.879 12.744 26.8655 12.7047 26.8442 12.6695C26.8229 12.6343 26.7943 12.6039 26.7604 12.5804L25.5459 11.3401C25.5244 11.3067 25.4959 11.2783 25.4624 11.2569C25.4288 11.2355 25.391 11.2215 25.3515 11.216C25.312 11.2104 25.2718 11.2135 25.2336 11.2248C25.1954 11.2362 25.1601 11.2556 25.1302 11.2818C24.6056 11.5735 24.0789 11.863 23.5565 12.159C23.4898 12.2051 23.4104 12.2298 23.3291 12.2298C23.2478 12.2298 23.1684 12.2051 23.1016 12.159C22.9841 12.0856 22.8622 12.0207 22.7403 11.943C22.6785 11.9086 22.6278 11.8574 22.5942 11.7954C22.5607 11.7333 22.5457 11.6631 22.551 11.5929C22.5336 11.0009 22.5118 10.4045 22.4944 9.80812C22.4944 9.52506 22.4465 9.48401 22.1657 9.41703L20.5856 9.03457C20.5564 9.02523 20.5281 9.01367 20.5007 9H20.3048C20.2341 9.0825 20.1694 9.16987 20.1111 9.26145C19.8354 9.76419 19.5641 10.2684 19.2971 10.774C19.2712 10.8502 19.2196 10.9153 19.151 10.9582C19.0824 11.0011 19.001 11.0192 18.9206 11.0095C18.7679 11.0036 18.6151 11.0101 18.4635 11.029C18.3917 11.0367 18.3192 11.0237 18.2547 10.9915C18.1903 10.9593 18.1365 10.9093 18.1 10.8475C17.7539 10.344 17.4035 9.8427 17.0553 9.33492C17.0384 9.29741 17.0137 9.26387 16.9828 9.2365C16.9519 9.20913 16.9155 9.18855 16.8761 9.1761C16.8366 9.16366 16.795 9.15963 16.7538 9.16428C16.7127 9.16894 16.673 9.18217 16.6374 9.20311L15.0224 9.75194C14.9859 9.7566 14.9509 9.76891 14.9196 9.78806C14.8883 9.80721 14.8614 9.83277 14.8408 9.86302C14.8202 9.89328 14.8064 9.92754 14.8001 9.96352C14.7939 9.99951 14.7955 10.0364 14.8048 10.0717C14.8461 10.6249 14.8788 11.1802 14.9375 11.7312C14.9696 11.8497 14.9593 11.9755 14.9085 12.0874C14.8578 12.1992 14.7696 12.2902 14.6589 12.3449C14.5338 12.4159 14.4151 12.4976 14.3042 12.589C14.2438 12.6376 14.1704 12.6676 14.093 12.6753C14.0157 12.683 13.9378 12.668 13.8689 12.6322C13.3095 12.3989 12.7501 12.1677 12.1908 11.9365C12.1561 11.9117 12.1164 11.8947 12.0745 11.8868C12.0325 11.8788 11.9893 11.88 11.9479 11.8902C11.9064 11.9005 11.8678 11.9197 11.8345 11.9463C11.8013 11.9729 11.7743 12.0065 11.7555 12.0445L10.7412 13.3086C10.7082 13.3342 10.6815 13.367 10.6631 13.4045C10.6447 13.4419 10.6352 13.483 10.6352 13.5246C10.6352 13.5663 10.6447 13.6074 10.6631 13.6448C10.6815 13.6822 10.7082 13.715 10.7412 13.7407C11.096 14.2096 11.4486 14.6806 11.8077 15.1452C11.8605 15.2028 11.8946 15.2748 11.9054 15.3519C11.9163 15.429 11.9035 15.5076 11.8686 15.5774C11.7685 15.7934 11.6793 16.0095 11.5901 16.2429C11.5673 16.3059 11.5274 16.3615 11.4748 16.4035C11.4221 16.4454 11.3588 16.4721 11.2919 16.4806C10.6912 16.5864 10.0904 16.6966 9.48972 16.8068C9.44611 16.8055 9.4027 16.8133 9.36235 16.8297C9.322 16.8462 9.28562 16.871 9.2556 16.9024C9.22558 16.9338 9.20261 16.9712 9.18819 17.0121C9.17377 17.053 9.16824 17.0964 9.17194 17.1396C9.12188 17.5717 9.074 18.0039 9.02394 18.4209C9.01801 18.4573 9.01002 18.4934 9 18.529V18.9741L10.0687 19.3544C10.3516 19.4559 10.6324 19.5704 10.9153 19.6612C10.9851 19.6827 11.0471 19.7241 11.0935 19.7801C11.1399 19.8362 11.1688 19.9045 11.1765 19.9767C11.2222 20.2489 11.2745 20.5233 11.3267 20.7956C11.3437 20.8702 11.3392 20.948 11.3138 21.0202C11.2884 21.0924 11.2431 21.1561 11.183 21.204C10.7412 21.608 10.3059 22.0207 9.87061 22.4313C9.8365 22.4522 9.80727 22.4801 9.78484 22.5131C9.76241 22.5461 9.7473 22.5834 9.74051 22.6227C9.73372 22.6619 9.7354 22.7021 9.74545 22.7406C9.75549 22.7792 9.77367 22.8151 9.79878 22.8462L10.5018 24.2139C10.5117 24.2512 10.5296 24.2858 10.5543 24.3155C10.579 24.3452 10.61 24.3692 10.645 24.3858C10.6799 24.4025 10.7182 24.4114 10.7569 24.4119C10.7957 24.4125 10.8342 24.4046 10.8696 24.3889C11.466 24.2571 12.0602 24.1253 12.6544 23.9892C12.717 23.9716 12.7834 23.972 12.8458 23.9903C12.9082 24.0087 12.9641 24.0443 13.007 24.0929L13.6599 24.7736C13.7087 24.8199 13.7434 24.8788 13.7604 24.9437C13.7773 25.0086 13.7757 25.0769 13.7557 25.1409C13.599 25.7394 13.4488 26.3401 13.2986 26.9408C13.2849 26.9729 13.2779 27.0075 13.278 27.0424C13.278 27.0772 13.2852 27.1118 13.299 27.1438C13.3128 27.1759 13.333 27.2049 13.3584 27.229C13.3837 27.2532 13.4138 27.272 13.4466 27.2844L14.8113 28.0557C14.8393 28.0789 14.8719 28.0959 14.907 28.1057C14.9421 28.1156 14.9788 28.1181 15.0149 28.113C15.051 28.1079 15.0856 28.0954 15.1165 28.0762C15.1474 28.057 15.1739 28.0317 15.1944 28.0017C15.6297 27.5696 16.0476 27.1374 16.4698 26.7053C16.5189 26.6473 16.5839 26.6046 16.6568 26.5823C16.7298 26.5601 16.8077 26.5593 16.8812 26.5799C17.1685 26.6491 17.4579 26.7139 17.7518 26.7744C17.8229 26.7862 17.8892 26.8182 17.9424 26.8665C17.9957 26.9148 18.0338 26.9774 18.0521 27.0467C18.235 27.6041 18.4243 28.1595 18.605 28.7169C18.6341 28.8333 18.7064 28.9344 18.8074 29H19.5017L20.2286 28.9157L20.5029 28.879C20.5426 28.8822 20.5827 28.8775 20.6205 28.865C20.6584 28.8525 20.6933 28.8325 20.7232 28.8062C20.753 28.78 20.7773 28.748 20.7944 28.7123C20.8115 28.6765 20.8212 28.6377 20.8228 28.5981C20.9469 28.0147 21.0731 27.4291 21.1885 26.8414C21.1999 26.7626 21.2338 26.6888 21.2863 26.6286C21.3388 26.5685 21.4076 26.5246 21.4845 26.5022C21.5977 26.4633 21.7021 26.4222 21.8219 26.379L20.1764 24.7325C19.7928 24.8064 19.4027 24.8419 19.012 24.8384Z' fill='%23555F7C'/%3e%3cpath d='M30.5612 28.5288C29.829 27.8007 29.0969 27.0747 28.3647 26.3509L28.1122 26.1005C27.3346 25.3277 26.5593 24.5506 25.7773 23.7779C24.9273 22.9382 24.0729 22.1029 23.2251 21.261C23.0157 21.0636 22.8549 20.8216 22.7552 20.5538C22.6555 20.2859 22.6193 19.9992 22.6496 19.7155C22.6496 19.6378 22.6547 19.5608 22.665 19.4846C22.6769 19.2562 22.6681 19.0272 22.6386 18.8003C22.3794 16.8835 20.3126 15.5625 18.4434 16.1345C18.2084 16.2057 18.193 16.2575 18.3666 16.4281C18.7927 16.8511 19.221 17.2735 19.6515 17.6951C19.762 17.7908 19.8508 17.9083 19.9121 18.0399C19.9734 18.1715 20.0058 18.3144 20.0072 18.4591C20.0087 18.6039 19.9791 18.7473 19.9205 18.8801C19.8618 19.0129 19.7754 19.132 19.6668 19.2298C19.5021 19.3961 19.3374 19.5579 19.1726 19.7242C18.6631 20.2336 18.0481 20.2314 17.5385 19.7242C17.1402 19.3255 16.739 18.9298 16.3348 18.537C16.1855 18.3923 16.1394 18.4053 16.0801 18.6017C16.021 18.8353 15.9944 19.0756 16.001 19.3162C15.9894 19.9078 16.1429 20.4911 16.445 21.003C16.747 21.5148 17.186 21.9355 17.7142 22.2194C18.2572 22.5124 18.8726 22.6507 19.4911 22.6188H19.6361C19.8941 22.607 20.1517 22.6501 20.3913 22.7451C20.6308 22.8401 20.8467 22.9848 21.0242 23.1692L22.5815 24.7061L26.3045 28.3864L28.5009 30.5579C28.6326 30.6961 28.7916 30.8066 28.9681 30.8826C29.1446 30.9586 29.335 30.9985 29.5278 31C29.7205 31.0014 29.9115 30.9643 30.0891 30.8908C30.2668 30.8174 30.4274 30.7093 30.5612 30.573C30.7001 30.44 30.8104 30.2811 30.8858 30.1056C30.9612 29.93 31 29.7414 31 29.5509C31 29.3604 30.9612 29.1718 30.8858 28.9963C30.8104 28.8207 30.7001 28.6618 30.5612 28.5288Z' fill='%23555F7C'/%3e%3c/svg%3e",img$1g="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='20' cy='20' r='20' fill='%23F2F5F9'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M28.3216 21.8098V24.3143L25.4454 27H14.6341C14.6341 27 14.4995 26.6226 14.3363 26.1506C13.9528 25.0511 12.9165 24.3143 11.7538 24.3143V17.881C12.9206 17.881 13.9691 17.1536 14.373 16.0577C14.5198 15.6616 14.6341 15.3585 14.6341 15.3585H22.8752C23.4382 16.8745 24.8824 17.881 26.498 17.881H28.3216V20.3851H29.2559V18.3134C29.2559 18.0744 29.4517 17.881 29.6883 17.881H30.2472C30.4879 17.881 30.6797 18.0744 30.6797 18.3134C30.6797 19.4851 30.6797 22.7102 30.6797 23.8819C30.6797 24.1205 30.4879 24.3143 30.2472 24.3143C30.0718 24.3143 29.8678 24.3143 29.6883 24.3143C29.4517 24.3143 29.2559 24.1205 29.2559 23.8819V21.8098H28.3216ZM10.8195 18.3134C10.8195 18.0744 10.6278 17.881 10.3871 17.881C10.0974 17.881 9.71802 17.881 9.43244 17.881C9.19173 17.881 9 18.0744 9 18.3134C9 19.4851 9 22.7102 9 23.8819C9 24.1205 9.19173 24.3143 9.43244 24.3143C9.71802 24.3143 10.0974 24.3143 10.3871 24.3143C10.6278 24.3143 10.8195 24.1205 10.8195 23.8819C10.8195 22.7102 10.8195 19.4851 10.8195 18.3134ZM22.8752 13.4324C22.8752 13.1934 22.6834 13 22.4427 13C21.0189 13 16.4904 13 15.0665 13C14.8258 13 14.6341 13.1934 14.6341 13.4324C14.6341 13.6099 14.6341 13.8147 14.6341 13.9918C14.6341 14.2308 14.8258 14.4246 15.0665 14.4246C16.4904 14.4246 21.0189 14.4246 22.4427 14.4246C22.6834 14.4246 22.8752 14.2308 22.8752 13.9918C22.8752 13.8147 22.8752 13.6099 22.8752 13.4324Z' fill='%23555F7C'/%3e%3c/svg%3e",img$1f="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='20' cy='20' r='20' fill='%23FFBB0A'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M22.196 7.80975C21.6328 7.30933 20.8631 7 20.0136 7C19.1638 7 18.3944 7.30933 17.8315 7.80975H22.196ZM23.3012 9.54633C23.3012 9.28856 23.073 9.07959 22.793 9.07959H17.2336C16.9539 9.07959 16.7263 9.2889 16.7263 9.54633C16.7263 9.80376 16.9539 10.0127 17.2336 10.0127H22.793C23.073 10.0131 23.3012 9.80376 23.3012 9.54633ZM16.7263 12.1562C16.7263 11.8988 16.9539 11.6895 17.2336 11.6895H22.793C23.073 11.6895 23.3012 11.8988 23.3012 12.1562C23.3012 12.4136 23.0733 12.6229 22.793 12.6229H17.2336C16.9539 12.6229 16.7263 12.414 16.7263 12.1562ZM17.2842 13.8926H22.743C22.8768 15.5313 23.4332 16.2969 24.0117 17.0927C24.739 18.0934 25.501 19.1419 25.5012 22.0341C25.5012 25.0029 22.9473 27.7024 20.0182 27.7024C20.0169 27.7024 20.0153 27.702 20.0138 27.702L20.0117 27.7022L20.0094 27.7024C17.0799 27.7024 14.5267 25.0029 14.5267 22.0341C14.5267 19.1418 15.2886 18.0934 16.0158 17.0926C16.5941 16.2968 17.1504 15.5312 17.2842 13.8926ZM17.2336 11.2162C16.9539 11.2162 16.7263 11.0069 16.7263 10.7491C16.7263 10.492 16.9539 10.2827 17.2336 10.2827H22.793C23.073 10.2827 23.3012 10.492 23.3012 10.7491C23.3012 11.0069 23.0733 11.2162 22.793 11.2162H17.2336ZM8 19.97C8 19.6359 8.24797 19.3647 8.55377 19.3647H12.6879C12.6049 19.7263 12.5386 20.1284 12.4924 20.5756H8.55377C8.24797 20.5756 8 20.3041 8 19.97ZM11.222 27.6208C11.0058 27.8573 11.0058 28.2405 11.222 28.4766C11.3298 28.5952 11.4715 28.6546 11.6133 28.6546C11.755 28.6546 11.8968 28.5952 12.0049 28.4766L13.9563 26.3426C13.7099 26.0326 13.4895 25.7009 13.2959 25.3521L11.222 27.6208ZM28.387 28.6545C28.2449 28.6545 28.1035 28.595 27.9947 28.4765L26.0581 26.3579C26.3051 26.0493 26.5264 25.7176 26.7206 25.3701L28.7782 27.6207C28.9945 27.8568 28.9945 28.24 28.7782 28.4765C28.6698 28.595 28.5281 28.6545 28.387 28.6545ZM31.4462 20.5756C31.752 20.5756 31.9999 20.3041 31.9999 19.97C31.9999 19.6356 31.752 19.3647 31.4462 19.3647H27.3391C27.4227 19.7267 27.489 20.1288 27.5349 20.5756H31.4462ZM20.018 29.9133H20.0525H20.062C20.227 29.9123 20.3904 29.9013 20.5538 29.8862V32.3945C20.5538 32.7289 20.3059 33.0001 20.0001 33.0001C19.6943 33.0001 19.4463 32.7289 19.4463 32.3945V29.8838C19.6185 29.9006 19.7914 29.9123 19.9661 29.9133H20.018Z' fill='white'/%3e%3c/svg%3e",img$1e="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='20' cy='20' r='20' fill='%231E53A3'/%3e%3cpath d='M19.8678 8C19.5887 8 19.3623 8.24379 19.3623 8.54455V12.5337H20.3732V8.54455C20.3732 8.24379 20.1469 8 19.8678 8Z' fill='white'/%3e%3cpath d='M23.1733 19.5016C23.7696 19.5016 24.2548 18.979 24.2548 18.3365C24.2548 17.694 23.7696 17.1714 23.1733 17.1714C22.577 17.1714 22.0918 17.694 22.0918 18.3365C22.0918 18.979 22.5769 19.5016 23.1733 19.5016Z' fill='white'/%3e%3cpath d='M23.3567 27.5781H16.3779V29.9993H23.3567V27.5781Z' fill='white'/%3e%3cpath d='M22.1928 24.1611H17.5419C16.9001 24.1611 16.3779 24.7237 16.3779 25.4151V26.4892H23.3567V25.4151C23.3567 24.7237 22.8345 24.1611 22.1928 24.1611Z' fill='white'/%3e%3cpath d='M16.8256 19.5016C17.422 19.5016 17.9071 18.979 17.9071 18.3365C17.9071 17.694 17.422 17.1714 16.8256 17.1714C16.2293 17.1714 15.7441 17.694 15.7441 18.3365C15.7441 18.979 16.2293 19.5016 16.8256 19.5016Z' fill='white'/%3e%3cpath d='M9 18.6357V24.8452C9 25.5366 9.52215 26.0991 10.1639 26.0991H11.4274V16.7822H10.7205C9.77174 16.7822 9 17.6137 9 18.6357Z' fill='white'/%3e%3cpath d='M31.0006 24.8452V18.6357C31.0006 17.6137 30.2288 16.7822 29.2801 16.7822H28.3086V26.0991H29.8366C30.4784 26.0991 31.0006 25.5366 31.0006 24.8452Z' fill='white'/%3e%3cpath d='M12.4385 14.9321V28.7461C12.4385 29.4376 12.9606 30.0001 13.6024 30.0001H15.3674V25.4157C15.3674 24.1237 16.343 23.0727 17.5423 23.0727H22.1932C23.3924 23.0727 24.368 24.1237 24.368 25.4157V30.0001H26.133C26.7748 30.0001 27.2969 29.4376 27.2969 28.7461V14.9321C27.2969 13.9101 26.5251 13.0786 25.5765 13.0786H14.1589C13.2103 13.0787 12.4385 13.9101 12.4385 14.9321ZM23.1739 16.0831C24.3276 16.0831 25.2663 17.0943 25.2663 18.3373C25.2663 19.5803 24.3276 20.5915 23.1739 20.5915C22.0201 20.5915 21.0814 19.5803 21.0814 18.3373C21.0814 17.0943 22.0201 16.0831 23.1739 16.0831ZM16.8261 16.0831C17.9798 16.0831 18.9185 17.0943 18.9185 18.3373C18.9185 19.5803 17.9799 20.5915 16.8261 20.5915C15.6723 20.5915 14.7337 19.5803 14.7337 18.3373C14.7337 17.0943 15.6723 16.0831 16.8261 16.0831Z' fill='white'/%3e%3c/svg%3e",img$1d="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='20' cy='20' r='20' fill='%23A21E1E'/%3e %3cpath d='M19.7977 15.8317C21.132 15.8317 22.2136 14.7501 22.2136 13.4159C22.2136 12.0816 21.132 11 19.7977 11C18.4635 11 17.3818 12.0816 17.3818 13.4159C17.3818 14.7501 18.4635 15.8317 19.7977 15.8317Z' fill='white'/%3e %3cpath d='M16.5816 17.7526C17.2612 16.5755 16.8579 15.0705 15.6809 14.391C14.5039 13.7114 12.9988 14.1147 12.3193 15.2917C11.6398 16.4687 12.043 17.9737 13.22 18.6533C14.397 19.3328 15.9021 18.9296 16.5816 17.7526Z' fill='white'/%3e %3cpath d='M10.4928 25.408C9.81329 24.231 8.30825 23.8277 7.13124 24.5072C5.95423 25.1868 5.55096 26.6918 6.2305 27.8688C6.91005 29.0458 8.41509 29.4491 9.5921 28.7696C10.7691 28.09 11.1724 26.585 10.4928 25.408Z' fill='white'/%3e %3cpath d='M19.7977 28.2229C21.132 28.2229 22.2136 27.1412 22.2136 25.807C22.2136 24.4727 21.132 23.3911 19.7977 23.3911C18.4635 23.3911 17.3818 24.4727 17.3818 25.807C17.3818 27.1412 18.4635 28.2229 19.7977 28.2229Z' fill='white'/%3e %3cpath d='M23.0131 21.4657C22.3335 22.6427 22.7368 24.1478 23.9138 24.8273C25.0908 25.5069 26.5959 25.1036 27.2754 23.9266C27.955 22.7496 27.5517 21.2445 26.3747 20.565C25.1977 19.8854 23.6926 20.2887 23.0131 21.4657Z' fill='white'/%3e %3cpath d='M23.013 17.7527C23.6926 18.9297 25.1976 19.333 26.3746 18.6534C27.5516 17.9739 27.9549 16.4688 27.2754 15.2918C26.5958 14.1148 25.0908 13.7115 23.9138 14.3911C22.7367 15.0706 22.3335 16.5757 23.013 17.7527Z' fill='white'/%3e %3cpath d='M19.7977 21.9885C21.132 21.9885 22.2136 20.9069 22.2136 19.5726C22.2136 18.2384 21.132 17.1567 19.7977 17.1567C18.4635 17.1567 17.3818 18.2384 17.3818 19.5726C17.3818 20.9069 18.4635 21.9885 19.7977 21.9885Z' fill='white'/%3e%3c/svg%3e",img$1c="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' %3e %3cpath d='M12 6V9L16 5L12 1V4C7.58 4 4 7.58 4 12C4 13.57 4.46 15.03 5.24 16.26L6.7 14.8C6.25 13.97 6 13.01 6 12C6 8.69 8.69 6 12 6ZM18.76 7.74L17.3 9.2C17.74 10.04 18 10.99 18 12C18 15.31 15.31 18 12 18V15L8 19L12 23V20C16.42 20 20 16.42 20 12C20 10.43 19.54 8.97 18.76 7.74V7.74Z' /%3e%3c/svg%3e",img$1b="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' %3e %3cpath d='M12 6.5C15.79 6.5 19.17 8.63 20.82 12C19.17 15.37 15.8 17.5 12 17.5C8.2 17.5 4.83 15.37 3.18 12C4.83 8.63 8.21 6.5 12 6.5ZM12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 9.5C13.38 9.5 14.5 10.62 14.5 12C14.5 13.38 13.38 14.5 12 14.5C10.62 14.5 9.5 13.38 9.5 12C9.5 10.62 10.62 9.5 12 9.5ZM12 7.5C9.52 7.5 7.5 9.52 7.5 12C7.5 14.48 9.52 16.5 12 16.5C14.48 16.5 16.5 14.48 16.5 12C16.5 9.52 14.48 7.5 12 7.5Z' /%3e%3c/svg%3e",img$1a="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M18 16.08C17.24 16.08 16.56 16.38 16.04 16.85L8.91 12.7C8.96 12.47 9 12.24 9 12C9 11.76 8.96 11.53 8.91 11.3L15.96 7.19C16.5 7.69 17.21 8 18 8C19.66 8 21 6.66 21 5C21 3.34 19.66 2 18 2C16.34 2 15 3.34 15 5C15 5.24 15.04 5.47 15.09 5.7L8.04 9.81C7.5 9.31 6.79 9 6 9C4.34 9 3 10.34 3 12C3 13.66 4.34 15 6 15C6.79 15 7.5 14.69 8.04 14.19L15.16 18.35C15.11 18.56 15.08 18.78 15.08 19C15.08 20.61 16.39 21.92 18 21.92C19.61 21.92 20.92 20.61 20.92 19C20.92 17.39 19.61 16.08 18 16.08ZM18 4C18.55 4 19 4.45 19 5C19 5.55 18.55 6 18 6C17.45 6 17 5.55 17 5C17 4.45 17.45 4 18 4ZM6 13C5.45 13 5 12.55 5 12C5 11.45 5.45 11 6 11C6.55 11 7 11.45 7 12C7 12.55 6.55 13 6 13ZM18 20.02C17.45 20.02 17 19.57 17 19.02C17 18.47 17.45 18.02 18 18.02C18.55 18.02 19 18.47 19 19.02C19 19.57 18.55 20.02 18 20.02Z' /%3e%3c/svg%3e",img$19="data:image/svg+xml,%3csvg width='28' height='24' viewBox='0 0 28 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath opacity='0.36' d='M15.9526 0.125092L19.5694 6.33421L23.1961 0.125092H15.9526Z' fill='%231871E8'/%3e%3cpath opacity='0.9' d='M23.1955 0.125092L9.27832 23.9521H18.6074L27.1361 9.28837L23.1955 0.125092Z' fill='%231871E8'/%3e%3cpath opacity='0.36' d='M4.69203 0.125L0.75 9.29182L9.2818 23.961L13.9506 15.9762L4.69203 0.125Z' fill='%231871E8'/%3e%3c/svg%3e",img$18="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M20.0013 30C21.1614 30 22.1107 29.0769 22.1107 27.9487H17.8919C17.8919 29.0769 18.8306 30 20.0013 30ZM26.3294 23.8462V18.7179C26.3294 15.5692 24.5997 12.9333 21.5833 12.2359V11.5385C21.5833 10.6872 20.8767 10 20.0013 10C19.1259 10 18.4193 10.6872 18.4193 11.5385V12.2359C15.3924 12.9333 13.6732 15.559 13.6732 18.7179V23.8462L12.3127 25.1692C11.6482 25.8154 12.1123 26.9231 13.051 26.9231H26.9411C27.8798 26.9231 28.3544 25.8154 27.6899 25.1692L26.3294 23.8462Z' fill='%231871E8'/%3e%3c/svg%3e",img$17="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M19.9937 30C25.47 30 30 25.47 30 20.0063C30 14.53 25.4574 10 19.9937 10C14.5173 10 10 14.53 10 20.0063C10 25.47 14.53 30 19.9937 30ZM19.8296 22.1262C19.3628 22.1262 19.0978 21.8738 19.0978 21.4069V21.2177C19.0978 20.2334 19.6152 19.6782 20.3849 19.1609C21.3186 18.5047 21.735 18.1388 21.735 17.4196C21.735 16.612 21.0915 16.0442 20.0694 16.0442C19.2871 16.0442 18.7066 16.4858 18.4417 17.1293C18.164 17.4827 18.0631 17.7603 17.5458 17.7603C17.2303 17.7603 16.9148 17.5331 16.9148 17.1167C16.9148 16.9527 16.9401 16.8013 16.9779 16.6372C17.2303 15.653 18.3785 14.795 20.1325 14.795C21.8612 14.795 23.3249 15.7161 23.3249 17.3565C23.3249 18.5426 22.6561 19.1357 21.6467 19.8296C20.9022 20.3344 20.5615 20.7003 20.5615 21.2934V21.47C20.5615 21.836 20.2965 22.1262 19.8296 22.1262ZM19.8675 25.0536C19.3249 25.0536 18.8328 24.612 18.8328 24.0442C18.8328 23.4764 19.3249 23.0473 19.8675 23.0473C20.4101 23.0473 20.9022 23.4637 20.9022 24.0442C20.9022 24.6246 20.4101 25.0536 19.8675 25.0536Z' fill='%231871E8'/%3e%3c/svg%3e",img$16="data:image/svg+xml,%3csvg width='14' height='12' viewBox='0 0 14 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.6 1.33333H10.381L9.1 0H4.9L3.619 1.33333H1.4C0.63 1.33333 0 1.93333 0 2.66667V10.6667C0 11.4 0.63 12 1.4 12H12.6C13.37 12 14 11.4 14 10.6667V2.66667C14 1.93333 13.37 1.33333 12.6 1.33333ZM12.6 10.6667H1.4V2.66667H4.235L5.516 1.33333H8.484L9.765 2.66667H12.6V10.6667ZM7 3.33333C5.068 3.33333 3.5 4.82667 3.5 6.66667C3.5 8.50667 5.068 10 7 10C8.932 10 10.5 8.50667 10.5 6.66667C10.5 4.82667 8.932 3.33333 7 3.33333ZM7 8.66667C5.845 8.66667 4.9 7.76667 4.9 6.66667C4.9 5.56667 5.845 4.66667 7 4.66667C8.155 4.66667 9.1 5.56667 9.1 6.66667C9.1 7.76667 8.155 8.66667 7 8.66667Z' fill='%23555F7C'/%3e%3c/svg%3e",img$13="data:image/svg+xml,%3csvg width='19' height='18' viewBox='0 0 19 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0 14.25V18H3.75L14.81 6.94L11.06 3.19L0 14.25ZM2.92 16H2V15.08L11.06 6.02L11.98 6.94L2.92 16ZM17.71 2.63L15.37 0.29C15.17 0.09 14.92 0 14.66 0C14.4 0 14.15 0.1 13.96 0.29L12.13 2.12L15.88 5.87L17.71 4.04C18.1 3.65 18.1 3.02 17.71 2.63Z' fill='%23555F7C'/%3e%3c/svg%3e",img$12="data:image/svg+xml,%3csvg width='16' height='19' viewBox='0 0 16 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3.11007 7.53L1.70007 6.11C0.800068 7.27 0.240068 8.61 0.0700684 10H2.09007C2.23007 9.13 2.58007 8.28 3.11007 7.53ZM2.09007 12H0.0700684C0.240068 13.39 0.790068 14.73 1.69007 15.89L3.10007 14.47C2.58007 13.72 2.23007 12.88 2.09007 12ZM3.10007 17.32C4.26007 18.22 5.61007 18.76 7.00007 18.93V16.9C6.13007 16.75 5.29007 16.41 4.54007 15.87L3.10007 17.32ZM9.00007 3.07V0L4.45007 4.55L9.00007 9V5.09C11.8401 5.57 14.0001 8.03 14.0001 11C14.0001 13.97 11.8401 16.43 9.00007 16.91V18.93C12.9501 18.44 16.0001 15.08 16.0001 11C16.0001 6.92 12.9501 3.56 9.00007 3.07Z' fill='%23555F7C'/%3e%3c/svg%3e",img$_="data:image/svg+xml,%3csvg width='21' height='20' viewBox='0 0 27 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.03768 0H6.33277C6.71385 0 7.07004 0.166555 7.33684 0.422207C7.59075 0.678308 7.74371 1.03649 7.74371 1.43318V5.74524C7.74371 6.14193 7.59075 6.50011 7.33684 6.75621C7.07004 7.01187 6.7143 7.17842 6.33277 7.17842H2.03768C1.65659 7.17842 1.30086 7.01187 1.03361 6.75621C0.779699 6.50011 0.627176 6.14193 0.627176 5.74524V1.43318C0.627176 1.03649 0.779699 0.678308 1.03361 0.422207C1.30041 0.166555 1.65615 0 2.03768 0ZM20.6797 18.8225H24.9623C25.3563 18.8225 25.7125 18.9886 25.9664 19.2438C26.2203 19.4999 26.3853 19.8585 26.3853 20.2548V24.5668C26.3853 24.964 26.2203 25.3226 25.9664 25.5778C25.7125 25.8339 25.3563 26 24.9623 26H20.6797C20.2857 26 19.93 25.8339 19.6756 25.5778C19.4088 25.3226 19.2567 24.964 19.2567 24.5668V20.2548C19.2567 19.8585 19.4093 19.4999 19.6756 19.2438C19.9304 18.9886 20.2861 18.8225 20.6797 18.8225ZM11.2637 18.8225H15.5588C15.9399 18.8225 16.2957 18.9886 16.5629 19.2438C16.8168 19.4999 16.9693 19.8585 16.9693 20.2548V24.5668C16.9693 24.964 16.8168 25.3226 16.5629 25.5778C16.2957 25.8339 15.9404 26 15.5588 26H11.2637C10.8827 26 10.5265 25.8339 10.2597 25.5778C10.0053 25.3226 9.8528 24.964 9.8528 24.5668V20.2548C9.8528 19.8585 10.0053 19.4999 10.2597 19.2438C10.5265 18.9886 10.8822 18.8225 11.2637 18.8225ZM1.9234 18.8225H6.20604C6.60002 18.8225 6.95575 18.9886 7.21011 19.2438C7.46402 19.4999 7.62899 19.8585 7.62899 20.2548V24.5668C7.62899 24.964 7.46402 25.3226 7.21011 25.5778C6.95575 25.8339 6.60002 26 6.20604 26H1.9234C1.52942 26 1.17323 25.8339 0.919326 25.5778C0.665418 25.3226 0.5 24.964 0.5 24.5668V20.2548C0.5 19.8585 0.665418 19.4999 0.919326 19.2438C1.17323 18.9886 1.52942 18.8225 1.9234 18.8225ZM20.7308 9.41751H25.0259C25.407 9.41751 25.7632 9.57108 26.03 9.82718C26.2839 10.0958 26.4369 10.454 26.4369 10.8377V15.1628C26.4369 15.5465 26.2839 15.9042 26.03 16.1737C25.7632 16.4289 25.4074 16.5829 25.0259 16.5829H20.7308C20.3497 16.5829 19.994 16.4289 19.7267 16.1737C19.4728 15.9042 19.3203 15.5469 19.3203 15.1628V10.8377C19.3203 10.454 19.4728 10.0958 19.7267 9.82718C19.994 9.57108 20.3493 9.41751 20.7308 9.41751ZM11.3269 9.41751H15.6095C16.0035 9.41751 16.3597 9.57108 16.6136 9.82718C16.8804 10.0958 17.0325 10.454 17.0325 10.8377V15.1628C17.0325 15.5465 16.88 15.9042 16.6136 16.1737C16.3597 16.4289 16.0035 16.5829 15.6095 16.5829H11.3269C10.9329 16.5829 10.5767 16.4289 10.3228 16.1737C10.0689 15.9042 9.90349 15.5469 9.90349 15.1628V10.8377C9.90349 10.454 10.0689 10.0958 10.3228 9.82718C10.5772 9.57108 10.9334 9.41751 11.3269 9.41751ZM1.98654 9.41751H6.26918C6.66316 9.41751 7.01934 9.57108 7.27325 9.82718C7.52716 10.0958 7.69258 10.454 7.69258 10.8377V15.1628C7.69258 15.5465 7.52716 15.9042 7.27325 16.1737C7.01934 16.4289 6.66316 16.5829 6.26918 16.5829H1.98654C1.59256 16.5829 1.23682 16.4289 0.98247 16.1737C0.715666 15.9042 0.563588 15.5469 0.563588 15.1628V10.8377C0.563588 10.454 0.716111 10.0958 0.98247 9.82718C1.23727 9.57108 1.593 9.41751 1.98654 9.41751ZM20.7944 0H25.0766C25.4706 0 25.8268 0.166555 26.0807 0.422207C26.3479 0.678308 26.5 1.03649 26.5 1.43318V5.74524C26.5 6.14193 26.3475 6.50011 26.0807 6.75621C25.8268 7.01187 25.4706 7.17842 25.0766 7.17842H20.7944C20.4 7.17842 20.0442 7.01187 19.7903 6.75621C19.536 6.50011 19.371 6.14193 19.371 5.74524V1.43318C19.371 1.03649 19.536 0.678308 19.7903 0.422207C20.0571 0.166555 20.4004 0 20.7944 0ZM11.3905 0H15.6731C16.0671 0 16.4233 0.166555 16.6772 0.422207C16.9311 0.678308 17.0965 1.03649 17.0965 1.43318V5.74524C17.0965 6.14193 16.9311 6.50011 16.6772 6.75621C16.4233 7.01187 16.0671 7.17842 15.6731 7.17842H11.3905C10.9965 7.17842 10.6408 7.01187 10.3864 6.75621C10.1325 6.50011 9.96752 6.14193 9.96752 5.74524V1.43318C9.96752 1.03649 10.1325 0.678308 10.3864 0.422207C10.6408 0.166555 10.9965 0 11.3905 0Z' fill='%23555F7C'/%3e%3c/svg%3e",img$V="data:image/svg+xml,%3csvg width='30' height='24' viewBox='0 0 30 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.89984 17.9131C3.19783 17.9131 1 15.8699 1 13.3593C1 11.0619 2.83988 9.15717 5.22364 8.84904C5.55861 4.46881 9.5023 1 14.2998 1C17.9816 1 21.2874 3.07115 22.6927 6.20387C26.1733 6.20387 29 8.83083 29 12.0585C29 15.2861 27.1057 17.9131 23.6328 17.9131' stroke='%2393930C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M20.0526 18.1812C20.0526 20.8188 17.7533 22.9652 14.9278 22.9652C13.004 22.9652 11.238 21.946 10.3652 20.3559H12.8316C12.9599 20.3559 13.0645 20.2583 13.0645 20.1385C13.0645 20.0182 12.9599 19.9206 12.8316 19.9206H9.8029C9.67464 19.9206 9.57007 20.0182 9.57007 20.1385V22.9652C9.57007 23.0849 9.67464 23.1826 9.8029 23.1826C9.93181 23.1826 10.0364 23.0849 10.0364 22.9652V20.7089C11.0151 22.3556 12.8915 23.3999 14.9278 23.3999C18.0104 23.3999 20.5183 21.0589 20.5183 18.1812C20.5183 18.0609 20.4143 17.9639 20.2854 17.9639C20.1565 17.9639 20.0526 18.0609 20.0526 18.1812Z' fill='%2393930C' stroke='%2393930C' stroke-width='0.6'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.57047 18.3989C9.69873 18.3989 9.8033 18.3019 9.8033 18.1816C9.8033 15.544 12.1026 13.3976 14.9282 13.3976C16.8513 13.3976 18.6186 14.4168 19.49 16.0069H17.0243C16.896 16.0069 16.7914 16.1045 16.7914 16.2243C16.7914 16.3446 16.896 16.4422 17.0243 16.4422H20.053C20.1813 16.4422 20.2852 16.3446 20.2852 16.2243V13.3976C20.2852 13.2779 20.1813 13.1802 20.053 13.1802C19.9234 13.1802 19.8195 13.2779 19.8195 13.3976V15.6539C18.8409 14.0073 16.9638 12.9629 14.9282 12.9629C11.8455 12.9629 9.33765 15.3039 9.33765 18.1816C9.33765 18.3019 9.44156 18.3989 9.57047 18.3989Z' fill='%2393930C' stroke='%2393930C' stroke-width='0.6'/%3e%3c/svg%3e",img$U="data:image/svg+xml,%3csvg width='30' height='28' viewBox='0 0 30 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M25.6629 11.3035C25.5391 10.8067 25.2913 10.4348 25.1674 10.0614C25.4167 9.68808 26.6554 8.1976 26.9047 7.82574C27.0286 7.70229 27.1539 7.45237 27.1539 7.0805C27.1539 6.58368 26.9047 5.96189 23.6825 2.98095C23.187 2.60758 22.4422 2.60758 22.0706 2.98095L19.7155 4.72134C19.3439 4.59789 18.9707 4.34797 18.5991 4.22451L18.1036 1.11861C17.9798 0.496825 17.4828 0 16.8634 0H12.771C12.1502 0 11.6547 0.373371 11.5308 0.995155C11.2815 2.11376 11.1592 3.23087 11.0353 4.22602C10.6637 4.34947 10.2905 4.59939 9.91893 4.72284L7.68619 2.859C7.43693 2.73555 7.19069 2.61059 6.81908 2.61059C5.7027 2.61059 2.8506 6.21332 2.8506 6.21332C2.60134 6.46173 2.47898 6.71014 2.47898 6.95855C2.47898 7.33193 2.60285 7.58034 2.8506 7.82724C3.34609 8.44903 3.96697 9.19426 4.58784 10.063C4.33859 10.4363 4.21623 10.8082 4.09235 11.1816L0.992497 11.6784C0.37162 11.8018 0 12.3002 0 12.9204V17.02C0 17.6418 0.495493 18.1386 0.992497 18.2621L4.09235 18.7589C4.21623 19.1323 4.46397 19.5041 4.58784 20.0009C4.33859 20.3743 3.09985 21.8648 2.8506 22.2367C2.72672 22.3601 2.60134 22.61 2.60134 22.9819C2.60134 23.4787 2.8506 24.1005 5.82507 26.958L5.94894 27.0815C6.44443 27.4548 7.31306 27.4548 7.5608 27.0815L9.42041 25.591V24.1005L6.93993 26.2128H6.81605L6.69218 26.0893C4.21169 23.7301 3.84007 23.1084 3.84007 22.9834C4.08933 22.61 5.45194 20.9961 5.82356 20.3743C5.94743 20.2509 5.94743 20.0009 5.82356 19.7525C5.45194 19.1308 5.20268 18.5105 5.07881 18.0121C4.95493 17.7637 4.82955 17.6388 4.58331 17.6388L1.23571 17.142V12.9189L4.70719 12.4221C4.95644 12.4221 5.07881 12.1737 5.20268 12.0487C5.45194 11.5519 5.5743 11.0536 5.82356 10.4348C5.94743 10.1864 5.94743 9.938 5.82356 9.81304C5.07881 8.69443 4.33557 7.82574 3.71469 7.0805V6.83209C4.33557 6.21031 6.44292 3.9746 6.81454 3.85114H6.93842L9.54278 5.83844C9.66665 5.96189 9.9144 5.96189 10.1637 5.83844C10.6591 5.71499 11.1562 5.46507 11.7755 5.21666C12.0248 5.0932 12.1471 4.96825 12.1471 4.59487C12.1471 4.59487 12.3964 2.35916 12.6426 1.36401C12.6426 1.36401 12.6426 1.24056 12.7665 1.24056H16.9827L17.4782 4.71833C17.4782 4.96674 17.7275 5.0917 17.8498 5.21515C18.3453 5.33861 18.8423 5.58852 19.4617 5.83694C19.711 5.96039 19.9572 5.96039 20.0826 5.83694L22.9347 3.84964C22.9347 3.84964 26.0345 6.95554 26.0345 7.0805C25.7853 7.45387 25.5391 7.82574 25.1674 8.19911C24.7958 8.69593 24.4227 9.19427 24.0511 9.68958C23.9272 9.81304 23.9272 10.063 24.0511 10.3114C24.3003 10.8082 24.5466 11.43 24.7958 12.0518C24.9197 12.3002 25.0451 12.4251 25.2913 12.4251L28.7628 13.0469V17.2699L25.2913 17.7667C25.042 17.7667 24.9197 18.0152 24.7958 18.1401C24.6719 18.6369 24.4242 19.1353 24.1749 19.754C24.0511 20.0025 24.0511 20.2509 24.1749 20.3758C24.7958 21.371 25.5391 22.2397 26.1584 22.9849V23.2333C25.6629 23.9786 23.5541 26.2143 23.0586 26.3392H22.9347L20.4542 24.3519V25.8424L22.3138 27.3329C22.5631 27.4563 22.8093 27.5813 23.0586 27.5813C24.1749 27.5813 27.027 24.1035 27.027 24.1035C27.2763 23.8551 27.3987 23.6067 27.3987 23.2348C27.3987 22.863 27.2748 22.613 27.1494 22.3661C26.5285 21.6209 25.9092 20.9991 25.4122 20.1304C25.6614 19.7571 25.7838 19.3852 25.9077 19.0118L29.0075 18.515C29.6284 18.3915 30 17.7698 30 17.2729V13.1734C29.7507 12.4281 29.3791 11.9313 28.7598 11.8064L25.6599 11.305L25.6629 11.3035Z' fill='%233F479E'/%3e%3cpath d='M12.1879 20.4815C10.2948 18.5845 9.39819 16.8973 9.39819 14.9617C9.39819 12.0535 11.8214 9.75037 14.8651 9.75037H14.9995C18.0424 9.75037 20.4665 12.0544 20.4665 14.9617L20.4662 15.0984C20.4174 16.9066 19.4092 18.7476 17.6784 20.4815L17.5076 20.6526V21.8816C17.5076 22.2047 17.2442 22.4667 16.9192 22.4667H12.9471C12.6221 22.4667 12.3587 22.2047 12.3587 21.8816V20.6526L12.1879 20.4815ZM16.3307 20.4116C16.3307 20.2572 16.3921 20.1091 16.5015 19.9995L16.843 19.6573C18.382 18.1155 19.2502 16.5302 19.2896 15.0827V14.9617C19.2896 12.7127 17.404 10.9204 14.9995 10.9204H14.8651C12.4599 10.9204 10.5751 12.7118 10.5751 14.9617C10.5751 16.5408 11.3291 17.9597 13.0234 19.6574L13.3648 19.9996C13.4742 20.1092 13.5356 20.2573 13.5356 20.4116V21.2966H16.3307V20.4116Z' fill='%233F479E'/%3e%3cpath d='M17.6214 24.1705H12.5215V25.4469H17.6214V24.1705Z' fill='%233F479E'/%3e%3cpath d='M16.3464 26.7236H13.7965V28H16.3464V26.7236Z' fill='%233F479E'/%3e%3c/svg%3e",img$T="data:image/svg+xml,%3csvg width='36' height='36' viewBox='0 0 36 36' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M28.5 7.5V28.5H7.5V7.5H28.5ZM28.5 4.5H7.5C5.85 4.5 4.5 5.85 4.5 7.5V28.5C4.5 30.15 5.85 31.5 7.5 31.5H28.5C30.15 31.5 31.5 30.15 31.5 28.5V7.5C31.5 5.85 30.15 4.5 28.5 4.5Z' fill='%23555F7C'/%3e%3cpath d='M21 25.5H10.5V22.5H21V25.5ZM25.5 19.5H10.5V16.5H25.5V19.5ZM25.5 13.5H10.5V10.5H25.5V13.5Z' fill='%23555F7C'/%3e%3c/svg%3e",img$S="data:image/svg+xml,%3csvg width='30' height='28' viewBox='0 0 30 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.48781 1.18445L7.56868 26.9511L1.08087 27.045L1 1.27836L7.48781 1.18445Z' stroke='%230D85CD' stroke-width='1.5'/%3e%3cpath d='M16.8352 1.19299H10.2701V27.0367H16.8352V1.19299Z' stroke='%230D85CD' stroke-width='1.5'/%3e%3cpath d='M25.5244 1L29.0001 27.1333' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M20.8901 1L24.3658 27.1333' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M3.51196 4.66443H5.05669' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='square'/%3e%3cpath d='M12.7804 4.66443H14.3251' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='square'/%3e%3cpath d='M3.51196 6.97864H5.05669' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='square'/%3e%3cpath d='M12.7804 6.97864H14.3251' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='square'/%3e%3c/svg%3e",img$R="data:image/svg+xml,%3csvg width='32' height='24' viewBox='0 0 32 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.19694 4.90455C9.43614 4.66674 9.43602 4.2813 9.19667 4.04364C8.95731 3.80598 8.56937 3.80611 8.33017 4.04391L1.17932 11.1531C0.94016 11.3909 0.940236 11.7762 1.17949 12.0139L8.33034 19.1175C8.56964 19.3552 8.95758 19.3552 9.19684 19.1174C9.43609 18.8797 9.43606 18.4942 9.19677 18.2565L2.4791 11.5832L9.19694 4.90455Z' fill='%23E0570A' stroke='%23E0570A' stroke-width='0.2'/%3e%3cpath d='M22.8045 18.2543C22.5652 18.492 22.5652 18.8774 22.8044 19.1152C23.0437 19.3529 23.4316 19.353 23.6709 19.1152L30.8206 12.0128C31.0599 11.7751 31.06 11.3897 30.8208 11.152L23.6711 4.04391C23.4319 3.80611 23.0439 3.80598 22.8046 4.04364C22.5652 4.2813 22.5651 4.66674 22.8043 4.90455L29.521 11.5821L22.8045 18.2543Z' fill='%23E0570A' stroke='%23E0570A' stroke-width='0.2'/%3e%3cpath d='M18.0402 1.45444L12.5533 22.2366C12.4674 22.5618 12.6632 22.8946 12.9905 22.9799C13.3178 23.0652 13.6527 22.8708 13.7386 22.5456L19.2255 1.76336C19.3114 1.43816 19.1157 1.10538 18.7883 1.02007C18.461 0.934765 18.1261 1.12924 18.0402 1.45444Z' fill='%23E0570A' stroke='%23E0570A' stroke-width='0.2'/%3e%3c/svg%3e",img$Q="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.58984 7.41L10.1798 12L5.58984 16.59L6.99984 18L12.9998 12L6.99984 6L5.58984 7.41ZM15.9998 6H17.9998V18H15.9998V6Z' fill='%23555F7C'/%3e%3c/svg%3e",img$P="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z' fill='%23555F7C'/%3e%3c/svg%3e",img$O="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M19 19H5V5H12V3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V12H19V19ZM14 3V5H17.59L7.76 14.83L9.17 16.24L19 6.41V10H21V3H14Z' fill='%23555F7C'/%3e%3c/svg%3e",img$N="data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11.0833 11.0833H2.91667V2.91667H7V1.75H2.91667C2.26917 1.75 1.75 2.275 1.75 2.91667V11.0833C1.75 11.725 2.26917 12.25 2.91667 12.25H11.0833C11.725 12.25 12.25 11.725 12.25 11.0833V7H11.0833V11.0833ZM8.16667 1.75V2.91667H10.2608L4.52667 8.65083L5.34917 9.47333L11.0833 3.73917V5.83333H12.25V1.75H8.16667Z' fill='%231871E8'/%3e%3c/svg%3e",img$M="data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.25 12.25H1.75V1.75H7V0.25H1.75C0.9175 0.25 0.25 0.925 0.25 1.75V12.25C0.25 13.075 0.9175 13.75 1.75 13.75H12.25C13.075 13.75 13.75 13.075 13.75 12.25V7H12.25V12.25ZM8.5 0.25V1.75H11.1925L3.82 9.1225L4.8775 10.18L12.25 2.8075V5.5H13.75V0.25H8.5Z' fill='%23555F7C'/%3e%3c/svg%3e",img$J="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='20' cy='20' r='20' fill='%23E8F7FF'/%3e%3c/svg%3e",img$I="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='20' cy='20' r='20' fill='%23E9FFF1'/%3e%3c/svg%3e",img$G="data:image/svg+xml,%3csvg width='34' height='37' viewBox='0 0 34 37' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M17.0005 19.0063C14.1671 19.0063 11.8315 21.3432 11.8315 24.2642C11.8315 26.3285 13.0185 28.12 14.7414 28.9769V34.7021C14.7414 35.9874 15.7369 37 17.0005 37C18.264 37 19.2595 35.9874 19.2595 34.7021V28.9769C20.9824 28.12 22.1694 26.3285 22.1694 24.2642C22.1694 21.3821 19.8338 19.0063 17.0005 19.0063Z' fill='%23EB5757'/%3e%3cpath d='M0 7.2442L3.44594 11.2947C6.8536 7.63368 11.6396 5.33579 17 5.33579C22.3221 5.33579 27.1464 7.63368 30.5541 11.2947L34 7.2442C29.6734 2.76525 23.6622 0 17 0C10.3761 0 4.36486 2.76525 0 7.2442Z' fill='%23EB5757'/%3e%3cpath d='M17.0001 9.50317C12.6736 9.50317 8.80644 11.4116 6.16455 14.4884L9.53391 18.4611C11.2569 16.1632 13.9754 14.6832 17.0001 14.6832C20.0249 14.6832 22.7434 16.1632 24.4663 18.4611L27.8357 14.4884C25.1938 11.4116 21.3267 9.50317 17.0001 9.50317Z' fill='%23EB5757'/%3e%3c/svg%3e",img$F="data:image/svg+xml,%3csvg width='34' height='34' viewBox='0 0 34 34' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M31.5841 8.25105C33.1473 10.8473 34 13.8703 34 17C34 18.2448 33.8579 19.454 33.6092 20.6276L29.4525 19.1339C29.559 18.4226 29.6301 17.7113 29.6301 17C29.6301 14.8305 29.0617 12.7678 28.1024 10.9895L31.5841 8.25105ZM16.9822 29.6611C10.0188 29.6611 4.33438 23.9707 4.33438 17C4.33438 14.9017 4.83177 12.9456 5.71996 11.2029L2.20272 8.53556C0.781609 11.0962 0 13.977 0 17C0 21.5523 1.77638 25.8201 4.97388 29.0209C8.17137 32.2218 12.4347 34 16.9822 34C21.5298 34 25.7931 32.2218 28.9906 29.0209C30.2696 27.7406 31.3354 26.2824 32.117 24.7176L27.9958 23.2238C25.8286 27.0649 21.7074 29.6611 16.9822 29.6611ZM16.9822 0C12.4347 0 8.17137 1.77824 4.97388 4.97908C4.93835 5.01464 4.90282 5.05021 4.86729 5.08577L8.38453 7.75314C10.6583 5.65481 13.6782 4.33891 17.0178 4.33891C20.2508 4.33891 23.1996 5.54812 25.4378 7.57531L28.884 4.83682C25.6865 1.70711 21.4587 0 16.9822 0ZM24.9404 18.4937C24.7273 19.5607 24.3365 20.6276 23.697 21.5523L24.6207 22.477C24.9404 22.7971 24.9404 23.3661 24.6207 23.6862L23.697 24.6109C23.3772 24.931 22.8088 24.931 22.489 24.6109L21.6008 23.7218C20.6771 24.3619 19.6113 24.7887 18.5455 25.0021V26.2824C18.5455 26.7448 18.1546 27.136 17.6928 27.136H16.3783C15.9164 27.136 15.5256 26.7448 15.5256 26.2824V25.0377C14.4598 24.8243 13.3939 24.3975 12.4347 23.7573L11.5465 24.6464C11.2267 24.9665 10.6583 24.9665 10.3386 24.6464L9.41484 23.7218C9.09509 23.4017 9.09509 22.8326 9.41484 22.5126L10.303 21.6234C9.66353 20.6632 9.2372 19.6318 9.02403 18.5649H7.78056C7.3187 18.5649 6.9279 18.1736 6.9279 17.7113V16.3954C6.9279 15.9331 7.3187 15.5418 7.78056 15.5418H9.05956C9.27273 14.4749 9.69906 13.4079 10.3386 12.4833L9.45036 11.5941C9.13062 11.2741 9.13062 10.705 9.45036 10.3849L10.3741 9.46025C10.6938 9.14017 11.2623 9.14017 11.582 9.46025L12.5057 10.3849C13.4295 9.74477 14.4953 9.31799 15.5611 9.14017V7.85983C15.5611 7.39749 15.9519 7.00628 16.4138 7.00628H17.7283C18.1902 7.00628 18.581 7.39749 18.581 7.85983V9.17573C19.6468 9.38912 20.6771 9.8159 21.6008 10.4205L22.5246 9.49582C22.8443 9.17573 23.4127 9.17573 23.7325 9.49582L24.6562 10.4205C24.976 10.7406 24.976 11.3096 24.6562 11.6297L23.7325 12.5544C24.372 13.4791 24.7983 14.5105 25.0115 15.5774H26.326C26.7879 15.5774 27.1787 15.9686 27.1787 16.431V17.7469C27.1787 18.2092 26.7879 18.6004 26.326 18.6004L24.9404 18.4937ZM20.1087 13.8703C18.4033 12.1632 15.5967 12.1632 13.8913 13.8703C12.186 15.5774 12.186 18.387 13.8913 20.0941C15.5967 21.8013 18.4033 21.8013 20.1087 20.0941C21.814 18.387 21.814 15.613 20.1087 13.8703Z' fill='%23555F7C'/%3e%3c/svg%3e",img$E="data:image/svg+xml,%3csvg width='148' height='148' viewBox='0 0 148 148' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M111 67.8334C111 71.965 111 76.035 111 80.1667C118.4 80.1667 128.02 80.1667 135.667 80.1667C135.667 76.035 135.667 71.965 135.667 67.8334C128.02 67.8334 118.4 67.8334 111 67.8334Z' fill='%23D43060'/%3e%3cpath d='M98.666 108.595C104.586 112.973 112.294 118.77 118.399 123.333C120.866 120.065 123.333 116.735 125.799 113.467C119.694 108.903 111.986 103.107 106.066 98.6666C103.599 101.997 101.133 105.327 98.666 108.595Z' fill='%23D43060'/%3e%3cpath d='M125.799 34.5333C123.333 31.265 120.866 27.935 118.399 24.6666C112.294 29.23 104.586 35.0266 98.666 39.4666C101.133 42.735 103.599 46.065 106.066 49.3333C111.986 44.8933 119.694 39.1583 125.799 34.5333Z' fill='%23D43060'/%3e%3cpath d='M24.6673 55.5C17.884 55.5 12.334 61.05 12.334 67.8333V80.1667C12.334 86.95 17.884 92.5 24.6673 92.5H30.834V117.167H43.1673V92.5H49.334L80.1673 111V37L49.334 55.5H24.6673ZM55.6856 66.045L67.834 58.7683V89.2317L55.6856 81.955L52.7257 80.1667H49.334H24.6673V67.8333H49.334H52.7257L55.6856 66.045Z' fill='%23D43060'/%3e%3cpath d='M95.584 73.9995C95.584 65.7979 92.0073 58.3979 86.334 53.3412V94.5962C92.0073 89.6012 95.584 82.2012 95.584 73.9995Z' fill='%23D43060'/%3e%3c/svg%3e",img$D="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11.9995 2.02002C6.48953 2.02002 2.01953 6.49002 2.01953 12C2.01953 17.51 6.48953 21.98 11.9995 21.98C17.5095 21.98 21.9795 17.51 21.9795 12C21.9795 6.49002 17.5095 2.02002 11.9995 2.02002ZM11.9995 19.98C7.59953 19.98 4.01953 16.4 4.01953 12C4.01953 7.60002 7.59953 4.02002 11.9995 4.02002C16.3995 4.02002 19.9795 7.60002 19.9795 12C19.9795 16.4 16.3995 19.98 11.9995 19.98ZM12.7495 5.00002L8.24953 13.5H11.3895V19L15.7495 10.5H12.7495V5.00002Z' fill='%23E7A600'/%3e%3c/svg%3e",img$C="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11 7H13V9H11V7ZM11 11H13V17H11V11ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z' fill='%23555F7C'/%3e%3c/svg%3e",img$B="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18 11C18 11.67 18 12.33 18 13C19.2 13 20.76 13 22 13C22 12.33 22 11.67 22 11C20.76 11 19.2 11 18 11Z' fill='%23D43060'/%3e%3cpath d='M16 17.61C16.96 18.32 18.21 19.26 19.2 20C19.6 19.47 20 18.93 20.4 18.4C19.41 17.66 18.16 16.72 17.2 16C16.8 16.54 16.4 17.08 16 17.61Z' fill='%23D43060'/%3e%3cpath d='M20.4 5.6C20 5.07 19.6 4.53 19.2 4C18.21 4.74 16.96 5.68 16 6.4C16.4 6.93 16.8 7.47 17.2 8C18.16 7.28 19.41 6.35 20.4 5.6Z' fill='%23D43060'/%3e%3cpath d='M4 9C2.9 9 2 9.9 2 11V13C2 14.1 2.9 15 4 15H5V19H7V15H8L13 18V6L8 9H4ZM9.03 10.71L11 9.53V14.47L9.03 13.29L8.55 13H8H4V11H8H8.55L9.03 10.71Z' fill='%23D43060'/%3e%3cpath d='M15.5 12C15.5 10.67 14.92 9.47002 14 8.65002V15.34C14.92 14.53 15.5 13.33 15.5 12Z' fill='%23D43060'/%3e%3c/svg%3e",img$A="data:image/svg+xml,%3csvg width='20' height='21' viewBox='0 0 20 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.443 6.19H8.943V12.19L13.693 15.04L14.443 13.81L10.443 11.44V6.19ZM15.28 0L19.887 3.845L18.607 5.38L13.997 1.537L15.28 0ZM4.606 0L5.888 1.536L1.28 5.38L0 3.844L4.606 0ZM9.943 2.19C4.973 2.19 0.943 6.22 0.943 11.19C0.943 16.16 4.973 20.19 9.943 20.19C14.913 20.19 18.943 16.16 18.943 11.19C18.943 6.22 14.913 2.19 9.943 2.19ZM9.943 18.19C6.083 18.19 2.943 15.05 2.943 11.19C2.943 7.33 6.083 4.19 9.943 4.19C13.803 4.19 16.943 7.33 16.943 11.19C16.943 15.05 13.803 18.19 9.943 18.19Z' fill='%236098D1'/%3e%3c/svg%3e",img$y="data:image/svg+xml,%3csvg width='14' height='18' viewBox='0 0 14 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11 6V16H3V6H11ZM9.5 0H4.5L3.5 1H0V3H14V1H10.5L9.5 0ZM13 4H1V16C1 17.1 1.9 18 3 18H11C12.1 18 13 17.1 13 16V4Z' fill='%23555F7C'/%3e%3c/svg%3e",img$w="data:image/svg+xml,%3csvg width='61' height='28' viewBox='0 0 61 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect x='2' y='26' width='52' height='1' fill='%236098D1'/%3e%3crect x='2' y='25' width='13' height='3' fill='%236098D1'/%3e%3cpath d='M3.51589 14.126C3.03989 14.126 2.61522 14.0327 2.24189 13.846C1.86856 13.6593 1.56989 13.4073 1.34589 13.09C1.13122 12.7727 1.02389 12.4133 1.02389 12.012C1.02389 11.508 1.14989 11.1113 1.40189 10.822C1.66322 10.5327 2.08789 10.3227 2.67589 10.192C3.27322 10.0613 4.07589 9.996 5.08389 9.996H5.55989V9.632C5.55989 9.1 5.44789 8.71733 5.22389 8.484C4.99989 8.25067 4.63122 8.134 4.11789 8.134C3.81922 8.134 3.50656 8.17133 3.17989 8.246C2.86256 8.32067 2.53122 8.44667 2.18589 8.624C1.98989 8.71733 1.82656 8.73133 1.69589 8.666C1.57456 8.60067 1.49056 8.498 1.44389 8.358C1.39722 8.218 1.40189 8.07333 1.45789 7.924C1.51389 7.77467 1.63056 7.66267 1.80789 7.588C2.21856 7.40133 2.62456 7.266 3.02589 7.182C3.42722 7.08867 3.80522 7.042 4.15989 7.042C5.09322 7.042 5.78389 7.266 6.23189 7.714C6.67989 8.15267 6.90389 8.84333 6.90389 9.786V13.384C6.90389 13.86 6.68456 14.098 6.24589 14.098C5.79789 14.098 5.57389 13.86 5.57389 13.384V12.866C5.40589 13.258 5.14456 13.566 4.78989 13.79C4.43522 14.014 4.01056 14.126 3.51589 14.126ZM3.79589 13.118C4.29989 13.118 4.71989 12.9407 5.05589 12.586C5.39189 12.2313 5.55989 11.7833 5.55989 11.242V10.864H5.09789C4.41656 10.864 3.87989 10.8967 3.48789 10.962C3.10522 11.0273 2.82989 11.1393 2.66189 11.298C2.50322 11.4473 2.42389 11.6573 2.42389 11.928C2.42389 12.2827 2.54522 12.572 2.78789 12.796C3.03056 13.0107 3.36656 13.118 3.79589 13.118ZM9.55142 5.642C9.27142 5.642 9.05209 5.572 8.89342 5.432C8.74409 5.292 8.66942 5.096 8.66942 4.844C8.66942 4.312 8.96342 4.046 9.55142 4.046C10.1394 4.046 10.4334 4.312 10.4334 4.844C10.4334 5.376 10.1394 5.642 9.55142 5.642ZM9.55142 14.084C9.08476 14.084 8.85142 13.8273 8.85142 13.314V7.854C8.85142 7.35 9.08476 7.098 9.55142 7.098C10.0274 7.098 10.2654 7.35 10.2654 7.854V13.314C10.2654 13.8273 10.0274 14.084 9.55142 14.084ZM15.7277 14.098C15.3357 14.098 15.0651 13.888 14.9157 13.468L11.9057 4.886C11.8217 4.64333 11.8357 4.44267 11.9477 4.284C12.0691 4.116 12.2651 4.032 12.5357 4.032C12.7411 4.032 12.8997 4.07867 13.0117 4.172C13.1331 4.26533 13.2264 4.41467 13.2917 4.62L15.7697 11.9L18.3037 4.648C18.4624 4.23733 18.7097 4.032 19.0457 4.032C19.2324 4.032 19.3771 4.08333 19.4797 4.186C19.5917 4.28867 19.6897 4.44733 19.7737 4.662L22.2797 11.984L24.8137 4.62C24.8791 4.424 24.9677 4.27933 25.0797 4.186C25.2011 4.08333 25.3597 4.032 25.5557 4.032C25.7984 4.032 25.9757 4.116 26.0877 4.284C26.2091 4.44267 26.2231 4.64333 26.1297 4.886L23.1057 13.482C23.0217 13.6873 22.9191 13.8413 22.7977 13.944C22.6764 14.0467 22.5131 14.098 22.3077 14.098C22.0931 14.098 21.9251 14.0467 21.8037 13.944C21.6824 13.8413 21.5844 13.6827 21.5097 13.468L19.0177 6.328L16.4977 13.482C16.4231 13.6873 16.3251 13.8413 16.2037 13.944C16.0917 14.0467 15.9331 14.098 15.7277 14.098ZM27.0647 14.098C26.7847 14.098 26.5887 14.0093 26.4767 13.832C26.374 13.6453 26.3833 13.4213 26.5047 13.16L30.2987 4.648C30.392 4.43333 30.5087 4.27933 30.6487 4.186C30.7887 4.08333 30.952 4.032 31.1387 4.032C31.3067 4.032 31.4607 4.08333 31.6007 4.186C31.75 4.27933 31.8713 4.43333 31.9647 4.648L35.7587 13.16C35.88 13.4307 35.8893 13.6547 35.7867 13.832C35.6933 14.0093 35.5113 14.098 35.2407 14.098C35.0353 14.098 34.872 14.0467 34.7507 13.944C34.6293 13.8413 34.522 13.6827 34.4287 13.468L33.6167 11.592H28.6187L27.8207 13.468C27.7273 13.692 27.6247 13.8553 27.5127 13.958C27.4007 14.0513 27.2513 14.098 27.0647 14.098ZM31.1107 5.74L29.1367 10.416H33.1267L31.1387 5.74H31.1107ZM38.1573 14.098C37.6719 14.098 37.4293 13.8507 37.4293 13.356V4.872C37.4293 4.37733 37.6766 4.13 38.1713 4.13H41.5173C42.5813 4.13 43.4026 4.38667 43.9813 4.9C44.5599 5.404 44.8493 6.11333 44.8493 7.028C44.8493 7.76533 44.6533 8.372 44.2613 8.848C43.8693 9.31467 43.3139 9.62733 42.5953 9.786C43.0433 9.93533 43.4213 10.2947 43.7293 10.864L44.9333 13.104C45.0733 13.356 45.1013 13.5847 45.0173 13.79C44.9333 13.9953 44.7419 14.098 44.4433 14.098C44.2379 14.098 44.0699 14.056 43.9393 13.972C43.8086 13.888 43.6966 13.7527 43.6033 13.566L42.1333 10.85C41.9373 10.486 41.7086 10.2433 41.4473 10.122C41.1953 9.99133 40.8686 9.926 40.4673 9.926H38.8853V13.356C38.8853 13.8507 38.6426 14.098 38.1573 14.098ZM38.8853 8.834H41.2793C42.7166 8.834 43.4353 8.24133 43.4353 7.056C43.4353 5.88 42.7166 5.292 41.2793 5.292H38.8853V8.834ZM47.6879 14C47.1652 14 46.9039 13.7387 46.9039 13.216V4.914C46.9039 4.39133 47.1652 4.13 47.6879 4.13H52.7979C53.1992 4.13 53.3999 4.32133 53.3999 4.704C53.3999 5.10533 53.1992 5.306 52.7979 5.306H48.3039V8.4H52.4899C52.8912 8.4 53.0919 8.596 53.0919 8.988C53.0919 9.38 52.8912 9.576 52.4899 9.576H48.3039V12.824H52.7979C53.1992 12.824 53.3999 13.02 53.3999 13.412C53.3999 13.804 53.1992 14 52.7979 14H47.6879Z' fill='%231C4072'/%3e%3cpath d='M56.287 7.032C56.1163 7.032 56.031 6.944 56.031 6.768V4.608H55.251C55.1043 4.608 55.031 4.536 55.031 4.392C55.031 4.25067 55.1043 4.18 55.251 4.18H57.323C57.4696 4.18 57.543 4.25067 57.543 4.392C57.543 4.536 57.4696 4.608 57.323 4.608H56.543V6.768C56.543 6.944 56.4576 7.032 56.287 7.032ZM58.0753 7.032C57.9207 7.032 57.8433 6.952 57.8433 6.792V4.388C57.8433 4.228 57.9233 4.148 58.0833 4.148C58.15 4.148 58.202 4.16133 58.2393 4.188C58.2793 4.212 58.3153 4.25467 58.3473 4.316L59.2713 6.024L60.1953 4.316C60.2273 4.25467 60.262 4.212 60.2993 4.188C60.3367 4.16133 60.3887 4.148 60.4553 4.148C60.61 4.148 60.6873 4.228 60.6873 4.388V6.792C60.6873 6.952 60.61 7.032 60.4553 7.032C60.3007 7.032 60.2233 6.952 60.2233 6.792V5.1L59.4713 6.472C59.4447 6.51733 59.4167 6.55067 59.3873 6.572C59.358 6.59333 59.318 6.604 59.2673 6.604C59.2167 6.604 59.1753 6.59333 59.1433 6.572C59.1113 6.548 59.0833 6.51467 59.0593 6.472L58.3073 5.108V6.792C58.3073 6.952 58.23 7.032 58.0753 7.032Z' fill='%231C4072'/%3e%3c/svg%3e",img$u="data:image/svg+xml,%3csvg viewBox='0 0 115 70' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3crect width='115' height='70' fill='%23FAFAFA'/%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M43.8997 20.1667L38.5333 32.7295L50.1478 52.8334H62.8523L43.8997 20.1667Z' fill='%23728FBE'/%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M59.2363 20.1667L64.1616 28.6794L69.1005 20.1667H59.2363Z' fill='%23728FBE'/%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M69.1003 20.1667L50.1477 52.8334H62.8522L74.4667 32.7295L69.1003 20.1667Z' fill='%23325491'/%3e%3c/svg%3e",img$t="data:image/svg+xml,%3csvg width='275' height='275' viewBox='0 0 275 275' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e %3cpath d='M76.4438 90.9271L71.4264 82.9105L40.4464 102.42C39.7533 102.858 39.2615 103.552 39.0784 104.351C38.8953 105.151 39.0358 105.99 39.4693 106.686L70.2876 156.236C70.5006 156.579 70.7795 156.878 71.1083 157.113C71.4371 157.349 71.8092 157.517 72.2032 157.608C72.5972 157.699 73.0054 157.712 73.4042 157.645C73.803 157.577 74.1846 157.432 74.527 157.217L113.896 132.438C114.589 132 115.081 131.306 115.264 130.506C115.447 129.707 115.306 128.868 114.873 128.172L89.0981 86.7177L81.837 91.2879C80.3562 92.2199 77.3721 92.4191 76.4438 90.9271Z' fill='%23FEECB2'/%3e %3cpath d='M76.2485 90.664C76.4894 91.0549 76.8053 91.3943 77.1778 91.6627C77.5504 91.9312 77.9723 92.1233 78.4194 92.2281C78.8665 92.3329 79.3298 92.3482 79.7829 92.2733C80.2359 92.1984 80.6697 92.0346 81.0592 91.7915L89.0983 86.729L71.4341 82.9218L76.2485 90.664Z' fill='%23FDC920'/%3e %3cpath d='M77.173 130.822C84.5333 130.822 90.5001 124.821 90.5001 117.42C90.5001 110.018 84.5333 104.017 77.173 104.017C69.8127 104.017 63.8459 110.018 63.8459 117.42C63.8459 124.821 69.8127 130.822 77.173 130.822Z' fill='%23FDC920'/%3e %3cpath d='M81.4048 113.947L72.475 114.266C72.3368 114.272 72.2026 114.315 72.0857 114.389C71.9688 114.463 71.8734 114.566 71.8088 114.688C71.7442 114.811 71.7127 114.948 71.7175 115.086C71.7223 115.224 71.7632 115.359 71.8361 115.477L76.5754 123.091C76.649 123.208 76.7521 123.303 76.8743 123.368C76.9964 123.433 77.1335 123.464 77.2716 123.459C77.4097 123.454 77.5441 123.413 77.6614 123.34C77.7786 123.267 77.8746 123.164 77.9397 123.042L82.1377 115.108C82.2037 114.985 82.2359 114.847 82.2309 114.707C82.226 114.568 82.1841 114.432 82.1096 114.314C82.0351 114.196 81.9306 114.1 81.8068 114.035C81.683 113.971 81.5443 113.94 81.4048 113.947Z' fill='%23FE8D00'/%3e %3cpath d='M122.476 139.628H133.646C134.552 139.628 135.444 139.854 136.241 140.285C137.038 140.716 137.715 141.339 138.212 142.097L143.256 149.775C143.752 150.533 144.43 151.156 145.227 151.587C146.024 152.018 146.916 152.244 147.822 152.244H185.492L182.072 189.245L187.518 197.761H113.223C112.562 197.759 111.907 197.627 111.297 197.372C110.687 197.117 110.132 196.745 109.666 196.276C109.2 195.807 108.831 195.25 108.579 194.639C108.328 194.027 108.2 193.372 108.202 192.71V144.69C108.198 144.028 108.325 143.371 108.575 142.758C108.826 142.144 109.195 141.586 109.661 141.116C110.128 140.646 110.682 140.272 111.294 140.017C111.905 139.761 112.56 139.629 113.223 139.628H122.476Z' fill='%23FD9F00'/%3e %3cpath d='M186.631 152.259H184.349C181.404 152.259 179.016 154.647 179.016 157.592V203.384C179.016 206.329 181.404 208.717 184.349 208.717H186.631C189.576 208.717 191.964 206.329 191.964 203.384V157.592C191.964 154.647 189.576 152.259 186.631 152.259Z' fill='%23FD9F00'/%3e %3cpath d='M182.188 152.259H179.907C176.962 152.259 174.574 154.647 174.574 157.592V203.384C174.574 206.329 176.962 208.717 179.907 208.717H182.188C185.134 208.717 187.521 206.329 187.521 203.384V157.592C187.521 154.647 185.134 152.259 182.188 152.259Z' fill='%23FD9F00'/%3e %3cpath d='M179.016 202.208V195.164C179.019 194.032 179.316 192.919 179.879 191.936C180.441 190.953 181.25 190.133 182.226 189.557V160.618C182.23 159.831 182.079 159.051 181.782 158.323C181.484 157.594 181.046 156.932 180.492 156.373C179.938 155.814 179.279 155.371 178.553 155.067C177.827 154.764 177.048 154.606 176.261 154.605H141.519C140.442 154.603 139.382 154.333 138.435 153.82C137.487 153.307 136.682 152.567 136.092 151.666L130.102 142.544C129.51 141.648 128.706 140.913 127.761 140.404C126.816 139.895 125.759 139.628 124.686 139.628H100.418C99.6314 139.63 98.8527 139.787 98.1267 140.09C97.4008 140.394 96.7419 140.838 96.1878 141.396C95.6337 141.955 95.1953 142.617 94.8977 143.346C94.6001 144.074 94.4493 144.854 94.4537 145.641V202.719C94.4498 203.505 94.601 204.285 94.8987 205.013C95.1965 205.741 95.6349 206.404 96.1889 206.962C96.7429 207.521 97.4016 207.965 98.1273 208.268C98.853 208.572 99.6315 208.73 100.418 208.732H182.282V207.864C181.289 207.291 180.464 206.466 179.891 205.474C179.318 204.481 179.016 203.354 179.016 202.208Z' fill='%23FE8D00'/%3e %3cpath d='M226.98 126.511L230.411 117.69L196.414 104.201C196.037 104.053 195.635 103.98 195.23 103.987C194.825 103.994 194.426 104.081 194.055 104.243C193.684 104.405 193.349 104.639 193.069 104.931C192.788 105.223 192.569 105.568 192.422 105.945L171.105 160.321C170.804 161.083 170.817 161.933 171.142 162.686C171.467 163.438 172.076 164.031 172.838 164.335L216.04 181.473C216.416 181.621 216.818 181.694 217.223 181.686C217.627 181.679 218.027 181.592 218.397 181.43C218.768 181.268 219.103 181.034 219.384 180.742C219.664 180.45 219.884 180.106 220.031 179.729L237.86 134.253L229.897 131.092C228.269 130.446 226.337 128.146 226.98 126.511Z' fill='%23FEECB2'/%3e %3cpath d='M227.074 126.199C226.733 127.063 226.749 128.027 227.117 128.88C227.486 129.733 228.177 130.406 229.04 130.75L237.86 134.249L230.411 117.69L227.074 126.199Z' fill='%23FDC920'/%3e %3cpath d='M204.727 146.017L215.626 140.706L219.873 151.805L225.187 138.248C225.397 137.717 225.388 137.124 225.162 136.599C224.936 136.075 224.511 135.661 223.981 135.448L198.27 125.274C198.008 125.17 197.727 125.119 197.445 125.123C197.162 125.128 196.884 125.188 196.625 125.301C196.366 125.414 196.132 125.577 195.936 125.781C195.741 125.985 195.587 126.225 195.485 126.488L187.284 147.407C187.153 147.74 187.107 148.101 187.149 148.456L202.739 140.845L204.727 146.017Z' fill='%23FDC920'/%3e %3cpath d='M188.322 150.151L188.491 150.23L192.727 151.91H192.757L188.322 150.151Z' fill='%23FDC920'/%3e %3cpath d='M192.727 151.891L214.183 160.4C214.366 160.473 214.558 160.52 214.754 160.539L192.727 151.891Z' fill='%23FDC920'/%3e %3cpath d='M204.727 146.017L202.739 140.83L187.149 148.441C187.191 148.795 187.32 149.134 187.524 149.427C187.729 149.719 188.003 149.957 188.322 150.117L192.757 151.861L204.727 146.017Z' fill='%23FDB200'/%3e %3cpath d='M216.968 159.171L219.854 151.805L215.607 140.706L204.708 146.017L209.462 158.419L192.738 151.853H192.708L214.735 160.498C215.201 160.551 215.672 160.451 216.076 160.211C216.479 159.971 216.792 159.606 216.968 159.171Z' fill='%23FE8D00'/%3e %3cpath d='M209.481 158.442L204.727 146.032L192.757 151.876L209.481 158.442Z' fill='%23FE8D00'/%3e %3cpath d='M200.691 135.956C199.962 135.664 199.379 135.096 199.066 134.376C198.754 133.656 198.738 132.842 199.022 132.111C199.163 131.75 199.375 131.421 199.644 131.141C199.912 130.862 200.234 130.639 200.589 130.484C200.944 130.329 201.327 130.245 201.714 130.238C202.102 130.231 202.487 130.3 202.848 130.442C203.575 130.735 204.158 131.303 204.468 132.023C204.779 132.743 204.792 133.557 204.505 134.287C204.219 135.013 203.657 135.596 202.943 135.909C202.228 136.222 201.418 136.239 200.691 135.956Z' fill='%23FEDF80'/%3e %3cpath d='M179.073 198.686L179.016 198.6V160.64C179.021 159.854 178.87 159.074 178.572 158.345C178.275 157.617 177.836 156.954 177.282 156.396C176.728 155.837 176.069 155.393 175.343 155.09C174.617 154.786 173.839 154.629 173.052 154.627H138.325C137.247 154.626 136.187 154.357 135.24 153.844C134.292 153.331 133.487 152.59 132.898 151.688L126.903 142.567C126.314 141.665 125.509 140.924 124.561 140.411C123.614 139.898 122.554 139.628 121.476 139.628H97.2087C96.4219 139.63 95.6432 139.787 94.9172 140.09C94.1913 140.394 93.5324 140.838 92.9783 141.396C92.4242 141.955 91.9858 142.617 91.6882 143.346C91.3907 144.074 91.2398 144.854 91.2442 145.641V176.557C105.816 190.737 125.343 198.676 145.676 198.686H179.073Z' fill='%23FDC000'/%3e %3cpath d='M97.2086 208.721H185.492L179.073 198.686H145.676C125.343 198.676 105.816 190.737 91.2442 176.557V202.719C91.2417 203.504 91.394 204.283 91.6924 205.01C91.9908 205.737 92.4295 206.398 92.9833 206.955C93.5372 207.512 94.1954 207.955 94.9204 208.258C95.6454 208.561 96.4229 208.718 97.2086 208.721Z' fill='%23FDB200'/%3e %3cpath d='M185.492 188.655C184.342 188.656 183.213 188.968 182.226 189.557V198.6L182.282 198.686V207.853C183.257 208.42 184.364 208.72 185.492 208.721C187.212 208.71 188.858 208.019 190.071 206.799C191.283 205.578 191.964 203.928 191.964 202.208V195.164C191.964 193.445 191.283 191.795 190.07 190.575C188.858 189.355 187.212 188.665 185.492 188.655Z' fill='%23FD9F00'/%3e %3cpath d='M182.226 198.6V189.557C181.25 190.133 180.442 190.953 179.879 191.936C179.316 192.919 179.019 194.032 179.016 195.164V202.208C179.019 203.351 179.323 204.474 179.896 205.463C180.469 206.452 181.292 207.274 182.282 207.845V198.686L182.226 198.6Z' fill='%23FE8D00'/%3e %3cpath d='M135.859 168.548H100.738V170.75H135.859V168.548Z' fill='%23FD9F00'/%3e %3cpath d='M119.308 177.609H100.738V179.812H119.308V177.609Z' fill='%23FD9F00'/%3e %3cpath d='M166.644 62.8185L167.222 53.3626L130.767 51.0061C130.362 50.9806 129.956 51.0352 129.573 51.1668C129.19 51.2983 128.836 51.5043 128.532 51.7727C128.228 52.0412 127.981 52.367 127.803 52.7313C127.625 53.0957 127.521 53.4916 127.497 53.8962L123.769 112.222C123.714 113.038 123.986 113.843 124.524 114.46C125.062 115.077 125.823 115.454 126.64 115.51L172.988 118.517C173.804 118.566 174.606 118.29 175.219 117.748C175.831 117.206 176.203 116.443 176.254 115.627L179.373 66.8399L170.827 66.2874C169.068 66.1672 166.531 64.5737 166.644 62.8185Z' fill='%23FEECB2'/%3e %3cpath d='M166.636 62.4915C166.575 63.4177 166.884 64.3302 167.495 65.0291C168.106 65.728 168.969 66.1562 169.895 66.2198L179.358 66.8324L167.223 53.3625L166.636 62.4915Z' fill='%23FDC920'/%3e%3cpath d='M147.882 86.2254C147.709 88.9765 146.157 90.6264 143.988 90.4874C143.429 90.4747 142.884 90.3029 142.418 89.9921C141.952 89.6813 141.584 89.2443 141.358 88.7322H141.316L141.057 93.0242L139.279 92.9077L140.031 81.3396L141.749 81.4523L141.655 82.9556H141.685C141.975 82.4678 142.397 82.072 142.902 81.8139C143.408 81.5559 143.976 81.4461 144.541 81.4974C146.725 81.644 148.059 83.4743 147.882 86.2254ZM146.059 86.1051C146.176 84.2899 145.372 83.0646 143.966 82.9744C142.56 82.8842 141.624 84.0193 141.508 85.812C141.391 87.6047 142.222 88.8525 143.586 88.9427C144.951 89.0329 145.943 87.9317 146.059 86.1051Z' fill='%23FD9F00'/%3e %3cpath d='M148.859 86.2856C149.036 83.5457 150.592 81.8958 152.76 82.0349C153.321 82.0482 153.866 82.2211 154.332 82.5333C154.798 82.8455 155.166 83.2841 155.391 83.7975H155.421L155.722 79.1222L157.503 79.2387L156.752 91.1601L155.027 91.0474L155.124 89.5703H155.049C154.758 90.0568 154.336 90.4511 153.83 90.7078C153.325 90.9645 152.757 91.0731 152.193 91.0211C150.017 90.8745 148.686 89.0291 148.859 86.2856ZM150.675 86.4058C150.558 88.2399 151.362 89.4426 152.768 89.5365C154.174 89.6305 155.117 88.518 155.233 86.699C155.35 84.8799 154.516 83.6585 153.151 83.5683C151.787 83.4781 150.791 84.5793 150.675 86.4058Z' fill='%23FD9F00'/%3e%3cpath d='M159.522 84.0305L158.331 83.9554L158.421 82.5573L159.612 82.6362L159.665 81.7831C159.774 80.0993 160.612 79.3552 162.371 79.4717C162.704 79.4942 163.034 79.5432 163.359 79.6183L163.273 80.9374C163.061 80.8898 162.846 80.8596 162.63 80.8472C161.856 80.7984 161.469 81.1629 161.42 81.9296L161.367 82.749L163.119 82.8617L163.028 84.2598L161.303 84.147L160.837 91.4269L159.056 91.3104L159.522 84.0305Z' fill='%23FD9F00'/%3e%3c/svg%3e",img$s="data:image/svg+xml,%3csvg width='275' height='275' viewBox='0 0 275 275' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e %3cpath d='M181 134.5L138.5 120.5V170L181 134.5Z' fill='%23FE8D00'/%3e %3cpath d='M138.5 120.5L94.5 135L138.5 170.5V120.5Z' fill='%23FD9F00'/%3e %3cpath d='M137.5 204V149L181.5 134.5V188.5L137.5 204Z' fill='%23FDC000'/%3e %3cpath d='M137.5 149L94.5 134.5V188.5L137.5 204V149Z' fill='%23FDB200'/%3e %3cpath d='M121.5 171L137 149L94.5 146V167L121.5 171Z' fill='%23FE8D00'/%3e %3cpath d='M159.5 163L137.5 149L181 134.5L200.5 148.5L159.5 163Z' fill='%23FEECB2'/%3e %3cpath d='M116 162.5L137.5 149L94.5 135L74 148L116 162.5Z' fill='%23FED966'/%3e %3cpath d='M159 107L138.5 120.5L181 134.5L202.5 122L159 107Z' fill='%23FDC000'/%3e %3cpath d='M75 121.5L94.5 135L138.5 120.5L118 107L75 121.5Z' fill='%23FEECB2'/%3e %3cpath d='M136.598 140.5C129.265 137.5 117.398 129.4 128.598 121C142.598 110.5 146.598 105.5 143.598 99.5C140.598 93.5 131.098 96 132.598 104C134.098 112 144.598 119 155.598 111.5C166.598 104 166.598 81 148.598 73' stroke='%23B9D1E1' stroke-dasharray='2 2'/%3e %3cpath d='M152.5 72.5C152.5 72.7215 152.381 72.9602 152.114 73.1607C151.847 73.3612 151.455 73.5 151 73.5C150.545 73.5 150.153 73.3612 149.886 73.1607C149.619 72.9602 149.5 72.7215 149.5 72.5C149.5 72.2785 149.619 72.0398 149.886 71.8393C150.153 71.6388 150.545 71.5 151 71.5C151.455 71.5 151.847 71.6388 152.114 71.8393C152.381 72.0398 152.5 72.2785 152.5 72.5Z' stroke='%23839DAE'/%3e %3ccircle cx='148.5' cy='72.5' r='1.5' fill='%23B9D1E1'/%3e%3cpath d='M150.5 75C150.5 75.4546 150.361 75.8468 150.161 76.1142C149.96 76.3814 149.722 76.5 149.5 76.5C149.278 76.5 149.04 76.3814 148.839 76.1142C148.639 75.8468 148.5 75.4546 148.5 75C148.5 74.5454 148.639 74.1532 148.839 73.8858C149.04 73.6186 149.278 73.5 149.5 73.5C149.722 73.5 149.96 73.6186 150.161 73.8858C150.361 74.1532 150.5 74.5454 150.5 75Z' stroke='%23839DAE'/%3e%3c/svg%3e",img$r="data:image/svg+xml,%3csvg width='275' height='275' viewBox='0 0 275 275' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e %3cpath d='M103.121 192.275V189.506H146.428L143.242 173.998H164.254L169.139 185.621C169.445 186.35 169.567 187.144 169.492 187.932C169.417 188.719 169.149 189.476 168.712 190.135C168.274 190.793 167.68 191.334 166.983 191.708C166.286 192.081 165.508 192.277 164.717 192.278L103.121 192.275Z' fill='%231D46A0'/%3e %3cpath d='M131.368 189.506H103.121V192.275H131.368V189.506Z' fill='%23063387'/%3e %3cpath d='M133.402 189.506H136.243C136.723 189.506 137.197 189.401 137.632 189.198C138.066 188.995 138.451 188.7 138.76 188.332C139.068 187.965 139.293 187.534 139.417 187.071C139.541 186.608 139.563 186.123 139.48 185.65L137.431 173.998H161.015L166.302 186.58C166.438 186.901 166.491 187.25 166.459 187.597C166.426 187.943 166.308 188.277 166.116 188.566C165.923 188.856 165.662 189.094 165.355 189.259C165.048 189.423 164.706 189.509 164.358 189.509L133.402 189.506Z' fill='%234B68B4'/%3e %3cpath d='M172.098 173.909H95.1732C94.5039 173.909 93.8426 173.763 93.2359 173.48C92.6293 173.198 92.092 172.785 91.6619 172.273C91.2318 171.76 90.9193 171.159 90.7465 170.512C90.5737 169.866 90.5448 169.189 90.6618 168.53L101.817 105.503C102.004 104.442 102.559 103.482 103.384 102.79C104.209 102.098 105.252 101.719 106.329 101.719H183.254C183.923 101.719 184.585 101.865 185.191 102.148C185.798 102.431 186.335 102.843 186.765 103.356C187.195 103.868 187.508 104.469 187.681 105.116C187.853 105.763 187.882 106.439 187.765 107.098L176.61 170.125C176.423 171.186 175.868 172.146 175.043 172.838C174.218 173.53 173.175 173.909 172.098 173.909V173.909Z' fill='%231D46A0'/%3e %3cpath d='M125.531 135.837C124.167 127.848 120.087 112.569 108.153 101.719H103.394C102.315 101.718 101.271 102.097 100.445 102.79C99.6187 103.483 99.0637 104.445 98.8775 105.508L87.7074 168.61C87.5888 169.27 87.6167 169.948 87.7892 170.596C87.9616 171.245 88.2745 171.847 88.7056 172.361C89.1366 172.875 89.6754 173.289 90.2838 173.571C90.8921 173.854 91.5552 174 92.2261 173.998H169.245C169.905 173.997 170.557 173.854 171.156 173.579C154.836 171.906 144.187 165.481 137.371 158.789C131.079 152.61 127.016 144.532 125.531 135.837Z' fill='%232C51A4'/%3e %3cpath d='M69.9194 98.9179L70.0148 98.8249L69.9194 98.9179Z' fill='%234B68B4'/%3e %3cpath d='M173.761 170.21L184.929 107.105C185.047 106.445 185.019 105.768 184.846 105.12C184.674 104.472 184.361 103.87 183.93 103.356C183.499 102.842 182.961 102.43 182.353 102.147C181.745 101.864 181.083 101.718 180.412 101.719H108.153C120.089 112.564 124.169 127.848 125.533 135.837C127.018 144.532 131.076 152.61 137.373 158.789C144.189 165.481 154.838 171.906 171.158 173.579C171.833 173.27 172.422 172.802 172.875 172.215C173.328 171.628 173.632 170.94 173.761 170.21V170.21Z' fill='%23506AB0'/%3e %3cpath d='M164.254 173.998H161.015H143.242H137.431L137.617 175.059L140.352 175.02L161.706 175.013H164.68L164.254 173.998Z' fill='%23063387'/%3e %3cpath d='M130.968 170.957C132.033 170.957 132.896 170.094 132.896 169.029C132.896 167.964 132.033 167.101 130.968 167.101C129.903 167.101 129.04 167.964 129.04 169.029C129.04 170.094 129.903 170.957 130.968 170.957Z' fill='%23002272'/%3e %3cpath d='M171.501 164.06H92.0308L102.521 104.794H181.989L171.501 164.06Z' fill='%23EDF4F9'/%3e %3cpath d='M181.22 109.142H101.75L102.521 104.794H181.989L181.22 109.142Z' fill='%23002272'/%3e %3cpath d='M105.309 107.45C105.617 107.45 105.866 107.201 105.866 106.893C105.866 106.586 105.617 106.337 105.309 106.337C105.002 106.337 104.752 106.586 104.752 106.893C104.752 107.201 105.002 107.45 105.309 107.45Z' fill='%23FF4E08'/%3e %3cpath d='M107.198 107.45C107.506 107.45 107.755 107.201 107.755 106.893C107.755 106.586 107.506 106.337 107.198 106.337C106.891 106.337 106.642 106.586 106.642 106.893C106.642 107.201 106.891 107.45 107.198 107.45Z' fill='%23FFBE00'/%3e %3cpath d='M109.088 107.45C109.395 107.45 109.645 107.201 109.645 106.893C109.645 106.586 109.395 106.337 109.088 106.337C108.78 106.337 108.531 106.586 108.531 106.893C108.531 107.201 108.78 107.45 109.088 107.45Z' fill='%2300B084'/%3e %3cpath d='M111.158 113.877H174.564C175.153 113.877 175.717 114.111 176.133 114.527C176.549 114.943 176.783 115.508 176.783 116.096L169.151 158.367C169.151 158.956 168.917 159.52 168.501 159.936C168.085 160.352 167.52 160.586 166.932 160.586H103.525C102.937 160.586 102.372 160.352 101.956 159.936C101.54 159.52 101.306 158.956 101.306 158.367L108.938 116.096C108.938 115.508 109.172 114.943 109.588 114.527C110.005 114.111 110.569 113.877 111.158 113.877Z' fill='%23E2EDF4'/%3e %3cpath d='M173.431 112.832H110.024C109.747 112.831 109.473 112.885 109.217 112.991C108.961 113.096 108.728 113.252 108.532 113.447C108.336 113.643 108.181 113.876 108.075 114.132C107.97 114.388 107.916 114.663 107.917 114.94L100.284 157.21C100.278 157.765 100.489 158.3 100.871 158.702C101.271 159.087 101.808 159.298 102.363 159.289H165.769C166.046 159.29 166.32 159.236 166.576 159.13C166.833 159.024 167.065 158.869 167.261 158.673C167.457 158.477 167.612 158.245 167.718 157.989C167.823 157.733 167.877 157.458 167.877 157.181L175.48 114.91C175.478 114.351 175.255 113.815 174.858 113.42C174.462 113.024 173.926 112.803 173.366 112.803L173.431 112.832Z' fill='white'/%3e %3cpath d='M107.794 152.972C108.27 152.972 108.657 152.585 108.657 152.109C108.657 151.632 108.27 151.246 107.794 151.246C107.317 151.246 106.931 151.632 106.931 152.109C106.931 152.585 107.317 152.972 107.794 152.972Z' fill='%23009DFF'/%3e %3cpath d='M115.332 151.733H112.214V152.478H115.332V151.733Z' fill='%23B3D0E2'/%3e %3cpath d='M112.209 151.733H110.413V152.478H112.209V151.733Z' fill='%23B3D0E2'/%3e %3cpath d='M115.327 154.715H110.413V155.085H115.327V154.715Z' fill='%23B3D0E2'/%3e %3cpath d='M124.702 152.972C125.179 152.972 125.565 152.585 125.565 152.109C125.565 151.632 125.179 151.246 124.702 151.246C124.226 151.246 123.839 151.632 123.839 152.109C123.839 152.585 124.226 152.972 124.702 152.972Z' fill='%23244FA9'/%3e %3cpath d='M132.234 151.733H127.32V152.478H132.234V151.733Z' fill='%23B3D0E2'/%3e %3cpath d='M132.234 154.715H127.32V155.085H132.234V154.715Z' fill='%23B3D0E2'/%3e %3cpath d='M158.846 147.506H112.093V149.193H158.846V147.506Z' fill='%23E2EDF4'/%3e %3cpath d='M126.34 116.437H116.183V117.552H126.34V116.437Z' fill='%23B3D0E2'/%3e %3cg opacity='0.2'%3e %3cpath opacity='0.2' d='M157.6 164.06H138.22L149.322 104.794H168.031L157.6 164.06Z' fill='white'/%3e %3c/g%3e %3cpath d='M148 133C148 139.627 142.024 145 135.227 145C128.43 145 124 139.627 124 133C124 126.373 129.51 121 136.307 121C143.104 121 148 126.373 148 133Z' fill='%230E8EFF'/%3e %3cpath d='M136.822 131.223L134.376 129.382V136.618L136.822 134.777L139.188 133L136.822 131.223ZM136.822 131.223L134.376 129.382V136.618L136.822 134.777L139.188 133L136.822 131.223ZM136.822 131.223L134.376 129.382V136.618L136.822 134.777L139.188 133L136.822 131.223ZM135.178 126.624V125C133.566 125.161 132.098 125.804 130.911 126.777L132.05 127.927C132.94 127.235 134.007 126.769 135.178 126.624ZM130.919 129.06L129.772 127.919C128.802 129.109 128.16 130.58 128 132.196H129.62C129.764 131.022 130.23 129.953 130.919 129.06ZM129.62 133.804H128C128.16 135.42 128.802 136.891 129.772 138.081L130.919 136.932C130.23 136.047 129.764 134.978 129.62 133.804ZM130.911 139.223C132.098 140.196 133.574 140.839 135.178 141V139.376C134.007 139.231 132.94 138.765 132.05 138.073L130.911 139.223ZM144 133C144 137.149 140.856 140.574 136.822 141V139.376C139.966 138.958 142.396 136.256 142.396 133C142.396 129.744 139.966 127.042 136.822 126.624V125C140.856 125.426 144 128.851 144 133Z' fill='white'/%3e %3ccircle cx='59.677' cy='132.203' r='18.677' fill='%230E8EFF'/%3e %3cpath d='M67.2082 127.142H60.9668L63.6758 124.433L63.0912 123.848L59.7976 127.142H59.7729L56.4793 123.848L55.9112 124.433L58.6119 127.142H52.387C51.4813 127.142 50.7402 127.883 50.7402 128.788V138.669C50.7402 139.575 51.4813 140.316 52.387 140.316H67.2082C68.1139 140.316 68.8549 139.575 68.8549 138.669V128.788C68.8549 127.883 68.1139 127.142 67.2082 127.142ZM67.2082 138.669H52.387V128.788H67.2082V138.669Z' fill='white'/%3e %3ccircle cx='148.845' cy='72.677' r='18.677' fill='%230E8EFF'/%3e %3cpath d='M151.828 68.7006V76.6534H141.887V68.7006H151.828ZM152.822 66.7124H140.893C140.346 66.7124 139.898 67.1598 139.898 67.7065V77.6475C139.898 78.1943 140.346 78.6416 140.893 78.6416H152.822C153.368 78.6416 153.816 78.1943 153.816 77.6475V74.1682L157.792 78.1446V67.2095L153.816 71.1859V67.7065C153.816 67.1598 153.368 66.7124 152.822 66.7124Z' fill='white'/%3e %3ccircle cx='216.323' cy='137.986' r='18.677' fill='%230E8EFF'/%3e %3cpath d='M223.352 132.685H213.249L220.382 129.8L219.794 128.367L208.879 132.814C208.249 133.056 207.808 133.695 207.808 134.412V144.774C207.808 145.724 208.577 146.501 209.535 146.501H223.352C224.311 146.501 225.079 145.724 225.079 144.774V134.412C225.079 133.453 224.311 132.685 223.352 132.685ZM223.352 134.412V137.002H221.625V135.275H219.898V137.002H209.535V134.412H223.352ZM209.535 144.774V138.729H223.352V144.774H209.535Z' fill='white'/%3e%3cpath d='M214.285 142.184C215.477 142.184 216.444 141.217 216.444 140.025C216.444 138.832 215.477 137.866 214.285 137.866C213.093 137.866 212.126 138.832 212.126 140.025C212.126 141.217 213.093 142.184 214.285 142.184Z' fill='white'/%3e%3c/svg%3e",img$p="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.99992 1.63636C4.9331 1.63636 1.6363 4.93317 1.6363 8.99998C1.6363 13.0668 4.9331 16.3636 8.99992 16.3636C13.0667 16.3636 16.3635 13.0668 16.3635 8.99998C16.3635 4.93317 13.0667 1.63636 8.99992 1.63636ZM-6.10352e-05 8.99998C-6.10352e-05 4.02943 4.02937 0 8.99992 0C13.9705 0 17.9999 4.02943 17.9999 8.99998C17.9999 13.9705 13.9705 18 8.99992 18C4.02937 18 -6.10352e-05 13.9705 -6.10352e-05 8.99998Z' fill='%23555F7C'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.86 13.0717L10.7194 13.647C10.2975 13.8132 9.96089 13.94 9.70947 14.0274C9.45805 14.1147 9.16615 14.1584 8.83376 14.1584C8.32239 14.1584 7.92503 14.0337 7.64164 13.7845C7.35826 13.5352 7.21657 13.2188 7.21657 12.8352C7.21657 12.6861 7.22723 12.5338 7.24853 12.3782C7.26984 12.2227 7.30393 12.0469 7.35081 11.8509L7.87495 9.9844C7.92183 9.80542 7.96125 9.63603 7.99321 9.47623C8.02517 9.31643 8.04115 9.17048 8.04115 9.03837C8.04115 8.79974 7.99214 8.63355 7.89413 8.5398C7.79612 8.44605 7.60862 8.39917 7.33163 8.39917C7.19527 8.39917 7.05571 8.42048 6.91295 8.46309C6.7702 8.50571 6.64768 8.54619 6.54541 8.58454L6.68603 8.00926C7.03121 7.86863 7.36146 7.74825 7.6768 7.64811C7.99214 7.54797 8.29043 7.4979 8.57168 7.4979C9.07879 7.4979 9.46976 7.62041 9.74462 7.86544C10.0195 8.11047 10.1569 8.429 10.1569 8.82105C10.1569 8.90201 10.1473 9.04477 10.1281 9.24931C10.109 9.45386 10.0738 9.64136 10.0227 9.81181L9.49853 11.6719C9.45592 11.821 9.41756 11.9915 9.38347 12.1833C9.34938 12.375 9.33234 12.5199 9.33234 12.6179C9.33234 12.8651 9.38773 13.0334 9.49853 13.1229C9.60932 13.2124 9.80108 13.2571 10.0738 13.2571C10.2017 13.2571 10.3465 13.2347 10.5085 13.19C10.6704 13.1453 10.7876 13.1058 10.86 13.0717ZM10.9943 5.26708C10.9943 5.59094 10.8718 5.86686 10.6267 6.09484C10.3817 6.32283 10.0866 6.43682 9.74143 6.43682C9.39625 6.43682 9.10009 6.32283 8.85293 6.09484C8.60577 5.86686 8.4822 5.59094 8.4822 5.26708C8.4822 4.94321 8.60577 4.66623 8.85293 4.43611C9.10009 4.206 9.39625 4.09094 9.74143 4.09094C10.0866 4.09094 10.3817 4.206 10.6267 4.43611C10.8718 4.66623 10.9943 4.94321 10.9943 5.26708Z' fill='%23555F7C'/%3e%3c/svg%3e",img$o="data:image/svg+xml,%3csvg width='50' height='50' viewBox='0 0 50 50' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M14.6645 29.3807C14.6689 29.3852 14.6751 29.387 14.6798 29.3904C14.7156 29.422 14.7554 29.4501 14.8011 29.4685C14.8524 29.489 14.9069 29.4999 14.9617 29.4999C15.0164 29.4999 15.0709 29.489 15.1222 29.4685C15.1679 29.4501 15.2077 29.4223 15.2435 29.3904C15.2482 29.3861 15.2541 29.3849 15.2588 29.3807L16.9068 27.7824C17.0707 27.6235 17.0707 27.3655 16.9068 27.2068C16.7434 27.0479 16.4768 27.0479 16.3128 27.2068L15.3817 28.1098V23.6226H23.3585C23.5903 23.6226 23.7785 23.4404 23.7785 23.2154V19.9141H24.5803V28.1095L23.6488 27.2062C23.4854 27.0473 23.2188 27.0473 23.0548 27.2062C22.8912 27.3652 22.8912 27.6235 23.0548 27.7821L24.7031 29.3801C24.7417 29.4175 24.7881 29.4477 24.8394 29.4682C24.8908 29.4887 24.9452 29.4996 25 29.4996C25.0547 29.4996 25.1092 29.4887 25.1605 29.4682C25.2121 29.4477 25.2582 29.4178 25.2968 29.3801L26.9451 27.7821C27.109 27.6235 27.109 27.3652 26.9454 27.2062C26.7817 27.0473 26.5154 27.0473 26.3515 27.2062L25.42 28.1095V19.9141H26.2214V23.2154C26.2214 23.4404 26.4093 23.6226 26.6414 23.6226H34.6198V28.1098L33.688 27.2068C33.5253 27.0479 33.258 27.0479 33.095 27.2068C32.9317 27.3655 32.9317 27.6235 33.0956 27.7824L34.7436 29.3804C34.7825 29.4181 34.8279 29.4477 34.8799 29.4685C34.9312 29.489 34.9857 29.4999 35.0411 29.4999C35.0961 29.4999 35.1509 29.489 35.2022 29.4685C35.2536 29.4483 35.2996 29.4181 35.3385 29.3804L36.9865 27.7824C37.1495 27.6235 37.1495 27.3655 36.9865 27.2068C36.8232 27.0479 36.5556 27.0479 36.3932 27.2068L35.4617 28.1098V23.2154C35.4617 22.9903 35.2738 22.8081 35.0414 22.8081H27.0611V19.9141H28.9618V12.2305H21.0375V19.9141H22.9382V22.8081H14.9617C14.7299 22.8081 14.5416 22.9903 14.5416 23.2154V28.1098L13.6105 27.2068C13.4465 27.0479 13.1799 27.0479 13.0165 27.2068C12.8526 27.3655 12.8526 27.6235 13.0165 27.7824L14.6645 29.3807Z' fill='%23555F7C'/%3e%3cpath d='M28.962 30.394H21.0381V38.0777H28.962V30.394Z' fill='%23555F7C'/%3e%3cpath d='M39 30.394H31.0754V38.0777H39V30.394Z' fill='%23555F7C'/%3e%3cpath d='M18.924 30.394H10.9998V38.0777H18.924V30.394Z' fill='%23555F7C'/%3e%3c/svg%3e",img$n="data:image/svg+xml,%3csvg width='50' height='50' viewBox='0 0 50 50' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M14.6645 29.3807C14.6689 29.3852 14.6751 29.387 14.6798 29.3904C14.7156 29.422 14.7554 29.4501 14.8011 29.4685C14.8524 29.489 14.9069 29.4999 14.9617 29.4999C15.0164 29.4999 15.0709 29.489 15.1222 29.4685C15.1679 29.4501 15.2077 29.4223 15.2435 29.3904C15.2482 29.3861 15.2541 29.3849 15.2588 29.3807L16.9068 27.7824C17.0707 27.6235 17.0707 27.3655 16.9068 27.2068C16.7434 27.0479 16.4768 27.0479 16.3128 27.2068L15.3817 28.1098V23.6226H23.3585C23.5903 23.6226 23.7785 23.4404 23.7785 23.2154V19.9141H24.5803V28.1095L23.6488 27.2062C23.4854 27.0473 23.2188 27.0473 23.0548 27.2062C22.8912 27.3652 22.8912 27.6235 23.0548 27.7821L24.7031 29.3801C24.7417 29.4175 24.7881 29.4477 24.8394 29.4682C24.8908 29.4887 24.9452 29.4996 25 29.4996C25.0547 29.4996 25.1092 29.4887 25.1605 29.4682C25.2121 29.4477 25.2582 29.4178 25.2968 29.3801L26.9451 27.7821C27.109 27.6235 27.109 27.3652 26.9454 27.2062C26.7817 27.0473 26.5154 27.0473 26.3515 27.2062L25.42 28.1095V19.9141H26.2214V23.2154C26.2214 23.4404 26.4093 23.6226 26.6414 23.6226H34.6198V28.1098L33.688 27.2068C33.5253 27.0479 33.258 27.0479 33.095 27.2068C32.9317 27.3655 32.9317 27.6235 33.0956 27.7824L34.7436 29.3804C34.7825 29.4181 34.8279 29.4477 34.8799 29.4685C34.9312 29.489 34.9857 29.4999 35.0411 29.4999C35.0961 29.4999 35.1509 29.489 35.2022 29.4685C35.2536 29.4483 35.2996 29.4181 35.3385 29.3804L36.9865 27.7824C37.1495 27.6235 37.1495 27.3655 36.9865 27.2068C36.8232 27.0479 36.5556 27.0479 36.3932 27.2068L35.4617 28.1098V23.2154C35.4617 22.9903 35.2738 22.8081 35.0414 22.8081H27.0611V19.9141H28.9618V12.2305H21.0375V19.9141H22.9382V22.8081H14.9617C14.7299 22.8081 14.5416 22.9903 14.5416 23.2154V28.1098L13.6105 27.2068C13.4465 27.0479 13.1799 27.0479 13.0165 27.2068C12.8526 27.3655 12.8526 27.6235 13.0165 27.7824L14.6645 29.3807Z' fill='%231871E8'/%3e%3cpath d='M28.962 30.394H21.0381V38.0777H28.962V30.394Z' fill='%231871E8'/%3e%3cpath d='M39 30.394H31.0754V38.0777H39V30.394Z' fill='%231871E8'/%3e%3cpath d='M18.924 30.394H10.9998V38.0777H18.924V30.394Z' fill='%231871E8'/%3e%3c/svg%3e",img$m="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M15.75 11.7075L14.6925 12.75L10.935 9L14.6925 5.25L15.75 6.2925L13.08 9L15.75 11.7075ZM2.25 4.5H12V6H2.25V4.5ZM2.25 9.75V8.25H9.75V9.75H2.25ZM2.25 13.5V12H12V13.5H2.25Z' fill='%23555F7C'/%3e%3c/svg%3e",img$l="data:image/svg+xml,%3csvg width='23' height='24' viewBox='0 0 23 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M20 4C20.5304 4 21.0391 4.21071 21.4142 4.58579C21.7893 4.96086 22 5.46957 22 6V18C22 18.5304 21.7893 19.0391 21.4142 19.4142C21.0391 19.7893 20.5304 20 20 20H4C3.46957 20 2.96086 19.7893 2.58579 19.4142C2.21071 19.0391 2 18.5304 2 18V6C2 5.46957 2.21071 4.96086 2.58579 4.58579C2.96086 4.21071 3.46957 4 4 4H20ZM20 18V6H4V18H20ZM6 10H8V12H6V10ZM6 14H14V16H6V14ZM16 14H18V16H16V14ZM10 10H18V12H10V10Z' fill='%23555F7C'/%3e%3c/svg%3e",img$k="data:image/svg+xml,%3csvg width='23' height='24' viewBox='0 0 23 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M20 4C20.5304 4 21.0391 4.21071 21.4142 4.58579C21.7893 4.96086 22 5.46957 22 6V18C22 18.5304 21.7893 19.0391 21.4142 19.4142C21.0391 19.7893 20.5304 20 20 20H4C3.46957 20 2.96086 19.7893 2.58579 19.4142C2.21071 19.0391 2 18.5304 2 18V6C2 5.46957 2.21071 4.96086 2.58579 4.58579C2.96086 4.21071 3.46957 4 4 4H20ZM20 18V6H4V18H20ZM6 10H8V12H6V10ZM6 14H14V16H6V14ZM16 14H18V16H16V14ZM10 10H18V12H10V10Z' fill='%231871E8'/%3e%3c/svg%3e",img$i="data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.4167 7L11.9934 5.3725L12.1917 3.22L10.0859 2.74167L8.98337 0.875L7.00004 1.72667L5.01671 0.875L3.91421 2.73583L1.80837 3.20833L2.00671 5.36667L0.583374 7L2.00671 8.6275L1.80837 10.7858L3.91421 11.2642L5.01671 13.125L7.00004 12.2675L8.98337 13.1192L10.0859 11.2583L12.1917 10.78L11.9934 8.6275L13.4167 7ZM5.88587 9.75333L3.66921 7.53083L4.53254 6.6675L5.88587 8.02667L9.29837 4.6025L10.1617 5.46583L5.88587 9.75333Z' fill='%23FFBB0A'/%3e%3c/svg%3e",img$h="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7 14H5V19H10V17H7V14ZM5 10H7V7H10V5H5V10ZM17 17H14V19H19V14H17V17ZM14 5V7H17V10H19V5H14Z' fill='%23555F7C'/%3e%3c/svg%3e",img$g="data:image/svg+xml,%3csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6.58335 3.08342H5.41669V5.41675H3.08335V6.58342H5.41669V8.91675H6.58335V6.58342H8.91669V5.41675H6.58335V3.08342ZM6.00002 0.166748C2.78002 0.166748 0.166687 2.78008 0.166687 6.00008C0.166687 9.22008 2.78002 11.8334 6.00002 11.8334C9.22002 11.8334 11.8334 9.22008 11.8334 6.00008C11.8334 2.78008 9.22002 0.166748 6.00002 0.166748ZM6.00002 10.6667C3.42752 10.6667 1.33335 8.57258 1.33335 6.00008C1.33335 3.42758 3.42752 1.33341 6.00002 1.33341C8.57252 1.33341 10.6667 3.42758 10.6667 6.00008C10.6667 8.57258 8.57252 10.6667 6.00002 10.6667Z' fill='%231871E8'/%3e%3c/svg%3e",img$f="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5 16H8V19H10V14H5V16ZM8 8H5V10H10V5H8V8ZM14 19H16V16H19V14H14V19ZM16 8V5H14V10H19V8H16Z' fill='%23555F7C'/%3e%3c/svg%3e",img$e="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M21 8H3V6H21V8ZM13.81 16H10V18H13.09C13.21 17.28 13.46 16.61 13.81 16ZM18 11H6V13H18V11ZM21.12 15.46L19 17.59L16.88 15.46L15.47 16.88L17.59 19L15.47 21.12L16.88 22.54L19 20.41L21.12 22.54L22.54 21.12L20.41 19L22.54 16.88L21.12 15.46Z' fill='%231B1D1F'/%3e%3c/svg%3e",img$d="data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.33329 1.16663H2.33329C1.69163 1.16663 1.16663 1.69163 1.16663 2.33329V10.5H2.33329V2.33329H9.33329V1.16663ZM11.6666 3.49996H4.66663C4.02496 3.49996 3.49996 4.02496 3.49996 4.66663V11.6666C3.49996 12.3083 4.02496 12.8333 4.66663 12.8333H11.6666C12.3083 12.8333 12.8333 12.3083 12.8333 11.6666V4.66663C12.8333 4.02496 12.3083 3.49996 11.6666 3.49996ZM11.6666 11.6666H4.66663V4.66663H11.6666V11.6666Z' fill='%23555F7C'/%3e%3cpath d='M7.875 5.83337H9.33333C9.72011 5.83337 10.091 5.98087 10.3645 6.24342C10.638 6.50598 10.7917 6.86207 10.7917 7.23337V9.10004C10.7917 9.47134 10.638 9.82744 10.3645 10.09C10.091 10.3525 9.72011 10.5 9.33333 10.5H7.875V5.83337ZM9.33333 9.56671C9.46226 9.56671 9.5859 9.51754 9.67707 9.43002C9.76823 9.34251 9.81944 9.22381 9.81944 9.10004V7.23337C9.81944 7.10961 9.76823 6.99091 9.67707 6.90339C9.5859 6.81587 9.46226 6.76671 9.33333 6.76671H8.84722V9.56671H9.33333Z' fill='%23555F7C'/%3e%3crect x='5.83337' y='5.83337' width='1.16667' height='4.66667' fill='%23555F7C'/%3e%3c/svg%3e",img$c="data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.5835 1.75C4.68433 1.75 2.3335 4.10083 2.3335 7H0.583496L2.91683 9.3275L5.25016 7H3.50016C3.50016 4.7425 5.326 2.91667 7.5835 2.91667C9.841 2.91667 11.6668 4.7425 11.6668 7C11.6668 9.2575 9.841 11.0833 7.5835 11.0833C6.45766 11.0833 5.43683 10.6225 4.70183 9.88167L3.8735 10.71C4.82433 11.6608 6.131 12.25 7.5835 12.25C10.4827 12.25 12.8335 9.89917 12.8335 7C12.8335 4.10083 10.4827 1.75 7.5835 1.75ZM7.00016 4.66667V7.58333L9.47933 9.05333L9.9285 8.30667L7.87516 7.0875V4.66667H7.00016Z' fill='%23555F7C'/%3e%3c/svg%3e",img$a="data:image/svg+xml,%3csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6.6 8.4V3.6H7.8V8.4H6.6ZM4.2 8.4V3.6H5.4V8.4H4.2ZM6 0C6.78793 0 7.56815 0.155195 8.2961 0.456723C9.02405 0.758251 9.68549 1.20021 10.2426 1.75736C10.7998 2.31451 11.2417 2.97595 11.5433 3.7039C11.8448 4.43185 12 5.21207 12 6C12 7.5913 11.3679 9.11742 10.2426 10.2426C9.11742 11.3679 7.5913 12 6 12C5.21207 12 4.43185 11.8448 3.7039 11.5433C2.97595 11.2417 2.31451 10.7998 1.75736 10.2426C0.632141 9.11742 0 7.5913 0 6C0 4.4087 0.632141 2.88258 1.75736 1.75736C2.88258 0.632141 4.4087 0 6 0ZM6 1.2C4.72696 1.2 3.50606 1.70571 2.60589 2.60589C1.70571 3.50606 1.2 4.72696 1.2 6C1.2 7.27304 1.70571 8.49394 2.60589 9.39411C3.50606 10.2943 4.72696 10.8 6 10.8C7.27304 10.8 8.49394 10.2943 9.39411 9.39411C10.2943 8.49394 10.8 7.27304 10.8 6C10.8 4.72696 10.2943 3.50606 9.39411 2.60589C8.49394 1.70571 7.27304 1.2 6 1.2Z' fill='white'/%3e%3c/svg%3e",img$9="data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.83317 9.62496L9.33317 6.99996L5.83317 4.37496V9.62496ZM6.99984 1.16663C3.77984 1.16663 1.1665 3.77996 1.1665 6.99996C1.1665 10.22 3.77984 12.8333 6.99984 12.8333C10.2198 12.8333 12.8332 10.22 12.8332 6.99996C12.8332 3.77996 10.2198 1.16663 6.99984 1.16663ZM6.99984 11.6666C4.42734 11.6666 2.33317 9.57246 2.33317 6.99996C2.33317 4.42746 4.42734 2.33329 6.99984 2.33329C9.57234 2.33329 11.6665 4.42746 11.6665 6.99996C11.6665 9.57246 9.57234 11.6666 6.99984 11.6666Z' fill='white'/%3e%3c/svg%3e",img$8="data:image/svg+xml,%3csvg width='275' height='275' viewBox='0 0 275 275' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e%3cpath d='M97.4147 116.707H67C67 116.707 67 118.077 67 119.766V155.234C67 156.923 67 158.293 67 158.293H94.3733C96.0531 158.293 97.4147 158.293 97.4147 158.293V140.136H127.502V168.185C127.502 176.619 134.324 183.48 142.709 183.48H165.354V191.941C165.354 193.63 165.354 195 165.354 195H195.959C197.638 195 199 195 199 195V168.902C199 167.212 199 165.842 199 165.842H165.354C165.354 165.842 165.354 167.212 165.354 168.902V177.362H142.709C137.678 177.362 133.585 173.245 133.585 168.184V140.136H165.354V148.596C165.354 150.285 165.354 151.655 165.354 151.655H195.959C197.638 151.655 199 151.655 199 151.655V125.557C199 123.868 199 122.498 199 122.498H165.354C165.354 122.498 165.354 123.868 165.354 125.557V134.017H133.585V106.815C133.585 101.754 137.678 97.6372 142.709 97.6372H165.354V106.098C165.354 107.787 165.354 109.157 165.354 109.157H195.959H199V80H195.959L165.354 80C165.354 80 165.354 81.3699 165.354 83.0592V91.5195H142.709C134.324 91.5195 127.502 98.3812 127.502 106.815V134.018H97.4147V119.766C97.4147 118.077 97.4147 116.707 97.4147 116.707Z' fill='%23FEECB2'/%3e%3crect x='67' y='116' width='31' height='43' fill='%23FDB200'/%3e%3crect x='165' y='80' width='34' height='30' fill='%23FE8D00'/%3e%3crect x='165' y='122' width='34' height='30' fill='%23FE8D00'/%3e%3crect x='165' y='165' width='34' height='30' fill='%23FE8D00'/%3e%3c/svg%3e",img$7="data:image/svg+xml,%3csvg width='275' height='275' viewBox='0 0 275 275' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e%3crect opacity='0.5' x='86.188' y='75.1882' width='72.6341' height='98.5749' rx='4' fill='%23B9D1E1'/%3e%3crect opacity='0.5' x='93.1055' y='70' width='72.6341' height='98.5749' rx='4' fill='%23D4E3ED'/%3e%3crect x='81' y='80.3763' width='72.6341' height='98.5749' rx='4' fill='%23D4E3ED'/%3e%3crect x='91.3765' y='99.3995' width='55.3403' height='5.18815' rx='2.59408' fill='%23B9D1E1'/%3e%3crect x='91.3765' y='111.505' width='55.3403' height='5.18815' rx='2.59408' fill='%23B9D1E1'/%3e%3crect x='91.3765' y='125.34' width='55.3403' height='5.18815' rx='2.59408' fill='%23B9D1E1'/%3e%3crect x='91.3765' y='135.717' width='55.3403' height='5.18815' rx='2.59408' fill='%23B9D1E1'/%3e%3crect x='91.3765' y='149.552' width='32.8583' height='5.18815' rx='2.59408' fill='%23B9D1E1'/%3e%3crect x='178.312' y='145.546' width='6.91753' height='20.7526' transform='rotate(121.819 178.312 145.546)' fill='%23E2F1FF'/%3e%3cpath d='M219.353 166.94C221.23 168.105 221.808 170.571 220.643 172.448L217.567 177.406C216.402 179.283 213.936 179.861 212.059 178.696L172.842 154.363L180.137 142.607L219.353 166.94Z' fill='%230E8EFF'/%3e%3crect x='182.518' y='142.049' width='17.2938' height='5.18815' transform='rotate(121.819 182.518 142.049)' fill='%238DC7FF'/%3e%3crect x='212.465' y='162.666' width='13.8351' height='5.18815' transform='rotate(121.819 212.465 162.666)' fill='%238DC7FF'/%3e%3crect opacity='0.6' x='112.723' y='142.524' width='54.4333' height='12.1057' transform='rotate(-58.1813 112.723 142.524)' fill='white'/%3e%3cpath opacity='0.6' d='M125.019 150.757L153.718 104.504L158.365 109.176L131.6 152.312L125.019 150.757Z' fill='white'/%3e%3ccircle cx='135.277' cy='124.353' r='27.8995' transform='rotate(-13.1813 135.277 124.353)' fill='%23E2F1FF' fill-opacity='0.5' stroke='%230E8EFF' stroke-width='3'/%3e%3c/svg%3e",img$6="data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='275' height='275' viewBox='0 0 275 275' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e %3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e %3cpath d='M182.25 137.083C182.25 164.371 163.37 189.888 138 196.083C112.63 189.888 93.75 164.371 93.75 137.083V107.583L138 87.9167L182.25 107.583V137.083ZM138 186.25C156.437 181.333 172.417 159.405 172.417 138.165V113.975L138 98.6351L103.583 113.975V138.165C103.583 159.405 119.562 181.333 138 186.25ZM133.083 117.417H142.917V146.917H133.083V117.417ZM133.083 156.75H142.917V166.583H133.083V156.75Z' fill='%23555F7C'/%3e%3c/svg%3e",img$5="data:image/svg+xml,%3csvg width='30' height='30' viewBox='0 0 30 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='15' cy='15' r='15' fill='rgba(0%2c 0%2c 0%2c 0.05)' fill-opacity='0.8'/%3e%3cpath d='M20.4444 9H9.55556C8.69222 9 8 9.675 8 10.5V19.5C8 20.325 8.69222 21 9.55556 21H20.4444C21.3 21 22 20.325 22 19.5V10.5C22 9.675 21.3078 9 20.4444 9ZM20.4444 19.5H9.55556V12H20.4444V19.5Z' fill='%23555F7C'/%3e%3c/svg%3e",img$4="data:image/svg+xml,%3csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M17.4167 4.58333V6.41667H13.75V4.58333H17.4167ZM8.25 4.58333V10.0833H4.58333V4.58333H8.25ZM17.4167 11.9167V17.4167H13.75V11.9167H17.4167ZM8.25 15.5833V17.4167H4.58333V15.5833H8.25ZM19.25 2.75H11.9167V8.25H19.25V2.75ZM10.0833 2.75H2.75V11.9167H10.0833V2.75ZM19.25 10.0833H11.9167V19.25H19.25V10.0833ZM10.0833 13.75H2.75V19.25H10.0833V13.75Z' fill='%23555F7C' /%3e %3c/svg%3e",img$3="data:image/svg+xml,%3csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.0835 16.4999H11.9168V14.6666H10.0835V16.4999ZM11.0002 1.83325C9.79638 1.83325 8.60438 2.07035 7.49223 2.53102C6.38008 2.99169 5.36955 3.6669 4.51835 4.51811C2.79927 6.23719 1.8335 8.56877 1.8335 10.9999C1.8335 13.4311 2.79927 15.7626 4.51835 17.4817C5.36955 18.3329 6.38008 19.0081 7.49223 19.4688C8.60438 19.9295 9.79638 20.1666 11.0002 20.1666C13.4313 20.1666 15.7629 19.2008 17.482 17.4817C19.2011 15.7626 20.1668 13.4311 20.1668 10.9999C20.1668 9.79613 19.9297 8.60414 19.4691 7.49199C19.0084 6.37984 18.3332 5.36931 17.482 4.51811C16.6308 3.6669 15.6202 2.99169 14.5081 2.53102C13.3959 2.07035 12.2039 1.83325 11.0002 1.83325ZM11.0002 18.3333C6.95766 18.3333 3.66683 15.0424 3.66683 10.9999C3.66683 6.95742 6.95766 3.66659 11.0002 3.66659C15.0427 3.66659 18.3335 6.95742 18.3335 10.9999C18.3335 15.0424 15.0427 18.3333 11.0002 18.3333ZM11.0002 5.49992C10.0277 5.49992 9.09507 5.88623 8.40744 6.57386C7.7198 7.26149 7.3335 8.19412 7.3335 9.16658H9.16683C9.16683 8.68035 9.35998 8.21404 9.7038 7.87022C10.0476 7.52641 10.5139 7.33325 11.0002 7.33325C11.4864 7.33325 11.9527 7.52641 12.2965 7.87022C12.6403 8.21404 12.8335 8.68035 12.8335 9.16658C12.8335 10.9999 10.0835 10.7708 10.0835 13.7499H11.9168C11.9168 11.6874 14.6668 11.4583 14.6668 9.16658C14.6668 8.19412 14.2805 7.26149 13.5929 6.57386C12.9053 5.88623 11.9726 5.49992 11.0002 5.49992Z' fill='%23555F7C'/%3e%3c/svg%3e",img$2="data:image/svg+xml,%3csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.9998 20.1667C12.0082 20.1667 12.8332 19.3417 12.8332 18.3334H9.1665C9.1665 19.3417 9.9915 20.1667 10.9998 20.1667ZM16.4998 14.6667V10.0834C16.4998 7.26925 15.0057 4.91341 12.3748 4.29008V3.66675C12.3748 2.90591 11.7607 2.29175 10.9998 2.29175C10.239 2.29175 9.62484 2.90591 9.62484 3.66675V4.29008C7.00317 4.91341 5.49984 7.26008 5.49984 10.0834V14.6667L3.6665 16.5001V17.4167H18.3332V16.5001L16.4998 14.6667ZM14.6665 15.5834H7.33317V10.0834C7.33317 7.81008 8.71734 5.95841 10.9998 5.95841C13.2823 5.95841 14.6665 7.81008 14.6665 10.0834V15.5834Z' fill='%23555F7C'/%3e%3c/svg%3e",img$1="data:image/svg+xml,%3csvg width='128' height='128' viewBox='0 0 128 128' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M37.7704 30L26.5996 56.1511L50.7767 98H77.2227L37.7704 30Z' fill='%23728FBE'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M69.6953 30L79.948 47.7202L90.2289 30H69.6953Z' fill='%23728FBE'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M90.2287 30L50.7764 98H77.2224L101.399 56.1511L90.2287 30Z' fill='%23325491'/%3e%3c/svg%3e",img="data:image/svg+xml,%3csvg width='275' height='275' viewBox='0 0 275 275' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e%3cpath d='M84 169H141V181L84 184V169Z' fill='%23FDB200'/%3e%3cpath d='M81 114H126C134.284 114 141 120.716 141 129V180H81V114Z' fill='%23FED966'/%3e%3cpath d='M141 184C144.866 184 148 182.209 148 180H134C134 182.209 137.134 184 141 184Z' fill='%23FE8D00'/%3e%3cpath d='M115.355 128L107.667 136.395L104.645 133.108L103 134.904L107.667 140L117 129.809L115.355 128Z' fill='%23FE8D00'/%3e%3crect x='97' y='150' width='25' height='3' fill='%23FE8D00'/%3e%3crect x='97' y='158' width='25' height='3' fill='%23FE8D00'/%3e%3crect x='97' y='166' width='25' height='3' fill='%23FE8D00'/%3e%3cpath d='M199 183L141 180L141 172L199 169L199 183Z' fill='%23FED966'/%3e%3cpath d='M141 129C141 120.716 147.716 114 156 114H201V180H141V129Z' fill='%23FDC000'/%3e%3cpath d='M180 128.41L178.59 127L173 132.59L167.41 127L166 128.41L171.59 134L166 139.59L167.41 141L173 135.41L178.59 141L180 139.59L174.41 134L180 128.41Z' fill='%23FEECB2'/%3e%3crect x='160' y='150' width='25' height='3' fill='%23FEECB2'/%3e%3crect x='160' y='158' width='25' height='3' fill='%23FEECB2'/%3e%3crect x='160' y='166' width='25' height='3' fill='%23FEECB2'/%3e%3cpath d='M141 117.5C144 103.259 140.999 94.5 137.999 88.5C134.999 82.5 125.499 85 126.999 93C128.499 101 137.473 105.009 149.999 100.5C162.5 96 164.5 80 145.5 74' stroke='%23B9D1E1' stroke-dasharray='2 2'/%3e%3cpath d='M144.674 71.5778C144.753 71.7848 144.727 72.0501 144.549 72.3325C144.37 72.6152 144.053 72.8846 143.628 73.0465C143.204 73.2084 142.788 73.2184 142.466 73.1263C142.145 73.0342 141.95 72.8534 141.871 72.6464C141.792 72.4394 141.817 72.1741 141.996 71.8916C142.174 71.609 142.491 71.3396 142.916 71.1777C143.341 71.0158 143.757 71.0057 144.078 71.0979C144.399 71.19 144.595 71.3708 144.674 71.5778Z' stroke='%23839DAE'/%3e%3ccircle cx='140.936' cy='73.0026' r='1.5' transform='rotate(-20.8665 140.936 73.0026)' fill='%23B9D1E1'/%3e%3cpath d='M143.695 74.6262C143.857 75.0509 143.867 75.4669 143.775 75.7882C143.683 76.1093 143.502 76.3051 143.295 76.384C143.088 76.4629 142.822 76.4371 142.54 76.2588C142.257 76.0804 141.988 75.7633 141.826 75.3386C141.664 74.9138 141.654 74.4978 141.746 74.1766C141.838 73.8555 142.019 73.6597 142.226 73.5807C142.433 73.5018 142.698 73.5276 142.981 73.7059C143.264 73.8843 143.533 74.2014 143.695 74.6262Z' stroke='%23839DAE'/%3e%3c/svg%3e";!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();class DataCenter$1{openImporterPanel(){store$4.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$4.dispatch(unmountAllPanel$1(""))}}!function(e){e.fileUpload="fileUpload",e.fileUploadProgress="fileUploadProgress",e.tdoCreated="tdoCreated",e.jobCreated="jobCreated",e.languageChange="languageChange",e.permissionChanged="permissionChanged"}(SdkEvents=SdkEvents||{}),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)}}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$2 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$O,action:{type:"OPEN_HELP_LINK"}}]}}}}mountHelpPanel(){var{helpPanelMicroFrontend:e,helpPanelConfig:t}=this.getPanelConfig();store$4.dispatch(mountPanel$1({panelId:this.CUSTOM_HELP_PANEL_ID,microFrontend:e,panelConfig:t}))}panels(){return(null===store$4||void 0===store$4?void 0:store$4.getState()).panels}isCustomHelpPanelOpen(){return!!this.panels().find(e=>e.panelId===this.CUSTOM_HELP_PANEL_ID)}handleCustomDocsUrl(e){this.isURLValid(e)&&(store$4.dispatch(this.actions.setCustomDocsUrlAction(e)),store$4.dispatch(this.actions.updateSelectedTabAction(1,"")))}handleCustomKnowledgeBaseUrl(e){this.isURLValid(e)&&(store$4.dispatch(this.actions.setCustomKnowledgeBaseUrlAction(e)),store$4.dispatch(this.actions.updateSelectedTabAction(0,"")))}openDocsPanel(e,t=!0){var n;if(e&&!this.isURLValid(e))return n=new SdkError("Can not open the custom url! The url should be valid and start with http or https"),console.error(n.message),void store$4.dispatch(this.actions.updateSelectedTabAction(1,""));this.isCustomHelpPanelOpen()?this.handleCustomDocsUrl(e):(t&&this.unmountAllPanel(),this.mountHelpPanel(),e?this.handleCustomDocsUrl(e):store$4.dispatch(this.actions.updateSelectedTabAction(1,"")))}openKnowledgeBasePanel(e){var t;if(e&&!this.isURLValid(e))return t=new SdkError("Can not open the custom url! The url should be valid and start with http or https"),console.error(t.message),void store$4.dispatch(this.actions.updateSelectedTabAction(0,""));this.isCustomHelpPanelOpen()?this.handleCustomKnowledgeBaseUrl(e):(this.unmountAllPanel(),this.mountHelpPanel(),e?this.handleCustomKnowledgeBaseUrl(e):store$4.dispatch(this.actions.updateSelectedTabAction(0,"")))}}var genericMessage="Invariant Violation",_a$4=Object.setPrototypeOf,setPrototypeOf$1=void 0===_a$4?function(e,t){return e.__proto__=t,e}:_a$4,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$1(e,n.prototype),e}return __extends$1(n,t),n}(Error);function invariant$1(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 maybe$1(e){try{return e()}catch(e){}}!function(e){e.debug=wrapConsoleMethod("debug"),e.log=wrapConsoleMethod("log"),e.warn=wrapConsoleMethod("warn"),e.error=wrapConsoleMethod("error")}(invariant$1=invariant$1||{});var global$c=maybe$1(function(){return globalThis})||maybe$1(function(){return window})||maybe$1(function(){return self})||maybe$1(function(){return global})||maybe$1(function(){return Function("return this")()}),__="__",GLOBAL_KEY=[__,__].join("DEV");function getDEV(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(global$c,GLOBAL_KEY,{value:"production"!==maybe$1(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),global$c[GLOBAL_KEY]}}var DEV=getDEV();function maybe(e){try{return e()}catch(e){}}const safeGlobal=maybe(function(){return globalThis})||maybe(function(){return window})||maybe(function(){return self})||maybe(function(){return global})||maybe(function(){return Function("return this")()});let needToRemove=!1;function install(){!safeGlobal||maybe(function(){return"production"})||maybe(function(){return process})||(Object.defineProperty(safeGlobal,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),needToRemove=!0)}function remove(){needToRemove&&(delete safeGlobal.process,needToRemove=!1)}function _typeof$2(e){return(_typeof$2="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$7(e){return"object"==_typeof$2(e)&&null!==e}install();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(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(s-1)+"^"],["",l[r+1]]]))}return n+printPrefixedLines([["".concat(o-1),e[i-1]],["".concat(o),a],["",whitespace(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(e){return Array(e+1).join(" ")}function leftPad(e,t){return whitespace(e-t.length)+t}function _typeof$1(e){return(_typeof$1="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$2(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$2(Object(n),!0).forEach(function(e){_defineProperty(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys$2(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty(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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$4(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$4(e,t,n){return t&&_defineProperties$4(e.prototype,t),n&&_defineProperties$4(e,n),e}function _inherits(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$2(e,t)}function _createSuper(n){var r=_isNativeReflectConstruct$2();return function(){var e,t=_getPrototypeOf$2(n);return _possibleConstructorReturn(this,r?(e=_getPrototypeOf$2(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof$1(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _wrapNativeSuper$2(e){var n="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper$2=function(e){if(null===e||!_isNativeFunction$2(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$2(e,arguments,_getPrototypeOf$2(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$2(t,e)})(e)}function _construct$2(e,t,n){return(_construct$2=_isNativeReflectConstruct$2()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);t=new(Function.bind.apply(e,r));return n&&_setPrototypeOf$2(t,n.prototype),t}).apply(null,arguments)}function _isNativeReflectConstruct$2(){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$2(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _setPrototypeOf$2(e,t){return(_setPrototypeOf$2=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _getPrototypeOf$2(e){return(_getPrototypeOf$2=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var GraphQLError=function(){_inherits(p,_wrapNativeSuper$2(Error));var d=_createSuper(p);function p(e,t,n,r,i,o,a){_classCallCheck(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$7(r)?e.extensions=_objectSpread({},r):e.extensions=null!=a?a:{},Object.defineProperties(_assertThisInitialized(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(e),"stack",{value:o.stack,writable:!0,configurable:!0}),_possibleConstructorReturn(e)):(Error.captureStackTrace?Error.captureStackTrace(_assertThisInitialized(e),p):Object.defineProperty(_assertThisInitialized(e),"stack",{value:Error().stack,writable:!0,configurable:!0}),e)}return _createClass$4(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=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(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}var nodejsCustomInspectSymbol="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0,nodejsCustomInspectSymbol$1=nodejsCustomInspectSymbol;function defineInspect(e){var t=e.prototype.toJSON;"function"!=typeof t&&invariant(0),e.prototype.inspect=t,nodejsCustomInspectSymbol$1&&(e.prototype[nodejsCustomInspectSymbol$1]=t)}var Location=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=(defineInspect(Location),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}defineInspect(Token);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(e){return(_typeof="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(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)];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}function devAssert(e,t){if(!Boolean(e))throw new Error(t)}var instanceOf=function(e,t){return e instanceof t};function _defineProperties$3(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$3(e,t,n){return t&&_defineProperties$3(e.prototype,t),n&&_defineProperties$3(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(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$3(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(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,'\\"""')+'"""'}var Lexer=function(){function e(e){var t=new Token(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(TokenKind.BANG,o,o+1,s,l,t);case 35:return readComment(n,o,s,l,t);case 36:return new Token(TokenKind.DOLLAR,o,o+1,s,l,t);case 38:return new Token(TokenKind.AMP,o,o+1,s,l,t);case 40:return new Token(TokenKind.PAREN_L,o,o+1,s,l,t);case 41:return new Token(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(TokenKind.SPREAD,o,o+3,s,l,t);break;case 58:return new Token(TokenKind.COLON,o,o+1,s,l,t);case 61:return new Token(TokenKind.EQUALS,o,o+1,s,l,t);case 64:return new Token(TokenKind.AT,o,o+1,s,l,t);case 91:return new Token(TokenKind.BRACKET_L,o,o+1,s,l,t);case 93:return new Token(TokenKind.BRACKET_R,o,o+1,s,l,t);case 123:return new Token(TokenKind.BRACE_L,o,o+1,s,l,t);case 124:return new Token(TokenKind.PIPE,o,o+1,s,l,t);case 125:return new Token(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(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(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(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(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(TokenKind.BLOCK_STRING,t,s+3,n,r,i,dedentBlockStringValue(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(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$2(e,t){return new Parser(e,t).parseDocument()}var Parser=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.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:Kind.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=this._lexer.token;if(this.peek(TokenKind.BRACE_L))return{kind:Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(TokenKind.NAME)&&(t=this.parseName()),{kind:Kind.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},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.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.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:Kind.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.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.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:Kind.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.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:Kind.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.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.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.INT,value:t.value,loc:this.loc(t)};case TokenKind.FLOAT:return this._lexer.advance(),{kind:Kind.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.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:Kind.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:Kind.NULL,loc:this.loc(t)};default:return{kind:Kind.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.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.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.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.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.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.LIST_TYPE,type:t,loc:this.loc(e)}):this.parseNamedType();return this.expectOptionalToken(TokenKind.BANG)?{kind:Kind.NON_NULL_TYPE,type:t,loc:this.loc(e)}:t},t.parseNamedType=function(){var e=this._lexer.token;return{kind:Kind.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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(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={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=Object.freeze({});function visit(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,v=Object.keys(l);y<v.length;y++){var x=v[y];g[x]=l[x]}l=g}for(var C=0,b=0;b<s.length;b++){var $=s[b][0],w=s[b][1];i&&($-=C),i&&null===w?(l.splice($,1),C++):l[$]=w}}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 S=void 0;if(!Array.isArray(l)){if(!isNode(l))throw new Error("Invalid AST Node: ".concat(inspect(l),"."));var _=getVisitFn(t,l.kind,h);if(_){if((S=_.call(t,l,c,u,d,p))===BREAK)break;if(!1===S){if(!h){d.pop();continue}}else if(void 0!==S&&(s.push([c,S]),!h)){if(!isNode(S)){d.pop();continue}l=S}}}void 0===S&&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(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;r=n?r.leave:r.enter;return"function"==typeof r?r:void 0}r=n?e.leave:e.enter;if(r){if("function"==typeof r)return r;n=r[t];return"function"==typeof n?n:void 0}}function print(e){return 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(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=wrap$1("(",join(e.variableDefinitions,", "),")"),i=join(e.directives," "),e=e.selectionSet;return n||i||r||"query"!==t?join([t,join([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$1(" = ",r)+wrap$1(" ",join(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$1("",t,": ")+n,n=t+wrap$1("(",join(r,", "),")");return n.length>MAX_LINE_LENGTH&&(n=t+wrap$1("(\n",indent(join(r,"\n")),"\n)")),join([n,join(i," "),e]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+wrap$1(" ",join(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,e=e.selectionSet;return join(["...",wrap$1("on ",t),join(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$1("(",join(r,", "),")")," ")+"on ".concat(n," ").concat(wrap$1("",join(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(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(e.values,", ")+"]"},ObjectValue:function(e){return"{"+join(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+wrap$1("(",join(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(["schema",join(t," "),block(e)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:addDescription(function(e){return join(["scalar",e.name,join(e.directives," ")]," ")}),ObjectTypeDefinition:addDescription(function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join(["type",t,wrap$1("implements ",join(n," & ")),join(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$1("(\n",indent(join(n,"\n")),"\n)"):wrap$1("(",join(n,", "),")"))+": "+r+wrap$1(" ",join(e," "))}),InputValueDefinition:addDescription(function(e){var t=e.name,n=e.type,r=e.defaultValue,e=e.directives;return join([t+": "+n,wrap$1("= ",r),join(e," ")]," ")}),InterfaceTypeDefinition:addDescription(function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join(["interface",t,wrap$1("implements ",join(n," & ")),join(r," "),block(e)]," ")}),UnionTypeDefinition:addDescription(function(e){var t=e.name,n=e.directives,e=e.types;return join(["union",t,join(n," "),e&&0!==e.length?"= "+join(e," | "):""]," ")}),EnumTypeDefinition:addDescription(function(e){var t=e.name,n=e.directives,e=e.values;return join(["enum",t,join(n," "),block(e)]," ")}),EnumValueDefinition:addDescription(function(e){return join([e.name,join(e.directives," ")]," ")}),InputObjectTypeDefinition:addDescription(function(e){var t=e.name,n=e.directives,e=e.fields;return join(["input",t,join(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$1("(\n",indent(join(n,"\n")),"\n)"):wrap$1("(",join(n,", "),")"))+(r?" repeatable":"")+" on "+join(e," | ")}),SchemaExtension:function(e){var t=e.directives,e=e.operationTypes;return join(["extend schema",join(t," "),block(e)]," ")},ScalarTypeExtension:function(e){return join(["extend scalar",e.name,join(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join(["extend type",t,wrap$1("implements ",join(n," & ")),join(r," "),block(e)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,e=e.fields;return join(["extend interface",t,wrap$1("implements ",join(n," & ")),join(r," "),block(e)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,e=e.types;return join(["extend union",t,join(n," "),e&&0!==e.length?"= "+join(e," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,e=e.values;return join(["extend enum",t,join(n," "),block(e)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,e=e.fields;return join(["extend input",t,join(n," "),block(e)]," ")}};function addDescription(t){return function(e){return join([e.description,t(e)],"\n")}}function join(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$1("{\n",indent(join(e,"\n")),"\n}")}function wrap$1(e,t){return null!=t&&""!==t?e+t+(2<arguments.length&&void 0!==arguments[2]?arguments[2]:""):""}function indent(e){return wrap$1(" ",e.replace(/\n/g,"\n "))}function isMultiline(e){return-1!==e.indexOf("\n")}function hasMultilineItems(e){return null!=e&&e.some(isMultiline)}var printer=Object.freeze({__proto__:null,print:print});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===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 getOperationAST$1=Object.freeze({__proto__:null,getOperationAST:getOperationAST});function removeTemporaryGlobals(){return remove()}function checkDEV(){__DEV__?invariant$1("boolean"==typeof DEV,DEV):invariant$1("boolean"==typeof DEV,38)}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],__DEV__?invariant$1(void 0!==n,"Invalid variable referenced in @"+t.name.value+" directive."):invariant$1(void 0!==n,39)):n=e.value.value,"skip"===t.name.value?!n:n})}function getDirectiveNames(e){var t=[];return visit(e,{Directive:function(e){t.push(e.name.value)}}),t}function hasDirectives(t,e){return getDirectiveNames(e).some(function(e){return-1<t.indexOf(e)})}function hasClientExports(e){return e&&hasDirectives(["client"],e)&&hasDirectives(["export"],e)}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,__DEV__?invariant$1(n&&1===n.length,"Incorrect number of arguments for the @"+t+" directive."):invariant$1(n&&1===n.length,40),n=n[0],__DEV__?invariant$1(n.name&&"if"===n.name.value,"Invalid argument for the @"+t+" directive."):invariant$1(n.name&&"if"===n.name.value,41),r=n.value,__DEV__?invariant$1(r&&("Variable"===r.kind||"BooleanValue"===r.kind),"Argument for the @"+t+" directive must be a variable or a boolean value."):invariant$1(r&&("Variable"===r.kind||"BooleanValue"===r.kind),42),i.push({directive:e,ifArgument:n}))}),i}function getFragmentQueryDocument(e,t){var n=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new InvariantError("Found a "+e.operation+" operation"+(e.name?" named '"+e.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed."):new InvariantError(43);"FragmentDefinition"===e.kind&&n.push(e)}),void 0===t&&(__DEV__?invariant$1(1===n.length,"Found "+n.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):invariant$1(1===n.length,44),t=n[0].name.value),__assign$2(__assign$2({},e),{definitions:__spreadArray$1([{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=t&&t[e.name.value];return __DEV__?invariant$1(n,"No fragment named "+e.name.value+"."):invariant$1(n,45),n;default:return null}}function isNonNullObject(e){return null!==e&&"object"==typeof e}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 __DEV__?new InvariantError('The inline argument "'+n.value+'" of kind "'+t.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new InvariantError(54);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)}removeTemporaryGlobals(),checkDEV();var KNOWN_DIRECTIVES=["connection","include","skip","client","rest","export"],getStoreKeyName=Object.assign(function(e,t,n){var r;if(t&&n&&n.connection&&n.connection.key)return n.connection.filter&&0<n.connection.filter.length?((i=n.connection.filter||[]).sort(),r={},i.forEach(function(e){r[e]=t[e]}),n.connection.key+"("+stringify$2(r)+")"):n.connection.key;var i,o=e;return t&&(i=stringify$2(t),o+="("+i+")"),n&&Object.keys(n).forEach(function(e){-1===KNOWN_DIRECTIVES.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@"+e+"("+stringify$2(n[e])+")":o+="@"+e)}),o},{setStringify:function(e){var t=stringify$2;return stringify$2=e,t}}),stringify$2=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){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var o=i[r];if(isField(o)){if("__typename"===o.name.value)return e[resultKeyNameFromField(o)]}else{o=getTypenameFromResult(e,getFragmentFromSelection(o,n).selectionSet,n);if("string"==typeof o)return o}}}function isField(e){return"Field"===e.kind}function isInlineFragment(e){return"InlineFragment"===e.kind}function checkDocument(e){__DEV__?invariant$1(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):invariant$1(e&&"Document"===e.kind,46);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new InvariantError('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new InvariantError(47);return e});return __DEV__?invariant$1(t.length<=1,"Ambiguous GraphQL document: contains "+t.length+" operations"):invariant$1(t.length<=1,48),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 __DEV__?invariant$1(e&&"query"===e.operation,"Must contain a query definition."):invariant$1(e&&"query"===e.operation,49),e}function getFragmentDefinition(e){__DEV__?invariant$1("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):invariant$1("Document"===e.kind,50),__DEV__?invariant$1(e.definitions.length<=1,"Fragment must have exactly one definition."):invariant$1(e.definitions.length<=1,51);e=e.definitions[0];return __DEV__?invariant$1("FragmentDefinition"===e.kind,"Must be a fragment definition."):invariant$1("FragmentDefinition"===e.kind,52),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 __DEV__?new InvariantError("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new InvariantError(53)}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 filterInPlace(n,r,e){var i=0;return n.forEach(function(e,t){r.call(this,e,t,n)&&(n[i++]=e)},e),n.length=i,n}var TYPENAME_FIELD={kind:"Field",name:{kind:"Name",value:"__typename"}};function isEmpty$1(e,t){return e.selectionSet.selections.every(function(e){return"FragmentSpread"===e.kind&&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){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function removeDirectivesFromDocument(t,e){var r=Object.create(null),n=[],i=Object.create(null),o=[],e=nullIfDocIsEmpty(visit(e,{Variable:{enter:function(e,t,n){"VariableDefinition"!==n.kind&&(r[e.name.value]=!0)}},Field:{enter:function(e){if(t&&e.directives&&(t.some(function(e){return e.remove})&&e.directives&&e.directives.some(getDirectiveMatcher(t))))return e.arguments&&e.arguments.forEach(function(e){"Variable"===e.value.kind&&n.push({name:e.value.name.value})}),e.selectionSet&&getAllFragmentSpreadsFromSelectionSet(e.selectionSet).forEach(function(e){o.push({name:e.name.value})}),null}},FragmentSpread:{enter:function(e){i[e.name.value]=!0}},Directive:{enter:function(e){if(getDirectiveMatcher(t)(e))return null}}}));return e=(e=e&&filterInPlace(n,function(e){return!!e.name&&!r[e.name]}).length?removeArgumentsFromDocument(n,e):e)&&filterInPlace(o,function(e){return!!e.name&&!i[e.name]}).length?removeFragmentSpreadFromDocument(o,e):e}var addTypenameToDocument=Object.assign(function(e){return visit(checkDocument(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){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$1(__spreadArray$1([],r,!0),[TYPENAME_FIELD],!1)})}}}}}})},{added:function(e){return e===TYPENAME_FIELD}}),connectionRemoveConfig={test:function(e){var t="connection"===e.name.value;return!t||e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||__DEV__&&invariant$1.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),t}};function removeConnectionDirectiveFromDocument(e){return removeDirectivesFromDocument([connectionRemoveConfig],checkDocument(e))}function getArgumentMatcher(e){return function(t){return e.some(function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))})}}function removeArgumentsFromDocument(n,e){var r=getArgumentMatcher(n);return nullIfDocIsEmpty(visit(e,{OperationDefinition:{enter:function(e){return __assign$2(__assign$2({},e),{variableDefinitions:e.variableDefinitions?e.variableDefinitions.filter(function(t){return!n.some(function(e){return e.name===t.variable.name.value})}):[]})}},Field:{enter:function(e){if(n.some(function(e){return e.remove})){var t=0;if(e.arguments&&e.arguments.forEach(function(e){r(e)&&(t+=1)}),1===t)return null}}},Argument:{enter:function(e){if(r(e))return null}}}))}function removeFragmentSpreadFromDocument(e,t){function n(t){if(e.some(function(e){return e.name===t.name.value}))return null}return nullIfDocIsEmpty(visit(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}function getAllFragmentSpreadsFromSelectionSet(e){var t=[];return e.selections.forEach(function(e){(isField(e)||isInlineFragment(e))&&e.selectionSet?getAllFragmentSpreadsFromSelectionSet(e.selectionSet).forEach(function(e){return t.push(e)}):"FragmentSpread"===e.kind&&t.push(e)}),t}function buildQueryFromSelectionSet(e){return"query"===getMainDefinition(e).operation?e:visit(e,{OperationDefinition:{enter:function(e){return __assign$2(__assign$2({},e),{operation:"query"})}}})}function removeClientSetsFromDocument(e){checkDocument(e);e=removeDirectivesFromDocument([{test:function(e){return"client"===e.name.value},remove:!0}],e);return e=e&&visit(e,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return isField(e)&&"__typename"===e.name.value}))return null}}})}var hasOwnProperty$i=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$i.call(r,e)?(t=r[e],i[e]!==t&&(n=o.reconciler.apply(o,__spreadArray$1([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$2(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$2(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$2(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray$2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray$2(e,t):void 0}}function _arrayLikeToArray$2(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$2(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$2(e,t,n){return t&&_defineProperties$2(e.prototype,t),n&&_defineProperties$2(e,n),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$2(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$2(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$2(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){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void enqueue(function(){return flushSubscription(e)})):void notifySubscription(e,t,n);e._queue.push({type:t,value:n})}}var root$a,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$2(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$2(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$2(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$2(r,SymbolIterator)))return new e(function(n){enqueue(function(){if(!n.closed){for(var e=_createForOfIteratorHelperLoose$2(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$2(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$a="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$a=(prototype[fakeObsSymbol]||(prototype[fakeObsSymbol]=function(){return this}),Object.prototype.toString);function cloneDeep(e){return cloneDeepHelper(e)}function cloneDeepHelper(t,n){switch(toString$a.call(t)){case"[object Array]":if((n=n||new Map).has(t))return n.get(t);var r=t.slice(0);return n.set(t,r),r.forEach(function(e,t){r[t]=cloneDeepHelper(e,n)}),r;case"[object Object]":if((n=n||new Map).has(t))return n.get(t);var i=Object.create(Object.getPrototypeOf(t));return 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(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}function maybeDeepFreeze(e){return __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()}})}var canUseWeakMap="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),canUseWeakSet="function"==typeof WeakSet,canUseSymbol="function"==typeof Symbol&&"function"==typeof Symbol.for;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.addCount=0,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],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),iterateObserversSafely(n.observers,"error",e))},complete:function(){var e;null!==n.sub&&((e=n.sources.shift())?isPromiseLike(e)?e.then(function(e){return n.sub=e.subscribe(n.handlers)}):n.sub=e.subscribe(n.handlers):(n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),iterateObserversSafely(n.observers,"complete")))}},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$1(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),++this.addCount)},e.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},e.prototype.cleanup=function(e){function t(){r||(r=!0,n.observers.delete(i),e())}var n=this,r=!1,i={next:t,error:t,complete:t},o=this.addCount;this.addObserver(i),this.addCount=o},e}(Observable);function isNonEmptyArray(e){return Array.isArray(e)&&0<e.length}function graphQLResultHasError(e){return e.errors&&0<e.errors.length||!1}function compact(){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}fixObservableSubclass(Concast);var prefixCounts=new Map;function makeUniqueId(e){var t=prefixCounts.get(e)||1;return prefixCounts.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function stringifyForDisplay(e){var n=makeUniqueId("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?n:t}).split(JSON.stringify(n)).join("<undefined>")}function fromError(t){return new Observable(function(e){e.error(t)})}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 __DEV__?new InvariantError("illegal argument: "+i):new InvariantError(26)}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 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 LinkError=function(n){function e(e,t){e=n.call(this,e)||this;return e.link=t,e}return __extends$1(e,n),e}(Error),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=toLink(e);if(isTerminating(n))return __DEV__&&invariant$1.warn(new LinkError("You are calling concat on a terminating link, which will have no effect",n)),n;var r=toLink(t);return isTerminating(r)?new o(function(e){return n.request(e,function(e){return r.request(e)||Observable.of()})||Observable.of()}):new o(function(e,t){return n.request(e,function(e){return r.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 __DEV__?new InvariantError("request is not implemented"):new InvariantError(21)},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=ApolloLink.execute,version$1="3.4.16",hasOwnProperty$h=Object.prototype.hasOwnProperty;function parseAndCheckHttpResponse(t){return function(r){return r.text().then(function(t){try{return JSON.parse(t)}catch(e){var n=e;throw n.name="ServerParseError",n.response=r,n.statusCode=r.status,n.bodyText=t,n}}).then(function(e){return 300<=r.status&&throwServerError(r,e,"Response not successful: Received status code "+r.status),Array.isArray(e)||hasOwnProperty$h.call(e,"data")||hasOwnProperty$h.call(e,"errors")||throwServerError(r,e,"Server response was missing for query '"+(Array.isArray(t)?t.map(function(e){return e.operationName}):t.operationName)+"'."),e})}}var serializeFetchParameter=function(t,n){var e;try{e=JSON.stringify(t)}catch(e){t=__DEV__?new InvariantError("Network request failed. "+n+" is not serializable: "+e.message):new InvariantError(23);throw t.parseError=e,t}return e},defaultHttpOptions={includeQuery:!0,includeExtensions:!1},defaultHeaders={accept:"*/*","content-type":"application/json"},defaultOptions={method:"POST"},fallbackHttpConfig={http:defaultHttpOptions,headers:defaultHeaders,options:defaultOptions},selectHttpOptionsAndBody=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=__assign$2(__assign$2({},t.options),{headers:t.headers,credentials:t.credentials}),o=t.http||{},a=(n.forEach(function(e){i=__assign$2(__assign$2(__assign$2({},i),e.options),{headers:__assign$2(__assign$2({},i.headers),headersToLowerCase(e.headers))}),e.credentials&&(i.credentials=e.credentials),o=__assign$2(__assign$2({},o),e.http)}),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=print(c)),{options:i,body:a}};function headersToLowerCase(t){var n;return t&&(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 __DEV__?new InvariantError("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new InvariantError(22)},createSignalIfSupported=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}},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(e+"="+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$1(function(){return fetch}),createHttpLink=function(e){var t=(e=void 0===e?{}:e).uri,d=void 0===t?"/graphql":t,p=e.fetch,t=e.includeExtensions,f=e.useGETForQueries,n=e.includeUnusedVariables,h=void 0!==n&&n,n=__rest$5(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]),m=(__DEV__&&checkFetcher(p||backupFetch),{http:{includeExtensions:t},options:n.fetchOptions,credentials:n.credentials,headers:n.headers});return new ApolloLink(function(n){var r,e,i=selectURI(n,d),t=n.getContext(),o={},a=(t.clientAwareness&&(a=(s=t.clientAwareness).name,s=s.version,a&&(o["apollographql-client-name"]=a),s&&(o["apollographql-client-version"]=s)),__assign$2(__assign$2({},o),t.headers)),s={http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:a},o=selectHttpOptionsAndBody(n,fallbackHttpConfig,m,s),l=o.options,c=o.body;c.variables&&!h&&(r=new Set(Object.keys(c.variables)),visit(n.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&r.delete(e.name.value)}}),r.size&&(c.variables=__assign$2({},c.variables),r.forEach(function(e){delete c.variables[e]}))),l.signal||(a=(t=createSignalIfSupported()).controller,s=t.signal,(e=a)&&(l.signal=s));if(f&&!n.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(l.method="GET"),"GET"===l.method){var o=rewriteURIForGET(i,c),t=o.newURI,u=o.parseError;if(u)return fromError(u);i=t}else try{l.body=serializeFetchParameter(c,"Payload")}catch(u){return fromError(u)}return new Observable(function(t){return(p||maybe$1(function(){return fetch})||backupFetch)(i,l).then(function(e){return n.setContext({response:e}),e}).then(parseAndCheckHttpResponse(n)).then(function(e){return t.next(e),t.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e))}),function(){e&&e.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$1(e,n),e}(ApolloLink),_a$3=Object.prototype,toString$9=_a$3.toString,hasOwnProperty$g=_a$3.hasOwnProperty,fnToStr=Function.prototype.toString,previousComparisons=new Map;function equal(e,t){try{return check$1(e,t)}finally{previousComparisons.clear()}}function check$1(e,t){if(e===t)return!0;var n=toString$9.call(e);if(n!==toString$9.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(previouslyCompared(e,t))return!0;var r=definedKeys(e),i=definedKeys(t),o=r.length;if(o!==i.length)return!1;for(var a=0;a<o;++a)if(!hasOwnProperty$g.call(t,r[a]))return!1;for(a=0;a<o;++a){var s=r[a];if(!check$1(e[s],t[s]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(previouslyCompared(e,t))return!0;for(var l=e.entries(),c="[object Map]"===n;;){var u=l.next();if(u.done)break;var u=u.value,d=u[0],u=u[1];if(!t.has(d))return!1;if(c&&!check$1(u,t.get(d)))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]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":var p=e.byteLength;if(p===t.byteLength)for(;p--&&e[p]===t[p];);return-1===p;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":i=fnToStr.call(e);return i!==fnToStr.call(t)?!1:!endsWith(i,nativeCodeSuffix)}return!1}function definedKeys(e){return Object.keys(e).filter(isDefinedKey,e)}function isDefinedKey(e){return void 0!==this[e]}var 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){var n=previousComparisons.get(e);if(n){if(n.has(t))return!0}else previousComparisons.set(e,n=new Set);return n.add(t),!1}var defaultMakeData=function(){return Object.create(null)},_a$2=Array.prototype,forEach=_a$2.forEach,slice$2=_a$2.slice,Trie=function(){function r(e,t){void 0===t&&(t=defaultMakeData),this.weakness=e=void 0===e?!0:e,this.makeData=t}return r.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},r.prototype.lookupArray=function(e){var t=this;return forEach.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(slice$2.call(e)))},r.prototype.getChildTrie=function(e){var t=this.weakness&&isObjRef(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=t.get(e);return n||t.set(e,n=new r(this.weakness,this.makeData)),n},r}();function isObjRef(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}var currentContext=null,MISSING_VALUE={},idCounter=1,makeSlotClass=function(){return e.prototype.hasValue=function(){for(var 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},e.prototype.getValue=function(){if(this.hasValue())return currentContext.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i;(i={__proto__:null})[this.id]=e;e=currentContext;currentContext={parent:e,slots:i};try{return t.apply(r,n)}finally{currentContext=e}},e.bind=function(t){var n=currentContext;return function(){var e=currentContext;try{return currentContext=n,t.apply(this,arguments)}finally{currentContext=e}}},e.noContext=function(e,t,n){if(!currentContext)return e.apply(n,t);var r=currentContext;try{return currentContext=null,e.apply(n,t)}finally{currentContext=r}},e;function e(){this.id=["slot",idCounter++,Date.now(),Math.random().toString(36).slice(2)].join(":")}},globalKey="@wry/context:Slot",host=Array,Slot=host[globalKey]||function(){var e=makeSlotClass();try{Object.defineProperty(host,globalKey,{value:host[globalKey]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();function defaultDispose(){}Slot.bind,Slot.noContext;var _a$1,Cache=function(){function e(e,t){void 0===t&&(t=defaultDispose),this.max=e=void 0===e?1/0:e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){e=this.getNode(e);return e&&e.value},e.prototype.getNode=function(e){var t,n,e=this.map.get(e);return e&&e!==this.newest&&(t=e.older,(n=e.newer)&&(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},e.prototype.set=function(e,t){var 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)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(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)},e}(),parentEntrySlot=new Slot,hasOwnProperty$f=Object.prototype.hasOwnProperty,toArray=void 0===(_a$1=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:_a$1;function maybeUnsubscribe(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var 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)}var Entry=function(){function t(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,++t.count}return t.prototype.peek=function(){if(1===this.value.length&&!mightBeDirty(this))return rememberParent(this),this.value[0]},t.prototype.recompute=function(e){return assert$2(!this.recomputing,"already recomputing"),rememberParent(this),mightBeDirty(this)?reallyRecompute(this,e):valueGet(this.value)},t.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,reportDirty(this),maybeUnsubscribe(this))},t.prototype.dispose=function(){var n=this;this.setDirty(),forgetChildren(this),eachParent(this,function(e,t){e.setDirty(),forgetChild(e,n)})},t.prototype.forget=function(){this.dispose()},t.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=emptySetPool.pop()||new Set),this.deps.add(e)},t.prototype.forgetDeps=function(){var t=this;this.deps&&(toArray(this.deps).forEach(function(e){return e.delete(t)}),this.deps.clear(),emptySetPool.push(this.deps),this.deps=null)},t.count=0,t}();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(e,t){var n=e.parents.size;if(n)for(var r=toArray(e.parents),i=0;i<n;++i)t(r[i],e)}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(function(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}var EntryMethods={setDirty:!0,dispose:!0,forget:!0};function dep(e){var i=new Map,r=e&&e.subscribe;function t(e){var t,n=parentEntrySlot.getValue();n&&((t=i.get(e))||i.set(e,t=new Set),n.dependOn(t),"function"==typeof r&&(maybeUnsubscribe(t),t.unsubscribe=r(e)))}return t.dirty=function(e,t){var n,r=i.get(e);r&&(n=t&&hasOwnProperty$f.call(EntryMethods,t)?t:"setDirty",toArray(r).forEach(function(e){return e[n]()}),i.delete(e),maybeUnsubscribe(r))},t}function makeDefaultMakeCacheKeyFunction(){var e=new Trie("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}makeDefaultMakeCacheKeyFunction();var caches=new Set;function wrap(r,i){void 0===i&&(i=Object.create(null));function e(){var e=s.apply(null,a?a.apply(null,arguments):arguments);if(void 0===e)return r.apply(null,arguments);var t=o.get(e),n=(t||(o.set(e,t=new Entry(r)),t.subscribe=i.subscribe,t.forget=function(){return o.delete(e)}),t.recompute(Array.prototype.slice.call(arguments)));return o.set(e,t),caches.add(o),parentEntrySlot.hasValue()||(caches.forEach(function(e){return e.clean()}),caches.clear()),n}var o=new Cache(i.max||Math.pow(2,16),function(e){return e.dispose()}),a=i.keyArgs,s=i.makeCacheKey||makeDefaultMakeCacheKeyFunction();function t(e){e=o.get(e);e&&e.setDirty()}function n(e){e=o.get(e);if(e)return e.peek()}function l(e){return o.delete(e)}return Object.defineProperty(e,"size",{get:function(){return o.map.size},configurable:!1,enumerable:!1}),e.dirtyKey=t,e.dirty=function(){t(s.apply(null,arguments))},e.peekKey=n,e.peek=function(){return n(s.apply(null,arguments))},e.forgetKey=l,e.forget=function(){return l(s.apply(null,arguments))},e.makeCacheKey=s,e.getKey=a?function(){return s.apply(null,a.apply(null,arguments))}:s,Object.freeze(e)}var ApolloCache=function(){function e(){this.getFragmentDoc=wrap(getFragmentQueryDocument)}return e.prototype.batch=function(e){var t="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;this.performTransaction(e.update,t)},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},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$5(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$5(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(e,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e}(),MissingFieldError=function(o){function a(e,t,n,r){var i=o.call(this,e)||this;return i.message=e,i.path=t,i.query=n,i.variables=r,i.__proto__=a.prototype,i}return __extends$1(a,o),a}(Error),hasOwn$9=Object.prototype.hasOwnProperty;function defaultDataIdFromObject(e,t){var n=e.__typename,r=e.id,e=e._id;if("string"==typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==e?{_id:e}:void 0),void 0!==(r=void 0===r?e:r)))return n+":"+("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(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)&&(Array.isArray(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$9.call(n,t)&&(!e.selectionSet||selectionSetMatchesResult(e.selectionSet,n[t],r)))}))}function storeValueIsStoreObject(e){return isNonNullObject(e)&&!isReference(e)&&!Array.isArray(e)}function makeProcessedFieldsMerger(){return new DeepMerger}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){if("string"==typeof e)return makeReference(e);if(isReference(e))return e;var n,r=i.policies.identify(e)[0];return r?(n=makeReference(r),t&&i.merge(r,e),n):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$9.call(this.data,e)){var n=this.data[e];if(n&&hasOwn$9.call(n,t))return n[t]}return"__typename"===t&&hasOwn$9.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$9.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&&(__DEV__?invariant$1("string"==typeof n,"store.merge expects a string ID"):invariant$1("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$9.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$9.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$9.call(t,e)||r.delete(e)}),t&&(e=t.__META,n=__rest$5(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$9.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$9.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$1(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$1(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$9.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$1(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)?Array.isArray(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=this.passes.get(t);if(e)return e;switch(Object.getPrototypeOf(t)){case Array.prototype:if(this.known.has(t))return t;var r=t.map(this.admit,this);return(i=this.pool.lookupArray(r)).array||(this.known.add(i.array=r),__DEV__&&Object.freeze(r)),i.array;case null:case Object.prototype:if(this.known.has(t))return t;var i,o,r=Object.getPrototypeOf(t),a=[r],s=this.sortedKeys(t),l=(a.push(s.json),a.length);return s.sorted.forEach(function(e){a.push(n.admit(t[e]))}),(i=this.pool.lookupArray(a)).object||(o=i.object=Object.create(r),this.known.add(o),s.sorted.forEach(function(e,t){o[e]=a[l+t]}),__DEV__&&Object.freeze(o)),i.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 missingFromInvariant(e,t){return new MissingFieldError(e.message,t.path.slice(),t.query,t.variables)}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(e,{addTypename:!1!==e.addTypename,canonizeResults:shouldCanonizeResults(e)}),this.canon=e.canon||new ObjectCanon,this.executeSelectionSet=wrap(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(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=e.store,n=e.query,r=e.rootId,r=void 0===r?"ROOT_QUERY":r,i=e.variables,o=e.returnPartialData,o=void 0===o||o,e=e.canonizeResults,e=void 0===e?this.config.canonizeResults:e,a=this.config.cache.policies,i=__assign$2(__assign$2({},getDefaultValues(getQueryDefinition(n))),i),r=makeReference(r),r=this.executeSelectionSet({selectionSet:getMainDefinition(n).selectionSet,objectOrReference:r,enclosingRef:r,context:{store:t,query:n,policies:a,variables:i,varString:canonicalStringify(i),canonizeResults:e,fragmentMap:createFragmentMap(getFragmentDefinitions(n)),path:[]}}),t=r.missing&&0<r.missing.length;if(t&&!o)throw r.missing[0];return{result:r.result,missing:r.missing,complete:!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:[missingFromInvariant(__DEV__?new InvariantError("Dangling reference to missing "+o.__ref+" object"):new InvariantError(5),s)]};var l=s.variables,c=s.policies,e=s.store,u=[],n={result:null},d=e.getFieldValue(o,"__typename");function p(){return n.missing||(n.missing=[])}function f(e){var t;return e.missing&&(t=p()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof d&&!c.rootIdsByTypename[d]&&u.push({__typename:d});var h=new Set(t.selections),e=(h.forEach(function(e){var t,n,r;shouldInclude(e,l)&&(isField(e)?(r=c.readField({fieldName:e.name.value,field:e,variables:s.variables,from:o},s),n=resultKeyNameFromField(e),s.path.push(n),void 0===r?addTypenameToDocument.added(e)||p().push(missingFromInvariant(__DEV__?new InvariantError("Can't find field '"+e.name.value+"' on "+(isReference(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2))):new InvariantError(6),s)):Array.isArray(r)?r=f(i.executeSubSelectedArray({field:e,array:r,enclosingRef:a,context:s})):e.selectionSet?null!=r&&(r=f(i.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:r,enclosingRef:isReference(r)?r:a,context:s}))):s.canonizeResults&&(r=i.canon.pass(r)),void 0!==r&&u.push(((t={})[n]=r,t)),invariant$1(s.path.pop()===n)):(r=getFragmentFromSelection(e,s.fragmentMap))&&c.fragmentMatches(r,d)&&r.selectionSet.selections.forEach(h.add,h))}),mergeDeepArray(u));return n.result=s.canonizeResults?this.canon.admit(e):maybeDeepFreeze(e),this.knownResults.set(n.result,t),n},e.prototype.execSubSelectedArrayImpl=function(e){var n,r=this,i=e.field,t=e.array,o=e.enclosingRef,a=e.context;function s(e,t){return e.missing&&(n=n||[]).push.apply(n,e.missing),invariant$1(a.path.pop()===t),e.result}return t=(t=i.selectionSet?t.filter(a.store.canRead):t).map(function(e,t){return null===e?null:(a.path.push(t),Array.isArray(e)?s(r.executeSubSelectedArray({field:i,array:e,enclosingRef:o,context:a}),t):i.selectionSet?s(r.executeSelectionSet({selectionSet:i.selectionSet,objectOrReference:e,enclosingRef:isReference(e)?e:o,context:a}),t):(__DEV__&&assertSelectionSetForIdValue(a.store,i,e),invariant$1(a.path.pop()===t),e))}),{result:a.canonizeResults?this.canon.admit(t):t,missing:n}},e}();function assertSelectionSetForIdValue(t,n,e){var r;n.selectionSet||(r=new Set([e])).forEach(function(e){isNonNullObject(e)&&(__DEV__?invariant$1(!isReference(e),"Missing selection set for object of type "+getTypenameFromStoreObject(t,e)+" returned for query field "+n.name.value):invariant$1(!isReference(e),7),Object.values(e).forEach(r.add,r))})}var StoreWriter=function(){function e(e,t){this.cache=e,this.reader=t}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={store:s,written:Object.create(null),merge:function(e,t){return a.merge(e,t)},variables:i,varString:canonicalStringify(i),fragmentMap:createFragmentMap(getFragmentDefinitions(t)),overwrite:!!e,incomingById:new Map,clientOnly:!1},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.fields,i=e.mergeTree,e=e.selections,o=makeReference(t);if(i&&i.map.size){var a=l.applyMerges(i,o,r,c);if(isReference(a))return;r=a}__DEV__&&!c.overwrite&&(n=new Set,e.forEach(function(e){isField(e)&&e.selectionSet&&n.add(e.name.value)}),Object.keys(r).forEach(function(e){n.has(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 __DEV__?new InvariantError("Could not identify object "+JSON.stringify(n)):new InvariantError(8)},e.prototype.processSelectionSet=function(e){var s=this,t=e.dataId,l=e.result,n=e.selectionSet,c=e.context,u=e.mergeTree,d=this.cache.policies,e=d.identify(l,n,c.fragmentMap),r=e[0],e=e[1];if("string"==typeof(t=t||r)){var r=c.written[t]||(c.written[t]=[]),i=makeReference(t);if(0<=r.indexOf(n))return i;if(r.push(n),this.reader&&this.reader.isFresh(l,i,n,c))return i}var p=Object.create(null),f=(e&&(p=c.merge(p,e)),t&&d.rootTypenamesById[t]||getTypenameFromResult(l,n,c.fragmentMap)||t&&c.store.get(t,"__typename")),h=("string"==typeof f&&(p.__typename=f),new Set(n.selections));return h.forEach(function(e){var t,n,r,i,o,a;shouldInclude(e,c.variables)&&(isField(e)?(r=resultKeyNameFromField(e),r=l[r],t=c.clientOnly,c.clientOnly=t||!(!e.directives||!e.directives.some(function(e){return"client"===e.name.value})),void 0!==r?(n=d.getStoreFieldName({typename:f,fieldName:e.name.value,field:e,variables:c.variables}),a=getChildMergeTree(u,n),r=s.processFieldValue(r,e,c,a),i=void 0,e.selectionSet&&!(i=c.store.getFieldValue(r,"__typename"))&&isReference(r)&&(i=(o=c.incomingById.get(r.__ref))&&o.fields.__typename),(o=d.getMergeFunction(f,e.name.value,i))?a.info={field:e,typename:f,merge:o}:maybeRecycleChildMergeTree(u,n),p=c.merge(p,((i={})[n]=r,i))):c.clientOnly||addTypenameToDocument.added(e)||__DEV__&&invariant$1.error(("Missing field '"+resultKeyNameFromField(e)+"' while writing result "+JSON.stringify(l,null,2)).substring(0,1e3)),c.clientOnly=t):(a=getFragmentFromSelection(e,c.fragmentMap))&&d.fragmentMatches(a,f,l,c.variables)&&a.selectionSet.selections.forEach(h.add,h))}),"string"==typeof t?((r=c.incomingById.get(t))?(r.fields=c.merge(r.fields,p),r.mergeTree=mergeMergeTrees(r.mergeTree,u),r.selections.forEach(h.add,h),r.selections=h):c.incomingById.set(t,{fields:p,mergeTree:mergeTreeIsEmpty(u)?void 0:u,selections:h}),makeReference(t)):p},e.prototype.processFieldValue=function(e,n,r,i){var o=this;return n.selectionSet&&null!==e?Array.isArray(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}):__DEV__?cloneDeep(e):e},e.prototype.applyMerges=function(e,t,n,i,o){var a,s,l,c,u=this;return e.map.size&&!isReference(n)&&(a=Array.isArray(n)||!isReference(t)&&!storeValueIsStoreObject(t)?void 0:t,s=n,a&&!o&&(o=[isReference(a)?a.__ref:a]),c=function(e,t){return Array.isArray(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$1(o.pop()===t))}),l&&(n=Array.isArray(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){if(t===n||!n||mergeTreeIsEmpty(n))return t;if(!t||mergeTreeIsEmpty(t))return n;var r,e=t.info&&n.info?__assign$2(__assign$2({},t.info),n.info):t.info||n.info,i=t.map.size&&n.map.size,o={info:e,map:i?new Map:(t.map.size?t:n).map};return i&&(r=new Set(n.map.keys()),t.map.forEach(function(e,t){o.map.set(t,mergeMergeTrees(e,n.map.get(t))),r.delete(t)}),r.forEach(function(e){o.map.set(e,mergeMergeTrees(n.map.get(e),t.map.get(e)))})),o}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),warnings.has(a=e+"."+t)||(warnings.add(a),s=[],Array.isArray(l)||Array.isArray(o)||[l,o].forEach(function(e){e=r.getFieldValue(e,"__typename");"string"!=typeof e||s.includes(e)||s.push(e)}),__DEV__&&invariant$1.warn("Cache data may be lost when replacing the "+t+" field of a "+e+" object.\n\nTo address this problem (which is not a bug in Apollo Client), "+(s.length?"either ensure all objects of type "+s.join(" and ")+" have an ID or a custom merge function, or ":"")+"define a custom merge function for the "+a+" field, so InMemoryCache can safely merge these objects:\n\n existing: "+JSON.stringify(l).slice(0,1e3)+"\n incoming: "+JSON.stringify(o).slice(0,1e3)+"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n")))}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()}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,n){var r=t&&n?getTypenameFromResult(e,t,n):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,o={typename:r,selectionSet:t,fragmentMap:n},t=r&&this.getTypePolicy(r),a=t&&t.keyFn||this.config.dataIdFromObject;a;){var s=a(e,o);if(!Array.isArray(s)){i=s;break}a=keyFieldsFnFromSpecifier(s)}return i=i?String(i):void 0,o.keyObject?[i,o.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$5(t,["queryType","mutationType","subscriptionType"]);n&&a.setRootTypename("Query",e),r&&a.setRootTypename("Mutation",e),i&&a.setRootTypename("Subscription",e),hasOwn$9.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:Array.isArray(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:Array.isArray(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&&(__DEV__?invariant$1(!r||r===e,"Cannot change root "+e+" __typename more than once"):invariant$1(!r||r===e,2),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(t){var n,r=this,e=(hasOwn$9.call(this.typePolicies,t)||((n=this.typePolicies[t]=Object.create(null)).fields=Object.create(null),(e=this.supertypeMap.get(t))&&e.size&&e.forEach(function(e){var e=r.getTypePolicy(e),t=e.fields,e=__rest$5(e,["fields"]);Object.assign(n,e),Object.assign(n.fields,t)})),this.toBeAdded[t]);return e&&e.length&&e.splice(0).forEach(function(e){r.updateTypePolicy(t,e)}),this.typePolicies[t]},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)return!1;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&&__DEV__&&invariant$1.warn("Inferring subtype "+n+" of supertype "+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(!Array.isArray(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.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(r,i,e,o,t){var n=r.getStoreFieldName(e),a=fieldNameFromStoreName(n),s=e.variables||o.variables,l=o.store,c=l.toReference,l=l.canRead;return{args:argsFromFieldSpecifier(e),field:e.field||null,fieldName:a,storeFieldName:n,variables:s,isReference:isReference,toReference:c,storage:t,cache:r.cache,canRead:l,readField:function(e,t){var n;if("string"==typeof e)n={fieldName:e,from:1<arguments.length?t:i};else{if(!isNonNullObject(e))return void(__DEV__&&invariant$1.warn("Unexpected readField arguments: "+stringifyForDisplay(Array.from(arguments))));n=__assign$2({},e),hasOwn$9.call(e,"from")||(n.from=i)}return __DEV__&&void 0===n.from&&__DEV__&&invariant$1.warn("Undefined 'from' passed to readField with arguments "+stringifyForDisplay(Array.from(arguments))),void 0===n.variables&&(n.variables=s),r.readField(n,o)},mergeObjects:makeMergeObjectsFunction(o.store)}}function makeMergeObjectsFunction(i){return function(e,t){if(Array.isArray(e)||Array.isArray(t))throw __DEV__?new InvariantError("Cannot automatically merge arrays"):new InvariantError(3);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 keyArgsFnFromSpecifier(n){return function(e,t){return e?t.fieldName+":"+JSON.stringify(computeKeyObject(e,n,!1)):t.fieldName}}function keyFieldsFnFromSpecifier(r){var i=new Trie(canUseWeakMap);return function(e,t){t.selectionSet&&t.fragmentMap&&(n=(n=i.lookupArray([t.selectionSet,t.fragmentMap])).aliasMap||(n.aliasMap=makeAliasMap(t.selectionSet,t.fragmentMap)));var n,e=t.keyObject=computeKeyObject(e,r,!0,n);return t.typename+":"+JSON.stringify(e)}}function makeAliasMap(e,r){var i=Object.create(null),o=new Set([e]);return o.forEach(function(e){e.selections.forEach(function(e){var t,n;isField(e)?(e.alias&&(t=e.alias.value,(n=e.name.value)!==t&&((i.aliases||(i.aliases=Object.create(null)))[n]=t)),e.selectionSet&&((i.subsets||(i.subsets=Object.create(null)))[e.name.value]=makeAliasMap(e.selectionSet,r))):(n=getFragmentFromSelection(e,r))&&o.add(n.selectionSet)})}),i}function computeKeyObject(n,e,r,i){var o,a,s=Object.create(null);return e.forEach(function(e){var t;Array.isArray(e)?"string"==typeof a&&"string"==typeof o&&(t=(t=i&&i.subsets)&&t[a],s[a]=computeKeyObject(n[o],e,r,t)):(t=(t=i&&i.aliases)&&t[e]||e,hasOwn$9.call(n,t)?s[a=e]=n[o=t]:(__DEV__?invariant$1(!r,"Missing field '"+t+"' while computing key fields"):invariant$1(!r,4),o=a=void 0))}),s}var InMemoryCache=function(n){function e(e){void 0===e&&(e={});var t=n.call(this)||this;return t.watches=new Set,t.typenameDocumentCache=new Map,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$1(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;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})),this.maybeBroadcastWatch=wrap(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.rootId,r=e.variables,i.makeCacheKey(e.query,e.callback,canonicalStringify({optimistic:t,rootId: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$9.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){return isReference(e)?e.__ref:this.policies.identify(e)[0]},e.prototype.evict=function(e){if(!e.id){if(hasOwn$9.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=r.data,n=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{i(r)}finally{--r.txCount,r.data=t,r.optimisticData=n}}var r=this,i=e.update,n=e.optimistic,n=void 0===n||n,o=e.removeOptimistic,a=e.onWatchUpdated,s=new Set;a&&!this.txCount&&this.broadcastWatches(__assign$2(__assign$2({},e),{onWatchUpdated:function(e){return s.add(e),!1}})),"string"==typeof n?this.optimisticData=this.optimisticData.addLayer(n,t):!1===n?t(this.data):t(),"string"==typeof o&&(this.optimisticData=this.optimisticData.removeLayer(o)),a&&s.size?(this.broadcastWatches(__assign$2(__assign$2({},e),{onWatchUpdated:function(e,t){t=a.call(this,e,t);return!1!==t&&s.delete(e),t}})),s.size&&s.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e)},e.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},e.prototype.transformDocument=function(e){var t;return this.addTypename?((t=this.typenameDocumentCache.get(e))||(t=addTypenameToDocument(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t):e},e.prototype.broadcastWatches=function(t){var n=this;this.txCount||this.watches.forEach(function(e){return n.maybeBroadcastWatch(e,t)})},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 isApolloError(e){return e.hasOwnProperty("graphQLErrors")}var NetworkStatus,generateErrorMessage=function(e){var t="";return(isNonEmptyArray(e.graphQLErrors)||isNonEmptyArray(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEach(function(e){e=e?e.message:"Error message not found.";t+=e+"\n"}),e.networkError&&(t+=e.networkError.message+"\n"),t=t.replace(/\n$/,"")},ApolloError=function(a){function s(e){var t=e.graphQLErrors,n=e.clientErrors,r=e.networkError,i=e.errorMessage,e=e.extraInfo,o=a.call(this,i)||this;return o.graphQLErrors=t||[],o.clientErrors=n||[],o.networkError=r||null,o.message=i||generateErrorMessage(o),o.extraInfo=e,o.__proto__=s.prototype,o}return __extends$1(s,a),s}(Error);function isNetworkRequestInFlight(e){return!!e&&e<7}!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$1=Object.assign,hasOwnProperty$e=Object.hasOwnProperty,warnedAboutUpdateQuery=!1,ObservableQuery=function(o){function e(e){var t=e.queryManager,n=e.queryInfo,e=e.options,r=o.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.isTornDown=!1,r.options=e,r.queryId=n.queryId||t.generateQueryId(),getOperationDefinition(e.query));return r.queryName=i&&i.name&&i.name.value,r.initialFetchPolicy=e.fetchPolicy||"cache-first",r.queryManager=t,r.queryInfo=n,r}return __extends$1(e,o),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=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||NetworkStatus.ready,n=__assign$2(__assign$2({},t),{loading:isNetworkRequestInFlight(n),networkStatus:n}),r=this.options.fetchPolicy,r=void 0===r?"cache-first":r;return(t||"network-only"!==r&&"no-cache"!==r&&"standby"!==r)&&!this.queryManager.transform(this.options.query).hasForcedResolvers&&(((t=this.queryInfo.getDiff()).complete||this.options.returnPartialData)&&(n.data=t.result),equal(n.data,{})&&(n.data=void 0),t.complete?(n.networkStatus!==NetworkStatus.loading||"cache-first"!==r&&"cache-only"!==r||(n.networkStatus=NetworkStatus.ready,n.loading=!1),delete n.partial):"no-cache"!==r&&(n.partial=!0),!__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){return!this.last||!equal(this.last.result,e)},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"no-cache"===r?n.fetchPolicy="no-cache":"cache-and-network"!==r&&(n.fetchPolicy="network-only"),__DEV__&&e&&hasOwnProperty$e.call(e,"variables")&&((t=(r=getQueryDefinition(this.options.query)).variableDefinitions)&&t.some(function(e){return"variables"===e.variable.name.value})||__DEV__&&invariant$1.warn("Called refetch("+JSON.stringify(e)+") for query "+((null==(t=r.name)?void 0:t.value)||JSON.stringify(r))+", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?")),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({},this.options),r),{variables:__assign$2(__assign$2({},this.options.variables),r.variables)})),{fetchPolicy:"no-cache"}),e=this.queryManager.generateQueryId();return o.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=NetworkStatus.fetchMore,this.observe()),this.queryManager.fetchQuery(e,o,NetworkStatus.fetchMore).then(function(e){var t=e.data,n=r.updateQuery;return n?(__DEV__&&!warnedAboutUpdateQuery&&(__DEV__&&invariant$1.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),warnedAboutUpdateQuery=!0),i.updateQuery(function(e){return n(e,{fetchMoreResult:t,variables:o.variables})})):i.queryManager.cache.writeQuery({query:o.query,variables:o.variables,data:t}),e}).finally(function(){i.queryManager.stopQuery(e),i.reobserve()})},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):__DEV__&&invariant$1.error("Unhandled GraphQL subscription error",e)}});return this.subscriptions.add(n),function(){e.subscriptions.delete(n)&&n.unsubscribe()}},e.prototype.setOptions=function(e){return this.reobserve(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.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.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(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||(__DEV__?invariant$1(t,"Attempted to start a polling query without a polling interval."):invariant$1(t,12),(e||(this.pollingInfo={})).interval=t,n=function(){i.pollingInfo&&(isNetworkRequestInFlight(i.queryInfo.networkStatus)?r():i.reobserve({fetchPolicy:"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){return void 0===t&&(t=this.variables),this.last=__assign$2(__assign$2({},this.last),{result:this.queryManager.assumeImmutableResults?e:cloneDeep(e),variables:t}),isNonEmptyArray(e.errors)||delete this.last.error,this.last},e.prototype.reobserve=function(e,t){var n=this,r=(this.isTornDown=!1,t===NetworkStatus.refetch||t===NetworkStatus.fetchMore||t===NetworkStatus.poll),i=this.options.variables,o=r?compact(this.options,e):assign$1(this.options,compact(e)),a=(r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!equal(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=NetworkStatus.setVariables))),o.variables&&__assign$2({},o.variables)),e=this.fetch(o,t),i={next:function(e){n.reportResult(e,a)},error:function(e){n.reportError(e,a)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=e,this.observer=i),e.addObserver(i),e.promise},e.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},e.prototype.reportResult=function(e,t){(this.getLastError()||this.isDifferentFromLastResult(e))&&(this.updateLastResult(e,t),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}(Observable);function defaultSubscriptionObserverErrorCallback(e){__DEV__&&invariant$1.error("Unhandled error",e.message,e.stack)}function logMissingFieldErrors(e){__DEV__&&isNonEmptyArray(e)&&__DEV__&&invariant$1.debug("Missing cache result fields: "+e.map(function(e){return e.path.join(".")}).join(", "),e)}function applyNextFetchPolicy(e){var t=e.fetchPolicy,n=e.nextFetchPolicy;n&&(e.fetchPolicy="function"==typeof n?n.call(e,void 0===t?"cache-first":t):n)}fixObservableSubclass(ObservableQuery);var LocalState=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,e=e.fragmentMatcher;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$a(this,void 0,void 0,function(){return __generator$2(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$a(this,void 0,void 0,function(){return __generator$2(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(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}}}),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(s,l,c,u,d,p){return void 0===c&&(c={}),void 0===u&&(u={}),void 0===d&&(d=function(){return!0}),void 0===p&&(p=!1),__awaiter$a(this,void 0,void 0,function(){var t,n,r,i,o,a;return __generator$2(this,function(e){return t=getMainDefinition(s),n=getFragmentDefinitions(s),n=createFragmentMap(n),r=t.operation,r=r?r.charAt(0).toUpperCase()+r.slice(1):"Query",i=(o=this).cache,o=o.client,a={fragmentMap:n,context:__assign$2(__assign$2({},c),{cache:i,client:o}),variables:u,fragmentMatcher:d,defaultOperationType:r,exportedVariables:{},onlyRunForcedResolvers:p},[2,this.resolveSelectionSet(t.selectionSet,l,a).then(function(e){return{result:e,exportedVariables:a.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(r,l,c){return __awaiter$a(this,void 0,void 0,function(){var i,o,a,s,t,n=this;return __generator$2(this,function(e){return i=c.fragmentMap,o=c.context,a=c.variables,s=[l],t=function(r){return __awaiter$a(n,void 0,void 0,function(){var t,n;return __generator$2(this,function(e){return shouldInclude(r,a)?isField(r)?[2,this.resolveField(r,l,c).then(function(e){var t;void 0!==e&&s.push(((t={})[resultKeyNameFromField(r)]=e,t))})]:(isInlineFragment(r)?t=r:(t=i[r.name.value],__DEV__?invariant$1(t,"No fragment named "+r.name.value):invariant$1(t,11)),t&&t.typeCondition&&(n=t.typeCondition.name.value,c.fragmentMatcher(l,n,o))?[2,this.resolveSelectionSet(t.selectionSet,l,c).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){return __awaiter$a(this,void 0,void 0,function(){var t,n,r,i,o,a,s,l=this;return __generator$2(this,function(e){return t=d.variables,n=c.name.value,r=resultKeyNameFromField(c),i=n!==r,o=u[r]||u[n],a=Promise.resolve(o),d.onlyRunForcedResolvers&&!this.shouldForceResolvers(c)||(s=u.__typename||d.defaultOperationType,(s=this.resolvers&&this.resolvers[s])&&(s=s[i?n:r])&&(a=Promise.resolve(cacheSlot.withValue(this.cache,s,[u,argumentsObjectFromField(c,t),d.context,{field:c,fragmentMap:d.fragmentMap}])))),[2,a.then(function(t){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&&(d.exportedVariables[e.value.value]=t)})}),!c.selectionSet||null==t?t:Array.isArray(t)?l.resolveSubSelectedArray(c,t,d):c.selectionSet?l.resolveSelectionSet(c.selectionSet,t,d):void 0})]})})},e.prototype.resolveSubSelectedArray=function(t,e,n){var r=this;return Promise.all(e.map(function(e){return null===e?null:Array.isArray(e)?r.resolveSubSelectedArray(t,e,n):t.selectionSet?r.resolveSelectionSet(t.selectionSet,e,n):void 0}))},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.lastDiff=void 0,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);e=this.observableQuery;if(e&&"no-cache"===e.options.fetchPolicy)return{complete:!1};e=this.cache.diff(t);return 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():e.reobserve()}):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){var o=this;this.graphQLErrors=isNonEmptyArray(n.errors)?n.errors:[],this.reset(),"no-cache"===r.fetchPolicy?this.updateLastDiff({result:n.data,complete:!0},this.getDiffOptions(r.variables)):0!==i&&(shouldWriteResult(n,r.errorPolicy)?this.cache.performTransaction(function(e){if(o.shouldWrite(n,r.variables))e.writeQuery({query:o.document,data:n.data,variables:r.variables,overwrite:1===i}),o.lastWrite={result:n,variables:r.variables,dmCount:destructiveMethodCounts.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete)return void(n.data=o.lastDiff.diff.result);var t=o.getDiffOptions(r.variables),e=e.diff(t);o.stopped||o.updateWatch(r.variables),o.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$d=Object.prototype.hasOwnProperty,QueryManager=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,r=void 0!==r&&r,i=e.onBroadcast,o=e.ssrMode,o=void 0!==o&&o,a=e.clientAwareness,a=void 0===a?{}:a,s=e.localState,e=e.assumeImmutableResults;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,this.cache=t,this.link=n,this.queryDeduplication=r,this.clientAwareness=a,this.localState=s||new LocalState({cache:t}),this.ssrMode=o,this.assumeImmutableResults=!!e,(this.onBroadcast=i)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var n=this;this.queries.forEach(function(e,t){n.stopQueryNoBroadcast(t)}),this.cancelPendingFetches(__DEV__?new InvariantError("QueryManager stopped while query was in flight"):new InvariantError(13))},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.errorPolicy,h=void 0===t?"none":t,t=e.fetchPolicy,m=void 0===t?"network-only":t,g=e.keepRootFields,y=e.context;return __awaiter$a(this,void 0,void 0,function(){var r,i,o;return __generator$2(this,function(e){switch(e.label){case 0:return(__DEV__?invariant$1(a,"mutation option is required. You must specify your GraphQL document in the mutation option."):invariant$1(a,14),__DEV__?invariant$1("network-only"===m||"no-cache"===m,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):invariant$1("network-only"===m||"no-cache"===m,15),r=this.generateMutationId(),a=this.transform(a).document,s=this.getVariables(a,s),this.transform(a).hasClientExports)?[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:m,errorPolicy:h,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"===h)throw new ApolloError({graphQLErrors:e.errors});i&&(i.loading=!1,i.error=null);e=__assign$2({},e);return"function"==typeof u&&(u=u(e)),"ignore"===h&&graphQLResultHasError(e)&&delete e.errors,o.markMutationResult({mutationId:r,result:e,document:a,variables:s,fetchPolicy:m,errorPolicy:h,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(),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(r,o){var a,s=this,l=(void 0===o&&(o=this.cache),r.result),c=[],i="no-cache"===r.fetchPolicy;if(!i&&shouldWriteResult(l,r.errorPolicy)&&(c.push({result:l.data,dataId:"ROOT_MUTATION",query:r.document,variables:r.variables}),(a=r.updateQueries)&&this.queries.forEach(function(e,t){var n,r,i,e=e.observableQuery,e=e&&e.queryName;e&&hasOwnProperty$d.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||r.refetchQueries||r.update||r.onQueryUpdated||r.removeOptimistic){var t=[];if(this.refetchQueries({updateCache:function(t){i||c.forEach(function(e){return t.write(e)});var e,n=r.update;n&&(i||(e=t.diff({id:"ROOT_MUTATION",query:s.transform(r.document).asQuery,variables:r.variables,optimistic:!1,returnPartialData:!0})).complete&&(l=__assign$2(__assign$2({},l),{data:e.result})),n(t,l,{context:r.context,variables:r.variables})),i||r.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,t=t.DELETE;return"__typename"===n?e:t}})},include:r.refetchQueries,optimistic:!1,removeOptimistic:r.removeOptimistic,onQueryUpdated:r.onQueryUpdated||null}).forEach(function(e){return t.push(e)}),r.awaitRefetchQueries||r.onQueryUpdated)return Promise.all(t).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){__DEV__&&invariant$1.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).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){var t,n,r,i,o,a=this.transformCache;return a.has(e)||(t=this.cache.transformDocument(e),r=removeConnectionDirectiveFromDocument(this.cache.transformForLink(t)),n=this.localState.clientQuery(t),r=r&&this.localState.serverQuery(r),i={document:t,hasClientExports:hasClientExports(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),clientQuery:n,serverQuery:r,defaultVars:getDefaultValues(getOperationDefinition(t)),asQuery:__assign$2(__assign$2({},t),{definitions:t.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?__assign$2(__assign$2({},e),{operation:"query"}):e})})},(o=function(e){e&&!a.has(e)&&a.set(e,i)})(e),o(t),o(n),o(r)),a.get(e)},e.prototype.getVariables=function(e,t){return __assign$2(__assign$2({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=__assign$2(__assign$2({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new QueryInfo(this),n=new ObservableQuery({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?invariant$1(e.query,"query option is required. You must specify your GraphQL document in the query option."):invariant$1(e.query,16),__DEV__?invariant$1("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):invariant$1("Document"===e.query.kind,17),__DEV__?invariant$1(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):invariant$1(!e.returnPartialData,18),__DEV__?invariant$1(!e.pollInterval,"pollInterval option only supported on watchQuery."):invariant$1(!e.pollInterval,19),this.fetchQuery(t,e).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(__DEV__?new InvariantError("Store reset while query was in flight (not completed in link chain)"):new InvariantError(20)),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).document,!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$1(e.queryId===t),n.setObservableQuery(e),o.set(t,e)}),__DEV__&&a.size&&a.forEach(function(e,t){e||__DEV__&&invariant$1.warn("Unknown query "+("string"==typeof t?"named ":"")+JSON.stringify(t,null,2)+" requested in refetchQueries options.include array")}),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(t){return n.getObservableFromLink(i,l,t).map(function(e){if("no-cache"!==o&&(shouldWriteResult(e,a)&&n.cache.write({query:i,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:t}),n.broadcastQueries()),graphQLResultHasError(e))throw new ApolloError({graphQLErrors:e.errors});return e})}var r,n=this,i=e.query,o=e.fetchPolicy,a=e.errorPolicy,s=e.variables,e=e.context,l=void 0===e?{}:e,i=this.transform(i).document,s=this.getVariables(i,s);return this.transform(i).hasClientExports?(r=this.localState.addExportedVariables(i,s,l).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(s)},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.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!=(o=null==t?void 0:t.queryDeduplication)?o:this.queryDeduplication),this.transform(e).serverQuery),p=(d?(i=this.inFlightLinkObservables,o=this.link,a={query:d,variables:n,operationName:getOperationName(d)||void 0,context:this.prepareContext(__assign$2(__assign$2({},t),{forceFetch:!r}))},t=a.context,r?(s=i.get(d)||new Map,i.set(d,s),l=canonicalStringify(n),(c=s.get(l))||(r=new Concast([execute(o,a)]),s.set(l,c=r),r.cleanup(function(){s.delete(l)&&s.size<1&&i.delete(d)}))):c=new Concast([execute(o,a)])):(c=new Concast([Observable.of({data:{}})]),t=this.prepareContext(t)),this.transform(e).clientQuery);return 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();return asyncMap(this.getObservableFromLink(r.document,o.context,o.variables),function(e){var t=isNonEmptyArray(e.errors);if(a>=r.lastRequestId){if(t&&"none"===o.errorPolicy)throw r.markError(new ApolloError({graphQLErrors:e.errors}));r.markResult(e,o,i),r.markReady()}var n={data:e.data,loading:!1,networkStatus:r.networkStatus||NetworkStatus.ready};return t&&"ignore"!==o.errorPolicy&&(n.errors=e.errors),n},function(e){e=isApolloError(e)?e:new ApolloError({networkError:e});throw a>=r.lastRequestId&&r.markError(e),e})},e.prototype.fetchQueryObservable=function(e,t,n){function r(e){return f.variables=e,i.fetchQueryByPolicy(s,f,n)}var i=this,o=(void 0===n&&(n=NetworkStatus.loading),this.transform(t.query).document),a=this.getVariables(o,t.variables),s=this.getQuery(e),l=t.fetchPolicy,c=t.errorPolicy,u=t.returnPartialData,d=t.notifyOnNetworkStatusChange,p=t.context,f=Object.assign({},t,{query:o,variables:a,fetchPolicy:void 0===l?"cache-first":l,errorPolicy:void 0===c?"none":c,returnPartialData:void 0!==u&&u,notifyOnNetworkStatusChange:void 0!==d&&d,context:void 0===p?{}:p}),h=(this.fetchCancelFns.set(e,function(e){setTimeout(function(){return h.cancel(e)})}),new Concast(this.transform(f.query).hasClientExports?this.localState.addExportedVariables(f.query,f.variables,f.context).then(r):r(f.variables)));return h.cleanup(function(){i.fetchCancelFns.delete(e),applyNextFetchPolicy(t)}),h},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),!1;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!__DEV__||f||equal(e,{})||logMissingFieldErrors(t.missing),e&&s.transform(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)}):r(e)}function o(){return s.getResultsFromLink(i,g,{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?[r(a,i.markReady())]:f||y?[r(a),o()]:[o()];case"cache-and-network":return(a=n()).complete||f||y?[r(a),o()]:[o()];case"cache-only":return[r(n(),i.markReady())];case"network-only":return y?[r(n()),o()]:[o()];case"no-cache":return y?[r(i.getDiff()),o()]:[o()];case"standby":return[]}},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;function mergeOptions(e,t){return compact(e,t,t.variables&&{variables:__assign$2(__assign$2({},e.variables),t.variables)})}var ApolloClient=function(){function e(e){var t=this,n=(this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],e.uri),r=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,a=void 0!==a&&a,s=e.ssrForceFetchDelay,s=void 0===s?0:s,l=e.connectToDevTools,l=void 0===l?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:l,c=e.queryDeduplication,c=void 0===c||c,u=e.defaultOptions,d=e.assumeImmutableResults,d=void 0!==d&&d,p=e.resolvers,f=e.typeDefs,h=e.fragmentMatcher,m=e.name,g=e.version,e=(e=e.link)||(n?new HttpLink({uri:n,credentials:r,headers:i}):ApolloLink.empty());if(!o)throw __DEV__?new InvariantError("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new InvariantError(9);this.link=e,this.cache=o,this.disableNetworkFetches=a||0<s,this.queryDeduplication=c,this.defaultOptions=u||{},this.typeDefs=f,s&&setTimeout(function(){return t.disableNetworkFetches=!1},s),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),l&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!hasSuggestedDevtools&&__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&&__DEV__&&invariant$1.log("Download the Apollo DevTools for a better development experience: "+n))),this.version=version$1,this.localState=new LocalState({cache:o,client:this,resolvers:p,fragmentMatcher:h}),this.queryManager=new QueryManager({cache:this.cache,link:this.link,queryDeduplication:c,ssrMode:a,clientAwareness:{name:m,version:g},localState:this.localState,assumeImmutableResults:d,onBroadcast:l?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return 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)),__DEV__?invariant$1("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):invariant$1("cache-and-network"!==e.fetchPolicy,10),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){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return execute(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){__DEV__&&invariant$1.debug("In client.refetchQueries, Promise.all promise rejected with error "+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$1(e){return e.replace(/[\s,]+/g," ").trim()}function cacheKeyFromLoc(e){return normalize$1(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$1(e);if(!docCache.has(t)){e=parse$2(e,{experimentalFragmentVariables: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$5=(!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])return this;if(!t)return l(this,e),this;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)}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$4(e){return"string"==typeof e}Object.defineProperty(isString$5,"__esModule",{value:!0}),isString$5.default=isString$4;var isObject$e={};function isObject$d(e){return null!==e&&"object"==typeof e}Object.defineProperty(isObject$e,"__esModule",{value:!0}),isObject$e.default=isObject$d;var AuthContext,MessageSeverity,require$$4=getDefaultExportFromNamespaceIfNotNamed(printer),require$$5=getDefaultExportFromNamespaceIfNotNamed(getOperationAST$1),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=(protocol.GRAPHQL_SUBSCRIPTIONS=GRAPHQL_SUBSCRIPTIONS,{}),MIN_WS_TIMEOUT=(Object.defineProperty(defaults,"__esModule",{value:!0}),defaults.WS_TIMEOUT=defaults.MIN_WS_TIMEOUT=void 0,1e3),WS_TIMEOUT=(defaults.MIN_WS_TIMEOUT=MIN_WS_TIMEOUT,3e4),messageTypes=(defaults.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$1&&commonjsGlobal$1.__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$8=commonjsGlobal$1&&commonjsGlobal$1.__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$1&&commonjsGlobal$1.__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];break}if(6===t[0]&&l.label<s[1]){l.label=s[1],s=t;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(t);break}s[2]&&l.ops.pop(),l.trys.pop();continue}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$1&&commonjsGlobal$1.__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$1?commonjsGlobal$1:"undefined"!=typeof window?window:{},NativeWebSocket=_global.WebSocket||_global.MozWebSocket,Backoff=backo2,eventemitter3_1=eventemitter3.exports,is_string_1=isString$5,is_object_1=isObject$e,printer_1=require$$4,getOperationAST_1=require$$5,symbol_observable_1=result,protocol_1=protocol,defaults_1=defaults,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$8(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 t.subscriptionClient=e instanceof SubscriptionClient_1?e:new SubscriptionClient_1(e.uri,e.options,e.webSocketImpl),t}return __extends$1(e,n),e.prototype.request=function(e){return this.subscriptionClient.request(e)},e}(ApolloLink),dev=(!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}(),{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://login.dev.veritone.com",logoutUrl:"https://admin.dev.us-1.veritone.com/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"}),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://login.stage.veritone.com",logoutUrl:"https://admin.stage.us-1.veritone.com/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"},config$1={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"},"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://login.veritone.com",logoutUrl:"https://admin.us-1.veritone.com/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"},"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://aiware.us-2.veritone.com/login",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"},"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"},"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"},"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"},"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"},"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"},"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"},"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://aiware.us-fed-1.veritone.com/login",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"},"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://aiware.us-fed-2.veritone.com/login",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"}};(AuthContext=AuthContext||{}).ResetPassword="ResetPassword";const namespace$3$1="auth",initialState$3$1={OAuthToken:"",userId:"",sessionToken:"",user:{},status:"idle",authContext:null,errorMessage:null,userIsActive:!0},authSlice=createSlice({name:namespace$3$1,initialState:initialState$3$1,reducers:{fetchUserRequest(e){e.status="loading"},fetchUserSuccess(e,t){var n;e.sessionToken=null==(n=t.payload)?void 0:n.token,e.userId=null==(n=t.payload)?void 0:n.userId,e.user=Object.assign({},t.payload),e.status="success"},fetchUserError(e){e.status="failure"},updateTokenRequest(e,t){e.status="idle"},updateTokenSuccess(e,t){t=t.payload.token;e.sessionToken=t,e.user.token=t,e.status="success"},updateTokenError(e){e.sessionToken="",e.status="failure"},updateUserLanguageStart(e,t){e.status="loading"},updateUserLanguageSuccess(e,t){e.user.preferredLanguage=t.payload,e.status="success"},refreshTokenRequest(e,t){e.status="loading"},refreshTokenSuccess(e,t){e.sessionToken=null==(t=null==(t=t.payload)?void 0:t.refreshToken)?void 0:t.token,e.status="success"},refreshTokenError(e){e.status="failure"},extendTokenRequest(e,t){e.status="loading"},extendTokenSuccess(e,t){e.sessionToken!==t.payload.token&&(e.sessionToken=t.payload.token),e.status="success"},extendTokenError(e){e.status="failure"},setTokenExpiration(e,t){e.user=Object.assign(Object.assign({},e.user),{tokenExpiration:null==(e=t.payload)?void 0:e.expirationTime})},logoutRequest(e,t){e.status="loading"},logoutSuccess(e){e.status="success"},logoutError(e){e.status="failure"},resetPasswordRequest(e,t){e.status="loading",e.errorMessage=null,e.authContext=AuthContext.ResetPassword},resetPasswordError(e,t){t=t.payload;e.status="failure",e.errorMessage=t.message},resetPasswordSuccess(e){e.status="success",e.errorMessage=null}}}),{fetchUserRequest,fetchUserSuccess,fetchUserError,refreshTokenRequest,refreshTokenSuccess,extendTokenRequest,extendTokenSuccess,extendTokenError,refreshTokenError,setTokenExpiration,logoutRequest,logoutSuccess,logoutError,updateTokenRequest,updateTokenSuccess,updateTokenError,updateUserLanguageStart,updateUserLanguageSuccess,resetPasswordRequest,resetPasswordError,resetPasswordSuccess}=authSlice.actions,authReducer=authSlice.reducer,namespace$2$1="configs",initialState$2$2={initConfig:{},config:null,status:"idle"},configsSlice=createSlice({name:namespace$2$1,initialState:initialState$2$2,reducers:{getInitConfig(e,t){e.initConfig=t.payload,e.status="loading"},getSessionTimeout(e,t){e.status="loading"},setSessionTimeout(e,t){e.status="success",e.config.sessionTimeout=t.payload},getConfigFail(e){e.status="failure"},getConfigSuccess(e,t){e.status="success",e.config=t.payload},enableBetaFeatures(e){e.initConfig=Object.assign(Object.assign({},e.initConfig),{betaFeatures:!0})},disableBetaFeatures(e){e.initConfig=Object.assign(Object.assign({},e.initConfig),{betaFeatures:!1})}}}),{getInitConfig,getConfigFail,getConfigSuccess,enableBetaFeatures,disableBetaFeatures,getSessionTimeout,setSessionTimeout}=configsSlice.actions,configsReducer=configsSlice.reducer,sessionTokenSelector=e=>{return null==(e=e[namespace$3$1])?void 0:e.sessionToken},authSelector=e=>(null==e?void 0:e[namespace$3$1])||{},userSelector$2=e=>{return null==(e=e[namespace$3$1])?void 0:e.user},selectOrgId=e=>{return null==(e=null==(e=null==(e=e[namespace$3$1])?void 0:e.user)?void 0:e.organization)?void 0:e.organizationId},authErrorMessage=e=>{return null==(e=e[namespace$3$1])?void 0:e.errorMessage},authContextSelector=e=>{return null==(e=e[namespace$3$1])?void 0:e.authContext},authStatusSelector=e=>{return null==(e=e[namespace$3$1])?void 0:e.status},preferredLanguageSelector=e=>{var t;return null!=(t=null==(t=e[namespace$3$1])?void 0:t.user)&&t.preferredLanguage?null==(e=null==(t=e[namespace$3$1])?void 0:t.user)?void 0:e.preferredLanguage:"en"},selectIsUserAdmin=e=>{return null==(e=null==(e=null==(e=e[namespace$3$1])?void 0:e.user)?void 0:e.roles)?void 0:e.includes("superadmin")},rootApiSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.apiRoot},configSelector=e=>{return null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config},switchApiSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.switchAppUrl},cmsUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.cmsAppUrl},graphEndpointSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.graphEndpoint},loginUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.loginUrl},logoutUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.logoutUrl},hidePasswordResetSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.initConfig)?void 0:e.hidePasswordReset},logoutRedirectUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.initConfig)?void 0:e.logoutRedirectUrl},controllerNodeRedImageSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.controllerNodeRedImage},controllerUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.controllerUrl},automateControllerUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.automateControllerUrl},automateUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.automateUrl},baseUrlSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.initConfig)?void 0:e.baseUrl},initialConfigSelector=e=>{return null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.initConfig},sessionTimeoutSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.config)?void 0:e.sessionTimeout},betaFeaturesSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.initConfig)?void 0:e.betaFeatures},appIdSelector=e=>{return null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.initConfig)?void 0:e.applicationId},selectApiConfigs$1=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,n)=>({apiRoot:e,graphQLEndpoint:t,token:n}));function __rest$4(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$7(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:t,extraHeaders:n,variables:r,operationName:i,graphEndpoint:o,token:a}){return __awaiter$7(this,void 0,void 0,function*(){const e=yield fetch(o,{method:"post",body:JSON.stringify({query:t,variables:r,operationName:i}),credentials:"include",headers:Object.assign(Object.assign({"Content-Type":"application/json"},a&&{Authorization:"Bearer "+a}),n)});return e.json()})}const getAppConfig=(e,t)=>__awaiter$7(void 0,void 0,void 0,function*(){try{return yield baseGraphQLApi({query:`query {
|
|
805
805
|
staticAppConfig {
|
|
806
806
|
apiRoot
|
|
807
807
|
switchAppUrl
|
|
@@ -812,16 +812,16 @@ createScheduledJob(input:{
|
|
|
812
812
|
automateUrl
|
|
813
813
|
cmsAppUrl
|
|
814
814
|
automateControllerUrl
|
|
815
|
-
controllerNodeRedImage
|
|
815
|
+
controllerNodeRedImage
|
|
816
816
|
}
|
|
817
|
-
}`,graphEndpoint:e,token:t})}catch(e){return{success:!1}}}),getEnvironmentConfig=(t="https://api.us-1.veritone.com/v3/graphql")=>Object.values(config$1).find(e=>e.graphEndpoint===t)||config$1["prod-us-1"];function*getConfigsSaga(t){var e,n,r,i,o=yield select(baseUrlSelector),a=t.payload.authToken,s=(a&&(yield put(updateTokenRequest({token:a}))),getEnvironmentConfig(o));if(s.graphEndpoint===o)return yield put(getConfigSuccess(Object.assign({},s))),void(null!=(c=(s=t.payload).onComplete)&&c.call(s));try{var l=yield getAppConfig(o,a);if(null==(e=null==l?void 0:l.data)||!e.staticAppConfig)throw new Error("Failed to get app config from core-graphql");yield put(getConfigSuccess(Object.assign({},null==(n=null==l?void 0:l.data)?void 0:n.staticAppConfig))),null!=(i=(r=t.payload).onComplete)&&i.call(r)}catch(e){console.log(e);var c=getEnvironmentConfig(o);yield put(getConfigSuccess(Object.assign({},c))),null!=(a=(s=t.payload).onComplete)&&a.call(s)}}function*configsSaga(){yield all([takeEvery$1(getInitConfig.type,getConfigsSaga)])}function getConfigModule(){return{id:namespace$2$1,reducerMap:{[namespace$2$1]:configsReducer},sagas:[configsSaga],initialActions:[]}}const handleFetchUserRequest=(t,n)=>__awaiter$7(void 0,void 0,void 0,function*(){try{const e=yield fetch(t+"/v1/admin/current-user",{credentials:"include",method:"GET",headers:Object.assign({"Content-Type":"application/json"},n&&{Authorization:"Bearer "+n})});return yield e.json()}catch(e){console.error(e)}}),handleRefreshTokenRequest=(t,n)=>__awaiter$7(void 0,void 0,void 0,function*(){var e=`
|
|
817
|
+
}`,graphEndpoint:e,token:t})}catch(e){return{success:!1}}}),getEnvironmentConfig=(t="https://api.us-1.veritone.com/v3/graphql")=>Object.values(config$1).find(e=>e.graphEndpoint===t)||config$1["prod-us-1"];function*getConfigsSaga(t){var e,n,r,i,o=yield select(baseUrlSelector),a=t.payload.authToken,s=(a&&(yield put(updateTokenRequest({token:a}))),getEnvironmentConfig(o));if(s.graphEndpoint===o)return yield put(getConfigSuccess(Object.assign({},s))),void(null!=(c=(s=t.payload).onComplete)&&c.call(s));try{var l=yield getAppConfig(o,a);if(null==(e=null==l?void 0:l.data)||!e.staticAppConfig)throw new Error("Failed to get app config from core-graphql");yield put(getConfigSuccess(Object.assign({},null==(n=null==l?void 0:l.data)?void 0:n.staticAppConfig))),null!=(i=(r=t.payload).onComplete)&&i.call(r)}catch(e){console.log(e);var c=getEnvironmentConfig(o);yield put(getConfigSuccess(Object.assign({},c))),null!=(a=(s=t.payload).onComplete)&&a.call(s)}}function*getSessionTimeoutSaga(t){var n,r;try{var i=yield select(baseUrlSelector),o=t.payload;let e=60;const l=["us-fed-2","us-gov-2"];var a,s=l.find(e=>window.location.href.includes(e));e=s?15:(null==(r=null==(n=null==(a=yield getAppConfig(i,o))?void 0:a.data)?void 0:n.staticAppConfig)?void 0:r.sessionTimeout)||e,yield put(setSessionTimeout(e))}catch(e){console.log(e),yield put(setSessionTimeout(60))}}function*configsSaga(){yield all([takeEvery$1(getInitConfig.type,getConfigsSaga)])}function*watchSessionTimeout(){yield takeLatest$1(getSessionTimeout.type,getSessionTimeoutSaga)}function getConfigModule(){return{id:namespace$2$1,reducerMap:{[namespace$2$1]:configsReducer},sagas:[configsSaga,watchSessionTimeout],initialActions:[]}}const handleFetchUserRequest=(t,n)=>__awaiter$7(void 0,void 0,void 0,function*(){try{const e=yield fetch(t+"/v1/admin/current-user",{credentials:"include",method:"GET",headers:Object.assign({"Content-Type":"application/json"},n&&{Authorization:"Bearer "+n})});return yield e.json()}catch(e){console.error(e)}}),handleRefreshTokenRequest=(t,n)=>__awaiter$7(void 0,void 0,void 0,function*(){var e=`
|
|
818
818
|
mutation {
|
|
819
819
|
refreshToken(token: "${t}") {
|
|
820
820
|
apiToken
|
|
821
821
|
token
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
|
-
`;try{return yield baseGraphQLApi({query:e,graphEndpoint:n,token:t})}catch(e){console.error(e)}}),handleResetPasswordApi=(r,{resetToken:i,username:o,password:a,organizationInviteId:s})=>__awaiter$7(void 0,void 0,void 0,function*(){var e=r+"/v1/admin/"+(s?"org-invite/password/reset":"password/reset");try{const n=yield fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Object.assign({token:i,userName:o,password:a},s&&{organizationInviteId:s}))});if(204===n.status||n.ok)return{success:!0};var t=yield n.json();return{success:!1,status:n.status,result:t}}catch(e){return console.log(e),{success:!1}}}),handleLogoutRequest=(t,n)=>__awaiter$7(void 0,void 0,void 0,function*(){var e=`
|
|
824
|
+
`;try{return yield baseGraphQLApi({query:e,graphEndpoint:n,token:t})}catch(e){console.error(e)}}),handleExtendTokenRequest=(t,n)=>__awaiter$7(void 0,void 0,void 0,function*(){try{const e=yield fetch(n+`/v1/admin/token/${t}/extend`,{method:"GET",headers:Object.assign({"Content-Type":"application/json"},t&&{Authorization:"Bearer "+t})});return yield e.json()}catch(e){console.error(e)}}),handleResetPasswordApi=(r,{resetToken:i,username:o,password:a,organizationInviteId:s})=>__awaiter$7(void 0,void 0,void 0,function*(){var e=r+"/v1/admin/"+(s?"org-invite/password/reset":"password/reset");try{const n=yield fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Object.assign({token:i,userName:o,password:a},s&&{organizationInviteId:s}))});if(204===n.status||n.ok)return{success:!0};var t=yield n.json();return{success:!1,status:n.status,result:t}}catch(e){return console.log(e),{success:!1}}}),handleLogoutRequest=(t,n)=>__awaiter$7(void 0,void 0,void 0,function*(){var e=`
|
|
825
825
|
mutation {
|
|
826
826
|
userLogout(token: "${t}")
|
|
827
827
|
}
|
|
@@ -907,7 +907,7 @@ createScheduledJob(input:{
|
|
|
907
907
|
mutation logout($token: String!) {
|
|
908
908
|
userLogout(token: $token )
|
|
909
909
|
}
|
|
910
|
-
`,variables:e,graphEndpoint:n,token:t})}catch(e){return{success:!1}}}),namespace$1$3="snackbar",initialState$1$3={message:{},duration:3e3},snackbarSlice=createSlice({name:namespace$1$3,initialState:initialState$1$3,reducers:{showMessage(e,t){e.message=Object.assign({key:(new Date).getTime()},t.payload)},clearMessage:e=>initialState$1$3}}),{showMessage,clearMessage}=snackbarSlice.actions,snackbarReducer=snackbarSlice.reducer,snackbarSelector=e=>(null==e?void 0:e[namespace$1$3])||{};function getSnackbarModule(){return{id:namespace$1$3,reducerMap:{[namespace$1$3]:snackbarReducer},sagas:[],initialActions:[]}}!function(e){e.Success="success",e.Info="info",e.Warning="warning",e.Error="error"}(MessageSeverity=MessageSeverity||{});const namespace$7="events",initialState$9={isIdle:!1,callLogout:!1,clickedLogout:!1,callResetIdleTimer:!1,resetIdleTimerCallCounter:0,reloadPage:!1},eventsSlice=createSlice({name:namespace$7,initialState:initialState$9,reducers:{setIsIdle(e,t){e.isIdle=t.payload},setCallLogout(e,t){e.callLogout=t.payload},setClickedLogout(e,t){e.clickedLogout=t.payload},setCallResetIdleTimer(e,t){e.callResetIdleTimer=t.payload,e.resetIdleTimerCallCounter=t.payload?1:0},setReloadPage(e,t){e.reloadPage=t.payload},postNotificationCommand(e,t){},subscribeToEventsWebsocket(e){}}}),{setIsIdle,setCallLogout,setClickedLogout,setCallResetIdleTimer,setReloadPage,postNotificationCommand,subscribeToEventsWebsocket}=eventsSlice.actions,eventsReducer=eventsSlice.reducer;function*handleFetchUserSaga(){var e=yield select(rootApiSelector);if(e){var t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector);const r=yield call$7(handleFetchUserRequest,e,n);var e=yield call$7(getUserRightRequest,t,n);if(null!==r&&void 0!==r&&r.errors||e.errors)yield put(fetchUserError());else{const i=null==(t=null==(t=null==(t=null==e?void 0:e.data)?void 0:t.me)?void 0:t.roles)?void 0:t.map(e=>e.appName).filter((e,t,n)=>n.indexOf(e)===t);if(i.includes("admin"))for(const o of null==(t=null==(t=null==e?void 0:e.data)?void 0:t.myRights)?void 0:t.operations)if(o.includes("superadmin")){i.push("superadmin");break}t=null==(e=null==(t=null==e?void 0:e.data)?void 0:t.me)?void 0:e.userSettings.find(e=>"preferredLanguage"===e.key),e=null==t?void 0:t.value;r.preferredLanguage=e||"en",yield put(fetchUserSuccess(Object.assign(Object.assign({},r),{roles:i,token:r.token||n}))),yield put(subscribeToEventsWebsocket())}}else yield take(getConfigSuccess({}).type),yield put(fetchUserRequest())}function*handleRefreshTokenSaga(e){var t=yield select(graphEndpointSelector),e=e.payload["token"],e=yield call$7(handleRefreshTokenRequest,e,t);null!=e&&e.errors?yield put(refreshTokenError()):(yield put(refreshTokenSuccess(Object.assign({},e.data))),yield put(fetchUserRequest()))}function*handleLogoutSaga(e){var t=yield select(graphEndpointSelector),e=e.payload["token"],e=yield call$7(handleLogoutRequest,e,t);null!=e&&e.errors?yield put(logoutError()):yield put(logoutSuccess())}function*handleUpdateSessionToken(e){e=e.payload.token;e&&"string"==typeof e?yield put(updateTokenSuccess({token:e})):yield put(updateTokenError())}function*handleUpdateUserLanguage(e){var t=yield select(preferredLanguageSelector);const n=AIWareFormatMessage(t);try{var r=yield select(graphEndpointSelector),i=yield select(sessionTokenSelector),o=(yield select(userSelector$2))["userId"];if(!o)return sdkEventManager.dispatch(SdkEvents.languageChange,new SdkError("Changing user preferred language failed, user id is required"),null),void(yield put(showMessage({content:n({id:"shared-redux.snackbar.languageSelectionError",defaultMessage:[{type:0,value:"Something went wrong while updating preferred language"}]}),severity:MessageSeverity.Error})));var a=e.payload,s=yield call$7(updateUserSettingsApi,r,i,o,"preferredLanguage",a);sdkEventManager.dispatch(SdkEvents.languageChange,null,{preferredLanguage:s}),yield put(updateUserLanguageSuccess(s))}catch(e){sdkEventManager.dispatch(SdkEvents.languageChange,new SdkError("Changing user preferred language failed"),null),yield put(showMessage({content:n({id:"shared-redux.snackbar.languageSelectionChangeError",defaultMessage:[{type:0,value:"Something went wrong while updating preferred language"}]}),severity:MessageSeverity.Error})),console.log(e)}}function*handleResetPasswordSaga(e){var t,n,r=yield select(preferredLanguageSelector);const i=AIWareFormatMessage(r);try{var{resetToken:o,password:a,username:s,organizationInviteId:l}=e.payload,c=yield select(rootApiSelector),u=yield call$7(handleResetPasswordApi,c,{resetToken:o,username:s,password:a,organizationInviteId:l});if(null!=u&&u.success)yield put(resetPasswordSuccess());else{let e=i({id:"os-auth.reset-password.internalServerError",defaultMessage:[{type:0,value:"An error has occurred."}]});401===u.status&&"PasswordResetTokenExpired"===(null==(t=u.result)?void 0:t.errorCode)?e=i({id:"os-auth.reset-password.expireMessageDescriptive",defaultMessage:[{type:0,value:'The password reset link you used has expired. Please click the "Forgot Password" link on the login page to generate a new link.'}]}):403===u.status?e=(null==(n=u.result)?void 0:n.message)||e:404===u.status&&(e=i({id:"os-auth.reset-password.expireMessage",defaultMessage:[{type:0,value:"An error has occurred. The reset link might be expired."}]})),yield put(resetPasswordError({message:e}))}}catch(e){console.log(e),yield put(resetPasswordError({message:i({id:"os-auth.reset-password.internalError",defaultMessage:[{type:0,value:"Could not reset your password."}]})}))}}function*authSaga(){yield all([takeLatest$1(fetchUserRequest.type,handleFetchUserSaga),takeLatest$1(updateTokenRequest.type,handleUpdateSessionToken),takeLatest$1(resetPasswordRequest.type,handleResetPasswordSaga),takeEvery$1(refreshTokenRequest.type,handleRefreshTokenSaga),takeEvery$1(logoutRequest.type,handleLogoutSaga),takeEvery$1(updateUserLanguageStart.type,handleUpdateUserLanguage)])}function getAuthModule(){return{id:namespace$3$1,reducerMap:{[namespace$3$1]:authReducer},sagas:[authSaga],initialActions:[fetchUserRequest()]}}const links={},getMailboxSessionLink=e=>links[e],setMailboxSessionLink=(e,t,n)=>(links[e]={link:t,token:n},links[e]),extractSessionLink=(e,t)=>{var{link:e,token:n}=e;if(t===n||""===t)return e},createSessionLink=(e,t,n)=>new WebSocketLink({uri:e,options:{reconnect:!0,connectionParams:{authorization:"Bearer "+n,mailboxId:t}}}),setSessionLink=(e,t,n)=>{let r;var i=getMailboxSessionLink(t);return r=(r=i?extractSessionLink(i,n):r)||createSessionLink(e,t,n),setMailboxSessionLink(t,r,n)},createApolloClient=e=>new ApolloClient({link:e,cache:new InMemoryCache}),createApolloWs=(e,t,n)=>{return setSessionLink(e,n,t).link},notificationCommands={setIsIdle:"set_is_idle",setCallLogout:"set_call_logout",setClickedLogout:"set_clicked_logout",setCallResetIdleTimer:"set_call_reset_idle_timer",goToLoginPage:"go_to_login_page",refreshPage:"refreshPage"},postNotificationApi=(t,n,r={},i=!1,o="text",a,s)=>__awaiter$7(void 0,void 0,void 0,function*(){var e={body:JSON.stringify(r),userId:n,ephemeral:i,contentType:o,eventType:a};try{return yield baseGraphQLApi({query:`
|
|
910
|
+
`,variables:e,graphEndpoint:n,token:t})}catch(e){return{success:!1}}}),namespace$1$3="snackbar",initialState$1$3={message:{},duration:3e3},snackbarSlice=createSlice({name:namespace$1$3,initialState:initialState$1$3,reducers:{showMessage(e,t){e.message=Object.assign({key:(new Date).getTime()},t.payload)},clearMessage:e=>initialState$1$3}}),{showMessage,clearMessage}=snackbarSlice.actions,snackbarReducer=snackbarSlice.reducer,snackbarSelector=e=>(null==e?void 0:e[namespace$1$3])||{};function getSnackbarModule(){return{id:namespace$1$3,reducerMap:{[namespace$1$3]:snackbarReducer},sagas:[],initialActions:[]}}!function(e){e.Success="success",e.Info="info",e.Warning="warning",e.Error="error"}(MessageSeverity=MessageSeverity||{});const namespace$7="events",initialState$9={isIdle:!1,callLogout:!1,clickedLogout:!1,callResetIdleTimer:!1,resetIdleTimerCallCounter:0,reloadPage:!1},eventsSlice=createSlice({name:namespace$7,initialState:initialState$9,reducers:{setIsIdle(e,t){e.isIdle=t.payload},setCallLogout(e,t){e.callLogout=t.payload},setClickedLogout(e,t){e.clickedLogout=t.payload},setCallResetIdleTimer(e,t){e.callResetIdleTimer=t.payload,e.resetIdleTimerCallCounter=t.payload?1:0},setReloadPage(e,t){e.reloadPage=t.payload},postNotificationCommand(e,t){},subscribeToEventsWebsocket(e){}}}),{setIsIdle,setCallLogout,setClickedLogout,setCallResetIdleTimer,setReloadPage,postNotificationCommand,subscribeToEventsWebsocket}=eventsSlice.actions,eventsReducer=eventsSlice.reducer;function*handleFetchUserSaga(){var e=yield select(rootApiSelector);if(e){var t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector);const r=yield call$7(handleFetchUserRequest,e,n);var e=yield call$7(getUserRightRequest,t,n);if(null!==r&&void 0!==r&&r.errors||e.errors)yield put(fetchUserError());else{const i=null==(t=null==(t=null==(t=null==e?void 0:e.data)?void 0:t.me)?void 0:t.roles)?void 0:t.map(e=>e.appName).filter((e,t,n)=>n.indexOf(e)===t);if(i.includes("admin"))for(const o of null==(t=null==(t=null==e?void 0:e.data)?void 0:t.myRights)?void 0:t.operations)if(o.includes("superadmin")){i.push("superadmin");break}t=null==(e=null==(t=null==e?void 0:e.data)?void 0:t.me)?void 0:e.userSettings.find(e=>"preferredLanguage"===e.key),e=null==t?void 0:t.value;r.preferredLanguage=e||"en",yield put(fetchUserSuccess(Object.assign(Object.assign({},r),{roles:i,token:r.token||n}))),yield put(subscribeToEventsWebsocket())}}else yield take(getConfigSuccess({}).type),yield put(fetchUserRequest())}function*handleRefreshTokenSaga(e){var t=yield select(graphEndpointSelector),e=e.payload["token"],e=yield call$7(handleRefreshTokenRequest,e,t);null!=e&&e.errors?yield put(refreshTokenError()):(yield put(refreshTokenSuccess(Object.assign({},e.data))),yield put(fetchUserRequest()))}function*handleExtendTokenSaga(e){var e=e.payload["token"],t=yield select(rootApiSelector),e=yield call$7(handleExtendTokenRequest,e,t);null!=e&&e.errors?yield put(extendTokenError()):yield put(extendTokenSuccess({token:e.token}))}function*handleLogoutSaga(e){var t=yield select(graphEndpointSelector),e=e.payload["token"],e=yield call$7(handleLogoutRequest,e,t);null!=e&&e.errors?yield put(logoutError()):yield put(logoutSuccess())}function*handleUpdateSessionToken(e){e=e.payload.token;e&&"string"==typeof e?yield put(updateTokenSuccess({token:e})):yield put(updateTokenError())}function*handleUpdateUserLanguage(e){var t=yield select(preferredLanguageSelector);const n=AIWareFormatMessage(t);try{var r=yield select(graphEndpointSelector),i=yield select(sessionTokenSelector),o=(yield select(userSelector$2))["userId"];if(!o)return sdkEventManager.dispatch(SdkEvents.languageChange,new SdkError("Changing user preferred language failed, user id is required"),null),void(yield put(showMessage({content:n({id:"shared-redux.snackbar.languageSelectionError",defaultMessage:[{type:0,value:"Something went wrong while updating preferred language"}]}),severity:MessageSeverity.Error})));var a=e.payload,s=yield call$7(updateUserSettingsApi,r,i,o,"preferredLanguage",a);sdkEventManager.dispatch(SdkEvents.languageChange,null,{preferredLanguage:s}),yield put(updateUserLanguageSuccess(s))}catch(e){sdkEventManager.dispatch(SdkEvents.languageChange,new SdkError("Changing user preferred language failed"),null),yield put(showMessage({content:n({id:"shared-redux.snackbar.languageSelectionChangeError",defaultMessage:[{type:0,value:"Something went wrong while updating preferred language"}]}),severity:MessageSeverity.Error})),console.log(e)}}function*handleResetPasswordSaga(e){var t,n,r=yield select(preferredLanguageSelector);const i=AIWareFormatMessage(r);try{var{resetToken:o,password:a,username:s,organizationInviteId:l}=e.payload,c=yield select(rootApiSelector),u=yield call$7(handleResetPasswordApi,c,{resetToken:o,username:s,password:a,organizationInviteId:l});if(null!=u&&u.success)yield put(resetPasswordSuccess());else{let e=i({id:"os-auth.reset-password.internalServerError",defaultMessage:[{type:0,value:"An error has occurred."}]});401===u.status&&"PasswordResetTokenExpired"===(null==(t=u.result)?void 0:t.errorCode)?e=i({id:"os-auth.reset-password.expireMessageDescriptive",defaultMessage:[{type:0,value:'The password reset link you used has expired. Please click the "Forgot Password" link on the login page to generate a new link.'}]}):403===u.status?e=(null==(n=u.result)?void 0:n.message)||e:404===u.status&&(e=i({id:"os-auth.reset-password.expireMessage",defaultMessage:[{type:0,value:"An error has occurred. The reset link might be expired."}]})),yield put(resetPasswordError({message:e}))}}catch(e){console.log(e),yield put(resetPasswordError({message:i({id:"os-auth.reset-password.internalError",defaultMessage:[{type:0,value:"Could not reset your password."}]})}))}}function*authSaga(){yield all([takeLatest$1(fetchUserRequest.type,handleFetchUserSaga),takeLatest$1(updateTokenRequest.type,handleUpdateSessionToken),takeLatest$1(resetPasswordRequest.type,handleResetPasswordSaga),takeEvery$1(refreshTokenRequest.type,handleRefreshTokenSaga),takeEvery$1(extendTokenRequest.type,handleExtendTokenSaga),takeEvery$1(logoutRequest.type,handleLogoutSaga),takeEvery$1(updateUserLanguageStart.type,handleUpdateUserLanguage)])}function getAuthModule(){return{id:namespace$3$1,reducerMap:{[namespace$3$1]:authReducer},sagas:[authSaga],initialActions:[fetchUserRequest()]}}const links={},getMailboxSessionLink=e=>links[e],setMailboxSessionLink=(e,t,n)=>(links[e]={link:t,token:n},links[e]),extractSessionLink=(e,t)=>{var{link:e,token:n}=e;if(t===n||""===t)return e},createSessionLink=(e,t,n)=>new WebSocketLink({uri:e,options:{reconnect:!0,connectionParams:{authorization:"Bearer "+n,mailboxId:t}}}),setSessionLink=(e,t,n)=>{let r;var i=getMailboxSessionLink(t);return r=(r=i?extractSessionLink(i,n):r)||createSessionLink(e,t,n),setMailboxSessionLink(t,r,n)},createApolloClient=e=>new ApolloClient({link:e,cache:new InMemoryCache}),createApolloWs=(e,t,n)=>{return setSessionLink(e,n,t).link},notificationCommands={setIsIdle:"set_is_idle",setCallLogout:"set_call_logout",setClickedLogout:"set_clicked_logout",setCallResetIdleTimer:"set_call_reset_idle_timer",goToLoginPage:"go_to_login_page",refreshPage:"refreshPage"},postNotificationApi=(t,n,r={},i=!1,o="text",a,s)=>__awaiter$7(void 0,void 0,void 0,function*(){var e={body:JSON.stringify(r),userId:n,ephemeral:i,contentType:o,eventType:a};try{return yield baseGraphQLApi({query:`
|
|
911
911
|
mutation ($body: String!, $userId: ID!, $ephemeral: Boolean!, $contentType: String!, $eventType: String){
|
|
912
912
|
notificationPost(
|
|
913
913
|
input: {
|
|
@@ -937,7 +937,19 @@ createScheduledJob(input:{
|
|
|
937
937
|
updatedDateTime
|
|
938
938
|
eventType
|
|
939
939
|
}
|
|
940
|
-
}`,o),r=createApolloWs(l,s,o);const i=createApolloClient(r);r=i.subscribe({query:n}).subscribe({next(e){var t=(null==(t=null==(t=null==e?void 0:e.data)?void 0:t.notificationPosted)?void 0:t.body)||"{}",n=(null==(n=null==(n=null==e?void 0:e.data)?void 0:n.notificationPosted)?void 0:n.eventType)||"";if("json"===(null==(e=null==(e=null==e?void 0:e.data)?void 0:e.notificationPosted)?void 0:e.contentType))try{var r=JSON.parse(t);if(n&&n===aiwareEvent){var i=null==r?void 0:r.command,o=null==r?void 0:r.value;switch(i){case notificationCommands.setIsIdle:a(setIsIdle(o));break;case notificationCommands.setCallLogout:a(setCallLogout(o));break;case notificationCommands.setClickedLogout:a(setClickedLogout(o));break;case notificationCommands.setCallResetIdleTimer:a(setCallResetIdleTimer(o));break;case notificationCommands.goToLoginPage:window.__logout_requested||o!==window.navigator.userAgent||goToPage$1(u||c);break;case notificationCommands.refreshPage:a(setReloadPage(o))}}}catch(e){console.log("Expecting JSON",{error:e},{eventMessage:t})}}});return e.push(i),t.push(r),()=>{t.forEach(e=>e.unsubscribe()),e.forEach(e=>e.stop())}})}function*performSubscriptionTask(){for(var e=yield call$7(websocketInitChannel$1);;)yield put(yield take(e))}function*websocketSagas$1(){subscriptionTask$1&&(yield cancel(subscriptionTask$1));var e=yield fork(performSubscriptionTask);subscriptionTask$1=e}function*postNotification(e){var t=yield select(graphEndpointSelector),n=yield select(authSelector),r=yield select(sessionTokenSelector),n=null==n?void 0:n.userId,e=(null==e?void 0:e.payload)||{},{ephemeral:i,contentType:o,eventType:a}=e,e=__rest$4(e,["ephemeral","contentType","eventType"]);postNotificationApi(t,n,e,i,o,a,r)}function*eventsSaga(){yield all([takeLatest$1(subscribeToEventsWebsocket.type,websocketSagas$1),takeLatest$1(postNotificationCommand.type,postNotification)])}const isIdleSelector=e=>{return null==(e=e[namespace$7])?void 0:e.isIdle},callLogoutSelector=e=>{return null==(e=e[namespace$7])?void 0:e.callLogout},clickedLogoutSelector=e=>{return null==(e=e[namespace$7])?void 0:e.clickedLogout},callResetIdleTimerSelector=e=>{return null==(e=e[namespace$7])?void 0:e.callResetIdleTimer},resetIdleTimerCallCounterSelector=e=>{return null==(e=e[namespace$7])?void 0:e.resetIdleTimerCallCounter},reloadPageSelector=e=>{return null==(e=e[namespace$7])?void 0:e.reloadPage};function getEventsModule(){return{id:namespace$7,reducerMap:{[namespace$7]:eventsReducer},sagas:[eventsSaga]}}var NotificationFlag,CreateModes,TabId,AvailableWidgets,AvailablePanels,AvailableComponents,userActivityEvents={records:[{id:"ff9272fe-5e98-4ffb-96b6-5df2918d9b2b",event:"login_succeeded",userId:"10ffa55a-d68b-494b-83df-49ce2d008e6d",userName:"sys_graphql_citest_superadmin@veritone.com",organizationId:"7682",applicationId:"123",createdDateTime:"2020-10-26T06:40:12.928Z",payload:{organizationId:12333,organizationName:"name",userName:"user",userId:"10ffa55a-d68b-494b-83df-49ce2d008e6d"}}]},mockData={userActivityEvents:userActivityEvents};const fakeAPI=()=>new Promise((e,t)=>{setTimeout(()=>e({success:!0,data:mockData}),500)}),getActivityApi=()=>__awaiter$7(void 0,void 0,void 0,function*(){try{var{success:e,data:t}=yield fakeAPI();return e&&t.userActivityEvents?{data:t.userActivityEvents,success:!0}:{success:!1,data:null}}catch(e){return{success:!1,data:null,message:e}}}),getApplicationsApi=(t,n)=>__awaiter$7(void 0,void 0,void 0,function*(){try{const e=yield fetch(t+"/v1/admin/current-user/applications",{method:"GET",headers:Object.assign({"Content-Type":"application/json"},n&&{Authorization:"Bearer "+n}),credentials:"include"});return e.json()}catch(e){console.error(e)}}),getNodeRedVersionEdgeApi=t=>__awaiter$7(void 0,void 0,void 0,function*(){try{const e=yield fetch(t+"/edge/v1/flow/engineId/image/",{method:"GET"});return e.json()}catch(e){return{success:!1}}});function __awaiter$6(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(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const AIWareIntlProvider=e=>{const n=useSelector(preferredLanguageSelector)||"en";var t=e.style;const[r,i]=react.exports.useState({});return react.exports.useEffect(()=>{__awaiter$6(void 0,void 0,void 0,function*(){try{if(r[n])return;const t=yield fetchTranslationJson(n);i(e=>Object.assign(Object.assign({},e),{[n]:t}))}catch(e){console.log(e),i(e=>Object.assign(Object.assign({},e),{[n]:{}}))}})},[n,r]),jsxRuntime.exports.jsx(IntlProvider,Object.assign({messages:r[n],locale:n,defaultLocale:"en"},{children:jsxRuntime.exports.jsx("div",Object.assign({style:t},{children:e.children}))}))},nameSpace$4=(!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}(),!function(e){e.unread="unread",e.read="read",e.actionPending="actionPending",e.actionDone="actionDone",e.seen="seen",e.unseen="unseen",e.starred="starred"}(NotificationFlag=NotificationFlag||{}),!function(e){e[e.ADD=0]="ADD",e[e.STACK=1]="STACK",e[e.SLIDE_MORE=2]="SLIDE_MORE",e[e.OVERLAY_OVER_PARENT=3]="OVERLAY_OVER_PARENT"}(CreateModes=CreateModes||{}),!function(e){e.APP_PANEL="APP_PANEL",e.PERSONAL_PANEL="PERSONAL_PANEL",e.ORGANIZATION_PANEL="ORGANIZATION_PANEL",e.MARKET_PANEL="MARKET_PANEL",e.SETTING_PREFERENCE_PANEL="SETTING_PREFERENCE_PANEL",e.ACTIVITY_PANEL="ACTIVITY_PANEL",e.PERFORMANCE_MONITOR="PERFORMANCE_MONITOR",e.CMS_SHORTCUT="CMS_SHORTCUT",e.FLOW_CENTER="FLOW_CENTER",e.ADMIN_SHORTCUT="ADMIN_CENTER_BROWSE",e.DATA_CENTER="DATA_CENTER",e.ENGINE_CENTER="ENGINE_CENTER",e.LIBRARY_CENTER="LIBRARY_CENTER",e.MARKETPLACE_CENTER="MARKETPLACE_CENTER"}(TabId=TabId||{}),!function(e){e.SAMPLE_APP_BAR="SAMPLE_APP_BAR",e.APP_BAR="APP_BAR",e.FLOW_CENTER="FLOW_CENTER",e.FLOW_WIDGET="FLOW_WIDGET",e.ENGINE_CENTER_BROWSE="ENGINE_CENTER_BROWSE",e.RESET_PASSWORD="RESET_PASSWORD"}(AvailableWidgets=AvailableWidgets||{}),!function(e){e.SIMPLE_PANEL="SIMPLE_PANEL",e.APP_BAR_PANEL_TEMPLATE="APP_BAR_PANEL_TEMPLATE",e.APP_BAR_TAB_PANEL_TEMPLATE="APP_BAR_TAB_PANEL_TEMPLATE",e.TAB_TEMPLATE="TAB_TEMPLATE"}(AvailablePanels=AvailablePanels||{}),!function(e){e.TEST_COMPONENT="TEST_COMPONENT",e.TEST_COMPONENT2="TEST_COMPONENT2",e.TEST_COMPONENT3="TEST_COMPONENT3",e.HELP_PANEL="HELP_PANEL",e.NOTIFICATION_PANEL="NOTIFICATION_PANEL",e.USER_APPLICATION_SETTINGS_PANEL="USER_APPLICATION_SETTINGS_PANEL",e.APP_BAR_PANEL="APP_BAR_PANEL",e.NOTIFICATION_DETAIL="NOTIFICATION_DETAIL",e.EDIT_PROFILE_PICTURE="EDIT_PROFILE_PICTURE",e.NOTIFICATION_SETTING="NOTIFICATION_SETTING",e.NOTIFICATION_UTILITY="NOTIFICATION_UTILITY",e.NOTIFICATION_APPLICATION="NOTIFICATION_APPLICATION",e.SETTING_PREFERENCE="SETTING_PREFERENCE",e.ORGANIZATION_PANEL="ORGANIZATION_PANEL",e.DATA_CENTER_BROWSE="DATA_CENTER_BROWSE",e.DATA_CENTER_FOLDERS_AND_FILES="DATA_CENTER_FOLDERS_AND_FILES",e.DATA_CENTER_IMPORTER="DATA_CENTER_IMPORTER",e.DATA_LABELER="DATA_LABELER",e.ADMIN_CENTER_OPEN_ID="ADMIN_CENTER_OPEN_ID",e.ADMIN_CENTER_BROWSE="ADMIN_CENTER_BROWSE",e.DATA_CENTER_PROCESS_AI="DATA_CENTER_PROCESS_AI",e.ENGINE_CENTER_NEW="ENGINE_CENTER_NEW",e.ENGINE_CENTER_FILTER="ENGINE_CENTER_FILTER",e.ENGINE_CENTER_DETAILS="ENGINE_CENTER_DETAILS",e.ENGINE_CENTER_NEW_BUILD="ENGINE_CENTER_NEW_BUILD",e.ENGINE_CENTER_CUSTOM_FIELDS_FORM="ENGINE_CENTER_CUSTOM_FIELDS_FORM",e.ENGINE_CENTER_INPUT_TYPE_FLYOUT="ENGINE_CENTER_INPUT_TYPE_FLYOUT",e.ENGINE_CENTER_EDIT_RELEASE_NOTES="ENGINE_CENTER_EDIT_RELEASE_NOTES",e.ENGINE_CENTER_SCHEMAS_FORM_PANEL="ENGINE_CENTER_SCHEMAS_FORM_PANEL",e.ENGINE_CENTER_VERSION_HISTORY_PANEL="ENGINE_CENTER_VERSION_HISTORY_PANEL",e.SUPPORTED_FILE_TYPES="SUPPORTED_FILE_TYPES",e.EDIT_FILE_METADATA="EDIT_FILE_METADATA",e.APP_CENTER_NEW="APP_CENTER_NEW",e.APP_CENTER_ADD_ENGINE_PANEL="APP_CENTER_ADD_ENGINE_PANEL",e.APP_CENTER_ADD_FLOW_PANEL="APP_CENTER_ADD_FLOW_PANEL",e.APP_CENTER_ADD_SCHEMA_PANEL="APP_CENTER_ADD_SCHEMA_PANEL",e.APP_CENTER_CONFIG_FIELDS_FORM="APP_CENTER_CONFIG_FIELDS_FORM",e.APP_CENTER_AUTOMATE_PALETTE_INTEGRATION_PANEL="APP_CENTER_AUTOMATE_PALETTE_INTEGRATION_PANEL",e.DATA_CENTER_ENGINE_SELECTION="DATA_CENTER_ENGINE_SELECTION",e.INVITE_USERS_PANEL="INVITE_USERS_PANEL",e.INVITE_REQUESTS_PANEL="INVITE_REQUESTS_PANEL",e.REVIEW_ORG_INVITE_PANEL="REVIEW_ORG_INVITE_PANEL",e.ADD_APPLICATIONS="ADD_APPLICATIONS",e.ADMIN_CENTER_NEW_GROUP_PANEL="ADMIN_CENTER_NEW_GROUP_PANEL",e.PERMISSIONS_PANEL="PERMISSIONS_PANEL",e.NEW_PERMISSION_SET_PANEL="NEW_PERMISSION_SET_PANEL",e.DATA_CENTER_MDP_IFRAME_PANEL="DATA_CENTER_MDP_IFRAME_PANEL",e.DATA_CENTER_INGESTION_CREATION_PANEL="DATA_CENTER_INGESTION_CREATION_PANEL",e.DATA_CENTER_SOURCE_CREATION_PANEL="DATA_CENTER_SOURCE_CREATION_PANEL",e.DATA_CENTER_FILE_INFO_PANEL="DATA_CENTER_FILE_INFO_PANEL",e.ADMIN_CENTER_GROUP_DETAILS_PANEL="ADMIN_CENTER_GROUP_DETAILS_PANEL",e.ADMIN_CENTER_ADD_MEMBER_PANEL="ADMIN_CENTER_ADD_MEMBER_PANEL",e.GROUP_INFO_PANEL="GROUP_INFO_PANEL",e.APPLICATION_DETAILS_PANEL="APPLICATION_DETAILS_PANEL",e.PERMISSION_SET_DETAILS_PANEL="PERMISSION_SET_DETAILS_PANEL",e.PROCESSING_CENTER_SOURCES="PROCESSING_CENTER_SOURCES"}(AvailableComponents=AvailableComponents||{}),!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}(),"mailbox"),mailboxIdSelector=e=>{return null==(e=e[nameSpace$4])?void 0:e.mailBoxIds},unseenNotificationSelector=e=>{const t=null==(e=null==e?void 0:e[nameSpace$4])?void 0:e.mailbox;return null===t||void 0===t?void 0:t.reduce((e,t)=>e+t.unseenCount,0)},panelSelector=e=>e.panels||[],SUBSCRIBER_MAILBOX=nameSpace$4+"/SUBSCRIBER_MAILBOX",SUBSCRIBER_MAILBOX_START=nameSpace$4+"/SUBSCRIBER_MAILBOX_START",UPDATE_MAILBOX_DATA=nameSpace$4+"/UPDATE_MAILBOX_DATA",SUBSCRIBING_MAILBOX=nameSpace$4+"/SUBSCRIBING_MAILBOX",SUBSCRIBER_MAILBOX_SUCCESS=nameSpace$4+"/SUBSCRIBER_MAILBOX_SUCCESS",SUBSCRIBER_MAILBOX_ERROR=nameSpace$4+"/SUBSCRIBER_MAILBOX_ERROR",UPDATE_UNSEEN_COUNT=nameSpace$4+"/UPDATE_UNSEEN_COUNT",MARK_ALL_NOTIFICATIONS_SEEN=nameSpace$4+"/MARK_ALL_NOTIFICATIONS_SEEN",MARK_ALL_NOTIFICATIONS_SEEN_REQUEST=nameSpace$4+"/MARK_ALL_NOTIFICATIONS_SEEN_REQUEST",MARK_ALL_NOTIFICATIONS_SEEN_SUCCESS=nameSpace$4+"/MARK_ALL_NOTIFICATIONS_SEEN_SUCCESS",MARK_ALL_NOTIFICATIONS_SEEN_FAIL=nameSpace$4+"/MARK_ALL_NOTIFICATIONS_SEEN_FAIL",SUBSCRIBE_DEFAULT_MAILBOX_REQUEST=nameSpace$4+"/SUBSCRIBE_DEFAULT_MAILBOX_REQUEST",PUSH_NOTIFICATION=nameSpace$4+"/PUSH_NOTIFICATION",PUSH_DEFAULT_MAILBOX=nameSpace$4+"/PUSH_DEFAULT_MAILBOX",requestSubscriber=createAction(SUBSCRIBER_MAILBOX),subscriberStart=createAction(SUBSCRIBER_MAILBOX_START),setMailboxData=createAction(UPDATE_MAILBOX_DATA,function(e){return{payload:e}}),subscriberSuccess=createAction(SUBSCRIBER_MAILBOX_SUCCESS,function(e){return{payload:e}}),subscriberError=createAction(SUBSCRIBER_MAILBOX_ERROR,function(e){return{payload:e}}),subscribing=createAction(SUBSCRIBING_MAILBOX),pushNotification=createAction(PUSH_NOTIFICATION,function(e){return{payload:e}}),pushDefaultMailBox=createAction(PUSH_DEFAULT_MAILBOX,function(e){return{payload:e}}),updateUnseenCount=createAction(UPDATE_UNSEEN_COUNT,function(e){return{payload:e}}),markAllNotificationsSeenRequest=createAction(MARK_ALL_NOTIFICATIONS_SEEN_REQUEST),markAllNotificationsSeenSuccess=createAction(MARK_ALL_NOTIFICATIONS_SEEN_SUCCESS),markAllNotificationsSeenFail=createAction(MARK_ALL_NOTIFICATIONS_SEEN_FAIL),subscribeDefaultMailboxRequest=createAction(SUBSCRIBE_DEFAULT_MAILBOX_REQUEST),initialState$8={mailBoxIds:[],mailbox:[],status:"idle",failureMessage:""},mailboxReducer=createReducer(initialState$8,e=>{e.addCase(subscriberStart,e=>Object.assign(Object.assign({},e),{status:"loading"})).addCase(subscriberSuccess,e=>Object.assign(Object.assign({},e),{status:"subscribing"})).addCase(setMailboxData,(e,t)=>Object.assign(Object.assign({},e),{mailbox:[...t.payload],mailBoxIds:[...t.payload.map(e=>e.id)]})).addCase(subscriberError,(e,t)=>Object.assign(Object.assign({},e),{status:"failure",failureMessage:t.payload})).addCase(updateUnseenCount,(e,n)=>Object.assign(Object.assign({},e),{mailbox:e.mailbox.map(t=>{var e;return Object.assign(Object.assign({},t),{unseenCount:null==(e=null==(e=n.payload.notificationMailboxes)?void 0:e.find(e=>e.id===t.id))?void 0:e.unseenCount})})})).addCase(markAllNotificationsSeenRequest,e=>Object.assign({},e)).addCase(markAllNotificationsSeenSuccess,e=>Object.assign(Object.assign({},e),{mailbox:e.mailbox.map(e=>Object.assign(Object.assign({},e),{unseenCount:0}))})).addCase(markAllNotificationsSeenFail,e=>Object.assign(Object.assign({},e),{status:"failure"}))});function __awaiter$5(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 getMailboxApi=(e,t)=>__awaiter$5(void 0,void 0,void 0,function*(){try{return yield baseGraphQLApi({query:`
|
|
940
|
+
}`,o),r=createApolloWs(l,s,o);const i=createApolloClient(r);r=i.subscribe({query:n}).subscribe({next(e){var t=(null==(t=null==(t=null==e?void 0:e.data)?void 0:t.notificationPosted)?void 0:t.body)||"{}",n=(null==(n=null==(n=null==e?void 0:e.data)?void 0:n.notificationPosted)?void 0:n.eventType)||"";if("json"===(null==(e=null==(e=null==e?void 0:e.data)?void 0:e.notificationPosted)?void 0:e.contentType))try{var r=JSON.parse(t);if(n&&n===aiwareEvent){var i=null==r?void 0:r.command,o=null==r?void 0:r.value;switch(i){case notificationCommands.setIsIdle:a(setIsIdle(o));break;case notificationCommands.setCallLogout:a(setCallLogout(o));break;case notificationCommands.setClickedLogout:a(setClickedLogout(o));break;case notificationCommands.setCallResetIdleTimer:a(setCallResetIdleTimer(o));break;case notificationCommands.goToLoginPage:window.__logout_requested||o!==window.navigator.userAgent||goToPage$1(u||c);break;case notificationCommands.refreshPage:a(setReloadPage(o))}}}catch(e){console.log("Expecting JSON",{error:e},{eventMessage:t})}}});return e.push(i),t.push(r),()=>{t.forEach(e=>e.unsubscribe()),e.forEach(e=>e.stop())}})}function*performSubscriptionTask(){for(var e=yield call$7(websocketInitChannel$1);;)yield put(yield take(e))}function*websocketSagas$1(){subscriptionTask$1&&(yield cancel(subscriptionTask$1));var e=yield fork(performSubscriptionTask);subscriptionTask$1=e}function*postNotification(e){var t=yield select(graphEndpointSelector),n=yield select(authSelector),r=yield select(sessionTokenSelector),n=null==n?void 0:n.userId,e=(null==e?void 0:e.payload)||{},{ephemeral:i,contentType:o,eventType:a}=e,e=__rest$4(e,["ephemeral","contentType","eventType"]);postNotificationApi(t,n,e,i,o,a,r)}function*eventsSaga(){yield all([takeLatest$1(subscribeToEventsWebsocket.type,websocketSagas$1),takeLatest$1(postNotificationCommand.type,postNotification)])}const isIdleSelector=e=>{return null==(e=e[namespace$7])?void 0:e.isIdle},callLogoutSelector=e=>{return null==(e=e[namespace$7])?void 0:e.callLogout},clickedLogoutSelector=e=>{return null==(e=e[namespace$7])?void 0:e.clickedLogout},callResetIdleTimerSelector=e=>{return null==(e=e[namespace$7])?void 0:e.callResetIdleTimer},resetIdleTimerCallCounterSelector=e=>{return null==(e=e[namespace$7])?void 0:e.resetIdleTimerCallCounter},reloadPageSelector=e=>{return null==(e=e[namespace$7])?void 0:e.reloadPage};function getEventsModule(){return{id:namespace$7,reducerMap:{[namespace$7]:eventsReducer},sagas:[eventsSaga]}}var NotificationFlag,CreateModes,TabId,AvailableWidgets,AvailablePanels,AvailableComponents,userActivityEvents={records:[{id:"ff9272fe-5e98-4ffb-96b6-5df2918d9b2b",event:"login_succeeded",userId:"10ffa55a-d68b-494b-83df-49ce2d008e6d",userName:"sys_graphql_citest_superadmin@veritone.com",organizationId:"7682",applicationId:"123",createdDateTime:"2020-10-26T06:40:12.928Z",payload:{organizationId:12333,organizationName:"name",userName:"user",userId:"10ffa55a-d68b-494b-83df-49ce2d008e6d"}}]},mockData={userActivityEvents:userActivityEvents};const fakeAPI=()=>new Promise((e,t)=>{setTimeout(()=>e({success:!0,data:mockData}),500)}),getActivityApi=()=>__awaiter$7(void 0,void 0,void 0,function*(){try{var{success:e,data:t}=yield fakeAPI();return e&&t.userActivityEvents?{data:t.userActivityEvents,success:!0}:{success:!1,data:null}}catch(e){return{success:!1,data:null,message:e}}}),getApplicationsApi=(t,n)=>__awaiter$7(void 0,void 0,void 0,function*(){try{const e=yield fetch(t+"/v1/admin/current-user/applications",{method:"GET",headers:Object.assign({"Content-Type":"application/json"},n&&{Authorization:"Bearer "+n}),credentials:"include"});return e.json()}catch(e){console.error(e)}}),getApplicationLogo=(e,t)=>__awaiter$7(void 0,void 0,void 0,function*(){try{return yield baseGraphQLApi({query:`
|
|
941
|
+
{
|
|
942
|
+
applications (
|
|
943
|
+
limit: 1000
|
|
944
|
+
owned: false
|
|
945
|
+
) {
|
|
946
|
+
records {
|
|
947
|
+
id
|
|
948
|
+
signedIconSvg
|
|
949
|
+
signedIconUrl
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
}`,graphEndpoint:e,token:t})}catch(e){console.error(e)}}),getNodeRedVersionEdgeApi=t=>__awaiter$7(void 0,void 0,void 0,function*(){try{const e=yield fetch(t+"/edge/v1/flow/engineId/image/",{method:"GET"});return e.json()}catch(e){return{success:!1}}});function __awaiter$6(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(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const AIWareIntlProvider=e=>{const n=useSelector(preferredLanguageSelector)||"en";var t=e.style;const[r,i]=react.exports.useState({});return react.exports.useEffect(()=>{__awaiter$6(void 0,void 0,void 0,function*(){try{if(r[n])return;const t=yield fetchTranslationJson(n);i(e=>Object.assign(Object.assign({},e),{[n]:t}))}catch(e){console.log(e),i(e=>Object.assign(Object.assign({},e),{[n]:{}}))}})},[n,r]),jsxRuntime.exports.jsx(IntlProvider,Object.assign({messages:r[n],locale:n,defaultLocale:"en"},{children:jsxRuntime.exports.jsx("div",Object.assign({style:t},{children:e.children}))}))},nameSpace$4=(!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}(),!function(e){e.unread="unread",e.read="read",e.actionPending="actionPending",e.actionDone="actionDone",e.seen="seen",e.unseen="unseen",e.starred="starred"}(NotificationFlag=NotificationFlag||{}),!function(e){e[e.ADD=0]="ADD",e[e.STACK=1]="STACK",e[e.SLIDE_MORE=2]="SLIDE_MORE",e[e.OVERLAY_OVER_PARENT=3]="OVERLAY_OVER_PARENT"}(CreateModes=CreateModes||{}),!function(e){e.APP_PANEL="APP_PANEL",e.PERSONAL_PANEL="PERSONAL_PANEL",e.ORGANIZATION_PANEL="ORGANIZATION_PANEL",e.MARKET_PANEL="MARKET_PANEL",e.SETTING_PREFERENCE_PANEL="SETTING_PREFERENCE_PANEL",e.ACTIVITY_PANEL="ACTIVITY_PANEL",e.PERFORMANCE_MONITOR="PERFORMANCE_MONITOR",e.CMS_SHORTCUT="CMS_SHORTCUT",e.FLOW_CENTER="FLOW_CENTER",e.ADMIN_SHORTCUT="ADMIN_CENTER_BROWSE",e.DATA_CENTER="DATA_CENTER",e.ENGINE_CENTER="ENGINE_CENTER",e.LIBRARY_CENTER="LIBRARY_CENTER",e.MARKETPLACE_CENTER="MARKETPLACE_CENTER"}(TabId=TabId||{}),!function(e){e.SAMPLE_APP_BAR="SAMPLE_APP_BAR",e.APP_BAR="APP_BAR",e.FLOW_CENTER="FLOW_CENTER",e.FLOW_WIDGET="FLOW_WIDGET",e.ENGINE_CENTER_BROWSE="ENGINE_CENTER_BROWSE",e.RESET_PASSWORD="RESET_PASSWORD"}(AvailableWidgets=AvailableWidgets||{}),!function(e){e.SIMPLE_PANEL="SIMPLE_PANEL",e.APP_BAR_PANEL_TEMPLATE="APP_BAR_PANEL_TEMPLATE",e.APP_BAR_TAB_PANEL_TEMPLATE="APP_BAR_TAB_PANEL_TEMPLATE",e.TAB_TEMPLATE="TAB_TEMPLATE"}(AvailablePanels=AvailablePanels||{}),!function(e){e.TEST_COMPONENT="TEST_COMPONENT",e.TEST_COMPONENT2="TEST_COMPONENT2",e.TEST_COMPONENT3="TEST_COMPONENT3",e.HELP_PANEL="HELP_PANEL",e.NOTIFICATION_PANEL="NOTIFICATION_PANEL",e.USER_APPLICATION_SETTINGS_PANEL="USER_APPLICATION_SETTINGS_PANEL",e.APP_BAR_PANEL="APP_BAR_PANEL",e.NOTIFICATION_DETAIL="NOTIFICATION_DETAIL",e.EDIT_PROFILE_PICTURE="EDIT_PROFILE_PICTURE",e.NOTIFICATION_SETTING="NOTIFICATION_SETTING",e.NOTIFICATION_UTILITY="NOTIFICATION_UTILITY",e.NOTIFICATION_APPLICATION="NOTIFICATION_APPLICATION",e.SETTING_PREFERENCE="SETTING_PREFERENCE",e.ORGANIZATION_PANEL="ORGANIZATION_PANEL",e.DATA_CENTER_BROWSE="DATA_CENTER_BROWSE",e.DATA_CENTER_FOLDERS_AND_FILES="DATA_CENTER_FOLDERS_AND_FILES",e.DATA_CENTER_IMPORTER="DATA_CENTER_IMPORTER",e.DATA_LABELER="DATA_LABELER",e.ADMIN_CENTER_OPEN_ID="ADMIN_CENTER_OPEN_ID",e.ADMIN_CENTER_BROWSE="ADMIN_CENTER_BROWSE",e.DATA_CENTER_PROCESS_AI="DATA_CENTER_PROCESS_AI",e.ENGINE_CENTER_NEW="ENGINE_CENTER_NEW",e.ENGINE_CENTER_FILTER="ENGINE_CENTER_FILTER",e.ENGINE_CENTER_DETAILS="ENGINE_CENTER_DETAILS",e.ENGINE_CENTER_NEW_BUILD="ENGINE_CENTER_NEW_BUILD",e.ENGINE_CENTER_CUSTOM_FIELDS_FORM="ENGINE_CENTER_CUSTOM_FIELDS_FORM",e.ENGINE_CENTER_INPUT_TYPE_FLYOUT="ENGINE_CENTER_INPUT_TYPE_FLYOUT",e.ENGINE_CENTER_EDIT_RELEASE_NOTES="ENGINE_CENTER_EDIT_RELEASE_NOTES",e.ENGINE_CENTER_SCHEMAS_FORM_PANEL="ENGINE_CENTER_SCHEMAS_FORM_PANEL",e.ENGINE_CENTER_VERSION_HISTORY_PANEL="ENGINE_CENTER_VERSION_HISTORY_PANEL",e.SUPPORTED_FILE_TYPES="SUPPORTED_FILE_TYPES",e.EDIT_FILE_METADATA="EDIT_FILE_METADATA",e.APP_CENTER_NEW="APP_CENTER_NEW",e.APP_CENTER_ADD_ENGINE_PANEL="APP_CENTER_ADD_ENGINE_PANEL",e.APP_CENTER_ADD_FLOW_PANEL="APP_CENTER_ADD_FLOW_PANEL",e.APP_CENTER_ADD_SCHEMA_PANEL="APP_CENTER_ADD_SCHEMA_PANEL",e.APP_CENTER_CONFIG_FIELDS_FORM="APP_CENTER_CONFIG_FIELDS_FORM",e.APP_CENTER_AUTOMATE_PALETTE_INTEGRATION_PANEL="APP_CENTER_AUTOMATE_PALETTE_INTEGRATION_PANEL",e.DATA_CENTER_ENGINE_SELECTION="DATA_CENTER_ENGINE_SELECTION",e.INVITE_USERS_PANEL="INVITE_USERS_PANEL",e.INVITE_REQUESTS_PANEL="INVITE_REQUESTS_PANEL",e.REVIEW_ORG_INVITE_PANEL="REVIEW_ORG_INVITE_PANEL",e.ADD_APPLICATIONS="ADD_APPLICATIONS",e.ADMIN_CENTER_NEW_GROUP_PANEL="ADMIN_CENTER_NEW_GROUP_PANEL",e.PERMISSIONS_PANEL="PERMISSIONS_PANEL",e.NEW_PERMISSION_SET_PANEL="NEW_PERMISSION_SET_PANEL",e.DATA_CENTER_MDP_IFRAME_PANEL="DATA_CENTER_MDP_IFRAME_PANEL",e.DATA_CENTER_INGESTION_CREATION_PANEL="DATA_CENTER_INGESTION_CREATION_PANEL",e.DATA_CENTER_SOURCE_CREATION_PANEL="DATA_CENTER_SOURCE_CREATION_PANEL",e.DATA_CENTER_FILE_INFO_PANEL="DATA_CENTER_FILE_INFO_PANEL",e.ADMIN_CENTER_GROUP_DETAILS_PANEL="ADMIN_CENTER_GROUP_DETAILS_PANEL",e.ADMIN_CENTER_ADD_MEMBER_PANEL="ADMIN_CENTER_ADD_MEMBER_PANEL",e.GROUP_INFO_PANEL="GROUP_INFO_PANEL",e.APPLICATION_DETAILS_PANEL="APPLICATION_DETAILS_PANEL",e.PERMISSION_SET_DETAILS_PANEL="PERMISSION_SET_DETAILS_PANEL",e.PROCESSING_CENTER_SOURCES="PROCESSING_CENTER_SOURCES"}(AvailableComponents=AvailableComponents||{}),!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}(),"mailbox"),mailboxIdSelector=e=>{return null==(e=e[nameSpace$4])?void 0:e.mailBoxIds},unseenNotificationSelector=e=>{const t=null==(e=null==e?void 0:e[nameSpace$4])?void 0:e.mailbox;return null===t||void 0===t?void 0:t.reduce((e,t)=>e+t.unseenCount,0)},panelSelector=e=>e.panels||[],SUBSCRIBER_MAILBOX=nameSpace$4+"/SUBSCRIBER_MAILBOX",SUBSCRIBER_MAILBOX_START=nameSpace$4+"/SUBSCRIBER_MAILBOX_START",UPDATE_MAILBOX_DATA=nameSpace$4+"/UPDATE_MAILBOX_DATA",SUBSCRIBING_MAILBOX=nameSpace$4+"/SUBSCRIBING_MAILBOX",SUBSCRIBER_MAILBOX_SUCCESS=nameSpace$4+"/SUBSCRIBER_MAILBOX_SUCCESS",SUBSCRIBER_MAILBOX_ERROR=nameSpace$4+"/SUBSCRIBER_MAILBOX_ERROR",UPDATE_UNSEEN_COUNT=nameSpace$4+"/UPDATE_UNSEEN_COUNT",MARK_ALL_NOTIFICATIONS_SEEN=nameSpace$4+"/MARK_ALL_NOTIFICATIONS_SEEN",MARK_ALL_NOTIFICATIONS_SEEN_REQUEST=nameSpace$4+"/MARK_ALL_NOTIFICATIONS_SEEN_REQUEST",MARK_ALL_NOTIFICATIONS_SEEN_SUCCESS=nameSpace$4+"/MARK_ALL_NOTIFICATIONS_SEEN_SUCCESS",MARK_ALL_NOTIFICATIONS_SEEN_FAIL=nameSpace$4+"/MARK_ALL_NOTIFICATIONS_SEEN_FAIL",SUBSCRIBE_DEFAULT_MAILBOX_REQUEST=nameSpace$4+"/SUBSCRIBE_DEFAULT_MAILBOX_REQUEST",PUSH_NOTIFICATION=nameSpace$4+"/PUSH_NOTIFICATION",PUSH_DEFAULT_MAILBOX=nameSpace$4+"/PUSH_DEFAULT_MAILBOX",requestSubscriber=createAction(SUBSCRIBER_MAILBOX),subscriberStart=createAction(SUBSCRIBER_MAILBOX_START),setMailboxData=createAction(UPDATE_MAILBOX_DATA,function(e){return{payload:e}}),subscriberSuccess=createAction(SUBSCRIBER_MAILBOX_SUCCESS,function(e){return{payload:e}}),subscriberError=createAction(SUBSCRIBER_MAILBOX_ERROR,function(e){return{payload:e}}),subscribing=createAction(SUBSCRIBING_MAILBOX),pushNotification=createAction(PUSH_NOTIFICATION,function(e){return{payload:e}}),pushDefaultMailBox=createAction(PUSH_DEFAULT_MAILBOX,function(e){return{payload:e}}),updateUnseenCount=createAction(UPDATE_UNSEEN_COUNT,function(e){return{payload:e}}),markAllNotificationsSeenRequest=createAction(MARK_ALL_NOTIFICATIONS_SEEN_REQUEST),markAllNotificationsSeenSuccess=createAction(MARK_ALL_NOTIFICATIONS_SEEN_SUCCESS),markAllNotificationsSeenFail=createAction(MARK_ALL_NOTIFICATIONS_SEEN_FAIL),subscribeDefaultMailboxRequest=createAction(SUBSCRIBE_DEFAULT_MAILBOX_REQUEST),initialState$8={mailBoxIds:[],mailbox:[],status:"idle",failureMessage:""},mailboxReducer=createReducer(initialState$8,e=>{e.addCase(subscriberStart,e=>Object.assign(Object.assign({},e),{status:"loading"})).addCase(subscriberSuccess,e=>Object.assign(Object.assign({},e),{status:"subscribing"})).addCase(setMailboxData,(e,t)=>Object.assign(Object.assign({},e),{mailbox:[...t.payload],mailBoxIds:[...t.payload.map(e=>e.id)]})).addCase(subscriberError,(e,t)=>Object.assign(Object.assign({},e),{status:"failure",failureMessage:t.payload})).addCase(updateUnseenCount,(e,n)=>Object.assign(Object.assign({},e),{mailbox:e.mailbox.map(t=>{var e;return Object.assign(Object.assign({},t),{unseenCount:null==(e=null==(e=n.payload.notificationMailboxes)?void 0:e.find(e=>e.id===t.id))?void 0:e.unseenCount})})})).addCase(markAllNotificationsSeenRequest,e=>Object.assign({},e)).addCase(markAllNotificationsSeenSuccess,e=>Object.assign(Object.assign({},e),{mailbox:e.mailbox.map(e=>Object.assign(Object.assign({},e),{unseenCount:0}))})).addCase(markAllNotificationsSeenFail,e=>Object.assign(Object.assign({},e),{status:"failure"}))});function __awaiter$5(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 getMailboxApi=(e,t)=>__awaiter$5(void 0,void 0,void 0,function*(){try{return yield baseGraphQLApi({query:`
|
|
941
953
|
{
|
|
942
954
|
notificationMailboxes {
|
|
943
955
|
id
|
|
@@ -1134,7 +1146,7 @@ createScheduledJob(input:{
|
|
|
1134
1146
|
unreadCount
|
|
1135
1147
|
}
|
|
1136
1148
|
}
|
|
1137
|
-
`,variables:e,graphEndpoint:n,token:r})}catch(e){return{success:!1}}});function*refetchNotificationSetting(){yield put(getNotification(0,30))}function*getNotificationListByMailBoxSaga(e){const{status:t,mailBoxIds:n,mailbox:r}=yield select(mailBoxSelector),{limit:i,offset:o,callback:a}=e.payload;var e=yield select(graphEndpointSelector),s=yield select(sessionTokenSelector),l="success"===t||"failure"===t;if(0!==Object.keys(r).length||l){yield put(getNotificationStart(o,i));l=yield call$7(handleNotificationListByMailBox,e,s,n,o,i);if(null!==a&&void 0!==a&&a(),0<(null==(e=null==l?void 0:l.errors)?void 0:e.length))yield put(getNotificationListByMailBoxFail());else{let n=0;const c=null==(e=null==(s=null==l?void 0:l.data)?void 0:s.notificationMailboxes)?void 0:e.map(t=>{var e;return 0<(null==(e=null==t?void 0:t.notifications)?void 0:e.count)?(e=null==(e=null==(e=null==t?void 0:t.notifications)?void 0:e.records)?void 0:e.map(e=>Object.assign(Object.assign({},e),{mailboxId:t.id})),n++,e):[]}),u=(null===c||void 0===c?void 0:c.flat())||[];l=u.map(t=>{var e,n=r.find(e=>e.id===t.mailboxId);return Object.assign(Object.assign({},t),{appId:(null==(e=null==n?void 0:n.application)?void 0:e.applicationId)||"",appName:(null==(e=null==n?void 0:n.application)?void 0:e.name)||"",eventNames:(null==(e=null==n?void 0:n.eventFilter)?void 0:e.eventNames)||[],icon:(null==(e=null==n?void 0:n.application)?void 0:e.icon)||"",title:t.title||""})});yield put(getNotificationListByMailBoxSuccess({offset:o,limit:i,availableMailBoxes:n,data:l}))}}else yield take(subscriberSuccess({}).type)}function*listenToPushNotificationSaga(e){var t;const n=(yield select(mailBoxSelector))["mailbox"],r=e["payload"];e=n.find(e=>e.id===r.mailboxId);yield put(updateNotificationList(Object.assign(Object.assign({},r),{appId:(null==(t=null==e?void 0:e.application)?void 0:t.applicationId)||"",appName:(null==(t=null==e?void 0:e.application)?void 0:t.name)||"",icon:(null==(t=null==e?void 0:e.application)?void 0:t.icon)||""})))}function*updateNotificationReadSaga(e){var t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector);try{var r=yield call$7(handleUpdateNotificationRead,t,n,e.payload);return null!=r&&r.error?void(yield put(updateNotificationReadFail())):void(yield put(updateNotificationReadSuccess(Object.assign({},r))))}catch(e){yield put(updateNotificationReadFail())}}function*updateMarkAllReadNotificationSaga(){var e=(yield select(mailBoxSelector))["mailBoxIds"],t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector);if(0<(null==e?void 0:e.length))try{(yield call$7(handleMarkAllReadNotification,e,t,n)).error?yield put(markAllReadNotificationFail()):yield put(markAllReadNotificationSuccess())}catch(e){yield put(markAllReadNotificationFail())}}function*getNotificationActionSaga(e){var t,n,{eventType:r,appId:i,eventName:o}=yield select(notificationDetailSelector(e.payload)),a=yield select(graphEndpointSelector),s=yield select(sessionTokenSelector);try{var l,c=yield call$7(handleGetNotificationAction,o,r,i,a,s);c.error?yield put(getNotificationActionError()):(l=(null==(n=null==(t=null==c?void 0:c.data)?void 0:t.notificationActions)?void 0:n.records)||[],yield put(getNotificationActionSuccess(e.payload,l)))}catch(e){yield put(getNotificationActionError())}}function*notificationSaga(){yield all([takeEvery$1(getNotification.type,getNotificationListByMailBoxSaga),takeLatest$1(updateUtilitySetting.type,refetchNotificationSetting),takeEvery$1(getNotificationListByMailBoxRequest.type,getNotificationListByMailBoxSaga),takeEvery$1("mailbox/PUSH_NOTIFICATION",listenToPushNotificationSaga),takeEvery$1(updateNotificationReadRequest.type,updateNotificationReadSaga),takeEvery$1(GET_NOTIFICATION_ACTION_REQUEST,getNotificationActionSaga),takeLatest$1(markAllReadNotificationRequest.type,updateMarkAllReadNotificationSaga)])}function getNotificationModule(){return{id:"os-notification-panel",reducerMap:{[nameSpace$3]:notificationReducer},sagas:[notificationSaga],initialActions:[],retained:!0}}const useStyles$b$1=makeStyles()(e=>({root:{width:"100%",height:"100%"},noData:{paddingTop:66,display:"flex",justifyContent:"center"},iconNoData:{width:235,height:235,display:"flex",justifyContent:"center",borderRadius:"50%",padding:"20px",border:"20px solid #F9F9F9"},noDataDescription:{display:"flex",justifyContent:"center",marginTop:66},noDataDescriptionText:{fontSize:"18px",lineHeight:"23px",textTransform:"uppercase",color:e.palette.secondary.main}}));function NotificationContent(){var e=useStyles$b$1()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:e.root,"data-testid":"notification-content"},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:e.noData},{children:jsxRuntime.exports.jsx("div",Object.assign({className:e.iconNoData},{children:jsxRuntime.exports.jsx("img",{src:img$E,draggable:"false",alt:"noNotification"})}))})),jsxRuntime.exports.jsx("div",Object.assign({className:e.noDataDescription},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1","data-test":"no-notification",className:e.noDataDescriptionText},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.pBrbyj",defaultMessage:"You don’t have any notifications!",description:"Notification panel: no notification message"})}))}))]}))}const useStyles$a$1=makeStyles()(e=>({cardContainer:{width:"100%","&:hover":{backgroundColor:"#EEF3F9"}},rootCard:{padding:e.spacing(4,6),display:"flex",cursor:"pointer"},unreadCard:{padding:e.spacing(4,6),display:"flex",cursor:"pointer",paddingLeft:e.spacing(2)},iconCard:{marginTop:e.spacing(-.4)},leftContent:{width:"345px",padding:e.spacing(0,6,0,3)},titleCard:{display:"flex"},appsCard:{fontSize:"14px",fontWeight:600},timestampCard:{fontSize:"12px",paddingLeft:e.spacing(3),color:e.palette.text.secondary},contentCard:{lineHeight:"150%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:e.palette.text.secondary},dividerCard:{margin:e.spacing(0,6),height:"0.5px"},notificationIcon:{width:24,height:24},unread:{width:"auto",marginRight:e.spacing(2.4),fontSize:"unset"},unreadIcon:{width:8,height:8,color:e.palette.primary.main},appName:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"calc(100% - 85px)"}})),NotificationCard=react.exports.forwardRef(({data:e,onViewDetail:t},n)=>{var r=useStyles$a$1()["classes"];const i=useDispatch(),[o,a]=react.exports.useState(!1);const{createdDateTime:s,icon:l,title:c,appName:u,body:d,id:p,flags:f}=e;return jsxRuntime.exports.jsxs("div",Object.assign({ref:n,className:r.cardContainer},{children:[jsxRuntime.exports.jsxs("div",Object.assign({onClick:t,className:null!==f&&void 0!==f&&f.includes(NotificationFlag.unread)?r.unreadCard:r.rootCard},{children:[(null===f||void 0===f?void 0:f.includes(NotificationFlag.unread))&&jsxRuntime.exports.jsx(Icon$1,{"data-test":"notification-unread-icon","data-testid":"notification-unread-icon",className:r.unread,children:jsxRuntime.exports.jsx(default_1$6,{className:r.unreadIcon}),onClick:function(e){e.stopPropagation(),i(updateNotificationReadRequest(p))}}),jsxRuntime.exports.jsx("div",Object.assign({className:r.iconCard},{children:l&&!o?jsxRuntime.exports.jsx("img",{src:l,className:r.notificationIcon,draggable:"false",alt:"notification-card-icon",onError:function(){a(!0)}}):jsxRuntime.exports.jsx(Notifications,{})})),jsxRuntime.exports.jsxs("div",Object.assign({className:r.leftContent},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:r.titleCard},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:r.appName},{children:null!==f&&void 0!==f&&f.includes(NotificationFlag.unread)?jsxRuntime.exports.jsx("strong",{children:u}):u})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:r.timestampCard},{children:jsxRuntime.exports.jsx(FormattedRelativeTime$1,{value:getRelativeValue(s),unit:"minute",updateIntervalInSeconds:60,children:e=>e.includes("seconds")?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.mvPoLJ",defaultMessage:"Just now",description:"the time label of notification that received on 1 minute"}):react.exports.createElement("span",{},e)})}))]})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:r.contentCard},{children:convertHTMLEntities(c||d)}))})]}))]})),jsxRuntime.exports.jsx(Divider$1,{className:r.dividerCard})]}))}),useStyles$9$1=makeStyles()(e=>({header:{opacity:.9,display:"flex",justifyContent:"space-between",padding:e.spacing(3.5,6,4,6),position:"sticky",width:"fit-content",fontSize:"14px",fontWeight:400,top:0},scrollContent:{overflow:"hidden"},infinityLoading:{display:"flex",justifyContent:"center",padding:e.spacing(4)}}));function NotificationList({title:e,data:n,loading:t,handleGetNotification:r,onOpenNotificationDetail:i}){var o=useStyles$9$1()["classes"];const a=react.exports.useRef(),s=react.exports.useCallback(e=>{t||(a.current&&a.current.disconnect(),console.log(IntersectionObserver),a.current=new IntersectionObserver(e=>{e[0].isIntersecting&&r()}),e&&a.current.observe(e))},[r,t]);return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx("div",Object.assign({className:o.header},{children:e.toUpperCase()})),jsxRuntime.exports.jsxs("div",Object.assign({className:o.scrollContent},{children:[n.map((e,t)=>n.length===t+1?jsxRuntime.exports.jsx(NotificationCard,{ref:s,onViewDetail:()=>null==i?void 0:i(e),data:e},t):jsxRuntime.exports.jsx(NotificationCard,{onViewDetail:()=>null==i?void 0:i(e),data:e},t)),t&&jsxRuntime.exports.jsx("div",Object.assign({className:o.infinityLoading},{children:jsxRuntime.exports.jsx(CircularProgress$1,{size:30})}))]}))]})}const useStyles$8$1=makeStyles()(e=>({loadingContainer:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},filterContainer:{position:"absolute",top:e.spacing(12.4),right:0,paddingTop:e.spacing(3),paddingRight:e.spacing(6),paddingBottom:e.spacing(2),width:"100%",display:"flex",justifyContent:"flex-end",backgroundColor:e.palette.background.default},markAllReadButton:{cursor:"pointer",marginRight:e.spacing(4),backgroundColor:e.palette.background.default,textTransform:"capitalize"}})),NotificationPanel=()=>{const r=useDispatch();var e=useStyles$8$1()["classes"],t=useSelector(applicationFilterSelector)||[];const[n,i]=react.exports.useState(!1),o=useSelector(mailboxIdSelector);var a=useSelector(notificationWithFilterSelector);const{filter:s,status:l,notifications:c,availableMailBoxes:u,offset:d,limit:p}=useSelector(notificationSelector),f=e=>Math.max(Math.ceil(50/e),5);react.exports.useEffect(()=>{var e=(null===o||void 0===o?void 0:o.length)||0;0<e&&0===p&&(e=f(e),r(getNotification(0,e)))},[r,p,o]);var h=react.exports.useCallback(()=>{var e;0<u&&(i(!0),e=f(u),r(getNotification(d+p,e,()=>{i(!1)})))},[u,r,p,d]);return jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(lib$4.DynamicModuleLoader,Object.assign({modules:[getNotificationModule()]},{children:0===a.length&&"success"!==l&&"failure"!==l&&0<o.length?jsxRuntime.exports.jsx("div",Object.assign({className:e.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})):0<(null==c?void 0:c.length)?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:e.filterContainer,id:"notification-list-header"},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:function(){r(markAllReadNotificationRequest())},className:e.markAllReadButton,"data-test":"notification-mark-all-read-button","data-testid":"notification-mark-all-read-button"},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"caption",color:"primary"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.PtPIns",defaultMessage:"Mark All Read",description:"label of Mark All Read button"})}))})),jsxRuntime.exports.jsx(Filter,{data:[...filters$3,...t],filter:s,onFilter:function(e){e=e.target.value,r(updateFilterValue(e))}})]})),jsxRuntime.exports.jsx(NotificationList,{title:"All time",onOpenNotificationDetail:function(e){var t="DETAIL_PANEL_ID",n={name:"NOTIFICATION_DETAIL",config:{mode:"actionable",id:e.id,data:Object.assign({},e),actionIconButtons:null!=(n=e.actions)?n:[],onClose:()=>{console.log("onClose")}}};r(unmountPanel$1(t)),r(mountPanel$1({panelId:t,microFrontend:n,panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:413,width:420,header:{title:"Notification detail"},dimmed:0,parentPanelId:"NOTIFICATION_PANEL_ID"}})),r(updateNotificationReadRequest(e.id))},data:a,loading:n,handleGetNotification:h})]}):jsxRuntime.exports.jsx(NotificationContent,{})}))})};function CustomWorkFlow(){return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({display:"flex",justifyContent:"space-between",alignItems:"center","data-testid":"custom-workflow-box"},{children:[jsxRuntime.exports.jsx(Typography$1,{variant:"h3",children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.1+8+OX",defaultMessage:"Custom Workflows",description:"custom-workflows"})}),jsxRuntime.exports.jsx(Button$1,{variant:"outlined",children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.gAFAOA",defaultMessage:"Create New",description:"creat-new-btn"}),color:"primary"})]})),jsxRuntime.exports.jsx(Typography$1,{style:{fontSize:14,marginTop:20},children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.9+Qhjr",defaultMessage:"You don’t have any custom workflows yet. Get started by clicking the Create New button above!",description:"text"})})]})}const useStyles$7$1=makeStyles()(e=>({dividerSmallMargin:{marginTop:e.spacing(3.6),marginBottom:e.spacing(4)},utilityItem:{padding:0,cursor:"pointer"},utilityItemHover:{padding:e.spacing(2,0),"&:hover":{backgroundColor:e.palette.background.paper}},utilityDetail:{fontSize:12}}));function NotificationSettingItem(e){const{imgSrc:t,primaryText:n,secondaryText:r,bigSize:i,onOpenUtility:o,onOpenApplication:a,hideDivider:s,applicationId:l,applicationTitle:c,utilityId:u="",utilityTitle:d="Finder",disabled:p,isHover:f}=e;e=useStyles$7$1().classes;return jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsxs(ListItem$1,Object.assign({className:classnames(e.utilityItem,f?e.utilityItemHover:""),onClick:function(){null!==o&&void 0!==o&&o(u,d),null!==a&&void 0!==a&&a(l,c)},disabled:p,"data-testid":"notification-setting-item"},{children:[jsxRuntime.exports.jsx(ListItemAvatar$1,{children:jsxRuntime.exports.jsx(Avatar$1,{style:{width:i?60:40,height:i?60:40,borderRadius:"50%",marginRight:19},src:t})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(Typography$1,{variant:i?"h3":"body2",children:n}),secondary:jsxRuntime.exports.jsx(Typography$1,{variant:i?"body2":"caption",children:r})})]})),!s&&jsxRuntime.exports.jsx(Divider$1,{className:f?"":e.dividerSmallMargin})]})}const useStyles$6$1=makeStyles()(e=>({notificationTypeItemBox:{background:e.palette.background.paper,borderRadius:e.shape.borderRadius,width:"100%",display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(4,1,1),height:"100%",fontSize:10,lineHeight:"16px",justifyContent:"center"},disableType:{color:e.palette.grey[500]}}));function NotificationTypeItem(e){const{notificationTypeIcon:t,notificationTypeName:n,defaultSelected:r,onSelectNotificationType:i,notificationTypeId:o,isDisabled:a}=e,[s,l]=react.exports.useState(r);e=useStyles$6$1().classes;return jsxRuntime.exports.jsxs("div",Object.assign({className:classnames(e.notificationTypeItemBox,a?e.disableType:""),"data-testid":"notification-type-item"},{children:[jsxRuntime.exports.jsx("div",{children:"string"==typeof t?jsxRuntime.exports.jsx("img",{src:t,alt:"icon",draggable:"false"}):t}),jsxRuntime.exports.jsx("div",{children:n}),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(Checkbox$1,{icon:jsxRuntime.exports.jsx("img",{src:img$1k,alt:"uncheck icon",draggable:"false"}),checkedIcon:jsxRuntime.exports.jsx("img",{src:img$1j,alt:"checked icon",draggable:"false"}),checked:s,onChange:function(){l(e=>(null!==i&&void 0!==i&&i(o,!e),!e))},disabled:!!a})})]}))}const useStyles$5$1=makeStyles()(e=>({notificationTypeBox:{paddingBottom:e.spacing(0)},notificationTypeHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:16,lineHeight:"22px",fontWeight:600,marginBottom:e.spacing(2)},notificationList:{display:"inline-grid",gridColumnGap:e.spacing(2.8),gridTemplateColumns:"1fr 1fr 1fr",width:"100%",marginBottom:e.spacing(4.4)},divider:{marginTop:e.spacing(4),marginBottom:e.spacing(4.4)},dividerWithoutDescription:{marginBottom:e.spacing(3)}})),defaultNotificationTypeList=[{id:INotificationType.EMAIL,notificationTypeIcon:jsxRuntime.exports.jsx(Email,{}),notificationTypeName:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.rTFvFj",defaultMessage:"Email",description:"allow notification types: email"}),isSelected:!0},{id:INotificationType.NOTIFICATION_CENTER,notificationTypeIcon:jsxRuntime.exports.jsx(HelpCenter$1,{}),notificationTypeName:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.SmyvFq",defaultMessage:"Notification Center",description:"allow notification types: Notification Center"}),isSelected:!0},{id:INotificationType.BANNER,notificationTypeIcon:jsxRuntime.exports.jsx(Banner,{}),notificationTypeName:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.r7Whww",defaultMessage:"Banners",description:"allow notification types: Banners"}),isSelected:!0}];function NotificationType(e){const{notificationTypeTitle:t,children:n,description:r,allowTypes:i=[],allowNotification:o,onChangeAllowType:a,hideDivider:s,onChangeNotificationType:l,disabledTypes:c=[]}=e,[u,d]=react.exports.useState(!!o),[p,f]=react.exports.useState(defaultNotificationTypeList);e=useStyles$5$1().classes;const h=[...i],[m,g]=react.exports.useState(i);var y=t||"Allow Notifications";return react.exports.useEffect(()=>{var e=defaultNotificationTypeList.map(t=>{var e=-1!==m.findIndex(e=>e===t.id),n=-1!==c.findIndex(e=>e===t.id);return Object.assign(Object.assign({},t),{isSelected:e,isDisabled:n})});f(e)},[h.join(", "),m]),react.exports.useEffect(()=>{null!==a&&void 0!==a&&a(u),u?0===m.length&&u&&g([INotificationType.EMAIL]):g([])},[u]),jsxRuntime.exports.jsxs("div",Object.assign({className:e.notificationTypeBox},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:e.notificationTypeHeader},{children:[jsxRuntime.exports.jsx(Typography$1,{variant:"h3",children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.8Z0yyD",defaultMessage:"{title}",description:"notification setting: allow notification types",values:{title:y}})}),jsxRuntime.exports.jsx(Switch$1,{checked:u,onChange:function(){d(e=>!e)},color:"primary",name:"notificationTypeChecked","data-testid":"notification-type-switch"})]})),n,jsxRuntime.exports.jsx("div",Object.assign({className:e.notificationList},{children:p.map(t=>{var e=-1!==c.findIndex(e=>e===t.id)||!u;return jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(NotificationTypeItem,{notificationTypeIcon:t.notificationTypeIcon,notificationTypeName:t.notificationTypeName,defaultSelected:t.isSelected,onSelectNotificationType:l,notificationTypeId:t.id,isDisabled:e})},t.id+"-"+t.isSelected)})})),r,!s&&jsxRuntime.exports.jsx(Divider$1,{className:r?e.divider:e.dividerWithoutDescription})]}))}const useStyles$4$1=makeStyles()(e=>({tableCell:{padding:0,"& > span":{paddingLeft:0,paddingRight:0}},itemCell:{padding:0,"& > span":{padding:e.spacing(0,2)}},eventNameContainer:{display:"flex",alignItems:"center"},tableRowCheckbox:{marginRight:e.spacing(2)},rowCheckbox:{paddingLeft:0},customLineHeight:{lineHeight:e.spacing(8)},disabledCheckBox:{"& svg":{color:"green"}}}));function NotificationUtilityActionItem(e){const{events:t,disabled:n}=e,r=useStyles$4$1()["classes"],i=[{type:INotificationType.EMAIL,iconUrl:img$1n},{type:INotificationType.NOTIFICATION_CENTER,iconUrl:img$1m},{type:INotificationType.BANNER,iconUrl:img$1l}];return jsxRuntime.exports.jsx(TableContainer$1,{children:jsxRuntime.exports.jsxs(Table$1,Object.assign({"aria-label":"customized table"},{children:[jsxRuntime.exports.jsx(TableHead$1,{children:jsxRuntime.exports.jsxs(TableRow$1,{children:[jsxRuntime.exports.jsx(TableCell$1,Object.assign({className:r.tableCell},{children:jsxRuntime.exports.jsx(Typography$1,{variant:"h3",children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.KVIpaj",defaultMessage:"Events",description:"allow-notification"})})})),i.map(e=>jsxRuntime.exports.jsx(TableCell$1,Object.assign({align:"center",className:r.itemCell},{children:jsxRuntime.exports.jsx("img",{src:e.iconUrl,alt:e.type})}),e.type))]})}),jsxRuntime.exports.jsx(TableBody$1,{children:null===t||void 0===t?void 0:t.map(t=>jsxRuntime.exports.jsxs(TableRow$1,{children:[jsxRuntime.exports.jsxs(TableCell$1,Object.assign({className:classnames(r.eventNameContainer,r.tableCell)},{children:[jsxRuntime.exports.jsx(Checkbox$1,{id:t.id,disabled:n,className:r.tableRowCheckbox}),jsxRuntime.exports.jsx(ListItemText$1,{children:jsxRuntime.exports.jsx(Typography$1,{variant:"body2",children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.VNVmyk",defaultMessage:"{defaultMessage}",description:"Finder notifications: {defaultMessage}",values:{defaultMessage:t.title,id:t.id}})})})]})),i.map(e=>jsxRuntime.exports.jsx(TableCell$1,Object.assign({className:r.itemCell},{children:jsxRuntime.exports.jsx(Checkbox$1,{id:"checkbox-"+t.id,icon:jsxRuntime.exports.jsx(default_1$5,{}),checkedIcon:jsxRuntime.exports.jsx(CheckCircle,{})})}),e.type+"-type"))]},t.id))})]}))})}const useStyles$3$2=makeStyles()(e=>({finderNotification:{padding:e.spacing(4,6),maxHeight:"100%",overflow:"auto"},buttonBox:{display:"flex",justifyContent:"flex-end",marginTop:e.spacing(8)},buttonLeft:{marginRight:e.spacing(4)},settingItem:{marginBottom:e.spacing(6)},sharedItem:{padding:0}}));function NotificationUtilityPanel(e){const t=e["dataId"];e=useStyles$3$2().classes;const n=useSelector(notificationSelector).settings,r=n.utility;var i=null===r||void 0===r?void 0:r.find(e=>e.id===t);const[o,a]=react.exports.useState(i||{}),s=[],l=[INotificationType.EMAIL,INotificationType.NOTIFICATION_CENTER,INotificationType.BANNER];return l.forEach(t=>{-1===n.allowType.findIndex(e=>e===t)&&s.push(t)}),jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsxs("div",Object.assign({className:e.finderNotification},{children:[jsxRuntime.exports.jsx(NotificationType,{allowTypes:null==o?void 0:o.allowType,allowNotification:null==o?void 0:o.allow,onChangeAllowType:function(r){a(e=>{var t=r?[...e.allowType]:[],n=r?[...e.action]:[...e.action].map(e=>Object.assign(Object.assign({},e),{allow:!1}));return Object.assign(Object.assign({},e),{allow:r,allowType:t,action:n})})},onChangeNotificationType:function(r,i){a(e=>{const t=[...e.allowType];var n=t.indexOf(r);return-1===n||i?t.push(r):t.splice(n,1),Object.assign(Object.assign({},e),{allowType:t})})},disabledTypes:s,children:jsxRuntime.exports.jsx(NotificationSettingItem,{imgSrc:(null==o?void 0:o.iconUrl)||"",primaryText:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.ubNxKs",defaultMessage:"{utilityTitle}",description:"title of notification utility: {utilityTitle}",values:{id:null==o?void 0:o.id,utilityTitle:null==o?void 0:o.title}}),secondaryText:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.XkH621",defaultMessage:"Chose which events you’d like to be notified about.",description:"content of notification utility description"}),bigSize:!0}),description:jsxRuntime.exports.jsx(Typography$1,{variant:"caption",children:"Banner previews are being set at the parent level"})}),jsxRuntime.exports.jsx(NotificationUtilityActionItem,{events:null==o?void 0:o.action,onSelectAction:function(r){a(e=>{const t=[...e.action];var n=t.findIndex(e=>e.id===r.id);return t[n]=r,Object.assign(Object.assign({},e),{action:t})})},disabled:!o.allow}),jsxRuntime.exports.jsx(Divider$1,{style:{marginBottom:20,marginTop:15}}),jsxRuntime.exports.jsx(CustomWorkFlow,{})]}))})}const useStyles$2$3=makeStyles()(e=>({notificationSetting:{padding:e.spacing(3,6,4.4),overflowY:"scroll",height:"100%"},appAllowTitle:{paddingTop:e.spacing(2.4)},dividerBigMargin:{marginTop:e.spacing(2.4),marginBottom:e.spacing(3)},notificationSettingItem:{padding:0},bannerStyleLabel:{fontWeight:"normal"}}));function NotificationSetting(e){var t=useStyles$2$3()["classes"];const i=useDispatch(),[n,r]=react.exports.useState(!0),[o,a]=react.exports.useState(!0);var s=useSelector(notificationSettingSelector);const[l,c]=react.exports.useState(s.bannerStyle),u=useSelector(notificationUtilitiesSelector),d=useSelector(notificationApplicationsSelector),[p,f]=react.exports.useState(null==s?void 0:s.allow),[h,m]=react.exports.useState(s);var s=-1!==(null==(s=null===h||void 0===h?void 0:h.allowType)?void 0:s.findIndex(e=>e===INotificationType.BANNER));const[g,y]=react.exports.useState(s);function v(e,t){var n={name:"NOTIFICATION_UTILITY",config:{mode:"actionable",onClose:()=>{console.log("onClose")}}},r={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:472,width:413,zIndex:1002,header:{divider:!0,title:"finder notifications"}};i(mountPanel$1({panelId:e||"",microFrontend:n,panelConfig:r}))}function x(e,t){var n={name:"NOTIFICATION_APPLICATION",config:{mode:"actionable",onClose:()=>{console.log("onClose")}}},r={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:472,width:413,zIndex:1002,header:{divider:!0,title:"app notifications"}};i(mountPanel$1({panelId:e||"",microFrontend:n,panelConfig:r}))}return react.exports.useEffect(()=>{i(updateNotificationSetting(h))},[h,i]),jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsxs("div",Object.assign({className:t.notificationSetting},{children:[jsxRuntime.exports.jsx(NotificationType,{allowTypes:null===h||void 0===h?void 0:h.allowType,allowNotification:null===h||void 0===h?void 0:h.allow,onChangeAllowType:function(n){f(n),n||(r(n),a(n)),m(e=>{var t=n?[...e.allowType]:[];return Object.assign(Object.assign({},e),{allow:n,allowType:t})})},hideDivider:g,onChangeNotificationType:function(r,i){r===INotificationType.BANNER&&y(i),m(e=>{const t=[...e.allowType];var n=t.indexOf(r);return-1===n||i?t.push(r):t.splice(n,1),Object.assign(Object.assign({},e),{allowType:t})})}}),p&&g&&jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography$1,{variant:"body2",children:"Banner Style"}),jsxRuntime.exports.jsx(FormControl$1,Object.assign({component:"fieldset"},{children:jsxRuntime.exports.jsxs(RadioGroup$1,Object.assign({"aria-label":"bannerStyle",name:"bannerStyle",value:l,onChange:e=>{c(e.target.value),i(updateBannerStyle(e.target.value))},row:!0},{children:[jsxRuntime.exports.jsx(FormControlLabel$1,{value:"temporary",control:jsxRuntime.exports.jsx(Radio$1,{}),label:jsxRuntime.exports.jsx("span",{children:jsxRuntime.exports.jsx(Typography$1,{variant:"body2",children:"Temporary"})})}),jsxRuntime.exports.jsx(FormControlLabel$1,{value:"persistent",control:jsxRuntime.exports.jsx(Radio$1,{}),label:jsxRuntime.exports.jsx("span",{children:jsxRuntime.exports.jsx(Typography$1,{variant:"body2",children:"Persistent"})})})]}))})),jsxRuntime.exports.jsx(Divider$1,{className:t.dividerBigMargin})]}),jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({display:"flex",justifyContent:"space-between",alignItems:"center"},{children:[jsxRuntime.exports.jsx(Typography$1,{variant:"h3",children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.qJ0Sxo",defaultMessage:"Allow Utility Notifications",description:"allow-utility-notification"})}),jsxRuntime.exports.jsx(Switch$1,{checked:n,onChange:e=>{e=e.target.checked;r(e)},color:"primary",name:"enableUtilityNotification",disabled:!p})]})),jsxRuntime.exports.jsx(List$2,Object.assign({className:t.notificationSettingItem},{children:null===u||void 0===u?void 0:u.map(e=>jsxRuntime.exports.jsx(NotificationSettingItem,{imgSrc:e.iconUrl,isHover:!0,primaryText:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.tadsU0",defaultMessage:"{defaultMessage}",description:"title of notification utility: {defaultMessage}",values:{id:e.id,defaultMessage:e.title}}),secondaryText:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.AgAM0k",defaultMessage:"{defaultMessage}",description:"allowed types of notification utility: {defaultMessage}",values:{id:e.id,defaultMessage:e.allowType.join(", ")}}),onOpenUtility:v,utilityId:e.id,utilityTitle:e.title,disabled:!n},e.id))}))]}),jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({display:"flex",justifyContent:"space-between",alignItems:"center",className:t.appAllowTitle},{children:[jsxRuntime.exports.jsx(Typography$1,{variant:"h3",children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.swIpqY",defaultMessage:"Allow Application Notifications",description:"allow-application-notification"})}),jsxRuntime.exports.jsx(Switch$1,{checked:o,onChange:e=>{e=e.target.checked;a(e)},color:"primary",name:"checkedB",disabled:!p})]})),jsxRuntime.exports.jsx(List$2,Object.assign({className:t.notificationSettingItem},{children:null==(s=null===d||void 0===d?void 0:d.allIds)?void 0:s.map(e=>jsxRuntime.exports.jsx(NotificationSettingItem,{imgSrc:null===d||void 0===d?void 0:d.byId[e].iconUrl,isHover:!0,primaryText:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.JvsYLn",defaultMessage:"{defaultMessage}",description:"title of notification application: {defaultMessage}",values:{idMessage:e,defaultMessage:null===d||void 0===d?void 0:d.byId[e].name}}),secondaryText:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.AgAM0k",defaultMessage:"{defaultMessage}",description:"allowed types of notification utility: {defaultMessage}",values:{id:e,defaultMessage:null===d||void 0===d?void 0:d.byId[e].allowType.join(", ")}}),onOpenApplication:x,applicationId:e,applicationTitle:null===d||void 0===d?void 0:d.byId[e].name,disabled:!o},e))}))]})]}))})}const useStyles$1$3=makeStyles()(e=>({appNoti:{padding:e.spacing(6),paddingTop:e.spacing(4.4),overflowY:"scroll",height:"100%"}})),useStyles$f=makeStyles()(e=>({tableCell:{padding:0,"& > span":{paddingLeft:0,paddingRight:0}},tableRowCheckbox:{marginRight:e.spacing(2)},rowCheckbox:{paddingLeft:0,paddingTop:0,paddingBottom:0,height:"20px"},disabledCheckBox:{"& svg":{color:"green"}},firstColumn:{paddingRight:e.spacing(2)},secondColumn:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},thirdColumn:{paddingLeft:e.spacing(2)}}));function NotificationAllowCell(e){const{id:t,type:n,allowType:r,currentApplicationAllowType:i,isLineEnable:o,onChangeAppAction:a}=e,s=useStyles$f()["classes"];e=(e,t)=>{switch(t){case"email":return e.includes(INotificationType.EMAIL);case"banners":return e.includes(INotificationType.BANNER);case"notification-center":return e.includes(INotificationType.NOTIFICATION_CENTER)}};return jsxRuntime.exports.jsx(TableCell$1,Object.assign({align:"center",className:s.tableCell+" "+(()=>{switch(t){case"email":return s.firstColumn;case"notification-center":return s.secondColumn;case"banners":return s.thirdColumn;default:return""}})()},{children:jsxRuntime.exports.jsx(Checkbox$1,{id:"checkbox-"+t,checked:e(r,t),disabled:!e(i,t)||!o,icon:jsxRuntime.exports.jsx(default_1$5,{}),checkedIcon:jsxRuntime.exports.jsx(CheckCircle,{color:e(i,t)&&o?"primary":"disabled"}),onChange:e=>{a(e,n)}})}))}function NotificationAllowRow(e){const{allowNotificationTitle:t,checked:n,allowType:r,appId:i,id:o}=e;e=useStyles$f().classes;const a=useDispatch();var s=useSelector(notificationApplicationSelector(i));const[l,c]=react.exports.useState(n),u=null==s?void 0:s.allowType,[d,p]=react.exports.useState(r),f=[{id:"email",type:INotificationType.EMAIL},{id:"notification-center",type:INotificationType.NOTIFICATION_CENTER},{id:"banners",type:INotificationType.BANNER}];const h=(e,t)=>{let n;n=e.currentTarget.checked?[...d,t]:d.filter(e=>e!==t),p(n),a(updateAppActionAllowNotification(i,o,n,"allowType"))};return jsxRuntime.exports.jsxs(TableRow$1,{children:[jsxRuntime.exports.jsx(TableCell$1,Object.assign({component:"th",scope:"row",className:e.tableCell},{children:jsxRuntime.exports.jsxs(Box$1,Object.assign({display:"flex"},{children:[jsxRuntime.exports.jsx(Checkbox$1,{"data-test":"row-check-"+o,"data-testid":"row-check-"+o,className:e.rowCheckbox,checked:l,onChange:e=>{e=e.currentTarget.checked;c(e),a(updateAppActionAllowNotification(i,o,e,"allow"))}}),jsxRuntime.exports.jsx(Typography$1,{variant:"body2",children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.tSG+Bv",defaultMessage:"{text}",description:"allow-notification-table-{text}",values:{text:t}})})]}))})),f.map(e=>jsxRuntime.exports.jsx(NotificationAllowCell,{id:e.id,type:e.type,allowType:r,currentApplicationAllowType:u,isLineEnable:l,onChangeAppAction:h},e.id))]})}function NotificationAllowTable(e){const{action:n,appId:r}=e;var e=useStyles$f()["classes"],t=classnames(e.tableCell,e.firstColumn),i=classnames(e.tableCell,e.secondColumn),o=classnames(e.tableCell,e.thirdColumn);return jsxRuntime.exports.jsx(TableContainer$1,{children:jsxRuntime.exports.jsxs(Table$1,Object.assign({"aria-label":"notification-table"},{children:[jsxRuntime.exports.jsx(TableHead$1,{children:jsxRuntime.exports.jsxs(TableRow$1,{children:[jsxRuntime.exports.jsx(TableCell$1,Object.assign({className:e.tableCell},{children:jsxRuntime.exports.jsx(Typography$1,{variant:"h3",children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.KVIpaj",defaultMessage:"Events",description:"allow-notification"})})})),jsxRuntime.exports.jsx(TableCell$1,Object.assign({align:"center",className:t},{children:jsxRuntime.exports.jsx("img",{src:img$1n,alt:"img-icon"})})),jsxRuntime.exports.jsx(TableCell$1,Object.assign({align:"center",className:i},{children:jsxRuntime.exports.jsx("img",{src:img$1m,alt:"img-icon"})})),jsxRuntime.exports.jsx(TableCell$1,Object.assign({align:"center",className:o},{children:jsxRuntime.exports.jsx("img",{src:img$1l,alt:"img-icon"})}))]})}),jsxRuntime.exports.jsx(TableBody$1,{children:null==(e=null===n||void 0===n?void 0:n.allIds)?void 0:e.map(e=>{var t;return jsxRuntime.exports.jsx(NotificationAllowRow,{allowNotificationTitle:null==(t=null===n||void 0===n?void 0:n.byId[e])?void 0:t.title,checked:null==(t=null===n||void 0===n?void 0:n.byId[e])?void 0:t.allow,allowType:null==(t=null===n||void 0===n?void 0:n.byId[e])?void 0:t.allowType,appId:r,id:e},e)})})]}))})}function NotificationApplication(e){const o=e["dataId"];var e=useStyles$1$3()["classes"];const t=useDispatch();var n=useSelector(notificationApplicationsSelector);const[r,a]=react.exports.useState(n),i=useSelector(notificationSelector).settings;var s=useSelector(notificationApplicationSelector(o));react.exports.useEffect(()=>{t(updateApplicationSetting(r))},[r]);const l=[INotificationType.EMAIL,INotificationType.NOTIFICATION_CENTER,INotificationType.BANNER],c=[];l.forEach(t=>{-1===(null===i||void 0===i?void 0:i.allowType.findIndex(e=>e===t))&&c.push(t)});return jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsxs("div",Object.assign({className:e.appNoti},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(NotificationType,{notificationTypeTitle:"Allow Notifications",allowNotification:null==n?void 0:n.byId[o].allow,allowTypes:null==(e=null==n?void 0:n.byId[o])?void 0:e.allowType,disabledTypes:c,children:jsxRuntime.exports.jsx(NotificationSettingItem,{imgSrc:(null==(e=null==n?void 0:n.byId[o])?void 0:e.iconUrl)||"",primaryText:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.OR1ivL",defaultMessage:"{text}",description:"notification-app-id",values:{text:null==s?void 0:s.name}}),secondaryText:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.QgzNQa",defaultMessage:"{text}",description:"notification application detail text",values:{text:null==s?void 0:s.description}}),bigSize:!0}),description:jsxRuntime.exports.jsx(Typography$1,{variant:"caption",children:"Banner previews are being set at the parent level"}),onChangeNotificationType:function(r,i){a(e=>{const t=[...e.byId[o].allowType];var n=t.indexOf(r);return i&&-1===n?t.push(r):t.splice(n,1),Object.assign(Object.assign({},e),{byId:Object.assign(Object.assign({},e.byId),{[o]:Object.assign(Object.assign({},e.byId[o]),{allowType:t})})})})},onChangeAllowType:e=>{t(updateAppAllowNotification(o,e))}})}),jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(NotificationAllowTable,{action:null==(e=null==n?void 0:n.byId[o])?void 0:e.action,appId:o}),jsxRuntime.exports.jsx(Divider$1,{style:{marginBottom:20,marginTop:15}})]}),jsxRuntime.exports.jsx(CustomWorkFlow,{})]}))})}var index_esm$2=Object.freeze({__proto__:null,NotificationApplication:NotificationApplication,NotificationDetailPanel:NotificationDetailPanel,NotificationPanel:NotificationPanel,NotificationSetting:NotificationSetting,NotificationUtilityPanel:NotificationUtilityPanel,initNotificationAction:initNotificationAction,onNotificationActionClicked:onNotificationActionClicked}),Search={},_interopRequireDefault$4=interopRequireDefault.exports,default_1$4=(Object.defineProperty(Search,"__esModule",{value:!0}),Search.default=void 0),_createSvgIcon$4=_interopRequireDefault$4(createSvgIcon),_jsxRuntime$4=jsxRuntime.exports,_default$4=(0,_createSvgIcon$4.default)((0,_jsxRuntime$4.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");function getLoadingButtonUtilityClass(e){return generateUtilityClass("MuiLoadingButton",e)}default_1$4=Search.default=_default$4;const loadingButtonClasses=generateUtilityClasses("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]);var loadingButtonClasses$1=loadingButtonClasses;const _excluded=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],useUtilityClasses=e=>{var{loading:e,loadingPosition:t,classes:n}=e;return _extends({},n,composeClasses({root:["root",e&&"loading"],startIcon:[e&&"startIconLoading"+capitalize$2(t)],endIcon:[e&&"endIconLoading"+capitalize$2(t)],loadingIndicator:["loadingIndicator",e&&"loadingIndicator"+capitalize$2(t)]},getLoadingButtonUtilityClass,n))},rootShouldForwardProp=e=>"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e&&"classes"!==e,LoadingButtonRoot=styled$1(Button$1,{shouldForwardProp:e=>rootShouldForwardProp(e)||"classes"===e,name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{["& ."+loadingButtonClasses$1.startIconLoadingStart]:t.startIconLoadingStart},t.endIconLoadingEnd&&{["& ."+loadingButtonClasses$1.endIconLoadingEnd]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>_extends({[`& .${loadingButtonClasses$1.startIconLoadingStart}, & .`+loadingButtonClasses$1.endIconLoadingEnd]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},"center"===e.loadingPosition&&{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),["&."+loadingButtonClasses$1.loading]:{color:"transparent"}},"start"===e.loadingPosition&&e.fullWidth&&{[`& .${loadingButtonClasses$1.startIconLoadingStart}, & .`+loadingButtonClasses$1.endIconLoadingEnd]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},"end"===e.loadingPosition&&e.fullWidth&&{[`& .${loadingButtonClasses$1.startIconLoadingStart}, & .`+loadingButtonClasses$1.endIconLoadingEnd]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),LoadingButtonLoadingIndicator=styled$1("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{e=e.ownerState;return[t.loadingIndicator,t["loadingIndicator"+capitalize$2(e.loadingPosition)]]}})(({theme:e,ownerState:t})=>_extends({position:"absolute",visibility:"visible",display:"flex"},"start"===t.loadingPosition&&("outlined"===t.variant||"contained"===t.variant)&&{left:"small"===t.size?10:14},"start"===t.loadingPosition&&"text"===t.variant&&{left:6},"center"===t.loadingPosition&&{left:"50%",transform:"translate(-50%)",color:e.palette.action.disabled},"end"===t.loadingPosition&&("outlined"===t.variant||"contained"===t.variant)&&{right:"small"===t.size?10:14},"end"===t.loadingPosition&&"text"===t.variant&&{right:6},"start"===t.loadingPosition&&t.fullWidth&&{position:"relative",left:-10},"end"===t.loadingPosition&&t.fullWidth&&{position:"relative",right:-10})),LoadingButton=react.exports.forwardRef(function(e,t){var e=useThemeProps({props:e,name:"MuiLoadingButton"}),{children:n,disabled:r=!1,id:i,loading:o=!1,loadingIndicator:a,loadingPosition:s="center",variant:l="text"}=e,c=_objectWithoutPropertiesLoose$2(e,_excluded),i=useId(i),a=null!=a?a:jsxRuntime.exports.jsx(CircularProgress$1,{"aria-labelledby":i,color:"inherit",size:16}),e=_extends({},e,{disabled:r,loading:o,loadingIndicator:a,loadingPosition:s,variant:l}),s=useUtilityClasses(e);return jsxRuntime.exports.jsx(LoadingButtonRoot,_extends({disabled:r||o,id:i,ref:t},c,{variant:l,classes:s,ownerState:e,children:"end"===e.loadingPosition?jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[n,o&&jsxRuntime.exports.jsx(LoadingButtonLoadingIndicator,{className:s.loadingIndicator,ownerState:e,children:a})]}):jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[o&&jsxRuntime.exports.jsx(LoadingButtonLoadingIndicator,{className:s.loadingIndicator,ownerState:e,children:a}),n]})}))});var LoadingButton$1=LoadingButton,Link={},_interopRequireDefault$3=interopRequireDefault.exports,default_1$3=(Object.defineProperty(Link,"__esModule",{value:!0}),Link.default=void 0),_createSvgIcon$3=_interopRequireDefault$3(createSvgIcon),_jsxRuntime$3=jsxRuntime.exports,_default$3=(0,_createSvgIcon$3.default)((0,_jsxRuntime$3.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link"),default_1$3=Link.default=_default$3,cropper={exports:{}},Cropper=(!function(){function N(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 P(r){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?N(Object(i),!0).forEach(function(e){var t,n;t=r,n=i[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):N(Object(i)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))})}return r}function D(e){return(D="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 V(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 H(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(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 p(e){return"number"==typeof e&&!ie(e)}function i(e){return void 0===e}function o(e){return"object"===D(e)&&null!==e}function f(e){if(!o(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&ae.call(n,"isPrototypeOf")}catch(e){return!1}}function c(e){return"function"==typeof e}function F(e){return Array.from?Array.from(e):se.call(e)}function _(n,r){return n&&c(r)&&(Array.isArray(n)||p(n.length)?F(n).forEach(function(e,t){r.call(n,e,t,n)}):o(n)&&Object.keys(n).forEach(function(e){r.call(n,n[e],e,n)})),n}function j(e,t){var n=1<arguments.length&&void 0!==t?t:1e11;return le.test(e)?Math.round(e*n)/n:e}function h(e,t){var n=e.style;_(t,function(e,t){ce.test(t)&&p(e)&&(e="".concat(e,"px")),n[t]=e})}function u(e,t){var n;t&&(p(e.length)?_(e,function(e){u(e,t)}):e.classList?e.classList.add(t):(n=e.className.trim())?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t)}function T(e,t){t&&(p(e.length)?_(e,function(e){T(e,t)}):e.classList?e.classList.remove(t):0<=e.className.indexOf(t)&&(e.className=e.className.replace(t,"")))}function a(e,t,n){t&&(p(e.length)?_(e,function(e){a(e,t,n)}):(n?u:T)(e,t))}function s(e){return e.replace(ue,"$1-$2").toLowerCase()}function B(e,t){return o(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(s(t)))}function d(e,t,n){o(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(s(t)),n)}function l(n,e,r,t){var i=3<arguments.length&&void 0!==t?t:{},o=r;e.trim().split(de).forEach(function(e){var t;pe||(t=n.listeners)&&t[e]&&t[e][r]&&(o=t[e][r],delete t[e][r],0===Object.keys(t[e]).length&&delete t[e],0===Object.keys(t).length&&delete n.listeners),n.removeEventListener(e,o,i)})}function m(o,e,a,t){var s=3<arguments.length&&void 0!==t?t:{},l=a;e.trim().split(de).forEach(function(r){var e,i;s.once&&!pe&&(e=o.listeners,l=function(){delete i[r][a],o.removeEventListener(r,l,s);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];a.apply(o,t)},(i=void 0===e?{}:e)[r]||(i[r]={}),i[r][a]&&o.removeEventListener(r,i[r][a],s),i[r][a]=l,o.listeners=i),o.addEventListener(r,l,s)})}function g(e,t,n){var r;return c(Event)&&c(CustomEvent)?r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)}function U(e){e=e.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}function Z(e){e=e.match(fe);return null!==e&&(e[1]!==t.protocol||e[2]!==t.hostname||e[3]!==t.port)}function z(e){var t="timestamp=".concat((new Date).getTime());return e+(-1===e.indexOf("?")?"?":"&")+t}function y(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,e=e.translateY,o=[],i=(p(i)&&0!==i&&o.push("translateX(".concat(i,"px)")),p(e)&&0!==e&&o.push("translateY(".concat(e,"px)")),p(t)&&0!==t&&o.push("rotate(".concat(t,"deg)")),p(n)&&1!==n&&o.push("scaleX(".concat(n,")")),p(r)&&1!==r&&o.push("scaleY(".concat(r,")")),o.length?o.join(" "):"none");return{WebkitTransform:i,msTransform:i,transform:i}}function v(e,t){var n=e.pageX,e=e.pageY,r={endX:n,endY:e};return t?r:P({startX:n,startY:e},r)}function I(e,t){var n,r=e.aspectRatio,i=e.height,o=e.width,a=1<arguments.length&&void 0!==t?t:"contain",s=oe(o),l=oe(i);return s&&l?(n=i*r,"contain"===a&&o<n||"cover"===a&&n<o?i=o/r:o=i*r):s?i=o/r:l&&(o=i*r),{width:o,height:i}}var x,C,b,$,W,E,G,q,w,S,R,O,L,M,A,K,Y,Q,X,J,ee,te,ne,re,ie,oe,ae,se,k,le,ce,ue,de,pe,t,fe,he,me,e,n,ge,ye,ve,xe,Ce,be;cropper.exports=(x="undefined"!=typeof window&&void 0!==window.document,C=x?window:{},n=!(!x||!C.document.documentElement)&&"ontouchstart"in C.document.documentElement,e=x&&"PointerEvent"in C,$="".concat(b="cropper","-crop"),W="".concat(b,"-disabled"),E="".concat(b,"-hidden"),G="".concat(b,"-hide"),q="".concat(b,"-invisible"),w="".concat(b,"-modal"),S="".concat(b,"-move"),R="".concat(b,"Action"),O="".concat(b,"Preview"),L="cropend",M="cropmove",A="cropstart",K=e?"pointerdown":n?"touchstart":"mousedown",Y=e?"pointermove":n?"touchmove":"mousemove",Q=e?"pointerup pointercancel":n?"touchend touchcancel":"mouseup",X="image/jpeg",J=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,ee=/^data:/,te=/^data:image\/jpeg;base64,/,ne=/^img|canvas$/i,re={viewMode:0,dragMode:"crop",initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},ie=Number.isNaN||C.isNaN,oe=function(e){return 0<e&&e<1/0},ae=Object.prototype.hasOwnProperty,se=Array.prototype.slice,k=Object.assign||function(n){for(var e=arguments.length,t=new Array(1<e?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];return o(n)&&0<t.length&&t.forEach(function(t){o(t)&&Object.keys(t).forEach(function(e){n[e]=t[e]})}),n},le=/\.\d*(?:0|9){12}\d*$/,ce=/^width|height|left|top|marginLeft|marginTop$/,ue=/([a-z\d])([A-Z])/g,de=/\s\s*/,pe=function(){var t,e,n,r=!1;return x&&(t=!1,e=function(){},n=Object.defineProperty({},"once",{get:function(){return r=!0,t},set:function(e){t=e}}),C.addEventListener("test",e,n),C.removeEventListener("test",e,n)),r}(),t=C.location,fe=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i,he=String.fromCharCode,me=/^data:.*,/,e={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,n=this.container,r=this.cropper,i=Number(t.minContainerWidth),t=Number(t.minContainerHeight),i=(u(r,E),T(e,E),{width:Math.max(n.offsetWidth,0<=i?i:200),height:Math.max(n.offsetHeight,0<=t?t:100)});h(r,{width:(this.containerData=i).width,height:i.height}),u(e,E),T(r,E)},initCanvas:function(){var e=this.containerData,t=this.imageData,n=this.options.viewMode,r=Math.abs(t.rotate)%180==90,i=r?t.naturalHeight:t.naturalWidth,r=r?t.naturalWidth:t.naturalHeight,t=i/r,o=e.width,a=e.height,t=(e.height*t>e.width?3===n?o=e.height*t:a=e.width/t:3===n?a=e.width/t:o=e.height*t,{aspectRatio:t,naturalWidth:i,naturalHeight:r,width:o,height:a});this.canvasData=t,this.limited=1===n||2===n,this.limitCanvas(!0,!0),t.width=Math.min(Math.max(t.width,t.minWidth),t.maxWidth),t.height=Math.min(Math.max(t.height,t.minHeight),t.maxHeight),t.left=(e.width-t.width)/2,t.top=(e.height-t.height)/2,t.oldLeft=t.left,t.oldTop=t.top,this.initialCanvasData=k({},t)},limitCanvas:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=n.viewMode,s=i.aspectRatio,l=this.cropped&&o;e&&(e=Number(n.minCanvasWidth)||0,n=Number(n.minCanvasHeight)||0,1<a?(e=Math.max(e,r.width),n=Math.max(n,r.height),3===a&&(e<n*s?e=n*s:n=e/s)):0<a&&(e?e=Math.max(e,l?o.width:0):n?n=Math.max(n,l?o.height:0):l&&((e=o.width)<(n=o.height)*s?e=n*s:n=e/s)),e=(s=I({aspectRatio:s,width:e,height:n})).width,n=s.height,i.minWidth=e,i.minHeight=n,i.maxWidth=1/0,i.maxHeight=1/0),t&&((l?0:1)<a?(s=r.width-i.width,e=r.height-i.height,i.minLeft=Math.min(0,s),i.minTop=Math.min(0,e),i.maxLeft=Math.max(0,s),i.maxTop=Math.max(0,e),l&&this.limited&&(i.minLeft=Math.min(o.left,o.left+(o.width-i.width)),i.minTop=Math.min(o.top,o.top+(o.height-i.height)),i.maxLeft=o.left,i.maxTop=o.top,2===a&&(i.width>=r.width&&(i.minLeft=Math.min(0,s),i.maxLeft=Math.max(0,s)),i.height>=r.height&&(i.minTop=Math.min(0,e),i.maxTop=Math.max(0,e))))):(i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height))},renderCanvas:function(e,t){var n,r,i=this.canvasData,o=this.imageData;t&&(o=(t=function(e){var t=e.width,n=e.height,e=e.degree;if(90==(e=Math.abs(e)%180))return{width:n,height:t};var r=e%90*Math.PI/180,i=Math.sin(r),r=Math.cos(r),o=t*r+n*i,t=t*i+n*r;return 90<e?{width:t,height:o}:{width:o,height:t}}({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0})).width,t=t.height,n=i.width*(o/i.naturalWidth),r=i.height*(t/i.naturalHeight),i.left-=(n-i.width)/2,i.top-=(r-i.height)/2,i.width=n,i.height=r,i.aspectRatio=o/t,i.naturalWidth=o,i.naturalHeight=t,this.limitCanvas(!0,!1)),(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,h(this.canvas,k({width:i.width,height:i.height},y({translateX:i.left,translateY:i.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,n=this.imageData,r=n.naturalWidth*(t.width/t.naturalWidth),i=n.naturalHeight*(t.height/t.naturalHeight);k(n,{width:r,height:i,left:(t.width-r)/2,top:(t.height-i)/2}),h(this.image,k({width:n.width,height:n.height},y(k({translateX:n.left,translateY:n.top},n)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,n=e.aspectRatio||e.initialAspectRatio,e=Number(e.autoCropArea)||.8,r={width:t.width,height:t.height};n&&(t.height*n>t.width?r.height=r.width/n:r.width=r.height*n),this.cropBoxData=r,this.limitCropBox(!0,!0),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),r.width=Math.max(r.minWidth,r.width*e),r.height=Math.max(r.minHeight,r.height*e),r.left=t.left+(t.width-r.width)/2,r.top=t.top+(t.height-r.height)/2,r.oldLeft=r.left,r.oldTop=r.top,this.initialCropBoxData=k({},r)},limitCropBox:function(e,t){var n,r,i=this.options,o=this.containerData,a=this.canvasData,s=this.cropBoxData,l=this.limited,c=i.aspectRatio;e&&(e=Number(i.minCropBoxWidth)||0,i=Number(i.minCropBoxHeight)||0,n=l?Math.min(o.width,a.width,a.width+a.left,o.width-a.left):o.width,r=l?Math.min(o.height,a.height,a.height+a.top,o.height-a.top):o.height,e=Math.min(e,o.width),i=Math.min(i,o.height),c&&(e&&i?e<i*c?i=e/c:e=i*c:e?i=e/c:i&&(e=i*c),n<r*c?r=n/c:n=r*c),s.minWidth=Math.min(e,n),s.minHeight=Math.min(i,r),s.maxWidth=n,s.maxHeight=r),t&&(l?(s.minLeft=Math.max(0,a.left),s.minTop=Math.max(0,a.top),s.maxLeft=Math.min(o.width,a.left+a.width)-s.width,s.maxTop=Math.min(o.height,a.top+a.height)-s.height):(s.minLeft=0,s.minTop=0,s.maxLeft=o.width-s.width,s.maxTop=o.height-s.height))},renderCropBox:function(){var e=this.options,t=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,e.movable&&e.cropBoxMovable&&d(this.face,R,n.width>=t.width&&n.height>=t.height?"move":"all"),h(this.cropBox,k({width:n.width,height:n.height},y({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),g(this.element,"crop",this.getData())}},n={initPreview:function(){var e=this.element,n=this.crossOrigin,t=this.options.preview,r=n?this.crossOriginUrl:this.url,i=e.alt||"The image to preview",o=document.createElement("img");n&&(o.crossOrigin=n),o.src=r,o.alt=i,this.viewBox.appendChild(o),this.viewBoxImage=o,t&&("string"==typeof(o=t)?o=e.ownerDocument.querySelectorAll(t):t.querySelector&&(o=[t]),_(this.previews=o,function(e){var t=document.createElement("img");d(e,O,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),n&&(t.crossOrigin=n),t.src=r,t.alt=i,t.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(t)}))},resetPreview:function(){_(this.previews,function(t){var n=B(t,O),n=(h(t,{width:n.width,height:n.height}),t.innerHTML=n.html,t),t=O;if(o(n[t]))try{delete n[t]}catch(e){n[t]=void 0}else if(n.dataset)try{delete n.dataset[t]}catch(e){n.dataset[t]=void 0}else n.removeAttribute("data-".concat(s(t)))})},preview:function(){var a=this.imageData,e=this.canvasData,t=this.cropBoxData,s=t.width,l=t.height,c=a.width,u=a.height,d=t.left-e.left-a.left,p=t.top-e.top-a.top;this.cropped&&!this.disabled&&(h(this.viewBoxImage,k({width:c,height:u},y(k({translateX:-d,translateY:-p},a)))),_(this.previews,function(e){var t=B(e,O),n=t.width,t=t.height,r=n,i=t,o=1;s&&(i=l*(o=n/s)),l&&t<i&&(r=s*(o=t/l),i=t),h(e,{width:r,height:i}),h(e.getElementsByTagName("img")[0],k({width:c*o,height:u*o},y(k({translateX:-d*o,translateY:-p*o},a))))}))}},ge={bind:function(){var e=this.element,t=this.options,n=this.cropper;c(t.cropstart)&&m(e,A,t.cropstart),c(t.cropmove)&&m(e,M,t.cropmove),c(t.cropend)&&m(e,L,t.cropend),c(t.crop)&&m(e,"crop",t.crop),c(t.zoom)&&m(e,"zoom",t.zoom),m(n,K,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&m(n,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&m(n,"dblclick",this.onDblclick=this.dblclick.bind(this)),m(e.ownerDocument,Y,this.onCropMove=this.cropMove.bind(this)),m(e.ownerDocument,Q,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&m(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,n=this.cropper;c(t.cropstart)&&l(e,A,t.cropstart),c(t.cropmove)&&l(e,M,t.cropmove),c(t.cropend)&&l(e,L,t.cropend),c(t.crop)&&l(e,"crop",t.crop),c(t.zoom)&&l(e,"zoom",t.zoom),l(n,K,this.onCropStart),t.zoomable&&t.zoomOnWheel&&l(n,"wheel",this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&l(n,"dblclick",this.onDblclick),l(e.ownerDocument,Y,this.onCropMove),l(e.ownerDocument,Q,this.onCropEnd),t.responsive&&l(window,"resize",this.onResize)}},ye={resize:function(){var e,t,n,r,i,o,a;this.disabled||(e=this.options,r=this.container,t=this.containerData,n=r.offsetWidth/t.width,r=r.offsetHeight/t.height,1!=(i=Math.abs(n-1)>Math.abs(r-1)?n:r)&&(e.restore&&(o=this.getCanvasData(),a=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(_(o,function(e,t){o[t]=e*i})),this.setCropBoxData(_(a,function(e,t){a[t]=e*i})))))},dblclick:function(){var e,t;this.disabled||"none"===this.options.dragMode||this.setDragMode((e=this.dragBox,t=$,(e.classList?e.classList.contains(t):-1<e.className.indexOf(t))?"move":"crop"))},wheel:function(e){var t=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(e.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50),e.deltaY?r=0<e.deltaY?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=0<e.detail?1:-1),this.zoom(-r*n,e)))},cropStart:function(e){var t,n=e.buttons,r=e.button;this.disabled||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(p(n)&&1!==n||p(r)&&0!==r||e.ctrlKey)||(n=this.options,t=this.pointers,e.changedTouches?_(e.changedTouches,function(e){t[e.identifier]=v(e)}):t[e.pointerId||0]=v(e),r=1<Object.keys(t).length&&n.zoomable&&n.zoomOnTouch?"zoom":B(e.target,R),J.test(r)&&!1!==g(this.element,A,{originalEvent:e,action:r})&&(e.preventDefault(),this.action=r,this.cropping=!1,"crop"===r&&(this.cropping=!0,u(this.dragBox,w))))},cropMove:function(e){var t,n=this.action;!this.disabled&&n&&(t=this.pointers,e.preventDefault(),!1!==g(this.element,M,{originalEvent:e,action:n})&&(e.changedTouches?_(e.changedTouches,function(e){k(t[e.identifier]||{},v(e,!0))}):k(t[e.pointerId||0]||{},v(e,!0)),this.change(e)))},cropEnd:function(e){var t,n;this.disabled||(t=this.action,n=this.pointers,e.changedTouches?_(e.changedTouches,function(e){delete n[e.identifier]}):delete n[e.pointerId||0],t&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,a(this.dragBox,w,this.cropped&&this.options.modal)),g(this.element,L,{originalEvent:e,action:t})))}},ve={change:function(e){function t(e){switch(e){case"e":g+S.x>C&&(S.x=C-g);break;case"w":p+S.x<v&&(S.x=v-p);break;case"n":f+S.y<x&&(S.y=x-f);break;case"s":y+S.y>b&&(S.y=b-y)}}var n,r,o,i=this.options,a=this.canvasData,s=this.containerData,l=this.cropBoxData,c=this.pointers,u=this.action,d=i.aspectRatio,p=l.left,f=l.top,h=l.width,m=l.height,g=p+h,y=f+m,v=0,x=0,C=s.width,b=s.height,$=!0,w=(!d&&e.shiftKey&&(d=h&&m?h/m:1),this.limited&&(v=l.minLeft,x=l.minTop,C=v+Math.min(s.width,a.width,a.left+a.width),b=x+Math.min(s.height,a.height,a.top+a.height)),c[Object.keys(c)[0]]),S={x:w.endX-w.startX,y:w.endY-w.startY};switch(u){case"all":p+=S.x,f+=S.y;break;case"e":if(0<=S.x&&(C<=g||d&&(f<=x||b<=y))){$=!1;break}t("e"),(h+=S.x)<0&&(u="w",p-=h=-h),d&&(f+=(l.height-(m=h/d))/2);break;case"n":if(S.y<=0&&(f<=x||d&&(p<=v||C<=g))){$=!1;break}t("n"),m-=S.y,f+=S.y,m<0&&(u="s",f-=m=-m),d&&(p+=(l.width-(h=m*d))/2);break;case"w":if(S.x<=0&&(p<=v||d&&(f<=x||b<=y))){$=!1;break}t("w"),h-=S.x,p+=S.x,h<0&&(u="e",p-=h=-h),d&&(f+=(l.height-(m=h/d))/2);break;case"s":if(0<=S.y&&(b<=y||d&&(p<=v||C<=g))){$=!1;break}t("s"),(m+=S.y)<0&&(u="n",f-=m=-m),d&&(p+=(l.width-(h=m*d))/2);break;case"ne":if(d){if(S.y<=0&&(f<=x||C<=g)){$=!1;break}t("n"),m-=S.y,f+=S.y,h=m*d}else t("n"),t("e"),!(0<=S.x)||g<C?h+=S.x:S.y<=0&&f<=x&&($=!1),(!(S.y<=0)||x<f)&&(m-=S.y,f+=S.y);h<0&&m<0?(u="sw",f-=m=-m,p-=h=-h):h<0?(u="nw",p-=h=-h):m<0&&(u="se",f-=m=-m);break;case"nw":if(d){if(S.y<=0&&(f<=x||p<=v)){$=!1;break}t("n"),m-=S.y,f+=S.y,p+=l.width-(h=m*d)}else t("n"),t("w"),!(S.x<=0)||v<p?(h-=S.x,p+=S.x):S.y<=0&&f<=x&&($=!1),(!(S.y<=0)||x<f)&&(m-=S.y,f+=S.y);h<0&&m<0?(u="se",f-=m=-m,p-=h=-h):h<0?(u="ne",p-=h=-h):m<0&&(u="sw",f-=m=-m);break;case"sw":if(d){if(S.x<=0&&(p<=v||b<=y)){$=!1;break}t("w"),h-=S.x,p+=S.x,m=h/d}else t("s"),t("w"),!(S.x<=0)||v<p?(h-=S.x,p+=S.x):0<=S.y&&b<=y&&($=!1),(!(0<=S.y)||y<b)&&(m+=S.y);h<0&&m<0?(u="ne",f-=m=-m,p-=h=-h):h<0?(u="se",p-=h=-h):m<0&&(u="nw",f-=m=-m);break;case"se":if(d){if(0<=S.x&&(C<=g||b<=y)){$=!1;break}t("e"),m=(h+=S.x)/d}else t("s"),t("e"),!(0<=S.x)||g<C?h+=S.x:0<=S.y&&b<=y&&($=!1),(!(0<=S.y)||y<b)&&(m+=S.y);h<0&&m<0?(u="nw",f-=m=-m,p-=h=-h):h<0?(u="sw",p-=h=-h):m<0&&(u="ne",f-=m=-m);break;case"move":this.move(S.x,S.y),$=!1;break;case"zoom":this.zoom((r=P({},n=c),o=0,_(n,function(i,e){delete r[e],_(r,function(e){var t=Math.abs(i.startX-e.startX),n=Math.abs(i.startY-e.startY),r=Math.abs(i.endX-e.endX),e=Math.abs(i.endY-e.endY),t=Math.sqrt(t*t+n*n),n=(Math.sqrt(r*r+e*e)-t)/t;Math.abs(n)>Math.abs(o)&&(o=n)})}),o),e),$=!1;break;case"crop":if(!S.x||!S.y){$=!1;break}n=U(this.cropper),p=w.startX-n.left,f=w.startY-n.top,h=l.minWidth,m=l.minHeight,0<S.x?u=0<S.y?"se":"ne":S.x<0&&(p-=h,u=0<S.y?"sw":"nw"),S.y<0&&(f-=m),this.cropped||(T(this.cropBox,E),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}$&&(l.width=h,l.height=m,l.left=p,l.top=f,this.action=u,this.renderCropBox()),_(c,function(e){e.startX=e.endX,e.startY=e.endY})}},xe={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&u(this.dragBox,w),T(this.cropBox,E),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=k({},this.initialImageData),this.canvasData=k({},this.initialCanvasData),this.cropBoxData=k({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(k(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),T(this.dragBox,w),u(this.cropBox,E)),this},replace:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,_(this.previews,function(e){e.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,T(this.cropper,W)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,u(this.cropper,W)),this},destroy:function(){var e=this.element;return e[b]&&(e[b]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate()),this},move:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=n.left,n=n.top;return this.moveTo(i(e)?e:r+Number(e),i(t)?t:n+Number(t))},moveTo:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(p(e)&&(n.left=e,r=!0),p(t)&&(n.top=t,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(e,t){var n=this.canvasData;return e=Number(e),this.zoomTo(n.width*(e=e<0?1/(1-e):1+e)/n.naturalWidth,null,t)},zoomTo:function(e,t,n){var r,i,o,a=this.options,s=this.canvasData,l=s.width,c=s.height,u=s.naturalWidth,d=s.naturalHeight;if(0<=(e=Number(e))&&this.ready&&!this.disabled&&a.zoomable){a=u*e,d=d*e;if(!1===g(this.element,"zoom",{ratio:e,oldRatio:l/u,originalEvent:n}))return this;n?(e=this.pointers,u=U(this.cropper),e=e&&Object.keys(e).length?(o=i=r=0,_(e,function(e){var t=e.startX,e=e.startY;r+=t,i+=e,o+=1}),{pageX:r/=o,pageY:i/=o}):{pageX:n.pageX,pageY:n.pageY},s.left-=(a-l)*((e.pageX-u.left-s.left)/l),s.top-=(d-c)*((e.pageY-u.top-s.top)/c)):f(t)&&p(t.x)&&p(t.y)?(s.left-=(a-l)*((t.x-s.left)/l),s.top-=(d-c)*((t.y-s.top)/c)):(s.left-=(a-l)/2,s.top-=(d-c)/2),s.width=a,s.height=d,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return p(e=Number(e))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,p(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(p(t)?t:1,e)},scale:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(p(e)&&(n.scaleX=e,r=!0),p(t)&&(n.scaleY=t,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var n,r,e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=this.options,i=this.imageData,o=this.canvasData,a=this.cropBoxData;return this.ready&&this.cropped?(n={x:a.left-o.left,y:a.top-o.top,width:a.width,height:a.height},r=i.width/i.naturalWidth,_(n,function(e,t){n[t]=e/r}),e&&(o=Math.round(n.y+n.height),a=Math.round(n.x+n.width),n.x=Math.round(n.x),n.y=Math.round(n.y),n.width=a-n.x,n.height=o-n.y)):n={x:0,y:0,width:0,height:0},t.rotatable&&(n.rotate=i.rotate||0),t.scalable&&(n.scaleX=i.scaleX||1,n.scaleY=i.scaleY||1),n},setData:function(e){var t,n=this.options,r=this.imageData,i=this.canvasData,o={};return this.ready&&!this.disabled&&f(e)&&(t=!1,n.rotatable&&p(e.rotate)&&e.rotate!==r.rotate&&(r.rotate=e.rotate,t=!0),n.scalable&&(p(e.scaleX)&&e.scaleX!==r.scaleX&&(r.scaleX=e.scaleX,t=!0),p(e.scaleY)&&e.scaleY!==r.scaleY&&(r.scaleY=e.scaleY,t=!0)),t&&this.renderCanvas(!0,!0),n=r.width/r.naturalWidth,p(e.x)&&(o.left=e.x*n+i.left),p(e.y)&&(o.top=e.y*n+i.top),p(e.width)&&(o.width=e.width*n),p(e.height)&&(o.height=e.height*n),this.setCropBoxData(o)),this},getContainerData:function(){return this.ready?k({},this.containerData):{}},getImageData:function(){return this.sized?k({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,n={};return this.ready&&_(["left","top","width","height","naturalWidth","naturalHeight"],function(e){n[e]=t[e]}),n},setCanvasData:function(e){var t=this.canvasData,n=t.aspectRatio;return this.ready&&!this.disabled&&f(e)&&(p(e.left)&&(t.left=e.left),p(e.top)&&(t.top=e.top),p(e.width)?(t.width=e.width,t.height=e.width/n):p(e.height)&&(t.height=e.height,t.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return(e=this.ready&&this.cropped?{left:t.left,top:t.top,width:t.width,height:t.height}:e)||{}},setCropBoxData:function(e){var t,n,r=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&f(e)&&(p(e.left)&&(r.left=e.left),p(e.top)&&(r.top=e.top),p(e.width)&&e.width!==r.width&&(t=!0,r.width=e.width),p(e.height)&&e.height!==r.height&&(n=!0,r.height=e.height),i&&(t?r.height=r.width/i:n&&(r.width=r.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,n=(S=this.image,b=this.imageData,p=t,c=e,_=b.aspectRatio,u=b.naturalWidth,f=b.naturalHeight,x=void 0===(x=b.rotate)?0:x,C=void 0===(C=b.scaleX)?1:C,b=void 0===(b=b.scaleY)?1:b,d=p.aspectRatio,y=p.naturalWidth,p=p.naturalHeight,g=void 0===(g=c.fillColor)?"transparent":g,$=void 0===($=c.imageSmoothingEnabled)||$,w=void 0===(w=c.imageSmoothingQuality)?"low":w,h=void 0===(h=c.maxWidth)?1/0:h,m=void 0===(m=c.maxHeight)?1/0:m,n=void 0===(n=c.minWidth)?0:n,c=void 0===(c=c.minHeight)?0:c,E=document.createElement("canvas"),T=E.getContext("2d"),v=I({aspectRatio:d,width:h,height:m}),d=I({aspectRatio:d,width:n,height:c},"cover"),y=Math.min(v.width,Math.max(d.width,y)),v=Math.min(v.height,Math.max(d.height,p)),d=I({aspectRatio:_,width:h,height:m}),p=I({aspectRatio:_,width:n,height:c},"cover"),h=Math.min(d.width,Math.max(p.width,u)),m=Math.min(d.height,Math.max(p.height,f)),_=[-h/2,-m/2,h,m],E.width=j(y),E.height=j(v),T.fillStyle=g,T.fillRect(0,0,y,v),T.save(),T.translate(y/2,v/2),T.rotate(x*Math.PI/180),T.scale(C,b),T.imageSmoothingEnabled=$,T.imageSmoothingQuality=w,T.drawImage.apply(T,[S].concat(H(_.map(function(e){return Math.floor(j(e))})))),T.restore(),E);if(!this.cropped)return n;var r,i,o,a,s,l,c=this.getData(),u=c.x,d=c.y,p=c.width,f=c.height,h=n.width/Math.floor(t.naturalWidth),m=(1!=h&&(u*=h,d*=h,p*=h,f*=h),p/f),g=I({aspectRatio:m,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),y=I({aspectRatio:m,width:e.minWidth||0,height:e.minHeight||0},"cover"),v=I({aspectRatio:m,width:e.width||(1!=h?n.width:p),height:e.height||(1!=h?n.height:f)}),x=v.width,C=v.height,x=Math.min(g.width,Math.max(y.width,x)),C=Math.min(g.height,Math.max(y.height,C)),b=document.createElement("canvas"),$=b.getContext("2d"),w=(b.width=j(x),b.height=j(C),$.fillStyle=e.fillColor||"transparent",$.fillRect(0,0,x,C),e.imageSmoothingEnabled),S=e.imageSmoothingQuality,_=($.imageSmoothingEnabled=void 0===w||w,S&&($.imageSmoothingQuality=S),n.width),T=n.height,E=u,c=d,t=(E<=-p||_<E?s=o=r=E=0:E<=0?(o=-E,E=0,s=r=Math.min(_,p+E)):E<=_&&(o=0,s=r=Math.min(p,_-E)),r<=0||c<=-f||T<c?l=a=i=c=0:c<=0?(a=-c,c=0,l=i=Math.min(T,f+c)):c<=T&&(a=0,l=i=Math.min(f,T-c)),[E,c,r,i]);return 0<s&&0<l&&t.push(o*(m=x/p),a*m,s*m,l*m),$.drawImage.apply($,[n].concat(H(t.map(function(e){return Math.floor(j(e))})))),b},setAspectRatio:function(e){var t=this.options;return this.disabled||i(e)||(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t,n,r=this.options,i=this.dragBox,o=this.face;return this.ready&&!this.disabled&&(n=r.movable&&"move"===e,r.dragMode=e=(t="crop"===e)||n?e:"none",d(i,R,e),a(i,$,t),a(i,S,n),r.cropBoxMovable||(d(o,R,e),a(o,$,t),a(o,S,n))),this}},Ce=C.Cropper,be=function(){function i(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this,r=i;if(!(n instanceof r))throw new TypeError("Cannot call a class as a function");if(!e||!ne.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=k({},re,f(t)&&t),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var e=i,t=[{key:"init",value:function(){var e,t=this.element,n=t.tagName.toLowerCase();if(!t[b]){if(t[b]=this,"img"===n){if(this.isImg=!0,e=t.getAttribute("src")||"",!(this.originalUrl=e))return;e=t.src}else"canvas"===n&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t,n,r,i,o,a,s=this;e&&(this.url=e,this.imageData={},t=this.element,(n=this.options).rotatable||n.scalable||(n.checkOrientation=!1),n.checkOrientation&&window.ArrayBuffer?ee.test(e)?te.test(e)?this.read((a=(a=e).replace(me,""),r=atob(a),a=new ArrayBuffer(r.length),_(i=new Uint8Array(a),function(e,t){i[t]=r.charCodeAt(t)}),a)):this.clone():(o=new XMLHttpRequest,a=this.clone.bind(this),this.reloading=!0,(this.xhr=o).onabort=a,o.onerror=a,o.ontimeout=a,o.onprogress=function(){o.getResponseHeader("content-type")!==X&&o.abort()},o.onload=function(){s.read(o.response)},o.onloadend=function(){s.reloading=!1,s.xhr=null},n.checkCrossOrigin&&Z(e)&&t.crossOrigin&&(e=z(e)),o.open("GET",e,!0),o.responseType="arraybuffer",o.withCredentials="use-credentials"===t.crossOrigin,o.send()):this.clone())}},{key:"read",value:function(e){var t=this.options,n=this.imageData,r=function(e){var t,n,r,i,o,a,s=new DataView(e);try{if(255===s.getUint8(0)&&216===s.getUint8(1))for(var l=s.byteLength,c=2;c+1<l;){if(255===s.getUint8(c)&&225===s.getUint8(c+1)){r=c;break}c+=1}var u,d,p;if(r&&(u=r+10,"Exif"===function(e,t,n){var r="";n+=t;for(var i=t;i<n;i+=1)r+=he(e.getUint8(i));return r}(s,r+4,4)&&(d=s.getUint16(u),!(n=18761===d)&&19789!==d||42===s.getUint16(u+2,n)&&8<=(p=s.getUint32(u+4,n))&&(i=u+p))),i){var f=s.getUint16(i,n);for(a=0;a<f;a+=1)if(o=i+12*a+2,274===s.getUint16(o,n)){o+=8,t=s.getUint16(o,n),s.setUint16(o,1,n);break}}}catch(e){t=1}return t}(e),i=0,o=1,a=1;1<r&&(this.url=function(e,t){var n=[],r=new Uint8Array(e);for(;0<r.length;)n.push(he.apply(null,F(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}(e,X),i=(e=function(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90}return{rotate:t,scaleX:n,scaleY:r}}(r)).rotate,o=e.scaleX,a=e.scaleY),t.rotatable&&(n.rotate=i),t.scalable&&(n.scaleX=o,n.scaleY=a),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,n=e.crossOrigin,r=t,i=(this.options.checkCrossOrigin&&Z(t)&&(n=n||"anonymous",r=z(t)),this.crossOrigin=n,this.crossOriginUrl=r,document.createElement("img"));n&&(i.crossOrigin=n),i.src=r||t,i.alt=e.alt||"The image to crop",(this.image=i).onload=this.start.bind(this),i.onerror=this.stop.bind(this),u(i,G),e.parentNode.insertBefore(i,e.nextSibling)}},{key:"start",value:function(){function e(e,t){k(r.imageData,{naturalWidth:e,naturalHeight:t,aspectRatio:e/t}),r.initialImageData=k({},r.imageData),r.sizing=!1,r.sized=!0,r.build()}var t,n,r=this,i=this.image,o=(i.onload=null,i.onerror=null,this.sizing=!0,C.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(C.navigator.userAgent));i.naturalWidth&&!o?e(i.naturalWidth,i.naturalHeight):(t=document.createElement("img"),n=document.body||document.documentElement,(this.sizingImage=t).onload=function(){e(t.width,t.height),o||n.removeChild(t)},t.src=i.src,o||(t.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",n.appendChild(t)))}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){var e,t,n,r,i,o,a,s,l;this.sized&&!this.ready&&(e=this.element,t=this.options,n=this.image,r=e.parentNode,(i=document.createElement("div")).innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',o=(i=i.querySelector(".".concat(b,"-container"))).querySelector(".".concat(b,"-canvas")),a=i.querySelector(".".concat(b,"-drag-box")),l=(s=i.querySelector(".".concat(b,"-crop-box"))).querySelector(".".concat(b,"-face")),this.container=r,this.cropper=i,this.canvas=o,this.dragBox=a,this.cropBox=s,this.viewBox=i.querySelector(".".concat(b,"-view-box")),this.face=l,o.appendChild(n),u(e,E),r.insertBefore(i,e.nextSibling),this.isImg||T(n,G),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,u(s,E),t.guides||u(s.getElementsByClassName("".concat(b,"-dashed")),E),t.center||u(s.getElementsByClassName("".concat(b,"-center")),E),t.background&&u(i,"".concat(b,"-bg")),t.highlight||u(l,q),t.cropBoxMovable&&(u(l,S),d(l,R,"all")),t.cropBoxResizable||(u(s.getElementsByClassName("".concat(b,"-line")),E),u(s.getElementsByClassName("".concat(b,"-point")),E)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),c(t.ready)&&m(e,"ready",t.ready,{once:!0}),g(e,"ready"))}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),T(this.element,E))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],n=[{key:"noConflict",value:function(){return window.Cropper=Ce,i}},{key:"setDefaults",value:function(e){k(re,f(e)&&e)}}];return t&&V(e.prototype,t),n&&V(e,n),i}(),k(be.prototype,e,n,ge,ye,ve,xe),be)}(),cropper.exports),__assign=function(){return(__assign=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)};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}var AuthStatus,applyDefaultOptions=function(e,t){var n=(t=void 0===t?{}:t).enable,r=t.scaleX,r=void 0===r?1:r,i=t.scaleY,i=void 0===i?1:i,o=t.zoomTo,o=void 0===o?0:o,t=t.rotateTo;void 0===n||n?e.enable():e.disable(),e.scaleX(r),e.scaleY(i),void 0!==t&&e.rotateTo(t),0<o&&e.zoomTo(o)},useCombinedRefs=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=react.exports.useRef(null);return React$1.useEffect(function(){e.forEach(function(e){e&&("function"==typeof e?e(n.current):e.current=n.current)})},[e]),n},ReactCropper=React$1.forwardRef(function(e,t){var e=__rest$1(e,[]),n=e.dragMode,r=void 0===n?"crop":n,i=e.src,n=e.style,o=e.className,a=e.crossOrigin,s=e.scaleX,l=e.scaleY,c=e.enable,u=e.zoomTo,d=e.rotateTo,p=e.alt,p=void 0===p?"picture":p,f=e.ready,h=e.onInitialized,m=__rest$1(e,["dragMode","src","style","className","crossOrigin","scaleX","scaleY","enable","zoomTo","rotateTo","alt","ready","onInitialized"]),g={scaleY:l,scaleX:s,enable:c,zoomTo:u,rotateTo:d},l=react.exports.useRef(null),y=useCombinedRefs(t,l);return react.exports.useEffect(function(){var e;null!=(e=y.current)&&e.cropper&&"number"==typeof u&&y.current.cropper.zoomTo(u)},[e.zoomTo]),react.exports.useEffect(function(){var e;null!=(e=y.current)&&e.cropper&&void 0!==i&&y.current.cropper.reset().clear().replace(i)},[i]),react.exports.useEffect(function(){var e;return null!==y.current&&(e=new Cropper(y.current,__assign(__assign({dragMode:r},m),{ready:function(e){null!==e.currentTarget&&applyDefaultOptions(e.currentTarget.cropper,g),f&&f(e)}})),h&&h(e)),function(){var e;null!=(e=null==(e=y.current)?void 0:e.cropper)&&e.destroy()}},[y]),React$1.createElement("div",{style:n,className:o},React$1.createElement("img",{crossOrigin:a,src:i,alt:p,style:{opacity:0,maxWidth:"100%"},ref:y}))});!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const namespace$3="users",userSelector$1=e=>{return null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$3]},userAuthStatusSelector=e=>{return null==(e=null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$3])?void 0:e.authStatus},GET_CURRENT_USER$1=`os-app-bar-panel/${namespace$3}/get current user`,GET_CURRENT_USER_SUCCESS$1=`os-app-bar-panel/${namespace$3}/get current user success`,RESET_BIOMETRIC=`os-app-bar-panel/${namespace$3}/reset biometric`,RESET_PASSWORD=`os-app-bar-panel/${namespace$3}/reset password`,RESET_PASSWORD_FAIL=`os-app-bar-panel/${namespace$3}/reset password fail`,UPDATE_PROFILE=`os-app-bar-panel/${namespace$3}/update profile`,UPDATE_PROFILE_FAIL=`os-app-bar-panel/${namespace$3}/update profile fail`,UPLOAD__AVATAR=`os-app-bar-panel/${namespace$3}/upload avatar`,UPDATE__AVATAR=`os-app-bar-panel/${namespace$3}/update avatar`,LOGOUT_USER=`os-app-bar-panel/${namespace$3}/logout`,LOGOUT_SUCCESS=`os-app-bar-panel/${namespace$3}/logout success`,LOGOUT_FAIL=`os-app-bar-panel/${namespace$3}/logout fail`,UPLOADING_AVATAR=`os-app-bar-panel/${namespace$3}/uploading`;function getCurrentUser$1(){return{type:GET_CURRENT_USER$1}}function getCurrentUserSuccess$1(e){return{type:GET_CURRENT_USER_SUCCESS$1,payload:e}}function resetBiometric(){return{type:RESET_BIOMETRIC}}function resetPassword(e){return{type:RESET_PASSWORD,payload:e}}function resetPasswordFail(){return{type:RESET_PASSWORD_FAIL}}function updateProfile(e){return{type:UPDATE_PROFILE,payload:e}}function updateProfileFail(){return{type:UPDATE_PROFILE_FAIL}}function uploadAvatar(e){return{type:UPLOAD__AVATAR,payload:e}}function updateAvatar(e){return{type:UPDATE__AVATAR,payload:e}}function logoutUserSuccess(){return{type:LOGOUT_SUCCESS}}function logoutUserFail(){return{type:LOGOUT_FAIL}}function uploadingAvatar(e){return{type:UPLOADING_AVATAR,payload:e}}!function(e){e.AUTHENTICATED="authenticated",e.LOGGING_OUT="logging_out",e.LOGGED_OUT="logged_out"}(AuthStatus=AuthStatus||{});const initialState$3={currentUser:{},status:"idle",authStatus:AuthStatus.AUTHENTICATED};function userReducer$1(e,t){return void 0===e?initialState$3:t.type===GET_CURRENT_USER_SUCCESS$1?Object.assign(Object.assign({},e),{currentUser:t.payload,status:"success"}):t.type===UPLOADING_AVATAR?Object.assign(Object.assign({},e),{loading:t.payload}):t.type===LOGOUT_USER?Object.assign(Object.assign({},e),{authStatus:AuthStatus.LOGGING_OUT}):t.type===LOGOUT_SUCCESS?Object.assign(Object.assign({},e),{authStatus:AuthStatus.LOGGED_OUT}):t.type===LOGOUT_FAIL?Object.assign(Object.assign({},e),{authStatus:AuthStatus.AUTHENTICATED}):e}var luxon={};function _defineProperties(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(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _isNativeReflectConstruct(){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 _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);t=new(Function.bind.apply(e,r));return n&&_setPrototypeOf(t,n.prototype),t}).apply(null,arguments)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _wrapNativeSuper(e){var n="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(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(e,arguments,_getPrototypeOf(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(t,e)})(e)}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};for(var n,r={},i=Object.keys(e),o=0;o<i.length;o++)n=i[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(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 _createForOfIteratorHelperLoose(e){var t=0;if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator])return(t=e[Symbol.iterator]()).next.bind(t);if(Array.isArray(e)||(e=_unsupportedIterableToArray(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(luxon,"__esModule",{value:!0});var LuxonError=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t}(_wrapNativeSuper(Error)),InvalidDateTimeError=function(t){function e(e){return t.call(this,"Invalid DateTime: "+e.toMessage())||this}return _inheritsLoose(e,t),e}(LuxonError),InvalidIntervalError=function(t){function e(e){return t.call(this,"Invalid Interval: "+e.toMessage())||this}return _inheritsLoose(e,t),e}(LuxonError),InvalidDurationError=function(t){function e(e){return t.call(this,"Invalid Duration: "+e.toMessage())||this}return _inheritsLoose(e,t),e}(LuxonError),ConflictingSpecificationError=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t}(LuxonError),InvalidUnitError=function(t){function e(e){return t.call(this,"Invalid unit "+e)||this}return _inheritsLoose(e,t),e}(LuxonError),InvalidArgumentError=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t}(LuxonError),ZoneIsAbstractError=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return _inheritsLoose(t,e),t}(LuxonError),n="numeric",s$1="short",l$1="long",DATE_SHORT={year:n,month:n,day:n},DATE_MED={year:n,month:s$1,day:n},DATE_MED_WITH_WEEKDAY={year:n,month:s$1,day:n,weekday:s$1},DATE_FULL={year:n,month:l$1,day:n},DATE_HUGE={year:n,month:l$1,day:n,weekday:l$1},TIME_SIMPLE={hour:n,minute:n},TIME_WITH_SECONDS={hour:n,minute:n,second:n},TIME_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,timeZoneName:s$1},TIME_WITH_LONG_OFFSET={hour:n,minute:n,second:n,timeZoneName:l$1},TIME_24_SIMPLE={hour:n,minute:n,hour12:!1},TIME_24_WITH_SECONDS={hour:n,minute:n,second:n,hour12:!1},TIME_24_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,hour12:!1,timeZoneName:s$1},TIME_24_WITH_LONG_OFFSET={hour:n,minute:n,second:n,hour12:!1,timeZoneName:l$1},DATETIME_SHORT={year:n,month:n,day:n,hour:n,minute:n},DATETIME_SHORT_WITH_SECONDS={year:n,month:n,day:n,hour:n,minute:n,second:n},DATETIME_MED={year:n,month:s$1,day:n,hour:n,minute:n},DATETIME_MED_WITH_SECONDS={year:n,month:s$1,day:n,hour:n,minute:n,second:n},DATETIME_MED_WITH_WEEKDAY={year:n,month:s$1,day:n,weekday:s$1,hour:n,minute:n},DATETIME_FULL={year:n,month:l$1,day:n,hour:n,minute:n,timeZoneName:s$1},DATETIME_FULL_WITH_SECONDS={year:n,month:l$1,day:n,hour:n,minute:n,second:n,timeZoneName:s$1},DATETIME_HUGE={year:n,month:l$1,day:n,weekday:l$1,hour:n,minute:n,timeZoneName:l$1},DATETIME_HUGE_WITH_SECONDS={year:n,month:l$1,day:n,weekday:l$1,hour:n,minute:n,second:n,timeZoneName:l$1};function isUndefined(e){return void 0===e}function isNumber(e){return"number"==typeof e}function isInteger(e){return"number"==typeof e&&e%1==0}function isString(e){return"string"==typeof e}function isDate(e){return"[object Date]"===Object.prototype.toString.call(e)}function hasIntl(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function hasFormatToParts(){return!isUndefined(Intl.DateTimeFormat.prototype.formatToParts)}function hasRelative(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,n,r){if(0!==e.length)return e.reduce(function(e,t){t=[n(t),t];return e&&r(e[0],t[0])===e[0]?e:t},null)[1]}function pick(n,e){return e.reduce(function(e,t){return e[t]=n[t],e},{})}function hasOwnProperty$1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function integerBetween(e,t,n){return isInteger(e)&&t<=e&&e<=n}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t){void 0===t&&(t=2);var n=e<0?"-":"",e=n?-1*e:e,t=e.toString().length<t?("0".repeat(t)+e).slice(-t):e.toString();return n+t}function parseInteger(e){if(!isUndefined(e)&&null!==e&&""!==e)return parseInt(e,10)}function parseMillis(e){if(!isUndefined(e)&&null!==e&&""!==e)return e=1e3*parseFloat("0."+e),Math.floor(e)}function roundTo(e,t,n){void 0===n&&(n=!1);t=Math.pow(10,t);return(n?Math.trunc:Math.round)(e*t)/t}function isLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){var n=floorMod(t-1,12)+1;return 2===n?isLeapYear(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function objToLocalTS(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&0<=e.year&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function weeksInWeekYear(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,e=e-1,e=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7;return 4==t||3==e?53:52}function untruncateYear(e){return 99<e?e:60<e?1900+e:2e3+e}function parseZoneInfo(e,t,n,r){void 0===r&&(r=null);var i,e=new Date(e),o={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"},r=(r&&(o.timeZone=r),Object.assign({timeZoneName:t},o)),t=hasIntl();return t&&hasFormatToParts()?(i=new Intl.DateTimeFormat(n,r).formatToParts(e).find(function(e){return"timezonename"===e.type.toLowerCase()}))?i.value:null:t?(i=new Intl.DateTimeFormat(n,o).format(e),new Intl.DateTimeFormat(n,r).format(e).substring(i.length).replace(/^[, \u200e]+/,"")):null}function signedOffset(e,t){e=parseInt(e,10),Number.isNaN(e)&&(e=0),t=parseInt(t,10)||0;return 60*e+(e<0||Object.is(e,-0)?-t:t)}function asNumber(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new InvalidArgumentError("Invalid unit value "+e);return t}function normalizeObject(e,t,n){var r,i,o={};for(r in e)!hasOwnProperty$1(e,r)||0<=n.indexOf(r)||null!=(i=e[r])&&(o[t(r)]=asNumber(i));return o}function formatOffset(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=0<=e?"+":"-";switch(t){case"short":return i+padStart(n,2)+":"+padStart(r,2);case"narrow":return i+n+(0<r?":"+r:"");case"techie":return i+padStart(n,2)+padStart(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function timeObject(e){return pick(e,["hour","minute","second","millisecond"])}var ianaRegex=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}var monthsLong=["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthsNarrow=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[].concat(monthsNarrow);case"short":return[].concat(monthsShort);case"long":return[].concat(monthsLong);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var weekdaysLong=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],weekdaysShort=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],weekdaysNarrow=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[].concat(weekdaysNarrow);case"short":return[].concat(weekdaysShort);case"long":return[].concat(weekdaysLong);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var meridiems=["AM","PM"],erasLong=["Before Christ","Anno Domini"],erasShort=["BC","AD"],erasNarrow=["B","A"];function eras(e){switch(e){case"narrow":return[].concat(erasNarrow);case"short":return[].concat(erasShort);case"long":return[].concat(erasLong);default:return null}}function meridiemForDateTime(e){return meridiems[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){var a="days"===e;switch(t){case 1:return a?"tomorrow":"next "+i[e][0];case-1:return a?"yesterday":"last "+i[e][0];case 0:return a?"today":"this "+i[e][0]}}var n=Object.is(t,-0)||t<0,o=Math.abs(t),t=1===o,s=i[e],r=r?!t&&s[2]||s[1]:t?i[e][0]:e;return n?o+" "+r+" ago":"in "+o+" "+r}function formatString(e){var t="EEEE, LLLL d, yyyy, h:mm a";switch(stringify(pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case stringify(DATE_SHORT):return"M/d/yyyy";case stringify(DATE_MED):return"LLL d, yyyy";case stringify(DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(DATE_FULL):return"LLLL d, yyyy";case stringify(DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(TIME_SIMPLE):return"h:mm a";case stringify(TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(TIME_WITH_SHORT_OFFSET):case stringify(TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(TIME_24_SIMPLE):return"HH:mm";case stringify(TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(TIME_24_WITH_SHORT_OFFSET):case stringify(TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(DATETIME_HUGE):return t;case stringify(DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return t}}function stringifyTokens(e,t){for(var n="",r=_createForOfIteratorHelperLoose(e);!(i=r()).done;){var i=i.value;i.literal?n+=i.val:n+=t(i.val)}return n}var _macroTokenToFormatOpts={D:DATE_SHORT,DD:DATE_MED,DDD:DATE_FULL,DDDD:DATE_HUGE,t:TIME_SIMPLE,tt:TIME_WITH_SECONDS,ttt:TIME_WITH_SHORT_OFFSET,tttt:TIME_WITH_LONG_OFFSET,T:TIME_24_SIMPLE,TT:TIME_24_WITH_SECONDS,TTT:TIME_24_WITH_SHORT_OFFSET,TTTT:TIME_24_WITH_LONG_OFFSET,f:DATETIME_SHORT,ff:DATETIME_MED,fff:DATETIME_FULL,ffff:DATETIME_HUGE,F:DATETIME_SHORT_WITH_SECONDS,FF:DATETIME_MED_WITH_SECONDS,FFF:DATETIME_FULL_WITH_SECONDS,FFFF:DATETIME_HUGE_WITH_SECONDS},Formatter=function(){function p(e,t){this.opts=t,this.loc=e,this.systemLoc=null}p.create=function(e,t){return new p(e,t=void 0===t?{}:t)},p.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],o=0;o<e.length;o++){var a=e.charAt(o);"'"===a?(0<n.length&&i.push({literal:r,val:n}),t=null,n="",r=!r):r||a===t?n+=a:(0<n.length&&i.push({literal:!1,val:n}),t=n=a)}return 0<n.length&&i.push({literal:r,val:n}),i},p.macroTokenToFormatOpts=function(e){return _macroTokenToFormatOpts[e]};var e=p.prototype;return e.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,Object.assign({},this.opts,t)).format()},e.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).format()},e.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).formatToParts()},e.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).resolvedOptions()},e.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return padStart(e,t);var n=Object.assign({},this.opts);return 0<t&&(n.padTo=t),this.loc.numberFormatter(n).format(e)},e.formatDateTimeFromString=function(n,e){var r=this,i="en"===this.loc.listingMode(),t=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&hasFormatToParts(),o=function(e,t){return r.loc.extract(n,e,t)},a=function(e){return n.isOffsetFixed&&0===n.offset&&e.allowZ?"Z":n.isValid?n.zone.formatOffset(n.ts,e.format):""},s=function(){return i?meridiemForDateTime(n):o({hour:"numeric",hour12:!0},"dayperiod")},l=function(e,t){return i?monthForDateTime(n,e):o(t?{month:e}:{month:e,day:"numeric"},"month")},c=function(e,t){return i?weekdayForDateTime(n,e):o(t?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},u=function(e){var t=p.macroTokenToFormatOpts(e);return t?r.formatWithSystemDefault(n,t):e},d=function(e){return i?eraForDateTime(n,e):o({era:e},"era")};return stringifyTokens(p.parseFormat(e),function(e){switch(e){case"S":return r.num(n.millisecond);case"u":case"SSS":return r.num(n.millisecond,3);case"s":return r.num(n.second);case"ss":return r.num(n.second,2);case"m":return r.num(n.minute);case"mm":return r.num(n.minute,2);case"h":return r.num(n.hour%12==0?12:n.hour%12);case"hh":return r.num(n.hour%12==0?12:n.hour%12,2);case"H":return r.num(n.hour);case"HH":return r.num(n.hour,2);case"Z":return a({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return a({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return n.zone.offsetName(n.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return n.zone.offsetName(n.ts,{format:"long",locale:r.loc.locale});case"z":return n.zoneName;case"a":return s();case"d":return t?o({day:"numeric"},"day"):r.num(n.day);case"dd":return t?o({day:"2-digit"},"day"):r.num(n.day,2);case"c":return r.num(n.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return r.num(n.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return t?o({month:"numeric",day:"numeric"},"month"):r.num(n.month);case"LL":return t?o({month:"2-digit",day:"numeric"},"month"):r.num(n.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return t?o({month:"numeric"},"month"):r.num(n.month);case"MM":return t?o({month:"2-digit"},"month"):r.num(n.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return t?o({year:"numeric"},"year"):r.num(n.year);case"yy":return t?o({year:"2-digit"},"year"):r.num(n.year.toString().slice(-2),2);case"yyyy":return t?o({year:"numeric"},"year"):r.num(n.year,4);case"yyyyyy":return t?o({year:"numeric"},"year"):r.num(n.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return r.num(n.weekYear.toString().slice(-2),2);case"kkkk":return r.num(n.weekYear,4);case"W":return r.num(n.weekNumber);case"WW":return r.num(n.weekNumber,2);case"o":return r.num(n.ordinal);case"ooo":return r.num(n.ordinal,3);case"q":return r.num(n.quarter);case"qq":return r.num(n.quarter,2);case"X":return r.num(Math.floor(n.ts/1e3));case"x":return r.num(n.ts);default:return u(e)}})},e.formatDurationFromString=function(e,t){var n,r=this,i=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},t=p.parseFormat(t),o=t.reduce(function(e,t){var n=t.literal,t=t.val;return n?e:e.concat(t)},[]),e=e.shiftTo.apply(e,o.map(i).filter(function(e){return e}));return stringifyTokens(t,(n=e,function(e){var t=i(e);return t?r.num(n.get(t),e.length):e}))},p}(),Invalid=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Zone=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new ZoneIsAbstractError},t.formatOffset=function(e,t){throw new ZoneIsAbstractError},t.offset=function(e){throw new ZoneIsAbstractError},t.equals=function(e){throw new ZoneIsAbstractError},_createClass(e,[{key:"type",get:function(){throw new ZoneIsAbstractError}},{key:"name",get:function(){throw new ZoneIsAbstractError}},{key:"universal",get:function(){throw new ZoneIsAbstractError}},{key:"isValid",get:function(){throw new ZoneIsAbstractError}}]),e}(),singleton=null,LocalZone=function(e){function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var n=t.prototype;return n.offsetName=function(e,t){return parseZoneInfo(e,t.format,t.locale)},n.formatOffset=function(e,t){return formatOffset(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"local"===e.type},_createClass(t,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return hasIntl()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return singleton=null===singleton?new t:singleton}}]),t}(Zone),matchingRegex=RegExp("^"+ianaRegex.source+"$"),dtfCache={};function makeDTF(e){return dtfCache[e]||(dtfCache[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),dtfCache[e]}var typeToPos={year:0,month:1,day:2,hour:3,minute:4,second:5};function hackyOffset(e,t){var e=e.format(t).replace(/\u200E/g,""),t=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e),e=t[1],n=t[2];return[t[3],e,n,t[4],t[5],t[6]]}function partsOffset(e,t){for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var o=n[i],a=o.type,o=o.value,a=typeToPos[a];isUndefined(a)||(r[a]=parseInt(o,10))}return r}var ianaZoneCache={},IANAZone=function(n){function r(e){var t=n.call(this)||this;return t.zoneName=e,t.valid=r.isValidZone(e),t}_inheritsLoose(r,n),r.create=function(e){return ianaZoneCache[e]||(ianaZoneCache[e]=new r(e)),ianaZoneCache[e]},r.resetCache=function(){ianaZoneCache={},dtfCache={}},r.isValidSpecifier=function(e){return!(!e||!e.match(matchingRegex))},r.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},r.parseGMTOffset=function(e){if(e){e=e.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(e)return-60*parseInt(e[1])}return null};var e=r.prototype;return e.offsetName=function(e,t){return parseZoneInfo(e,t.format,t.locale,this.name)},e.formatOffset=function(e,t){return formatOffset(this.offset(e),t)},e.offset=function(e){e=new Date(e);if(isNaN(e))return NaN;var t=makeDTF(this.name),t=(t.formatToParts?partsOffset:hackyOffset)(t,e),n=t[0],r=t[1],i=t[2],o=t[3],e=+e,a=e%1e3;return(objToLocalTS({year:n,month:r,day:i,hour:24===o?0:o,minute:t[4],second:t[5],millisecond:0})-(e-=0<=a?a:1e3+a))/6e4},e.equals=function(e){return"iana"===e.type&&e.name===this.name},_createClass(r,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),r}(Zone),singleton$1=null,FixedOffsetZone=function(n){function t(e){var t=n.call(this)||this;return t.fixed=e,t}_inheritsLoose(t,n),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){e=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new t(signedOffset(e[1],e[2]))}return null},_createClass(t,null,[{key:"utcInstance",get:function(){return singleton$1=null===singleton$1?new t(0):singleton$1}}]);var e=t.prototype;return e.offsetName=function(){return this.name},e.formatOffset=function(e,t){return formatOffset(this.fixed,t)},e.offset=function(){return this.fixed},e.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},_createClass(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+formatOffset(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),t}(Zone),InvalidZone=function(n){function e(e){var t=n.call(this)||this;return t.zoneName=e,t}_inheritsLoose(e,n);var t=e.prototype;return t.offsetName=function(){return null},t.formatOffset=function(){return""},t.offset=function(){return NaN},t.equals=function(){return!1},_createClass(e,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),e}(Zone);function normalizeZone(e,t){var n;return isUndefined(e)||null===e?t:e instanceof Zone?e:isString(e)?"local"===(n=e.toLowerCase())?t:"utc"===n||"gmt"===n?FixedOffsetZone.utcInstance:null!=(t=IANAZone.parseGMTOffset(e))?FixedOffsetZone.instance(t):IANAZone.isValidSpecifier(n)?IANAZone.create(e):FixedOffsetZone.parseSpecifier(n)||new InvalidZone(e):isNumber(e)?FixedOffsetZone.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new InvalidZone(e)}var now=function(){return Date.now()},defaultZone=null,defaultLocale$1=null,defaultNumberingSystem=null,defaultOutputCalendar=null,throwOnInvalid=!1,Settings=function(){function e(){}return e.resetCaches=function(){Locale.resetCache(),IANAZone.resetCache()},_createClass(e,null,[{key:"now",get:function(){return now},set:function(e){now=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){defaultZone=e?normalizeZone(e):null}},{key:"defaultZone",get:function(){return defaultZone||LocalZone.instance}},{key:"defaultLocale",get:function(){return defaultLocale$1},set:function(e){defaultLocale$1=e}},{key:"defaultNumberingSystem",get:function(){return defaultNumberingSystem},set:function(e){defaultNumberingSystem=e}},{key:"defaultOutputCalendar",get:function(){return defaultOutputCalendar},set:function(e){defaultOutputCalendar=e}},{key:"throwOnInvalid",get:function(){return throwOnInvalid},set:function(e){throwOnInvalid=e}}]),e}(),intlDTCache={};function getCachedDTF(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=intlDTCache[n];return r||(r=new Intl.DateTimeFormat(e,t),intlDTCache[n]=r),r}var intlNumCache={};function getCachedINF(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=intlNumCache[n];return r||(r=new Intl.NumberFormat(e,t),intlNumCache[n]=r),r}var intlRelCache={};function getCachedRTF(e,t){var n=t=void 0===t?{}:t,n=(n.base,_objectWithoutPropertiesLoose(n,["base"])),n=JSON.stringify([e,n]),r=intlRelCache[n];return r||(r=new Intl.RelativeTimeFormat(e,t),intlRelCache[n]=r),r}var sysLocaleCache=null;function systemLocale(){var e;return sysLocaleCache=sysLocaleCache||(hasIntl()?(e=(new Intl.DateTimeFormat).resolvedOptions().locale)&&"und"!==e?e:"en-US":"en-US")}function parseLocaleString(e){var t=e.indexOf("-u-");if(-1===t)return[e];var n,t=e.substring(0,t);try{n=getCachedDTF(e).resolvedOptions()}catch(e){n=getCachedDTF(t).resolvedOptions()}e=n;return[t,e.numberingSystem,e.calendar]}function intlConfigString(e,t,n){return hasIntl()?((n||t)&&(e+="-u",n&&(e+="-ca-"+n),t&&(e+="-nu-"+t)),e):[]}function mapMonths(e){for(var t=[],n=1;n<=12;n++){var r=DateTime.utc(2016,n,1);t.push(e(r))}return t}function mapWeekdays(e){for(var t=[],n=1;n<=7;n++){var r=DateTime.utc(2016,11,13+n);t.push(e(r))}return t}function listStuff(e,t,n,r,i){e=e.listingMode(n);return"error"===e?null:("en"===e?r:i)(t)}function supportsFastNumbers(e){return(!e.numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||hasIntl()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)}var PolyNumberFormatter=function(){function e(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1,!t&&hasIntl()&&(t={useGrouping:!1},0<n.padTo&&(t.minimumIntegerDigits=n.padTo),this.inf=getCachedINF(e,t))}return e.prototype.format=function(e){var t;return this.inf?(t=this.floor?Math.floor(e):e,this.inf.format(t)):padStart(this.floor?Math.floor(e):roundTo(e,3),this.padTo)},e}(),PolyDateFormatter=function(){function e(e,t,n){var r,i,o;this.opts=n,this.hasIntl=hasIntl(),e.zone.universal&&this.hasIntl?(i=e.offset/60*-1,o=IANAZone.isValidZone(i=0<=i?"Etc/GMT+"+i:"Etc/GMT"+i),0!==e.offset&&o?(r=i,this.dt=e):(r="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:DateTime.fromMillis(e.ts+60*e.offset*1e3))):"local"===e.zone.type?this.dt=e:r=(this.dt=e).zone.name,this.hasIntl&&(o=Object.assign({},this.opts),r&&(o.timeZone=r),this.dtf=getCachedDTF(t,o))}var t=e.prototype;return t.format=function(){var e,t;return this.hasIntl?this.dtf.format(this.dt.toJSDate()):(e=formatString(this.opts),t=Locale.create("en-US"),Formatter.create(t).formatDateTimeFromString(this.dt,e))},t.formatToParts=function(){return this.hasIntl&&hasFormatToParts()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e}(),PolyRelFormatter=function(){function e(e,t,n){this.opts=Object.assign({style:"long"},n),!t&&hasRelative()&&(this.rtf=getCachedRTF(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):formatRelativeTime(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),Locale=function(){function i(e,t,n,r){var e=parseLocaleString(e),i=e[0],o=e[1],e=e[2];this.locale=i,this.numberingSystem=t||o||null,this.outputCalendar=n||e||null,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}i.fromOpts=function(e){return i.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)},i.create=function(e,t,n,r){void 0===r&&(r=!1);e=e||Settings.defaultLocale;return new i(e||(r?"en-US":systemLocale()),t||Settings.defaultNumberingSystem,n||Settings.defaultOutputCalendar,e)},i.resetCache=function(){sysLocaleCache=null,intlDTCache={},intlNumCache={},intlRelCache={}},i.fromObject=function(e){var e=void 0===e?{}:e,t=e.locale,n=e.numberingSystem,e=e.outputCalendar;return i.create(t,n,e)};var e=i.prototype;return e.listingMode=function(e){void 0===e&&(e=!0);var t=hasIntl()&&hasFormatToParts(),n=this.isEnglish(),r=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t||n&&r||e?!t||n&&r?"en":"intl":"error"},e.clone=function(e){return e&&0!==Object.getOwnPropertyNames(e).length?i.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this},e.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},e.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},e.months=function(n,r,e){var i=this;return void 0===r&&(r=!1),listStuff(this,n,e=void 0===e?!0:e,months,function(){var t=r?{month:n,day:"numeric"}:{month:n},e=r?"format":"standalone";return i.monthsCache[e][n]||(i.monthsCache[e][n]=mapMonths(function(e){return i.extract(e,t,"month")})),i.monthsCache[e][n]})},e.weekdays=function(n,r,e){var i=this;return void 0===r&&(r=!1),listStuff(this,n,e=void 0===e?!0:e,weekdays,function(){var t=r?{weekday:n,year:"numeric",month:"long",day:"numeric"}:{weekday:n},e=r?"format":"standalone";return i.weekdaysCache[e][n]||(i.weekdaysCache[e][n]=mapWeekdays(function(e){return i.extract(e,t,"weekday")})),i.weekdaysCache[e][n]})},e.meridiems=function(e){var n=this;return listStuff(this,void 0,e=void 0===e?!0:e,function(){return meridiems},function(){var t;return n.meridiemCache||(t={hour:"numeric",hour12:!0},n.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(function(e){return n.extract(e,t,"dayperiod")})),n.meridiemCache})},e.eras=function(e,t){var n=this;return listStuff(this,e,t=void 0===t?!0:t,eras,function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(function(e){return n.extract(e,t,"era")})),n.eraCache[e]})},e.extract=function(e,t,n){e=this.dtFormatter(e,t).formatToParts().find(function(e){return e.type.toLowerCase()===n});return e?e.value:null},e.numberFormatter=function(e){return new PolyNumberFormatter(this.intl,(e=void 0===e?{}:e).forceSimple||this.fastNumbers,e)},e.dtFormatter=function(e,t){return new PolyDateFormatter(e,this.intl,t=void 0===t?{}:t)},e.relFormatter=function(e){return void 0===e&&(e={}),new PolyRelFormatter(this.intl,this.isEnglish(),e)},e.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||hasIntl()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},e.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},_createClass(i,[{key:"fastNumbers",get:function(){return null==this.fastNumbersCached&&(this.fastNumbersCached=supportsFastNumbers(this)),this.fastNumbersCached}}]),i}();function combineRegexes(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce(function(e,t){return e+t.source},"");return RegExp("^"+r+"$")}function combineExtractors(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(o){return t.reduce(function(e,t){var n=e[0],r=e[1],e=e[2],t=t(o,e),e=t[0],i=t[1],t=t[2];return[Object.assign(n,e),r||i,t]},[{},null,1]).slice(0,2)}}function parse(e){if(null==e)return[null,null];for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i],s=a[0],a=a[1],s=s.exec(e);if(s)return a(s)}return[null,null]}function simpleParse(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];return function(e,t){for(var n={},r=0;r<i.length;r++)n[i[r]]=parseInteger(e[t+r]);return[n,null,t+r]}}var offsetRegex=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(""+isoTimeBaseRegex.source+offsetRegex.source+"?"),isoTimeExtensionRegex=RegExp("(?:T"+isoTimeRegex.source+")?"),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse("weekYear","weekNumber","weekDay"),extractISOOrdinalData=simpleParse("year","ordinal"),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(isoTimeBaseRegex.source+" ?(?:"+offsetRegex.source+"|("+ianaRegex.source+"))?"),sqlTimeExtensionRegex=RegExp("(?: "+sqlTimeRegex.source+")?");function int(e,t,n){e=e[t];return isUndefined(e)?n:parseInteger(e)}function extractISOYmd(e,t){return[{year:int(e,t),month:int(e,t+1,1),day:int(e,t+2,1)},null,t+3]}function extractISOTime(e,t){return[{hours:int(e,t,0),minutes:int(e,t+1,0),seconds:int(e,t+2,0),milliseconds:parseMillis(e[t+3])},null,t+4]}function extractISOOffset(e,t){var n=!e[t]&&!e[t+1],e=signedOffset(e[t+1],e[t+2]);return[{},n?null:FixedOffsetZone.instance(e),t+3]}function extractIANAZone(e,t){return[{},e[t]?IANAZone.create(e[t]):null,t+1]}var isoTimeOnly=RegExp("^T?"+isoTimeBaseRegex.source+"$"),isoDuration=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function extractISODuration(e){function t(e,t){return void 0===t&&(t=!1),void 0!==e&&(t||e&&u)?-e:e}var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],e=e[8],u="-"===n[0],n=c&&"-"===c[0];return[{years:t(parseInteger(r)),months:t(parseInteger(i)),weeks:t(parseInteger(o)),days:t(parseInteger(a)),hours:t(parseInteger(s)),minutes:t(parseInteger(l)),seconds:t(parseInteger(c),"-0"===c),milliseconds:t(parseMillis(e),n)}]}var obsOffsets={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function fromStrings(e,t,n,r,i,o,a){t={year:2===t.length?untruncateYear(parseInteger(t)):parseInteger(t),month:monthsShort.indexOf(n)+1,day:parseInteger(r),hour:parseInteger(i),minute:parseInteger(o)};return a&&(t.second=parseInteger(a)),e&&(t.weekday=3<e.length?weekdaysLong.indexOf(e)+1:weekdaysShort.indexOf(e)+1),t}var rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6],s=e[7],l=e[8],c=e[9],u=e[10],e=e[11],t=fromStrings(t,i,r,n,o,a,s),i=l?obsOffsets[l]:c?0:signedOffset(u,e);return[t,new FixedOffsetZone(i)]}function preprocessRFC2822(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var rfc1123=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){var t=e[1],n=e[2],r=e[3];return[fromStrings(t,e[4],r,n,e[5],e[6],e[7]),FixedOffsetZone.utcInstance]}function extractASCII(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6];return[fromStrings(t,e[7],n,r,i,o,a),FixedOffsetZone.utcInstance]}var isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset);function parseISODate(e){return parse(e,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset])}function parseRFC2822Date(e){return parse(preprocessRFC2822(e),[rfc2822,extractRFC2822])}function parseHTTPDate(e){return parse(e,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII])}function parseISODuration(e){return parse(e,[isoDuration,extractISODuration])}var extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return parse(e,[isoTimeOnly,extractISOTimeOnly])}var sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOYmdTimeOffsetAndIANAZone=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return parse(e,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeOffsetAndIANAZone],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone])}var INVALID="Invalid Duration",lowOrderMatrix={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},casualMatrix=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},lowOrderMatrix),daysInYearAccurate=365.2425,daysInMonthAccurate=30.436875,accurateMatrix=Object.assign({years:{quarters:4,months:12,weeks:daysInYearAccurate/7,days:daysInYearAccurate,hours:24*daysInYearAccurate,minutes:24*daysInYearAccurate*60,seconds:24*daysInYearAccurate*60*60,milliseconds:24*daysInYearAccurate*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate/28,days:daysInYearAccurate/4,hours:24*daysInYearAccurate/4,minutes:24*daysInYearAccurate*60/4,seconds:24*daysInYearAccurate*60*60/4,milliseconds:24*daysInYearAccurate*60*60*1e3/4},months:{weeks:daysInMonthAccurate/7,days:daysInMonthAccurate,hours:24*daysInMonthAccurate,minutes:24*daysInMonthAccurate*60,seconds:24*daysInMonthAccurate*60*60,milliseconds:24*daysInMonthAccurate*60*60*1e3}},lowOrderMatrix),orderedUnits=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],reverseUnits=orderedUnits.slice(0).reverse();function clone(e,t,n){n={values:(n=void 0===n?!1:n)?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new Duration(n)}function antiTrunc(e){return e<0?Math.floor(e):Math.ceil(e)}function convert(e,t,n,r,i){var e=e[i][n],o=t[n]/e,o=!(Math.sign(o)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(o)<=1?antiTrunc(o):Math.trunc(o);r[i]+=o,t[n]-=o*e}function normalizeValues(n,r){reverseUnits.reduce(function(e,t){return isUndefined(r[t])?e:(e&&convert(n,r,e,r,t),t)},null)}var Duration=function(){function h(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||Locale.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?accurateMatrix:casualMatrix,this.isLuxonDuration=!0}h.fromMillis=function(e,t){return h.fromObject(Object.assign({milliseconds:e},t))},h.fromObject=function(e){if(null==e||"object"!=typeof e)throw new InvalidArgumentError("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new h({values:normalizeObject(e,h.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:Locale.fromObject(e),conversionAccuracy:e.conversionAccuracy})},h.fromISO=function(e,t){var n=parseISODuration(e)[0];return n?(n=Object.assign(n,t),h.fromObject(n)):h.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},h.fromISOTime=function(e,t){var n=parseISOTimeOnly(e)[0];return n?(n=Object.assign(n,t),h.fromObject(n)):h.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},h.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new InvalidArgumentError("need to specify a reason the Duration is invalid");e=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidDurationError(e);return new h({invalid:e})},h.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(t)return t;throw new InvalidUnitError(e)},h.isDuration=function(e){return e&&e.isLuxonDuration||!1};var e=h.prototype;return e.toFormat=function(e,t){void 0===t&&(t={});t=Object.assign({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Formatter.create(this.loc,t).formatDurationFromString(this,e):INVALID},e.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.values);return e.includeConfig&&(t.conversionAccuracy=this.conversionAccuracy,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},e.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},e.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||864e5<=t)return null;e=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var t=this.shiftTo("hours","minutes","seconds","milliseconds"),n="basic"===e.format?"hhmm":"hh:mm",t=(e.suppressSeconds&&0===t.seconds&&0===t.milliseconds||(n+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===t.milliseconds||(n+=".SSS")),t.toFormat(n));return t=e.includePrefix?"T"+t:t},e.toJSON=function(){return this.toISO()},e.toString=function(){return this.toISO()},e.toMillis=function(){return this.as("milliseconds")},e.valueOf=function(){return this.toMillis()},e.plus=function(e){if(!this.isValid)return this;for(var t=friendlyDuration(e),n={},r=_createForOfIteratorHelperLoose(orderedUnits);!(i=r()).done;){var i=i.value;(hasOwnProperty$1(t.values,i)||hasOwnProperty$1(this.values,i))&&(n[i]=t.get(i)+this.get(i))}return clone(this,{values:n},!0)},e.minus=function(e){if(!this.isValid)return this;e=friendlyDuration(e);return this.plus(e.negate())},e.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n<r.length;n++){var i=r[n];t[i]=asNumber(e(this.values[i],i))}return clone(this,{values:t},!0)},e.get=function(e){return this[h.normalizeUnit(e)]},e.set=function(e){return this.isValid?clone(this,{values:Object.assign(this.values,normalizeObject(e,h.normalizeUnit,[]))}):this},e.reconfigure=function(e){var e=void 0===e?{}:e,t=e.locale,n=e.numberingSystem,e=e.conversionAccuracy,t={loc:this.loc.clone({locale:t,numberingSystem:n})};return e&&(t.conversionAccuracy=e),clone(this,t)},e.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},e.normalize=function(){if(!this.isValid)return this;var e=this.toObject();return normalizeValues(this.matrix,e),clone(this,{values:e},!0)},e.shiftTo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!this.isValid)return this;if(0===t.length)return this;for(var r,t=t.map(function(e){return h.normalizeUnit(e)}),i={},o={},a=this.toObject(),s=_createForOfIteratorHelperLoose(orderedUnits);!(f=s()).done;){var l=f.value;if(0<=t.indexOf(l)){var c,u=l,d=0;for(c in o)d+=this.matrix[c][l]*o[c],o[c]=0;isNumber(a[l])&&(d+=a[l]);var p,f=Math.trunc(d);for(p in i[l]=f,o[l]=d-f,a)orderedUnits.indexOf(p)>orderedUnits.indexOf(l)&&convert(this.matrix,a,p,i,l)}else isNumber(a[l])&&(o[l]=a[l])}for(r in o)0!==o[r]&&(i[u]+=r===u?o[r]:o[r]/this.matrix[u][r]);return clone(this,{values:i},!0).normalize()},e.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);t<n.length;t++){var r=n[t];e[r]=-this.values[r]}return clone(this,{values:e},!0)},e.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t,n=_createForOfIteratorHelperLoose(orderedUnits);!(r=n()).done;){var r=r.value;if(t=this.values[r],r=e.values[r],!(void 0===t||0===t?void 0===r||0===r:t===r))return!1}return!0},_createClass(h,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),h}();function friendlyDuration(e){if(isNumber(e))return Duration.fromMillis(e);if(Duration.isDuration(e))return e;if("object"==typeof e)return Duration.fromObject(e);throw new InvalidArgumentError("Unknown duration argument "+e+" of type "+typeof e)}var INVALID$1="Invalid Interval";function validateStartEnd(e,t){return e&&e.isValid?t&&t.isValid?t<e?Interval.invalid("end before start","The end of an interval must be after its start, but you had start="+e.toISO()+" and end="+t.toISO()):null:Interval.invalid("missing or invalid end"):Interval.invalid("missing or invalid start")}var Interval=function(){function c(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}c.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new InvalidArgumentError("need to specify a reason the Interval is invalid");e=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidIntervalError(e);return new c({invalid:e})},c.fromDateTimes=function(e,t){var e=friendlyDateTime(e),t=friendlyDateTime(t),n=validateStartEnd(e,t);return null==n?new c({start:e,end:t}):n},c.after=function(e,t){t=friendlyDuration(t),e=friendlyDateTime(e);return c.fromDateTimes(e,e.plus(t))},c.before=function(e,t){t=friendlyDuration(t),e=friendlyDateTime(e);return c.fromDateTimes(e.minus(t),e)},c.fromISO=function(e,t){var n,r,i,o=(e||"").split("/",2),a=o[0],s=o[1];if(a&&s){try{l=(n=DateTime.fromISO(a,t)).isValid}catch(s){l=!1}try{i=(r=DateTime.fromISO(s,t)).isValid}catch(s){i=!1}if(l&&i)return c.fromDateTimes(n,r);if(l){o=Duration.fromISO(s,t);if(o.isValid)return c.after(n,o)}else if(i){var l=Duration.fromISO(a,t);if(l.isValid)return c.before(r,l)}}return c.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},c.isInterval=function(e){return e&&e.isLuxonInterval||!1};var e=c.prototype;return e.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},e.count=function(e){if(!this.isValid)return NaN;var t=this.start.startOf(e=void 0===e?"milliseconds":e),n=this.end.startOf(e);return Math.floor(n.diff(t,e).get(e))+1},e.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},e.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},e.isAfter=function(e){return!!this.isValid&&this.s>e},e.isBefore=function(e){return!!this.isValid&&this.e<=e},e.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},e.set=function(e){var e=void 0===e?{}:e,t=e.start,e=e.end;return this.isValid?c.fromDateTimes(t||this.s,e||this.e):this},e.splitAt=function(){var t=this;if(!this.isValid)return[];for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var i=n.map(friendlyDateTime).filter(function(e){return t.contains(e)}).sort(),o=[],a=this.s,s=0;a<this.e;){var l=i[s]||this.e,l=+l>+this.e?this.e:l;o.push(c.fromDateTimes(a,l)),a=l,s+=1}return o},e.splitBy=function(e){var t=friendlyDuration(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];for(var n=this.s,r=1,i=[];n<this.e;){var o=this.start.plus(t.mapUnits(function(e){return e*r})),o=+o>+this.e?this.e:o;i.push(c.fromDateTimes(n,o)),n=o,r+=1}return i},e.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},e.overlaps=function(e){return this.e>e.s&&this.s<e.e},e.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},e.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},e.engulfs=function(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)},e.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},e.intersection=function(e){if(!this.isValid)return this;var t=(this.s>e.s?this:e).s,e=(this.e<e.e?this:e).e;return e<=t?null:c.fromDateTimes(t,e)},e.union=function(e){if(!this.isValid)return this;var t=(this.s<e.s?this:e).s,e=(this.e>e.e?this:e).e;return c.fromDateTimes(t,e)},c.merge=function(e){var e=e.sort(function(e,t){return e.s-t.s}).reduce(function(e,t){var n=e[0],e=e[1];return e?e.overlaps(t)||e.abutsStart(t)?[n,e.union(t)]:[n.concat([e]),t]:[n,t]},[[],null]),t=e[0],e=e[1];return e&&t.push(e),t},c.xor=function(e){for(var t,n=null,r=0,i=[],e=e.map(function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]}),o=_createForOfIteratorHelperLoose((t=Array.prototype).concat.apply(t,e).sort(function(e,t){return e.time-t.time}));!(a=o()).done;)var a=a.value,n=1===(r+="s"===a.type?1:-1)?a.time:(n&&+n!=+a.time&&i.push(c.fromDateTimes(n,a.time)),null);return c.merge(i)},e.difference=function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return c.xor([this].concat(n)).map(function(e){return t.intersection(e)}).filter(function(e){return e&&!e.isEmpty()})},e.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":INVALID$1},e.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):INVALID$1},e.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():INVALID$1},e.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):INVALID$1},e.toFormat=function(e,t){t=(void 0===t?{}:t).separator,t=void 0===t?" – ":t;return this.isValid?""+this.s.toFormat(e)+t+this.e.toFormat(e):INVALID$1},e.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):Duration.invalid(this.invalidReason)},e.mapEndpoints=function(e){return c.fromDateTimes(e(this.s),e(this.e))},_createClass(c,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),c}(),Info=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=Settings.defaultZone);var t=DateTime.now().setZone(e).set({month:12});return!e.universal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return IANAZone.isValidSpecifier(e)&&IANAZone.isValidZone(e)},e.normalizeZone=function(e){return normalizeZone(e,Settings.defaultZone)},e.months=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,i=t.locObj,i=void 0===i?null:i,t=t.outputCalendar;return(i||Locale.create(void 0===n?null:n,void 0===r?null:r,void 0===t?"gregory":t)).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,i=t.locObj,i=void 0===i?null:i,t=t.outputCalendar;return(i||Locale.create(void 0===n?null:n,void 0===r?null:r,void 0===t?"gregory":t)).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,t=t.locObj;return((void 0===t?null:t)||Locale.create(void 0===n?null:n,void 0===r?null:r,null)).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,t=t.locObj;return((void 0===t?null:t)||Locale.create(void 0===n?null:n,void 0===r?null:r,null)).weekdays(e,!0)},e.meridiems=function(e){e=(void 0===e?{}:e).locale;return Locale.create(void 0===e?null:e).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");t=(void 0===t?{}:t).locale;return Locale.create(void 0===t?null:t,null,"gregory").eras(e)},e.features=function(){var e=!1,t=!1,n=!1,r=!1;if(hasIntl()){e=!0,t=hasFormatToParts(),r=hasRelative();try{n="America/New_York"===new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone}catch(e){n=!1}}return{intl:e,intlTokens:t,zones:n,relative:r}},e}();function dayDiff(e,t){function n(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()}t=n(t)-n(e);return Math.floor(Duration.fromMillis(t).as("days"))}function highOrderDiffs(e,t,n){for(var r={},i=0,o=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){e=dayDiff(e,t);return(e-e%7)/7}],["days",dayDiff]];i<o.length;i++){var a,s,l,c=o[i],u=c[0],c=c[1];0<=n.indexOf(u)&&(a=u,c=c(e,t),t<(l=e.plus(((s={})[u]=c,s)))?(e=e.plus(((s={})[u]=c-1,s)),--c):e=l,r[u]=c)}return[e,r,l,a]}function _diff(e,t,n,r){var e=highOrderDiffs(e,t,n),i=e[0],o=e[1],a=e[2],e=e[3],s=t-i,n=n.filter(function(e){return 0<=["hours","minutes","seconds","milliseconds"].indexOf(e)}),t=(0===n.length&&(a=a<t?i.plus(((t={})[e]=1,t)):a)!==i&&(o[e]=(o[e]||0)+s/(a-i)),Duration.fromObject(Object.assign(o,r)));return 0<n.length?(e=Duration.fromMillis(s,r)).shiftTo.apply(e,n).plus(t):t}var numberingSystems={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},numberingSystemsUTF16={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hanidecChars=numberingSystems.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){var t=parseInt(e,10);if(isNaN(t)){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);if(-1!==e[n].search(numberingSystems.hanidec))t+=hanidecChars.indexOf(e[n]);else for(var i in numberingSystemsUTF16){var i=numberingSystemsUTF16[i],o=i[0],i=i[1];o<=r&&r<=i&&(t+=r-o)}}return parseInt(t,10)}return t}function digitRegex(e,t){e=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+numberingSystems[e||"latn"]+t)}var MISSING_FTP="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){e=e[0];return t(parseDigits(e))}}}var NBSP=String.fromCharCode(160),spaceOrNBSP="( |"+NBSP+")",spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(spaceOrNBSPRegExp,spaceOrNBSP)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(spaceOrNBSPRegExp," ").toLowerCase()}function oneOf(n,r){return null===n?null:{regex:RegExp(n.map(fixListRegex).join("|")),deser:function(e){var t=e[0];return n.findIndex(function(e){return stripInsensitivities(t)===stripInsensitivities(e)})+r}}}function offset(e,t){return{regex:e,deser:function(e){return signedOffset(e[1],e[2])},groups:t}}function simple(e){return{regex:e,deser:function(e){return e[0]}}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(t,n){function r(e){return{regex:RegExp(escapeToken(e.val)),deser:function(e){return e[0]},literal:!0}}var i=digitRegex(n),o=digitRegex(n,"{2}"),a=digitRegex(n,"{3}"),s=digitRegex(n,"{4}"),l=digitRegex(n,"{6}"),c=digitRegex(n,"{1,2}"),u=digitRegex(n,"{1,3}"),d=digitRegex(n,"{1,6}"),p=digitRegex(n,"{1,9}"),f=digitRegex(n,"{2,4}"),h=digitRegex(n,"{4,6}"),e=function(e){if(t.literal)return r(e);switch(e.val){case"G":return oneOf(n.eras("short",!1),0);case"GG":return oneOf(n.eras("long",!1),0);case"y":return intUnit(d);case"yy":return intUnit(f,untruncateYear);case"yyyy":return intUnit(s);case"yyyyy":return intUnit(h);case"yyyyyy":return intUnit(l);case"M":return intUnit(c);case"MM":return intUnit(o);case"MMM":return oneOf(n.months("short",!0,!1),1);case"MMMM":return oneOf(n.months("long",!0,!1),1);case"L":return intUnit(c);case"LL":return intUnit(o);case"LLL":return oneOf(n.months("short",!1,!1),1);case"LLLL":return oneOf(n.months("long",!1,!1),1);case"d":return intUnit(c);case"dd":return intUnit(o);case"o":return intUnit(u);case"ooo":return intUnit(a);case"HH":return intUnit(o);case"H":return intUnit(c);case"hh":return intUnit(o);case"h":return intUnit(c);case"mm":return intUnit(o);case"m":case"q":return intUnit(c);case"qq":return intUnit(o);case"s":return intUnit(c);case"ss":return intUnit(o);case"S":return intUnit(u);case"SSS":return intUnit(a);case"u":return simple(p);case"a":return oneOf(n.meridiems(),0);case"kkkk":return intUnit(s);case"kk":return intUnit(f,untruncateYear);case"W":return intUnit(c);case"WW":return intUnit(o);case"E":case"c":return intUnit(i);case"EEE":return oneOf(n.weekdays("short",!1,!1),1);case"EEEE":return oneOf(n.weekdays("long",!1,!1),1);case"ccc":return oneOf(n.weekdays("short",!0,!1),1);case"cccc":return oneOf(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return offset(new RegExp("([+-]"+c.source+")(?::("+o.source+"))?"),2);case"ZZZ":return offset(new RegExp("([+-]"+c.source+")("+o.source+")?"),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);default:return r(e)}}(t)||{invalidReason:MISSING_FTP};return e.token=t,e}var partTypeStyleToTokenVal={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function tokenForPart(e,t,n){var r=e.type,e=e.value;if("literal"===r)return{literal:!0,val:e};e=n[r],n=partTypeStyleToTokenVal[r];return(n="object"==typeof n?n[e]:n)?{literal:!1,val:n}:void 0}function buildRegex(e){return["^"+e.map(function(e){return e.regex}).reduce(function(e,t){return e+"("+t.source+")"},"")+"$",e]}function match$1(e,t,n){var r=e.match(t);if(r){var i,o,a,s={},l=1;for(i in n)hasOwnProperty$1(n,i)&&(a=(o=n[i]).groups?o.groups+1:1,!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(r.slice(l,l+a))),l+=a);return[r,s]}return[r,{}]}function dateTimeFromMatches(r){var e=isUndefined(r.Z)?isUndefined(r.z)?null:IANAZone.create(r.z):new FixedOffsetZone(r.Z);return isUndefined(r.q)||(r.M=3*(r.q-1)+1),isUndefined(r.h)||(r.h<12&&1===r.a?r.h+=12:12===r.h&&0===r.a&&(r.h=0)),0===r.G&&r.y&&(r.y=-r.y),isUndefined(r.u)||(r.S=parseMillis(r.u)),[Object.keys(r).reduce(function(e,t){var n=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(t);return n&&(e[n]=r[t]),e},{}),e]}var dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache=dummyDateTimeCache||DateTime.fromMillis(1555555555555)}function maybeExpandMacroToken(e,t){if(e.literal)return e;var n=Formatter.macroTokenToFormatOpts(e.val);if(!n)return e;var r=Formatter.create(t,n).formatDateTimeParts(getDummyDateTime()).map(function(e){return tokenForPart(e,t,n)});return r.includes(void 0)?e:r}function expandMacroTokens(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map(function(e){return maybeExpandMacroToken(e,t)}))}function explainFromTokens(t,e,n){var n=expandMacroTokens(Formatter.parseFormat(n),t),r=n.map(function(e){return unitForToken(e,t)}),i=r.find(function(e){return e.invalidReason});if(i)return{input:e,tokens:n,invalidReason:i.invalidReason};var i=buildRegex(r),r=i[0],i=i[1],r=RegExp(r,"i"),i=match$1(e,r,i),o=i[0],i=i[1],a=i?dateTimeFromMatches(i):[null,null],s=a[0],a=a[1];if(hasOwnProperty$1(i,"a")&&hasOwnProperty$1(i,"H"))throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:r,rawMatches:o,matches:i,result:s,zone:a}}function parseFromTokens(e,t,n){e=explainFromTokens(e,t,n);return[e.result,e.zone,e.invalidReason]}var nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function dayOfWeek(e,t,n){e=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===e?7:e}function computeOrdinal(e,t,n){return n+(isLeapYear(e)?leapLadder:nonLeapLadder)[t-1]}function uncomputeOrdinal(e,t){var e=isLeapYear(e)?leapLadder:nonLeapLadder,n=e.findIndex(function(e){return e<t});return{month:n+1,day:t-e[n]}}function gregorianToWeek(e){var t,n=e.year,r=e.month,i=e.day,o=computeOrdinal(n,r,i),r=dayOfWeek(n,r,i),i=Math.floor((o-r+10)/7);return i<1?i=weeksInWeekYear(t=n-1):i>weeksInWeekYear(n)?(t=n+1,i=1):t=n,Object.assign({weekYear:t,weekNumber:i,weekday:r},timeObject(e))}function weekToGregorian(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,o=dayOfWeek(n,1,4),a=daysInYear(n),r=7*r+i-o-3,i=(r<1?r+=daysInYear(t=n-1):a<r?(t=n+1,r-=daysInYear(n)):t=n,uncomputeOrdinal(t,r)),o=i.month,a=i.day;return Object.assign({year:t,month:o,day:a},timeObject(e))}function gregorianToOrdinal(e){var t=e.year,n=computeOrdinal(t,e.month,e.day);return Object.assign({year:t,ordinal:n},timeObject(e))}function ordinalToGregorian(e){var t=e.year,n=uncomputeOrdinal(t,e.ordinal),r=n.month,n=n.day;return Object.assign({year:t,month:r,day:n},timeObject(e))}function hasInvalidWeekData(e){var t=isInteger(e.weekYear),n=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear)),r=integerBetween(e.weekday,1,7);return t?n?!r&&unitOutOfRange("weekday",e.weekday):unitOutOfRange("week",e.week):unitOutOfRange("weekYear",e.weekYear)}function hasInvalidOrdinalData(e){var t=isInteger(e.year),n=integerBetween(e.ordinal,1,daysInYear(e.year));return t?!n&&unitOutOfRange("ordinal",e.ordinal):unitOutOfRange("year",e.year)}function hasInvalidGregorianData(e){var t=isInteger(e.year),n=integerBetween(e.month,1,12),r=integerBetween(e.day,1,daysInMonth(e.year,e.month));return t?n?!r&&unitOutOfRange("day",e.day):unitOutOfRange("month",e.month):unitOutOfRange("year",e.year)}function hasInvalidTimeData(e){var t=e.hour,n=e.minute,r=e.second,e=e.millisecond,i=integerBetween(t,0,23)||24===t&&0===n&&0===r&&0===e,o=integerBetween(n,0,59),a=integerBetween(r,0,59),s=integerBetween(e,0,999);return i?o?a?!s&&unitOutOfRange("millisecond",e):unitOutOfRange("second",r):unitOutOfRange("minute",n):unitOutOfRange("hour",t)}var INVALID$2="Invalid DateTime",MAX_DATE=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",'the zone "'+e.name+'" is not supported')}function possiblyCachedWeekData(e){return null===e.weekData&&(e.weekData=gregorianToWeek(e.c)),e.weekData}function clone$1(e,t){e={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime(Object.assign({},e,t,{old:e}))}function fixOffset(e,t,n){var r=e-60*t*1e3,i=n.offset(r);if(t===i)return[r,t];n=n.offset(r-=60*(i-t)*1e3);return i===n?[r,i]:[e-60*Math.min(i,n)*1e3,Math.max(i,n)]}function tsToObj(e,t){e+=60*t*1e3;t=new Date(e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function objToTS(e,t,n){return fixOffset(objToLocalTS(e),t,n)}function adjustTime(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),r=Object.assign({},e.c,{year:r,month:i,day:Math.min(e.c.day,daysInMonth(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),t=fixOffset(objToLocalTS(r),n,e.zone),r=t[0],n=t[1];return 0!==i&&(n=e.zone.offset(r+=i)),{ts:r,o:n}}function parseDataToDateTime(e,t,n,r,i){var o=n.setZone,a=n.zone;return e&&0!==Object.keys(e).length?(e=DateTime.fromObject(Object.assign(e,n,{zone:t||a,setZone:void 0})),o?e:e.setZone(a)):DateTime.invalid(new Invalid("unparsable",'the input "'+i+"\" can't be parsed as "+r))}function toTechFormat(e,t,n){return void 0===n&&(n=!0),e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function toTechTimeFormat(e,t){var n=t.suppressSeconds,r=t.suppressMilliseconds,i=t.includeOffset,o=t.includePrefix,o=void 0!==o&&o,a=t.includeZone,a=void 0!==a&&a,s=t.spaceZone,t=t.format,t=void 0===t?"extended":t,l="basic"===t?"HHmm":"HH:mm",n=(void 0!==n&&n&&0===e.second&&0===e.millisecond||(l+="basic"===t?"ss":":ss",void 0!==r&&r&&0===e.millisecond||(l+=".SSS")),(a||i)&&(void 0!==s&&s)&&(l+=" "),a?l+="z":i&&(l+="basic"===t?"ZZZ":"ZZ"),toTechFormat(e,l));return n=o?"T"+n:n}var defaultUnitValues={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits$1=["year","month","day","hour","minute","second","millisecond"],orderedWeekUnits=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],orderedOrdinalUnits=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(t)return t;throw new InvalidUnitError(e)}function quickDT(e,t){for(var n=_createForOfIteratorHelperLoose(orderedUnits$1);!(r=n()).done;){var r=r.value;isUndefined(e[r])&&(e[r]=defaultUnitValues[r])}var i=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(i)return DateTime.invalid(i);var i=Settings.now(),i=objToTS(e,t.offset(i),t),o=i[0],i=i[1];return new DateTime({ts:o,zone:t,o:i})}function diffRelative(t,n,r){function e(e,t){return e=roundTo(e,o||r.calendary?0:2,!0),n.loc.clone(r).relFormatter(r).format(e,t)}function i(e){return r.calendary?n.hasSame(t,e)?0:n.startOf(e).diff(t.startOf(e),e).get(e):n.diff(t,e).get(e)}var o=!!isUndefined(r.round)||r.round;if(r.unit)return e(i(r.unit),r.unit);for(var a=_createForOfIteratorHelperLoose(r.units);!(s=a()).done;){var s=s.value,l=i(s);if(1<=Math.abs(l))return e(l,s)}return e(n<t?-0:0,r.units[r.units.length-1])}var DateTime=function(){function g(e){var t,n=e.zone||Settings.defaultZone,r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(n.isValid?null:unsupportedZone(n)),i=(this.ts=isUndefined(e.ts)?Settings.now():e.ts,null),o=null;r||(o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(n)?(i=(t=[e.old.c,e.old.o])[0],t[1]):(t=n.offset(this.ts),i=tsToObj(this.ts,t),i=(r=Number.isNaN(i.year)?new Invalid("invalid input"):null)?null:i,r?null:t)),this._zone=n,this.loc=e.loc||Locale.create(),this.invalid=r,this.weekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}g.now=function(){return new g({})},g.local=function(e,t,n,r,i,o,a){return isUndefined(e)?g.now():quickDT({year:e,month:t,day:n,hour:r,minute:i,second:o,millisecond:a},Settings.defaultZone)},g.utc=function(e,t,n,r,i,o,a){return isUndefined(e)?new g({ts:Settings.now(),zone:FixedOffsetZone.utcInstance}):quickDT({year:e,month:t,day:n,hour:r,minute:i,second:o,millisecond:a},FixedOffsetZone.utcInstance)},g.fromJSDate=function(e,t){void 0===t&&(t={});e=isDate(e)?e.valueOf():NaN;if(Number.isNaN(e))return g.invalid("invalid input");var n=normalizeZone(t.zone,Settings.defaultZone);return n.isValid?new g({ts:e,zone:n,loc:Locale.fromObject(t)}):g.invalid(unsupportedZone(n))},g.fromMillis=function(e,t){if(void 0===t&&(t={}),isNumber(e))return e<-MAX_DATE||MAX_DATE<e?g.invalid("Timestamp out of range"):new g({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)});throw new InvalidArgumentError("fromMillis requires a numerical input, but received a "+typeof e+" with value "+e)},g.fromSeconds=function(e,t){if(void 0===t&&(t={}),isNumber(e))return new g({ts:1e3*e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)});throw new InvalidArgumentError("fromSeconds requires a numerical input")},g.fromObject=function(e){var t=normalizeZone(e.zone,Settings.defaultZone);if(!t.isValid)return g.invalid(unsupportedZone(t));var n=Settings.now(),r=t.offset(n),i=normalizeObject(e,normalizeUnit,["zone","locale","outputCalendar","numberingSystem"]),o=!isUndefined(i.ordinal),a=!isUndefined(i.year),s=!isUndefined(i.month)||!isUndefined(i.day),a=a||s,l=i.weekYear||i.weekNumber,c=Locale.fromObject(e);if((a||o)&&l)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&o)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");for(var u,s=l||i.weekday&&!a,d=tsToObj(n,r),p=(s?(m=orderedWeekUnits,u=defaultWeekUnitValues,d=gregorianToWeek(d)):o?(m=orderedOrdinalUnits,u=defaultOrdinalUnitValues,d=gregorianToOrdinal(d)):(m=orderedUnits$1,u=defaultUnitValues),!1),f=_createForOfIteratorHelperLoose(m);!(h=f()).done;){var h=h.value;isUndefined(i[h])?i[h]=(p?u:d)[h]:p=!0}l=(s?hasInvalidWeekData:o?hasInvalidOrdinalData:hasInvalidGregorianData)(i)||hasInvalidTimeData(i);if(l)return g.invalid(l);var n=objToTS(s?weekToGregorian(i):o?ordinalToGregorian(i):i,r,t),m=new g({ts:n[0],zone:t,o:n[1],loc:c});return i.weekday&&a&&e.weekday!==m.weekday?g.invalid("mismatched weekday","you can't specify both a weekday of "+i.weekday+" and a date of "+m.toISO()):m},g.fromISO=function(e,t){void 0===t&&(t={});var n=parseISODate(e);return parseDataToDateTime(n[0],n[1],t,"ISO 8601",e)},g.fromRFC2822=function(e,t){void 0===t&&(t={});var n=parseRFC2822Date(e);return parseDataToDateTime(n[0],n[1],t,"RFC 2822",e)},g.fromHTTP=function(e,t){void 0===t&&(t={});e=parseHTTPDate(e);return parseDataToDateTime(e[0],e[1],t,"HTTP",t)},g.fromFormat=function(e,t,n){if(void 0===n&&(n={}),isUndefined(e)||isUndefined(t))throw new InvalidArgumentError("fromFormat requires an input string and a format");var r=n,i=r.locale,r=r.numberingSystem,i=parseFromTokens(Locale.fromOpts({locale:void 0===i?null:i,numberingSystem:void 0===r?null:r,defaultToEN:!0}),e,t),r=i[0],o=i[1],i=i[2];return i?g.invalid(i):parseDataToDateTime(r,o,n,"format "+t,e)},g.fromString=function(e,t,n){return g.fromFormat(e,t,n=void 0===n?{}:n)},g.fromSQL=function(e,t){void 0===t&&(t={});var n=parseSQL(e);return parseDataToDateTime(n[0],n[1],t,"SQL",e)},g.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");e=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(e);return new g({invalid:e})},g.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var e=g.prototype;return e.get=function(e){return this[e]},e.resolvedLocaleOpts=function(e){e=Formatter.create(this.loc.clone(e=void 0===e?{}:e),e).resolvedOptions(this);return{locale:e.locale,numberingSystem:e.numberingSystem,outputCalendar:e.calendar}},e.toUTC=function(e,t){return void 0===t&&(t={}),this.setZone(FixedOffsetZone.instance(e=void 0===e?0:e),t)},e.toLocal=function(){return this.setZone(Settings.defaultZone)},e.setZone=function(e,t){var n,t=void 0===t?{}:t,r=t.keepLocalTime,r=void 0!==r&&r,t=t.keepCalendarTime,t=void 0!==t&&t;return(e=normalizeZone(e,Settings.defaultZone)).equals(this.zone)?this:e.isValid?(n=this.ts,(r||t)&&(r=e.offset(this.ts),n=objToTS(this.toObject(),r,e)[0]),clone$1(this,{ts:n,zone:e})):g.invalid(unsupportedZone(e))},e.reconfigure=function(e){var e=void 0===e?{}:e,t=e.locale,n=e.numberingSystem,e=e.outputCalendar,t=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:e});return clone$1(this,{loc:t})},e.setLocale=function(e){return this.reconfigure({locale:e})},e.set=function(e){if(!this.isValid)return this;var t,e=normalizeObject(e,normalizeUnit,[]),n=!isUndefined(e.weekYear)||!isUndefined(e.weekNumber)||!isUndefined(e.weekday),r=!isUndefined(e.ordinal),i=!isUndefined(e.year),o=!isUndefined(e.month)||!isUndefined(e.day),a=e.weekYear||e.weekNumber;if((i||o||r)&&a)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&r)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");n?t=weekToGregorian(Object.assign(gregorianToWeek(this.c),e)):isUndefined(e.ordinal)?(t=Object.assign(this.toObject(),e),isUndefined(e.day)&&(t.day=Math.min(daysInMonth(t.year,t.month),t.day))):t=ordinalToGregorian(Object.assign(gregorianToOrdinal(this.c),e));i=objToTS(t,this.o,this.zone);return clone$1(this,{ts:i[0],o:i[1]})},e.plus=function(e){return this.isValid?clone$1(this,adjustTime(this,friendlyDuration(e))):this},e.minus=function(e){return this.isValid?clone$1(this,adjustTime(this,friendlyDuration(e).negate())):this},e.startOf=function(e){if(!this.isValid)return this;var t={},e=Duration.normalizeUnit(e);switch(e){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}return"weeks"===e&&(t.weekday=1),"quarters"===e&&(e=Math.ceil(this.month/3),t.month=3*(e-1)+1),this.set(t)},e.endOf=function(e){var t;return this.isValid?this.plus(((t={})[e]=1,t)).startOf(e).minus(1):this},e.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Formatter.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):INVALID$2},e.toLocaleString=function(e){return void 0===e&&(e=DATE_SHORT),this.isValid?Formatter.create(this.loc.clone(e),e).formatDateTime(this):INVALID$2},e.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Formatter.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},e.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},e.toISODate=function(e){e=(void 0===e?{}:e).format,e="basic"===(void 0===e?"extended":e)?"yyyyMMdd":"yyyy-MM-dd";return toTechFormat(this,e=9999<this.year?"+"+e:e)},e.toISOWeekDate=function(){return toTechFormat(this,"kkkk-'W'WW-c")},e.toISOTime=function(e){var e=void 0===e?{}:e,t=e.suppressMilliseconds,n=e.suppressSeconds,r=e.includeOffset,i=e.includePrefix,e=e.format;return toTechTimeFormat(this,{suppressSeconds:void 0!==n&&n,suppressMilliseconds:void 0!==t&&t,includeOffset:void 0===r||r,includePrefix:void 0!==i&&i,format:void 0===e?"extended":e})},e.toRFC2822=function(){return toTechFormat(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},e.toHTTP=function(){return toTechFormat(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},e.toSQLDate=function(){return toTechFormat(this,"yyyy-MM-dd")},e.toSQLTime=function(e){var e=void 0===e?{}:e,t=e.includeOffset,e=e.includeZone;return toTechTimeFormat(this,{includeOffset:void 0===t||t,includeZone:void 0!==e&&e,spaceZone:!0})},e.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},e.toString=function(){return this.isValid?this.toISO():INVALID$2},e.valueOf=function(){return this.toMillis()},e.toMillis=function(){return this.isValid?this.ts:NaN},e.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},e.toJSON=function(){return this.toISO()},e.toBSON=function(){return this.toJSDate()},e.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},e.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},e.diff=function(e,t,n){if(void 0===t&&(t="milliseconds"),void 0===n&&(n={}),!this.isValid||!e.isValid)return Duration.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime");var n=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),t=maybeArray(t).map(Duration.normalizeUnit),r=e.valueOf()>this.valueOf(),e=_diff(r?this:e,r?e:this,t,n);return r?e.negate():e},e.diffNow=function(e,t){return void 0===e&&(e="milliseconds"),void 0===t&&(t={}),this.diff(g.now(),e,t)},e.until=function(e){return this.isValid?Interval.fromDateTimes(this,e):this},e.hasSame=function(e,t){if(!this.isValid)return!1;var n=e.valueOf(),e=this.setZone(e.zone,{keepLocalTime:!0});return e.startOf(t)<=n&&n<=e.endOf(t)},e.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},e.toRelative=function(e){if(!this.isValid)return null;var t=(e=void 0===e?{}:e).base||g.fromObject({zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0,r=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(r=e.unit,i=void 0),diffRelative(t,this.plus(n),Object.assign(e,{numeric:"always",units:r,unit:i}))},e.toRelativeCalendar=function(e){return void 0===e&&(e={}),this.isValid?diffRelative(e.base||g.fromObject({zone:this.zone}),this,Object.assign(e,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},g.min=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.every(g.isDateTime))return bestBy(t,function(e){return e.valueOf()},Math.min);throw new InvalidArgumentError("min requires all arguments be DateTimes")},g.max=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.every(g.isDateTime))return bestBy(t,function(e){return e.valueOf()},Math.max);throw new InvalidArgumentError("max requires all arguments be DateTimes")},g.fromFormatExplain=function(e,t,n){var n=n=void 0===n?{}:n,r=n.locale,n=n.numberingSystem;return explainFromTokens(Locale.fromOpts({locale:void 0===r?null:r,numberingSystem:void 0===n?null:n,defaultToEN:!0}),e,t)},g.fromStringExplain=function(e,t,n){return g.fromFormatExplain(e,t,n=void 0===n?{}:n)},_createClass(g,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.universal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return isLeapYear(this.year)}},{key:"daysInMonth",get:function(){return daysInMonth(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?daysInYear(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return DATE_SHORT}},{key:"DATE_MED",get:function(){return DATE_MED}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return DATE_MED_WITH_WEEKDAY}},{key:"DATE_FULL",get:function(){return DATE_FULL}},{key:"DATE_HUGE",get:function(){return DATE_HUGE}},{key:"TIME_SIMPLE",get:function(){return TIME_SIMPLE}},{key:"TIME_WITH_SECONDS",get:function(){return TIME_WITH_SECONDS}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return TIME_WITH_SHORT_OFFSET}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return TIME_WITH_LONG_OFFSET}},{key:"TIME_24_SIMPLE",get:function(){return TIME_24_SIMPLE}},{key:"TIME_24_WITH_SECONDS",get:function(){return TIME_24_WITH_SECONDS}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return TIME_24_WITH_SHORT_OFFSET}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return TIME_24_WITH_LONG_OFFSET}},{key:"DATETIME_SHORT",get:function(){return DATETIME_SHORT}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return DATETIME_SHORT_WITH_SECONDS}},{key:"DATETIME_MED",get:function(){return DATETIME_MED}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return DATETIME_MED_WITH_SECONDS}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return DATETIME_MED_WITH_WEEKDAY}},{key:"DATETIME_FULL",get:function(){return DATETIME_FULL}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return DATETIME_FULL_WITH_SECONDS}},{key:"DATETIME_HUGE",get:function(){return DATETIME_HUGE}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return DATETIME_HUGE_WITH_SECONDS}}]),g}();function friendlyDateTime(e){if(DateTime.isDateTime(e))return e;if(e&&e.valueOf&&isNumber(e.valueOf()))return DateTime.fromJSDate(e);if(e&&"object"==typeof e)return DateTime.fromObject(e);throw new InvalidArgumentError("Unknown datetime argument: "+e+", of type "+typeof e)}var VERSION="1.28.0",DateTime_1=luxon.DateTime=DateTime;luxon.Duration=Duration,luxon.FixedOffsetZone=FixedOffsetZone,luxon.IANAZone=IANAZone,luxon.Info=Info,luxon.Interval=Interval,luxon.InvalidZone=InvalidZone,luxon.LocalZone=LocalZone,luxon.Settings=Settings,luxon.VERSION=VERSION,luxon.Zone=Zone;const useStyles$d=makeStyles()(()=>({root:{padding:"15px 30px"},title:{display:"flex"},action:{fontWeight:600},time:{fontSize:"12px",paddingLeft:"15px",lineHeight:"21px"},description:{lineHeight:"150%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},divider:{margin:"0 30px",backgroundColor:"#D5DFE9",height:"0.5px"}})),ActivityCard=({longFormatTime:e=!1,data:{createdDateTime:t,event:n,description:r}})=>{var i=useStyles$d()["classes"];return jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:i.root,"data-testid":"activity-card"},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:i.title},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:i.action},{children:n})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:i.time},{children:e?DateTime_1.fromISO(t||"").toFormat("F"):DateTime_1.fromISO(t||"").toFormat("tt")}))]})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({placement:"top-start",title:r||""},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:i.description},{children:r}))}))})]})),jsxRuntime.exports.jsx(Divider$1,{className:i.divider})]})},useStyles$c=makeStyles()(e=>({root:{width:"100%",height:"100%"},header:{opacity:.9,display:"flex",justifyContent:"space-between",padding:e.spacing(4,6),position:"relative"},title:{opacity:.9,padding:e.spacing(4,6,2,6)},titleText:{textTransform:"uppercase",color:e.palette.secondary.main},scrollContent:{overflowY:"auto",height:"calc(100% - 65px)"}})),filters$2=[{value:"all",title:"All Activities"},{value:"today",title:"Activities today"}],today$1=DateTime_1.local().startOf("day"),yesterday=DateTime_1.local().plus({days:-1}).startOf("day"),ActivityPanel=({data:e,filter:t,onChangeFilter:n})=>{var r=useStyles$c()["classes"];const i=null==e?void 0:e.filter(e=>DateTime_1.fromISO(e.createdDateTime||"").hasSame(today$1,"day")),o=null==e?void 0:e.filter(e=>DateTime_1.fromISO(e.createdDateTime||"").hasSame(yesterday,"day")),a=null==e?void 0:e.filter(e=>DateTime_1.fromISO(e.createdDateTime||"").startOf("day")<yesterday);return jsxRuntime.exports.jsxs("div",Object.assign({className:r.root},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:r.header},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:r.titleText},{children:"Today"})),jsxRuntime.exports.jsx(Filter,{data:filters$2,filter:t,onFilter:e=>{n(null==(e=null==e?void 0:e.target)?void 0:e.value)}})]})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.scrollContent},{children:[jsxRuntime.exports.jsx(Box$1,{children:null===i||void 0===i?void 0:i.map((e,t)=>jsxRuntime.exports.jsx(ActivityCard,{longFormatTime:!1,data:e},t))}),"all"===t&&jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[0<(null===o||void 0===o?void 0:o.length)&&jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.title,"data-testid":"filter-all-box"},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:r.titleText},{children:"Yesterday"}))})),jsxRuntime.exports.jsx(Box$1,{children:o.map((e,t)=>jsxRuntime.exports.jsx(ActivityCard,{longFormatTime:!1,data:e},t))})]}),0<(null===a||void 0===a?void 0:a.length)&&jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.title},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:r.titleText},{children:"Older"}))})),jsxRuntime.exports.jsx(Box$1,{children:a.map((e,t)=>jsxRuntime.exports.jsx(ActivityCard,{longFormatTime:!0,data:e},t))})]})]})]}))]}))},useStyles$b=makeStyles()((e,{appListV2:t,type:n},r)=>({listItem:{display:"flex",cursor:"pointer",alignItems:"center",height:t?"unset":70,width:"100%",padding:t?0:e.spacing(0,6),"&:hover":{backgroundColor:"#EEF3F9"},["& ."+r.appName]:{marginLeft:e.spacing(3)}},iconButton:{borderRadius:4,textAlign:"center",width:"94px",height:"110px",cursor:"pointer",["& ."+r.appName]:{marginBottom:e.spacing(3)}},appName:{textAlign:"center",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",textTransform:"capitalize",width:"switcherGrid"===n?"80%":"unset",margin:"switcherGrid"===n?"auto":"unset"},image:{display:"flex",justifyContent:"center",alignItems:"center",margin:t?"10px":e.spacing(3.8,0)},bounding:{padding:"17px 27px 19px 27px"},img:{width:40,height:40},switcherGrid:{borderRadius:4,textAlign:"center",padding:"20px 0 20px 0",cursor:"pointer","&:hover":{backgroundColor:"#EEF3F9"}}})),iconMapper={CMS:img$V,Discovery:img$U,Collection:img$T,Library:img$S,Admin:img$1s,Developer:img$R};function AppIcon({id:e,icon:t,type:n,iconUrl:r,appName:i,onClick:o,appListV2:a=!1}){a=useStyles$b({appListV2:a,type:n}).classes;const[s,l]=react.exports.useState(t||r||i&&iconMapper[i]||img$R);return jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:i||"",PopperProps:{disablePortal:!0}},{children:jsxRuntime.exports.jsxs("div",Object.assign({onClick:function(){o&&o(e)},className:classnames({[a.iconButton]:"grid"===n,[a.listItem]:"list"===n,[a.switcherGrid]:"switcherGrid"===n}),"data-test":"dt-button-app-icon","data-testid":"dt-button-app-icon"},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:a.image},{children:jsxRuntime.exports.jsx("img",{alt:"app-icon",onError:function(){l(img$R)},src:s,draggable:"false",className:a.img})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:a.appName,"data-testid":"os-app-bar-panel.app-switcher.app-name"},{children:i}))]}))}))}const useStyles$a=makeStyles()((e,{row:t})=>({tabsContainer:{width:"100%"},gridContainer:{display:"flex"},listContainer:{},gridItem:{display:"flex",justifyContent:"center",paddingBottom:e.spacing(1.6),"&:hover":{backgroundColor:"#EEF3F9",borderRadius:"4px"}},padding:{padding:e.spacing(0,6,3,6)},moreAppContainer:{height:`calc(100vh - ${0===t?175:1===t?275:2===t?395:500}px - 66px - 10px - 55px)`,minHeight:3===t?300:0,overflow:"overlay",overflowX:"hidden"},relativeParent:{position:"relative"},noMoreApps:{padding:e.spacing(0,9,3,9)},noSelect:{userSelect:"none",paddingTop:"16px"},gridTitle:{padding:"24px 30px 32px 30px",margin:"-5px 0 -5px","& > $noSelect":{marginBottom:15}},appItemDivider:{margin:e.spacing(0,6)}}));function AppList({title:e,selectedAppId:t,onSelectApplication:n,applications:r=[],useGrid:i=!1,row:o=0}){const a=useStyles$a({row:o})["classes"],[s,l]=react.exports.useState(t),[c,u]=react.exports.useState([]);function d(e){l(e),n(e)}function p(e,t){return e.name>t.name?1:e.name<t.name?-1:0}return react.exports.useEffect(()=>{if(0<r.length){const t=[...r];var e=t.sort(p);u(e)}},[r]),react.exports.useEffect(()=>{t!==s&&l(t)},[t,s]),jsxRuntime.exports.jsxs("div",Object.assign({className:classnames({[a.gridTitle]:i},a.tabsContainer)},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:classnames({[a.padding]:!i},a.noSelect)},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h3",sx:{marginBottom:"10px"}},{children:e}))})),i&&jsxRuntime.exports.jsx("div",Object.assign({className:a.gridContainer},{children:jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0},{children:0===r.length?jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.Xzhf45",defaultMessage:"No Applications",description:"the label no app will show if we have no application for grid view"})})):0<c.length&&c.map((e,t)=>{var{id:e=t,iconUrl:t,name:n}=e;return jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:4},{children:jsxRuntime.exports.jsx("div",Object.assign({className:a.gridItem},{children:jsxRuntime.exports.jsx(AppIcon,{type:"grid",selected:e===s,onClick:d,iconUrl:t,id:e,appName:n})}))}),e)})}))})),!i&&jsxRuntime.exports.jsx("div",Object.assign({className:a.listContainer},{children:0===r.length?jsxRuntime.exports.jsx("div",Object.assign({className:a.noMoreApps},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.dyhBih",defaultMessage:"No Applications",description:"the label no app will show if we have no application for list view"})}))})):jsxRuntime.exports.jsx("div",Object.assign({className:a.moreAppContainer},{children:0<r.length&&r.sort(p).map((e,t)=>{var{id:e=t,iconUrl:n,name:r}=e;return jsxRuntime.exports.jsxs("div",Object.assign({className:a.relativeParent},{children:[jsxRuntime.exports.jsx(AppIcon,{type:"list",selected:e===s,onClick:d,iconUrl:n,id:e,appName:r}),jsxRuntime.exports.jsx(Divider$1,{className:a.appItemDivider})]}),e+"_"+t)})}))}))]}))}const useStyles$9=makeStyles()(e=>({tabsBox:{height:"100%"},fullHeight:{height:"100%"},listContainer:{overflow:"hidden",height:"calc(100vh - 64px - 55px - 5px)",overflowY:"scroll"},skeletonContainer:{position:"absolute",width:"100%",height:"100%",zIndex:5,backgroundColor:"white"}}));function ApplicationPanel$1({selectedAppId:e,onChangeTab:t,recentApplist:n=[],applications:r=[],onClickApp:i}){useStyles$9(),useSelector(preferredLanguageSelector);const[o,a]=react.exports.useState(0===n.length?0:n.length<4?1:2),[s,l]=(react.exports.useEffect(()=>{var e=0===n.length?0:n.length<4?1:2;a(e)},[n]),react.exports.useState(e));function c(e){l(e),null!=t&&t(e),null!=i&&i(e)}return react.exports.useEffect(()=>{e!==s&&l(e)},[e,s]),jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(AppList,{useGrid:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.name.recentApps",defaultMessage:"Recent Applications",description:"Header title of recent apps"}),type:"Recent",applications:n,onSelectApplication:c,selectedAppId:null})}),jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(AppList,{useGrid:!1,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.name.moreApps",defaultMessage:"More Applications",description:"Header title of more apps"}),type:"More",applications:r,onSelectApplication:c,selectedAppId:null,row:o})})]})}const useStyles$8=makeStyles()((e,{sortOrder:t,hasApps:n,menuIsOpen:r})=>({root:{},groupContainer:{padding:"0 15px"},title:{fontWeight:700,padding:"15px"},groupTitle:{background:"#F9F9F9",paddingLeft:"5px",position:"relative",height:"16px","& .Sdk-MuiTypography-root":{fontSize:"10px",fontWeight:700,lineHeight:"10px",position:"absolute",margin:"3px"}},filterIcon:{display:"flex",flexDirection:"column",justifyContent:"center","& svg":{transform:"asc"===t?"scaleY(-1)":"scaleY(1)",cursor:n?"pointer":"not-allowed"}},filterIconWrapper:{width:"24px",height:"24px",borderRadius:"24px",background:r?"rgba(228, 240, 252, 0.8)":"unset","& path":{fill:r?"#0C53B0":"#555F7C"},"&:hover":{background:"rgba(228, 240, 252, 0.8)","& path":{fill:"#0C53B0"}}},searchBox:{display:"flex",flexDirection:"column",justifyContent:"center","& .Sdk-MuiOutlinedInput-root":{borderRadius:"1em",height:"30px"},"& .Sdk-MuiButtonBase-root":{padding:0},"& svg":{width:"14px"},"& input":{"&::placeholder":{color:"#5C6269 !important",fontWeight:600,opacity:1}},"& .Sdk-MuiOutlinedInput-notchedOutline":{borderColor:"#D5DFE9"}},searchInput:{fontSize:"11px","&::placeholder":{color:"#5C6269 !important"}},sortMenu:{width:"143px"}})),SHARED_TEXT={buttonLink:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.aaaaa1",defaultMessage:"Link",description:"label of link open id connector button on profile panel"}),buttonUnlink:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.L4gr2p",defaultMessage:"Unlink",description:"label of unlink open id connector button on profile panel"}),basicInfoTabLabel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.lpZXMT",defaultMessage:"Basic Info",description:"Personal Profile: Basic info name, email etc"}),accountLinkingTabLabel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.AgbO9g",defaultMessage:"Account Linking",description:"Personal Profile: Open ID Connector Account Linking"}),settingsTabLabel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.oYYEos",defaultMessage:"Settings",description:"Profile Settings"}),accountLinkingLabel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.JxMDBr",defaultMessage:"Link your Account",description:"label of manage basic infomation container"}),accountLinkingDescription:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.77MHtz",defaultMessage:"View your accounts from other identify providers that are linked with this account.",description:"description of manage account linking"}),unlinkDialogTitle:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.naysir",defaultMessage:"Unlink this Identity Provider?",description:"title for unlink identity provider"}),unlinkDialogContent:e=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.dwZfY7",defaultMessage:"Are you sure you want to unlink {name} from your account?",description:"content for unlink identity provider",values:{name:e||""}}),unlinkDialogCancel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.SNjPPT",defaultMessage:"Cancel",description:"cancel for unlink identity provider"}),unlinkDialogConfirm:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.KJyVd9",defaultMessage:"Yes, Unlink",description:"confirm for unlink identity provider"}),successDialogTitle:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.ZaKL3e",defaultMessage:"Account Successfully linked!",description:"title for success identity provider"}),successDialogContent:e=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.IP+fpM",defaultMessage:"You can now log into this account using {name}.",description:"content for success identity provider",values:{name:e||""}}),successDialogConfirm:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.1DTtvD",defaultMessage:"Okay",description:"confirm for success identity provider"}),nullState:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.u6gP99",defaultMessage:"Your account currently has no available account linking options",description:"account linking null state"}),errorState:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.KG2JIz",defaultMessage:"There was an error while loading the available account linking options",description:"account linking error state"}),retry:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.IYUdD6",defaultMessage:"Retry",description:"account linking retry"}),settingsHeader:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.IIE3bM",defaultMessage:"Application Preferences",description:"account settings header"}),settingsSubHeader:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.9xcAYc",defaultMessage:"Manage the settings of aiWARE services and applications.",description:"account settings sub header"})},translatableTextProps=e=>({searchLabel:e.formatMessage({id:"os-app-bar-panel.search.label",defaultMessage:[{type:0,value:"Search"}]})});function AppListV2({intl:e,selectedAppId:t,onSelectApplication:n,applications:i=[]}){const[r,o]=react.exports.useState(t),[a,s]=react.exports.useState({}),[l,c]=react.exports.useState(""),[u,d]=react.exports.useState("asc");var p=0!==i.length;function f(e){o(e),n(e)}function h(e,t){return e.name>t.name?1:e.name<t.name?-1:0}react.exports.useEffect(()=>{if(0<i.length){const t=[...i];const n={};for(const r of t.sort(h)){var e=r.name.charAt(0).toUpperCase();n[e]?n[e]=[...n[e],r]:n[e]=[r]}s(n)}},[i]),react.exports.useEffect(()=>{t!==r&&o(t)},[t,r]);e=translatableTextProps(e).searchLabel;const[m,g]=react.exports.useState(null);var y=Boolean(m);const v=e=>{if(e!==u){d(e);const t=Object.keys(a).reverse(),n={};t.forEach(e=>n[e]=a[e].reverse()),s(n)}g(null)},x=useStyles$8({sortOrder:u,hasApps:p,menuIsOpen:y})["classes"];p=jsxRuntime.exports.jsxs(Menu$1,Object.assign({id:"app-switcher.sort-menu",anchorEl:m,open:y,onClose:v},{children:[jsxRuntime.exports.jsx(MenuItem$1,Object.assign({onClick:()=>v("asc"),className:x.sortMenu},{children:"A - Z"})),jsxRuntime.exports.jsx(MenuItem$1,Object.assign({onClick:()=>v("desc"),className:x.sortMenu},{children:"Z - A"}))]}));return jsxRuntime.exports.jsxs("div",Object.assign({className:x.root,"data-testid":"os-app-bar-panel.app-switcher.applications-container"},{children:[jsxRuntime.exports.jsxs(Grid$1,Object.assign({container:!0,spacing:2},{children:[jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:5},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:x.title},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-switcher.applications-title",defaultMessage:"Applications",description:"Applications list title"})}))})),jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:5,className:x.searchBox},{children:jsxRuntime.exports.jsx(TextField$1,{"data-testid":"os-app-bar-panel.app-switcher.search",onChange:e=>{c(e.target.value)},placeholder:e,InputProps:{classes:{input:x.searchInput},startAdornment:jsxRuntime.exports.jsx(InputAdornment$1,Object.assign({position:"start"},{children:jsxRuntime.exports.jsx(IconButton$1,{children:jsxRuntime.exports.jsx(default_1$4,{})})}))}})})),jsxRuntime.exports.jsxs(Grid$1,Object.assign({item:!0,xs:2,className:x.filterIcon},{children:[jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-switcher.sort-btn",defaultMessage:"Sort",description:"Application sort button"})},{children:jsxRuntime.exports.jsx("div",Object.assign({className:x.filterIconWrapper},{children:jsxRuntime.exports.jsx(SortArrow,{onClick:e=>{i.length&&g(e.currentTarget)},className:x.filterIcon,"data-testid":"os-app-bar-panel.app-switcher.sort"})}))})),p]}))]})),jsxRuntime.exports.jsx("div",{children:0===i.length?jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.dyhBih",defaultMessage:"No Applications",description:"the label no app will show if we have no application for list view"})}))}):jsxRuntime.exports.jsx("div",Object.assign({className:x.groupContainer},{children:0<Object.keys(a).length&&Object.entries(a).map(([e,t])=>t.filter(e=>e.name.toLowerCase().includes(l.toLowerCase())).length?jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx("div",Object.assign({className:x.groupTitle,"data-testid":"os-app-bar-panel.app-switcher.group-title"},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"overline"},{children:e}))})),t.filter(e=>e.name.toLowerCase().includes(l.toLowerCase())).map((e,t)=>{var{id:e=t,iconUrl:t,name:n}=e;return jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"os-app-bar-panel.app-switcher.app-row"},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(AppIcon,{type:"list",selected:e===r,onClick:f,iconUrl:t,id:e,appName:n,appListV2:!0})}),jsxRuntime.exports.jsx(Divider$1,{})]}),e)})]},e):null)}))})]}))}var AppListV2$1=injectIntl(AppListV2);const useStyles$7=makeStyles()(e=>({root:{height:"calc(100vh - 64px - 55px - 5px)",overflowY:"scroll",borderRight:"15px solid #F9F9F9",boxShadow:"0px 1px 1px #809cb7"},appTile:{overflow:"hidden"},title:{fontWeight:900,padding:"15px"},helperText:{paddingLeft:"15px",fontSize:"12px",fontWeight:"bold"},noApps:{textAlign:"center",marginTop:"30px","& svg":{width:"160px",height:"160px",marginBottom:"20px"}}})),RecentApps=({apps:e=[],onSelectApplication:t,selectedAppId:n})=>{const i=useStyles$7()["classes"],[o,r]=react.exports.useState(n);function a(e){r(e),t(e)}return jsxRuntime.exports.jsxs("div",Object.assign({className:i.root,"data-testid":"app-switcher.recent-apps.container"},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:i.title},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"app-bar.app-switcher.recent-apps",defaultMessage:"Recent Applications",description:"Recent Application container title"})})),e.length?jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0,sx:{paddingLeft:"10px"}},{children:e.map((e,t)=>{var{id:t=t,iconUrl:n,name:r}=e;return jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:4,className:i.appTile,sx:{padding:0},"data-testid":"app-switcher.recent-apps.app-tile"},{children:jsxRuntime.exports.jsx(AppIcon,{type:"switcherGrid",selected:t===o,onClick:a,iconUrl:n,id:t,appName:r,appListV2:!0})}),e.id)})})):jsxRuntime.exports.jsxs("div",Object.assign({className:i.noApps},{children:[jsxRuntime.exports.jsx(NoApps,{fontSize:"large"}),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:i.helperText},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"app-bar.app-switcher.no-recent-apps",defaultMessage:"You haven’t viewed any applications yet.",description:"No Recent Application title"})}))]}))]}))};function ApplicationPanel({selectedAppId:e,onChangeTab:t,recentApplist:n=[],applications:r=[],onClickApp:i}){var o=useStyles$9()["classes"],a=useSelector(preferredLanguageSelector);const s=AIWareFormatMessage(a),[l,c]=react.exports.useState(0===n.length?0:n.length<4?1:2),[u,d]=(react.exports.useEffect(()=>{var e=0===n.length?0:n.length<4?1:2;c(e)},[n]),react.exports.useState(e));function p(e){d(e),null!=t&&t(e),null!=i&&i(e)}return react.exports.useEffect(()=>{e!==u&&d(e)},[e,u]),jsxRuntime.exports.jsx("div",Object.assign({className:o.fullHeight},{children:jsxRuntime.exports.jsxs(Grid$1,Object.assign({container:!0,className:o.fullHeight},{children:[jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:6,className:o.fullHeight},{children:jsxRuntime.exports.jsx(RecentApps,{apps:n,onSelectApplication:p,selectedAppId:null})})),jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:6,className:o.fullHeight},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.listContainer},{children:jsxRuntime.exports.jsx(AppListV2$1,{title:s({id:"os-app-bar-panel.name.moreApps",defaultMessage:[{type:0,value:"More Applications"}]}),type:"More",applications:r,onSelectApplication:p,selectedAppId:null,row:l})}))}))]}))}))}const useStyles$6=makeStyles()(e=>({root:{width:"100%",height:"calc(100% - 30px)"},tabs:{margin:e.spacing(6)},tabPanels:{width:"100%",height:"calc(100% - 80px)"},logRoot:{padding:e.spacing(0,6)},logHeader:{display:"flex",justifyContent:"space-between"},logTitleText:{paddingTop:"4px"},logContent:{marginTop:"12px"},overviewRoot:{padding:e.spacing(0,6),height:"100%"},overviewHeader:{display:"flex",justifyContent:"space-between"},overviewTitleText:{fontWeight:600},overviewContent:{width:"100%",height:"calc(100% - 50px)",display:"flex",flexDirection:"column",overflowY:"auto"},overviewLineChart:{padding:e.spacing(6,0),flex:1},overviewPieChart:{marginTop:0}})),filters$1=[{value:"all",title:"View Current Week"},{value:"no data",title:"View Current Month"}];function Overview(){var e=useStyles$6()["classes"];const[t,n]=react.exports.useState("all");return jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.overviewRoot,"data-testid":"performance-monitor-overview"},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.overviewHeader},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:e.overviewTitleText},{children:"CPU Load"})),jsxRuntime.exports.jsx(Filter,{data:filters$1,filter:t,onFilter:e=>{n(e.target.value)}})]})),jsxRuntime.exports.jsx(Box$1,{className:e.overviewContent})]}))}const useStyles$5=makeStyles()(e=>({table:{minWidth:650},SdkTableCellData:{fontSize:12,color:"#000"},SdkTableCellHeader:{fontSize:12,color:"#9CA8B4",borderBottom:"none",paddingBottom:0},SdkTableCellAvatar:{width:"32px",padding:e.spacing(3,0,3,1)},smallAvatar:{width:32,height:32},SdkTableCellStatus:{color:"#219653",textTransform:"capitalize"},SdkTableCellStatusDeactived:{color:"#8D0707",textTransform:"capitalize"}}));function MuiTable({columns:t=[],data:e=[]}){const r=useStyles$5()["classes"];return jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsxs(Table$1,Object.assign({className:r.table,"aria-label":"simple table"},{children:[jsxRuntime.exports.jsx(TableHead$1,{children:jsxRuntime.exports.jsx(TableRow$1,{children:t.map((e,t)=>jsxRuntime.exports.jsx(TableCell$1,Object.assign({classes:{root:r.SdkTableCellHeader},align:e.align},{children:e.label}),t))})}),jsxRuntime.exports.jsx(TableBody$1,{children:e.map((n,e)=>jsxRuntime.exports.jsx(TableRow$1,{children:t.map((e,t)=>"avatar"===e.value?jsxRuntime.exports.jsx(TableCell$1,Object.assign({padding:"checkbox",classes:{root:classnames(r.SdkTableCellData,r.SdkTableCellAvatar)},align:"right"},{children:jsxRuntime.exports.jsx(Avatar$1,{alt:"",src:n[e.value],className:r.smallAvatar})}),t):"status"===e.value?jsxRuntime.exports.jsx(TableCell$1,Object.assign({padding:"checkbox",classes:{root:r.SdkTableCellData},align:e.align},{children:jsxRuntime.exports.jsx("span",Object.assign({className:"deactived"===n[e.value]||"failed"===n[e.value]?r.SdkTableCellStatusDeactived:r.SdkTableCellStatus},{children:n[e.value]}))}),t):jsxRuntime.exports.jsx(TableCell$1,Object.assign({classes:{root:r.SdkTableCellData},align:e.align},{children:n[e.value]}),t))},e))})]}))})}const data$1=[1,2,3,4,5,6,7,8].map(e=>[{name:"LogoGrab - V3F - "+e,engineId:"0006676754"+e,jobId:"20104106_6WnM4rGlXj",status:"Pending",duration:"1s",appName:"Attribute"}]),columns=[{value:"name",label:"Engine Name",align:"left"},{value:"engineId",label:"Engine ID",align:"left"},{value:"jobId",label:"Job ID",align:"left"},{value:"status",label:"Status",align:"left"},{value:"duration",label:"Time",align:"left"},{value:"appName",label:"App Name",align:"left"}],filters=[{value:"all",title:"View All Applications"},{value:"no data",title:"Active Applications"}];function PerformanceLogs(){var e=useStyles$6()["classes"];const[t,n]=react.exports.useState("all");return jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.logRoot,"data-testid":"performance-monitor-logs"},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.logHeader},{children:[jsxRuntime.exports.jsx(Filter,{data:filters,filter:t,onFilter:e=>{n(e.target.value)}}),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:e.logTitleText},{children:"Last 24 Hours"}))]})),jsxRuntime.exports.jsx(Box$1,Object.assign({className:e.logContent},{children:jsxRuntime.exports.jsx(MuiTable,{columns:columns,data:data$1})}))]}))}const Resources=()=>jsxRuntime.exports.jsx("div",Object.assign({"data-testid":"performance-monitor-resources"},{children:"Resources"}));function PerformanceErrors(){return jsxRuntime.exports.jsx("div",Object.assign({"data-testid":"performance-monitor-errors"},{children:"Performance Errors"}))}const tabsList$1=[{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.xgDIjO",defaultMessage:"Overview",description:"tab label: Overview"}),disabled:!1},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.NXAxMt",defaultMessage:"Logs",description:"tab label: Logs"}),disabled:!1},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.Mxysi8",defaultMessage:"Resources",description:"tab label: Resources"}),disabled:!0},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.Qj95LF",defaultMessage:"Errors",description:"tab label: Errors"}),disabled:!0}];function PerformanceMonitor(){var e=useStyles$6()["classes"];const[t,n]=react.exports.useState(0);return jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.root,"data-testid":"performance-monitor"},{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:e.tabs},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:t,onChangeTab:e=>{n(Number(e))},tabsList:tabsList$1})})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.tabPanels},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:t,index:0},{children:jsxRuntime.exports.jsx(Overview,{})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:t,index:1},{children:jsxRuntime.exports.jsx(PerformanceLogs,{})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:t,index:2},{children:jsxRuntime.exports.jsx(Resources,{})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:t,index:3},{children:jsxRuntime.exports.jsx(PerformanceErrors,{})}))]}))]}))}const useStyles$4=makeStyles()(e=>({root:{display:"flex",justifyContent:"center"},changeAvatarIcon:{color:"#121212 !important",backgroundColor:"#ffffff !important",padding:e.spacing(1.2)+" !important","&:hover":{backgroundColor:"#ffffff !important"}},avatarLarge:{color:e.palette.secondary.main,backgroundColor:"#ffffff !important",fontSize:"30px !important",width:"84px !important",height:"84px !important",border:"5px solid #E8E8E8"}})),AvatarProfile=({avatar:e,sortName:t,onEditAvatarClick:n,loadingStatus:r})=>{var i=useStyles$4()["classes"];return jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("div",Object.assign({className:i.root},{children:jsxRuntime.exports.jsx(Badge$1,Object.assign({"data-test":"dt-button-upload-avatar-icon",overlap:"circular","data-testid":"dt-button-upload-avatar-icon",anchorOrigin:{vertical:"bottom",horizontal:"right"},badgeContent:jsxRuntime.exports.jsx(IconButton$1,Object.assign({color:"primary","aria-label":"upload picture",className:i.changeAvatarIcon,onClick:()=>{n()},"data-test":"app-bar-update-avatar",size:"large","data-testid":"app-bar-update-avatar"},{children:jsxRuntime.exports.jsx("img",{src:img$16,alt:""})}))},{children:"loading"===r?jsxRuntime.exports.jsx(CircularProgress$1,{}):e?jsxRuntime.exports.jsx(Avatar$1,{"data-test":"dt-user-avatar-image",src:e,className:i.avatarLarge}):jsxRuntime.exports.jsx(Avatar$1,Object.assign({className:i.avatarLarge},{children:null==t?void 0:t.toUpperCase()}))}))}))})},useStyles$3$1=makeStyles()(e=>({container:{marginTop:e.spacing(4),padding:e.spacing(4,4),textAlign:"center",border:"0.5px solid #D5DFE9",borderRadius:e.spacing(2)},text:{marginTop:e.spacing(3)},icon:{display:"inline !important"}})),NullState=()=>{var e=useStyles$3$1()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:e.container},{children:[jsxRuntime.exports.jsx(Icon$1,Object.assign({className:e.icon},{children:jsxRuntime.exports.jsx(NoLink,{fontSize:"large"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:e.text},{children:SHARED_TEXT.nullState()})),jsxRuntime.exports.jsx(Box$1,{mb:9})]}))},ErrorState=({onRetry:e})=>{var t=useStyles$3$1()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:t.container},{children:[jsxRuntime.exports.jsx(Icon$1,Object.assign({className:t.icon},{children:jsxRuntime.exports.jsx(AlarmTwo,{fontSize:"large"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:t.text,"data-test":"account-linking-error-message"},{children:SHARED_TEXT.errorState()})),jsxRuntime.exports.jsx(Box$1,{mt:4}),jsxRuntime.exports.jsx(Button$1,Object.assign({variant:"text",size:"large","data-test":"account-linking-retry-btn",onClick:e},{children:SHARED_TEXT.retry()}))]}))};var LoadingStatus,useStyles$2$2=makeStyles()(e=>({accountLinkingLabel:{fontWeight:"normal",userSelect:"none"},openIdLogo:{width:e.spacing(5),height:e.spacing(5),backgroundColor:"#ffffff",color:"#555F7C"},listAvatar:{minWidth:"45px"},openIdContainer:{marginTop:e.spacing(3)},openIdItem:{padding:e.spacing(3)+"px 0px"},openIdTextContainer:{marginLeft:e.spacing(3.5),display:"inline-block",verticalAlign:"top"},secondaryAction:{right:"0"},linkBtn:{textTransform:"capitalize"},linkIcon:{marginRight:e.spacing(1),color:e.palette.primary.main},dialogTitle:{padding:`${e.spacing(6)} ${e.spacing(6)} ${e.spacing(1)}px !important `},dialogContent:{padding:`${e.spacing(1)} ${e.spacing(6)} !important `},dialogTitleText:{fontWeight:600},dialogAction:{padding:e.spacing(4)},displayNone:{display:"none"},displayInlineBlock:{display:"inline-block"}}));const OpenIdConnectorButton=({isConnected:e,onLink:t,onUnlink:n})=>{var r=useStyles$2$2()["classes"];return jsxRuntime.exports.jsx("div",{children:e?jsxRuntime.exports.jsx(Button$1,Object.assign({className:r.linkBtn+" "+r.displayNone,variant:"text","data-test":"account-linking-unlink-btn",onClick:n},{children:SHARED_TEXT.buttonUnlink()})):jsxRuntime.exports.jsxs(Button$1,Object.assign({variant:"outlined",color:"primary",className:r.linkBtn,"data-test":"account-linking-link-btn",onClick:t},{children:[jsxRuntime.exports.jsx(default_1$3,{className:r.linkIcon}),SHARED_TEXT.buttonLink()]}))})};function OpenIdConnectors({openIdItems:o,onOpenUnlinkModal:a,onClickOpenIdUrl:s,isOpenIdConnected:l}){const c=useStyles$2$2()["classes"];return jsxRuntime.exports.jsx(List$2,{children:o.map((e,t)=>{const{name:n,loginButtonStyle:r}=e;var i=null==r?void 0:r.btnLogo;return jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsxs(ListItem$1,Object.assign({className:c.openIdItem},{children:[jsxRuntime.exports.jsx(ListItemAvatar$1,Object.assign({className:c.listAvatar},{children:jsxRuntime.exports.jsx(Avatar$1,Object.assign({className:c.openIdLogo,src:i},{children:jsxRuntime.exports.jsx(OrgFilled,{})}))})),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:25<n.length?n:"",placement:"bottom-end"},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:c.accountLinkingLabel},{children:25<n.length?n.substring(0,25)+"...":n}))}))}),jsxRuntime.exports.jsx(ListItemSecondaryAction$1,Object.assign({className:c.secondaryAction},{children:jsxRuntime.exports.jsx(OpenIdConnectorButton,{isConnected:l(e.connectId),onLink:()=>s(e),onUnlink:()=>a(e)})}))]})),t!==o.length-1&&jsxRuntime.exports.jsx(Divider$1,{})]})})})}const LoaderSkeletonItem=()=>{var e=useStyles$2$2()["classes"];return jsxRuntime.exports.jsxs(ListItem$1,Object.assign({className:e.openIdItem},{children:[jsxRuntime.exports.jsx(ListItemAvatar$1,Object.assign({className:e.listAvatar},{children:jsxRuntime.exports.jsx(Skeleton$1,{variant:"circular",width:25,height:25})})),jsxRuntime.exports.jsx(ListItemText$1,{children:jsxRuntime.exports.jsx(Skeleton$1,{variant:"text",width:150,height:21})}),jsxRuntime.exports.jsx(ListItemSecondaryAction$1,Object.assign({className:e.secondaryAction},{children:jsxRuntime.exports.jsx(Skeleton$1,{variant:"rectangular",width:87,height:35})}))]}))},LoaderSkeleton=()=>jsxRuntime.exports.jsxs(List$2,{children:[jsxRuntime.exports.jsx(LoaderSkeletonItem,{}),jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx(LoaderSkeletonItem,{}),jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx(LoaderSkeletonItem,{})]}),namespace$2=(!function(e){e.Failed="failed",e.Idle="idle",e.Pending="pending"}(LoadingStatus=LoadingStatus||{}),"openId"),selectOpenIdConnectors=e=>{return null==(e=null==e?void 0:e[namespace$2])?void 0:e.openIdConnectors},selectConnectedOpenIds=e=>{return null==(e=null==e?void 0:e[namespace$2])?void 0:e.connectedOpenIds},selectLoadingStatus=e=>{return null==(e=null==e?void 0:e[namespace$2])?void 0:e.status},GET_OPEN_ID_CONNECTORS=`aiware/${namespace$2}/get open id connectors`,GET_OPEN_ID_SUCCESS=`aiware/${namespace$2}/get open id connectors success`,GET_CONNECTED_OPEN_ID_SUCCESS=`aiware/${namespace$2}/get connected open id connectors success`,GET_OPEN_ID_ERROR=`aiware/${namespace$2}/get open id connectors error`;function getOpenIdConnectors(){return{type:GET_OPEN_ID_CONNECTORS}}function getOpenIdConnectorSuccess(e){return{type:GET_OPEN_ID_SUCCESS,payload:{data:e}}}function getConnectedOpenIdsSuccess(e){return{type:GET_CONNECTED_OPEN_ID_SUCCESS,payload:{data:e}}}function getOpenIdConnectorError(e){return{type:GET_OPEN_ID_ERROR,payload:{message:e}}}const AccountLinking=()=>{const e=useDispatch(),[t,n]=react.exports.useState(!1),[r,i]=react.exports.useState(!1),[o,a]=react.exports.useState(null);const[s,l]=react.exports.useState({}),[c,u]=react.exports.useState(),d=useSelector(selectLoadingStatus)||"",p=useSelector(selectOpenIdConnectors)||[],f=useSelector(selectConnectedOpenIds)||[];var h=useStyles$2$2()["classes"];react.exports.useEffect(()=>{e(getOpenIdConnectors())},[e]);const m=e=>{l(e),n(!0)};var g=()=>{n(!1)},y=()=>{i(!1)};const v=()=>{e(getOpenIdConnectors())},x=(useInterval(()=>{e(getOpenIdConnectors())},o),e=>{l(e);e=window.open(e.loginUrl);u(e),a(2e3)}),C=react.exports.useCallback(t=>f.some(e=>e.connectId===t),[f]);react.exports.useEffect(()=>{""!==s.connectId&&null!==o&&C(s.connectId)&&(a(null),null!==c&&void 0!==c&&c.close(),i(!0))},[C,e]);return jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:h.accountLinkingLabel,"data-test":"account-linking-label"},{children:SHARED_TEXT.accountLinkingLabel()})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:SHARED_TEXT.accountLinkingDescription()})),d===LoadingStatus.Pending?jsxRuntime.exports.jsx(LoaderSkeleton,{}):d===LoadingStatus.Failed?jsxRuntime.exports.jsx(ErrorState,{onRetry:v}):0===p.length?jsxRuntime.exports.jsx(NullState,{}):jsxRuntime.exports.jsx(OpenIdConnectors,{openIdItems:p,onOpenUnlinkModal:m,onClickOpenIdUrl:x,isOpenIdConnected:C}),jsxRuntime.exports.jsxs(Dialog$1,Object.assign({open:t,maxWidth:"xs",onClose:g,"aria-labelledby":"unlink-dialog-title","aria-describedby":"unlink-dialog-description"},{children:[jsxRuntime.exports.jsx(DialogTitle$1,Object.assign({id:"unlink-dialog-title","data-test":"account-linking-unlink-dialog-title",className:h.dialogTitle},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h2",className:h.dialogTitleText},{children:SHARED_TEXT.unlinkDialogTitle()}))})),jsxRuntime.exports.jsx(DialogContent$1,Object.assign({className:h.dialogContent},{children:jsxRuntime.exports.jsx(DialogContentText$1,Object.assign({id:"unlink-dialog-description"},{children:SHARED_TEXT.unlinkDialogContent(s.name)}))})),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:h.dialogAction},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:g,variant:"text",size:"large",className:h.linkBtn,"data-test":"account-linking-unlink-dialog-cancel-btn"},{children:SHARED_TEXT.unlinkDialogCancel()})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:g,size:"large",variant:"contained",color:"primary",className:h.linkBtn,"data-test":"account-linking-unlink-dialog-confirm-btn"},{children:SHARED_TEXT.unlinkDialogConfirm()}))]}))]})),jsxRuntime.exports.jsxs(Dialog$1,Object.assign({open:r,maxWidth:"xs",onClose:y,"aria-labelledby":"success-dialog-title","aria-describedby":"success-dialog-description"},{children:[jsxRuntime.exports.jsx(DialogTitle$1,Object.assign({id:"success-dialog-title",className:h.dialogTitle,"data-test":"account-linking-success-dialog-title"},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h2",className:h.dialogTitleText},{children:SHARED_TEXT.successDialogTitle()}))})),jsxRuntime.exports.jsx(DialogContent$1,Object.assign({className:h.dialogContent},{children:jsxRuntime.exports.jsx(DialogContentText$1,Object.assign({id:"success-dialog-description"},{children:SHARED_TEXT.successDialogContent(s.name)}))})),jsxRuntime.exports.jsx(DialogActions$1,Object.assign({className:h.dialogAction},{children:jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:y,size:"large",variant:"contained",color:"primary",className:h.linkBtn,"data-test":"account-linking-success-dialog-confirm-btn"},{children:SHARED_TEXT.successDialogConfirm()}))}))]}))]})};var useStyles$1$2=makeStyles()(e=>({personalProfileContainer:{overflowY:"auto"},firstBox:{paddingTop:e.spacing(6),textAlign:"center",borderBottom:"0.5px solid "+e.palette.divider},loggedBox:{fontWeight:400,paddingTop:e.spacing(2),paddingBottom:e.spacing(5)},email:{color:e.palette.primary.main},logoutBox:{paddingBottom:e.spacing(8)},btnLogin:{textTransform:"capitalize",fontSize:"14px",lineHeight:"19px",padding:e.spacing(1,7)},secondBox:{padding:e.spacing(5,6),"& div":{height:"auto !important"}},headerBox:{display:"flex"},editIconBox:{margin:e.spacing(0,-2.4,0,0)},descBox:{fontSize:"14px",color:e.palette.secondary.main},formBox:{marginTop:e.spacing(4)},formItem:{borderBottom:"0.5px solid "+e.palette.divider,marginBottom:e.spacing(4)},formItemPw:{marginBottom:e.spacing(4)+" !important"},titleItem:{color:e.palette.text.disabled,marginBottom:e.spacing(2),cursor:"default"},valueItem:{fontWeight:"normal",color:e.palette.text.secondary,marginBottom:e.spacing(2)},disabledText:{opacity:.6},lastUpdate:{color:"#9CA8B4"},reset:{color:e.palette.primary.main,opacity:.9,marginTop:"35px",cursor:"pointer"},passwordBox:{display:"flex",justifyContent:"space-between",alignItems:"center"},iconResetPw:{margin:"-18px -12px 0 0"},textField:{marginLeft:0,marginRight:0,marginTop:0,marginBottom:"30px",width:"100%"},actionForm:{padding:0,marginBottom:e.spacing(4)},inputBase:{padding:e.spacing(3.4,2.8)},notchedOutline:{"& legend":{height:"16px"}},btnAction:{textTransform:"capitalize",fontSize:"14px",lineHeight:"19px"},btnSave:{marginLeft:e.spacing(1.6)},btnActionCancel:{color:e.palette.secondary.main},pwResetTitle:{color:"#D43060 !important"},pwResetDes1:{marginBottom:"20px"},mainTitleText:{color:e.palette.text.secondary,userSelect:"none",fontSize:"18px",lineHeight:"23px",letterSpacing:"0.25px",textTransform:"uppercase"},contentUserView:{height:"100%",textAlign:"left",position:"relative"},headerDrawer:{padding:e.spacing(3,6),display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider},contentEditAvatar:{padding:e.spacing(6)},areaUpload:{background:e.palette.background.default,textAlign:"center",height:"300px",border:"1px solid "+e.palette.divider,boxSizing:"border-box",borderRadius:"4px",padding:e.spacing(10)},descDrag:{fontSize:"16px",color:"#828282",marginBottom:e.spacing(4)},descDrag2:{color:"#828282",margin:e.spacing(4,0)},btnSelectPhoto:{textTransform:"capitalize",fontSize:"14px",lineHeight:"19px"},recentlyBox:{marginTop:e.spacing(4)},recentlyText:{margin:e.spacing(2,0)},imgRecently:{width:"113px",height:"113px",background:"#C4C4C4",borderRadius:"4px"},imgRecentlyRow:{display:"flex",justifyContent:"space-between",marginBottom:"20px"},resetBiometric:{marginTop:e.spacing(7)},actionButton:{},inputFile:{display:"none !important"},imageGrid:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:e.spacing(4)},dragging:{filter:"blur(2px)"},currentlyLoggedIn:{fontWeight:"normal",color:e.palette.info.main,lineHeight:e.spacing(3.8),display:"flex",flexDirection:"column",cursor:"default"},manageBasicInfoLabel:{fontWeight:"normal",cursor:"default"},tabsParent:{"& div":{padding:e.spacing(0,0,0,1.6),borderBottom:"none"},"& .Sdk-MuiTab-root.Mui-selected":{color:e.palette.text.primary,fontWeight:600}},editProfilePictureContainer:{height:"calc(100vh - 60px)",display:"flex",flexDirection:"column",position:"relative"},editProfilePictureFooterButtons:{right:"30px",bottom:"30px",position:"absolute"}})),useStyles$e=makeStyles()(e=>({settingsHeader:{fontWeight:"normal",cursor:"default"},topMargin:{marginTop:"30px"},fullWidth:{width:"100%"},inputLabel:{fontFamily:"Nunito",fontWeight:300,display:"block",fontSize:14,color:"#5C6269",marginBottom:6},disclaimerText:{fontWeight:400,display:"block",fontSize:12,color:"#9CA8B4",marginTop:12}}));const ProfileSettings=({onPreferredLanguageChange:t,selectedLanguage:e})=>{const[n,r]=react.exports.useState("");var i=useStyles$e()["classes"];react.exports.useEffect(()=>{r(e)},[e]);const o=langs.map(({locale:e,name:t})=>({value:e,name:t}));return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:i.settingsHeader},{children:SHARED_TEXT.settingsHeader()})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:SHARED_TEXT.settingsSubHeader()})),jsxRuntime.exports.jsxs(FormControl$1,Object.assign({className:i.fullWidth+" "+i.topMargin},{children:[jsxRuntime.exports.jsx("label",Object.assign({className:i.inputLabel,htmlFor:"personal-profile-settings-preferred-language"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.preferredLanguage",defaultMessage:"Preferred Language",description:"Language selection label"})})),jsxRuntime.exports.jsx(Select$1,Object.assign({id:"personal-profile-settings-preferred-language",className:""+i.fullWidth,value:n,onChange:function(e){e=e.target.value,r(e),t(e)}},{children:null===o||void 0===o?void 0:o.map(e=>jsxRuntime.exports.jsx(MenuItem$1,Object.assign({value:null==e?void 0:e.value},{children:null==e?void 0:e.name})))})),jsxRuntime.exports.jsx(Typography$1,Object.assign({className:i.disclaimerText,variant:"subtitle1"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.preferredLanguageDisclaimer",defaultMessage:"Not all products within aiWARE may support your preferred language selection. If you choose a primary language that isn’t available, you may not see it reflected in the product you are currently viewing.",description:"Disclaimer text for preferred language"})}))]}))]})},tabsList$2=[{label:SHARED_TEXT.basicInfoTabLabel(),disabled:!1,id:"Basic Info"},{label:SHARED_TEXT.accountLinkingTabLabel(),disabled:!1,id:"Account Linking"},{label:SHARED_TEXT.settingsTabLabel(),disabled:!1,id:"Settings"}],PersonalProfile=({currentUser:e,handleResetBiometric:t,handleResetPassword:n,handleLogout:r,handleUpdateProfile:i,handleUploadAvatar:o,avatarHistory:a=[],enableResetBiometric:s=!1,loadingStatus:l})=>{var c;const u="EDIT_PROFILE_PICTURE";var d=useStyles$1$2()["classes"];const p=useDispatch();var f=useSelector(hidePasswordResetSelector)||!1,h=useSelector(preferredLanguageSelector)||"en";const[m,g]=react.exports.useState({firstName:"",lastName:"",phoneNumber:"",email:""}),[y,v]=react.exports.useState({firstName:"",lastName:"",phoneNumber:""}),[x,C]=react.exports.useState(!1),[b,$]=react.exports.useState(null),[w,S]=react.exports.useState(!1),[_,T]=react.exports.useState(!1),[E,j]=react.exports.useState(0);var I=useSelector(userAuthStatusSelector);const R=AIWareFormatMessage(h);react.exports.useEffect(()=>{e&&O(e)},[e]);const O=e=>{const{firstName:t,lastName:n,imageUrl:r,userSettings:i}=e;e=null===i||void 0===i?void 0:i.find(e=>"phoneNumber"===e.key);g({firstName:t||"",lastName:n||"",phoneNumber:(null==e?void 0:e.value)||"",email:""}),r&&$(r)};var L=react.exports.useCallback(()=>{null!=e&&e.email&&(S(!1),n(null==e?void 0:e.email))},[e,n]);var M=n=>e=>{const t=e.target.value;g(e=>Object.assign(Object.assign({},e),{[n]:t})),v(e=>Object.assign(Object.assign({},e),{[n]:""}))};const A=()=>{p(hidePanel$1(u))},k=e=>{o(e),setTimeout(()=>{p(hidePanel$1(u))},500)};I=[AuthStatus.LOGGING_OUT,AuthStatus.LOGGED_OUT].includes(I);return jsxRuntime.exports.jsxs("div",Object.assign({className:d.personalProfileContainer},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:d.firstBox},{children:[jsxRuntime.exports.jsx(AvatarProfile,{avatar:b,sortName:""+((null==(c=m.firstName)?void 0:c.substr(0,1))||"")+((null==(c=m.lastName)?void 0:c.substr(0,1))||""),onEditAvatarClick:()=>{var e={name:"EDIT_PROFILE_PICTURE",config:{name:"Veritone",dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE",onClose:A,onSaveAvatar:k,avatarHistory:a}},t={panelId:u,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,withTab:!1,marginStart:490,width:450,parentPanelId:"PERSONAL_PANEL",dimmed:0,dimmedStatus:"dimParent"};p(mountPanel$1({panelId:u,microFrontend:e,panelConfig:t}))},loadingStatus:l}),jsxRuntime.exports.jsx("div",Object.assign({className:d.loggedBox},{children:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2",className:d.currentlyLoggedIn},{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.ch1heq",defaultMessage:"Currently logged in as:",description:"personal profile panel currently logged in label"})," ",jsxRuntime.exports.jsx("span",Object.assign({"data-test":"Currently-logged-in-as-email",className:d.email},{children:null==e?void 0:e.email}))]}))})),jsxRuntime.exports.jsx("div",Object.assign({className:d.logoutBox},{children:jsxRuntime.exports.jsx(LoadingButton$1,Object.assign({onClick:r,variant:"outlined",color:"primary","data-test":"dt-button-logout",className:d.btnLogin,loading:I},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.bRcFCr",defaultMessage:"Logout",description:"label of logout button on profile panel"})}))})),jsxRuntime.exports.jsx("div",Object.assign({className:d.tabsParent},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:E,onChangeTab:e=>{j(e)},tabsList:tabsList$2})}))]})),jsxRuntime.exports.jsxs("div",Object.assign({className:d.secondBox},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:E,index:0},{children:jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:d.headerBox},{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:d.manageBasicInfoLabel},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.5oScQa",defaultMessage:"Manage Your Basic Information",description:"label of manage basic infomation container"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.DjVGBt",defaultMessage:"Basic info, like your name and photo, that you use on Veritone services.",description:"description of manage basic infomation container"})}))]}),jsxRuntime.exports.jsx("div",Object.assign({className:d.editIconBox},{children:!x&&jsxRuntime.exports.jsx(IconButton$1,Object.assign({id:"button-edit",onClick:()=>{T(!1),S(!1),C(!0)},size:"large"},{children:jsxRuntime.exports.jsx("img",{src:img$13,alt:""})}))}))]})),jsxRuntime.exports.jsxs("div",Object.assign({className:d.formBox},{children:[x?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(TextField$1,{id:"firstName",label:R({id:"os-app-bar-panel.firstName",defaultMessage:[{type:0,value:"First Name"}]}),variant:"outlined",className:d.textField,value:null===m||void 0===m?void 0:m.firstName,onChange:M("firstName"),margin:"normal",error:""!==y.firstName,helperText:y.firstName,InputProps:{classes:{input:d.inputBase,notchedOutline:d.notchedOutline}}}),jsxRuntime.exports.jsx(TextField$1,{id:"lastName",label:R({id:"os-app-bar-panel.lastName",defaultMessage:[{type:0,value:"Last Name"}]}),variant:"outlined",className:d.textField,value:null===m||void 0===m?void 0:m.lastName,onChange:M("lastName"),margin:"normal",error:""!==y.lastName,helperText:y.lastName,InputProps:{classes:{input:d.inputBase,notchedOutline:d.notchedOutline}}}),jsxRuntime.exports.jsx(TextField$1,{id:"phoneNumber",label:R({id:"os-app-bar-panel.phone",defaultMessage:[{type:0,value:"Phone"}]}),variant:"outlined",className:d.textField,value:null===m||void 0===m?void 0:m.phoneNumber,onChange:M("phoneNumber"),margin:"normal",error:""!==y.phoneNumber,helperText:y.phoneNumber,InputProps:{classes:{input:d.inputBase,notchedOutline:d.notchedOutline}}})]}),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:d.actionForm},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:()=>{e&&O(e),C(!1)},color:"primary",id:"button-cancel-edit",className:classnames(d.btnAction,d.btnActionCancel)},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.qpPFGp",defaultMessage:"Cancel",description:"label of cancel button on profile panel"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:function(){(()=>{let e=!0;return m.firstName||(v(Object.assign(Object.assign({},y),{firstName:"This field is required."})),e=!1),m.lastName||(v(Object.assign(Object.assign({},y),{lastName:"This field is required."})),e=!1),m.phoneNumber&&!/^\+?(\d){6,}$/.test(m.phoneNumber.toLowerCase())&&(v(Object.assign(Object.assign({},y),{phoneNumber:"Invalid phone number."})),e=!1),e})()&&(i(m),C(!1))},"data-test":"button-save-edit","data-testid":"button-save-edit",color:"primary",variant:"contained",className:d.btnAction},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.C1oyBr",defaultMessage:"Save",description:"label of save button on profile panel"})}))]}))]}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:d.formItem},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.titleItem},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.a5aLpI",defaultMessage:"Name",description:"label of name field on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"profile-panel-name",variant:"body1",className:d.valueItem},{children:`${(null===m||void 0===m?void 0:m.firstName)||""} `+((null===m||void 0===m?void 0:m.lastName)||"")}))]})),(null===m||void 0===m?void 0:m.phoneNumber)&&jsxRuntime.exports.jsxs("div",Object.assign({className:d.formItem},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.titleItem},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.73xPqY",defaultMessage:"Phone",description:"label of phone field on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"profile-panel-phone",variant:"body1",className:d.valueItem},{children:null===m||void 0===m?void 0:m.phoneNumber}))]}))]}),jsxRuntime.exports.jsxs("div",Object.assign({className:d.formItem},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.titleItem},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.zieKdP",defaultMessage:"Email",description:"label of email field on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"profile-panel-email",variant:"body1",className:classnames(d.valueItem,d.disabledText)},{children:null==e?void 0:e.email}))]})),w?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:d.pwResetTitle},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.I7feCi",defaultMessage:"Password Reset",description:"reset password label on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.pwResetDes1},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.Zcj+4v",defaultMessage:"Veritone will send a reset password link via the email on your account.",description:"reset password description on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.kk8TY8",defaultMessage:"Would you like to continue?",description:"confirm message of reset biometric on profile panel"})}))]}),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:d.actionForm},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:()=>{S(!1)},color:"primary","data-test":"button-cancel-reset-password","data-testid":"button-cancel-reset-password",className:classnames(d.btnAction,d.btnActionCancel)},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.hdbMmi",defaultMessage:"Cancel",description:"the label of cancel button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:L,"data-test":"button-reset-password","data-testid":"button-reset-password",color:"primary",variant:"contained",className:d.btnAction},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.ZXvsuR",defaultMessage:"Reset",description:"the label of reset button"})}))]}))]}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:classnames(d.formItem,d.formItemPw)},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.titleItem},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.uIEJAQ",defaultMessage:"Password",description:"label of pasword field on profile panel"})})),jsxRuntime.exports.jsxs("div",Object.assign({className:d.passwordBox},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:d.valueItem},{children:"********"})),!f&&jsxRuntime.exports.jsx(IconButton$1,Object.assign({id:"btn-click-pw-reset",className:d.iconResetPw,onClick:()=>{T(!1),S(!0),C(!1)},size:"large"},{children:jsxRuntime.exports.jsx("img",{src:img$12,alt:""})}))]}))]})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"subtitle1",className:d.lastUpdate},{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.qTqazR",defaultMessage:"Last updated",description:"last updated text label text on profile panel"})," ",(null!=e&&e.lastUpdated?DateTime_1.fromISO(null==e?void 0:e.lastUpdated):DateTime_1.local()).toFormat("LLL dd, yyyy")]}))})]})]})),_?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:d.resetBiometric},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:d.pwResetTitle},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.+DTt+G",defaultMessage:"Biometric Reset",description:"label of reset biometric container on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:d.pwResetDes1},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.nzzfrY",defaultMessage:"Your Biometric Profile will be reset.",description:"description of reset biometric container on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.kk8TY8",defaultMessage:"Would you like to continue?",description:"confirm message of reset biometric on profile panel"})}))]})),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:d.actionForm},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:()=>{T(!1)},"data-test":"button-cancel-reset-biometric",color:"primary",className:classnames(d.btnAction,d.btnActionCancel)},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.hdbMmi",defaultMessage:"Cancel",description:"the label of cancel button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:()=>{T(!1),t()},color:"primary",variant:"contained","data-test":"button-reset-biometric",className:d.btnAction},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.ZXvsuR",defaultMessage:"Reset",description:"the label of reset button"})}))]}))]}):!w&&s&&jsxRuntime.exports.jsx("div",Object.assign({id:"click-reset-biometric",onClick:()=>{T(!0),S(!1),C(!1)}},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.reset},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.OlJtmF",defaultMessage:"Reset Biometric Profile",description:"label of Reset Biometric Profile on profile panel"})}))}))]})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:E,index:1},{children:jsxRuntime.exports.jsx(AccountLinking,{})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:E,index:2},{children:jsxRuntime.exports.jsx(ProfileSettings,{selectedLanguage:h,onPreferredLanguageChange:e=>{p(updateUserLanguageStart(e))}})}))]}))]}))};function SettingPanel({currentUser:e,activities:t,activityFilter:n,onChangeActivityFilter:r,handleResetBiometric:i,handleResetPassword:o,handleLogout:a,handleUpdateProfile:s,tabId:l,recentApp:c,applications:u,onClickApp:d,handleUploadAvatar:p,avatarHistory:f}){const h=useSelector(userSelector$1);var m=useSelector(betaFeaturesSelector);const[g,y]=react.exports.useState("");var v=useStyles$9()["classes"];return react.exports.useEffect(()=>{y(h.loading)},[h]),jsxRuntime.exports.jsxs("div",Object.assign({className:v.tabsBox},{children:[l===TabId.PERSONAL_PANEL&&jsxRuntime.exports.jsx(PersonalProfile,{currentUser:e,handleLogout:a,handleResetBiometric:i,handleResetPassword:o,handleUpdateProfile:s,handleUploadAvatar:p,avatarHistory:f,loadingStatus:g}),l===TabId.APP_PANEL&&(m?jsxRuntime.exports.jsx(ApplicationPanel,{recentApplist:c,applications:u,onClickApp:d}):jsxRuntime.exports.jsx(ApplicationPanel$1,{recentApplist:c,applications:u,onClickApp:d})),l===TabId.ACTIVITY_PANEL&&jsxRuntime.exports.jsx(ActivityPanel,{filter:n,onChangeFilter:r,data:t||[]}),l===TabId.PERFORMANCE_MONITOR&&jsxRuntime.exports.jsx(PerformanceMonitor,{})]}))}const namespace$1$1="applications",applicationSelector=e=>{return null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$1$1]},HANDLE_CLICK_APP=`aiware/${namespace$1$1}/get handle click app`,REQUEST_GET_APPLICATION_V1=`aiware/${namespace$1$1}/request get app`,GET_APPLICATION_V1_START=`aiware/${namespace$1$1}/get app list start`,GET_APPLICATION_V1_SUCCESS=`aiware/${namespace$1$1}/get app list success`,GET_APPLICATION_V1_ERROR=`aiware/${namespace$1$1}/get app list error`;function requestGetApplications(){return{type:REQUEST_GET_APPLICATION_V1,payload:{}}}function getApplicationStart(){return{type:GET_APPLICATION_V1_START}}function getApplicationSuccess(e){return{type:GET_APPLICATION_V1_SUCCESS,payload:{data:e}}}function getApplicationError(e){return{type:GET_APPLICATION_V1_ERROR,payload:{message:e}}}const initialState$2$1={application:[],message:"",status:"idle"};function applicationReducer(e,t){if(void 0===e)return initialState$2$1;switch(t.type){case GET_APPLICATION_V1_START:return Object.assign(Object.assign({},e),{status:"loading"});case GET_APPLICATION_V1_SUCCESS:return Object.assign(Object.assign({},e),{application:t.payload.data,status:"success"});case GET_APPLICATION_V1_ERROR:return Object.assign(Object.assign({},e),{message:t.payload.message,status:"failure"});default:return e}}const namespace$4="activities",allActivitySeletor=e=>{return(null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$4])||[]},today=DateTime_1.local().startOf("day"),activitySelector=createSelector([allActivitySeletor],e=>{const{records:t,filter:n}=e;return"today"===n?t.filter(e=>DateTime_1.fromISO(e.createdDateTime).hasSame(today,"day")):t}),GET_ACTIVITY=`os-app-bar-panel/${namespace$4}/get activity`,GET_ACTIVITY_SUCCESS=`os-app-bar-panel/${namespace$4}/get activity success`,UPDATE_ACTIVITY_FILTER=`os-app-bar-panel/${namespace$4}/update activity filter`;function getActivity(){return{type:GET_ACTIVITY}}function updateActivityFilter(e){return{type:UPDATE_ACTIVITY_FILTER,payload:e}}function getActivitySuccess(e){return{type:GET_ACTIVITY_SUCCESS,payload:e}}const initialState$1$1={records:[],filter:"all",fetched:!1,fetching:!1,processing:!1};function activityReducer(e,t){if(void 0===e)return initialState$1$1;switch(t.type){case GET_ACTIVITY_SUCCESS:return Object.assign(Object.assign({},e),{records:t.payload});case UPDATE_ACTIVITY_FILTER:var n=t.payload["filter"];return Object.assign(Object.assign({},e),{filter:n});default:return e}}combineReducers({[namespace$3]:userReducer$1,[namespace$4]:activityReducer,[namespace$1$1]:applicationReducer});const nameSpace$2="aiWareHeaderBarPanel";function*handleClickAppSaga(e){yield call$7(storeRecentApplications,e.payload)}function*getApplicationsSaga(){yield put(getApplicationStart());var e=yield select(rootApiSelector),t=yield select(sessionTokenSelector);const n=yield call$7(getApplicationsApi,e,t);n&&n.results?yield put(getApplicationSuccess(((null===n||void 0===n?void 0:n.results)||[]).map(e=>({id:e.applicationId,name:e.applicationName,iconUrl:e.signedApplicationIconUrl||e.applicationIconUrl||e.applicationIconSvg,description:e.applicationDescription})))):yield put(getApplicationError("something wrong"))}function*storeRecentApplications(e){var t=yield select(userSelector$1),t=(null==(t=null==t?void 0:t.currentUser)?void 0:t.id)||"",n=JSON.parse(localStorage.getItem("recentApplicationWithUserId")||"{}"),r=(null==n?void 0:n[t])||[],r=(r?(r=slice$3(uniq([e,...r]),0,6),localStorage.setItem("recentApplicationWithUserId",JSON.stringify(Object.assign(Object.assign({},n),{[t]:r})))):localStorage.setItem("recentApplicationWithUserId",JSON.stringify(Object.assign(Object.assign({},n),{[t]:[e]}))),yield select(switchApiSelector));window.open(r+"/"+e)}function*applicationSaga(){yield all([takeEvery$1(HANDLE_CLICK_APP,handleClickAppSaga),takeLatest$1(REQUEST_GET_APPLICATION_V1,getApplicationsSaga)])}function __awaiter$1(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 delay(t=1e3){return __awaiter$1(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function goToPage(e){window.location.href=e}const uploadingStatus={LOADING:"loading",DONE:"done"};function*getCurrentUserSaga$1(){var e,t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector),t=yield call$7(getCurrentUserGraphQLApi,t,n);if(null!=t&&t.errors&&0<(null==t?void 0:t.errors.length)&&(null==(n=t.errors[0].path)||!n.includes("userSettings")))console.error("getCurrentUser error");else{n=(null==(n=null==(n=null==t?void 0:t.data)?void 0:n.me)?void 0:n.recentImageUrls)||[];const r=(null==(e=null==(e=null==t?void 0:t.data)?void 0:e.myRights)?void 0:e.operations)||[];yield put(getCurrentUserSuccess$1(Object.assign(Object.assign({},(null==(e=null==t?void 0:t.data)?void 0:e.me)||{}),{organizationRole:{organizationId:get$3(t,"data.me.organization.id",""),role:r.includes("veritone.superadmin")?"superadmin":r.includes("admin.access")?"admin":"user"},organization:Object.assign({},(null==(e=null==(e=null==t?void 0:t.data)?void 0:e.me)?void 0:e.organization)||{}),roles:((null==(t=null==(e=null==t?void 0:t.data)?void 0:e.me)?void 0:t.roles)||[]).map(e=>e.appName),avatarHistory:n})))}}function*resetBiometricSaga(){var e=yield select(rootApiSelector),t=yield select(sessionTokenSelector);yield call$7(resetBiometricApi,e,t)}function*resetPasswordSaga(e){var e=(null==(e=null==e?void 0:e.payload)?void 0:e.email)||"",t=yield select(graphEndpointSelector),e=yield call$7(resetPasswordApi,e,t);!1===(null==e?void 0:e.success)?yield put(resetPasswordFail()):yield put(showMessage({content:(null==(e=null==(t=null==e?void 0:e.data)?void 0:t.createPasswordResetRequest)?void 0:e.message)||"",severity:MessageSeverity.Info}))}function*updateProfileSaga(e){const t=null==e?void 0:e.payload,n=yield select(graphEndpointSelector),r=yield select(sessionTokenSelector);var e=yield select(preferredLanguageSelector),i=yield call$7(()=>updateUserProfileApi(t,n,r));const o=AIWareFormatMessage(e);!1===(null==i?void 0:i.success)?yield put(updateProfileFail()):(yield put(getCurrentUser$1()),yield put(showMessage({content:o({id:"os-app-bar-panel.snackbar.updateProfileSuccess",defaultMessage:[{type:0,value:"Success"}]}),severity:MessageSeverity.Success})))}function*uploadAvatarSaga(e){var e=null==e?void 0:e.payload,t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector),e=yield call$7(uploadUserAvatarApi,e,t,n);yield put(uploadingAvatar(uploadingStatus.LOADING)),e&&(yield put(updateAvatar(e)))}function*updateAvatarSaga(e){var e=null==e?void 0:e.payload,t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector),r=yield select(preferredLanguageSelector),e=yield call$7(updateUserAvatarApi,e,t,n);const i=AIWareFormatMessage(r);e.errors?yield put(updateProfileFail()):(yield put(showMessage({content:i({id:"os-app-bar-panel.snackbar.updateAvatarSuccess",defaultMessage:[{type:0,value:"Update avatar successfully"}]}),severity:MessageSeverity.Success})),yield put(getCurrentUser$1()),yield put(uploadingAvatar(uploadingStatus.DONE)))}function*hardLogout(){goToPage(yield select(logoutUrlSelector))}function*handleLogoutError(){var e=yield select(preferredLanguageSelector);const t=AIWareFormatMessage(e);yield put(showMessage({content:t({id:"os-app-bar-panel.snackbar.logoutError",defaultMessage:[{type:0,value:"Could not log out current user"}]}),severity:MessageSeverity.Error}))}function*redirectToLogoutOrError(){var e=yield select(logoutRedirectUrlSelector);e?goToPage(e):yield call$7(handleLogoutError)}function*logoutUser(){var e=yield select(graphEndpointSelector),t=yield select(authSelector),n=yield select(sessionTokenSelector),r=yield select(loginUrlSelector),i=yield select(logoutRedirectUrlSelector);try{if(!n)return yield put(logoutUserSuccess()),void(yield call$7(hardLogout));window.__logout_requested=!0,yield call$7(postNotificationApi,e,null==t?void 0:t.userId,{eventType:aiwareEvent,command:null===notificationCommands||void 0===notificationCommands?void 0:notificationCommands.goToLoginPage,value:window.navigator.userAgent},!0,"json",aiwareEvent,n),yield delay(500);var o=yield call$7(logoutUserApi,n,e);if(null!=o&&o.errors||!1===(null==o?void 0:o.success))return yield call$7(redirectToLogoutOrError),void(yield put(logoutUserFail()));yield put(logoutUserSuccess()),goToPage(i||r)}catch(e){yield call$7(handleLogoutError),yield put(logoutUserFail()),console.log(e)}}function*userSaga$1(){yield all([takeEvery$1(GET_CURRENT_USER$1,getCurrentUserSaga$1),takeLatest$1(RESET_BIOMETRIC,resetBiometricSaga),takeLatest$1(RESET_PASSWORD,resetPasswordSaga),takeLatest$1(UPDATE_PROFILE,updateProfileSaga),takeLatest$1(UPLOAD__AVATAR,uploadAvatarSaga),takeLatest$1(UPDATE__AVATAR,updateAvatarSaga),takeLatest$1(LOGOUT_USER,logoutUser)])}const formatActivityData=e=>{var t,{id:e,event:n,userId:r,userName:i,payload:o,createdDateTime:a}=e;return"login_succeeded"===n?{id:e,userId:r,createdDateTime:a,event:"Login succeeded",description:i+" logged in to Veritone"}:"logout_succeeded"===n?{id:e,userId:r,createdDateTime:a,event:"Logout succeeded",description:i+" successfully logged out"}:"add_user_succeeded"===n?(t=o["userName"],{id:e,userId:r,createdDateTime:a,event:"Add user succeeded",description:t+" successfully added"}):"org_updated"===n?(t=o["organizationName"],{id:e,userId:r,createdDateTime:a,event:"Org Name Changed",description:i+` updated org "${t}"`}):{id:e,userId:r,createdDateTime:a,event:"Unknown activity",description:"Unknown activity"}};function*getActivitySaga(){var e=yield call$7(getActivityApi);if(e.success){const t=e.data["records"];yield put(getActivitySuccess(t.map(formatActivityData)))}else{e=yield select(preferredLanguageSelector);const n=AIWareFormatMessage(e);yield put(showMessage({content:n({id:"os-app-bar-panel.snackbar.activityError",defaultMessage:[{type:0,value:"Something went wrong!"}]}),severity:MessageSeverity.Error}))}}function*activitySaga(){yield takeEvery$1(GET_ACTIVITY,getActivitySaga)}const BOOTING$1="aiware-header-bar/booting",BOOTED$1="aiware-header-bar/booted";function*bootFunction$1(){yield take(BOOTED$1)}function*booting$1(){yield takeEvery$1(BOOTING$1,bootFunction$1)}function*rootSaga$1(){yield all([fork(applicationSaga),fork(userSaga$1),fork(booting$1),fork(activitySaga)])}function getAppbarPanelModule(){return{id:"os-appbar-panel",reducerMap:{[nameSpace$2]:combineReducers({users:userReducer$1,activities:activityReducer,applications:applicationReducer})},sagas:[rootSaga$1],initialActions:[getActivity(),getCurrentUser$1(),requestGetApplications()],retained:!0}}const initialState$4={openIdConnectors:[],connectedOpenIds:[],message:"",status:LoadingStatus.Idle};function openIdConReducer(e,t){if(void 0===e)return initialState$4;switch(t.type){case GET_OPEN_ID_CONNECTORS:return Object.assign(Object.assign({},e),{status:0===e.openIdConnectors.length&&LoadingStatus.Pending});case GET_OPEN_ID_SUCCESS:return Object.assign(Object.assign({},e),{openIdConnectors:t.payload.data,status:LoadingStatus.Idle});case GET_CONNECTED_OPEN_ID_SUCCESS:return Object.assign(Object.assign({},e),{connectedOpenIds:t.payload.data});case GET_OPEN_ID_ERROR:return Object.assign(Object.assign({},e),{message:t.payload.message,status:LoadingStatus.Failed});default:return e}}const getAllOpenIdConnectorApi=(t,n,r)=>__awaiter$1(void 0,void 0,void 0,function*(){try{const e=yield fetch(t+"/api/admin/openid/org/"+n,{method:"GET",headers:Object.assign({"Content-Type":"application/json"},r&&{Authorization:"Bearer "+r}),credentials:"include"});return e.json()}catch(e){console.error(e)}}),getConnectedOpenIdConnectorApi=(t,n,r)=>__awaiter$1(void 0,void 0,void 0,function*(){try{const e=yield fetch(t+"/api/admin/openid/user/"+n,{method:"GET",headers:Object.assign({"Content-Type":"application/json"},r&&{Authorization:"Bearer "+r}),credentials:"include"});return e.json()}catch(e){console.error(e)}});function*getOpenIdConnectorSaga(){var n=yield select(sessionTokenSelector),r=yield select(rootApiSelector),i=(yield select(userSelector$2))["userName"];if(n&&r&&i){let e={},t={};e.results=yield select(selectOpenIdConnectors);try{var o=call$7(getAllOpenIdConnectorApi,r,i,n),a=call$7(getConnectedOpenIdConnectorApi,r,i,n);if(0===(null===e||void 0===e?void 0:e.results.length)?[e,t]=yield all([o,a]):t=yield a,!e||!t)return void(yield put(getOpenIdConnectorError("error on loading open ids")));yield put(getOpenIdConnectorSuccess(e.results)),yield put(getConnectedOpenIdsSuccess(t.results))}catch(e){yield put(getOpenIdConnectorError("error on loading open ids"))}}else yield put(getOpenIdConnectorError("Missing token,base url or username"))}function*openIdRootSaga(){yield takeEvery$1(GET_OPEN_ID_CONNECTORS,getOpenIdConnectorSaga)}function getOpenIdModule(){return{id:"open-id",reducerMap:{[namespace$2]:openIdConReducer},sagas:[openIdRootSaga],initialActions:[]}}function SettingPanelComponent({tabId:e}){const t=useDispatch(),{application:n=[]}=useSelector(applicationSelector)||{};var{currentUser:r={}}=useSelector(userSelector$1)||{};const{avatarHistory:i=[],id:o}=r;var a=useSelector(activitySelector)||[],s=useSelector(allActivitySeletor)["filter"];const[l,c]=react.exports.useState(0),[u,d]=react.exports.useState([]),[p,f]=react.exports.useState([]),h=react.exports.useCallback(()=>{var e=get$3(JSON.parse(localStorage.getItem("recentApplicationWithUserId")||"{}"),[o],[]);f(e)},[o]);return react.exports.useEffect(()=>{o&&h()},[o,h]),react.exports.useEffect(()=>{t(requestGetApplications()),t(getActivity()),t(getCurrentUser$1())},[t]),react.exports.useEffect(()=>{c(e||0)},[e]),react.exports.useEffect(()=>{if(0<p.length&&0<n.length){const t=p.join(",");var e=n.filter(e=>t.includes(""+e.id));d(e)}},[p,n]),jsxRuntime.exports.jsx(CacheProvider,Object.assign({value:muiCache},{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(lib$4.DynamicModuleLoader,Object.assign({modules:[getAppbarPanelModule(),getOpenIdModule()]},{children:jsxRuntime.exports.jsx(SettingPanel,{tabId:l,currentUser:r,activities:a,activityFilter:s,onChangeActivityFilter:function(e){t(updateActivityFilter({filter:e}))},handleResetBiometric:function(){t(resetBiometric())},handleResetPassword:function(e){t(resetPassword({email:e}))},handleLogout:function(){t(logout())},handleUpdateProfile:function(e){t(updateProfile(e))},organizationRole:get$3(r,"organizationRole",{}),recentApp:u,applications:function(){const t=p.join(",");return n.filter(e=>!t.includes(""+e.id))}(),onClickApp:function(e){t(appSwitcherHandleClick(""+e)),setTimeout(()=>{h()},500)},handleUploadAvatar:function(e){t(uploadAvatar(e))},avatarHistory:i})}))})})}))}const CropImage=({url:e,handleCroppedImage:t})=>{const n=react.exports.useRef();return jsxRuntime.exports.jsx("div",Object.assign({style:{padding:"10px",background:"#F8F8F8",borderRadius:"4px",border:"1px solid #D5DFE9"}},{children:jsxRuntime.exports.jsx(ReactCropper,{ref:n,src:e,style:{height:"100%",width:"100%",borderRadius:"4px",maxHeight:"300px"},dragMode:"move",viewMode:1,width:"",aspectRatio:1,guides:!0,crop:()=>{n.current&&n.current.cropper.getCroppedCanvas().toBlob(function(e){t(e)},"image/jpeg")},cropBoxMovable:!1,cropBoxResizable:!1,toggleDragModeOnDblclick:!1})}))};function EditProFilePicture({onClose:e,onSaveAvatar:t,avatarHistory:n}){const r=useStyles$1$2()["classes"],[i,o]=react.exports.useState(""),[a,s]=react.exports.useState(),[l,c]=react.exports.useState(!1),[u,d]=react.exports.useState(!1);var p=react.exports.useRef(null);const f=react.exports.useRef(0),h=react.exports.useRef(null);const m=e=>{h.current&&(h.current.value=""),o(e),c(!0)};return jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsxs("div",Object.assign({className:r.editProfilePictureContainer},{children:[jsxRuntime.exports.jsx("input",{accept:"image/*",className:r.inputFile,id:"icon-button-file",type:"file",onChange:e=>{e=e.target.files;if(e&&0<e.length){e=e[0];if(URL)m(URL.createObjectURL(e));else if(FileReader){const t=new FileReader;t.onload=function(){m(t.result)},t.readAsDataURL(e)}}},ref:h,"data-test":"image-upload-input","data-testid":"image-upload-input"}),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.contentUserView},{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.headerDrawer},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:r.mainTitleText,"data-test":"edit-profile-picture-header"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.npW7Np",defaultMessage:"Edit Profile Picture",description:"The title of edit profile picture panel"})}))})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.contentEditAvatar},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:classnames(u&&r.dragging),ref:p,onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),f.current++,e.dataTransfer.items&&0<e.dataTransfer.items.length&&d(!0)},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),f.current--,0<f.current||d(!1)},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),d(!1),e.dataTransfer.files&&0<e.dataTransfer.files.length){var t=e.dataTransfer.files;if(FileReader&&0<t.length){const n=new FileReader;n.onload=function(){m(n.result)},n.readAsDataURL(t[0])}e.dataTransfer.clearData(),f.current=0}}},{children:l?jsxRuntime.exports.jsx(CropImage,{url:i,handleCroppedImage:e=>{s(e)}}):jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.areaUpload},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:r.descDrag},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.LeafC8",defaultMessage:"Drag a profile photo here",description:"the label of upload file container"})})),jsxRuntime.exports.jsx(Box$1,{children:jsxRuntime.exports.jsx("img",{src:img$1t,alt:""})}),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle2",className:r.descDrag2},{children:"- or -"})),jsxRuntime.exports.jsx(Button$1,Object.assign({variant:"outlined",color:"primary",id:"on-select-photo",className:r.btnSelectPhoto,onClick:()=>{h.current&&h.current.click()},"data-test":"edit-profile-picture-upload-file-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.CaHXXC",defaultMessage:"Select a photo from your computer",description:"edit profile picture panel: select photo label"})}))]}))})),0<(null==n?void 0:n.length)&&jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.recentlyBox},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:r.recentlyText},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.3gg72P",defaultMessage:"Recently Used Photos",description:"the label of recently used profile picture container"})})),jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0},{children:0<n.length&&n.map(e=>jsxRuntime.exports.jsx(Grid$1,Object.assign({xs:4,item:!0,className:r.imageGrid,"data-test":"recent-profile-picture"},{children:jsxRuntime.exports.jsx("img",{className:r.imgRecently,src:e,alt:"avatar"})}),e))}))]}))]}))]})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.actionButton+" "+r.editProfilePictureFooterButtons},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({color:"primary",onClick:()=>{o(""),s(void 0),c(!1),null!=e&&e()},className:classnames(r.btnAction,r.btnActionCancel),"data-test":"edit-profile-picture-cancel-button","data-testid":"edit-profile-picture-cancel-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.hdbMmi",defaultMessage:"Cancel",description:"the label of cancel button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({color:"primary",variant:"contained",id:"button-save-cropped-image",className:classnames(r.btnAction,r.btnSave),onClick:()=>{var e;a&&(e="avatar-"+(new Date).toISOString()+".jpeg",e=new File([a],e,{type:"image/jpeg"}),t(e),setTimeout(()=>{o(""),c(!1)},250))},"data-test":"edit-profile-picture-save-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.tcZkqy",defaultMessage:"Save",description:"label of save button in edit profile picture panel"})}))]}))]}))})}var index_esm$1=Object.freeze({__proto__:null,AppList:AppList,EditProFilePicture:EditProFilePicture,VeritonePanel:SettingPanelComponent,applicationSelector:applicationSelector,getAppbarPanelModule:getAppbarPanelModule,requestGetApplications:requestGetApplications}),Close={},_interopRequireDefault$2=interopRequireDefault.exports,default_1$2=(Object.defineProperty(Close,"__esModule",{value:!0}),Close.default=void 0),_createSvgIcon$2=_interopRequireDefault$2(createSvgIcon),_jsxRuntime$2=jsxRuntime.exports,_default$2=(0,_createSvgIcon$2.default)((0,_jsxRuntime$2.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),default_1$2=Close.default=_default$2,Message={},_interopRequireDefault$1=interopRequireDefault.exports,default_1$1=(Object.defineProperty(Message,"__esModule",{value:!0}),Message.default=void 0),_createSvgIcon$1=_interopRequireDefault$1(createSvgIcon),_jsxRuntime$1=jsxRuntime.exports,_default$1=(0,_createSvgIcon$1.default)((0,_jsxRuntime$1.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"}),"Message"),default_1$1=Message.default=_default$1,Description={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(Description,"__esModule",{value:!0}),Description.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"}),"Description");function i(e){return(i="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 o(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 u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?c(e):t}function s(n){var r=function(){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}}();return function(){var e,t=u(n);return a(this,r?(e=u(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}var default_1=Description.default=_default,d="object"===("undefined"==typeof window||"undefined"==typeof window?"undefined":i(window)),f=d?document:{},v=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange"];function p(r,i){var o;return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o&&clearTimeout(o),o=setTimeout(function(){r.apply(void 0,t),o=null},i)}}function h(t,n){var r=0;return function(){var e=(new Date).getTime();if(!(e-r<n))return r=e,t.apply(void 0,arguments)}}var m=function(){var e=r,t=react.exports.Component;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&&l(e,t);var n=s(r);function r(e){var t;if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");if((t=n.call(this,e)).state={idle:!1,oldDate:+new Date,lastActive:+new Date,lastIdle:null,idleTime:0,remaining:null,pageX:null,pageY:null},t.tId=null,t.eventsBound=!1,0<e.debounce&&0<e.throttle)throw new Error("onAction can either be throttled or debounced (not both)");return 0<e.debounce?t._onAction=p(e.onAction,e.debounce):0<e.throttle?t._onAction=h(e.onAction,e.throttle):e.onAction?t._onAction=e.onAction:t._onAction=function(){},0<e.eventsThrottle?t._handleEvent=h(t._handleEvent.bind(c(t)),e.eventsThrottle):t._handleEvent=t._handleEvent.bind(c(t)),e.startOnMount||(t.state.idle=!0),t._toggleIdleState=t._toggleIdleState.bind(c(t)),t.reset=t.reset.bind(c(t)),t.pause=t.pause.bind(c(t)),t.resume=t.resume.bind(c(t)),t.isIdle=t.isIdle.bind(c(t)),t.getRemainingTime=t.getRemainingTime.bind(c(t)),t.getElapsedTime=t.getElapsedTime.bind(c(t)),t.getLastActiveTime=t.getLastActiveTime.bind(c(t)),t.getLastIdleTime=t.getLastIdleTime.bind(c(t)),t.getTotalIdleTime=t.getTotalIdleTime.bind(c(t)),t.getTotalActiveTime=t.getTotalActiveTime.bind(c(t)),t}return o(r.prototype,[{key:"componentDidMount",value:function(){this._bindEvents(),this.props.startOnMount&&this.reset()}},{key:"componentDidUpdate",value:function(e){e.debounce!==this.props.debounce&&(this._onAction=p(this._onAction,this.props.debounce)),e.throttle!==this.props.throttle&&(this._onAction=h(this._onAction,this.props.throttle)),e.eventsThrottle!==this.props.eventsThrottle&&(this._handleEvent=h(this._handleEvent,this.props.eventsThrottle)),e.timeout!==this.props.timeout&&null!==this.tid&&this.reset()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.tId),this._unbindEvents(!0)}},{key:"render",value:function(){return this.props.children||null}},{key:"_bindEvents",value:function(){var e,t,n,r,i,o=this;d&&(e=this.props,t=e.element,n=e.events,r=e.passive,i=e.capture,this.eventsBound||(n.forEach(function(e){t.addEventListener(e,o._handleEvent,{capture:i,passive:r})}),this.eventsBound=!0))}},{key:"_unbindEvents",value:function(){var e,t,n,r,i,o=this;d&&(e=this.props,t=e.element,n=e.events,r=e.passive,i=e.capture,(this.eventsBound||0<arguments.length&&void 0!==arguments[0]&&arguments[0])&&(n.forEach(function(e){t.removeEventListener(e,o._handleEvent,{capture:i,passive:r})}),this.eventsBound=!1))}},{key:"_toggleIdleState",value:function(r){var i=this;this.setState(function(e){return{idle:!e.idle,lastIdle:e.idle?e.lastIdle:+new Date-i.props.timeout,idleTime:e.idle?e.idleTime+ +new Date-e.lastIdle:e.idleTime}},function(){var e=i.props,t=e.onActive,n=e.onIdle,e=e.stopOnIdle;i.state.idle?(e&&(clearTimeout(i.tId),i.tId=null,i._unbindEvents()),n(r)):e||(i._bindEvents(),t(r))})}},{key:"_handleEvent",value:function(e){var t=this.state,n=t.remaining,r=t.pageX,i=t.pageY,t=t.idle,o=this.props,a=o.timeout,o=o.stopOnIdle;if(this._onAction(e),!n){if("mousemove"===e.type){if(e.pageX===r&&e.pageY===i)return;if(void 0===e.pageX&&void 0===e.pageY)return;if(this.getElapsedTime()<200)return}clearTimeout(this.tId),this.tId=null;n=+new Date-this.getLastActiveTime();(t&&!o||!t&&a<n)&&this._toggleIdleState(e),this.setState({lastActive:+new Date,pageX:e.pageX,pageY:e.pageY}),t&&o||(this.tId=setTimeout(this._toggleIdleState,a))}}},{key:"reset",value:function(){clearTimeout(this.tId),this.tId=null,this._bindEvents(),this.setState({idle:!1,oldDate:+new Date,lastActive:+new Date,remaining:null});var e=this.props.timeout;this.tId=setTimeout(this._toggleIdleState,e)}},{key:"pause",value:function(){null===this.state.remaining&&(this._unbindEvents(),clearTimeout(this.tId),this.tId=null,this.setState({remaining:this.getRemainingTime()}))}},{key:"resume",value:function(){var e=this.state,t=e.remaining,e=e.idle;null!==t&&(this._bindEvents(),e||(this.tId=setTimeout(this._toggleIdleState,t),this.setState({remaining:null,lastActive:+new Date})))}},{key:"getRemainingTime",value:function(){var e=this.state,t=e.remaining,e=e.lastActive,n=this.props.timeout;if(null!==t)return t<0?0:t;t=n-(+new Date-e);return t<0?0:t}},{key:"getElapsedTime",value:function(){var e=this.state.oldDate;return+new Date-e}},{key:"getLastIdleTime",value:function(){return this.state.lastIdle}},{key:"getTotalIdleTime",value:function(){var e=this.state,t=e.idle,n=e.lastIdle,e=e.idleTime;return t?+new Date-n+e:e}},{key:"getLastActiveTime",value:function(){return this.state.lastActive}},{key:"getTotalActiveTime",value:function(){return this.getElapsedTime()-this.getTotalIdleTime()}},{key:"isIdle",value:function(){return this.state.idle}}]),r}();function g(){function n(e){var t=!T.current;(T.current=t)?($&&(clearTimeout(O.current),O.current=null,V()),M.current=+new Date-k.current,N.current(e)):$||(A.current+=+new Date-M.current,D(),F.current(e))}function e(){if(null!==j.current)return j.current<0?0:j.current;var e=k.current-(+new Date-L.current);return e<0?0:e}function r(){return+new Date-E.current}function t(){return T.current?+new Date-M.current+A.current:A.current}function i(){return L.current}function o(){clearTimeout(O.current),O.current=null,D(),T.current=!1,E.current=+new Date,L.current=+new Date,j.current=null,O.current=setTimeout(n,k.current)}var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},s=a.timeout,l=void 0===s?12e5:s,s=a.element,c=void 0===s?f:s,s=a.events,u=void 0===s?v:s,s=a.onIdle,m=void 0===s?function(){}:s,s=a.onActive,g=void 0===s?function(){}:s,s=a.onAction,y=void 0===s?function(){}:s,s=a.debounce,x=void 0===s?0:s,s=a.throttle,C=void 0===s?0:s,s=a.eventsThrottle,b=void 0===s?200:s,s=a.startOnMount,H=void 0===s||s,s=a.stopOnIdle,$=void 0!==s&&s,s=a.capture,w=void 0===s||s,s=a.passive,S=void 0===s||s,_=react.exports.useRef(!1),T=react.exports.useRef(!0),E=react.exports.useRef(+new Date),j=react.exports.useRef(null),I=react.exports.useRef(null),R=react.exports.useRef(null),O=react.exports.useRef(null),L=react.exports.useRef(null),M=react.exports.useRef(null),A=react.exports.useRef(0),k=react.exports.useRef(l),N=react.exports.useRef(m),F=react.exports.useRef(g),B=react.exports.useRef(y),P=function(e){if(B.current(e),!j.current){if("mousemove"===e.type){if(e.pageX===I&&e.pageY===R)return;if(void 0===e.pageX&&void 0===e.pageY)return;if(r()<200)return}clearTimeout(O.current),O.current=null;var t=+new Date-i();(T.current&&!$||!T.current&&t>k.current)&&n(e),L.current=+new Date,I.current=e.pageX,R.current=e.pageY,T.current&&$||(O.current=setTimeout(n,k.current))}},D=function(){!d||_.current||(u.forEach(function(e){c.addEventListener(e,P,{capture:w,passive:S})}),_.current=!0)},V=function(){d&&(_.current||0<arguments.length&&void 0!==arguments[0]&&arguments[0])&&(u.forEach(function(e){c.removeEventListener(e,P,{capture:w,passive:S})}),_.current=!1)};return react.exports.useEffect(function(){if(0<x&&0<C)throw new Error("onAction can either be throttled or debounced (not both)");return 0<b&&(P=h(P,b)),D(),H&&o(),function(){clearTimeout(O.current),V(!0)}},[]),react.exports.useEffect(function(){N.current=m},[m]),react.exports.useEffect(function(){F.current=g},[g]),react.exports.useEffect(function(){B.current=0<x?p(y,x):0<C?h(y,C):y},[y]),react.exports.useEffect(function(){k.current=l,null!==O.current&&o()},[l]),{isIdle:function(){return T.current},pause:function(){null===j.current&&(V(),clearTimeout(O.current),O.current=null,j.current=e())},reset:o,resume:function(){null!==j.current&&(D(),T.current||(O.current=setTimeout(n,j.current),j.current=null,L.current=+new Date))},getLastIdleTime:function(){return M.current},getTotalIdleTime:t,getLastActiveTime:i,getTotalActiveTime:function(){return r()-t()},getElapsedTime:r,getRemainingTime:e}}m.propTypes={timeout:PropTypes.number,events:PropTypes.arrayOf(PropTypes.string),onIdle:PropTypes.func,onActive:PropTypes.func,onAction:PropTypes.func,debounce:PropTypes.number,throttle:PropTypes.number,eventsThrottle:PropTypes.number,element:PropTypes.oneOfType([PropTypes.object,PropTypes.element]),startOnMount:PropTypes.bool,stopOnIdle:PropTypes.bool,passive:PropTypes.bool,capture:PropTypes.bool},m.defaultProps={timeout:12e5,element:f,events:v,onIdle:function(){},onActive:function(){},onAction:function(){},debounce:0,throttle:0,eventsThrottle:200,startOnMount:!0,stopOnIdle:!1,capture:!0,passive:!0},g.propTypes={timeout:PropTypes.number,events:PropTypes.arrayOf(PropTypes.string),onIdle:PropTypes.func,onActive:PropTypes.func,onAction:PropTypes.func,debounce:PropTypes.number,throttle:PropTypes.number,eventsThrottle:PropTypes.number,element:PropTypes.oneOfType([PropTypes.object,PropTypes.element]),startOnMount:PropTypes.bool,stopOnIdle:PropTypes.bool,passive:PropTypes.bool,capture:PropTypes.bool},g.defaultProps={timeout:12e5,element:f,events:v,onIdle:function(){},onActive:function(){},onAction:function(){},debounce:0,throttle:0,eventsThrottle:200,startOnMount:!0,stopOnIdle:!1,capture:!0,passive:!0};var WidgetsStatus,tinycolor$1={exports:{}},tinycolor=(!function(e){function u(e,t){if(t=t||{},(e=e||"")instanceof u)return e;if(!(this instanceof u))return new u(e,t);var 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(w,"").replace(S,"").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=k.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=k.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=k.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=k.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=k.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=k.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=k.hex8.exec(e))return{r:g(t[1]),g:g(t[2]),b:g(t[3]),a:C(t[4]),format:n?"name":"hex8"};if(t=k.hex6.exec(e))return{r:g(t[1]),g:g(t[2]),b:g(t[3]),format:n?"name":"hex"};if(t=k.hex4.exec(e))return{r:g(t[1]+""+t[1]),g:g(t[2]+""+t[2]),b:g(t[3]+""+t[3]),a:C(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=k.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=v(e.s),i=v(e.v),t=function(e,t,n){e=6*h(e,360),t=h(t,100),n=h(n,100);var r=$.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=v(e.s),o=v(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,this._tc_id=_++}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(x(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 N(e){e=u(e).toHsl();return e.h=(e.h+180)%360,u(e)}function P(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 V(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 H(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 F(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),$.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 v(e){return e=e<=1?100*e+"%":e}function x(e){return $.round(255*parseFloat(e)).toString(16)}function C(e){return g(e)/255}function b(e){return k.CSS_UNIT.exec(e)}var $,w,S,_,T,E,j,I,R,O,L,M,A,k;$=Math,w=/^\s+/,S=/\s+$/,_=0,T=$.round,E=$.min,j=$.max,I=$.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:$.pow((.055+t)/1.055,2.4),n=n<=.03928?n/12.92:$.pow((.055+n)/1.055,2.4),e=e<=.03928?e/12.92:$.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(x(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(H,arguments)},complement:function(){return this._applyCombination(N,arguments)},monochromatic:function(){return this._applyCombination(F,arguments)},splitcomplement:function(){return this._applyCombination(V,arguments)},triad:function(){return this._applyCombination(P,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]:v(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($.max(e.getLuminance(),t.getLuminance())+.05)/($.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),M="[\\s|\\(]+("+(L="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+L+")[,|\\s]+("+L+")\\s*\\)?",A="[\\s|\\(]+("+L+")[,|\\s]+("+L+")[,|\\s]+("+L+")[,|\\s]+("+L+")\\s*\\)?",k={CSS_UNIT:new RegExp(L),rgb:new RegExp("rgb"+M),rgba:new RegExp("rgba"+A),hsl:new RegExp("hsl"+M),hsla:new RegExp("hsla"+A),hsv:new RegExp("hsv"+M),hsva:new RegExp("hsva"+A),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);function __rest(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(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(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const useStyles$2$1=makeStyles()((e,{titleColor:t,logo:n,activeColor:r},i)=>({appBar:{top:0,left:0,right:0,display:"flex",position:"fixed",boxShadow:"none",borderBottom:"0.5px solid "+e.palette.divider,["& ."+i.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,"-webkit-mask":`url("${img$1v}") no-repeat 50% 50%`,backgroundColor:t},appLogo:{display:"inline-block",width:150,height:32,backgroundImage:`url("${n}")`,backgroundRepeat:"no-repeat",backgroundPosition:"left center"},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"},["& ."+i.left]:{justifyContent:"flex-start"},["& ."+i.right]:{justifyContent:"flex-end"},["& ."+i.searchBarHolder]:{flexGrow:1},["& ."+i.appLogo]:{userSelect:"none"},["& ."+i.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:{"-webkit-mask":`url("${img$_}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},veritoneLogo:{"-webkit-mask":`url("${img$1u}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openPanel:{backgroundImage:`url("${img$19}") !important`},notificationIcon:{"-webkit-mask":`url("${img$2}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},applicationSettingsIcon:{"-webkit-mask":`url("${img$1o}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},dashboardIcon:{"-webkit-mask":`url("${img$4}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openNotificationPanel:{backgroundImage:`url(${img$18}) !important`},orgIcon:{borderRadius:"50%",width:30,height:30,backgroundRepeat:"no-repeat",backgroundPosition:"center"},logoIcon:{"-webkit-mask":`url("${n}") no-repeat 50% 50%`,backgroundColor:t},helpIcon:{"-webkit-mask":`url("${img$3}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openHelp:{backgroundImage:`url(${img$17}) !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$1=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:{"-webkit-mask":`url("${img$3}") 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})=>{var a=useStyles$1$1()["classes"];const[s,l]=react.exports.useState(null);const c=()=>{l(null),null!=e&&e()};var u=n||r,d=null==(d=window.config)?void 0:d.appVersion;return jsxRuntime.exports.jsxs("div",Object.assign({className:a.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:a.barIcon,onClick:e=>{l(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(a.icon,a.helpIcon)})}))})),jsxRuntime.exports.jsx(Popover$1,Object.assign({open:Boolean(s),anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},onClose:c,className:a.popover,classes:{paper:a.popoverColor},disableScrollLock:!0},{children:jsxRuntime.exports.jsxs(List$2,Object.assign({disablePadding:!0,className:a.list},{children:[u&&jsxRuntime.exports.jsxs(ListItem$1,Object.assign({button:!0,onClick:()=>{c(),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(default_1,{})}),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:a.helpItemText}})]})),o&&jsxRuntime.exports.jsxs(ListItem$1,Object.assign({button:!0,onClick:()=>{null!=i&&i(),l(null)},"data-veritone-element":"open-support-chat-button","data-testid":"support-chat-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(default_1$1,{})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.8aLpuV",defaultMessage:"Support Center",description:"help tooltip: text for documentation"}),classes:{root:a.helpItemText}})]})),d&&jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx(ListItem$1,Object.assign({className:a.versionWrapper},{children:jsxRuntime.exports.jsx(ListItemText$1,{primary:d,classes:{primary:a.versionText}})}))]})]}))}))]}))},namespace$1="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$3=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$3().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.exports.useState(t?5:60),[m,y]=react.exports.useState(new Date),[v,x]=react.exports.useState(),[C,b]=react.exports.useState(),[$,w]=react.exports.useState(!1),[S,_]=react.exports.useState(!1),T=react.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setIsIdle,value:e,ephemeral:!0,contentType:"json"}))},[n]),E=(react.exports.useEffect(()=>{d&&window.location.replace("/")},[d]),react.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setCallLogout,value:e,ephemeral:!0,contentType:"json"}))},[n])),j=react.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setClickedLogout,value:e,ephemeral:!0,contentType:"json"}))},[n]),I=react.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setCallResetIdleTimer,value:e,ephemeral:!0,contentType:"json"}))},[n]),R=react.exports.useCallback(()=>{logoutCallCounter++,E(!0);var e=l?500:5e3;n(logoutRequest({token:o})),setTimeout(()=>{window.location.href=a+"/#/?redirect="+window.location.href},t?2e3:e)},[E,n,o,a,l]);var O=react.exports.useCallback(()=>{logoutCallCounter++,T(!1),setTimeout(()=>{E(!0),j(!0),n(logoutRequest({token:o}))},500),setTimeout(()=>{window.location.href=a+"/#/?redirect="+window.location.href},500)},[E,n,o,a,j,T]),L=()=>{T(!0),timer=setInterval(()=>{h(e=>e-1)},1e3)},M=()=>{!r&&p<RESET_IDLE_TIMER_CALL_LIMIT&&I(!0)};const A=g(t?{timeout:1e3,onIdle:L,onAction:M,debounce:1e3}:{timeout:6e4*i,onIdle:L,onAction:M,debounce:i/4*6e4})["reset"],k=react.exports.useCallback(()=>{I(!1),A()},[I]),N=react.exports.useCallback(()=>{S&&(n(refreshTokenRequest({token:o})),_(!1)),T(!1),k(),clearInterval(timer),setTimeout(()=>{h(t?5:60)},500)},[T,k,S,n,o]);return react.exports.useEffect(()=>{setTimeout(()=>{y(new Date)},1e3)},[m]),react.exports.useEffect(()=>{if(c){const e=new Date(c);e.setMinutes(e.getMinutes()-MINUTES_BEFORE_SESSION_EXPIRATION),b(new Date(c)),x(e)}},[c]),react.exports.useEffect(()=>{C&&C.getTime()<m.getTime()&&w(!0),v&&v.getTime()<m.getTime()&&_(!0)},[C,v,m]),react.exports.useEffect(()=>{$?R():S&&T(!0)},[C,v,S,$,R,T]),react.exports.useEffect(()=>{s&&logoutCallCounter<LOGOUT_CALL_LIMIT&&R()},[s,R]),react.exports.useEffect(()=>{r&&0===f&&(clearInterval(timer),setTimeout(()=>{h(10)},500),R())},[f,R,r]),react.exports.useEffect(()=>{!r&&u&&p===RESET_IDLE_TIMER_CALL_LIMIT&&k()},[u,r,p,k]),react.exports.useEffect(()=>{r||N()},[r,N]),jsxRuntime.exports.jsx(AIWareThemeProvider,{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:O,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:N,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,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,title:a,help:s,notification:l=!0,userApplicationSettingsIcon:c,onClickOrgIcon:u,closeButton:d,onCloseSetting:p,onClose:f,onOpenSetting:h,onOpenHelpCenter:m,onOpenNotification:g,onOpenUserApplicationSettings:y,openSetting:v,organization:x={},panels:C=[],unseenCount:b,searchBarMountId:$,textColor:w,rightActions:S=[],applications:_=[],onClickAppSwitchIcon:T,displaySupportChat:E=!0,onDashboardClick:j,showDashboardIcon:I=!1}){var R=tinycolor(o).isDark(),w=w||(R?"#fff":"#000"),R=R?"rgba(255,255,255,0.1)":"rgb(243,245,249)";const O=useStyles$2$1({titleColor:w,logo:i,activeColor:R})["classes"],[L,M]=react.exports.useState([]);R=useSelector(userSelector)||{};const[A,k]=react.exports.useState(!0);var{appIcon:R,currentUser:N}=getUserInfo(R),P=useSelector(betaFeaturesSelector);return react.exports.useEffect(()=>{var e=C.map(e=>e.panelId);!e.length&&!L.length||isEqual(e,L)||M(e)},[C,L]),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:O.appBar,style:{height:appBarHeight,background:o,zIndex:t}},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:O.menuButton},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-menu","data-testid":"app-bar-menu",className:O.iconButton,onClick:r,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classnames(O.icon,O.hamburgerIcon)})}))})),!!R&&""!==R&&jsxRuntime.exports.jsx("div",Object.assign({className:O.margin},{children:jsxRuntime.exports.jsx("img",{className:O.appIcon,src:R,alt:"appIcon"})})),jsxRuntime.exports.jsxs("div",Object.assign({className:O.content,style:{color:w}},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:classnames(O.left,O.noSelect),onClick:function(){window.location.href="/"},"data-test":"appbarTitle","data-testid":"appbarTitle"},{children:i?jsxRuntime.exports.jsx("span",{className:O.appLogo}):jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:O.title},{children:a}))})),jsxRuntime.exports.jsx("div",{"data-test":"appbarSearch",id:$||"search-bar-id",className:O.searchBarHolder}),jsxRuntime.exports.jsx("div",Object.assign({className:O.right},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:O.controllers},{children:[0<S.length&&jsxRuntime.exports.jsx("div",Object.assign({className:classnames(O.iconGroup,O.noSelect)},{children:S.map(({label:e,onClick:t,isActive:n=!0},r)=>jsxRuntime.exports.jsx("div",Object.assign({className:O.iconGroupIcon},{children:jsxRuntime.exports.jsx("span",{onClick:e=>t?t(e):null,className:classnames(O.rightActionLabel,n?O.active:O.passive),dangerouslySetInnerHTML:{__html:e}})}),"label-"+r))})),I&&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:O.barIcon,onClick:j,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classnames(O.icon,O.dashboardIcon)})}))})),s&&jsxRuntime.exports.jsx("div",Object.assign({"data-test":"app-bar-help-container","data-testid":"app-bar-help-container",className:classnames(O.margin,{[O.panelActive]:L.includes(HELP_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Help,{tooltipTitle:"",helpDocLabel:"View Help Docs",supportLabel:"Support Center",helpDocCallback:()=>{null!=m&&m()},supportCallback:p,titleColor:w,displaySupportChat:E})})),l&&jsxRuntime.exports.jsx("div",Object.assign({className:classnames(O.margin,{[O.panelActive]:L.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:O.barIcon,onClick:g,"data-test":"app-bar-notification-button",size:"large","data-testid":"app-bar-notification-button"},{children:jsxRuntime.exports.jsx(Badge$1,Object.assign({badgeContent:b,max:NOTIFICATION_BADGE_MAX_COUNT,color:"primary","data-test":"app-bar-notification-badge",className:O.notificationBadge},{children:jsxRuntime.exports.jsx("div",{className:classnames(O.icon,O.notificationIcon,{[O.openNotificationPanel]:null==v?void 0:v.openNotificationPanel})})}))}))}))})),P&&c&&jsxRuntime.exports.jsx("div",Object.assign({className:classnames(O.margin,{[O.panelActive]:L.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:O.barIcon,onClick:y,size:"large","data-testid":"app-bar-user-application-settings-button"},{children:jsxRuntime.exports.jsx("div",{className:classnames(O.icon,O.applicationSettingsIcon)})}))}))})),1<_.length&&jsxRuntime.exports.jsx("div",Object.assign({className:classnames({[O.panelActive]:L.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:O.barIcon,onClick:T,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classnames(O.icon,O.applicationIcon,{[O.openPanel]:null==v?void 0:v.openAppSwitchPanel})})}))}))})),(x.imageUrl||x.name)&&e&&jsxRuntime.exports.jsx("div",Object.assign({className:classnames(O.margin,{[O.panelActive]:L.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:O.barIcon+" "+O.orgButton,onClick:u,size:"large"},{children:x.imageUrl&&A?jsxRuntime.exports.jsx("img",{src:x.imageUrl,className:classnames(O.orgIcon),onError:function(){k(!1)},alt:"org_icon"}):jsxRuntime.exports.jsx(Avatar$1,Object.assign({className:O.smallOrgAvatar,variant:"circular","data-testid":"app-bar-avatar"},{children:getSortName(x.name||"")}))}))}))})),N&&jsxRuntime.exports.jsx("div",Object.assign({className:classnames({[O.panelActive]:L.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:O.barIcon,onClick:h,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classnames(O.icon,O.veritoneLogo,{[O.openPanel]:null==v?void 0:v.openVeritonePanel})})}))}))})),d&&f&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:f,"data-test":"app-bar-close-button",size:"large","data-testid":"app-bar-close-button"},{children:jsxRuntime.exports.jsx(default_1$2,{htmlColor:w})}))}))})]}))}))]}))]}))]})}const GET_CURRENT_USER=`os-app-bar/${namespace$1}/get current user`,GET_CURRENT_USER_SUCCESS=`os-app-bar/${namespace$1}/get current user success`,GET_CURRENT_USER_FAIL=`os-app-bar/${namespace$1}/get current user fail`,GET_CURRENT_APP_ICON=`os-app-bar/${namespace$1}/get current app icon`,GET_CURRENT_APP_ICON_SUCCESS=`os-app-bar/${namespace$1}/get app icon success`,getCurrentUser=()=>({type:GET_CURRENT_USER}),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$2={currentUser:{},fetched:!1,fetching:!1,error:!1};function userReducer(e,t){if(void 0===e)return initialState$2;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$1="aiWareHeaderBar",BOOTING="APP_BAR/booting",BOOTED="APP_BAR/booted",onBooted=()=>({type:BOOTED}),getApplicationInfo=(t,n,r)=>__awaiter(void 0,void 0,void 0,function*(){var e=`
|
|
1149
|
+
`,variables:e,graphEndpoint:n,token:r})}catch(e){return{success:!1}}});function*refetchNotificationSetting(){yield put(getNotification(0,30))}function*getNotificationListByMailBoxSaga(e){const{status:t,mailBoxIds:n,mailbox:r}=yield select(mailBoxSelector),{limit:i,offset:o,callback:a}=e.payload;var e=yield select(graphEndpointSelector),s=yield select(sessionTokenSelector),l="success"===t||"failure"===t;if(0!==Object.keys(r).length||l){yield put(getNotificationStart(o,i));l=yield call$7(handleNotificationListByMailBox,e,s,n,o,i);if(null!==a&&void 0!==a&&a(),0<(null==(e=null==l?void 0:l.errors)?void 0:e.length))yield put(getNotificationListByMailBoxFail());else{let n=0;const c=null==(e=null==(s=null==l?void 0:l.data)?void 0:s.notificationMailboxes)?void 0:e.map(t=>{var e;return 0<(null==(e=null==t?void 0:t.notifications)?void 0:e.count)?(e=null==(e=null==(e=null==t?void 0:t.notifications)?void 0:e.records)?void 0:e.map(e=>Object.assign(Object.assign({},e),{mailboxId:t.id})),n++,e):[]}),u=(null===c||void 0===c?void 0:c.flat())||[];l=u.map(t=>{var e,n=r.find(e=>e.id===t.mailboxId);return Object.assign(Object.assign({},t),{appId:(null==(e=null==n?void 0:n.application)?void 0:e.applicationId)||"",appName:(null==(e=null==n?void 0:n.application)?void 0:e.name)||"",eventNames:(null==(e=null==n?void 0:n.eventFilter)?void 0:e.eventNames)||[],icon:(null==(e=null==n?void 0:n.application)?void 0:e.icon)||"",title:t.title||""})});yield put(getNotificationListByMailBoxSuccess({offset:o,limit:i,availableMailBoxes:n,data:l}))}}else yield take(subscriberSuccess({}).type)}function*listenToPushNotificationSaga(e){var t;const n=(yield select(mailBoxSelector))["mailbox"],r=e["payload"];e=n.find(e=>e.id===r.mailboxId);yield put(updateNotificationList(Object.assign(Object.assign({},r),{appId:(null==(t=null==e?void 0:e.application)?void 0:t.applicationId)||"",appName:(null==(t=null==e?void 0:e.application)?void 0:t.name)||"",icon:(null==(t=null==e?void 0:e.application)?void 0:t.icon)||""})))}function*updateNotificationReadSaga(e){var t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector);try{var r=yield call$7(handleUpdateNotificationRead,t,n,e.payload);return null!=r&&r.error?void(yield put(updateNotificationReadFail())):void(yield put(updateNotificationReadSuccess(Object.assign({},r))))}catch(e){yield put(updateNotificationReadFail())}}function*updateMarkAllReadNotificationSaga(){var e=(yield select(mailBoxSelector))["mailBoxIds"],t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector);if(0<(null==e?void 0:e.length))try{(yield call$7(handleMarkAllReadNotification,e,t,n)).error?yield put(markAllReadNotificationFail()):yield put(markAllReadNotificationSuccess())}catch(e){yield put(markAllReadNotificationFail())}}function*getNotificationActionSaga(e){var t,n,{eventType:r,appId:i,eventName:o}=yield select(notificationDetailSelector(e.payload)),a=yield select(graphEndpointSelector),s=yield select(sessionTokenSelector);try{var l,c=yield call$7(handleGetNotificationAction,o,r,i,a,s);c.error?yield put(getNotificationActionError()):(l=(null==(n=null==(t=null==c?void 0:c.data)?void 0:t.notificationActions)?void 0:n.records)||[],yield put(getNotificationActionSuccess(e.payload,l)))}catch(e){yield put(getNotificationActionError())}}function*notificationSaga(){yield all([takeEvery$1(getNotification.type,getNotificationListByMailBoxSaga),takeLatest$1(updateUtilitySetting.type,refetchNotificationSetting),takeEvery$1(getNotificationListByMailBoxRequest.type,getNotificationListByMailBoxSaga),takeEvery$1("mailbox/PUSH_NOTIFICATION",listenToPushNotificationSaga),takeEvery$1(updateNotificationReadRequest.type,updateNotificationReadSaga),takeEvery$1(GET_NOTIFICATION_ACTION_REQUEST,getNotificationActionSaga),takeLatest$1(markAllReadNotificationRequest.type,updateMarkAllReadNotificationSaga)])}function getNotificationModule(){return{id:"os-notification-panel",reducerMap:{[nameSpace$3]:notificationReducer},sagas:[notificationSaga],initialActions:[],retained:!0}}const useStyles$b$1=makeStyles()(e=>({root:{width:"100%",height:"100%"},noData:{paddingTop:66,display:"flex",justifyContent:"center"},iconNoData:{width:235,height:235,display:"flex",justifyContent:"center",borderRadius:"50%",padding:"20px",border:"20px solid #F9F9F9"},noDataDescription:{display:"flex",justifyContent:"center",marginTop:66},noDataDescriptionText:{fontSize:"18px",lineHeight:"23px",textTransform:"uppercase",color:e.palette.secondary.main}}));function NotificationContent(){var e=useStyles$b$1()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:e.root,"data-testid":"notification-content"},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:e.noData},{children:jsxRuntime.exports.jsx("div",Object.assign({className:e.iconNoData},{children:jsxRuntime.exports.jsx("img",{src:img$E,draggable:"false",alt:"noNotification"})}))})),jsxRuntime.exports.jsx("div",Object.assign({className:e.noDataDescription},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1","data-test":"no-notification",className:e.noDataDescriptionText},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.pBrbyj",defaultMessage:"You don’t have any notifications!",description:"Notification panel: no notification message"})}))}))]}))}const useStyles$a$1=makeStyles()(e=>({cardContainer:{width:"100%","&:hover":{backgroundColor:"#EEF3F9"}},rootCard:{padding:e.spacing(4,6),display:"flex",cursor:"pointer"},unreadCard:{padding:e.spacing(4,6),display:"flex",cursor:"pointer",paddingLeft:e.spacing(2)},iconCard:{marginTop:e.spacing(-.4)},leftContent:{width:"345px",padding:e.spacing(0,6,0,3)},titleCard:{display:"flex"},appsCard:{fontSize:"14px",fontWeight:600},timestampCard:{fontSize:"12px",paddingLeft:e.spacing(3),color:e.palette.text.secondary},contentCard:{lineHeight:"150%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:e.palette.text.secondary},dividerCard:{margin:e.spacing(0,6),height:"0.5px"},notificationIcon:{width:24,height:24},unread:{width:"auto",marginRight:e.spacing(2.4),fontSize:"unset"},unreadIcon:{width:8,height:8,color:e.palette.primary.main},appName:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"calc(100% - 85px)"}})),NotificationCard=react.exports.forwardRef(({data:e,onViewDetail:t},n)=>{var r=useStyles$a$1()["classes"];const i=useDispatch(),[o,a]=react.exports.useState(!1);const{createdDateTime:s,icon:l,title:c,appName:u,body:d,id:p,flags:f}=e;return jsxRuntime.exports.jsxs("div",Object.assign({ref:n,className:r.cardContainer},{children:[jsxRuntime.exports.jsxs("div",Object.assign({onClick:t,className:null!==f&&void 0!==f&&f.includes(NotificationFlag.unread)?r.unreadCard:r.rootCard},{children:[(null===f||void 0===f?void 0:f.includes(NotificationFlag.unread))&&jsxRuntime.exports.jsx(Icon$1,{"data-test":"notification-unread-icon","data-testid":"notification-unread-icon",className:r.unread,children:jsxRuntime.exports.jsx(default_1$6,{className:r.unreadIcon}),onClick:function(e){e.stopPropagation(),i(updateNotificationReadRequest(p))}}),jsxRuntime.exports.jsx("div",Object.assign({className:r.iconCard},{children:l&&!o?jsxRuntime.exports.jsx("img",{src:l,className:r.notificationIcon,draggable:"false",alt:"notification-card-icon",onError:function(){a(!0)}}):jsxRuntime.exports.jsx(Notifications,{})})),jsxRuntime.exports.jsxs("div",Object.assign({className:r.leftContent},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:r.titleCard},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:r.appName},{children:null!==f&&void 0!==f&&f.includes(NotificationFlag.unread)?jsxRuntime.exports.jsx("strong",{children:u}):u})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:r.timestampCard},{children:jsxRuntime.exports.jsx(FormattedRelativeTime$1,{value:getRelativeValue(s),unit:"minute",updateIntervalInSeconds:60,children:e=>e.includes("seconds")?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.mvPoLJ",defaultMessage:"Just now",description:"the time label of notification that received on 1 minute"}):react.exports.createElement("span",{},e)})}))]})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:r.contentCard},{children:convertHTMLEntities(c||d)}))})]}))]})),jsxRuntime.exports.jsx(Divider$1,{className:r.dividerCard})]}))}),useStyles$9$1=makeStyles()(e=>({header:{opacity:.9,display:"flex",justifyContent:"space-between",padding:e.spacing(3.5,6,4,6),position:"sticky",width:"fit-content",fontSize:"14px",fontWeight:400,top:0},scrollContent:{overflow:"hidden"},infinityLoading:{display:"flex",justifyContent:"center",padding:e.spacing(4)}}));function NotificationList({title:e,data:n,loading:t,handleGetNotification:r,onOpenNotificationDetail:i}){var o=useStyles$9$1()["classes"];const a=react.exports.useRef(),s=react.exports.useCallback(e=>{t||(a.current&&a.current.disconnect(),console.log(IntersectionObserver),a.current=new IntersectionObserver(e=>{e[0].isIntersecting&&r()}),e&&a.current.observe(e))},[r,t]);return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx("div",Object.assign({className:o.header},{children:e.toUpperCase()})),jsxRuntime.exports.jsxs("div",Object.assign({className:o.scrollContent},{children:[n.map((e,t)=>n.length===t+1?jsxRuntime.exports.jsx(NotificationCard,{ref:s,onViewDetail:()=>null==i?void 0:i(e),data:e},t):jsxRuntime.exports.jsx(NotificationCard,{onViewDetail:()=>null==i?void 0:i(e),data:e},t)),t&&jsxRuntime.exports.jsx("div",Object.assign({className:o.infinityLoading},{children:jsxRuntime.exports.jsx(CircularProgress$1,{size:30})}))]}))]})}const useStyles$8$1=makeStyles()(e=>({loadingContainer:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},filterContainer:{position:"absolute",top:e.spacing(12.4),right:0,paddingTop:e.spacing(3),paddingRight:e.spacing(6),paddingBottom:e.spacing(2),width:"100%",display:"flex",justifyContent:"flex-end",backgroundColor:e.palette.background.default},markAllReadButton:{cursor:"pointer",marginRight:e.spacing(4),backgroundColor:e.palette.background.default,textTransform:"capitalize"}})),NotificationPanel=()=>{const r=useDispatch();var e=useStyles$8$1()["classes"],t=useSelector(applicationFilterSelector)||[];const[n,i]=react.exports.useState(!1),o=useSelector(mailboxIdSelector);var a=useSelector(notificationWithFilterSelector);const{filter:s,status:l,notifications:c,availableMailBoxes:u,offset:d,limit:p}=useSelector(notificationSelector),f=e=>Math.max(Math.ceil(50/e),5);react.exports.useEffect(()=>{var e=(null===o||void 0===o?void 0:o.length)||0;0<e&&0===p&&(e=f(e),r(getNotification(0,e)))},[r,p,o]);var h=react.exports.useCallback(()=>{var e;0<u&&(i(!0),e=f(u),r(getNotification(d+p,e,()=>{i(!1)})))},[u,r,p,d]);return jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(lib$4.DynamicModuleLoader,Object.assign({modules:[getNotificationModule()]},{children:0===a.length&&"success"!==l&&"failure"!==l&&0<o.length?jsxRuntime.exports.jsx("div",Object.assign({className:e.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})):0<(null==c?void 0:c.length)?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:e.filterContainer,id:"notification-list-header"},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:function(){r(markAllReadNotificationRequest())},className:e.markAllReadButton,"data-test":"notification-mark-all-read-button","data-testid":"notification-mark-all-read-button"},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"caption",color:"primary"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.PtPIns",defaultMessage:"Mark All Read",description:"label of Mark All Read button"})}))})),jsxRuntime.exports.jsx(Filter,{data:[...filters$3,...t],filter:s,onFilter:function(e){e=e.target.value,r(updateFilterValue(e))}})]})),jsxRuntime.exports.jsx(NotificationList,{title:"All time",onOpenNotificationDetail:function(e){var t="DETAIL_PANEL_ID",n={name:"NOTIFICATION_DETAIL",config:{mode:"actionable",id:e.id,data:Object.assign({},e),actionIconButtons:null!=(n=e.actions)?n:[],onClose:()=>{console.log("onClose")}}};r(unmountPanel$1(t)),r(mountPanel$1({panelId:t,microFrontend:n,panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:413,width:420,header:{title:"Notification detail"},dimmed:0,parentPanelId:"NOTIFICATION_PANEL_ID"}})),r(updateNotificationReadRequest(e.id))},data:a,loading:n,handleGetNotification:h})]}):jsxRuntime.exports.jsx(NotificationContent,{})}))})};function CustomWorkFlow(){return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({display:"flex",justifyContent:"space-between",alignItems:"center","data-testid":"custom-workflow-box"},{children:[jsxRuntime.exports.jsx(Typography$1,{variant:"h3",children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.1+8+OX",defaultMessage:"Custom Workflows",description:"custom-workflows"})}),jsxRuntime.exports.jsx(Button$1,{variant:"outlined",children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.gAFAOA",defaultMessage:"Create New",description:"creat-new-btn"}),color:"primary"})]})),jsxRuntime.exports.jsx(Typography$1,{style:{fontSize:14,marginTop:20},children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.9+Qhjr",defaultMessage:"You don’t have any custom workflows yet. Get started by clicking the Create New button above!",description:"text"})})]})}const useStyles$7$1=makeStyles()(e=>({dividerSmallMargin:{marginTop:e.spacing(3.6),marginBottom:e.spacing(4)},utilityItem:{padding:0,cursor:"pointer"},utilityItemHover:{padding:e.spacing(2,0),"&:hover":{backgroundColor:e.palette.background.paper}},utilityDetail:{fontSize:12}}));function NotificationSettingItem(e){const{imgSrc:t,primaryText:n,secondaryText:r,bigSize:i,onOpenUtility:o,onOpenApplication:a,hideDivider:s,applicationId:l,applicationTitle:c,utilityId:u="",utilityTitle:d="Finder",disabled:p,isHover:f}=e;e=useStyles$7$1().classes;return jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsxs(ListItem$1,Object.assign({className:classnames(e.utilityItem,f?e.utilityItemHover:""),onClick:function(){null!==o&&void 0!==o&&o(u,d),null!==a&&void 0!==a&&a(l,c)},disabled:p,"data-testid":"notification-setting-item"},{children:[jsxRuntime.exports.jsx(ListItemAvatar$1,{children:jsxRuntime.exports.jsx(Avatar$1,{style:{width:i?60:40,height:i?60:40,borderRadius:"50%",marginRight:19},src:t})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(Typography$1,{variant:i?"h3":"body2",children:n}),secondary:jsxRuntime.exports.jsx(Typography$1,{variant:i?"body2":"caption",children:r})})]})),!s&&jsxRuntime.exports.jsx(Divider$1,{className:f?"":e.dividerSmallMargin})]})}const useStyles$6$1=makeStyles()(e=>({notificationTypeItemBox:{background:e.palette.background.paper,borderRadius:e.shape.borderRadius,width:"100%",display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(4,1,1),height:"100%",fontSize:10,lineHeight:"16px",justifyContent:"center"},disableType:{color:e.palette.grey[500]}}));function NotificationTypeItem(e){const{notificationTypeIcon:t,notificationTypeName:n,defaultSelected:r,onSelectNotificationType:i,notificationTypeId:o,isDisabled:a}=e,[s,l]=react.exports.useState(r);e=useStyles$6$1().classes;return jsxRuntime.exports.jsxs("div",Object.assign({className:classnames(e.notificationTypeItemBox,a?e.disableType:""),"data-testid":"notification-type-item"},{children:[jsxRuntime.exports.jsx("div",{children:"string"==typeof t?jsxRuntime.exports.jsx("img",{src:t,alt:"icon",draggable:"false"}):t}),jsxRuntime.exports.jsx("div",{children:n}),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(Checkbox$1,{icon:jsxRuntime.exports.jsx("img",{src:img$1k,alt:"uncheck icon",draggable:"false"}),checkedIcon:jsxRuntime.exports.jsx("img",{src:img$1j,alt:"checked icon",draggable:"false"}),checked:s,onChange:function(){l(e=>(null!==i&&void 0!==i&&i(o,!e),!e))},disabled:!!a})})]}))}const useStyles$5$1=makeStyles()(e=>({notificationTypeBox:{paddingBottom:e.spacing(0)},notificationTypeHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:16,lineHeight:"22px",fontWeight:600,marginBottom:e.spacing(2)},notificationList:{display:"inline-grid",gridColumnGap:e.spacing(2.8),gridTemplateColumns:"1fr 1fr 1fr",width:"100%",marginBottom:e.spacing(4.4)},divider:{marginTop:e.spacing(4),marginBottom:e.spacing(4.4)},dividerWithoutDescription:{marginBottom:e.spacing(3)}})),defaultNotificationTypeList=[{id:INotificationType.EMAIL,notificationTypeIcon:jsxRuntime.exports.jsx(Email,{}),notificationTypeName:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.rTFvFj",defaultMessage:"Email",description:"allow notification types: email"}),isSelected:!0},{id:INotificationType.NOTIFICATION_CENTER,notificationTypeIcon:jsxRuntime.exports.jsx(HelpCenter$1,{}),notificationTypeName:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.SmyvFq",defaultMessage:"Notification Center",description:"allow notification types: Notification Center"}),isSelected:!0},{id:INotificationType.BANNER,notificationTypeIcon:jsxRuntime.exports.jsx(Banner,{}),notificationTypeName:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.r7Whww",defaultMessage:"Banners",description:"allow notification types: Banners"}),isSelected:!0}];function NotificationType(e){const{notificationTypeTitle:t,children:n,description:r,allowTypes:i=[],allowNotification:o,onChangeAllowType:a,hideDivider:s,onChangeNotificationType:l,disabledTypes:c=[]}=e,[u,d]=react.exports.useState(!!o),[p,f]=react.exports.useState(defaultNotificationTypeList);e=useStyles$5$1().classes;const h=[...i],[m,g]=react.exports.useState(i);var y=t||"Allow Notifications";return react.exports.useEffect(()=>{var e=defaultNotificationTypeList.map(t=>{var e=-1!==m.findIndex(e=>e===t.id),n=-1!==c.findIndex(e=>e===t.id);return Object.assign(Object.assign({},t),{isSelected:e,isDisabled:n})});f(e)},[h.join(", "),m]),react.exports.useEffect(()=>{null!==a&&void 0!==a&&a(u),u?0===m.length&&u&&g([INotificationType.EMAIL]):g([])},[u]),jsxRuntime.exports.jsxs("div",Object.assign({className:e.notificationTypeBox},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:e.notificationTypeHeader},{children:[jsxRuntime.exports.jsx(Typography$1,{variant:"h3",children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.8Z0yyD",defaultMessage:"{title}",description:"notification setting: allow notification types",values:{title:y}})}),jsxRuntime.exports.jsx(Switch$1,{checked:u,onChange:function(){d(e=>!e)},color:"primary",name:"notificationTypeChecked","data-testid":"notification-type-switch"})]})),n,jsxRuntime.exports.jsx("div",Object.assign({className:e.notificationList},{children:p.map(t=>{var e=-1!==c.findIndex(e=>e===t.id)||!u;return jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(NotificationTypeItem,{notificationTypeIcon:t.notificationTypeIcon,notificationTypeName:t.notificationTypeName,defaultSelected:t.isSelected,onSelectNotificationType:l,notificationTypeId:t.id,isDisabled:e})},t.id+"-"+t.isSelected)})})),r,!s&&jsxRuntime.exports.jsx(Divider$1,{className:r?e.divider:e.dividerWithoutDescription})]}))}const useStyles$4$1=makeStyles()(e=>({tableCell:{padding:0,"& > span":{paddingLeft:0,paddingRight:0}},itemCell:{padding:0,"& > span":{padding:e.spacing(0,2)}},eventNameContainer:{display:"flex",alignItems:"center"},tableRowCheckbox:{marginRight:e.spacing(2)},rowCheckbox:{paddingLeft:0},customLineHeight:{lineHeight:e.spacing(8)},disabledCheckBox:{"& svg":{color:"green"}}}));function NotificationUtilityActionItem(e){const{events:t,disabled:n}=e,r=useStyles$4$1()["classes"],i=[{type:INotificationType.EMAIL,iconUrl:img$1n},{type:INotificationType.NOTIFICATION_CENTER,iconUrl:img$1m},{type:INotificationType.BANNER,iconUrl:img$1l}];return jsxRuntime.exports.jsx(TableContainer$1,{children:jsxRuntime.exports.jsxs(Table$1,Object.assign({"aria-label":"customized table"},{children:[jsxRuntime.exports.jsx(TableHead$1,{children:jsxRuntime.exports.jsxs(TableRow$1,{children:[jsxRuntime.exports.jsx(TableCell$1,Object.assign({className:r.tableCell},{children:jsxRuntime.exports.jsx(Typography$1,{variant:"h3",children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.KVIpaj",defaultMessage:"Events",description:"allow-notification"})})})),i.map(e=>jsxRuntime.exports.jsx(TableCell$1,Object.assign({align:"center",className:r.itemCell},{children:jsxRuntime.exports.jsx("img",{src:e.iconUrl,alt:e.type})}),e.type))]})}),jsxRuntime.exports.jsx(TableBody$1,{children:null===t||void 0===t?void 0:t.map(t=>jsxRuntime.exports.jsxs(TableRow$1,{children:[jsxRuntime.exports.jsxs(TableCell$1,Object.assign({className:classnames(r.eventNameContainer,r.tableCell)},{children:[jsxRuntime.exports.jsx(Checkbox$1,{id:t.id,disabled:n,className:r.tableRowCheckbox}),jsxRuntime.exports.jsx(ListItemText$1,{children:jsxRuntime.exports.jsx(Typography$1,{variant:"body2",children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.VNVmyk",defaultMessage:"{defaultMessage}",description:"Finder notifications: {defaultMessage}",values:{defaultMessage:t.title,id:t.id}})})})]})),i.map(e=>jsxRuntime.exports.jsx(TableCell$1,Object.assign({className:r.itemCell},{children:jsxRuntime.exports.jsx(Checkbox$1,{id:"checkbox-"+t.id,icon:jsxRuntime.exports.jsx(default_1$5,{}),checkedIcon:jsxRuntime.exports.jsx(CheckCircle,{})})}),e.type+"-type"))]},t.id))})]}))})}const useStyles$3$2=makeStyles()(e=>({finderNotification:{padding:e.spacing(4,6),maxHeight:"100%",overflow:"auto"},buttonBox:{display:"flex",justifyContent:"flex-end",marginTop:e.spacing(8)},buttonLeft:{marginRight:e.spacing(4)},settingItem:{marginBottom:e.spacing(6)},sharedItem:{padding:0}}));function NotificationUtilityPanel(e){const t=e["dataId"];e=useStyles$3$2().classes;const n=useSelector(notificationSelector).settings,r=n.utility;var i=null===r||void 0===r?void 0:r.find(e=>e.id===t);const[o,a]=react.exports.useState(i||{}),s=[],l=[INotificationType.EMAIL,INotificationType.NOTIFICATION_CENTER,INotificationType.BANNER];return l.forEach(t=>{-1===n.allowType.findIndex(e=>e===t)&&s.push(t)}),jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsxs("div",Object.assign({className:e.finderNotification},{children:[jsxRuntime.exports.jsx(NotificationType,{allowTypes:null==o?void 0:o.allowType,allowNotification:null==o?void 0:o.allow,onChangeAllowType:function(r){a(e=>{var t=r?[...e.allowType]:[],n=r?[...e.action]:[...e.action].map(e=>Object.assign(Object.assign({},e),{allow:!1}));return Object.assign(Object.assign({},e),{allow:r,allowType:t,action:n})})},onChangeNotificationType:function(r,i){a(e=>{const t=[...e.allowType];var n=t.indexOf(r);return-1===n||i?t.push(r):t.splice(n,1),Object.assign(Object.assign({},e),{allowType:t})})},disabledTypes:s,children:jsxRuntime.exports.jsx(NotificationSettingItem,{imgSrc:(null==o?void 0:o.iconUrl)||"",primaryText:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.ubNxKs",defaultMessage:"{utilityTitle}",description:"title of notification utility: {utilityTitle}",values:{id:null==o?void 0:o.id,utilityTitle:null==o?void 0:o.title}}),secondaryText:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.XkH621",defaultMessage:"Chose which events you’d like to be notified about.",description:"content of notification utility description"}),bigSize:!0}),description:jsxRuntime.exports.jsx(Typography$1,{variant:"caption",children:"Banner previews are being set at the parent level"})}),jsxRuntime.exports.jsx(NotificationUtilityActionItem,{events:null==o?void 0:o.action,onSelectAction:function(r){a(e=>{const t=[...e.action];var n=t.findIndex(e=>e.id===r.id);return t[n]=r,Object.assign(Object.assign({},e),{action:t})})},disabled:!o.allow}),jsxRuntime.exports.jsx(Divider$1,{style:{marginBottom:20,marginTop:15}}),jsxRuntime.exports.jsx(CustomWorkFlow,{})]}))})}const useStyles$2$3=makeStyles()(e=>({notificationSetting:{padding:e.spacing(3,6,4.4),overflowY:"scroll",height:"100%"},appAllowTitle:{paddingTop:e.spacing(2.4)},dividerBigMargin:{marginTop:e.spacing(2.4),marginBottom:e.spacing(3)},notificationSettingItem:{padding:0},bannerStyleLabel:{fontWeight:"normal"}}));function NotificationSetting(e){var t=useStyles$2$3()["classes"];const i=useDispatch(),[n,r]=react.exports.useState(!0),[o,a]=react.exports.useState(!0);var s=useSelector(notificationSettingSelector);const[l,c]=react.exports.useState(s.bannerStyle),u=useSelector(notificationUtilitiesSelector),d=useSelector(notificationApplicationsSelector),[p,f]=react.exports.useState(null==s?void 0:s.allow),[h,m]=react.exports.useState(s);var s=-1!==(null==(s=null===h||void 0===h?void 0:h.allowType)?void 0:s.findIndex(e=>e===INotificationType.BANNER));const[g,y]=react.exports.useState(s);function v(e,t){var n={name:"NOTIFICATION_UTILITY",config:{mode:"actionable",onClose:()=>{console.log("onClose")}}},r={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:472,width:413,zIndex:1002,header:{divider:!0,title:"finder notifications"}};i(mountPanel$1({panelId:e||"",microFrontend:n,panelConfig:r}))}function x(e,t){var n={name:"NOTIFICATION_APPLICATION",config:{mode:"actionable",onClose:()=>{console.log("onClose")}}},r={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:472,width:413,zIndex:1002,header:{divider:!0,title:"app notifications"}};i(mountPanel$1({panelId:e||"",microFrontend:n,panelConfig:r}))}return react.exports.useEffect(()=>{i(updateNotificationSetting(h))},[h,i]),jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsxs("div",Object.assign({className:t.notificationSetting},{children:[jsxRuntime.exports.jsx(NotificationType,{allowTypes:null===h||void 0===h?void 0:h.allowType,allowNotification:null===h||void 0===h?void 0:h.allow,onChangeAllowType:function(n){f(n),n||(r(n),a(n)),m(e=>{var t=n?[...e.allowType]:[];return Object.assign(Object.assign({},e),{allow:n,allowType:t})})},hideDivider:g,onChangeNotificationType:function(r,i){r===INotificationType.BANNER&&y(i),m(e=>{const t=[...e.allowType];var n=t.indexOf(r);return-1===n||i?t.push(r):t.splice(n,1),Object.assign(Object.assign({},e),{allowType:t})})}}),p&&g&&jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography$1,{variant:"body2",children:"Banner Style"}),jsxRuntime.exports.jsx(FormControl$1,Object.assign({component:"fieldset"},{children:jsxRuntime.exports.jsxs(RadioGroup$1,Object.assign({"aria-label":"bannerStyle",name:"bannerStyle",value:l,onChange:e=>{c(e.target.value),i(updateBannerStyle(e.target.value))},row:!0},{children:[jsxRuntime.exports.jsx(FormControlLabel$1,{value:"temporary",control:jsxRuntime.exports.jsx(Radio$1,{}),label:jsxRuntime.exports.jsx("span",{children:jsxRuntime.exports.jsx(Typography$1,{variant:"body2",children:"Temporary"})})}),jsxRuntime.exports.jsx(FormControlLabel$1,{value:"persistent",control:jsxRuntime.exports.jsx(Radio$1,{}),label:jsxRuntime.exports.jsx("span",{children:jsxRuntime.exports.jsx(Typography$1,{variant:"body2",children:"Persistent"})})})]}))})),jsxRuntime.exports.jsx(Divider$1,{className:t.dividerBigMargin})]}),jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({display:"flex",justifyContent:"space-between",alignItems:"center"},{children:[jsxRuntime.exports.jsx(Typography$1,{variant:"h3",children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.qJ0Sxo",defaultMessage:"Allow Utility Notifications",description:"allow-utility-notification"})}),jsxRuntime.exports.jsx(Switch$1,{checked:n,onChange:e=>{e=e.target.checked;r(e)},color:"primary",name:"enableUtilityNotification",disabled:!p})]})),jsxRuntime.exports.jsx(List$2,Object.assign({className:t.notificationSettingItem},{children:null===u||void 0===u?void 0:u.map(e=>jsxRuntime.exports.jsx(NotificationSettingItem,{imgSrc:e.iconUrl,isHover:!0,primaryText:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.tadsU0",defaultMessage:"{defaultMessage}",description:"title of notification utility: {defaultMessage}",values:{id:e.id,defaultMessage:e.title}}),secondaryText:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.AgAM0k",defaultMessage:"{defaultMessage}",description:"allowed types of notification utility: {defaultMessage}",values:{id:e.id,defaultMessage:e.allowType.join(", ")}}),onOpenUtility:v,utilityId:e.id,utilityTitle:e.title,disabled:!n},e.id))}))]}),jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({display:"flex",justifyContent:"space-between",alignItems:"center",className:t.appAllowTitle},{children:[jsxRuntime.exports.jsx(Typography$1,{variant:"h3",children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.swIpqY",defaultMessage:"Allow Application Notifications",description:"allow-application-notification"})}),jsxRuntime.exports.jsx(Switch$1,{checked:o,onChange:e=>{e=e.target.checked;a(e)},color:"primary",name:"checkedB",disabled:!p})]})),jsxRuntime.exports.jsx(List$2,Object.assign({className:t.notificationSettingItem},{children:null==(s=null===d||void 0===d?void 0:d.allIds)?void 0:s.map(e=>jsxRuntime.exports.jsx(NotificationSettingItem,{imgSrc:null===d||void 0===d?void 0:d.byId[e].iconUrl,isHover:!0,primaryText:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.JvsYLn",defaultMessage:"{defaultMessage}",description:"title of notification application: {defaultMessage}",values:{idMessage:e,defaultMessage:null===d||void 0===d?void 0:d.byId[e].name}}),secondaryText:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.AgAM0k",defaultMessage:"{defaultMessage}",description:"allowed types of notification utility: {defaultMessage}",values:{id:e,defaultMessage:null===d||void 0===d?void 0:d.byId[e].allowType.join(", ")}}),onOpenApplication:x,applicationId:e,applicationTitle:null===d||void 0===d?void 0:d.byId[e].name,disabled:!o},e))}))]})]}))})}const useStyles$1$3=makeStyles()(e=>({appNoti:{padding:e.spacing(6),paddingTop:e.spacing(4.4),overflowY:"scroll",height:"100%"}})),useStyles$f=makeStyles()(e=>({tableCell:{padding:0,"& > span":{paddingLeft:0,paddingRight:0}},tableRowCheckbox:{marginRight:e.spacing(2)},rowCheckbox:{paddingLeft:0,paddingTop:0,paddingBottom:0,height:"20px"},disabledCheckBox:{"& svg":{color:"green"}},firstColumn:{paddingRight:e.spacing(2)},secondColumn:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},thirdColumn:{paddingLeft:e.spacing(2)}}));function NotificationAllowCell(e){const{id:t,type:n,allowType:r,currentApplicationAllowType:i,isLineEnable:o,onChangeAppAction:a}=e,s=useStyles$f()["classes"];e=(e,t)=>{switch(t){case"email":return e.includes(INotificationType.EMAIL);case"banners":return e.includes(INotificationType.BANNER);case"notification-center":return e.includes(INotificationType.NOTIFICATION_CENTER)}};return jsxRuntime.exports.jsx(TableCell$1,Object.assign({align:"center",className:s.tableCell+" "+(()=>{switch(t){case"email":return s.firstColumn;case"notification-center":return s.secondColumn;case"banners":return s.thirdColumn;default:return""}})()},{children:jsxRuntime.exports.jsx(Checkbox$1,{id:"checkbox-"+t,checked:e(r,t),disabled:!e(i,t)||!o,icon:jsxRuntime.exports.jsx(default_1$5,{}),checkedIcon:jsxRuntime.exports.jsx(CheckCircle,{color:e(i,t)&&o?"primary":"disabled"}),onChange:e=>{a(e,n)}})}))}function NotificationAllowRow(e){const{allowNotificationTitle:t,checked:n,allowType:r,appId:i,id:o}=e;e=useStyles$f().classes;const a=useDispatch();var s=useSelector(notificationApplicationSelector(i));const[l,c]=react.exports.useState(n),u=null==s?void 0:s.allowType,[d,p]=react.exports.useState(r),f=[{id:"email",type:INotificationType.EMAIL},{id:"notification-center",type:INotificationType.NOTIFICATION_CENTER},{id:"banners",type:INotificationType.BANNER}];const h=(e,t)=>{let n;n=e.currentTarget.checked?[...d,t]:d.filter(e=>e!==t),p(n),a(updateAppActionAllowNotification(i,o,n,"allowType"))};return jsxRuntime.exports.jsxs(TableRow$1,{children:[jsxRuntime.exports.jsx(TableCell$1,Object.assign({component:"th",scope:"row",className:e.tableCell},{children:jsxRuntime.exports.jsxs(Box$1,Object.assign({display:"flex"},{children:[jsxRuntime.exports.jsx(Checkbox$1,{"data-test":"row-check-"+o,"data-testid":"row-check-"+o,className:e.rowCheckbox,checked:l,onChange:e=>{e=e.currentTarget.checked;c(e),a(updateAppActionAllowNotification(i,o,e,"allow"))}}),jsxRuntime.exports.jsx(Typography$1,{variant:"body2",children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.tSG+Bv",defaultMessage:"{text}",description:"allow-notification-table-{text}",values:{text:t}})})]}))})),f.map(e=>jsxRuntime.exports.jsx(NotificationAllowCell,{id:e.id,type:e.type,allowType:r,currentApplicationAllowType:u,isLineEnable:l,onChangeAppAction:h},e.id))]})}function NotificationAllowTable(e){const{action:n,appId:r}=e;var e=useStyles$f()["classes"],t=classnames(e.tableCell,e.firstColumn),i=classnames(e.tableCell,e.secondColumn),o=classnames(e.tableCell,e.thirdColumn);return jsxRuntime.exports.jsx(TableContainer$1,{children:jsxRuntime.exports.jsxs(Table$1,Object.assign({"aria-label":"notification-table"},{children:[jsxRuntime.exports.jsx(TableHead$1,{children:jsxRuntime.exports.jsxs(TableRow$1,{children:[jsxRuntime.exports.jsx(TableCell$1,Object.assign({className:e.tableCell},{children:jsxRuntime.exports.jsx(Typography$1,{variant:"h3",children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.KVIpaj",defaultMessage:"Events",description:"allow-notification"})})})),jsxRuntime.exports.jsx(TableCell$1,Object.assign({align:"center",className:t},{children:jsxRuntime.exports.jsx("img",{src:img$1n,alt:"img-icon"})})),jsxRuntime.exports.jsx(TableCell$1,Object.assign({align:"center",className:i},{children:jsxRuntime.exports.jsx("img",{src:img$1m,alt:"img-icon"})})),jsxRuntime.exports.jsx(TableCell$1,Object.assign({align:"center",className:o},{children:jsxRuntime.exports.jsx("img",{src:img$1l,alt:"img-icon"})}))]})}),jsxRuntime.exports.jsx(TableBody$1,{children:null==(e=null===n||void 0===n?void 0:n.allIds)?void 0:e.map(e=>{var t;return jsxRuntime.exports.jsx(NotificationAllowRow,{allowNotificationTitle:null==(t=null===n||void 0===n?void 0:n.byId[e])?void 0:t.title,checked:null==(t=null===n||void 0===n?void 0:n.byId[e])?void 0:t.allow,allowType:null==(t=null===n||void 0===n?void 0:n.byId[e])?void 0:t.allowType,appId:r,id:e},e)})})]}))})}function NotificationApplication(e){const o=e["dataId"];var e=useStyles$1$3()["classes"];const t=useDispatch();var n=useSelector(notificationApplicationsSelector);const[r,a]=react.exports.useState(n),i=useSelector(notificationSelector).settings;var s=useSelector(notificationApplicationSelector(o));react.exports.useEffect(()=>{t(updateApplicationSetting(r))},[r]);const l=[INotificationType.EMAIL,INotificationType.NOTIFICATION_CENTER,INotificationType.BANNER],c=[];l.forEach(t=>{-1===(null===i||void 0===i?void 0:i.allowType.findIndex(e=>e===t))&&c.push(t)});return jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsxs("div",Object.assign({className:e.appNoti},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(NotificationType,{notificationTypeTitle:"Allow Notifications",allowNotification:null==n?void 0:n.byId[o].allow,allowTypes:null==(e=null==n?void 0:n.byId[o])?void 0:e.allowType,disabledTypes:c,children:jsxRuntime.exports.jsx(NotificationSettingItem,{imgSrc:(null==(e=null==n?void 0:n.byId[o])?void 0:e.iconUrl)||"",primaryText:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.OR1ivL",defaultMessage:"{text}",description:"notification-app-id",values:{text:null==s?void 0:s.name}}),secondaryText:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-notification-panel.QgzNQa",defaultMessage:"{text}",description:"notification application detail text",values:{text:null==s?void 0:s.description}}),bigSize:!0}),description:jsxRuntime.exports.jsx(Typography$1,{variant:"caption",children:"Banner previews are being set at the parent level"}),onChangeNotificationType:function(r,i){a(e=>{const t=[...e.byId[o].allowType];var n=t.indexOf(r);return i&&-1===n?t.push(r):t.splice(n,1),Object.assign(Object.assign({},e),{byId:Object.assign(Object.assign({},e.byId),{[o]:Object.assign(Object.assign({},e.byId[o]),{allowType:t})})})})},onChangeAllowType:e=>{t(updateAppAllowNotification(o,e))}})}),jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(NotificationAllowTable,{action:null==(e=null==n?void 0:n.byId[o])?void 0:e.action,appId:o}),jsxRuntime.exports.jsx(Divider$1,{style:{marginBottom:20,marginTop:15}})]}),jsxRuntime.exports.jsx(CustomWorkFlow,{})]}))})}var index_esm$2=Object.freeze({__proto__:null,NotificationApplication:NotificationApplication,NotificationDetailPanel:NotificationDetailPanel,NotificationPanel:NotificationPanel,NotificationSetting:NotificationSetting,NotificationUtilityPanel:NotificationUtilityPanel,initNotificationAction:initNotificationAction,onNotificationActionClicked:onNotificationActionClicked}),Search={},_interopRequireDefault$4=interopRequireDefault.exports,default_1$4=(Object.defineProperty(Search,"__esModule",{value:!0}),Search.default=void 0),_createSvgIcon$4=_interopRequireDefault$4(createSvgIcon),_jsxRuntime$4=jsxRuntime.exports,_default$4=(0,_createSvgIcon$4.default)((0,_jsxRuntime$4.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");function getLoadingButtonUtilityClass(e){return generateUtilityClass("MuiLoadingButton",e)}default_1$4=Search.default=_default$4;const loadingButtonClasses=generateUtilityClasses("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]);var loadingButtonClasses$1=loadingButtonClasses;const _excluded=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],useUtilityClasses=e=>{var{loading:e,loadingPosition:t,classes:n}=e;return _extends({},n,composeClasses({root:["root",e&&"loading"],startIcon:[e&&"startIconLoading"+capitalize$2(t)],endIcon:[e&&"endIconLoading"+capitalize$2(t)],loadingIndicator:["loadingIndicator",e&&"loadingIndicator"+capitalize$2(t)]},getLoadingButtonUtilityClass,n))},rootShouldForwardProp=e=>"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e&&"classes"!==e,LoadingButtonRoot=styled$1(Button$1,{shouldForwardProp:e=>rootShouldForwardProp(e)||"classes"===e,name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{["& ."+loadingButtonClasses$1.startIconLoadingStart]:t.startIconLoadingStart},t.endIconLoadingEnd&&{["& ."+loadingButtonClasses$1.endIconLoadingEnd]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>_extends({[`& .${loadingButtonClasses$1.startIconLoadingStart}, & .`+loadingButtonClasses$1.endIconLoadingEnd]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},"center"===e.loadingPosition&&{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),["&."+loadingButtonClasses$1.loading]:{color:"transparent"}},"start"===e.loadingPosition&&e.fullWidth&&{[`& .${loadingButtonClasses$1.startIconLoadingStart}, & .`+loadingButtonClasses$1.endIconLoadingEnd]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},"end"===e.loadingPosition&&e.fullWidth&&{[`& .${loadingButtonClasses$1.startIconLoadingStart}, & .`+loadingButtonClasses$1.endIconLoadingEnd]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),LoadingButtonLoadingIndicator=styled$1("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{e=e.ownerState;return[t.loadingIndicator,t["loadingIndicator"+capitalize$2(e.loadingPosition)]]}})(({theme:e,ownerState:t})=>_extends({position:"absolute",visibility:"visible",display:"flex"},"start"===t.loadingPosition&&("outlined"===t.variant||"contained"===t.variant)&&{left:"small"===t.size?10:14},"start"===t.loadingPosition&&"text"===t.variant&&{left:6},"center"===t.loadingPosition&&{left:"50%",transform:"translate(-50%)",color:e.palette.action.disabled},"end"===t.loadingPosition&&("outlined"===t.variant||"contained"===t.variant)&&{right:"small"===t.size?10:14},"end"===t.loadingPosition&&"text"===t.variant&&{right:6},"start"===t.loadingPosition&&t.fullWidth&&{position:"relative",left:-10},"end"===t.loadingPosition&&t.fullWidth&&{position:"relative",right:-10})),LoadingButton=react.exports.forwardRef(function(e,t){var e=useThemeProps({props:e,name:"MuiLoadingButton"}),{children:n,disabled:r=!1,id:i,loading:o=!1,loadingIndicator:a,loadingPosition:s="center",variant:l="text"}=e,c=_objectWithoutPropertiesLoose$2(e,_excluded),i=useId(i),a=null!=a?a:jsxRuntime.exports.jsx(CircularProgress$1,{"aria-labelledby":i,color:"inherit",size:16}),e=_extends({},e,{disabled:r,loading:o,loadingIndicator:a,loadingPosition:s,variant:l}),s=useUtilityClasses(e);return jsxRuntime.exports.jsx(LoadingButtonRoot,_extends({disabled:r||o,id:i,ref:t},c,{variant:l,classes:s,ownerState:e,children:"end"===e.loadingPosition?jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[n,o&&jsxRuntime.exports.jsx(LoadingButtonLoadingIndicator,{className:s.loadingIndicator,ownerState:e,children:a})]}):jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[o&&jsxRuntime.exports.jsx(LoadingButtonLoadingIndicator,{className:s.loadingIndicator,ownerState:e,children:a}),n]})}))});var LoadingButton$1=LoadingButton,Link={},_interopRequireDefault$3=interopRequireDefault.exports,default_1$3=(Object.defineProperty(Link,"__esModule",{value:!0}),Link.default=void 0),_createSvgIcon$3=_interopRequireDefault$3(createSvgIcon),_jsxRuntime$3=jsxRuntime.exports,_default$3=(0,_createSvgIcon$3.default)((0,_jsxRuntime$3.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link"),default_1$3=Link.default=_default$3,cropper={exports:{}},Cropper=(!function(){function N(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 P(r){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?N(Object(i),!0).forEach(function(e){var t,n;t=r,n=i[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):N(Object(i)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))})}return r}function D(e){return(D="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 V(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 H(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(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 p(e){return"number"==typeof e&&!ie(e)}function i(e){return void 0===e}function o(e){return"object"===D(e)&&null!==e}function f(e){if(!o(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&ae.call(n,"isPrototypeOf")}catch(e){return!1}}function c(e){return"function"==typeof e}function F(e){return Array.from?Array.from(e):se.call(e)}function _(n,r){return n&&c(r)&&(Array.isArray(n)||p(n.length)?F(n).forEach(function(e,t){r.call(n,e,t,n)}):o(n)&&Object.keys(n).forEach(function(e){r.call(n,n[e],e,n)})),n}function j(e,t){var n=1<arguments.length&&void 0!==t?t:1e11;return le.test(e)?Math.round(e*n)/n:e}function h(e,t){var n=e.style;_(t,function(e,t){ce.test(t)&&p(e)&&(e="".concat(e,"px")),n[t]=e})}function u(e,t){var n;t&&(p(e.length)?_(e,function(e){u(e,t)}):e.classList?e.classList.add(t):(n=e.className.trim())?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t)}function T(e,t){t&&(p(e.length)?_(e,function(e){T(e,t)}):e.classList?e.classList.remove(t):0<=e.className.indexOf(t)&&(e.className=e.className.replace(t,"")))}function a(e,t,n){t&&(p(e.length)?_(e,function(e){a(e,t,n)}):(n?u:T)(e,t))}function s(e){return e.replace(ue,"$1-$2").toLowerCase()}function B(e,t){return o(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(s(t)))}function d(e,t,n){o(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(s(t)),n)}function l(n,e,r,t){var i=3<arguments.length&&void 0!==t?t:{},o=r;e.trim().split(de).forEach(function(e){var t;pe||(t=n.listeners)&&t[e]&&t[e][r]&&(o=t[e][r],delete t[e][r],0===Object.keys(t[e]).length&&delete t[e],0===Object.keys(t).length&&delete n.listeners),n.removeEventListener(e,o,i)})}function m(o,e,a,t){var s=3<arguments.length&&void 0!==t?t:{},l=a;e.trim().split(de).forEach(function(r){var e,i;s.once&&!pe&&(e=o.listeners,l=function(){delete i[r][a],o.removeEventListener(r,l,s);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];a.apply(o,t)},(i=void 0===e?{}:e)[r]||(i[r]={}),i[r][a]&&o.removeEventListener(r,i[r][a],s),i[r][a]=l,o.listeners=i),o.addEventListener(r,l,s)})}function g(e,t,n){var r;return c(Event)&&c(CustomEvent)?r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)}function U(e){e=e.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}function Z(e){e=e.match(fe);return null!==e&&(e[1]!==t.protocol||e[2]!==t.hostname||e[3]!==t.port)}function z(e){var t="timestamp=".concat((new Date).getTime());return e+(-1===e.indexOf("?")?"?":"&")+t}function y(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,e=e.translateY,o=[],i=(p(i)&&0!==i&&o.push("translateX(".concat(i,"px)")),p(e)&&0!==e&&o.push("translateY(".concat(e,"px)")),p(t)&&0!==t&&o.push("rotate(".concat(t,"deg)")),p(n)&&1!==n&&o.push("scaleX(".concat(n,")")),p(r)&&1!==r&&o.push("scaleY(".concat(r,")")),o.length?o.join(" "):"none");return{WebkitTransform:i,msTransform:i,transform:i}}function v(e,t){var n=e.pageX,e=e.pageY,r={endX:n,endY:e};return t?r:P({startX:n,startY:e},r)}function I(e,t){var n,r=e.aspectRatio,i=e.height,o=e.width,a=1<arguments.length&&void 0!==t?t:"contain",s=oe(o),l=oe(i);return s&&l?(n=i*r,"contain"===a&&o<n||"cover"===a&&n<o?i=o/r:o=i*r):s?i=o/r:l&&(o=i*r),{width:o,height:i}}var x,C,b,$,W,E,G,q,w,S,R,O,L,M,A,K,Y,Q,X,J,ee,te,ne,re,ie,oe,ae,se,k,le,ce,ue,de,pe,t,fe,he,me,e,n,ge,ye,ve,xe,Ce,be;cropper.exports=(x="undefined"!=typeof window&&void 0!==window.document,C=x?window:{},n=!(!x||!C.document.documentElement)&&"ontouchstart"in C.document.documentElement,e=x&&"PointerEvent"in C,$="".concat(b="cropper","-crop"),W="".concat(b,"-disabled"),E="".concat(b,"-hidden"),G="".concat(b,"-hide"),q="".concat(b,"-invisible"),w="".concat(b,"-modal"),S="".concat(b,"-move"),R="".concat(b,"Action"),O="".concat(b,"Preview"),L="cropend",M="cropmove",A="cropstart",K=e?"pointerdown":n?"touchstart":"mousedown",Y=e?"pointermove":n?"touchmove":"mousemove",Q=e?"pointerup pointercancel":n?"touchend touchcancel":"mouseup",X="image/jpeg",J=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,ee=/^data:/,te=/^data:image\/jpeg;base64,/,ne=/^img|canvas$/i,re={viewMode:0,dragMode:"crop",initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},ie=Number.isNaN||C.isNaN,oe=function(e){return 0<e&&e<1/0},ae=Object.prototype.hasOwnProperty,se=Array.prototype.slice,k=Object.assign||function(n){for(var e=arguments.length,t=new Array(1<e?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];return o(n)&&0<t.length&&t.forEach(function(t){o(t)&&Object.keys(t).forEach(function(e){n[e]=t[e]})}),n},le=/\.\d*(?:0|9){12}\d*$/,ce=/^width|height|left|top|marginLeft|marginTop$/,ue=/([a-z\d])([A-Z])/g,de=/\s\s*/,pe=function(){var t,e,n,r=!1;return x&&(t=!1,e=function(){},n=Object.defineProperty({},"once",{get:function(){return r=!0,t},set:function(e){t=e}}),C.addEventListener("test",e,n),C.removeEventListener("test",e,n)),r}(),t=C.location,fe=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i,he=String.fromCharCode,me=/^data:.*,/,e={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,n=this.container,r=this.cropper,i=Number(t.minContainerWidth),t=Number(t.minContainerHeight),i=(u(r,E),T(e,E),{width:Math.max(n.offsetWidth,0<=i?i:200),height:Math.max(n.offsetHeight,0<=t?t:100)});h(r,{width:(this.containerData=i).width,height:i.height}),u(e,E),T(r,E)},initCanvas:function(){var e=this.containerData,t=this.imageData,n=this.options.viewMode,r=Math.abs(t.rotate)%180==90,i=r?t.naturalHeight:t.naturalWidth,r=r?t.naturalWidth:t.naturalHeight,t=i/r,o=e.width,a=e.height,t=(e.height*t>e.width?3===n?o=e.height*t:a=e.width/t:3===n?a=e.width/t:o=e.height*t,{aspectRatio:t,naturalWidth:i,naturalHeight:r,width:o,height:a});this.canvasData=t,this.limited=1===n||2===n,this.limitCanvas(!0,!0),t.width=Math.min(Math.max(t.width,t.minWidth),t.maxWidth),t.height=Math.min(Math.max(t.height,t.minHeight),t.maxHeight),t.left=(e.width-t.width)/2,t.top=(e.height-t.height)/2,t.oldLeft=t.left,t.oldTop=t.top,this.initialCanvasData=k({},t)},limitCanvas:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=n.viewMode,s=i.aspectRatio,l=this.cropped&&o;e&&(e=Number(n.minCanvasWidth)||0,n=Number(n.minCanvasHeight)||0,1<a?(e=Math.max(e,r.width),n=Math.max(n,r.height),3===a&&(e<n*s?e=n*s:n=e/s)):0<a&&(e?e=Math.max(e,l?o.width:0):n?n=Math.max(n,l?o.height:0):l&&((e=o.width)<(n=o.height)*s?e=n*s:n=e/s)),e=(s=I({aspectRatio:s,width:e,height:n})).width,n=s.height,i.minWidth=e,i.minHeight=n,i.maxWidth=1/0,i.maxHeight=1/0),t&&((l?0:1)<a?(s=r.width-i.width,e=r.height-i.height,i.minLeft=Math.min(0,s),i.minTop=Math.min(0,e),i.maxLeft=Math.max(0,s),i.maxTop=Math.max(0,e),l&&this.limited&&(i.minLeft=Math.min(o.left,o.left+(o.width-i.width)),i.minTop=Math.min(o.top,o.top+(o.height-i.height)),i.maxLeft=o.left,i.maxTop=o.top,2===a&&(i.width>=r.width&&(i.minLeft=Math.min(0,s),i.maxLeft=Math.max(0,s)),i.height>=r.height&&(i.minTop=Math.min(0,e),i.maxTop=Math.max(0,e))))):(i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height))},renderCanvas:function(e,t){var n,r,i=this.canvasData,o=this.imageData;t&&(o=(t=function(e){var t=e.width,n=e.height,e=e.degree;if(90==(e=Math.abs(e)%180))return{width:n,height:t};var r=e%90*Math.PI/180,i=Math.sin(r),r=Math.cos(r),o=t*r+n*i,t=t*i+n*r;return 90<e?{width:t,height:o}:{width:o,height:t}}({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0})).width,t=t.height,n=i.width*(o/i.naturalWidth),r=i.height*(t/i.naturalHeight),i.left-=(n-i.width)/2,i.top-=(r-i.height)/2,i.width=n,i.height=r,i.aspectRatio=o/t,i.naturalWidth=o,i.naturalHeight=t,this.limitCanvas(!0,!1)),(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,h(this.canvas,k({width:i.width,height:i.height},y({translateX:i.left,translateY:i.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,n=this.imageData,r=n.naturalWidth*(t.width/t.naturalWidth),i=n.naturalHeight*(t.height/t.naturalHeight);k(n,{width:r,height:i,left:(t.width-r)/2,top:(t.height-i)/2}),h(this.image,k({width:n.width,height:n.height},y(k({translateX:n.left,translateY:n.top},n)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,n=e.aspectRatio||e.initialAspectRatio,e=Number(e.autoCropArea)||.8,r={width:t.width,height:t.height};n&&(t.height*n>t.width?r.height=r.width/n:r.width=r.height*n),this.cropBoxData=r,this.limitCropBox(!0,!0),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),r.width=Math.max(r.minWidth,r.width*e),r.height=Math.max(r.minHeight,r.height*e),r.left=t.left+(t.width-r.width)/2,r.top=t.top+(t.height-r.height)/2,r.oldLeft=r.left,r.oldTop=r.top,this.initialCropBoxData=k({},r)},limitCropBox:function(e,t){var n,r,i=this.options,o=this.containerData,a=this.canvasData,s=this.cropBoxData,l=this.limited,c=i.aspectRatio;e&&(e=Number(i.minCropBoxWidth)||0,i=Number(i.minCropBoxHeight)||0,n=l?Math.min(o.width,a.width,a.width+a.left,o.width-a.left):o.width,r=l?Math.min(o.height,a.height,a.height+a.top,o.height-a.top):o.height,e=Math.min(e,o.width),i=Math.min(i,o.height),c&&(e&&i?e<i*c?i=e/c:e=i*c:e?i=e/c:i&&(e=i*c),n<r*c?r=n/c:n=r*c),s.minWidth=Math.min(e,n),s.minHeight=Math.min(i,r),s.maxWidth=n,s.maxHeight=r),t&&(l?(s.minLeft=Math.max(0,a.left),s.minTop=Math.max(0,a.top),s.maxLeft=Math.min(o.width,a.left+a.width)-s.width,s.maxTop=Math.min(o.height,a.top+a.height)-s.height):(s.minLeft=0,s.minTop=0,s.maxLeft=o.width-s.width,s.maxTop=o.height-s.height))},renderCropBox:function(){var e=this.options,t=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,e.movable&&e.cropBoxMovable&&d(this.face,R,n.width>=t.width&&n.height>=t.height?"move":"all"),h(this.cropBox,k({width:n.width,height:n.height},y({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),g(this.element,"crop",this.getData())}},n={initPreview:function(){var e=this.element,n=this.crossOrigin,t=this.options.preview,r=n?this.crossOriginUrl:this.url,i=e.alt||"The image to preview",o=document.createElement("img");n&&(o.crossOrigin=n),o.src=r,o.alt=i,this.viewBox.appendChild(o),this.viewBoxImage=o,t&&("string"==typeof(o=t)?o=e.ownerDocument.querySelectorAll(t):t.querySelector&&(o=[t]),_(this.previews=o,function(e){var t=document.createElement("img");d(e,O,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),n&&(t.crossOrigin=n),t.src=r,t.alt=i,t.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(t)}))},resetPreview:function(){_(this.previews,function(t){var n=B(t,O),n=(h(t,{width:n.width,height:n.height}),t.innerHTML=n.html,t),t=O;if(o(n[t]))try{delete n[t]}catch(e){n[t]=void 0}else if(n.dataset)try{delete n.dataset[t]}catch(e){n.dataset[t]=void 0}else n.removeAttribute("data-".concat(s(t)))})},preview:function(){var a=this.imageData,e=this.canvasData,t=this.cropBoxData,s=t.width,l=t.height,c=a.width,u=a.height,d=t.left-e.left-a.left,p=t.top-e.top-a.top;this.cropped&&!this.disabled&&(h(this.viewBoxImage,k({width:c,height:u},y(k({translateX:-d,translateY:-p},a)))),_(this.previews,function(e){var t=B(e,O),n=t.width,t=t.height,r=n,i=t,o=1;s&&(i=l*(o=n/s)),l&&t<i&&(r=s*(o=t/l),i=t),h(e,{width:r,height:i}),h(e.getElementsByTagName("img")[0],k({width:c*o,height:u*o},y(k({translateX:-d*o,translateY:-p*o},a))))}))}},ge={bind:function(){var e=this.element,t=this.options,n=this.cropper;c(t.cropstart)&&m(e,A,t.cropstart),c(t.cropmove)&&m(e,M,t.cropmove),c(t.cropend)&&m(e,L,t.cropend),c(t.crop)&&m(e,"crop",t.crop),c(t.zoom)&&m(e,"zoom",t.zoom),m(n,K,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&m(n,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&m(n,"dblclick",this.onDblclick=this.dblclick.bind(this)),m(e.ownerDocument,Y,this.onCropMove=this.cropMove.bind(this)),m(e.ownerDocument,Q,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&m(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,n=this.cropper;c(t.cropstart)&&l(e,A,t.cropstart),c(t.cropmove)&&l(e,M,t.cropmove),c(t.cropend)&&l(e,L,t.cropend),c(t.crop)&&l(e,"crop",t.crop),c(t.zoom)&&l(e,"zoom",t.zoom),l(n,K,this.onCropStart),t.zoomable&&t.zoomOnWheel&&l(n,"wheel",this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&l(n,"dblclick",this.onDblclick),l(e.ownerDocument,Y,this.onCropMove),l(e.ownerDocument,Q,this.onCropEnd),t.responsive&&l(window,"resize",this.onResize)}},ye={resize:function(){var e,t,n,r,i,o,a;this.disabled||(e=this.options,r=this.container,t=this.containerData,n=r.offsetWidth/t.width,r=r.offsetHeight/t.height,1!=(i=Math.abs(n-1)>Math.abs(r-1)?n:r)&&(e.restore&&(o=this.getCanvasData(),a=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(_(o,function(e,t){o[t]=e*i})),this.setCropBoxData(_(a,function(e,t){a[t]=e*i})))))},dblclick:function(){var e,t;this.disabled||"none"===this.options.dragMode||this.setDragMode((e=this.dragBox,t=$,(e.classList?e.classList.contains(t):-1<e.className.indexOf(t))?"move":"crop"))},wheel:function(e){var t=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(e.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50),e.deltaY?r=0<e.deltaY?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=0<e.detail?1:-1),this.zoom(-r*n,e)))},cropStart:function(e){var t,n=e.buttons,r=e.button;this.disabled||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(p(n)&&1!==n||p(r)&&0!==r||e.ctrlKey)||(n=this.options,t=this.pointers,e.changedTouches?_(e.changedTouches,function(e){t[e.identifier]=v(e)}):t[e.pointerId||0]=v(e),r=1<Object.keys(t).length&&n.zoomable&&n.zoomOnTouch?"zoom":B(e.target,R),J.test(r)&&!1!==g(this.element,A,{originalEvent:e,action:r})&&(e.preventDefault(),this.action=r,this.cropping=!1,"crop"===r&&(this.cropping=!0,u(this.dragBox,w))))},cropMove:function(e){var t,n=this.action;!this.disabled&&n&&(t=this.pointers,e.preventDefault(),!1!==g(this.element,M,{originalEvent:e,action:n})&&(e.changedTouches?_(e.changedTouches,function(e){k(t[e.identifier]||{},v(e,!0))}):k(t[e.pointerId||0]||{},v(e,!0)),this.change(e)))},cropEnd:function(e){var t,n;this.disabled||(t=this.action,n=this.pointers,e.changedTouches?_(e.changedTouches,function(e){delete n[e.identifier]}):delete n[e.pointerId||0],t&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,a(this.dragBox,w,this.cropped&&this.options.modal)),g(this.element,L,{originalEvent:e,action:t})))}},ve={change:function(e){function t(e){switch(e){case"e":g+S.x>C&&(S.x=C-g);break;case"w":p+S.x<v&&(S.x=v-p);break;case"n":f+S.y<x&&(S.y=x-f);break;case"s":y+S.y>b&&(S.y=b-y)}}var n,r,o,i=this.options,a=this.canvasData,s=this.containerData,l=this.cropBoxData,c=this.pointers,u=this.action,d=i.aspectRatio,p=l.left,f=l.top,h=l.width,m=l.height,g=p+h,y=f+m,v=0,x=0,C=s.width,b=s.height,$=!0,w=(!d&&e.shiftKey&&(d=h&&m?h/m:1),this.limited&&(v=l.minLeft,x=l.minTop,C=v+Math.min(s.width,a.width,a.left+a.width),b=x+Math.min(s.height,a.height,a.top+a.height)),c[Object.keys(c)[0]]),S={x:w.endX-w.startX,y:w.endY-w.startY};switch(u){case"all":p+=S.x,f+=S.y;break;case"e":if(0<=S.x&&(C<=g||d&&(f<=x||b<=y))){$=!1;break}t("e"),(h+=S.x)<0&&(u="w",p-=h=-h),d&&(f+=(l.height-(m=h/d))/2);break;case"n":if(S.y<=0&&(f<=x||d&&(p<=v||C<=g))){$=!1;break}t("n"),m-=S.y,f+=S.y,m<0&&(u="s",f-=m=-m),d&&(p+=(l.width-(h=m*d))/2);break;case"w":if(S.x<=0&&(p<=v||d&&(f<=x||b<=y))){$=!1;break}t("w"),h-=S.x,p+=S.x,h<0&&(u="e",p-=h=-h),d&&(f+=(l.height-(m=h/d))/2);break;case"s":if(0<=S.y&&(b<=y||d&&(p<=v||C<=g))){$=!1;break}t("s"),(m+=S.y)<0&&(u="n",f-=m=-m),d&&(p+=(l.width-(h=m*d))/2);break;case"ne":if(d){if(S.y<=0&&(f<=x||C<=g)){$=!1;break}t("n"),m-=S.y,f+=S.y,h=m*d}else t("n"),t("e"),!(0<=S.x)||g<C?h+=S.x:S.y<=0&&f<=x&&($=!1),(!(S.y<=0)||x<f)&&(m-=S.y,f+=S.y);h<0&&m<0?(u="sw",f-=m=-m,p-=h=-h):h<0?(u="nw",p-=h=-h):m<0&&(u="se",f-=m=-m);break;case"nw":if(d){if(S.y<=0&&(f<=x||p<=v)){$=!1;break}t("n"),m-=S.y,f+=S.y,p+=l.width-(h=m*d)}else t("n"),t("w"),!(S.x<=0)||v<p?(h-=S.x,p+=S.x):S.y<=0&&f<=x&&($=!1),(!(S.y<=0)||x<f)&&(m-=S.y,f+=S.y);h<0&&m<0?(u="se",f-=m=-m,p-=h=-h):h<0?(u="ne",p-=h=-h):m<0&&(u="sw",f-=m=-m);break;case"sw":if(d){if(S.x<=0&&(p<=v||b<=y)){$=!1;break}t("w"),h-=S.x,p+=S.x,m=h/d}else t("s"),t("w"),!(S.x<=0)||v<p?(h-=S.x,p+=S.x):0<=S.y&&b<=y&&($=!1),(!(0<=S.y)||y<b)&&(m+=S.y);h<0&&m<0?(u="ne",f-=m=-m,p-=h=-h):h<0?(u="se",p-=h=-h):m<0&&(u="nw",f-=m=-m);break;case"se":if(d){if(0<=S.x&&(C<=g||b<=y)){$=!1;break}t("e"),m=(h+=S.x)/d}else t("s"),t("e"),!(0<=S.x)||g<C?h+=S.x:0<=S.y&&b<=y&&($=!1),(!(0<=S.y)||y<b)&&(m+=S.y);h<0&&m<0?(u="nw",f-=m=-m,p-=h=-h):h<0?(u="sw",p-=h=-h):m<0&&(u="ne",f-=m=-m);break;case"move":this.move(S.x,S.y),$=!1;break;case"zoom":this.zoom((r=P({},n=c),o=0,_(n,function(i,e){delete r[e],_(r,function(e){var t=Math.abs(i.startX-e.startX),n=Math.abs(i.startY-e.startY),r=Math.abs(i.endX-e.endX),e=Math.abs(i.endY-e.endY),t=Math.sqrt(t*t+n*n),n=(Math.sqrt(r*r+e*e)-t)/t;Math.abs(n)>Math.abs(o)&&(o=n)})}),o),e),$=!1;break;case"crop":if(!S.x||!S.y){$=!1;break}n=U(this.cropper),p=w.startX-n.left,f=w.startY-n.top,h=l.minWidth,m=l.minHeight,0<S.x?u=0<S.y?"se":"ne":S.x<0&&(p-=h,u=0<S.y?"sw":"nw"),S.y<0&&(f-=m),this.cropped||(T(this.cropBox,E),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}$&&(l.width=h,l.height=m,l.left=p,l.top=f,this.action=u,this.renderCropBox()),_(c,function(e){e.startX=e.endX,e.startY=e.endY})}},xe={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&u(this.dragBox,w),T(this.cropBox,E),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=k({},this.initialImageData),this.canvasData=k({},this.initialCanvasData),this.cropBoxData=k({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(k(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),T(this.dragBox,w),u(this.cropBox,E)),this},replace:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,_(this.previews,function(e){e.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,T(this.cropper,W)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,u(this.cropper,W)),this},destroy:function(){var e=this.element;return e[b]&&(e[b]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate()),this},move:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=n.left,n=n.top;return this.moveTo(i(e)?e:r+Number(e),i(t)?t:n+Number(t))},moveTo:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(p(e)&&(n.left=e,r=!0),p(t)&&(n.top=t,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(e,t){var n=this.canvasData;return e=Number(e),this.zoomTo(n.width*(e=e<0?1/(1-e):1+e)/n.naturalWidth,null,t)},zoomTo:function(e,t,n){var r,i,o,a=this.options,s=this.canvasData,l=s.width,c=s.height,u=s.naturalWidth,d=s.naturalHeight;if(0<=(e=Number(e))&&this.ready&&!this.disabled&&a.zoomable){a=u*e,d=d*e;if(!1===g(this.element,"zoom",{ratio:e,oldRatio:l/u,originalEvent:n}))return this;n?(e=this.pointers,u=U(this.cropper),e=e&&Object.keys(e).length?(o=i=r=0,_(e,function(e){var t=e.startX,e=e.startY;r+=t,i+=e,o+=1}),{pageX:r/=o,pageY:i/=o}):{pageX:n.pageX,pageY:n.pageY},s.left-=(a-l)*((e.pageX-u.left-s.left)/l),s.top-=(d-c)*((e.pageY-u.top-s.top)/c)):f(t)&&p(t.x)&&p(t.y)?(s.left-=(a-l)*((t.x-s.left)/l),s.top-=(d-c)*((t.y-s.top)/c)):(s.left-=(a-l)/2,s.top-=(d-c)/2),s.width=a,s.height=d,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return p(e=Number(e))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,p(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(p(t)?t:1,e)},scale:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(p(e)&&(n.scaleX=e,r=!0),p(t)&&(n.scaleY=t,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var n,r,e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=this.options,i=this.imageData,o=this.canvasData,a=this.cropBoxData;return this.ready&&this.cropped?(n={x:a.left-o.left,y:a.top-o.top,width:a.width,height:a.height},r=i.width/i.naturalWidth,_(n,function(e,t){n[t]=e/r}),e&&(o=Math.round(n.y+n.height),a=Math.round(n.x+n.width),n.x=Math.round(n.x),n.y=Math.round(n.y),n.width=a-n.x,n.height=o-n.y)):n={x:0,y:0,width:0,height:0},t.rotatable&&(n.rotate=i.rotate||0),t.scalable&&(n.scaleX=i.scaleX||1,n.scaleY=i.scaleY||1),n},setData:function(e){var t,n=this.options,r=this.imageData,i=this.canvasData,o={};return this.ready&&!this.disabled&&f(e)&&(t=!1,n.rotatable&&p(e.rotate)&&e.rotate!==r.rotate&&(r.rotate=e.rotate,t=!0),n.scalable&&(p(e.scaleX)&&e.scaleX!==r.scaleX&&(r.scaleX=e.scaleX,t=!0),p(e.scaleY)&&e.scaleY!==r.scaleY&&(r.scaleY=e.scaleY,t=!0)),t&&this.renderCanvas(!0,!0),n=r.width/r.naturalWidth,p(e.x)&&(o.left=e.x*n+i.left),p(e.y)&&(o.top=e.y*n+i.top),p(e.width)&&(o.width=e.width*n),p(e.height)&&(o.height=e.height*n),this.setCropBoxData(o)),this},getContainerData:function(){return this.ready?k({},this.containerData):{}},getImageData:function(){return this.sized?k({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,n={};return this.ready&&_(["left","top","width","height","naturalWidth","naturalHeight"],function(e){n[e]=t[e]}),n},setCanvasData:function(e){var t=this.canvasData,n=t.aspectRatio;return this.ready&&!this.disabled&&f(e)&&(p(e.left)&&(t.left=e.left),p(e.top)&&(t.top=e.top),p(e.width)?(t.width=e.width,t.height=e.width/n):p(e.height)&&(t.height=e.height,t.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return(e=this.ready&&this.cropped?{left:t.left,top:t.top,width:t.width,height:t.height}:e)||{}},setCropBoxData:function(e){var t,n,r=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&f(e)&&(p(e.left)&&(r.left=e.left),p(e.top)&&(r.top=e.top),p(e.width)&&e.width!==r.width&&(t=!0,r.width=e.width),p(e.height)&&e.height!==r.height&&(n=!0,r.height=e.height),i&&(t?r.height=r.width/i:n&&(r.width=r.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,n=(S=this.image,b=this.imageData,p=t,c=e,_=b.aspectRatio,u=b.naturalWidth,f=b.naturalHeight,x=void 0===(x=b.rotate)?0:x,C=void 0===(C=b.scaleX)?1:C,b=void 0===(b=b.scaleY)?1:b,d=p.aspectRatio,y=p.naturalWidth,p=p.naturalHeight,g=void 0===(g=c.fillColor)?"transparent":g,$=void 0===($=c.imageSmoothingEnabled)||$,w=void 0===(w=c.imageSmoothingQuality)?"low":w,h=void 0===(h=c.maxWidth)?1/0:h,m=void 0===(m=c.maxHeight)?1/0:m,n=void 0===(n=c.minWidth)?0:n,c=void 0===(c=c.minHeight)?0:c,E=document.createElement("canvas"),T=E.getContext("2d"),v=I({aspectRatio:d,width:h,height:m}),d=I({aspectRatio:d,width:n,height:c},"cover"),y=Math.min(v.width,Math.max(d.width,y)),v=Math.min(v.height,Math.max(d.height,p)),d=I({aspectRatio:_,width:h,height:m}),p=I({aspectRatio:_,width:n,height:c},"cover"),h=Math.min(d.width,Math.max(p.width,u)),m=Math.min(d.height,Math.max(p.height,f)),_=[-h/2,-m/2,h,m],E.width=j(y),E.height=j(v),T.fillStyle=g,T.fillRect(0,0,y,v),T.save(),T.translate(y/2,v/2),T.rotate(x*Math.PI/180),T.scale(C,b),T.imageSmoothingEnabled=$,T.imageSmoothingQuality=w,T.drawImage.apply(T,[S].concat(H(_.map(function(e){return Math.floor(j(e))})))),T.restore(),E);if(!this.cropped)return n;var r,i,o,a,s,l,c=this.getData(),u=c.x,d=c.y,p=c.width,f=c.height,h=n.width/Math.floor(t.naturalWidth),m=(1!=h&&(u*=h,d*=h,p*=h,f*=h),p/f),g=I({aspectRatio:m,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),y=I({aspectRatio:m,width:e.minWidth||0,height:e.minHeight||0},"cover"),v=I({aspectRatio:m,width:e.width||(1!=h?n.width:p),height:e.height||(1!=h?n.height:f)}),x=v.width,C=v.height,x=Math.min(g.width,Math.max(y.width,x)),C=Math.min(g.height,Math.max(y.height,C)),b=document.createElement("canvas"),$=b.getContext("2d"),w=(b.width=j(x),b.height=j(C),$.fillStyle=e.fillColor||"transparent",$.fillRect(0,0,x,C),e.imageSmoothingEnabled),S=e.imageSmoothingQuality,_=($.imageSmoothingEnabled=void 0===w||w,S&&($.imageSmoothingQuality=S),n.width),T=n.height,E=u,c=d,t=(E<=-p||_<E?s=o=r=E=0:E<=0?(o=-E,E=0,s=r=Math.min(_,p+E)):E<=_&&(o=0,s=r=Math.min(p,_-E)),r<=0||c<=-f||T<c?l=a=i=c=0:c<=0?(a=-c,c=0,l=i=Math.min(T,f+c)):c<=T&&(a=0,l=i=Math.min(f,T-c)),[E,c,r,i]);return 0<s&&0<l&&t.push(o*(m=x/p),a*m,s*m,l*m),$.drawImage.apply($,[n].concat(H(t.map(function(e){return Math.floor(j(e))})))),b},setAspectRatio:function(e){var t=this.options;return this.disabled||i(e)||(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t,n,r=this.options,i=this.dragBox,o=this.face;return this.ready&&!this.disabled&&(n=r.movable&&"move"===e,r.dragMode=e=(t="crop"===e)||n?e:"none",d(i,R,e),a(i,$,t),a(i,S,n),r.cropBoxMovable||(d(o,R,e),a(o,$,t),a(o,S,n))),this}},Ce=C.Cropper,be=function(){function i(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this,r=i;if(!(n instanceof r))throw new TypeError("Cannot call a class as a function");if(!e||!ne.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=k({},re,f(t)&&t),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var e=i,t=[{key:"init",value:function(){var e,t=this.element,n=t.tagName.toLowerCase();if(!t[b]){if(t[b]=this,"img"===n){if(this.isImg=!0,e=t.getAttribute("src")||"",!(this.originalUrl=e))return;e=t.src}else"canvas"===n&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t,n,r,i,o,a,s=this;e&&(this.url=e,this.imageData={},t=this.element,(n=this.options).rotatable||n.scalable||(n.checkOrientation=!1),n.checkOrientation&&window.ArrayBuffer?ee.test(e)?te.test(e)?this.read((a=(a=e).replace(me,""),r=atob(a),a=new ArrayBuffer(r.length),_(i=new Uint8Array(a),function(e,t){i[t]=r.charCodeAt(t)}),a)):this.clone():(o=new XMLHttpRequest,a=this.clone.bind(this),this.reloading=!0,(this.xhr=o).onabort=a,o.onerror=a,o.ontimeout=a,o.onprogress=function(){o.getResponseHeader("content-type")!==X&&o.abort()},o.onload=function(){s.read(o.response)},o.onloadend=function(){s.reloading=!1,s.xhr=null},n.checkCrossOrigin&&Z(e)&&t.crossOrigin&&(e=z(e)),o.open("GET",e,!0),o.responseType="arraybuffer",o.withCredentials="use-credentials"===t.crossOrigin,o.send()):this.clone())}},{key:"read",value:function(e){var t=this.options,n=this.imageData,r=function(e){var t,n,r,i,o,a,s=new DataView(e);try{if(255===s.getUint8(0)&&216===s.getUint8(1))for(var l=s.byteLength,c=2;c+1<l;){if(255===s.getUint8(c)&&225===s.getUint8(c+1)){r=c;break}c+=1}var u,d,p;if(r&&(u=r+10,"Exif"===function(e,t,n){var r="";n+=t;for(var i=t;i<n;i+=1)r+=he(e.getUint8(i));return r}(s,r+4,4)&&(d=s.getUint16(u),!(n=18761===d)&&19789!==d||42===s.getUint16(u+2,n)&&8<=(p=s.getUint32(u+4,n))&&(i=u+p))),i){var f=s.getUint16(i,n);for(a=0;a<f;a+=1)if(o=i+12*a+2,274===s.getUint16(o,n)){o+=8,t=s.getUint16(o,n),s.setUint16(o,1,n);break}}}catch(e){t=1}return t}(e),i=0,o=1,a=1;1<r&&(this.url=function(e,t){var n=[],r=new Uint8Array(e);for(;0<r.length;)n.push(he.apply(null,F(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}(e,X),i=(e=function(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90}return{rotate:t,scaleX:n,scaleY:r}}(r)).rotate,o=e.scaleX,a=e.scaleY),t.rotatable&&(n.rotate=i),t.scalable&&(n.scaleX=o,n.scaleY=a),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,n=e.crossOrigin,r=t,i=(this.options.checkCrossOrigin&&Z(t)&&(n=n||"anonymous",r=z(t)),this.crossOrigin=n,this.crossOriginUrl=r,document.createElement("img"));n&&(i.crossOrigin=n),i.src=r||t,i.alt=e.alt||"The image to crop",(this.image=i).onload=this.start.bind(this),i.onerror=this.stop.bind(this),u(i,G),e.parentNode.insertBefore(i,e.nextSibling)}},{key:"start",value:function(){function e(e,t){k(r.imageData,{naturalWidth:e,naturalHeight:t,aspectRatio:e/t}),r.initialImageData=k({},r.imageData),r.sizing=!1,r.sized=!0,r.build()}var t,n,r=this,i=this.image,o=(i.onload=null,i.onerror=null,this.sizing=!0,C.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(C.navigator.userAgent));i.naturalWidth&&!o?e(i.naturalWidth,i.naturalHeight):(t=document.createElement("img"),n=document.body||document.documentElement,(this.sizingImage=t).onload=function(){e(t.width,t.height),o||n.removeChild(t)},t.src=i.src,o||(t.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",n.appendChild(t)))}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){var e,t,n,r,i,o,a,s,l;this.sized&&!this.ready&&(e=this.element,t=this.options,n=this.image,r=e.parentNode,(i=document.createElement("div")).innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',o=(i=i.querySelector(".".concat(b,"-container"))).querySelector(".".concat(b,"-canvas")),a=i.querySelector(".".concat(b,"-drag-box")),l=(s=i.querySelector(".".concat(b,"-crop-box"))).querySelector(".".concat(b,"-face")),this.container=r,this.cropper=i,this.canvas=o,this.dragBox=a,this.cropBox=s,this.viewBox=i.querySelector(".".concat(b,"-view-box")),this.face=l,o.appendChild(n),u(e,E),r.insertBefore(i,e.nextSibling),this.isImg||T(n,G),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,u(s,E),t.guides||u(s.getElementsByClassName("".concat(b,"-dashed")),E),t.center||u(s.getElementsByClassName("".concat(b,"-center")),E),t.background&&u(i,"".concat(b,"-bg")),t.highlight||u(l,q),t.cropBoxMovable&&(u(l,S),d(l,R,"all")),t.cropBoxResizable||(u(s.getElementsByClassName("".concat(b,"-line")),E),u(s.getElementsByClassName("".concat(b,"-point")),E)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),c(t.ready)&&m(e,"ready",t.ready,{once:!0}),g(e,"ready"))}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),T(this.element,E))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],n=[{key:"noConflict",value:function(){return window.Cropper=Ce,i}},{key:"setDefaults",value:function(e){k(re,f(e)&&e)}}];return t&&V(e.prototype,t),n&&V(e,n),i}(),k(be.prototype,e,n,ge,ye,ve,xe),be)}(),cropper.exports),__assign=function(){return(__assign=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)};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}var AuthStatus,applyDefaultOptions=function(e,t){var n=(t=void 0===t?{}:t).enable,r=t.scaleX,r=void 0===r?1:r,i=t.scaleY,i=void 0===i?1:i,o=t.zoomTo,o=void 0===o?0:o,t=t.rotateTo;void 0===n||n?e.enable():e.disable(),e.scaleX(r),e.scaleY(i),void 0!==t&&e.rotateTo(t),0<o&&e.zoomTo(o)},useCombinedRefs=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=react.exports.useRef(null);return React$1.useEffect(function(){e.forEach(function(e){e&&("function"==typeof e?e(n.current):e.current=n.current)})},[e]),n},ReactCropper=React$1.forwardRef(function(e,t){var e=__rest$1(e,[]),n=e.dragMode,r=void 0===n?"crop":n,i=e.src,n=e.style,o=e.className,a=e.crossOrigin,s=e.scaleX,l=e.scaleY,c=e.enable,u=e.zoomTo,d=e.rotateTo,p=e.alt,p=void 0===p?"picture":p,f=e.ready,h=e.onInitialized,m=__rest$1(e,["dragMode","src","style","className","crossOrigin","scaleX","scaleY","enable","zoomTo","rotateTo","alt","ready","onInitialized"]),g={scaleY:l,scaleX:s,enable:c,zoomTo:u,rotateTo:d},l=react.exports.useRef(null),y=useCombinedRefs(t,l);return react.exports.useEffect(function(){var e;null!=(e=y.current)&&e.cropper&&"number"==typeof u&&y.current.cropper.zoomTo(u)},[e.zoomTo]),react.exports.useEffect(function(){var e;null!=(e=y.current)&&e.cropper&&void 0!==i&&y.current.cropper.reset().clear().replace(i)},[i]),react.exports.useEffect(function(){var e;return null!==y.current&&(e=new Cropper(y.current,__assign(__assign({dragMode:r},m),{ready:function(e){null!==e.currentTarget&&applyDefaultOptions(e.currentTarget.cropper,g),f&&f(e)}})),h&&h(e)),function(){var e;null!=(e=null==(e=y.current)?void 0:e.cropper)&&e.destroy()}},[y]),React$1.createElement("div",{style:n,className:o},React$1.createElement("img",{crossOrigin:a,src:i,alt:p,style:{opacity:0,maxWidth:"100%"},ref:y}))});!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const namespace$3="users",userSelector$1=e=>{return null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$3]},userAuthStatusSelector=e=>{return null==(e=null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$3])?void 0:e.authStatus},GET_CURRENT_USER$1=`os-app-bar-panel/${namespace$3}/get current user`,GET_CURRENT_USER_SUCCESS$1=`os-app-bar-panel/${namespace$3}/get current user success`,RESET_BIOMETRIC=`os-app-bar-panel/${namespace$3}/reset biometric`,RESET_PASSWORD=`os-app-bar-panel/${namespace$3}/reset password`,RESET_PASSWORD_FAIL=`os-app-bar-panel/${namespace$3}/reset password fail`,UPDATE_PROFILE=`os-app-bar-panel/${namespace$3}/update profile`,UPDATE_PROFILE_FAIL=`os-app-bar-panel/${namespace$3}/update profile fail`,UPLOAD__AVATAR=`os-app-bar-panel/${namespace$3}/upload avatar`,UPDATE__AVATAR=`os-app-bar-panel/${namespace$3}/update avatar`,LOGOUT_USER=`os-app-bar-panel/${namespace$3}/logout`,LOGOUT_SUCCESS=`os-app-bar-panel/${namespace$3}/logout success`,LOGOUT_FAIL=`os-app-bar-panel/${namespace$3}/logout fail`,UPLOADING_AVATAR=`os-app-bar-panel/${namespace$3}/uploading`,UPDATE_ACTIVITY=`os-app-bar-panel/${namespace$3}/updateActivityStatus`;function getCurrentUser$1(){return{type:GET_CURRENT_USER$1}}function getCurrentUserSuccess$1(e){return{type:GET_CURRENT_USER_SUCCESS$1,payload:e}}function resetBiometric(){return{type:RESET_BIOMETRIC}}function resetPassword(e){return{type:RESET_PASSWORD,payload:e}}function resetPasswordFail(){return{type:RESET_PASSWORD_FAIL}}function updateProfile(e){return{type:UPDATE_PROFILE,payload:e}}function updateProfileFail(){return{type:UPDATE_PROFILE_FAIL}}function uploadAvatar(e){return{type:UPLOAD__AVATAR,payload:e}}function updateAvatar(e){return{type:UPDATE__AVATAR,payload:e}}function logoutUserSuccess(){return{type:LOGOUT_SUCCESS}}function logoutUserFail(){return{type:LOGOUT_FAIL}}function uploadingAvatar(e){return{type:UPLOADING_AVATAR,payload:e}}!function(e){e.AUTHENTICATED="authenticated",e.LOGGING_OUT="logging_out",e.LOGGED_OUT="logged_out"}(AuthStatus=AuthStatus||{});const initialState$3={currentUser:{},status:"idle",authStatus:AuthStatus.AUTHENTICATED};function userReducer$1(e,t){return void 0===e?initialState$3:t.type===GET_CURRENT_USER_SUCCESS$1?Object.assign(Object.assign({},e),{currentUser:t.payload,status:"success"}):t.type===UPLOADING_AVATAR?Object.assign(Object.assign({},e),{loading:t.payload}):t.type===LOGOUT_USER?Object.assign(Object.assign({},e),{authStatus:AuthStatus.LOGGING_OUT}):t.type===LOGOUT_SUCCESS?Object.assign(Object.assign({},e),{authStatus:AuthStatus.LOGGED_OUT}):t.type===LOGOUT_FAIL?Object.assign(Object.assign({},e),{authStatus:AuthStatus.AUTHENTICATED}):e}var luxon={};function _defineProperties(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(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _isNativeReflectConstruct(){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 _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);t=new(Function.bind.apply(e,r));return n&&_setPrototypeOf(t,n.prototype),t}).apply(null,arguments)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _wrapNativeSuper(e){var n="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(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(e,arguments,_getPrototypeOf(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(t,e)})(e)}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};for(var n,r={},i=Object.keys(e),o=0;o<i.length;o++)n=i[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(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 _createForOfIteratorHelperLoose(e){var t=0;if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator])return(t=e[Symbol.iterator]()).next.bind(t);if(Array.isArray(e)||(e=_unsupportedIterableToArray(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(luxon,"__esModule",{value:!0});var LuxonError=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t}(_wrapNativeSuper(Error)),InvalidDateTimeError=function(t){function e(e){return t.call(this,"Invalid DateTime: "+e.toMessage())||this}return _inheritsLoose(e,t),e}(LuxonError),InvalidIntervalError=function(t){function e(e){return t.call(this,"Invalid Interval: "+e.toMessage())||this}return _inheritsLoose(e,t),e}(LuxonError),InvalidDurationError=function(t){function e(e){return t.call(this,"Invalid Duration: "+e.toMessage())||this}return _inheritsLoose(e,t),e}(LuxonError),ConflictingSpecificationError=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t}(LuxonError),InvalidUnitError=function(t){function e(e){return t.call(this,"Invalid unit "+e)||this}return _inheritsLoose(e,t),e}(LuxonError),InvalidArgumentError=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t}(LuxonError),ZoneIsAbstractError=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return _inheritsLoose(t,e),t}(LuxonError),n="numeric",s$1="short",l$1="long",DATE_SHORT={year:n,month:n,day:n},DATE_MED={year:n,month:s$1,day:n},DATE_MED_WITH_WEEKDAY={year:n,month:s$1,day:n,weekday:s$1},DATE_FULL={year:n,month:l$1,day:n},DATE_HUGE={year:n,month:l$1,day:n,weekday:l$1},TIME_SIMPLE={hour:n,minute:n},TIME_WITH_SECONDS={hour:n,minute:n,second:n},TIME_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,timeZoneName:s$1},TIME_WITH_LONG_OFFSET={hour:n,minute:n,second:n,timeZoneName:l$1},TIME_24_SIMPLE={hour:n,minute:n,hour12:!1},TIME_24_WITH_SECONDS={hour:n,minute:n,second:n,hour12:!1},TIME_24_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,hour12:!1,timeZoneName:s$1},TIME_24_WITH_LONG_OFFSET={hour:n,minute:n,second:n,hour12:!1,timeZoneName:l$1},DATETIME_SHORT={year:n,month:n,day:n,hour:n,minute:n},DATETIME_SHORT_WITH_SECONDS={year:n,month:n,day:n,hour:n,minute:n,second:n},DATETIME_MED={year:n,month:s$1,day:n,hour:n,minute:n},DATETIME_MED_WITH_SECONDS={year:n,month:s$1,day:n,hour:n,minute:n,second:n},DATETIME_MED_WITH_WEEKDAY={year:n,month:s$1,day:n,weekday:s$1,hour:n,minute:n},DATETIME_FULL={year:n,month:l$1,day:n,hour:n,minute:n,timeZoneName:s$1},DATETIME_FULL_WITH_SECONDS={year:n,month:l$1,day:n,hour:n,minute:n,second:n,timeZoneName:s$1},DATETIME_HUGE={year:n,month:l$1,day:n,weekday:l$1,hour:n,minute:n,timeZoneName:l$1},DATETIME_HUGE_WITH_SECONDS={year:n,month:l$1,day:n,weekday:l$1,hour:n,minute:n,second:n,timeZoneName:l$1};function isUndefined(e){return void 0===e}function isNumber(e){return"number"==typeof e}function isInteger(e){return"number"==typeof e&&e%1==0}function isString(e){return"string"==typeof e}function isDate(e){return"[object Date]"===Object.prototype.toString.call(e)}function hasIntl(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function hasFormatToParts(){return!isUndefined(Intl.DateTimeFormat.prototype.formatToParts)}function hasRelative(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,n,r){if(0!==e.length)return e.reduce(function(e,t){t=[n(t),t];return e&&r(e[0],t[0])===e[0]?e:t},null)[1]}function pick(n,e){return e.reduce(function(e,t){return e[t]=n[t],e},{})}function hasOwnProperty$1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function integerBetween(e,t,n){return isInteger(e)&&t<=e&&e<=n}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t){void 0===t&&(t=2);var n=e<0?"-":"",e=n?-1*e:e,t=e.toString().length<t?("0".repeat(t)+e).slice(-t):e.toString();return n+t}function parseInteger(e){if(!isUndefined(e)&&null!==e&&""!==e)return parseInt(e,10)}function parseMillis(e){if(!isUndefined(e)&&null!==e&&""!==e)return e=1e3*parseFloat("0."+e),Math.floor(e)}function roundTo(e,t,n){void 0===n&&(n=!1);t=Math.pow(10,t);return(n?Math.trunc:Math.round)(e*t)/t}function isLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){var n=floorMod(t-1,12)+1;return 2===n?isLeapYear(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function objToLocalTS(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&0<=e.year&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function weeksInWeekYear(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,e=e-1,e=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7;return 4==t||3==e?53:52}function untruncateYear(e){return 99<e?e:60<e?1900+e:2e3+e}function parseZoneInfo(e,t,n,r){void 0===r&&(r=null);var i,e=new Date(e),o={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"},r=(r&&(o.timeZone=r),Object.assign({timeZoneName:t},o)),t=hasIntl();return t&&hasFormatToParts()?(i=new Intl.DateTimeFormat(n,r).formatToParts(e).find(function(e){return"timezonename"===e.type.toLowerCase()}))?i.value:null:t?(i=new Intl.DateTimeFormat(n,o).format(e),new Intl.DateTimeFormat(n,r).format(e).substring(i.length).replace(/^[, \u200e]+/,"")):null}function signedOffset(e,t){e=parseInt(e,10),Number.isNaN(e)&&(e=0),t=parseInt(t,10)||0;return 60*e+(e<0||Object.is(e,-0)?-t:t)}function asNumber(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new InvalidArgumentError("Invalid unit value "+e);return t}function normalizeObject(e,t,n){var r,i,o={};for(r in e)!hasOwnProperty$1(e,r)||0<=n.indexOf(r)||null!=(i=e[r])&&(o[t(r)]=asNumber(i));return o}function formatOffset(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=0<=e?"+":"-";switch(t){case"short":return i+padStart(n,2)+":"+padStart(r,2);case"narrow":return i+n+(0<r?":"+r:"");case"techie":return i+padStart(n,2)+padStart(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function timeObject(e){return pick(e,["hour","minute","second","millisecond"])}var ianaRegex=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}var monthsLong=["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthsNarrow=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[].concat(monthsNarrow);case"short":return[].concat(monthsShort);case"long":return[].concat(monthsLong);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var weekdaysLong=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],weekdaysShort=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],weekdaysNarrow=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[].concat(weekdaysNarrow);case"short":return[].concat(weekdaysShort);case"long":return[].concat(weekdaysLong);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var meridiems=["AM","PM"],erasLong=["Before Christ","Anno Domini"],erasShort=["BC","AD"],erasNarrow=["B","A"];function eras(e){switch(e){case"narrow":return[].concat(erasNarrow);case"short":return[].concat(erasShort);case"long":return[].concat(erasLong);default:return null}}function meridiemForDateTime(e){return meridiems[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){var a="days"===e;switch(t){case 1:return a?"tomorrow":"next "+i[e][0];case-1:return a?"yesterday":"last "+i[e][0];case 0:return a?"today":"this "+i[e][0]}}var n=Object.is(t,-0)||t<0,o=Math.abs(t),t=1===o,s=i[e],r=r?!t&&s[2]||s[1]:t?i[e][0]:e;return n?o+" "+r+" ago":"in "+o+" "+r}function formatString(e){var t="EEEE, LLLL d, yyyy, h:mm a";switch(stringify(pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case stringify(DATE_SHORT):return"M/d/yyyy";case stringify(DATE_MED):return"LLL d, yyyy";case stringify(DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(DATE_FULL):return"LLLL d, yyyy";case stringify(DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(TIME_SIMPLE):return"h:mm a";case stringify(TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(TIME_WITH_SHORT_OFFSET):case stringify(TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(TIME_24_SIMPLE):return"HH:mm";case stringify(TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(TIME_24_WITH_SHORT_OFFSET):case stringify(TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(DATETIME_HUGE):return t;case stringify(DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return t}}function stringifyTokens(e,t){for(var n="",r=_createForOfIteratorHelperLoose(e);!(i=r()).done;){var i=i.value;i.literal?n+=i.val:n+=t(i.val)}return n}var _macroTokenToFormatOpts={D:DATE_SHORT,DD:DATE_MED,DDD:DATE_FULL,DDDD:DATE_HUGE,t:TIME_SIMPLE,tt:TIME_WITH_SECONDS,ttt:TIME_WITH_SHORT_OFFSET,tttt:TIME_WITH_LONG_OFFSET,T:TIME_24_SIMPLE,TT:TIME_24_WITH_SECONDS,TTT:TIME_24_WITH_SHORT_OFFSET,TTTT:TIME_24_WITH_LONG_OFFSET,f:DATETIME_SHORT,ff:DATETIME_MED,fff:DATETIME_FULL,ffff:DATETIME_HUGE,F:DATETIME_SHORT_WITH_SECONDS,FF:DATETIME_MED_WITH_SECONDS,FFF:DATETIME_FULL_WITH_SECONDS,FFFF:DATETIME_HUGE_WITH_SECONDS},Formatter=function(){function p(e,t){this.opts=t,this.loc=e,this.systemLoc=null}p.create=function(e,t){return new p(e,t=void 0===t?{}:t)},p.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],o=0;o<e.length;o++){var a=e.charAt(o);"'"===a?(0<n.length&&i.push({literal:r,val:n}),t=null,n="",r=!r):r||a===t?n+=a:(0<n.length&&i.push({literal:!1,val:n}),t=n=a)}return 0<n.length&&i.push({literal:r,val:n}),i},p.macroTokenToFormatOpts=function(e){return _macroTokenToFormatOpts[e]};var e=p.prototype;return e.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,Object.assign({},this.opts,t)).format()},e.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).format()},e.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).formatToParts()},e.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).resolvedOptions()},e.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return padStart(e,t);var n=Object.assign({},this.opts);return 0<t&&(n.padTo=t),this.loc.numberFormatter(n).format(e)},e.formatDateTimeFromString=function(n,e){var r=this,i="en"===this.loc.listingMode(),t=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&hasFormatToParts(),o=function(e,t){return r.loc.extract(n,e,t)},a=function(e){return n.isOffsetFixed&&0===n.offset&&e.allowZ?"Z":n.isValid?n.zone.formatOffset(n.ts,e.format):""},s=function(){return i?meridiemForDateTime(n):o({hour:"numeric",hour12:!0},"dayperiod")},l=function(e,t){return i?monthForDateTime(n,e):o(t?{month:e}:{month:e,day:"numeric"},"month")},c=function(e,t){return i?weekdayForDateTime(n,e):o(t?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},u=function(e){var t=p.macroTokenToFormatOpts(e);return t?r.formatWithSystemDefault(n,t):e},d=function(e){return i?eraForDateTime(n,e):o({era:e},"era")};return stringifyTokens(p.parseFormat(e),function(e){switch(e){case"S":return r.num(n.millisecond);case"u":case"SSS":return r.num(n.millisecond,3);case"s":return r.num(n.second);case"ss":return r.num(n.second,2);case"m":return r.num(n.minute);case"mm":return r.num(n.minute,2);case"h":return r.num(n.hour%12==0?12:n.hour%12);case"hh":return r.num(n.hour%12==0?12:n.hour%12,2);case"H":return r.num(n.hour);case"HH":return r.num(n.hour,2);case"Z":return a({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return a({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return n.zone.offsetName(n.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return n.zone.offsetName(n.ts,{format:"long",locale:r.loc.locale});case"z":return n.zoneName;case"a":return s();case"d":return t?o({day:"numeric"},"day"):r.num(n.day);case"dd":return t?o({day:"2-digit"},"day"):r.num(n.day,2);case"c":return r.num(n.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return r.num(n.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return t?o({month:"numeric",day:"numeric"},"month"):r.num(n.month);case"LL":return t?o({month:"2-digit",day:"numeric"},"month"):r.num(n.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return t?o({month:"numeric"},"month"):r.num(n.month);case"MM":return t?o({month:"2-digit"},"month"):r.num(n.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return t?o({year:"numeric"},"year"):r.num(n.year);case"yy":return t?o({year:"2-digit"},"year"):r.num(n.year.toString().slice(-2),2);case"yyyy":return t?o({year:"numeric"},"year"):r.num(n.year,4);case"yyyyyy":return t?o({year:"numeric"},"year"):r.num(n.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return r.num(n.weekYear.toString().slice(-2),2);case"kkkk":return r.num(n.weekYear,4);case"W":return r.num(n.weekNumber);case"WW":return r.num(n.weekNumber,2);case"o":return r.num(n.ordinal);case"ooo":return r.num(n.ordinal,3);case"q":return r.num(n.quarter);case"qq":return r.num(n.quarter,2);case"X":return r.num(Math.floor(n.ts/1e3));case"x":return r.num(n.ts);default:return u(e)}})},e.formatDurationFromString=function(e,t){var n,r=this,i=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},t=p.parseFormat(t),o=t.reduce(function(e,t){var n=t.literal,t=t.val;return n?e:e.concat(t)},[]),e=e.shiftTo.apply(e,o.map(i).filter(function(e){return e}));return stringifyTokens(t,(n=e,function(e){var t=i(e);return t?r.num(n.get(t),e.length):e}))},p}(),Invalid=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Zone=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new ZoneIsAbstractError},t.formatOffset=function(e,t){throw new ZoneIsAbstractError},t.offset=function(e){throw new ZoneIsAbstractError},t.equals=function(e){throw new ZoneIsAbstractError},_createClass(e,[{key:"type",get:function(){throw new ZoneIsAbstractError}},{key:"name",get:function(){throw new ZoneIsAbstractError}},{key:"universal",get:function(){throw new ZoneIsAbstractError}},{key:"isValid",get:function(){throw new ZoneIsAbstractError}}]),e}(),singleton=null,LocalZone=function(e){function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var n=t.prototype;return n.offsetName=function(e,t){return parseZoneInfo(e,t.format,t.locale)},n.formatOffset=function(e,t){return formatOffset(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"local"===e.type},_createClass(t,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return hasIntl()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return singleton=null===singleton?new t:singleton}}]),t}(Zone),matchingRegex=RegExp("^"+ianaRegex.source+"$"),dtfCache={};function makeDTF(e){return dtfCache[e]||(dtfCache[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),dtfCache[e]}var typeToPos={year:0,month:1,day:2,hour:3,minute:4,second:5};function hackyOffset(e,t){var e=e.format(t).replace(/\u200E/g,""),t=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e),e=t[1],n=t[2];return[t[3],e,n,t[4],t[5],t[6]]}function partsOffset(e,t){for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var o=n[i],a=o.type,o=o.value,a=typeToPos[a];isUndefined(a)||(r[a]=parseInt(o,10))}return r}var ianaZoneCache={},IANAZone=function(n){function r(e){var t=n.call(this)||this;return t.zoneName=e,t.valid=r.isValidZone(e),t}_inheritsLoose(r,n),r.create=function(e){return ianaZoneCache[e]||(ianaZoneCache[e]=new r(e)),ianaZoneCache[e]},r.resetCache=function(){ianaZoneCache={},dtfCache={}},r.isValidSpecifier=function(e){return!(!e||!e.match(matchingRegex))},r.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},r.parseGMTOffset=function(e){if(e){e=e.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(e)return-60*parseInt(e[1])}return null};var e=r.prototype;return e.offsetName=function(e,t){return parseZoneInfo(e,t.format,t.locale,this.name)},e.formatOffset=function(e,t){return formatOffset(this.offset(e),t)},e.offset=function(e){e=new Date(e);if(isNaN(e))return NaN;var t=makeDTF(this.name),t=(t.formatToParts?partsOffset:hackyOffset)(t,e),n=t[0],r=t[1],i=t[2],o=t[3],e=+e,a=e%1e3;return(objToLocalTS({year:n,month:r,day:i,hour:24===o?0:o,minute:t[4],second:t[5],millisecond:0})-(e-=0<=a?a:1e3+a))/6e4},e.equals=function(e){return"iana"===e.type&&e.name===this.name},_createClass(r,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),r}(Zone),singleton$1=null,FixedOffsetZone=function(n){function t(e){var t=n.call(this)||this;return t.fixed=e,t}_inheritsLoose(t,n),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){e=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new t(signedOffset(e[1],e[2]))}return null},_createClass(t,null,[{key:"utcInstance",get:function(){return singleton$1=null===singleton$1?new t(0):singleton$1}}]);var e=t.prototype;return e.offsetName=function(){return this.name},e.formatOffset=function(e,t){return formatOffset(this.fixed,t)},e.offset=function(){return this.fixed},e.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},_createClass(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+formatOffset(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),t}(Zone),InvalidZone=function(n){function e(e){var t=n.call(this)||this;return t.zoneName=e,t}_inheritsLoose(e,n);var t=e.prototype;return t.offsetName=function(){return null},t.formatOffset=function(){return""},t.offset=function(){return NaN},t.equals=function(){return!1},_createClass(e,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),e}(Zone);function normalizeZone(e,t){var n;return isUndefined(e)||null===e?t:e instanceof Zone?e:isString(e)?"local"===(n=e.toLowerCase())?t:"utc"===n||"gmt"===n?FixedOffsetZone.utcInstance:null!=(t=IANAZone.parseGMTOffset(e))?FixedOffsetZone.instance(t):IANAZone.isValidSpecifier(n)?IANAZone.create(e):FixedOffsetZone.parseSpecifier(n)||new InvalidZone(e):isNumber(e)?FixedOffsetZone.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new InvalidZone(e)}var now=function(){return Date.now()},defaultZone=null,defaultLocale$1=null,defaultNumberingSystem=null,defaultOutputCalendar=null,throwOnInvalid=!1,Settings=function(){function e(){}return e.resetCaches=function(){Locale.resetCache(),IANAZone.resetCache()},_createClass(e,null,[{key:"now",get:function(){return now},set:function(e){now=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){defaultZone=e?normalizeZone(e):null}},{key:"defaultZone",get:function(){return defaultZone||LocalZone.instance}},{key:"defaultLocale",get:function(){return defaultLocale$1},set:function(e){defaultLocale$1=e}},{key:"defaultNumberingSystem",get:function(){return defaultNumberingSystem},set:function(e){defaultNumberingSystem=e}},{key:"defaultOutputCalendar",get:function(){return defaultOutputCalendar},set:function(e){defaultOutputCalendar=e}},{key:"throwOnInvalid",get:function(){return throwOnInvalid},set:function(e){throwOnInvalid=e}}]),e}(),intlDTCache={};function getCachedDTF(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=intlDTCache[n];return r||(r=new Intl.DateTimeFormat(e,t),intlDTCache[n]=r),r}var intlNumCache={};function getCachedINF(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=intlNumCache[n];return r||(r=new Intl.NumberFormat(e,t),intlNumCache[n]=r),r}var intlRelCache={};function getCachedRTF(e,t){var n=t=void 0===t?{}:t,n=(n.base,_objectWithoutPropertiesLoose(n,["base"])),n=JSON.stringify([e,n]),r=intlRelCache[n];return r||(r=new Intl.RelativeTimeFormat(e,t),intlRelCache[n]=r),r}var sysLocaleCache=null;function systemLocale(){var e;return sysLocaleCache=sysLocaleCache||(hasIntl()?(e=(new Intl.DateTimeFormat).resolvedOptions().locale)&&"und"!==e?e:"en-US":"en-US")}function parseLocaleString(e){var t=e.indexOf("-u-");if(-1===t)return[e];var n,t=e.substring(0,t);try{n=getCachedDTF(e).resolvedOptions()}catch(e){n=getCachedDTF(t).resolvedOptions()}e=n;return[t,e.numberingSystem,e.calendar]}function intlConfigString(e,t,n){return hasIntl()?((n||t)&&(e+="-u",n&&(e+="-ca-"+n),t&&(e+="-nu-"+t)),e):[]}function mapMonths(e){for(var t=[],n=1;n<=12;n++){var r=DateTime.utc(2016,n,1);t.push(e(r))}return t}function mapWeekdays(e){for(var t=[],n=1;n<=7;n++){var r=DateTime.utc(2016,11,13+n);t.push(e(r))}return t}function listStuff(e,t,n,r,i){e=e.listingMode(n);return"error"===e?null:("en"===e?r:i)(t)}function supportsFastNumbers(e){return(!e.numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||hasIntl()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)}var PolyNumberFormatter=function(){function e(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1,!t&&hasIntl()&&(t={useGrouping:!1},0<n.padTo&&(t.minimumIntegerDigits=n.padTo),this.inf=getCachedINF(e,t))}return e.prototype.format=function(e){var t;return this.inf?(t=this.floor?Math.floor(e):e,this.inf.format(t)):padStart(this.floor?Math.floor(e):roundTo(e,3),this.padTo)},e}(),PolyDateFormatter=function(){function e(e,t,n){var r,i,o;this.opts=n,this.hasIntl=hasIntl(),e.zone.universal&&this.hasIntl?(i=e.offset/60*-1,o=IANAZone.isValidZone(i=0<=i?"Etc/GMT+"+i:"Etc/GMT"+i),0!==e.offset&&o?(r=i,this.dt=e):(r="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:DateTime.fromMillis(e.ts+60*e.offset*1e3))):"local"===e.zone.type?this.dt=e:r=(this.dt=e).zone.name,this.hasIntl&&(o=Object.assign({},this.opts),r&&(o.timeZone=r),this.dtf=getCachedDTF(t,o))}var t=e.prototype;return t.format=function(){var e,t;return this.hasIntl?this.dtf.format(this.dt.toJSDate()):(e=formatString(this.opts),t=Locale.create("en-US"),Formatter.create(t).formatDateTimeFromString(this.dt,e))},t.formatToParts=function(){return this.hasIntl&&hasFormatToParts()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e}(),PolyRelFormatter=function(){function e(e,t,n){this.opts=Object.assign({style:"long"},n),!t&&hasRelative()&&(this.rtf=getCachedRTF(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):formatRelativeTime(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),Locale=function(){function i(e,t,n,r){var e=parseLocaleString(e),i=e[0],o=e[1],e=e[2];this.locale=i,this.numberingSystem=t||o||null,this.outputCalendar=n||e||null,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}i.fromOpts=function(e){return i.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)},i.create=function(e,t,n,r){void 0===r&&(r=!1);e=e||Settings.defaultLocale;return new i(e||(r?"en-US":systemLocale()),t||Settings.defaultNumberingSystem,n||Settings.defaultOutputCalendar,e)},i.resetCache=function(){sysLocaleCache=null,intlDTCache={},intlNumCache={},intlRelCache={}},i.fromObject=function(e){var e=void 0===e?{}:e,t=e.locale,n=e.numberingSystem,e=e.outputCalendar;return i.create(t,n,e)};var e=i.prototype;return e.listingMode=function(e){void 0===e&&(e=!0);var t=hasIntl()&&hasFormatToParts(),n=this.isEnglish(),r=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t||n&&r||e?!t||n&&r?"en":"intl":"error"},e.clone=function(e){return e&&0!==Object.getOwnPropertyNames(e).length?i.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this},e.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},e.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},e.months=function(n,r,e){var i=this;return void 0===r&&(r=!1),listStuff(this,n,e=void 0===e?!0:e,months,function(){var t=r?{month:n,day:"numeric"}:{month:n},e=r?"format":"standalone";return i.monthsCache[e][n]||(i.monthsCache[e][n]=mapMonths(function(e){return i.extract(e,t,"month")})),i.monthsCache[e][n]})},e.weekdays=function(n,r,e){var i=this;return void 0===r&&(r=!1),listStuff(this,n,e=void 0===e?!0:e,weekdays,function(){var t=r?{weekday:n,year:"numeric",month:"long",day:"numeric"}:{weekday:n},e=r?"format":"standalone";return i.weekdaysCache[e][n]||(i.weekdaysCache[e][n]=mapWeekdays(function(e){return i.extract(e,t,"weekday")})),i.weekdaysCache[e][n]})},e.meridiems=function(e){var n=this;return listStuff(this,void 0,e=void 0===e?!0:e,function(){return meridiems},function(){var t;return n.meridiemCache||(t={hour:"numeric",hour12:!0},n.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(function(e){return n.extract(e,t,"dayperiod")})),n.meridiemCache})},e.eras=function(e,t){var n=this;return listStuff(this,e,t=void 0===t?!0:t,eras,function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(function(e){return n.extract(e,t,"era")})),n.eraCache[e]})},e.extract=function(e,t,n){e=this.dtFormatter(e,t).formatToParts().find(function(e){return e.type.toLowerCase()===n});return e?e.value:null},e.numberFormatter=function(e){return new PolyNumberFormatter(this.intl,(e=void 0===e?{}:e).forceSimple||this.fastNumbers,e)},e.dtFormatter=function(e,t){return new PolyDateFormatter(e,this.intl,t=void 0===t?{}:t)},e.relFormatter=function(e){return void 0===e&&(e={}),new PolyRelFormatter(this.intl,this.isEnglish(),e)},e.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||hasIntl()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},e.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},_createClass(i,[{key:"fastNumbers",get:function(){return null==this.fastNumbersCached&&(this.fastNumbersCached=supportsFastNumbers(this)),this.fastNumbersCached}}]),i}();function combineRegexes(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce(function(e,t){return e+t.source},"");return RegExp("^"+r+"$")}function combineExtractors(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(o){return t.reduce(function(e,t){var n=e[0],r=e[1],e=e[2],t=t(o,e),e=t[0],i=t[1],t=t[2];return[Object.assign(n,e),r||i,t]},[{},null,1]).slice(0,2)}}function parse(e){if(null==e)return[null,null];for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i],s=a[0],a=a[1],s=s.exec(e);if(s)return a(s)}return[null,null]}function simpleParse(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];return function(e,t){for(var n={},r=0;r<i.length;r++)n[i[r]]=parseInteger(e[t+r]);return[n,null,t+r]}}var offsetRegex=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(""+isoTimeBaseRegex.source+offsetRegex.source+"?"),isoTimeExtensionRegex=RegExp("(?:T"+isoTimeRegex.source+")?"),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse("weekYear","weekNumber","weekDay"),extractISOOrdinalData=simpleParse("year","ordinal"),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(isoTimeBaseRegex.source+" ?(?:"+offsetRegex.source+"|("+ianaRegex.source+"))?"),sqlTimeExtensionRegex=RegExp("(?: "+sqlTimeRegex.source+")?");function int(e,t,n){e=e[t];return isUndefined(e)?n:parseInteger(e)}function extractISOYmd(e,t){return[{year:int(e,t),month:int(e,t+1,1),day:int(e,t+2,1)},null,t+3]}function extractISOTime(e,t){return[{hours:int(e,t,0),minutes:int(e,t+1,0),seconds:int(e,t+2,0),milliseconds:parseMillis(e[t+3])},null,t+4]}function extractISOOffset(e,t){var n=!e[t]&&!e[t+1],e=signedOffset(e[t+1],e[t+2]);return[{},n?null:FixedOffsetZone.instance(e),t+3]}function extractIANAZone(e,t){return[{},e[t]?IANAZone.create(e[t]):null,t+1]}var isoTimeOnly=RegExp("^T?"+isoTimeBaseRegex.source+"$"),isoDuration=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function extractISODuration(e){function t(e,t){return void 0===t&&(t=!1),void 0!==e&&(t||e&&u)?-e:e}var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],e=e[8],u="-"===n[0],n=c&&"-"===c[0];return[{years:t(parseInteger(r)),months:t(parseInteger(i)),weeks:t(parseInteger(o)),days:t(parseInteger(a)),hours:t(parseInteger(s)),minutes:t(parseInteger(l)),seconds:t(parseInteger(c),"-0"===c),milliseconds:t(parseMillis(e),n)}]}var obsOffsets={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function fromStrings(e,t,n,r,i,o,a){t={year:2===t.length?untruncateYear(parseInteger(t)):parseInteger(t),month:monthsShort.indexOf(n)+1,day:parseInteger(r),hour:parseInteger(i),minute:parseInteger(o)};return a&&(t.second=parseInteger(a)),e&&(t.weekday=3<e.length?weekdaysLong.indexOf(e)+1:weekdaysShort.indexOf(e)+1),t}var rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6],s=e[7],l=e[8],c=e[9],u=e[10],e=e[11],t=fromStrings(t,i,r,n,o,a,s),i=l?obsOffsets[l]:c?0:signedOffset(u,e);return[t,new FixedOffsetZone(i)]}function preprocessRFC2822(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var rfc1123=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){var t=e[1],n=e[2],r=e[3];return[fromStrings(t,e[4],r,n,e[5],e[6],e[7]),FixedOffsetZone.utcInstance]}function extractASCII(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6];return[fromStrings(t,e[7],n,r,i,o,a),FixedOffsetZone.utcInstance]}var isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset);function parseISODate(e){return parse(e,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset])}function parseRFC2822Date(e){return parse(preprocessRFC2822(e),[rfc2822,extractRFC2822])}function parseHTTPDate(e){return parse(e,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII])}function parseISODuration(e){return parse(e,[isoDuration,extractISODuration])}var extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return parse(e,[isoTimeOnly,extractISOTimeOnly])}var sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOYmdTimeOffsetAndIANAZone=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return parse(e,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeOffsetAndIANAZone],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone])}var INVALID="Invalid Duration",lowOrderMatrix={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},casualMatrix=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},lowOrderMatrix),daysInYearAccurate=365.2425,daysInMonthAccurate=30.436875,accurateMatrix=Object.assign({years:{quarters:4,months:12,weeks:daysInYearAccurate/7,days:daysInYearAccurate,hours:24*daysInYearAccurate,minutes:24*daysInYearAccurate*60,seconds:24*daysInYearAccurate*60*60,milliseconds:24*daysInYearAccurate*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate/28,days:daysInYearAccurate/4,hours:24*daysInYearAccurate/4,minutes:24*daysInYearAccurate*60/4,seconds:24*daysInYearAccurate*60*60/4,milliseconds:24*daysInYearAccurate*60*60*1e3/4},months:{weeks:daysInMonthAccurate/7,days:daysInMonthAccurate,hours:24*daysInMonthAccurate,minutes:24*daysInMonthAccurate*60,seconds:24*daysInMonthAccurate*60*60,milliseconds:24*daysInMonthAccurate*60*60*1e3}},lowOrderMatrix),orderedUnits=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],reverseUnits=orderedUnits.slice(0).reverse();function clone(e,t,n){n={values:(n=void 0===n?!1:n)?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new Duration(n)}function antiTrunc(e){return e<0?Math.floor(e):Math.ceil(e)}function convert(e,t,n,r,i){var e=e[i][n],o=t[n]/e,o=!(Math.sign(o)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(o)<=1?antiTrunc(o):Math.trunc(o);r[i]+=o,t[n]-=o*e}function normalizeValues(n,r){reverseUnits.reduce(function(e,t){return isUndefined(r[t])?e:(e&&convert(n,r,e,r,t),t)},null)}var Duration=function(){function h(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||Locale.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?accurateMatrix:casualMatrix,this.isLuxonDuration=!0}h.fromMillis=function(e,t){return h.fromObject(Object.assign({milliseconds:e},t))},h.fromObject=function(e){if(null==e||"object"!=typeof e)throw new InvalidArgumentError("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new h({values:normalizeObject(e,h.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:Locale.fromObject(e),conversionAccuracy:e.conversionAccuracy})},h.fromISO=function(e,t){var n=parseISODuration(e)[0];return n?(n=Object.assign(n,t),h.fromObject(n)):h.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},h.fromISOTime=function(e,t){var n=parseISOTimeOnly(e)[0];return n?(n=Object.assign(n,t),h.fromObject(n)):h.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},h.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new InvalidArgumentError("need to specify a reason the Duration is invalid");e=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidDurationError(e);return new h({invalid:e})},h.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(t)return t;throw new InvalidUnitError(e)},h.isDuration=function(e){return e&&e.isLuxonDuration||!1};var e=h.prototype;return e.toFormat=function(e,t){void 0===t&&(t={});t=Object.assign({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Formatter.create(this.loc,t).formatDurationFromString(this,e):INVALID},e.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.values);return e.includeConfig&&(t.conversionAccuracy=this.conversionAccuracy,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},e.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},e.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||864e5<=t)return null;e=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var t=this.shiftTo("hours","minutes","seconds","milliseconds"),n="basic"===e.format?"hhmm":"hh:mm",t=(e.suppressSeconds&&0===t.seconds&&0===t.milliseconds||(n+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===t.milliseconds||(n+=".SSS")),t.toFormat(n));return t=e.includePrefix?"T"+t:t},e.toJSON=function(){return this.toISO()},e.toString=function(){return this.toISO()},e.toMillis=function(){return this.as("milliseconds")},e.valueOf=function(){return this.toMillis()},e.plus=function(e){if(!this.isValid)return this;for(var t=friendlyDuration(e),n={},r=_createForOfIteratorHelperLoose(orderedUnits);!(i=r()).done;){var i=i.value;(hasOwnProperty$1(t.values,i)||hasOwnProperty$1(this.values,i))&&(n[i]=t.get(i)+this.get(i))}return clone(this,{values:n},!0)},e.minus=function(e){if(!this.isValid)return this;e=friendlyDuration(e);return this.plus(e.negate())},e.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n<r.length;n++){var i=r[n];t[i]=asNumber(e(this.values[i],i))}return clone(this,{values:t},!0)},e.get=function(e){return this[h.normalizeUnit(e)]},e.set=function(e){return this.isValid?clone(this,{values:Object.assign(this.values,normalizeObject(e,h.normalizeUnit,[]))}):this},e.reconfigure=function(e){var e=void 0===e?{}:e,t=e.locale,n=e.numberingSystem,e=e.conversionAccuracy,t={loc:this.loc.clone({locale:t,numberingSystem:n})};return e&&(t.conversionAccuracy=e),clone(this,t)},e.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},e.normalize=function(){if(!this.isValid)return this;var e=this.toObject();return normalizeValues(this.matrix,e),clone(this,{values:e},!0)},e.shiftTo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!this.isValid)return this;if(0===t.length)return this;for(var r,t=t.map(function(e){return h.normalizeUnit(e)}),i={},o={},a=this.toObject(),s=_createForOfIteratorHelperLoose(orderedUnits);!(f=s()).done;){var l=f.value;if(0<=t.indexOf(l)){var c,u=l,d=0;for(c in o)d+=this.matrix[c][l]*o[c],o[c]=0;isNumber(a[l])&&(d+=a[l]);var p,f=Math.trunc(d);for(p in i[l]=f,o[l]=d-f,a)orderedUnits.indexOf(p)>orderedUnits.indexOf(l)&&convert(this.matrix,a,p,i,l)}else isNumber(a[l])&&(o[l]=a[l])}for(r in o)0!==o[r]&&(i[u]+=r===u?o[r]:o[r]/this.matrix[u][r]);return clone(this,{values:i},!0).normalize()},e.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);t<n.length;t++){var r=n[t];e[r]=-this.values[r]}return clone(this,{values:e},!0)},e.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t,n=_createForOfIteratorHelperLoose(orderedUnits);!(r=n()).done;){var r=r.value;if(t=this.values[r],r=e.values[r],!(void 0===t||0===t?void 0===r||0===r:t===r))return!1}return!0},_createClass(h,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),h}();function friendlyDuration(e){if(isNumber(e))return Duration.fromMillis(e);if(Duration.isDuration(e))return e;if("object"==typeof e)return Duration.fromObject(e);throw new InvalidArgumentError("Unknown duration argument "+e+" of type "+typeof e)}var INVALID$1="Invalid Interval";function validateStartEnd(e,t){return e&&e.isValid?t&&t.isValid?t<e?Interval.invalid("end before start","The end of an interval must be after its start, but you had start="+e.toISO()+" and end="+t.toISO()):null:Interval.invalid("missing or invalid end"):Interval.invalid("missing or invalid start")}var Interval=function(){function c(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}c.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new InvalidArgumentError("need to specify a reason the Interval is invalid");e=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidIntervalError(e);return new c({invalid:e})},c.fromDateTimes=function(e,t){var e=friendlyDateTime(e),t=friendlyDateTime(t),n=validateStartEnd(e,t);return null==n?new c({start:e,end:t}):n},c.after=function(e,t){t=friendlyDuration(t),e=friendlyDateTime(e);return c.fromDateTimes(e,e.plus(t))},c.before=function(e,t){t=friendlyDuration(t),e=friendlyDateTime(e);return c.fromDateTimes(e.minus(t),e)},c.fromISO=function(e,t){var n,r,i,o=(e||"").split("/",2),a=o[0],s=o[1];if(a&&s){try{l=(n=DateTime.fromISO(a,t)).isValid}catch(s){l=!1}try{i=(r=DateTime.fromISO(s,t)).isValid}catch(s){i=!1}if(l&&i)return c.fromDateTimes(n,r);if(l){o=Duration.fromISO(s,t);if(o.isValid)return c.after(n,o)}else if(i){var l=Duration.fromISO(a,t);if(l.isValid)return c.before(r,l)}}return c.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},c.isInterval=function(e){return e&&e.isLuxonInterval||!1};var e=c.prototype;return e.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},e.count=function(e){if(!this.isValid)return NaN;var t=this.start.startOf(e=void 0===e?"milliseconds":e),n=this.end.startOf(e);return Math.floor(n.diff(t,e).get(e))+1},e.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},e.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},e.isAfter=function(e){return!!this.isValid&&this.s>e},e.isBefore=function(e){return!!this.isValid&&this.e<=e},e.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},e.set=function(e){var e=void 0===e?{}:e,t=e.start,e=e.end;return this.isValid?c.fromDateTimes(t||this.s,e||this.e):this},e.splitAt=function(){var t=this;if(!this.isValid)return[];for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var i=n.map(friendlyDateTime).filter(function(e){return t.contains(e)}).sort(),o=[],a=this.s,s=0;a<this.e;){var l=i[s]||this.e,l=+l>+this.e?this.e:l;o.push(c.fromDateTimes(a,l)),a=l,s+=1}return o},e.splitBy=function(e){var t=friendlyDuration(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];for(var n=this.s,r=1,i=[];n<this.e;){var o=this.start.plus(t.mapUnits(function(e){return e*r})),o=+o>+this.e?this.e:o;i.push(c.fromDateTimes(n,o)),n=o,r+=1}return i},e.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},e.overlaps=function(e){return this.e>e.s&&this.s<e.e},e.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},e.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},e.engulfs=function(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)},e.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},e.intersection=function(e){if(!this.isValid)return this;var t=(this.s>e.s?this:e).s,e=(this.e<e.e?this:e).e;return e<=t?null:c.fromDateTimes(t,e)},e.union=function(e){if(!this.isValid)return this;var t=(this.s<e.s?this:e).s,e=(this.e>e.e?this:e).e;return c.fromDateTimes(t,e)},c.merge=function(e){var e=e.sort(function(e,t){return e.s-t.s}).reduce(function(e,t){var n=e[0],e=e[1];return e?e.overlaps(t)||e.abutsStart(t)?[n,e.union(t)]:[n.concat([e]),t]:[n,t]},[[],null]),t=e[0],e=e[1];return e&&t.push(e),t},c.xor=function(e){for(var t,n=null,r=0,i=[],e=e.map(function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]}),o=_createForOfIteratorHelperLoose((t=Array.prototype).concat.apply(t,e).sort(function(e,t){return e.time-t.time}));!(a=o()).done;)var a=a.value,n=1===(r+="s"===a.type?1:-1)?a.time:(n&&+n!=+a.time&&i.push(c.fromDateTimes(n,a.time)),null);return c.merge(i)},e.difference=function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return c.xor([this].concat(n)).map(function(e){return t.intersection(e)}).filter(function(e){return e&&!e.isEmpty()})},e.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":INVALID$1},e.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):INVALID$1},e.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():INVALID$1},e.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):INVALID$1},e.toFormat=function(e,t){t=(void 0===t?{}:t).separator,t=void 0===t?" – ":t;return this.isValid?""+this.s.toFormat(e)+t+this.e.toFormat(e):INVALID$1},e.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):Duration.invalid(this.invalidReason)},e.mapEndpoints=function(e){return c.fromDateTimes(e(this.s),e(this.e))},_createClass(c,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),c}(),Info=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=Settings.defaultZone);var t=DateTime.now().setZone(e).set({month:12});return!e.universal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return IANAZone.isValidSpecifier(e)&&IANAZone.isValidZone(e)},e.normalizeZone=function(e){return normalizeZone(e,Settings.defaultZone)},e.months=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,i=t.locObj,i=void 0===i?null:i,t=t.outputCalendar;return(i||Locale.create(void 0===n?null:n,void 0===r?null:r,void 0===t?"gregory":t)).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,i=t.locObj,i=void 0===i?null:i,t=t.outputCalendar;return(i||Locale.create(void 0===n?null:n,void 0===r?null:r,void 0===t?"gregory":t)).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,t=t.locObj;return((void 0===t?null:t)||Locale.create(void 0===n?null:n,void 0===r?null:r,null)).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,t=t.locObj;return((void 0===t?null:t)||Locale.create(void 0===n?null:n,void 0===r?null:r,null)).weekdays(e,!0)},e.meridiems=function(e){e=(void 0===e?{}:e).locale;return Locale.create(void 0===e?null:e).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");t=(void 0===t?{}:t).locale;return Locale.create(void 0===t?null:t,null,"gregory").eras(e)},e.features=function(){var e=!1,t=!1,n=!1,r=!1;if(hasIntl()){e=!0,t=hasFormatToParts(),r=hasRelative();try{n="America/New_York"===new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone}catch(e){n=!1}}return{intl:e,intlTokens:t,zones:n,relative:r}},e}();function dayDiff(e,t){function n(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()}t=n(t)-n(e);return Math.floor(Duration.fromMillis(t).as("days"))}function highOrderDiffs(e,t,n){for(var r={},i=0,o=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){e=dayDiff(e,t);return(e-e%7)/7}],["days",dayDiff]];i<o.length;i++){var a,s,l,c=o[i],u=c[0],c=c[1];0<=n.indexOf(u)&&(a=u,c=c(e,t),t<(l=e.plus(((s={})[u]=c,s)))?(e=e.plus(((s={})[u]=c-1,s)),--c):e=l,r[u]=c)}return[e,r,l,a]}function _diff(e,t,n,r){var e=highOrderDiffs(e,t,n),i=e[0],o=e[1],a=e[2],e=e[3],s=t-i,n=n.filter(function(e){return 0<=["hours","minutes","seconds","milliseconds"].indexOf(e)}),t=(0===n.length&&(a=a<t?i.plus(((t={})[e]=1,t)):a)!==i&&(o[e]=(o[e]||0)+s/(a-i)),Duration.fromObject(Object.assign(o,r)));return 0<n.length?(e=Duration.fromMillis(s,r)).shiftTo.apply(e,n).plus(t):t}var numberingSystems={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},numberingSystemsUTF16={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hanidecChars=numberingSystems.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){var t=parseInt(e,10);if(isNaN(t)){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);if(-1!==e[n].search(numberingSystems.hanidec))t+=hanidecChars.indexOf(e[n]);else for(var i in numberingSystemsUTF16){var i=numberingSystemsUTF16[i],o=i[0],i=i[1];o<=r&&r<=i&&(t+=r-o)}}return parseInt(t,10)}return t}function digitRegex(e,t){e=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+numberingSystems[e||"latn"]+t)}var MISSING_FTP="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){e=e[0];return t(parseDigits(e))}}}var NBSP=String.fromCharCode(160),spaceOrNBSP="( |"+NBSP+")",spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(spaceOrNBSPRegExp,spaceOrNBSP)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(spaceOrNBSPRegExp," ").toLowerCase()}function oneOf(n,r){return null===n?null:{regex:RegExp(n.map(fixListRegex).join("|")),deser:function(e){var t=e[0];return n.findIndex(function(e){return stripInsensitivities(t)===stripInsensitivities(e)})+r}}}function offset(e,t){return{regex:e,deser:function(e){return signedOffset(e[1],e[2])},groups:t}}function simple(e){return{regex:e,deser:function(e){return e[0]}}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(t,n){function r(e){return{regex:RegExp(escapeToken(e.val)),deser:function(e){return e[0]},literal:!0}}var i=digitRegex(n),o=digitRegex(n,"{2}"),a=digitRegex(n,"{3}"),s=digitRegex(n,"{4}"),l=digitRegex(n,"{6}"),c=digitRegex(n,"{1,2}"),u=digitRegex(n,"{1,3}"),d=digitRegex(n,"{1,6}"),p=digitRegex(n,"{1,9}"),f=digitRegex(n,"{2,4}"),h=digitRegex(n,"{4,6}"),e=function(e){if(t.literal)return r(e);switch(e.val){case"G":return oneOf(n.eras("short",!1),0);case"GG":return oneOf(n.eras("long",!1),0);case"y":return intUnit(d);case"yy":return intUnit(f,untruncateYear);case"yyyy":return intUnit(s);case"yyyyy":return intUnit(h);case"yyyyyy":return intUnit(l);case"M":return intUnit(c);case"MM":return intUnit(o);case"MMM":return oneOf(n.months("short",!0,!1),1);case"MMMM":return oneOf(n.months("long",!0,!1),1);case"L":return intUnit(c);case"LL":return intUnit(o);case"LLL":return oneOf(n.months("short",!1,!1),1);case"LLLL":return oneOf(n.months("long",!1,!1),1);case"d":return intUnit(c);case"dd":return intUnit(o);case"o":return intUnit(u);case"ooo":return intUnit(a);case"HH":return intUnit(o);case"H":return intUnit(c);case"hh":return intUnit(o);case"h":return intUnit(c);case"mm":return intUnit(o);case"m":case"q":return intUnit(c);case"qq":return intUnit(o);case"s":return intUnit(c);case"ss":return intUnit(o);case"S":return intUnit(u);case"SSS":return intUnit(a);case"u":return simple(p);case"a":return oneOf(n.meridiems(),0);case"kkkk":return intUnit(s);case"kk":return intUnit(f,untruncateYear);case"W":return intUnit(c);case"WW":return intUnit(o);case"E":case"c":return intUnit(i);case"EEE":return oneOf(n.weekdays("short",!1,!1),1);case"EEEE":return oneOf(n.weekdays("long",!1,!1),1);case"ccc":return oneOf(n.weekdays("short",!0,!1),1);case"cccc":return oneOf(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return offset(new RegExp("([+-]"+c.source+")(?::("+o.source+"))?"),2);case"ZZZ":return offset(new RegExp("([+-]"+c.source+")("+o.source+")?"),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);default:return r(e)}}(t)||{invalidReason:MISSING_FTP};return e.token=t,e}var partTypeStyleToTokenVal={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function tokenForPart(e,t,n){var r=e.type,e=e.value;if("literal"===r)return{literal:!0,val:e};e=n[r],n=partTypeStyleToTokenVal[r];return(n="object"==typeof n?n[e]:n)?{literal:!1,val:n}:void 0}function buildRegex(e){return["^"+e.map(function(e){return e.regex}).reduce(function(e,t){return e+"("+t.source+")"},"")+"$",e]}function match$1(e,t,n){var r=e.match(t);if(r){var i,o,a,s={},l=1;for(i in n)hasOwnProperty$1(n,i)&&(a=(o=n[i]).groups?o.groups+1:1,!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(r.slice(l,l+a))),l+=a);return[r,s]}return[r,{}]}function dateTimeFromMatches(r){var e=isUndefined(r.Z)?isUndefined(r.z)?null:IANAZone.create(r.z):new FixedOffsetZone(r.Z);return isUndefined(r.q)||(r.M=3*(r.q-1)+1),isUndefined(r.h)||(r.h<12&&1===r.a?r.h+=12:12===r.h&&0===r.a&&(r.h=0)),0===r.G&&r.y&&(r.y=-r.y),isUndefined(r.u)||(r.S=parseMillis(r.u)),[Object.keys(r).reduce(function(e,t){var n=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(t);return n&&(e[n]=r[t]),e},{}),e]}var dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache=dummyDateTimeCache||DateTime.fromMillis(1555555555555)}function maybeExpandMacroToken(e,t){if(e.literal)return e;var n=Formatter.macroTokenToFormatOpts(e.val);if(!n)return e;var r=Formatter.create(t,n).formatDateTimeParts(getDummyDateTime()).map(function(e){return tokenForPart(e,t,n)});return r.includes(void 0)?e:r}function expandMacroTokens(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map(function(e){return maybeExpandMacroToken(e,t)}))}function explainFromTokens(t,e,n){var n=expandMacroTokens(Formatter.parseFormat(n),t),r=n.map(function(e){return unitForToken(e,t)}),i=r.find(function(e){return e.invalidReason});if(i)return{input:e,tokens:n,invalidReason:i.invalidReason};var i=buildRegex(r),r=i[0],i=i[1],r=RegExp(r,"i"),i=match$1(e,r,i),o=i[0],i=i[1],a=i?dateTimeFromMatches(i):[null,null],s=a[0],a=a[1];if(hasOwnProperty$1(i,"a")&&hasOwnProperty$1(i,"H"))throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:r,rawMatches:o,matches:i,result:s,zone:a}}function parseFromTokens(e,t,n){e=explainFromTokens(e,t,n);return[e.result,e.zone,e.invalidReason]}var nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function dayOfWeek(e,t,n){e=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===e?7:e}function computeOrdinal(e,t,n){return n+(isLeapYear(e)?leapLadder:nonLeapLadder)[t-1]}function uncomputeOrdinal(e,t){var e=isLeapYear(e)?leapLadder:nonLeapLadder,n=e.findIndex(function(e){return e<t});return{month:n+1,day:t-e[n]}}function gregorianToWeek(e){var t,n=e.year,r=e.month,i=e.day,o=computeOrdinal(n,r,i),r=dayOfWeek(n,r,i),i=Math.floor((o-r+10)/7);return i<1?i=weeksInWeekYear(t=n-1):i>weeksInWeekYear(n)?(t=n+1,i=1):t=n,Object.assign({weekYear:t,weekNumber:i,weekday:r},timeObject(e))}function weekToGregorian(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,o=dayOfWeek(n,1,4),a=daysInYear(n),r=7*r+i-o-3,i=(r<1?r+=daysInYear(t=n-1):a<r?(t=n+1,r-=daysInYear(n)):t=n,uncomputeOrdinal(t,r)),o=i.month,a=i.day;return Object.assign({year:t,month:o,day:a},timeObject(e))}function gregorianToOrdinal(e){var t=e.year,n=computeOrdinal(t,e.month,e.day);return Object.assign({year:t,ordinal:n},timeObject(e))}function ordinalToGregorian(e){var t=e.year,n=uncomputeOrdinal(t,e.ordinal),r=n.month,n=n.day;return Object.assign({year:t,month:r,day:n},timeObject(e))}function hasInvalidWeekData(e){var t=isInteger(e.weekYear),n=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear)),r=integerBetween(e.weekday,1,7);return t?n?!r&&unitOutOfRange("weekday",e.weekday):unitOutOfRange("week",e.week):unitOutOfRange("weekYear",e.weekYear)}function hasInvalidOrdinalData(e){var t=isInteger(e.year),n=integerBetween(e.ordinal,1,daysInYear(e.year));return t?!n&&unitOutOfRange("ordinal",e.ordinal):unitOutOfRange("year",e.year)}function hasInvalidGregorianData(e){var t=isInteger(e.year),n=integerBetween(e.month,1,12),r=integerBetween(e.day,1,daysInMonth(e.year,e.month));return t?n?!r&&unitOutOfRange("day",e.day):unitOutOfRange("month",e.month):unitOutOfRange("year",e.year)}function hasInvalidTimeData(e){var t=e.hour,n=e.minute,r=e.second,e=e.millisecond,i=integerBetween(t,0,23)||24===t&&0===n&&0===r&&0===e,o=integerBetween(n,0,59),a=integerBetween(r,0,59),s=integerBetween(e,0,999);return i?o?a?!s&&unitOutOfRange("millisecond",e):unitOutOfRange("second",r):unitOutOfRange("minute",n):unitOutOfRange("hour",t)}var INVALID$2="Invalid DateTime",MAX_DATE=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",'the zone "'+e.name+'" is not supported')}function possiblyCachedWeekData(e){return null===e.weekData&&(e.weekData=gregorianToWeek(e.c)),e.weekData}function clone$1(e,t){e={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime(Object.assign({},e,t,{old:e}))}function fixOffset(e,t,n){var r=e-60*t*1e3,i=n.offset(r);if(t===i)return[r,t];n=n.offset(r-=60*(i-t)*1e3);return i===n?[r,i]:[e-60*Math.min(i,n)*1e3,Math.max(i,n)]}function tsToObj(e,t){e+=60*t*1e3;t=new Date(e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function objToTS(e,t,n){return fixOffset(objToLocalTS(e),t,n)}function adjustTime(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),r=Object.assign({},e.c,{year:r,month:i,day:Math.min(e.c.day,daysInMonth(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),t=fixOffset(objToLocalTS(r),n,e.zone),r=t[0],n=t[1];return 0!==i&&(n=e.zone.offset(r+=i)),{ts:r,o:n}}function parseDataToDateTime(e,t,n,r,i){var o=n.setZone,a=n.zone;return e&&0!==Object.keys(e).length?(e=DateTime.fromObject(Object.assign(e,n,{zone:t||a,setZone:void 0})),o?e:e.setZone(a)):DateTime.invalid(new Invalid("unparsable",'the input "'+i+"\" can't be parsed as "+r))}function toTechFormat(e,t,n){return void 0===n&&(n=!0),e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function toTechTimeFormat(e,t){var n=t.suppressSeconds,r=t.suppressMilliseconds,i=t.includeOffset,o=t.includePrefix,o=void 0!==o&&o,a=t.includeZone,a=void 0!==a&&a,s=t.spaceZone,t=t.format,t=void 0===t?"extended":t,l="basic"===t?"HHmm":"HH:mm",n=(void 0!==n&&n&&0===e.second&&0===e.millisecond||(l+="basic"===t?"ss":":ss",void 0!==r&&r&&0===e.millisecond||(l+=".SSS")),(a||i)&&(void 0!==s&&s)&&(l+=" "),a?l+="z":i&&(l+="basic"===t?"ZZZ":"ZZ"),toTechFormat(e,l));return n=o?"T"+n:n}var defaultUnitValues={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits$1=["year","month","day","hour","minute","second","millisecond"],orderedWeekUnits=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],orderedOrdinalUnits=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(t)return t;throw new InvalidUnitError(e)}function quickDT(e,t){for(var n=_createForOfIteratorHelperLoose(orderedUnits$1);!(r=n()).done;){var r=r.value;isUndefined(e[r])&&(e[r]=defaultUnitValues[r])}var i=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(i)return DateTime.invalid(i);var i=Settings.now(),i=objToTS(e,t.offset(i),t),o=i[0],i=i[1];return new DateTime({ts:o,zone:t,o:i})}function diffRelative(t,n,r){function e(e,t){return e=roundTo(e,o||r.calendary?0:2,!0),n.loc.clone(r).relFormatter(r).format(e,t)}function i(e){return r.calendary?n.hasSame(t,e)?0:n.startOf(e).diff(t.startOf(e),e).get(e):n.diff(t,e).get(e)}var o=!!isUndefined(r.round)||r.round;if(r.unit)return e(i(r.unit),r.unit);for(var a=_createForOfIteratorHelperLoose(r.units);!(s=a()).done;){var s=s.value,l=i(s);if(1<=Math.abs(l))return e(l,s)}return e(n<t?-0:0,r.units[r.units.length-1])}var DateTime=function(){function g(e){var t,n=e.zone||Settings.defaultZone,r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(n.isValid?null:unsupportedZone(n)),i=(this.ts=isUndefined(e.ts)?Settings.now():e.ts,null),o=null;r||(o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(n)?(i=(t=[e.old.c,e.old.o])[0],t[1]):(t=n.offset(this.ts),i=tsToObj(this.ts,t),i=(r=Number.isNaN(i.year)?new Invalid("invalid input"):null)?null:i,r?null:t)),this._zone=n,this.loc=e.loc||Locale.create(),this.invalid=r,this.weekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}g.now=function(){return new g({})},g.local=function(e,t,n,r,i,o,a){return isUndefined(e)?g.now():quickDT({year:e,month:t,day:n,hour:r,minute:i,second:o,millisecond:a},Settings.defaultZone)},g.utc=function(e,t,n,r,i,o,a){return isUndefined(e)?new g({ts:Settings.now(),zone:FixedOffsetZone.utcInstance}):quickDT({year:e,month:t,day:n,hour:r,minute:i,second:o,millisecond:a},FixedOffsetZone.utcInstance)},g.fromJSDate=function(e,t){void 0===t&&(t={});e=isDate(e)?e.valueOf():NaN;if(Number.isNaN(e))return g.invalid("invalid input");var n=normalizeZone(t.zone,Settings.defaultZone);return n.isValid?new g({ts:e,zone:n,loc:Locale.fromObject(t)}):g.invalid(unsupportedZone(n))},g.fromMillis=function(e,t){if(void 0===t&&(t={}),isNumber(e))return e<-MAX_DATE||MAX_DATE<e?g.invalid("Timestamp out of range"):new g({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)});throw new InvalidArgumentError("fromMillis requires a numerical input, but received a "+typeof e+" with value "+e)},g.fromSeconds=function(e,t){if(void 0===t&&(t={}),isNumber(e))return new g({ts:1e3*e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)});throw new InvalidArgumentError("fromSeconds requires a numerical input")},g.fromObject=function(e){var t=normalizeZone(e.zone,Settings.defaultZone);if(!t.isValid)return g.invalid(unsupportedZone(t));var n=Settings.now(),r=t.offset(n),i=normalizeObject(e,normalizeUnit,["zone","locale","outputCalendar","numberingSystem"]),o=!isUndefined(i.ordinal),a=!isUndefined(i.year),s=!isUndefined(i.month)||!isUndefined(i.day),a=a||s,l=i.weekYear||i.weekNumber,c=Locale.fromObject(e);if((a||o)&&l)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&o)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");for(var u,s=l||i.weekday&&!a,d=tsToObj(n,r),p=(s?(m=orderedWeekUnits,u=defaultWeekUnitValues,d=gregorianToWeek(d)):o?(m=orderedOrdinalUnits,u=defaultOrdinalUnitValues,d=gregorianToOrdinal(d)):(m=orderedUnits$1,u=defaultUnitValues),!1),f=_createForOfIteratorHelperLoose(m);!(h=f()).done;){var h=h.value;isUndefined(i[h])?i[h]=(p?u:d)[h]:p=!0}l=(s?hasInvalidWeekData:o?hasInvalidOrdinalData:hasInvalidGregorianData)(i)||hasInvalidTimeData(i);if(l)return g.invalid(l);var n=objToTS(s?weekToGregorian(i):o?ordinalToGregorian(i):i,r,t),m=new g({ts:n[0],zone:t,o:n[1],loc:c});return i.weekday&&a&&e.weekday!==m.weekday?g.invalid("mismatched weekday","you can't specify both a weekday of "+i.weekday+" and a date of "+m.toISO()):m},g.fromISO=function(e,t){void 0===t&&(t={});var n=parseISODate(e);return parseDataToDateTime(n[0],n[1],t,"ISO 8601",e)},g.fromRFC2822=function(e,t){void 0===t&&(t={});var n=parseRFC2822Date(e);return parseDataToDateTime(n[0],n[1],t,"RFC 2822",e)},g.fromHTTP=function(e,t){void 0===t&&(t={});e=parseHTTPDate(e);return parseDataToDateTime(e[0],e[1],t,"HTTP",t)},g.fromFormat=function(e,t,n){if(void 0===n&&(n={}),isUndefined(e)||isUndefined(t))throw new InvalidArgumentError("fromFormat requires an input string and a format");var r=n,i=r.locale,r=r.numberingSystem,i=parseFromTokens(Locale.fromOpts({locale:void 0===i?null:i,numberingSystem:void 0===r?null:r,defaultToEN:!0}),e,t),r=i[0],o=i[1],i=i[2];return i?g.invalid(i):parseDataToDateTime(r,o,n,"format "+t,e)},g.fromString=function(e,t,n){return g.fromFormat(e,t,n=void 0===n?{}:n)},g.fromSQL=function(e,t){void 0===t&&(t={});var n=parseSQL(e);return parseDataToDateTime(n[0],n[1],t,"SQL",e)},g.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");e=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(e);return new g({invalid:e})},g.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var e=g.prototype;return e.get=function(e){return this[e]},e.resolvedLocaleOpts=function(e){e=Formatter.create(this.loc.clone(e=void 0===e?{}:e),e).resolvedOptions(this);return{locale:e.locale,numberingSystem:e.numberingSystem,outputCalendar:e.calendar}},e.toUTC=function(e,t){return void 0===t&&(t={}),this.setZone(FixedOffsetZone.instance(e=void 0===e?0:e),t)},e.toLocal=function(){return this.setZone(Settings.defaultZone)},e.setZone=function(e,t){var n,t=void 0===t?{}:t,r=t.keepLocalTime,r=void 0!==r&&r,t=t.keepCalendarTime,t=void 0!==t&&t;return(e=normalizeZone(e,Settings.defaultZone)).equals(this.zone)?this:e.isValid?(n=this.ts,(r||t)&&(r=e.offset(this.ts),n=objToTS(this.toObject(),r,e)[0]),clone$1(this,{ts:n,zone:e})):g.invalid(unsupportedZone(e))},e.reconfigure=function(e){var e=void 0===e?{}:e,t=e.locale,n=e.numberingSystem,e=e.outputCalendar,t=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:e});return clone$1(this,{loc:t})},e.setLocale=function(e){return this.reconfigure({locale:e})},e.set=function(e){if(!this.isValid)return this;var t,e=normalizeObject(e,normalizeUnit,[]),n=!isUndefined(e.weekYear)||!isUndefined(e.weekNumber)||!isUndefined(e.weekday),r=!isUndefined(e.ordinal),i=!isUndefined(e.year),o=!isUndefined(e.month)||!isUndefined(e.day),a=e.weekYear||e.weekNumber;if((i||o||r)&&a)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&r)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");n?t=weekToGregorian(Object.assign(gregorianToWeek(this.c),e)):isUndefined(e.ordinal)?(t=Object.assign(this.toObject(),e),isUndefined(e.day)&&(t.day=Math.min(daysInMonth(t.year,t.month),t.day))):t=ordinalToGregorian(Object.assign(gregorianToOrdinal(this.c),e));i=objToTS(t,this.o,this.zone);return clone$1(this,{ts:i[0],o:i[1]})},e.plus=function(e){return this.isValid?clone$1(this,adjustTime(this,friendlyDuration(e))):this},e.minus=function(e){return this.isValid?clone$1(this,adjustTime(this,friendlyDuration(e).negate())):this},e.startOf=function(e){if(!this.isValid)return this;var t={},e=Duration.normalizeUnit(e);switch(e){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}return"weeks"===e&&(t.weekday=1),"quarters"===e&&(e=Math.ceil(this.month/3),t.month=3*(e-1)+1),this.set(t)},e.endOf=function(e){var t;return this.isValid?this.plus(((t={})[e]=1,t)).startOf(e).minus(1):this},e.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Formatter.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):INVALID$2},e.toLocaleString=function(e){return void 0===e&&(e=DATE_SHORT),this.isValid?Formatter.create(this.loc.clone(e),e).formatDateTime(this):INVALID$2},e.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Formatter.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},e.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},e.toISODate=function(e){e=(void 0===e?{}:e).format,e="basic"===(void 0===e?"extended":e)?"yyyyMMdd":"yyyy-MM-dd";return toTechFormat(this,e=9999<this.year?"+"+e:e)},e.toISOWeekDate=function(){return toTechFormat(this,"kkkk-'W'WW-c")},e.toISOTime=function(e){var e=void 0===e?{}:e,t=e.suppressMilliseconds,n=e.suppressSeconds,r=e.includeOffset,i=e.includePrefix,e=e.format;return toTechTimeFormat(this,{suppressSeconds:void 0!==n&&n,suppressMilliseconds:void 0!==t&&t,includeOffset:void 0===r||r,includePrefix:void 0!==i&&i,format:void 0===e?"extended":e})},e.toRFC2822=function(){return toTechFormat(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},e.toHTTP=function(){return toTechFormat(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},e.toSQLDate=function(){return toTechFormat(this,"yyyy-MM-dd")},e.toSQLTime=function(e){var e=void 0===e?{}:e,t=e.includeOffset,e=e.includeZone;return toTechTimeFormat(this,{includeOffset:void 0===t||t,includeZone:void 0!==e&&e,spaceZone:!0})},e.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},e.toString=function(){return this.isValid?this.toISO():INVALID$2},e.valueOf=function(){return this.toMillis()},e.toMillis=function(){return this.isValid?this.ts:NaN},e.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},e.toJSON=function(){return this.toISO()},e.toBSON=function(){return this.toJSDate()},e.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},e.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},e.diff=function(e,t,n){if(void 0===t&&(t="milliseconds"),void 0===n&&(n={}),!this.isValid||!e.isValid)return Duration.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime");var n=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),t=maybeArray(t).map(Duration.normalizeUnit),r=e.valueOf()>this.valueOf(),e=_diff(r?this:e,r?e:this,t,n);return r?e.negate():e},e.diffNow=function(e,t){return void 0===e&&(e="milliseconds"),void 0===t&&(t={}),this.diff(g.now(),e,t)},e.until=function(e){return this.isValid?Interval.fromDateTimes(this,e):this},e.hasSame=function(e,t){if(!this.isValid)return!1;var n=e.valueOf(),e=this.setZone(e.zone,{keepLocalTime:!0});return e.startOf(t)<=n&&n<=e.endOf(t)},e.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},e.toRelative=function(e){if(!this.isValid)return null;var t=(e=void 0===e?{}:e).base||g.fromObject({zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0,r=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(r=e.unit,i=void 0),diffRelative(t,this.plus(n),Object.assign(e,{numeric:"always",units:r,unit:i}))},e.toRelativeCalendar=function(e){return void 0===e&&(e={}),this.isValid?diffRelative(e.base||g.fromObject({zone:this.zone}),this,Object.assign(e,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},g.min=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.every(g.isDateTime))return bestBy(t,function(e){return e.valueOf()},Math.min);throw new InvalidArgumentError("min requires all arguments be DateTimes")},g.max=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.every(g.isDateTime))return bestBy(t,function(e){return e.valueOf()},Math.max);throw new InvalidArgumentError("max requires all arguments be DateTimes")},g.fromFormatExplain=function(e,t,n){var n=n=void 0===n?{}:n,r=n.locale,n=n.numberingSystem;return explainFromTokens(Locale.fromOpts({locale:void 0===r?null:r,numberingSystem:void 0===n?null:n,defaultToEN:!0}),e,t)},g.fromStringExplain=function(e,t,n){return g.fromFormatExplain(e,t,n=void 0===n?{}:n)},_createClass(g,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.universal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return isLeapYear(this.year)}},{key:"daysInMonth",get:function(){return daysInMonth(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?daysInYear(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return DATE_SHORT}},{key:"DATE_MED",get:function(){return DATE_MED}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return DATE_MED_WITH_WEEKDAY}},{key:"DATE_FULL",get:function(){return DATE_FULL}},{key:"DATE_HUGE",get:function(){return DATE_HUGE}},{key:"TIME_SIMPLE",get:function(){return TIME_SIMPLE}},{key:"TIME_WITH_SECONDS",get:function(){return TIME_WITH_SECONDS}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return TIME_WITH_SHORT_OFFSET}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return TIME_WITH_LONG_OFFSET}},{key:"TIME_24_SIMPLE",get:function(){return TIME_24_SIMPLE}},{key:"TIME_24_WITH_SECONDS",get:function(){return TIME_24_WITH_SECONDS}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return TIME_24_WITH_SHORT_OFFSET}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return TIME_24_WITH_LONG_OFFSET}},{key:"DATETIME_SHORT",get:function(){return DATETIME_SHORT}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return DATETIME_SHORT_WITH_SECONDS}},{key:"DATETIME_MED",get:function(){return DATETIME_MED}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return DATETIME_MED_WITH_SECONDS}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return DATETIME_MED_WITH_WEEKDAY}},{key:"DATETIME_FULL",get:function(){return DATETIME_FULL}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return DATETIME_FULL_WITH_SECONDS}},{key:"DATETIME_HUGE",get:function(){return DATETIME_HUGE}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return DATETIME_HUGE_WITH_SECONDS}}]),g}();function friendlyDateTime(e){if(DateTime.isDateTime(e))return e;if(e&&e.valueOf&&isNumber(e.valueOf()))return DateTime.fromJSDate(e);if(e&&"object"==typeof e)return DateTime.fromObject(e);throw new InvalidArgumentError("Unknown datetime argument: "+e+", of type "+typeof e)}var VERSION="1.28.0",DateTime_1=luxon.DateTime=DateTime;luxon.Duration=Duration,luxon.FixedOffsetZone=FixedOffsetZone,luxon.IANAZone=IANAZone,luxon.Info=Info,luxon.Interval=Interval,luxon.InvalidZone=InvalidZone,luxon.LocalZone=LocalZone,luxon.Settings=Settings,luxon.VERSION=VERSION,luxon.Zone=Zone;const useStyles$d=makeStyles()(()=>({root:{padding:"15px 30px"},title:{display:"flex"},action:{fontWeight:600},time:{fontSize:"12px",paddingLeft:"15px",lineHeight:"21px"},description:{lineHeight:"150%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},divider:{margin:"0 30px",backgroundColor:"#D5DFE9",height:"0.5px"}})),ActivityCard=({longFormatTime:e=!1,data:{createdDateTime:t,event:n,description:r}})=>{var i=useStyles$d()["classes"];return jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:i.root,"data-testid":"activity-card"},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:i.title},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:i.action},{children:n})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:i.time},{children:e?DateTime_1.fromISO(t||"").toFormat("F"):DateTime_1.fromISO(t||"").toFormat("tt")}))]})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({placement:"top-start",title:r||""},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:i.description},{children:r}))}))})]})),jsxRuntime.exports.jsx(Divider$1,{className:i.divider})]})},useStyles$c=makeStyles()(e=>({root:{width:"100%",height:"100%"},header:{opacity:.9,display:"flex",justifyContent:"space-between",padding:e.spacing(4,6),position:"relative"},title:{opacity:.9,padding:e.spacing(4,6,2,6)},titleText:{textTransform:"uppercase",color:e.palette.secondary.main},scrollContent:{overflowY:"auto",height:"calc(100% - 65px)"}})),filters$2=[{value:"all",title:"All Activities"},{value:"today",title:"Activities today"}],today$1=DateTime_1.local().startOf("day"),yesterday=DateTime_1.local().plus({days:-1}).startOf("day"),ActivityPanel=({data:e,filter:t,onChangeFilter:n})=>{var r=useStyles$c()["classes"];const i=null==e?void 0:e.filter(e=>DateTime_1.fromISO(e.createdDateTime||"").hasSame(today$1,"day")),o=null==e?void 0:e.filter(e=>DateTime_1.fromISO(e.createdDateTime||"").hasSame(yesterday,"day")),a=null==e?void 0:e.filter(e=>DateTime_1.fromISO(e.createdDateTime||"").startOf("day")<yesterday);return jsxRuntime.exports.jsxs("div",Object.assign({className:r.root},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:r.header},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:r.titleText},{children:"Today"})),jsxRuntime.exports.jsx(Filter,{data:filters$2,filter:t,onFilter:e=>{n(null==(e=null==e?void 0:e.target)?void 0:e.value)}})]})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.scrollContent},{children:[jsxRuntime.exports.jsx(Box$1,{children:null===i||void 0===i?void 0:i.map((e,t)=>jsxRuntime.exports.jsx(ActivityCard,{longFormatTime:!1,data:e},t))}),"all"===t&&jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[0<(null===o||void 0===o?void 0:o.length)&&jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.title,"data-testid":"filter-all-box"},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:r.titleText},{children:"Yesterday"}))})),jsxRuntime.exports.jsx(Box$1,{children:o.map((e,t)=>jsxRuntime.exports.jsx(ActivityCard,{longFormatTime:!1,data:e},t))})]}),0<(null===a||void 0===a?void 0:a.length)&&jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.title},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:r.titleText},{children:"Older"}))})),jsxRuntime.exports.jsx(Box$1,{children:a.map((e,t)=>jsxRuntime.exports.jsx(ActivityCard,{longFormatTime:!0,data:e},t))})]})]})]}))]}))},useStyles$b=makeStyles()((e,{appListV2:t,type:n},r)=>({listItem:{display:"flex",cursor:"pointer",alignItems:"center",height:t?"unset":70,width:"100%",padding:t?0:e.spacing(0,6),"&:hover":{backgroundColor:"#EEF3F9"},["& ."+r.appName]:{marginLeft:e.spacing(3)}},iconButton:{borderRadius:4,textAlign:"center",width:"94px",height:"110px",cursor:"pointer",["& ."+r.appName]:{marginBottom:e.spacing(3)}},appName:{textAlign:"center",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",textTransform:"capitalize",width:"switcherGrid"===n?"80%":"unset",margin:"switcherGrid"===n?"auto":"unset"},image:{display:"flex",justifyContent:"center",alignItems:"center",margin:t?"10px":e.spacing(3.8,0)},bounding:{padding:"17px 27px 19px 27px"},img:{width:40,height:40},switcherGrid:{borderRadius:4,textAlign:"center",padding:"20px 0 20px 0",cursor:"pointer","&:hover":{backgroundColor:"#EEF3F9"}}})),iconMapper={CMS:img$V,Discovery:img$U,Collection:img$T,Library:img$S,Admin:img$1s,Developer:img$R};function AppIcon({id:e,icon:t,type:n,iconUrl:r,appName:i,onClick:o,appListV2:a=!1}){a=useStyles$b({appListV2:a,type:n}).classes;const[s,l]=react.exports.useState(t||r||i&&iconMapper[i]||img$R);return jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:i||"",PopperProps:{disablePortal:!0}},{children:jsxRuntime.exports.jsxs("div",Object.assign({onClick:function(){o&&o(e)},className:classnames({[a.iconButton]:"grid"===n,[a.listItem]:"list"===n,[a.switcherGrid]:"switcherGrid"===n}),"data-test":"dt-button-app-icon","data-testid":"dt-button-app-icon"},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:a.image},{children:jsxRuntime.exports.jsx("img",{alt:"app-icon",onError:function(){l(img$R)},src:s,draggable:"false",className:a.img})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:a.appName,"data-testid":"os-app-bar-panel.app-switcher.app-name"},{children:i}))]}))}))}const useStyles$a=makeStyles()((e,{row:t})=>({tabsContainer:{width:"100%"},gridContainer:{display:"flex"},listContainer:{},gridItem:{display:"flex",justifyContent:"center",paddingBottom:e.spacing(1.6),"&:hover":{backgroundColor:"#EEF3F9",borderRadius:"4px"}},padding:{padding:e.spacing(0,6,3,6)},moreAppContainer:{height:`calc(100vh - ${0===t?175:1===t?275:2===t?395:500}px - 66px - 10px - 55px)`,minHeight:3===t?300:0,overflow:"overlay",overflowX:"hidden"},relativeParent:{position:"relative"},noMoreApps:{padding:e.spacing(0,9,3,9)},noSelect:{userSelect:"none",paddingTop:"16px"},gridTitle:{padding:"24px 30px 32px 30px",margin:"-5px 0 -5px","& > $noSelect":{marginBottom:15}},appItemDivider:{margin:e.spacing(0,6)}}));function AppList({title:e,selectedAppId:t,onSelectApplication:n,applications:r=[],useGrid:i=!1,row:o=0}){const a=useStyles$a({row:o})["classes"],[s,l]=react.exports.useState(t),[c,u]=react.exports.useState([]);function d(e){l(e),n(e)}function p(e,t){return e.name>t.name?1:e.name<t.name?-1:0}return react.exports.useEffect(()=>{if(0<r.length){const t=[...r];var e=t.sort(p);u(e)}},[r]),react.exports.useEffect(()=>{t!==s&&l(t)},[t,s]),jsxRuntime.exports.jsxs("div",Object.assign({className:classnames({[a.gridTitle]:i},a.tabsContainer)},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:classnames({[a.padding]:!i},a.noSelect)},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h3",sx:{marginBottom:"10px"}},{children:e}))})),i&&jsxRuntime.exports.jsx("div",Object.assign({className:a.gridContainer},{children:jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0},{children:0===r.length?jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.Xzhf45",defaultMessage:"No Applications",description:"the label no app will show if we have no application for grid view"})})):0<c.length&&c.map((e,t)=>{var{id:e=t,iconUrl:t,name:n}=e;return jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:4},{children:jsxRuntime.exports.jsx("div",Object.assign({className:a.gridItem},{children:jsxRuntime.exports.jsx(AppIcon,{type:"grid",selected:e===s,onClick:d,iconUrl:t,id:e,appName:n})}))}),e)})}))})),!i&&jsxRuntime.exports.jsx("div",Object.assign({className:a.listContainer},{children:0===r.length?jsxRuntime.exports.jsx("div",Object.assign({className:a.noMoreApps},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.dyhBih",defaultMessage:"No Applications",description:"the label no app will show if we have no application for list view"})}))})):jsxRuntime.exports.jsx("div",Object.assign({className:a.moreAppContainer},{children:0<r.length&&r.sort(p).map((e,t)=>{var{id:e=t,iconUrl:n,name:r}=e;return jsxRuntime.exports.jsxs("div",Object.assign({className:a.relativeParent},{children:[jsxRuntime.exports.jsx(AppIcon,{type:"list",selected:e===s,onClick:d,iconUrl:n,id:e,appName:r}),jsxRuntime.exports.jsx(Divider$1,{className:a.appItemDivider})]}),e+"_"+t)})}))}))]}))}const useStyles$9=makeStyles()(e=>({tabsBox:{height:"100%"},fullHeight:{height:"100%"},listContainer:{overflow:"hidden",height:"calc(100vh - 64px - 55px - 5px)",overflowY:"scroll"},skeletonContainer:{position:"absolute",width:"100%",height:"100%",zIndex:5,backgroundColor:"white"}}));function ApplicationPanel$1({selectedAppId:e,onChangeTab:t,recentApplist:n=[],applications:r=[],onClickApp:i}){useStyles$9(),useSelector(preferredLanguageSelector);const[o,a]=react.exports.useState(0===n.length?0:n.length<4?1:2),[s,l]=(react.exports.useEffect(()=>{var e=0===n.length?0:n.length<4?1:2;a(e)},[n]),react.exports.useState(e));function c(e){l(e),null!=t&&t(e),null!=i&&i(e)}return react.exports.useEffect(()=>{e!==s&&l(e)},[e,s]),jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(AppList,{useGrid:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.name.recentApps",defaultMessage:"Recent Applications",description:"Header title of recent apps"}),type:"Recent",applications:n,onSelectApplication:c,selectedAppId:null})}),jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(AppList,{useGrid:!1,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.name.moreApps",defaultMessage:"More Applications",description:"Header title of more apps"}),type:"More",applications:r,onSelectApplication:c,selectedAppId:null,row:o})})]})}const useStyles$8=makeStyles()((e,{sortOrder:t,hasApps:n,menuIsOpen:r})=>({root:{},groupContainer:{padding:"0 15px"},title:{fontWeight:700,padding:"15px"},groupTitle:{background:"#F9F9F9",paddingLeft:"5px",position:"relative",height:"16px","& .Sdk-MuiTypography-root":{fontSize:"10px",fontWeight:700,lineHeight:"10px",position:"absolute",margin:"3px"}},filterIcon:{display:"flex",flexDirection:"column",justifyContent:"center","& svg":{transform:"asc"===t?"scaleY(-1)":"scaleY(1)",cursor:n?"pointer":"not-allowed"}},filterIconWrapper:{width:"24px",height:"24px",borderRadius:"24px",background:r?"rgba(228, 240, 252, 0.8)":"unset","& path":{fill:r?"#0C53B0":"#555F7C"},"&:hover":{background:"rgba(228, 240, 252, 0.8)","& path":{fill:"#0C53B0"}}},searchBox:{display:"flex",flexDirection:"column",justifyContent:"center","& .Sdk-MuiOutlinedInput-root":{borderRadius:"1em",height:"30px"},"& .Sdk-MuiButtonBase-root":{padding:0},"& svg":{width:"14px"},"& input":{"&::placeholder":{color:"#5C6269 !important",fontWeight:600,opacity:1}},"& .Sdk-MuiOutlinedInput-notchedOutline":{borderColor:"#D5DFE9"}},searchInput:{fontSize:"11px","&::placeholder":{color:"#5C6269 !important"}},sortMenu:{width:"143px"}})),SHARED_TEXT={buttonLink:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.aaaaa1",defaultMessage:"Link",description:"label of link open id connector button on profile panel"}),buttonUnlink:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.L4gr2p",defaultMessage:"Unlink",description:"label of unlink open id connector button on profile panel"}),basicInfoTabLabel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.lpZXMT",defaultMessage:"Basic Info",description:"Personal Profile: Basic info name, email etc"}),accountLinkingTabLabel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.AgbO9g",defaultMessage:"Account Linking",description:"Personal Profile: Open ID Connector Account Linking"}),settingsTabLabel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.oYYEos",defaultMessage:"Settings",description:"Profile Settings"}),accountLinkingLabel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.JxMDBr",defaultMessage:"Link your Account",description:"label of manage basic infomation container"}),accountLinkingDescription:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.77MHtz",defaultMessage:"View your accounts from other identify providers that are linked with this account.",description:"description of manage account linking"}),unlinkDialogTitle:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.naysir",defaultMessage:"Unlink this Identity Provider?",description:"title for unlink identity provider"}),unlinkDialogContent:e=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.dwZfY7",defaultMessage:"Are you sure you want to unlink {name} from your account?",description:"content for unlink identity provider",values:{name:e||""}}),unlinkDialogCancel:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.SNjPPT",defaultMessage:"Cancel",description:"cancel for unlink identity provider"}),unlinkDialogConfirm:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.KJyVd9",defaultMessage:"Yes, Unlink",description:"confirm for unlink identity provider"}),successDialogTitle:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.ZaKL3e",defaultMessage:"Account Successfully linked!",description:"title for success identity provider"}),successDialogContent:e=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.IP+fpM",defaultMessage:"You can now log into this account using {name}.",description:"content for success identity provider",values:{name:e||""}}),successDialogConfirm:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.1DTtvD",defaultMessage:"Okay",description:"confirm for success identity provider"}),nullState:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.u6gP99",defaultMessage:"Your account currently has no available account linking options",description:"account linking null state"}),errorState:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.KG2JIz",defaultMessage:"There was an error while loading the available account linking options",description:"account linking error state"}),retry:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.IYUdD6",defaultMessage:"Retry",description:"account linking retry"}),settingsHeader:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.IIE3bM",defaultMessage:"Application Preferences",description:"account settings header"}),settingsSubHeader:()=>jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.9xcAYc",defaultMessage:"Manage the settings of aiWARE services and applications.",description:"account settings sub header"})},translatableTextProps=e=>({searchLabel:e.formatMessage({id:"os-app-bar-panel.search.label",defaultMessage:[{type:0,value:"Search"}]})});function AppListV2({intl:e,selectedAppId:t,onSelectApplication:n,applications:i=[]}){const[r,o]=react.exports.useState(t),[a,s]=react.exports.useState({}),[l,c]=react.exports.useState(""),[u,d]=react.exports.useState("asc");var p=0!==i.length;function f(e){o(e),n(e)}function h(e,t){return e.name>t.name?1:e.name<t.name?-1:0}react.exports.useEffect(()=>{if(0<i.length){const t=[...i];const n={};for(const r of t.sort(h)){var e=r.name.charAt(0).toUpperCase();n[e]?n[e]=[...n[e],r]:n[e]=[r]}s(n)}},[i]),react.exports.useEffect(()=>{t!==r&&o(t)},[t,r]);e=translatableTextProps(e).searchLabel;const[m,g]=react.exports.useState(null);var y=Boolean(m);const v=e=>{if(e!==u){d(e);const t=Object.keys(a).reverse(),n={};t.forEach(e=>n[e]=a[e].reverse()),s(n)}g(null)},x=useStyles$8({sortOrder:u,hasApps:p,menuIsOpen:y})["classes"];p=jsxRuntime.exports.jsxs(Menu$1,Object.assign({id:"app-switcher.sort-menu",anchorEl:m,open:y,onClose:v},{children:[jsxRuntime.exports.jsx(MenuItem$1,Object.assign({onClick:()=>v("asc"),className:x.sortMenu},{children:"A - Z"})),jsxRuntime.exports.jsx(MenuItem$1,Object.assign({onClick:()=>v("desc"),className:x.sortMenu},{children:"Z - A"}))]}));return jsxRuntime.exports.jsxs("div",Object.assign({className:x.root,"data-testid":"os-app-bar-panel.app-switcher.applications-container"},{children:[jsxRuntime.exports.jsxs(Grid$1,Object.assign({container:!0,spacing:2},{children:[jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:5},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:x.title},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-switcher.applications-title",defaultMessage:"Applications",description:"Applications list title"})}))})),jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:5,className:x.searchBox},{children:jsxRuntime.exports.jsx(TextField$1,{"data-testid":"os-app-bar-panel.app-switcher.search",onChange:e=>{c(e.target.value)},placeholder:e,InputProps:{classes:{input:x.searchInput},startAdornment:jsxRuntime.exports.jsx(InputAdornment$1,Object.assign({position:"start"},{children:jsxRuntime.exports.jsx(IconButton$1,{children:jsxRuntime.exports.jsx(default_1$4,{})})}))}})})),jsxRuntime.exports.jsxs(Grid$1,Object.assign({item:!0,xs:2,className:x.filterIcon},{children:[jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.app-switcher.sort-btn",defaultMessage:"Sort",description:"Application sort button"})},{children:jsxRuntime.exports.jsx("div",Object.assign({className:x.filterIconWrapper},{children:jsxRuntime.exports.jsx(SortArrow,{onClick:e=>{i.length&&g(e.currentTarget)},className:x.filterIcon,"data-testid":"os-app-bar-panel.app-switcher.sort"})}))})),p]}))]})),jsxRuntime.exports.jsx("div",{children:0===i.length?jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.dyhBih",defaultMessage:"No Applications",description:"the label no app will show if we have no application for list view"})}))}):jsxRuntime.exports.jsx("div",Object.assign({className:x.groupContainer},{children:0<Object.keys(a).length&&Object.entries(a).map(([e,t])=>t.filter(e=>e.name.toLowerCase().includes(l.toLowerCase())).length?jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx("div",Object.assign({className:x.groupTitle,"data-testid":"os-app-bar-panel.app-switcher.group-title"},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"overline"},{children:e}))})),t.filter(e=>e.name.toLowerCase().includes(l.toLowerCase())).map((e,t)=>{var{id:e=t,iconUrl:t,name:n}=e;return jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"os-app-bar-panel.app-switcher.app-row"},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(AppIcon,{type:"list",selected:e===r,onClick:f,iconUrl:t,id:e,appName:n,appListV2:!0})}),jsxRuntime.exports.jsx(Divider$1,{})]}),e)})]},e):null)}))})]}))}var AppListV2$1=injectIntl(AppListV2);const useStyles$7=makeStyles()(e=>({root:{height:"calc(100vh - 64px - 55px - 5px)",overflowY:"scroll",borderRight:"15px solid #F9F9F9",boxShadow:"0px 1px 1px #809cb7"},appTile:{overflow:"hidden"},title:{fontWeight:900,padding:"15px"},helperText:{paddingLeft:"15px",fontSize:"12px",fontWeight:"bold"},noApps:{textAlign:"center",marginTop:"30px","& svg":{width:"160px",height:"160px",marginBottom:"20px"}}})),RecentApps=({apps:e=[],onSelectApplication:t,selectedAppId:n})=>{const i=useStyles$7()["classes"],[o,r]=react.exports.useState(n);function a(e){r(e),t(e)}return jsxRuntime.exports.jsxs("div",Object.assign({className:i.root,"data-testid":"app-switcher.recent-apps.container"},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:i.title},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"app-bar.app-switcher.recent-apps",defaultMessage:"Recent Applications",description:"Recent Application container title"})})),e.length?jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0,sx:{paddingLeft:"10px"}},{children:e.map((e,t)=>{var{id:t=t,iconUrl:n,name:r}=e;return jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:4,className:i.appTile,sx:{padding:0},"data-testid":"app-switcher.recent-apps.app-tile"},{children:jsxRuntime.exports.jsx(AppIcon,{type:"switcherGrid",selected:t===o,onClick:a,iconUrl:n,id:t,appName:r,appListV2:!0})}),e.id)})})):jsxRuntime.exports.jsxs("div",Object.assign({className:i.noApps},{children:[jsxRuntime.exports.jsx(NoApps,{fontSize:"large"}),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:i.helperText},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"app-bar.app-switcher.no-recent-apps",defaultMessage:"You haven’t viewed any applications yet.",description:"No Recent Application title"})}))]}))]}))};function ApplicationPanel({selectedAppId:e,onChangeTab:t,recentApplist:n=[],applications:r=[],onClickApp:i}){var o=useStyles$9()["classes"],a=useSelector(preferredLanguageSelector);const s=AIWareFormatMessage(a),[l,c]=react.exports.useState(0===n.length?0:n.length<4?1:2),[u,d]=(react.exports.useEffect(()=>{var e=0===n.length?0:n.length<4?1:2;c(e)},[n]),react.exports.useState(e));function p(e){d(e),null!=t&&t(e),null!=i&&i(e)}return react.exports.useEffect(()=>{e!==u&&d(e)},[e,u]),jsxRuntime.exports.jsx("div",Object.assign({className:o.fullHeight},{children:jsxRuntime.exports.jsxs(Grid$1,Object.assign({container:!0,className:o.fullHeight},{children:[jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:6,className:o.fullHeight},{children:jsxRuntime.exports.jsx(RecentApps,{apps:n,onSelectApplication:p,selectedAppId:null})})),jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:6,className:o.fullHeight},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.listContainer},{children:jsxRuntime.exports.jsx(AppListV2$1,{title:s({id:"os-app-bar-panel.name.moreApps",defaultMessage:[{type:0,value:"More Applications"}]}),type:"More",applications:r,onSelectApplication:p,selectedAppId:null,row:l})}))}))]}))}))}const useStyles$6=makeStyles()(e=>({root:{width:"100%",height:"calc(100% - 30px)"},tabs:{margin:e.spacing(6)},tabPanels:{width:"100%",height:"calc(100% - 80px)"},logRoot:{padding:e.spacing(0,6)},logHeader:{display:"flex",justifyContent:"space-between"},logTitleText:{paddingTop:"4px"},logContent:{marginTop:"12px"},overviewRoot:{padding:e.spacing(0,6),height:"100%"},overviewHeader:{display:"flex",justifyContent:"space-between"},overviewTitleText:{fontWeight:600},overviewContent:{width:"100%",height:"calc(100% - 50px)",display:"flex",flexDirection:"column",overflowY:"auto"},overviewLineChart:{padding:e.spacing(6,0),flex:1},overviewPieChart:{marginTop:0}})),filters$1=[{value:"all",title:"View Current Week"},{value:"no data",title:"View Current Month"}];function Overview(){var e=useStyles$6()["classes"];const[t,n]=react.exports.useState("all");return jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.overviewRoot,"data-testid":"performance-monitor-overview"},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.overviewHeader},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:e.overviewTitleText},{children:"CPU Load"})),jsxRuntime.exports.jsx(Filter,{data:filters$1,filter:t,onFilter:e=>{n(e.target.value)}})]})),jsxRuntime.exports.jsx(Box$1,{className:e.overviewContent})]}))}const useStyles$5=makeStyles()(e=>({table:{minWidth:650},SdkTableCellData:{fontSize:12,color:"#000"},SdkTableCellHeader:{fontSize:12,color:"#9CA8B4",borderBottom:"none",paddingBottom:0},SdkTableCellAvatar:{width:"32px",padding:e.spacing(3,0,3,1)},smallAvatar:{width:32,height:32},SdkTableCellStatus:{color:"#219653",textTransform:"capitalize"},SdkTableCellStatusDeactived:{color:"#8D0707",textTransform:"capitalize"}}));function MuiTable({columns:t=[],data:e=[]}){const r=useStyles$5()["classes"];return jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsxs(Table$1,Object.assign({className:r.table,"aria-label":"simple table"},{children:[jsxRuntime.exports.jsx(TableHead$1,{children:jsxRuntime.exports.jsx(TableRow$1,{children:t.map((e,t)=>jsxRuntime.exports.jsx(TableCell$1,Object.assign({classes:{root:r.SdkTableCellHeader},align:e.align},{children:e.label}),t))})}),jsxRuntime.exports.jsx(TableBody$1,{children:e.map((n,e)=>jsxRuntime.exports.jsx(TableRow$1,{children:t.map((e,t)=>"avatar"===e.value?jsxRuntime.exports.jsx(TableCell$1,Object.assign({padding:"checkbox",classes:{root:classnames(r.SdkTableCellData,r.SdkTableCellAvatar)},align:"right"},{children:jsxRuntime.exports.jsx(Avatar$1,{alt:"",src:n[e.value],className:r.smallAvatar})}),t):"status"===e.value?jsxRuntime.exports.jsx(TableCell$1,Object.assign({padding:"checkbox",classes:{root:r.SdkTableCellData},align:e.align},{children:jsxRuntime.exports.jsx("span",Object.assign({className:"deactived"===n[e.value]||"failed"===n[e.value]?r.SdkTableCellStatusDeactived:r.SdkTableCellStatus},{children:n[e.value]}))}),t):jsxRuntime.exports.jsx(TableCell$1,Object.assign({classes:{root:r.SdkTableCellData},align:e.align},{children:n[e.value]}),t))},e))})]}))})}const data$1=[1,2,3,4,5,6,7,8].map(e=>[{name:"LogoGrab - V3F - "+e,engineId:"0006676754"+e,jobId:"20104106_6WnM4rGlXj",status:"Pending",duration:"1s",appName:"Attribute"}]),columns=[{value:"name",label:"Engine Name",align:"left"},{value:"engineId",label:"Engine ID",align:"left"},{value:"jobId",label:"Job ID",align:"left"},{value:"status",label:"Status",align:"left"},{value:"duration",label:"Time",align:"left"},{value:"appName",label:"App Name",align:"left"}],filters=[{value:"all",title:"View All Applications"},{value:"no data",title:"Active Applications"}];function PerformanceLogs(){var e=useStyles$6()["classes"];const[t,n]=react.exports.useState("all");return jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.logRoot,"data-testid":"performance-monitor-logs"},{children:[jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.logHeader},{children:[jsxRuntime.exports.jsx(Filter,{data:filters,filter:t,onFilter:e=>{n(e.target.value)}}),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:e.logTitleText},{children:"Last 24 Hours"}))]})),jsxRuntime.exports.jsx(Box$1,Object.assign({className:e.logContent},{children:jsxRuntime.exports.jsx(MuiTable,{columns:columns,data:data$1})}))]}))}const Resources=()=>jsxRuntime.exports.jsx("div",Object.assign({"data-testid":"performance-monitor-resources"},{children:"Resources"}));function PerformanceErrors(){return jsxRuntime.exports.jsx("div",Object.assign({"data-testid":"performance-monitor-errors"},{children:"Performance Errors"}))}const tabsList$1=[{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.xgDIjO",defaultMessage:"Overview",description:"tab label: Overview"}),disabled:!1},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.NXAxMt",defaultMessage:"Logs",description:"tab label: Logs"}),disabled:!1},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.Mxysi8",defaultMessage:"Resources",description:"tab label: Resources"}),disabled:!0},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.Qj95LF",defaultMessage:"Errors",description:"tab label: Errors"}),disabled:!0}];function PerformanceMonitor(){var e=useStyles$6()["classes"];const[t,n]=react.exports.useState(0);return jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.root,"data-testid":"performance-monitor"},{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:e.tabs},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:t,onChangeTab:e=>{n(Number(e))},tabsList:tabsList$1})})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:e.tabPanels},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:t,index:0},{children:jsxRuntime.exports.jsx(Overview,{})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:t,index:1},{children:jsxRuntime.exports.jsx(PerformanceLogs,{})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:t,index:2},{children:jsxRuntime.exports.jsx(Resources,{})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:t,index:3},{children:jsxRuntime.exports.jsx(PerformanceErrors,{})}))]}))]}))}const useStyles$4=makeStyles()(e=>({root:{display:"flex",justifyContent:"center"},changeAvatarIcon:{color:"#121212 !important",backgroundColor:"#ffffff !important",padding:e.spacing(1.2)+" !important","&:hover":{backgroundColor:"#ffffff !important"}},avatarLarge:{color:e.palette.secondary.main,backgroundColor:"#ffffff !important",fontSize:"30px !important",width:"84px !important",height:"84px !important",border:"5px solid #E8E8E8"}})),AvatarProfile=({avatar:e,sortName:t,onEditAvatarClick:n,loadingStatus:r})=>{var i=useStyles$4()["classes"];return jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("div",Object.assign({className:i.root},{children:jsxRuntime.exports.jsx(Badge$1,Object.assign({"data-test":"dt-button-upload-avatar-icon",overlap:"circular","data-testid":"dt-button-upload-avatar-icon",anchorOrigin:{vertical:"bottom",horizontal:"right"},badgeContent:jsxRuntime.exports.jsx(IconButton$1,Object.assign({color:"primary","aria-label":"upload picture",className:i.changeAvatarIcon,onClick:()=>{n()},"data-test":"app-bar-update-avatar",size:"large","data-testid":"app-bar-update-avatar"},{children:jsxRuntime.exports.jsx("img",{src:img$16,alt:""})}))},{children:"loading"===r?jsxRuntime.exports.jsx(CircularProgress$1,{}):e?jsxRuntime.exports.jsx(Avatar$1,{"data-test":"dt-user-avatar-image",src:e,className:i.avatarLarge}):jsxRuntime.exports.jsx(Avatar$1,Object.assign({className:i.avatarLarge},{children:null==t?void 0:t.toUpperCase()}))}))}))})},useStyles$3$1=makeStyles()(e=>({container:{marginTop:e.spacing(4),padding:e.spacing(4,4),textAlign:"center",border:"0.5px solid #D5DFE9",borderRadius:e.spacing(2)},text:{marginTop:e.spacing(3)},icon:{display:"inline !important"}})),NullState=()=>{var e=useStyles$3$1()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:e.container},{children:[jsxRuntime.exports.jsx(Icon$1,Object.assign({className:e.icon},{children:jsxRuntime.exports.jsx(NoLink,{fontSize:"large"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:e.text},{children:SHARED_TEXT.nullState()})),jsxRuntime.exports.jsx(Box$1,{mb:9})]}))},ErrorState=({onRetry:e})=>{var t=useStyles$3$1()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:t.container},{children:[jsxRuntime.exports.jsx(Icon$1,Object.assign({className:t.icon},{children:jsxRuntime.exports.jsx(AlarmTwo,{fontSize:"large"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:t.text,"data-test":"account-linking-error-message"},{children:SHARED_TEXT.errorState()})),jsxRuntime.exports.jsx(Box$1,{mt:4}),jsxRuntime.exports.jsx(Button$1,Object.assign({variant:"text",size:"large","data-test":"account-linking-retry-btn",onClick:e},{children:SHARED_TEXT.retry()}))]}))};var LoadingStatus,useStyles$2$2=makeStyles()(e=>({accountLinkingLabel:{fontWeight:"normal",userSelect:"none"},openIdLogo:{width:e.spacing(5),height:e.spacing(5),backgroundColor:"#ffffff",color:"#555F7C"},listAvatar:{minWidth:"45px"},openIdContainer:{marginTop:e.spacing(3)},openIdItem:{padding:e.spacing(3)+"px 0px"},openIdTextContainer:{marginLeft:e.spacing(3.5),display:"inline-block",verticalAlign:"top"},secondaryAction:{right:"0"},linkBtn:{textTransform:"capitalize"},linkIcon:{marginRight:e.spacing(1),color:e.palette.primary.main},dialogTitle:{padding:`${e.spacing(6)} ${e.spacing(6)} ${e.spacing(1)}px !important `},dialogContent:{padding:`${e.spacing(1)} ${e.spacing(6)} !important `},dialogTitleText:{fontWeight:600},dialogAction:{padding:e.spacing(4)},displayNone:{display:"none"},displayInlineBlock:{display:"inline-block"}}));const OpenIdConnectorButton=({isConnected:e,onLink:t,onUnlink:n})=>{var r=useStyles$2$2()["classes"];return jsxRuntime.exports.jsx("div",{children:e?jsxRuntime.exports.jsx(Button$1,Object.assign({className:r.linkBtn+" "+r.displayNone,variant:"text","data-test":"account-linking-unlink-btn",onClick:n},{children:SHARED_TEXT.buttonUnlink()})):jsxRuntime.exports.jsxs(Button$1,Object.assign({variant:"outlined",color:"primary",className:r.linkBtn,"data-test":"account-linking-link-btn",onClick:t},{children:[jsxRuntime.exports.jsx(default_1$3,{className:r.linkIcon}),SHARED_TEXT.buttonLink()]}))})};function OpenIdConnectors({openIdItems:o,onOpenUnlinkModal:a,onClickOpenIdUrl:s,isOpenIdConnected:l}){const c=useStyles$2$2()["classes"];return jsxRuntime.exports.jsx(List$2,{children:o.map((e,t)=>{const{name:n,loginButtonStyle:r}=e;var i=null==r?void 0:r.btnLogo;return jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsxs(ListItem$1,Object.assign({className:c.openIdItem},{children:[jsxRuntime.exports.jsx(ListItemAvatar$1,Object.assign({className:c.listAvatar},{children:jsxRuntime.exports.jsx(Avatar$1,Object.assign({className:c.openIdLogo,src:i},{children:jsxRuntime.exports.jsx(OrgFilled,{})}))})),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(Tooltip$1,Object.assign({title:25<n.length?n:"",placement:"bottom-end"},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:c.accountLinkingLabel},{children:25<n.length?n.substring(0,25)+"...":n}))}))}),jsxRuntime.exports.jsx(ListItemSecondaryAction$1,Object.assign({className:c.secondaryAction},{children:jsxRuntime.exports.jsx(OpenIdConnectorButton,{isConnected:l(e.connectId),onLink:()=>s(e),onUnlink:()=>a(e)})}))]})),t!==o.length-1&&jsxRuntime.exports.jsx(Divider$1,{})]})})})}const LoaderSkeletonItem=()=>{var e=useStyles$2$2()["classes"];return jsxRuntime.exports.jsxs(ListItem$1,Object.assign({className:e.openIdItem},{children:[jsxRuntime.exports.jsx(ListItemAvatar$1,Object.assign({className:e.listAvatar},{children:jsxRuntime.exports.jsx(Skeleton$1,{variant:"circular",width:25,height:25})})),jsxRuntime.exports.jsx(ListItemText$1,{children:jsxRuntime.exports.jsx(Skeleton$1,{variant:"text",width:150,height:21})}),jsxRuntime.exports.jsx(ListItemSecondaryAction$1,Object.assign({className:e.secondaryAction},{children:jsxRuntime.exports.jsx(Skeleton$1,{variant:"rectangular",width:87,height:35})}))]}))},LoaderSkeleton=()=>jsxRuntime.exports.jsxs(List$2,{children:[jsxRuntime.exports.jsx(LoaderSkeletonItem,{}),jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx(LoaderSkeletonItem,{}),jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx(LoaderSkeletonItem,{})]}),namespace$2=(!function(e){e.Failed="failed",e.Idle="idle",e.Pending="pending"}(LoadingStatus=LoadingStatus||{}),"openId"),selectOpenIdConnectors=e=>{return null==(e=null==e?void 0:e[namespace$2])?void 0:e.openIdConnectors},selectConnectedOpenIds=e=>{return null==(e=null==e?void 0:e[namespace$2])?void 0:e.connectedOpenIds},selectLoadingStatus=e=>{return null==(e=null==e?void 0:e[namespace$2])?void 0:e.status},GET_OPEN_ID_CONNECTORS=`aiware/${namespace$2}/get open id connectors`,GET_OPEN_ID_SUCCESS=`aiware/${namespace$2}/get open id connectors success`,GET_CONNECTED_OPEN_ID_SUCCESS=`aiware/${namespace$2}/get connected open id connectors success`,GET_OPEN_ID_ERROR=`aiware/${namespace$2}/get open id connectors error`;function getOpenIdConnectors(){return{type:GET_OPEN_ID_CONNECTORS}}function getOpenIdConnectorSuccess(e){return{type:GET_OPEN_ID_SUCCESS,payload:{data:e}}}function getConnectedOpenIdsSuccess(e){return{type:GET_CONNECTED_OPEN_ID_SUCCESS,payload:{data:e}}}function getOpenIdConnectorError(e){return{type:GET_OPEN_ID_ERROR,payload:{message:e}}}const AccountLinking=()=>{const e=useDispatch(),[t,n]=react.exports.useState(!1),[r,i]=react.exports.useState(!1),[o,a]=react.exports.useState(null);const[s,l]=react.exports.useState({}),[c,u]=react.exports.useState(),d=useSelector(selectLoadingStatus)||"",p=useSelector(selectOpenIdConnectors)||[],f=useSelector(selectConnectedOpenIds)||[];var h=useStyles$2$2()["classes"];react.exports.useEffect(()=>{e(getOpenIdConnectors())},[e]);const m=e=>{l(e),n(!0)};var g=()=>{n(!1)},y=()=>{i(!1)};const v=()=>{e(getOpenIdConnectors())},x=(useInterval(()=>{e(getOpenIdConnectors())},o),e=>{l(e);e=window.open(e.loginUrl);u(e),a(2e3)}),C=react.exports.useCallback(t=>f.some(e=>e.connectId===t),[f]);react.exports.useEffect(()=>{""!==s.connectId&&null!==o&&C(s.connectId)&&(a(null),null!==c&&void 0!==c&&c.close(),i(!0))},[C,e]);return jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:h.accountLinkingLabel,"data-test":"account-linking-label"},{children:SHARED_TEXT.accountLinkingLabel()})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:SHARED_TEXT.accountLinkingDescription()})),d===LoadingStatus.Pending?jsxRuntime.exports.jsx(LoaderSkeleton,{}):d===LoadingStatus.Failed?jsxRuntime.exports.jsx(ErrorState,{onRetry:v}):0===p.length?jsxRuntime.exports.jsx(NullState,{}):jsxRuntime.exports.jsx(OpenIdConnectors,{openIdItems:p,onOpenUnlinkModal:m,onClickOpenIdUrl:x,isOpenIdConnected:C}),jsxRuntime.exports.jsxs(Dialog$1,Object.assign({open:t,maxWidth:"xs",onClose:g,"aria-labelledby":"unlink-dialog-title","aria-describedby":"unlink-dialog-description"},{children:[jsxRuntime.exports.jsx(DialogTitle$1,Object.assign({id:"unlink-dialog-title","data-test":"account-linking-unlink-dialog-title",className:h.dialogTitle},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h2",className:h.dialogTitleText},{children:SHARED_TEXT.unlinkDialogTitle()}))})),jsxRuntime.exports.jsx(DialogContent$1,Object.assign({className:h.dialogContent},{children:jsxRuntime.exports.jsx(DialogContentText$1,Object.assign({id:"unlink-dialog-description"},{children:SHARED_TEXT.unlinkDialogContent(s.name)}))})),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:h.dialogAction},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:g,variant:"text",size:"large",className:h.linkBtn,"data-test":"account-linking-unlink-dialog-cancel-btn"},{children:SHARED_TEXT.unlinkDialogCancel()})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:g,size:"large",variant:"contained",color:"primary",className:h.linkBtn,"data-test":"account-linking-unlink-dialog-confirm-btn"},{children:SHARED_TEXT.unlinkDialogConfirm()}))]}))]})),jsxRuntime.exports.jsxs(Dialog$1,Object.assign({open:r,maxWidth:"xs",onClose:y,"aria-labelledby":"success-dialog-title","aria-describedby":"success-dialog-description"},{children:[jsxRuntime.exports.jsx(DialogTitle$1,Object.assign({id:"success-dialog-title",className:h.dialogTitle,"data-test":"account-linking-success-dialog-title"},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h2",className:h.dialogTitleText},{children:SHARED_TEXT.successDialogTitle()}))})),jsxRuntime.exports.jsx(DialogContent$1,Object.assign({className:h.dialogContent},{children:jsxRuntime.exports.jsx(DialogContentText$1,Object.assign({id:"success-dialog-description"},{children:SHARED_TEXT.successDialogContent(s.name)}))})),jsxRuntime.exports.jsx(DialogActions$1,Object.assign({className:h.dialogAction},{children:jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:y,size:"large",variant:"contained",color:"primary",className:h.linkBtn,"data-test":"account-linking-success-dialog-confirm-btn"},{children:SHARED_TEXT.successDialogConfirm()}))}))]}))]})};var useStyles$1$2=makeStyles()(e=>({personalProfileContainer:{overflowY:"auto"},firstBox:{paddingTop:e.spacing(6),textAlign:"center",borderBottom:"0.5px solid "+e.palette.divider},loggedBox:{fontWeight:400,paddingTop:e.spacing(2),paddingBottom:e.spacing(5)},email:{color:e.palette.primary.main},logoutBox:{paddingBottom:e.spacing(8)},btnLogin:{textTransform:"capitalize",fontSize:"14px",lineHeight:"19px",padding:e.spacing(1,7)},secondBox:{padding:e.spacing(5,6),"& div":{height:"auto !important"}},headerBox:{display:"flex"},editIconBox:{margin:e.spacing(0,-2.4,0,0)},descBox:{fontSize:"14px",color:e.palette.secondary.main},formBox:{marginTop:e.spacing(4)},formItem:{borderBottom:"0.5px solid "+e.palette.divider,marginBottom:e.spacing(4)},formItemPw:{marginBottom:e.spacing(4)+" !important"},titleItem:{color:e.palette.text.disabled,marginBottom:e.spacing(2),cursor:"default"},valueItem:{fontWeight:"normal",color:e.palette.text.secondary,marginBottom:e.spacing(2)},disabledText:{opacity:.6},lastUpdate:{color:"#9CA8B4"},reset:{color:e.palette.primary.main,opacity:.9,marginTop:"35px",cursor:"pointer"},passwordBox:{display:"flex",justifyContent:"space-between",alignItems:"center"},iconResetPw:{margin:"-18px -12px 0 0"},textField:{marginLeft:0,marginRight:0,marginTop:0,marginBottom:"30px",width:"100%"},actionForm:{padding:0,marginBottom:e.spacing(4)},inputBase:{padding:e.spacing(3.4,2.8)},notchedOutline:{"& legend":{height:"16px"}},btnAction:{textTransform:"capitalize",fontSize:"14px",lineHeight:"19px"},btnSave:{marginLeft:e.spacing(1.6)},btnActionCancel:{color:e.palette.secondary.main},pwResetTitle:{color:"#D43060 !important"},pwResetDes1:{marginBottom:"20px"},mainTitleText:{color:e.palette.text.secondary,userSelect:"none",fontSize:"18px",lineHeight:"23px",letterSpacing:"0.25px",textTransform:"uppercase"},contentUserView:{height:"100%",textAlign:"left",position:"relative"},headerDrawer:{padding:e.spacing(3,6),display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider},contentEditAvatar:{padding:e.spacing(6)},areaUpload:{background:e.palette.background.default,textAlign:"center",height:"300px",border:"1px solid "+e.palette.divider,boxSizing:"border-box",borderRadius:"4px",padding:e.spacing(10)},descDrag:{fontSize:"16px",color:"#828282",marginBottom:e.spacing(4)},descDrag2:{color:"#828282",margin:e.spacing(4,0)},btnSelectPhoto:{textTransform:"capitalize",fontSize:"14px",lineHeight:"19px"},recentlyBox:{marginTop:e.spacing(4)},recentlyText:{margin:e.spacing(2,0)},imgRecently:{width:"113px",height:"113px",background:"#C4C4C4",borderRadius:"4px"},imgRecentlyRow:{display:"flex",justifyContent:"space-between",marginBottom:"20px"},resetBiometric:{marginTop:e.spacing(7)},actionButton:{},inputFile:{display:"none !important"},imageGrid:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:e.spacing(4)},dragging:{filter:"blur(2px)"},currentlyLoggedIn:{fontWeight:"normal",color:e.palette.info.main,lineHeight:e.spacing(3.8),display:"flex",flexDirection:"column",cursor:"default"},manageBasicInfoLabel:{fontWeight:"normal",cursor:"default"},tabsParent:{"& div":{padding:e.spacing(0,0,0,1.6),borderBottom:"none"},"& .Sdk-MuiTab-root.Mui-selected":{color:e.palette.text.primary,fontWeight:600}},editProfilePictureContainer:{height:"calc(100vh - 60px)",display:"flex",flexDirection:"column",position:"relative"},editProfilePictureFooterButtons:{right:"30px",bottom:"30px",position:"absolute"}})),useStyles$e=makeStyles()(e=>({settingsHeader:{fontWeight:"normal",cursor:"default"},topMargin:{marginTop:"30px"},fullWidth:{width:"100%"},inputLabel:{fontFamily:"Nunito",fontWeight:300,display:"block",fontSize:14,color:"#5C6269",marginBottom:6},disclaimerText:{fontWeight:400,display:"block",fontSize:12,color:"#9CA8B4",marginTop:12}}));const ProfileSettings=({onPreferredLanguageChange:t,selectedLanguage:e})=>{const[n,r]=react.exports.useState("");var i=useStyles$e()["classes"];react.exports.useEffect(()=>{r(e)},[e]);const o=langs.map(({locale:e,name:t})=>({value:e,name:t}));return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:i.settingsHeader},{children:SHARED_TEXT.settingsHeader()})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:SHARED_TEXT.settingsSubHeader()})),jsxRuntime.exports.jsxs(FormControl$1,Object.assign({className:i.fullWidth+" "+i.topMargin},{children:[jsxRuntime.exports.jsx("label",Object.assign({className:i.inputLabel,htmlFor:"personal-profile-settings-preferred-language"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.preferredLanguage",defaultMessage:"Preferred Language",description:"Language selection label"})})),jsxRuntime.exports.jsx(Select$1,Object.assign({id:"personal-profile-settings-preferred-language",className:""+i.fullWidth,value:n,onChange:function(e){e=e.target.value,r(e),t(e)}},{children:null===o||void 0===o?void 0:o.map(e=>jsxRuntime.exports.jsx(MenuItem$1,Object.assign({value:null==e?void 0:e.value},{children:null==e?void 0:e.name})))})),jsxRuntime.exports.jsx(Typography$1,Object.assign({className:i.disclaimerText,variant:"subtitle1"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.preferredLanguageDisclaimer",defaultMessage:"Not all products within aiWARE may support your preferred language selection. If you choose a primary language that isn’t available, you may not see it reflected in the product you are currently viewing.",description:"Disclaimer text for preferred language"})}))]}))]})},tabsList$2=[{label:SHARED_TEXT.basicInfoTabLabel(),disabled:!1,id:"Basic Info"},{label:SHARED_TEXT.accountLinkingTabLabel(),disabled:!1,id:"Account Linking"},{label:SHARED_TEXT.settingsTabLabel(),disabled:!1,id:"Settings"}],PersonalProfile=({currentUser:e,handleResetBiometric:t,handleResetPassword:n,handleLogout:r,handleUpdateProfile:i,handleUploadAvatar:o,avatarHistory:a=[],enableResetBiometric:s=!1,loadingStatus:l})=>{var c;const u="EDIT_PROFILE_PICTURE";var d=useStyles$1$2()["classes"];const p=useDispatch();var f=useSelector(hidePasswordResetSelector)||!1,h=useSelector(preferredLanguageSelector)||"en";const[m,g]=react.exports.useState({firstName:"",lastName:"",phoneNumber:"",email:""}),[y,v]=react.exports.useState({firstName:"",lastName:"",phoneNumber:""}),[x,C]=react.exports.useState(!1),[b,$]=react.exports.useState(null),[w,S]=react.exports.useState(!1),[_,T]=react.exports.useState(!1),[E,j]=react.exports.useState(0);var I=useSelector(userAuthStatusSelector);const R=AIWareFormatMessage(h);react.exports.useEffect(()=>{e&&O(e)},[e]);const O=e=>{const{firstName:t,lastName:n,imageUrl:r,userSettings:i}=e;e=null===i||void 0===i?void 0:i.find(e=>"phoneNumber"===e.key);g({firstName:t||"",lastName:n||"",phoneNumber:(null==e?void 0:e.value)||"",email:""}),r&&$(r)};var L=react.exports.useCallback(()=>{null!=e&&e.email&&(S(!1),n(null==e?void 0:e.email))},[e,n]);var M=n=>e=>{const t=e.target.value;g(e=>Object.assign(Object.assign({},e),{[n]:t})),v(e=>Object.assign(Object.assign({},e),{[n]:""}))};const A=()=>{p(hidePanel$1(u))},k=e=>{o(e),setTimeout(()=>{p(hidePanel$1(u))},500)};I=[AuthStatus.LOGGING_OUT,AuthStatus.LOGGED_OUT].includes(I);return jsxRuntime.exports.jsxs("div",Object.assign({className:d.personalProfileContainer},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:d.firstBox},{children:[jsxRuntime.exports.jsx(AvatarProfile,{avatar:b,sortName:""+((null==(c=m.firstName)?void 0:c.substr(0,1))||"")+((null==(c=m.lastName)?void 0:c.substr(0,1))||""),onEditAvatarClick:()=>{var e={name:"EDIT_PROFILE_PICTURE",config:{name:"Veritone",dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE",onClose:A,onSaveAvatar:k,avatarHistory:a}},t={panelId:u,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,withTab:!1,marginStart:490,width:450,parentPanelId:"PERSONAL_PANEL",dimmed:0,dimmedStatus:"dimParent"};p(mountPanel$1({panelId:u,microFrontend:e,panelConfig:t}))},loadingStatus:l}),jsxRuntime.exports.jsx("div",Object.assign({className:d.loggedBox},{children:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2",className:d.currentlyLoggedIn},{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.ch1heq",defaultMessage:"Currently logged in as:",description:"personal profile panel currently logged in label"})," ",jsxRuntime.exports.jsx("span",Object.assign({"data-test":"Currently-logged-in-as-email",className:d.email},{children:null==e?void 0:e.email}))]}))})),jsxRuntime.exports.jsx("div",Object.assign({className:d.logoutBox},{children:jsxRuntime.exports.jsx(LoadingButton$1,Object.assign({onClick:r,variant:"outlined",color:"primary","data-test":"dt-button-logout",className:d.btnLogin,loading:I},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.bRcFCr",defaultMessage:"Logout",description:"label of logout button on profile panel"})}))})),jsxRuntime.exports.jsx("div",Object.assign({className:d.tabsParent},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:E,onChangeTab:e=>{j(e)},tabsList:tabsList$2})}))]})),jsxRuntime.exports.jsxs("div",Object.assign({className:d.secondBox},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:E,index:0},{children:jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:d.headerBox},{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:d.manageBasicInfoLabel},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.5oScQa",defaultMessage:"Manage Your Basic Information",description:"label of manage basic infomation container"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.DjVGBt",defaultMessage:"Basic info, like your name and photo, that you use on Veritone services.",description:"description of manage basic infomation container"})}))]}),jsxRuntime.exports.jsx("div",Object.assign({className:d.editIconBox},{children:!x&&jsxRuntime.exports.jsx(IconButton$1,Object.assign({id:"button-edit",onClick:()=>{T(!1),S(!1),C(!0)},size:"large"},{children:jsxRuntime.exports.jsx("img",{src:img$13,alt:""})}))}))]})),jsxRuntime.exports.jsxs("div",Object.assign({className:d.formBox},{children:[x?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(TextField$1,{id:"firstName",label:R({id:"os-app-bar-panel.firstName",defaultMessage:[{type:0,value:"First Name"}]}),variant:"outlined",className:d.textField,value:null===m||void 0===m?void 0:m.firstName,onChange:M("firstName"),margin:"normal",error:""!==y.firstName,helperText:y.firstName,InputProps:{classes:{input:d.inputBase,notchedOutline:d.notchedOutline}}}),jsxRuntime.exports.jsx(TextField$1,{id:"lastName",label:R({id:"os-app-bar-panel.lastName",defaultMessage:[{type:0,value:"Last Name"}]}),variant:"outlined",className:d.textField,value:null===m||void 0===m?void 0:m.lastName,onChange:M("lastName"),margin:"normal",error:""!==y.lastName,helperText:y.lastName,InputProps:{classes:{input:d.inputBase,notchedOutline:d.notchedOutline}}}),jsxRuntime.exports.jsx(TextField$1,{id:"phoneNumber",label:R({id:"os-app-bar-panel.phone",defaultMessage:[{type:0,value:"Phone"}]}),variant:"outlined",className:d.textField,value:null===m||void 0===m?void 0:m.phoneNumber,onChange:M("phoneNumber"),margin:"normal",error:""!==y.phoneNumber,helperText:y.phoneNumber,InputProps:{classes:{input:d.inputBase,notchedOutline:d.notchedOutline}}})]}),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:d.actionForm},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:()=>{e&&O(e),C(!1)},color:"primary",id:"button-cancel-edit",className:classnames(d.btnAction,d.btnActionCancel)},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.qpPFGp",defaultMessage:"Cancel",description:"label of cancel button on profile panel"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:function(){(()=>{let e=!0;return m.firstName||(v(Object.assign(Object.assign({},y),{firstName:"This field is required."})),e=!1),m.lastName||(v(Object.assign(Object.assign({},y),{lastName:"This field is required."})),e=!1),m.phoneNumber&&!/^\+?(\d){6,}$/.test(m.phoneNumber.toLowerCase())&&(v(Object.assign(Object.assign({},y),{phoneNumber:"Invalid phone number."})),e=!1),e})()&&(i(m),C(!1))},"data-test":"button-save-edit","data-testid":"button-save-edit",color:"primary",variant:"contained",className:d.btnAction},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.C1oyBr",defaultMessage:"Save",description:"label of save button on profile panel"})}))]}))]}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:d.formItem},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.titleItem},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.a5aLpI",defaultMessage:"Name",description:"label of name field on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"profile-panel-name",variant:"body1",className:d.valueItem},{children:`${(null===m||void 0===m?void 0:m.firstName)||""} `+((null===m||void 0===m?void 0:m.lastName)||"")}))]})),(null===m||void 0===m?void 0:m.phoneNumber)&&jsxRuntime.exports.jsxs("div",Object.assign({className:d.formItem},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.titleItem},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.73xPqY",defaultMessage:"Phone",description:"label of phone field on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"profile-panel-phone",variant:"body1",className:d.valueItem},{children:null===m||void 0===m?void 0:m.phoneNumber}))]}))]}),jsxRuntime.exports.jsxs("div",Object.assign({className:d.formItem},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.titleItem},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.zieKdP",defaultMessage:"Email",description:"label of email field on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"profile-panel-email",variant:"body1",className:classnames(d.valueItem,d.disabledText)},{children:null==e?void 0:e.email}))]})),w?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:d.pwResetTitle},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.I7feCi",defaultMessage:"Password Reset",description:"reset password label on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.pwResetDes1},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.Zcj+4v",defaultMessage:"Veritone will send a reset password link via the email on your account.",description:"reset password description on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.kk8TY8",defaultMessage:"Would you like to continue?",description:"confirm message of reset biometric on profile panel"})}))]}),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:d.actionForm},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:()=>{S(!1)},color:"primary","data-test":"button-cancel-reset-password","data-testid":"button-cancel-reset-password",className:classnames(d.btnAction,d.btnActionCancel)},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.hdbMmi",defaultMessage:"Cancel",description:"the label of cancel button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:L,"data-test":"button-reset-password","data-testid":"button-reset-password",color:"primary",variant:"contained",className:d.btnAction},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.ZXvsuR",defaultMessage:"Reset",description:"the label of reset button"})}))]}))]}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:classnames(d.formItem,d.formItemPw)},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.titleItem},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.uIEJAQ",defaultMessage:"Password",description:"label of pasword field on profile panel"})})),jsxRuntime.exports.jsxs("div",Object.assign({className:d.passwordBox},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:d.valueItem},{children:"********"})),!f&&jsxRuntime.exports.jsx(IconButton$1,Object.assign({id:"btn-click-pw-reset",className:d.iconResetPw,onClick:()=>{T(!1),S(!0),C(!1)},size:"large"},{children:jsxRuntime.exports.jsx("img",{src:img$12,alt:""})}))]}))]})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"subtitle1",className:d.lastUpdate},{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.qTqazR",defaultMessage:"Last updated",description:"last updated text label text on profile panel"})," ",(null!=e&&e.lastUpdated?DateTime_1.fromISO(null==e?void 0:e.lastUpdated):DateTime_1.local()).toFormat("LLL dd, yyyy")]}))})]})]})),_?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:d.resetBiometric},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:d.pwResetTitle},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.+DTt+G",defaultMessage:"Biometric Reset",description:"label of reset biometric container on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1",className:d.pwResetDes1},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.nzzfrY",defaultMessage:"Your Biometric Profile will be reset.",description:"description of reset biometric container on profile panel"})})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.kk8TY8",defaultMessage:"Would you like to continue?",description:"confirm message of reset biometric on profile panel"})}))]})),jsxRuntime.exports.jsxs(DialogActions$1,Object.assign({className:d.actionForm},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:()=>{T(!1)},"data-test":"button-cancel-reset-biometric",color:"primary",className:classnames(d.btnAction,d.btnActionCancel)},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.hdbMmi",defaultMessage:"Cancel",description:"the label of cancel button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:()=>{T(!1),t()},color:"primary",variant:"contained","data-test":"button-reset-biometric",className:d.btnAction},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.ZXvsuR",defaultMessage:"Reset",description:"the label of reset button"})}))]}))]}):!w&&s&&jsxRuntime.exports.jsx("div",Object.assign({id:"click-reset-biometric",onClick:()=>{T(!0),S(!1),C(!1)}},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",className:d.reset},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.OlJtmF",defaultMessage:"Reset Biometric Profile",description:"label of Reset Biometric Profile on profile panel"})}))}))]})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:E,index:1},{children:jsxRuntime.exports.jsx(AccountLinking,{})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:E,index:2},{children:jsxRuntime.exports.jsx(ProfileSettings,{selectedLanguage:h,onPreferredLanguageChange:e=>{p(updateUserLanguageStart(e))}})}))]}))]}))};function SettingPanel({currentUser:e,activities:t,activityFilter:n,onChangeActivityFilter:r,handleResetBiometric:i,handleResetPassword:o,handleLogout:a,handleUpdateProfile:s,tabId:l,recentApp:c,applications:u,onClickApp:d,handleUploadAvatar:p,avatarHistory:f}){const h=useSelector(userSelector$1);var m=useSelector(betaFeaturesSelector);const[g,y]=react.exports.useState("");var v=useStyles$9()["classes"];return react.exports.useEffect(()=>{y(h.loading)},[h]),jsxRuntime.exports.jsxs("div",Object.assign({className:v.tabsBox},{children:[l===TabId.PERSONAL_PANEL&&jsxRuntime.exports.jsx(PersonalProfile,{currentUser:e,handleLogout:a,handleResetBiometric:i,handleResetPassword:o,handleUpdateProfile:s,handleUploadAvatar:p,avatarHistory:f,loadingStatus:g}),l===TabId.APP_PANEL&&(m?jsxRuntime.exports.jsx(ApplicationPanel,{recentApplist:c,applications:u,onClickApp:d}):jsxRuntime.exports.jsx(ApplicationPanel$1,{recentApplist:c,applications:u,onClickApp:d})),l===TabId.ACTIVITY_PANEL&&jsxRuntime.exports.jsx(ActivityPanel,{filter:n,onChangeFilter:r,data:t||[]}),l===TabId.PERFORMANCE_MONITOR&&jsxRuntime.exports.jsx(PerformanceMonitor,{})]}))}const namespace$1$1="applications",applicationSelector=e=>{return null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$1$1]},HANDLE_CLICK_APP=`aiware/${namespace$1$1}/get handle click app`,REQUEST_GET_APPLICATION_V1=`aiware/${namespace$1$1}/request get app`,GET_APPLICATION_V1_START=`aiware/${namespace$1$1}/get app list start`,GET_APPLICATION_V1_SUCCESS=`aiware/${namespace$1$1}/get app list success`,GET_APPLICATION_V1_ERROR=`aiware/${namespace$1$1}/get app list error`;function requestGetApplications(){return{type:REQUEST_GET_APPLICATION_V1,payload:{}}}function getApplicationStart(){return{type:GET_APPLICATION_V1_START}}function getApplicationSuccess(e){return{type:GET_APPLICATION_V1_SUCCESS,payload:{data:e}}}function getApplicationError(e){return{type:GET_APPLICATION_V1_ERROR,payload:{message:e}}}const initialState$2$1={application:[],message:"",status:"idle"};function applicationReducer(e,t){if(void 0===e)return initialState$2$1;switch(t.type){case GET_APPLICATION_V1_START:return Object.assign(Object.assign({},e),{status:"loading"});case GET_APPLICATION_V1_SUCCESS:return Object.assign(Object.assign({},e),{application:t.payload.data,status:"success"});case GET_APPLICATION_V1_ERROR:return Object.assign(Object.assign({},e),{message:t.payload.message,status:"failure"});default:return e}}const namespace$4="activities",allActivitySeletor=e=>{return(null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[namespace$4])||[]},today=DateTime_1.local().startOf("day"),activitySelector=createSelector([allActivitySeletor],e=>{const{records:t,filter:n}=e;return"today"===n?t.filter(e=>DateTime_1.fromISO(e.createdDateTime).hasSame(today,"day")):t}),GET_ACTIVITY=`os-app-bar-panel/${namespace$4}/get activity`,GET_ACTIVITY_SUCCESS=`os-app-bar-panel/${namespace$4}/get activity success`,UPDATE_ACTIVITY_FILTER=`os-app-bar-panel/${namespace$4}/update activity filter`;function getActivity(){return{type:GET_ACTIVITY}}function updateActivityFilter(e){return{type:UPDATE_ACTIVITY_FILTER,payload:e}}function getActivitySuccess(e){return{type:GET_ACTIVITY_SUCCESS,payload:e}}const initialState$1$1={records:[],filter:"all",fetched:!1,fetching:!1,processing:!1};function activityReducer(e,t){if(void 0===e)return initialState$1$1;switch(t.type){case GET_ACTIVITY_SUCCESS:return Object.assign(Object.assign({},e),{records:t.payload});case UPDATE_ACTIVITY_FILTER:var n=t.payload["filter"];return Object.assign(Object.assign({},e),{filter:n});default:return e}}combineReducers({[namespace$3]:userReducer$1,[namespace$4]:activityReducer,[namespace$1$1]:applicationReducer});const nameSpace$2="aiWareHeaderBarPanel";function*handleClickAppSaga(e){yield call$7(storeRecentApplications,e.payload)}function*getApplicationsSaga(){yield put(getApplicationStart());var e=yield select(rootApiSelector),t=yield select(sessionTokenSelector);const n=yield call$7(getApplicationsApi,e,t);e=yield select(graphEndpointSelector),e=yield call$7(getApplicationLogo,e,t);const r=null==(t=null==e?void 0:e.data.applications)?void 0:t.records,i=r.reduce((e,t)=>Object.assign(Object.assign({},e),{[t.id]:t}),{});n&&n.results?yield put(getApplicationSuccess(((null===n||void 0===n?void 0:n.results)||[]).map(e=>{var t;let n=null!=(t=i[e.applicationId])&&t.signedIconUrl?decodeURIComponent(decodeURI(null==(t=i[e.applicationId])?void 0:t.signedIconUrl)):"";return n=(n=n.replaceAll("&","&")).replaceAll("host?","host&"),{id:e.applicationId,name:e.applicationName,iconUrl:n||(null==(t=i[e.applicationId])?void 0:t.signedIconSvg)||e.applicationIconUrl||e.applicationIconSvg||e.signedApplicationIconUrl,description:e.applicationDescription}}))):yield put(getApplicationError("something wrong"))}function*storeRecentApplications(e){var t=yield select(userSelector$1),t=(null==(t=null==t?void 0:t.currentUser)?void 0:t.id)||"",n=JSON.parse(localStorage.getItem("recentApplicationWithUserId")||"{}"),r=(null==n?void 0:n[t])||[],r=(r?(r=slice$3(uniq([e,...r]),0,6),localStorage.setItem("recentApplicationWithUserId",JSON.stringify(Object.assign(Object.assign({},n),{[t]:r})))):localStorage.setItem("recentApplicationWithUserId",JSON.stringify(Object.assign(Object.assign({},n),{[t]:[e]}))),yield select(switchApiSelector));window.open(r+"/"+e)}function*applicationSaga(){yield all([takeEvery$1(HANDLE_CLICK_APP,handleClickAppSaga),takeLatest$1(REQUEST_GET_APPLICATION_V1,getApplicationsSaga)])}function __awaiter$1(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 delay(t=1e3){return __awaiter$1(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function goToPage(e){window.location.href=e}const uploadingStatus={LOADING:"loading",DONE:"done"};function*getCurrentUserSaga$1(){var e,t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector),t=yield call$7(getCurrentUserGraphQLApi,t,n);if(null!=t&&t.errors&&0<(null==t?void 0:t.errors.length)&&(null==(n=t.errors[0].path)||!n.includes("userSettings")))console.error("getCurrentUser error");else{n=(null==(n=null==(n=null==t?void 0:t.data)?void 0:n.me)?void 0:n.recentImageUrls)||[];const r=(null==(e=null==(e=null==t?void 0:t.data)?void 0:e.myRights)?void 0:e.operations)||[];yield put(getCurrentUserSuccess$1(Object.assign(Object.assign({},(null==(e=null==t?void 0:t.data)?void 0:e.me)||{}),{organizationRole:{organizationId:get$3(t,"data.me.organization.id",""),role:r.includes("veritone.superadmin")?"superadmin":r.includes("admin.access")?"admin":"user"},organization:Object.assign({},(null==(e=null==(e=null==t?void 0:t.data)?void 0:e.me)?void 0:e.organization)||{}),roles:((null==(t=null==(e=null==t?void 0:t.data)?void 0:e.me)?void 0:t.roles)||[]).map(e=>e.appName),avatarHistory:n})))}}function*resetBiometricSaga(){var e=yield select(rootApiSelector),t=yield select(sessionTokenSelector);yield call$7(resetBiometricApi,e,t)}function*resetPasswordSaga(e){var e=(null==(e=null==e?void 0:e.payload)?void 0:e.email)||"",t=yield select(graphEndpointSelector),e=yield call$7(resetPasswordApi,e,t);!1===(null==e?void 0:e.success)?yield put(resetPasswordFail()):yield put(showMessage({content:(null==(e=null==(t=null==e?void 0:e.data)?void 0:t.createPasswordResetRequest)?void 0:e.message)||"",severity:MessageSeverity.Info}))}function*updateProfileSaga(e){const t=null==e?void 0:e.payload,n=yield select(graphEndpointSelector),r=yield select(sessionTokenSelector);var e=yield select(preferredLanguageSelector),i=yield call$7(()=>updateUserProfileApi(t,n,r));const o=AIWareFormatMessage(e);!1===(null==i?void 0:i.success)?yield put(updateProfileFail()):(yield put(getCurrentUser$1()),yield put(showMessage({content:o({id:"os-app-bar-panel.snackbar.updateProfileSuccess",defaultMessage:[{type:0,value:"Success"}]}),severity:MessageSeverity.Success})))}function*uploadAvatarSaga(e){var e=null==e?void 0:e.payload,t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector),e=yield call$7(uploadUserAvatarApi,e,t,n);yield put(uploadingAvatar(uploadingStatus.LOADING)),e&&(yield put(updateAvatar(e)))}function*updateAvatarSaga(e){var e=null==e?void 0:e.payload,t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector),r=yield select(preferredLanguageSelector),e=yield call$7(updateUserAvatarApi,e,t,n);const i=AIWareFormatMessage(r);e.errors?yield put(updateProfileFail()):(yield put(showMessage({content:i({id:"os-app-bar-panel.snackbar.updateAvatarSuccess",defaultMessage:[{type:0,value:"Update avatar successfully"}]}),severity:MessageSeverity.Success})),yield put(getCurrentUser$1()),yield put(uploadingAvatar(uploadingStatus.DONE)))}function*hardLogout(){goToPage(yield select(logoutUrlSelector))}function*handleLogoutError(){var e=yield select(preferredLanguageSelector);const t=AIWareFormatMessage(e);yield put(showMessage({content:t({id:"os-app-bar-panel.snackbar.logoutError",defaultMessage:[{type:0,value:"Could not log out current user"}]}),severity:MessageSeverity.Error}))}function*redirectToLogoutOrError(){var e=yield select(logoutRedirectUrlSelector);e?goToPage(e):yield call$7(handleLogoutError)}function*updateActivityStatus(){try{var e=yield select(graphEndpointSelector),t=yield select(authSelector),n=yield select(sessionTokenSelector);yield put(extendTokenRequest({token:n})),yield put(setIsIdle(!1)),yield call$7(postNotificationApi,e,null==t?void 0:t.userId,{eventType:aiwareEvent,command:notificationCommands.setCallResetIdleTimer,value:window.navigator.userAgent},!0,"json",aiwareEvent,n),yield delay(500)}catch(e){console.log(e)}}function*logoutUser(){var e=yield select(graphEndpointSelector),t=yield select(authSelector),n=yield select(sessionTokenSelector),r=yield select(loginUrlSelector),i=yield select(logoutRedirectUrlSelector);try{if(!n)return yield put(logoutUserSuccess()),void(yield call$7(hardLogout));window.__logout_requested=!0,yield call$7(postNotificationApi,e,null==t?void 0:t.userId,{eventType:aiwareEvent,command:null===notificationCommands||void 0===notificationCommands?void 0:notificationCommands.goToLoginPage,value:window.navigator.userAgent},!0,"json",aiwareEvent,n),yield delay(500);var o=yield call$7(logoutUserApi,n,e);if(null!=o&&o.errors||!1===(null==o?void 0:o.success))return yield call$7(redirectToLogoutOrError),void(yield put(logoutUserFail()));yield put(logoutUserSuccess()),goToPage(i||r)}catch(e){yield call$7(handleLogoutError),yield put(logoutUserFail()),console.log(e)}}function*userSaga$1(){yield all([takeEvery$1(GET_CURRENT_USER$1,getCurrentUserSaga$1),takeLatest$1(RESET_BIOMETRIC,resetBiometricSaga),takeLatest$1(RESET_PASSWORD,resetPasswordSaga),takeLatest$1(UPDATE_PROFILE,updateProfileSaga),takeLatest$1(UPLOAD__AVATAR,uploadAvatarSaga),takeLatest$1(UPDATE__AVATAR,updateAvatarSaga),takeLatest$1(LOGOUT_USER,logoutUser),takeLatest$1(UPDATE_ACTIVITY,updateActivityStatus)])}const formatActivityData=e=>{var t,{id:e,event:n,userId:r,userName:i,payload:o,createdDateTime:a}=e;return"login_succeeded"===n?{id:e,userId:r,createdDateTime:a,event:"Login succeeded",description:i+" logged in to Veritone"}:"logout_succeeded"===n?{id:e,userId:r,createdDateTime:a,event:"Logout succeeded",description:i+" successfully logged out"}:"add_user_succeeded"===n?(t=o["userName"],{id:e,userId:r,createdDateTime:a,event:"Add user succeeded",description:t+" successfully added"}):"org_updated"===n?(t=o["organizationName"],{id:e,userId:r,createdDateTime:a,event:"Org Name Changed",description:i+` updated org "${t}"`}):{id:e,userId:r,createdDateTime:a,event:"Unknown activity",description:"Unknown activity"}};function*getActivitySaga(){var e=yield call$7(getActivityApi);if(e.success){const t=e.data["records"];yield put(getActivitySuccess(t.map(formatActivityData)))}else{e=yield select(preferredLanguageSelector);const n=AIWareFormatMessage(e);yield put(showMessage({content:n({id:"os-app-bar-panel.snackbar.activityError",defaultMessage:[{type:0,value:"Something went wrong!"}]}),severity:MessageSeverity.Error}))}}function*activitySaga(){yield takeEvery$1(GET_ACTIVITY,getActivitySaga)}const BOOTING$1="aiware-header-bar/booting",BOOTED$1="aiware-header-bar/booted";function*bootFunction$1(){yield take(BOOTED$1)}function*booting$1(){yield takeEvery$1(BOOTING$1,bootFunction$1)}function*rootSaga$1(){yield all([fork(applicationSaga),fork(userSaga$1),fork(booting$1),fork(activitySaga)])}function getAppbarPanelModule(){return{id:"os-appbar-panel",reducerMap:{[nameSpace$2]:combineReducers({users:userReducer$1,activities:activityReducer,applications:applicationReducer})},sagas:[rootSaga$1],initialActions:[getActivity(),getCurrentUser$1(),requestGetApplications()],retained:!0}}const initialState$4={openIdConnectors:[],connectedOpenIds:[],message:"",status:LoadingStatus.Idle};function openIdConReducer(e,t){if(void 0===e)return initialState$4;switch(t.type){case GET_OPEN_ID_CONNECTORS:return Object.assign(Object.assign({},e),{status:0===e.openIdConnectors.length&&LoadingStatus.Pending});case GET_OPEN_ID_SUCCESS:return Object.assign(Object.assign({},e),{openIdConnectors:t.payload.data,status:LoadingStatus.Idle});case GET_CONNECTED_OPEN_ID_SUCCESS:return Object.assign(Object.assign({},e),{connectedOpenIds:t.payload.data});case GET_OPEN_ID_ERROR:return Object.assign(Object.assign({},e),{message:t.payload.message,status:LoadingStatus.Failed});default:return e}}const getAllOpenIdConnectorApi=(t,n,r)=>__awaiter$1(void 0,void 0,void 0,function*(){try{const e=yield fetch(t+"/api/admin/openid/org/"+n,{method:"GET",headers:Object.assign({"Content-Type":"application/json"},r&&{Authorization:"Bearer "+r}),credentials:"include"});return e.json()}catch(e){console.error(e)}}),getConnectedOpenIdConnectorApi=(t,n,r)=>__awaiter$1(void 0,void 0,void 0,function*(){try{const e=yield fetch(t+"/api/admin/openid/user/"+n,{method:"GET",headers:Object.assign({"Content-Type":"application/json"},r&&{Authorization:"Bearer "+r}),credentials:"include"});return e.json()}catch(e){console.error(e)}});function*getOpenIdConnectorSaga(){var n=yield select(sessionTokenSelector),r=yield select(rootApiSelector),i=(yield select(userSelector$2))["userName"];if(n&&r&&i){let e={},t={};e.results=yield select(selectOpenIdConnectors);try{var o=call$7(getAllOpenIdConnectorApi,r,i,n),a=call$7(getConnectedOpenIdConnectorApi,r,i,n);if(0===(null===e||void 0===e?void 0:e.results.length)?[e,t]=yield all([o,a]):t=yield a,!e||!t)return void(yield put(getOpenIdConnectorError("error on loading open ids")));yield put(getOpenIdConnectorSuccess(e.results)),yield put(getConnectedOpenIdsSuccess(t.results))}catch(e){yield put(getOpenIdConnectorError("error on loading open ids"))}}else yield put(getOpenIdConnectorError("Missing token,base url or username"))}function*openIdRootSaga(){yield takeEvery$1(GET_OPEN_ID_CONNECTORS,getOpenIdConnectorSaga)}function getOpenIdModule(){return{id:"open-id",reducerMap:{[namespace$2]:openIdConReducer},sagas:[openIdRootSaga],initialActions:[]}}function SettingPanelComponent({tabId:e}){const t=useDispatch(),{application:n=[]}=useSelector(applicationSelector)||{};var{currentUser:r={}}=useSelector(userSelector$1)||{};const{avatarHistory:i=[],id:o}=r;var a=useSelector(activitySelector)||[],s=useSelector(allActivitySeletor)["filter"];const[l,c]=react.exports.useState(0),[u,d]=react.exports.useState([]),[p,f]=react.exports.useState([]),h=react.exports.useCallback(()=>{var e=get$3(JSON.parse(localStorage.getItem("recentApplicationWithUserId")||"{}"),[o],[]);f(e)},[o]);return react.exports.useEffect(()=>{o&&h()},[o,h]),react.exports.useEffect(()=>{t(requestGetApplications()),t(getActivity()),t(getCurrentUser$1())},[t]),react.exports.useEffect(()=>{c(e||0)},[e]),react.exports.useEffect(()=>{if(0<p.length&&0<n.length){const t=p.join(",");var e=n.filter(e=>t.includes(""+e.id));d(e)}},[p,n]),jsxRuntime.exports.jsx(CacheProvider,Object.assign({value:muiCache},{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(lib$4.DynamicModuleLoader,Object.assign({modules:[getAppbarPanelModule(),getOpenIdModule()]},{children:jsxRuntime.exports.jsx(SettingPanel,{tabId:l,currentUser:r,activities:a,activityFilter:s,onChangeActivityFilter:function(e){t(updateActivityFilter({filter:e}))},handleResetBiometric:function(){t(resetBiometric())},handleResetPassword:function(e){t(resetPassword({email:e}))},handleLogout:function(){t(logout())},handleUpdateProfile:function(e){t(updateProfile(e))},organizationRole:get$3(r,"organizationRole",{}),recentApp:u,applications:function(){const t=p.join(",");return n.filter(e=>!t.includes(""+e.id))}(),onClickApp:function(e){t(appSwitcherHandleClick(""+e)),setTimeout(()=>{h()},500)},handleUploadAvatar:function(e){t(uploadAvatar(e))},avatarHistory:i})}))})})}))}const CropImage=({url:e,handleCroppedImage:t})=>{const n=react.exports.useRef();return jsxRuntime.exports.jsx("div",Object.assign({style:{padding:"10px",background:"#F8F8F8",borderRadius:"4px",border:"1px solid #D5DFE9"}},{children:jsxRuntime.exports.jsx(ReactCropper,{ref:n,src:e,style:{height:"100%",width:"100%",borderRadius:"4px",maxHeight:"300px"},dragMode:"move",viewMode:1,width:"",aspectRatio:1,guides:!0,crop:()=>{n.current&&n.current.cropper.getCroppedCanvas().toBlob(function(e){t(e)},"image/jpeg")},cropBoxMovable:!1,cropBoxResizable:!1,toggleDragModeOnDblclick:!1})}))};function EditProFilePicture({onClose:e,onSaveAvatar:t,avatarHistory:n}){const r=useStyles$1$2()["classes"],[i,o]=react.exports.useState(""),[a,s]=react.exports.useState(),[l,c]=react.exports.useState(!1),[u,d]=react.exports.useState(!1);var p=react.exports.useRef(null);const f=react.exports.useRef(0),h=react.exports.useRef(null);const m=e=>{h.current&&(h.current.value=""),o(e),c(!0)};return jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsxs("div",Object.assign({className:r.editProfilePictureContainer},{children:[jsxRuntime.exports.jsx("input",{accept:"image/*",className:r.inputFile,id:"icon-button-file",type:"file",onChange:e=>{e=e.target.files;if(e&&0<e.length){e=e[0];if(URL)m(URL.createObjectURL(e));else if(FileReader){const t=new FileReader;t.onload=function(){m(t.result)},t.readAsDataURL(e)}}},ref:h,"data-test":"image-upload-input","data-testid":"image-upload-input"}),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.contentUserView},{children:[jsxRuntime.exports.jsx(Box$1,Object.assign({className:r.headerDrawer},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:r.mainTitleText,"data-test":"edit-profile-picture-header"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.npW7Np",defaultMessage:"Edit Profile Picture",description:"The title of edit profile picture panel"})}))})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.contentEditAvatar},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:classnames(u&&r.dragging),ref:p,onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),f.current++,e.dataTransfer.items&&0<e.dataTransfer.items.length&&d(!0)},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),f.current--,0<f.current||d(!1)},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),d(!1),e.dataTransfer.files&&0<e.dataTransfer.files.length){var t=e.dataTransfer.files;if(FileReader&&0<t.length){const n=new FileReader;n.onload=function(){m(n.result)},n.readAsDataURL(t[0])}e.dataTransfer.clearData(),f.current=0}}},{children:l?jsxRuntime.exports.jsx(CropImage,{url:i,handleCroppedImage:e=>{s(e)}}):jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.areaUpload},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:r.descDrag},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.LeafC8",defaultMessage:"Drag a profile photo here",description:"the label of upload file container"})})),jsxRuntime.exports.jsx(Box$1,{children:jsxRuntime.exports.jsx("img",{src:img$1t,alt:""})}),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle2",className:r.descDrag2},{children:"- or -"})),jsxRuntime.exports.jsx(Button$1,Object.assign({variant:"outlined",color:"primary",id:"on-select-photo",className:r.btnSelectPhoto,onClick:()=>{h.current&&h.current.click()},"data-test":"edit-profile-picture-upload-file-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.CaHXXC",defaultMessage:"Select a photo from your computer",description:"edit profile picture panel: select photo label"})}))]}))})),0<(null==n?void 0:n.length)&&jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.recentlyBox},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle1",className:r.recentlyText},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.3gg72P",defaultMessage:"Recently Used Photos",description:"the label of recently used profile picture container"})})),jsxRuntime.exports.jsx(Grid$1,Object.assign({container:!0},{children:0<n.length&&n.map(e=>jsxRuntime.exports.jsx(Grid$1,Object.assign({xs:4,item:!0,className:r.imageGrid,"data-test":"recent-profile-picture"},{children:jsxRuntime.exports.jsx("img",{className:r.imgRecently,src:e,alt:"avatar"})}),e))}))]}))]}))]})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:r.actionButton+" "+r.editProfilePictureFooterButtons},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({color:"primary",onClick:()=>{o(""),s(void 0),c(!1),null!=e&&e()},className:classnames(r.btnAction,r.btnActionCancel),"data-test":"edit-profile-picture-cancel-button","data-testid":"edit-profile-picture-cancel-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.hdbMmi",defaultMessage:"Cancel",description:"the label of cancel button"})})),jsxRuntime.exports.jsx(Button$1,Object.assign({color:"primary",variant:"contained",id:"button-save-cropped-image",className:classnames(r.btnAction,r.btnSave),onClick:()=>{var e;a&&(e="avatar-"+(new Date).toISOString()+".jpeg",e=new File([a],e,{type:"image/jpeg"}),t(e),setTimeout(()=>{o(""),c(!1)},250))},"data-test":"edit-profile-picture-save-button"},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar-panel.tcZkqy",defaultMessage:"Save",description:"label of save button in edit profile picture panel"})}))]}))]}))})}var index_esm$1=Object.freeze({__proto__:null,AppList:AppList,EditProFilePicture:EditProFilePicture,VeritonePanel:SettingPanelComponent,applicationSelector:applicationSelector,getAppbarPanelModule:getAppbarPanelModule,requestGetApplications:requestGetApplications}),Close={},_interopRequireDefault$2=interopRequireDefault.exports,default_1$2=(Object.defineProperty(Close,"__esModule",{value:!0}),Close.default=void 0),_createSvgIcon$2=_interopRequireDefault$2(createSvgIcon),_jsxRuntime$2=jsxRuntime.exports,_default$2=(0,_createSvgIcon$2.default)((0,_jsxRuntime$2.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),default_1$2=Close.default=_default$2,Message={},_interopRequireDefault$1=interopRequireDefault.exports,default_1$1=(Object.defineProperty(Message,"__esModule",{value:!0}),Message.default=void 0),_createSvgIcon$1=_interopRequireDefault$1(createSvgIcon),_jsxRuntime$1=jsxRuntime.exports,_default$1=(0,_createSvgIcon$1.default)((0,_jsxRuntime$1.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"}),"Message"),default_1$1=Message.default=_default$1,Description={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(Description,"__esModule",{value:!0}),Description.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"}),"Description");function i(e){return(i="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 o(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 u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?c(e):t}function s(n){var r=function(){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}}();return function(){var e,t=u(n);return a(this,r?(e=u(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}var default_1=Description.default=_default,d="object"===("undefined"==typeof window||"undefined"==typeof window?"undefined":i(window)),f=d?document:{},v=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange"];function p(r,i){var o;return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o&&clearTimeout(o),o=setTimeout(function(){r.apply(void 0,t),o=null},i)}}function h(t,n){var r=0;return function(){var e=(new Date).getTime();if(!(e-r<n))return r=e,t.apply(void 0,arguments)}}var m=function(){var e=r,t=react.exports.Component;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&&l(e,t);var n=s(r);function r(e){var t;if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");if((t=n.call(this,e)).state={idle:!1,oldDate:+new Date,lastActive:+new Date,lastIdle:null,idleTime:0,remaining:null,pageX:null,pageY:null},t.tId=null,t.eventsBound=!1,0<e.debounce&&0<e.throttle)throw new Error("onAction can either be throttled or debounced (not both)");return 0<e.debounce?t._onAction=p(e.onAction,e.debounce):0<e.throttle?t._onAction=h(e.onAction,e.throttle):e.onAction?t._onAction=e.onAction:t._onAction=function(){},0<e.eventsThrottle?t._handleEvent=h(t._handleEvent.bind(c(t)),e.eventsThrottle):t._handleEvent=t._handleEvent.bind(c(t)),e.startOnMount||(t.state.idle=!0),t._toggleIdleState=t._toggleIdleState.bind(c(t)),t.reset=t.reset.bind(c(t)),t.pause=t.pause.bind(c(t)),t.resume=t.resume.bind(c(t)),t.isIdle=t.isIdle.bind(c(t)),t.getRemainingTime=t.getRemainingTime.bind(c(t)),t.getElapsedTime=t.getElapsedTime.bind(c(t)),t.getLastActiveTime=t.getLastActiveTime.bind(c(t)),t.getLastIdleTime=t.getLastIdleTime.bind(c(t)),t.getTotalIdleTime=t.getTotalIdleTime.bind(c(t)),t.getTotalActiveTime=t.getTotalActiveTime.bind(c(t)),t}return o(r.prototype,[{key:"componentDidMount",value:function(){this._bindEvents(),this.props.startOnMount&&this.reset()}},{key:"componentDidUpdate",value:function(e){e.debounce!==this.props.debounce&&(this._onAction=p(this._onAction,this.props.debounce)),e.throttle!==this.props.throttle&&(this._onAction=h(this._onAction,this.props.throttle)),e.eventsThrottle!==this.props.eventsThrottle&&(this._handleEvent=h(this._handleEvent,this.props.eventsThrottle)),e.timeout!==this.props.timeout&&null!==this.tid&&this.reset()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.tId),this._unbindEvents(!0)}},{key:"render",value:function(){return this.props.children||null}},{key:"_bindEvents",value:function(){var e,t,n,r,i,o=this;d&&(e=this.props,t=e.element,n=e.events,r=e.passive,i=e.capture,this.eventsBound||(n.forEach(function(e){t.addEventListener(e,o._handleEvent,{capture:i,passive:r})}),this.eventsBound=!0))}},{key:"_unbindEvents",value:function(){var e,t,n,r,i,o=this;d&&(e=this.props,t=e.element,n=e.events,r=e.passive,i=e.capture,(this.eventsBound||0<arguments.length&&void 0!==arguments[0]&&arguments[0])&&(n.forEach(function(e){t.removeEventListener(e,o._handleEvent,{capture:i,passive:r})}),this.eventsBound=!1))}},{key:"_toggleIdleState",value:function(r){var i=this;this.setState(function(e){return{idle:!e.idle,lastIdle:e.idle?e.lastIdle:+new Date-i.props.timeout,idleTime:e.idle?e.idleTime+ +new Date-e.lastIdle:e.idleTime}},function(){var e=i.props,t=e.onActive,n=e.onIdle,e=e.stopOnIdle;i.state.idle?(e&&(clearTimeout(i.tId),i.tId=null,i._unbindEvents()),n(r)):e||(i._bindEvents(),t(r))})}},{key:"_handleEvent",value:function(e){var t=this.state,n=t.remaining,r=t.pageX,i=t.pageY,t=t.idle,o=this.props,a=o.timeout,o=o.stopOnIdle;if(this._onAction(e),!n){if("mousemove"===e.type){if(e.pageX===r&&e.pageY===i)return;if(void 0===e.pageX&&void 0===e.pageY)return;if(this.getElapsedTime()<200)return}clearTimeout(this.tId),this.tId=null;n=+new Date-this.getLastActiveTime();(t&&!o||!t&&a<n)&&this._toggleIdleState(e),this.setState({lastActive:+new Date,pageX:e.pageX,pageY:e.pageY}),t&&o||(this.tId=setTimeout(this._toggleIdleState,a))}}},{key:"reset",value:function(){clearTimeout(this.tId),this.tId=null,this._bindEvents(),this.setState({idle:!1,oldDate:+new Date,lastActive:+new Date,remaining:null});var e=this.props.timeout;this.tId=setTimeout(this._toggleIdleState,e)}},{key:"pause",value:function(){null===this.state.remaining&&(this._unbindEvents(),clearTimeout(this.tId),this.tId=null,this.setState({remaining:this.getRemainingTime()}))}},{key:"resume",value:function(){var e=this.state,t=e.remaining,e=e.idle;null!==t&&(this._bindEvents(),e||(this.tId=setTimeout(this._toggleIdleState,t),this.setState({remaining:null,lastActive:+new Date})))}},{key:"getRemainingTime",value:function(){var e=this.state,t=e.remaining,e=e.lastActive,n=this.props.timeout;if(null!==t)return t<0?0:t;t=n-(+new Date-e);return t<0?0:t}},{key:"getElapsedTime",value:function(){var e=this.state.oldDate;return+new Date-e}},{key:"getLastIdleTime",value:function(){return this.state.lastIdle}},{key:"getTotalIdleTime",value:function(){var e=this.state,t=e.idle,n=e.lastIdle,e=e.idleTime;return t?+new Date-n+e:e}},{key:"getLastActiveTime",value:function(){return this.state.lastActive}},{key:"getTotalActiveTime",value:function(){return this.getElapsedTime()-this.getTotalIdleTime()}},{key:"isIdle",value:function(){return this.state.idle}}]),r}();function g(){function n(e){var t=!T.current;(T.current=t)?($&&(clearTimeout(O.current),O.current=null,V()),M.current=+new Date-k.current,N.current(e)):$||(A.current+=+new Date-M.current,D(),F.current(e))}function e(){if(null!==j.current)return j.current<0?0:j.current;var e=k.current-(+new Date-L.current);return e<0?0:e}function r(){return+new Date-E.current}function t(){return T.current?+new Date-M.current+A.current:A.current}function i(){return L.current}function o(){clearTimeout(O.current),O.current=null,D(),T.current=!1,E.current=+new Date,L.current=+new Date,j.current=null,O.current=setTimeout(n,k.current)}var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},s=a.timeout,l=void 0===s?12e5:s,s=a.element,c=void 0===s?f:s,s=a.events,u=void 0===s?v:s,s=a.onIdle,m=void 0===s?function(){}:s,s=a.onActive,g=void 0===s?function(){}:s,s=a.onAction,y=void 0===s?function(){}:s,s=a.debounce,x=void 0===s?0:s,s=a.throttle,C=void 0===s?0:s,s=a.eventsThrottle,b=void 0===s?200:s,s=a.startOnMount,H=void 0===s||s,s=a.stopOnIdle,$=void 0!==s&&s,s=a.capture,w=void 0===s||s,s=a.passive,S=void 0===s||s,_=react.exports.useRef(!1),T=react.exports.useRef(!0),E=react.exports.useRef(+new Date),j=react.exports.useRef(null),I=react.exports.useRef(null),R=react.exports.useRef(null),O=react.exports.useRef(null),L=react.exports.useRef(null),M=react.exports.useRef(null),A=react.exports.useRef(0),k=react.exports.useRef(l),N=react.exports.useRef(m),F=react.exports.useRef(g),B=react.exports.useRef(y),P=function(e){if(B.current(e),!j.current){if("mousemove"===e.type){if(e.pageX===I&&e.pageY===R)return;if(void 0===e.pageX&&void 0===e.pageY)return;if(r()<200)return}clearTimeout(O.current),O.current=null;var t=+new Date-i();(T.current&&!$||!T.current&&t>k.current)&&n(e),L.current=+new Date,I.current=e.pageX,R.current=e.pageY,T.current&&$||(O.current=setTimeout(n,k.current))}},D=function(){!d||_.current||(u.forEach(function(e){c.addEventListener(e,P,{capture:w,passive:S})}),_.current=!0)},V=function(){d&&(_.current||0<arguments.length&&void 0!==arguments[0]&&arguments[0])&&(u.forEach(function(e){c.removeEventListener(e,P,{capture:w,passive:S})}),_.current=!1)};return react.exports.useEffect(function(){if(0<x&&0<C)throw new Error("onAction can either be throttled or debounced (not both)");return 0<b&&(P=h(P,b)),D(),H&&o(),function(){clearTimeout(O.current),V(!0)}},[]),react.exports.useEffect(function(){N.current=m},[m]),react.exports.useEffect(function(){F.current=g},[g]),react.exports.useEffect(function(){B.current=0<x?p(y,x):0<C?h(y,C):y},[y]),react.exports.useEffect(function(){k.current=l,null!==O.current&&o()},[l]),{isIdle:function(){return T.current},pause:function(){null===j.current&&(V(),clearTimeout(O.current),O.current=null,j.current=e())},reset:o,resume:function(){null!==j.current&&(D(),T.current||(O.current=setTimeout(n,j.current),j.current=null,L.current=+new Date))},getLastIdleTime:function(){return M.current},getTotalIdleTime:t,getLastActiveTime:i,getTotalActiveTime:function(){return r()-t()},getElapsedTime:r,getRemainingTime:e}}m.propTypes={timeout:PropTypes.number,events:PropTypes.arrayOf(PropTypes.string),onIdle:PropTypes.func,onActive:PropTypes.func,onAction:PropTypes.func,debounce:PropTypes.number,throttle:PropTypes.number,eventsThrottle:PropTypes.number,element:PropTypes.oneOfType([PropTypes.object,PropTypes.element]),startOnMount:PropTypes.bool,stopOnIdle:PropTypes.bool,passive:PropTypes.bool,capture:PropTypes.bool},m.defaultProps={timeout:12e5,element:f,events:v,onIdle:function(){},onActive:function(){},onAction:function(){},debounce:0,throttle:0,eventsThrottle:200,startOnMount:!0,stopOnIdle:!1,capture:!0,passive:!0},g.propTypes={timeout:PropTypes.number,events:PropTypes.arrayOf(PropTypes.string),onIdle:PropTypes.func,onActive:PropTypes.func,onAction:PropTypes.func,debounce:PropTypes.number,throttle:PropTypes.number,eventsThrottle:PropTypes.number,element:PropTypes.oneOfType([PropTypes.object,PropTypes.element]),startOnMount:PropTypes.bool,stopOnIdle:PropTypes.bool,passive:PropTypes.bool,capture:PropTypes.bool},g.defaultProps={timeout:12e5,element:f,events:v,onIdle:function(){},onActive:function(){},onAction:function(){},debounce:0,throttle:0,eventsThrottle:200,startOnMount:!0,stopOnIdle:!1,capture:!0,passive:!0};var WidgetsStatus,tinycolor$1={exports:{}},tinycolor=(!function(e){function u(e,t){if(t=t||{},(e=e||"")instanceof u)return e;if(!(this instanceof u))return new u(e,t);var 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(w,"").replace(S,"").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=k.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=k.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=k.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=k.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=k.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=k.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=k.hex8.exec(e))return{r:g(t[1]),g:g(t[2]),b:g(t[3]),a:C(t[4]),format:n?"name":"hex8"};if(t=k.hex6.exec(e))return{r:g(t[1]),g:g(t[2]),b:g(t[3]),format:n?"name":"hex"};if(t=k.hex4.exec(e))return{r:g(t[1]+""+t[1]),g:g(t[2]+""+t[2]),b:g(t[3]+""+t[3]),a:C(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=k.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=v(e.s),i=v(e.v),t=function(e,t,n){e=6*h(e,360),t=h(t,100),n=h(n,100);var r=$.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=v(e.s),o=v(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,this._tc_id=_++}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(x(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 N(e){e=u(e).toHsl();return e.h=(e.h+180)%360,u(e)}function P(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 V(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 H(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 F(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),$.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 v(e){return e=e<=1?100*e+"%":e}function x(e){return $.round(255*parseFloat(e)).toString(16)}function C(e){return g(e)/255}function b(e){return k.CSS_UNIT.exec(e)}var $,w,S,_,T,E,j,I,R,O,L,M,A,k;$=Math,w=/^\s+/,S=/\s+$/,_=0,T=$.round,E=$.min,j=$.max,I=$.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:$.pow((.055+t)/1.055,2.4),n=n<=.03928?n/12.92:$.pow((.055+n)/1.055,2.4),e=e<=.03928?e/12.92:$.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(x(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(H,arguments)},complement:function(){return this._applyCombination(N,arguments)},monochromatic:function(){return this._applyCombination(F,arguments)},splitcomplement:function(){return this._applyCombination(V,arguments)},triad:function(){return this._applyCombination(P,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]:v(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($.max(e.getLuminance(),t.getLuminance())+.05)/($.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),M="[\\s|\\(]+("+(L="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+L+")[,|\\s]+("+L+")\\s*\\)?",A="[\\s|\\(]+("+L+")[,|\\s]+("+L+")[,|\\s]+("+L+")[,|\\s]+("+L+")\\s*\\)?",k={CSS_UNIT:new RegExp(L),rgb:new RegExp("rgb"+M),rgba:new RegExp("rgba"+A),hsl:new RegExp("hsl"+M),hsla:new RegExp("hsla"+A),hsv:new RegExp("hsv"+M),hsva:new RegExp("hsva"+A),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);function __rest(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(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(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const useStyles$2$1=makeStyles()((e,{titleColor:t,logo:n,activeColor:r},i)=>({appBar:{top:0,left:0,right:0,display:"flex",position:"fixed",boxShadow:"none",borderBottom:"0.5px solid "+e.palette.divider,["& ."+i.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,"-webkit-mask":`url("${img$1v}") no-repeat 50% 50%`,backgroundColor:t},appLogo:{display:"inline-block",width:150,height:32,backgroundImage:`url("${n}")`,backgroundRepeat:"no-repeat",backgroundPosition:"left center"},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"},["& ."+i.left]:{justifyContent:"flex-start"},["& ."+i.right]:{justifyContent:"flex-end"},["& ."+i.searchBarHolder]:{flexGrow:1},["& ."+i.appLogo]:{userSelect:"none"},["& ."+i.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:{"-webkit-mask":`url("${img$_}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},veritoneLogo:{"-webkit-mask":`url("${img$1u}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openPanel:{backgroundImage:`url("${img$19}") !important`},notificationIcon:{"-webkit-mask":`url("${img$2}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},applicationSettingsIcon:{"-webkit-mask":`url("${img$1o}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},dashboardIcon:{"-webkit-mask":`url("${img$4}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openNotificationPanel:{backgroundImage:`url(${img$18}) !important`},orgIcon:{borderRadius:"50%",width:30,height:30,backgroundRepeat:"no-repeat",backgroundPosition:"center"},logoIcon:{"-webkit-mask":`url("${n}") no-repeat 50% 50%`,backgroundColor:t},helpIcon:{"-webkit-mask":`url("${img$3}") no-repeat 50% 50%`,backgroundColor:t,"&:hover":{backgroundColor:t}},openHelp:{backgroundImage:`url(${img$17}) !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$1=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:{"-webkit-mask":`url("${img$3}") 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})=>{var a=useStyles$1$1()["classes"];const[s,l]=react.exports.useState(null);const c=()=>{l(null),null!=e&&e()};var u=n||r,d=null==(d=window.config)?void 0:d.appVersion;return jsxRuntime.exports.jsxs("div",Object.assign({className:a.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:a.barIcon,onClick:e=>{l(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(a.icon,a.helpIcon)})}))})),jsxRuntime.exports.jsx(Popover$1,Object.assign({open:Boolean(s),anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},onClose:c,className:a.popover,classes:{paper:a.popoverColor},disableScrollLock:!0},{children:jsxRuntime.exports.jsxs(List$2,Object.assign({disablePadding:!0,className:a.list},{children:[u&&jsxRuntime.exports.jsxs(ListItem$1,Object.assign({button:!0,onClick:()=>{c(),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(default_1,{})}),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:a.helpItemText}})]})),o&&jsxRuntime.exports.jsxs(ListItem$1,Object.assign({button:!0,onClick:()=>{null!=i&&i(),l(null)},"data-veritone-element":"open-support-chat-button","data-testid":"support-chat-button"},{children:[jsxRuntime.exports.jsx(ListItemIcon$1,{children:jsxRuntime.exports.jsx(default_1$1,{})}),jsxRuntime.exports.jsx(ListItemText$1,{primary:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.8aLpuV",defaultMessage:"Support Center",description:"help tooltip: text for documentation"}),classes:{root:a.helpItemText}})]})),d&&jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx(ListItem$1,Object.assign({className:a.versionWrapper},{children:jsxRuntime.exports.jsx(ListItemText$1,{primary:d,classes:{primary:a.versionText}})}))]})]}))}))]}))},namespace$1="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$3=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$3().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.exports.useState(t?5:60),[m,y]=react.exports.useState(new Date),[v,x]=react.exports.useState(),[C,b]=react.exports.useState(),[$,w]=react.exports.useState(!1),[S,_]=react.exports.useState(!1),T=react.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setIsIdle,value:e,ephemeral:!0,contentType:"json"}))},[n]),E=(react.exports.useEffect(()=>{n(getSessionTimeout(o))},[]),react.exports.useEffect(()=>{d&&window.location.replace("/")},[d]),react.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setCallLogout,value:e,ephemeral:!0,contentType:"json"}))},[n])),j=react.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setClickedLogout,value:e,ephemeral:!0,contentType:"json"}))},[n]),I=react.exports.useCallback(e=>{n(postNotificationCommand({eventType:aiwareEvent,command:notificationCommands.setCallResetIdleTimer,value:e,ephemeral:!0,contentType:"json"}))},[n]),R=react.exports.useCallback(()=>{logoutCallCounter++,E(!0);var e=l?500:5e3;n(logoutRequest({token:o})),setTimeout(()=>{window.location.href=a+"/#/?redirect="+window.location.href},t?2e3:e)},[E,n,o,a,l]);var O=react.exports.useCallback(()=>{logoutCallCounter++,T(!1),setTimeout(()=>{E(!0),j(!0),n(logoutRequest({token:o}))},500),setTimeout(()=>{window.location.href=a+"/#/?redirect="+window.location.href},500)},[E,n,o,a,j,T]);var L=()=>{T(!0),clearInterval(timer),timer=setInterval(()=>{h(e=>e-1)},1e3)},M=()=>{!r&&p<RESET_IDLE_TIMER_CALL_LIMIT&&I(!0)};const A=g(t?{timeout:5e3,onIdle:L,onAction:M,debounce:1e3}:{timeout:6e4*i,onIdle:L,onAction:M,debounce:i/4*6e4})["reset"],k=react.exports.useCallback(()=>{I(!1),A()},[I]),N=react.exports.useCallback(()=>{S&&(n(extendTokenRequest({token:o})),_(!1)),T(!1),k(),clearInterval(timer),setTimeout(()=>{h(t?5:60)},500)},[T,k,S,n,o]);return react.exports.useEffect(()=>{setTimeout(()=>{y(new Date)},1e3)},[m]),react.exports.useEffect(()=>{if(c){const e=new Date(c);e.setMinutes(e.getMinutes()-MINUTES_BEFORE_SESSION_EXPIRATION),b(new Date(c)),x(e)}},[c]),react.exports.useEffect(()=>{C&&C.getTime()<m.getTime()&&w(!0),v&&v.getTime()<m.getTime()&&_(!0)},[C,v,m]),react.exports.useEffect(()=>{$?R():S&&T(!0)},[C,v,S,$,R,T]),react.exports.useEffect(()=>{s&&logoutCallCounter<LOGOUT_CALL_LIMIT&&R()},[s,R]),react.exports.useEffect(()=>{r&&0===f&&(clearInterval(timer),setTimeout(()=>{h(10)},500),R())},[f,R,r]),react.exports.useEffect(()=>{!r&&u&&p===RESET_IDLE_TIMER_CALL_LIMIT&&k()},[u,r,p,k]),react.exports.useEffect(()=>{r||N()},[r,N]),jsxRuntime.exports.jsx(AIWareThemeProvider,{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:O,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:N,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,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,title:a,help:s,notification:l=!0,userApplicationSettingsIcon:c,onClickOrgIcon:u,closeButton:d,onCloseSetting:p,onClose:f,onOpenSetting:h,onOpenHelpCenter:m,onOpenNotification:g,onOpenUserApplicationSettings:y,openSetting:v,organization:x={},panels:C=[],unseenCount:b,searchBarMountId:$,textColor:w,rightActions:S=[],applications:_=[],onClickAppSwitchIcon:T,displaySupportChat:E=!0,onDashboardClick:j,showDashboardIcon:I=!1}){var R=tinycolor(o).isDark(),w=w||(R?"#fff":"#000"),R=R?"rgba(255,255,255,0.1)":"rgb(243,245,249)";const O=useStyles$2$1({titleColor:w,logo:i,activeColor:R})["classes"],[L,M]=react.exports.useState([]);R=useSelector(userSelector)||{};const[A,k]=react.exports.useState(!0);var{appIcon:R,currentUser:N}=getUserInfo(R),P=useSelector(betaFeaturesSelector);return react.exports.useEffect(()=>{var e=C.map(e=>e.panelId);!e.length&&!L.length||isEqual(e,L)||M(e)},[C,L]),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:O.appBar,style:{height:appBarHeight,background:o,zIndex:t}},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:O.menuButton},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({"data-test":"app-bar-menu","data-testid":"app-bar-menu",className:O.iconButton,onClick:r,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classnames(O.icon,O.hamburgerIcon)})}))})),!!R&&""!==R&&jsxRuntime.exports.jsx("div",Object.assign({className:O.margin},{children:jsxRuntime.exports.jsx("img",{className:O.appIcon,src:R,alt:"appIcon"})})),jsxRuntime.exports.jsxs("div",Object.assign({className:O.content,style:{color:w}},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:classnames(O.left,O.noSelect),onClick:function(){window.location.href="/"},"data-test":"appbarTitle","data-testid":"appbarTitle"},{children:i?jsxRuntime.exports.jsx("span",{className:O.appLogo}):jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:O.title},{children:a}))})),jsxRuntime.exports.jsx("div",{"data-test":"appbarSearch",id:$||"search-bar-id",className:O.searchBarHolder}),jsxRuntime.exports.jsx("div",Object.assign({className:O.right},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:O.controllers},{children:[0<S.length&&jsxRuntime.exports.jsx("div",Object.assign({className:classnames(O.iconGroup,O.noSelect)},{children:S.map(({label:e,onClick:t,isActive:n=!0},r)=>jsxRuntime.exports.jsx("div",Object.assign({className:O.iconGroupIcon},{children:jsxRuntime.exports.jsx("span",{onClick:e=>t?t(e):null,className:classnames(O.rightActionLabel,n?O.active:O.passive),dangerouslySetInnerHTML:{__html:e}})}),"label-"+r))})),I&&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:O.barIcon,onClick:j,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classnames(O.icon,O.dashboardIcon)})}))})),s&&jsxRuntime.exports.jsx("div",Object.assign({"data-test":"app-bar-help-container","data-testid":"app-bar-help-container",className:classnames(O.margin,{[O.panelActive]:L.includes(HELP_PANEL_ID)})},{children:jsxRuntime.exports.jsx(Help,{tooltipTitle:"",helpDocLabel:"View Help Docs",supportLabel:"Support Center",helpDocCallback:()=>{null!=m&&m()},supportCallback:p,titleColor:w,displaySupportChat:E})})),l&&jsxRuntime.exports.jsx("div",Object.assign({className:classnames(O.margin,{[O.panelActive]:L.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:O.barIcon,onClick:g,"data-test":"app-bar-notification-button",size:"large","data-testid":"app-bar-notification-button"},{children:jsxRuntime.exports.jsx(Badge$1,Object.assign({badgeContent:b,max:NOTIFICATION_BADGE_MAX_COUNT,color:"primary","data-test":"app-bar-notification-badge",className:O.notificationBadge},{children:jsxRuntime.exports.jsx("div",{className:classnames(O.icon,O.notificationIcon,{[O.openNotificationPanel]:null==v?void 0:v.openNotificationPanel})})}))}))}))})),P&&c&&jsxRuntime.exports.jsx("div",Object.assign({className:classnames(O.margin,{[O.panelActive]:L.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:O.barIcon,onClick:y,size:"large","data-testid":"app-bar-user-application-settings-button"},{children:jsxRuntime.exports.jsx("div",{className:classnames(O.icon,O.applicationSettingsIcon)})}))}))})),1<_.length&&jsxRuntime.exports.jsx("div",Object.assign({className:classnames({[O.panelActive]:L.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:O.barIcon,onClick:T,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classnames(O.icon,O.applicationIcon,{[O.openPanel]:null==v?void 0:v.openAppSwitchPanel})})}))}))})),(x.imageUrl||x.name)&&e&&jsxRuntime.exports.jsx("div",Object.assign({className:classnames(O.margin,{[O.panelActive]:L.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:O.barIcon+" "+O.orgButton,onClick:u,size:"large"},{children:x.imageUrl&&A?jsxRuntime.exports.jsx("img",{src:x.imageUrl,className:classnames(O.orgIcon),onError:function(){k(!1)},alt:"org_icon"}):jsxRuntime.exports.jsx(Avatar$1,Object.assign({className:O.smallOrgAvatar,variant:"circular","data-testid":"app-bar-avatar"},{children:getSortName(x.name||"")}))}))}))})),N&&jsxRuntime.exports.jsx("div",Object.assign({className:classnames({[O.panelActive]:L.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:O.barIcon,onClick:h,size:"large"},{children:jsxRuntime.exports.jsx("div",{className:classnames(O.icon,O.veritoneLogo,{[O.openPanel]:null==v?void 0:v.openVeritonePanel})})}))}))})),d&&f&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:jsxRuntime.exports.jsx(IconButton$1,Object.assign({onClick:f,"data-test":"app-bar-close-button",size:"large","data-testid":"app-bar-close-button"},{children:jsxRuntime.exports.jsx(default_1$2,{htmlColor:w})}))}))})]}))}))]}))]}))]})}const GET_CURRENT_USER=`os-app-bar/${namespace$1}/get current user`,GET_CURRENT_USER_SUCCESS=`os-app-bar/${namespace$1}/get current user success`,GET_CURRENT_USER_FAIL=`os-app-bar/${namespace$1}/get current user fail`,GET_CURRENT_APP_ICON=`os-app-bar/${namespace$1}/get current app icon`,GET_CURRENT_APP_ICON_SUCCESS=`os-app-bar/${namespace$1}/get app icon success`,getCurrentUser=()=>({type:GET_CURRENT_USER}),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$2={currentUser:{},fetched:!1,fetching:!1,error:!1};function userReducer(e,t){if(void 0===e)return initialState$2;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$1="aiWareHeaderBar",BOOTING="APP_BAR/booting",BOOTED="APP_BAR/booted",onBooted=()=>({type:BOOTED}),getApplicationInfo=(t,n,r)=>__awaiter(void 0,void 0,void 0,function*(){var e=`
|
|
1138
1150
|
query {
|
|
1139
1151
|
application(id:"${t}"){
|
|
1140
1152
|
iconUrl
|
|
@@ -1153,4 +1165,4 @@ createScheduledJob(input:{
|
|
|
1153
1165
|
}
|
|
1154
1166
|
}
|
|
1155
1167
|
}
|
|
1156
|
-
`,graphEndpoint:e,token:t})}catch(e){return{success:!1}}});function*getCurrentUserSaga(){var e=yield select(graphEndpointSelector),t=yield select(sessionTokenSelector),e=yield call$7(getCurrentUserApi,e,t);null!=e&&e.errors&&0<(null==e?void 0:e.errors.length)&&(null==(t=e.errors[0].path)||!t.includes("userSettings"))?console.error("getCurrentUser error"):(t=Object.assign(Object.assign({},null==(t=null==e?void 0:e.data)?void 0:t.me),{organizationRole:{organizationId:get$3(e,"data.me.organization.id","")},organization:Object.assign({},null==(e=null==(t=null==e?void 0:e.data)?void 0:t.me)?void 0:e.organization)}),yield put(getCurrentUserSuccess(t)))}function*getCurrentApplicationInfoSaga(e){var t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector),e=e.payload["applicationId"],e=yield call$7(getApplicationInfo,e,t,n);null!=e&&e.errors&&0<(null==e?void 0:e.errors.length)?console.error("getCurrentApplicationInfo error"):yield put(getCurrentAppIconSuccess(null==(n=null==(t=null==e?void 0:e.data)?void 0:t.application)?void 0:n.iconUrl))}function*userSaga(){yield all([takeEvery$1(GET_CURRENT_USER,getCurrentUserSaga)]),yield all([takeEvery$1(GET_CURRENT_APP_ICON,getCurrentApplicationInfoSaga)])}function*bootFunction(){yield take(BOOTED)}function*booting(){yield takeEvery$1(BOOTING,bootFunction)}function*logoutListener(e){const t=e.payload;for(;;)yield take(logout),t?null!==t&&void 0!==t&&t():yield put(logoutUser$1())}function*notificationActionClickedSaga(e){const t=e.payload;yield takeEvery$1(onNotificationActionClicked,function*(e){t&&(yield call$7(t,e.payload))})}function*handleAppSwitchListenerSetup(e){const t=e.payload;yield takeEvery$1(appSwitcherHandleClick,function*(e){e=e.payload;t?t(e):yield put(appSwitcherHandleClickAppNatively(e))})}function*rootSaga(){yield all([fork(userSaga),fork(booting),takeLatest$1(listenLogout,logoutListener),takeLatest$1(appSwitcherSetupListener,handleAppSwitchListenerSetup),takeLatest$1(initNotificationAction,notificationActionClickedSaga)])}function getAppbarModule(){return{id:"os-app-bar",reducerMap:{[nameSpace$1]:userReducer},sagas:[rootSaga],initialActions:[]}}function App(e){var{onLogout:t,onClickNotificationAction:n,onAppSwitch:r,onClickOrgIcon:i,showNotifications:o,applicationId:a,searchBarMountId:s}=e,e=__rest(e,["onLogout","onClickNotificationAction","onAppSwitch","onShowSettingPanel","onClickOrgIcon","onClickHelpIcon","showNotifications","applicationId","searchBarMountId"]);const l=useDispatch(),[c,u]=react.exports.useState(!1),[d,p]=react.exports.useState(!1),[f,h]=react.exports.useState(!1),[m,g]=react.exports.useState(!1),[y,v]=react.exports.useState(!1),[x,C]=react.exports.useState(!1);var b=(useSelector(userSelector)||{})["currentUser"];const{panels:$=[]}=useSelector(rootSelector);var w=useSelector(unseenNotificationSelector);const S=useSelector(notificationStatusSelector),_=useSelector(betaFeaturesSelector);b=(b||{}).organization;const T=useSelector(authSelector)["user"];var{application:E=[]}=useSelector(applicationSelector)||{};const[j,I]=react.exports.useState(!1);var R=_;const O=useSelector(appIdSelector),L=useSelector(selectApplicationConfig),[M,N]=react.exports.useState(!1);function A(){u(!1),h(!1),g(!1),p(!1),v(!1),C(!1)}function k(){null!==$&&void 0!==$&&$.forEach(e=>{l(hidePanel$1(e.panelId))})}return react.exports.useEffect(()=>{var e,t=window.location["search"];l(actions$2.userApplicationSettings.fetchApplicationConfigStart({appId:O})),"?panel=invite-requests"!==t||j||(I(!0),t={name:"INVITE_REQUESTS_PANEL",config:{name:"Invite Requests"}},e={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:0,size:"medium",zIndex:1001,parentPanelId:null,dimmed:0,dimmedStatus:"dimParent",header:{title:"INVITE REQUESTS"}},l(mountPanel$1({panelId:"INVITE_REQUESTS_PANEL",microFrontend:t,panelConfig:e})))},[]),react.exports.useEffect(()=>{null!==L&&void 0!==L&&L.length&&N(!0)},[L]),react.exports.useEffect(()=>{"success"===S&&l(markAllNotificationsSeenRequest())},[S,l]),react.exports.useEffect(()=>{l(getCurrentUser()),a&&l(getCurrentAppIcon({applicationId:a}))},[l,a]),react.exports.useEffect(()=>{l({type:listenLogout().type,payload:t})},[l,t]),react.exports.useEffect(()=>{n&&l(initNotificationAction(n))},[l,n]),react.exports.useEffect(()=>{l({type:appSwitcherSetupListener().type,payload:r})},[l,r]),react.exports.useEffect(()=>{l(onBooted())},[l]),react.exports.useEffect(()=>{$&&0!==$.length||A()},[$]),jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(lib$4.DynamicModuleLoader,Object.assign({modules:[getAppbarModule(),getAppbarPanelModule(),getNotificationModule$1(),getEventsModule(),getUserApplicationSettingsModule()]},{children:jsxRuntime.exports.jsx("div",Object.assign({className:"App",id:"aiware-app-bar","data-testid":"aiware-app-bar"},{children:jsxRuntime.exports.jsx(NewAppBar,Object.assign({isEnableOrgPanel:!1,onCloseSetting:function(){},onOpenSetting:function(){var e,t;c?(u(!1),k()):(A(),u(!0),k(),e={name:"APP_BAR_PANEL",config:{name:"Veritone",dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:VERITONE_PANEL_ID,type:"TAB_TEMPLATE",marginTop:55,withTab:!0,width:80,zIndex:1003,userRoles:null===T||void 0===T?void 0:T.roles,header:{divider:!0,title:""},footer:{logo:!0},size:"xlarge",fullScreen:!1},l(mountPanel$1({panelId:VERITONE_PANEL_ID,microFrontend:e,panelConfig:t})))},onOpenHelpCenter:function(){var e,t;d?(p(!1),k()):(A(),k(),p(!0),e={name:"HELP_PANEL",config:{name:"Help panel",dataId:"helpDataId",type:"SIMPLE_PANEL"}},t={panelId:HELP_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,size:"large",header:{divider:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.headerTitle.helpCenter",defaultMessage:"Help Center",description:"The header title for the help center."}),actions:[{iconUrl:img$O,action:{type:"OPEN_HELP_LINK"}}]}},l(mountPanel$1({panelId:HELP_PANEL_ID,microFrontend:e,panelConfig:t})))},onOpenNotification:function(){var e,t;null!=o&&o(),y?(v(!1),k()):(A(),k(),v(!0),e={name:"NOTIFICATION_PANEL",config:{name:"Notification Panel",dataId:"notificationDataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:413,header:{divider:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.panel.notifications",defaultMessage:"Notifications Center",description:"Title of the notifications center panel"}),actions:[]}},l(mountPanel$1({panelId:NOTIFICATION_PANEL_ID,microFrontend:e,panelConfig:t})))},onOpenUserApplicationSettings:function(){var e,t;x?(C(!1),k()):(A(),k(),C(!0),e={name:"USER_APPLICATION_SETTINGS_PANEL",config:{name:"User application settings",dataId:"userApplicationSettingsDataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:USER_APPLICATION_SETTINGS_PANEL,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:320,header:{divider:!1,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header.panelTitle.user-application-name-settings",defaultMessage:"Application Settings",description:"Title of user application name settings panel"})}},l(mountPanel$1({panelId:USER_APPLICATION_SETTINGS_PANEL,microFrontend:e,panelConfig:t})))},onDashboardClick:function(){console.log("HANDLE DASHBOARD CLICK!")},organization:b,onClickOrgIcon:function(){var e,t;null!=i&&i(),m?(g(!1),k()):(A(),k(),g(!0),e={name:"ORGANIZATION_PANEL",config:{name:"Veritone",tabId:TabId.ORGANIZATION_PANEL,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:ORGANIZATION_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:420,header:{divider:!0,title:"ORGANIZATIONS"}},l(mountPanel$1({panelId:ORGANIZATION_PANEL_ID,microFrontend:e,panelConfig:t})))},panels:$,searchBarMountId:s,openSetting:{openHelpPanel:!1,openNotificationPanel:!1,openAppSwitchPanel:!1,openOrgSwitchPanel:!1,openVeritonePanel:!1,openUserApplicationSettingsPanel:!1},unseenCount:w,onClickAppSwitchIcon:function(){var e,t;f?(h(!1),k()):(A(),k(),h(!0),e={name:"APP_BAR_PANEL",config:{name:"APP_BAR_PANEL",tabId:TabId.APP_PANEL,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:APPLICATION_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:_?720:420,header:{divider:!0,title:_?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header.panelTitle",defaultMessage:"App Switcher",description:"Title of applications panel list"}):jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header.panelTitle",defaultMessage:"Applications",description:"Title of applications panel list"})}},l(mountPanel$1({panelId:APPLICATION_PANEL_ID,microFrontend:e,panelConfig:t})))},applications:E,showDashboardIcon:R,userApplicationSettingsIcon:M},e))}))}))})})}const headerBarSelector=e=>null==e?void 0:e.aiWareHeaderBar,registry={[AvailableWidgets.APP_BAR]:App,[AvailableComponents.APP_BAR_PANEL]:SettingPanelComponent},registryLookup=n=>__awaiter$a(void 0,void 0,void 0,function*(){if(registry[n])return registry[n];let e,t=null;switch(n){case AvailableWidgets.SAMPLE_APP_BAR:e=yield import("./js-core.esm2.js"),t=e.SampleAppBar;break;case AvailableWidgets.RESET_PASSWORD:e=yield import("./js-core.esm4.js"),t=e.ResetPassword;break;case AvailableWidgets.FLOW_CENTER:e=yield import("./js-core.esm5.js"),t=e.App;break;case AvailableWidgets.FLOW_WIDGET:e=yield import("./js-core.esm7.js").then(function(e){return e.i}),t=e.App;break;case AvailableWidgets.ENGINE_CENTER_BROWSE:e=yield import("./js-core.esm17.js"),t=e.EngineCenterBrowse;break;case AvailablePanels.SIMPLE_PANEL:e=yield import("./js-core.esm24.js"),t=e.Panel;break;case AvailablePanels.APP_BAR_PANEL_TEMPLATE:e=yield import("./js-core.esm25.js"),t=e.AppbarPanel;break;case AvailablePanels.APP_BAR_TAB_PANEL_TEMPLATE:e=yield import("./js-core.esm25.js"),t=e.AppbarTabPanel;break;case AvailablePanels.TAB_TEMPLATE:e=yield import("./js-core.esm25.js"),t=e.TabPanel;break;case AvailableComponents.NOTIFICATION_PANEL:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationPanel;break;case AvailableComponents.NOTIFICATION_DETAIL:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationDetailPanel;break;case AvailableComponents.NOTIFICATION_SETTING:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationSetting;break;case AvailableComponents.NOTIFICATION_UTILITY:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationUtilityPanel;break;case AvailableComponents.NOTIFICATION_APPLICATION:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationApplication;break;case AvailableComponents.HELP_PANEL:e=yield Promise.resolve().then(function(){return index_esm}),t=e.HelpCenterPanel;break;case AvailableComponents.EDIT_PROFILE_PICTURE:e=yield Promise.resolve().then(function(){return index_esm$1}),t=e.EditProFilePicture;break;case AvailableComponents.TEST_COMPONENT:e=yield import("./js-core.esm24.js"),t=e.SamplePanel1;break;case AvailableComponents.TEST_COMPONENT2:e=yield import("./js-core.esm24.js"),t=e.SamplePanel2;break;case AvailableComponents.TEST_COMPONENT3:e=yield import("./js-core.esm24.js"),t=e.SamplePanel3;break;case AvailableComponents.SETTING_PREFERENCE:e=yield import("./js-core.esm28.js"),t=e.SettingsPreferencesPanel;break;case AvailableComponents.ORGANIZATION_PANEL:e=yield import("./js-core.esm26.js"),t=e.OrganizationPanel;break;case AvailableComponents.INVITE_USERS_PANEL:e=yield import("./js-core.esm26.js"),t=e.InviteUsersPanel;break;case AvailableComponents.INVITE_REQUESTS_PANEL:e=yield import("./js-core.esm26.js"),t=e.InviteRequestsPanel;break;case AvailableComponents.REVIEW_ORG_INVITE_PANEL:e=yield import("./js-core.esm26.js"),t=e.ReviewRequestPanel;break;case AvailableComponents.ADD_APPLICATIONS:e=yield import("./js-core.esm26.js"),t=e.AddApplicationsPanel;break;case AvailableComponents.DATA_CENTER_BROWSE:e=yield import("./js-core.esm29.js"),t=e.DataCenterBrowse;break;case AvailableComponents.DATA_CENTER_FOLDERS_AND_FILES:e=yield import("./js-core.esm29.js"),t=e.FoldersAndFilesPanel;break;case AvailableComponents.DATA_CENTER_FILE_INFO_PANEL:e=yield import("./js-core.esm29.js"),t=e.FileInfoPanel;break;case AvailableComponents.DATA_CENTER_IMPORTER:e=yield import("./js-core.esm33.js"),t=e.DataCenterImporter;break;case AvailableComponents.DATA_LABELER:e=yield import("./js-core.esm35.js"),t=e.DataLabelerPanel;break;case AvailableComponents.ADMIN_CENTER_OPEN_ID:e=yield import("./js-core.esm36.js"),t=e.AdminCenterOpenId;break;case AvailableComponents.ADMIN_CENTER_BROWSE:e=yield import("./js-core.esm37.js"),t=e.AdminCenterBrowse;break;case AvailableComponents.DATA_CENTER_PROCESS_AI:e=yield import("./js-core.esm39.js"),t=e.DataCenterProcessAI;break;case AvailableComponents.ENGINE_CENTER_NEW:e=yield import("./js-core.esm18.js").then(function(e){return e.k}),t=e.EngineCenterNew;break;case AvailableComponents.ENGINE_CENTER_FILTER:e=yield import("./js-core.esm17.js"),t=e.EngineCenterFilter;break;case AvailableComponents.ENGINE_CENTER_DETAILS:e=yield import("./js-core.esm17.js"),t=e.EngineDetails;break;case AvailableComponents.ENGINE_CENTER_NEW_BUILD:e=yield import("./js-core.esm17.js"),t=e.CreateNewBuildPanel;break;case AvailableComponents.ENGINE_CENTER_CUSTOM_FIELDS_FORM:e=yield import("./js-core.esm18.js").then(function(e){return e.k}),t=e.EngineCenterCustomFieldsForm;break;case AvailableComponents.ENGINE_CENTER_SCHEMAS_FORM_PANEL:e=yield import("./js-core.esm18.js").then(function(e){return e.k}),t=e.SchemasFormPanel;break;case AvailableComponents.ENGINE_CENTER_INPUT_TYPE_FLYOUT:e=yield import("./js-core.esm18.js").then(function(e){return e.k}),t=e.InputTypeFlyout;break;case AvailableComponents.ENGINE_CENTER_EDIT_RELEASE_NOTES:e=yield import("./js-core.esm17.js"),t=e.EditReleaseNotes;break;case AvailableComponents.ENGINE_CENTER_VERSION_HISTORY_PANEL:e=yield import("./js-core.esm17.js"),t=e.VersionHistoryPanel;break;case AvailableComponents.SUPPORTED_FILE_TYPES:e=yield import("./js-core.esm33.js"),t=e.SupportedFileTypes;break;case AvailableComponents.EDIT_FILE_METADATA:e=yield import("./js-core.esm33.js"),t=e.EditFileMetadata;break;case AvailableComponents.APP_CENTER_NEW:e=yield import("./js-core.esm40.js"),t=e.AppCenterNew;break;case AvailableComponents.APP_CENTER_ADD_FLOW_PANEL:e=yield import("./js-core.esm40.js"),t=e.AppCenterAddFlowPanel;break;case AvailableComponents.APP_CENTER_ADD_SCHEMA_PANEL:e=yield import("./js-core.esm40.js"),t=e.AppCenterAddSchemaPanel;break;case AvailableComponents.APP_CENTER_CONFIG_FIELDS_FORM:e=yield import("./js-core.esm40.js"),t=e.AppCenterConfigFieldsForm;break;case AvailableComponents.APP_CENTER_AUTOMATE_PALETTE_INTEGRATION_PANEL:e=yield import("./js-core.esm40.js"),t=e.AppCenterPaletteIntegrationPanel;break;case AvailableComponents.APP_CENTER_ADD_ENGINE_PANEL:e=yield import("./js-core.esm40.js"),t=e.AppCenterAddEnginePanel;break;case AvailableComponents.DATA_CENTER_ENGINE_SELECTION:e=yield import("./js-core.esm39.js"),t=e.DataCenterEngineSelection;break;case AvailableComponents.ADMIN_CENTER_NEW_GROUP_PANEL:e=yield import("./js-core.esm31.js").then(function(e){return e.a}),t=e.NewGroupPanel;break;case AvailableComponents.PERMISSIONS_PANEL:e=yield import("./js-core.esm30.js"),t=e.PermissionsPanel;break;case AvailableComponents.GROUP_INFO_PANEL:e=yield import("./js-core.esm30.js"),t=e.GroupInfoPanel;break;case AvailableComponents.NEW_PERMISSION_SET_PANEL:e=yield import("./js-core.esm30.js"),t=e.NewPermissionSetPanel;break;case AvailableComponents.PERMISSION_SET_DETAILS_PANEL:e=yield import("./js-core.esm30.js"),t=e.PermissionSetDetailsPanel;break;case AvailableComponents.DATA_CENTER_MDP_IFRAME_PANEL:e=yield import("./js-core.esm29.js"),t=e.MediaDetailsPanelIframe;break;case AvailableComponents.DATA_CENTER_INGESTION_CREATION_PANEL:e=yield import("./js-core.esm29.js"),t=e.IngestionCreationPanel;break;case AvailableComponents.DATA_CENTER_SOURCE_CREATION_PANEL:e=yield import("./js-core.esm29.js"),t=e.SourceCreationPanel;break;case AvailableComponents.ADMIN_CENTER_GROUP_DETAILS_PANEL:e=yield import("./js-core.esm31.js").then(function(e){return e.a}),t=e.GroupDetailsPanel;break;case AvailableComponents.ADMIN_CENTER_ADD_MEMBER_PANEL:e=yield import("./js-core.esm31.js").then(function(e){return e.a}),t=e.AddMemberPanel;break;case AvailableComponents.APPLICATION_DETAILS_PANEL:e=yield import("./js-core.esm38.js"),t=e.ApplicationDetailsPanel;break;case AvailableComponents.PROCESSING_CENTER_SOURCES:e=yield import("./js-core.esm41.js"),t=e.ProcessingCenterSources;break;case AvailableComponents.USER_APPLICATION_SETTINGS_PANEL:e=yield Promise.resolve().then(function(){return index_esm$3}),t=e.UserApplicationSettingsPanel}return registry[n]=t}),registerComponent=(e,t)=>{registry[e]=t},WIDGETS_FEATURE_KEY="widgets",initialState$1=(!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)=>{const n=e.find(e=>e.widgetName===t);null!==n&&void 0!==n&&n.onComplete&&n.onComplete()},{name,reducer,actions:{mountWidget:mountWidget$1,mountWidgetSuccess,mountWidgetError,unmountWidget:unmountWidget$1,unmountWidgetSuccess,unmountWidgetFailure,triggerWidgetCallback,triggerWidgetCallbackSuccess}}=createSlice({name:WIDGETS_FEATURE_KEY,initialState:initialState$1,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}}});function*mountWidgetListenerSaga(){yield takeEvery$1(mountWidget$1({}).type,function*(e){try{var{widgetConfig:t={},widgetName:n,elementId:r}=null==e?void 0:e.payload,i=(yield call$7(registryLookup,n))||(()=>jsxRuntime.exports.jsx("div",{children:"Component Not Found."}));const o=getElement(r,n);o.classList.add("aiware-el"),ReactDOM.render(jsxRuntime.exports.jsx(CacheProvider,Object.assign({value:muiCache},{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(Provider$1,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(i,Object.assign({},t))}))})})),o),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(unmountWidget$1("").type,function*(n){try{var e=yield select(e=>{const t=widgetsSelector(e);return(null==(e=t.find(e=>e.widgetId===n.payload))?void 0:e.elementId)||""});ReactDOM.unmountComponentAtNode(document.getElementById(e)||new DocumentFragment),yield put(unmountWidgetSuccess(n.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(){return{id:name,reducerMap:{[name]:reducer},sagas:[mountWidgetListenerSaga],initialActions:[]}}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:[]}}var match,version,store,wmget,wmhas,wmset,set,get,has,STATE,activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,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$b=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$b=function(e){try{return!!e()}catch(e){return!0}},fails$a=fails$b,descriptors=!fails$b(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$9=fails$b,functionBindNative=!fails$b(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$1=functionBindNative,call$6=Function.prototype.call,functionCall=NATIVE_BIND$1?call$6.bind(call$6):function(){return call$6.apply(call$6,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$1&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$3=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$1(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND=functionBindNative,FunctionPrototype$1=Function.prototype,bind=FunctionPrototype$1.bind,call$5=FunctionPrototype$1.call,uncurryThis$c=NATIVE_BIND&&bind.bind(call$5,call$5),functionUncurryThis=NATIVE_BIND?function(e){return e&&uncurryThis$c(e)}:function(e){return e&&function(){return call$5.apply(e,arguments)}},uncurryThis$b=functionUncurryThis,toString$3=uncurryThis$b({}.toString),stringSlice=uncurryThis$b("".slice),classofRaw$1=function(e){return stringSlice(toString$3(e),8,-1)},uncurryThis$a=functionUncurryThis,fails$8=fails$b,classof$3=classofRaw$1,$Object$4=Object,split=functionUncurryThis("".split),indexedObject=fails$8(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$3(e)?split(e,""):$Object$4(e)}:$Object$4,$TypeError$7=TypeError,requireObjectCoercible$3=function(e){if(null==e)throw $TypeError$7("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$2=requireObjectCoercible$3,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$2(e))},isCallable$f=function(e){return"function"==typeof e},isCallable$e=isCallable$f,isObject$6=function(e){return"object"==typeof e?null!==e:isCallable$e(e)},global$a=global$b,isCallable$d=isCallable$f,aFunction=function(e){return isCallable$d(e)?e:void 0},getBuiltIn$4=function(e,t){return arguments.length<2?aFunction(global$a[e]):global$a[e]&&global$a[e][t]},uncurryThis$9=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),getBuiltIn$3=getBuiltIn$4,engineUserAgent=getBuiltIn$4("navigator","userAgent")||"",global$9=global$b,userAgent=engineUserAgent,process$1=global$9.process,Deno=global$9.Deno,versions=process$1&&process$1.versions||Deno&&Deno.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent&&(!(match=userAgent.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION=version,fails$7=fails$b,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$7(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION&&V8_VERSION<41}),NATIVE_SYMBOL$1=nativeSymbol,useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$2=getBuiltIn$4,isCallable$c=isCallable$f,isPrototypeOf=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$2("Symbol");return isCallable$c(t)&&isPrototypeOf(t.prototype,$Object$3(e))},$String$3=String,tryToString$1=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$b=isCallable$f,tryToString=tryToString$1,$TypeError$6=TypeError,aCallable$1=function(e){if(isCallable$b(e))return e;throw $TypeError$6(tryToString(e)+" is not a function")},aCallable=aCallable$1,getMethod$1=function(e,t){e=e[t];return null==e?void 0:aCallable(e)},call$4=functionCall,isCallable$a=isCallable$f,isObject$5=isObject$6,$TypeError$5=TypeError,ordinaryToPrimitive$1=function(e,t){var n,r;if("string"===t&&isCallable$a(n=e.toString)&&!isObject$5(r=call$4(n,e)))return r;if(isCallable$a(n=e.valueOf)&&!isObject$5(r=call$4(n,e)))return r;if("string"!==t&&isCallable$a(n=e.toString)&&!isObject$5(r=call$4(n,e)))return r;throw $TypeError$5("Can't convert object to primitive value")},shared$3={exports:{}},global$8=global$b,defineProperty$5=Object.defineProperty,defineGlobalProperty$3=function(t,n){try{defineProperty$5(global$8,t,{value:n,configurable:!0,writable:!0})}catch(e){global$8[t]=n}return n},global$7=global$b,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$b[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$1=((shared$3.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$3),$Object$2=Object,toObject$3=function(e){return $Object$2(requireObjectCoercible$1(e))},uncurryThis$8=functionUncurryThis,toObject$2=toObject$3,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$2(e),t)},uncurryThis$7=functionUncurryThis,id=0,postfix=Math.random(),toString$2=uncurryThis$7(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$2(++id+postfix,36)},global$6=global$b,shared$2=shared$3.exports,hasOwn$8=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$2("wks"),Symbol$1=global$6.Symbol,symbolFor=Symbol$1&&Symbol$1.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$a=function(e){var t;return hasOwn$8(WellKnownSymbolsStore,e)&&(NATIVE_SYMBOL||"string"==typeof WellKnownSymbolsStore[e])||(t="Symbol."+e,NATIVE_SYMBOL&&hasOwn$8(Symbol$1,e)?WellKnownSymbolsStore[e]=Symbol$1[e]:WellKnownSymbolsStore[e]=(USE_SYMBOL_AS_UID&&symbolFor?symbolFor:createWellKnownSymbol)(t)),WellKnownSymbolsStore[e]},call$3=functionCall,isObject$4=isObject$6,isSymbol$1=isSymbol$2,getMethod=getMethod$1,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$9=wellKnownSymbol$a,$TypeError$4=TypeError,TO_PRIMITIVE=wellKnownSymbol$a("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$4(e)||isSymbol$1(e))return e;var n=getMethod(e,TO_PRIMITIVE);if(n){if(n=call$3(n,e,t=void 0===t?"default":t),!isObject$4(n)||isSymbol$1(n))return n;throw $TypeError$4("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$5=global$b,isObject$3=isObject$6,document$1=global$b.document,EXISTS$1=isObject$3(document$1)&&isObject$3(document$1.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$1.createElement(e):{}},DESCRIPTORS$9=descriptors,fails$6=fails$b,createElement=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$b(function(){return 7!=Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$8=descriptors,call$2=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$2=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1=toPropertyKey$2,hasOwn$7=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$8?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$7(e,t))return createPropertyDescriptor$2(!call$2(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$7=descriptors,fails$5=fails$b,v8PrototypeDefineBug=descriptors&&fails$b(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$2=isObject$6,$String$2=String,$TypeError$3=TypeError,anObject$5=function(e){if(isObject$2(e))return e;throw $TypeError$3($String$2(e)+" is not an object")},DESCRIPTORS$6=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$4=anObject$5,toPropertyKey=toPropertyKey$2,$TypeError$2=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$5=(objectDefineProperty.f=DESCRIPTORS$6?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,n){var r;return anObject$4(e),t=toPropertyKey(t),anObject$4(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$4(e),t=toPropertyKey(t),anObject$4(n),IE8_DOM_DEFINE)try{return $defineProperty(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $TypeError$2("Accessors not supported");return"value"in n&&(e[t]=n.value),e},descriptors),definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$3,createNonEnumerableProperty$4=DESCRIPTORS$5?function(e,t,n){return definePropertyModule$3.f(e,t,createPropertyDescriptor$1(1,n))}:function(e,t,n){return e[t]=n,e},makeBuiltIn$2={exports:{}},DESCRIPTORS$4=descriptors,hasOwn$6=hasOwnProperty_1,FunctionPrototype=Function.prototype,getDescriptor=DESCRIPTORS$4&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$6(FunctionPrototype,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$4||getDescriptor(FunctionPrototype,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$6=functionUncurryThis,isCallable$9=isCallable$f,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$2=(isCallable$9(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$4=global$b,isCallable$8=isCallable$f,inspectSource$1=inspectSource$2,WeakMap$1=global$b.WeakMap,nativeWeakMap=isCallable$8(WeakMap$1)&&/native code/.test(inspectSource$1(WeakMap$1)),shared$1=shared$3.exports,uid=uid$2,keys=shared$1("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=nativeWeakMap,global$3=global$b,uncurryThis$5=functionUncurryThis,isObject$1=isObject$6,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$5=hasOwnProperty_1,shared=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$1=global$3.TypeError,WeakMap$2=global$3.WeakMap,enforce=function(e){return has(e)?get(e):set(e,{})},getterFor=function(t){return function(e){if(isObject$1(e)&&(e=get(e)).type===t)return e;throw TypeError$1("Incompatible receiver, "+t+" required")}},internalState=(has=NATIVE_WEAK_MAP||shared.state?(store=shared.state||(shared.state=new WeakMap$2),wmget=uncurryThis$5(store.get),wmhas=uncurryThis$5(store.has),wmset=uncurryThis$5(store.set),set=function(e,t){if(wmhas(store,e))throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);return t.facade=e,wmset(store,e,t),t},get=function(e){return wmget(store,e)||{}},function(e){return wmhas(store,e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set=function(e,t){if(hasOwn$5(e,STATE))throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$3(e,STATE,t),t},get=function(e){return hasOwn$5(e,STATE)?e[STATE]:{}},function(e){return hasOwn$5(e,STATE)}),{set:set,get:get,has:has,enforce:enforce,getterFor:getterFor}),fails$4=fails$b,isCallable$7=isCallable$f,hasOwn$4=hasOwnProperty_1,DESCRIPTORS$3=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource=inspectSource$2,InternalStateModule$1=internalState,enforceInternalState=InternalStateModule$1.enforce,getInternalState$1=InternalStateModule$1.get,defineProperty$4=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$3&&!fails$4(function(){return 8!==defineProperty$4(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$1=makeBuiltIn$2.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hasOwn$4(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$3?defineProperty$4(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&n&&hasOwn$4(n,"arity")&&e.length!==n.arity&&defineProperty$4(e,"length",{value:n.arity});try{n&&hasOwn$4(n,"constructor")&&n.constructor?DESCRIPTORS$3&&defineProperty$4(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}n=enforceInternalState(e);return hasOwn$4(n,"source")||(n.source=TEMPLATE.join("string"==typeof t?t:"")),e},isCallable$6=(Function.prototype.toString=makeBuiltIn$1(function(){return isCallable$7(this)&&getInternalState$1(this).source||inspectSource(this)},"toString"),isCallable$f),definePropertyModule$2=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.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$6(n)&&makeBuiltIn(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$2.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$1=function(e){return toLength(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike=lengthOfArrayLike$1,createMethod=function(s){return function(e,t,n){var r,i=toIndexedObject$3(e),o=lengthOfArrayLike(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$4=functionUncurryThis,hasOwn$3=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push=uncurryThis$4([].push),objectKeysInternal=function(e,t){var n,r=toIndexedObject$2(e),i=0,o=[];for(n in r)!hasOwn$3(hiddenKeys$2,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$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$1=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$4),uncurryThis$3=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$3=anObject$5,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$1("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$3(e)),n=getOwnPropertySymbolsModule$1.f;return n?concat$1(t,n(e)):t},hasOwn$2=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$1=function(e,t,n){for(var r=ownKeys(t),i=definePropertyModule$1.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$3=fails$b,isCallable$5=isCallable$f,replacement=/#|\.prototype\./,isForced$1=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$5(t)?fails$3(t):!!t)},normalize=isForced$1.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$1.data={},NATIVE=isForced$1.NATIVE="N",POLYFILL=isForced$1.POLYFILL="P",isForced_1=isForced$1,global$2=global$b,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$2=createNonEnumerableProperty$4,defineBuiltIn$2=defineBuiltIn$3,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=copyConstructorProperties$1,isForced=isForced_1,_export=function(e,t){var n,r,i,o=e.target,a=e.global,s=e.stat,l=a?global$2:s?global$2[o]||defineGlobalProperty(o,{}):(global$2[o]||{}).prototype;if(l)for(n in t){if(r=t[n],i=e.dontCallGetSet?(i=getOwnPropertyDescriptor(l,n))&&i.value:l[n],!isForced(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$2(r,"sham",!0),defineBuiltIn$2(l,n,r,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$2=descriptors,uncurryThis$2=functionUncurryThis,call$1=functionCall,fails$2=fails$b,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$1=toObject$3,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$3=Object.defineProperty,concat=uncurryThis$2([].concat),objectAssign=!$assign||fails$2(function(){if(DESCRIPTORS$2&&1!==$assign({b:1},$assign(defineProperty$3({},"a",{enumerable:!0,get:function(){defineProperty$3(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[n]||objectKeys$1($assign({},t)).join("")!=r})?function(e,t){for(var n=toObject$1(e),r=arguments.length,i=1,o=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;i<r;)for(var s,l=IndexedObject(arguments[i++]),c=o?concat(objectKeys$1(l),o(l)):objectKeys$1(l),u=c.length,d=0;d<u;)s=c[d++],DESCRIPTORS$2&&!call$1(a,l,s)||(n[s]=l[s]);return n}:$assign,$$2=_export,assign=objectAssign,objectDefineProperties=(_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign}),{}),DESCRIPTORS$1=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$2=anObject$5,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn=(objectDefineProperties.f=DESCRIPTORS$1&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$2(e);for(var n,r=toIndexedObject$1(t),i=objectKeys(t),o=i.length,a=0;a<o;)definePropertyModule.f(e,n=i[a++],r[n]);return e},getBuiltIn$4),html$1=getBuiltIn$4("document","documentElement"),anObject$1=anObject$5,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html=html$1,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$3,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.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.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var n;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$1(e),n=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,n[IE_PROTO$1]=e):n=NullProtoObject(),void 0===t?n:definePropertiesModule.f(n,t)}),wellKnownSymbol$8=wellKnownSymbol$a,create$1=objectCreate,defineProperty$2=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$8("unscopables"),ArrayPrototype=Array.prototype,addToUnscopables$1=(null==ArrayPrototype[UNSCOPABLES]&&defineProperty$2(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create$1(null)}),function(e){ArrayPrototype[UNSCOPABLES][e]=!0}),iterators={},fails$1=fails$b,correctPrototypeGetter=!fails$b(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$1=hasOwnProperty_1,isCallable$4=isCallable$f,toObject=toObject$3,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object$1=Object,ObjectPrototype=$Object$1.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object$1.getPrototypeOf:function(e){e=toObject(e);if(hasOwn$1(e,IE_PROTO))return e[IE_PROTO];var t=e.constructor;return isCallable$4(t)&&e instanceof t?t.prototype:e instanceof $Object$1?ObjectPrototype:null},fails=fails$b,isCallable$3=isCallable$f,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$1=defineBuiltIn$3,wellKnownSymbol$7=wellKnownSymbol$a,ITERATOR$2=wellKnownSymbol$a("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),null==IteratorPrototype$2||fails(function(){var e={};return IteratorPrototype$2[ITERATOR$2].call(e)!==e})),iteratorsCore=(isCallable$3((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$2])||defineBuiltIn$1(IteratorPrototype$2,ITERATOR$2,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$1=objectDefineProperty.f,hasOwn=hasOwnProperty_1,wellKnownSymbol$6=wellKnownSymbol$a,TO_STRING_TAG$3=wellKnownSymbol$a("toStringTag"),setToStringTag$2=function(e,t,n){(e=e&&!n?e.prototype:e)&&!hasOwn(e,TO_STRING_TAG$3)&&defineProperty$1(e,TO_STRING_TAG$3,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create=objectCreate,createPropertyDescriptor=createPropertyDescriptor$3,setToStringTag$1=setToStringTag$2,Iterators$2=iterators,returnThis$1=function(){return this},createIteratorConstructor$1=function(e,t,n,r){t+=" Iterator";return e.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor(+!r,n)}),setToStringTag$1(e,t,!1),Iterators$2[t]=returnThis$1,e},isCallable$2=isCallable$f,$String$1=String,$TypeError$1=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$2(e))return e;throw $TypeError$1("Can't set "+$String$1(e)+" as a prototype")},uncurryThis$1=functionUncurryThis,anObject=anObject$5,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=uncurryThis$1(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return anObject(e),aPossiblePrototype(t),r?n(e,t):e.__proto__=t,e}}():void 0),$$1=_export,call=functionCall,FunctionName=functionName,isCallable$1=isCallable$f,createIteratorConstructor=createIteratorConstructor$1,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$2,createNonEnumerableProperty$1=createNonEnumerableProperty$4,defineBuiltIn=defineBuiltIn$3,wellKnownSymbol$5=wellKnownSymbol$a,Iterators$1=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$1=wellKnownSymbol$5("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator$1=function(e,t,n,r,i,o,a){createIteratorConstructor(n,t,r);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)}}var l,c,r=t+" Iterator",u=!1,d=e.prototype,p=d[ITERATOR$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?setPrototypeOf(h,IteratorPrototype):isCallable$1(h[ITERATOR$1])||defineBuiltIn(h,ITERATOR$1,returnThis)),setToStringTag(h,r,!0)),PROPER_FUNCTION_NAME&&i==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(d,"name",VALUES):(u=!0,f=function(){return call(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(d,c,l[c]);else $$1({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return d[ITERATOR$1]!==f&&defineBuiltIn(d,ITERATOR$1,f,{name:i}),Iterators$1[t]=f,l},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$1,Iterators=iterators,InternalStateModule=internalState,defineProperty=objectDefineProperty.f,defineIterator=defineIterator$1,DESCRIPTORS=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),values=Iterators.Arguments=Iterators.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS&&"values"!==values.name)try{defineProperty(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},documentCreateElement=documentCreateElement$2,classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$1=global$b,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$4,wellKnownSymbol$4=wellKnownSymbol$a,ITERATOR=wellKnownSymbol$4("iterator"),TO_STRING_TAG$2=wellKnownSymbol$4("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR]!==ArrayValues)try{createNonEnumerableProperty(t,ITERATOR,ArrayValues)}catch(e){t[ITERATOR]=ArrayValues}if(t[TO_STRING_TAG$2]||createNonEnumerableProperty(t,TO_STRING_TAG$2,e),DOMIterables[e])for(var n in ArrayIteratorMethods)if(t[n]!==ArrayIteratorMethods[n])try{createNonEnumerableProperty(t,n,ArrayIteratorMethods[n])}catch(e){t[n]=ArrayIteratorMethods[n]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$1[COLLECTION_NAME]&&global$1[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var isObject=isObject$6,classof$2=classofRaw$1,wellKnownSymbol$3=wellKnownSymbol$a,MATCH$1=wellKnownSymbol$a("match"),isRegexp=function(e){var t;return isObject(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$2(e))},isRegExp=isRegexp,$TypeError=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError("The method doesn't accept regular expressions");return e},wellKnownSymbol$2=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=isCallable$f,classofRaw=classofRaw$1,wellKnownSymbol$1=wellKnownSymbol$a,TO_STRING_TAG=wellKnownSymbol$a("toStringTag"),$Object=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$1=TO_STRING_TAG_SUPPORT?classofRaw: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(e):"Object"==(t=classofRaw(e))&&isCallable(e.callee)?"Arguments":t},classof=classof$1,$String=String,toString$1=function(e){if("Symbol"===classof(e))throw TypeError("Cannot convert a Symbol value to a string");return $String(e)},wellKnownSymbol=wellKnownSymbol$a,MATCH=wellKnownSymbol$a("match"),correctIsRegexpLogic=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[MATCH]=!1,"/./"[t](n)}catch(e){}}return!1},$=_export,uncurryThis=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible=requireObjectCoercible$3,toString=toString$1,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=functionUncurryThis("".indexOf);$({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString(requireObjectCoercible(this)),toString(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}});const clickAwayListener=e=>{var t=null==(t=null==(n=null==e?void 0:e.path)?void 0:n.find)?void 0:t.call(n,e=>{var t;return(null==(t=null==e?void 0:e.id)?void 0:t.toLowerCase().includes("aiware-app-bar"))||(null==(t=null==e?void 0:e.id)?void 0:t.toLowerCase().includes("panel"))||(null==(t=null==e?void 0:e.id)?void 0:t.includes("APP_BAR"))||(null==(t=null==e?void 0:e.id)?void 0:t.includes("undefined"))||(null==(t=null==e?void 0:e.id)?void 0:t.includes("-root"))||(null==(t=null==(e=null==(t=null==e?void 0:e.attributes)?void 0:t.role)?void 0:e.value)?void 0:t.includes("presentation"))}),n="BODY"===(null==(e=null==(n=null==e?void 0:e.path)?void 0:n[0])?void 0:e.tagName);t||n||store$4.dispatch(unmountAllPanel$1("null"))};class RefHolder extends react.exports.Component{render(){return jsxRuntime.exports.jsx("div",{children:this.props.children})}}const rootPostfix="root";function mountPanelListenerSagaGenerator(p,f){return function*(){yield takeEvery$1(mountPanel$1({}).type,function*(e){const{panelId:t,microFrontend:{name:n},panelConfig:r}=null==e?void 0:e.payload;let i=null,o=void 0;f&&(o=yield call$7(f,r.type),i=yield call$7(f,n));var a,s,l,c,e=i||p[n]||(()=>jsxRuntime.exports.jsx("div",{children:"Component Not Found."})),u=o||p[r.type];r.parent&&({panelConfig:{marginTop:a=0,marginStart:s=0,zIndex:l=1e3},panelId:c}=yield select(e=>e.panels.find(e=>e.panelId===r.parent)),c=(null==(c=null===document||void 0===document?void 0:document.getElementById(c))?void 0:c.clientWidth)||650,r.marginTop=r.marginTop||a,r.marginStart=r.marginStart||s+c,r.zIndex=r.zIndex||l);const d=getElement(t+"-"+rootPostfix);d.classList.add("aiware-el"),ReactDOM.render(jsxRuntime.exports.jsx(CacheProvider,Object.assign({value:muiCache},{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(Provider$1,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(ClickAwayListener,Object.assign({onClickAway:clickAwayListener},{children:jsxRuntime.exports.jsx(RefHolder,{children:jsxRuntime.exports.jsx(u,Object.assign({type:"SIMPLE_PANEL",panelId:t,"data-test":"panel-"+t},{children:jsxRuntime.exports.jsx(e,{})}))})}))}))})})),d)}),yield takeEvery$1(unmountPanel$1("").type,function*(t){var e=yield select(e=>e.panels.find(e=>{return(null==(e=null==e?void 0:e.panelConfig)?void 0:e.parentPanelId)===t.payload}));e&&0<Object.keys(e).length&&(yield put(unmountPanel$1(e.panelId))),ReactDOM.unmountComponentAtNode(document.getElementById(t.payload+"-"+rootPostfix)||new DocumentFragment)}),yield takeEvery$1(openLinkOnNewTab({url:""}).type,function(e){e=null==(e=null==e?void 0:e.payload)?void 0:e.url;const t=document.createElement("a");t.target="_blank",t.href=e,t.click()})}}function getPanelsModule(e,t){return{id:name$1,reducerMap:{panels:(t,{type:e,payload:n})=>{switch(e){case mountPanel$1({}).type:{const o=[...t];n.panelConfig.show=!0;var r=n.panelConfig;const a=null==r?void 0:r.parentPanelId;var r=null==r?void 0:r.dimmedStatus;return"dimAllParents"===r?[...o.map(e=>{return Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},e.panelConfig),{dimmed:((null==(e=e.panelConfig)?void 0:e.dimmed)||0)+1})})}),n]:a&&r?(r=t.findIndex(e=>e.panelId===a),o[r]=Object.assign(Object.assign({},o[r]),{panelConfig:Object.assign(Object.assign({},null==(i=o[r])?void 0:i.panelConfig),{dimmed:((null==(r=null==(i=o[r])?void 0:i.panelConfig)?void 0:r.dimmed)||0)+1})}),[...o,n]):[...t,n]}case unmountPanel$1("").type:{r=null==(i=t.find(e=>e.panelId===n))?void 0:i.panelConfig;const s=null==r?void 0:r.parentPanelId;var i=null==r?void 0:r.dimmedStatus;const l=t.filter(e=>e.panelId!==n);return"dimAllParents"===i?l.map(e=>{return Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},e.panelConfig),{dimmed:((null==(e=e.panelConfig)?void 0:e.dimmed)||0)-1})})}):(s&&i&&-1!==(r=t.findIndex(e=>e.panelId===s))&&(l[r]=Object.assign(Object.assign({},l[r]),{panelConfig:Object.assign(Object.assign({},l[r].panelConfig),{dimmed:((null==(i=l[r].panelConfig)?void 0:i.dimmed)||0)-1})})),l)}case hidePanel$1("").type:{let e=t.find(e=>e.panelId===n);r=t.filter(e=>e.panelId!==n);return e=Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},null===e||void 0===e?void 0:e.panelConfig),{show:!1})}),[...r,e]}case unmountAllPanel$1("").type:return t.map(e=>Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},null==e?void 0:e.panelConfig),{show:!1})}));case updatePanelMicroFrontendProps({}).type:{let e=t.find(e=>e.panelId===n.id);i=t.filter(e=>e.panelId!==n.id);return e=Object.assign(Object.assign({},e),{microFrontend:Object.assign(Object.assign({},null===e||void 0===e?void 0:e.microFrontend),{config:n.props})}),[...i,e]}}return t||[]}},sagas:[mountPanelListenerSagaGenerator(e,t)],initialActions:[]}}const useStyles$2=makeStyles()(e=>({sdkSnackbarContainer:{"& svg":{fill:"white"}}}));function CustomSnackbar(){const n=useDispatch(),[e,t]=react.exports.useState([]),[r,i]=react.exports.useState(!1),[o,a]=react.exports.useState(void 0),{message:s,duration:l}=useSelector(snackbarSelector);var c=useStyles$2()["classes"],u=(react.exports.useEffect(()=>{null!==s&&void 0!==s&&s.content&&t(e=>[...e,s])},[s]),react.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},{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)}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"),!0}const 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}})});!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const nameSpace="@helpPanel",updateSelectedTab=createAction(nameSpace+"/UPDATE_SELECTED_TAB",function(e,t){return{payload:{selectedTabId:e,tabLink:t}}}),setCustomKnowledgeBaseUrl=createAction(nameSpace+"/SET_CUSTOM_KNOWLEDGE_BASE_URL",function(e){return{payload:{url:e}}}),setCustomDocsUrl=createAction(nameSpace+"/SET_CUSTOM_DOCS_URL",function(e){return{payload:{url:e}}}),initialState={selectedTabId:0,tabLink:"https://help.veritone.com/",customKnowledgeBaseUrl:"",customDocsUrl:""},getTabLinkReducer=createReducer(initialState,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="helpPanel",helpCenterSelectedTabIdSelector=e=>null!=e&&e[namespace]?e[namespace].selectedTabId:0,customDocsUrlSelector=e=>null!=e&&e[namespace]?e[namespace].customDocsUrl:"",customKnowledgeBaseUrlSelector=e=>null!=e&&e[namespace]?e[namespace].customKnowledgeBaseUrl:"";function getHelpPanelModule(){return{id:"help",reducerMap:{[namespace]: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$1=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$1()["classes"];const[n,r]=react.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$1()["classes"];const[n,r]=react.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://help.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(e){var t=useSelector(initialConfigSelector),n=useSelector(customKnowledgeBaseUrlSelector),r=useSelector(customDocsUrlSelector),i=useSelector(helpCenterSelectedTabIdSelector);const o=useSelector(e=>null==e?void 0:e.panels);var a=useStyles$1()["classes"],[s]=react.exports.useState(defaultLocale);const l=useDispatch();var c=null===o||void 0===o?void 0:o.find(e=>"CUSTOM_HELP_PANEL_ID"===e.panelId),n=c&&n?n:t.knowledgeBaseURL,c=c&&r?r:t.docsURL;return jsxRuntime.exports.jsx(lib$4.DynamicModuleLoader,Object.assign({modules:[getHelpPanelModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,Object.assign({locale:s},{children:jsxRuntime.exports.jsx("div",Object.assign({className:a.drawerContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({id:"setting-content",className:a.tabContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({className:a.tabContent},{children:jsxRuntime.exports.jsx("div",Object.assign({className:a.root},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:a.tabPanels},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:a.customTabs},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:i,onChangeTab:e=>{l(updateSelectedTab(e,tabsList[e].url))},tabsList:tabsList})})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:a.tabPanels},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:i,index:0},{children:jsxRuntime.exports.jsx(Knowledgebase,{path:n})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:i,index:1},{children:jsxRuntime.exports.jsx(Documentation,{path:c})}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:a.aiWareIcon},{children:jsxRuntime.exports.jsx("img",{src:img$w,alt:"icon",draggable:"false"})}))]}))}))}))}))}))}))}))}var index_esm=Object.freeze({__proto__:null,HelpCenterPanel:HelpCenter,customDocsUrlSelector:customDocsUrlSelector,customKnowledgeBaseUrlSelector:customKnowledgeBaseUrlSelector,helpCenterSelectedTabIdSelector:helpCenterSelectedTabIdSelector,setCustomDocsUrl:setCustomDocsUrl,setCustomKnowledgeBaseUrl:setCustomKnowledgeBaseUrl,updateSelectedTab:updateSelectedTab});const useStyles=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=()=>{var e=useSelector(userSelector$2),t=useStyles()["classes"];const n=useSelector(initialConfigSelector).applicationId;var r=useSelector(applicationSelector);const i=useSelector(switchApiSelector),o=(null==r?void 0:r.application)||[];r=null==r?void 0:r.status;const a=[...o];var s=a.sort(function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}),l=o.findIndex(e=>e.id===n);return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(n)&&l<0&&"success"===r?jsxRuntime.exports.jsx(Modal$1,Object.assign({className:t.dialog,open:!0},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:t.container},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"application-dialog-title",className:t.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:t.orgName},{children:null!=(l=null==e?void 0:e.organization)&&l.organizationName?e.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"})})),jsxRuntime.exports.jsx("div",Object.assign({className:t.appListContainer},{children:jsxRuntime.exports.jsx(AppList,{title:"",selectedAppId:null,onSelectApplication:e=>{window.open(i+"/"+e,"_self")},applications:s,useGrid:!1,row:3})}))]}))})):null};function SnackbarRenderer(){return jsxRuntime.exports.jsx(Provider$1,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(lib$4.DynamicModuleLoader,Object.assign({modules:[getSnackbarModule()]},{children:jsxRuntime.exports.jsx(CustomSnackbar,{})}))}))}store$4.addModules([getWidgetsModule(),getPanelsModule(registry,registryLookup),getDataModule(),getConfigModule(),getAuthModule()]);let hasLoaded=!1;const AppBarPreLoader=()=>{var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&!hasLoaded&&(hasLoaded=!0,setTimeout(()=>{store$4.addModules([getAppbarPanelModule()])},0)),null};function ApplicationDialogPreLoader(){var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&hasLoaded?jsxRuntime.exports.jsx(ApplicationDialog,{}):null}const authHelpers={updateToken(e){e?store$4.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{store$4.dispatch(logout())},1e3)):store$4.dispatch(logout())}};function PortalRenderer(){return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(SupportCenterPixel,{}),jsxRuntime.exports.jsx(Provider$1,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(AppBarPreLoader,{})}))]})}function ApplicationDialogRenderer(){return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Provider$1,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ApplicationDialogPreLoader,{})})}))})}const ThemeInitializer=()=>(useTheme(),null),root=getElement("aiWARE"),mountWidget=(root.classList.add("aiware-el"),ReactDOM.render(jsxRuntime.exports.jsx(CacheProvider,Object.assign({value:muiCache},{children:jsxRuntime.exports.jsxs(AIWareThemeProvider,{children:[jsxRuntime.exports.jsx(PortalRenderer,{}),jsxRuntime.exports.jsx(SnackbarRenderer,{}),jsxRuntime.exports.jsx(ApplicationDialogRenderer,{}),jsxRuntime.exports.jsx(ThemeInitializer,{})]})})),root),(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$4.dispatch(mountWidget$1({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n}),unmountWidget=e=>(store$4.dispatch(unmountWidget$1(e)),!0),mountPanel=(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:r}=e;store$4.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 store$4.addModule(r),n},unmountPanel=e=>(store$4.dispatch(unmountPanel$1(e)),!0),hidePanel=e=>(store$4.dispatch(hidePanel$1(e)),!0),unmountAllPanel=()=>{store$4.dispatch(unmountAllPanel$1(""))};function init(e,t){validateConfig(e)&&store$4.dispatch(getInitConfig(Object.assign(Object.assign({},e),{onComplete:t})))}function helpCenter(){const e=new HelpCenter$2({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}}function dataCenter(){const e=new DataCenter$1;return{openImporterPanel:e.openImporterPanel.bind(e)}}function handleEvents(){function n(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){n(e),sdkEventManager.on.call(sdkEventManager,e,t)},off:function(e){n(e),sdkEventManager.off.call(sdkEventManager,e)}}}const mountPanelForResponse=e=>mountPanelForResponse$1(e,store$4),aiwareEvents=handleEvents();window&&(window.aiWare_initTesting=()=>{window.aiWare_store=store$4,window.aiWare_theme={darkTheme:darkTheme,lightTheme:lightTheme}},window.aiware={init:init,auth:authHelpers,helpCenter:helpCenter(),dataCenter:dataCenter(),on:aiwareEvents.on,off:aiwareEvents.off,hidePanel:hidePanel,unmountPanel:unmountPanel,store:store$4,registry:registry,registerComponent:registerComponent,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,mountPanel:mountPanel,mountPanelForResponse:mountPanelForResponse,unmountWidget:unmountWidget,commit:"18dea278c"});export{ListItem$1 as $,AIWareIntlProvider as A,Box$1 as B,interopRequireDefault as C,createAction as D,createReducer as E,FormattedMessage$1 as F,Grid$1 as G,createSlice as H,ENGINE_OWNER_TYPES as I,ENGINE_FILTER_TYPES as J,lib$4 as K,LoadingButton$1 as L,preferredLanguageSelector as M,baseUrlSelector as N,rootApiSelector as O,Provider$1 as P,sessionTokenSelector as Q,graphEndpointSelector as R,Switch$1 as S,Typography$1 as T,controllerNodeRedImageSelector as U,controllerUrlSelector as V,automateControllerUrlSelector as W,automateUrlSelector as X,Portal$1 as Y,List$2 as Z,_extends as _,generateUtilityClasses as a,img$Q as a$,ListItemIcon$1 as a0,ListItemText$1 as a1,all as a2,img$k as a3,img$l as a4,img$n as a5,img$o as a6,Divider$1 as a7,Tooltip$1 as a8,IconButton$1 as a9,getTemplateById as aA,getTemplateByIdFallback as aB,TableContainer$1 as aC,Table$1 as aD,TableHead$1 as aE,TableRow$1 as aF,TableCell$1 as aG,TableSortLabel$1 as aH,TableBody$1 as aI,img$d as aJ,Popper$1 as aK,ClickAwayListener as aL,Fade$1 as aM,img$p as aN,img$m as aO,img$M as aP,img$y as aQ,Dialog$1 as aR,DialogTitle$1 as aS,DialogContent$1 as aT,DialogActions$1 as aU,Select$1 as aV,MenuItem$1 as aW,Snackbar$1 as aX,default_1$2 as aY,img$f as aZ,img$h as a_,img$e as aa,img$C as ab,getNodeRedVersionEdgeApi as ac,createEnginebuild as ad,Skeleton$1 as ae,takeLatest$1 as af,fetchAllTags as ag,put as ah,select as ai,fetchFlows as aj,call$7 as ak,fetchTemplateGallery as al,isRevisionsExistOnServerRequest as am,FormLabel$1 as an,default_1$7 as ao,FormGroup$1 as ap,FormControlLabel$1 as aq,Checkbox$1 as ar,fetchTemplateGalleryFallback as as,Button$1 as at,img$i as au,fetchVeritoneGraphQLApi as av,flowStyles as aw,NoResults as ax,img$8 as ay,setApiEndpoint as az,styled$1 as b,_hasPath as b$,Tabs$1 as b0,Tab$1 as b1,deleteEngine as b2,img$g as b3,AIWareFormatMessage as b4,FormattedDate as b5,useTheme as b6,KeyboardArrowRight as b7,KeyboardArrowLeft as b8,useId as b9,img$a as bA,img$9 as bB,isEmpty_1 as bC,Backdrop$1 as bD,CircularProgress$1 as bE,getDefaultMiddleware as bF,isNil_1 as bG,UpDown as bH,Icon$1 as bI,get_1 as bJ,map_1 as bK,keys_1 as bL,RadioGroup$1 as bM,Avatar$1 as bN,img$s as bO,FormHelperText$1 as bP,img$c as bQ,StyledEngineProvider as bR,ThemeProvider as bS,lightTheme as bT,CssBaseline as bU,Hide as bV,showMessage as bW,MessageSeverity as bX,baseGraphQLApi as bY,Radio$1 as bZ,fetchEngine as b_,InputUnstyled as ba,isHostComponent as bb,createSvgIcon$2 as bc,getDefaultExportFromNamespaceIfNotNamed as bd,commonjsRequire as be,_assertThisInitialized$1 as bf,_setPrototypeOf$3 as bg,reactDom as bh,React$1 as bi,_inheritsLoose$2 as bj,ReactDOM as bk,__awaiter$a as bl,__generator$2 as bm,__spread as bn,PropTypes as bo,connect as bp,Bookmark as bq,EngineFlagIcons as br,createAsyncThunk as bs,withStyles as bt,getConfigModule as bu,getAuthModule as bv,getSnackbarModule as bw,CacheProvider as bx,muiCache as by,img$N as bz,Paper$1 as c,_arrayLikeKeys as c$,_createCompounder as c0,_baseIteratee as c1,isArrayLike_1 as c2,toInteger_1 as c3,hoistNonReactStatics_cjs as c4,Transition$1 as c5,useControlled as c6,Collapse$1 as c7,ButtonBase$1 as c8,alpha as c9,useBackupImg as cA,img$1u as cB,configSelector as cC,baseGraphQLApiWithError as cD,useDoubleClick as cE,VerifiedFilled as cF,Add as cG,img$12 as cH,Filter$1 as cI,DynamicTable as cJ,useTheme$2 as cK,getThemeProps as cL,React$2 as cM,_arrayPush as cN,isArray_1 as cO,_getNative as cP,eq_1 as cQ,_castPath as cR,_isIndex as cS,isObject_1 as cT,_toKey as cU,_root as cV,_Uint8Array as cW,_overArg as cX,_isPrototype as cY,isObjectLike_1 as cZ,_baseGetTag as c_,commonjsGlobal$1 as ca,getDefaultExportFromCjs as cb,TransitionGroup$1 as cc,useForkRef as cd,useEnhancedEffect$1 as ce,combineReducers as cf,createSelector as cg,fork as ch,AIWareThemeProvider as ci,Close$1 as cj,FullscreenExit as ck,Fullscreen as cl,TabPanel as cm,default_1$4 as cn,InputAdornment$1 as co,unmountPanel$1 as cp,AvailableComponents as cq,delay$1 as cr,mountPanel$1 as cs,DialogContentText$1 as ct,MoreVert as cu,Menu$1 as cv,Edit as cw,Upload as cx,Delete as cy,CustomTabs as cz,capitalize$2 as d,guid as d$,isArguments_1 as d0,isBuffer$3 as d1,isFunction_1 as d2,isTypedArray_1 as d3,_Stack as d4,_baseFor as d5,identity_1 as d6,_isIterateeCall as d7,_Set as d8,_setToArray as d9,takeEvery$1 as dA,isNull_1 as dB,size_1 as dC,take as dD,startCase_1 as dE,times_1 as dF,ReactIs as dG,upperFirst_1 as dH,isString_1 as dI,_baseSlice as dJ,channel as dK,useIntl as dL,VideoCamera as dM,Image$1 as dN,Sound as dO,Description$1 as dP,toNumber_1 as dQ,ProgressStepper as dR,CurlyBraces as dS,UnknownDocument as dT,sdkEventManager as dU,SdkEvents as dV,SdkError as dW,EngineClassIcons as dX,Mode2 as dY,EngineModeIcons as dZ,DeploymentModelIcons as d_,_SetCache as da,_cacheHas as db,_baseToString as dc,_baseTrim as dd,_castSlice as de,_stringToArray as df,toString_1 as dg,isSymbol_1 as dh,_arrayMap as di,_baseMap as dj,_baseGet as dk,_baseUnary as dl,emStyled as dm,deepmerge as dn,isPlainObject as dp,useTheme$3 as dq,lib as dr,getThunkExtension_1 as ds,composeWithDevTools as dt,orange$1 as du,deepOrange$1 as dv,createTheme$1 as dw,createIntl as dx,SvgIcon$1 as dy,unmountAllPanel$1 as dz,_objectWithoutPropertiesLoose$2 as e,img$J as e$,extendSxProp as e0,handleBreakpoints as e1,resolveBreakpointValues as e2,createUnarySpacing as e3,getValue$2 as e4,useEventCallback as e5,setRef as e6,inputClasses$1 as e7,inputBaseClasses$1 as e8,outlinedInputClasses$1 as e9,AdminCenter as eA,img$P as eB,img$1 as eC,img$w as eD,userSelector$2 as eE,enableBetaFeatures as eF,Badge$1 as eG,openLinkOnNewTab as eH,avatarClasses as eI,authSelector as eJ,injectIntl as eK,headerBarSelector as eL,getSortName as eM,img$5 as eN,InputLabel$1 as eO,ListItemAvatar$1 as eP,OrganizationTabIcon as eQ,ScopedCssBaseline$1 as eR,AlarmTwo as eS,getApplicationsApi as eT,ListItemSecondaryAction$1 as eU,updateTokenSuccess as eV,postNotificationCommand as eW,aiwareEvent as eX,notificationCommands as eY,panelsSelector as eZ,css as e_,filledInputClasses$1 as ea,ClearIcon as eb,ArrowDropDownIcon as ec,_Symbol as ed,_baseEach as ee,_arrayFilter as ef,useIsFocusVisible as eg,ownerDocument as eh,appendOwnerState as ei,lighten as ej,darken as ek,slotShouldForwardProp as el,shouldSpreadAdditionalProps$1 as em,Slide$1 as en,hidePanel$1 as eo,updatePanelMicroFrontendProps as ep,setData as eq,keyframes as er,TabId as es,PersonalProfile$1 as et,Organizations as eu,DataCenter as ev,FlowCenter2 as ew,DeveloperCenter as ex,Marketplace as ey,LibraryCenter as ez,clsx as f,ConfirmationModal as f$,img$I as f0,img$1r as f1,img$1q as f2,img$1p as f3,img$G as f4,img$1s as f5,img$F as f6,emphasize as f7,_arraySome as f8,Process as f9,ExpandMore as fA,img$r as fB,img$t as fC,img as fD,FilterRemove as fE,FolderOpen as fF,Voice as fG,FolderFilled as fH,Time as fI,img$u as fJ,Undefined as fK,YoutubeSource as fL,PodcastSource as fM,TVSource as fN,RadioSource as fO,selectOrgGuid as fP,selectOrgId as fQ,selectIsUserAdmin as fR,ErrorState$1 as fS,StepConnector$1 as fT,NullState$2 as fU,Group as fV,PermissionChangedAction as fW,AddGroup as fX,StepperContext$1 as fY,StepContext$1 as fZ,initialConfigSelector as f_,Information as fa,NewFolder as fb,SpecialFolder as fc,User as fd,Source as fe,ProcessingDetail as ff,Search$1 as fg,getLibraryModule as fh,selectApiConfigs$1 as fi,FullScreenContainer as fj,betaFeaturesSelector as fk,cmsUrlSelector as fl,UserAddFilled as fm,Popover$1 as fn,MenuList$1 as fo,MoveFolder as fp,ErrorBoundary as fq,Download as fr,img$6 as fs,selectPanelByPanelName as ft,EngineCategoryIcons as fu,Settings$2 as fv,Hamburger as fw,List as fx,EditAttributes as fy,MoreHor as fz,generateUtilityClass as g,EnumHelpers as g0,formatBytes as g1,NotInterested as g2,mountPanelForResponse$1 as g3,ApplicationTabIcon as g4,Lock as g5,SecurityGroup as g6,NoApps as g7,green$1 as g8,selectors as g9,LibraryDropdown as ga,Remove as gb,Save as gc,Input$1 as gd,AddUser as ge,registry as gf,registerComponent as gg,AvailableWidgets as gh,root as gi,mountWidget as gj,unmountWidget as gk,mountPanel as gl,unmountPanel as gm,hidePanel as gn,unmountAllPanel as go,init as gp,composeClasses as h,useDispatch as i,jsxRuntime as j,useSelector as k,authStatusSelector as l,makeStyles as m,authContextSelector as n,AuthContext as o,lodash as p,Alert$1 as q,react as r,store$4 as s,authErrorMessage as t,useThemeProps as u,FormControl$1 as v,TextField$1 as w,classnames as x,resetPasswordRequest as y,createSvgIcon as z};
|
|
1168
|
+
`,graphEndpoint:e,token:t})}catch(e){return{success:!1}}});function*getCurrentUserSaga(){var e=yield select(graphEndpointSelector),t=yield select(sessionTokenSelector),e=yield call$7(getCurrentUserApi,e,t);null!=e&&e.errors&&0<(null==e?void 0:e.errors.length)&&(null==(t=e.errors[0].path)||!t.includes("userSettings"))?console.error("getCurrentUser error"):(t=Object.assign(Object.assign({},null==(t=null==e?void 0:e.data)?void 0:t.me),{organizationRole:{organizationId:get$3(e,"data.me.organization.id","")},organization:Object.assign({},null==(e=null==(t=null==e?void 0:e.data)?void 0:t.me)?void 0:e.organization)}),yield put(getCurrentUserSuccess(t)))}function*getCurrentApplicationInfoSaga(e){var t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector),e=e.payload["applicationId"],e=yield call$7(getApplicationInfo,e,t,n);null!=e&&e.errors&&0<(null==e?void 0:e.errors.length)?console.error("getCurrentApplicationInfo error"):yield put(getCurrentAppIconSuccess(null==(n=null==(t=null==e?void 0:e.data)?void 0:t.application)?void 0:n.iconUrl))}function*userSaga(){yield all([takeEvery$1(GET_CURRENT_USER,getCurrentUserSaga)]),yield all([takeEvery$1(GET_CURRENT_APP_ICON,getCurrentApplicationInfoSaga)])}function*bootFunction(){yield take(BOOTED)}function*booting(){yield takeEvery$1(BOOTING,bootFunction)}function*logoutListener(e){const t=e.payload;for(;;)yield take(logout),t?null!==t&&void 0!==t&&t():yield put(logoutUser$1())}function*notificationActionClickedSaga(e){const t=e.payload;yield takeEvery$1(onNotificationActionClicked,function*(e){t&&(yield call$7(t,e.payload))})}function*handleAppSwitchListenerSetup(e){const t=e.payload;yield takeEvery$1(appSwitcherHandleClick,function*(e){e=e.payload;t?t(e):yield put(appSwitcherHandleClickAppNatively(e))})}function*rootSaga(){yield all([fork(userSaga),fork(booting),takeLatest$1(listenLogout,logoutListener),takeLatest$1(appSwitcherSetupListener,handleAppSwitchListenerSetup),takeLatest$1(initNotificationAction,notificationActionClickedSaga)])}function getAppbarModule(){return{id:"os-app-bar",reducerMap:{[nameSpace$1]:userReducer},sagas:[rootSaga],initialActions:[]}}function App(e){var{onLogout:t,onClickNotificationAction:n,onAppSwitch:r,onClickOrgIcon:i,showNotifications:o,applicationId:a,searchBarMountId:s}=e,e=__rest(e,["onLogout","onClickNotificationAction","onAppSwitch","onShowSettingPanel","onClickOrgIcon","onClickHelpIcon","showNotifications","applicationId","searchBarMountId"]);const l=useDispatch(),[c,u]=react.exports.useState(!1),[d,p]=react.exports.useState(!1),[f,h]=react.exports.useState(!1),[m,g]=react.exports.useState(!1),[y,v]=react.exports.useState(!1),[x,C]=react.exports.useState(!1);var b=(useSelector(userSelector)||{})["currentUser"];const{panels:$=[]}=useSelector(rootSelector);var w=useSelector(unseenNotificationSelector);const S=useSelector(notificationStatusSelector),_=useSelector(betaFeaturesSelector);b=(b||{}).organization;const T=useSelector(authSelector)["user"];var{application:E=[]}=useSelector(applicationSelector)||{};const[j,I]=react.exports.useState(!1);var R=_;const O=useSelector(appIdSelector),L=useSelector(selectApplicationConfig),[M,N]=react.exports.useState(!1);function A(){u(!1),h(!1),g(!1),p(!1),v(!1),C(!1)}function k(){null!==$&&void 0!==$&&$.forEach(e=>{l(hidePanel$1(e.panelId))})}return react.exports.useEffect(()=>{var e,t=window.location["search"];l(actions$2.userApplicationSettings.fetchApplicationConfigStart({appId:O})),"?panel=invite-requests"!==t||j||(I(!0),t={name:"INVITE_REQUESTS_PANEL",config:{name:"Invite Requests"}},e={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:0,size:"medium",zIndex:1001,parentPanelId:null,dimmed:0,dimmedStatus:"dimParent",header:{title:"INVITE REQUESTS"}},l(mountPanel$1({panelId:"INVITE_REQUESTS_PANEL",microFrontend:t,panelConfig:e})))},[]),react.exports.useEffect(()=>{null!==L&&void 0!==L&&L.length&&N(!0)},[L]),react.exports.useEffect(()=>{"success"===S&&l(markAllNotificationsSeenRequest())},[S,l]),react.exports.useEffect(()=>{l(getCurrentUser()),a&&l(getCurrentAppIcon({applicationId:a}))},[l,a]),react.exports.useEffect(()=>{l({type:listenLogout().type,payload:t})},[l,t]),react.exports.useEffect(()=>{n&&l(initNotificationAction(n))},[l,n]),react.exports.useEffect(()=>{l({type:appSwitcherSetupListener().type,payload:r})},[l,r]),react.exports.useEffect(()=>{l(onBooted())},[l]),react.exports.useEffect(()=>{$&&0!==$.length||A()},[$]),jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(lib$4.DynamicModuleLoader,Object.assign({modules:[getAppbarModule(),getAppbarPanelModule(),getNotificationModule$1(),getEventsModule(),getUserApplicationSettingsModule()]},{children:jsxRuntime.exports.jsx("div",Object.assign({className:"App",id:"aiware-app-bar","data-testid":"aiware-app-bar"},{children:jsxRuntime.exports.jsx(NewAppBar,Object.assign({isEnableOrgPanel:!1,onCloseSetting:function(){},onOpenSetting:function(){var e,t;c?(u(!1),k()):(A(),u(!0),k(),e={name:"APP_BAR_PANEL",config:{name:"Veritone",dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:VERITONE_PANEL_ID,type:"TAB_TEMPLATE",marginTop:55,withTab:!0,width:80,zIndex:1003,userRoles:null===T||void 0===T?void 0:T.roles,header:{divider:!0,title:""},footer:{logo:!0},size:"xlarge",fullScreen:!1},l(mountPanel$1({panelId:VERITONE_PANEL_ID,microFrontend:e,panelConfig:t})))},onOpenHelpCenter:function(){var e,t;d?(p(!1),k()):(A(),k(),p(!0),e={name:"HELP_PANEL",config:{name:"Help panel",dataId:"helpDataId",type:"SIMPLE_PANEL"}},t={panelId:HELP_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,size:"large",header:{divider:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.headerTitle.helpCenter",defaultMessage:"Help Center",description:"The header title for the help center."}),actions:[{iconUrl:img$O,action:{type:"OPEN_HELP_LINK"}}]}},l(mountPanel$1({panelId:HELP_PANEL_ID,microFrontend:e,panelConfig:t})))},onOpenNotification:function(){var e,t;null!=o&&o(),y?(v(!1),k()):(A(),k(),v(!0),e={name:"NOTIFICATION_PANEL",config:{name:"Notification Panel",dataId:"notificationDataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:413,header:{divider:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.panel.notifications",defaultMessage:"Notifications Center",description:"Title of the notifications center panel"}),actions:[]}},l(mountPanel$1({panelId:NOTIFICATION_PANEL_ID,microFrontend:e,panelConfig:t})))},onOpenUserApplicationSettings:function(){var e,t;x?(C(!1),k()):(A(),k(),C(!0),e={name:"USER_APPLICATION_SETTINGS_PANEL",config:{name:"User application settings",dataId:"userApplicationSettingsDataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:USER_APPLICATION_SETTINGS_PANEL,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:320,header:{divider:!1,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header.panelTitle.user-application-name-settings",defaultMessage:"Application Settings",description:"Title of user application name settings panel"})}},l(mountPanel$1({panelId:USER_APPLICATION_SETTINGS_PANEL,microFrontend:e,panelConfig:t})))},onDashboardClick:function(){console.log("HANDLE DASHBOARD CLICK!")},organization:b,onClickOrgIcon:function(){var e,t;null!=i&&i(),m?(g(!1),k()):(A(),k(),g(!0),e={name:"ORGANIZATION_PANEL",config:{name:"Veritone",tabId:TabId.ORGANIZATION_PANEL,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:ORGANIZATION_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:420,header:{divider:!0,title:"ORGANIZATIONS"}},l(mountPanel$1({panelId:ORGANIZATION_PANEL_ID,microFrontend:e,panelConfig:t})))},panels:$,searchBarMountId:s,openSetting:{openHelpPanel:!1,openNotificationPanel:!1,openAppSwitchPanel:!1,openOrgSwitchPanel:!1,openVeritonePanel:!1,openUserApplicationSettingsPanel:!1},unseenCount:w,onClickAppSwitchIcon:function(){var e,t;f?(h(!1),k()):(A(),k(),h(!0),e={name:"APP_BAR_PANEL",config:{name:"APP_BAR_PANEL",tabId:TabId.APP_PANEL,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:APPLICATION_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:_?720:420,header:{divider:!0,title:_?jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header.panelTitle",defaultMessage:"App Switcher",description:"Title of applications panel list"}):jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header.panelTitle",defaultMessage:"Applications",description:"Title of applications panel list"})}},l(mountPanel$1({panelId:APPLICATION_PANEL_ID,microFrontend:e,panelConfig:t})))},applications:E,showDashboardIcon:R,userApplicationSettingsIcon:M},e))}))}))})})}const headerBarSelector=e=>null==e?void 0:e.aiWareHeaderBar,registry={[AvailableWidgets.APP_BAR]:App,[AvailableComponents.APP_BAR_PANEL]:SettingPanelComponent},registryLookup=n=>__awaiter$a(void 0,void 0,void 0,function*(){if(registry[n])return registry[n];let e,t=null;switch(n){case AvailableWidgets.SAMPLE_APP_BAR:e=yield import("./js-core.esm2.js"),t=e.SampleAppBar;break;case AvailableWidgets.RESET_PASSWORD:e=yield import("./js-core.esm4.js"),t=e.ResetPassword;break;case AvailableWidgets.FLOW_CENTER:e=yield import("./js-core.esm5.js"),t=e.App;break;case AvailableWidgets.FLOW_WIDGET:e=yield import("./js-core.esm7.js").then(function(e){return e.i}),t=e.App;break;case AvailableWidgets.ENGINE_CENTER_BROWSE:e=yield import("./js-core.esm18.js"),t=e.EngineCenterBrowse;break;case AvailablePanels.SIMPLE_PANEL:e=yield import("./js-core.esm26.js"),t=e.Panel;break;case AvailablePanels.APP_BAR_PANEL_TEMPLATE:e=yield import("./js-core.esm27.js"),t=e.AppbarPanel;break;case AvailablePanels.APP_BAR_TAB_PANEL_TEMPLATE:e=yield import("./js-core.esm27.js"),t=e.AppbarTabPanel;break;case AvailablePanels.TAB_TEMPLATE:e=yield import("./js-core.esm27.js"),t=e.TabPanel;break;case AvailableComponents.NOTIFICATION_PANEL:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationPanel;break;case AvailableComponents.NOTIFICATION_DETAIL:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationDetailPanel;break;case AvailableComponents.NOTIFICATION_SETTING:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationSetting;break;case AvailableComponents.NOTIFICATION_UTILITY:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationUtilityPanel;break;case AvailableComponents.NOTIFICATION_APPLICATION:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationApplication;break;case AvailableComponents.HELP_PANEL:e=yield Promise.resolve().then(function(){return index_esm}),t=e.HelpCenterPanel;break;case AvailableComponents.EDIT_PROFILE_PICTURE:e=yield Promise.resolve().then(function(){return index_esm$1}),t=e.EditProFilePicture;break;case AvailableComponents.TEST_COMPONENT:e=yield import("./js-core.esm26.js"),t=e.SamplePanel1;break;case AvailableComponents.TEST_COMPONENT2:e=yield import("./js-core.esm26.js"),t=e.SamplePanel2;break;case AvailableComponents.TEST_COMPONENT3:e=yield import("./js-core.esm26.js"),t=e.SamplePanel3;break;case AvailableComponents.SETTING_PREFERENCE:e=yield import("./js-core.esm30.js"),t=e.SettingsPreferencesPanel;break;case AvailableComponents.ORGANIZATION_PANEL:e=yield import("./js-core.esm28.js"),t=e.OrganizationPanel;break;case AvailableComponents.INVITE_USERS_PANEL:e=yield import("./js-core.esm28.js"),t=e.InviteUsersPanel;break;case AvailableComponents.INVITE_REQUESTS_PANEL:e=yield import("./js-core.esm28.js"),t=e.InviteRequestsPanel;break;case AvailableComponents.REVIEW_ORG_INVITE_PANEL:e=yield import("./js-core.esm28.js"),t=e.ReviewRequestPanel;break;case AvailableComponents.ADD_APPLICATIONS:e=yield import("./js-core.esm28.js"),t=e.AddApplicationsPanel;break;case AvailableComponents.DATA_CENTER_BROWSE:e=yield import("./js-core.esm31.js"),t=e.DataCenterBrowse;break;case AvailableComponents.DATA_CENTER_FOLDERS_AND_FILES:e=yield import("./js-core.esm31.js"),t=e.FoldersAndFilesPanel;break;case AvailableComponents.DATA_CENTER_FILE_INFO_PANEL:e=yield import("./js-core.esm31.js"),t=e.FileInfoPanel;break;case AvailableComponents.DATA_CENTER_IMPORTER:e=yield import("./js-core.esm35.js"),t=e.DataCenterImporter;break;case AvailableComponents.DATA_LABELER:e=yield import("./js-core.esm37.js"),t=e.DataLabelerPanel;break;case AvailableComponents.ADMIN_CENTER_OPEN_ID:e=yield import("./js-core.esm38.js"),t=e.AdminCenterOpenId;break;case AvailableComponents.ADMIN_CENTER_BROWSE:e=yield import("./js-core.esm39.js"),t=e.AdminCenterBrowse;break;case AvailableComponents.DATA_CENTER_PROCESS_AI:e=yield import("./js-core.esm41.js"),t=e.DataCenterProcessAI;break;case AvailableComponents.ENGINE_CENTER_NEW:e=yield import("./js-core.esm19.js").then(function(e){return e.k}),t=e.EngineCenterNew;break;case AvailableComponents.ENGINE_CENTER_FILTER:e=yield import("./js-core.esm18.js"),t=e.EngineCenterFilter;break;case AvailableComponents.ENGINE_CENTER_DETAILS:e=yield import("./js-core.esm18.js"),t=e.EngineDetails;break;case AvailableComponents.ENGINE_CENTER_NEW_BUILD:e=yield import("./js-core.esm18.js"),t=e.CreateNewBuildPanel;break;case AvailableComponents.ENGINE_CENTER_CUSTOM_FIELDS_FORM:e=yield import("./js-core.esm19.js").then(function(e){return e.k}),t=e.EngineCenterCustomFieldsForm;break;case AvailableComponents.ENGINE_CENTER_SCHEMAS_FORM_PANEL:e=yield import("./js-core.esm19.js").then(function(e){return e.k}),t=e.SchemasFormPanel;break;case AvailableComponents.ENGINE_CENTER_INPUT_TYPE_FLYOUT:e=yield import("./js-core.esm19.js").then(function(e){return e.k}),t=e.InputTypeFlyout;break;case AvailableComponents.ENGINE_CENTER_EDIT_RELEASE_NOTES:e=yield import("./js-core.esm18.js"),t=e.EditReleaseNotes;break;case AvailableComponents.ENGINE_CENTER_VERSION_HISTORY_PANEL:e=yield import("./js-core.esm18.js"),t=e.VersionHistoryPanel;break;case AvailableComponents.SUPPORTED_FILE_TYPES:e=yield import("./js-core.esm35.js"),t=e.SupportedFileTypes;break;case AvailableComponents.EDIT_FILE_METADATA:e=yield import("./js-core.esm35.js"),t=e.EditFileMetadata;break;case AvailableComponents.APP_CENTER_NEW:e=yield import("./js-core.esm42.js"),t=e.AppCenterNew;break;case AvailableComponents.APP_CENTER_ADD_FLOW_PANEL:e=yield import("./js-core.esm42.js"),t=e.AppCenterAddFlowPanel;break;case AvailableComponents.APP_CENTER_ADD_SCHEMA_PANEL:e=yield import("./js-core.esm42.js"),t=e.AppCenterAddSchemaPanel;break;case AvailableComponents.APP_CENTER_CONFIG_FIELDS_FORM:e=yield import("./js-core.esm42.js"),t=e.AppCenterConfigFieldsForm;break;case AvailableComponents.APP_CENTER_AUTOMATE_PALETTE_INTEGRATION_PANEL:e=yield import("./js-core.esm42.js"),t=e.AppCenterPaletteIntegrationPanel;break;case AvailableComponents.APP_CENTER_ADD_ENGINE_PANEL:e=yield import("./js-core.esm42.js"),t=e.AppCenterAddEnginePanel;break;case AvailableComponents.DATA_CENTER_ENGINE_SELECTION:e=yield import("./js-core.esm41.js"),t=e.DataCenterEngineSelection;break;case AvailableComponents.ADMIN_CENTER_NEW_GROUP_PANEL:e=yield import("./js-core.esm33.js").then(function(e){return e.a}),t=e.NewGroupPanel;break;case AvailableComponents.PERMISSIONS_PANEL:e=yield import("./js-core.esm32.js"),t=e.PermissionsPanel;break;case AvailableComponents.GROUP_INFO_PANEL:e=yield import("./js-core.esm32.js"),t=e.GroupInfoPanel;break;case AvailableComponents.NEW_PERMISSION_SET_PANEL:e=yield import("./js-core.esm32.js"),t=e.NewPermissionSetPanel;break;case AvailableComponents.PERMISSION_SET_DETAILS_PANEL:e=yield import("./js-core.esm32.js"),t=e.PermissionSetDetailsPanel;break;case AvailableComponents.DATA_CENTER_MDP_IFRAME_PANEL:e=yield import("./js-core.esm31.js"),t=e.MediaDetailsPanelIframe;break;case AvailableComponents.DATA_CENTER_INGESTION_CREATION_PANEL:e=yield import("./js-core.esm31.js"),t=e.IngestionCreationPanel;break;case AvailableComponents.DATA_CENTER_SOURCE_CREATION_PANEL:e=yield import("./js-core.esm31.js"),t=e.SourceCreationPanel;break;case AvailableComponents.ADMIN_CENTER_GROUP_DETAILS_PANEL:e=yield import("./js-core.esm33.js").then(function(e){return e.a}),t=e.GroupDetailsPanel;break;case AvailableComponents.ADMIN_CENTER_ADD_MEMBER_PANEL:e=yield import("./js-core.esm33.js").then(function(e){return e.a}),t=e.AddMemberPanel;break;case AvailableComponents.APPLICATION_DETAILS_PANEL:e=yield import("./js-core.esm40.js"),t=e.ApplicationDetailsPanel;break;case AvailableComponents.PROCESSING_CENTER_SOURCES:e=yield import("./js-core.esm43.js"),t=e.ProcessingCenterSources;break;case AvailableComponents.USER_APPLICATION_SETTINGS_PANEL:e=yield Promise.resolve().then(function(){return index_esm$3}),t=e.UserApplicationSettingsPanel}return registry[n]=t}),registerComponent=(e,t)=>{registry[e]=t},WIDGETS_FEATURE_KEY="widgets",initialState$1=(!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)=>{const n=e.find(e=>e.widgetName===t);null!==n&&void 0!==n&&n.onComplete&&n.onComplete()},{name,reducer,actions:{mountWidget:mountWidget$1,mountWidgetSuccess,mountWidgetError,unmountWidget:unmountWidget$1,unmountWidgetSuccess,unmountWidgetFailure,triggerWidgetCallback,triggerWidgetCallbackSuccess}}=createSlice({name:WIDGETS_FEATURE_KEY,initialState:initialState$1,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}}});function*mountWidgetListenerSaga(){yield takeEvery$1(mountWidget$1({}).type,function*(e){try{var{widgetConfig:t={},widgetName:n,elementId:r}=null==e?void 0:e.payload,i=(yield call$7(registryLookup,n))||(()=>jsxRuntime.exports.jsx("div",{children:"Component Not Found."}));const o=getElement(r,n);o.classList.add("aiware-el"),ReactDOM.render(jsxRuntime.exports.jsx(CacheProvider,Object.assign({value:muiCache},{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(Provider$1,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(i,Object.assign({},t))}))})})),o),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(unmountWidget$1("").type,function*(n){try{var e=yield select(e=>{const t=widgetsSelector(e);return(null==(e=t.find(e=>e.widgetId===n.payload))?void 0:e.elementId)||""});ReactDOM.unmountComponentAtNode(document.getElementById(e)||new DocumentFragment),yield put(unmountWidgetSuccess(n.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(){return{id:name,reducerMap:{[name]:reducer},sagas:[mountWidgetListenerSaga],initialActions:[]}}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:[]}}var match,version,store,wmget,wmhas,wmset,set,get,has,STATE,activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,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$b=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$b=function(e){try{return!!e()}catch(e){return!0}},fails$a=fails$b,descriptors=!fails$b(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$9=fails$b,functionBindNative=!fails$b(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$1=functionBindNative,call$6=Function.prototype.call,functionCall=NATIVE_BIND$1?call$6.bind(call$6):function(){return call$6.apply(call$6,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$1&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$3=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$1(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND=functionBindNative,FunctionPrototype$1=Function.prototype,bind=FunctionPrototype$1.bind,call$5=FunctionPrototype$1.call,uncurryThis$c=NATIVE_BIND&&bind.bind(call$5,call$5),functionUncurryThis=NATIVE_BIND?function(e){return e&&uncurryThis$c(e)}:function(e){return e&&function(){return call$5.apply(e,arguments)}},uncurryThis$b=functionUncurryThis,toString$3=uncurryThis$b({}.toString),stringSlice=uncurryThis$b("".slice),classofRaw$1=function(e){return stringSlice(toString$3(e),8,-1)},uncurryThis$a=functionUncurryThis,fails$8=fails$b,classof$3=classofRaw$1,$Object$4=Object,split=functionUncurryThis("".split),indexedObject=fails$8(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$3(e)?split(e,""):$Object$4(e)}:$Object$4,$TypeError$7=TypeError,requireObjectCoercible$3=function(e){if(null==e)throw $TypeError$7("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$2=requireObjectCoercible$3,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$2(e))},isCallable$f=function(e){return"function"==typeof e},isCallable$e=isCallable$f,isObject$6=function(e){return"object"==typeof e?null!==e:isCallable$e(e)},global$a=global$b,isCallable$d=isCallable$f,aFunction=function(e){return isCallable$d(e)?e:void 0},getBuiltIn$4=function(e,t){return arguments.length<2?aFunction(global$a[e]):global$a[e]&&global$a[e][t]},uncurryThis$9=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),getBuiltIn$3=getBuiltIn$4,engineUserAgent=getBuiltIn$4("navigator","userAgent")||"",global$9=global$b,userAgent=engineUserAgent,process$1=global$9.process,Deno=global$9.Deno,versions=process$1&&process$1.versions||Deno&&Deno.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent&&(!(match=userAgent.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION=version,fails$7=fails$b,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$7(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION&&V8_VERSION<41}),NATIVE_SYMBOL$1=nativeSymbol,useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$2=getBuiltIn$4,isCallable$c=isCallable$f,isPrototypeOf=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$2("Symbol");return isCallable$c(t)&&isPrototypeOf(t.prototype,$Object$3(e))},$String$3=String,tryToString$1=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$b=isCallable$f,tryToString=tryToString$1,$TypeError$6=TypeError,aCallable$1=function(e){if(isCallable$b(e))return e;throw $TypeError$6(tryToString(e)+" is not a function")},aCallable=aCallable$1,getMethod$1=function(e,t){e=e[t];return null==e?void 0:aCallable(e)},call$4=functionCall,isCallable$a=isCallable$f,isObject$5=isObject$6,$TypeError$5=TypeError,ordinaryToPrimitive$1=function(e,t){var n,r;if("string"===t&&isCallable$a(n=e.toString)&&!isObject$5(r=call$4(n,e)))return r;if(isCallable$a(n=e.valueOf)&&!isObject$5(r=call$4(n,e)))return r;if("string"!==t&&isCallable$a(n=e.toString)&&!isObject$5(r=call$4(n,e)))return r;throw $TypeError$5("Can't convert object to primitive value")},shared$3={exports:{}},global$8=global$b,defineProperty$5=Object.defineProperty,defineGlobalProperty$3=function(t,n){try{defineProperty$5(global$8,t,{value:n,configurable:!0,writable:!0})}catch(e){global$8[t]=n}return n},global$7=global$b,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$b[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$1=((shared$3.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$3),$Object$2=Object,toObject$3=function(e){return $Object$2(requireObjectCoercible$1(e))},uncurryThis$8=functionUncurryThis,toObject$2=toObject$3,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$2(e),t)},uncurryThis$7=functionUncurryThis,id=0,postfix=Math.random(),toString$2=uncurryThis$7(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$2(++id+postfix,36)},global$6=global$b,shared$2=shared$3.exports,hasOwn$8=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$2("wks"),Symbol$1=global$6.Symbol,symbolFor=Symbol$1&&Symbol$1.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$a=function(e){var t;return hasOwn$8(WellKnownSymbolsStore,e)&&(NATIVE_SYMBOL||"string"==typeof WellKnownSymbolsStore[e])||(t="Symbol."+e,NATIVE_SYMBOL&&hasOwn$8(Symbol$1,e)?WellKnownSymbolsStore[e]=Symbol$1[e]:WellKnownSymbolsStore[e]=(USE_SYMBOL_AS_UID&&symbolFor?symbolFor:createWellKnownSymbol)(t)),WellKnownSymbolsStore[e]},call$3=functionCall,isObject$4=isObject$6,isSymbol$1=isSymbol$2,getMethod=getMethod$1,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$9=wellKnownSymbol$a,$TypeError$4=TypeError,TO_PRIMITIVE=wellKnownSymbol$a("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$4(e)||isSymbol$1(e))return e;var n=getMethod(e,TO_PRIMITIVE);if(n){if(n=call$3(n,e,t=void 0===t?"default":t),!isObject$4(n)||isSymbol$1(n))return n;throw $TypeError$4("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$5=global$b,isObject$3=isObject$6,document$1=global$b.document,EXISTS$1=isObject$3(document$1)&&isObject$3(document$1.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$1.createElement(e):{}},DESCRIPTORS$9=descriptors,fails$6=fails$b,createElement=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$b(function(){return 7!=Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$8=descriptors,call$2=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$2=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1=toPropertyKey$2,hasOwn$7=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$8?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$7(e,t))return createPropertyDescriptor$2(!call$2(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$7=descriptors,fails$5=fails$b,v8PrototypeDefineBug=descriptors&&fails$b(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$2=isObject$6,$String$2=String,$TypeError$3=TypeError,anObject$5=function(e){if(isObject$2(e))return e;throw $TypeError$3($String$2(e)+" is not an object")},DESCRIPTORS$6=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$4=anObject$5,toPropertyKey=toPropertyKey$2,$TypeError$2=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$5=(objectDefineProperty.f=DESCRIPTORS$6?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,n){var r;return anObject$4(e),t=toPropertyKey(t),anObject$4(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$4(e),t=toPropertyKey(t),anObject$4(n),IE8_DOM_DEFINE)try{return $defineProperty(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $TypeError$2("Accessors not supported");return"value"in n&&(e[t]=n.value),e},descriptors),definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$3,createNonEnumerableProperty$4=DESCRIPTORS$5?function(e,t,n){return definePropertyModule$3.f(e,t,createPropertyDescriptor$1(1,n))}:function(e,t,n){return e[t]=n,e},makeBuiltIn$2={exports:{}},DESCRIPTORS$4=descriptors,hasOwn$6=hasOwnProperty_1,FunctionPrototype=Function.prototype,getDescriptor=DESCRIPTORS$4&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$6(FunctionPrototype,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$4||getDescriptor(FunctionPrototype,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$6=functionUncurryThis,isCallable$9=isCallable$f,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$2=(isCallable$9(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$4=global$b,isCallable$8=isCallable$f,inspectSource$1=inspectSource$2,WeakMap$1=global$b.WeakMap,nativeWeakMap=isCallable$8(WeakMap$1)&&/native code/.test(inspectSource$1(WeakMap$1)),shared$1=shared$3.exports,uid=uid$2,keys=shared$1("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=nativeWeakMap,global$3=global$b,uncurryThis$5=functionUncurryThis,isObject$1=isObject$6,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$5=hasOwnProperty_1,shared=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$1=global$3.TypeError,WeakMap$2=global$3.WeakMap,enforce=function(e){return has(e)?get(e):set(e,{})},getterFor=function(t){return function(e){if(isObject$1(e)&&(e=get(e)).type===t)return e;throw TypeError$1("Incompatible receiver, "+t+" required")}},internalState=(has=NATIVE_WEAK_MAP||shared.state?(store=shared.state||(shared.state=new WeakMap$2),wmget=uncurryThis$5(store.get),wmhas=uncurryThis$5(store.has),wmset=uncurryThis$5(store.set),set=function(e,t){if(wmhas(store,e))throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);return t.facade=e,wmset(store,e,t),t},get=function(e){return wmget(store,e)||{}},function(e){return wmhas(store,e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set=function(e,t){if(hasOwn$5(e,STATE))throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$3(e,STATE,t),t},get=function(e){return hasOwn$5(e,STATE)?e[STATE]:{}},function(e){return hasOwn$5(e,STATE)}),{set:set,get:get,has:has,enforce:enforce,getterFor:getterFor}),fails$4=fails$b,isCallable$7=isCallable$f,hasOwn$4=hasOwnProperty_1,DESCRIPTORS$3=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource=inspectSource$2,InternalStateModule$1=internalState,enforceInternalState=InternalStateModule$1.enforce,getInternalState$1=InternalStateModule$1.get,defineProperty$4=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$3&&!fails$4(function(){return 8!==defineProperty$4(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$1=makeBuiltIn$2.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hasOwn$4(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$3?defineProperty$4(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&n&&hasOwn$4(n,"arity")&&e.length!==n.arity&&defineProperty$4(e,"length",{value:n.arity});try{n&&hasOwn$4(n,"constructor")&&n.constructor?DESCRIPTORS$3&&defineProperty$4(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}n=enforceInternalState(e);return hasOwn$4(n,"source")||(n.source=TEMPLATE.join("string"==typeof t?t:"")),e},isCallable$6=(Function.prototype.toString=makeBuiltIn$1(function(){return isCallable$7(this)&&getInternalState$1(this).source||inspectSource(this)},"toString"),isCallable$f),definePropertyModule$2=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.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$6(n)&&makeBuiltIn(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$2.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$1=function(e){return toLength(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike=lengthOfArrayLike$1,createMethod=function(s){return function(e,t,n){var r,i=toIndexedObject$3(e),o=lengthOfArrayLike(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$4=functionUncurryThis,hasOwn$3=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push=uncurryThis$4([].push),objectKeysInternal=function(e,t){var n,r=toIndexedObject$2(e),i=0,o=[];for(n in r)!hasOwn$3(hiddenKeys$2,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$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$1=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$4),uncurryThis$3=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$3=anObject$5,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$1("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$3(e)),n=getOwnPropertySymbolsModule$1.f;return n?concat$1(t,n(e)):t},hasOwn$2=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$1=function(e,t,n){for(var r=ownKeys(t),i=definePropertyModule$1.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$3=fails$b,isCallable$5=isCallable$f,replacement=/#|\.prototype\./,isForced$1=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$5(t)?fails$3(t):!!t)},normalize=isForced$1.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$1.data={},NATIVE=isForced$1.NATIVE="N",POLYFILL=isForced$1.POLYFILL="P",isForced_1=isForced$1,global$2=global$b,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$2=createNonEnumerableProperty$4,defineBuiltIn$2=defineBuiltIn$3,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=copyConstructorProperties$1,isForced=isForced_1,_export=function(e,t){var n,r,i,o=e.target,a=e.global,s=e.stat,l=a?global$2:s?global$2[o]||defineGlobalProperty(o,{}):(global$2[o]||{}).prototype;if(l)for(n in t){if(r=t[n],i=e.dontCallGetSet?(i=getOwnPropertyDescriptor(l,n))&&i.value:l[n],!isForced(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$2(r,"sham",!0),defineBuiltIn$2(l,n,r,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$2=descriptors,uncurryThis$2=functionUncurryThis,call$1=functionCall,fails$2=fails$b,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$1=toObject$3,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$3=Object.defineProperty,concat=uncurryThis$2([].concat),objectAssign=!$assign||fails$2(function(){if(DESCRIPTORS$2&&1!==$assign({b:1},$assign(defineProperty$3({},"a",{enumerable:!0,get:function(){defineProperty$3(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[n]||objectKeys$1($assign({},t)).join("")!=r})?function(e,t){for(var n=toObject$1(e),r=arguments.length,i=1,o=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;i<r;)for(var s,l=IndexedObject(arguments[i++]),c=o?concat(objectKeys$1(l),o(l)):objectKeys$1(l),u=c.length,d=0;d<u;)s=c[d++],DESCRIPTORS$2&&!call$1(a,l,s)||(n[s]=l[s]);return n}:$assign,$$2=_export,assign=objectAssign,objectDefineProperties=(_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign}),{}),DESCRIPTORS$1=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$2=anObject$5,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn=(objectDefineProperties.f=DESCRIPTORS$1&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$2(e);for(var n,r=toIndexedObject$1(t),i=objectKeys(t),o=i.length,a=0;a<o;)definePropertyModule.f(e,n=i[a++],r[n]);return e},getBuiltIn$4),html$1=getBuiltIn$4("document","documentElement"),anObject$1=anObject$5,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html=html$1,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$3,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.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.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var n;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$1(e),n=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,n[IE_PROTO$1]=e):n=NullProtoObject(),void 0===t?n:definePropertiesModule.f(n,t)}),wellKnownSymbol$8=wellKnownSymbol$a,create$1=objectCreate,defineProperty$2=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$8("unscopables"),ArrayPrototype=Array.prototype,addToUnscopables$1=(null==ArrayPrototype[UNSCOPABLES]&&defineProperty$2(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create$1(null)}),function(e){ArrayPrototype[UNSCOPABLES][e]=!0}),iterators={},fails$1=fails$b,correctPrototypeGetter=!fails$b(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$1=hasOwnProperty_1,isCallable$4=isCallable$f,toObject=toObject$3,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object$1=Object,ObjectPrototype=$Object$1.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object$1.getPrototypeOf:function(e){e=toObject(e);if(hasOwn$1(e,IE_PROTO))return e[IE_PROTO];var t=e.constructor;return isCallable$4(t)&&e instanceof t?t.prototype:e instanceof $Object$1?ObjectPrototype:null},fails=fails$b,isCallable$3=isCallable$f,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$1=defineBuiltIn$3,wellKnownSymbol$7=wellKnownSymbol$a,ITERATOR$2=wellKnownSymbol$a("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),null==IteratorPrototype$2||fails(function(){var e={};return IteratorPrototype$2[ITERATOR$2].call(e)!==e})),iteratorsCore=(isCallable$3((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$2])||defineBuiltIn$1(IteratorPrototype$2,ITERATOR$2,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$1=objectDefineProperty.f,hasOwn=hasOwnProperty_1,wellKnownSymbol$6=wellKnownSymbol$a,TO_STRING_TAG$3=wellKnownSymbol$a("toStringTag"),setToStringTag$2=function(e,t,n){(e=e&&!n?e.prototype:e)&&!hasOwn(e,TO_STRING_TAG$3)&&defineProperty$1(e,TO_STRING_TAG$3,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create=objectCreate,createPropertyDescriptor=createPropertyDescriptor$3,setToStringTag$1=setToStringTag$2,Iterators$2=iterators,returnThis$1=function(){return this},createIteratorConstructor$1=function(e,t,n,r){t+=" Iterator";return e.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor(+!r,n)}),setToStringTag$1(e,t,!1),Iterators$2[t]=returnThis$1,e},isCallable$2=isCallable$f,$String$1=String,$TypeError$1=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$2(e))return e;throw $TypeError$1("Can't set "+$String$1(e)+" as a prototype")},uncurryThis$1=functionUncurryThis,anObject=anObject$5,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=uncurryThis$1(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return anObject(e),aPossiblePrototype(t),r?n(e,t):e.__proto__=t,e}}():void 0),$$1=_export,call=functionCall,FunctionName=functionName,isCallable$1=isCallable$f,createIteratorConstructor=createIteratorConstructor$1,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$2,createNonEnumerableProperty$1=createNonEnumerableProperty$4,defineBuiltIn=defineBuiltIn$3,wellKnownSymbol$5=wellKnownSymbol$a,Iterators$1=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$1=wellKnownSymbol$5("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator$1=function(e,t,n,r,i,o,a){createIteratorConstructor(n,t,r);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)}}var l,c,r=t+" Iterator",u=!1,d=e.prototype,p=d[ITERATOR$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?setPrototypeOf(h,IteratorPrototype):isCallable$1(h[ITERATOR$1])||defineBuiltIn(h,ITERATOR$1,returnThis)),setToStringTag(h,r,!0)),PROPER_FUNCTION_NAME&&i==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(d,"name",VALUES):(u=!0,f=function(){return call(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(d,c,l[c]);else $$1({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return d[ITERATOR$1]!==f&&defineBuiltIn(d,ITERATOR$1,f,{name:i}),Iterators$1[t]=f,l},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$1,Iterators=iterators,InternalStateModule=internalState,defineProperty=objectDefineProperty.f,defineIterator=defineIterator$1,DESCRIPTORS=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),values=Iterators.Arguments=Iterators.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS&&"values"!==values.name)try{defineProperty(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},documentCreateElement=documentCreateElement$2,classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$1=global$b,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$4,wellKnownSymbol$4=wellKnownSymbol$a,ITERATOR=wellKnownSymbol$4("iterator"),TO_STRING_TAG$2=wellKnownSymbol$4("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR]!==ArrayValues)try{createNonEnumerableProperty(t,ITERATOR,ArrayValues)}catch(e){t[ITERATOR]=ArrayValues}if(t[TO_STRING_TAG$2]||createNonEnumerableProperty(t,TO_STRING_TAG$2,e),DOMIterables[e])for(var n in ArrayIteratorMethods)if(t[n]!==ArrayIteratorMethods[n])try{createNonEnumerableProperty(t,n,ArrayIteratorMethods[n])}catch(e){t[n]=ArrayIteratorMethods[n]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$1[COLLECTION_NAME]&&global$1[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var isObject=isObject$6,classof$2=classofRaw$1,wellKnownSymbol$3=wellKnownSymbol$a,MATCH$1=wellKnownSymbol$a("match"),isRegexp=function(e){var t;return isObject(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$2(e))},isRegExp=isRegexp,$TypeError=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError("The method doesn't accept regular expressions");return e},wellKnownSymbol$2=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=isCallable$f,classofRaw=classofRaw$1,wellKnownSymbol$1=wellKnownSymbol$a,TO_STRING_TAG=wellKnownSymbol$a("toStringTag"),$Object=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$1=TO_STRING_TAG_SUPPORT?classofRaw: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(e):"Object"==(t=classofRaw(e))&&isCallable(e.callee)?"Arguments":t},classof=classof$1,$String=String,toString$1=function(e){if("Symbol"===classof(e))throw TypeError("Cannot convert a Symbol value to a string");return $String(e)},wellKnownSymbol=wellKnownSymbol$a,MATCH=wellKnownSymbol$a("match"),correctIsRegexpLogic=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[MATCH]=!1,"/./"[t](n)}catch(e){}}return!1},$=_export,uncurryThis=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible=requireObjectCoercible$3,toString=toString$1,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=functionUncurryThis("".indexOf);$({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString(requireObjectCoercible(this)),toString(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}});const clickAwayListener=e=>{var t=null==(t=null==(n=null==e?void 0:e.path)?void 0:n.find)?void 0:t.call(n,e=>{var t;return(null==(t=null==e?void 0:e.id)?void 0:t.toLowerCase().includes("aiware-app-bar"))||(null==(t=null==e?void 0:e.id)?void 0:t.toLowerCase().includes("panel"))||(null==(t=null==e?void 0:e.id)?void 0:t.includes("APP_BAR"))||(null==(t=null==e?void 0:e.id)?void 0:t.includes("undefined"))||(null==(t=null==e?void 0:e.id)?void 0:t.includes("-root"))||(null==(t=null==(e=null==(t=null==e?void 0:e.attributes)?void 0:t.role)?void 0:e.value)?void 0:t.includes("presentation"))}),n="BODY"===(null==(e=null==(n=null==e?void 0:e.path)?void 0:n[0])?void 0:e.tagName);t||n||store$4.dispatch(unmountAllPanel$1("null"))};class RefHolder extends react.exports.Component{render(){return jsxRuntime.exports.jsx("div",{children:this.props.children})}}const rootPostfix="root";function mountPanelListenerSagaGenerator(p,f){return function*(){yield takeEvery$1(mountPanel$1({}).type,function*(e){const{panelId:t,microFrontend:{name:n},panelConfig:r}=null==e?void 0:e.payload;let i=null,o=void 0;f&&(o=yield call$7(f,r.type),i=yield call$7(f,n));var a,s,l,c,e=i||p[n]||(()=>jsxRuntime.exports.jsx("div",{children:"Component Not Found."})),u=o||p[r.type];r.parent&&({panelConfig:{marginTop:a=0,marginStart:s=0,zIndex:l=1e3},panelId:c}=yield select(e=>e.panels.find(e=>e.panelId===r.parent)),c=(null==(c=null===document||void 0===document?void 0:document.getElementById(c))?void 0:c.clientWidth)||650,r.marginTop=r.marginTop||a,r.marginStart=r.marginStart||s+c,r.zIndex=r.zIndex||l);const d=getElement(t+"-"+rootPostfix);d.classList.add("aiware-el"),ReactDOM.render(jsxRuntime.exports.jsx(CacheProvider,Object.assign({value:muiCache},{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(Provider$1,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(ClickAwayListener,Object.assign({onClickAway:clickAwayListener},{children:jsxRuntime.exports.jsx(RefHolder,{children:jsxRuntime.exports.jsx(u,Object.assign({type:"SIMPLE_PANEL",panelId:t,"data-test":"panel-"+t},{children:jsxRuntime.exports.jsx(e,{})}))})}))}))})})),d)}),yield takeEvery$1(unmountPanel$1("").type,function*(t){var e=yield select(e=>e.panels.find(e=>{return(null==(e=null==e?void 0:e.panelConfig)?void 0:e.parentPanelId)===t.payload}));e&&0<Object.keys(e).length&&(yield put(unmountPanel$1(e.panelId))),ReactDOM.unmountComponentAtNode(document.getElementById(t.payload+"-"+rootPostfix)||new DocumentFragment)}),yield takeEvery$1(openLinkOnNewTab({url:""}).type,function(e){e=null==(e=null==e?void 0:e.payload)?void 0:e.url;const t=document.createElement("a");t.target="_blank",t.href=e,t.click()})}}function getPanelsModule(e,t){return{id:name$1,reducerMap:{panels:(t,{type:e,payload:n})=>{switch(e){case mountPanel$1({}).type:{const o=[...t];n.panelConfig.show=!0;var r=n.panelConfig;const a=null==r?void 0:r.parentPanelId;var r=null==r?void 0:r.dimmedStatus;return"dimAllParents"===r?[...o.map(e=>{return Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},e.panelConfig),{dimmed:((null==(e=e.panelConfig)?void 0:e.dimmed)||0)+1})})}),n]:a&&r?(r=t.findIndex(e=>e.panelId===a),o[r]=Object.assign(Object.assign({},o[r]),{panelConfig:Object.assign(Object.assign({},null==(i=o[r])?void 0:i.panelConfig),{dimmed:((null==(r=null==(i=o[r])?void 0:i.panelConfig)?void 0:r.dimmed)||0)+1})}),[...o,n]):[...t,n]}case unmountPanel$1("").type:{r=null==(i=t.find(e=>e.panelId===n))?void 0:i.panelConfig;const s=null==r?void 0:r.parentPanelId;var i=null==r?void 0:r.dimmedStatus;const l=t.filter(e=>e.panelId!==n);return"dimAllParents"===i?l.map(e=>{return Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},e.panelConfig),{dimmed:((null==(e=e.panelConfig)?void 0:e.dimmed)||0)-1})})}):(s&&i&&-1!==(r=t.findIndex(e=>e.panelId===s))&&(l[r]=Object.assign(Object.assign({},l[r]),{panelConfig:Object.assign(Object.assign({},l[r].panelConfig),{dimmed:((null==(i=l[r].panelConfig)?void 0:i.dimmed)||0)-1})})),l)}case hidePanel$1("").type:{let e=t.find(e=>e.panelId===n);r=t.filter(e=>e.panelId!==n);return e=Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},null===e||void 0===e?void 0:e.panelConfig),{show:!1})}),[...r,e]}case unmountAllPanel$1("").type:return t.map(e=>Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},null==e?void 0:e.panelConfig),{show:!1})}));case updatePanelMicroFrontendProps({}).type:{let e=t.find(e=>e.panelId===n.id);i=t.filter(e=>e.panelId!==n.id);return e=Object.assign(Object.assign({},e),{microFrontend:Object.assign(Object.assign({},null===e||void 0===e?void 0:e.microFrontend),{config:n.props})}),[...i,e]}}return t||[]}},sagas:[mountPanelListenerSagaGenerator(e,t)],initialActions:[]}}const useStyles$2=makeStyles()(e=>({sdkSnackbarContainer:{"& svg":{fill:"white"}}}));function CustomSnackbar(){const n=useDispatch(),[e,t]=react.exports.useState([]),[r,i]=react.exports.useState(!1),[o,a]=react.exports.useState(void 0),{message:s,duration:l}=useSelector(snackbarSelector);var c=useStyles$2()["classes"],u=(react.exports.useEffect(()=>{null!==s&&void 0!==s&&s.content&&t(e=>[...e,s])},[s]),react.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},{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)}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"),!0}const 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}})});!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const nameSpace="@helpPanel",updateSelectedTab=createAction(nameSpace+"/UPDATE_SELECTED_TAB",function(e,t){return{payload:{selectedTabId:e,tabLink:t}}}),setCustomKnowledgeBaseUrl=createAction(nameSpace+"/SET_CUSTOM_KNOWLEDGE_BASE_URL",function(e){return{payload:{url:e}}}),setCustomDocsUrl=createAction(nameSpace+"/SET_CUSTOM_DOCS_URL",function(e){return{payload:{url:e}}}),initialState={selectedTabId:0,tabLink:"https://help.veritone.com/",customKnowledgeBaseUrl:"",customDocsUrl:""},getTabLinkReducer=createReducer(initialState,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="helpPanel",helpCenterSelectedTabIdSelector=e=>null!=e&&e[namespace]?e[namespace].selectedTabId:0,customDocsUrlSelector=e=>null!=e&&e[namespace]?e[namespace].customDocsUrl:"",customKnowledgeBaseUrlSelector=e=>null!=e&&e[namespace]?e[namespace].customKnowledgeBaseUrl:"";function getHelpPanelModule(){return{id:"help",reducerMap:{[namespace]: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$1=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$1()["classes"];const[n,r]=react.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$1()["classes"];const[n,r]=react.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://help.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(e){var t=useSelector(initialConfigSelector),n=useSelector(customKnowledgeBaseUrlSelector),r=useSelector(customDocsUrlSelector),i=useSelector(helpCenterSelectedTabIdSelector);const o=useSelector(e=>null==e?void 0:e.panels);var a=useStyles$1()["classes"],[s]=react.exports.useState(defaultLocale);const l=useDispatch();var c=null===o||void 0===o?void 0:o.find(e=>"CUSTOM_HELP_PANEL_ID"===e.panelId),n=c&&n?n:t.knowledgeBaseURL,c=c&&r?r:t.docsURL;return jsxRuntime.exports.jsx(lib$4.DynamicModuleLoader,Object.assign({modules:[getHelpPanelModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,Object.assign({locale:s},{children:jsxRuntime.exports.jsx("div",Object.assign({className:a.drawerContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({id:"setting-content",className:a.tabContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({className:a.tabContent},{children:jsxRuntime.exports.jsx("div",Object.assign({className:a.root},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:a.tabPanels},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:a.customTabs},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:i,onChangeTab:e=>{l(updateSelectedTab(e,tabsList[e].url))},tabsList:tabsList})})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:a.tabPanels},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:i,index:0},{children:jsxRuntime.exports.jsx(Knowledgebase,{path:n})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:i,index:1},{children:jsxRuntime.exports.jsx(Documentation,{path:c})}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:a.aiWareIcon},{children:jsxRuntime.exports.jsx("img",{src:img$w,alt:"icon",draggable:"false"})}))]}))}))}))}))}))}))}))}var index_esm=Object.freeze({__proto__:null,HelpCenterPanel:HelpCenter,customDocsUrlSelector:customDocsUrlSelector,customKnowledgeBaseUrlSelector:customKnowledgeBaseUrlSelector,helpCenterSelectedTabIdSelector:helpCenterSelectedTabIdSelector,setCustomDocsUrl:setCustomDocsUrl,setCustomKnowledgeBaseUrl:setCustomKnowledgeBaseUrl,updateSelectedTab:updateSelectedTab});const useStyles=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=()=>{var e=useSelector(userSelector$2),t=useStyles()["classes"];const n=useSelector(initialConfigSelector).applicationId;var r=useSelector(applicationSelector);const i=useSelector(switchApiSelector),o=(null==r?void 0:r.application)||[];r=null==r?void 0:r.status;const a=[...o];var s=a.sort(function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}),l=o.findIndex(e=>e.id===n);return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(n)&&l<0&&"success"===r?jsxRuntime.exports.jsx(Modal$1,Object.assign({className:t.dialog,open:!0},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:t.container},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"application-dialog-title",className:t.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:t.orgName},{children:null!=(l=null==e?void 0:e.organization)&&l.organizationName?e.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"})})),jsxRuntime.exports.jsx("div",Object.assign({className:t.appListContainer},{children:jsxRuntime.exports.jsx(AppList,{title:"",selectedAppId:null,onSelectApplication:e=>{window.open(i+"/"+e,"_self")},applications:s,useGrid:!1,row:3})}))]}))})):null};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;function SnackbarRenderer(){return jsxRuntime.exports.jsx(Provider$1,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(lib$4.DynamicModuleLoader,Object.assign({modules:[getSnackbarModule()]},{children:jsxRuntime.exports.jsx(CustomSnackbar,{})}))}))}store$4.addModules([getWidgetsModule(),getPanelsModule(registry,registryLookup),getDataModule(),getConfigModule(),getAuthModule()]);let hasLoaded=!1;const AppBarPreLoader=()=>{var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&!hasLoaded&&(hasLoaded=!0,setTimeout(()=>{store$4.addModules([getAppbarPanelModule()])},0)),null};function ApplicationDialogPreLoader(){var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&hasLoaded?jsxRuntime.exports.jsx(ApplicationDialog,{}):null}const authHelpers={updateToken(e){e?store$4.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{store$4.dispatch(logout())},1e3)):store$4.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&store$4.dispatch(updateActivityStatus$1())}};function PortalRenderer(){return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(SupportCenterPixel,{}),jsxRuntime.exports.jsx(Provider$1,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(AppBarPreLoader,{})}))]})}function ApplicationDialogRenderer(){return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Provider$1,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ApplicationDialogPreLoader,{})})}))})}const ThemeInitializer=()=>(useTheme(),null),root=getElement("aiWARE"),mountWidget=(root.classList.add("aiware-el"),ReactDOM.render(jsxRuntime.exports.jsx(CacheProvider,Object.assign({value:muiCache},{children:jsxRuntime.exports.jsxs(AIWareThemeProvider,{children:[jsxRuntime.exports.jsx(PortalRenderer,{}),jsxRuntime.exports.jsx(SnackbarRenderer,{}),jsxRuntime.exports.jsx(ApplicationDialogRenderer,{}),jsxRuntime.exports.jsx(ThemeInitializer,{})]})})),root),(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$4.dispatch(mountWidget$1({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n}),unmountWidget=e=>(store$4.dispatch(unmountWidget$1(e)),!0),mountPanel=(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:r}=e;store$4.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 store$4.addModule(r),n},unmountPanel=e=>(store$4.dispatch(unmountPanel$1(e)),!0),hidePanel=e=>(store$4.dispatch(hidePanel$1(e)),!0),unmountAllPanel=()=>{store$4.dispatch(unmountAllPanel$1(""))};function init(e,t){validateConfig(e)&&store$4.dispatch(getInitConfig(Object.assign(Object.assign({},e),{onComplete:t})))}function helpCenter(){const e=new HelpCenter$2({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}}function dataCenter(){const e=new DataCenter$1;return{openImporterPanel:e.openImporterPanel.bind(e)}}function handleEvents(){function n(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){n(e),sdkEventManager.on.call(sdkEventManager,e,t)},off:function(e){n(e),sdkEventManager.off.call(sdkEventManager,e)}}}const mountPanelForResponse=e=>mountPanelForResponse$1(e,store$4),aiwareEvents=handleEvents();window&&(window.aiWare_initTesting=()=>{window.aiWare_store=store$4,window.aiWare_theme={darkTheme:darkTheme,lightTheme:lightTheme}},window.aiware={init:init,auth:authHelpers,helpCenter:helpCenter(),dataCenter:dataCenter(),on:aiwareEvents.on,off:aiwareEvents.off,hidePanel:hidePanel,unmountPanel:unmountPanel,store:store$4,registry:registry,registerComponent:registerComponent,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,mountPanel:mountPanel,mountPanelForResponse:mountPanelForResponse,unmountWidget:unmountWidget,commit:"2e86539d3"});export{ListItem$1 as $,AIWareIntlProvider as A,Box$1 as B,interopRequireDefault as C,createAction as D,createReducer as E,FormattedMessage$1 as F,Grid$1 as G,createSlice as H,ENGINE_OWNER_TYPES as I,ENGINE_FILTER_TYPES as J,lib$4 as K,LoadingButton$1 as L,preferredLanguageSelector as M,baseUrlSelector as N,rootApiSelector as O,Provider$1 as P,sessionTokenSelector as Q,graphEndpointSelector as R,Switch$1 as S,Typography$1 as T,controllerNodeRedImageSelector as U,controllerUrlSelector as V,automateControllerUrlSelector as W,automateUrlSelector as X,Portal$1 as Y,List$2 as Z,_extends as _,generateUtilityClasses as a,img$Q as a$,ListItemIcon$1 as a0,ListItemText$1 as a1,all as a2,img$k as a3,img$l as a4,img$n as a5,img$o as a6,Divider$1 as a7,Tooltip$1 as a8,IconButton$1 as a9,getTemplateById as aA,getTemplateByIdFallback as aB,TableContainer$1 as aC,Table$1 as aD,TableHead$1 as aE,TableRow$1 as aF,TableCell$1 as aG,TableSortLabel$1 as aH,TableBody$1 as aI,img$d as aJ,Popper$1 as aK,ClickAwayListener as aL,Fade$1 as aM,img$p as aN,img$m as aO,img$M as aP,img$y as aQ,Dialog$1 as aR,DialogTitle$1 as aS,DialogContent$1 as aT,DialogActions$1 as aU,Select$1 as aV,MenuItem$1 as aW,Snackbar$1 as aX,default_1$2 as aY,img$f as aZ,img$h as a_,img$e as aa,img$C as ab,getNodeRedVersionEdgeApi as ac,createEnginebuild as ad,Skeleton$1 as ae,takeLatest$1 as af,fetchAllTags as ag,put as ah,select as ai,fetchFlows as aj,call$7 as ak,fetchTemplateGallery as al,isRevisionsExistOnServerRequest as am,FormLabel$1 as an,default_1$7 as ao,FormGroup$1 as ap,FormControlLabel$1 as aq,Checkbox$1 as ar,fetchTemplateGalleryFallback as as,Button$1 as at,img$i as au,fetchVeritoneGraphQLApi as av,flowStyles as aw,NoResults as ax,img$8 as ay,setApiEndpoint as az,styled$1 as b,_hasPath as b$,Tabs$1 as b0,Tab$1 as b1,deleteEngine as b2,img$g as b3,AIWareFormatMessage as b4,FormattedDate as b5,useTheme as b6,KeyboardArrowRight as b7,KeyboardArrowLeft as b8,useId as b9,img$a as bA,img$9 as bB,isEmpty_1 as bC,Backdrop$1 as bD,CircularProgress$1 as bE,getDefaultMiddleware as bF,isNil_1 as bG,UpDown as bH,Icon$1 as bI,get_1 as bJ,map_1 as bK,keys_1 as bL,RadioGroup$1 as bM,Avatar$1 as bN,img$s as bO,FormHelperText$1 as bP,img$c as bQ,StyledEngineProvider as bR,ThemeProvider as bS,lightTheme as bT,CssBaseline as bU,Hide as bV,showMessage as bW,MessageSeverity as bX,baseGraphQLApi as bY,Radio$1 as bZ,fetchEngine as b_,InputUnstyled as ba,isHostComponent as bb,createSvgIcon$2 as bc,getDefaultExportFromNamespaceIfNotNamed as bd,commonjsRequire as be,_assertThisInitialized$1 as bf,_setPrototypeOf$3 as bg,reactDom as bh,React$1 as bi,_inheritsLoose$2 as bj,ReactDOM as bk,__awaiter$a as bl,__generator$2 as bm,__spread as bn,PropTypes as bo,connect as bp,Bookmark as bq,EngineFlagIcons as br,createAsyncThunk as bs,withStyles as bt,getConfigModule as bu,getAuthModule as bv,getSnackbarModule as bw,CacheProvider as bx,muiCache as by,img$N as bz,Paper$1 as c,_arrayLikeKeys as c$,_createCompounder as c0,_baseIteratee as c1,isArrayLike_1 as c2,toInteger_1 as c3,hoistNonReactStatics_cjs as c4,Transition$1 as c5,useControlled as c6,Collapse$1 as c7,ButtonBase$1 as c8,alpha as c9,useBackupImg as cA,img$1u as cB,configSelector as cC,baseGraphQLApiWithError as cD,useDoubleClick as cE,VerifiedFilled as cF,Add as cG,img$12 as cH,Filter$1 as cI,DynamicTable as cJ,useTheme$2 as cK,getThemeProps as cL,React$2 as cM,_arrayPush as cN,isArray_1 as cO,_getNative as cP,eq_1 as cQ,_castPath as cR,_isIndex as cS,isObject_1 as cT,_toKey as cU,_root as cV,_Uint8Array as cW,_overArg as cX,_isPrototype as cY,isObjectLike_1 as cZ,_baseGetTag as c_,commonjsGlobal$1 as ca,getDefaultExportFromCjs as cb,TransitionGroup$1 as cc,useForkRef as cd,useEnhancedEffect$1 as ce,combineReducers as cf,createSelector as cg,fork as ch,AIWareThemeProvider as ci,Close$1 as cj,FullscreenExit as ck,Fullscreen as cl,TabPanel as cm,default_1$4 as cn,InputAdornment$1 as co,unmountPanel$1 as cp,AvailableComponents as cq,delay$1 as cr,mountPanel$1 as cs,DialogContentText$1 as ct,MoreVert as cu,Menu$1 as cv,Edit as cw,Upload as cx,Delete as cy,CustomTabs as cz,capitalize$2 as d,createUnarySpacing as d$,isArguments_1 as d0,isBuffer$3 as d1,isFunction_1 as d2,isTypedArray_1 as d3,_Stack as d4,_baseFor as d5,identity_1 as d6,_isIterateeCall as d7,_Set as d8,_setToArray as d9,startCase_1 as dA,times_1 as dB,ReactIs as dC,upperFirst_1 as dD,isString_1 as dE,_baseSlice as dF,channel as dG,useIntl as dH,VideoCamera as dI,Image$1 as dJ,Sound as dK,Description$1 as dL,toNumber_1 as dM,ProgressStepper as dN,CurlyBraces as dO,UnknownDocument as dP,sdkEventManager as dQ,SdkEvents as dR,SdkError as dS,EngineClassIcons as dT,Mode2 as dU,EngineModeIcons as dV,DeploymentModelIcons as dW,guid as dX,extendSxProp as dY,handleBreakpoints as dZ,resolveBreakpointValues as d_,_SetCache as da,_cacheHas as db,_baseToString as dc,_baseTrim as dd,_castSlice as de,_stringToArray as df,toString_1 as dg,isSymbol_1 as dh,_arrayMap as di,_baseMap as dj,_baseGet as dk,_baseUnary as dl,lib as dm,getThunkExtension_1 as dn,composeWithDevTools as dp,orange$1 as dq,deepOrange$1 as dr,createTheme$1 as ds,createIntl as dt,SvgIcon$1 as du,unmountAllPanel$1 as dv,takeEvery$1 as dw,isNull_1 as dx,size_1 as dy,take as dz,_objectWithoutPropertiesLoose$2 as e,img$J as e$,deepmerge as e0,getValue$2 as e1,useEventCallback as e2,setRef as e3,inputClasses$1 as e4,inputBaseClasses$1 as e5,outlinedInputClasses$1 as e6,filledInputClasses$1 as e7,ClearIcon as e8,ArrowDropDownIcon as e9,AdminCenter as eA,img$P as eB,img$1 as eC,img$w as eD,userSelector$2 as eE,enableBetaFeatures as eF,Badge$1 as eG,openLinkOnNewTab as eH,avatarClasses as eI,authSelector as eJ,injectIntl as eK,headerBarSelector as eL,getSortName as eM,img$5 as eN,InputLabel$1 as eO,ListItemAvatar$1 as eP,OrganizationTabIcon as eQ,ScopedCssBaseline$1 as eR,AlarmTwo as eS,getApplicationsApi as eT,ListItemSecondaryAction$1 as eU,updateTokenSuccess as eV,postNotificationCommand as eW,aiwareEvent as eX,notificationCommands as eY,panelsSelector as eZ,css as e_,_Symbol as ea,_baseEach as eb,_arrayFilter as ec,emStyled as ed,isPlainObject as ee,useTheme$3 as ef,useIsFocusVisible as eg,ownerDocument as eh,appendOwnerState as ei,lighten as ej,darken as ek,slotShouldForwardProp as el,shouldSpreadAdditionalProps$1 as em,Slide$1 as en,hidePanel$1 as eo,updatePanelMicroFrontendProps as ep,setData as eq,keyframes as er,TabId as es,PersonalProfile$1 as et,Organizations as eu,DataCenter as ev,FlowCenter2 as ew,DeveloperCenter as ex,Marketplace as ey,LibraryCenter as ez,clsx as f,EnumHelpers as f$,img$I as f0,img$1r as f1,img$1q as f2,img$1p as f3,img$G as f4,img$1s as f5,img$F as f6,emphasize as f7,_arraySome as f8,Process as f9,ExpandMore as fA,img$r as fB,img$t as fC,img as fD,FilterRemove as fE,FolderOpen as fF,Voice as fG,FolderFilled as fH,Time as fI,img$u as fJ,Undefined as fK,YoutubeSource as fL,PodcastSource as fM,TVSource as fN,RadioSource as fO,selectOrgId as fP,selectIsUserAdmin as fQ,ErrorState$1 as fR,StepConnector$1 as fS,NullState$2 as fT,Group as fU,PermissionChangedAction as fV,AddGroup as fW,StepperContext$1 as fX,StepContext$1 as fY,initialConfigSelector as fZ,ConfirmationModal as f_,Information as fa,NewFolder as fb,SpecialFolder as fc,User as fd,Source as fe,ProcessingDetail as ff,Search$1 as fg,getLibraryModule as fh,selectApiConfigs$1 as fi,FullScreenContainer as fj,betaFeaturesSelector as fk,cmsUrlSelector as fl,UserAddFilled as fm,Popover$1 as fn,MenuList$1 as fo,MoveFolder as fp,ErrorBoundary as fq,Download as fr,img$6 as fs,selectPanelByPanelName as ft,EngineCategoryIcons as fu,Settings$2 as fv,Hamburger as fw,List as fx,EditAttributes as fy,MoreHor as fz,generateUtilityClass as g,formatBytes as g0,NotInterested as g1,mountPanelForResponse$1 as g2,ApplicationTabIcon as g3,Lock as g4,SecurityGroup as g5,NoApps as g6,green$1 as g7,selectors as g8,LibraryDropdown as g9,Remove as ga,Save as gb,Input$1 as gc,AddUser as gd,Modal$1 as ge,registry as gf,registerComponent as gg,AvailableWidgets as gh,root as gi,mountWidget as gj,unmountWidget as gk,mountPanel as gl,unmountPanel as gm,hidePanel as gn,unmountAllPanel as go,init as gp,composeClasses as h,useDispatch as i,jsxRuntime as j,useSelector as k,authStatusSelector as l,makeStyles as m,authContextSelector as n,AuthContext as o,lodash as p,Alert$1 as q,react as r,store$4 as s,authErrorMessage as t,useThemeProps as u,FormControl$1 as v,TextField$1 as w,classnames as x,resetPasswordRequest as y,createSvgIcon as z};
|