aiware-js 2.25.1 → 2.26.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.js CHANGED
@@ -1 +1 @@
1
- export{gB as AvailableWidgets,gH as hidePanel,ec as hidePanelAction,gJ as init,gF as mountPanel,cq as mountPanelAction,gD as mountWidget,gA as registerComponent,gz as registry,gC as root,ee as setData,s as store,gI as unmountAllPanel,gG as unmountPanel,cn as unmountPanelAction,gE as unmountWidget,ed as updatePanelMicroFrontendPropsAction}from"./js-core.esm.js";
1
+ export{gC as AvailableWidgets,gI as hidePanel,ec as hidePanelAction,gK as init,gG as mountPanel,cq as mountPanelAction,gE as mountWidget,gB as registerComponent,gA as registry,gD as root,ee as setData,s as store,gJ as unmountAllPanel,gH as unmountPanel,cn as unmountPanelAction,gF as unmountWidget,ed as updatePanelMicroFrontendPropsAction}from"./js-core.esm.js";
package/js-core.esm.js CHANGED
@@ -924,7 +924,7 @@ createScheduledJob(input:{
924
924
  }
925
925
  }
926
926
  }
927
- }`,graphEndpoint:o,token:a});if(!n.errors&&(e=null==(l=null==n?void 0:n.data)?void 0:l.__type)){n=e["name"];const r={name:n,fields:[]};r.fields=(e.fields||[]).map(e=>({name:e.name,args:e.args.map(e=>({name:e.name,type:this.typeBuilder(e.type)})),type:this.typeBuilder(null==e?void 0:e.type)})),this.types.push(r),e=r}}if(s){const i=[];return null!==e&&void 0!==e&&e.fields.forEach(t=>{s.find(e=>t.name===e)&&i.push(t)}),i}return null===e||void 0===e?void 0:e.fields}})}typeBuilder(e){if(e.name)return e.name;let t="";return e.kind&&("NON_NULL"===e.kind&&(t=this.typeBuilder(e.ofType)+"!"),"LIST"===e.kind&&(t="["+this.typeBuilder(e.ofType)+"]")),t}getQueries(){return this.query}getMutations(){return this.mutation}getTypes(){return this.types}isOperationValid(t,e){return e?!!this[e].find(e=>e.name===t):!!this.query.find(e=>e.name===t)||!!this.mutation.find(e=>e.name===t)}indentationChecker(e){let t=0,n=0;for(;" "===e[n];)t+=1,n+=1;return t}nestingChecker(e){let t=0;for(;t<e.length;)"{"===e[t][e[t].length-1]&&e[t+1]&&"}"===e[t+1][e[t+1].length-1]?e.splice(t,2):t+=1;if(2===e.length)throw new Error("Provided operation payload is not supported");return e}recursiveFieldCheck(p,f,h,m,g=[],v,n=1,y=2){var x;return __awaiter$7(this,void 0,void 0,function*(){let e=" ",r="",t=y;for(;t-1;)e+=" ",r+=" ",--t;!this.types.find(e=>e.name===f)&&f&&(yield this.getAvailableFields(h,m,f));let i=n;for(;i<p.length;){let n;const s=p[i].includes("...");s?(n=p[i].split("on")[1].split("{")[0].trim(),yield this.getAvailableFields(h,m,n)):n=p[i].trim().split("(")[0].trim().split("{")[0].trim();let t;t=n.includes(":")?n.split(":")[1]:n;const l=this.types.find(e=>s?e.name===n:e.name===(f||"").replace(/[\[\]!]+/g,""));if(l||"}"===n||s){var o=s?l:null===l||void 0===l?void 0:l.fields.find(e=>e.name===t);if(o||"}"===n){let t="";if(p[i].includes("(")&&o){var a=this.getParameters(p,i);const c=this.paramsParser(a,v);if(c.length){const u=[],d=(null==(x=null===l||void 0===l?void 0:l.fields.find(e=>e.name===n))?void 0:x.args)||[];c.forEach(t=>{var e,n=d.find(e=>e.name in t&&t[e.name]===e.type);n&&(-1!==(e=this.params.findIndex(e=>t.field in e))&&(this.params[e].validated=!0),u.push(Object.assign(Object.assign({},n),{field:t.field})))}),u.length&&(t+="(",u.forEach(e=>t+=`${e.name}: ${e.field} `),t+=")")}}if(p[i].includes("{")&&o||s){s?g.push(`${e}... on ${n} ${t}{`):g.push(""+e+n+` ${t}{`);a=s?n:(null==o?void 0:o.type)||null;i=yield this.recursiveFieldCheck(p,a,h,m,g,v,i+1,y+1)}else{if(p[i].includes("}"))return g.push(r+"}"),i===p.length-1?this.nestingChecker(g).join("\n"):i;g.push(""+e+n)}}else if(p[i].includes("{")){let e=1;for(;e;)i+=1,p[i].includes("{")&&(e+=1),p[i].includes("}")&&--e}}i+=1}})}getParameters(e,t){return e[t].split("(")[1].split(")")[0].trim().replace(/:\s/g,":")}paramsParser(e,n){const t=e.split(":"),r=[],i=(t.forEach(e=>{const t=e.trim();let n;t.includes(" ")&&(n=t.split(" ")),(n=t.includes(",")?t.split(","):n)?n.forEach(e=>r.push(e.trim())):r.push(t)}),[]);for(let t=0;t<r.length-1;t++){var o=n.find(e=>r[t+1]in e);o&&(o={[r[t]]:o[r[t+1]],field:r[t+1],validated:!1},i.push(o)),t+=1}return i}queryParser(m,g,v){return __awaiter$7(this,void 0,void 0,function*(){try{this.initialized||(yield this.initialize(m,g,!1));const u=v.split("\n");let i,e="";u[0].includes("(")?(i=u[0].split("(")[0].trim(),(e=(e=(e=(e=this.getParameters(u,0)).includes(",")?e.split(",").join(""):e).split("$")).filter(e=>!!e)).forEach(e=>e="$"+e.trim()),this.params=e.map(e=>{const[t,n]=e.split(":");return{["$"+t]:n.trim(),validated:!1}})):i=u[0].split("{")[0].trim(),i=(i=i.includes(" ")?i.split(" ")[0]:i)||"query";var o,t=u[1],a=this.indentationChecker(t);const d=[];for(let r=1;r<u.length;r++){let n="";if(a===this.indentationChecker(u[r])){let t;let e;if(u[r].includes("(")?(t=u[r].split("(")[0].trim(),o=u[r].split("(")[1].split(")")[0].trim(),e=this.paramsParser(o,this.params)):t=u[r].split("{")[0].trim(),"}"!==t){const p=this[i].find(e=>e.name===t);if(e){const f=[];e.forEach(t=>{var e,n=p.args.find(e=>e.name in t&&t[e.name]===e.type);n&&(-1!==(e=this.params.findIndex(e=>t.field in e))&&(this.params[e].validated=!0),f.push(Object.assign(Object.assign({},n),{field:t.field})))}),f.length&&(n+="(",f.forEach(e=>n+=`${e.name}: ${e.field} `),n+=")")}d.push({operation:t,line:r,type:null===p||void 0===p?void 0:p.type,args:n})}}}let r="";for(let t=0;t<d.length;t++){var n=(d[t+1]||{}).line||u.length-1,s=d[t].type;const h=u.slice(d[t].line,n);var l=md5(h.join("").replace(/\s/g,""));let e;if("string"!=typeof(e=this.hashMap[l]?(console.log(`returning ${d[t].operation} from memory`),this.hashMap[l]):yield this.recursiveFieldCheck(h,s,m,g,[` ${d[t].operation} ${d[t].args} {`],this.params)))throw console.log(e),new Error("Introspection utility failed while validating operation");this.hashMap[l]=e,r+="\n"+e+"\n"}if(r){let n="";if(this.params.forEach(e=>{var t;e.validated&&([e,t]=Object.entries(e)[0],n+=e+`: ${t} `)}),this.params.length&&!n)throw new Error("No valid parameters found");n=n&&"("+n+")",this.params=[],r=`${i} ${n} {`+r+"}";var c=this.params.filter(e=>!e.validated).map(e=>{var{}=e,e=__rest$4(e,["validated"]);return Object.keys(e)[0].replace("$","")});return this.params=[],{query:r,unsupportedArgs:c}}if(this.safety)throw new Error("Instrospection utility failed. Safety is ON");return console.log("Instrospection utility failed. Safety is OFF. Proceeding with original operation payload"),{query:v}}catch(e){if(this.params=[],console.log(e),!this.safety)return{query:v}}})}}var AuthContext,Status,MessageSeverity,gqlIntrospection=new GqlInstrospection;(AuthContext=AuthContext||{}).ResetPassword="ResetPassword",function(e){e.idle="idle",e.loading="loading",e.success="success",e.failure="failure",e.skipped="skipped",e.ready="ready"}(Status=Status||{});const namespace$3$1="auth",initialState$3$1={oAuthToken:"",oAuthStatus:Status.idle,initStatus:Status.idle,userId:"",sessionToken:"",user:{},status:Status.idle,authContext:null,errorMessage:null,userIsActive:!0},authSlice=createSlice({name:namespace$3$1,initialState:initialState$3$1,reducers:{fetchUserRequest(e){e.status=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=Status.success},fetchUserError(e){e.status=Status.failure},updateTokenRequest(e,t){e.status=Status.idle},updateTokenSuccess(e,t){t=t.payload.token;e.sessionToken=t,e.user.token=t,e.status=Status.success},updateTokenError(e){e.sessionToken="",e.status=Status.failure},updateUserLanguageStart(e,t){e.status=Status.loading},updateUserLanguageSuccess(e,t){e.user.preferredLanguage=t.payload,e.status=Status.success},refreshTokenRequest(e,t){e.status=Status.loading},refreshTokenSuccess(e,t){e.sessionToken=null==(t=null==(t=t.payload)?void 0:t.refreshToken)?void 0:t.token,e.status=Status.success},extendTokenRequest(e,t){e.status=Status.loading},extendTokenSuccess(e,t){e.sessionToken!==t.payload.token&&(e.sessionToken=t.payload.token),e.status=Status.success},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=Status.loading},logoutSuccess(e){e.status=Status.success},logoutError(e){e.status=Status.failure},resetPasswordRequest(e,t){e.status=Status.loading,e.errorMessage=null,e.authContext=AuthContext.ResetPassword},resetPasswordError(e,t){t=t.payload;e.status=Status.failure,e.errorMessage=t.message},resetPasswordSuccess(e){e.status=Status.success,e.errorMessage=null},oAuthGrantReadyToStart(e){e.oAuthStatus=Status.ready},oAuthGrantStart(e){e.oAuthStatus=Status.loading},oAuthGrantSkip(e){e.oAuthStatus=Status.skipped},oAuthGrantSuccess(e,t){e.oAuthToken=t.payload,e.oAuthStatus=Status.success},oAuthGrantFailure(e){e.oAuthStatus=Status.failure},sdkInitSuccess(e){e.initStatus=Status.success},sdkInitFailure(e){e.initStatus=Status.failure},updateUserRecentApplicationsStart(e,t){e.status=Status.loading},updateUserRecentApplicationsSuccess(e,t){e.user.recentApplications=t.payload,e.status=Status.success}}}),{fetchUserRequest,fetchUserSuccess,fetchUserError,refreshTokenRequest,refreshTokenSuccess,extendTokenRequest,extendTokenSuccess,setTokenExpiration,logoutRequest,logoutSuccess,logoutError,updateTokenRequest,updateTokenSuccess,updateTokenError,updateUserLanguageStart,updateUserLanguageSuccess,resetPasswordRequest,resetPasswordError,resetPasswordSuccess,oAuthGrantStart,oAuthGrantReadyToStart,oAuthGrantSkip,oAuthGrantSuccess,oAuthGrantFailure,sdkInitSuccess,sdkInitFailure,updateUserRecentApplicationsStart,updateUserRecentApplicationsSuccess}=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},selectHasUserCreateRootFolderPermission=e=>{return((null==(e=null==(e=e[namespace$3$1])?void 0:e.user)?void 0:e.myRights)||[]).some(e=>["collections.collections.create","cms.media.create","veritone.superadmin"].includes(e))},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},selectIsOLPEnabled=e=>{return"enabled"===(null==(e=null==(e=null==(e=null==(e=null==(e=e[namespace$3$1])?void 0:e.user)?void 0:e.organization)?void 0:e.kvp)?void 0:e.features)?void 0:e.enableRBACFeature)},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")},oAuthTokenSelector=e=>{return null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.oAuthToken},oAuthStatusSelector=e=>{return null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.oAuthStatus},initStatusSelector=e=>{return null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.initStatus},userRecentApplicationsSelector=e=>{var t;return null!=(t=null==(t=e[namespace$3$1])?void 0:t.user)&&t.recentApplications?JSON.parse(null==(e=null==(t=e[namespace$3$1])?void 0:t.user)?void 0:e.recentApplications):[]},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},oauthRedirectUriSelector=e=>{return(null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.initConfig)?void 0:e.oAuthRedirectUri)||window.location.protocol+"//"+window.location.hostname},selectApiConfigs$1=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,n)=>({apiRoot:e,graphQLEndpoint:t,token:n})),getAppConfig=(e,t)=>__awaiter$7(void 0,void 0,void 0,function*(){try{return yield baseGraphQLApi({query:`query {
927
+ }`,graphEndpoint:o,token:a});if(!n.errors&&(e=null==(l=null==n?void 0:n.data)?void 0:l.__type)){n=e["name"];const r={name:n,fields:[]};r.fields=(e.fields||[]).map(e=>({name:e.name,args:e.args.map(e=>({name:e.name,type:this.typeBuilder(e.type)})),type:this.typeBuilder(null==e?void 0:e.type)})),this.types.push(r),e=r}}if(s){const i=[];return null!==e&&void 0!==e&&e.fields.forEach(t=>{s.find(e=>t.name===e)&&i.push(t)}),i}return null===e||void 0===e?void 0:e.fields}})}typeBuilder(e){if(e.name)return e.name;let t="";return e.kind&&("NON_NULL"===e.kind&&(t=this.typeBuilder(e.ofType)+"!"),"LIST"===e.kind&&(t="["+this.typeBuilder(e.ofType)+"]")),t}getQueries(){return this.query}getMutations(){return this.mutation}getTypes(){return this.types}isOperationValid(t,e){return e?!!this[e].find(e=>e.name===t):!!this.query.find(e=>e.name===t)||!!this.mutation.find(e=>e.name===t)}indentationChecker(e){let t=0,n=0;for(;" "===e[n];)t+=1,n+=1;return t}nestingChecker(e){let t=0;for(;t<e.length;)"{"===e[t][e[t].length-1]&&e[t+1]&&"}"===e[t+1][e[t+1].length-1]?e.splice(t,2):t+=1;if(2===e.length)throw new Error("Provided operation payload is not supported");return e}recursiveFieldCheck(p,f,h,m,g=[],v,n=1,y=2){var x;return __awaiter$7(this,void 0,void 0,function*(){let e=" ",r="",t=y;for(;t-1;)e+=" ",r+=" ",--t;!this.types.find(e=>e.name===f)&&f&&(yield this.getAvailableFields(h,m,f));let i=n;for(;i<p.length;){let n;const s=p[i].includes("...");s?(n=p[i].split("on")[1].split("{")[0].trim(),yield this.getAvailableFields(h,m,n)):n=p[i].trim().split("(")[0].trim().split("{")[0].trim();let t;t=n.includes(":")?n.split(":")[1]:n;const l=this.types.find(e=>s?e.name===n:e.name===(f||"").replace(/[\[\]!]+/g,""));if(l||"}"===n||s){var o=s?l:null===l||void 0===l?void 0:l.fields.find(e=>e.name===t);if(o||"}"===n){let t="";if(p[i].includes("(")&&o){var a=this.getParameters(p,i);const c=this.paramsParser(a,v);if(c.length){const u=[],d=(null==(x=null===l||void 0===l?void 0:l.fields.find(e=>e.name===n))?void 0:x.args)||[];c.forEach(t=>{var e,n=d.find(e=>e.name in t&&t[e.name]===e.type);n&&(-1!==(e=this.params.findIndex(e=>t.field in e))&&(this.params[e].validated=!0),u.push(Object.assign(Object.assign({},n),{field:t.field})))}),u.length&&(t+="(",u.forEach(e=>t+=`${e.name}: ${e.field} `),t+=")")}}if(p[i].includes("{")&&o||s){s?g.push(`${e}... on ${n} ${t}{`):g.push(""+e+n+` ${t}{`);a=s?n:(null==o?void 0:o.type)||null;i=yield this.recursiveFieldCheck(p,a,h,m,g,v,i+1,y+1)}else{if(p[i].includes("}"))return g.push(r+"}"),i===p.length-1?this.nestingChecker(g).join("\n"):i;g.push(""+e+n)}}else if(p[i].includes("{")){let e=1;for(;e;)i+=1,p[i].includes("{")&&(e+=1),p[i].includes("}")&&--e}}i+=1}})}getParameters(e,t){return e[t].split("(")[1].split(")")[0].trim().replace(/:\s/g,":")}paramsParser(e,n){const t=e.split(":"),r=[],i=(t.forEach(e=>{const t=e.trim();let n;t.includes(" ")&&(n=t.split(" ")),(n=t.includes(",")?t.split(","):n)?n.forEach(e=>r.push(e.trim())):r.push(t)}),[]);for(let t=0;t<r.length-1;t++){var o=n.find(e=>r[t+1]in e);o&&(o={[r[t]]:o[r[t+1]],field:r[t+1],validated:!1},i.push(o)),t+=1}return i}queryParser(m,g,v){return __awaiter$7(this,void 0,void 0,function*(){try{this.initialized||(yield this.initialize(m,g,!1));const u=v.split("\n");let i,e="";u[0].includes("(")?(i=u[0].split("(")[0].trim(),(e=(e=(e=(e=this.getParameters(u,0)).includes(",")?e.split(",").join(""):e).split("$")).filter(e=>!!e)).forEach(e=>e="$"+e.trim()),this.params=e.map(e=>{const[t,n]=e.split(":");return{["$"+t]:n.trim(),validated:!1}})):i=u[0].split("{")[0].trim(),i=(i=i.includes(" ")?i.split(" ")[0]:i)||"query";var o,t=u[1],a=this.indentationChecker(t);const d=[];for(let r=1;r<u.length;r++){let n="";if(a===this.indentationChecker(u[r])){let t;let e;if(u[r].includes("(")?(t=u[r].split("(")[0].trim(),o=u[r].split("(")[1].split(")")[0].trim(),e=this.paramsParser(o,this.params)):t=u[r].split("{")[0].trim(),"}"!==t){const p=this[i].find(e=>e.name===t);if(e){const f=[];e.forEach(t=>{var e,n=p.args.find(e=>e.name in t&&t[e.name]===e.type);n&&(-1!==(e=this.params.findIndex(e=>t.field in e))&&(this.params[e].validated=!0),f.push(Object.assign(Object.assign({},n),{field:t.field})))}),f.length&&(n+="(",f.forEach(e=>n+=`${e.name}: ${e.field} `),n+=")")}d.push({operation:t,line:r,type:null===p||void 0===p?void 0:p.type,args:n})}}}let r="";for(let t=0;t<d.length;t++){var n=(d[t+1]||{}).line||u.length-1,s=d[t].type;const h=u.slice(d[t].line,n);var l=md5(h.join("").replace(/\s/g,""));let e;if("string"!=typeof(e=this.hashMap[l]?(console.log(`returning ${d[t].operation} from memory`),this.hashMap[l]):yield this.recursiveFieldCheck(h,s,m,g,[` ${d[t].operation} ${d[t].args} {`],this.params)))throw console.log(e),new Error("Introspection utility failed while validating operation");this.hashMap[l]=e,r+="\n"+e+"\n"}if(r){let n="";if(this.params.forEach(e=>{var t;e.validated&&([e,t]=Object.entries(e)[0],n+=e+`: ${t} `)}),this.params.length&&!n)throw new Error("No valid parameters found");n=n&&"("+n+")",this.params=[],r=`${i} ${n} {`+r+"}";var c=this.params.filter(e=>!e.validated).map(e=>{var{}=e,e=__rest$4(e,["validated"]);return Object.keys(e)[0].replace("$","")});return this.params=[],{query:r,unsupportedArgs:c}}if(this.safety)throw new Error("Instrospection utility failed. Safety is ON");return console.log("Instrospection utility failed. Safety is OFF. Proceeding with original operation payload"),{query:v}}catch(e){if(this.params=[],console.log(e),!this.safety)return{query:v}}})}}var AuthContext,Status,MessageSeverity,gqlIntrospection=new GqlInstrospection;(AuthContext=AuthContext||{}).ResetPassword="ResetPassword",function(e){e.idle="idle",e.loading="loading",e.success="success",e.failure="failure",e.skipped="skipped",e.ready="ready"}(Status=Status||{});const namespace$3$1="auth",initialState$3$1={oAuthToken:"",oAuthStatus:Status.idle,initStatus:Status.idle,userId:"",sessionToken:"",user:{},status:Status.idle,authContext:null,errorMessage:null,userIsActive:!0},authSlice=createSlice({name:namespace$3$1,initialState:initialState$3$1,reducers:{fetchUserRequest(e){e.status=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=Status.success},fetchUserError(e){e.status=Status.failure},updateTokenRequest(e,t){e.status=Status.idle},updateTokenSuccess(e,t){t=t.payload.token;e.sessionToken=t,e.user.token=t,e.status=Status.success},updateTokenError(e){e.sessionToken="",e.status=Status.failure},updateUserLanguageStart(e,t){e.status=Status.loading},updateUserLanguageSuccess(e,t){e.user.preferredLanguage=t.payload,e.status=Status.success},refreshTokenRequest(e,t){e.status=Status.loading},refreshTokenSuccess(e,t){e.sessionToken=null==(t=null==(t=t.payload)?void 0:t.refreshToken)?void 0:t.token,e.status=Status.success},extendTokenRequest(e,t){e.status=Status.loading},extendTokenSuccess(e,t){e.sessionToken!==t.payload.token&&(e.sessionToken=t.payload.token),e.status=Status.success},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=Status.loading},logoutSuccess(e){e.status=Status.success},logoutError(e){e.status=Status.failure},resetPasswordRequest(e,t){e.status=Status.loading,e.errorMessage=null,e.authContext=AuthContext.ResetPassword},resetPasswordError(e,t){t=t.payload;e.status=Status.failure,e.errorMessage=t.message},resetPasswordSuccess(e){e.status=Status.success,e.errorMessage=null},oAuthGrantReadyToStart(e){e.oAuthStatus=Status.ready},oAuthGrantStart(e){e.oAuthStatus=Status.loading},oAuthGrantSkip(e){e.oAuthStatus=Status.skipped},oAuthGrantSuccess(e,t){e.oAuthToken=t.payload,e.oAuthStatus=Status.success},oAuthGrantFailure(e){e.oAuthStatus=Status.failure},sdkInitSuccess(e){e.initStatus=Status.success},sdkInitFailure(e){e.initStatus=Status.failure},updateUserRecentApplicationsStart(e,t){e.status=Status.loading},updateUserRecentApplicationsSuccess(e,t){e.user.recentApplications=t.payload,e.status=Status.success}}}),{fetchUserRequest,fetchUserSuccess,fetchUserError,refreshTokenRequest,refreshTokenSuccess,extendTokenRequest,extendTokenSuccess,setTokenExpiration,logoutRequest,logoutSuccess,logoutError,updateTokenRequest,updateTokenSuccess,updateTokenError,updateUserLanguageStart,updateUserLanguageSuccess,resetPasswordRequest,resetPasswordError,resetPasswordSuccess,oAuthGrantStart,oAuthGrantReadyToStart,oAuthGrantSkip,oAuthGrantSuccess,oAuthGrantFailure,sdkInitSuccess,sdkInitFailure,updateUserRecentApplicationsStart,updateUserRecentApplicationsSuccess}=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},selectHasUserCreateRootFolderPermission=e=>{return((null==(e=null==(e=e[namespace$3$1])?void 0:e.user)?void 0:e.myRights)||[]).some(e=>["collections.collections.create","cms.media.create","veritone.superadmin"].includes(e))},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},selectIsOLPEnabled=e=>{return"enabled"===(null==(e=null==(e=null==(e=null==(e=null==(e=e[namespace$3$1])?void 0:e.user)?void 0:e.organization)?void 0:e.kvp)?void 0:e.features)?void 0:e.enableRBACFeature)},selectUserOrgEdgeVersion=e=>{return null==(e=null==(e=null==(e=null==(e=null==(e=e[namespace$3$1])?void 0:e.user)?void 0:e.organization)?void 0:e.kvp)?void 0:e.features)?void 0:e.edgeVersion},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")},oAuthTokenSelector=e=>{return null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.oAuthToken},oAuthStatusSelector=e=>{return null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.oAuthStatus},initStatusSelector=e=>{return null==(e=null==e?void 0:e[namespace$3$1])?void 0:e.initStatus},userRecentApplicationsSelector=e=>{var t;return null!=(t=null==(t=e[namespace$3$1])?void 0:t.user)&&t.recentApplications?JSON.parse(null==(e=null==(t=e[namespace$3$1])?void 0:t.user)?void 0:e.recentApplications):[]},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},oauthRedirectUriSelector=e=>{return(null==(e=null==(e=null==e?void 0:e[namespace$2$1])?void 0:e.initConfig)?void 0:e.oAuthRedirectUri)||window.location.protocol+"//"+window.location.hostname},selectApiConfigs$1=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,n)=>({apiRoot:e,graphQLEndpoint:t,token:n})),getAppConfig=(e,t)=>__awaiter$7(void 0,void 0,void 0,function*(){try{return yield baseGraphQLApi({query:`query {
928
928
  staticAppConfig {
929
929
  apiRoot
930
930
  switchAppUrl
@@ -1068,7 +1068,7 @@ createScheduledJob(input:{
1068
1068
  signedIconUrl
1069
1069
  }
1070
1070
  }
1071
- }`;let t;var n=yield gqlIntrospection.queryParser(r,i,e);t=n&&null!=n&&n.query?n.query:e;try{return yield baseGraphQLApi({query:t,graphEndpoint:r,token:i,variables:{limit:1e3,owned:!1}})}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",e.PROCESSING_CENTER_BROWSE="PROCESSING_CENTER_BROWSE"}(TabId=TabId||{}),!function(e){e.active="active",e.suspended="suspended",e.deleted="deleted",e.deactivated="deactivated"}(EUserStatus=EUserStatus||{}),!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_EVENT_PANEL="APP_CENTER_EVENT_PANEL",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",e.ADD_APPLICATION_USERS_PANEL="ADD_APPLICATION_USERS_PANEL",e.PROCESSING_CENTER_BROWSE="PROCESSING_CENTER_BROWSE",e.PROCESSING_CENTER_JOBS="PROCESSING_CENTER_JOBS",e.JOBS_TABLE_SETTINGS_PANEL="JOBS_TABLE_SETTINGS_PANEL",e.PROCESSING_CENTER_ERROR_DETAIL="PROCESSING_CENTER_ERROR_DETAIL",e.VERSION_PANEL="VERSION_PANEL",e.PROCESSING_CENTER_DAG_BUILDER="PROCESSING_CENTER_DAG_BUILDER"}(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$9={mailBoxIds:[],mailbox:[],status:"idle",failureMessage:""},mailboxReducer=createReducer(initialState$9,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:`
1071
+ }`;let t;var n=yield gqlIntrospection.queryParser(r,i,e);t=n&&null!=n&&n.query?n.query:e;try{return yield baseGraphQLApi({query:t,graphEndpoint:r,token:i,variables:{limit:1e3,owned:!1}})}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",e.PROCESSING_CENTER_BROWSE="PROCESSING_CENTER_BROWSE"}(TabId=TabId||{}),!function(e){e.active="active",e.suspended="suspended",e.deleted="deleted",e.deactivated="deactivated"}(EUserStatus=EUserStatus||{}),!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_SELECT_IMPORT_SOURCE="DATA_CENTER_SELECT_IMPORT_SOURCE",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_EVENT_PANEL="APP_CENTER_EVENT_PANEL",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",e.ADD_APPLICATION_USERS_PANEL="ADD_APPLICATION_USERS_PANEL",e.PROCESSING_CENTER_BROWSE="PROCESSING_CENTER_BROWSE",e.PROCESSING_CENTER_JOBS="PROCESSING_CENTER_JOBS",e.JOBS_TABLE_SETTINGS_PANEL="JOBS_TABLE_SETTINGS_PANEL",e.PROCESSING_CENTER_ERROR_DETAIL="PROCESSING_CENTER_ERROR_DETAIL",e.VERSION_PANEL="VERSION_PANEL",e.PROCESSING_CENTER_DAG_BUILDER="PROCESSING_CENTER_DAG_BUILDER",e.PROCESSING_CENTER_INGESTION="PROCESSING_CENTER_INGESTION"}(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$9={mailBoxIds:[],mailbox:[],status:"idle",failureMessage:""},mailboxReducer=createReducer(initialState$9,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:`
1072
1072
  {
1073
1073
  notificationMailboxes {
1074
1074
  id
@@ -1383,4 +1383,4 @@ createScheduledJob(input:{
1383
1383
  }
1384
1384
  }
1385
1385
  }
1386
- `,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$1),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),[v,y]=react.exports.useState(!1),[x,b]=react.exports.useState(!1);var C=(useSelector(userSelector)||{})["currentUser"];const{panels:$=[]}=useSelector(rootSelector);var w=useSelector(unseenNotificationSelector);const S=useSelector(notificationStatusSelector);var T=useSelector(betaFeaturesSelector),C=(C||{})["organization"];const _=useSelector(authSelector)["user"];var{application:E=[]}=useSelector(applicationSelector)||{};const[j,I]=react.exports.useState(!1);const R=useSelector(appIdSelector),O=useSelector(selectApplicationConfig),[L,M]=react.exports.useState(!1);var N=useSelector(selectHasUserCreateRootFolderPermission);const P=gqlIntrospection.isOperationValid("fileApplication","mutation")&&N;function A(){u(!1),h(!1),g(!1),p(!1),y(!1),b(!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:R})),"?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!==O&&void 0!==O&&O.length&&M(!0)},[O]),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(){k()},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===_||void 0===_?void 0:_.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(),v?(y(!1),k()):(A(),k(),y(!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?(b(!1),k()):(A(),k(),b(!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:C,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,header:{divider:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header.panelTitle-app-switcher",defaultMessage:"App Switcher",description:"Title of applications panel list"}),actions:P?[{action:{type:"user-app-group/createNewAppGroupPlaceholder"},label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header-action.new-app-group",defaultMessage:"New App Group",description:"New App Group action button"}),variant:"contained",size:"large",color:"primary",submit:!0}]:void 0}},l(mountPanel$1({panelId:APPLICATION_PANEL_ID,microFrontend:e,panelConfig:t})))},applications:E,showDashboardIcon:T,userApplicationSettingsIcon:L},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.esm20.js"),t=e.EngineCenterBrowse;break;case AvailablePanels.SIMPLE_PANEL:e=yield import("./js-core.esm30.js"),t=e.Panel;break;case AvailablePanels.APP_BAR_PANEL_TEMPLATE:e=yield import("./js-core.esm32.js"),t=e.AppbarPanel;break;case AvailablePanels.APP_BAR_TAB_PANEL_TEMPLATE:e=yield import("./js-core.esm32.js"),t=e.AppbarTabPanel;break;case AvailablePanels.TAB_TEMPLATE:e=yield import("./js-core.esm32.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.esm30.js"),t=e.SamplePanel1;break;case AvailableComponents.TEST_COMPONENT2:e=yield import("./js-core.esm30.js"),t=e.SamplePanel2;break;case AvailableComponents.TEST_COMPONENT3:e=yield import("./js-core.esm30.js"),t=e.SamplePanel3;break;case AvailableComponents.SETTING_PREFERENCE:e=yield import("./js-core.esm36.js"),t=e.SettingsPreferencesPanel;break;case AvailableComponents.ORGANIZATION_PANEL:e=yield import("./js-core.esm33.js"),t=e.OrganizationPanel;break;case AvailableComponents.INVITE_USERS_PANEL:e=yield import("./js-core.esm33.js"),t=e.InviteUsersPanel;break;case AvailableComponents.INVITE_REQUESTS_PANEL:e=yield import("./js-core.esm33.js"),t=e.InviteRequestsPanel;break;case AvailableComponents.REVIEW_ORG_INVITE_PANEL:e=yield import("./js-core.esm33.js"),t=e.ReviewRequestPanel;break;case AvailableComponents.ADD_APPLICATIONS:e=yield import("./js-core.esm33.js"),t=e.AddApplicationsPanel;break;case AvailableComponents.DATA_CENTER_BROWSE:e=yield import("./js-core.esm37.js"),t=e.DataCenterBrowse;break;case AvailableComponents.DATA_CENTER_FOLDERS_AND_FILES:e=yield import("./js-core.esm37.js"),t=e.FoldersAndFilesPanel;break;case AvailableComponents.DATA_CENTER_FILE_INFO_PANEL:e=yield import("./js-core.esm37.js"),t=e.FileInfoPanel;break;case AvailableComponents.DATA_CENTER_IMPORTER:e=yield import("./js-core.esm45.js"),t=e.DataCenterImporter;break;case AvailableComponents.DATA_LABELER:e=yield import("./js-core.esm47.js"),t=e.DataLabelerPanel;break;case AvailableComponents.ADMIN_CENTER_OPEN_ID:e=yield import("./js-core.esm48.js"),t=e.AdminCenterOpenId;break;case AvailableComponents.ADMIN_CENTER_BROWSE:e=yield import("./js-core.esm49.js"),t=e.AdminCenterBrowse;break;case AvailableComponents.DATA_CENTER_PROCESS_AI:e=yield import("./js-core.esm51.js"),t=e.DataCenterProcessAI;break;case AvailableComponents.ENGINE_CENTER_NEW:e=yield import("./js-core.esm21.js").then(function(e){return e.j}),t=e.EngineCenterNew;break;case AvailableComponents.ENGINE_CENTER_FILTER:e=yield import("./js-core.esm20.js"),t=e.EngineCenterFilter;break;case AvailableComponents.ENGINE_CENTER_DETAILS:e=yield import("./js-core.esm20.js"),t=e.EngineDetails;break;case AvailableComponents.ENGINE_CENTER_NEW_BUILD:e=yield import("./js-core.esm20.js"),t=e.CreateNewBuildPanel;break;case AvailableComponents.ENGINE_CENTER_CUSTOM_FIELDS_FORM:e=yield import("./js-core.esm21.js").then(function(e){return e.j}),t=e.EngineCenterCustomFieldsForm;break;case AvailableComponents.ENGINE_CENTER_SCHEMAS_FORM_PANEL:e=yield import("./js-core.esm21.js").then(function(e){return e.j}),t=e.SchemasFormPanel;break;case AvailableComponents.ENGINE_CENTER_INPUT_TYPE_FLYOUT:e=yield import("./js-core.esm21.js").then(function(e){return e.j}),t=e.InputTypeFlyout;break;case AvailableComponents.ENGINE_CENTER_EDIT_RELEASE_NOTES:e=yield import("./js-core.esm20.js"),t=e.EditReleaseNotes;break;case AvailableComponents.ENGINE_CENTER_VERSION_HISTORY_PANEL:e=yield import("./js-core.esm20.js"),t=e.VersionHistoryPanel;break;case AvailableComponents.SUPPORTED_FILE_TYPES:e=yield import("./js-core.esm45.js"),t=e.SupportedFileTypes;break;case AvailableComponents.EDIT_FILE_METADATA:e=yield import("./js-core.esm45.js"),t=e.EditFileMetadata;break;case AvailableComponents.APP_CENTER_NEW:e=yield import("./js-core.esm52.js"),t=e.AppCenterNew;break;case AvailableComponents.APP_CENTER_ADD_FLOW_PANEL:e=yield import("./js-core.esm52.js"),t=e.AppCenterAddFlowPanel;break;case AvailableComponents.APP_CENTER_ADD_SCHEMA_PANEL:e=yield import("./js-core.esm52.js"),t=e.AppCenterAddSchemaPanel;break;case AvailableComponents.APP_CENTER_CONFIG_FIELDS_FORM:e=yield import("./js-core.esm52.js"),t=e.AppCenterConfigFieldsForm;break;case AvailableComponents.APP_CENTER_EVENT_PANEL:e=yield import("./js-core.esm52.js"),t=e.AppCenterEventPanel;break;case AvailableComponents.APP_CENTER_AUTOMATE_PALETTE_INTEGRATION_PANEL:e=yield import("./js-core.esm52.js"),t=e.AppCenterPaletteIntegrationPanel;break;case AvailableComponents.APP_CENTER_ADD_ENGINE_PANEL:e=yield import("./js-core.esm52.js"),t=e.AppCenterAddEnginePanel;break;case AvailableComponents.DATA_CENTER_ENGINE_SELECTION:e=yield import("./js-core.esm51.js"),t=e.DataCenterEngineSelection;break;case AvailableComponents.ADMIN_CENTER_NEW_GROUP_PANEL:e=yield import("./js-core.esm43.js"),t=e.NewGroupPanel;break;case AvailableComponents.PERMISSIONS_PANEL:e=yield import("./js-core.esm39.js"),t=e.PermissionsPanel;break;case AvailableComponents.GROUP_INFO_PANEL:e=yield import("./js-core.esm39.js"),t=e.GroupInfoPanel;break;case AvailableComponents.NEW_PERMISSION_SET_PANEL:e=yield import("./js-core.esm39.js"),t=e.NewPermissionSetPanel;break;case AvailableComponents.PERMISSION_SET_DETAILS_PANEL:e=yield import("./js-core.esm39.js"),t=e.PermissionSetDetailsPanel;break;case AvailableComponents.DATA_CENTER_MDP_IFRAME_PANEL:e=yield import("./js-core.esm37.js"),t=e.MediaDetailsPanelIframe;break;case AvailableComponents.DATA_CENTER_INGESTION_CREATION_PANEL:e=yield import("./js-core.esm37.js"),t=e.IngestionCreationPanel;break;case AvailableComponents.DATA_CENTER_SOURCE_CREATION_PANEL:e=yield import("./js-core.esm37.js"),t=e.SourceCreationPanel;break;case AvailableComponents.ADMIN_CENTER_GROUP_DETAILS_PANEL:e=yield import("./js-core.esm43.js"),t=e.GroupDetailsPanel;break;case AvailableComponents.ADMIN_CENTER_ADD_MEMBER_PANEL:e=yield import("./js-core.esm43.js"),t=e.AddMemberPanel;break;case AvailableComponents.APPLICATION_DETAILS_PANEL:e=yield import("./js-core.esm50.js"),t=e.ApplicationDetailsPanel;break;case AvailableComponents.PROCESSING_CENTER_SOURCES:e=yield import("./js-core.esm53.js"),t=e.ProcessingCenterSources;break;case AvailableComponents.PROCESSING_CENTER_ERROR_DETAIL:e=yield import("./js-core.esm53.js"),t=e.ErrorDetailPanel;break;case AvailableComponents.USER_APPLICATION_SETTINGS_PANEL:e=yield Promise.resolve().then(function(){return index_esm$3}),t=e.UserApplicationSettingsPanel;break;case AvailableComponents.ADD_APPLICATION_USERS_PANEL:e=yield import("./js-core.esm50.js"),t=e.AddUsersPanel;break;case AvailableComponents.PROCESSING_CENTER_BROWSE:e=yield import("./js-core.esm54.js"),t=e.ProcessingCenterBrowse;break;case AvailableComponents.JOBS_TABLE_SETTINGS_PANEL:e=yield import("./js-core.esm55.js"),t=e.JobsTableSettingsPanel;break;case AvailableComponents.VERSION_PANEL:e=yield import("./js-core.esm32.js"),t=e.VersionPanel;break;case AvailableComponents.PROCESSING_CENTER_DAG_BUILDER:e=yield import("./js-core.esm56.js"),t=e.DagBuilder}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,n=null==(n=null==(t=null==e?void 0:e.composedPath())?void 0:t.find)?void 0:n.call(t,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.getNamedItem("role"))?void 0:e.value)?void 0:t.includes("presentation"))}),e="BODY"===(null==(t=((null==e?void 0:e.composedPath())||[])[0])?void 0:t.tagName);n||e||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,"data-snackbarid":(null===o||void 0===o?void 0:o.key)||"na","data-testid":"snackbar.message."+((null===o||void 0===o?void 0:o.severity)||"na")},{children:jsxRuntime.exports.jsx(Alert$1,Object.assign({onClose:u,severity:null===o||void 0===o?void 0:o.severity,elevation:6,variant:"filled"},{children:null===o||void 0===o?void 0:o.content}))}),o?o.key:void 0)}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://support.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://support.veritone.com/"},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-help-panel.8bnkm8",defaultMessage:"Documentation",description:"Help Panel: Documentation tab label"}),disabled:!1,url:"https://docs.veritone.com/#/aiware/"}];function HelpCenter(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$1())},1e3)):store$4.dispatch(logout$1())},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"),"_auth"===window.name?handleImplicitRedirect(window.location.hash,window.opener):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,version:"sdk_release_version",commit:"34dd1b05e",releaseDate:"sdk_release_date"});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 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$5 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,flowStyles as av,NoResults as aw,fetchVeritoneGraphQLApi 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,isEmpty_1 as bA,Backdrop$1 as bB,CircularProgress$1 as bC,getDefaultMiddleware as bD,isNil_1 as bE,UpDown as bF,Icon$1 as bG,get_1 as bH,map_1 as bI,keys_1 as bJ,RadioGroup$1 as bK,Avatar$1 as bL,img$s as bM,FormHelperText$2 as bN,img$c as bO,StyledEngineProvider as bP,ThemeProvider as bQ,lightTheme as bR,CssBaseline as bS,Hide as bT,showMessage as bU,MessageSeverity as bV,baseGraphQLApi as bW,Radio$1 as bX,fetchEngine as bY,createSvgIcon$2 as bZ,_createCompounder as b_,InputUnstyled as ba,isHostComponent as bb,getDefaultExportFromNamespaceIfNotNamed as bc,commonjsRequire as bd,_assertThisInitialized$1 as be,_setPrototypeOf$3 as bf,reactDom as bg,React$1 as bh,_inheritsLoose$2 as bi,ReactDOM as bj,__awaiter$a as bk,__generator$2 as bl,__spread as bm,connect as bn,Bookmark as bo,EngineFlagIcons as bp,createAsyncThunk as bq,withStyles as br,getConfigModule as bs,getAuthModule as bt,getSnackbarModule as bu,CacheProvider as bv,muiCache as bw,img$N as bx,img$a as by,img$9 as bz,Paper$1 as c,orange$1 as c$,_baseIteratee as c0,isArrayLike_1 as c1,toInteger_1 as c2,hoistNonReactStatics_cjs as c3,useControlled as c4,ButtonBase$1 as c5,alpha as c6,commonjsGlobal$1 as c7,getDefaultExportFromCjs as c8,useEnhancedEffect$1 as c9,validate as cA,configSelector as cB,baseGraphQLApiWithError as cC,useDoubleClick as cD,VerifiedFilled as cE,Add as cF,img$12 as cG,Filter$1 as cH,Collapse$1 as cI,DynamicTable as cJ,useTheme$2 as cK,getThemeProps as cL,React$2 as cM,_arrayPush as cN,isArray_1 as cO,_castPath as cP,_isIndex as cQ,isObject_1 as cR,_toKey as cS,_baseToString as cT,_baseTrim as cU,_castSlice as cV,_stringToArray as cW,toString_1 as cX,lib as cY,getThunkExtension_1 as cZ,composeWithDevTools as c_,useEventCallback as ca,useForkRef as cb,combineReducers as cc,createSelector as cd,fork as ce,AIWareThemeProvider as cf,Stack$4 as cg,Close$1 as ch,FullscreenExit as ci,Fullscreen as cj,TabPanel as ck,default_1$2 as cl,InputAdornment$1 as cm,unmountPanel$1 as cn,AvailableComponents as co,delay$1 as cp,mountPanel$1 as cq,DialogContentText$1 as cr,MoreVert as cs,Menu$1 as ct,Edit as cu,Upload as cv,Delete as cw,CustomTabs as cx,useBackupImg as cy,img$1v as cz,capitalize$2 as d,_setToArray as d$,deepOrange$1 as d0,createTheme$1 as d1,createIntl as d2,SvgIcon$1 as d3,unmountAllPanel$1 as d4,takeEvery$1 as d5,isNull_1 as d6,size_1 as d7,take as d8,startCase_1 as d9,setRef as dA,inputClasses$1 as dB,inputBaseClasses$1 as dC,outlinedInputClasses$1 as dD,filledInputClasses$1 as dE,ClearIcon as dF,ArrowDropDownIcon as dG,_baseEach as dH,_arrayFilter as dI,_getNative as dJ,eq_1 as dK,_root as dL,_Uint8Array as dM,_overArg as dN,_isPrototype as dO,isObjectLike_1 as dP,_baseGetTag as dQ,_arrayLikeKeys as dR,isArguments_1 as dS,isBuffer$3 as dT,isFunction_1 as dU,isTypedArray_1 as dV,_Stack as dW,_baseFor as dX,identity_1 as dY,_isIterateeCall as dZ,_Set as d_,times_1 as da,ReactIs as db,upperFirst_1 as dc,_arrayMap as dd,isString_1 as de,_baseGet as df,_baseSlice as dg,channel as dh,useIntl as di,VideoCamera as dj,Image$1 as dk,Sound as dl,Description as dm,toNumber_1 as dn,ProgressStepper as dp,CurlyBraces as dq,UnknownDocument as dr,sdkEventManager as ds,SdkEvents as dt,SdkError as du,EngineClassIcons as dv,Mode2 as dw,EngineModeIcons as dx,DeploymentModelIcons as dy,guid as dz,_objectWithoutPropertiesLoose$2 as e,img$1q as e$,_SetCache as e0,_cacheHas as e1,isSymbol_1 as e2,_baseMap as e3,_baseUnary as e4,emStyled as e5,deepmerge as e6,isPlainObject as e7,useTheme$3 as e8,memoizeOne as e9,img$1 as eA,img$w as eB,userSelector$2 as eC,enableBetaFeatures as eD,Badge$1 as eE,openLinkOnNewTab as eF,authSelector as eG,headerBarSelector as eH,getSortName as eI,img$5 as eJ,InputLabel$1 as eK,ListItemAvatar$1 as eL,OrganizationTabIcon as eM,ScopedCssBaseline$1 as eN,AlarmTwo as eO,getApplicationsApi as eP,ListItemSecondaryAction$1 as eQ,updateTokenSuccess as eR,postNotificationCommand as eS,aiwareEvent as eT,notificationCommands as eU,panelsSelector as eV,css as eW,avatarClasses as eX,img$J as eY,img$I as eZ,img$1r as e_,_Symbol as ea,Slide$1 as eb,hidePanel$1 as ec,updatePanelMicroFrontendProps as ed,setData as ee,useIsFocusVisible as ef,ownerDocument as eg,appendOwnerState as eh,lighten as ei,darken as ej,slotShouldForwardProp as ek,shouldSpreadAdditionalProps$1 as el,keyframes as em,img$1s as en,injectIntl as eo,TabId as ep,PersonalProfile$1 as eq,Organizations as er,DataCenter as es,Process as et,FlowCenter2 as eu,DeveloperCenter as ev,Marketplace$1 as ew,LibraryCenter as ex,AdminCenter as ey,img$P as ez,clsx as f,formatBytes as f$,img$1p as f0,img$G as f1,img$1t as f2,img$F as f3,emphasize as f4,_arraySome as f5,ErrorBoundary$1 as f6,Information as f7,NewFolder as f8,SpecialFolder as f9,ProcessingDetail as fA,FilterRemove as fB,CheckCircle as fC,FolderOpen as fD,Voice as fE,FolderFilled as fF,Time as fG,img$u as fH,Undefined as fI,YoutubeSource as fJ,PodcastSource as fK,TVSource as fL,RadioSource as fM,selectOrgId as fN,selectIsUserAdmin as fO,ErrorState$1 as fP,StepConnector$1 as fQ,NullState$2 as fR,Group as fS,PermissionChangedAction as fT,Lock as fU,AddGroup as fV,StepperContext$1 as fW,StepContext$1 as fX,initialConfigSelector as fY,ConfirmationModal as fZ,EnumHelpers as f_,User as fa,Source as fb,Search$1 as fc,selectIsOLPEnabled as fd,getLibraryModule as fe,selectApiConfigs$1 as ff,FullScreenContainer as fg,betaFeaturesSelector as fh,cmsUrlSelector as fi,UserAddFilled as fj,Popover$1 as fk,MenuList$1 as fl,MoveFolder as fm,Download as fn,img$6 as fo,selectPanelByPanelName as fp,EngineCategoryIcons as fq,Settings$2 as fr,Hamburger as fs,List as ft,EditAttributes as fu,MoreHor as fv,ExpandMore as fw,img$r as fx,img$t as fy,img as fz,generateUtilityClass as g,NotInterested as g0,mountPanelForResponse$1 as g1,md5 as g2,AddUser as g3,Users as g4,ApplicationTabIcon as g5,SecurityGroup as g6,NoApps as g7,green$1 as g8,gqlIntrospection as g9,registerComponent as gA,AvailableWidgets as gB,root as gC,mountWidget as gD,unmountWidget as gE,mountPanel as gF,unmountPanel as gG,hidePanel as gH,unmountAllPanel as gI,init as gJ,selectors as ga,LibraryDropdown as gb,Remove as gc,Save as gd,Input$2 as ge,Copy as gf,ArrowForward as gg,_getSymbols as gh,stubArray_1 as gi,_baseGetAllKeys as gj,_getTag as gk,_nodeUtil as gl,_getAllKeys as gm,_baseIsEqual as gn,_castFunction as go,Input as gp,Modal$1 as gq,Article as gr,Task as gs,View as gt,BottomQueue as gu,TopQueue as gv,Pause as gw,Cancel as gx,Hidden as gy,registry as gz,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};
1386
+ `,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$1),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),[v,y]=react.exports.useState(!1),[x,b]=react.exports.useState(!1);var C=(useSelector(userSelector)||{})["currentUser"];const{panels:$=[]}=useSelector(rootSelector);var w=useSelector(unseenNotificationSelector);const S=useSelector(notificationStatusSelector);var T=useSelector(betaFeaturesSelector),C=(C||{})["organization"];const _=useSelector(authSelector)["user"];var{application:E=[]}=useSelector(applicationSelector)||{};const[j,I]=react.exports.useState(!1);const R=useSelector(appIdSelector),O=useSelector(selectApplicationConfig),[L,M]=react.exports.useState(!1);var N=useSelector(selectHasUserCreateRootFolderPermission);const P=gqlIntrospection.isOperationValid("fileApplication","mutation")&&N;function A(){u(!1),h(!1),g(!1),p(!1),y(!1),b(!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:R})),"?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!==O&&void 0!==O&&O.length&&M(!0)},[O]),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(){k()},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===_||void 0===_?void 0:_.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(),v?(y(!1),k()):(A(),k(),y(!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?(b(!1),k()):(A(),k(),b(!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:C,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,header:{divider:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header.panelTitle-app-switcher",defaultMessage:"App Switcher",description:"Title of applications panel list"}),actions:P?[{action:{type:"user-app-group/createNewAppGroupPlaceholder"},label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header-action.new-app-group",defaultMessage:"New App Group",description:"New App Group action button"}),variant:"contained",size:"large",color:"primary",submit:!0}]:void 0}},l(mountPanel$1({panelId:APPLICATION_PANEL_ID,microFrontend:e,panelConfig:t})))},applications:E,showDashboardIcon:T,userApplicationSettingsIcon:L},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.esm20.js"),t=e.EngineCenterBrowse;break;case AvailablePanels.SIMPLE_PANEL:e=yield import("./js-core.esm30.js"),t=e.Panel;break;case AvailablePanels.APP_BAR_PANEL_TEMPLATE:e=yield import("./js-core.esm32.js"),t=e.AppbarPanel;break;case AvailablePanels.APP_BAR_TAB_PANEL_TEMPLATE:e=yield import("./js-core.esm32.js"),t=e.AppbarTabPanel;break;case AvailablePanels.TAB_TEMPLATE:e=yield import("./js-core.esm32.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.esm30.js"),t=e.SamplePanel1;break;case AvailableComponents.TEST_COMPONENT2:e=yield import("./js-core.esm30.js"),t=e.SamplePanel2;break;case AvailableComponents.TEST_COMPONENT3:e=yield import("./js-core.esm30.js"),t=e.SamplePanel3;break;case AvailableComponents.SETTING_PREFERENCE:e=yield import("./js-core.esm36.js"),t=e.SettingsPreferencesPanel;break;case AvailableComponents.ORGANIZATION_PANEL:e=yield import("./js-core.esm33.js"),t=e.OrganizationPanel;break;case AvailableComponents.INVITE_USERS_PANEL:e=yield import("./js-core.esm33.js"),t=e.InviteUsersPanel;break;case AvailableComponents.INVITE_REQUESTS_PANEL:e=yield import("./js-core.esm33.js"),t=e.InviteRequestsPanel;break;case AvailableComponents.REVIEW_ORG_INVITE_PANEL:e=yield import("./js-core.esm33.js"),t=e.ReviewRequestPanel;break;case AvailableComponents.ADD_APPLICATIONS:e=yield import("./js-core.esm33.js"),t=e.AddApplicationsPanel;break;case AvailableComponents.DATA_CENTER_BROWSE:e=yield import("./js-core.esm37.js"),t=e.DataCenterBrowse;break;case AvailableComponents.DATA_CENTER_FOLDERS_AND_FILES:e=yield import("./js-core.esm37.js"),t=e.FoldersAndFilesPanel;break;case AvailableComponents.DATA_CENTER_FILE_INFO_PANEL:e=yield import("./js-core.esm37.js"),t=e.FileInfoPanel;break;case AvailableComponents.DATA_CENTER_IMPORTER:e=yield import("./js-core.esm46.js"),t=e.DataCenterImporter;break;case AvailableComponents.DATA_LABELER:e=yield import("./js-core.esm48.js"),t=e.DataLabelerPanel;break;case AvailableComponents.ADMIN_CENTER_OPEN_ID:e=yield import("./js-core.esm49.js"),t=e.AdminCenterOpenId;break;case AvailableComponents.ADMIN_CENTER_BROWSE:e=yield import("./js-core.esm50.js"),t=e.AdminCenterBrowse;break;case AvailableComponents.DATA_CENTER_PROCESS_AI:e=yield import("./js-core.esm53.js"),t=e.DataCenterProcessAI;break;case AvailableComponents.ENGINE_CENTER_NEW:e=yield import("./js-core.esm21.js").then(function(e){return e.j}),t=e.EngineCenterNew;break;case AvailableComponents.ENGINE_CENTER_FILTER:e=yield import("./js-core.esm20.js"),t=e.EngineCenterFilter;break;case AvailableComponents.ENGINE_CENTER_DETAILS:e=yield import("./js-core.esm20.js"),t=e.EngineDetails;break;case AvailableComponents.ENGINE_CENTER_NEW_BUILD:e=yield import("./js-core.esm20.js"),t=e.CreateNewBuildPanel;break;case AvailableComponents.ENGINE_CENTER_CUSTOM_FIELDS_FORM:e=yield import("./js-core.esm21.js").then(function(e){return e.j}),t=e.EngineCenterCustomFieldsForm;break;case AvailableComponents.ENGINE_CENTER_SCHEMAS_FORM_PANEL:e=yield import("./js-core.esm21.js").then(function(e){return e.j}),t=e.SchemasFormPanel;break;case AvailableComponents.ENGINE_CENTER_INPUT_TYPE_FLYOUT:e=yield import("./js-core.esm21.js").then(function(e){return e.j}),t=e.InputTypeFlyout;break;case AvailableComponents.ENGINE_CENTER_EDIT_RELEASE_NOTES:e=yield import("./js-core.esm20.js"),t=e.EditReleaseNotes;break;case AvailableComponents.ENGINE_CENTER_VERSION_HISTORY_PANEL:e=yield import("./js-core.esm20.js"),t=e.VersionHistoryPanel;break;case AvailableComponents.SUPPORTED_FILE_TYPES:e=yield import("./js-core.esm46.js"),t=e.SupportedFileTypes;break;case AvailableComponents.EDIT_FILE_METADATA:e=yield import("./js-core.esm46.js"),t=e.EditFileMetadata;break;case AvailableComponents.APP_CENTER_NEW:e=yield import("./js-core.esm54.js"),t=e.AppCenterNew;break;case AvailableComponents.APP_CENTER_ADD_FLOW_PANEL:e=yield import("./js-core.esm54.js"),t=e.AppCenterAddFlowPanel;break;case AvailableComponents.APP_CENTER_ADD_SCHEMA_PANEL:e=yield import("./js-core.esm54.js"),t=e.AppCenterAddSchemaPanel;break;case AvailableComponents.APP_CENTER_CONFIG_FIELDS_FORM:e=yield import("./js-core.esm54.js"),t=e.AppCenterConfigFieldsForm;break;case AvailableComponents.APP_CENTER_EVENT_PANEL:e=yield import("./js-core.esm54.js"),t=e.AppCenterEventPanel;break;case AvailableComponents.APP_CENTER_AUTOMATE_PALETTE_INTEGRATION_PANEL:e=yield import("./js-core.esm54.js"),t=e.AppCenterPaletteIntegrationPanel;break;case AvailableComponents.APP_CENTER_ADD_ENGINE_PANEL:e=yield import("./js-core.esm54.js"),t=e.AppCenterAddEnginePanel;break;case AvailableComponents.DATA_CENTER_ENGINE_SELECTION:e=yield import("./js-core.esm53.js"),t=e.DataCenterEngineSelection;break;case AvailableComponents.ADMIN_CENTER_NEW_GROUP_PANEL:e=yield import("./js-core.esm44.js"),t=e.NewGroupPanel;break;case AvailableComponents.PERMISSIONS_PANEL:e=yield import("./js-core.esm39.js"),t=e.PermissionsPanel;break;case AvailableComponents.GROUP_INFO_PANEL:e=yield import("./js-core.esm39.js"),t=e.GroupInfoPanel;break;case AvailableComponents.NEW_PERMISSION_SET_PANEL:e=yield import("./js-core.esm39.js"),t=e.NewPermissionSetPanel;break;case AvailableComponents.PERMISSION_SET_DETAILS_PANEL:e=yield import("./js-core.esm39.js"),t=e.PermissionSetDetailsPanel;break;case AvailableComponents.DATA_CENTER_MDP_IFRAME_PANEL:e=yield import("./js-core.esm37.js"),t=e.MediaDetailsPanelIframe;break;case AvailableComponents.DATA_CENTER_INGESTION_CREATION_PANEL:e=yield import("./js-core.esm37.js"),t=e.IngestionCreationPanel;break;case AvailableComponents.DATA_CENTER_SELECT_IMPORT_SOURCE:e=yield import("./js-core.esm37.js"),t=e.SelectImportSource;break;case AvailableComponents.DATA_CENTER_SOURCE_CREATION_PANEL:e=yield import("./js-core.esm37.js"),t=e.SourceCreationPanel;break;case AvailableComponents.ADMIN_CENTER_GROUP_DETAILS_PANEL:e=yield import("./js-core.esm44.js"),t=e.GroupDetailsPanel;break;case AvailableComponents.ADMIN_CENTER_ADD_MEMBER_PANEL:e=yield import("./js-core.esm44.js"),t=e.AddMemberPanel;break;case AvailableComponents.APPLICATION_DETAILS_PANEL:e=yield import("./js-core.esm51.js"),t=e.ApplicationDetailsPanel;break;case AvailableComponents.PROCESSING_CENTER_SOURCES:e=yield import("./js-core.esm55.js"),t=e.ProcessingCenterSources;break;case AvailableComponents.PROCESSING_CENTER_ERROR_DETAIL:e=yield import("./js-core.esm55.js"),t=e.ErrorDetailPanel;break;case AvailableComponents.USER_APPLICATION_SETTINGS_PANEL:e=yield Promise.resolve().then(function(){return index_esm$3}),t=e.UserApplicationSettingsPanel;break;case AvailableComponents.ADD_APPLICATION_USERS_PANEL:e=yield import("./js-core.esm51.js"),t=e.AddUsersPanel;break;case AvailableComponents.PROCESSING_CENTER_BROWSE:e=yield import("./js-core.esm56.js"),t=e.ProcessingCenterBrowse;break;case AvailableComponents.JOBS_TABLE_SETTINGS_PANEL:e=yield import("./js-core.esm57.js"),t=e.JobsTableSettingsPanel;break;case AvailableComponents.VERSION_PANEL:e=yield import("./js-core.esm32.js"),t=e.VersionPanel;break;case AvailableComponents.PROCESSING_CENTER_DAG_BUILDER:e=yield import("./js-core.esm58.js"),t=e.DagBuilder;break;case AvailableComponents.PROCESSING_CENTER_INGESTION:e=yield import("./js-core.esm59.js"),t=e.ProcessingCenterIngestion}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,n=null==(n=null==(t=null==e?void 0:e.composedPath())?void 0:t.find)?void 0:n.call(t,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.getNamedItem("role"))?void 0:e.value)?void 0:t.includes("presentation"))}),e="BODY"===(null==(t=((null==e?void 0:e.composedPath())||[])[0])?void 0:t.tagName);n||e||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,"data-snackbarid":(null===o||void 0===o?void 0:o.key)||"na","data-testid":"snackbar.message."+((null===o||void 0===o?void 0:o.severity)||"na")},{children:jsxRuntime.exports.jsx(Alert$1,Object.assign({onClose:u,severity:null===o||void 0===o?void 0:o.severity,elevation:6,variant:"filled"},{children:null===o||void 0===o?void 0:o.content}))}),o?o.key:void 0)}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://support.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://support.veritone.com/"},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-help-panel.8bnkm8",defaultMessage:"Documentation",description:"Help Panel: Documentation tab label"}),disabled:!1,url:"https://docs.veritone.com/#/aiware/"}];function HelpCenter(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$1())},1e3)):store$4.dispatch(logout$1())},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"),"_auth"===window.name?handleImplicitRedirect(window.location.hash,window.opener):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,version:"sdk_release_version",commit:"1809ff32b7",releaseDate:"sdk_release_date"});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 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$5 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,flowStyles as av,NoResults as aw,fetchVeritoneGraphQLApi 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,isEmpty_1 as bA,Backdrop$1 as bB,CircularProgress$1 as bC,getDefaultMiddleware as bD,isNil_1 as bE,UpDown as bF,Icon$1 as bG,get_1 as bH,map_1 as bI,keys_1 as bJ,RadioGroup$1 as bK,Avatar$1 as bL,img$s as bM,FormHelperText$2 as bN,img$c as bO,StyledEngineProvider as bP,ThemeProvider as bQ,lightTheme as bR,CssBaseline as bS,Hide as bT,showMessage as bU,MessageSeverity as bV,baseGraphQLApi as bW,Radio$1 as bX,fetchEngine as bY,createSvgIcon$2 as bZ,_createCompounder as b_,InputUnstyled as ba,isHostComponent as bb,getDefaultExportFromNamespaceIfNotNamed as bc,commonjsRequire as bd,_assertThisInitialized$1 as be,_setPrototypeOf$3 as bf,reactDom as bg,React$1 as bh,_inheritsLoose$2 as bi,ReactDOM as bj,__awaiter$a as bk,__generator$2 as bl,__spread as bm,connect as bn,Bookmark as bo,EngineFlagIcons as bp,createAsyncThunk as bq,withStyles as br,getConfigModule as bs,getAuthModule as bt,getSnackbarModule as bu,CacheProvider as bv,muiCache as bw,img$N as bx,img$a as by,img$9 as bz,Paper$1 as c,deepOrange$1 as c$,_baseIteratee as c0,isArrayLike_1 as c1,toInteger_1 as c2,hoistNonReactStatics_cjs as c3,useControlled as c4,ButtonBase$1 as c5,alpha as c6,commonjsGlobal$1 as c7,getDefaultExportFromCjs as c8,useEnhancedEffect$1 as c9,validate as cA,configSelector as cB,baseGraphQLApiWithError as cC,VerifiedFilled as cD,Add as cE,img$12 as cF,Filter$1 as cG,Collapse$1 as cH,DynamicTable as cI,useTheme$2 as cJ,getThemeProps as cK,React$2 as cL,_arrayPush as cM,isArray_1 as cN,_castPath as cO,_isIndex as cP,isObject_1 as cQ,_toKey as cR,_baseToString as cS,_baseTrim as cT,_castSlice as cU,_stringToArray as cV,toString_1 as cW,lib as cX,getThunkExtension_1 as cY,composeWithDevTools as cZ,orange$1 as c_,useEventCallback as ca,useForkRef as cb,combineReducers as cc,createSelector as cd,fork as ce,AIWareThemeProvider as cf,Stack$4 as cg,Close$1 as ch,FullscreenExit as ci,Fullscreen as cj,TabPanel as ck,default_1$2 as cl,InputAdornment$1 as cm,unmountPanel$1 as cn,AvailableComponents as co,delay$1 as cp,mountPanel$1 as cq,DialogContentText$1 as cr,MoreVert as cs,Menu$1 as ct,Edit as cu,Upload as cv,Delete as cw,CustomTabs as cx,useBackupImg as cy,img$1v as cz,capitalize$2 as d,_setToArray as d$,createTheme$1 as d0,createIntl as d1,SvgIcon$1 as d2,unmountAllPanel$1 as d3,takeEvery$1 as d4,isNull_1 as d5,size_1 as d6,take as d7,startCase_1 as d8,times_1 as d9,setRef as dA,inputClasses$1 as dB,inputBaseClasses$1 as dC,outlinedInputClasses$1 as dD,filledInputClasses$1 as dE,ClearIcon as dF,ArrowDropDownIcon as dG,_baseEach as dH,_arrayFilter as dI,_getNative as dJ,eq_1 as dK,_root as dL,_Uint8Array as dM,_overArg as dN,_isPrototype as dO,isObjectLike_1 as dP,_baseGetTag as dQ,_arrayLikeKeys as dR,isArguments_1 as dS,isBuffer$3 as dT,isFunction_1 as dU,isTypedArray_1 as dV,_Stack as dW,_baseFor as dX,identity_1 as dY,_isIterateeCall as dZ,_Set as d_,ReactIs as da,upperFirst_1 as db,_arrayMap as dc,isString_1 as dd,_baseGet as de,_baseSlice as df,channel as dg,useIntl as dh,VideoCamera as di,Image$1 as dj,Sound as dk,Description as dl,toNumber_1 as dm,ProgressStepper as dn,CurlyBraces as dp,Modal$1 as dq,UnknownDocument as dr,sdkEventManager as ds,SdkEvents as dt,SdkError as du,EngineClassIcons as dv,Mode2 as dw,EngineModeIcons as dx,DeploymentModelIcons as dy,guid as dz,_objectWithoutPropertiesLoose$2 as e,img$1q as e$,_SetCache as e0,_cacheHas as e1,isSymbol_1 as e2,_baseMap as e3,_baseUnary as e4,emStyled as e5,deepmerge as e6,isPlainObject as e7,useTheme$3 as e8,memoizeOne as e9,img$1 as eA,img$w as eB,userSelector$2 as eC,enableBetaFeatures as eD,Badge$1 as eE,openLinkOnNewTab as eF,authSelector as eG,headerBarSelector as eH,getSortName as eI,img$5 as eJ,InputLabel$1 as eK,ListItemAvatar$1 as eL,OrganizationTabIcon as eM,ScopedCssBaseline$1 as eN,AlarmTwo as eO,getApplicationsApi as eP,ListItemSecondaryAction$1 as eQ,updateTokenSuccess as eR,postNotificationCommand as eS,aiwareEvent as eT,notificationCommands as eU,panelsSelector as eV,css as eW,avatarClasses as eX,img$J as eY,img$I as eZ,img$1r as e_,_Symbol as ea,Slide$1 as eb,hidePanel$1 as ec,updatePanelMicroFrontendProps as ed,setData as ee,useIsFocusVisible as ef,ownerDocument as eg,appendOwnerState as eh,lighten as ei,darken as ej,slotShouldForwardProp as ek,shouldSpreadAdditionalProps$1 as el,keyframes as em,img$1s as en,injectIntl as eo,TabId as ep,PersonalProfile$1 as eq,Organizations as er,DataCenter as es,Process as et,FlowCenter2 as eu,DeveloperCenter as ev,Marketplace$1 as ew,LibraryCenter as ex,AdminCenter as ey,img$P as ez,clsx as f,ConfirmationModal as f$,img$1p as f0,img$G as f1,img$1t as f2,img$F as f3,emphasize as f4,_arraySome as f5,ErrorBoundary$1 as f6,Information as f7,NewFolder as f8,SpecialFolder as f9,selectUserOrgEdgeVersion as fA,ProcessingDetail as fB,FilterRemove as fC,CheckCircle as fD,FolderOpen as fE,Voice as fF,useDoubleClick 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,Lock as fW,AddGroup as fX,StepperContext$1 as fY,StepContext$1 as fZ,initialConfigSelector as f_,User as fa,Source as fb,Search$1 as fc,selectIsOLPEnabled as fd,getLibraryModule as fe,selectApiConfigs$1 as ff,FullScreenContainer as fg,betaFeaturesSelector as fh,cmsUrlSelector as fi,UserAddFilled as fj,Popover$1 as fk,MenuList$1 as fl,MoveFolder as fm,Download as fn,img$6 as fo,selectPanelByPanelName as fp,EngineCategoryIcons as fq,Settings$2 as fr,Hamburger as fs,List as ft,EditAttributes as fu,MoreHor as fv,ExpandMore as fw,img$r as fx,img$t as fy,img as fz,generateUtilityClass as g,EnumHelpers as g0,formatBytes as g1,NotInterested as g2,mountPanelForResponse$1 as g3,md5 as g4,AddUser as g5,Users as g6,ApplicationTabIcon as g7,SecurityGroup as g8,NoApps as g9,registry as gA,registerComponent as gB,AvailableWidgets as gC,root as gD,mountWidget as gE,unmountWidget as gF,mountPanel as gG,unmountPanel as gH,hidePanel as gI,unmountAllPanel as gJ,init as gK,green$1 as ga,gqlIntrospection as gb,selectors as gc,LibraryDropdown as gd,Remove as ge,Save as gf,Input$2 as gg,Copy as gh,ArrowForward as gi,_getSymbols as gj,stubArray_1 as gk,_baseGetAllKeys as gl,_getTag as gm,_nodeUtil as gn,_getAllKeys as go,_baseIsEqual as gp,_castFunction as gq,Input as gr,Article as gs,Task as gt,View as gu,BottomQueue as gv,TopQueue as gw,Pause as gx,Cancel as gy,Hidden as gz,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};
package/js-core.esm2.js CHANGED
@@ -1 +1 @@
1
- import{m as makeStyles,r as react,j as jsxRuntime,P as Provider,s as store,T as Typography,A as AIWareIntlProvider,F as FormattedMessage,S as Switch}from"./js-core.esm.js";import{A as AppBar}from"./js-core.esm3.js";function e(r,e,a,t){void 0===a&&(a=global),void 0===t&&(t={});var s=react.exports.useRef(),n=t.capture,o=t.passive,c=t.once;react.exports.useEffect(function(){s.current=e},[e]),react.exports.useEffect(function(){var e,t;if(a&&a.addEventListener)return a.addEventListener(r,e=function(e){return s.current(e)},t={capture:n,passive:o,once:c}),function(){a.removeEventListener(r,e,t)}},[r,a,n,o,c])}!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}(),window.global=window;var l={},a=function(r,a,e){return l[r]||(l[r]={callbacks:[],value:e}),l[r].callbacks.push(a),{deregister:function(){var e=l[r].callbacks,t=e.indexOf(a);-1<t&&e.splice(t,1)},emit:function(t){l[r].value!==t&&(l[r].value=t,l[r].callbacks.forEach(function(e){a!==e&&e(t)}))}}};function o(l,t){var d,r;return(t=void 0===t?"undefined"!=typeof global&&global.localStorage?global.localStorage:"undefined"!=typeof globalThis&&globalThis.localStorage?globalThis.localStorage:"undefined"!=typeof window&&window.localStorage?window.localStorage:"undefined"!=typeof localStorage?localStorage:null:t)?(r=t,d={get:function(e,t){e=r.getItem(e);return null==e?"function"==typeof t?t():t:JSON.parse(e)},set:function(e,t){r.setItem(e,JSON.stringify(t))}},function(t){return r=t,s=l,n=d.get,o=d.set,c=react.exports.useRef(null),t=react.exports.useState(function(){return n(s,r)}),i=t[0],u=t[1],e("storage",function(e){e.key===s&&(e=JSON.parse(e.newValue),i!==e&&u(e))}),react.exports.useEffect(function(){return c.current=a(s,u,r),function(){c.current.deregister()}},[r,s]),t=react.exports.useCallback(function(e){var t="function"==typeof e?e(i):e;o(s,t),u(t),c.current.emit(e)},[i,o,s]),[i,t];var r,s,n,o,c,i,u}):react.exports.useState}var i=function(){},u={classList:{add:i,remove:i}},d=function(e,t,r){void 0===r&&(r=global);var e=e?o(e,t):react.exports.useState,a=r.matchMedia?r.matchMedia("(prefers-color-scheme: dark)"):{},s="(prefers-color-scheme: dark)"===a.media,n=r.document&&r.document.body||u;return{usePersistedDarkModeState:e,getDefaultOnChange:function(t,r,a){return void 0===t&&(t=n),void 0===r&&(r="dark-mode"),void 0===a&&(a="light-mode"),function(e){t.classList.add(e?r:a),t.classList.remove(e?a:r)}},mediaQueryEventTarget:{addEventListener:function(e,t){return a.addListener&&a.addListener(t)},removeEventListener:function(e,t){return a.removeListener&&a.removeListener(t)}},getInitialValue:function(e){return s?a.matches:e}}};function useDarkMode(t,r){void 0===t&&(t=!1);var a=(r=void 0===r?{}:r).element,s=r.classNameDark,n=r.classNameLight,o=r.onChange,c=r.storageKey,i=(void 0===c&&(c="darkMode"),r.storageProvider),u=r.global,r=react.exports.useMemo(function(){return d(c,i,u)},[c,i,u]),l=r.getDefaultOnChange,p=r.mediaQueryEventTarget,r=(0,r.usePersistedDarkModeState)((0,r.getInitialValue)(t)),f=r[0],g=r[1],m=react.exports.useMemo(function(){return o||l(a,s,n)},[o,a,s,n,l]);return react.exports.useEffect(function(){m(f)},[m,f]),e("change",function(e){return g(e.matches)},p),{value:f,enable:react.exports.useCallback(function(){return g(!0)},[g]),disable:react.exports.useCallback(function(){return g(!1)},[g]),toggle:react.exports.useCallback(function(){return g(function(e){return!e})},[g])}}const APP_BAR="app-bar",THEME_SWITCHER="theme-switcher",SEARCH_BAR="search-bar",defaultLocale="en",useStyles=makeStyles()(e=>({appBarContainer:{display:"flex",padding:"8px",justifyContent:"space-between",alignItems:"center"},margin:{marginTop:54}})),messagesMap={},languages=["en","es","fr"],SampleAppBar=(languages.forEach(e=>{messagesMap[e]={}}),e=>{var t=useStyles()["classes"];const[r,a]=react.exports.useState(defaultLocale),[,s]=react.exports.useState({});react.exports.useEffect(()=>{e.locale&&a(e.locale)},[e.locale]),react.exports.useEffect(()=>{s(messagesMap[r])},[r]);var n=useDarkMode();return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Provider,Object.assign({store:e.store||store},{children:jsxRuntime.exports.jsx(AppBar,Object.assign({"data-test":APP_BAR},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:t.appBarContainer},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"subtitle2"},{children:"App Name"})),jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":SEARCH_BAR},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,Object.assign({locale:r},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-sample-app-bar.hXq2hF",defaultMessage:"Search Bar",description:"Primary Search Bar Place Holder Text"})}))})),jsxRuntime.exports.jsxs("div",{children:["☀",jsxRuntime.exports.jsx(Switch,{"data-test":THEME_SWITCHER,onChange:n.toggle,checked:n.value}),"☾"]})]}))}))})),jsxRuntime.exports.jsx("div",{className:t.margin})]})});export{APP_BAR,SEARCH_BAR,SampleAppBar,THEME_SWITCHER};
1
+ import{m as makeStyles,r as react,j as jsxRuntime,P as Provider,s as store,T as Typography$1,A as AIWareIntlProvider,F as FormattedMessage,S as Switch}from"./js-core.esm.js";import{A as AppBar}from"./js-core.esm3.js";function e(r,e,a,t){void 0===a&&(a=global),void 0===t&&(t={});var s=react.exports.useRef(),n=t.capture,o=t.passive,c=t.once;react.exports.useEffect(function(){s.current=e},[e]),react.exports.useEffect(function(){var e,t;if(a&&a.addEventListener)return a.addEventListener(r,e=function(e){return s.current(e)},t={capture:n,passive:o,once:c}),function(){a.removeEventListener(r,e,t)}},[r,a,n,o,c])}!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}(),window.global=window;var l={},a=function(r,a,e){return l[r]||(l[r]={callbacks:[],value:e}),l[r].callbacks.push(a),{deregister:function(){var e=l[r].callbacks,t=e.indexOf(a);-1<t&&e.splice(t,1)},emit:function(t){l[r].value!==t&&(l[r].value=t,l[r].callbacks.forEach(function(e){a!==e&&e(t)}))}}};function o(l,t){var d,r;return(t=void 0===t?"undefined"!=typeof global&&global.localStorage?global.localStorage:"undefined"!=typeof globalThis&&globalThis.localStorage?globalThis.localStorage:"undefined"!=typeof window&&window.localStorage?window.localStorage:"undefined"!=typeof localStorage?localStorage:null:t)?(r=t,d={get:function(e,t){e=r.getItem(e);return null==e?"function"==typeof t?t():t:JSON.parse(e)},set:function(e,t){r.setItem(e,JSON.stringify(t))}},function(t){return r=t,s=l,n=d.get,o=d.set,c=react.exports.useRef(null),t=react.exports.useState(function(){return n(s,r)}),i=t[0],u=t[1],e("storage",function(e){e.key===s&&(e=JSON.parse(e.newValue),i!==e&&u(e))}),react.exports.useEffect(function(){return c.current=a(s,u,r),function(){c.current.deregister()}},[r,s]),t=react.exports.useCallback(function(e){var t="function"==typeof e?e(i):e;o(s,t),u(t),c.current.emit(e)},[i,o,s]),[i,t];var r,s,n,o,c,i,u}):react.exports.useState}var i=function(){},u={classList:{add:i,remove:i}},d=function(e,t,r){void 0===r&&(r=global);var e=e?o(e,t):react.exports.useState,a=r.matchMedia?r.matchMedia("(prefers-color-scheme: dark)"):{},s="(prefers-color-scheme: dark)"===a.media,n=r.document&&r.document.body||u;return{usePersistedDarkModeState:e,getDefaultOnChange:function(t,r,a){return void 0===t&&(t=n),void 0===r&&(r="dark-mode"),void 0===a&&(a="light-mode"),function(e){t.classList.add(e?r:a),t.classList.remove(e?a:r)}},mediaQueryEventTarget:{addEventListener:function(e,t){return a.addListener&&a.addListener(t)},removeEventListener:function(e,t){return a.removeListener&&a.removeListener(t)}},getInitialValue:function(e){return s?a.matches:e}}};function useDarkMode(t,r){void 0===t&&(t=!1);var a=(r=void 0===r?{}:r).element,s=r.classNameDark,n=r.classNameLight,o=r.onChange,c=r.storageKey,i=(void 0===c&&(c="darkMode"),r.storageProvider),u=r.global,r=react.exports.useMemo(function(){return d(c,i,u)},[c,i,u]),l=r.getDefaultOnChange,p=r.mediaQueryEventTarget,r=(0,r.usePersistedDarkModeState)((0,r.getInitialValue)(t)),f=r[0],g=r[1],m=react.exports.useMemo(function(){return o||l(a,s,n)},[o,a,s,n,l]);return react.exports.useEffect(function(){m(f)},[m,f]),e("change",function(e){return g(e.matches)},p),{value:f,enable:react.exports.useCallback(function(){return g(!0)},[g]),disable:react.exports.useCallback(function(){return g(!1)},[g]),toggle:react.exports.useCallback(function(){return g(function(e){return!e})},[g])}}const APP_BAR="app-bar",THEME_SWITCHER="theme-switcher",SEARCH_BAR="search-bar",defaultLocale="en",useStyles=makeStyles()(e=>({appBarContainer:{display:"flex",padding:"8px",justifyContent:"space-between",alignItems:"center"},margin:{marginTop:54}})),messagesMap={},languages=["en","es","fr"],SampleAppBar=(languages.forEach(e=>{messagesMap[e]={}}),e=>{var t=useStyles()["classes"];const[r,a]=react.exports.useState(defaultLocale),[,s]=react.exports.useState({});react.exports.useEffect(()=>{e.locale&&a(e.locale)},[e.locale]),react.exports.useEffect(()=>{s(messagesMap[r])},[r]);var n=useDarkMode();return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Provider,Object.assign({store:e.store||store},{children:jsxRuntime.exports.jsx(AppBar,Object.assign({"data-test":APP_BAR},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:t.appBarContainer},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"subtitle2"},{children:"App Name"})),jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":SEARCH_BAR},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,Object.assign({locale:r},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-sample-app-bar.hXq2hF",defaultMessage:"Search Bar",description:"Primary Search Bar Place Holder Text"})}))})),jsxRuntime.exports.jsxs("div",{children:["☀",jsxRuntime.exports.jsx(Switch,{"data-test":THEME_SWITCHER,onChange:n.toggle,checked:n.value}),"☾"]})]}))}))})),jsxRuntime.exports.jsx("div",{className:t.margin})]})});export{APP_BAR,SEARCH_BAR,SampleAppBar,THEME_SWITCHER};