aiware-js 2.43.0 → 2.44.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.
Files changed (50) hide show
  1. package/index.esm.js +1 -1
  2. package/index.esm.js.gz +0 -0
  3. package/js-core.esm.js +18 -18
  4. package/js-core.esm.js.gz +0 -0
  5. package/js-core.esm20.js +2 -2
  6. package/js-core.esm20.js.gz +0 -0
  7. package/js-core.esm4.js +1 -1
  8. package/js-core.esm4.js.gz +0 -0
  9. package/js-core.esm44.js +2 -2
  10. package/js-core.esm44.js.gz +0 -0
  11. package/js-core.esm45.js +1 -1
  12. package/js-core.esm45.js.gz +0 -0
  13. package/js-core.esm47.js +1 -4
  14. package/js-core.esm47.js.gz +0 -0
  15. package/js-core.esm48.js +2 -2
  16. package/js-core.esm48.js.gz +0 -0
  17. package/js-core.esm56.js +2 -2
  18. package/js-core.esm56.js.gz +0 -0
  19. package/js-core.esm60.js +2 -2
  20. package/js-core.esm60.js.gz +0 -0
  21. package/js-core.esm61.js +6 -26
  22. package/js-core.esm61.js.gz +0 -0
  23. package/js-core.esm62.js +2 -2
  24. package/js-core.esm62.js.gz +0 -0
  25. package/js-core.esm64.js +1 -1
  26. package/js-core.esm64.js.gz +0 -0
  27. package/js-core.esm66.js +1 -1
  28. package/js-core.esm66.js.gz +0 -0
  29. package/js-core.esm75.js +1 -1
  30. package/js-core.esm75.js.gz +0 -0
  31. package/js-core.esm76.js +1 -1
  32. package/js-core.esm76.js.gz +0 -0
  33. package/js-core.esm79.js +1 -1
  34. package/js-core.esm79.js.gz +0 -0
  35. package/js-core.esm80.js +1 -1
  36. package/js-core.esm80.js.gz +0 -0
  37. package/js-core.esm81.js +1 -1
  38. package/js-core.esm81.js.gz +0 -0
  39. package/js-core.esm83.js +1 -1
  40. package/js-core.esm83.js.gz +0 -0
  41. package/js-core.umd.css +92 -92
  42. package/js-core.umd.css.gz +0 -0
  43. package/js-core.umd.js +194 -217
  44. package/js-core.umd.js.gz +0 -0
  45. package/js-core.umd.min.css +92 -92
  46. package/js-core.umd.min.css.gz +0 -0
  47. package/locales/en.json +1 -1
  48. package/locales/es.json +1 -1
  49. package/locales/fr.json +1 -1
  50. package/package.json +2 -2
Binary file
package/js-core.esm4.js CHANGED
@@ -1,4 +1,4 @@
1
- import{i as createSvgIcon,k as interopRequireDefault,j as jsxRuntime,F as FormattedMessage,m as makeStyles,A as AIWareIntlProvider,R as Routes,l as Route,n as useDispatch,o as useSelector,p as authStatusSelector,q as authContextSelector,r as react,t as AuthContext,v as lodash,B as Box,T as Typography,w as Alert,x as useNavigate,y as devErrorLogger,z as useLocation,L as LoadingButton,C as authErrorMessage,G as Grid,D as FormControl,E as TextField,H as classNames,I as resetPasswordRequest,J as InputLabel,O as OutlinedInput,K as InputAdornment,M as IconButton,N as Select,Q as Location,U as MenuItem,V as Button,W as Divider}from"./js-core.esm.js";import{d as default_1$1}from"./js-core.esm5.js";import{C as Container$1}from"./js-core.esm6.js";var match,version,store,wmget,wmhas,wmset,set$1,get,has,STATE,activeXDocument,Visibility={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(Visibility,"__esModule",{value:!0}),Visibility.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility"),default_1=Visibility.default=_default,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$o=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$l=function(e){try{return!!e()}catch(e){return!0}},fails$k=fails$l,descriptors=!fails$l(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$j=fails$l,functionBindNative=!fails$l(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$l=Function.prototype.call,functionCall=NATIVE_BIND$3?call$l.bind(call$l):function(){return call$l.apply(call$l,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$3&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$5=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$3(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,bind$6=FunctionPrototype$2.bind,call$k=FunctionPrototype$2.call,uncurryThis$m=NATIVE_BIND$2&&bind$6.bind(call$k,call$k),functionUncurryThis=NATIVE_BIND$2?function(e){return e&&uncurryThis$m(e)}:function(e){return e&&function(){return call$k.apply(e,arguments)}},uncurryThis$l=functionUncurryThis,toString$9=uncurryThis$l({}.toString),stringSlice$6=uncurryThis$l("".slice),classofRaw$1=function(e){return stringSlice$6(toString$9(e),8,-1)},uncurryThis$k=functionUncurryThis,fails$i=fails$l,classof$8=classofRaw$1,$Object$4=Object,split$1=functionUncurryThis("".split),indexedObject=fails$i(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$8(e)?split$1(e,""):$Object$4(e)}:$Object$4,$TypeError$d=TypeError,requireObjectCoercible$7=function(e){if(null==e)throw $TypeError$d("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$6=requireObjectCoercible$7,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$6(e))},isCallable$o=function(e){return"function"==typeof e},isCallable$n=isCallable$o,isObject$9=function(e){return"object"==typeof e?null!==e:isCallable$n(e)},global$n=global$o,isCallable$m=isCallable$o,aFunction=function(e){return isCallable$m(e)?e:void 0},getBuiltIn$8=function(e,t){return arguments.length<2?aFunction(global$n[e]):global$n[e]&&global$n[e][t]},uncurryThis$j=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),getBuiltIn$7=getBuiltIn$8,engineUserAgent=getBuiltIn$8("navigator","userAgent")||"",global$m=global$o,userAgent$3=engineUserAgent,process$3=global$m.process,Deno$1=global$m.Deno,versions=process$3&&process$3.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent$3.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION$1=engineV8Version,fails$h=fails$l,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$h(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$2=nativeSymbol,useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$8,isCallable$l=isCallable$o,isPrototypeOf$4=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$l(t)&&isPrototypeOf$4(t.prototype,$Object$3(e))},$String$3=String,tryToString$4=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$k=isCallable$o,tryToString$3=tryToString$4,$TypeError$c=TypeError,aCallable$7=function(e){if(isCallable$k(e))return e;throw $TypeError$c(tryToString$3(e)+" is not a function")},aCallable$6=aCallable$7,getMethod$6=function(e,t){e=e[t];return null==e?void 0:aCallable$6(e)},call$j=functionCall,isCallable$j=isCallable$o,isObject$8=isObject$9,$TypeError$b=TypeError,ordinaryToPrimitive$1=function(e,t){var r,o;if("string"===t&&isCallable$j(r=e.toString)&&!isObject$8(o=call$j(r,e)))return o;if(isCallable$j(r=e.valueOf)&&!isObject$8(o=call$j(r,e)))return o;if("string"!==t&&isCallable$j(r=e.toString)&&!isObject$8(o=call$j(r,e)))return o;throw $TypeError$b("Can't convert object to primitive value")},shared$4={exports:{}},isPure=!1,global$l=global$o,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$6(global$l,t,{value:r,configurable:!0,writable:!0})}catch(e){global$l[t]=r}return r},global$k=global$o,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$o[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$5=((shared$4.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$7),$Object$2=Object,toObject$4=function(e){return $Object$2(requireObjectCoercible$5(e))},uncurryThis$i=functionUncurryThis,toObject$3=toObject$4,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$3(e),t)},uncurryThis$h=functionUncurryThis,id=0,postfix=Math.random(),toString$8=uncurryThis$h(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$8(++id+postfix,36)},global$j=global$o,shared$3=shared$4.exports,hasOwn$c=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$3("wks"),Symbol$1=global$j.Symbol,symbolFor=Symbol$1&&Symbol$1.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$k=function(e){var t;return hasOwn$c(WellKnownSymbolsStore,e)&&(NATIVE_SYMBOL$1||"string"==typeof WellKnownSymbolsStore[e])||(t="Symbol."+e,NATIVE_SYMBOL$1&&hasOwn$c(Symbol$1,e)?WellKnownSymbolsStore[e]=Symbol$1[e]:WellKnownSymbolsStore[e]=(USE_SYMBOL_AS_UID&&symbolFor?symbolFor:createWellKnownSymbol)(t)),WellKnownSymbolsStore[e]},call$i=functionCall,isObject$7=isObject$9,isSymbol$1=isSymbol$2,getMethod$5=getMethod$6,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$j=wellKnownSymbol$k,$TypeError$a=TypeError,TO_PRIMITIVE=wellKnownSymbol$k("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$7(e)||isSymbol$1(e))return e;var r=getMethod$5(e,TO_PRIMITIVE);if(r){if(r=call$i(r,e,t=void 0===t?"default":t),!isObject$7(r)||isSymbol$1(r))return r;throw $TypeError$a("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$3=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$i=global$o,isObject$6=isObject$9,document$3=global$o.document,EXISTS$1=isObject$6(document$3)&&isObject$6(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$c=descriptors,fails$g=fails$l,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$l(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$b=descriptors,call$h=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$4=createPropertyDescriptor$5,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,hasOwn$b=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$b?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$2(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$b(e,t))return createPropertyDescriptor$4(!call$h(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$a=descriptors,fails$f=fails$l,v8PrototypeDefineBug=descriptors&&fails$l(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$5=isObject$9,$String$2=String,$TypeError$9=TypeError,anObject$h=function(e){if(isObject$5(e))return e;throw $TypeError$9($String$2(e)+" is not an object")},DESCRIPTORS$9=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$g=anObject$h,toPropertyKey$1=toPropertyKey$3,$TypeError$8=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$8=(objectDefineProperty.f=DESCRIPTORS$9?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var o;return anObject$g(e),t=toPropertyKey$1(t),anObject$g(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&(o=$getOwnPropertyDescriptor(e,t))&&o[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:o)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:o)[ENUMERABLE],writable:!1}),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$g(e),t=toPropertyKey$1(t),anObject$g(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$8("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$5=objectDefineProperty,createPropertyDescriptor$3=createPropertyDescriptor$5,createNonEnumerableProperty$5=DESCRIPTORS$8?function(e,t,r){return definePropertyModule$5.f(e,t,createPropertyDescriptor$3(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$2={exports:{}},DESCRIPTORS$7=descriptors,hasOwn$a=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$7&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$a(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$7||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$g=functionUncurryThis,isCallable$i=isCallable$o,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$4=(isCallable$i(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$h=global$o,isCallable$h=isCallable$o,inspectSource$3=inspectSource$4,WeakMap$1=global$o.WeakMap,nativeWeakMap=isCallable$h(WeakMap$1)&&/native code/.test(inspectSource$3(WeakMap$1)),shared$2=shared$4.exports,uid=uid$2,keys=shared$2("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=nativeWeakMap,global$g=global$o,uncurryThis$f=functionUncurryThis,isObject$4=isObject$9,createNonEnumerableProperty$4=createNonEnumerableProperty$5,hasOwn$9=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$3=global$g.TypeError,WeakMap=global$g.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$4(e)&&(e=get(e)).type===t)return e;throw TypeError$3("Incompatible receiver, "+t+" required")}},internalState=(has=NATIVE_WEAK_MAP||shared$1.state?(store=shared$1.state||(shared$1.state=new WeakMap),wmget=uncurryThis$f(store.get),wmhas=uncurryThis$f(store.has),wmset=uncurryThis$f(store.set),set$1=function(e,t){if(wmhas(store,e))throw new TypeError$3(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$1=function(e,t){if(hasOwn$9(e,STATE))throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$9(e,STATE)?e[STATE]:{}},function(e){return hasOwn$9(e,STATE)}),{set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor}),fails$e=fails$l,isCallable$g=isCallable$o,hasOwn$8=hasOwnProperty_1,DESCRIPTORS$6=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$4,InternalStateModule$3=internalState,enforceInternalState=InternalStateModule$3.enforce,getInternalState$2=InternalStateModule$3.get,defineProperty$5=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$6&&!fails$e(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$1=makeBuiltIn$2.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$8(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$6?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$8(r,"arity")&&e.length!==r.arity&&defineProperty$5(e,"length",{value:r.arity});try{r&&hasOwn$8(r,"constructor")&&r.constructor?DESCRIPTORS$6&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState(e);return hasOwn$8(r,"source")||(r.source=TEMPLATE.join("string"==typeof t?t:"")),e},isCallable$f=(Function.prototype.toString=makeBuiltIn$1(function(){return isCallable$g(this)&&getInternalState$2(this).source||inspectSource$2(this)},"toString"),isCallable$o),definePropertyModule$4=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$9=function(e,t,r,o){var n=(o=o||{}).enumerable,i=void 0!==o.name?o.name:t;if(isCallable$f(r)&&makeBuiltIn(r,i,o),o.global)n?e[t]=r:defineGlobalProperty$1(t,r);else{try{o.unsafe?e[t]&&(n=!0):delete e[t]}catch(e){}n?e[t]=r:definePropertyModule$4.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$2=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor$2:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$4=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$3=toIntegerOrInfinity$4,max$2=Math.max,min$2=Math.min,toAbsoluteIndex$2=function(e,t){e=toIntegerOrInfinity$3(e);return e<0?max$2(e+t,0):min$2(e,t)},toIntegerOrInfinity$2=toIntegerOrInfinity$4,min$1=Math.min,toLength$3=function(e){return 0<e?min$1(toIntegerOrInfinity$2(e),9007199254740991):0},toLength$2=toLength$3,lengthOfArrayLike$3=function(e){return toLength$2(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$2=lengthOfArrayLike$3,createMethod$1=function(a){return function(e,t,r){var o,n=toIndexedObject$3(e),i=lengthOfArrayLike$2(n),s=toAbsoluteIndex$1(r,i);if(a&&t!=t){for(;s<i;)if((o=n[s++])!=o)return!0}else for(;s<i;s++)if((a||s in n)&&n[s]===t)return a||s||0;return!a&&-1}},arrayIncludes={includes:createMethod$1(!0),indexOf:createMethod$1(!1)},uncurryThis$e=functionUncurryThis,hasOwn$7=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$2=uncurryThis$e([].push),objectKeysInternal=function(e,t){var r,o=toIndexedObject$2(e),n=0,i=[];for(r in o)!hasOwn$7(hiddenKeys$2,r)&&hasOwn$7(o,r)&&push$2(i,r);for(;t.length>n;)!hasOwn$7(o,r=t[n++])||~indexOf$1(i,r)||push$2(i,r);return i},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$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$8),uncurryThis$d=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$f=anObject$h,concat$2=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$f(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$2(t,r(e)):t},hasOwn$6=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$3=objectDefineProperty,copyConstructorProperties$2=function(e,t,r){for(var o=ownKeys(t),n=definePropertyModule$3.f,i=getOwnPropertyDescriptorModule.f,s=0;s<o.length;s++){var a=o[s];hasOwn$6(e,a)||r&&hasOwn$6(r,a)||n(e,a,i(t,a))}},fails$d=fails$l,isCallable$e=isCallable$o,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$e(t)?fails$d(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,global$f=global$o,getOwnPropertyDescriptor$2=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$3=createNonEnumerableProperty$5,defineBuiltIn$8=defineBuiltIn$9,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced$1=isForced_1,_export=function(e,t){var r,o,n,i=e.target,s=e.global,a=e.stat,l=s?global$f:a?global$f[i]||defineGlobalProperty(i,{}):(global$f[i]||{}).prototype;if(l)for(r in t){if(o=t[r],n=e.dontCallGetSet?(n=getOwnPropertyDescriptor$2(l,r))&&n.value:l[r],!isForced$1(s?r:i+(a?".":"#")+r,e.forced)&&void 0!==n){if(typeof o==typeof n)continue;copyConstructorProperties$1(o,n)}(e.sham||n&&n.sham)&&createNonEnumerableProperty$3(o,"sham",!0),defineBuiltIn$8(l,r,o,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$5=descriptors,uncurryThis$c=functionUncurryThis,call$g=functionCall,fails$c=fails$l,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$2=toObject$4,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat$1=uncurryThis$c([].concat),objectAssign=!$assign||fails$c(function(){var e,t,r,o;return!(!DESCRIPTORS$5||1===$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},o="abcdefghijklmnopqrst",(e={})[r=Symbol()]=7,o.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[r])||objectKeys$1($assign({},t)).join("")!=o})?function(e,t){for(var r=toObject$2(e),o=arguments.length,n=1,i=getOwnPropertySymbolsModule.f,s=propertyIsEnumerableModule.f;n<o;)for(var a,l=IndexedObject(arguments[n++]),c=i?concat$1(objectKeys$1(l),i(l)):objectKeys$1(l),u=c.length,p=0;p<u;)a=c[p++],DESCRIPTORS$5&&!call$g(s,l,a)||(r[a]=l[a]);return r}:$assign,$$c=_export,assign=objectAssign,objectDefineProperties=(_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign}),{}),DESCRIPTORS$4=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$2=objectDefineProperty,anObject$e=anObject$h,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$4&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$e(e);for(var r,o=toIndexedObject$1(t),n=objectKeys(t),i=n.length,s=0;s<i;)definePropertyModule$2.f(e,r=n[s++],o[r]);return e},getBuiltIn$8),html$2=getBuiltIn$8("document","documentElement"),anObject$d=anObject$h,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html$1=html$2,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$1.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 r;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$d(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),wellKnownSymbol$i=wellKnownSymbol$k,create$3=objectCreate,defineProperty$3=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$i("unscopables"),ArrayPrototype$1=Array.prototype,addToUnscopables$2=(null==ArrayPrototype$1[UNSCOPABLES]&&defineProperty$3(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$3(null)}),function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0}),$$b=_export,$includes=arrayIncludes.includes,fails$b=fails$l,addToUnscopables$1=addToUnscopables$2,BROKEN_ON_SPARSE=fails$l(function(){return!Array(1).includes()}),isObject$3=($$b({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),addToUnscopables$1("includes"),isObject$9),classof$7=classofRaw$1,wellKnownSymbol$h=wellKnownSymbol$k,MATCH$1=wellKnownSymbol$k("match"),isRegexp=function(e){var t;return isObject$3(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$7(e))},isRegExp=isRegexp,$TypeError$7=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError$7("The method doesn't accept regular expressions");return e},wellKnownSymbol$g=wellKnownSymbol$k,TO_STRING_TAG$3=wellKnownSymbol$k("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$3]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$d=isCallable$o,classofRaw=classofRaw$1,wellKnownSymbol$f=wellKnownSymbol$k,TO_STRING_TAG$2=wellKnownSymbol$k("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$6=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object$1(e),TO_STRING_TAG$2))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$d(e.callee)?"Arguments":t},classof$5=classof$6,$String$1=String,toString$7=function(e){if("Symbol"===classof$5(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$1(e)},wellKnownSymbol$e=wellKnownSymbol$k,MATCH=wellKnownSymbol$k("match"),correctIsRegexpLogic=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[MATCH]=!1,"/./"[t](r)}catch(e){}}return!1},$$a=_export,uncurryThis$b=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible$4=requireObjectCoercible$7,toString$6=toString$7,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf$1=functionUncurryThis("".indexOf),anObject$c=($$a({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf$1(toString$6(requireObjectCoercible$4(this)),toString$6(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}}),anObject$h),regexpFlags$1=function(){var e=anObject$c(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},fails$a=fails$l,global$e=global$o,$RegExp$2=global$o.RegExp,UNSUPPORTED_Y$1=fails$a(function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),MISSED_STICKY=UNSUPPORTED_Y$1||fails$a(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$1||fails$a(function(){var e=$RegExp$2("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),regexpStickyHelpers={BROKEN_CARET:BROKEN_CARET,MISSED_STICKY:MISSED_STICKY,UNSUPPORTED_Y:UNSUPPORTED_Y$1},fails$9=fails$l,global$d=global$o,$RegExp$1=global$o.RegExp,regexpUnsupportedDotAll=fails$9(function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),fails$8=fails$l,global$c=global$o,$RegExp=global$o.RegExp,regexpUnsupportedNcg=fails$8(function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),call$f=functionCall,uncurryThis$a=functionUncurryThis,toString$5=toString$7,regexpFlags=regexpFlags$1,stickyHelpers=regexpStickyHelpers,shared=shared$4.exports,create$2=objectCreate,getInternalState$1=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$4=uncurryThis$a("".charAt),indexOf=uncurryThis$a("".indexOf),replace$3=uncurryThis$a("".replace),stringSlice$5=uncurryThis$a("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call$f(nativeExec,e,"a"),call$f(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y=stickyHelpers.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG,regexpExec$2=patchedExec=PATCH?function(e){var t,r,o,n,i,s,a=this,l=getInternalState$1(a),e=toString$5(e),c=l.raw;if(c)return c.lastIndex=a.lastIndex,p=call$f(patchedExec,c,e),a.lastIndex=c.lastIndex,p;var u=l.groups,c=UNSUPPORTED_Y&&a.sticky,p=call$f(regexpFlags,a),l=a.source,$=0,d=e;if(c&&(p=replace$3(p,"y",""),-1===indexOf(p,"g")&&(p+="g"),d=stringSlice$5(e,a.lastIndex),0<a.lastIndex&&(!a.multiline||a.multiline&&"\n"!==charAt$4(e,a.lastIndex-1))&&(l="(?: "+l+")",d=" "+d,$++),t=new RegExp("^(?:"+l+")",p)),NPCG_INCLUDED&&(t=new RegExp("^"+l+"$(?!\\s)",p)),UPDATES_LAST_INDEX_WRONG&&(r=a.lastIndex),o=call$f(nativeExec,c?t:a,d),c?o?(o.input=stringSlice$5(o.input,$),o[0]=stringSlice$5(o[0],$),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&o&&(a.lastIndex=a.global?o.index+o[0].length:r),NPCG_INCLUDED&&o&&1<o.length&&call$f(nativeReplace,o[0],t,function(){for(n=1;n<arguments.length-2;n++)void 0===arguments[n]&&(o[n]=void 0)}),o&&u)for(o.groups=i=create$2(null),n=0;n<u.length;n++)i[(s=u[n])[0]]=o[s[1]];return o}:patchedExec,$$9=_export,exec$1=regexpExec$2,NATIVE_BIND$1=(_export({target:"RegExp",proto:!0,forced:/./.exec!==exec$1},{exec:exec$1}),functionBindNative),FunctionPrototype=Function.prototype,apply$2=FunctionPrototype.apply,call$e=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$e.bind(apply$2):function(){return call$e.apply(apply$2,arguments)}),uncurryThis$9=functionUncurryThis,defineBuiltIn$7=defineBuiltIn$9,regexpExec$1=regexpExec$2,fails$7=fails$l,wellKnownSymbol$d=wellKnownSymbol$k,createNonEnumerableProperty$2=createNonEnumerableProperty$5,SPECIES$3=wellKnownSymbol$d("species"),RegExpPrototype$2=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(r,e,t,o){var s,n=wellKnownSymbol$d(r),a=!fails$7(function(){var e={};return e[n]=function(){return 7},7!=""[r](e)}),i=a&&!fails$7(function(){var e=!1,t=/a/;return"split"===r&&((t={constructor:{}}).constructor[SPECIES$3]=function(){return t},t.flags="",t[n]=/./[n]),t.exec=function(){return e=!0,null},t[n](""),!e});a&&i&&!t||(s=uncurryThis$9(/./[n]),i=e(n,""[r],function(e,t,r,o,n){var e=uncurryThis$9(e),i=t.exec;return i===regexpExec$1||i===RegExpPrototype$2.exec?a&&!n?{done:!0,value:s(t,r,o)}:{done:!0,value:e(r,t,o)}:{done:!1}}),defineBuiltIn$7(String.prototype,r,i[0]),defineBuiltIn$7(RegExpPrototype$2,n,i[1])),o&&createNonEnumerableProperty$2(RegExpPrototype$2[n],"sham",!0)},uncurryThis$8=functionUncurryThis,toIntegerOrInfinity$1=toIntegerOrInfinity$4,toString$4=toString$7,requireObjectCoercible$3=requireObjectCoercible$7,charAt$3=uncurryThis$8("".charAt),charCodeAt=uncurryThis$8("".charCodeAt),stringSlice$4=uncurryThis$8("".slice),createMethod=function(n){return function(e,t){var r,e=toString$4(requireObjectCoercible$3(e)),t=toIntegerOrInfinity$1(t),o=e.length;return t<0||o<=t?n?"":void 0:(r=charCodeAt(e,t))<55296||56319<r||t+1===o||(o=charCodeAt(e,t+1))<56320||57343<o?n?charAt$3(e,t):r:n?stringSlice$4(e,t,t+2):o-56320+(r-55296<<10)+65536}},stringMultibyte={codeAt:createMethod(!1),charAt:createMethod(!0)},charAt$2=stringMultibyte.charAt,advanceStringIndex$2=function(e,t,r){return t+(r?charAt$2(e,t).length:1)},uncurryThis$7=functionUncurryThis,toObject$1=toObject$4,floor$1=Math.floor,charAt$1=uncurryThis$7("".charAt),replace$2=uncurryThis$7("".replace),stringSlice$3=uncurryThis$7("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(i,s,a,l,c,e){var u=a+i.length,p=l.length,t=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==c&&(c=toObject$1(c),t=SUBSTITUTION_SYMBOLS),replace$2(e,t,function(e,t){var r;switch(charAt$1(t,0)){case"$":return"$";case"&":return i;case"`":return stringSlice$3(s,0,a);case"'":return stringSlice$3(s,u);case"<":r=c[stringSlice$3(t,1,-1)];break;default:var o,n=+t;if(0==n)return e;if(p<n)return 0!==(o=floor$1(n/10))&&o<=p?void 0===l[o-1]?charAt$1(t,1):l[o-1]+charAt$1(t,1):e;r=l[n-1]}return void 0===r?"":r})},call$d=functionCall,anObject$b=anObject$h,isCallable$c=isCallable$o,classof$4=classofRaw$1,regexpExec=regexpExec$2,$TypeError$6=TypeError,regexpExecAbstract=function(e,t){var r=e.exec;if(isCallable$c(r))return null!==(r=call$d(r,e,t))&&anObject$b(r),r;if("RegExp"===classof$4(e))return call$d(regexpExec,e,t);throw $TypeError$6("RegExp#exec called on incompatible receiver")},apply$1=functionApply,call$c=functionCall,uncurryThis$6=functionUncurryThis,fixRegExpWellKnownSymbolLogic$2=fixRegexpWellKnownSymbolLogic,fails$6=fails$l,anObject$a=anObject$h,isCallable$b=isCallable$o,toIntegerOrInfinity=toIntegerOrInfinity$4,toLength$1=toLength$3,toString$3=toString$7,requireObjectCoercible$2=requireObjectCoercible$7,advanceStringIndex$1=advanceStringIndex$2,getMethod$4=getMethod$6,getSubstitution=getSubstitution$1,regExpExec$2=regexpExecAbstract,wellKnownSymbol$c=wellKnownSymbol$k,REPLACE=wellKnownSymbol$k("replace"),max$1=Math.max,min=Math.min,concat=uncurryThis$6([].concat),push$1=uncurryThis$6([].push),stringIndexOf=uncurryThis$6("".indexOf),stringSlice$2=uncurryThis$6("".slice),maybeToString=function(e){return void 0===e?e:String(e)},REPLACE_KEEPS_$0="$0"==="a".replace(/./,"$0"),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=!!/./[REPLACE]&&""===/./[REPLACE]("a","$0"),REPLACE_SUPPORTS_NAMED_GROUPS=!fails$6(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),call$b=(fixRegExpWellKnownSymbolLogic$2("replace",function(e,m,b){var x=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(e,t){var r=requireObjectCoercible$2(this),o=null==e?void 0:getMethod$4(e,REPLACE);return o?call$c(o,e,r,t):call$c(m,toString$3(r),e,t)},function(e,t){var r=anObject$a(this),o=toString$3(e);if("string"==typeof t&&-1===stringIndexOf(t,x)&&-1===stringIndexOf(t,"$<")){e=b(m,r,o,t);if(e.done)return e.value}for(var n,i=isCallable$b(t),s=(i||(t=toString$3(t)),r.global),a=(s&&(n=r.unicode,r.lastIndex=0),[]);null!==(p=regExpExec$2(r,o))&&(push$1(a,p),s);)""===toString$3(p[0])&&(r.lastIndex=advanceStringIndex$1(o,toLength$1(r.lastIndex),n));for(var l="",c=0,u=0;u<a.length;u++){for(var p,$=toString$3((p=a[u])[0]),d=max$1(min(toIntegerOrInfinity(p.index),o.length),0),g=[],h=1;h<p.length;h++)push$1(g,maybeToString(p[h]));var y=p.groups,f=i?(f=concat([$],g,d,o),void 0!==y&&push$1(f,y),toString$3(apply$1(t,void 0,f))):getSubstitution($,o,d,g,y,t);c<=d&&(l+=stringSlice$2(o,c,d)+f,c=d+$.length)}return l+stringSlice$2(o,c)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE),functionCall),hasOwn$5=hasOwnProperty_1,isPrototypeOf$3=objectIsPrototypeOf,regExpFlags=regexpFlags$1,RegExpPrototype$1=RegExp.prototype,regexpGetFlags=function(e){var t=e.flags;return void 0!==t||"flags"in RegExpPrototype$1||hasOwn$5(e,"flags")||!isPrototypeOf$3(RegExpPrototype$1,e)?t:call$b(regExpFlags,e)},PROPER_FUNCTION_NAME$1=functionName.PROPER,defineBuiltIn$6=defineBuiltIn$9,anObject$9=anObject$h,$toString$1=toString$7,fails$5=fails$l,getRegExpFlags=regexpGetFlags,TO_STRING="toString",RegExpPrototype=RegExp.prototype,n$ToString=RegExpPrototype[TO_STRING],NOT_GENERIC=fails$5(function(){return"/a/b"!=n$ToString.call({source:"a",flags:"b"})}),INCORRECT_NAME=PROPER_FUNCTION_NAME$1&&n$ToString.name!=TO_STRING;(NOT_GENERIC||INCORRECT_NAME)&&defineBuiltIn$6(RegExp.prototype,TO_STRING,function(){var e=anObject$9(this);return"/"+$toString$1(e.source)+"/"+$toString$1(getRegExpFlags(e))},{unsafe:!0});const SHARED_TEXT={resetPasswordTitle:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.title",defaultMessage:"New password required",description:"Title of the reset password widget"}),resetPasswordSubHeader:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.subHeader",defaultMessage:"A strong password contains a mix of numbers, letters and symbols. It is hard to guess, does not resemble a real word and is only used for this account.",description:"Description of the reset password widget"}),passwordRequirements:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordRequirements",defaultMessage:"Password requirements",description:"Heading of password requirements"}),resetPasswordSubmitButton:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.submitButton",defaultMessage:"Change Password",description:"Text of submit button for reset password"}),lengthCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.lengthCheck",defaultMessage:"8 Character minimum",description:"The error message for the lengthCheck."}),pastPasswordCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.pastPasswordCheck",defaultMessage:"Not identical to last 10 passwords",description:"The error message for the pastPasswordCheck."}),userNameCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.userNameCheck",defaultMessage:"Not the same as account email",description:"The error message for the userNameCheck."}),dictionaryCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.dictionaryCheck",defaultMessage:"No dictionary passwords",description:"The error message for the dictionaryCheck."}),passwordsNotMatching:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordsNotMatching",defaultMessage:"Passwords not matching",description:"The error message for the passwords not matching."}),invalidTokenOrUsername:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.invalidTokenOrUsername",defaultMessage:"Error! Missing token or username.",description:"The error message for the missing token or username."}),passwordComplexityCheckSymbols:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordComplexityCheckSymbols",defaultMessage:"Requires 1 lowercase, 1 uppercase, 1 number, and 1 symbol.",description:"The error message for the check symbols error."}),passwordComplexityCheckDays:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordComplexityCheckDays",defaultMessage:"Cannot be changed twice within 10 days.",description:"The error message for the days error."})},generateApiUrlFromHost=(e=!1)=>{var t=window.location.host;if(t.includes("local"))return e?"https://api.stage.us-1.veritone.com/v3/graphql":"https://api.stage.us-1.veritone.com";var t=t.split("."),r=t.findIndex(e=>"dev"===e||"stage"===e);let o="";return o=-1!==r?"veritone"!==t[r+1]?t[r]+"."+t[r+1]:t[r]+".us-1":(r=t.findIndex(e=>"veritone"===e),"aiware2"!==t[r-1]?t[r-1]:"us-1"),e?`https://api.${o}.veritone.com/v3/graphql`:`https://api.${o}.veritone.com`};function parseToken(e=""){try{var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(atob(t).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(r)}catch(e){return console.log(e),null}}const Header=({text:e,subText:t,type:r})=>jsxRuntime.exports.jsxs(Box,Object.assign({sx:{marginBottom:"30px",textAlign:"center"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({sx:{fontFamily:"Nunito",fontSize:"22px",lineHeight:"18px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},"data-testid":"os-auth-header-text-"+r},{children:e})),t&&jsxRuntime.exports.jsx(Typography,Object.assign({sx:{fontFamily:"Nunito",fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269",marginTop:"10px",width:"368px"},"data-testid":"os-auth-subheader-text-"+r},{children:t}))]})),useStyles$4=makeStyles()(e=>({title:{textTransform:"initial",fontSize:22,marginBottom:e.spacing(4)},subHeader:{color:"#9CA8B4"},h6:{color:"#27292B"},requirements:{listStyle:"disc",padding:0,marginLeft:e.spacing(5),"& li":{marginBottom:e.spacing(1),color:"#27292B",fontSize:14,fontWeight:400,"&.requirementError":{color:"#D50000"}}},submitButton:{height:55,background:"#214167",fontSize:18,width:"100%",maxWidth:380,textTransform:"uppercase"},text:{fontFamily:"Nunito",fontWeight:400,fontSize:"22px",lineHeight:"18px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},subText:{fontFamily:"'Nunito Sans'",fontWeight:400,fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269"}}));var IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,iterators={},fails$4=fails$l,correctPrototypeGetter=!fails$l(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$4=hasOwnProperty_1,isCallable$a=isCallable$o,toObject=toObject$4,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object=Object,ObjectPrototype=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(e){var t,e=toObject(e);return hasOwn$4(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$a(t)&&e instanceof t?t.prototype:e instanceof $Object?ObjectPrototype:null)},fails$3=fails$l,isCallable$9=isCallable$o,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$5=defineBuiltIn$9,wellKnownSymbol$b=wellKnownSymbol$k,ITERATOR$7=wellKnownSymbol$k("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$3(function(){var e={};return IteratorPrototype$2[ITERATOR$7].call(e)!==e})),iteratorsCore=(isCallable$9((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$7])||defineBuiltIn$5(IteratorPrototype$2,ITERATOR$7,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$2=objectDefineProperty.f,hasOwn$3=hasOwnProperty_1,wellKnownSymbol$a=wellKnownSymbol$k,TO_STRING_TAG$1=wellKnownSymbol$k("toStringTag"),setToStringTag$4=function(e,t,r){(e=e&&!r?e.prototype:e)&&!hasOwn$3(e,TO_STRING_TAG$1)&&defineProperty$2(e,TO_STRING_TAG$1,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$1=objectCreate,createPropertyDescriptor$2=createPropertyDescriptor$5,setToStringTag$3=setToStringTag$4,Iterators$4=iterators,returnThis$1=function(){return this},createIteratorConstructor$2=function(e,t,r,o){t+=" Iterator";return e.prototype=create$1(IteratorPrototype$1,{next:createPropertyDescriptor$2(+!o,r)}),setToStringTag$3(e,t,!1),Iterators$4[t]=returnThis$1,e},isCallable$8=isCallable$o,$String=String,$TypeError$5=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$8(e))return e;throw $TypeError$5("Can't set "+$String(e)+" as a prototype")},uncurryThis$5=functionUncurryThis,anObject$8=anObject$h,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=uncurryThis$5(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(e){}return function(e,t){return anObject$8(e),aPossiblePrototype(t),o?r(e,t):e.__proto__=t,e}}():void 0),$$8=_export,call$a=functionCall,FunctionName=functionName,isCallable$7=isCallable$o,createIteratorConstructor$1=createIteratorConstructor$2,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$2=setToStringTag$4,createNonEnumerableProperty$1=createNonEnumerableProperty$5,defineBuiltIn$4=defineBuiltIn$9,wellKnownSymbol$9=wellKnownSymbol$k,Iterators$3=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$6=wellKnownSymbol$9("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator$1=function(e,t,r,o,n,i,s){createIteratorConstructor$1(r,t,o);function a(e){if(e===n&&d)return d;if(!BUGGY_SAFARI_ITERATORS&&e in p)return p[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}}var l,c,o=t+" Iterator",u=!1,p=e.prototype,$=p[ITERATOR$6]||p["@@iterator"]||n&&p[n],d=!BUGGY_SAFARI_ITERATORS&&$||a(n),g="Array"==t&&p.entries||$;if(g&&(g=getPrototypeOf(g.call(new e)))!==Object.prototype&&g.next&&(getPrototypeOf(g)!==IteratorPrototype&&(setPrototypeOf$1?setPrototypeOf$1(g,IteratorPrototype):isCallable$7(g[ITERATOR$6])||defineBuiltIn$4(g,ITERATOR$6,returnThis)),setToStringTag$2(g,o,!0)),PROPER_FUNCTION_NAME&&n==VALUES&&$&&$.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(p,"name",VALUES):(u=!0,d=function(){return call$a($,this)})),n)if(l={values:a(VALUES),keys:i?d:a(KEYS),entries:a(ENTRIES)},s)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in p||defineBuiltIn$4(p,c,l[c]);else $$8({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return p[ITERATOR$6]!==d&&defineBuiltIn$4(p,ITERATOR$6,d,{name:n}),Iterators$3[t]=d,l},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$2,Iterators$2=iterators,InternalStateModule$2=internalState,defineProperty$1=objectDefineProperty.f,defineIterator=defineIterator$1,DESCRIPTORS$3=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$2=InternalStateModule$2.set,getInternalState=InternalStateModule$2.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState$2(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState(this),t=e.target,r=e.kind,o=e.index++;return!t||o>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:o,done:!1}:"values"==r?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS$3&&"values"!==values.name)try{defineProperty$1(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},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$b=global$o,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$5,wellKnownSymbol$8=wellKnownSymbol$k,ITERATOR$5=wellKnownSymbol$8("iterator"),TO_STRING_TAG=wellKnownSymbol$8("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR$5]!==ArrayValues)try{createNonEnumerableProperty(t,ITERATOR$5,ArrayValues)}catch(e){t[ITERATOR$5]=ArrayValues}if(t[TO_STRING_TAG]||createNonEnumerableProperty(t,TO_STRING_TAG,e),DOMIterables[e])for(var r in ArrayIteratorMethods)if(t[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty(t,r,ArrayIteratorMethods[r])}catch(e){t[r]=ArrayIteratorMethods[r]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$b[COLLECTION_NAME]&&global$b[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,symbolToString,symbolValueOf,regexp,replace$1,stringSlice$1,PwdRequirements,$$7=_export,DESCRIPTORS$2=descriptors,global$a=global$o,uncurryThis$4=functionUncurryThis,hasOwn$2=hasOwnProperty_1,isCallable$6=isCallable$o,isPrototypeOf$2=objectIsPrototypeOf,toString$2=toString$7,defineProperty=objectDefineProperty.f,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$a.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;function __rest(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function __awaiter(e,s,a,l){return new(a=a||Promise)(function(r,t){function o(e){try{i(l.next(e))}catch(e){t(e)}}function n(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(o,n)}i((l=l.apply(e,s||[])).next())})}!DESCRIPTORS$2||!isCallable$6(NativeSymbol)||"description"in SymbolPrototype&&void 0===NativeSymbol().description||(EmptyStringDescriptionStore={},copyConstructorProperties(SymbolWrapper=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:toString$2(arguments[0]),t=isPrototypeOf$2(SymbolPrototype,this)?new NativeSymbol(e):void 0===e?NativeSymbol():NativeSymbol(e);return""===e&&(EmptyStringDescriptionStore[t]=!0),t},NativeSymbol),(SymbolWrapper.prototype=SymbolPrototype).constructor=SymbolWrapper,NATIVE_SYMBOL="Symbol(test)"==String(NativeSymbol("test")),symbolToString=uncurryThis$4(SymbolPrototype.toString),symbolValueOf=uncurryThis$4(SymbolPrototype.valueOf),regexp=/^Symbol\((.*)\)[^)]+$/,replace$1=uncurryThis$4("".replace),stringSlice$1=uncurryThis$4("".slice),defineProperty(SymbolPrototype,"description",{configurable:!0,get:function(){var e=symbolValueOf(this),t=symbolToString(e);return hasOwn$2(EmptyStringDescriptionStore,e)?"":""===(e=NATIVE_SYMBOL?stringSlice$1(t,7,-1):replace$1(t,regexp,"$1"))?void 0:e}}),$$7({global:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper}));const BlueButton=({onClick:e,text:t,type:r,loading:o})=>jsxRuntime.exports.jsx(LoadingButton,Object.assign({color:"primary",variant:"contained",onClick:e,loading:o,sx:{textTransform:"none",fontSize:"18px",lineHeight:"24px",fontFamily:"Nunito",fontWeight:600,width:"368px",height:"56px",backgroundColor:"#2C78D4"},"data-testid":`os-auth--${r}-btn`},{children:t}));function ResetPasswordForm({onBtnClick:e,requiresRestriction:t,disableForm:r=!1,columnView:o=!1,isNewPage:n=!1}){var i=useStyles$4()["classes"],s=useSelector(authStatusSelector);const a=useSelector(authErrorMessage);var l=useSelector(authContextSelector);const[c,u]=react.exports.useState(""),[p,$]=react.exports.useState(""),[d,g]=react.exports.useState({[PwdRequirements.lengthCheck]:null,[PwdRequirements.userNameCheck]:null,[PwdRequirements.dictionaryCheck]:null,[PwdRequirements.pastPasswordCheck]:null,[PwdRequirements.passwordComplexityCheck]:null,[PwdRequirements.passwordChangeFrequencyCheck]:null}),[h,y]=react.exports.useState(null);s="loading"===s&&l===AuthContext.ResetPassword;const f=lodash.exports.isEqual(c,p);l=Object.values(d).includes(!1);var m=()=>{lodash.exports.isEmpty(c)||lodash.exports.isEmpty(p)||!f||e(c)},b=(react.exports.useEffect(()=>{try{if(a){var e=JSON.parse(a);const t=e["description"],o=__rest(e,["description"]);Object.keys(o).forEach(e=>{var t,r;t=e,r=o[e],g(e=>Object.assign(Object.assign({},e),{[t]:r}))}),y(t)}else y(null)}catch(e){y(a)}finally{$("")}},[a]),[{label:SHARED_TEXT.lengthCheck,error:d[PwdRequirements.lengthCheck]},{label:SHARED_TEXT.pastPasswordCheck,error:d[PwdRequirements.pastPasswordCheck]},{label:SHARED_TEXT.userNameCheck,error:d[PwdRequirements.userNameCheck]},{label:SHARED_TEXT.dictionaryCheck,error:d[PwdRequirements.dictionaryCheck]},...d[PwdRequirements.passwordComplexityCheck]?[{label:SHARED_TEXT.passwordComplexityCheckSymbols,error:!0},{label:SHARED_TEXT.passwordComplexityCheckDays,error:!0}]:[]]),x={fontFamily:"Nunito",lineHeight:"22px"};return jsxRuntime.exports.jsx("form",Object.assign({onSubmit:e=>{e.preventDefault()}},{children:jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,spacing:n?3:6,mt:n?0:3},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,sm:o?12:7,xs:12},{children:[jsxRuntime.exports.jsx(FormControl,Object.assign({fullWidth:!0,sx:{mb:6}},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"rp-password-field",required:!0,type:"password",id:"password",label:"Password",variant:"outlined",autoFocus:!0,value:c,onChange:e=>u(e.target.value),error:l,autoComplete:"off",disabled:r,InputLabelProps:{style:x}})})),jsxRuntime.exports.jsx(FormControl,Object.assign({sx:{fontFamily:"Nunito"},fullWidth:!0},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"rp-password-confirm-field",required:!0,type:"password",id:"confirm-password",label:"Confirm Password",variant:"outlined",value:p,onChange:e=>$(e.target.value),autoComplete:"off",error:!f&&!!p,helperText:!f&&p&&SHARED_TEXT.passwordsNotMatching,disabled:r,InputLabelProps:{style:x}})})),h&&jsxRuntime.exports.jsx(Alert,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:h}))]})),t&&jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,sm:o?12:5,xs:12},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",className:i.h6},{children:SHARED_TEXT.passwordRequirements})),jsxRuntime.exports.jsx("ul",Object.assign({className:i.requirements,"data-testid":"rp-requirements-list"},{children:b.map((e,t)=>jsxRuntime.exports.jsx("li",Object.assign({className:classNames({requirementError:!0===e.error})},{children:e.label}),"pwd-requirement-"+t))}))]})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12,justifyContent:"center",display:"flex"},{children:n?jsxRuntime.exports.jsx(BlueButton,{onClick:m,loading:s,text:SHARED_TEXT.resetPasswordSubmitButton,type:"reset-pw"}):jsxRuntime.exports.jsx(LoadingButton,Object.assign({"data-testid":"rp-password-submit-button",variant:"contained",disableElevation:!0,size:"large",className:i.submitButton,onClick:m,loading:s,disabled:r},{children:SHARED_TEXT.resetPasswordSubmitButton}))}))]}))}))}!function(e){e.lengthCheck="lengthCheck",e.userNameCheck="userNameCheck",e.dictionaryCheck="dictionaryCheck",e.pastPasswordCheck="pastPasswordCheck",e.passwordComplexityCheck="passwordComplexityCheck",e.passwordChangeFrequencyCheck="passwordChangeFrequencyCheck"}(PwdRequirements=PwdRequirements||{});const DEFAULT_CONTAINER_WIDTH=740,CONTAINER_WIDTH_BREAKPOINT=400;function ResetPasswordWidget({resetToken:t,username:r,requiresPasswordRestriction:e=!1,onSuccess:o,organizationInviteId:n,containerWidth:i=DEFAULT_CONTAINER_WIDTH,isNewPage:s=!1}){useStyles$4();const a=useDispatch(),l=useSelector(authStatusSelector),c=useSelector(authContextSelector);react.exports.useEffect(()=>{"success"===l&&c===AuthContext.ResetPassword&&null!=o&&o()},[l,c]);var u=lodash.exports.isEmpty(t)||lodash.exports.isEmpty(r),p=i<=CONTAINER_WIDTH_BREAKPOINT||!e;return jsxRuntime.exports.jsxs(Box,Object.assign({p:s?0:4,id:"reset-password-widget",width:i},{children:[s?jsxRuntime.exports.jsx(Header,{text:SHARED_TEXT.resetPasswordTitle,subText:SHARED_TEXT.resetPasswordSubHeader,type:"reset-pw"}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1",sx:{textTransform:"initial",fontSize:22,marginBottom:"20px"}},{children:SHARED_TEXT.resetPasswordTitle})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2"},{children:SHARED_TEXT.resetPasswordSubHeader}))]}),u&&jsxRuntime.exports.jsx(Alert,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:SHARED_TEXT.invalidTokenOrUsername})),jsxRuntime.exports.jsx(ResetPasswordForm,{onBtnClick:e=>{s?a(resetPasswordRequest({resetToken:t,username:r,password:e,organizationInviteId:n,apiUrl:generateApiUrlFromHost()})):a(resetPasswordRequest({resetToken:t,username:r,password:e,organizationInviteId:n}))},requiresRestriction:e,disableForm:u,columnView:p,isNewPage:s})]}))}const ResetPassword=e=>jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ResetPasswordWidget,Object.assign({},e))});var headersHas,headersSet,wrapRequestOptions,RequestConstructor,_g,_defs,fails$2=fails$l,wellKnownSymbol$7=wellKnownSymbol$k,IS_PURE=isPure,ITERATOR$4=wellKnownSymbol$k("iterator"),nativeUrl=!fails$2(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),r=e.searchParams,o="";return e.pathname="c%20d",r.forEach(function(e,t){r.delete("b"),o+=t+e}),IS_PURE&&!e.toJSON||!r.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==r.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!r[ITERATOR$4]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==o||"x"!==new URL("http://x",void 0).host}),defineBuiltIn$3=defineBuiltIn$9,defineBuiltIns$1=function(e,t,r){for(var o in t)defineBuiltIn$3(e,o,t[o],r);return e},isPrototypeOf$1=objectIsPrototypeOf,$TypeError$4=TypeError,anInstance$2=function(e,t){if(isPrototypeOf$1(t,e))return e;throw $TypeError$4("Incorrect invocation")},uncurryThis$3=functionUncurryThis,aCallable$5=aCallable$7,NATIVE_BIND=functionBindNative,bind$5=functionUncurryThis(functionUncurryThis.bind),functionBindContext=function(e,t){return aCallable$5(e),void 0===t?e:NATIVE_BIND?bind$5(e,t):function(){return e.apply(t,arguments)}},classof$3=classof$6,getMethod$3=getMethod$6,Iterators$1=iterators,wellKnownSymbol$6=wellKnownSymbol$k,ITERATOR$3=wellKnownSymbol$k("iterator"),getIteratorMethod$3=function(e){if(null!=e)return getMethod$3(e,ITERATOR$3)||getMethod$3(e,"@@iterator")||Iterators$1[classof$3(e)]},call$9=functionCall,aCallable$4=aCallable$7,anObject$7=anObject$h,tryToString$2=tryToString$4,getIteratorMethod$2=getIteratorMethod$3,$TypeError$3=TypeError,getIterator$2=function(e,t){var r=arguments.length<2?getIteratorMethod$2(e):t;if(aCallable$4(r))return anObject$7(call$9(r,e));throw $TypeError$3(tryToString$2(e)+" is not iterable")},$TypeError$2=TypeError,validateArgumentsLength$2=function(e,t){if(e<t)throw $TypeError$2("Not enough arguments");return e},toPropertyKey=toPropertyKey$3,definePropertyModule$1=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$5,createProperty$1=function(e,t,r){t=toPropertyKey(t);t in e?definePropertyModule$1.f(e,t,createPropertyDescriptor$1(0,r)):e[t]=r},toAbsoluteIndex=toAbsoluteIndex$2,lengthOfArrayLike$1=lengthOfArrayLike$3,createProperty=createProperty$1,$Array=Array,max=Math.max,arraySliceSimple=function(e,t,r){for(var o=lengthOfArrayLike$1(e),n=toAbsoluteIndex(t,o),i=toAbsoluteIndex(void 0===r?o:r,o),s=$Array(max(i-n,0)),a=0;n<i;n++,a++)createProperty(s,a,e[n]);return s.length=a,s},arraySlice$2=arraySliceSimple,floor=Math.floor,mergeSort=function(e,t){var r=e.length,o=floor(r/2);return r<8?insertionSort(e,t):merge(e,mergeSort(arraySlice$2(e,0,o),t),mergeSort(arraySlice$2(e,o),t),t)},insertionSort=function(e,t){for(var r,o,n=e.length,i=1;i<n;){for(r=e[o=i];o&&0<t(e[o-1],r);)e[o]=e[--o];o!==i++&&(e[o]=r)}return e},merge=function(e,t,r,o){for(var n=t.length,i=r.length,s=0,a=0;s<n||a<i;)e[s+a]=s<n&&a<i?o(t[s],r[a])<=0?t[s++]:r[a++]:s<n?t[s++]:r[a++];return e},arraySort$1=mergeSort,$$6=_export,global$9=global$o,call$8=functionCall,uncurryThis$2=functionUncurryThis,DESCRIPTORS$1=descriptors,USE_NATIVE_URL=nativeUrl,defineBuiltIn$2=defineBuiltIn$9,defineBuiltIns=defineBuiltIns$1,setToStringTag$1=setToStringTag$4,createIteratorConstructor=createIteratorConstructor$2,InternalStateModule$1=internalState,anInstance$1=anInstance$2,isCallable$5=isCallable$o,hasOwn$1=hasOwnProperty_1,bind$4=functionBindContext,classof$2=classof$6,anObject$6=anObject$h,isObject$2=isObject$9,$toString=toString$7,create=objectCreate,createPropertyDescriptor=createPropertyDescriptor$5,getIterator$1=getIterator$2,getIteratorMethod$1=getIteratorMethod$3,validateArgumentsLength$1=validateArgumentsLength$2,wellKnownSymbol$5=wellKnownSymbol$k,arraySort=mergeSort,ITERATOR$2=wellKnownSymbol$k("iterator"),URL_SEARCH_PARAMS="URLSearchParams",URL_SEARCH_PARAMS_ITERATOR=URL_SEARCH_PARAMS+"Iterator",setInternalState$1=InternalStateModule$1.set,getInternalParamsState=InternalStateModule$1.getterFor(URL_SEARCH_PARAMS),getInternalIteratorState=InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR),getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,safeGetBuiltIn=function(e){var t;return DESCRIPTORS$1?(t=getOwnPropertyDescriptor$1(global$9,e))&&t.value:global$9[e]},nativeFetch=safeGetBuiltIn("fetch"),NativeRequest=safeGetBuiltIn("Request"),Headers=safeGetBuiltIn("Headers"),RequestPrototype=NativeRequest&&NativeRequest.prototype,HeadersPrototype=Headers&&Headers.prototype,RegExp$1=global$9.RegExp,TypeError$2=global$9.TypeError,decodeURIComponent$1=global$9.decodeURIComponent,encodeURIComponent=global$9.encodeURIComponent,charAt=uncurryThis$2("".charAt),join=uncurryThis$2([].join),push=uncurryThis$2([].push),replace=uncurryThis$2("".replace),shift=uncurryThis$2([].shift),splice=uncurryThis$2([].splice),split=uncurryThis$2("".split),stringSlice=uncurryThis$2("".slice),plus=/\+/g,sequences=Array(4),percentSequence=function(e){return sequences[e-1]||(sequences[e-1]=RegExp$1("((?:%[\\da-f]{2}){"+e+"})","gi"))},percentDecode=function(t){try{return decodeURIComponent$1(t)}catch(e){return t}},deserialize=function(e){var t=replace(e,plus," "),r=4;try{return decodeURIComponent$1(t)}catch(e){for(;r;)t=replace(t,percentSequence(r--),percentDecode);return t}},find=/[!'()~]|%20/g,replacements={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(e){return replacements[e]},serialize=function(e){return replace(encodeURIComponent(e),find,replacer)},URLSearchParamsIterator=createIteratorConstructor(function(e,t){setInternalState$1(this,{type:URL_SEARCH_PARAMS_ITERATOR,iterator:getIterator$1(getInternalParamsState(e).entries),kind:t})},"Iterator",function(){var e=getInternalIteratorState(this),t=e.kind,e=e.iterator.next(),r=e.value;return e.done||(e.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),e},!0),URLSearchParamsState=function(e){this.entries=[],this.url=null,void 0!==e&&(isObject$2(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===charAt(e,0)?stringSlice(e,1):e:$toString(e)))},URLSearchParamsConstructor=(URLSearchParamsState.prototype={type:URL_SEARCH_PARAMS,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,o,n,i,s,a=getIteratorMethod$1(e);if(a)for(r=(t=getIterator$1(e,a)).next;!(o=call$8(r,t)).done;){if(n=(o=getIterator$1(anObject$6(o.value))).next,(i=call$8(n,o)).done||(s=call$8(n,o)).done||!call$8(n,o).done)throw TypeError$2("Expected sequence with length 2");push(this.entries,{key:$toString(i.value),value:$toString(s.value)})}else for(var l in e)hasOwn$1(e,l)&&push(this.entries,{key:l,value:$toString(e[l])})},parseQuery:function(e){if(e)for(var t,r=split(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(t=split(t,"="),push(this.entries,{key:deserialize(shift(t)),value:deserialize(join(t,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],o=0;o<t.length;)e=t[o++],push(r,serialize(e.key)+"="+serialize(e.value));return join(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}},function(){anInstance$1(this,URLSearchParamsPrototype),setInternalState$1(this,new URLSearchParamsState(0<arguments.length?arguments[0]:void 0))}),URLSearchParamsPrototype=URLSearchParamsConstructor.prototype,sameValue$1=(defineBuiltIns(URLSearchParamsPrototype,{append:function(e,t){validateArgumentsLength$1(arguments.length,2);var r=getInternalParamsState(this);push(r.entries,{key:$toString(e),value:$toString(t)}),r.updateURL()},delete:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this),r=t.entries,o=$toString(e),n=0;n<r.length;)r[n].key===o?splice(r,n,1):n++;t.updateURL()},get:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),o=0;o<t.length;o++)if(t[o].key===r)return t[o].value;return null},getAll:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),o=[],n=0;n<t.length;n++)t[n].key===r&&push(o,t[n].value);return o},has:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),o=0;o<t.length;)if(t[o++].key===r)return!0;return!1},set:function(e,t){validateArgumentsLength$1(arguments.length,1);for(var r,o=getInternalParamsState(this),n=o.entries,i=!1,s=$toString(e),a=$toString(t),l=0;l<n.length;l++)(r=n[l]).key===s&&(i?splice(n,l--,1):(i=!0,r.value=a));i||push(n,{key:s,value:a}),o.updateURL()},sort:function(){var e=getInternalParamsState(this);arraySort(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=getInternalParamsState(this).entries,o=bind$4(e,1<arguments.length?arguments[1]:void 0),n=0;n<r.length;)o((t=r[n++]).value,t.key,this)},keys:function(){return new URLSearchParamsIterator(this,"keys")},values:function(){return new URLSearchParamsIterator(this,"values")},entries:function(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0}),defineBuiltIn$2(URLSearchParamsPrototype,ITERATOR$2,URLSearchParamsPrototype.entries,{name:"entries"}),defineBuiltIn$2(URLSearchParamsPrototype,"toString",function(){return getInternalParamsState(this).serialize()},{enumerable:!0}),setToStringTag$1(URLSearchParamsConstructor,URL_SEARCH_PARAMS),$$6({global:!0,constructor:!0,forced:!USE_NATIVE_URL},{URLSearchParams:URLSearchParamsConstructor}),!USE_NATIVE_URL&&isCallable$5(Headers)&&(headersHas=uncurryThis$2(HeadersPrototype.has),headersSet=uncurryThis$2(HeadersPrototype.set),wrapRequestOptions=function(e){if(isObject$2(e)){var t,r=e.body;if(classof$2(r)===URL_SEARCH_PARAMS)return t=e.headers?new Headers(e.headers):new Headers,headersHas(t,"content-type")||headersSet(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),create(e,{body:createPropertyDescriptor(0,$toString(r)),headers:createPropertyDescriptor(0,t)})}return e},isCallable$5(nativeFetch)&&$$6({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return nativeFetch(e,1<arguments.length?wrapRequestOptions(arguments[1]):{})}}),isCallable$5(NativeRequest))&&((RequestPrototype.constructor=RequestConstructor=function(e){return anInstance$1(this,RequestPrototype),new NativeRequest(e,1<arguments.length?wrapRequestOptions(arguments[1]):{})}).prototype=RequestPrototype,$$6({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:RequestConstructor})),Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}),call$7=functionCall,fixRegExpWellKnownSymbolLogic$1=fixRegexpWellKnownSymbolLogic,anObject$5=anObject$h,requireObjectCoercible$1=requireObjectCoercible$7,sameValue=sameValue$1,toString$1=toString$7,getMethod$2=getMethod$6,regExpExec$1=regexpExecAbstract,call$6=(fixRegexpWellKnownSymbolLogic("search",function(o,n,i){return[function(e){var t=requireObjectCoercible$1(this),r=null==e?void 0:getMethod$2(e,o);return r?call$7(r,e,t):new RegExp(e)[o](toString$1(t))},function(e){var t=anObject$5(this),e=toString$1(e),r=i(n,t,e);return r.done?r.value:(r=t.lastIndex,sameValue(r,0)||(t.lastIndex=0),e=regExpExec$1(t,e),sameValue(t.lastIndex,r)||(t.lastIndex=r),null===e?-1:e.index)}]}),functionCall),fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,anObject$4=anObject$h,toLength=toLength$3,toString=toString$7,requireObjectCoercible=requireObjectCoercible$7,getMethod$1=getMethod$6,advanceStringIndex=advanceStringIndex$2,regExpExec=regexpExecAbstract;fixRegexpWellKnownSymbolLogic("match",function(o,a,l){return[function(e){var t=requireObjectCoercible(this),r=null==e?void 0:getMethod$1(e,o);return r?call$6(r,e,t):new RegExp(e)[o](toString(t))},function(e){var t=anObject$4(this),r=toString(e),e=l(a,t,r);if(e.done)return e.value;if(!t.global)return regExpExec(t,r);for(var o=t.unicode,n=[],i=t.lastIndex=0;null!==(s=regExpExec(t,r));){var s=toString(s[0]);""===(n[i]=s)&&(t.lastIndex=advanceStringIndex(r,toLength(t.lastIndex),o)),i++}return 0===i?null:n}]});const EmailSharedText={emailLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-email-input-label",defaultMessage:"Email",description:"Label Email"}),continueLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-email-continue-button",defaultMessage:"Continue",description:"Continue Button"}),emailErrorState:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-email-input-field-error-state-label",defaultMessage:"This is an invalid email",description:"Email error state label"}),emptyEmailErrorMsg:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-empty-email-input-field-error-state-label",defaultMessage:"Email is required",description:"Empty email error state label"})},useStyles$3=makeStyles()(()=>({emailWrapper:{display:"flex",flexDirection:"column",alignItems:"center",fontFamily:"Nunito","& button":{textTransform:"none",marginTop:"20px",fontSize:"18px",lineHeight:"24px",fontFamily:"Nunito",fontWeight:"600"},"& input":{fontFamily:"Nunito",lineHeight:"22px",color:"#2A323C"},"& .Sdk-MuiOutlinedInput-root":{"&:hover fieldset":{border:"1px solid #DADFE8"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8"},"&.Mui-error.Mui-focused fieldset":{borderColor:"#d32f2f"}},"& .Sdk-MuiFormControl-root .MuiInputLabel-root.Mui-focused":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiInputLabel-outlined":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiFormLabel-root .MuiInputLabel-root":{color:"#9CA8B4"},"& .Sdk-Mui-focused .MuiInputLabel-outlined":{color:"#9CA8B4"},"& .Sdk-Mui-error":{color:"#d32f2f !important"}},emailField:{width:"368px",height:"52px"},continueBtn:{width:"368px",height:"56px"}})),EmailInput=({onNextStep:e,email:t,setEmail:r,isLoading:o,buttonText:n})=>{var i=useStyles$3()["classes"];const[s,a]=react.exports.useState(!1);var{emailLabel:l,emailErrorState:c,emptyEmailErrorMsg:u}=EmailSharedText,c=s?t?c:u:l;const p=()=>{$(t)&&e?(a(!1),e()):a(!0)};const $=e=>e.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);return jsxRuntime.exports.jsxs(Box,Object.assign({className:i.emailWrapper},{children:[jsxRuntime.exports.jsx(TextField,{id:"username","data-testid":"os-auth-email-input-field",label:c,InputProps:{type:"email"},variant:"outlined",value:t,autoComplete:"username",autoFocus:!0,className:i.emailField,error:s,onChange:e=>{e=e.target.value;s&&a(!1),r(e)},onKeyDown:e=>{"Enter"===e.key&&p()}}),n&&jsxRuntime.exports.jsx(LoadingButton,Object.assign({color:"primary",variant:"contained",onClick:p,className:i.continueBtn,"data-testid":"os-auth-email-continue-btn",loading:o},{children:n}))]}))},useStyles$2=makeStyles()(()=>({passwordWrapper:{fontFamily:"Nunito","& input":{fontFamily:"Nunito",lineHeight:"22px",color:"#2A323C"},"& .Sdk-MuiOutlinedInput-root":{"&:hover fieldset":{border:"1px solid #DADFE8"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8"}},"& .Sdk-MuiFormControl-root .MuiInputLabel-root.Mui-focused":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiInputLabel-outlined":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiFormLabel-root .MuiInputLabel-rootd":{color:"#9CA8B4"}}})),PasswordInput=({password:e,onPasswordChange:t,errorMessage:r,onPressEnter:o,autoFocus:n=!0})=>{var i=useStyles$2()["classes"];const[s,a]=react.exports.useState(!1),[l,c]=react.exports.useState("Password");react.exports.useEffect(()=>{r?c(r):c("Password")},[r]);return jsxRuntime.exports.jsx(Box,Object.assign({className:i.passwordWrapper},{children:jsxRuntime.exports.jsxs(FormControl,Object.assign({sx:{width:"100%"},variant:"outlined"},{children:[jsxRuntime.exports.jsx(InputLabel,Object.assign({htmlFor:"outlined-adornment-password",style:{color:r?"#d32f2f":"#9CA8B4"}},{children:l})),jsxRuntime.exports.jsx(OutlinedInput,{id:"outlined-adornment-password","data-testid":"os-auth-password-input-field",type:s?"text":"password",onChange:e=>{e=e.target.value;t(e)},value:e,autoFocus:n,autoComplete:"password",endAdornment:jsxRuntime.exports.jsx(InputAdornment,Object.assign({position:"end"},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({"aria-label":"toggle password visibility",onClick:()=>a(e=>!e),onMouseDown:e=>{e.preventDefault()},edge:"end"},{children:s?jsxRuntime.exports.jsx(default_1$1,{}):jsxRuntime.exports.jsx(default_1,{})}))})),error:!!r,label:l,onKeyDown:e=>{"Enter"===e.key&&o()}})]}))}))},useStyles$1=makeStyles()(e=>({selectWrapper:{position:"absolute",right:"40px",top:"26px"},selectMenu:{marginTop:e.spacing(1),width:"164px",borderRadius:"10px !important",ul:{padding:"5px"},li:{padding:"10px 8px",borderRadius:"4px"}}})),destination=[{label:"aiWARE - US",value:"https://aiware2.us-1.veritone.com/ui/auth/login"},{label:"aiWARE - CA",value:"https://aiware2.ca-1.veritone.com/ui/auth/login"},{label:"aiWARE - UK",value:"https://aiware2.uk-1.veritone.com/ui/auth/login"},{label:"aiWARE - US Gov 1",value:"https://aiware2.us-gov-1.veritone.com/ui/auth/login"},{label:"aiWARE - US Gov 2",value:"https://aiware2.us-gov-2.veritone.com/ui/auth/login"},{label:"aiWARE - Deloitte",value:"https://aiware2.us-2.veritone.com/ui/auth/login"}],DestinationDropdown=({handleDestination:t})=>{var e=useStyles$1()["classes"];const[r,o]=react.exports.useState(destination[0].value);return jsxRuntime.exports.jsx(Box,Object.assign({className:e.selectWrapper},{children:jsxRuntime.exports.jsx(Select,Object.assign({name:"destination-dropdown",value:r,onChange:e=>{e=e.target.value;o(e),t(e)},renderValue:e=>{return jsxRuntime.exports.jsxs(Box,Object.assign({sx:{display:"flex",alignItems:"center",gap:.2}},{children:[jsxRuntime.exports.jsx(Location,{sx:{width:"18px",height:"18px",color:"#555F7C"}}),jsxRuntime.exports.jsx("span",{children:(t=e,null==(e=destination.find(e=>e.value===t))?void 0:e.label)})]}));var t},sx:{color:"#2A323C",fontFamily:"Nunito",fontSize:"12px",lineHeight:"16px",fontWeight:"400",width:"164px",height:"36px","& .Sdk-MuiSelect-select":{paddingLeft:"8px"},"&.MuiOutlinedInput-root":{"& fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"},"&:hover fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"}}},MenuProps:{classes:{paper:e.selectMenu}}},{children:destination.map(e=>jsxRuntime.exports.jsx(MenuItem,Object.assign({value:e.value,sx:{color:"#2A323C",fontFamily:"Nunito",fontSize:"12px",lineHeight:"16px",fontWeight:"400",letterSpacing:"-1.30385e-09px"}},{children:e.label}),e.label))}))}))};function _extends$1(){return(_extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,o=arguments[t];for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var _path,_path2,_path3,SvgAiwareLogo=function(e){return react.exports.createElement("svg",_extends$1({width:270,height:48,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),_g=_g||react.exports.createElement("g",{clipPath:"url(#aiware_logo_svg__a)"},react.exports.createElement("path",{d:"M0 30.967c0-.99.173-1.906.52-2.751a7.888 7.888 0 0 1 1.453-2.28 6.677 6.677 0 0 1 2.18-1.521 6.167 6.167 0 0 1 2.63-.58h17.583v-7.457H6.897V9.247H27.591l1.126 2.238 1.267 2.356 1.2 2.537V47.8h-6.818V40.67l-.857 1.883-1.267 2.798-1.126 2.45H6.784c-.923 0-1.8-.18-2.63-.543a7.49 7.49 0 0 1-2.181-1.52 7.888 7.888 0 0 1-1.454-2.28A7.463 7.463 0 0 1 0 40.669v-9.702Zm6.784 9.702h17.582v-9.702H6.784v9.702ZM49.735 11.603V47.8h-6.818V11.603h6.818ZM42.57 0h7.51v7.421h-7.51V0Z",fill:"#307FE2"}),react.exports.createElement("path",{d:"M0 30.967c0-.99.173-1.906.52-2.751a7.888 7.888 0 0 1 1.453-2.28 6.677 6.677 0 0 1 2.18-1.521 6.167 6.167 0 0 1 2.63-.58h17.583v-7.457H6.897V9.247H27.591l1.126 2.238 1.267 2.356 1.2 2.537V47.8h-6.818V40.67l-.857 1.883-1.267 2.798-1.126 2.45H6.784c-.923 0-1.8-.18-2.63-.543a7.49 7.49 0 0 1-2.181-1.52 7.888 7.888 0 0 1-1.454-2.28A7.463 7.463 0 0 1 0 40.669v-9.702Zm6.784 9.702h17.582v-9.702H6.784v9.702ZM49.735 11.603V47.8h-6.818V11.603h6.818ZM42.57 0h7.51v7.421h-7.51V0Z",fill:"#307FE2"}),react.exports.createElement("path",{d:"M74.734 47.837 61.658 0h6.538l10.142 38.063L88.448 0h6.539l10.11 38.063L115.239 0h6.538l-13.076 47.837h-7.176l-9.791-35.861-9.823 35.86h-7.177ZM147.26 0l17.637 47.837h-6.538l-2.025-5.505-2.025-5.504-2.52-6.838-2.54 6.838h-15.575l-4.051 11.009h-6.538L140.722 0h6.538Zm-11.099 29.99h15.628l-7.782-21.083-7.846 21.083ZM208.879 17.08c0 6.672-2.722 10.474-8.165 11.409l8.611 19.348h-7.24l-8.483-19.115h-14.321v19.115h-6.538V0h25.037c7.399 0 11.099 3.88 11.099 11.642v5.438Zm-29.598 4.803h18.148c1.743 0 2.998-.4 3.763-1.2.766-.801 1.149-2.113 1.149-3.937v-4.77c0-1.824-.383-3.136-1.149-3.937-.765-.8-2.02-1.2-3.763-1.2h-18.148v15.044ZM219.818 0h33.329v6.839h-26.791v13.677h22.868v6.838h-22.868v13.644h26.791v6.839h-33.329V0ZM257.019 41.225h4.73v.884h-1.942v5.302h-.845v-5.302h-1.943v-.884Zm8.797 6.186-2.206-4.534v4.534h-.846v-6.186h.924l2.252 4.659 2.256-4.659h.919v6.186h-.841v-4.534l-2.207 4.534h-.251Z",fill:"#333F48"})),_defs=_defs||react.exports.createElement("defs",null,react.exports.createElement("clipPath",{id:"aiware_logo_svg__a"},react.exports.createElement("path",{fill:"#fff",d:"M0 0h270v48H0z"}))))};function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,o=arguments[t];for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var SvgVeritoneLogo=function(e){return react.exports.createElement("svg",_extends({width:180,height:34,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),_path=_path||react.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.626 0 0 13.076 12.175 34h13.319L5.626 0ZM21.703 0l5.164 8.86L32.044 0h-10.34Z",fill:"#728FBE"}),_path2=_path2||react.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.044 0 12.176 34h13.318L37.67 13.076 32.044 0Z",fill:"#325491"}),_path3=_path3||react.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M161.768 10.063v6.02h9.982v1.979h-9.982v6.046h11.175v1.952h-13.21V8.111h13.21v1.952h-11.175Zm-5.114-1.952V26.06h-2.36L143.2 10.904V26.06h-2.034V8.111h2.36l11.094 15.102V8.111h2.034Zm-27.569 16.187c2.133 0 3.86-.696 5.181-2.088 1.265-1.338 1.898-3.046 1.898-5.124 0-2.08-.633-3.787-1.898-5.125-1.321-1.392-3.048-2.088-5.181-2.088-2.134 0-3.861.696-5.181 2.088-1.266 1.338-1.899 3.046-1.899 5.125s.633 3.786 1.899 5.124c1.32 1.392 3.047 2.088 5.181 2.088Zm0-16.404c2.676 0 4.873.895 6.591 2.684 1.682 1.736 2.523 3.905 2.523 6.508 0 2.602-.841 4.772-2.523 6.507-1.718 1.79-3.915 2.684-6.591 2.684-2.677 0-4.874-.895-6.592-2.684-1.681-1.735-2.522-3.905-2.522-6.507 0-2.603.841-4.772 2.522-6.508 1.718-1.79 3.915-2.684 6.592-2.684Zm-9.676 2.17h-6.266V26.06h-2.034V10.063h-6.266V8.111h14.566v1.952ZM99.663 26.06h2.035V8.11h-2.035v17.95ZM84.701 16.97V9.955h4.963c2.743 0 4.134 1.18 4.134 3.507 0 2.326-1.39 3.506-4.135 3.506h-4.962Zm6.956 1.647.193-.05c1.255-.334 2.256-.95 2.974-1.833.717-.882 1.08-1.983 1.08-3.271 0-1.638-.568-2.954-1.688-3.91-1.127-.959-2.65-1.445-4.525-1.445H82.71v17.95H84.7v-7.24h4.726l5.13 7.24h2.364l-5.264-7.44ZM68.577 10.063v6.02h9.982v1.979h-9.982v6.046h11.175v1.952h-13.21V8.111h13.21v1.952H68.577ZM63.942 8.111l-7.687 17.95h-2.333L46.236 8.11h2.224l6.629 15.645L61.717 8.11h2.225ZM176.505 24.727h.236c.276 0 .499-.092.499-.315 0-.197-.144-.328-.459-.328-.132 0-.224.013-.276.026v.617Zm-.013 1.207h-.499v-2.152c.197-.026.472-.066.827-.066.407 0 .591.066.735.171a.54.54 0 0 1 .224.46c0 .262-.197.432-.447.511v.026c.21.066.315.237.381.526.066.328.118.446.157.524h-.525c-.065-.078-.105-.262-.171-.524-.039-.224-.17-.329-.446-.329h-.236v.854Zm-1.327-1.115c0 .958.723 1.72 1.681 1.72.933.012 1.641-.762 1.641-1.707 0-.958-.708-1.732-1.667-1.732-.932 0-1.655.774-1.655 1.719Zm3.874 0c0 1.207-.972 2.165-2.206 2.165s-2.219-.958-2.219-2.165.985-2.152 2.232-2.152c1.221 0 2.193.944 2.193 2.152Z",fill:"#142E44"}))};const Footer=()=>jsxRuntime.exports.jsxs(Box,Object.assign({sx:{textAlign:"center",marginTop:"20px"},"data-testid":"aiware-auth-footer"},{children:[jsxRuntime.exports.jsx(SvgVeritoneLogo,{}),jsxRuntime.exports.jsxs(Typography,Object.assign({sx:{marginBottom:"18px",marginTop:"50px",fontFamily:"Nunito",fontSize:"10px",lineHeight:"16px",color:"#5C6269"}},{children:["© ",(new Date).getFullYear()," AiWARE, All Rights Reserved."," ",jsxRuntime.exports.jsxs("a",Object.assign({href:"https://www.veritone.com/terms",style:{color:"#0C53B0",textDecoration:"none"}},{children:["Terms of Service"," "]}))]}))]})),PageContainer=({children:e})=>jsxRuntime.exports.jsx(Container$1,{children:jsxRuntime.exports.jsxs(Box,Object.assign({sx:{display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"space-between",height:"100vh"}},{children:[jsxRuntime.exports.jsxs(Box,{children:[jsxRuntime.exports.jsx(Box,Object.assign({sx:{marginTop:"178px",marginBottom:"50px",textAlign:"center"}},{children:jsxRuntime.exports.jsx(SvgAiwareLogo,{})})),e]}),jsxRuntime.exports.jsx(Footer,{})]}))}),useStyles=makeStyles()(()=>({btnWrapper:{display:"flex",alignItems:"center",width:"100%",justifyContent:"center",flexDirection:"column"},openIdLogo:{width:"24px",height:"24px",marginRight:"8px"},openIdBtn:{"&.MuiButton-root":{width:"368px",marginTop:"20px",height:"56px",border:"1px solid #DADFE8",borderRadius:"4px",fontFamily:"Nunito",fontStyle:"normal",fontWeight:"600",fontSize:"18px",lineHeight:"24px",letterSpacing:"-1.30385e-09px",textTransform:"none","&:hover, &:focus":{border:"1px solid #DADFE8",color:"#2A323C"}}}})),OpenID=({openIdItems:e})=>{const r=useStyles()["classes"];return jsxRuntime.exports.jsx(Box,Object.assign({className:r.btnWrapper},{children:jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:e&&e.map((t,e)=>{return jsxRuntime.exports.jsxs(Button,Object.assign({variant:"outlined","data-testid":"os-auth-openId-button-"+e,className:r.openIdBtn,onClick:()=>{var e;e=t.loginUrl,window.location.href=e},sx:{backgroundColor:t.loginButtonStyle&&t.loginButtonStyle.btnColor?t.loginButtonStyle.btnColor:"#FFFFFF","&:hover, &:focus":{backgroundColor:t.loginButtonStyle&&t.loginButtonStyle.btnColor?t.loginButtonStyle.btnColor:"#FFFFFF"}}},{children:[t.loginButtonStyle&&t.loginButtonStyle.btnLogo&&jsxRuntime.exports.jsx("img",{className:r.openIdLogo,alt:"icon",src:t.loginButtonStyle.btnLogo,"data-testid":"os-auth-openId-image-"+e}),jsxRuntime.exports.jsx("span",Object.assign({"data-testid":"os-auth-openId-name-"+e,style:{marginTop:"3px",color:t.loginButtonStyle&&t.loginButtonStyle.btnTextColor?t.loginButtonStyle.btnTextColor:"#2A323C"}},{children:(null==t?void 0:t.name)&&"Login with "+(20<(e=t.name).length?e.substring(0,20)+"...":e)}))]}),t.connectId)})})}))};var location,defer,channel,port,classof$1=classofRaw$1,global$8=global$o,engineIsNode="process"==classofRaw$1(global$o.process),getBuiltIn$3=getBuiltIn$8,definePropertyModule=objectDefineProperty,wellKnownSymbol$4=wellKnownSymbol$k,DESCRIPTORS=descriptors,SPECIES$2=wellKnownSymbol$k("species"),setSpecies$1=function(e){var e=getBuiltIn$3(e),t=definePropertyModule.f;DESCRIPTORS&&e&&!e[SPECIES$2]&&t(e,SPECIES$2,{configurable:!0,get:function(){return this}})},uncurryThis$1=functionUncurryThis,fails$1=fails$l,isCallable$4=isCallable$o,classof=classof$6,getBuiltIn$2=getBuiltIn$8,inspectSource$1=inspectSource$4,noop=function(){},empty=[],construct=getBuiltIn$8("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis$1(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$4(e))return!1;try{return construct(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$4(e))return!1;switch(classof(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec(constructorRegExp,inspectSource$1(e))}catch(e){return!0}},isConstructor$1=(isConstructorLegacy.sham=!0,!construct||fails$1(function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){e=!0})||e})?isConstructorLegacy:isConstructorModern),isConstructor=isConstructor$1,tryToString$1=tryToString$4,$TypeError$1=TypeError,aConstructor$1=function(e){if(isConstructor(e))return e;throw $TypeError$1(tryToString$1(e)+" is not a constructor")},anObject$3=anObject$h,aConstructor=aConstructor$1,wellKnownSymbol$3=wellKnownSymbol$k,SPECIES$1=wellKnownSymbol$k("species"),speciesConstructor$1=function(e,t){var e=anObject$3(e).constructor;return void 0===e||null==(e=anObject$3(e)[SPECIES$1])?t:aConstructor(e)},uncurryThis=functionUncurryThis,arraySlice$1=functionUncurryThis([].slice),userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$7=global$o,apply=functionApply,bind$3=functionBindContext,isCallable$3=isCallable$o,hasOwn=hasOwnProperty_1,fails=fails$l,html=html$2,arraySlice=arraySlice$1,createElement=documentCreateElement$2,validateArgumentsLength=validateArgumentsLength$2,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$7.setImmediate,clear=global$7.clearImmediate,process$2=global$7.process,Dispatch=global$7.Dispatch,Function$1=global$7.Function,MessageChannel=global$7.MessageChannel,String$1=global$7.String,counter=0,queue$1={},ONREADYSTATECHANGE="onreadystatechange";try{location=global$7.location}catch(e){}var flush,head,last,notify$1,toggle,node,promise,then,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,run=function(e){var t;hasOwn(queue$1,e)&&(t=queue$1[e],delete queue$1[e],t())},runner=function(e){return function(){run(e)}},listener=function(e){run(e.data)},post=function(e){global$7.postMessage(String$1(e),location.protocol+"//"+location.host)},task$1=(set&&clear||(set=function(e){validateArgumentsLength(arguments.length,1);var t=isCallable$3(e)?e:Function$1(e),r=arraySlice(arguments,1);return queue$1[++counter]=function(){apply(t,void 0,r)},defer(counter),counter},clear=function(e){delete queue$1[e]},IS_NODE$3?defer=function(e){process$2.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel&&!IS_IOS$1?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=listener,defer=bind$3(port.postMessage,port)):global$7.addEventListener&&isCallable$3(global$7.postMessage)&&!global$7.importScripts&&location&&"file:"!==location.protocol&&!fails(post)?(defer=post,global$7.addEventListener("message",listener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)}),{set:set,clear:clear}),userAgent$1=engineUserAgent,global$6=global$o,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&void 0!==global$6.Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$5=global$o,bind$2=functionBindContext,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$5.MutationObserver||global$5.WebKitMutationObserver,document$2=global$5.document,process$1=global$5.process,Promise$1=global$5.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor(global$5,"queueMicrotask"),queueMicrotask=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value,microtask$1=(queueMicrotask||(flush=function(){var e,t;for(IS_NODE$2&&(e=process$1.domain)&&e.exit();head;){t=head.fn,head=head.next;try{t()}catch(e){throw head?notify$1():last=void 0,e}}last=void 0,e&&e.enter()},notify$1=IS_IOS||IS_NODE$2||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$2(promise.then,promise),function(){then(flush)}):IS_NODE$2?function(){process$1.nextTick(flush)}:(macrotask=bind$2(macrotask,global$5),function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),function(){node.data=toggle=!toggle})),queueMicrotask||function(e){e={fn:e,next:void 0};last&&(last.next=e),head||(head=e,notify$1()),last=e}),global$4=global$o,hostReportErrors$1=function(e,t){var r=global$4.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))},perform$3=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Queue$1=function(){this.head=null,this.tail=null},queue=(Queue$1.prototype={add:function(e){e={item:e,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},Queue$1),global$3=global$o,promiseNativeConstructor=global$o.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$1=engineIsNode,engineIsBrowser=!engineIsDeno&&!engineIsNode&&"object"==typeof window&&"object"==typeof document,global$2=global$o,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$2=isCallable$o,isForced=isForced_1,inspectSource=inspectSource$4,wellKnownSymbol$2=wellKnownSymbol$k,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,SPECIES=(NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,wellKnownSymbol$2("species")),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$2(global$2.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",function(){var e=inspectSource(NativePromiseConstructor$3),t=e!==String(NativePromiseConstructor$3);if(!t&&66===V8_VERSION)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){function r(e){e(function(){},function(){})}e=new NativePromiseConstructor$3(function(e){e(1)});if((e.constructor={})[SPECIES]=r,!(SUBCLASSING=e.then(function(){})instanceof r))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$3=aCallable$7,PromiseCapability=function(e){var r,o;this.promise=new e(function(e,t){if(void 0!==r||void 0!==o)throw TypeError("Bad Promise constructor");r=e,o=t}),this.resolve=aCallable$3(r),this.reject=aCallable$3(o)},$$5=(newPromiseCapability$2.f=function(e){return new PromiseCapability(e)},_export),IS_NODE=engineIsNode,global$1=global$o,call$5=functionCall,defineBuiltIn$1=defineBuiltIn$9,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$4,setSpecies=setSpecies$1,aCallable$2=aCallable$7,isCallable$1=isCallable$o,isObject$1=isObject$9,anInstance=anInstance$2,speciesConstructor=speciesConstructor$1,task=task$1.set,microtask=microtask$1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue,InternalStateModule=internalState,NativePromiseConstructor$2=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule.getterFor(PROMISE),setInternalState=InternalStateModule.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$1=global$1.TypeError,document$1=global$1.document,process=global$1.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$1.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$1(e)||!isCallable$1(t=e.then))&&t},callReaction=function(e,t){var r,o,n,i=t.value,s=t.state==FULFILLED,a=s?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{a?(s||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===a?r=i:(u&&u.enter(),r=a(i),u&&(u.exit(),n=!0)),r===e.promise?c(TypeError$1("Promise-chain cycle")):(o=isThenable(r))?call$5(o,r,l,c):l(r)):c(i)}catch(e){u&&!n&&u.exit(),c(e)}},notify=function(r,o){r.notified||(r.notified=!0,microtask(function(){for(var e,t=r.reactions;e=t.get();)callReaction(e,r);r.notified=!1,o&&!r.rejection&&onUnhandled(r)}))},dispatchEvent=function(e,t,r){var o;DISPATCH_EVENT?((o=document$1.createEvent("Event")).promise=t,o.reason=r,o.initEvent(e,!1,!0),global$1.dispatchEvent(o)):o={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT&&(t=global$1["on"+e])?t(o):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",r)},onUnhandled=function(o){call$5(task,global$1,function(){var e=o.facade,t=o.value,r=isUnhandled(o);if(r&&(r=perform$2(function(){IS_NODE?process.emit("unhandledRejection",t,e):dispatchEvent(UNHANDLED_REJECTION,e,t)}),o.rejection=IS_NODE||isUnhandled(o)?UNHANDLED:HANDLED,r.error))throw r.value})},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(t){call$5(task,global$1,function(){var e=t.facade;IS_NODE?process.emit("rejectionHandled",e):dispatchEvent(REJECTION_HANDLED,e,t.value)})},bind$1=function(t,r,o){return function(e){t(r,e,o)}},internalReject=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw TypeError$1("Promise can't be resolved itself");var o=isThenable(e);o?microtask(function(){var t={done:!1};try{call$5(o,e,bind$1(internalResolve,t,r),bind$1(internalReject,t,r))}catch(e){internalReject(t,e,r)}}):(r.value=e,r.state=FULFILLED,notify(r,!1))}catch(e){internalReject({done:!1},e,r)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance(this,PromisePrototype),aCallable$2(e),call$5(Internal,this);var t=getInternalPromiseState(this);try{e(bind$1(internalResolve,t),bind$1(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$1(PromisePrototype,"then",function(e,t){var r=getInternalPromiseState(this),o=newPromiseCapability$1(speciesConstructor(this,PromiseConstructor));return r.parent=!0,o.ok=!isCallable$1(e)||e,o.fail=isCallable$1(t)&&t,o.domain=IS_NODE?process.domain:void 0,r.state==PENDING?r.reactions.add(o):microtask(function(){callReaction(o,r)}),o.promise}),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$1(internalResolve,t),this.reject=bind$1(internalReject,t)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},isCallable$1(NativePromiseConstructor$2))&&NativePromisePrototype$1!==Object.prototype){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$1(NativePromisePrototype$1,"then",function(e,t){var r=this;return new PromiseConstructor(function(e,t){call$5(nativeThen,r,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch(e){}setPrototypeOf&&setPrototypeOf(NativePromisePrototype$1,PromisePrototype)}$$5({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var wellKnownSymbol$1=wellKnownSymbol$k,Iterators=iterators,ITERATOR$1=wellKnownSymbol$k("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$1=function(e){return void 0!==e&&(Iterators.Array===e||ArrayPrototype[ITERATOR$1]===e)},call$4=functionCall,anObject$2=anObject$h,getMethod=getMethod$6,iteratorClose$1=function(e,t,r){var o,n;anObject$2(e);try{if(!(o=getMethod(e,"return"))){if("throw"===t)throw r;return r}o=call$4(o,e)}catch(e){n=!0,o=e}if("throw"===t)throw r;if(n)throw o;return anObject$2(o),r},bind=functionBindContext,call$3=functionCall,anObject$1=anObject$h,tryToString=tryToString$4,isArrayIteratorMethod=isArrayIteratorMethod$1,lengthOfArrayLike=lengthOfArrayLike$3,isPrototypeOf=objectIsPrototypeOf,getIterator=getIterator$2,getIteratorMethod=getIteratorMethod$3,iteratorClose=iteratorClose$1,$TypeError=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$2=function(e,t,r){function o(e){return i&&iteratorClose(i,"normal",e),new Result(!0,e)}function n(e){return $?(anObject$1(e),h?y(e[0],e[1],o):y(e[0],e[1])):h?y(e,o):y(e)}var i,s,a,l,c,u,p=r&&r.that,$=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),g=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),y=bind(t,p);if(d)i=e.iterator;else if(g)i=e;else{if(!(r=getIteratorMethod(e)))throw $TypeError(tryToString(e)+" is not iterable");if(isArrayIteratorMethod(r)){for(s=0,a=lengthOfArrayLike(e);s<a;s++)if((l=n(e[s]))&&isPrototypeOf(ResultPrototype,l))return l;return new Result(!1)}i=getIterator(e,r)}for(c=(d?e:i).next;!(u=call$3(c,i)).done;){try{l=n(u.value)}catch(e){iteratorClose(i,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf(ResultPrototype,l))return l}return new Result(!1)},wellKnownSymbol=wellKnownSymbol$k,ITERATOR=wellKnownSymbol$k("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(e){}var method,checkCorrectnessOfIteration$1=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var r=!1;try{var o={};o[ITERATOR]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(e){}return r},NativePromiseConstructor$1=promiseNativeConstructor,checkCorrectnessOfIteration=checkCorrectnessOfIteration$1,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration(function(e){NativePromiseConstructor$1.all(e).then(void 0,function(){})}),$$4=_export,call$2=functionCall,aCallable$1=aCallable$7,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration,$$3=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{all:function(e){var a=this,t=newPromiseCapabilityModule$2.f(a),l=t.resolve,c=t.reject,r=perform$1(function(){var o=aCallable$1(a.resolve),n=[],i=0,s=1;iterate$1(e,function(e){var t=i++,r=!1;s++,call$2(o,a,e).then(function(e){r||(r=!0,n[t]=e,--s)||l(n)},c)}),--s||l(n)});return r.error&&c(r.value),t.promise}}),_export),FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$8,isCallable=isCallable$o,defineBuiltIn=defineBuiltIn$9,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,$$2=($$3({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable(NativePromiseConstructor)&&(method=getBuiltIn$1("Promise").prototype.catch,NativePromisePrototype.catch!==method)&&defineBuiltIn(NativePromisePrototype,"catch",method,{unsafe:!0}),_export),call$1=functionCall,aCallable=aCallable$7,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,$$1=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function(e){var r=this,o=newPromiseCapabilityModule$1.f(r),n=o.reject,t=perform(function(){var t=aCallable(r.resolve);iterate(e,function(e){call$1(t,r,e).then(o.resolve,n)})});return t.error&&n(t.value),o.promise}}),_export),call=functionCall,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR,anObject=($$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return call(t.reject,void 0,e),t.promise}}),anObject$h),isObject=isObject$9,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(e,t){return anObject(e),isObject(t)&&t.constructor===e?t:((0,(e=newPromiseCapability.f(e)).resolve)(t),e.promise)},$=_export,getBuiltIn=getBuiltIn$8,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;getBuiltIn("Promise"),$({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}});const getGlobalProviders=()=>__awaiter(void 0,void 0,void 0,function*(){let t=[];try{var e=yield fetch(generateApiUrlFromHost()+"/api/admin/openid");t=200===e.status?(yield e.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",e),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),getOrgOpenIdProviders=r=>__awaiter(void 0,void 0,void 0,function*(){let t=[];try{var e=yield fetch(generateApiUrlFromHost()+"/api/admin/openid/org/"+r);t=200===e.status?(yield e.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",e),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),linkUserToOidAndLogin=(e,t,r)=>fetch(generateApiUrlFromHost()+"/api/admin/openid/linkUserToOid",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({userName:e,password:t,sessionKey:r})}),userLoginMutation=(r,o)=>__awaiter(void 0,void 0,void 0,function*(){var e=generateApiUrlFromHost(!0),t={query:`
1
+ import{i as createSvgIcon,k as interopRequireDefault,j as jsxRuntime,F as FormattedMessage,m as makeStyles,A as AIWareIntlProvider,R as Routes,l as Route,n as useDispatch,o as useSelector,p as authStatusSelector,q as authContextSelector,r as react,t as AuthContext,v as lodash,B as Box,T as Typography,w as Alert,x as useNavigate,y as devErrorLogger,z as useLocation,L as LoadingButton,C as authErrorMessage,G as Grid,D as FormControl,E as TextField,H as classNames,I as resetPasswordRequest,J as InputLabel,O as OutlinedInput,K as InputAdornment,M as IconButton,N as Select,Q as Location,U as MenuItem,V as Button,W as Divider}from"./js-core.esm.js";import{d as default_1$1}from"./js-core.esm5.js";import{C as Container}from"./js-core.esm6.js";var match,version,store,wmget,wmhas,wmset,set$1,get,has,STATE,activeXDocument,Visibility={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(Visibility,"__esModule",{value:!0}),Visibility.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility"),default_1=Visibility.default=_default,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$o=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$l=function(e){try{return!!e()}catch(e){return!0}},fails$k=fails$l,descriptors=!fails$l(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$j=fails$l,functionBindNative=!fails$l(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$l=Function.prototype.call,functionCall=NATIVE_BIND$3?call$l.bind(call$l):function(){return call$l.apply(call$l,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$3&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$5=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$3(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,bind$6=FunctionPrototype$2.bind,call$k=FunctionPrototype$2.call,uncurryThis$m=NATIVE_BIND$2&&bind$6.bind(call$k,call$k),functionUncurryThis=NATIVE_BIND$2?function(e){return e&&uncurryThis$m(e)}:function(e){return e&&function(){return call$k.apply(e,arguments)}},uncurryThis$l=functionUncurryThis,toString$9=uncurryThis$l({}.toString),stringSlice$6=uncurryThis$l("".slice),classofRaw$1=function(e){return stringSlice$6(toString$9(e),8,-1)},uncurryThis$k=functionUncurryThis,fails$i=fails$l,classof$8=classofRaw$1,$Object$4=Object,split$1=functionUncurryThis("".split),indexedObject=fails$i(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$8(e)?split$1(e,""):$Object$4(e)}:$Object$4,$TypeError$d=TypeError,requireObjectCoercible$7=function(e){if(null==e)throw $TypeError$d("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$6=requireObjectCoercible$7,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$6(e))},isCallable$o=function(e){return"function"==typeof e},isCallable$n=isCallable$o,isObject$9=function(e){return"object"==typeof e?null!==e:isCallable$n(e)},global$n=global$o,isCallable$m=isCallable$o,aFunction=function(e){return isCallable$m(e)?e:void 0},getBuiltIn$8=function(e,t){return arguments.length<2?aFunction(global$n[e]):global$n[e]&&global$n[e][t]},uncurryThis$j=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),getBuiltIn$7=getBuiltIn$8,engineUserAgent=getBuiltIn$8("navigator","userAgent")||"",global$m=global$o,userAgent$3=engineUserAgent,process$3=global$m.process,Deno$1=global$m.Deno,versions=process$3&&process$3.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent$3.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION$1=engineV8Version,fails$h=fails$l,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$h(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$2=nativeSymbol,useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$8,isCallable$l=isCallable$o,isPrototypeOf$4=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$l(t)&&isPrototypeOf$4(t.prototype,$Object$3(e))},$String$3=String,tryToString$4=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$k=isCallable$o,tryToString$3=tryToString$4,$TypeError$c=TypeError,aCallable$7=function(e){if(isCallable$k(e))return e;throw $TypeError$c(tryToString$3(e)+" is not a function")},aCallable$6=aCallable$7,getMethod$6=function(e,t){e=e[t];return null==e?void 0:aCallable$6(e)},call$j=functionCall,isCallable$j=isCallable$o,isObject$8=isObject$9,$TypeError$b=TypeError,ordinaryToPrimitive$1=function(e,t){var r,o;if("string"===t&&isCallable$j(r=e.toString)&&!isObject$8(o=call$j(r,e)))return o;if(isCallable$j(r=e.valueOf)&&!isObject$8(o=call$j(r,e)))return o;if("string"!==t&&isCallable$j(r=e.toString)&&!isObject$8(o=call$j(r,e)))return o;throw $TypeError$b("Can't convert object to primitive value")},shared$4={exports:{}},isPure=!1,global$l=global$o,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$6(global$l,t,{value:r,configurable:!0,writable:!0})}catch(e){global$l[t]=r}return r},global$k=global$o,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$o[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$5=((shared$4.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$7),$Object$2=Object,toObject$4=function(e){return $Object$2(requireObjectCoercible$5(e))},uncurryThis$i=functionUncurryThis,toObject$3=toObject$4,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$3(e),t)},uncurryThis$h=functionUncurryThis,id=0,postfix=Math.random(),toString$8=uncurryThis$h(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$8(++id+postfix,36)},global$j=global$o,shared$3=shared$4.exports,hasOwn$c=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$3("wks"),Symbol$1=global$j.Symbol,symbolFor=Symbol$1&&Symbol$1.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$k=function(e){var t;return hasOwn$c(WellKnownSymbolsStore,e)&&(NATIVE_SYMBOL$1||"string"==typeof WellKnownSymbolsStore[e])||(t="Symbol."+e,NATIVE_SYMBOL$1&&hasOwn$c(Symbol$1,e)?WellKnownSymbolsStore[e]=Symbol$1[e]:WellKnownSymbolsStore[e]=(USE_SYMBOL_AS_UID&&symbolFor?symbolFor:createWellKnownSymbol)(t)),WellKnownSymbolsStore[e]},call$i=functionCall,isObject$7=isObject$9,isSymbol$1=isSymbol$2,getMethod$5=getMethod$6,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$j=wellKnownSymbol$k,$TypeError$a=TypeError,TO_PRIMITIVE=wellKnownSymbol$k("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$7(e)||isSymbol$1(e))return e;var r=getMethod$5(e,TO_PRIMITIVE);if(r){if(r=call$i(r,e,t=void 0===t?"default":t),!isObject$7(r)||isSymbol$1(r))return r;throw $TypeError$a("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$3=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$i=global$o,isObject$6=isObject$9,document$3=global$o.document,EXISTS$1=isObject$6(document$3)&&isObject$6(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$c=descriptors,fails$g=fails$l,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$l(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$b=descriptors,call$h=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$4=createPropertyDescriptor$5,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,hasOwn$b=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$b?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$2(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$b(e,t))return createPropertyDescriptor$4(!call$h(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$a=descriptors,fails$f=fails$l,v8PrototypeDefineBug=descriptors&&fails$l(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$5=isObject$9,$String$2=String,$TypeError$9=TypeError,anObject$h=function(e){if(isObject$5(e))return e;throw $TypeError$9($String$2(e)+" is not an object")},DESCRIPTORS$9=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$g=anObject$h,toPropertyKey$1=toPropertyKey$3,$TypeError$8=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$8=(objectDefineProperty.f=DESCRIPTORS$9?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var o;return anObject$g(e),t=toPropertyKey$1(t),anObject$g(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&(o=$getOwnPropertyDescriptor(e,t))&&o[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:o)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:o)[ENUMERABLE],writable:!1}),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$g(e),t=toPropertyKey$1(t),anObject$g(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$8("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$5=objectDefineProperty,createPropertyDescriptor$3=createPropertyDescriptor$5,createNonEnumerableProperty$5=DESCRIPTORS$8?function(e,t,r){return definePropertyModule$5.f(e,t,createPropertyDescriptor$3(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$2={exports:{}},DESCRIPTORS$7=descriptors,hasOwn$a=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$7&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$a(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$7||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$g=functionUncurryThis,isCallable$i=isCallable$o,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$4=(isCallable$i(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$h=global$o,isCallable$h=isCallable$o,inspectSource$3=inspectSource$4,WeakMap$1=global$o.WeakMap,nativeWeakMap=isCallable$h(WeakMap$1)&&/native code/.test(inspectSource$3(WeakMap$1)),shared$2=shared$4.exports,uid=uid$2,keys=shared$2("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=nativeWeakMap,global$g=global$o,uncurryThis$f=functionUncurryThis,isObject$4=isObject$9,createNonEnumerableProperty$4=createNonEnumerableProperty$5,hasOwn$9=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$3=global$g.TypeError,WeakMap=global$g.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$4(e)&&(e=get(e)).type===t)return e;throw TypeError$3("Incompatible receiver, "+t+" required")}},internalState=(has=NATIVE_WEAK_MAP||shared$1.state?(store=shared$1.state||(shared$1.state=new WeakMap),wmget=uncurryThis$f(store.get),wmhas=uncurryThis$f(store.has),wmset=uncurryThis$f(store.set),set$1=function(e,t){if(wmhas(store,e))throw new TypeError$3(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$1=function(e,t){if(hasOwn$9(e,STATE))throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$9(e,STATE)?e[STATE]:{}},function(e){return hasOwn$9(e,STATE)}),{set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor}),fails$e=fails$l,isCallable$g=isCallable$o,hasOwn$8=hasOwnProperty_1,DESCRIPTORS$6=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$4,InternalStateModule$3=internalState,enforceInternalState=InternalStateModule$3.enforce,getInternalState$2=InternalStateModule$3.get,defineProperty$5=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$6&&!fails$e(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$1=makeBuiltIn$2.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$8(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$6?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$8(r,"arity")&&e.length!==r.arity&&defineProperty$5(e,"length",{value:r.arity});try{r&&hasOwn$8(r,"constructor")&&r.constructor?DESCRIPTORS$6&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState(e);return hasOwn$8(r,"source")||(r.source=TEMPLATE.join("string"==typeof t?t:"")),e},isCallable$f=(Function.prototype.toString=makeBuiltIn$1(function(){return isCallable$g(this)&&getInternalState$2(this).source||inspectSource$2(this)},"toString"),isCallable$o),definePropertyModule$4=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$9=function(e,t,r,o){var n=(o=o||{}).enumerable,i=void 0!==o.name?o.name:t;if(isCallable$f(r)&&makeBuiltIn(r,i,o),o.global)n?e[t]=r:defineGlobalProperty$1(t,r);else{try{o.unsafe?e[t]&&(n=!0):delete e[t]}catch(e){}n?e[t]=r:definePropertyModule$4.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$2=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor$2:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$4=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$3=toIntegerOrInfinity$4,max$2=Math.max,min$2=Math.min,toAbsoluteIndex$2=function(e,t){e=toIntegerOrInfinity$3(e);return e<0?max$2(e+t,0):min$2(e,t)},toIntegerOrInfinity$2=toIntegerOrInfinity$4,min$1=Math.min,toLength$3=function(e){return 0<e?min$1(toIntegerOrInfinity$2(e),9007199254740991):0},toLength$2=toLength$3,lengthOfArrayLike$3=function(e){return toLength$2(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$2=lengthOfArrayLike$3,createMethod$1=function(a){return function(e,t,r){var o,n=toIndexedObject$3(e),i=lengthOfArrayLike$2(n),s=toAbsoluteIndex$1(r,i);if(a&&t!=t){for(;s<i;)if((o=n[s++])!=o)return!0}else for(;s<i;s++)if((a||s in n)&&n[s]===t)return a||s||0;return!a&&-1}},arrayIncludes={includes:createMethod$1(!0),indexOf:createMethod$1(!1)},uncurryThis$e=functionUncurryThis,hasOwn$7=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$2=uncurryThis$e([].push),objectKeysInternal=function(e,t){var r,o=toIndexedObject$2(e),n=0,i=[];for(r in o)!hasOwn$7(hiddenKeys$2,r)&&hasOwn$7(o,r)&&push$2(i,r);for(;t.length>n;)!hasOwn$7(o,r=t[n++])||~indexOf$1(i,r)||push$2(i,r);return i},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$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$8),uncurryThis$d=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$f=anObject$h,concat$2=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$f(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$2(t,r(e)):t},hasOwn$6=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$3=objectDefineProperty,copyConstructorProperties$2=function(e,t,r){for(var o=ownKeys(t),n=definePropertyModule$3.f,i=getOwnPropertyDescriptorModule.f,s=0;s<o.length;s++){var a=o[s];hasOwn$6(e,a)||r&&hasOwn$6(r,a)||n(e,a,i(t,a))}},fails$d=fails$l,isCallable$e=isCallable$o,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$e(t)?fails$d(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,global$f=global$o,getOwnPropertyDescriptor$2=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$3=createNonEnumerableProperty$5,defineBuiltIn$8=defineBuiltIn$9,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced$1=isForced_1,_export=function(e,t){var r,o,n,i=e.target,s=e.global,a=e.stat,l=s?global$f:a?global$f[i]||defineGlobalProperty(i,{}):(global$f[i]||{}).prototype;if(l)for(r in t){if(o=t[r],n=e.dontCallGetSet?(n=getOwnPropertyDescriptor$2(l,r))&&n.value:l[r],!isForced$1(s?r:i+(a?".":"#")+r,e.forced)&&void 0!==n){if(typeof o==typeof n)continue;copyConstructorProperties$1(o,n)}(e.sham||n&&n.sham)&&createNonEnumerableProperty$3(o,"sham",!0),defineBuiltIn$8(l,r,o,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$5=descriptors,uncurryThis$c=functionUncurryThis,call$g=functionCall,fails$c=fails$l,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$2=toObject$4,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat$1=uncurryThis$c([].concat),objectAssign=!$assign||fails$c(function(){var e,t,r,o;return!(!DESCRIPTORS$5||1===$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},o="abcdefghijklmnopqrst",(e={})[r=Symbol()]=7,o.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[r])||objectKeys$1($assign({},t)).join("")!=o})?function(e,t){for(var r=toObject$2(e),o=arguments.length,n=1,i=getOwnPropertySymbolsModule.f,s=propertyIsEnumerableModule.f;n<o;)for(var a,l=IndexedObject(arguments[n++]),c=i?concat$1(objectKeys$1(l),i(l)):objectKeys$1(l),u=c.length,p=0;p<u;)a=c[p++],DESCRIPTORS$5&&!call$g(s,l,a)||(r[a]=l[a]);return r}:$assign,$$c=_export,assign=objectAssign,objectDefineProperties=(_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign}),{}),DESCRIPTORS$4=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$2=objectDefineProperty,anObject$e=anObject$h,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$4&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$e(e);for(var r,o=toIndexedObject$1(t),n=objectKeys(t),i=n.length,s=0;s<i;)definePropertyModule$2.f(e,r=n[s++],o[r]);return e},getBuiltIn$8),html$2=getBuiltIn$8("document","documentElement"),anObject$d=anObject$h,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html$1=html$2,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$1.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 r;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$d(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),wellKnownSymbol$i=wellKnownSymbol$k,create$3=objectCreate,defineProperty$3=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$i("unscopables"),ArrayPrototype$1=Array.prototype,addToUnscopables$2=(null==ArrayPrototype$1[UNSCOPABLES]&&defineProperty$3(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$3(null)}),function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0}),$$b=_export,$includes=arrayIncludes.includes,fails$b=fails$l,addToUnscopables$1=addToUnscopables$2,BROKEN_ON_SPARSE=fails$l(function(){return!Array(1).includes()}),isObject$3=($$b({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),addToUnscopables$1("includes"),isObject$9),classof$7=classofRaw$1,wellKnownSymbol$h=wellKnownSymbol$k,MATCH$1=wellKnownSymbol$k("match"),isRegexp=function(e){var t;return isObject$3(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$7(e))},isRegExp=isRegexp,$TypeError$7=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError$7("The method doesn't accept regular expressions");return e},wellKnownSymbol$g=wellKnownSymbol$k,TO_STRING_TAG$3=wellKnownSymbol$k("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$3]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$d=isCallable$o,classofRaw=classofRaw$1,wellKnownSymbol$f=wellKnownSymbol$k,TO_STRING_TAG$2=wellKnownSymbol$k("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$6=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object$1(e),TO_STRING_TAG$2))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$d(e.callee)?"Arguments":t},classof$5=classof$6,$String$1=String,toString$7=function(e){if("Symbol"===classof$5(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$1(e)},wellKnownSymbol$e=wellKnownSymbol$k,MATCH=wellKnownSymbol$k("match"),correctIsRegexpLogic=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[MATCH]=!1,"/./"[t](r)}catch(e){}}return!1},$$a=_export,uncurryThis$b=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible$4=requireObjectCoercible$7,toString$6=toString$7,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf$1=functionUncurryThis("".indexOf),anObject$c=($$a({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf$1(toString$6(requireObjectCoercible$4(this)),toString$6(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}}),anObject$h),regexpFlags$1=function(){var e=anObject$c(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},fails$a=fails$l,global$e=global$o,$RegExp$2=global$o.RegExp,UNSUPPORTED_Y$1=fails$a(function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),MISSED_STICKY=UNSUPPORTED_Y$1||fails$a(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$1||fails$a(function(){var e=$RegExp$2("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),regexpStickyHelpers={BROKEN_CARET:BROKEN_CARET,MISSED_STICKY:MISSED_STICKY,UNSUPPORTED_Y:UNSUPPORTED_Y$1},fails$9=fails$l,global$d=global$o,$RegExp$1=global$o.RegExp,regexpUnsupportedDotAll=fails$9(function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),fails$8=fails$l,global$c=global$o,$RegExp=global$o.RegExp,regexpUnsupportedNcg=fails$8(function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),call$f=functionCall,uncurryThis$a=functionUncurryThis,toString$5=toString$7,regexpFlags=regexpFlags$1,stickyHelpers=regexpStickyHelpers,shared=shared$4.exports,create$2=objectCreate,getInternalState$1=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$4=uncurryThis$a("".charAt),indexOf=uncurryThis$a("".indexOf),replace$3=uncurryThis$a("".replace),stringSlice$5=uncurryThis$a("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call$f(nativeExec,e,"a"),call$f(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y=stickyHelpers.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG,regexpExec$2=patchedExec=PATCH?function(e){var t,r,o,n,i,s,a=this,l=getInternalState$1(a),e=toString$5(e),c=l.raw;if(c)return c.lastIndex=a.lastIndex,p=call$f(patchedExec,c,e),a.lastIndex=c.lastIndex,p;var u=l.groups,c=UNSUPPORTED_Y&&a.sticky,p=call$f(regexpFlags,a),l=a.source,$=0,d=e;if(c&&(p=replace$3(p,"y",""),-1===indexOf(p,"g")&&(p+="g"),d=stringSlice$5(e,a.lastIndex),0<a.lastIndex&&(!a.multiline||a.multiline&&"\n"!==charAt$4(e,a.lastIndex-1))&&(l="(?: "+l+")",d=" "+d,$++),t=new RegExp("^(?:"+l+")",p)),NPCG_INCLUDED&&(t=new RegExp("^"+l+"$(?!\\s)",p)),UPDATES_LAST_INDEX_WRONG&&(r=a.lastIndex),o=call$f(nativeExec,c?t:a,d),c?o?(o.input=stringSlice$5(o.input,$),o[0]=stringSlice$5(o[0],$),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&o&&(a.lastIndex=a.global?o.index+o[0].length:r),NPCG_INCLUDED&&o&&1<o.length&&call$f(nativeReplace,o[0],t,function(){for(n=1;n<arguments.length-2;n++)void 0===arguments[n]&&(o[n]=void 0)}),o&&u)for(o.groups=i=create$2(null),n=0;n<u.length;n++)i[(s=u[n])[0]]=o[s[1]];return o}:patchedExec,$$9=_export,exec$1=regexpExec$2,NATIVE_BIND$1=(_export({target:"RegExp",proto:!0,forced:/./.exec!==exec$1},{exec:exec$1}),functionBindNative),FunctionPrototype=Function.prototype,apply$2=FunctionPrototype.apply,call$e=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$e.bind(apply$2):function(){return call$e.apply(apply$2,arguments)}),uncurryThis$9=functionUncurryThis,defineBuiltIn$7=defineBuiltIn$9,regexpExec$1=regexpExec$2,fails$7=fails$l,wellKnownSymbol$d=wellKnownSymbol$k,createNonEnumerableProperty$2=createNonEnumerableProperty$5,SPECIES$3=wellKnownSymbol$d("species"),RegExpPrototype$2=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(r,e,t,o){var s,n=wellKnownSymbol$d(r),a=!fails$7(function(){var e={};return e[n]=function(){return 7},7!=""[r](e)}),i=a&&!fails$7(function(){var e=!1,t=/a/;return"split"===r&&((t={constructor:{}}).constructor[SPECIES$3]=function(){return t},t.flags="",t[n]=/./[n]),t.exec=function(){return e=!0,null},t[n](""),!e});a&&i&&!t||(s=uncurryThis$9(/./[n]),i=e(n,""[r],function(e,t,r,o,n){var e=uncurryThis$9(e),i=t.exec;return i===regexpExec$1||i===RegExpPrototype$2.exec?a&&!n?{done:!0,value:s(t,r,o)}:{done:!0,value:e(r,t,o)}:{done:!1}}),defineBuiltIn$7(String.prototype,r,i[0]),defineBuiltIn$7(RegExpPrototype$2,n,i[1])),o&&createNonEnumerableProperty$2(RegExpPrototype$2[n],"sham",!0)},uncurryThis$8=functionUncurryThis,toIntegerOrInfinity$1=toIntegerOrInfinity$4,toString$4=toString$7,requireObjectCoercible$3=requireObjectCoercible$7,charAt$3=uncurryThis$8("".charAt),charCodeAt=uncurryThis$8("".charCodeAt),stringSlice$4=uncurryThis$8("".slice),createMethod=function(n){return function(e,t){var r,e=toString$4(requireObjectCoercible$3(e)),t=toIntegerOrInfinity$1(t),o=e.length;return t<0||o<=t?n?"":void 0:(r=charCodeAt(e,t))<55296||56319<r||t+1===o||(o=charCodeAt(e,t+1))<56320||57343<o?n?charAt$3(e,t):r:n?stringSlice$4(e,t,t+2):o-56320+(r-55296<<10)+65536}},stringMultibyte={codeAt:createMethod(!1),charAt:createMethod(!0)},charAt$2=stringMultibyte.charAt,advanceStringIndex$2=function(e,t,r){return t+(r?charAt$2(e,t).length:1)},uncurryThis$7=functionUncurryThis,toObject$1=toObject$4,floor$1=Math.floor,charAt$1=uncurryThis$7("".charAt),replace$2=uncurryThis$7("".replace),stringSlice$3=uncurryThis$7("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(i,s,a,l,c,e){var u=a+i.length,p=l.length,t=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==c&&(c=toObject$1(c),t=SUBSTITUTION_SYMBOLS),replace$2(e,t,function(e,t){var r;switch(charAt$1(t,0)){case"$":return"$";case"&":return i;case"`":return stringSlice$3(s,0,a);case"'":return stringSlice$3(s,u);case"<":r=c[stringSlice$3(t,1,-1)];break;default:var o,n=+t;if(0==n)return e;if(p<n)return 0!==(o=floor$1(n/10))&&o<=p?void 0===l[o-1]?charAt$1(t,1):l[o-1]+charAt$1(t,1):e;r=l[n-1]}return void 0===r?"":r})},call$d=functionCall,anObject$b=anObject$h,isCallable$c=isCallable$o,classof$4=classofRaw$1,regexpExec=regexpExec$2,$TypeError$6=TypeError,regexpExecAbstract=function(e,t){var r=e.exec;if(isCallable$c(r))return null!==(r=call$d(r,e,t))&&anObject$b(r),r;if("RegExp"===classof$4(e))return call$d(regexpExec,e,t);throw $TypeError$6("RegExp#exec called on incompatible receiver")},apply$1=functionApply,call$c=functionCall,uncurryThis$6=functionUncurryThis,fixRegExpWellKnownSymbolLogic$2=fixRegexpWellKnownSymbolLogic,fails$6=fails$l,anObject$a=anObject$h,isCallable$b=isCallable$o,toIntegerOrInfinity=toIntegerOrInfinity$4,toLength$1=toLength$3,toString$3=toString$7,requireObjectCoercible$2=requireObjectCoercible$7,advanceStringIndex$1=advanceStringIndex$2,getMethod$4=getMethod$6,getSubstitution=getSubstitution$1,regExpExec$2=regexpExecAbstract,wellKnownSymbol$c=wellKnownSymbol$k,REPLACE=wellKnownSymbol$k("replace"),max$1=Math.max,min=Math.min,concat=uncurryThis$6([].concat),push$1=uncurryThis$6([].push),stringIndexOf=uncurryThis$6("".indexOf),stringSlice$2=uncurryThis$6("".slice),maybeToString=function(e){return void 0===e?e:String(e)},REPLACE_KEEPS_$0="$0"==="a".replace(/./,"$0"),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=!!/./[REPLACE]&&""===/./[REPLACE]("a","$0"),REPLACE_SUPPORTS_NAMED_GROUPS=!fails$6(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),call$b=(fixRegExpWellKnownSymbolLogic$2("replace",function(e,m,b){var x=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(e,t){var r=requireObjectCoercible$2(this),o=null==e?void 0:getMethod$4(e,REPLACE);return o?call$c(o,e,r,t):call$c(m,toString$3(r),e,t)},function(e,t){var r=anObject$a(this),o=toString$3(e);if("string"==typeof t&&-1===stringIndexOf(t,x)&&-1===stringIndexOf(t,"$<")){e=b(m,r,o,t);if(e.done)return e.value}for(var n,i=isCallable$b(t),s=(i||(t=toString$3(t)),r.global),a=(s&&(n=r.unicode,r.lastIndex=0),[]);null!==(p=regExpExec$2(r,o))&&(push$1(a,p),s);)""===toString$3(p[0])&&(r.lastIndex=advanceStringIndex$1(o,toLength$1(r.lastIndex),n));for(var l="",c=0,u=0;u<a.length;u++){for(var p,$=toString$3((p=a[u])[0]),d=max$1(min(toIntegerOrInfinity(p.index),o.length),0),g=[],h=1;h<p.length;h++)push$1(g,maybeToString(p[h]));var y=p.groups,f=i?(f=concat([$],g,d,o),void 0!==y&&push$1(f,y),toString$3(apply$1(t,void 0,f))):getSubstitution($,o,d,g,y,t);c<=d&&(l+=stringSlice$2(o,c,d)+f,c=d+$.length)}return l+stringSlice$2(o,c)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE),functionCall),hasOwn$5=hasOwnProperty_1,isPrototypeOf$3=objectIsPrototypeOf,regExpFlags=regexpFlags$1,RegExpPrototype$1=RegExp.prototype,regexpGetFlags=function(e){var t=e.flags;return void 0!==t||"flags"in RegExpPrototype$1||hasOwn$5(e,"flags")||!isPrototypeOf$3(RegExpPrototype$1,e)?t:call$b(regExpFlags,e)},PROPER_FUNCTION_NAME$1=functionName.PROPER,defineBuiltIn$6=defineBuiltIn$9,anObject$9=anObject$h,$toString$1=toString$7,fails$5=fails$l,getRegExpFlags=regexpGetFlags,TO_STRING="toString",RegExpPrototype=RegExp.prototype,n$ToString=RegExpPrototype[TO_STRING],NOT_GENERIC=fails$5(function(){return"/a/b"!=n$ToString.call({source:"a",flags:"b"})}),INCORRECT_NAME=PROPER_FUNCTION_NAME$1&&n$ToString.name!=TO_STRING;(NOT_GENERIC||INCORRECT_NAME)&&defineBuiltIn$6(RegExp.prototype,TO_STRING,function(){var e=anObject$9(this);return"/"+$toString$1(e.source)+"/"+$toString$1(getRegExpFlags(e))},{unsafe:!0});const SHARED_TEXT={resetPasswordTitle:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.title",defaultMessage:"New password required",description:"Title of the reset password widget"}),resetPasswordSubHeader:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.subHeader",defaultMessage:"A strong password contains a mix of numbers, letters and symbols. It is hard to guess, does not resemble a real word and is only used for this account.",description:"Description of the reset password widget"}),passwordRequirements:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordRequirements",defaultMessage:"Password requirements",description:"Heading of password requirements"}),resetPasswordSubmitButton:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.submitButton",defaultMessage:"Change Password",description:"Text of submit button for reset password"}),lengthCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.lengthCheck",defaultMessage:"8 Character minimum",description:"The error message for the lengthCheck."}),pastPasswordCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.pastPasswordCheck",defaultMessage:"Not identical to last 10 passwords",description:"The error message for the pastPasswordCheck."}),userNameCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.userNameCheck",defaultMessage:"Not the same as account email",description:"The error message for the userNameCheck."}),dictionaryCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.dictionaryCheck",defaultMessage:"No dictionary passwords",description:"The error message for the dictionaryCheck."}),passwordsNotMatching:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordsNotMatching",defaultMessage:"Passwords not matching",description:"The error message for the passwords not matching."}),invalidTokenOrUsername:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.invalidTokenOrUsername",defaultMessage:"Error! Missing token or username.",description:"The error message for the missing token or username."}),passwordComplexityCheckSymbols:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordComplexityCheckSymbols",defaultMessage:"Requires 1 lowercase, 1 uppercase, 1 number, and 1 symbol.",description:"The error message for the check symbols error."}),passwordComplexityCheckDays:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordComplexityCheckDays",defaultMessage:"Cannot be changed twice within 10 days.",description:"The error message for the days error."})},generateApiUrlFromHost=(e=!1)=>{var t=window.location.host;if(t.includes("local"))return e?"https://api.stage.us-1.veritone.com/v3/graphql":"https://api.stage.us-1.veritone.com";var t=t.split("."),r=t.findIndex(e=>"dev"===e||"stage"===e);let o="";return o=-1!==r?"veritone"!==t[r+1]?t[r]+"."+t[r+1]:t[r]+".us-1":(r=t.findIndex(e=>"veritone"===e),"aiware2"!==t[r-1]?t[r-1]:"us-1"),e?`https://api.${o}.veritone.com/v3/graphql`:`https://api.${o}.veritone.com`};function parseToken(e=""){try{var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(atob(t).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(r)}catch(e){return console.log(e),null}}const Header=({text:e,subText:t,type:r})=>jsxRuntime.exports.jsxs(Box,Object.assign({sx:{marginBottom:"30px",textAlign:"center"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({sx:{fontFamily:"Nunito",fontSize:"22px",lineHeight:"18px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},"data-testid":"os-auth-header-text-"+r},{children:e})),t&&jsxRuntime.exports.jsx(Typography,Object.assign({sx:{fontFamily:"Nunito",fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269",marginTop:"10px",width:"368px"},"data-testid":"os-auth-subheader-text-"+r},{children:t}))]})),useStyles$4=makeStyles()(e=>({title:{textTransform:"initial",fontSize:22,marginBottom:e.spacing(4)},subHeader:{color:"#9CA8B4"},h6:{color:"#27292B"},requirements:{listStyle:"disc",padding:0,marginLeft:e.spacing(5),"& li":{marginBottom:e.spacing(1),color:"#27292B",fontSize:14,fontWeight:400,"&.requirementError":{color:"#D50000"}}},submitButton:{height:55,background:"#214167",fontSize:18,width:"100%",maxWidth:380,textTransform:"uppercase"},text:{fontFamily:"Nunito",fontWeight:400,fontSize:"22px",lineHeight:"18px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},subText:{fontFamily:"'Nunito Sans'",fontWeight:400,fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269"}}));var IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,iterators={},fails$4=fails$l,correctPrototypeGetter=!fails$l(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$4=hasOwnProperty_1,isCallable$a=isCallable$o,toObject=toObject$4,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object=Object,ObjectPrototype=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(e){var t,e=toObject(e);return hasOwn$4(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$a(t)&&e instanceof t?t.prototype:e instanceof $Object?ObjectPrototype:null)},fails$3=fails$l,isCallable$9=isCallable$o,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$5=defineBuiltIn$9,wellKnownSymbol$b=wellKnownSymbol$k,ITERATOR$7=wellKnownSymbol$k("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$3(function(){var e={};return IteratorPrototype$2[ITERATOR$7].call(e)!==e})),iteratorsCore=(isCallable$9((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$7])||defineBuiltIn$5(IteratorPrototype$2,ITERATOR$7,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$2=objectDefineProperty.f,hasOwn$3=hasOwnProperty_1,wellKnownSymbol$a=wellKnownSymbol$k,TO_STRING_TAG$1=wellKnownSymbol$k("toStringTag"),setToStringTag$4=function(e,t,r){(e=e&&!r?e.prototype:e)&&!hasOwn$3(e,TO_STRING_TAG$1)&&defineProperty$2(e,TO_STRING_TAG$1,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$1=objectCreate,createPropertyDescriptor$2=createPropertyDescriptor$5,setToStringTag$3=setToStringTag$4,Iterators$4=iterators,returnThis$1=function(){return this},createIteratorConstructor$2=function(e,t,r,o){t+=" Iterator";return e.prototype=create$1(IteratorPrototype$1,{next:createPropertyDescriptor$2(+!o,r)}),setToStringTag$3(e,t,!1),Iterators$4[t]=returnThis$1,e},isCallable$8=isCallable$o,$String=String,$TypeError$5=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$8(e))return e;throw $TypeError$5("Can't set "+$String(e)+" as a prototype")},uncurryThis$5=functionUncurryThis,anObject$8=anObject$h,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=uncurryThis$5(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(e){}return function(e,t){return anObject$8(e),aPossiblePrototype(t),o?r(e,t):e.__proto__=t,e}}():void 0),$$8=_export,call$a=functionCall,FunctionName=functionName,isCallable$7=isCallable$o,createIteratorConstructor$1=createIteratorConstructor$2,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$2=setToStringTag$4,createNonEnumerableProperty$1=createNonEnumerableProperty$5,defineBuiltIn$4=defineBuiltIn$9,wellKnownSymbol$9=wellKnownSymbol$k,Iterators$3=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$6=wellKnownSymbol$9("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator$1=function(e,t,r,o,n,i,s){createIteratorConstructor$1(r,t,o);function a(e){if(e===n&&d)return d;if(!BUGGY_SAFARI_ITERATORS&&e in p)return p[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}}var l,c,o=t+" Iterator",u=!1,p=e.prototype,$=p[ITERATOR$6]||p["@@iterator"]||n&&p[n],d=!BUGGY_SAFARI_ITERATORS&&$||a(n),g="Array"==t&&p.entries||$;if(g&&(g=getPrototypeOf(g.call(new e)))!==Object.prototype&&g.next&&(getPrototypeOf(g)!==IteratorPrototype&&(setPrototypeOf$1?setPrototypeOf$1(g,IteratorPrototype):isCallable$7(g[ITERATOR$6])||defineBuiltIn$4(g,ITERATOR$6,returnThis)),setToStringTag$2(g,o,!0)),PROPER_FUNCTION_NAME&&n==VALUES&&$&&$.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(p,"name",VALUES):(u=!0,d=function(){return call$a($,this)})),n)if(l={values:a(VALUES),keys:i?d:a(KEYS),entries:a(ENTRIES)},s)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in p||defineBuiltIn$4(p,c,l[c]);else $$8({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return p[ITERATOR$6]!==d&&defineBuiltIn$4(p,ITERATOR$6,d,{name:n}),Iterators$3[t]=d,l},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$2,Iterators$2=iterators,InternalStateModule$2=internalState,defineProperty$1=objectDefineProperty.f,defineIterator=defineIterator$1,DESCRIPTORS$3=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$2=InternalStateModule$2.set,getInternalState=InternalStateModule$2.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState$2(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState(this),t=e.target,r=e.kind,o=e.index++;return!t||o>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:o,done:!1}:"values"==r?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS$3&&"values"!==values.name)try{defineProperty$1(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},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$b=global$o,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$5,wellKnownSymbol$8=wellKnownSymbol$k,ITERATOR$5=wellKnownSymbol$8("iterator"),TO_STRING_TAG=wellKnownSymbol$8("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR$5]!==ArrayValues)try{createNonEnumerableProperty(t,ITERATOR$5,ArrayValues)}catch(e){t[ITERATOR$5]=ArrayValues}if(t[TO_STRING_TAG]||createNonEnumerableProperty(t,TO_STRING_TAG,e),DOMIterables[e])for(var r in ArrayIteratorMethods)if(t[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty(t,r,ArrayIteratorMethods[r])}catch(e){t[r]=ArrayIteratorMethods[r]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$b[COLLECTION_NAME]&&global$b[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,symbolToString,symbolValueOf,regexp,replace$1,stringSlice$1,PwdRequirements,$$7=_export,DESCRIPTORS$2=descriptors,global$a=global$o,uncurryThis$4=functionUncurryThis,hasOwn$2=hasOwnProperty_1,isCallable$6=isCallable$o,isPrototypeOf$2=objectIsPrototypeOf,toString$2=toString$7,defineProperty=objectDefineProperty.f,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$a.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;function __rest(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function __awaiter(e,s,a,l){return new(a=a||Promise)(function(r,t){function o(e){try{i(l.next(e))}catch(e){t(e)}}function n(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(o,n)}i((l=l.apply(e,s||[])).next())})}!DESCRIPTORS$2||!isCallable$6(NativeSymbol)||"description"in SymbolPrototype&&void 0===NativeSymbol().description||(EmptyStringDescriptionStore={},copyConstructorProperties(SymbolWrapper=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:toString$2(arguments[0]),t=isPrototypeOf$2(SymbolPrototype,this)?new NativeSymbol(e):void 0===e?NativeSymbol():NativeSymbol(e);return""===e&&(EmptyStringDescriptionStore[t]=!0),t},NativeSymbol),(SymbolWrapper.prototype=SymbolPrototype).constructor=SymbolWrapper,NATIVE_SYMBOL="Symbol(test)"==String(NativeSymbol("test")),symbolToString=uncurryThis$4(SymbolPrototype.toString),symbolValueOf=uncurryThis$4(SymbolPrototype.valueOf),regexp=/^Symbol\((.*)\)[^)]+$/,replace$1=uncurryThis$4("".replace),stringSlice$1=uncurryThis$4("".slice),defineProperty(SymbolPrototype,"description",{configurable:!0,get:function(){var e=symbolValueOf(this),t=symbolToString(e);return hasOwn$2(EmptyStringDescriptionStore,e)?"":""===(e=NATIVE_SYMBOL?stringSlice$1(t,7,-1):replace$1(t,regexp,"$1"))?void 0:e}}),$$7({global:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper}));const BlueButton=({onClick:e,text:t,type:r,loading:o})=>jsxRuntime.exports.jsx(LoadingButton,Object.assign({color:"primary",variant:"contained",onClick:e,loading:o,sx:{textTransform:"none",fontSize:"18px",lineHeight:"24px",fontFamily:"Nunito",fontWeight:600,width:"368px",height:"56px",backgroundColor:"#2C78D4"},"data-testid":`os-auth--${r}-btn`},{children:t}));function ResetPasswordForm({onBtnClick:e,requiresRestriction:t,disableForm:r=!1,columnView:o=!1,isNewPage:n=!1}){var i=useStyles$4()["classes"],s=useSelector(authStatusSelector);const a=useSelector(authErrorMessage);var l=useSelector(authContextSelector);const[c,u]=react.exports.useState(""),[p,$]=react.exports.useState(""),[d,g]=react.exports.useState({[PwdRequirements.lengthCheck]:null,[PwdRequirements.userNameCheck]:null,[PwdRequirements.dictionaryCheck]:null,[PwdRequirements.pastPasswordCheck]:null,[PwdRequirements.passwordComplexityCheck]:null,[PwdRequirements.passwordChangeFrequencyCheck]:null}),[h,y]=react.exports.useState(null);s="loading"===s&&l===AuthContext.ResetPassword;const f=lodash.exports.isEqual(c,p);l=Object.values(d).includes(!1);var m=()=>{lodash.exports.isEmpty(c)||lodash.exports.isEmpty(p)||!f||e(c)},b=(react.exports.useEffect(()=>{try{if(a){var e=JSON.parse(a);const t=e["description"],o=__rest(e,["description"]);Object.keys(o).forEach(e=>{var t,r;t=e,r=o[e],g(e=>Object.assign(Object.assign({},e),{[t]:r}))}),y(t)}else y(null)}catch(e){y(a)}finally{$("")}},[a]),[{label:SHARED_TEXT.lengthCheck,error:d[PwdRequirements.lengthCheck]},{label:SHARED_TEXT.pastPasswordCheck,error:d[PwdRequirements.pastPasswordCheck]},{label:SHARED_TEXT.userNameCheck,error:d[PwdRequirements.userNameCheck]},{label:SHARED_TEXT.dictionaryCheck,error:d[PwdRequirements.dictionaryCheck]},...d[PwdRequirements.passwordComplexityCheck]?[{label:SHARED_TEXT.passwordComplexityCheckSymbols,error:!0},{label:SHARED_TEXT.passwordComplexityCheckDays,error:!0}]:[]]),x={fontFamily:"Nunito",lineHeight:"22px"};return jsxRuntime.exports.jsx("form",Object.assign({onSubmit:e=>{e.preventDefault()}},{children:jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,spacing:n?3:6,mt:n?0:3},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,sm:o?12:7,xs:12},{children:[jsxRuntime.exports.jsx(FormControl,Object.assign({fullWidth:!0,sx:{mb:6}},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"rp-password-field",required:!0,type:"password",id:"password",label:"Password",variant:"outlined",autoFocus:!0,value:c,onChange:e=>u(e.target.value),error:l,autoComplete:"off",disabled:r,InputLabelProps:{style:x}})})),jsxRuntime.exports.jsx(FormControl,Object.assign({sx:{fontFamily:"Nunito"},fullWidth:!0},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"rp-password-confirm-field",required:!0,type:"password",id:"confirm-password",label:"Confirm Password",variant:"outlined",value:p,onChange:e=>$(e.target.value),autoComplete:"off",error:!f&&!!p,helperText:!f&&p&&SHARED_TEXT.passwordsNotMatching,disabled:r,InputLabelProps:{style:x}})})),h&&jsxRuntime.exports.jsx(Alert,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:h}))]})),t&&jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,sm:o?12:5,xs:12},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h6",className:i.h6},{children:SHARED_TEXT.passwordRequirements})),jsxRuntime.exports.jsx("ul",Object.assign({className:i.requirements,"data-testid":"rp-requirements-list"},{children:b.map((e,t)=>jsxRuntime.exports.jsx("li",Object.assign({className:classNames({requirementError:!0===e.error})},{children:e.label}),"pwd-requirement-"+t))}))]})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12,justifyContent:"center",display:"flex"},{children:n?jsxRuntime.exports.jsx(BlueButton,{onClick:m,loading:s,text:SHARED_TEXT.resetPasswordSubmitButton,type:"reset-pw"}):jsxRuntime.exports.jsx(LoadingButton,Object.assign({"data-testid":"rp-password-submit-button",variant:"contained",disableElevation:!0,size:"large",className:i.submitButton,onClick:m,loading:s,disabled:r},{children:SHARED_TEXT.resetPasswordSubmitButton}))}))]}))}))}!function(e){e.lengthCheck="lengthCheck",e.userNameCheck="userNameCheck",e.dictionaryCheck="dictionaryCheck",e.pastPasswordCheck="pastPasswordCheck",e.passwordComplexityCheck="passwordComplexityCheck",e.passwordChangeFrequencyCheck="passwordChangeFrequencyCheck"}(PwdRequirements=PwdRequirements||{});const DEFAULT_CONTAINER_WIDTH=740,CONTAINER_WIDTH_BREAKPOINT=400;function ResetPasswordWidget({resetToken:t,username:r,requiresPasswordRestriction:e=!1,onSuccess:o,organizationInviteId:n,containerWidth:i=DEFAULT_CONTAINER_WIDTH,isNewPage:s=!1}){useStyles$4();const a=useDispatch(),l=useSelector(authStatusSelector),c=useSelector(authContextSelector);react.exports.useEffect(()=>{"success"===l&&c===AuthContext.ResetPassword&&null!=o&&o()},[l,c]);var u=lodash.exports.isEmpty(t)||lodash.exports.isEmpty(r),p=i<=CONTAINER_WIDTH_BREAKPOINT||!e;return jsxRuntime.exports.jsxs(Box,Object.assign({p:s?0:4,id:"reset-password-widget",width:i},{children:[s?jsxRuntime.exports.jsx(Header,{text:SHARED_TEXT.resetPasswordTitle,subText:SHARED_TEXT.resetPasswordSubHeader,type:"reset-pw"}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1",sx:{textTransform:"initial",fontSize:22,marginBottom:"20px"}},{children:SHARED_TEXT.resetPasswordTitle})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2"},{children:SHARED_TEXT.resetPasswordSubHeader}))]}),u&&jsxRuntime.exports.jsx(Alert,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:SHARED_TEXT.invalidTokenOrUsername})),jsxRuntime.exports.jsx(ResetPasswordForm,{onBtnClick:e=>{s?a(resetPasswordRequest({resetToken:t,username:r,password:e,organizationInviteId:n,apiUrl:generateApiUrlFromHost()})):a(resetPasswordRequest({resetToken:t,username:r,password:e,organizationInviteId:n}))},requiresRestriction:e,disableForm:u,columnView:p,isNewPage:s})]}))}const ResetPassword=e=>jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ResetPasswordWidget,Object.assign({},e))});var headersHas,headersSet,wrapRequestOptions,RequestConstructor,_g,_defs,fails$2=fails$l,wellKnownSymbol$7=wellKnownSymbol$k,IS_PURE=isPure,ITERATOR$4=wellKnownSymbol$k("iterator"),nativeUrl=!fails$2(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),r=e.searchParams,o="";return e.pathname="c%20d",r.forEach(function(e,t){r.delete("b"),o+=t+e}),IS_PURE&&!e.toJSON||!r.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==r.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!r[ITERATOR$4]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==o||"x"!==new URL("http://x",void 0).host}),defineBuiltIn$3=defineBuiltIn$9,defineBuiltIns$1=function(e,t,r){for(var o in t)defineBuiltIn$3(e,o,t[o],r);return e},isPrototypeOf$1=objectIsPrototypeOf,$TypeError$4=TypeError,anInstance$2=function(e,t){if(isPrototypeOf$1(t,e))return e;throw $TypeError$4("Incorrect invocation")},uncurryThis$3=functionUncurryThis,aCallable$5=aCallable$7,NATIVE_BIND=functionBindNative,bind$5=functionUncurryThis(functionUncurryThis.bind),functionBindContext=function(e,t){return aCallable$5(e),void 0===t?e:NATIVE_BIND?bind$5(e,t):function(){return e.apply(t,arguments)}},classof$3=classof$6,getMethod$3=getMethod$6,Iterators$1=iterators,wellKnownSymbol$6=wellKnownSymbol$k,ITERATOR$3=wellKnownSymbol$k("iterator"),getIteratorMethod$3=function(e){if(null!=e)return getMethod$3(e,ITERATOR$3)||getMethod$3(e,"@@iterator")||Iterators$1[classof$3(e)]},call$9=functionCall,aCallable$4=aCallable$7,anObject$7=anObject$h,tryToString$2=tryToString$4,getIteratorMethod$2=getIteratorMethod$3,$TypeError$3=TypeError,getIterator$2=function(e,t){var r=arguments.length<2?getIteratorMethod$2(e):t;if(aCallable$4(r))return anObject$7(call$9(r,e));throw $TypeError$3(tryToString$2(e)+" is not iterable")},$TypeError$2=TypeError,validateArgumentsLength$2=function(e,t){if(e<t)throw $TypeError$2("Not enough arguments");return e},toPropertyKey=toPropertyKey$3,definePropertyModule$1=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$5,createProperty$1=function(e,t,r){t=toPropertyKey(t);t in e?definePropertyModule$1.f(e,t,createPropertyDescriptor$1(0,r)):e[t]=r},toAbsoluteIndex=toAbsoluteIndex$2,lengthOfArrayLike$1=lengthOfArrayLike$3,createProperty=createProperty$1,$Array=Array,max=Math.max,arraySliceSimple=function(e,t,r){for(var o=lengthOfArrayLike$1(e),n=toAbsoluteIndex(t,o),i=toAbsoluteIndex(void 0===r?o:r,o),s=$Array(max(i-n,0)),a=0;n<i;n++,a++)createProperty(s,a,e[n]);return s.length=a,s},arraySlice$2=arraySliceSimple,floor=Math.floor,mergeSort=function(e,t){var r=e.length,o=floor(r/2);return r<8?insertionSort(e,t):merge(e,mergeSort(arraySlice$2(e,0,o),t),mergeSort(arraySlice$2(e,o),t),t)},insertionSort=function(e,t){for(var r,o,n=e.length,i=1;i<n;){for(r=e[o=i];o&&0<t(e[o-1],r);)e[o]=e[--o];o!==i++&&(e[o]=r)}return e},merge=function(e,t,r,o){for(var n=t.length,i=r.length,s=0,a=0;s<n||a<i;)e[s+a]=s<n&&a<i?o(t[s],r[a])<=0?t[s++]:r[a++]:s<n?t[s++]:r[a++];return e},arraySort$1=mergeSort,$$6=_export,global$9=global$o,call$8=functionCall,uncurryThis$2=functionUncurryThis,DESCRIPTORS$1=descriptors,USE_NATIVE_URL=nativeUrl,defineBuiltIn$2=defineBuiltIn$9,defineBuiltIns=defineBuiltIns$1,setToStringTag$1=setToStringTag$4,createIteratorConstructor=createIteratorConstructor$2,InternalStateModule$1=internalState,anInstance$1=anInstance$2,isCallable$5=isCallable$o,hasOwn$1=hasOwnProperty_1,bind$4=functionBindContext,classof$2=classof$6,anObject$6=anObject$h,isObject$2=isObject$9,$toString=toString$7,create=objectCreate,createPropertyDescriptor=createPropertyDescriptor$5,getIterator$1=getIterator$2,getIteratorMethod$1=getIteratorMethod$3,validateArgumentsLength$1=validateArgumentsLength$2,wellKnownSymbol$5=wellKnownSymbol$k,arraySort=mergeSort,ITERATOR$2=wellKnownSymbol$k("iterator"),URL_SEARCH_PARAMS="URLSearchParams",URL_SEARCH_PARAMS_ITERATOR=URL_SEARCH_PARAMS+"Iterator",setInternalState$1=InternalStateModule$1.set,getInternalParamsState=InternalStateModule$1.getterFor(URL_SEARCH_PARAMS),getInternalIteratorState=InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR),getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,safeGetBuiltIn=function(e){var t;return DESCRIPTORS$1?(t=getOwnPropertyDescriptor$1(global$9,e))&&t.value:global$9[e]},nativeFetch=safeGetBuiltIn("fetch"),NativeRequest=safeGetBuiltIn("Request"),Headers=safeGetBuiltIn("Headers"),RequestPrototype=NativeRequest&&NativeRequest.prototype,HeadersPrototype=Headers&&Headers.prototype,RegExp$1=global$9.RegExp,TypeError$2=global$9.TypeError,decodeURIComponent$1=global$9.decodeURIComponent,encodeURIComponent=global$9.encodeURIComponent,charAt=uncurryThis$2("".charAt),join=uncurryThis$2([].join),push=uncurryThis$2([].push),replace=uncurryThis$2("".replace),shift=uncurryThis$2([].shift),splice=uncurryThis$2([].splice),split=uncurryThis$2("".split),stringSlice=uncurryThis$2("".slice),plus=/\+/g,sequences=Array(4),percentSequence=function(e){return sequences[e-1]||(sequences[e-1]=RegExp$1("((?:%[\\da-f]{2}){"+e+"})","gi"))},percentDecode=function(t){try{return decodeURIComponent$1(t)}catch(e){return t}},deserialize=function(e){var t=replace(e,plus," "),r=4;try{return decodeURIComponent$1(t)}catch(e){for(;r;)t=replace(t,percentSequence(r--),percentDecode);return t}},find=/[!'()~]|%20/g,replacements={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(e){return replacements[e]},serialize=function(e){return replace(encodeURIComponent(e),find,replacer)},URLSearchParamsIterator=createIteratorConstructor(function(e,t){setInternalState$1(this,{type:URL_SEARCH_PARAMS_ITERATOR,iterator:getIterator$1(getInternalParamsState(e).entries),kind:t})},"Iterator",function(){var e=getInternalIteratorState(this),t=e.kind,e=e.iterator.next(),r=e.value;return e.done||(e.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),e},!0),URLSearchParamsState=function(e){this.entries=[],this.url=null,void 0!==e&&(isObject$2(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===charAt(e,0)?stringSlice(e,1):e:$toString(e)))},URLSearchParamsConstructor=(URLSearchParamsState.prototype={type:URL_SEARCH_PARAMS,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,o,n,i,s,a=getIteratorMethod$1(e);if(a)for(r=(t=getIterator$1(e,a)).next;!(o=call$8(r,t)).done;){if(n=(o=getIterator$1(anObject$6(o.value))).next,(i=call$8(n,o)).done||(s=call$8(n,o)).done||!call$8(n,o).done)throw TypeError$2("Expected sequence with length 2");push(this.entries,{key:$toString(i.value),value:$toString(s.value)})}else for(var l in e)hasOwn$1(e,l)&&push(this.entries,{key:l,value:$toString(e[l])})},parseQuery:function(e){if(e)for(var t,r=split(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(t=split(t,"="),push(this.entries,{key:deserialize(shift(t)),value:deserialize(join(t,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],o=0;o<t.length;)e=t[o++],push(r,serialize(e.key)+"="+serialize(e.value));return join(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}},function(){anInstance$1(this,URLSearchParamsPrototype),setInternalState$1(this,new URLSearchParamsState(0<arguments.length?arguments[0]:void 0))}),URLSearchParamsPrototype=URLSearchParamsConstructor.prototype,sameValue$1=(defineBuiltIns(URLSearchParamsPrototype,{append:function(e,t){validateArgumentsLength$1(arguments.length,2);var r=getInternalParamsState(this);push(r.entries,{key:$toString(e),value:$toString(t)}),r.updateURL()},delete:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this),r=t.entries,o=$toString(e),n=0;n<r.length;)r[n].key===o?splice(r,n,1):n++;t.updateURL()},get:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),o=0;o<t.length;o++)if(t[o].key===r)return t[o].value;return null},getAll:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),o=[],n=0;n<t.length;n++)t[n].key===r&&push(o,t[n].value);return o},has:function(e){validateArgumentsLength$1(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),o=0;o<t.length;)if(t[o++].key===r)return!0;return!1},set:function(e,t){validateArgumentsLength$1(arguments.length,1);for(var r,o=getInternalParamsState(this),n=o.entries,i=!1,s=$toString(e),a=$toString(t),l=0;l<n.length;l++)(r=n[l]).key===s&&(i?splice(n,l--,1):(i=!0,r.value=a));i||push(n,{key:s,value:a}),o.updateURL()},sort:function(){var e=getInternalParamsState(this);arraySort(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=getInternalParamsState(this).entries,o=bind$4(e,1<arguments.length?arguments[1]:void 0),n=0;n<r.length;)o((t=r[n++]).value,t.key,this)},keys:function(){return new URLSearchParamsIterator(this,"keys")},values:function(){return new URLSearchParamsIterator(this,"values")},entries:function(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0}),defineBuiltIn$2(URLSearchParamsPrototype,ITERATOR$2,URLSearchParamsPrototype.entries,{name:"entries"}),defineBuiltIn$2(URLSearchParamsPrototype,"toString",function(){return getInternalParamsState(this).serialize()},{enumerable:!0}),setToStringTag$1(URLSearchParamsConstructor,URL_SEARCH_PARAMS),$$6({global:!0,constructor:!0,forced:!USE_NATIVE_URL},{URLSearchParams:URLSearchParamsConstructor}),!USE_NATIVE_URL&&isCallable$5(Headers)&&(headersHas=uncurryThis$2(HeadersPrototype.has),headersSet=uncurryThis$2(HeadersPrototype.set),wrapRequestOptions=function(e){if(isObject$2(e)){var t,r=e.body;if(classof$2(r)===URL_SEARCH_PARAMS)return t=e.headers?new Headers(e.headers):new Headers,headersHas(t,"content-type")||headersSet(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),create(e,{body:createPropertyDescriptor(0,$toString(r)),headers:createPropertyDescriptor(0,t)})}return e},isCallable$5(nativeFetch)&&$$6({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return nativeFetch(e,1<arguments.length?wrapRequestOptions(arguments[1]):{})}}),isCallable$5(NativeRequest))&&((RequestPrototype.constructor=RequestConstructor=function(e){return anInstance$1(this,RequestPrototype),new NativeRequest(e,1<arguments.length?wrapRequestOptions(arguments[1]):{})}).prototype=RequestPrototype,$$6({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:RequestConstructor})),Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}),call$7=functionCall,fixRegExpWellKnownSymbolLogic$1=fixRegexpWellKnownSymbolLogic,anObject$5=anObject$h,requireObjectCoercible$1=requireObjectCoercible$7,sameValue=sameValue$1,toString$1=toString$7,getMethod$2=getMethod$6,regExpExec$1=regexpExecAbstract,call$6=(fixRegexpWellKnownSymbolLogic("search",function(o,n,i){return[function(e){var t=requireObjectCoercible$1(this),r=null==e?void 0:getMethod$2(e,o);return r?call$7(r,e,t):new RegExp(e)[o](toString$1(t))},function(e){var t=anObject$5(this),e=toString$1(e),r=i(n,t,e);return r.done?r.value:(r=t.lastIndex,sameValue(r,0)||(t.lastIndex=0),e=regExpExec$1(t,e),sameValue(t.lastIndex,r)||(t.lastIndex=r),null===e?-1:e.index)}]}),functionCall),fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,anObject$4=anObject$h,toLength=toLength$3,toString=toString$7,requireObjectCoercible=requireObjectCoercible$7,getMethod$1=getMethod$6,advanceStringIndex=advanceStringIndex$2,regExpExec=regexpExecAbstract;fixRegexpWellKnownSymbolLogic("match",function(o,a,l){return[function(e){var t=requireObjectCoercible(this),r=null==e?void 0:getMethod$1(e,o);return r?call$6(r,e,t):new RegExp(e)[o](toString(t))},function(e){var t=anObject$4(this),r=toString(e),e=l(a,t,r);if(e.done)return e.value;if(!t.global)return regExpExec(t,r);for(var o=t.unicode,n=[],i=t.lastIndex=0;null!==(s=regExpExec(t,r));){var s=toString(s[0]);""===(n[i]=s)&&(t.lastIndex=advanceStringIndex(r,toLength(t.lastIndex),o)),i++}return 0===i?null:n}]});const EmailSharedText={emailLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-email-input-label",defaultMessage:"Email",description:"Label Email"}),continueLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-email-continue-button",defaultMessage:"Continue",description:"Continue Button"}),emailErrorState:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-email-input-field-error-state-label",defaultMessage:"This is an invalid email",description:"Email error state label"}),emptyEmailErrorMsg:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth-empty-email-input-field-error-state-label",defaultMessage:"Email is required",description:"Empty email error state label"})},useStyles$3=makeStyles()(()=>({emailWrapper:{display:"flex",flexDirection:"column",alignItems:"center",fontFamily:"Nunito","& button":{textTransform:"none",marginTop:"20px",fontSize:"18px",lineHeight:"24px",fontFamily:"Nunito",fontWeight:"600"},"& input":{fontFamily:"Nunito",lineHeight:"22px",color:"#2A323C"},"& .Sdk-MuiOutlinedInput-root":{"&:hover fieldset":{border:"1px solid #DADFE8"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8"},"&.Mui-error.Mui-focused fieldset":{borderColor:"#d32f2f"}},"& .Sdk-MuiFormControl-root .MuiInputLabel-root.Mui-focused":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiInputLabel-outlined":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiFormLabel-root .MuiInputLabel-root":{color:"#9CA8B4"},"& .Sdk-Mui-focused .MuiInputLabel-outlined":{color:"#9CA8B4"},"& .Sdk-Mui-error":{color:"#d32f2f !important"}},emailField:{width:"368px",height:"52px"},continueBtn:{width:"368px",height:"56px"}})),EmailInput=({onNextStep:e,email:t,setEmail:r,isLoading:o,buttonText:n})=>{var i=useStyles$3()["classes"];const[s,a]=react.exports.useState(!1);var{emailLabel:l,emailErrorState:c,emptyEmailErrorMsg:u}=EmailSharedText,c=s?t?c:u:l;const p=()=>{$(t)&&e?(a(!1),e()):a(!0)};const $=e=>e.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);return jsxRuntime.exports.jsxs(Box,Object.assign({className:i.emailWrapper},{children:[jsxRuntime.exports.jsx(TextField,{id:"username","data-testid":"os-auth-email-input-field",label:c,InputProps:{type:"email"},variant:"outlined",value:t,autoComplete:"username",autoFocus:!0,className:i.emailField,error:s,onChange:e=>{e=e.target.value;s&&a(!1),r(e)},onKeyDown:e=>{"Enter"===e.key&&p()}}),n&&jsxRuntime.exports.jsx(LoadingButton,Object.assign({color:"primary",variant:"contained",onClick:p,className:i.continueBtn,"data-testid":"os-auth-email-continue-btn",loading:o},{children:n}))]}))},useStyles$2=makeStyles()(()=>({passwordWrapper:{fontFamily:"Nunito","& input":{fontFamily:"Nunito",lineHeight:"22px",color:"#2A323C"},"& .Sdk-MuiOutlinedInput-root":{"&:hover fieldset":{border:"1px solid #DADFE8"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8"}},"& .Sdk-MuiFormControl-root .MuiInputLabel-root.Mui-focused":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiInputLabel-outlined":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiFormLabel-root .MuiInputLabel-rootd":{color:"#9CA8B4"}}})),PasswordInput=({password:e,onPasswordChange:t,errorMessage:r,onPressEnter:o,autoFocus:n=!0})=>{var i=useStyles$2()["classes"];const[s,a]=react.exports.useState(!1),[l,c]=react.exports.useState("Password");react.exports.useEffect(()=>{r?c(r):c("Password")},[r]);return jsxRuntime.exports.jsx(Box,Object.assign({className:i.passwordWrapper},{children:jsxRuntime.exports.jsxs(FormControl,Object.assign({sx:{width:"100%"},variant:"outlined"},{children:[jsxRuntime.exports.jsx(InputLabel,Object.assign({htmlFor:"outlined-adornment-password",style:{color:r?"#d32f2f":"#9CA8B4"}},{children:l})),jsxRuntime.exports.jsx(OutlinedInput,{id:"outlined-adornment-password","data-testid":"os-auth-password-input-field",type:s?"text":"password",onChange:e=>{e=e.target.value;t(e)},value:e,autoFocus:n,autoComplete:"password",endAdornment:jsxRuntime.exports.jsx(InputAdornment,Object.assign({position:"end"},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({"aria-label":"toggle password visibility",onClick:()=>a(e=>!e),onMouseDown:e=>{e.preventDefault()},edge:"end"},{children:s?jsxRuntime.exports.jsx(default_1$1,{}):jsxRuntime.exports.jsx(default_1,{})}))})),error:!!r,label:l,onKeyDown:e=>{"Enter"===e.key&&o()}})]}))}))},useStyles$1=makeStyles()(e=>({selectWrapper:{position:"absolute",right:"40px",top:"26px"},selectMenu:{marginTop:e.spacing(1),width:"164px",borderRadius:"10px !important",ul:{padding:"5px"},li:{padding:"10px 8px",borderRadius:"4px"}}})),destination=[{label:"aiWARE - US",value:"https://aiware2.us-1.veritone.com/ui/auth/login"},{label:"aiWARE - CA",value:"https://aiware2.ca-1.veritone.com/ui/auth/login"},{label:"aiWARE - UK",value:"https://aiware2.uk-1.veritone.com/ui/auth/login"},{label:"aiWARE - US Gov 1",value:"https://aiware2.us-gov-1.veritone.com/ui/auth/login"},{label:"aiWARE - US Gov 2",value:"https://aiware2.us-gov-2.veritone.com/ui/auth/login"},{label:"aiWARE - Deloitte",value:"https://aiware2.us-2.veritone.com/ui/auth/login"}],DestinationDropdown=({handleDestination:t})=>{var e=useStyles$1()["classes"];const[r,o]=react.exports.useState(destination[0].value);return jsxRuntime.exports.jsx(Box,Object.assign({className:e.selectWrapper},{children:jsxRuntime.exports.jsx(Select,Object.assign({name:"destination-dropdown",value:r,onChange:e=>{e=e.target.value;o(e),t(e)},renderValue:e=>{return jsxRuntime.exports.jsxs(Box,Object.assign({sx:{display:"flex",alignItems:"center",gap:.2}},{children:[jsxRuntime.exports.jsx(Location,{sx:{width:"18px",height:"18px",color:"#555F7C"}}),jsxRuntime.exports.jsx("span",{children:(t=e,null==(e=destination.find(e=>e.value===t))?void 0:e.label)})]}));var t},sx:{color:"#2A323C",fontFamily:"Nunito",fontSize:"12px",lineHeight:"16px",fontWeight:"400",width:"164px",height:"36px","& .Sdk-MuiSelect-select":{paddingLeft:"8px"},"&.MuiOutlinedInput-root":{"& fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"},"&:hover fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"}}},MenuProps:{classes:{paper:e.selectMenu}}},{children:destination.map(e=>jsxRuntime.exports.jsx(MenuItem,Object.assign({value:e.value,sx:{color:"#2A323C",fontFamily:"Nunito",fontSize:"12px",lineHeight:"16px",fontWeight:"400",letterSpacing:"-1.30385e-09px"}},{children:e.label}),e.label))}))}))};function _extends$1(){return(_extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,o=arguments[t];for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var _path,_path2,_path3,SvgAiwareLogo=function(e){return react.exports.createElement("svg",_extends$1({width:270,height:48,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),_g=_g||react.exports.createElement("g",{clipPath:"url(#aiware_logo_svg__a)"},react.exports.createElement("path",{d:"M0 30.967c0-.99.173-1.906.52-2.751a7.888 7.888 0 0 1 1.453-2.28 6.677 6.677 0 0 1 2.18-1.521 6.167 6.167 0 0 1 2.63-.58h17.583v-7.457H6.897V9.247H27.591l1.126 2.238 1.267 2.356 1.2 2.537V47.8h-6.818V40.67l-.857 1.883-1.267 2.798-1.126 2.45H6.784c-.923 0-1.8-.18-2.63-.543a7.49 7.49 0 0 1-2.181-1.52 7.888 7.888 0 0 1-1.454-2.28A7.463 7.463 0 0 1 0 40.669v-9.702Zm6.784 9.702h17.582v-9.702H6.784v9.702ZM49.735 11.603V47.8h-6.818V11.603h6.818ZM42.57 0h7.51v7.421h-7.51V0Z",fill:"#307FE2"}),react.exports.createElement("path",{d:"M0 30.967c0-.99.173-1.906.52-2.751a7.888 7.888 0 0 1 1.453-2.28 6.677 6.677 0 0 1 2.18-1.521 6.167 6.167 0 0 1 2.63-.58h17.583v-7.457H6.897V9.247H27.591l1.126 2.238 1.267 2.356 1.2 2.537V47.8h-6.818V40.67l-.857 1.883-1.267 2.798-1.126 2.45H6.784c-.923 0-1.8-.18-2.63-.543a7.49 7.49 0 0 1-2.181-1.52 7.888 7.888 0 0 1-1.454-2.28A7.463 7.463 0 0 1 0 40.669v-9.702Zm6.784 9.702h17.582v-9.702H6.784v9.702ZM49.735 11.603V47.8h-6.818V11.603h6.818ZM42.57 0h7.51v7.421h-7.51V0Z",fill:"#307FE2"}),react.exports.createElement("path",{d:"M74.734 47.837 61.658 0h6.538l10.142 38.063L88.448 0h6.539l10.11 38.063L115.239 0h6.538l-13.076 47.837h-7.176l-9.791-35.861-9.823 35.86h-7.177ZM147.26 0l17.637 47.837h-6.538l-2.025-5.505-2.025-5.504-2.52-6.838-2.54 6.838h-15.575l-4.051 11.009h-6.538L140.722 0h6.538Zm-11.099 29.99h15.628l-7.782-21.083-7.846 21.083ZM208.879 17.08c0 6.672-2.722 10.474-8.165 11.409l8.611 19.348h-7.24l-8.483-19.115h-14.321v19.115h-6.538V0h25.037c7.399 0 11.099 3.88 11.099 11.642v5.438Zm-29.598 4.803h18.148c1.743 0 2.998-.4 3.763-1.2.766-.801 1.149-2.113 1.149-3.937v-4.77c0-1.824-.383-3.136-1.149-3.937-.765-.8-2.02-1.2-3.763-1.2h-18.148v15.044ZM219.818 0h33.329v6.839h-26.791v13.677h22.868v6.838h-22.868v13.644h26.791v6.839h-33.329V0ZM257.019 41.225h4.73v.884h-1.942v5.302h-.845v-5.302h-1.943v-.884Zm8.797 6.186-2.206-4.534v4.534h-.846v-6.186h.924l2.252 4.659 2.256-4.659h.919v6.186h-.841v-4.534l-2.207 4.534h-.251Z",fill:"#333F48"})),_defs=_defs||react.exports.createElement("defs",null,react.exports.createElement("clipPath",{id:"aiware_logo_svg__a"},react.exports.createElement("path",{fill:"#fff",d:"M0 0h270v48H0z"}))))};function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,o=arguments[t];for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var SvgVeritoneLogo=function(e){return react.exports.createElement("svg",_extends({width:180,height:34,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),_path=_path||react.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.626 0 0 13.076 12.175 34h13.319L5.626 0ZM21.703 0l5.164 8.86L32.044 0h-10.34Z",fill:"#728FBE"}),_path2=_path2||react.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.044 0 12.176 34h13.318L37.67 13.076 32.044 0Z",fill:"#325491"}),_path3=_path3||react.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M161.768 10.063v6.02h9.982v1.979h-9.982v6.046h11.175v1.952h-13.21V8.111h13.21v1.952h-11.175Zm-5.114-1.952V26.06h-2.36L143.2 10.904V26.06h-2.034V8.111h2.36l11.094 15.102V8.111h2.034Zm-27.569 16.187c2.133 0 3.86-.696 5.181-2.088 1.265-1.338 1.898-3.046 1.898-5.124 0-2.08-.633-3.787-1.898-5.125-1.321-1.392-3.048-2.088-5.181-2.088-2.134 0-3.861.696-5.181 2.088-1.266 1.338-1.899 3.046-1.899 5.125s.633 3.786 1.899 5.124c1.32 1.392 3.047 2.088 5.181 2.088Zm0-16.404c2.676 0 4.873.895 6.591 2.684 1.682 1.736 2.523 3.905 2.523 6.508 0 2.602-.841 4.772-2.523 6.507-1.718 1.79-3.915 2.684-6.591 2.684-2.677 0-4.874-.895-6.592-2.684-1.681-1.735-2.522-3.905-2.522-6.507 0-2.603.841-4.772 2.522-6.508 1.718-1.79 3.915-2.684 6.592-2.684Zm-9.676 2.17h-6.266V26.06h-2.034V10.063h-6.266V8.111h14.566v1.952ZM99.663 26.06h2.035V8.11h-2.035v17.95ZM84.701 16.97V9.955h4.963c2.743 0 4.134 1.18 4.134 3.507 0 2.326-1.39 3.506-4.135 3.506h-4.962Zm6.956 1.647.193-.05c1.255-.334 2.256-.95 2.974-1.833.717-.882 1.08-1.983 1.08-3.271 0-1.638-.568-2.954-1.688-3.91-1.127-.959-2.65-1.445-4.525-1.445H82.71v17.95H84.7v-7.24h4.726l5.13 7.24h2.364l-5.264-7.44ZM68.577 10.063v6.02h9.982v1.979h-9.982v6.046h11.175v1.952h-13.21V8.111h13.21v1.952H68.577ZM63.942 8.111l-7.687 17.95h-2.333L46.236 8.11h2.224l6.629 15.645L61.717 8.11h2.225ZM176.505 24.727h.236c.276 0 .499-.092.499-.315 0-.197-.144-.328-.459-.328-.132 0-.224.013-.276.026v.617Zm-.013 1.207h-.499v-2.152c.197-.026.472-.066.827-.066.407 0 .591.066.735.171a.54.54 0 0 1 .224.46c0 .262-.197.432-.447.511v.026c.21.066.315.237.381.526.066.328.118.446.157.524h-.525c-.065-.078-.105-.262-.171-.524-.039-.224-.17-.329-.446-.329h-.236v.854Zm-1.327-1.115c0 .958.723 1.72 1.681 1.72.933.012 1.641-.762 1.641-1.707 0-.958-.708-1.732-1.667-1.732-.932 0-1.655.774-1.655 1.719Zm3.874 0c0 1.207-.972 2.165-2.206 2.165s-2.219-.958-2.219-2.165.985-2.152 2.232-2.152c1.221 0 2.193.944 2.193 2.152Z",fill:"#142E44"}))};const Footer=()=>jsxRuntime.exports.jsxs(Box,Object.assign({sx:{textAlign:"center",marginTop:"20px"},"data-testid":"aiware-auth-footer"},{children:[jsxRuntime.exports.jsx(SvgVeritoneLogo,{}),jsxRuntime.exports.jsxs(Typography,Object.assign({sx:{marginBottom:"18px",marginTop:"50px",fontFamily:"Nunito",fontSize:"10px",lineHeight:"16px",color:"#5C6269"}},{children:["© ",(new Date).getFullYear()," AiWARE, All Rights Reserved."," ",jsxRuntime.exports.jsxs("a",Object.assign({href:"https://www.veritone.com/terms",style:{color:"#0C53B0",textDecoration:"none"}},{children:["Terms of Service"," "]}))]}))]})),PageContainer=({children:e})=>jsxRuntime.exports.jsx(Container,{children:jsxRuntime.exports.jsxs(Box,Object.assign({sx:{display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"space-between",height:"100vh"}},{children:[jsxRuntime.exports.jsxs(Box,{children:[jsxRuntime.exports.jsx(Box,Object.assign({sx:{marginTop:"178px",marginBottom:"50px",textAlign:"center"}},{children:jsxRuntime.exports.jsx(SvgAiwareLogo,{})})),e]}),jsxRuntime.exports.jsx(Footer,{})]}))}),useStyles=makeStyles()(()=>({btnWrapper:{display:"flex",alignItems:"center",width:"100%",justifyContent:"center",flexDirection:"column"},openIdLogo:{width:"24px",height:"24px",marginRight:"8px"},openIdBtn:{"&.MuiButton-root":{width:"368px",marginTop:"20px",height:"56px",border:"1px solid #DADFE8",borderRadius:"4px",fontFamily:"Nunito",fontStyle:"normal",fontWeight:"600",fontSize:"18px",lineHeight:"24px",letterSpacing:"-1.30385e-09px",textTransform:"none","&:hover, &:focus":{border:"1px solid #DADFE8",color:"#2A323C"}}}})),OpenID=({openIdItems:e})=>{const r=useStyles()["classes"];return jsxRuntime.exports.jsx(Box,Object.assign({className:r.btnWrapper},{children:jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:e&&e.map((t,e)=>{return jsxRuntime.exports.jsxs(Button,Object.assign({variant:"outlined","data-testid":"os-auth-openId-button-"+e,className:r.openIdBtn,onClick:()=>{var e;e=t.loginUrl,window.location.href=e},sx:{backgroundColor:t.loginButtonStyle&&t.loginButtonStyle.btnColor?t.loginButtonStyle.btnColor:"#FFFFFF","&:hover, &:focus":{backgroundColor:t.loginButtonStyle&&t.loginButtonStyle.btnColor?t.loginButtonStyle.btnColor:"#FFFFFF"}}},{children:[t.loginButtonStyle&&t.loginButtonStyle.btnLogo&&jsxRuntime.exports.jsx("img",{className:r.openIdLogo,alt:"icon",src:t.loginButtonStyle.btnLogo,"data-testid":"os-auth-openId-image-"+e}),jsxRuntime.exports.jsx("span",Object.assign({"data-testid":"os-auth-openId-name-"+e,style:{marginTop:"3px",color:t.loginButtonStyle&&t.loginButtonStyle.btnTextColor?t.loginButtonStyle.btnTextColor:"#2A323C"}},{children:(null==t?void 0:t.name)&&"Login with "+(20<(e=t.name).length?e.substring(0,20)+"...":e)}))]}),t.connectId)})})}))};var location,defer,channel,port,classof$1=classofRaw$1,global$8=global$o,engineIsNode="process"==classofRaw$1(global$o.process),getBuiltIn$3=getBuiltIn$8,definePropertyModule=objectDefineProperty,wellKnownSymbol$4=wellKnownSymbol$k,DESCRIPTORS=descriptors,SPECIES$2=wellKnownSymbol$k("species"),setSpecies$1=function(e){var e=getBuiltIn$3(e),t=definePropertyModule.f;DESCRIPTORS&&e&&!e[SPECIES$2]&&t(e,SPECIES$2,{configurable:!0,get:function(){return this}})},uncurryThis$1=functionUncurryThis,fails$1=fails$l,isCallable$4=isCallable$o,classof=classof$6,getBuiltIn$2=getBuiltIn$8,inspectSource$1=inspectSource$4,noop=function(){},empty=[],construct=getBuiltIn$8("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis$1(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$4(e))return!1;try{return construct(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$4(e))return!1;switch(classof(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec(constructorRegExp,inspectSource$1(e))}catch(e){return!0}},isConstructor$1=(isConstructorLegacy.sham=!0,!construct||fails$1(function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){e=!0})||e})?isConstructorLegacy:isConstructorModern),isConstructor=isConstructor$1,tryToString$1=tryToString$4,$TypeError$1=TypeError,aConstructor$1=function(e){if(isConstructor(e))return e;throw $TypeError$1(tryToString$1(e)+" is not a constructor")},anObject$3=anObject$h,aConstructor=aConstructor$1,wellKnownSymbol$3=wellKnownSymbol$k,SPECIES$1=wellKnownSymbol$k("species"),speciesConstructor$1=function(e,t){var e=anObject$3(e).constructor;return void 0===e||null==(e=anObject$3(e)[SPECIES$1])?t:aConstructor(e)},uncurryThis=functionUncurryThis,arraySlice$1=functionUncurryThis([].slice),userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$7=global$o,apply=functionApply,bind$3=functionBindContext,isCallable$3=isCallable$o,hasOwn=hasOwnProperty_1,fails=fails$l,html=html$2,arraySlice=arraySlice$1,createElement=documentCreateElement$2,validateArgumentsLength=validateArgumentsLength$2,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$7.setImmediate,clear=global$7.clearImmediate,process$2=global$7.process,Dispatch=global$7.Dispatch,Function$1=global$7.Function,MessageChannel=global$7.MessageChannel,String$1=global$7.String,counter=0,queue$1={},ONREADYSTATECHANGE="onreadystatechange";try{location=global$7.location}catch(e){}var flush,head,last,notify$1,toggle,node,promise,then,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,run=function(e){var t;hasOwn(queue$1,e)&&(t=queue$1[e],delete queue$1[e],t())},runner=function(e){return function(){run(e)}},listener=function(e){run(e.data)},post=function(e){global$7.postMessage(String$1(e),location.protocol+"//"+location.host)},task$1=(set&&clear||(set=function(e){validateArgumentsLength(arguments.length,1);var t=isCallable$3(e)?e:Function$1(e),r=arraySlice(arguments,1);return queue$1[++counter]=function(){apply(t,void 0,r)},defer(counter),counter},clear=function(e){delete queue$1[e]},IS_NODE$3?defer=function(e){process$2.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel&&!IS_IOS$1?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=listener,defer=bind$3(port.postMessage,port)):global$7.addEventListener&&isCallable$3(global$7.postMessage)&&!global$7.importScripts&&location&&"file:"!==location.protocol&&!fails(post)?(defer=post,global$7.addEventListener("message",listener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)}),{set:set,clear:clear}),userAgent$1=engineUserAgent,global$6=global$o,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&void 0!==global$6.Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$5=global$o,bind$2=functionBindContext,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$5.MutationObserver||global$5.WebKitMutationObserver,document$2=global$5.document,process$1=global$5.process,Promise$1=global$5.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor(global$5,"queueMicrotask"),queueMicrotask=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value,microtask$1=(queueMicrotask||(flush=function(){var e,t;for(IS_NODE$2&&(e=process$1.domain)&&e.exit();head;){t=head.fn,head=head.next;try{t()}catch(e){throw head?notify$1():last=void 0,e}}last=void 0,e&&e.enter()},notify$1=IS_IOS||IS_NODE$2||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$2(promise.then,promise),function(){then(flush)}):IS_NODE$2?function(){process$1.nextTick(flush)}:(macrotask=bind$2(macrotask,global$5),function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),function(){node.data=toggle=!toggle})),queueMicrotask||function(e){e={fn:e,next:void 0};last&&(last.next=e),head||(head=e,notify$1()),last=e}),global$4=global$o,hostReportErrors$1=function(e,t){var r=global$4.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))},perform$3=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Queue$1=function(){this.head=null,this.tail=null},queue=(Queue$1.prototype={add:function(e){e={item:e,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},Queue$1),global$3=global$o,promiseNativeConstructor=global$o.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$1=engineIsNode,engineIsBrowser=!engineIsDeno&&!engineIsNode&&"object"==typeof window&&"object"==typeof document,global$2=global$o,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$2=isCallable$o,isForced=isForced_1,inspectSource=inspectSource$4,wellKnownSymbol$2=wellKnownSymbol$k,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,SPECIES=(NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,wellKnownSymbol$2("species")),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$2(global$2.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",function(){var e=inspectSource(NativePromiseConstructor$3),t=e!==String(NativePromiseConstructor$3);if(!t&&66===V8_VERSION)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){function r(e){e(function(){},function(){})}e=new NativePromiseConstructor$3(function(e){e(1)});if((e.constructor={})[SPECIES]=r,!(SUBCLASSING=e.then(function(){})instanceof r))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$3=aCallable$7,PromiseCapability=function(e){var r,o;this.promise=new e(function(e,t){if(void 0!==r||void 0!==o)throw TypeError("Bad Promise constructor");r=e,o=t}),this.resolve=aCallable$3(r),this.reject=aCallable$3(o)},$$5=(newPromiseCapability$2.f=function(e){return new PromiseCapability(e)},_export),IS_NODE=engineIsNode,global$1=global$o,call$5=functionCall,defineBuiltIn$1=defineBuiltIn$9,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$4,setSpecies=setSpecies$1,aCallable$2=aCallable$7,isCallable$1=isCallable$o,isObject$1=isObject$9,anInstance=anInstance$2,speciesConstructor=speciesConstructor$1,task=task$1.set,microtask=microtask$1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue,InternalStateModule=internalState,NativePromiseConstructor$2=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule.getterFor(PROMISE),setInternalState=InternalStateModule.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$1=global$1.TypeError,document$1=global$1.document,process=global$1.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$1.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$1(e)||!isCallable$1(t=e.then))&&t},callReaction=function(e,t){var r,o,n,i=t.value,s=t.state==FULFILLED,a=s?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{a?(s||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===a?r=i:(u&&u.enter(),r=a(i),u&&(u.exit(),n=!0)),r===e.promise?c(TypeError$1("Promise-chain cycle")):(o=isThenable(r))?call$5(o,r,l,c):l(r)):c(i)}catch(e){u&&!n&&u.exit(),c(e)}},notify=function(r,o){r.notified||(r.notified=!0,microtask(function(){for(var e,t=r.reactions;e=t.get();)callReaction(e,r);r.notified=!1,o&&!r.rejection&&onUnhandled(r)}))},dispatchEvent=function(e,t,r){var o;DISPATCH_EVENT?((o=document$1.createEvent("Event")).promise=t,o.reason=r,o.initEvent(e,!1,!0),global$1.dispatchEvent(o)):o={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT&&(t=global$1["on"+e])?t(o):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",r)},onUnhandled=function(o){call$5(task,global$1,function(){var e=o.facade,t=o.value,r=isUnhandled(o);if(r&&(r=perform$2(function(){IS_NODE?process.emit("unhandledRejection",t,e):dispatchEvent(UNHANDLED_REJECTION,e,t)}),o.rejection=IS_NODE||isUnhandled(o)?UNHANDLED:HANDLED,r.error))throw r.value})},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(t){call$5(task,global$1,function(){var e=t.facade;IS_NODE?process.emit("rejectionHandled",e):dispatchEvent(REJECTION_HANDLED,e,t.value)})},bind$1=function(t,r,o){return function(e){t(r,e,o)}},internalReject=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw TypeError$1("Promise can't be resolved itself");var o=isThenable(e);o?microtask(function(){var t={done:!1};try{call$5(o,e,bind$1(internalResolve,t,r),bind$1(internalReject,t,r))}catch(e){internalReject(t,e,r)}}):(r.value=e,r.state=FULFILLED,notify(r,!1))}catch(e){internalReject({done:!1},e,r)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance(this,PromisePrototype),aCallable$2(e),call$5(Internal,this);var t=getInternalPromiseState(this);try{e(bind$1(internalResolve,t),bind$1(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$1(PromisePrototype,"then",function(e,t){var r=getInternalPromiseState(this),o=newPromiseCapability$1(speciesConstructor(this,PromiseConstructor));return r.parent=!0,o.ok=!isCallable$1(e)||e,o.fail=isCallable$1(t)&&t,o.domain=IS_NODE?process.domain:void 0,r.state==PENDING?r.reactions.add(o):microtask(function(){callReaction(o,r)}),o.promise}),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$1(internalResolve,t),this.reject=bind$1(internalReject,t)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},isCallable$1(NativePromiseConstructor$2))&&NativePromisePrototype$1!==Object.prototype){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$1(NativePromisePrototype$1,"then",function(e,t){var r=this;return new PromiseConstructor(function(e,t){call$5(nativeThen,r,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch(e){}setPrototypeOf&&setPrototypeOf(NativePromisePrototype$1,PromisePrototype)}$$5({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var wellKnownSymbol$1=wellKnownSymbol$k,Iterators=iterators,ITERATOR$1=wellKnownSymbol$k("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$1=function(e){return void 0!==e&&(Iterators.Array===e||ArrayPrototype[ITERATOR$1]===e)},call$4=functionCall,anObject$2=anObject$h,getMethod=getMethod$6,iteratorClose$1=function(e,t,r){var o,n;anObject$2(e);try{if(!(o=getMethod(e,"return"))){if("throw"===t)throw r;return r}o=call$4(o,e)}catch(e){n=!0,o=e}if("throw"===t)throw r;if(n)throw o;return anObject$2(o),r},bind=functionBindContext,call$3=functionCall,anObject$1=anObject$h,tryToString=tryToString$4,isArrayIteratorMethod=isArrayIteratorMethod$1,lengthOfArrayLike=lengthOfArrayLike$3,isPrototypeOf=objectIsPrototypeOf,getIterator=getIterator$2,getIteratorMethod=getIteratorMethod$3,iteratorClose=iteratorClose$1,$TypeError=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$2=function(e,t,r){function o(e){return i&&iteratorClose(i,"normal",e),new Result(!0,e)}function n(e){return $?(anObject$1(e),h?y(e[0],e[1],o):y(e[0],e[1])):h?y(e,o):y(e)}var i,s,a,l,c,u,p=r&&r.that,$=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),g=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),y=bind(t,p);if(d)i=e.iterator;else if(g)i=e;else{if(!(r=getIteratorMethod(e)))throw $TypeError(tryToString(e)+" is not iterable");if(isArrayIteratorMethod(r)){for(s=0,a=lengthOfArrayLike(e);s<a;s++)if((l=n(e[s]))&&isPrototypeOf(ResultPrototype,l))return l;return new Result(!1)}i=getIterator(e,r)}for(c=(d?e:i).next;!(u=call$3(c,i)).done;){try{l=n(u.value)}catch(e){iteratorClose(i,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf(ResultPrototype,l))return l}return new Result(!1)},wellKnownSymbol=wellKnownSymbol$k,ITERATOR=wellKnownSymbol$k("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(e){}var method,checkCorrectnessOfIteration$1=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var r=!1;try{var o={};o[ITERATOR]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(e){}return r},NativePromiseConstructor$1=promiseNativeConstructor,checkCorrectnessOfIteration=checkCorrectnessOfIteration$1,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration(function(e){NativePromiseConstructor$1.all(e).then(void 0,function(){})}),$$4=_export,call$2=functionCall,aCallable$1=aCallable$7,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration,$$3=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{all:function(e){var a=this,t=newPromiseCapabilityModule$2.f(a),l=t.resolve,c=t.reject,r=perform$1(function(){var o=aCallable$1(a.resolve),n=[],i=0,s=1;iterate$1(e,function(e){var t=i++,r=!1;s++,call$2(o,a,e).then(function(e){r||(r=!0,n[t]=e,--s)||l(n)},c)}),--s||l(n)});return r.error&&c(r.value),t.promise}}),_export),FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$8,isCallable=isCallable$o,defineBuiltIn=defineBuiltIn$9,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,$$2=($$3({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable(NativePromiseConstructor)&&(method=getBuiltIn$1("Promise").prototype.catch,NativePromisePrototype.catch!==method)&&defineBuiltIn(NativePromisePrototype,"catch",method,{unsafe:!0}),_export),call$1=functionCall,aCallable=aCallable$7,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,$$1=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function(e){var r=this,o=newPromiseCapabilityModule$1.f(r),n=o.reject,t=perform(function(){var t=aCallable(r.resolve);iterate(e,function(e){call$1(t,r,e).then(o.resolve,n)})});return t.error&&n(t.value),o.promise}}),_export),call=functionCall,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR,anObject=($$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return call(t.reject,void 0,e),t.promise}}),anObject$h),isObject=isObject$9,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(e,t){return anObject(e),isObject(t)&&t.constructor===e?t:((0,(e=newPromiseCapability.f(e)).resolve)(t),e.promise)},$=_export,getBuiltIn=getBuiltIn$8,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;getBuiltIn("Promise"),$({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}});const getGlobalProviders=()=>__awaiter(void 0,void 0,void 0,function*(){let t=[];try{var e=yield fetch(generateApiUrlFromHost()+"/api/admin/openid");t=200===e.status?(yield e.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",e),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),getOrgOpenIdProviders=r=>__awaiter(void 0,void 0,void 0,function*(){let t=[];try{var e=yield fetch(generateApiUrlFromHost()+"/api/admin/openid/org/"+r);t=200===e.status?(yield e.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",e),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),linkUserToOidAndLogin=(e,t,r)=>fetch(generateApiUrlFromHost()+"/api/admin/openid/linkUserToOid",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({userName:e,password:t,sessionKey:r})}),userLoginMutation=(r,o)=>__awaiter(void 0,void 0,void 0,function*(){var e=generateApiUrlFromHost(!0),t={query:`
2
2
  mutation UserLogin($input: UserLogin!) {
3
3
  userLogin(input: $input) {
4
4
  token
Binary file