function mS(s,o){for(var n=0;n<o.length;n++){const t=o[n];if(typeof t!="string"&&!Array.isArray(t)){for(const i in t)if(i!=="default"&&!(i in s)){const d=Object.getOwnPropertyDescriptor(t,i);d&&Object.defineProperty(s,i,d.get?d:{enumerable:!0,get:()=>t[i]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var $F=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ux(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var g_={exports:{}},Mc={};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var __,dw;function Dy(){if(dw)return __;dw=1;var s=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function t(d){if(d==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(d)}function i(){try{if(!Object.assign)return!1;var d=new String("abc");if(d[5]="de",Object.getOwnPropertyNames(d)[0]==="5")return!1;for(var c={},u=0;u<10;u++)c["_"+String.fromCharCode(u)]=u;var h=Object.getOwnPropertyNames(c).map(function(_){return c[_]});if(h.join("")!=="0123456789")return!1;var g={};return"abcdefghijklmnopqrst".split("").forEach(function(_){g[_]=_}),Object.keys(Object.assign({},g)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return __=i()?Object.assign:function(d,c){for(var u,h=t(d),g,_=1;_<arguments.length;_++){u=Object(arguments[_]);for(var m in u)o.call(u,m)&&(h[m]=u[m]);if(s){g=s(u);for(var x=0;x<g.length;x++)n.call(u,g[x])&&(h[g[x]]=u[g[x]])}}return h},__}var y_={exports:{}},It={};/** @license React v17.0.2
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var cw;function fS(){if(cw)return It;cw=1;var s=Dy(),o=60103,n=60106;It.Fragment=60107,It.StrictMode=60108,It.Profiler=60114;var t=60109,i=60110,d=60112;It.Suspense=60113;var c=60115,u=60116;if(typeof Symbol=="function"&&Symbol.for){var h=Symbol.for;o=h("react.element"),n=h("react.portal"),It.Fragment=h("react.fragment"),It.StrictMode=h("react.strict_mode"),It.Profiler=h("react.profiler"),t=h("react.provider"),i=h("react.context"),d=h("react.forward_ref"),It.Suspense=h("react.suspense"),c=h("react.memo"),u=h("react.lazy")}var g=typeof Symbol=="function"&&Symbol.iterator;function _($){return $===null||typeof $!="object"?null:($=g&&$[g]||$["@@iterator"],typeof $=="function"?$:null)}function m($){for(var ie="https://reactjs.org/docs/error-decoder.html?invariant="+$,le=1;le<arguments.length;le++)ie+="&args[]="+encodeURIComponent(arguments[le]);return"Minified React error #"+$+"; visit "+ie+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function v($,ie,le){this.props=$,this.context=ie,this.refs=y,this.updater=le||x}v.prototype.isReactComponent={},v.prototype.setState=function($,ie){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error(m(85));this.updater.enqueueSetState(this,$,ie,"setState")},v.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function b(){}b.prototype=v.prototype;function C($,ie,le){this.props=$,this.context=ie,this.refs=y,this.updater=le||x}var k=C.prototype=new b;k.constructor=C,s(k,v.prototype),k.isPureReactComponent=!0;var L={current:null},I=Object.prototype.hasOwnProperty,A={key:!0,ref:!0,__self:!0,__source:!0};function Y($,ie,le){var V,z={},J=null,ee=null;if(ie!=null)for(V in ie.ref!==void 0&&(ee=ie.ref),ie.key!==void 0&&(J=""+ie.key),ie)I.call(ie,V)&&!A.hasOwnProperty(V)&&(z[V]=ie[V]);var he=arguments.length-2;if(he===1)z.children=le;else if(1<he){for(var te=Array(he),G=0;G<he;G++)te[G]=arguments[G+2];z.children=te}if($&&$.defaultProps)for(V in he=$.defaultProps,he)z[V]===void 0&&(z[V]=he[V]);return{$$typeof:o,type:$,key:J,ref:ee,props:z,_owner:L.current}}function P($,ie){return{$$typeof:o,type:$.type,key:ie,ref:$.ref,props:$.props,_owner:$._owner}}function T($){return typeof $=="object"&&$!==null&&$.$$typeof===o}function F($){var ie={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(le){return ie[le]})}var H=/\/+/g;function W($,ie){return typeof $=="object"&&$!==null&&$.key!=null?F(""+$.key):ie.toString(36)}function K($,ie,le,V,z){var J=typeof $;(J==="undefined"||J==="boolean")&&($=null);var ee=!1;if($===null)ee=!0;else switch(J){case"string":case"number":ee=!0;break;case"object":switch($.$$typeof){case o:case n:ee=!0}}if(ee)return ee=$,z=z(ee),$=V===""?"."+W(ee,0):V,Array.isArray(z)?(le="",$!=null&&(le=$.replace(H,"$&/")+"/"),K(z,ie,le,"",function(G){return G})):z!=null&&(T(z)&&(z=P(z,le+(!z.key||ee&&ee.key===z.key?"":(""+z.key).replace(H,"$&/")+"/")+$)),ie.push(z)),1;if(ee=0,V=V===""?".":V+":",Array.isArray($))for(var he=0;he<$.length;he++){J=$[he];var te=V+W(J,he);ee+=K(J,ie,le,te,z)}else if(te=_($),typeof te=="function")for($=te.call($),he=0;!(J=$.next()).done;)J=J.value,te=V+W(J,he++),ee+=K(J,ie,le,te,z);else if(J==="object")throw ie=""+$,Error(m(31,ie==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":ie));return ee}function Z($,ie,le){if($==null)return $;var V=[],z=0;return K($,V,"","",function(J){return ie.call(le,J,z++)}),V}function Q($){if($._status===-1){var ie=$._result;ie=ie(),$._status=0,$._result=ie,ie.then(function(le){$._status===0&&(le=le.default,$._status=1,$._result=le)},function(le){$._status===0&&($._status=2,$._result=le)})}if($._status===1)return $._result;throw $._result}var B={current:null};function R(){var $=B.current;if($===null)throw Error(m(321));return $}var X={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:L,IsSomeRendererActing:{current:!1},assign:s};return It.Children={map:Z,forEach:function($,ie,le){Z($,function(){ie.apply(this,arguments)},le)},count:function($){var ie=0;return Z($,function(){ie++}),ie},toArray:function($){return Z($,function(ie){return ie})||[]},only:function($){if(!T($))throw Error(m(143));return $}},It.Component=v,It.PureComponent=C,It.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,It.cloneElement=function($,ie,le){if($==null)throw Error(m(267,$));var V=s({},$.props),z=$.key,J=$.ref,ee=$._owner;if(ie!=null){if(ie.ref!==void 0&&(J=ie.ref,ee=L.current),ie.key!==void 0&&(z=""+ie.key),$.type&&$.type.defaultProps)var he=$.type.defaultProps;for(te in ie)I.call(ie,te)&&!A.hasOwnProperty(te)&&(V[te]=ie[te]===void 0&&he!==void 0?he[te]:ie[te])}var te=arguments.length-2;if(te===1)V.children=le;else if(1<te){he=Array(te);for(var G=0;G<te;G++)he[G]=arguments[G+2];V.children=he}return{$$typeof:o,type:$.type,key:z,ref:J,props:V,_owner:ee}},It.createContext=function($,ie){return ie===void 0&&(ie=null),$={$$typeof:i,_calculateChangedBits:ie,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider={$$typeof:t,_context:$},$.Consumer=$},It.createElement=Y,It.createFactory=function($){var ie=Y.bind(null,$);return ie.type=$,ie},It.createRef=function(){return{current:null}},It.forwardRef=function($){return{$$typeof:d,render:$}},It.isValidElement=T,It.lazy=function($){return{$$typeof:u,_payload:{_status:-1,_result:$},_init:Q}},It.memo=function($,ie){return{$$typeof:c,type:$,compare:ie===void 0?null:ie}},It.useCallback=function($,ie){return R().useCallback($,ie)},It.useContext=function($,ie){return R().useContext($,ie)},It.useDebugValue=function(){},It.useEffect=function($,ie){return R().useEffect($,ie)},It.useImperativeHandle=function($,ie,le){return R().useImperativeHandle($,ie,le)},It.useLayoutEffect=function($,ie){return R().useLayoutEffect($,ie)},It.useMemo=function($,ie){return R().useMemo($,ie)},It.useReducer=function($,ie,le){return R().useReducer($,ie,le)},It.useRef=function($){return R().useRef($)},It.useState=function($){return R().useState($)},It.version="17.0.2",It}var uw;function Iy(){return uw||(uw=1,y_.exports=fS()),y_.exports}/** @license React v17.0.2
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var pw;function gS(){if(pw)return Mc;pw=1,Dy();var s=Iy(),o=60103;if(Mc.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;o=n("react.element"),Mc.Fragment=n("react.fragment")}var t=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,d={key:!0,ref:!0,__self:!0,__source:!0};function c(u,h,g){var _,m={},x=null,y=null;g!==void 0&&(x=""+g),h.key!==void 0&&(x=""+h.key),h.ref!==void 0&&(y=h.ref);for(_ in h)i.call(h,_)&&!d.hasOwnProperty(_)&&(m[_]=h[_]);if(u&&u.defaultProps)for(_ in h=u.defaultProps,h)m[_]===void 0&&(m[_]=h[_]);return{$$typeof:o,type:u,key:x,ref:y,props:m,_owner:t.current}}return Mc.jsx=c,Mc.jsxs=c,Mc}var hw;function _S(){return hw||(hw=1,g_.exports=gS()),g_.exports}var e=_S(),w_={exports:{}},js={},v_={exports:{}},x_={};/** @license React v0.20.2
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var mw;function yS(){return mw||(mw=1,(function(s){var o,n,t,i;if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var c=Date,u=c.now();s.unstable_now=function(){return c.now()-u}}if(typeof window>"u"||typeof MessageChannel!="function"){var h=null,g=null,_=function(){if(h!==null)try{var z=s.unstable_now();h(!0,z),h=null}catch(J){throw setTimeout(_,0),J}};o=function(z){h!==null?setTimeout(o,0,z):(h=z,setTimeout(_,0))},n=function(z,J){g=setTimeout(z,J)},t=function(){clearTimeout(g)},s.unstable_shouldYield=function(){return!1},i=s.unstable_forceFrameRate=function(){}}else{var m=window.setTimeout,x=window.clearTimeout;if(typeof console<"u"){var y=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof y!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,b=null,C=-1,k=5,L=0;s.unstable_shouldYield=function(){return s.unstable_now()>=L},i=function(){},s.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<z?Math.floor(1e3/z):5};var I=new MessageChannel,A=I.port2;I.port1.onmessage=function(){if(b!==null){var z=s.unstable_now();L=z+k;try{b(!0,z)?A.postMessage(null):(v=!1,b=null)}catch(J){throw A.postMessage(null),J}}else v=!1},o=function(z){b=z,v||(v=!0,A.postMessage(null))},n=function(z,J){C=m(function(){z(s.unstable_now())},J)},t=function(){x(C),C=-1}}function Y(z,J){var ee=z.length;z.push(J);e:for(;;){var he=ee-1>>>1,te=z[he];if(te!==void 0&&0<F(te,J))z[he]=J,z[ee]=te,ee=he;else break e}}function P(z){return z=z[0],z===void 0?null:z}function T(z){var J=z[0];if(J!==void 0){var ee=z.pop();if(ee!==J){z[0]=ee;e:for(var he=0,te=z.length;he<te;){var G=2*(he+1)-1,re=z[G],He=G+1,Ge=z[He];if(re!==void 0&&0>F(re,ee))Ge!==void 0&&0>F(Ge,re)?(z[he]=Ge,z[He]=ee,he=He):(z[he]=re,z[G]=ee,he=G);else if(Ge!==void 0&&0>F(Ge,ee))z[he]=Ge,z[He]=ee,he=He;else break e}}return J}return null}function F(z,J){var ee=z.sortIndex-J.sortIndex;return ee!==0?ee:z.id-J.id}var H=[],W=[],K=1,Z=null,Q=3,B=!1,R=!1,X=!1;function $(z){for(var J=P(W);J!==null;){if(J.callback===null)T(W);else if(J.startTime<=z)T(W),J.sortIndex=J.expirationTime,Y(H,J);else break;J=P(W)}}function ie(z){if(X=!1,$(z),!R)if(P(H)!==null)R=!0,o(le);else{var J=P(W);J!==null&&n(ie,J.startTime-z)}}function le(z,J){R=!1,X&&(X=!1,t()),B=!0;var ee=Q;try{for($(J),Z=P(H);Z!==null&&(!(Z.expirationTime>J)||z&&!s.unstable_shouldYield());){var he=Z.callback;if(typeof he=="function"){Z.callback=null,Q=Z.priorityLevel;var te=he(Z.expirationTime<=J);J=s.unstable_now(),typeof te=="function"?Z.callback=te:Z===P(H)&&T(H),$(J)}else T(H);Z=P(H)}if(Z!==null)var G=!0;else{var re=P(W);re!==null&&n(ie,re.startTime-J),G=!1}return G}finally{Z=null,Q=ee,B=!1}}var V=i;s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(z){z.callback=null},s.unstable_continueExecution=function(){R||B||(R=!0,o(le))},s.unstable_getCurrentPriorityLevel=function(){return Q},s.unstable_getFirstCallbackNode=function(){return P(H)},s.unstable_next=function(z){switch(Q){case 1:case 2:case 3:var J=3;break;default:J=Q}var ee=Q;Q=J;try{return z()}finally{Q=ee}},s.unstable_pauseExecution=function(){},s.unstable_requestPaint=V,s.unstable_runWithPriority=function(z,J){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var ee=Q;Q=z;try{return J()}finally{Q=ee}},s.unstable_scheduleCallback=function(z,J,ee){var he=s.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?he+ee:he):ee=he,z){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=ee+te,z={id:K++,callback:J,priorityLevel:z,startTime:ee,expirationTime:te,sortIndex:-1},ee>he?(z.sortIndex=ee,Y(W,z),P(H)===null&&z===P(W)&&(X?t():X=!0,n(ie,ee-he))):(z.sortIndex=te,Y(H,z),R||B||(R=!0,o(le))),z},s.unstable_wrapCallback=function(z){var J=Q;return function(){var ee=Q;Q=J;try{return z.apply(this,arguments)}finally{Q=ee}}}})(x_)),x_}var fw;function wS(){return fw||(fw=1,v_.exports=yS()),v_.exports}/** @license React v17.0.2
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var gw;function vS(){if(gw)return js;gw=1;var s=Iy(),o=Dy(),n=wS();function t(p){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+p,a=1;a<arguments.length;a++)r+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+p+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!s)throw Error(t(227));var i=new Set,d={};function c(p,r){u(p,r),u(p+"Capture",r)}function u(p,r){for(d[p]=r,p=0;p<r.length;p++)i.add(r[p])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,_=Object.prototype.hasOwnProperty,m={},x={};function y(p){return _.call(x,p)?!0:_.call(m,p)?!1:g.test(p)?x[p]=!0:(m[p]=!0,!1)}function v(p,r,a,f){if(a!==null&&a.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return f?!1:a!==null?!a.acceptsBooleans:(p=p.toLowerCase().slice(0,5),p!=="data-"&&p!=="aria-");default:return!1}}function b(p,r,a,f){if(r===null||typeof r>"u"||v(p,r,a,f))return!0;if(f)return!1;if(a!==null)switch(a.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function C(p,r,a,f,w,S,D){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=f,this.attributeNamespace=w,this.mustUseProperty=a,this.propertyName=p,this.type=r,this.sanitizeURL=S,this.removeEmptyString=D}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(p){k[p]=new C(p,0,!1,p,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var r=p[0];k[r]=new C(r,1,!1,p[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(p){k[p]=new C(p,2,!1,p.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){k[p]=new C(p,2,!1,p,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(p){k[p]=new C(p,3,!1,p.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(p){k[p]=new C(p,3,!0,p,null,!1,!1)}),["capture","download"].forEach(function(p){k[p]=new C(p,4,!1,p,null,!1,!1)}),["cols","rows","size","span"].forEach(function(p){k[p]=new C(p,6,!1,p,null,!1,!1)}),["rowSpan","start"].forEach(function(p){k[p]=new C(p,5,!1,p.toLowerCase(),null,!1,!1)});var L=/[\-:]([a-z])/g;function I(p){return p[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(p){var r=p.replace(L,I);k[r]=new C(r,1,!1,p,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(p){var r=p.replace(L,I);k[r]=new C(r,1,!1,p,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(p){var r=p.replace(L,I);k[r]=new C(r,1,!1,p,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(p){k[p]=new C(p,1,!1,p.toLowerCase(),null,!1,!1)}),k.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(p){k[p]=new C(p,1,!1,p.toLowerCase(),null,!0,!0)});function A(p,r,a,f){var w=k.hasOwnProperty(r)?k[r]:null,S=w!==null?w.type===0:f?!1:!(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N");S||(b(r,a,w,f)&&(a=null),f||w===null?y(r)&&(a===null?p.removeAttribute(r):p.setAttribute(r,""+a)):w.mustUseProperty?p[w.propertyName]=a===null?w.type===3?!1:"":a:(r=w.attributeName,f=w.attributeNamespace,a===null?p.removeAttribute(r):(w=w.type,a=w===3||w===4&&a===!0?"":""+a,f?p.setAttributeNS(f,r,a):p.setAttribute(r,a))))}var Y=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,P=60103,T=60106,F=60107,H=60108,W=60114,K=60109,Z=60110,Q=60112,B=60113,R=60120,X=60115,$=60116,ie=60121,le=60128,V=60129,z=60130,J=60131;if(typeof Symbol=="function"&&Symbol.for){var ee=Symbol.for;P=ee("react.element"),T=ee("react.portal"),F=ee("react.fragment"),H=ee("react.strict_mode"),W=ee("react.profiler"),K=ee("react.provider"),Z=ee("react.context"),Q=ee("react.forward_ref"),B=ee("react.suspense"),R=ee("react.suspense_list"),X=ee("react.memo"),$=ee("react.lazy"),ie=ee("react.block"),ee("react.scope"),le=ee("react.opaque.id"),V=ee("react.debug_trace_mode"),z=ee("react.offscreen"),J=ee("react.legacy_hidden")}var he=typeof Symbol=="function"&&Symbol.iterator;function te(p){return p===null||typeof p!="object"?null:(p=he&&p[he]||p["@@iterator"],typeof p=="function"?p:null)}var G;function re(p){if(G===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);G=r&&r[1]||""}return`
`+G+p}var He=!1;function Ge(p,r){if(!p||He)return"";He=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(q){var f=q}Reflect.construct(p,[],r)}else{try{r.call()}catch(q){f=q}p.call(r.prototype)}else{try{throw Error()}catch(q){f=q}p()}}catch(q){if(q&&f&&typeof q.stack=="string"){for(var w=q.stack.split(`
`),S=f.stack.split(`
`),D=w.length-1,O=S.length-1;1<=D&&0<=O&&w[D]!==S[O];)O--;for(;1<=D&&0<=O;D--,O--)if(w[D]!==S[O]){if(D!==1||O!==1)do if(D--,O--,0>O||w[D]!==S[O])return`
`+w[D].replace(" at new "," at ");while(1<=D&&0<=O);break}}}finally{He=!1,Error.prepareStackTrace=a}return(p=p?p.displayName||p.name:"")?re(p):""}function Ut(p){switch(p.tag){case 5:return re(p.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 2:case 15:return p=Ge(p.type,!1),p;case 11:return p=Ge(p.type.render,!1),p;case 22:return p=Ge(p.type._render,!1),p;case 1:return p=Ge(p.type,!0),p;default:return""}}function ht(p){if(p==null)return null;if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case F:return"Fragment";case T:return"Portal";case W:return"Profiler";case H:return"StrictMode";case B:return"Suspense";case R:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case Z:return(p.displayName||"Context")+".Consumer";case K:return(p._context.displayName||"Context")+".Provider";case Q:var r=p.render;return r=r.displayName||r.name||"",p.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case X:return ht(p.type);case ie:return ht(p._render);case $:r=p._payload,p=p._init;try{return ht(p(r))}catch{}}return null}function Le(p){switch(typeof p){case"boolean":case"number":case"object":case"string":case"undefined":return p;default:return""}}function Me(p){var r=p.type;return(p=p.nodeName)&&p.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function qe(p){var r=Me(p)?"checked":"value",a=Object.getOwnPropertyDescriptor(p.constructor.prototype,r),f=""+p[r];if(!p.hasOwnProperty(r)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var w=a.get,S=a.set;return Object.defineProperty(p,r,{configurable:!0,get:function(){return w.call(this)},set:function(D){f=""+D,S.call(this,D)}}),Object.defineProperty(p,r,{enumerable:a.enumerable}),{getValue:function(){return f},setValue:function(D){f=""+D},stopTracking:function(){p._valueTracker=null,delete p[r]}}}}function Ct(p){p._valueTracker||(p._valueTracker=qe(p))}function Pt(p){if(!p)return!1;var r=p._valueTracker;if(!r)return!0;var a=r.getValue(),f="";return p&&(f=Me(p)?p.checked?"true":"false":p.value),p=f,p!==a?(r.setValue(p),!0):!1}function Mt(p){if(p=p||(typeof document<"u"?document:void 0),typeof p>"u")return null;try{return p.activeElement||p.body}catch{return p.body}}function Wt(p,r){var a=r.checked;return o({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??p._wrapperState.initialChecked})}function Xt(p,r){var a=r.defaultValue==null?"":r.defaultValue,f=r.checked!=null?r.checked:r.defaultChecked;a=Le(r.value!=null?r.value:a),p._wrapperState={initialChecked:f,initialValue:a,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function wo(p,r){r=r.checked,r!=null&&A(p,"checked",r,!1)}function an(p,r){wo(p,r);var a=Le(r.value),f=r.type;if(a!=null)f==="number"?(a===0&&p.value===""||p.value!=a)&&(p.value=""+a):p.value!==""+a&&(p.value=""+a);else if(f==="submit"||f==="reset"){p.removeAttribute("value");return}r.hasOwnProperty("value")?Hn(p,r.type,a):r.hasOwnProperty("defaultValue")&&Hn(p,r.type,Le(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(p.defaultChecked=!!r.defaultChecked)}function fs(p,r,a){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var f=r.type;if(!(f!=="submit"&&f!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+p._wrapperState.initialValue,a||r===p.value||(p.value=r),p.defaultValue=r}a=p.name,a!==""&&(p.name=""),p.defaultChecked=!!p._wrapperState.initialChecked,a!==""&&(p.name=a)}function Hn(p,r,a){(r!=="number"||Mt(p.ownerDocument)!==p)&&(a==null?p.defaultValue=""+p._wrapperState.initialValue:p.defaultValue!==""+a&&(p.defaultValue=""+a))}function Mi(p){var r="";return s.Children.forEach(p,function(a){a!=null&&(r+=a)}),r}function rr(p,r){return p=o({children:void 0},r),(r=Mi(r.children))&&(p.children=r),p}function Ft(p,r,a,f){if(p=p.options,r){r={};for(var w=0;w<a.length;w++)r["$"+a[w]]=!0;for(a=0;a<p.length;a++)w=r.hasOwnProperty("$"+p[a].value),p[a].selected!==w&&(p[a].selected=w),w&&f&&(p[a].defaultSelected=!0)}else{for(a=""+Le(a),r=null,w=0;w<p.length;w++){if(p[w].value===a){p[w].selected=!0,f&&(p[w].defaultSelected=!0);return}r!==null||p[w].disabled||(r=p[w])}r!==null&&(r.selected=!0)}}function Vs(p,r){if(r.dangerouslySetInnerHTML!=null)throw Error(t(91));return o({},r,{value:void 0,defaultValue:void 0,children:""+p._wrapperState.initialValue})}function sr(p,r){var a=r.value;if(a==null){if(a=r.children,r=r.defaultValue,a!=null){if(r!=null)throw Error(t(92));if(Array.isArray(a)){if(!(1>=a.length))throw Error(t(93));a=a[0]}r=a}r==null&&(r=""),a=r}p._wrapperState={initialValue:Le(a)}}function Gs(p,r){var a=Le(r.value),f=Le(r.defaultValue);a!=null&&(a=""+a,a!==p.value&&(p.value=a),r.defaultValue==null&&p.defaultValue!==a&&(p.defaultValue=a)),f!=null&&(p.defaultValue=""+f)}function Rt(p){var r=p.textContent;r===p._wrapperState.initialValue&&r!==""&&r!==null&&(p.value=r)}var ge={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function se(p){switch(p){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ae(p,r){return p==null||p==="http://www.w3.org/1999/xhtml"?se(r):p==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":p}var gt,Bt=(function(p){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,a,f,w){MSApp.execUnsafeLocalFunction(function(){return p(r,a,f,w)})}:p})(function(p,r){if(p.namespaceURI!==ge.svg||"innerHTML"in p)p.innerHTML=r;else{for(gt=gt||document.createElement("div"),gt.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=gt.firstChild;p.firstChild;)p.removeChild(p.firstChild);for(;r.firstChild;)p.appendChild(r.firstChild)}});function or(p,r){if(r){var a=p.firstChild;if(a&&a===p.lastChild&&a.nodeType===3){a.nodeValue=r;return}}p.textContent=r}var gs={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sd=["Webkit","ms","Moz","O"];Object.keys(gs).forEach(function(p){Sd.forEach(function(r){r=r+p.charAt(0).toUpperCase()+p.substring(1),gs[r]=gs[p]})});function Go(p,r,a){return r==null||typeof r=="boolean"||r===""?"":a||typeof r!="number"||r===0||gs.hasOwnProperty(p)&&gs[p]?(""+r).trim():r+"px"}function ol(p,r){p=p.style;for(var a in r)if(r.hasOwnProperty(a)){var f=a.indexOf("--")===0,w=Go(a,r[a],f);a==="float"&&(a="cssFloat"),f?p.setProperty(a,w):p[a]=w}}var $o=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _s(p,r){if(r){if($o[p]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(t(137,p));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(t(60));if(!(typeof r.dangerouslySetInnerHTML=="object"&&"__html"in r.dangerouslySetInnerHTML))throw Error(t(61))}if(r.style!=null&&typeof r.style!="object")throw Error(t(62))}}function ji(p,r){if(p.indexOf("-")===-1)return typeof r.is=="string";switch(p){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function $s(p){return p=p.target||p.srcElement||window,p.correspondingUseElement&&(p=p.correspondingUseElement),p.nodeType===3?p.parentNode:p}var Ie=null,Ks=null,ns=null;function Er(p){if(p=Ml(p)){if(typeof Ie!="function")throw Error(t(280));var r=p.stateNode;r&&(r=Vd(r),Ie(p.stateNode,p.type,r))}}function pn(p){Ks?ns?ns.push(p):ns=[p]:Ks=p}function Qe(){if(Ks){var p=Ks,r=ns;if(ns=Ks=null,Er(p),r)for(p=0;p<r.length;p++)Er(r[p])}}function Ko(p,r){return p(r)}function _t(p,r,a,f,w){return p(r,a,f,w)}function ys(){}var Cd=Ko,_r=!1,ln=!1;function ir(){(Ks!==null||ns!==null)&&(ys(),Qe())}function Dr(p,r,a){if(ln)return p(r,a);ln=!0;try{return Cd(p,r,a)}finally{ln=!1,ir()}}function Vt(p,r){var a=p.stateNode;if(a===null)return null;var f=Vd(a);if(f===null)return null;a=f[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(p=p.type,f=!(p==="button"||p==="input"||p==="select"||p==="textarea")),p=!f;break e;default:p=!1}if(p)return null;if(a&&typeof a!="function")throw Error(t(231,r,typeof a));return a}var ar=!1;if(h)try{var lr={};Object.defineProperty(lr,"passive",{get:function(){ar=!0}}),window.addEventListener("test",lr,lr),window.removeEventListener("test",lr,lr)}catch{ar=!1}function ws(p,r,a,f,w,S,D,O,q){var ae=Array.prototype.slice.call(arguments,3);try{r.apply(a,ae)}catch(Se){this.onError(Se)}}var qo=!1,oa=null,qs=!1,ia=null,aa={onError:function(p){qo=!0,oa=p}};function Js(p,r,a,f,w,S,D,O,q){qo=!1,oa=null,ws.apply(aa,arguments)}function Jo(p,r,a,f,w,S,D,O,q){if(Js.apply(this,arguments),qo){if(qo){var ae=oa;qo=!1,oa=null}else throw Error(t(198));qs||(qs=!0,ia=ae)}}function rs(p){var r=p,a=p;if(p.alternate)for(;r.return;)r=r.return;else{p=r;do r=p,(r.flags&1026)!==0&&(a=r.return),p=r.return;while(p)}return r.tag===3?a:null}function il(p){if(p.tag===13){var r=p.memoizedState;if(r===null&&(p=p.alternate,p!==null&&(r=p.memoizedState)),r!==null)return r.dehydrated}return null}function kd(p){if(rs(p)!==p)throw Error(t(188))}function al(p){var r=p.alternate;if(!r){if(r=rs(p),r===null)throw Error(t(188));return r!==p?null:p}for(var a=p,f=r;;){var w=a.return;if(w===null)break;var S=w.alternate;if(S===null){if(f=w.return,f!==null){a=f;continue}break}if(w.child===S.child){for(S=w.child;S;){if(S===a)return kd(w),p;if(S===f)return kd(w),r;S=S.sibling}throw Error(t(188))}if(a.return!==f.return)a=w,f=S;else{for(var D=!1,O=w.child;O;){if(O===a){D=!0,a=w,f=S;break}if(O===f){D=!0,f=w,a=S;break}O=O.sibling}if(!D){for(O=S.child;O;){if(O===a){D=!0,a=S,f=w;break}if(O===f){D=!0,f=S,a=w;break}O=O.sibling}if(!D)throw Error(t(189))}}if(a.alternate!==f)throw Error(t(190))}if(a.tag!==3)throw Error(t(188));return a.stateNode.current===a?p:r}function Qt(p){if(p=al(p),!p)return null;for(var r=p;;){if(r.tag===5||r.tag===6)return r;if(r.child)r.child.return=r,r=r.child;else{if(r===p)break;for(;!r.sibling;){if(!r.return||r.return===p)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}}return null}function Li(p,r){for(var a=p.alternate;r!==null;){if(r===p||r===a)return!0;r=r.return}return!1}var la,da,ll,dl,cl=!1,Ir=[],Zs=null,Xs=null,lt=null,Nt=new Map,jt=new Map,vn=[],Tr="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ei(p,r,a,f,w){return{blockedOn:p,domEventName:r,eventSystemFlags:a|16,nativeEvent:w,targetContainers:[f]}}function ul(p,r){switch(p){case"focusin":case"focusout":Zs=null;break;case"dragenter":case"dragleave":Xs=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":Nt.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":jt.delete(r.pointerId)}}function Di(p,r,a,f,w,S){return p===null||p.nativeEvent!==S?(p=Ei(r,a,f,w,S),r!==null&&(r=Ml(r),r!==null&&da(r)),p):(p.eventSystemFlags|=f,r=p.targetContainers,w!==null&&r.indexOf(w)===-1&&r.push(w),p)}function Zo(p,r,a,f,w){switch(r){case"focusin":return Zs=Di(Zs,p,r,a,f,w),!0;case"dragenter":return Xs=Di(Xs,p,r,a,f,w),!0;case"mouseover":return lt=Di(lt,p,r,a,f,w),!0;case"pointerover":var S=w.pointerId;return Nt.set(S,Di(Nt.get(S)||null,p,r,a,f,w)),!0;case"gotpointercapture":return S=w.pointerId,jt.set(S,Di(jt.get(S)||null,p,r,a,f,w)),!0}return!1}function Md(p){var r=Pi(p.target);if(r!==null){var a=rs(r);if(a!==null){if(r=a.tag,r===13){if(r=il(a),r!==null){p.blockedOn=r,dl(p.lanePriority,function(){n.unstable_runWithPriority(p.priority,function(){ll(a)})});return}}else if(r===3&&a.stateNode.hydrate){p.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}p.blockedOn=null}function pl(p){if(p.blockedOn!==null)return!1;for(var r=p.targetContainers;0<r.length;){var a=Jt(p.domEventName,p.eventSystemFlags,r[0],p.nativeEvent);if(a!==null)return r=Ml(a),r!==null&&da(r),p.blockedOn=a,!1;r.shift()}return!0}function ca(p,r,a){pl(p)&&a.delete(r)}function vo(){for(cl=!1;0<Ir.length;){var p=Ir[0];if(p.blockedOn!==null){p=Ml(p.blockedOn),p!==null&&la(p);break}for(var r=p.targetContainers;0<r.length;){var a=Jt(p.domEventName,p.eventSystemFlags,r[0],p.nativeEvent);if(a!==null){p.blockedOn=a;break}r.shift()}p.blockedOn===null&&Ir.shift()}Zs!==null&&pl(Zs)&&(Zs=null),Xs!==null&&pl(Xs)&&(Xs=null),lt!==null&&pl(lt)&&(lt=null),Nt.forEach(ca),jt.forEach(ca)}function hl(p,r){p.blockedOn===r&&(p.blockedOn=null,cl||(cl=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,vo)))}function fh(p){function r(w){return hl(w,p)}if(0<Ir.length){hl(Ir[0],p);for(var a=1;a<Ir.length;a++){var f=Ir[a];f.blockedOn===p&&(f.blockedOn=null)}}for(Zs!==null&&hl(Zs,p),Xs!==null&&hl(Xs,p),lt!==null&&hl(lt,p),Nt.forEach(r),jt.forEach(r),a=0;a<vn.length;a++)f=vn[a],f.blockedOn===p&&(f.blockedOn=null);for(;0<vn.length&&(a=vn[0],a.blockedOn===null);)Md(a),a.blockedOn===null&&vn.shift()}function jd(p,r){var a={};return a[p.toLowerCase()]=r.toLowerCase(),a["Webkit"+p]="webkit"+r,a["Moz"+p]="moz"+r,a}var ua={animationend:jd("Animation","AnimationEnd"),animationiteration:jd("Animation","AnimationIteration"),animationstart:jd("Animation","AnimationStart"),transitionend:jd("Transition","TransitionEnd")},iu={},gh={};h&&(gh=document.createElement("div").style,"AnimationEvent"in window||(delete ua.animationend.animation,delete ua.animationiteration.animation,delete ua.animationstart.animation),"TransitionEvent"in window||delete ua.transitionend.transition);function Ld(p){if(iu[p])return iu[p];if(!ua[p])return p;var r=ua[p],a;for(a in r)if(r.hasOwnProperty(a)&&a in gh)return iu[p]=r[a];return p}var _h=Ld("animationend"),Ed=Ld("animationiteration"),yh=Ld("animationstart"),au=Ld("transitionend"),wh=new Map,lu=new Map,xg=["abort","abort",_h,"animationEnd",Ed,"animationIteration",yh,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",au,"transitionEnd","waiting","waiting"];function du(p,r){for(var a=0;a<p.length;a+=2){var f=p[a],w=p[a+1];w="on"+(w[0].toUpperCase()+w.slice(1)),lu.set(f,r),wh.set(f,w),c(w,[f])}}var bg=n.unstable_now;bg();var qt=8;function pa(p){if((1&p)!==0)return qt=15,1;if((2&p)!==0)return qt=14,2;if((4&p)!==0)return qt=13,4;var r=24&p;return r!==0?(qt=12,r):(p&32)!==0?(qt=11,32):(r=192&p,r!==0?(qt=10,r):(p&256)!==0?(qt=9,256):(r=3584&p,r!==0?(qt=8,r):(p&4096)!==0?(qt=7,4096):(r=4186112&p,r!==0?(qt=6,r):(r=62914560&p,r!==0?(qt=5,r):p&67108864?(qt=4,67108864):(p&134217728)!==0?(qt=3,134217728):(r=805306368&p,r!==0?(qt=2,r):(1073741824&p)!==0?(qt=1,1073741824):(qt=8,p))))))}function Sg(p){switch(p){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function Cg(p){switch(p){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(t(358,p))}}function ml(p,r){var a=p.pendingLanes;if(a===0)return qt=0;var f=0,w=0,S=p.expiredLanes,D=p.suspendedLanes,O=p.pingedLanes;if(S!==0)f=S,w=qt=15;else if(S=a&134217727,S!==0){var q=S&~D;q!==0?(f=pa(q),w=qt):(O&=S,O!==0&&(f=pa(O),w=qt))}else S=a&~D,S!==0?(f=pa(S),w=qt):O!==0&&(f=pa(O),w=qt);if(f===0)return 0;if(f=31-Qs(f),f=a&((0>f?0:1<<f)<<1)-1,r!==0&&r!==f&&(r&D)===0){if(pa(r),w<=qt)return r;qt=w}if(r=p.entangledLanes,r!==0)for(p=p.entanglements,r&=f;0<r;)a=31-Qs(r),w=1<<a,f|=p[a],r&=~w;return f}function vh(p){return p=p.pendingLanes&-1073741825,p!==0?p:p&1073741824?1073741824:0}function Dd(p,r){switch(p){case 15:return 1;case 14:return 2;case 12:return p=ha(24&~r),p===0?Dd(10,r):p;case 10:return p=ha(192&~r),p===0?Dd(8,r):p;case 8:return p=ha(3584&~r),p===0&&(p=ha(4186112&~r),p===0&&(p=512)),p;case 2:return r=ha(805306368&~r),r===0&&(r=268435456),r}throw Error(t(358,p))}function ha(p){return p&-p}function cu(p){for(var r=[],a=0;31>a;a++)r.push(p);return r}function Id(p,r,a){p.pendingLanes|=r;var f=r-1;p.suspendedLanes&=f,p.pingedLanes&=f,p=p.eventTimes,r=31-Qs(r),p[r]=a}var Qs=Math.clz32?Math.clz32:xh,uu=Math.log,kg=Math.LN2;function xh(p){return p===0?32:31-(uu(p)/kg|0)|0}var bh=n.unstable_UserBlockingPriority,Mg=n.unstable_runWithPriority,Td=!0;function jg(p,r,a,f){_r||ys();var w=Ad,S=_r;_r=!0;try{_t(w,p,r,a,f)}finally{(_r=S)||ir()}}function Lg(p,r,a,f){Mg(bh,Ad.bind(null,p,r,a,f))}function Ad(p,r,a,f){if(Td){var w;if((w=(r&4)===0)&&0<Ir.length&&-1<Tr.indexOf(p))p=Ei(null,p,r,a,f),Ir.push(p);else{var S=Jt(p,r,a,f);if(S===null)w&&ul(p,f);else{if(w){if(-1<Tr.indexOf(p)){p=Ei(S,p,r,a,f),Ir.push(p);return}if(Zo(S,p,r,a,f))return;ul(p,f)}$h(p,r,f,null,a)}}}}function Jt(p,r,a,f){var w=$s(f);if(w=Pi(w),w!==null){var S=rs(w);if(S===null)w=null;else{var D=S.tag;if(D===13){if(w=il(S),w!==null)return w;w=null}else if(D===3){if(S.stateNode.hydrate)return S.tag===3?S.stateNode.containerInfo:null;w=null}else S!==w&&(w=null)}}return $h(p,r,f,w,a),null}var ss=null,Ii=null,Pd=null;function pu(){if(Pd)return Pd;var p,r=Ii,a=r.length,f,w="value"in ss?ss.value:ss.textContent,S=w.length;for(p=0;p<a&&r[p]===w[p];p++);var D=a-p;for(f=1;f<=D&&r[a-f]===w[S-f];f++);return Pd=w.slice(p,1<f?1-f:void 0)}function Rd(p){var r=p.keyCode;return"charCode"in p?(p=p.charCode,p===0&&r===13&&(p=13)):p=r,p===10&&(p=13),32<=p||p===13?p:0}function Fd(){return!0}function fl(){return!1}function xn(p){function r(a,f,w,S,D){this._reactName=a,this._targetInst=w,this.type=f,this.nativeEvent=S,this.target=D,this.currentTarget=null;for(var O in p)p.hasOwnProperty(O)&&(a=p[O],this[O]=a?a(S):S[O]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?Fd:fl,this.isPropagationStopped=fl,this}return o(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Fd)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Fd)},persist:function(){},isPersistent:Fd}),r}var Xo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(p){return p.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hu=xn(Xo),Ar=o({},Xo,{view:0,detail:0}),Eg=xn(Ar),gl,mu,_l,Nd=o({},Ar,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wl,button:0,buttons:0,relatedTarget:function(p){return p.relatedTarget===void 0?p.fromElement===p.srcElement?p.toElement:p.fromElement:p.relatedTarget},movementX:function(p){return"movementX"in p?p.movementX:(p!==_l&&(_l&&p.type==="mousemove"?(gl=p.screenX-_l.screenX,mu=p.screenY-_l.screenY):mu=gl=0,_l=p),gl)},movementY:function(p){return"movementY"in p?p.movementY:mu}}),yl=xn(Nd),fu=o({},Nd,{dataTransfer:0}),Dg=xn(fu),Ig=o({},Ar,{relatedTarget:0}),gu=xn(Ig),Sh=o({},Xo,{animationName:0,elapsedTime:0,pseudoElement:0}),Tg=xn(Sh),Ag=o({},Xo,{clipboardData:function(p){return"clipboardData"in p?p.clipboardData:window.clipboardData}}),Pg=xn(Ag),Rg=o({},Xo,{data:0}),Ch=xn(Rg),kh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fg={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ma={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ng(p){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(p):(p=ma[p])?!!r[p]:!1}function wl(){return Ng}var Og=o({},Ar,{key:function(p){if(p.key){var r=kh[p.key]||p.key;if(r!=="Unidentified")return r}return p.type==="keypress"?(p=Rd(p),p===13?"Enter":String.fromCharCode(p)):p.type==="keydown"||p.type==="keyup"?Fg[p.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wl,charCode:function(p){return p.type==="keypress"?Rd(p):0},keyCode:function(p){return p.type==="keydown"||p.type==="keyup"?p.keyCode:0},which:function(p){return p.type==="keypress"?Rd(p):p.type==="keydown"||p.type==="keyup"?p.keyCode:0}}),_u=xn(Og),Yg=o({},Nd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mh=xn(Yg),Wg=o({},Ar,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wl}),Bg=xn(Wg),jh=o({},Xo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hg=xn(jh),Lh=o({},Nd,{deltaX:function(p){return"deltaX"in p?p.deltaX:"wheelDeltaX"in p?-p.wheelDeltaX:0},deltaY:function(p){return"deltaY"in p?p.deltaY:"wheelDeltaY"in p?-p.wheelDeltaY:"wheelDelta"in p?-p.wheelDelta:0},deltaZ:0,deltaMode:0}),en=xn(Lh),zg=[9,13,27,32],yu=h&&"CompositionEvent"in window,fa=null;h&&"documentMode"in document&&(fa=document.documentMode);var Ug=h&&"TextEvent"in window&&!fa,Eh=h&&(!yu||fa&&8<fa&&11>=fa),Dh=" ",ga=!1;function Ih(p,r){switch(p){case"keyup":return zg.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Th(p){return p=p.detail,typeof p=="object"&&"data"in p?p.data:null}var _a=!1;function Od(p,r){switch(p){case"compositionend":return Th(r);case"keypress":return r.which!==32?null:(ga=!0,Dh);case"textInput":return p=r.data,p===Dh&&ga?null:p;default:return null}}function Yd(p,r){if(_a)return p==="compositionend"||!yu&&Ih(p,r)?(p=pu(),Pd=Ii=ss=null,_a=!1,p):null;switch(p){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Eh&&r.locale!=="ko"?null:r.data;default:return null}}var wu={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ah(p){var r=p&&p.nodeName&&p.nodeName.toLowerCase();return r==="input"?!!wu[p.type]:r==="textarea"}function vu(p,r,a,f){pn(f),r=Wd(r,"onChange"),0<r.length&&(a=new hu("onChange","change",null,a,f),p.push({event:a,listeners:r}))}var vl=null,Ti=null;function xu(p){zh(p,0)}function ya(p){var r=xa(p);if(Pt(r))return p}function Vg(p,r){if(p==="change")return r}var Ph=!1;if(h){var bu;if(h){var Su="oninput"in document;if(!Su){var Rh=document.createElement("div");Rh.setAttribute("oninput","return;"),Su=typeof Rh.oninput=="function"}bu=Su}else bu=!1;Ph=bu&&(!document.documentMode||9<document.documentMode)}function Fh(){vl&&(vl.detachEvent("onpropertychange",Nh),Ti=vl=null)}function Nh(p){if(p.propertyName==="value"&&ya(Ti)){var r=[];if(vu(r,Ti,p,$s(p)),p=xu,_r)p(r);else{_r=!0;try{Ko(p,r)}finally{_r=!1,ir()}}}}function Gg(p,r,a){p==="focusin"?(Fh(),vl=r,Ti=a,vl.attachEvent("onpropertychange",Nh)):p==="focusout"&&Fh()}function $g(p){if(p==="selectionchange"||p==="keyup"||p==="keydown")return ya(Ti)}function Kg(p,r){if(p==="click")return ya(r)}function Oh(p,r){if(p==="input"||p==="change")return ya(r)}function qg(p,r){return p===r&&(p!==0||1/p===1/r)||p!==p&&r!==r}var os=typeof Object.is=="function"?Object.is:qg,vs=Object.prototype.hasOwnProperty;function xs(p,r){if(os(p,r))return!0;if(typeof p!="object"||p===null||typeof r!="object"||r===null)return!1;var a=Object.keys(p),f=Object.keys(r);if(a.length!==f.length)return!1;for(f=0;f<a.length;f++)if(!vs.call(r,a[f])||!os(p[a[f]],r[a[f]]))return!1;return!0}function Cu(p){for(;p&&p.firstChild;)p=p.firstChild;return p}function Yh(p,r){var a=Cu(p);p=0;for(var f;a;){if(a.nodeType===3){if(f=p+a.textContent.length,p<=r&&f>=r)return{node:a,offset:r-p};p=f}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Cu(a)}}function ku(p,r){return p&&r?p===r?!0:p&&p.nodeType===3?!1:r&&r.nodeType===3?ku(p,r.parentNode):"contains"in p?p.contains(r):p.compareDocumentPosition?!!(p.compareDocumentPosition(r)&16):!1:!1}function Mu(){for(var p=window,r=Mt();r instanceof p.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href=="string"}catch{a=!1}if(a)p=r.contentWindow;else break;r=Mt(p.document)}return r}function ju(p){var r=p&&p.nodeName&&p.nodeName.toLowerCase();return r&&(r==="input"&&(p.type==="text"||p.type==="search"||p.type==="tel"||p.type==="url"||p.type==="password")||r==="textarea"||p.contentEditable==="true")}var Jg=h&&"documentMode"in document&&11>=document.documentMode,Ai=null,Lu=null,xl=null,Eu=!1;function Wh(p,r,a){var f=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Eu||Ai==null||Ai!==Mt(f)||(f=Ai,"selectionStart"in f&&ju(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),xl&&xs(xl,f)||(xl=f,f=Wd(Lu,"onSelect"),0<f.length&&(r=new hu("onSelect","select",null,r,a),p.push({event:r,listeners:f}),r.target=Ai)))}du("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),du("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),du(xg,2);for(var Bh="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Du=0;Du<Bh.length;Du++)lu.set(Bh[Du],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Zg=new Set("cancel close invalid load scroll toggle".split(" ").concat(bl));function Hh(p,r,a){var f=p.type||"unknown-event";p.currentTarget=a,Jo(f,r,void 0,p),p.currentTarget=null}function zh(p,r){r=(r&4)!==0;for(var a=0;a<p.length;a++){var f=p[a],w=f.event;f=f.listeners;e:{var S=void 0;if(r)for(var D=f.length-1;0<=D;D--){var O=f[D],q=O.instance,ae=O.currentTarget;if(O=O.listener,q!==S&&w.isPropagationStopped())break e;Hh(w,O,ae),S=q}else for(D=0;D<f.length;D++){if(O=f[D],q=O.instance,ae=O.currentTarget,O=O.listener,q!==S&&w.isPropagationStopped())break e;Hh(w,O,ae),S=q}}}if(qs)throw p=ia,qs=!1,ia=null,p}function tn(p,r){var a=Zh(r),f=p+"__bubble";a.has(f)||(Sl(r,p,2,!1),a.add(f))}var Uh="_reactListening"+Math.random().toString(36).slice(2);function Vh(p){p[Uh]||(p[Uh]=!0,i.forEach(function(r){Zg.has(r)||Gh(r,!1,p,null),Gh(r,!0,p,null)}))}function Gh(p,r,a,f){var w=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,S=a;p==="selectionchange"&&a.nodeType!==9&&(S=a.ownerDocument);var D=Zh(S),O=p+"__"+(r?"capture":"bubble");D.has(O)||(r&&(w|=4),Sl(S,p,w,r),D.add(O))}function Sl(p,r,a,f){var w=lu.get(r);switch(w===void 0?2:w){case 0:w=jg;break;case 1:w=Lg;break;default:w=Ad}a=w.bind(null,r,a,p),w=void 0,!ar||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(w=!0),f?w!==void 0?p.addEventListener(r,a,{capture:!0,passive:w}):p.addEventListener(r,a,!0):w!==void 0?p.addEventListener(r,a,{passive:w}):p.addEventListener(r,a,!1)}function $h(p,r,a,f,w){var S=f;if((r&1)===0&&(r&2)===0&&f!==null)e:for(;;){if(f===null)return;var D=f.tag;if(D===3||D===4){var O=f.stateNode.containerInfo;if(O===w||O.nodeType===8&&O.parentNode===w)break;if(D===4)for(D=f.return;D!==null;){var q=D.tag;if((q===3||q===4)&&(q=D.stateNode.containerInfo,q===w||q.nodeType===8&&q.parentNode===w))return;D=D.return}for(;O!==null;){if(D=Pi(O),D===null)return;if(q=D.tag,q===5||q===6){f=S=D;continue e}O=O.parentNode}}f=f.return}Dr(function(){var ae=S,Se=$s(a),ze=[];e:{var xe=wh.get(p);if(xe!==void 0){var Pe=hu,tt=p;switch(p){case"keypress":if(Rd(a)===0)break e;case"keydown":case"keyup":Pe=_u;break;case"focusin":tt="focus",Pe=gu;break;case"focusout":tt="blur",Pe=gu;break;case"beforeblur":case"afterblur":Pe=gu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Pe=yl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Pe=Dg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Pe=Bg;break;case _h:case Ed:case yh:Pe=Tg;break;case au:Pe=Hg;break;case"scroll":Pe=Eg;break;case"wheel":Pe=en;break;case"copy":case"cut":case"paste":Pe=Pg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Pe=Mh}var Xe=(r&4)!==0,pe=!Xe&&p==="scroll",oe=Xe?xe!==null?xe+"Capture":null:xe;Xe=[];for(var ue=ae,ve;ue!==null;){ve=ue;var be=ve.stateNode;if(ve.tag===5&&be!==null&&(ve=be,oe!==null&&(be=Vt(ue,oe),be!=null&&Xe.push(Cl(ue,be,ve)))),pe)break;ue=ue.return}0<Xe.length&&(xe=new Pe(xe,tt,null,a,Se),ze.push({event:xe,listeners:Xe}))}}if((r&7)===0){e:{if(xe=p==="mouseover"||p==="pointerover",Pe=p==="mouseout"||p==="pointerout",xe&&(r&16)===0&&(tt=a.relatedTarget||a.fromElement)&&(Pi(tt)||tt[va]))break e;if((Pe||xe)&&(xe=Se.window===Se?Se:(xe=Se.ownerDocument)?xe.defaultView||xe.parentWindow:window,Pe?(tt=a.relatedTarget||a.toElement,Pe=ae,tt=tt?Pi(tt):null,tt!==null&&(pe=rs(tt),tt!==pe||tt.tag!==5&&tt.tag!==6)&&(tt=null)):(Pe=null,tt=ae),Pe!==tt)){if(Xe=yl,be="onMouseLeave",oe="onMouseEnter",ue="mouse",(p==="pointerout"||p==="pointerover")&&(Xe=Mh,be="onPointerLeave",oe="onPointerEnter",ue="pointer"),pe=Pe==null?xe:xa(Pe),ve=tt==null?xe:xa(tt),xe=new Xe(be,ue+"leave",Pe,a,Se),xe.target=pe,xe.relatedTarget=ve,be=null,Pi(Se)===ae&&(Xe=new Xe(oe,ue+"enter",tt,a,Se),Xe.target=ve,Xe.relatedTarget=pe,be=Xe),pe=be,Pe&&tt)t:{for(Xe=Pe,oe=tt,ue=0,ve=Xe;ve;ve=wa(ve))ue++;for(ve=0,be=oe;be;be=wa(be))ve++;for(;0<ue-ve;)Xe=wa(Xe),ue--;for(;0<ve-ue;)oe=wa(oe),ve--;for(;ue--;){if(Xe===oe||oe!==null&&Xe===oe.alternate)break t;Xe=wa(Xe),oe=wa(oe)}Xe=null}else Xe=null;Pe!==null&&Kh(ze,xe,Pe,Xe,!1),tt!==null&&pe!==null&&Kh(ze,pe,tt,Xe,!0)}}e:{if(xe=ae?xa(ae):window,Pe=xe.nodeName&&xe.nodeName.toLowerCase(),Pe==="select"||Pe==="input"&&xe.type==="file")var st=Vg;else if(Ah(xe))if(Ph)st=Oh;else{st=$g;var We=Gg}else(Pe=xe.nodeName)&&Pe.toLowerCase()==="input"&&(xe.type==="checkbox"||xe.type==="radio")&&(st=Kg);if(st&&(st=st(p,ae))){vu(ze,st,a,Se);break e}We&&We(p,xe,ae),p==="focusout"&&(We=xe._wrapperState)&&We.controlled&&xe.type==="number"&&Hn(xe,"number",xe.value)}switch(We=ae?xa(ae):window,p){case"focusin":(Ah(We)||We.contentEditable==="true")&&(Ai=We,Lu=ae,xl=null);break;case"focusout":xl=Lu=Ai=null;break;case"mousedown":Eu=!0;break;case"contextmenu":case"mouseup":case"dragend":Eu=!1,Wh(ze,a,Se);break;case"selectionchange":if(Jg)break;case"keydown":case"keyup":Wh(ze,a,Se)}var ot;if(yu)e:{switch(p){case"compositionstart":var mt="onCompositionStart";break e;case"compositionend":mt="onCompositionEnd";break e;case"compositionupdate":mt="onCompositionUpdate";break e}mt=void 0}else _a?Ih(p,a)&&(mt="onCompositionEnd"):p==="keydown"&&a.keyCode===229&&(mt="onCompositionStart");mt&&(Eh&&a.locale!=="ko"&&(_a||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&_a&&(ot=pu()):(ss=Se,Ii="value"in ss?ss.value:ss.textContent,_a=!0)),We=Wd(ae,mt),0<We.length&&(mt=new Ch(mt,p,null,a,Se),ze.push({event:mt,listeners:We}),ot?mt.data=ot:(ot=Th(a),ot!==null&&(mt.data=ot)))),(ot=Ug?Od(p,a):Yd(p,a))&&(ae=Wd(ae,"onBeforeInput"),0<ae.length&&(Se=new Ch("onBeforeInput","beforeinput",null,a,Se),ze.push({event:Se,listeners:ae}),Se.data=ot))}zh(ze,r)})}function Cl(p,r,a){return{instance:p,listener:r,currentTarget:a}}function Wd(p,r){for(var a=r+"Capture",f=[];p!==null;){var w=p,S=w.stateNode;w.tag===5&&S!==null&&(w=S,S=Vt(p,a),S!=null&&f.unshift(Cl(p,S,w)),S=Vt(p,r),S!=null&&f.push(Cl(p,S,w))),p=p.return}return f}function wa(p){if(p===null)return null;do p=p.return;while(p&&p.tag!==5);return p||null}function Kh(p,r,a,f,w){for(var S=r._reactName,D=[];a!==null&&a!==f;){var O=a,q=O.alternate,ae=O.stateNode;if(q!==null&&q===f)break;O.tag===5&&ae!==null&&(O=ae,w?(q=Vt(a,S),q!=null&&D.unshift(Cl(a,q,O))):w||(q=Vt(a,S),q!=null&&D.push(Cl(a,q,O)))),a=a.return}D.length!==0&&p.push({event:r,listeners:D})}function Bd(){}var Iu=null,Tu=null;function Au(p,r){switch(p){case"button":case"input":case"select":case"textarea":return!!r.autoFocus}return!1}function Hd(p,r){return p==="textarea"||p==="option"||p==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Pu=typeof setTimeout=="function"?setTimeout:void 0,zd=typeof clearTimeout=="function"?clearTimeout:void 0;function Qo(p){p.nodeType===1?p.textContent="":p.nodeType===9&&(p=p.body,p!=null&&(p.textContent=""))}function xo(p){for(;p!=null;p=p.nextSibling){var r=p.nodeType;if(r===1||r===3)break}return p}function Ru(p){p=p.previousSibling;for(var r=0;p;){if(p.nodeType===8){var a=p.data;if(a==="$"||a==="$!"||a==="$?"){if(r===0)return p;r--}else a==="/$"&&r++}p=p.previousSibling}return null}var ei=0;function qh(p){return{$$typeof:le,toString:p,valueOf:p}}var kl=Math.random().toString(36).slice(2),ti="__reactFiber$"+kl,Ud="__reactProps$"+kl,va="__reactContainer$"+kl,Jh="__reactEvents$"+kl;function Pi(p){var r=p[ti];if(r)return r;for(var a=p.parentNode;a;){if(r=a[va]||a[ti]){if(a=r.alternate,r.child!==null||a!==null&&a.child!==null)for(p=Ru(p);p!==null;){if(a=p[ti])return a;p=Ru(p)}return r}p=a,a=p.parentNode}return null}function Ml(p){return p=p[ti]||p[va],!p||p.tag!==5&&p.tag!==6&&p.tag!==13&&p.tag!==3?null:p}function xa(p){if(p.tag===5||p.tag===6)return p.stateNode;throw Error(t(33))}function Vd(p){return p[Ud]||null}function Zh(p){var r=p[Jh];return r===void 0&&(r=p[Jh]=new Set),r}var Fu=[],ba=-1;function ni(p){return{current:p}}function nn(p){0>ba||(p.current=Fu[ba],Fu[ba]=null,ba--)}function dn(p,r){ba++,Fu[ba]=p.current,p.current=r}var ri={},zn=ni(ri),yr=ni(!1),Ri=ri;function Sa(p,r){var a=p.type.contextTypes;if(!a)return ri;var f=p.stateNode;if(f&&f.__reactInternalMemoizedUnmaskedChildContext===r)return f.__reactInternalMemoizedMaskedChildContext;var w={},S;for(S in a)w[S]=r[S];return f&&(p=p.stateNode,p.__reactInternalMemoizedUnmaskedChildContext=r,p.__reactInternalMemoizedMaskedChildContext=w),w}function wr(p){return p=p.childContextTypes,p!=null}function Gd(){nn(yr),nn(zn)}function Xh(p,r,a){if(zn.current!==ri)throw Error(t(168));dn(zn,r),dn(yr,a)}function $d(p,r,a){var f=p.stateNode;if(p=r.childContextTypes,typeof f.getChildContext!="function")return a;f=f.getChildContext();for(var w in f)if(!(w in p))throw Error(t(108,ht(r)||"Unknown",w));return o({},a,f)}function Kd(p){return p=(p=p.stateNode)&&p.__reactInternalMemoizedMergedChildContext||ri,Ri=zn.current,dn(zn,p),dn(yr,yr.current),!0}function Qh(p,r,a){var f=p.stateNode;if(!f)throw Error(t(169));a?(p=$d(p,r,Ri),f.__reactInternalMemoizedMergedChildContext=p,nn(yr),nn(zn),dn(zn,p)):nn(yr),dn(yr,a)}var Nu=null,bo=null,qd=n.unstable_runWithPriority,Ou=n.unstable_scheduleCallback,Yu=n.unstable_cancelCallback,Xg=n.unstable_shouldYield,em=n.unstable_requestPaint,Wu=n.unstable_now,Qg=n.unstable_getCurrentPriorityLevel,jl=n.unstable_ImmediatePriority,tm=n.unstable_UserBlockingPriority,nm=n.unstable_NormalPriority,Bu=n.unstable_LowPriority,rm=n.unstable_IdlePriority,Hu={},e_=em!==void 0?em:function(){},Un=null,Ll=null,zu=!1,sm=Wu(),Vn=1e4>sm?Wu:function(){return Wu()-sm};function Ce(){switch(Qg()){case jl:return 99;case tm:return 98;case nm:return 97;case Bu:return 96;case rm:return 95;default:throw Error(t(332))}}function om(p){switch(p){case 99:return jl;case 98:return tm;case 97:return nm;case 96:return Bu;case 95:return rm;default:throw Error(t(332))}}function Fi(p,r){return p=om(p),qd(p,r)}function Ca(p,r,a){return p=om(p),Ou(p,r,a)}function dt(){if(Ll!==null){var p=Ll;Ll=null,Yu(p)}El()}function El(){if(!zu&&Un!==null){zu=!0;var p=0;try{var r=Un;Fi(99,function(){for(;p<r.length;p++){var a=r[p];do a=a(!0);while(a!==null)}}),Un=null}catch(a){throw Un!==null&&(Un=Un.slice(p+1)),Ou(jl,dt),a}finally{zu=!1}}}var im=Y.ReactCurrentBatchConfig;function Pr(p,r){if(p&&p.defaultProps){r=o({},r),p=p.defaultProps;for(var a in p)r[a]===void 0&&(r[a]=p[a]);return r}return r}var Jd=ni(null),Zd=null,ka=null,Xd=null;function Uu(){Xd=ka=Zd=null}function bs(p){var r=Jd.current;nn(Jd),p.type._context._currentValue=r}function am(p,r){for(;p!==null;){var a=p.alternate;if((p.childLanes&r)===r){if(a===null||(a.childLanes&r)===r)break;a.childLanes|=r}else p.childLanes|=r,a!==null&&(a.childLanes|=r);p=p.return}}function Ni(p,r){Zd=p,Xd=ka=null,p=p.dependencies,p!==null&&p.firstContext!==null&&((p.lanes&r)!==0&&(Nr=!0),p.firstContext=null)}function is(p,r){if(Xd!==p&&r!==!1&&r!==0)if((typeof r!="number"||r===1073741823)&&(Xd=p,r=1073741823),r={context:p,observedBits:r,next:null},ka===null){if(Zd===null)throw Error(t(308));ka=r,Zd.dependencies={lanes:0,firstContext:r,responders:null}}else ka=ka.next=r;return p._currentValue}var si=!1;function Qd(p){p.updateQueue={baseState:p.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function lm(p,r){p=p.updateQueue,r.updateQueue===p&&(r.updateQueue={baseState:p.baseState,firstBaseUpdate:p.firstBaseUpdate,lastBaseUpdate:p.lastBaseUpdate,shared:p.shared,effects:p.effects})}function So(p,r){return{eventTime:p,lane:r,tag:0,payload:null,callback:null,next:null}}function eo(p,r){if(p=p.updateQueue,p!==null){p=p.shared;var a=p.pending;a===null?r.next=r:(r.next=a.next,a.next=r),p.pending=r}}function dm(p,r){var a=p.updateQueue,f=p.alternate;if(f!==null&&(f=f.updateQueue,a===f)){var w=null,S=null;if(a=a.firstBaseUpdate,a!==null){do{var D={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};S===null?w=S=D:S=S.next=D,a=a.next}while(a!==null);S===null?w=S=r:S=S.next=r}else w=S=r;a={baseState:f.baseState,firstBaseUpdate:w,lastBaseUpdate:S,shared:f.shared,effects:f.effects},p.updateQueue=a;return}p=a.lastBaseUpdate,p===null?a.firstBaseUpdate=r:p.next=r,a.lastBaseUpdate=r}function Rr(p,r,a,f){var w=p.updateQueue;si=!1;var S=w.firstBaseUpdate,D=w.lastBaseUpdate,O=w.shared.pending;if(O!==null){w.shared.pending=null;var q=O,ae=q.next;q.next=null,D===null?S=ae:D.next=ae,D=q;var Se=p.alternate;if(Se!==null){Se=Se.updateQueue;var ze=Se.lastBaseUpdate;ze!==D&&(ze===null?Se.firstBaseUpdate=ae:ze.next=ae,Se.lastBaseUpdate=q)}}if(S!==null){ze=w.baseState,D=0,Se=ae=q=null;do{O=S.lane;var xe=S.eventTime;if((f&O)===O){Se!==null&&(Se=Se.next={eventTime:xe,lane:0,tag:S.tag,payload:S.payload,callback:S.callback,next:null});e:{var Pe=p,tt=S;switch(O=r,xe=a,tt.tag){case 1:if(Pe=tt.payload,typeof Pe=="function"){ze=Pe.call(xe,ze,O);break e}ze=Pe;break e;case 3:Pe.flags=Pe.flags&-4097|64;case 0:if(Pe=tt.payload,O=typeof Pe=="function"?Pe.call(xe,ze,O):Pe,O==null)break e;ze=o({},ze,O);break e;case 2:si=!0}}S.callback!==null&&(p.flags|=32,O=w.effects,O===null?w.effects=[S]:O.push(S))}else xe={eventTime:xe,lane:O,tag:S.tag,payload:S.payload,callback:S.callback,next:null},Se===null?(ae=Se=xe,q=ze):Se=Se.next=xe,D|=O;if(S=S.next,S===null){if(O=w.shared.pending,O===null)break;S=O.next,O.next=null,w.lastBaseUpdate=O,w.shared.pending=null}}while(!0);Se===null&&(q=ze),w.baseState=q,w.firstBaseUpdate=ae,w.lastBaseUpdate=Se,$n|=D,p.lanes=D,p.memoizedState=ze}}function Vu(p,r,a){if(p=r.effects,r.effects=null,p!==null)for(r=0;r<p.length;r++){var f=p[r],w=f.callback;if(w!==null){if(f.callback=null,f=a,typeof w!="function")throw Error(t(191,w));w.call(f)}}}var cm=new s.Component().refs;function ec(p,r,a,f){r=p.memoizedState,a=a(f,r),a=a==null?r:o({},r,a),p.memoizedState=a,p.lanes===0&&(p.updateQueue.baseState=a)}var tc={isMounted:function(p){return(p=p._reactInternals)?rs(p)===p:!1},enqueueSetState:function(p,r,a){p=p._reactInternals;var f=En(),w=Eo(p),S=So(f,w);S.payload=r,a!=null&&(S.callback=a),eo(p,S),Do(p,w,f)},enqueueReplaceState:function(p,r,a){p=p._reactInternals;var f=En(),w=Eo(p),S=So(f,w);S.tag=1,S.payload=r,a!=null&&(S.callback=a),eo(p,S),Do(p,w,f)},enqueueForceUpdate:function(p,r){p=p._reactInternals;var a=En(),f=Eo(p),w=So(a,f);w.tag=2,r!=null&&(w.callback=r),eo(p,w),Do(p,f,a)}};function um(p,r,a,f,w,S,D){return p=p.stateNode,typeof p.shouldComponentUpdate=="function"?p.shouldComponentUpdate(f,S,D):r.prototype&&r.prototype.isPureReactComponent?!xs(a,f)||!xs(w,S):!0}function pm(p,r,a){var f=!1,w=ri,S=r.contextType;return typeof S=="object"&&S!==null?S=is(S):(w=wr(r)?Ri:zn.current,f=r.contextTypes,S=(f=f!=null)?Sa(p,w):ri),r=new r(a,S),p.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=tc,p.stateNode=r,r._reactInternals=p,f&&(p=p.stateNode,p.__reactInternalMemoizedUnmaskedChildContext=w,p.__reactInternalMemoizedMaskedChildContext=S),r}function hm(p,r,a,f){p=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(a,f),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(a,f),r.state!==p&&tc.enqueueReplaceState(r,r.state,null)}function Gu(p,r,a,f){var w=p.stateNode;w.props=a,w.state=p.memoizedState,w.refs=cm,Qd(p);var S=r.contextType;typeof S=="object"&&S!==null?w.context=is(S):(S=wr(r)?Ri:zn.current,w.context=Sa(p,S)),Rr(p,a,w,f),w.state=p.memoizedState,S=r.getDerivedStateFromProps,typeof S=="function"&&(ec(p,r,S,a),w.state=p.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(r=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),r!==w.state&&tc.enqueueReplaceState(w,w.state,null),Rr(p,a,w,f),w.state=p.memoizedState),typeof w.componentDidMount=="function"&&(p.flags|=4)}var nc=Array.isArray;function Dl(p,r,a){if(p=a.ref,p!==null&&typeof p!="function"&&typeof p!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(t(309));var f=a.stateNode}if(!f)throw Error(t(147,p));var w=""+p;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===w?r.ref:(r=function(S){var D=f.refs;D===cm&&(D=f.refs={}),S===null?delete D[w]:D[w]=S},r._stringRef=w,r)}if(typeof p!="string")throw Error(t(284));if(!a._owner)throw Error(t(290,p))}return p}function rc(p,r){if(p.type!=="textarea")throw Error(t(31,Object.prototype.toString.call(r)==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":r))}function mm(p){function r(pe,oe){if(p){var ue=pe.lastEffect;ue!==null?(ue.nextEffect=oe,pe.lastEffect=oe):pe.firstEffect=pe.lastEffect=oe,oe.nextEffect=null,oe.flags=8}}function a(pe,oe){if(!p)return null;for(;oe!==null;)r(pe,oe),oe=oe.sibling;return null}function f(pe,oe){for(pe=new Map;oe!==null;)oe.key!==null?pe.set(oe.key,oe):pe.set(oe.index,oe),oe=oe.sibling;return pe}function w(pe,oe){return pe=hi(pe,oe),pe.index=0,pe.sibling=null,pe}function S(pe,oe,ue){return pe.index=ue,p?(ue=pe.alternate,ue!==null?(ue=ue.index,ue<oe?(pe.flags=2,oe):ue):(pe.flags=2,oe)):oe}function D(pe){return p&&pe.alternate===null&&(pe.flags=2),pe}function O(pe,oe,ue,ve){return oe===null||oe.tag!==6?(oe=hr(ue,pe.mode,ve),oe.return=pe,oe):(oe=w(oe,ue),oe.return=pe,oe)}function q(pe,oe,ue,ve){return oe!==null&&oe.elementType===ue.type?(ve=w(oe,ue.props),ve.ref=Dl(pe,oe,ue),ve.return=pe,ve):(ve=Po(ue.type,ue.key,ue.props,null,pe.mode,ve),ve.ref=Dl(pe,oe,ue),ve.return=pe,ve)}function ae(pe,oe,ue,ve){return oe===null||oe.tag!==4||oe.stateNode.containerInfo!==ue.containerInfo||oe.stateNode.implementation!==ue.implementation?(oe=mr(ue,pe.mode,ve),oe.return=pe,oe):(oe=w(oe,ue.children||[]),oe.return=pe,oe)}function Se(pe,oe,ue,ve,be){return oe===null||oe.tag!==7?(oe=Fn(ue,pe.mode,ve,be),oe.return=pe,oe):(oe=w(oe,ue),oe.return=pe,oe)}function ze(pe,oe,ue){if(typeof oe=="string"||typeof oe=="number")return oe=hr(""+oe,pe.mode,ue),oe.return=pe,oe;if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case P:return ue=Po(oe.type,oe.key,oe.props,null,pe.mode,ue),ue.ref=Dl(pe,null,oe),ue.return=pe,ue;case T:return oe=mr(oe,pe.mode,ue),oe.return=pe,oe}if(nc(oe)||te(oe))return oe=Fn(oe,pe.mode,ue,null),oe.return=pe,oe;rc(pe,oe)}return null}function xe(pe,oe,ue,ve){var be=oe!==null?oe.key:null;if(typeof ue=="string"||typeof ue=="number")return be!==null?null:O(pe,oe,""+ue,ve);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case P:return ue.key===be?ue.type===F?Se(pe,oe,ue.props.children,ve,be):q(pe,oe,ue,ve):null;case T:return ue.key===be?ae(pe,oe,ue,ve):null}if(nc(ue)||te(ue))return be!==null?null:Se(pe,oe,ue,ve,null);rc(pe,ue)}return null}function Pe(pe,oe,ue,ve,be){if(typeof ve=="string"||typeof ve=="number")return pe=pe.get(ue)||null,O(oe,pe,""+ve,be);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case P:return pe=pe.get(ve.key===null?ue:ve.key)||null,ve.type===F?Se(oe,pe,ve.props.children,be,ve.key):q(oe,pe,ve,be);case T:return pe=pe.get(ve.key===null?ue:ve.key)||null,ae(oe,pe,ve,be)}if(nc(ve)||te(ve))return pe=pe.get(ue)||null,Se(oe,pe,ve,be,null);rc(oe,ve)}return null}function tt(pe,oe,ue,ve){for(var be=null,st=null,We=oe,ot=oe=0,mt=null;We!==null&&ot<ue.length;ot++){We.index>ot?(mt=We,We=null):mt=We.sibling;var ct=xe(pe,We,ue[ot],ve);if(ct===null){We===null&&(We=mt);break}p&&We&&ct.alternate===null&&r(pe,We),oe=S(ct,oe,ot),st===null?be=ct:st.sibling=ct,st=ct,We=mt}if(ot===ue.length)return a(pe,We),be;if(We===null){for(;ot<ue.length;ot++)We=ze(pe,ue[ot],ve),We!==null&&(oe=S(We,oe,ot),st===null?be=We:st.sibling=We,st=We);return be}for(We=f(pe,We);ot<ue.length;ot++)mt=Pe(We,pe,ot,ue[ot],ve),mt!==null&&(p&&mt.alternate!==null&&We.delete(mt.key===null?ot:mt.key),oe=S(mt,oe,ot),st===null?be=mt:st.sibling=mt,st=mt);return p&&We.forEach(function(Fa){return r(pe,Fa)}),be}function Xe(pe,oe,ue,ve){var be=te(ue);if(typeof be!="function")throw Error(t(150));if(ue=be.call(ue),ue==null)throw Error(t(151));for(var st=be=null,We=oe,ot=oe=0,mt=null,ct=ue.next();We!==null&&!ct.done;ot++,ct=ue.next()){We.index>ot?(mt=We,We=null):mt=We.sibling;var Fa=xe(pe,We,ct.value,ve);if(Fa===null){We===null&&(We=mt);break}p&&We&&Fa.alternate===null&&r(pe,We),oe=S(Fa,oe,ot),st===null?be=Fa:st.sibling=Fa,st=Fa,We=mt}if(ct.done)return a(pe,We),be;if(We===null){for(;!ct.done;ot++,ct=ue.next())ct=ze(pe,ct.value,ve),ct!==null&&(oe=S(ct,oe,ot),st===null?be=ct:st.sibling=ct,st=ct);return be}for(We=f(pe,We);!ct.done;ot++,ct=ue.next())ct=Pe(We,pe,ot,ct.value,ve),ct!==null&&(p&&ct.alternate!==null&&We.delete(ct.key===null?ot:ct.key),oe=S(ct,oe,ot),st===null?be=ct:st.sibling=ct,st=ct);return p&&We.forEach(function(hS){return r(pe,hS)}),be}return function(pe,oe,ue,ve){var be=typeof ue=="object"&&ue!==null&&ue.type===F&&ue.key===null;be&&(ue=ue.props.children);var st=typeof ue=="object"&&ue!==null;if(st)switch(ue.$$typeof){case P:e:{for(st=ue.key,be=oe;be!==null;){if(be.key===st){switch(be.tag){case 7:if(ue.type===F){a(pe,be.sibling),oe=w(be,ue.props.children),oe.return=pe,pe=oe;break e}break;default:if(be.elementType===ue.type){a(pe,be.sibling),oe=w(be,ue.props),oe.ref=Dl(pe,be,ue),oe.return=pe,pe=oe;break e}}a(pe,be);break}else r(pe,be);be=be.sibling}ue.type===F?(oe=Fn(ue.props.children,pe.mode,ve,ue.key),oe.return=pe,pe=oe):(ve=Po(ue.type,ue.key,ue.props,null,pe.mode,ve),ve.ref=Dl(pe,oe,ue),ve.return=pe,pe=ve)}return D(pe);case T:e:{for(be=ue.key;oe!==null;){if(oe.key===be)if(oe.tag===4&&oe.stateNode.containerInfo===ue.containerInfo&&oe.stateNode.implementation===ue.implementation){a(pe,oe.sibling),oe=w(oe,ue.children||[]),oe.return=pe,pe=oe;break e}else{a(pe,oe);break}else r(pe,oe);oe=oe.sibling}oe=mr(ue,pe.mode,ve),oe.return=pe,pe=oe}return D(pe)}if(typeof ue=="string"||typeof ue=="number")return ue=""+ue,oe!==null&&oe.tag===6?(a(pe,oe.sibling),oe=w(oe,ue),oe.return=pe,pe=oe):(a(pe,oe),oe=hr(ue,pe.mode,ve),oe.return=pe,pe=oe),D(pe);if(nc(ue))return tt(pe,oe,ue,ve);if(te(ue))return Xe(pe,oe,ue,ve);if(st&&rc(pe,ue),typeof ue>"u"&&!be)switch(pe.tag){case 1:case 22:case 0:case 11:case 15:throw Error(t(152,ht(pe.type)||"Component"))}return a(pe,oe)}}var to=mm(!0),fm=mm(!1),Il={},no=ni(Il),Tl=ni(Il),Al=ni(Il);function Oi(p){if(p===Il)throw Error(t(174));return p}function $u(p,r){switch(dn(Al,r),dn(Tl,p),dn(no,Il),p=r.nodeType,p){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:Ae(null,"");break;default:p=p===8?r.parentNode:r,r=p.namespaceURI||null,p=p.tagName,r=Ae(r,p)}nn(no),dn(no,r)}function Ma(){nn(no),nn(Tl),nn(Al)}function ro(p){Oi(Al.current);var r=Oi(no.current),a=Ae(r,p.type);r!==a&&(dn(Tl,p),dn(no,a))}function oi(p){Tl.current===p&&(nn(no),nn(Tl))}var cn=ni(0);function sc(p){for(var r=p;r!==null;){if(r.tag===13){var a=r.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&64)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===p)break;for(;r.sibling===null;){if(r.return===null||r.return===p)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Co=null,ii=null,so=!1;function oc(p,r){var a=Hr(5,null,null,0);a.elementType="DELETED",a.type="DELETED",a.stateNode=r,a.return=p,a.flags=8,p.lastEffect!==null?(p.lastEffect.nextEffect=a,p.lastEffect=a):p.firstEffect=p.lastEffect=a}function Yi(p,r){switch(p.tag){case 5:var a=p.type;return r=r.nodeType!==1||a.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(p.stateNode=r,!0):!1;case 6:return r=p.pendingProps===""||r.nodeType!==3?null:r,r!==null?(p.stateNode=r,!0):!1;case 13:return!1;default:return!1}}function ja(p){if(so){var r=ii;if(r){var a=r;if(!Yi(p,r)){if(r=xo(a.nextSibling),!r||!Yi(p,r)){p.flags=p.flags&-1025|2,so=!1,Co=p;return}oc(Co,a)}Co=p,ii=xo(r.firstChild)}else p.flags=p.flags&-1025|2,so=!1,Co=p}}function yt(p){for(p=p.return;p!==null&&p.tag!==5&&p.tag!==3&&p.tag!==13;)p=p.return;Co=p}function Pl(p){if(p!==Co)return!1;if(!so)return yt(p),so=!0,!1;var r=p.type;if(p.tag!==5||r!=="head"&&r!=="body"&&!Hd(r,p.memoizedProps))for(r=ii;r;)oc(p,r),r=xo(r.nextSibling);if(yt(p),p.tag===13){if(p=p.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(t(317));e:{for(p=p.nextSibling,r=0;p;){if(p.nodeType===8){var a=p.data;if(a==="/$"){if(r===0){ii=xo(p.nextSibling);break e}r--}else a!=="$"&&a!=="$!"&&a!=="$?"||r++}p=p.nextSibling}ii=null}}else ii=Co?xo(p.stateNode.nextSibling):null;return!0}function Ku(){ii=Co=null,so=!1}var Tn=[];function ic(){for(var p=0;p<Tn.length;p++)Tn[p]._workInProgressVersionPrimary=null;Tn.length=0}var Rl=Y.ReactCurrentDispatcher,Fr=Y.ReactCurrentBatchConfig,Fl=0,Dt=null,An=null,Pn=null,Nl=!1,Ol=!1;function vr(){throw Error(t(321))}function qu(p,r){if(r===null)return!1;for(var a=0;a<r.length&&a<p.length;a++)if(!os(p[a],r[a]))return!1;return!0}function Ju(p,r,a,f,w,S){if(Fl=S,Dt=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,Rl.current=p===null||p.memoizedState===null?n_:Hi,p=a(f,w),Ol){S=0;do{if(Ol=!1,!(25>S))throw Error(t(301));S+=1,Pn=An=null,r.updateQueue=null,Rl.current=r_,p=a(f,w)}while(Ol)}if(Rl.current=Hl,r=An!==null&&An.next!==null,Fl=0,Pn=An=Dt=null,Nl=!1,r)throw Error(t(300));return p}function ai(){var p={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pn===null?Dt.memoizedState=Pn=p:Pn=Pn.next=p,Pn}function Wi(){if(An===null){var p=Dt.alternate;p=p!==null?p.memoizedState:null}else p=An.next;var r=Pn===null?Dt.memoizedState:Pn.next;if(r!==null)Pn=r,An=p;else{if(p===null)throw Error(t(310));An=p,p={memoizedState:An.memoizedState,baseState:An.baseState,baseQueue:An.baseQueue,queue:An.queue,next:null},Pn===null?Dt.memoizedState=Pn=p:Pn=Pn.next=p}return Pn}function hn(p,r){return typeof r=="function"?r(p):r}function La(p){var r=Wi(),a=r.queue;if(a===null)throw Error(t(311));a.lastRenderedReducer=p;var f=An,w=f.baseQueue,S=a.pending;if(S!==null){if(w!==null){var D=w.next;w.next=S.next,S.next=D}f.baseQueue=w=S,a.pending=null}if(w!==null){w=w.next,f=f.baseState;var O=D=S=null,q=w;do{var ae=q.lane;if((Fl&ae)===ae)O!==null&&(O=O.next={lane:0,action:q.action,eagerReducer:q.eagerReducer,eagerState:q.eagerState,next:null}),f=q.eagerReducer===p?q.eagerState:p(f,q.action);else{var Se={lane:ae,action:q.action,eagerReducer:q.eagerReducer,eagerState:q.eagerState,next:null};O===null?(D=O=Se,S=f):O=O.next=Se,Dt.lanes|=ae,$n|=ae}q=q.next}while(q!==null&&q!==w);O===null?S=f:O.next=D,os(f,r.memoizedState)||(Nr=!0),r.memoizedState=f,r.baseState=S,r.baseQueue=O,a.lastRenderedState=f}return[r.memoizedState,a.dispatch]}function Bi(p){var r=Wi(),a=r.queue;if(a===null)throw Error(t(311));a.lastRenderedReducer=p;var f=a.dispatch,w=a.pending,S=r.memoizedState;if(w!==null){a.pending=null;var D=w=w.next;do S=p(S,D.action),D=D.next;while(D!==w);os(S,r.memoizedState)||(Nr=!0),r.memoizedState=S,r.baseQueue===null&&(r.baseState=S),a.lastRenderedState=S}return[S,f]}function gm(p,r,a){var f=r._getVersion;f=f(r._source);var w=r._workInProgressVersionPrimary;if(w!==null?p=w===f:(p=p.mutableReadLanes,(p=(Fl&p)===p)&&(r._workInProgressVersionPrimary=f,Tn.push(r))),p)return a(r._source);throw Tn.push(r),Error(t(350))}function li(p,r,a,f){var w=cr;if(w===null)throw Error(t(349));var S=r._getVersion,D=S(r._source),O=Rl.current,q=O.useState(function(){return gm(w,r,a)}),ae=q[1],Se=q[0];q=Pn;var ze=p.memoizedState,xe=ze.refs,Pe=xe.getSnapshot,tt=ze.source;ze=ze.subscribe;var Xe=Dt;return p.memoizedState={refs:xe,source:r,subscribe:f},O.useEffect(function(){xe.getSnapshot=a,xe.setSnapshot=ae;var pe=S(r._source);if(!os(D,pe)){pe=a(r._source),os(Se,pe)||(ae(pe),pe=Eo(Xe),w.mutableReadLanes|=pe&w.pendingLanes),pe=w.mutableReadLanes,w.entangledLanes|=pe;for(var oe=w.entanglements,ue=pe;0<ue;){var ve=31-Qs(ue),be=1<<ve;oe[ve]|=pe,ue&=~be}}},[a,r,f]),O.useEffect(function(){return f(r._source,function(){var pe=xe.getSnapshot,oe=xe.setSnapshot;try{oe(pe(r._source));var ue=Eo(Xe);w.mutableReadLanes|=ue&w.pendingLanes}catch(ve){oe(function(){throw ve})}})},[r,f]),os(Pe,a)&&os(tt,r)&&os(ze,f)||(p={pending:null,dispatch:null,lastRenderedReducer:hn,lastRenderedState:Se},p.dispatch=ae=Xu.bind(null,Dt,p),q.queue=p,q.baseQueue=null,Se=gm(w,r,a),q.memoizedState=q.baseState=Se),Se}function _m(p,r,a){var f=Wi();return li(f,p,r,a)}function Yl(p){var r=ai();return typeof p=="function"&&(p=p()),r.memoizedState=r.baseState=p,p=r.queue={pending:null,dispatch:null,lastRenderedReducer:hn,lastRenderedState:p},p=p.dispatch=Xu.bind(null,Dt,p),[r.memoizedState,p]}function ac(p,r,a,f){return p={tag:p,create:r,destroy:a,deps:f,next:null},r=Dt.updateQueue,r===null?(r={lastEffect:null},Dt.updateQueue=r,r.lastEffect=p.next=p):(a=r.lastEffect,a===null?r.lastEffect=p.next=p:(f=a.next,a.next=p,p.next=f,r.lastEffect=p)),p}function ym(p){var r=ai();return p={current:p},r.memoizedState=p}function lc(){return Wi().memoizedState}function Zu(p,r,a,f){var w=ai();Dt.flags|=p,w.memoizedState=ac(1|r,a,void 0,f===void 0?null:f)}function Wl(p,r,a,f){var w=Wi();f=f===void 0?null:f;var S=void 0;if(An!==null){var D=An.memoizedState;if(S=D.destroy,f!==null&&qu(f,D.deps)){ac(r,a,S,f);return}}Dt.flags|=p,w.memoizedState=ac(1|r,a,S,f)}function wm(p,r){return Zu(516,4,p,r)}function Bl(p,r){return Wl(516,4,p,r)}function vm(p,r){return Wl(4,2,p,r)}function xm(p,r){if(typeof r=="function")return p=p(),r(p),function(){r(null)};if(r!=null)return p=p(),r.current=p,function(){r.current=null}}function dc(p,r,a){return a=a!=null?a.concat([p]):null,Wl(4,2,xm.bind(null,r,p),a)}function cc(){}function bm(p,r){var a=Wi();r=r===void 0?null:r;var f=a.memoizedState;return f!==null&&r!==null&&qu(r,f[1])?f[0]:(a.memoizedState=[p,r],p)}function Sm(p,r){var a=Wi();r=r===void 0?null:r;var f=a.memoizedState;return f!==null&&r!==null&&qu(r,f[1])?f[0]:(p=p(),a.memoizedState=[p,r],p)}function t_(p,r){var a=Ce();Fi(98>a?98:a,function(){p(!0)}),Fi(97<a?97:a,function(){var f=Fr.transition;Fr.transition=1;try{p(!1),r()}finally{Fr.transition=f}})}function Xu(p,r,a){var f=En(),w=Eo(p),S={lane:w,action:a,eagerReducer:null,eagerState:null,next:null},D=r.pending;if(D===null?S.next=S:(S.next=D.next,D.next=S),r.pending=S,D=p.alternate,p===Dt||D!==null&&D===Dt)Ol=Nl=!0;else{if(p.lanes===0&&(D===null||D.lanes===0)&&(D=r.lastRenderedReducer,D!==null))try{var O=r.lastRenderedState,q=D(O,a);if(S.eagerReducer=D,S.eagerState=q,os(q,O))return}catch{}finally{}Do(p,w,f)}}var Hl={readContext:is,useCallback:vr,useContext:vr,useEffect:vr,useImperativeHandle:vr,useLayoutEffect:vr,useMemo:vr,useReducer:vr,useRef:vr,useState:vr,useDebugValue:vr,useDeferredValue:vr,useTransition:vr,useMutableSource:vr,useOpaqueIdentifier:vr,unstable_isNewReconciler:!1},n_={readContext:is,useCallback:function(p,r){return ai().memoizedState=[p,r===void 0?null:r],p},useContext:is,useEffect:wm,useImperativeHandle:function(p,r,a){return a=a!=null?a.concat([p]):null,Zu(4,2,xm.bind(null,r,p),a)},useLayoutEffect:function(p,r){return Zu(4,2,p,r)},useMemo:function(p,r){var a=ai();return r=r===void 0?null:r,p=p(),a.memoizedState=[p,r],p},useReducer:function(p,r,a){var f=ai();return r=a!==void 0?a(r):r,f.memoizedState=f.baseState=r,p=f.queue={pending:null,dispatch:null,lastRenderedReducer:p,lastRenderedState:r},p=p.dispatch=Xu.bind(null,Dt,p),[f.memoizedState,p]},useRef:ym,useState:Yl,useDebugValue:cc,useDeferredValue:function(p){var r=Yl(p),a=r[0],f=r[1];return wm(function(){var w=Fr.transition;Fr.transition=1;try{f(p)}finally{Fr.transition=w}},[p]),a},useTransition:function(){var p=Yl(!1),r=p[0];return p=t_.bind(null,p[1]),ym(p),[p,r]},useMutableSource:function(p,r,a){var f=ai();return f.memoizedState={refs:{getSnapshot:r,setSnapshot:null},source:p,subscribe:a},li(f,p,r,a)},useOpaqueIdentifier:function(){if(so){var p=!1,r=qh(function(){throw p||(p=!0,a("r:"+(ei++).toString(36))),Error(t(355))}),a=Yl(r)[1];return(Dt.mode&2)===0&&(Dt.flags|=516,ac(5,function(){a("r:"+(ei++).toString(36))},void 0,null)),r}return r="r:"+(ei++).toString(36),Yl(r),r},unstable_isNewReconciler:!1},Hi={readContext:is,useCallback:bm,useContext:is,useEffect:Bl,useImperativeHandle:dc,useLayoutEffect:vm,useMemo:Sm,useReducer:La,useRef:lc,useState:function(){return La(hn)},useDebugValue:cc,useDeferredValue:function(p){var r=La(hn),a=r[0],f=r[1];return Bl(function(){var w=Fr.transition;Fr.transition=1;try{f(p)}finally{Fr.transition=w}},[p]),a},useTransition:function(){var p=La(hn)[0];return[lc().current,p]},useMutableSource:_m,useOpaqueIdentifier:function(){return La(hn)[0]},unstable_isNewReconciler:!1},r_={readContext:is,useCallback:bm,useContext:is,useEffect:Bl,useImperativeHandle:dc,useLayoutEffect:vm,useMemo:Sm,useReducer:Bi,useRef:lc,useState:function(){return Bi(hn)},useDebugValue:cc,useDeferredValue:function(p){var r=Bi(hn),a=r[0],f=r[1];return Bl(function(){var w=Fr.transition;Fr.transition=1;try{f(p)}finally{Fr.transition=w}},[p]),a},useTransition:function(){var p=Bi(hn)[0];return[lc().current,p]},useMutableSource:_m,useOpaqueIdentifier:function(){return Bi(hn)[0]},unstable_isNewReconciler:!1},s_=Y.ReactCurrentOwner,Nr=!1;function dr(p,r,a,f){r.child=p===null?fm(r,null,a,f):to(r,p.child,a,f)}function zi(p,r,a,f,w){a=a.render;var S=r.ref;return Ni(r,w),f=Ju(p,r,a,f,S,w),p!==null&&!Nr?(r.updateQueue=p.updateQueue,r.flags&=-517,p.lanes&=~w,ko(p,r,w)):(r.flags|=1,dr(p,r,f,w),r.child)}function Or(p,r,a,f,w,S){if(p===null){var D=a.type;return typeof D=="function"&&!Kl(D)&&D.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(r.tag=15,r.type=D,oo(p,r,D,f,w,S)):(p=Po(a.type,null,f,r,r.mode,S),p.ref=r.ref,p.return=r,r.child=p)}return D=p.child,(w&S)===0&&(w=D.memoizedProps,a=a.compare,a=a!==null?a:xs,a(w,f)&&p.ref===r.ref)?ko(p,r,S):(r.flags|=1,p=hi(D,f),p.ref=r.ref,p.return=r,r.child=p)}function oo(p,r,a,f,w,S){if(p!==null&&xs(p.memoizedProps,f)&&p.ref===r.ref)if(Nr=!1,(S&w)!==0)(p.flags&16384)!==0&&(Nr=!0);else return r.lanes=p.lanes,ko(p,r,S);return uc(p,r,a,f,S)}function Ss(p,r,a){var f=r.pendingProps,w=f.children,S=p!==null?p.memoizedState:null;if(f.mode==="hidden"||f.mode==="unstable-defer-without-hiding")if((r.mode&4)===0)r.memoizedState={baseLanes:0},Cc(r,a);else if((a&1073741824)!==0)r.memoizedState={baseLanes:0},Cc(r,S!==null?S.baseLanes:a);else return p=S!==null?S.baseLanes|a:a,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:p},Cc(r,p),null;else S!==null?(f=S.baseLanes|a,r.memoizedState=null):f=a,Cc(r,f);return dr(p,r,w,a),r.child}function io(p,r){var a=r.ref;(p===null&&a!==null||p!==null&&p.ref!==a)&&(r.flags|=128)}function uc(p,r,a,f,w){var S=wr(a)?Ri:zn.current;return S=Sa(r,S),Ni(r,w),a=Ju(p,r,a,f,S,w),p!==null&&!Nr?(r.updateQueue=p.updateQueue,r.flags&=-517,p.lanes&=~w,ko(p,r,w)):(r.flags|=1,dr(p,r,a,w),r.child)}function Qu(p,r,a,f,w){if(wr(a)){var S=!0;Kd(r)}else S=!1;if(Ni(r,w),r.stateNode===null)p!==null&&(p.alternate=null,r.alternate=null,r.flags|=2),pm(r,a,f),Gu(r,a,f,w),f=!0;else if(p===null){var D=r.stateNode,O=r.memoizedProps;D.props=O;var q=D.context,ae=a.contextType;typeof ae=="object"&&ae!==null?ae=is(ae):(ae=wr(a)?Ri:zn.current,ae=Sa(r,ae));var Se=a.getDerivedStateFromProps,ze=typeof Se=="function"||typeof D.getSnapshotBeforeUpdate=="function";ze||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(O!==f||q!==ae)&&hm(r,D,f,ae),si=!1;var xe=r.memoizedState;D.state=xe,Rr(r,f,D,w),q=r.memoizedState,O!==f||xe!==q||yr.current||si?(typeof Se=="function"&&(ec(r,a,Se,f),q=r.memoizedState),(O=si||um(r,a,O,f,xe,q,ae))?(ze||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount()),typeof D.componentDidMount=="function"&&(r.flags|=4)):(typeof D.componentDidMount=="function"&&(r.flags|=4),r.memoizedProps=f,r.memoizedState=q),D.props=f,D.state=q,D.context=ae,f=O):(typeof D.componentDidMount=="function"&&(r.flags|=4),f=!1)}else{D=r.stateNode,lm(p,r),O=r.memoizedProps,ae=r.type===r.elementType?O:Pr(r.type,O),D.props=ae,ze=r.pendingProps,xe=D.context,q=a.contextType,typeof q=="object"&&q!==null?q=is(q):(q=wr(a)?Ri:zn.current,q=Sa(r,q));var Pe=a.getDerivedStateFromProps;(Se=typeof Pe=="function"||typeof D.getSnapshotBeforeUpdate=="function")||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(O!==ze||xe!==q)&&hm(r,D,f,q),si=!1,xe=r.memoizedState,D.state=xe,Rr(r,f,D,w);var tt=r.memoizedState;O!==ze||xe!==tt||yr.current||si?(typeof Pe=="function"&&(ec(r,a,Pe,f),tt=r.memoizedState),(ae=si||um(r,a,ae,f,xe,tt,q))?(Se||typeof D.UNSAFE_componentWillUpdate!="function"&&typeof D.componentWillUpdate!="function"||(typeof D.componentWillUpdate=="function"&&D.componentWillUpdate(f,tt,q),typeof D.UNSAFE_componentWillUpdate=="function"&&D.UNSAFE_componentWillUpdate(f,tt,q)),typeof D.componentDidUpdate=="function"&&(r.flags|=4),typeof D.getSnapshotBeforeUpdate=="function"&&(r.flags|=256)):(typeof D.componentDidUpdate!="function"||O===p.memoizedProps&&xe===p.memoizedState||(r.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||O===p.memoizedProps&&xe===p.memoizedState||(r.flags|=256),r.memoizedProps=f,r.memoizedState=tt),D.props=f,D.state=tt,D.context=q,f=ae):(typeof D.componentDidUpdate!="function"||O===p.memoizedProps&&xe===p.memoizedState||(r.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||O===p.memoizedProps&&xe===p.memoizedState||(r.flags|=256),f=!1)}return ep(p,r,a,f,S,w)}function ep(p,r,a,f,w,S){io(p,r);var D=(r.flags&64)!==0;if(!f&&!D)return w&&Qh(r,a,!1),ko(p,r,S);f=r.stateNode,s_.current=r;var O=D&&typeof a.getDerivedStateFromError!="function"?null:f.render();return r.flags|=1,p!==null&&D?(r.child=to(r,p.child,null,S),r.child=to(r,null,O,S)):dr(p,r,O,S),r.memoizedState=f.state,w&&Qh(r,a,!0),r.child}function tp(p){var r=p.stateNode;r.pendingContext?Xh(p,r.pendingContext,r.pendingContext!==r.context):r.context&&Xh(p,r.context,!1),$u(p,r.containerInfo)}var pc={dehydrated:null,retryLane:0};function hc(p,r,a){var f=r.pendingProps,w=cn.current,S=!1,D;return(D=(r.flags&64)!==0)||(D=p!==null&&p.memoizedState===null?!1:(w&2)!==0),D?(S=!0,r.flags&=-65):p!==null&&p.memoizedState===null||f.fallback===void 0||f.unstable_avoidThisFallback===!0||(w|=1),dn(cn,w&1),p===null?(f.fallback!==void 0&&ja(r),p=f.children,w=f.fallback,S?(p=np(r,p,w,a),r.child.memoizedState={baseLanes:a},r.memoizedState=pc,p):typeof f.unstable_expectedLoadTime=="number"?(p=np(r,p,w,a),r.child.memoizedState={baseLanes:a},r.memoizedState=pc,r.lanes=33554432,p):(a=Sr({mode:"visible",children:p},r.mode,a,null),a.return=r,r.child=a)):p.memoizedState!==null?S?(f=Cm(p,r,f.children,f.fallback,a),S=r.child,w=p.child.memoizedState,S.memoizedState=w===null?{baseLanes:a}:{baseLanes:w.baseLanes|a},S.childLanes=p.childLanes&~a,r.memoizedState=pc,f):(a=rp(p,r,f.children,a),r.memoizedState=null,a):S?(f=Cm(p,r,f.children,f.fallback,a),S=r.child,w=p.child.memoizedState,S.memoizedState=w===null?{baseLanes:a}:{baseLanes:w.baseLanes|a},S.childLanes=p.childLanes&~a,r.memoizedState=pc,f):(a=rp(p,r,f.children,a),r.memoizedState=null,a)}function np(p,r,a,f){var w=p.mode,S=p.child;return r={mode:"hidden",children:r},(w&2)===0&&S!==null?(S.childLanes=0,S.pendingProps=r):S=Sr(r,w,0,null),a=Fn(a,w,f,null),S.return=p,a.return=p,S.sibling=a,p.child=S,a}function rp(p,r,a,f){var w=p.child;return p=w.sibling,a=hi(w,{mode:"visible",children:a}),(r.mode&2)===0&&(a.lanes=f),a.return=r,a.sibling=null,p!==null&&(p.nextEffect=null,p.flags=8,r.firstEffect=r.lastEffect=p),r.child=a}function Cm(p,r,a,f,w){var S=r.mode,D=p.child;p=D.sibling;var O={mode:"hidden",children:a};return(S&2)===0&&r.child!==D?(a=r.child,a.childLanes=0,a.pendingProps=O,D=a.lastEffect,D!==null?(r.firstEffect=a.firstEffect,r.lastEffect=D,D.nextEffect=null):r.firstEffect=r.lastEffect=null):a=hi(D,O),p!==null?f=hi(p,f):(f=Fn(f,S,w,null),f.flags|=2),f.return=r,a.return=r,a.sibling=f,r.child=a,f}function mc(p,r){p.lanes|=r;var a=p.alternate;a!==null&&(a.lanes|=r),am(p.return,r)}function fc(p,r,a,f,w,S){var D=p.memoizedState;D===null?p.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:f,tail:a,tailMode:w,lastEffect:S}:(D.isBackwards=r,D.rendering=null,D.renderingStartTime=0,D.last=f,D.tail=a,D.tailMode=w,D.lastEffect=S)}function sp(p,r,a){var f=r.pendingProps,w=f.revealOrder,S=f.tail;if(dr(p,r,f.children,a),f=cn.current,(f&2)!==0)f=f&1|2,r.flags|=64;else{if(p!==null&&(p.flags&64)!==0)e:for(p=r.child;p!==null;){if(p.tag===13)p.memoizedState!==null&&mc(p,a);else if(p.tag===19)mc(p,a);else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===r)break e;for(;p.sibling===null;){if(p.return===null||p.return===r)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}f&=1}if(dn(cn,f),(r.mode&2)===0)r.memoizedState=null;else switch(w){case"forwards":for(a=r.child,w=null;a!==null;)p=a.alternate,p!==null&&sc(p)===null&&(w=a),a=a.sibling;a=w,a===null?(w=r.child,r.child=null):(w=a.sibling,a.sibling=null),fc(r,!1,w,a,S,r.lastEffect);break;case"backwards":for(a=null,w=r.child,r.child=null;w!==null;){if(p=w.alternate,p!==null&&sc(p)===null){r.child=w;break}p=w.sibling,w.sibling=a,a=w,w=p}fc(r,!0,a,null,S,r.lastEffect);break;case"together":fc(r,!1,null,null,void 0,r.lastEffect);break;default:r.memoizedState=null}return r.child}function ko(p,r,a){if(p!==null&&(r.dependencies=p.dependencies),$n|=r.lanes,(a&r.childLanes)!==0){if(p!==null&&r.child!==p.child)throw Error(t(153));if(r.child!==null){for(p=r.child,a=hi(p,p.pendingProps),r.child=a,a.return=r;p.sibling!==null;)p=p.sibling,a=a.sibling=hi(p,p.pendingProps),a.return=r;a.sibling=null}return r.child}return null}var gc,_c,op,km;gc=function(p,r){for(var a=r.child;a!==null;){if(a.tag===5||a.tag===6)p.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},_c=function(){},op=function(p,r,a,f){var w=p.memoizedProps;if(w!==f){p=r.stateNode,Oi(no.current);var S=null;switch(a){case"input":w=Wt(p,w),f=Wt(p,f),S=[];break;case"option":w=rr(p,w),f=rr(p,f),S=[];break;case"select":w=o({},w,{value:void 0}),f=o({},f,{value:void 0}),S=[];break;case"textarea":w=Vs(p,w),f=Vs(p,f),S=[];break;default:typeof w.onClick!="function"&&typeof f.onClick=="function"&&(p.onclick=Bd)}_s(a,f);var D;a=null;for(ae in w)if(!f.hasOwnProperty(ae)&&w.hasOwnProperty(ae)&&w[ae]!=null)if(ae==="style"){var O=w[ae];for(D in O)O.hasOwnProperty(D)&&(a||(a={}),a[D]="")}else ae!=="dangerouslySetInnerHTML"&&ae!=="children"&&ae!=="suppressContentEditableWarning"&&ae!=="suppressHydrationWarning"&&ae!=="autoFocus"&&(d.hasOwnProperty(ae)?S||(S=[]):(S=S||[]).push(ae,null));for(ae in f){var q=f[ae];if(O=w?.[ae],f.hasOwnProperty(ae)&&q!==O&&(q!=null||O!=null))if(ae==="style")if(O){for(D in O)!O.hasOwnProperty(D)||q&&q.hasOwnProperty(D)||(a||(a={}),a[D]="");for(D in q)q.hasOwnProperty(D)&&O[D]!==q[D]&&(a||(a={}),a[D]=q[D])}else a||(S||(S=[]),S.push(ae,a)),a=q;else ae==="dangerouslySetInnerHTML"?(q=q?q.__html:void 0,O=O?O.__html:void 0,q!=null&&O!==q&&(S=S||[]).push(ae,q)):ae==="children"?typeof q!="string"&&typeof q!="number"||(S=S||[]).push(ae,""+q):ae!=="suppressContentEditableWarning"&&ae!=="suppressHydrationWarning"&&(d.hasOwnProperty(ae)?(q!=null&&ae==="onScroll"&&tn("scroll",p),S||O===q||(S=[])):typeof q=="object"&&q!==null&&q.$$typeof===le?q.toString():(S=S||[]).push(ae,q))}a&&(S=S||[]).push("style",a);var ae=S;(r.updateQueue=ae)&&(r.flags|=4)}},km=function(p,r,a,f){a!==f&&(r.flags|=4)};function Ui(p,r){if(!so)switch(p.tailMode){case"hidden":r=p.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?p.tail=null:a.sibling=null;break;case"collapsed":a=p.tail;for(var f=null;a!==null;)a.alternate!==null&&(f=a),a=a.sibling;f===null?r||p.tail===null?p.tail=null:p.tail.sibling=null:f.sibling=null}}function Mm(p,r,a){var f=r.pendingProps;switch(r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return wr(r.type)&&Gd(),null;case 3:return Ma(),nn(yr),nn(zn),ic(),f=r.stateNode,f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(p===null||p.child===null)&&(Pl(r)?r.flags|=4:f.hydrate||(r.flags|=256)),_c(r),null;case 5:oi(r);var w=Oi(Al.current);if(a=r.type,p!==null&&r.stateNode!=null)op(p,r,a,f,w),p.ref!==r.ref&&(r.flags|=128);else{if(!f){if(r.stateNode===null)throw Error(t(166));return null}if(p=Oi(no.current),Pl(r)){f=r.stateNode,a=r.type;var S=r.memoizedProps;switch(f[ti]=r,f[Ud]=S,a){case"dialog":tn("cancel",f),tn("close",f);break;case"iframe":case"object":case"embed":tn("load",f);break;case"video":case"audio":for(p=0;p<bl.length;p++)tn(bl[p],f);break;case"source":tn("error",f);break;case"img":case"image":case"link":tn("error",f),tn("load",f);break;case"details":tn("toggle",f);break;case"input":Xt(f,S),tn("invalid",f);break;case"select":f._wrapperState={wasMultiple:!!S.multiple},tn("invalid",f);break;case"textarea":sr(f,S),tn("invalid",f)}_s(a,S),p=null;for(var D in S)S.hasOwnProperty(D)&&(w=S[D],D==="children"?typeof w=="string"?f.textContent!==w&&(p=["children",w]):typeof w=="number"&&f.textContent!==""+w&&(p=["children",""+w]):d.hasOwnProperty(D)&&w!=null&&D==="onScroll"&&tn("scroll",f));switch(a){case"input":Ct(f),fs(f,S,!0);break;case"textarea":Ct(f),Rt(f);break;case"select":case"option":break;default:typeof S.onClick=="function"&&(f.onclick=Bd)}f=p,r.updateQueue=f,f!==null&&(r.flags|=4)}else{switch(D=w.nodeType===9?w:w.ownerDocument,p===ge.html&&(p=se(a)),p===ge.html?a==="script"?(p=D.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild)):typeof f.is=="string"?p=D.createElement(a,{is:f.is}):(p=D.createElement(a),a==="select"&&(D=p,f.multiple?D.multiple=!0:f.size&&(D.size=f.size))):p=D.createElementNS(p,a),p[ti]=r,p[Ud]=f,gc(p,r,!1,!1),r.stateNode=p,D=ji(a,f),a){case"dialog":tn("cancel",p),tn("close",p),w=f;break;case"iframe":case"object":case"embed":tn("load",p),w=f;break;case"video":case"audio":for(w=0;w<bl.length;w++)tn(bl[w],p);w=f;break;case"source":tn("error",p),w=f;break;case"img":case"image":case"link":tn("error",p),tn("load",p),w=f;break;case"details":tn("toggle",p),w=f;break;case"input":Xt(p,f),w=Wt(p,f),tn("invalid",p);break;case"option":w=rr(p,f);break;case"select":p._wrapperState={wasMultiple:!!f.multiple},w=o({},f,{value:void 0}),tn("invalid",p);break;case"textarea":sr(p,f),w=Vs(p,f),tn("invalid",p);break;default:w=f}_s(a,w);var O=w;for(S in O)if(O.hasOwnProperty(S)){var q=O[S];S==="style"?ol(p,q):S==="dangerouslySetInnerHTML"?(q=q?q.__html:void 0,q!=null&&Bt(p,q)):S==="children"?typeof q=="string"?(a!=="textarea"||q!=="")&&or(p,q):typeof q=="number"&&or(p,""+q):S!=="suppressContentEditableWarning"&&S!=="suppressHydrationWarning"&&S!=="autoFocus"&&(d.hasOwnProperty(S)?q!=null&&S==="onScroll"&&tn("scroll",p):q!=null&&A(p,S,q,D))}switch(a){case"input":Ct(p),fs(p,f,!1);break;case"textarea":Ct(p),Rt(p);break;case"option":f.value!=null&&p.setAttribute("value",""+Le(f.value));break;case"select":p.multiple=!!f.multiple,S=f.value,S!=null?Ft(p,!!f.multiple,S,!1):f.defaultValue!=null&&Ft(p,!!f.multiple,f.defaultValue,!0);break;default:typeof w.onClick=="function"&&(p.onclick=Bd)}Au(a,f)&&(r.flags|=4)}r.ref!==null&&(r.flags|=128)}return null;case 6:if(p&&r.stateNode!=null)km(p,r,p.memoizedProps,f);else{if(typeof f!="string"&&r.stateNode===null)throw Error(t(166));a=Oi(Al.current),Oi(no.current),Pl(r)?(f=r.stateNode,a=r.memoizedProps,f[ti]=r,f.nodeValue!==a&&(r.flags|=4)):(f=(a.nodeType===9?a:a.ownerDocument).createTextNode(f),f[ti]=r,r.stateNode=f)}return null;case 13:return nn(cn),f=r.memoizedState,(r.flags&64)!==0?(r.lanes=a,r):(f=f!==null,a=!1,p===null?r.memoizedProps.fallback!==void 0&&Pl(r):a=p.memoizedState!==null,f&&!a&&(r.mode&2)!==0&&(p===null&&r.memoizedProps.unstable_avoidThisFallback!==!0||(cn.current&1)!==0?Rn===0&&(Rn=3):((Rn===0||Rn===3)&&(Rn=4),cr===null||($n&134217727)===0&&(Gi&134217727)===0||ur(cr,Gn))),(f||a)&&(r.flags|=4),null);case 4:return Ma(),_c(r),p===null&&Vh(r.stateNode.containerInfo),null;case 10:return bs(r),null;case 17:return wr(r.type)&&Gd(),null;case 19:if(nn(cn),f=r.memoizedState,f===null)return null;if(S=(r.flags&64)!==0,D=f.rendering,D===null)if(S)Ui(f,!1);else{if(Rn!==0||p!==null&&(p.flags&64)!==0)for(p=r.child;p!==null;){if(D=sc(p),D!==null){for(r.flags|=64,Ui(f,!1),S=D.updateQueue,S!==null&&(r.updateQueue=S,r.flags|=4),f.lastEffect===null&&(r.firstEffect=null),r.lastEffect=f.lastEffect,f=a,a=r.child;a!==null;)S=a,p=f,S.flags&=2,S.nextEffect=null,S.firstEffect=null,S.lastEffect=null,D=S.alternate,D===null?(S.childLanes=0,S.lanes=p,S.child=null,S.memoizedProps=null,S.memoizedState=null,S.updateQueue=null,S.dependencies=null,S.stateNode=null):(S.childLanes=D.childLanes,S.lanes=D.lanes,S.child=D.child,S.memoizedProps=D.memoizedProps,S.memoizedState=D.memoizedState,S.updateQueue=D.updateQueue,S.type=D.type,p=D.dependencies,S.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext}),a=a.sibling;return dn(cn,cn.current&1|2),r.child}p=p.sibling}f.tail!==null&&Vn()>pp&&(r.flags|=64,S=!0,Ui(f,!1),r.lanes=33554432)}else{if(!S)if(p=sc(D),p!==null){if(r.flags|=64,S=!0,a=p.updateQueue,a!==null&&(r.updateQueue=a,r.flags|=4),Ui(f,!0),f.tail===null&&f.tailMode==="hidden"&&!D.alternate&&!so)return r=r.lastEffect=f.lastEffect,r!==null&&(r.nextEffect=null),null}else 2*Vn()-f.renderingStartTime>pp&&a!==1073741824&&(r.flags|=64,S=!0,Ui(f,!1),r.lanes=33554432);f.isBackwards?(D.sibling=r.child,r.child=D):(a=f.last,a!==null?a.sibling=D:r.child=D,f.last=D)}return f.tail!==null?(a=f.tail,f.rendering=a,f.tail=a.sibling,f.lastEffect=r.lastEffect,f.renderingStartTime=Vn(),a.sibling=null,r=cn.current,dn(cn,S?r&1|2:r&1),a):null;case 23:case 24:return hp(),p!==null&&p.memoizedState!==null!=(r.memoizedState!==null)&&f.mode!=="unstable-defer-without-hiding"&&(r.flags|=4),null}throw Error(t(156,r.tag))}function Cs(p){switch(p.tag){case 1:wr(p.type)&&Gd();var r=p.flags;return r&4096?(p.flags=r&-4097|64,p):null;case 3:if(Ma(),nn(yr),nn(zn),ic(),r=p.flags,(r&64)!==0)throw Error(t(285));return p.flags=r&-4097|64,p;case 5:return oi(p),null;case 13:return nn(cn),r=p.flags,r&4096?(p.flags=r&-4097|64,p):null;case 19:return nn(cn),null;case 4:return Ma(),null;case 10:return bs(p),null;case 23:case 24:return hp(),null;default:return null}}function ip(p,r){try{var a="",f=r;do a+=Ut(f),f=f.return;while(f);var w=a}catch(S){w=`
Error generating stack: `+S.message+`
`+S.stack}return{value:p,source:r,stack:w}}function ap(p,r){try{console.error(r.value)}catch(a){setTimeout(function(){throw a})}}var yc=typeof WeakMap=="function"?WeakMap:Map;function jm(p,r,a){a=So(-1,a),a.tag=3,a.payload={element:null};var f=r.value;return a.callback=function(){bc||(bc=!0,Kn=f),ap(p,r)},a}function Yr(p,r,a){a=So(-1,a),a.tag=3;var f=p.type.getDerivedStateFromError;if(typeof f=="function"){var w=r.value;a.payload=function(){return ap(p,r),f(w)}}var S=p.stateNode;return S!==null&&typeof S.componentDidCatch=="function"&&(a.callback=function(){typeof f!="function"&&(ao===null?ao=new Set([this]):ao.add(this),ap(p,r));var D=r.stack;this.componentDidCatch(r.value,{componentStack:D!==null?D:""})}),a}var o_=typeof WeakSet=="function"?WeakSet:Set;function Lm(p){var r=p.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(a){pr(p,a)}else r.current=null}function i_(p,r){switch(r.tag){case 0:case 11:case 15:case 22:return;case 1:if(r.flags&256&&p!==null){var a=p.memoizedProps,f=p.memoizedState;p=r.stateNode,r=p.getSnapshotBeforeUpdate(r.elementType===r.type?a:Pr(r.type,a),f),p.__reactInternalSnapshotBeforeUpdate=r}return;case 3:r.flags&256&&Qo(r.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(t(163))}function Em(p,r,a){switch(a.tag){case 0:case 11:case 15:case 22:if(r=a.updateQueue,r=r!==null?r.lastEffect:null,r!==null){p=r=r.next;do{if((p.tag&3)===3){var f=p.create;p.destroy=f()}p=p.next}while(p!==r)}if(r=a.updateQueue,r=r!==null?r.lastEffect:null,r!==null){p=r=r.next;do{var w=p;f=w.next,w=w.tag,(w&4)!==0&&(w&1)!==0&&(Hm(a,p),Bm(a,p)),p=f}while(p!==r)}return;case 1:p=a.stateNode,a.flags&4&&(r===null?p.componentDidMount():(f=a.elementType===a.type?r.memoizedProps:Pr(a.type,r.memoizedProps),p.componentDidUpdate(f,r.memoizedState,p.__reactInternalSnapshotBeforeUpdate))),r=a.updateQueue,r!==null&&Vu(a,r,p);return;case 3:if(r=a.updateQueue,r!==null){if(p=null,a.child!==null)switch(a.child.tag){case 5:p=a.child.stateNode;break;case 1:p=a.child.stateNode}Vu(a,r,p)}return;case 5:p=a.stateNode,r===null&&a.flags&4&&Au(a.type,a.memoizedProps)&&p.focus();return;case 6:return;case 4:return;case 12:return;case 13:a.memoizedState===null&&(a=a.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&fh(a))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(t(163))}function wc(p,r){for(var a=p;;){if(a.tag===5){var f=a.stateNode;if(r)f=f.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{f=a.stateNode;var w=a.memoizedProps.style;w=w!=null&&w.hasOwnProperty("display")?w.display:null,f.style.display=Go("display",w)}}else if(a.tag===6)a.stateNode.nodeValue=r?"":a.memoizedProps;else if((a.tag!==23&&a.tag!==24||a.memoizedState===null||a===p)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===p)break;for(;a.sibling===null;){if(a.return===null||a.return===p)return;a=a.return}a.sibling.return=a.return,a=a.sibling}}function lp(p,r){if(bo&&typeof bo.onCommitFiberUnmount=="function")try{bo.onCommitFiberUnmount(Nu,r)}catch{}switch(r.tag){case 0:case 11:case 14:case 15:case 22:if(p=r.updateQueue,p!==null&&(p=p.lastEffect,p!==null)){var a=p=p.next;do{var f=a,w=f.destroy;if(f=f.tag,w!==void 0)if((f&4)!==0)Hm(r,a);else{f=r;try{w()}catch(S){pr(f,S)}}a=a.next}while(a!==p)}break;case 1:if(Lm(r),p=r.stateNode,typeof p.componentWillUnmount=="function")try{p.props=r.memoizedProps,p.state=r.memoizedState,p.componentWillUnmount()}catch(S){pr(r,S)}break;case 5:Lm(r);break;case 4:Am(p,r)}}function Dm(p){p.alternate=null,p.child=null,p.dependencies=null,p.firstEffect=null,p.lastEffect=null,p.memoizedProps=null,p.memoizedState=null,p.pendingProps=null,p.return=null,p.updateQueue=null}function Im(p){return p.tag===5||p.tag===3||p.tag===4}function Tm(p){e:{for(var r=p.return;r!==null;){if(Im(r))break e;r=r.return}throw Error(t(160))}var a=r;switch(r=a.stateNode,a.tag){case 5:var f=!1;break;case 3:r=r.containerInfo,f=!0;break;case 4:r=r.containerInfo,f=!0;break;default:throw Error(t(161))}a.flags&16&&(or(r,""),a.flags&=-17);e:t:for(a=p;;){for(;a.sibling===null;){if(a.return===null||Im(a.return)){a=null;break e}a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue t;a.child.return=a,a=a.child}if(!(a.flags&2)){a=a.stateNode;break e}}f?dp(p,a,r):cp(p,a,r)}function dp(p,r,a){var f=p.tag,w=f===5||f===6;if(w)p=w?p.stateNode:p.stateNode.instance,r?a.nodeType===8?a.parentNode.insertBefore(p,r):a.insertBefore(p,r):(a.nodeType===8?(r=a.parentNode,r.insertBefore(p,a)):(r=a,r.appendChild(p)),a=a._reactRootContainer,a!=null||r.onclick!==null||(r.onclick=Bd));else if(f!==4&&(p=p.child,p!==null))for(dp(p,r,a),p=p.sibling;p!==null;)dp(p,r,a),p=p.sibling}function cp(p,r,a){var f=p.tag,w=f===5||f===6;if(w)p=w?p.stateNode:p.stateNode.instance,r?a.insertBefore(p,r):a.appendChild(p);else if(f!==4&&(p=p.child,p!==null))for(cp(p,r,a),p=p.sibling;p!==null;)cp(p,r,a),p=p.sibling}function Am(p,r){for(var a=r,f=!1,w,S;;){if(!f){f=a.return;e:for(;;){if(f===null)throw Error(t(160));switch(w=f.stateNode,f.tag){case 5:S=!1;break e;case 3:w=w.containerInfo,S=!0;break e;case 4:w=w.containerInfo,S=!0;break e}f=f.return}f=!0}if(a.tag===5||a.tag===6){e:for(var D=p,O=a,q=O;;)if(lp(D,q),q.child!==null&&q.tag!==4)q.child.return=q,q=q.child;else{if(q===O)break e;for(;q.sibling===null;){if(q.return===null||q.return===O)break e;q=q.return}q.sibling.return=q.return,q=q.sibling}S?(D=w,O=a.stateNode,D.nodeType===8?D.parentNode.removeChild(O):D.removeChild(O)):w.removeChild(a.stateNode)}else if(a.tag===4){if(a.child!==null){w=a.stateNode.containerInfo,S=!0,a.child.return=a,a=a.child;continue}}else if(lp(p,a),a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return;a=a.return,a.tag===4&&(f=!1)}a.sibling.return=a.return,a=a.sibling}}function up(p,r){switch(r.tag){case 0:case 11:case 14:case 15:case 22:var a=r.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var f=a=a.next;do(f.tag&3)===3&&(p=f.destroy,f.destroy=void 0,p!==void 0&&p()),f=f.next;while(f!==a)}return;case 1:return;case 5:if(a=r.stateNode,a!=null){f=r.memoizedProps;var w=p!==null?p.memoizedProps:f;p=r.type;var S=r.updateQueue;if(r.updateQueue=null,S!==null){for(a[Ud]=f,p==="input"&&f.type==="radio"&&f.name!=null&&wo(a,f),ji(p,w),r=ji(p,f),w=0;w<S.length;w+=2){var D=S[w],O=S[w+1];D==="style"?ol(a,O):D==="dangerouslySetInnerHTML"?Bt(a,O):D==="children"?or(a,O):A(a,D,O,r)}switch(p){case"input":an(a,f);break;case"textarea":Gs(a,f);break;case"select":p=a._wrapperState.wasMultiple,a._wrapperState.wasMultiple=!!f.multiple,S=f.value,S!=null?Ft(a,!!f.multiple,S,!1):p!==!!f.multiple&&(f.defaultValue!=null?Ft(a,!!f.multiple,f.defaultValue,!0):Ft(a,!!f.multiple,f.multiple?[]:"",!1))}}}return;case 6:if(r.stateNode===null)throw Error(t(162));r.stateNode.nodeValue=r.memoizedProps;return;case 3:a=r.stateNode,a.hydrate&&(a.hydrate=!1,fh(a.containerInfo));return;case 12:return;case 13:r.memoizedState!==null&&(zl=Vn(),wc(r.child,!0)),Pm(r);return;case 19:Pm(r);return;case 17:return;case 23:case 24:wc(r,r.memoizedState!==null);return}throw Error(t(163))}function Pm(p){var r=p.updateQueue;if(r!==null){p.updateQueue=null;var a=p.stateNode;a===null&&(a=p.stateNode=new o_),r.forEach(function(f){var w=u_.bind(null,p,f);a.has(f)||(a.add(f),f.then(w,w))})}}function a_(p,r){return p!==null&&(p=p.memoizedState,p===null||p.dehydrated!==null)?(r=r.memoizedState,r!==null&&r.dehydrated===null):!1}var l_=Math.ceil,vc=Y.ReactCurrentDispatcher,xr=Y.ReactCurrentOwner,Ve=0,cr=null,Sn=null,Gn=0,Vi=0,xc=ni(0),Rn=0,ks=null,Ea=0,$n=0,Gi=0,di=0,Wr=null,zl=0,pp=1/0;function Da(){pp=Vn()+500}var Re=null,bc=!1,Kn=null,ao=null,ci=!1,Ul=null,Ia=90,Vl=[],$i=[],Mo=null,Gl=0,ui=null,Sc=-1,jo=0,Lo=0,Ta=null,Ms=!1;function En(){return(Ve&48)!==0?Vn():Sc!==-1?Sc:Sc=Vn()}function Eo(p){if(p=p.mode,(p&2)===0)return 1;if((p&4)===0)return Ce()===99?1:2;if(jo===0&&(jo=Ea),im.transition!==0){Lo!==0&&(Lo=Wr!==null?Wr.pendingLanes:0),p=jo;var r=4186112&~Lo;return r&=-r,r===0&&(p=4186112&~p,r=p&-p,r===0&&(r=8192)),r}return p=Ce(),(Ve&4)!==0&&p===98?p=Dd(12,jo):(p=Sg(p),p=Dd(p,jo)),p}function Do(p,r,a){if(50<Gl)throw Gl=0,ui=null,Error(t(185));if(p=Io(p,r),p===null)return null;Id(p,r,a),p===cr&&(Gi|=r,Rn===4&&ur(p,Gn));var f=Ce();r===1?(Ve&8)!==0&&(Ve&48)===0?br(p):(qn(p,a),Ve===0&&(Da(),dt())):((Ve&4)===0||f!==98&&f!==99||(Mo===null?Mo=new Set([p]):Mo.add(p)),qn(p,a)),Wr=p}function Io(p,r){p.lanes|=r;var a=p.alternate;for(a!==null&&(a.lanes|=r),a=p,p=p.return;p!==null;)p.childLanes|=r,a=p.alternate,a!==null&&(a.childLanes|=r),a=p,p=p.return;return a.tag===3?a.stateNode:null}function qn(p,r){for(var a=p.callbackNode,f=p.suspendedLanes,w=p.pingedLanes,S=p.expirationTimes,D=p.pendingLanes;0<D;){var O=31-Qs(D),q=1<<O,ae=S[O];if(ae===-1){if((q&f)===0||(q&w)!==0){ae=r,pa(q);var Se=qt;S[O]=10<=Se?ae+250:6<=Se?ae+5e3:-1}}else ae<=r&&(p.expiredLanes|=q);D&=~q}if(f=ml(p,p===cr?Gn:0),r=qt,f===0)a!==null&&(a!==Hu&&Yu(a),p.callbackNode=null,p.callbackPriority=0);else{if(a!==null){if(p.callbackPriority===r)return;a!==Hu&&Yu(a)}r===15?(a=br.bind(null,p),Un===null?(Un=[a],Ll=Ou(jl,El)):Un.push(a),a=Hu):r===14?a=Ca(99,br.bind(null,p)):(a=Cg(r),a=Ca(a,Rm.bind(null,p))),p.callbackPriority=r,p.callbackNode=a}}function Rm(p){if(Sc=-1,Lo=jo=0,(Ve&48)!==0)throw Error(t(327));var r=p.callbackNode;if(pi()&&p.callbackNode!==r)return null;var a=ml(p,p===cr?Gn:0);if(a===0)return null;var f=a,w=Ve;Ve|=16;var S=mp();(cr!==p||Gn!==f)&&(Da(),Aa(p,f));do try{Om();break}catch(O){Nm(p,O)}while(!0);if(Uu(),vc.current=S,Ve=w,Sn!==null?f=0:(cr=null,Gn=0,f=Rn),(Ea&Gi)!==0)Aa(p,0);else if(f!==0){if(f===2&&(Ve|=64,p.hydrate&&(p.hydrate=!1,Qo(p.containerInfo)),a=vh(p),a!==0&&(f=$l(p,a))),f===1)throw r=ks,Aa(p,0),ur(p,a),qn(p,Vn()),r;switch(p.finishedWork=p.current.alternate,p.finishedLanes=a,f){case 0:case 1:throw Error(t(345));case 2:To(p);break;case 3:if(ur(p,a),(a&62914560)===a&&(f=zl+500-Vn(),10<f)){if(ml(p,0)!==0)break;if(w=p.suspendedLanes,(w&a)!==a){En(),p.pingedLanes|=p.suspendedLanes&w;break}p.timeoutHandle=Pu(To.bind(null,p),f);break}To(p);break;case 4:if(ur(p,a),(a&4186112)===a)break;for(f=p.eventTimes,w=-1;0<a;){var D=31-Qs(a);S=1<<D,D=f[D],D>w&&(w=D),a&=~S}if(a=w,a=Vn()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*l_(a/1960))-a,10<a){p.timeoutHandle=Pu(To.bind(null,p),a);break}To(p);break;case 5:To(p);break;default:throw Error(t(329))}}return qn(p,Vn()),p.callbackNode===r?Rm.bind(null,p):null}function ur(p,r){for(r&=~di,r&=~Gi,p.suspendedLanes|=r,p.pingedLanes&=~r,p=p.expirationTimes;0<r;){var a=31-Qs(r),f=1<<a;p[a]=-1,r&=~f}}function br(p){if((Ve&48)!==0)throw Error(t(327));if(pi(),p===cr&&(p.expiredLanes&Gn)!==0){var r=Gn,a=$l(p,r);(Ea&Gi)!==0&&(r=ml(p,r),a=$l(p,r))}else r=ml(p,0),a=$l(p,r);if(p.tag!==0&&a===2&&(Ve|=64,p.hydrate&&(p.hydrate=!1,Qo(p.containerInfo)),r=vh(p),r!==0&&(a=$l(p,r))),a===1)throw a=ks,Aa(p,0),ur(p,r),qn(p,Vn()),a;return p.finishedWork=p.current.alternate,p.finishedLanes=r,To(p),qn(p,Vn()),null}function d_(){if(Mo!==null){var p=Mo;Mo=null,p.forEach(function(r){r.expiredLanes|=24&r.pendingLanes,qn(r,Vn())})}dt()}function Fm(p,r){var a=Ve;Ve|=1;try{return p(r)}finally{Ve=a,Ve===0&&(Da(),dt())}}function Br(p,r){var a=Ve;Ve&=-2,Ve|=8;try{return p(r)}finally{Ve=a,Ve===0&&(Da(),dt())}}function Cc(p,r){dn(xc,Vi),Vi|=r,Ea|=r}function hp(){Vi=xc.current,nn(xc)}function Aa(p,r){p.finishedWork=null,p.finishedLanes=0;var a=p.timeoutHandle;if(a!==-1&&(p.timeoutHandle=-1,zd(a)),Sn!==null)for(a=Sn.return;a!==null;){var f=a;switch(f.tag){case 1:f=f.type.childContextTypes,f!=null&&Gd();break;case 3:Ma(),nn(yr),nn(zn),ic();break;case 5:oi(f);break;case 4:Ma();break;case 13:nn(cn);break;case 19:nn(cn);break;case 10:bs(f);break;case 23:case 24:hp()}a=a.return}cr=p,Sn=hi(p.current,null),Gn=Vi=Ea=r,Rn=0,ks=null,di=Gi=$n=0}function Nm(p,r){do{var a=Sn;try{if(Uu(),Rl.current=Hl,Nl){for(var f=Dt.memoizedState;f!==null;){var w=f.queue;w!==null&&(w.pending=null),f=f.next}Nl=!1}if(Fl=0,Pn=An=Dt=null,Ol=!1,xr.current=null,a===null||a.return===null){Rn=1,ks=r,Sn=null;break}e:{var S=p,D=a.return,O=a,q=r;if(r=Gn,O.flags|=2048,O.firstEffect=O.lastEffect=null,q!==null&&typeof q=="object"&&typeof q.then=="function"){var ae=q;if((O.mode&2)===0){var Se=O.alternate;Se?(O.updateQueue=Se.updateQueue,O.memoizedState=Se.memoizedState,O.lanes=Se.lanes):(O.updateQueue=null,O.memoizedState=null)}var ze=(cn.current&1)!==0,xe=D;do{var Pe;if(Pe=xe.tag===13){var tt=xe.memoizedState;if(tt!==null)Pe=tt.dehydrated!==null;else{var Xe=xe.memoizedProps;Pe=Xe.fallback===void 0?!1:Xe.unstable_avoidThisFallback!==!0?!0:!ze}}if(Pe){var pe=xe.updateQueue;if(pe===null){var oe=new Set;oe.add(ae),xe.updateQueue=oe}else pe.add(ae);if((xe.mode&2)===0){if(xe.flags|=64,O.flags|=16384,O.flags&=-2981,O.tag===1)if(O.alternate===null)O.tag=17;else{var ue=So(-1,1);ue.tag=2,eo(O,ue)}O.lanes|=1;break e}q=void 0,O=r;var ve=S.pingCache;if(ve===null?(ve=S.pingCache=new yc,q=new Set,ve.set(ae,q)):(q=ve.get(ae),q===void 0&&(q=new Set,ve.set(ae,q))),!q.has(O)){q.add(O);var be=qi.bind(null,S,ae,O);ae.then(be,be)}xe.flags|=4096,xe.lanes=r;break e}xe=xe.return}while(xe!==null);q=Error((ht(O.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.

Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Rn!==5&&(Rn=2),q=ip(q,O),xe=D;do{switch(xe.tag){case 3:S=q,xe.flags|=4096,r&=-r,xe.lanes|=r;var st=jm(xe,S,r);dm(xe,st);break e;case 1:S=q;var We=xe.type,ot=xe.stateNode;if((xe.flags&64)===0&&(typeof We.getDerivedStateFromError=="function"||ot!==null&&typeof ot.componentDidCatch=="function"&&(ao===null||!ao.has(ot)))){xe.flags|=4096,r&=-r,xe.lanes|=r;var mt=Yr(xe,S,r);dm(xe,mt);break e}}xe=xe.return}while(xe!==null)}Ym(a)}catch(ct){r=ct,Sn===a&&a!==null&&(Sn=a=a.return);continue}break}while(!0)}function mp(){var p=vc.current;return vc.current=Hl,p===null?Hl:p}function $l(p,r){var a=Ve;Ve|=16;var f=mp();cr===p&&Gn===r||Aa(p,r);do try{fp();break}catch(w){Nm(p,w)}while(!0);if(Uu(),Ve=a,vc.current=f,Sn!==null)throw Error(t(261));return cr=null,Gn=0,Rn}function fp(){for(;Sn!==null;)gp(Sn)}function Om(){for(;Sn!==null&&!Xg();)gp(Sn)}function gp(p){var r=Ao(p.alternate,p,Vi);p.memoizedProps=p.pendingProps,r===null?Ym(p):Sn=r,xr.current=null}function Ym(p){var r=p;do{var a=r.alternate;if(p=r.return,(r.flags&2048)===0){if(a=Mm(a,r,Vi),a!==null){Sn=a;return}if(a=r,a.tag!==24&&a.tag!==23||a.memoizedState===null||(Vi&1073741824)!==0||(a.mode&4)===0){for(var f=0,w=a.child;w!==null;)f|=w.lanes|w.childLanes,w=w.sibling;a.childLanes=f}p!==null&&(p.flags&2048)===0&&(p.firstEffect===null&&(p.firstEffect=r.firstEffect),r.lastEffect!==null&&(p.lastEffect!==null&&(p.lastEffect.nextEffect=r.firstEffect),p.lastEffect=r.lastEffect),1<r.flags&&(p.lastEffect!==null?p.lastEffect.nextEffect=r:p.firstEffect=r,p.lastEffect=r))}else{if(a=Cs(r),a!==null){a.flags&=2047,Sn=a;return}p!==null&&(p.firstEffect=p.lastEffect=null,p.flags|=2048)}if(r=r.sibling,r!==null){Sn=r;return}Sn=r=p}while(r!==null);Rn===0&&(Rn=5)}function To(p){var r=Ce();return Fi(99,Wm.bind(null,p,r)),null}function Wm(p,r){do pi();while(Ul!==null);if((Ve&48)!==0)throw Error(t(327));var a=p.finishedWork;if(a===null)return null;if(p.finishedWork=null,p.finishedLanes=0,a===p.current)throw Error(t(177));p.callbackNode=null;var f=a.lanes|a.childLanes,w=f,S=p.pendingLanes&~w;p.pendingLanes=w,p.suspendedLanes=0,p.pingedLanes=0,p.expiredLanes&=w,p.mutableReadLanes&=w,p.entangledLanes&=w,w=p.entanglements;for(var D=p.eventTimes,O=p.expirationTimes;0<S;){var q=31-Qs(S),ae=1<<q;w[q]=0,D[q]=-1,O[q]=-1,S&=~ae}if(Mo!==null&&(f&24)===0&&Mo.has(p)&&Mo.delete(p),p===cr&&(Sn=cr=null,Gn=0),1<a.flags?a.lastEffect!==null?(a.lastEffect.nextEffect=a,f=a.firstEffect):f=a:f=a.firstEffect,f!==null){if(w=Ve,Ve|=32,xr.current=null,Iu=Td,D=Mu(),ju(D)){if("selectionStart"in D)O={start:D.selectionStart,end:D.selectionEnd};else e:if(O=(O=D.ownerDocument)&&O.defaultView||window,(ae=O.getSelection&&O.getSelection())&&ae.rangeCount!==0){O=ae.anchorNode,S=ae.anchorOffset,q=ae.focusNode,ae=ae.focusOffset;try{O.nodeType,q.nodeType}catch{O=null;break e}var Se=0,ze=-1,xe=-1,Pe=0,tt=0,Xe=D,pe=null;t:for(;;){for(var oe;Xe!==O||S!==0&&Xe.nodeType!==3||(ze=Se+S),Xe!==q||ae!==0&&Xe.nodeType!==3||(xe=Se+ae),Xe.nodeType===3&&(Se+=Xe.nodeValue.length),(oe=Xe.firstChild)!==null;)pe=Xe,Xe=oe;for(;;){if(Xe===D)break t;if(pe===O&&++Pe===S&&(ze=Se),pe===q&&++tt===ae&&(xe=Se),(oe=Xe.nextSibling)!==null)break;Xe=pe,pe=Xe.parentNode}Xe=oe}O=ze===-1||xe===-1?null:{start:ze,end:xe}}else O=null;O=O||{start:0,end:0}}else O=null;Tu={focusedElem:D,selectionRange:O},Td=!1,Ta=null,Ms=!1,Re=f;do try{c_()}catch(ct){if(Re===null)throw Error(t(330));pr(Re,ct),Re=Re.nextEffect}while(Re!==null);Ta=null,Re=f;do try{for(D=p;Re!==null;){var ue=Re.flags;if(ue&16&&or(Re.stateNode,""),ue&128){var ve=Re.alternate;if(ve!==null){var be=ve.ref;be!==null&&(typeof be=="function"?be(null):be.current=null)}}switch(ue&1038){case 2:Tm(Re),Re.flags&=-3;break;case 6:Tm(Re),Re.flags&=-3,up(Re.alternate,Re);break;case 1024:Re.flags&=-1025;break;case 1028:Re.flags&=-1025,up(Re.alternate,Re);break;case 4:up(Re.alternate,Re);break;case 8:O=Re,Am(D,O);var st=O.alternate;Dm(O),st!==null&&Dm(st)}Re=Re.nextEffect}}catch(ct){if(Re===null)throw Error(t(330));pr(Re,ct),Re=Re.nextEffect}while(Re!==null);if(be=Tu,ve=Mu(),ue=be.focusedElem,D=be.selectionRange,ve!==ue&&ue&&ue.ownerDocument&&ku(ue.ownerDocument.documentElement,ue)){for(D!==null&&ju(ue)&&(ve=D.start,be=D.end,be===void 0&&(be=ve),"selectionStart"in ue?(ue.selectionStart=ve,ue.selectionEnd=Math.min(be,ue.value.length)):(be=(ve=ue.ownerDocument||document)&&ve.defaultView||window,be.getSelection&&(be=be.getSelection(),O=ue.textContent.length,st=Math.min(D.start,O),D=D.end===void 0?st:Math.min(D.end,O),!be.extend&&st>D&&(O=D,D=st,st=O),O=Yh(ue,st),S=Yh(ue,D),O&&S&&(be.rangeCount!==1||be.anchorNode!==O.node||be.anchorOffset!==O.offset||be.focusNode!==S.node||be.focusOffset!==S.offset)&&(ve=ve.createRange(),ve.setStart(O.node,O.offset),be.removeAllRanges(),st>D?(be.addRange(ve),be.extend(S.node,S.offset)):(ve.setEnd(S.node,S.offset),be.addRange(ve)))))),ve=[],be=ue;be=be.parentNode;)be.nodeType===1&&ve.push({element:be,left:be.scrollLeft,top:be.scrollTop});for(typeof ue.focus=="function"&&ue.focus(),ue=0;ue<ve.length;ue++)be=ve[ue],be.element.scrollLeft=be.left,be.element.scrollTop=be.top}Td=!!Iu,Tu=Iu=null,p.current=a,Re=f;do try{for(ue=p;Re!==null;){var We=Re.flags;if(We&36&&Em(ue,Re.alternate,Re),We&128){ve=void 0;var ot=Re.ref;if(ot!==null){var mt=Re.stateNode;switch(Re.tag){case 5:ve=mt;break;default:ve=mt}typeof ot=="function"?ot(ve):ot.current=ve}}Re=Re.nextEffect}}catch(ct){if(Re===null)throw Error(t(330));pr(Re,ct),Re=Re.nextEffect}while(Re!==null);Re=null,e_(),Ve=w}else p.current=a;if(ci)ci=!1,Ul=p,Ia=r;else for(Re=f;Re!==null;)r=Re.nextEffect,Re.nextEffect=null,Re.flags&8&&(We=Re,We.sibling=null,We.stateNode=null),Re=r;if(f=p.pendingLanes,f===0&&(ao=null),f===1?p===ui?Gl++:(Gl=0,ui=p):Gl=0,a=a.stateNode,bo&&typeof bo.onCommitFiberRoot=="function")try{bo.onCommitFiberRoot(Nu,a,void 0,(a.current.flags&64)===64)}catch{}if(qn(p,Vn()),bc)throw bc=!1,p=Kn,Kn=null,p;return(Ve&8)!==0||dt(),null}function c_(){for(;Re!==null;){var p=Re.alternate;Ms||Ta===null||((Re.flags&8)!==0?Li(Re,Ta)&&(Ms=!0):Re.tag===13&&a_(p,Re)&&Li(Re,Ta)&&(Ms=!0));var r=Re.flags;(r&256)!==0&&i_(p,Re),(r&512)===0||ci||(ci=!0,Ca(97,function(){return pi(),null})),Re=Re.nextEffect}}function pi(){if(Ia!==90){var p=97<Ia?97:Ia;return Ia=90,Fi(p,_p)}return!1}function Bm(p,r){Vl.push(r,p),ci||(ci=!0,Ca(97,function(){return pi(),null}))}function Hm(p,r){$i.push(r,p),ci||(ci=!0,Ca(97,function(){return pi(),null}))}function _p(){if(Ul===null)return!1;var p=Ul;if(Ul=null,(Ve&48)!==0)throw Error(t(331));var r=Ve;Ve|=32;var a=$i;$i=[];for(var f=0;f<a.length;f+=2){var w=a[f],S=a[f+1],D=w.destroy;if(w.destroy=void 0,typeof D=="function")try{D()}catch(q){if(S===null)throw Error(t(330));pr(S,q)}}for(a=Vl,Vl=[],f=0;f<a.length;f+=2){w=a[f],S=a[f+1];try{var O=w.create;w.destroy=O()}catch(q){if(S===null)throw Error(t(330));pr(S,q)}}for(O=p.current.firstEffect;O!==null;)p=O.nextEffect,O.nextEffect=null,O.flags&8&&(O.sibling=null,O.stateNode=null),O=p;return Ve=r,dt(),!0}function Ki(p,r,a){r=ip(a,r),r=jm(p,r,1),eo(p,r),r=En(),p=Io(p,1),p!==null&&(Id(p,1,r),qn(p,r))}function pr(p,r){if(p.tag===3)Ki(p,p,r);else for(var a=p.return;a!==null;){if(a.tag===3){Ki(a,p,r);break}else if(a.tag===1){var f=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(ao===null||!ao.has(f))){p=ip(r,p);var w=Yr(a,p,1);if(eo(a,w),w=En(),a=Io(a,1),a!==null)Id(a,1,w),qn(a,w);else if(typeof f.componentDidCatch=="function"&&(ao===null||!ao.has(f)))try{f.componentDidCatch(r,p)}catch{}break}}a=a.return}}function qi(p,r,a){var f=p.pingCache;f!==null&&f.delete(r),r=En(),p.pingedLanes|=p.suspendedLanes&a,cr===p&&(Gn&a)===a&&(Rn===4||Rn===3&&(Gn&62914560)===Gn&&500>Vn()-zl?Aa(p,0):di|=a),qn(p,r)}function u_(p,r){var a=p.stateNode;a!==null&&a.delete(r),r=0,r===0&&(r=p.mode,(r&2)===0?r=1:(r&4)===0?r=Ce()===99?1:2:(jo===0&&(jo=Ea),r=ha(62914560&~jo),r===0&&(r=4194304))),a=En(),p=Io(p,r),p!==null&&(Id(p,r,a),qn(p,a))}var Ao;Ao=function(p,r,a){var f=r.lanes;if(p!==null)if(p.memoizedProps!==r.pendingProps||yr.current)Nr=!0;else if((a&f)!==0)Nr=(p.flags&16384)!==0;else{switch(Nr=!1,r.tag){case 3:tp(r),Ku();break;case 5:ro(r);break;case 1:wr(r.type)&&Kd(r);break;case 4:$u(r,r.stateNode.containerInfo);break;case 10:f=r.memoizedProps.value;var w=r.type._context;dn(Jd,w._currentValue),w._currentValue=f;break;case 13:if(r.memoizedState!==null)return(a&r.child.childLanes)!==0?hc(p,r,a):(dn(cn,cn.current&1),r=ko(p,r,a),r!==null?r.sibling:null);dn(cn,cn.current&1);break;case 19:if(f=(a&r.childLanes)!==0,(p.flags&64)!==0){if(f)return sp(p,r,a);r.flags|=64}if(w=r.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),dn(cn,cn.current),f)break;return null;case 23:case 24:return r.lanes=0,Ss(p,r,a)}return ko(p,r,a)}else Nr=!1;switch(r.lanes=0,r.tag){case 2:if(f=r.type,p!==null&&(p.alternate=null,r.alternate=null,r.flags|=2),p=r.pendingProps,w=Sa(r,zn.current),Ni(r,a),w=Ju(null,r,f,p,w,a),r.flags|=1,typeof w=="object"&&w!==null&&typeof w.render=="function"&&w.$$typeof===void 0){if(r.tag=1,r.memoizedState=null,r.updateQueue=null,wr(f)){var S=!0;Kd(r)}else S=!1;r.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,Qd(r);var D=f.getDerivedStateFromProps;typeof D=="function"&&ec(r,f,D,p),w.updater=tc,r.stateNode=w,w._reactInternals=r,Gu(r,f,p,a),r=ep(null,r,f,!0,S,a)}else r.tag=0,dr(null,r,w,a),r=r.child;return r;case 16:w=r.elementType;e:{switch(p!==null&&(p.alternate=null,r.alternate=null,r.flags|=2),p=r.pendingProps,S=w._init,w=S(w._payload),r.type=w,S=r.tag=p_(w),p=Pr(w,p),S){case 0:r=uc(null,r,w,p,a);break e;case 1:r=Qu(null,r,w,p,a);break e;case 11:r=zi(null,r,w,p,a);break e;case 14:r=Or(null,r,w,Pr(w.type,p),f,a);break e}throw Error(t(306,w,""))}return r;case 0:return f=r.type,w=r.pendingProps,w=r.elementType===f?w:Pr(f,w),uc(p,r,f,w,a);case 1:return f=r.type,w=r.pendingProps,w=r.elementType===f?w:Pr(f,w),Qu(p,r,f,w,a);case 3:if(tp(r),f=r.updateQueue,p===null||f===null)throw Error(t(282));if(f=r.pendingProps,w=r.memoizedState,w=w!==null?w.element:null,lm(p,r),Rr(r,f,null,a),f=r.memoizedState.element,f===w)Ku(),r=ko(p,r,a);else{if(w=r.stateNode,(S=w.hydrate)&&(ii=xo(r.stateNode.containerInfo.firstChild),Co=r,S=so=!0),S){if(p=w.mutableSourceEagerHydrationData,p!=null)for(w=0;w<p.length;w+=2)S=p[w],S._workInProgressVersionPrimary=p[w+1],Tn.push(S);for(a=fm(r,null,f,a),r.child=a;a;)a.flags=a.flags&-3|1024,a=a.sibling}else dr(p,r,f,a),Ku();r=r.child}return r;case 5:return ro(r),p===null&&ja(r),f=r.type,w=r.pendingProps,S=p!==null?p.memoizedProps:null,D=w.children,Hd(f,w)?D=null:S!==null&&Hd(f,S)&&(r.flags|=16),io(p,r),dr(p,r,D,a),r.child;case 6:return p===null&&ja(r),null;case 13:return hc(p,r,a);case 4:return $u(r,r.stateNode.containerInfo),f=r.pendingProps,p===null?r.child=to(r,null,f,a):dr(p,r,f,a),r.child;case 11:return f=r.type,w=r.pendingProps,w=r.elementType===f?w:Pr(f,w),zi(p,r,f,w,a);case 7:return dr(p,r,r.pendingProps,a),r.child;case 8:return dr(p,r,r.pendingProps.children,a),r.child;case 12:return dr(p,r,r.pendingProps.children,a),r.child;case 10:e:{f=r.type._context,w=r.pendingProps,D=r.memoizedProps,S=w.value;var O=r.type._context;if(dn(Jd,O._currentValue),O._currentValue=S,D!==null)if(O=D.value,S=os(O,S)?0:(typeof f._calculateChangedBits=="function"?f._calculateChangedBits(O,S):1073741823)|0,S===0){if(D.children===w.children&&!yr.current){r=ko(p,r,a);break e}}else for(O=r.child,O!==null&&(O.return=r);O!==null;){var q=O.dependencies;if(q!==null){D=O.child;for(var ae=q.firstContext;ae!==null;){if(ae.context===f&&(ae.observedBits&S)!==0){O.tag===1&&(ae=So(-1,a&-a),ae.tag=2,eo(O,ae)),O.lanes|=a,ae=O.alternate,ae!==null&&(ae.lanes|=a),am(O.return,a),q.lanes|=a;break}ae=ae.next}}else D=O.tag===10&&O.type===r.type?null:O.child;if(D!==null)D.return=O;else for(D=O;D!==null;){if(D===r){D=null;break}if(O=D.sibling,O!==null){O.return=D.return,D=O;break}D=D.return}O=D}dr(p,r,w.children,a),r=r.child}return r;case 9:return w=r.type,S=r.pendingProps,f=S.children,Ni(r,a),w=is(w,S.unstable_observedBits),f=f(w),r.flags|=1,dr(p,r,f,a),r.child;case 14:return w=r.type,S=Pr(w,r.pendingProps),S=Pr(w.type,S),Or(p,r,w,S,f,a);case 15:return oo(p,r,r.type,r.pendingProps,f,a);case 17:return f=r.type,w=r.pendingProps,w=r.elementType===f?w:Pr(f,w),p!==null&&(p.alternate=null,r.alternate=null,r.flags|=2),r.tag=1,wr(f)?(p=!0,Kd(r)):p=!1,Ni(r,a),pm(r,f,w),Gu(r,f,w,a),ep(null,r,f,!0,p,a);case 19:return sp(p,r,a);case 23:return Ss(p,r,a);case 24:return Ss(p,r,a)}throw Error(t(156,r.tag))};function yp(p,r,a,f){this.tag=p,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Hr(p,r,a,f){return new yp(p,r,a,f)}function Kl(p){return p=p.prototype,!(!p||!p.isReactComponent)}function p_(p){if(typeof p=="function")return Kl(p)?1:0;if(p!=null){if(p=p.$$typeof,p===Q)return 11;if(p===X)return 14}return 2}function hi(p,r){var a=p.alternate;return a===null?(a=Hr(p.tag,r,p.key,p.mode),a.elementType=p.elementType,a.type=p.type,a.stateNode=p.stateNode,a.alternate=p,p.alternate=a):(a.pendingProps=r,a.type=p.type,a.flags=0,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null),a.childLanes=p.childLanes,a.lanes=p.lanes,a.child=p.child,a.memoizedProps=p.memoizedProps,a.memoizedState=p.memoizedState,a.updateQueue=p.updateQueue,r=p.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},a.sibling=p.sibling,a.index=p.index,a.ref=p.ref,a}function Po(p,r,a,f,w,S){var D=2;if(f=p,typeof p=="function")Kl(p)&&(D=1);else if(typeof p=="string")D=5;else e:switch(p){case F:return Fn(a.children,w,S,r);case V:D=8,w|=16;break;case H:D=8,w|=1;break;case W:return p=Hr(12,a,r,w|8),p.elementType=W,p.type=W,p.lanes=S,p;case B:return p=Hr(13,a,r,w),p.type=B,p.elementType=B,p.lanes=S,p;case R:return p=Hr(19,a,r,w),p.elementType=R,p.lanes=S,p;case z:return Sr(a,w,S,r);case J:return p=Hr(24,a,r,w),p.elementType=J,p.lanes=S,p;default:if(typeof p=="object"&&p!==null)switch(p.$$typeof){case K:D=10;break e;case Z:D=9;break e;case Q:D=11;break e;case X:D=14;break e;case $:D=16,f=null;break e;case ie:D=22;break e}throw Error(t(130,p==null?p:typeof p,""))}return r=Hr(D,a,r,w),r.elementType=p,r.type=f,r.lanes=S,r}function Fn(p,r,a,f){return p=Hr(7,p,f,r),p.lanes=a,p}function Sr(p,r,a,f){return p=Hr(23,p,f,r),p.elementType=z,p.lanes=a,p}function hr(p,r,a){return p=Hr(6,p,null,r),p.lanes=a,p}function mr(p,r,a){return r=Hr(4,p.children!==null?p.children:[],p.key,r),r.lanes=a,r.stateNode={containerInfo:p.containerInfo,pendingChildren:null,implementation:p.implementation},r}function h_(p,r,a){this.tag=r,this.containerInfo=p,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=a,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=cu(0),this.expirationTimes=cu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cu(0),this.mutableSourceEagerHydrationData=null}function m_(p,r,a){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:f==null?null:""+f,children:p,containerInfo:r,implementation:a}}function Pa(p,r,a,f){var w=r.current,S=En(),D=Eo(w);e:if(a){a=a._reactInternals;t:{if(rs(a)!==a||a.tag!==1)throw Error(t(170));var O=a;do{switch(O.tag){case 3:O=O.stateNode.context;break t;case 1:if(wr(O.type)){O=O.stateNode.__reactInternalMemoizedMergedChildContext;break t}}O=O.return}while(O!==null);throw Error(t(171))}if(a.tag===1){var q=a.type;if(wr(q)){a=$d(a,q,O);break e}}a=O}else a=ri;return r.context===null?r.context=a:r.pendingContext=a,r=So(S,D),r.payload={element:p},f=f===void 0?null:f,f!==null&&(r.callback=f),eo(w,r),Do(w,D,S),D}function ql(p){if(p=p.current,!p.child)return null;switch(p.child.tag){case 5:return p.child.stateNode;default:return p.child.stateNode}}function kc(p,r){if(p=p.memoizedState,p!==null&&p.dehydrated!==null){var a=p.retryLane;p.retryLane=a!==0&&a<r?a:r}}function wp(p,r){kc(p,r),(p=p.alternate)&&kc(p,r)}function f_(){return null}function mi(p,r,a){var f=a!=null&&a.hydrationOptions!=null&&a.hydrationOptions.mutableSources||null;if(a=new h_(p,r,a!=null&&a.hydrate===!0),r=Hr(3,null,null,r===2?7:r===1?3:0),a.current=r,r.stateNode=a,Qd(r),p[va]=a.current,Vh(p.nodeType===8?p.parentNode:p),f)for(p=0;p<f.length;p++){r=f[p];var w=r._getVersion;w=w(r._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[r,w]:a.mutableSourceEagerHydrationData.push(r,w)}this._internalRoot=a}mi.prototype.render=function(p){Pa(p,this._internalRoot,null,null)},mi.prototype.unmount=function(){var p=this._internalRoot,r=p.containerInfo;Pa(null,p,null,function(){r[va]=null})};function Jl(p){return!(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11&&(p.nodeType!==8||p.nodeValue!==" react-mount-point-unstable "))}function vp(p,r){if(r||(r=p?p.nodeType===9?p.documentElement:p.firstChild:null,r=!(!r||r.nodeType!==1||!r.hasAttribute("data-reactroot"))),!r)for(var a;a=p.lastChild;)p.removeChild(a);return new mi(p,0,r?{hydrate:!0}:void 0)}function fr(p,r,a,f,w){var S=a._reactRootContainer;if(S){var D=S._internalRoot;if(typeof w=="function"){var O=w;w=function(){var ae=ql(D);O.call(ae)}}Pa(r,D,p,w)}else{if(S=a._reactRootContainer=vp(a,f),D=S._internalRoot,typeof w=="function"){var q=w;w=function(){var ae=ql(D);q.call(ae)}}Br(function(){Pa(r,D,p,w)})}return ql(D)}la=function(p){if(p.tag===13){var r=En();Do(p,4,r),wp(p,4)}},da=function(p){if(p.tag===13){var r=En();Do(p,67108864,r),wp(p,67108864)}},ll=function(p){if(p.tag===13){var r=En(),a=Eo(p);Do(p,a,r),wp(p,a)}},dl=function(p,r){return r()},Ie=function(p,r,a){switch(r){case"input":if(an(p,a),r=a.name,a.type==="radio"&&r!=null){for(a=p;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<a.length;r++){var f=a[r];if(f!==p&&f.form===p.form){var w=Vd(f);if(!w)throw Error(t(90));Pt(f),an(f,w)}}}break;case"textarea":Gs(p,a);break;case"select":r=a.value,r!=null&&Ft(p,!!a.multiple,r,!1)}},Ko=Fm,_t=function(p,r,a,f,w){var S=Ve;Ve|=4;try{return Fi(98,p.bind(null,r,a,f,w))}finally{Ve=S,Ve===0&&(Da(),dt())}},ys=function(){(Ve&49)===0&&(d_(),pi())},Cd=function(p,r){var a=Ve;Ve|=2;try{return p(r)}finally{Ve=a,Ve===0&&(Da(),dt())}};function zm(p,r){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Jl(r))throw Error(t(200));return m_(p,r,null,a)}var Ji={Events:[Ml,xa,Vd,pn,Qe,pi,{current:!1}]},Zl={findFiberByHostInstance:Pi,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Ra={bundleType:Zl.bundleType,version:Zl.version,rendererPackageName:Zl.rendererPackageName,rendererConfig:Zl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Y.ReactCurrentDispatcher,findHostInstanceByFiber:function(p){return p=Qt(p),p===null?null:p.stateNode},findFiberByHostInstance:Zl.findFiberByHostInstance||f_,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xl.isDisabled&&Xl.supportsFiber)try{Nu=Xl.inject(Ra),bo=Xl}catch{}}return js.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ji,js.createPortal=zm,js.findDOMNode=function(p){if(p==null)return null;if(p.nodeType===1)return p;var r=p._reactInternals;if(r===void 0)throw typeof p.render=="function"?Error(t(188)):Error(t(268,Object.keys(p)));return p=Qt(r),p=p===null?null:p.stateNode,p},js.flushSync=function(p,r){var a=Ve;if((a&48)!==0)return p(r);Ve|=1;try{if(p)return Fi(99,p.bind(null,r))}finally{Ve=a,dt()}},js.hydrate=function(p,r,a){if(!Jl(r))throw Error(t(200));return fr(null,p,r,!0,a)},js.render=function(p,r,a){if(!Jl(r))throw Error(t(200));return fr(null,p,r,!1,a)},js.unmountComponentAtNode=function(p){if(!Jl(p))throw Error(t(40));return p._reactRootContainer?(Br(function(){fr(null,null,p,!1,function(){p._reactRootContainer=null,p[va]=null})}),!0):!1},js.unstable_batchedUpdates=Fm,js.unstable_createPortal=function(p,r){return zm(p,r,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},js.unstable_renderSubtreeIntoContainer=function(p,r,a,f){if(!Jl(a))throw Error(t(200));if(p==null||p._reactInternals===void 0)throw Error(t(38));return fr(p,r,a,!1,f)},js.version="17.0.2",js}var _w;function xS(){if(_w)return w_.exports;_w=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),w_.exports=vS(),w_.exports}var bS=xS(),M=Iy();const E=Ux(M),Vx=mS({__proto__:null,default:E},[M]);/**
 * @remix-run/router v1.10.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Yf(){return Yf=Object.assign?Object.assign.bind():function(s){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(s[t]=n[t])}return s},Yf.apply(this,arguments)}var id;(function(s){s.Pop="POP",s.Push="PUSH",s.Replace="REPLACE"})(id||(id={}));const yw="popstate";function SS(s){s===void 0&&(s={});function o(i,d){let{pathname:c="/",search:u="",hash:h=""}=Xf(i.location.hash.substr(1));return!c.startsWith("/")&&!c.startsWith(".")&&(c="/"+c),ry("",{pathname:c,search:u,hash:h},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function n(i,d){let c=i.document.querySelector("base"),u="";if(c&&c.getAttribute("href")){let h=i.location.href,g=h.indexOf("#");u=g===-1?h:h.slice(0,g)}return u+"#"+(typeof d=="string"?d:Gx(d))}function t(i,d){Zf(i.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(d)+")")}return kS(o,n,t,s)}function Si(s,o){if(s===!1||s===null||typeof s>"u")throw new Error(o)}function Zf(s,o){if(!s){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function CS(){return Math.random().toString(36).substr(2,8)}function ww(s,o){return{usr:s.state,key:s.key,idx:o}}function ry(s,o,n,t){return n===void 0&&(n=null),Yf({pathname:typeof s=="string"?s:s.pathname,search:"",hash:""},typeof o=="string"?Xf(o):o,{state:n,key:o&&o.key||t||CS()})}function Gx(s){let{pathname:o="/",search:n="",hash:t=""}=s;return n&&n!=="?"&&(o+=n.charAt(0)==="?"?n:"?"+n),t&&t!=="#"&&(o+=t.charAt(0)==="#"?t:"#"+t),o}function Xf(s){let o={};if(s){let n=s.indexOf("#");n>=0&&(o.hash=s.substr(n),s=s.substr(0,n));let t=s.indexOf("?");t>=0&&(o.search=s.substr(t),s=s.substr(0,t)),s&&(o.pathname=s)}return o}function kS(s,o,n,t){t===void 0&&(t={});let{window:i=document.defaultView,v5Compat:d=!1}=t,c=i.history,u=id.Pop,h=null,g=_();g==null&&(g=0,c.replaceState(Yf({},c.state,{idx:g}),""));function _(){return(c.state||{idx:null}).idx}function m(){u=id.Pop;let C=_(),k=C==null?null:C-g;g=C,h&&h({action:u,location:b.location,delta:k})}function x(C,k){u=id.Push;let L=ry(b.location,C,k);n&&n(L,C),g=_()+1;let I=ww(L,g),A=b.createHref(L);try{c.pushState(I,"",A)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;i.location.assign(A)}d&&h&&h({action:u,location:b.location,delta:1})}function y(C,k){u=id.Replace;let L=ry(b.location,C,k);n&&n(L,C),g=_();let I=ww(L,g),A=b.createHref(L);c.replaceState(I,"",A),d&&h&&h({action:u,location:b.location,delta:0})}function v(C){let k=i.location.origin!=="null"?i.location.origin:i.location.href,L=typeof C=="string"?C:Gx(C);return Si(k,"No window.location.(origin|href) available to create URL for href: "+L),new URL(L,k)}let b={get action(){return u},get location(){return s(i,c)},listen(C){if(h)throw new Error("A history only accepts one active listener");return i.addEventListener(yw,m),h=C,()=>{i.removeEventListener(yw,m),h=null}},createHref(C){return o(i,C)},createURL:v,encodeLocation(C){let k=v(C);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:x,replace:y,go(C){return c.go(C)}};return b}var vw;(function(s){s.data="data",s.deferred="deferred",s.redirect="redirect",s.error="error"})(vw||(vw={}));function MS(s,o,n){n===void 0&&(n="/");let t=typeof o=="string"?Xf(o):o,i=qx(t.pathname||"/",n);if(i==null)return null;let d=$x(s);jS(d);let c=null;for(let u=0;c==null&&u<d.length;++u)c=FS(d[u],YS(i));return c}function $x(s,o,n,t){o===void 0&&(o=[]),n===void 0&&(n=[]),t===void 0&&(t="");let i=(d,c,u)=>{let h={relativePath:u===void 0?d.path||"":u,caseSensitive:d.caseSensitive===!0,childrenIndex:c,route:d};h.relativePath.startsWith("/")&&(Si(h.relativePath.startsWith(t),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+t+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(t.length));let g=Yc([t,h.relativePath]),_=n.concat(h);d.children&&d.children.length>0&&(Si(d.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+g+'".')),$x(d.children,o,_,g)),!(d.path==null&&!d.index)&&o.push({path:g,score:PS(g,d.index),routesMeta:_})};return s.forEach((d,c)=>{var u;if(d.path===""||!((u=d.path)!=null&&u.includes("?")))i(d,c);else for(let h of Kx(d.path))i(d,c,h)}),o}function Kx(s){let o=s.split("/");if(o.length===0)return[];let[n,...t]=o,i=n.endsWith("?"),d=n.replace(/\?$/,"");if(t.length===0)return i?[d,""]:[d];let c=Kx(t.join("/")),u=[];return u.push(...c.map(h=>h===""?d:[d,h].join("/"))),i&&u.push(...c),u.map(h=>s.startsWith("/")&&h===""?"/":h)}function jS(s){s.sort((o,n)=>o.score!==n.score?n.score-o.score:RS(o.routesMeta.map(t=>t.childrenIndex),n.routesMeta.map(t=>t.childrenIndex)))}const LS=/^:\w+$/,ES=3,DS=2,IS=1,TS=10,AS=-2,xw=s=>s==="*";function PS(s,o){let n=s.split("/"),t=n.length;return n.some(xw)&&(t+=AS),o&&(t+=DS),n.filter(i=>!xw(i)).reduce((i,d)=>i+(LS.test(d)?ES:d===""?IS:TS),t)}function RS(s,o){return s.length===o.length&&s.slice(0,-1).every((t,i)=>t===o[i])?s[s.length-1]-o[o.length-1]:0}function FS(s,o){let{routesMeta:n}=s,t={},i="/",d=[];for(let c=0;c<n.length;++c){let u=n[c],h=c===n.length-1,g=i==="/"?o:o.slice(i.length)||"/",_=NS({path:u.relativePath,caseSensitive:u.caseSensitive,end:h},g);if(!_)return null;Object.assign(t,_.params);let m=u.route;d.push({params:t,pathname:Yc([i,_.pathname]),pathnameBase:BS(Yc([i,_.pathnameBase])),route:m}),_.pathnameBase!=="/"&&(i=Yc([i,_.pathnameBase]))}return d}function NS(s,o){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[n,t]=OS(s.path,s.caseSensitive,s.end),i=o.match(n);if(!i)return null;let d=i[0],c=d.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:t.reduce((g,_,m)=>{if(_==="*"){let x=u[m]||"";c=d.slice(0,d.length-x.length).replace(/(.)\/+$/,"$1")}return g[_]=WS(u[m]||"",_),g},{}),pathname:d,pathnameBase:c,pattern:s}}function OS(s,o,n){o===void 0&&(o=!1),n===void 0&&(n=!0),Zf(s==="*"||!s.endsWith("*")||s.endsWith("/*"),'Route path "'+s+'" will be treated as if it were '+('"'+s.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+s.replace(/\*$/,"/*")+'".'));let t=[],i="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(c,u)=>(t.push(u),"/([^\\/]+)"));return s.endsWith("*")?(t.push("*"),i+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":s!==""&&s!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,o?void 0:"i"),t]}function YS(s){try{return decodeURI(s)}catch(o){return Zf(!1,'The URL path "'+s+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+o+").")),s}}function WS(s,o){try{return decodeURIComponent(s)}catch(n){return Zf(!1,'The value for the URL param "'+o+'" will not be decoded because'+(' the string "'+s+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),s}}function qx(s,o){if(o==="/")return s;if(!s.toLowerCase().startsWith(o.toLowerCase()))return null;let n=o.endsWith("/")?o.length-1:o.length,t=s.charAt(n);return t&&t!=="/"?null:s.slice(n)||"/"}const Yc=s=>s.join("/").replace(/\/\/+/g,"/"),BS=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/");function HS(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}const Jx=["post","put","patch","delete"];new Set(Jx);const zS=["get",...Jx];new Set(zS);/**
 * React Router v6.17.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */const US=M.createContext(null),VS=M.createContext(null),Zx=M.createContext(null),Ty=M.createContext(null),th=M.createContext({outlet:null,matches:[],isDataRoute:!1}),Xx=M.createContext(null);function Ay(){return M.useContext(Ty)!=null}function Qx(){return Ay()||Si(!1),M.useContext(Ty).location}const GS=M.createContext(null);function $S(s){let o=M.useContext(th).outlet;return o&&M.createElement(GS.Provider,{value:s},o)}function KS(s,o){return qS(s)}function qS(s,o,n){Ay()||Si(!1);let{navigator:t}=M.useContext(Zx),{matches:i}=M.useContext(th),d=i[i.length-1],c=d?d.params:{};d&&d.pathname;let u=d?d.pathnameBase:"/";d&&d.route;let h=Qx(),g;g=h;let _=g.pathname||"/",m=u==="/"?_:_.slice(u.length)||"/",x=MS(s,{pathname:m});return eC(x&&x.map(v=>Object.assign({},v,{params:Object.assign({},c,v.params),pathname:Yc([u,t.encodeLocation?t.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?u:Yc([u,t.encodeLocation?t.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n)}function JS(){let s=sC(),o=HS(s)?s.status+" "+s.statusText:s instanceof Error?s.message:JSON.stringify(s),n=s instanceof Error?s.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},o),n?M.createElement("pre",{style:i},n):null,null)}const ZS=M.createElement(JS,null);class XS extends M.Component{constructor(o){super(o),this.state={location:o.location,revalidation:o.revalidation,error:o.error}}static getDerivedStateFromError(o){return{error:o}}static getDerivedStateFromProps(o,n){return n.location!==o.location||n.revalidation!=="idle"&&o.revalidation==="idle"?{error:o.error,location:o.location,revalidation:o.revalidation}:{error:o.error||n.error,location:n.location,revalidation:o.revalidation||n.revalidation}}componentDidCatch(o,n){console.error("React Router caught the following error during render",o,n)}render(){return this.state.error?M.createElement(th.Provider,{value:this.props.routeContext},M.createElement(Xx.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function QS(s){let{routeContext:o,match:n,children:t}=s,i=M.useContext(US);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),M.createElement(th.Provider,{value:o},t)}function eC(s,o,n){var t;if(o===void 0&&(o=[]),n===void 0&&(n=null),s==null){var i;if((i=n)!=null&&i.errors)s=n.matches;else return null}let d=s,c=(t=n)==null?void 0:t.errors;if(c!=null){let u=d.findIndex(h=>h.route.id&&c?.[h.route.id]);u>=0||Si(!1),d=d.slice(0,Math.min(d.length,u+1))}return d.reduceRight((u,h,g)=>{let _=h.route.id?c?.[h.route.id]:null,m=null;n&&(m=h.route.errorElement||ZS);let x=o.concat(d.slice(0,g+1)),y=()=>{let v;return _?v=m:h.route.Component?v=M.createElement(h.route.Component,null):h.route.element?v=h.route.element:v=u,M.createElement(QS,{match:h,routeContext:{outlet:u,matches:x,isDataRoute:n!=null},children:v})};return n&&(h.route.ErrorBoundary||h.route.errorElement||g===0)?M.createElement(XS,{location:n.location,revalidation:n.revalidation,component:m,error:_,children:y(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):y()},null)}var e0=(function(s){return s.UseBlocker="useBlocker",s.UseLoaderData="useLoaderData",s.UseActionData="useActionData",s.UseRouteError="useRouteError",s.UseNavigation="useNavigation",s.UseRouteLoaderData="useRouteLoaderData",s.UseMatches="useMatches",s.UseRevalidator="useRevalidator",s.UseNavigateStable="useNavigate",s.UseRouteId="useRouteId",s})(e0||{});function tC(s){let o=M.useContext(VS);return o||Si(!1),o}function nC(s){let o=M.useContext(th);return o||Si(!1),o}function rC(s){let o=nC(),n=o.matches[o.matches.length-1];return n.route.id||Si(!1),n.route.id}function sC(){var s;let o=M.useContext(Xx),n=tC(e0.UseRouteError),t=rC();return o||((s=n.errors)==null?void 0:s[t])}function oC(s){return $S(s.context)}function iC(s){let{basename:o="/",children:n=null,location:t,navigationType:i=id.Pop,navigator:d,static:c=!1}=s;Ay()&&Si(!1);let u=o.replace(/^\/*/,"/"),h=M.useMemo(()=>({basename:u,navigator:d,static:c}),[u,d,c]);typeof t=="string"&&(t=Xf(t));let{pathname:g="/",search:_="",hash:m="",state:x=null,key:y="default"}=t,v=M.useMemo(()=>{let b=qx(g,u);return b==null?null:{location:{pathname:b,search:_,hash:m,state:x,key:y},navigationType:i}},[u,g,_,m,x,y,i]);return v==null?null:M.createElement(Zx.Provider,{value:h},M.createElement(Ty.Provider,{children:n,value:v}))}new Promise(()=>{});/**
 * React Router DOM v6.17.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */const aC="startTransition",bw=Vx[aC];function lC(s){let{basename:o,children:n,future:t,window:i}=s,d=M.useRef();d.current==null&&(d.current=SS({window:i,v5Compat:!0}));let c=d.current,[u,h]=M.useState({action:c.action,location:c.location}),{v7_startTransition:g}=t||{},_=M.useCallback(m=>{g&&bw?bw(()=>h(m)):h(m)},[h,g]);return M.useLayoutEffect(()=>c.listen(_),[c,_]),M.createElement(iC,{basename:o,children:n,location:u.location,navigationType:u.action,navigator:c})}var Sw;(function(s){s.UseScrollRestoration="useScrollRestoration",s.UseSubmit="useSubmit",s.UseSubmitFetcher="useSubmitFetcher",s.UseFetcher="useFetcher",s.useViewTransitionState="useViewTransitionState"})(Sw||(Sw={}));var Cw;(function(s){s.UseFetchers="useFetchers",s.UseScrollRestoration="useScrollRestoration"})(Cw||(Cw={}));function t0(s,o){return function(){return s.apply(o,arguments)}}const{toString:dC}=Object.prototype,{getPrototypeOf:Py}=Object,{iterator:Qf,toStringTag:n0}=Symbol,eg=(s=>o=>{const n=dC.call(o);return s[n]||(s[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Uo=s=>(s=s.toLowerCase(),o=>eg(o)===s),tg=s=>o=>typeof o===s,{isArray:Qc}=Array,$c=tg("undefined");function nh(s){return s!==null&&!$c(s)&&s.constructor!==null&&!$c(s.constructor)&&us(s.constructor.isBuffer)&&s.constructor.isBuffer(s)}const r0=Uo("ArrayBuffer");function cC(s){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(s):o=s&&s.buffer&&r0(s.buffer),o}const uC=tg("string"),us=tg("function"),s0=tg("number"),rh=s=>s!==null&&typeof s=="object",pC=s=>s===!0||s===!1,Cf=s=>{if(eg(s)!=="object")return!1;const o=Py(s);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(n0 in s)&&!(Qf in s)},hC=s=>{if(!rh(s)||nh(s))return!1;try{return Object.keys(s).length===0&&Object.getPrototypeOf(s)===Object.prototype}catch{return!1}},mC=Uo("Date"),fC=Uo("File"),gC=Uo("Blob"),_C=Uo("FileList"),yC=s=>rh(s)&&us(s.pipe),wC=s=>{let o;return s&&(typeof FormData=="function"&&s instanceof FormData||us(s.append)&&((o=eg(s))==="formdata"||o==="object"&&us(s.toString)&&s.toString()==="[object FormData]"))},vC=Uo("URLSearchParams"),[xC,bC,SC,CC]=["ReadableStream","Request","Response","Headers"].map(Uo),kC=s=>s.trim?s.trim():s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sh(s,o,{allOwnKeys:n=!1}={}){if(s===null||typeof s>"u")return;let t,i;if(typeof s!="object"&&(s=[s]),Qc(s))for(t=0,i=s.length;t<i;t++)o.call(null,s[t],t,s);else{if(nh(s))return;const d=n?Object.getOwnPropertyNames(s):Object.keys(s),c=d.length;let u;for(t=0;t<c;t++)u=d[t],o.call(null,s[u],u,s)}}function o0(s,o){if(nh(s))return null;o=o.toLowerCase();const n=Object.keys(s);let t=n.length,i;for(;t-- >0;)if(i=n[t],o===i.toLowerCase())return i;return null}const ad=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,i0=s=>!$c(s)&&s!==ad;function sy(){const{caseless:s,skipUndefined:o}=i0(this)&&this||{},n={},t=(i,d)=>{const c=s&&o0(n,d)||d;Cf(n[c])&&Cf(i)?n[c]=sy(n[c],i):Cf(i)?n[c]=sy({},i):Qc(i)?n[c]=i.slice():(!o||!$c(i))&&(n[c]=i)};for(let i=0,d=arguments.length;i<d;i++)arguments[i]&&sh(arguments[i],t);return n}const MC=(s,o,n,{allOwnKeys:t}={})=>(sh(o,(i,d)=>{n&&us(i)?s[d]=t0(i,n):s[d]=i},{allOwnKeys:t}),s),jC=s=>(s.charCodeAt(0)===65279&&(s=s.slice(1)),s),LC=(s,o,n,t)=>{s.prototype=Object.create(o.prototype,t),s.prototype.constructor=s,Object.defineProperty(s,"super",{value:o.prototype}),n&&Object.assign(s.prototype,n)},EC=(s,o,n,t)=>{let i,d,c;const u={};if(o=o||{},s==null)return o;do{for(i=Object.getOwnPropertyNames(s),d=i.length;d-- >0;)c=i[d],(!t||t(c,s,o))&&!u[c]&&(o[c]=s[c],u[c]=!0);s=n!==!1&&Py(s)}while(s&&(!n||n(s,o))&&s!==Object.prototype);return o},DC=(s,o,n)=>{s=String(s),(n===void 0||n>s.length)&&(n=s.length),n-=o.length;const t=s.indexOf(o,n);return t!==-1&&t===n},IC=s=>{if(!s)return null;if(Qc(s))return s;let o=s.length;if(!s0(o))return null;const n=new Array(o);for(;o-- >0;)n[o]=s[o];return n},TC=(s=>o=>s&&o instanceof s)(typeof Uint8Array<"u"&&Py(Uint8Array)),AC=(s,o)=>{const t=(s&&s[Qf]).call(s);let i;for(;(i=t.next())&&!i.done;){const d=i.value;o.call(s,d[0],d[1])}},PC=(s,o)=>{let n;const t=[];for(;(n=s.exec(o))!==null;)t.push(n);return t},RC=Uo("HTMLFormElement"),FC=s=>s.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,t,i){return t.toUpperCase()+i}),kw=(({hasOwnProperty:s})=>(o,n)=>s.call(o,n))(Object.prototype),NC=Uo("RegExp"),a0=(s,o)=>{const n=Object.getOwnPropertyDescriptors(s),t={};sh(n,(i,d)=>{let c;(c=o(i,d,s))!==!1&&(t[d]=c||i)}),Object.defineProperties(s,t)},OC=s=>{a0(s,(o,n)=>{if(us(s)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const t=s[n];if(us(t)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},YC=(s,o)=>{const n={},t=i=>{i.forEach(d=>{n[d]=!0})};return Qc(s)?t(s):t(String(s).split(o)),n},WC=()=>{},BC=(s,o)=>s!=null&&Number.isFinite(s=+s)?s:o;function HC(s){return!!(s&&us(s.append)&&s[n0]==="FormData"&&s[Qf])}const zC=s=>{const o=new Array(10),n=(t,i)=>{if(rh(t)){if(o.indexOf(t)>=0)return;if(nh(t))return t;if(!("toJSON"in t)){o[i]=t;const d=Qc(t)?[]:{};return sh(t,(c,u)=>{const h=n(c,i+1);!$c(h)&&(d[u]=h)}),o[i]=void 0,d}}return t};return n(s,0)},UC=Uo("AsyncFunction"),VC=s=>s&&(rh(s)||us(s))&&us(s.then)&&us(s.catch),l0=((s,o)=>s?setImmediate:o?((n,t)=>(ad.addEventListener("message",({source:i,data:d})=>{i===ad&&d===n&&t.length&&t.shift()()},!1),i=>{t.push(i),ad.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",us(ad.postMessage)),GC=typeof queueMicrotask<"u"?queueMicrotask.bind(ad):typeof process<"u"&&process.nextTick||l0,$C=s=>s!=null&&us(s[Qf]),ye={isArray:Qc,isArrayBuffer:r0,isBuffer:nh,isFormData:wC,isArrayBufferView:cC,isString:uC,isNumber:s0,isBoolean:pC,isObject:rh,isPlainObject:Cf,isEmptyObject:hC,isReadableStream:xC,isRequest:bC,isResponse:SC,isHeaders:CC,isUndefined:$c,isDate:mC,isFile:fC,isBlob:gC,isRegExp:NC,isFunction:us,isStream:yC,isURLSearchParams:vC,isTypedArray:TC,isFileList:_C,forEach:sh,merge:sy,extend:MC,trim:kC,stripBOM:jC,inherits:LC,toFlatObject:EC,kindOf:eg,kindOfTest:Uo,endsWith:DC,toArray:IC,forEachEntry:AC,matchAll:PC,isHTMLForm:RC,hasOwnProperty:kw,hasOwnProp:kw,reduceDescriptors:a0,freezeMethods:OC,toObjectSet:YC,toCamelCase:FC,noop:WC,toFiniteNumber:BC,findKey:o0,global:ad,isContextDefined:i0,isSpecCompliantForm:HC,toJSONObject:zC,isAsyncFn:UC,isThenable:VC,setImmediate:l0,asap:GC,isIterable:$C};function ut(s,o,n,t,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=s,this.name="AxiosError",o&&(this.code=o),n&&(this.config=n),t&&(this.request=t),i&&(this.response=i,this.status=i.status?i.status:null)}ye.inherits(ut,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ye.toJSONObject(this.config),code:this.code,status:this.status}}});const d0=ut.prototype,c0={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(s=>{c0[s]={value:s}});Object.defineProperties(ut,c0);Object.defineProperty(d0,"isAxiosError",{value:!0});ut.from=(s,o,n,t,i,d)=>{const c=Object.create(d0);ye.toFlatObject(s,c,function(_){return _!==Error.prototype},g=>g!=="isAxiosError");const u=s&&s.message?s.message:"Error",h=o==null&&s?s.code:o;return ut.call(c,u,h,n,t,i),s&&c.cause==null&&Object.defineProperty(c,"cause",{value:s,configurable:!0}),c.name=s&&s.name||"Error",d&&Object.assign(c,d),c};const KC=null;function oy(s){return ye.isPlainObject(s)||ye.isArray(s)}function u0(s){return ye.endsWith(s,"[]")?s.slice(0,-2):s}function Mw(s,o,n){return s?s.concat(o).map(function(i,d){return i=u0(i),!n&&d?"["+i+"]":i}).join(n?".":""):o}function qC(s){return ye.isArray(s)&&!s.some(oy)}const JC=ye.toFlatObject(ye,{},null,function(o){return/^is[A-Z]/.test(o)});function ng(s,o,n){if(!ye.isObject(s))throw new TypeError("target must be an object");o=o||new FormData,n=ye.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,C){return!ye.isUndefined(C[b])});const t=n.metaTokens,i=n.visitor||_,d=n.dots,c=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&ye.isSpecCompliantForm(o);if(!ye.isFunction(i))throw new TypeError("visitor must be a function");function g(v){if(v===null)return"";if(ye.isDate(v))return v.toISOString();if(ye.isBoolean(v))return v.toString();if(!h&&ye.isBlob(v))throw new ut("Blob is not supported. Use a Buffer instead.");return ye.isArrayBuffer(v)||ye.isTypedArray(v)?h&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function _(v,b,C){let k=v;if(v&&!C&&typeof v=="object"){if(ye.endsWith(b,"{}"))b=t?b:b.slice(0,-2),v=JSON.stringify(v);else if(ye.isArray(v)&&qC(v)||(ye.isFileList(v)||ye.endsWith(b,"[]"))&&(k=ye.toArray(v)))return b=u0(b),k.forEach(function(I,A){!(ye.isUndefined(I)||I===null)&&o.append(c===!0?Mw([b],A,d):c===null?b:b+"[]",g(I))}),!1}return oy(v)?!0:(o.append(Mw(C,b,d),g(v)),!1)}const m=[],x=Object.assign(JC,{defaultVisitor:_,convertValue:g,isVisitable:oy});function y(v,b){if(!ye.isUndefined(v)){if(m.indexOf(v)!==-1)throw Error("Circular reference detected in "+b.join("."));m.push(v),ye.forEach(v,function(k,L){(!(ye.isUndefined(k)||k===null)&&i.call(o,k,ye.isString(L)?L.trim():L,b,x))===!0&&y(k,b?b.concat(L):[L])}),m.pop()}}if(!ye.isObject(s))throw new TypeError("data must be an object");return y(s),o}function jw(s){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(s).replace(/[!'()~]|%20|%00/g,function(t){return o[t]})}function Ry(s,o){this._pairs=[],s&&ng(s,this,o)}const p0=Ry.prototype;p0.append=function(o,n){this._pairs.push([o,n])};p0.toString=function(o){const n=o?function(t){return o.call(this,t,jw)}:jw;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function ZC(s){return encodeURIComponent(s).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function h0(s,o,n){if(!o)return s;const t=n&&n.encode||ZC;ye.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let d;if(i?d=i(o,n):d=ye.isURLSearchParams(o)?o.toString():new Ry(o,n).toString(t),d){const c=s.indexOf("#");c!==-1&&(s=s.slice(0,c)),s+=(s.indexOf("?")===-1?"?":"&")+d}return s}class Lw{constructor(){this.handlers=[]}use(o,n,t){return this.handlers.push({fulfilled:o,rejected:n,synchronous:t?t.synchronous:!1,runWhen:t?t.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){ye.forEach(this.handlers,function(t){t!==null&&o(t)})}}const m0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},XC=typeof URLSearchParams<"u"?URLSearchParams:Ry,QC=typeof FormData<"u"?FormData:null,ek=typeof Blob<"u"?Blob:null,tk={isBrowser:!0,classes:{URLSearchParams:XC,FormData:QC,Blob:ek},protocols:["http","https","file","blob","url","data"]},Fy=typeof window<"u"&&typeof document<"u",iy=typeof navigator=="object"&&navigator||void 0,nk=Fy&&(!iy||["ReactNative","NativeScript","NS"].indexOf(iy.product)<0),rk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sk=Fy&&window.location.href||"http://localhost",ok=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Fy,hasStandardBrowserEnv:nk,hasStandardBrowserWebWorkerEnv:rk,navigator:iy,origin:sk},Symbol.toStringTag,{value:"Module"})),jr={...ok,...tk};function ik(s,o){return ng(s,new jr.classes.URLSearchParams,{visitor:function(n,t,i,d){return jr.isNode&&ye.isBuffer(n)?(this.append(t,n.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)},...o})}function ak(s){return ye.matchAll(/\w+|\[(\w*)]/g,s).map(o=>o[0]==="[]"?"":o[1]||o[0])}function lk(s){const o={},n=Object.keys(s);let t;const i=n.length;let d;for(t=0;t<i;t++)d=n[t],o[d]=s[d];return o}function f0(s){function o(n,t,i,d){let c=n[d++];if(c==="__proto__")return!0;const u=Number.isFinite(+c),h=d>=n.length;return c=!c&&ye.isArray(i)?i.length:c,h?(ye.hasOwnProp(i,c)?i[c]=[i[c],t]:i[c]=t,!u):((!i[c]||!ye.isObject(i[c]))&&(i[c]=[]),o(n,t,i[c],d)&&ye.isArray(i[c])&&(i[c]=lk(i[c])),!u)}if(ye.isFormData(s)&&ye.isFunction(s.entries)){const n={};return ye.forEachEntry(s,(t,i)=>{o(ak(t),i,n,0)}),n}return null}function dk(s,o,n){if(ye.isString(s))try{return(o||JSON.parse)(s),ye.trim(s)}catch(t){if(t.name!=="SyntaxError")throw t}return(n||JSON.stringify)(s)}const oh={transitional:m0,adapter:["xhr","http","fetch"],transformRequest:[function(o,n){const t=n.getContentType()||"",i=t.indexOf("application/json")>-1,d=ye.isObject(o);if(d&&ye.isHTMLForm(o)&&(o=new FormData(o)),ye.isFormData(o))return i?JSON.stringify(f0(o)):o;if(ye.isArrayBuffer(o)||ye.isBuffer(o)||ye.isStream(o)||ye.isFile(o)||ye.isBlob(o)||ye.isReadableStream(o))return o;if(ye.isArrayBufferView(o))return o.buffer;if(ye.isURLSearchParams(o))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),o.toString();let u;if(d){if(t.indexOf("application/x-www-form-urlencoded")>-1)return ik(o,this.formSerializer).toString();if((u=ye.isFileList(o))||t.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return ng(u?{"files[]":o}:o,h&&new h,this.formSerializer)}}return d||i?(n.setContentType("application/json",!1),dk(o)):o}],transformResponse:[function(o){const n=this.transitional||oh.transitional,t=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ye.isResponse(o)||ye.isReadableStream(o))return o;if(o&&ye.isString(o)&&(t&&!this.responseType||i)){const c=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(o,this.parseReviver)}catch(u){if(c)throw u.name==="SyntaxError"?ut.from(u,ut.ERR_BAD_RESPONSE,this,null,this.response):u}}return o}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jr.classes.FormData,Blob:jr.classes.Blob},validateStatus:function(o){return o>=200&&o<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ye.forEach(["delete","get","head","post","put","patch"],s=>{oh.headers[s]={}});const ck=ye.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),uk=s=>{const o={};let n,t,i;return s&&s.split(`
`).forEach(function(c){i=c.indexOf(":"),n=c.substring(0,i).trim().toLowerCase(),t=c.substring(i+1).trim(),!(!n||o[n]&&ck[n])&&(n==="set-cookie"?o[n]?o[n].push(t):o[n]=[t]:o[n]=o[n]?o[n]+", "+t:t)}),o},Ew=Symbol("internals");function xp(s){return s&&String(s).trim().toLowerCase()}function kf(s){return s===!1||s==null?s:ye.isArray(s)?s.map(kf):String(s)}function pk(s){const o=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let t;for(;t=n.exec(s);)o[t[1]]=t[2];return o}const hk=s=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(s.trim());function b_(s,o,n,t,i){if(ye.isFunction(t))return t.call(this,o,n);if(i&&(o=n),!!ye.isString(o)){if(ye.isString(t))return o.indexOf(t)!==-1;if(ye.isRegExp(t))return t.test(o)}}function mk(s){return s.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,n,t)=>n.toUpperCase()+t)}function fk(s,o){const n=ye.toCamelCase(" "+o);["get","set","has"].forEach(t=>{Object.defineProperty(s,t+n,{value:function(i,d,c){return this[t].call(this,o,i,d,c)},configurable:!0})})}let ps=class{constructor(o){o&&this.set(o)}set(o,n,t){const i=this;function d(u,h,g){const _=xp(h);if(!_)throw new Error("header name must be a non-empty string");const m=ye.findKey(i,_);(!m||i[m]===void 0||g===!0||g===void 0&&i[m]!==!1)&&(i[m||h]=kf(u))}const c=(u,h)=>ye.forEach(u,(g,_)=>d(g,_,h));if(ye.isPlainObject(o)||o instanceof this.constructor)c(o,n);else if(ye.isString(o)&&(o=o.trim())&&!hk(o))c(uk(o),n);else if(ye.isObject(o)&&ye.isIterable(o)){let u={},h,g;for(const _ of o){if(!ye.isArray(_))throw TypeError("Object iterator must return a key-value pair");u[g=_[0]]=(h=u[g])?ye.isArray(h)?[...h,_[1]]:[h,_[1]]:_[1]}c(u,n)}else o!=null&&d(n,o,t);return this}get(o,n){if(o=xp(o),o){const t=ye.findKey(this,o);if(t){const i=this[t];if(!n)return i;if(n===!0)return pk(i);if(ye.isFunction(n))return n.call(this,i,t);if(ye.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,n){if(o=xp(o),o){const t=ye.findKey(this,o);return!!(t&&this[t]!==void 0&&(!n||b_(this,this[t],t,n)))}return!1}delete(o,n){const t=this;let i=!1;function d(c){if(c=xp(c),c){const u=ye.findKey(t,c);u&&(!n||b_(t,t[u],u,n))&&(delete t[u],i=!0)}}return ye.isArray(o)?o.forEach(d):d(o),i}clear(o){const n=Object.keys(this);let t=n.length,i=!1;for(;t--;){const d=n[t];(!o||b_(this,this[d],d,o,!0))&&(delete this[d],i=!0)}return i}normalize(o){const n=this,t={};return ye.forEach(this,(i,d)=>{const c=ye.findKey(t,d);if(c){n[c]=kf(i),delete n[d];return}const u=o?mk(d):String(d).trim();u!==d&&delete n[d],n[u]=kf(i),t[u]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const n=Object.create(null);return ye.forEach(this,(t,i)=>{t!=null&&t!==!1&&(n[i]=o&&ye.isArray(t)?t.join(", "):t)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,n])=>o+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...n){const t=new this(o);return n.forEach(i=>t.set(i)),t}static accessor(o){const t=(this[Ew]=this[Ew]={accessors:{}}).accessors,i=this.prototype;function d(c){const u=xp(c);t[u]||(fk(i,c),t[u]=!0)}return ye.isArray(o)?o.forEach(d):d(o),this}};ps.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ye.reduceDescriptors(ps.prototype,({value:s},o)=>{let n=o[0].toUpperCase()+o.slice(1);return{get:()=>s,set(t){this[n]=t}}});ye.freezeMethods(ps);function S_(s,o){const n=this||oh,t=o||n,i=ps.from(t.headers);let d=t.data;return ye.forEach(s,function(u){d=u.call(n,d,i.normalize(),o?o.status:void 0)}),i.normalize(),d}function g0(s){return!!(s&&s.__CANCEL__)}function eu(s,o,n){ut.call(this,s??"canceled",ut.ERR_CANCELED,o,n),this.name="CanceledError"}ye.inherits(eu,ut,{__CANCEL__:!0});function _0(s,o,n){const t=n.config.validateStatus;!n.status||!t||t(n.status)?s(n):o(new ut("Request failed with status code "+n.status,[ut.ERR_BAD_REQUEST,ut.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function gk(s){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(s);return o&&o[1]||""}function _k(s,o){s=s||10;const n=new Array(s),t=new Array(s);let i=0,d=0,c;return o=o!==void 0?o:1e3,function(h){const g=Date.now(),_=t[d];c||(c=g),n[i]=h,t[i]=g;let m=d,x=0;for(;m!==i;)x+=n[m++],m=m%s;if(i=(i+1)%s,i===d&&(d=(d+1)%s),g-c<o)return;const y=_&&g-_;return y?Math.round(x*1e3/y):void 0}}function yk(s,o){let n=0,t=1e3/o,i,d;const c=(g,_=Date.now())=>{n=_,i=null,d&&(clearTimeout(d),d=null),s(...g)};return[(...g)=>{const _=Date.now(),m=_-n;m>=t?c(g,_):(i=g,d||(d=setTimeout(()=>{d=null,c(i)},t-m)))},()=>i&&c(i)]}const Wf=(s,o,n=3)=>{let t=0;const i=_k(50,250);return yk(d=>{const c=d.loaded,u=d.lengthComputable?d.total:void 0,h=c-t,g=i(h),_=c<=u;t=c;const m={loaded:c,total:u,progress:u?c/u:void 0,bytes:h,rate:g||void 0,estimated:g&&u&&_?(u-c)/g:void 0,event:d,lengthComputable:u!=null,[o?"download":"upload"]:!0};s(m)},n)},Dw=(s,o)=>{const n=s!=null;return[t=>o[0]({lengthComputable:n,total:s,loaded:t}),o[1]]},Iw=s=>(...o)=>ye.asap(()=>s(...o)),wk=jr.hasStandardBrowserEnv?((s,o)=>n=>(n=new URL(n,jr.origin),s.protocol===n.protocol&&s.host===n.host&&(o||s.port===n.port)))(new URL(jr.origin),jr.navigator&&/(msie|trident)/i.test(jr.navigator.userAgent)):()=>!0,vk=jr.hasStandardBrowserEnv?{write(s,o,n,t,i,d){const c=[s+"="+encodeURIComponent(o)];ye.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),ye.isString(t)&&c.push("path="+t),ye.isString(i)&&c.push("domain="+i),d===!0&&c.push("secure"),document.cookie=c.join("; ")},read(s){const o=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove(s){this.write(s,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function xk(s){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(s)}function bk(s,o){return o?s.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):s}function y0(s,o,n){let t=!xk(o);return s&&(t||n==!1)?bk(s,o):o}const Tw=s=>s instanceof ps?{...s}:s;function hd(s,o){o=o||{};const n={};function t(g,_,m,x){return ye.isPlainObject(g)&&ye.isPlainObject(_)?ye.merge.call({caseless:x},g,_):ye.isPlainObject(_)?ye.merge({},_):ye.isArray(_)?_.slice():_}function i(g,_,m,x){if(ye.isUndefined(_)){if(!ye.isUndefined(g))return t(void 0,g,m,x)}else return t(g,_,m,x)}function d(g,_){if(!ye.isUndefined(_))return t(void 0,_)}function c(g,_){if(ye.isUndefined(_)){if(!ye.isUndefined(g))return t(void 0,g)}else return t(void 0,_)}function u(g,_,m){if(m in o)return t(g,_);if(m in s)return t(void 0,g)}const h={url:d,method:d,data:d,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:u,headers:(g,_,m)=>i(Tw(g),Tw(_),m,!0)};return ye.forEach(Object.keys({...s,...o}),function(_){const m=h[_]||i,x=m(s[_],o[_],_);ye.isUndefined(x)&&m!==u||(n[_]=x)}),n}const w0=s=>{const o=hd({},s);let{data:n,withXSRFToken:t,xsrfHeaderName:i,xsrfCookieName:d,headers:c,auth:u}=o;if(o.headers=c=ps.from(c),o.url=h0(y0(o.baseURL,o.url,o.allowAbsoluteUrls),s.params,s.paramsSerializer),u&&c.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),ye.isFormData(n)){if(jr.hasStandardBrowserEnv||jr.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(ye.isFunction(n.getHeaders)){const h=n.getHeaders(),g=["content-type","content-length"];Object.entries(h).forEach(([_,m])=>{g.includes(_.toLowerCase())&&c.set(_,m)})}}if(jr.hasStandardBrowserEnv&&(t&&ye.isFunction(t)&&(t=t(o)),t||t!==!1&&wk(o.url))){const h=i&&d&&vk.read(d);h&&c.set(i,h)}return o},Sk=typeof XMLHttpRequest<"u",Ck=Sk&&function(s){return new Promise(function(n,t){const i=w0(s);let d=i.data;const c=ps.from(i.headers).normalize();let{responseType:u,onUploadProgress:h,onDownloadProgress:g}=i,_,m,x,y,v;function b(){y&&y(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(_),i.signal&&i.signal.removeEventListener("abort",_)}let C=new XMLHttpRequest;C.open(i.method.toUpperCase(),i.url,!0),C.timeout=i.timeout;function k(){if(!C)return;const I=ps.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),Y={data:!u||u==="text"||u==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:I,config:s,request:C};_0(function(T){n(T),b()},function(T){t(T),b()},Y),C=null}"onloadend"in C?C.onloadend=k:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(k)},C.onabort=function(){C&&(t(new ut("Request aborted",ut.ECONNABORTED,s,C)),C=null)},C.onerror=function(A){const Y=A&&A.message?A.message:"Network Error",P=new ut(Y,ut.ERR_NETWORK,s,C);P.event=A||null,t(P),C=null},C.ontimeout=function(){let A=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const Y=i.transitional||m0;i.timeoutErrorMessage&&(A=i.timeoutErrorMessage),t(new ut(A,Y.clarifyTimeoutError?ut.ETIMEDOUT:ut.ECONNABORTED,s,C)),C=null},d===void 0&&c.setContentType(null),"setRequestHeader"in C&&ye.forEach(c.toJSON(),function(A,Y){C.setRequestHeader(Y,A)}),ye.isUndefined(i.withCredentials)||(C.withCredentials=!!i.withCredentials),u&&u!=="json"&&(C.responseType=i.responseType),g&&([x,v]=Wf(g,!0),C.addEventListener("progress",x)),h&&C.upload&&([m,y]=Wf(h),C.upload.addEventListener("progress",m),C.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(_=I=>{C&&(t(!I||I.type?new eu(null,s,C):I),C.abort(),C=null)},i.cancelToken&&i.cancelToken.subscribe(_),i.signal&&(i.signal.aborted?_():i.signal.addEventListener("abort",_)));const L=gk(i.url);if(L&&jr.protocols.indexOf(L)===-1){t(new ut("Unsupported protocol "+L+":",ut.ERR_BAD_REQUEST,s));return}C.send(d||null)})},kk=(s,o)=>{const{length:n}=s=s?s.filter(Boolean):[];if(o||n){let t=new AbortController,i;const d=function(g){if(!i){i=!0,u();const _=g instanceof Error?g:this.reason;t.abort(_ instanceof ut?_:new eu(_ instanceof Error?_.message:_))}};let c=o&&setTimeout(()=>{c=null,d(new ut(`timeout ${o} of ms exceeded`,ut.ETIMEDOUT))},o);const u=()=>{s&&(c&&clearTimeout(c),c=null,s.forEach(g=>{g.unsubscribe?g.unsubscribe(d):g.removeEventListener("abort",d)}),s=null)};s.forEach(g=>g.addEventListener("abort",d));const{signal:h}=t;return h.unsubscribe=()=>ye.asap(u),h}},Mk=function*(s,o){let n=s.byteLength;if(n<o){yield s;return}let t=0,i;for(;t<n;)i=t+o,yield s.slice(t,i),t=i},jk=async function*(s,o){for await(const n of Lk(s))yield*Mk(n,o)},Lk=async function*(s){if(s[Symbol.asyncIterator]){yield*s;return}const o=s.getReader();try{for(;;){const{done:n,value:t}=await o.read();if(n)break;yield t}}finally{await o.cancel()}},Aw=(s,o,n,t)=>{const i=jk(s,o);let d=0,c,u=h=>{c||(c=!0,t&&t(h))};return new ReadableStream({async pull(h){try{const{done:g,value:_}=await i.next();if(g){u(),h.close();return}let m=_.byteLength;if(n){let x=d+=m;n(x)}h.enqueue(new Uint8Array(_))}catch(g){throw u(g),g}},cancel(h){return u(h),i.return()}},{highWaterMark:2})},Pw=64*1024,{isFunction:Um}=ye,v0=(({fetch:s,Request:o,Response:n})=>({fetch:s,Request:o,Response:n}))(ye.global),{ReadableStream:Rw,TextEncoder:Fw}=ye.global,Nw=(s,...o)=>{try{return!!s(...o)}catch{return!1}},Ek=s=>{const{fetch:o,Request:n,Response:t}=Object.assign({},v0,s),i=Um(o),d=Um(n),c=Um(t);if(!i)return!1;const u=i&&Um(Rw),h=i&&(typeof Fw=="function"?(v=>b=>v.encode(b))(new Fw):async v=>new Uint8Array(await new n(v).arrayBuffer())),g=d&&u&&Nw(()=>{let v=!1;const b=new n(jr.origin,{body:new Rw,method:"POST",get duplex(){return v=!0,"half"}}).headers.has("Content-Type");return v&&!b}),_=c&&u&&Nw(()=>ye.isReadableStream(new t("").body)),m={stream:_&&(v=>v.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!m[v]&&(m[v]=(b,C)=>{let k=b&&b[v];if(k)return k.call(b);throw new ut(`Response type '${v}' is not supported`,ut.ERR_NOT_SUPPORT,C)})});const x=async v=>{if(v==null)return 0;if(ye.isBlob(v))return v.size;if(ye.isSpecCompliantForm(v))return(await new n(jr.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(ye.isArrayBufferView(v)||ye.isArrayBuffer(v))return v.byteLength;if(ye.isURLSearchParams(v)&&(v=v+""),ye.isString(v))return(await h(v)).byteLength},y=async(v,b)=>{const C=ye.toFiniteNumber(v.getContentLength());return C??x(b)};return async v=>{let{url:b,method:C,data:k,signal:L,cancelToken:I,timeout:A,onDownloadProgress:Y,onUploadProgress:P,responseType:T,headers:F,withCredentials:H="same-origin",fetchOptions:W}=w0(v);T=T?(T+"").toLowerCase():"text";let K=kk([L,I&&I.toAbortSignal()],A),Z=null;const Q=K&&K.unsubscribe&&(()=>{K.unsubscribe()});let B;try{if(P&&g&&C!=="get"&&C!=="head"&&(B=await y(F,k))!==0){let V=new n(b,{method:"POST",body:k,duplex:"half"}),z;if(ye.isFormData(k)&&(z=V.headers.get("content-type"))&&F.setContentType(z),V.body){const[J,ee]=Dw(B,Wf(Iw(P)));k=Aw(V.body,Pw,J,ee)}}ye.isString(H)||(H=H?"include":"omit");const R=d&&"credentials"in n.prototype,X={...W,signal:K,method:C.toUpperCase(),headers:F.normalize().toJSON(),body:k,duplex:"half",credentials:R?H:void 0};Z=d&&new n(b,X);let $=await(d?o(Z,W):o(b,X));const ie=_&&(T==="stream"||T==="response");if(_&&(Y||ie&&Q)){const V={};["status","statusText","headers"].forEach(he=>{V[he]=$[he]});const z=ye.toFiniteNumber($.headers.get("content-length")),[J,ee]=Y&&Dw(z,Wf(Iw(Y),!0))||[];$=new t(Aw($.body,Pw,J,()=>{ee&&ee(),Q&&Q()}),V)}T=T||"text";let le=await m[ye.findKey(m,T)||"text"]($,v);return!ie&&Q&&Q(),await new Promise((V,z)=>{_0(V,z,{data:le,headers:ps.from($.headers),status:$.status,statusText:$.statusText,config:v,request:Z})})}catch(R){throw Q&&Q(),R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message)?Object.assign(new ut("Network Error",ut.ERR_NETWORK,v,Z),{cause:R.cause||R}):ut.from(R,R&&R.code,v,Z)}}},Dk=new Map,x0=s=>{let o=ye.merge.call({skipUndefined:!0},v0,s?s.env:null);const{fetch:n,Request:t,Response:i}=o,d=[t,i,n];let c=d.length,u=c,h,g,_=Dk;for(;u--;)h=d[u],g=_.get(h),g===void 0&&_.set(h,g=u?new Map:Ek(o)),_=g;return g};x0();const ay={http:KC,xhr:Ck,fetch:{get:x0}};ye.forEach(ay,(s,o)=>{if(s){try{Object.defineProperty(s,"name",{value:o})}catch{}Object.defineProperty(s,"adapterName",{value:o})}});const Ow=s=>`- ${s}`,Ik=s=>ye.isFunction(s)||s===null||s===!1,b0={getAdapter:(s,o)=>{s=ye.isArray(s)?s:[s];const{length:n}=s;let t,i;const d={};for(let c=0;c<n;c++){t=s[c];let u;if(i=t,!Ik(t)&&(i=ay[(u=String(t)).toLowerCase()],i===void 0))throw new ut(`Unknown adapter '${u}'`);if(i&&(ye.isFunction(i)||(i=i.get(o))))break;d[u||"#"+c]=i}if(!i){const c=Object.entries(d).map(([h,g])=>`adapter ${h} `+(g===!1?"is not supported by the environment":"is not available in the build"));let u=n?c.length>1?`since :
`+c.map(Ow).join(`
`):" "+Ow(c[0]):"as no adapter specified";throw new ut("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i},adapters:ay};function C_(s){if(s.cancelToken&&s.cancelToken.throwIfRequested(),s.signal&&s.signal.aborted)throw new eu(null,s)}function Yw(s){return C_(s),s.headers=ps.from(s.headers),s.data=S_.call(s,s.transformRequest),["post","put","patch"].indexOf(s.method)!==-1&&s.headers.setContentType("application/x-www-form-urlencoded",!1),b0.getAdapter(s.adapter||oh.adapter,s)(s).then(function(t){return C_(s),t.data=S_.call(s,s.transformResponse,t),t.headers=ps.from(t.headers),t},function(t){return g0(t)||(C_(s),t&&t.response&&(t.response.data=S_.call(s,s.transformResponse,t.response),t.response.headers=ps.from(t.response.headers))),Promise.reject(t)})}const S0="1.12.0",rg={};["object","boolean","number","function","string","symbol"].forEach((s,o)=>{rg[s]=function(t){return typeof t===s||"a"+(o<1?"n ":" ")+s}});const Ww={};rg.transitional=function(o,n,t){function i(d,c){return"[Axios v"+S0+"] Transitional option '"+d+"'"+c+(t?". "+t:"")}return(d,c,u)=>{if(o===!1)throw new ut(i(c," has been removed"+(n?" in "+n:"")),ut.ERR_DEPRECATED);return n&&!Ww[c]&&(Ww[c]=!0,console.warn(i(c," has been deprecated since v"+n+" and will be removed in the near future"))),o?o(d,c,u):!0}};rg.spelling=function(o){return(n,t)=>(console.warn(`${t} is likely a misspelling of ${o}`),!0)};function Tk(s,o,n){if(typeof s!="object")throw new ut("options must be an object",ut.ERR_BAD_OPTION_VALUE);const t=Object.keys(s);let i=t.length;for(;i-- >0;){const d=t[i],c=o[d];if(c){const u=s[d],h=u===void 0||c(u,d,s);if(h!==!0)throw new ut("option "+d+" must be "+h,ut.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ut("Unknown option "+d,ut.ERR_BAD_OPTION)}}const Mf={assertOptions:Tk,validators:rg},fi=Mf.validators;let ld=class{constructor(o){this.defaults=o||{},this.interceptors={request:new Lw,response:new Lw}}async request(o,n){try{return await this._request(o,n)}catch(t){if(t instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const d=i.stack?i.stack.replace(/^.+\n/,""):"";try{t.stack?d&&!String(t.stack).endsWith(d.replace(/^.+\n.+\n/,""))&&(t.stack+=`
`+d):t.stack=d}catch{}}throw t}}_request(o,n){typeof o=="string"?(n=n||{},n.url=o):n=o||{},n=hd(this.defaults,n);const{transitional:t,paramsSerializer:i,headers:d}=n;t!==void 0&&Mf.assertOptions(t,{silentJSONParsing:fi.transitional(fi.boolean),forcedJSONParsing:fi.transitional(fi.boolean),clarifyTimeoutError:fi.transitional(fi.boolean)},!1),i!=null&&(ye.isFunction(i)?n.paramsSerializer={serialize:i}:Mf.assertOptions(i,{encode:fi.function,serialize:fi.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Mf.assertOptions(n,{baseUrl:fi.spelling("baseURL"),withXsrfToken:fi.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=d&&ye.merge(d.common,d[n.method]);d&&ye.forEach(["delete","get","head","post","put","patch","common"],v=>{delete d[v]}),n.headers=ps.concat(c,d);const u=[];let h=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(h=h&&b.synchronous,u.unshift(b.fulfilled,b.rejected))});const g=[];this.interceptors.response.forEach(function(b){g.push(b.fulfilled,b.rejected)});let _,m=0,x;if(!h){const v=[Yw.bind(this),void 0];for(v.unshift(...u),v.push(...g),x=v.length,_=Promise.resolve(n);m<x;)_=_.then(v[m++],v[m++]);return _}x=u.length;let y=n;for(m=0;m<x;){const v=u[m++],b=u[m++];try{y=v(y)}catch(C){b.call(this,C);break}}try{_=Yw.call(this,y)}catch(v){return Promise.reject(v)}for(m=0,x=g.length;m<x;)_=_.then(g[m++],g[m++]);return _}getUri(o){o=hd(this.defaults,o);const n=y0(o.baseURL,o.url,o.allowAbsoluteUrls);return h0(n,o.params,o.paramsSerializer)}};ye.forEach(["delete","get","head","options"],function(o){ld.prototype[o]=function(n,t){return this.request(hd(t||{},{method:o,url:n,data:(t||{}).data}))}});ye.forEach(["post","put","patch"],function(o){function n(t){return function(d,c,u){return this.request(hd(u||{},{method:o,headers:t?{"Content-Type":"multipart/form-data"}:{},url:d,data:c}))}}ld.prototype[o]=n(),ld.prototype[o+"Form"]=n(!0)});let Ak=class C0{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(d){n=d});const t=this;this.promise.then(i=>{if(!t._listeners)return;let d=t._listeners.length;for(;d-- >0;)t._listeners[d](i);t._listeners=null}),this.promise.then=i=>{let d;const c=new Promise(u=>{t.subscribe(u),d=u}).then(i);return c.cancel=function(){t.unsubscribe(d)},c},o(function(d,c,u){t.reason||(t.reason=new eu(d,c,u),n(t.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const n=this._listeners.indexOf(o);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const o=new AbortController,n=t=>{o.abort(t)};return this.subscribe(n),o.signal.unsubscribe=()=>this.unsubscribe(n),o.signal}static source(){let o;return{token:new C0(function(i){o=i}),cancel:o}}};function Pk(s){return function(n){return s.apply(null,n)}}function Rk(s){return ye.isObject(s)&&s.isAxiosError===!0}const ly={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ly).forEach(([s,o])=>{ly[o]=s});function k0(s){const o=new ld(s),n=t0(ld.prototype.request,o);return ye.extend(n,ld.prototype,o,{allOwnKeys:!0}),ye.extend(n,o,null,{allOwnKeys:!0}),n.create=function(i){return k0(hd(s,i))},n}const Ee=k0(oh);Ee.Axios=ld;Ee.CanceledError=eu;Ee.CancelToken=Ak;Ee.isCancel=g0;Ee.VERSION=S0;Ee.toFormData=ng;Ee.AxiosError=ut;Ee.Cancel=Ee.CanceledError;Ee.all=function(o){return Promise.all(o)};Ee.spread=Pk;Ee.isAxiosError=Rk;Ee.mergeConfig=hd;Ee.AxiosHeaders=ps;Ee.formToJSON=s=>f0(ye.isHTMLForm(s)?new FormData(s):s);Ee.getAdapter=b0.getAdapter;Ee.HttpStatusCode=ly;Ee.default=Ee;const{Axios:JF,AxiosError:ZF,CanceledError:XF,isCancel:QF,CancelToken:eN,VERSION:tN,all:nN,Cancel:rN,isAxiosError:sN,spread:oN,toFormData:iN,AxiosHeaders:aN,HttpStatusCode:lN,formToJSON:dN,getAdapter:cN,mergeConfig:uN}=Ee,As=s=>{const o=document.getElementsByTagName("script");for(let n=o.length-1;n>=0;n--)if(o[n].src.indexOf(s)>-1)return o[n].src;return null};function Zt(s){for(var o="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",t=0;t<s;t++)o+=n.charAt(Math.floor(Math.random()*n.length));return o}function yd(s,o){return s.filter(n=>n.errorFor==o)}async function Bw(s,o=!1){let n="";try{const t=await Ee.get(`https://www.wpo365.com/wp-json/wp/v2/${o?"pages":"posts"}?slug=${s}`);return t.data&&Array.isArray(t.data)&&t.data.length==1&&t.data[0].content&&t.data[0].content.rendered&&(n=t.data[0].content.rendered),n}catch(t){return t}}const Qr=(s,o)=>{try{return JSON.parse(s)}catch{}return o},Ja=(s,o)=>{if(!Array.isArray(s))throw"findIndex -> First argument is not an array";for(let n=0;n<s.length;n++)if(o(s[n]))return n;return-1},M0=s=>{let o=s;const n=[];n.push({name:"count",start:s.indexOf("$count="),stop:-1}),n.push({name:"expand",start:s.indexOf("$expand="),stop:-1}),n.push({name:"filter",start:s.indexOf("$filter="),stop:-1}),n.push({name:"format",start:s.indexOf("$format="),stop:-1}),n.push({name:"orderby",start:s.indexOf("$orderby="),stop:-1}),n.push({name:"search",start:s.indexOf("$search="),stop:-1}),n.push({name:"select",start:s.indexOf("$select="),stop:-1}),n.push({name:"skip",start:s.indexOf("$skip="),stop:-1}),n.push({name:"top",start:s.indexOf("$top="),stop:-1});for(let t=n.length-1;t>=0;t--)n[t].start==-1&&n.splice(t,1);n.sort((t,i)=>t.start<i.start?-1:t.start>i.start?1:0);for(let t=0;t<n.length-1;t++)n[t].stop=n[t+1].start-1;for(let t=0;t<n.length;t++){if(n[t].name=="filter"){const i=s.substring(n[t].start+8,n[t].stop>-1?n[t].stop:s.length);o=o.replace(i,encodeURIComponent(decodeURIComponent(i)));continue}if(n[t].name=="search"){const i=s.substring(n[t].start+8,n[t].stop>-1?n[t].stop:s.length);o=o.replace(i,encodeURIComponent(decodeURIComponent(i)));continue}}return o},Fk=s=>{const[o,n]=E.useState("3px 3px 20px rgb(0 0 0 / 0.2)"),t={position:"fixed",width:"60px",height:"60px",bottom:"35px",right:"35px",backgroundColor:"#f2f2f2",borderRadius:30,lineHeight:60,color:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid #0078D4",boxShadow:o,cursor:"pointer"};return e.jsx("div",{style:t,onMouseEnter:()=>n("3px 3px 20px rgb(0 0 0 / 0.6)"),onMouseLeave:()=>n("0 3px 10px rgb(0 0 0 / 0.2)"),onClick:()=>window.open("https://www.wpo365.com/contact/"),children:e.jsx("svg",{width:"25",height:"34",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"#0078D4",children:e.jsx("path",{d:"M202 0C122.2 0 70.5 32.7 29.9 91c-7.4 10.6-5.1 25.1 5.2 32.9l43.1 32.7c10.4 7.9 25.1 6 33.3-4.1 25-31.4 43.6-49.4 82.8-49.4 30.8 0 68.8 19.8 68.8 49.6 0 22.6-18.6 34.1-49 51.2-35.4 19.9-82.3 44.6-82.3 106.4V320c0 13.3 10.7 24 24 24h72.5c13.3 0 24-10.7 24-24v-5.8c0-42.9 125.3-44.6 125.3-160.6C377.5 66.3 286.9 0 202 0zM192 373.5c-38.2 0-69.3 31.1-69.3 69.3 0 38.2 31.1 69.3 69.3 69.3s69.3-31.1 69.3-69.3-31.1-69.3-69.3-69.3z"})})})};var Hw={},jf=void 0;try{jf=window}catch{}function Ny(s,o){if(typeof jf<"u"){var n=jf.__packages__=jf.__packages__||{};if(!n[s]||!Hw[s]){Hw[s]=o;var t=n[s]=n[s]||[];t.push(o)}}}Ny("@uifabric/set-version","6.0.0");/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var dy=function(s,o){return dy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])},dy(s,o)};function Ne(s,o){dy(s,o);function n(){this.constructor=s}s.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}var N=function(){return N=Object.assign||function(o){for(var n,t=1,i=arguments.length;t<i;t++){n=arguments[t];for(var d in n)Object.prototype.hasOwnProperty.call(n,d)&&(o[d]=n[d])}return o},N.apply(this,arguments)};function ms(s,o){var n={};for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&o.indexOf(t)<0&&(n[t]=s[t]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(s);i<t.length;i++)o.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(s,t[i])&&(n[t[i]]=s[t[i]]);return n}function yo(s,o,n,t){var i=arguments.length,d=i<3?o:t===null?t=Object.getOwnPropertyDescriptor(o,n):t,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(s,o,n,t);else for(var u=s.length-1;u>=0;u--)(c=s[u])&&(d=(i<3?c(d):i>3?c(o,n,d):c(o,n))||d);return i>3&&d&&Object.defineProperty(o,n,d),d}function Nn(){for(var s=0,o=0,n=arguments.length;o<n;o++)s+=arguments[o].length;for(var t=Array(s),i=0,o=0;o<n;o++)for(var d=arguments[o],c=0,u=d.length;c<u;c++,i++)t[i]=d[c];return t}var Vm={none:0,insertNode:1,appendChild:2},zw="__stylesheet__",Nk=typeof navigator<"u"&&/rv:11.0/.test(navigator.userAgent),Lf={};try{Lf=window}catch{}var jc,_o=(function(){function s(o){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=N({injectionMode:Vm.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},o),this._keyToClassName=this._config.classNameCache||{}}return s.getInstance=function(){var o;if(jc=Lf[zw],!jc||jc._lastStyleElement&&jc._lastStyleElement.ownerDocument!==document){var n=((o=Lf)===null||o===void 0?void 0:o.FabricConfig)||{};jc=Lf[zw]=new s(n.mergeStyles)}return jc},s.prototype.setConfig=function(o){this._config=N(N({},this._config),o)},s.prototype.onReset=function(o){this._onResetCallbacks.push(o)},s.prototype.getClassName=function(o){var n=this._config.namespace,t=o||this._config.defaultPrefix;return(n?n+"-":"")+t+"-"+this._counter++},s.prototype.cacheClassName=function(o,n,t,i){this._keyToClassName[n]=o,this._classNameToArgs[o]={args:t,rules:i}},s.prototype.classNameFromKey=function(o){return this._keyToClassName[o]},s.prototype.getClassNameCache=function(){return this._keyToClassName},s.prototype.argsFromClassName=function(o){var n=this._classNameToArgs[o];return n&&n.args},s.prototype.insertedRulesFromClassName=function(o){var n=this._classNameToArgs[o];return n&&n.rules},s.prototype.insertRule=function(o,n){var t=this._config.injectionMode,i=t!==Vm.none?this._getStyleElement():void 0;if(n&&this._preservedRules.push(o),i)switch(this._config.injectionMode){case Vm.insertNode:var d=i.sheet;try{d.insertRule(o,d.cssRules.length)}catch{}break;case Vm.appendChild:i.appendChild(document.createTextNode(o));break}else this._rules.push(o);this._config.onInsertRule&&this._config.onInsertRule(o)},s.prototype.getRules=function(o){return(o?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},s.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(o){return o()})},s.prototype.resetKeys=function(){this._keyToClassName={}},s.prototype._getStyleElement=function(){var o=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),Nk||window.requestAnimationFrame(function(){o._styleElement=void 0})),this._styleElement},s.prototype._createStyleElement=function(){var o=document.head,n=document.createElement("style"),t=null;n.setAttribute("data-merge-styles","true");var i=this._config.cspSettings;if(i&&i.nonce&&n.setAttribute("nonce",i.nonce),this._lastStyleElement)t=this._lastStyleElement.nextElementSibling;else{var d=this._findPlaceholderStyleTag();d?t=d.nextElementSibling:t=o.childNodes[0]}return o.insertBefore(n,o.contains(t)?t:null),this._lastStyleElement=n,n},s.prototype._findPlaceholderStyleTag=function(){var o=document.head;return o?o.querySelector("style[data-merge-styles]"):null},s})();function j0(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];var n=[],t=[],i=_o.getInstance();function d(c){for(var u=0,h=c;u<h.length;u++){var g=h[u];if(g)if(typeof g=="string")if(g.indexOf(" ")>=0)d(g.split(" "));else{var _=i.argsFromClassName(g);_?d(_):n.indexOf(g)===-1&&n.push(g)}else Array.isArray(g)?d(g):typeof g=="object"&&t.push(g)}}return d(s),{classes:n,objects:t}}function L0(s){Wc!==s&&(Wc=s)}function E0(){return Wc===void 0&&(Wc=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),Wc}var Wc;Wc=E0();function sg(){return{rtl:E0()}}var Uw={};function Ok(s,o){var n=s[o];n.charAt(0)!=="-"&&(s[o]=Uw[n]=Uw[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}var Gm;function Yk(){var s,o;if(!Gm){var n=typeof document<"u"?document:void 0,t=typeof navigator<"u"?navigator:void 0,i=(o=(s=t)===null||s===void 0?void 0:s.userAgent)===null||o===void 0?void 0:o.toLowerCase();n?Gm={isWebkit:!!(n&&"WebkitAppearance"in n.documentElement.style),isMoz:!!(i&&i.indexOf("firefox")>-1),isOpera:!!(i&&i.indexOf("opera")>-1),isMs:!!(t&&(/rv:11.0/i.test(t.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:Gm={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return Gm}var Vw={"user-select":1};function Wk(s,o){var n=Yk(),t=s[o];if(Vw[t]){var i=s[o+1];Vw[t]&&(n.isWebkit&&s.push("-webkit-"+t,i),n.isMoz&&s.push("-moz-"+t,i),n.isMs&&s.push("-ms-"+t,i),n.isOpera&&s.push("-o-"+t,i))}}var Bk=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function Hk(s,o){var n=s[o],t=s[o+1];if(typeof t=="number"){var i=Bk.indexOf(n)>-1,d=n.indexOf("--")>-1,c=i||d?"":"px";s[o+1]=""+t+c}}var $m,Ga="left",$a="right",zk="@noflip",Gw=($m={},$m[Ga]=$a,$m[$a]=Ga,$m),$w={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function Uk(s,o,n){if(s.rtl){var t=o[n];if(!t)return;var i=o[n+1];if(typeof i=="string"&&i.indexOf(zk)>=0)o[n+1]=i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(t.indexOf(Ga)>=0)o[n]=t.replace(Ga,$a);else if(t.indexOf($a)>=0)o[n]=t.replace($a,Ga);else if(String(i).indexOf(Ga)>=0)o[n+1]=i.replace(Ga,$a);else if(String(i).indexOf($a)>=0)o[n+1]=i.replace($a,Ga);else if(Gw[t])o[n]=Gw[t];else if($w[i])o[n+1]=$w[i];else switch(t){case"margin":case"padding":o[n+1]=Gk(i);break;case"box-shadow":o[n+1]=Vk(i,0);break}}}function Vk(s,o){var n=s.split(" "),t=parseInt(n[o],10);return n[0]=n[0].replace(String(t),String(t*-1)),n.join(" ")}function Gk(s){if(typeof s=="string"){var o=s.split(" ");if(o.length===4)return o[0]+" "+o[3]+" "+o[2]+" "+o[1]}return s}var $k="displayName";function Kk(s){var o=s&&s["&"];return o?o.displayName:void 0}var D0=/\:global\((.+?)\)/g;function qk(s){if(!D0.test(s))return s;for(var o=[],n=/\:global\((.+?)\)/g,t=null;t=n.exec(s);)t[1].indexOf(",")>-1&&o.push([t.index,t.index+t[0].length,t[1].split(",").map(function(i){return":global("+i.trim()+")"}).join(", ")]);return o.reverse().reduce(function(i,d){var c=d[0],u=d[1],h=d[2],g=i.slice(0,c),_=i.slice(u);return g+h+_},s)}function Kw(s,o){return s.indexOf(":global(")>=0?s.replace(D0,"$1"):s.indexOf(":")===0?o+s:s.indexOf("&")<0?o+" "+s:s}function qw(s,o,n,t){o===void 0&&(o={__order:[]}),n.indexOf("@")===0?(n=n+"{"+s,Bc([t],o,n)):n.indexOf(",")>-1?qk(n).split(",").map(function(i){return i.trim()}).forEach(function(i){return Bc([t],o,Kw(i,s))}):Bc([t],o,Kw(n,s))}function Bc(s,o,n){o===void 0&&(o={__order:[]}),n===void 0&&(n="&");var t=_o.getInstance(),i=o[n];i||(i={},o[n]=i,o.__order.push(n));for(var d=0,c=s;d<c.length;d++){var u=c[d];if(typeof u=="string"){var h=t.argsFromClassName(u);h&&Bc(h,o,n)}else if(Array.isArray(u))Bc(u,o,n);else for(var g in u)if(u.hasOwnProperty(g)){var _=u[g];if(g==="selectors"){var m=u.selectors;for(var x in m)m.hasOwnProperty(x)&&qw(n,o,x,m[x])}else typeof _=="object"?_!==null&&qw(n,o,g,_):_!==void 0&&(g==="margin"||g==="padding"?Jk(i,g,_):i[g]=_)}}return o}function Jk(s,o,n){var t=typeof n=="string"?n.split(" "):[n];s[o+"Top"]=t[0],s[o+"Right"]=t[1]||t[0],s[o+"Bottom"]=t[2]||t[0],s[o+"Left"]=t[3]||t[1]||t[0]}function Zk(s,o){for(var n=[s.rtl?"rtl":"ltr"],t=!1,i=0,d=o.__order;i<d.length;i++){var c=d[i];n.push(c);var u=o[c];for(var h in u)u.hasOwnProperty(h)&&u[h]!==void 0&&(t=!0,n.push(h,u[h]))}return t?n.join(""):void 0}function I0(s,o){return o<=0?"":o===1?s:s+I0(s,o-1)}function Oy(s,o){if(!o)return"";var n=[];for(var t in o)o.hasOwnProperty(t)&&t!==$k&&o[t]!==void 0&&n.push(t,o[t]);for(var i=0;i<n.length;i+=2)Ok(n,i),Hk(n,i),Uk(s,n,i),Wk(n,i);for(var i=1;i<n.length;i+=4)n.splice(i,1,":",n[i],";");return n.join("")}function T0(s){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];var t=Bc(o),i=Zk(s,t);if(i){var d=_o.getInstance(),c={className:d.classNameFromKey(i),key:i,args:o};if(!c.className){c.className=d.getClassName(Kk(t));for(var u=[],h=0,g=t.__order;h<g.length;h++){var _=g[h];u.push(_,Oy(s,t[_]))}c.rulesToInsert=u}return c}}function A0(s,o){o===void 0&&(o=1);var n=_o.getInstance(),t=s.className,i=s.key,d=s.args,c=s.rulesToInsert;if(c){for(var u=0;u<c.length;u+=2){var h=c[u+1];if(h){var g=c[u];g=g.replace(/&/g,I0("."+s.className,o));var _=g+"{"+h+"}"+(g.indexOf("@")===0?"}":"");n.insertRule(_)}}n.cacheClassName(t,i,d,c)}}function Xk(s){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];var t=T0.apply(void 0,Nn([s],o));return t?(A0(t,s.specificityMultiplier),t.className):""}function Ho(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];return P0(s,sg())}function P0(s,o){var n=s instanceof Array?s:[s],t=j0(n),i=t.classes,d=t.objects;return d.length&&i.push(Xk(o||{},d)),i.join(" ")}function Vo(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];if(s&&s.length===1&&s[0]&&!s[0].subComponentStyles)return s[0];for(var n={},t={},i=0,d=s;i<d.length;i++){var c=d[i];if(c){for(var u in c)if(c.hasOwnProperty(u)){if(u==="subComponentStyles"&&c.subComponentStyles!==void 0){var h=c.subComponentStyles;for(var g in h)h.hasOwnProperty(g)&&(t.hasOwnProperty(g)?t[g].push(h[g]):t[g]=[h[g]]);continue}var _=n[u],m=c[u];_===void 0?n[u]=m:n[u]=Nn(Array.isArray(_)?_:[_],Array.isArray(m)?m:[m])}}}if(Object.keys(t).length>0){n.subComponentStyles={};var x=n.subComponentStyles,y=function(v){if(t.hasOwnProperty(v)){var b=t[v];x[v]=function(C){return Vo.apply(void 0,b.map(function(k){return typeof k=="function"?k(C):k}))}}};for(var g in t)y(g)}return n}function tl(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];return R0(s,sg())}function R0(s,o){var n,t,i={subComponentStyles:{}},d=s[0];if(!d&&s.length<=1)return{subComponentStyles:{}};var c=Vo.apply(void 0,s),u=[];for(var h in c)if(c.hasOwnProperty(h)){if(h==="subComponentStyles"){i.subComponentStyles=c.subComponentStyles||{};continue}var g=c[h],_=j0(g),m=_.classes,x=_.objects;if(!((n=x)===null||n===void 0)&&n.length){var y=T0(o||{},{displayName:h},x);y&&(u.push(y),i[h]=m.concat([y.className]).join(" "))}else i[h]=m.join(" ")}for(var v=0,b=u;v<b.length;v++){var y=b[v];y&&A0(y,(t=o)===null||t===void 0?void 0:t.specificityMultiplier)}return i}function F0(s){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];for(var t=[],i=0,d=o;i<d.length;i++){var c=d[i];c&&t.push(typeof c=="function"?c(s):c)}return t.length===1?t[0]:t.length?Vo.apply(void 0,t):{}}function N0(s){_o.getInstance().insertRule("@font-face{"+Oy(sg(),s)+"}",!0)}function wn(s){var o=_o.getInstance(),n=o.getClassName(),t=[];for(var i in s)s.hasOwnProperty(i)&&t.push(i,"{",Oy(sg(),s[i]),"}");var d=t.join("");return o.insertRule("@keyframes "+n+"{"+d+"}",!0),o.cacheClassName(n,d,[],["keyframes",d]),n}function Qk(s){var o={},n=function(i){if(s.hasOwnProperty(i)){var d;Object.defineProperty(o,i,{get:function(){return d===void 0&&(d=Ho(s[i]).toString()),d},enumerable:!0,configurable:!0})}};for(var t in s)n(t);return o}var cy=void 0;try{cy=window}catch{}function nt(s){if(!(typeof cy>"u")){var o=s;return o&&o.ownerDocument&&o.ownerDocument.defaultView?o.ownerDocument.defaultView:cy}}var Wn=(function(){function s(o,n){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=o||null,this._onErrorHandler=n,this._noop=function(){}}return s.prototype.dispose=function(){var o;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(o in this._timeoutIds)this._timeoutIds.hasOwnProperty(o)&&this.clearTimeout(parseInt(o,10));this._timeoutIds=null}if(this._immediateIds){for(o in this._immediateIds)this._immediateIds.hasOwnProperty(o)&&this.clearImmediate(parseInt(o,10));this._immediateIds=null}if(this._intervalIds){for(o in this._intervalIds)this._intervalIds.hasOwnProperty(o)&&this.clearInterval(parseInt(o,10));this._intervalIds=null}if(this._animationFrameIds){for(o in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(o)&&this.cancelAnimationFrame(parseInt(o,10));this._animationFrameIds=null}},s.prototype.setTimeout=function(o,n){var t=this,i=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),i=setTimeout(function(){try{t._timeoutIds&&delete t._timeoutIds[i],o.apply(t._parent)}catch(d){t._onErrorHandler&&t._onErrorHandler(d)}},n),this._timeoutIds[i]=!0),i},s.prototype.clearTimeout=function(o){this._timeoutIds&&this._timeoutIds[o]&&(clearTimeout(o),delete this._timeoutIds[o])},s.prototype.setImmediate=function(o,n){var t=this,i=0,d=nt(n);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var c=function(){try{t._immediateIds&&delete t._immediateIds[i],o.apply(t._parent)}catch(u){t._logError(u)}};i=d.setTimeout(c,0),this._immediateIds[i]=!0}return i},s.prototype.clearImmediate=function(o,n){var t=nt(n);this._immediateIds&&this._immediateIds[o]&&(t.clearTimeout(o),delete this._immediateIds[o])},s.prototype.setInterval=function(o,n){var t=this,i=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),i=setInterval(function(){try{o.apply(t._parent)}catch(d){t._logError(d)}},n),this._intervalIds[i]=!0),i},s.prototype.clearInterval=function(o){this._intervalIds&&this._intervalIds[o]&&(clearInterval(o),delete this._intervalIds[o])},s.prototype.throttle=function(o,n,t){var i=this;if(this._isDisposed)return this._noop;var d=n||0,c=!0,u=!0,h=0,g,_,m=null;t&&typeof t.leading=="boolean"&&(c=t.leading),t&&typeof t.trailing=="boolean"&&(u=t.trailing);var x=function(v){var b=Date.now(),C=b-h,k=c?d-C:d;return C>=d&&(!v||c)?(h=b,m&&(i.clearTimeout(m),m=null),g=o.apply(i._parent,_)):m===null&&u&&(m=i.setTimeout(x,k)),g},y=(function(){for(var v=[],b=0;b<arguments.length;b++)v[b]=arguments[b];return _=v,x(!0)});return y},s.prototype.debounce=function(o,n,t){var i=this;if(this._isDisposed){var d=(function(){});return d.cancel=function(){},d.flush=(function(){return null}),d.pending=function(){return!1},d}var c=n||0,u=!1,h=!0,g=null,_=0,m=Date.now(),x,y,v=null;t&&typeof t.leading=="boolean"&&(u=t.leading),t&&typeof t.trailing=="boolean"&&(h=t.trailing),t&&typeof t.maxWait=="number"&&!isNaN(t.maxWait)&&(g=t.maxWait);var b=function(P){v&&(i.clearTimeout(v),v=null),m=P},C=function(P){b(P),x=o.apply(i._parent,y)},k=function(P){var T=Date.now(),F=!1;P&&(u&&T-_>=c&&(F=!0),_=T);var H=T-_,W=c-H,K=T-m,Z=!1;return g!==null&&(K>=g&&v?Z=!0:W=Math.min(W,g-K)),H>=c||Z||F?C(T):(v===null||!P)&&h&&(v=i.setTimeout(k,W)),x},L=function(){return!!v},I=function(){L()&&b(Date.now())},A=function(){return L()&&C(Date.now()),x},Y=(function(){for(var P=[],T=0;T<arguments.length;T++)P[T]=arguments[T];return y=P,k(!0)});return Y.cancel=I,Y.flush=A,Y.pending=L,Y},s.prototype.requestAnimationFrame=function(o,n){var t=this,i=0,d=nt(n);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var c=function(){try{t._animationFrameIds&&delete t._animationFrameIds[i],o.apply(t._parent)}catch(u){t._logError(u)}};i=d.requestAnimationFrame?d.requestAnimationFrame(c):d.setTimeout(c,0),this._animationFrameIds[i]=!0}return i},s.prototype.cancelAnimationFrame=function(o,n){var t=nt(n);this._animationFrameIds&&this._animationFrameIds[o]&&(t.cancelAnimationFrame?t.cancelAnimationFrame(o):t.clearTimeout(o),delete this._animationFrameIds[o])},s.prototype._logError=function(o){this._onErrorHandler&&this._onErrorHandler(o)},s})();function bi(s,o){for(var n in s)if(s.hasOwnProperty(n)&&(!o.hasOwnProperty(n)||o[n]!==s[n]))return!1;for(var n in o)if(o.hasOwnProperty(n)&&!s.hasOwnProperty(n))return!1;return!0}function qa(s){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];return e5.apply(this,[null,s].concat(o))}function e5(s,o){for(var n=[],t=2;t<arguments.length;t++)n[t-2]=arguments[t];o=o||{};for(var i=0,d=n;i<d.length;i++){var c=d[i];if(c)for(var u in c)c.hasOwnProperty(u)&&(!s||s(u))&&(o[u]=c[u])}return o}var Yt=(function(){function s(o){this._id=s._uniqueId++,this._parent=o,this._eventRecords=[]}return s.raise=function(o,n,t,i){var d;if(s._isElement(o)){if(typeof document<"u"&&document.createEvent){var c=document.createEvent("HTMLEvents");c.initEvent(n,i||!1,!0),qa(c,t),d=o.dispatchEvent(c)}else if(typeof document<"u"&&document.createEventObject){var u=document.createEventObject(t);o.fireEvent("on"+n,u)}}else for(;o&&d!==!1;){var h=o.__events__,g=h?h[n]:null;if(g){for(var _ in g)if(g.hasOwnProperty(_))for(var m=g[_],x=0;d!==!1&&x<m.length;x++){var y=m[x];y.objectCallback&&(d=y.objectCallback.call(y.parent,t))}}o=i?o.parent:null}return d},s.isObserved=function(o,n){var t=o&&o.__events__;return!!t&&!!t[n]},s.isDeclared=function(o,n){var t=o&&o.__declaredEvents;return!!t&&!!t[n]},s.stopPropagation=function(o){o.stopPropagation?o.stopPropagation():o.cancelBubble=!0},s._isElement=function(o){return!!o&&(!!o.addEventListener||typeof HTMLElement<"u"&&o instanceof HTMLElement)},s.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},s.prototype.onAll=function(o,n,t){for(var i in n)n.hasOwnProperty(i)&&this.on(o,i,n[i],t)},s.prototype.on=function(o,n,t,i){var d=this;if(n.indexOf(",")>-1)for(var c=n.split(/[ ,]+/),u=0;u<c.length;u++)this.on(o,c[u],t,i);else{var h=this._parent,g={target:o,eventName:n,parent:h,callback:t,options:i},c=o.__events__=o.__events__||{};if(c[n]=c[n]||{count:0},c[n][this._id]=c[n][this._id]||[],c[n][this._id].push(g),c[n].count++,s._isElement(o)){var _=function(){for(var y=[],v=0;v<arguments.length;v++)y[v]=arguments[v];if(!d._isDisposed){var b;try{if(b=t.apply(h,y),b===!1&&y[0]){var C=y[0];C.preventDefault&&C.preventDefault(),C.stopPropagation&&C.stopPropagation(),C.cancelBubble=!0}}catch{}return b}};g.elementCallback=_,o.addEventListener?o.addEventListener(n,_,i):o.attachEvent&&o.attachEvent("on"+n,_)}else{var m=function(){for(var y=[],v=0;v<arguments.length;v++)y[v]=arguments[v];if(!d._isDisposed)return t.apply(h,y)};g.objectCallback=m}this._eventRecords.push(g)}},s.prototype.off=function(o,n,t,i){for(var d=0;d<this._eventRecords.length;d++){var c=this._eventRecords[d];if((!o||o===c.target)&&(!n||n===c.eventName)&&(!t||t===c.callback)&&(typeof i!="boolean"||i===c.options)){var u=c.target.__events__,h=u[c.eventName],g=h?h[this._id]:null;g&&(g.length===1||!t?(h.count-=g.length,delete u[c.eventName][this._id]):(h.count--,g.splice(g.indexOf(c),1)),h.count||delete u[c.eventName]),c.elementCallback&&(c.target.removeEventListener?c.target.removeEventListener(c.eventName,c.elementCallback,c.options):c.target.detachEvent&&c.target.detachEvent("on"+c.eventName,c.elementCallback)),this._eventRecords.splice(d--,1)}}},s.prototype.raise=function(o,n,t){return s.raise(this._parent,o,n,t)},s.prototype.declare=function(o){var n=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if(typeof o=="string")n[o]=!0;else for(var t=0;t<o.length;t++)n[o[t]]=!0},s._uniqueId=0,s})();function yn(s){if(!(typeof document>"u")){var o=s;return o&&o.ownerDocument?o.ownerDocument:document}}var k_,Ap=0,O0=Ho({overflow:"hidden !important"}),Jw="data-is-scrollable",Y0=function(s,o){if(s){var n=0,t=null,i=function(c){c.targetTouches.length===1&&(n=c.targetTouches[0].clientY)},d=function(c){if(c.targetTouches.length===1&&(c.stopPropagation(),!!t)){var u=c.targetTouches[0].clientY-n,h=ih(c.target);h&&(t=h),t.scrollTop===0&&u>0&&c.preventDefault(),t.scrollHeight-Math.ceil(t.scrollTop)<=t.clientHeight&&u<0&&c.preventDefault()}};o.on(s,"touchstart",i,{passive:!1}),o.on(s,"touchmove",d,{passive:!1}),t=s}},W0=function(s,o){if(s){var n=function(t){t.stopPropagation()};o.on(s,"touchmove",n,{passive:!1})}},B0=function(s){s.preventDefault()};function t5(){var s=yn();s&&s.body&&!Ap&&(s.body.classList.add(O0),s.body.addEventListener("touchmove",B0,{passive:!1,capture:!1})),Ap++}function n5(){if(Ap>0){var s=yn();s&&s.body&&Ap===1&&(s.body.classList.remove(O0),s.body.removeEventListener("touchmove",B0)),Ap--}}function Yy(){if(k_===void 0){var s=document.createElement("div");s.style.setProperty("width","100px"),s.style.setProperty("height","100px"),s.style.setProperty("overflow","scroll"),s.style.setProperty("position","absolute"),s.style.setProperty("top","-9999px"),document.body.appendChild(s),k_=s.offsetWidth-s.clientWidth,document.body.removeChild(s)}return k_}function ih(s){for(var o=s,n=yn(s);o&&o!==n.body;){if(o.getAttribute(Jw)==="true")return o;o=o.parentElement}for(o=s;o&&o!==n.body;){if(o.getAttribute(Jw)!=="false"){var t=getComputedStyle(o),i=t?t.getPropertyValue("overflow-y"):"";if(i&&(i==="scroll"||i==="auto"))return o}o=o.parentElement}return(!o||o===n.body)&&(o=nt(s)),o}function Zw(s){var o;return s&&(s===window?o={left:0,top:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:s.getBoundingClientRect&&(o=s.getBoundingClientRect())),o}function Wy(s){console&&console.warn&&console.warn(s)}function H0(s,o,n,t,i){if(i===!0&&!1)for(var d,c;d<c.length;d++)var u}(function(s){Ne(o,s);function o(n,t){var i=s.call(this,n,t)||this;return r5(i,o.prototype,["componentDidMount","shouldComponentUpdate","getSnapshotBeforeUpdate","render","componentDidUpdate","componentWillUnmount"]),i}return o.prototype.componentDidUpdate=function(n,t){this._updateComponentRef(n,this.props)},o.prototype.componentDidMount=function(){this._setComponentRef(this.props.componentRef,this)},o.prototype.componentWillUnmount=function(){if(this._setComponentRef(this.props.componentRef,null),this.__disposables){for(var n=0,t=this._disposables.length;n<t;n++){var i=this.__disposables[n];i.dispose&&i.dispose()}this.__disposables=null}},Object.defineProperty(o.prototype,"className",{get:function(){if(!this.__className){var n=/function (.{1,})\(/,t=n.exec(this.constructor.toString());this.__className=t&&t.length>1?t[1]:""}return this.__className},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_async",{get:function(){return this.__async||(this.__async=new Wn(this),this._disposables.push(this.__async)),this.__async},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_events",{get:function(){return this.__events||(this.__events=new Yt(this),this._disposables.push(this.__events)),this.__events},enumerable:!0,configurable:!0}),o.prototype._resolveRef=function(n){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[n]||(this.__resolves[n]=function(i){return t[n]=i}),this.__resolves[n]},o.prototype._updateComponentRef=function(n,t){t===void 0&&(t={}),n&&t&&n.componentRef!==t.componentRef&&(this._setComponentRef(n.componentRef,null),this._setComponentRef(t.componentRef,this))},o.prototype._warnDeprecations=function(n){this.className,this.props},o.prototype._warnMutuallyExclusive=function(n){this.className,this.props},o.prototype._warnConditionallyRequiredProps=function(n,t,i){H0(this.className,this.props,n,t,i)},o.prototype._setComponentRef=function(n,t){!this._skipComponentRefResolution&&n&&(typeof n=="function"&&n(t),typeof n=="object"&&(n.current=t))},o})(M.Component);function r5(s,o,n){for(var t=0,i=n.length;t<i;t++)s5(s,o,n[t])}function s5(s,o,n){var t=s[n],i=o[n];(t||i)&&(s[n]=function(){for(var d=[],c=0;c<arguments.length;c++)d[c]=arguments[c];var u;return i&&(u=i.apply(this,d)),t!==i&&(u=t.apply(this,d)),u})}function md(){return null}var og=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t.state={isRendered:!1},t}return o.prototype.componentDidMount=function(){var n=this,t=this.props.delay;this._timeoutId=window.setTimeout(function(){n.setState({isRendered:!0})},t)},o.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},o.prototype.render=function(){return this.state.isRendered?M.Children.only(this.props.children):null},o.defaultProps={delay:0},o})(M.Component),M_="__globalSettings__",By="__callbacks__",o5=0,z0=(function(){function s(){}return s.getValue=function(o,n){var t=uy();return t[o]===void 0&&(t[o]=typeof n=="function"?n():n),t[o]},s.setValue=function(o,n){var t=uy(),i=t[By],d=t[o];if(n!==d){t[o]=n;var c={oldValue:d,value:n,key:o};for(var u in i)i.hasOwnProperty(u)&&i[u](c)}return n},s.addChangeListener=function(o){var n=o.__id__,t=Xw();n||(n=o.__id__=String(o5++)),t[n]=o},s.removeChangeListener=function(o){var n=Xw();delete n[o.__id__]},s})();function uy(){var s,o=nt(),n=o||{};return n[M_]||(n[M_]=(s={},s[By]={},s)),n[M_]}function Xw(){var s=uy();return s[By]}var ke={tab:9,enter:13,alt:18,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,a:65,c:67},Fs=(function(){function s(o,n,t,i){o===void 0&&(o=0),n===void 0&&(n=0),t===void 0&&(t=0),i===void 0&&(i=0),this.top=t,this.bottom=i,this.left=o,this.right=n}return Object.defineProperty(s.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),s.prototype.equals=function(o){return parseFloat(this.top.toFixed(4))===parseFloat(o.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(o.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(o.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(o.right.toFixed(4))},s})();function i5(s){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];return o.length<2?o[0]:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];o.forEach(function(d){return d&&d.apply(s,t)})}}function Za(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];var n=s.filter(function(t){return t}).join(" ").trim();return n===""?void 0:n}function Hy(s,o,n){n===void 0&&(n=0);for(var t=-1,i=n;s&&i<s.length;i++)if(o(s[i],i)){t=i;break}return t}function Qw(s,o){var n=Hy(s,o);if(!(n<0))return s[n]}function a5(s,o,n){var t=s.slice();return t.splice(o,0,n),t}function l5(s,o){if(s.length!==o.length)return!1;for(var n=0;n<s.length;n++)if(s[n]!==o[n])return!1;return!0}function U0(s){var o=null;try{var n=nt();o=n?n.sessionStorage.getItem(s):null}catch{}return o}function d5(s,o){var n;try{(n=nt())===null||n===void 0||n.sessionStorage.setItem(s,o)}catch{}}var V0="isRTL",Qi;function At(s){if(s===void 0&&(s={}),s.rtl!==void 0)return s.rtl;if(Qi===void 0){var o=U0(V0);o!==null&&(Qi=o==="1",c5(Qi));var n=yn();Qi===void 0&&n&&(Qi=(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir"))==="rtl",L0(Qi))}return!!Qi}function c5(s,o){o===void 0&&(o=!1);var n=yn();n&&n.documentElement.setAttribute("dir",s?"rtl":"ltr"),o&&d5(V0,s?"1":"0"),Qi=s,L0(Qi)}function Bf(s,o){return o===void 0&&(o={}),At(o)&&(s===ke.left?s=ke.right:s===ke.right&&(s=ke.left)),s}function u5(s){return s&&!!s._virtual}function p5(s){var o;return s&&u5(s)&&(o=s._virtual.parent),o}function Cn(s,o){return o===void 0&&(o=!0),s&&(o&&p5(s)||s.parentNode&&s.parentNode)}function un(s,o,n){n===void 0&&(n=!0);var t=!1;if(s&&o)if(n)if(s===o)t=!0;else for(t=!1;o;){var i=Cn(o);if(i===s){t=!0;break}o=i}else s.contains&&(t=s.contains(o));return t}function zy(s,o){return!s||s===document.body?null:o(s)?s:zy(Cn(s),o)}function h5(s,o){var n=zy(s,function(t){return t.hasAttribute(o)});return n&&n.getAttribute(o)}var py="data-portal-element";function m5(s){s.setAttribute(py,"true")}function Uy(s,o){var n=zy(s,function(t){return o===t||t.hasAttribute(py)});return n!==null&&n.hasAttribute(py)}function ev(s,o){var n=s,t=o;n._virtual||(n._virtual={children:[]});var i=n._virtual.parent;if(i&&i!==o){var d=i._virtual.children.indexOf(n);d>-1&&i._virtual.children.splice(d,1)}n._virtual.parent=t||void 0,t&&(t._virtual||(t._virtual={children:[]}),t._virtual.children.push(n))}function ho(s,o,n,t){return s.addEventListener(o,n,t),function(){return s.removeEventListener(o,n,t)}}var f5=50,g5=5,Ef=0,j_=_o.getInstance();j_&&j_.onReset&&j_.onReset(function(){return Ef++});var Km="__retval__";function Je(s){s===void 0&&(s={});var o=new Map,n=0,t=0,i=Ef,d=function(c,u){u===void 0&&(u={});var h,g;if(s.useStaticStyles&&typeof c=="function"&&c.__noStyleOverride__)return c(u);t++;var _=o,m=u.theme,x=m&&m.rtl!==void 0?m.rtl:At(),y=s.disableCaching;if(i!==Ef&&(i=Ef,o=new Map,n=0),s.disableCaching||(_=tv(o,c),_=tv(_,u)),(y||!_[Km])&&(c===void 0?_[Km]={}:_[Km]=R0([typeof c=="function"?c(u):c],{rtl:!!x,specificityMultiplier:s.useStaticStyles?g5:void 0}),y||n++),n>(s.cacheSize||f5)){var v=nt();!((g=(h=v)===null||h===void 0?void 0:h.FabricConfig)===null||g===void 0)&&g.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is "+n+"/"+t+"."),console.trace()),o.clear(),n=0,s.disableCaching=!0}return _[Km]};return d}function L_(s,o){return o=_5(o),s.has(o)||s.set(o,new Map),s.get(o)}function tv(s,o){if(typeof o=="function"){var n=o.__cachedInputs__;if(n)for(var t=0,i=o.__cachedInputs__;t<i.length;t++){var d=i[t];s=L_(s,d)}else s=L_(s,o)}else if(typeof o=="object")for(var c in o)o.hasOwnProperty(c)&&(s=L_(s,o[c]));return s}function _5(s){switch(s){case void 0:return"__undefined__";case null:return"__null__";default:return s}}var nv=!1,Df=0,y5={empty:!0},E_={},Wp=typeof WeakMap>"u"?null:WeakMap;function w5(){Df++}function Et(s,o,n){if(o===void 0&&(o=100),n===void 0&&(n=!1),!Wp)return s;if(!nv){var t=_o.getInstance();t&&t.onReset&&_o.getInstance().onReset(w5),nv=!0}var i,d=0,c=Df;return function(){for(var h=[],g=0;g<arguments.length;g++)h[g]=arguments[g];var _=i;(i===void 0||c!==Df||o>0&&d>o)&&(i=rv(),d=0,c=Df),_=i;for(var m=0;m<h.length;m++){var x=v5(h[m]);_.map.has(x)||_.map.set(x,rv()),_=_.map.get(x)}return _.hasOwnProperty("value")||(_.value=s.apply(void 0,h),d++),n&&(_.value===null||_.value===void 0)&&(_.value=s.apply(void 0,h)),_.value}}function Kc(s){if(!Wp)return s;var o=new Wp;function n(t){if(!t||typeof t!="function"&&typeof t!="object")return s(t);if(o.has(t))return o.get(t);var i=s(t);return o.set(t,i),i}return n}function v5(s){if(s){if(typeof s=="object"||typeof s=="function")return s;E_[s]||(E_[s]={val:s})}else return y5;return E_[s]}function rv(){return{map:Wp?new Wp:null}}function x5(s){var o=s,n=Kc(function(t){if(s===t)throw new Error("Attempted to compose a component with itself.");var i=t,d=Kc(function(u){var h=function(g){return M.createElement(i,N({},g,{defaultRender:u}))};return h}),c=function(u){var h=u.defaultRender;return M.createElement(o,N({},u,{defaultRender:h?d(h):i}))};return c});return n}var b5=Kc(x5);function G0(s,o){return b5(s)(o)}function $0(s,o){return s[o]!==void 0&&s[o]!==null}function sn(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];for(var n=[],t=0,i=s;t<i.length;t++){var d=i[t];if(d)if(typeof d=="string")n.push(d);else if(d.hasOwnProperty("toString")&&typeof d.toString=="function")n.push(d.toString());else for(var c in d)d[c]&&n.push(c)}return n.join(" ")}var S5="customizations",C5={settings:{},scopedSettings:{},inCustomizerContext:!1},Na=z0.getValue(S5,{settings:{},scopedSettings:{},inCustomizerContext:!1}),qm=[],go=(function(){function s(){}return s.reset=function(){Na.settings={},Na.scopedSettings={}},s.applySettings=function(o){Na.settings=N(N({},Na.settings),o),s._raiseChange()},s.applyScopedSettings=function(o,n){Na.scopedSettings[o]=N(N({},Na.scopedSettings[o]),n),s._raiseChange()},s.getSettings=function(o,n,t){t===void 0&&(t=C5);for(var i={},d=n&&t.scopedSettings[n]||{},c=n&&Na.scopedSettings[n]||{},u=0,h=o;u<h.length;u++){var g=h[u];i[g]=d[g]||t.settings[g]||c[g]||Na.settings[g]}return i},s.applyBatchedUpdates=function(o,n){s._suppressUpdates=!0;try{o()}catch{}s._suppressUpdates=!1,n||s._raiseChange()},s.observe=function(o){qm.push(o)},s.unobserve=function(o){qm=qm.filter(function(n){return n!==o})},s._raiseChange=function(){s._suppressUpdates||qm.forEach(function(o){return o()})},s})(),Bp=M.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});function k5(s,o){s===void 0&&(s={});var n=K0(o)?o:j5(o);return n(s)}function M5(s,o){s===void 0&&(s={});var n=K0(o)?o:L5(o);return n(s)}function K0(s){return typeof s=="function"}function j5(s){return function(o){return s?N(N({},o),s):o}}function L5(s){return s===void 0&&(s={}),function(o){var n=N({},o);for(var t in s)s.hasOwnProperty(t)&&(n[t]=N(N({},o[t]),s[t]));return n}}function E5(s,o){var n=(o||{}).customizations,t=n===void 0?{settings:{},scopedSettings:{}}:n;return{customizations:{settings:k5(t.settings,s.settings),scopedSettings:M5(t.scopedSettings,s.scopedSettings),inCustomizerContext:!0}}}var D5=(function(s){Ne(o,s);function o(){var n=s!==null&&s.apply(this,arguments)||this;return n._onCustomizationChange=function(){return n.forceUpdate()},n}return o.prototype.componentDidMount=function(){go.observe(this._onCustomizationChange)},o.prototype.componentWillUnmount=function(){go.unobserve(this._onCustomizationChange)},o.prototype.render=function(){var n=this,t=this.props.contextTransform;return M.createElement(Bp.Consumer,null,function(i){var d=E5(n.props,i);return t&&(d=t(d)),M.createElement(Bp.Provider,{value:d},n.props.children)})},o})(M.Component);function q0(s,o){for(var n in s)s.hasOwnProperty(n)&&(o[n]=s[n]);return o}function tu(s,o,n){return function(i){var d,c=(d=(function(u){Ne(h,u);function h(g){var _=u.call(this,g)||this;return _._styleCache={},_._onSettingChanged=_._onSettingChanged.bind(_),_}return h.prototype.componentDidMount=function(){go.observe(this._onSettingChanged)},h.prototype.componentWillUnmount=function(){go.unobserve(this._onSettingChanged)},h.prototype.render=function(){var g=this;return M.createElement(Bp.Consumer,null,function(_){var m=go.getSettings(o,s,_.customizations),x=g.props;if(m.styles&&typeof m.styles=="function"&&(m.styles=m.styles(N(N({},m),x))),n&&m.styles){if(g._styleCache.default!==m.styles||g._styleCache.component!==x.styles){var y=Vo(m.styles,x.styles);g._styleCache.default=m.styles,g._styleCache.component=x.styles,g._styleCache.merged=y}return M.createElement(i,N({},m,x,{styles:g._styleCache.merged}))}return M.createElement(i,N({},m,x))})},h.prototype._onSettingChanged=function(){this.forceUpdate()},h})(M.Component),d.displayName="Customized"+s,d);return q0(i,c)}}function I5(s,o){var n=T5(),t=M.useContext(Bp).customizations,i=t.inCustomizerContext;return M.useEffect(function(){return i||go.observe(n),function(){i||go.unobserve(n)}},[i]),go.getSettings(s,o,t)}function T5(){var s=M.useState(0),o=s[1];return function(){return o(function(n){return++n})}}function J0(s,o){for(var n in o)o.hasOwnProperty(n)&&(s[n]=i5(s,s[n],o[n]))}var Z0="data-is-focusable",A5="data-is-visible",P5="data-focuszone-id",R5="data-is-sub-focuszone";function X0(s,o,n){return Kr(s,o,!0,!1,!1,n)}function Q0(s,o,n){return cs(s,o,!0,!1,!0,n)}function F5(s,o,n,t){return Kr(s,o,t,!1,!1,n,!1,!0)}function N5(s,o,n,t){return cs(s,o,t,!1,!0,n,!1,!0)}function ig(s){var o=Kr(s,s,!0,!1,!1,!0);return o?(tb(o),!0):!1}function cs(s,o,n,t,i,d,c,u){if(!o||!c&&o===s)return null;var h=Vy(o);if(i&&h&&(d||!(ea(o)||Gy(o)))){var g=cs(s,o.lastElementChild,!0,!0,!0,d,c,u);if(g){if(u&&Yo(g,!0)||!u)return g;var _=cs(s,g.previousElementSibling,!0,!0,!0,d,c,u);if(_)return _;for(var m=g.parentElement;m&&m!==o;){var x=cs(s,m.previousElementSibling,!0,!0,!0,d,c,u);if(x)return x;m=m.parentElement}}}if(n&&h&&Yo(o,u))return o;var y=cs(s,o.previousElementSibling,!0,!0,!0,d,c,u);return y||(t?null:cs(s,o.parentElement,!0,!1,!1,d,c,u))}function Kr(s,o,n,t,i,d,c,u){if(!o||o===s&&i&&!c)return null;var h=Vy(o);if(n&&h&&Yo(o,u))return o;if(!i&&h&&(d||!(ea(o)||Gy(o)))){var g=Kr(s,o.firstElementChild,!0,!0,!1,d,c,u);if(g)return g}if(o===s)return null;var _=Kr(s,o.nextElementSibling,!0,!0,!1,d,c,u);return _||(t?null:Kr(s,o.parentElement,!1,!1,!0,d,c,u))}function Vy(s){if(!s||!s.getAttribute)return!1;var o=s.getAttribute(A5);return o!=null?o==="true":s.offsetHeight!==0||s.offsetParent!==null||s.isVisible===!0}function Yo(s,o){if(!s||s.disabled)return!1;var n=0,t=null;s&&s.getAttribute&&(t=s.getAttribute("tabIndex"),t&&(n=parseInt(t,10)));var i=s.getAttribute?s.getAttribute(Z0):null,d=t!==null&&n>=0,c=!!s&&i!=="false"&&(s.tagName==="A"||s.tagName==="BUTTON"||s.tagName==="INPUT"||s.tagName==="TEXTAREA"||s.tagName==="SELECT"||i==="true"||d);return o?n!==-1&&c:c}function ea(s){return!!(s&&s.getAttribute&&s.getAttribute(P5))}function Gy(s){return!!(s&&s.getAttribute&&s.getAttribute(R5)==="true")}function O5(s){var o=yn(s),n=o&&o.activeElement;return!!(n&&un(s,n))}function eb(s,o){return h5(s,o)!=="true"}var bp=void 0;function tb(s){if(s){if(bp){bp=s;return}bp=s;var o=nt(s);o&&o.requestAnimationFrame(function(){var n=bp;bp=void 0,n&&(n.getAttribute&&n.getAttribute(Z0)==="true"&&(n.getAttribute("tabindex")||n.setAttribute("tabindex","0")),n.focus())})}}function Y5(s,o){for(var n=s,t=0,i=o;t<i.length;t++){var d=i[t],c=n.children[Math.min(d,n.children.length-1)];if(!c)break;n=c}return n=Yo(n)&&Vy(n)?n:Kr(s,n,!0)||cs(s,n),n}function W5(s,o){for(var n=[];o&&s&&o!==s;){var t=Cn(o,!0);if(t===null)return[];n.unshift(Array.prototype.indexOf.call(t.children,o)),o=t}return n}var Hf="__currentId__",B5="id__",zf=nt()||{};zf[Hf]===void 0&&(zf[Hf]=0);var sv=!1;function zt(s){if(!sv){var o=_o.getInstance();o&&o.onReset&&o.onReset(H5),sv=!0}var n=zf[Hf]++;return(s===void 0?B5:s)+n}function H5(s){s===void 0&&(s=0),zf[Hf]=s}var bn=function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];for(var n={},t=0,i=s;t<i.length;t++)for(var d=i[t],c=Array.isArray(d)?d:Object.keys(d),u=0,h=c;u<h.length;u++){var g=h[u];n[g]=1}return n},z5=bn(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),U5=bn(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),on=bn(U5,z5),V5=bn(on,["form"]),nb=bn(on,["height","loop","muted","preload","src","width"]),G5=bn(nb,["poster"]),$5=bn(on,["start"]),K5=bn(on,["value"]),$y=bn(on,["download","href","hrefLang","media","rel","target","type"]),Xa=bn(on,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),ah=bn(Xa,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),rb=bn(Xa,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),q5=bn(Xa,["form","multiple","required"]),J5=bn(on,["selected","value"]),Z5=bn(on,["cellPadding","cellSpacing"]),X5=on,Q5=bn(on,["rowSpan","scope"]),eM=bn(on,["colSpan","headers","rowSpan","scope"]),tM=bn(on,["span"]),nM=bn(on,["span"]),rM=bn(on,["acceptCharset","action","encType","encType","method","noValidate","target"]),sM=bn(on,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),sb=bn(on,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Yn=on;function pt(s,o,n){for(var t,i=Array.isArray(o),d={},c=Object.keys(s),u=0,h=c;u<h.length;u++){var g=h[u],_=!i&&o[g]||i&&o.indexOf(g)>=0||g.indexOf("data-")===0||g.indexOf("aria-")===0;_&&(!n||((t=n)===null||t===void 0?void 0:t.indexOf(g))===-1)&&(d[g]=s[g])}return d}var oM={label:V5,audio:nb,video:G5,ol:$5,li:K5,a:$y,button:Xa,input:ah,textarea:rb,select:q5,option:J5,table:Z5,tr:X5,th:Q5,td:eM,colGroup:tM,col:nM,form:rM,iframe:sM,img:sb};function iM(s,o,n){var t=oM[s]||on;return pt(o,t,n)}var aM=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];function lM(s,o,n){n===void 0&&(n=aM);var t=[],i=function(c){typeof o[c]=="function"&&s[c]===void 0&&(!n||n.indexOf(c)===-1)&&(t.push(c),s[c]=function(){for(var u=[],h=0;h<arguments.length;h++)u[h]=arguments[h];o[c].apply(o,u)})};for(var d in o)i(d);return t}function dM(s,o){o.forEach(function(n){return delete s[n]})}function St(s){J0(s,{componentDidMount:cM,componentDidUpdate:uM,componentWillUnmount:pM})}function cM(){Uf(this.props.componentRef,this)}function uM(s){s.componentRef!==this.props.componentRef&&(Uf(s.componentRef,null),Uf(this.props.componentRef,this))}function pM(){Uf(this.props.componentRef,null)}function Uf(s,o){s&&(typeof s=="object"?s.current=o:typeof s=="function"&&s(o))}var Ro,hM=(Ro={},Ro[ke.up]=1,Ro[ke.down]=1,Ro[ke.left]=1,Ro[ke.right]=1,Ro[ke.home]=1,Ro[ke.end]=1,Ro[ke.tab]=1,Ro[ke.pageUp]=1,Ro[ke.pageDown]=1,Ro);function mM(s){return!!hM[s]}var fn="ms-Fabric--isFocusVisible",ov="ms-Fabric--isFocusHidden";function dd(s,o){var n=o?nt(o):nt();if(n){var t=n.document.body.classList;t.add(s?fn:ov),t.remove(s?ov:fn)}}var iv=new WeakMap;function av(s,o){var n,t=iv.get(s);return t?n=t+o:n=1,iv.set(s,n),n}function fM(s){M.useEffect(function(){var o,n,t=nt((o=s)===null||o===void 0?void 0:o.current);if(!(!t||((n=t.FabricConfig)===null||n===void 0?void 0:n.disableFocusRects)===!0)){var i=av(t,1);return i<=1&&(t.addEventListener("mousedown",lv,!0),t.addEventListener("pointerdown",dv,!0),t.addEventListener("keydown",cv,!0)),function(){var d;!t||((d=t.FabricConfig)===null||d===void 0?void 0:d.disableFocusRects)===!0||(i=av(t,-1),i===0&&(t.removeEventListener("mousedown",lv,!0),t.removeEventListener("pointerdown",dv,!0),t.removeEventListener("keydown",cv,!0)))}}},[s])}var nu=function(s){return fM(s.rootRef),null};function lv(s){dd(!1,s.target)}function dv(s){s.pointerType!=="mouse"&&dd(!1,s.target)}function cv(s){mM(s.which)&&dd(!0,s.target)}var Ql,gM="language";function _M(s){if(Ql===void 0){var o=yn(),n=U0(gM);n&&(Ql=n),Ql===void 0&&o&&(Ql=o.documentElement.getAttribute("lang")),Ql===void 0&&(Ql="en")}return Ql}function uv(s){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];for(var t=0,i=o;t<i.length;t++){var d=i[t];ob(s||{},d)}return s}function ob(s,o,n){n===void 0&&(n=[]),n.push(o);for(var t in o)if(o.hasOwnProperty(t)&&t!=="__proto__"&&t!=="constructor"&&t!=="prototype"){var i=o[t];if(typeof i=="object"&&i!==null&&!Array.isArray(i)){var d=n.indexOf(i)>-1;s[t]=d?i:ob(s[t]||{},i,n)}else s[t]=i}return n.pop(),s}var hy=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)};function pv(s){for(var o,n=[],t=yn(s)||document;s!==t.body;){for(var i=0,d=s.parentElement.children;i<d.length;i++){var c=d[i];c!==s&&((o=c.getAttribute("aria-hidden"))===null||o===void 0?void 0:o.toLowerCase())!=="true"&&n.push(c)}if(!s.parentElement)break;s=s.parentElement}return n.forEach(function(u){u.setAttribute("aria-hidden","true")}),function(){yM(n),n=[]}}function yM(s){s.forEach(function(o){o.setAttribute("aria-hidden","false")})}var D_;function my(s){if(typeof D_>"u"||s){var o=nt(),n=o&&o.navigator.userAgent;D_=!!n&&n.indexOf("Macintosh")!==-1}return!!D_}function wM(s){return s.clientWidth<s.scrollWidth}function vM(s){return s.clientHeight<s.scrollHeight}function xM(s){return wM(s)||vM(s)}function bM(s){var o=Kc(function(n){var t=Kc(function(i){return function(d){return n(d,i)}});return function(i,d){return s(i,d?t(d):n)}});return o}var SM=Kc(bM);function Ns(s,o){return SM(s)(o)}var CM=function(s){var o;return function(n){o||(o=new Set,J0(s,{componentWillUnmount:function(){o.forEach(function(i){return cancelAnimationFrame(i)})}}));var t=requestAnimationFrame(function(){o.delete(t),n()});o.add(t)}},ag="change",kM="items-change",it;(function(s){s[s.none=0]="none",s[s.single=1]="single",s[s.multiple=2]="multiple"})(it||(it={}));var hv;(function(s){s[s.horizontal=0]="horizontal",s[s.vertical=1]="vertical"})(hv||(hv={}));var MM=(function(){function s(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var t=o[0]||{},i=t.onSelectionChanged,d=t.onItemsChanged,c=t.getKey,u=t.canSelectItem,h=u===void 0?function(){return!0}:u,g=t.items,_=t.selectionMode,m=_===void 0?it.multiple:_;this.mode=m,this._getKey=c||jM,this._changeEventSuppressionCount=0,this._exemptedCount=0,this._anchoredIndex=0,this._unselectableCount=0,this._onSelectionChanged=i,this._onItemsChanged=d,this._canSelectItem=h,this._keyToIndexMap={},this._isModal=!1,this.setItems(g||[],!0),this.count=this.getSelectedCount()}return s.prototype.canSelectItem=function(o,n){return typeof n=="number"&&n<0?!1:this._canSelectItem(o,n)},s.prototype.getKey=function(o,n){var t=this._getKey(o,n);return typeof t=="number"||t?""+t:""},s.prototype.setChangeEvents=function(o,n){this._changeEventSuppressionCount+=o?-1:1,this._changeEventSuppressionCount===0&&this._hasChanged&&(this._hasChanged=!1,n||this._change())},s.prototype.isModal=function(){return this._isModal},s.prototype.setModal=function(o){this._isModal!==o&&(this.setChangeEvents(!1),this._isModal=o,o||this.setAllSelected(!1),this._change(),this.setChangeEvents(!0))},s.prototype.setItems=function(o,n){n===void 0&&(n=!0);var t={},i={},d=!1;this.setChangeEvents(!1),this._unselectableCount=0;for(var c=!1,u=0;u<o.length;u++){var h=o[u];if(h){var g=this.getKey(h,u);g&&(!c&&(!(g in this._keyToIndexMap)||this._keyToIndexMap[g]!==u)&&(c=!0),t[g]=u)}i[u]=h&&!this.canSelectItem(h),i[u]&&this._unselectableCount++}(n||o.length===0)&&this._setAllSelected(!1,!0);var _={},m=0;for(var x in this._exemptedIndices)if(this._exemptedIndices.hasOwnProperty(x)){var y=Number(x),h=this._items[y],v=h?this.getKey(h,Number(y)):void 0,b=v?t[v]:y;b===void 0?d=!0:(_[b]=!0,m++,d=d||b!==y)}if(this._items&&this._exemptedCount===0&&o.length!==this._items.length&&this._isAllSelected&&(d=!0),!c)for(var C=0,k=Object.keys(this._keyToIndexMap);C<k.length;C++){var g=k[C];if(!(g in t)){c=!0;break}}this._exemptedIndices=_,this._exemptedCount=m,this._keyToIndexMap=t,this._unselectableIndices=i,this._items=o,this._selectedItems=null,d&&this._updateCount(),c&&(Yt.raise(this,kM),this._onItemsChanged&&this._onItemsChanged()),d&&this._change(),this.setChangeEvents(!0)},s.prototype.getItems=function(){return this._items},s.prototype.getSelection=function(){if(!this._selectedItems){this._selectedItems=[];var o=this._items;if(o)for(var n=0;n<o.length;n++)this.isIndexSelected(n)&&this._selectedItems.push(o[n])}return this._selectedItems},s.prototype.getSelectedCount=function(){return this._isAllSelected?this._items.length-this._exemptedCount-this._unselectableCount:this._exemptedCount},s.prototype.getSelectedIndices=function(){if(!this._selectedIndices){this._selectedIndices=[];var o=this._items;if(o)for(var n=0;n<o.length;n++)this.isIndexSelected(n)&&this._selectedIndices.push(n)}return this._selectedIndices},s.prototype.getItemIndex=function(o){var n=this._keyToIndexMap[o];return n??-1},s.prototype.isRangeSelected=function(o,n){if(n===0)return!1;for(var t=o+n,i=o;i<t;i++)if(!this.isIndexSelected(i))return!1;return!0},s.prototype.isAllSelected=function(){var o=this._items.length-this._unselectableCount;return this.mode===it.single&&(o=Math.min(o,1)),this.count>0&&this._isAllSelected&&this._exemptedCount===0||!this._isAllSelected&&this._exemptedCount===o&&o>0},s.prototype.isKeySelected=function(o){var n=this._keyToIndexMap[o];return this.isIndexSelected(n)},s.prototype.isIndexSelected=function(o){return!!(this.count>0&&this._isAllSelected&&!this._exemptedIndices[o]&&!this._unselectableIndices[o]||!this._isAllSelected&&this._exemptedIndices[o])},s.prototype.setAllSelected=function(o){if(!(o&&this.mode!==it.multiple)){var n=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),n>0&&(this._exemptedCount>0||o!==this._isAllSelected)&&(this._exemptedIndices={},(o!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=o,this._change()),this._updateCount()),this.setChangeEvents(!0)}},s.prototype.setKeySelected=function(o,n,t){var i=this._keyToIndexMap[o];i>=0&&this.setIndexSelected(i,n,t)},s.prototype.setIndexSelected=function(o,n,t){if(this.mode!==it.none&&(o=Math.min(Math.max(0,o),this._items.length-1),!(o<0||o>=this._items.length))){this.setChangeEvents(!1);var i=this._exemptedIndices[o],d=!this._unselectableIndices[o];d&&(n&&this.mode===it.single&&this._setAllSelected(!1,!0),i&&(n&&this._isAllSelected||!n&&!this._isAllSelected)&&(delete this._exemptedIndices[o],this._exemptedCount--),!i&&(n&&!this._isAllSelected||!n&&this._isAllSelected)&&(this._exemptedIndices[o]=!0,this._exemptedCount++),t&&(this._anchoredIndex=o)),this._updateCount(),this.setChangeEvents(!0)}},s.prototype.setRangeSelected=function(o,n,t,i){if(this.mode!==it.none&&(o=Math.min(Math.max(0,o),this._items.length-1),n=Math.min(Math.max(0,n),this._items.length-o),!(o<0||o>=this._items.length||n===0))){this.setChangeEvents(!1);for(var d=this._anchoredIndex||0,c=o,u=o+n-1,h=d>=u?c:u;c<=u;c++)this.setIndexSelected(c,t,i?c===h:!1);this.setChangeEvents(!0)}},s.prototype.selectToKey=function(o,n){this.selectToIndex(this._keyToIndexMap[o],n)},s.prototype.selectToRange=function(o,n,t){if(this.mode!==it.none){if(this.mode===it.single){n===1&&this.setIndexSelected(o,!0,!0);return}var i=this._anchoredIndex||0,d=Math.min(o,i),c=Math.max(o+n-1,i);for(this.setChangeEvents(!1),t&&this._setAllSelected(!1,!0);d<=c;d++)this.setIndexSelected(d,!0,!1);this.setChangeEvents(!0)}},s.prototype.selectToIndex=function(o,n){if(this.mode!==it.none){if(this.mode===it.single){this.setIndexSelected(o,!0,!0);return}var t=this._anchoredIndex||0,i=Math.min(o,t),d=Math.max(o,t);for(this.setChangeEvents(!1),n&&this._setAllSelected(!1,!0);i<=d;i++)this.setIndexSelected(i,!0,!1);this.setChangeEvents(!0)}},s.prototype.toggleAllSelected=function(){this.setAllSelected(!this.isAllSelected())},s.prototype.toggleKeySelected=function(o){this.setKeySelected(o,!this.isKeySelected(o),!0)},s.prototype.toggleIndexSelected=function(o){this.setIndexSelected(o,!this.isIndexSelected(o),!0)},s.prototype.toggleRangeSelected=function(o,n){if(this.mode!==it.none){var t=this.isRangeSelected(o,n),i=o+n;if(!(this.mode===it.single&&n>1)){this.setChangeEvents(!1);for(var d=o;d<i;d++)this.setIndexSelected(d,!t,!1);this.setChangeEvents(!0)}}},s.prototype._updateCount=function(o){o===void 0&&(o=!1);var n=this.getSelectedCount();n!==this.count&&(this.count=n,this._change()),!this.count&&!o&&this.setModal(!1)},s.prototype._setAllSelected=function(o,n){if(n===void 0&&(n=!1),!(o&&this.mode!==it.multiple)){var t=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),t>0&&(this._exemptedCount>0||o!==this._isAllSelected)&&(this._exemptedIndices={},(o!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=o,this._change()),this._updateCount(n)),this.setChangeEvents(!0)}},s.prototype._change=function(){this._changeEventSuppressionCount===0?(this._selectedItems=null,this._selectedIndices=void 0,Yt.raise(this,ag),this._onSelectionChanged&&this._onSelectionChanged()):this._hasChanged=!0},s})();function jM(s,o){var n=(s||{}).key,t=n===void 0?""+o:n;return t}var LM=["theme","styles"];function Ze(s,o,n,t,i){t=t||{scope:"",fields:void 0};var d=t.scope,c=t.fields,u=c===void 0?LM:c,h=M.forwardRef(function(_,m){var x=M.useRef(),y=I5(u,d),v=y.styles;y.dir;var b=ms(y,["styles","dir"]),C=n?n(_):void 0,k=x.current&&x.current.__cachedInputs__||[];if(!x.current||v!==k[1]||_.styles!==k[2]){var L=function(I){return F0(I,o,v,_.styles)};L.__cachedInputs__=[o,v,_.styles],L.__noStyleOverride__=!v&&!_.styles,x.current=L}return M.createElement(s,N({ref:m},b,C,_,{styles:x.current}))});h.displayName="Styled"+(s.displayName||s.name);var g=i?M.memo(h):h;return h.displayName&&(g.displayName=h.displayName),g}var EM=function(){var s,o,n=nt();return!((o=(s=n)===null||s===void 0?void 0:s.navigator)===null||o===void 0)&&o.userAgent?n.navigator.userAgent.indexOf("rv:11.0")>-1:!1},DM=function(s){return function(o){for(var n=0,t=s.refs;n<t.length;n++){var i=t[n];typeof i=="function"?i(o):i&&(i.current=o)}}},Ky=function(s){var o={refs:[]};return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return(!o.resolver||!l5(o.refs,n))&&(o.resolver=DM(o)),o.refs=n,o.resolver}},IM="icons",Rs=z0.getValue(IM,{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),I_=_o.getInstance();I_&&I_.onReset&&I_.onReset(function(){for(var s in Rs)Rs.hasOwnProperty(s)&&Rs[s].subset&&(Rs[s].subset.className=void 0)});var Vf=function(s){return s.toLowerCase()};function Bn(s,o){var n=N(N({},s),{isRegistered:!1,className:void 0}),t=s.icons;o=o?N(N({},Rs.__options),o):Rs.__options;for(var i in t)if(t.hasOwnProperty(i)){var d=t[i],c=Vf(i);Rs[c]?AM(i):Rs[c]={code:d,subset:n}}}function ed(s,o){Rs.__remapped[Vf(s)]=Vf(o)}function TM(s){var o=void 0,n=Rs.__options;if(s=s?Vf(s):"",s=Rs.__remapped[s]||s,s)if(o=Rs[s],o){var t=o.subset;t&&t.fontFace&&(t.isRegistered||(N0(t.fontFace),t.isRegistered=!0),t.className||(t.className=Ho(t.style,{fontFamily:t.fontFace.fontFamily,fontWeight:t.fontFace.fontWeight||"normal",fontStyle:t.fontFace.fontStyle||"normal"})))}else!n.disableWarnings&&n.warnOnMissingIcons&&Wy('The icon "'+s+'" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.');return o}var Sp=[],T_=void 0;function AM(s){var o=Rs.__options,n=2e3,t=10;o.disableWarnings||(Sp.push(s),T_===void 0&&(T_=setTimeout(function(){Wy(`Some icons were re-registered. Applications should only call registerIcons for any given icon once. Redefining what an icon is may have unintended consequences. Duplicates include: 
`+Sp.slice(0,t).join(", ")+(Sp.length>t?" (+ "+(Sp.length-t)+" more)":"")),T_=void 0,Sp=[]},n)))}var rn="cubic-bezier(.1,.9,.2,1)",Ds="cubic-bezier(.1,.25,.75,.9)",Ip="0.167s",fy="0.267s",Gt="0.367s",gy="0.467s",Jn=wn({from:{opacity:0},to:{opacity:1}}),Zn=wn({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),PM=nl(-10),RM=nl(-20),FM=nl(-40),NM=nl(-400),OM=nl(10),YM=nl(20),WM=nl(40),BM=nl(400),HM=lg(10),zM=lg(20),UM=lg(-10),VM=lg(-20),GM=rl(10),$M=rl(20),KM=rl(40),qM=rl(400),JM=rl(-10),ZM=rl(-20),XM=rl(-40),QM=rl(-400),e3=dg(-10),t3=dg(-20),n3=dg(10),r3=dg(20),s3=wn({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),o3=wn({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),i3=wn({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),a3=wn({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),l3=wn({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),d3=wn({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),mo={easeFunction1:rn,easeFunction2:Ds,durationValue1:Ip,durationValue2:fy,durationValue3:Gt,durationValue4:gy},ib={slideRightIn10:ft(Jn+","+PM,Gt,rn),slideRightIn20:ft(Jn+","+RM,Gt,rn),slideRightIn40:ft(Jn+","+FM,Gt,rn),slideRightIn400:ft(Jn+","+NM,Gt,rn),slideLeftIn10:ft(Jn+","+OM,Gt,rn),slideLeftIn20:ft(Jn+","+YM,Gt,rn),slideLeftIn40:ft(Jn+","+WM,Gt,rn),slideLeftIn400:ft(Jn+","+BM,Gt,rn),slideUpIn10:ft(Jn+","+HM,Gt,rn),slideUpIn20:ft(Jn+","+zM,Gt,rn),slideDownIn10:ft(Jn+","+UM,Gt,rn),slideDownIn20:ft(Jn+","+VM,Gt,rn),slideRightOut10:ft(Zn+","+GM,Gt,rn),slideRightOut20:ft(Zn+","+$M,Gt,rn),slideRightOut40:ft(Zn+","+KM,Gt,rn),slideRightOut400:ft(Zn+","+qM,Gt,rn),slideLeftOut10:ft(Zn+","+JM,Gt,rn),slideLeftOut20:ft(Zn+","+ZM,Gt,rn),slideLeftOut40:ft(Zn+","+XM,Gt,rn),slideLeftOut400:ft(Zn+","+QM,Gt,rn),slideUpOut10:ft(Zn+","+e3,Gt,rn),slideUpOut20:ft(Zn+","+t3,Gt,rn),slideDownOut10:ft(Zn+","+n3,Gt,rn),slideDownOut20:ft(Zn+","+r3,Gt,rn),scaleUpIn100:ft(Jn+","+s3,Gt,rn),scaleDownIn100:ft(Jn+","+i3,Gt,rn),scaleUpOut103:ft(Zn+","+a3,Ip,Ds),scaleDownOut98:ft(Zn+","+o3,Ip,Ds),fadeIn100:ft(Jn,Ip,Ds),fadeIn200:ft(Jn,fy,Ds),fadeIn400:ft(Jn,Gt,Ds),fadeIn500:ft(Jn,gy,Ds),fadeOut100:ft(Zn,Ip,Ds),fadeOut200:ft(Zn,fy,Ds),fadeOut400:ft(Zn,Gt,Ds),fadeOut500:ft(Zn,gy,Ds),rotate90deg:ft(l3,"0.1s",Ds),rotateN90deg:ft(d3,"0.1s",Ds)};function ft(s,o,n){return{animationName:s,animationDuration:o,animationTimingFunction:n,animationFillMode:"both"}}function nl(s){return wn({from:{transform:"translate3d("+s+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function lg(s){return wn({from:{transform:"translate3d(0,"+s+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function rl(s){return wn({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+s+"px,0,0)"}})}function dg(s){return wn({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+s+"px,0)"}})}var mv={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"},Pc;(function(s){s.depth0="0 0 0 0 transparent",s.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",s.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",s.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",s.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"})(Pc||(Pc={}));var fv={elevation4:Pc.depth4,elevation8:Pc.depth8,elevation16:Pc.depth16,elevation64:Pc.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},gn;(function(s){s.Arabic="Segoe UI Web (Arabic)",s.Cyrillic="Segoe UI Web (Cyrillic)",s.EastEuropean="Segoe UI Web (East European)",s.Greek="Segoe UI Web (Greek)",s.Hebrew="Segoe UI Web (Hebrew)",s.Thai="Leelawadee UI Web",s.Vietnamese="Segoe UI Web (Vietnamese)",s.WestEuropean="Segoe UI Web (West European)",s.Selawik="Selawik Web",s.Armenian="Segoe UI Web (Armenian)",s.Georgian="Segoe UI Web (Georgian)"})(gn||(gn={}));var $t;(function(s){s.Arabic="'"+gn.Arabic+"'",s.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",s.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",s.Cyrillic="'"+gn.Cyrillic+"'",s.EastEuropean="'"+gn.EastEuropean+"'",s.Greek="'"+gn.Greek+"'",s.Hebrew="'"+gn.Hebrew+"'",s.Hindi="'Nirmala UI'",s.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",s.Korean="'Malgun Gothic', Gulim",s.Selawik="'"+gn.Selawik+"'",s.Thai="'Leelawadee UI Web', 'Kmer UI'",s.Vietnamese="'"+gn.Vietnamese+"'",s.WestEuropean="'"+gn.WestEuropean+"'",s.Armenian="'"+gn.Armenian+"'",s.Georgian="'"+gn.Georgian+"'"})($t||($t={}));var zr;(function(s){s.size10="10px",s.size12="12px",s.size14="14px",s.size16="16px",s.size18="18px",s.size20="20px",s.size24="24px",s.size28="28px",s.size32="32px",s.size42="42px",s.size68="68px",s.mini="10px",s.xSmall="10px",s.small="12px",s.smallPlus="12px",s.medium="14px",s.mediumPlus="16px",s.icon="16px",s.large="18px",s.xLarge="20px",s.xLargePlus="24px",s.xxLarge="28px",s.xxLargePlus="32px",s.superLarge="42px",s.mega="68px"})(zr||(zr={}));var Lt;(function(s){s.light=100,s.semilight=300,s.regular=400,s.semibold=600,s.bold=700})(Lt||(Lt={}));var Mr;(function(s){s.xSmall="10px",s.small="12px",s.medium="16px",s.large="20px"})(Mr||(Mr={}));var c3="'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",u3="'Segoe UI', '"+gn.WestEuropean+"'",A_={ar:$t.Arabic,bg:$t.Cyrillic,cs:$t.EastEuropean,el:$t.Greek,et:$t.EastEuropean,he:$t.Hebrew,hi:$t.Hindi,hr:$t.EastEuropean,hu:$t.EastEuropean,ja:$t.Japanese,kk:$t.EastEuropean,ko:$t.Korean,lt:$t.EastEuropean,lv:$t.EastEuropean,pl:$t.EastEuropean,ru:$t.Cyrillic,sk:$t.EastEuropean,"sr-latn":$t.EastEuropean,th:$t.Thai,tr:$t.EastEuropean,uk:$t.Cyrillic,vi:$t.Vietnamese,"zh-hans":$t.ChineseSimplified,"zh-hant":$t.ChineseTraditional,hy:$t.Armenian,ka:$t.Georgian};function p3(s){return s+", "+c3}function h3(s){for(var o in A_)if(A_.hasOwnProperty(o)&&s&&o.indexOf(s)===0)return A_[o];return u3}function Ls(s,o,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:s,fontWeight:o}}function m3(s){var o=h3(s),n=p3(o),t={tiny:Ls(zr.mini,Lt.regular,n),xSmall:Ls(zr.xSmall,Lt.regular,n),small:Ls(zr.small,Lt.regular,n),smallPlus:Ls(zr.smallPlus,Lt.regular,n),medium:Ls(zr.medium,Lt.regular,n),mediumPlus:Ls(zr.mediumPlus,Lt.regular,n),large:Ls(zr.large,Lt.regular,n),xLarge:Ls(zr.xLarge,Lt.semibold,n),xLargePlus:Ls(zr.xLargePlus,Lt.semibold,n),xxLarge:Ls(zr.xxLarge,Lt.semibold,n),xxLargePlus:Ls(zr.xxLargePlus,Lt.semibold,n),superLarge:Ls(zr.superLarge,Lt.semibold,n),mega:Ls(zr.mega,Lt.semibold,n)};return t}var f3="https://static2.sharepointonline.com/files/fabric/assets",g3=m3(_M());function rd(s,o,n,t){s="'"+s+"'";var i=t!==void 0?"local('"+t+"'),":"";N0({fontFamily:s,src:i+("url('"+o+".woff2') format('woff2'),")+("url('"+o+".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function Fo(s,o,n,t,i){t===void 0&&(t="segoeui");var d=s+"/"+n+"/"+t;rd(o,d+"-light",Lt.light,i&&i+" Light"),rd(o,d+"-semilight",Lt.semilight,i&&i+" SemiLight"),rd(o,d+"-regular",Lt.regular,i),rd(o,d+"-semibold",Lt.semibold,i&&i+" SemiBold"),rd(o,d+"-bold",Lt.bold,i&&i+" Bold")}function _3(s){if(s){var o=s+"/fonts";Fo(o,gn.Thai,"leelawadeeui-thai","leelawadeeui"),Fo(o,gn.Arabic,"segoeui-arabic"),Fo(o,gn.Cyrillic,"segoeui-cyrillic"),Fo(o,gn.EastEuropean,"segoeui-easteuropean"),Fo(o,gn.Greek,"segoeui-greek"),Fo(o,gn.Hebrew,"segoeui-hebrew"),Fo(o,gn.Vietnamese,"segoeui-vietnamese"),Fo(o,gn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),Fo(o,$t.Selawik,"selawik","selawik"),Fo(o,gn.Armenian,"segoeui-armenian"),Fo(o,gn.Georgian,"segoeui-georgian"),rd("Leelawadee UI Web",o+"/leelawadeeui-thai/leelawadeeui-semilight",Lt.light),rd("Leelawadee UI Web",o+"/leelawadeeui-thai/leelawadeeui-bold",Lt.semibold)}}function y3(){var s,o,n,t=(s=nt())===null||s===void 0?void 0:s.FabricConfig;return n=(o=t)===null||o===void 0?void 0:o.fontBaseUrl,n??f3}_3(y3());var _e="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",w3="@media screen and (-ms-high-contrast: black-on-white), screen and (forced-colors: active) and (prefers-color-scheme: light)",P_=320,cg=480,ab=640,v3=1024,qy=1366,If=cg-1,lb=ab-1,x3=768;function ug(s,o){var n=typeof s=="number"?" and (min-width: "+s+"px)":"",t=typeof o=="number"?" and (max-width: "+o+"px)":"";return"@media only screen"+n+t}function bt(){return{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}}var Hp;(function(s){s.Nav=1,s.ScrollablePane=1,s.FocusStyle=1,s.Coachmark=1e3,s.Layer=1e6,s.KeytipLayer=1000001})(Hp||(Hp={}));function On(s,o,n,t,i,d,c){return typeof o=="number"||!o?gv(s,{inset:o,position:n,highContrastStyle:t,borderColor:i,outlineColor:d,isFocusedOnly:c}):gv(s,o)}function gv(s,o){var n,t;o===void 0&&(o={});var i=o.inset,d=i===void 0?0:i,c=o.width,u=c===void 0?1:c,h=o.position,g=h===void 0?"relative":h,_=o.highContrastStyle,m=o.borderColor,x=m===void 0?s.palette.white:m,y=o.outlineColor,v=y===void 0?s.palette.neutralSecondary:y,b=o.isFocusedOnly,C=b===void 0?!0:b;return{outline:"transparent",position:g,selectors:(n={"::-moz-focus-inner":{border:"0"}},n["."+fn+" &"+(C?":focus":"")+":after"]={content:'""',position:"absolute",left:d+1,top:d+1,bottom:d+1,right:d+1,border:u+"px solid "+x,outline:u+"px solid "+v,zIndex:Hp.FocusStyle,selectors:(t={},t[_e]=_,t)},n)}}function Jy(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}var _y=function(s,o,n,t){var i,d,c;n===void 0&&(n="border"),t===void 0&&(t=-1);var u=n==="borderBottom";return{borderColor:s,selectors:{":after":(i={pointerEvents:"none",content:"''",position:"absolute",left:u?0:t,top:t,bottom:t,right:u?0:t},i[n]="2px solid "+s,i.borderRadius=o,i.width=n==="borderBottom"?"100%":void 0,i.selectors=(d={},d[_e]=(c={},c[n==="border"?"borderColor":"borderBottomColor"]="Highlight",c),d),i)}}},wd={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden"},b3="14s",S3="2s",C3="1";function Pp(s,o){return{borderColor:s,borderWidth:"0px",width:o,height:o}}function Tf(s){return{opacity:1,borderWidth:s}}function Af(){return{opacity:1}}function Pf(s,o){return{borderWidth:"0",width:o,height:o,opacity:0,borderColor:s}}function Jm(s,o){return N(N({},Pp(s,o)),{opacity:0})}function k3(s,o,n,t,i){return wn({"0%":Pp(s,n),"1.42%":Tf(i),"3.57%":Af(),"7.14%":Pf(o,t),"8%":Jm(s,n),"29.99%":Jm(s,n),"30%":Pp(s,n),"31.42%":Tf(i),"33.57%":Af(),"37.14%":Pf(o,t),"38%":Jm(s,n),"79.42%":Jm(s,n),"79.43":Pp(s,n),"81.85":Tf(i),"83.42":Af(),"87%":Pf(o,t),"100%":{}})}function M3(s,o,n,t,i){return wn({"0%":Pp(s,n),"14.2%":Tf(i),"35.7%":Af(),"71.4%":Pf(o,t),"100%":{}})}function j3(s,o){return{animationName:s,animationIterationCount:C3,animationDuration:b3,animationDelay:o||S3}}var _v={continuousPulseAnimationDouble:k3,continuousPulseAnimationSingle:M3,createDefaultAnimation:j3},L3=Et(function(s,o){var n=_o.getInstance();return o?Object.keys(s).reduce(function(t,i){return t[i]=n.getClassName(s[i]),t},{}):s});function at(s,o,n){return L3(s,o.disableGlobalClassNames)}var Rc=function(){return Rc=Object.assign||function(s){for(var o,n=1,t=arguments.length;n<t;n++){o=arguments[n];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(s[i]=o[i])}return s},Rc.apply(this,arguments)},Rp=typeof window>"u"?global:window,yv=Rp&&Rp.CSPSettings&&Rp.CSPSettings.nonce,zo=E3();function E3(){var s=Rp.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return s.runState||(s=Rc(Rc({},s),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),s.registeredThemableStyles||(s=Rc(Rc({},s),{registeredThemableStyles:[]})),Rp.__themeState__=s,s}function D3(s,o){zo.loadStyles?zo.loadStyles(db(s).styleString,s):R3(s)}function I3(s){zo.theme=s,P3()}function T3(s){A3(zo.registeredThemableStyles),zo.registeredThemableStyles=[]}function A3(s){s.forEach(function(o){var n=o&&o.styleElement;n&&n.parentElement&&n.parentElement.removeChild(n)})}function P3(){if(zo.theme){for(var s=[],o=0,n=zo.registeredThemableStyles;o<n.length;o++){var t=n[o];s.push(t.themableStyle)}s.length>0&&(T3(),D3([].concat.apply([],s)))}}function db(s){var o=zo.theme,n=!1,t=(s||[]).map(function(i){var d=i.theme;if(d){n=!0;var c=o?o[d]:void 0,u=i.defaultValue||"inherit";return o&&!c&&console&&!(d in o)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(d,'". Falling back to "').concat(u,'".')),c||u}else return i.rawString});return{styleString:t.join(""),themable:n}}function R3(s){if(!(typeof document>"u")){var o=document.getElementsByTagName("head")[0],n=document.createElement("style"),t=db(s),i=t.styleString,d=t.themable;n.setAttribute("data-load-themed-styles","true"),yv&&n.setAttribute("nonce",yv),n.appendChild(document.createTextNode(i)),zo.perf.count++,o.appendChild(n);var c=document.createEvent("HTMLEvents");c.initEvent("styleinsert",!0,!1),c.args={newStyle:n},document.dispatchEvent(c);var u={styleElement:n,themableStyle:s};d?zo.registeredThemableStyles.push(u):zo.registeredStyles.push(u)}}function F3(s,o,n,t,i){i===void 0&&(i=!1);var d=N({primaryButtonBorder:"transparent",errorText:t?"#F1707B":"#a4262c",messageText:t?"#F3F2F1":"#323130",messageLink:t?"#6CB8F6":"#005A9E",messageLinkHovered:t?"#82C7FF":"#004578",infoIcon:t?"#C8C6C4":"#605e5c",errorIcon:t?"#F1707B":"#A80000",blockingIcon:t?"#442726":"#FDE7E9",warningIcon:t?"#C8C6C4":"#797775",severeWarningIcon:t?"#FCE100":"#D83B01",successIcon:t?"#92C353":"#107C10",infoBackground:t?"#323130":"#f3f2f1",errorBackground:t?"#442726":"#FDE7E9",blockingBackground:t?"#442726":"#FDE7E9",warningBackground:t?"#433519":"#FFF4CE",severeWarningBackground:t?"#4F2A0F":"#FED9CC",successBackground:t?"#393D1B":"#DFF6DD",warningHighlight:t?"#fff100":"#ffb900",successText:t?"#92c353":"#107C10"},n),c=cb(s,o,d,t);return N3(c,i)}function cb(s,o,n,t,i){var d,c,u,h={},g=s||{},_=g.white,m=g.black,x=g.themePrimary,y=g.themeDark,v=g.themeDarker,b=g.themeDarkAlt,C=g.themeLighter,k=g.neutralLight,L=g.neutralLighter,I=g.neutralDark,A=g.neutralQuaternary,Y=g.neutralQuaternaryAlt,P=g.neutralPrimary,T=g.neutralSecondary,F=g.neutralSecondaryAlt,H=g.neutralTertiary,W=g.neutralTertiaryAlt,K=g.neutralLighterAlt,Z=g.accent;return _&&(h.bodyBackground=_,h.bodyFrameBackground=_,h.accentButtonText=_,h.buttonBackground=_,h.primaryButtonText=_,h.primaryButtonTextHovered=_,h.primaryButtonTextPressed=_,h.inputBackground=_,h.inputForegroundChecked=_,h.listBackground=_,h.menuBackground=_,h.cardStandoutBackground=_),m&&(h.bodyTextChecked=m,h.buttonTextCheckedHovered=m),x&&(h.link=x,h.primaryButtonBackground=x,h.inputBackgroundChecked=x,h.inputIcon=x,h.inputFocusBorderAlt=x,h.menuIcon=x,h.menuHeader=x,h.accentButtonBackground=x),y&&(h.primaryButtonBackgroundPressed=y,h.inputBackgroundCheckedHovered=y,h.inputIconHovered=y),v&&(h.linkHovered=v),b&&(h.primaryButtonBackgroundHovered=b),C&&(h.inputPlaceholderBackgroundChecked=C),k&&(h.bodyBackgroundChecked=k,h.bodyFrameDivider=k,h.bodyDivider=k,h.variantBorder=k,h.buttonBackgroundCheckedHovered=k,h.buttonBackgroundPressed=k,h.listItemBackgroundChecked=k,h.listHeaderBackgroundPressed=k,h.menuItemBackgroundPressed=k,h.menuItemBackgroundChecked=k),L&&(h.bodyBackgroundHovered=L,h.buttonBackgroundHovered=L,h.buttonBackgroundDisabled=L,h.buttonBorderDisabled=L,h.primaryButtonBackgroundDisabled=L,h.disabledBackground=L,h.listItemBackgroundHovered=L,h.listHeaderBackgroundHovered=L,h.menuItemBackgroundHovered=L),A&&(h.primaryButtonTextDisabled=A,h.disabledSubtext=A),Y&&(h.listItemBackgroundCheckedHovered=Y),H&&(h.disabledBodyText=H,h.variantBorderHovered=((d=n)===null||d===void 0?void 0:d.variantBorderHovered)||H,h.buttonTextDisabled=H,h.inputIconDisabled=H,h.disabledText=H),P&&(h.bodyText=P,h.actionLink=P,h.buttonText=P,h.inputBorderHovered=P,h.inputText=P,h.listText=P,h.menuItemText=P),K&&(h.bodyStandoutBackground=K,h.defaultStateBackground=K),I&&(h.actionLinkHovered=I,h.buttonTextHovered=I,h.buttonTextChecked=I,h.buttonTextPressed=I,h.inputTextHovered=I,h.menuItemTextHovered=I),T&&(h.bodySubtext=T,h.focusBorder=T,h.inputBorder=T,h.smallInputBorder=T,h.inputPlaceholderText=T),F&&(h.buttonBorder=F),W&&(h.disabledBodySubtext=W,h.disabledBorder=W,h.buttonBackgroundChecked=W,h.menuDivider=W),Z&&(h.accentButtonBackground=Z),!((c=o)===null||c===void 0)&&c.elevation4&&(h.cardShadow=o.elevation4),!t&&(!((u=o)===null||u===void 0)&&u.elevation8)?h.cardShadowHovered=o.elevation8:h.variantBorderHovered&&(h.cardShadowHovered="0 0 1px "+h.variantBorderHovered),h=N(N({},h),n),h}function N3(s,o){var n="";return o===!0&&(n=" /* @deprecated */"),s.listTextColor=s.listText+n,s.menuItemBackgroundChecked+=n,s.warningHighlight+=n,s.warningText=s.messageText+n,s.successText+=n,s}function O3(s,o){o===void 0&&(o={});var n,t,i,d,c=uv({},s,o,{semanticColors:cb(o.palette,o.effects,o.semanticColors,o.isInverted===void 0?s.isInverted:o.isInverted)});if(!((n=o.palette)===null||n===void 0)&&n.themePrimary&&!(!((t=o.palette)===null||t===void 0)&&t.accent)&&(c.palette.accent=o.palette.themePrimary),o.defaultFontStyle)for(var u=0,h=Object.keys(c.fonts);u<h.length;u++){var g=h[u];c.fonts[g]=uv(c.fonts[g],o.defaultFontStyle,(d=(i=o)===null||i===void 0?void 0:i.fonts)===null||d===void 0?void 0:d[g])}return o.stylesheets&&(c.stylesheets=(s.stylesheets||[]).concat(o.stylesheets)),c}var Y3={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function lh(s,o){s===void 0&&(s={}),o===void 0&&(o=!1);var n=!!s.isInverted,t={palette:mv,effects:fv,fonts:g3,spacing:Y3,isInverted:n,disableGlobalClassNames:!1,semanticColors:F3(mv,fv,void 0,n,o),rtl:void 0};return O3(t,s)}var uo=lh({}),W3=[],yy="theme";function ub(){var s,o,n,t,i,d=nt();!((n=(o=d)===null||o===void 0?void 0:o.FabricConfig)===null||n===void 0)&&n.legacyTheme?H3(d.FabricConfig.legacyTheme):go.getSettings([yy]).theme||(!((i=(t=d)===null||t===void 0?void 0:t.FabricConfig)===null||i===void 0)&&i.theme&&(uo=lh(d.FabricConfig.theme)),go.applySettings((s={},s[yy]=uo,s)))}ub();function B3(s){return s===void 0&&(s=!1),s===!0&&(uo=lh({},s)),uo}function H3(s,o){var n;return o===void 0&&(o=!1),uo=lh(s,o),I3(N(N(N(N({},uo.palette),uo.semanticColors),uo.effects),z3(uo))),go.applySettings((n={},n[yy]=uo,n)),W3.forEach(function(t){try{t(uo)}catch{}}),uo}function z3(s){for(var o={},n=0,t=Object.keys(s.fonts);n<t.length;n++)for(var i=t[n],d=s.fonts[i],c=0,u=Object.keys(d);c<u.length;c++){var h=u[c],g=i+h.charAt(0).toUpperCase()+h.slice(1),_=d[h];h==="fontSize"&&typeof _=="number"&&(_=_+"px"),o[g]=_}return o}var cd={boxShadow:"none",margin:0,padding:0,boxSizing:"border-box"},U3={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};function wy(s){return{selectors:{"::placeholder":s,":-ms-input-placeholder":s,"::-ms-input-placeholder":s}}}var Jr=Qk(ib);Ny("@uifabric/styling","7.25.0");ub();var Ot={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13},De;(function(s){s[s.top=1]="top",s[s.bottom=-1]="bottom",s[s.left=2]="left",s[s.right=-2]="right"})(De||(De={}));var wv;(function(s){s[s.top=0]="top",s[s.bottom=1]="bottom",s[s.start=2]="start",s[s.end=3]="end"})(wv||(wv={}));var Cr;function as(s,o,n){return{targetEdge:s,alignmentEdge:o,isAuto:n}}var vy=(Cr={},Cr[Ot.topLeftEdge]=as(De.top,De.left),Cr[Ot.topCenter]=as(De.top),Cr[Ot.topRightEdge]=as(De.top,De.right),Cr[Ot.topAutoEdge]=as(De.top,void 0,!0),Cr[Ot.bottomLeftEdge]=as(De.bottom,De.left),Cr[Ot.bottomCenter]=as(De.bottom),Cr[Ot.bottomRightEdge]=as(De.bottom,De.right),Cr[Ot.bottomAutoEdge]=as(De.bottom,void 0,!0),Cr[Ot.leftTopEdge]=as(De.left,De.top),Cr[Ot.leftCenter]=as(De.left),Cr[Ot.leftBottomEdge]=as(De.left,De.bottom),Cr[Ot.rightTopEdge]=as(De.right,De.top),Cr[Ot.rightCenter]=as(De.right),Cr[Ot.rightBottomEdge]=as(De.right,De.bottom),Cr);function Zy(s,o){return!(s.top<o.top||s.bottom>o.bottom||s.left<o.left||s.right>o.right)}function xy(s,o){var n=[];return s.top<o.top&&n.push(De.top),s.bottom>o.bottom&&n.push(De.bottom),s.left<o.left&&n.push(De.left),s.right>o.right&&n.push(De.right),n}function Ys(s,o){return s[De[o]]}function vv(s,o,n){return s[De[o]]=n,s}function zp(s,o){var n=ru(o);return(Ys(s,n.positiveEdge)+Ys(s,n.negativeEdge))/2}function pg(s,o){return s>0?o:o*-1}function by(s,o){return pg(s,Ys(o,s))}function Up(s,o,n){var t=Ys(s,n)-Ys(o,n);return pg(n,t)}function hg(s,o,n){var t=Ys(s,o)-n;return s=vv(s,o,n),s=vv(s,o*-1,Ys(s,o*-1)-t),s}function Vp(s,o,n,t){return t===void 0&&(t=0),hg(s,n,Ys(o,n)+pg(n,t))}function V3(s,o,n,t){t===void 0&&(t=0);var i=n*-1,d=pg(i,t);return hg(s,n*-1,Ys(o,n)+d)}function Sy(s,o,n){var t=by(n,s);return t>by(n,o)}function G3(s,o,n,t,i){i===void 0&&(i=0);var d=[De.left,De.right,De.bottom,De.top];At()&&(d[0]*=-1,d[1]*=-1);for(var c=s,u=t.targetEdge,h=t.alignmentEdge,g=0;g<4;g++)if(!Sy(c,n,u))d.splice(d.indexOf(u),1),d.length>0&&(d.indexOf(u*-1)>-1?u=u*-1:(h=u,u=d.slice(-1)[0]),c=Xy(s,o,{targetEdge:u,alignmentEdge:h},i));else return{elementRectangle:c,targetEdge:u,alignmentEdge:h};return{elementRectangle:s,targetEdge:t.targetEdge,alignmentEdge:t.alignmentEdge}}function $3(s,o,n,t){var i=s.alignmentEdge,d=s.targetEdge,c=s.elementRectangle,u=i*-1,h=Xy(c,o,{targetEdge:d,alignmentEdge:u},n,t);return{elementRectangle:h,targetEdge:d,alignmentEdge:u}}function K3(s,o,n,t,i,d,c){i===void 0&&(i=0);var u=t.alignmentEdge,h=t.alignTargetEdge,g={elementRectangle:s,targetEdge:t.targetEdge,alignmentEdge:u};!d&&!c&&(g=G3(s,o,n,t,i));var _=xy(s,n);if(h){if(g.alignmentEdge&&_.indexOf(g.alignmentEdge*-1)>-1){var m=$3(g,o,i,c);if(Zy(m.elementRectangle,n))return m;g=xv(xy(m.elementRectangle,n),g,n)}}else g=xv(_,g,n);return g}function xv(s,o,n){for(var t=0,i=s;t<i.length;t++){var d=i[t];o.elementRectangle=Vp(o.elementRectangle,n,d)}return o}function pb(s,o,n){var t=ru(o).positiveEdge,i=zp(s,o),d=i-Ys(s,t);return hg(s,t,n-d)}function Xy(s,o,n,t,i){t===void 0&&(t=0);var d,c=n.alignmentEdge,u=n.targetEdge,h=i?u:u*-1;if(d=i?Vp(s,o,u,t):V3(s,o,u,t),c)d=Vp(d,o,c);else{var g=zp(o,u);d=pb(d,h,g)}return d}function ru(s){return s===De.top||s===De.bottom?{positiveEdge:De.left,negativeEdge:De.right}:{positiveEdge:De.top,negativeEdge:De.bottom}}function hb(s,o,n){return n&&Math.abs(Up(s,n,o))>Math.abs(Up(s,n,o*-1))?o*-1:o}function q3(s,o,n,t,i,d,c){var u={},h=mg(o),g=d?n:n*-1,_=De[g],m=i||ru(n).positiveEdge;return c||(m=hb(s,m,t)),u[_]=Up(s,h,g),u[De[m]]=Up(s,h,m),u}function J3(s){return Math.sqrt(s*s*2)}function Z3(s,o,n){if(s===void 0&&(s=Ot.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var t=N({},vy[s]);return At()?(t.alignmentEdge&&t.alignmentEdge%2===0&&(t.alignmentEdge=t.alignmentEdge*-1),o!==void 0?vy[o]:t):t}function X3(s,o,n,t,i){return s.isAuto&&(s.alignmentEdge=mb(s.targetEdge,o,n)),s.alignTargetEdge=i,s}function mb(s,o,n){var t=zp(o,s),i=zp(n,s),d=ru(s),c=d.positiveEdge,u=d.negativeEdge;return t<=i?c:u}function Q3(s,o,n,t,i,d,c){var u=Xy(s,o,t,i,c);return Zy(u,n)?{elementRectangle:u,targetEdge:t.targetEdge,alignmentEdge:t.alignmentEdge}:K3(s,o,n,t,i,d,c)}function ej(s,o,n){var t=s.targetEdge*-1,i=new Fs(0,s.elementRectangle.width,0,s.elementRectangle.height),d={},c=hb(s.elementRectangle,s.alignmentEdge?s.alignmentEdge:ru(t).positiveEdge,n);return d[De[t]]=Ys(o,t),d[De[c]]=Up(o,i,c),{elementPosition:N({},d),closestEdge:mb(s.targetEdge,o,i),targetEdge:t}}function tj(s,o){var n=o.targetRectangle,t=ru(o.targetEdge),i=t.positiveEdge,d=t.negativeEdge,c=zp(n,o.targetEdge),u=new Fs(s/2,o.elementRectangle.width-s/2,s/2,o.elementRectangle.height-s/2),h=new Fs(0,s,0,s);return h=hg(h,o.targetEdge*-1,-s/2),h=pb(h,o.targetEdge*-1,c-by(i,o.elementRectangle)),Sy(h,u,i)?Sy(h,u,d)||(h=Vp(h,u,d)):h=Vp(h,u,i),h}function mg(s){var o=s.getBoundingClientRect();return new Fs(o.left,o.right,o.top,o.bottom)}function Qy(s){return new Fs(s.left,s.right,s.top,s.bottom)}function nj(s,o){var n;if(o){if(o.preventDefault){var t=o;n=new Fs(t.clientX,t.clientX,t.clientY,t.clientY)}else if(o.getBoundingClientRect)n=mg(o);else{var i=o,d=i.left||i.x,c=i.top||i.y,u=i.right||d,h=i.bottom||c;n=new Fs(d,u,c,h)}if(!Zy(n,s))for(var g=xy(n,s),_=0,m=g;_<m.length;_++){var x=m[_];n[De[x]]=s[De[x]]}}else n=new Fs(0,0,0,0);return n}function rj(s,o,n,t,i){var d=0,c=vy[o],u=i?c.targetEdge*-1:c.targetEdge;return u===De.top?d=Ys(s,c.targetEdge)-t.top-n:u===De.bottom?d=t.bottom-Ys(s,c.targetEdge)-n:d=t.bottom-s.top-n,d>0?d:t.height}function fb(s,o,n,t){var i=s.gapSpace?s.gapSpace:0,d=nj(n,s.target),c=X3(Z3(s.directionalHint,s.directionalHintForRTL,t),d,n,s.coverTarget,s.alignTargetEdge),u=Q3(mg(o),d,n,c,i,s.directionalHintFixed,s.coverTarget);return N(N({},u),{targetRectangle:d})}function gb(s,o,n,t,i){var d=q3(s.elementRectangle,o,s.targetEdge,n,s.alignmentEdge,t,i);return{elementPosition:d,targetEdge:s.targetEdge,alignmentEdge:s.alignmentEdge}}function sj(s,o,n,t){var i=s.bounds?Qy(s.bounds):new Fs(0,window.innerWidth-Yy(),0,window.innerHeight),d=fb(s,n,i,t);return gb(d,o,i,s.coverTarget)}function _b(s,o,n,t,i){var d=s.isBeakVisible&&s.beakWidth||0,c=J3(d)/2+(s.gapSpace?s.gapSpace:0),u=s;u.gapSpace=c;var h=s.bounds?Qy(s.bounds):new Fs(0,window.innerWidth-Yy(),0,window.innerHeight),g=fb(u,n,h,t),_=tj(d,g),m=ej(g,_,h);return N(N({},gb(g,o,h,s.coverTarget,i)),{beakPosition:m})}function oj(s,o,n,t){return _b(s,o,n,t,!0)}function ij(s,o,n,t){return sj(s,o,n,t)}function aj(s,o,n,t){return _b(s,o,n,t)}function lj(s,o,n,t){return oj(s,o,n,t)}function yb(s,o,n,t,i){n===void 0&&(n=0);var d=s,c=s,u=s,h,g=t?Qy(t):new Fs(0,window.innerWidth-Yy(),0,window.innerHeight),_=u.left||u.x,m=u.top||u.y,x=u.right||_,y=u.bottom||m;return d.stopPropagation?h=new Fs(d.clientX,d.clientX,d.clientY,d.clientY):_!==void 0&&m!==void 0?h=new Fs(_,x,m,y):h=mg(c),rj(h,o,n,g,i)}function dj(s){return s*-1}function cj(s,o){var n=void 0;if(o.getWindowSegments&&(n=o.getWindowSegments()),n===void 0||n.length<=1)return{top:0,left:0,right:o.innerWidth,bottom:o.innerHeight,width:o.innerWidth,height:o.innerHeight};var t=0,i=0;if(s!==null&&s.getBoundingClientRect){var d=s.getBoundingClientRect();t=(d.left+d.right)/2,i=(d.top+d.bottom)/2}else s!==null&&(t=s.left||s.x,i=s.top||s.y);for(var c={top:0,left:0,right:0,bottom:0,width:0,height:0},u=0,h=n;u<h.length;u++){var g=h[u];t&&g.left<=t&&g.right>=t&&i&&g.top<=i&&g.bottom>=i&&(c={top:g.top,left:g.left,right:g.right,bottom:g.bottom,width:g.width,height:g.height})}return c}function uj(s,o){return cj(s,o)}var dh=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._root=M.createRef(),t._disposables=[],t._onKeyDown=function(i){switch(i.which){case ke.escape:t.props.onDismiss&&(t.props.onDismiss(i),i.preventDefault(),i.stopPropagation());break}},t._onFocus=function(){t._containsFocus=!0},t._onBlur=function(i){t._root.current&&i.relatedTarget&&!un(t._root.current,i.relatedTarget)&&(t._containsFocus=!1)},t._async=new Wn(t),t.state={needsVerticalScrollBar:!1},t}return o.prototype.UNSAFE_componentWillMount=function(){this._originalFocusedElement=yn().activeElement},o.prototype.componentDidMount=function(){if(this._root.current){this._disposables.push(ho(this._root.current,"focus",this._onFocus,!0),ho(this._root.current,"blur",this._onBlur,!0));var n=nt(this._root.current);n&&this._disposables.push(ho(n,"keydown",this._onKeyDown)),O5(this._root.current)&&(this._containsFocus=!0)}this._updateScrollBarAsync()},o.prototype.componentDidUpdate=function(){this._updateScrollBarAsync(),this._async.dispose()},o.prototype.componentWillUnmount=function(){var n;if(this._disposables.forEach(function(d){return d()}),this.props.shouldRestoreFocus){var t=this.props.onRestoreFocus,i=t===void 0?pj:t;i({originalElement:this._originalFocusedElement,containsFocus:this._containsFocus,documentContainsFocus:((n=yn())===null||n===void 0?void 0:n.hasFocus())||!1})}delete this._originalFocusedElement},o.prototype.render=function(){var n=this.props,t=n.role,i=n.className,d=n.ariaLabel,c=n.ariaLabelledBy,u=n.ariaDescribedBy,h=n.style;return M.createElement("div",N({ref:this._root},pt(this.props,Yn),{className:i,role:t,"aria-label":d,"aria-labelledby":c,"aria-describedby":u,onKeyDown:this._onKeyDown,style:N({overflowY:this.state.needsVerticalScrollBar?"scroll":void 0,outline:"none"},h)}),this.props.children)},o.prototype._updateScrollBarAsync=function(){var n=this;this._async.requestAnimationFrame(function(){n._getScrollBar()})},o.prototype._getScrollBar=function(){if(!(this.props.style&&this.props.style.overflowY)){var n=!1;if(this._root&&this._root.current&&this._root.current.firstElementChild){var t=this._root.current.clientHeight,i=this._root.current.firstElementChild.clientHeight;t>0&&i>t&&(n=i-t>1)}this.state.needsVerticalScrollBar!==n&&this.setState({needsVerticalScrollBar:n})}},o.defaultProps={shouldRestoreFocus:!0},o})(M.Component);function pj(s){var o=s.originalElement,n=s.containsFocus;o&&n&&o!==window&&o.focus&&o.focus()}var Lc,hj=(Lc={},Lc[De.top]=Jr.slideUpIn10,Lc[De.bottom]=Jr.slideDownIn10,Lc[De.left]=Jr.slideLeftIn10,Lc[De.right]=Jr.slideRightIn10,Lc),mj=Je({disableCaching:!0}),bv={top:0,left:0},fj={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Sv=["role","aria-roledescription"],gj=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._hostElement=M.createRef(),t._calloutElement=M.createRef(),t._hasListeners=!1,t._disposables=[],t.dismiss=function(i){var d=t.props.onDismiss;d&&d(i)},t._dismissOnScroll=function(i){var d=t.props,c=d.preventDismissOnEvent,u=d.preventDismissOnScroll;t.state.positions&&(c&&!c(i)||!c&&!u)&&t._dismissOnClickOrScroll(i)},t._dismissOnResize=function(i){var d=t.props,c=d.preventDismissOnEvent,u=d.preventDismissOnResize;(c&&!c(i)||!c&&!u)&&t.dismiss(i)},t._dismissOnLostFocus=function(i){var d=t.props,c=d.preventDismissOnEvent,u=d.preventDismissOnLostFocus;(c&&!c(i)||!c&&!u)&&t._dismissOnClickOrScroll(i)},t._setInitialFocus=function(){t.props.setInitialFocus&&!t._didSetInitialFocus&&t.state.positions&&t._calloutElement.current&&(t._didSetInitialFocus=!0,t._async.requestAnimationFrame(function(){return ig(t._calloutElement.current)},t._calloutElement.current))},t._onComponentDidMount=function(){t._addListeners(),t.props.onLayerMounted&&t.props.onLayerMounted(),t._updateAsyncPosition(),t._setHeightOffsetEveryFrame()},t._dismissOnTargetWindowBlur=function(i){var d=t.props,c=d.preventDismissOnEvent,u=d.preventDismissOnLostFocus,h=d.shouldDismissOnWindowFocus;h&&(c&&!c(i)||!c&&!u)&&!t._targetWindow.document.hasFocus()&&i.relatedTarget===null&&t.dismiss(i)},t._mouseDownOnPopup=function(){t._isMouseDownOnPopup=!0},t._mouseUpOnPopup=function(){t._isMouseDownOnPopup=!1},t._async=new Wn(t),t._didSetInitialFocus=!1,t.state={positions:void 0,slideDirectionalClassName:void 0,calloutElementRect:void 0,heightOffset:0},t._positionAttempts=0,t}return o.prototype.componentDidUpdate=function(){this.props.hidden?this._hasListeners&&this._removeListeners():(this._setInitialFocus(),this._hasListeners||this._addListeners(),this._updateAsyncPosition())},o.prototype.shouldComponentUpdate=function(n,t){return!n.shouldUpdateWhenHidden&&this.props.hidden&&n.hidden?!1:!bi(this.props,n)||!bi(this.state,t)},o.prototype.UNSAFE_componentWillMount=function(){this._setTargetWindowAndElement(this._getTarget())},o.prototype.componentWillUnmount=function(){this._async.dispose(),this._disposables.forEach(function(n){return n()})},o.prototype.UNSAFE_componentWillUpdate=function(n){var t=this._getTarget(n),i=this._getTarget();(t!==i||typeof t=="string"||t instanceof String)&&!this._blockResetHeight&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t)),(n.gapSpace!==this.props.gapSpace||this.props.beakWidth!==n.beakWidth)&&(this._maxHeight=void 0),n.finalHeight!==this.props.finalHeight&&this._setHeightOffsetEveryFrame(),this._didPositionPropsChange(n,this.props)&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t),this.setState({positions:void 0}),this._didSetInitialFocus=!1,this._bounds=void 0),this._blockResetHeight=!1},o.prototype.componentDidMount=function(){this.props.hidden||this._onComponentDidMount()},o.prototype.render=function(){if(!this._targetWindow)return null;var n=this.props.target,t=this.props,i=t.styles,d=t.style,c=t.ariaLabel,u=t.ariaDescribedBy,h=t.ariaLabelledBy,g=t.className,_=t.isBeakVisible,m=t.children,x=t.beakWidth,y=t.calloutWidth,v=t.calloutMaxWidth,b=t.calloutMinWidth,C=t.finalHeight,k=t.hideOverflow,L=k===void 0?!!C:k,I=t.backgroundColor,A=t.calloutMaxHeight,Y=t.onScroll,P=t.shouldRestoreFocus,T=P===void 0?!0:P,F=t.popupProps;n=this._getTarget();var H=this.state.positions,W=this._getMaxHeight()?this._getMaxHeight()+this.state.heightOffset:void 0,K=A&&W&&A<W?A:W,Z=L,Q=_&&!!n;this._classNames=mj(i,{theme:this.props.theme,className:g,overflowYHidden:Z,calloutWidth:y,positions:H,beakWidth:x,backgroundColor:I,calloutMinWidth:b,calloutMaxWidth:v});var B=N(N(N({},d),{maxHeight:K}),Z&&{overflowY:"hidden"}),R=this.props.hidden?{visibility:"hidden"}:void 0,X=M.createElement("div",{ref:this._hostElement,className:this._classNames.container,style:R},M.createElement("div",N({},pt(this.props,Yn,Sv),{className:sn(this._classNames.root,H&&H.targetEdge&&hj[H.targetEdge]),style:H?H.elementPosition:fj,tabIndex:-1,ref:this._calloutElement}),Q&&M.createElement("div",{className:this._classNames.beak,style:this._getBeakPosition()}),Q&&M.createElement("div",{className:this._classNames.beakCurtain}),M.createElement(dh,N({},pt(this.props,Sv),{ariaLabel:c,onRestoreFocus:this.props.onRestoreFocus,ariaDescribedBy:u,ariaLabelledBy:h,className:this._classNames.calloutMain,onDismiss:this.dismiss,onScroll:Y,shouldRestoreFocus:T,style:B,onMouseDown:this._mouseDownOnPopup,onMouseUp:this._mouseUpOnPopup},F),m)));return X},o.prototype._dismissOnClickOrScroll=function(n){var t=n.target,i=this._hostElement.current&&!un(this._hostElement.current,t);if(i&&this._isMouseDownOnPopup){this._isMouseDownOnPopup=!1;return}(!this._target&&i||n.target!==this._targetWindow&&i&&(this._target.stopPropagation||!this._target||this.props.dismissOnTargetClick||t!==this._target&&!un(this._target,t)))&&this.dismiss(n)},o.prototype._addListeners=function(){var n=this;this._async.setTimeout(function(){n._disposables.push(ho(n._targetWindow,"scroll",n._dismissOnScroll,!0),ho(n._targetWindow,"resize",n._dismissOnResize,!0),ho(n._targetWindow.document.documentElement,"focus",n._dismissOnLostFocus,!0),ho(n._targetWindow.document.documentElement,"click",n._dismissOnLostFocus,!0),ho(n._targetWindow,"blur",n._dismissOnTargetWindowBlur,!0)),n._hasListeners=!0},0)},o.prototype._removeListeners=function(){this._disposables.forEach(function(n){return n()}),this._disposables=[],this._hasListeners=!1},o.prototype._updateAsyncPosition=function(){var n=this;this._async.requestAnimationFrame(function(){return n._updatePosition()},this._calloutElement.current)},o.prototype._getBeakPosition=function(){var n=this.state.positions,t=N({},n&&n.beakPosition?n.beakPosition.elementPosition:null);return!t.top&&!t.bottom&&!t.left&&!t.right&&(t.left=bv.left,t.top=bv.top),t},o.prototype._updatePosition=function(){this._setTargetWindowAndElement(this._getTarget());var n=this.state.positions,t=this._hostElement.current,i=this._calloutElement.current,d=!!this.props.target;if(t&&i&&(!d||this._target)){var c=N({},this.props);c.bounds=this._getBounds(),c.target=this._target;var u=this.props.finalHeight?lj(c,t,i,n):aj(c,t,i,n);!n&&u||n&&u&&!this._arePositionsEqual(n,u)&&this._positionAttempts<5?(this._positionAttempts++,this.setState({positions:u})):this._positionAttempts>0&&(this._positionAttempts=0,this.props.onPositioned&&this.props.onPositioned(this.state.positions))}},o.prototype._getBounds=function(){if(!this._bounds){var n=this.props.bounds,t=typeof n=="function"?n(this.props.target,this._targetWindow):n;t||(t=uj(this._target,this._targetWindow),t={top:t.top+this.props.minPagePadding,left:t.left+this.props.minPagePadding,right:t.right-this.props.minPagePadding,bottom:t.bottom-this.props.minPagePadding,width:t.width-this.props.minPagePadding*2,height:t.height-this.props.minPagePadding*2}),this._bounds=t}return this._bounds},o.prototype._getMaxHeight=function(){var n=this;if(!this._maxHeight)if(this.props.directionalHintFixed&&this._target){var t=this.props.isBeakVisible?this.props.beakWidth:0,i=this.props.gapSpace?this.props.gapSpace:0,d=i+t;this._async.requestAnimationFrame(function(){n._target&&(n._maxHeight=yb(n._target,n.props.directionalHint,d,n._getBounds(),n.props.coverTarget),n._blockResetHeight=!0,n.forceUpdate())},this._target)}else this._maxHeight=this._getBounds().height;return this._maxHeight},o.prototype._arePositionsEqual=function(n,t){return this._comparePositions(n.elementPosition,t.elementPosition)&&this._comparePositions(n.beakPosition.elementPosition,t.beakPosition.elementPosition)},o.prototype._comparePositions=function(n,t){for(var i in t)if(t.hasOwnProperty(i)){var d=n[i],c=t[i];if(d!==void 0&&c!==void 0){if(d.toFixed(2)!==c.toFixed(2))return!1}else return!1}return!0},o.prototype._setTargetWindowAndElement=function(n){var t=this._calloutElement.current;if(n)if(typeof n=="string"){var i=yn(t);this._target=i?i.querySelector(n):null,this._targetWindow=nt(t)}else if(n.stopPropagation)this._targetWindow=nt(n.target),this._target=n;else if(n.getBoundingClientRect){var d=n;this._targetWindow=nt(d),this._target=d}else n.current!==void 0?(this._target=n.current,this._targetWindow=nt(this._target)):(this._targetWindow=nt(t),this._target=n);else this._targetWindow=nt(t)},o.prototype._setHeightOffsetEveryFrame=function(){var n=this;this._calloutElement.current&&this.props.finalHeight&&(this._setHeightOffsetTimer=this._async.requestAnimationFrame(function(){var t=n._calloutElement.current&&n._calloutElement.current.lastChild;if(t){var i=t.scrollHeight,d=t.offsetHeight,c=i-d;n.setState({heightOffset:n.state.heightOffset+c}),t.offsetHeight<n.props.finalHeight?n._setHeightOffsetEveryFrame():n._async.cancelAnimationFrame(n._setHeightOffsetTimer,n._calloutElement.current)}},this._calloutElement.current))},o.prototype._didPositionPropsChange=function(n,t){return!n.hidden&&n.hidden!==t.hidden||n.directionalHint!==t.directionalHint||n.target!==t.target},o.prototype._getTarget=function(n){n===void 0&&(n=this.props);var t=n.target;return t},o.defaultProps={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:Ot.bottomAutoEdge},o})(M.Component);function _j(s){return{height:s,width:s}}var yj={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},wj=function(s){var o,n=s.theme,t=s.className,i=s.overflowYHidden,d=s.calloutWidth,c=s.beakWidth,u=s.backgroundColor,h=s.calloutMaxWidth,g=s.calloutMinWidth,_=at(yj,n),m=n.semanticColors,x=n.effects;return{container:[_.container,{position:"relative"}],root:[_.root,n.fonts.medium,{position:"absolute",boxSizing:"border-box",borderRadius:x.roundedCorner2,boxShadow:x.elevation16,selectors:(o={},o[_e]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},o)},Jy(),t,!!d&&{width:d},!!h&&{maxWidth:h},!!g&&{minWidth:g}],beak:[_.beak,{position:"absolute",backgroundColor:m.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},_j(c),u&&{backgroundColor:u}],beakCurtain:[_.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:m.menuBackground,borderRadius:x.roundedCorner2}],calloutMain:[_.calloutMain,{backgroundColor:m.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",borderRadius:x.roundedCorner2},i&&{overflowY:"hidden"},u&&{backgroundColor:u}]}},vj=Ze(gj,wj,void 0,{scope:"CalloutContent"}),xj=Je(),bj=Et(function(s,o){return lh(N(N({},s),{rtl:o}))}),Sj=function(s,o){var n=At(s)?"rtl":"ltr",t=At()?"rtl":"ltr",i=o||n;return{rootDir:i!==n||i!==t?i:o,needsTheme:i!==n}},Cj=(function(s){Ne(o,s);function o(){var n=s!==null&&s.apply(this,arguments)||this;return n._rootElement=M.createRef(),n._removeClassNameFromBody=void 0,n}return o.prototype.render=function(){var n=this.props,t=n.as,i=t===void 0?"div":t,d=n.theme,c=n.dir,u=this._getClassNames(),h=pt(this.props,Yn,["dir"]),g=Sj(d,c),_=g.rootDir,m=g.needsTheme,x=M.createElement(i,N({dir:_},h,{className:u.root,ref:this._rootElement}));return m&&(x=M.createElement(D5,{settings:{theme:bj(d,c==="rtl")}},x)),M.createElement(M.Fragment,null,x,M.createElement(nu,{rootRef:this._rootElement}))},o.prototype.componentDidMount=function(){this._addClassNameToBody()},o.prototype.componentWillUnmount=function(){this._removeClassNameFromBody&&this._removeClassNameFromBody()},o.prototype._getClassNames=function(){var n=this.props,t=n.className,i=n.theme,d=n.applyTheme,c=n.styles,u=xj(c,{theme:i,applyTheme:d,className:t});return u},o.prototype._addClassNameToBody=function(){if(this.props.applyThemeToBody){var n=this._getClassNames(),t=yn(this._rootElement.current);t&&(t.body.classList.add(n.bodyThemed),this._removeClassNameFromBody=function(){t.body.classList.remove(n.bodyThemed)})}},o})(M.Component),R_={fontFamily:"inherit"},kj={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Mj=function(s){var o=s.theme,n=s.className,t=s.applyTheme,i=at(kj,o);return{root:[i.root,o.fonts.medium,{color:o.palette.neutralPrimary,selectors:{"& button":R_,"& input":R_,"& textarea":R_}},t&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}},jj=Ze(Cj,Mj,void 0,{scope:"Fabric"}),Fp={},ew={},Lj;function Ej(s,o){Fp[s]||(Fp[s]=[]),Fp[s].push(o);var n=ew[s];if(n)for(var t=0,i=n;t<i.length;t++){var d=i[t];d.notifyLayersChanged()}}function Dj(s,o){var n=Fp[s];if(n){var t=n.indexOf(o);t>=0&&(n.splice(t,1),n.length===0&&delete Fp[s])}var i=ew[s];if(i)for(var d=0,c=i;d<c.length;d++){var u=c[d];u.notifyLayersChanged()}}function Ij(s){var o=ew[s];return o&&o[0]||void 0}function Tj(){return Lj}var Aj=Je(),Pj=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._rootRef=M.createRef(),t._createLayerElement=function(){var i,d,c=t.props.hostId,u=yn(t._rootRef.current),h=t._getHost();if(h){t._removeLayerElement();var g=(d=(i=h.ownerDocument,i??u))===null||d===void 0?void 0:d.createElement("div");if(g){var _=t._getClassNames();g.className=_.root,m5(g),ev(g,t._rootRef.current),t.props.insertFirst?h.insertBefore(g,h.firstChild):h.appendChild(g),t.setState({hostId:c,layerElement:g},function(){var m=t.props,x=m.onLayerDidMount,y=m.onLayerMounted;y&&y(),x&&x()})}}},t.state={},t}return o.prototype.componentDidMount=function(){var n=this.props.hostId;this._createLayerElement(),n&&Ej(n,this._createLayerElement)},o.prototype.render=function(){var n=this.state.layerElement,t=this._getClassNames(),i=this.props.eventBubblingEnabled;return M.createElement("span",{className:"ms-layer",ref:this._rootRef},n&&bS.createPortal(M.createElement(jj,N({},!i&&Fj(),{className:t.content}),this.props.children),n))},o.prototype.componentDidUpdate=function(){this.props.hostId!==this.state.hostId&&this._createLayerElement()},o.prototype.componentWillUnmount=function(){var n=this.props.hostId;this._removeLayerElement(),n&&Dj(n,this._createLayerElement)},o.prototype._removeLayerElement=function(){var n=this.props.onLayerWillUnmount,t=this.state.layerElement;if(t&&ev(t,null),n&&n(),t&&t.parentNode){var i=t.parentNode;i&&i.removeChild(t)}},o.prototype._getClassNames=function(){var n=this.props,t=n.className,i=n.styles,d=n.theme,c=Aj(i,{theme:d,className:t,isNotHost:!this.props.hostId});return c},o.prototype._getHost=function(){var n,t,i,d,c,u,h=this.props.hostId,g=yn(this._rootRef.current);if(h){var _=Ij(h);return _?(n=_.rootRef.current,n??null):(i=(t=g)===null||t===void 0?void 0:t.getElementById(h),i??null)}else{var m=Tj();return u=m?(d=g)===null||d===void 0?void 0:d.querySelector(m):(c=g)===null||c===void 0?void 0:c.body,u??null}},o.defaultProps={onLayerDidMount:function(){},onLayerWillUnmount:function(){}},o=yo([tu("Layer",["theme","hostId"])],o),o})(M.Component),Rj=function(s){s.eventPhase===Event.BUBBLING_PHASE&&s.type!=="mouseenter"&&s.type!=="mouseleave"&&s.type!=="touchstart"&&s.type!=="touchend"&&s.stopPropagation()},Zm;function Fj(){return Zm||(Zm={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach(function(s){return Zm[s]=Rj})),Zm}var Nj={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Oj=function(s){var o=s.className,n=s.isNotHost,t=s.theme,i=at(Nj,t);return{root:[i.root,t.fonts.medium,n&&[i.rootNoHost,{position:"fixed",zIndex:Hp.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],o],content:[i.content,{visibility:"visible"}]}},vd=Ze(Pj,Oj,void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),ch=(function(s){Ne(o,s);function o(){return s!==null&&s.apply(this,arguments)||this}return o.prototype.render=function(){var n=this.props,t=n.layerProps,i=ms(n,["layerProps"]),d=M.createElement(vj,N({},i));return this.props.doNotLayer?d:M.createElement(vd,N({},t),d)},o})(M.Component),su=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._root=M.createRef(),t._firstBumper=M.createRef(),t._lastBumper=M.createRef(),t._hasFocus=!1,t._onRootFocus=function(i){t.props.onFocus&&t.props.onFocus(i),t._hasFocus=!0},t._onRootBlur=function(i){t.props.onBlur&&t.props.onBlur(i);var d=i.relatedTarget;i.relatedTarget===null&&(d=t._getDocument().activeElement),un(t._root.current,d)||(t._hasFocus=!1)},t._onFirstBumperFocus=function(){t._onBumperFocus(!0)},t._onLastBumperFocus=function(){t._onBumperFocus(!1)},t._onBumperFocus=function(i){if(!t.props.disabled){var d=i===t._hasFocus?t._lastBumper.current:t._firstBumper.current;if(t._root.current){var c=i===t._hasFocus?N5(t._root.current,d,!0,!1):F5(t._root.current,d,!0,!1);c&&(t._isBumper(c)?t.focus():c.focus())}}},t._onFocusCapture=function(i){t.props.onFocusCapture&&t.props.onFocusCapture(i),i.target!==i.currentTarget&&!t._isBumper(i.target)&&(t._previouslyFocusedElementInTrapZone=i.target)},t._forceFocusInTrap=function(i){if(!t.props.disabled&&o._focusStack.length&&t===o._focusStack[o._focusStack.length-1]){var d=t._getDocument().activeElement;if(!un(t._root.current,d)){var c=t._getDocument();c&&c.activeElement===c.body?setTimeout(function(){c&&c.activeElement===c.body&&(t.focus(),t._hasFocus=!0)},0):(t.focus(),t._hasFocus=!0),i.preventDefault(),i.stopPropagation()}}},t._forceClickInTrap=function(i){if(!t.props.disabled&&o._focusStack.length&&t===o._focusStack[o._focusStack.length-1]){var d=i.target;d&&!un(t._root.current,d)&&(t.focus(),t._hasFocus=!0,i.preventDefault(),i.stopPropagation())}},St(t),t}return o.prototype.componentDidMount=function(){this._bringFocusIntoZone(),this._updateEventHandlers(this.props),!this.props.disabled&&this._root.current&&this.props.enableAriaHiddenSiblings&&(this._unmodalize=pv(this._root.current))},o.prototype.UNSAFE_componentWillReceiveProps=function(n){var t=n.elementToFocusOnDismiss;t&&this._previouslyFocusedElementOutsideTrapZone!==t&&(this._previouslyFocusedElementOutsideTrapZone=t),this._updateEventHandlers(n)},o.prototype.componentDidUpdate=function(n){var t=n.forceFocusInsideTrap!==void 0?n.forceFocusInsideTrap:!0,i=this.props.forceFocusInsideTrap!==void 0?this.props.forceFocusInsideTrap:!0,d=n.disabled!==void 0?n.disabled:!1,c=this.props.disabled!==void 0?this.props.disabled:!1;!t&&i||d&&!c?(this._bringFocusIntoZone(),!this._unmodalize&&this._root.current&&this.props.enableAriaHiddenSiblings&&(this._unmodalize=pv(this._root.current))):(t&&!i||!d&&c)&&(this._returnFocusToInitiator(),this._unmodalize&&this._unmodalize())},o.prototype.componentWillUnmount=function(){(!this.props.disabled||this.props.forceFocusInsideTrap||!un(this._root.current,this._getDocument().activeElement))&&this._returnFocusToInitiator(),this._disposeClickHandler&&(this._disposeClickHandler(),this._disposeClickHandler=void 0),this._disposeFocusHandler&&(this._disposeFocusHandler(),this._disposeFocusHandler=void 0),this._unmodalize&&this._unmodalize(),delete this._previouslyFocusedElementInTrapZone,delete this._previouslyFocusedElementOutsideTrapZone},o.prototype.render=function(){var n=this.props,t=n.className,i=n.disabled,d=i===void 0?!1:i,c=n.ariaLabelledBy,u=pt(this.props,Yn),h={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:d?-1:0,"data-is-visible":!0};return M.createElement("div",N({},u,{className:t,ref:this._root,"aria-labelledby":c,onFocusCapture:this._onFocusCapture,onFocus:this._onRootFocus,onBlur:this._onRootBlur}),M.createElement("div",N({},h,{ref:this._firstBumper,onFocus:this._onFirstBumperFocus})),this.props.children,M.createElement("div",N({},h,{ref:this._lastBumper,onFocus:this._onLastBumperFocus})))},o.prototype.focus=function(){var n=this.props,t=n.focusPreviouslyFocusedInnerElement,i=n.firstFocusableSelector,d=n.firstFocusableTarget;if(t&&this._previouslyFocusedElementInTrapZone&&un(this._root.current,this._previouslyFocusedElementInTrapZone)){this._focusAsync(this._previouslyFocusedElementInTrapZone);return}var c=typeof i=="string"?i:i&&i(),u=null;this._root.current&&(typeof d=="string"?u=this._root.current.querySelector(d):d?u=d(this._root.current):c&&(u=this._root.current.querySelector("."+c)),u||(u=Kr(this._root.current,this._root.current.firstChild,!1,!1,!1,!0))),u&&this._focusAsync(u)},o.prototype._focusAsync=function(n){this._isBumper(n)||tb(n)},o.prototype._bringFocusIntoZone=function(){var n=this.props,t=n.elementToFocusOnDismiss,i=n.disabled,d=i===void 0?!1:i,c=n.disableFirstFocus,u=c===void 0?!1:c;d||(o._focusStack.push(this),this._previouslyFocusedElementOutsideTrapZone=t||this._getDocument().activeElement,!u&&!un(this._root.current,this._previouslyFocusedElementOutsideTrapZone)&&this.focus())},o.prototype._returnFocusToInitiator=function(){var n=this,t=this.props.ignoreExternalFocusing;o._focusStack=o._focusStack.filter(function(c){return n!==c});var i=this._getDocument(),d=i.activeElement;!t&&this._previouslyFocusedElementOutsideTrapZone&&typeof this._previouslyFocusedElementOutsideTrapZone.focus=="function"&&(un(this._root.current,d)||d===i.body)&&this._focusAsync(this._previouslyFocusedElementOutsideTrapZone)},o.prototype._updateEventHandlers=function(n){var t=n.isClickableOutsideFocusTrap,i=t===void 0?!1:t,d=n.forceFocusInsideTrap,c=d===void 0?!0:d;c&&!this._disposeFocusHandler?this._disposeFocusHandler=ho(window,"focus",this._forceFocusInTrap,!0):!c&&this._disposeFocusHandler&&(this._disposeFocusHandler(),this._disposeFocusHandler=void 0),!i&&!this._disposeClickHandler?this._disposeClickHandler=ho(window,"click",this._forceClickInTrap,!0):i&&this._disposeClickHandler&&(this._disposeClickHandler(),this._disposeClickHandler=void 0)},o.prototype._isBumper=function(n){return n===this._firstBumper.current||n===this._lastBumper.current},o.prototype._getDocument=function(){return yn(this._root.current)},o._focusStack=[],o})(M.Component),Yj=Je(),Wj=(function(s){Ne(o,s);function o(){var n=s!==null&&s.apply(this,arguments)||this;return n._onRenderContent=function(t){return M.createElement("p",{className:n._classNames.subText},t.content)},n}return o.prototype.render=function(){var n=this.props,t=n.className,i=n.calloutProps,d=n.directionalHint,c=n.directionalHintForRTL,u=n.styles,h=n.id,g=n.maxWidth,_=n.onRenderContent,m=_===void 0?this._onRenderContent:_,x=n.targetElement,y=n.theme;return this._classNames=Yj(u,{theme:y,className:t||i&&i.className,beakWidth:i&&i.beakWidth,gapSpace:i&&i.gapSpace,maxWidth:g}),M.createElement(ch,N({target:x,directionalHint:d,directionalHintForRTL:c},i,pt(this.props,Yn,["id"]),{className:this._classNames.root}),M.createElement("div",{className:this._classNames.content,id:h,role:"tooltip",onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},m(this.props,this._onRenderContent)))},o.defaultProps={directionalHint:Ot.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},o})(M.Component),Bj=function(s){var o=s.className,n=s.beakWidth,t=n===void 0?16:n,i=s.gapSpace,d=i===void 0?0:i,c=s.maxWidth,u=s.theme,h=u.semanticColors,g=u.fonts,_=u.effects,m=-(Math.sqrt(t*t/2)+d)+1/window.devicePixelRatio;return{root:["ms-Tooltip",u.fonts.medium,Jr.fadeIn200,{background:h.menuBackground,boxShadow:_.elevation8,padding:"8px",maxWidth:c,selectors:{":after":{content:"''",position:"absolute",bottom:m,left:m,right:m,top:m,zIndex:0}}},o],content:["ms-Tooltip-content",g.small,{position:"relative",zIndex:1,color:h.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}},Hj=Ze(Wj,Bj,void 0,{scope:"Tooltip"}),Fc;(function(s){s[s.zero=0]="zero",s[s.medium=1]="medium",s[s.long=2]="long"})(Fc||(Fc={}));var Gf;(function(s){s[s.Parent=0]="Parent",s[s.Self=1]="Self"})(Gf||(Gf={}));var zj=Je(),Uj=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._tooltipHost=M.createRef(),t._defaultTooltipId=zt("tooltip"),t.show=function(){t._toggleTooltip(!0)},t.dismiss=function(){t._hideTooltip()},t._getTargetElement=function(){if(t._tooltipHost.current){var i=t.props.overflowMode;if(i!==void 0)switch(i){case Gf.Parent:return t._tooltipHost.current.parentElement;case Gf.Self:return t._tooltipHost.current}return t._tooltipHost.current}},t._onTooltipMouseEnter=function(i){var d=t.props,c=d.overflowMode,u=d.delay;if(o._currentVisibleTooltip&&o._currentVisibleTooltip!==t&&o._currentVisibleTooltip.dismiss(),o._currentVisibleTooltip=t,c!==void 0){var h=t._getTargetElement();if(h&&!xM(h))return}if(!(i.target&&Uy(i.target,t._getTargetElement())))if(t._clearDismissTimer(),t._clearOpenTimer(),u!==Fc.zero){var g=t._getDelayTime(u);t._openTimerId=t._async.setTimeout(function(){t._toggleTooltip(!0)},g)}else t._toggleTooltip(!0)},t._onTooltipMouseLeave=function(i){var d=t.props.closeDelay;t._clearDismissTimer(),t._clearOpenTimer(),d?t._dismissTimerId=t._async.setTimeout(function(){t._toggleTooltip(!1)},d):t._toggleTooltip(!1),o._currentVisibleTooltip===t&&(o._currentVisibleTooltip=void 0)},t._onTooltipKeyDown=function(i){(i.which===ke.escape||i.ctrlKey)&&t.state.isTooltipVisible&&(t._hideTooltip(),i.stopPropagation())},t._clearDismissTimer=function(){t._async.clearTimeout(t._dismissTimerId)},t._clearOpenTimer=function(){t._async.clearTimeout(t._openTimerId)},t._hideTooltip=function(){t._clearOpenTimer(),t._clearDismissTimer(),t._toggleTooltip(!1)},t._toggleTooltip=function(i){t.state.isTooltipVisible!==i&&t.setState({isTooltipVisible:i},function(){return t.props.onTooltipToggle&&t.props.onTooltipToggle(i)})},t._getDelayTime=function(i){switch(i){case Fc.medium:return 300;case Fc.long:return 500;default:return 0}},St(t),t.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},t._async=new Wn(t),t}return o.prototype.render=function(){var n=this.props,t=n.calloutProps,i=n.children,d=n.content,c=n.directionalHint,u=n.directionalHintForRTL,h=n.hostClassName,g=n.id,_=n.setAriaDescribedBy,m=_===void 0?!0:_,x=n.tooltipProps,y=n.styles,v=n.theme;this._classNames=zj(y,{theme:v,className:h});var b=this.state.isTooltipVisible,C=g||this._defaultTooltipId,k=!!(d||x&&x.onRenderContent&&x.onRenderContent()),L=b&&k,I=m&&b&&k?C:void 0;return M.createElement("div",N({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipMouseEnter},{onBlurCapture:this._hideTooltip},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,"aria-describedby":I}),i,L&&M.createElement(Hj,N({id:C+"--tooltip",content:d,targetElement:this._getTargetElement(),directionalHint:c,directionalHintForRTL:u,calloutProps:qa({},t,{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},pt(this.props,Yn,["id"]),x)),M.createElement("div",{hidden:!0,id:C,style:wd},d))},o.prototype.componentWillUnmount=function(){o._currentVisibleTooltip&&o._currentVisibleTooltip===this&&(o._currentVisibleTooltip=void 0),this._async.dispose()},o.defaultProps={delay:Fc.medium},o})(M.Component),Vj={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Gj=function(s){var o=s.className,n=s.theme,t=at(Vj,n);return{root:[t.root,{display:"inline"},o]}},_n=Ze(Uj,Gj,void 0,{scope:"TooltipHost"}),$f;(function(s){s[s.default=0]="default",s[s.image=1]="image",s[s.Default=1e5]="Default",s[s.Image=100001]="Image"})($f||($f={}));var ls;(function(s){s[s.center=0]="center",s[s.contain=1]="contain",s[s.cover=2]="cover",s[s.none=3]="none",s[s.centerCover=4]="centerCover",s[s.centerContain=5]="centerContain"})(ls||(ls={}));var Nc;(function(s){s[s.landscape=0]="landscape",s[s.portrait=1]="portrait"})(Nc||(Nc={}));var Is;(function(s){s[s.notLoaded=0]="notLoaded",s[s.loaded=1]="loaded",s[s.error=2]="error",s[s.errorLoaded=3]="errorLoaded"})(Is||(Is={}));var $j=Je(),Kj="fabricImage",qj=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._coverStyle=Nc.portrait,t._imageElement=M.createRef(),t._frameElement=M.createRef(),t._onImageLoaded=function(i){var d=t.props,c=d.src,u=d.onLoad;u&&u(i),t._computeCoverStyle(t.props),c&&t.setState({loadState:Is.loaded})},t._onImageError=function(i){t.props.onError&&t.props.onError(i),t.setState({loadState:Is.error})},t.state={loadState:Is.notLoaded},t}return o.prototype.UNSAFE_componentWillReceiveProps=function(n){n.src!==this.props.src?this.setState({loadState:Is.notLoaded}):this.state.loadState===Is.loaded&&this._computeCoverStyle(n)},o.prototype.componentDidUpdate=function(n,t){this._checkImageLoaded(),this.props.onLoadingStateChange&&t.loadState!==this.state.loadState&&this.props.onLoadingStateChange(this.state.loadState)},o.prototype.render=function(){var n=pt(this.props,sb,["width","height"]),t=this.props,i=t.src,d=t.alt,c=t.width,u=t.height,h=t.shouldFadeIn,g=t.shouldStartVisible,_=t.className,m=t.imageFit,x=t.role,y=t.maximizeFrame,v=t.styles,b=t.theme,C=this.state.loadState,k=this.props.coverStyle!==void 0?this.props.coverStyle:this._coverStyle,L=$j(v,{theme:b,className:_,width:c,height:u,maximizeFrame:y,shouldFadeIn:h,shouldStartVisible:g,isLoaded:C===Is.loaded||C===Is.notLoaded&&this.props.shouldStartVisible,isLandscape:k===Nc.landscape,isCenter:m===ls.center,isCenterContain:m===ls.centerContain,isCenterCover:m===ls.centerCover,isContain:m===ls.contain,isCover:m===ls.cover,isNone:m===ls.none,isError:C===Is.error,isNotImageFit:m===void 0});return M.createElement("div",{className:L.root,style:{width:c,height:u},ref:this._frameElement},M.createElement("img",N({},n,{onLoad:this._onImageLoaded,onError:this._onImageError,key:Kj+this.props.src||"",className:L.image,ref:this._imageElement,src:i,alt:d,role:x})))},o.prototype._checkImageLoaded=function(){var n=this.props.src,t=this.state.loadState;if(t===Is.notLoaded){var i=this._imageElement.current?n&&this._imageElement.current.naturalWidth>0&&this._imageElement.current.naturalHeight>0||this._imageElement.current.complete&&o._svgRegex.test(n):!1;i&&(this._computeCoverStyle(this.props),this.setState({loadState:Is.loaded}))}},o.prototype._computeCoverStyle=function(n){var t=n.imageFit,i=n.width,d=n.height;if((t===ls.cover||t===ls.contain||t===ls.centerContain||t===ls.centerCover)&&this.props.coverStyle===void 0&&this._imageElement.current&&this._frameElement.current){var c=void 0;typeof i=="number"&&typeof d=="number"&&t!==ls.centerContain&&t!==ls.centerCover?c=i/d:c=this._frameElement.current.clientWidth/this._frameElement.current.clientHeight;var u=this._imageElement.current.naturalWidth/this._imageElement.current.naturalHeight;u>c?this._coverStyle=Nc.landscape:this._coverStyle=Nc.portrait}},o.defaultProps={shouldFadeIn:!0},o._svgRegex=/\.svg$/i,o})(M.Component),Jj={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},Zj=function(s){var o=s.className,n=s.width,t=s.height,i=s.maximizeFrame,d=s.isLoaded,c=s.shouldFadeIn,u=s.shouldStartVisible,h=s.isLandscape,g=s.isCenter,_=s.isContain,m=s.isCover,x=s.isCenterContain,y=s.isCenterCover,v=s.isNone,b=s.isError,C=s.isNotImageFit,k=s.theme,L=at(Jj,k),I={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},A=nt(),Y=A!==void 0&&A.navigator.msMaxTouchPoints===void 0,P=_&&h||m&&!h?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[L.root,k.fonts.medium,{overflow:"hidden"},i&&[L.rootMaximizeFrame,{height:"100%",width:"100%"}],d&&c&&!u&&Jr.fadeIn400,(g||_||m||x||y)&&{position:"relative"},o],image:[L.image,{display:"block",opacity:0},d&&["is-loaded",{opacity:1}],g&&[L.imageCenter,I],_&&[L.imageContain,Y&&{width:"100%",height:"100%",objectFit:"contain"},!Y&&P,I],m&&[L.imageCover,Y&&{width:"100%",height:"100%",objectFit:"cover"},!Y&&P,I],x&&[L.imageCenterContain,h&&{maxWidth:"100%"},!h&&{maxHeight:"100%"},I],y&&[L.imageCenterCover,h&&{maxHeight:"100%"},!h&&{maxWidth:"100%"},I],v&&[L.imageNone,{width:"auto",height:"auto"}],C&&[!!n&&!t&&{height:"auto",width:"100%"},!n&&!!t&&{height:"100%",width:"auto"},!!n&&!!t&&{height:"100%",width:"100%"}],h&&L.imageLandscape,!h&&L.imagePortrait,!d&&"is-notLoaded",c&&"is-fadeIn",b&&"is-error"]}},Gp=Ze(qj,Zj,void 0,{scope:"Image"},!0),ud=tl({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),wb="ms-Icon",Xj=function(s){var o=s.className,n=s.iconClassName,t=s.isPlaceholder,i=s.isImage,d=s.styles;return{root:[t&&ud.placeholder,ud.root,i&&ud.image,n,o,d&&d.root,d&&d.imageContainer]}},vb=Et(function(s){var o=TM(s)||{subset:{},code:void 0},n=o.code,t=o.subset;return n?{children:n,iconClassName:t.className,fontFamily:t.fontFace&&t.fontFace.fontFamily,mergeImageProps:t.mergeImageProps}:null},void 0,!0),kt=function(s){var o=s.iconName,n=s.className,t=s.style,i=t===void 0?{}:t,d=vb(o)||{},c=d.iconClassName,u=d.children,h=d.fontFamily,g=d.mergeImageProps,_=pt(s,on),m=s["aria-label"]||s.title,x=s["aria-label"]||s["aria-labelledby"]||s.title?{role:g?void 0:"img"}:{"aria-hidden":!0},y=u;return g&&typeof u=="object"&&typeof u.props=="object"&&m&&(y=M.cloneElement(u,{alt:m})),M.createElement("i",N({"data-icon-name":o},x,_,g?{title:void 0,"aria-label":void 0}:{},{className:sn(wb,ud.root,c,!o&&ud.placeholder,n),style:N({fontFamily:h},i)}),y)};Et(function(s,o,n){return kt({iconName:s,className:o,"aria-label":n})});var Qj=Je({cacheSize:100}),eL=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._onImageLoadingStateChange=function(i){t.props.imageProps&&t.props.imageProps.onLoadingStateChange&&t.props.imageProps.onLoadingStateChange(i),i===Is.error&&t.setState({imageLoadError:!0})},t.state={imageLoadError:!1},t}return o.prototype.render=function(){var n=this.props,t=n.children,i=n.className,d=n.styles,c=n.iconName,u=n.imageErrorAs,h=n.theme,g=typeof c=="string"&&c.length===0,_=!!this.props.imageProps||this.props.iconType===$f.image||this.props.iconType===$f.Image,m=vb(c)||{},x=m.iconClassName,y=m.children,v=m.mergeImageProps,b=Qj(d,{theme:h,className:i,iconClassName:x,isImage:_,isPlaceholder:g}),C=_?"span":"i",k=pt(this.props,on,["aria-label"]),L=this.state.imageLoadError,I=N(N({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),A=L&&u||Gp,Y=this.props["aria-label"]||this.props.ariaLabel,P=I.alt||Y||this.props.title,T=!!(P||this.props["aria-labelledby"]||I["aria-label"]||I["aria-labelledby"]),F=T?{role:_||v?void 0:"img","aria-label":_||v?void 0:P}:{"aria-hidden":!(this.props["aria-labelledby"]||I["aria-labelledby"])},H=y;return v&&y&&typeof y=="object"&&P&&(H=M.cloneElement(y,{alt:P})),M.createElement(C,N({"data-icon-name":c},F,k,v?{title:void 0,"aria-label":void 0}:{},{className:b.root}),_?M.createElement(A,N({},I)):t||H)},o})(M.Component),Ue=Ze(eL,Xj,void 0,{scope:"Icon"},!0);Ue.displayName="Icon";var tL=function(s){var o=s.className,n=s.imageProps,t=pt(s,on),i=s["aria-label"]?{}:{role:"presentation","aria-hidden":!(n.alt||n["aria-labelledby"])};return M.createElement("div",N({},i,t,{className:sn(wb,ud.root,ud.image,o)}),M.createElement(Gp,N({},n)))},Cy={all:1,inputOnly:2},kn;(function(s){s[s.vertical=0]="vertical",s[s.horizontal=1]="horizontal",s[s.bidirectional=2]="bidirectional",s[s.domOrder=3]="domOrder"})(kn||(kn={}));var Xm="data-is-focusable",nL="data-disable-click-on-enter",F_="data-focuszone-id",gi="tabindex",N_="data-no-vertical-wrap",O_="data-no-horizontal-wrap",Y_=999999999,Cp=-999999999,W_,rL="ms-FocusZone";function sL(s,o){var n,t,i,d,c,u,h;typeof MouseEvent=="function"?h=new MouseEvent("click",{ctrlKey:(n=o)===null||n===void 0?void 0:n.ctrlKey,metaKey:(t=o)===null||t===void 0?void 0:t.metaKey,shiftKey:(i=o)===null||i===void 0?void 0:i.shiftKey,altKey:(d=o)===null||d===void 0?void 0:d.altKey,bubbles:(c=o)===null||c===void 0?void 0:c.bubbles,cancelable:(u=o)===null||u===void 0?void 0:u.cancelable}):(h=document.createEvent("MouseEvents"),h.initMouseEvent("click",o?o.bubbles:!1,o?o.cancelable:!1,window,0,0,0,0,0,o?o.ctrlKey:!1,o?o.altKey:!1,o?o.shiftKey:!1,o?o.metaKey:!1,0,null)),s.dispatchEvent(h)}function oL(){return W_||(W_=Ho({selectors:{":focus":{outline:"none"}}},rL)),W_}var kp={},Ec=new Set,iL=["text","number","password","email","tel","url","search"],td=!1,xd=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._root=M.createRef(),t._mergedRef=Ky(),t._onFocus=function(i){if(!t._portalContainsElement(i.target)){var d=t.props,c=d.onActiveElementChanged,u=d.doNotAllowFocusEventToPropagate,h=d.stopFocusPropagation,g=d.onFocusNotification,_=d.onFocus,m=d.shouldFocusInnerElementWhenReceivedFocus,x=d.defaultTabbableElement,y=t._isImmediateDescendantOfZone(i.target),v;if(y)v=i.target;else for(var b=i.target;b&&b!==t._root.current;){if(Yo(b)&&t._isImmediateDescendantOfZone(b)){v=b;break}b=Cn(b,td)}if(m&&i.target===t._root.current){var C=x&&typeof x=="function"&&x(t._root.current);C&&Yo(C)?(v=C,C.focus()):(t.focus(!0),t._activeElement&&(v=null))}var k=!t._activeElement;v&&v!==t._activeElement&&((y||k)&&t._setFocusAlignment(v,!0,!0),t._activeElement=v,k&&t._updateTabIndexes()),c&&c(t._activeElement,i),(h||u)&&i.stopPropagation(),_?_(i):g&&g()}},t._onBlur=function(){t._setParkedFocus(!1)},t._onMouseDown=function(i){if(!t._portalContainsElement(i.target)){var d=t.props.disabled;if(!d){for(var c=i.target,u=[];c&&c!==t._root.current;)u.push(c),c=Cn(c,td);for(;u.length&&(c=u.pop(),c&&Yo(c)&&t._setActiveElement(c,!0),!ea(c)););}}},t._onKeyDown=function(i,d){if(!t._portalContainsElement(i.target)){var c=t.props,u=c.direction,h=c.disabled,g=c.isInnerZoneKeystroke,_=c.pagingSupportDisabled,m=c.shouldEnterInnerZone;if(!h&&(t.props.onKeyDown&&t.props.onKeyDown(i),!i.isDefaultPrevented()&&!(t._getDocument().activeElement===t._root.current&&t._isInnerZone))){if((m&&m(i)||g&&g(i))&&t._isImmediateDescendantOfZone(i.target)){var x=t._getFirstInnerZone();if(x){if(!x.focus(!0))return}else if(Gy(i.target)){if(!t.focusElement(Kr(i.target,i.target.firstChild,!0)))return}else return}else{if(i.altKey)return;switch(i.which){case ke.space:if(t._tryInvokeClickForFocusable(i.target,i))break;return;case ke.left:if(u!==kn.vertical&&(t._preventDefaultWhenHandled(i),t._moveFocusLeft(d)))break;return;case ke.right:if(u!==kn.vertical&&(t._preventDefaultWhenHandled(i),t._moveFocusRight(d)))break;return;case ke.up:if(u!==kn.horizontal&&(t._preventDefaultWhenHandled(i),t._moveFocusUp()))break;return;case ke.down:if(u!==kn.horizontal&&(t._preventDefaultWhenHandled(i),t._moveFocusDown()))break;return;case ke.pageDown:if(!_&&t._moveFocusPaging(!0))break;return;case ke.pageUp:if(!_&&t._moveFocusPaging(!1))break;return;case ke.tab:if(t.props.allowTabKey||t.props.handleTabKey===Cy.all||t.props.handleTabKey===Cy.inputOnly&&t._isElementInput(i.target)){var y=!1;if(t._processingTabKey=!0,u===kn.vertical||!t._shouldWrapFocus(t._activeElement,O_))y=i.shiftKey?t._moveFocusUp():t._moveFocusDown();else{var v=At(d)?!i.shiftKey:i.shiftKey;y=v?t._moveFocusLeft(d):t._moveFocusRight(d)}if(t._processingTabKey=!1,y)break;t.props.shouldResetActiveElementWhenTabFromZone&&(t._activeElement=null)}return;case ke.home:if(t._isContentEditableElement(i.target)||t._isElementInput(i.target)&&!t._shouldInputLoseFocus(i.target,!1))return!1;var b=t._root.current&&t._root.current.firstChild;if(t._root.current&&b&&t.focusElement(Kr(t._root.current,b,!0)))break;return;case ke.end:if(t._isContentEditableElement(i.target)||t._isElementInput(i.target)&&!t._shouldInputLoseFocus(i.target,!0))return!1;var C=t._root.current&&t._root.current.lastChild;if(t._root.current&&t.focusElement(cs(t._root.current,C,!0,!0,!0)))break;return;case ke.enter:if(t._tryInvokeClickForFocusable(i.target,i))break;return;default:return}}i.preventDefault(),i.stopPropagation()}}},t._getHorizontalDistanceFromCenter=function(i,d,c){var u=t._focusAlignment.left||t._focusAlignment.x||0,h=Math.floor(c.top),g=Math.floor(d.bottom),_=Math.floor(c.bottom),m=Math.floor(d.top),x=i&&h>g,y=!i&&_<m;return x||y?u>=c.left&&u<=c.left+c.width?0:Math.abs(c.left+c.width/2-u):t._shouldWrapFocus(t._activeElement,N_)?Y_:Cp},St(t),t._id=zt("FocusZone"),t._focusAlignment={left:0,top:0},t._processingTabKey=!1,t}return o.getOuterZones=function(){return Ec.size},o._onKeyDownCapture=function(n){n.which===ke.tab&&Ec.forEach(function(t){return t._updateTabIndexes()})},o.prototype.componentDidMount=function(){var n=this._root.current;if(kp[this._id]=this,n){this._windowElement=nt(n);for(var t=Cn(n,td);t&&t!==this._getDocument().body&&t.nodeType===1;){if(ea(t)){this._isInnerZone=!0;break}t=Cn(t,td)}this._isInnerZone||(Ec.add(this),this._windowElement&&Ec.size===1&&this._windowElement.addEventListener("keydown",o._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="string"?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},o.prototype.componentDidUpdate=function(){var n=this._root.current,t=this._getDocument();if(t&&this._lastIndexPath&&(t.activeElement===t.body||t.activeElement===null||!this.props.preventFocusRestoration&&t.activeElement===n)){var i=Y5(n,this._lastIndexPath);i?(this._setActiveElement(i,!0),i.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},o.prototype.componentWillUnmount=function(){delete kp[this._id],this._isInnerZone||(Ec.delete(this),this._windowElement&&Ec.size===0&&this._windowElement.removeEventListener("keydown",o._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},o.prototype.render=function(){var n=this,t=this.props,i=t.as,d=t.elementType,c=t.rootProps,u=t.ariaDescribedBy,h=t.ariaLabelledBy,g=t.className,_=pt(this.props,on),m=i||d||"div";this._evaluateFocusBeforeRender();var x=B3();return M.createElement(m,N({"aria-labelledby":h,"aria-describedby":u},_,c,{className:sn(oL(),g),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(y){return n._onKeyDown(y,x)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},o.prototype.focus=function(n){if(n===void 0&&(n=!1),this._root.current)if(!n&&this._root.current.getAttribute(Xm)==="true"&&this._isInnerZone){var t=this._getOwnerZone(this._root.current);if(t!==this._root.current){var i=kp[t.getAttribute(F_)];return!!i&&i.focusElement(this._root.current)}return!1}else{if(!n&&this._activeElement&&un(this._root.current,this._activeElement)&&Yo(this._activeElement))return this._activeElement.focus(),!0;var d=this._root.current.firstChild;return this.focusElement(Kr(this._root.current,d,!0))}return!1},o.prototype.focusLast=function(){if(this._root.current){var n=this._root.current&&this._root.current.lastChild;return this.focusElement(cs(this._root.current,n,!0,!0,!0))}return!1},o.prototype.focusElement=function(n,t){var i=this.props,d=i.onBeforeFocus,c=i.shouldReceiveFocus;return c&&!c(n)||d&&!d(n)?!1:n?(this._setActiveElement(n,t),this._activeElement&&this._activeElement.focus(),!0):!1},o.prototype.setFocusAlignment=function(n){this._focusAlignment=n},o.prototype._evaluateFocusBeforeRender=function(){var n=this._root.current,t=this._getDocument();if(t){var i=t.activeElement;if(i!==n){var d=un(n,i,!1);this._lastIndexPath=d?W5(n,i):void 0}}},o.prototype._setParkedFocus=function(n){var t=this._root.current;t&&this._isParked!==n&&(this._isParked=n,n?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},o.prototype._setActiveElement=function(n,t){var i=this._activeElement;this._activeElement=n,i&&(ea(i)&&this._updateTabIndexes(i),i.tabIndex=-1),this._activeElement&&((!this._focusAlignment||t)&&this._setFocusAlignment(n,!0,!0),this._activeElement.tabIndex=0)},o.prototype._preventDefaultWhenHandled=function(n){this.props.preventDefaultWhenHandled&&n.preventDefault()},o.prototype._tryInvokeClickForFocusable=function(n,t){var i=n;if(i===this._root.current||!this.props.shouldRaiseClicks)return!1;do{if(i.tagName==="BUTTON"||i.tagName==="A"||i.tagName==="INPUT"||i.tagName==="TEXTAREA")return!1;if(this._isImmediateDescendantOfZone(i)&&i.getAttribute(Xm)==="true"&&i.getAttribute(nL)!=="true")return sL(i,t),!0;i=Cn(i,td)}while(i!==this._root.current);return!1},o.prototype._getFirstInnerZone=function(n){if(n=n||this._activeElement||this._root.current,!n)return null;if(ea(n))return kp[n.getAttribute(F_)];for(var t=n.firstElementChild;t;){if(ea(t))return kp[t.getAttribute(F_)];var i=this._getFirstInnerZone(t);if(i)return i;t=t.nextElementSibling}return null},o.prototype._moveFocus=function(n,t,i,d){d===void 0&&(d=!0);var c=this._activeElement,u=-1,h=void 0,g=!1,_=this.props.direction===kn.bidirectional;if(!c||!this._root.current||this._isElementInput(c)&&!this._shouldInputLoseFocus(c,n))return!1;var m=_?c.getBoundingClientRect():null;do if(c=n?Kr(this._root.current,c):cs(this._root.current,c),_){if(c){var x=c.getBoundingClientRect(),y=t(m,x);if(y===-1&&u===-1){h=c;break}if(y>-1&&(u===-1||y<u)&&(u=y,h=c),u>=0&&y<0)break}}else{h=c;break}while(c);if(h&&h!==this._activeElement)g=!0,this.focusElement(h);else if(this.props.isCircularNavigation&&d)return n?this.focusElement(Kr(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(cs(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return g},o.prototype._moveFocusDown=function(){var n=this,t=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(d,c){var u=-1,h=Math.floor(c.top),g=Math.floor(d.bottom);return h<g?n._shouldWrapFocus(n._activeElement,N_)?Y_:Cp:((t===-1&&h>=g||h===t)&&(t=h,i>=c.left&&i<=c.left+c.width?u=0:u=Math.abs(c.left+c.width/2-i)),u)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},o.prototype._moveFocusUp=function(){var n=this,t=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(d,c){var u=-1,h=Math.floor(c.bottom),g=Math.floor(c.top),_=Math.floor(d.top);return h>_?n._shouldWrapFocus(n._activeElement,N_)?Y_:Cp:((t===-1&&h<=_||g===t)&&(t=g,i>=c.left&&i<=c.left+c.width?u=0:u=Math.abs(c.left+c.width/2-i)),u)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},o.prototype._moveFocusLeft=function(n){var t=this,i=this._shouldWrapFocus(this._activeElement,O_);return this._moveFocus(At(n),function(d,c){var u=-1,h;return At(n)?h=parseFloat(c.top.toFixed(3))<parseFloat(d.bottom.toFixed(3)):h=parseFloat(c.bottom.toFixed(3))>parseFloat(d.top.toFixed(3)),h&&c.right<=d.right&&t.props.direction!==kn.vertical?u=d.right-c.right:i||(u=Cp),u},void 0,i)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},o.prototype._moveFocusRight=function(n){var t=this,i=this._shouldWrapFocus(this._activeElement,O_);return this._moveFocus(!At(n),function(d,c){var u=-1,h;return At(n)?h=parseFloat(c.bottom.toFixed(3))>parseFloat(d.top.toFixed(3)):h=parseFloat(c.top.toFixed(3))<parseFloat(d.bottom.toFixed(3)),h&&c.left>=d.left&&t.props.direction!==kn.vertical?u=c.left-d.left:i||(u=Cp),u},void 0,i)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},o.prototype._moveFocusPaging=function(n,t){t===void 0&&(t=!0);var i=this._activeElement;if(!i||!this._root.current||this._isElementInput(i)&&!this._shouldInputLoseFocus(i,n))return!1;var d=ih(i);if(!d)return!1;var c=-1,u=void 0,h=-1,g=-1,_=d.clientHeight,m=i.getBoundingClientRect();do if(i=n?Kr(this._root.current,i):cs(this._root.current,i),i){var x=i.getBoundingClientRect(),y=Math.floor(x.top),v=Math.floor(m.bottom),b=Math.floor(x.bottom),C=Math.floor(m.top),k=this._getHorizontalDistanceFromCenter(n,m,x),L=n&&y>v+_,I=!n&&b<C-_;if(L||I)break;k>-1&&(n&&y>h?(h=y,c=k,u=i):!n&&b<g?(g=b,c=k,u=i):(c===-1||k<=c)&&(c=k,u=i))}while(i);var A=!1;if(u&&u!==this._activeElement)A=!0,this.focusElement(u),this._setFocusAlignment(u,!1,!0);else if(this.props.isCircularNavigation&&t)return n?this.focusElement(Kr(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(cs(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return A},o.prototype._setFocusAlignment=function(n,t,i){if(this.props.direction===kn.bidirectional&&(!this._focusAlignment||t||i)){var d=n.getBoundingClientRect(),c=d.left+d.width/2,u=d.top+d.height/2;this._focusAlignment||(this._focusAlignment={left:c,top:u}),t&&(this._focusAlignment.left=c),i&&(this._focusAlignment.top=u)}},o.prototype._isImmediateDescendantOfZone=function(n){return this._getOwnerZone(n)===this._root.current},o.prototype._getOwnerZone=function(n){for(var t=Cn(n,td);t&&t!==this._root.current&&t!==this._getDocument().body;){if(ea(t))return t;t=Cn(t,td)}return t},o.prototype._updateTabIndexes=function(n){!this._activeElement&&this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="function"&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!n&&this._root.current&&(this._defaultFocusElement=null,n=this._root.current,this._activeElement&&!un(n,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!Yo(this._activeElement)&&(this._activeElement=null);for(var t=n&&n.children,i=0;t&&i<t.length;i++){var d=t[i];ea(d)?d.getAttribute(Xm)==="true"&&(!this._isInnerZone&&(!this._activeElement&&!this._defaultFocusElement||this._activeElement===d)?(this._defaultFocusElement=d,d.getAttribute(gi)!=="0"&&d.setAttribute(gi,"0")):d.getAttribute(gi)!=="-1"&&d.setAttribute(gi,"-1")):(d.getAttribute&&d.getAttribute(Xm)==="false"&&d.setAttribute(gi,"-1"),Yo(d)?this.props.disabled?d.setAttribute(gi,"-1"):!this._isInnerZone&&(!this._activeElement&&!this._defaultFocusElement||this._activeElement===d)?(this._defaultFocusElement=d,d.getAttribute(gi)!=="0"&&d.setAttribute(gi,"0")):d.getAttribute(gi)!=="-1"&&d.setAttribute(gi,"-1"):d.tagName==="svg"&&d.getAttribute("focusable")!=="false"&&d.setAttribute("focusable","false")),this._updateTabIndexes(d)}},o.prototype._isContentEditableElement=function(n){return n&&n.getAttribute("contenteditable")==="true"},o.prototype._isElementInput=function(n){return!!(n&&n.tagName&&(n.tagName.toLowerCase()==="input"||n.tagName.toLowerCase()==="textarea"))},o.prototype._shouldInputLoseFocus=function(n,t){if(!this._processingTabKey&&n&&n.type&&iL.indexOf(n.type.toLowerCase())>-1){var i=n.selectionStart,d=n.selectionEnd,c=i!==d,u=n.value,h=n.readOnly;if(c||i>0&&!t&&!h||i!==u.length&&t&&!h||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(n)))return!1}return!0},o.prototype._shouldWrapFocus=function(n,t){return this.props.checkForNoWrap?eb(n,t):!0},o.prototype._portalContainsElement=function(n){return n&&!!this._root.current&&Uy(n,this._root.current)},o.prototype._getDocument=function(){return yn(this._root.current)},o.defaultProps={isCircularNavigation:!1,direction:kn.bidirectional,shouldRaiseClicks:!0},o})(M.Component),aL="ktp",Cv="-",lL="data-ktp-target",dL="data-ktp-execute-target",cL="ktp-layer-id",_i;(function(s){s.KEYTIP_ADDED="keytipAdded",s.KEYTIP_REMOVED="keytipRemoved",s.KEYTIP_UPDATED="keytipUpdated",s.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",s.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",s.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",s.ENTER_KEYTIP_MODE="enterKeytipMode",s.EXIT_KEYTIP_MODE="exitKeytipMode"})(_i||(_i={}));var xb=(function(){function s(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return s.getInstance=function(){return this._instance},s.prototype.init=function(o){this.delayUpdatingKeytipChange=o},s.prototype.register=function(o,n){n===void 0&&(n=!1);var t=o;n||(t=this.addParentOverflow(o),this.sequenceMapping[t.keySequences.toString()]=t);var i=this._getUniqueKtp(t);if(n?this.persistedKeytips[i.uniqueID]=i:this.keytips[i.uniqueID]=i,this.inKeytipMode||!this.delayUpdatingKeytipChange){var d=n?_i.PERSISTED_KEYTIP_ADDED:_i.KEYTIP_ADDED;Yt.raise(this,d,{keytip:t,uniqueID:i.uniqueID})}return i.uniqueID},s.prototype.update=function(o,n){var t=this.addParentOverflow(o),i=this._getUniqueKtp(t,n),d=this.keytips[n];d&&(i.keytip.visible=d.keytip.visible,this.keytips[n]=i,delete this.sequenceMapping[d.keytip.keySequences.toString()],this.sequenceMapping[i.keytip.keySequences.toString()]=i.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&Yt.raise(this,_i.KEYTIP_UPDATED,{keytip:i.keytip,uniqueID:i.uniqueID}))},s.prototype.unregister=function(o,n,t){t===void 0&&(t=!1),t?delete this.persistedKeytips[n]:delete this.keytips[n],!t&&delete this.sequenceMapping[o.keySequences.toString()];var i=t?_i.PERSISTED_KEYTIP_REMOVED:_i.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&Yt.raise(this,i,{keytip:o,uniqueID:n})},s.prototype.enterKeytipMode=function(){Yt.raise(this,_i.ENTER_KEYTIP_MODE)},s.prototype.exitKeytipMode=function(){Yt.raise(this,_i.EXIT_KEYTIP_MODE)},s.prototype.getKeytips=function(){var o=this;return Object.keys(this.keytips).map(function(n){return o.keytips[n].keytip})},s.prototype.addParentOverflow=function(o){var n=Nn(o.keySequences);if(n.pop(),n.length!==0){var t=this.sequenceMapping[n.toString()];if(t&&t.overflowSetSequence)return N(N({},o),{overflowSetSequence:t.overflowSetSequence})}return o},s.prototype.menuExecute=function(o,n){Yt.raise(this,_i.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:o,keytipSequences:n})},s.prototype._getUniqueKtp=function(o,n){return n===void 0&&(n=zt()),{keytip:N({},o),uniqueID:n}},s._instance=new s,s})();function bb(s){return s.reduce(function(o,n){return o+Cv+n.split("").join(Cv)},aL)}function uL(s,o){var n=o.length,t=Nn(o).pop(),i=Nn(s);return a5(i,n-1,t)}function pL(s){var o=" "+cL;return s.length?o+" "+bb(s):o}function Sb(s){var o=M.useRef();return o.current===void 0&&(o.current={value:typeof s=="function"?s():s}),o.current.value}function hL(s){var o=M.useRef();return M.useEffect(function(){o.current=s}),o.current}var mL=M.createContext({window:typeof window=="object"?window:void 0});function fL(s){var o=M.useRef(),n=s.keytipProps?N({disabled:s.disabled},s.keytipProps):void 0,t=Sb(xb.getInstance()),i=hL(s);M.useLayoutEffect(function(){var c,u;o.current&&n&&(((c=i)===null||c===void 0?void 0:c.keytipProps)!==s.keytipProps||((u=i)===null||u===void 0?void 0:u.disabled)!==s.disabled)&&t.update(n,o.current)}),M.useLayoutEffect(function(){return n&&(o.current=t.register(n)),function(){n&&t.unregister(n,o.current)}},[]);var d={ariaDescribedBy:void 0,keytipId:void 0};return n&&(d=gL(t,n,s.ariaDescribedBy)),d}function gL(s,o,n){var t=s.addParentOverflow(o),i=Za(n,pL(t.keySequences)),d=Nn(t.keySequences);t.overflowSetSequence&&(d=uL(d,t.overflowSetSequence));var c=bb(d);return{ariaDescribedBy:i,keytipId:c}}var ra=function(s){var o,n=s.children,t=ms(s,["children"]),i=fL(t),d=i.keytipId,c=i.ariaDescribedBy;return n((o={},o[lL]=d,o[dL]=d,o["aria-describedby"]=c,o))},_L=Je(),yL=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._link=M.createRef(),t._renderContent=function(i){i===void 0&&(i={});var d=t.props,c=d.disabled,u=d.children,h=d.className,g=d.href,_=d.underline,m=d.theme,x=d.styles,y=_L(x,{className:h,isButton:!g,isDisabled:c,isUnderlined:_,theme:m}),v=t._getRootType(t.props);return M.createElement(v,N({},i,t._adjustPropsForRootType(v,t.props),{className:y.root,onClick:t._onClick,ref:t._link,"aria-disabled":c}),u)},t._onClick=function(i){var d=t.props,c=d.onClick,u=d.disabled;u?i.preventDefault():c&&c(i)},St(t),t}return o.prototype.render=function(){var n=this,t=this.props,i=t.disabled,d=t.keytipProps;return d?M.createElement(ra,{keytipProps:d,ariaDescribedBy:this.props["aria-describedby"],disabled:i},function(c){return n._renderContent(c)}):this._renderContent()},o.prototype.focus=function(){var n=this._link.current;n&&n.focus&&n.focus()},o.prototype._adjustPropsForRootType=function(n,t){t.children,t.as;var i=t.disabled,d=t.target,c=t.href;t.theme,t.getStyles,t.styles,t.componentRef,t.keytipProps,t.underline;var u=ms(t,["children","as","disabled","target","href","theme","getStyles","styles","componentRef","keytipProps","underline"]);return typeof n=="string"?n==="a"?N({target:d,href:i?void 0:c},u):n==="button"?N({type:"button",disabled:i},u):N(N({},u),{disabled:i}):N({target:d,href:c,disabled:i},u)},o.prototype._getRootType=function(n){return n.as?n.as:n.href?"a":"button"},o})(M.Component),wL={root:"ms-Link"},vL=function(s){var o,n,t,i,d,c,u=s.className,h=s.isButton,g=s.isDisabled,_=s.isUnderlined,m=s.theme,x=m.semanticColors,y=x.link,v=x.linkHovered,b=x.disabledText,C=x.focusBorder,k=at(wL,m);return{root:[k.root,m.fonts.medium,{color:y,outline:"none",fontSize:"inherit",fontWeight:"inherit",textDecoration:_?"underline":"none",selectors:(o={".ms-Fabric--isFocusVisible &:focus":{boxShadow:"0 0 0 1px "+C+" inset",outline:"1px auto "+C,selectors:(n={},n[_e]={outline:"1px solid WindowText"},n)}},o[_e]={borderBottom:"none"},o)},h&&{background:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline",margin:0,overflow:"inherit",padding:0,textAlign:"left",textOverflow:"inherit",userSelect:"text",borderBottom:"1px solid transparent",selectors:(t={},t[_e]={color:"LinkText",forcedColorAdjust:"none"},t)},!h&&{selectors:(i={},i[_e]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},i)},g&&["is-disabled",{color:b,cursor:"default"},{selectors:{"&:link, &:visited":{pointerEvents:"none"}}}],!g&&{selectors:{"&:active, &:hover, &:active:hover":{color:v,textDecoration:"underline",selectors:(d={},d[_e]={color:"LinkText"},d)},"&:focus":{color:y,selectors:(c={},c[_e]={color:"LinkText"},c)}}},k.root,u]}},Cb=Ze(yL,vL,void 0,{scope:"Link"}),tr;(function(s){s[s.Normal=0]="Normal",s[s.Divider=1]="Divider",s[s.Header=2]="Header",s[s.Section=3]="Section"})(tr||(tr={}));function $p(s){return s.canCheck?!!(s.isChecked||s.checked):typeof s.isChecked=="boolean"?s.isChecked:typeof s.checked=="boolean"?s.checked:null}function na(s){return!!(s.subMenuProps||s.items)}function xi(s){return!!(s.isDisabled||s.disabled)}function kb(s){var o=$p(s),n=o!==null;return n?"menuitemcheckbox":"menuitem"}var Mb=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._updateComposedComponentRef=t._updateComposedComponentRef.bind(t),t}return o.prototype._updateComposedComponentRef=function(n){this._composedComponentInstance=n,n?this._hoisted=lM(this,n):this._hoisted&&dM(this,this._hoisted)},o})(M.Component),Qa;(function(s){s[s.small=0]="small",s[s.medium=1]="medium",s[s.large=2]="large",s[s.xLarge=3]="xLarge",s[s.xxLarge=4]="xxLarge",s[s.xxxLarge=5]="xxxLarge",s[s.unknown=999]="unknown"})(Qa||(Qa={}));var xL=[479,639,1023,1365,1919,99999999],jb;function Lb(){var s;return s=jb,s??Qa.large}function uh(s){var o,n=(o=(function(t){Ne(i,t);function i(d){var c=t.call(this,d)||this;return c._onResize=function(){var u=SL(c.context.window);u!==c.state.responsiveMode&&c.setState({responsiveMode:u})},c._events=new Yt(c),c._updateComposedComponentRef=c._updateComposedComponentRef.bind(c),c.state={responsiveMode:Lb()},c}return i.prototype.componentDidMount=function(){this._events.on(this.context.window,"resize",this._onResize),this._onResize()},i.prototype.componentWillUnmount=function(){this._events.dispose()},i.prototype.render=function(){var d=this.state.responsiveMode;return d===Qa.unknown?null:M.createElement(s,N({ref:this._updateComposedComponentRef,responsiveMode:d},this.props))},i})(Mb),o.contextType=mL,o);return q0(s,n)}function bL(s){try{return s.document.documentElement.clientWidth}catch{return s.innerWidth}}function SL(s){var o=Qa.small;if(s){try{for(;bL(s)>xL[o];)o++}catch{o=Lb()}jb=o}else throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return o}var CL=function(s){var o=s.item,n=s.hasIcons,t=s.classNames,i=o.iconProps;return n?o.onRenderIcon?o.onRenderIcon(s):M.createElement(Ue,N({},i,{className:t.icon})):null},kL=function(s){var o=s.onCheckmarkClick,n=s.item,t=s.classNames,i=$p(n);if(o){var d=function(c){return o(n,c)};return M.createElement(Ue,{iconName:n.canCheck!==!1&&i?"CheckMark":"",className:t.checkmarkIcon,onClick:d})}return null},ML=function(s){var o=s.item,n=s.classNames;return o.text||o.name?M.createElement("span",{className:n.label},o.text||o.name):null},jL=function(s){var o=s.item,n=s.classNames;return o.secondaryText?M.createElement("span",{className:n.secondaryText},o.secondaryText):null},LL=function(s){var o=s.item,n=s.classNames,t=s.theme;return na(o)?M.createElement(Ue,N({iconName:At(t)?"ChevronLeft":"ChevronRight"},o.submenuIconProps,{className:n.subMenuIcon})):null},EL=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t.openSubMenu=function(){var i=t.props,d=i.item,c=i.openSubMenu,u=i.getSubmenuTarget;if(u){var h=u();na(d)&&c&&h&&c(d,h)}},t.dismissSubMenu=function(){var i=t.props,d=i.item,c=i.dismissSubMenu;na(d)&&c&&c()},t.dismissMenu=function(i){var d=t.props.dismissMenu;d&&d(void 0,i)},St(t),t}return o.prototype.render=function(){var n=this.props,t=n.item,i=n.classNames,d=t.onRenderContent||this._renderLayout;return M.createElement("div",{className:t.split?i.linkContentMenu:i.linkContent},d(this.props,{renderCheckMarkIcon:kL,renderItemIcon:CL,renderItemName:ML,renderSecondaryText:jL,renderSubMenuIcon:LL}))},o.prototype._renderLayout=function(n,t){return M.createElement(M.Fragment,null,t.renderCheckMarkIcon(n),t.renderItemIcon(n),t.renderItemName(n),t.renderSecondaryText(n),t.renderSubMenuIcon(n))},o})(M.Component),DL=Et(function(s){return tl({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:s.palette.neutralTertiaryAlt}})}),Ka=36,kv=ug(0,lb),IL=Et(function(s){var o,n,t,i,d,c=s.semanticColors,u=s.fonts,h=s.palette,g=c.menuItemBackgroundHovered,_=c.menuItemTextHovered,m=c.menuItemBackgroundPressed,x=c.bodyDivider,y={item:[u.medium,{color:c.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:x,position:"relative"},root:[On(s),u.medium,{color:c.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:Ka,lineHeight:Ka,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:c.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(o={},o[_e]=N({color:"GrayText",opacity:1},bt()),o)},rootHovered:{backgroundColor:g,color:_,selectors:{".ms-ContextualMenu-icon":{color:h.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:h.neutralPrimary}}},rootFocused:{backgroundColor:h.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:h.neutralPrimary}}},rootPressed:{backgroundColor:m,selectors:{".ms-ContextualMenu-icon":{color:h.themeDark},".ms-ContextualMenu-submenuIcon":{color:h.neutralPrimary}}},rootExpanded:{backgroundColor:m,color:c.bodyTextChecked,selectors:(n={".ms-ContextualMenu-submenuIcon":(t={},t[_e]={color:"inherit"},t)},n[_e]=N({},bt()),n)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},secondaryText:{color:s.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:Ka,fontSize:Mr.medium,width:Mr.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(i={},i[kv]={fontSize:Mr.large,width:Mr.large},i)},iconColor:{color:c.menuIcon},iconDisabled:{color:c.disabledBodyText},checkmarkIcon:{color:c.bodySubtext},subMenuIcon:{height:Ka,lineHeight:Ka,color:h.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:Mr.small,selectors:(d={":hover":{color:h.neutralPrimary},":active":{color:h.neutralPrimary}},d[kv]={fontSize:Mr.medium},d)},splitButtonFlexContainer:[On(s),{display:"flex",height:Ka,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return Vo(y)}),Mv="28px",TL=ug(0,lb),AL=Et(function(s){var o;return tl(DL(s),{wrapper:{position:"absolute",right:28,selectors:(o={},o[TL]={right:32},o)},divider:{height:16,width:1}})}),PL={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},RL=Et(function(s,o,n,t,i,d,c,u,h,g,_,m){var x,y,v,b,C=IL(s),k=at(PL,s);return tl({item:[k.item,C.item,c],divider:[k.divider,C.divider,u],root:[k.root,C.root,t&&[k.isChecked,C.rootChecked],i&&C.anchorLink,n&&[k.isExpanded,C.rootExpanded],o&&[k.isDisabled,C.rootDisabled],!o&&!n&&[{selectors:(x={":hover":C.rootHovered,":active":C.rootPressed},x["."+fn+" &:focus, ."+fn+" &:focus:hover"]=C.rootFocused,x["."+fn+" &:hover"]={background:"inherit;"},x)}],m],splitPrimary:[C.root,{width:"calc(100% - "+Mv+")"},t&&["is-checked",C.rootChecked],(o||_)&&["is-disabled",C.rootDisabled],!(o||_)&&!t&&[{selectors:(y={":hover":C.rootHovered},y[":hover ~ ."+k.splitMenu]=C.rootHovered,y[":active"]=C.rootPressed,y["."+fn+" &:focus, ."+fn+" &:focus:hover"]=C.rootFocused,y["."+fn+" &:hover"]={background:"inherit;"},y)}]],splitMenu:[k.splitMenu,C.root,{flexBasis:"0",padding:"0 8px",minWidth:Mv},n&&["is-expanded",C.rootExpanded],o&&["is-disabled",C.rootDisabled],!o&&!n&&[{selectors:(v={":hover":C.rootHovered,":active":C.rootPressed},v["."+fn+" &:focus, ."+fn+" &:focus:hover"]=C.rootFocused,v["."+fn+" &:hover"]={background:"inherit;"},v)}]],anchorLink:C.anchorLink,linkContent:[k.linkContent,C.linkContent],linkContentMenu:[k.linkContentMenu,C.linkContent,{justifyContent:"center"}],icon:[k.icon,d&&C.iconColor,C.icon,h,o&&[k.isDisabled,C.iconDisabled]],iconColor:C.iconColor,checkmarkIcon:[k.checkmarkIcon,d&&C.checkmarkIcon,C.icon,h],subMenuIcon:[k.subMenuIcon,C.subMenuIcon,g,n&&{color:s.palette.neutralPrimary},o&&[C.iconDisabled]],label:[k.label,C.label],secondaryText:[k.secondaryText,C.secondaryText],splitContainer:[C.splitButtonFlexContainer,!o&&!t&&[{selectors:(b={},b["."+fn+" &:focus, ."+fn+" &:focus:hover"]=C.rootFocused,b)}]],screenReaderText:[k.screenReaderText,C.screenReaderText,wd,{visibility:"hidden"}]})}),Eb=function(s){var o=s.theme,n=s.disabled,t=s.expanded,i=s.checked,d=s.isAnchorLink,c=s.knownIcon,u=s.itemClassName,h=s.dividerClassName,g=s.iconClassName,_=s.subMenuClassName,m=s.primaryDisabled,x=s.className;return RL(o,n,t,i,d,c,u,h,g,_,m,x)},Kp=Ze(EL,Eb,void 0,{scope:"ContextualMenuItem"}),tw=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._onItemMouseEnter=function(i){var d=t.props,c=d.item,u=d.onItemMouseEnter;u&&u(c,i,i.currentTarget)},t._onItemClick=function(i){var d=t.props,c=d.item,u=d.onItemClickBase;u&&u(c,i,i.currentTarget)},t._onItemMouseLeave=function(i){var d=t.props,c=d.item,u=d.onItemMouseLeave;u&&u(c,i)},t._onItemKeyDown=function(i){var d=t.props,c=d.item,u=d.onItemKeyDown;u&&u(c,i)},t._onItemMouseMove=function(i){var d=t.props,c=d.item,u=d.onItemMouseMove;u&&u(c,i,i.currentTarget)},t._getSubmenuTarget=function(){},St(t),t}return o.prototype.shouldComponentUpdate=function(n){return!bi(n,this.props)},o})(M.Component),FL=(function(s){Ne(o,s);function o(){var n=s!==null&&s.apply(this,arguments)||this;return n._anchor=M.createRef(),n._getMemoizedMenuButtonKeytipProps=Et(function(t){return N(N({},t),{hasMenu:!0})}),n._getSubmenuTarget=function(){return n._anchor.current?n._anchor.current:void 0},n._onItemClick=function(t){var i=n.props,d=i.item,c=i.onItemClick;c&&c(d,t)},n._renderAriaDescription=function(t,i){return t?M.createElement("span",{id:n._ariaDescriptionId,className:i},t):null},n}return o.prototype.render=function(){var n=this,t=this.props,i=t.item,d=t.classNames,c=t.index,u=t.focusableElementIndex,h=t.totalItemCount,g=t.hasCheckmarks,_=t.hasIcons,m=t.contextualMenuItemAs,x=m===void 0?Kp:m,y=t.expandedMenuItemKey,v=t.onItemClick,b=t.openSubMenu,C=t.dismissSubMenu,k=t.dismissMenu,L=i.rel;i.target&&i.target.toLowerCase()==="_blank"&&(L=L||"nofollow noopener noreferrer");var I=na(i),A=pt(i,$y),Y=xi(i),P=i.itemProps,T=i.ariaDescription,F=i.keytipProps;return F&&I&&(F=this._getMemoizedMenuButtonKeytipProps(F)),T&&(this._ariaDescriptionId=zt()),M.createElement("div",null,M.createElement(ra,{keytipProps:i.keytipProps,ariaDescribedBy:A["aria-describedby"],disabled:Y},function(H){return M.createElement("a",N({},A,H,{ref:n._anchor,href:i.href,target:i.target,rel:L,className:d.root,role:"menuitem","aria-haspopup":I||void 0,"aria-expanded":I?i.key===y:void 0,"aria-posinset":u+1,"aria-setsize":h,"aria-disabled":xi(i),"aria-describedby":Za(T?n._ariaDescriptionId:void 0,H?H["aria-describedby"]:void 0),style:i.style,onClick:n._onItemClick,onMouseEnter:n._onItemMouseEnter,onMouseLeave:n._onItemMouseLeave,onMouseMove:n._onItemMouseMove,onKeyDown:I?n._onItemKeyDown:void 0}),M.createElement(x,N({componentRef:i.componentRef,item:i,classNames:d,index:c,onCheckmarkClick:g&&v?v:void 0,hasIcons:_,openSubMenu:b,dismissSubMenu:C,dismissMenu:k,getSubmenuTarget:n._getSubmenuTarget},P)),n._renderAriaDescription(T,d.screenReaderText))}))},o})(tw),NL=(function(s){Ne(o,s);function o(){var n=s!==null&&s.apply(this,arguments)||this;return n._btn=M.createRef(),n._getMemoizedMenuButtonKeytipProps=Et(function(t){return N(N({},t),{hasMenu:!0})}),n._renderAriaDescription=function(t,i){return t?M.createElement("span",{id:n._ariaDescriptionId,className:i},t):null},n._getSubmenuTarget=function(){return n._btn.current?n._btn.current:void 0},n}return o.prototype.render=function(){var n=this,t=this.props,i=t.item,d=t.classNames,c=t.index,u=t.focusableElementIndex,h=t.totalItemCount,g=t.hasCheckmarks,_=t.hasIcons,m=t.contextualMenuItemAs,x=m===void 0?Kp:m,y=t.expandedMenuItemKey,v=t.onItemMouseDown,b=t.onItemClick,C=t.openSubMenu,k=t.dismissSubMenu,L=t.dismissMenu,I=$p(i),A=I!==null,Y=kb(i),P=na(i),T=i.itemProps,F=i.ariaLabel,H=i.ariaDescription,W=pt(i,Xa);delete W.disabled;var K=i.role||Y;H&&(this._ariaDescriptionId=zt());var Z=H?this._ariaDescriptionId:void 0,Q={className:d.root,onClick:this._onItemClick,onKeyDown:P?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(R){return v?v(i,R):void 0},onMouseMove:this._onItemMouseMove,href:i.href,title:i.title,"aria-label":F,"aria-describedby":Z,"aria-haspopup":P||void 0,"aria-expanded":P?i.key===y:void 0,"aria-posinset":u+1,"aria-setsize":h,"aria-disabled":xi(i),"aria-checked":(K==="menuitemcheckbox"||K==="menuitemradio")&&A?!!I:void 0,"aria-selected":K==="menuitem"&&A?!!I:void 0,role:K,style:i.style},B=i.keytipProps;return B&&P&&(B=this._getMemoizedMenuButtonKeytipProps(B)),M.createElement(ra,{keytipProps:B,ariaDescribedBy:W["aria-describedby"],disabled:xi(i)},function(R){return M.createElement("button",N({ref:n._btn},W,Q,R,{"aria-describedby":Za(Q["aria-describedby"],R?R["aria-describedby"]:void 0)}),M.createElement(x,N({componentRef:i.componentRef,item:i,classNames:d,index:c,onCheckmarkClick:g&&b?b:void 0,hasIcons:_,openSubMenu:C,dismissSubMenu:k,dismissMenu:L,getSubmenuTarget:n._getSubmenuTarget},T)),n._renderAriaDescription(H,d.screenReaderText))})},o})(tw),OL=function(s){var o=s.theme,n=s.getClassNames,t=s.className;if(!o)throw new Error("Theme is undefined or null.");if(n){var i=n(o);return{wrapper:[i.wrapper],divider:[i.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},t],divider:[{width:1,height:"100%",backgroundColor:o.palette.neutralTertiaryAlt}]}},YL=Je(),Db=function(s){var o=s.styles,n=s.theme,t=s.getClassNames,i=s.className,d=YL(o,{theme:n,getClassNames:t,className:i});return M.createElement("span",{className:d.wrapper},M.createElement("span",{className:d.divider}))};Db.displayName="VerticalDividerBase";var WL=Ze(Db,OL,void 0,{scope:"VerticalDivider"}),BL=500,HL=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._getMemoizedMenuButtonKeytipProps=Et(function(i){return N(N({},i),{hasMenu:!0})}),t._renderAriaDescription=function(i,d){return i?M.createElement("span",{id:t._ariaDescriptionId,className:d},i):null},t._onItemKeyDown=function(i){var d=t.props,c=d.item,u=d.onItemKeyDown;i.which===ke.enter?(t._executeItemClick(i),i.preventDefault(),i.stopPropagation()):u&&u(c,i)},t._getSubmenuTarget=function(){return t._splitButton},t._onItemMouseEnterPrimary=function(i){var d=t.props,c=d.item,u=d.onItemMouseEnter;u&&u(N(N({},c),{subMenuProps:void 0,items:void 0}),i,t._splitButton)},t._onItemMouseEnterIcon=function(i){var d=t.props,c=d.item,u=d.onItemMouseEnter;u&&u(c,i,t._splitButton)},t._onItemMouseMovePrimary=function(i){var d=t.props,c=d.item,u=d.onItemMouseMove;u&&u(N(N({},c),{subMenuProps:void 0,items:void 0}),i,t._splitButton)},t._onItemMouseMoveIcon=function(i){var d=t.props,c=d.item,u=d.onItemMouseMove;u&&u(c,i,t._splitButton)},t._onIconItemClick=function(i){var d=t.props,c=d.item,u=d.onItemClickBase;u&&u(c,i,t._splitButton?t._splitButton:i.currentTarget)},t._executeItemClick=function(i){var d=t.props,c=d.item,u=d.executeItemClick,h=d.onItemClick;if(!(c.disabled||c.isDisabled)){if(t._processingTouch&&h)return h(c,i);u&&u(c,i)}},t._onTouchStart=function(i){t._splitButton&&!("onpointerdown"in t._splitButton)&&t._handleTouchAndPointerEvent(i)},t._onPointerDown=function(i){i.pointerType==="touch"&&(t._handleTouchAndPointerEvent(i),i.preventDefault(),i.stopImmediatePropagation())},t._async=new Wn(t),t._events=new Yt(t),t}return o.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},o.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},o.prototype.render=function(){var n=this,t=this.props,i=t.item,d=t.classNames,c=t.index,u=t.focusableElementIndex,h=t.totalItemCount,g=t.hasCheckmarks,_=t.hasIcons,m=t.onItemMouseLeave,x=t.expandedMenuItemKey,y=na(i),v=i.keytipProps;v&&(v=this._getMemoizedMenuButtonKeytipProps(v));var b=i.ariaDescription;return b&&(this._ariaDescriptionId=zt()),M.createElement(ra,{keytipProps:v,disabled:xi(i)},function(C){return M.createElement("div",{"data-ktp-target":C["data-ktp-target"],ref:function(k){return n._splitButton=k},role:kb(i),"aria-label":i.ariaLabel,className:d.splitContainer,"aria-disabled":xi(i),"aria-expanded":y?i.key===x:void 0,"aria-haspopup":!0,"aria-describedby":Za(b?n._ariaDescriptionId:void 0,C["aria-describedby"]),"aria-checked":i.isChecked||i.checked,"aria-posinset":u+1,"aria-setsize":h,onMouseEnter:n._onItemMouseEnterPrimary,onMouseLeave:m?m.bind(n,N(N({},i),{subMenuProps:null,items:null})):void 0,onMouseMove:n._onItemMouseMovePrimary,onKeyDown:n._onItemKeyDown,onClick:n._executeItemClick,onTouchStart:n._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":i["aria-roledescription"]},n._renderSplitPrimaryButton(i,d,c,g,_),n._renderSplitDivider(i),n._renderSplitIconButton(i,d,c,C),n._renderAriaDescription(b,d.screenReaderText))})},o.prototype._renderSplitPrimaryButton=function(n,t,i,d,c){var u=this.props,h=u.contextualMenuItemAs,g=h===void 0?Kp:h,_=u.onItemClick,m={key:n.key,disabled:xi(n)||n.primaryDisabled,name:n.name,text:n.text||n.name,secondaryText:n.secondaryText,className:t.splitPrimary,canCheck:n.canCheck,isChecked:n.isChecked,checked:n.checked,iconProps:n.iconProps,onRenderIcon:n.onRenderIcon,data:n.data,"data-is-focusable":!1},x=n.itemProps;return M.createElement("button",N({},pt(m,Xa)),M.createElement(g,N({"data-is-focusable":!1,item:m,classNames:t,index:i,onCheckmarkClick:d&&_?_:void 0,hasIcons:c},x)))},o.prototype._renderSplitDivider=function(n){var t=n.getSplitButtonVerticalDividerClassNames||AL;return M.createElement(WL,{getClassNames:t})},o.prototype._renderSplitIconButton=function(n,t,i,d){var c=this.props,u=c.contextualMenuItemAs,h=u===void 0?Kp:u,g=c.onItemMouseLeave,_=c.onItemMouseDown,m=c.openSubMenu,x=c.dismissSubMenu,y=c.dismissMenu,v={onClick:this._onIconItemClick,disabled:xi(n),className:t.splitMenu,subMenuProps:n.subMenuProps,submenuIconProps:n.submenuIconProps,split:!0,key:n.key},b=N(N({},pt(v,Xa)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:g?g.bind(this,n):void 0,onMouseDown:function(k){return _?_(n,k):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":d["data-ktp-execute-target"],"aria-hidden":!0}),C=n.itemProps;return M.createElement("button",N({},b),M.createElement(h,N({componentRef:n.componentRef,item:v,classNames:t,index:i,hasIcons:!1,openSubMenu:m,dismissSubMenu:x,dismissMenu:y,getSubmenuTarget:this._getSubmenuTarget},C)))},o.prototype._handleTouchAndPointerEvent=function(n){var t=this,i=this.props.onTap;i&&i(n),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){t._processingTouch=!1,t._lastTouchTimeoutId=void 0},BL)},o})(tw),zL=Je(),UL=Je();function jv(s,o){var n,t=(n=o)===null||n===void 0?void 0:n.target,i=s.subMenuProps?s.subMenuProps.items:s.items;if(i){for(var d=[],c=0,u=i;c<u.length;c++){var h=u[c];if(h.preferMenuTargetAsEventTarget){var g=h.onClick,_=ms(h,["onClick"]);d.push(N(N({},_),{onClick:Ib(g,t)}))}else d.push(h)}return d}}function VL(s){return s.some(function(o){return!!(o.canCheck||o.sectionProps&&o.sectionProps.items.some(function(n){return n.canCheck===!0}))})}var Lv=250,GL=Et(function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];return function(n){return F0.apply(void 0,Nn([n,Eb],s))}}),$L=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._mounted=!1,t.dismiss=function(i,d){var c=t.props.onDismiss;c&&c(i,d)},t._tryFocusPreviousActiveElement=function(i){t.props.onRestoreFocus?t.props.onRestoreFocus(i):i&&i.containsFocus&&t._previousActiveElement&&t._previousActiveElement.focus&&t._previousActiveElement.focus()},t._onRenderMenuList=function(i,d){var c=0,u=i.items,h=i.totalItemCount,g=i.hasCheckmarks,_=i.hasIcons;return M.createElement("ul",{className:t._classNames.list,onKeyDown:t._onKeyDown,onKeyUp:t._onKeyUp,role:"presentation"},u.map(function(m,x){var y=t._renderMenuItem(m,x,c,h,g,_);if(m.itemType!==tr.Divider&&m.itemType!==tr.Header){var v=m.customOnRenderListLength?m.customOnRenderListLength:1;c+=v}return y}))},t._renderMenuItem=function(i,d,c,u,h,g){var _,m=[],x=i.iconProps||{iconName:"None"},y=i.getItemClassNames,v=i.itemProps,b=v?v.styles:void 0,C=i.itemType===tr.Divider?i.className:void 0,k=i.submenuIconProps?i.submenuIconProps.className:"",L;if(y)L=y(t.props.theme,xi(i),t.state.expandedMenuItemKey===i.key,!!$p(i),!!i.href,x.iconName!=="None",i.className,C,x.className,k,i.primaryDisabled);else{var I={theme:t.props.theme,disabled:xi(i),expanded:t.state.expandedMenuItemKey===i.key,checked:!!$p(i),isAnchorLink:!!i.href,knownIcon:x.iconName!=="None",itemClassName:i.className,dividerClassName:C,iconClassName:x.className,subMenuClassName:k,primaryDisabled:i.primaryDisabled};L=UL(GL((_=t._classNames.subComponentStyles)===null||_===void 0?void 0:_.menuItem,b),I)}switch((i.text==="-"||i.name==="-")&&(i.itemType=tr.Divider),i.itemType){case tr.Divider:m.push(t._renderSeparator(d,L));break;case tr.Header:m.push(t._renderSeparator(d,L));var A=t._renderHeaderMenuItem(i,L,d,h,g);m.push(t._renderListItem(A,i.key||d,L,i.title));break;case tr.Section:m.push(t._renderSectionItem(i,L,d,h,g));break;default:var Y=t._renderNormalItem(i,L,d,c,u,h,g);m.push(t._renderListItem(Y,i.key||d,L,i.title));break}return M.createElement(M.Fragment,{key:i.key},m)},t._defaultMenuItemRenderer=function(i){var d=i.index,c=i.focusableElementIndex,u=i.totalItemCount,h=i.hasCheckmarks,g=i.hasIcons;return t._renderMenuItem(i,d,c,u,h,g)},t._onKeyDown=function(i){t._lastKeyDownWasAltOrMeta=t._isAltOrMeta(i);var d=i.which===ke.escape&&(my()||hy());return t._keyHandler(i,t._shouldHandleKeyDown,d)},t._shouldHandleKeyDown=function(i){return i.which===ke.escape||t._shouldCloseSubMenu(i)||i.which===ke.up&&(i.altKey||i.metaKey)},t._onMenuFocusCapture=function(i){t.props.delayUpdateFocusOnHover&&(t._shouldUpdateFocusOnMouseEvent=!0)},t._onKeyUp=function(i){return t._keyHandler(i,t._shouldHandleKeyUp,!0)},t._shouldHandleKeyUp=function(i){var d=t._lastKeyDownWasAltOrMeta&&t._isAltOrMeta(i);return t._lastKeyDownWasAltOrMeta=!1,!!d&&!(hy()||my())},t._keyHandler=function(i,d,c){var u=!1;return d(i)&&(t._focusingPreviousElement=!0,t.dismiss(i,c),i.preventDefault(),i.stopPropagation(),u=!0),u},t._shouldCloseSubMenu=function(i){var d=At(t.props.theme)?ke.right:ke.left;return i.which!==d||!t.props.isSubMenu?!1:t._adjustedFocusZoneProps.direction===kn.vertical||!!t._adjustedFocusZoneProps.checkForNoWrap&&!eb(i.target,"data-no-horizontal-wrap")},t._onMenuKeyDown=function(i){var d=t._onKeyDown(i);if(!(d||!t._host)){var c=!!(i.altKey||i.metaKey),u=i.which===ke.up,h=i.which===ke.down;if(!c&&(u||h)){var g=u?Q0(t._host,t._host.lastChild,!0):X0(t._host,t._host.firstChild,!0);g&&(g.focus(),i.preventDefault(),i.stopPropagation())}}},t._onScroll=function(){!t._isScrollIdle&&t._scrollIdleTimeoutId!==void 0?(t._async.clearTimeout(t._scrollIdleTimeoutId),t._scrollIdleTimeoutId=void 0):t._isScrollIdle=!1,t._scrollIdleTimeoutId=t._async.setTimeout(function(){t._isScrollIdle=!0},Lv)},t._onItemMouseEnterBase=function(i,d,c){t._shouldIgnoreMouseEvent()||t._updateFocusOnMouseEvent(i,d,c)},t._onItemMouseMoveBase=function(i,d,c){var u=d.currentTarget;if(t._shouldUpdateFocusOnMouseEvent)t._gotMouseMove=!0;else return;!t._isScrollIdle||t._enterTimerId!==void 0||u===t._targetWindow.document.activeElement||t._updateFocusOnMouseEvent(i,d,c)},t._onMouseItemLeave=function(i,d){if(!t._shouldIgnoreMouseEvent()&&(t._enterTimerId!==void 0&&(t._async.clearTimeout(t._enterTimerId),t._enterTimerId=void 0),t.state.expandedMenuItemKey===void 0))if(t._host.setActive)try{t._host.setActive()}catch{}else t._host.focus()},t._onItemMouseDown=function(i,d){i.onMouseDown&&i.onMouseDown(i,d)},t._onItemClick=function(i,d){t._onItemClickBase(i,d,d.currentTarget)},t._onItemClickBase=function(i,d,c){var u=t.props.target,h=jv(i,{target:u});t._cancelSubMenuTimer(),!na(i)&&(!h||!h.length)?t._executeItemClick(i,d):i.key!==t.state.expandedMenuItemKey&&(t.setState({expandedByMouseClick:d.nativeEvent.detail!==0||d.nativeEvent.pointerType==="mouse"}),t._onItemSubMenuExpand(i,c)),d.stopPropagation(),d.preventDefault()},t._onAnchorClick=function(i,d){t._executeItemClick(i,d),d.stopPropagation()},t._executeItemClick=function(i,d){var c=t.props.target;if(!(i.disabled||i.isDisabled)){i.preferMenuTargetAsEventTarget&&Tb(d,c);var u=!1;i.onClick?u=!!i.onClick(d,i):t.props.onItemClick&&(u=!!t.props.onItemClick(d,i)),(u||!d.defaultPrevented)&&(t.dismiss(d,!0),t._focusingPreviousElement=!0)}},t._onItemKeyDown=function(i,d){var c=At(t.props.theme)?ke.left:ke.right;!i.disabled&&(d.which===c||d.which===ke.enter||d.which===ke.down&&(d.altKey||d.metaKey))&&(t.setState({expandedByMouseClick:!1}),t._onItemSubMenuExpand(i,d.currentTarget),d.preventDefault())},t._cancelSubMenuTimer=function(){t._enterTimerId!==void 0&&(t._async.clearTimeout(t._enterTimerId),t._enterTimerId=void 0)},t._onItemSubMenuExpand=function(i,d){t.state.expandedMenuItemKey!==i.key&&(t.state.expandedMenuItemKey&&t._onSubMenuDismiss(),d.focus(),t.setState({expandedMenuItemKey:i.key,submenuTarget:d}))},t._onSubMenuDismiss=function(i,d){d?t.dismiss(i,d):t._mounted&&t.setState({dismissedMenuItemKey:t.state.expandedMenuItemKey,expandedMenuItemKey:void 0,submenuTarget:void 0})},t._onPointerAndTouchEvent=function(i){t._cancelSubMenuTimer()},t._async=new Wn(t),t._events=new Yt(t),St(t),t.state={contextualMenuItems:void 0,subMenuId:zt("ContextualMenu")},t._id=n.id||zt("ContextualMenu"),t._focusingPreviousElement=!1,t._isScrollIdle=!0,t._shouldUpdateFocusOnMouseEvent=!t.props.delayUpdateFocusOnHover,t._gotMouseMove=!1,t}return o.prototype.shouldComponentUpdate=function(n,t){return!n.shouldUpdateWhenHidden&&this.props.hidden&&n.hidden?!1:!bi(this.props,n)||!bi(this.state,t)},o.prototype.UNSAFE_componentWillUpdate=function(n){if(n.target!==this.props.target){var t=n.target;this._setTargetWindowAndElement(t)}this._isHidden(n)!==this._isHidden(this.props)&&(this._isHidden(n)?this._onMenuClosed():(this._onMenuOpened(),this._previousActiveElement=this._targetWindow?this._targetWindow.document.activeElement:void 0)),n.delayUpdateFocusOnHover!==this.props.delayUpdateFocusOnHover&&(this._shouldUpdateFocusOnMouseEvent=!n.delayUpdateFocusOnHover,this._gotMouseMove=this._shouldUpdateFocusOnMouseEvent&&this._gotMouseMove)},o.prototype.UNSAFE_componentWillMount=function(){var n=this.props.target;this._setTargetWindowAndElement(n),this.props.hidden||(this._previousActiveElement=this._targetWindow?this._targetWindow.document.activeElement:void 0)},o.prototype.componentDidMount=function(){this.props.hidden||this._onMenuOpened(),this._mounted=!0},o.prototype.componentWillUnmount=function(){this.props.onMenuDismissed&&this.props.onMenuDismissed(this.props),this._events.dispose(),this._async.dispose(),this._mounted=!1},o.prototype.render=function(){var n=this,t=this.props.isBeakVisible,i=this.props,d=i.items,c=i.labelElementId,u=i.id,h=i.className,g=i.beakWidth,_=i.directionalHint,m=i.directionalHintForRTL,x=i.alignTargetEdge,y=i.gapSpace,v=i.coverTarget,b=i.ariaLabel,C=i.doNotLayer,k=i.target,L=i.bounds,I=i.useTargetWidth,A=i.useTargetAsMinWidth,Y=i.directionalHintFixed,P=i.shouldFocusOnMount,T=i.shouldFocusOnContainer,F=i.title,H=i.styles,W=i.theme,K=i.calloutProps,Z=i.onRenderSubMenu,Q=Z===void 0?this._onRenderSubMenu:Z,B=i.onRenderMenuList,R=B===void 0?this._onRenderMenuList:B,X=i.focusZoneProps,$=i.getMenuClassNames;this._classNames=$?$(W,h):zL(H,{theme:W,className:h});var ie=le(d);function le(Le){for(var Me=0,qe=Le;Me<qe.length;Me++){var Ct=qe[Me];if(Ct.iconProps||Ct.itemType===tr.Section&&Ct.sectionProps&&le(Ct.sectionProps.items))return!0}return!1}this._adjustedFocusZoneProps=N(N({},X),{direction:this._getFocusZoneDirection()});var V=VL(d),z=this.state.expandedMenuItemKey&&this.props.hidden!==!0?this._getSubmenuProps():null;t=t===void 0?this.props.responsiveMode<=Qa.medium:t;var J,ee=this._target;if((I||A)&&ee&&ee.offsetWidth){var he=ee.getBoundingClientRect(),te=he.width-2;I?J={width:te}:A&&(J={minWidth:te})}if(d&&d.length>0){for(var G=0,re=0,He=d;re<He.length;re++){var Ge=He[re];if(Ge.itemType!==tr.Divider&&Ge.itemType!==tr.Header){var Ut=Ge.customOnRenderListLength?Ge.customOnRenderListLength:1;G+=Ut}}var ht=this._classNames.subComponentStyles?this._classNames.subComponentStyles.callout:void 0;return M.createElement(ch,N({styles:ht,onRestoreFocus:this._tryFocusPreviousActiveElement},K,{target:k,isBeakVisible:t,beakWidth:g,directionalHint:_,directionalHintForRTL:m,gapSpace:y,coverTarget:v,doNotLayer:C,className:sn("ms-ContextualMenu-Callout",K&&K.className),setInitialFocus:P,onDismiss:this.props.onDismiss,onScroll:this._onScroll,bounds:L,directionalHintFixed:Y,alignTargetEdge:x,hidden:this.props.hidden}),M.createElement("div",{style:J,ref:function(Le){return n._host=Le},id:u,className:this._classNames.container,tabIndex:T?0:-1,onKeyDown:this._onMenuKeyDown,onKeyUp:this._onKeyUp,onFocusCapture:this._onMenuFocusCapture,"aria-label":b,"aria-labelledby":c,role:"menu"},F&&M.createElement("div",{className:this._classNames.title}," ",F," "),d&&d.length?M.createElement(xd,N({className:this._classNames.root,isCircularNavigation:!0,handleTabKey:Cy.all},this._adjustedFocusZoneProps),R({ariaLabel:b,items:d,totalItemCount:G,hasCheckmarks:V,hasIcons:ie,defaultMenuItemRenderer:this._defaultMenuItemRenderer,labelElementId:c},this._onRenderMenuList)):null,z&&Q(z,this._onRenderSubMenu)))}else return null},o.prototype._isHidden=function(n){return!!n.hidden},o.prototype._onMenuOpened=function(){this._events.on(this._targetWindow,"resize",this.dismiss),this._shouldUpdateFocusOnMouseEvent=!this.props.delayUpdateFocusOnHover,this._gotMouseMove=!1,this.props.onMenuOpened&&this.props.onMenuOpened(this.props)},o.prototype._onMenuClosed=function(){this._events.off(this._targetWindow,"resize",this.dismiss),this._tryFocusPreviousActiveElement({containsFocus:this._focusingPreviousElement,documentContainsFocus:this._targetWindow.document.hasFocus(),originalElement:this._previousActiveElement}),this._focusingPreviousElement=!1,this.props.onMenuDismissed&&this.props.onMenuDismissed(this.props),this._shouldUpdateFocusOnMouseEvent=!this.props.delayUpdateFocusOnHover,this.setState({expandedByMouseClick:void 0,dismissedMenuItemKey:void 0,expandedMenuItemKey:void 0,submenuTarget:void 0})},o.prototype._getFocusZoneDirection=function(){var n=this.props.focusZoneProps;return n&&n.direction!==void 0?n.direction:kn.vertical},o.prototype._onRenderSubMenu=function(n,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")},o.prototype._renderSectionItem=function(n,t,i,d,c){var u=this,h=n.sectionProps;if(h){var g,_;if(h.title){var m=void 0,x="";if(typeof h.title=="string"){var y=this._id+h.title.replace(/\s/g,"");m={key:"section-"+h.title+"-title",itemType:tr.Header,text:h.title,id:y},x=y}else{var y=h.title.id||this._id+h.title.key.replace(/\s/g,"");m=N(N({},h.title),{id:y}),x=y}m&&(_={role:"group","aria-labelledby":x},g=this._renderHeaderMenuItem(m,t,i,d,c))}if(h.items&&h.items.length>0)return M.createElement("li",{role:"presentation",key:h.key||n.key||"section-"+i},M.createElement("div",N({},_),M.createElement("ul",{className:this._classNames.list,role:"presentation"},h.topDivider&&this._renderSeparator(i,t,!0,!0),g&&this._renderListItem(g,n.key||i,t,n.title),h.items.map(function(v,b){return u._renderMenuItem(v,b,b,h.items.length,d,c)}),h.bottomDivider&&this._renderSeparator(i,t,!1,!0))))}},o.prototype._renderListItem=function(n,t,i,d){return M.createElement("li",{role:"presentation",title:d,key:t,className:i.item},n)},o.prototype._renderSeparator=function(n,t,i,d){return d||n>0?M.createElement("li",{role:"separator",key:"separator-"+n+(i===void 0?"":i?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},o.prototype._renderNormalItem=function(n,t,i,d,c,u,h){return n.onRender?n.onRender(N({"aria-posinset":d+1,"aria-setsize":c},n),this.dismiss):n.href?this._renderAnchorMenuItem(n,t,i,d,c,u,h):n.split&&na(n)?this._renderSplitButton(n,t,i,d,c,u,h):this._renderButtonItem(n,t,i,d,c,u,h)},o.prototype._renderHeaderMenuItem=function(n,t,i,d,c){var u=this.props.contextualMenuItemAs,h=u===void 0?Kp:u,g=n.itemProps,_=n.id,m=g&&pt(g,Yn);return M.createElement("div",N({id:_,className:this._classNames.header},m,{style:n.style}),M.createElement(h,N({item:n,classNames:t,index:i,onCheckmarkClick:d?this._onItemClick:void 0,hasIcons:c},g)))},o.prototype._renderAnchorMenuItem=function(n,t,i,d,c,u,h){var g=this.props.contextualMenuItemAs,_=this.state.expandedMenuItemKey;return M.createElement(FL,{item:n,classNames:t,index:i,focusableElementIndex:d,totalItemCount:c,hasCheckmarks:u,hasIcons:h,contextualMenuItemAs:g,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onAnchorClick,onItemKeyDown:this._onItemKeyDown,expandedMenuItemKey:_,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},o.prototype._renderButtonItem=function(n,t,i,d,c,u,h){var g=this.props.contextualMenuItemAs,_=this.state.expandedMenuItemKey;return M.createElement(NL,{item:n,classNames:t,index:i,focusableElementIndex:d,totalItemCount:c,hasCheckmarks:u,hasIcons:h,contextualMenuItemAs:g,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,expandedMenuItemKey:_,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},o.prototype._renderSplitButton=function(n,t,i,d,c,u,h){var g=this.props.contextualMenuItemAs,_=this.state.expandedMenuItemKey;return M.createElement(HL,{item:n,classNames:t,index:i,focusableElementIndex:d,totalItemCount:c,hasCheckmarks:u,hasIcons:h,contextualMenuItemAs:g,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss,expandedMenuItemKey:_,onTap:this._onPointerAndTouchEvent})},o.prototype._isAltOrMeta=function(n){return n.which===ke.alt||n.key==="Meta"},o.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},o.prototype._updateFocusOnMouseEvent=function(n,t,i){var d=this,c=i||t.currentTarget,u=this.props.subMenuHoverDelay,h=u===void 0?Lv:u;n.key!==this.state.expandedMenuItemKey&&(this._enterTimerId!==void 0&&(this._async.clearTimeout(this._enterTimerId),this._enterTimerId=void 0),this.state.expandedMenuItemKey===void 0&&c.focus(),na(n)?(t.stopPropagation(),this._enterTimerId=this._async.setTimeout(function(){c.focus(),d.setState({expandedByMouseClick:!0}),d._onItemSubMenuExpand(n,c),d._enterTimerId=void 0},h)):this._enterTimerId=this._async.setTimeout(function(){d._onSubMenuDismiss(t),c.focus(),d._enterTimerId=void 0},h))},o.prototype._getSubmenuProps=function(){var n=this.state,t=n.submenuTarget,i=n.expandedMenuItemKey,d=this._findItemByKey(i),c=null,u=this.props.target;if(d&&(c={items:jv(d,{target:u}),target:t,onDismiss:this._onSubMenuDismiss,isSubMenu:!0,id:this.state.subMenuId,shouldFocusOnMount:!0,shouldFocusOnContainer:this.state.expandedByMouseClick,directionalHint:At(this.props.theme)?Ot.leftTopEdge:Ot.rightTopEdge,className:this.props.className,gapSpace:0,isBeakVisible:!1},d.subMenuProps&&qa(c,d.subMenuProps),d.preferMenuTargetAsEventTarget)){var h=d.onItemClick;c.onItemClick=Ib(h,u)}return c},o.prototype._findItemByKey=function(n){var t=this.props.items;return this._findItemByKeyFromItems(n,t)},o.prototype._findItemByKeyFromItems=function(n,t){for(var i=0,d=t;i<d.length;i++){var c=d[i];if(c.itemType===tr.Section&&c.sectionProps){var u=this._findItemByKeyFromItems(n,c.sectionProps.items);if(u)return u}else if(c.key&&c.key===n)return c}},o.prototype._setTargetWindowAndElement=function(n){var t=this._host;if(n)if(typeof n=="string"){var i=yn(t);this._target=i?i.querySelector(n):null,this._targetWindow=nt(t)}else if(n.stopPropagation)this._targetWindow=nt(n.target),this._target=n;else if((n.left!==void 0||n.x!==void 0)&&(n.top!==void 0||n.y!==void 0))this._targetWindow=nt(t),this._target=n;else if(n.current!==void 0)this._target=n.current,this._targetWindow=nt(this._target);else{var d=n;this._targetWindow=nt(d),this._target=n}else this._targetWindow=nt(t)},o.defaultProps={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:Ot.bottomAutoEdge,beakWidth:16},o=yo([uh],o),o})(M.Component);function Ib(s,o){return s&&function(n,t){return Tb(n,o),s(n,t)}}function Tb(s,o){s&&o&&(s.persist(),o instanceof Event?s.target=o.target:o instanceof Element&&(s.target=o))}var KL={root:"ms-ContextualMenu",container:"ms-ContextualMenu-container",list:"ms-ContextualMenu-list",header:"ms-ContextualMenu-header",title:"ms-ContextualMenu-title",isopen:"is-open"},qL=function(s){var o=s.className,n=s.theme,t=at(KL,n),i=n.fonts,d=n.semanticColors,c=n.effects;return{root:[n.fonts.medium,t.root,t.isopen,{backgroundColor:d.menuBackground,minWidth:"180px"},o],container:[t.container,{selectors:{":focus":{outline:0}}}],list:[t.list,t.isopen,{listStyleType:"none",margin:"0",padding:"0"}],header:[t.header,i.small,{fontWeight:Lt.semibold,color:d.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:Ka,lineHeight:Ka,cursor:"default",padding:"0px 6px",userSelect:"none",textAlign:"left"}],title:[t.title,{fontSize:i.mediumPlus.fontSize,paddingRight:"14px",paddingLeft:"14px",paddingBottom:"5px",paddingTop:"5px",backgroundColor:d.menuItemBackgroundPressed}],subComponentStyles:{callout:{root:{boxShadow:c.elevation8}},menuItem:{}}}};function Ev(s){return M.createElement(Ab,N({},s))}var Ab=Ze($L,qL,function(s){return{onRenderSubMenu:s.onRenderSubMenu?Ns(s.onRenderSubMenu,Ev):Ev}},{scope:"ContextualMenu"}),ky=Ab,Ur={msButton:"ms-Button",msButtonHasMenu:"ms-Button--hasMenu",msButtonIcon:"ms-Button-icon",msButtonMenuIcon:"ms-Button-menuIcon",msButtonLabel:"ms-Button-label",msButtonDescription:"ms-Button-description",msButtonScreenReaderText:"ms-Button-screenReaderText",msButtonFlexContainer:"ms-Button-flexContainer",msButtonTextContainer:"ms-Button-textContainer"},JL=Et(function(s,o,n,t,i,d,c,u,h,g,_){var m,x,y=at(Ur,s||{}),v=g&&!_;return tl({root:[y.msButton,o.root,t,h&&["is-checked",o.rootChecked],v&&["is-expanded",o.rootExpanded,{selectors:(m={},m[":hover ."+y.msButtonIcon]=o.iconExpandedHovered,m[":hover ."+y.msButtonMenuIcon]=o.menuIconExpandedHovered||o.rootExpandedHovered,m[":hover"]=o.rootExpandedHovered,m)}],u&&[Ur.msButtonHasMenu,o.rootHasMenu],c&&["is-disabled",o.rootDisabled],!c&&!v&&!h&&{selectors:(x={":hover":o.rootHovered},x[":hover ."+y.msButtonLabel]=o.labelHovered,x[":hover ."+y.msButtonIcon]=o.iconHovered,x[":hover ."+y.msButtonDescription]=o.descriptionHovered,x[":hover ."+y.msButtonMenuIcon]=o.menuIconHovered,x[":focus"]=o.rootFocused,x[":active"]=o.rootPressed,x[":active ."+y.msButtonIcon]=o.iconPressed,x[":active ."+y.msButtonDescription]=o.descriptionPressed,x[":active ."+y.msButtonMenuIcon]=o.menuIconPressed,x)},c&&h&&[o.rootCheckedDisabled],!c&&h&&{selectors:{":hover":o.rootCheckedHovered,":active":o.rootCheckedPressed}},n],flexContainer:[y.msButtonFlexContainer,o.flexContainer],textContainer:[y.msButtonTextContainer,o.textContainer],icon:[y.msButtonIcon,i,o.icon,v&&o.iconExpanded,h&&o.iconChecked,c&&o.iconDisabled],label:[y.msButtonLabel,o.label,h&&o.labelChecked,c&&o.labelDisabled],menuIcon:[y.msButtonMenuIcon,d,o.menuIcon,h&&o.menuIconChecked,c&&!_&&o.menuIconDisabled,!c&&!v&&!h&&{selectors:{":hover":o.menuIconHovered,":active":o.menuIconPressed}},v&&["is-expanded",o.menuIconExpanded]],description:[y.msButtonDescription,o.description,h&&o.descriptionChecked,c&&o.descriptionDisabled],screenReaderText:[y.msButtonScreenReaderText,o.screenReaderText]})}),ZL=Et(function(s,o,n,t,i){return{root:Ho(s.splitButtonMenuButton,n&&[s.splitButtonMenuButtonExpanded],o&&[s.splitButtonMenuButtonDisabled],t&&!o&&[s.splitButtonMenuButtonChecked],i&&!o&&[{selectors:{":focus":s.splitButtonMenuFocused}}]),splitButtonContainer:Ho(s.splitButtonContainer,!o&&t&&[s.splitButtonContainerChecked,{selectors:{":hover":s.splitButtonContainerCheckedHovered}}],!o&&!t&&[{selectors:{":hover":s.splitButtonContainerHovered,":focus":s.splitButtonContainerFocused}}],o&&s.splitButtonContainerDisabled),icon:Ho(s.splitButtonMenuIcon,o&&s.splitButtonMenuIconDisabled,!o&&i&&s.splitButtonMenuIcon),flexContainer:Ho(s.splitButtonFlexContainer),divider:Ho(s.splitButtonDivider,(i||o)&&s.splitButtonDividerDisabled)}}),XL=500,QL="BaseButton",fg=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._buttonElement=M.createRef(),t._splitButtonContainer=M.createRef(),t._mergedRef=Ky(),t._renderedVisibleMenu=!1,t._getMemoizedMenuButtonKeytipProps=Et(function(i){return N(N({},i),{hasMenu:!0})}),t._onRenderIcon=function(i,d){var c=t.props.iconProps;if(c&&(c.iconName!==void 0||c.imageProps)){var u=c.className,h=c.imageProps,g=ms(c,["className","imageProps"]);if(c.styles)return M.createElement(Ue,N({className:sn(t._classNames.icon,u),imageProps:h},g));if(c.iconName)return M.createElement(kt,N({className:sn(t._classNames.icon,u)},g));if(h)return M.createElement(tL,N({className:sn(t._classNames.icon,u),imageProps:h},g))}return null},t._onRenderTextContents=function(){var i=t.props,d=i.text,c=i.children,u=i.secondaryText,h=u===void 0?t.props.description:u,g=i.onRenderText,_=g===void 0?t._onRenderText:g,m=i.onRenderDescription,x=m===void 0?t._onRenderDescription:m;return d||typeof c=="string"||h?M.createElement("span",{className:t._classNames.textContainer},_(t.props,t._onRenderText),x(t.props,t._onRenderDescription)):[_(t.props,t._onRenderText),x(t.props,t._onRenderDescription)]},t._onRenderText=function(){var i=t.props.text,d=t.props.children;return i===void 0&&typeof d=="string"&&(i=d),t._hasText()?M.createElement("span",{key:t._labelId,className:t._classNames.label,id:t._labelId},i):null},t._onRenderChildren=function(){var i=t.props.children;return typeof i=="string"?null:i},t._onRenderDescription=function(i){var d=i.secondaryText,c=d===void 0?t.props.description:d;return c?M.createElement("span",{key:t._descriptionId,className:t._classNames.description,id:t._descriptionId},c):null},t._onRenderAriaDescription=function(){var i=t.props.ariaDescription;return i?M.createElement("span",{className:t._classNames.screenReaderText,id:t._ariaDescriptionId},i):null},t._onRenderMenuIcon=function(i){var d=t.props.menuIconProps;return M.createElement(kt,N({iconName:"ChevronDown"},d,{className:t._classNames.menuIcon}))},t._onRenderMenu=function(i){var d=t.props.menuAs?G0(t.props.menuAs,ky):ky;return M.createElement(d,N({},i))},t._onDismissMenu=function(i){var d=t.props.menuProps;d&&d.onDismiss&&d.onDismiss(i),(!i||!i.defaultPrevented)&&t._dismissMenu()},t._dismissMenu=function(){t._menuShouldFocusOnMount=void 0,t._menuShouldFocusOnContainer=void 0,t.setState({menuHidden:!0})},t._openMenu=function(i,d){d===void 0&&(d=!0),t.props.menuProps&&(t._menuShouldFocusOnContainer=i,t._menuShouldFocusOnMount=d,t._renderedVisibleMenu=!0,t.setState({menuHidden:!1}))},t._onToggleMenu=function(i){var d=!0;t.props.menuProps&&t.props.menuProps.shouldFocusOnMount===!1&&(d=!1),t.state.menuHidden?t._openMenu(i,d):t._dismissMenu()},t._onSplitContainerFocusCapture=function(i){var d=t._splitButtonContainer.current;!d||i.target&&Uy(i.target,d)||d.focus()},t._onSplitButtonPrimaryClick=function(i){t.state.menuHidden||t._dismissMenu(),!t._processingTouch&&t.props.onClick?t.props.onClick(i):t._processingTouch&&t._onMenuClick(i)},t._onKeyDown=function(i){t.props.disabled&&(i.which===ke.enter||i.which===ke.space)?(i.preventDefault(),i.stopPropagation()):t.props.disabled||(t.props.menuProps?t._onMenuKeyDown(i):t.props.onKeyDown!==void 0&&t.props.onKeyDown(i))},t._onKeyUp=function(i){!t.props.disabled&&t.props.onKeyUp!==void 0&&t.props.onKeyUp(i)},t._onKeyPress=function(i){!t.props.disabled&&t.props.onKeyPress!==void 0&&t.props.onKeyPress(i)},t._onMouseUp=function(i){!t.props.disabled&&t.props.onMouseUp!==void 0&&t.props.onMouseUp(i)},t._onMouseDown=function(i){!t.props.disabled&&t.props.onMouseDown!==void 0&&t.props.onMouseDown(i)},t._onClick=function(i){t.props.disabled||(t.props.menuProps?t._onMenuClick(i):t.props.onClick!==void 0&&t.props.onClick(i))},t._onSplitButtonContainerKeyDown=function(i){i.which===ke.enter||i.which===ke.space?t._buttonElement.current&&(t._buttonElement.current.click(),i.preventDefault(),i.stopPropagation()):t._onMenuKeyDown(i)},t._onMenuKeyDown=function(i){if(!t.props.disabled){t.props.onKeyDown&&t.props.onKeyDown(i);var d=i.which===ke.up,c=i.which===ke.down;if(!i.defaultPrevented&&t._isValidMenuOpenKey(i)){var u=t.props.onMenuClick;u&&u(i,t.props),t._onToggleMenu(!1),i.preventDefault(),i.stopPropagation()}if((i.which===ke.enter||i.which===ke.space)&&dd(!0,i.target),!(i.altKey||i.metaKey)&&(d||c)&&!t.state.menuHidden&&t.props.menuProps){var h=t._menuShouldFocusOnMount!==void 0?t._menuShouldFocusOnMount:t.props.menuProps.shouldFocusOnMount;h||(i.preventDefault(),i.stopPropagation(),t._menuShouldFocusOnMount=!0,t.forceUpdate())}}},t._onTouchStart=function(){t._isSplitButton&&t._splitButtonContainer.current&&!("onpointerdown"in t._splitButtonContainer.current)&&t._handleTouchAndPointerEvent()},t._onMenuClick=function(i){var d=t.props.onMenuClick;if(d&&d(i,t.props),!i.defaultPrevented){var c=i.nativeEvent.detail!==0||i.nativeEvent.pointerType==="mouse";t._onToggleMenu(c),i.preventDefault(),i.stopPropagation()}},St(t),t._async=new Wn(t),t._events=new Yt(t),H0(QL,n,["menuProps","onClick"],"split",t.props.split),t._labelId=zt(),t._descriptionId=zt(),t._ariaDescriptionId=zt(),t.state={menuHidden:!0},t}return Object.defineProperty(o.prototype,"_isSplitButton",{get:function(){return!!this.props.menuProps&&!!this.props.onClick&&this.props.split===!0},enumerable:!0,configurable:!0}),o.prototype.render=function(){var n,t=this.props,i=t.ariaDescription,d=t.ariaLabel,c=t.ariaHidden,u=t.className,h=t.disabled,g=t.allowDisabledFocus,_=t.primaryDisabled,m=t.secondaryText,x=m===void 0?this.props.description:m,y=t.href,v=t.iconProps,b=t.menuIconProps,C=t.styles,k=t.checked,L=t.variantClassName,I=t.theme,A=t.toggle,Y=t.getClassNames,P=t.role,T=this.state.menuHidden,F=h||_;this._classNames=Y?Y(I,u,L,v&&v.className,b&&b.className,F,k,!T,!!this.props.menuProps,this.props.split,!!g):JL(I,C,u,L,v&&v.className,b&&b.className,F,!!this.props.menuProps,k,!T,this.props.split);var H=this,W=H._ariaDescriptionId,K=H._labelId,Z=H._descriptionId,Q=!F&&!!y,B=Q?"a":"button",R=pt(qa(Q?{}:{type:"button"},this.props.rootProps,this.props),Q?$y:Xa,["disabled"]),X=d||R["aria-label"],$=void 0;i?$=W:x&&this.props.onRenderDescription!==md?$=Z:R["aria-describedby"]&&($=R["aria-describedby"]);var ie=void 0;X||(R["aria-labelledby"]?ie=R["aria-labelledby"]:$&&(ie=this._hasText()?K:void 0));var le=!(this.props["data-is-focusable"]===!1||h&&!g||this._isSplitButton),V=P==="menuitemcheckbox"||P==="checkbox",z=V||A===!0?!!k:void 0,J=qa(R,(n={className:this._classNames.root,ref:this._mergedRef(this.props.elementRef,this._buttonElement),disabled:F&&!g,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onClick:this._onClick,"aria-label":X,"aria-labelledby":ie,"aria-describedby":$,"aria-disabled":F,"data-is-focusable":le},n[V?"aria-checked":"aria-pressed"]=z,n));return c&&(J["aria-hidden"]=!0),this._isSplitButton?this._onRenderSplitButtonContent(B,J):(this.props.menuProps&&qa(J,{"aria-expanded":!T,"aria-owns":T?null:this._labelId+"-menu","aria-haspopup":!0}),this._onRenderContent(B,J))},o.prototype.componentDidMount=function(){this._isSplitButton&&this._splitButtonContainer.current&&("onpointerdown"in this._splitButtonContainer.current&&this._events.on(this._splitButtonContainer.current,"pointerdown",this._onPointerDown,!0),"onpointerup"in this._splitButtonContainer.current&&this.props.onPointerUp&&this._events.on(this._splitButtonContainer.current,"pointerup",this.props.onPointerUp,!0))},o.prototype.componentDidUpdate=function(n,t){this.props.onAfterMenuDismiss&&!t.menuHidden&&this.state.menuHidden&&this.props.onAfterMenuDismiss()},o.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},o.prototype.focus=function(){this._isSplitButton&&this._splitButtonContainer.current?(dd(!0),this._splitButtonContainer.current.focus()):this._buttonElement.current&&(dd(!0),this._buttonElement.current.focus())},o.prototype.dismissMenu=function(){this._dismissMenu()},o.prototype.openMenu=function(n,t){this._openMenu(n,t)},o.prototype._onRenderContent=function(n,t){var i=this,d=this.props,c=n,u=d.menuIconProps,h=d.menuProps,g=d.onRenderIcon,_=g===void 0?this._onRenderIcon:g,m=d.onRenderAriaDescription,x=m===void 0?this._onRenderAriaDescription:m,y=d.onRenderChildren,v=y===void 0?this._onRenderChildren:y,b=d.onRenderMenu,C=b===void 0?this._onRenderMenu:b,k=d.onRenderMenuIcon,L=k===void 0?this._onRenderMenuIcon:k,I=d.disabled,A=d.keytipProps;A&&h&&(A=this._getMemoizedMenuButtonKeytipProps(A));var Y=function(T){return M.createElement(c,N({},t,T),M.createElement("span",{className:i._classNames.flexContainer,"data-automationid":"splitbuttonprimary"},_(d,i._onRenderIcon),i._onRenderTextContents(),x(d,i._onRenderAriaDescription),v(d,i._onRenderChildren),!i._isSplitButton&&(h||u||i.props.onRenderMenuIcon)&&L(i.props,i._onRenderMenuIcon),h&&!h.doNotLayer&&i._shouldRenderMenu()&&C(i._getMenuProps(h),i._onRenderMenu)))},P=A?M.createElement(ra,{keytipProps:this._isSplitButton?void 0:A,ariaDescribedBy:t["aria-describedby"],disabled:I},function(T){return Y(T)}):Y();return h&&h.doNotLayer?M.createElement("span",{style:{display:"inline-block"}},P,this._shouldRenderMenu()&&C(this._getMenuProps(h),this._onRenderMenu)):M.createElement(M.Fragment,null,P,M.createElement(nu,null))},o.prototype._shouldRenderMenu=function(){var n=this.state.menuHidden,t=this.props,i=t.persistMenu,d=t.renderPersistedMenuHiddenOnMount;if(n){if(i&&(this._renderedVisibleMenu||d))return!0}else return!0;return!1},o.prototype._hasText=function(){return this.props.text!==null&&(this.props.text!==void 0||typeof this.props.children=="string")},o.prototype._getMenuProps=function(n){var t=this.props.persistMenu,i=this.state.menuHidden;return!n.ariaLabel&&!n.labelElementId&&this._hasText()&&(n=N(N({},n),{labelElementId:this._labelId})),N(N({id:this._labelId+"-menu",directionalHint:Ot.bottomLeftEdge},n),{shouldFocusOnContainer:this._menuShouldFocusOnContainer,shouldFocusOnMount:this._menuShouldFocusOnMount,hidden:t?i:void 0,className:sn("ms-BaseButton-menuhost",n.className),target:this._isSplitButton?this._splitButtonContainer.current:this._buttonElement.current,onDismiss:this._onDismissMenu})},o.prototype._onRenderSplitButtonContent=function(n,t){var i=this,d=this.props,c=d.styles,u=c===void 0?{}:c,h=d.disabled,g=d.allowDisabledFocus,_=d.checked,m=d.getSplitButtonClassNames,x=d.primaryDisabled,y=d.menuProps,v=d.toggle,b=d.role,C=d.primaryActionButtonProps,k=this.props.keytipProps,L=this.state.menuHidden,I=m?m(!!h,!L,!!_,!!g):u&&ZL(u,!!h,!L,!!_,!!x);qa(t,{onClick:void 0,onPointerDown:void 0,onPointerUp:void 0,tabIndex:-1,"data-is-focusable":!1}),k&&y&&(k=this._getMemoizedMenuButtonKeytipProps(k));var A=pt(t,[],["disabled"]);C&&qa(t,C);var Y=function(P){return M.createElement("div",N({},A,{"data-ktp-target":P?P["data-ktp-target"]:void 0,role:b||"button","aria-disabled":h,"aria-haspopup":!0,"aria-expanded":!L,"aria-pressed":v?!!_:void 0,"aria-describedby":Za(t["aria-describedby"],P?P["aria-describedby"]:void 0),className:I&&I.splitButtonContainer,onKeyDown:i._onSplitButtonContainerKeyDown,onTouchStart:i._onTouchStart,ref:i._splitButtonContainer,"data-is-focusable":!0,onClick:!h&&!x?i._onSplitButtonPrimaryClick:void 0,tabIndex:!h&&!x||g?0:void 0,"aria-roledescription":t["aria-roledescription"],onFocusCapture:i._onSplitContainerFocusCapture}),M.createElement("span",{style:{display:"flex"}},i._onRenderContent(n,t),i._onRenderSplitButtonMenuButton(I,P),i._onRenderSplitButtonDivider(I)))};return k?M.createElement(ra,{keytipProps:k,disabled:h},function(P){return Y(P)}):Y()},o.prototype._onRenderSplitButtonDivider=function(n){if(n&&n.divider){var t=function(i){i.stopPropagation()};return M.createElement("span",{className:n.divider,"aria-hidden":!0,onClick:t})}return null},o.prototype._onRenderSplitButtonMenuButton=function(n,t){var i=this.props,d=i.allowDisabledFocus,c=i.checked,u=i.disabled,h=i.splitButtonMenuProps,g=i.splitButtonAriaLabel,_=i.primaryDisabled,m=this.state.menuHidden,x=this.props.menuIconProps;x===void 0&&(x={iconName:"ChevronDown"});var y=N(N({},h),{styles:n,checked:c,disabled:u,allowDisabledFocus:d,onClick:this._onMenuClick,menuProps:void 0,iconProps:N(N({},x),{className:this._classNames.menuIcon}),ariaLabel:g,"aria-haspopup":!0,"aria-expanded":!m,"data-is-focusable":!1});return M.createElement(o,N({},y,{"data-ktp-execute-target":t&&t["data-ktp-execute-target"],onMouseDown:this._onMouseDown,tabIndex:_&&!d?0:-1}))},o.prototype._onPointerDown=function(n){var t=this.props.onPointerDown;t&&t(n),n.pointerType==="touch"&&(this._handleTouchAndPointerEvent(),n.preventDefault(),n.stopImmediatePropagation())},o.prototype._handleTouchAndPointerEvent=function(){var n=this;this._lastTouchTimeoutId!==void 0&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){n._processingTouch=!1,n._lastTouchTimeoutId=void 0,n.focus()},XL)},o.prototype._isValidMenuOpenKey=function(n){return this.props.menuTriggerKeyCode?n.which===this.props.menuTriggerKeyCode:this.props.menuProps?n.which===ke.down&&(n.altKey||n.metaKey):!1},o.defaultProps={baseClassName:"ms-Button",styles:{},split:!1},o})(M.Component),Dv={outline:0},Iv=function(s){return{fontSize:s,margin:"0 4px",height:"16px",lineHeight:"16px",textAlign:"center",flexShrink:0}},gg=Et(function(s){var o,n,t=s.semanticColors,i=s.effects,d=s.fonts,c=t.buttonBorder,u=t.disabledBackground,h=t.disabledText,g={left:-2,top:-2,bottom:-2,right:-2,outlineColor:"ButtonText"};return{root:[On(s,{inset:1,highContrastStyle:g,borderColor:"transparent"}),s.fonts.medium,{boxSizing:"border-box",border:"1px solid "+c,userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",padding:"0 16px",borderRadius:i.roundedCorner2,selectors:{":active > span":{position:"relative",left:0,top:0}}}],rootDisabled:[On(s,{inset:1,highContrastStyle:g,borderColor:"transparent"}),{backgroundColor:u,borderColor:u,color:h,cursor:"default",selectors:{":hover":Dv,":focus":Dv}}],iconDisabled:{color:h,selectors:(o={},o[_e]={color:"GrayText"},o)},menuIconDisabled:{color:h,selectors:(n={},n[_e]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:Iv(d.mediumPlus.fontSize),menuIcon:Iv(d.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:wd}}),nw=Et(function(s,o){var n,t,i,d,c,u,h,g,_,m,x,y,v,b=s.effects,C=s.palette,k=s.semanticColors,L={left:-2,top:-2,bottom:-2,right:-2,border:"none"},I={position:"absolute",width:1,right:31,top:8,bottom:8},A={splitButtonContainer:[On(s,{highContrastStyle:L,inset:2}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",selectors:(n={},n[_e]=N({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},bt()),n)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(t={},t[_e]={border:"1px solid WindowText",borderLeftWidth:"0"},t)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(i={},i[_e]={color:"Window",backgroundColor:"Highlight"},i)},".ms-Button.is-disabled":{color:k.buttonTextDisabled,selectors:(d={},d[_e]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},d)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(c={},c[_e]=N({color:"Window",backgroundColor:"WindowText"},bt()),c)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(u={},u[_e]=N({color:"Window",backgroundColor:"WindowText"},bt()),u)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(h={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:b.roundedCorner2,borderBottomRightRadius:b.roundedCorner2,border:"1px solid "+C.neutralSecondaryAlt,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},h[_e]={".ms-Button-menuIcon":{color:"WindowText"}},h),splitButtonDivider:N(N({},I),{selectors:(g={},g[_e]={backgroundColor:"WindowText"},g)}),splitButtonDividerDisabled:N(N({},I),{selectors:(_={},_[_e]={backgroundColor:"GrayText"},_)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(m={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(x={},x[_e]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},x)},".ms-Button-menuIcon":{selectors:(y={},y[_e]={color:"GrayText"},y)}},m[_e]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},m)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(v={},v[_e]=N({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},bt()),v)},splitButtonMenuFocused:N({},On(s,{highContrastStyle:L,inset:2}))};return Vo(A,o)}),Pb=function(){return{position:"absolute",width:1,right:31,top:8,bottom:8}};function e6(s){var o,n,t,i,d,c=s.semanticColors,u=s.palette,h=c.buttonBackground,g=c.buttonBackgroundPressed,_=c.buttonBackgroundHovered,m=c.buttonBackgroundDisabled,x=c.buttonText,y=c.buttonTextHovered,v=c.buttonTextDisabled,b=c.buttonTextChecked,C=c.buttonTextCheckedHovered;return{root:{backgroundColor:h,color:x},rootHovered:{backgroundColor:_,color:y,selectors:(o={},o[_e]={borderColor:"Highlight",color:"Highlight"},o)},rootPressed:{backgroundColor:g,color:b},rootExpanded:{backgroundColor:g,color:b},rootChecked:{backgroundColor:g,color:b},rootCheckedHovered:{backgroundColor:g,color:C},rootDisabled:{color:v,backgroundColor:m,selectors:(n={},n[_e]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},n)},splitButtonContainer:{selectors:(t={},t[_e]={border:"none"},t)},splitButtonMenuButton:{color:u.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:u.neutralLight,selectors:(i={},i[_e]={color:"Highlight"},i)}}},splitButtonMenuButtonDisabled:{backgroundColor:c.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:c.buttonBackgroundDisabled}}},splitButtonDivider:N(N({},Pb()),{backgroundColor:u.neutralTertiaryAlt,selectors:(d={},d[_e]={backgroundColor:"WindowText"},d)}),splitButtonDividerDisabled:{backgroundColor:s.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:u.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:u.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:u.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:u.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:c.buttonText},splitButtonMenuIconDisabled:{color:c.buttonTextDisabled}}}function t6(s){var o,n,t,i,d,c,u,h,g,_=s.palette,m=s.semanticColors;return{root:{backgroundColor:m.primaryButtonBackground,border:"1px solid "+m.primaryButtonBackground,color:m.primaryButtonText,selectors:(o={},o[_e]=N({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},bt()),o["."+fn+" &:focus"]={selectors:{":after":{border:"none",outlineColor:_.white}}},o)},rootHovered:{backgroundColor:m.primaryButtonBackgroundHovered,border:"1px solid "+m.primaryButtonBackgroundHovered,color:m.primaryButtonTextHovered,selectors:(n={},n[_e]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},n)},rootPressed:{backgroundColor:m.primaryButtonBackgroundPressed,border:"1px solid "+m.primaryButtonBackgroundPressed,color:m.primaryButtonTextPressed,selectors:(t={},t[_e]=N({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},bt()),t)},rootExpanded:{backgroundColor:m.primaryButtonBackgroundPressed,color:m.primaryButtonTextPressed},rootChecked:{backgroundColor:m.primaryButtonBackgroundPressed,color:m.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:m.primaryButtonBackgroundPressed,color:m.primaryButtonTextPressed},rootDisabled:{color:m.primaryButtonTextDisabled,backgroundColor:m.primaryButtonBackgroundDisabled,selectors:(i={},i[_e]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)},splitButtonContainer:{selectors:(d={},d[_e]={border:"none"},d)},splitButtonDivider:N(N({},Pb()),{backgroundColor:_.white,selectors:(c={},c[_e]={backgroundColor:"Window"},c)}),splitButtonMenuButton:{backgroundColor:m.primaryButtonBackground,color:m.primaryButtonText,selectors:(u={},u[_e]={backgroundColor:"WindowText"},u[":hover"]={backgroundColor:m.primaryButtonBackgroundHovered,selectors:(h={},h[_e]={color:"Highlight"},h)},u)},splitButtonMenuButtonDisabled:{backgroundColor:m.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:m.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:m.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:m.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:m.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:m.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:m.primaryButtonText},splitButtonMenuIconDisabled:{color:_.neutralTertiary,selectors:(g={},g[_e]={color:"GrayText"},g)}}}var n6="32px",r6="80px",s6=Et(function(s,o,n){var t=gg(s),i=nw(s),d={root:{minWidth:r6,height:n6},label:{fontWeight:Lt.semibold}};return Vo(t,d,n?t6(s):e6(s),i,o)}),et=(function(s){Ne(o,s);function o(){return s!==null&&s.apply(this,arguments)||this}return o.prototype.render=function(){var n=this.props,t=n.primary,i=t===void 0?!1:t,d=n.styles,c=n.theme;return M.createElement(fg,N({},this.props,{variantClassName:i?"ms-Button--primary":"ms-Button--default",styles:s6(c,d,i),onRenderDescription:md}))},o=yo([tu("DefaultButton",["theme","styles"],!0)],o),o})(M.Component),o6="40px",i6="0 4px",a6=Et(function(s,o){var n,t=gg(s),i={root:{padding:i6,height:o6,color:s.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent"},rootHovered:{color:s.palette.themePrimary,selectors:(n={},n[_e]={borderColor:"Highlight",color:"Highlight"},n)},iconHovered:{color:s.palette.themePrimary},rootPressed:{color:s.palette.black},rootExpanded:{color:s.palette.themePrimary},iconPressed:{color:s.palette.themeDarker},rootDisabled:{color:s.palette.neutralTertiary,backgroundColor:"transparent",borderColor:"transparent"},rootChecked:{color:s.palette.black},iconChecked:{color:s.palette.themeDarker},flexContainer:{justifyContent:"flex-start"},icon:{color:s.palette.themeDarkAlt},iconDisabled:{color:"inherit"},menuIcon:{color:s.palette.neutralSecondary},textContainer:{flexGrow:0}};return Vo(t,i,o)}),el=(function(s){Ne(o,s);function o(){return s!==null&&s.apply(this,arguments)||this}return o.prototype.render=function(){var n=this.props,t=n.styles,i=n.theme;return M.createElement(fg,N({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:a6(i,t),onRenderDescription:md}))},o=yo([tu("ActionButton",["theme","styles"],!0)],o),o})(M.Component),l6=Et(function(s,o){var n,t=gg(s),i=nw(s),d=s.palette,c=s.semanticColors,u={root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:c.link},rootHovered:{color:d.themeDarkAlt,backgroundColor:d.neutralLighter,selectors:(n={},n[_e]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:d.themeDark,backgroundColor:d.neutralLight},rootExpanded:{color:d.themeDark,backgroundColor:d.neutralLight},rootChecked:{color:d.themeDark,backgroundColor:d.neutralLight},rootCheckedHovered:{color:d.themeDark,backgroundColor:d.neutralQuaternaryAlt},rootDisabled:{color:d.neutralTertiaryAlt}};return Vo(t,u,i,o)}),Ke=(function(s){Ne(o,s);function o(){return s!==null&&s.apply(this,arguments)||this}return o.prototype.render=function(){var n=this.props,t=n.styles,i=n.theme;return M.createElement(fg,N({},this.props,{variantClassName:"ms-Button--icon",styles:l6(i,t),onRenderText:md,onRenderDescription:md}))},o=yo([tu("IconButton",["theme","styles"],!0)],o),o})(M.Component),rt=(function(s){Ne(o,s);function o(){return s!==null&&s.apply(this,arguments)||this}return o.prototype.render=function(){return M.createElement(et,N({},this.props,{primary:!0,onRenderDescription:md}))},o=yo([tu("PrimaryButton",["theme","styles"],!0)],o),o})(M.Component),d6=Et(function(s,o,n,t){var i,d,c,u,h,g,_,m,x,y,v,b,C,k,L=gg(s),I=nw(s),A=s.palette,Y=s.semanticColors,P={left:4,top:4,bottom:4,right:4,border:"none"},T={root:[On(s,{inset:2,highContrastStyle:P,borderColor:"transparent"}),s.fonts.medium,{minWidth:"40px",backgroundColor:A.white,color:A.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0,selectors:(i={},i[_e]={border:"none"},i)}],rootHovered:{backgroundColor:A.neutralLighter,color:A.neutralDark,selectors:(d={},d[_e]={color:"Highlight"},d["."+Ur.msButtonIcon]={color:A.themeDarkAlt},d["."+Ur.msButtonMenuIcon]={color:A.neutralPrimary},d)},rootPressed:{backgroundColor:A.neutralLight,color:A.neutralDark,selectors:(c={},c["."+Ur.msButtonIcon]={color:A.themeDark},c["."+Ur.msButtonMenuIcon]={color:A.neutralPrimary},c)},rootChecked:{backgroundColor:A.neutralLight,color:A.neutralDark,selectors:(u={},u["."+Ur.msButtonIcon]={color:A.themeDark},u["."+Ur.msButtonMenuIcon]={color:A.neutralPrimary},u)},rootCheckedHovered:{backgroundColor:A.neutralQuaternaryAlt,selectors:(h={},h["."+Ur.msButtonIcon]={color:A.themeDark},h["."+Ur.msButtonMenuIcon]={color:A.neutralPrimary},h)},rootExpanded:{backgroundColor:A.neutralLight,color:A.neutralDark,selectors:(g={},g["."+Ur.msButtonIcon]={color:A.themeDark},g["."+Ur.msButtonMenuIcon]={color:A.neutralPrimary},g)},rootExpandedHovered:{backgroundColor:A.neutralQuaternaryAlt},rootDisabled:{backgroundColor:A.white,selectors:(_={},_["."+Ur.msButtonIcon]={color:Y.disabledBodySubtext,selectors:(m={},m[_e]=N({color:"GrayText"},bt()),m)},_[_e]=N({color:"GrayText",backgroundColor:"Window"},bt()),_)},splitButtonContainer:{height:"100%",selectors:(x={},x[_e]={border:"none"},x)},splitButtonDividerDisabled:{selectors:(y={},y[_e]={backgroundColor:"Window"},y)},splitButtonDivider:{backgroundColor:A.neutralTertiaryAlt},splitButtonMenuButton:{backgroundColor:A.white,border:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:A.neutralSecondary,selectors:{":hover":{backgroundColor:A.neutralLighter,color:A.neutralDark,selectors:(v={},v[_e]={color:"Highlight"},v["."+Ur.msButtonIcon]={color:A.neutralPrimary},v)},":active":{backgroundColor:A.neutralLight,selectors:(b={},b["."+Ur.msButtonIcon]={color:A.neutralPrimary},b)}}},splitButtonMenuButtonDisabled:{backgroundColor:A.white,selectors:(C={},C[_e]=N({color:"GrayText",border:"none",backgroundColor:"Window"},bt()),C)},splitButtonMenuButtonChecked:{backgroundColor:A.neutralLight,color:A.neutralDark,selectors:{":hover":{backgroundColor:A.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:A.neutralLight,color:A.black,selectors:{":hover":{backgroundColor:A.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:A.neutralPrimary},splitButtonMenuIconDisabled:{color:A.neutralTertiary},label:{fontWeight:"normal"},icon:{color:A.themePrimary},menuIcon:(k={color:A.neutralSecondary},k[_e]={color:"GrayText"},k)};return Vo(L,I,T,o)}),Dn=(function(s){Ne(o,s);function o(){return s!==null&&s.apply(this,arguments)||this}return o.prototype.render=function(){var n=this.props,t=n.styles,i=n.theme;return M.createElement(fg,N({},this.props,{variantClassName:"ms-Button--commandBar",styles:d6(i,t),onRenderDescription:md}))},o=yo([tu("CommandBarButton",["theme","styles"],!0)],o),o})(M.Component),c6=el,u6=Je(),Rb=function(s){var o=s.checked,n=o===void 0?!1:o,t=s.className,i=s.theme,d=s.styles,c=s.useFastIcons,u=c===void 0?!0:c,h=u6(d,{theme:i,className:t,checked:n}),g=u?kt:Ue;return M.createElement("div",{className:h.root},M.createElement(g,{iconName:"CircleRing",className:h.circle}),M.createElement(g,{iconName:"StatusCircleCheckmark",className:h.check}))};Rb.displayName="CheckBase";var Fb={root:"ms-Check",circle:"ms-Check-circle",check:"ms-Check-check",checkHost:"ms-Check-checkHost"},p6=function(s){var o,n,t,i,d,c=s.height,u=c===void 0?s.checkBoxHeight||"18px":c,h=s.checked,g=s.className,_=s.theme,m=_.palette,x=_.semanticColors,y=_.fonts,v=At(_),b=at(Fb,_),C={fontSize:u,position:"absolute",left:0,top:0,width:u,height:u,textAlign:"center",verticalAlign:"middle"};return{root:[b.root,y.medium,{lineHeight:"1",width:u,height:u,verticalAlign:"top",position:"relative",userSelect:"none",selectors:(o={":before":{content:'""',position:"absolute",top:"1px",right:"1px",bottom:"1px",left:"1px",borderRadius:"50%",opacity:1,background:x.bodyBackground}},o["."+b.checkHost+":hover &, ."+b.checkHost+":focus &, &:hover, &:focus"]={opacity:1},o)},h&&["is-checked",{selectors:{":before":{background:m.themePrimary,opacity:1,selectors:(n={},n[_e]={background:"Window"},n)}}}],g],circle:[b.circle,C,{color:m.neutralSecondary,selectors:(t={},t[_e]={color:"WindowText"},t)},h&&{color:m.white}],check:[b.check,C,{opacity:0,color:m.neutralSecondary,fontSize:Mr.medium,left:v?"-0.5px":".5px",selectors:(i={":hover":{opacity:1}},i[_e]=N({},bt()),i)},h&&{opacity:1,color:m.white,fontWeight:900,selectors:(d={},d[_e]={border:"none",color:"WindowText"},d)}],checkHost:b.checkHost}},_g=Ze(Rb,p6,void 0,{scope:"Check"},!0),h6=Je(),m6=(function(s){Ne(o,s);function o(n,t){var i=s.call(this,n,t)||this;return i._checkBox=M.createRef(),i._renderContent=function(d,c,u){u===void 0&&(u={});var h=i.props,g=h.disabled,_=h.inputProps,m=h.name,x=h.ariaLabel,y=h.ariaLabelledBy,v=h.ariaDescribedBy,b=h.onRenderLabel,C=b===void 0?i._onRenderLabel:b,k=h.checkmarkIconProps,L=h.ariaPositionInSet,I=h.ariaSetSize,A=h.title,Y=h.label;return M.createElement("div",{className:i._classNames.root,title:A},M.createElement(nu,null),M.createElement("input",N({type:"checkbox"},_,{"data-ktp-execute-target":u["data-ktp-execute-target"],checked:d,disabled:g,className:i._classNames.input,ref:i._checkBox,name:m,id:i._id,title:A,onChange:i._onChange,onFocus:i._onFocus,onBlur:i._onBlur,"aria-disabled":g,"aria-label":x||Y,"aria-labelledby":y,"aria-describedby":Za(v,u["aria-describedby"]),"aria-posinset":L,"aria-setsize":I,"aria-checked":c?"mixed":d?"true":"false"})),M.createElement("label",{className:i._classNames.label,htmlFor:i._id},M.createElement("div",{className:i._classNames.checkbox,"data-ktp-target":u["data-ktp-target"]},M.createElement(Ue,N({iconName:"CheckMark"},k,{className:i._classNames.checkmark}))),C(i.props,i._onRenderLabel)))},i._onFocus=function(d){var c=i.props.inputProps;c&&c.onFocus&&c.onFocus(d)},i._onBlur=function(d){var c=i.props.inputProps;c&&c.onBlur&&c.onBlur(d)},i._onChange=function(d){var c=i.props.onChange,u=i.state,h=u.isChecked,g=u.isIndeterminate;g?(c&&c(d,h),i.props.indeterminate===void 0&&i.setState({isIndeterminate:!1})):(c&&c(d,!h),i.props.checked===void 0&&i.setState({isChecked:!h}))},i._onRenderLabel=function(d){var c=d.label,u=d.title;return c?M.createElement("span",{"aria-hidden":"true",className:i._classNames.text,title:u},c):null},St(i),i._id=i.props.id||zt("checkbox-"),i.state={isChecked:!!(n.checked!==void 0?n.checked:n.defaultChecked),isIndeterminate:!!(n.indeterminate!==void 0?n.indeterminate:n.defaultIndeterminate)},i}return o.getDerivedStateFromProps=function(n,t){var i={};return n.indeterminate!==void 0&&(i.isIndeterminate=!!n.indeterminate),n.checked!==void 0&&(i.isChecked=!!n.checked),Object.keys(i).length?i:null},o.prototype.render=function(){var n=this,t=this.props,i=t.className,d=t.disabled,c=t.boxSide,u=t.theme,h=t.styles,g=t.onRenderLabel,_=g===void 0?this._onRenderLabel:g,m=t.keytipProps,x=this.state,y=x.isChecked,v=x.isIndeterminate;return this._classNames=h6(h,{theme:u,className:i,disabled:d,indeterminate:v,checked:y,reversed:c!=="start",isUsingCustomLabelRender:_!==this._onRenderLabel}),m?M.createElement(ra,{keytipProps:m,disabled:d},function(b){return n._renderContent(y,v,b)}):this._renderContent(y,v)},Object.defineProperty(o.prototype,"indeterminate",{get:function(){return!!this.state.isIndeterminate},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"checked",{get:function(){return!!this.state.isChecked},enumerable:!0,configurable:!0}),o.prototype.focus=function(){this._checkBox.current&&this._checkBox.current.focus()},o.defaultProps={boxSide:"start"},o})(M.Component),f6={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},Tv="20px",Av="200ms",Pv="cubic-bezier(.4, 0, .23, 1)",g6=function(s){var o,n,t,i,d,c,u,h,g,_,m,x,y,v,b,C,k,L,I=s.className,A=s.theme,Y=s.reversed,P=s.checked,T=s.disabled,F=s.isUsingCustomLabelRender,H=s.indeterminate,W=A.semanticColors,K=A.effects,Z=A.palette,Q=A.fonts,B=at(f6,A),R=W.inputForegroundChecked,X=Z.neutralSecondary,$=Z.neutralPrimary,ie=W.inputBackgroundChecked,le=W.inputBackgroundChecked,V=W.disabledBodySubtext,z=W.inputBorderHovered,J=W.inputBackgroundCheckedHovered,ee=W.inputBackgroundChecked,he=W.inputBackgroundCheckedHovered,te=W.inputBackgroundCheckedHovered,G=W.inputTextHovered,re=W.disabledBodySubtext,He=W.bodyText,Ge=W.disabledText,Ut=[(o={content:'""',borderRadius:K.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:T?V:ie,transitionProperty:"border-width, border, border-color",transitionDuration:Av,transitionTimingFunction:Pv},o[_e]={borderColor:"WindowText"},o)];return{root:[B.root,{position:"relative",display:"flex"},Y&&"reversed",P&&"is-checked",!T&&"is-enabled",T&&"is-disabled",!T&&[!P&&(n={},n[":hover ."+B.checkbox]=(t={borderColor:z},t[_e]={borderColor:"Highlight"},t),n[":focus ."+B.checkbox]={borderColor:z},n[":hover ."+B.checkmark]=(i={color:X,opacity:"1"},i[_e]={color:"Highlight"},i),n),P&&!H&&(d={},d[":hover ."+B.checkbox]={background:he,borderColor:te},d[":focus ."+B.checkbox]={background:he,borderColor:te},d[_e]=(c={},c[":hover ."+B.checkbox]={background:"Highlight",borderColor:"Highlight"},c[":focus ."+B.checkbox]={background:"Highlight"},c[":focus:hover ."+B.checkbox]={background:"Highlight"},c[":focus:hover ."+B.checkmark]={color:"Window"},c[":hover ."+B.checkmark]={color:"Window"},c),d),H&&(u={},u[":hover ."+B.checkbox+", :hover ."+B.checkbox+":after"]=(h={borderColor:J},h[_e]={borderColor:"WindowText"},h),u[":focus ."+B.checkbox]={borderColor:J},u[":hover ."+B.checkmark]={opacity:"0"},u),(g={},g[":hover ."+B.text+", :focus ."+B.text]=(_={color:G},_[_e]={color:T?"GrayText":"WindowText"},_),g)],I],input:(m={position:"absolute",background:"none",opacity:0},m["."+fn+" &:focus + label::before"]=(x={outline:"1px solid "+A.palette.neutralSecondary,outlineOffset:"2px"},x[_e]={outline:"1px solid WindowText"},x),m),label:[B.label,A.fonts.medium,{display:"flex",alignItems:F?"center":"flex-start",cursor:T?"default":"pointer",position:"relative",userSelect:"none"},Y&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[B.checkbox,(y={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:Tv,width:Tv,border:"1px solid "+$,borderRadius:K.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:Av,transitionTimingFunction:Pv,overflow:"hidden",":after":H?Ut:null},y[_e]=N({borderColor:"WindowText"},bt()),y),H&&{borderColor:ie},Y?{marginLeft:4}:{marginRight:4},!T&&!H&&P&&(v={background:ee,borderColor:le},v[_e]={background:"Highlight",borderColor:"Highlight"},v),T&&(b={borderColor:V},b[_e]={borderColor:"GrayText"},b),P&&T&&(C={background:re,borderColor:V},C[_e]={background:"Window"},C)],checkmark:[B.checkmark,(k={opacity:P?"1":"0",color:R},k[_e]=N({color:T?"GrayText":"Window"},bt()),k)],text:[B.text,(L={color:T?Ge:He,fontSize:Q.medium.fontSize,lineHeight:"20px"},L[_e]=N({color:T?"GrayText":"WindowText"},bt()),L),Y?{marginRight:4}:{marginLeft:4}]}},ce=Ze(m6,g6,void 0,{scope:"Checkbox"}),_6=Je({cacheSize:100}),y6=(function(s){Ne(o,s);function o(){return s!==null&&s.apply(this,arguments)||this}return o.prototype.render=function(){var n=this.props,t=n.as,i=t===void 0?"label":t,d=n.children,c=n.className,u=n.disabled,h=n.styles,g=n.required,_=n.theme,m=_6(h,{className:c,disabled:u,required:g,theme:_});return M.createElement(i,N({},pt(this.props,Yn),{className:m.root}),d)},o})(M.Component),w6=function(s){var o,n=s.theme,t=s.className,i=s.disabled,d=s.required,c=n.semanticColors,u=Lt.semibold,h=c.bodyText,g=c.disabledBodyText,_=c.errorText;return{root:["ms-Label",n.fonts.medium,{fontWeight:u,color:h,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},i&&{color:g,selectors:(o={},o[_e]=N({color:"GrayText"},bt()),o)},d&&{selectors:{"::after":{content:"' *'",color:_,paddingRight:12}}},t]}},fd=Ze(y6,w6,void 0,{scope:"Label"}),v6=Je(),Rv=71,x6=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._onChange=function(i){var d=t.props.onChange;d&&d(i,t.props)},t._onBlur=function(i){var d=t.props.onBlur;d&&d(i,t.props)},t._onFocus=function(i){var d=t.props.onFocus;d&&d(i,t.props)},t._onRenderField=function(i){var d=i.id,c=i.imageSrc,u=i.imageAlt,h=u===void 0?"":u,g=i.selectedImageSrc,_=i.iconProps,m=i.imageSize?i.imageSize:{width:32,height:32},x=i.onRenderLabel?Ns(i.onRenderLabel,t._onRenderLabel):t._onRenderLabel,y=x(i);return M.createElement("label",{htmlFor:d,className:t._classNames.field},c&&M.createElement("div",{className:t._classNames.innerField},M.createElement("div",{className:t._classNames.imageWrapper},M.createElement(Gp,{src:c,alt:h,width:m.width,height:m.height})),M.createElement("div",{className:t._classNames.selectedImageWrapper},M.createElement(Gp,{src:g,alt:h,width:m.width,height:m.height}))),_&&M.createElement("div",{className:t._classNames.innerField},M.createElement("div",{className:t._classNames.iconWrapper},M.createElement(Ue,N({},_)))),c||_?M.createElement("div",{className:t._classNames.labelWrapper},y):y)},t._onRenderLabel=function(i){return M.createElement("span",{id:i.labelId,className:"ms-ChoiceFieldLabel"},i.text)},St(t),t}return o.prototype.render=function(){var n=this.props,t=n.ariaLabel,i=n.focused,d=n.required,c=n.theme,u=n.iconProps,h=n.imageSrc,g=n.imageSize,_=n.disabled,m=n.checked,x=n.id,y=n.styles,v=n.name,b=n.onRenderField,C=b===void 0?this._onRenderField:b,k=ms(n,["ariaLabel","focused","required","theme","iconProps","imageSrc","imageSize","disabled","checked","id","styles","name","onRenderField"]);this._classNames=v6(y,{theme:c,hasIcon:!!u,hasImage:!!h,checked:m,disabled:_,imageIsLarge:!!h&&(g.width>Rv||g.height>Rv),imageSize:g,focused:i});var L=pt(k,ah),I=L.className,A=ms(L,["className"]);return M.createElement("div",{className:this._classNames.root},M.createElement("div",{className:this._classNames.choiceFieldWrapper},M.createElement("input",N({"aria-label":t,id:x,className:sn(this._classNames.input,I),type:"radio",name:v,disabled:_,checked:m,required:d},A,{onChange:this._onChange,onFocus:this._onFocus,onBlur:this._onBlur})),C(this.props,this._onRenderField)))},o.defaultProps={imageSize:{width:32,height:32}},o})(M.Component),b6={root:"ms-ChoiceField",choiceFieldWrapper:"ms-ChoiceField-wrapper",input:"ms-ChoiceField-input",field:"ms-ChoiceField-field",innerField:"ms-ChoiceField-innerField",imageWrapper:"ms-ChoiceField-imageWrapper",iconWrapper:"ms-ChoiceField-iconWrapper",labelWrapper:"ms-ChoiceField-labelWrapper",checked:"is-checked"},Nb=15,S6=Nb*2+2,B_=32,H_=20,Rf="200ms",Fv="cubic-bezier(.4, 0, .23, 1)",Qm=3,Nv=5;function C6(s,o){var n,t;return["is-inFocus",{selectors:(n={},n["."+fn+" &"]={position:"relative",outline:"transparent",selectors:{"::-moz-focus-inner":{border:0},":after":{content:'""',top:-2,right:-2,bottom:-2,left:-2,pointerEvents:"none",border:"1px solid "+s,position:"absolute",selectors:(t={},t[_e]={borderColor:"WindowText",borderWidth:o?1:2},t)}}},n)}]}function Ov(s,o,n){return[o,{paddingBottom:2,transitionProperty:"opacity",transitionDuration:Rf,transitionTimingFunction:"ease",selectors:{".ms-Image":{display:"inline-block",borderStyle:"none"}}},(n?!s:s)&&["is-hidden",{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",opacity:0}]]}var k6=function(s){var o,n,t,i,d,c=s.theme,u=s.hasIcon,h=s.hasImage,g=s.checked,_=s.disabled,m=s.imageIsLarge,x=s.focused,y=s.imageSize,v=c.palette,b=c.semanticColors,C=c.fonts,k=at(b6,c),L=v.neutralPrimary,I=b.inputBorderHovered,A=b.inputBackgroundChecked,Y=v.themeDark,P=b.disabledBodySubtext,T=b.bodyBackground,F=v.neutralSecondary,H=b.inputBackgroundChecked,W=v.themeDark,K=b.disabledBodySubtext,Z=v.neutralDark,Q=b.focusBorder,B=b.inputBorderHovered,R=b.inputBackgroundChecked,X=v.themeDark,$=v.neutralLighter,ie={selectors:{".ms-ChoiceFieldLabel":{color:Z},":before":{borderColor:g?Y:I},":after":[!u&&!h&&!g&&{content:'""',transitionProperty:"background-color",left:5,top:5,width:10,height:10,backgroundColor:F},g&&{borderColor:W}]}},le={borderColor:g?X:B,selectors:{":before":{opacity:1,borderColor:g?Y:I}}},V=[{content:'""',display:"inline-block",backgroundColor:T,borderWidth:1,borderStyle:"solid",borderColor:L,width:H_,height:H_,fontWeight:"normal",position:"absolute",top:0,left:0,boxSizing:"border-box",transitionProperty:"border-color",transitionDuration:Rf,transitionTimingFunction:Fv,borderRadius:"50%"},_&&{borderColor:P,selectors:(o={},o[_e]=N({borderColor:"GrayText",background:"Window"},bt()),o)},g&&{borderColor:_?P:A,selectors:(n={},n[_e]={borderColor:"Highlight",background:"Window",forcedColorAdjust:"none"},n)},(u||h)&&{top:Qm,right:Qm,left:"auto",opacity:g?1:0}],z=[{content:'""',width:0,height:0,borderRadius:"50%",position:"absolute",left:H_/2,right:0,transitionProperty:"border-width",transitionDuration:Rf,transitionTimingFunction:Fv,boxSizing:"border-box"},g&&{borderWidth:5,borderStyle:"solid",borderColor:_?K:H,left:5,top:5,width:10,height:10,selectors:(t={},t[_e]={borderColor:"Highlight",forcedColorAdjust:"none"},t)},g&&(u||h)&&{top:Qm+Nv,right:Qm+Nv,left:"auto"}];return{root:[k.root,c.fonts.medium,{display:"flex",alignItems:"center",boxSizing:"border-box",color:b.bodyText,minHeight:26,border:"none",position:"relative",marginTop:8,selectors:{".ms-ChoiceFieldLabel":{display:"inline-block"}}},!u&&!h&&{selectors:{".ms-ChoiceFieldLabel":{paddingLeft:"26px"}}},h&&"ms-ChoiceField--image",u&&"ms-ChoiceField--icon",(u||h)&&{display:"inline-flex",fontSize:0,margin:"0 4px 4px 0",paddingLeft:0,backgroundColor:$,height:"100%"}],choiceFieldWrapper:[k.choiceFieldWrapper,x&&C6(Q,u||h)],input:[k.input,{position:"absolute",opacity:0,top:0,right:0,width:"100%",height:"100%",margin:0},_&&"is-disabled"],field:[k.field,g&&k.checked,{display:"inline-block",cursor:"pointer",marginTop:0,position:"relative",verticalAlign:"top",userSelect:"none",minHeight:20,selectors:{":hover":!_&&ie,":focus":!_&&ie,":before":V,":after":z}},u&&"ms-ChoiceField--icon",h&&"ms-ChoiceField-field--image",(u||h)&&{boxSizing:"content-box",cursor:"pointer",paddingTop:22,margin:0,textAlign:"center",transitionProperty:"all",transitionDuration:Rf,transitionTimingFunction:"ease",border:"1px solid transparent",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column"},g&&{borderColor:R},(u||h)&&!_&&{selectors:{":hover":le,":focus":le}},_&&{cursor:"default",selectors:{".ms-ChoiceFieldLabel":{color:b.disabledBodyText,selectors:(i={},i[_e]=N({color:"GrayText"},bt()),i)}}},g&&_&&{borderColor:$}],innerField:[k.innerField,h&&{height:y.height,width:y.width},(u||h)&&{position:"relative",display:"inline-block",paddingLeft:30,paddingRight:30},(u||h)&&m&&{paddingLeft:24,paddingRight:24},(u||h)&&_&&{opacity:.25,selectors:(d={},d[_e]={color:"GrayText",opacity:1},d)}],imageWrapper:Ov(!1,k.imageWrapper,g),selectedImageWrapper:Ov(!0,k.imageWrapper,g),iconWrapper:[k.iconWrapper,{fontSize:B_,lineHeight:B_,height:B_}],labelWrapper:[k.labelWrapper,C.medium,(u||h)&&{display:"block",position:"relative",margin:"4px 8px 2px 8px",height:S6,lineHeight:Nb,maxWidth:y.width*2,overflow:"hidden",whiteSpace:"pre-wrap"}]}},M6=Ze(x6,k6,void 0,{scope:"ChoiceGroupOption"}),j6=Je(),L6=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;t._focusCallbacks={},t._changeCallbacks={},t._onBlur=function(h,g){t.setState({keyFocused:void 0})},St(t);var i=n.defaultSelectedKey,d=n.options,c=d===void 0?[]:d,u=!Yv(n)&&i!==void 0&&c.some(function(h){return h.key===i});return t.state={keyChecked:u?i:t._getKeyChecked(n)},t._id=zt("ChoiceGroup"),t._labelId=zt("ChoiceGroupLabel"),t}return Object.defineProperty(o.prototype,"checkedOption",{get:function(){var n=this,t=this.props.options,i=t===void 0?[]:t;return Qw(i,function(d){return d.key===n.state.keyChecked})},enumerable:!0,configurable:!0}),o.prototype.componentDidUpdate=function(n,t){if(n!==this.props){var i=this._getKeyChecked(this.props),d=this._getKeyChecked(n);i!==d&&this.setState({keyChecked:i})}},o.prototype.render=function(){var n=this,t=this.props,i=t.className,d=t.theme,c=t.styles,u=t.options,h=u===void 0?[]:u,g=t.label,_=t.required,m=t.disabled,x=t.name,y=this.state,v=y.keyChecked,b=y.keyFocused,C=pt(this.props,Yn,["onChange","className","required"]),k=j6(c,{theme:d,className:i,optionsContainIconOrImage:h.some(function(A){return!!(A.iconProps||A.imageSrc)})}),L=this._id+"-label",I=this.props.ariaLabelledBy||(g?L:this.props["aria-labelledby"]);return M.createElement("div",N({className:k.applicationRole},C),M.createElement("div",N({className:k.root,role:"radiogroup"},I&&{"aria-labelledby":I}),g&&M.createElement(fd,{className:k.label,required:_,id:L,disabled:m},g),M.createElement("div",{className:k.flexContainer},h.map(function(A){var Y=N(N({},A),{focused:A.key===b,checked:A.key===v,disabled:A.disabled||m,id:n._getOptionId(A),labelId:n._getOptionLabelId(A),name:x||n._id,required:_});return M.createElement(M6,N({key:A.key,onBlur:n._onBlur,onFocus:n._onFocus(A.key),onChange:n._onChange(A.key)},Y))}))))},o.prototype.focus=function(){var n=this.props.options,t=n===void 0?[]:n,i=this.checkedOption||t.filter(function(c){return!c.disabled})[0],d=i&&document.getElementById(this._getOptionId(i));d&&(d.focus(),dd(!0,d))},o.prototype._onFocus=function(n){var t=this;return this._focusCallbacks[n]||(this._focusCallbacks[n]=function(i,d){t.setState({keyFocused:n})}),this._focusCallbacks[n]},o.prototype._onChange=function(n){var t=this;return this._changeCallbacks[n]||(this._changeCallbacks[n]=function(i,d){var c=t.props,u=c.onChanged,h=c.onChange;Yv(t.props)||t.setState({keyChecked:n});var g=Qw(t.props.options||[],function(_){return _.key===n});h?h(i,g):u&&u(g,i)}),this._changeCallbacks[n]},o.prototype._getKeyChecked=function(n){if(n.selectedKey!==void 0)return n.selectedKey;var t=n.options,i=t===void 0?[]:t,d=i.filter(function(c){return c.checked});return d[0]&&d[0].key},o.prototype._getOptionId=function(n){return n.id||this._id+"-"+n.key},o.prototype._getOptionLabelId=function(n){return n.labelId||this._labelId+"-"+n.key},o})(M.Component);function Yv(s){return $0(s,"selectedKey")}var E6={root:"ms-ChoiceFieldGroup",flexContainer:"ms-ChoiceFieldGroup-flexContainer"},D6=function(s){var o=s.className,n=s.optionsContainIconOrImage,t=s.theme,i=at(E6,t);return{applicationRole:o,root:[i.root,t.fonts.medium,{display:"block"}],flexContainer:[i.flexContainer,n&&{display:"flex",flexDirection:"row",flexWrap:"wrap"}]}},yg=Ze(L6,D6,void 0,{scope:"ChoiceGroup"}),sd=32,My=32,I6=Et(function(){return wn({"0%":{transform:"translate(0, 0)",animationTimingFunction:"linear"},"78.57%":{transform:"translate(0, 0)",animationTimingFunction:"cubic-bezier(0.62, 0, 0.56, 1)"},"82.14%":{transform:"translate(0, -5px)",animationTimingFunction:"cubic-bezier(0.58, 0, 0, 1)"},"84.88%":{transform:"translate(0, 9px)",animationTimingFunction:"cubic-bezier(1, 0, 0.56, 1)"},"88.1%":{transform:"translate(0, -2px)",animationTimingFunction:"cubic-bezier(0.58, 0, 0.67, 1)"},"90.12%":{transform:"translate(0, 0)",animationTimingFunction:"linear"},"100%":{transform:"translate(0, 0)"}})}),T6=Et(function(){return wn({"0%":{transform:" scale(0)",animationTimingFunction:"linear"},"14.29%":{transform:"scale(0)",animationTimingFunction:"cubic-bezier(0.84, 0, 0.52, 0.99)"},"16.67%":{transform:"scale(1.15)",animationTimingFunction:"cubic-bezier(0.48, -0.01, 0.52, 1.01)"},"19.05%":{transform:"scale(0.95)",animationTimingFunction:"cubic-bezier(0.48, 0.02, 0.52, 0.98)"},"21.43%":{transform:"scale(1)",animationTimingFunction:"linear"},"42.86%":{transform:"scale(1)",animationTimingFunction:"cubic-bezier(0.48, -0.02, 0.52, 1.02)"},"45.71%":{transform:"scale(0.8)",animationTimingFunction:"cubic-bezier(0.48, 0.01, 0.52, 0.99)"},"50%":{transform:"scale(1)",animationTimingFunction:"linear"},"90.12%":{transform:"scale(1)",animationTimingFunction:"cubic-bezier(0.48, -0.02, 0.52, 1.02)"},"92.98%":{transform:"scale(0.8)",animationTimingFunction:"cubic-bezier(0.48, 0.01, 0.52, 0.99)"},"97.26%":{transform:"scale(1)",animationTimingFunction:"linear"},"100%":{transform:"scale(1)"}})}),A6=Et(function(){return wn({"0%":{transform:"rotate(0deg)",animationTimingFunction:"linear"},"83.33%":{transform:" rotate(0deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"83.93%":{transform:"rotate(15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"84.52%":{transform:"rotate(-15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"85.12%":{transform:"rotate(15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"85.71%":{transform:"rotate(-15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"86.31%":{transform:"rotate(0deg)",animationTimingFunction:"linear"},"100%":{transform:"rotate(0deg)"}})});function P6(s){var o,n=s.theme,t=s.className,i=s.color,d=s.beaconColorOne,c=s.beaconColorTwo,u=s.delayBeforeCoachmarkAnimation,h=s.isCollapsed,g=s.isBeaconAnimating,_=s.isMeasuring,m=s.isMeasured,x=s.entityHostHeight,y=s.entityHostWidth,v=s.transformOrigin;if(!n)throw new Error("theme is undefined or null in base Dropdown getStyles function.");var b="35px",C="150px",k="10px",L=_v.continuousPulseAnimationDouble(d||n.palette.themePrimary,c||n.palette.themeTertiary,b,C,k),I=_v.createDefaultAnimation(L,u);return{root:[n.fonts.medium,{position:"relative"},t],pulsingBeacon:[{position:"absolute",top:"50%",left:"50%",transform:At(n)?"translate(50%, -50%)":"translate(-50%, -50%)",width:"0px",height:"0px",borderRadius:"225px",borderStyle:"solid",opacity:"0"},h&&g&&I],translateAnimationContainer:[{width:"100%",height:"100%"},h&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:I6(),transition:"opacity 0.5s ease-in-out"},!h&&{opacity:"1"}],scaleAnimationLayer:[{width:"100%",height:"100%"},h&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:T6()}],rotateAnimationLayer:[{width:"100%",height:"100%"},h&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:A6()},!h&&{opacity:"1"}],entityHost:[{position:"relative",outline:"none",overflow:"hidden",backgroundColor:i,borderRadius:sd,transition:"border-radius 250ms, width 500ms, height 500ms cubic-bezier(0.5, 0, 0, 1)",visibility:"hidden",selectors:(o={},o[_e]={backgroundColor:"Window",border:"2px solid WindowText"},o["."+fn+" &:focus"]={outline:"1px solid "+n.palette.themeTertiary},o)},!_&&{width:sd,height:My,visibility:"visible"},!h&&{borderRadius:"1px",opacity:"1",width:y,height:x}],entityInnerHost:[{transition:"transform 500ms cubic-bezier(0.5, 0, 0, 1)",transformOrigin:v,transform:"scale(0)"},!h&&{width:y,height:x,transform:"scale(1)"},!_&&{visibility:"visible"}],childrenContainer:[{display:m&&h?"none":"block"}],ariaContainer:{position:"fixed",opacity:0,height:0,width:0,pointerEvents:"none"}}}var R6=Et(function(){var s;return tl({root:[{position:"absolute",boxSizing:"border-box",border:"1px solid ${}",selectors:(s={},s[_e]={border:"1px solid WindowText"},s)},Jy()],container:{position:"relative"},main:{backgroundColor:"#ffffff",overflowX:"hidden",overflowY:"hidden",position:"relative"},overFlowYHidden:{overflowY:"hidden"}})}),Dc,F6={opacity:0},N6=1,O6=(Dc={},Dc[De.top]="slideUpIn20",Dc[De.bottom]="slideDownIn20",Dc[De.left]="slideLeftIn20",Dc[De.right]="slideRightIn20",Dc),Y6=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._positionedHost=M.createRef(),t._contentHost=M.createRef(),t.dismiss=function(i){t.onResize(i)},t.onResize=function(i){var d=t.props.onDismiss;d?d(i):t._updateAsyncPosition()},t._setInitialFocus=function(){t._contentHost.current&&t.props.setInitialFocus&&!t._didSetInitialFocus&&t.state.positions&&(t._didSetInitialFocus=!0,ig(t._contentHost.current))},t._onComponentDidMount=function(){t._async.setTimeout(function(){t._events.on(t._targetWindow,"scroll",t._async.throttle(t._dismissOnScroll,10),!0),t._events.on(t._targetWindow,"resize",t._async.throttle(t.onResize,10),!0),t._events.on(t._targetWindow.document.body,"focus",t._dismissOnLostFocus,!0),t._events.on(t._targetWindow.document.body,"click",t._dismissOnLostFocus,!0)},0),t.props.onLayerMounted&&t.props.onLayerMounted(),t._updateAsyncPosition(),t._setHeightOffsetEveryFrame()},St(t),t._async=new Wn(t),t._events=new Yt(t),t._didSetInitialFocus=!1,t.state={positions:void 0,heightOffset:0},t._positionAttempts=0,t}return o.prototype.UNSAFE_componentWillMount=function(){this._setTargetWindowAndElement(this._getTarget())},o.prototype.componentDidMount=function(){this._onComponentDidMount()},o.prototype.componentDidUpdate=function(){this._setInitialFocus(),this._updateAsyncPosition()},o.prototype.UNSAFE_componentWillUpdate=function(n){var t=this._getTarget(n),i=this._getTarget();(t!==i||typeof t=="string"||t instanceof String)&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t)),n.offsetFromTarget!==this.props.offsetFromTarget&&(this._maxHeight=void 0),n.finalHeight!==this.props.finalHeight&&this._setHeightOffsetEveryFrame()},o.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},o.prototype.render=function(){if(!this._targetWindow)return null;var n=this.props,t=n.className,i=n.positioningContainerWidth,d=n.positioningContainerMaxHeight,c=n.children,u=this.state.positions,h=R6(),g=u&&u.targetEdge?Jr[O6[u.targetEdge]]:"",_=this._getMaxHeight()+this.state.heightOffset,m=d&&d>_?_:d,x=M.createElement("div",{ref:this._positionedHost,className:sn("ms-PositioningContainer",h.container)},M.createElement("div",{className:Ho("ms-PositioningContainer-layerHost",h.root,t,g,!!i&&{width:i}),style:u?u.elementPosition:F6,tabIndex:-1,ref:this._contentHost},c,m));return this.props.doNotLayer?x:M.createElement(vd,null,x)},o.prototype._dismissOnScroll=function(n){var t=this.props.preventDismissOnScroll;this.state.positions&&!t&&this._dismissOnLostFocus(n)},o.prototype._dismissOnLostFocus=function(n){var t=n.target,i=this._positionedHost.current&&!un(this._positionedHost.current,t);(!this._target&&i||n.target!==this._targetWindow&&i&&(this._target.stopPropagation||!this._target||t!==this._target&&!un(this._target,t)))&&this.onResize(n)},o.prototype._updateAsyncPosition=function(){var n=this;this._async.requestAnimationFrame(function(){return n._updatePosition()})},o.prototype._updatePosition=function(){var n=this.state.positions,t=this.props,i=t.offsetFromTarget,d=t.onPositioned,c=this._positionedHost.current,u=this._contentHost.current;if(c&&u){var h=N({},this.props);if(h.bounds=this._getBounds(),h.target=this._target,document.body.contains(h.target)){h.gapSpace=i;var g=ij(h,c,u);!n&&g||n&&g&&!this._arePositionsEqual(n,g)&&this._positionAttempts<5?(this._positionAttempts++,this.setState({positions:g},function(){d&&d(g)})):(this._positionAttempts=0,d&&d(g))}else n!==void 0&&this.setState({positions:void 0})}},o.prototype._getBounds=function(){if(!this._positioningBounds){var n=this.props.bounds;n||(n={top:0+this.props.minPagePadding,left:0+this.props.minPagePadding,right:this._targetWindow.innerWidth-this.props.minPagePadding,bottom:this._targetWindow.innerHeight-this.props.minPagePadding,width:this._targetWindow.innerWidth-this.props.minPagePadding*2,height:this._targetWindow.innerHeight-this.props.minPagePadding*2}),this._positioningBounds=n}return this._positioningBounds},o.prototype._getMaxHeight=function(){var n=this.props,t=n.directionalHintFixed,i=n.offsetFromTarget,d=n.directionalHint;if(!this._maxHeight)if(t&&this._target){var c=i||0;this._maxHeight=yb(this._target,d,c,this._getBounds())}else this._maxHeight=this._getBounds().height-N6*2;return this._maxHeight},o.prototype._arePositionsEqual=function(n,t){return this._comparePositions(n.elementPosition,t.elementPosition)},o.prototype._comparePositions=function(n,t){for(var i in t)if(t.hasOwnProperty(i)){var d=n[i],c=t[i];if(d&&c&&d.toFixed(2)!==c.toFixed(2))return!1}return!0},o.prototype._setTargetWindowAndElement=function(n){var t=this._positionedHost.current;if(n)if(typeof n=="string"){var i=yn();this._target=i?i.querySelector(n):null,this._targetWindow=nt(t)}else if(n.stopPropagation)this._targetWindow=nt(n.target),this._target=n;else if((n.left!==void 0||n.x!==void 0)&&(n.top!==void 0||n.y!==void 0))this._targetWindow=nt(t),this._target=n;else{var d=n;this._targetWindow=nt(d),this._target=n}else this._targetWindow=nt(t)},o.prototype._setHeightOffsetEveryFrame=function(){var n=this;this._contentHost&&this.props.finalHeight&&(this._setHeightOffsetTimer=this._async.requestAnimationFrame(function(){if(n._contentHost.current){var t=n._contentHost.current.lastChild,i=t.scrollHeight,d=t.offsetHeight,c=i-d;n.setState({heightOffset:n.state.heightOffset+c}),t.offsetHeight<n.props.finalHeight?n._setHeightOffsetEveryFrame():n._async.cancelAnimationFrame(n._setHeightOffsetTimer)}}))},o.prototype._getTarget=function(n){n===void 0&&(n=this.props);var t=n.target;return t},o.defaultProps={preventDismissOnScroll:!1,offsetFromTarget:0,minPagePadding:8,directionalHint:Ot.bottomAutoEdge},o})(M.Component);function W6(s){var o;return{root:[{position:"absolute",boxShadow:"inherit",border:"none",boxSizing:"border-box",transform:s.transform,width:s.width,height:s.height,left:s.left,top:s.top,right:s.right,bottom:s.bottom}],beak:{fill:s.color,display:"block",selectors:(o={},o[_e]={fill:"windowtext"},o)}}}var No=10,ds=18,B6=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return St(t),t}return o.prototype.render=function(){var n=this.props,t=n.left,i=n.top,d=n.bottom,c=n.right,u=n.color,h=n.direction,g=h===void 0?De.top:h,_,m;g===De.top||g===De.bottom?(_=No,m=ds):(_=ds,m=No);var x,y,v,b;switch(g){case De.top:default:x=ds/2+", 0",y=ds+", "+No,v="0, "+No,b="translateY(-100%)";break;case De.right:x="0, 0",y=No+", "+No,v="0, "+ds,b="translateX(100%)";break;case De.bottom:x="0, 0",y=ds+", 0",v=ds/2+", "+No,b="translateY(100%)";break;case De.left:x=No+", 0",y="0, "+No,v=No+", "+ds,b="translateX(-100%)";break}var C=Je(),k=C(W6,{left:t,top:i,bottom:d,right:c,height:_+"px",width:m+"px",transform:b,color:u});return M.createElement("div",{className:k.root,role:"presentation"},M.createElement("svg",{height:_,width:m,className:k.beak},M.createElement("polygon",{points:x+" "+y+" "+v})))},o})(M.Component),H6=Je(),z6=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._entityHost=M.createRef(),t._entityInnerHostElement=M.createRef(),t._translateAnimationContainer=M.createRef(),t._ariaAlertContainer=M.createRef(),t._childrenContainer=M.createRef(),t._positioningContainer=M.createRef(),t.dismiss=function(i){var d=t.props.onDismiss;d&&d(i)},t._onKeyDown=function(i){(i.altKey&&i.which===ke.c||i.which===ke.enter&&t._translateAnimationContainer.current&&t._translateAnimationContainer.current.contains(i.target))&&t._onFocusHandler()},t._onFocusHandler=function(){t.state.isCollapsed&&t._openCoachmark()},t._onPositioned=function(i){t._async.requestAnimationFrame(function(){t.setState({targetAlignment:i.alignmentEdge,targetPosition:i.targetEdge})})},t._setBeakPosition=function(){var i,d,c,u,h,g,_=t.state.targetAlignment,m="3px";switch(t._beakDirection){case De.top:case De.bottom:_?_===De.left?(i=sd/2-ds/2+"px",h="left"):(c=sd/2-ds/2+"px",h="right"):(i="calc(50% - "+ds/2+"px)",h="center"),t._beakDirection===De.top?(d=m,g="top"):(u=m,g="bottom");break;case De.left:case De.right:_?_===De.top?(d=sd/2-ds/2+"px",g="top"):(u=sd/2-ds/2+"px",g="bottom"):(d="calc(50% - "+ds/2+"px)",g="center"),t._beakDirection===De.left?(At(t.props.theme)?c=m:i=m,h="left"):(At(t.props.theme)?i=m:c=m,h="right");break}t.setState({beakLeft:i,beakRight:c,beakBottom:u,beakTop:d,transformOrigin:h+" "+g})},t._openCoachmark=function(){t.setState({isCollapsed:!1}),t.props.onAnimationOpenStart&&t.props.onAnimationOpenStart(),t._entityInnerHostElement.current&&t._entityInnerHostElement.current.addEventListener("transitionend",function(){t._async.setTimeout(function(){t._entityInnerHostElement.current&&ig(t._entityInnerHostElement.current)},1e3),t.props.onAnimationOpenEnd&&t.props.onAnimationOpenEnd()})},t._async=new Wn(t),t._events=new Yt(t),St(t),t.state={isCollapsed:n.isCollapsed,isBeaconAnimating:!0,isMeasuring:!0,entityInnerHostRect:{width:0,height:0},isMouseInProximity:!1,isMeasured:!1},t}return Object.defineProperty(o.prototype,"_beakDirection",{get:function(){var n=this.state.targetPosition;return n===void 0?De.bottom:dj(n)},enumerable:!0,configurable:!0}),o.prototype.render=function(){var n=this.props,t=n.beaconColorOne,i=n.beaconColorTwo,d=n.children,c=n.target,u=n.color,h=n.positioningContainerProps,g=n.ariaDescribedBy,_=n.ariaDescribedByText,m=n.ariaLabelledBy,x=n.ariaLabelledByText,y=n.ariaAlertText,v=n.delayBeforeCoachmarkAnimation,b=n.styles,C=n.theme,k=n.className,L=n.persistentBeak,I=this.state,A=I.beakLeft,Y=I.beakTop,P=I.beakRight,T=I.beakBottom,F=I.isCollapsed,H=I.isBeaconAnimating,W=I.isMeasuring,K=I.entityInnerHostRect,Z=I.transformOrigin,Q=I.alertText,B=I.isMeasured,R=u;!R&&C&&(R=C.semanticColors.primaryButtonBackground);var X=H6(b,{theme:C,beaconColorOne:t,beaconColorTwo:i,className:k,isCollapsed:F,isBeaconAnimating:H,isMeasuring:W,color:R,transformOrigin:Z,isMeasured:B,entityHostHeight:K.height+"px",entityHostWidth:K.width+"px",width:sd+"px",height:My+"px",delayBeforeCoachmarkAnimation:v+"ms"}),$=F?My:K.height;return M.createElement(Y6,N({target:c,offsetFromTarget:No,componentRef:this._positioningContainer,finalHeight:$,onPositioned:this._onPositioned,bounds:this._getBounds()},h),M.createElement("div",{className:X.root},y&&M.createElement("div",{className:X.ariaContainer,role:"alert",ref:this._ariaAlertContainer,"aria-hidden":!F},Q),M.createElement("div",{className:X.pulsingBeacon}),M.createElement("div",{className:X.translateAnimationContainer,ref:this._translateAnimationContainer},M.createElement("div",{className:X.scaleAnimationLayer},M.createElement("div",{className:X.rotateAnimationLayer},this._positioningContainer.current&&(F||L)&&M.createElement(B6,{left:A,top:Y,right:P,bottom:T,direction:this._beakDirection,color:R}),M.createElement("div",{className:X.entityHost,ref:this._entityHost,tabIndex:-1,"data-is-focusable":!0,role:"dialog","aria-labelledby":m,"aria-describedby":g},F&&[m&&M.createElement("p",{id:m,key:0,className:X.ariaContainer},x),g&&M.createElement("p",{id:g,key:1,className:X.ariaContainer},_)],M.createElement(su,{isClickableOutsideFocusTrap:!0,forceFocusInsideTrap:!1},M.createElement("div",{className:X.entityInnerHost,ref:this._entityInnerHostElement},M.createElement("div",{className:X.childrenContainer,ref:this._childrenContainer,"aria-hidden":F},d)))))))))},o.prototype.UNSAFE_componentWillReceiveProps=function(n){this.props.isCollapsed&&!n.isCollapsed&&this._openCoachmark()},o.prototype.shouldComponentUpdate=function(n,t){return!bi(n,this.props)||!bi(t,this.state)},o.prototype.componentDidUpdate=function(n,t){(t.targetAlignment!==this.state.targetAlignment||t.targetPosition!==this.state.targetPosition)&&this._setBeakPosition(),n.preventDismissOnLostFocus!==this.props.preventDismissOnLostFocus&&this._addListeners()},o.prototype.componentDidMount=function(){var n=this;this._async.requestAnimationFrame(function(){n._entityInnerHostElement.current&&n.state.entityInnerHostRect.width+n.state.entityInnerHostRect.width===0&&(n.setState({isMeasuring:!1,entityInnerHostRect:{width:n._entityInnerHostElement.current.offsetWidth,height:n._entityInnerHostElement.current.offsetHeight},isMeasured:!0}),n._setBeakPosition(),n.forceUpdate()),n._addListeners(),n._async.setTimeout(function(){n._addProximityHandler(n.props.mouseProximityOffset)},n.props.delayBeforeMouseOpen),n.props.ariaAlertText&&n._async.setTimeout(function(){n.props.ariaAlertText&&n._ariaAlertContainer.current&&n.setState({alertText:n.props.ariaAlertText})},0),n.props.preventFocusOnMount||n._async.setTimeout(function(){n._entityHost.current&&n._entityHost.current.focus()},1e3)})},o.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},o.prototype._addListeners=function(){var n=this.props.preventDismissOnLostFocus,t=yn();this._events.off(),t&&(this._events.on(t,"keydown",this._onKeyDown,!0),n||(this._events.on(t,"click",this._dismissOnLostFocus,!0),this._events.on(t,"focus",this._dismissOnLostFocus,!0)))},o.prototype._dismissOnLostFocus=function(n){var t=n.target,i=this._translateAnimationContainer.current&&!un(this._translateAnimationContainer.current,t),d=this.props.target;i&&t!==d&&!un(d,t)&&this.dismiss(n)},o.prototype._getBounds=function(){var n=this.props,t=n.isPositionForced,i=n.positioningContainerProps;if(t)return i&&(i.directionalHint===Ot.topAutoEdge||i.directionalHint===Ot.bottomAutoEdge)?{left:0,top:-1/0,bottom:1/0,right:window.innerWidth,width:window.innerWidth,height:1/0}:{left:-1/0,top:-1/0,bottom:1/0,right:1/0,width:1/0,height:1/0}},o.prototype._addProximityHandler=function(n){var t=this;n===void 0&&(n=0);var i=[];this._async.setTimeout(function(){t._setTargetElementRect(),t._events.on(window,"resize",function(){i.forEach(function(d){clearInterval(d)}),i.push(t._async.setTimeout(function(){t._setTargetElementRect()},100))})},10),this._events.on(document,"mousemove",function(d){if(t.state.isCollapsed){var c=d.clientY,u=d.clientX;t._setTargetElementRect();var h=t._isInsideElement(u,c,n);h!==t.state.isMouseInProximity&&t._openCoachmark()}t.props.onMouseMove&&t.props.onMouseMove(d)})},o.prototype._setTargetElementRect=function(){this._translateAnimationContainer&&this._translateAnimationContainer.current&&(this._targetElementRect=this._translateAnimationContainer.current.getBoundingClientRect())},o.prototype._isInsideElement=function(n,t,i){return i===void 0&&(i=0),n>this._targetElementRect.left-i&&n<this._targetElementRect.left+this._targetElementRect.width+i&&t>this._targetElementRect.top-i&&t<this._targetElementRect.top+this._targetElementRect.height+i},o.defaultProps={isCollapsed:!0,mouseProximityOffset:10,delayBeforeMouseOpen:3600,delayBeforeCoachmarkAnimation:0,isPositionForced:!0,positioningContainerProps:{directionalHint:Ot.bottomAutoEdge}},o})(M.Component),U6=Ze(z6,P6,void 0,{scope:"Coachmark"}),V6=Je(),G6="",ef="TextField",$6="RedEye",K6="Hide",q6=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;t._textElement=M.createRef(),t._onFocus=function(c){t.props.onFocus&&t.props.onFocus(c),t.setState({isFocused:!0},function(){t.props.validateOnFocusIn&&t._validate(t.value)})},t._onBlur=function(c){t.props.onBlur&&t.props.onBlur(c),t.setState({isFocused:!1},function(){t.props.validateOnFocusOut&&t._validate(t.value)})},t._onRenderLabel=function(c){var u=c.label,h=c.required,g=t._classNames.subComponentStyles?t._classNames.subComponentStyles.label:void 0;return u?M.createElement(fd,{required:h,htmlFor:t._id,styles:g,disabled:c.disabled,id:t._labelId},c.label):null},t._onRenderDescription=function(c){return c.description?M.createElement("span",{className:t._classNames.description},c.description):null},t._onRevealButtonClick=function(c){t.setState(function(u){return{isRevealingPassword:!u.isRevealingPassword}})},t._onInputChange=function(c){var u=c.target,h=u.value;if(!(h===void 0||h===t._lastChangeValue)){t._lastChangeValue=h,c.persist();var g;t.setState(function(_,m){var x=z_(m,_)||"";return g=h===x,g||t._isControlled?null:{uncontrolledValue:h}},function(){var _=t.props.onChange;!g&&_&&_(c,h)})}},St(t),t._async=new Wn(t),t._fallbackId=zt(ef),t._descriptionId=zt(ef+"Description"),t._labelId=zt(ef+"Label"),t._warnControlledUsage();var i=n.defaultValue,d=i===void 0?G6:i;return typeof d=="number"&&(d=String(d)),t.state={uncontrolledValue:t._isControlled?void 0:d,isFocused:!1,errorMessage:""},t._delayedValidate=t._async.debounce(t._validate,t.props.deferredValidationTime),t._lastValidation=0,t}return Object.defineProperty(o.prototype,"value",{get:function(){return z_(this.props,this.state)},enumerable:!0,configurable:!0}),o.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},o.prototype.componentWillUnmount=function(){this._async.dispose()},o.prototype.getSnapshotBeforeUpdate=function(n,t){return{selection:[this.selectionStart,this.selectionEnd]}},o.prototype.componentDidUpdate=function(n,t,i){var d=this.props,c=(i||{}).selection,u=c===void 0?[null,null]:c,h=u[0],g=u[1];!!n.multiline!=!!d.multiline&&t.isFocused&&(this.focus(),h!==null&&g!==null&&h>=0&&g>=0&&this.setSelectionRange(h,g));var _=z_(n,t),m=this.value;_!==m&&(this._warnControlledUsage(n),this.state.errorMessage&&!d.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),this._lastChangeValue=void 0,Wv(d)&&this._delayedValidate(m))},o.prototype.render=function(){var n=this.props,t=n.borderless,i=n.className,d=n.disabled,c=n.iconProps,u=n.inputClassName,h=n.label,g=n.multiline,_=n.required,m=n.underlined,x=n.prefix,y=n.resizable,v=n.suffix,b=n.theme,C=n.styles,k=n.autoAdjustHeight,L=n.canRevealPassword,I=n.type,A=n.onRenderPrefix,Y=A===void 0?this._onRenderPrefix:A,P=n.onRenderSuffix,T=P===void 0?this._onRenderSuffix:P,F=n.onRenderLabel,H=F===void 0?this._onRenderLabel:F,W=n.onRenderDescription,K=W===void 0?this._onRenderDescription:W,Z=this.state,Q=Z.isFocused,B=Z.isRevealingPassword,R=this._errorMessage,X=!!L&&I==="password"&&J6(),$=this._classNames=V6(C,{theme:b,className:i,disabled:d,focused:Q,required:_,multiline:g,hasLabel:!!h,hasErrorMessage:!!R,borderless:t,resizable:y,hasIcon:!!c,underlined:m,inputClassName:u,autoAdjustHeight:k,hasRevealButton:X});return M.createElement("div",{className:$.root},M.createElement("div",{className:$.wrapper},H(this.props,this._onRenderLabel),M.createElement("div",{className:$.fieldGroup},(x!==void 0||this.props.onRenderPrefix)&&M.createElement("div",{className:$.prefix},Y(this.props,this._onRenderPrefix)),g?this._renderTextArea():this._renderInput(),c&&M.createElement(Ue,N({className:$.icon},c)),X&&M.createElement("button",{className:$.revealButton,onClick:this._onRevealButtonClick,type:"button"},M.createElement("span",{className:$.revealSpan},M.createElement(Ue,{className:$.revealIcon,iconName:B?K6:$6}))),(v!==void 0||this.props.onRenderSuffix)&&M.createElement("div",{className:$.suffix},T(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&M.createElement("span",{id:this._descriptionId},K(this.props,this._onRenderDescription),R&&M.createElement("div",{role:"alert"},M.createElement(og,null,M.createElement("p",{className:$.errorMessage},M.createElement("span",{"data-automation-id":"error-message"},R))))))},o.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},o.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},o.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},o.prototype.setSelectionStart=function(n){this._textElement.current&&(this._textElement.current.selectionStart=n)},o.prototype.setSelectionEnd=function(n){this._textElement.current&&(this._textElement.current.selectionEnd=n)},Object.defineProperty(o.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!0,configurable:!0}),o.prototype.setSelectionRange=function(n,t){this._textElement.current&&this._textElement.current.setSelectionRange(n,t)},o.prototype._warnControlledUsage=function(n){this._id,this.props,this.props.value===null&&!this._hasWarnedNullValue&&(this._hasWarnedNullValue=!0,Wy("Warning: 'value' prop on '"+ef+"' should not be null. Consider using an empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(o.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_isControlled",{get:function(){return $0(this.props,"value")},enumerable:!0,configurable:!0}),o.prototype._onRenderPrefix=function(n){var t=n.prefix;return M.createElement("span",{style:{paddingBottom:"1px"}},t)},o.prototype._onRenderSuffix=function(n){var t=n.suffix;return M.createElement("span",{style:{paddingBottom:"1px"}},t)},Object.defineProperty(o.prototype,"_errorMessage",{get:function(){var n=this.props.errorMessage,t=n===void 0?this.state.errorMessage:n;return t||""},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_isDescriptionAvailable",{get:function(){var n=this.props;return!!(n.onRenderDescription||n.description||this._errorMessage)},enumerable:!0,configurable:!0}),o.prototype._renderTextArea=function(){var n=pt(this.props,rb,["defaultValue"]),t=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return M.createElement("textarea",N({id:this._id},n,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":t,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":!!this._errorMessage,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},o.prototype._renderInput=function(){var n=N(N({type:this.state.isRevealingPassword?"text":this.props.type||"text",id:this._id},pt(this.props,ah,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0),ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":this.props.ariaLabel,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":!!this._errorMessage,onFocus:this._onFocus,onBlur:this._onBlur}),t=function(d){return M.createElement("input",N({},d))},i=this.props.onRenderInput||t;return i(n,t)},o.prototype._validate=function(n){var t=this;if(!(this._latestValidateValue===n&&Wv(this.props))){this._latestValidateValue=n;var i=this.props.onGetErrorMessage,d=i&&i(n||"");if(d!==void 0)if(typeof d=="string"||!("then"in d))this.setState({errorMessage:d}),this._notifyAfterValidate(n,d);else{var c=++this._lastValidation;d.then(function(u){c===t._lastValidation&&t.setState({errorMessage:u}),t._notifyAfterValidate(n,u)})}else this._notifyAfterValidate(n,"")}},o.prototype._notifyAfterValidate=function(n,t){n===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(t,n)},o.prototype._adjustInputHeight=function(){if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var n=this._textElement.current;n.style.height="",n.style.height=n.scrollHeight+"px"}},o.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0,canRevealPassword:!1},o})(M.Component);function z_(s,o){var n=s.value,t=n===void 0?o.uncontrolledValue:n;return typeof t=="number"?String(t):t}function Wv(s){return!(s.validateOnFocusIn||s.validateOnFocusOut)}var tf;function J6(){var s;if(typeof tf!="boolean"){var o=nt();if(!((s=o)===null||s===void 0)&&s.navigator){var n=/Edg/.test(o.navigator.userAgent||"");tf=!(EM()||n)}else tf=!0}return tf}var Z6={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",revealButton:"ms-TextField-reveal",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function X6(s){var o=s.underlined,n=s.disabled,t=s.focused,i=s.theme,d=i.palette,c=i.fonts;return function(){var u;return{root:[o&&n&&{color:d.neutralTertiary},o&&{fontSize:c.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},o&&t&&{selectors:(u={},u[_e]={height:31},u)}]}}}function Q6(s){var o,n,t,i,d,c,u,h,g,_,m,x,y=s.theme,v=s.className,b=s.disabled,C=s.focused,k=s.required,L=s.multiline,I=s.hasLabel,A=s.borderless,Y=s.underlined,P=s.hasIcon,T=s.resizable,F=s.hasErrorMessage,H=s.inputClassName,W=s.autoAdjustHeight,K=s.hasRevealButton,Z=y.semanticColors,Q=y.effects,B=y.fonts,R=at(Z6,y),X={background:Z.disabledBackground,color:b?Z.disabledText:Z.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(o={},o[_e]={background:"Window",color:b?"GrayText":"WindowText"},o)},$=[B.medium,{color:Z.inputPlaceholderText,opacity:1,selectors:(n={},n[_e]={color:"GrayText"},n)}],ie={color:Z.disabledText,selectors:(t={},t[_e]={color:"GrayText"},t)};return{root:[R.root,B.medium,k&&R.required,b&&R.disabled,C&&R.active,L&&R.multiline,A&&R.borderless,Y&&R.underlined,cd,{position:"relative"},v],wrapper:[R.wrapper,Y&&[{display:"flex",borderBottom:"1px solid "+(F?Z.errorText:Z.inputBorder),width:"100%"},b&&{borderBottomColor:Z.disabledBackground,selectors:(i={},i[_e]=N({borderColor:"GrayText"},bt()),i)},!b&&{selectors:{":hover":{borderBottomColor:F?Z.errorText:Z.inputBorderHovered,selectors:(d={},d[_e]=N({borderBottomColor:"Highlight"},bt()),d)}}},C&&[{position:"relative"},_y(F?Z.errorText:Z.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[R.fieldGroup,cd,{border:"1px solid "+Z.inputBorder,borderRadius:Q.roundedCorner2,background:Z.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},L&&{minHeight:"60px",height:"auto",display:"flex"},!C&&!b&&{selectors:{":hover":{borderColor:Z.inputBorderHovered,selectors:(c={},c[_e]=N({borderColor:"Highlight"},bt()),c)}}},C&&!Y&&_y(F?Z.errorText:Z.inputFocusBorderAlt,Q.roundedCorner2),b&&{borderColor:Z.disabledBackground,selectors:(u={},u[_e]=N({borderColor:"GrayText"},bt()),u),cursor:"default"},A&&{border:"none"},A&&C&&{border:"none",selectors:{":after":{border:"none"}}},Y&&{flex:"1 1 0px",border:"none",textAlign:"left"},Y&&b&&{backgroundColor:"transparent"},F&&!Y&&{borderColor:Z.errorText,selectors:{"&:hover":{borderColor:Z.errorText}}},!I&&k&&{selectors:(h={":before":{content:"'*'",color:Z.errorText,position:"absolute",top:-5,right:-10}},h[_e]={selectors:{":before":{color:"WindowText",right:-14}}},h)}],field:[B.medium,R.field,cd,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:Z.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(g={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},g[_e]={background:"Window",color:b?"GrayText":"WindowText"},g)},wy($),L&&!T&&[R.unresizable,{resize:"none"}],L&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},L&&W&&{overflow:"hidden"},P&&!K&&{paddingRight:24},L&&P&&{paddingRight:40},b&&[{backgroundColor:Z.disabledBackground,color:Z.disabledText,borderColor:Z.disabledBackground},wy(ie)],Y&&{textAlign:"left"},C&&!A&&{selectors:(_={},_[_e]={paddingLeft:11,paddingRight:11},_)},C&&L&&!A&&{selectors:(m={},m[_e]={paddingTop:4},m)},H],icon:[L&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:Mr.medium,lineHeight:18},b&&{color:Z.disabledText}],description:[R.description,{color:Z.bodySubtext,fontSize:B.xSmall.fontSize}],errorMessage:[R.errorMessage,Jr.slideDownIn20,B.small,{color:Z.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[R.prefix,X],suffix:[R.suffix,X],revealButton:[R.revealButton,"ms-Button","ms-Button--icon",{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:Z.link,selectors:{":hover":{outline:0,color:Z.primaryButtonBackgroundHovered,backgroundColor:Z.buttonBackgroundHovered,selectors:(x={},x[_e]={borderColor:"Highlight",color:"Highlight"},x)},":focus":{outline:0}}},P&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:Mr.medium,lineHeight:18},subComponentStyles:{label:X6(s)}}}var qp=Ze(q6,Q6,void 0,{scope:"TextField"}),Tt;(function(s){s[s.Normal=0]="Normal",s[s.Divider=1]="Divider",s[s.Header=2]="Header"})(Tt||(Tt={}));function Bv(s,o){for(var n=[],t=0,i=o;t<i.length;t++){var d=i[t],c=s[d];c&&n.push(c)}return n}function eE(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}var tE=function(s){if(s===void 0)return 0;var o=0;return"scrollHeight"in s?o=s.scrollHeight:"document"in s&&(o=s.document.documentElement.scrollHeight),o},Hv=function(s){if(s===void 0)return 0;var o=0;return"scrollTop"in s?o=s.scrollTop:"scrollY"in s&&(o=s.scrollY),Math.ceil(o)},nf=function(s,o){"scrollTop"in s?s.scrollTop=o:"scrollY"in s&&s.scrollTo(s.scrollX,o)},rf={auto:0,top:1,bottom:2,center:3},nE=16,rE=100,sE=500,oE=200,iE=500,zv=10,aE=30,lE=2,dE=2,cE="page-",Uv="spacer-",Vv={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Ob=function(s){return s.getBoundingClientRect()},uE=Ob,pE=Ob,Jp=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._root=M.createRef(),t._surface=M.createRef(),t._pageRefs={},t._getDerivedStateFromProps=function(i,d){return(i.items!==t.props.items||i.renderCount!==t.props.renderCount||i.startIndex!==t.props.startIndex||i.version!==t.props.version||!d.hasMounted)&&eE()?(t._resetRequiredWindows(),t._requiredRect=null,t._measureVersion++,t._invalidatePageCache(),t._updatePages(i,d)):d},t._onRenderRoot=function(i){var d=i.rootRef,c=i.surfaceElement,u=i.divProps;return M.createElement("div",N({ref:d},u),c)},t._onRenderSurface=function(i){var d=i.surfaceRef,c=i.pageElements,u=i.divProps;return M.createElement("div",N({ref:d},u),c)},t._onRenderPage=function(i,d){for(var c,u,h=t.props,g=h.onRenderCell,_=h.onRenderCellConditional,m=h.role,x=i.page,y=x.items,v=y===void 0?[]:y,b=x.startIndex,C=ms(i,["page"]),k=m===void 0?"listitem":"presentation",L=[],I=0;I<v.length;I++){var A=b+I,Y=v[I],P=t.props.getKey?t.props.getKey(Y,A):Y&&Y.key;P==null&&(P=A);var T=_??g,F=(u=(c=T)===null||c===void 0?void 0:c(Y,A,t.props.ignoreScrollingState?void 0:t.state.isScrolling),u??null);(!_||F)&&L.push(M.createElement("div",{role:k,className:"ms-List-cell",key:P,"data-list-index":A,"data-automationid":"ListCell"},F))}return M.createElement("div",N({},C),L)},St(t),t.state={pages:[],isScrolling:!1,getDerivedStateFromProps:t._getDerivedStateFromProps,hasMounted:!1},t._async=new Wn(t),t._events=new Yt(t),t._estimatedPageHeight=0,t._totalEstimates=0,t._requiredWindowsAhead=0,t._requiredWindowsBehind=0,t._measureVersion=0,t._onAsyncScroll=t._async.debounce(t._onAsyncScroll,rE,{leading:!1,maxWait:sE}),t._onAsyncIdle=t._async.debounce(t._onAsyncIdle,oE,{leading:!1}),t._onAsyncResize=t._async.debounce(t._onAsyncResize,nE,{leading:!1}),t._onScrollingDone=t._async.debounce(t._onScrollingDone,iE,{leading:!1}),t._cachedPageHeights={},t._estimatedPageHeight=0,t._focusedIndex=-1,t._pageCache={},t}return o.getDerivedStateFromProps=function(n,t){return t.getDerivedStateFromProps(n,t)},Object.defineProperty(o.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!0,configurable:!0}),o.prototype.scrollToIndex=function(n,t,i){i===void 0&&(i=rf.auto);for(var d=this.props.startIndex,c=this._getRenderCount(),u=d+c,h=this._allowedRect,g=0,_=1,m=d;m<u;m+=_){var x=this._getPageSpecification(this.props,m,h),y=x.height;_=x.itemCount;var v=m<=n&&m+_>n;if(v){if(t&&this._scrollElement){for(var b=pE(this._scrollElement),C=Hv(this._scrollElement),k={top:C,bottom:C+b.height},L=n-m,I=0;I<L;++I)g+=t(m+I);var A=g+t(n);switch(i){case rf.top:nf(this._scrollElement,g);return;case rf.bottom:nf(this._scrollElement,A-b.height);return;case rf.center:nf(this._scrollElement,(g+A-b.height)/2);return}var Y=g>=k.top&&A<=k.bottom;if(Y)return;var P=g<k.top,T=A>k.bottom;P||T&&(g=A-b.height)}this._scrollElement&&nf(this._scrollElement,g);return}g+=y}},o.prototype.getStartItemIndexInView=function(n){for(var t=this.state.pages||[],i=0,d=t;i<d.length;i++){var c=d[i],u=!c.isSpacer&&(this._scrollTop||0)>=c.top&&(this._scrollTop||0)<=c.top+c.height;if(u)if(n)for(var g=0,_=c.startIndex;_<c.startIndex+c.itemCount;_++){var h=n(_);if(c.top+g<=this._scrollTop&&this._scrollTop<c.top+g+h)return _;g+=h}else{var h=Math.floor(c.height/c.itemCount);return c.startIndex+Math.floor((this._scrollTop-c.top)/h)}}return 0},o.prototype.componentDidMount=function(){if(this.setState({hasMounted:!0}),this._scrollElement=ih(this._root.current),this._scrollTop=0,!this.props.getPageHeight){var n=this._updatePageMeasurements(this.state.pages);n&&(this._materializedRect=null,this.setState(this._updatePages(this.props,this.state)))}this._measureVersion++,this._events.on(window,"resize",this._onAsyncResize),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScroll))},o.prototype.componentDidUpdate=function(n,t){var i=this.props,d=this.state;if(this.state.pagesVersion!==t.pagesVersion){if(i.getPageHeight)this._onAsyncIdle();else{var c=this._updatePageMeasurements(d.pages);c?(this._materializedRect=null,this._onAsyncScroll()):this._onAsyncIdle()}i.onPagesUpdated&&i.onPagesUpdated(d.pages)}},o.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},o.prototype.shouldComponentUpdate=function(n,t){var i=this.state.pages,d=t.pages,c=!1;if(!t.isScrolling&&this.state.isScrolling||n.version!==this.props.version||n.className!==this.props.className)return!0;if(n.items===this.props.items&&i.length===d.length)for(var u=0;u<i.length;u++){var h=i[u],g=d[u];if(h.key!==g.key||h.itemCount!==g.itemCount){c=!0;break}}else c=!0;return c},o.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,s.prototype.forceUpdate.call(this)},o.prototype.getTotalListHeight=function(){return this._surfaceRect.height},o.prototype.render=function(){for(var n=this.props,t=n.className,i=n.role,d=i===void 0?"list":i,c=n.onRenderSurface,u=n.onRenderRoot,h=this.state.pages,g=h===void 0?[]:h,_=[],m=pt(this.props,Yn),x=0,y=g;x<y.length;x++){var v=y[x];_.push(this._renderPage(v))}var b=c?Ns(c,this._onRenderSurface):this._onRenderSurface,C=u?Ns(u,this._onRenderRoot):this._onRenderRoot;return C({rootRef:this._root,pages:g,surfaceElement:b({surfaceRef:this._surface,pages:g,pageElements:_,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:N(N({},m),{className:sn("ms-List",t),role:_.length>0?d:void 0,"aria-label":_.length>0?m["aria-label"]:void 0})})},o.prototype._shouldVirtualize=function(n){n===void 0&&(n=this.props);var t=n.onShouldVirtualize;return!t||t(n)},o.prototype._invalidatePageCache=function(){this._pageCache={}},o.prototype._renderPage=function(n){var t=this,i=this.props.usePageCache,d;if(i&&(d=this._pageCache[n.key],d&&d.pageElement))return d.pageElement;var c=this._getPageStyle(n),u=this.props.onRenderPage,h=u===void 0?this._onRenderPage:u,g=h({page:n,className:"ms-List-page",key:n.key,ref:function(_){t._pageRefs[n.key]=_},style:c,role:"presentation"},this._onRenderPage);return i&&n.startIndex===0&&(this._pageCache[n.key]={page:n,pageElement:g}),g},o.prototype._getPageStyle=function(n){var t=this.props.getPageStyle;return N(N({},t?t(n):{}),n.items?{}:{height:n.height})},o.prototype._onFocus=function(n){for(var t=n.target;t!==this._surface.current;){var i=t.getAttribute("data-list-index");if(i){this._focusedIndex=Number(i);break}t=Cn(t)}},o.prototype._onScroll=function(){!this.state.isScrolling&&!this.props.ignoreScrollingState&&this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},o.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},o.prototype._onAsyncScroll=function(){this._updateRenderRects(this.props,this.state),(!this._materializedRect||!hE(this._requiredRect,this._materializedRect))&&this.setState(this._updatePages(this.props,this.state))},o.prototype._onAsyncIdle=function(){var n=this.props,t=n.renderedWindowsAhead,i=n.renderedWindowsBehind,d=this,c=d._requiredWindowsAhead,u=d._requiredWindowsBehind,h=Math.min(t,c+1),g=Math.min(i,u+1);(h!==c||g!==u)&&(this._requiredWindowsAhead=h,this._requiredWindowsBehind=g,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>h||i>g)&&this._onAsyncIdle()},o.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},o.prototype._onAsyncResize=function(){this.forceUpdate()},o.prototype._updatePages=function(n,t){this._requiredRect||this._updateRenderRects(n,t);var i=this._buildPages(n,t),d=t.pages;return this._notifyPageChanges(d,i.pages,this.props),N(N(N({},t),i),{pagesVersion:{}})},o.prototype._notifyPageChanges=function(n,t,i){var d=i.onPageAdded,c=i.onPageRemoved;if(d||c){for(var u={},h=0,g=n;h<g.length;h++){var _=g[h];_.items&&(u[_.startIndex]=_)}for(var m=0,x=t;m<x.length;m++){var _=x[m];_.items&&(u[_.startIndex]?delete u[_.startIndex]:this._onPageAdded(_))}for(var y in u)u.hasOwnProperty(y)&&this._onPageRemoved(u[y])}},o.prototype._updatePageMeasurements=function(n){var t=!1;if(!this._shouldVirtualize())return t;for(var i=0;i<n.length;i++){var d=n[i];d.items&&(t=this._measurePage(d)||t)}return t},o.prototype._measurePage=function(n){var t=!1,i=this._pageRefs[n.key],d=this._cachedPageHeights[n.startIndex];if(i&&this._shouldVirtualize()&&(!d||d.measureVersion!==this._measureVersion)){var c={width:i.clientWidth,height:i.clientHeight};(c.height||c.width)&&(t=n.height!==c.height,n.height=c.height,this._cachedPageHeights[n.startIndex]={height:c.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+c.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},o.prototype._onPageAdded=function(n){var t=this.props.onPageAdded;t&&t(n)},o.prototype._onPageRemoved=function(n){var t=this.props.onPageRemoved;t&&t(n)},o.prototype._buildPages=function(n,t){var i=n.renderCount,d=n.items,c=n.startIndex,u=n.getPageHeight;i=this._getRenderCount(n);for(var h=N({},Vv),g=[],_=1,m=0,x=null,y=this._focusedIndex,v=c+i,b=this._shouldVirtualize(n),C=this._estimatedPageHeight===0&&!u,k=this._allowedRect,L=function(P){var T=I._getPageSpecification(n,P,k),F=T.height,H=T.data,W=T.key;_=T.itemCount;var K=m+F-1,Z=Hy(t.pages,function(V){return!!V.items&&V.startIndex===P})>-1,Q=!k||K>=k.top&&m<=k.bottom,B=!I._requiredRect||K>=I._requiredRect.top&&m<=I._requiredRect.bottom,R=!C&&(B||Q&&Z)||!b,X=y>=P&&y<P+_,$=P===c;if(R||X||$){x&&(g.push(x),x=null);var ie=Math.min(_,v-P),le=I._createPage(W,d.slice(P,P+ie),P,void 0,void 0,H);le.top=m,le.height=F,I._visibleRect&&I._visibleRect.bottom&&(le.isVisible=K>=I._visibleRect.top&&m<=I._visibleRect.bottom),g.push(le),B&&I._allowedRect&&mE(h,{top:m,bottom:K,left:k.left,right:k.right,width:k.width})}else x||(x=I._createPage(Uv+P,void 0,P,0,void 0,H,!0)),x.height=(x.height||0)+(K-m)+1,x.itemCount+=_;if(m+=K-m+1,C&&b)return"break"},I=this,A=c;A<v;A+=_){var Y=L(A);if(Y==="break")break}return x&&(x.key=Uv+"end",g.push(x)),this._materializedRect=h,N(N({},t),{pages:g,measureVersion:this._measureVersion})},o.prototype._getPageSpecification=function(n,t,i){var d=n.getPageSpecification;if(d){var c=d(t,i),u=c.itemCount,h=u===void 0?this._getItemCountForPage(t,i):u,g=c.height,_=g===void 0?this._getPageHeight(t,i,h):g;return{itemCount:h,height:_,data:c.data,key:c.key}}else{var h=this._getItemCountForPage(t,i);return{itemCount:h,height:this._getPageHeight(t,i,h)}}},o.prototype._getPageHeight=function(n,t,i){if(this.props.getPageHeight)return this.props.getPageHeight(n,t,i);var d=this._cachedPageHeights[n];return d?d.height:this._estimatedPageHeight||aE},o.prototype._getItemCountForPage=function(n,t){var i=this.props.getItemCountForPage?this.props.getItemCountForPage(n,t):zv;return i||zv},o.prototype._createPage=function(n,t,i,d,c,u,h){i===void 0&&(i=-1),d===void 0&&(d=t?t.length:0),c===void 0&&(c={}),n=n||cE+i;var g=this._pageCache[n];return g&&g.page?g.page:{key:n,startIndex:i,itemCount:d,items:t,style:c,top:0,height:0,data:u,isSpacer:h||!1}},o.prototype._getRenderCount=function(n){var t=n||this.props,i=t.items,d=t.startIndex,c=t.renderCount;return c===void 0?i?i.length-d:0:c},o.prototype._updateRenderRects=function(n,t,i){var d=n.renderedWindowsAhead,c=n.renderedWindowsBehind,u=t.pages;if(this._shouldVirtualize(n)){var h=this._surfaceRect||N({},Vv),g=tE(this._scrollElement),_=Hv(this._scrollElement);this._surface.current&&(i||!u||!this._surfaceRect||!g||g!==this._scrollHeight||Math.abs(this._scrollTop-_)>this._estimatedPageHeight/3)&&(h=this._surfaceRect=uE(this._surface.current),this._scrollTop=_),(i||!g||g!==this._scrollHeight)&&this._measureVersion++,this._scrollHeight=g||0;var m=Math.max(0,-h.top),x=nt(this._root.current),y={top:m,left:h.left,bottom:m+x.innerHeight,right:h.right,width:h.width,height:x.innerHeight};this._requiredRect=Gv(y,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=Gv(y,c,d),this._visibleRect=y}},o.defaultProps={startIndex:0,onRenderCell:function(n,t,i){return M.createElement(M.Fragment,null,n&&n.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:dE,renderedWindowsBehind:lE},o})(M.Component);function Gv(s,o,n){var t=s.top-o*s.height,i=s.height+(o+n)*s.height;return{top:t,bottom:t+i,height:i,left:s.left,right:s.right,width:s.width}}function hE(s,o){return s.top>=o.top&&s.left>=o.left&&s.bottom<=o.bottom&&s.right<=o.right}function mE(s,o){return s.top=o.top<s.top||s.top===-1?o.top:s.top,s.left=o.left<s.left||s.left===-1?o.left:s.left,s.bottom=o.bottom>s.bottom||s.bottom===-1?o.bottom:s.bottom,s.right=o.right>s.right||s.right===-1?o.right:s.right,s.width=s.right-s.left+1,s.height=s.bottom-s.top+1,s}var fE=Je(),gE=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._focusZone=M.createRef(),t._persistedKeytips={},t._keytipManager=xb.getInstance(),t._divContainer=M.createRef(),t._onRenderItems=function(i){return i.map(function(d,c){return M.createElement("div",{key:d.key,className:t._classNames.item},t.props.onRenderItem(d))})},t._onRenderOverflowButtonWrapper=function(i){var d={className:t._classNames.overflowButton},c=t.props.keytipSequences,u=[];return c?i.forEach(function(h){var g=h.keytipProps;if(g){var _={content:g.content,keySequences:g.keySequences,disabled:g.disabled||!!(h.disabled||h.isDisabled),hasDynamicChildren:g.hasDynamicChildren,hasMenu:g.hasMenu};g.hasDynamicChildren||t._getSubMenuForItem(h)?_.onExecute=t._keytipManager.menuExecute.bind(t._keytipManager,c,h.keytipProps.keySequences):_.onExecute=g.onExecute,t._persistedKeytips[_.content]=_;var m=N(N({},h),{keytipProps:N(N({},g),{overflowSetSequence:c})});u.push(m)}else u.push(h)}):u=i,M.createElement("div",N({},d),t.props.onRenderOverflowButton(u))},St(t),t}return o.prototype.render=function(){var n=this.props,t=n.items,i=n.overflowItems,d=n.className,c=n.focusZoneProps,u=n.styles,h=n.vertical,g=n.doNotContainWithinFocusZone,_=n.role,m=n.overflowSide,x=m===void 0?"end":m;this._classNames=fE(u,{className:d,vertical:h});var y,v;g?(y="div",v=N(N({},pt(this.props,Yn)),{ref:this._divContainer})):(y=xd,v=N(N(N({},pt(this.props,Yn)),c),{componentRef:this._focusZone,direction:h?kn.vertical:kn.horizontal}));var b=i&&i.length>0;return M.createElement(y,N({role:_||"group","aria-orientation":_==="menubar"?h===!0?"vertical":"horizontal":void 0},v,{className:this._classNames.root}),x==="start"&&b&&this._onRenderOverflowButtonWrapper(i),t&&this._onRenderItems(t),x==="end"&&b&&this._onRenderOverflowButtonWrapper(i))},o.prototype.focus=function(n){var t=!1;return this.props.doNotContainWithinFocusZone?this._divContainer.current&&(t=ig(this._divContainer.current)):this._focusZone.current&&(t=this._focusZone.current.focus(n)),t},o.prototype.focusElement=function(n){var t=!1;return n?(this.props.doNotContainWithinFocusZone?this._divContainer.current&&un(this._divContainer.current,n)&&(n.focus(),t=document.activeElement===n):this._focusZone.current&&(t=this._focusZone.current.focusElement(n)),t):!1},o.prototype.componentDidMount=function(){this._registerPersistedKeytips()},o.prototype.componentWillUnmount=function(){this._unregisterPersistedKeytips()},o.prototype.UNSAFE_componentWillUpdate=function(){this._unregisterPersistedKeytips()},o.prototype.componentDidUpdate=function(){this._registerPersistedKeytips()},o.prototype._registerPersistedKeytips=function(){var n=this;Object.keys(this._persistedKeytips).forEach(function(t){var i=n._persistedKeytips[t],d=n._keytipManager.register(i,!0);n._persistedKeytips[d]=i,delete n._persistedKeytips[t]})},o.prototype._unregisterPersistedKeytips=function(){var n=this;Object.keys(this._persistedKeytips).forEach(function(t){n._keytipManager.unregister(n._persistedKeytips[t],t,!0)}),this._persistedKeytips={}},o.prototype._getSubMenuForItem=function(n){if(this.props.itemSubMenuProvider)return this.props.itemSubMenuProvider(n);if(n.subMenuProps)return n.subMenuProps.items},o})(M.Component),$v={flexShrink:0,display:"inherit"},_E=function(s){var o=s.className,n=s.vertical;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},n&&{flexDirection:"column"},o],item:["ms-OverflowSet-item",$v],overflowButton:["ms-OverflowSet-overflowButton",$v]}},ph=Ze(gE,_E,void 0,{scope:"OverflowSet"}),Kv=500,yE=3;function wE(s){return(function(o){Ne(n,o);function n(t){var i=o.call(this,t)||this;return i._root=M.createRef(),i._registerResizeObserver=function(){var d=nt(i._root.current);i._viewportResizeObserver=new d.ResizeObserver(i._onAsyncResize),i._viewportResizeObserver.observe(i._root.current)},i._unregisterResizeObserver=function(){i._viewportResizeObserver&&(i._viewportResizeObserver.disconnect(),delete i._viewportResizeObserver)},i._updateViewport=function(d){var c=i.state.viewport,u=i._root.current,h=ih(u),g=Zw(h),_=Zw(u),m=function(){d&&i._composedComponentInstance&&i._composedComponentInstance.forceUpdate()},x=(_&&_.width)!==c.width||(g&&g.height)!==c.height;x&&i._resizeAttempts<yE&&_&&g?(i._resizeAttempts++,i.setState({viewport:{width:_.width,height:g.height}},function(){i._updateViewport(d)})):(i._resizeAttempts=0,m())},i._async=new Wn(i),i._events=new Yt(i),i._resizeAttempts=0,i.state={viewport:{width:0,height:0}},i}return n.prototype.componentDidMount=function(){var t=this,i=this.props,d=i.delayFirstMeasure,c=i.disableResizeObserver,u=i.skipViewportMeasures,h=nt(this._root.current);this._onAsyncResize=this._async.debounce(this._onAsyncResize,Kv,{leading:!1}),u||(!c&&this._isResizeObserverAvailable()?this._registerResizeObserver():this._events.on(h,"resize",this._onAsyncResize),d?this._async.setTimeout(function(){t._updateViewport()},Kv):this._updateViewport())},n.prototype.componentDidUpdate=function(t){var i=t.skipViewportMeasures,d=this.props,c=d.disableResizeObserver,u=d.skipViewportMeasures,h=nt(this._root.current);u!==i&&(u?(this._unregisterResizeObserver(),this._events.off(h,"resize",this._onAsyncResize)):(!c&&this._isResizeObserverAvailable()?this._viewportResizeObserver||this._registerResizeObserver():this._events.on(h,"resize",this._onAsyncResize),this._updateViewport()))},n.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._unregisterResizeObserver()},n.prototype.render=function(){var t=this.state.viewport,i=t.width>0&&t.height>0?t:void 0;return M.createElement("div",{className:"ms-Viewport",ref:this._root,style:{minWidth:1,minHeight:1}},M.createElement(s,N({ref:this._updateComposedComponentRef,viewport:i},this.props)))},n.prototype.forceUpdate=function(){this._updateViewport(!0)},n.prototype._onAsyncResize=function(){this._updateViewport()},n.prototype._isResizeObserverAvailable=function(){var t=nt(this._root.current);return t&&t.ResizeObserver},n})(Mb)}var vE="data-selection-disabled",qv="data-selection-index",xE="data-selection-span",Mp="data-selection-toggle",sf="data-selection-invoke",bE="data-selection-touch-invoke",Jv="data-selection-all-toggle",SE="data-selection-select",CE=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;t._root=M.createRef(),t.ignoreNextFocus=function(){t._handleNextFocus(!1)},t._onSelectionChange=function(){var c=t.props.selection,u=c.isModal&&c.isModal();t.setState({isModal:u})},t._onMouseDownCapture=function(c){var u=c.target;if(document.activeElement!==u&&!un(document.activeElement,u)){t.ignoreNextFocus();return}if(un(u,t._root.current))for(;u!==t._root.current;){if(t._hasAttribute(u,sf)){t.ignoreNextFocus();break}u=Cn(u)}},t._onFocus=function(c){var u=c.target,h=t.props.selection,g=t._isCtrlPressed||t._isMetaPressed,_=t._getSelectionMode();if(t._shouldHandleFocus&&_!==it.none){var m=t._hasAttribute(u,Mp),x=t._findItemRoot(u);if(!m&&x){var y=t._getItemIndex(x),v=t._getItemSpan(x);v===void 0&&(g?(h.setIndexSelected(y,h.isIndexSelected(y),!0),t.props.enterModalOnTouch&&t._isTouch&&h.setModal&&(h.setModal(!0),t._setIsTouch(!1))):t.props.isSelectedOnFocus&&t._onItemSurfaceClick("focus",y))}}t._handleNextFocus(!1)},t._onMouseDown=function(c){t._updateModifiers(c);var u=t.props.toggleWithoutModifierPressed,h=c.target,g=t._findItemRoot(h);if(!t._isSelectionDisabled(h))for(;h!==t._root.current&&!t._hasAttribute(h,Jv);){if(g){if(t._hasAttribute(h,Mp))break;if(t._hasAttribute(h,sf))break;if((h===g||t._shouldAutoSelect(h))&&!t._isShiftPressed&&!t._isCtrlPressed&&!t._isMetaPressed&&!u){t._onInvokeMouseDown(c,t._getItemIndex(g),t._getItemSpan(g));break}else if(t.props.disableAutoSelectOnInputElements&&(h.tagName==="A"||h.tagName==="BUTTON"||h.tagName==="INPUT"))return}h=Cn(h)}},t._onTouchStartCapture=function(c){t._setIsTouch(!0)},t._onClick=function(c){var u=t.props.enableTouchInvocationTarget,h=u===void 0?!1:u;t._updateModifiers(c);for(var g=c.target,_=t._findItemRoot(g),m=t._isSelectionDisabled(g);g!==t._root.current;){if(t._hasAttribute(g,Jv)){m||t._onToggleAllClick(c);break}else if(_){var x=t._getItemIndex(_),y=t._getItemSpan(_);if(t._hasAttribute(g,Mp)){m||(t._isShiftPressed?t._onItemSurfaceClick("click",x,y):t._onToggleClick(c,x,y));break}else if(t._isTouch&&h&&t._hasAttribute(g,bE)||t._hasAttribute(g,sf)){y===void 0&&t._onInvokeClick(c,x);break}else if(g===_){m||t._onItemSurfaceClick("click",x,y);break}else if(g.tagName==="A"||g.tagName==="BUTTON"||g.tagName==="INPUT")return}g=Cn(g)}},t._onContextMenu=function(c){var u=c.target,h=t.props,g=h.onItemContextMenu,_=h.selection;if(g){var m=t._findItemRoot(u);if(m){var x=t._getItemIndex(m);t._onInvokeMouseDown(c,x);var y=g(_.getItems()[x],x,c.nativeEvent);y||c.preventDefault()}}},t._onDoubleClick=function(c){var u=c.target,h=t.props.onItemInvoked,g=t._findItemRoot(u);if(g&&h&&!t._isInputElement(u)){for(var _=t._getItemIndex(g);u!==t._root.current&&!(t._hasAttribute(u,Mp)||t._hasAttribute(u,sf));){if(u===g){t._onInvokeClick(c,_);break}u=Cn(u)}u=Cn(u)}},t._onKeyDownCapture=function(c){t._updateModifiers(c),t._handleNextFocus(!0)},t._onKeyDown=function(c){t._updateModifiers(c);var u=c.target,h=t._isSelectionDisabled(u),g=t.props,_=g.selection,m=g.selectionClearedOnEscapePress,x=c.which===ke.a&&(t._isCtrlPressed||t._isMetaPressed),y=c.which===ke.escape;if(!t._isInputElement(u)){var v=t._getSelectionMode();if(x&&v===it.multiple&&!_.isAllSelected()){h||_.setAllSelected(!0),c.stopPropagation(),c.preventDefault();return}if(m&&y&&_.getSelectedCount()>0){h||_.setAllSelected(!1),c.stopPropagation(),c.preventDefault();return}var b=t._findItemRoot(u);if(b)for(var C=t._getItemIndex(b),k=t._getItemSpan(b);u!==t._root.current&&!t._hasAttribute(u,Mp);){if(t._shouldAutoSelect(u)){!h&&k===void 0&&t._onInvokeMouseDown(c,C,k);break}else{if((c.which===ke.enter||c.which===ke.space)&&(u.tagName==="BUTTON"||u.tagName==="A"||u.tagName==="INPUT"))return!1;if(u===b){if(c.which===ke.enter){k===void 0&&(t._onInvokeClick(c,C),c.preventDefault());return}else if(c.which===ke.space){h||t._onToggleClick(c,C,k),c.preventDefault();return}break}}u=Cn(u)}}},t._events=new Yt(t),t._async=new Wn(t),St(t);var i=t.props.selection,d=i.isModal&&i.isModal();return t.state={isModal:d},t}return o.getDerivedStateFromProps=function(n,t){var i=n.selection.isModal&&n.selection.isModal();return N(N({},t),{isModal:i})},o.prototype.componentDidMount=function(){var n=nt(this._root.current);this._events.on(n,"keydown, keyup",this._updateModifiers,!0),this._events.on(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(document.body,"touchstart",this._onTouchStartCapture,!0),this._events.on(document.body,"touchend",this._onTouchStartCapture,!0),this._events.on(this.props.selection,"change",this._onSelectionChange)},o.prototype.render=function(){var n=this.state.isModal;return M.createElement("div",{className:sn("ms-SelectionZone",this.props.className,{"ms-SelectionZone--modal":!!n}),ref:this._root,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onKeyDownCapture:this._onKeyDownCapture,onClick:this._onClick,role:"presentation",onDoubleClick:this._onDoubleClick,onContextMenu:this._onContextMenu,onMouseDownCapture:this._onMouseDownCapture,onFocusCapture:this._onFocus,"data-selection-is-modal":n?!0:void 0},this.props.children,M.createElement(nu,null))},o.prototype.componentDidUpdate=function(n){var t=this.props.selection;t!==n.selection&&(this._events.off(n.selection),this._events.on(t,"change",this._onSelectionChange))},o.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose()},o.prototype._isSelectionDisabled=function(n){if(this._getSelectionMode()===it.none)return!0;for(;n!==this._root.current;){if(this._hasAttribute(n,vE))return!0;n=Cn(n)}return!1},o.prototype._onToggleAllClick=function(n){var t=this.props.selection,i=this._getSelectionMode();i===it.multiple&&(t.toggleAllSelected(),n.stopPropagation(),n.preventDefault())},o.prototype._onToggleClick=function(n,t,i){var d=this.props.selection,c=this._getSelectionMode();if(d.setChangeEvents(!1),this.props.enterModalOnTouch&&this._isTouch&&(i!==void 0?!d.isRangeSelected(t,i):!d.isIndexSelected(t))&&d.setModal&&(d.setModal(!0),this._setIsTouch(!1)),c===it.multiple)i!==void 0?d.toggleRangeSelected(t,i):d.toggleIndexSelected(t);else if(c===it.single){if(i===void 0||i===1){var u=d.isIndexSelected(t),h=d.isModal&&d.isModal();d.setAllSelected(!1),d.setIndexSelected(t,!u,!0),h&&d.setModal&&d.setModal(!0)}}else{d.setChangeEvents(!0);return}d.setChangeEvents(!0),n.stopPropagation()},o.prototype._onInvokeClick=function(n,t){var i=this.props,d=i.selection,c=i.onItemInvoked;c&&(c(d.getItems()[t],t,n.nativeEvent),n.preventDefault(),n.stopPropagation())},o.prototype._onItemSurfaceClick=function(n,t,i){var d,c,u=this.props,h=u.selection,g=u.toggleWithoutModifierPressed,_=this._isCtrlPressed||this._isMetaPressed,m=this._getSelectionMode();m===it.multiple?this._isShiftPressed&&!this._isTabPressed?i!==void 0?(c=(d=h).selectToRange)===null||c===void 0||c.call(d,t,i,!_):h.selectToIndex(t,!_):n==="click"&&(_||g)?i!==void 0?h.toggleRangeSelected(t,i):h.toggleIndexSelected(t):this._clearAndSelectIndex(t,i):m===it.single&&this._clearAndSelectIndex(t,i)},o.prototype._onInvokeMouseDown=function(n,t,i){var d=this.props.selection;if(i!==void 0){if(d.isRangeSelected(t,i))return}else if(d.isIndexSelected(t))return;this._clearAndSelectIndex(t,i)},o.prototype._findScrollParentAndTryClearOnEmptyClick=function(n){var t=ih(this._root.current);this._events.off(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(t,"click",this._tryClearOnEmptyClick),(t&&n.target instanceof Node&&t.contains(n.target)||t===n.target)&&this._tryClearOnEmptyClick(n)},o.prototype._tryClearOnEmptyClick=function(n){!this.props.selectionPreservedOnEmptyClick&&this._isNonHandledClick(n.target)&&this.props.selection.setAllSelected(!1)},o.prototype._clearAndSelectIndex=function(n,t){var i,d,c=this.props,u=c.selection,h=c.selectionClearedOnSurfaceClick,g=h===void 0?!0:h,_=(t===void 0||t===1)&&u.getSelectedCount()===1&&u.isIndexSelected(n);if(!_&&g){var m=u.isModal&&u.isModal();u.setChangeEvents(!1),u.setAllSelected(!1),t!==void 0?(d=(i=u).setRangeSelected)===null||d===void 0||d.call(i,n,t,!0,!0):u.setIndexSelected(n,!0,!0),(m||this.props.enterModalOnTouch&&this._isTouch)&&(u.setModal&&u.setModal(!0),this._isTouch&&this._setIsTouch(!1)),u.setChangeEvents(!0)}},o.prototype._updateModifiers=function(n){this._isShiftPressed=n.shiftKey,this._isCtrlPressed=n.ctrlKey,this._isMetaPressed=n.metaKey;var t=n.keyCode;this._isTabPressed=t?t===ke.tab:!1},o.prototype._findItemRoot=function(n){for(var t=this.props.selection;n!==this._root.current;){var i=n.getAttribute(qv),d=Number(i);if(i!==null&&d>=0&&d<t.getItems().length)break;n=Cn(n)}if(n!==this._root.current)return n},o.prototype._getItemIndex=function(n){var t,i=parseInt((t=n.getAttribute(qv),t??""),10);return isNaN(i)?-1:i},o.prototype._getItemSpan=function(n){var t,i=parseInt((t=n.getAttribute(xE),t??""),10);return isNaN(i)?void 0:i},o.prototype._shouldAutoSelect=function(n){return this._hasAttribute(n,SE)},o.prototype._hasAttribute=function(n,t){for(var i=!1;!i&&n!==this._root.current;){var d=n.getAttribute(t);if(d==="false"){i=!1;break}i=d==="true",n=Cn(n)}return i},o.prototype._isInputElement=function(n){return n.tagName==="INPUT"||n.tagName==="TEXTAREA"},o.prototype._isNonHandledClick=function(n){var t=yn();if(t&&n)for(;n&&n!==t.documentElement;){if(Yo(n))return!1;n=Cn(n)}return!0},o.prototype._handleNextFocus=function(n){var t=this;this._shouldHandleFocusTimeoutId&&(this._async.clearTimeout(this._shouldHandleFocusTimeoutId),this._shouldHandleFocusTimeoutId=void 0),this._shouldHandleFocus=n,n&&this._async.setTimeout(function(){t._shouldHandleFocus=!1},100)},o.prototype._setIsTouch=function(n){var t=this;this._isTouchTimeoutId&&(this._async.clearTimeout(this._isTouchTimeoutId),this._isTouchTimeoutId=void 0),this._isTouch=!0,n&&this._async.setTimeout(function(){t._isTouch=!1},300)},o.prototype._getSelectionMode=function(){var n=this.props.selection,t=this.props.selectionMode,i=t===void 0?n?n.mode:it.none:t;return i},o.defaultProps={isSelectedOnFocus:!0,toggleWithoutModifierPressed:!1,selectionMode:it.multiple,selectionClearedOnEscapePress:!0},o})(M.Component),Zp;(function(s){s[s.hidden=0]="hidden",s[s.visible=1]="visible"})(Zp||(Zp={}));var Oo;(function(s){s[s.disabled=0]="disabled",s[s.clickable=1]="clickable",s[s.hasDropdown=2]="hasDropdown"})(Oo||(Oo={}));var Kf;(function(s){s[s.unconstrained=0]="unconstrained",s[s.horizontalConstrained=1]="horizontalConstrained"})(Kf||(Kf={}));var Hc;(function(s){s[s.outside=0]="outside",s[s.surface=1]="surface",s[s.header=2]="header"})(Hc||(Hc={}));var qc;(function(s){s[s.fixedColumns=0]="fixedColumns",s[s.justified=1]="justified"})(qc||(qc={}));var Os;(function(s){s[s.onHover=0]="onHover",s[s.always=1]="always",s[s.hidden=2]="hidden"})(Os||(Os={}));var Xp=36,Jc=function(s){var o=s.count,n=s.indentWidth,t=n===void 0?Xp:n,i=s.role,d=i===void 0?"presentation":i,c=o*t;return o>0?M.createElement("span",{className:"ms-GroupSpacer",style:{display:"inline-block",width:c},role:d}):null},kE={root:"ms-GroupedList",compact:"ms-GroupedList--Compact",group:"ms-GroupedList-group",link:"ms-Link",listCell:"ms-List-cell"},ME={easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"},jE=function(s){var o,n,t=s.theme,i=s.className,d=s.compact,c=t.palette,u=at(kE,t);return{root:[u.root,t.fonts.small,{position:"relative",selectors:(o={},o["."+u.listCell]={minHeight:38},o)},d&&[u.compact,{selectors:(n={},n["."+u.listCell]={minHeight:32},n)}],i],group:[u.group,{transition:"background-color "+mo.durationValue2+" "+ME.easeInOutSine}],groupIsDropping:{backgroundColor:c.neutralLight}}},LE={root:"ms-DetailsRow",compact:"ms-DetailsList--Compact",cell:"ms-DetailsRow-cell",cellAnimation:"ms-DetailsRow-cellAnimation",cellCheck:"ms-DetailsRow-cellCheck",check:"ms-DetailsRow-check",cellMeasurer:"ms-DetailsRow-cellMeasurer",listCellFirstChild:"ms-List-cell:first-child",isContentUnselectable:"is-contentUnselectable",isSelected:"is-selected",isCheckVisible:"is-check-visible",isRowHeader:"is-row-header",fields:"ms-DetailsRow-fields"},EE="[data-is-focusable='true']",Ci={cellLeftPadding:12,cellRightPadding:8,cellExtraRightPadding:24},gd={rowHeight:42,compactRowHeight:32},Oa=N(N({},gd),{rowVerticalPadding:11,compactRowVerticalPadding:6}),DE=function(s){var o,n,t,i,d,c,u,h,g,_,m,x,y=s.theme,v=s.isSelected,b=s.canSelect,C=s.droppingClassName,k=s.anySelected,L=s.isCheckVisible,I=s.checkboxCellClassName,A=s.compact,Y=s.className,P=s.cellStyleProps,T=P===void 0?Ci:P,F=s.enableUpdateAnimations,H=s.disabled,W=y.palette,K=y.fonts,Z=W.neutralPrimary,Q=W.white,B=W.neutralSecondary,R=W.neutralLighter,X=W.neutralLight,$=W.neutralDark,ie=W.neutralQuaternaryAlt,le=y.semanticColors.focusBorder,V=at(LE,y),z={defaultHeaderText:Z,defaultMetaText:B,defaultBackground:Q,defaultHoverHeaderText:$,defaultHoverMetaText:Z,defaultHoverBackground:R,selectedHeaderText:$,selectedMetaText:Z,selectedBackground:X,selectedHoverHeaderText:$,selectedHoverMetaText:Z,selectedHoverBackground:ie,focusHeaderText:$,focusMetaText:Z,focusBackground:X,focusHoverBackground:ie},J={top:2,right:2,bottom:2,left:2},ee=[On(y,{inset:-1,borderColor:le,outlineColor:Q,highContrastStyle:J}),V.isSelected,{color:z.selectedMetaText,background:z.selectedBackground,borderBottom:"1px solid "+Q,selectors:(o={"&:before":{position:"absolute",display:"block",top:-1,height:1,bottom:0,left:0,right:0,content:"",borderTop:"1px solid "+Q},"&:hover":{background:z.selectedHoverBackground,color:z.selectedHoverMetaText,selectors:(n={},n["."+V.cell+" "+_e]={color:"HighlightText",selectors:{"> a":{color:"HighlightText"}}},n["."+V.isRowHeader]={color:z.selectedHoverHeaderText,selectors:(t={},t[_e]={color:"HighlightText"},t)},n[_e]={background:"Highlight"},n)},"&:focus":{background:z.focusBackground,selectors:(i={},i["."+V.cell]={color:z.focusMetaText,selectors:(d={},d[_e]={color:"HighlightText",selectors:{"> a":{color:"HighlightText"}}},d)},i["."+V.isRowHeader]={color:z.focusHeaderText,selectors:(c={},c[_e]={color:"HighlightText"},c)},i[_e]={background:"Highlight"},i)}},o[_e]=N(N({background:"Highlight",color:"HighlightText"},bt()),{selectors:{a:{color:"HighlightText"}}}),o["&:focus:hover"]={background:z.focusHoverBackground},o)}],he=[V.isContentUnselectable,{userSelect:"none",cursor:"default"}],te={minHeight:Oa.compactRowHeight,border:0},G={minHeight:Oa.compactRowHeight,paddingTop:Oa.compactRowVerticalPadding,paddingBottom:Oa.compactRowVerticalPadding,paddingLeft:T.cellLeftPadding+"px"},re=[On(y,{inset:-1}),V.cell,{display:"inline-block",position:"relative",boxSizing:"border-box",minHeight:Oa.rowHeight,verticalAlign:"top",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingTop:Oa.rowVerticalPadding,paddingBottom:Oa.rowVerticalPadding,paddingLeft:T.cellLeftPadding+"px",selectors:(u={"& > button":{maxWidth:"100%"}},u[EE]=On(y,{inset:-1,borderColor:B,outlineColor:Q}),u)},v&&{selectors:(h={},h[_e]=N(N({background:"Highlight",color:"HighlightText"},bt()),{selectors:{a:{color:"HighlightText"}}}),h)},A&&G,H&&{opacity:.5}];return{root:[V.root,Jr.fadeIn400,C,y.fonts.small,L&&V.isCheckVisible,On(y,{borderColor:le,outlineColor:Q}),{borderBottom:"1px solid "+R,background:z.defaultBackground,color:z.defaultMetaText,display:"inline-flex",minWidth:"100%",minHeight:Oa.rowHeight,whiteSpace:"nowrap",padding:0,boxSizing:"border-box",verticalAlign:"top",textAlign:"left",selectors:(g={},g["."+V.listCellFirstChild+" &:before"]={display:"none"},g["&:hover"]={background:z.defaultHoverBackground,color:z.defaultHoverMetaText,selectors:(_={},_["."+V.isRowHeader]={color:z.defaultHoverHeaderText},_)},g["&:hover ."+V.check]={opacity:1},g["."+fn+" &:focus ."+V.check]={opacity:1},g)},v&&ee,!b&&he,A&&te,Y],cellUnpadded:{paddingRight:T.cellRightPadding+"px"},cellPadded:{paddingRight:T.cellExtraRightPadding+T.cellRightPadding+"px",selectors:(m={},m["&."+V.cellCheck]={paddingRight:0},m)},cell:re,cellAnimation:F&&ib.slideLeftIn40,cellMeasurer:[V.cellMeasurer,{overflow:"visible",whiteSpace:"nowrap"}],checkCell:[re,V.cellCheck,I,{padding:0,paddingTop:1,marginTop:-1,flexShrink:0}],checkCover:{position:"absolute",top:-1,left:0,bottom:0,right:0,display:k?"block":"none"},fields:[V.fields,{display:"flex",alignItems:"stretch"}],isRowHeader:[V.isRowHeader,{color:z.defaultHeaderText,fontSize:K.medium.fontSize},v&&{color:z.selectedHeaderText,fontWeight:Lt.semibold,selectors:(x={},x[_e]={color:"HighlightText"},x)}],isMultiline:[re,{whiteSpace:"normal",wordBreak:"break-word",textOverflow:"clip"}],check:[V.check]}},Yb={tooltipHost:"ms-TooltipHost",root:"ms-DetailsHeader",cell:"ms-DetailsHeader-cell",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintCaretStyle:"ms-DetailsHeader-dropHintCaretStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVertical:"ms-DetailsColumn-gripperBarVertical",checkTooltip:"ms-DetailsHeader-checkTooltip",check:"ms-DetailsHeader-check"},Np=42,Wb=function(s){var o=s.theme,n=s.cellStyleProps,t=n===void 0?Ci:n,i=o.semanticColors,d=at(Yb,o);return[d.cell,On(o),{color:i.bodyText,position:"relative",display:"inline-block",boxSizing:"border-box",padding:"0 "+t.cellRightPadding+"px 0 "+t.cellLeftPadding+"px",lineHeight:"inherit",margin:"0",height:Np,verticalAlign:"top",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"left"}]},IE=function(s){var o,n,t,i,d=s.theme,c=s.className,u=s.isAllSelected,h=s.isResizingColumn,g=s.isSizing,_=s.isAllCollapsed,m=s.cellStyleProps,x=m===void 0?Ci:m,y=d.semanticColors,v=d.palette,b=d.fonts,C=at(Yb,d),k={iconForegroundColor:y.bodySubtext,headerForegroundColor:y.bodyText,headerBackgroundColor:y.bodyBackground,resizerColor:v.neutralTertiaryAlt},L={opacity:1,transition:"opacity 0.3s linear"},I=Wb(s);return{root:[C.root,b.small,{display:"inline-block",background:k.headerBackgroundColor,position:"relative",minWidth:"100%",verticalAlign:"top",height:Np,lineHeight:Np,whiteSpace:"nowrap",boxSizing:"content-box",paddingBottom:"1px",paddingTop:"16px",borderBottom:"1px solid "+y.bodyDivider,cursor:"default",userSelect:"none",selectors:(o={},o["&:hover ."+C.check]={opacity:1},o["& ."+C.tooltipHost+" ."+C.checkTooltip]={display:"block"},o)},u&&C.isAllSelected,h&&C.isResizingColumn,c],check:[C.check,{height:Np},{selectors:(n={},n["."+fn+" &:focus"]={opacity:1},n)}],cellWrapperPadded:{paddingRight:x.cellExtraRightPadding+x.cellRightPadding},cellIsCheck:[I,C.cellIsCheck,{position:"relative",padding:0,margin:0,display:"inline-flex",alignItems:"center",border:"none"},u&&{opacity:1}],cellIsGroupExpander:[I,{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:b.small.fontSize,padding:0,border:"none",width:Xp,color:v.neutralSecondary,selectors:{":hover":{backgroundColor:v.neutralLighter},":active":{backgroundColor:v.neutralLight}}}],cellIsActionable:{selectors:{":hover":{color:y.bodyText,background:y.listHeaderBackgroundHovered},":active":{background:y.listHeaderBackgroundPressed}}},cellIsEmpty:{textOverflow:"clip"},cellSizer:[C.cellSizer,Jy(),{display:"inline-block",position:"relative",cursor:"ew-resize",bottom:0,top:0,overflow:"hidden",height:"inherit",background:"transparent",zIndex:1,width:16,selectors:(t={":after":{content:'""',position:"absolute",top:0,bottom:0,width:1,background:k.resizerColor,opacity:0,left:"50%"},":focus:after":L,":hover:after":L},t["&."+C.isResizing+":after"]=[L,{boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.4)"}],t)}],cellIsResizing:C.isResizing,cellSizerStart:{margin:"0 -8px"},cellSizerEnd:{margin:0,marginLeft:-16},collapseButton:[C.collapseButton,{transformOrigin:"50% 50%",transition:"transform .1s linear"},_?[C.isCollapsed,{transform:"rotate(0deg)"}]:{transform:At(d)?"rotate(-90deg)":"rotate(90deg)"}],checkTooltip:C.checkTooltip,sizingOverlay:g&&{position:"absolute",left:0,top:0,right:0,bottom:0,cursor:"ew-resize",background:"rgba(255, 255, 255, 0)",selectors:(i={},i[_e]=N({background:"transparent"},bt()),i)},accessibleLabel:wd,dropHintCircleStyle:[C.dropHintCircleStyle,{display:"inline-block",visibility:"hidden",position:"absolute",bottom:0,height:9,width:9,borderRadius:"50%",marginLeft:-5,top:34,overflow:"visible",zIndex:10,border:"1px solid "+v.themePrimary,background:v.white}],dropHintCaretStyle:[C.dropHintCaretStyle,{display:"none",position:"absolute",top:-28,left:-6.5,fontSize:b.medium.fontSize,color:v.themePrimary,overflow:"visible",zIndex:10}],dropHintLineStyle:[C.dropHintLineStyle,{display:"none",position:"absolute",bottom:0,top:0,overflow:"hidden",height:42,width:1,background:v.themePrimary,zIndex:10}],dropHintStyle:{display:"inline-block",position:"absolute"}}},TE={root:"ms-DetailsRow-check",isDisabled:"ms-DetailsRow-check--isDisabled",isHeader:"ms-DetailsRow-check--isHeader"},qf=48,AE=function(s){var o=s.theme,n=s.className,t=s.isHeader,i=s.selected,d=s.anySelected,c=s.canSelect,u=s.compact,h=s.isVisible,g=at(TE,o),_=gd.rowHeight,m=gd.compactRowHeight,x=t?Np:u?m:_,y=h||i||d;return{root:[g.root,n],check:[!c&&g.isDisabled,t&&g.isHeader,On(o),o.fonts.small,Fb.checkHost,{display:"flex",alignItems:"center",justifyContent:"center",cursor:"default",boxSizing:"border-box",verticalAlign:"top",background:"none",backgroundColor:"transparent",border:"none",opacity:y?1:0,height:x,width:qf,padding:0,margin:0}],isDisabled:[]}},PE={root:"ms-GroupHeader",compact:"ms-GroupHeader--compact",check:"ms-GroupHeader-check",dropIcon:"ms-GroupHeader-dropIcon",expand:"ms-GroupHeader-expand",isCollapsed:"is-collapsed",title:"ms-GroupHeader-title",isSelected:"is-selected",iconTag:"ms-Icon--Tag",group:"ms-GroupedList-group",isDropping:"is-dropping"},of={easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.045)"},RE=48,FE=40,NE=function(s){var o,n,t,i,d,c=s.theme,u=s.className,h=s.selected,g=s.isCollapsed,_=s.compact,m=Ci.cellLeftPadding,x=_?FE:RE,y=c.semanticColors,v=c.palette,b=c.fonts,C=at(PE,c),k=[On(c),{cursor:"default",background:"none",backgroundColor:"transparent",border:"none",padding:0}];return{root:[C.root,On(c),c.fonts.medium,{borderBottom:"1px solid "+y.listBackground,cursor:"default",userSelect:"none",selectors:(o={":hover":{background:y.listItemBackgroundHovered,color:y.actionLinkHovered}},o["&:hover ."+C.check]={opacity:1},o["."+fn+" &:focus ."+C.check]={opacity:1},o[":global(."+C.group+"."+C.isDropping+")"]={selectors:(n={},n["& > ."+C.root+" ."+C.dropIcon]={transition:"transform "+mo.durationValue4+" "+of.easeOutCirc+" "+("opacity "+mo.durationValue1+" "+of.easeOutSine),transitionDelay:mo.durationValue3,opacity:1,transform:"rotate(0.2deg) scale(1);"},n["."+C.check]={opacity:0},n)},o)},h&&[C.isSelected,{background:y.listItemBackgroundChecked,selectors:(t={":hover":{background:y.listItemBackgroundCheckedHovered}},t[""+C.check]={opacity:1},t)}],_&&[C.compact,{border:"none"}],u],groupHeaderContainer:[{display:"flex",alignItems:"center",height:x}],headerCount:[{padding:"0px 4px"}],check:[C.check,k,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:1,marginTop:-1,opacity:0,width:qf,height:x,selectors:(i={},i["."+fn+" &:focus"]={opacity:1},i)}],expand:[C.expand,k,{display:"flex",alignItems:"center",justifyContent:"center",fontSize:b.small.fontSize,width:Xp,height:x,color:h?v.neutralPrimary:v.neutralSecondary,selectors:{":hover":{backgroundColor:h?v.neutralQuaternary:v.neutralLight},":active":{backgroundColor:h?v.neutralTertiaryAlt:v.neutralQuaternaryAlt}}}],expandIsCollapsed:[g?[C.isCollapsed,{transform:"rotate(0deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}]:{transform:At(c)?"rotate(-90deg)":"rotate(90deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}],title:[C.title,{paddingLeft:m,fontSize:_?b.medium.fontSize:b.mediumPlus.fontSize,fontWeight:g?Lt.regular:Lt.semibold,cursor:"pointer",outline:0,whiteSpace:"nowrap",textOverflow:"ellipsis"}],dropIcon:[C.dropIcon,{position:"absolute",left:-26,fontSize:Mr.large,color:v.neutralSecondary,transition:"transform "+mo.durationValue2+" "+of.easeInBack+", "+("opacity "+mo.durationValue4+" "+of.easeOutSine),opacity:0,transform:"rotate(0.2deg) scale(0.65)",transformOrigin:"10px 10px",selectors:(d={},d[":global(."+C.iconTag+")"]={position:"absolute"},d)}]}},Te;(function(s){s[s.xSmall=0]="xSmall",s[s.small=1]="small",s[s.medium=2]="medium",s[s.large=3]="large"})(Te||(Te={}));var jy;(function(s){s[s.normal=0]="normal",s[s.large=1]="large"})(jy||(jy={}));var OE=Je(),YE=(function(s){Ne(o,s);function o(){return s!==null&&s.apply(this,arguments)||this}return o.prototype.render=function(){var n=this.props,t=n.type,i=n.size,d=n.ariaLabel,c=n.ariaLive,u=n.styles,h=n.label,g=n.theme,_=n.className,m=n.labelPosition,x=d,y=pt(this.props,Yn,["size"]),v=i;v===void 0&&t!==void 0&&(v=t===jy.large?Te.large:Te.medium);var b=OE(u,{theme:g,size:v,className:_,labelPosition:m});return M.createElement("div",N({},y,{className:b.root}),M.createElement("div",{className:b.circle}),h&&M.createElement("div",{className:b.label},h),x&&M.createElement("div",{role:"status","aria-live":c},M.createElement(og,null,M.createElement("div",{className:b.screenReaderText},x))))},o.defaultProps={size:Te.medium,ariaLive:"polite",labelPosition:"bottom"},o})(M.Component),WE={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},BE=Et(function(){return wn({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})}),HE=function(s){var o,n=s.theme,t=s.size,i=s.className,d=s.labelPosition,c=n.palette,u=at(WE,n);return{root:[u.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},d==="top"&&{flexDirection:"column-reverse"},d==="right"&&{flexDirection:"row"},d==="left"&&{flexDirection:"row-reverse"},i],circle:[u.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+c.themeLight,borderTopColor:c.themePrimary,animationName:BE(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(o={},o[_e]=N({borderTopColor:"Highlight"},bt()),o)},t===Te.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],t===Te.small&&["ms-Spinner--small",{width:16,height:16}],t===Te.medium&&["ms-Spinner--medium",{width:20,height:20}],t===Te.large&&["ms-Spinner--large",{width:28,height:28}]],label:[u.label,n.fonts.small,{color:c.themePrimary,margin:"8px 0 0",textAlign:"center"},d==="top"&&{margin:"0 0 8px"},d==="right"&&{margin:"0 0 0 8px"},d==="left"&&{margin:"0 8px 0 0"}],screenReaderText:wd}},Oe=Ze(YE,HE,void 0,{scope:"Spinner"}),zE=Je(),UE=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._toggleCollapse=function(){var i=t.props,d=i.group,c=i.onToggleCollapse,u=i.isGroupLoading,h=t.state.isCollapsed,g=!h,_=!g&&u&&u(d);t.setState({isCollapsed:g,isLoadingVisible:_}),c&&c(d)},t._onKeyUp=function(i){var d=t.props,c=d.group,u=d.onGroupHeaderKeyUp;if(u&&u(i,c),!i.defaultPrevented){var h=t.state.isCollapsed&&i.which===Bf(ke.right,t.props.theme),g=!t.state.isCollapsed&&i.which===Bf(ke.left,t.props.theme);(g||h)&&(t._toggleCollapse(),i.stopPropagation(),i.preventDefault())}},t._onToggleClick=function(i){t._toggleCollapse(),i.stopPropagation(),i.preventDefault()},t._onHeaderClick=function(){var i=t.props,d=i.group,c=i.onGroupHeaderClick;c&&c(d)},t._onRenderTitle=function(i){var d=i.group;if(!d)return null;var c=i.onRenderName?Ns(i.onRenderName,t._onRenderName):t._onRenderName;return M.createElement("div",{className:t._classNames.title,id:t._id,onClick:t._onHeaderClick,role:"gridcell","aria-colspan":t.props.ariaColSpan,"data-selection-invoke":!0},c(i))},t._onRenderName=function(i){var d=i.group;return d?M.createElement(M.Fragment,null,M.createElement("span",null,d.name),M.createElement("span",{className:t._classNames.headerCount},"(",d.count,d.hasMoreData&&"+",")")):null},t._id=zt("GroupHeader"),t.state={isCollapsed:t.props.group&&t.props.group.isCollapsed,isLoadingVisible:!1},t}return o.getDerivedStateFromProps=function(n,t){if(n.group){var i=n.group.isCollapsed,d=n.isGroupLoading,c=!i&&d&&d(n.group);return N(N({},t),{isCollapsed:i||!1,isLoadingVisible:c||!1})}return t},o.prototype.render=function(){var n=this.props,t=n.group,i=n.groupLevel,d=i===void 0?0:i,c=n.viewport,u=n.selectionMode,h=n.loadingText,g=n.isSelected,_=g===void 0?!1:g,m=n.selected,x=m===void 0?!1:m,y=n.indentWidth,v=n.onRenderGroupHeaderCheckbox,b=n.isCollapsedGroupSelectVisible,C=b===void 0?!0:b,k=n.expandButtonProps,L=n.expandButtonIcon,I=n.selectAllButtonProps,A=n.theme,Y=n.styles,P=n.className,T=n.compact,F=n.ariaPosInSet,H=n.ariaSetSize,W=n.ariaRowIndex,K=n.useFastIcons,Z=this.props.onRenderTitle?Ns(this.props.onRenderTitle,this._onRenderTitle):this._onRenderTitle,Q=K?this._fastDefaultCheckboxRender:this._defaultCheckboxRender,B=v?Ns(v,Q):Q,R=this.state,X=R.isCollapsed,$=R.isLoadingVisible,ie=u===it.multiple,le=ie&&(C||!(t&&t.isCollapsed)),V=x||_,z=At(A);return this._classNames=zE(Y,{theme:A,className:P,selected:V,isCollapsed:X,compact:T}),t?M.createElement("div",{className:this._classNames.root,style:c?{minWidth:c.width}:{},role:"row","aria-setsize":H,"aria-posinset":F,"aria-rowindex":W,"data-is-focusable":!0,onKeyUp:this._onKeyUp,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabel?void 0:this._id,"aria-expanded":!this.state.isCollapsed,"aria-selected":ie?V:void 0,"aria-level":d+1,"data-selection-index":t.startIndex,"data-selection-span":t.count},M.createElement("div",{className:this._classNames.groupHeaderContainer,role:"presentation"},le?M.createElement("div",{role:"gridcell"},M.createElement("button",N({"data-is-focusable":!1,type:"button",className:this._classNames.check,role:"checkbox",id:this._id+"-check","aria-checked":V,"aria-labelledby":this._id+"-check "+this._id,"data-selection-toggle":!0},I),B({checked:V,theme:A},B))):u!==it.none&&M.createElement(Jc,{indentWidth:y,count:1}),M.createElement(Jc,{indentWidth:y,count:d}),M.createElement("div",{className:this._classNames.dropIcon,role:"presentation"},M.createElement(Ue,{iconName:"Tag"})),M.createElement("div",{role:"gridcell"},M.createElement("button",N({"data-is-focusable":!1,"data-selection-disabled":!0,type:"button",className:this._classNames.expand,onClick:this._onToggleClick,"aria-expanded":!this.state.isCollapsed},k),M.createElement(Ue,{className:this._classNames.expandIsCollapsed,iconName:L||(z?"ChevronLeftMed":"ChevronRightMed")}))),Z(this.props),$&&M.createElement(Oe,{label:h}))):null},o.prototype._defaultCheckboxRender=function(n){return M.createElement(_g,{checked:n.checked})},o.prototype._fastDefaultCheckboxRender=function(n){return M.createElement(VE,{theme:n.theme,checked:n.checked})},o.defaultProps={expandButtonProps:{"aria-label":"expand collapse group"}},o})(M.Component),VE=M.memo(function(s){return M.createElement(_g,{theme:s.theme,checked:s.checked,className:s.className,useFastIcons:!0})}),GE=Ze(UE,NE,void 0,{scope:"GroupHeader"}),$E={root:"ms-GroupShowAll",link:"ms-Link"},KE=function(s){var o,n=s.theme,t=n.fonts,i=at($E,n);return{root:[i.root,{position:"relative",padding:"10px 84px",cursor:"pointer",selectors:(o={},o["."+i.link]={fontSize:t.small.fontSize},o)}]}},qE=Je(),JE=function(s){var o=s.group,n=s.groupLevel,t=s.showAllLinkText,i=t===void 0?"Show All":t,d=s.styles,c=s.theme,u=s.onToggleSummarize,h=qE(d,{theme:c}),g=M.useCallback(function(_){u(o),_.stopPropagation(),_.preventDefault()},[u,o]);return o?M.createElement("div",{className:h.root},M.createElement(Jc,{count:n}),M.createElement(Cb,{onClick:g},i)):null},ZE=Ze(JE,KE,void 0,{scope:"GroupShowAll"}),XE={root:"ms-groupFooter"},QE=function(s){var o=s.theme,n=s.className,t=at(XE,o);return{root:[o.fonts.medium,t.root,{position:"relative",padding:"5px 38px"},n]}},e1=Je(),t1=function(s){var o=s.group,n=s.groupLevel,t=s.footerText,i=s.indentWidth,d=s.styles,c=s.theme,u=e1(d,{theme:c});return o&&t?M.createElement("div",{className:u.root},M.createElement(Jc,{indentWidth:i,count:n}),t):null},n1=Ze(t1,QE,void 0,{scope:"GroupFooter"}),r1="is-dropping",s1=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;t._root=M.createRef(),t._list=M.createRef(),t._subGroupRefs={},t._droppingClassName="",t._onRenderGroupHeader=function(c){return M.createElement(GE,N({},c))},t._onRenderGroupShowAll=function(c){return M.createElement(ZE,N({},c))},t._onRenderGroupFooter=function(c){return M.createElement(n1,N({},c))},t._renderSubGroup=function(c,u){var h=t.props,g=h.dragDropEvents,_=h.dragDropHelper,m=h.eventsToRegister,x=h.getGroupItemLimit,y=h.groupNestingDepth,v=h.groupProps,b=h.items,C=h.headerProps,k=h.showAllProps,L=h.footerProps,I=h.listProps,A=h.onRenderCell,Y=h.selection,P=h.selectionMode,T=h.viewport,F=h.onRenderGroupHeader,H=h.onRenderGroupShowAll,W=h.onRenderGroupFooter,K=h.onShouldVirtualize,Z=h.group,Q=h.compact,B=c.level?c.level+1:y;return!c||c.count>0||v&&v.showEmptyGroups?M.createElement(o,{ref:function(R){return t._subGroupRefs["subGroup_"+u]=R},key:t._getGroupKey(c,u),dragDropEvents:g,dragDropHelper:_,eventsToRegister:m,footerProps:L,getGroupItemLimit:x,group:c,groupIndex:u,groupNestingDepth:B,groupProps:v,headerProps:C,items:b,listProps:I,onRenderCell:A,selection:Y,selectionMode:P,showAllProps:k,viewport:T,onRenderGroupHeader:F,onRenderGroupShowAll:H,onRenderGroupFooter:W,onShouldVirtualize:K,groups:Z?Z.children:[],compact:Q}):null},t._getGroupDragDropOptions=function(){var c=t.props,u=c.group,h=c.groupIndex,g=c.dragDropEvents,_=c.eventsToRegister,m={eventMap:_,selectionIndex:-1,context:{data:u,index:h,isGroup:!0},updateDropState:t._updateDroppingState,canDrag:g.canDrag,canDrop:g.canDrop,onDrop:g.onDrop,onDragStart:g.onDragStart,onDragEnter:g.onDragEnter,onDragLeave:g.onDragLeave,onDragEnd:g.onDragEnd,onDragOver:g.onDragOver};return m},t._updateDroppingState=function(c,u){var h=t.state.isDropping,g=t.props,_=g.dragDropEvents,m=g.group;h!==c&&(h?_&&_.onDragLeave&&_.onDragLeave(m,u):_&&_.onDragEnter&&(t._droppingClassName=_.onDragEnter(m,u)),t.setState({isDropping:c}))};var i=n.selection,d=n.group;return St(t),t._id=zt("GroupedListSection"),t.state={isDropping:!1,isSelected:i&&d?i.isRangeSelected(d.startIndex,d.count):!1},t._events=new Yt(t),t}return o.prototype.componentDidMount=function(){var n=this.props,t=n.dragDropHelper,i=n.selection;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())),i&&this._events.on(i,ag,this._onSelectionChange)},o.prototype.componentWillUnmount=function(){this._events.dispose(),this._dragDropSubscription&&this._dragDropSubscription.dispose()},o.prototype.componentDidUpdate=function(n){(this.props.group!==n.group||this.props.groupIndex!==n.groupIndex||this.props.dragDropHelper!==n.dragDropHelper)&&(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())))},o.prototype.render=function(){var n=this.props,t=n.getGroupItemLimit,i=n.group,d=n.groupIndex,c=n.headerProps,u=n.showAllProps,h=n.footerProps,g=n.viewport,_=n.selectionMode,m=n.onRenderGroupHeader,x=m===void 0?this._onRenderGroupHeader:m,y=n.onRenderGroupShowAll,v=y===void 0?this._onRenderGroupShowAll:y,b=n.onRenderGroupFooter,C=b===void 0?this._onRenderGroupFooter:b,k=n.onShouldVirtualize,L=n.groupedListClassNames,I=n.groups,A=n.compact,Y=n.listProps,P=Y===void 0?{}:Y,T=this.state.isSelected,F=i&&t?t(i):1/0,H=i&&!i.children&&!i.isCollapsed&&!i.isShowingAll&&(i.count>F||i.hasMoreData),W=i&&i.children&&i.children.length>0,K=P.version,Z={group:i,groupIndex:d,groupLevel:i?i.level:0,isSelected:T,selected:T,viewport:g,selectionMode:_,groups:I,compact:A},Q={groupedListId:this._id,ariaSetSize:I?I.length:void 0,ariaPosInSet:d!==void 0?d+1:void 0},B=N(N(N({},c),Z),Q),R=N(N({},u),Z),X=N(N({},h),Z),$=!!this.props.dragDropHelper&&this._getGroupDragDropOptions().canDrag(i)&&!!this.props.dragDropEvents.canDragGroups;return M.createElement("div",N({ref:this._root},$&&{draggable:!0},{className:sn(L&&L.group,this._getDroppingClassName()),role:"presentation"}),x(B,this._onRenderGroupHeader),i&&i.isCollapsed?null:W?M.createElement(Jp,{role:"presentation",ref:this._list,items:i?i.children:[],onRenderCell:this._renderSubGroup,getItemCountForPage:this._returnOne,onShouldVirtualize:k,version:K,id:this._id}):this._onRenderGroup(F),i&&i.isCollapsed?null:H&&v(R,this._onRenderGroupShowAll),C(X,this._onRenderGroupFooter))},o.prototype.forceUpdate=function(){s.prototype.forceUpdate.call(this),this.forceListUpdate()},o.prototype.forceListUpdate=function(){var n=this.props.group;if(this._list.current){if(this._list.current.forceUpdate(),n&&n.children&&n.children.length>0)for(var t=n.children.length,i=0;i<t;i++){var d=this._list.current.pageRefs["subGroup_"+String(i)];d&&d.forceListUpdate()}}else{var d=this._subGroupRefs["subGroup_"+String(0)];d&&d.forceListUpdate()}},o.prototype._onSelectionChange=function(){var n=this.props,t=n.group,i=n.selection;if(i&&t){var d=i.isRangeSelected(t.startIndex,t.count);d!==this.state.isSelected&&this.setState({isSelected:d})}},o.prototype._onRenderGroupCell=function(n,t,i){return function(d,c){return n(t,d,c,i)}},o.prototype._onRenderGroup=function(n){var t,i=this.props,d=i.group,c=i.items,u=i.onRenderCell,h=i.listProps,g=i.groupNestingDepth,_=i.onShouldVirtualize,m=i.groupProps,x=d&&!d.isShowingAll?d.count:c.length,y=d?d.startIndex:0;return M.createElement(Jp,N({role:m&&m.role?m.role:"rowgroup","aria-label":(t=d)===null||t===void 0?void 0:t.name,items:c,onRenderCell:this._onRenderGroupCell(u,g,d),ref:this._list,renderCount:Math.min(x,n),startIndex:y,onShouldVirtualize:_,id:this._id},h))},o.prototype._returnOne=function(){return 1},o.prototype._getGroupKey=function(n,t){return"group-"+(n&&n.key?n.key:String(n.level)+String(t))},o.prototype._getDroppingClassName=function(){var n=this.state.isDropping,t=this.props,i=t.group,d=t.groupedListClassNames;return n=!!(i&&n),sn(n&&this._droppingClassName,n&&r1,n&&d&&d.groupIsDropping)},o})(M.Component),o1=Je(),i1=gd.rowHeight,a1=gd.compactRowHeight,l1=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;t._list=M.createRef(),t._renderGroup=function(u,h){var g=t.props,_=g.dragDropEvents,m=g.dragDropHelper,x=g.eventsToRegister,y=g.groupProps,v=g.items,b=g.listProps,C=g.onRenderCell,k=g.selectionMode,L=g.selection,I=g.viewport,A=g.onShouldVirtualize,Y=g.groups,P=g.compact,T={onToggleSelectGroup:t._onToggleSelectGroup,onToggleCollapse:t._onToggleCollapse,onToggleSummarize:t._onToggleSummarize},F=N(N({},y.headerProps),T),H=N(N({},y.showAllProps),T),W=N(N({},y.footerProps),T),K=t._getGroupNestingDepth();if(!y.showEmptyGroups&&u&&u.count===0)return null;var Z=N(N({},b||{}),{version:t.state.version});return M.createElement(s1,{key:t._getGroupKey(u,h),dragDropEvents:_,dragDropHelper:m,eventsToRegister:x,footerProps:W,getGroupItemLimit:y&&y.getGroupItemLimit,group:u,groupIndex:h,groupNestingDepth:K,groupProps:y,headerProps:F,listProps:Z,items:v,onRenderCell:C,onRenderGroupHeader:y.onRenderHeader,onRenderGroupShowAll:y.onRenderShowAll,onRenderGroupFooter:y.onRenderFooter,selectionMode:k,selection:L,showAllProps:H,viewport:I,onShouldVirtualize:A,groupedListClassNames:t._classNames,groups:Y,compact:P})},t._getDefaultGroupItemLimit=function(u){return u.count},t._getGroupItemLimit=function(u){var h=t.props.groupProps,g=h&&h.getGroupItemLimit?h.getGroupItemLimit:t._getDefaultGroupItemLimit;return g(u)},t._getGroupHeight=function(u){var h=t.props.compact?a1:i1;return h+(u.isCollapsed?0:h*t._getGroupItemLimit(u))},t._getPageHeight=function(u){var h=t.state.groups,g=t.props.getGroupHeight,_=g===void 0?t._getGroupHeight:g,m=h&&h[u];return m?_(m,u):0},t._onToggleCollapse=function(u){var h=t.props.groupProps,g=h&&h.headerProps&&h.headerProps.onToggleCollapse;u&&(g&&g(u),u.isCollapsed=!u.isCollapsed,t._updateIsSomeGroupExpanded(),t.forceUpdate())},t._onToggleSelectGroup=function(u){var h=t.props,g=h.selection,_=h.selectionMode;u&&g&&_===it.multiple&&g.toggleRangeSelected(u.startIndex,u.count)},t._isInnerZoneKeystroke=function(u){return u.which===Bf(ke.right)},t._onToggleSummarize=function(u){var h=t.props.groupProps,g=h&&h.showAllProps&&h.showAllProps.onToggleSummarize;g?g(u):(u&&(u.isShowingAll=!u.isShowingAll),t.forceUpdate())},t._getPageSpecification=function(u){var h=t.state.groups,g=h&&h[u];return{key:g&&g.key}},St(t),t._isSomeGroupExpanded=t._computeIsSomeGroupExpanded(n.groups);var i=n.listProps,d=(i===void 0?{}:i).version,c=d===void 0?{}:d;return t.state={groups:n.groups,items:n.items,listProps:n.listProps,version:c},t}return o.getDerivedStateFromProps=function(n,t){var i=n.groups,d=n.selectionMode,c=n.compact,u=n.items,h=n.listProps,g=h&&h.version,_=N(N({},t),{selectionMode:d,compact:c,groups:i,listProps:h}),m=!1,x=t.listProps&&t.listProps.version;return(g!==x||u!==t.items||i!==t.groups||d!==t.selectionMode||c!==t.compact)&&(m=!0),m&&(_=N(N({},_),{version:{}})),_},o.prototype.scrollToIndex=function(n,t,i){this._list.current&&this._list.current.scrollToIndex(n,t,i)},o.prototype.getStartItemIndexInView=function(){return this._list.current.getStartItemIndexInView()||0},o.prototype.componentDidMount=function(){var n=this.props,t=n.groupProps,i=n.groups,d=i===void 0?[]:i;t&&t.isAllGroupsCollapsed&&this._setGroupsCollapsedState(d,t.isAllGroupsCollapsed)},o.prototype.render=function(){var n=this.props,t=n.className,i=n.usePageCache,d=n.onShouldVirtualize,c=n.theme,u=n.role,h=u===void 0?"treegrid":u,g=n.styles,_=n.compact,m=n.focusZoneProps,x=m===void 0?{}:m,y=n.rootListProps,v=y===void 0?{}:y,b=this.state,C=b.groups,k=b.version;this._classNames=o1(g,{theme:c,className:t,compact:_});var L=x.shouldEnterInnerZone,I=L===void 0?this._isInnerZoneKeystroke:L;return M.createElement(xd,N({direction:kn.vertical,"data-automationid":"GroupedList","data-is-scrollable":"false",role:"presentation"},x,{shouldEnterInnerZone:I,className:sn(this._classNames.root,x.className)}),C?M.createElement(Jp,N({ref:this._list,role:h,items:C,onRenderCell:this._renderGroup,getItemCountForPage:this._returnOne,getPageHeight:this._getPageHeight,getPageSpecification:this._getPageSpecification,usePageCache:i,onShouldVirtualize:d,version:k},v)):this._renderGroup(void 0,0))},o.prototype.forceUpdate=function(){s.prototype.forceUpdate.call(this),this._forceListUpdates()},o.prototype.toggleCollapseAll=function(n){var t=this.state.groups,i=t===void 0?[]:t,d=this.props.groupProps,c=d&&d.onToggleCollapseAll;i.length>0&&(c&&c(n),this._setGroupsCollapsedState(i,n),this._updateIsSomeGroupExpanded(),this.forceUpdate())},o.prototype._setGroupsCollapsedState=function(n,t){for(var i=0;i<n.length;i++)n[i].isCollapsed=t},o.prototype._returnOne=function(){return 1},o.prototype._getGroupKey=function(n,t){return"group-"+(n&&n.key?n.key:String(t))},o.prototype._getGroupNestingDepth=function(){for(var n=this.state.groups,t=0,i=n;i&&i.length>0;)t++,i=i[0].children;return t},o.prototype._forceListUpdates=function(n){this.setState({version:{}})},o.prototype._computeIsSomeGroupExpanded=function(n){var t=this;return!!(n&&n.some(function(i){return i.children?t._computeIsSomeGroupExpanded(i.children):!i.isCollapsed}))},o.prototype._updateIsSomeGroupExpanded=function(){var n=this.state.groups,t=this.props.onGroupExpandStateChanged,i=this._computeIsSomeGroupExpanded(n);this._isSomeGroupExpanded!==i&&(t&&t(i),this._isSomeGroupExpanded=i)},o.defaultProps={selectionMode:it.multiple,isHeaderVisible:!0,groupProps:{},compact:!1},o})(M.Component),Zv=Ze(l1,jE,void 0,{scope:"GroupedList"}),d1=function(s){var o=0;if(s)for(var n=Nn(s),t=void 0;n&&n.length>0;)++o,t=n.pop(),t&&t.children&&n.push.apply(n,t.children);return o},c1=Je(),u1=function(s){var o=s.isVisible,n=o===void 0?!1:o,t=s.canSelect,i=t===void 0?!1:t,d=s.anySelected,c=d===void 0?!1:d,u=s.selected,h=u===void 0?!1:u,g=s.isHeader,_=g===void 0?!1:g,m=s.className;s.checkClassName;var x=s.styles,y=s.theme,v=s.compact,b=s.onRenderDetailsCheckbox,C=s.useFastIcons,k=C===void 0?!0:C,L=ms(s,["isVisible","canSelect","anySelected","selected","isHeader","className","checkClassName","styles","theme","compact","onRenderDetailsCheckbox","useFastIcons"]),I=k?m1:h1,A=b?Ns(b,I):I,Y=c1(x,{theme:y,canSelect:i,selected:h,anySelected:c,className:m,isHeader:_,isVisible:n,compact:v}),P={checked:h,theme:y},T=iM("div",L,["aria-label","aria-labelledby","aria-describedby"]);return i?M.createElement("div",N({},L,{role:"checkbox",className:sn(Y.root,Y.check),"aria-checked":h,"data-selection-toggle":!0,"data-automationid":"DetailsRowCheck",tabIndex:-1}),A(P)):M.createElement("div",N({},T,{className:sn(Y.root,Y.check)}))},p1=M.memo(function(s){return M.createElement(_g,{theme:s.theme,checked:s.checked,className:s.className,useFastIcons:!0})});function h1(s){return M.createElement(_g,{checked:s.checked})}function m1(s){return M.createElement(p1,{theme:s.theme,checked:s.checked})}var Bb=Ze(u1,AE,void 0,{scope:"DetailsRowCheck"},!0),f1=0,Xv=1,Ly=(function(){function s(o){this._selection=o.selection,this._dragEnterCounts={},this._activeTargets={},this._lastId=0,this._initialized=!1}return s.prototype.dispose=function(){this._events&&this._events.dispose()},s.prototype.subscribe=function(o,n,t){var i=this;if(!this._initialized){this._events=new Yt(this);var d=yn();d&&(this._events.on(d.body,"mouseup",this._onMouseUp.bind(this),!0),this._events.on(d,"mouseup",this._onDocumentMouseUp.bind(this),!0)),this._initialized=!0}var c=t.key,u=c===void 0?""+ ++this._lastId:c,h=[],g,_,m,x,y,v,b,C,k,L;if(t&&o){var I=t.eventMap,A=t.context,Y=t.updateDropState,P={root:o,options:t,key:u};if(C=this._isDraggable(P),k=this._isDroppable(P),(C||k)&&I)for(var T=0,F=I;T<F.length;T++){var H=F[T],W={callback:H.callback.bind(null,A),eventName:H.eventName};h.push(W),this._events.on(o,W.eventName,W.callback)}k&&(_=function(K){K.isHandled||(K.isHandled=!0,i._dragEnterCounts[u]--,i._dragEnterCounts[u]===0&&Y(!1,K))},m=function(K){K.preventDefault(),K.isHandled||(K.isHandled=!0,i._dragEnterCounts[u]++,i._dragEnterCounts[u]===1&&Y(!0,K))},x=function(K){i._dragEnterCounts[u]=0,Y(!1,K)},y=function(K){i._dragEnterCounts[u]=0,Y(!1,K),t.onDrop&&t.onDrop(t.context.data,K)},v=function(K){K.preventDefault(),t.onDragOver&&t.onDragOver(t.context.data,K)},this._dragEnterCounts[u]=0,n.on(o,"dragenter",m),n.on(o,"dragleave",_),n.on(o,"dragend",x),n.on(o,"drop",y),n.on(o,"dragover",v)),C&&(b=this._onMouseDown.bind(this,P),x=this._onDragEnd.bind(this,P),g=function(K){var Z=t;Z&&Z.onDragStart&&Z.onDragStart(Z.context.data,Z.context.index,i._selection.getSelection(),K),i._isDragging=!0,K.dataTransfer&&K.dataTransfer.setData("id",o.id)},n.on(o,"dragstart",g),n.on(o,"mousedown",b),n.on(o,"dragend",x)),L={target:P,dispose:function(){if(i._activeTargets[u]===L&&delete i._activeTargets[u],o){for(var K=0,Z=h;K<Z.length;K++){var Q=Z[K];i._events.off(o,Q.eventName,Q.callback)}k&&(n.off(o,"dragenter",m),n.off(o,"dragleave",_),n.off(o,"dragend",x),n.off(o,"dragover",v),n.off(o,"drop",y)),C&&(n.off(o,"dragstart",g),n.off(o,"mousedown",b),n.off(o,"dragend",x))}}},this._activeTargets[u]=L}return{key:u,dispose:function(){L&&L.dispose()}}},s.prototype.unsubscribe=function(o,n){var t=this._activeTargets[n];t&&t.dispose()},s.prototype._onDragEnd=function(o,n){var t=o.options;t.onDragEnd&&t.onDragEnd(t.context.data,n)},s.prototype._onMouseUp=function(o){if(this._isDragging=!1,this._dragData){for(var n=0,t=Object.keys(this._activeTargets);n<t.length;n++){var i=t[n],d=this._activeTargets[i];d.target.root&&(this._events.off(d.target.root,"mousemove"),this._events.off(d.target.root,"mouseleave"))}this._dragData.dropTarget&&(Yt.raise(this._dragData.dropTarget.root,"dragleave"),Yt.raise(this._dragData.dropTarget.root,"drop"))}this._dragData=null},s.prototype._onDocumentMouseUp=function(o){var n=yn();n&&o.target===n.documentElement&&this._onMouseUp(o)},s.prototype._onMouseMove=function(o,n){var t=n.buttons,i=t===void 0?Xv:t;if(this._dragData&&i!==Xv){this._onMouseUp(n);return}var d=o.root,c=o.key;this._isDragging&&this._isDroppable(o)&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key!==c&&!this._isChild(d,this._dragData.dropTarget.root)&&this._dragEnterCounts[this._dragData.dropTarget.key]>0&&(Yt.raise(this._dragData.dropTarget.root,"dragleave"),Yt.raise(d,"dragenter"),this._dragData.dropTarget=o)},s.prototype._onMouseLeave=function(o,n){this._isDragging&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key===o.key&&(Yt.raise(o.root,"dragleave"),this._dragData.dropTarget=void 0)},s.prototype._onMouseDown=function(o,n){if(n.button===f1)if(this._isDraggable(o)){this._dragData={clientX:n.clientX,clientY:n.clientY,eventTarget:n.target,dragTarget:o};for(var t=0,i=Object.keys(this._activeTargets);t<i.length;t++){var d=i[t],c=this._activeTargets[d];c.target.root&&(this._events.on(c.target.root,"mousemove",this._onMouseMove.bind(this,c.target)),this._events.on(c.target.root,"mouseleave",this._onMouseLeave.bind(this,c.target)))}}else this._dragData=null},s.prototype._isChild=function(o,n){for(;n&&n.parentElement;){if(n.parentElement===o)return!0;n=n.parentElement}return!1},s.prototype._isDraggable=function(o){var n=o.options;return!!(n.canDrag&&n.canDrag(n.context.data))},s.prototype._isDroppable=function(o){var n=o.options,t=this._dragData&&this._dragData.dragTarget?this._dragData.dragTarget.options.context:void 0;return!!(n.canDrop&&n.canDrop(n.context,t))},s})(),g1=0,_1=Je(),y1=200,Qv=1500,U_=20,ex=function(s){return function(o){return o?o.column.isIconOnly?M.createElement("span",{className:s.accessibleLabel},o.column.name):M.createElement(M.Fragment,null,o.column.name):null}},w1=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._root=M.createRef(),t._onRenderFilterIcon=function(i){return function(d){var c,u=d.columnProps,h=ms(d,["columnProps"]),g=!((c=u)===null||c===void 0)&&c.useFastIcons?kt:Ue;return M.createElement(g,N({},h))}},t._onRenderColumnHeaderTooltip=function(i){return M.createElement("span",{className:i.hostClassName},i.children)},t._onColumnClick=function(i){var d=t.props,c=d.onColumnClick,u=d.column;u.columnActionsMode!==Oo.disabled&&(u.onColumnClick&&u.onColumnClick(i,u),c&&c(i,u))},t._onDragStart=function(i,d,c,u){var h=t._classNames;d&&(t._updateHeaderDragInfo(d),t._root.current.classList.add(h.borderWhileDragging),t._async.setTimeout(function(){t._root.current&&t._root.current.classList.add(h.noBorderWhileDragging)},U_))},t._onDragEnd=function(i,d){var c=t._classNames;d&&t._updateHeaderDragInfo(-1,d),t._root.current.classList.remove(c.borderWhileDragging),t._root.current.classList.remove(c.noBorderWhileDragging)},t._updateHeaderDragInfo=function(i,d){t.props.setDraggedItemIndex&&t.props.setDraggedItemIndex(i),t.props.updateDragInfo&&t.props.updateDragInfo({itemIndex:i},d)},t._onColumnContextMenu=function(i){var d=t.props,c=d.onColumnContextMenu,u=d.column;u.onColumnContextMenu&&(u.onColumnContextMenu(u,i),i.preventDefault()),c&&(c(u,i),i.preventDefault())},t._onRootMouseDown=function(i){var d=t.props.isDraggable;d&&i.button===g1&&i.stopPropagation()},St(t),t._async=new Wn(t),t._events=new Yt(t),t}return o.prototype.render=function(){var n=this.props,t=n.column,i=n.columnIndex,d=n.parentId,c=n.isDraggable,u=n.styles,h=n.theme,g=n.cellStyleProps,_=g===void 0?Ci:g,m=n.useFastIcons,x=m===void 0?!0:m,y=this.props.onRenderColumnHeaderTooltip,v=y===void 0?this._onRenderColumnHeaderTooltip:y;this._classNames=_1(u,{theme:h,headerClassName:t.headerClassName,iconClassName:t.iconClassName,isActionable:t.columnActionsMode!==Oo.disabled,isEmpty:!t.name,isIconVisible:t.isSorted||t.isGrouped||t.isFiltered,isPadded:t.isPadded,isIconOnly:t.isIconOnly,cellStyleProps:_,transitionDurationDrag:y1,transitionDurationDrop:Qv});var b=this._classNames,C=x?kt:Ue,k=t.onRenderFilterIcon?Ns(t.onRenderFilterIcon,this._onRenderFilterIcon(this._classNames)):this._onRenderFilterIcon(this._classNames),L=t.onRenderHeader?Ns(t.onRenderHeader,ex(this._classNames)):ex(this._classNames);return M.createElement(M.Fragment,null,M.createElement("div",{key:t.key,ref:this._root,role:"columnheader","aria-sort":t.isSorted?t.isSortedDescending?"descending":"ascending":"none","aria-colindex":i,className:b.root,"data-is-draggable":c,draggable:c,style:{width:t.calculatedWidth+_.cellLeftPadding+_.cellRightPadding+(t.isPadded?_.cellExtraRightPadding:0)},"data-automationid":"ColumnsHeaderColumn","data-item-key":t.key},c&&M.createElement(C,{iconName:"GripperBarVertical",className:b.gripperBarVerticalStyle}),v({hostClassName:b.cellTooltip,id:d+"-"+t.key+"-tooltip",setAriaDescribedBy:!1,column:t,content:t.columnActionsMode!==Oo.disabled?t.ariaLabel:"",children:M.createElement("span",{id:d+"-"+t.key,"aria-label":t.isIconOnly?t.name:void 0,"aria-labelledby":t.isIconOnly?void 0:d+"-"+t.key+"-name",className:b.cellTitle,"data-is-focusable":t.columnActionsMode!==Oo.disabled,role:t.columnActionsMode!==Oo.disabled&&(t.onColumnClick!==void 0||this.props.onColumnClick!==void 0)?"button":void 0,"aria-describedby":!this.props.onRenderColumnHeaderTooltip&&this._hasAccessibleLabel()?d+"-"+t.key+"-tooltip":void 0,onContextMenu:this._onColumnContextMenu,onClick:this._onColumnClick,"aria-haspopup":t.columnActionsMode===Oo.hasDropdown,"aria-expanded":t.columnActionsMode===Oo.hasDropdown?!!t.isMenuOpen:void 0},M.createElement("span",{id:d+"-"+t.key+"-name",className:b.cellName},(t.iconName||t.iconClassName)&&M.createElement(C,{className:b.iconClassName,iconName:t.iconName}),L(this.props)),t.isFiltered&&M.createElement(C,{className:b.nearIcon,iconName:"Filter"}),t.isSorted&&M.createElement(C,{className:b.sortIcon,iconName:t.isSortedDescending?"SortDown":"SortUp"}),t.isGrouped&&M.createElement(C,{className:b.nearIcon,iconName:"GroupedDescending"}),t.columnActionsMode===Oo.hasDropdown&&!t.isIconOnly&&k({"aria-hidden":!0,columnProps:this.props,className:b.filterChevron,iconName:"ChevronDown"}))},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:this._renderAccessibleLabel())},o.prototype.componentDidMount=function(){var n=this;this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling();var t=this._classNames;this.props.isDropped&&(this._root.current&&(this._root.current.classList.add(t.borderAfterDropping),this._async.setTimeout(function(){n._root.current&&n._root.current.classList.add(t.noBorderAfterDropping)},U_)),this._async.setTimeout(function(){n._root.current&&(n._root.current.classList.remove(t.borderAfterDropping),n._root.current.classList.remove(t.noBorderAfterDropping))},Qv+U_))},o.prototype.componentWillUnmount=function(){this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._async.dispose(),this._events.dispose()},o.prototype.componentDidUpdate=function(){!this._dragDropSubscription&&this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling(),this._dragDropSubscription&&!this.props.isDraggable&&(this._dragDropSubscription.dispose(),this._events.off(this._root.current,"mousedown"),delete this._dragDropSubscription)},o.prototype._getColumnDragDropOptions=function(){var n=this,t=this.props.columnIndex,i={selectionIndex:t,context:{data:t,index:t},canDrag:function(){return n.props.isDraggable},canDrop:function(){return!1},onDragStart:this._onDragStart,updateDropState:function(){},onDrop:function(){},onDragEnd:this._onDragEnd};return i},o.prototype._hasAccessibleLabel=function(){var n=this.props.column;return!!(n.ariaLabel||n.filterAriaLabel||n.sortAscendingAriaLabel||n.sortDescendingAriaLabel||n.groupAriaLabel)},o.prototype._renderAccessibleLabel=function(){var n=this.props,t=n.column,i=n.parentId,d=this._classNames;return this._hasAccessibleLabel()&&!this.props.onRenderColumnHeaderTooltip?M.createElement("label",{key:t.key+"_label",id:i+"-"+t.key+"-tooltip",className:d.accessibleLabel},t.ariaLabel,t.isFiltered&&t.filterAriaLabel||null,t.isSorted&&(t.isSortedDescending?t.sortDescendingAriaLabel:t.sortAscendingAriaLabel)||null,t.isGrouped&&t.groupAriaLabel||null):null},o.prototype._addDragDropHandling=function(){this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getColumnDragDropOptions()),this._events.on(this._root.current,"mousedown",this._onRootMouseDown)},o})(M.Component),v1={isActionable:"is-actionable",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",isEmpty:"is-empty",isIconVisible:"is-icon-visible",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVerticalStyle:"ms-DetailsColumn-gripperBar",nearIcon:"ms-DetailsColumn-nearIcon"},x1=function(s){var o,n=s.theme,t=s.headerClassName,i=s.iconClassName,d=s.isActionable,c=s.isEmpty,u=s.isIconVisible,h=s.isPadded,g=s.isIconOnly,_=s.cellStyleProps,m=_===void 0?Ci:_,x=s.transitionDurationDrag,y=s.transitionDurationDrop,v=n.semanticColors,b=n.palette,C=n.fonts,k=at(v1,n),L={iconForegroundColor:v.bodySubtext,headerForegroundColor:v.bodyText,headerBackgroundColor:v.bodyBackground,dropdownChevronForegroundColor:b.neutralSecondary,resizerColor:b.neutralTertiaryAlt},I={color:L.iconForegroundColor,opacity:1,paddingLeft:8},A={outline:"1px solid "+b.themePrimary},Y={outlineColor:"transparent"};return{root:[Wb(s),C.small,d&&[k.isActionable,{selectors:{":hover":{color:v.bodyText,background:v.listHeaderBackgroundHovered},":active":{background:v.listHeaderBackgroundPressed}}}],c&&[k.isEmpty,{textOverflow:"clip"}],u&&k.isIconVisible,h&&{paddingRight:m.cellExtraRightPadding+m.cellRightPadding},{selectors:{':hover i[data-icon-name="GripperBarVertical"]':{display:"block"}}},t],gripperBarVerticalStyle:{display:"none",position:"absolute",textAlign:"left",color:b.neutralTertiary,left:1},nearIcon:[k.nearIcon,I],sortIcon:[I,{paddingLeft:4,position:"relative",top:1}],iconClassName:[{color:L.iconForegroundColor,opacity:1},i],filterChevron:[k.filterChevron,{color:L.dropdownChevronForegroundColor,paddingLeft:6,verticalAlign:"middle",fontSize:C.small.fontSize}],cellTitle:[k.cellTitle,On(n),N({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"stretch",boxSizing:"border-box",overflow:"hidden",padding:"0 "+m.cellRightPadding+"px 0 "+m.cellLeftPadding+"px"},g?{alignContent:"flex-end",maxHeight:"100%",flexWrap:"wrap-reverse"}:{})],cellName:[k.cellName,{flex:"0 1 auto",overflow:"hidden",textOverflow:"ellipsis",fontWeight:Lt.semibold,fontSize:C.medium.fontSize},g&&{selectors:(o={},o["."+k.nearIcon]={paddingLeft:0},o)}],cellTooltip:{display:"block",position:"absolute",top:0,left:0,bottom:0,right:0},accessibleLabel:wd,borderWhileDragging:A,noBorderWhileDragging:[Y,{transition:"outline "+x+"ms ease"}],borderAfterDropping:A,noBorderAfterDropping:[Y,{transition:"outline  "+y+"ms ease"}]}},b1=Ze(w1,x1,void 0,{scope:"DetailsColumn"}),po;(function(s){s[s.none=0]="none",s[s.hidden=1]="hidden",s[s.visible=2]="visible"})(po||(po={}));var S1=Je(),C1=0,k1=1,lo=[],M1=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._rootElement=M.createRef(),t._rootComponent=M.createRef(),t._draggedColumnIndex=-1,t._dropHintDetails={},t._updateDroppingState=function(i,d){t._draggedColumnIndex>=0&&d.type!=="drop"&&!i&&t._resetDropHints()},t._onDragOver=function(i,d){t._draggedColumnIndex>=0&&(d.stopPropagation(),t._computeDropHintToBeShown(d.clientX))},t._onDrop=function(i,d){var c=t._getColumnReorderProps();if(t._draggedColumnIndex>=0&&d){var u=t._draggedColumnIndex>t._currentDropHintIndex?t._currentDropHintIndex:t._currentDropHintIndex-1,h=t._isValidCurrentDropHintIndex();if(d.stopPropagation(),h)if(t._onDropIndexInfo.sourceIndex=t._draggedColumnIndex,t._onDropIndexInfo.targetIndex=u,c.onColumnDrop){var g={draggedIndex:t._draggedColumnIndex,targetIndex:u};c.onColumnDrop(g)}else c.handleColumnReorder&&c.handleColumnReorder(t._draggedColumnIndex,u)}t._resetDropHints(),t._dropHintDetails={},t._draggedColumnIndex=-1},t._updateDragInfo=function(i,d){var c=t._getColumnReorderProps(),u=i.itemIndex;if(u>=0)t._draggedColumnIndex=t._isCheckboxColumnHidden()?u-1:u-2,t._getDropHintPositions(),c.onColumnDragStart&&c.onColumnDragStart(!0);else if(d&&t._draggedColumnIndex>=0&&(t._resetDropHints(),t._draggedColumnIndex=-1,t._dropHintDetails={},c.onColumnDragEnd)){var h=t._isEventOnHeader(d);c.onColumnDragEnd({dropLocation:h},d)}},t._getDropHintPositions=function(){for(var i=t.props.columns,d=i===void 0?lo:i,c=t._getColumnReorderProps(),u=0,h=0,g,_=c.frozenColumnCountFromStart||0,m=c.frozenColumnCountFromEnd||0,x=_;x<d.length-m+1;x++)if(t._rootElement.current){var y=t._rootElement.current.querySelectorAll("#columnDropHint_"+x)[0];if(y)if(x===_)u=y.offsetLeft,h=y.offsetLeft,g=y;else{var v=(y.offsetLeft+u)/2;t._dropHintDetails[x-1]={originX:u,startX:h,endX:v,dropHintElementRef:g},h=v,g=y,u=y.offsetLeft,x===d.length-m&&(t._dropHintDetails[x]={originX:u,startX:h,endX:y.offsetLeft,dropHintElementRef:g})}}},t._computeDropHintToBeShown=function(i){var d=At(t.props.theme);if(t._rootElement.current){var c=t._rootElement.current.getBoundingClientRect(),u=c.left,h=i-u,g=t._currentDropHintIndex;if(t._isValidCurrentDropHintIndex()&&af(d,h,t._dropHintDetails[g].startX,t._dropHintDetails[g].endX))return;var _=t.props.columns,m=_===void 0?lo:_,x=t._getColumnReorderProps(),y=x.frozenColumnCountFromStart||0,v=x.frozenColumnCountFromEnd||0,b=y,C=m.length-v,k=-1;if(tx(d,h,t._dropHintDetails[b].endX)?k=b:nx(d,h,t._dropHintDetails[C].startX)?k=C:t._isValidCurrentDropHintIndex()&&(t._dropHintDetails[g+1]&&af(d,h,t._dropHintDetails[g+1].startX,t._dropHintDetails[g+1].endX)?k=g+1:t._dropHintDetails[g-1]&&af(d,h,t._dropHintDetails[g-1].startX,t._dropHintDetails[g-1].endX)&&(k=g-1)),k===-1)for(var L=y,I=C;L<I;){var A=Math.ceil((I+L)/2);if(af(d,h,t._dropHintDetails[A].startX,t._dropHintDetails[A].endX)){k=A;break}else tx(d,h,t._dropHintDetails[A].originX)?I=A:nx(d,h,t._dropHintDetails[A].originX)&&(L=A)}k===t._draggedColumnIndex||k===t._draggedColumnIndex+1?t._isValidCurrentDropHintIndex()&&t._resetDropHints():g!==k&&k>=0&&(t._resetDropHints(),t._updateDropHintElement(t._dropHintDetails[k].dropHintElementRef,"inline-block"),t._currentDropHintIndex=k)}},t._renderColumnSizer=function(i){var d,c=i.columnIndex,u=t.props.columns,h=u===void 0?lo:u,g=h[c],_=t.state.columnResizeDetails,m=t._classNames;return g.isResizable?M.createElement("div",{key:g.key+"_sizer","aria-hidden":!0,role:"button","data-is-focusable":!1,onClick:j1,"data-sizer-index":c,onBlur:t._onSizerBlur,className:sn(m.cellSizer,c<h.length-1?m.cellSizerStart:m.cellSizerEnd,(d={},d[m.cellIsResizing]=_&&_.columnIndex===c,d)),onDoubleClick:t._onSizerDoubleClick.bind(t,c)}):null},t._onRenderColumnHeaderTooltip=function(i){return M.createElement("span",{className:i.hostClassName},i.children)},t._onSelectAllClicked=function(){var i=t.props.selection;i&&i.toggleAllSelected()},t._onRootMouseDown=function(i){var d=i.target.getAttribute("data-sizer-index"),c=Number(d),u=t.props.columns,h=u===void 0?lo:u;d===null||i.button!==C1||(t.setState({columnResizeDetails:{columnIndex:c,columnMinWidth:h[c].calculatedWidth,originX:i.clientX}}),i.preventDefault(),i.stopPropagation())},t._onRootMouseMove=function(i){var d=t.state,c=d.columnResizeDetails,u=d.isSizing;c&&!u&&i.clientX!==c.originX&&t.setState({isSizing:!0})},t._onRootKeyDown=function(i){var d=t.state,c=d.columnResizeDetails,u=d.isSizing,h=t.props,g=h.columns,_=g===void 0?lo:g,m=h.onColumnResized,x=i.target.getAttribute("data-sizer-index");if(!(!x||u)){var y=Number(x);if(!c)i.which===ke.enter&&(t.setState({columnResizeDetails:{columnIndex:y,columnMinWidth:_[y].calculatedWidth}}),i.preventDefault(),i.stopPropagation());else{var v=void 0;i.which===ke.enter?(t.setState({columnResizeDetails:void 0}),i.preventDefault(),i.stopPropagation()):i.which===ke.left?v=At(t.props.theme)?1:-1:i.which===ke.right&&(v=At(t.props.theme)?-1:1),v&&(i.shiftKey||(v*=10),t.setState({columnResizeDetails:N(N({},c),{columnMinWidth:c.columnMinWidth+v})}),m&&m(_[y],c.columnMinWidth+v,y),i.preventDefault(),i.stopPropagation())}}},t._onSizerMouseMove=function(i){var d=i.buttons,c=t.props,u=c.onColumnIsSizingChanged,h=c.onColumnResized,g=c.columns,_=g===void 0?lo:g,m=t.state.columnResizeDetails;if(d!==void 0&&d!==k1){t._onSizerMouseUp(i);return}if(i.clientX!==m.originX&&u&&u(_[m.columnIndex],!0),h){var x=i.clientX-m.originX;At(t.props.theme)&&(x=-x),h(_[m.columnIndex],m.columnMinWidth+x,m.columnIndex)}},t._onSizerBlur=function(i){var d=t.state.columnResizeDetails;d&&t.setState({columnResizeDetails:void 0,isSizing:!1})},t._onSizerMouseUp=function(i){var d=t.props,c=d.columns,u=c===void 0?lo:c,h=d.onColumnIsSizingChanged,g=t.state.columnResizeDetails;t.setState({columnResizeDetails:void 0,isSizing:!1}),h&&h(u[g.columnIndex],!1)},t._onToggleCollapseAll=function(){var i=t.props.onToggleCollapseAll,d=!t.state.isAllCollapsed;t.setState({isAllCollapsed:d}),i&&i(d)},St(t),t._events=new Yt(t),t.state={columnResizeDetails:void 0,isAllCollapsed:t.props.isAllCollapsed,isAllSelected:!!t.props.selection&&t.props.selection.isAllSelected()},t._onDropIndexInfo={sourceIndex:-1,targetIndex:-1},t._id=zt("header"),t._currentDropHintIndex=-1,t._dragDropHelper=new Ly({selection:{getSelection:function(){}},minimumPixelsForDrag:t.props.minimumPixelsForDrag}),t}return o.prototype.componentDidMount=function(){var n=this.props.selection;this._events.on(n,ag,this._onSelectionChanged),this._rootElement.current&&(this._events.on(this._rootElement.current,"mousedown",this._onRootMouseDown),this._events.on(this._rootElement.current,"keydown",this._onRootKeyDown),this._getColumnReorderProps()&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())))},o.prototype.componentDidUpdate=function(n){if(this._getColumnReorderProps()?!this._subscriptionObject&&this._rootElement.current&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())):this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this.props!==n&&this._onDropIndexInfo.sourceIndex>=0&&this._onDropIndexInfo.targetIndex>=0){var t=n.columns,i=t===void 0?lo:t,d=this.props.columns,c=d===void 0?lo:d;i[this._onDropIndexInfo.sourceIndex].key===c[this._onDropIndexInfo.targetIndex].key&&(this._onDropIndexInfo={sourceIndex:-1,targetIndex:-1})}this.props.isAllCollapsed!==n.isAllCollapsed&&this.setState({isAllCollapsed:this.props.isAllCollapsed})},o.prototype.componentWillUnmount=function(){this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this._dragDropHelper.dispose(),this._events.dispose()},o.prototype.render=function(){var n=this,t=this.props,i=t.columns,d=i===void 0?lo:i,c=t.ariaLabel,u=t.ariaLabelForToggleAllGroupsButton,h=t.ariaLabelForSelectAllCheckbox,g=t.selectAllVisibility,_=t.ariaLabelForSelectionColumn,m=t.indentWidth,x=t.onColumnClick,y=t.onColumnContextMenu,v=t.onRenderColumnHeaderTooltip,b=v===void 0?this._onRenderColumnHeaderTooltip:v,C=t.styles,k=t.selectionMode,L=t.theme,I=t.onRenderDetailsCheckbox,A=t.groupNestingDepth,Y=t.useFastIcons,P=t.checkboxVisibility,T=t.className,F=this.state,H=F.isAllSelected,W=F.columnResizeDetails,K=F.isSizing,Z=F.isAllCollapsed,Q=g!==po.none,B=g===po.hidden,R=P===Os.always,X=this._getColumnReorderProps(),$=X&&X.frozenColumnCountFromStart?X.frozenColumnCountFromStart:0,ie=X&&X.frozenColumnCountFromEnd?X.frozenColumnCountFromEnd:0;this._classNames=S1(C,{theme:L,isAllSelected:H,isSelectAllHidden:g===po.hidden,isResizingColumn:!!W&&K,isSizing:K,isAllCollapsed:Z,isCheckboxHidden:B,className:T});var le=this._classNames,V=Y?kt:Ue,z=At(L);return M.createElement(xd,{role:"row","aria-label":c,className:le.root,componentRef:this._rootComponent,elementRef:this._rootElement,onMouseMove:this._onRootMouseMove,"data-automationid":"DetailsHeader",direction:kn.horizontal},Q?[M.createElement("div",{key:"__checkbox",className:le.cellIsCheck,"aria-labelledby":this._id+"-check",onClick:B?void 0:this._onSelectAllClicked,"aria-colindex":1,role:"columnheader"},b({hostClassName:le.checkTooltip,id:this._id+"-checkTooltip",setAriaDescribedBy:!1,content:h,children:M.createElement(Bb,{id:this._id+"-check","aria-label":k===it.multiple?h:_,"data-is-focusable":!B||void 0,isHeader:!0,selected:H,anySelected:!1,canSelect:!B,className:le.check,onRenderDetailsCheckbox:I,useFastIcons:Y,isVisible:R})},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:h&&!B?M.createElement("label",{key:"__checkboxLabel",id:this._id+"-checkTooltip",className:le.accessibleLabel,"aria-hidden":!0},h):_&&B?M.createElement("label",{key:"__checkboxLabel",id:this._id+"-checkTooltip",className:le.accessibleLabel,"aria-hidden":!0},_):null]:null,A>0&&this.props.collapseAllVisibility===Zp.visible?M.createElement("div",{className:le.cellIsGroupExpander,onClick:this._onToggleCollapseAll,"data-is-focusable":!0,"aria-label":u,"aria-expanded":!Z,role:"columnheader"},M.createElement(V,{className:le.collapseButton,iconName:z?"ChevronLeftMed":"ChevronRightMed"})):null,M.createElement(Jc,{indentWidth:m,role:"gridcell",count:A-1}),d.map(function(J,ee){var he=X?ee>=$&&ee<d.length-ie:!1;return[X&&(he||ee===d.length-ie)&&n._renderDropHint(ee),M.createElement(b1,{column:J,styles:J.styles,key:J.key,columnIndex:(Q?2:1)+ee,parentId:n._id,isDraggable:he,updateDragInfo:n._updateDragInfo,dragDropHelper:n._dragDropHelper,onColumnClick:x,onColumnContextMenu:y,onRenderColumnHeaderTooltip:n.props.onRenderColumnHeaderTooltip,isDropped:n._onDropIndexInfo.targetIndex===ee,cellStyleProps:n.props.cellStyleProps,useFastIcons:Y}),n._renderColumnDivider(ee)]}),X&&ie===0&&this._renderDropHint(d.length),K&&M.createElement(vd,null,M.createElement("div",{className:le.sizingOverlay,onMouseMove:this._onSizerMouseMove,onMouseUp:this._onSizerMouseUp})))},o.prototype.focus=function(){var n;return!!(!((n=this._rootComponent.current)===null||n===void 0)&&n.focus())},o.prototype._getColumnReorderProps=function(){var n=this.props,t=n.columnReorderOptions,i=n.columnReorderProps;return i||t&&N(N({},t),{onColumnDragEnd:void 0})},o.prototype._getHeaderDragDropOptions=function(){var n={selectionIndex:1,context:{data:this,index:0},canDrag:function(){return!1},canDrop:function(){return!0},onDragStart:function(){},updateDropState:this._updateDroppingState,onDrop:this._onDrop,onDragEnd:function(){},onDragOver:this._onDragOver};return n},o.prototype._isValidCurrentDropHintIndex=function(){return this._currentDropHintIndex>=0},o.prototype._isCheckboxColumnHidden=function(){var n=this.props,t=n.selectionMode,i=n.checkboxVisibility;return t===it.none||i===Os.hidden},o.prototype._resetDropHints=function(){this._currentDropHintIndex>=0&&(this._updateDropHintElement(this._dropHintDetails[this._currentDropHintIndex].dropHintElementRef,"none"),this._currentDropHintIndex=-1)},o.prototype._updateDropHintElement=function(n,t){n.childNodes[1].style.display=t,n.childNodes[0].style.display=t},o.prototype._isEventOnHeader=function(n){if(this._rootElement.current){var t=this._rootElement.current.getBoundingClientRect();if(n.clientX>t.left&&n.clientX<t.right&&n.clientY>t.top&&n.clientY<t.bottom)return Hc.header}},o.prototype._renderColumnDivider=function(n){var t=this.props.columns,i=t===void 0?lo:t,d=i[n],c=d.onRenderDivider;return c?c({column:d,columnIndex:n},this._renderColumnSizer):this._renderColumnSizer({column:d,columnIndex:n})},o.prototype._renderDropHint=function(n){var t=this._classNames,i=this.props.useFastIcons?kt:Ue;return M.createElement("div",{key:"dropHintKey",className:t.dropHintStyle,id:"columnDropHint_"+n},M.createElement("div",{role:"presentation",key:"dropHintCircleKey",className:t.dropHintCaretStyle,"data-is-focusable":!1,"data-sizer-index":n,"aria-hidden":!0},M.createElement(i,{iconName:"CircleShapeSolid"})),M.createElement("div",{key:"dropHintLineKey","aria-hidden":!0,"data-is-focusable":!1,"data-sizer-index":n,className:t.dropHintLineStyle}))},o.prototype._onSizerDoubleClick=function(n,t){var i=this.props,d=i.onColumnAutoResized,c=i.columns,u=c===void 0?lo:c;d&&d(u[n],n)},o.prototype._onSelectionChanged=function(){var n=!!this.props.selection&&this.props.selection.isAllSelected();this.state.isAllSelected!==n&&this.setState({isAllSelected:n})},o.defaultProps={selectAllVisibility:po.visible,collapseAllVisibility:Zp.visible,useFastIcons:!0},o})(M.Component);function af(s,o,n,t){return s?o<=n&&o>=t:o>=n&&o<=t}function tx(s,o,n){return s?o>=n:o<=n}function nx(s,o,n){return s?o<=n:o>=n}function j1(s){s.stopPropagation()}var L1=Ze(M1,IE,void 0,{scope:"DetailsHeader"}),E1=function(s,o){var n=s&&o&&o.fieldName?s[o.fieldName]:"";return n==null&&(n=""),typeof n=="boolean"?n.toString():n},D1=function(s){var o=s.columns,n=s.columnStartIndex,t=s.rowClassNames,i=s.cellStyleProps,d=i===void 0?Ci:i,c=s.item,u=s.itemIndex,h=s.onRenderItemColumn,g=s.getCellValueKey,_=s.cellsByColumn,m=s.enableUpdateAnimations,x=s.rowHeaderId,y=M.useRef(),v=y.current||(y.current={});return M.createElement("div",{className:t.fields,"data-automationid":"DetailsRowFields",role:"presentation"},o.map(function(b,C){var k=typeof b.calculatedWidth>"u"?"auto":b.calculatedWidth+d.cellLeftPadding+d.cellRightPadding+(b.isPadded?d.cellExtraRightPadding:0),L=b.onRender,I=L===void 0?h:L,A=b.getValueKey,Y=A===void 0?g:A,P=_&&b.key in _?_[b.key]:I?I(c,u,b):E1(c,b),T=v[b.key],F=m&&Y?Y(c,u,b):void 0,H=!1;F!==void 0&&T!==void 0&&F!==T&&(H=!0),v[b.key]=F;var W=""+b.key+(F!==void 0?"-"+F:"");return M.createElement("div",{key:W,id:b.isRowHeader?x:void 0,role:b.isRowHeader?"rowheader":"gridcell","aria-readonly":!0,"aria-colindex":C+n+1,className:sn(b.className,b.isMultiline&&t.isMultiline,b.isRowHeader&&t.isRowHeader,t.cell,b.isPadded?t.cellPadded:t.cellUnpadded,H&&t.cellAnimation),style:{width:k},"data-automationid":"DetailsRowCell","data-automation-key":b.key},P)}))},I1=Je(),T1="is-dropping",rx=[],A1=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._root=M.createRef(),t._cellMeasurer=M.createRef(),t._focusZone=M.createRef(),t._onSelectionChanged=function(){var i=lf(t.props);bi(i,t.state.selectionState)||t.setState({selectionState:i})},t._updateDroppingState=function(i,d){var c=t.state.isDropping,u=t.props,h=u.dragDropEvents,g=u.item;i?h.onDragEnter&&(t._droppingClassNames=h.onDragEnter(g,d)):h.onDragLeave&&h.onDragLeave(g,d),c!==i&&t.setState({isDropping:i})},St(t),t._events=new Yt(t),t.state={selectionState:lf(n),columnMeasureInfo:void 0,isDropping:!1},t._droppingClassNames="",t}return o.getDerivedStateFromProps=function(n,t){return N(N({},t),{selectionState:lf(n)})},o.prototype.componentDidMount=function(){var n=this.props,t=n.dragDropHelper,i=n.selection,d=n.item,c=n.onDidMount;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getRowDragDropOptions())),i&&this._events.on(i,ag,this._onSelectionChanged),c&&d&&(this._onDidMountCalled=!0,c(this))},o.prototype.componentDidUpdate=function(n){var t=this.state,i=this.props,d=i.item,c=i.onDidMount,u=t.columnMeasureInfo;if((this.props.itemIndex!==n.itemIndex||this.props.item!==n.item||this.props.dragDropHelper!==n.dragDropHelper)&&(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getRowDragDropOptions()))),u&&u.index>=0&&this._cellMeasurer.current){var h=this._cellMeasurer.current.getBoundingClientRect().width;u.onMeasureDone(h),this.setState({columnMeasureInfo:void 0})}d&&c&&!this._onDidMountCalled&&(this._onDidMountCalled=!0,c(this))},o.prototype.componentWillUnmount=function(){var n=this.props,t=n.item,i=n.onWillUnmount;i&&t&&i(this),this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._events.dispose()},o.prototype.shouldComponentUpdate=function(n,t){if(this.props.useReducedRowRenderer){var i=lf(n);return this.state.selectionState.isSelected!==i.isSelected?!0:!bi(this.props,n)}else return!0},o.prototype.render=function(){var n=this.props,t=n.className,i=n.columns,d=i===void 0?rx:i,c=n.dragDropEvents,u=n.item,h=n.itemIndex,g=n.flatIndexOffset,_=g===void 0?2:g,m=n.id,x=n.onRenderCheck,y=x===void 0?this._onRenderCheck:x,v=n.onRenderDetailsCheckbox,b=n.onRenderItemColumn,C=n.getCellValueKey,k=n.selectionMode,L=n.rowWidth,I=L===void 0?0:L,A=n.checkboxVisibility,Y=n.getRowAriaLabel,P=n.getRowAriaDescription,T=n.getRowAriaDescribedBy,F=n.checkButtonAriaLabel,H=n.checkboxCellClassName,W=n.rowFieldsAs,K=W===void 0?D1:W,Z=n.selection,Q=n.indentWidth,B=n.enableUpdateAnimations,R=n.compact,X=n.theme,$=n.styles,ie=n.cellsByColumn,le=n.groupNestingDepth,V=n.useFastIcons,z=V===void 0?!0:V,J=n.cellStyleProps,ee=n.disabled,he=ee===void 0?!1:ee,te=n.group,G=this.state,re=G.columnMeasureInfo,He=G.isDropping,Ge=this.state.selectionState,Ut=Ge.isSelected,ht=Ut===void 0?!1:Ut,Le=Ge.isSelectionModal,Me=Le===void 0?!1:Le,qe=c?!!(c.canDrag&&c.canDrag(u)):void 0,Ct=He?this._droppingClassNames||T1:"",Pt=Y?Y(u):void 0,Mt=P?P(u):void 0,Wt=T?T(u):void 0,Xt=!!Z&&Z.canSelectItem(u,h)&&!he,wo=k===it.multiple,an=k!==it.none&&A!==Os.hidden,fs=k===it.none?void 0:ht,Hn=te?h-te.startIndex+1:void 0,Mi=te?te.count:void 0;this._classNames=N(N({},this._classNames),I1($,{theme:X,isSelected:ht,canSelect:!wo,anySelected:Me,checkboxCellClassName:H,droppingClassName:Ct,className:t,compact:R,enableUpdateAnimations:B,cellStyleProps:J,disabled:he}));var rr={isMultiline:this._classNames.isMultiline,isRowHeader:this._classNames.isRowHeader,cell:this._classNames.cell,cellAnimation:this._classNames.cellAnimation,cellPadded:this._classNames.cellPadded,cellUnpadded:this._classNames.cellUnpadded,fields:this._classNames.fields};bi(this._rowClassNames||{},rr)||(this._rowClassNames=rr);var Ft=M.createElement(K,{rowClassNames:this._rowClassNames,rowHeaderId:m+"-header",cellsByColumn:ie,columns:d,item:u,itemIndex:h,columnStartIndex:(an?1:0)+(le?1:0),onRenderItemColumn:b,getCellValueKey:C,enableUpdateAnimations:B,cellStyleProps:J}),Vs="row",sr=this.props.role?this.props.role:Vs;return this._ariaRowDescriptionId=zt("DetailsRow-description"),M.createElement(xd,N({"data-is-focusable":!0},pt(this.props,Yn),typeof qe=="boolean"?{"data-is-draggable":qe,draggable:qe}:{},{direction:kn.horizontal,elementRef:this._root,componentRef:this._focusZone,role:sr,"aria-label":Pt,"aria-disabled":he||void 0,"aria-describedby":Mt?this._ariaRowDescriptionId:Wt,className:this._classNames.root,"data-selection-index":h,"data-selection-touch-invoke":!0,"data-selection-disabled":he||void 0,"data-item-index":h,"aria-rowindex":Hn===void 0?h+_:void 0,"aria-level":le&&le+1||void 0,"aria-posinset":Hn,"aria-setsize":Mi,"data-automationid":"DetailsRow",style:{minWidth:I},"aria-selected":fs,allowFocusRoot:!0}),Mt?M.createElement("span",{key:"description",role:"presentation",hidden:!0,id:this._ariaRowDescriptionId},Mt):null,an&&M.createElement("div",{role:"gridcell","aria-colindex":1,"data-selection-toggle":!0,className:this._classNames.checkCell},y({id:m?m+"-checkbox":void 0,selected:ht,anySelected:Me,"aria-label":F,"aria-labelledby":m?m+"-checkbox "+m+"-header":void 0,canSelect:Xt,compact:R,className:this._classNames.check,theme:X,isVisible:A===Os.always,onRenderDetailsCheckbox:v,useFastIcons:z})),M.createElement(Jc,{indentWidth:Q,role:"gridcell",count:le-(this.props.collapseAllVisibility===Zp.hidden?1:0)}),u&&Ft,re&&M.createElement("span",{role:"presentation",className:sn(this._classNames.cellMeasurer,this._classNames.cell),ref:this._cellMeasurer},M.createElement(K,{rowClassNames:this._rowClassNames,rowHeaderId:m+"-header",columns:[re.column],item:u,itemIndex:h,columnStartIndex:(an?1:0)+(le?1:0)+d.length,onRenderItemColumn:b,getCellValueKey:C})),M.createElement("span",{role:"checkbox",className:this._classNames.checkCover,"aria-checked":ht,"data-selection-toggle":!0}))},o.prototype.measureCell=function(n,t){var i=this.props.columns,d=i===void 0?rx:i,c=N({},d[n]);c.minWidth=0,c.maxWidth=999999,delete c.calculatedWidth,this.setState({columnMeasureInfo:{index:n,column:c,onMeasureDone:t}})},o.prototype.focus=function(n){n===void 0&&(n=!1);var t;return!!(!((t=this._focusZone.current)===null||t===void 0)&&t.focus(n))},o.prototype._onRenderCheck=function(n){return M.createElement(Bb,N({},n))},o.prototype._getRowDragDropOptions=function(){var n=this.props,t=n.item,i=n.itemIndex,d=n.dragDropEvents,c=n.eventsToRegister,u={eventMap:c,selectionIndex:i,context:{data:t,index:i},canDrag:d.canDrag,canDrop:d.canDrop,onDragStart:d.onDragStart,updateDropState:this._updateDroppingState,onDrop:d.onDrop,onDragEnd:d.onDragEnd,onDragOver:d.onDragOver};return u},o})(M.Component);function lf(s){var o,n,t,i,d=s.itemIndex,c=s.selection;return{isSelected:!!(!((o=c)===null||o===void 0)&&o.isIndexSelected(d)),isSelectionModal:!!(!((i=(n=c)===null||n===void 0?void 0:(t=n).isModal)===null||i===void 0)&&i.call(t))}}var P1=Ze(A1,DE,void 0,{scope:"DetailsRow"}),R1=Je(),Ua=100,F1=2,N1=2,O1=function(s){var o,n=s.selection,t=s.ariaLabelForListHeader,i=s.ariaLabelForSelectAllCheckbox,d=s.ariaLabelForSelectionColumn,c=s.className,u=s.checkboxVisibility,h=s.compact,g=s.constrainMode,_=s.dragDropEvents,m=s.groups,x=s.groupProps,y=s.indentWidth,v=s.items,b=s.isPlaceholderData,C=s.isHeaderVisible,k=s.layoutMode,L=s.onItemInvoked,I=s.onItemContextMenu,A=s.onColumnHeaderClick,Y=s.onColumnHeaderContextMenu,P=s.selectionMode,T=P===void 0?n.mode:P,F=s.selectionPreservedOnEmptyClick,H=s.selectionZoneProps,W=s.ariaLabel,K=s.ariaLabelForGrid,Z=s.rowElementEventMap,Q=s.shouldApplyApplicationRole,B=Q===void 0?!1:Q,R=s.getKey,X=s.listProps,$=s.usePageCache,ie=s.onShouldVirtualize,le=s.viewport,V=s.minimumPixelsForDrag,z=s.getGroupHeight,J=s.styles,ee=s.theme,he=s.cellStyleProps,te=he===void 0?Ci:he,G=s.onRenderCheckbox,re=s.useFastIcons,He=s.dragDropHelper,Ge=s.adjustedColumns,Ut=s.isCollapsed,ht=s.isSizing,Le=s.isSomeGroupExpanded,Me=s.version,qe=s.rootRef,Ct=s.listRef,Pt=s.focusZoneRef,Mt=s.columnReorderOptions,Wt=s.groupedListRef,Xt=s.headerRef,wo=s.onGroupExpandStateChanged,an=s.onColumnIsSizingChanged,fs=s.onRowDidMount,Hn=s.onRowWillUnmount,Mi=s.disableSelectionZone,rr=s.isSelectedOnFocus,Ft=rr===void 0?!0:rr,Vs=s.onColumnResized,sr=s.onColumnAutoResized,Gs=s.onToggleCollapse,Rt=s.onActiveRowChanged,ge=s.onBlur,se=s.rowElementEventMap,Ae=s.onRenderMissingItem,gt=s.onRenderItemColumn,Bt=s.getCellValueKey,or=s.getRowAriaLabel,gs=s.getRowAriaDescribedBy,Sd=s.checkButtonAriaLabel,Go=s.checkButtonGroupAriaLabel,ol=s.checkboxCellClassName,$o=s.useReducedRowRenderer,_s=s.enableUpdateAnimations,ji=s.enterModalSelectionOnTouch,$s=s.onRenderDefaultRow,Ie=s.selectionZoneRef,Ks="grid",ns=s.role?s.role:Ks,Er=zt("row"),pn=B1(m),Qe=H1(m),Ko=M.useMemo(function(){return N({renderedWindowsAhead:ht?0:F1,renderedWindowsBehind:ht?0:N1,getKey:R,version:Me},X)},[ht,R,Me,X]),_t=po.none;if(T===it.single&&(_t=po.hidden),T===it.multiple){var ys=x&&x.headerProps&&x.headerProps.isCollapsedGroupSelectVisible;ys===void 0&&(ys=!0);var Cd=ys||!m||Le;_t=Cd?po.visible:po.hidden}u===Os.hidden&&(_t=po.none);var _r=M.useCallback(function(lt){return M.createElement(L1,N({},lt))},[]),ln=M.useCallback(function(){return null},[]),ir=s.onRenderDetailsHeader,Dr=M.useMemo(function(){return ir?Ns(ir,_r):_r},[ir,_r]),Vt=s.onRenderDetailsFooter,ar=M.useMemo(function(){return Vt?Ns(Vt,ln):ln},[Vt,ln]),lr=M.useMemo(function(){return{columns:Ge,groupNestingDepth:pn,selection:n,selectionMode:T,viewport:le,checkboxVisibility:u,indentWidth:y,cellStyleProps:te}},[Ge,pn,n,T,le,u,y,te]),ws=Mt&&Mt.onDragEnd,qo=M.useCallback(function(lt,Nt){var jt=lt.dropLocation,vn=Hc.outside;if(ws){if(jt&&jt!==Hc.header)vn=jt;else if(qe.current){var Tr=qe.current.getBoundingClientRect();Nt.clientX>Tr.left&&Nt.clientX<Tr.right&&Nt.clientY>Tr.top&&Nt.clientY<Tr.bottom&&(vn=Hc.surface)}ws(vn)}},[ws,qe]),oa=M.useMemo(function(){if(Mt)return N(N({},Mt),{onColumnDragEnd:qo})},[Mt,qo]),qs=(C?1:0)+d1(m)+(v?v.length:0),ia=(_t!==po.none?1:0)+(Ge?Ge.length:0)+(m?1:0),aa=M.useMemo(function(){return R1(J,{theme:ee,compact:h,isFixed:k===qc.fixedColumns,isHorizontalConstrained:g===Kf.horizontalConstrained,className:c})},[J,ee,h,k,g,c]),Js=x&&x.onRenderFooter,Jo=M.useMemo(function(){return Js?function(lt,Nt){return Js(N(N({},lt),{columns:Ge,groupNestingDepth:pn,indentWidth:y,selection:n,selectionMode:T,viewport:le,checkboxVisibility:u,cellStyleProps:te}),Nt)}:void 0},[Js,Ge,pn,y,n,T,le,u,te]),rs=x&&x.onRenderHeader,il=M.useMemo(function(){return rs?function(lt,Nt){var jt=lt.groupIndex,vn=m&&jt!==void 0&&m[jt]!==void 0?m[jt].key:void 0,Tr=vn!==void 0&&Qe[vn]?Qe[vn].totalRowCount:0;return rs(N(N({},lt),{columns:Ge,groupNestingDepth:pn,indentWidth:y,selection:n,selectionMode:u!==Os.hidden?T:it.none,viewport:le,checkboxVisibility:u,cellStyleProps:te,ariaColSpan:Ge.length,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:jt!==void 0?Tr+(C?1:0):void 0}),Nt)}:function(lt,Nt){var jt=lt.groupIndex,vn=m&&jt!==void 0&&m[jt]!==void 0?m[jt].key:void 0,Tr=vn!==void 0&&Qe[vn]?Qe[vn].totalRowCount:0;return Nt(N(N({},lt),{ariaColSpan:Ge.length,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:jt!==void 0?Tr+(C?1:0):void 0}))}},[rs,Ge,m,pn,y,C,n,T,le,u,te,Qe]),kd=M.useMemo(function(){var lt,Nt,jt;return N(N({},x),{role:ns===Ks?"rowgroup":"presentation",onRenderFooter:Jo,onRenderHeader:il,headerProps:N(N({},(lt=x)===null||lt===void 0?void 0:lt.headerProps),{selectAllButtonProps:N({"aria-label":Go},(jt=(Nt=x)===null||Nt===void 0?void 0:Nt.headerProps)===null||jt===void 0?void 0:jt.selectAllButtonProps)})})},[x,Jo,il,Go,ns]),al=Sb(function(){return Et(function(lt){var Nt=0;return lt.forEach(function(jt){return Nt+=jt.calculatedWidth||jt.minWidth}),Nt})}),Qt=x&&x.collapseAllVisibility,Li=M.useMemo(function(){return al(Ge)},[Ge,al]),la=M.useCallback(function(lt,Nt,jt,vn){var Tr=s.onRenderRow?Ns(s.onRenderRow,$s):$s,Ei=vn?vn.key:void 0,ul=Ei&&Qe[Ei]?Qe[Ei].numOfGroupHeadersBeforeItem:0,Di=ns===Ks?void 0:"presentation",Zo={item:Nt,itemIndex:jt,flatIndexOffset:(C?2:1)+ul,compact:h,columns:Ge,groupNestingDepth:lt,id:Er+"-"+jt,selectionMode:T,selection:n,onDidMount:fs,onWillUnmount:Hn,onRenderItemColumn:gt,getCellValueKey:Bt,eventsToRegister:se,dragDropEvents:_,dragDropHelper:He,viewport:le,checkboxVisibility:u,collapseAllVisibility:Qt,getRowAriaLabel:or,getRowAriaDescribedBy:gs,checkButtonAriaLabel:Sd,checkboxCellClassName:ol,useReducedRowRenderer:$o,indentWidth:y,cellStyleProps:te,onRenderDetailsCheckbox:G,enableUpdateAnimations:_s,rowWidth:Li,useFastIcons:re,role:Di};return Nt?Tr(Zo):Ae?Ae(jt,Zo):null},[h,Ge,T,n,Er,fs,Hn,gt,Bt,se,_,He,le,u,Qt,or,gs,C,Sd,ol,$o,y,te,G,_s,re,$s,Ae,s.onRenderRow,Li,ns,Qe]),da=M.useCallback(function(lt){return function(Nt,jt){return la(lt,Nt,jt)}},[la]),ll=M.useCallback(function(lt){return lt.which===Bf(ke.right,ee)},[ee]),dl={componentRef:Pt,className:aa.focusZone,direction:kn.vertical,shouldEnterInnerZone:ll,onActiveElementChanged:Rt,shouldRaiseClicks:!1,onBlur:ge},cl=m&&(!((o=x)===null||o===void 0)&&o.groupedListAs)?G0(x.groupedListAs,Zv):Zv,Ir=m?M.createElement(cl,{focusZoneProps:dl,componentRef:Wt,groups:m,groupProps:kd,items:v,onRenderCell:la,role:"presentation",selection:n,selectionMode:u!==Os.hidden?T:it.none,dragDropEvents:_,dragDropHelper:He,eventsToRegister:Z,listProps:Ko,onGroupExpandStateChanged:wo,usePageCache:$,onShouldVirtualize:ie,getGroupHeight:z,compact:h}):M.createElement(xd,N({},dl),M.createElement(Jp,N({ref:Ct,role:"presentation",items:v,onRenderCell:da(0),usePageCache:$,onShouldVirtualize:ie},Ko))),Zs=M.useCallback(function(lt){lt.which===ke.down&&Pt.current&&Pt.current.focus()&&(Ft&&n.getSelectedIndices().length===0&&n.setIndexSelected(0,!0,!1),lt.preventDefault(),lt.stopPropagation())},[n,Pt,Ft]),Xs=M.useCallback(function(lt){lt.which===ke.up&&!lt.altKey&&Xt.current&&Xt.current.focus()&&(lt.preventDefault(),lt.stopPropagation())},[Xt]);return M.createElement("div",N({ref:qe,className:aa.root,"data-automationid":"DetailsList","data-is-scrollable":"false","aria-label":W},B?{role:"application"}:{}),M.createElement(nu,null),M.createElement("div",{role:ns,"aria-label":K,"aria-rowcount":b?-1:qs,"aria-colcount":ia,"aria-readonly":"true","aria-busy":b},M.createElement("div",{onKeyDown:Zs,role:"presentation",className:aa.headerWrapper},C&&Dr({componentRef:Xt,selectionMode:T,layoutMode:k,selection:n,columns:Ge,onColumnClick:A,onColumnContextMenu:Y,onColumnResized:Vs,onColumnIsSizingChanged:an,onColumnAutoResized:sr,groupNestingDepth:pn,isAllCollapsed:Ut,onToggleCollapseAll:Gs,ariaLabel:t,ariaLabelForSelectAllCheckbox:i,ariaLabelForSelectionColumn:d,selectAllVisibility:_t,collapseAllVisibility:x&&x.collapseAllVisibility,viewport:le,columnReorderProps:oa,minimumPixelsForDrag:V,cellStyleProps:te,checkboxVisibility:u,indentWidth:y,onRenderDetailsCheckbox:G,rowWidth:al(Ge),useFastIcons:re},Dr)),M.createElement("div",{onKeyDown:Xs,role:"presentation",className:aa.contentWrapper},Mi?Ir:M.createElement(CE,N({ref:Ie,selection:n,selectionPreservedOnEmptyClick:F,selectionMode:T,isSelectedOnFocus:Ft,selectionClearedOnEscapePress:Ft,toggleWithoutModifierPressed:!Ft,onItemInvoked:L,onItemContextMenu:I,enterModalOnTouch:ji},H||{}),Ir)),ar(N({},lr))))},Y1=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._root=M.createRef(),t._header=M.createRef(),t._groupedList=M.createRef(),t._list=M.createRef(),t._focusZone=M.createRef(),t._selectionZone=M.createRef(),t._onRenderRow=function(i,d){return M.createElement(P1,N({},i))},t._getDerivedStateFromProps=function(i,d){var c=t.props,u=c.checkboxVisibility,h=c.items,g=c.setKey,_=c.selectionMode,m=_===void 0?t._selection.mode:_,x=c.columns,y=c.viewport,v=c.compact,b=c.dragDropEvents,C=(t.props.groupProps||{}).isAllGroupsCollapsed,k=C===void 0?void 0:C,L=i.viewport&&i.viewport.width||0,I=y&&y.width||0,A=i.setKey!==g||i.setKey===void 0,Y=!1;i.layoutMode!==t.props.layoutMode&&(Y=!0);var P=d;return A&&(t._initialFocusedIndex=i.initialFocusedIndex,P=N(N({},P),{focusedItemIndex:t._initialFocusedIndex!==void 0?t._initialFocusedIndex:-1})),!t.props.disableSelectionZone&&i.items!==h&&t._selection.setItems(i.items,A),(i.checkboxVisibility!==u||i.columns!==x||L!==I||i.compact!==v)&&(Y=!0),P=N(N({},P),t._adjustColumns(i,P,!0)),i.selectionMode!==m&&(Y=!0),k===void 0&&i.groupProps&&i.groupProps.isAllGroupsCollapsed!==void 0&&(P=N(N({},P),{isCollapsed:i.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:!i.groupProps.isAllGroupsCollapsed})),i.dragDropEvents!==b&&(t._dragDropHelper&&t._dragDropHelper.dispose(),t._dragDropHelper=i.dragDropEvents?new Ly({selection:t._selection,minimumPixelsForDrag:i.minimumPixelsForDrag}):void 0,Y=!0),Y&&(P=N(N({},P),{version:{}})),P},t._onGroupExpandStateChanged=function(i){t.setState({isSomeGroupExpanded:i})},t._onColumnIsSizingChanged=function(i,d){t.setState({isSizing:d})},t._onRowDidMount=function(i){var d=i.props,c=d.item,u=d.itemIndex,h=t._getItemKey(c,u);t._activeRows[h]=i,t._setFocusToRowIfPending(i);var g=t.props.onRowDidMount;g&&g(c,u)},t._onRowWillUnmount=function(i){var d=t.props.onRowWillUnmount,c=i.props,u=c.item,h=c.itemIndex,g=t._getItemKey(u,h);delete t._activeRows[g],d&&d(u,h)},t._onToggleCollapse=function(i){t.setState({isCollapsed:i}),t._groupedList.current&&t._groupedList.current.toggleCollapseAll(i)},t._onColumnResized=function(i,d,c){var u=Math.max(i.minWidth||Ua,d);t.props.onColumnResize&&t.props.onColumnResize(i,u,c),t._rememberCalculatedWidth(i,u),t.setState(N(N({},t._adjustColumns(t.props,t.state,!0,c)),{version:{}}))},t._onColumnAutoResized=function(i,d){var c=0,u=0,h=Object.keys(t._activeRows).length;for(var g in t._activeRows)if(t._activeRows.hasOwnProperty(g)){var _=t._activeRows[g];_.measureCell(d,function(m){c=Math.max(c,m),u++,u===h&&t._onColumnResized(i,c,d)})}},t._onActiveRowChanged=function(i,d){var c=t.props,u=c.items,h=c.onActiveItemChanged;if(i&&i.getAttribute("data-item-index")){var g=Number(i.getAttribute("data-item-index"));g>=0&&(h&&h(u[g],g,d),t.setState({focusedItemIndex:g}))}},t._onBlur=function(i){t.setState({focusedItemIndex:-1})},St(t),t._async=new Wn(t),t._activeRows={},t._columnOverrides={},t.state={focusedItemIndex:-1,lastWidth:0,adjustedColumns:t._getAdjustedColumns(n,void 0),isSizing:!1,isCollapsed:n.groupProps&&n.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:n.groupProps&&!n.groupProps.isAllGroupsCollapsed,version:{},getDerivedStateFromProps:t._getDerivedStateFromProps},t._selection=n.selection||new MM({onSelectionChanged:void 0,getKey:n.getKey,selectionMode:n.selectionMode}),t.props.disableSelectionZone||t._selection.setItems(n.items,!1),t._dragDropHelper=n.dragDropEvents?new Ly({selection:t._selection,minimumPixelsForDrag:n.minimumPixelsForDrag}):void 0,t._initialFocusedIndex=n.initialFocusedIndex,t}return o.getDerivedStateFromProps=function(n,t){return t.getDerivedStateFromProps(n,t)},o.prototype.scrollToIndex=function(n,t,i){this._list.current&&this._list.current.scrollToIndex(n,t,i),this._groupedList.current&&this._groupedList.current.scrollToIndex(n,t,i)},o.prototype.focusIndex=function(n,t,i,d){t===void 0&&(t=!1);var c=this.props.items[n];if(c){this.scrollToIndex(n,i,d);var u=this._getItemKey(c,n),h=this._activeRows[u];h&&this._setFocusToRow(h,t)}},o.prototype.getStartItemIndexInView=function(){return this._list&&this._list.current?this._list.current.getStartItemIndexInView():this._groupedList&&this._groupedList.current?this._groupedList.current.getStartItemIndexInView():0},o.prototype.componentWillUnmount=function(){this._dragDropHelper&&this._dragDropHelper.dispose(),this._async.dispose()},o.prototype.componentDidUpdate=function(n,t){if(this._notifyColumnsResized(),this._initialFocusedIndex!==void 0){var i=this.props.items[this._initialFocusedIndex];if(i){var d=this._getItemKey(i,this._initialFocusedIndex),c=this._activeRows[d];c&&this._setFocusToRowIfPending(c)}}if(this.props.items!==n.items&&this.props.items.length>0&&this.state.focusedItemIndex!==-1&&!un(this._root.current,document.activeElement,!1)){var u=this.state.focusedItemIndex<this.props.items.length?this.state.focusedItemIndex:this.props.items.length-1,i=this.props.items[u],d=this._getItemKey(i,this.state.focusedItemIndex),c=this._activeRows[d];c?this._setFocusToRow(c):this._initialFocusedIndex=u}this.props.onDidUpdate&&this.props.onDidUpdate(this)},o.prototype.render=function(){return M.createElement(O1,N({},this.props,this.state,{selection:this._selection,dragDropHelper:this._dragDropHelper,rootRef:this._root,listRef:this._list,groupedListRef:this._groupedList,focusZoneRef:this._focusZone,headerRef:this._header,selectionZoneRef:this._selectionZone,onGroupExpandStateChanged:this._onGroupExpandStateChanged,onColumnIsSizingChanged:this._onColumnIsSizingChanged,onRowDidMount:this._onRowDidMount,onRowWillUnmount:this._onRowWillUnmount,onColumnResized:this._onColumnResized,onColumnAutoResized:this._onColumnAutoResized,onToggleCollapse:this._onToggleCollapse,onActiveRowChanged:this._onActiveRowChanged,onBlur:this._onBlur,onRenderDefaultRow:this._onRenderRow}))},o.prototype.forceUpdate=function(){s.prototype.forceUpdate.call(this),this._forceListUpdates()},o.prototype._getGroupNestingDepth=function(){for(var n=this.props.groups,t=0,i=n;i&&i.length>0;)t++,i=i[0].children;return t},o.prototype._setFocusToRowIfPending=function(n){var t=n.props.itemIndex;this._initialFocusedIndex!==void 0&&t===this._initialFocusedIndex&&(this._setFocusToRow(n),delete this._initialFocusedIndex)},o.prototype._setFocusToRow=function(n,t){t===void 0&&(t=!1),this._selectionZone.current&&this._selectionZone.current.ignoreNextFocus(),this._async.setTimeout(function(){n.focus(t)},0)},o.prototype._forceListUpdates=function(){this._groupedList.current&&this._groupedList.current.forceUpdate(),this._list.current&&this._list.current.forceUpdate()},o.prototype._notifyColumnsResized=function(){this.state.adjustedColumns.forEach(function(n){n.onColumnResize&&n.onColumnResize(n.currentWidth)})},o.prototype._adjustColumns=function(n,t,i,d){var c=this._getAdjustedColumns(n,t,i,d),u=this.props.viewport,h=u&&u.width?u.width:0;return N(N({},t),{adjustedColumns:c,lastWidth:h})},o.prototype._getAdjustedColumns=function(n,t,i,d){var c=this,u=n.items,h=n.layoutMode,g=n.selectionMode,_=n.viewport,m=_&&_.width?_.width:0,x=n.columns,y=this.props?this.props.columns:[],v=t?t.lastWidth:-1,b=t?t.lastSelectionMode:void 0;if(!i&&v===m&&b===g&&(!y||x===y))return x||[];x=x||W1(u,!0);var C;return h===qc.fixedColumns?(C=this._getFixedColumns(x,m,n),C.forEach(function(k){c._rememberCalculatedWidth(k,k.calculatedWidth)})):(C=this._getJustifiedColumns(x,m,n),C.forEach(function(k){c._getColumnOverride(k.key).currentWidth=k.calculatedWidth})),C},o.prototype._getFixedColumns=function(n,t,i){var d=this,c=this.props,u=c.selectionMode,h=u===void 0?this._selection.mode:u,g=c.checkboxVisibility,_=c.flexMargin,m=c.skipViewportMeasures,x=t-(_||0),y=0;n.forEach(function(k){m||!k.flexGrow?x-=k.maxWidth||k.minWidth||Ua:(x-=k.minWidth||Ua,y+=k.flexGrow),x-=df(k,i,!0)});var v=h!==it.none&&g!==Os.hidden?qf:0,b=this._getGroupNestingDepth()*Xp;x-=v+b;var C=x/y;return m||n.forEach(function(k){var L=N(N({},k),d._columnOverrides[k.key]);if(L.flexGrow&&L.maxWidth){var I=L.flexGrow*C+L.minWidth,A=I-L.maxWidth;A>0&&(x+=A,y-=A/(I-L.minWidth)*L.flexGrow)}}),C=x>0?x/y:0,n.map(function(k){var L=N(N({},k),d._columnOverrides[k.key]);return!m&&L.flexGrow&&x<=0||L.calculatedWidth||(!m&&L.flexGrow?(L.calculatedWidth=L.minWidth+L.flexGrow*C,L.calculatedWidth=Math.min(L.calculatedWidth,L.maxWidth||Number.MAX_VALUE)):L.calculatedWidth=L.maxWidth||L.minWidth||Ua),L})},o.prototype._getJustifiedColumns=function(n,t,i){var d=this,c=i.selectionMode,u=c===void 0?this._selection.mode:c,h=i.checkboxVisibility,g=u!==it.none&&h!==Os.hidden?qf:0,_=this._getGroupNestingDepth()*Xp,m=0,x=0,y=t-(g+_),v=n.map(function(W,K){var Z=N(N({},W),{calculatedWidth:W.minWidth||Ua}),Q=N(N({},Z),d._columnOverrides[W.key]);return Z.isCollapsible||Z.isCollapsable||(x+=df(Z,i)),m+=df(Q,i),Q});if(x>y)return v;for(var b=v.length-1;b>=0&&m>y;){var C=v[b],k=C.minWidth||Ua,L=m-y;if(C.calculatedWidth-k>=L||!(C.isCollapsible||C.isCollapsable)){var I=C.calculatedWidth;C.calculatedWidth=Math.max(C.calculatedWidth-L,k),m-=I-C.calculatedWidth}else m-=df(C,i),v.splice(b,1);b--}for(var A=0;A<v.length&&m<y;A++){var C=v[A],Y=A===v.length-1,P=this._columnOverrides[C.key];if(!(P&&P.calculatedWidth&&!Y)){var T=y-m,F=void 0;if(Y)F=T;else{var H=C.maxWidth,k=C.minWidth||H||Ua;F=H?Math.min(T,H-k):T}C.calculatedWidth=C.calculatedWidth+F,m+=F}}return v},o.prototype._rememberCalculatedWidth=function(n,t){var i=this._getColumnOverride(n.key);i.calculatedWidth=t,i.currentWidth=t},o.prototype._getColumnOverride=function(n){return this._columnOverrides[n]=this._columnOverrides[n]||{}},o.prototype._getItemKey=function(n,t){var i=this.props.getKey,d=void 0;return n&&(d=n.key),i&&(d=i(n,t)),d||(d=t),d},o.defaultProps={layoutMode:qc.justified,selectionMode:it.multiple,constrainMode:Kf.horizontalConstrained,checkboxVisibility:Os.onHover,isHeaderVisible:!0,compact:!1,useFastIcons:!0},o=yo([wE],o),o})(M.Component);function W1(s,o,n,t,i,d,c){var u=[];if(s&&s.length){var h=s[0];for(var g in h)h.hasOwnProperty(g)&&u.push({key:g,name:g,fieldName:g,minWidth:Ua,maxWidth:300,isCollapsable:!!u.length,isCollapsible:!!u.length,isMultiline:!1,isSorted:t===g,isSortedDescending:!1,isRowHeader:!1,columnActionsMode:Oo.clickable,isResizable:o,onColumnClick:n,isGrouped:d===g})}return u}function df(s,o,n){var t=o.cellStyleProps,i=t===void 0?Ci:t;return(n?0:s.calculatedWidth)+i.cellLeftPadding+i.cellRightPadding+(s.isPadded?i.cellExtraRightPadding:0)}function B1(s){for(var o=0,n=s;n&&n.length>0;)o++,n=n[0].children;return o}function H1(s){return M.useMemo(function(){var o={};if(s)for(var n=1,t=1,i=0,d=s;i<d.length;i++){var c=d[i],u=c.key;o[u]={numOfGroupHeadersBeforeItem:t,totalRowCount:n},t++,n+=c.count+1}return o},[s])}var z1={root:"ms-DetailsList",compact:"ms-DetailsList--Compact",contentWrapper:"ms-DetailsList-contentWrapper",headerWrapper:"ms-DetailsList-headerWrapper",isFixed:"is-fixed",isHorizontalConstrained:"is-horizontalConstrained",listCell:"ms-List-cell"},U1=function(s){var o,n,t=s.theme,i=s.className,d=s.isHorizontalConstrained,c=s.compact,u=s.isFixed,h=t.semanticColors,g=at(z1,t);return{root:[g.root,t.fonts.small,{position:"relative",color:h.listText,selectors:(o={},o["& ."+g.listCell]={minHeight:38,wordBreak:"break-word"},o)},u&&g.isFixed,c&&[g.compact,{selectors:(n={},n["."+g.listCell]={minHeight:32},n)}],d&&[g.isHorizontalConstrained,{overflowX:"auto",overflowY:"visible",WebkitOverflowScrolling:"touch"}],i],focusZone:[{display:"inline-block",minWidth:"100%",minHeight:1}],headerWrapper:g.headerWrapper,contentWrapper:g.contentWrapper}},V1=Ze(Y1,U1,void 0,{scope:"DetailsList"}),G1=function(s){var o=s.theme,n=o.palette;return{root:{position:"relative",selectors:{":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,backgroundImage:"linear-gradient(to bottom, transparent 30%, "+n.whiteTranslucent40+" 65%,"+n.white+" 100%)"}}}}},fo;(function(s){s[s.normal=0]="normal",s[s.largeHeader=1]="largeHeader",s[s.close=2]="close"})(fo||(fo={}));var Hb=mo.durationValue2,$1={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},K1=function(s){var o,n=s.className,t=s.containerClassName,i=s.scrollableContentClassName,d=s.isOpen,c=s.isVisible,u=s.hasBeenOpened,h=s.modalRectangleTop,g=s.theme,_=s.topOffsetFixed,m=s.isModeless,x=s.layerClassName,y=s.isDefaultDragHandle,v=g.palette,b=g.effects,C=g.fonts,k=at($1,g);return{root:[k.root,C.medium,{backgroundColor:"transparent",position:m?"absolute":"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity "+Hb},_&&typeof h=="number"&&u&&{alignItems:"flex-start"},d&&k.isOpen,c&&{opacity:1,pointerEvents:"auto"},n],main:[k.main,{boxShadow:b.elevation64,borderRadius:b.roundedCorner2,backgroundColor:v.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:m?Hp.Layer:void 0},_&&typeof h=="number"&&u&&{top:h},y&&{cursor:"move"},t],scrollableContent:[k.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:(o={},o["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:window.innerHeight},o)},i],layer:m&&[x,k.layer,{position:"static",width:"unset",height:"unset"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:C.xLargePlus.fontSize,width:"24px"}}},q1=Je(),J1=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;St(t);var i=t.props.allowTouchBodyScroll,d=i===void 0?!1:i;return t._allowTouchBodyScroll=d,t}return o.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&t5()},o.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&n5()},o.prototype.render=function(){var n=this.props,t=n.isDarkThemed,i=n.className,d=n.theme,c=n.styles,u=pt(this.props,Yn),h=q1(c,{theme:d,className:i,isDark:t});return M.createElement("div",N({},u,{className:h.root}))},o})(M.Component),Z1={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},X1=function(s){var o,n=s.className,t=s.theme,i=s.isNone,d=s.isDark,c=t.palette,u=at(Z1,t);return{root:[u.root,t.fonts.medium,{backgroundColor:c.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(o={},o[_e]={border:"1px solid WindowText",opacity:0},o)},i&&{visibility:"hidden"},d&&[u.rootDark,{backgroundColor:c.blackTranslucent40}],n]}},wg=Ze(J1,X1,void 0,{scope:"Overlay"}),Q1=Et(function(s,o){return{root:Ho(s,o&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}}),jp={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},eD=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._currentEventType=jp.mouse,t._events=[],t._onMouseDown=function(i){var d=M.Children.only(t.props.children).props.onMouseDown;return d&&d(i),t._currentEventType=jp.mouse,t._onDragStart(i)},t._onMouseUp=function(i){var d=M.Children.only(t.props.children).props.onMouseUp;return d&&d(i),t._currentEventType=jp.mouse,t._onDragStop(i)},t._onTouchStart=function(i){var d=M.Children.only(t.props.children).props.onTouchStart;return d&&d(i),t._currentEventType=jp.touch,t._onDragStart(i)},t._onTouchEnd=function(i){var d=M.Children.only(t.props.children).props.onTouchEnd;d&&d(i),t._currentEventType=jp.touch,t._onDragStop(i)},t._onDragStart=function(i){if(typeof i.button=="number"&&i.button!==0)return!1;if(!(t.props.handleSelector&&!t._matchesSelector(i.target,t.props.handleSelector)||t.props.preventDragSelector&&t._matchesSelector(i.target,t.props.preventDragSelector))){t._touchId=t._getTouchId(i);var d=t._getControlPosition(i);if(d!==void 0){var c=t._createDragDataFromPosition(d);t.props.onStart&&t.props.onStart(i,c),t.setState({isDragging:!0,lastPosition:d}),t._events=[ho(document.body,t._currentEventType.move,t._onDrag,!0),ho(document.body,t._currentEventType.stop,t._onDragStop,!0)]}}},t._onDrag=function(i){i.type==="touchmove"&&i.preventDefault();var d=t._getControlPosition(i);if(d){var c=t._createUpdatedDragData(t._createDragDataFromPosition(d)),u=c.position;t.props.onDragChange&&t.props.onDragChange(i,c),t.setState({position:u,lastPosition:d})}},t._onDragStop=function(i){if(t.state.isDragging){var d=t._getControlPosition(i);if(d){var c=t._createDragDataFromPosition(d);t.setState({isDragging:!1,lastPosition:void 0}),t.props.onStop&&t.props.onStop(i,c),t.props.position&&t.setState({position:t.props.position}),t._events.forEach(function(u){return u()})}}},t.state={isDragging:!1,position:t.props.position||{x:0,y:0},lastPosition:void 0},t}return o.prototype.componentDidUpdate=function(n){this.props.position&&(!n.position||this.props.position!==n.position)&&this.setState({position:this.props.position})},o.prototype.componentWillUnmount=function(){this._events.forEach(function(n){return n()})},o.prototype.render=function(){var n=M.Children.only(this.props.children),t=n.props,i=this.props.position,d=this.state,c=d.position,u=d.isDragging,h=c.x,g=c.y;return i&&!u&&(h=i.x,g=i.y),M.cloneElement(n,{style:N(N({},t.style),{transform:"translate("+h+"px, "+g+"px)"}),className:Q1(t.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},o.prototype._getControlPosition=function(n){var t=this._getActiveTouch(n);if(!(this._touchId!==void 0&&!t)){var i=t||n;return{x:i.clientX,y:i.clientY}}},o.prototype._getActiveTouch=function(n){return n.targetTouches&&this._findTouchInTouchList(n.targetTouches)||n.changedTouches&&this._findTouchInTouchList(n.changedTouches)},o.prototype._getTouchId=function(n){var t=n.targetTouches&&n.targetTouches[0]||n.changedTouches&&n.changedTouches[0];if(t)return t.identifier},o.prototype._matchesSelector=function(n,t){if(!n||n===document.body)return!1;var i=n.matches||n.webkitMatchesSelector||n.msMatchesSelector;return i?i.call(n,t)||this._matchesSelector(n.parentElement,t):!1},o.prototype._findTouchInTouchList=function(n){if(this._touchId!==void 0){for(var t=0;t<n.length;t++)if(n[t].identifier===this._touchId)return n[t]}},o.prototype._createDragDataFromPosition=function(n){var t=this.state.lastPosition;return t===void 0?{delta:{x:0,y:0},lastPosition:n,position:n}:{delta:{x:n.x-t.x,y:n.y-t.y},lastPosition:t,position:n}},o.prototype._createUpdatedDragData=function(n){var t=this.state.position;return{position:{x:t.x+n.delta.x,y:t.y+n.delta.y},delta:n.delta,lastPosition:t}},o})(M.Component),tD={eventBubblingEnabled:!1},nD=Je(),rD=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;t._focusTrapZone=M.createRef(),t._focusTrapZoneMergedRef=Ky(),t._registerInitialModalPosition=function(){var c,u=document.querySelector("[data-id="+t.state.id+"]");if(u){var h=u.getBoundingClientRect();!((c=t.props.dragOptions)===null||c===void 0)&&c.keepInBounds&&!t._minClampedPosition&&!t._maxClampedPosition&&(t._minClampedPosition={x:-h.x,y:-h.y},t._maxClampedPosition={x:h.x,y:h.y}),t.setState({modalRectangleTop:h.top})}},t._allowScrollOnModal=function(c){c?t._allowTouchBodyScroll?W0(c,t._events):Y0(c,t._events):t._events.off(t._scrollableContent),t._scrollableContent=c},t._onModalContextMenuClose=function(){t.setState({isModalMenuOpen:!1})},t._onModalClose=function(){t._lastSetX=0,t._lastSetY=0,t.setState({isModalMenuOpen:!1,isInKeyboardMoveMode:!1,isOpen:!1,x:0,y:0}),t.props.dragOptions&&t._hasRegisteredKeyUp&&t._events.off(window,"keyup",t._onKeyUp,!0),t.props.onDismissed&&t.props.onDismissed()},t._onDragStart=function(){t.setState({isModalMenuOpen:!1,isInKeyboardMoveMode:!1})},t._onDrag=function(c,u){var h=t.state,g=h.x,_=h.y;t.setState(t._getClampedPosition({x:g+u.delta.x,y:_+u.delta.y}))},t._onDragStop=function(){t.focus()},t._onKeyUp=function(c){c.altKey&&c.ctrlKey&&c.keyCode===ke.space&&un(t._scrollableContent,c.target)&&(t.setState({isModalMenuOpen:!t.state.isModalMenuOpen}),c.preventDefault(),c.stopPropagation())},t._onKeyDown=function(c){if(c.altKey&&c.ctrlKey&&c.keyCode===ke.space){c.preventDefault(),c.stopPropagation();return}if(t.state.isModalMenuOpen&&(c.altKey||c.keyCode===ke.escape)&&t.setState({isModalMenuOpen:!1}),t.state.isInKeyboardMoveMode&&(c.keyCode===ke.escape||c.keyCode===ke.enter)&&(t.setState({isInKeyboardMoveMode:!1}),c.preventDefault(),c.stopPropagation()),t.state.isInKeyboardMoveMode){var u=!0,h=t._getMoveDelta(c);switch(c.keyCode){case ke.escape:t.setState({x:t._lastSetX,y:t._lastSetY});case ke.enter:{t._lastSetX=0,t._lastSetY=0,t.setState({isInKeyboardMoveMode:!1});break}case ke.up:{t.setState({y:t._getClampedPositionY(t.state.y-h)});break}case ke.down:{t.setState({y:t._getClampedPositionY(t.state.y+h)});break}case ke.left:{t.setState({x:t._getClampedPositionX(t.state.x-h)});break}case ke.right:{t.setState({x:t._getClampedPositionX(t.state.x+h)});break}default:u=!1}u&&(c.preventDefault(),c.stopPropagation())}},t._onEnterKeyboardMoveMode=function(){t._lastSetX=t.state.x,t._lastSetY=t.state.y,t.setState({isInKeyboardMoveMode:!0,isModalMenuOpen:!1}),t._events.on(window,"keydown",t._onKeyDown,!0)},t._onExitKeyboardMoveMode=function(c){var u,h,g;(g=(u=t.props.focusTrapZoneProps)===null||u===void 0?void 0:(h=u).onBlur)===null||g===void 0||g.call(h,c),t._lastSetX=0,t._lastSetY=0,t.setState({isInKeyboardMoveMode:!1}),t._events.off(window,"keydown",t._onKeyDown,!0)},t._registerForKeyUp=function(){t._hasRegisteredKeyUp||(t._events.on(window,"keyup",t._onKeyUp,!0),t._hasRegisteredKeyUp=!0)},t._async=new Wn(t),t._events=new Yt(t),St(t),t.state={id:zt("Modal"),isOpen:n.isOpen,isVisible:n.isOpen,hasBeenOpened:n.isOpen,x:0,y:0},t._lastSetX=0,t._lastSetY=0;var i=t.props.allowTouchBodyScroll,d=i===void 0?!1:i;return t._allowTouchBodyScroll=d,t}return o.prototype.UNSAFE_componentWillReceiveProps=function(n){clearTimeout(this._onModalCloseTimer),n.isOpen&&(this.state.isOpen?this.setState({hasBeenOpened:!0,isVisible:!0}):(this.setState({isOpen:!0}),n.dragOptions&&this._registerForKeyUp())),!n.isOpen&&this.state.isOpen&&(this._onModalCloseTimer=this._async.setTimeout(this._onModalClose,parseFloat(Hb)*1e3),this.setState({isVisible:!1}))},o.prototype.componentDidMount=function(){var n=this;this.state.isOpen&&this.state.isVisible&&(this._registerForKeyUp(),requestAnimationFrame(function(){return setTimeout(n._registerInitialModalPosition,0)}))},o.prototype.componentDidUpdate=function(n,t){var i=this;!n.isOpen&&!t.isVisible&&this.setState({isVisible:!0}),!n.isOpen&&this.props.isOpen&&requestAnimationFrame(function(){return setTimeout(i._registerInitialModalPosition,0)})},o.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},o.prototype.render=function(){var n,t,i,d,c,u,h,g,_,m,x,y,v,b,C,k=this.props,L=k.className,I=k.containerClassName,A=k.scrollableContentClassName,Y=k.elementToFocusOnDismiss,P=k.firstFocusableSelector,T=k.focusTrapZoneProps,F=k.forceFocusInsideTrap,H=k.ignoreExternalFocusing,W=k.isBlocking,K=k.isClickableOutsideFocusTrap,Z=k.isDarkOverlay,Q=k.onDismiss,B=k.layerProps,R=k.overlay,X=k.responsiveMode,$=k.titleAriaId,ie=k.styles,le=k.subtitleAriaId,V=k.theme,z=k.topOffsetFixed,J=k.onLayerDidMount,ee=k.isModeless,he=k.isAlert,te=k.dragOptions,G=k.enableAriaHiddenSiblings,re=this.state,He=re.isOpen,Ge=re.isVisible,Ut=re.hasBeenOpened,ht=re.modalRectangleTop,Le=re.x,Me=re.y,qe=re.isInKeyboardMoveMode;if(!He)return null;var Ct=B===void 0?"":B.className,Pt=he??(W&&!ee),Mt=nD(ie,{theme:V,className:L,containerClassName:I,scrollableContentClassName:A,isOpen:He,isVisible:Ge,hasBeenOpened:Ut,modalRectangleTop:ht,topOffsetFixed:z,isModeless:ee,layerClassName:Ct,isDefaultDragHandle:te&&!te.dragHandleSelector}),Wt=N(N(N({},tD),this.props.layerProps),{onLayerDidMount:B&&B.onLayerDidMount?B.onLayerDidMount:J,insertFirst:ee,className:Mt.layer}),Xt=M.createElement(su,N({},T,{"data-id":this.state.id,componentRef:this._focusTrapZoneMergedRef(this._focusTrapZone,(n=T)===null||n===void 0?void 0:n.componentRef),className:sn(Mt.main,(t=T)===null||t===void 0?void 0:t.className),elementToFocusOnDismiss:(d=(i=T)===null||i===void 0?void 0:i.elementToFocusOnDismiss,d??Y),isClickableOutsideFocusTrap:(u=(c=T)===null||c===void 0?void 0:c.isClickableOutsideFocusTrap,u??(ee||K||!W)),ignoreExternalFocusing:(g=(h=T)===null||h===void 0?void 0:h.ignoreExternalFocusing,g??H),forceFocusInsideTrap:(m=(_=T)===null||_===void 0?void 0:_.forceFocusInsideTrap,(m??F)&&!ee),firstFocusableSelector:((x=T)===null||x===void 0?void 0:x.firstFocusableSelector)||P,focusPreviouslyFocusedInnerElement:(v=(y=T)===null||y===void 0?void 0:y.focusPreviouslyFocusedInnerElement,v??!0),onBlur:qe?this._onExitKeyboardMoveMode:void 0,enableAriaHiddenSiblings:(C=(b=T)===null||b===void 0?void 0:b.enableAriaHiddenSiblings,C??G)}),te&&qe&&M.createElement("div",{className:Mt.keyboardMoveIconContainer},te.keyboardMoveIconProps?M.createElement(Ue,N({},te.keyboardMoveIconProps)):M.createElement(Ue,{iconName:"move",className:Mt.keyboardMoveIcon})),M.createElement("div",{ref:this._allowScrollOnModal,className:Mt.scrollableContent,"data-is-scrollable":!0},te&&this.state.isModalMenuOpen&&M.createElement(te.menu,{items:[{key:"move",text:te.moveMenuItemText,onClick:this._onEnterKeyboardMoveMode},{key:"close",text:te.closeMenuItemText,onClick:this._onModalClose}],onDismiss:this._onModalContextMenuClose,alignTargetEdge:!0,coverTarget:!0,directionalHint:Ot.topLeftEdge,directionalHintFixed:!0,shouldFocusOnMount:!0,target:this._scrollableContent}),this.props.children));return X>=Qa.small?M.createElement(vd,N({},Wt),M.createElement(dh,{role:Pt?"alertdialog":"dialog","aria-modal":!ee,ariaLabelledBy:$,ariaDescribedBy:le,onDismiss:Q,shouldRestoreFocus:!H},M.createElement("div",{className:Mt.root,role:ee?void 0:"document"},!ee&&M.createElement(wg,N({isDarkThemed:Z,onClick:W?void 0:Q,allowTouchBodyScroll:this._allowTouchBodyScroll},R)),te?M.createElement(eD,{handleSelector:te.dragHandleSelector||"."+Mt.main.split(" ")[0],preventDragSelector:"button",onStart:this._onDragStart,onDragChange:this._onDrag,onStop:this._onDragStop,position:{x:Le,y:Me}},Xt):Xt))):null},o.prototype.focus=function(){this._focusTrapZone.current&&this._focusTrapZone.current.focus()},o.prototype._getClampedPosition=function(n){return!this.props.dragOptions||!this.props.dragOptions.keepInBounds?n:{x:this._getClampedPositionX(n.x),y:this._getClampedPositionY(n.y)}},o.prototype._getClampedPositionY=function(n){var t=this._minClampedPosition,i=this._maxClampedPosition;return t&&(n=Math.max(t.y,n)),i&&(n=Math.min(i.y,n)),n},o.prototype._getClampedPositionX=function(n){var t=this._minClampedPosition,i=this._maxClampedPosition;return t&&(n=Math.max(t.x,n)),i&&(n=Math.min(i.x,n)),n},o.prototype._getMoveDelta=function(n){var t=10;return n.shiftKey?n.ctrlKey||(t=50):n.ctrlKey&&(t=1),t},o.defaultProps={isOpen:!1,isDarkOverlay:!0,isBlocking:!1,className:"",containerClassName:""},o=yo([uh],o),o})(M.Component),Zc=Ze(rD,K1,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]}),sD=Je(),oD=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return St(t),t}return o.prototype.render=function(){var n=this.props,t=n.className,i=n.styles,d=n.theme;return this._classNames=sD(i,{theme:d,className:t}),M.createElement("div",{className:this._classNames.actions},M.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},o.prototype._renderChildrenAsActions=function(){var n=this;return M.Children.map(this.props.children,function(t){return t?M.createElement("span",{className:n._classNames.action},t):null})},o})(M.Component),iD={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},aD=function(s){var o=s.className,n=s.theme,t=at(iD,n);return{actions:[t.actions,{position:"relative",width:"100%",minHeight:"24px",lineHeight:"24px",margin:"16px 0 0",fontSize:"0",selectors:{".ms-Button":{lineHeight:"normal"}}},o],action:[t.action,{margin:"0 4px"}],actionsRight:[t.actionsRight,{textAlign:"right",marginRight:"-4px",fontSize:"0"}]}},hh=Ze(oD,aD,void 0,{scope:"DialogFooter"}),lD=Je(),dD=M.createElement(hh,null).type,cD=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return St(t),t}return o.prototype.render=function(){var n=this.props,t=n.showCloseButton,i=n.className,d=n.closeButtonAriaLabel,c=n.onDismiss,u=n.subTextId,h=n.subText,g=n.titleProps,_=g===void 0?{}:g,m=n.titleId,x=n.title,y=n.type,v=n.styles,b=n.theme,C=n.draggableHeaderClassName,k=lD(v,{theme:b,className:i,isLargeHeader:y===fo.largeHeader,isClose:y===fo.close,draggableHeaderClassName:C}),L=this._groupChildren(),I;return h&&(I=M.createElement("p",{className:k.subText,id:u},h)),M.createElement("div",{className:k.content},M.createElement("div",{className:k.header},M.createElement("div",N({id:m,role:"heading","aria-level":1},_,{className:sn(k.title,_.className)}),x),M.createElement("div",{className:k.topButton},this.props.topButtonsProps.map(function(A,Y){return M.createElement(Ke,N({key:A.uniqueId||Y},A))}),(y===fo.close||t&&y!==fo.largeHeader)&&M.createElement(Ke,{className:k.button,iconProps:{iconName:"Cancel"},ariaLabel:d,onClick:c}))),M.createElement("div",{className:k.inner},M.createElement("div",{className:k.innerContent},I,L.contents),L.footers))},o.prototype._groupChildren=function(){var n={footers:[],contents:[]};return M.Children.map(this.props.children,function(t){typeof t=="object"&&t!==null&&t.type===dD?n.footers.push(t):n.contents.push(t)}),n},o.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},o=yo([uh],o),o})(M.Component),uD={contentLgHeader:"ms-Dialog-lgHeader",close:"ms-Dialog--close",subText:"ms-Dialog-subText",header:"ms-Dialog-header",headerLg:"ms-Dialog--lgHeader",button:"ms-Dialog-button ms-Dialog-button--close",inner:"ms-Dialog-inner",content:"ms-Dialog-content",title:"ms-Dialog-title"},pD=function(s){var o,n,t,i=s.className,d=s.theme,c=s.isLargeHeader,u=s.isClose,h=s.hidden,g=s.isMultiline,_=s.draggableHeaderClassName,m=d.palette,x=d.fonts,y=d.effects,v=d.semanticColors,b=at(uD,d);return{content:[c&&[b.contentLgHeader,{borderTop:"4px solid "+m.themePrimary}],u&&b.close,{flexGrow:1,overflowY:"hidden"},i],subText:[b.subText,x.medium,{margin:"0 0 24px 0",color:v.bodySubtext,lineHeight:"1.5",wordWrap:"break-word",fontWeight:Lt.regular}],header:[b.header,{position:"relative",width:"100%",boxSizing:"border-box"},u&&b.close,_&&[_,{cursor:"move"}]],button:[b.button,h&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:v.buttonText,fontSize:Mr.medium}}}],inner:[b.inner,{padding:"0 24px 24px",selectors:(o={},o["@media (min-width: "+P_+"px) and (max-width: "+If+"px)"]={padding:"0 16px 16px"},o)}],innerContent:[b.content,{position:"relative",width:"100%"}],title:[b.title,x.xLarge,{color:v.bodyText,margin:"0",minHeight:x.xLarge.fontSize,padding:"16px 46px 20px 24px",lineHeight:"normal",selectors:(n={},n["@media (min-width: "+P_+"px) and (max-width: "+If+"px)"]={padding:"16px 46px 16px 16px"},n)},c&&{color:v.menuHeader},g&&{fontSize:x.xxLarge.fontSize}],topButton:[{display:"flex",flexDirection:"row",flexWrap:"nowrap",position:"absolute",top:"0",right:"0",padding:"15px 15px 0 0",selectors:(t={"> *":{flex:"0 0 auto"},".ms-Dialog-button":{color:v.buttonText},".ms-Dialog-button:hover":{color:v.buttonTextHovered,borderRadius:y.roundedCorner2}},t["@media (min-width: "+P_+"px) and (max-width: "+If+"px)"]={padding:"15px 8px 0 0"},t)}]}},hD=Ze(cD,pD,void 0,{scope:"DialogContent"}),mD=Je(),fD={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1},gD={type:fo.normal,className:"",topButtonsProps:[]},_D=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._getSubTextId=function(){var i=t.props,d=i.ariaDescribedById,c=i.modalProps,u=i.dialogContentProps,h=i.subText,g=c&&c.subtitleAriaId||d;return g||(g=(u&&u.subText||h)&&t._defaultSubTextId),g},t._getTitleTextId=function(){var i=t.props,d=i.ariaLabelledById,c=i.modalProps,u=i.dialogContentProps,h=i.title,g=c&&c.titleAriaId||d;return g||(g=(u&&u.title||h)&&t._defaultTitleTextId),g},t._id=zt("Dialog"),t._defaultTitleTextId=t._id+"-title",t._defaultSubTextId=t._id+"-subText",t}return o.prototype.render=function(){var n,t,i=this.props,d=i.className,c=i.containerClassName,u=i.contentClassName,h=i.elementToFocusOnDismiss,g=i.firstFocusableSelector,_=i.forceFocusInsideTrap,m=i.styles,x=i.hidden,y=i.ignoreExternalFocusing,v=i.isBlocking,b=i.isClickableOutsideFocusTrap,C=i.isDarkOverlay,k=i.isOpen,L=i.onDismiss,I=i.onDismissed,A=i.onLayerDidMount,Y=i.responsiveMode,P=i.subText,T=i.theme,F=i.title,H=i.topButtonsProps,W=i.type,K=i.minWidth,Z=i.maxWidth,Q=i.modalProps,B=N({},Q?Q.layerProps:{onLayerDidMount:A});A&&!B.onLayerDidMount&&(B.onLayerDidMount=A);var R,X;Q&&Q.dragOptions&&!Q.dragOptions.dragHandleSelector?(R="ms-Dialog-draggable-header",X=N(N({},Q.dragOptions),{dragHandleSelector:"."+R})):X=Q&&Q.dragOptions;var $=N(N(N(N({},fD),{className:d,containerClassName:c,isBlocking:v,isDarkOverlay:C,onDismissed:I}),Q),{layerProps:B,dragOptions:X}),ie=N(N(N({className:u,subText:P,title:F,topButtonsProps:H,type:W},gD),this.props.dialogContentProps),{draggableHeaderClassName:R,titleProps:N({id:((n=this.props.dialogContentProps)===null||n===void 0?void 0:n.titleId)||this._defaultTitleTextId},(t=this.props.dialogContentProps)===null||t===void 0?void 0:t.titleProps)}),le=mD(m,{theme:T,className:$.className,containerClassName:$.containerClassName,hidden:x,dialogDefaultMinWidth:K,dialogDefaultMaxWidth:Z});return M.createElement(Zc,N({elementToFocusOnDismiss:h,firstFocusableSelector:g,forceFocusInsideTrap:_,ignoreExternalFocusing:y,isClickableOutsideFocusTrap:b,responsiveMode:Y},$,{isOpen:k!==void 0?k:!x,className:le.root,containerClassName:le.main,onDismiss:L||$.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),M.createElement(hD,N({subTextId:this._defaultSubTextId,showCloseButton:$.isBlocking,onDismiss:L},ie),this.props.children))},o.defaultProps={hidden:!0},o=yo([uh],o),o})(M.Component),yD={root:"ms-Dialog"},wD=function(s){var o,n=s.className,t=s.containerClassName,i=s.dialogDefaultMinWidth,d=i===void 0?"288px":i,c=s.dialogDefaultMaxWidth,u=c===void 0?"340px":c,h=s.hidden,g=s.theme,_=at(yD,g);return{root:[_.root,g.fonts.medium,n],main:[{width:d,outline:"3px solid transparent",selectors:(o={},o["@media (min-width: "+cg+"px)"]={width:"auto",maxWidth:u,minWidth:d},o)},!h&&{display:"flex"},t]}},Xc=Ze(_D,wD,void 0,{scope:"Dialog"});Xc.displayName="Dialog";var vD=(function(){function s(){this._size=0}return s.prototype.updateOptions=function(o){for(var n=[],t=0,i=0;i<o.length;i++)o[i].itemType===Tt.Divider||o[i].itemType===Tt.Header?n.push(i):o[i].hidden||t++;this._size=t,this._displayOnlyOptionsCache=n,this._cachedOptions=Nn(o)},Object.defineProperty(s.prototype,"optionSetSize",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"cachedOptions",{get:function(){return this._cachedOptions},enumerable:!0,configurable:!0}),s.prototype.positionInSet=function(o){if(o!==void 0){for(var n=0;o>this._displayOnlyOptionsCache[n];)n++;if(this._displayOnlyOptionsCache[n]===o)throw new Error("Unexpected: Option at index "+o+" is not a selectable element.");return o-n+1}},s})(),In;(function(s){s[s.smallFluid=0]="smallFluid",s[s.smallFixedFar=1]="smallFixedFar",s[s.smallFixedNear=2]="smallFixedNear",s[s.medium=3]="medium",s[s.large=4]="large",s[s.largeFixed=5]="largeFixed",s[s.extraLarge=6]="extraLarge",s[s.custom=7]="custom",s[s.customNear=8]="customNear"})(In||(In={}));var xD=Je(),mn;(function(s){s[s.closed=0]="closed",s[s.animatingOpen=1]="animatingOpen",s[s.open=2]="open",s[s.animatingClosed=3]="animatingClosed"})(mn||(mn={}));var bD=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;t._panel=M.createRef(),t._animationCallback=null,t._hasCustomNavigation=!!(t.props.onRenderNavigation||t.props.onRenderNavigationContent),t.dismiss=function(c){t.props.onDismiss&&t.isActive&&t.props.onDismiss(c),(!c||c&&!c.defaultPrevented)&&t.close()},t._allowScrollOnPanel=function(c){c?t._allowTouchBodyScroll?W0(c,t._events):Y0(c,t._events):t._events.off(t._scrollableContent),t._scrollableContent=c},t._onRenderNavigation=function(c){if(!t.props.onRenderNavigationContent&&!t.props.onRenderNavigation&&!t.props.hasCloseButton)return null;var u=t.props.onRenderNavigationContent,h=u===void 0?t._onRenderNavigationContent:u;return M.createElement("div",{className:t._classNames.navigation},h(c,t._onRenderNavigationContent))},t._onRenderNavigationContent=function(c){var u,h=c.closeButtonAriaLabel,g=c.hasCloseButton,_=c.onRenderHeader,m=_===void 0?t._onRenderHeader:_;if(g){var x=(u=t._classNames.subComponentStyles)===null||u===void 0?void 0:u.closeButton();return M.createElement(M.Fragment,null,!t._hasCustomNavigation&&m(t.props,t._onRenderHeader,t._headerTextId),M.createElement(Ke,{styles:x,className:t._classNames.closeButton,onClick:t._onPanelClick,ariaLabel:h,title:h,"data-is-visible":!0,iconProps:{iconName:"Cancel"}}))}return null},t._onRenderHeader=function(c,u,h){var g=c.headerText,_=c.headerTextProps,m=_===void 0?{}:_;return g?M.createElement("div",{className:t._classNames.header},M.createElement("div",N({id:h,role:"heading","aria-level":1},m,{className:sn(t._classNames.headerText,m.className)}),g)):null},t._onRenderBody=function(c){return M.createElement("div",{className:t._classNames.content},c.children)},t._onRenderFooter=function(c){var u=t.props.onRenderFooterContent,h=u===void 0?null:u;return h?M.createElement("div",{className:t._classNames.footer},M.createElement("div",{className:t._classNames.footerInner},h())):null},t._animateTo=function(c){c===mn.open&&t.props.onOpen&&t.props.onOpen(),t._animationCallback=t._async.setTimeout(function(){t.setState({visibility:c}),t._onTransitionComplete()},200)},t._clearExistingAnimationTimer=function(){t._animationCallback!==null&&t._async.clearTimeout(t._animationCallback)},t._onPanelClick=function(c){t.dismiss(c)},t._onTransitionComplete=function(){t._updateFooterPosition(),t.state.visibility===mn.open&&t.props.onOpened&&t.props.onOpened(),t.state.visibility===mn.closed&&t.props.onDismissed&&t.props.onDismissed()};var i=t.props.allowTouchBodyScroll,d=i===void 0?!1:i;return t._allowTouchBodyScroll=d,t._async=new Wn(t),t._events=new Yt(t),St(t),t.state={isFooterSticky:!1,visibility:mn.closed,id:zt("Panel")},t}return o.getDerivedStateFromProps=function(n,t){return n.isOpen===void 0?null:n.isOpen&&(t.visibility===mn.closed||t.visibility===mn.animatingClosed)?{visibility:mn.animatingOpen}:!n.isOpen&&(t.visibility===mn.open||t.visibility===mn.animatingOpen)?{visibility:mn.animatingClosed}:null},o.prototype.componentDidMount=function(){this._events.on(window,"resize",this._updateFooterPosition),this._shouldListenForOuterClick(this.props)&&this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0),this.props.isOpen&&this.setState({visibility:mn.animatingOpen})},o.prototype.componentDidUpdate=function(n,t){var i=this._shouldListenForOuterClick(this.props),d=this._shouldListenForOuterClick(n);this.state.visibility!==t.visibility&&(this._clearExistingAnimationTimer(),this.state.visibility===mn.animatingOpen?this._animateTo(mn.open):this.state.visibility===mn.animatingClosed&&this._animateTo(mn.closed)),i&&!d?this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0):!i&&d&&this._events.off(document.body,"mousedown",this._dismissOnOuterClick,!0)},o.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},o.prototype.render=function(){var n=this.props,t=n.className,i=t===void 0?"":t,d=n.elementToFocusOnDismiss,c=n.firstFocusableSelector,u=n.focusTrapZoneProps,h=n.forceFocusInsideTrap,g=n.hasCloseButton,_=n.headerText,m=n.headerClassName,x=m===void 0?"":m,y=n.ignoreExternalFocusing,v=n.isBlocking,b=n.isFooterAtBottom,C=n.isLightDismiss,k=n.isHiddenOnDismiss,L=n.layerProps,I=n.overlayProps,A=n.popupProps,Y=n.type,P=n.styles,T=n.theme,F=n.customWidth,H=n.onLightDismissClick,W=H===void 0?this._onPanelClick:H,K=n.onRenderNavigation,Z=K===void 0?this._onRenderNavigation:K,Q=n.onRenderHeader,B=Q===void 0?this._onRenderHeader:Q,R=n.onRenderBody,X=R===void 0?this._onRenderBody:R,$=n.onRenderFooter,ie=$===void 0?this._onRenderFooter:$,le=this.state,V=le.isFooterSticky,z=le.visibility,J=le.id,ee=Y===In.smallFixedNear||Y===In.customNear,he=At(T),te=he?ee:!ee,G=Y===In.custom||Y===In.customNear?{width:F}:{},re=pt(this.props,Yn),He=this.isActive,Ge=z===mn.animatingClosed||z===mn.animatingOpen;if(this._headerTextId=_&&J+"-headerText",!He&&!Ge&&!k)return null;this._classNames=xD(P,{theme:T,className:i,focusTrapZoneClassName:u?u.className:void 0,hasCloseButton:g,headerClassName:x,isAnimating:Ge,isFooterSticky:V,isFooterAtBottom:b,isOnRightSide:te,isOpen:He,isHiddenOnDismiss:k,type:Y,hasCustomNavigation:this._hasCustomNavigation});var Ut=this,ht=Ut._classNames,Le=Ut._allowTouchBodyScroll,Me;return v&&He&&(Me=M.createElement(wg,N({className:ht.overlay,isDarkThemed:!1,onClick:C?W:void 0,allowTouchBodyScroll:Le},I))),M.createElement(vd,N({},L),M.createElement(dh,N({role:"dialog","aria-modal":"true",ariaLabelledBy:this._headerTextId?this._headerTextId:void 0,onDismiss:this.dismiss,className:ht.hiddenPanel},A),M.createElement("div",N({"aria-hidden":!He&&Ge},re,{ref:this._panel,className:ht.root}),Me,M.createElement(su,N({ignoreExternalFocusing:y,forceFocusInsideTrap:!v||k&&!He?!1:h,firstFocusableSelector:c,isClickableOutsideFocusTrap:!0},u,{className:ht.main,style:G,elementToFocusOnDismiss:d}),M.createElement("div",{className:ht.commands,"data-is-visible":!0},Z(this.props,this._onRenderNavigation)),M.createElement("div",{className:ht.contentInner},(this._hasCustomNavigation||!g)&&B(this.props,this._onRenderHeader,this._headerTextId),M.createElement("div",{ref:this._allowScrollOnPanel,className:ht.scrollableContent,"data-is-scrollable":!0},X(this.props,this._onRenderBody)),ie(this.props,this._onRenderFooter))))))},o.prototype.open=function(){this.props.isOpen===void 0&&(this.isActive||this.setState({visibility:mn.animatingOpen}))},o.prototype.close=function(){this.props.isOpen===void 0&&this.isActive&&this.setState({visibility:mn.animatingClosed})},Object.defineProperty(o.prototype,"isActive",{get:function(){return this.state.visibility===mn.open||this.state.visibility===mn.animatingOpen},enumerable:!0,configurable:!0}),o.prototype._shouldListenForOuterClick=function(n){return!!n.isBlocking&&!!n.isOpen},o.prototype._updateFooterPosition=function(){var n=this._scrollableContent;if(n){var t=n.clientHeight,i=n.scrollHeight;this.setState({isFooterSticky:t<i})}},o.prototype._dismissOnOuterClick=function(n){var t=this._panel.current;this.isActive&&t&&!n.defaultPrevented&&(un(t,n.target)||(this.props.onOuterClick?this.props.onOuterClick(n):this.dismiss(n)))},o.defaultProps={isHiddenOnDismiss:!1,isOpen:void 0,isBlocking:!0,hasCloseButton:!0,type:In.smallFixedFar},o})(M.Component),V_,cf,uf,G_,$_,SD={root:"ms-Panel",main:"ms-Panel-main",commands:"ms-Panel-commands",contentInner:"ms-Panel-contentInner",scrollableContent:"ms-Panel-scrollableContent",navigation:"ms-Panel-navigation",closeButton:"ms-Panel-closeButton ms-PanelAction-close",header:"ms-Panel-header",headerText:"ms-Panel-headerText",content:"ms-Panel-content",footer:"ms-Panel-footer",footerInner:"ms-Panel-footerInner",isOpen:"is-open",hasCloseButton:"ms-Panel--hasCloseButton",smallFluid:"ms-Panel--smFluid",smallFixedNear:"ms-Panel--smLeft",smallFixedFar:"ms-Panel--sm",medium:"ms-Panel--md",large:"ms-Panel--lg",largeFixed:"ms-Panel--fixed",extraLarge:"ms-Panel--xl",custom:"ms-Panel--custom",customNear:"ms-Panel--customLeft"},_d={full:"100%",auto:"auto",xs:272,sm:340,md1:592,md2:644,lg:940},ta={auto:"auto",none:0,md:48,lg:428,xl:176},Lp=(V_={},V_["@media (min-width: "+cg+"px)"]={width:_d.sm},V_),pf=(cf={},cf["@media (min-width: "+ab+"px)"]={width:_d.md1},cf["@media (min-width: "+v3+"px)"]={width:_d.md2},cf),K_=(uf={},uf["@media (min-width: "+x3+"px)"]={left:ta.md,width:_d.auto},uf["@media (min-width: "+qy+"px)"]={left:ta.lg},uf),CD=(G_={},G_["@media (min-width: "+qy+"px)"]={left:ta.auto,width:_d.lg},G_),kD=($_={},$_["@media (min-width: "+qy+"px)"]={left:ta.xl},$_),MD=function(s){var o;switch(s){case In.smallFixedFar:o=N({},Lp);break;case In.medium:o=N(N({},Lp),pf);break;case In.large:o=N(N(N({},Lp),pf),K_);break;case In.largeFixed:o=N(N(N(N({},Lp),pf),K_),CD);break;case In.extraLarge:o=N(N(N(N({},Lp),pf),K_),kD);break}return o},jD="44px",q_={paddingLeft:"24px",paddingRight:"24px"},LD=function(s){var o,n=s.className,t=s.focusTrapZoneClassName,i=s.hasCloseButton,d=s.headerClassName,c=s.isAnimating,u=s.isFooterSticky,h=s.isFooterAtBottom,g=s.isOnRightSide,_=s.isOpen,m=s.isHiddenOnDismiss,x=s.hasCustomNavigation,y=s.theme,v=s.type,b=v===void 0?In.smallFixedFar:v,C=y.effects,k=y.fonts,L=y.semanticColors,I=at(SD,y),A=b===In.custom||b===In.customNear;return{root:[I.root,y.fonts.medium,_&&I.isOpen,i&&I.hasCloseButton,{pointerEvents:"none",position:"absolute",top:0,left:0,right:0,bottom:0},A&&g&&I.custom,A&&!g&&I.customNear,n],overlay:[{pointerEvents:"auto",cursor:"pointer"},_&&c&&Jr.fadeIn100,!_&&c&&Jr.fadeOut100],hiddenPanel:[!_&&!c&&m&&{visibility:"hidden"}],main:[I.main,{backgroundColor:L.bodyBackground,boxShadow:C.elevation64,pointerEvents:"auto",position:"absolute",display:"flex",flexDirection:"column",overflowX:"hidden",overflowY:"auto",WebkitOverflowScrolling:"touch",bottom:0,top:0,left:ta.auto,right:ta.none,width:_d.full,selectors:N((o={},o[_e]={borderLeft:"3px solid "+L.variantBorder,borderRight:"3px solid "+L.variantBorder},o),MD(b))},b===In.smallFluid&&{left:ta.none},b===In.smallFixedNear&&{left:ta.none,right:ta.auto,width:_d.xs},b===In.customNear&&{right:"auto",left:0},A&&{maxWidth:"100vw"},_&&c&&!g&&Jr.slideRightIn40,_&&c&&g&&Jr.slideLeftIn40,!_&&c&&!g&&Jr.slideLeftOut40,!_&&c&&g&&Jr.slideRightOut40,t],commands:[I.commands,{marginTop:18},x&&{marginTop:"inherit"}],navigation:[I.navigation,{display:"flex",justifyContent:"flex-end"},x&&{height:jD}],contentInner:[I.contentInner,{display:"flex",flexDirection:"column",flexGrow:1,overflowY:"hidden"}],header:[I.header,q_,{alignSelf:"flex-start"},i&&!x&&{flexGrow:1},x&&{flexShrink:0}],headerText:[I.headerText,k.xLarge,{color:L.bodyText,lineHeight:"27px",overflowWrap:"break-word",wordWrap:"break-word",wordBreak:"break-word",hyphens:"auto"},d],scrollableContent:[I.scrollableContent,{overflowY:"auto"},h&&{flexGrow:1}],content:[I.content,q_,{paddingBottom:20}],footer:[I.footer,{flexShrink:0,borderTop:"1px solid transparent",transition:"opacity "+mo.durationValue3+" "+mo.easeFunction2},u&&{background:L.bodyBackground,borderTopColor:L.variantBorder}],footerInner:[I.footerInner,q_,{paddingBottom:16,paddingTop:16}],subComponentStyles:{closeButton:{root:[I.closeButton,{marginRight:14,color:y.palette.neutralSecondary,fontSize:Mr.large},x&&{marginRight:0,height:"auto",width:"44px"}],rootHovered:{color:y.palette.neutralPrimary}}}}},vg=Ze(bD,LD,void 0,{scope:"Panel"}),ED=Je(),DD=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;t._host=M.createRef(),t._focusZone=M.createRef(),t._dropDown=M.createRef(),t._scrollIdleDelay=250,t._sizePosCache=new vD,t._requestAnimationFrame=CM(t),t._onChange=function(m,x,y,v,b){var C=t.props,k=C.onChange,L=C.onChanged;if(k||L){var I=b?N(N({},x[y]),{selected:!v}):x[y];k&&k(N(N({},m),{target:t._dropDown.current}),I,y),L&&L(I,y)}},t._getPlaceholder=function(){return t.props.placeholder||t.props.placeHolder},t._getTitle=function(m,x){var y=t.props.multiSelectDelimiter,v=y===void 0?", ":y;return m.map(function(b){return b.text}).join(v)},t._onRenderTitle=function(m){return M.createElement(M.Fragment,null,t._getTitle(m))},t._onRenderPlaceholder=function(m){return t._getPlaceholder()?M.createElement(M.Fragment,null,t._getPlaceholder()):null},t._onRenderContainer=function(m){var x=m.calloutProps,y=m.panelProps,v=t.props,b=v.responsiveMode,C=v.dropdownWidth,k=b<=Qa.medium,L=t._classNames.subComponentStyles?t._classNames.subComponentStyles.panel:void 0,I=void 0,A=void 0;return C==="auto"?A=t._dropDown.current?t._dropDown.current.clientWidth:0:I=C||(t._dropDown.current?t._dropDown.current.clientWidth:0),k?M.createElement(vg,N({isOpen:!0,isLightDismiss:!0,onDismiss:t._onDismiss,hasCloseButton:!1,styles:L},y),t._renderFocusableList(m)):M.createElement(ch,N({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHintFixed:!1,directionalHint:Ot.bottomLeftEdge,calloutWidth:I,calloutMinWidth:A},x,{className:t._classNames.callout,target:t._dropDown.current,onDismiss:t._onDismiss,onScroll:t._onScroll,onPositioned:t._onPositioned}),t._renderFocusableList(m))},t._onRenderCaretDown=function(m){return M.createElement(Ue,{className:t._classNames.caretDown,iconName:"ChevronDown","aria-hidden":!0})},t._onRenderList=function(m){var x=m.onRenderItem,y=x===void 0?t._onRenderItem:x,v={items:[]},b=[],C=function(){var L=v.id?[M.createElement("div",{role:"group",key:v.id,"aria-labelledby":v.id},v.items)]:v.items;b=Nn(b,L),v={items:[]}},k=function(L,I){switch(L.itemType){case Tt.Header:v.items.length>0&&C();var A=t._id+L.key;v.items.push(y(N(N({id:A},L),{index:I}),t._onRenderItem)),v.id=A;break;case Tt.Divider:I>0&&v.items.push(y(N(N({},L),{index:I}),t._onRenderItem)),v.items.length>0&&C();break;default:v.items.push(y(N(N({},L),{index:I}),t._onRenderItem))}};return m.options.forEach(function(L,I){k(L,I)}),v.items.length>0&&C(),M.createElement(M.Fragment,null,b)},t._onRenderItem=function(m){switch(m.itemType){case Tt.Divider:return t._renderSeparator(m);case Tt.Header:return t._renderHeader(m);default:return t._renderOption(m)}},t._renderOption=function(m){var x=t.props.onRenderOption,y=x===void 0?t._onRenderOption:x,v=t.state.selectedIndices,b=v===void 0?[]:v,C=m.index!==void 0&&b?b.indexOf(m.index)>-1:!1,k=m.hidden?t._classNames.dropdownItemHidden:C&&m.disabled===!0?t._classNames.dropdownItemSelectedAndDisabled:C?t._classNames.dropdownItemSelected:m.disabled===!0?t._classNames.dropdownItemDisabled:t._classNames.dropdownItem,L=m.title,I=L===void 0?m.text:L,A=t._classNames.subComponentStyles?t._classNames.subComponentStyles.multiSelectItem:void 0;return t.props.multiSelect?M.createElement(ce,{id:t._listId+m.index,key:m.key,disabled:m.disabled,onChange:t._onItemClick(m),inputProps:N({"aria-selected":C,onMouseEnter:t._onItemMouseEnter.bind(t,m),onMouseLeave:t._onMouseItemLeave.bind(t,m),onMouseMove:t._onItemMouseMove.bind(t,m),role:"option"},{"data-index":m.index,"data-is-focusable":!m.disabled}),label:m.text,title:I,onRenderLabel:t._onRenderItemLabel.bind(t,m),className:k,checked:C,styles:A,ariaPositionInSet:t._sizePosCache.positionInSet(m.index),ariaSetSize:t._sizePosCache.optionSetSize}):M.createElement(c6,{id:t._listId+m.index,key:m.key,"data-index":m.index,"data-is-focusable":!m.disabled,disabled:m.disabled,className:k,onClick:t._onItemClick(m),onMouseEnter:t._onItemMouseEnter.bind(t,m),onMouseLeave:t._onMouseItemLeave.bind(t,m),onMouseMove:t._onItemMouseMove.bind(t,m),role:"option","aria-selected":C?"true":"false",ariaLabel:m.ariaLabel,title:I,"aria-posinset":t._sizePosCache.positionInSet(m.index),"aria-setsize":t._sizePosCache.optionSetSize},y(m,t._onRenderOption))},t._onRenderOption=function(m){return M.createElement("span",{className:t._classNames.dropdownOptionText},m.text)},t._onRenderItemLabel=function(m){var x=t.props.onRenderOption,y=x===void 0?t._onRenderOption:x;return y(m,t._onRenderOption)},t._onPositioned=function(m){t._focusZone.current&&t._requestAnimationFrame(function(){var x=t.state.selectedIndices;if(t._focusZone.current)if(x&&x[0]&&!t.props.options[x[0]].disabled){var y=yn().getElementById(t._id+"-list"+x[0]);y&&t._focusZone.current.focusElement(y)}else t._focusZone.current.focus()}),(!t.state.calloutRenderEdge||t.state.calloutRenderEdge!==m.targetEdge)&&t.setState({calloutRenderEdge:m.targetEdge})},t._onItemClick=function(m){return function(x){m.disabled||(t.setSelectedIndex(x,m.index),t.props.multiSelect||t.setState({isOpen:!1}))}},t._onScroll=function(){!t._isScrollIdle&&t._scrollIdleTimeoutId!==void 0?(clearTimeout(t._scrollIdleTimeoutId),t._scrollIdleTimeoutId=void 0):t._isScrollIdle=!1,t._scrollIdleTimeoutId=setTimeout(function(){t._isScrollIdle=!0},t._scrollIdleDelay)},t._onMouseItemLeave=function(m,x){if(!t._shouldIgnoreMouseEvent()&&t._host.current)if(t._host.current.setActive)try{t._host.current.setActive()}catch{}else t._host.current.focus()},t._onDismiss=function(){t.setState({isOpen:!1})},t._onDropdownBlur=function(m){var x=t._isDisabled();x||(t.setState({hasFocus:!1}),!t.state.isOpen&&t.props.onBlur&&t.props.onBlur(m))},t._onDropdownKeyDown=function(m){var x=t._isDisabled();if(!x&&(t._lastKeyDownWasAltOrMeta=t._isAltOrMeta(m),!(t.props.onKeyDown&&(t.props.onKeyDown(m),m.defaultPrevented)))){var y,v=t.state.selectedIndices.length?t.state.selectedIndices[0]:-1,b=m.altKey||m.metaKey,C=t.state.isOpen;switch(m.which){case ke.enter:t.setState({isOpen:!C});break;case ke.escape:if(!C)return;t.setState({isOpen:!1});break;case ke.up:if(b){if(C){t.setState({isOpen:!1});break}return}t.props.multiSelect?t.setState({isOpen:!0}):t._isDisabled()||(y=t._moveIndex(m,-1,v-1,v));break;case ke.down:b&&(m.stopPropagation(),m.preventDefault()),b&&!C||t.props.multiSelect?t.setState({isOpen:!0}):t._isDisabled()||(y=t._moveIndex(m,1,v+1,v));break;case ke.home:t.props.multiSelect||(y=t._moveIndex(m,1,0,v));break;case ke.end:t.props.multiSelect||(y=t._moveIndex(m,-1,t.props.options.length-1,v));break;case ke.space:break;default:return}y!==v&&(m.stopPropagation(),m.preventDefault())}},t._onDropdownKeyUp=function(m){var x=t._isDisabled();if(!x){var y=t._shouldHandleKeyUp(m),v=t.state.isOpen;if(!(t.props.onKeyUp&&(t.props.onKeyUp(m),m.defaultPrevented))){switch(m.which){case ke.space:t.setState({isOpen:!v});break;default:y&&v&&t.setState({isOpen:!1});return}m.stopPropagation(),m.preventDefault()}}},t._onZoneKeyDown=function(m){var x;t._lastKeyDownWasAltOrMeta=t._isAltOrMeta(m);var y=m.altKey||m.metaKey;switch(m.which){case ke.up:y?t.setState({isOpen:!1}):t._host.current&&(x=Q0(t._host.current,t._host.current.lastChild,!0));break;case ke.home:case ke.end:case ke.pageUp:case ke.pageDown:break;case ke.down:!y&&t._host.current&&(x=X0(t._host.current,t._host.current.firstChild,!0));break;case ke.escape:t.setState({isOpen:!1});break;case ke.tab:t.setState({isOpen:!1});return;default:return}x&&x.focus(),m.stopPropagation(),m.preventDefault()},t._onZoneKeyUp=function(m){var x=t._shouldHandleKeyUp(m);x&&t.state.isOpen&&(t.setState({isOpen:!1}),m.preventDefault())},t._onDropdownClick=function(m){if(!(t.props.onClick&&(t.props.onClick(m),m.defaultPrevented))){var x=t.state.isOpen,y=t._isDisabled();!y&&!t._shouldOpenOnFocus()&&t.setState({isOpen:!x}),t._isFocusedByClick=!1}},t._onDropdownMouseDown=function(){t._isFocusedByClick=!0},t._onFocus=function(m){var x=t._isDisabled();if(!x){t.props.onFocus&&t.props.onFocus(m);var y={hasFocus:!0};t._shouldOpenOnFocus()&&(y.isOpen=!0),t.setState(y)}},t._isDisabled=function(){var m=t.props.disabled,x=t.props.isDisabled;return m===void 0&&(m=x),m},t._onRenderLabel=function(m){var x=m.label,y=m.required,v=m.disabled,b=t._classNames.subComponentStyles?t._classNames.subComponentStyles.label:void 0;return x?M.createElement(fd,{className:t._classNames.label,id:t._labelId,required:y,styles:b,disabled:v},x):null},St(t);var i=n.multiSelect,d=n.selectedKey,c=n.selectedKeys,u=n.defaultSelectedKey,h=n.defaultSelectedKeys,g=n.options;t._id=n.id||zt("Dropdown"),t._labelId=t._id+"-label",t._listId=t._id+"-list",t._optionId=t._id+"-option",t._isScrollIdle=!0;var _;return i?_=t._getSelectedIndexes(g,h!==void 0?h:c):_=t._getSelectedIndexes(g,u!==void 0?u:d),t._sizePosCache.updateOptions(g),t.state={isOpen:!1,selectedIndices:_,hasFocus:!1,calloutRenderEdge:void 0},t}return Object.defineProperty(o.prototype,"selectedOptions",{get:function(){var n=this.props.options,t=this.state.selectedIndices;return Bv(n,t)},enumerable:!0,configurable:!0}),o.prototype.componentWillUnmount=function(){clearTimeout(this._scrollIdleTimeoutId)},o.prototype.UNSAFE_componentWillReceiveProps=function(n){var t,i=n.options!==this.props.options;n.multiSelect?i&&n.defaultSelectedKeys!==void 0?t="defaultSelectedKeys":t="selectedKeys":i&&n.defaultSelectedKey!==void 0?t="defaultSelectedKey":t="selectedKey",n[t]!==void 0&&(n[t]!==this.props[t]||i)&&this.setState({selectedIndices:this._getSelectedIndexes(n.options,n[t])})},o.prototype.componentDidUpdate=function(n,t){t.isOpen===!0&&this.state.isOpen===!1&&(this._gotMouseMove=!1,this.props.onDismiss&&this.props.onDismiss())},o.prototype.render=function(){var n=this,t,i,d=this._id,c=this.props,u=c.className,h=c.label,g=c.options,_=c.ariaLabel,m=c.required,x=c.errorMessage,y=c.keytipProps,v=c.styles,b=c.theme,C=c.panelProps,k=c.calloutProps,L=c.onRenderTitle,I=L===void 0?this._getTitle:L,A=c.onRenderContainer,Y=A===void 0?this._onRenderContainer:A,P=c.onRenderCaretDown,T=P===void 0?this._onRenderCaretDown:P,F=c.onRenderLabel,H=F===void 0?this._onRenderLabel:F,W=this.state,K=W.isOpen,Z=W.selectedIndices,Q=W.calloutRenderEdge,B=W.hasFocus,R=c.onRenderPlaceholder||c.onRenderPlaceHolder||this._getPlaceholder;g!==this._sizePosCache.cachedOptions&&this._sizePosCache.updateOptions(g);var X=Bv(g,Z),$=pt(c,Yn),ie=this._isDisabled(),le=d+"-errorMessage",V=ie?void 0:K&&Z.length===1&&Z[0]>=0?this._listId+Z[0]:void 0;this._classNames=ED(v,{theme:b,className:u,hasError:!!(x&&x.length>0),hasLabel:!!h,isOpen:K,required:m,disabled:ie,isRenderingPlaceholder:!X.length,panelClassName:(t=C)===null||t===void 0?void 0:t.className,calloutClassName:(i=k)===null||i===void 0?void 0:i.className,calloutRenderEdge:Q});var z=!!x&&x.length>0;return M.createElement("div",{className:this._classNames.root},H(this.props,this._onRenderLabel),M.createElement(ra,{keytipProps:y,disabled:ie},function(J){return M.createElement("div",N({},J,{"data-is-focusable":!ie,ref:n._dropDown,id:d,tabIndex:ie?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":K?"true":"false","aria-label":_,"aria-labelledby":h&&!_?Za(n._labelId,n._optionId):void 0,"aria-describedby":Za(J["aria-describedby"],z?n._id+"-errorMessage":void 0),"aria-activedescendant":V,"aria-required":m,"aria-disabled":ie,"aria-controls":K?n._listId:void 0},$,{className:n._classNames.dropdown,onBlur:n._onDropdownBlur,onKeyDown:n._onDropdownKeyDown,onKeyUp:n._onDropdownKeyUp,onClick:n._onDropdownClick,onMouseDown:n._onDropdownMouseDown,onFocus:n._onFocus}),M.createElement("span",{id:n._optionId,className:n._classNames.title,"aria-live":B?"polite":void 0,"aria-atomic":B?!0:void 0},X.length?I(X,n._onRenderTitle):R(c,n._onRenderPlaceholder)),M.createElement("span",{className:n._classNames.caretDownWrapper},T(c,n._onRenderCaretDown)))}),K&&Y(N(N({},c),{onDismiss:this._onDismiss}),this._onRenderContainer),z&&M.createElement("div",{role:"alert",id:le,className:this._classNames.errorMessage},x))},o.prototype.focus=function(n){this._dropDown.current&&(this._dropDown.current.focus(),n&&this.setState({isOpen:!0}))},o.prototype.setSelectedIndex=function(n,t){var i=this,d=this.props,c=d.options,u=d.selectedKey,h=d.selectedKeys,g=d.multiSelect,_=d.notifyOnReselect,m=this.state.selectedIndices,x=m===void 0?[]:m,y=x?x.indexOf(t)>-1:!1,v=[];if(t=Math.max(0,Math.min(c.length-1,t)),u!==void 0||h!==void 0){this._onChange(n,c,t,y,g);return}if(!(!g&&!_&&t===x[0])){if(g)if(v=x?this._copyArray(x):[],y){var b=v.indexOf(t);b>-1&&v.splice(b,1)}else v.push(t);else v=[t];n.persist(),this.setState({selectedIndices:v},function(){i._onChange(n,c,t,y,g)})}},o.prototype._copyArray=function(n){for(var t=[],i=0,d=n;i<d.length;i++){var c=d[i];t.push(c)}return t},o.prototype._moveIndex=function(n,t,i,d){var c=this.props.options;if(d===i||c.length===0)return d;i>=c.length?i=0:i<0&&(i=c.length-1);for(var u=0;c[i].itemType===Tt.Header||c[i].itemType===Tt.Divider||c[i].disabled;){if(u>=c.length)return d;i+t<0?i=c.length:i+t>=c.length&&(i=-1),i=i+t,u++}return this.setSelectedIndex(n,i),i},o.prototype._renderFocusableList=function(n){var t=n.onRenderList,i=t===void 0?this._onRenderList:t,d=n.label,c=n.ariaLabel,u=n.multiSelect;return M.createElement("div",{className:this._classNames.dropdownItemsWrapper,onKeyDown:this._onZoneKeyDown,onKeyUp:this._onZoneKeyUp,ref:this._host,tabIndex:0},M.createElement(xd,{ref:this._focusZone,direction:kn.vertical,id:this._listId,className:this._classNames.dropdownItems,role:"listbox","aria-label":c,"aria-labelledby":d&&!c?this._labelId:void 0,"aria-multiselectable":u},i(n,this._onRenderList)))},o.prototype._renderSeparator=function(n){var t=n.index,i=n.key;return t>0?M.createElement("div",{role:"separator",key:i,className:this._classNames.dropdownDivider}):null},o.prototype._renderHeader=function(n){var t=this.props.onRenderOption,i=t===void 0?this._onRenderOption:t,d=n.key,c=n.id;return M.createElement("div",{id:c,key:d,className:this._classNames.dropdownItemHeader},i(n,this._onRenderOption))},o.prototype._onItemMouseEnter=function(n,t){if(!this._shouldIgnoreMouseEvent()){var i=t.currentTarget;i.focus()}},o.prototype._onItemMouseMove=function(n,t){var i=t.currentTarget;this._gotMouseMove=!0,!(!this._isScrollIdle||document.activeElement===i)&&i.focus()},o.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},o.prototype._getSelectedIndexes=function(n,t){if(t===void 0){if(this.props.multiSelect)return this._getAllSelectedIndices(n);var i=this._getSelectedIndex(n,null);return i!==-1?[i]:[]}else if(!Array.isArray(t)){var i=this._getSelectedIndex(n,t);return i!==-1?[i]:[]}for(var d=[],c=0,u=t;c<u.length;c++){var h=u[c],i=this._getSelectedIndex(n,h);i!==-1&&d.push(i)}return d},o.prototype._getAllSelectedIndices=function(n){return n.map(function(t,i){return t.selected?i:-1}).filter(function(t){return t!==-1})},o.prototype._getSelectedIndex=function(n,t){return Hy(n,function(i){return t!=null?i.key===t:!!i.selected||!!i.isSelected})},o.prototype._isAltOrMeta=function(n){return n.which===ke.alt||n.key==="Meta"},o.prototype._shouldHandleKeyUp=function(n){var t=this._lastKeyDownWasAltOrMeta&&this._isAltOrMeta(n);return this._lastKeyDownWasAltOrMeta=!1,!!t&&!(my()||hy())},o.prototype._shouldOpenOnFocus=function(){var n=this.state.hasFocus,t=this.props.openOnKeyboardFocus;return!this._isFocusedByClick&&t===!0&&!n},o.defaultProps={options:[]},o=yo([uh],o),o})(M.Component),J_,Z_,X_,ID={root:"ms-Dropdown-container",label:"ms-Dropdown-label",dropdown:"ms-Dropdown",title:"ms-Dropdown-title",caretDownWrapper:"ms-Dropdown-caretDownWrapper",caretDown:"ms-Dropdown-caretDown",callout:"ms-Dropdown-callout",panel:"ms-Dropdown-panel",dropdownItems:"ms-Dropdown-items",dropdownItem:"ms-Dropdown-item",dropdownDivider:"ms-Dropdown-divider",dropdownOptionText:"ms-Dropdown-optionText",dropdownItemHeader:"ms-Dropdown-header",titleIsPlaceHolder:"ms-Dropdown-titleIsPlaceHolder",titleHasError:"ms-Dropdown-title--hasError"},hf=32,Q_=36,TD=(J_={},J_[_e+", "+w3.replace("@media ","")]=N({},bt()),J_),mf={selectors:N((Z_={},Z_[_e]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},Z_),TD)},sx={selectors:(X_={},X_[_e]={borderColor:"Highlight"},X_)},AD=ug(0,cg),PD=function(s){var o,n,t,i,d,c,u,h,g,_,m,x=s.theme,y=s.hasError,v=s.hasLabel,b=s.className,C=s.isOpen,k=s.disabled,L=s.required,I=s.isRenderingPlaceholder,A=s.panelClassName,Y=s.calloutClassName,P=s.calloutRenderEdge;if(!x)throw new Error("theme is undefined or null in base Dropdown getStyles function.");var T=at(ID,x),F=x.palette,H=x.semanticColors,W=x.effects,K=x.fonts,Z={color:H.menuItemTextHovered},Q={color:H.menuItemText},B={borderColor:H.errorText},R=[T.dropdownItem,{backgroundColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:"flex",alignItems:"center",padding:"0 8px",width:"100%",minHeight:Q_,lineHeight:20,height:0,position:"relative",border:"1px solid transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",".ms-Button-flexContainer":{width:"100%"}}],X=H.menuItemBackgroundPressed,$=function(J){var ee;return J===void 0&&(J=!1),{selectors:(ee={"&:hover:focus":[{color:H.menuItemTextHovered,backgroundColor:J?X:H.menuItemBackgroundHovered},mf],"&:focus":[{backgroundColor:J?X:"transparent"},mf],"&:active":[{color:H.menuItemTextHovered,backgroundColor:J?H.menuItemBackgroundHovered:H.menuBackground},mf]},ee["."+fn+" &:focus:after"]={left:0,top:0,bottom:0,right:0},ee[_e]={border:"none"},ee)}},ie=Nn(R,[{backgroundColor:X,color:H.menuItemTextHovered},$(!0),mf]),le=Nn(R,[{color:H.disabledText,cursor:"default",selectors:(o={},o[_e]={color:"GrayText",border:"none"},o)}]),V=P===De.bottom?W.roundedCorner2+" "+W.roundedCorner2+" 0 0":"0 0 "+W.roundedCorner2+" "+W.roundedCorner2,z=P===De.bottom?"0 0 "+W.roundedCorner2+" "+W.roundedCorner2:W.roundedCorner2+" "+W.roundedCorner2+" 0 0";return{root:[T.root,b],label:T.label,dropdown:[T.dropdown,cd,K.medium,{color:H.menuItemText,borderColor:H.focusBorder,position:"relative",outline:0,userSelect:"none",selectors:(n={},n["&:hover ."+T.title]=[!k&&Z,{borderColor:C?F.neutralSecondary:F.neutralPrimary},sx],n["&:focus ."+T.title]=[!k&&Z,{selectors:(t={},t[_e]={color:"Highlight"},t)}],n["&:focus:after"]=[{pointerEvents:"none",content:"''",position:"absolute",boxSizing:"border-box",top:"0px",left:"0px",width:"100%",height:"100%",border:k?"none":"2px solid "+F.themePrimary,borderRadius:"2px",selectors:(i={},i[_e]={color:"Highlight"},i)}],n["&:active ."+T.title]=[!k&&Z,{borderColor:F.themePrimary},sx],n["&:hover ."+T.caretDown]=!k&&Q,n["&:focus ."+T.caretDown]=[!k&&Q,{selectors:(d={},d[_e]={color:"Highlight"},d)}],n["&:active ."+T.caretDown]=!k&&Q,n["&:hover ."+T.titleIsPlaceHolder]=!k&&Q,n["&:focus ."+T.titleIsPlaceHolder]=!k&&Q,n["&:active ."+T.titleIsPlaceHolder]=!k&&Q,n["&:hover ."+T.titleHasError]=B,n["&:active ."+T.titleHasError]=B,n)},C&&"is-open",k&&"is-disabled",L&&"is-required",L&&!v&&{selectors:(c={":before":{content:"'*'",color:H.errorText,position:"absolute",top:-5,right:-10}},c[_e]={selectors:{":after":{right:-14}}},c)}],title:[T.title,cd,{backgroundColor:H.inputBackground,borderWidth:1,borderStyle:"solid",borderColor:H.inputBorder,borderRadius:C?V:W.roundedCorner2,cursor:"pointer",display:"block",height:hf,lineHeight:hf-2,padding:"0 28px 0 8px",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},I&&[T.titleIsPlaceHolder,{color:H.inputPlaceholderText}],y&&[T.titleHasError,B],k&&{backgroundColor:H.disabledBackground,border:"none",color:H.disabledText,cursor:"default",selectors:(u={},u[_e]=N({border:"1px solid GrayText",color:"GrayText",backgroundColor:"Window"},bt()),u)}],caretDownWrapper:[T.caretDownWrapper,{position:"absolute",top:1,right:8,height:hf,lineHeight:hf-2},!k&&{cursor:"pointer"}],caretDown:[T.caretDown,{color:F.neutralSecondary,fontSize:K.small.fontSize,pointerEvents:"none"},k&&{color:H.disabledText,selectors:(h={},h[_e]=N({color:"GrayText"},bt()),h)}],errorMessage:N(N({color:H.errorText},x.fonts.small),{paddingTop:5}),callout:[T.callout,{boxShadow:W.elevation8,borderRadius:z,selectors:(g={},g[".ms-Callout-main"]={borderRadius:z},g)},Y],dropdownItemsWrapper:{selectors:{"&:focus":{outline:0}}},dropdownItems:[T.dropdownItems,{display:"block"}],dropdownItem:Nn(R,[$()]),dropdownItemSelected:ie,dropdownItemDisabled:le,dropdownItemSelectedAndDisabled:[ie,le,{backgroundColor:"transparent"}],dropdownItemHidden:Nn(R,[{display:"none"}]),dropdownDivider:[T.dropdownDivider,{height:1,backgroundColor:H.bodyDivider}],dropdownOptionText:[T.dropdownOptionText,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:0,maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",margin:"1px"}],dropdownItemHeader:[T.dropdownItemHeader,N(N({},K.medium),{fontWeight:Lt.semibold,color:H.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:Q_,lineHeight:Q_,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:(_={},_[_e]=N({color:"GrayText"},bt()),_)})],subComponentStyles:{label:{root:{display:"inline-block"}},multiSelectItem:{root:{padding:0},label:{alignSelf:"stretch",padding:"0 8px",width:"100%"}},panel:{root:[A],main:{selectors:(m={},m[AD]={width:272},m)},contentInner:{padding:"0 0 20px"}}}}},$e=Ze(DD,PD,void 0,{scope:"Dropdown"});function RD(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('"+s+"fabric-icons-a13498cf.woff') format('woff')"},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}};Bn(n,o)}function FD(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('"+s+"fabric-icons-0-467ee27f.woff') format('woff')"},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}};Bn(n,o)}function ND(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('"+s+"fabric-icons-1-4d521695.woff') format('woff')"},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}};Bn(n,o)}function OD(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('"+s+"fabric-icons-2-63c99abf.woff') format('woff')"},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}};Bn(n,o)}function YD(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('"+s+"fabric-icons-3-089e217a.woff') format('woff')"},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}};Bn(n,o)}function WD(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('"+s+"fabric-icons-4-a656cc0a.woff') format('woff')"},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}};Bn(n,o)}function BD(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('"+s+"fabric-icons-5-f95ba260.woff') format('woff')"},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}};Bn(n,o)}function HD(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('"+s+"fabric-icons-6-ef6fd590.woff') format('woff')"},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}};Bn(n,o)}function zD(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('"+s+"fabric-icons-7-2b97bb99.woff') format('woff')"},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}};Bn(n,o)}function UD(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('"+s+"fabric-icons-8-6fdf1528.woff') format('woff')"},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}};Bn(n,o)}function VD(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('"+s+"fabric-icons-9-c6162b42.woff') format('woff')"},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}};Bn(n,o)}function GD(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('"+s+"fabric-icons-10-c4ded8e4.woff') format('woff')"},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}};Bn(n,o)}function $D(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('"+s+"fabric-icons-11-2a8393d6.woff') format('woff')"},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}};Bn(n,o)}function KD(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('"+s+"fabric-icons-12-7e945a1e.woff') format('woff')"},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}};Bn(n,o)}function qD(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('"+s+"fabric-icons-13-c3989a02.woff') format('woff')"},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}};Bn(n,o)}function JD(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('"+s+"fabric-icons-14-5cf58db8.woff') format('woff')"},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}};Bn(n,o)}function ZD(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('"+s+"fabric-icons-15-3807251b.woff') format('woff')"},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}};Bn(n,o)}function XD(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('"+s+"fabric-icons-16-9cf93f3b.woff') format('woff')"},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}};Bn(n,o)}function QD(s,o){s===void 0&&(s="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('"+s+"fabric-icons-17-0c4ed701.woff') format('woff')"},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}};Bn(n,o)}var eI=function(){ed("trash","delete"),ed("onedrive","onedrivelogo"),ed("alertsolid12","eventdatemissed12"),ed("sixpointstar","6pointstar"),ed("twelvepointstar","12pointstar"),ed("toggleon","toggleleft"),ed("toggleoff","toggleright")};Ny("@uifabric/icons","7.9.5");var tI="https://res.cdn.office.net/files/fabric-cdn-prod_20241209.001/assets/icons/",ox=nt();function nI(s,o){s===void 0&&(s=((t=(n=ox)===null||n===void 0?void 0:n.FabricConfig)===null||t===void 0?void 0:t.iconBaseUrl)||((d=(i=ox)===null||i===void 0?void 0:i.FabricConfig)===null||d===void 0?void 0:d.fontBaseUrl)||tI);var n,t,i,d;[RD,FD,ND,OD,YD,WD,BD,HD,zD,UD,VD,GD,$D,KD,qD,JD,ZD,XD,QD].forEach(function(c){return c(s,o)}),eI()}var Be;(function(s){s[s.info=0]="info",s[s.error=1]="error",s[s.blocked=2]="blocked",s[s.severeWarning=3]="severeWarning",s[s.success=4]="success",s[s.warning=5]="warning"})(Be||(Be={}));var rI=Je(),sI=(function(s){Ne(o,s);function o(n){var t,i=s.call(this,n)||this;return i.ICON_MAP=(t={},t[Be.info]="Info",t[Be.warning]="Info",t[Be.error]="ErrorBadge",t[Be.blocked]="Blocked2",t[Be.severeWarning]="Warning",t[Be.success]="Completed",t),i._getRegionProps=function(){var d=!!i._getActionsDiv()||!!i._getDismissDiv(),c={"aria-describedby":i.state.labelId,role:"region"};return d?c:{}},i._onClick=function(d){i.setState({expandSingleLine:!i.state.expandSingleLine})},St(i),i.state={labelId:zt("MessageBar"),showContent:!1,expandSingleLine:!1},i}return o.prototype.render=function(){var n=this.props.isMultiline;return this._classNames=this._getClassNames(),n?this._renderMultiLine():this._renderSingleLine()},o.prototype._getActionsDiv=function(){return this.props.actions?M.createElement("div",{className:this._classNames.actions},this.props.actions):null},o.prototype._getDismissDiv=function(){var n=this.props,t=n.onDismiss,i=n.dismissIconProps;return t?M.createElement(Ke,{disabled:!1,className:this._classNames.dismissal,onClick:t,iconProps:i||{iconName:"Clear"},title:this.props.dismissButtonAriaLabel,ariaLabel:this.props.dismissButtonAriaLabel}):null},o.prototype._getDismissSingleLine=function(){return this.props.onDismiss?M.createElement("div",{className:this._classNames.dismissSingleLine},this._getDismissDiv()):null},o.prototype._getExpandSingleLine=function(){return!this.props.actions&&this.props.truncated?M.createElement("div",{className:this._classNames.expandSingleLine},M.createElement(Ke,{disabled:!1,className:this._classNames.expand,onClick:this._onClick,iconProps:{iconName:this.state.expandSingleLine?"DoubleChevronUp":"DoubleChevronDown"},ariaLabel:this.props.overflowButtonAriaLabel,"aria-expanded":this.state.expandSingleLine})):null},o.prototype._getIconSpan=function(){var n=this.props.messageBarIconProps;return M.createElement("div",{className:this._classNames.iconContainer,"aria-hidden":!0},n?M.createElement(Ue,N({},n,{className:sn(this._classNames.icon,n.className)})):M.createElement(Ue,{iconName:this.ICON_MAP[this.props.messageBarType],className:this._classNames.icon}))},o.prototype._renderMultiLine=function(){return M.createElement("div",N({className:this._classNames.root},this._getRegionProps()),M.createElement("div",{className:this._classNames.content},this._getIconSpan(),this._renderInnerText(),this._getDismissDiv()),this._getActionsDiv())},o.prototype._renderSingleLine=function(){return M.createElement("div",N({className:this._classNames.root},this._getRegionProps()),M.createElement("div",{className:this._classNames.content},this._getIconSpan(),this._renderInnerText(),this._getExpandSingleLine(),this._getActionsDiv(),this._getDismissSingleLine()))},o.prototype._renderInnerText=function(){var n=pt(this.props,on,["className"]);return M.createElement("div",{className:this._classNames.text,id:this.state.labelId,role:"status","aria-live":this._getAnnouncementPriority()},M.createElement("span",N({className:this._classNames.innerText},n),M.createElement(og,null,M.createElement("span",null,this.props.children))))},o.prototype._getClassNames=function(){var n=this.props,t=n.theme,i=n.className,d=n.messageBarType,c=n.onDismiss,u=n.actions,h=n.truncated,g=n.isMultiline,_=this.state.expandSingleLine;return rI(this.props.styles,{theme:t,messageBarType:d||Be.info,onDismiss:c!==void 0,actions:u!==void 0,truncated:h,isMultiline:g,expandSingleLine:_,className:i})},o.prototype._getAnnouncementPriority=function(){switch(this.props.messageBarType){case Be.blocked:case Be.error:case Be.severeWarning:return"assertive"}return"polite"},o.defaultProps={messageBarType:Be.info,onDismiss:void 0,isMultiline:!0},o})(M.Component),Ya,Wa,Ba,oI={root:"ms-MessageBar",error:"ms-MessageBar--error",blocked:"ms-MessageBar--blocked",severeWarning:"ms-MessageBar--severeWarning",success:"ms-MessageBar--success",warning:"ms-MessageBar--warning",multiline:"ms-MessageBar-multiline",singleline:"ms-MessageBar-singleline",dismissalSingleLine:"ms-MessageBar-dismissalSingleLine",expandingSingleLine:"ms-MessageBar-expandingSingleLine",content:"ms-MessageBar-content",iconContainer:"ms-MessageBar-icon",text:"ms-MessageBar-text",innerText:"ms-MessageBar-innerText",dismissSingleLine:"ms-MessageBar-dismissSingleLine",expandSingleLine:"ms-MessageBar-expandSingleLine",dismissal:"ms-MessageBar-dismissal",expand:"ms-MessageBar-expand",actions:"ms-MessageBar-actions",actionsSingleline:"ms-MessageBar-actionsSingleLine"},iI=(Ya={},Ya[Be.error]="errorBackground",Ya[Be.blocked]="errorBackground",Ya[Be.success]="successBackground",Ya[Be.warning]="warningBackground",Ya[Be.severeWarning]="severeWarningBackground",Ya[Be.info]="infoBackground",Ya),aI=(Wa={},Wa[Be.error]="rgba(255, 0, 0, 0.3)",Wa[Be.blocked]="rgba(255, 0, 0, 0.3)",Wa[Be.success]="rgba(48, 241, 73, 0.3)",Wa[Be.warning]="rgba(255, 254, 57, 0.3)",Wa[Be.severeWarning]="rgba(255, 0, 0, 0.3)",Wa[Be.info]="Window",Wa),lI=(Ba={},Ba[Be.error]="errorIcon",Ba[Be.blocked]="errorIcon",Ba[Be.success]="successIcon",Ba[Be.warning]="warningIcon",Ba[Be.severeWarning]="severeWarningIcon",Ba[Be.info]="infoIcon",Ba),dI=function(s){var o,n,t,i,d,c=s.theme,u=s.className,h=s.onDismiss,g=s.truncated,_=s.isMultiline,m=s.expandSingleLine,x=s.messageBarType,y=x===void 0?Be.info:x,v=c.semanticColors,b=c.fonts,C=ug(0,If),k=at(oI,c),L={fontSize:Mr.xSmall,height:10,lineHeight:"10px",color:v.messageText,selectors:(o={},o[_e]=N(N({},bt()),{color:"WindowText"}),o)},I=[On(c,{inset:1,highContrastStyle:{outlineOffset:"-6px",outline:"1px solid Highlight"},borderColor:"transparent"}),{flexShrink:0,width:32,height:32,padding:"8px 12px",selectors:{"& .ms-Button-icon":L,":hover":{backgroundColor:"transparent"},":active":{backgroundColor:"transparent"}}}];return{root:[k.root,b.medium,y===Be.error&&k.error,y===Be.blocked&&k.blocked,y===Be.severeWarning&&k.severeWarning,y===Be.success&&k.success,y===Be.warning&&k.warning,_?k.multiline:k.singleline,!_&&h&&k.dismissalSingleLine,!_&&g&&k.expandingSingleLine,{background:v[iI[y]],color:v.messageText,minHeight:32,width:"100%",display:"flex",wordBreak:"break-word",selectors:(n={".ms-Link":{color:v.messageLink,selectors:{":hover":{color:v.messageLinkHovered}}}},n[_e]=N(N({},bt()),{background:aI[y],border:"1px solid WindowText",color:"WindowText"}),n)},_&&{flexDirection:"column"},u],content:[k.content,{display:"flex",width:"100%",lineHeight:"normal"}],iconContainer:[k.iconContainer,{fontSize:Mr.medium,minWidth:16,minHeight:16,display:"flex",flexShrink:0,margin:"8px 0 8px 12px"}],icon:{color:v[lI[y]],selectors:(t={},t[_e]=N(N({},bt()),{color:"WindowText"}),t)},text:[k.text,N(N({minWidth:0,display:"flex",flexGrow:1,margin:8},b.small),{selectors:(i={},i[_e]=N({},bt()),i)}),!h&&{marginRight:12}],innerText:[k.innerText,{lineHeight:16,selectors:{"& span a":{paddingLeft:4}}},g&&{overflow:"visible",whiteSpace:"pre-wrap"},!_&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},!_&&!g&&{selectors:(d={},d[C]={overflow:"visible",whiteSpace:"pre-wrap"},d)},m&&{overflow:"visible",whiteSpace:"pre-wrap"}],dismissSingleLine:k.dismissSingleLine,expandSingleLine:k.expandSingleLine,dismissal:[k.dismissal,I],expand:[k.expand,I],actions:[_?k.actions:k.actionsSingleline,{display:"flex",flexGrow:0,flexShrink:0,flexBasis:"auto",flexDirection:"row-reverse",alignItems:"center",margin:"0 12px 0 8px",selectors:{"& button:nth-child(n+2)":{marginLeft:8}}},_&&{marginBottom:8},h&&!_&&{marginRight:0}]}},Zr=Ze(sI,dI,void 0,{scope:"MessageBar"}),ix=Je(),cI=.01,uI=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;t._onRenderProgress=function(d){var c=t.props,u=c.ariaValueText,h=c.barHeight,g=c.className,_=c.description,m=c.label,x=m===void 0?t.props.title:m,y=c.styles,v=c.theme,b=typeof t.props.percentComplete=="number"?Math.min(100,Math.max(0,t.props.percentComplete*100)):void 0,C=ix(y,{theme:v,className:g,barHeight:h,indeterminate:b===void 0}),k={width:b!==void 0?b+"%":void 0,transition:b!==void 0&&b<cI?"none":void 0},L=b!==void 0?0:void 0,I=b!==void 0?100:void 0,A=b!==void 0?Math.floor(b):void 0;return M.createElement("div",{className:C.itemProgress},M.createElement("div",{className:C.progressTrack}),M.createElement("div",{className:C.progressBar,style:k,role:"progressbar","aria-describedby":_?t._descriptionId:void 0,"aria-labelledby":x?t._labelId:void 0,"aria-valuemin":L,"aria-valuemax":I,"aria-valuenow":A,"aria-valuetext":u}))};var i=zt("progress-indicator");return t._labelId=i+"-label",t._descriptionId=i+"-description",t}return o.prototype.render=function(){var n=this.props,t=n.barHeight,i=n.className,d=n.label,c=d===void 0?this.props.title:d,u=n.description,h=n.styles,g=n.theme,_=n.progressHidden,m=n.onRenderProgress,x=m===void 0?this._onRenderProgress:m,y=typeof this.props.percentComplete=="number"?Math.min(100,Math.max(0,this.props.percentComplete*100)):void 0,v=ix(h,{theme:g,className:i,barHeight:t,indeterminate:y===void 0});return M.createElement("div",{className:v.root},c?M.createElement("div",{id:this._labelId,className:v.itemName},c):null,_?null:x(N(N({},this.props),{percentComplete:y}),this._onRenderProgress),u?M.createElement("div",{id:this._descriptionId,className:v.itemDescription},u):null)},o.defaultProps={label:"",description:"",width:180},o})(M.Component),pI={root:"ms-ProgressIndicator",itemName:"ms-ProgressIndicator-itemName",itemDescription:"ms-ProgressIndicator-itemDescription",itemProgress:"ms-ProgressIndicator-itemProgress",progressTrack:"ms-ProgressIndicator-progressTrack",progressBar:"ms-ProgressIndicator-progressBar"},hI=Et(function(){return wn({"0%":{left:"-30%"},"100%":{left:"100%"}})}),mI=Et(function(){return wn({"100%":{right:"-30%"},"0%":{right:"100%"}})}),fI=function(s){var o,n,t,i=At(s.theme),d=s.className,c=s.indeterminate,u=s.theme,h=s.barHeight,g=h===void 0?2:h,_=u.palette,m=u.semanticColors,x=u.fonts,y=at(pI,u),v=8,b=18,C=_.neutralLight;return{root:[y.root,x.medium,d],itemName:[y.itemName,U3,{color:m.bodyText,paddingTop:v/2,lineHeight:b+2}],itemDescription:[y.itemDescription,{color:m.bodySubtext,fontSize:x.small.fontSize,lineHeight:b}],itemProgress:[y.itemProgress,{position:"relative",overflow:"hidden",height:g,padding:v+"px 0"}],progressTrack:[y.progressTrack,{position:"absolute",width:"100%",height:g,backgroundColor:C,selectors:(o={},o[_e]={borderBottom:"1px solid WindowText"},o)}],progressBar:[{backgroundColor:_.themePrimary,height:g,position:"absolute",transition:"width .3s ease",width:0,selectors:(n={},n[_e]=N({backgroundColor:"highlight"},bt()),n)},c?{position:"absolute",minWidth:"33%",background:"linear-gradient(to right, "+C+" 0%, "+(_.themePrimary+" 50%, "+C+" 100%)"),animation:(i?mI():hI())+" 3s infinite",selectors:(t={},t[_e]={background:"highlight"},t)}:{transition:"width .15s linear"},y.progressBar]}},zb=Ze(uI,fI,void 0,{scope:"ProgressIndicator"}),gI={root:"ms-ScrollablePane",contentContainer:"ms-ScrollablePane--contentContainer"},_I=function(s){var o,n,t=s.className,i=s.theme,d=at(gI,i),c={position:"absolute",pointerEvents:"none"},u={position:"absolute",top:0,right:0,bottom:0,left:0,WebkitOverflowScrolling:"touch"};return{root:[d.root,i.fonts.medium,u,t],contentContainer:[d.contentContainer,{overflowY:s.scrollbarVisibility==="always"?"scroll":"auto"},u],stickyAbove:[{top:0,zIndex:1,selectors:(o={},o[_e]={borderBottom:"1px solid WindowText"},o)},c],stickyBelow:[{bottom:0,selectors:(n={},n[_e]={borderTop:"1px solid WindowText"},n)},c],stickyBelowItems:[{bottom:0},c,{width:"100%"}]}},yI=M.createContext({scrollablePane:void 0}),wI=Je(),vI=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._root=M.createRef(),t._stickyAboveRef=M.createRef(),t._stickyBelowRef=M.createRef(),t._contentContainer=M.createRef(),t.subscribe=function(i){t._subscribers.add(i)},t.unsubscribe=function(i){t._subscribers.delete(i)},t.addSticky=function(i){t._stickies.add(i),t.contentContainer&&(i.setDistanceFromTop(t.contentContainer),t.sortSticky(i))},t.removeSticky=function(i){t._stickies.delete(i),t._removeStickyFromContainers(i),t.notifySubscribers()},t.sortSticky=function(i,d){t.stickyAbove&&t.stickyBelow&&(d&&t._removeStickyFromContainers(i),i.canStickyTop&&i.stickyContentTop&&t._addToStickyContainer(i,t.stickyAbove,i.stickyContentTop),i.canStickyBottom&&i.stickyContentBottom&&t._addToStickyContainer(i,t.stickyBelow,i.stickyContentBottom))},t.updateStickyRefHeights=function(){var i=t._stickies,d=0,c=0;i.forEach(function(u){var h=u.state,g=h.isStickyTop,_=h.isStickyBottom;u.nonStickyContent&&(g&&(d+=u.nonStickyContent.offsetHeight),_&&(c+=u.nonStickyContent.offsetHeight),t._checkStickyStatus(u))}),t.setState({stickyTopHeight:d,stickyBottomHeight:c})},t.notifySubscribers=function(){t.contentContainer&&t._subscribers.forEach(function(i){i(t.contentContainer,t.stickyBelow)})},t.getScrollPosition=function(){return t.contentContainer?t.contentContainer.scrollTop:0},t.syncScrollSticky=function(i){i&&t.contentContainer&&i.syncScroll(t.contentContainer)},t._getScrollablePaneContext=function(){return{scrollablePane:{subscribe:t.subscribe,unsubscribe:t.unsubscribe,addSticky:t.addSticky,removeSticky:t.removeSticky,updateStickyRefHeights:t.updateStickyRefHeights,sortSticky:t.sortSticky,notifySubscribers:t.notifySubscribers,syncScrollSticky:t.syncScrollSticky}}},t._addToStickyContainer=function(i,d,c){if(!d.children.length)d.appendChild(c);else if(!d.contains(c)){var u=[].slice.call(d.children),h=[];t._stickies.forEach(function(b){(d===t.stickyAbove&&i.canStickyTop||i.canStickyBottom)&&h.push(b)});for(var g=h.sort(function(b,C){return(b.state.distanceFromTop||0)-(C.state.distanceFromTop||0)}).filter(function(b){var C=d===t.stickyAbove?b.stickyContentTop:b.stickyContentBottom;return C?u.indexOf(C)>-1:!1}),_=void 0,m=0,x=g;m<x.length;m++){var y=x[m];if((y.state.distanceFromTop||0)>=(i.state.distanceFromTop||0)){_=y;break}}var v=null;_&&(v=d===t.stickyAbove?_.stickyContentTop:_.stickyContentBottom),d.insertBefore(c,v)}},t._removeStickyFromContainers=function(i){t.stickyAbove&&i.stickyContentTop&&t.stickyAbove.contains(i.stickyContentTop)&&t.stickyAbove.removeChild(i.stickyContentTop),t.stickyBelow&&i.stickyContentBottom&&t.stickyBelow.contains(i.stickyContentBottom)&&t.stickyBelow.removeChild(i.stickyContentBottom)},t._onWindowResize=function(){var i=t._getScrollbarWidth(),d=t._getScrollbarHeight();t.setState({scrollbarWidth:i,scrollbarHeight:d}),t.notifySubscribers()},t._getStickyContainerStyle=function(i,d){return N(N({height:i},At(t.props.theme)?{right:"0",left:(t.state.scrollbarWidth||t._getScrollbarWidth()||0)+"px"}:{left:"0",right:(t.state.scrollbarWidth||t._getScrollbarWidth()||0)+"px"}),d?{top:"0"}:{bottom:(t.state.scrollbarHeight||t._getScrollbarHeight()||0)+"px"})},t._onScroll=function(){var i=t.contentContainer;i&&t._stickies.forEach(function(d){d.syncScroll(i)}),t._notifyThrottled()},t._subscribers=new Set,t._stickies=new Set,St(t),t._async=new Wn(t),t._events=new Yt(t),t.state={stickyTopHeight:0,stickyBottomHeight:0,scrollbarWidth:0,scrollbarHeight:0},t._notifyThrottled=t._async.throttle(t.notifySubscribers,50),t}return Object.defineProperty(o.prototype,"root",{get:function(){return this._root.current},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"stickyAbove",{get:function(){return this._stickyAboveRef.current},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"stickyBelow",{get:function(){return this._stickyBelowRef.current},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"contentContainer",{get:function(){return this._contentContainer.current},enumerable:!0,configurable:!0}),o.prototype.componentDidMount=function(){var n=this,t=this.props.initialScrollPosition;this._events.on(this.contentContainer,"scroll",this._onScroll),this._events.on(window,"resize",this._onWindowResize),this.contentContainer&&t&&(this.contentContainer.scrollTop=t),this.setStickiesDistanceFromTop(),this._stickies.forEach(function(i){n.sortSticky(i)}),this.notifySubscribers(),"MutationObserver"in window&&(this._mutationObserver=new MutationObserver(function(i){function d(h){return this.stickyAbove!==null&&this.stickyBelow!==null?this.stickyAbove.contains(h.target)||this.stickyBelow.contains(h.target):!1}var c=n._getScrollbarHeight();if(c!==n.state.scrollbarHeight&&n.setState({scrollbarHeight:c}),n.notifySubscribers(),i.some(d.bind(n)))n.updateStickyRefHeights();else{var u=[];n._stickies.forEach(function(h){h.root&&h.root.contains(i[0].target)&&u.push(h)}),u.length&&u.forEach(function(h){h.forceUpdate()})}}),this.root&&this._mutationObserver.observe(this.root,{childList:!0,attributes:!0,subtree:!0,characterData:!0}))},o.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._mutationObserver&&this._mutationObserver.disconnect()},o.prototype.shouldComponentUpdate=function(n,t){return this.props.children!==n.children||this.props.initialScrollPosition!==n.initialScrollPosition||this.props.className!==n.className||this.state.stickyTopHeight!==t.stickyTopHeight||this.state.stickyBottomHeight!==t.stickyBottomHeight||this.state.scrollbarWidth!==t.scrollbarWidth||this.state.scrollbarHeight!==t.scrollbarHeight},o.prototype.componentDidUpdate=function(n,t){var i=this.props.initialScrollPosition;this.contentContainer&&typeof i=="number"&&n.initialScrollPosition!==i&&(this.contentContainer.scrollTop=i),(t.stickyTopHeight!==this.state.stickyTopHeight||t.stickyBottomHeight!==this.state.stickyBottomHeight)&&this.notifySubscribers(),this._async.setTimeout(this._onWindowResize,0)},o.prototype.render=function(){var n=this.props,t=n.className,i=n.theme,d=n.styles,c=this.state,u=c.stickyTopHeight,h=c.stickyBottomHeight,g=wI(d,{theme:i,className:t,scrollbarVisibility:this.props.scrollbarVisibility});return M.createElement("div",N({},pt(this.props,Yn),{ref:this._root,className:g.root}),M.createElement("div",{ref:this._stickyAboveRef,className:g.stickyAbove,style:this._getStickyContainerStyle(u,!0)}),M.createElement("div",{ref:this._contentContainer,className:g.contentContainer,"data-is-scrollable":!0},M.createElement(yI.Provider,{value:this._getScrollablePaneContext()},this.props.children)),M.createElement("div",{className:g.stickyBelow,style:this._getStickyContainerStyle(h,!1)},M.createElement("div",{ref:this._stickyBelowRef,className:g.stickyBelowItems})))},o.prototype.setStickiesDistanceFromTop=function(){var n=this;this.contentContainer&&this._stickies.forEach(function(t){t.setDistanceFromTop(n.contentContainer)})},o.prototype.forceLayoutUpdate=function(){this._onWindowResize()},o.prototype._checkStickyStatus=function(n){this.stickyAbove&&this.stickyBelow&&this.contentContainer&&n.nonStickyContent&&(n.state.isStickyTop||n.state.isStickyBottom?(n.state.isStickyTop&&!this.stickyAbove.contains(n.nonStickyContent)&&n.stickyContentTop&&n.addSticky(n.stickyContentTop),n.state.isStickyBottom&&!this.stickyBelow.contains(n.nonStickyContent)&&n.stickyContentBottom&&n.addSticky(n.stickyContentBottom)):this.contentContainer.contains(n.nonStickyContent)||n.resetSticky())},o.prototype._getScrollbarWidth=function(){var n=this.contentContainer;return n?n.offsetWidth-n.clientWidth:0},o.prototype._getScrollbarHeight=function(){var n=this.contentContainer;return n?n.offsetHeight-n.clientHeight:0},o})(M.Component),xI=Ze(vI,_I,void 0,{scope:"ScrollablePane"}),bI=Je(),SI="SearchBox",CI=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._rootElement=M.createRef(),t._inputElement=M.createRef(),t._onClickFocus=function(){var i=t._inputElement.current;i&&(t.focus(),i.selectionStart=i.selectionEnd=0)},t._onFocusCapture=function(i){t.setState({hasFocus:!0}),t.props.onFocus&&t.props.onFocus(i)},t._onClearClick=function(i){var d=t.props.clearButtonProps;d&&d.onClick&&d.onClick(i),i.defaultPrevented||t._onClear(i)},t._onKeyDown=function(i){switch(i.which){case ke.escape:t.props.onEscape&&t.props.onEscape(i),t.state.value&&!i.defaultPrevented&&t._onClear(i);break;case ke.enter:t.props.onSearch&&(t.props.onSearch(t.state.value),i.preventDefault(),i.stopPropagation());break;default:t.props.onKeyDown&&t.props.onKeyDown(i),i.defaultPrevented&&i.stopPropagation();break}},t._onBlur=function(i){t.setState({hasFocus:!1}),t.props.onBlur&&t.props.onBlur(i)},t._onInputChange=function(i){var d=i.target.value;d!==t._latestValue&&(t._latestValue=d,t.setState({value:d}),t._callOnChange(i,d))},St(t),t._latestValue=n.value||"",t._fallbackId=zt(SI),t.state={value:t._latestValue,hasFocus:!1},t}return o.prototype.UNSAFE_componentWillReceiveProps=function(n){n.value!==void 0&&(this._latestValue=n.value,this.setState({value:n.value||""}))},o.prototype.render=function(){var n=this.props,t=n.ariaLabel,i=n.placeholder,d=n.className,c=n.disabled,u=n.underlined,h=n.styles,g=n.labelText,_=n.theme,m=n.clearButtonProps,x=n.disableAnimation,y=n.iconProps,v=n.role,b=n.id,C=b===void 0?this._fallbackId:b,k=this.state,L=k.value,I=k.hasFocus,A=i!==void 0?i:g,Y=bI(h,{theme:_,className:d,underlined:u,hasFocus:I,disabled:c,hasInput:L.length>0,disableAnimation:x}),P=pt(this.props,ah,["className","placeholder","onFocus","onBlur","value","role"]);return M.createElement("div",{role:v,ref:this._rootElement,className:Y.root,onFocusCapture:this._onFocusCapture},M.createElement("div",{className:Y.iconContainer,onClick:this._onClickFocus,"aria-hidden":!0},M.createElement(Ue,N({iconName:"Search"},y,{className:Y.icon}))),M.createElement("input",N({},P,{id:C,className:Y.field,placeholder:A,onChange:this._onInputChange,onInput:this._onInputChange,onBlur:this._onBlur,onKeyDown:this._onKeyDown,value:L,disabled:c,role:"searchbox","aria-label":t,ref:this._inputElement})),L.length>0&&M.createElement("div",{className:Y.clearButton},M.createElement(Ke,N({onBlur:this._onBlur,styles:{root:{height:"auto"},icon:{fontSize:"12px"}},iconProps:{iconName:"Clear"}},m,{onClick:this._onClearClick}))))},o.prototype.focus=function(){this._inputElement.current&&this._inputElement.current.focus()},o.prototype.hasFocus=function(){return!!this.state.hasFocus},o.prototype._onClear=function(n){this.props.onClear&&this.props.onClear(n),n.defaultPrevented||(this._latestValue="",this.setState({value:""}),this._callOnChange(void 0,""),n.stopPropagation(),n.preventDefault(),this.focus())},o.prototype._callOnChange=function(n,t){var i=this.props,d=i.onChange,c=i.onChanged;c&&c(t),d&&d(n,t)},o.defaultProps={disableAnimation:!1,clearButtonProps:{ariaLabel:"Clear text"}},o})(M.Component),kI={root:"ms-SearchBox",iconContainer:"ms-SearchBox-iconContainer",icon:"ms-SearchBox-icon",clearButton:"ms-SearchBox-clearButton",field:"ms-SearchBox-field"};function MI(s){var o,n,t,i,d=s.theme,c=s.underlined,u=s.disabled,h=s.hasFocus,g=s.className,_=s.hasInput,m=s.disableAnimation,x=d.palette,y=d.fonts,v=d.semanticColors,b=d.effects,C=at(kI,d),k={color:v.inputPlaceholderText,opacity:1},L=x.neutralSecondary,I=x.neutralPrimary,A=x.neutralLighter,Y=x.neutralLighter,P=x.neutralLighter;return{root:[C.root,y.medium,cd,{color:v.inputText,backgroundColor:v.inputBackground,display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"stretch",padding:"1px 0 1px 4px",borderRadius:b.roundedCorner2,border:"1px solid "+v.inputBorder,height:32,selectors:(o={},o[_e]={borderColor:"WindowText"},o[":hover"]={borderColor:v.inputBorderHovered,selectors:(n={},n[_e]={borderColor:"Highlight"},n)},o[":hover ."+C.iconContainer]={color:v.inputIconHovered},o)},!h&&_&&{selectors:(t={},t[":hover ."+C.iconContainer]={width:4},t[":hover ."+C.icon]={opacity:0,pointerEvents:"none"},t)},h&&["is-active",{position:"relative"},_y(v.inputFocusBorderAlt,c?0:b.roundedCorner2,c?"borderBottom":"border")],u&&["is-disabled",{borderColor:A,backgroundColor:P,pointerEvents:"none",cursor:"default",selectors:(i={},i[_e]={borderColor:"GrayText"},i)}],c&&["is-underlined",{borderWidth:"0 0 1px 0",borderRadius:0,padding:"1px 0 1px 8px"}],c&&u&&{backgroundColor:"transparent"},_&&"can-clear",g],iconContainer:[C.iconContainer,{display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,fontSize:16,width:32,textAlign:"center",color:v.inputIcon,cursor:"text"},h&&{width:4},u&&{color:v.inputIconDisabled},!m&&{transition:"width "+mo.durationValue1}],icon:[C.icon,{opacity:1},h&&{opacity:0,pointerEvents:"none"},!m&&{transition:"opacity "+mo.durationValue1+" 0s"}],clearButton:[C.clearButton,{display:"flex",flexDirection:"row",alignItems:"stretch",cursor:"pointer",flexBasis:"32px",flexShrink:0,padding:0,margin:"-1px 0px",selectors:{"&:hover .ms-Button":{backgroundColor:Y},"&:hover .ms-Button-icon":{color:I},".ms-Button":{borderRadius:At(d)?"1px 0 0 1px":"0 1px 1px 0"},".ms-Button-icon":{color:L}}}],field:[C.field,cd,wy(k),{backgroundColor:"transparent",border:"none",outline:"none",fontWeight:"inherit",fontFamily:"inherit",fontSize:"inherit",color:v.inputText,flex:"1 1 0px",minWidth:"0px",overflow:"hidden",textOverflow:"ellipsis",paddingBottom:.5,selectors:{"::-ms-clear":{display:"none"}}},u&&{color:v.disabledText}]}}var jI=Ze(CI,MI,void 0,{scope:"SearchBox"}),LI=Je(),EI=function(s){var o=s.styles,n=s.theme,t=s.className,i=s.vertical,d=s.alignContent,c=LI(o,{theme:n,className:t,alignContent:d,vertical:i});return M.createElement("div",{className:c.root},M.createElement("div",{className:c.content,role:"separator","aria-orientation":i?"vertical":"horizontal"},s.children))},DI=function(s){var o,n,t=s.theme,i=s.alignContent,d=s.vertical,c=s.className,u=i==="start",h=i==="center",g=i==="end";return{root:[t.fonts.medium,{position:"relative"},i&&{textAlign:i},!i&&{textAlign:"center"},d&&(h||!i)&&{verticalAlign:"middle"},d&&u&&{verticalAlign:"top"},d&&g&&{verticalAlign:"bottom"},d&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":(o={backgroundColor:t.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1},o[_e]={backgroundColor:"WindowText"},o)}},!d&&{padding:"4px 0",selectors:{":before":(n={backgroundColor:t.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"},n[_e]={backgroundColor:"WindowText"},n)}},c],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:t.semanticColors.bodyText,background:t.semanticColors.bodyBackground},d&&{padding:"12px 0"}]}},Ub=Ze(EI,DI,void 0,{scope:"Separator"});Ub.displayName="Separator";var II={root:"ms-Shimmer-container",shimmerWrapper:"ms-Shimmer-shimmerWrapper",shimmerGradient:"ms-Shimmer-shimmerGradient",dataWrapper:"ms-Shimmer-dataWrapper"},Qp="100%",TI=Et(function(){return wn({"0%":{transform:"translateX(-"+Qp+")"},"100%":{transform:"translateX("+Qp+")"}})}),AI=Et(function(){return wn({"100%":{transform:"translateX(-"+Qp+")"},"0%":{transform:"translateX("+Qp+")"}})});function PI(s){var o,n=s.isDataLoaded,t=s.className,i=s.theme,d=s.transitionAnimationInterval,c=s.shimmerColor,u=s.shimmerWaveColor,h=i.semanticColors,g=at(II,i),_=At(i);return{root:[g.root,i.fonts.medium,{position:"relative",height:"auto"},t],shimmerWrapper:[g.shimmerWrapper,{position:"relative",overflow:"hidden",transform:"translateZ(0)",backgroundColor:c||h.disabledBackground,transition:"opacity "+d+"ms",selectors:(o={"> *":{transform:"translateZ(0)"}},o[_e]=N({background:`WindowText
                        linear-gradient(
                          to right,
                          transparent 0%,
                          Window 50%,
                          transparent 100%)
                        0 0 / 90% 100%
                        no-repeat`},bt()),o)},n&&{opacity:"0",position:"absolute",top:"0",bottom:"0",left:"0",right:"0"}],shimmerGradient:[g.shimmerGradient,{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:(c||h.disabledBackground)+`
                      linear-gradient(
                        to right,
                        `+(c||h.disabledBackground)+` 0%,
                        `+(u||h.bodyDivider)+` 50%,
                        `+(c||h.disabledBackground)+` 100%)
                      0 0 / 90% 100%
                      no-repeat`,transform:"translateX(-"+Qp+")",animationDuration:"2s",animationTimingFunction:"ease-in-out",animationDirection:"normal",animationIterationCount:"infinite",animationName:_?AI():TI()}],dataWrapper:[g.dataWrapper,{position:"absolute",top:"0",bottom:"0",left:"0",right:"0",opacity:"0",background:"none",backgroundColor:"transparent",border:"none",transition:"opacity "+d+"ms"},n&&{opacity:"1",position:"static"}],screenReaderText:wd}}var nr;(function(s){s[s.line=1]="line",s[s.circle=2]="circle",s[s.gap=3]="gap"})(nr||(nr={}));var zc;(function(s){s[s.line=16]="line",s[s.gap=16]="gap",s[s.circle=24]="circle"})(zc||(zc={}));var RI=Je(),FI=function(s){var o=s.height,n=s.styles,t=s.width,i=t===void 0?"100%":t,d=s.borderStyle,c=s.theme,u=RI(n,{theme:c,height:o,borderStyle:d});return M.createElement("div",{style:{width:i,minWidth:typeof i=="number"?i+"px":"auto"},className:u.root},M.createElement("svg",{width:"2",height:"2",className:u.topLeftCorner},M.createElement("path",{d:"M0 2 A 2 2, 0, 0, 1, 2 0 L 0 0 Z"})),M.createElement("svg",{width:"2",height:"2",className:u.topRightCorner},M.createElement("path",{d:"M0 0 A 2 2, 0, 0, 1, 2 2 L 2 0 Z"})),M.createElement("svg",{width:"2",height:"2",className:u.bottomRightCorner},M.createElement("path",{d:"M2 0 A 2 2, 0, 0, 1, 0 2 L 2 2 Z"})),M.createElement("svg",{width:"2",height:"2",className:u.bottomLeftCorner},M.createElement("path",{d:"M2 2 A 2 2, 0, 0, 1, 0 0 L 0 2 Z"})))},NI={root:"ms-ShimmerLine-root",topLeftCorner:"ms-ShimmerLine-topLeftCorner",topRightCorner:"ms-ShimmerLine-topRightCorner",bottomLeftCorner:"ms-ShimmerLine-bottomLeftCorner",bottomRightCorner:"ms-ShimmerLine-bottomRightCorner"};function OI(s){var o,n=s.height,t=s.borderStyle,i=s.theme,d=i.semanticColors,c=at(NI,i),u=t||{},h={position:"absolute",fill:d.bodyBackground};return{root:[c.root,i.fonts.medium,{height:n+"px",boxSizing:"content-box",position:"relative",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:d.bodyBackground,borderWidth:0,selectors:(o={},o[_e]={borderColor:"Window",selectors:{"> *":{fill:"Window"}}},o)},u],topLeftCorner:[c.topLeftCorner,{top:"0",left:"0"},h],topRightCorner:[c.topRightCorner,{top:"0",right:"0"},h],bottomRightCorner:[c.bottomRightCorner,{bottom:"0",right:"0"},h],bottomLeftCorner:[c.bottomLeftCorner,{bottom:"0",left:"0"},h]}}var ax=Ze(FI,OI,void 0,{scope:"ShimmerLine"}),YI=Je(),WI=function(s){var o=s.height,n=s.styles,t=s.width,i=t===void 0?"10px":t,d=s.borderStyle,c=s.theme,u=YI(n,{theme:c,height:o,borderStyle:d});return M.createElement("div",{style:{width:i,minWidth:typeof i=="number"?i+"px":"auto"},className:u.root})},BI={root:"ms-ShimmerGap-root"};function HI(s){var o,n=s.height,t=s.borderStyle,i=s.theme,d=i.semanticColors,c=at(BI,i),u=t||{};return{root:[c.root,i.fonts.medium,{backgroundColor:d.bodyBackground,height:n+"px",boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:d.bodyBackground,selectors:(o={},o[_e]={backgroundColor:"Window",borderColor:"Window"},o)},u]}}var zI=Ze(WI,HI,void 0,{scope:"ShimmerGap"}),UI={root:"ms-ShimmerCircle-root",svg:"ms-ShimmerCircle-svg"};function VI(s){var o,n,t=s.height,i=s.borderStyle,d=s.theme,c=d.semanticColors,u=at(UI,d),h=i||{};return{root:[u.root,d.fonts.medium,{width:t+"px",height:t+"px",minWidth:t+"px",boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:c.bodyBackground,selectors:(o={},o[_e]={borderColor:"Window"},o)},h],svg:[u.svg,{display:"block",fill:c.bodyBackground,selectors:(n={},n[_e]={fill:"Window"},n)}]}}var GI=Je(),$I=function(s){var o=s.height,n=s.styles,t=s.borderStyle,i=s.theme,d=GI(n,{theme:i,height:o,borderStyle:t});return M.createElement("div",{className:d.root},M.createElement("svg",{viewBox:"0 0 10 10",width:o,height:o,className:d.svg},M.createElement("path",{d:"M0,0 L10,0 L10,10 L0,10 L0,0 Z M0,5 C0,7.76142375 2.23857625,10 5,10 C7.76142375,10 10,7.76142375 10,5 C10,2.23857625 7.76142375,2.22044605e-16 5,0 C2.23857625,-2.22044605e-16 0,2.23857625 0,5 L0,5 Z"})))},KI=Ze($I,VI,void 0,{scope:"ShimmerCircle"}),qI=Je(),JI=function(s){var o=s.styles,n=s.width,t=n===void 0?"auto":n,i=s.shimmerElements,d=s.rowHeight,c=d===void 0?QI(i||[]):d,u=s.flexWrap,h=u===void 0?!1:u,g=s.theme,_=s.backgroundColor,m=qI(o,{theme:g,flexWrap:h});return M.createElement("div",{style:{width:t},className:m.root},ZI(i,_,c))};function ZI(s,o,n){var t=s?s.map(function(i,d){var c=i.type,u=ms(i,["type"]),h=u.verticalAlign,g=u.height,_=XI(h,c,g,o,n);switch(i.type){case nr.circle:return M.createElement(KI,N({key:d},u,{styles:_}));case nr.gap:return M.createElement(zI,N({key:d},u,{styles:_}));case nr.line:return M.createElement(ax,N({key:d},u,{styles:_}))}}):M.createElement(ax,{height:zc.line});return t}var XI=Et(function(s,o,n,t,i){var d=i&&n?i-n:0,c;if(!s||s==="center"?c={borderBottomWidth:(d?Math.floor(d/2):0)+"px",borderTopWidth:(d?Math.ceil(d/2):0)+"px"}:s&&s==="top"?c={borderBottomWidth:d+"px",borderTopWidth:"0px"}:s&&s==="bottom"&&(c={borderBottomWidth:"0px",borderTopWidth:d+"px"}),t)switch(o){case nr.circle:return{root:N(N({},c),{borderColor:t}),svg:{fill:t}};case nr.gap:return{root:N(N({},c),{borderColor:t,backgroundColor:t})};case nr.line:return{root:N(N({},c),{borderColor:t}),topLeftCorner:{fill:t},topRightCorner:{fill:t},bottomLeftCorner:{fill:t},bottomRightCorner:{fill:t}}}return{root:c}});function QI(s){var o=s.map(function(t){switch(t.type){case nr.circle:t.height||(t.height=zc.circle);break;case nr.line:t.height||(t.height=zc.line);break;case nr.gap:t.height||(t.height=zc.gap);break}return t}),n=o.reduce(function(t,i){return i.height&&i.height>t?i.height:t},0);return n}var eT={root:"ms-ShimmerElementsGroup-root"};function tT(s){var o=s.flexWrap,n=s.theme,t=at(eT,n);return{root:[t.root,n.fonts.medium,{display:"flex",alignItems:"center",flexWrap:o?"wrap":"nowrap",position:"relative"}]}}var Ff=Ze(JI,tT,void 0,{scope:"ShimmerElementsGroup"}),lx=200,nT=Je(),rT=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return St(t),t.state={contentLoaded:n.isDataLoaded},t._async=new Wn(t),t}return o.prototype.componentDidUpdate=function(n){var t=this,i=this.props.isDataLoaded;i!==n.isDataLoaded&&(this._async.clearTimeout(this._lastTimeoutId),i?this._lastTimeoutId=this._async.setTimeout(function(){t.setState({contentLoaded:i})},lx):this.setState({contentLoaded:i}))},o.prototype.componentWillUnmount=function(){this._async.dispose()},o.prototype.render=function(){var n=this.props,t=n.styles,i=n.shimmerElements,d=n.children,c=n.isDataLoaded,u=n.width,h=n.className,g=n.customElementsGroup,_=n.theme,m=n.ariaLabel,x=n.shimmerColors,y=this.state.contentLoaded;this._classNames=nT(t,{theme:_,isDataLoaded:c,className:h,transitionAnimationInterval:lx,shimmerColor:x&&x.shimmer,shimmerWaveColor:x&&x.shimmerWave});var v=pt(this.props,Yn);return M.createElement("div",N({},v,{className:this._classNames.root}),!y&&M.createElement("div",{style:{width:u||"100%"},className:this._classNames.shimmerWrapper},M.createElement("div",{className:this._classNames.shimmerGradient}),g||M.createElement(Ff,{shimmerElements:i,backgroundColor:x&&x.background})),d&&M.createElement("div",{className:this._classNames.dataWrapper},d),m&&!c&&M.createElement("div",{role:"status","aria-live":"polite"},M.createElement(og,null,M.createElement("div",{className:this._classNames.screenReaderText},m))))},o.defaultProps={isDataLoaded:!1},o})(M.Component),sT=Ze(rT,PI,void 0,{scope:"Shimmer"}),oT=Je(),iT=10,aT=7,dx=.95,lT=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._onRenderShimmerPlaceholder=function(i,d){var c=t.props.onRenderCustomPlaceholder,u=c?c(d,i,t._renderDefaultShimmerPlaceholder):t._renderDefaultShimmerPlaceholder(d);return M.createElement(sT,{customElementsGroup:u})},t._renderDefaultShimmerPlaceholder=function(i){var d=i.columns,c=i.compact,u=i.selectionMode,h=i.checkboxVisibility,g=i.cellStyleProps,_=g===void 0?Ci:g,m=gd.rowHeight,x=gd.compactRowHeight,y=c?x:m+1,v=[],b=u!==it.none&&h!==Os.hidden;return b&&v.push(M.createElement(Ff,{key:"checkboxGap",shimmerElements:[{type:nr.gap,width:"40px",height:y}]})),d.forEach(function(C,k){var L=[],I=_.cellLeftPadding+_.cellRightPadding+C.calculatedWidth+(C.isPadded?_.cellExtraRightPadding:0);L.push({type:nr.gap,width:_.cellLeftPadding,height:y}),C.isIconOnly?(L.push({type:nr.line,width:C.calculatedWidth,height:C.calculatedWidth}),L.push({type:nr.gap,width:_.cellRightPadding,height:y})):(L.push({type:nr.line,width:C.calculatedWidth*dx,height:aT}),L.push({type:nr.gap,width:_.cellRightPadding+(C.calculatedWidth-C.calculatedWidth*dx)+(C.isPadded?_.cellExtraRightPadding:0),height:y})),v.push(M.createElement(Ff,{key:k,width:I+"px",shimmerElements:L}))}),v.push(M.createElement(Ff,{key:"endGap",width:"100%",shimmerElements:[{type:nr.gap,width:"100%",height:y}]})),M.createElement("div",{style:{display:"flex"}},v)},t._shimmerItems=n.shimmerLines?new Array(n.shimmerLines):new Array(iT),t}return o.prototype.render=function(){var n=this.props,t=n.detailsListStyles,i=n.enableShimmer,d=n.items,c=n.listProps;n.onRenderCustomPlaceholder;var u=n.removeFadingOverlay;n.shimmerLines;var h=n.styles,g=n.theme,_=n.ariaLabelForGrid,m=n.ariaLabelForShimmer,x=ms(n,["detailsListStyles","enableShimmer","items","listProps","onRenderCustomPlaceholder","removeFadingOverlay","shimmerLines","styles","theme","ariaLabelForGrid","ariaLabelForShimmer"]),y=c&&c.className;this._classNames=oT(h,{theme:g});var v=N(N({},c),{className:i&&!u?sn(this._classNames.root,y):y});return M.createElement(V1,N({},x,{styles:t,items:i?this._shimmerItems:d,isPlaceholderData:i,ariaLabelForGrid:i&&m||_,onRenderMissingItem:this._onRenderShimmerPlaceholder,listProps:v}))},o})(M.Component),Vb=Ze(lT,G1,void 0,{scope:"ShimmeredDetailsList"}),rw=N;function Nf(s,o){for(var n=[],t=2;t<arguments.length;t++)n[t-2]=arguments[t];var i=s;return i.isSlot?(n=M.Children.toArray(n),n.length===0?i(o):i(N(N({},o),{children:n}))):M.createElement.apply(Vx,Nn([s,o],n))}function Gb(s,o){o===void 0&&(o={});var n=o.defaultProp,t=n===void 0?"children":n,i=function(d,c,u,h,g){if(M.isValidElement(c))return c;var _=cT(t,c),m=uT(h,g,d,_);if(u){if(u.component){var x=u.component;return M.createElement(x,N({},m))}if(u.render)return u.render(m,s)}return M.createElement(s,N({},m))};return i}var dT=Et(function(s){return Gb(s)});function $b(s,o){var n={},t=s,i=function(c){if(o.hasOwnProperty(c)){var u=function(h){for(var g=[],_=1;_<arguments.length;_++)g[_-1]=arguments[_];if(g.length>0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return pT(o[c],h,t[c],t.slots&&t.slots[c],t._defaultStyles&&t._defaultStyles[c],t.theme)};u.isSlot=!0,n[c]=u}};for(var d in o)i(d);return n}function cT(s,o){var n,t;return typeof o=="string"||typeof o=="number"||typeof o=="boolean"?t=(n={},n[s]=o,n):t=o,t}function uT(s,o){for(var n=[],t=2;t<arguments.length;t++)n[t-2]=arguments[t];for(var i={},d=[],c=0,u=n;c<u.length;c++){var h=u[c];d.push(h&&h.className),rw(i,h)}return i.className=P0([s,d],{rtl:At(o)}),i}function pT(s,o,n,t,i,d){return s.create!==void 0?s.create(o,n,t,i):dT(s)(o,n,t,i,d)}function Kb(s,o){o===void 0&&(o={});var n=o.factoryOptions,t=n===void 0?{}:n,i=t.defaultProp,d=function(c){var u=mT(o.displayName,M.useContext(Bp),o.fields),h=o.state;h&&(c=N(N({},c),h(c)));var g=c.theme||u.theme,_=qb(c,g,o.tokens,u.tokens,c.tokens),m=hT(c,g,_,o.styles,u.styles,c.styles),x=N(N({},c),{styles:m,tokens:_,_defaultStyles:m,theme:g});return s(x)};return d.displayName=o.displayName||s.name,i&&(d.create=Gb(d,{defaultProp:i})),rw(d,o.statics),d}function hT(s,o,n){for(var t=[],i=3;i<arguments.length;i++)t[i-3]=arguments[i];return Vo.apply(void 0,t.map(function(d){return typeof d=="function"?d(s,o,n):d}))}function qb(s,o){for(var n=[],t=2;t<arguments.length;t++)n[t-2]=arguments[t];for(var i={},d=0,c=n;d<c.length;d++){var u=c[d];u&&(u=typeof u=="function"?u(s,o):u,Array.isArray(u)&&(u=qb.apply(void 0,Nn([s,o],u))),rw(i,u))}return i}function mT(s,o,n){var t=["theme","styles","tokens"];return go.getSettings(n||t,s,o.customizations)}var fT={root:"ms-StackItem"},gT={start:"flex-start",end:"flex-end"},_T=function(s,o,n){var t=s.grow,i=s.shrink,d=s.disableShrink,c=s.align,u=s.verticalFill,h=s.order,g=s.className,_=at(fT,o);return{root:[o.fonts.medium,_.root,{margin:n.margin,padding:n.padding,height:u?"100%":"auto",width:"auto"},t&&{flexGrow:t===!0?1:t},(d||!t&&!i)&&{flexShrink:0},i&&!d&&{flexShrink:1},c&&{alignSelf:gT[c]||c},h&&{order:h},g]}},yT=function(s){var o=s.children,n=pt(s,on);if(M.Children.count(o)<1)return null;var t=$b(s,{root:"div"});return Nf(t.root,N({},n),o)},Jb=Kb(yT,{displayName:"StackItem",styles:_T}),Uc=function(s,o){return o.spacing.hasOwnProperty(s)?o.spacing[s]:s},ey=function(s){var o=parseFloat(s),n=isNaN(o)?0:o,t=isNaN(o)?"":o.toString(),i=s.substring(t.toString().length);return{value:n,unit:i||"px"}},wT=function(s,o){if(s===void 0||s==="")return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(typeof s=="number")return{rowGap:{value:s,unit:"px"},columnGap:{value:s,unit:"px"}};var n=s.split(" ");if(n.length>2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(n.length===2)return{rowGap:ey(Uc(n[0],o)),columnGap:ey(Uc(n[1],o))};var t=ey(Uc(s,o));return{rowGap:t,columnGap:t}},cx=function(s,o){if(s===void 0||typeof s=="number"||s==="")return s;var n=s.split(" ");return n.length<2?Uc(s,o):n.reduce(function(t,i){return Uc(t,o)+" "+Uc(i,o)})},Ic={start:"flex-start",end:"flex-end"},vT={root:"ms-Stack",inner:"ms-Stack-inner"},xT=function(s,o,n){var t,i,d,c,u,h,g,_=s.verticalFill,m=s.horizontal,x=s.reversed,y=s.grow,v=s.wrap,b=s.horizontalAlign,C=s.verticalAlign,k=s.disableShrink,L=s.className,I=at(vT,o),A=n&&n.childrenGap?n.childrenGap:s.gap,Y=n&&n.maxHeight?n.maxHeight:s.maxHeight,P=n&&n.maxWidth?n.maxWidth:s.maxWidth,T=n&&n.padding?n.padding:s.padding,F=wT(A,o),H=F.rowGap,W=F.columnGap,K=""+-.5*W.value+W.unit,Z=""+-.5*H.value+H.unit,Q={textOverflow:"ellipsis"},B={"> *:not(.ms-StackItem)":{flexShrink:k?0:1}};return v?{root:[I.root,{flexWrap:"wrap",maxWidth:P,maxHeight:Y,width:"auto",overflow:"visible",height:"100%"},b&&(t={},t[m?"justifyContent":"alignItems"]=Ic[b]||b,t),C&&(i={},i[m?"alignItems":"justifyContent"]=Ic[C]||C,i),L,{display:"flex"},m&&{height:_?"100%":"auto"}],inner:[I.inner,{display:"flex",flexWrap:"wrap",marginLeft:K,marginRight:K,marginTop:Z,marginBottom:Z,overflow:"visible",boxSizing:"border-box",padding:cx(T,o),width:W.value===0?"100%":"calc(100% + "+W.value+W.unit+")",maxWidth:"100vw",selectors:N({"> *":N({margin:""+.5*H.value+H.unit+" "+.5*W.value+W.unit},Q)},B)},b&&(d={},d[m?"justifyContent":"alignItems"]=Ic[b]||b,d),C&&(c={},c[m?"alignItems":"justifyContent"]=Ic[C]||C,c),m&&{flexDirection:x?"row-reverse":"row",height:H.value===0?"100%":"calc(100% + "+H.value+H.unit+")",selectors:{"> *":{maxWidth:W.value===0?"100%":"calc(100% - "+W.value+W.unit+")"}}},!m&&{flexDirection:x?"column-reverse":"column",height:"calc(100% + "+H.value+H.unit+")",selectors:{"> *":{maxHeight:H.value===0?"100%":"calc(100% - "+H.value+H.unit+")"}}}]}:{root:[I.root,{display:"flex",flexDirection:m?x?"row-reverse":"row":x?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:_?"100%":"auto",maxWidth:P,maxHeight:Y,padding:cx(T,o),boxSizing:"border-box",selectors:N((u={"> *":Q},u[x?"> *:not(:last-child)":"> *:not(:first-child)"]=[m&&{marginLeft:""+W.value+W.unit},!m&&{marginTop:""+H.value+H.unit}],u),B)},y&&{flexGrow:y===!0?1:y},b&&(h={},h[m?"justifyContent":"alignItems"]=Ic[b]||b,h),C&&(g={},g[m?"alignItems":"justifyContent"]=Ic[C]||C,g),L]}},bT=function(s){var o=s.as,n=o===void 0?"div":o,t=s.disableShrink,i=s.wrap,d=ms(s,["as","disableShrink","wrap"]),c=M.Children.map(s.children,function(g,_){if(!g)return null;if(ST(g)){var m={shrink:!t};return M.cloneElement(g,N(N({},m),g.props))}return g}),u=pt(d,on),h=$b(s,{root:n,inner:"div"});return i?Nf(h.root,N({},u),Nf(h.inner,null,c)):Nf(h.root,N({},u),c)};function ST(s){return!!s&&typeof s=="object"&&!!s.type&&s.type.displayName===Jb.displayName}var CT={Item:Jb},U=Kb(bT,{displayName:"Stack",styles:xT,statics:CT}),kT=Je(),MT=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t.rootElement=M.createRef(),t._onKeyDown=function(i){t.props.onDismiss&&i.which===ke.escape&&t.props.onDismiss()},St(t),t.state={},t}return o.prototype.componentDidMount=function(){this.props.onDismiss&&document.addEventListener("keydown",this._onKeyDown,!1)},o.prototype.componentWillUnmount=function(){this.props.onDismiss&&document.removeEventListener("keydown",this._onKeyDown)},o.prototype.focus=function(){this.rootElement.current&&this.rootElement.current.focus()},o.prototype.render=function(){var n=this.props,t=n.children,i=n.illustrationImage,d=n.primaryButtonProps,c=n.secondaryButtonProps,u=n.headline,h=n.hasCondensedHeadline,g=n.hasCloseButton,_=g===void 0?this.props.hasCloseIcon:g,m=n.onDismiss,x=n.closeButtonAriaLabel,y=n.hasSmallHeadline,v=n.isWide,b=n.styles,C=n.theme,k=n.ariaDescribedBy,L=n.ariaLabelledBy,I=n.footerContent,A=n.focusTrapZoneProps,Y,P,T,F,H,W=kT(b,{theme:C,hasCondensedHeadline:h,hasSmallHeadline:y,hasCloseButton:_,hasHeadline:!!u,isWide:v,primaryButtonClassName:d?d.className:void 0,secondaryButtonClassName:c?c.className:void 0});if(i&&i.src&&(Y=M.createElement("div",{className:W.imageContent},M.createElement(Gp,N({},i)))),u){var K=typeof u=="string"?"p":"div";P=M.createElement("div",{className:W.header},M.createElement(K,{role:"heading","aria-level":3,className:W.headline,id:L},u))}if(t){var Z=typeof t=="string"?"p":"div";T=M.createElement("div",{className:W.body},M.createElement(Z,{className:W.subText,id:k},t))}return(d||c||I)&&(F=M.createElement(U,{className:W.footer,horizontal:!0,horizontalAlign:I?"space-between":"end"},M.createElement(U.Item,{align:"center"},M.createElement("span",null,I)),M.createElement(U.Item,null,c&&M.createElement(et,N({},c,{className:W.secondaryButton})),d&&M.createElement(rt,N({},d,{className:W.primaryButton}))))),_&&(H=M.createElement(Ke,{className:W.closeButton,iconProps:{iconName:"Cancel"},title:x,ariaLabel:x,onClick:m})),M.createElement("div",{className:W.content,ref:this.rootElement,role:"dialog",tabIndex:-1,"aria-labelledby":L,"aria-describedby":k,"data-is-focusable":!0},Y,M.createElement(su,N({isClickableOutsideFocusTrap:!0},A),M.createElement("div",{className:W.bodyContent},P,T,F,H)))},o})(M.Component),jT={root:"ms-TeachingBubble",body:"ms-TeachingBubble-body",bodyContent:"ms-TeachingBubble-bodycontent",closeButton:"ms-TeachingBubble-closebutton",content:"ms-TeachingBubble-content",footer:"ms-TeachingBubble-footer",header:"ms-TeachingBubble-header",headerIsCondensed:"ms-TeachingBubble-header--condensed",headerIsSmall:"ms-TeachingBubble-header--small",headerIsLarge:"ms-TeachingBubble-header--large",headline:"ms-TeachingBubble-headline",image:"ms-TeachingBubble-image",primaryButton:"ms-TeachingBubble-primaryButton",secondaryButton:"ms-TeachingBubble-secondaryButton",subText:"ms-TeachingBubble-subText",button:"ms-Button",buttonLabel:"ms-Button-label"},LT=Et(function(){return wn({"0%":{opacity:0,animationTimingFunction:mo.easeFunction1,transform:"scale3d(.90,.90,.90)"},"100%":{opacity:1,transform:"scale3d(1,1,1)"}})}),ux=function(s,o){var n=o||{},t=n.calloutWidth,i=n.calloutMaxWidth;return[{display:"block",maxWidth:364,border:0,outline:"transparent",width:t||"calc(100% + 1px)",animationName:""+LT(),animationDuration:"300ms",animationTimingFunction:"linear",animationFillMode:"both"},s&&{maxWidth:i||456}]},ET=function(s,o,n){return o?[s.headerIsCondensed,{marginBottom:14}]:[n&&s.headerIsSmall,!n&&s.headerIsLarge,{selectors:{":not(:last-child)":{marginBottom:14}}}]},Zb=function(s){var o,n,t,i=s.hasCondensedHeadline,d=s.hasSmallHeadline,c=s.hasCloseButton,u=s.hasHeadline,h=s.isWide,g=s.primaryButtonClassName,_=s.secondaryButtonClassName,m=s.theme,x=s.calloutProps,y=x===void 0?{className:void 0}:x,v=!i&&!d,b=m.palette,C=m.semanticColors,k=m.fonts,L=at(jT,m),I=On(m,{outlineColor:"transparent",borderColor:"transparent"});return{root:[L.root,k.medium,y.className],body:[L.body,c&&!u&&{marginRight:24},{selectors:{":not(:last-child)":{marginBottom:20}}}],bodyContent:[L.bodyContent,{padding:"20px 24px 20px 24px"}],closeButton:[L.closeButton,{position:"absolute",right:0,top:0,margin:"15px 15px 0 0",borderRadius:0,color:b.white,fontSize:k.small.fontSize,selectors:{":hover":{background:b.themeDarkAlt,color:b.white},":active":{background:b.themeDark,color:b.white},":focus":{border:"1px solid "+C.variantBorder}}}],content:Nn([L.content],ux(h),[h&&{display:"flex"}]),footer:[L.footer,{display:"flex",flex:"auto",alignItems:"center",color:b.white,selectors:(o={},o["."+L.button+":not(:first-child)"]={marginLeft:10},o)}],header:Nn([L.header],ET(L,i,d),[c&&{marginRight:24},(i||d)&&[k.medium,{fontWeight:Lt.semibold}]]),headline:[L.headline,{margin:0,color:b.white,fontWeight:Lt.semibold},v&&[{fontSize:k.xLarge.fontSize}]],imageContent:[L.header,L.image,h&&{display:"flex",alignItems:"center",maxWidth:154}],primaryButton:[L.primaryButton,g,I,{backgroundColor:b.white,borderColor:b.white,color:b.themePrimary,whiteSpace:"nowrap",selectors:(n={},n["."+L.buttonLabel]=k.medium,n[":hover"]={backgroundColor:b.themeLighter,borderColor:b.themeLighter,color:b.themePrimary},n[":focus"]={backgroundColor:b.themeLighter,border:"1px solid "+b.black,outline:"1px solid "+b.white,outlineOffset:"-2px"},n[":active"]={backgroundColor:b.white,borderColor:b.white,color:b.themePrimary},n)}],secondaryButton:[L.secondaryButton,_,{backgroundColor:b.themePrimary,borderColor:b.white,whiteSpace:"nowrap",selectors:(t={},t["."+L.buttonLabel]=[k.medium,{color:b.white}],t[":hover"]={backgroundColor:b.themeDarkAlt,borderColor:b.white},t[":focus"]={backgroundColor:b.themeDark,border:"1px solid "+b.black,outline:"1px solid "+b.white,outlineOffset:"-2px"},t[":active"]={backgroundColor:b.themePrimary,borderColor:b.white},t)}],subText:[L.subText,{margin:0,fontSize:k.medium.fontSize,color:b.white,fontWeight:Lt.regular}],subComponentStyles:{callout:{root:Nn(ux(h,y),[k.medium]),beak:[{background:b.themePrimary}],calloutMain:[{background:b.themePrimary}]}}}},DT=Ze(MT,Zb,void 0,{scope:"TeachingBubbleContent"}),IT=Je(),TT=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t.rootElement=M.createRef(),St(t),t.state={},t._defaultCalloutProps={beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1,directionalHint:Ot.rightCenter},t}return o.prototype.focus=function(){this.rootElement.current&&this.rootElement.current.focus()},o.prototype.render=function(){var n=this.props,t=n.calloutProps,i=n.targetElement,d=n.onDismiss,c=n.hasCloseButton,u=c===void 0?this.props.hasCloseIcon:c,h=n.isWide,g=n.styles,_=n.theme,m=n.target,x=N(N({},this._defaultCalloutProps),t),y={theme:_,isWide:h,calloutProps:N(N({},x),{theme:x.theme}),hasCloseButton:u},v=IT(g,y),b=v.subComponentStyles?v.subComponentStyles.callout:void 0;return M.createElement(ch,N({target:m||i,onDismiss:d},x,{className:v.root,styles:b,hideOverflow:!0}),M.createElement("div",{ref:this.rootElement},M.createElement(DT,N({},this.props))))},o.defaultProps={calloutProps:{beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1,directionalHint:Ot.rightCenter}},o})(M.Component),AT=Ze(TT,Zb,void 0,{scope:"TeachingBubble"}),PT=Je(),RT=(function(s){Ne(o,s);function o(n){var t=s.call(this,n)||this;return t._toggleButton=M.createRef(),t._onClick=function(i){var d=t.props,c=d.disabled,u=d.checked,h=d.onChange,g=d.onChanged,_=d.onClick,m=t.state.checked;c||(u===void 0&&t.setState({checked:!m}),h&&h(i,!m),g&&g(!m),_&&_(i))},St(t),t.state={checked:!!(n.checked||n.defaultChecked)},t._id=zt("Toggle"),t}return o.getDerivedStateFromProps=function(n,t){return n.checked===void 0?null:{checked:!!n.checked}},Object.defineProperty(o.prototype,"checked",{get:function(){return this.state.checked},enumerable:!0,configurable:!0}),o.prototype.render=function(){var n=this,t=this.props,i=t.as,d=i===void 0?"div":i,c=t.className,u=t.theme,h=t.disabled,g=t.keytipProps,_=t.id,m=t.label,x=t.ariaLabel,y=t.onAriaLabel,v=t.offAriaLabel,b=t.offText,C=t.onText,k=t.styles,L=t.inlineLabel,I=this.state.checked,A=I?C:b,Y=I?y:v,P=pt(this.props,ah,["defaultChecked"]),T=PT(k,{theme:u,className:c,disabled:h,checked:I,inlineLabel:L,onOffMissing:!C&&!b}),F=_||this._id,H=F+"-label",W=F+"-stateText",K=void 0;!x&&!Y&&(m&&(K=H),A&&(K=K?K+" "+W:W));var Z=this.props.role?this.props.role:"switch",Q=function(R){return R===void 0&&(R={}),M.createElement("button",N({},P,R,{className:T.pill,disabled:h,id:F,type:"button",role:Z,ref:n._toggleButton,"aria-disabled":h,"aria-checked":I,"aria-label":x||Y,"data-is-focusable":!0,onChange:n._noop,onClick:n._onClick,"aria-labelledby":K}),M.createElement("span",{className:T.thumb}))},B=g?M.createElement(ra,{keytipProps:g,ariaDescribedBy:P["aria-describedby"],disabled:h},function(R){return Q(R)}):Q();return M.createElement(d,{className:T.root,hidden:P.hidden},m&&M.createElement(fd,{htmlFor:F,className:T.label,id:H},m),M.createElement("div",{className:T.container},B,A&&M.createElement(fd,{htmlFor:F,className:T.text,id:W},A)),M.createElement(nu,null))},o.prototype.focus=function(){this._toggleButton.current&&this._toggleButton.current.focus()},o.prototype._noop=function(){},o})(M.Component),FT=40,px=20,ty=12,NT=function(s){var o,n,t,i,d,c,u,h=s.theme,g=s.className,_=s.disabled,m=s.checked,x=s.inlineLabel,y=s.onOffMissing,v=h.semanticColors,b=h.palette,C=v.bodyBackground,k=v.inputBackgroundChecked,L=v.inputBackgroundCheckedHovered,I=b.neutralDark,A=v.disabledBodySubtext,Y=v.smallInputBorder,P=v.inputForegroundChecked,T=v.disabledBodySubtext,F=v.disabledBackground,H=v.smallInputBorder,W=v.inputBorderHovered,K=v.disabledBodySubtext,Z=v.disabledText;return{root:["ms-Toggle",m&&"is-checked",!_&&"is-enabled",_&&"is-disabled",h.fonts.medium,{marginBottom:"8px"},x&&{display:"flex",alignItems:"center"},g],label:["ms-Toggle-label",{display:"inline-block"},_&&{color:Z,selectors:(o={},o[_e]={color:"GrayText"},o)},x&&!y&&{marginRight:16},y&&x&&{order:1,marginLeft:16},x&&{wordBreak:"break-all"}],container:["ms-Toggle-innerContainer",{display:"flex",position:"relative"}],pill:["ms-Toggle-background",On(h,{inset:-3}),{fontSize:"20px",boxSizing:"border-box",width:FT,height:px,borderRadius:px/2,transition:"all 0.1s ease",border:"1px solid "+H,background:C,cursor:"pointer",display:"flex",alignItems:"center",padding:"0 3px"},!_&&[!m&&{selectors:{":hover":[{borderColor:W}],":hover .ms-Toggle-thumb":[{backgroundColor:I,selectors:(n={},n[_e]={borderColor:"Highlight"},n)}]}},m&&[{background:k,borderColor:"transparent",justifyContent:"flex-end"},{selectors:(t={":hover":[{backgroundColor:L,borderColor:"transparent",selectors:(i={},i[_e]={backgroundColor:"Highlight"},i)}]},t[_e]=N({backgroundColor:"Highlight"},bt()),t)}]],_&&[{cursor:"default"},!m&&[{borderColor:K}],m&&[{backgroundColor:A,borderColor:"transparent",justifyContent:"flex-end"}]],!_&&{selectors:{"&:hover":{selectors:(d={},d[_e]={borderColor:"Highlight"},d)}}}],thumb:["ms-Toggle-thumb",{display:"block",width:ty,height:ty,borderRadius:"50%",transition:"all 0.1s ease",backgroundColor:Y,borderColor:"transparent",borderWidth:ty/2,borderStyle:"solid",boxSizing:"border-box"},!_&&m&&[{backgroundColor:P,selectors:(c={},c[_e]={backgroundColor:"Window",borderColor:"Window"},c)}],_&&[!m&&[{backgroundColor:T}],m&&[{backgroundColor:F}]]],text:["ms-Toggle-stateText",{selectors:{"&&":{padding:"0",margin:"0 8px",userSelect:"none",fontWeight:Lt.regular}}},_&&{selectors:{"&&":{color:Z,selectors:(u={},u[_e]={color:"GrayText"},u)}}}]}},jn=Ze(RT,NT,void 0,{scope:"Toggle"}),ny={exports:{}},hx;function OT(){return hx||(hx=1,(function(s,o){(function(n,t){s.exports=t()})(window,function(){return(function(n){var t={};function i(d){if(t[d])return t[d].exports;var c=t[d]={i:d,l:!1,exports:{}};return n[d].call(c.exports,c,c.exports,i),c.l=!0,c.exports}return i.m=n,i.c=t,i.d=function(d,c,u){i.o(d,c)||Object.defineProperty(d,c,{enumerable:!0,get:u})},i.r=function(d){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},i.t=function(d,c){if(1&c&&(d=i(d)),8&c||4&c&&typeof d=="object"&&d&&d.__esModule)return d;var u=Object.create(null);if(i.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:d}),2&c&&typeof d!="string")for(var h in d)i.d(u,h,function(g){return d[g]}.bind(null,h));return u},i.n=function(d){var c=d&&d.__esModule?function(){return d.default}:function(){return d};return i.d(c,"a",c),c},i.o=function(d,c){return Object.prototype.hasOwnProperty.call(d,c)},i.p="",i(i.s=10)})([function(n,t,i){var d=i(2),c=i(12),u=Object.prototype.toString;function h(x){return u.call(x)==="[object Array]"}function g(x){return x!==null&&typeof x=="object"}function _(x){return u.call(x)==="[object Function]"}function m(x,y){if(x!=null)if(typeof x!="object"&&(x=[x]),h(x))for(var v=0,b=x.length;v<b;v++)y.call(null,x[v],v,x);else for(var C in x)Object.prototype.hasOwnProperty.call(x,C)&&y.call(null,x[C],C,x)}n.exports={isArray:h,isArrayBuffer:function(x){return u.call(x)==="[object ArrayBuffer]"},isBuffer:c,isFormData:function(x){return typeof FormData<"u"&&x instanceof FormData},isArrayBufferView:function(x){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(x):x&&x.buffer&&x.buffer instanceof ArrayBuffer},isString:function(x){return typeof x=="string"},isNumber:function(x){return typeof x=="number"},isObject:g,isUndefined:function(x){return x===void 0},isDate:function(x){return u.call(x)==="[object Date]"},isFile:function(x){return u.call(x)==="[object File]"},isBlob:function(x){return u.call(x)==="[object Blob]"},isFunction:_,isStream:function(x){return g(x)&&_(x.pipe)},isURLSearchParams:function(x){return typeof URLSearchParams<"u"&&x instanceof URLSearchParams},isStandardBrowserEnv:function(){return(typeof navigator>"u"||navigator.product!=="ReactNative"&&navigator.product!=="NativeScript"&&navigator.product!=="NS")&&typeof window<"u"&&typeof document<"u"},forEach:m,merge:function x(){var y={};function v(k,L){typeof y[L]=="object"&&typeof k=="object"?y[L]=x(y[L],k):y[L]=k}for(var b=0,C=arguments.length;b<C;b++)m(arguments[b],v);return y},deepMerge:function x(){var y={};function v(k,L){typeof y[L]=="object"&&typeof k=="object"?y[L]=x(y[L],k):y[L]=typeof k=="object"?x({},k):k}for(var b=0,C=arguments.length;b<C;b++)m(arguments[b],v);return y},extend:function(x,y,v){return m(y,function(b,C){x[C]=v&&typeof b=="function"?d(b,v):b}),x},trim:function(x){return x.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(n,t,i){n.exports=i(11)},function(n,t,i){n.exports=function(d,c){return function(){for(var u=new Array(arguments.length),h=0;h<u.length;h++)u[h]=arguments[h];return d.apply(c,u)}}},function(n,t,i){var d=i(0);function c(u){return encodeURIComponent(u).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}n.exports=function(u,h,g){if(!h)return u;var _;if(g)_=g(h);else if(d.isURLSearchParams(h))_=h.toString();else{var m=[];d.forEach(h,function(y,v){y!=null&&(d.isArray(y)?v+="[]":y=[y],d.forEach(y,function(b){d.isDate(b)?b=b.toISOString():d.isObject(b)&&(b=JSON.stringify(b)),m.push(c(v)+"="+c(b))}))}),_=m.join("&")}if(_){var x=u.indexOf("#");x!==-1&&(u=u.slice(0,x)),u+=(u.indexOf("?")===-1?"?":"&")+_}return u}},function(n,t,i){n.exports=function(d){return!(!d||!d.__CANCEL__)}},function(n,t,i){(function(d){var c=i(0),u=i(18),h={"Content-Type":"application/x-www-form-urlencoded"};function g(m,x){!c.isUndefined(m)&&c.isUndefined(m["Content-Type"])&&(m["Content-Type"]=x)}var _={adapter:(function(){var m;return(d!==void 0&&Object.prototype.toString.call(d)==="[object process]"||typeof XMLHttpRequest<"u")&&(m=i(6)),m})(),transformRequest:[function(m,x){return u(x,"Accept"),u(x,"Content-Type"),c.isFormData(m)||c.isArrayBuffer(m)||c.isBuffer(m)||c.isStream(m)||c.isFile(m)||c.isBlob(m)?m:c.isArrayBufferView(m)?m.buffer:c.isURLSearchParams(m)?(g(x,"application/x-www-form-urlencoded;charset=utf-8"),m.toString()):c.isObject(m)?(g(x,"application/json;charset=utf-8"),JSON.stringify(m)):m}],transformResponse:[function(m){if(typeof m=="string")try{m=JSON.parse(m)}catch{}return m}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(m){return m>=200&&m<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};c.forEach(["delete","get","head"],function(m){_.headers[m]={}}),c.forEach(["post","put","patch"],function(m){_.headers[m]=c.merge(h)}),n.exports=_}).call(this,i(17))},function(n,t,i){var d=i(0),c=i(19),u=i(3),h=i(21),g=i(22),_=i(7);n.exports=function(m){return new Promise(function(x,y){var v=m.data,b=m.headers;d.isFormData(v)&&delete b["Content-Type"];var C=new XMLHttpRequest;if(m.auth){var k=m.auth.username||"",L=m.auth.password||"";b.Authorization="Basic "+btoa(k+":"+L)}if(C.open(m.method.toUpperCase(),u(m.url,m.params,m.paramsSerializer),!0),C.timeout=m.timeout,C.onreadystatechange=function(){if(C&&C.readyState===4&&(C.status!==0||C.responseURL&&C.responseURL.indexOf("file:")===0)){var Y="getAllResponseHeaders"in C?h(C.getAllResponseHeaders()):null,P={data:m.responseType&&m.responseType!=="text"?C.response:C.responseText,status:C.status,statusText:C.statusText,headers:Y,config:m,request:C};c(x,y,P),C=null}},C.onabort=function(){C&&(y(_("Request aborted",m,"ECONNABORTED",C)),C=null)},C.onerror=function(){y(_("Network Error",m,null,C)),C=null},C.ontimeout=function(){y(_("timeout of "+m.timeout+"ms exceeded",m,"ECONNABORTED",C)),C=null},d.isStandardBrowserEnv()){var I=i(23),A=(m.withCredentials||g(m.url))&&m.xsrfCookieName?I.read(m.xsrfCookieName):void 0;A&&(b[m.xsrfHeaderName]=A)}if("setRequestHeader"in C&&d.forEach(b,function(Y,P){v===void 0&&P.toLowerCase()==="content-type"?delete b[P]:C.setRequestHeader(P,Y)}),m.withCredentials&&(C.withCredentials=!0),m.responseType)try{C.responseType=m.responseType}catch(Y){if(m.responseType!=="json")throw Y}typeof m.onDownloadProgress=="function"&&C.addEventListener("progress",m.onDownloadProgress),typeof m.onUploadProgress=="function"&&C.upload&&C.upload.addEventListener("progress",m.onUploadProgress),m.cancelToken&&m.cancelToken.promise.then(function(Y){C&&(C.abort(),y(Y),C=null)}),v===void 0&&(v=null),C.send(v)})}},function(n,t,i){var d=i(20);n.exports=function(c,u,h,g,_){var m=new Error(c);return d(m,u,h,g,_)}},function(n,t,i){var d=i(0);n.exports=function(c,u){u=u||{};var h={};return d.forEach(["url","method","params","data"],function(g){u[g]!==void 0&&(h[g]=u[g])}),d.forEach(["headers","auth","proxy"],function(g){d.isObject(u[g])?h[g]=d.deepMerge(c[g],u[g]):u[g]!==void 0?h[g]=u[g]:d.isObject(c[g])?h[g]=d.deepMerge(c[g]):c[g]!==void 0&&(h[g]=c[g])}),d.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(g){u[g]!==void 0?h[g]=u[g]:c[g]!==void 0&&(h[g]=c[g])}),h}},function(n,t,i){function d(c){this.message=c}d.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},d.prototype.__CANCEL__=!0,n.exports=d},function(n,t,i){n.exports=i(28)},function(n,t,i){var d=i(0),c=i(2),u=i(13),h=i(8);function g(m){var x=new u(m),y=c(u.prototype.request,x);return d.extend(y,u.prototype,x),d.extend(y,x),y}var _=g(i(5));_.Axios=u,_.create=function(m){return g(h(_.defaults,m))},_.Cancel=i(9),_.CancelToken=i(26),_.isCancel=i(4),_.all=function(m){return Promise.all(m)},_.spread=i(27),n.exports=_,n.exports.default=_},function(n,t){/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */n.exports=function(i){return i!=null&&i.constructor!=null&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}},function(n,t,i){var d=i(0),c=i(3),u=i(14),h=i(15),g=i(8);function _(m){this.defaults=m,this.interceptors={request:new u,response:new u}}_.prototype.request=function(m){typeof m=="string"?(m=arguments[1]||{}).url=arguments[0]:m=m||{},(m=g(this.defaults,m)).method=m.method?m.method.toLowerCase():"get";var x=[h,void 0],y=Promise.resolve(m);for(this.interceptors.request.forEach(function(v){x.unshift(v.fulfilled,v.rejected)}),this.interceptors.response.forEach(function(v){x.push(v.fulfilled,v.rejected)});x.length;)y=y.then(x.shift(),x.shift());return y},_.prototype.getUri=function(m){return m=g(this.defaults,m),c(m.url,m.params,m.paramsSerializer).replace(/^\?/,"")},d.forEach(["delete","get","head","options"],function(m){_.prototype[m]=function(x,y){return this.request(d.merge(y||{},{method:m,url:x}))}}),d.forEach(["post","put","patch"],function(m){_.prototype[m]=function(x,y,v){return this.request(d.merge(v||{},{method:m,url:x,data:y}))}}),n.exports=_},function(n,t,i){var d=i(0);function c(){this.handlers=[]}c.prototype.use=function(u,h){return this.handlers.push({fulfilled:u,rejected:h}),this.handlers.length-1},c.prototype.eject=function(u){this.handlers[u]&&(this.handlers[u]=null)},c.prototype.forEach=function(u){d.forEach(this.handlers,function(h){h!==null&&u(h)})},n.exports=c},function(n,t,i){var d=i(0),c=i(16),u=i(4),h=i(5),g=i(24),_=i(25);function m(x){x.cancelToken&&x.cancelToken.throwIfRequested()}n.exports=function(x){return m(x),x.baseURL&&!g(x.url)&&(x.url=_(x.baseURL,x.url)),x.headers=x.headers||{},x.data=c(x.data,x.headers,x.transformRequest),x.headers=d.merge(x.headers.common||{},x.headers[x.method]||{},x.headers||{}),d.forEach(["delete","get","head","post","put","patch","common"],function(y){delete x.headers[y]}),(x.adapter||h.adapter)(x).then(function(y){return m(x),y.data=c(y.data,y.headers,x.transformResponse),y},function(y){return u(y)||(m(x),y&&y.response&&(y.response.data=c(y.response.data,y.response.headers,x.transformResponse))),Promise.reject(y)})}},function(n,t,i){var d=i(0);n.exports=function(c,u,h){return d.forEach(h,function(g){c=g(c,u)}),c}},function(n,t){var i,d,c=n.exports={};function u(){throw new Error("setTimeout has not been defined")}function h(){throw new Error("clearTimeout has not been defined")}function g(L){if(i===setTimeout)return setTimeout(L,0);if((i===u||!i)&&setTimeout)return i=setTimeout,setTimeout(L,0);try{return i(L,0)}catch{try{return i.call(null,L,0)}catch{return i.call(this,L,0)}}}(function(){try{i=typeof setTimeout=="function"?setTimeout:u}catch{i=u}try{d=typeof clearTimeout=="function"?clearTimeout:h}catch{d=h}})();var _,m=[],x=!1,y=-1;function v(){x&&_&&(x=!1,_.length?m=_.concat(m):y=-1,m.length&&b())}function b(){if(!x){var L=g(v);x=!0;for(var I=m.length;I;){for(_=m,m=[];++y<I;)_&&_[y].run();y=-1,I=m.length}_=null,x=!1,(function(A){if(d===clearTimeout)return clearTimeout(A);if((d===h||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(A);try{d(A)}catch{try{return d.call(null,A)}catch{return d.call(this,A)}}})(L)}}function C(L,I){this.fun=L,this.array=I}function k(){}c.nextTick=function(L){var I=new Array(arguments.length-1);if(arguments.length>1)for(var A=1;A<arguments.length;A++)I[A-1]=arguments[A];m.push(new C(L,I)),m.length!==1||x||g(b)},C.prototype.run=function(){this.fun.apply(null,this.array)},c.title="browser",c.browser=!0,c.env={},c.argv=[],c.version="",c.versions={},c.on=k,c.addListener=k,c.once=k,c.off=k,c.removeListener=k,c.removeAllListeners=k,c.emit=k,c.prependListener=k,c.prependOnceListener=k,c.listeners=function(L){return[]},c.binding=function(L){throw new Error("process.binding is not supported")},c.cwd=function(){return"/"},c.chdir=function(L){throw new Error("process.chdir is not supported")},c.umask=function(){return 0}},function(n,t,i){var d=i(0);n.exports=function(c,u){d.forEach(c,function(h,g){g!==u&&g.toUpperCase()===u.toUpperCase()&&(c[u]=h,delete c[g])})}},function(n,t,i){var d=i(7);n.exports=function(c,u,h){var g=h.config.validateStatus;!g||g(h.status)?c(h):u(d("Request failed with status code "+h.status,h.config,null,h.request,h))}},function(n,t,i){n.exports=function(d,c,u,h,g){return d.config=c,u&&(d.code=u),d.request=h,d.response=g,d.isAxiosError=!0,d.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},d}},function(n,t,i){var d=i(0),c=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];n.exports=function(u){var h,g,_,m={};return u&&d.forEach(u.split(`
`),function(x){if(_=x.indexOf(":"),h=d.trim(x.substr(0,_)).toLowerCase(),g=d.trim(x.substr(_+1)),h){if(m[h]&&c.indexOf(h)>=0)return;m[h]=h==="set-cookie"?(m[h]?m[h]:[]).concat([g]):m[h]?m[h]+", "+g:g}}),m}},function(n,t,i){var d=i(0);n.exports=d.isStandardBrowserEnv()?(function(){var c,u=/(msie|trident)/i.test(navigator.userAgent),h=document.createElement("a");function g(_){var m=_;return u&&(h.setAttribute("href",m),m=h.href),h.setAttribute("href",m),{href:h.href,protocol:h.protocol?h.protocol.replace(/:$/,""):"",host:h.host,search:h.search?h.search.replace(/^\?/,""):"",hash:h.hash?h.hash.replace(/^#/,""):"",hostname:h.hostname,port:h.port,pathname:h.pathname.charAt(0)==="/"?h.pathname:"/"+h.pathname}}return c=g(window.location.href),function(_){var m=d.isString(_)?g(_):_;return m.protocol===c.protocol&&m.host===c.host}})():function(){return!0}},function(n,t,i){var d=i(0);n.exports=d.isStandardBrowserEnv()?{write:function(c,u,h,g,_,m){var x=[];x.push(c+"="+encodeURIComponent(u)),d.isNumber(h)&&x.push("expires="+new Date(h).toGMTString()),d.isString(g)&&x.push("path="+g),d.isString(_)&&x.push("domain="+_),m===!0&&x.push("secure"),document.cookie=x.join("; ")},read:function(c){var u=document.cookie.match(new RegExp("(^|;\\s*)("+c+")=([^;]*)"));return u?decodeURIComponent(u[3]):null},remove:function(c){this.write(c,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(n,t,i){n.exports=function(d){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(d)}},function(n,t,i){n.exports=function(d,c){return c?d.replace(/\/+$/,"")+"/"+c.replace(/^\/+/,""):d}},function(n,t,i){var d=i(9);function c(u){if(typeof u!="function")throw new TypeError("executor must be a function.");var h;this.promise=new Promise(function(_){h=_});var g=this;u(function(_){g.reason||(g.reason=new d(_),h(g.reason))})}c.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},c.source=function(){var u;return{token:new c(function(h){u=h}),cancel:u}},n.exports=c},function(n,t,i){n.exports=function(d){return function(c){return d.apply(null,c)}}},function(n,t,i){i.r(t);var d=i(1),c=i.n(d),u=(function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,k){C.__proto__=k}||function(C,k){for(var L in k)k.hasOwnProperty(L)&&(C[L]=k[L])};return function(C,k){function L(){this.constructor=C}b(C,k),C.prototype=k===null?Object.create(k):(L.prototype=k.prototype,new L)}})(),h=function(b,C,k,L){return new(k||(k=Promise))(function(I,A){function Y(F){try{T(L.next(F))}catch(H){A(H)}}function P(F){try{T(L.throw(F))}catch(H){A(H)}}function T(F){F.done?I(F.value):new k(function(H){H(F.value)}).then(Y,P)}T((L=L.apply(b,[])).next())})},g=function(b,C){var k,L,I,A,Y={label:0,sent:function(){if(1&I[0])throw I[1];return I[1]},trys:[],ops:[]};return A={next:P(0),throw:P(1),return:P(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function P(T){return function(F){return(function(H){if(k)throw new TypeError("Generator is already executing.");for(;Y;)try{if(k=1,L&&(I=2&H[0]?L.return:H[0]?L.throw||((I=L.return)&&I.call(L),0):L.next)&&!(I=I.call(L,H[1])).done)return I;switch(L=0,I&&(H=[2&H[0],I.value]),H[0]){case 0:case 1:I=H;break;case 4:return Y.label++,{value:H[1],done:!1};case 5:Y.label++,L=H[1],H=[0];continue;case 7:H=Y.ops.pop(),Y.trys.pop();continue;default:if(!(I=(I=Y.trys).length>0&&I[I.length-1])&&(H[0]===6||H[0]===2)){Y=0;continue}if(H[0]===3&&(!I||H[1]>I[0]&&H[1]<I[3])){Y.label=H[1];break}if(H[0]===6&&Y.label<I[1]){Y.label=I[1],I=H;break}if(I&&Y.label<I[2]){Y.label=I[2],Y.ops.push(H);break}I[2]&&Y.ops.pop(),Y.trys.pop();continue}H=C.call(b,Y)}catch(W){H=[6,W],L=0}finally{k=I=0}if(5&H[0])throw H[1];return{value:H[0]?H[1]:void 0,done:!0}})([T,F])}}},_=(function(){function b(){var C=localStorage.getItem("pintraTokenCache");C&&(b.tokens=JSON.parse(C))}return b.clearTokenCache=function(){localStorage.removeItem("pintraTokenCache"),b.tokens=[]},b.getToken=function(C,k){return h(this,void 0,void 0,function(){var L,I,A,Y,P,T,F,H,W,K,Z;return g(this,function(Q){switch(Q.label){case 0:for(b.instance==null&&(b.instance=new b),L=0,I=b.tokens;L<I.length;L++)if((H=I[L]).name==C.name&&H.expires>Date.now())return console.info("INFO: Getting cached token"),[2,H];(A=new FormData).append("action","get_tokencache"),A.append("resource",C.resource),A.append("nonce",k.nonce),Q.label=1;case 1:return Q.trys.push([1,3,,4]),[4,c.a.post(k.wpAjaxAdminUrl,A)];case 2:return Y=Q.sent(),[3,4];case 3:return P=Q.sent(),(T=new m(P.message)).data={status:"NOK",error_codes:"-1",message:P.message,result:null},[2,T];case 4:if(console.info(Y),Y.status==200){if(Y.data.status=="OK"){for(F=JSON.parse(Y.data.result),H={name:C.name,expires:1e3*parseInt(F.expiry),bearer:F.accessToken},W=b.tokens.length-1;W>=0;W--)b.tokens[W].name==C.name&&b.tokens.splice(W,1);return b.tokens.push(H),localStorage.setItem("pintraTokenCache",JSON.stringify(b.tokens)),[2,H]}return(K=new m(Y.data.message)).data=Y.data,[2,K]}return(Z=new m("Response status: "+Y.status)).data={status:"NOK",error_codes:"-1",message:"Unknown error occurred",result:null},[2,Z]}})})},b.getTokenV2=function(C,k){return h(this,void 0,void 0,function(){var L,I,A,Y,P,T,F,H,W,K,Z;return g(this,function(Q){switch(Q.label){case 0:for(b.instance==null&&(b.instance=new b),L=0,I=b.tokens;L<I.length;L++)if((H=I[L]).name==C.name&&H.expires>Date.now())return console.info("INFO: Getting cached token"),[2,H];(A=new FormData).append("action","get_tokencache"),A.append("scope",C.scope),A.append("nonce",k.nonce),Q.label=1;case 1:return Q.trys.push([1,3,,4]),[4,c.a.post(k.wpAjaxAdminUrl,A)];case 2:return Y=Q.sent(),[3,4];case 3:return P=Q.sent(),(T=new m(P.message)).data={status:"NOK",error_codes:"-1",message:P.message,result:null},[2,T];case 4:if(console.info(Y),Y.status==200){if(Y.data.status=="OK"){for(F=JSON.parse(Y.data.result),H={name:C.name,expires:1e3*parseInt(F.expiry),bearer:F.accessToken},W=b.tokens.length-1;W>=0;W--)b.tokens[W].name==C.name&&b.tokens.splice(W,1);return b.tokens.push(H),localStorage.setItem("pintraTokenCache",JSON.stringify(b.tokens)),[2,H]}return(K=new m(Y.data.message)).data=Y.data,[2,K]}return(Z=new m("Response status: "+Y.status)).data={status:"NOK",error_codes:"-1",message:"Unknown error occurred",result:null},[2,Z]}})})},b.tokens=[],b.instance=null,b})(),m=(function(b){function C(k){var L=b.call(this,k)||this;return Object.setPrototypeOf(L,C.prototype),L}return u(C,b),C})(Error),x=(function(){function b(C,k){this.name=C,this.resource=k}return b.prototype.toString=function(){return this.name+","+this.resource},b})(),y=(function(){function b(C,k){this.name=C,this.scope=k}return b.prototype.toString=function(){return this.name+","+this.scope},b})(),v=(function(){function b(){}return b.getReactDomConfig=function(){var C=document.getElementsByTagName("script"),k=C[C.length-1],L=k.getAttribute("src"),I="";L&&(I=""+L.substr(0,L.lastIndexOf("/")+1));var A=document.createElement("div"),Y=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5);return A.setAttribute("id",Y),k.parentNode.appendChild(A),{rootId:Y,env:{nonce:k.getAttribute("data-nonce"),wpAjaxAdminUrl:k.getAttribute("data-wpajaxadminurl"),scriptContextUrl:I,props:k.getAttribute("data-props")?JSON.parse(k.getAttribute("data-props")):{}}}},b})();i.d(t,"TokenCache",function(){return _}),i.d(t,"TokenRequest",function(){return x}),i.d(t,"TokenRequestV2",function(){return y}),i.d(t,"TokenRequestError",function(){return m}),i.d(t,"AppLauncher",function(){return v})}])})})(ny)),ny.exports}var eh=OT();const YT="_wpo365WzIconButton_p7p1e_47",WT="_wpo365WzSectionButton_p7p1e_56",BT="_wpo365WzRowifier_p7p1e_67",HT="_wpo365WzColumnifier_p7p1e_81",zT="_wpo365WzPage_p7p1e_96",UT="_wpo365WzP_p7p1e_96",VT="_wpo365WzLabelFor_p7p1e_111",GT="_wpo365WzCheckbox_p7p1e_127",$T="_wpo365WzSupportMenuRowifier_p7p1e_131",KT="_wpo365WzPageTitle_p7p1e_150",qT="_wpo365WzHidePremiumOptionsToggle_p7p1e_156",JT="_wpo365WzError_p7p1e_159",ZT="_wpo365WzMain_p7p1e_162",XT="_wpo365WzTable_p7p1e_170",QT="_wpo365WzSectionTitle_p7p1e_183",eA="_wpo365WzTextArea_p7p1e_191",tA="_jsonEditor_p7p1e_197",nA="_jsonTextArea_p7p1e_211",rA="_jsonErrorNotice_p7p1e_215",sA="_jsonInfoNotice_p7p1e_218",oA="_toolbarItem_p7p1e_222",iA="_selfTest_p7p1e_229",aA="_passed_p7p1e_242",lA="_failed_p7p1e_245",dA="_subText_p7p1e_248",cA="_title_p7p1e_253",uA="_header_p7p1e_259",pA="_modal_p7p1e_265",hA="_deprecated_p7p1e_286",mA="_borderedContent_p7p1e_291",fA="_content_p7p1e_308",gA="_wpo365WzUserSyncJobEditorContainer_p7p1e_312",_A="_wpo365WzModalContainer_p7p1e_319",yA="_wpo365WzModalContainerScrollable_p7p1e_326",wA="_wpo365WzConstrainedResultsList_p7p1e_330",vA="_wpo365Badge_p7p1e_439",xA="_wpo365LastMessage_p7p1e_439",bA="___error_p7p1e_448",SA="___info_p7p1e_452",CA="___warning_p7p1e_456",kA="___success_p7p1e_460",MA="_wpo365TextSmall_p7p1e_468",jA="_wpo365InfoBox_p7p1e_473",LA="_wpo365InfoBoxIcon_p7p1e_477",EA="_wpo365AppsTab_p7p1e_490",DA="_wpo365AppsHeading_p7p1e_490",IA="_wpo365YourApps_p7p1e_499",TA="_wpo365AppPreview_p7p1e_503",AA="_wpo365AppPreviewMenu_p7p1e_507",PA="_wpo365AppsCatalog_p7p1e_517",RA="_wpo365AppsCatalogItem_p7p1e_520",FA="_wpo365AppsIcon_p7p1e_525",NA="_wpo365AppsDisplayName_p7p1e_532",OA="_wpo365AppsTable_p7p1e_535",YA="_wpo365AppsTableIcon_p7p1e_549",WA="_wpo365AppsShortcode_p7p1e_556",j={wpo365WzIconButton:YT,wpo365WzSectionButton:WT,wpo365WzRowifier:BT,wpo365WzColumnifier:HT,wpo365WzPage:zT,wpo365WzP:UT,wpo365WzLabelFor:VT,wpo365WzCheckbox:GT,wpo365WzSupportMenuRowifier:$T,wpo365WzPageTitle:KT,wpo365WzHidePremiumOptionsToggle:qT,wpo365WzError:JT,wpo365WzMain:ZT,wpo365WzTable:XT,wpo365WzSectionTitle:QT,wpo365WzTextArea:eA,jsonEditor:tA,jsonTextArea:nA,jsonErrorNotice:rA,jsonInfoNotice:sA,toolbarItem:oA,selfTest:iA,passed:aA,failed:lA,subText:dA,title:cA,header:uA,modal:pA,deprecated:hA,borderedContent:mA,content:fA,wpo365WzUserSyncJobEditorContainer:gA,wpo365WzModalContainer:_A,wpo365WzModalContainerScrollable:yA,wpo365WzConstrainedResultsList:wA,"wpo365-mssignin-wrapper":"_wpo365-mssignin-wrapper_p7p1e_335","wpo365-mssignin-spacearound":"_wpo365-mssignin-spacearound_p7p1e_355","wpo365-mssignin-select":"_wpo365-mssignin-select_p7p1e_362","wpo365-mssignin-button":"_wpo365-mssignin-button_p7p1e_371","wpo365-mssignin-button-zoom":"_wpo365-mssignin-button-zoom_p7p1e_372","wpo365-mssignin-logo":"_wpo365-mssignin-logo_p7p1e_402","wpo365-mssignin-label":"_wpo365-mssignin-label_p7p1e_423",wpo365Badge:vA,wpo365LastMessage:xA,__error:bA,__info:SA,__warning:CA,__success:kA,wpo365TextSmall:MA,wpo365InfoBox:jA,wpo365InfoBoxIcon:LA,wpo365AppsTab:EA,wpo365AppsHeading:DA,wpo365YourApps:IA,wpo365AppPreview:TA,wpo365AppPreviewMenu:AA,wpo365AppsCatalog:PA,wpo365AppsCatalogItem:RA,wpo365AppsIcon:FA,wpo365AppsDisplayName:NA,wpo365AppsTable:OA,wpo365AppsTableIcon:YA,wpo365AppsShortcode:WA};class BA extends E.Component{constructor(o){super(o),this.state={deleting:!1,errorInfo:void 0,errorMessage:void 0,hasError:!1,lastError:void 0,settingsDeleted:!1}}static getDerivedStateFromError(o){return{deleting:!1,errorInfo:void 0,errorMessage:void 0,hasError:!0,lastError:void 0,settingsDeleted:!1}}componentDidCatch(o,n){console.log(`The following error was caught by the Wizard.ErrorBoundary [${o.message}].`),console.debug(`Error caught [${JSON.stringify(n)}].`),this.setState({errorInfo:n,errorMessage:o.message})}render(){return this.state.hasError?e.jsxs(e.Fragment,{children:[e.jsx("h1",{children:"Oops, fatal error occurred"}),e.jsxs("p",{children:["The WPO365 plugin's wizard encountered the following fatal error: ",e.jsx("strong",{children:this.state.errorMessage})]}),e.jsx("p",{children:"If you believe this error may be the result of malformed settings then you can choose to delete the current settings by clicking the button below."}),e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx(et,{onClick:()=>this.deleteSettings(),children:"Delete settings"})," ",this.state.deleting&&e.jsx(Oe,{size:Te.small})]}),e.jsxs("p",{children:["Sorry for any inconvenience and please feel free to report this error to ",e.jsx("a",{href:"mailto:support@wpo365.com",children:"support@wpo365.com"})," ","(please include a screenshot)."]}),e.jsx("p",{children:e.jsx("strong",{children:"Error details"})}),e.jsx("p",{children:JSON.stringify(this.state.errorInfo)}),e.jsxs("p",{children:["- Marco van Wieren | Downloads by van Wieren | ",e.jsx("a",{href:"https://www.wpo365.com/",children:"https://www.wpo365.com/"})]})]}):this.props.children}deleteSettings=async()=>{const{env:o}=this.props;this.setState({deleting:!0,lastError:void 0,settingsDeleted:!1}),eh.TokenCache.clearTokenCache();const n=new FormData;n.append("action","wpo365_delete_settings"),n.append("nonce",o.nonce),n.append("ina",window.wpo365.wizard.props.ina);let t;try{t=await Ee.post(o.wpAjaxAdminUrl,n)}catch(i){this.setState({deleting:!1,lastError:`Failed to delete settings [${i.message}].`});return}if(t.status==200&&t.data&&t.data.status&&t.data.status=="OK"){this.setState({deleting:!1,settingsDeleted:!0}),window.location.reload();return}this.setState({deleting:!1,lastError:"Unknown error occurred [server did not report success]"})}}var l=(s=>(s.mailIntegration="mailIntegration",s.wpo365Essentials="wpo365Essentials",s.wpo365Apps="wpo365Apps",s.wpo365Avatar="wpo365Avatar",s.wpo365Customers="wpo365Customers",s.wpo365CustomFields="wpo365CustomFields",s.wpo365Groups="wpo365Groups",s.wpo365Intranet5y="wpo365Intranet5y",s.wpo365Login="wpo365Login",s.wpo365LoginIntranet="wpo365LoginIntranet",s.wpo365LoginPlus="wpo365LoginPlus",s.wpo365LoginPremium="wpo365LoginPremium",s.wpo365LoginProfessional="wpo365LoginProfessional",s.wpo365Mail="wpo365Mail",s.wpo365MsGraphMailer="wpo365MsGraphMailer",s.wpo365RolesAccess="wpo365RolesAccess",s.wpo365Scim="wpo365Scim",s.wpo365Sync5y="wpo365Sync5y",s.wpo365Integrate="wpo365Integrate",s.wpo365Pro="wpo365Pro",s))(l||{}),Tp=(s=>(s.mailIntegration="mail_integration_365/mail_integration_365.php",s.wpo365Essentials="wpo365-essentials/wpo365-essentials.php",s.wpo365Apps="wpo365-apps/wpo365-apps.php",s.wpo365Avatar="wpo365-avatar/wpo365-avatar.php",s.wpo365Customers="wpo365-customers/wpo365-customers.php",s.wpo365CustomFields="wpo365-custom-fields/wpo365-custom-fields.php",s.wpo365Groups="wpo365-groups/wpo365-groups.php",s.wpo365Integrate="wpo365-integrate/wpo365-integrate.php",s.wpo365Intranet5y="wpo365-intranet-5y/wpo365-intranet-5y.php",s.wpo365Login="wpo365-login/wpo365-login.php",s.wpo365LoginIntranet="wpo365-login-intranet/wpo365-login.php",s.wpo365LoginPlus="wpo365-login-plus/wpo365-login.php",s.wpo365LoginPremium="wpo365-login-premium/wpo365-login.php",s.wpo365LoginProfessional="wpo365-login-professional/wpo365-login.php",s.wpo365Mail="wpo365-mail/wpo365-mail.php",s.wpo365MsGraphMailer="wpo365-msgraphmailer/wpo365-msgraphmailer.php",s.wpo365Pro="wpo365-pro/wpo365-pro.php",s.wpo365RolesAccess="wpo365-roles-access/wpo365-roles-access.php",s.wpo365Scim="wpo365-scim/wpo365-scim.php",s.wpo365Sync5y="wpo365-sync-5y/wpo365-sync-5y.php",s))(Tp||{});const Op={wpo365Essentials:{name:"ESSENTIALS",url:"https://www.wpo365.com/downloads/wpo365-essentials/"},wpo365Apps:{name:"M365 APPS",url:"https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/"},wpo365Avatar:{name:"AVATAR",url:"https://www.wpo365.com/downloads/wpo365-avatar/"},wpo365Customers:{name:"CUSTOMERS",url:"https://www.wpo365.com/downloads/wpo365-customers/"},wpo365CustomFields:{name:"CUSTOM USER FIELDS",url:"https://www.wpo365.com/downloads/wpo365-custom-user-fields/"},wpo365Groups:{name:"(itthinx) GROUPS",url:"https://www.wpo365.com/downloads/wpo365-groups/"},wpo365Login:{name:"LOGIN",url:"https://wordpress.org/plugins/wpo365-login/"},wpo365LoginIntranet:{name:"INTRANET",url:"https://www.wpo365.com/downloads/wordpress-office-365-login-intranet/"},wpo365LoginPlus:{name:"PROFILE+",url:"https://www.wpo365.com/downloads/wordpress-office-365-login-plus/"},wpo365LoginPremium:{name:"SYNC",url:"https://www.wpo365.com/downloads/wordpress-office-365-login-premium/"},wpo365LoginProfessional:{name:"LOGIN+",url:"https://www.wpo365.com/downloads/wordpress-office-365-login-professional/"},wpo365Mail:{name:"MAIL",url:"https://www.wpo365.com/downloads/wpo365-mail/"},wpo365RolesAccess:{name:"ROLES + ACCESS",url:"https://www.wpo365.com/downloads/wpo365-roles-access/"},wpo365Scim:{name:"SCIM",url:"https://www.wpo365.com/downloads/wpo365-scim/"},wpo365Sync5y:{name:"SYNC | 5Y",url:"https://www.wpo365.com/downloads/wordpress-office-365-login-premium-5y/"},wpo365Intranet5y:{name:"INTRANET | 5Y",url:"https://www.wpo365.com/downloads/wordpress-office-365-login-intranet-5y/"},wpo365Integrate:{name:"INTEGRATE",url:"https://www.wpo365.com/downloads/wpo365-integrate/"},wpo365Pro:{name:"PROFESSIONAL",url:"https://www.wpo365.com/downloads/wpo365-professional/"}};var Xb=(s=>(s.current="current",s.beta="beta",s))(Xb||{}),pd=(s=>(s.locally="locally",s.remotely="remotely",s.both="both",s))(pd||{}),Gr=(s=>(s.internet="internet",s.intranet="intranet",s.internetAuthOnly="internetAuthOnly",s.intranetAuthOnly="intranetAuthOnly",s))(Gr||{}),qr=(s=>(s.graph="graph",s.idToken="idToken",s.samlResponse="samlResponse",s.scim="scim",s))(qr||{}),Qb=(s=>(s.replace="replace",s.add="add",s.skip="skip",s))(Qb||{}),Va=(s=>(s[s.initial=0]="initial",s[s.error=1]="error",s[s.success=2]="success",s))(Va||{}),Wo=(s=>(s[s.initial=0]="initial",s[s.testing=1]="testing",s[s.tested=2]="tested",s[s.error=3]="error",s[s.success=4]="success",s))(Wo||{}),we=(s=>(s[s.initial=0]="initial",s[s.saving=1]="saving",s[s.saved=2]="saved",s[s.error=3]="error",s[s.success=4]="success",s))(we||{}),je=(s=>(s.apps="apps",s.calendarConfigurator="calendarConfigurator",s.cbsConfigurator="cbsConfigurator",s.dashboard="dashboard",s.debug="debug",s.listConfigurator="listConfigurator",s.edConfigurator="edConfigurator",s.errors="errors",s.importExport="importExport",s.insights="insights",s.integration="integration",s.loginLogout="loginLogout",s.mail="mail",s.mailLogViewer="mailLogViewer",s.miscellaneous="miscellaneous",s.pbiConfigurator="pbiConfigurator",s.rolesAccess="rolesAccess",s.selfTest="selfTest",s.singleSignOn="singleSignOn",s.translations="translations",s.userRegistration="userRegistration",s.userSync="userSync",s.yammer="yammer",s))(je||{}),Yp=(s=>(s.signedInWithMicrosoft="signedInWithMicrosoft",s.signedIn="signedIn",s.anonymous="anonymous",s))(Yp||{}),kr=(s=>(s.hybrid="hybrid",s.code="code",s))(kr||{}),Jf=(s=>(s.form_post="form_post",s.query="query",s))(Jf||{}),od=(s=>(s.displayName="displayName",s.givenNameSurname="givenNameSurname",s.skip="skip",s.surnameGivenName="surnameGivenName",s.surnameGivenNameNoComma="surnameGivenNameNoComma",s))(od||{}),er=(s=>(s.application="application",s.auto="auto",s.delegated="delegated",s.personal="personal",s.rbac="rbac",s))(er||{});class Lr extends Error{errorFor;errorCode;constructor(o,n,t){super(n),this.errorFor=o,this.errorCode=t}}const me={empty:"",errDirectoryIdMustBeGuid:"Directory ID must be a valid GUID.",errApplicationIdMustBeGuid:"Application ID must be a valid GUID.",errAadSGroupIdMustBeGuid:"Entra ID Group ID must be a valid GUID.",errSessionDurationMustBeNumeric:"Session duration must a number.",errAvatarUpdatedMustBeNumeric:"Avatar updated must a number.",errRedirectUriMustBeUrl:"Redirect URI must be a valid URL and start with http:// or https:// and end with a trailing slash.",errProxyEndpoint:"A proxy-type request must start with https://",errDomainHintCannotStartWith:"Domain hint cannot start with http.",errCustomDomainCannotStartWith:"A Custom Domain cannot start with http",errAuthenticationTestFailed:"Popup window should close automatically.",errGotoAfterSignonUrlMustStartWith:"Goto after sign-on URL must start with http.",errErrorPageUrlMustStartWith:"Error Page URL must start with http(s).",errCustomLoginUrlMustStartWith:"Custom Login Page URL must start with http(s).",errLoadingTemplateUrlMustStartWith:"URL must be relative, start with / and end with .html",errWelcomePageUrlMustStartWith:"Welcome Page URL must start with http(s).",errPostSignoutUrlMustStartWith:"Goto after sign-on URL must start with http.",errGroupsXGotoAfterKey:"Entra ID Group ID must be a valid GUID",errGroupsXGotoAfterValue:"Goto after login must start with http:// or https://",errAppOnlyApplicationIdMustBeGuid:"Application ID must be a valid GUID.",errMustBeUrl:"Must be a valid URL and start with http:// or https://",errMustBeWithoutDots:"Only enter the first domain segment without .onmicrosoft.com",errMustNotBeEmptyOrContainWhitespace:"Cannot be empty or contain white spaces",okSettingsUpdated:"Configuration saved successfully.",okTokensDeleted:"Deleted all access and refresh tokens.",errLeewayMustBeNumeric:"Leeway must be a number",errPasswordLengthMustBeNumeric:"Password length must be a number",errMustBeValidEmail:"Input must be a valid email address",infoAiInstrumentationKey:"e.g. 9eb73a5a-92e5-409c-b421-8bf8f91ff2d7",infoDirectoryId:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",infoApplicationId:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",infoProxyEndpoint:"e.g. https://graph.microsoft.com/v1.0/users",infoRedirectUri:"e.g. https://www.mycompany.com/",infoDomainHint:"e.g. mycompany.com",infoSessionDuration:"e.g. 3480",infoAvatarUpdated:"e.g. 259200",infoCustomDomain:"e.g. mycompany.com",infoWordPressRole:"WP Role",infoLeeway:"e.g. 300",infoPasswordLength:"e.g. 16",infoMailFrom:"e.g. john.doe@example.com",infoTestMailTo:"e.g. john.doe@example.com",infoUserMatchOrder:"e.g. oid, upn, preferred_username, email",infoGotoAfterSignonUrl:"e.g. https://www.mycompany.com/",infoErrorPageUrl:"e.g. https://www.mycompany.com/login-error/",infoCustomLoginUrl:"e.g. https://www.mycompany.com/login/",infoLoadingTemplateUrl:"e.g. /wp-content/uploads/2020/10/loading-template.html",infoGroupsXGotoAfterKey:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",infoGroupsXGotoAfterValue:"e.g. https://subsite.mycompany.com/",infoPostSignoutUrl:"e.g. https://www.wpo365.com/",infoExtraUserFieldsKey:"Graph property e.g. jobTitle",infoScimAttributeMappingsKey:'SCIM property path e.g. phoneNumbers[type eq "mobile"].value',infoScimAttributeMappingsValue:"Entra ID property name e.g. mobilePhone",infoNewUserMailSubject:"e.g. [__##BLOG_NAME##__] New user registration",infoNewUserMailTitle:"e.g. NEW USER REGISTRATION",infoNewUserMailSalutation:"e.g. Dear __##USER_DISPLAY_NAME##__",infoAppOnlyApplicationId:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",infoUrl:"e.g. https://www.mycompany.com/",infoB2cDomainName:"e.g. wpo365connect",infoB2cPolicyName:"e.g. B2C_1_signup_signin_1",wpoErrorCheckLog:"Please contact your System Administrator and check log file.",wpoErrorDeactivated:"Account deactivated.",wpoErrorNotConfigured:"SSO integration with Microsoft is not configured yet. Please contact your System Administrator.",wpoErrorNotInGroup:"User not in group. Please contact your System Administrator.",wpoErrorTamperedWith:"Your login might be tampered with. Please contact your System Administrator.",wpoErrorNonceExpired:"Your login attempt has expired. Please try again.",wpoErrorUserNotFound:"Could not create or retrieve your login. Please contact your System Administrator.",wpoErrorIdTokenError:"Your ID token could not be processed. Please contact your System Administrator.",wpoErrorIdTokenAud:"The ID token is intended for a different audience. Please contact your System Administrator.",wpoErrorDualLogin:'Alternatively, you can click the following link to sign into this website with your corporate <a href="__##OAUTH_URL##__">network login (Microsoft 365)</a>',wpoErrorDualLoginV2:'Alternatively, you can click the following link to sign into this website with your corporate <span class="wpo365-dual-login-notice" style="cursor: pointer; text-decoration: underline; color: #000CD" onclick="window.wpo365.pintraRedirect.toMsOnline()">network login (Microsoft 365)</span>',wpoErrorLoggedOut:"You are now logged out.",wpoErrorPrivatePage:"The page you requested requires you to sign in first.",wpoErrorNotFromDomain:"Access Denied. Please contact your System Administrator.",wpoErrorSaml2Error:"SAML authentication error.",wpoErrorNoIdpSelected:"Please select an Identity Provider from the list below to sign in to the website.",wpoTitleM365ProfileInfo:"Microsoft 365 Profile Information",capCopyShortcodeButton:"Copy shortcode to clipboard",capCopyShortcodeButtonSuccess:"Shortcode copied to clipboard!",capCancelButton:"Cancel",titleUseSaml:"Important",subTextUseSaml:`The default implemenation of the WPO365 plugin relies on the <strong>OpenID Connect</strong> 
    protocol for single sign-on. For various reasons (see <a target="_blank" 
    href="https://learn.microsoft.com/en-us/entra/identity-platform/authentication-vs-authorization">this article</a>)
    companies may decide to use <strong>SAML 2.0</strong> instead.<br><br>Please consult the 
    <a target="_blank" href="https://docs.wpo365.com/article/100-configure-single-sign-on-with-saml-2-0">online 
    documentation</a> for pros and cons of using the WPO365 implemenation of <strong>SAML 2.0</strong>.  
    Most importantly, when using <strong>SAML 2.0</strong> for single sign-on, the WPO365 plugin does 
    not support retrieving personal access tokens for a user. However, many functions such as retrieving a user
    profile image, additional user profile field and user synchronization also will work as expected when
    you configure <a target="_blank" href="https://tutorials.wpo365.com/courses/integration-application-permissions/">app-only permissions</a>.`,titleUseB2c:"Important",subTextUseB2c:`If you are in doubt whether you should select Entra ID (default) or AAD B2C / Entra External ID (AAD for Customers) then select Entra ID. 
    For those interested in AAD B2C / Entra Exteral ID (AAD for Customers) please consult the <a href="https://docs.wpo365.com/article/130-azure-ad-b2c-based-single-sign-on-for-wordpress" 
    target="_blank">corresponding configuration guide</a>. Others are recommended to follow the steps provided in the <a href="https://docs.wpo365.com/article/154-aad-single-sign-for-wordpress-using-auth-code-flow" 
    target="_blank">default guide to configure SSO</a>.`,titleUseGcc:"Important",subTextUseGcc:'Selecting Government GCC (High) will change the TLD for most endpoints addressed by WPO365 from ".com" to ".us" (see <a href="https://learn.microsoft.com/en-us/microsoft-365/enterprise/microsoft-365-u-s-government-gcc-high-endpoints?view=o365-worldwide" target="_blank">Microsoft 365 U.S. Government GCC High endpoints</a>).',titleBeforeSave:"Important",subTextBeforeSaveIntranet:`Depending on your WordPress hosting setup you may need to manually 
    purge the (server-side) cache  for changed settings to take effect immediately!
    <br/><br/>As soon as you click <strong>Confirm</strong> the <a target="_blank" 
    href="#selfTest">Plugin self-test</a> page will load. To test your configuration click <em>Start 
    self-test</em>. The plugin may ask you to sign in with Microsoft (if you haven't done so already).`,subTextBeforeSaveInternet:`Depending on your WordPress hosting setup you may need to manually 
    purge the (server-side) cache  for changed settings to take effect immediately!
    <br/><br/>As soon as you click <strong>Confirm</strong> the <a target="_blank" 
    href="#selfTest">Plugin self-test</a> page will load. To test your configuration click <em>Start 
    self-test</em>. The plugin may ask you to sign in with Microsoft (if you haven't done so already).`,titleUseAvatar:"Important",subTextUseAvatar:`When checking <strong>Use O365 Avatar</strong>, you also must configure 
    the <strong>Custom domains</strong> option on the <strong>
    User registration</strong> tab or else the plugin is not able to identify users that belong to your
    tenant (and hence it cannot decide whether or not it should retrieve a user's O365 profile image).`,titleAddUserSyncJob:"Important",subTextAddUserSyncJob:`Please note that when you configure more than one job to synchronize users,
    the plugin will skip the (soft) deletion of WordPress users.`,titleUseBpAvatar:"Important",subTextUseBpAvatar:`When checking <strong>Use O365 Avatar (Buddy Press)</strong>, you also must configure 
    <strong>Use O365 Avatar</strong> or else the Microsoft 365 profile image may not be available in the first place.
    <br><br>Also, when checking this option, you understand that the Microsoft 365 profile image will be shown whenever 
    one is found and that this avatar will also be used, even when the user has uploaded his own Buddy Press
    profile image.`,titleHideSsoLink:"Notice",subTextHideSsoLink:`This setting will only suppress the Single Sign-on link that is otherwise shown if
    you checked <strong>Redirect to login</strong>. If you didn't check this option, the SSO won't be shown
    in the first place.`,titleUseIdTokenParserV2:"Important",subTextUseIdTokenParserV2:`Only check this option if the plugin reports ID token errors after you updated the plugin
    to v14 or higher. Please also contact <a target="_blank" href="https://www.wpo365.com/contact/">support</> and 
    describe your issue, as this may also affect others.`,titleUseSingleAppRegistration:"Important",subTextUseSingleAppRegistration:`Checking this option will configure the plugin so it will expect <em>application</em> (as opposed to 
    <em>delegated</em>) permissions to be granted to the same <em>App registration</em> that you have configured to enable <em>Microsoft
    based single sign-on</em>.<br/>
    Please note that changing this option will automatically update the current configuration for the (App-only) Application (client) ID and secret.<br/><br/>
    <a href="https://tutorials.wpo365.com/courses/integration-application-permissions/" target="_blank">Read more...</a>.`};class Fe{aadResourceUri="00000002-0000-0000-c000-000000000000";addCreateAccountPrompt=!1;addSelectAccountPrompt=!1;aiInstrumentationKey="";allGroupMemberships=!1;allowedTenants=[];allowReactivation=!1;alwaysUseGotoAfter=!1;applicationId="";applicationSecret="";appOnlyApplicationId="";appOnlyApplicationSecret="";appRolesXWpRoles=[];audiences=[];audiencesExcludedPostTypes=[];audiencesExcludedRoles=[];audiencesPrivatePostTypes=[];audiencesPrivatePageResponse="notFound";audiencesXPostTypes=[];authScenario=Gr.intranet;avatarHookPriority=1;avatarUpdated=259200;avatarSkipSaveDefault=!1;avatarTemplate='<img src="__##AVATAR_URL##__" width="__##AVATAR_SIZE##__" height="__##AVATAR_SIZE##__" class="ui avatar image">';b2cAllowMultiplePolicies=!1;b2cCustomDomain="";b2cDomainName="";b2cEnableSignup=!1;b2cPolicyName="";b2cSignupPolicy="";blockDirectMediaAccess=!1;blockDirectMediaAccessMode="php";blockEmailChange=!0;blockPasswordChange=!0;bounceToAdmin=!1;buttonConfig=[];createAndAddUsers=!0;curlLoggingEnabled=!1;customDomain=[];customFieldsXItthinxGroups=[];customFieldsXRoles=[];customLoginUrl="";debugLog=!1;debugLogLocation=pd.locally;debugLogIdToken=!1;defaultDomain="";defaultRoleAsFallback=!0;domainBlockedList=!1;domainHint="";domainWhitelist=[];domainsXRoles=[];enableAudiences=!1;enableAudiencesMetaBox=!0;enableAudiencesRest=!1;enableCustomLogScim=!1;enableCustomLogSync=!1;enableGraphApi=!1;enableGraphProxy=!1;enableNonceCheck=!1;enableScim=!1;enableSingleSignOut=!1;enableTokenService=!1;enableUserSync=!1;exitOnAudienceError=!1;expressLogin=!1;extraUserFields=[];extraUserFieldsSource=qr.graph;errorPageUrl="";gotoAfterSignonUrl="";graphAllowAllEndpoints=!1;graphAllowTokenRetrieval=!1;graphAllowedEndpoints=[];graphDisplayNameFormat=od.displayName;graphPermissionLevel=Yp.signedIn;graphSelectProperties=[];graphUserDetails=!1;graphVersion=Xb.current;groupsWhitelist=[];groupsXRoles=[];groupsXGroupsGroups=[];groupsXGotoAfter=[];hideAdminBarRoles=[];hideDocTb=!1;hideErrorNotice=!1;hideLoginButton=!1;hideNewUserApp=!1;hidePremiumOptions=!1;hideSsoLink=!1;insightsAlertsEnabled=!1;insightsAlertsLogin=!1;insightsAlertsMail=!1;insightsAlertsNoSensitiveData=!0;insightsAlertsUserCreation=!1;insightsEnabled=!1;insightsAnonymized=!1;insightsWidgetHidden=!1;interceptWpLogin=!1;ldCourseAssignments=[];ldCourseAssignmentsByDomain=[];ldDefaultCourseAssignments=[];ldDefaultGroupAssignments=[];ldGroupAssignments=[];ldGroupAssignmentsByDomain=[];leeway=300;licenseKey="";loadingTemplateUrl="";logoutFromO365=!1;mailAllowFrom=!1;mailApplicationId="";mailApplicationSecret="";mailAuthorizationScenario=er.auto;mailAutoRetry=!1;mailDefaultRecipient="";mailFixLocalhost=!1;mailFrom="";mailIntervals=[3600,7200,14400];mailLog=!1;mailLogRetention=90;mailMimeType="Html";mailMultiTenanted=!1;mailRedirectUrl="";mailReplyTo="";mailSaveToSentItems=!1;mailSendAlias=!1;mailSendAliasFrom="";mailSendAs=!1;mailSendAsFrom="";mailSendShared=!1;mailSendSharedFrom="";mailSendToBcc=!1;mailSkipAllChecks=!1;mailStagingMode=!1;mailTenantId="";mailThrottlingEnabled=!1;mailThreshold=20;mailTld=".com";muAddNewUserSite=!1;muNewUserSiteUseUsername=!1;muAddUserToAllSites=!1;muGroupsXSuperAdmins=[];multiTenanted=!1;multiTenantedApiPermissions=[];muNewUsrDefaultRole="subscriber";muRevokeSuperAdmin=!1;newUsrDefaultRole="subscriber";newUsrSendMail=!1;newUsrSendMailAdminOnly=!1;newUsrSendMailCustom=!1;newUsrMailSubject="[__##BLOG_NAME##__] New user registration";newUsrMailTitle="NEW USER REGISTRATION";newUsrMailSalutation="Dear __##USER_DISPLAY_NAME##__";newUsrMailBody='The website <strong><a href="__##BLOG_URL##__">__##BLOG_NAME##__</a></strong> has been shared with you. You can now sign in using your Entra ID account <strong>__##USER_LOGIN_NAME##__</strong>.';newUsrMailFooter='Powered by <a href="https://www.wpo365.com/" target="_blank">WPO365 - Connecting Wordpress and Entra ID / Microsoft 365</a>';nonceSecret=Zt(16);noSso=!1;oidcFlow=kr.code;oidcResponseMode=Jf.form_post;pagesBlacklist=[];passwordLength=16;postSignoutUrl="";preventNonAdminLogin=!1;preventSendEmailChangeEmail=!1;preventSendPasswordChangeEmail=!1;privatePages=[];publicHomepage=!1;redirectUrl="";redirectUrlStrict=!1;redirectOnLogin=!1;redirectOnLoginSecret=Zt(32);redirectOnLoginReferrers=[];redirectOnPrivatePage=!1;redirectToLogin=!1;redirectToLoginV2=!1;rememberUser=!1;replaceOrUpdateUserRoles=Qb.skip;replaceOrUpdateWpmuUserRoles=!1;samlClaimMappings=[];samlEnableRequestedAuthnContext=!1;samlForceAuthn=!1;samlStrict=!0;samlBaseUrl="";samlSpEntityId="";samlSpAcsUrl="";samlSpAcsBinding="";samlSpSlsUrl="";samlSpSlsBinding="";samlIdpEntityId="";samlIdpMetaDataUrl="";samlIdpSsosUrl="";samlIdpSsosBinding="";samlIdpSlsUrl="";samlIdpSlsBinding="";samlX509Cert="";scimAttributeMappings=[];scimReassignPostsTo="";scimReassignPostsToId=0;scimSecretToken="";sessionDuration=0;skipAddUserToSubsite=!1;skipApiBasicAuthRequest=!1;skipAvatarForOthers=!1;skipHostVerification=!0;skipIdTokenVerification=!1;skipIps=[];skipNonceVerification=!1;skipPasswordCredentialsExpiredCheck=!0;skipUserRegisterAction=!1;skipWpAdmin=!1;skipWpLoginAction=!1;signInMultiPlaceholder="Select your Identity Provider";signInWithMicrosoft="Sign in with Microsoft";tenantId="";testAccessToken=!0;testConfiguration=!0;testIdToken=!0;tld=".com";updateAdmins=!1;upgradeActions=[];useAlternativeCdn=!1;useAppOnlyToken=!1;useAvatar=!1;useB2c=!1;useBpAvatar=!1;useBpExtended=!1;useCiam=!1;useGcc=!1;useGraphMailer=!1;useShortLoginName=!1;useSingleAppRegistration=!1;useIdTokenParserV1=!1;useIdTokenParserV2=!1;useLoaderV1=!1;useLoginButtonV1=!1;useMsTeamsSsoV1=!1;useNoTeamsSso=!1;usePkce=!1;userNameClaim="";userNamePreference="default";userNameAadProperty="";userNameScimClaim="";userSyncJobs=[];useTeams=!1;useSaml=!1;useV2=!0;useWpCli=!0;useWpConfig=!1;useWpConfigFrags=!1;useWpContent=!1;useWpRestAad=!1;useWpRestCookies=!1;userMatchOrder=[];userSyncQuery="myorganization/users?$filter=accountEnabled+eq+true+and+userType+eq+%27member%27&$top=10";userSyncAllowDelete=!1;validateOnPluginsLoaded=!1;welcomePageUrl="";wpo365LoginDownloadLink="";wpoErrorCheckLog=me.wpoErrorCheckLog;wpoErrorDeactivated=me.wpoErrorDeactivated;wpoErrorDualLogin=me.wpoErrorDualLogin;wpoErrorDualLoginV2=me.wpoErrorDualLoginV2;wpoErrorIdTokenError=me.wpoErrorIdTokenError;wpoErrorIdTokenAud=me.wpoErrorIdTokenAud;wpoErrorLoggedOut=me.wpoErrorLoggedOut;wpoErrorPrivatePage=me.wpoErrorPrivatePage;wpoErrorNotConfigured=me.wpoErrorNotConfigured;wpoErrorNotFromDomain=me.wpoErrorNotFromDomain;wpoErrorNotInGroup=me.wpoErrorNotInGroup;wpoErrorTamperedWith=me.wpoErrorTamperedWith;wpoErrorNonceExpired=me.wpoErrorNonceExpired;wpoErrorSaml2Error=me.wpoErrorSaml2Error;wpoErrorUserNotFound=me.wpoErrorUserNotFound;wpoErrorNoIdpSelected=me.wpoErrorNoIdpSelected;wpoTitleM365ProfileInfo=me.wpoTitleM365ProfileInfo;wpRestAadApplicationId="";wpRestAadApplicationIdUri="";wpRestAadProtectedEndpoints=[];wpRestAadUseAppRoles=!1;wpRestBlock=!1;wpRestCookiesProtectedEndpoints=[];wpRestSetCookies=!1;wpToAadCreateUsers=!1;wpToAadCustomerEndpoint="";wpToAadEmailNotifications="userNotPresent";wpToAadExcludedRoles=[];wpToAadExitOnFailure=!1;wpToAadForceChangePasswordNextSignIn=!1;wpToAadIdentityProvider=void 0;wpToAadPasswordReset=!1;wpToAadUpdateSensitiveProps=!1;wpToAadUpdateUsers=!1;wpToAadUserAttributeMappings=[];name=void 0;configurations=[];constructor(o){this.redirectUrl=o.props.siteUrl.slice(-1)!="/"?o.props.siteUrl+"/":o.props.siteUrl,this.mailRedirectUrl=this.redirectUrl,this.samlBaseUrl=this.redirectUrl}static async getSettings(o){const n=new FormData;n.append("action","wpo365_get_settings"),n.append("nonce",o.nonce),n.append("ina",window.wpo365.wizard.props.ina);let t;try{t=await Ee.post(o.wpAjaxAdminUrl,n)}catch(i){return console.log(i),null}if(t.status==200&&t.data&&t.data.status&&t.data.status=="OK")try{const i=JSON.parse(t.data.result),d=new Fe(o);return Object.keys(d).forEach(c=>{typeof i[c]<"u"&&i[c]!==null&&(d[c]=i[c])}),Object.keys(i).forEach(c=>{c.indexOf("license_")===0&&(d[c]=i[c])}),d}catch(i){return console.log(i),null}return null}static async updateSettings(o,n,t=!1){if(n.name){const h=Ja(n.configurations,_=>_.name==n.name),g=JSON.parse(JSON.stringify(n));delete g.configurations,h>-1?n.configurations[h]=g:n.configurations.push(g)}function i(h){return new Promise((g,_)=>{const m=new FileReader;m.onloadend=()=>{const x=m.result,y=x.indexOf(",");y>-1?g(x.substring(y+1)):(console.warn("Settings::blobToBase64 -> Could not split the dataURL into "),g(x))},m.readAsDataURL(h)})}const d=await i(new Blob([JSON.stringify(n)],{type:"application/json"})),c=new FormData;c.append("action","wpo365_update_settings"),c.append("nonce",o.nonce),c.append("ina",window.wpo365.wizard.props.ina),c.append("settings",d),t&&c.append("reset","true");let u;try{u=await Ee.post(o.wpAjaxAdminUrl,c)}catch(h){return h}return u.status==200&&u.data&&u.data.status?u.data.status=="OK"?{error:null,message:me.empty,success:!0}:{error:new Lr(null,u.data.message),message:me.empty,success:!1}:{error:new Lr(null,u.message),message:me.empty,success:!1}}update(){return null}validate(){return null}}const Ye=E.createContext({addOnNavigateHandler:null,appStatus:"initial",env:void 0,lastErrorMessage:null,onNavigateHandlers:[],removeOnNavigateHandler:null,settings:void 0,showWpoHealthMessages:!1,setShowWpoHealthMessages:s=>{},updateAppStatus:s=>{},updateLastErrorMessage:s=>{},updateSettings:s=>{},wpoHealthMessagesDismissed:()=>{},wpoHealthMessagesUpdated:s=>{}}),HA=s=>{const{children:o}=s,[n,t]=E.useState("initial"),[i,d]=E.useState(s.env),[c,u]=E.useState(null),[h,g]=E.useState(void 0),[_,m]=E.useState(!1),[x,y]=E.useState([]),v=E.useRef();E.useMemo(()=>{v.current=[],Fe.getSettings(i).then(I=>g(I))},[]);const b=I=>{Ja(v.current,Y=>Y.toString()==I.toString())==-1&&(v.current=[...v.current,I],y(v.current))},C=I=>{const A=Ja(v.current,Y=>Y.toString()==I.toString());A>-1&&(v.current.splice(A,1),y(v.current))},k=()=>{const I={...i};I.props.wpoHealthMessages="false",d(I)},L=I=>{if(I){const A={...i};A.props.wpoHealthMessages=I,d(A)}};return e.jsx(Ye.Provider,{value:{addOnNavigateHandler:b,appStatus:n,env:i,lastErrorMessage:c,onNavigateHandlers:x,removeOnNavigateHandler:C,settings:h,showWpoHealthMessages:_,setShowWpoHealthMessages:m,updateAppStatus:t,updateLastErrorMessage:u,updateSettings:g,wpoHealthMessagesDismissed:k,wpoHealthMessagesUpdated:L},children:h?o:e.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",marginTop:"-14px",marginLeft:"-14px",width:"100px",height:"100px;"},children:e.jsx(Oe,{size:Te.large})})})},Ws=s=>{const{onDismiss:o,onCancel:n,onConfirm:t,title:i,subText:d}=s;return e.jsx(E.Fragment,{children:e.jsxs(Xc,{hidden:!1,onDismiss:o,dialogContentProps:{type:fo.normal,title:i,subText:""},modalProps:{isBlocking:!1},children:[e.jsx("div",{dangerouslySetInnerHTML:{__html:d}}),e.jsxs(hh,{children:[!!n&&e.jsx(et,{onClick:n,text:me.capCancelButton}),e.jsx(rt,{onClick:t,text:"Close"})]})]})})},fe=s=>{const{bound:o,disabled:n,errorMessage:t,isValid:i,onError:d,onValid:c,password:u,placeholder:h,style:g,value:_}=s,m=E.useRef(),[x,y]=E.useState(!0),[v,b]=E.useState(_||""),[C,k]=E.useState(!1),L=E.useMemo(()=>Zt(12),[]),I=()=>{const Y=i?i(v,v):!0;y(Y),c&&Y&&c(v),d&&!Y&&d(t)};E.useEffect(()=>{_!==v&&(b(_),k(!0))},[_]),E.useEffect(()=>{C&&(m.current&&clearTimeout(m.current),m.current=setTimeout(I,400),k(!1))},[C]);const A=E.useMemo(()=>{const Y=g?{...g}:{};return Y.border=x?"1px solid #dadada":"1px solid red",Y.padding="10px",Y.height="30px",Y.lineHeight="30px",Y.border="1px solid",Y.width="100%",Y.maxWidth="400px",Y.flexGrow=1,n&&(Y.color="#000000",Y.background="#dadada"),Y},[x,n]);return e.jsxs(U,{tokens:{childrenGap:10},horizontalAlign:"start",style:{width:"100%"},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx("input",{type:u?"password":"text",onChange:Y=>{b(Y.target.value),k(!0)},value:v,style:A,disabled:n,placeholder:h||null,id:L}),s.children]}),!o&&!x&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:t})]})},Bo=s=>{const{list:o,onListChanged:n,onAdd:t,placeholder:i,isValid:d,errorMessage:c,disabled:u}=s,[h,g]=E.useState(o?[...o]:[]),[_,m]=E.useState(""),[x,y]=E.useState("");return E.useEffect(()=>{JSON.stringify(o)!==JSON.stringify(h)&&n([...h])},[h]),e.jsxs(U,{tokens:{childrenGap:10},horizontalAlign:"start",style:{width:"400px"},children:[!u&&e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,disabled:u,errorMessage:c,isValid:(v,b)=>(x&&y(""),d&&b?d.test(b):!0),onError:v=>y(v),onValid:v=>{m(v)},placeholder:i||void 0,value:_}),e.jsx(Ke,{onClick:()=>{if(!_){y("This setting requires a value");return}if(t&&!t(_)){m("");return}const v=[...h];v.push(_),g([...v]),m("")},iconProps:{iconName:"Add"},title:"Add",ariaLabel:"Click to add this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]}),x&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:x}),!u&&h.length>0&&e.jsx("div",{style:{width:"400px",height:"1px",backgroundColor:"black"}}),h.map((v,b)=>e.jsx(e.Fragment,{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!1,disabled:!0,value:v}),e.jsx(Ke,{onClick:()=>{const C=[...h];C.splice(b,1),g(C)},iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]},btoa(v))}))]})},Bs=s=>e.jsxs("div",{children:["WPO365 Online Resources •"," ",e.jsx("a",{href:"https://www.wpo365.com/contact/",target:"_blank",children:"Contact"})," ","•"," ",e.jsx("a",{href:"https://www.youtube.com/@wpo365",target:"_blank",children:"Videos"})," ","•"," ",e.jsx("a",{href:"https://docs.wpo365.com/",target:"_blank",children:"Documentation"})," ","•"," ",e.jsx("a",{href:"https://wordpress.org/support/plugin/wpo365-login/reviews",target:"_blank",children:"Review"})," ","•"," ",e.jsx("a",{href:"https://www.wpo365.com/how-to-get-support/",target:"_blank",children:"Support"})," ","•"," ",e.jsx("a",{href:"https://www.wpo365.com/change-log/",target:"_blank",children:"Change log"})," ","•"," ",e.jsx("a",{href:"https://www.wpo365.com/downloads/",target:"_blank",children:"Upgrade"})," ","•"," ",e.jsx("a",{href:"https://www.linkedin.com/company/downloads-by-van-wieren",target:"_blank",children:"Follow us"})]}),ne=s=>{const{extensions:o,targets:n,children:t}=s,[i,d]=E.useState(!0),c=E.useMemo(()=>[l.wpo365LoginPlus,l.wpo365Essentials,l.wpo365Mail,l.wpo365RolesAccess,l.wpo365Pro,l.wpo365Integrate,l.wpo365Customers,l.wpo365Scim,l.wpo365Apps].filter(u=>n.indexOf(u)>-1),[]);return o.some(u=>n.indexOf(u)>-1)?e.jsx(e.Fragment,{children:t}):i?e.jsxs("div",{className:j.wpo365WzRowifier,style:{cursor:"pointer"},onClick:()=>d(!1),children:[e.jsx(Ke,{className:j.wpo365WzIconButton,iconProps:{iconName:"Lock"},title:"Locked"})," ",e.jsx("span",{children:e.jsx("em",{children:"Click for details"})})]}):e.jsx(e.Fragment,{children:e.jsxs("span",{children:["Available for:  ",c.filter(u=>u in Op).map(u=>e.jsxs(e.Fragment,{children:[e.jsx("a",{href:Op[u].url,target:"_blank",children:Op[u].name})," "]}))]})})},de=s=>{const{info:o}=s,[n,t]=E.useState(!1),[i,d]=E.useState(!1),c=E.useMemo(()=>Zt(6),[]);return e.jsxs("div",{children:[e.jsx("div",{style:{display:"flex",fontSize:"12px",lineHeight:"30px",height:"30px",zIndex:99},onClick:()=>t(!0),id:c,children:e.jsx(Ue,{iconName:"Info",title:"Click for instant help",style:{color:"#0066CC",fontSize:"16px",lineHeight:"30px",height:"30px",width:"30px",margin:"0px 0px 0px 15px",padding:0,cursor:"pointer"}})}),o&&n&&e.jsx(ch,{role:"alertdialog",gapSpace:0,target:`#${c}`,onDismiss:()=>t(!1),setInitialFocus:!0,hidden:!n,children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",flexWrap:"wrap",margin:"5px",paddingTop:"15px"},children:[e.jsxs("div",{style:{flexGrow:1,flexShrink:0,width:"100%",padding:"0.5rem 1rem"},children:[!i&&e.jsx(zb,{}),e.jsx("iframe",{style:{width:"50vw",height:"50vh"},src:o.readMore.url,onLoad:()=>d(!0)})]}),e.jsx("div",{style:{flexGrow:1,flexShrink:0,width:"100%",padding:"0.5rem 1rem 1rem 1rem"},children:e.jsx("a",{href:o.readMore.url,target:"_blank",children:o.readMore.title})})]})})]})},zA="_wpoMiniCta_83qv1_1",UA="_wpoMiniCta__icon_83qv1_29",VA="_wpoMiniCta__content_83qv1_43",GA="_wpoMiniCta__title_83qv1_46",$A="_wpoMiniCta__desc_83qv1_55",KA="_wpoMiniCta__links_83qv1_65",qA="_wpoMiniCta__link_83qv1_65",JA="_wpoMiniCta__divider_83qv1_83",Zi={wpoMiniCta:zA,wpoMiniCta__icon:UA,wpoMiniCta__content:VA,wpoMiniCta__title:GA,wpoMiniCta__desc:$A,wpoMiniCta__links:KA,wpoMiniCta__link:qA,wpoMiniCta__divider:JA},ou=s=>{const{buttons:o,cols:n=2}=s;return e.jsx("div",{style:{gridTemplateColumns:`repeat(${n}, 1fr)`,display:"grid",gridAutoRows:"1fr",gap:"10px",margin:"16px 0px"},children:o.map(t=>e.jsxs("a",{className:Zi.wpoMiniCta,href:"#","aria-labelledby":"mini-cta-title","aria-describedby":"mini-cta-desc",children:[e.jsx("div",{className:Zi.wpoMiniCta__icon,"aria-hidden":"true",children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 100 100",children:[e.jsx("path",{fill:"#c7ede6",d:"M87.2,56.7c1.1-2.2,1.8-4.6,1.8-7.2c0-6.6-4.2-12.3-10-14.5c0,0,0,0,0,0c0-11.6-9.4-21-21-21 c-9.8,0-18,6.7-20.3,15.8c-1.5-0.5-3-0.8-4.7-0.8c-7.7,0-14,5.8-14.9,13.3C12.9,43.4,9,48,9,53.5C9,59.9,14.1,65,20.5,65 c0.2,0,0.4,0,0.5,0c0,0.2,0,0.3,0,0.5C21,76.8,30.2,86,41.5,86c6.4,0,12.2-3,15.9-7.6c2.2,2.2,5.2,3.6,8.6,3.6 c4.7,0,8.7-2.7,10.7-6.5c1.1,0.3,2.2,0.5,3.3,0.5c6.1,0,11-4.9,11-11C91,61.7,89.5,58.7,87.2,56.7z"}),e.jsx("path",{fill:"#fdfcef",d:"M79.9,60.5c0,0,3.6,0,6.1,0s4.5-2,4.5-4.5c0-2.3-1.8-4.2-4.1-4.5c0-0.2,0.1-0.4,0.1-0.5c0-2.5-2-4.5-4.5-4.5 c-1.4,0-2.7,0.7-3.5,1.7c-0.1-2.6-2.3-4.7-5-4.7c-2.8,0-5,2.2-5,5c0,0.4,0.1,0.9,0.2,1.3C68,49,67.1,48.5,66,48.5 c-1.8,0-3.2,1.3-3.5,3.1c-0.2,0-0.4-0.1-0.5-0.1c-2.5,0-4.5,2-4.5,4.5s2,4.5,4.5,4.5s9.5,0,9.5,0h5.4V61h3V60.5z"}),e.jsx("path",{fill:"#472b29",d:"M73.5,43c-3,0-5.5,2.5-5.5,5.5c0,0,0,0,0,0c-0.6-0.4-1.3-0.5-2-0.5c-1.8,0-3.4,1.3-3.9,3c0,0-0.1,0-0.1,0 c-2.8,0-5,2.2-5,5s2.2,5,5,5h14.9c0.3,0,0.5-0.2,0.5-0.5S77.2,60,76.9,60H62c-2.2,0-4-1.8-4-4s1.8-4,4-4c0.1,0,0.2,0,0.3,0l0.1,0 c0,0,0,0,0.1,0c0.2,0,0.5-0.2,0.5-0.4c0.2-1.5,1.5-2.6,3-2.6c0.9,0,1.7,0.4,2.3,1.1c0.1,0.1,0.2,0.2,0.4,0.2c0.1,0,0.2,0,0.2-0.1 c0.2-0.1,0.3-0.3,0.3-0.6c-0.1-0.4-0.2-0.8-0.2-1.2c0-2.5,2-4.5,4.5-4.5c2.4,0,4.3,1.9,4.5,4.3c0,0.2,0.2,0.4,0.3,0.5 c0.1,0,0.1,0,0.2,0c0.2,0,0.3-0.1,0.4-0.2c0.8-1,1.9-1.5,3.1-1.5c2.2,0,4,1.8,4,4c0,0.1,0,0.2,0,0.3l0,0.1c0,0.1,0,0.3,0.1,0.4 s0.2,0.2,0.3,0.2c2.1,0.2,3.6,1.9,3.6,4c0,2.2-1.8,4-4,4h-6.1c-0.3,0-0.5,0.2-0.5,0.5s0.2,0.5,0.5,0.5H86c2.8,0,5-2.2,5-5 c0-2.4-1.7-4.4-4-4.9c0,0,0-0.1,0-0.1c0-2.8-2.2-5-5-5c-1.2,0-2.3,0.4-3.2,1.2C78.2,44.8,76.1,43,73.5,43L73.5,43z"}),e.jsx("path",{fill:"#472b29",d:"M72 50c-1.4 0-2.6 1-2.9 2.3-.4-.2-.8-.3-1.2-.3-1.2 0-2.2.9-2.4 2.1-.2 0-.4-.1-.6-.1-1.5 0-2.8 1.2-2.9 2.7 0 .1.1.3.2.3 0 0 0 0 0 0 .1 0 .2-.1.2-.2.1-1.3 1.2-2.3 2.4-2.3.2 0 .5 0 .7.1 0 0 0 0 .1 0 .1 0 .1 0 .2-.1.1 0 .1-.1.1-.2 0-1 .8-1.9 1.9-1.9.4 0 .9.2 1.2.5 0 0 .1.1.2.1 0 0 .1 0 .1 0 .1 0 .1-.1.2-.2.1-1.3 1.2-2.3 2.5-2.3.2 0 .4 0 .7.1 0 0 0 0 .1 0 .1 0 .2-.1.2-.2 0-.1 0-.3-.2-.3C72.5 50 72.3 50 72 50L72 50zM85.9 51.5c-1.3 0-2.5.9-2.9 2.2 0 .1 0 .3.2.3 0 0 0 0 .1 0 .1 0 .2-.1.2-.2.3-1.1 1.3-1.8 2.4-1.8.1 0 .2 0 .3 0 0 0 0 0 0 0 .1 0 .2-.1.2-.2 0-.1-.1-.3-.2-.3C86.2 51.5 86 51.5 85.9 51.5L85.9 51.5z"}),e.jsx("path",{fill:"#fff",d:"M15.4 51H5.5C5.2 51 5 50.8 5 50.5S5.2 50 5.5 50h9.9c.3 0 .5.2.5.5S15.7 51 15.4 51zM18.5 51h-1c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h1c.3 0 .5.2.5.5S18.8 51 18.5 51zM23.5 53h-9c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h9c.3 0 .5.2.5.5S23.8 53 23.5 53zM12.5 53h-1c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h1c.3 0 .5.2.5.5S12.8 53 12.5 53zM9.5 53h-2C7.2 53 7 52.8 7 52.5S7.2 52 7.5 52h2c.3 0 .5.2.5.5S9.8 53 9.5 53zM15.5 55h-2c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h2c.3 0 .5.2.5.5S15.8 55 15.5 55zM18.5 46c-.2 0-.8 0-1 0-.3 0-.5.2-.5.5s.2.5.5.5c.2 0 .8 0 1 0 .3 0 .5-.2.5-.5S18.8 46 18.5 46zM18.5 48c-.2 0-4.8 0-5 0-.3 0-.5.2-.5.5s.2.5.5.5c.2 0 4.8 0 5 0 .3 0 .5-.2.5-.5S18.8 48 18.5 48zM23.5 50c-.2 0-2.8 0-3 0-.3 0-.5.2-.5.5s.2.5.5.5c.2 0 2.8 0 3 0 .3 0 .5-.2.5-.5S23.8 50 23.5 50z"}),e.jsx("g",{children:e.jsx("path",{fill:"#fff",d:"M72.5 24h-10c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h10c.3 0 .5.2.5.5S72.8 24 72.5 24zM76.5 24h-2c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h2c.3 0 .5.2.5.5S76.8 24 76.5 24zM81.5 26h-10c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h10c.3 0 .5.2.5.5S81.8 26 81.5 26zM69.5 26h-1c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h1c.3 0 .5.2.5.5S69.8 26 69.5 26zM66.4 26h-1.9c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h1.9c.3 0 .5.2.5.5S66.7 26 66.4 26zM75.5 22h-5c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h5c.3 0 .5.2.5.5S75.8 22 75.5 22zM72.5 28h-2c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h2c.3 0 .5.2.5.5S72.8 28 72.5 28z"})}),e.jsxs("g",{children:[e.jsx("path",{fill:"#78a2d2",d:"M37,71.3c-4,0-7.3-3.3-7.3-7.3V36c0-4,3.3-7.3,7.3-7.3h28c4,0,7.3,3.3,7.3,7.3v28c0,4-3.3,7.3-7.3,7.3H37z"}),e.jsx("path",{fill:"#472b29",d:"M65,29.4c3.6,0,6.6,3,6.6,6.6v28c0,3.6-3,6.6-6.6,6.6H37c-3.6,0-6.6-3-6.6-6.6V36c0-3.6,3-6.6,6.6-6.6H65 M65,28H37c-4.4,0-8,3.6-8,8v28c0,4.4,3.6,8,8,8h28c4.4,0,8-3.6,8-8V36C73,31.6,69.4,28,65,28L65,28z"})]}),e.jsx("g",{children:e.jsx("path",{fill:"#472b29",d:"M68.4,47.5c-0.3,0-0.5-0.2-0.5-0.5v-3.7c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5V47 C68.9,47.3,68.7,47.5,68.4,47.5z"})}),e.jsx("g",{children:e.jsx("path",{fill:"#472b29",d:"M68.5,41.1c-0.3,0-0.5-0.2-0.5-0.5v-1.9c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v1.9 C69,40.8,68.8,41.1,68.5,41.1z"})}),e.jsx("g",{children:e.jsx("path",{fill:"#472b29",d:"M64.3,67.9H37.8c-2.6,0-4.7-2.1-4.7-4.7V36.7c0-2.6,2.1-4.7,4.7-4.7h24c0.3,0,0.5,0.2,0.5,0.5S62,33,61.8,33 h-24c-2.1,0-3.7,1.7-3.7,3.7v26.4c0,2.1,1.7,3.7,3.7,3.7h26.4c2.1,0,3.7-1.7,3.7-3.7V49.6c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5 v13.6C69,65.8,66.9,67.9,64.3,67.9z"})}),e.jsxs("g",{children:[e.jsx("path",{fill:"#fdfcee",d:"M53.2,58.3c0,0.9,0.9,1.4,2.9,1.4v1.8H45.9v-1.8c1.9,0,2.8-0.5,2.8-1.4v-9.4c0-0.9-0.9-1.4-2.8-1.4v-1.8h7.3 C53.2,45.8,53.2,58.3,53.2,58.3z M53.6,40.6c0,0.7-0.3,1.3-0.8,1.9c-0.5,0.5-1.2,0.8-2,0.8c-0.4,0-0.8-0.1-1.1-0.2 c-0.3-0.1-0.6-0.3-0.9-0.6c-0.3-0.2-0.5-0.5-0.6-0.8c-0.2-0.3-0.2-0.7-0.2-1c0-0.7,0.3-1.4,0.8-1.9c0.6-0.5,1.2-0.8,2-0.8 c0.8,0,1.4,0.3,2,0.8C53.4,39.2,53.6,39.8,53.6,40.6z"}),e.jsx("path",{fill:"#472b29",d:"M56.6,62H45.4v-2.8h0.5c1.1,0,2.3-0.2,2.3-0.9v-9.4c0-0.6-0.8-0.9-2.3-0.9h-0.5v-2.8h8.3l0,13.1 c0,0.2,0,0.3,0.1,0.4c0.2,0.2,0.7,0.5,2.2,0.5h0.5V62z M46.4,61h9.2v-0.8c-1.2-0.1-2-0.3-2.5-0.8c-0.3-0.3-0.4-0.7-0.4-1.1V46.3 h-6.3V47c1.9,0.1,2.8,0.7,2.8,1.9v9.4c0,1.2-1,1.8-2.8,1.9V61z M50.8,43.7c-0.5,0-0.9-0.1-1.3-0.3c-0.4-0.2-0.7-0.4-1-0.7 c-0.3-0.3-0.5-0.6-0.7-1c-0.2-0.4-0.3-0.8-0.3-1.3c0-0.9,0.3-1.6,1-2.2c0.7-0.6,1.4-0.9,2.3-0.9c0.9,0,1.7,0.3,2.3,0.9 c0.7,0.6,1,1.4,1,2.2c0,0.9-0.3,1.6-1,2.2C52.5,43.4,51.8,43.7,50.8,43.7z M50.8,38.4c-0.6,0-1.2,0.2-1.7,0.6 c-0.5,0.4-0.7,0.9-0.7,1.5c0,0.3,0.1,0.6,0.2,0.8c0.1,0.3,0.3,0.5,0.5,0.7c0.2,0.2,0.5,0.4,0.7,0.5c0.3,0.1,0.6,0.2,0.9,0.2 c0.7,0,1.2-0.2,1.6-0.6c0.4-0.4,0.7-0.9,0.7-1.5c0-0.6-0.2-1.1-0.7-1.5C52,38.6,51.5,38.4,50.8,38.4z"})]}),e.jsxs("g",{children:[e.jsx("path",{fill:"#fdfcef",d:"M36.5,73.5c0,0,1.6,0,3.5,0s3.5-1.6,3.5-3.5c0-1.8-1.3-3.2-3.1-3.5c0-0.2,0.1-0.4,0.1-0.5 c0-1.9-1.6-3.5-3.5-3.5c-1,0-2,0.5-2.6,1.2c-0.4-1.8-2-3.2-3.9-3.2c-2.2,0-4,1.8-4,4c0,0.2,0,0.4,0.1,0.6c-0.4-0.3-1-0.6-1.6-0.6 c-1.2,0-2.2,0.9-2.5,2.1c-0.2,0-0.4-0.1-0.5-0.1c-1.9,0-3.5,1.6-3.5,3.5s1.6,3.5,3.5,3.5s7.5,0,7.5,0V74h7V73.5z"}),e.jsx("path",{fill:"#472b29",d:"M38.3 69c-.1 0-.3-.1-.3-.3 0-1.2 1-2.2 2.2-2.2 0 0 .7 0 1.2.1.1 0 .2.2.2.3 0 .1-.2.2-.3.2C40.9 67 40.2 67 40.2 67c-.9 0-1.7.8-1.7 1.7C38.5 68.9 38.4 69 38.3 69zM31.5 73A.5.5 0 1 0 31.5 74 .5.5 0 1 0 31.5 73z"}),e.jsx("path",{fill:"#472b29",d:"M40,74h-3.5c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5H40c1.7,0,3-1.3,3-3c0-1.5-1.1-2.8-2.6-3 c-0.1,0-0.3-0.1-0.3-0.2s-0.1-0.2-0.1-0.4c0-0.2,0-0.3,0-0.5c0-1.7-1.3-3-3-3c-0.8,0-1.6,0.4-2.2,1c-0.1,0.1-0.3,0.2-0.5,0.1 c-0.2,0-0.3-0.2-0.4-0.4c-0.3-1.6-1.8-2.8-3.4-2.8c-1.9,0-3.5,1.6-3.5,3.5c0,0.1,0,0.3,0,0.4c0,0.2-0.1,0.4-0.2,0.5 s-0.4,0.1-0.6,0C25.9,65.2,25.4,65,25,65c-1,0-1.8,0.7-2,1.6c0,0.3-0.3,0.4-0.6,0.4c-0.2,0-0.3,0-0.5,0c-1.7,0-3,1.3-3,3 s1.3,3,3,3h7.5c0.3,0,0.5,0.2,0.5,0.5S29.8,74,29.5,74H22c-2.2,0-4-1.8-4-4s1.8-4,4-4c0.1,0,0.1,0,0.2,0c0.4-1.2,1.5-2,2.8-2 c0.3,0,0.7,0.1,1,0.2c0.2-2.3,2.1-4.2,4.5-4.2c1.8,0,3.5,1.1,4.2,2.8c0.7-0.5,1.5-0.8,2.3-0.8c2.2,0,4,1.8,4,4c0,0,0,0.1,0,0.1 c1.7,0.4,3,2,3,3.9C44,72.2,42.2,74,40,74z"}),e.jsx("path",{fill:"#472b29",d:"M34.5,73c-0.2,0-0.8,0-1,0c-0.3,0-0.5,0.2-0.5,0.5s0.2,0.5,0.5,0.5c0.2,0,0.8,0,1,0c0.3,0,0.5-0.2,0.5-0.5 S34.8,73,34.5,73z"})]})]})}),e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},className:Zi.wpoMiniCta__content,children:[e.jsx("div",{id:"mini-cta-title",className:Zi.wpoMiniCta__title,children:t.title}),e.jsx("div",{id:"mini-cta-desc",className:Zi.wpoMiniCta__desc,children:t.callToAction}),e.jsxs("div",{className:Zi.wpoMiniCta__links,"aria-label":"Related resources",children:[t.info&&e.jsx("a",{className:Zi.wpoMiniCta__link,href:t.info,target:"_blank",children:"More info"}),t.info&&t.tutorial&&e.jsx("span",{className:Zi.wpoMiniCta__divider,"aria-hidden":"true",children:"•"}),t.tutorial&&e.jsx("a",{className:Zi.wpoMiniCta__link,href:t.tutorial,target:"_blank",children:"Tutorial"})]})]})]}))})},mx={maxWidth:"400px",color:"#cc0000"},ZA={padding:"0px 10px",background:"#c8c6c4",borderRadius:"2px"},XA=s=>{const{env:o,env:{props:{extensions:n,availablePostTypes:t,wpConfigAad:i,wpConfigMultiple:d}},settings:c,settings:{hidePremiumOptions:u},updateSettings:h}=E.useContext(Ye);E.useMemo(()=>Object.keys(Qr(t,[])),[]);const[g]=E.useState(o.props.addOns&&Object.keys(o.props.addOns).length>0),_=G=>({addCreateAccountPrompt:G.addCreateAccountPrompt,addSelectAccountPrompt:G.addSelectAccountPrompt,applicationId:G.applicationId,applicationSecret:G.applicationSecret,appOnlyApplicationId:G.appOnlyApplicationId,appOnlyApplicationSecret:G.appOnlyApplicationSecret,authScenario:G.authScenario,b2cAllowMultiplePolicies:G.b2cAllowMultiplePolicies,b2cCustomDomain:G.b2cCustomDomain,b2cDomainName:G.b2cDomainName,b2cEnableSignup:G.b2cEnableSignup,b2cPolicyName:G.b2cPolicyName,buttonConfig:G.buttonConfig,buttonLabel:G.signInWithMicrosoft,cacheKey:Zt(6),directoryId:G.tenantId,domainHint:G.domainHint,exitOnAudienceError:G.exitOnAudienceError,extraUserFieldsSource:G.extraUserFieldsSource,mailRedirectUrl:G.mailRedirectUrl,mailTenantId:G.mailTenantId,mailApplicationId:G.mailApplicationId,mailApplicationSecret:G.mailApplicationSecret,multiTenanted:G.multiTenanted,multiTenantedApiPermissions:G.multiTenantedApiPermissions,noSso:G.noSso,oidcFlow:G.oidcFlow,oidcResponseMode:G.oidcResponseMode,redirectUrl:G.redirectUrl,redirectUrlStrict:G.redirectUrlStrict,rememberUser:G.rememberUser,samlBaseUrl:G.samlBaseUrl,samlClaimMappings:G.samlClaimMappings,samlEnableRequestedAuthnContext:G.samlEnableRequestedAuthnContext,samlForceAuthn:G.samlForceAuthn,samlIdpEntityId:G.samlIdpEntityId,samlIdpMetaDataUrl:G.samlIdpMetaDataUrl,samlIdpSlsBinding:G.samlIdpSlsBinding,samlIdpSlsUrl:G.samlIdpSlsUrl,samlIdpSsosBinding:G.samlIdpSsosBinding,samlIdpSsosUrl:G.samlIdpSsosUrl,samlSpAcsBinding:G.samlSpAcsBinding,samlSpAcsUrl:G.samlSpAcsUrl,samlSpEntityId:G.samlSpEntityId,samlSpSlsBinding:G.samlSpSlsBinding,samlSpSlsUrl:G.samlSpSlsUrl,samlStrict:G.samlStrict,samlX509Cert:G.samlX509Cert,sessionDuration:G.sessionDuration,tld:G.tld,skipApiBasicAuthRequest:G.skipApiBasicAuthRequest,skipIdTokenVerification:G.skipIdTokenVerification,useAppOnlyToken:G.useAppOnlyToken,useB2c:G.useB2c,useCiam:G.useCiam,useGcc:G.useGcc,userMatchOrder:G.userMatchOrder,useSaml:G.useSaml,useSingleAppRegistration:G.useSingleAppRegistration,useTeams:G.useTeams,useV2:G.useV2,useWpConfig:G.useWpConfig,wpRestAadApplicationId:G.wpRestAadApplicationId,wpRestAadApplicationIdUri:G.wpRestAadApplicationIdUri,wpToAadCreateUsers:G.wpToAadCreateUsers,wpToAadIdentityProvider:G.wpToAadIdentityProvider,wpToAadUserAttributeMappings:G.wpToAadUserAttributeMappings});E.useEffect(()=>{x(_(c))},[c]);const[m,x]=E.useState(_(c)),[y,v]=E.useState(null),[b,C]=E.useState([]),[k,L]=E.useState(we.initial),[I,A]=E.useState(Wo.initial),[Y,P]=E.useState(null),[T,F]=E.useState(!!c.b2cCustomDomain),[H,W]=E.useState({status:"initial"}),[K,Z]=E.useState({status:"initial"}),Q=E.useRef(),[B,R]=E.useState(null),[X,$]=E.useState("");E.useEffect(()=>{Q.current&&B&&B.dataUrl&&(Q.current.click(),B.dataUrl=null)},[B]);const ie=(G,re,He,Ge)=>{if(G){re(!1);return}v({title:He,subText:Ge,onDismiss:()=>v(null),onCancel:()=>v(null),onConfirm:()=>{v(null),re(!0)}})},le=(G,re,He)=>{v({title:re,subText:He,onDismiss:()=>v(null),onCancel:()=>v(null),onConfirm:()=>{v(null),G()}})},V=async()=>{C([]),L(we.saving);const G={...c};G.addCreateAccountPrompt=m.addCreateAccountPrompt,G.addSelectAccountPrompt=m.addSelectAccountPrompt,G.applicationId=m.applicationId,G.applicationSecret=m.applicationSecret,G.appOnlyApplicationId=m.appOnlyApplicationId,G.appOnlyApplicationSecret=m.appOnlyApplicationSecret,G.b2cAllowMultiplePolicies=m.b2cAllowMultiplePolicies,G.b2cCustomDomain=m.b2cCustomDomain,G.b2cDomainName=m.b2cDomainName,G.b2cEnableSignup=m.b2cEnableSignup,G.b2cPolicyName=m.b2cPolicyName,G.buttonConfig=m.buttonConfig,G.domainHint=m.domainHint,G.exitOnAudienceError=m.exitOnAudienceError,G.extraUserFieldsSource=m.extraUserFieldsSource,G.mailApplicationId=m.mailApplicationId,G.mailApplicationSecret=m.mailApplicationSecret,G.mailRedirectUrl=m.mailRedirectUrl,G.mailTenantId=m.mailTenantId,G.multiTenanted=m.multiTenanted,G.multiTenantedApiPermissions=m.multiTenantedApiPermissions,G.noSso=m.noSso,G.oidcFlow=m.oidcFlow,G.oidcResponseMode=m.oidcResponseMode,G.redirectUrl=m.redirectUrl,G.redirectUrlStrict=m.redirectUrlStrict,G.rememberUser=m.rememberUser,G.samlBaseUrl=m.samlBaseUrl,G.samlClaimMappings=m.samlClaimMappings,G.samlEnableRequestedAuthnContext=m.samlEnableRequestedAuthnContext,G.samlForceAuthn=m.samlForceAuthn,G.samlIdpEntityId=m.samlIdpEntityId,G.samlIdpMetaDataUrl=m.samlIdpMetaDataUrl,G.samlIdpSlsBinding=m.samlIdpSlsBinding,G.samlIdpSlsUrl=m.samlIdpSlsUrl,G.samlIdpSsosBinding=m.samlIdpSsosBinding,G.samlIdpSsosUrl=m.samlIdpSsosUrl,G.samlSpAcsBinding=m.samlSpAcsBinding,G.samlSpAcsUrl=m.samlSpAcsUrl,G.samlSpEntityId=m.samlSpEntityId,G.samlSpSlsBinding=m.samlSpSlsBinding,G.samlSpSlsUrl=m.samlSpSlsUrl,G.samlStrict=m.samlStrict,G.samlX509Cert=m.samlX509Cert,G.sessionDuration=m.sessionDuration,G.signInWithMicrosoft=m.buttonLabel,G.skipApiBasicAuthRequest=m.skipApiBasicAuthRequest,G.skipIdTokenVerification=m.skipIdTokenVerification,G.tenantId=m.directoryId,G.tld=m.tld,G.useAppOnlyToken=m.useAppOnlyToken,G.useB2c=m.useB2c,G.useCiam=m.useCiam,G.useGcc=m.useGcc,G.userMatchOrder=m.userMatchOrder,G.useSaml=m.useSaml,G.useSingleAppRegistration=m.useSingleAppRegistration,G.useTeams=m.useTeams,G.useV2=m.useV2,G.useWpConfig=m.useWpConfig,G.wpToAadCreateUsers=m.wpToAadCreateUsers,G.wpToAadIdentityProvider=m.wpToAadIdentityProvider,G.wpToAadUserAttributeMappings=m.wpToAadUserAttributeMappings;try{const re=await Fe.updateSettings(o,G);if(re.success){const He=await Fe.getSettings(o);h(He),C([]),A(Wo.initial),L(we.success)}else C([...b,new Lr("saveConfiguration",re.message,2e3)]),Wo.initial,L(we.error)}catch{C([...b,new Lr("saveConfiguration","Unknown error occured whilst updating settings [check F12 > console for technical details]",2e3)]),L(we.error)}},z=async()=>{m.samlIdpMetaDataUrl?W({status:"importing"}):W({status:"error",message:"App Federation Metadata URL not found"}),await V();const G=new FormData;G.append("action","wpo365_import_idp_meta"),G.append("nonce",o.nonce),G.append("ina",window.wpo365.wizard.props.ina);let re;try{re=await Ee.post(o.wpAjaxAdminUrl,G)}catch(He){W({status:"error",message:He.message});return}if(re.status>=200&&re.status<300&&re.data&&re.data.status){if(re.data.status=="OK"){h(JSON.parse(re.data.result)),W({status:"initial"});return}W({status:"error",message:re.data.message});return}W({status:"error",message:`Error occured (HTTP status ${re.status})`})},J=async()=>{Z({status:"exporting"}),await V();const G=new FormData;G.append("action","wpo365_export_sp_meta"),G.append("nonce",o.nonce),G.append("ina",window.wpo365.wizard.props.ina);let re;try{re=await Ee.post(o.wpAjaxAdminUrl,G)}catch(He){Z({status:"error",message:He.message});return}if(re.status>=200&&re.status<300&&re.data&&re.data.status){if(re.data.status=="OK"){"xml"in re.data.result&&R({dataUrl:`data:application/xml;charset=utf-8,${encodeURIComponent(atob(re.data.result.xml))}`,fileName:"saml-2-0-service-provider.xml"}),"settings"in re.data.result&&h(JSON.parse(re.data.result.settings)),Z({status:"initial"});return}Z({status:"error",message:re.data.message});return}Z({status:"error",message:`Error occured (HTTP status ${re.status})`})},ee=(G,re)=>{const He=re?"<p>You are enabling Microsoft based single sign-on and can now continue to configure OpenID Connect, SAML 2.0 or AAD B2C based SSO.</p>":`<p>You have chosen to disable Microsoft based single sign-on. You can still configure and use other features of the WPO365 plugin e.g.
         <ul style="list-style: intial; padding: 0px 0px 0px 20px">
          <li>Sending email using Microsoft Graph</li>
          <li>Synchronizing users from Entra ID to WordPress using <em>application-level</em> permissions</li>
          <li>Embedding Power BI content when the <em>application owns the data</em></li>
          <li>Embedding a SharePoint Library using <em>application-level</em> permissions</li>
         </ul>
         </p>
         <p><strong>Important</strong> <em>Your exising WPO365 configuration will be deleted</em></p>
         `;ie(m.noSso,async Ge=>{x(Ge?{...m,applicationId:"",applicationSecret:"",authScenario:Gr.internet,b2cAllowMultiplePolicies:!1,b2cCustomDomain:"",b2cDomainName:"",b2cEnableSignup:!1,b2cPolicyName:"",domainHint:"",multiTenanted:!1,multiTenantedApiPermissions:[],noSso:!0,redirectUrl:"",rememberUser:!1,samlBaseUrl:"",samlClaimMappings:[],samlForceAuthn:!1,samlIdpEntityId:"",samlIdpSlsBinding:"",samlIdpSlsUrl:"",samlIdpSsosBinding:"",samlIdpSsosUrl:"",samlSpAcsBinding:"",useAppOnlyToken:!1,useB2c:!1,useSaml:!1,useCiam:!1,useSingleAppRegistration:!1,wpToAadCreateUsers:!1,wpToAadUserAttributeMappings:[],wpToAadIdentityProvider:void 0}:{...m,noSso:!1,redirectUrl:o.props.siteUrl.slice(-1)!="/"?o.props.siteUrl+"/":o.props.siteUrl}),P("noSso")},"Confirm",He)},he=async()=>{const G=new FormData;G.append("action","wpo365_block_direct_media_access"),G.append("nonce",o.nonce),G.append("ina",window.wpo365.wizard.props.ina);const re=await Ee.post(o.wpAjaxAdminUrl,G);if(re.status<200&&re.status>299)throw re.data?.message?new Error(re.data.message):re.statusText?new Error(re.statusText):new Error("Unknown error occurred whilst trying to update your site's .htaccess. Please check the online documentation for instructions to update it manually instead.");if(re.data?.status==="NOK")throw new Error(re.data.message)};E.useEffect(()=>{Y=="noSso"&&V().then(()=>{P(null)}),Y=="obfuscate"&&V().then(()=>{P(null)}),Y==="blockDirectMediaAccess"&&($(""),V().then(()=>{he().then(G=>P(null)).catch(G=>{$(G.message),Fe.getSettings(o).then(re=>{h(re),P(null)}).catch(re=>{P(null)})})}))},[Y]);const te=E.useMemo(()=>{const G=["oid","upn","preferred_username","email","login"];return c.userNamePreference=="custom"&&c.userNameClaim&&G.push("custom"),G},[]);return e.jsxs("div",{className:j.wpo365WzMain,children:[e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("h3",{className:j.wpo365WzSectionTitle,children:[e.jsx("span",{style:{color:"#CE5708"},children:"Getting started"})," with Single Sign-On"]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(ou,{buttons:[{callToAction:"Configure OpenID Connect based SSO",info:"https://www.wpo365.com/feature/entra-id-based-single-sign-on-for-wordpress/",title:"OpenID Connect",tutorial:"https://tutorials.wpo365.com/courses/single-sign-on-openid-connect/"},{callToAction:"Configure SAML 2.0 based SSO",info:"https://www.wpo365.com/feature/entra-id-based-single-sign-on-for-wordpress/",title:"SAML 2.0",tutorial:"https://tutorials.wpo365.com/courses/single-sign-on-saml-2-0/"},{callToAction:"Configure Azure AD B2C SSO",info:"https://www.wpo365.com/feature/integrate-wordpress-with-azure-ad-b2c/",title:"AAD B2C",tutorial:"https://docs.wpo365.com/article/130-azure-ad-b2c-based-single-sign-on-for-wordpress"},{callToAction:"Configure Entra Ext. ID based SSO",info:"https://www.wpo365.com/feature/integrate-wordpress-with-entra-external-id/",title:"Entra Ext. ID",tutorial:"https://docs.wpo365.com/article/192-entra-external-id-azure-ad-for-customers-based-single-sign-on-for-wordpress"}]})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsxs("strong",{children:["Single Sign-on is ",m.noSso?"disabled":"enabled"]})})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(jn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:!m.noSso,onChange:ee}),Y=="noSso"&&e.jsx(Oe,{size:Te.small})]})})]}),!m.noSso&&e.jsxs(e.Fragment,{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Microsoft Entra ID"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Select Identity Provider (IdP)"}),e.jsx(de,{info:{title:"Select Identity Provider IdP",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/158-select-identity-provider-idp"}}})]})}),e.jsx("td",{children:e.jsx($e,{onChange:(G,re)=>{re.key=="aadB2c"?ie(m.useB2c,()=>x({...m,applicationId:"",applicationSecret:"",appOnlyApplicationId:"",appOnlyApplicationSecret:"",b2cAllowMultiplePolicies:!1,b2cCustomDomain:"",b2cDomainName:"",b2cEnableSignup:!1,b2cPolicyName:"",directoryId:"",domainHint:"",extraUserFieldsSource:qr.idToken,multiTenanted:!1,multiTenantedApiPermissions:[],oidcFlow:kr.code,tld:".com",useAppOnlyToken:!1,useB2c:!0,useCiam:!1,useGcc:!1,useSaml:!1,useSingleAppRegistration:!1,wpToAadCreateUsers:!1,wpToAadIdentityProvider:void 0,wpToAadUserAttributeMappings:[]}),me.titleUseB2c,me.subTextUseB2c):re.key=="aadCiam"?ie(m.useCiam,()=>x({...m,applicationId:"",applicationSecret:"",appOnlyApplicationId:"",appOnlyApplicationSecret:"",b2cAllowMultiplePolicies:!1,b2cCustomDomain:"",b2cDomainName:"",b2cEnableSignup:!1,b2cPolicyName:"",directoryId:"",domainHint:"",extraUserFieldsSource:qr.idToken,multiTenanted:!1,multiTenantedApiPermissions:[],oidcFlow:kr.code,tld:".com",useAppOnlyToken:!1,useB2c:!1,useCiam:!0,useGcc:!1,useSingleAppRegistration:!1,wpToAadCreateUsers:!1,wpToAadIdentityProvider:void 0,wpToAadUserAttributeMappings:[]}),me.titleUseB2c,me.subTextUseB2c):re.key=="gcc"?ie(!1,()=>x({...m,applicationId:"",applicationSecret:"",appOnlyApplicationId:"",appOnlyApplicationSecret:"",b2cAllowMultiplePolicies:!1,b2cCustomDomain:"",b2cDomainName:"",b2cEnableSignup:!1,b2cPolicyName:"",directoryId:"",domainHint:"",extraUserFieldsSource:qr.idToken,multiTenanted:!1,multiTenantedApiPermissions:[],oidcFlow:kr.code,tld:".us",useAppOnlyToken:!1,useB2c:!1,useCiam:!1,useGcc:!0,useSingleAppRegistration:!1,wpToAadCreateUsers:!1,wpToAadIdentityProvider:void 0,wpToAadUserAttributeMappings:[]}),me.titleUseGcc,me.subTextUseGcc):x({...m,applicationId:"",applicationSecret:"",appOnlyApplicationId:"",appOnlyApplicationSecret:"",b2cAllowMultiplePolicies:!1,b2cCustomDomain:"",b2cDomainName:"",b2cEnableSignup:!1,b2cPolicyName:"",directoryId:"",extraUserFieldsSource:qr.graph,multiTenanted:!1,multiTenantedApiPermissions:[],oidcFlow:kr.code,tld:".com",useAppOnlyToken:!1,useB2c:!1,useCiam:!1,useGcc:!1,useSaml:!1,useSingleAppRegistration:!1,wpToAadCreateUsers:!1,wpToAadIdentityProvider:void 0,wpToAadUserAttributeMappings:[]})},placeholder:"Select an option",options:[{key:"aad",text:"Entra ID (default)"},{key:"aadB2c",text:"AAD B2C",disabled:m.useSaml},{key:"aadCiam",text:"Entra External ID (AAD for Customers)",disabled:m.useSaml},{key:"gcc",text:"Government - GCC (High)"}],style:{maxWidth:"400px"},selectedKey:m.useB2c?"aadB2c":m.useCiam?"aadCiam":m.useGcc?"gcc":"aad",disabled:i||d})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Select SSO-protocol"}),e.jsx(de,{info:{title:"Select SSO protocol",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/159-select-sso-protocol"}}})]})}),e.jsx("td",{children:e.jsx($e,{onChange:(G,re)=>{re.key=="saml"?ie(m.useSaml,()=>x({...m,useSaml:!0,useB2c:!1,useSingleAppRegistration:!1,extraUserFieldsSource:qr.samlResponse}),me.titleUseSaml,me.subTextUseSaml):x({...m,useSaml:!1,useB2c:!1,useSingleAppRegistration:!1,extraUserFieldsSource:m.useB2c||m.useCiam?qr.idToken:qr.graph})},placeholder:"Select an option",options:[{key:"oidc",text:"OpenID Connect (default)"},{key:"saml",text:"SAML 2.0",disabled:m.useB2c}],style:{maxWidth:"400px"},selectedKey:m.useSaml?"saml":"oidc",disabled:i||d})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Select authentication scenario"})," ",e.jsx(de,{info:{title:"Authentication scenario",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/36-authentication-scenario"}}})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("span",{style:ZA,children:c.authScenario[0].toUpperCase()+c.authScenario.slice(1)}),e.jsx(Ue,{iconName:"Warning",style:{paddingRight:"5px",color:"#0078D4"}}),e.jsxs("span",{style:{color:"#0078D4"},children:["Can be changed on the ",e.jsx("a",{href:"#rolesAccess",children:"Roles + Access"})," page"]})]})})]}),!m.useSaml&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Select OpenID Connect flow"}),e.jsx(de,{info:{title:"Select OpenID Connect flow",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/156-why-the-authorization-code-user-flow-is-now-recommended"}}})]})}),e.jsx("td",{children:e.jsx($e,{onChange:(G,re)=>{re.key==kr.hybrid?le(()=>x({...m,oidcFlow:kr.hybrid}),"Important","When you select the hybrid flow, you must check the option <em>ID tokens (used for implicit and hybrid flows)</em> for your Entra ID App registration on the <em>Authentication</em> page. Click the <em>i</em> for further details."):le(()=>x({...m,oidcFlow:kr.code}),"Important","When you select the authorization code flow, you must created a <em>Client secret</em> for your Entra ID App registration on the <em>Certificates & secrets</em> page. Click the <em>i</em> for further details.")},placeholder:"Select an option",options:[{key:kr.hybrid,text:"Hybrid flow"},{key:kr.code,text:"Auth.-code flow (recommended)"}],style:{maxWidth:"400px"},selectedKey:m.oidcFlow})})]}),!m.useSaml&&m.oidcFlow==kr.code&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Select OIDC response mode"})," ",e.jsx(de,{info:{title:"Select OIDC response mode",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/208-select-oidc-response-mode"}}})]})}),e.jsx("td",{children:e.jsx($e,{onChange:(G,re)=>{x({...m,oidcResponseMode:re.key})},placeholder:"Select an option",options:[{key:Jf.query,text:"query"},{key:Jf.form_post,text:"form_post"}],style:{maxWidth:"400px"},selectedKey:m.oidcResponseMode})})]}),(!u||n.some(G=>[l.wpo365Customers,l.wpo365Mail,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Avatar,l.wpo365CustomFields,l.wpo365LoginPlus,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro].some(re=>re==G)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Obfuscate Entra ID options"})," ",e.jsx(de,{info:{title:"Use WP-Config(.php) for Entra ID secrets",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/137-use-wp-config-for-aad-secrets"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365Mail,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Avatar,l.wpo365CustomFields,l.wpo365LoginPlus,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(jn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:m.useWpConfig,disabled:!m.useWpConfig&&!i&&!d,onChange:(G,re)=>{x({...m,useWpConfig:re??!1}),P("obfuscate")}}),Y=="obfuscate"&&e.jsx(Oe,{size:Te.small})]})})})]}),m.useSaml&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("span",{style:{color:"#0078d4"},children:"SAML 2.0 Service Provider Metadata"})}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"SP - Base URL"})," ",e.jsx(de,{info:{title:"Generate SAML 2.0 Service Provider metadata",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/100-single-sign-on-with-saml-2-0-for-wordpress"}}})]}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(fe,{isValid:(G,re)=>g&&m.useWpConfig?!0:/^(http|https):\/\//i.test(re),onValid:G=>x({...m,samlBaseUrl:G}),bound:!1,errorMessage:me.errMustBeUrl,value:m.samlBaseUrl,placeholder:me.infoUrl,disabled:i||d}),e.jsx(et,{onClick:()=>J(),styles:{root:{maxHeight:"30px",maxWidth:"90px"}},disabled:i||d,children:"Generate"}),K.status=="exporting"&&e.jsx(Oe,{size:Te.small})]}),K.status=="error"&&e.jsx("p",{style:mx,dangerouslySetInnerHTML:{__html:K.message?K.message:"Unknown error occurred"}})]})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"SP - Entity ID"}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,re)=>g&&m.useWpConfig?!0:/^(http|https):\/\//i.test(re),onValid:G=>x({...m,samlSpEntityId:G}),bound:!1,errorMessage:me.errMustBeUrl,value:m.samlSpEntityId,placeholder:me.infoUrl,disabled:i||d})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"SP - Assertion Consumer Service URL"}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,re)=>g&&m.useWpConfig?!0:/^(http|https):\/\//i.test(re),onValid:G=>x({...m,samlSpAcsUrl:G}),bound:!1,errorMessage:me.errMustBeUrl,value:m.samlSpAcsUrl,placeholder:me.infoUrl,disabled:i||d})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"SP - Single Logout Service URL"}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,re)=>g&&m.useWpConfig?!0:/^(http|https):\/\//i.test(re),onValid:G=>x({...m,samlSpSlsUrl:G}),bound:!1,errorMessage:me.errMustBeUrl,value:m.samlSpSlsUrl,placeholder:me.infoUrl,disabled:i||d})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("span",{style:{color:"#0078d4"},children:"SAML 2.0 IdP Metadata"})}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"IdP - App Federation Metadata URL"})," ",e.jsx(de,{info:{title:"Import SAML 2.0 IdP metadata",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/100-single-sign-on-with-saml-2-0-for-wordpress"}}})]})}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(fe,{isValid:(G,re)=>g&&m.useWpConfig?!0:!re||/^(http|https):\/\//i.test(re),onValid:G=>x({...m,samlIdpMetaDataUrl:G}),errorMessage:"A URL must start with https://",bound:!1,value:m.samlIdpMetaDataUrl,placeholder:"e.g. https://login.microsoftonline.com/<tenant identifier>/federationmetadata/2007-06/federationmetadata.xml?appid=<application identifier>",disabled:i||d}),e.jsx(et,{onClick:()=>z(),styles:{root:{maxHeight:"30px",maxWidth:"90px"}},disabled:!m.samlIdpMetaDataUrl||i||d,children:"Import"}),H.status=="importing"&&e.jsx(Oe,{size:Te.small})]}),H.status=="error"&&e.jsx("p",{style:mx,dangerouslySetInnerHTML:{__html:H.message?H.message:"Unknown error occurred"}})]})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:`${m.useSaml?"IdP - ":""}Directory (tenant) ID`}),e.jsx(de,{info:{title:"Directory ID",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/32-azure-ad-tenant-id"}}})]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,re)=>g&&m.useWpConfig?!0:/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(re),onValid:G=>x({...m,directoryId:G}),bound:!1,errorMessage:me.errDirectoryIdMustBeGuid,value:m.directoryId,placeholder:me.infoDirectoryId,disabled:g&&m.useWpConfig||i||d})})]}),!m.useSaml&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Application (Client) ID"})," ",m.applicationId&&(!g||!m.useWpConfig)&&e.jsx("em",{children:e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/Overview/appId/${m.applicationId}/isMSAApp/`,target:"_blank",children:"View in Entra Portal"})}),e.jsx(de,{info:{title:"Entra ID Application ID",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/33-azure-ad-application-id"}}})]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,re)=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(re),onValid:G=>x({...m,applicationId:G}),bound:!1,errorMessage:me.errApplicationIdMustBeGuid,value:m.applicationId,placeholder:me.infoApplicationId,disabled:g&&m.useWpConfig||i||d})})]}),m.oidcFlow==kr.code&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Application (Client) Secret"}),e.jsx(de,{info:{title:"Application (Client) Secret",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/66-application-secret"}}})]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,re)=>re?!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(re):m.oidcFlow!=kr.code,onValid:G=>{m.useSingleAppRegistration||m.applicationId===c.appOnlyApplicationId?x({...m,applicationSecret:G,appOnlyApplicationSecret:G}):x({...m,applicationSecret:G})},errorMessage:"Please enter a valid secret's Value (not its (GU)ID)",bound:!1,value:m.applicationSecret,disabled:g&&m.useWpConfig||i||d,password:!0})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Skip check for Application (Client) Secret expiration"})," ",e.jsx(de,{info:{title:"Skip check for App registration secret expiration",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/203-skip-check-for-aad-app-registration-secret-expiration"}}})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{checked:c.skipPasswordCredentialsExpiredCheck,disabled:!0}),e.jsx(Ue,{iconName:"Warning",style:{paddingRight:"5px",color:"#0078D4"}}),e.jsxs("span",{style:{color:"#0078D4"},children:["Can be changed on the ",e.jsx("a",{href:"#integration",children:"Integration"})," page"]})]})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Redirect URI"})," ",m.redirectUrl&&(!g||!m.useWpConfig)&&e.jsx("em",{children:e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/Authentication/appId/${m.applicationId}/isMSAApp/`,target:"_blank",children:"View in Entra Portal"})}),e.jsx(de,{info:{title:"Redirect URI",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/34-redirect-uri"}}})]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,re)=>g&&m.useWpConfig?!0:m.redirectUrlStrict?/^(http|https):\/\/.*\/{1}$/i.test(re)&&re.length>o.props.siteUrl.length+2:/^(http|https):\/\/.*\/{1}$/i.test(re),onValid:G=>x({...m,redirectUrl:G}),bound:!1,errorMessage:m.redirectUrlStrict?'Redirect URI cannot be equal to the site address when "strict mode" is selected and must start with http(s):// and end with a trailing slash':me.errRedirectUriMustBeUrl,value:m.redirectUrl,placeholder:me.infoRedirectUri,disabled:g&&m.useWpConfig||i||d})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable strict mode for Redirect URI"}),e.jsx(de,{info:{title:"Enable strict mode for Redirect URI",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/204-enable-strict-mode-for-redirect-uri"}}})]})}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsx(ce,{onChange:(G,re)=>x({...m,redirectUrlStrict:re??!1}),checked:m.redirectUrlStrict,disabled:d}),m.redirectUrlStrict&&(!/^(http|https):\/\/.*\/{1}$/i.test(m.redirectUrl)||m.redirectUrl.length<=o.props.siteUrl.length+2)&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:'Redirect URI cannot be equal to the site address when "strict mode" is selected and must start with http(s):// and end with a trailing slash'})]})})]}),!m.useSaml&&!m.multiTenanted&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Skip ID token verification"}),e.jsx(de,{info:{title:"Skip ID token verification",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/179-id-token-verification"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,re)=>{re?ie(m.skipIdTokenVerification,()=>x({...m,skipIdTokenVerification:!0}),"Important",'Disabling the ID token check is not recommend. Please make sure that you have read the <a href="https://docs.wpo365.com/article/179-id-token-verification" target="_blank">online documentation</a> and are aware of the severe risks.'):x({...m,skipIdTokenVerification:!1})},checked:m.skipIdTokenVerification})})})]}),(!u||n.some(G=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(re=>re==G)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Ignore 3rd party ID tokens"}),e.jsx(de,{info:{title:"Do not process 3rd party ID tokens",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/180-do-not-process-3rd-party-id-tokens"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,re)=>{x({...m,exitOnAudienceError:re??!1})},checked:m.exitOnAudienceError})})})})]})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable silent authentication for Teams"}),e.jsx(de,{info:{title:"Use client-side redirect",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/223-use-client-side-redirect"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,re)=>x({...m,useTeams:re??!1}),checked:m.useTeams})})})]}),(m.useB2c||m.useCiam)&&(!u||n.some(G=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(re=>re==G)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Use custom domain for AAD B2C / Entra Ext. ID"}),e.jsx(de,{info:{title:"Use custom domain for AAD B2C / Entra Ext. ID",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/167-use-custom-domain-for-b2c-login"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,re)=>F(re??!1),checked:T,disabled:i||d})})})})]}),T&&e.jsxs("tr",{children:[e.jsx("th",{children:"Custom domain for AAD B2C / Entra Ext. ID"}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx(fe,{isValid:(G,re)=>!/^((http|https):\/\/)([a-zA-Z0-9@:%._\-\+~#?&\/\$=]*)$/.test(re),onValid:G=>x({...m,b2cCustomDomain:G}),bound:!1,errorMessage:"Custom domain for for AAD B2C / Entra Ext. ID should not start with https://",value:m.b2cCustomDomain,placeholder:"e.g. login.contoso.com"})})})]})]}),(m.useB2c||m.useCiam)&&e.jsxs("tr",{children:[e.jsx("th",{children:"AAD B2C / Entra Ext. ID domain name"}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx(fe,{isValid:(G,re)=>g&&m.useWpConfig?!0:/^[^.]+$/i.test(re),onValid:G=>x({...m,b2cDomainName:G}),bound:!1,errorMessage:me.errMustBeWithoutDots,value:m.b2cDomainName,placeholder:me.infoB2cDomainName,children:e.jsxs("div",{children:[" ",".onmicrosoft.com"]})})})})]}),m.useB2c&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Sign-in B2C policy / user flow name"}),e.jsx(de,{info:{title:"Default B2C policy name",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/169-default-b2c-policy-name"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx(fe,{isValid:(G,re)=>g&&m.useWpConfig?!0:!/^$|\s+/i.test(re),onValid:G=>x({...m,b2cPolicyName:G}),bound:!1,errorMessage:me.errMustNotBeEmptyOrContainWhitespace,value:m.b2cPolicyName,placeholder:me.infoB2cPolicyName})})})]}),m.useB2c&&(!u||n.some(G=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(re=>re==G)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Allow multiple B2C policies"}),e.jsx(de,{info:{title:"Allow multiple B2C policies",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/168-allow-multiple-b2c-policies"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,re)=>x({...m,b2cAllowMultiplePolicies:re??!1}),checked:m.b2cAllowMultiplePolicies,disabled:d})})})})]}),m.useSaml&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"IdP - Entity ID"}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,re)=>g&&m.useWpConfig?!0:/^(http|https):\/\//i.test(re),onValid:G=>x({...m,samlIdpEntityId:G}),bound:!1,errorMessage:me.errMustBeUrl,value:m.samlIdpEntityId,placeholder:me.infoUrl,disabled:i||d})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"IdP - Single Sign-on Service URL"}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,re)=>g&&m.useWpConfig?!0:/^(http|https):\/\//i.test(re),onValid:G=>x({...m,samlIdpSsosUrl:G}),bound:!1,errorMessage:me.errMustBeUrl,value:m.samlIdpSsosUrl,placeholder:me.infoUrl,disabled:i||d})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"IdP - Single Logout Service URL"}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,re)=>g&&m.useWpConfig?!0:/^(http|https):\/\//i.test(re),onValid:G=>x({...m,samlIdpSlsUrl:G}),bound:!1,errorMessage:me.errMustBeUrl,value:m.samlIdpSlsUrl,placeholder:me.infoUrl,disabled:i||d})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"IdP - X509 Certificate"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,defaultValue:m.samlX509Cert,value:m.samlX509Cert,onChange:G=>x({...m,samlX509Cert:G.target.value}),style:{maxWidth:"400px"},disabled:g&&m.useWpConfig||i||d})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("span",{style:{color:"#0078d4"},children:"SSO related options"})}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable requested authn. context"})," ",e.jsx(de,{info:{title:"Enable requested authn. context",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/206-enable-requested-authn-context"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,re)=>x({...m,samlEnableRequestedAuthnContext:re??!1}),checked:m.samlEnableRequestedAuthnContext})})})]}),(!u||n.some(G=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(re=>re==G)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Force re-authentication"})," ",e.jsx(de,{info:{title:"Use SAML 2.0",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/100-configure-single-sign-on-with-saml-2-0"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,re)=>x({...m,samlForceAuthn:re??!1}),checked:m.samlForceAuthn})})})})]})]}),(!u||n.some(G=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(re=>re==G)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Allow users from other tenants"}),e.jsx(de,{info:{title:"Allow users from other tenants",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/50-allow-users-from-other-tenants"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,re)=>{x(re?{...m,multiTenanted:!0}:{...m,multiTenanted:!1,multiTenantedApiPermissions:[]})},checked:m.multiTenanted,disabled:m.useB2c})})})})]}),!m.useSaml&&m.multiTenanted&&(!u||n.some(G=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(re=>re==G)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Multi-tenant API Permissions"}),e.jsx(de,{info:{title:"Multi-tenant API Permissions",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/155-multi-tenant-api-permissions"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(Bo,{list:m.multiTenantedApiPermissions,onListChanged:G=>x({...m,multiTenantedApiPermissions:G}),placeholder:"e.g. https://graph.microsoft.com/User.Read"}),e.jsxs("span",{className:j.wpo365WzRowifier,style:{color:"#0078D4"},children:[e.jsx(Ue,{iconName:"Warning",style:{paddingRight:"5px"}}),e.jsx("em",{children:"openid"}),", ",e.jsx("em",{children:"email"})," and ",e.jsx("em",{children:"profile"})," will be requested by default"]})]})})})]}),!m.useSaml&&!m.useB2c&&!m.useCiam&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Domain hint"})," ",e.jsx("em",{children:e.jsx("a",{href:"https://entra.microsoft.com/#view/Microsoft_AAD_IAM/DomainsManagementMenuBlade/~/CustomDomainNames",target:"_blank",children:"View Custom domain names"})}),e.jsx(de,{info:{title:"Domain hint",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/35-domain-hint"}}})]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(G,re)=>!/^http/i.test(re),onValid:G=>x({...m,domainHint:G}),bound:!1,errorMessage:me.errDomainHintCannotStartWith,value:m.domainHint,placeholder:me.infoDomainHint})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Add prompt=select_account parameter"})," ",e.jsx(de,{info:{title:"Add prompt=select_account parameter",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/112-add-prompt-selectaccount-parameter"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,re)=>x({...m,addSelectAccountPrompt:re??!1,addCreateAccountPrompt:re?!1:m.addCreateAccountPrompt}),checked:m.addSelectAccountPrompt})})})]})]}),(!u||n.some(G=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(re=>re==G)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Order for matching users"})," ",e.jsx(de,{info:{title:"Update order for matching users",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/109-update-order-for-matching-users"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsxs("div",{className:j.wpo365WzColumnifier,style:{width:"100%"},children:[e.jsx(fe,{bound:!1,disabled:!0,value:m.userMatchOrder.join(", "),placeholder:me.infoUserMatchOrder}),e.jsx("div",{className:j.wpo365WzColumnifier,children:te.map(G=>e.jsx("div",{style:{paddingTop:"10px"},children:e.jsx(et,{toggle:!0,checked:m.userMatchOrder.indexOf(G)>=0,text:G,iconProps:m.userMatchOrder.indexOf(G)>=0?{iconName:"Delete"}:{iconName:"Add"},onClick:()=>{const re=m.userMatchOrder.indexOf(G);let He=[...m.userMatchOrder];re>=0?He.splice(re,1):He.push(G),x({...m,userMatchOrder:He})}})}))})]})})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Session duration"})})}),(!u||n.some(G=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(re=>re==G)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Remember (WordPress) user"})," ",e.jsx(de,{info:{title:"Remember user",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/45-remember-user"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(G,re)=>x({...m,rememberUser:re??!1}),checked:m.rememberUser})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Session Duration (use 0 to disable)"})," ",e.jsx(de,{info:{title:"Duration of a session",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/46-session-duration"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx(fe,{isValid:(G,re)=>/^\d+$/.test(re),onValid:G=>x({...m,sessionDuration:parseInt(G)}),bound:!1,errorMessage:me.errSessionDurationMustBeNumeric,value:String(m.sessionDuration),placeholder:me.infoSessionDuration})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(rt,{onClick:()=>ie(!1,async()=>{try{await V(),location.hash="selfTest"}catch{C([new Lr("saveConfiguration",me.errAuthenticationTestFailed,2e3)]),A(Wo.error),L(we.error)}},me.titleBeforeSave,m.authScenario==Gr.intranet?me.subTextBeforeSaveIntranet:me.subTextBeforeSaveInternet),iconProps:{iconName:k==we.success?"Like":void 0},style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px",alignSelf:"start"},disabled:b.length>0||k==we.saving,children:"Save configuration"}),e.jsx("div",{className:j.wpo365WzLabelFor,children:yd(b,"saveConfiguration").map(G=>e.jsx("p",{className:j.wpo365WzP,children:G.message}))}),k==we.success?e.jsx("p",{style:{color:"#378805"},children:me.okSettingsUpdated}):null]})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Bs,{})})}),y&&e.jsx(Ws,{onCancel:y.onCancel,onConfirm:y.onConfirm,onDismiss:y.onDismiss,title:y.title,subText:y.subText})]}),B&&B.dataUrl&&e.jsx("a",{style:{opacity:0},ref:Q,href:B.dataUrl,download:B.fileName})]})},eS=s=>s.slice(-1)=="/"?s:`${s}/`;var sw=(s=>(s.delete="delete",s.get="get",s.patch="patch",s.post="post",s.put="put",s))(sw||{});const tS=async s=>{let o=null,n=null,t=!1;try{o=window.wpo365.blocks.nonce,n=window.wpo365.blocks.apiUrl,t=!0}catch(i){const d=`[FetchUtil::fromGraph] Cannot continue because prerequistes nonce and / or apiUrl are undefined [${i.message}]`;throw console.log(d),d}try{const i=await Ee.post(`${eS(n)}${s.endpoint}`,{query:s.query,scope:s.scope,application:s.application,binary:!!s.binary,data:s.data?s.data:""},{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":o}});if(i.status<200||i.status>299)throw`Unexpected: Response from WPO365 Graph API -> ${i.status} [${i.data?JSON.stringify(i.data):"Check WPO365 log for errors"}]`;if(!i.data||typeof i.data!="object")throw"Unexpected: Response from WPO365 Graph API does not has data";return i.data}catch(i){throw i.response&&i.response.data?JSON.stringify(i.response.data):i.message?i.message:i.toString()}},QA=async s=>{let o=null,n=null,t=!1;try{o=window.wpo365.blocks.nonce,n=window.wpo365.blocks.apiUrl,t=!0}catch(i){const d=`[FetchUtil::fromProxy] Cannot continue because prerequistes nonce and / or apiUrl are undefined [${i.message}]`;throw console.log(d),d}try{const i=await Ee.post(`${eS(n)}${s.endpoint}`,{application:s.application,url:s.url,scope:s.scope,binary:!!s.binary,data:s.data?s.data:"",method:s.method?s.method:sw.get,headers:s.headers?s.headers:{Accept:"application/json",ContentType:"application/json; odata=verbose"}},{headers:{"X-WP-Nonce":o}});if(i.status<200||i.status>299)throw`Unexpected: Response from WPO365 Proxy API -> ${i.status} [${i.data?JSON.stringify(i.data):"Check WPO365 log for errors"}]`;if(!i.data)throw"Unexpected: Response from WPO365 Proxy API does not has data";return typeof i.data!="object"?JSON.parse(i.data):i.data}catch(i){throw i.response&&i.response.data?JSON.stringify(i.response.data):i.message?i.message:i.toString()}},nS=(s,o,n=!1)=>{const t=s.split("/");t.splice(0,4),t[t.length-1]||t.pop();let i="",d="";try{if(t.length>1)i=t.shift(),d=t.join("/");else{const c=t[0].split("?");i=c[0],d=c.length==2?`?${c[1]}`:""}}catch{console.error(`Unexpected: Could not convert URL into IGraphRequest [url -> ${s}]`)}return{endpoint:i,query:d,scope:o,application:n}},ff={minWidth:"400px",minHeight:"100px",padding:"2px",fontSize:"80%"},gf={width:"400px"},fx={search:"Search",hasResults:"Found {0} results for '{1}'",hasNoResults:"No results"},eP=s=>{const{env:o,env:{props:{extensions:n,wpConfigMultiple:t}},settings:i,settings:{hidePremiumOptions:d},updateSettings:c}=E.useContext(Ye),[u,h]=E.useState({additionalInfo:null,addWildcard:!1,autoSearch:!1,cacheKey:Zt(6),dontScroll:!0,emailProperty:"WorkEmail",fixing:null,getUserPhoto:!1,hideContactActionButtons:!0,hideMessageBar:!1,hidePaging:!1,hideSearchBox:!1,imProperty:"UserName",metaHtml:"Modified: __##lastModified##__",minQueryLength:3,mobilePhoneProperty:"MobilePhone",pageSize:10,primaryHtml:"__##Title##__",queryTemplate:"{searchterms}",resultSourceId:"8413cd39-2156-4e00-b54d-11efd9abdb89",resultSourceIdReadOnly:!0,scriptSrc:As("wizard.js").replace("wpo365-login/apps/dist/wizard.js",o.props.extensions.some(y=>y==l.wpo365LoginIntranet||y==l.wpo365Intranet5y||y==l.wpo365Apps||y==l.wpo365Integrate)?`wpo365-${o.props.extensions.some(y=>y==l.wpo365LoginIntranet)?"login-intranet":o.props.extensions.some(y=>y==l.wpo365Intranet5y)?"intranet-5y":o.props.extensions.some(y=>y==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/cbs.js`:"wpo365-login/apps/dist/cbsBasic.js"),secondaryHtml:"__##HitHighlightedSummary##__",selectProperties:"",sharePointHome:"",sharePointHomeError:!1,showContactActionButtons:!0,sortList:"Rank:descending",templateUrl:As("wizard.js").replace("wpo365-login/apps/dist/wizard.js",o.props.extensions.some(y=>y==l.wpo365LoginIntranet||y==l.wpo365Intranet5y||y==l.wpo365Apps||y==l.wpo365Integrate)?`wpo365-${o.props.extensions.some(y=>y==l.wpo365LoginIntranet)?"login-intranet":o.props.extensions.some(y=>y==l.wpo365Intranet5y)?"intranet-5y":o.props.extensions.some(y=>y==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/templates/cbs.intranet.list.template.html`:""),tertiaryHtml:"",translations:fx,uri:"?queryText='{searchterms}'&clienttype='ContentSearchRegular'&properties='ClientFunction:AllResults,EnableDynamicGroups:true'&selectProperties='HitHighlightedSummary,Author,Title,Description,Path,ContentClass,FileExtension,LastModifiedTime,IsDocument,ContentTypeId,ServerRedirectedURL'&sortlist='rank:descending'",useTeams:!0,useTemplate:o.props.extensions.some(y=>y==l.wpo365LoginIntranet||y==l.wpo365Intranet5y||y==l.wpo365Apps||y==l.wpo365Integrate),useV2:!0,useWizard:!0,workPhoneProperty:"WorkPhone",copyButtonCaption:me.capCopyShortcodeButton});let g=E.useRef(null);E.useEffect(()=>{let y=null,v=null;try{tS(nS("https://graph.microsoft.com/v1.0/sites/root","https://graph.microsoft.com/Sites.Read.All")).then(b=>{v=b,b.webUrl&&h({...u,sharePointHome:b.webUrl,sharePointHomeError:!1})}).catch(b=>{y=b});return}catch(b){y=b}console.error(y),console.error(v),h({...u,sharePointHome:"",sharePointHomeError:!0})},[]);const _=y=>{var v=fx;const b=()=>{h({...u,additionalInfo:null})};try{v=JSON.parse(y)}catch{h({...u,additionalInfo:{title:"Error",subText:"Your translations are not properly formatted as JSON and your changes have been reverted.",onDismiss:()=>b,onConfirm:()=>b}}),g.current.value=JSON.stringify(v,null,2),g.current.style.backgroundColor="initial",g.current.focus()}h({...u,translations:v})},m=async y=>{await Fe.updateSettings(o,y);const v=await Fe.getSettings(o);c(v),h({...u,cacheKey:Zt(6)})},x=()=>{document.getElementsByClassName("pintraSpoShortCode")[0].select(),document.execCommand("copy"),h({...u,copyButtonCaption:me.capCopyShortcodeButtonSuccess}),setTimeout(()=>h({...u,copyButtonCaption:me.capCopyShortcodeButton}),3e3)};return e.jsx(e.Fragment,{children:e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsxs("tbody",{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("div",{dangerouslySetInnerHTML:{__html:`<p>To create the shortcode you can use this generator. Simply configure the options and copy the shortcode to the clipboard. Then all 
                             you need to do is to add the shortcode to a page and you're ready!</p>
                             <p>Please consult the online documentation 
                             <a href="https://www.wpo365.com/content-by-search/" target="_blank">https://www.wpo365.com/content-by-search/</a> for instructions on 
                             how to generate a shortcode and place it on any WordPress post or page.</p>`}})})}),t?e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("div",{style:{width:"50%"},children:e.jsx(Zr,{messageBarType:Be.blocked,isMultiline:!0,truncated:!0,overflowButtonAriaLabel:"Read more",children:"It appears that you have configured multiple Identity Providers. Embedding content from a Microsoft 365 service for the logged-in user will not work as expected."})})})}):e.jsxs(e.Fragment,{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"The SharePoint Query"})})}),e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Your SharePoint Home URL"}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[u.sharePointHomeError&&e.jsx(Zr,{messageBarType:Be.warning,isMultiline:!1,dismissButtonAriaLabel:"Close",children:"Please enter the your SharePoint Home URL e.g. https://yourtenantname.sharepoint.com/ manually."}),e.jsx(fe,{bound:!1,isValid:(y,v)=>v.indexOf("https://")===0,onValid:y=>{h({...u,sharePointHome:y})},errorMessage:"SharePoint Home must start with https e.g. https://your-tenant.sharepoint.com",value:u.sharePointHome,disabled:u.sharePointHomeError})]})})]}),(!d||n.some(y=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate].some(v=>v==y)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Add wildcard to each search term"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>h({...u,addWildcard:v??!1}),checked:u.addWildcard})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Results per page"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(y,v)=>{const b=parseInt(v);return v===b.toString()&&b>0&&b<50},onValid:y=>h({...u,pageSize:parseInt(y)}),errorMessage:"pageSize must be number greater than 0 and smaller than 50",value:String(u.pageSize)})})})]}),e.jsxs("tr",{children:[e.jsxs("th",{children:["Write the query yourself"," ",e.jsx("a",{href:"https://docs.microsoft.com/en-us/sharepoint/dev/general-development/sharepoint-search-rest-api-overview",target:"_blank",children:"[Overview]"})]}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>h({...u,useWizard:!(v??!1)}),checked:!u.useWizard})})})})]}),!u.useWizard&&e.jsxs("tr",{children:[e.jsx("th",{children:"Request for SharePoint Search REST API"}),e.jsx("td",{children:e.jsxs(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:[e.jsx("p",{children:`${u.sharePointHome}/_api/search/query`}),e.jsx("textarea",{style:ff,value:u.uri,onChange:y=>h({...u,uri:y.target.value})})]})})]}),u.useWizard&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Select result source"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx($e,{style:{width:"400px"},placeHolder:"Please select a result source from the list",options:[{key:"8413cd39-2156-4e00-b54d-11efd9abdb89",text:"Local SharePoint Results"},{key:"b09a7990-05ea-4af9-81ef-edfab16c4e31",text:"Local People Results"},{key:"other",text:"Enter manually"}],onChange:(y,v)=>{if(!v)return;const b=v.key.toString(),C=b=="8413cd39-2156-4e00-b54d-11efd9abdb89",k=b=="b09a7990-05ea-4af9-81ef-edfab16c4e31";h({...u,resultSourceIdReadOnly:b!="other",primaryHtml:C?"__##Title##__":k?"__##PreferredName##__":"",secondaryHtml:C?"__##HitHighlightedSummary##__":k?"__##JobTitle##__":"",tertiaryHtml:C?"":k?"__##Department##__":"",metaHtml:C?"Modified: __##lastModified##__":"",resultSourceId:v.key=="other"?"":v.key.toString(),selectProperties:k?"UserName|JobTitle|Department|WorkPhone|WorkEmail|MobilePhone":"",hideContactActionButtons:!k})}})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Result source ID"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,resultSourceId:y}),value:u.resultSourceId,disabled:u.resultSourceIdReadOnly})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Query template"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,queryTemplate:y}),value:u.queryTemplate})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Select properties"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,selectProperties:y}),value:u.selectProperties})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Sort list"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,sortList:y}),value:u.sortList})})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Template"})})}),e.jsxs("tr",{children:[e.jsxs("th",{children:["Use (",e.jsx("a",{href:"https://handlebarsjs.com/",target:"_blank",children:"Handlebars"}),") template"]}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>h({...u,useTemplate:v??!1}),checked:u.useTemplate})})})})]}),u.useTemplate&&e.jsxs("tr",{children:[e.jsx("th",{children:"Template"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,templateUrl:y}),value:u.templateUrl})})})]}),!u.useTemplate&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Primary text"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,primaryHtml:y}),value:u.primaryHtml})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Secondary text"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,secondaryHtml:y}),value:u.secondaryHtml})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Tertiary text"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,tertiaryHtml:y}),value:u.tertiaryHtml})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Meta text"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,metaHtml:y}),value:u.metaHtml})})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Try retrieve user photo"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>h({...u,getUserPhoto:v??!1}),checked:u.getUserPhoto})})})})]}),!u.hideContactActionButtons&&!u.useTemplate&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Show contact action buttons"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>h({...u,showContactActionButtons:v??!1}),checked:u.showContactActionButtons})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Mobile phone property"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,mobilePhoneProperty:y}),value:u.mobilePhoneProperty})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Work phone property"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,workPhoneProperty:y}),value:u.workPhoneProperty})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Email property"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,emailProperty:y}),value:u.emailProperty})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"IM property"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,imProperty:y}),value:u.imProperty})})})]}),!u.useTeams&&e.jsxs("tr",{children:[e.jsx("th",{children:"Show contact action buttons"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>h({...u,useTeams:v??!1}),checked:u.useTeams})})})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Hide search box"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>h({...u,hideSearchBox:v??!1}),checked:u.hideSearchBox})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Hide message bar"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>h({...u,hideMessageBar:v??!1}),checked:u.hideMessageBar})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Hide paging"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>h({...u,hidePaging:v??!1}),checked:u.hidePaging})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Translations"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("textarea",{style:ff,ref:y=>g.current=y,defaultValue:JSON.stringify(u.translations,null,2),onBlur:y=>_(y.target.value),onChange:y=>{try{JSON.parse(y.target.value),y.target.style.backgroundColor="initial"}catch{y.target.style.backgroundColor="#FFCCCC"}}})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Triggers"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:"Auto search"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>h({...u,autoSearch:v??!1}),checked:u.autoSearch})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Min. input length"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx(fe,{bound:!1,isValid:(y,v)=>{const b=parseInt(v);return v===b.toString()&&b>0&&b<5},onValid:y=>h({...u,minQueryLength:parseInt(y)}),errorMessage:"minQueryLength must be number greater than 0 and smaller than 5",value:String(u.minQueryLength)})})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Shortcode"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:"Shortcode"}),e.jsxs("td",{children:[n.some(y=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate].some(v=>v==y))&&e.jsx("textarea",{style:ff,readOnly:!0,value:`[pintra props="useV2,true;use64,true;useUri,${u.useWizard?"false":"true"};uri,${u.uri?btoa(u.uri):""};resource,${u.sharePointHome};pageSize,${u.pageSize};minQueryLength,${u.minQueryLength};addWildcard,${u.addWildcard?"true":"false"};autoSearch,${u.autoSearch?"true":"false"};hideMessageBar,${u.hideMessageBar?"true":"false"};hideSearchBox,${u.hideSearchBox?"true":"false"};hidePaging,${u.hidePaging?"true":"false"};dontScroll,${u.dontScroll?"true":"false"};resultSourceId,${u.resultSourceId};queryTemplate,${u.queryTemplate?btoa(u.queryTemplate):""};primaryHtml,${u.primaryHtml};secondaryHtml,${u.secondaryHtml};tertiaryHtml,${u.tertiaryHtml};metaHtml,${u.metaHtml};sortList,${u.sortList};selectProperties,${u.selectProperties};showContactActionButtons,${u.showContactActionButtons?"true":"false"};workPhoneProperty,${u.workPhoneProperty};mobilePhoneProperty,${u.mobilePhoneProperty};emailProperty,${u.emailProperty};imProperty,${u.imProperty};getUserPhoto,${u.getUserPhoto?"true":"false"};useTeams,${u.useTeams?"true":"false"};home,${u.sharePointHome};useTemplate,${u.useTemplate?"true":"false"};templateUrl,${u.templateUrl};translations,${encodeURIComponent(JSON.stringify(u.translations))}" script_url="${u.scriptSrc}"]`,className:"pintraSpoShortCode"}),!n.some(y=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate].some(v=>v==y))&&e.jsx("textarea",{style:ff,readOnly:!0,value:`[pintra props="useV2,true;resource,${u.sharePointHome};home,${u.sharePointHome};translations,${encodeURIComponent(JSON.stringify(u.translations))};useTeams,${u.useTeams?"true":"false"}" script_url="${u.scriptSrc}"]`,className:"pintraSpoShortCode"})]})]}),u.useV2&&!i.enableGraphApi&&e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,style:gf,children:[e.jsxs("p",{children:["Please enable the ",e.jsx("em",{children:"WPO365 API for Microsoft Graph"})," by checking the corresponding option on the"," ",e.jsx("a",{href:"#integration",children:"Integration"})," page or by clicking the ",e.jsx("em",{children:"Fix now!"})," button below."]}),e.jsx("div",{className:j.wpo365WzRowifier}),e.jsx(et,{onClick:async()=>{h({...u,fixing:"graphApi"}),await m({...i,enableGraphApi:!0}),h({...u,fixing:null})},style:{minWidth:"400px",minHeight:"30px"},children:"Fix now!"}),u.fixing=="graphApi"&&e.jsx(Oe,{size:Te.small}),e.jsx("div",{className:j.wpo365WzRowifier})]})})]}),u.useV2&&i.pagesBlacklist.filter(y=>y.indexOf("/wp-json/wpo365/v1")>-1).length===0&&e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,style:gf,children:[e.jsxs("p",{children:["Please add the ",e.jsx("em",{children:"WPO365 API for Microsoft Graph"})," path '/wp-json/wpo365/v1/' to the list of pages freed from authentication on the ",e.jsx("a",{href:"#singleSignOn",children:"Single Sign-on"})," page or click the ",e.jsx("em",{children:"Fix now!"})," button below."]}),e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx(et,{onClick:async()=>{h({...u,fixing:"allowListGraphApiPath"});const y=i.pagesBlacklist.filter(v=>!0);y.push("/wp-json/wpo365/v1/"),await m({...i,pagesBlacklist:y}),h({...u,fixing:null})},style:{minWidth:"400px",minHeight:"30px"},children:"Fix now!"}),u.fixing=="allowListGraphApiPath"&&e.jsx(Oe,{size:Te.small})]})]})})]}),u.useV2&&!i.enableGraphProxy&&e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,style:gf,children:[e.jsxs("p",{children:["Please enable ",e.jsx("em",{children:"Microsoft Graph proxy-type requests"})," by checking the corresponding option on the"," ",e.jsx("a",{href:"#integration",children:"Integration"})," page or by clicking the ",e.jsx("em",{children:"Fix now!"})," button below."]}),e.jsx("div",{className:j.wpo365WzRowifier}),e.jsx(et,{onClick:async()=>{h({...u,fixing:"graphProxy"}),await m({...i,enableGraphProxy:!0}),h({...u,fixing:null})},style:{minWidth:"400px",minHeight:"30px"},children:"Fix now!"}),u.fixing=="graphProxy"&&e.jsx(Oe,{size:Te.small}),e.jsx("div",{className:j.wpo365WzRowifier})]})})]}),u.useV2&&!!u.sharePointHome&&!i.graphAllowAllEndpoints&&i.graphAllowedEndpoints.filter(y=>y.key.indexOf(u.sharePointHome)>-1).length===0&&e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,style:gf,children:[e.jsxs("p",{children:["Please add your ",e.jsx("em",{children:"SharePoint Home URL"})," to the list of allowed proxy-type request endpoints on the"," ",e.jsx("a",{href:"#integration",children:"Integration"})," page or click the ",e.jsx("em",{children:"Fix now!"})," button below."]}),e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx(et,{onClick:async()=>{h({...u,fixing:"allowListEndpoint"});const y=i.graphAllowedEndpoints.filter(v=>!0);y.push({key:u.sharePointHome,boolVal:!1}),await m({...i,graphAllowedEndpoints:y}),h({...u,fixing:null})},style:{minWidth:"400px",minHeight:"30px"},children:"Fix now!"}),u.fixing=="allowListEndpoint"&&e.jsx(Oe,{size:Te.small})]})]})})]}),!u.useV2||u.useV2&&!!u.sharePointHome&&i.enableGraphApi&&i.pagesBlacklist.filter(y=>y.indexOf("/wp-json/wpo365/v1/")>-1).length>0&&(i.graphAllowAllEndpoints||i.graphAllowedEndpoints.filter(y=>y.key.indexOf(u.sharePointHome)>-1).length>0)&&e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsx(et,{onClick:x,iconProps:{iconName:"Copy"},style:{minWidth:"400px",minHeight:"30px"},children:u.copyButtonCaption})})]})]})]})]}),e.jsx("tbody",{children:e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Bs,{})})})})]})})})},es={background:"#ffffff",border:"1px solid #cccccc",boxSizing:"border-box",fontSize:"13px",height:"400px",maxHeight:"400px",maxWidth:"350px",minHeight:"400px",minWidth:"300px",position:"relative"},Hs={backgroundColor:"#f9f9f9",borderBottom:"1px solid #cccccc",display:"block",padding:"15px"},gx={backgroundColor:"#448fd5",border:"2px solid #ffffff",display:"block",padding:"15px"},ts={display:"block",margin:"15px",overflowY:"auto",overflowX:"hidden"},zs={root:{overflowX:"hidden",overflowY:"auto"}},Us={backgroundColor:"#f9f9f9",borderTop:"1px solid #cccccc",display:"block",padding:"15px",height:"45px",lineHeight:"45px"},Kt={fontSize:"13px"},ow={color:"#0078d4",fontWeight:600},rS={color:"#0078d4",marginBottom:"1px",fontWeight:400,marginLeft:"20px",cursor:"pointer"},sS={color:"#0078d4",paddingTop:"1px",marginLeft:"20px"},sl=s=>{const{text:o}=s;return e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},styles:{root:{alignItems:"center"}},children:[e.jsx("h3",{children:o}),e.jsx("span",{style:sS,children:e.jsx(Ue,{iconName:"Diamond",title:"Premium Feature",ariaLabel:"Premium Feature"})}),e.jsx("span",{children:"premium"})]})},sa=s=>{const{alwaysOn:o,checked:n,labelOff:t,labelOn:i,onChange:d,page:c,targets:u}=s,{env:{props:{extensions:h}}}=E.useContext(Ye),g=u.some(v=>h.some(b=>b===v)),_=[],m=E.useMemo(()=>[l.wpo365LoginPlus,l.wpo365Essentials,l.wpo365Mail,l.wpo365RolesAccess,l.wpo365Pro,l.wpo365Integrate,l.wpo365Customers,l.wpo365Scim,l.wpo365Apps].filter(v=>u.indexOf(v)>-1),[]);g||u.map(v=>{const b=v in Op?Op[v]:{name:"NOT FOUND",url:"https://www.wpo365.com/"};m.indexOf(v)>-1&&_.push({key:b.url,text:b.name})});const x=v=>{window.open(v,"_blank")},y=g?e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},styles:{root:{alignItems:"center"}},children:[e.jsx("span",{children:n?i||"Enabled":t||"Disabled"}),c&&n&&e.jsxs("span",{style:rS,onClick:v=>{window.location.hash=c,v.preventDefault(),v.stopPropagation()},children:["configure ",e.jsx(Ue,{iconName:"NavigateExternalInline",title:"Configure",ariaLabel:"Configure"})]})]}):e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},styles:{root:{alignItems:"center"}},children:[e.jsx("span",{children:"Plugins: "}),e.jsx($e,{onChange:(v,b)=>x(b.key),styles:{root:{width:"150px"}},options:_,placeholder:"Select"})]});return e.jsx(jn,{disabled:!g||o,styles:{root:{maxHeight:"45px",marginBottom:"0px"},label:{color:"unset"}},onChange:d,checked:n,inlineLabel:!0,label:y})},tP=s=>{const{env:o,settings:n,env:{props:{extensions:t}},updateSettings:i}=E.useContext(Ye),d=[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],c=d.some(x=>t.some(y=>y===x));if(n.hidePremiumOptions&&!c)return null;const[u,h]=E.useState(n.enableAudiences),[g,_]=E.useState("initial");E.useEffect(()=>{h(n.enableAudiences)},[n.enableAudiences]),E.useEffect(()=>{g=="dirty"&&(_("loading"),Fe.updateSettings(o,{...n,enableAudiences:u}).then(x=>{x.success?Fe.getSettings(o).then(y=>{i(y),_("initial")}).catch(y=>{console.error(y),_("errors")}):_("errors")}).catch(x=>{console.error(x),_("errors")}))},[u]);const m=(x,y)=>{_("dirty"),h(y)};return e.jsxs(U,{style:es,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Hs,children:e.jsx(sl,{text:"AUDIENCES"})})}),e.jsx(U.Item,{grow:1,styles:zs,children:e.jsx("div",{style:ts,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsx("p",{style:Kt,children:"If enabled, admins can restrict access to WordPress posts and pages by requiring that a user is:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Logged in to the website"}),e.jsxs("li",{children:["A member of a specific ",e.jsx("em",{children:"audience"})," (a group of users that is dynamically populated with members of one or more Entra ID groups)"]})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Us,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(sa,{checked:u,labelOff:"Disabled",labelOn:"Enabled",onChange:m,page:je.rolesAccess,targets:d}),g=="loading"&&e.jsx(Oe,{size:Te.small}),g=="errors"&&e.jsx(_n,{content:e.jsx("span",{children:"Could not save your changes. Please try again or check the Developer Console (F12) for errors."}),id:`tooltip_${Zt(4)}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Error",iconName:"Error",style:{fontSize:14,color:"red"}})})]})})})]})},nP=s=>{const{env:o,settings:n,env:{props:{extensions:t}},updateSettings:i}=E.useContext(Ye),d=[l.wpo365Avatar,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Pro,l.wpo365Integrate,l.wpo365Customers],c=d.some(x=>t.some(y=>y===x));if(n.hidePremiumOptions&&!c)return null;const[u,h]=E.useState(n.useAvatar),[g,_]=E.useState("initial");E.useEffect(()=>{h(n.useAvatar)},[n.useAvatar]),E.useEffect(()=>{g=="dirty"&&(_("loading"),Fe.updateSettings(o,{...n,useAvatar:u}).then(x=>{x.success?Fe.getSettings(o).then(y=>{i(y),_("initial")}).catch(y=>{console.error(y),_("errors")}):_("errors")}).catch(x=>{console.error(x),_("errors")}))},[u]);const m=(x,y)=>{_("dirty"),h(y)};return e.jsxs(U,{style:es,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Hs,children:e.jsx(sl,{text:"AVATAR"})})}),e.jsx(U.Item,{grow:1,styles:zs,children:e.jsx("div",{style:ts,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsx("p",{style:Kt,children:"If enabled, the plugin will try and replace a WordPress user's avatar with the user's profile picture from Entra ID. The following features are supported:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Optionally, update the BuddyPress avatar"}),e.jsx("li",{children:"Customize the avatar template"}),e.jsx("li",{children:"Configure the refresh rate"})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Us,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(sa,{checked:u,labelOff:"Disabled",labelOn:"Enabled",onChange:m,page:je.userSync,targets:d}),g=="loading"&&e.jsx(Oe,{size:Te.small}),g=="errors"&&e.jsx(_n,{content:e.jsx("span",{children:"Could not save your changes. Please try again or check the Developer Console (F12) for errors."}),id:`tooltip_${Zt(4)}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Error",iconName:"Error",style:{fontSize:14,color:"red"}})})]})})})]})},rP=s=>{const{settings:o,env:{props:{extensions:n}}}=E.useContext(Ye),t=[l.wpo365CustomFields,l.wpo365LoginProfessional,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365RolesAccess,l.wpo365Integrate,l.wpo365Pro],i=t.some(d=>n.some(c=>c===d));return o.hidePremiumOptions&&!i?null:e.jsxs(U,{style:es,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Hs,children:e.jsx(sl,{text:"CUSTOM USER FIELDS"})})}),e.jsx(U.Item,{grow:1,styles:zs,children:e.jsx("div",{style:ts,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsx("p",{style:Kt,children:"If installed, admins can enrich WordPress user profiles with Entra ID user attributes:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Retrieved from Microsoft Graph (OIDC)"}),e.jsx("li",{children:"Received as custom SAML 2.0 claims (SAML)"}),e.jsx("li",{children:"Received as custom ID token claims"})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Us,children:e.jsx(sa,{alwaysOn:!0,checked:!0,labelOff:"Disabled",labelOn:"Enabled",onChange:()=>{},page:je.userSync,targets:t})})})]})},sP=s=>{const{settings:o,env:{props:{extensions:n}}}=E.useContext(Ye),t=[l.wpo365Customers];return o.hidePremiumOptions&&!t.some(i=>n.some(d=>d===i))?null:e.jsxs(U,{style:es,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Hs,children:e.jsx(sl,{text:"CUSTOMERS"})})}),e.jsx(U.Item,{grow:1,styles:zs,children:e.jsx("div",{style:ts,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:ow,children:[e.jsx(Ue,{iconName:"Cake",title:"Highlight"}),e.jsx("div",{children:"Supporting Entra External ID"})]}),e.jsx("p",{style:Kt,children:"If installed, WPO365 will support seamless-integration scenarios for AAD B2C / Entra Ext. ID:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Bi-directional user synchronization"}),e.jsx("li",{children:"Force users to change their password on next signin"}),e.jsx("li",{children:"Send new customer notifications (incl. temp. pwd)"}),e.jsx("li",{children:"Update WordPress user fields from (custom) claims"}),e.jsx("li",{children:"Support for custom login domain / embedded login"}),e.jsx("li",{children:"Force user to sign in with Microsoft"})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Us,children:e.jsx(sa,{alwaysOn:!0,checked:n.some(i=>i===l.wpo365Customers),labelOff:"Disabled",labelOn:"Enabled",onChange:(i,d)=>{},targets:t})})})]})},mh=s=>{const{alwaysOn:o,checked:n,labelOff:t,labelOn:i,onChange:d,page:c}=s,u=e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},styles:{root:{alignItems:"center"}},children:[e.jsx("span",{children:n?i||"Enabled":t||"Disabled"}),c&&n&&e.jsxs("span",{style:rS,onClick:h=>{window.location.hash=c,h.preventDefault(),h.stopPropagation()},children:["configure ",e.jsx(Ue,{iconName:"NavigateExternalInline",title:"Configure",ariaLabel:"Configure"})]})]});return e.jsx(jn,{disabled:o,styles:{root:{maxHeight:"45px",marginBottom:"0px"},label:{color:"unset"}},onChange:d,checked:n,inlineLabel:!0,label:u})},oP=s=>{const{env:o,settings:n,updateSettings:t}=E.useContext(Ye),[i,d]=E.useState(n.useGraphMailer),[c,u]=E.useState("initial");E.useEffect(()=>{d(n.useGraphMailer)},[n.useGraphMailer]),E.useEffect(()=>{c=="dirty"&&(u("loading"),Fe.updateSettings(o,{...n,useGraphMailer:i}).then(g=>{g.success?Fe.getSettings(o).then(_=>{t(_),u("initial")}).catch(_=>{console.error(_),u("errors")}):u("errors")}).catch(g=>{console.error(g),u("errors")}))},[i]);const h=(g,_)=>{u("dirty"),d(_)};return e.jsxs(U,{style:es,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Hs,children:e.jsx("h3",{children:"MAIL"})})}),e.jsx(U.Item,{grow:1,styles:zs,children:e.jsx("div",{style:ts,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsx("p",{style:Kt,children:"If enabled, admins can re-configure WordPress to send emails using Microsoft Graph (instead of SMTP). The following features are supported:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Send mail as HTML"}),e.jsx("li",{children:"Save to Sent Items"}),e.jsx("li",{children:"Send WordPress files as attachments"})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Us,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(mh,{checked:i,labelOff:"Disabled",labelOn:"Enabled",onChange:h,page:je.mail}),c=="loading"&&e.jsx(Oe,{size:Te.small}),c=="errors"&&e.jsx(_n,{content:e.jsx("span",{children:"Could not save your changes. Please try again or check the Developer Console (F12) for errors."}),id:`tooltip_${Zt(4)}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Error",iconName:"Error",style:{fontSize:14,color:"red"}})})]})})})]})},iP=s=>{const{settings:o,env:{props:{extensions:n}},updateSettings:t}=E.useContext(Ye),i=[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers];return o.hidePremiumOptions&&!i.some(d=>n.some(c=>c===d))?null:e.jsxs(U,{style:es,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Hs,children:e.jsx(sl,{text:"MAIL"})})}),e.jsx(U.Item,{grow:1,styles:zs,children:e.jsx("div",{style:ts,children:e.jsx(U,{tokens:{childrenGap:20},children:e.jsxs(e.Fragment,{children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:ow,children:[e.jsx(Ue,{iconName:"Cake",title:"Highlight"}),e.jsx("div",{children:"New with auto-resend"})]}),e.jsx("p",{style:Kt,children:"If installed, admins can configure the following additional MAIL options:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Auto-resend on failure"}),e.jsx("li",{children:"Mail audit / Resend"}),e.jsx("li",{children:"Send large attachments (> 3 Mb) "}),e.jsx("li",{children:"Send from Shared Mailbox"}),e.jsx("li",{children:"Throttle emails / minute"}),e.jsx("li",{children:"Default Reply-To"}),e.jsx("li",{children:"Send to BCC"})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Us,children:n.some(d=>d==l.wpo365MsGraphMailer)?e.jsx(sa,{alwaysOn:!0,checked:o.useGraphMailer,labelOff:"Disabled",labelOn:"Enabled",onChange:(d,c)=>{},page:je.mail,targets:[l.wpo365Mail]}):e.jsx(sa,{alwaysOn:!0,checked:o.useGraphMailer,labelOff:"Disabled",labelOn:"Enabled",onChange:(d,c)=>{},page:je.mail,targets:i})})})]})},aP=s=>{const{env:{props:{extensions:o}},updateSettings:n}=E.useContext(Ye),i=[l.wpo365Apps,l.wpo365LoginIntranet,l.wpo365Intranet5y,,l.wpo365Integrate].some(d=>o.some(c=>c===d));return e.jsxs(U,{style:es,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Hs,children:e.jsx("h3",{children:"M365 APPS"})})}),e.jsx(U.Item,{grow:1,styles:zs,children:e.jsx("div",{style:ts,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsx("p",{style:Kt,children:"Use these apps to embed Microsoft services and content such as Power BI, SharePoint Online and Yammer in a WordPress page or post using a simple WordPress shortcode."}),e.jsx("p",{style:Kt,children:e.jsxs("em",{children:["Please note that each app also has a"," ",e.jsx("a",{href:"https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/",target:"_blank",children:"premium alternative"})," ","offering advanced features."]})}),e.jsxs("ul",{style:Kt,children:[e.jsxs("li",{children:["Embed Power BI reports, dashboards, etc."," ",e.jsx("a",{style:{marginTop:"5px"},href:`#${je.apps}`,children:"Configure"})]}),e.jsxs("li",{children:["Embed a SharePoint / OneDrive Library or List"," ",e.jsx("a",{style:{marginTop:"5px"},href:`#${je.apps}`,children:"Configure"})]}),e.jsxs("li",{children:["Embed an Outlook / Exchange Calendar"," ",e.jsx("a",{style:{marginTop:"5px"},href:`#${je.apps}`,children:"Configure"})]}),e.jsxs("li",{children:["Embed SharePoint Online search"," ",e.jsx("a",{style:{marginTop:"5px"},href:`#${je.cbsConfigurator}`,children:"Configure"})]}),e.jsxs("li",{children:["Embed an Entra ID based Employee Directory"," ",e.jsx("a",{style:{marginTop:"5px"},href:`#${je.edConfigurator}`,children:"Configure"})]}),e.jsxs("li",{children:["Embed a Yammer Feed"," ",i?e.jsx("a",{style:{marginTop:"5px"},href:`#${je.yammer}`,children:"Configure"}):e.jsx("span",{style:{...sS,paddingLeft:"10px"},children:e.jsx(Ue,{iconName:"Diamond",title:"Premium Feature",ariaLabel:"Premium Feature"})})]})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Us,children:e.jsx(mh,{alwaysOn:!0,checked:!0,labelOff:"Disabled",labelOn:"Enabled",onChange:(d,c)=>{}})})})]})},lP=s=>{const{settings:o,env:{props:{extensions:n}}}=E.useContext(Ye),t=[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],i=t.some(d=>n.some(c=>c===d));return o.hidePremiumOptions&&!i?null:e.jsxs(U,{style:es,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Hs,children:e.jsx(sl,{text:"ROLES + ACCESS"})})}),e.jsx(U.Item,{grow:1,styles:zs,children:e.jsx("div",{style:ts,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:ow,children:[e.jsx(Ue,{iconName:"Cake",title:"Highlight"}),e.jsx("div",{children:"New with LearnDash integration"})]}),e.jsx("p",{style:Kt,children:"If installed, admins can restrict access to the WordPress website by requiring that a user is:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Member of a specific Entra ID Group"}),e.jsx("li",{children:"Member of a specific login domain"})]}),e.jsx("p",{style:Kt,children:"Alternatively, admins can dynamically assign WordPress roles based on a user's:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Entra ID Group memberships"}),e.jsx("li",{children:"Login domains"}),e.jsx("li",{children:"Specific Entra ID user profile attributes"})]}),e.jsx("p",{style:Kt,children:"Plus, admins can dynamically enroll users into LearnDash courses and groups based on a user's:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Entra ID Group memberships"}),e.jsx("li",{children:"Defaults"})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Us,children:e.jsx(sa,{alwaysOn:!0,checked:!0,labelOff:"Disabled",labelOn:"Enabled",onChange:()=>{},page:je.rolesAccess,targets:t})})})]})},dP=s=>{const{env:o,settings:n,env:{props:{extensions:t}},updateSettings:i}=E.useContext(Ye),c=[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate].some(x=>t.some(y=>y===x)),[u,h]=E.useState(n.enableScim),[g,_]=E.useState("initial");E.useEffect(()=>{h(n.enableScim)},[n.enableScim]),E.useEffect(()=>{g=="dirty"&&(_("loading"),Fe.updateSettings(o,{...n,enableScim:u}).then(x=>{x.success?Fe.getSettings(o).then(y=>{i(y),_("initial")}).catch(y=>{console.error(y),_("errors")}):_("errors")}).catch(x=>{console.error(x),_("errors")}))},[u]);const m=(x,y)=>{_("dirty"),h(y)};return e.jsxs(U,{style:es,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Hs,children:e.jsx("h3",{children:"SCIM"})})}),e.jsx(U.Item,{grow:1,styles:zs,children:e.jsx("div",{style:ts,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsxs("p",{style:Kt,children:["If enabled, admins can connect to"," ",e.jsx("a",{href:"https://learn.microsoft.com/en-us/entra/identity/app-provisioning/user-provisioning",target:"_blank",children:"Entra ID Application / User Provisioning (SCIM)"})," ","to sync users to WordPress."]}),!c&&e.jsxs(e.Fragment,{children:[e.jsxs("p",{children:["Unlock any of the following functionality by activating one of the following premium plugins:"," ",e.jsx("a",{href:"https://www.wpo365.com/downloads/wpo365-integrate/",target:"_blank",children:"WPO365 | SCIM"})," ","or"," ",e.jsx("a",{href:"https://www.wpo365.com/downloads/wpo365-scim/",target:"_blank",children:"WPO365 | INTEGRATE"}),"."]}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"(Soft) Delete Users"})," Delete users from WordPress when their account is disabled / deleted permanently in Entra ID."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Update Users"})," Update user attributes when their properties are updated in Entra ID."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Map User Attributes"})," Receive user attributes beyond name and email and store as WordPress user meta."]})]})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Us,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(mh,{checked:u,labelOff:"Disabled",labelOn:"Enabled",onChange:m,page:je.userSync}),g=="loading"&&e.jsx(Oe,{size:Te.small}),g=="errors"&&e.jsx(_n,{content:e.jsx("span",{children:"Could not save your changes. Please try again or check the Developer Console (F12) for errors."}),id:`tooltip_${Zt(4)}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Error",iconName:"Error",style:{fontSize:14,color:"red"}})})]})})})]})},cP=s=>{const{env:o,settings:n,updateSettings:t}=E.useContext(Ye),[i,d]=E.useState(null),[c,u]=E.useState(n.noSso),[h,g]=E.useState("initial");E.useEffect(()=>{u(n.noSso)},[n.noSso]),E.useEffect(()=>{if(h!="dirty")return;g("loading");const x=c?{...n,applicationId:"",applicationSecret:"",authScenario:Gr.internet,b2cAllowMultiplePolicies:!1,b2cCustomDomain:"",b2cDomainName:"",b2cEnableSignup:!1,b2cPolicyName:"",domainHint:"",multiTenanted:!1,multiTenantedApiPermissions:[],noSso:!0,publicHomepage:!1,redirectUrl:"",rememberUser:!1,samlBaseUrl:"",samlClaimMappings:[],samlForceAuthn:!1,samlIdpEntityId:"",samlIdpSlsBinding:"",samlIdpSlsUrl:"",samlIdpSsosBinding:"",samlIdpSsosUrl:"",samlSpAcsBinding:"",useAppOnlyToken:!1,useB2c:!1,useSaml:!1,useCiam:!1,useSingleAppRegistration:!1,wpToAadCreateUsers:!1,wpToAadUserAttributeMappings:[],wpToAadIdentityProvider:void 0}:{...n,noSso:c,redirectUrl:o.props.siteUrl.slice(-1)!="/"?o.props.siteUrl+"/":o.props.siteUrl};Fe.updateSettings(o,x).then(y=>{y.success?Fe.getSettings(o).then(v=>{t(v),g("initial")}).catch(v=>{console.error(v),g("errors")}):g("errors")}).catch(y=>{console.error(y),g("errors")})},[c]);const _=(x,y,v,b)=>{d({title:v,subText:b,onDismiss:()=>d(null),onCancel:()=>d(null),onConfirm:()=>{d(null),y(!x)}})},m=(x,y)=>{_(!c,b=>{g("dirty"),u(!b)},"Confirm",y?"<p>You are enabling Microsoft based single sign-on and can now continue to configure OpenID Connect, SAML 2.0 or AAD B2C / Entra Ext. ID based SSO.</p>":`<p>You have chosen to disable Microsoft based single sign-on. You can still configure and use other features of the WPO365 plugin e.g.
         <ul style="list-style: intial; padding: 0px 0px 0px 20px">
          <li>Sending email using Microsoft Graph</li>
          <li>Synchronizing users from Entra ID to WordPress using <em>application-level</em> permissions</li>
          <li>Embedding Power BI content when the <em>application owns the data</em></li>
          <li>Embedding a SharePoint Library using <em>application-level</em> permissions</li>
         </ul>
         </p>
         <p><strong>Important</strong> <em>Your exising WPO365 configuration will be deleted</em></p>
         `)};return e.jsxs(e.Fragment,{children:[e.jsxs(U,{style:es,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Hs,children:e.jsx("h3",{children:"SINGLE SIGN-ON (SSO)"})})}),e.jsx(U.Item,{grow:1,styles:zs,children:e.jsx("div",{style:ts,children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsx("p",{children:"If enabled, WordPress users can sign into the website using their Microsoft Entra ID account: No password needed. The following features are supported:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"OpenID Connect based SSO"}),e.jsx("li",{children:"SAML 2.0 based SSO"}),e.jsx("li",{children:"Support for Azure AD B2C"}),e.jsx("li",{children:"Support for Entra External ID"}),e.jsxs("li",{children:["Support for multi-tenancy ",e.jsx(Ue,{iconName:"Diamond",title:"Premium Feature",ariaLabel:"Premium Feature"})]})]})]})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Us,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(mh,{checked:!c,labelOff:"Disabled",labelOn:"Enabled",onChange:m,page:je.singleSignOn}),h=="loading"&&e.jsx(Oe,{size:Te.small}),h=="errors"&&e.jsx(_n,{content:e.jsx("span",{children:"Could not save your changes. Please try again or check the Developer Console (F12) for errors."}),id:`tooltip_${Zt(4)}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Error",iconName:"Error",style:{fontSize:14,color:"red"}})})]})})})]}),i&&e.jsx(Ws,{onCancel:i.onCancel,onConfirm:i.onConfirm,onDismiss:i.onDismiss,title:i.title,subText:i.subText})]})},uP=s=>{const{env:o,settings:n,env:{props:{extensions:t}},updateSettings:i}=E.useContext(Ye),d=[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate],c=d.some(x=>t.some(y=>y===x));if(n.hidePremiumOptions&&!c)return null;const[u,h]=E.useState(n.enableUserSync),[g,_]=E.useState("initial");E.useEffect(()=>{h(n.enableUserSync)},[n.enableUserSync]),E.useEffect(()=>{g=="dirty"&&(_("loading"),Fe.updateSettings(o,{...n,enableUserSync:u}).then(x=>{x.success?Fe.getSettings(o).then(y=>{i(y),_("initial")}).catch(y=>{console.error(y),_("errors")}):_("errors")}).catch(x=>{console.error(x),_("errors")}))},[u]);const m=(x,y)=>{_("dirty"),h(y)};return e.jsxs(U,{style:es,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Hs,children:e.jsx(sl,{text:"SYNC"})})}),e.jsx(U.Item,{grow:1,styles:zs,children:e.jsx("div",{style:ts,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsx("p",{style:Kt,children:"If enabled, admins can configure the plugin to synchronize (pull) users from Entra ID to WordPress. The following features are supported:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"On-demand or scheduled user synchronization"}),e.jsx("li",{children:"Actions to create, update, de-activate or delete users"}),e.jsx("li",{children:"Audit log"}),e.jsx("li",{children:"Mail notification for admins"})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Us,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(sa,{checked:u,labelOff:"Disabled",labelOn:"Enabled",onChange:m,page:je.userSync,targets:d}),g=="loading"&&e.jsx(Oe,{size:Te.small}),g=="errors"&&e.jsx(_n,{content:e.jsx("span",{children:"Could not save your changes. Please try again or check the Developer Console (F12) for errors."}),id:`tooltip_${Zt(4)}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Error",iconName:"Error",style:{fontSize:14,color:"red"}})})]})})})]})},pP=s=>{const{env:o,settings:n,updateSettings:t}=E.useContext(Ye),[i,d]=E.useState(n.useWpRestCookies),[c,u]=E.useState("initial");E.useEffect(()=>{d(n.useWpRestCookies)},[n.useWpRestCookies]),E.useEffect(()=>{c=="dirty"&&(u("loading"),Fe.updateSettings(o,{...n,useWpRestCookies:i}).then(g=>{g.success?Fe.getSettings(o).then(_=>{t(_),u("initial")}).catch(_=>{console.error(_),u("errors")}):u("errors")}).catch(g=>{console.error(g),u("errors")}))},[i]);const h=(g,_)=>{u("dirty"),d(_)};return e.jsxs(U,{style:es,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Hs,children:e.jsx("h3",{children:"WP REST API"})})}),e.jsx(U.Item,{grow:1,styles:zs,children:e.jsx("div",{style:ts,children:e.jsx(U,{tokens:{childrenGap:10},children:e.jsxs(e.Fragment,{children:[e.jsx("p",{style:Kt,children:"If enabled, admins can protect the WordPress REST API with a combination of a WordPress authentication cookie and a nonce and configure the following options:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Enable protection for specific endpoints"}),e.jsx("li",{children:"Impersonate the current user"}),e.jsx("li",{children:"Optionally block requests to all other endpoints"})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Us,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(mh,{checked:i,labelOff:"Disabled",labelOn:"Enabled",onChange:h,page:je.integration}),c=="loading"&&e.jsx(Oe,{size:Te.small}),c=="errors"&&e.jsx(_n,{content:e.jsx("span",{children:"Could not save your changes. Please try again or check the Developer Console (F12) for errors."}),id:`tooltip_${Zt(4)}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Error",iconName:"Error",style:{fontSize:14,color:"red"}})})]})})})]})},hP=s=>{const{env:o,settings:n,env:{props:{extensions:t}},updateSettings:i}=E.useContext(Ye),d=[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro];if(n.hidePremiumOptions&&!d.some(m=>t.some(x=>x===m)))return null;const[c,u]=E.useState(n.useWpRestAad),[h,g]=E.useState("initial");E.useEffect(()=>{u(n.useWpRestAad)},[n.useWpRestAad]),E.useEffect(()=>{h=="dirty"&&(g("loading"),Fe.updateSettings(o,{...n,useWpRestAad:c}).then(m=>{m.success?Fe.getSettings(o).then(x=>{i(x),g("initial")}).catch(x=>{console.error(x),g("errors")}):g("errors")}).catch(m=>{console.error(m),g("errors")}))},[c]);const _=(m,x)=>{g("dirty"),u(x)};return e.jsxs(U,{style:es,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Hs,children:e.jsx(sl,{text:"WP REST API"})})}),e.jsx(U.Item,{grow:1,styles:zs,children:e.jsx("div",{style:ts,children:e.jsx(U,{tokens:{childrenGap:20},children:e.jsxs(e.Fragment,{children:[e.jsx("p",{style:Kt,children:"If enabled, admins can protect the WP REST API with access tokens generated by Entra ID en configure the following options:"}),e.jsxs("ul",{style:Kt,children:[e.jsx("li",{children:"Enable protection for specific endpoints"}),e.jsx("li",{children:"Impersonate the current user"}),e.jsx("li",{children:"Optionally block requests to all other endpoints"}),e.jsx("li",{children:"Set a WordPress authentication cookie"})]})]})})})}),e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:Us,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(sa,{checked:c,labelOff:"Disabled",labelOn:"Enabled",onChange:_,page:je.integration,targets:d}),h=="loading"&&e.jsx(Oe,{size:Te.small}),h=="errors"&&e.jsx(_n,{content:e.jsx("span",{children:"Could not save your changes. Please try again or check the Developer Console (F12) for errors."}),id:`tooltip_${Zt(4)}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Error",iconName:"Error",style:{fontSize:14,color:"red"}})})]})})})]})},mP=s=>{const{mailDashboard:o}=s;return e.jsxs(U,{children:[e.jsxs("div",{style:{lineHeight:"1.2rem",marginTop:"1rem",marginBottom:"1.8rem",width:"80%"},children:[e.jsx("strong",{children:"See what matters, when it happens"})," Track key WPO365 events like logins, sent emails and user creation and updates with"," ",e.jsx("a",{href:"#insights",children:"WPO365 Insights"})]}),e.jsxs(U,{horizontal:!0,wrap:!0,tokens:{childrenGap:15},children:[!o&&e.jsx(cP,{}),e.jsx(oP,{}),e.jsx(iP,{}),!o&&e.jsxs(e.Fragment,{children:[e.jsx(sP,{}),e.jsx(lP,{}),e.jsx(tP,{}),e.jsx(dP,{}),e.jsx(uP,{}),e.jsx(aP,{}),e.jsx(rP,{}),e.jsx(nP,{}),e.jsx(pP,{}),e.jsx(hP,{})]})]})]})},fP=s=>{const{env:o,env:{nonce:n,wpAjaxAdminUrl:t,props:{addOns:i,extensions:d}},settings:c,settings:{hidePremiumOptions:u},updateSettings:h}=E.useContext(Ye),[g,_]=E.useState({insightsAlertsEnabled:c.insightsAlertsEnabled,insightsAlertsLogin:c.insightsAlertsLogin,insightsAlertsMail:c.insightsAlertsMail,insightsAlertsNoSensitiveData:c.insightsAlertsNoSensitiveData,insightsAlertsUserCreation:c.insightsAlertsUserCreation}),[m,x]=E.useState("initial"),[y,v]=E.useState(""),[b,C]=E.useState(""),[k,L]=E.useState("initial"),[I,A]=E.useState(!1),Y=async()=>{v(null),L("saving");const T={...c};T.insightsAlertsEnabled=g.insightsAlertsEnabled,T.insightsAlertsLogin=g.insightsAlertsLogin,T.insightsAlertsMail=g.insightsAlertsMail,T.insightsAlertsNoSensitiveData=g.insightsAlertsNoSensitiveData,T.insightsAlertsUserCreation=g.insightsAlertsUserCreation;try{const F=await Fe.updateSettings(o,T);if(F.success){const H=await Fe.getSettings(o);h(H),v(null),L("initial")}else v(F.message)}catch{v("Unknown error occured whilst updating settings [check F12 > console for technical details]")}L("initial")};E.useEffect(()=>{I&&Y().then(()=>A(!1))},[I]),E.useEffect(()=>{(c.insightsAlertsEnabled!=g.insightsAlertsEnabled||c.insightsAlertsLogin!=g.insightsAlertsLogin||c.insightsAlertsMail!=g.insightsAlertsMail||c.insightsAlertsNoSensitiveData!=g.insightsAlertsNoSensitiveData||c.insightsAlertsUserCreation!=g.insightsAlertsUserCreation)&&A(!0)},[g]);const P=async()=>{C(""),x("saving");const T=new FormData;T.append("action","wpo365_send_test_alert"),T.append("nonce",n),T.append("ina",window.wpo365.wizard.props.ina);let F;try{F=await Ee.post(t,T)}catch(H){x("initial"),C(H.message);return}if(x("initial"),F.status>=200&&F.status<300&&F.data&&F.data.status){if(F.data.status=="OK")return;C(F.data.message);return}C(`Error occured (HTTP status ${F.status})`)};return e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsx("p",{children:e.jsx("strong",{children:"See what matters, when it happens"})}),e.jsx("p",{children:"Track key WPO365 events like logins, sent emails and user creation and updates - and get alerted when critical errors occur."}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},style:{marginBottom:"10px"},children:[e.jsx("div",{style:{fontSize:"13px"},children:"Enable alerts"}),e.jsx(jn,{styles:{root:{marginBottom:"0px",marginRight:"10px"},label:{fontWeight:400}},checked:g.insightsAlertsEnabled,onChange:(T,F)=>_({...g,insightsAlertsEnabled:F??!1}),inlineLabel:!0}),k==="saving"&&e.jsx(Oe,{size:Te.small})]}),y&&e.jsx("p",{style:{color:"#ff0000"},children:y}),g.insightsAlertsEnabled&&e.jsxs(e.Fragment,{children:[e.jsxs(U,{style:{marginBottom:"10px"},tokens:{childrenGap:10},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{checked:g.insightsAlertsNoSensitiveData,onChange:(T,F)=>_({...g,insightsAlertsNoSensitiveData:F})}),e.jsx("div",{style:{fontSize:"13px"},children:"No sensitive data"})]}),c.useGraphMailer&&e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{checked:g.insightsAlertsMail,onChange:(T,F)=>_({...g,insightsAlertsMail:F})}),e.jsx("div",{style:{fontSize:"13px"},children:"Email sending issues"})]}),!c.noSso&&e.jsxs(e.Fragment,{children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{checked:g.insightsAlertsLogin,onChange:(T,F)=>_({...g,insightsAlertsLogin:F})}),e.jsx("div",{style:{fontSize:"13px"},children:"Unsuccessful logins"})]}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{checked:g.insightsAlertsUserCreation,onChange:(T,F)=>_({...g,insightsAlertsUserCreation:F})}),e.jsx("div",{style:{fontSize:"13px"},children:"Failed user creation"})]})]})]}),e.jsxs("p",{children:["Enabling WPO365 Alerts implies your acceptance of the"," ",e.jsx("a",{href:"https://docs.wpo365.com/article/210-wpo365-insights#tandc",target:"_blank",children:"Terms and Conditions"}),", including the limited and purpose-specific processing of data in line with GDPR."]}),e.jsx("p",{children:"To send alerts, make sure you're using a premium WPO365 plugin - version 38.0 or later."}),e.jsx("p",{children:'To ensure successful delivery of future alerts, please add "insights@wpo365.com" to your allow list and verify that messages from this address are not marked as spam.'}),e.jsx("p",{children:"Please note that your alert may be placed in a queue. As a result, delivery may be delayed."}),e.jsxs(U,{style:{marginBottom:"10px"},horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(et,{onClick:()=>P(),children:"Send test alert"}),e.jsx("div",{style:{minWidth:"50px"},children:m==="saving"&&e.jsx(Oe,{size:Te.small})})]}),b&&e.jsx("p",{style:{color:"#ff0000"},children:b}),e.jsx("p",{children:'After sending a test alert, please refresh the page, and check for "Alerst (not) submitted successfully".'})]})]})},_x=tl({root:{background:"rgba(0, 0, 0, 0.2)",bottom:"0",left:"0",position:"fixed",right:"0",top:"0"},content:{background:"white",left:"50%",maxWidth:"400px",padding:"0 2em 2em",position:"absolute",top:"50%",transform:"translate(-50%, -50%)"}}),gP=s=>{const{toggleUpgradePopup:o}=s;return e.jsx(vd,{children:e.jsxs(dh,{role:"dialog","aria-modal":"true",onDismiss:()=>o(!1),className:_x.root,children:[e.jsx(wg,{onClick:()=>o(!1)}),e.jsx(su,{children:e.jsxs("div",{role:"document",className:_x.content,children:[e.jsx("h2",{children:"Upgrade Notice"}),e.jsxs("p",{children:["To be able to configure ",e.jsx("strong",{children:"WPO365 Alerts"}),", please"," ",e.jsx("a",{href:"https://www.wpo365.com/wordpress-plugins/",target:"_blank",children:"upgrade to any premium license"}),"."]}),e.jsx(et,{onClick:()=>o(!1),children:"Close"})]})})]})})},_P={background:"#ffffff",border:"1px solid #cccccc",boxSizing:"border-box",fontSize:"13px",height:"400px",maxHeight:"400px",minHeight:"400px",minWidth:"400px",position:"relative",width:"100%"},yP={backgroundColor:"#f9f9f9",borderBottom:"1px solid #cccccc",display:"block",padding:"15px"},wP={display:"block",padding:"15px"},vP={root:{overflowX:"auto",overflowY:"auto"}},xP={backgroundColor:"#f9f9f9",borderTop:"1px solid #cccccc",display:"block",padding:"15px",height:"45px",lineHeight:"45px"},bP={fontWeight:600},yx=tl({root:{background:"rgba(0, 0, 0, 0.2)",bottom:"0",left:"0",position:"fixed",right:"0",top:"0"},content:{background:"white",left:"50%",maxWidth:"400px",padding:"0 2em 2em",position:"absolute",top:"50%",transform:"translate(-50%, -50%)"}}),oS=s=>{const{toggleUpgradePopup:o}=s;return e.jsx(vd,{children:e.jsxs(dh,{role:"dialog","aria-modal":"true",onDismiss:()=>o(!1),className:yx.root,children:[e.jsx(wg,{onClick:()=>o(!1)}),e.jsx(su,{children:e.jsxs("div",{role:"document",className:yx.content,children:[e.jsx("h2",{children:"Upgrade Notice"}),e.jsxs("p",{children:["To expand ",e.jsx("strong",{children:"WPO365 Insights"})," and to change the period to ",e.jsx("strong",{children:"MTD"})," or ",e.jsx("strong",{children:"YTD"})," are premium features. Please"," ",e.jsx("a",{href:"https://www.wpo365.com/wordpress-plugins/",target:"_blank",children:"upgrade to any premium license"}),"."]}),e.jsx(et,{onClick:()=>o(!1),children:"Close"})]})})]})})},Xn=s=>{const{action:o,category:n,status:t,period:i,summaryValue:d,title:c}=s,{settings:u,env:{nonce:h,wpAjaxAdminUrl:g,props:{addOns:_,extensions:m}},updateSettings:x}=E.useContext(Ye),[y,v]=E.useState(!0),[b,C]=E.useState(we.initial),[k,L]=E.useState(""),[I,A]=E.useState([]),[Y,P]=E.useState([]),[T,F]=E.useState(0),[H]=E.useState(25),[W,K]=E.useState(!1),[Z,Q]=E.useState(void 0),B=async()=>{C(we.saving);const $=new FormData;$.append("action","wpo365_get_insights"),$.append("period",i),$.append("event_action",o),$.append("event_category",n),$.append("event_status",t),$.append("start_row",(T*H).toString()),$.append("nonce",h),$.append("ina",window.wpo365.wizard.props.ina);let ie;try{ie=await Ee.post(g,$)}catch(le){C(we.initial),L(le.message);return}if(C(we.initial),ie.status>=200&&ie.status<300&&ie.data&&ie.data.status){if(ie.data.status=="OK"&&ie.data.result&&Array.isArray(ie.data.result)){const le=ie.data.result.map(V=>("event_user"in V&&(V.event_user=JSON.parse(V.event_user)),V));if(le.length>0){const V=[...I].concat(le);A(V),P(V.slice(T*H)),F(T+1)}return}L(ie.data.message);return}L(`Error occured (HTTP status ${ie.status})`)},R=()=>{const $=I.length/H;return Math.ceil($)==T&&Math.floor($)!=$},X=async($="prev")=>{if($=="prev"&&T>1){const ie=T-1,le=(ie-1)*H,V=le+25;P(I.slice(le,V)),F(ie);return}if($=="next"){const ie=I.length/H;if(R())return;if(Math.ceil(ie)>T){const le=T+1,V=(le-1)*H,z=V+25;P(I.slice(V,z)),F(le);return}B()}};return E.useEffect(()=>{y||(_&&Object.keys(_).length>0?I.length==0&&b==we.initial&&B():(K(!0),v(!0)))},[y]),E.useEffect(()=>{I&&I.length==0&&(P([]),F(0))},[I]),e.jsxs(e.Fragment,{children:[e.jsx("table",{children:e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("td",{style:{maxWidth:"35px"},children:b==we.saving?e.jsx(Oe,{size:Te.medium}):e.jsx(Ke,{onClick:()=>v(!y),iconProps:{iconName:y?"ChevronRight":"ChevronDown"}})}),e.jsx("th",{style:bP,children:c}),e.jsx("td",{style:{maxWidth:"35px"},children:d})]}),k&&e.jsx("tr",{children:e.jsx("td",{colSpan:3,children:k})})]})}),!y&&e.jsx("table",{style:{fontSize:"11px",paddingLeft:"47px"},children:e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Date"}),e.jsx("th",{children:"User"}),e.jsx("th",{children:"Data"}),e.jsx("th",{children:"Error / Info"})]}),Y.length>0?Y.map($=>e.jsxs("tr",{children:[e.jsx("td",{children:$.event_timestamp}),e.jsx("td",{style:{whiteSpace:"nowrap"},children:$.event_user.mail?$.event_user.mail:$.event_user.wp_user_login?$.event_user.wp_user_login:$.event_user.display_name?$.event_user.display_name:""}),e.jsx("td",{style:{whiteSpace:"nowrap"},children:$.event_data?e.jsx("a",{href:"javascript: void(0)",onClick:()=>{const ie=Qr($.event_data,{});Q(ie)},children:"View"}):null}),e.jsx("td",{children:$.event_error})]})):_&&Object.keys(_).length>0?e.jsx("tr",{children:e.jsx("td",{colSpan:3,children:"No insights available"})}):null,e.jsx("tr",{children:e.jsx("td",{colSpan:3,children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(et,{primary:!0,onClick:()=>X("prev"),disabled:T<=1,children:"Previous"}),e.jsx("div",{style:{padding:"0px 20px",fontSize:"13px",fontWeight:600,backgroundColor:"#e1e1e1"},children:T}),e.jsx(et,{primary:!0,onClick:()=>X("next"),disabled:R(),children:"Next"})]})})})]})}),W&&e.jsx(oS,{toggleUpgradePopup:K}),Z&&e.jsx(Zc,{isOpen:!!Z,onDismiss:()=>Q(void 0),isBlocking:!0,children:e.jsxs("div",{className:j.modal,children:[e.jsx("div",{style:{alignSelf:"flex-end",padding:"10px 20px 10px 10px"},children:e.jsx("a",{href:"javascript: void(0)",onClick:()=>Q(void 0),children:"Close"})}),e.jsx("table",{style:{border:"1px solid black",borderCollapse:"collapse",fontSize:"11px"},children:Object.keys(Z).map($=>e.jsxs("tr",{children:[e.jsx("th",{style:{border:"1px solid black",borderCollapse:"collapse",padding:"5px"},children:$}),e.jsx("td",{style:{border:"1px solid black",borderCollapse:"collapse",padding:"5px"},children:$ in Z?$=="imageUri"?e.jsx("img",{src:Z[$]}):JSON.stringify(Z[$]):"null"})]}))})]})})]})};var wt=(s=>(s.ALERT="ALERT",s.MAIL="MAIL",s.SCIM="SCIM",s.SSO="SSO",s.SYNC="SYNC",s.WP="WP",s))(wt||{}),vt=(s=>(s.NOK="NOK",s.OK="OK",s))(vt||{}),xt=(s=>(s["wpo365/alert/submitted"]="wpo365/alert/submitted",s["wpo365/mail/sent"]="wpo365/mail/sent",s["wpo365/user/created"]="wpo365/user/created",s["wpo365/user/loggedin"]="wpo365/user/loggedin",s["wpo365/user/updated"]="wpo365/user/updated",s))(xt||{}),Ps=(s=>(s.alerts="alerts",s.login="login",s.mail="mail",s.users="users",s))(Ps||{}),Ts=(s=>(s.TODAY="TODAY",s.WTD="WTD",s.MTD="MTD",s.YTD="YTD",s))(Ts||{});const SP=s=>{const{env:{props:{addOns:o,extensions:n}}}=E.useContext(Ye),{period:t,getInsightsSummary:i,saveStatus:d}=s,[c,u]=E.useState(!1),h=g=>{if([Ts.MTD,Ts.YTD].indexOf(g)>-1&&!(o&&Object.keys(o).length>0)){u(!0);return}i(g)};return e.jsxs(e.Fragment,{children:[e.jsxs(U,{styles:{root:{marginBottom:"20px"}},horizontal:!0,verticalAlign:"center",tokens:{childrenGap:20},children:[e.jsx(et,{primary:t==Ts.TODAY,onClick:()=>h(Ts.TODAY),children:"Today"}),e.jsx(et,{primary:t==Ts.WTD,onClick:()=>h(Ts.WTD),children:"WTD"}),e.jsx(et,{primary:t==Ts.MTD,onClick:()=>h(Ts.MTD),children:"MTD"}),e.jsx(et,{primary:t==Ts.YTD,onClick:()=>h(Ts.YTD),children:"YTD"}),d==we.saving&&e.jsx(Oe,{size:Te.medium})]}),c&&e.jsx(oS,{toggleUpgradePopup:u})]})},Qn=(s,o,n,t)=>{const i=s.filter(d=>d.event_action===o&&d.event_category===n&&d.event_status===t);return i.length===1?i[0].event_count:0},_f=s=>{const{eventType:o,title:n}=s,{settings:t,env:{nonce:i,wpAjaxAdminUrl:d,props:{addOns:c,extensions:u}}}=E.useContext(Ye),[h,g]=E.useState([]),[_,m]=E.useState(we.initial),[x,y]=E.useState(null),[v,b]=E.useState(Ts.TODAY),[C,k]=E.useState(!1),[L,I]=E.useState(!1),[A,Y]=E.useState(!1),P=async(T=Ts.TODAY)=>{m(we.saving),b(T);const F=new FormData;F.append("action","wpo365_get_insights_summary"),F.append("period",T.toString()),F.append("group",o.toString()),F.append("nonce",i),F.append("ina",window.wpo365.wizard.props.ina);let H;try{H=await Ee.post(d,F)}catch(W){m(we.initial),y(W.message);return}if(m(we.initial),H.status>=200&&H.status<300&&H.data&&H.data.status){if(H.data.status=="OK"&&H.data.result&&Array.isArray(H.data.result)){g(H.data.result);return}y(H.data.message);return}y(`Error occured (HTTP status ${H.status})`)};return E.useMemo(()=>{P()},[]),e.jsxs(e.Fragment,{children:[e.jsxs(U,{style:_P,children:[e.jsx(U.Item,{grow:0,children:e.jsx("div",{style:yP,children:o===Ps.alerts?e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsxs("h3",{style:{flexGrow:1,display:"flex",alignItems:"center"},children:[n,!t.insightsAlertsEnabled&&e.jsx("span",{style:{fontSize:"0.8rem",paddingLeft:"1rem",color:"#0078D4"},children:"Not enabled"})]}),e.jsx(el,{style:{alignSelf:"center"},iconProps:{iconName:"Settings"},onClick:()=>{if(!(c&&Object.keys(c).length>0)){Y(!0);return}k(!0)},children:"Configure"})]}):e.jsx("h3",{children:n})})}),e.jsx(U.Item,{grow:1,styles:vP,children:e.jsxs("div",{style:wP,children:[e.jsx(SP,{getInsightsSummary:P,period:v,saveStatus:_}),o==Ps.alerts&&e.jsxs(e.Fragment,{children:[e.jsx(Xn,{action:xt["wpo365/alert/submitted"],category:wt.ALERT,status:vt.OK,period:v,title:"Alerts submitted successfully",summaryValue:Qn(h,xt["wpo365/alert/submitted"],wt.ALERT,vt.OK)},"keyIndicator_1"),e.jsx(Xn,{action:xt["wpo365/alert/submitted"],category:wt.ALERT,status:vt.NOK,period:v,title:"Alerts not submitted successfully",summaryValue:Qn(h,xt["wpo365/alert/submitted"],wt.ALERT,vt.NOK)},"keyIndicator_2")]}),o==Ps.login&&e.jsxs(e.Fragment,{children:[e.jsx(Xn,{action:xt["wpo365/user/loggedin"],category:wt.WP,status:vt.OK,period:v,title:"WP User logged-in successfully",summaryValue:Qn(h,xt["wpo365/user/loggedin"],wt.WP,vt.OK)},"keyIndicator_3"),e.jsx(Xn,{action:xt["wpo365/user/loggedin"],category:wt.WP,status:vt.NOK,period:v,title:"WP User not logged-in successfully",summaryValue:Qn(h,xt["wpo365/user/loggedin"],wt.WP,vt.NOK)},"keyIndicator_4")]}),o==Ps.login&&!t.noSso&&e.jsxs(e.Fragment,{children:[e.jsx(Xn,{action:xt["wpo365/user/loggedin"],category:wt.SSO,status:vt.OK,period:v,title:"SSO User logged-in successfully",summaryValue:Qn(h,xt["wpo365/user/loggedin"],wt.SSO,vt.OK)},"keyIndicator_5"),e.jsx(Xn,{action:xt["wpo365/user/loggedin"],category:wt.SSO,status:vt.NOK,period:v,title:"SSO User not logged-in successfully",summaryValue:Qn(h,xt["wpo365/user/loggedin"],wt.SSO,vt.NOK)},"keyIndicator_6")]}),o==Ps.mail&&(t.useGraphMailer||u.some(T=>T==l.wpo365MsGraphMailer))&&e.jsxs(e.Fragment,{children:[e.jsx(Xn,{action:xt["wpo365/mail/sent"],category:wt.MAIL,status:vt.OK,period:v,title:"Emails sent successfully",summaryValue:Qn(h,xt["wpo365/mail/sent"],wt.MAIL,vt.OK)},"keyIndicator_7"),e.jsx(Xn,{action:xt["wpo365/mail/sent"],category:wt.MAIL,status:vt.NOK,period:v,title:"Emails not sent successfully",summaryValue:Qn(h,xt["wpo365/mail/sent"],wt.MAIL,vt.NOK)},"keyIndicator_8")]}),o==Ps.users&&!t.noSso&&t.createAndAddUsers&&e.jsxs(e.Fragment,{children:[e.jsx(Xn,{action:xt["wpo365/user/created"],category:wt.SSO,status:vt.OK,period:v,title:"Users created successfully (SSO)",summaryValue:Qn(h,xt["wpo365/user/created"],wt.SSO,vt.OK)},"keyIndicator_9"),e.jsx(Xn,{action:xt["wpo365/user/created"],category:wt.SSO,status:vt.NOK,period:v,title:"Users not created successfully (SSO)",summaryValue:Qn(h,xt["wpo365/user/created"],wt.SSO,vt.NOK)},"keyIndicator_10")]}),o==Ps.users&&t.enableUserSync&&e.jsxs(e.Fragment,{children:[e.jsx(Xn,{action:xt["wpo365/user/created"],category:wt.SYNC,status:vt.OK,period:v,title:"Users created successfully (SYNC)",summaryValue:Qn(h,xt["wpo365/user/created"],wt.SYNC,vt.OK)},"keyIndicator_11"),e.jsx(Xn,{action:xt["wpo365/user/created"],category:wt.SYNC,status:vt.NOK,period:v,title:"Users not created successfully (SYNC)",summaryValue:Qn(h,xt["wpo365/user/created"],wt.SYNC,vt.NOK)},"keyIndicator_12"),e.jsx(Xn,{action:xt["wpo365/user/updated"],category:wt.SYNC,status:vt.OK,period:v,title:"Users updated successfully (SYNC)",summaryValue:Qn(h,xt["wpo365/user/updated"],wt.SYNC,vt.OK)},"keyIndicator_13"),e.jsx(Xn,{action:xt["wpo365/user/updated"],category:wt.SYNC,status:vt.NOK,period:v,title:"Users not updated successfully (SYNC)",summaryValue:Qn(h,xt["wpo365/user/updated"],wt.SYNC,vt.NOK)},"keyIndicator_14")]}),o==Ps.users&&t.enableScim&&e.jsxs(e.Fragment,{children:[e.jsx(Xn,{action:xt["wpo365/user/created"],category:wt.SCIM,status:vt.OK,period:v,title:"Users created successfully (SCIM)",summaryValue:Qn(h,xt["wpo365/user/created"],wt.SCIM,vt.OK)},"keyIndicator_15"),e.jsx(Xn,{action:xt["wpo365/user/created"],category:wt.SCIM,status:vt.NOK,period:v,title:"Users not created successfully (SCIM)",summaryValue:Qn(h,xt["wpo365/user/created"],wt.SCIM,vt.NOK)},"keyIndicator_16"),e.jsx(Xn,{action:xt["wpo365/user/updated"],category:wt.SCIM,status:vt.OK,period:v,title:"Users updated successfully (SCIM)",summaryValue:Qn(h,xt["wpo365/user/updated"],wt.SCIM,vt.OK)},"keyIndicator_17"),e.jsx(Xn,{action:xt["wpo365/user/updated"],category:wt.SCIM,status:vt.NOK,period:v,title:"Users not updated successfully (SCIM)",summaryValue:Qn(h,xt["wpo365/user/updated"],wt.SCIM,vt.NOK)},"keyIndicator_18")]})]})}),e.jsx(U.Item,{grow:0,children:e.jsxs("div",{style:xP,children:[e.jsx("strong",{children:"Disclaimer"})," No claims can be made based on this information."]})})]}),e.jsx(vg,{headerText:"Configure WPO365 Alerts",isOpen:C,onDismiss:()=>k(!1),closeButtonAriaLabel:"Close",children:e.jsx(fP,{})}),A&&e.jsx(gP,{toggleUpgradePopup:Y})]})},CP={maxWidth:"400px",color:"#cc0000"},kP=s=>{const{env:o,env:{props:{extensions:n}},settings:t,settings:{hidePremiumOptions:i},updateSettings:d}=E.useContext(Ye),[c,u]=E.useState({insightsEnabled:t.insightsEnabled,insightsAnonymized:t.insightsAnonymized,insightsWidgetHidden:t.insightsWidgetHidden}),[h,g]=E.useState(null),[_,m]=E.useState(we.initial),[x,y]=E.useState(!1),v=async()=>{g(null),m(we.saving);const C={...t};C.insightsEnabled=c.insightsEnabled,C.insightsAnonymized=c.insightsAnonymized,C.insightsWidgetHidden=c.insightsWidgetHidden;try{const k=await Fe.updateSettings(o,C);if(k.success){const L=await Fe.getSettings(o);d(L),g(null),m(we.success)}else g(k.message)}catch{g("Unknown error occured whilst updating settings [check F12 > console for technical details]"),m(we.error)}},b=async()=>{m(we.saving);const C=new FormData;C.append("action","wpo365_truncate_insights_data"),C.append("nonce",o.nonce),C.append("ina",window.wpo365.wizard.props.ina);let k;try{k=await Ee.post(o.wpAjaxAdminUrl,C)}catch(L){m(we.initial),g(L.message);return}if(m(we.initial),k.status>=200&&k.status<300&&k.data&&k.data.status){k.data.status=="NOK"&&g(k.data.message);return}g(`Error occured (HTTP status ${k.status})`)};return E.useEffect(()=>{x&&v().then(()=>y(!1))},[x]),E.useEffect(()=>{(t.insightsEnabled!=c.insightsEnabled||t.insightsAnonymized!=c.insightsAnonymized||t.insightsWidgetHidden!=c.insightsWidgetHidden)&&y(!0)},[c]),e.jsxs(U,{tokens:{childrenGap:15},styles:{root:{marginRight:"80px"}},children:[e.jsxs("div",{style:{lineHeight:"1.2rem",marginTop:"1rem",marginBottom:"0.6rem",width:"80%"},children:[e.jsx("strong",{children:"See what matters, when it happens"})," Track key WPO365 events like logins, sent emails and user creation and updates."," ",e.jsx("a",{href:"https://docs.wpo365.com/article/210-wpo365-insights",target:"_blank",children:"Read more"})]}),e.jsxs("div",{children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:e.jsx("div",{children:"Enable"})}),e.jsx(jn,{styles:{root:{marginBottom:"0px",marginRight:"10px"},label:{fontWeight:400}},checked:c.insightsEnabled,onChange:(C,k)=>u({...c,insightsEnabled:k??!1}),inlineLabel:!0}),c.insightsEnabled&&e.jsxs(e.Fragment,{children:[e.jsx(ce,{onChange:(C,k)=>u({...c,insightsAnonymized:k??!1}),checked:c.insightsAnonymized}),e.jsx("span",{children:"Anonymize"})]}),e.jsx(el,{iconProps:{iconName:"Delete"},onClick:b,children:"Truncate"}),e.jsx(ce,{onChange:(C,k)=>u({...c,insightsWidgetHidden:k??!1}),checked:c.insightsWidgetHidden}),e.jsx("span",{children:"Hide Widget"}),_==we.saving&&e.jsx(Oe,{size:Te.small})]}),!!h&&e.jsx("span",{style:CP,children:h})]}),t.insightsEnabled&&e.jsxs(U,{horizontal:!0,wrap:!0,tokens:{childrenGap:15},children:[e.jsx(_f,{eventType:Ps.alerts,title:"ALERTS"},"insightsCard_1"),(t.useGraphMailer||n.some(C=>l.wpo365MsGraphMailer))&&e.jsx(_f,{eventType:Ps.mail,title:"MAIL"},"insightsCard_2"),n.some(C=>C==l.wpo365Login)&&e.jsx(_f,{eventType:Ps.login,title:"LOGIN"},"insightsCard_2"),(!t.noSso&&t.createAndAddUsers||t.enableUserSync||t.enableScim)&&e.jsx(_f,{eventType:Ps.users,title:"USERS"},"insightsCard_3")]})]})},yf=s=>{const{isGraphMailer:o,showInsights:n}=s,{showWpoHealthMessages:t,setShowWpoHealthMessages:i}=E.useContext(Ye),[d,c]=E.useState(""),[u,h]=E.useState("");return E.useEffect(()=>{Bw("latest-news",!0).then(g=>{if(g instanceof Error){console.log(g.message);return}c(g)}),Bw("change-log",!0).then(g=>{if(g instanceof Error){console.log(g.message);return}h(g)})},[]),e.jsx(e.Fragment,{children:e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,style:{width:"unset"},children:[e.jsxs("colgroup",{children:[e.jsx("col",{style:{width:"64%"}}),e.jsx("col",{style:{width:"32%"}})]}),e.jsxs("tbody",{children:[e.jsxs("tr",{style:{height:"43px"},children:[e.jsx("td",{style:{display:"flex"},children:e.jsxs(U,{styles:{root:{marginBottom:"7px"}},horizontal:!0,tokens:{childrenGap:15},children:[e.jsx(et,{primary:!n,text:"Features",onClick:g=>{location.hash="#/dashboard",g.preventDefault(),g.stopPropagation()}}),e.jsx(et,{primary:!!n,text:"Insights",onClick:g=>{location.hash="#/insights",g.preventDefault(),g.stopPropagation()}}),e.jsx(et,{text:"WPO365 Health Messages",onClick:()=>i(!t)})]})}),e.jsx("td",{rowSpan:2,children:e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs(U,{style:es,children:[e.jsx("div",{style:gx,children:e.jsx("h3",{style:{color:"white",textAlign:"center"},children:"NEWS"})}),e.jsx("div",{style:ts,dangerouslySetInnerHTML:{__html:d}})]}),e.jsxs(U,{style:es,children:[e.jsx("div",{style:gx,children:e.jsx("h3",{style:{color:"white",textAlign:"center"},children:"CHANGE LOG"})}),e.jsx("div",{style:ts,dangerouslySetInnerHTML:{__html:u}})]})]})})]}),e.jsx("tr",{children:e.jsx("td",{children:n?e.jsx(kP,{}):e.jsx(mP,{mailDashboard:o})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Bs,{})})})]})]})})})},wx={search:"Search",hasResults:"About {0} results",hasNoResults:"No results",moreResults:"More results",directReports:"People reporting to",noDirectReports:"has no direct reports"},wf={minWidth:"400px",minHeight:"100px",padding:"2px",fontSize:"80%"},vx={width:"400px"},MP=s=>{const{env:o,env:{props:{extensions:n,wpConfigMultiple:t}},settings:i,settings:{hidePremiumOptions:d},updateSettings:c}=E.useContext(Ye),[u,h]=E.useState({additionalInfo:null,autoSearch:!1,autoSearchQuery:"/users?$filter=accountEnabled eq true and userType eq 'member'",cacheKey:Zt(6),copyButtonCaption:me.capCopyShortcodeButton,emailProperty:"mail",getUserPhoto:!0,hideMessageBar:!1,hidePaging:!1,hideSearchBox:!1,imProperty:"imAddresses",metaHtml:"",minQueryLength:2,mobilePhoneProperty:"mobilePhone",pageSize:10,primaryHtml:"__##displayName##__",query:`/users?$count=true&$search="displayName:{searchterms}" OR "department:{searchterms}" OR "mail:{searchterms}"&$filter=accountEnabled eq true and userType eq 'member'`,queryTemplate:"",scriptSrc:As("wizard.js").replace("wpo365-login/apps/dist/wizard.js",o.props.extensions.some(y=>y==l.wpo365LoginIntranet||y==l.wpo365Intranet5y||y==l.wpo365Apps||y==l.wpo365Integrate)?`wpo365-${o.props.extensions.some(y=>y==l.wpo365LoginIntranet)?"login-intranet":o.props.extensions.some(y=>y==l.wpo365Intranet5y)?"intranet-5y":o.props.extensions.some(y=>y==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/contacts.js`:"wpo365-login/apps/dist/edBasic.js"),secondaryHtml:"__##jobTitle##__",selectProperties:"",sharePointHome:"",sharePointHomeError:!1,sharePointQuery:"?querytext='{searchterms}'&sourceid='b09a7990-05ea-4af9-81ef-edfab16c4e31'&clienttype='ContentSearchRegular'",showContactActionButtons:!0,templateUrl:As("wizard.js").replace("wpo365-login/apps/dist/wizard.js",o.props.extensions.some(y=>y==l.wpo365LoginIntranet||y==l.wpo365Intranet5y||y==l.wpo365Apps||y==l.wpo365Integrate)?`wpo365-${o.props.extensions.some(y=>y==l.wpo365LoginIntranet)?"login-intranet":o.props.extensions.some(y=>y==l.wpo365Intranet5y)?"intranet-5y":o.props.extensions.some(y=>y==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/templates/contacts-v2.intranet.list.template.html`:""),tertiaryHtml:"__##department##__",translations:wx,useBasicEdTemplate:!1,useDefaultSelectProperties:!0,useSharePoint:!1,useTeams:!0,useTemplate:o.props.extensions.some(y=>y==l.wpo365LoginIntranet||y==l.wpo365Intranet5y||y==l.wpo365Apps||y==l.wpo365Integrate),useV2:!0,workPhoneProperty:"businessPhones"});let g=E.useRef(null);E.useEffect(()=>{if(!u.useSharePoint||u.sharePointHome)return;let y=null,v=null;try{tS(nS("https://graph.microsoft.com/v1.0/sites/root","https://graph.microsoft.com/Sites.Read.All")).then(b=>{v=b,b.webUrl&&h({...u,sharePointHome:b.webUrl,sharePointHomeError:!1})}).catch(b=>{y=b});return}catch(b){y=b}console.error(y),console.error(v),h({...u,sharePointHome:"",sharePointHomeError:!0})},[u.useSharePoint]);const _=y=>{var v=wx;const b=()=>{h({...u,additionalInfo:null})};try{v=JSON.parse(y)}catch{h({...u,additionalInfo:{title:"Error",subText:"Your translations are not properly formatted as JSON and your changes have been reverted.",onDismiss:()=>b,onConfirm:()=>b}}),g.current.value=JSON.stringify(v,null,2),g.current.style.backgroundColor="initial",g.current.focus()}h({...u,translations:v})},m=async y=>{await Fe.updateSettings(o,y);const v=await Fe.getSettings(o);c(v),h({...u,cacheKey:Zt(6)})},x=()=>{document.getElementsByClassName("pintraEdShortCode")[0].select(),document.execCommand("copy"),h({...u,copyButtonCaption:me.capCopyShortcodeButtonSuccess}),setTimeout(()=>h({...u,copyButtonCaption:me.capCopyShortcodeButton}),3e3)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsxs("tbody",{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("div",{dangerouslySetInnerHTML:{__html:`<p>To create the shortcode you can use this generator. Simply configure the options and copy the shortcode to the clipboard. Then all 
                             you need to do is to add the shortcode to a page and you're ready!</p>
                             <p>Please consult the <a href="https://docs.wpo365.com/article/111-employee-directory-and-contacts" target="_blank">online documentation</a>
                             for instructions on how to generate a shortcode and place it on any WordPress post or page.</p>`}})})}),t&&e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("p",{style:{width:"50%"},children:e.jsx(Zr,{messageBarType:Be.blocked,isMultiline:!0,truncated:!0,overflowButtonAriaLabel:"Read more",children:"It appears that you have configured multiple Identity Providers. Embedding content from a Microsoft 365 service for the logged-in user will not work as expected, unless you configure support for anonymous users (premium)."})})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("h3",{className:j.wpo365WzSectionTitle,children:["The ",e.jsx("em",{children:"Users"})," Query"]})})}),e.jsx(e.Fragment,{children:(!d||n.some(y=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate].some(v=>v==y)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Use SharePoint People Search (instead of Microsoft Graph)"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>h({...u,useSharePoint:v??!1}),checked:u.useSharePoint})})})})]}),!u.useSharePoint&&e.jsx(e.Fragment,{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Microsoft Graph Query"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(y,v)=>v.indexOf("/users")==0||v.indexOf("/groups")==0,onValid:y=>h({...u,query:y}),value:u.query,errorMessage:"Must start with /users or /groups",placeholder:'e.g. /users?$count=true&$search="displayName:{searchTerms}"'})})})})]})}),u.useSharePoint&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Your SharePoint Home URL"}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[u.sharePointHomeError&&e.jsx(Zr,{messageBarType:Be.warning,isMultiline:!1,dismissButtonAriaLabel:"Close",children:"Please enter the your SharePoint Home URL e.g. https://yourtenantname.sharepoint.com/ manually."}),e.jsx(fe,{bound:!1,isValid:(y,v)=>v.indexOf("https://")===0,onValid:y=>{h({...u,sharePointHome:y})},errorMessage:"SharePoint Home must start with https e.g. https://your-tenant.sharepoint.com",value:u.sharePointHome,disabled:u.sharePointHomeError})]})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Request for SharePoint Search REST API"}),e.jsx("td",{children:e.jsxs(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:[e.jsx("p",{children:`${u.sharePointHome}/_api/search/query`}),e.jsx("textarea",{style:wf,value:u.sharePointQuery,onChange:y=>h({...u,sharePointQuery:y.target.value})})]})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Results per page"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(y,v)=>{const b=parseInt(v);return v===b.toString()&&b>0&&b<50},onValid:y=>h({...u,pageSize:parseInt(y)}),errorMessage:"pageSize must be number greater than 0 and smaller than 50",value:String(u.pageSize)})})})})]}),!u.useDefaultSelectProperties&&e.jsxs("tr",{children:[e.jsxs("th",{children:["Select"," ",e.jsx("a",{href:"https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-beta#properties",target:"_blank",children:"properties"})]}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!v||/(^([a-z]+)$)|(^([a-z]+)(,[a-z]+)*(,[a-z]+)$)/i.test(v),onValid:y=>h({...u,selectProperties:y}),value:u.selectProperties,errorMessage:"Comma seperated properties without a space",placeholder:"e.g. givenName,surname,jobTitle,department"})})})})]})]})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Template"})})}),(!d||n.some(y=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate].some(v=>v==y)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsxs("th",{children:["Use (",e.jsx("a",{href:"https://handlebarsjs.com/",target:"_blank",children:"Handlebars"}),") template"]}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>{h({...u,useTemplate:v??!1,scriptSrc:v??!1?As("wizard.js").replace("wpo365-login/apps/dist/wizard.js",`wpo365-${n.some(b=>b==l.wpo365LoginIntranet)?"login-intranet":n.some(b=>b==l.wpo365Intranet5y)?"intranet-5y":n.some(b=>b==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/contacts.js`):As("wizard.js").replace("wpo365-login/apps/dist/wizard.js",`wpo365-${n.some(b=>b==l.wpo365LoginIntranet)?"login-intranet":n.some(b=>b==l.wpo365Intranet5y)?"intranet-5y":n.some(b=>b==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/ed.js`),templateUrl:v??!1?As("wizard.js").replace("wpo365-login/apps/dist/wizard.js",`wpo365-${n.some(b=>b==l.wpo365LoginIntranet)?"login-intranet":n.some(b=>b==l.wpo365Intranet5y)?"intranet-5y":n.some(b=>b==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/templates/contacts-v2.intranet.list.template.html`):""})},checked:u.useTemplate})})})})]}),u.useTemplate&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Use basic Employee Directory template"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>{h({...u,useBasicEdTemplate:v??!1,scriptSrc:v??!1?As("wizard.js").replace("wpo365-login/apps/dist/wizard.js",`wpo365-${n.some(b=>b==l.wpo365LoginIntranet)?"login-intranet":n.some(b=>b==l.wpo365Intranet5y)?"intranet-5y":n.some(b=>b==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/ed.js`):As("wizard.js").replace("wpo365-login/apps/dist/wizard.js",`wpo365-${n.some(b=>b==l.wpo365LoginIntranet)?"login-intranet":n.some(b=>b==l.wpo365Intranet5y)?"intranet-5y":n.some(b=>b==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/contacts.js`),templateUrl:v??!1?As("wizard.js").replace("wpo365-login/apps/dist/wizard.js",`wpo365-${n.some(b=>b==l.wpo365LoginIntranet)?"login-intranet":n.some(b=>b==l.wpo365Intranet5y)?"intranet-5y":n.some(b=>b==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/templates/ed.intranet.list.template.html`):As("wizard.js").replace("wpo365-login/apps/dist/wizard.js",`wpo365-${n.some(b=>b==l.wpo365LoginIntranet)?"login-intranet":n.some(b=>b==l.wpo365Intranet5y)?"intranet-5y":n.some(b=>b==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/templates/contacts-v2.intranet.list.template.html`)})},checked:u.useBasicEdTemplate})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Template"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,templateUrl:y}),value:u.templateUrl})})})})]})]}),!u.useTemplate&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Primary text"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,primaryHtml:y}),value:u.primaryHtml})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Secondary text"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,secondaryHtml:y}),value:u.secondaryHtml})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Tertiary text"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,tertiaryHtml:y}),value:u.tertiaryHtml})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Meta text"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,metaHtml:y}),value:u.metaHtml})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Include contact action buttons"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>h({...u,showContactActionButtons:v??!1}),checked:u.showContactActionButtons})})})})]}),u.showContactActionButtons&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Mobile phone property"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,mobilePhoneProperty:y}),value:u.mobilePhoneProperty})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Work phone property"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,workPhoneProperty:y}),value:u.workPhoneProperty})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"IM property"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,imProperty:y}),value:u.imProperty})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Email property"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(y,v)=>!0,onValid:y=>h({...u,emailProperty:y}),value:u.emailProperty})})})})]})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Try retrieve user photo"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>h({...u,getUserPhoto:v??!1}),checked:u.getUserPhoto})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Hide search box"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>h({...u,hideSearchBox:v??!1}),checked:u.hideSearchBox})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Hide message bar"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>h({...u,hideMessageBar:v??!1}),checked:u.hideMessageBar})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Hide paging"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>h({...u,hidePaging:v??!1}),checked:u.hidePaging})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Translations"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("textarea",{style:wf,ref:y=>g.current=y,defaultValue:JSON.stringify(u.translations,null,2),onBlur:y=>_(y.target.value),onChange:y=>{try{JSON.parse(y.target.value),y.target.style.backgroundColor="initial"}catch{y.target.style.backgroundColor="#FFCCCC"}}})})})]})]}),!u.useTemplate&&e.jsxs("tr",{children:[e.jsx("th",{children:"Use Teams instead of Skype (IM)"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>h({...u,useTeams:v??!1}),checked:u.useTeams})})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Triggers"})})}),(!d||n.some(y=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate].some(v=>v==y)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Auto search"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(y,v)=>h({...u,autoSearch:v??!1}),checked:u.autoSearch})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Min. input length"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzColumnifier,children:e.jsx(fe,{bound:!1,isValid:(y,v)=>{const b=parseInt(v);return v===b.toString()&&b>0&&b<5},onValid:y=>h({...u,minQueryLength:parseInt(y)}),errorMessage:"minQueryLength must be number greater than 0 and smaller than 5",value:String(u.minQueryLength)})})})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Shortcode"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:"Shortcode"}),e.jsxs("td",{children:[n.some(y=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate].some(v=>v==y))&&e.jsx("textarea",{style:wf,readOnly:!0,value:`[pintra props="useV2,${u.useV2?"true":"false"};useSharePoint,${u.useSharePoint?"true":"false"};sharePointHome,${u.sharePointHome};sharePointQuery,${encodeURI(u.sharePointQuery)};pageSize,${u.pageSize};minQueryLength,${u.minQueryLength};hideMessageBar,${u.hideMessageBar?"true":"false"};hideSearchBox,${u.hideSearchBox?"true":"false"};hidePaging,${u.hidePaging?"true":"false"};primaryHtml,${u.primaryHtml};secondaryHtml,${u.secondaryHtml};tertiaryHtml,${u.tertiaryHtml};metaHtml,${u.metaHtml};showContactActionButtons,${u.showContactActionButtons?"true":"false"};workPhoneProperty,${u.workPhoneProperty};mobilePhoneProperty,${u.mobilePhoneProperty};emailProperty,${u.emailProperty};imProperty,${u.imProperty};getUserPhoto,${u.getUserPhoto?"true":"false"};useTeams,${u.useTeams?"true":"false"};query,${encodeURI(u.query)};autoSearchQuery,${encodeURI(u.autoSearchQuery)};queryTemplate,${u.queryTemplate};selectProperties,${u.useDefaultSelectProperties?"":u.selectProperties.trim().split(",").join("|")};autoSearch,${u.autoSearch?"true":"false"};useTemplate,${u.useTemplate?"true":"false"};templateUrl,${u.templateUrl};translations,${encodeURIComponent(JSON.stringify(u.translations))}" script_url="${u.scriptSrc}"]`,className:"pintraEdShortCode"}),!n.some(y=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Apps,l.wpo365Integrate].some(v=>v==y))&&e.jsx("textarea",{style:wf,readOnly:!0,value:`[pintra props="useV2,${u.useV2?"true":"false"};useTeams,${u.useTeams?"true":"false"};translations,${encodeURIComponent(JSON.stringify(u.translations))}" script_url="${u.scriptSrc}"]`,className:"pintraEdShortCode"})]})]}),u.useV2&&!i.enableGraphApi&&e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,style:vx,children:[e.jsxs("p",{children:["Please enable the ",e.jsx("em",{children:"WPO365 API for Microsoft Graph"})," by checking the corresponding option on the"," ",e.jsx("a",{href:"#integration",children:"Integration"})," page or by clicking the ",e.jsx("em",{children:"Fix now!"})," button below."]}),e.jsx("div",{className:j.wpo365WzRowifier}),e.jsx(et,{onClick:async()=>{h({...u,fixing:"graphApi"}),await m({...i,enableGraphApi:!0}),h({...u,fixing:null})},style:{minWidth:"400px",minHeight:"30px"},children:"Fix now!"}),u.fixing=="graphApi"&&e.jsx(Oe,{size:Te.small}),e.jsx("div",{className:j.wpo365WzRowifier})]})})]}),u.useV2&&i.pagesBlacklist.filter(y=>y.indexOf("/wp-json/wpo365/v1")>-1).length===0&&e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,style:vx,children:[e.jsxs("p",{children:["Please add the ",e.jsx("em",{children:"WPO365 API for Microsoft Graph"})," path '/wp-json/wpo365/v1/' to the list of pages freed from authentication on the ",e.jsx("a",{href:"#singleSignOn",children:"Single Sign-on"})," page or click the ",e.jsx("em",{children:"Fix now!"})," button below."]}),e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx(et,{onClick:async()=>{h({...u,fixing:"allowListGraphApiPath"});const y=i.pagesBlacklist.filter(v=>!0);y.push("/wp-json/wpo365/v1/"),await m({...i,pagesBlacklist:y}),h({...u,fixing:null})},style:{minWidth:"400px",minHeight:"30px"},children:"Fix now!"}),u.fixing=="allowListGraphApiPath"&&e.jsx(Oe,{size:Te.small})]})]})})]}),!u.useV2||u.useV2&&i.enableGraphApi&&i.pagesBlacklist.filter(y=>y.indexOf("/wp-json/wpo365/v1/")>-1).length>0&&e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsx(et,{onClick:x,iconProps:{iconName:"Copy"},style:{minWidth:"400px",minHeight:"30px"},children:u.copyButtonCaption})})]})]}),e.jsx("tbody",{children:e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Bs,{})})})})]})}),u.additionalInfo&&e.jsx(Ws,{onCancel:u.additionalInfo.onCancel,onConfirm:u.additionalInfo.onConfirm,onDismiss:u.additionalInfo.onDismiss,title:u.additionalInfo.title,subText:u.additionalInfo.subText})]})},jP=s=>{const{dismiss:o}=s,{env:n,env:{props:{extensions:t}},settings:i,settings:{hidePremiumOptions:d},updateSettings:c}=E.useContext(Ye),u=F=>{const H=JSON.parse(JSON.stringify(F));return delete H.name,delete H.configurations,H},[h,g]=E.useState(void 0),[_,m]=E.useState(!1),[x,y]=E.useState(JSON.stringify(u(i),null,2));E.useEffect(()=>{y(JSON.stringify(u(i),null,2))},[i]);const[v,b]=E.useState(void 0),[C,k]=E.useState(we.initial),[L,I]=E.useState(!1),A=E.useRef(void 0),Y=F=>{let H=null;try{H=JSON.parse(F),b(void 0)}catch(W){b(`Could not parse the configuration as JSON [${W}]`)}return JSON.stringify(H)},P=async()=>{if(!t.some(H=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(W=>W==H))){I(!0);return}k(we.saving),b(void 0),Y(x);const F=JSON.parse(x);if(v){k(we.initial);return}try{if(F.name=h||i.name,F.configurations=i.configurations,(await Fe.updateSettings(n,F,!0)).success){const W=await Fe.getSettings(n);c(W),b(void 0),k(we.success),g(void 0),m(!1)}else throw"Unknown error occured whilst updating configuration [check F12 > console for technical details]"}catch(H){b(`Could not save the configuration [${H.message}]`),k(we.initial)}o&&setTimeout(()=>{o()},500)},T=()=>{try{A.current.select(),document.execCommand("copy"),A.current.focus()}catch(F){b(`Could not copy configuration to clipboard [${F.message}]`)}};return e.jsxs("div",{className:j.jsonEditor,children:[e.jsx(qp,{className:j.jsonTextArea,multiline:!0,rows:10,label:"Configuration source",style:{backgroundColor:v?"#FFCCCC":"initial"},value:x,onChange:(F,H)=>{H!=x&&(Y(H),y(H))},componentRef:A}),e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("div",{className:j.toolbarItem,children:e.jsx(et,{disabled:!!v,onClick:()=>T(),children:"Copy to clipboard"})}),!t.some(F=>[l.wpo365MsGraphMailer].some(H=>H==F))&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:j.toolbarItem,children:e.jsx(et,{disabled:!!v||!t.some(F=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(H=>H==F)),onClick:()=>t.some(F=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(H=>H==F))&&m(!_),children:_?"Cancel":"Save as"})}),_&&e.jsx("div",{className:j.toolbarItem,children:e.jsx(qp,{styles:{fieldGroup:{width:"144px"}},disabled:!!v||!t.some(F=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(H=>H==F)),placeholder:"Enter name for configuration",value:h,onChange:(F,H)=>g(H)})}),e.jsx("div",{className:j.toolbarItem,children:e.jsx(et,{disabled:!!v,onClick:()=>P(),children:"Save"})}),o&&e.jsx("div",{className:j.toolbarItem,children:e.jsx(et,{disabled:!!v,onClick:()=>o(),children:"Cancel"})}),C==we.saving&&e.jsx("div",{style:{paddingLeft:"10px"},children:e.jsx(Oe,{size:Te.small})})]})]}),v&&e.jsx("div",{children:e.jsx("span",{className:j.wpo365WzError,children:v})}),C==we.success&&e.jsx("div",{children:e.jsx("span",{children:"Configuration was saved successfully"})}),L&&e.jsx("div",{className:j.toolbarItem,children:e.jsxs("span",{children:["Available for:"," ",e.jsx("a",{href:"https://www.wpo365.com/downloads/wordpress-office-365-login-premium/",target:"_blank",children:"SYNC"})," ",e.jsx("a",{href:"https://www.wpo365.com/downloads/wordpress-office-365-login-intranet/",target:"_blank",children:"INTRANET"})]})})]})},LP=s=>{const{env:o,env:{props:{extensions:n,wpmu:t,wpConfigMultiple:i,wpConfigAad:d,wpConfigOverrides:c}},settings:u,settings:{hidePremiumOptions:h},updateSettings:g}=E.useContext(Ye),[_,m]=E.useState(null),[x,y]=E.useState(void 0),[v,b]=E.useState(we.initial),[C,k]=E.useState(void 0),[L,I]=E.useState(we.initial),[A,Y]=E.useState({status:we.initial,options:null}),[P,T]=E.useState(null),[F,H]=E.useState(null),[W,K]=E.useState(null),[Z,Q]=E.useState(we.initial),[B,R]=E.useState(void 0),X=async()=>{eh.TokenCache.clearTokenCache();const z=new FormData;z.append("action","wpo365_delete_tokens"),z.append("nonce",o.nonce),z.append("ina",window.wpo365.wizard.props.ina);let J;try{J=await Ee.post(o.wpAjaxAdminUrl,z)}catch(ee){throw ee}if(!(J.status==200&&J.data&&J.data.status&&J.data.status=="OK"))throw"Unknown error occurred whilst deleting the access and refresh tokens for Microsoft Graph."},$=async(z,J)=>{if(k(void 0),u.name&&u.name==J.key)return;if(I(we.saving),!Array.isArray(u.configurations)){k("There are no configurations to choose from."),I(we.initial);return}const ee=Ja(u.configurations,te=>te.name&&te.name==J.key);if(ee==-1){k("Could not find the requested configuration."),I(we.initial);return}const he={...u.configurations[ee]};he.configurations=[...u.configurations];try{await Fe.updateSettings(o,he,!0);const te=await Fe.getSettings(o);g(te);const G=await X();k(void 0),I(we.success)}catch(te){k(`Failed to update the configuration [${te.message}].`),I(we.initial);return}},ie=async()=>{m({title:"Important",subText:"You are about to delete the WPO365 configuration. This action is irreversible. After deleting the settings you can re-configure the plugin.",onDismiss:()=>m(null),onCancel:()=>m(null),onConfirm:async()=>{if(y(void 0),b(we.saving),Array.isArray(u.configurations)&&u.configurations.length>1&&u.name){const he=Ja(u.configurations,te=>te.name==u.name);if(he>-1){const te=[...u.configurations];te.splice(he,1);const G={...te[0]};G.configurations=te;try{const re=await Fe.updateSettings(o,G);window.location.reload();return}catch(re){m(null),y(`Failed to delete settings [${re.message}].`),b(we.initial);return}}}eh.TokenCache.clearTokenCache();const J=new FormData;J.append("action","wpo365_delete_settings"),J.append("nonce",o.nonce),J.append("ina",window.wpo365.wizard.props.ina);let ee;try{ee=await Ee.post(o.wpAjaxAdminUrl,J)}catch(he){m(null),y(`Failed to delete settings [${he.message}].`),b(we.initial);return}if(ee.status==200&&ee.data&&ee.data.status&&ee.data.status=="OK"){window.location.reload();return}m(null),y("Unknown error occurred [server did not report success]"),b(we.initial)}})},le=async(z=!1)=>{Y({status:we.saving,options:z?"aad":"overrides"}),T(null);const J=new FormData;J.append("action","wpo365_get_parseable_options"),J.append("nonce",o.nonce),J.append("aad_options_only",z.toString()),J.append("ina",window.wpo365.wizard.props.ina);let ee;try{ee=await Ee.post(o.wpAjaxAdminUrl,J)}catch(he){Y({status:we.initial,options:z?"aad":"overrides"}),T(he.message);return}if(Y({status:we.initial,options:z?"aad":"overrides"}),ee.status>=200&&ee.status<300&&ee.data&&ee.data.status){if(ee.data.status=="OK"&&ee.data.result){z?K(atob(ee.data.result)):H(atob(ee.data.result));return}T(ee.data.message);return}T(`Error occured (HTTP status ${ee.status})`)},V=async()=>{Q(we.saving),R(void 0);const z=new FormData;z.append("action","wpo365_copy_main_site_options"),z.append("nonce",o.nonce),z.append("ina",window.wpo365.wizard.props.ina);let J;try{if(J=await Ee.post(o.wpAjaxAdminUrl,z),J.status>=200&&J.status<300&&J.data.status=="OK"){const ee=await Fe.getSettings(o);g(ee),Q(we.initial);return}throw"Unknown error occurred when trying to copy the WPO365 from WPMU Network Admin"}catch(ee){R(ee.message)}Q(we.initial)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Manage configuration(s)"})})}),e.jsx("tr",{children:e.jsxs("td",{colSpan:2,children:["Depending on purchased bundles this page allows you to:",e.jsxs("ul",{children:[e.jsx("li",{children:"Copy the current configuration to the clipboard."}),e.jsx("li",{children:"Save the current configuration under a new name and by doing so create multiple configurations that can be changed independently from one another."}),e.jsx("li",{children:"Change the current configuration by selecting one of the previously saved configurations."}),e.jsx("li",{children:"Edit the configuration's JSON and save it."}),e.jsx("li",{children:"Delete all configurations."})]})]})}),(!h||n.some(z=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(J=>J==z)))&&e.jsxs("tr",{children:[e.jsx("th",{children:"Select current configuration"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx($e,{options:u.configurations?u.configurations.map(z=>({key:z.name,text:z.name})):[],selectedKey:u.name?u.name:void 0,onChange:$,placeholder:"Select current configuration",style:{maxWidth:"400px"}}),L==we.saving&&e.jsx("div",{style:{paddingLeft:"10px"},children:e.jsx(Oe,{size:Te.small})})]})})})]}),C&&e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("span",{className:j.wpo365WzError,children:C})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Copy / Edit configuration(s)"}),e.jsx("td",{children:e.jsx(jP,{})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Delete current configuration"}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx(et,{onClick:ie,style:{minWidth:"400px",minHeight:"30px"},children:"Delete WPO365 configuration"}),v==we.saving&&e.jsx("div",{style:{paddingLeft:"10px"},children:e.jsx(Oe,{size:Te.small})})]})})]}),x&&e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("span",{className:j.wpo365WzError,children:x})})]}),t=="wpmuDedicated"&&location.href.indexOf("/network/")==-1&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Copy central WPO365 configuration (WordPress multisite)"}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx(et,{onClick:V,style:{minWidth:"400px",minHeight:"30px"},children:"Copy options"}),Z==we.saving&&e.jsx("div",{style:{paddingLeft:"10px"},children:e.jsx(Oe,{size:Te.small})})]})})]}),B&&e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("span",{className:j.wpo365WzError,children:B})})]})]}),(!h||n.some(z=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365CustomFields,l.wpo365LoginPlus,l.wpo365Mail,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro].some(J=>J==z)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Export configuration (wp-config.php | WPO_AAD_1)"}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsxs(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365CustomFields,l.wpo365LoginPlus,l.wpo365Mail,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro],children:[e.jsx(et,{disabled:d||i,onClick:()=>le(!0),style:{minWidth:"400px",minHeight:"30px"},children:"Export configuration"}),A.status==we.saving&&A.options=="aad"&&e.jsx("div",{style:{paddingLeft:"10px"},children:e.jsx(Oe,{size:Te.small})})]})})})]}),W&&e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("a",{href:"data:text/json;charset=utf-8,"+encodeURIComponent(W),download:"wpo365-parseable-aad-options.txt",children:"Download parseable Entra ID options"})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Export configuration (wp-config.php | WPO_OVERRIDES_1)"}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsxs(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365CustomFields,l.wpo365LoginPlus,l.wpo365Mail,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro],children:[e.jsx(et,{disabled:c,onClick:()=>le(),style:{minWidth:"400px",minHeight:"30px"},children:"Export configuration"}),A.status==we.saving&&A.options=="overrides"&&e.jsx("div",{style:{paddingLeft:"10px"},children:e.jsx(Oe,{size:Te.small})})]})})})]}),F&&e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("a",{href:"data:text/json;charset=utf-8,"+encodeURIComponent(F),download:"wpo365-parseable-overrides.txt",children:"Download parseable options (overrides)"})})]}),P&&e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsx("span",{className:j.wpo365WzError,children:P})})]})]})]})}),_&&e.jsx(Ws,{onCancel:_.onCancel,onConfirm:_.onConfirm,onDismiss:_.onDismiss,title:_.title,subText:_.subText})]})},EP=s=>{const{disabled:o,errorMessage:n,isValid:t,list:i,onListChanged:d,placeholder:c}=s,[u,h]=E.useState(i?[...i]:[]),[g,_]=E.useState(""),[m,x]=E.useState(!1),[y,v]=E.useState("");return E.useEffect(()=>{JSON.stringify(u)!==JSON.stringify(i)&&d(u)},[u]),e.jsxs(U,{tokens:{childrenGap:10},horizontalAlign:"start",style:{width:"400px"},children:[!o&&e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:{width:"100%"},children:[e.jsx(fe,{value:g,bound:!0,isValid:(b,C)=>(y&&v(""),t&&C?t.test(C):!0),onError:b=>v(b),onValid:b=>{_(b)},errorMessage:n,placeholder:c||void 0}),e.jsx(ce,{onChange:(b,C)=>x(C??!1),checked:m}),e.jsx(Ke,{onClick:()=>{if(!g){v("This setting requires a value");return}const b=[...u];b.push({key:g,boolVal:m}),h([...b]),_(""),x(!1)},iconProps:{iconName:"Add"},title:"Add",ariaLabel:"Click to add this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]}),y&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:y}),!o&&u.length>0&&e.jsx("div",{style:{width:"400px",height:"1px",backgroundColor:"black"}}),u.map((b,C)=>e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:{width:"100%"},children:[e.jsx(fe,{value:b.key,disabled:!0,bound:!1}),e.jsx(ce,{checked:b.boolVal,disabled:!0}),e.jsx(Ke,{onClick:()=>{const k=[...u];k.splice(C,1),h(k)},iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]},btoa(b.key)))]})};class xx{strA="";strB="";strC=""}const DP={maxWidth:"400px"},IP=s=>{const{list:o,onListChanged:n,strA_Label:t,strA_Placeholder:i,strA_IsValid:d,strA_ErrorMessage:c,strB_Label:u,strB_Placeholder:h,strB_IsValid:g,strB_ErrorMessage:_,strC_Label:m,strC_Placeholder:x,strC_IsValid:y,strC_ErrorMessage:v,vertical:b}=s,[C,k]=E.useState(Array.isArray(o)?[...o]:[]),[L,I]=E.useState(new xx),[A,Y]=E.useState(!1),P=E.useMemo(()=>Zt(6),[]);return E.useEffect(()=>{L.strA&&d(L.strA)&&L.strB&&g(L.strB)&&L.strC&&y(L.strC)?Y(!0):Y(!1)},[L]),E.useEffect(()=>{n([...C])},[C]),e.jsx("div",{style:DP,children:e.jsxs(U,{tokens:{childrenGap:"15px"},children:[C.map((T,F)=>e.jsxs(U,{horizontal:!0,verticalAlign:"end",children:[e.jsxs(U,{tokens:{childrenGap:"3px"},children:[e.jsx(fe,{bound:!1,value:T.strA,disabled:!0,id:`wpo_ste_a_${P}_${F}`}),e.jsx(fe,{bound:!1,value:T.strB,disabled:!0,id:`wpo_ste_b_${P}_${F}`}),e.jsx(fe,{bound:!1,value:T.strC,disabled:!0,id:`wpo_ste_c_${P}_${F}`})]}),e.jsx(Ke,{onClick:()=>{const H=[...C];H.splice(F,1),k(H)},iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,cursor:"pointer"}})]})),e.jsxs(U,{horizontal:!0,verticalAlign:"end",children:[e.jsxs(U,{tokens:{childrenGap:"3px"},children:[e.jsx(fe,{isValid:(T,F)=>d?d(F):!0,onValid:T=>{I({...L,strA:T})},bound:!1,errorMessage:c,value:L.strA,placeholder:i,id:`wpo_ste_a_${P}_${C.length}`}),e.jsx(fe,{isValid:(T,F)=>g?g(F):!0,onValid:T=>{I({...L,strB:T})},bound:!1,errorMessage:_,value:L.strB,placeholder:h,id:`wpo_ste_b_${P}_${C.length}`}),e.jsx(fe,{isValid:(T,F)=>y?y(F):!0,onValid:T=>{I({...L,strC:T})},bound:!1,errorMessage:v,value:L.strC,placeholder:x,id:`wpo_ste_c_${P}_${C.length}`})]}),e.jsx(Ke,{onClick:()=>{k([...C,{...L}]),I(new xx)},iconProps:{iconName:"Add"},title:"Add",ariaLabel:"Click to add a new item",disabled:!A,style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,cursor:"pointer"}})]})]})})},iw=s=>{const{keyErrorMessage:o,keyIsValid:n,keyPlaceholder:t,list:i,onListChanged:d,valueErrorMessage:c,valueIsValid:u,valuePlaceholder:h}=s,[g,_]=E.useState(i?[...i]:[]),[m,x]=E.useState(""),[y,v]=E.useState(""),[b,C]=E.useState(""),[k,L]=E.useState(""),[I,A]=E.useState("");return E.useEffect(()=>{JSON.stringify(g)!==JSON.stringify(i)&&d(g)},[g]),e.jsxs(U,{tokens:{childrenGap:10},horizontalAlign:"start",style:{width:"400px"},children:[e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},style:{width:"100%"},children:[e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,errorMessage:o,isValid:(Y,P)=>{if(b&&C(""),I&&A(""),n&&P){if(typeof n=="function")return n(P);if(n instanceof RegExp)return n.test(P);console.warn("No valid method provided to validate the key.")}return!0},onError:Y=>C(Y),onValid:Y=>{x(Y)},placeholder:t||void 0,value:m}),e.jsx("div",{style:{width:"30px",height:"30px",padding:0}})]}),e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,errorMessage:c,isValid:(Y,P)=>{if(k&&L(""),I&&A(""),u&&P){if(typeof u=="function")return u(P);if(u instanceof RegExp)return u.test(P);console.warn("No valid method provided to validate the value.")}return!0},onError:Y=>L(Y),onValid:Y=>{v(Y)},placeholder:h||void 0,value:y}),e.jsx(Ke,{onClick:()=>{if(!m||!y){A("This setting requires a value");return}const Y=[...g];Y.push({key:m,value:y}),_([...Y]),v(""),x("")},iconProps:{iconName:"Add"},title:"Add",ariaLabel:"Click to add this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]})]}),b&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:b}),k&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:k}),I&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:I}),g.length>0&&e.jsx("div",{style:{width:"400px",height:"1px",backgroundColor:"black"}}),g.map((Y,P)=>e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},style:{width:"100%",marginBottom:"20px"},children:[e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!1,value:Y.key,disabled:!0}),e.jsx("div",{style:{width:"30px",height:"30px",padding:0}})]}),e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!1,value:Y.value,disabled:!0}),e.jsx(Ke,{onClick:()=>{const T=[...g];T.splice(P,1),_(T)},iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]})]},`${btoa(Y.key)}-${btoa(Y.value)}`))]})},TP=s=>{const{env:o,env:{props:{extensions:n,wpConfigAad:t,wpConfigMultiple:i}},settings:d,settings:{hidePremiumOptions:c},updateSettings:u}=E.useContext(Ye),[h]=E.useState(o.props.addOns&&Object.keys(o.props.addOns).length>0),[g,_]=E.useState({applicationId:d.applicationId,applicationSecret:d.applicationSecret,appOnlyApplicationId:d.appOnlyApplicationId,appOnlyApplicationSecret:d.appOnlyApplicationSecret,cacheKey:Zt(6),directoryId:d.tenantId,enableGraphApi:d.enableGraphApi,enableGraphProxy:d.enableGraphProxy,enableNonceCheck:d.enableNonceCheck,enableTokenService:d.enableTokenService,graphAllowAllEndpoints:d.graphAllowAllEndpoints,graphAllowedEndpoints:d.graphAllowedEndpoints,graphAllowTokenRetrieval:d.graphAllowTokenRetrieval,graphPermissionLevel:d.graphPermissionLevel,graphVersion:d.graphVersion,mailTenantId:d.mailTenantId,mailApplicationId:d.mailApplicationId,mailApplicationSecret:d.mailApplicationSecret,mailRedirectUrl:d.mailRedirectUrl,useAlternativeCdn:d.useAlternativeCdn,useAppOnlyToken:d.useAppOnlyToken,usePkce:d.usePkce,useSingleAppRegistration:d.useSingleAppRegistration,useWpConfig:d.useWpConfig,useWpRestAad:d.useWpRestAad,useWpRestCookies:d.useWpRestCookies,redirectUrl:d.redirectUrl,samlX509Cert:d.samlX509Cert,skipPasswordCredentialsExpiredCheck:d.skipPasswordCredentialsExpiredCheck,wpRestAadApplicationId:d.wpRestAadApplicationId,wpRestAadApplicationIdUri:d.wpRestAadApplicationIdUri,wpRestAadProtectedEndpoints:d.wpRestAadProtectedEndpoints,wpRestAadUseAppRoles:d.wpRestAadUseAppRoles,wpRestBlock:d.wpRestBlock,wpRestCookiesProtectedEndpoints:d.wpRestCookiesProtectedEndpoints,wpRestSetCookies:d.wpRestSetCookies}),[m,x]=E.useState(null),[y,v]=E.useState(null),[b,C]=E.useState([]),[k,L]=E.useState(we.initial),[I,A]=E.useState(Va.initial),Y=E.useRef(g.appOnlyApplicationSecret),P=(W,K,Z,Q)=>{if(W){K(!1);return}v({title:Z,subText:Q,onDismiss:()=>v(null),onCancel:()=>v(null),onConfirm:()=>{v(null),K(!0)}})},T=async()=>{if(!confirm(["You are about to delete the server-side cached O365 access and refresh tokens for all users.","After deleting all tokens, users need to log in interactively for the plugin to be able to retrieve","(a) new access token(s) once their current token(s) expire."].join(" ")))return;eh.TokenCache.clearTokenCache();const W=new FormData;W.append("action","wpo365_delete_tokens"),W.append("nonce",o.nonce),W.append("ina",window.wpo365.wizard.props.ina);let K;try{K=await Ee.post(o.wpAjaxAdminUrl,W)}catch{A(Va.error);return}if(K.status==200&&K.data&&K.data.status&&K.data.status=="OK"){A(Va.success);return}A(Va.error)},F=async()=>{C([]),L(we.saving);const W={...d};W.applicationId=g.applicationId,W.applicationSecret=g.applicationSecret,W.appOnlyApplicationId=g.appOnlyApplicationId,W.appOnlyApplicationSecret=g.appOnlyApplicationSecret,W.tenantId=g.directoryId,W.enableGraphApi=g.enableGraphApi,W.enableGraphProxy=g.enableGraphProxy,W.enableNonceCheck=g.enableNonceCheck,W.enableTokenService=g.enableTokenService,W.graphAllowAllEndpoints=g.graphAllowAllEndpoints,W.graphAllowedEndpoints=g.graphAllowedEndpoints,W.graphAllowTokenRetrieval=g.graphAllowTokenRetrieval,W.graphPermissionLevel=g.graphPermissionLevel,W.graphVersion=g.graphVersion,W.redirectUrl=g.redirectUrl,W.samlX509Cert=g.samlX509Cert,W.skipPasswordCredentialsExpiredCheck=g.skipPasswordCredentialsExpiredCheck,W.useAlternativeCdn=g.useAlternativeCdn,W.useAppOnlyToken=g.useAppOnlyToken,W.usePkce=g.usePkce,W.useSingleAppRegistration=g.useSingleAppRegistration,W.useWpConfig=g.useWpConfig,W.useWpRestAad=g.useWpRestAad,W.useWpRestCookies=g.useWpRestCookies,W.wpRestAadApplicationId=g.wpRestAadApplicationId,W.wpRestAadApplicationIdUri=g.wpRestAadApplicationIdUri,W.wpRestAadProtectedEndpoints=[...g.wpRestAadProtectedEndpoints],W.wpRestAadUseAppRoles=g.wpRestAadUseAppRoles,W.wpRestBlock=g.wpRestBlock,W.wpRestCookiesProtectedEndpoints=[...g.wpRestCookiesProtectedEndpoints],W.wpRestSetCookies=g.wpRestSetCookies;try{const K=await Fe.updateSettings(o,W);if(K.success){const Z=await Fe.getSettings(o);u(Z),C([]),L(we.success)}else C([new Lr("saveConfiguration",K.message,2e3)]),L(we.error)}catch{C([new Lr("saveConfiguration","Unknown error occured whilst updating settings [check F12 > console for technical details]",2e3)]),L(we.error)}},H=E.useMemo(()=>{const W=[{key:"select",text:"Select",itemType:Tt.Header}];return d.applicationId&&W.push({key:d.applicationId,text:d.applicationId,itemType:Tt.Normal}),g.appOnlyApplicationId&&g.appOnlyApplicationId!=d.applicationId&&W.push({key:g.appOnlyApplicationId,text:g.appOnlyApplicationId,itemType:Tt.Normal}),W},[d.applicationId,g.appOnlyApplicationId]);return E.useEffect(()=>{m=="obfuscate"&&F().then(()=>{x(null)})},[m]),e.jsx(e.Fragment,{children:e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Delegated Access"})})}),e.jsx("tr",{children:e.jsxs("td",{colSpan:2,children:[e.jsx("em",{children:"Access Microsoft 365 services and APIs as the signed-in user when they log in. Required for any of the use cases below."}),e.jsxs("ul",{children:[e.jsxs("li",{children:["Synchronization of a user's attributes, profile picture and roles whenever they log in (but only if you do choose not to configure"," ",e.jsx("strong",{children:"application access"})," below)."]}),e.jsx("li",{children:"Embeddeding M365 services for your organization (e.g. Power BI or SharePoint)"})]})]})}),d.useSaml&&e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("div",{children:["Not available since you have chosen to use ",e.jsx("strong",{children:"SAML 2.0"}),"."]})})}),d.noSso&&e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("div",{children:"Not available since you have chosen not to configure Microsoft based single sign-on."})})}),!d.useSaml&&!d.noSso&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"SSO Application (Client) ID"}),e.jsx("td",{children:e.jsx(fe,{bound:!1,value:g.applicationId,placeholder:me.infoApplicationId,disabled:!0})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[d.oidcFlow==kr.code&&"SSO ","Application (Client) Secret "]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(W,K)=>!0,onValid:W=>{g.useSingleAppRegistration?_({...g,applicationSecret:W,appOnlyApplicationSecret:W}):_({...g,applicationSecret:W})},bound:!1,value:g.applicationSecret,disabled:h&&d.useWpConfig||d.oidcFlow==kr.code||t||i,password:!0})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Application Access"})})}),e.jsx("tr",{children:e.jsxs("td",{colSpan:2,children:[e.jsx("em",{children:"Access Microsoft 365 services and APIs as itself / without user context. Required for the use cases below:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Synchronization of users, their attributes, profile picture and roles at scheduled intervals."}),e.jsx("li",{children:"Embeddeding M365 services for customers (e.g. Power BI or SharePoint)"})]})]})}),d.noSso&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Directory (tenant) ID"})," ",e.jsx(de,{info:{title:"Directory ID",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/32-azure-ad-tenant-id"}}})]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(W,K)=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(K),onValid:W=>_({...g,directoryId:W}),bound:!1,errorMessage:me.errDirectoryIdMustBeGuid,value:g.directoryId,placeholder:me.infoDirectoryId,disabled:h&&g.useWpConfig||t||i})})]}),(!c||n.some(W=>[l.wpo365Mail,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(K=>K==W)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Obfuscate Entra ID options"})," ",e.jsx(de,{info:{title:"Use WP-Config(.php) for Entra ID secrets",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/137-use-wp-config-for-aad-secrets"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365Mail,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(jn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:g.useWpConfig,disabled:!g.useWpConfig&&!t&&!i,onChange:(W,K)=>{_({...g,useWpConfig:K??!1}),x("obfuscate")}}),m=="obfuscate"&&e.jsx(Oe,{size:Te.small})]})})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable application access"}),e.jsx(de,{info:{title:"Use app-only token",readMore:{title:"Read online",url:"https://tutorials.wpo365.com/courses/integration-application-permissions/"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>_({...g,useAppOnlyToken:K??!1}),checked:g.useAppOnlyToken,disabled:i})})})]}),g.useAppOnlyToken&&e.jsxs(e.Fragment,{children:[!d.useSaml&&!d.noSso&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Use existing SSO App registration"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>P(g.useSingleAppRegistration,Z=>{_({...g,useSingleAppRegistration:Z,appOnlyApplicationId:Z?d.applicationId:"",appOnlyApplicationSecret:Z?d.applicationSecret:""})},me.titleUseSingleAppRegistration,me.subTextUseSingleAppRegistration),checked:g.useSingleAppRegistration,disabled:t||i})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"(App-only) Application (Client) ID"})," ",g.appOnlyApplicationId&&(!h||!d.useWpConfig)&&e.jsx("em",{children:e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/Overview/appId/${g.appOnlyApplicationId}/isMSAApp/`,target:"_blank",children:"View in Entra Portal"})})]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(W,K)=>!K||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(K),onValid:W=>_({...g,appOnlyApplicationId:W}),bound:!1,errorMessage:me.errAppOnlyApplicationIdMustBeGuid,value:g.appOnlyApplicationId,placeholder:me.infoAppOnlyApplicationId,disabled:g.useSingleAppRegistration||h&&d.useWpConfig||t||i})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"(App-Only) Application (Client) secret"})})}),e.jsx("td",{children:e.jsx(fe,{isValid:(W,K)=>(Y.current=K,K?!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(K):!g.useAppOnlyToken),onValid:W=>_({...g,appOnlyApplicationSecret:W}),errorMessage:Y.current?"You seem to have entered the secret's ID instead of the Value":"Please fill out this mandatory field",bound:!1,value:g.appOnlyApplicationSecret,disabled:g.useSingleAppRegistration||h&&d.useWpConfig||t||i,password:!0})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Microsoft 365 Apps"})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("em",{children:"Control whether applications can access the built-in REST API and define how they may request data from Microsoft Graph."})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:{color:"#0078D4",lineHeight:"24px"},children:[e.jsx(Ue,{iconName:"Warning",style:{paddingRight:"5px"}}),e.jsxs("div",{children:["Please take a moment and carefully read the  ",e.jsx("a",{href:"https://docs.wpo365.com/article/144-wpo365-rest-api-for-microsoft-graph",target:"_blank",children:"online documentation"})," ","for the WPO365 REST API for Microsoft Graph before enabling it."]})]})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Enable WPO365 REST API for Microsoft Graph"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>_({...g,enableGraphApi:K??!1}),checked:g.enableGraphApi})})})]}),g.enableGraphApi&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Require users to sign-in to use the WPO365 REST API for Microsoft Graph"})})}),e.jsx("td",{children:e.jsx($e,{options:[{key:"select",text:"Select",itemType:Tt.Header},{key:Yp.signedInWithMicrosoft,text:"Users must be signed in with Microsoft"},{key:Yp.signedIn,text:"Users must be signed in"},{key:Yp.anonymous,text:"Allow anonymous access"}],selectedKey:g.graphPermissionLevel,onChange:(W,K)=>K&&_({...g,graphPermissionLevel:K.key}),style:{maxWidth:"400px"}})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Allow apps to request any Microsoft Graph endpoint"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>_({...g,graphAllowAllEndpoints:K??!1}),checked:g.graphAllowAllEndpoints})})})]}),!g.graphAllowAllEndpoints&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx("div",{children:"Allowed endpoints"}),e.jsx("span",{style:{color:"#0078D4"},children:"Check the box if apps may use application-level permissions (if applicable / configured)"})]})}),e.jsx("td",{children:e.jsx(EP,{list:g.graphAllowedEndpoints,onListChanged:W=>_({...g,graphAllowedEndpoints:W}),placeholder:me.infoProxyEndpoint,isValid:new RegExp(/^(http|https):\/\//i),errorMessage:me.errProxyEndpoint})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Apps may request (delegated) oauth access tokens"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>_({...g,graphAllowTokenRetrieval:K??!1}),checked:g.graphAllowTokenRetrieval})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Allow Microsoft Graph proxy-type requests"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>_({...g,enableGraphProxy:K??!1}),checked:g.enableGraphProxy})})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable token service"}),e.jsx(de,{info:{title:"Enable token service",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/68-enable-token-service"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>_({...g,enableTokenService:K??!1}),checked:g.enableTokenService})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Check nonce"}),e.jsx(de,{info:{title:"Check nonce",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/69-check-nonce"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>_({...g,enableNonceCheck:K??!1}),checked:g.enableNonceCheck})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Use alternative CDN"}),e.jsx(de,{info:{title:"Use alternative CDN for JavaScript libraries",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/163-use-alternative-cdn-for-javascript-libraries"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>_({...g,useAlternativeCdn:K??!1}),checked:g.useAlternativeCdn})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Microsoft Graph"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Graph version"}),e.jsx(de,{info:{title:"Microsoft Graph version",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/67-microsoft-graph-version"}}})]})}),e.jsx("td",{children:e.jsx($e,{options:[{key:"select",text:"Select",itemType:Tt.Header},{key:"current",text:"v1.0"},{key:"beta",text:"beta"}],selectedKey:g.graphVersion,onChange:(W,K)=>K&&_({...g,graphVersion:K.key}),style:{maxWidth:"400px"}})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"General options"})})}),(!c||n.some(W=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(K=>K==W)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Require Proof Key for Code Exchange (PKCE)"})," ",e.jsx(de,{info:{title:"Require Proof Key for Code Exchange (PKCE)",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/149-require-proof-key-for-code-exchange-pkce"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>_({...g,usePkce:K??!1}),checked:g.usePkce,disabled:!g.usePkce&&(d.useB2c||d.useSaml)})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Skip check for Application (Client) Secret expiration"})," ",e.jsx(de,{info:{title:"Skip check for App registration secret expiration",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/203-skip-check-for-aad-app-registration-secret-expiration"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>_({...g,skipPasswordCredentialsExpiredCheck:K??!1}),checked:g.skipPasswordCredentialsExpiredCheck})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"WordPress cookie based protection for the WordPress REST API"})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:{color:"#0078D4",lineHeight:"24px"},children:[e.jsx(Ue,{iconName:"Warning",style:{paddingRight:"5px"}}),e.jsxs("div",{children:["Please take a moment and carefully read the  ",e.jsx("a",{href:"https://docs.wpo365.com/article/151-wordpress-cookies-based-protection-for-the-wordpress-rest-api",target:"_blank",children:"online documentation"})," ","to protect the WordPress REST API with WordPress (nonce based) authentication cookies."]})]})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Enable cookie based WordPress REST API protection"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>_({...g,useWpRestCookies:K??!1}),checked:g.useWpRestCookies})})})]}),g.useWpRestCookies&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"WordPress REST API protected endpoints"}),e.jsx("td",{children:e.jsx(iw,{list:g.wpRestCookiesProtectedEndpoints,onListChanged:W=>_({...g,wpRestCookiesProtectedEndpoints:W}),keyPlaceholder:"Path e.g. /wp-json/wp/v2/posts",keyIsValid:new RegExp("(^/)|(^$)"),keyErrorMessage:"Path must start with '/' e.g. /wp-json/wp/v2/posts",valuePlaceholder:"Method e.g. GET or POST or GET, POST",valueIsValid:W=>!W||W.split(",").filter(K=>["get","post","patch","delete","put"].indexOf(K.trim().toLowerCase())>-1).length===W.split(",").length,valueErrorMessage:"Must be string with all supported HTTP methods e.g. GET, POST"})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Block all other WordPress REST endpoints"}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>_({...g,wpRestBlock:K??!1}),checked:g.wpRestBlock})})})]})]}),!d.useB2c&&e.jsxs(e.Fragment,{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Entra ID based protection for the WordPress REST API"})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:{color:"#0078D4",lineHeight:"24px"},children:[e.jsx(Ue,{iconName:"Warning",style:{paddingRight:"5px"}}),e.jsxs("div",{children:["Please take a moment and carefully read the"," ",e.jsx("a",{href:"https://docs.wpo365.com/article/147-azure-ad-based-protection-for-the-wordpress-rest-api",target:"_blank",children:"online documentation"})," ","to protect the WordPress REST API with Entra ID Oauth tokens."]})]})})}),(!c||n.some(W=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(K=>K==W)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Enable Entra ID based WordPress REST API protection"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>_({...g,useWpRestAad:K??!1}),checked:g.useWpRestAad})})})})]}),g.useWpRestAad&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Entra ID Application"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx($e,{options:H,selectedKey:g.wpRestAadApplicationId,onChange:(W,K)=>K&&_({...g,wpRestAadApplicationId:K.key}),style:{maxWidth:"400px"},disabled:h&&g.useWpConfig})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Entra ID Application ID URI"})," ",g.wpRestAadApplicationId&&e.jsx("em",{children:e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/ProtectAnAPI/appId/${g.wpRestAadApplicationId}/isMSAApp/`,target:"_blank",children:"'Expose an API' in Entra Portal"})})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{bound:!1,isValid:(W,K)=>h&&g.useWpConfig?!0:K!=me.empty?/^api:\/\//i.test(K):!0,onValid:W=>_({...g,wpRestAadApplicationIdUri:W}),errorMessage:"Entra ID Application ID URI must start with api://",value:g.wpRestAadApplicationIdUri,placeholder:`e.g. api://your-website.com/${g.wpRestAadApplicationId}`,disabled:h&&g.useWpConfig})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Use App Roles"})," ",g.wpRestAadApplicationId&&e.jsx("em",{children:e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/AppRoles/appId/${g.wpRestAadApplicationId}/isMSAApp/`,target:"_blank",children:'View "App Roles" in Entra Portal'})})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(ce,{onChange:(W,K)=>_({...g,wpRestAadUseAppRoles:K??!1}),checked:g.wpRestAadUseAppRoles})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"WordPress REST API protected endpoints"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(IP,{list:g.wpRestAadProtectedEndpoints,onListChanged:W=>_({...g,wpRestAadProtectedEndpoints:W}),strA_Placeholder:"Path e.g. /wp-json/wp/v2/posts",strA_IsValid:W=>!W||W.indexOf("/")===0,strA_ErrorMessage:"Path must start with '/' e.g. /wp-json/wp/v2/posts",strB_Placeholder:"Method e.g. GET or POST or GET, POST",strB_IsValid:W=>!W||W.split(",").filter(K=>["get","post","patch","delete","put"].indexOf(K.trim().toLowerCase())>-1).length===W.split(",").length,strB_ErrorMessage:"Must be string with all supported HTTP methods e.g. GET, POST",strC_Placeholder:"Scope e.g. api://your-website.com/xxx/access_as_user",strC_IsValid:W=>!W||W.toLowerCase().indexOf(g.wpRestAadApplicationIdUri.toLowerCase())>-1,strC_ErrorMessage:`Must start with Entra ID Application ID URI ${g.wpRestAadApplicationIdUri}`})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Block all other WordPress REST endpoints"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>_({...g,wpRestBlock:K??!1}),checked:g.wpRestBlock})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Set (WordPress) authentication cookies"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(W,K)=>_({...g,wpRestSetCookies:K??!1}),checked:g.wpRestSetCookies})})})})]})]})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(et,{onClick:T,iconProps:{iconName:I==Va.success?"Like":void 0},style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px"},children:"Delete tokens"}),e.jsxs("div",{className:j.wpo365WzLabelFor,children:[I==Va.error?e.jsx("p",{children:"Could not delete tokens"}):null,I==Va.success?e.jsx("p",{children:me.okTokensDeleted}):null]})]})})]}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(rt,{onClick:()=>P(!1,async()=>{try{await F(),location.hash="selfTest"}catch{C([new Lr("saveConfiguration",me.errAuthenticationTestFailed,2e3)]),L(we.error)}},me.titleBeforeSave,d.authScenario==Gr.intranet?me.subTextBeforeSaveIntranet:me.subTextBeforeSaveInternet),iconProps:{iconName:k==we.success?"Like":void 0},style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px",alignSelf:"start"},disabled:k==we.saving,children:"Save configuration"}),e.jsx("div",{className:j.wpo365WzLabelFor,children:yd(b,"saveConfiguration").map(W=>e.jsx("p",{className:j.wpo365WzP,children:W.message}))}),k==we.success?e.jsx("p",{style:{color:"#378805"},children:me.okSettingsUpdated}):null]})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Bs,{})})}),y&&e.jsx(Ws,{onCancel:y.onCancel,onConfirm:y.onConfirm,onDismiss:y.onDismiss,title:y.title,subText:y.subText})]})})})},Vc=s=>{const{disabled:o,list:n,onListChanged:t,options:i,placeholder:d}=s,[c,u]=E.useState(n?[...n]:[]),[h,g]=E.useState(null);return E.useEffect(()=>{JSON.stringify(c)!==JSON.stringify(n)&&t(c)},[c]),e.jsxs(U,{tokens:{childrenGap:10},horizontalAlign:"start",style:{width:"400px"},children:[!o&&e.jsx($e,{placeholder:d||void 0,options:i.map(_=>({key:_,text:_})),onChange:(_,m)=>{const x=[...c];x.push(String(m.key)),u(x)},selectedKey:h,styles:{root:{flexGrow:1,flexShrink:0,maxWidth:"400px",width:"400px"}},disabled:o}),!o&&c.length>0&&e.jsx("div",{style:{width:"400px",height:"1px",backgroundColor:"black"}}),c.map((_,m)=>e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{value:_,bound:!1,disabled:!0}),e.jsx(Ke,{onClick:()=>{const x=[...c];x.splice(m,1),u(x)},iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]},btoa(_)))]})},Es=(s,o,n)=>{const t=s.filter(i=>i.key==o);return t.length==1?t[0].value:n},AP=s=>{const{buttonConfig:o,buttonLabel:n}=s,[t,i]=E.useState(Es(o,"buttonBackgroundColor","#ffffff")),[d,c]=E.useState(Es(o,"buttonBorderColor","#8c8c8c")),[u,h]=E.useState(Es(o,"buttonForegroundColor","#5e5e5e")),[g,_]=E.useState(Es(o,"buttonHideBorder",!1)),[m,x]=E.useState(Es(o,"buttonHideLogo",!1)),[y,v]=E.useState(Es(o,"buttonLabel","Sign in with Microsoft")),[b,C]=E.useState(Es(o,"buttonDontZoom",!1));return E.useEffect(()=>{i(Es(o,"buttonBackgroundColor","#ffffff")),c(Es(o,"buttonBorderColor","#8c8c8c")),h(Es(o,"buttonForegroundColor","#5e5e5e")),_(Es(o,"buttonHideBorder",!1)),x(Es(o,"buttonHideLogo",!1)),C(Es(o,"buttonDontZoom",!1))},[o]),E.useEffect(()=>{v(n)},[n]),e.jsx("div",{className:j["wpo365-mssignin-spacearound"],children:e.jsxs("button",{className:b?j["wpo365-mssignin-button"]:j["wpo365-mssignin-button-zoom"],type:"button",style:{border:g?"0px solid":`1px solid ${d}`,color:u,backgroundColor:t},children:[!m&&e.jsx("div",{className:j["wpo365-mssignin-logo"],children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",children:[e.jsx("title",{children:"MS-SymbolLockup"}),e.jsx("rect",{x:"1",y:"1",width:"9",height:"9",fill:"#f25022"}),e.jsx("rect",{x:"1",y:"11",width:"9",height:"9",fill:"#00a4ef"}),e.jsx("rect",{x:"11",y:"1",width:"9",height:"9",fill:"#7fba00"}),e.jsx("rect",{x:"11",y:"11",width:"9",height:"9",fill:"#ffb900"})]})}),e.jsx("div",{className:j["wpo365-mssignin-label"],children:y})]})})},nd=(s,o,n)=>{const t=s.filter(i=>i.key==o);return t.length==1?t[0].value:n},Tc=(s,o,n)=>{const t=[...s];for(let i=0;i<t.length;i++)if(t[i].key==o)return t[i].value=n,t;return t.push({key:o,value:n}),t},PP=(s,o)=>{function n(d){let c=d.toLowerCase();return c.slice(-1)==="/"&&(c=c.slice(0,-1)),c}const t=n(s),i=n(o);return!!t&&t===i},RP=s=>{const{env:o,env:{props:{extensions:n,availableRoles:t,wpConfigMultiple:i}},settings:d,settings:{hidePremiumOptions:c},updateSettings:u}=E.useContext(Ye),[h]=E.useState(o.props.addOns&&Object.keys(o.props.addOns).length>0),g=E.useMemo(()=>Object.keys(Qr(t,[])),[]),[_,m]=E.useState({alwaysUseGotoAfter:d.alwaysUseGotoAfter,buttonConfig:d.buttonConfig,buttonLabel:d.signInWithMicrosoft,customLoginUrl:d.customLoginUrl,defaultLandingPage:d.gotoAfterSignonUrl&&d.gotoAfterSignonUrl!=o.props.adminUrl.replace(/\/?$/,"/")&&d.gotoAfterSignonUrl!=o.props.siteUrl.replace(/\/?$/,"/")?"custom":d.gotoAfterSignonUrl,enableSingleSignOut:d.enableSingleSignOut,errorPageUrl:d.errorPageUrl,expressLogin:d.expressLogin,gotoAfterSignonUrl:d.gotoAfterSignonUrl,groupsXGotoAfter:d.groupsXGotoAfter,hideAdminBarRoles:d.hideAdminBarRoles,hideLoginButton:d.hideLoginButton,hideSsoLink:d.hideSsoLink,interceptWpLogin:d.interceptWpLogin,loadingTemplateUrl:d.loadingTemplateUrl,logoutFromO365:d.logoutFromO365,postSignoutUrl:d.postSignoutUrl,redirectOnLogin:d.redirectOnLogin,redirectOnLoginSecret:d.redirectOnLoginSecret,redirectOnLoginReferrers:d.redirectOnLoginReferrers,redirectOnPrivatePage:d.redirectOnPrivatePage,redirectToLogin:d.redirectToLogin,redirectToLoginV2:d.redirectToLoginV2,skipWpAdmin:d.skipWpAdmin,useTeams:d.useTeams}),[x,y]=E.useState(null),[v,b]=E.useState([]),[C,k]=E.useState(we.initial),L=E.useRef(null),I=(P,T,F,H)=>{if(P){T(!1);return}y({title:F,subText:H,onDismiss:()=>y(null),onCancel:()=>y(null),onConfirm:()=>{y(null),T(!0)}})},A=async()=>{b([]),k(we.saving);const P={...d};P.alwaysUseGotoAfter=_.alwaysUseGotoAfter,P.buttonConfig=_.buttonConfig,P.customLoginUrl=_.customLoginUrl,P.enableSingleSignOut=_.enableSingleSignOut,P.errorPageUrl=_.errorPageUrl,P.expressLogin=_.expressLogin,P.gotoAfterSignonUrl=_.gotoAfterSignonUrl,P.groupsXGotoAfter=_.groupsXGotoAfter,P.hideAdminBarRoles=_.hideAdminBarRoles,P.hideLoginButton=_.hideLoginButton,P.hideSsoLink=_.hideSsoLink,P.interceptWpLogin=_.interceptWpLogin,P.loadingTemplateUrl=_.loadingTemplateUrl,P.logoutFromO365=_.logoutFromO365,P.postSignoutUrl=_.postSignoutUrl,P.redirectOnLogin=_.redirectOnLogin,P.redirectOnLoginSecret=_.redirectOnLoginSecret,P.redirectOnLoginReferrers=_.redirectOnLoginReferrers,P.redirectOnPrivatePage=_.redirectOnPrivatePage,P.redirectToLogin=_.redirectToLogin,P.redirectToLoginV2=_.redirectToLoginV2,P.signInWithMicrosoft=_.buttonLabel,P.skipWpAdmin=_.skipWpAdmin,P.useTeams=_.useTeams;try{const T=await Fe.updateSettings(o,P);if(T.success){const F=await Fe.getSettings(o);u(F),b([]),k(we.success)}else b([...v,new Lr("saveConfiguration",T.message,2e3)]),k(we.error)}catch{b([...v,new Lr("saveConfiguration","Unknown error occured whilst updating settings [check F12 > console for technical details]",2e3)]),k(we.error)}},Y=E.useMemo(()=>Zt(32),[]);return e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("h3",{className:j.wpo365WzSectionTitle,children:[e.jsx("span",{style:{color:"#CE5708"},children:"Getting started"})," with User Registration"]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(ou,{buttons:[{callToAction:"Create a custom SSO button",tutorial:"https://docs.wpo365.com/article/224-add-single-sign-on-button-anywhere-shortcode",title:"SSO Button"},{callToAction:"Force SSO, new-user email and more ...",info:"https://www.wpo365.com/feature/advanced-login-options/",title:"Essential Login Options"}]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Login Experience"})})}),(!c||n.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Do not force SSO for WP Admin"})," ",e.jsx(de,{info:{title:"Do not force SSO for WP Admin",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/221-do-not-force-sso-for-wp-admin"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{onChange:(P,T)=>m({..._,skipWpAdmin:T??!1}),checked:_.skipWpAdmin}),_.skipWpAdmin&&(_.redirectOnLogin||_.redirectToLoginV2)&&e.jsx(_n,{content:e.jsxs("span",{children:["Ensure ",e.jsx("em",{children:"Dual Login"})," and ",e.jsx("em",{children:"Force SSO for WP Login"})," are not checked"]}),id:"tooltip_skip_wp_admin_error",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block",cursor:"pointer",color:"#CC0000",height:"27px"}},children:e.jsx(Ue,{iconName:"Warning"})})]})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Hide WP Admin Bar for roles"}),e.jsx(de,{info:{title:"Hide WP Admin Bar for roles",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/150-hide-wp-admin-bar-for-roles"}}})]})}),e.jsx("td",{children:e.jsx(Vc,{list:[..._.hideAdminBarRoles],onListChanged:P=>m({..._,hideAdminBarRoles:[...P]}),options:g,placeholder:me.infoWordPressRole})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Default landing page after login:"})," ",e.jsx(de,{info:{title:"Landing page after login",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/78-goto-after"}}})]})}),e.jsx("td",{children:e.jsx($e,{options:[{key:"select",text:"Select",itemType:Tt.Header},{key:"backend",text:o.props.adminUrl.replace(/\/?$/,"/")},{key:"frontend",text:o.props.siteUrl.replace(/\/?$/,"/")},{key:"custom",text:"Custom (enter below)",disabled:!n.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].indexOf(P)>-1)}],selectedKey:_.defaultLandingPage&&_.defaultLandingPage==o.props.adminUrl.replace(/\/?$/,"/")?"backend":!_.defaultLandingPage||_.defaultLandingPage==o.props.siteUrl.replace(/\/?$/,"/")?"frontend":"custom",onChange:(P,T)=>T&&(T.key!="custom"&&/^(http|https):\/\//i.test(T.text)?m({..._,defaultLandingPage:T.text,gotoAfterSignonUrl:T.text}):m({..._,defaultLandingPage:T.key.toString()})),style:{maxWidth:"400px"}})})]}),(!c||n.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Custom landing page after login:"})," ",e.jsx(de,{info:{title:"Goto after",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/78-goto-after"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(P,T)=>T!=me.empty?/^(http|https):\/\//i.test(T):!0,onValid:P=>m({..._,gotoAfterSignonUrl:P}),bound:!1,errorMessage:me.errGotoAfterSignonUrlMustStartWith,value:_.gotoAfterSignonUrl,placeholder:me.infoGotoAfterSignonUrl,disabled:_.defaultLandingPage!="custom"})})})]}),(!c||n.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Always send user to default / custom landing page"}),e.jsx(de,{info:{title:"Always go to after",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/79-always-goto-after"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(P,T)=>m({..._,alwaysUseGotoAfter:T??!1}),checked:_.alwaysUseGotoAfter})})})})]}),(!c||n.some(P=>[l.wpo365Avatar,l.wpo365CustomFields,l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsxs("span",{children:["Express login (see ",e.jsx("em",{children:"i"})," for details)"]}),e.jsx(de,{info:{title:"Express login",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/61-express-login"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365Avatar,l.wpo365LoginPlus,l.wpo365CustomFields,l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(P,T)=>m({..._,expressLogin:T??!1}),checked:_.expressLogin})})})})]}),(!c||n.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Force SSO for the default / custom login page"})," ",e.jsx(de,{info:{title:"Force SSO for the default / custom login page",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/120-force-sso-for-the-default-custom-login-page"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{onChange:(P,T)=>m({..._,redirectOnLogin:T??!1}),checked:_.redirectOnLogin,disabled:i}),_.redirectOnLogin&&(_.skipWpAdmin||_.redirectToLoginV2)&&e.jsx(_n,{content:e.jsxs("span",{children:["Ensure ",e.jsx("em",{children:"Dual Login"})," and ",e.jsx("em",{children:"Do not force SSO for WP Admin"})," are not checked"]}),id:"tooltip_skip_wp_admin_error",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block",cursor:"pointer",color:"#CC0000",height:"27px"}},children:e.jsx(Ue,{iconName:"Warning"})})]})})})]}),(!c||n.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Secret key to bypass SSO"})," ",e.jsx(de,{info:{title:"Force SSO for the default / custom login page",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/120-force-sso-for-the-default-custom-login-page"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(P,T)=>h&&d.useWpConfig?!0:T!=""?/^[a-zA-Z0-9_.-\s]{1,}$/i.test(T)&&T.length>=32:!0,onValid:P=>m({..._,redirectOnLoginSecret:P}),bound:!1,errorMessage:"The secret must at least contain 32 alphanumeric characters",value:_.redirectOnLoginSecret,placeholder:`e.g. ${Y}`,disabled:i})})})]}),(!c||n.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Referrers allowed to bypass SSO"}),e.jsx(de,{info:{title:"Force SSO for the default / custom login page",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/120-force-sso-for-the-default-custom-login-page"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Bo,{list:_.redirectOnLoginReferrers,onListChanged:P=>m({..._,redirectOnLoginReferrers:P}),placeholder:"e.g. https://website.tld/referrer/",isValid:new RegExp(/^(http|https):\/\//i),errorMessage:"A referrer must start with http(s)://"})})})]}),(!c||n.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Error / Logged out page"})," ",e.jsx(de,{info:{title:"Error page URL",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/88-error-page"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(fe,{isValid:(P,T)=>T!=me.empty?/^(http|https):\/\//i.test(T):!0,onValid:P=>m({..._,errorPageUrl:P}),bound:!1,errorMessage:me.errErrorPageUrlMustStartWith,value:_.errorPageUrl,placeholder:me.infoErrorPageUrl}),PP(_.customLoginUrl,_.errorPageUrl)===!0&&e.jsx(_n,{content:e.jsxs("span",{children:["The ",e.jsx("em",{children:"Custom login URL"})," and ",e.jsx("em",{children:"Error / Logged out page"})," should not be the same"]}),id:"tooltip_login_and_error_url_error",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block",cursor:"pointer",color:"#CC0000",height:"27px"}},children:e.jsx(Ue,{iconName:"Warning"})})]})})})]}),(!c||n.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Custom login URL"})," ",e.jsx(de,{info:{title:"Custom login URL",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/92-custom-login-url"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(P,T)=>T!=me.empty?/^(http|https):\/\//i.test(T):!0,onValid:P=>m({..._,customLoginUrl:P}),bound:!1,errorMessage:me.errCustomLoginUrlMustStartWith,value:_.customLoginUrl,placeholder:me.infoCustomLoginUrl})})})]}),!d.useB2c&&!d.useCiam&&(!c||n.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Intercept manual login attempts"})," ",e.jsx(de,{info:{title:"Intercept manual logins",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/77-intercept-manual-logins"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(P,T)=>m({..._,interceptWpLogin:T??!1}),checked:_.interceptWpLogin})})})})]}),(!c||n.some(P=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Entra ID group-based redirect after successful login"})," ",e.jsx(de,{info:{title:"Entra ID Group Membership Redirection",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/121-redirect-wordpress-user-based-on-azure-ad-group-membership"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(iw,{list:_.groupsXGotoAfter,onListChanged:P=>m({..._,groupsXGotoAfter:P}),keyPlaceholder:me.infoGroupsXGotoAfterKey,keyIsValid:new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),keyErrorMessage:me.errGroupsXGotoAfterKey,valuePlaceholder:me.infoGroupsXGotoAfterValue,valueIsValid:new RegExp(/^(http|https):\/\//i),valueErrorMessage:me.errGroupsXGotoAfterValue})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Use client-side redirect"}),e.jsx(de,{info:{title:"Use client-side redirect",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/223-use-client-side-redirect"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(P,T)=>m({..._,useTeams:T??!1}),checked:_.useTeams})})})]}),_.useTeams&&(!c||n.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Custom loading template URL"})," ",e.jsx(de,{info:{title:"Loading Template URL",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/114-customize-the-loading-template"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(P,T)=>T!=me.empty?/^(?!http).*(\.html$)/i.test(T):!0,onValid:P=>m({..._,loadingTemplateUrl:P}),bound:!1,errorMessage:me.errLoadingTemplateUrlMustStartWith,value:_.loadingTemplateUrl,placeholder:me.infoLoadingTemplateUrl})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Customize Login Button"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Preview"})})}),e.jsx("td",{children:e.jsx(AP,{buttonConfig:_.buttonConfig,buttonLabel:_.buttonLabel})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsxs("span",{children:["Hide ",e.jsx("em",{children:"Sign in with Microsoft"})," button on login page"]})," ",e.jsx(de,{info:{title:'Hide "Sign in with Microsoft button"',readMore:{title:"Read online",url:"https://docs.wpo365.com/article/81-enable-dual-login"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(P,T)=>m({..._,hideLoginButton:T??!1}),checked:_.hideLoginButton})})})]}),(!c||n.some(P=>[l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365Sync5y].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Hide Microsoft logo"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ne,{extensions:n,targets:[l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365Sync5y],children:e.jsx(ce,{onChange:(P,T)=>{const F=Tc(_.buttonConfig,"buttonHideLogo",T??!1);m({..._,buttonConfig:F})},checked:nd(_.buttonConfig,"buttonHideLogo",!1)})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Display text"})})}),e.jsx("td",{children:e.jsx(fe,{isValid:(P,T)=>T.length>0&&T.length<25,onValid:P=>m({..._,buttonLabel:P}),bound:!1,errorMessage:"Length must be great than 0 and less than 25",value:_.buttonLabel,placeholder:"Sign in with Microsoft"})})]}),(!c||n.some(P=>[l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365Sync5y].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Foreground color"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365Sync5y],children:e.jsx(fe,{isValid:(P,T)=>!T||/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(T),onValid:P=>{const T=Tc(_.buttonConfig,"buttonForegroundColor",P);m({..._,buttonConfig:T})},bound:!1,errorMessage:"Must be a Hexadecimal Color Code",value:nd(_.buttonConfig,"buttonForegroundColor",""),placeholder:"e.g. #5E5E5E"})})})]}),(!c||n.some(P=>[l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365Sync5y].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Background color"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365Sync5y],children:e.jsx(fe,{isValid:(P,T)=>!T||/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(T),onValid:P=>{const T=Tc(_.buttonConfig,"buttonBackgroundColor",P);m({..._,buttonConfig:T})},bound:!1,errorMessage:"Must be a Hexadecimal Color Code",value:nd(_.buttonConfig,"buttonBackgroundColor",""),placeholder:"e.g. #FFFFFF"})})})]}),(!c||n.some(P=>[l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365Sync5y].some(T=>T==P)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Hide border"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ne,{extensions:n,targets:[l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365Sync5y],children:e.jsx(ce,{onChange:(P,T)=>{const F=Tc(_.buttonConfig,"buttonHideBorder",T??!1);m({..._,buttonConfig:F})},checked:nd(_.buttonConfig,"buttonHideBorder",!1)})})})})]}),!nd(_.buttonConfig,"buttonHideBorder",!1)&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Border color"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365Sync5y],children:e.jsx(fe,{isValid:(P,T)=>!T||/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(T),onValid:P=>{const T=Tc(_.buttonConfig,"buttonBorderColor",P);m({..._,buttonConfig:T})},bound:!1,errorMessage:"Must be a Hexadecimal Color Code",value:nd(_.buttonConfig,"buttonBorderColor",""),placeholder:"e.g. #8C8C8C"})})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"No visual effects"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(P,T)=>{const F=Tc(_.buttonConfig,"buttonDontZoom",T??!1);m({..._,buttonConfig:F})},checked:nd(_.buttonConfig,"buttonDontZoom",!1)})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"WP Shortcode"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsx("div",{style:{border:"1px solid",borderRadius:"3px",padding:"0px 10px",backgroundColor:"#e2e2e2"},ref:L,onClick:()=>{const P=document.createRange();P.selectNodeContents(L.current);const T=window.getSelection();T.removeAllRanges(),T.addRange(P)},children:"[wpo365-sso-button]"}),e.jsx("div",{style:{color:"#0078D4"},children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(Ue,{iconName:"Info"}),e.jsx("span",{children:"Click once to select, then copy to clipboard"})]})})]})})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:e.jsxs("span",{style:{color:"#0078D4"},children:["Or create your own custom SSO button ",e.jsx("a",{href:"https://docs.wpo365.com/article/74-add-sign-in-with-microsoft-button-to-a-wordpress-login-form",target:"_blank",children:e.jsx(Ue,{iconName:"NavigateExternalInline"})})]})})}),e.jsx("td",{children:e.jsx("div",{})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Dual Login Experience"})})}),(!c||n.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsxs("span",{children:["Enable ",e.jsx("em",{children:"Dual login"})]})," ",e.jsx(de,{info:{title:"Redirect to login V2",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/81-enable-dual-login"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{onChange:(P,T)=>m({..._,redirectToLoginV2:T??!1}),checked:_.redirectToLoginV2,disabled:i}),_.redirectToLoginV2&&(_.skipWpAdmin||_.redirectOnLogin)&&e.jsx(_n,{content:e.jsxs("span",{children:["Ensure ",e.jsx("em",{children:"Do not force SSO for WP Admin"})," and ",e.jsx("em",{children:"Force SSO for WP Login"})," are not checked"]}),id:"tooltip_skip_wp_admin_error",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block",cursor:"pointer",color:"#CC0000",height:"27px"}},children:e.jsx(Ue,{iconName:"Warning"})})]})})})]}),(!c||n.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsxs("span",{children:["Hide ",e.jsx("em",{children:"Dual Login"})," notification / link"]})," ",e.jsx(de,{info:{title:"Hide SSO link",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/81-enable-dual-login"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(P,T)=>I(_.hideSsoLink,F=>m({..._,hideSsoLink:F}),me.titleHideSsoLink,me.subTextHideSsoLink),checked:_.hideSsoLink,disabled:i})})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Logout Experience"})})}),(!c||n.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable support for Single Sign-Out (logout without confirmation)"})," ",e.jsx(de,{info:{title:"Enable logout without confirmation",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/90-single-sign-out"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(P,T)=>m({..._,enableSingleSignOut:T??!1}),checked:_.enableSingleSignOut})})})})]}),(!c||n.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Logout from O365 when logging out from WordPress"})," ",e.jsx(de,{info:{title:"Logout from O365",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/89-microsoft-365-logout"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(P,T)=>m({..._,logoutFromO365:T??!1}),checked:_.logoutFromO365})})})})]}),(!c||n.some(P=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(T=>T==P)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"URL to redirect user to after logging out from WordPress"})," ",e.jsx(de,{info:{title:"Post sign-out URL",readMore:{title:"Read more",url:"https://docs.wpo365.com/article/89-microsoft-365-logout"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(P,T)=>T!=me.empty?/^(http|https):\/\//i.test(T):!0,onValid:P=>m({..._,postSignoutUrl:P}),bound:!1,errorMessage:me.errPostSignoutUrlMustStartWith,value:_.postSignoutUrl,placeholder:me.infoPostSignoutUrl})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(rt,{onClick:()=>A(),iconProps:{iconName:C==we.success?"Like":void 0},style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px",alignSelf:"start"},disabled:C==we.saving,children:"Save configuration"}),e.jsx("div",{className:j.wpo365WzLabelFor,children:yd(v,"saveConfiguration").map(P=>e.jsx("p",{className:j.wpo365WzP,children:P.message}))}),C==we.success?e.jsx("p",{style:{color:"#378805"},children:me.okSettingsUpdated}):null]})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Bs,{})})}),x&&e.jsx(Ws,{onCancel:x.onCancel,onConfirm:x.onConfirm,onDismiss:x.onDismiss,title:x.title,subText:x.subText})]})})},FP=s=>Array.isArray(s)?s.map(o=>({id:o.id?parseInt(o.id):-1,mail_attachments:o.mail_attachments?JSON.parse(o.mail_attachments):[],mail_error:o.mail_error?o.mail_error:"",mail_body:o.mail_body?o.mail_body:"",mail_headers:o.mail_headers?JSON.parse(o.mail_headers):[],mail_sent:o.mail_sent?o.mail_sent:o.mail_last_attempt?o.mail_last_attempt:"TIMESTAMP N/A",mail_subject:o.mail_subject?o.mail_subject:"",mail_success:o.mail_success?parseInt(o.mail_success)===1:!1,mail_to:o.mail_to?JSON.parse(o.mail_to):[],mail_attempts:o.mail_attempts?parseInt(o.mail_attempts):1})):[],bx={label:{fontSize:"120%",fontWeight:600,textDecoration:"underline",textDecorationColor:"#0078D4"}},Sx={label:{fontSize:"120%",fontWeight:400,textDecoration:"none"}},NP={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px",width:"inherit"},OP=[{key:"mail_success",name:"",iconName:"Error",isIconOnly:!0,minWidth:16,maxWidth:16,isResizable:!0,onRender:(s,o,n)=>s.mail_success!==!0?e.jsx("div",{className:j.wpo365WzRowifier,style:{justifyContent:"center",height:"100%",cursor:"pointer"},children:e.jsx(_n,{content:e.jsx("span",{dangerouslySetInnerHTML:{__html:s.mail_error?s.mail_error:"No error details available"}}),id:`tooltip_${n?.key}_${o}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Error",iconName:"Error",style:{fontSize:18,color:"red"}})})}):null},{key:"mail_attachments",name:"",iconName:"Attach",isIconOnly:!0,minWidth:16,maxWidth:16,isResizable:!0,onRender:(s,o,n)=>Array.isArray(s.mail_attachments)&&s.mail_attachments.length>0?e.jsx("div",{className:j.wpo365WzRowifier,style:{justifyContent:"center",height:"100%",cursor:"pointer"},children:e.jsx(_n,{content:s.mail_attachments.map(t=>e.jsx("span",{children:typeof t=="string"?t.trim():"No attachment details available"})),id:`tooltip_${n?.key}_${o}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(kt,{"aria-label":"Attachment",iconName:"Attach",style:{fontSize:18,color:"red"}})})}):null},{key:"mail",name:"Content",minWidth:300,isResizable:!0,onRender:(s,o,n)=>{const t=document.createElement("DIV");t.innerHTML=s.mail_body;const i=t.innerText.trim().substring(0,t.innerText.length<80?t.innerText.length:80);return e.jsxs(U,{tokens:{childrenGap:"10px"},children:[e.jsxs(U,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",children:[e.jsx("div",{style:{fontSize:"110%",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:`To: ${s.mail_to?Array.isArray(s.mail_to)?s.mail_to.join(", "):s.mail_to:""}`}),e.jsx("div",{style:{fontSize:"110%",fontWeight:600,minWidth:"160px"},children:s.mail_sent})]}),e.jsx("div",{style:{fontWeight:600,color:"#0078D4",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:`${s.id} :: ${s.mail_subject}`}),e.jsx("div",{style:{fontSize:"90%",color:"#b1b1b1",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i})]})}}],YP=[{key:5,text:"5"},{key:10,text:"10"},{key:25,text:"25"},{key:50,text:"50"},{key:100,text:"100"},{key:500,text:"500"}],WP=(s,o,n)=>n?.onRender?n.onRender(s,o,n):n&&e.jsx("span",{style:NP,children:s[n?.key]}),BP=()=>{const{env:{props:{nonce:s},wpAjaxAdminUrl:o},settings:n}=E.useContext(Ye),[t,i]=E.useState(null),[d,c]=E.useState("all"),[u,h]=E.useState(null),[g,_]=E.useState("initial"),[m,x]=E.useState([]),[y,v]=E.useState(25),[b,C]=E.useState(0),[k,L]=E.useState(0),I=async P=>{h(null),_("loading");const T=new FormData;T.append("action","wpo365_get_mail_log"),T.append("nonce",s),T.append("ina",window.wpo365.wizard.props.ina),T.append("start_row",P.toString()),T.append("filter",d),T.append("page_size",y.toString());let F;try{F=await Ee.post(o,T)}catch(H){console.error(H),_("error"),h({type:Be.error,message:H.message?H.message:"Unknown error occurred. Please check the Developer Tools > Console for technical details."});return}if(F.status>=200&&F.status<300&&F.data&&F.data.status&&F.data.status=="OK"&&F.data.result){const H=FP(JSON.parse(F.data.result));x(H),_("finished");return}_("error"),h({type:Be.error,message:"Unknown error occurred. Please check the Developer Tools > Console for technical details."})},A=async P=>{console.log(`Sending email with ID ${P} again`),h(null),_("sending");const T=new FormData;T.append("action","wpo365_send_mail_again"),T.append("nonce",s),T.append("ina",window.wpo365.wizard.props.ina),T.append("id",P.toString());let F;try{F=await Ee.post(o,T)}catch(H){console.error(H),_("error"),h({type:Be.error,message:H.message?H.message:"Unknown error occurred. Please check the Developer Tools > Console for technical details."});return}if(F.status>=200&&F.status<300&&F.data&&F.data.status&&F.data.status=="OK"){if(_("initial"),F.data.result){const H=JSON.parse(F.data.result);if(H.mail_success&&H.mail_success===!0){h({type:Be.success,message:"Mail was sent successfully!"});return}}h({type:Be.error,message:"Attempt to send mail again failed. Please check the log for details."});return}_("error"),h({type:Be.error,message:"Unknown error occurred. Please check the Developer Tools > Console for technical details."})},Y=async()=>{h(null),_("loading");const P=new FormData;P.append("action","wpo365_truncate_mail_log"),P.append("nonce",s),P.append("ina",window.wpo365.wizard.props.ina);let T;try{T=await Ee.post(o,P)}catch(F){console.error(F),_("error"),h({type:Be.error,message:F.message?F.message:"Unknown error occurred. Please check the Developer Tools > Console for technical details."});return}if(T.status>=200&&T.status<300&&T.data&&T.data.status&&T.data.status=="OK"){if(_("initial"),T.data.result){const F=JSON.parse(T.data.result);if(F.mail_success&&F.mail_success===!0){h({type:Be.success,message:"Mail log was deleted successfully!"}),x([]);return}}h({type:Be.error,message:"Attempt to delete mail log failed. Please check the log for details."});return}_("error"),h({type:Be.error,message:"Unknown error occurred. Please check the Developer Tools > Console for technical details."})};return E.useEffect(()=>{!Array.isArray(m)||m.length==0||(C(m[m.length-1].id),k===0&&L(m[0].id))},[m]),E.useEffect(()=>{L(0),C(0),I(0)},[y,d]),E.useEffect(()=>{i(null)},[m]),e.jsx(e.Fragment,{children:e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs(U,{children:[e.jsx(U,{horizontal:!0,horizontalAlign:"end",tokens:{childrenGap:"10px"},children:e.jsx("div",{style:{padding:"0px 0px 10px 0px"},children:e.jsx(Ke,{iconProps:{iconName:"ChromeClose"},onClick:()=>{location.hash=`/${je.mail}`}})})}),u&&e.jsx(Zr,{messageBarType:Be.error,isMultiline:!1,onDismiss:()=>h(null),children:u.message}),e.jsxs(U,{horizontal:!0,children:[e.jsxs(U,{tokens:{childrenGap:"15px"},style:{width:"50%",minWidth:"450px",margin:"0px 5px 0px 0px",background:"#fff",padding:"10px",border:"1px solid #d1d1d1"},children:[e.jsxs(U,{horizontal:!0,tokens:{childrenGap:"10px"},children:[e.jsx(Dn,{text:"All",styles:d=="all"?bx:Sx,onClick:()=>c("all")}),e.jsx(Dn,{text:"Errors only",styles:d=="error"?bx:Sx,onClick:()=>c("error")}),g=="loading"&&e.jsx(Oe,{size:Te.small})]}),e.jsx("div",{style:{height:"50vh",position:"relative",maxHeight:"50vh",marginRight:"20px"},children:e.jsx(xI,{children:e.jsx(Vb,{checkButtonAriaLabel:"Select item",items:m,columns:OP,selectionMode:it.single,onRenderItemColumn:WP,enableShimmer:!m,listProps:{renderedWindowsAhead:0,renderedWindowsBehind:0},onShouldVirtualize:()=>!1,onActiveItemChanged:(P,T)=>i(P),layoutMode:qc.justified})})}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(rt,{onClick:()=>I(b+2*y),iconProps:{iconName:"PlayReverse"},disabled:m.length===0||m[0].id===k,ariaLabel:"Newer"}),e.jsx($e,{selectedKey:y,placeholder:"Items per page",options:YP,onChange:(P,T)=>{v(T?.key)}}),e.jsx(rt,{onClick:()=>I(b),iconProps:{iconName:"Play"},disabled:k===0||m.length<y,ariaLabel:"Older"}),e.jsx(rt,{onClick:()=>{L(0),C(0),I(0)},iconProps:{iconName:"Refresh"},ariaLabel:"Refresh"}),e.jsx(rt,{onClick:()=>Y(),iconProps:{iconName:"Delete"},ariaLabel:"Delete log",children:"Delete log"})]})]}),e.jsx(U,{tokens:{childrenGap:"10px"},style:{width:"50%",minWidth:"450px",margin:"0px 0px 0px 5px",padding:"10px",border:"1px solid #d1d1d1"},children:t?e.jsx(e.Fragment,{children:e.jsx("table",{className:"wpo365MailViewerTable",style:{tableLayout:"fixed",width:"100%"},children:e.jsxs("tbody",{children:[e.jsx("tr",{children:e.jsx("th",{colSpan:3,style:{padding:"10px",fontSize:"130%",textAlign:"center"},children:"Mail Preview"})}),e.jsx("tr",{children:e.jsx("td",{colSpan:3,children:e.jsx("hr",{})})}),e.jsxs("tr",{children:[e.jsx("th",{children:"Subject"}),e.jsx("td",{colSpan:2,children:t.mail_subject})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"To"}),e.jsx("td",{colSpan:2,children:t.mail_to&&(Array.isArray(t.mail_to)?t.mail_to.map(P=>e.jsxs("div",{children:[e.jsx("span",{style:{fontWeight:600,paddingRight:"10px"},children:"To"}),e.jsx("span",{children:P})]})):e.jsxs("div",{children:[e.jsx("span",{style:{fontWeight:600,paddingRight:"10px"},children:"To"}),e.jsx("span",{children:t.mail_to})]}))})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Sent"}),e.jsx("td",{colSpan:2,children:t.mail_sent})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Success"}),e.jsx("td",{colSpan:2,children:t.mail_success?"Yes":"No"})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Attempts"}),e.jsx("td",{colSpan:2,children:"mail_attempts"in t?`${t.mail_attempts}/${n.mailAutoRetry?"4":"1"}`:"1"})]}),t.mail_error?e.jsxs("tr",{children:[e.jsx("th",{children:"Info"}),e.jsx("td",{colSpan:2,children:e.jsx("div",{dangerouslySetInnerHTML:{__html:t.mail_error}})})]}):e.jsxs("tr",{children:[e.jsx("th",{children:"Info"}),e.jsx("td",{colSpan:2,children:"-"})]}),Array.isArray(t.mail_headers)&&t.mail_headers.length>0?e.jsx(e.Fragment,{children:t.mail_headers.map((P,T)=>{const F=P.split(":");return F.length==2?e.jsxs("tr",{children:[e.jsx("th",{children:`${T==0?"Headers":""}`}),e.jsx("td",{children:F[0]}),e.jsx("td",{children:F[1]})]}):e.jsxs("tr",{children:[e.jsx("th",{children:"Headers"}),e.jsx("td",{colSpan:2,children:"-"})]})})}):e.jsxs("tr",{children:[e.jsx("th",{children:"Headers"}),e.jsx("td",{colSpan:2,children:"-"})]}),Array.isArray(t.mail_attachments)&&t.mail_attachments.length>0?e.jsx(e.Fragment,{children:t.mail_attachments.map((P,T)=>e.jsxs("tr",{children:[e.jsx("th",{children:`${T==0?"Attachments":""}`}),e.jsx("td",{colSpan:2,children:P})]}))}):e.jsxs("tr",{children:[e.jsx("th",{children:"Attachments"}),e.jsx("td",{colSpan:2,children:"-"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:3,children:e.jsx("hr",{})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:3,children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(rt,{style:{minWidth:"150px"},onClick:()=>A(t.id),iconProps:{iconName:"Send"},children:"Send again"}),g=="sending"&&e.jsx(Oe,{size:Te.small})]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:3,children:e.jsx("div",{dangerouslySetInnerHTML:{__html:t.mail_body}})})})]})})}):e.jsx("div",{className:j.wpo365WzRowifier,style:{justifyContent:"center",paddingTop:"50px"},children:e.jsx("div",{children:e.jsx("em",{children:"No preview available"})})})})]})]})})})},Ht=s=>{const{children:o,requiredVersions:n}=s,{env:{props:{addOns:t}}}=E.useContext(Ye);return n.some(i=>i.addOn in Tp&&Tp[i.addOn]in t&&t[Tp[i.addOn]].activated&&parseFloat(t[Tp[i.addOn]].version)>=i.minVersion)?e.jsx(e.Fragment,{children:o}):e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:{color:"#0078D4"},children:[e.jsx(Ke,{className:j.wpo365WzIconButton,iconProps:{iconName:"CloudDownload"},title:"Install latest version"}),e.jsx("span",{children:"Please update your WPO365 premium extension"})]})},HP={maxWidth:"400px",color:"#cc0000"},zP=s=>{const{env:o,env:{props:{autoRetryOk:n,extensions:t,ssoConfigured:i,wpConfigAad:d,wpConfigMultiple:c}},settings:u,settings:{hidePremiumOptions:h},updateSettings:g}=E.useContext(Ye),_=()=>({applicationId:u.applicationId,applicationSecret:u.applicationSecret,appOnlyApplicationId:u.appOnlyApplicationId,appOnlyApplicationSecret:u.appOnlyApplicationSecret,mailAllowFrom:u.mailAllowFrom,mailApplicationId:u.mailApplicationId,mailApplicationSecret:u.mailApplicationSecret,mailAuthorizationScenario:u.mailAuthorizationScenario,mailAutoRetry:u.mailAutoRetry,mailDefaultRecipient:u.mailDefaultRecipient,mailFixLocalhost:u.mailFixLocalhost,mailFrom:u.mailFrom,mailIntervals:u.mailIntervals,mailLog:u.mailLog,mailLogRetention:u.mailLogRetention,mailMimeType:u.mailMimeType,mailMultiTenanted:u.mailMultiTenanted,mailRedirectUrl:u.mailRedirectUrl,mailReplyTo:u.mailReplyTo,mailSaveToSentItems:u.mailSaveToSentItems,mailSendAlias:u.mailSendAlias,mailSendAliasFrom:u.mailSendAliasFrom,mailSendAs:u.mailSendAs,mailSendAsFrom:u.mailSendAsFrom,mailSendShared:u.mailSendShared,mailSendSharedFrom:u.mailSendSharedFrom,mailSendToBcc:u.mailSendToBcc,mailSkipAllChecks:u.mailSkipAllChecks,mailStagingMode:u.mailStagingMode,mailTenantId:u.mailTenantId,mailThreshold:u.mailThreshold,mailThrottlingEnabled:u.mailThrottlingEnabled,mailTld:u.mailTld,redirectUrl:u.redirectUrl,redirectUrlStrict:u.redirectUrlStrict,samlX509Cert:u.samlX509Cert,skipPasswordCredentialsExpiredCheck:u.skipPasswordCredentialsExpiredCheck,tenantId:u.tenantId,useGraphMailer:u.useGraphMailer,useWpConfig:u.useWpConfig,wpRestAadApplicationId:u.wpRestAadApplicationId,wpRestAadApplicationIdUri:u.wpRestAadApplicationIdUri}),[m,x]=E.useState(_()),[y]=E.useState(o.props.addOns&&Object.keys(o.props.addOns).length>0),[v,b]=E.useState(null),[C,k]=E.useState(),[L,I]=E.useState(!1),[A,Y]=E.useState("unauthorized"),[P,T]=E.useState([]),[F,H]=E.useState(we.initial),[W,K]=E.useState(""),[Z,Q]=E.useState(""),[B,R]=E.useState(""),[X,$]=E.useState(!1),[ie,le]=E.useState(Wo.initial),[V,z]=E.useState(null),[J,ee]=E.useState(null),[he,te]=E.useState("initial"),[G,re]=E.useState(""),[He,Ge]=E.useState("copyDelete"),[Ut,ht]=E.useState("hidden"),[Le,Me]=E.useState(n),[qe,Ct]=E.useState(null),Pt=E.useRef(),Mt=E.useRef("unauthorized"),Wt=ge=>{Y(ge),Mt.current=ge},Xt=(ge,se)=>{switch(ge){case"tenantId":return y&&m.useWpConfig||se&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(se);case"applicationId":return y&&m.useWpConfig||se&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(se);case"applicationSecret":return y&&m.useWpConfig||se&&!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(se);case"redirectUri":return y&&m.useWpConfig||se&&(/^(http|https):\/\/.*\/{1}$/i.test(se)||se.indexOf("=mail-integration-365-settings")>0);case"redirectUriStrict":return!m.redirectUrlStrict||y&&m.useWpConfig||se&&se.length>o.props.siteUrl.length+2;case"mailFrom":return se&&/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/.test(se);default:return!1}},[wo,an]=E.useState(u.redirectUrlStrict?Xt("redirectUriStrict",u.mailRedirectUrl):!0),fs=ge=>ge.indexOf("AADSTS7000215")>=0?"WPO365 could not retrieve application-level permissions to send emails using Microsoft Graph. If you intend to authorize a single user account using delegated permissions, then you can safely ignore this warning. [Orginal error: AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret  [...]]":ge.indexOf("does not has the role requested")?`WPO365 could not retrieve application-level permissions to send emails using Microsoft Graph. If you intend to authorize a single user account using delegated permissions, then you can safely ignore this warning. [Orginal error: ${ge}]`:ge,Hn=(ge,se,Ae,gt)=>{if(ge){se(!1);return}b({title:Ae,subText:gt,onDismiss:()=>b(null),onCancel:()=>b(null),onConfirm:()=>{b(null),se(!0)}})},Mi=async()=>{if(!W)return{message:"Please enter a valid email address to send a test email to.",success:!1};if(!m.mailFrom)return{message:'Please enter a valid email address for "(Default) From".',success:!1};const ge=new FormData;ge.append("action","wpo365_send_test_mail"),ge.append("nonce",o.nonce),ge.append("ina",window.wpo365.wizard.props.ina),ge.append("to",JSON.stringify(W.split(","))),ge.append("cc",JSON.stringify(Z.split(","))),ge.append("bcc",JSON.stringify(B.split(","))),ge.append("attachment",JSON.stringify(X));let se;try{se=await Ee.post(o.wpAjaxAdminUrl,ge)}catch(Ae){return{success:!1,message:Ae.message}}return se.status>=200&&se.status<300&&se.data&&se.data.status?se.data.status=="OK"?{message:me.empty,success:!0}:{message:se.data.message,success:!1}:{message:`Error occured (HTTP status ${se.status})`,success:!1}},rr=async(ge=!1,se=!1)=>{k(""),Wt("authorizing");const Ae=await sr(!0);if(Ae){k(`${Ae}.`),Wt("unauthorized");return}const gt=new FormData;gt.append("action","wpo365_get_mail_auth_configuration"),gt.append("deleteDelegated",ge||u.mailFrom!=m.mailFrom?"true":"false"),gt.append("deleteAppOnly",se?"true":"false"),gt.append("nonce",o.nonce),gt.append("ina",window.wpo365.wizard.props.ina);let Bt;try{Bt=await Ee.post(o.wpAjaxAdminUrl,gt)}catch(or){k(`${or.message}.`),Wt("unauthorized");return}if(Bt.status>=200&&Bt.status<300&&Bt.data&&Bt.data.status){if(Bt.data.status=="OK"){if(ee(Bt.data.result),Bt.data.result.delegated_authorized){Wt("authorized"),Bt.data.result.has_refresh_token||k("Refresh token is missing [Check documentation].");return}if(Bt.data.result.app_only_authorized){Wt("authorized");return}Wt("unauthorized");return}k(`The following error occurred: [${Bt.status}] ${Bt.data.message}.`),Wt("unauthorized");return}k("An unknown error occurred [Check your browser's developer console for details]."),Wt("unauthorized")},Ft=async()=>{if(Wt("authorizing"),k(null),!m.mailFrom){k('Cannot start authorization when no "From" User Mailbox / Account has been specified.'),Wt("unauthorized");return}if(!m.mailTenantId){k("Cannot start authorization when no directory (tenant) ID has been specified."),Wt("unauthorized");return}if(!m.mailApplicationId){k("Cannot start authorization when no application (client) ID has been specified."),Wt("unauthorized");return}if(!m.mailApplicationSecret){k("Cannot start authorization when no aplication (client) secret has been specified."),Wt("unauthorized");return}if(!m.mailRedirectUrl){k("Cannot start authorization when no redirect URL has been specified."),Wt("unauthorized");return}const ge=await sr(!0);if(ge){k(`${ge}.`),Wt("unauthorized");return}(J.delegated_authorized||J.app_only_authorized)&&await rr(!0,!0);const se=new FormData;se.append("action","wpo365_get_mail_authorization_url"),se.append("nonce",o.nonce),se.append("ina",window.wpo365.wizard.props.ina);let Ae;try{Ae=await Ee.post(o.wpAjaxAdminUrl,se)}catch(gt){k(`${gt.message}.`),Wt("unauthorized");return}if(Ae.status>=200&&Ae.status<300&&Ae.data&&Ae.data.status){if(Ae.data.status=="OK"){location.href=Ae.data.result;return}k(`The following error occurred: [${Ae.status}] ${Ae.data.message}.`),Wt("unauthorized");return}k("An unknown error occurred [Check your browser's developer console for details]."),Wt("unauthorized")},Vs=async()=>{ee(null),re(""),te("copying");const ge=new FormData;ge.append("action","wpo365_try_migrate_mail_app_principal_info"),ge.append("nonce",o.nonce),ge.append("ina",window.wpo365.wizard.props.ina),ge.append("copyMode",He);let se;try{if(se=await Ee.post(o.wpAjaxAdminUrl,ge),se&&se.data&&se.data.status&&se.data.status=="NOK")throw se.data.message;window.location.reload()}catch(Ae){console.error(Ae),re(Ae.message?Ae.message:Ae)}te("initial")},sr=async(ge=!1)=>{ge||(T([]),H(we.saving),le(Wo.testing));const se={...u};se.applicationId=m.applicationId,se.applicationSecret=m.applicationSecret,se.appOnlyApplicationId=m.appOnlyApplicationId,se.appOnlyApplicationSecret=m.appOnlyApplicationSecret,se.mailAllowFrom=m.mailAllowFrom,se.mailApplicationId=m.mailApplicationId,se.mailApplicationSecret=m.mailApplicationSecret,se.mailAuthorizationScenario=m.mailAuthorizationScenario,se.mailAutoRetry=m.mailAutoRetry,se.mailDefaultRecipient=m.mailDefaultRecipient,se.mailFixLocalhost=m.mailFixLocalhost,se.mailFrom=m.mailFrom,se.mailIntervals=m.mailIntervals,se.mailLog=m.mailLog,se.mailLogRetention=m.mailLogRetention,se.mailMimeType=m.mailMimeType,se.mailMultiTenanted=m.mailMultiTenanted,se.mailRedirectUrl=m.mailRedirectUrl,se.mailReplyTo=m.mailReplyTo,se.mailSaveToSentItems=m.mailSaveToSentItems,se.mailSendAlias=m.mailSendAlias,se.mailSendAliasFrom=m.mailSendAliasFrom,se.mailSendAs=m.mailSendAs,se.mailSendAsFrom=m.mailSendAsFrom,se.mailSendShared=m.mailSendShared,se.mailSendSharedFrom=m.mailSendSharedFrom,se.mailSendToBcc=m.mailSendToBcc,se.mailSkipAllChecks=m.mailSkipAllChecks,se.mailStagingMode=m.mailStagingMode,se.mailTenantId=m.mailTenantId,se.mailThreshold=m.mailThreshold,se.mailThrottlingEnabled=m.mailThrottlingEnabled,se.mailTld=m.mailTld,se.redirectUrl=m.redirectUrl,se.redirectUrlStrict=m.redirectUrlStrict,se.samlX509Cert=m.samlX509Cert,se.skipPasswordCredentialsExpiredCheck=m.skipPasswordCredentialsExpiredCheck,se.tenantId=m.tenantId,se.useGraphMailer=m.useGraphMailer,se.useWpConfig=m.useWpConfig;try{const Ae=await Fe.updateSettings(o,se);if(Ae.success){const gt=await Fe.getSettings(o);if(g(gt),ge)return null;T([]),H(we.success);const Bt=await Mi();Bt&&"success"in Bt&&Bt.success?le(Wo.success):(T([`Failed to send a test email [Reason: ${Bt.message?Bt.message:"No error details available."}]. Also check the <a href="#debug">Debug Log</a> for possible warnings / errors.`]),H(we.error),le(Wo.error))}else{const gt=`Could not save your configuration (${Ae.message})`;if(ge)return gt;T([gt]),H(we.error)}}catch{const gt="Unknown error occured whilst updating settings [check F12 > console for technical details]";if(ge)return gt;T([gt]),H(we.error)}},Gs=async(ge=!1)=>{Ct(null);const se=new FormData;se.append("action","wpo365_mail_auto_retry"),se.append("nonce",o.nonce),se.append("ina",window.wpo365.wizard.props.ina),se.append("unschedule",ge?"1":"0");let Ae;try{Ae=await Ee.post(o.wpAjaxAdminUrl,se)}catch(gt){Me(!1),Ct(gt);return}if(Ae.status<200||Ae.status>=300||Ae&&Ae.data&&Ae.data.status&&Ae.data.status=="NOK"){Ae.data&&Ae.data.message?Ct(Ae.data.message):Ct("Unknown error occurred whilst trying to create the WP Cron Job that automatically resends failed emails."),Me(!1);return}Me(!0)},Rt=()=>{Hn(m.mailMultiTenanted,ge=>{x({...m,mailMultiTenanted:ge,mailSkipAllChecks:ge?!0:m.mailSkipAllChecks}),ge&&Pt.current&&clearTimeout(Pt.current)},"Important",`You indicated that you wish to authorize a personal Microsoft account (e.g. Hotmail.com or 
       Outlook.com). Please read the <a href="https://tutorials.wpo365.com/courses/email-configure-microsoft-graph-mailer/lessons/send-email-from-a-personal-microsoft-account-e-g-hotmail-com/" 
       target="_blank">online documentation</a> to ensure that you have enabled multi-tenancy 
       support for your "App Registration" (in Entra ID) and selected the option "Accounts in 
       any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal 
       Microsoft accounts (e.g. Skype, Xbox)" for "Supported account types" on its "Authentication" 
       page.`)};return E.useEffect(()=>{m.useGraphMailer&&rr(!1,!1)},[]),E.useEffect(()=>{V&&(V=="useGraphMailer"?rr(!0,!0).then(()=>z(null)).catch(()=>z(null)):V=="stagingMode"?sr(!0).then(async ge=>{ge||(await Gs(!m.mailAutoRetry),location.reload()),z(null)}).catch(()=>z(null)):V=="autoRetry"?sr(!0).then(async ge=>{ge||await Gs(!m.mailAutoRetry),z(null)}).catch(()=>z(null)):(V=="obfuscate"||V=="useGcc")&&sr(!0).then(async ge=>{z(null)}).catch(()=>z(null)))},[V]),E.useEffect(()=>{I((J||A!="authorizing")&&(y&&m.useWpConfig||Xt("tenantId",m.mailTenantId)&&Xt("applicationId",m.mailApplicationId)&&Xt("applicationSecret",m.mailApplicationSecret)&&Xt("redirectUri",m.mailRedirectUrl)&&Xt("mailFrom",m.mailFrom))),!(m.mailFrom==u.mailFrom&&m.useWpConfig==u.useWpConfig&&u.mailRedirectUrl==m.mailRedirectUrl&&u.mailTenantId==m.mailTenantId&&u.mailApplicationId==m.mailApplicationId&&u.mailApplicationSecret==m.mailApplicationSecret)&&m.mailTenantId&&m.mailApplicationId&&m.mailApplicationSecret&&m.mailRedirectUrl&&(Pt.current&&clearTimeout(Pt.current),Pt.current=setTimeout(()=>Mt.current!="authorizing"&&ht("deleteBoth"),4e3))},[J,m.mailFrom,m.useWpConfig,m.mailTenantId,m.mailApplicationId,m.mailApplicationSecret,m.mailRedirectUrl]),E.useEffect(()=>{(u.mailTenantId!=m.mailTenantId||u.mailApplicationId!=m.mailApplicationId||u.mailRedirectUrl!=m.mailRedirectUrl||u.mailApplicationSecret!=m.mailApplicationSecret||u.useWpConfig!=m.useWpConfig)&&x(_())},[u]),E.useEffect(()=>{an(Xt("redirectUriStrict",m.mailRedirectUrl))},[m.redirectUrlStrict,m.mailRedirectUrl]),E.useEffect(()=>{!m.mailMultiTenanted&&m.mailFrom&&m.mailFrom!=u.mailFrom&&["hotmail","outlook"].forEach(se=>{m.mailFrom.indexOf(`@${se}`)>-1&&Rt()})},[m.mailFrom]),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsxs("tbody",{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("h3",{className:j.wpo365WzSectionTitle,children:[e.jsx("span",{style:{color:"#CE5708"},children:"Getting started"})," with Email"]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(ou,{buttons:[{callToAction:"Send WP emails from any M365 Mailbox",info:"https://www.wpo365.com/feature/send-wordpress-emails-using-microsoft-graph/",title:"Email",tutorial:"https://tutorials.wpo365.com/courses/email-configure-microsoft-graph-mailer/"}]})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsxs("strong",{children:["Sending emails with Microsoft Graph is ",m.useGraphMailer?"enabled":"disabled"]})})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(jn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:m.useGraphMailer,onChange:(ge,se)=>Hn(m.useGraphMailer,Ae=>{x(Ae?{...m,useGraphMailer:Ae}:{...m,useGraphMailer:Ae,mailAllowFrom:!1,mailApplicationId:"",mailApplicationSecret:"",mailAutoRetry:!1,mailDefaultRecipient:"",mailFixLocalhost:!1,mailFrom:"",mailIntervals:[3600,7200,14400],mailLog:!1,mailMimeType:"Html",mailRedirectUrl:u.redirectUrl,mailReplyTo:"",mailSaveToSentItems:!1,mailSendAs:!1,mailSendAsFrom:"",mailSendShared:!1,mailSendSharedFrom:"",mailSendToBcc:!1,mailStagingMode:!1,mailTenantId:"",mailThreshold:20,mailThrottlingEnabled:!1}),z("useGraphMailer")},"Important",`<p>You are configuring the <strong>WPO365</strong> plugin to send your WordPress transactional emails from a Microsoft 365 / Exchange Online Mail enabled account
                           using Microsoft Graph.</p><p>Please make sure that you have read the <a href="${t.indexOf(l.wpo365Login)==-1?"https://docs.wpo365.com/article/141-send-email-using-microsoft-graph-mailer":"https://docs.wpo365.com/article/108-sending-wordpress-emails-using-microsoft-graph"}" 
                           target="_blank">online documentation</a>.</p>`)}),V=="useGraphMailer"&&e.jsx(Oe,{size:Te.small})]})})]}),m.useGraphMailer&&e.jsxs(e.Fragment,{children:[t.some(ge=>ge==l.mailIntegration)&&e.jsxs(e.Fragment,{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("h3",{className:j.wpo365WzSectionTitle,style:{backgroundColor:"#0078d4",color:"#ffffff"},children:["Import Tool for ",e.jsx("em",{children:"Mail Integration for Office 365 / Outlook"})," settings"]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("span",{style:{color:"#CC0000"},children:[e.jsx(Ue,{iconName:"Warning",style:{paddingRight:"5px"}}),"Please take a moment and carefully read the  ",e.jsx("a",{href:"https://docs.wpo365.com/article/165-migrate-from-mail-integration-for-office-365-outlook-to-wpo365-microsoft-graph-mailer",target:"_blank",children:"migration guide"})," ","  before you click ",e.jsx("strong",{children:"Import"}),"."]})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Import mode"})})}),e.jsx("td",{children:e.jsx($e,{options:[{key:"select",text:"Select",itemType:Tt.Header},{key:"copy",text:"Import"},{key:"copyDelete",text:"Import, Delete"}],selectedKey:He,onChange:(ge,se)=>se&&Ge(se.key),style:{maxWidth:"400px"},disabled:he!="initial"||!J})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsxs("span",{children:["Import OAUTH settings from ",e.jsx("strong",{children:"Mail Integration for Office 365 / Outlook"})]})})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(et,{onClick:Vs,styles:{root:{maxHeight:"30px",maxWidth:"90px"}},disabled:he!="initial"||!J,children:"Import"}),he=="copying"&&e.jsx(Oe,{size:Te.small}),G&&e.jsx("div",{style:{color:"#cc0000"},children:G})]})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Entra ID Integration"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Directory (tenant) ID"})," "]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(ge,se)=>Xt("tenantId",se),onValid:ge=>x({...m,mailTenantId:ge}),bound:!1,errorMessage:me.errDirectoryIdMustBeGuid,value:m.mailTenantId,placeholder:me.infoDirectoryId,disabled:!J||y&&m.useWpConfig||A=="authorizing"||d||c})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"GCC High Tenant (Microsoft 365 Gov)"})})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(jn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:m.mailTld===".us",onChange:(ge,se)=>Hn(m.mailTld===".us",Ae=>{x({...m,mailTld:Ae?".us":".com"}),z("useGcc")},"Important",`<p>Only check this option if you have made sure that your organization is using
                                    a so-called GCC High Tenant, which is a specialized cloud environment offered
                                    by Microsoft to meet the stringent compliance and security requirements of the 
                                    United States Department of Defense (DoD) and contractors handling Controlled 
                                    Unclassified Information (CUI) or subject to International Traffic in Arms 
                                    Regulations (ITAR). </p>`),disabled:m.mailStagingMode}),V=="useGcc"&&e.jsx(Oe,{size:Te.small})]})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Application (Client) ID"})," ",m.mailApplicationId&&(!y||!m.useWpConfig)&&e.jsx("em",{children:e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/Overview/appId/${m.mailApplicationId}/isMSAApp/`,target:"_blank",children:"View in Entra Portal"})})]})}),e.jsx("td",{children:e.jsx(fe,{isValid:(ge,se)=>Xt("applicationId",se),onValid:ge=>x({...m,mailApplicationId:ge}),bound:!1,errorMessage:me.errAppOnlyApplicationIdMustBeGuid,value:m.mailApplicationId,placeholder:me.infoAppOnlyApplicationId,disabled:!J||y&&m.useWpConfig||A=="authorizing"||d||c})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Application (Client) secret"})})}),e.jsx("td",{children:e.jsx(fe,{isValid:(ge,se)=>Xt("applicationSecret",se),onValid:ge=>x({...m,mailApplicationSecret:ge}),bound:!1,errorMessage:"The application (client) secret is mandatory and may not be a GUID",value:m.mailApplicationSecret,disabled:!J||y&&m.useWpConfig||A=="authorizing"||d||c,password:!0})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Skip check for Application (Client) Secret expiration"})," ",e.jsx(de,{info:{title:"Skip check for App registration secret expiration",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/203-skip-check-for-aad-app-registration-secret-expiration"}}})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{onChange:(ge,se)=>x({...m,skipPasswordCredentialsExpiredCheck:se??!1}),checked:m.skipPasswordCredentialsExpiredCheck,disabled:!t.some(ge=>ge===l.wpo365MsGraphMailer)}),!t.some(ge=>ge===l.wpo365MsGraphMailer)&&e.jsxs(e.Fragment,{children:[e.jsx(Ue,{iconName:"Warning",style:{paddingRight:"5px",color:"#0078D4"}}),e.jsxs("span",{style:{color:"#0078D4"},children:["Can be changed on the ",e.jsx("a",{href:"#integration",children:"Integration"})," page"]})]})]})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Redirect URI"})})}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:0},children:[e.jsx(fe,{isValid:(ge,se)=>Xt("redirectUri",se),onValid:ge=>x({...m,mailRedirectUrl:ge}),bound:!1,errorMessage:'Redirect URI must be a valid URL and start with "http(s)://" and end with "/".',value:m.mailRedirectUrl,placeholder:me.infoRedirectUri,disabled:!J||y&&m.useWpConfig||A=="authorizing"||d||c}),!wo&&e.jsx("label",{style:{lineHeight:"30px",color:"#cc0000"},children:'Redirect URI cannot be equal to the site address when "strict mode" is selected'})]})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable strict mode for Redirect URI"}),e.jsx(de,{info:{title:"Enable strict mode for Redirect URI",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/204-enable-strict-mode-for-redirect-uri"}}})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{checked:m.redirectUrlStrict,onChange:(ge,se)=>x({...m,redirectUrlStrict:se}),disabled:i&&!u.useSaml||d||c})}),(i&&!u.useSaml||d||c)&&e.jsxs("span",{className:j.wpo365WzRowifier,style:{color:"#0078D4"},children:[e.jsx(Ue,{iconName:"Warning",style:{paddingRight:"5px"}}),"Can be changed on the ",e.jsx("a",{href:"#singleSignOn",children:"Single Sign-on"})," page"]})]})})]}),(!h||t.some(ge=>[l.wpo365Mail,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Obfuscate Entra ID options"})," ",e.jsx(de,{info:{title:"Use WP-Config(.php) for AAD secrets",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/137-use-wp-config-for-aad-secrets"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(jn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:m.useWpConfig,disabled:!u.noSso||!J||A=="authorizing"||!m.useWpConfig&&!d&&!c,onChange:(ge,se)=>{x({...m,useWpConfig:se??!1}),z("obfuscate")}}),V=="obfuscate"&&e.jsx(Oe,{size:Te.small})]}),!u.noSso&&(m.useWpConfig||d||c)&&e.jsxs("span",{className:j.wpo365WzRowifier,style:{color:"#0078D4"},children:[e.jsx(Ue,{iconName:"Warning",style:{paddingRight:"5px"}}),"Can be changed on the ",e.jsx("a",{href:"#singleSignOn",children:"Single Sign-on"})," page"]})]})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Mail account configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Desired Authorization Scenario"}),e.jsx(de,{info:{title:"Authorize a user account to send emails",readMore:{title:"Read online",url:"https://tutorials.wpo365.com/courses/email-configure-microsoft-graph-mailer/lessons/update-wpo365-authorize-connect-to-microsoft-graph/"}}})]})}),e.jsx("td",{children:e.jsx($e,{onChange:(ge,se)=>{const Ae={...m};Ae.mailAuthorizationScenario=se.key,se.key===er.personal?(Ae.mailMultiTenanted=!0,Ae.mailSkipAllChecks=!0):Ae.mailMultiTenanted=!1,x(Ae),ht("deleteBoth")},placeholder:"Select your desired scenario",options:[{key:er.auto,text:"Please select one"},{key:er.delegated,text:"Send as a user (delegated permissions)"},{key:er.personal,text:"Send from a personal Microsoft account e.g. Outlook.com"},{key:er.application,text:"Send as any user (application permissions)"},{key:er.rbac,text:"Send as any user (RBAC for EXO)"}],style:{maxWidth:"400px"},selectedKey:m.mailAuthorizationScenario})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("span",{children:"Detected authorization status"}),e.jsx(el,{iconProps:{iconName:"Refresh"},title:"Refresh",ariaLabel:"Refresh",onClick:()=>ht("deleteAppOnly"),disabled:A=="authorizing",styles:{label:{fontSize:"13px",color:"#2271b1",textDecoration:"underline"}},children:"Check again"})]})}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(ce,{checked:J&&J.app_only_authorized,label:"Application permissions",disabled:!0,styles:{root:{marginRight:"10px"}}}),J&&J.app_only_last_error&&e.jsx(_n,{content:e.jsx("span",{children:fs(J.app_only_last_error)}),id:"tooltip_app_only_last_error",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block",cursor:"pointer",color:"red",height:"27px"}},children:e.jsx(Ue,{iconName:"Error"})})]}),e.jsx(ce,{onChange:(ge,se)=>!(se??!1)&&ht("deleteDelegated"),checked:J&&J.delegated_authorized,label:"Delegated permissions",disabled:!J||!J.delegated_authorized}),J&&J.app_only_authorized&&[er.auto,er.delegated,er.personal].indexOf(m.mailAuthorizationScenario)>-1&&e.jsxs(U,{children:[e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx("span",{children:e.jsx(Ue,{iconName:"Warning"})}),e.jsxs("span",{style:{color:"#CC0000"},children:["Unnecessary ",e.jsx("strong",{children:"Application Permissions"})," detected"]})]}),e.jsx("span",{style:{maxWidth:"400px",color:"#0078D4"},dangerouslySetInnerHTML:{__html:`You have configured <strong>Application Permissions</strong> for <em>Mail.Send</em> but have 
                                           selected an <em>Authorization scenario</em> that only requires <strong>Delegated Permissions</strong>.
                                           Therefore it is recommended that you remove those <strong>Application Permissions</strong>. To do so,
                                           please visit <a href="https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/CallAnAPI/appId/${m.mailApplicationId}/isMSAApp~/false" target="_blank">Entra Portal</a>`}})]})]})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{dangerouslySetInnerHTML:{__html:`Authorized ${m.mailAuthorizationScenario===er.personal&&J&&!J.app_only_authorized?"personal Microsoft account":"Microsoft 365 account"}</em>`}})})}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(fe,{isValid:(ge,se)=>Xt("mailFrom",se),onValid:ge=>x({...m,mailFrom:ge}),errorMessage:"Please enter a valid email address",bound:!1,value:m.mailFrom,placeholder:me.infoMailFrom}),[er.auto,er.delegated,er.personal].indexOf(m.mailAuthorizationScenario)>-1&&e.jsx(et,{onClick:()=>Ft(),styles:{root:{maxHeight:"30px",maxWidth:"90px"}},disabled:!L,children:"Authorize"}),A=="authorized"&&e.jsx("div",{style:{color:"#378805"},children:"Authorized!"}),A=="authorizing"&&e.jsx(U.Item,{align:"start",styles:{root:{marginTop:"7px"}},children:e.jsx(Oe,{size:Te.small})}),J&&!J.app_only_authorized&&A=="unauthorized"&&e.jsx("div",{style:{color:"#cc0000"},children:"Unauthorized!"})]}),C&&e.jsx("p",{style:HP,dangerouslySetInnerHTML:{__html:C}})]})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Skip all checks"})," ",e.jsx(de,{info:{title:"Skip all checks",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/209-skip-all-mail-checks"}}})]})}),e.jsx("td",{children:e.jsx(ce,{onChange:(ge,se)=>{x({...m,mailSkipAllChecks:se??!1})},checked:m.mailSkipAllChecks,disabled:m.mailMultiTenanted})})]}),!m.mailMultiTenanted&&e.jsxs(e.Fragment,{children:[(!h||t.some(ge=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Mail,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Send from an Alias"}),e.jsx(de,{info:{title:"Send from an Alias",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/231-send-from-an-alias-email-address"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{onChange:(ge,se)=>{x(se?{...m,mailSendAlias:!0,mailSendAs:!1,mailSendAsFrom:"",mailSendShared:!1,mailSendSharedFrom:""}:{...m,mailSendAlias:!1})},checked:m.mailSendAlias,disabled:m.mailSendShared||m.mailSendAs}),(m.mailSendAs||m.mailSendShared)&&e.jsxs("em",{children:["Uncheck ",e.jsx("strong",{children:m.mailSendAs?"Send as / On behalf of":"Send from Shared Mailbox"})," to enable"]})]})})})]}),m.mailSendAlias&&(!h||t.some(ge=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Mail,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Alias email address"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(ge,se)=>!0,onValid:ge=>x({...m,mailSendAliasFrom:ge}),bound:!1,value:m.mailSendAliasFrom,placeholder:me.infoMailFrom,disabled:m.mailSendAs||m.mailSendShared})})})]}),(!h||t.some(ge=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Mail,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Send from a Shared Mailbox"}),e.jsx(de,{info:{title:"Send from a Shared Mailbox",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/175-send-from-a-shared-mailbox"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{onChange:(ge,se)=>{x(se?{...m,mailSendShared:!0,mailSendAs:!1,mailSendAsFrom:"",mailSendAlias:!1,mailSendAliasFrom:""}:{...m,mailSendShared:!1})},checked:m.mailSendShared,disabled:m.mailSendAs||m.mailSendAlias}),(m.mailSendAs||m.mailSendAlias)&&e.jsxs("em",{children:["Uncheck ",e.jsx("strong",{children:m.mailSendAs?"Send as / On behalf of":"Send from Alias"})," to enable"]})]})})})]}),m.mailSendShared&&(!h||t.some(ge=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Mail,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Shared Mailbox"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(ge,se)=>!0,onValid:ge=>x({...m,mailSendSharedFrom:ge}),bound:!1,value:m.mailSendSharedFrom,placeholder:me.infoMailFrom,disabled:m.mailSendAs||m.mailSendAlias})})})]}),(!h||t.some(ge=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Mail,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Send as / Send on behalf of"}),e.jsx(de,{info:{title:"Send as / Send on behalf of",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/176-send-as-send-on-behalf-of"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{onChange:(ge,se)=>{x(se?{...m,mailSendAs:!0,mailSendShared:!1,mailSendSharedFrom:"",mailSendAlias:!1,mailSendAliasFrom:""}:{...m,mailSendAs:!1})},checked:m.mailSendAs,disabled:m.mailSendShared||m.mailSendAlias}),(m.mailSendShared||m.mailSendAlias)&&e.jsxs("em",{children:["Uncheck ",e.jsx("strong",{children:m.mailSendShared?"Send from Shared Mailbox":"Send from Alias"})," to enable"]})]})})})]}),m.mailSendAs&&(!h||t.some(ge=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Mail,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Send as / Send on behalf of Mailbox"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(ge,se)=>!0,onValid:ge=>x({...m,mailSendAsFrom:ge}),bound:!1,value:m.mailSendAsFrom,placeholder:me.infoMailFrom,disabled:m.mailSendShared||m.mailSendAlias})})})]}),(!h||t.some(ge=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Mail,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Allow sending from other mailboxes"}),e.jsx(de,{info:{title:"Allow sending from other mailboxes",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/177-allow-forms-to-override-from-address"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(ge,se)=>x({...m,mailAllowFrom:se??!1}),checked:m.mailAllowFrom})})})})]})]}),(!h||t.some(ge=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Mail,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Reply-to"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(ge,se)=>!se||/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/i.test(se),onValid:ge=>x({...m,mailReplyTo:ge}),bound:!1,value:m.mailReplyTo,placeholder:me.infoMailFrom,errorMessage:me.errMustBeValidEmail})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Send email formatted as HTML"})})}),e.jsx("td",{children:e.jsx($e,{options:[{key:"select",text:"Select",itemType:Tt.Header},{key:"Text",text:"Text"},{key:"Html",text:"Html"}],selectedKey:m.mailMimeType,onChange:(ge,se)=>se&&x({...m,mailMimeType:se.key}),style:{maxWidth:"400px"}})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Save to Sent Items"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(ge,se)=>x({...m,mailSaveToSentItems:se??!1}),checked:m.mailSaveToSentItems})})})]}),(!h||t.some(ge=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Mail,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Send to Bcc instead"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(ge,se)=>x({...m,mailSendToBcc:se??!1}),checked:m.mailSendToBcc})})})})]}),m.mailSendToBcc&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Default To: recipient"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(ge,se)=>!0,onValid:ge=>x({...m,mailDefaultRecipient:ge}),bound:!1,value:m.mailDefaultRecipient,placeholder:me.infoMailFrom})})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Test configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Send test email to recipients"})})}),e.jsx("td",{children:e.jsx(fe,{isValid:(ge,se)=>!0,onValid:ge=>K(ge),bound:!1,value:W,placeholder:me.infoTestMailTo})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Send test email to CC recipients"})})}),e.jsx("td",{children:e.jsx(fe,{isValid:(ge,se)=>!0,onValid:ge=>Q(ge),bound:!1,value:Z,placeholder:me.infoTestMailTo})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Send test email BCC recipients"})})}),e.jsx("td",{children:e.jsx(fe,{isValid:(ge,se)=>!0,onValid:ge=>R(ge),bound:!1,value:B,placeholder:me.infoTestMailTo})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Send test email with attachment"})})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(ge,se)=>$(se??!1),checked:X})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Mail Audit"})})}),!u.insightsEnabled&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable WPO365 Insights"}),e.jsx(de,{info:{title:"WPO365 Insights",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/210-wpo365-insights"}}})]})}),e.jsx("td",{children:e.jsx("a",{href:"#insights",children:"Visit Dashboard → Insights"})})]}),(!h||t.some(ge=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Mail,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro].some(se=>se==ge)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable Mail Staging Mode"}),e.jsx(de,{info:{title:"Enable Mail Staging Mode",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/171-mail-staging-mode"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(jn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:m.mailStagingMode,onChange:(ge,se)=>Hn(m.mailStagingMode,Ae=>{x({...m,mailStagingMode:Ae,mailLog:se??!1?!0:m.mailLog,mailAutoRetry:se??!1?!1:m.mailAutoRetry,mailThrottlingEnabled:se??!1?!1:m.mailThrottlingEnabled}),z("stagingMode")},"Important",`<p>By checking this option, the <strong>WPO365</strong> plugin will no 
                                   longer send emails using Microsoft Graph but instead will log the email that 
                                   was intended to be sent. This makes especially sense for a staging environment.</p>
                                   <p>Please make sure that you have read the <a href="https://docs.wpo365.com/article/171-mail-staging-mode"
                                   target="_blank">online documentation</a>.</p>`)}),V=="stagingMode"&&e.jsx(Oe,{size:Te.small})]})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Log all emails sent"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs("div",{className:`${j.wpo365WzCheckbox} ${j.wpo365WzRowifier}`,children:[e.jsx(ce,{onChange:(ge,se)=>x({...m,mailLog:se??!1}),checked:m.mailLog,disabled:m.mailStagingMode}),m.mailLog&&e.jsx("span",{style:{paddingLeft:"20px"},children:e.jsx("a",{href:"#mailLogViewer",children:"View logs"})})]})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Mail log retention"}),e.jsx(de,{info:{title:"Mail log retention",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/217-mail-log-retention"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(ge,se)=>!isNaN(parseInt(se)),onValid:ge=>{x({...m,mailLogRetention:parseInt(ge)})},bound:!1,errorMessage:"Only numeric input is accepted",value:m.mailLogRetention.toString(),placeholder:"e.g. 45"})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Throttle # of emails / minute"}),e.jsx(de,{info:{title:"Throttle number of emails sent per minute",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/182-throttle-the-number-of-emails-sent-per-minute"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Mail,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Customers,minVersion:24}],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:{height:"30px"},children:[e.jsx(jn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:m.mailThrottlingEnabled,onChange:(ge,se)=>Hn(m.mailThrottlingEnabled,Ae=>{x({...m,mailThrottlingEnabled:Ae,mailAutoRetry:se??!1?!0:m.mailAutoRetry,mailLog:se??!1?!0:m.mailLog}),z("autoRetry")},"Important",`<p>Checking this option will automatically enable the plugin's ability to resend failed emails automatically. And it is for
                                    that reason that the plugin will add a new WP-Cron job to your system. It is your responsibility to ensure that WP-Cron jobs 
                                    are running frequently. Please check <a href="https://docs.wpo365.com/article/135-hooking-wp-cron-into-a-task-scheduling-service"
                                    target="_blank">our online documentation</a> how you can improve the stability of WP-Cron and simulate a situation in which
                                    WP-Cron is running continiously.</p>`),disabled:m.mailStagingMode}),m.mailThrottlingEnabled&&e.jsx($e,{options:[{key:"2",text:"2"},{key:"10",text:"10"},{key:"20",text:"20"},{key:"30",text:"30"}],selectedKey:m.mailThreshold.toString(),onChange:(ge,se)=>se&&x({...m,mailThreshold:parseInt(se.key)})})]})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Resending failed emails automatically"}),e.jsx(de,{info:{title:"Resending failed emails automatically",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/183-resending-failed-emails-automatically"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Mail,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsxs(U,{tokens:{childrenGap:0},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(jn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:m.mailAutoRetry,onChange:(ge,se)=>Hn(m.mailAutoRetry,Ae=>{x({...m,mailAutoRetry:Ae,mailLog:se??!1?!0:m.mailLog}),z("autoRetry")},"Important",`<p>Checking this option will add a new WP-Cron job to your system. It is your responsibility to ensure that WP-Cron jobs are
                                    running frequently. Please check <a href="https://docs.wpo365.com/article/135-hooking-wp-cron-into-a-task-scheduling-service"
                                    target="_blank">our online documentation</a> how you can improve the stability of WP-Cron and simulate a situation in which
                                    WP-Cron is running continuously.</p>`),disabled:m.mailStagingMode}),V=="autoRetry"&&e.jsx(Oe,{size:Te.small}),m.mailAutoRetry&&!Le&&e.jsx(_n,{content:e.jsx("span",{children:"This feature did not correctly initialize. Please try to reactivate it."}),id:"tooltip_mail_auto_retry_error",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block",cursor:"pointer",color:"#CC0000",height:"27px"}},children:e.jsx(Ue,{iconName:"Warning"})})]}),qe&&e.jsx("div",{style:{color:"#cc0000"},children:qe})]})})})})]}),m.mailAutoRetry&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Interval in seconds between first, second and last attempt"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:t,targets:[l.wpo365Mail,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Mail,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(U,{tokens:{childrenGap:10},children:m.mailIntervals.map((ge,se)=>e.jsx(fe,{isValid:(Ae,gt)=>!isNaN(parseInt(gt)),onValid:Ae=>{const gt=[...m.mailIntervals];gt[se]=parseInt(Ae),x({...m,mailIntervals:gt})},bound:!1,errorMessage:"Only numeric input is accepted",value:m.mailIntervals[se].toString(),placeholder:"e.g. 3600"}))})})})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},children:[e.jsx(rt,{onClick:()=>sr(),iconProps:{iconName:F==we.success?"Like":void 0},style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px",alignSelf:"start"},disabled:F==we.saving||A!="authorized",children:"Save configuration + send test email"}),ie===Wo.testing&&e.jsx(Oe,{size:Te.small})]}),e.jsxs("div",{className:j.wpo365WzLabelFor,children:[A=="unauthorized"&&e.jsxs("p",{className:j.wpo365WzP,children:["You must first complete the ",e.jsx("strong",{children:"Authorization"})," before you can send a ",e.jsx("em",{children:"test email"})]}),F==we.success?e.jsx("p",{style:{color:"#378805"},children:me.okSettingsUpdated}):null,P.map(ge=>e.jsx("p",{className:j.wpo365WzP,dangerouslySetInnerHTML:{__html:ge}})),ie==Wo.success&&e.jsxs("p",{className:j.wpo365WzP,style:{color:"#378805"},children:["Test email was sent successfully (but still you should check the ",e.jsx("a",{href:"#debug",children:"Debug Log"})," for possible warnings / errors)"]})]})]})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Bs,{})})}),v&&e.jsx(Ws,{onCancel:v.onCancel,onConfirm:v.onConfirm,onDismiss:v.onDismiss,title:v.title,subText:v.subText})]})]})}),e.jsxs(Xc,{hidden:Ut=="hidden",onDismiss:()=>ht("hidden"),dialogContentProps:{type:fo.normal,title:"Status check mail authorization"},modalProps:{isBlocking:!0,styles:{main:{maxWidth:"600px !important"}}},children:[Ut=="deleteAppOnly"&&e.jsxs("p",{children:["Let's check the status of the mail authorization. A new mail authorization with ",e.jsx("em",{children:"Application permissions"})," will be requested. An existing mail authorization with ",e.jsx("em",{children:"Delegated permissions"})," (if found) will not be deleted."]}),Ut=="deleteDelegated"&&e.jsxs("p",{children:["Let's check the status of the mail authorization. An existing mail authorization with ",e.jsx("em",{children:"Delegated permissions"})," (if found) will be deleted."]}),Ut=="deleteBoth"&&e.jsxs("p",{children:["Let's check the status of the mail authorization. All existing mail authorizations with both ",e.jsx("em",{children:"Application permissions"})," and / or"," ",e.jsx("em",{children:"Delegated permissions"})," (if found) will be deleted."]}),e.jsxs("p",{children:["Once the test completes you can read the status from the two checkbox status indicators for ",e.jsx("em",{children:"Application permissions"})," and"," ",e.jsx("em",{children:"Delegated permissions"}),"."]}),e.jsxs("p",{children:["If ",e.jsx("em",{children:"Application permissions"})," is checked, it means that application-level permissions have been detected. The plugin is now ready to send email using Microsoft Graph using these permissions. If you want to add / remove application-level permissions, then please make sure that you have added / removed application-level ",e.jsx("em",{children:"Mail.Send"})," permisisons from the ",e.jsx("em",{children:"App registration"}),"'s"," ",e.jsxs("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/CallAnAPI/appId/${m.mailApplicationId}/isMSAApp/`,target:"_blank",children:[e.jsx("em",{children:"API Permissions"})," page"]})," ","in ",e.jsx("em",{children:"Entra ID"})," and wait a few minutes before checking again."]}),e.jsxs("p",{children:["If ",e.jsx("em",{children:"Delegated permissions"})," is checked, it means that user-level permissions have been detected. The plugin is now ready to send emails using Microsoft Graph using these permissions. If you want to remove user-level permissions, then simply remove the check from the status checkbox."]}),e.jsxs("p",{children:["To configure user-level permissions, enter a ",e.jsx("em",{children:"(Default) From"})," and click the ",e.jsx("em",{children:"Authorize"})," button."]}),e.jsx(hh,{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(U.Item,{grow:!1,children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(et,{onClick:()=>ht("hidden"),text:"Cancel"}),e.jsx(rt,{onClick:()=>{const ge=Ut&&Ut!="deleteAppOnly",se=Ut&&Ut!="deleteDelegated";rr(ge,se),ht("hidden")},text:"Check status"})]})}),e.jsx(U.Item,{grow:!0,children:e.jsx(U,{horizontal:!0,verticalAlign:"center",horizontalAlign:"end",tokens:{childrenGap:10},children:[er.auto,er.delegated,er.personal].indexOf(m.mailAuthorizationScenario)>-1&&e.jsx(rt,{onClick:()=>Ft(),styles:{root:{maxHeight:"30px",maxWidth:"90px"}},disabled:!L,children:"Authorize"})})})]})})]})]})},UP=s=>{const{appStatus:o,env:n,env:{props:{extensions:t}},settings:i,settings:{hidePremiumOptions:d},updateAppStatus:c,updateLastErrorMessage:u,updateSettings:h}=E.useContext(Ye),[g,_]=E.useState(void 0),[m,x]=E.useState([]),[y,v]=E.useState([]),[b,C]=E.useState(null),[k,L]=E.useState(!1),[I,A]=E.useState(!1),[Y,P]=E.useState(null),[T,F]=E.useState(we.initial),[H,W]=E.useState([]),[K,Z]=E.useState(we.initial),[Q,B]=E.useState(""),[R,X]=E.useState(null);E.useEffect(()=>{if(!m)return;let le="";const V=[];let z=-1;m.map(J=>{if(J.category!=le){const ee=Ja(V,he=>he.some(te=>te.category==J.category));ee==-1?z=V.push([])-1:z=ee,le=J.category}V[z].push(J)}),v(V)},[m]),E.useMemo(async()=>{const le=new FormData;le.append("action","wpo365_get_self_test_results"),le.append("nonce",n.nonce),le.append("ina",window.wpo365.wizard.props.ina);let V;try{V=await Ee.post(n.wpAjaxAdminUrl,le)}catch(z){c("errors"),u(`Failed to get test results from the server [${z.message}].`);return}if(V.status==200&&V.data&&V.data.status&&V.data.status=="OK")try{x(JSON.parse(V.data.result))}catch(z){c("errors"),u(`Failed to process test results from the server [${z.message}].`)}},[]),E.useMemo(async()=>{F(we.saving);const le=new FormData;le.append("action","wpo365_is_wpo365_configured"),le.append("nonce",n.nonce),le.append("ina",window.wpo365.wizard.props.ina);let V;try{V=await Ee.post(n.wpAjaxAdminUrl,le)}catch{F(we.initial),P("Failed to check status of the WPO365 configuration");return}if(F(we.initial),V.status==200&&V.data&&V.data.status&&V.data.status=="OK")try{A(!0);return}catch{}P("The configuration of WPO365 is not yet complete and therefore the self-test cannot be started.")},[]),E.useMemo(async()=>{Z(we.saving);const le=new FormData;le.append("action","wpo365_get_multiple_idps"),le.append("nonce",n.nonce),le.append("ina",window.wpo365.wizard.props.ina);let V;try{V=await Ee.post(n.wpAjaxAdminUrl,le)}catch{Z(we.initial),B("Failed to retrieve a list of IdPs");return}if(Z(we.initial),V.status==200&&V.data&&V.data.status&&V.data.status=="OK"&&V.data.result)try{W(JSON.parse(V.data.result));return}catch{}B("Failed to retrieve a list of IdPs")},[]);const $=async(le=null)=>{u(void 0),c("working"),eh.TokenCache.clearTokenCache();const V=new FormData;V.append("action","wpo365_delete_tokens"),V.append("nonce",n.nonce),V.append("ina",window.wpo365.wizard.props.ina);let z;try{if(z=await Ee.post(n.wpAjaxAdminUrl,V),z.status==200)z.data&&z.data.status&&z.data.status=="OK"&&console.log("Deletion of tokens successful");else throw"Invalid response received."}catch(te){u(`Failed to clear the token cache [${te.message}].`),c("errors");return}const J=le?{...le}:{...i};J.testAccessToken=!0,J.testConfiguration=!0;try{const te=await Fe.updateSettings(n,J);if(te.success)h(J);else{u(`Failed to update the settings [${te.message}].`),c("errors");return}}catch(te){u(`Failed to update the settings [${te.message}].`),c("errors");return}const ee=window.location.href.split("#")[0].replace("page=wpo365-wizard","mode=selfTest&page=wpo365-wizard"),he=k?"&flushPermaLinks=true":"";if(i.noSso){const te=encodeURIComponent(`${ee}#selfTest`);window.location.href=`${ee}${he}&upn=${b}&redirect_to=${te}`}else{const te=window;te.wpo365=te.wpo365||{};const G=document.createElement("div");G.id="wpo365OpenIdRedirect",document.body.appendChild(G);const re=`${ee}${he}#selfTest`;try{const He=R?`&idp_id=${R}`:"";location.href=`${n?.props?.siteUrl}/wpo/sso/start?redirect_to=${encodeURIComponent(re)}${He}`;return}catch(He){u(`Failed to start the plugin self test [${He.message}].`),c("errors");return}}u(void 0),c("initial")},ie=async le=>{u(void 0),c("working");const V={...i};le.forEach(z=>{if("op"in z){const J=Object.keys(z.value)[0];z.op=="replace"&&(V[J]=z.value[J]),z.op=="add"&&V[J].push(z.value[J])}}),$(V)};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:j.wpo365WzMain,children:[e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsxs("tbody",{children:[e.jsx("tr",{children:e.jsxs("td",{colSpan:2,children:["Use this tab to test the plugin and its ability to sign you / your users in with Microsoft and integrate with the many Microsoft 365 services. As soon as you click",e.jsx("strong",{children:"Start self-test"}),` the plugin will try to redirect the current user to Microsoft's login page. When redirected back to your website the plugin will intercept the authentication response (ID token) and analyze its contents. Furthermore the plugin may request access tokens and will analyze the assigned static permissions needed for the most common integration scenarios. Last but not least some essential configuration validation checks will be performed. As soon as the test is completed the plugin will automatically de-activate "Test mode".`,e.jsx("br",{}),e.jsx("strong",{children:"Please note"}),e.jsxs("ul",{children:[e.jsx("li",{children:"During the self-test the plugin is not protecting your website"}),e.jsx("li",{children:"Also, this or other pages may be reloaded"}),e.jsxs("li",{children:["If you have set the ",e.jsx("strong",{children:"Authentication scenario"})," to ",e.jsx("i",{children:"Internet"})," you may not be automatically redirected to this page - especially if you updated your ",e.jsx("i",{children:"wp-config.php"})," and added the line ",e.jsx("i",{children:"define( 'WPO_AUTH_SCENARIO', 'internet' );"})," ","(see"," ",e.jsx("a",{href:"https://docs.wpo365.com/article/36-authentication-scenario",target:"_blank",children:"this article"})," ","for more information on optimizing for perfomance). In those cases, however, you should be able, however, to navigate back to this page yourself."]}),e.jsx("li",{children:"The Plugin self-test tests probably more than you need. Therefore you can safely ignore unsuccessful tests that seem irrelevant to you in the first place."})]})]})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Plugin self-test"})})}),i.noSso&&e.jsxs("tr",{children:[e.jsx("td",{style:{paddingRight:"100px"},children:e.jsx("span",{children:"Entra ID / Microsoft 365 user name used to conduct some of the tests"})}),e.jsx("td",{children:e.jsx("div",{className:j.toolbarItem,children:e.jsx(fe,{isValid:(le,V)=>!0,bound:!1,value:b,onValid:le=>C(le),placeholder:"e.g. john.doe@your-tenant.com"})})})]}),e.jsxs("tr",{children:[e.jsx("td",{style:{paddingRight:"100px"},children:e.jsx("span",{children:"Flush perma-links"})}),e.jsx("td",{children:e.jsx(ce,{onChange:(le,V)=>L(V??!1),checked:k})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Start test and download results afterwards"}),e.jsx("td",{children:e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:15},children:[Array.isArray(H)&&H.length>0&&e.jsx($e,{placeholder:"Select an Identity Provider",onChange:(le,V)=>{V.key&&X(V.key.toString())},options:H.map(le=>({key:le.id,text:le.title})),style:{maxWidth:"400px"}}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(rt,{onClick:()=>$(),style:{minWidth:"400px",minHeight:"30px"},disabled:o=="working"||i.noSso&&!b||!I,children:"Start self-test"}),T==we.saving&&e.jsx(Oe,{size:Te.medium})]}),Y&&e.jsx("div",{style:{color:"#cc0000"},children:Y}),Array.isArray(m)&&m.length>0&&e.jsx("div",{style:{width:"400px",textAlign:"center",boxSizing:"border-box"},children:e.jsx("a",{href:"data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(m,null,2)),download:"wpo365-selftest.json",children:"Download as JSON"})})]})}),e.jsx("td",{})]})]})]}),e.jsxs("table",{className:`${j.wpo365WzTable} ${j.selfTest}`,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"70%"}),e.jsx("col",{width:"10%"}),e.jsx("col",{width:"20%"})]}),y&&y.map(le=>e.jsxs(e.Fragment,{children:[e.jsxs("thead",{children:[e.jsx("tr",{className:j.title,children:e.jsx("th",{colSpan:3,children:le[0].category})}),e.jsxs("tr",{className:j.header,children:[e.jsx("th",{children:"Test / Result"}),e.jsx("th",{children:"Data"}),e.jsx("th",{children:"Timestamp"})]})]}),le.map(V=>e.jsxs(e.Fragment,{children:[e.jsxs("tbody",{children:[e.jsxs("tr",{className:V.passed?j.passed:j.failed,children:[e.jsxs("th",{children:[e.jsx("span",{dangerouslySetInnerHTML:{__html:V.title}})," ",e.jsx("span",{className:j.subText,children:V.severity})]}),e.jsx("td",{children:V.data?e.jsx("a",{href:"javascript:return false",onClick:()=>_(V.data),children:"view"}):""}),e.jsx("td",{children:e.jsx("span",{className:j.subText,children:V.timestamp})})]}),e.jsxs("tr",{className:V.passed?j.passed:j.failed,children:[e.jsx("td",{children:e.jsx("span",{dangerouslySetInnerHTML:{__html:V.message?V.message:V.passed?"OK":"NOK"}})}),e.jsx("td",{}),e.jsx("td",{children:V.more_info&&e.jsx("a",{href:V.more_info,target:"_blank",children:"Read more ..."})})]})]}),!V.passed&&!!V.fix&&V.fix.length>0&&e.jsx("tbody",{style:{border:0},children:e.jsx("tr",{className:V.passed?j.passed:j.failed,children:e.jsx("td",{colSpan:2,children:e.jsx(et,{onClick:()=>ie(V.fix),style:{minWidth:"400px",minHeight:"30px"},children:"Fix it!"})})})})]}))]}))]})]}),g&&e.jsx(Zc,{isOpen:!!g,onDismiss:()=>_(void 0),isBlocking:!0,children:e.jsxs("div",{className:j.modal,children:[e.jsx("div",{style:{alignSelf:"flex-end",padding:"10px 20px 10px 10px"},children:e.jsx("a",{href:"javascript: return false",onClick:()=>_(void 0),children:"Close"})}),e.jsx("table",{children:Object.keys(g).map(le=>e.jsxs("tr",{children:[e.jsx("th",{children:le}),e.jsx("td",{children:le in g?le=="imageUri"?e.jsx("img",{src:g[le]}):JSON.stringify(g[le]):"null"})]}))})]})})]})},VP=s=>{const{env:o,env:{props:{extensions:n}},settings:t,settings:{hidePremiumOptions:i},updateSettings:d}=E.useContext(Ye),[c,u]=E.useState({signInMultiPlaceholder:t.signInMultiPlaceholder,signInWithMicrosoft:t.signInWithMicrosoft,wpoErrorCheckLog:t.wpoErrorCheckLog,wpoErrorDeactivated:t.wpoErrorDeactivated,wpoErrorDualLogin:t.wpoErrorDualLogin,wpoErrorDualLoginV2:t.wpoErrorDualLoginV2,wpoErrorIdTokenError:t.wpoErrorIdTokenError,wpoErrorIdTokenAud:t.wpoErrorIdTokenAud,wpoErrorLoggedOut:t.wpoErrorLoggedOut,wpoErrorPrivatePage:t.wpoErrorPrivatePage,wpoErrorNotConfigured:t.wpoErrorNotConfigured,wpoErrorNotFromDomain:t.wpoErrorNotFromDomain,wpoErrorNotInGroup:t.wpoErrorNotInGroup,wpoErrorTamperedWith:t.wpoErrorTamperedWith,wpoErrorNonceExpired:t.wpoErrorNonceExpired,wpoErrorSaml2Error:t.wpoErrorSaml2Error,wpoErrorUserNotFound:t.wpoErrorUserNotFound,wpoErrorNoIdpSelected:t.wpoErrorNoIdpSelected,wpoTitleM365ProfileInfo:t.wpoTitleM365ProfileInfo}),[h,g]=E.useState([]),[_,m]=E.useState(we.initial),x=async()=>{g([]),m(we.saving);const y={...t};y.signInMultiPlaceholder=c.signInMultiPlaceholder,y.signInWithMicrosoft=c.signInWithMicrosoft,y.wpoErrorCheckLog=c.wpoErrorCheckLog,y.wpoErrorDeactivated=c.wpoErrorDeactivated,y.wpoErrorDualLogin=c.wpoErrorDualLogin,y.wpoErrorDualLoginV2=c.wpoErrorDualLoginV2,y.wpoErrorIdTokenError=c.wpoErrorIdTokenError,y.wpoErrorIdTokenAud=c.wpoErrorIdTokenAud,y.wpoErrorLoggedOut=c.wpoErrorLoggedOut,y.wpoErrorPrivatePage=c.wpoErrorPrivatePage,y.wpoErrorNotConfigured=c.wpoErrorNotConfigured,y.wpoErrorNotFromDomain=c.wpoErrorNotFromDomain,y.wpoErrorNotInGroup=c.wpoErrorNotInGroup,y.wpoErrorTamperedWith=c.wpoErrorTamperedWith,y.wpoErrorNonceExpired=c.wpoErrorNonceExpired,y.wpoErrorSaml2Error=c.wpoErrorSaml2Error,y.wpoErrorUserNotFound=c.wpoErrorUserNotFound,y.wpoTitleM365ProfileInfo=c.wpoTitleM365ProfileInfo;try{const v=await Fe.updateSettings(o,y);if(v.success){const b=await Fe.getSettings(o);d(b),g([]),m(we.success)}else g([...h,new Lr("saveConfiguration",v.message,2e3)]),m(we.error)}catch{g([...h,new Lr("saveConfiguration","Unknown error occured whilst updating settings [check F12 > console for technical details]",2e3)]),m(we.error)}};return e.jsx(e.Fragment,{children:e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Translations"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:"Sign in with Microsoft"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.signInWithMicrosoft,onChange:y=>u({...c,signInWithMicrosoft:y.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Select your Identity Provider"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.signInMultiPlaceholder,onChange:y=>u({...c,signInMultiPlaceholder:y.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"No IdP selected"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorNoIdpSelected,onChange:y=>u({...c,wpoErrorNoIdpSelected:y.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Check log"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorCheckLog,onChange:y=>u({...c,wpoErrorCheckLog:y.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Microsoft 365 Profile Information"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoTitleM365ProfileInfo,onChange:y=>u({...c,wpoTitleM365ProfileInfo:y.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Logged out"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorLoggedOut,onChange:y=>u({...c,wpoErrorLoggedOut:y.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Private page"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorPrivatePage,onChange:y=>u({...c,wpoErrorPrivatePage:y.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"User not in O365 group"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorNotInGroup,onChange:y=>u({...c,wpoErrorNotInGroup:y.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"User not from allowed domain"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorNotFromDomain,onChange:y=>u({...c,wpoErrorNotFromDomain:y.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Tampered with"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorTamperedWith,onChange:y=>u({...c,wpoErrorTamperedWith:y.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Nonce expired"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorNonceExpired,onChange:y=>u({...c,wpoErrorNonceExpired:y.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Deactivated"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorDeactivated,onChange:y=>u({...c,wpoErrorDeactivated:y.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"User not found"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorUserNotFound,onChange:y=>u({...c,wpoErrorUserNotFound:y.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"ID token error"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorIdTokenError,onChange:y=>u({...c,wpoErrorIdTokenError:y.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"ID token audience"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorIdTokenAud,onChange:y=>u({...c,wpoErrorIdTokenAud:y.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"SAML 2.0"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorSaml2Error,onChange:y=>u({...c,wpoErrorSaml2Error:y.target.value})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Dual login"}),e.jsx("td",{children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:c.wpoErrorDualLoginV2,onChange:y=>u({...c,wpoErrorDualLoginV2:y.target.value})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(rt,{onClick:()=>x(),iconProps:{iconName:_==we.success?"Like":void 0},style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px",alignSelf:"start"},disabled:_==we.saving,children:"Save configuration"}),e.jsx("div",{className:j.wpo365WzLabelFor,children:yd(h,"saveConfiguration").map(y=>e.jsx("p",{className:j.wpo365WzP,children:y.message}))}),_==we.success?e.jsx("p",{style:{color:"#378805"},children:me.okSettingsUpdated}):null]})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Bs,{})})})]})})})},yi=s=>{const{choice:o,choicePlaceholder:n,disabled:t,errorMessage:i,isValid:d,list:c,onListChanged:u,placeholder:h}=s,[g,_]=E.useState(c?[...c]:[]),[m,x]=E.useState(""),[y,v]=E.useState(""),[b,C]=E.useState("");return E.useEffect(()=>{JSON.stringify(g)!==JSON.stringify(c)&&u(g)},[g]),e.jsxs(U,{tokens:{childrenGap:10},horizontalAlign:"start",style:{width:"400px"},children:[e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},style:{width:"100%"},children:[e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx($e,{placeholder:n||void 0,options:o.map(k=>({key:k,text:k})),onChange:(k,L)=>{C(""),v(String(L.key))},selectedKey:y,styles:{root:{flexGrow:1,flexShrink:0,maxWidth:"400px",width:"400px"}},disabled:t}),e.jsx("div",{style:{width:"30px",height:"30px",padding:0}})]}),e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,disabled:t,errorMessage:i,isValid:(k,L)=>(b&&C(""),d&&L?d.test(L):!0),onError:k=>C(k),onValid:k=>{x(k)},placeholder:h||void 0,value:m}),e.jsx(Ke,{disabled:t,onClick:()=>{if(!y||!m){C("This setting requires a value");return}const k=[...g];k.push({key:y,value:m}),_([...k]),x(""),v(null)},iconProps:{iconName:"Add"},title:"Add",ariaLabel:"Click to add this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,cursor:"pointer"}})]})]}),b&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:b}),g.length>0&&e.jsx("div",{style:{width:"400px",height:"1px",backgroundColor:"black"}}),g.map((k,L)=>e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},style:{width:"100%",marginBottom:"20px"},children:[e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,disabled:!0,value:k.key}),e.jsx("div",{style:{width:"30px",height:"30px",padding:0}})]}),e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,disabled:!0,value:k.value}),e.jsx(Ke,{onClick:()=>{const I=[...g];I.splice(L,1),_(I)},iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]})]},`${btoa(k.key)}-${btoa(k.value)}`))]})},GP=s=>{const{env:o,env:{props:{extensions:n,availableRoles:t,ldCourses:i,ldGroups:d,wpmu:c,wpConfigMultiple:u,wpConfigAad:h}},settings:g,settings:{hidePremiumOptions:_},updateSettings:m}=E.useContext(Ye),x=E.useMemo(()=>Object.keys(Qr(t,[])),[]),y=E.useMemo(()=>Qr(i,[]).map(R=>`${R.id} | ${R.title}`),[]),v=E.useMemo(()=>Qr(d,[]).map(R=>`${R.id} | ${R.title}`),[]),[b,C]=E.useState({addCreateAccountPrompt:g.addCreateAccountPrompt,addSelectAccountPrompt:g.addSelectAccountPrompt,allowedTenants:g.allowedTenants,b2cEnableSignup:g.b2cEnableSignup,b2cSignupPolicy:g.b2cSignupPolicy,blockEmailChange:g.blockEmailChange,blockPasswordChange:g.blockPasswordChange,createAndAddUsers:g.createAndAddUsers,customDomain:Array.isArray(g.customDomain)?g.customDomain:[],defaultDomain:g.defaultDomain,hideNewUserApp:g.hideNewUserApp,ldCourseAssignments:g.ldCourseAssignments,ldCourseAssignmentsByDomain:g.ldCourseAssignmentsByDomain,ldDefaultCourseAssignments:g.ldDefaultCourseAssignments,ldDefaultGroupAssignments:g.ldDefaultGroupAssignments,ldGroupAssignments:g.ldGroupAssignments,ldGroupAssignmentsByDomain:g.ldGroupAssignmentsByDomain,multiTenanted:g.multiTenanted,muAddNewUserSite:g.muAddNewUserSite,muNewUserSiteUseUsername:g.muNewUserSiteUseUsername,muAddUserToAllSites:g.muAddUserToAllSites,newUsrDefaultRole:g.newUsrDefaultRole,newUsrMailBody:g.newUsrMailBody,newUsrMailFooter:g.newUsrMailFooter,newUsrMailSalutation:g.newUsrMailSalutation,newUsrMailSubject:g.newUsrMailSubject,newUsrMailTitle:g.newUsrMailTitle,newUsrSendMail:g.newUsrSendMail,newUsrSendMailAdminOnly:g.newUsrSendMailAdminOnly,newUsrSendMailCustom:g.newUsrSendMailCustom,preventNonAdminLogin:g.preventNonAdminLogin,skipAddUserToSubsite:g.skipAddUserToSubsite,userNameClaim:g.userNameClaim,useShortLoginName:g.useShortLoginName,userNamePreference:g.userNamePreference,userNameAadProperty:g.userNameAadProperty,userNameScimClaim:g.userNameScimClaim,welcomePageUrl:g.welcomePageUrl,wpToAadCreateUsers:g.wpToAadCreateUsers,wpToAadCustomerEndpoint:g.wpToAadCustomerEndpoint,wpToAadEmailNotifications:g.wpToAadEmailNotifications,wpToAadExcludedRoles:g.wpToAadExcludedRoles,wpToAadExitOnFailure:g.wpToAadExitOnFailure,wpToAadForceChangePasswordNextSignIn:g.wpToAadForceChangePasswordNextSignIn,wpToAadIdentityProvider:g.wpToAadIdentityProvider,wpToAadPasswordReset:g.wpToAadPasswordReset,wpToAadUpdateUsers:g.wpToAadUpdateUsers});E.useEffect(()=>{if(b.defaultDomain){const B={...b,defaultDomain:"",customDomain:b.customDomain.concat(g.defaultDomain)};C(B)}},[]);const[k,L]=E.useState(null),[I,A]=E.useState([]),[Y,P]=E.useState(we.initial),[T,F]=E.useState(null),[H,W]=E.useState(null),K=async()=>{A([]),P(we.saving);const B={...g};B.addCreateAccountPrompt=b.addCreateAccountPrompt,B.addSelectAccountPrompt=b.addSelectAccountPrompt,B.allowedTenants=b.allowedTenants,B.b2cEnableSignup=b.b2cEnableSignup,B.b2cSignupPolicy=b.b2cSignupPolicy,B.blockEmailChange=b.blockEmailChange,B.blockPasswordChange=b.blockPasswordChange,B.createAndAddUsers=b.createAndAddUsers,B.customDomain=b.customDomain,B.defaultDomain=b.defaultDomain,B.hideNewUserApp=b.hideNewUserApp,B.ldCourseAssignments=b.ldCourseAssignments,B.ldCourseAssignmentsByDomain=b.ldCourseAssignmentsByDomain,B.ldDefaultCourseAssignments=b.ldDefaultCourseAssignments,B.ldDefaultGroupAssignments=b.ldDefaultGroupAssignments,B.ldGroupAssignments=b.ldGroupAssignments,B.ldGroupAssignmentsByDomain=b.ldGroupAssignmentsByDomain,B.multiTenanted=b.multiTenanted,B.muAddNewUserSite=b.muAddNewUserSite,B.muNewUserSiteUseUsername=b.muNewUserSiteUseUsername,B.muAddUserToAllSites=b.muAddUserToAllSites,B.newUsrDefaultRole=b.newUsrDefaultRole,B.newUsrSendMail=b.newUsrSendMail,B.newUsrSendMailAdminOnly=b.newUsrSendMailAdminOnly,B.newUsrSendMailCustom=b.newUsrSendMailCustom,B.newUsrMailSubject=b.newUsrMailSubject,B.newUsrMailTitle=b.newUsrMailTitle,B.newUsrMailSalutation=b.newUsrMailSalutation,B.newUsrMailBody=b.newUsrMailBody,B.newUsrMailFooter=b.newUsrMailFooter,B.preventNonAdminLogin=b.preventNonAdminLogin,B.skipAddUserToSubsite=b.skipAddUserToSubsite,B.userNameClaim=b.userNameClaim,B.userNameAadProperty=b.userNameAadProperty,B.userNameScimClaim=b.userNameScimClaim,B.useShortLoginName=b.useShortLoginName,B.userNamePreference=b.userNamePreference,B.welcomePageUrl=b.welcomePageUrl,B.wpToAadCreateUsers=b.wpToAadCreateUsers,B.wpToAadCustomerEndpoint=b.wpToAadCustomerEndpoint,B.wpToAadEmailNotifications=b.wpToAadEmailNotifications,B.wpToAadExcludedRoles=b.wpToAadExcludedRoles,B.wpToAadExitOnFailure=b.wpToAadExitOnFailure,B.wpToAadForceChangePasswordNextSignIn=b.wpToAadForceChangePasswordNextSignIn,B.wpToAadIdentityProvider=b.wpToAadIdentityProvider,B.wpToAadPasswordReset=b.wpToAadPasswordReset,B.wpToAadUpdateUsers=b.wpToAadUpdateUsers;try{const R=await Fe.updateSettings(o,B);if(R.success){const X=await Fe.getSettings(o);m(X),A([]),P(we.success)}else A([...I,new Lr("saveConfiguration",R.message,2e3)]),P(we.error)}catch{A([...I,new Lr("saveConfiguration","Unknown error occured whilst updating settings [check F12 > console for technical details]",2e3)]),P(we.error)}},Z=B=>Array.isArray(B)?B.map(R=>({key:R.value,value:R.key})):[],Q=async()=>{W(null);const B=new FormData;B.append("action","wpo365_switch_wpmu_mode"),B.append("nonce",o.nonce),B.append("ina",window.wpo365.wizard.props.ina);let R;try{if(R=await Ee.post(o.wpAjaxAdminUrl,B),R.status>=200&&R.status<300&&R.data.status=="OK"){location.reload();return}throw"Unknown error occurred when trying to switch WPO365 WPMU Support Mode"}catch(X){W(X.message)}};return E.useEffect(()=>{(T=="enableAudiences"||T=="allowBlockDomains")&&K().then(()=>{F(null)}),T==="switchWpmuMode"&&Q().then(()=>F(null))},[T]),e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("h3",{className:j.wpo365WzSectionTitle,children:[e.jsx("span",{style:{color:"#CE5708"},children:"Getting started"})," with User Registration"]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(ou,{buttons:[{callToAction:"Create / update users in B2C / Ext. ID from WP",tutorial:"https://docs.wpo365.com/article/185-create-users-in-azure-ad-b2c-entra-external-id-from-wordpress",title:"AAD B2C / Entra Ext. ID",info:"https://www.wpo365.com/feature/integrate-wordpress-with-azure-ad-b2c/"},{callToAction:"Entra ID group based auto-enrollment",tutorial:"https://docs.wpo365.com/article/184-learndash-integration",title:"LearnDash",info:"https://www.wpo365.com/feature/entra-id-based-learndash-integration/"}]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"New User Experience (WordPress)"})})}),!g.useB2c&&!g.useCiam&&e.jsx(e.Fragment,{children:e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Custom domains"})," ",e.jsx("em",{children:e.jsx("a",{href:"https://entra.microsoft.com/#view/Microsoft_AAD_IAM/DomainsManagementMenuBlade/~/CustomDomainNames",target:"_blank",children:"View Custom domain names"})}),e.jsx(de,{info:{title:"Your (own) domain",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/48-custom-domains"}}})]})}),e.jsx("td",{children:e.jsx(Bo,{list:b.customDomain,onListChanged:B=>C({...b,customDomain:B}),placeholder:me.infoCustomDomain,isValid:new RegExp(/^(?!http)/i),errorMessage:me.errCustomDomainCannotStartWith})})]})}),c!=="wpmuShared"&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Create new users in WordPress"}),e.jsx(de,{info:{title:"Create new users",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/51-create-new-users"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,R)=>C({...b,createAndAddUsers:R??!1}),checked:b.createAndAddUsers})})})]}),(!_||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(R=>R==B)))&&e.jsx(e.Fragment,{children:e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsxs("span",{children:['Hide "Add from Entra / AAD" on'," ",e.jsx("a",{href:window.location.href.substring(0,window.location.href.replace("/userRegistration","").lastIndexOf("/")+1)+"user-new.php",children:"Add User page"})]}),e.jsx(de,{info:{title:"Add new WordPress user from Entra / AAD",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/228-add-new-wordpress-user-from-entra-aad"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365LoginProfessional,minVersion:39},{addOn:l.wpo365Essentials,minVersion:39},{addOn:l.wpo365Customers,minVersion:39},{addOn:l.wpo365LoginPremium,minVersion:39},{addOn:l.wpo365Sync5y,minVersion:39},{addOn:l.wpo365LoginIntranet,minVersion:39},{addOn:l.wpo365Intranet5y,minVersion:39},{addOn:l.wpo365Integrate,minVersion:39},{addOn:l.wpo365Pro,minVersion:39}],children:e.jsx(ce,{onChange:(B,R)=>C({...b,hideNewUserApp:R??!1}),checked:b.hideNewUserApp})})})})})]})}),(!_||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(R=>R==B)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Username preference"}),e.jsx(de,{info:{title:"Username preference",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/187-username-preference"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365LoginProfessional,minVersion:24},{addOn:l.wpo365Essentials,minVersion:29},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Scim,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx($e,{options:[{key:"select",text:"Select username preference ...",itemType:Tt.Header},{key:"default",text:"Default"},{key:"short",text:"Short"},{key:"custom",text:"Custom"}],selectedKey:b.useShortLoginName?"short":b.userNamePreference,onChange:(B,R)=>{if(!R)return;const X=R.key=="custom"?b.userNameClaim:"",$=R.key=="custom"?b.userNameAadProperty:"",ie=R.key=="custom"?b.userNameScimClaim:"",le=R.key=="short";C({...b,userNamePreference:R.key,userNameClaim:X,userNameAadProperty:$,userNameScimClaim:ie,useShortLoginName:le})},style:{maxWidth:"400px"}})})})})]}),b.userNamePreference=="custom"&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Custom username claim (ID token / SAML response)"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365LoginProfessional,minVersion:24},{addOn:l.wpo365Essentials,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Scim,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(fe,{bound:!1,isValid:(B,R)=>!0,onValid:B=>C({...b,userNameClaim:B}),value:b.userNameClaim,placeholder:"e.g. upn"})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Custom username property (AAD)"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365LoginProfessional,minVersion:24},{addOn:l.wpo365Essentials,minVersion:29},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Scim,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(fe,{bound:!1,isValid:(B,R)=>!0,onValid:B=>C({...b,userNameAadProperty:B}),value:b.userNameAadProperty,placeholder:"e.g. userPrincipalName"})})})})]}),g.enableScim&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Custom username property (SCIM)"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Scim,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24}],children:e.jsx(fe,{bound:!1,isValid:(B,R)=>!0,onValid:B=>C({...b,userNameScimClaim:B}),value:b.userNameScimClaim,placeholder:"e.g. urn:ietf:params:[...]:objectId"})})})})]})]})]}),(!_||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Welcome page for first-time users"}),e.jsx(de,{info:{title:"Welcome Page",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/54-welcome-page"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(B,R)=>R!=me.empty?/^(http|https):\/\//i.test(R):!0,onValid:B=>C({...b,welcomePageUrl:B}),bound:!1,errorMessage:me.errWelcomePageUrlMustStartWith,value:b.welcomePageUrl})})})]}),(!_||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:'Send "new user" notification'}),e.jsx(de,{info:{title:"New user notification email",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/75-new-user-notification-and-welcome-emails"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,R)=>{const X=R??!1?b.newUsrSendMailAdminOnly:!1,$=R??!1?b.newUsrSendMailCustom:!1;C({...b,newUsrSendMail:R??!1,newUsrSendMailAdminOnly:X,newUsrSendMailCustom:$})},checked:b.newUsrSendMail})})})})]}),(!_||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:"Send only to admin"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,R)=>{const X=R??!1?!1:b.newUsrSendMailCustom;C({...b,newUsrSendMailAdminOnly:R??!1,newUsrSendMailCustom:X})},disabled:!b.newUsrSendMail,checked:b.newUsrSendMailAdminOnly})})})})]}),(!_||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:"Send using custom template"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,R)=>{C({...b,newUsrSendMailCustom:R??!1})},disabled:!b.newUsrSendMail||b.newUsrSendMailAdminOnly,checked:b.newUsrSendMailCustom})})})})]}),(!_||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:"New user notification subject"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(B,R)=>!0,onValid:B=>C({...b,newUsrMailSubject:B}),bound:!1,value:b.newUsrMailSubject,placeholder:me.infoNewUserMailSubject,disabled:!b.newUsrSendMailCustom})})})]}),(!_||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:"New user notification title"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(B,R)=>!0,onValid:B=>C({...b,newUsrMailTitle:B}),bound:!1,value:b.newUsrMailTitle,placeholder:me.infoNewUserMailTitle,disabled:!b.newUsrSendMailCustom})})})]}),(!_||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:"New user notification salutation"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(fe,{isValid:(B,R)=>!0,onValid:B=>C({...b,newUsrMailSalutation:B}),bound:!1,value:b.newUsrMailSalutation,placeholder:me.infoNewUserMailSalutation,disabled:!b.newUsrSendMailCustom})})})]}),(!_||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:"New user notification body"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("textarea",{className:j.wpo365WzTextArea,value:b.newUsrMailBody,onChange:B=>C({...b,newUsrMailBody:B.target.value}),disabled:!b.newUsrSendMailCustom,style:{maxWidth:"400px"}})})})]}),(!_||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:"New user notification footer"}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("textarea",{style:{width:"400px",minHeight:"100px",padding:"2px"},value:b.newUsrMailFooter,onChange:B=>C({...b,newUsrMailFooter:B.target.value}),disabled:!b.newUsrSendMailCustom})})})]}),(g.useB2c||g.useCiam)&&e.jsxs(e.Fragment,{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"New User Experience AAD B2C / Entra External ID (AAD for Customers)"})})}),(!_||n.some(B=>[l.wpo365Customers].some(R=>R==B)))&&e.jsxs(e.Fragment,{children:[n.some(B=>[l.wpo365Customers].some(R=>R==B))&&(!g.useAppOnlyToken||!g.appOnlyApplicationId||!g.appOnlyApplicationSecret)?e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("div",{style:{width:"50%"},children:e.jsxs(Zr,{messageBarType:Be.blocked,isMultiline:!0,truncated:!0,overflowButtonAriaLabel:"Read more",children:["You have not (yet) configured ",e.jsx("strong",{children:"app-only permissions"})," i.e. ",e.jsx("em",{children:"application"})," type permissions. With"," ",e.jsx("em",{children:"application"})," type permissions the plugin can get authorization to access Microsoft Graph without a logged-in user being present. You must configure ",e.jsx("em",{children:"application"})," type permissions for ",e.jsx("strong",{children:"User.ReadWrite.All"})," or else WPO365 cannot create / update users in AAD B2C / Entra External ID. Please follow the steps presented in this article"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/integration-application-permissions/",target:"_blank",children:"https://tutorials.wpo365.com/courses/integration-application-permissions/"})," ","to configure app-only integration."]})})})}):e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Create users in AAD B2C / Entra Ext. ID from WordPress"}),e.jsx(de,{info:{title:"Create users in AAD B2C / Entra Ext. ID (Entra for Customers) from WordPress",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/185-create-users-in-azure-ad-b2c-from-wordpress"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,R)=>C({...b,wpToAadCreateUsers:R??!1}),checked:b.wpToAadCreateUsers})})})})})]}),b.wpToAadCreateUsers&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Exit user registration on failure"}),e.jsx(de,{info:{title:"Exit user registration on failure",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/199-exit-user-registration-on-failure"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,R)=>C({...b,wpToAadExitOnFailure:R??!1}),checked:b.wpToAadExitOnFailure})})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Password configuration for customers"}),e.jsx(de,{info:{title:"Password configuration for customers",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/200-password-configuration-for-customers"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx($e,{options:[{key:"select",text:"Select when to force user to change pwd on next sign-in ...",itemType:Tt.Header},{key:"userNotPresent",text:"Non-interactive registration: User did not enter pwd"},{key:"always",text:"Always"}],selectedKey:b.wpToAadForceChangePasswordNextSignIn?"always":"userNotPresent",onChange:(B,R)=>R&&C({...b,wpToAadForceChangePasswordNextSignIn:R.key=="always"}),placeholder:"Select IdP / Auth. method ...",style:{maxWidth:"400px"}})})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Email notifications for customers"}),e.jsx(de,{info:{title:"Email notifications for customers",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/201-email-notifications-for-customers"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx($e,{options:[{key:"select",text:"Select when email notifications are sent ...",itemType:Tt.Header},{key:"never",text:"Never"},{key:"userNotPresent",text:"When user is forced to change pwd on next sign-in"},{key:"always",text:"Always"}],selectedKey:b.wpToAadEmailNotifications,onChange:(B,R)=>R&&C({...b,wpToAadEmailNotifications:R.key}),placeholder:"Select IdP / Auth. method ...",style:{maxWidth:"400px"}})})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Customer landing page / area"}),e.jsx(de,{info:{title:"Customer landing page / area",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/202-customer-landing-page-area"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx(fe,{isValid:(B,R)=>R!=me.empty?/^(http|https):\/\//i.test(R):!0,onValid:B=>C({...b,wpToAadCustomerEndpoint:B}),bound:!1,errorMessage:"Customer landing Page URL must start with http(s).",placeholder:"e.g. https://www.your-site.com/your-account/",value:b.wpToAadCustomerEndpoint})})})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Update users in AAD B2C / Entra Ext. ID from WordPress"}),e.jsx(de,{info:{title:"Update users in AAD B2C / Entra External ID (Entra for Customers) from WordPress",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/185-create-users-in-azure-ad-b2c-from-wordpress"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,R)=>C({...b,wpToAadUpdateUsers:R??!1}),checked:b.wpToAadUpdateUsers})})})})})]}),b.wpToAadCreateUsers&&g.useCiam&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Identity Provider (Authentication method)"}),e.jsx(de,{info:{title:"https://docs.wpo365.com/article/193-select-authentication-method",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/193-select-authentication-method"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx($e,{options:[{key:"select",text:"Select IdP / Auth. method ...",itemType:Tt.Header},{key:"emailOtp",text:"Email one-time passcode"},{key:"emailPassword",text:"Email with password"}],selectedKey:b.wpToAadIdentityProvider,onChange:(B,R)=>R&&C({...b,wpToAadIdentityProvider:R.key}),placeholder:"Select IdP / Auth. method ...",style:{maxWidth:"400px"}})})})})]}),b.wpToAadCreateUsers&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Always reset the password of new WordPress users"}),e.jsx(de,{info:{title:"Always reset the password of new WordPress users",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/194-always-reset-password-for-new-users"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,R)=>C({...b,wpToAadPasswordReset:R??!1}),checked:b.wpToAadPasswordReset})})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Excluded roles"}),e.jsx(de,{info:{title:"Excluded roles",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/195-excluded-roles"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx(Vc,{list:[...b.wpToAadExcludedRoles],onListChanged:B=>C({...b,wpToAadExcludedRoles:[...B]}),options:x,placeholder:me.infoWordPressRole})})})})]})]})]}),g.useB2c&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable AAD B2C signup for anyone"}),e.jsx(de,{info:{title:"Enable AAD B2C signup for anyone",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/188-enable-azure-ad-b2c-signup-for-anyone"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,R)=>{C(R??!1?{...b,b2cEnableSignup:R??!1}:{...b,b2cEnableSignup:R??!1,b2cSignupPolicy:""})},checked:b.b2cEnableSignup,disabled:u})})})})})]}),b.b2cEnableSignup&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"AAD B2C sign-up policy"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365Customers,minVersion:24}],children:e.jsx(fe,{isValid:(B,R)=>!0,onValid:B=>C({...b,b2cSignupPolicy:B}),bound:!1,value:b.b2cSignupPolicy,placeholder:"e.g. B2C_1_signup_1"})})})})]})]})]}),!g.useB2c&&!g.useCiam&&e.jsxs(e.Fragment,{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"New User Experience (AD B2B / Multi-tenancy)"})})}),(!_||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Allow users from other tenants"}),e.jsx(de,{info:{title:"Allow users from other tenants",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/50-allow-users-from-other-tenants"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(ce,{onChange:(B,R)=>C({...b,multiTenanted:R??!1}),checked:b.multiTenanted,disabled:!0}),e.jsx(Ue,{iconName:"Warning",style:{paddingRight:"5px",color:"#0078D4"}}),e.jsxs("span",{style:{color:"#0078D4"},children:["Can be changed on the ",e.jsx("a",{href:"#singleSignOn",children:"Single Sign-on"})," page"]})]})})})]}),(!_||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(R=>R==B)))&&b.multiTenanted&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:'Allowed "other" tenants'}),e.jsx(de,{info:{title:'Allowed "other" tenants',readMore:{title:"Read online",url:"https://docs.wpo365.com/article/205-allowed-other-tenants"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Bo,{list:b.allowedTenants,onListChanged:B=>C({...b,allowedTenants:B}),placeholder:"e.g. 0cf16bbf-944d-4d04-9b83-a198e5d7b9e5",isValid:new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),errorMessage:"Tenant ID must be formatted as a GUID"})})})]}),(!_||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Add prompt=create parameter"}),e.jsx(de,{info:{title:"Add prompt=create parameter",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/116-add-prompt-create-parameter"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,R)=>C({...b,addCreateAccountPrompt:R??!1,addSelectAccountPrompt:R??!1?!1:b.addSelectAccountPrompt}),checked:b.addCreateAccountPrompt})})})})]})]}),c!=="wpmuNone"&&e.jsxs(e.Fragment,{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"New User Experience (WordPress Multisite)"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"WPMU support mode"}),e.jsx(de,{info:{title:"Support for WordPress Multisite WPMU",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/29-support-for-wordpress-multisite-wpmu"}}})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:{lineHeight:"initial",height:"30px"},children:[e.jsx(jn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:c==="wpmuDedicated",onChange:(B,R)=>{F("switchWpmuMode")},onText:"Dedicated",offText:"Shared",disabled:!window.wpo365.wizard.props.ina}),T=="switchWpmuMode"&&e.jsx(Oe,{size:Te.small}),!window.wpo365.wizard.props.ina&&e.jsxs(e.Fragment,{children:[e.jsx(Ue,{iconName:"Warning",style:{paddingRight:"5px",color:"#0078D4"}}),e.jsxs("span",{style:{color:"#0078D4"},children:["Change this here ",e.jsx("em",{children:"My Sites > Network Admin > WPO365"})]})]})]})})]}),c=="wpmuShared"&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Add users to WPMU main site"}),e.jsx(de,{info:{title:"Create new users",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/51-create-new-users"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,R)=>C({...b,createAndAddUsers:R??!1}),checked:b.createAndAddUsers})})})]}),c=="wpmuShared"&&(!_||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(R=>R==B)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Do not add user to WPMU subsite"}),e.jsx(de,{info:{title:"Do not add user to WPMU subsite",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/123-do-not-add-user-to-wpmu-subsite"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,R)=>C({...b,skipAddUserToSubsite:R??!1,muAddUserToAllSites:R??!1?!1:b.muAddUserToAllSites}),checked:b.skipAddUserToSubsite,disabled:b.muAddUserToAllSites})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Always add all users to all WPMU subsites"}),e.jsx(de,{info:{title:"Always add all users to all WPMU subsites",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/215-always-add-all-users-to-all-wpmu-subsites"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,R)=>C({...b,muAddUserToAllSites:R??!1,skipAddUserToSubsite:R??!1?!1:b.skipAddUserToSubsite}),checked:b.muAddUserToAllSites,disabled:b.skipAddUserToSubsite})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Create new WPMU subsite for each new user"}),e.jsx(de,{info:{title:"Create a new WPMU subsite for each new user",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/226-create-a-new-wpmu-blog-upon-first-login"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,R)=>C({...b,muAddNewUserSite:R??!1}),checked:b.muAddNewUserSite})})})})]}),b.muAddNewUserSite&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Use email username as name for user blog"}),e.jsx(de,{info:{title:"Create a new WPMU subsite for each new user",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/226-create-a-new-wpmu-blog-upon-first-login"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,R)=>C({...b,muNewUserSiteUseUsername:R??!1}),checked:b.muNewUserSiteUseUsername})})})})]})]})]}),e.jsxs(e.Fragment,{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Existing User Experience"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Only WPO_ADMINS can sign in locally"}),e.jsx(de,{info:{title:"Only WPO_ADMINS can sign in locally",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/216-only-wpoadmins-can-sign-in-locally"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,R)=>C({...b,preventNonAdminLogin:R??!1}),checked:b.preventNonAdminLogin})})})]}),(!_||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"User cannot change email address"}),e.jsx(de,{info:{title:"User cannot change email address",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/55-user-cannot-change-email-address"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,R)=>C({...b,blockEmailChange:R??!1}),checked:b.blockEmailChange})})})})]}),(!_||n.some(B=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"User cannot change password"}),e.jsx(de,{info:{title:"User cannot change password",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/56-user-cannot-change-password"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(B,R)=>C({...b,blockPasswordChange:R??!1}),checked:b.blockPasswordChange})})})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"LearnDash Enrollment"})})}),y.length==0&&v.length==0?e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("div",{style:{width:"50%"},children:e.jsx(Zr,{messageBarType:Be.blocked,isMultiline:!0,truncated:!0,overflowButtonAriaLabel:"Read more",children:"It appears that LearnDash is not installed on your system. Therefore these configuration options are not available."})})})}):e.jsxs(e.Fragment,{children:[(!_||n.some(B=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Entra ID Group based user enrollment into LD courses"}),e.jsx(de,{info:{title:"LearnDash integration",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/184-learndash-integration"}}})]}),n.some(B=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(R=>R==B))&&e.jsx("div",{children:e.jsx("em",{style:{color:"#0078d4"},children:'You must click "+" to add the current item.'})})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(yi,{placeholder:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",choice:y,choicePlaceholder:"Select a LearnDash Course ...",list:Z(b.ldCourseAssignments),onListChanged:B=>C({...b,ldCourseAssignments:Z(B)}),isValid:new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),errorMessage:me.errAadSGroupIdMustBeGuid})})})})]}),(!_||n.some(B=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Entra ID Group based user allocation to LD User Groups"}),e.jsx(de,{info:{title:"LearnDash integration",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/184-learndash-integration"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(yi,{placeholder:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",choice:v,choicePlaceholder:"Select a LearnDash Group ...",list:Z(b.ldGroupAssignments),onListChanged:B=>C({...b,ldGroupAssignments:Z(B)}),isValid:new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),errorMessage:me.errAadSGroupIdMustBeGuid})})})})]}),(!_||n.some(B=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Domain based user enrollment into LD User Courses"}),e.jsx(de,{info:{title:"LearnDash integration",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/184-learndash-integration"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:28},{addOn:l.wpo365Customers,minVersion:28},{addOn:l.wpo365LoginPremium,minVersion:28},{addOn:l.wpo365Sync5y,minVersion:28},{addOn:l.wpo365LoginIntranet,minVersion:28},{addOn:l.wpo365Intranet5y,minVersion:28},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(yi,{placeholder:"e.g. example.com",choice:y,choicePlaceholder:"Select a LearnDash Course ...",list:Z(b.ldCourseAssignmentsByDomain),onListChanged:B=>C({...b,ldCourseAssignmentsByDomain:Z(B)}),isValid:new RegExp(/^(?!http)/i),errorMessage:"Domain cannot start with http(s)://"})})})})]}),(!_||n.some(B=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Domain based user allocation to LD User Groups"}),e.jsx(de,{info:{title:"LearnDash integration",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/184-learndash-integration"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:28},{addOn:l.wpo365Customers,minVersion:28},{addOn:l.wpo365LoginPremium,minVersion:28},{addOn:l.wpo365Sync5y,minVersion:28},{addOn:l.wpo365LoginIntranet,minVersion:28},{addOn:l.wpo365Intranet5y,minVersion:28},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(yi,{placeholder:"e.g. example.com",choice:v,choicePlaceholder:"Select a LearnDash Group ...",list:Z(b.ldGroupAssignmentsByDomain),onListChanged:B=>C({...b,ldGroupAssignmentsByDomain:Z(B)}),isValid:new RegExp(/^(?!http)/i),errorMessage:"Domain cannot start with http(s)://"})})})})]}),(!_||n.some(B=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Default LD courses for new users"}),e.jsx(de,{info:{title:"LearnDash integration",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/184-learndash-integration"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(Vc,{list:[...b.ldDefaultCourseAssignments],onListChanged:B=>C({...b,ldDefaultCourseAssignments:[...B]}),options:y,placeholder:"Select a LearnDash course ..."})})})})]}),(!_||n.some(B=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(R=>R==B)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Default LD User Groups for new users"}),e.jsx(de,{info:{title:"LearnDash integration",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/184-learndash-integration"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:n,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(Vc,{list:[...b.ldDefaultGroupAssignments],onListChanged:B=>C({...b,ldDefaultGroupAssignments:[...B]}),options:v,placeholder:"Select a LearnDash group ..."})})})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(rt,{onClick:()=>K(),iconProps:{iconName:Y==we.success?"Like":void 0},style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px",alignSelf:"start"},disabled:Y==we.saving,children:"Save configuration"}),e.jsx("div",{className:j.wpo365WzLabelFor,children:yd(I,"saveConfiguration").map(B=>e.jsx("p",{className:j.wpo365WzP,children:B.message}))}),Y==we.success?e.jsx("p",{style:{color:"#378805"},children:me.okSettingsUpdated}):null]})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Bs,{})})}),k&&e.jsx(Ws,{onCancel:k.onCancel,onConfirm:k.onConfirm,onDismiss:k.onDismiss,title:k.title,subText:k.subText})]})})};function $P(s){throw new Error('Could not dynamically require "'+s+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Of={exports:{}},KP=Of.exports,Cx;function qP(){return Cx||(Cx=1,(function(s,o){(function(n,t){s.exports=t()})(KP,(function(){var n;function t(){return n.apply(null,arguments)}function i(r){n=r}function d(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function c(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function u(r,a){return Object.prototype.hasOwnProperty.call(r,a)}function h(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var a;for(a in r)if(u(r,a))return!1;return!0}function g(r){return r===void 0}function _(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function m(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function x(r,a){var f=[],w,S=r.length;for(w=0;w<S;++w)f.push(a(r[w],w));return f}function y(r,a){for(var f in a)u(a,f)&&(r[f]=a[f]);return u(a,"toString")&&(r.toString=a.toString),u(a,"valueOf")&&(r.valueOf=a.valueOf),r}function v(r,a,f,w){return Lh(r,a,f,w,!0).utc()}function b(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function C(r){return r._pf==null&&(r._pf=b()),r._pf}var k;Array.prototype.some?k=Array.prototype.some:k=function(r){var a=Object(this),f=a.length>>>0,w;for(w=0;w<f;w++)if(w in a&&r.call(this,a[w],w,a))return!0;return!1};function L(r){var a=null,f=!1,w=r._d&&!isNaN(r._d.getTime());if(w&&(a=C(r),f=k.call(a.parsedDateParts,function(S){return S!=null}),w=a.overflow<0&&!a.empty&&!a.invalidEra&&!a.invalidMonth&&!a.invalidWeekday&&!a.weekdayMismatch&&!a.nullInput&&!a.invalidFormat&&!a.userInvalidated&&(!a.meridiem||a.meridiem&&f),r._strict&&(w=w&&a.charsLeftOver===0&&a.unusedTokens.length===0&&a.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(r))r._isValid=w;else return w;return r._isValid}function I(r){var a=v(NaN);return r!=null?y(C(a),r):C(a).userInvalidated=!0,a}var A=t.momentProperties=[],Y=!1;function P(r,a){var f,w,S,D=A.length;if(g(a._isAMomentObject)||(r._isAMomentObject=a._isAMomentObject),g(a._i)||(r._i=a._i),g(a._f)||(r._f=a._f),g(a._l)||(r._l=a._l),g(a._strict)||(r._strict=a._strict),g(a._tzm)||(r._tzm=a._tzm),g(a._isUTC)||(r._isUTC=a._isUTC),g(a._offset)||(r._offset=a._offset),g(a._pf)||(r._pf=C(a)),g(a._locale)||(r._locale=a._locale),D>0)for(f=0;f<D;f++)w=A[f],S=a[w],g(S)||(r[w]=S);return r}function T(r){P(this,r),this._d=new Date(r._d!=null?r._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Y===!1&&(Y=!0,t.updateOffset(this),Y=!1)}function F(r){return r instanceof T||r!=null&&r._isAMomentObject!=null}function H(r){t.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+r)}function W(r,a){var f=!0;return y(function(){if(t.deprecationHandler!=null&&t.deprecationHandler(null,r),f){var w=[],S,D,O,q=arguments.length;for(D=0;D<q;D++){if(S="",typeof arguments[D]=="object"){S+=`
[`+D+"] ";for(O in arguments[0])u(arguments[0],O)&&(S+=O+": "+arguments[0][O]+", ");S=S.slice(0,-2)}else S=arguments[D];w.push(S)}H(r+`
Arguments: `+Array.prototype.slice.call(w).join("")+`
`+new Error().stack),f=!1}return a.apply(this,arguments)},a)}var K={};function Z(r,a){t.deprecationHandler!=null&&t.deprecationHandler(r,a),K[r]||(H(a),K[r]=!0)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;function Q(r){return typeof Function<"u"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function B(r){var a,f;for(f in r)u(r,f)&&(a=r[f],Q(a)?this[f]=a:this["_"+f]=a);this._config=r,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function R(r,a){var f=y({},r),w;for(w in a)u(a,w)&&(c(r[w])&&c(a[w])?(f[w]={},y(f[w],r[w]),y(f[w],a[w])):a[w]!=null?f[w]=a[w]:delete f[w]);for(w in r)u(r,w)&&!u(a,w)&&c(r[w])&&(f[w]=y({},f[w]));return f}function X(r){r!=null&&this.set(r)}var $;Object.keys?$=Object.keys:$=function(r){var a,f=[];for(a in r)u(r,a)&&f.push(a);return f};var ie={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function le(r,a,f){var w=this._calendar[r]||this._calendar.sameElse;return Q(w)?w.call(a,f):w}function V(r,a,f){var w=""+Math.abs(r),S=a-w.length,D=r>=0;return(D?f?"+":"":"-")+Math.pow(10,Math.max(0,S)).toString().substr(1)+w}var z=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,J=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ee={},he={};function te(r,a,f,w){var S=w;typeof w=="string"&&(S=function(){return this[w]()}),r&&(he[r]=S),a&&(he[a[0]]=function(){return V(S.apply(this,arguments),a[1],a[2])}),f&&(he[f]=function(){return this.localeData().ordinal(S.apply(this,arguments),r)})}function G(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function re(r){var a=r.match(z),f,w;for(f=0,w=a.length;f<w;f++)he[a[f]]?a[f]=he[a[f]]:a[f]=G(a[f]);return function(S){var D="",O;for(O=0;O<w;O++)D+=Q(a[O])?a[O].call(S,r):a[O];return D}}function He(r,a){return r.isValid()?(a=Ge(a,r.localeData()),ee[a]=ee[a]||re(a),ee[a](r)):r.localeData().invalidDate()}function Ge(r,a){var f=5;function w(S){return a.longDateFormat(S)||S}for(J.lastIndex=0;f>=0&&J.test(r);)r=r.replace(J,w),J.lastIndex=0,f-=1;return r}var Ut={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ht(r){var a=this._longDateFormat[r],f=this._longDateFormat[r.toUpperCase()];return a||!f?a:(this._longDateFormat[r]=f.match(z).map(function(w){return w==="MMMM"||w==="MM"||w==="DD"||w==="dddd"?w.slice(1):w}).join(""),this._longDateFormat[r])}var Le="Invalid date";function Me(){return this._invalidDate}var qe="%d",Ct=/\d{1,2}/;function Pt(r){return this._ordinal.replace("%d",r)}var Mt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Wt(r,a,f,w){var S=this._relativeTime[f];return Q(S)?S(r,a,f,w):S.replace(/%d/i,r)}function Xt(r,a){var f=this._relativeTime[r>0?"future":"past"];return Q(f)?f(a):f.replace(/%s/i,a)}var wo={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function an(r){return typeof r=="string"?wo[r]||wo[r.toLowerCase()]:void 0}function fs(r){var a={},f,w;for(w in r)u(r,w)&&(f=an(w),f&&(a[f]=r[w]));return a}var Hn={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Mi(r){var a=[],f;for(f in r)u(r,f)&&a.push({unit:f,priority:Hn[f]});return a.sort(function(w,S){return w.priority-S.priority}),a}var rr=/\d/,Ft=/\d\d/,Vs=/\d{3}/,sr=/\d{4}/,Gs=/[+-]?\d{6}/,Rt=/\d\d?/,ge=/\d\d\d\d?/,se=/\d\d\d\d\d\d?/,Ae=/\d{1,3}/,gt=/\d{1,4}/,Bt=/[+-]?\d{1,6}/,or=/\d+/,gs=/[+-]?\d+/,Sd=/Z|[+-]\d\d:?\d\d/gi,Go=/Z|[+-]\d\d(?::?\d\d)?/gi,ol=/[+-]?\d+(\.\d{1,3})?/,$o=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,_s=/^[1-9]\d?/,ji=/^([1-9]\d|\d)/,$s;$s={};function Ie(r,a,f){$s[r]=Q(a)?a:function(w,S){return w&&f?f:a}}function Ks(r,a){return u($s,r)?$s[r](a._strict,a._locale):new RegExp(ns(r))}function ns(r){return Er(r.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,f,w,S,D){return f||w||S||D}))}function Er(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function pn(r){return r<0?Math.ceil(r)||0:Math.floor(r)}function Qe(r){var a=+r,f=0;return a!==0&&isFinite(a)&&(f=pn(a)),f}var Ko={};function _t(r,a){var f,w=a,S;for(typeof r=="string"&&(r=[r]),_(a)&&(w=function(D,O){O[a]=Qe(D)}),S=r.length,f=0;f<S;f++)Ko[r[f]]=w}function ys(r,a){_t(r,function(f,w,S,D){S._w=S._w||{},a(f,S._w,S,D)})}function Cd(r,a,f){a!=null&&u(Ko,r)&&Ko[r](a,f._a,f,r)}function _r(r){return r%4===0&&r%100!==0||r%400===0}var ln=0,ir=1,Dr=2,Vt=3,ar=4,lr=5,ws=6,qo=7,oa=8;te("Y",0,0,function(){var r=this.year();return r<=9999?V(r,4):"+"+r}),te(0,["YY",2],0,function(){return this.year()%100}),te(0,["YYYY",4],0,"year"),te(0,["YYYYY",5],0,"year"),te(0,["YYYYYY",6,!0],0,"year"),Ie("Y",gs),Ie("YY",Rt,Ft),Ie("YYYY",gt,sr),Ie("YYYYY",Bt,Gs),Ie("YYYYYY",Bt,Gs),_t(["YYYYY","YYYYYY"],ln),_t("YYYY",function(r,a){a[ln]=r.length===2?t.parseTwoDigitYear(r):Qe(r)}),_t("YY",function(r,a){a[ln]=t.parseTwoDigitYear(r)}),_t("Y",function(r,a){a[ln]=parseInt(r,10)});function qs(r){return _r(r)?366:365}t.parseTwoDigitYear=function(r){return Qe(r)+(Qe(r)>68?1900:2e3)};var ia=Js("FullYear",!0);function aa(){return _r(this.year())}function Js(r,a){return function(f){return f!=null?(rs(this,r,f),t.updateOffset(this,a),this):Jo(this,r)}}function Jo(r,a){if(!r.isValid())return NaN;var f=r._d,w=r._isUTC;switch(a){case"Milliseconds":return w?f.getUTCMilliseconds():f.getMilliseconds();case"Seconds":return w?f.getUTCSeconds():f.getSeconds();case"Minutes":return w?f.getUTCMinutes():f.getMinutes();case"Hours":return w?f.getUTCHours():f.getHours();case"Date":return w?f.getUTCDate():f.getDate();case"Day":return w?f.getUTCDay():f.getDay();case"Month":return w?f.getUTCMonth():f.getMonth();case"FullYear":return w?f.getUTCFullYear():f.getFullYear();default:return NaN}}function rs(r,a,f){var w,S,D,O,q;if(!(!r.isValid()||isNaN(f))){switch(w=r._d,S=r._isUTC,a){case"Milliseconds":return void(S?w.setUTCMilliseconds(f):w.setMilliseconds(f));case"Seconds":return void(S?w.setUTCSeconds(f):w.setSeconds(f));case"Minutes":return void(S?w.setUTCMinutes(f):w.setMinutes(f));case"Hours":return void(S?w.setUTCHours(f):w.setHours(f));case"Date":return void(S?w.setUTCDate(f):w.setDate(f));case"FullYear":break;default:return}D=f,O=r.month(),q=r.date(),q=q===29&&O===1&&!_r(D)?28:q,S?w.setUTCFullYear(D,O,q):w.setFullYear(D,O,q)}}function il(r){return r=an(r),Q(this[r])?this[r]():this}function kd(r,a){if(typeof r=="object"){r=fs(r);var f=Mi(r),w,S=f.length;for(w=0;w<S;w++)this[f[w].unit](r[f[w].unit])}else if(r=an(r),Q(this[r]))return this[r](a);return this}function al(r,a){return(r%a+a)%a}var Qt;Array.prototype.indexOf?Qt=Array.prototype.indexOf:Qt=function(r){var a;for(a=0;a<this.length;++a)if(this[a]===r)return a;return-1};function Li(r,a){if(isNaN(r)||isNaN(a))return NaN;var f=al(a,12);return r+=(a-f)/12,f===1?_r(r)?29:28:31-f%7%2}te("M",["MM",2],"Mo",function(){return this.month()+1}),te("MMM",0,0,function(r){return this.localeData().monthsShort(this,r)}),te("MMMM",0,0,function(r){return this.localeData().months(this,r)}),Ie("M",Rt,_s),Ie("MM",Rt,Ft),Ie("MMM",function(r,a){return a.monthsShortRegex(r)}),Ie("MMMM",function(r,a){return a.monthsRegex(r)}),_t(["M","MM"],function(r,a){a[ir]=Qe(r)-1}),_t(["MMM","MMMM"],function(r,a,f,w){var S=f._locale.monthsParse(r,w,f._strict);S!=null?a[ir]=S:C(f).invalidMonth=r});var la="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),da="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ll=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,dl=$o,cl=$o;function Ir(r,a){return r?d(this._months)?this._months[r.month()]:this._months[(this._months.isFormat||ll).test(a)?"format":"standalone"][r.month()]:d(this._months)?this._months:this._months.standalone}function Zs(r,a){return r?d(this._monthsShort)?this._monthsShort[r.month()]:this._monthsShort[ll.test(a)?"format":"standalone"][r.month()]:d(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Xs(r,a,f){var w,S,D,O=r.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],w=0;w<12;++w)D=v([2e3,w]),this._shortMonthsParse[w]=this.monthsShort(D,"").toLocaleLowerCase(),this._longMonthsParse[w]=this.months(D,"").toLocaleLowerCase();return f?a==="MMM"?(S=Qt.call(this._shortMonthsParse,O),S!==-1?S:null):(S=Qt.call(this._longMonthsParse,O),S!==-1?S:null):a==="MMM"?(S=Qt.call(this._shortMonthsParse,O),S!==-1?S:(S=Qt.call(this._longMonthsParse,O),S!==-1?S:null)):(S=Qt.call(this._longMonthsParse,O),S!==-1?S:(S=Qt.call(this._shortMonthsParse,O),S!==-1?S:null))}function lt(r,a,f){var w,S,D;if(this._monthsParseExact)return Xs.call(this,r,a,f);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),w=0;w<12;w++){if(S=v([2e3,w]),f&&!this._longMonthsParse[w]&&(this._longMonthsParse[w]=new RegExp("^"+this.months(S,"").replace(".","")+"$","i"),this._shortMonthsParse[w]=new RegExp("^"+this.monthsShort(S,"").replace(".","")+"$","i")),!f&&!this._monthsParse[w]&&(D="^"+this.months(S,"")+"|^"+this.monthsShort(S,""),this._monthsParse[w]=new RegExp(D.replace(".",""),"i")),f&&a==="MMMM"&&this._longMonthsParse[w].test(r))return w;if(f&&a==="MMM"&&this._shortMonthsParse[w].test(r))return w;if(!f&&this._monthsParse[w].test(r))return w}}function Nt(r,a){if(!r.isValid())return r;if(typeof a=="string"){if(/^\d+$/.test(a))a=Qe(a);else if(a=r.localeData().monthsParse(a),!_(a))return r}var f=a,w=r.date();return w=w<29?w:Math.min(w,Li(r.year(),f)),r._isUTC?r._d.setUTCMonth(f,w):r._d.setMonth(f,w),r}function jt(r){return r!=null?(Nt(this,r),t.updateOffset(this,!0),this):Jo(this,"Month")}function vn(){return Li(this.year(),this.month())}function Tr(r){return this._monthsParseExact?(u(this,"_monthsRegex")||ul.call(this),r?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=dl),this._monthsShortStrictRegex&&r?this._monthsShortStrictRegex:this._monthsShortRegex)}function Ei(r){return this._monthsParseExact?(u(this,"_monthsRegex")||ul.call(this),r?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=cl),this._monthsStrictRegex&&r?this._monthsStrictRegex:this._monthsRegex)}function ul(){function r(ae,Se){return Se.length-ae.length}var a=[],f=[],w=[],S,D,O,q;for(S=0;S<12;S++)D=v([2e3,S]),O=Er(this.monthsShort(D,"")),q=Er(this.months(D,"")),a.push(O),f.push(q),w.push(q),w.push(O);a.sort(r),f.sort(r),w.sort(r),this._monthsRegex=new RegExp("^("+w.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+f.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Di(r,a,f,w,S,D,O){var q;return r<100&&r>=0?(q=new Date(r+400,a,f,w,S,D,O),isFinite(q.getFullYear())&&q.setFullYear(r)):q=new Date(r,a,f,w,S,D,O),q}function Zo(r){var a,f;return r<100&&r>=0?(f=Array.prototype.slice.call(arguments),f[0]=r+400,a=new Date(Date.UTC.apply(null,f)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(r)):a=new Date(Date.UTC.apply(null,arguments)),a}function Md(r,a,f){var w=7+a-f,S=(7+Zo(r,0,w).getUTCDay()-a)%7;return-S+w-1}function pl(r,a,f,w,S){var D=(7+f-w)%7,O=Md(r,w,S),q=1+7*(a-1)+D+O,ae,Se;return q<=0?(ae=r-1,Se=qs(ae)+q):q>qs(r)?(ae=r+1,Se=q-qs(r)):(ae=r,Se=q),{year:ae,dayOfYear:Se}}function ca(r,a,f){var w=Md(r.year(),a,f),S=Math.floor((r.dayOfYear()-w-1)/7)+1,D,O;return S<1?(O=r.year()-1,D=S+vo(O,a,f)):S>vo(r.year(),a,f)?(D=S-vo(r.year(),a,f),O=r.year()+1):(O=r.year(),D=S),{week:D,year:O}}function vo(r,a,f){var w=Md(r,a,f),S=Md(r+1,a,f);return(qs(r)-w+S)/7}te("w",["ww",2],"wo","week"),te("W",["WW",2],"Wo","isoWeek"),Ie("w",Rt,_s),Ie("ww",Rt,Ft),Ie("W",Rt,_s),Ie("WW",Rt,Ft),ys(["w","ww","W","WW"],function(r,a,f,w){a[w.substr(0,1)]=Qe(r)});function hl(r){return ca(r,this._week.dow,this._week.doy).week}var fh={dow:0,doy:6};function jd(){return this._week.dow}function ua(){return this._week.doy}function iu(r){var a=this.localeData().week(this);return r==null?a:this.add((r-a)*7,"d")}function gh(r){var a=ca(this,1,4).week;return r==null?a:this.add((r-a)*7,"d")}te("d",0,"do","day"),te("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)}),te("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)}),te("dddd",0,0,function(r){return this.localeData().weekdays(this,r)}),te("e",0,0,"weekday"),te("E",0,0,"isoWeekday"),Ie("d",Rt),Ie("e",Rt),Ie("E",Rt),Ie("dd",function(r,a){return a.weekdaysMinRegex(r)}),Ie("ddd",function(r,a){return a.weekdaysShortRegex(r)}),Ie("dddd",function(r,a){return a.weekdaysRegex(r)}),ys(["dd","ddd","dddd"],function(r,a,f,w){var S=f._locale.weekdaysParse(r,w,f._strict);S!=null?a.d=S:C(f).invalidWeekday=r}),ys(["d","e","E"],function(r,a,f,w){a[w]=Qe(r)});function Ld(r,a){return typeof r!="string"?r:isNaN(r)?(r=a.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function _h(r,a){return typeof r=="string"?a.weekdaysParse(r)%7||7:isNaN(r)?null:r}function Ed(r,a){return r.slice(a,7).concat(r.slice(0,a))}var yh="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),au="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wh="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),lu=$o,xg=$o,du=$o;function bg(r,a){var f=d(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(a)?"format":"standalone"];return r===!0?Ed(f,this._week.dow):r?f[r.day()]:f}function qt(r){return r===!0?Ed(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function pa(r){return r===!0?Ed(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function Sg(r,a,f){var w,S,D,O=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],w=0;w<7;++w)D=v([2e3,1]).day(w),this._minWeekdaysParse[w]=this.weekdaysMin(D,"").toLocaleLowerCase(),this._shortWeekdaysParse[w]=this.weekdaysShort(D,"").toLocaleLowerCase(),this._weekdaysParse[w]=this.weekdays(D,"").toLocaleLowerCase();return f?a==="dddd"?(S=Qt.call(this._weekdaysParse,O),S!==-1?S:null):a==="ddd"?(S=Qt.call(this._shortWeekdaysParse,O),S!==-1?S:null):(S=Qt.call(this._minWeekdaysParse,O),S!==-1?S:null):a==="dddd"?(S=Qt.call(this._weekdaysParse,O),S!==-1||(S=Qt.call(this._shortWeekdaysParse,O),S!==-1)?S:(S=Qt.call(this._minWeekdaysParse,O),S!==-1?S:null)):a==="ddd"?(S=Qt.call(this._shortWeekdaysParse,O),S!==-1||(S=Qt.call(this._weekdaysParse,O),S!==-1)?S:(S=Qt.call(this._minWeekdaysParse,O),S!==-1?S:null)):(S=Qt.call(this._minWeekdaysParse,O),S!==-1||(S=Qt.call(this._weekdaysParse,O),S!==-1)?S:(S=Qt.call(this._shortWeekdaysParse,O),S!==-1?S:null))}function Cg(r,a,f){var w,S,D;if(this._weekdaysParseExact)return Sg.call(this,r,a,f);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),w=0;w<7;w++){if(S=v([2e3,1]).day(w),f&&!this._fullWeekdaysParse[w]&&(this._fullWeekdaysParse[w]=new RegExp("^"+this.weekdays(S,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[w]=new RegExp("^"+this.weekdaysShort(S,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[w]=new RegExp("^"+this.weekdaysMin(S,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[w]||(D="^"+this.weekdays(S,"")+"|^"+this.weekdaysShort(S,"")+"|^"+this.weekdaysMin(S,""),this._weekdaysParse[w]=new RegExp(D.replace(".",""),"i")),f&&a==="dddd"&&this._fullWeekdaysParse[w].test(r))return w;if(f&&a==="ddd"&&this._shortWeekdaysParse[w].test(r))return w;if(f&&a==="dd"&&this._minWeekdaysParse[w].test(r))return w;if(!f&&this._weekdaysParse[w].test(r))return w}}function ml(r){if(!this.isValid())return r!=null?this:NaN;var a=Jo(this,"Day");return r!=null?(r=Ld(r,this.localeData()),this.add(r-a,"d")):a}function vh(r){if(!this.isValid())return r!=null?this:NaN;var a=(this.day()+7-this.localeData()._week.dow)%7;return r==null?a:this.add(r-a,"d")}function Dd(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var a=_h(r,this.localeData());return this.day(this.day()%7?a:a-7)}else return this.day()||7}function ha(r){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Qs.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=lu),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function cu(r){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Qs.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=xg),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Id(r){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Qs.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=du),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qs(){function r(ze,xe){return xe.length-ze.length}var a=[],f=[],w=[],S=[],D,O,q,ae,Se;for(D=0;D<7;D++)O=v([2e3,1]).day(D),q=Er(this.weekdaysMin(O,"")),ae=Er(this.weekdaysShort(O,"")),Se=Er(this.weekdays(O,"")),a.push(q),f.push(ae),w.push(Se),S.push(q),S.push(ae),S.push(Se);a.sort(r),f.sort(r),w.sort(r),S.sort(r),this._weekdaysRegex=new RegExp("^("+S.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+w.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+f.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function uu(){return this.hours()%12||12}function kg(){return this.hours()||24}te("H",["HH",2],0,"hour"),te("h",["hh",2],0,uu),te("k",["kk",2],0,kg),te("hmm",0,0,function(){return""+uu.apply(this)+V(this.minutes(),2)}),te("hmmss",0,0,function(){return""+uu.apply(this)+V(this.minutes(),2)+V(this.seconds(),2)}),te("Hmm",0,0,function(){return""+this.hours()+V(this.minutes(),2)}),te("Hmmss",0,0,function(){return""+this.hours()+V(this.minutes(),2)+V(this.seconds(),2)});function xh(r,a){te(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}xh("a",!0),xh("A",!1);function bh(r,a){return a._meridiemParse}Ie("a",bh),Ie("A",bh),Ie("H",Rt,ji),Ie("h",Rt,_s),Ie("k",Rt,_s),Ie("HH",Rt,Ft),Ie("hh",Rt,Ft),Ie("kk",Rt,Ft),Ie("hmm",ge),Ie("hmmss",se),Ie("Hmm",ge),Ie("Hmmss",se),_t(["H","HH"],Vt),_t(["k","kk"],function(r,a,f){var w=Qe(r);a[Vt]=w===24?0:w}),_t(["a","A"],function(r,a,f){f._isPm=f._locale.isPM(r),f._meridiem=r}),_t(["h","hh"],function(r,a,f){a[Vt]=Qe(r),C(f).bigHour=!0}),_t("hmm",function(r,a,f){var w=r.length-2;a[Vt]=Qe(r.substr(0,w)),a[ar]=Qe(r.substr(w)),C(f).bigHour=!0}),_t("hmmss",function(r,a,f){var w=r.length-4,S=r.length-2;a[Vt]=Qe(r.substr(0,w)),a[ar]=Qe(r.substr(w,2)),a[lr]=Qe(r.substr(S)),C(f).bigHour=!0}),_t("Hmm",function(r,a,f){var w=r.length-2;a[Vt]=Qe(r.substr(0,w)),a[ar]=Qe(r.substr(w))}),_t("Hmmss",function(r,a,f){var w=r.length-4,S=r.length-2;a[Vt]=Qe(r.substr(0,w)),a[ar]=Qe(r.substr(w,2)),a[lr]=Qe(r.substr(S))});function Mg(r){return(r+"").toLowerCase().charAt(0)==="p"}var Td=/[ap]\.?m?\.?/i,jg=Js("Hours",!0);function Lg(r,a,f){return r>11?f?"pm":"PM":f?"am":"AM"}var Ad={calendar:ie,longDateFormat:Ut,invalidDate:Le,ordinal:qe,dayOfMonthOrdinalParse:Ct,relativeTime:Mt,months:la,monthsShort:da,week:fh,weekdays:yh,weekdaysMin:wh,weekdaysShort:au,meridiemParse:Td},Jt={},ss={},Ii;function Pd(r,a){var f,w=Math.min(r.length,a.length);for(f=0;f<w;f+=1)if(r[f]!==a[f])return f;return w}function pu(r){return r&&r.toLowerCase().replace("_","-")}function Rd(r){for(var a=0,f,w,S,D;a<r.length;){for(D=pu(r[a]).split("-"),f=D.length,w=pu(r[a+1]),w=w?w.split("-"):null;f>0;){if(S=fl(D.slice(0,f).join("-")),S)return S;if(w&&w.length>=f&&Pd(D,w)>=f-1)break;f--}a++}return Ii}function Fd(r){return!!(r&&r.match("^[^/\\\\]*$"))}function fl(r){var a=null,f;if(Jt[r]===void 0&&s&&s.exports&&Fd(r))try{a=Ii._abbr,f=$P,f("./locale/"+r),xn(a)}catch{Jt[r]=null}return Jt[r]}function xn(r,a){var f;return r&&(g(a)?f=Ar(r):f=Xo(r,a),f?Ii=f:typeof console<"u"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),Ii._abbr}function Xo(r,a){if(a!==null){var f,w=Ad;if(a.abbr=r,Jt[r]!=null)Z("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),w=Jt[r]._config;else if(a.parentLocale!=null)if(Jt[a.parentLocale]!=null)w=Jt[a.parentLocale]._config;else if(f=fl(a.parentLocale),f!=null)w=f._config;else return ss[a.parentLocale]||(ss[a.parentLocale]=[]),ss[a.parentLocale].push({name:r,config:a}),null;return Jt[r]=new X(R(w,a)),ss[r]&&ss[r].forEach(function(S){Xo(S.name,S.config)}),xn(r),Jt[r]}else return delete Jt[r],null}function hu(r,a){if(a!=null){var f,w,S=Ad;Jt[r]!=null&&Jt[r].parentLocale!=null?Jt[r].set(R(Jt[r]._config,a)):(w=fl(r),w!=null&&(S=w._config),a=R(S,a),w==null&&(a.abbr=r),f=new X(a),f.parentLocale=Jt[r],Jt[r]=f),xn(r)}else Jt[r]!=null&&(Jt[r].parentLocale!=null?(Jt[r]=Jt[r].parentLocale,r===xn()&&xn(r)):Jt[r]!=null&&delete Jt[r]);return Jt[r]}function Ar(r){var a;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return Ii;if(!d(r)){if(a=fl(r),a)return a;r=[r]}return Rd(r)}function Eg(){return $(Jt)}function gl(r){var a,f=r._a;return f&&C(r).overflow===-2&&(a=f[ir]<0||f[ir]>11?ir:f[Dr]<1||f[Dr]>Li(f[ln],f[ir])?Dr:f[Vt]<0||f[Vt]>24||f[Vt]===24&&(f[ar]!==0||f[lr]!==0||f[ws]!==0)?Vt:f[ar]<0||f[ar]>59?ar:f[lr]<0||f[lr]>59?lr:f[ws]<0||f[ws]>999?ws:-1,C(r)._overflowDayOfYear&&(a<ln||a>Dr)&&(a=Dr),C(r)._overflowWeeks&&a===-1&&(a=qo),C(r)._overflowWeekday&&a===-1&&(a=oa),C(r).overflow=a),r}var mu=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_l=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Nd=/Z|[+-]\d\d(?::?\d\d)?/,yl=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],fu=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Dg=/^\/?Date\((-?\d+)/i,Ig=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,gu={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Sh(r){var a,f,w=r._i,S=mu.exec(w)||_l.exec(w),D,O,q,ae,Se=yl.length,ze=fu.length;if(S){for(C(r).iso=!0,a=0,f=Se;a<f;a++)if(yl[a][1].exec(S[1])){O=yl[a][0],D=yl[a][2]!==!1;break}if(O==null){r._isValid=!1;return}if(S[3]){for(a=0,f=ze;a<f;a++)if(fu[a][1].exec(S[3])){q=(S[2]||" ")+fu[a][0];break}if(q==null){r._isValid=!1;return}}if(!D&&q!=null){r._isValid=!1;return}if(S[4])if(Nd.exec(S[4]))ae="Z";else{r._isValid=!1;return}r._f=O+(q||"")+(ae||""),_u(r)}else r._isValid=!1}function Tg(r,a,f,w,S,D){var O=[Ag(r),da.indexOf(a),parseInt(f,10),parseInt(w,10),parseInt(S,10)];return D&&O.push(parseInt(D,10)),O}function Ag(r){var a=parseInt(r,10);return a<=49?2e3+a:a<=999?1900+a:a}function Pg(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Rg(r,a,f){if(r){var w=au.indexOf(r),S=new Date(a[0],a[1],a[2]).getDay();if(w!==S)return C(f).weekdayMismatch=!0,f._isValid=!1,!1}return!0}function Ch(r,a,f){if(r)return gu[r];if(a)return 0;var w=parseInt(f,10),S=w%100,D=(w-S)/100;return D*60+S}function kh(r){var a=Ig.exec(Pg(r._i)),f;if(a){if(f=Tg(a[4],a[3],a[2],a[5],a[6],a[7]),!Rg(a[1],f,r))return;r._a=f,r._tzm=Ch(a[8],a[9],a[10]),r._d=Zo.apply(null,r._a),r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),C(r).rfc2822=!0}else r._isValid=!1}function Fg(r){var a=Dg.exec(r._i);if(a!==null){r._d=new Date(+a[1]);return}if(Sh(r),r._isValid===!1)delete r._isValid;else return;if(kh(r),r._isValid===!1)delete r._isValid;else return;r._strict?r._isValid=!1:t.createFromInputFallback(r)}t.createFromInputFallback=W("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(r){r._d=new Date(r._i+(r._useUTC?" UTC":""))});function ma(r,a,f){return r??a??f}function Ng(r){var a=new Date(t.now());return r._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function wl(r){var a,f,w=[],S,D,O;if(!r._d){for(S=Ng(r),r._w&&r._a[Dr]==null&&r._a[ir]==null&&Og(r),r._dayOfYear!=null&&(O=ma(r._a[ln],S[ln]),(r._dayOfYear>qs(O)||r._dayOfYear===0)&&(C(r)._overflowDayOfYear=!0),f=Zo(O,0,r._dayOfYear),r._a[ir]=f.getUTCMonth(),r._a[Dr]=f.getUTCDate()),a=0;a<3&&r._a[a]==null;++a)r._a[a]=w[a]=S[a];for(;a<7;a++)r._a[a]=w[a]=r._a[a]==null?a===2?1:0:r._a[a];r._a[Vt]===24&&r._a[ar]===0&&r._a[lr]===0&&r._a[ws]===0&&(r._nextDay=!0,r._a[Vt]=0),r._d=(r._useUTC?Zo:Di).apply(null,w),D=r._useUTC?r._d.getUTCDay():r._d.getDay(),r._tzm!=null&&r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),r._nextDay&&(r._a[Vt]=24),r._w&&typeof r._w.d<"u"&&r._w.d!==D&&(C(r).weekdayMismatch=!0)}}function Og(r){var a,f,w,S,D,O,q,ae,Se;a=r._w,a.GG!=null||a.W!=null||a.E!=null?(D=1,O=4,f=ma(a.GG,r._a[ln],ca(en(),1,4).year),w=ma(a.W,1),S=ma(a.E,1),(S<1||S>7)&&(ae=!0)):(D=r._locale._week.dow,O=r._locale._week.doy,Se=ca(en(),D,O),f=ma(a.gg,r._a[ln],Se.year),w=ma(a.w,Se.week),a.d!=null?(S=a.d,(S<0||S>6)&&(ae=!0)):a.e!=null?(S=a.e+D,(a.e<0||a.e>6)&&(ae=!0)):S=D),w<1||w>vo(f,D,O)?C(r)._overflowWeeks=!0:ae!=null?C(r)._overflowWeekday=!0:(q=pl(f,w,S,D,O),r._a[ln]=q.year,r._dayOfYear=q.dayOfYear)}t.ISO_8601=function(){},t.RFC_2822=function(){};function _u(r){if(r._f===t.ISO_8601){Sh(r);return}if(r._f===t.RFC_2822){kh(r);return}r._a=[],C(r).empty=!0;var a=""+r._i,f,w,S,D,O,q=a.length,ae=0,Se,ze;for(S=Ge(r._f,r._locale).match(z)||[],ze=S.length,f=0;f<ze;f++)D=S[f],w=(a.match(Ks(D,r))||[])[0],w&&(O=a.substr(0,a.indexOf(w)),O.length>0&&C(r).unusedInput.push(O),a=a.slice(a.indexOf(w)+w.length),ae+=w.length),he[D]?(w?C(r).empty=!1:C(r).unusedTokens.push(D),Cd(D,w,r)):r._strict&&!w&&C(r).unusedTokens.push(D);C(r).charsLeftOver=q-ae,a.length>0&&C(r).unusedInput.push(a),r._a[Vt]<=12&&C(r).bigHour===!0&&r._a[Vt]>0&&(C(r).bigHour=void 0),C(r).parsedDateParts=r._a.slice(0),C(r).meridiem=r._meridiem,r._a[Vt]=Yg(r._locale,r._a[Vt],r._meridiem),Se=C(r).era,Se!==null&&(r._a[ln]=r._locale.erasConvertYear(Se,r._a[ln])),wl(r),gl(r)}function Yg(r,a,f){var w;return f==null?a:r.meridiemHour!=null?r.meridiemHour(a,f):(r.isPM!=null&&(w=r.isPM(f),w&&a<12&&(a+=12),!w&&a===12&&(a=0)),a)}function Mh(r){var a,f,w,S,D,O,q=!1,ae=r._f.length;if(ae===0){C(r).invalidFormat=!0,r._d=new Date(NaN);return}for(S=0;S<ae;S++)D=0,O=!1,a=P({},r),r._useUTC!=null&&(a._useUTC=r._useUTC),a._f=r._f[S],_u(a),L(a)&&(O=!0),D+=C(a).charsLeftOver,D+=C(a).unusedTokens.length*10,C(a).score=D,q?D<w&&(w=D,f=a):(w==null||D<w||O)&&(w=D,f=a,O&&(q=!0));y(r,f||a)}function Wg(r){if(!r._d){var a=fs(r._i),f=a.day===void 0?a.date:a.day;r._a=x([a.year,a.month,f,a.hour,a.minute,a.second,a.millisecond],function(w){return w&&parseInt(w,10)}),wl(r)}}function Bg(r){var a=new T(gl(jh(r)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function jh(r){var a=r._i,f=r._f;return r._locale=r._locale||Ar(r._l),a===null||f===void 0&&a===""?I({nullInput:!0}):(typeof a=="string"&&(r._i=a=r._locale.preparse(a)),F(a)?new T(gl(a)):(m(a)?r._d=a:d(f)?Mh(r):f?_u(r):Hg(r),L(r)||(r._d=null),r))}function Hg(r){var a=r._i;g(a)?r._d=new Date(t.now()):m(a)?r._d=new Date(a.valueOf()):typeof a=="string"?Fg(r):d(a)?(r._a=x(a.slice(0),function(f){return parseInt(f,10)}),wl(r)):c(a)?Wg(r):_(a)?r._d=new Date(a):t.createFromInputFallback(r)}function Lh(r,a,f,w,S){var D={};return(a===!0||a===!1)&&(w=a,a=void 0),(f===!0||f===!1)&&(w=f,f=void 0),(c(r)&&h(r)||d(r)&&r.length===0)&&(r=void 0),D._isAMomentObject=!0,D._useUTC=D._isUTC=S,D._l=f,D._i=r,D._f=a,D._strict=w,Bg(D)}function en(r,a,f,w){return Lh(r,a,f,w,!1)}var zg=W("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=en.apply(null,arguments);return this.isValid()&&r.isValid()?r<this?this:r:I()}),yu=W("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=en.apply(null,arguments);return this.isValid()&&r.isValid()?r>this?this:r:I()});function fa(r,a){var f,w;if(a.length===1&&d(a[0])&&(a=a[0]),!a.length)return en();for(f=a[0],w=1;w<a.length;++w)(!a[w].isValid()||a[w][r](f))&&(f=a[w]);return f}function Ug(){var r=[].slice.call(arguments,0);return fa("isBefore",r)}function Eh(){var r=[].slice.call(arguments,0);return fa("isAfter",r)}var Dh=function(){return Date.now?Date.now():+new Date},ga=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ih(r){var a,f=!1,w,S=ga.length;for(a in r)if(u(r,a)&&!(Qt.call(ga,a)!==-1&&(r[a]==null||!isNaN(r[a]))))return!1;for(w=0;w<S;++w)if(r[ga[w]]){if(f)return!1;parseFloat(r[ga[w]])!==Qe(r[ga[w]])&&(f=!0)}return!0}function Th(){return this._isValid}function _a(){return vs(NaN)}function Od(r){var a=fs(r),f=a.year||0,w=a.quarter||0,S=a.month||0,D=a.week||a.isoWeek||0,O=a.day||0,q=a.hour||0,ae=a.minute||0,Se=a.second||0,ze=a.millisecond||0;this._isValid=Ih(a),this._milliseconds=+ze+Se*1e3+ae*6e4+q*1e3*60*60,this._days=+O+D*7,this._months=+S+w*3+f*12,this._data={},this._locale=Ar(),this._bubble()}function Yd(r){return r instanceof Od}function wu(r){return r<0?Math.round(-1*r)*-1:Math.round(r)}function Ah(r,a,f){var w=Math.min(r.length,a.length),S=Math.abs(r.length-a.length),D=0,O;for(O=0;O<w;O++)Qe(r[O])!==Qe(a[O])&&D++;return D+S}function vu(r,a){te(r,0,0,function(){var f=this.utcOffset(),w="+";return f<0&&(f=-f,w="-"),w+V(~~(f/60),2)+a+V(~~f%60,2)})}vu("Z",":"),vu("ZZ",""),Ie("Z",Go),Ie("ZZ",Go),_t(["Z","ZZ"],function(r,a,f){f._useUTC=!0,f._tzm=Ti(Go,r)});var vl=/([\+\-]|\d\d)/gi;function Ti(r,a){var f=(a||"").match(r),w,S,D;return f===null?null:(w=f[f.length-1]||[],S=(w+"").match(vl)||["-",0,0],D=+(S[1]*60)+Qe(S[2]),D===0?0:S[0]==="+"?D:-D)}function xu(r,a){var f,w;return a._isUTC?(f=a.clone(),w=(F(r)||m(r)?r.valueOf():en(r).valueOf())-f.valueOf(),f._d.setTime(f._d.valueOf()+w),t.updateOffset(f,!1),f):en(r).local()}function ya(r){return-Math.round(r._d.getTimezoneOffset())}t.updateOffset=function(){};function Vg(r,a,f){var w=this._offset||0,S;if(!this.isValid())return r!=null?this:NaN;if(r!=null){if(typeof r=="string"){if(r=Ti(Go,r),r===null)return this}else Math.abs(r)<16&&!f&&(r=r*60);return!this._isUTC&&a&&(S=ya(this)),this._offset=r,this._isUTC=!0,S!=null&&this.add(S,"m"),w!==r&&(!a||this._changeInProgress?Mu(this,vs(r-w,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?w:ya(this)}function Ph(r,a){return r!=null?(typeof r!="string"&&(r=-r),this.utcOffset(r,a),this):-this.utcOffset()}function bu(r){return this.utcOffset(0,r)}function Su(r){return this._isUTC&&(this.utcOffset(0,r),this._isUTC=!1,r&&this.subtract(ya(this),"m")),this}function Rh(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var r=Ti(Sd,this._i);r!=null?this.utcOffset(r):this.utcOffset(0,!0)}return this}function Fh(r){return this.isValid()?(r=r?en(r).utcOffset():0,(this.utcOffset()-r)%60===0):!1}function Nh(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Gg(){if(!g(this._isDSTShifted))return this._isDSTShifted;var r={},a;return P(r,this),r=jh(r),r._a?(a=r._isUTC?v(r._a):en(r._a),this._isDSTShifted=this.isValid()&&Ah(r._a,a.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function $g(){return this.isValid()?!this._isUTC:!1}function Kg(){return this.isValid()?this._isUTC:!1}function Oh(){return this.isValid()?this._isUTC&&this._offset===0:!1}var qg=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,os=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function vs(r,a){var f=r,w=null,S,D,O;return Yd(r)?f={ms:r._milliseconds,d:r._days,M:r._months}:_(r)||!isNaN(+r)?(f={},a?f[a]=+r:f.milliseconds=+r):(w=qg.exec(r))?(S=w[1]==="-"?-1:1,f={y:0,d:Qe(w[Dr])*S,h:Qe(w[Vt])*S,m:Qe(w[ar])*S,s:Qe(w[lr])*S,ms:Qe(wu(w[ws]*1e3))*S}):(w=os.exec(r))?(S=w[1]==="-"?-1:1,f={y:xs(w[2],S),M:xs(w[3],S),w:xs(w[4],S),d:xs(w[5],S),h:xs(w[6],S),m:xs(w[7],S),s:xs(w[8],S)}):f==null?f={}:typeof f=="object"&&("from"in f||"to"in f)&&(O=Yh(en(f.from),en(f.to)),f={},f.ms=O.milliseconds,f.M=O.months),D=new Od(f),Yd(r)&&u(r,"_locale")&&(D._locale=r._locale),Yd(r)&&u(r,"_isValid")&&(D._isValid=r._isValid),D}vs.fn=Od.prototype,vs.invalid=_a;function xs(r,a){var f=r&&parseFloat(r.replace(",","."));return(isNaN(f)?0:f)*a}function Cu(r,a){var f={};return f.months=a.month()-r.month()+(a.year()-r.year())*12,r.clone().add(f.months,"M").isAfter(a)&&--f.months,f.milliseconds=+a-+r.clone().add(f.months,"M"),f}function Yh(r,a){var f;return r.isValid()&&a.isValid()?(a=xu(a,r),r.isBefore(a)?f=Cu(r,a):(f=Cu(a,r),f.milliseconds=-f.milliseconds,f.months=-f.months),f):{milliseconds:0,months:0}}function ku(r,a){return function(f,w){var S,D;return w!==null&&!isNaN(+w)&&(Z(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),D=f,f=w,w=D),S=vs(f,w),Mu(this,S,r),this}}function Mu(r,a,f,w){var S=a._milliseconds,D=wu(a._days),O=wu(a._months);r.isValid()&&(w=w??!0,O&&Nt(r,Jo(r,"Month")+O*f),D&&rs(r,"Date",Jo(r,"Date")+D*f),S&&r._d.setTime(r._d.valueOf()+S*f),w&&t.updateOffset(r,D||O))}var ju=ku(1,"add"),Jg=ku(-1,"subtract");function Ai(r){return typeof r=="string"||r instanceof String}function Lu(r){return F(r)||m(r)||Ai(r)||_(r)||Eu(r)||xl(r)||r===null||r===void 0}function xl(r){var a=c(r)&&!h(r),f=!1,w=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],S,D,O=w.length;for(S=0;S<O;S+=1)D=w[S],f=f||u(r,D);return a&&f}function Eu(r){var a=d(r),f=!1;return a&&(f=r.filter(function(w){return!_(w)&&Ai(r)}).length===0),a&&f}function Wh(r){var a=c(r)&&!h(r),f=!1,w=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],S,D;for(S=0;S<w.length;S+=1)D=w[S],f=f||u(r,D);return a&&f}function Bh(r,a){var f=r.diff(a,"days",!0);return f<-6?"sameElse":f<-1?"lastWeek":f<0?"lastDay":f<1?"sameDay":f<2?"nextDay":f<7?"nextWeek":"sameElse"}function Du(r,a){arguments.length===1&&(arguments[0]?Lu(arguments[0])?(r=arguments[0],a=void 0):Wh(arguments[0])&&(a=arguments[0],r=void 0):(r=void 0,a=void 0));var f=r||en(),w=xu(f,this).startOf("day"),S=t.calendarFormat(this,w)||"sameElse",D=a&&(Q(a[S])?a[S].call(this,f):a[S]);return this.format(D||this.localeData().calendar(S,this,en(f)))}function bl(){return new T(this)}function Zg(r,a){var f=F(r)?r:en(r);return this.isValid()&&f.isValid()?(a=an(a)||"millisecond",a==="millisecond"?this.valueOf()>f.valueOf():f.valueOf()<this.clone().startOf(a).valueOf()):!1}function Hh(r,a){var f=F(r)?r:en(r);return this.isValid()&&f.isValid()?(a=an(a)||"millisecond",a==="millisecond"?this.valueOf()<f.valueOf():this.clone().endOf(a).valueOf()<f.valueOf()):!1}function zh(r,a,f,w){var S=F(r)?r:en(r),D=F(a)?a:en(a);return this.isValid()&&S.isValid()&&D.isValid()?(w=w||"()",(w[0]==="("?this.isAfter(S,f):!this.isBefore(S,f))&&(w[1]===")"?this.isBefore(D,f):!this.isAfter(D,f))):!1}function tn(r,a){var f=F(r)?r:en(r),w;return this.isValid()&&f.isValid()?(a=an(a)||"millisecond",a==="millisecond"?this.valueOf()===f.valueOf():(w=f.valueOf(),this.clone().startOf(a).valueOf()<=w&&w<=this.clone().endOf(a).valueOf())):!1}function Uh(r,a){return this.isSame(r,a)||this.isAfter(r,a)}function Vh(r,a){return this.isSame(r,a)||this.isBefore(r,a)}function Gh(r,a,f){var w,S,D;if(!this.isValid())return NaN;if(w=xu(r,this),!w.isValid())return NaN;switch(S=(w.utcOffset()-this.utcOffset())*6e4,a=an(a),a){case"year":D=Sl(this,w)/12;break;case"month":D=Sl(this,w);break;case"quarter":D=Sl(this,w)/3;break;case"second":D=(this-w)/1e3;break;case"minute":D=(this-w)/6e4;break;case"hour":D=(this-w)/36e5;break;case"day":D=(this-w-S)/864e5;break;case"week":D=(this-w-S)/6048e5;break;default:D=this-w}return f?D:pn(D)}function Sl(r,a){if(r.date()<a.date())return-Sl(a,r);var f=(a.year()-r.year())*12+(a.month()-r.month()),w=r.clone().add(f,"months"),S,D;return a-w<0?(S=r.clone().add(f-1,"months"),D=(a-w)/(w-S)):(S=r.clone().add(f+1,"months"),D=(a-w)/(S-w)),-(f+D)||0}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function $h(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Cl(r){if(!this.isValid())return null;var a=r!==!0,f=a?this.clone().utc():this;return f.year()<0||f.year()>9999?He(f,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Q(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",He(f,"Z")):He(f,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Wd(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",a="",f,w,S,D;return this.isLocal()||(r=this.utcOffset()===0?"moment.utc":"moment.parseZone",a="Z"),f="["+r+'("]',w=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",S="-MM-DD[T]HH:mm:ss.SSS",D=a+'[")]',this.format(f+w+S+D)}function wa(r){r||(r=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var a=He(this,r);return this.localeData().postformat(a)}function Kh(r,a){return this.isValid()&&(F(r)&&r.isValid()||en(r).isValid())?vs({to:this,from:r}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function Bd(r){return this.from(en(),r)}function Iu(r,a){return this.isValid()&&(F(r)&&r.isValid()||en(r).isValid())?vs({from:this,to:r}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function Tu(r){return this.to(en(),r)}function Au(r){var a;return r===void 0?this._locale._abbr:(a=Ar(r),a!=null&&(this._locale=a),this)}var Hd=W("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(r){return r===void 0?this.localeData():this.locale(r)});function Pu(){return this._locale}var zd=1e3,Qo=60*zd,xo=60*Qo,Ru=(365*400+97)*24*xo;function ei(r,a){return(r%a+a)%a}function qh(r,a,f){return r<100&&r>=0?new Date(r+400,a,f)-Ru:new Date(r,a,f).valueOf()}function kl(r,a,f){return r<100&&r>=0?Date.UTC(r+400,a,f)-Ru:Date.UTC(r,a,f)}function ti(r){var a,f;if(r=an(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(f=this._isUTC?kl:qh,r){case"year":a=f(this.year(),0,1);break;case"quarter":a=f(this.year(),this.month()-this.month()%3,1);break;case"month":a=f(this.year(),this.month(),1);break;case"week":a=f(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=f(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=f(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=ei(a+(this._isUTC?0:this.utcOffset()*Qo),xo);break;case"minute":a=this._d.valueOf(),a-=ei(a,Qo);break;case"second":a=this._d.valueOf(),a-=ei(a,zd);break}return this._d.setTime(a),t.updateOffset(this,!0),this}function Ud(r){var a,f;if(r=an(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(f=this._isUTC?kl:qh,r){case"year":a=f(this.year()+1,0,1)-1;break;case"quarter":a=f(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=f(this.year(),this.month()+1,1)-1;break;case"week":a=f(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=f(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=f(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=xo-ei(a+(this._isUTC?0:this.utcOffset()*Qo),xo)-1;break;case"minute":a=this._d.valueOf(),a+=Qo-ei(a,Qo)-1;break;case"second":a=this._d.valueOf(),a+=zd-ei(a,zd)-1;break}return this._d.setTime(a),t.updateOffset(this,!0),this}function va(){return this._d.valueOf()-(this._offset||0)*6e4}function Jh(){return Math.floor(this.valueOf()/1e3)}function Pi(){return new Date(this.valueOf())}function Ml(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function xa(){var r=this;return{years:r.year(),months:r.month(),date:r.date(),hours:r.hours(),minutes:r.minutes(),seconds:r.seconds(),milliseconds:r.milliseconds()}}function Vd(){return this.isValid()?this.toISOString():null}function Zh(){return L(this)}function Fu(){return y({},C(this))}function ba(){return C(this).overflow}function ni(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}te("N",0,0,"eraAbbr"),te("NN",0,0,"eraAbbr"),te("NNN",0,0,"eraAbbr"),te("NNNN",0,0,"eraName"),te("NNNNN",0,0,"eraNarrow"),te("y",["y",1],"yo","eraYear"),te("y",["yy",2],0,"eraYear"),te("y",["yyy",3],0,"eraYear"),te("y",["yyyy",4],0,"eraYear"),Ie("N",$d),Ie("NN",$d),Ie("NNN",$d),Ie("NNNN",Kd),Ie("NNNNN",Qh),_t(["N","NN","NNN","NNNN","NNNNN"],function(r,a,f,w){var S=f._locale.erasParse(r,w,f._strict);S?C(f).era=S:C(f).invalidEra=r}),Ie("y",or),Ie("yy",or),Ie("yyy",or),Ie("yyyy",or),Ie("yo",Nu),_t(["y","yy","yyy","yyyy"],ln),_t(["yo"],function(r,a,f,w){var S;f._locale._eraYearOrdinalRegex&&(S=r.match(f._locale._eraYearOrdinalRegex)),f._locale.eraYearOrdinalParse?a[ln]=f._locale.eraYearOrdinalParse(r,S):a[ln]=parseInt(r,10)});function nn(r,a){var f,w,S,D=this._eras||Ar("en")._eras;for(f=0,w=D.length;f<w;++f){switch(typeof D[f].since){case"string":S=t(D[f].since).startOf("day"),D[f].since=S.valueOf();break}switch(typeof D[f].until){case"undefined":D[f].until=1/0;break;case"string":S=t(D[f].until).startOf("day").valueOf(),D[f].until=S.valueOf();break}}return D}function dn(r,a,f){var w,S,D=this.eras(),O,q,ae;for(r=r.toUpperCase(),w=0,S=D.length;w<S;++w)if(O=D[w].name.toUpperCase(),q=D[w].abbr.toUpperCase(),ae=D[w].narrow.toUpperCase(),f)switch(a){case"N":case"NN":case"NNN":if(q===r)return D[w];break;case"NNNN":if(O===r)return D[w];break;case"NNNNN":if(ae===r)return D[w];break}else if([O,q,ae].indexOf(r)>=0)return D[w]}function ri(r,a){var f=r.since<=r.until?1:-1;return a===void 0?t(r.since).year():t(r.since).year()+(a-r.offset)*f}function zn(){var r,a,f,w=this.localeData().eras();for(r=0,a=w.length;r<a;++r)if(f=this.clone().startOf("day").valueOf(),w[r].since<=f&&f<=w[r].until||w[r].until<=f&&f<=w[r].since)return w[r].name;return""}function yr(){var r,a,f,w=this.localeData().eras();for(r=0,a=w.length;r<a;++r)if(f=this.clone().startOf("day").valueOf(),w[r].since<=f&&f<=w[r].until||w[r].until<=f&&f<=w[r].since)return w[r].narrow;return""}function Ri(){var r,a,f,w=this.localeData().eras();for(r=0,a=w.length;r<a;++r)if(f=this.clone().startOf("day").valueOf(),w[r].since<=f&&f<=w[r].until||w[r].until<=f&&f<=w[r].since)return w[r].abbr;return""}function Sa(){var r,a,f,w,S=this.localeData().eras();for(r=0,a=S.length;r<a;++r)if(f=S[r].since<=S[r].until?1:-1,w=this.clone().startOf("day").valueOf(),S[r].since<=w&&w<=S[r].until||S[r].until<=w&&w<=S[r].since)return(this.year()-t(S[r].since).year())*f+S[r].offset;return this.year()}function wr(r){return u(this,"_erasNameRegex")||bo.call(this),r?this._erasNameRegex:this._erasRegex}function Gd(r){return u(this,"_erasAbbrRegex")||bo.call(this),r?this._erasAbbrRegex:this._erasRegex}function Xh(r){return u(this,"_erasNarrowRegex")||bo.call(this),r?this._erasNarrowRegex:this._erasRegex}function $d(r,a){return a.erasAbbrRegex(r)}function Kd(r,a){return a.erasNameRegex(r)}function Qh(r,a){return a.erasNarrowRegex(r)}function Nu(r,a){return a._eraYearOrdinalRegex||or}function bo(){var r=[],a=[],f=[],w=[],S,D,O,q,ae,Se=this.eras();for(S=0,D=Se.length;S<D;++S)O=Er(Se[S].name),q=Er(Se[S].abbr),ae=Er(Se[S].narrow),a.push(O),r.push(q),f.push(ae),w.push(O),w.push(q),w.push(ae);this._erasRegex=new RegExp("^("+w.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+f.join("|")+")","i")}te(0,["gg",2],0,function(){return this.weekYear()%100}),te(0,["GG",2],0,function(){return this.isoWeekYear()%100});function qd(r,a){te(0,[r,r.length],0,a)}qd("gggg","weekYear"),qd("ggggg","weekYear"),qd("GGGG","isoWeekYear"),qd("GGGGG","isoWeekYear"),Ie("G",gs),Ie("g",gs),Ie("GG",Rt,Ft),Ie("gg",Rt,Ft),Ie("GGGG",gt,sr),Ie("gggg",gt,sr),Ie("GGGGG",Bt,Gs),Ie("ggggg",Bt,Gs),ys(["gggg","ggggg","GGGG","GGGGG"],function(r,a,f,w){a[w.substr(0,2)]=Qe(r)}),ys(["gg","GG"],function(r,a,f,w){a[w]=t.parseTwoDigitYear(r)});function Ou(r){return jl.call(this,r,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Yu(r){return jl.call(this,r,this.isoWeek(),this.isoWeekday(),1,4)}function Xg(){return vo(this.year(),1,4)}function em(){return vo(this.isoWeekYear(),1,4)}function Wu(){var r=this.localeData()._week;return vo(this.year(),r.dow,r.doy)}function Qg(){var r=this.localeData()._week;return vo(this.weekYear(),r.dow,r.doy)}function jl(r,a,f,w,S){var D;return r==null?ca(this,w,S).year:(D=vo(r,w,S),a>D&&(a=D),tm.call(this,r,a,f,w,S))}function tm(r,a,f,w,S){var D=pl(r,a,f,w,S),O=Zo(D.year,0,D.dayOfYear);return this.year(O.getUTCFullYear()),this.month(O.getUTCMonth()),this.date(O.getUTCDate()),this}te("Q",0,"Qo","quarter"),Ie("Q",rr),_t("Q",function(r,a){a[ir]=(Qe(r)-1)*3});function nm(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}te("D",["DD",2],"Do","date"),Ie("D",Rt,_s),Ie("DD",Rt,Ft),Ie("Do",function(r,a){return r?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient}),_t(["D","DD"],Dr),_t("Do",function(r,a){a[Dr]=Qe(r.match(Rt)[0])});var Bu=Js("Date",!0);te("DDD",["DDDD",3],"DDDo","dayOfYear"),Ie("DDD",Ae),Ie("DDDD",Vs),_t(["DDD","DDDD"],function(r,a,f){f._dayOfYear=Qe(r)});function rm(r){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?a:this.add(r-a,"d")}te("m",["mm",2],0,"minute"),Ie("m",Rt,ji),Ie("mm",Rt,Ft),_t(["m","mm"],ar);var Hu=Js("Minutes",!1);te("s",["ss",2],0,"second"),Ie("s",Rt,ji),Ie("ss",Rt,Ft),_t(["s","ss"],lr);var e_=Js("Seconds",!1);te("S",0,0,function(){return~~(this.millisecond()/100)}),te(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),te(0,["SSS",3],0,"millisecond"),te(0,["SSSS",4],0,function(){return this.millisecond()*10}),te(0,["SSSSS",5],0,function(){return this.millisecond()*100}),te(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),te(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),te(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),te(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ie("S",Ae,rr),Ie("SS",Ae,Ft),Ie("SSS",Ae,Vs);var Un,Ll;for(Un="SSSS";Un.length<=9;Un+="S")Ie(Un,or);function zu(r,a){a[ws]=Qe(("0."+r)*1e3)}for(Un="S";Un.length<=9;Un+="S")_t(Un,zu);Ll=Js("Milliseconds",!1),te("z",0,0,"zoneAbbr"),te("zz",0,0,"zoneName");function sm(){return this._isUTC?"UTC":""}function Vn(){return this._isUTC?"Coordinated Universal Time":""}var Ce=T.prototype;Ce.add=ju,Ce.calendar=Du,Ce.clone=bl,Ce.diff=Gh,Ce.endOf=Ud,Ce.format=wa,Ce.from=Kh,Ce.fromNow=Bd,Ce.to=Iu,Ce.toNow=Tu,Ce.get=il,Ce.invalidAt=ba,Ce.isAfter=Zg,Ce.isBefore=Hh,Ce.isBetween=zh,Ce.isSame=tn,Ce.isSameOrAfter=Uh,Ce.isSameOrBefore=Vh,Ce.isValid=Zh,Ce.lang=Hd,Ce.locale=Au,Ce.localeData=Pu,Ce.max=yu,Ce.min=zg,Ce.parsingFlags=Fu,Ce.set=kd,Ce.startOf=ti,Ce.subtract=Jg,Ce.toArray=Ml,Ce.toObject=xa,Ce.toDate=Pi,Ce.toISOString=Cl,Ce.inspect=Wd,typeof Symbol<"u"&&Symbol.for!=null&&(Ce[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ce.toJSON=Vd,Ce.toString=$h,Ce.unix=Jh,Ce.valueOf=va,Ce.creationData=ni,Ce.eraName=zn,Ce.eraNarrow=yr,Ce.eraAbbr=Ri,Ce.eraYear=Sa,Ce.year=ia,Ce.isLeapYear=aa,Ce.weekYear=Ou,Ce.isoWeekYear=Yu,Ce.quarter=Ce.quarters=nm,Ce.month=jt,Ce.daysInMonth=vn,Ce.week=Ce.weeks=iu,Ce.isoWeek=Ce.isoWeeks=gh,Ce.weeksInYear=Wu,Ce.weeksInWeekYear=Qg,Ce.isoWeeksInYear=Xg,Ce.isoWeeksInISOWeekYear=em,Ce.date=Bu,Ce.day=Ce.days=ml,Ce.weekday=vh,Ce.isoWeekday=Dd,Ce.dayOfYear=rm,Ce.hour=Ce.hours=jg,Ce.minute=Ce.minutes=Hu,Ce.second=Ce.seconds=e_,Ce.millisecond=Ce.milliseconds=Ll,Ce.utcOffset=Vg,Ce.utc=bu,Ce.local=Su,Ce.parseZone=Rh,Ce.hasAlignedHourOffset=Fh,Ce.isDST=Nh,Ce.isLocal=$g,Ce.isUtcOffset=Kg,Ce.isUtc=Oh,Ce.isUTC=Oh,Ce.zoneAbbr=sm,Ce.zoneName=Vn,Ce.dates=W("dates accessor is deprecated. Use date instead.",Bu),Ce.months=W("months accessor is deprecated. Use month instead",jt),Ce.years=W("years accessor is deprecated. Use year instead",ia),Ce.zone=W("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ph),Ce.isDSTShifted=W("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Gg);function om(r){return en(r*1e3)}function Fi(){return en.apply(null,arguments).parseZone()}function Ca(r){return r}var dt=X.prototype;dt.calendar=le,dt.longDateFormat=ht,dt.invalidDate=Me,dt.ordinal=Pt,dt.preparse=Ca,dt.postformat=Ca,dt.relativeTime=Wt,dt.pastFuture=Xt,dt.set=B,dt.eras=nn,dt.erasParse=dn,dt.erasConvertYear=ri,dt.erasAbbrRegex=Gd,dt.erasNameRegex=wr,dt.erasNarrowRegex=Xh,dt.months=Ir,dt.monthsShort=Zs,dt.monthsParse=lt,dt.monthsRegex=Ei,dt.monthsShortRegex=Tr,dt.week=hl,dt.firstDayOfYear=ua,dt.firstDayOfWeek=jd,dt.weekdays=bg,dt.weekdaysMin=pa,dt.weekdaysShort=qt,dt.weekdaysParse=Cg,dt.weekdaysRegex=ha,dt.weekdaysShortRegex=cu,dt.weekdaysMinRegex=Id,dt.isPM=Mg,dt.meridiem=Lg;function El(r,a,f,w){var S=Ar(),D=v().set(w,a);return S[f](D,r)}function im(r,a,f){if(_(r)&&(a=r,r=void 0),r=r||"",a!=null)return El(r,a,f,"month");var w,S=[];for(w=0;w<12;w++)S[w]=El(r,w,f,"month");return S}function Pr(r,a,f,w){typeof r=="boolean"?(_(a)&&(f=a,a=void 0),a=a||""):(a=r,f=a,r=!1,_(a)&&(f=a,a=void 0),a=a||"");var S=Ar(),D=r?S._week.dow:0,O,q=[];if(f!=null)return El(a,(f+D)%7,w,"day");for(O=0;O<7;O++)q[O]=El(a,(O+D)%7,w,"day");return q}function Jd(r,a){return im(r,a,"months")}function Zd(r,a){return im(r,a,"monthsShort")}function ka(r,a,f){return Pr(r,a,f,"weekdays")}function Xd(r,a,f){return Pr(r,a,f,"weekdaysShort")}function Uu(r,a,f){return Pr(r,a,f,"weekdaysMin")}xn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var a=r%10,f=Qe(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f}}),t.lang=W("moment.lang is deprecated. Use moment.locale instead.",xn),t.langData=W("moment.langData is deprecated. Use moment.localeData instead.",Ar);var bs=Math.abs;function am(){var r=this._data;return this._milliseconds=bs(this._milliseconds),this._days=bs(this._days),this._months=bs(this._months),r.milliseconds=bs(r.milliseconds),r.seconds=bs(r.seconds),r.minutes=bs(r.minutes),r.hours=bs(r.hours),r.months=bs(r.months),r.years=bs(r.years),this}function Ni(r,a,f,w){var S=vs(a,f);return r._milliseconds+=w*S._milliseconds,r._days+=w*S._days,r._months+=w*S._months,r._bubble()}function is(r,a){return Ni(this,r,a,1)}function si(r,a){return Ni(this,r,a,-1)}function Qd(r){return r<0?Math.floor(r):Math.ceil(r)}function lm(){var r=this._milliseconds,a=this._days,f=this._months,w=this._data,S,D,O,q,ae;return r>=0&&a>=0&&f>=0||r<=0&&a<=0&&f<=0||(r+=Qd(eo(f)+a)*864e5,a=0,f=0),w.milliseconds=r%1e3,S=pn(r/1e3),w.seconds=S%60,D=pn(S/60),w.minutes=D%60,O=pn(D/60),w.hours=O%24,a+=pn(O/24),ae=pn(So(a)),f+=ae,a-=Qd(eo(ae)),q=pn(f/12),f%=12,w.days=a,w.months=f,w.years=q,this}function So(r){return r*4800/146097}function eo(r){return r*146097/4800}function dm(r){if(!this.isValid())return NaN;var a,f,w=this._milliseconds;if(r=an(r),r==="month"||r==="quarter"||r==="year")switch(a=this._days+w/864e5,f=this._months+So(a),r){case"month":return f;case"quarter":return f/3;case"year":return f/12}else switch(a=this._days+Math.round(eo(this._months)),r){case"week":return a/7+w/6048e5;case"day":return a+w/864e5;case"hour":return a*24+w/36e5;case"minute":return a*1440+w/6e4;case"second":return a*86400+w/1e3;case"millisecond":return Math.floor(a*864e5)+w;default:throw new Error("Unknown unit "+r)}}function Rr(r){return function(){return this.as(r)}}var Vu=Rr("ms"),cm=Rr("s"),ec=Rr("m"),tc=Rr("h"),um=Rr("d"),pm=Rr("w"),hm=Rr("M"),Gu=Rr("Q"),nc=Rr("y"),Dl=Vu;function rc(){return vs(this)}function mm(r){return r=an(r),this.isValid()?this[r+"s"]():NaN}function to(r){return function(){return this.isValid()?this._data[r]:NaN}}var fm=to("milliseconds"),Il=to("seconds"),no=to("minutes"),Tl=to("hours"),Al=to("days"),Oi=to("months"),$u=to("years");function Ma(){return pn(this.days()/7)}var ro=Math.round,oi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function cn(r,a,f,w,S){return S.relativeTime(a||1,!!f,r,w)}function sc(r,a,f,w){var S=vs(r).abs(),D=ro(S.as("s")),O=ro(S.as("m")),q=ro(S.as("h")),ae=ro(S.as("d")),Se=ro(S.as("M")),ze=ro(S.as("w")),xe=ro(S.as("y")),Pe=D<=f.ss&&["s",D]||D<f.s&&["ss",D]||O<=1&&["m"]||O<f.m&&["mm",O]||q<=1&&["h"]||q<f.h&&["hh",q]||ae<=1&&["d"]||ae<f.d&&["dd",ae];return f.w!=null&&(Pe=Pe||ze<=1&&["w"]||ze<f.w&&["ww",ze]),Pe=Pe||Se<=1&&["M"]||Se<f.M&&["MM",Se]||xe<=1&&["y"]||["yy",xe],Pe[2]=a,Pe[3]=+r>0,Pe[4]=w,cn.apply(null,Pe)}function Co(r){return r===void 0?ro:typeof r=="function"?(ro=r,!0):!1}function ii(r,a){return oi[r]===void 0?!1:a===void 0?oi[r]:(oi[r]=a,r==="s"&&(oi.ss=a-1),!0)}function so(r,a){if(!this.isValid())return this.localeData().invalidDate();var f=!1,w=oi,S,D;return typeof r=="object"&&(a=r,r=!1),typeof r=="boolean"&&(f=r),typeof a=="object"&&(w=Object.assign({},oi,a),a.s!=null&&a.ss==null&&(w.ss=a.s-1)),S=this.localeData(),D=sc(this,!f,w,S),f&&(D=S.pastFuture(+this,D)),S.postformat(D)}var oc=Math.abs;function Yi(r){return(r>0)-(r<0)||+r}function ja(){if(!this.isValid())return this.localeData().invalidDate();var r=oc(this._milliseconds)/1e3,a=oc(this._days),f=oc(this._months),w,S,D,O,q=this.asSeconds(),ae,Se,ze,xe;return q?(w=pn(r/60),S=pn(w/60),r%=60,w%=60,D=pn(f/12),f%=12,O=r?r.toFixed(3).replace(/\.?0+$/,""):"",ae=q<0?"-":"",Se=Yi(this._months)!==Yi(q)?"-":"",ze=Yi(this._days)!==Yi(q)?"-":"",xe=Yi(this._milliseconds)!==Yi(q)?"-":"",ae+"P"+(D?Se+D+"Y":"")+(f?Se+f+"M":"")+(a?ze+a+"D":"")+(S||w||r?"T":"")+(S?xe+S+"H":"")+(w?xe+w+"M":"")+(r?xe+O+"S":"")):"P0D"}var yt=Od.prototype;yt.isValid=Th,yt.abs=am,yt.add=is,yt.subtract=si,yt.as=dm,yt.asMilliseconds=Vu,yt.asSeconds=cm,yt.asMinutes=ec,yt.asHours=tc,yt.asDays=um,yt.asWeeks=pm,yt.asMonths=hm,yt.asQuarters=Gu,yt.asYears=nc,yt.valueOf=Dl,yt._bubble=lm,yt.clone=rc,yt.get=mm,yt.milliseconds=fm,yt.seconds=Il,yt.minutes=no,yt.hours=Tl,yt.days=Al,yt.weeks=Ma,yt.months=Oi,yt.years=$u,yt.humanize=so,yt.toISOString=ja,yt.toString=ja,yt.toJSON=ja,yt.locale=Au,yt.localeData=Pu,yt.toIsoString=W("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ja),yt.lang=Hd,te("X",0,0,"unix"),te("x",0,0,"valueOf"),Ie("x",gs),Ie("X",ol),_t("X",function(r,a,f){f._d=new Date(parseFloat(r)*1e3)}),_t("x",function(r,a,f){f._d=new Date(Qe(r))});//! moment.js
t.version="2.30.1",i(en),t.fn=Ce,t.min=Ug,t.max=Eh,t.now=Dh,t.utc=v,t.unix=om,t.months=Jd,t.isDate=m,t.locale=xn,t.invalid=I,t.duration=vs,t.isMoment=F,t.weekdays=ka,t.parseZone=Fi,t.localeData=Ar,t.isDuration=Yd,t.monthsShort=Zd,t.weekdaysMin=Uu,t.defineLocale=Xo,t.updateLocale=hu,t.locales=Eg,t.weekdaysShort=Xd,t.normalizeUnits=an,t.relativeTimeRounding=Co,t.relativeTimeThreshold=ii,t.calendarFormat=Bh,t.prototype=Ce,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};//! moment.js locale configuration
t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(r){return/^nm$/i.test(r)},meridiem:function(r,a,f){return r<12?f?"vm":"VM":f?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(r){return r+(r===1||r===8||r>=20?"ste":"de")},week:{dow:1,doy:4}});//! moment.js locale configuration
var Pl=function(r){return r===0?0:r===1?1:r===2?2:r%100>=3&&r%100<=10?3:r%100>=11?4:5},Ku={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},Tn=function(r){return function(a,f,w,S){var D=Pl(a),O=Ku[r][Pl(a)];return D===2&&(O=O[f?0:1]),O.replace(/%d/i,a)}},ic=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar-dz",{months:ic,monthsShort:ic,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(r){return r==="م"},meridiem:function(r,a,f){return r<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:Tn("s"),ss:Tn("s"),m:Tn("m"),mm:Tn("m"),h:Tn("h"),hh:Tn("h"),d:Tn("d"),dd:Tn("d"),M:Tn("M"),MM:Tn("M"),y:Tn("y"),yy:Tn("y")},postformat:function(r){return r.replace(/,/g,"،")},week:{dow:0,doy:4}});//! moment.js locale configuration
t.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});//! moment.js locale configuration
var Rl={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},Fr=function(r){return r===0?0:r===1?1:r===2?2:r%100>=3&&r%100<=10?3:r%100>=11?4:5},Fl={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},Dt=function(r){return function(a,f,w,S){var D=Fr(a),O=Fl[r][Fr(a)];return D===2&&(O=O[f?0:1]),O.replace(/%d/i,a)}},An=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar-ly",{months:An,monthsShort:An,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(r){return r==="م"},meridiem:function(r,a,f){return r<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:Dt("s"),ss:Dt("s"),m:Dt("m"),mm:Dt("m"),h:Dt("h"),hh:Dt("h"),d:Dt("d"),dd:Dt("d"),M:Dt("M"),MM:Dt("M"),y:Dt("y"),yy:Dt("y")},preparse:function(r){return r.replace(/،/g,",")},postformat:function(r){return r.replace(/\d/g,function(a){return Rl[a]}).replace(/,/g,"،")},week:{dow:6,doy:12}});//! moment.js locale configuration
t.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});//! moment.js locale configuration
var Pn={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Nl={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};t.defineLocale("ar-ps",{months:"كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل".split("_"),monthsShort:"ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(r){return r==="م"},meridiem:function(r,a,f){return r<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(r){return r.replace(/[٣٤٥٦٧٨٩٠]/g,function(a){return Nl[a]}).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,function(a){return Nl[a]}).split("").reverse().join("").replace(/،/g,",")},postformat:function(r){return r.replace(/\d/g,function(a){return Pn[a]}).replace(/,/g,"،")},week:{dow:0,doy:6}});//! moment.js locale configuration
var Ol={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},vr={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};t.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(r){return r==="م"},meridiem:function(r,a,f){return r<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(r){return r.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(a){return vr[a]}).replace(/،/g,",")},postformat:function(r){return r.replace(/\d/g,function(a){return Ol[a]}).replace(/,/g,"،")},week:{dow:0,doy:6}});//! moment.js locale configuration
t.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});//! moment.js locale configuration
var qu={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ju={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},ai=function(r){return r===0?0:r===1?1:r===2?2:r%100>=3&&r%100<=10?3:r%100>=11?4:5},Wi={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},hn=function(r){return function(a,f,w,S){var D=ai(a),O=Wi[r][ai(a)];return D===2&&(O=O[f?0:1]),O.replace(/%d/i,a)}},La=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar",{months:La,monthsShort:La,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(r){return r==="م"},meridiem:function(r,a,f){return r<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:hn("s"),ss:hn("s"),m:hn("m"),mm:hn("m"),h:hn("h"),hh:hn("h"),d:hn("d"),dd:hn("d"),M:hn("M"),MM:hn("M"),y:hn("y"),yy:hn("y")},preparse:function(r){return r.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(a){return Ju[a]}).replace(/،/g,",")},postformat:function(r){return r.replace(/\d/g,function(a){return qu[a]}).replace(/,/g,"،")},week:{dow:6,doy:12}});//! moment.js locale configuration
var Bi={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(r){return/^(gündüz|axşam)$/.test(r)},meridiem:function(r,a,f){return r<4?"gecə":r<12?"səhər":r<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(r){if(r===0)return r+"-ıncı";var a=r%10,f=r%100-a,w=r>=100?100:null;return r+(Bi[a]||Bi[f]||Bi[w])},week:{dow:1,doy:7}});//! moment.js locale configuration
function gm(r,a){var f=r.split("_");return a%10===1&&a%100!==11?f[0]:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?f[1]:f[2]}function li(r,a,f){var w={ss:a?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:a?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:a?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return f==="m"?a?"хвіліна":"хвіліну":f==="h"?a?"гадзіна":"гадзіну":r+" "+gm(w[f],+r)}t.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:li,mm:li,h:li,hh:li,d:"дзень",dd:li,M:"месяц",MM:li,y:"год",yy:li},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(r){return/^(дня|вечара)$/.test(r)},meridiem:function(r,a,f){return r<4?"ночы":r<12?"раніцы":r<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(r,a){switch(a){case"M":case"d":case"DDD":case"w":case"W":return(r%10===2||r%10===3)&&r%100!==12&&r%100!==13?r+"-і":r+"-ы";case"D":return r+"-га";default:return r}},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(r){var a=r%10,f=r%100;return r===0?r+"-ев":f===0?r+"-ен":f>10&&f<20?r+"-ти":a===1?r+"-ви":a===2?r+"-ри":a===7||a===8?r+"-ми":r+"-ти"},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});//! moment.js locale configuration
var _m={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},Yl={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};t.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(r){return r.replace(/[১২৩৪৫৬৭৮৯০]/g,function(a){return Yl[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return _m[a]})},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="রাত")return r<4?r:r+12;if(a==="ভোর")return r;if(a==="সকাল")return r;if(a==="দুপুর")return r>=3?r:r+12;if(a==="বিকাল")return r+12;if(a==="সন্ধ্যা")return r+12},meridiem:function(r,a,f){return r<4?"রাত":r<6?"ভোর":r<12?"সকাল":r<15?"দুপুর":r<18?"বিকাল":r<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}});//! moment.js locale configuration
var ac={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},ym={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};t.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(r){return r.replace(/[১২৩৪৫৬৭৮৯০]/g,function(a){return ym[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return ac[a]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(r,a){return r===12&&(r=0),a==="রাত"&&r>=4||a==="দুপুর"&&r<5||a==="বিকাল"?r+12:r},meridiem:function(r,a,f){return r<4?"রাত":r<10?"সকাল":r<17?"দুপুর":r<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});//! moment.js locale configuration
var lc={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},Zu={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};t.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(r){return r.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(a){return Zu[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return lc[a]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(r,a){return r===12&&(r=0),a==="མཚན་མོ"&&r>=4||a==="ཉིན་གུང"&&r<5||a==="དགོང་དག"?r+12:r},meridiem:function(r,a,f){return r<4?"མཚན་མོ":r<10?"ཞོགས་ཀས":r<17?"ཉིན་གུང":r<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}});//! moment.js locale configuration
function Wl(r,a,f){var w={mm:"munutenn",MM:"miz",dd:"devezh"};return r+" "+vm(w[f],r)}function wm(r){switch(Bl(r)){case 1:case 3:case 4:case 5:case 9:return r+" bloaz";default:return r+" vloaz"}}function Bl(r){return r>9?Bl(r%10):r}function vm(r,a){return a===2?xm(r):r}function xm(r){var a={m:"v",b:"v",d:"z"};return a[r.charAt(0)]===void 0?r:a[r.charAt(0)]+r.substring(1)}var dc=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],cc=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,bm=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,Sm=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,t_=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],Xu=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],Hl=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];t.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:Hl,fullWeekdaysParse:t_,shortWeekdaysParse:Xu,minWeekdaysParse:Hl,monthsRegex:cc,monthsShortRegex:cc,monthsStrictRegex:bm,monthsShortStrictRegex:Sm,monthsParse:dc,longMonthsParse:dc,shortMonthsParse:dc,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:Wl,h:"un eur",hh:"%d eur",d:"un devezh",dd:Wl,M:"ur miz",MM:Wl,y:"ur bloaz",yy:wm},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(r){var a=r===1?"añ":"vet";return r+a},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(r){return r==="g.m."},meridiem:function(r,a,f){return r<12?"a.m.":"g.m."}});//! moment.js locale configuration
function n_(r,a,f,w){switch(f){case"m":return a?"jedna minuta":w?"jednu minutu":"jedne minute"}}function Hi(r,a,f){var w=r+" ";switch(f){case"ss":return r===1?w+="sekunda":r===2||r===3||r===4?w+="sekunde":w+="sekundi",w;case"mm":return r===1?w+="minuta":r===2||r===3||r===4?w+="minute":w+="minuta",w;case"h":return"jedan sat";case"hh":return r===1?w+="sat":r===2||r===3||r===4?w+="sata":w+="sati",w;case"dd":return r===1?w+="dan":w+="dana",w;case"MM":return r===1?w+="mjesec":r===2||r===3||r===4?w+="mjeseca":w+="mjeseci",w;case"yy":return r===1?w+="godina":r===2||r===3||r===4?w+="godine":w+="godina",w}}t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:Hi,m:n_,mm:Hi,h:Hi,hh:Hi,d:"dan",dd:Hi,M:"mjesec",MM:Hi,y:"godinu",yy:Hi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(this.hours()!==1?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(this.hours()!==1?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(this.hours()!==1?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(this.hours()!==1?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(this.hours()!==1?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(r,a){var f=r===1?"r":r===2?"n":r===3?"r":r===4?"t":"è";return(a==="w"||a==="W")&&(f="a"),r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
var r_={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},s_="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),Nr=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],dr=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function zi(r){return r>1&&r<5&&~~(r/10)!==1}function Or(r,a,f,w){var S=r+" ";switch(f){case"s":return a||w?"pár sekund":"pár sekundami";case"ss":return a||w?S+(zi(r)?"sekundy":"sekund"):S+"sekundami";case"m":return a?"minuta":w?"minutu":"minutou";case"mm":return a||w?S+(zi(r)?"minuty":"minut"):S+"minutami";case"h":return a?"hodina":w?"hodinu":"hodinou";case"hh":return a||w?S+(zi(r)?"hodiny":"hodin"):S+"hodinami";case"d":return a||w?"den":"dnem";case"dd":return a||w?S+(zi(r)?"dny":"dní"):S+"dny";case"M":return a||w?"měsíc":"měsícem";case"MM":return a||w?S+(zi(r)?"měsíce":"měsíců"):S+"měsíci";case"y":return a||w?"rok":"rokem";case"yy":return a||w?S+(zi(r)?"roky":"let"):S+"lety"}}t.defineLocale("cs",{months:r_,monthsShort:s_,monthsRegex:dr,monthsShortRegex:dr,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:Nr,longMonthsParse:Nr,shortMonthsParse:Nr,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:Or,ss:Or,m:Or,mm:Or,h:Or,hh:Or,d:Or,dd:Or,M:Or,MM:Or,y:Or,yy:Or},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(r){var a=/сехет$/i.exec(r)?"рен":/ҫул$/i.exec(r)?"тан":"ран";return r+a},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(r){var a=r,f="",w=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return a>20?a===40||a===50||a===60||a===80||a===100?f="fed":f="ain":a>0&&(f=w[a]),r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
function oo(r,a,f,w){var S={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[r+" Tage",r+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[r+" Monate",r+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[r+" Jahre",r+" Jahren"]};return a?S[f][0]:S[f][1]}t.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:oo,mm:"%d Minuten",h:oo,hh:"%d Stunden",d:oo,dd:oo,w:oo,ww:"%d Wochen",M:oo,MM:oo,y:oo,yy:oo},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
function Ss(r,a,f,w){var S={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[r+" Tage",r+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[r+" Monate",r+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[r+" Jahre",r+" Jahren"]};return a?S[f][0]:S[f][1]}t.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:Ss,mm:"%d Minuten",h:Ss,hh:"%d Stunden",d:Ss,dd:Ss,w:Ss,ww:"%d Wochen",M:Ss,MM:Ss,y:Ss,yy:Ss},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
function io(r,a,f,w){var S={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[r+" Tage",r+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[r+" Monate",r+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[r+" Jahre",r+" Jahren"]};return a?S[f][0]:S[f][1]}t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:io,mm:"%d Minuten",h:io,hh:"%d Stunden",d:io,dd:io,w:io,ww:"%d Wochen",M:io,MM:io,y:io,yy:io},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
var uc=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],Qu=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];t.defineLocale("dv",{months:uc,monthsShort:uc,weekdays:Qu,weekdaysShort:Qu,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(r){return r==="މފ"},meridiem:function(r,a,f){return r<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(r){return r.replace(/،/g,",")},postformat:function(r){return r.replace(/,/g,"،")},week:{dow:7,doy:12}});//! moment.js locale configuration
function ep(r){return typeof Function<"u"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}t.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(r,a){return r?typeof a=="string"&&/D/.test(a.substring(0,a.indexOf("MMMM")))?this._monthsGenitiveEl[r.month()]:this._monthsNominativeEl[r.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(r,a,f){return r>11?f?"μμ":"ΜΜ":f?"πμ":"ΠΜ"},isPM:function(r){return(r+"").toLowerCase()[0]==="μ"},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(r,a){var f=this._calendarEl[r],w=a&&a.hours();return ep(f)&&(f=f.apply(a)),f.replace("{}",w%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f},week:{dow:0,doy:4}});//! moment.js locale configuration
t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f}});//! moment.js locale configuration
t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f}});//! moment.js locale configuration
t.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f},week:{dow:0,doy:6}});//! moment.js locale configuration
t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(r){return r.charAt(0).toLowerCase()==="p"},meridiem:function(r,a,f){return r>11?f?"p.t.m.":"P.T.M.":f?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});//! moment.js locale configuration
var tp="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),pc="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),hc=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],np=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(r,a){return r?/-MMM-/.test(a)?pc[r.month()]:tp[r.month()]:tp},monthsRegex:np,monthsShortRegex:np,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:hc,longMonthsParse:hc,shortMonthsParse:hc,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});//! moment.js locale configuration
var rp="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Cm="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),mc=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],fc=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(r,a){return r?/-MMM-/.test(a)?Cm[r.month()]:rp[r.month()]:rp},monthsRegex:fc,monthsShortRegex:fc,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:mc,longMonthsParse:mc,shortMonthsParse:mc,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"});//! moment.js locale configuration
var sp="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),ko="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),gc=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],_c=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(r,a){return r?/-MMM-/.test(a)?ko[r.month()]:sp[r.month()]:sp},monthsRegex:_c,monthsShortRegex:_c,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:gc,longMonthsParse:gc,shortMonthsParse:gc,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});//! moment.js locale configuration
var op="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),km="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Ui=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Mm=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(r,a){return r?/-MMM-/.test(a)?km[r.month()]:op[r.month()]:op},monthsRegex:Mm,monthsShortRegex:Mm,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Ui,longMonthsParse:Ui,shortMonthsParse:Ui,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"});//! moment.js locale configuration
function Cs(r,a,f,w){var S={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[r+"sekundi",r+"sekundit"],m:["ühe minuti","üks minut"],mm:[r+" minuti",r+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[r+" tunni",r+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[r+" kuu",r+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[r+" aasta",r+" aastat"]};return a?S[f][2]?S[f][2]:S[f][1]:w?S[f][0]:S[f][1]}t.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:Cs,ss:Cs,m:Cs,mm:Cs,h:Cs,hh:Cs,d:Cs,dd:"%d päeva",M:Cs,MM:Cs,y:Cs,yy:Cs},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});//! moment.js locale configuration
var ip={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},ap={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};t.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(r){return/بعد از ظهر/.test(r)},meridiem:function(r,a,f){return r<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(r){return r.replace(/[۰-۹]/g,function(a){return ap[a]}).replace(/،/g,",")},postformat:function(r){return r.replace(/\d/g,function(a){return ip[a]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}});//! moment.js locale configuration
var yc="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),jm=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",yc[7],yc[8],yc[9]];function Yr(r,a,f,w){var S="";switch(f){case"s":return w?"muutaman sekunnin":"muutama sekunti";case"ss":S=w?"sekunnin":"sekuntia";break;case"m":return w?"minuutin":"minuutti";case"mm":S=w?"minuutin":"minuuttia";break;case"h":return w?"tunnin":"tunti";case"hh":S=w?"tunnin":"tuntia";break;case"d":return w?"päivän":"päivä";case"dd":S=w?"päivän":"päivää";break;case"M":return w?"kuukauden":"kuukausi";case"MM":S=w?"kuukauden":"kuukautta";break;case"y":return w?"vuoden":"vuosi";case"yy":S=w?"vuoden":"vuotta";break}return S=o_(r,w)+" "+S,S}function o_(r,a){return r<10?a?jm[r]:yc[r]:r}t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:Yr,ss:Yr,m:Yr,mm:Yr,h:Yr,hh:Yr,d:Yr,dd:Yr,M:Yr,MM:Yr,y:Yr,yy:Yr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(r){return r},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(r,a){switch(a){default:case"M":case"Q":case"D":case"DDD":case"d":return r+(r===1?"er":"e");case"w":case"W":return r+(r===1?"re":"e")}}});//! moment.js locale configuration
t.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(r,a){switch(a){default:case"M":case"Q":case"D":case"DDD":case"d":return r+(r===1?"er":"e");case"w":case"W":return r+(r===1?"re":"e")}},week:{dow:1,doy:4}});//! moment.js locale configuration
var Lm=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,i_=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Em=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,wc=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:Em,monthsShortRegex:Em,monthsStrictRegex:Lm,monthsShortStrictRegex:i_,monthsParse:wc,longMonthsParse:wc,shortMonthsParse:wc,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(r,a){switch(a){case"D":return r+(r===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return r+(r===1?"er":"e");case"w":case"W":return r+(r===1?"re":"e")}},week:{dow:1,doy:4}});//! moment.js locale configuration
var lp="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),Dm="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(r,a){return r?/-MMM-/.test(a)?Dm[r.month()]:lp[r.month()]:lp},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(r){return r+(r===1||r===8||r>=20?"ste":"de")},week:{dow:1,doy:4}});//! moment.js locale configuration
var Im=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],Tm=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],dp=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],cp=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],Am=["Do","Lu","Má","Cé","Dé","A","Sa"];t.defineLocale("ga",{months:Im,monthsShort:Tm,monthsParseExact:!0,weekdays:dp,weekdaysShort:cp,weekdaysMin:Am,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(r){var a=r===1?"d":r%10===2?"na":"mh";return r+a},week:{dow:1,doy:4}});//! moment.js locale configuration
var up=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],Pm=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],a_=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],l_=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],vc=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];t.defineLocale("gd",{months:up,monthsShort:Pm,monthsParseExact:!0,weekdays:a_,weekdaysShort:l_,weekdaysMin:vc,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(r){var a=r===1?"d":r%10===2?"na":"mh";return r+a},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(this.hours()!==1?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(this.hours()!==1?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(this.hours()!==1?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(this.hours()!==1?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(this.hours()!==1?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(r){return r.indexOf("un")===0?"n"+r:"en "+r},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});//! moment.js locale configuration
function xr(r,a,f,w){var S={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[r+" सॅकंडांनी",r+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[r+" मिणटांनी",r+" मिणटां"],h:["एका वरान","एक वर"],hh:[r+" वरांनी",r+" वरां"],d:["एका दिसान","एक दीस"],dd:[r+" दिसांनी",r+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[r+" म्हयन्यानी",r+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[r+" वर्सांनी",r+" वर्सां"]};return w?S[f][0]:S[f][1]}t.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:xr,ss:xr,m:xr,mm:xr,h:xr,hh:xr,d:xr,dd:xr,M:xr,MM:xr,y:xr,yy:xr},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(r,a){switch(a){case"D":return r+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return r}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="राती")return r<4?r:r+12;if(a==="सकाळीं")return r;if(a==="दनपारां")return r>12?r:r+12;if(a==="सांजे")return r+12},meridiem:function(r,a,f){return r<4?"राती":r<12?"सकाळीं":r<16?"दनपारां":r<20?"सांजे":"राती"}});//! moment.js locale configuration
function Ve(r,a,f,w){var S={s:["thoddea sekondamni","thodde sekond"],ss:[r+" sekondamni",r+" sekond"],m:["eka mintan","ek minut"],mm:[r+" mintamni",r+" mintam"],h:["eka voran","ek vor"],hh:[r+" voramni",r+" voram"],d:["eka disan","ek dis"],dd:[r+" disamni",r+" dis"],M:["eka mhoinean","ek mhoino"],MM:[r+" mhoineamni",r+" mhoine"],y:["eka vorsan","ek voros"],yy:[r+" vorsamni",r+" vorsam"]};return w?S[f][0]:S[f][1]}t.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:Ve,ss:Ve,m:Ve,mm:Ve,h:Ve,hh:Ve,d:Ve,dd:Ve,M:Ve,MM:Ve,y:Ve,yy:Ve},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(r,a){switch(a){case"D":return r+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return r}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="rati")return r<4?r:r+12;if(a==="sokallim")return r;if(a==="donparam")return r>12?r:r+12;if(a==="sanje")return r+12},meridiem:function(r,a,f){return r<4?"rati":r<12?"sokallim":r<16?"donparam":r<20?"sanje":"rati"}});//! moment.js locale configuration
var cr={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},Sn={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};t.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(r){return r.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,function(a){return Sn[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return cr[a]})},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="રાત")return r<4?r:r+12;if(a==="સવાર")return r;if(a==="બપોર")return r>=10?r:r+12;if(a==="સાંજ")return r+12},meridiem:function(r,a,f){return r<4?"રાત":r<10?"સવાર":r<17?"બપોર":r<20?"સાંજ":"રાત"},week:{dow:0,doy:6}});//! moment.js locale configuration
t.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(r){return r===2?"שעתיים":r+" שעות"},d:"יום",dd:function(r){return r===2?"יומיים":r+" ימים"},M:"חודש",MM:function(r){return r===2?"חודשיים":r+" חודשים"},y:"שנה",yy:function(r){return r===2?"שנתיים":r%10===0&&r!==10?r+" שנה":r+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(r){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(r)},meridiem:function(r,a,f){return r<5?"לפנות בוקר":r<10?"בבוקר":r<12?f?'לפנה"צ':"לפני הצהריים":r<18?f?'אחה"צ':"אחרי הצהריים":"בערב"}});//! moment.js locale configuration
var Gn={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Vi={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},xc=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],Rn=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i];t.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:xc,longMonthsParse:xc,shortMonthsParse:Rn,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(r){return r.replace(/[१२३४५६७८९०]/g,function(a){return Vi[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return Gn[a]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="रात")return r<4?r:r+12;if(a==="सुबह")return r;if(a==="दोपहर")return r>=10?r:r+12;if(a==="शाम")return r+12},meridiem:function(r,a,f){return r<4?"रात":r<10?"सुबह":r<17?"दोपहर":r<20?"शाम":"रात"},week:{dow:0,doy:6}});//! moment.js locale configuration
function ks(r,a,f){var w=r+" ";switch(f){case"ss":return r===1?w+="sekunda":r===2||r===3||r===4?w+="sekunde":w+="sekundi",w;case"m":return a?"jedna minuta":"jedne minute";case"mm":return r===1?w+="minuta":r===2||r===3||r===4?w+="minute":w+="minuta",w;case"h":return a?"jedan sat":"jednog sata";case"hh":return r===1?w+="sat":r===2||r===3||r===4?w+="sata":w+="sati",w;case"dd":return r===1?w+="dan":w+="dana",w;case"MM":return r===1?w+="mjesec":r===2||r===3||r===4?w+="mjeseca":w+="mjeseci",w;case"yy":return r===1?w+="godina":r===2||r===3||r===4?w+="godine":w+="godina",w}}t.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:ks,m:ks,mm:ks,h:ks,hh:ks,d:"dan",dd:ks,M:"mjesec",MM:ks,y:"godinu",yy:ks},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});//! moment.js locale configuration
var Ea="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function $n(r,a,f,w){var S=r;switch(f){case"s":return w||a?"néhány másodperc":"néhány másodperce";case"ss":return S+(w||a)?" másodperc":" másodperce";case"m":return"egy"+(w||a?" perc":" perce");case"mm":return S+(w||a?" perc":" perce");case"h":return"egy"+(w||a?" óra":" órája");case"hh":return S+(w||a?" óra":" órája");case"d":return"egy"+(w||a?" nap":" napja");case"dd":return S+(w||a?" nap":" napja");case"M":return"egy"+(w||a?" hónap":" hónapja");case"MM":return S+(w||a?" hónap":" hónapja");case"y":return"egy"+(w||a?" év":" éve");case"yy":return S+(w||a?" év":" éve")}return""}function Gi(r){return(r?"":"[múlt] ")+"["+Ea[this.day()]+"] LT[-kor]"}t.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(r){return r.charAt(1).toLowerCase()==="u"},meridiem:function(r,a,f){return r<12?f===!0?"de":"DE":f===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return Gi.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return Gi.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:$n,ss:$n,m:$n,mm:$n,h:$n,hh:$n,d:$n,dd:$n,M:$n,MM:$n,y:$n,yy:$n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(r){return/^(ցերեկվա|երեկոյան)$/.test(r)},meridiem:function(r){return r<4?"գիշերվա":r<12?"առավոտվա":r<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(r,a){switch(a){case"DDD":case"w":case"W":case"DDDo":return r===1?r+"-ին":r+"-րդ";default:return r}},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="pagi")return r;if(a==="siang")return r>=11?r:r+12;if(a==="sore"||a==="malam")return r+12},meridiem:function(r,a,f){return r<11?"pagi":r<15?"siang":r<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}});//! moment.js locale configuration
function di(r){return r%100===11?!0:r%10!==1}function Wr(r,a,f,w){var S=r+" ";switch(f){case"s":return a||w?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return di(r)?S+(a||w?"sekúndur":"sekúndum"):S+"sekúnda";case"m":return a?"mínúta":"mínútu";case"mm":return di(r)?S+(a||w?"mínútur":"mínútum"):a?S+"mínúta":S+"mínútu";case"hh":return di(r)?S+(a||w?"klukkustundir":"klukkustundum"):S+"klukkustund";case"d":return a?"dagur":w?"dag":"degi";case"dd":return di(r)?a?S+"dagar":S+(w?"daga":"dögum"):a?S+"dagur":S+(w?"dag":"degi");case"M":return a?"mánuður":w?"mánuð":"mánuði";case"MM":return di(r)?a?S+"mánuðir":S+(w?"mánuði":"mánuðum"):a?S+"mánuður":S+(w?"mánuð":"mánuði");case"y":return a||w?"ár":"ári";case"yy":return di(r)?S+(a||w?"ár":"árum"):S+(a||w?"ár":"ári")}}t.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:Wr,ss:Wr,m:Wr,mm:Wr,h:"klukkustund",hh:Wr,d:Wr,dd:Wr,M:Wr,MM:Wr,y:Wr,yy:Wr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(r){return(/^[0-9].+$/.test(r)?"tra":"in")+" "+r},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(r,a){return a[1]==="元"?1:parseInt(a[1]||r,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(r){return r==="午後"},meridiem:function(r,a,f){return r<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(r){return r.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(r){return this.week()!==r.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(r,a){switch(a){case"y":return r===1?"元年":r+"年";case"d":case"D":case"DDD":return r+"日";default:return r}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});//! moment.js locale configuration
t.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="enjing")return r;if(a==="siyang")return r>=11?r:r+12;if(a==="sonten"||a==="ndalu")return r+12},meridiem:function(r,a,f){return r<11?"enjing":r<15?"siyang":r<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(r){return r.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,function(a,f,w){return w==="ი"?f+"ში":f+w+"ში"})},past:function(r){return/(წამი|წუთი|საათი|დღე|თვე)/.test(r)?r.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(r)?r.replace(/წელი$/,"წლის წინ"):r},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(r){return r===0?r:r===1?r+"-ლი":r<20||r<=100&&r%20===0||r%100===0?"მე-"+r:r+"-ე"},week:{dow:1,doy:7}});//! moment.js locale configuration
var zl={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};t.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(r){var a=r%10,f=r>=100?100:null;return r+(zl[r]||zl[a]||zl[f])},week:{dow:1,doy:7}});//! moment.js locale configuration
var pp={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},Da={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};t.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(r){return r==="ល្ងាច"},meridiem:function(r,a,f){return r<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(r){return r.replace(/[១២៣៤៥៦៧៨៩០]/g,function(a){return Da[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return pp[a]})},week:{dow:1,doy:4}});//! moment.js locale configuration
var Re={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},bc={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};t.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(r){return r.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(a){return bc[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return Re[a]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="ರಾತ್ರಿ")return r<4?r:r+12;if(a==="ಬೆಳಿಗ್ಗೆ")return r;if(a==="ಮಧ್ಯಾಹ್ನ")return r>=10?r:r+12;if(a==="ಸಂಜೆ")return r+12},meridiem:function(r,a,f){return r<4?"ರಾತ್ರಿ":r<10?"ಬೆಳಿಗ್ಗೆ":r<17?"ಮಧ್ಯಾಹ್ನ":r<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(r){return r+"ನೇ"},week:{dow:0,doy:6}});//! moment.js locale configuration
t.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(r,a){switch(a){case"d":case"D":case"DDD":return r+"일";case"M":return r+"월";case"w":case"W":return r+"주";default:return r}},meridiemParse:/오전|오후/,isPM:function(r){return r==="오후"},meridiem:function(r,a,f){return r<12?"오전":"오후"}});//! moment.js locale configuration
function Kn(r,a,f,w){var S={s:["çend sanîye","çend sanîyeyan"],ss:[r+" sanîye",r+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[r+" deqîqe",r+" deqîqeyan"],h:["saetek","saetekê"],hh:[r+" saet",r+" saetan"],d:["rojek","rojekê"],dd:[r+" roj",r+" rojan"],w:["hefteyek","hefteyekê"],ww:[r+" hefte",r+" hefteyan"],M:["mehek","mehekê"],MM:[r+" meh",r+" mehan"],y:["salek","salekê"],yy:[r+" sal",r+" salan"]};return a?S[f][0]:S[f][1]}function ao(r){r=""+r;var a=r.substring(r.length-1),f=r.length>1?r.substring(r.length-2):"";return!(f==12||f==13)&&(a=="2"||a=="3"||f=="50"||a=="70"||a=="80")?"yê":"ê"}t.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(r,a,f){return r<12?f?"bn":"BN":f?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:Kn,ss:Kn,m:Kn,mm:Kn,h:Kn,hh:Kn,d:Kn,dd:Kn,w:Kn,ww:Kn,M:Kn,MM:Kn,y:Kn,yy:Kn},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(r,a){var f=a.toLowerCase();return f.includes("w")||f.includes("m")?r+".":r+ao(r)},week:{dow:1,doy:4}});//! moment.js locale configuration
var ci={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ul={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},Ia=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];t.defineLocale("ku",{months:Ia,monthsShort:Ia,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(r){return/ئێواره‌/.test(r)},meridiem:function(r,a,f){return r<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(r){return r.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(a){return Ul[a]}).replace(/،/g,",")},postformat:function(r){return r.replace(/\d/g,function(a){return ci[a]}).replace(/,/g,"،")},week:{dow:6,doy:12}});//! moment.js locale configuration
var Vl={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};t.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(r){var a=r%10,f=r>=100?100:null;return r+(Vl[r]||Vl[a]||Vl[f])},week:{dow:1,doy:7}});//! moment.js locale configuration
function $i(r,a,f,w){var S={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return a?S[f][0]:S[f][1]}function Mo(r){var a=r.substr(0,r.indexOf(" "));return ui(a)?"a "+r:"an "+r}function Gl(r){var a=r.substr(0,r.indexOf(" "));return ui(a)?"viru "+r:"virun "+r}function ui(r){if(r=parseInt(r,10),isNaN(r))return!1;if(r<0)return!0;if(r<10)return 4<=r&&r<=7;if(r<100){var a=r%10,f=r/10;return ui(a===0?f:a)}else if(r<1e4){for(;r>=10;)r=r/10;return ui(r)}else return r=r/1e3,ui(r)}t.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:Mo,past:Gl,s:"e puer Sekonnen",ss:"%d Sekonnen",m:$i,mm:"%d Minutten",h:$i,hh:"%d Stonnen",d:$i,dd:"%d Deeg",M:$i,MM:"%d Méint",y:$i,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(r){return r==="ຕອນແລງ"},meridiem:function(r,a,f){return r<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(r){return"ທີ່"+r}});//! moment.js locale configuration
var Sc={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function jo(r,a,f,w){return a?"kelios sekundės":w?"kelių sekundžių":"kelias sekundes"}function Lo(r,a,f,w){return a?Ms(f)[0]:w?Ms(f)[1]:Ms(f)[2]}function Ta(r){return r%10===0||r>10&&r<20}function Ms(r){return Sc[r].split("_")}function En(r,a,f,w){var S=r+" ";return r===1?S+Lo(r,a,f[0],w):a?S+(Ta(r)?Ms(f)[1]:Ms(f)[0]):w?S+Ms(f)[1]:S+(Ta(r)?Ms(f)[1]:Ms(f)[2])}t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:jo,ss:En,m:Lo,mm:En,h:Lo,hh:En,d:Lo,dd:En,M:Lo,MM:En,y:Lo,yy:En},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(r){return r+"-oji"},week:{dow:1,doy:4}});//! moment.js locale configuration
var Eo={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function Do(r,a,f){return f?a%10===1&&a%100!==11?r[2]:r[3]:a%10===1&&a%100!==11?r[0]:r[1]}function Io(r,a,f){return r+" "+Do(Eo[f],r,a)}function qn(r,a,f){return Do(Eo[f],r,a)}function Rm(r,a){return a?"dažas sekundes":"dažām sekundēm"}t.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:Rm,ss:Io,m:qn,mm:Io,h:qn,hh:Io,d:qn,dd:Io,M:qn,MM:Io,y:qn,yy:Io},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
var ur={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(r,a){return r===1?a[0]:r>=2&&r<=4?a[1]:a[2]},translate:function(r,a,f){var w=ur.words[f];return f.length===1?a?w[0]:w[1]:r+" "+ur.correctGrammaticalCase(r,w)}};t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var r=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return r[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:ur.translate,m:ur.translate,mm:ur.translate,h:ur.translate,hh:ur.translate,d:"dan",dd:ur.translate,M:"mjesec",MM:ur.translate,y:"godinu",yy:ur.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(r){var a=r%10,f=r%100;return r===0?r+"-ев":f===0?r+"-ен":f>10&&f<20?r+"-ти":a===1?r+"-ви":a===2?r+"-ри":a===7||a===8?r+"-ми":r+"-ти"},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(r,a){return r===12&&(r=0),a==="രാത്രി"&&r>=4||a==="ഉച്ച കഴിഞ്ഞ്"||a==="വൈകുന്നേരം"?r+12:r},meridiem:function(r,a,f){return r<4?"രാത്രി":r<12?"രാവിലെ":r<17?"ഉച്ച കഴിഞ്ഞ്":r<20?"വൈകുന്നേരം":"രാത്രി"}});//! moment.js locale configuration
function br(r,a,f,w){switch(f){case"s":return a?"хэдхэн секунд":"хэдхэн секундын";case"ss":return r+(a?" секунд":" секундын");case"m":case"mm":return r+(a?" минут":" минутын");case"h":case"hh":return r+(a?" цаг":" цагийн");case"d":case"dd":return r+(a?" өдөр":" өдрийн");case"M":case"MM":return r+(a?" сар":" сарын");case"y":case"yy":return r+(a?" жил":" жилийн");default:return r}}t.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(r){return r==="ҮХ"},meridiem:function(r,a,f){return r<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:br,ss:br,m:br,mm:br,h:br,hh:br,d:br,dd:br,M:br,MM:br,y:br,yy:br},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(r,a){switch(a){case"d":case"D":case"DDD":return r+" өдөр";default:return r}}});//! moment.js locale configuration
var d_={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Fm={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function Br(r,a,f,w){var S="";if(a)switch(f){case"s":S="काही सेकंद";break;case"ss":S="%d सेकंद";break;case"m":S="एक मिनिट";break;case"mm":S="%d मिनिटे";break;case"h":S="एक तास";break;case"hh":S="%d तास";break;case"d":S="एक दिवस";break;case"dd":S="%d दिवस";break;case"M":S="एक महिना";break;case"MM":S="%d महिने";break;case"y":S="एक वर्ष";break;case"yy":S="%d वर्षे";break}else switch(f){case"s":S="काही सेकंदां";break;case"ss":S="%d सेकंदां";break;case"m":S="एका मिनिटा";break;case"mm":S="%d मिनिटां";break;case"h":S="एका तासा";break;case"hh":S="%d तासां";break;case"d":S="एका दिवसा";break;case"dd":S="%d दिवसां";break;case"M":S="एका महिन्या";break;case"MM":S="%d महिन्यां";break;case"y":S="एका वर्षा";break;case"yy":S="%d वर्षां";break}return S.replace(/%d/i,r)}t.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:Br,ss:Br,m:Br,mm:Br,h:Br,hh:Br,d:Br,dd:Br,M:Br,MM:Br,y:Br,yy:Br},preparse:function(r){return r.replace(/[१२३४५६७८९०]/g,function(a){return Fm[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return d_[a]})},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="पहाटे"||a==="सकाळी")return r;if(a==="दुपारी"||a==="सायंकाळी"||a==="रात्री")return r>=12?r:r+12},meridiem:function(r,a,f){return r>=0&&r<6?"पहाटे":r<12?"सकाळी":r<17?"दुपारी":r<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});//! moment.js locale configuration
t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="pagi")return r;if(a==="tengahari")return r>=11?r:r+12;if(a==="petang"||a==="malam")return r+12},meridiem:function(r,a,f){return r<11?"pagi":r<15?"tengahari":r<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="pagi")return r;if(a==="tengahari")return r>=11?r:r+12;if(a==="petang"||a==="malam")return r+12},meridiem:function(r,a,f){return r<11?"pagi":r<15?"tengahari":r<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});//! moment.js locale configuration
var Cc={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},hp={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};t.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(r){return r.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(a){return hp[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return Cc[a]})},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
var Aa={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Nm={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};t.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(r){return r.replace(/[१२३४५६७८९०]/g,function(a){return Nm[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return Aa[a]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="राति")return r<4?r:r+12;if(a==="बिहान")return r;if(a==="दिउँसो")return r>=10?r:r+12;if(a==="साँझ")return r+12},meridiem:function(r,a,f){return r<3?"राति":r<12?"बिहान":r<16?"दिउँसो":r<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});//! moment.js locale configuration
var mp="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),$l="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),fp=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],Om=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(r,a){return r?/-MMM-/.test(a)?$l[r.month()]:mp[r.month()]:mp},monthsRegex:Om,monthsShortRegex:Om,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:fp,longMonthsParse:fp,shortMonthsParse:fp,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(r){return r+(r===1||r===8||r>=20?"ste":"de")},week:{dow:1,doy:4}});//! moment.js locale configuration
var gp="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Ym="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),To=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],Wm=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(r,a){return r?/-MMM-/.test(a)?Ym[r.month()]:gp[r.month()]:gp},monthsRegex:Wm,monthsShortRegex:Wm,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:To,longMonthsParse:To,shortMonthsParse:To,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(r){return r+(r===1||r===8||r>=20?"ste":"de")},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(r,a){var f=r===1?"r":r===2?"n":r===3?"r":r===4?"t":"è";return(a==="w"||a==="W")&&(f="a"),r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
var c_={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},pi={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};t.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(r){return r.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(a){return pi[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return c_[a]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="ਰਾਤ")return r<4?r:r+12;if(a==="ਸਵੇਰ")return r;if(a==="ਦੁਪਹਿਰ")return r>=10?r:r+12;if(a==="ਸ਼ਾਮ")return r+12},meridiem:function(r,a,f){return r<4?"ਰਾਤ":r<10?"ਸਵੇਰ":r<17?"ਦੁਪਹਿਰ":r<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});//! moment.js locale configuration
var Bm="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),Hm="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),_p=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function Ki(r){return r%10<5&&r%10>1&&~~(r/10)%10!==1}function pr(r,a,f){var w=r+" ";switch(f){case"ss":return w+(Ki(r)?"sekundy":"sekund");case"m":return a?"minuta":"minutę";case"mm":return w+(Ki(r)?"minuty":"minut");case"h":return a?"godzina":"godzinę";case"hh":return w+(Ki(r)?"godziny":"godzin");case"ww":return w+(Ki(r)?"tygodnie":"tygodni");case"MM":return w+(Ki(r)?"miesiące":"miesięcy");case"yy":return w+(Ki(r)?"lata":"lat")}}t.defineLocale("pl",{months:function(r,a){return r?/D MMMM/.test(a)?Hm[r.month()]:Bm[r.month()]:Bm},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:_p,longMonthsParse:_p,shortMonthsParse:_p,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:pr,m:pr,mm:pr,h:pr,hh:pr,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:pr,M:"miesiąc",MM:pr,y:"rok",yy:pr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return this.day()===0||this.day()===6?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"});//! moment.js locale configuration
t.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return this.day()===0||this.day()===6?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});//! moment.js locale configuration
function qi(r,a,f){var w={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"},S=" ";return(r%100>=20||r>=100&&r%100===0)&&(S=" de "),r+S+w[f]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:qi,m:"un minut",mm:qi,h:"o oră",hh:qi,d:"o zi",dd:qi,w:"o săptămână",ww:qi,M:"o lună",MM:qi,y:"un an",yy:qi},week:{dow:1,doy:7}});//! moment.js locale configuration
function u_(r,a){var f=r.split("_");return a%10===1&&a%100!==11?f[0]:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?f[1]:f[2]}function Ao(r,a,f){var w={ss:a?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:a?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return f==="m"?a?"минута":"минуту":r+" "+u_(w[f],+r)}var yp=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:yp,longMonthsParse:yp,shortMonthsParse:yp,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(r){if(r.week()!==this.week())switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}else return this.day()===2?"[Во] dddd, [в] LT":"[В] dddd, [в] LT"},lastWeek:function(r){if(r.week()!==this.week())switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}else return this.day()===2?"[Во] dddd, [в] LT":"[В] dddd, [в] LT"},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:Ao,m:Ao,mm:Ao,h:"час",hh:Ao,d:"день",dd:Ao,w:"неделя",ww:Ao,M:"месяц",MM:Ao,y:"год",yy:Ao},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(r){return/^(дня|вечера)$/.test(r)},meridiem:function(r,a,f){return r<4?"ночи":r<12?"утра":r<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(r,a){switch(a){case"M":case"d":case"DDD":return r+"-й";case"D":return r+"-го";case"w":case"W":return r+"-я";default:return r}},week:{dow:1,doy:4}});//! moment.js locale configuration
var Hr=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],Kl=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];t.defineLocale("sd",{months:Hr,monthsShort:Hr,weekdays:Kl,weekdaysShort:Kl,weekdaysMin:Kl,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(r){return r==="شام"},meridiem:function(r,a,f){return r<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(r){return r.replace(/،/g,",")},postformat:function(r){return r.replace(/,/g,"،")},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(r){return r+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(r){return r==="ප.ව."||r==="පස් වරු"},meridiem:function(r,a,f){return r>11?f?"ප.ව.":"පස් වරු":f?"පෙ.ව.":"පෙර වරු"}});//! moment.js locale configuration
var p_="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),hi="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function Po(r){return r>1&&r<5}function Fn(r,a,f,w){var S=r+" ";switch(f){case"s":return a||w?"pár sekúnd":"pár sekundami";case"ss":return a||w?S+(Po(r)?"sekundy":"sekúnd"):S+"sekundami";case"m":return a?"minúta":w?"minútu":"minútou";case"mm":return a||w?S+(Po(r)?"minúty":"minút"):S+"minútami";case"h":return a?"hodina":w?"hodinu":"hodinou";case"hh":return a||w?S+(Po(r)?"hodiny":"hodín"):S+"hodinami";case"d":return a||w?"deň":"dňom";case"dd":return a||w?S+(Po(r)?"dni":"dní"):S+"dňami";case"M":return a||w?"mesiac":"mesiacom";case"MM":return a||w?S+(Po(r)?"mesiace":"mesiacov"):S+"mesiacmi";case"y":return a||w?"rok":"rokom";case"yy":return a||w?S+(Po(r)?"roky":"rokov"):S+"rokmi"}}t.defineLocale("sk",{months:p_,monthsShort:hi,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:Fn,ss:Fn,m:Fn,mm:Fn,h:Fn,hh:Fn,d:Fn,dd:Fn,M:Fn,MM:Fn,y:Fn,yy:Fn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
function Sr(r,a,f,w){var S=r+" ";switch(f){case"s":return a||w?"nekaj sekund":"nekaj sekundami";case"ss":return r===1?S+=a?"sekundo":"sekundi":r===2?S+=a||w?"sekundi":"sekundah":r<5?S+=a||w?"sekunde":"sekundah":S+="sekund",S;case"m":return a?"ena minuta":"eno minuto";case"mm":return r===1?S+=a?"minuta":"minuto":r===2?S+=a||w?"minuti":"minutama":r<5?S+=a||w?"minute":"minutami":S+=a||w?"minut":"minutami",S;case"h":return a?"ena ura":"eno uro";case"hh":return r===1?S+=a?"ura":"uro":r===2?S+=a||w?"uri":"urama":r<5?S+=a||w?"ure":"urami":S+=a||w?"ur":"urami",S;case"d":return a||w?"en dan":"enim dnem";case"dd":return r===1?S+=a||w?"dan":"dnem":r===2?S+=a||w?"dni":"dnevoma":S+=a||w?"dni":"dnevi",S;case"M":return a||w?"en mesec":"enim mesecem";case"MM":return r===1?S+=a||w?"mesec":"mesecem":r===2?S+=a||w?"meseca":"mesecema":r<5?S+=a||w?"mesece":"meseci":S+=a||w?"mesecev":"meseci",S;case"y":return a||w?"eno leto":"enim letom";case"yy":return r===1?S+=a||w?"leto":"letom":r===2?S+=a||w?"leti":"letoma":r<5?S+=a||w?"leta":"leti":S+=a||w?"let":"leti",S}}t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:Sr,ss:Sr,m:Sr,mm:Sr,h:Sr,hh:Sr,d:Sr,dd:Sr,M:Sr,MM:Sr,y:Sr,yy:Sr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(r){return r.charAt(0)==="M"},meridiem:function(r,a,f){return r<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
var hr={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(r,a){return r%10>=1&&r%10<=4&&(r%100<10||r%100>=20)?r%10===1?a[0]:a[1]:a[2]},translate:function(r,a,f,w){var S=hr.words[f],D;return f.length===1?f==="y"&&a?"једна година":w||a?S[0]:S[1]:(D=hr.correctGrammaticalCase(r,S),f==="yy"&&a&&D==="годину"?r+" година":r+" "+D)}};t.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var r=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return r[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:hr.translate,m:hr.translate,mm:hr.translate,h:hr.translate,hh:hr.translate,d:hr.translate,dd:hr.translate,M:hr.translate,MM:hr.translate,y:hr.translate,yy:hr.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});//! moment.js locale configuration
var mr={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(r,a){return r%10>=1&&r%10<=4&&(r%100<10||r%100>=20)?r%10===1?a[0]:a[1]:a[2]},translate:function(r,a,f,w){var S=mr.words[f],D;return f.length===1?f==="y"&&a?"jedna godina":w||a?S[0]:S[1]:(D=mr.correctGrammaticalCase(r,S),f==="yy"&&a&&D==="godinu"?r+" godina":r+" "+D)}};t.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var r=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return r[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:mr.translate,m:mr.translate,mm:mr.translate,h:mr.translate,hh:mr.translate,d:mr.translate,dd:mr.translate,M:mr.translate,MM:mr.translate,y:mr.translate,yy:mr.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(r,a,f){return r<11?"ekuseni":r<15?"emini":r<19?"entsambama":"ebusuku"},meridiemHour:function(r,a){if(r===12&&(r=0),a==="ekuseni")return r;if(a==="emini")return r>=11?r:r+12;if(a==="entsambama"||a==="ebusuku")return r===0?0:r+12},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?":e":a===1||a===2?":a":":e";return r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});//! moment.js locale configuration
var h_={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},m_={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};t.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(r){return r+"வது"},preparse:function(r){return r.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(a){return m_[a]})},postformat:function(r){return r.replace(/\d/g,function(a){return h_[a]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(r,a,f){return r<2?" யாமம்":r<6?" வைகறை":r<10?" காலை":r<14?" நண்பகல்":r<18?" எற்பாடு":r<22?" மாலை":" யாமம்"},meridiemHour:function(r,a){return r===12&&(r=0),a==="யாமம்"?r<2?r:r+12:a==="வைகறை"||a==="காலை"||a==="நண்பகல்"&&r>=10?r:r+12},week:{dow:0,doy:6}});//! moment.js locale configuration
t.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="రాత్రి")return r<4?r:r+12;if(a==="ఉదయం")return r;if(a==="మధ్యాహ్నం")return r>=10?r:r+12;if(a==="సాయంత్రం")return r+12},meridiem:function(r,a,f){return r<4?"రాత్రి":r<10?"ఉదయం":r<17?"మధ్యాహ్నం":r<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}});//! moment.js locale configuration
t.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
var Pa={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};t.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="шаб")return r<4?r:r+12;if(a==="субҳ")return r;if(a==="рӯз")return r>=11?r:r+12;if(a==="бегоҳ")return r+12},meridiem:function(r,a,f){return r<4?"шаб":r<11?"субҳ":r<16?"рӯз":r<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(r){var a=r%10,f=r>=100?100:null;return r+(Pa[r]||Pa[a]||Pa[f])},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(r){return r==="หลังเที่ยง"},meridiem:function(r,a,f){return r<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});//! moment.js locale configuration
var ql={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};t.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(r,a){switch(a){case"d":case"D":case"Do":case"DD":return r;default:if(r===0)return r+"'unjy";var f=r%10,w=r%100-f,S=r>=100?100:null;return r+(ql[f]||ql[w]||ql[S])}},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(r){return r},week:{dow:1,doy:4}});//! moment.js locale configuration
var kc="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function wp(r){var a=r;return a=r.indexOf("jaj")!==-1?a.slice(0,-3)+"leS":r.indexOf("jar")!==-1?a.slice(0,-3)+"waQ":r.indexOf("DIS")!==-1?a.slice(0,-3)+"nem":a+" pIq",a}function f_(r){var a=r;return a=r.indexOf("jaj")!==-1?a.slice(0,-3)+"Hu’":r.indexOf("jar")!==-1?a.slice(0,-3)+"wen":r.indexOf("DIS")!==-1?a.slice(0,-3)+"ben":a+" ret",a}function mi(r,a,f,w){var S=Jl(r);switch(f){case"ss":return S+" lup";case"mm":return S+" tup";case"hh":return S+" rep";case"dd":return S+" jaj";case"MM":return S+" jar";case"yy":return S+" DIS"}}function Jl(r){var a=Math.floor(r%1e3/100),f=Math.floor(r%100/10),w=r%10,S="";return a>0&&(S+=kc[a]+"vatlh"),f>0&&(S+=(S!==""?" ":"")+kc[f]+"maH"),w>0&&(S+=(S!==""?" ":"")+kc[w]),S===""?"pagh":S}t.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:wp,past:f_,s:"puS lup",ss:mi,m:"wa’ tup",mm:mi,h:"wa’ rep",hh:mi,d:"wa’ jaj",dd:mi,M:"wa’ jar",MM:mi,y:"wa’ DIS",yy:mi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration
var vp={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};t.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(r,a,f){return r<12?f?"öö":"ÖÖ":f?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(r){return r==="ös"||r==="ÖS"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(r,a){switch(a){case"d":case"D":case"Do":case"DD":return r;default:if(r===0)return r+"'ıncı";var f=r%10,w=r%100-f,S=r>=100?100:null;return r+(vp[f]||vp[w]||vp[S])}},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(r){return r.toLowerCase()==="d'o"},meridiem:function(r,a,f){return r>11?f?"d'o":"D'O":f?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:fr,ss:fr,m:fr,mm:fr,h:fr,hh:fr,d:fr,dd:fr,M:fr,MM:fr,y:fr,yy:fr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function fr(r,a,f,w){var S={s:["viensas secunds","'iensas secunds"],ss:[r+" secunds",""+r+" secunds"],m:["'n míut","'iens míut"],mm:[r+" míuts",""+r+" míuts"],h:["'n þora","'iensa þora"],hh:[r+" þoras",""+r+" þoras"],d:["'n ziua","'iensa ziua"],dd:[r+" ziuas",""+r+" ziuas"],M:["'n mes","'iens mes"],MM:[r+" mesen",""+r+" mesen"],y:["'n ar","'iens ar"],yy:[r+" ars",""+r+" ars"]};return w||a?S[f][0]:S[f][1]}//! moment.js locale configuration
t.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}});//! moment.js locale configuration
t.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}});//! moment.js locale configuration
t.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(r,a){return r===12&&(r=0),a==="يېرىم كېچە"||a==="سەھەر"||a==="چۈشتىن بۇرۇن"?r:a==="چۈشتىن كېيىن"||a==="كەچ"?r+12:r>=11?r:r+12},meridiem:function(r,a,f){var w=r*100+a;return w<600?"يېرىم كېچە":w<900?"سەھەر":w<1130?"چۈشتىن بۇرۇن":w<1230?"چۈش":w<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(r,a){switch(a){case"d":case"D":case"DDD":return r+"-كۈنى";case"w":case"W":return r+"-ھەپتە";default:return r}},preparse:function(r){return r.replace(/،/g,",")},postformat:function(r){return r.replace(/,/g,"،")},week:{dow:1,doy:7}});//! moment.js locale configuration
function zm(r,a){var f=r.split("_");return a%10===1&&a%100!==11?f[0]:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?f[1]:f[2]}function Ji(r,a,f){var w={ss:a?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:a?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:a?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return f==="m"?a?"хвилина":"хвилину":f==="h"?a?"година":"годину":r+" "+zm(w[f],+r)}function Zl(r,a){var f={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},w;return r===!0?f.nominative.slice(1,7).concat(f.nominative.slice(0,1)):r?(w=/(\[[ВвУу]\]) ?dddd/.test(a)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(a)?"genitive":"nominative",f[w][r.day()]):f.nominative}function Ra(r){return function(){return r+"о"+(this.hours()===11?"б":"")+"] LT"}}t.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:Zl,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:Ra("[Сьогодні "),nextDay:Ra("[Завтра "),lastDay:Ra("[Вчора "),nextWeek:Ra("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return Ra("[Минулої] dddd [").call(this);case 1:case 2:case 4:return Ra("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:Ji,m:Ji,mm:Ji,h:"годину",hh:Ji,d:"день",dd:Ji,M:"місяць",MM:Ji,y:"рік",yy:Ji},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(r){return/^(дня|вечора)$/.test(r)},meridiem:function(r,a,f){return r<4?"ночі":r<12?"ранку":r<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(r,a){switch(a){case"M":case"d":case"DDD":case"w":case"W":return r+"-й";case"D":return r+"-го";default:return r}},week:{dow:1,doy:7}});//! moment.js locale configuration
var Xl=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],p=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];t.defineLocale("ur",{months:Xl,monthsShort:Xl,weekdays:p,weekdaysShort:p,weekdaysMin:p,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(r){return r==="شام"},meridiem:function(r,a,f){return r<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(r){return r.replace(/،/g,",")},postformat:function(r){return r.replace(/,/g,"،")},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}});//! moment.js locale configuration
t.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(r){return/^ch$/i.test(r)},meridiem:function(r,a,f){return r<12?f?"sa":"SA":f?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(r){return r},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var a=r%10,f=~~(r%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return r+f},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(r,a){return r===12&&(r=0),a==="凌晨"||a==="早上"||a==="上午"?r:a==="下午"||a==="晚上"?r+12:r>=11?r:r+12},meridiem:function(r,a,f){var w=r*100+a;return w<600?"凌晨":w<900?"早上":w<1130?"上午":w<1230?"中午":w<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(r){return r.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(r){return this.week()!==r.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(r,a){switch(a){case"d":case"D":case"DDD":return r+"日";case"M":return r+"月";case"w":case"W":return r+"周";default:return r}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});//! moment.js locale configuration
t.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="凌晨"||a==="早上"||a==="上午")return r;if(a==="中午")return r>=11?r:r+12;if(a==="下午"||a==="晚上")return r+12},meridiem:function(r,a,f){var w=r*100+a;return w<600?"凌晨":w<900?"早上":w<1200?"上午":w===1200?"中午":w<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(r,a){switch(a){case"d":case"D":case"DDD":return r+"日";case"M":return r+"月";case"w":case"W":return r+"週";default:return r}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});//! moment.js locale configuration
t.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="凌晨"||a==="早上"||a==="上午")return r;if(a==="中午")return r>=11?r:r+12;if(a==="下午"||a==="晚上")return r+12},meridiem:function(r,a,f){var w=r*100+a;return w<600?"凌晨":w<900?"早上":w<1130?"上午":w<1230?"中午":w<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(r,a){switch(a){case"d":case"D":case"DDD":return r+"日";case"M":return r+"月";case"w":case"W":return r+"週";default:return r}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});//! moment.js locale configuration
return t.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(r,a){if(r===12&&(r=0),a==="凌晨"||a==="早上"||a==="上午")return r;if(a==="中午")return r>=11?r:r+12;if(a==="下午"||a==="晚上")return r+12},meridiem:function(r,a,f){var w=r*100+a;return w<600?"凌晨":w<900?"早上":w<1130?"上午":w<1230?"中午":w<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(r,a){switch(a){case"d":case"D":case"DDD":return r+"日";case"M":return r+"月";case"w":case"W":return r+"週";default:return r}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),t.locale("en"),t}))})(Of)),Of.exports}var JP=qP();const Gc=Ux(JP),ZP={height:"30px",width:"100%",zIndex:1},XP={position:"relative",top:"-30px",fontWeight:600,height:"30px",lineHeight:"30px",textAlign:"center",width:"100%",zIndex:2},QP={border:"0",borderCollapse:"collapse",height:"30px",padding:"0px",tableLayout:"fixed",width:"100%"},eR={backgroundColor:"#0078D4",height:"30px",padding:"0px"},tR={backgroundColor:"#DADADA",height:"30px",padding:"0px"},iS=s=>{const{processed:o,total:n}=s,t=E.useMemo(()=>Math.floor(100*(o/n)),[o,n]);return e.jsxs(e.Fragment,{children:[e.jsx("div",{style:ZP,children:e.jsxs("table",{style:QP,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:`${t}%`}),e.jsx("col",{width:`${100-Math.floor(100*(o/n))}%`})]}),e.jsxs("tr",{children:[e.jsx("td",{style:eR}),e.jsx("td",{style:tR})]})]})}),e.jsx("div",{style:XP,children:`${t}% [${o} / ${n}]`})]})},nR={fontWeight:600,color:"red"},Ha={color:"#0078D4"},rR={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px",width:"inherit"},sR=[{key:"wp_id",name:"WP ID",minWidth:20,maxWidth:50,isResizable:!0},{key:"upn",name:"User Principal Name",minWidth:120,maxWidth:150,isResizable:!0},{key:"email",name:"Email",minWidth:120,maxWidth:150,isResizable:!0},{key:"record_type",name:"Type",minWidth:50,maxWidth:80,isResizable:!0},{key:"sync_job_status",name:"Status",minWidth:40,maxWidth:60,isResizable:!0},{key:"full_name",name:"Name",minWidth:50,maxWidth:80,isResizable:!0},{key:"notes",name:"Notes",minWidth:120,maxWidth:150,isResizable:!0}],oR=[{key:5,text:"5"},{key:10,text:"10"},{key:25,text:"25"},{key:50,text:"50"},{key:100,text:"100"},{key:500,text:"500"}],iR=(s,o,n)=>e.jsx(_n,{content:e.jsx("span",{children:s[n.key]}),id:`tooltip_${n.key}_${o}`,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx("span",{style:rR,children:s[n.key]})}),aR=s=>{const{closeModal:o,job:n}=s,{env:{props:{restNonce:t,siteUrl:i}}}=E.useContext(Ye),[d,c]=E.useState([]),[u,h]=E.useState(null),[g,_]=E.useState(null),[m,x]=E.useState("initial"),[y,v]=E.useState("all"),[b,C]=E.useState(null),[k,L]=E.useState(10),[I,A]=E.useState(0),[Y,P]=E.useState(0),T=async()=>{A(0),x("loading");let W;try{if(!n.last||!n.last.id)throw"ID of the current / last run of this job not found.";const K=`${i.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/results/summary`,Z={jobId:n.last.id,keyword:b,status:y=="all"?null:y};W=await Ee.post(K,Z,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":t}})}catch(K){if(x("errors"),K.response&&K.response.data){_(JSON.stringify(K.response.data));return}_(`Failed to retrieve summarized results for the current / last run of this job [${K.message?K.message:K.toString()}]`);return}x("initial"),h(W.data),W.data&&W.data.all&&P(parseInt(W.data.all))},F=async()=>{x("loading");let W;try{if(!n.last||!n.last.id)throw"ID of the current / last run of this job not found.";const K=`${i.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/results`,Z={jobId:n.last.id,pageSize:k,offset:I,keyword:b,status:y=="all"?null:y};W=await Ee.post(K,Z,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":t}})}catch(K){x("errors"),K.response&&K.response.data&&_(JSON.stringify(K.response.data)),_(`Failed to retrieve results for the current / last run of this job [${K.message?K.message:K.toString()}]`);return}x("initial"),c(W.data)},H=(W=!1)=>{if(W&&I-k<0||!W&&Y-I-k<=0)return;const K=W?I-k:I+k;A(K)};return E.useEffect(()=>{T().then(()=>F())},[k,b,y]),E.useEffect(()=>{F()},[I]),e.jsxs(U,{tokens:{childrenGap:"15px"},children:[e.jsxs(U,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",children:[e.jsxs(U,{horizontal:!0,tokens:{childrenGap:"10px"},children:[e.jsx(Dn,{text:`All (${u?u.all:"0"})`,style:y=="all"?Ha:void 0,onClick:()=>v("all")}),e.jsx("span",{children:"|"}),e.jsx(Dn,{text:`Created (${u?u.created:"0"})`,style:y=="created"?Ha:void 0,onClick:()=>v("created")}),e.jsx("span",{children:"|"}),e.jsx(Dn,{text:`Updated (${u?u.updated:"0"})`,style:y=="updated"?Ha:void 0,onClick:()=>v("updated")}),e.jsx("span",{children:"|"}),e.jsx(Dn,{text:`Deactivated (${u?u.deactivated:"0"})`,style:y=="deactivated"?Ha:void 0,onClick:()=>v("deactivated")}),e.jsx("span",{children:"|"}),e.jsx(Dn,{text:`Deleted (${u?u.deleted:"0"})`,style:y=="deleted"?Ha:void 0,onClick:()=>v("deleted")}),e.jsx("span",{children:"|"}),e.jsx(Dn,{text:`Error (${u?u.error:"0"})`,style:y=="error"?Ha:void 0,onClick:()=>v("error")}),e.jsx("span",{children:"|"}),e.jsx(Dn,{text:`Logged (${u?u.logged:"0"})`,style:y=="logged"?Ha:void 0,onClick:()=>v("logged")}),e.jsx("span",{children:"|"}),e.jsx(Dn,{text:`Skipped (${u?u.skipped:"0"})`,style:y=="skipped"?Ha:void 0,onClick:()=>v("skipped")})]}),e.jsx(Ke,{iconProps:{iconName:"ChromeClose"},onClick:o})]}),e.jsx(Vb,{items:d,columns:sR,selectionMode:it.none,onRenderItemColumn:iR,enableShimmer:!d,listProps:{renderedWindowsAhead:0,renderedWindowsBehind:0},onShouldVirtualize:()=>!1,className:j.wpo365WzConstrainedResultsList}),e.jsx("div",{style:nR,children:g||""}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(rt,{onClick:()=>H(!0),iconProps:{iconName:"PlayReverse"},disabled:I-k<0,children:"Previous"}),e.jsx($e,{selectedKey:k,placeholder:"Items per page",options:oR,onChange:(W,K)=>L(K.key)}),e.jsx(rt,{onClick:()=>H(),iconProps:{iconName:"Play"},disabled:Y-I-k<=0,children:"Next"}),e.jsx(jI,{styles:{root:{width:400}},placeholder:"Press enter to search by Entra ID User Principal Name",onSearch:W=>W&&W.length>=2?C(W):{},onClear:()=>C(null)}),m=="loading"&&e.jsx(Oe,{size:Te.small})]})]})},lR={fontWeight:600,color:"red"},dR=s=>{const{closeModal:o,job:n}=s,{env:t,env:{props:{restNonce:i,siteUrl:d}},settings:c}=E.useContext(Ye),[u,h]=E.useState(null),[g,_]=E.useState(null),[m,x]=E.useState(null),[y,v]=E.useState("initial"),b=L=>(L=L.indexOf("$count=true")>-1?L:`${L}${L.indexOf("?")>-1?"&":"?"}$count=true`,L=L.indexOf("$top=")>-1?L:`${L}${L.indexOf("?")>-1?"&":"?"}$top=10`,L),C=async()=>{v("loading");const{result:L}=s,I=n.query.indexOf("/"),A=n.query.indexOf("?"),Y=n.query.substring(0,I>-1?I:A>-1?A:void 0);`${d.replace(new RegExp("[/]+$"),"")}${Y}`;const P=m?m.substring(m.indexOf(`/${Y}`)+Y.length+2):M0(decodeURIComponent(b(n.query.substring(I>-1?I+1:A>-1?A:Y.length)))),T=new FormData;T.append("action","wpo365_test_sync_query"),T.append("nonce",t.nonce),T.append("ina",window.wpo365.wizard.props.ina),T.append("query",encodeURIComponent(P)),T.append("endpoint",encodeURIComponent(Y)),T.append("scope",encodeURIComponent("https://graph.microsoft.com/User.Read.All"));let F;try{if(F=await Ee.post(t.wpAjaxAdminUrl,T),v("initial"),F.data.status=="NOK"){_(`Failed to execute query "${n.query}" [${F.data.message}]`),L(parseInt(F.data.error_codes));return}return x(F.data.result&&typeof F.data.result=="object"&&"@odata.nextLink"in F.data.result?F.data.result["@odata.nextLink"]:null),L(parseInt(F.data.error_codes)),JSON.stringify(F.data.result,null,2)}catch(H){if(v("initial"),H.response&&H.response.data)return L(500),JSON.stringify(H.response.data);if(H.response&&H.response.status&&H.response.status==404){_("Could not connect to the WPO365 API for Microsoft Graph. Did you forget to enable the WPO365 API for Microsoft Graph or are you using a none-existing endpoint?"),L(404);return}_(`Failed to execute query "${n.query}" [${H.message?H.message:H.toString()}]`),L(500);return}},k=()=>{C().then(L=>h(L))};return E.useEffect(()=>{k()},[]),e.jsxs(U,{tokens:{childrenGap:"15px"},children:[e.jsxs(U,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",children:[e.jsxs(U,{horizontal:!0,tokens:{childrenGap:"10px"},children:[e.jsx(fd,{style:{fontWeight:600},children:"Query"}),e.jsx(fd,{children:b(decodeURIComponent(n.query))})]}),e.jsx(Ke,{iconProps:{iconName:"ChromeClose"},onClick:o})]}),e.jsx(qp,{multiline:!0,style:{height:"calc(80vh - 200px)"},label:"Query Result",value:u||"No data received (yet)"}),e.jsx("div",{style:lR,children:g||""}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(rt,{onClick:()=>k(),iconProps:{iconName:"Play"},disabled:!m,children:"More"}),y=="loading"&&e.jsx(Oe,{size:Te.small})]})]})};var gr=(s=>(s.error="error",s.info="info",s.success="success",s))(gr||{});const Xr=s=>e.jsx("span",{className:`${j.wpo365Badge} ${j["__"+s.type]}`,children:s.children}),Ac={fontWeight:600,color:"red"},cR=s=>[{key:"runManually",text:"Run manually"},{key:"externalLink",text:"External link (start only)",disabled:!s},{key:"externalCron",text:"External link (start and continue)",disabled:!s},{key:"schedule",text:"WordPress CRON",disabled:!s}],uR=[{key:7,text:"Every day of the week"},{key:1,text:"Weekly, on Monday"},{key:2,text:"Weekly, on Tuesday"},{key:3,text:"Weekly, on Wednesday"},{key:4,text:"Weekly, on Thursday"},{key:5,text:"Weekly, on Friday"},{key:6,text:"Weekly, on Saturday"},{key:0,text:"Weekly, on Sunday"}],pR=[{key:0,text:"Now"},{key:1,text:"01:00 AM"},{key:7,text:"07:00 AM"},{key:13,text:"01:00 PM"},{key:19,text:"07:00 PM"}],kx=s=>{const o=[];return s.name||o.push("name"),(!s.query||!s.queryTested)&&o.push("query"),s.trigger&&s.trigger=="schedule"&&!s.schedule&&o.push("schedule"),s.sendLog&&!s.sendLogTo&&o.push("sendLogTo"),s.actionDeleteUser&&!s.softDeleteUsers&&s.reassignPostsToId==0&&o.push("reassignPostsToId"),o},Mx=s=>!!s&&s.charAt(0)!="/"&&s.charAt(s.length-1)!="/",jx=s=>{const o="You are synchronizing users. Please wait until the synchronization completes before leaving this page.";return s.preventDefault(),s.returnValue=o,o},Lx=s=>s&&s.last&&!s.last.stopped&&!s.last.error&&s.last.processed<s.last.total,hR=s=>{const{refreshSettings:o,saveUserSyncJobs:n}=s,{addOnNavigateHandler:t,appStatus:i,env:d,env:{props:{adminUrl:c,restNonce:u,siteUrl:h}},removeOnNavigateHandler:g,settings:_,updateAppStatus:m,updateLastErrorMessage:x}=E.useContext(Ye),[y,v]=E.useState({...s.job}),[b,C]=E.useState(Mx(s.job.query)),[k,L]=E.useState(kx(y)),[I,A]=E.useState(!1),[Y,P]=E.useState("initial"),[T,F]=E.useState(!1),[H,W]=E.useState(!1),[K,Z]=E.useState(null),[Q,B]=E.useState(!1),[R,X]=E.useState(Lx(y)),$=E.useRef(!1),ie=E.useRef(-1),le=E.useRef(R),V=E.useRef(Q),z=E.useRef(y);E.useEffect(()=>{v(s.job)},[s.refreshKey]);const J=Le=>new Promise((Me,qe)=>{const Ct={title:"Important",subText:'You are navigating away whilst a manually started user synchronization is still being processed. If you click "OK" the requested page will load and user synchronization will not continue. Otherwise click "Cancel"',onDismiss:()=>{history.replaceState(null,null,document.location.pathname+document.location.search+"#userSync"),Z(null),Me(!1)},onCancel:()=>{history.replaceState(null,null,document.location.pathname+document.location.search+"#userSync"),Z(null),Me(!1)},onConfirm:()=>{g(J),Z(null),Me(!0)}};Le!=je.userSync&&Z(Ct)}),ee=async()=>{B(!0),await Ee.get(`${c.replace("wp-admin","").replace(new RegExp("[/]+$"),"")}/wp-cron.php`),await o(!0),setTimeout(()=>{le.current===!0?ee():B(!1)},1e3)};E.useEffect(()=>{const Le=setInterval(()=>{z.current.trigger=="runManually"&&le.current===!0&&V.current===!1&&ee()},1e4);return()=>clearInterval(Le)},[]),E.useEffect(()=>{L(kx(y)),X(Lx(y)),z.current=y},[y]),E.useEffect(()=>{Q?(t(J),window.addEventListener("beforeunload",jx,!0)):(g(J),window.removeEventListener("beforeunload",jx,!0)),V.current!=Q&&(V.current=Q)},[Q]),E.useEffect(()=>{le.current!=R&&(le.current=R)});const he=(Le="start")=>`${h}?wpo365_sync_run=${Le}&job_id=${y.id}`,te=(Le,Me)=>{if(!Me)return;const qe=Me.key=="schedule"?y.schedule:null;v({...y,trigger:Me.key,schedule:qe})},G=async(Le=!1,Me=null)=>{m("working");const qe=[..._.userSyncJobs];let Ct=Ja(qe,Pt=>Pt.id==(Me?Me.id:y.id));Le?qe.splice(Ct,1):Ct==-1?qe.push(Me||{...y}):qe[Ct]=Me||{...y};try{if(Le){const Pt=`${h.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/delete`,Mt={jobId:Me?Me.id:y.id};await Ee.post(Pt,Mt,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":u}})}await n(qe)}catch(Pt){m("errors"),x(Pt.message||Pt);return}m("initial"),x(null)},re=(Le,Me)=>{const qe=y.schedule?y.schedule:{scheduledOn:7,scheduledAt:0};Me=="scheduledOn"&&(qe.scheduledOn=Le),Me=="scheduledAt"&&(qe.scheduledAt=Le),v({...y,schedule:qe})},He=async(Le,Me)=>{if(m("working"),!Le){m("errors"),x("Please enter a valid email address");return}const qe=`${h.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/users/search/unique`,Ct={keyword:Le};let Pt;try{if(Pt=await Ee.post(qe,Ct,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":u}}),!Pt.data)throw Pt.message?Pt.message:"Unknown error occurred. Please retry or check for technical details the Developer Tools > Console."}catch(Mt){if(m("errors"),Mt.response&&Mt.response.data){x(Mt.response.data.message);return}x(Mt.message||Mt);return}Me&&Me(Pt),m("initial"),x(null)},Ge=async()=>{if(m("working"),await G(!1,{...y,last:null}),k.length>0){m("errors"),x("The job is invalid. Please first update the configuration of this job before trying to run it.");return}B(!0);const Le=`${h.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/start`,Me={jobId:y.id};let qe;try{qe=await Ee.post(Le,Me,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":u}}),ie.current=-1,await ee()}catch(Ct){if(await o(!0),m("errors"),Ct.response&&Ct.response.data){x(Ct.response.data.message);return}x(Ct.message||Ct);return}m("initial"),x(null)},Ut=async()=>{m("working");const Le=`${h.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/stop`,Me={jobId:y.id};try{await Ee.post(Le,Me,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":u}}),await o(!0)}catch(qe){if(m("errors"),qe.response&&qe.response.data){x(qe.response.data.message);return}x(qe.message||qe);return}m("initial"),x(null)},ht=async()=>{if(await G(),m("working"),k.length>0){m("errors"),x("The job is invalid. Please first update the configuration of this job before trying to schedule it.");return}const Le=`${h.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/schedule`,Me={jobId:y.id};try{await Ee.post(Le,Me,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":u}}),await o(!0)}catch(qe){if(m("errors"),qe.response&&qe.response.data){x(qe.response.data.message);return}x(qe.message||qe);return}await o(),m("initial"),x(null)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:j.wpo365WzUserSyncJobEditorContainer,children:e.jsxs("table",{className:j.wpo365WzTable,style:{tableLayout:"fixed"},children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tbody",{children:e.jsxs("tr",{children:[e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(Ke,{iconProps:{iconName:I?"ChevronDown":"ChevronRight"},onClick:()=>A(!I)}),e.jsx("span",{style:{fontWeight:600,cursor:"pointer"},onClick:()=>A(!I),children:y.name?y.name:y.id})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsxs("span",{children:[y.last&&e.jsx("span",{children:`Last run: ${Gc(new Date(y.last.date*1e3)).format("l LT")}`}),!y.last&&e.jsx("em",{children:"This job has never run"})]}),e.jsx(Ke,{iconProps:{iconName:"Refresh"},title:"Refresh",ariaLabel:"Refresh",onClick:async()=>await o()})]})})]})}),I&&e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("td",{children:"Type"}),e.jsx("td",{children:"Entra ID -> WordPress"})]}),e.jsxs("tr",{children:[e.jsx("td",{style:k.indexOf("name")>-1?Ac:void 0,children:"Name"}),e.jsx("td",{children:e.jsx(fe,{isValid:(Le,Me)=>!0,onValid:Le=>v({...y,name:Le}),bound:!1,value:y.name,disabled:Q||R})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"ID"}),e.jsx("td",{children:y.id})]}),e.jsxs("tr",{children:[e.jsx("td",{style:k.indexOf("query")>-1?Ac:void 0,children:"Query"}),e.jsx("td",{children:e.jsx(fe,{isValid:(Le,Me)=>{const qe=Mx(Me);return C(qe),qe},onValid:Le=>{v({...y,query:M0(Le),queryTested:y.query!=Le?!1:y.queryTested})},errorMessage:'Microsoft Graph Query should not start or end with "/"',bound:!1,value:y.query?decodeURIComponent(y.query):"",disabled:Q||R})})]}),e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:"15px"},style:{alignItems:"center"},children:[e.jsx(rt,{onClick:()=>{P("testing")},iconProps:{iconName:"Filter"},disabled:!y.query||Q||R||!b,children:"Test query"}),e.jsx(ce,{disabled:!0,checked:y.queryTested,label:y.queryTested?"Query tested successfully":"Query not tested successfully"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{children:e.jsxs("div",{style:{maxWidth:"400px"},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(Ke,{iconProps:{iconName:T?"ChevronDown":"ChevronRight"},onClick:()=>F(!T)}),e.jsx("span",{style:{fontWeight:600,cursor:"pointer"},onClick:()=>F(!T),children:"Show sample queries"})]}),T&&e.jsxs(U,{tokens:{childrenGap:"5px"},children:[e.jsxs(U,{tokens:{childrenGap:"0px"},children:[e.jsxs("span",{style:{fontWeight:600},children:["Get all non-disabled ",e.jsx("em",{children:"internal"})," users from Entra ID."]}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx("span",{children:"myorganization/users?$filter=accountEnabled eq true and userType eq 'member'&$top=10"}),e.jsx(Ke,{iconProps:{iconName:"Add"},onClick:()=>v({...y,query:"myorganization/users?$filter=accountEnabled%20eq%20true%20and%20userType%20eq%20%27member%27&$top=10"}),disabled:Q||R})]})]}),e.jsxs(U,{tokens:{childrenGap:"0px"},children:[e.jsx("span",{style:{fontWeight:600},children:"Get all (nested) members from an Entra ID group."}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx("span",{children:"groups/---Your Entra ID Group ID goes here---/transitiveMembers?$top=10"}),e.jsx(Ke,{iconProps:{iconName:"Add"},onClick:()=>v({...y,query:"groups/---Your Entra ID Group ID goes here---/transitiveMembers?$top=10"}),disabled:Q||R})]})]})]})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Actions"}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:"5px"},children:[e.jsx(ce,{label:"Create users",checked:y.actionCreateUser,onChange:(Le,Me)=>v({...y,actionCreateUser:Me??!1}),disabled:Q||R}),e.jsx(ce,{label:"Update users",checked:y.actionUpdateUser,onChange:(Le,Me)=>v({...y,actionUpdateUser:Me??!1}),disabled:Q||R}),e.jsx(ce,{disabled:_.userSyncJobs.length>1||Q||R,label:"Delete users",checked:y.actionDeleteUser,onChange:(Le,Me)=>v({...y,actionDeleteUser:Me??!1})}),y.actionDeleteUser&&e.jsx(ce,{disabled:_.userSyncJobs.length>1||Q||R,label:"Soft-delete users",checked:y.softDeleteUsers,onChange:(Le,Me)=>v({...y,softDeleteUsers:Me??!1})})]})})]}),y.actionDeleteUser&&!y.softDeleteUsers&&e.jsxs("tr",{children:[e.jsx("td",{style:k.indexOf("reassignPostsToId")>-1?Ac:void 0,children:"Re-assign posts to"}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(fe,{disabled:_.userSyncJobs.length>1||Q||R,isValid:(Le,Me)=>!0,onValid:Le=>{$.current?$.current=!1:v({...y,reassignPostsTo:Le,reassignPostsToId:0})},bound:!1,value:y.reassignPostsTo}),e.jsx(rt,{disabled:i!="initial"||y.reassignPostsToId>0||Q||R,iconProps:{iconName:"UserFollowed"},onClick:async()=>He(y.reassignPostsTo,Le=>{$.current=!0,v({...y,reassignPostsTo:Le.data.user_login,reassignPostsToId:parseInt(""+Le.data.ID)})}),children:"Check user"})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"External identities"}),e.jsx("td",{children:e.jsx(ce,{label:"Ignore external identities",checked:y.membersOnly,onChange:(Le,Me)=>v({...y,membersOnly:Me??!1}),disabled:Q||R})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Custom domains"}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsx(ce,{label:"Skip domain check",checked:y.skipDomainCheck,onChange:(Le,Me)=>v({...y,skipDomainCheck:Me??!1}),disabled:Q||R}),!y.skipDomainCheck&&e.jsxs(e.Fragment,{children:[e.jsxs("span",{style:{color:"#0078D4"},children:["Users with an M*365 email or username ending with any of the domains below will be considered in scope. This list of"," ",e.jsx("em",{children:"Custom domains"})," can be updated on the ",e.jsx("a",{href:"#userRegistration",children:"User registration"})," page."]}),e.jsx(U,{tokens:{childrenGap:10},children:(_.defaultDomain?[..._.customDomain,_.defaultDomain]:_.customDomain).map(Le=>e.jsx("span",{style:{backgroundColor:"#dadada",borderRadius:"2px",padding:"0px 7px"},children:Le}))})]})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Trigger"}),e.jsx("td",{children:e.jsx(yg,{defaultSelectedKey:y.trigger,options:cR(_.useAppOnlyToken&&!!_.appOnlyApplicationId&&!!_.appOnlyApplicationSecret),onChange:te,required:!0,disabled:Q||R})})]}),y.trigger=="schedule"&&e.jsxs("tr",{children:[e.jsx("td",{style:k.indexOf("schedule")>-1?Ac:void 0,children:"Schedule"}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:"5px"},children:[e.jsx($e,{options:uR,selectedKey:y.schedule?y.schedule.scheduledOn:null,onChange:(Le,Me)=>Me&&re(Me.key,"scheduledOn"),style:{width:"300px"},disabled:Q||R}),e.jsx($e,{options:pR,selectedKey:y.schedule?y.schedule.scheduledAt:null,onChange:(Le,Me)=>Me&&re(Me.key,"scheduledAt"),style:{width:"95px"},disabled:Q||R})]})})]}),(y.trigger=="externalLink"||y.trigger=="externalCron")&&e.jsxs("tr",{children:[e.jsx("td",{children:"External link to start user synchronization"}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx("span",{children:he()}),e.jsx(Ke,{iconProps:{iconName:"Copy"},onClick:()=>navigator.clipboard.writeText(he())})]})})]}),y.trigger=="externalCron"&&e.jsxs("tr",{children:[e.jsx("td",{children:"External link to process subsequent batches"}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx("span",{children:he("next")}),e.jsx(Ke,{iconProps:{iconName:"Copy"},onClick:()=>navigator.clipboard.writeText(he("next"))})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Last / Current run"}),e.jsxs("td",{children:[y.last&&e.jsxs("table",{children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"100px"}),e.jsx("col",{width:"300px"})]}),e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"ID"}),e.jsx("td",{children:y.last.id})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Started"}),e.jsx("td",{children:Gc(new Date(y.last.date*1e3)).format("l LT")})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Status"}),e.jsxs("td",{children:[y.last.stopped&&e.jsx(Xr,{type:y.last.error?gr.error:gr.success,children:"Stopped"}),R&&e.jsx(Xr,{type:gr.info,children:"Processing"})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Total"}),e.jsx("td",{children:y.last.total})]}),e.jsxs("tr",{children:[e.jsx("th",{style:{lineHeight:"40px"},children:"Progress"}),e.jsx("td",{children:e.jsx(iS,{processed:y.last.processed,total:y.last.total})})]}),y.last.error&&e.jsxs("tr",{children:[e.jsx("th",{children:"Last error"}),e.jsx("td",{children:y.last.error})]})]})]}),!y.last&&e.jsx("em",{children:"This job has never run"})]})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Next run"}),e.jsxs("td",{children:[y.next&&e.jsx("span",{children:Gc((y.next+new Date().getTimezoneOffset()*60)*1e3).format("l LT")}),!y.next&&e.jsx("em",{children:"This job has not been scheduled yet"})]})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Send log"}),e.jsx("td",{children:e.jsx(ce,{checked:y.sendLog,onChange:(Le,Me)=>v({...y,sendLog:Me??!1}),disabled:Q||R})})]}),y.sendLog&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("td",{style:k.indexOf("sendLogTo")>-1?Ac:void 0,children:"Send email to"}),e.jsx("td",{children:e.jsx(fe,{isValid:(Le,Me)=>!0,onValid:Le=>v({...y,sendLogTo:Le}),bound:!1,value:y.sendLogTo,disabled:Q||R})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Only send log on failure"}),e.jsx("td",{children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24}],children:e.jsx(ce,{checked:y.sendLogOnError,onChange:(Le,Me)=>v({...y,sendLogOnError:Me??!1}),disabled:Q||R})})})]})]}),e.jsx("tr",{children:e.jsx("td",{style:{height:"10px"},children:" "})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:"10px"},children:[e.jsx(rt,{onClick:async()=>G(),iconProps:{iconName:"Save"},disabled:k.length!=0||i=="working"||Q||R,children:"Save"}),y.trigger=="runManually"&&e.jsx(rt,{onClick:Ge,iconProps:{iconName:"Play"},disabled:k.length!=0||i=="working"||Q||R,children:"Save + Run now"}),e.jsx(rt,{onClick:Ut,iconProps:{iconName:"Stop"},disabled:i=="working"||!R,children:"Stop"}),y.trigger=="schedule"&&e.jsx(rt,{onClick:ht,iconProps:{iconName:"Clock"},disabled:k.length!=0||i=="working"||!_.useAppOnlyToken||!_.appOnlyApplicationId||!_.appOnlyApplicationSecret||Q||R,children:"Save + Schedule"}),e.jsx(rt,{onClick:()=>W(!0),iconProps:{iconName:"ShowResults"},disabled:!y.last||i=="working"||Q,children:"View results"}),e.jsx(rt,{onClick:()=>G(!0),iconProps:{iconName:"Delete"},disabled:i=="working"||Q,children:"Delete"}),Q&&e.jsx(Oe,{size:Te.small})]})})}),k.length>0&&e.jsx("tr",{children:e.jsx("td",{children:e.jsx("ul",{style:{paddingLeft:0,listStyle:"none"},children:k.map(Le=>{let Me="";return Le=="name"&&(Me="Please enter a name for this job"),Le=="query"&&(Me="Please test the query for this job"),Le=="schedule"&&(Me="Please enter a valid WP CRON schedule"),Le=="sendLogTo"&&(Me="Please enter a valid email address to send the log file"),Le=="reassignPostsToId"&&(Me="Please enter a user who posts will be re-assigned to"),e.jsx("li",{style:Ac,children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"5px"},children:[e.jsx(Ue,{iconName:"Warning"}),e.jsx("span",{children:Me})]})})})})})})]})]})}),e.jsx(Zc,{scrollableContentClassName:j.wpo365WzModalContainerScrollable,containerClassName:j.wpo365WzModalContainer,isOpen:H,onDismiss:()=>W(!1),children:e.jsx(aR,{job:y,closeModal:()=>W(!1)})}),e.jsx(Zc,{containerClassName:j.wpo365WzModalContainer,isOpen:Y=="testing",onDismiss:()=>P("initial"),children:e.jsx(dR,{job:y,closeModal:()=>P("initial"),result:Le=>v({...y,queryTested:Le>=200&&Le<300})})}),K&&e.jsx(Ws,{onCancel:K.onCancel,onConfirm:K.onConfirm,onDismiss:K.onDismiss,title:K.title,subText:K.subText})]})},Ex=()=>({actionCreateUser:!1,actionDeleteUser:!1,actionUpdateUser:!1,externalLink:null,id:Zt(32),last:null,membersOnly:!0,name:null,next:null,query:"myorganization/users?$filter=accountEnabled%20eq%20true%20and%20userType%20eq%20%27member%27&$top=10",queryTested:!1,reassignPostsTo:null,reassignPostsToId:0,schedule:null,sendLog:!1,sendLogTo:null,sendLogOnError:!1,skipDomainCheck:!0,softDeleteUsers:!0,status:"initial",trigger:"runManually",type:"default"}),mR=()=>({actionCreateUser:!1,actionDeleteUser:!1,actionUpdateUser:!1,externalLink:null,id:Zt(32),last:null,membersOnly:!1,name:null,next:null,query:null,queryTested:!1,reassignPostsTo:null,reassignPostsToId:0,schedule:null,sendLog:!1,sendLogOnError:!1,sendLogTo:null,skipDomainCheck:!0,softDeleteUsers:!0,status:"initial",trigger:"runManually",type:"wpToAad"}),fR={maxWidth:400},za=s=>{if(!s)return["",""];const o=s.lastIndexOf("::");return o===-1?[void 0,s]:[s.slice(0,o+2),s.slice(o+2)]},Dx=s=>{const{vertical:o,triplets:n,onChanged:t}=s,[i,d]=E.useState(n.map(y=>y.map(v=>({...v})))),[c,u]=E.useState(s.newTriplet.map(y=>({...y}))),[h,g]=E.useState("");E.useEffect(()=>{JSON.stringify(n)!=JSON.stringify(i)&&t([...i])},[i]);const _=()=>{for(let v=0;v<c.length;v++)if(!c[v].value){g("Please make sure to fill in all the fields"),setTimeout(()=>g(""),3e3);return}const y=[...i];y.push(c.map(v=>({...v}))),d(y),u(s.newTriplet.map(v=>({...v})))},m=y=>{const v=i.filter(b=>!0);v.splice(y,1),d(v)},x=E.useMemo(()=>Zt(6),[]);return e.jsx("div",{style:fR,children:e.jsxs(U,{tokens:{childrenGap:"10px"},children:[i.map((y,v)=>e.jsxs(e.Fragment,{children:[y.map((b,C)=>Array.isArray(c[C].prefixes)&&c[C].prefixes.length>0?e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},verticalAlign:"center",children:[e.jsx($e,{style:{maxWidth:"80px"},options:c[C].prefixes.map(k=>({key:k,text:k})),onChange:(k,L)=>{const I=String(b.value),A=za(I),Y=`${String(L.key)}${A[1]}`,P=[...i];P[v][C].value=Y,d(P)},selectedKey:za(String(b.value))[0],placeholder:"Select"}),e.jsx(fe,{placeholder:b.placeholder?b.placeholder:c[C].placeholder,bound:!1,value:za(String(b.value))[1],onValid:k=>{const L=[...i],I=za(String(b.value));L[v][C].value=`${I[0]}${k}`,d(L)},id:`wpo_te_${x}_${v}_${C}`})]}):c[C].options&&c[C].options.length>0?e.jsx($e,{style:{maxWidth:"400px"},options:c[C].options.map(k=>({key:k,text:k})),onChange:(k,L)=>{const I=[...i];I[v][C].value=L.key,d(I)},selectedKey:String(b.value),placeholder:b.placeholder?b.placeholder:c[C].placeholder}):e.jsx(fe,{placeholder:b.placeholder?b.placeholder:c[C].placeholder,bound:!1,value:String(b.value.toString()),onValid:k=>{const L=[...i];L[v][C].value=k,d(L)},id:`wpo_te_${x}_${v}_${C}`})),e.jsx(U.Item,{align:"end",children:e.jsx(Ke,{onClick:()=>m(v),iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",margin:"0px 0px 0px -30px",padding:0,cursor:"pointer"}})})]})),c.map((y,v)=>Array.isArray(y.prefixes)&&y.prefixes.length>0?e.jsxs(U,{horizontal:!0,tokens:{childrenGap:10},verticalAlign:"center",children:[e.jsx($e,{style:{maxWidth:"80px"},options:y.prefixes.map(b=>({key:b,text:b})),onChange:(b,C)=>{const k=c.map(Y=>({...Y})),L=String(y.value),I=za(L),A=`${String(C.key)}${I[1]}`;console.debug(`Prefix for newTriplet: ${A}`),k[v].value=A,u(k)},selectedKey:za(String(y.value))[0],placeholder:"Select"}),e.jsx(fe,{placeholder:y.placeholder?y.placeholder:c[v].placeholder,bound:!1,value:za(y.value)[1],onValid:b=>{const C=c.map(L=>({...L})),k=za(String(y.value));C[v].value=`${k[0]}${b}`,u(C)},id:`wpo_te_${x}_${i.length}_${v}`})]}):y.options&&y.options.length>0?e.jsx($e,{style:{maxWidth:"400px"},options:y.options.map(b=>({key:b,text:b})),onChange:(b,C)=>{const k=c.map(L=>({...L}));k[v].value=C.key.toString(),u(k)},selectedKey:y.value.toString(),placeholder:y.placeholder?y.placeholder:c[v].placeholder}):e.jsx(fe,{placeholder:y.placeholder,bound:!1,value:y.value.toString(),onValid:b=>{const C=c.map(k=>({...k}));C[v].value=b,u(C)},id:`wpo_te_${x}_${i.length}_${v}`})),h&&e.jsx("div",{children:e.jsx("span",{style:{paddingLeft:"15px",lineHeight:"30px",color:"#cc0000"},children:h})}),e.jsx(U.Item,{align:"end",children:e.jsx(Ke,{onClick:_,iconProps:{iconName:"Add"},title:"Add",ariaLabel:"Click to add this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",margin:"0px 0px 0px -30px",padding:0,cursor:"pointer"}})})]})})},Ep={fontWeight:600,color:"red"},gR={fontWeight:600,color:"#378805"},_R={fontSize:"6px"},yR=s=>[{key:"runManually",text:"Run manually"},{key:"externalLink",text:"External link",disabled:!s},{key:"schedule",text:"WordPress CRON",disabled:!s}],wR=[{key:7,text:"Every day of the week"},{key:1,text:"Weekly, on Monday"},{key:2,text:"Weekly, on Tuesday"},{key:3,text:"Weekly, on Wednesday"},{key:4,text:"Weekly, on Thursday"},{key:5,text:"Weekly, on Friday"},{key:6,text:"Weekly, on Saturday"},{key:0,text:"Weekly, on Sunday"}],vR=[{key:0,text:"Now"},{key:1,text:"01:00 AM"},{key:7,text:"07:00 AM"},{key:13,text:"01:00 PM"},{key:19,text:"07:00 PM"}],Ix=s=>{const o=[];return s.name||o.push("name"),s.trigger&&s.trigger=="schedule"&&!s.schedule&&o.push("schedule"),s.sendLog&&!s.sendLogTo&&o.push("sendLogTo"),o},Tx=s=>{const o="You are synchronizing users. Please wait until the synchronization completes before leaving this page.";return s.preventDefault(),s.returnValue=o,o},Ax=s=>s&&s.last&&!s.last.stopped&&!s.last.error&&s.last.processed<s.last.total,xR=s=>{const{refreshSettings:o,saveUserSyncJobs:n,availableRoles:t}=s,{addOnNavigateHandler:i,appStatus:d,env:c,env:{props:{adminUrl:u,restNonce:h,siteUrl:g}},removeOnNavigateHandler:_,settings:m,updateAppStatus:x,updateLastErrorMessage:y}=E.useContext(Ye),[v,b]=E.useState({...s.job}),[C,k]=E.useState(Ix(v)),[L,I]=E.useState(!1),[A,Y]=E.useState(null),[P,T]=E.useState(!1),[F,H]=E.useState(Ax(v)),W=E.useRef(-1),K=E.useRef(F),Z=E.useRef(P),Q=E.useRef(v);E.useEffect(()=>{b(s.job)},[s.refreshKey]);const B=ee=>new Promise((he,te)=>{const G={title:"Important",subText:'You are navigating away whilst a manually started user synchronization is still being processed. If you click "OK" the requested page will load and user synchronization will not continue. Otherwise click "Cancel"',onDismiss:()=>{history.replaceState(null,null,document.location.pathname+document.location.search+"#userSync"),Y(null),he(!1)},onCancel:()=>{history.replaceState(null,null,document.location.pathname+document.location.search+"#userSync"),Y(null),he(!1)},onConfirm:()=>{_(B),Y(null),he(!0)}};ee!=je.userSync&&Y(G)}),R=async()=>{T(!0),await Ee.get(`${u.replace("wp-admin","").replace(new RegExp("[/]+$"),"")}/wp-cron.php`),await o(!0),setTimeout(()=>{K.current===!0?R():T(!1)},1e3)};E.useEffect(()=>{const ee=setInterval(()=>{Q.current.trigger=="runManually"&&K.current===!0&&Z.current===!1&&(console.log("Triggering cron ..."),R())},1e4);return()=>clearInterval(ee)},[]),E.useEffect(()=>{k(Ix(v)),H(Ax(v)),Q.current=v},[v]),E.useEffect(()=>{P?(i(B),window.addEventListener("beforeunload",Tx,!0)):(_(B),window.removeEventListener("beforeunload",Tx,!0)),Z.current!=P&&(Z.current=P)},[P]),E.useEffect(()=>{K.current!=F&&(K.current=F)});const X=()=>`${g}?wpo365_sync_run=start&job_id=${v.id}&type=wpToAad`,$=(ee,he)=>{if(!he)return;const te=he.key=="schedule"?v.schedule:null,G=he.key=="externalLink"&&v.externalLink?v.externalLink:X();b({...v,trigger:he.key,schedule:te,externalLink:G})},ie=async(ee=!1,he=null)=>{x("working");const te=[...m.userSyncJobs];let G=Ja(te,re=>re.id==(he?he.id:v.id));ee?te.splice(G,1):G==-1?te.push(he||{...v}):te[G]=he||{...v};try{if(ee){const re=`${g.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/delete`,He={jobId:he?he.id:v.id,type:"wpToAad"};await Ee.post(re,He,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":h}})}await n(te)}catch(re){x("errors"),y(re.message||re);return}x("initial"),y(null)},le=(ee,he)=>{const te=v.schedule?v.schedule:{scheduledOn:7,scheduledAt:0};he=="scheduledOn"&&(te.scheduledOn=ee),he=="scheduledAt"&&(te.scheduledAt=ee),b({...v,schedule:te})},V=async()=>{if(x("working"),await ie(!1,{...v,last:null}),C.length>0){x("errors"),y("The job is invalid. Please first update the configuration of this job before trying to run it.");return}T(!0);const ee=`${g.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/start`,he={jobId:v.id,type:"wpToAad"};let te;try{te=await Ee.post(ee,he,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":h}}),W.current=-1,await R()}catch(G){if(await o(!0),x("errors"),G.response&&G.response.data){y(G.response.data.message);return}y(G.message||G);return}x("initial"),y(null)},z=async()=>{x("working");const ee=`${g.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/stop`,he={jobId:v.id,type:"wpToAad"};try{await Ee.post(ee,he,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":h}}),await o(!0)}catch(te){if(x("errors"),te.response&&te.response.data){y(te.response.data.message);return}y(te.message||te);return}x("initial"),y(null)},J=async()=>{if(await ie(),x("working"),C.length>0){x("errors"),y("The job is invalid. Please first update the configuration of this job before trying to schedule it.");return}const ee=`${g.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/sync/schedule`,he={jobId:v.id,type:"wpToAad"};try{await Ee.post(ee,he,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":h}}),await o(!0)}catch(te){if(x("errors"),te.response&&te.response.data){y(te.response.data.message);return}y(te.message||te);return}await o(),x("initial"),y(null)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:j.wpo365WzUserSyncJobEditorContainer,children:e.jsxs("table",{className:j.wpo365WzTable,style:{tableLayout:"fixed"},children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tbody",{children:e.jsxs("tr",{children:[e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(Ke,{iconProps:{iconName:L?"ChevronDown":"ChevronRight"},onClick:()=>I(!L)}),e.jsx("span",{style:{fontWeight:600,cursor:"pointer"},onClick:()=>I(!L),children:v.name?v.name:v.id})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsxs("span",{children:[v.last&&e.jsx("span",{children:`Last run: ${Gc(new Date(v.last.date*1e3)).format("l LT")}`}),!v.last&&e.jsx("em",{children:"This job has never run"})]}),e.jsx(Ke,{iconProps:{iconName:"Refresh"},title:"Refresh",ariaLabel:"Refresh",onClick:async()=>await o()})]})})]})}),L&&e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("td",{children:"Type"}),e.jsx("td",{children:"WordPress -> AAD B2C"})]}),e.jsxs("tr",{children:[e.jsx("td",{style:C.indexOf("name")>-1?Ep:void 0,children:"Name"}),e.jsx("td",{children:e.jsx(fe,{isValid:(ee,he)=>!0,onValid:ee=>b({...v,name:ee}),bound:!1,value:v.name,disabled:P||F})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"ID"}),e.jsx("td",{children:v.id})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Actions"}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:"5px"},children:[e.jsx(ce,{label:"Create users",checked:!0,onChange:()=>{},disabled:!0}),e.jsx(ce,{label:"Update users",checked:v.actionUpdateUser,onChange:(ee,he)=>b({...v,actionUpdateUser:he??!1}),disabled:P||F}),e.jsx(ce,{label:"Reset password for WP users",checked:v.data&&"passwordReset"in v.data&&v.data.passwordReset.toLowerCase()=="true",onChange:(ee,he)=>{const te=he??!1?"true":"false",G=v.data?{...v.data,passwordReset:te}:{passwordReset:te};b({...v,data:G})},disabled:P||F})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Page size"}),e.jsx("td",{children:e.jsx($e,{onChange:(ee,he)=>b({...v,pageSize:parseInt(he.key)}),placeholder:"Select a page size",options:[{key:"2",text:"2"},{key:"5",text:"5"},{key:"10",text:"10"},{key:"25",text:"25"},{key:"50",text:"50"},{key:"100",text:"100"}],style:{maxWidth:"400px"},selectedKey:v.pageSize?v.pageSize.toString():"25"})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Excluded roles"}),e.jsx("td",{children:e.jsx(Vc,{list:v.excludedRoles?[...v.excludedRoles]:[],onListChanged:ee=>b({...v,excludedRoles:[...ee]}),options:t,placeholder:me.infoWordPressRole})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Trigger"}),e.jsx("td",{children:e.jsx(yg,{defaultSelectedKey:v.trigger,options:yR(m.useAppOnlyToken&&!!m.appOnlyApplicationId&&!!m.appOnlyApplicationSecret),onChange:$,required:!0,disabled:P||F})})]}),v.trigger=="schedule"&&e.jsxs("tr",{children:[e.jsx("td",{style:C.indexOf("schedule")>-1?Ep:void 0,children:"Schedule"}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:"5px"},children:[e.jsx($e,{options:wR,selectedKey:v.schedule?v.schedule.scheduledOn:null,onChange:(ee,he)=>he&&le(he.key,"scheduledOn"),style:{width:"300px"},disabled:P||F}),e.jsx($e,{options:vR,selectedKey:v.schedule?v.schedule.scheduledAt:null,onChange:(ee,he)=>he&&le(he.key,"scheduledAt"),style:{width:"95px"},disabled:P||F})]})})]}),v.trigger=="externalLink"&&e.jsxs("tr",{children:[e.jsx("td",{children:"External link"}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx("span",{children:v.externalLink?v.externalLink:""}),v.externalLink&&e.jsx(Ke,{iconProps:{iconName:"Copy"},onClick:()=>navigator.clipboard.writeText(v.externalLink)})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Last / Current run"}),e.jsxs("td",{children:[v.last&&e.jsxs("table",{children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"100px"}),e.jsx("col",{width:"300px"})]}),e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"ID"}),e.jsx("td",{children:v.last.id})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Started"}),e.jsx("td",{children:Gc(new Date(v.last.date*1e3)).format("l LT")})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Status"}),e.jsxs("td",{children:[v.last.stopped&&e.jsx("span",{style:Ep,children:"Stopped"}),F&&e.jsx("span",{style:gR,children:"Processing"})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Total"}),e.jsxs("td",{children:[v.last.total," ",v.last.total>0&&e.jsx("a",{href:`${c.props.adminUrl}/users.php?wpo365_jobid=${v.last.id}`,children:"View"})]})]}),"errors"in v.last&&e.jsxs("tr",{children:[e.jsx("th",{children:"Errors"}),e.jsxs("td",{children:[v.last.errors.toString()," ",v.last.errors>0&&e.jsx("a",{href:`${c.props.adminUrl}/users.php?wpo365_filter=wpo365_send_to_azure_nok&wpo365_jobid=${v.last.id}`,children:"View"})]})]}),e.jsxs("tr",{children:[e.jsx("th",{style:{lineHeight:"40px"},children:"Progress"}),e.jsx("td",{children:e.jsx(iS,{processed:v.last.processed,total:v.last.total})})]}),v.last.error&&e.jsxs("tr",{children:[e.jsx("th",{children:"Last error"}),e.jsx("td",{children:v.last.error})]})]})]}),!v.last&&e.jsx("em",{children:"This job has never run"})]})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Next run"}),e.jsxs("td",{children:[v.next&&e.jsx("span",{children:Gc((v.next+new Date().getTimezoneOffset()*60)*1e3).format("l LT")}),!v.next&&e.jsx("em",{children:"This job has not been scheduled yet"})]})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Send log"}),e.jsx("td",{children:e.jsx(ce,{checked:v.sendLog,onChange:(ee,he)=>b({...v,sendLog:he??!1}),disabled:P||F})})]}),v.sendLog&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("td",{style:C.indexOf("sendLogTo")>-1?Ep:void 0,children:"Send email to"}),e.jsx("td",{children:e.jsx(fe,{isValid:(ee,he)=>!0,onValid:ee=>b({...v,sendLogTo:ee}),bound:!1,value:v.sendLogTo,disabled:P||F})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:"Only send log on failure"}),e.jsx("td",{children:e.jsx(ce,{checked:v.sendLogOnError,onChange:(ee,he)=>b({...v,sendLogOnError:he??!1}),disabled:P||F})})]})]}),e.jsx("tr",{children:e.jsx("td",{style:{height:"10px"},children:" "})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:"10px"},children:[e.jsx(rt,{onClick:async()=>ie(),iconProps:{iconName:"Save"},disabled:C.length!=0||d=="working"||P||F,children:"Save"}),v.trigger=="runManually"&&e.jsx(rt,{onClick:V,iconProps:{iconName:"Play"},disabled:C.length!=0||d=="working"||P||F,children:"Save + Run now"}),e.jsx(rt,{onClick:z,iconProps:{iconName:"Stop"},disabled:d=="working"||!F,children:"Stop"}),v.trigger=="schedule"&&e.jsx(rt,{onClick:J,iconProps:{iconName:"Clock"},disabled:C.length!=0||d=="working"||!m.useAppOnlyToken||!m.appOnlyApplicationId||!m.appOnlyApplicationSecret||P||F,children:"Save + Schedule"}),e.jsx(rt,{onClick:()=>ie(!0),iconProps:{iconName:"Delete"},disabled:d=="working"||P,children:"Delete"}),P&&e.jsx(Oe,{size:Te.small})]})})}),C.length>0&&e.jsx("tr",{children:e.jsx("td",{children:e.jsx("ul",{style:{paddingLeft:0,listStyle:"none"},children:C.map(ee=>{let he="";return ee=="name"&&(he="Please enter a name for this job"),ee=="schedule"&&(he="Please enter a valid WP CRON schedule"),ee=="sendLogTo"&&(he="Please enter a valid email address to send the log file"),e.jsx("li",{style:Ep,children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"5px"},children:[e.jsx(Ue,{iconName:"Warning"}),e.jsx("span",{children:he})]})})})})})}),P&&e.jsx("tr",{children:e.jsx("td",{children:e.jsx("span",{style:_R,children:"running (true)"})})})]})]})}),A&&e.jsx(Ws,{onCancel:A.onCancel,onConfirm:A.onConfirm,onDismiss:A.onDismiss,title:A.title,subText:A.subText})]})},bR=s=>{const{appStatus:o,env:n,env:{props:{availableRoles:t,extensions:i,siteUrl:d,restNonce:c}},settings:u,settings:{hidePremiumOptions:h},updateAppStatus:g,updateLastErrorMessage:_,updateSettings:m}=E.useContext(Ye),x=()=>({allowReactivation:u.allowReactivation,avatarHookPriority:u.avatarHookPriority,avatarSkipSaveDefault:u.avatarSkipSaveDefault,avatarTemplate:u.avatarTemplate,avatarUpdated:u.avatarUpdated,enableScim:u.enableScim,enableUserSync:u.enableUserSync,extraUserFields:[...u.extraUserFields],extraUserFieldsSource:u.extraUserFieldsSource,graphDisplayNameFormat:u.graphDisplayNameFormat,graphSelectProperties:[...u.graphSelectProperties],graphUserDetails:u.graphUserDetails,scimAttributeMappings:[...u.scimAttributeMappings],scimReassignPostsTo:u.scimReassignPostsTo,scimReassignPostsToId:u.scimReassignPostsToId,scimSecretToken:u.scimSecretToken,showGraphSelectProperties:Array.isArray(u.graphSelectProperties)&&u.graphSelectProperties.length>0,skipAvatarForOthers:u.skipAvatarForOthers,useAvatar:u.useAvatar,useBpAvatar:u.useBpAvatar,useBpExtended:u.useBpExtended,userSyncAllowDelete:u.userSyncAllowDelete,userSyncQuery:u.userSyncQuery,wpToAadUpdateSensitiveProps:u.wpToAadUpdateSensitiveProps,wpToAadUserAttributeMappings:u.wpToAadUserAttributeMappings}),[y,v]=E.useState(x()),[b,C]=E.useState(null),[k,L]=E.useState([]),[I,A]=E.useState(Zt(6)),[Y,P]=E.useState(null),[T,F]=E.useState(null),[H,W]=E.useState(we.initial),K=E.useMemo(()=>Object.keys(Qr(t,[])),[]);E.useEffect(()=>{v(x()),L([...u.userSyncJobs]),A(Zt(6))},[u]),E.useEffect(()=>{y.scimReassignPostsTo!=u.scimReassignPostsTo&&v({...y,scimReassignPostsToId:0})},[y.scimReassignPostsTo]);const Z=(V,z,J,ee)=>{if(V){z(!1);return}C({title:J,subText:ee,onDismiss:()=>C(null),onCancel:()=>C(null),onConfirm:()=>{C(null),z(!0)}})},Q=async V=>{_(void 0),g("working"),W(we.saving);const z=V?{...V}:{...y},J={...u};J.allowReactivation=z.allowReactivation,J.avatarHookPriority=z.avatarHookPriority,J.avatarSkipSaveDefault=z.avatarSkipSaveDefault,J.avatarTemplate=z.avatarTemplate,J.avatarUpdated=z.avatarUpdated,J.enableScim=z.enableScim,J.enableUserSync=z.enableUserSync,J.extraUserFields=[...z.extraUserFields],J.extraUserFieldsSource=z.extraUserFieldsSource,J.graphDisplayNameFormat=z.graphDisplayNameFormat,J.graphSelectProperties=[...z.graphSelectProperties],J.graphUserDetails=z.graphUserDetails,J.scimAttributeMappings=[...z.scimAttributeMappings],J.scimReassignPostsTo=z.scimReassignPostsTo,J.scimReassignPostsToId=z.scimReassignPostsToId,J.scimSecretToken=z.scimSecretToken,J.skipAvatarForOthers=z.skipAvatarForOthers,J.useAvatar=z.useAvatar,J.useBpAvatar=z.useBpAvatar,J.useBpExtended=z.useBpExtended,J.userSyncAllowDelete=z.userSyncAllowDelete,J.userSyncQuery=z.userSyncQuery,J.wpToAadUpdateSensitiveProps=u.wpToAadUpdateSensitiveProps,J.wpToAadUserAttributeMappings=z.wpToAadUserAttributeMappings;try{const ee=await Fe.updateSettings(n,J);if(ee.success){const he=await Fe.getSettings(n);m(he),g("initial"),W(we.success)}else _(ee.error.message),g("errors"),W(we.error)}catch{_("Unknown error occured whilst updating settings [check F12 > console for technical details]"),g("errors"),W(we.error)}},B=async(V=!1)=>{V||g("working");try{const z=await Fe.getSettings(n);return m(z),V||(g("initial"),_(null)),z}catch(z){V||(g("errors"),_(z.message||z))}},R=async V=>{const z={...u};z.userSyncJobs=V;const J=await Fe.updateSettings(n,z);if(J.success)await B();else throw J.message},X=async(V,z)=>{if(g("working"),!V){g("errors"),_("Please enter a valid email address");return}const J=`${d.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/users/search/unique`,ee={keyword:V};let he;try{if(he=await Ee.post(J,ee,{headers:{Accept:"application/json",ContentType:"application/json; odata=verbose","X-WP-Nonce":c}}),!he.data)throw he.message?he.message:"Unknown error occurred. Please retry or check for technical details the Developer Tools > Console."}catch(te){if(g("errors"),te.response&&te.response.data){_(te.response.data.message);return}_(te.message||te);return}z&&z(he),g("initial"),_(null)},$=async()=>{g("working");const V=new FormData;V.append("action","wpo365_generate_scim_secret_token"),V.append("nonce",n.nonce),V.append("ina",window.wpo365.wizard.props.ina);let z;try{if(z=await Ee.post(n.wpAjaxAdminUrl,V),z.status<200||z.status>=300||!z.data.result)throw z.data&&z.data.message?"response.data.message":"Unknown error occurred when generating a new SCIM secret token";const J=await Fe.getSettings(n);m(J)}catch(J){if(g("errors"),J.response&&J.response.data){_(J.response.data.message);return}_(J.message||J);return}g("initial"),_(null)},ie=()=>{if(!Array.isArray(y.scimAttributeMappings)||!Array.isArray(y.extraUserFields))return;const V={...y};V.scimAttributeMappings.forEach(z=>{V.extraUserFields.some(J=>J.key.toLowerCase().indexOf(z.key.toLowerCase())>-1)||(V.extraUserFields=[...V.extraUserFields,{key:`${z.key};#${z.value}`,value:"Title not set"}])}),V.scimAttributeMappings=[],V.extraUserFieldsSource=qr.scim,Q(V)},le=()=>{C({title:"Important",subText:`If you migrate your <strong>Optional SCIM attribute mappings</strong> to <strong>
        SCIM attribute to WordPress user meta mappings</strong> (see section <strong>
        Custom User Fields</strong>) the <strong>Source for custom user fields
        <strong> will also change to <strong>SCIM</strong>.`,onDismiss:()=>C(null),onCancel:()=>C(null),onConfirm:async()=>{ie(),C(null)}})};return e.jsx(e.Fragment,{children:e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("h3",{className:j.wpo365WzSectionTitle,children:[e.jsx("span",{style:{color:"#CE5708"},children:"Getting started"})," with User Synchronization"]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(ou,{buttons:[{callToAction:"Scheduled user synchronization",info:"https://www.wpo365.com/feature/synchronize-users-from-entra-id-to-wordpress/",title:"WPO365 User Synchronization",tutorial:"https://tutorials.wpo365.com/courses/synchronize-users-from-azure-ad-to-wordpress/"},{callToAction:"Incremental SCIM based user sync",info:"https://www.wpo365.com/feature/connect-wordpress-to-entra-id-application-user-provisioning-scim/",title:"Entra Application Provisioning",tutorial:"https://tutorials.wpo365.com/courses/sync-entra-user-provisioning-scim/"},{callToAction:"Map Entra ID attributes to WP profiles",info:"https://www.wpo365.com/feature/map-entra-id-user-attributes-to-wordpress-user-profiles/",title:"Custom User Fields",tutorial:"https://docs.wpo365.com/article/98-synchronize-microsoft-365-azure-ad-profile-fields"},{callToAction:"Microsoft 365 profile pic as WP avatar",info:"https://www.wpo365.com/feature/map-entra-id-profile-pictures-to-wordpress-avatars/",title:"Avatar",tutorial:"https://docs.wpo365.com/article/96-microsoft-365-profile-picture-as-wp-avatar"}]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"User synchronization"})})})})}),(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate].some(z=>z==V)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable user synchronization"}),e.jsx(de,{info:{title:"User Synchronization",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/62-enable-user-sync"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(jn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:y.enableUserSync,onChange:(V,z)=>{P("enableUserSync"),Q({...y,enableUserSync:z??!1}).then(J=>P(null))}}),Y=="enableUserSync"&&e.jsx(Oe,{size:Te.small})]})})})]}),y.enableUserSync&&e.jsx(e.Fragment,{children:i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate].some(z=>z==V))&&(!u.useAppOnlyToken||!u.appOnlyApplicationId||!u.appOnlyApplicationSecret)?e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("div",{style:{width:"50%"},children:e.jsxs(Zr,{messageBarType:Be.blocked,isMultiline:!0,truncated:!0,overflowButtonAriaLabel:"Read more",children:["You have not (yet) configured ",e.jsx("strong",{children:"app-only permissions"})," i.e. ",e.jsx("em",{children:"application"})," permissions. With"," ",e.jsx("em",{children:"application"})," permissions the plugin can get authorization to access Microsoft Graph without a logged-in user being present. You must configure ",e.jsx("em",{children:"application"})," type permissions for ",e.jsx("strong",{children:"User.Read.All"})," or else WPO365 cannot retrieve users from Microsoft Graph / Entra ID / AAD B2C / Entra Ext. ID. Please follow the steps presented in this article"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/integration-application-permissions/",target:"_blank",children:"https://tutorials.wpo365.com/courses/integration-application-permissions/"})," ","to configure app-only integration."]})})})}):e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Add new User synchronization job"}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx($e,{styles:{root:{minWidth:"250px",boxSizing:"content-box"}},onChange:(V,z)=>{F(z.key.toString())},placeholder:"Select type of job to add",options:[{key:"default",text:"Entra ID -> WordPress"},{key:"wpToAad",text:"WordPress -> AAD B2C / Entra Ext. ID",disabled:!u.useB2c&&!u.useCiam||!i.some(V=>[l.wpo365Customers].some(z=>z==V))}],style:{maxWidth:"400px"}}),e.jsx(rt,{iconProps:{iconName:"Add"},style:{marginLeft:"15px"},disabled:!T,onClick:()=>{if(T=="default")if(k.some(V=>!V.type||V.type=="default")){const V={title:me.titleAddUserSyncJob,subText:me.subTextAddUserSyncJob,onDismiss:()=>C(null),onCancel:()=>C(null),onConfirm:async()=>{const z=[...k];for(let J=0;J<z.length;J++)z[J].actionDeleteUser=!1,z[J].softDeleteUsers=!1,z[J].reassignPostsTo=null,z[J].reassignPostsToId=0;z.push(Ex()),R(z),C(null)}};C(V)}else R([...k,Ex()]);else if(T=="wpToAad")if(k.some(V=>V.type&&V.type=="wpToAad")){const V={title:me.titleAddUserSyncJob,subText:'You cannot add more than one "User sync job" of type "WordPress -> AAD B2C / Entra Ext. ID"',onDismiss:()=>C(null),onCancel:()=>C(null),onConfirm:()=>C(null)};C(V)}else R([...k,mR()]);F(null)},children:"Add"})]})})})]}),k.length>0&&e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:k.map(V=>!V.type||V.type=="default"?e.jsx(hR,{job:{...V},refreshSettings:B,saveUserSyncJobs:R,refreshKey:I}):e.jsx(xR,{job:{...V},refreshSettings:B,saveUserSyncJobs:R,refreshKey:I,availableRoles:K}))})}),k.length==0&&e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("em",{children:"You have not defined any user synchronization jobs"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable user re-activation"}),e.jsx(de,{info:{title:"Enable user re-activation",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/134-enable-user-re-activation"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365Scim,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Customers,l.wpo365Integrate],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(V,z)=>v({...y,allowReactivation:z??!1}),checked:y.allowReactivation})})})})]})]})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"User provisioning (SCIM)"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable user provisioning (SCIM)"}),e.jsx(de,{info:{title:"WordPress user provisioning with Entra ID Application Provisioning (SCIM)",readMore:{title:"Read online",url:"https://tutorials.wpo365.com/courses/sync-entra-user-provisioning-scim/"}}})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(jn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:y.enableScim,onChange:(V,z)=>{P("enableScim"),Q({...y,enableScim:z??!1}).then(J=>P(null))}}),Y=="enableScim"&&e.jsx(Oe,{size:Te.small})]})})]}),y.enableScim&&e.jsxs(e.Fragment,{children:[Array.isArray(y.scimAttributeMappings)&&y.scimAttributeMappings.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Optional SCIM attribute mappings"}),e.jsx(de,{info:{title:"SCIM attribute mappings",readMore:{title:"Read online",url:"https://tutorials.wpo365.com/courses/sync-entra-user-provisioning-scim/lessons/configure-mandatory-user-attribute-mappings/"}}})]})}),e.jsx("td",{children:e.jsx(iw,{list:y.scimAttributeMappings,onListChanged:V=>v({...y,scimAttributeMappings:V}),keyPlaceholder:me.infoScimAttributeMappingsKey,valuePlaceholder:me.infoScimAttributeMappingsValue})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Migrate optional SCIM attribute mappings"}),e.jsx(de,{info:{title:"Migrate SCIM attribute mappings",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/59-wordpress-user-provisioning-with-azure-ad-scim"}}})]})}),e.jsx("td",{children:e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},children:[e.jsx(U.Item,{grow:0,children:e.jsx(et,{onClick:le,children:"Migrate settings"})}),e.jsxs("span",{style:{color:"#0078D4"},children:[e.jsx(Ue,{iconName:"Warning",style:{paddingRight:"5px"}}),"Migration is mandatory to remain compatible with future versions"]})]})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Admin Credentials > Secret Token"})})}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:0},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(fe,{disabled:n.props.scimSecretDefined,isValid:(V,z)=>!0,onValid:V=>v({...y,scimSecretToken:V}),bound:!1,value:y.scimSecretToken}),e.jsx(rt,{disabled:n.props.scimSecretDefined,iconProps:{iconName:"Refresh"},onClick:async()=>$(),children:"Generate"}),y.scimSecretToken&&e.jsx(Ke,{iconProps:{iconName:"Copy"},title:"Copy to clipboard",ariaLabel:"Copy to clipboard",onClick:()=>{navigator.clipboard.writeText(y.scimSecretToken)}})]}),n.props.scimSecretDefined&&e.jsx("div",{children:e.jsx("span",{style:{color:"#0078d4"},children:"Remove or update the SCIM Secret Token found in wp-config.php instead"})})]})})]}),(!h||i.some(V=>[l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365Scim].some(z=>z==V)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("span",{style:{color:"#0078d4"},children:"When a user is deleted ..."})}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Re-assign posts to"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365Scim],children:e.jsxs(U,{tokens:{childrenGap:0},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"15px"},children:[e.jsx(fe,{disabled:y.userSyncAllowDelete,isValid:(V,z)=>!0,onValid:V=>v({...y,scimReassignPostsTo:V}),bound:!1,value:y.scimReassignPostsTo}),e.jsx(rt,{disabled:y.userSyncAllowDelete,iconProps:{iconName:"UserFollowed"},onClick:async()=>X(y.scimReassignPostsTo,V=>{v({...y,scimReassignPostsTo:V.data.user_login,scimReassignPostsToId:parseInt(""+V.data.ID)})}),children:"Check user"})]}),e.jsx("div",{children:e.jsx("span",{style:{color:y.scimReassignPostsTo&&y.scimReassignPostsToId===0?"#dc3545":"#0078d4"},children:`Selected user: ${y.scimReassignPostsToId>0?y.scimReassignPostsTo+" ["+y.scimReassignPostsToId+"]":"N/A"}`})})]})})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("span",{style:{color:"#0078d4"},children:"Or, instead ..."})}),e.jsx("td",{})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("span",{children:"Soft-delete users"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365Scim],children:e.jsx(ce,{checked:y.userSyncAllowDelete,onChange:(V,z)=>v({...y,userSyncAllowDelete:z??!1,scimReassignPostsTo:z??!1?"":y.scimReassignPostsTo,scimReassignPostsToId:z??!1?0:y.scimReassignPostsToId})})})})]})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Custom user fields (Entra ID -> WordPress)"})})}),(!h||i.some(V=>[l.wpo365CustomFields,l.wpo365LoginProfessional,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(z=>z==V)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Preferred WordPress user profile display name format"}),e.jsx(de,{info:{title:"Preferred WordPress user profile display name format",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/143-preferred-wordpress-user-profile-display-name-format"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365CustomFields,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365LoginProfessional,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx($e,{options:[{key:"select",text:"Select",itemType:Tt.Header},{key:od.displayName,text:"Display name e.g. John Doe"},{key:od.givenNameSurname,text:"Given name + surname e.g. John Doe"},{key:od.surnameGivenName,text:"Surname, given name e.g. Doe, John"},{key:od.surnameGivenNameNoComma,text:"Surname given name e.g. Doe John"},{key:od.skip,text:"Do not update"}],selectedKey:y.graphDisplayNameFormat,onChange:(V,z)=>z&&v({...y,graphDisplayNameFormat:z.key}),style:{maxWidth:"400px"}})})})]}),(!h||i.some(V=>[l.wpo365CustomFields,l.wpo365LoginProfessional,l.wpo365Customers,l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(z=>z==V)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Show Entra ID user attributes in a WordPress user profile"}),e.jsx(de,{info:{title:"Show Entra ID user attributes in a WordPress user profile",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/98-synchronize-microsoft-365-azure-ad-profile-fields"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365CustomFields,l.wpo365LoginProfessional,l.wpo365Customers,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(V,z)=>v({...y,graphUserDetails:z??!1}),checked:y.graphUserDetails})})})})]}),(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365CustomFields,l.wpo365Integrate,l.wpo365Pro,l.wpo365LoginProfessional].some(z=>z==V)))&&y.graphUserDetails&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Update BuddyPress Extended Profile Fields instead"}),e.jsx(de,{info:{title:"Update BuddyPress Extended Profile Fields",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/73-update-matching-buddypress-extended-profile-fields"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365CustomFields,l.wpo365Integrate,l.wpo365Pro,l.wpo365LoginProfessional],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(V,z)=>v({...y,useBpExtended:z??!1}),checked:y.useBpExtended})})})})]}),(!h||i.some(V=>[l.wpo365Customers,l.wpo365CustomFields,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPlus,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Sync5y].some(z=>z==V)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:e.jsx("span",{children:"Retrieve user attributes from Microsoft Graph"})})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365Customers,l.wpo365CustomFields,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPlus,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Sync5y],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(V,z)=>v({...y,extraUserFieldsSource:z??!1?qr.graph:u.useSaml?qr.samlResponse:qr.idToken}),checked:y.extraUserFieldsSource==qr.graph})})})})]}),(!h||i.some(V=>[l.wpo365Customers,l.wpo365CustomFields,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPlus,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Sync5y].some(z=>z==V)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsxs("span",{children:["Express Login (see ",e.jsx("em",{children:"i"})," for details)"]}),e.jsx(de,{info:{title:"Express login",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/61-express-login"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365Customers,l.wpo365CustomFields,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPlus,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Sync5y],children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{checked:u.expressLogin,disabled:!0})}),e.jsxs("span",{className:j.wpo365WzRowifier,style:{color:"#0078D4"},children:[e.jsx(Ue,{iconName:"Warning",style:{paddingRight:"5px"}}),"Can be changed on the ",e.jsx("a",{href:"#loginLogout",children:"Login / Logout"})," page"]})]})})})]}),(!h||i.some(V=>[l.wpo365Customers,l.wpo365CustomFields,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Sync5y].some(z=>z==V)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{children:[e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Mappings to save claims / properties as WP user meta"}),e.jsx(de,{info:{title:"Mappings to save claims / properties as WP user meta",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/98-synchronize-microsoft-365-azure-ad-profile-fields"}}})]}),e.jsx("em",{style:{color:"#0078d4"},children:'You must click "+" to add the current item.'})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365Customers,l.wpo365CustomFields,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Sync5y],children:e.jsx(Dx,{newTriplet:[{value:"",defaultValue:"",placeholder:"Claim / property (check documentation) ...",prefixes:["scim::","graph::","saml::","oidc::"]},{value:"",defaultValue:"",placeholder:"WordPress usermeta key e.g. entraJobTitle"},{value:"",defaultValue:"",placeholder:"Custom title e.g. Job title"}],onChanged:V=>{const z=[];V.map(J=>{z.push({key:`${J[0].value};#${J[1].value}`,value:J[2].value})}),v({...y,extraUserFields:z})},triplets:y.extraUserFields.map(V=>{const z=(V.key.indexOf(";#")>-1?V.key:`${V.key};#`).split(";#");return[{value:z[0],defaultValue:z[0]},{value:z[1],defaultValue:z[1]},{value:V.value,defaultValue:V.value}]})})})})]}),y.extraUserFieldsSource==qr.graph&&(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365CustomFields,l.wpo365LoginProfessional,l.wpo365Customers,l.wpo365RolesAccess,l.wpo365Integrate,l.wpo365Pro].some(z=>z==V)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Show advanced $select properties configuration"}),e.jsx(de,{info:{title:"Additional $select properties",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/142-additional-select-properties"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365CustomFields,l.wpo365LoginProfessional,l.wpo365Customers,l.wpo365RolesAccess,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(V,z)=>{if(y.showGraphSelectProperties){v({...y,showGraphSelectProperties:!1});return}C({title:"Important",subText:`Please only specify additional $select properties if you have specific requirements for 
                                        Microsoft Graph User Resource properties that are not included by default.`,onDismiss:()=>C(null),onCancel:()=>C(null),onConfirm:()=>{C(null),v({...y,showGraphSelectProperties:!0})}})},checked:y.showGraphSelectProperties})})})})]}),y.showGraphSelectProperties&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Additional $select properties"}),e.jsx(de,{info:{title:"Additional $select properties",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/142-additional-select-properties"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365CustomFields,l.wpo365LoginProfessional,l.wpo365Customers,l.wpo365RolesAccess,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Bo,{list:y.graphSelectProperties,onListChanged:V=>v({...y,graphSelectProperties:V}),placeholder:me.infoExtraUserFieldsKey})})})]})]}),(u.useB2c||u.useCiam)&&e.jsxs(e.Fragment,{children:[e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Custom user fields (WordPress -> AAD B2C / Entra Ext. ID"})})}),i.some(V=>[l.wpo365Customers].some(z=>z==V))&&!u.wpToAadCreateUsers&&!u.wpToAadUpdateUsers?e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("div",{style:{width:"50%"},children:e.jsxs(Zr,{messageBarType:Be.blocked,isMultiline:!0,truncated:!0,overflowButtonAriaLabel:"Read more",children:["It appears that you have not configured WPO365 to create / update users in AAD B2C / Entra Ext. ID (on the plugin's"," ",e.jsx("a",{href:"#userRegistration",children:"User registration"})," tab). Therefore these configuration options are not available."]})})})}):e.jsx(e.Fragment,{children:(!h||i.some(V=>[l.wpo365Customers].some(z=>z==V)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{children:[e.jsx("span",{children:"WordPress user (meta) to AAD B2C / Entra Ext. ID user attributes mappings"}),e.jsx("br",{}),e.jsx("em",{style:{color:"#0078d4"},children:'You must click "+" to add the current item.'})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365Customers],children:e.jsx(Dx,{newTriplet:[{value:"",defaultValue:"",placeholder:"Source for this user attribute",options:["WP_User","usermeta"]},{value:"",defaultValue:"",placeholder:"WordPress user (meta) key e.g. display_name"},{value:"",defaultValue:"",placeholder:"AAD B2C / Entra Ext. ID attribute e.g. name"}],onChanged:V=>{const z=[];V.map(J=>{J.length==3&&z.push({strA:J[0].value,strB:J[1].value,strC:J[2].value})}),v({...y,wpToAadUserAttributeMappings:z})},triplets:y.wpToAadUserAttributeMappings.map(V=>[{value:V.strA,defaultValue:V.strA},{value:V.strB,defaultValue:V.strB},{value:V.strC,defaultValue:V.strC}])})})})]}),y.wpToAadUserAttributeMappings.length>0&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Update sensitive properties in AAD B2C / Entra External ID (Entra for Customers)"}),e.jsx(de,{info:{title:"Update sensitive properties in AAD B2C / Entra External ID (Entra for Customers)",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/190-update-sensitive-properties-in-azure-ad-b2c-for-customers"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365Customers],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(V,z)=>{if(y.wpToAadUpdateSensitiveProps){v({...y,wpToAadUpdateSensitiveProps:!1});return}C({title:"Important",subText:`If you check this option you must assign the role of <strong>Privileged Authentication Administrator</strong> or <strong>Global Administrator</strong> to your registered application's <strong>service principal</strong>. Refer to the <a href="https://docs.wpo365.com/article/190-update-sensitive-properties-in-azure-ad-b2c-for-customers" target="_blank">online documentation</a> for further details.`,onDismiss:()=>C(null),onCancel:()=>C(null),onConfirm:()=>{C(null),v({...y,wpToAadUpdateSensitiveProps:!0})}})},checked:y.wpToAadUpdateSensitiveProps})})})})]})]})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Avatar"})})}),(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(z=>z==V)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Use Microsoft 365 Avatar"}),e.jsx(de,{info:{title:"Use O365 Avatar",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/96-microsoft-365-profile-picture-as-wp-avatar"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(jn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:y.useAvatar,onChange:(V,z)=>{if(P("useAvatar"),y.useAvatar)Q({...y,useAvatar:!1,skipAvatarForOthers:!1,useBpAvatar:!1}).then(J=>P(null));else{const J={title:me.titleUseAvatar,subText:me.subTextUseAvatar,onDismiss:()=>{C(null),P(null)},onCancel:()=>{C(null),P(null)},onConfirm:()=>{C(null),Q({...y,useAvatar:!0}).then(ee=>P(null))}};C(J)}}}),Y=="useAvatar"&&e.jsx(Oe,{size:Te.small})]})})})]}),(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(z=>z==V)))&&y.useAvatar&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Only refresh avatar for logged-in user"}),e.jsx(de,{info:{title:"Only refresh avatar for logged-in user",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/110-only-refresh-avatar-for-logged-in-user"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(V,z)=>v({...y,skipAvatarForOthers:z??!1}),checked:y.skipAvatarForOthers})})})})]}),(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(z=>z==V)))&&y.useAvatar&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Do not save default WP avatar"}),e.jsx(de,{info:{title:"Do not save default WP avatar",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/212-do-not-save-default-wp-avatar"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(V,z)=>v({...y,avatarSkipSaveDefault:z??!1}),checked:y.avatarSkipSaveDefault})})})})]}),(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(z=>z==V)))&&y.useAvatar&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Use Microsoft 365 Avatar for BuddyPress"}),e.jsx(de,{info:{title:"Use O365 Avatar (Buddy Press)",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/96-microsoft-365-profile-picture-as-wp-avatar"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(V,z)=>Z(y.useBpAvatar,J=>v({...y,useBpAvatar:z??!1}),me.titleUseBpAvatar,me.subTextUseBpAvatar),checked:y.useBpAvatar})})})})]}),(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(z=>z==V)))&&y.useAvatar&&e.jsxs("tr",{children:[e.jsx("th",{children:"Avatar template"}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(fe,{isValid:(V,z)=>!0,onValid:V=>v({...y,avatarTemplate:V}),bound:!1,value:y.avatarTemplate,placeholder:y.avatarTemplate})})})]}),(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(z=>z==V)))&&y.useAvatar&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Avatar refresh"}),e.jsx(de,{info:{title:"Avatar refresh",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/122-avatar-refresh"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(fe,{isValid:(V,z)=>/^\d+$/.test(z),onValid:V=>v({...y,avatarUpdated:parseInt(V)}),bound:!1,errorMessage:me.errAvatarUpdatedMustBeNumeric,value:y.avatarUpdated.toString(),placeholder:me.infoAvatarUpdated})})})]}),(!h||i.some(V=>[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(z=>z==V)))&&y.useAvatar&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Avatar hook priority"}),e.jsx(de,{info:{title:"Avatar hook priority",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/161-avatar-hook-priority"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:i,targets:[l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Avatar,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(fe,{isValid:(V,z)=>/^\d+$/.test(z),onValid:V=>v({...y,avatarHookPriority:parseInt(V)}),bound:!1,errorMessage:"The priority must be number between 1 and 99999",value:y.avatarHookPriority.toString(),placeholder:"Priority for the get_avatar hook"})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(rt,{onClick:()=>Q(),iconProps:{iconName:H==we.success?"Like":void 0},style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px",alignSelf:"start"},disabled:["errors","working","loading"].indexOf(o)>=0,children:"Save configuration"}),H==we.success?e.jsx("p",{style:{color:"#378805"},children:me.okSettingsUpdated}):null]})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Bs,{})})}),b&&e.jsx(Ws,{onCancel:b.onCancel,onConfirm:b.onConfirm,onDismiss:b.onDismiss,title:b.title,subText:b.subText})]})})})},Ln=E.createContext({appInstances:[],isDirty:!1,isPremium:!1,lastMessage:null,lastModified:null,panelChild:null,permissionsPickerFn:null,saveStatus:"initial",selectedAppInstanceId:void 0,setAppInstances:s=>{},setIsDirty:s=>{},setLastMessage:s=>{},setLastModified:s=>{},setPanelChild:s=>{},setPermissionsPickerFn:s=>null,setSaveStatus:s=>{},setSelectedAppInstanceId:s=>{},setShowPreview:s=>{},showPreview:!1}),SR=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"35",height:"35",viewBox:"0 0 48 48",children:[e.jsx("path",{fill:"#ffc107",d:"M40,41H8c-2.206,0-4-1.794-4-4V11c0-2.206,1.794-4,4-4h32c2.206,0,4,1.794,4,4v26	C44,39.206,42.206,41,40,41z"}),e.jsx("path",{fill:"#212121",d:"M34,12.98H14.02c-2.2,0-4,1.79-4,4V30c0,1.86,1.27,3.42,2.98,3.86v-2.14	c-0.59-0.35-0.98-0.99-0.98-1.72V16.98c0-1.1,0.9-2,2-2H34c1.1,0,2,0.9,2,2V30c0,0.74-0.4,1.38-1,1.73v2.14c1.73-0.44,3-2.01,3-3.87	V16.98C38,14.77,36.21,12.98,34,12.98z"}),e.jsx("path",{fill:"#212121",d:"M16.5,28L16.5,28c0.828,0,1.5,0.672,1.5,1.5v5c0,0.828-0.672,1.5-1.5,1.5l0,0	c-0.828,0-1.5-0.672-1.5-1.5v-5C15,28.672,15.672,28,16.5,28z"}),e.jsx("path",{fill:"#212121",d:"M21.5,22L21.5,22c0.828,0,1.5,0.672,1.5,1.5v11c0,0.828-0.672,1.5-1.5,1.5l0,0	c-0.828,0-1.5-0.672-1.5-1.5v-11C20,22.672,20.672,22,21.5,22z"}),e.jsx("path",{fill:"#212121",d:"M26.5,25L26.5,25c0.828,0,1.5,0.672,1.5,1.5v8c0,0.828-0.672,1.5-1.5,1.5l0,0	c-0.828,0-1.5-0.672-1.5-1.5v-8C25,25.672,25.672,25,26.5,25z"}),e.jsx("path",{fill:"#212121",d:"M31.5,18L31.5,18c0.828,0,1.5,0.672,1.5,1.5v15c0,0.828-0.672,1.5-1.5,1.5l0,0	c-0.828,0-1.5-0.672-1.5-1.5v-15C30,18.672,30.672,18,31.5,18z"})]}),CR=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"35",height:"35",viewBox:"0 0 48 48",children:[e.jsx("path",{fill:"#1976d2",d:"M28,13h14.533C43.343,13,44,13.657,44,14.467v19.066C44,34.343,43.343,35,42.533,35H28V13z"}),e.jsx("rect",{width:"14",height:"15.542",x:"28",y:"17.958",fill:"#fff"}),e.jsx("polygon",{fill:"#1976d2",points:"27,44 4,39.5 4,8.5 27,4"}),e.jsx("path",{fill:"#fff",d:"M15.25,16.5c-3.176,0-5.75,3.358-5.75,7.5s2.574,7.5,5.75,7.5S21,28.142,21,24	S18.426,16.5,15.25,16.5z M15,28.5c-1.657,0-3-2.015-3-4.5s1.343-4.5,3-4.5s3,2.015,3,4.5S16.657,28.5,15,28.5z"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"28.047",y:"29.737",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"31.448",y:"29.737",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"34.849",y:"29.737",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"28.047",y:"26.159",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"31.448",y:"26.159",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"34.849",y:"26.159",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"38.25",y:"26.159",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"28.047",y:"22.706",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"31.448",y:"22.706",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"34.849",y:"22.706",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"38.25",y:"22.706",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"31.448",y:"19.112",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"34.849",y:"19.112",fill:"#1976d2"}),e.jsx("rect",{width:"2.7",height:"2.9",x:"38.25",y:"19.112",fill:"#1976d2"})]}),kR=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"35",height:"35",viewBox:"0 0 48 48",children:[e.jsx("path",{fill:"#13504f",d:"M23 4A12 12 0 1 0 23 28A12 12 0 1 0 23 4Z"}),e.jsx("path",{fill:"#13a3a9",d:"M33.5 16A10.5 10.5 0 1 0 33.5 37A10.5 10.5 0 1 0 33.5 16Z"}),e.jsx("path",{fill:"#1ddaea",d:"M24 28A8 8 0 1 0 24 44A8 8 0 1 0 24 28Z"}),e.jsx("path",{fill:"#027178",d:"M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"}),e.jsx("path",{fill:"#fff",d:"M10.432,28.75v-2.298c0.426,0.349,2.391,1.048,2.9,1.048c0.299,0,2.138,0.088,2.138-1.041 c0-1.633-5.082-1.494-5.082-4.725c0-0.536,0.066-3.059,4.133-3.059c1.041,0,2.271,0.261,2.628,0.395v2.147 c-0.176-0.12-0.89-0.718-2.496-0.718c-1.877,0-2.04,0.883-2.04,1.041c0,1.359,4.998,1.544,4.998,4.711 c0,3.172-3.614,3.074-4.177,3.074C12.857,29.325,10.814,28.942,10.432,28.75z"})]}),MR=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"35",height:"35",viewBox:"0 0 48 48",children:[e.jsx("path",{fill:"#1365be",d:"M19.216,32.504l10.418,10.347c0.522,0.519,1.373,0.48,1.847-0.083 c1.948-2.314,6.382-8.132,6.382-13.154l-15.989-4.2L19.216,32.504z"}),e.jsx("path",{fill:"#18a7ed",d:"M19.062,15.513L29.705,4.87c0.429-0.429,1.123-0.423,1.537,0.02c1.601,1.712,5.237,6.149,6.66,12.434 L19.524,22.14L19.062,15.513z"}),e.jsx("path",{fill:"#0a84f0",d:"M22.76,20.714l18.68-5.035c0.597-0.161,1.208,0.19,1.361,0.789c0.342,1.347,0.841,3.927,0.841,7.521 c0,3.597-0.516,6.178-0.87,7.524c-0.157,0.598-0.771,0.943-1.367,0.778L19.023,26.07L22.76,20.714z"}),e.jsx("path",{fill:"#03509a",d:"M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"}),e.jsx("path",{fill:"#fff",d:"M17.824,18.619c-0.475-0.258-1.068-0.082-1.326,0.392l-2.447,4.577l-2.549-4.577 c-0.258-0.475-0.852-0.65-1.326-0.392c-0.475,0.258-0.65,0.852-0.392,1.326l3.074,5.584v2.883c0,0.601,0.488,1.089,1.089,1.089 c0.601,0,1.089-0.488,1.089-1.089v-2.669l3.181-5.798C18.474,19.47,18.299,18.877,17.824,18.619z"})]}),jR=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"35",height:"35",viewBox:"0 0 48 48",children:[e.jsx("path",{fill:"#084593",d:"M24.5 8A14.5 14.5 0 1 0 24.5 37A14.5 14.5 0 1 0 24.5 8Z"}),e.jsx("path",{fill:"#0556ab",d:"M16.155,15.972c-1.32-0.505-2.753-0.781-4.25-0.781C5.33,15.191,0,20.521,0,27.096 c0,2.476,0.757,4.774,2.05,6.678c0.061-0.026,16.445-6.889,26.406-10.888C22.952,19.568,17.903,16.641,16.155,15.972z"}),e.jsx("path",{fill:"#18b0ff",d:"M48,29.373c0-5.317-4.31-9.627-9.627-9.627c-0.997,0-1.958,0.152-2.863,0.433 c-0.996,0.31-3.652,1.342-7.054,2.708c8.377,5.05,17.79,10.996,18.252,11.288C47.525,32.76,48,31.123,48,29.373z"}),e.jsx("path",{fill:"#2cceff",d:"M46.709,34.175c-0.463-0.292-9.875-6.238-18.252-11.288C18.495,26.885,2.111,33.748,2.05,33.774 C2.467,34.388,5.627,39,11.904,39c5.03,0,16.176,0,26.354,0C43.669,39,46.148,35.146,46.709,34.175z"})]}),LR=()=>e.jsx("div",{style:{width:"35px",height:"35px",backgroundImage:"url(data:image/png;base64, )",backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"contain"}}),ER=()=>e.jsxs("svg",{id:"uuid-f8d4d392-7c12-4bd9-baff-66fbf7814b91","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:"35px",height:"35px",viewBox:"0 0 18 18",children:[e.jsx("path",{d:"m3.802,14.032c.388.242,1.033.511,1.715.511.621,0,1.198-.18,1.676-.487,0,0,.001,0,.002-.001l1.805-1.128v4.073c-.286,0-.574-.078-.824-.234l-4.374-2.734Z",fill:"#225086"}),e.jsx("path",{d:"m7.853,1.507L.353,9.967c-.579.654-.428,1.642.323,2.111,0,0,2.776,1.735,3.126,1.954.388.242,1.033.511,1.715.511.621,0,1.198-.18,1.676-.487,0,0,.001,0,.002-.001l1.805-1.128-4.364-2.728,4.365-4.924V1s0,0,0,0c-.424,0-.847.169-1.147.507Z",fill:"#6df"}),e.jsx("polygon",{points:"4.636 10.199 4.688 10.231 9 12.927 9.001 12.927 9.001 12.927 9.001 5.276 9 5.275 4.636 10.199",fill:"#cbf8ff"}),e.jsx("path",{d:"m17.324,12.078c.751-.469.902-1.457.323-2.111l-4.921-5.551c-.397-.185-.842-.291-1.313-.291-.925,0-1.752.399-2.302,1.026l-.109.123h0s4.364,4.924,4.364,4.924h0s0,0,0,0l-4.365,2.728v4.073c.287,0,.573-.078.823-.234l7.5-4.688Z",fill:"#074793"}),e.jsx("path",{d:"m9.001,1v4.275s.109-.123.109-.123c.55-.627,1.377-1.026,2.302-1.026.472,0,.916.107,1.313.291l-2.579-2.909c-.299-.338-.723-.507-1.146-.507Z",fill:"#0294e4"}),e.jsx("polygon",{points:"13.365 10.199 13.365 10.199 13.365 10.199 9.001 5.276 9.001 12.926 13.365 10.199",fill:"#96bcc2"})]});var Oc=(s=>(s.list="list",s.table="table",s.cards="cards",s))(Oc||{}),Mn=(s=>(s.Aad="Aad",s.reportInGroup="reportInGroup",s.dashboardInGroup="dashboardInGroup",s.tileInGroup="tileInGroup",s))(Mn||{}),$r=(s=>(s.dashboard="dashboard",s.paginatedReport="paginatedReport",s.report="report",s.tile="tile",s))($r||{}),aS=(s=>(s.Off="Off",s.ReadOnly="ReadOnly",s))(aS||{}),Vr=(s=>(s.users="users",s.groups="groups",s.current="current",s.shared="shared",s))(Vr||{}),aw=(s=>(s.custom="custom",s.today="today",s.currentWeek="currentWeek",s.currentMonth="currentMonth",s.currentYear="currentYear",s))(aw||{}),lS=(s=>(s.day="day",s.week="week",s.month="month",s.year="year",s))(lS||{}),hs=(s=>(s.error="error",s.info="info",s.warning="warning",s))(hs||{});const wi=()=>{const{env:{props:{siteUrl:s,restNonce:o}}}=E.useContext(Ye),{setLastMessage:n}=E.useContext(Ln),[t,i]=E.useState(!1),[d,c]=E.useState(null),[u,h]=E.useState(!1),[g,_]=E.useState(!1),[m,x]=E.useState(!1),y=(C,k)=>{const I=`${C.response?.data?.error_message||C.response?.data?.message||C.message||(typeof C=="string"?C:`Status: ${C.status} ${C.statusText||""}`)}${C.status?" | Status: "+C.status:""} | Url: ${k}]`;n({type:hs.error,message:I})},v=(C,k="get",L)=>{_(!0),c(null),i(!1),h(!1),x(!1);const I=`${s.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/${C}`;!k||k==="get"?Ee.get(I,{headers:{Accept:"application/json","X-WP-Nonce":o}}).then(A=>{if(A.status<200||A.status>=300)throw"data"in A&&"error_message"in A.data?A.data.error_message:A.statusText;c(A.data)}).catch(A=>{y(A,I)}).finally(()=>_(!1)):k==="post"?Ee.post(I,L||{},{headers:{Accept:"application/json","Content-Type":"application/json","X-WP-Nonce":o}}).then(A=>{if(A.status<200||A.status>=300)throw"data"in A&&"error_message"in A.data?A.data.error_message:A.statusText;c(A.data),i(!0)}).catch(A=>{y(A,I)}).finally(()=>_(!1)):k==="delete"?Ee.delete(I,{headers:{Accept:"application/json","Content-Type":"application/json","X-WP-Nonce":o}}).then(A=>{if(A.status!==204)throw"data"in A&&"error_message"in A.data?A.data.error_message:A.statusText;h(!0)}).catch(A=>{y(A,I)}).finally(()=>_(!1)):k==="put"&&Ee.put(I,L,{headers:{Accept:"application/json","Content-Type":"application/json","X-WP-Nonce":o}}).then(A=>{if(A.status===200)c(A.data);else if(A.status===204)x(!0);else throw"data"in A&&"error_message"in A.data?A.data.error_message:A.statusText}).catch(A=>{y(A,I)}).finally(()=>_(!1))},b=()=>{c(null)};return E.useMemo(()=>({apiFetch:v,created:t,data:d,deleted:u,loading:g,updated:m,reset:b}),[d,u,g,m])},bd=()=>{const{appInstances:s,setAppInstances:o,selectedAppInstanceId:n,setIsDirty:t,setLastMessage:i,setLastModified:d,setSaveStatus:c,setSelectedAppInstanceId:u}=E.useContext(Ln),{env:h,updateSettings:g}=E.useContext(Ye),_=E.useRef(void 0),m=E.useRef(void 0),x=E.useRef(void 0),{apiFetch:y,data:v,loading:b}=wi();E.useEffect(()=>{if(n){const I=s.find(A=>A.id===n);I&&d(new Intl.DateTimeFormat(navigator.language,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}).format(new Date(I.modified)))}},[n]);const C=()=>{m.current&&y(`apps/instance/${m.current.id}`,"put",{appInstance:{...m.current}})};return x.current=C,E.useEffect(()=>()=>{_.current&&clearTimeout(_.current)},[]),E.useEffect(()=>{b?c("saving"):(c("initial"),t(!1))},[b]),E.useEffect(()=>{if(v){const I=structuredClone(v);u(I.id),o(A=>[...A.map(Y=>Y.id===I.id?I:Y)]),Fe.getSettings(h).then(A=>{g(A)}).catch(A=>i({type:hs.error,message:"Failed to refresh locally cached WPO365 configuration. Please try and refresh the current page instead."}))}},[v]),{autoSaving:b,saveNow:I=>{m.current=I,_.current&&(clearTimeout(_.current),_.current=void 0),C()},shouldSave:I=>{m.current=I,t(!0),_.current&&clearTimeout(_.current),_.current=setTimeout(()=>x.current?.(),2e3)}}},Px=[{key:"01",text:"January"},{key:"02",text:"February"},{key:"03",text:"March"},{key:"04",text:"April"},{key:"05",text:"Mai"},{key:"06",text:"June"},{key:"07",text:"July"},{key:"08",text:"August"},{key:"09",text:"September"},{key:"10",text:"October"},{key:"11",text:"November"},{key:"12",text:"December"}],DR=s=>{const{settings:o}=E.useContext(Ye),{appInstances:n,isPremium:t,selectedAppInstanceId:i,setLastMessage:d}=E.useContext(Ln),{shouldSave:c}=bd(),u=E.useMemo(()=>n.find(L=>L.id===i),[n,i]),[h,g]=E.useState(u?structuredClone(u):null),[_,m]=E.useState(h?.config?.start?h.config.start.slice(5,7):""),[x,y]=E.useState(h?.config?.start?h.config.start.slice(0,4):""),[v,b]=E.useState(h?.config?.stop?h.config.stop.slice(5,7):""),[C,k]=E.useState(h?.config?.stop?h.config.stop.slice(0,4):"");return E.useEffect(()=>{if(_&&x){if(!h)return;g({...h,config:{...h.config,start:new Date(Date.UTC(parseInt(x),parseInt(_),1)).toISOString()}})}},[_,x]),E.useEffect(()=>{if(v&&C){if(!h)return;g({...h,config:{...h.config,stop:new Date(Date.UTC(parseInt(C),parseInt(v),1)).toISOString()}})}},[v,C]),E.useEffect(()=>{h&&JSON.stringify(h)!==JSON.stringify(u)&&c(h)},[h]),E.useEffect(()=>{const L=u?structuredClone(u):null;g(L),m(L?.config?.start?L.config.start.slice(5,7):""),y(L?.config?.start?L.config.start.slice(0,4):""),b(L?.config?.stop?L.config.stop.slice(5,7):""),k(L?.config?.stop?L.config.stop.slice(0,4):"")},[u?.id]),!u||!h?null:e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365AppsIcon,children:ki(u.appType)}),e.jsx(Xr,{type:gr.info,children:u.appType}),e.jsx("h3",{style:{paddingLeft:"15px"},children:"Edit Form"})]}),!t&&e.jsx("div",{dangerouslySetInnerHTML:{__html:'Disabled options require a premium license e.g. <a href="https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/" target="_blank">WPO365 | APPS</a> or <a href="https://www.wpo365.com/downloads/wpo365-integrate/" target="_blank">WPO365 | INTEGRATE</a>'},style:{color:"#0078D4"}}),(o.noSso||!o.applicationId||o.useSaml)&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsx(U,{tokens:{childrenGap:15},children:e.jsxs("div",{children:["Please complete the configuration for"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/single-sign-on-openid-connect/",target:"_blank",rel:"noreferrer",children:"OpenID Connect based Single Sign-on"})," ","first. Following the instructions will help you create an ",e.jsx("strong",{children:"App Registration"})," that WPO365 can then use to connect to Microsoft Graph and the Power BI service on behalf of the logged-in user."]})})]}),e.jsx("span",{children:"Enter a user friendly name for this app."}),e.jsx(fe,{isValid:(L,I)=>I?.length<21,onValid:L=>{g({...h,title:L})},bound:!1,errorMessage:"Please shorten to 20 characters.",value:u.title,placeholder:'Display name e.g. "Sales Dashboard"'}),e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Allow anonymous users to interact with this app."}),e.jsx(ce,{checked:h?.appliedRequirements?.userRequirements?.appOnlyAccess,onChange:(L,I)=>{g({...h,config:{...h.config,calendarSource:I?Vr.users:h.config?.calendarSource||Vr.users},appliedRequirements:{...h.appliedRequirements,userRequirements:{...h.appliedRequirements.userRequirements,appOnlyAccess:I},appOnly:{...h.appliedRequirements.appOnly,endpoints:I?["https://graph.microsoft.com/_/users"]:[],permissions:I?["Calendars.Read"]:[]},delegated:{...h.appliedRequirements.delegated,endpoints:I?[]:["https://graph.microsoft.com/_/users"],permissions:I?[""]:["Calendars.Read"]}}})},disabled:!t})]}),e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Permissions"}),e.jsxs("div",{children:["Please ensure that you have granted the following permissions to the"," ",e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/CallAnAPI/appId/${h?.appliedRequirements?.userRequirements?.appOnlyAccess?o.appOnlyApplicationId:o.applicationId}/isMSAApp~/false`,target:"_blank",rel:"noreferrer",children:"App Registration"}),` with ID ${h?.appliedRequirements?.userRequirements?.appOnlyAccess?o.appOnlyApplicationId:o.applicationId}.`]}),e.jsx("ul",{style:{marginBottom:"0px"},children:h?.appliedRequirements?.userRequirements?.appOnlyAccess?h?.appliedRequirements?.appOnly?.permissions?.map(L=>e.jsxs("li",{children:["Application permissions > ",L]})):h?.appliedRequirements?.delegated?.permissions?.map(L=>e.jsxs("li",{children:["Delegated permissions > ",L]}))})]})]}),e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Endpoints"}),e.jsx("div",{children:"WPO365 will automatically allow apps to request data from the following endpoints provided by its custom WordPress REST API for Microsoft Graph / M365 Services."}),e.jsx("ul",{className:"wpo-ul mt-1 mb-1 small text-primary",children:h?.appliedRequirements?.userRequirements?.appOnlyAccess?h?.appliedRequirements?.appOnly?.endpoints?.map(L=>e.jsx("li",{children:`${L} | application-only access: yes}`})):h?.appliedRequirements?.delegated?.endpoints?.map(L=>e.jsx("li",{children:`${L} | application-only access: no}`}))})]})]}),e.jsx("span",{children:"Select a source for the calendar."}),e.jsx($e,{placeholder:"Select an option",style:{maxWidth:"400px"},selectedKey:h?.config?.calendarSource,options:[{key:"current",text:"Logged-in User",disabled:!t||h?.appliedRequirements?.userRequirements?.appOnlyAccess},{key:"shared",text:"Shared Calendar",disabled:!t||h?.appliedRequirements?.userRequirements?.appOnlyAccess},{key:"users",text:"Specific User"},{key:"groups",text:"Specific Group",disabled:h?.appliedRequirements?.userRequirements?.appOnlyAccess}],onChange:(L,I)=>{g({...h,config:{...h.config,calendarSource:I.key},appliedRequirements:{...h.appliedRequirements,appOnly:{...h.appliedRequirements.appOnly,permissions:I.key===Vr.users&&h.appliedRequirements.userRequirements.appOnlyAccess?["Calendars.Read"]:[],endpoints:I.key===Vr.users&&h.appliedRequirements.userRequirements.appOnlyAccess?["https://graph.microsoft.com/_/users"]:[]},delegated:{...h.appliedRequirements.delegated,permissions:h.appliedRequirements.userRequirements.appOnlyAccess?[]:I.key===Vr.shared?["Calendars.Read.Shared"]:I.key===Vr.groups?["Group.Read.All"]:["Calendars.Read"],endpoints:h.appliedRequirements.userRequirements.appOnlyAccess?[]:I.key===Vr.current?["https://graph.microsoft.com/_/me"]:I.key===Vr.groups?["https://graph.microsoft.com/_/groups"]:["https://graph.microsoft.com/_/users"]}}})}}),h?.config?.calendarSource!==Vr.current&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:h?.config?.calendarSource===Vr.shared||h?.config?.calendarSource===Vr.users?"User principal name or Object ID":"Group Object ID"}),e.jsx(fe,{bound:!1,placeholder:h?.config?.calendarSource===Vr.shared||h?.config?.calendarSource===Vr.users?"e.g. user@domain":"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",isValid:(L,I)=>/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/.test(I)||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(I),onValid:L=>g({...h,config:{...h.config,id:L}}),errorMessage:"Calendar identifier must be a valid user principal name or an Object ID (GUID)",value:h?.config?.id||""})]}),e.jsx("span",{children:"Choose how calendar events are grouped."}),e.jsx($e,{placeholder:"Select an option",style:{maxWidth:"400px"},selectedKey:h?.config?.groupBy,options:[{key:"day",text:"By day"},{key:"week",text:"By week"},{key:"month",text:"By month"},{key:"year",text:"By year"}],onChange:(L,I)=>{g({...h,config:{...h.config,groupBy:I.key}})},disabled:!t}),e.jsx("span",{children:"Configure date range for displayed events."}),e.jsx($e,{placeholder:"Select an option",style:{maxWidth:"400px"},selectedKey:h?.config?.range,options:[{key:"custom",text:"Custom"},{key:"today",text:"Today"},{key:"currentWeek",text:"This week"},{key:"currentMonth",text:"This month"},{key:"currentYear",text:"This year"}],onChange:(L,I)=>{g({...h,config:{...h.config,range:I.key}})},disabled:!t}),h?.config?.range===aw.custom&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Custom range: Start"}),e.jsx(ce,{onChange:(L,I)=>{const A=I?!!h.config?.oneYear:!1;g({...h,config:{...h.config,startToday:I??!1,oneYear:A}})},checked:h?.config?.startToday,label:"Today (rolling)"}),!h?.config?.startToday&&e.jsxs(U,{horizontal:!0,horizontalAlign:"start",tokens:{childrenGap:10},children:[e.jsx($e,{placeholder:"Select first month",style:{maxWidth:"200px"},selectedKey:_,options:Px,onChange:(L,I)=>m(String(I.key))}),e.jsx(fe,{bound:!1,isValid:(L,I)=>{const A=parseInt(I);return!isNaN(A)&&A>1900&&A<2099},onValid:L=>y(L),value:x,placeholder:"Year e.g. 2024"})]}),e.jsx("span",{children:"Custom range: Stop"}),!!h?.config?.startToday&&e.jsx(ce,{onChange:(L,I)=>g({...h,config:{...h.config,oneYear:I??!1}}),checked:h?.config?.oneYear,label:"Show events for the upcoming year."}),!h?.config?.oneYear&&e.jsxs(U,{horizontal:!0,horizontalAlign:"start",tokens:{childrenGap:10},children:[e.jsx($e,{placeholder:"Select last month",style:{maxWidth:"200px"},selectedKey:v,options:Px,onChange:(L,I)=>b(String(I.key))}),e.jsx(fe,{bound:!1,isValid:(L,I)=>{const A=parseInt(I);return!isNaN(A)&&A>1900&&A<2099},onValid:L=>k(L),value:C,placeholder:"Year e.g. 2024"})]})]})]})},IR="modulepreload",TR=function(s,o){return new URL(s,o).href},Rx={},lw=function(o,n,t){let i=Promise.resolve();if(n&&n.length>0){let g=function(_){return Promise.all(_.map(m=>Promise.resolve(m).then(x=>({status:"fulfilled",value:x}),x=>({status:"rejected",reason:x}))))};const c=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),h=u?.nonce||u?.getAttribute("nonce");i=g(n.map(_=>{if(_=TR(_,t),_ in Rx)return;Rx[_]=!0;const m=_.endsWith(".css"),x=m?'[rel="stylesheet"]':"";if(!!t)for(let b=c.length-1;b>=0;b--){const C=c[b];if(C.href===_&&(!m||C.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${x}`))return;const v=document.createElement("link");if(v.rel=m?"stylesheet":IR,m||(v.as="script"),v.crossOrigin="",v.href=_,h&&v.setAttribute("nonce",h),document.head.appendChild(v),m)return new Promise((b,C)=>{v.addEventListener("load",b),v.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${_}`)))})}))}function d(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return i.then(c=>{for(const u of c||[])u.status==="rejected"&&d(u.reason);return o().catch(d)})},dS=s=>{const{appInstance:o,updateAppInstance:n}=s,[t,i]=E.useState({});return E.useEffect(()=>i(o?.config?.translations||{}),[]),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365AppsIcon,children:ki(o.appType)}),e.jsx(Xr,{type:gr.info,children:o.appType}),e.jsx("h3",{style:{paddingLeft:"15px"},children:"Edit translations"})]}),Object.keys(t).sort().map(d=>e.jsxs(U,{tokens:{childrenGap:5},children:[e.jsx("div",{children:e.jsx("strong",{children:d})}),e.jsx(fe,{value:t[d],isValid:()=>!0,onValid:c=>{if(c===t[d])return;const u={...t};u[d]=c,i(u),n({...o,config:{...o.config,translations:{...u}}})},bound:!1})]}))]})},AR=s=>{const{appInstance:o,updateAppInstance:n}=s,{isPremium:t}=E.useContext(Ln),{env:{props:{extensions:i,pluginsUrl:d,siteUrl:c}}}=E.useContext(Ye),[u,h]=E.useState(!1),g=E.useMemo(()=>{if(!t)return"";const x=d||`${c}/wp-content/plugins`,y=t?i.find(b=>[l.wpo365Apps,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate].indexOf(b)>-1):"wpo365Login";let v="";switch(y){case l.wpo365Apps:v="wpo365-apps";break;case l.wpo365LoginIntranet:v="wpo365-login-intranet";break;case l.wpo365Intranet5y:v="wpo365-intranet-5y";break;case l.wpo365Integrate:v="wpo365-integrate";break;default:v="wpo365-login"}return`${x}/${v}/apps/dist/templates/calendar.template.html`},[]),[_,m]=E.useState(structuredClone(o));return E.useEffect(()=>{u&&(h(!1),n(structuredClone(_)))},[_]),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365AppsIcon,children:ki(o.appType)}),e.jsx(Xr,{type:gr.info,children:o.appType}),e.jsx("h3",{style:{paddingLeft:"15px"},children:"Edit template"})]}),!t&&e.jsx("div",{dangerouslySetInnerHTML:{__html:'Disabled options require a premium license e.g. <a href="https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/" target="_blank">WPO365 | APPS</a> or <a href="https://www.wpo365.com/downloads/wpo365-integrate/" target="_blank">WPO365 | INTEGRATE</a>'},style:{color:"#0078D4",alignSelf:"center"}}),e.jsx("span",{children:"Use calendar picker."}),e.jsx(ce,{checked:_?.config?.template?.usePicker,onChange:(x,y)=>{h(!0),m({..._,config:{..._.config,template:{..._.config.template,usePicker:y}}})},disabled:!t}),!!_?.config?.template?.usePicker&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Max. columns to display (0 for responsive)."}),e.jsx(fe,{bound:!1,isValid:(x,y)=>{const v=parseInt(y);return!isNaN(v)&&v>=0&&v<10},onValid:x=>{h(!0),m({..._,config:{..._.config,template:{..._.config.template,maxCols:parseInt(x)}}})},value:String(_?.config?.template?.maxCols||0),errorMessage:"Value must be between 0 and 10.",placeholder:"e.g. 3 (max 10)"}),e.jsx("span",{children:'Items added on each "Load more".'}),e.jsx(fe,{bound:!1,isValid:(x,y)=>{const v=parseInt(y);return!isNaN(v)&&v>=1&&v<999},onValid:x=>{h(!0),m({..._,config:{..._.config,template:{..._.config.template,loadMore:parseInt(x)}}})},value:String(_?.config?.template?.loadMore||4),errorMessage:"Value must be between 1 and 999.",placeholder:"e.g. 4 (max 999)"}),e.jsx("span",{children:"Disable event detail popups."}),e.jsx(ce,{checked:_?.config?.template?.disablePopups,onChange:(x,y)=>{h(!0),m({..._,config:{..._.config,template:{..._.config.template,disablePopups:y}}})},disabled:!t}),e.jsx("span",{children:"Hide separator."}),e.jsx(ce,{checked:_?.config?.template?.hideSeparator,onChange:(x,y)=>{h(!0),m({..._,config:{..._.config,template:{..._.config.template,hideSeparator:y}}})},disabled:!t}),e.jsx("span",{children:"Hide preview of the body."}),e.jsx(ce,{checked:_?.config?.template?.hideBodyPreview,onChange:(x,y)=>{h(!0),m({..._,config:{..._.config,template:{..._.config.template,hideBodyPreview:y}}})},disabled:!t})]}),e.jsx("span",{children:"Use a custom Event template (popup)."}),e.jsx(ce,{checked:_?.config?.template?.useTemplate,onChange:(x,y)=>{h(!0),m({..._,config:{..._.config,template:{..._.config.template,useTemplate:y,templateUrl:y?g:""}}})},disabled:!t}),e.jsx("span",{children:"Template URL."}),e.jsx(fe,{isValid:(x,y)=>!y||/^(https?:\/\/)([^\s$.?#].[^\s]*)$/i.test(y),onValid:x=>{h(!0),m({..._,config:{..._.config,template:{..._.config.template,templateUrl:x}}})},bound:!1,errorMessage:"A valid URL must start with http(s)://.",value:o?.config?.template?.templateUrl||g,placeholder:"e.g. https://url/template.html",disabled:!t||!_.config.template.useTemplate})]})},Fx={root:{minWidth:0,padding:"10px",alignSelf:"stretch",height:"auto",backgroundColor:"#f1f1f1"},rootHovered:{backgroundColor:"#f4f4f4"}},PR=E.lazy(()=>lw(()=>import("./wizard-chunk-BW2PNMbJ.js"),[],import.meta.url)),RR=()=>{const{appInstances:s,isPremium:o,selectedAppInstanceId:n,setPanelChild:t,setSelectedAppInstanceId:i,setShowPreview:d,showPreview:c}=E.useContext(Ln),{env:{nonce:u,props:{extensions:h,pluginsUrl:g,siteUrl:_},wpAjaxAdminUrl:m}}=E.useContext(Ye),x=E.useMemo(()=>s.find(k=>k.id===n),[s]),[y,v]=E.useState(x?structuredClone(x):null),{shouldSave:b}=bd();E.useEffect(()=>{y&&JSON.stringify(y)!==JSON.stringify(x)&&b(y)},[y]);const C=E.useMemo(()=>{const k=Date.now().toString(16),L=Math.floor(Math.random()*1048575).toString(16);return k+L},[y]);return E.useEffect(()=>{if(y&&c){window.wpo365=window.wpo365||{},window.wpo365.appConfigs=window.wpo365.appConfigs||{},window.wpo365.appConfigs[`_${y.id}`]={config:structuredClone(y.config),nonce:u,userRequirements:structuredClone(y.appliedRequirements?.userRequirements),wpAjaxAdminUrl:m};const k=()=>{const L=g||`${_}/wp-content/plugins`,I=o?h.find(T=>[l.wpo365Apps,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate].indexOf(T)>-1):"wpo365Login";let A="";switch(I){case l.wpo365Apps:A="wpo365-apps";break;case l.wpo365LoginIntranet:A="wpo365-login-intranet";break;case l.wpo365Intranet5y:A="wpo365-intranet-5y";break;case l.wpo365Integrate:A="wpo365-integrate";break;default:A="wpo365-login"}let Y="";switch(y.appType){case"cal":Y=o?"calendar":"calendarBasic";break}const P=document.createElement("script");P.src=`${L}/${A}/apps/dist/${Y}.js?rootId=${C}&appId=${y.id}`,P.type="module",P.onload=k,document.head.appendChild(P)};if(document.getElementById("wpo365React"))k();else{const L=document.createElement("script");L.id="wpo365React",L.src="https://cdnjs.cloudflare.com/ajax/libs/react/16.14.0/umd/react.production.min.js",L.onload=()=>{const I=document.createElement("script");I.id="wpo365ReactDom",I.src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.14.0/umd/react-dom.production.min.js",I.onload=k,document.head.appendChild(I)},document.head.appendChild(L)}}},[c,y]),e.jsxs(U,{className:j.wpo365AppPreview,tokens:{childrenGap:15},children:[e.jsx("h3",{className:j.wpo365AppsHeading,children:"App preview"}),e.jsx(ph,{className:j.wpo365AppPreviewMenu,items:[{key:"close",name:"Close",icon:"Cancel",onClick:()=>{d(!1),i(void 0)}},{disabled:!o,key:"editColumns",icon:"Edit",name:"Columns",onClick:()=>{t({elem:e.jsx(E.Suspense,{fallback:e.jsx("div",{children:"Loading..."}),children:e.jsx(PR,{appInstance:y,updateAppInstance:v,configPropName:"columns",standAlone:!0})}),onDismiss:()=>{}})}},{disabled:!o,key:"editTranslations",icon:"Edit",name:"Translations",onClick:()=>{t({elem:e.jsx(dS,{appInstance:y,updateAppInstance:v}),onDismiss:()=>{}})}},{key:"editTemplate",icon:"Edit",name:"Template",onClick:()=>{t({elem:e.jsx(AR,{appInstance:{...y},updateAppInstance:v}),onDismiss:()=>{}})}}],onRenderOverflowButton:k=>e.jsx(Dn,{styles:Fx,text:"Edit options",iconProps:{iconName:"More"},menuProps:{items:k}}),onRenderItem:k=>k.onRender?k.onRender(k):e.jsx(Dn,{disabled:k.disabled,iconProps:{iconName:k.icon},menuProps:k.subMenuProps,text:k.name,onClick:k.onClick,styles:Fx})}),!o&&e.jsx("div",{dangerouslySetInnerHTML:{__html:'Disabled options require a premium license e.g. <a href="https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/" target="_blank">WPO365 | APPS</a> or <a href="https://www.wpo365.com/downloads/wpo365-integrate/" target="_blank">WPO365 | INTEGRATE</a>'},style:{color:"#0078D4",alignSelf:"center"}}),e.jsx("div",{id:C})]})},cS=s=>{for(var o=0,n=0,t=s.length;n<t;)o=(o<<5)-o+s.charCodeAt(n++)<<0;return(o+2147483647+1).toString()},FR=(s,o)=>{const n=sessionStorage.getItem("pbiEmbedUrlCache");if(n===null)return null;const t=JSON.parse(n),i=cS(`${s}_${o}`),d=Object.keys(t);let c=null;for(let u=d.length-1;u>=0;u--)if(d[u]===i)if(t[d[u]].expiration&&t[d[u]].expiration>Date.now()){c=t[d[u]].embedUrl;continue}else delete t[d[u]];return sessionStorage.setItem("pbiEmbedUrlCache",JSON.stringify(t)),c||null},NR=(s,o,n)=>{const t=sessionStorage.getItem("pbiEmbedUrlCache"),i=t==null?{}:JSON.parse(t),d=cS(`${s}_${o}`);i[d]={embedUrl:n,expiration:Date.now()+36e5},sessionStorage.setItem("pbiEmbedUrlCache",JSON.stringify(i))},OR=()=>{const{setLastMessage:s}=E.useContext(Ln);return{getSrcEmbed:async i=>{const{contentType:d,groupId:c,reportId:u,dashboardId:h,tileId:g,tokenType:_}=i,m={type:d===$r.paginatedReport?"report":d,tokenType:_===Mn.Aad?0:1,accessToken:"__## WILL BE AUTOMATICALLY SET BY THE APP ##__",settings:{}};if(d===$r.paginatedReport||d===$r.report){if(!c||!u)return s({message:"Workspace and / or report ID are empty. Please update the token-request and embed-configuration manually.",type:hs.error}),m;m.id=u;const x=FR(c,u);if(x)return m.embedUrl=x,m;let y;try{y=await QA({endpoint:"proxy",headers:{Accept:"application/json;odata=nometadata","Content-Type":"application/json"},scope:_!=Mn.Aad?"https://analysis.windows.net/powerbi/api/.default":"https://analysis.windows.net/powerbi/api/Report.Read.All",url:`https://api.powerbi.com/v1.0/myorg/groups/${c}/reports/${u}`,method:sw.get,application:_!=Mn.Aad})}catch(v){const b=typeof v=="string"?v:v.response?.message||v.response?.statusText||v.message;return s({message:`Failed to retrieve the embedUrl. Please update the "embedUrl" manually in the embed-configuration. [Error: ${b}]`,type:hs.error}),m}return y&&"embedUrl"in y?(NR(c,u,y.embedUrl),m.embedUrl=y.embedUrl,m):(s({message:'Failed to retrieve the embedUrl. Please update the "embedUrl" manually in the embed-configuration. [Unexpected response]',type:hs.error}),m)}else d===$r.dashboard?(m.id=h,m.embedUrl=`https://app.powerbi.com/dashboardEmbed?dashboardId=${h}&groupId=${c}`):d===$r.tile&&(m.id=g,m.embedUrl=`https://app.powerbi.com/embed?dashboardId=${h}&tileId=${g}&groupId=${c}`,m.dashboardId=h);return m},getTokenRequest:i=>{const{tokenType:d,groupId:c,reportId:u,datasetIds:h,datasetXmlaPermission:g,reportAllowEdit:_}=i;if(d==Mn.Aad)return{};const m={accessLevel:"View"};switch(d){case Mn.reportInGroup:delete m.accessLevel,c&&(m.targetWorkspaces=[{id:`${c}`}]),u&&(m.reports=[{id:`${u}`,allowEdit:_}]),h&&(m.datasets=h.map(x=>({id:`${x}`,xmlaPermissions:`${g}`})));break;case Mn.dashboardInGroup:break;case Mn.tileInGroup:break}return m},getTokenRequestUrl:i=>{const{tokenType:d,groupId:c,reportId:u,dashboardId:h,tileId:g}=i;switch(d){case Mn.reportInGroup:return"https://api.powerbi.com/v1.0/myorg/GenerateToken";case Mn.dashboardInGroup:return`https://api.powerbi.com/v1.0/myorg/groups/${c}/dashboards/${h}/GenerateToken`;case Mn.tileInGroup:return`https://api.powerbi.com/v1.0/myorg/groups/${c}/dashboards/${h}/tiles/${g}/GenerateToken`;default:return""}}}},vf=E.lazy(()=>lw(()=>import("./wizard-chunk-BW2PNMbJ.js"),[],import.meta.url)),YR=s=>{const{settings:o}=E.useContext(Ye),{appInstances:n,isPremium:t,selectedAppInstanceId:i,setLastMessage:d}=E.useContext(Ln),{shouldSave:c}=bd(),u=E.useMemo(()=>n.find(I=>I.id===i),[n,i]),[h,g]=E.useState(u?structuredClone(u):null),[_,m]=E.useState(!1),[x,y]=E.useState(!1),[v,b]=E.useState(Zt(6)),{getSrcEmbed:C,getTokenRequest:k,getTokenRequestUrl:L}=OR();return E.useEffect(()=>{h&&JSON.stringify(h)!==JSON.stringify(u)&&c(h),Object.keys(h?.config?.embedConfig||{}).length>0&&m(!0)},[h]),E.useEffect(()=>{if(x){if(y(!1),!h)return;_?C(h.config).then(I=>{g({...h,config:{...h.config,tokenRequestUrl:L(h.config),tokenRequest:k(h.config),filterConfig:h.config.filterConfig,embedConfig:{...I}}}),b(Zt(6))}).catch(I=>d({message:typeof I=="string"?I:I.message,type:hs.error})):g({...h,config:{...h.config,tokenRequestUrl:"",tokenRequest:{},filterConfig:{},embedConfig:{}}})}},[x]),E.useEffect(()=>{g(u?structuredClone(u):null)},[u?.id]),!u||!h?null:e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365AppsIcon,children:ki(u.appType)}),e.jsx(Xr,{type:gr.info,children:u.appType}),e.jsx("h3",{style:{paddingLeft:"15px"},children:"Edit Form"})]}),!t&&e.jsx("div",{dangerouslySetInnerHTML:{__html:'Disabled options require a premium license e.g. <a href="https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/" target="_blank">WPO365 | APPS</a> or <a href="https://www.wpo365.com/downloads/wpo365-integrate/" target="_blank">WPO365 | INTEGRATE</a>'},style:{color:"#0078D4"}}),!h?.appliedRequirements?.userRequirements?.appOnlyAccess&&(o.noSso||!o.applicationId||o.useSaml)&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsx(U,{tokens:{childrenGap:15},children:e.jsxs("div",{children:["Please complete the configuration for"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/single-sign-on-openid-connect/",target:"_blank",rel:"noreferrer",children:"OpenID Connect based Single Sign-on"})," ","first. Following the instructions will help you create an ",e.jsx("strong",{children:"App Registration"})," that WPO365 can then use to connect to Microsoft Graph and the Power BI service on behalf of the logged-in user."]})})]}),h?.appliedRequirements?.userRequirements?.appOnlyAccess&&o.noSso&&!o.appOnlyApplicationId&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsx(U,{tokens:{childrenGap:15},children:e.jsxs("div",{children:["Please complete the configuration for"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/integration-application-permissions/",target:"_blank",rel:"noreferrer",children:"Integration Application Permissions"})," ","first. Following the instructions will help you create an ",e.jsx("strong",{children:"App Registration"})," that WPO365 can then use to embed Power BI content for your customers that do not bring a valid Power BI Pro license."]})})]}),e.jsx("span",{children:"Enter a user friendly name for this app."}),e.jsx(fe,{isValid:(I,A)=>A?.length<21,onValid:I=>{g({...h,title:I})},bound:!1,errorMessage:"Please shorten to 20 characters.",value:u.title,placeholder:'Display name e.g. "Sales Dashboard"'}),e.jsx("span",{children:"Power BI content to embed."}),e.jsx($e,{options:[{key:"report",text:"Report"},{key:"paginatedReport",text:"Paginated Report",disabled:!t},{key:"dashboard",text:"Dashboard"},{key:"tile",text:"Tile"}],selectedKey:h?.config?.contentType,onChange:(I,A)=>A&&g({...h,config:{...h.config,contentType:A.key}}),style:{maxWidth:"400px"}}),h?.config?.contentType&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Select your embed scenario (token type)."}),e.jsx($e,{options:[{key:"organization",text:"For your organization | Power BI Pro license"},{key:"customers",text:"For your customers | Premium capacity / PPU",disabled:!t}],selectedKey:h?.config?.tokenType!==Mn.Aad?"customers":"organization",onChange:(I,A)=>A&&g({...h,appliedRequirements:{...h.appliedRequirements,userRequirements:{...h.appliedRequirements.userRequirements,appOnlyAccess:A.key==="customers"}},config:{...h.config,tokenType:A.key==="organization"?Mn.Aad:h.config.contentType===$r.dashboard?Mn.dashboardInGroup:h.config.contentType===$r.tile?Mn.tileInGroup:Mn.reportInGroup}}),style:{maxWidth:"400px"}})]}),h?.config?.contentType&&h?.config?.tokenType===Mn.Aad&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Permissions"}),e.jsxs("div",{children:["Since you are embedding for your organization, you must ensure that you have granted the following permissions to the"," ",e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/CallAnAPI/appId/${o.applicationId}/isMSAApp~/false`,target:"_blank",rel:"noreferrer",children:"App Registration"}),` with ID ${o.applicationId}.`]}),e.jsx("ul",{style:{marginBottom:"0px"},children:h?.appliedRequirements?.delegated?.permissions.map(I=>e.jsxs("li",{children:["Delegated permissions > ",I]}))})]})]}),h?.config?.contentType&&h?.config?.tokenType!==Mn.Aad&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Permissions"}),e.jsxs("div",{children:["Since you are embedding for your customers, you do not need to have granted any permissions to the"," ",e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/CallAnAPI/appId/${o.appOnlyApplicationId}/isMSAApp~/false`,target:"_blank",rel:"noreferrer",children:"App Registration"}),` with ID ${o.appOnlyApplicationId}. Instead, you must give the Service Principal (admin) access to the workspace.`]})]})]}),h?.appliedRequirements?.userRequirements?.appOnlyAccess&&h?.appliedRequirements?.appOnly?.endpoints?.length>0||!h?.appliedRequirements?.userRequirements?.appOnlyAccess&&h?.appliedRequirements?.delegated?.endpoints?.length>0&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Endpoints"}),e.jsx("div",{children:"WPO365 will automatically allow apps to request data from the following endpoints provided by its custom WordPress REST API for Microsoft Graph / M365 Services."}),e.jsx("ul",{className:"wpo-ul mt-1 mb-1 small text-primary",children:h?.appliedRequirements?.userRequirements?.appOnlyAccess?h?.appliedRequirements?.appOnly?.endpoints.map(I=>e.jsx("li",{children:`${I} | application-only access: yes`})):h?.appliedRequirements?.delegated?.endpoints.map(I=>e.jsx("li",{children:`${I} | application-only access: no`}))})]})]}),(h?.appliedRequirements?.userRequirements?.appOnlyAccess&&h?.appliedRequirements?.appOnly?.token||!h?.appliedRequirements?.userRequirements?.appOnlyAccess&&h?.appliedRequirements?.delegated?.token)&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Request tokens"}),e.jsx("div",{children:"WPO365 will allow apps to request (delegated) OAuth access tokens."})]})]}),(h?.appliedRequirements?.userRequirements?.appOnlyAccess&&h?.appliedRequirements?.appOnly?.proxy||!h?.appliedRequirements?.userRequirements?.appOnlyAccess&&h?.appliedRequirements?.delegated?.proxy)&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Proxy request"}),e.jsx("div",{children:"WPO365 allows applications to issue requests, which it then transparently proxies to Microsoft Graph."})]})]}),h?.config?.contentType&&h?.config?.tokenType&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Workspace / Group ID."}),e.jsx(fe,{isValid:(I,A)=>/^\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?(\s*,\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?)*\s*$/i.test(A),onValid:I=>{g({...h,config:{...h.config,groupId:I}}),_&&u?.config?.groupId!==I&&y(!0)},bound:!1,errorMessage:"Please enter a valid GUID.",value:u?.config?.groupId,placeholder:'ID of the workspace e.g. "123e4567-e89b-12d3-a456-426614174000"'})]}),[$r.paginatedReport,$r.report].indexOf(h?.config?.contentType)>-1&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Report ID."}),e.jsx(fe,{isValid:(I,A)=>/^\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?(\s*,\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?)*\s*$/i.test(A),onValid:I=>{g({...h,config:{...h.config,reportId:I}}),_&&u?.config?.reportId!==I&&y(!0)},bound:!1,errorMessage:"Please enter a valid GUID.",value:u?.config?.reportId,placeholder:'ID of the report e.g. "123e4567-e89b-12d3-a456-426614174000"'}),h?.config?.contentType!==$r.paginatedReport&&h?.appliedRequirements?.userRequirements?.appOnlyAccess&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Allow report editing."}),e.jsx(ce,{checked:h?.config?.reportAllowEdit,onChange:(I,A)=>{g({...h,config:{...h.config,reportAllowEdit:A}})},disabled:!t})]})]}),h?.config?.contentType===$r.dashboard&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Dashboard ID."}),e.jsx(fe,{isValid:(I,A)=>/^\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?(\s*,\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?)*\s*$/i.test(A),onValid:I=>{g({...h,config:{...h.config,dashboardId:I}}),_&&u?.config?.dashboardId!==I&&y(!0)},bound:!1,errorMessage:"Please enter a valid GUID.",value:u?.config?.dashboardId,placeholder:'ID of the dashboard e.g. "123e4567-e89b-12d3-a456-426614174000"'})]}),h?.config?.contentType===$r.tile&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Tile ID."}),e.jsx(fe,{isValid:(I,A)=>/^\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?(\s*,\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?)*\s*$/i.test(A),onValid:I=>{g({...h,config:{...h.config,tileId:I}}),_&&u?.config?.tileId!==I&&y(!0)},bound:!1,errorMessage:"Please enter a valid GUID.",value:u?.config?.tileId,placeholder:'ID of the tile e.g. "123e4567-e89b-12d3-a456-426614174000"'})]}),e.jsx("span",{children:"Dataset ID(s)."}),e.jsx(fe,{isValid:(I,A)=>/^\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?(\s*,\s*\{?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}?)*\s*$/i.test(A),onValid:I=>{g({...h,config:{...h.config,datasetIds:I.split(",").map(A=>A.trim().replace(/^\{|\}$/g,"")).filter(Boolean)}}),_&&(u?.config?.datasetIds||[]).join(", ")!==I&&y(!0)},bound:!1,errorMessage:"Please enter one (or more comma-separated) valid GUID(s).",value:u?.config?.datasetIds.join(", "),placeholder:'ID of the dataset e.g. "123e4567-e89b-12d3-a456-426614174000"'}),h?.config?.contentType===$r.paginatedReport&&h?.appliedRequirements?.userRequirements?.appOnlyAccess&&Array.isArray(h?.config?.datasetIds)&&h.config.datasetIds.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Dataset XMLA Endpoint permission."}),e.jsx($e,{options:[{key:"Off",text:"No access"},{key:"ReadOnly",text:"Read-only access",disabled:!t}],selectedKey:h?.config?.datasetXmlaPermission,onChange:(I,A)=>A&&g({...h,config:{...h.config,datasetXmlaPermission:A.key}}),style:{maxWidth:"400px"}})]}),e.jsx("span",{children:"Advanced JSON-edit options."}),e.jsx("div",{children:e.jsx(et,{toggle:!0,onClick:I=>{m(!_),y(!0)},text:_?"Edit config visually":"Edit embed-config manually (JSON)",iconProps:_?{iconName:"PageEdit"}:{iconName:"CodeEdit"},style:{minWidth:"400px",minHeight:"30px"},disabled:!t})}),_&&e.jsxs(e.Fragment,{children:[h?.config?.tokenType!==Mn.Aad&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Token request endpoint / URL."}),e.jsx("div",{children:e.jsx(E.Suspense,{fallback:e.jsx("div",{children:"Loading..."}),children:e.jsx(vf,{appInstance:{...h},updateAppInstance:g,configPropName:"tokenRequestUrl",cacheKey:v})})}),e.jsx("span",{children:"Token request (JSON)."}),e.jsx("div",{children:e.jsx(E.Suspense,{fallback:e.jsx("div",{children:"Loading..."}),children:e.jsx(vf,{appInstance:{...h},updateAppInstance:g,configPropName:"tokenRequest",cacheKey:v})})})]}),e.jsx("span",{children:"Embed configuration (JSON)."}),e.jsx("div",{children:e.jsx(E.Suspense,{fallback:e.jsx("div",{children:"Loading..."}),children:e.jsx(vf,{appInstance:{...h},updateAppInstance:g,configPropName:"embedConfig",cacheKey:v})})}),e.jsx("span",{children:"Filter configuration (JSON)."}),e.jsx("div",{children:e.jsx(E.Suspense,{fallback:e.jsx("div",{children:"Loading..."}),children:e.jsx(vf,{appInstance:{...h},updateAppInstance:g,configPropName:"filterConfig",cacheKey:v})})})]}),e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsx(U,{tokens:{childrenGap:15},children:e.jsxs("div",{children:["To continue editing your app e.g. to edit the template, width, height or add a splash-image, please close this panel and click the"," ",e.jsx("strong",{children:"Preview"})," icon for the app in the ",e.jsx("strong",{children:"Your apps"})," overview."]})})]})]})},WR=s=>{const{appInstance:o,updateAppInstance:n}=s,{isPremium:t}=E.useContext(Ln),[i,d]=E.useState(null);return E.useEffect(()=>{o&&d(JSON.parse(JSON.stringify(o)))},[o]),E.useEffect(()=>{i?.config?.template&&JSON.stringify(i.config.template)!==JSON.stringify(o?.config?.template||{})&&n(structuredClone(i))},[i]),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365AppsIcon,children:ki(o.appType)}),e.jsx(Xr,{type:gr.info,children:o.appType}),e.jsx("h3",{style:{paddingLeft:"15px"},children:"Edit template"})]}),!t&&e.jsx("div",{dangerouslySetInnerHTML:{__html:'Disabled options require a premium license e.g. <a href="https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/" target="_blank">WPO365 | APPS</a> or <a href="https://www.wpo365.com/downloads/wpo365-integrate/" target="_blank">WPO365 | INTEGRATE</a>'},style:{color:"#0078D4",alignSelf:"center"}}),e.jsx("span",{children:"Width."}),e.jsx(fe,{isValid:(c,u)=>u?.length<20,onValid:c=>{d({...i,config:{...i.config,template:{...i.config.template,width:c}}})},bound:!1,errorMessage:"Please shorten to 20 characters.",value:o?.config?.template?.width,placeholder:"e.g. 50vw or 500px"}),e.jsx("span",{children:"Height."}),e.jsx(fe,{isValid:(c,u)=>u?.length<20,onValid:c=>{d({...i,config:{...i.config,template:{...i.config.template,height:c}}})},bound:!1,errorMessage:"Please shorten to 20 characters.",value:o?.config?.template?.height,placeholder:"e.g. 60vh or 600px"}),e.jsx("span",{children:"Splash screen image URL."}),e.jsx(fe,{isValid:(c,u)=>!u||/^(https?:\/\/)([^\s$.?#].[^\s]*)$/i.test(u),onValid:c=>{d({...i,config:{...i.config,template:{...i.config.template,splashScreenImgUrl:c}}})},bound:!1,errorMessage:"A valid URL must start with http(s)://.",value:o?.config?.template?.splashScreenImgUrl,placeholder:"e.g. https://url/img.png",disabled:!t})]})},Nx={root:{minWidth:0,padding:"10px",alignSelf:"stretch",height:"auto",backgroundColor:"#f1f1f1"},rootHovered:{backgroundColor:"#f4f4f4"}},BR=()=>{const{appInstances:s,isPremium:o,selectedAppInstanceId:n,setLastMessage:t,setPanelChild:i,setSelectedAppInstanceId:d,setShowPreview:c,showPreview:u}=E.useContext(Ln),{env:{nonce:h,props:{extensions:g,pluginsUrl:_,siteUrl:m},wpAjaxAdminUrl:x}}=E.useContext(Ye),y=E.useMemo(()=>s.find(L=>L.id===n),[s]),[v,b]=E.useState(structuredClone(y)),{shouldSave:C}=bd();E.useEffect(()=>{v&&JSON.stringify(v)!==JSON.stringify(y)&&C(v)},[v]);const k=E.useMemo(()=>{const L=Date.now().toString(16),I=Math.floor(Math.random()*1048575).toString(16);return L+I},[v]);return E.useEffect(()=>{if(v&&u){window.wpo365=window.wpo365||{},window.wpo365.appConfigs=window.wpo365.appConfigs||{},window.wpo365.appConfigs[`_${v.id}`]={config:structuredClone(v.config),nonce:h,userRequirements:structuredClone(v.appliedRequirements?.userRequirements),wpAjaxAdminUrl:x};const L=()=>{const I=_||`${m}/wp-content/plugins`,A=o?g.find(F=>[l.wpo365Apps,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate].indexOf(F)>-1):"wpo365Login";let Y="";switch(A){case l.wpo365Apps:Y="wpo365-apps";break;case l.wpo365LoginIntranet:Y="wpo365-login-intranet";break;case l.wpo365Intranet5y:Y="wpo365-intranet-5y";break;case l.wpo365Integrate:Y="wpo365-integrate";break;default:Y="wpo365-login"}let P="";switch(v.appType){case"pbi":P=o?"pbi":"pbiBasic";break}const T=document.createElement("script");T.src=`${I}/${Y}/apps/dist/${P}.js?rootId=${k}&appId=${v.id}`,T.type="module",document.head.appendChild(T)};if(document.getElementById("wpo365React"))L();else{const I=document.createElement("script");I.id="wpo365React",I.src="https://cdnjs.cloudflare.com/ajax/libs/react/16.14.0/umd/react.production.min.js",I.onload=()=>{const A=document.createElement("script");A.id="wpo365ReactDom",A.src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.14.0/umd/react-dom.production.min.js",A.onload=L,document.head.appendChild(A)},document.head.appendChild(I)}}},[u,v]),e.jsxs(U,{className:j.wpo365AppPreview,tokens:{childrenGap:15},children:[e.jsx("h3",{className:j.wpo365AppsHeading,children:"App preview"}),e.jsx(ph,{className:j.wpo365AppPreviewMenu,items:[{key:"close",name:"Close",icon:"Cancel",onClick:()=>{c(!1),d(void 0)}},{key:"editTemplate",icon:"Edit",name:"Template",onClick:()=>{i({elem:e.jsx(WR,{appInstance:v,updateAppInstance:b}),onDismiss:()=>{}})}}],onRenderOverflowButton:L=>e.jsx(Dn,{styles:Nx,text:"Edit options",iconProps:{iconName:"More"},menuProps:{items:L}}),onRenderItem:L=>L.onRender?L.onRender(L):e.jsx(Dn,{disabled:L.disabled,iconProps:{iconName:L.icon},menuProps:L.subMenuProps,text:L.name,onClick:L.onClick,styles:Nx})}),!o&&e.jsx("div",{dangerouslySetInnerHTML:{__html:'Disabled options require a premium license e.g. <a href="https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/" target="_blank">WPO365 | APPS</a> or <a href="https://www.wpo365.com/downloads/wpo365-integrate/" target="_blank">WPO365 | INTEGRATE</a>'},style:{color:"#0078D4",alignSelf:"center"}}),e.jsx("div",{id:k})]})},HR=()=>{const{setShowPreview:s,setSelectedAppInstanceId:o}=E.useContext(Ln);return e.jsx("div",{style:{width:"60%"},children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",horizontalAlign:"center",children:[e.jsx("p",{style:{textAlign:"center"},children:"Oops - Couldn't load a preview for the selected app instance ..."}),e.jsx(Ke,{iconProps:{iconName:"Cancel"},onClick:()=>{s(!1),o(void 0)}})]})})},Ox={root:{maxWidth:"400px"},fieldGroup:{maxWidth:"400px",paddingRight:80,position:"relative"},field:{paddingRight:80,border:"0px !important"}},zR=s=>{const{localAppInstance:o,setLocalAppInstance:n}=s,{settings:t}=E.useContext(Ye),{isPremium:i,saveStatus:d,setSaveStatus:c}=E.useContext(Ln),[u,h]=E.useState(""),[g,_]=E.useState(!1),[m,x]=E.useState(""),{apiFetch:y,data:v,loading:b}=wi(),{apiFetch:C,data:k,loading:L,reset:I}=wi(),{apiFetch:A,data:Y,loading:P,reset:T}=wi(),{apiFetch:F,data:H,loading:W}=wi(),{apiFetch:K,data:Z,loading:Q}=wi();return E.useEffect(()=>{o?.appType==="lib"?!L&&k===null&&o?.config?.siteInfo?.id&&!o?.config?.driveInfo&&C("graph/sites","post",{query:`${o.config.siteInfo.id}/drives`,method:"get",scope:"https://graph.microsoft.com/Sites.Read.All"}):o?.appType==="lis"&&!P&&Y===null&&o?.config?.siteInfo?.id&&!o?.config?.listInfo&&A("graph/sites","post",{query:`${o.config.siteInfo.id}/lists`,method:"get",scope:"https://graph.microsoft.com/Sites.Read.All"}),o?.config&&(o.config.listInfo?.folderPath?x(o.config.listInfo.folderPath):o.config.driveInfo?.folderPath&&x(o.config.driveInfo.folderPath))},[o?.config]),E.useEffect(()=>{Y&&o?.appType==="lib"&&"displayName"in Y&&n({...o,config:{...o.config,listInfo:{displayName:Y.displayName,id:Y.id,folderPath:null,url:Y.webUrl}}})},[Y]),E.useEffect(()=>{W?c("saving"):d!=="initial"&&c("initial")},[W]),E.useEffect(()=>{H!==null&&n({...o,config:{...o.config,driveInfo:{...o.config.driveInfo,folderPath:m}}})},[H]),e.jsxs(e.Fragment,{children:[i&&t.noSso&&e.jsxs(e.Fragment,{children:[e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"No delegated access"}),e.jsx("div",{children:"The currently logged-in user does not have delegated access to Microsoft Graph, so WPO365 can’t guide you through configuring the target library or list. Please provide the required site and library identifiers manually."})]})]}),e.jsx("span",{children:"SharePoint Online Root Site."}),e.jsx(fe,{bound:!1,placeholder:"e.g. your-tenant.sharepoint.com",isValid:(B,R)=>!/^(http)|(\/$)/.test(R),onValid:B=>n({...o,config:{...o.config,legacy:o.config.legacy?{...o.config.legacy,hostname:B}:{hostname:B,allowAnonymous:!0,libraryRelativeFolderPath:"",listTitle:"",serverRelativePath:""}}}),errorMessage:"Hostname can not start with http or end with /",value:o?.config?.legacy?.hostname||""}),e.jsx("span",{children:"Server-relative URL of the site collection."}),e.jsx(fe,{bound:!1,placeholder:"e.g. sites/contoso",isValid:(B,R)=>!/^\/|\/$/.test(R),onValid:B=>n({...o,config:{...o.config,legacy:o.config.legacy?{...o.config.legacy,serverRelativePath:B}:{hostname:"",allowAnonymous:!0,libraryRelativeFolderPath:"",listTitle:"",serverRelativePath:B}}}),errorMessage:"Hostname can not start with http or end with /",value:o?.config?.legacy?.serverRelativePath||""}),e.jsx("span",{children:o.appType==="lib"?"Library title":"List title"}),e.jsx(fe,{bound:!1,placeholder:"e.g. Documents",isValid:(B,R)=>!/^\/|\/$/.test(R),onValid:B=>n({...o,config:{...o.config,legacy:o.config.legacy?{...o.config.legacy,listTitle:B}:{hostname:"",allowAnonymous:!0,libraryRelativeFolderPath:"",listTitle:B,serverRelativePath:""}}}),errorMessage:"Hostname can not start with http or end with /",value:o?.config?.legacy?.listTitle||""}),e.jsx("span",{children:"Folder path (or empty for root)."}),e.jsx(fe,{bound:!1,placeholder:"e.g. HR/Guidelines",isValid:(B,R)=>!/^\/|\/$/.test(R),onValid:B=>n({...o,config:{...o.config,legacy:o.config.legacy?{...o.config.legacy,libraryRelativeFolderPath:B}:{hostname:"",allowAnonymous:!0,libraryRelativeFolderPath:B,listTitle:"",serverRelativePath:""}}}),errorMessage:"Hostname can not start with http or end with /",value:o?.config?.legacy?.libraryRelativeFolderPath||""}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(el,{iconProps:void 0,title:"Enable application-level access",ariaLabel:"Enable application-level access",onClick:()=>{K(`apps/requirements/apponly/${o?.id}`,"post")},styles:{label:{fontSize:"13px",color:"#2271b1",textDecoration:"underline"}},children:"Enable application-level access"}),Q&&e.jsx(Oe,{size:Te.small}),Z&&e.jsx(Ue,{iconName:"Accept"})]})]}),!t.noSso&&!o?.config?.siteInfo&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Search for the SharePoint site where the library / list is located."}),e.jsx(U,{style:{maxWidth:"400px"},children:e.jsxs("div",{style:{position:"relative"},children:[e.jsx(qp,{value:u,onChange:(B,R)=>{h(R||""),setTimeout(()=>{_(!0)},500)},styles:Ox,placeholder:"Type exact title of the site"}),e.jsx(et,{text:"Search",onClick:()=>{u&&(y("graph/sites","post",{query:`?search=${encodeURIComponent(u)}`,method:"get",scope:"https://graph.microsoft.com/Sites.Read.All"}),_(!1))},styles:{root:{position:"absolute",right:2,top:"50%",transform:"translateY(-50%)",height:"28px",padding:"0 12px",zIndex:1,border:"0px"}}})]})}),v!==null&&Array.isArray(v?.value)&&v.value.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Select a SharePoint site."}),e.jsx($e,{options:v.value.map(B=>({key:B.id,text:B.displayName})),selectedKey:o?.config?.siteInfo?.id,onChange:(B,R)=>{if(!R)return;const X=v.value.find($=>$.id===R.key);n({...o,config:{...o.config,siteInfo:{id:X.id,displayName:X.displayName,url:X.webUrl}}})},style:{maxWidth:"400px"}})]}),!g&&v!==null&&Array.isArray(v?.value)&&v.value.length===0&&e.jsx("em",{children:`No results for ${u}`})]}),!t.noSso&&o.config.siteInfo&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Selected SharePoint site."}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(Xr,{type:gr.info,children:o.config.siteInfo.displayName}),e.jsx(Ke,{iconProps:{iconName:"Delete"},onClick:()=>{I(),T(),n({...o,config:{...o.config,siteInfo:null,driveInfo:null,listInfo:null}})}}),o?.appliedRequirements?.userRequirements?.appOnlyAccess&&e.jsxs(e.Fragment,{children:[e.jsx(el,{iconProps:void 0,title:"Enable application-level access",ariaLabel:"Enable application-level access",onClick:()=>{K(`apps/requirements/apponly/${o?.id}`,"post")},styles:{label:{fontSize:"13px",color:"#2271b1",textDecoration:"underline"}},children:"Enable application-level access"}),Q&&e.jsx(Oe,{size:Te.small}),Z&&e.jsx(Ue,{iconName:"Accept"})]})]})]}),o?.appType==="lib"&&o?.config?.siteInfo?.id&&!o?.config?.driveInfo?.id?e.jsxs(e.Fragment,{children:[k!==null&&Array.isArray(k?.value)&&k.value.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Select a SharePoint Library."}),e.jsx($e,{options:k.value.map(B=>({key:B.id,text:B.name})),selectedKey:o?.config?.driveInfo?.id,onChange:(B,R)=>{if(!R)return;const X=k.value.find($=>$.id===R.key);n({...o,config:{...o.config,driveInfo:{id:X.id,displayName:X.name,url:X.webUrl,folderPath:""}}}),A("graph/sites","post",{query:`${o.config.siteInfo.id}/lists/${X.name}`,method:"get",scope:"https://graph.microsoft.com/Sites.Read.All"})},style:{maxWidth:"400px"}})]}),k!==null&&Array.isArray(k?.value)&&k.value.length===0&&e.jsx("em",{children:`No library found for site with title ${o?.config?.siteInfo?.displayName}`})]}):e.jsx(e.Fragment,{children:!!o?.config?.driveInfo?.id&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Selected SharePoint library."}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(Xr,{type:gr.info,children:o.config.driveInfo.displayName}),e.jsx(Ke,{iconProps:{iconName:"Delete"},onClick:()=>{I(),T(),n({...o,config:{...o.config,driveInfo:null,listInfo:null}})}})]})]})}),o?.appType==="lis"&&o?.config?.siteInfo?.id&&!o?.config?.listInfo?.id?e.jsxs(e.Fragment,{children:[Y!==null&&Array.isArray(Y?.value)&&Y.value.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Select a SharePoint List."}),e.jsx($e,{options:Y.value.filter(B=>B.list?.hidden===!1&&B.list?.template!=="documentLibrary").map(B=>({key:B.id,text:B.displayName})),selectedKey:o?.config?.listInfo?.id,onChange:(B,R)=>{if(!R)return;const X=Y.value.find($=>$.id===R.key);n({...o,config:{...o.config,listInfo:{id:X.id,displayName:X.name,url:X.webUrl,folderPath:""}}})},style:{maxWidth:"400px"}})]}),Y!==null&&Array.isArray(Y?.value)&&Y.value.length===0&&e.jsx("em",{children:`No lists found for site with title ${o?.config?.siteInfo?.displayName}`})]}):e.jsx(e.Fragment,{children:o?.appType==="lis"&&!!o?.config?.listInfo?.id&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Selected SharePoint list."}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(Xr,{type:gr.info,children:o.config.listInfo.displayName}),e.jsx(Ke,{iconProps:{iconName:"Delete"},onClick:()=>{I(),T(),n({...o,config:{...o.config,listInfo:null}})}})]})]})}),!!o?.config?.siteInfo?.id&&!!o?.config?.driveInfo?.id&&e.jsx(e.Fragment,{children:o.config.driveInfo.folderPath?e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Configured library-relative folder path."}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(Xr,{type:gr.info,children:o.config.driveInfo.folderPath}),e.jsx(Ke,{iconProps:{iconName:"Delete"},onClick:()=>{n({...o,config:{...o.config,driveInfo:{...o.config.driveInfo,folderPath:null}}}),x("")}})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Enter library-relative folder path."}),e.jsx(U,{style:{maxWidth:"400px"},children:e.jsxs("div",{style:{position:"relative"},children:[e.jsx(qp,{value:m,onChange:(B,R)=>x(R),styles:Ox,placeholder:'e.g. "general/HR Guidelines"',disabled:!i}),i&&e.jsx(et,{text:"Test",onClick:()=>{const B=o?.appliedRequirements?.userRequirements?.appOnlyAccess,R=`${o?.config?.driveInfo?.id}/root${m?":/"+encodeURIComponent(m)+":":""}/children?$expand=listItem&$top=1`;F("graph/drives","post",{query:R,scope:B?"Sites.Selected":"Sites.Read.All",application:B})},styles:{root:{position:"absolute",right:2,top:"50%",transform:"translateY(-50%)",height:"28px",padding:"0 12px",zIndex:1,border:"0px"}}})]})})]})}),!!o?.config?.siteInfo?.id&&(!!o?.config?.driveInfo?.id||!!o?.config?.listInfo?.id)&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Page size."}),e.jsx(fe,{isValid:(B,R)=>String(parseInt(R))===R,onValid:B=>n({...o,config:{...o.config,pageSize:parseInt(B)}}),bound:!1,errorMessage:"Please enter a numeric value.",value:String(o?.config?.pageSize),placeholder:'Enter a numeric value e.g. "50"'})]})]})},UR=s=>{const{settings:o}=E.useContext(Ye),{appInstances:n,isPremium:t,selectedAppInstanceId:i,setLastMessage:d}=E.useContext(Ln),c=E.useMemo(()=>n.find(_=>_.id===i),[n,i]),[u,h]=E.useState(structuredClone(c)),{shouldSave:g}=bd();return E.useEffect(()=>{u&&JSON.stringify(u)!==JSON.stringify(c)&&g(u)},[u]),E.useEffect(()=>{h(c?structuredClone(c):null)},[c?.id]),!c||!u?null:e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365AppsIcon,children:ki(c.appType)}),e.jsx(Xr,{type:gr.info,children:c.appType}),e.jsx("h3",{style:{paddingLeft:"15px"},children:"Edit Form"})]}),!t&&e.jsx("div",{dangerouslySetInnerHTML:{__html:'Disabled options require a premium license e.g. <a href="https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/" target="_blank">WPO365 | APPS</a> or <a href="https://www.wpo365.com/downloads/wpo365-integrate/" target="_blank">WPO365 | INTEGRATE</a>'},style:{color:"#0078D4"}}),e.jsx("span",{children:"Enter a user friendly name for this app."}),e.jsx(fe,{isValid:(_,m)=>m?.length<21,onValid:_=>{h({...u,title:_})},bound:!1,errorMessage:"Please shorten to 20 characters.",value:c.title,placeholder:'Display name e.g. "Marketing Collateral"'}),!u?.appliedRequirements?.userRequirements?.appOnlyAccess&&(o.noSso||!o.applicationId||o.useSaml)&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Configuration"}),e.jsxs("div",{children:["Please complete the configuration for"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/single-sign-on-openid-connect/",target:"_blank",rel:"noreferrer",children:"OpenID Connect based Single Sign-on"})," ","first. Following the instructions will help you create an ",e.jsx("strong",{children:"App Registration"})," that WPO365 can then use to connect to Microsoft Graph / M365 Services on behalf of the logged-in user."]})]})]}),u?.appliedRequirements?.userRequirements?.appOnlyAccess&&o.noSso&&!o.appOnlyApplicationId&&e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Configuration"}),e.jsxs("div",{children:["Please complete the configuration for"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/integration-application-permissions/",target:"_blank",rel:"noreferrer",children:"Integration Application Permissions"})," ","first. Following the instructions will help you create an ",e.jsx("strong",{children:"App Registration"})," that WPO365 can then use to connect to Microsoft Graph / M365 Services with application permissions."]})]})]}),(u?.appType==="lib"||u?.appType==="lis")&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Allow anonymous users to interact with this app."}),e.jsx(ce,{checked:u?.appliedRequirements?.userRequirements?.appOnlyAccess,onChange:(_,m)=>{h({...u,appliedRequirements:{...u.appliedRequirements,userRequirements:{...u.appliedRequirements.userRequirements,appOnlyAccess:m}}})},disabled:!t})]}),e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Permissions"}),e.jsxs("div",{children:["Please ensure that you have granted the following permissions to the"," ",e.jsx("a",{href:`https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/CallAnAPI/appId/${u?.appliedRequirements?.userRequirements?.appOnlyAccess?o.appOnlyApplicationId:o.applicationId}/isMSAApp~/false`,target:"_blank",rel:"noreferrer",children:"App Registration"}),` with ID ${u?.appliedRequirements?.userRequirements?.appOnlyAccess?o.appOnlyApplicationId:o.applicationId}.`]}),e.jsx("ul",{style:{marginBottom:"0px"},children:u?.appliedRequirements?.userRequirements?.appOnlyAccess?u?.appliedRequirements?.appOnly?.permissions.map(_=>e.jsxs("li",{children:["Application permissions > ",_]})):u?.appliedRequirements?.delegated?.permissions.map(_=>e.jsxs("li",{children:["Delegated permissions > ",_]}))})]})]}),e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsx("h4",{style:{margin:"10px 0px 0px 0px"},children:"Endpoints"}),e.jsx("div",{children:"WPO365 will automatically allow apps to request data from the following endpoints provided by its custom WordPress REST API for Microsoft Graph / M365 Services."}),e.jsx("ul",{className:"wpo-ul mt-1 mb-1 small text-primary",children:u?.appliedRequirements?.userRequirements?.appOnlyAccess?u?.appliedRequirements?.appOnly?.endpoints.map(_=>e.jsx("li",{children:`${_} | application-only access: yes}`})):u?.appliedRequirements?.delegated?.endpoints.map(_=>e.jsx("li",{children:`${_} | application-only access: no}`}))})]})]}),(u?.appType==="lib"||u?.appType==="lis")&&e.jsx(zR,{localAppInstance:u,setLocalAppInstance:h}),u?.appType!=="rec"&&u?.appType!=="lis"&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Hide folders"}),e.jsx(ce,{checked:u?.config?.hideFolders,onChange:(_,m)=>{const x=structuredClone(u);x.config.hideFolders=m??!1,h(x)}})]}),e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsx(U,{tokens:{childrenGap:15},children:e.jsxs("div",{children:["To continue editing your app e.g. to edit the columns, translation labels and template, please close this panel and click the"," ",e.jsx("strong",{children:"Preview"})," icon for the app in the ",e.jsx("strong",{children:"Your apps"})," overview."]})})]})]})},VR=s=>{const{appInstance:o,updateAppInstance:n}=s,{isPremium:t}=E.useContext(Ln),[i,d]=E.useState(structuredClone(o)),c=E.useRef(o?.config?.template?{...o.config.template}:{});E.useEffect(()=>{(JSON.stringify(i.config.template||{})!==JSON.stringify(c)||o.config?.enableDownload!==i.config?.enableDownload)&&(n(structuredClone(i)),c.current=i.config.template)},[i]);const u=(h,g)=>{const _=i.config.template?.breakpoints?{...i.config.template.breakpoints}:{};_[h]=g,d({...i,config:{...i.config,template:{...i.config.template,breakpoints:_}}})};return e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365AppsIcon,children:ki(o.appType)}),e.jsx(Xr,{type:gr.info,children:o.appType}),e.jsx("h3",{style:{paddingLeft:"15px"},children:"Edit template"})]}),!t&&e.jsx("div",{dangerouslySetInnerHTML:{__html:'Disabled options require a premium license e.g. <a href="https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/" target="_blank">WPO365 | APPS</a> or <a href="https://www.wpo365.com/downloads/wpo365-integrate/" target="_blank">WPO365 | INTEGRATE</a>'},style:{color:"#0078D4",alignSelf:"center"}}),e.jsx("span",{children:"Select template."}),e.jsx($e,{options:[{key:"list",text:"List (default)"},{key:"table",text:"HTML Table",disabled:!t},{key:"cards",text:"Cards",disabled:!t}],selectedKey:i?.config?.template?.name||null,onChange:(h,g)=>{g&&d({...i,config:{...i.config,template:i.config.template?{...i.config.template,name:g.key}:{name:g.key}}})},style:{maxWidth:"400px"}}),i?.config?.template?.name===Oc.cards&&e.jsxs(e.Fragment,{children:[i.appType==="lib"&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Hand-pick (up to 20) documents for embedding."}),e.jsx(ce,{onChange:(h,g)=>{const _=structuredClone(i);g?_.config.template.batch=[]:delete _.config.template.batch,d(structuredClone(_))},checked:Array.isArray(i.config.template.batch)})]}),e.jsx("span",{children:"Select nr. of columns for each breakpoint."}),e.jsx(U,{tokens:{childrenGap:10},children:[576,768,992,1200].map((h,g)=>e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[g<3?e.jsx("span",{dangerouslySetInnerHTML:{__html:`&le; ${h}px`}}):e.jsx("span",{children:"> 992px"}),e.jsx(fe,{isValid:(_,m)=>!isNaN(parseInt(String(m))),onValid:_=>u(`bp${h}`,parseInt(_)),bound:!1,errorMessage:"Value must be a number",value:String(i?.config?.template?.breakpoints?.[`bp${h}`]||2+g),placeholder:"Enter a number e.g. 2"})]}))})]}),i.appType!=="rec"&&i.appType!=="lis"&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Download files (instead of opening in M365 Online)."}),e.jsx(ce,{onChange:(h,g)=>{const _=structuredClone(i);_.config.enableDownload=g??!1,d(_)},checked:i.config?.enableDownload,disabled:!t})]})]})},Yx={root:{minWidth:0,padding:"10px",alignSelf:"stretch",height:"auto",backgroundColor:"#f1f1f1"},rootHovered:{backgroundColor:"#f4f4f4"}},xf={root:{backgroundColor:"initial",padding:"10px"}},GR=E.lazy(()=>lw(()=>import("./wizard-chunk-BW2PNMbJ.js"),[],import.meta.url)),$R=s=>{const{appInstances:o,isPremium:n,selectedAppInstanceId:t,setLastMessage:i,setPanelChild:d,setSelectedAppInstanceId:c,setShowPreview:u,showPreview:h}=E.useContext(Ln),{env:{nonce:g,props:{extensions:_,pluginsUrl:m,siteUrl:x},wpAjaxAdminUrl:y}}=E.useContext(Ye),v=E.useMemo(()=>o.find(Y=>Y.id===t),[o]),[b,C]=E.useState(structuredClone(v)),{shouldSave:k}=bd();E.useEffect(()=>{b&&JSON.stringify(b)!==JSON.stringify(v)&&k(b)},[b]);const L=E.useMemo(()=>{const Y=Date.now().toString(16),P=Math.floor(Math.random()*1048575).toString(16);return Y+P},[b]);E.useEffect(()=>{if(b&&h){window.wpo365=window.wpo365||{},window.wpo365.appConfigs=window.wpo365.appConfigs||{},window.wpo365.appConfigs[`_${b.id}`]={config:b.config,nonce:g,userRequirements:b.appliedRequirements?.userRequirements,wpAjaxAdminUrl:y};const Y=()=>{const P=m||`${x}/wp-content/plugins`,T=n?_.find(K=>[l.wpo365Apps,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate].indexOf(K)>-1):"wpo365Login";let F="";switch(T){case l.wpo365Apps:F="wpo365-apps";break;case l.wpo365LoginIntranet:F="wpo365-login-intranet";break;case l.wpo365Intranet5y:F="wpo365-intranet-5y";break;case l.wpo365Integrate:F="wpo365-integrate";break;default:F="wpo365-login"}let H=["lis","lib","one","rec"].indexOf(b.appType)>-1?n?"list":"listBasic":"unknown";const W=document.createElement("script");W.src=`${P}/${F}/apps/dist/${H}.js?rootId=${L}&appId=${b.id}`,W.type="module",document.head.appendChild(W)};if(document.getElementById("wpo365React"))Y();else{const P=document.createElement("script");P.id="wpo365React",P.src="https://cdnjs.cloudflare.com/ajax/libs/react/16.14.0/umd/react.production.min.js",P.onload=()=>{const T=document.createElement("script");T.id="wpo365ReactDom",T.src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.14.0/umd/react-dom.production.min.js",T.onload=Y,document.head.appendChild(T)},document.head.appendChild(P)}}},[h,b]),E.useEffect(()=>{b&&(window.wpo365=window.wpo365||{},window.wpo365.batchSelect=Y=>{if(!b?.config?.template){i({message:"Cannot select item. Please configure the app first.",type:hs.error});return}if(!Array.isArray(b?.config?.template?.batch)){i({message:'Batch select has not been enabled. Preview the app, choose "Edit options" and check "Hand-pick for embedding".',type:hs.error});return}const P=[...b?.config?.template?.batch||[]],T=P.indexOf(Y);if(b.config.template.batch.length>19&&T===-1){i({message:"You cannot select more than 20 items for embedding.",type:hs.error});return}T>-1?P.splice(T,1):P.push(Y),C({...b,config:{...b.config,template:{...b.config.template,batch:P}}})})},[b]);const I=()=>{const Y=[{key:"close",name:"Close",icon:"Cancel",onClick:()=>{u(!1),c(void 0)}}];return v?.config?.appType!=="rec"&&Y.push({disabled:!n||b?.config?.oneDrive,key:"editColumns",icon:"Edit",name:"Columns",onClick:()=>{d({elem:e.jsx(E.Suspense,{fallback:e.jsx("div",{children:"Loading..."}),children:e.jsx(GR,{appInstance:b,updateAppInstance:C,configPropName:"columns",standAlone:!0})}),onDismiss:()=>{}})}}),Y.push({disabled:!n,key:"editTranslations",icon:"Edit",name:"Translations",onClick:()=>{d({elem:e.jsx(dS,{appInstance:b,updateAppInstance:C}),onDismiss:()=>{}})}}),v?.config?.appType!=="rec"&&Y.push({key:"editTemplate",icon:"Edit",name:"Template",onClick:()=>{d({elem:e.jsx(VR,{appInstance:b,updateAppInstance:C}),onDismiss:()=>{}})}}),Y},A=()=>{if(b.appType==="rec")return[];const Y=[{key:"spSearch",onRender:()=>e.jsx(ce,{disabled:!n,label:"Enable search",checked:b.config?.enableSearch,styles:xf,onChange:(P,T)=>{C({...b,config:{...b.config,enableSearch:T}})}})},{key:"spLink",onRender:()=>e.jsx(ce,{disabled:!n,label:'Show "Open Folder" link',checked:b.config?.showOpenInSpLink,styles:xf,onChange:(P,T)=>{C({...b,config:{...b.config,showOpenInSpLink:T}})}})},{key:"useQueryString",onRender:()=>e.jsx(ce,{disabled:!n||b?.config?.oneDrive,label:"Use query string for configuration",checked:b.config?.useQueryString,styles:xf,onChange:(P,T)=>{C({...b,config:{...b.config,useQueryString:T}})}})}];return(v.appType==="lib"||v.appType==="one")&&Y.splice(1,0,{key:"spUpload",onRender:()=>e.jsx(ce,{disabled:!n,label:"Enable upload",checked:b.config?.enableUpload,styles:xf,onChange:(P,T)=>{C({...b,config:{...b.config,enableUpload:T}})}})}),Y};return e.jsxs(U,{className:j.wpo365AppPreview,tokens:{childrenGap:15},children:[e.jsx("h3",{className:j.wpo365AppsHeading,children:"App preview"}),e.jsx(ph,{className:j.wpo365AppPreviewMenu,items:I(),overflowItems:A(),onRenderOverflowButton:Y=>e.jsx(Dn,{styles:Yx,text:"Edit options",iconProps:{iconName:"More"},menuProps:{items:Y}}),onRenderItem:Y=>Y.onRender?Y.onRender(Y):e.jsx(Dn,{disabled:Y.disabled,iconProps:{iconName:Y.icon},menuProps:Y.subMenuProps,text:Y.name,onClick:Y.onClick,styles:Yx})}),!n&&e.jsx("div",{dangerouslySetInnerHTML:{__html:'Disabled options require a premium license e.g. <a href="https://www.wpo365.com/downloads/wpo365-microsoft-365-apps/" target="_blank">WPO365 | APPS</a> or <a href="https://www.wpo365.com/downloads/wpo365-integrate/" target="_blank">WPO365 | INTEGRATE</a>'},style:{color:"#0078D4",alignSelf:"center"}}),e.jsx("div",{id:L})]})},KR=()=>{const{appInstances:s,selectedAppInstanceId:o}=E.useContext(Ln),{shouldSave:n}=bd(),t=E.useMemo(()=>s.find(c=>c.id===o),[s,o]),[i,d]=E.useState(structuredClone(t));return E.useEffect(()=>{i&&JSON.stringify(i)!==JSON.stringify(t)&&n(i)},[i]),E.useEffect(()=>{d(t?structuredClone(t):null)},[t?.id]),!t||!i?null:e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365AppsIcon,children:ki(t.appType)}),e.jsx(Xr,{type:gr.info,children:t.appType}),e.jsx("h3",{style:{paddingLeft:"15px"},children:"Edit Form"})]}),e.jsxs(U,{className:j.wpo365InfoBox,horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(kt,{className:j.wpo365InfoBoxIcon,iconName:"Lightbulb"}),e.jsx(U,{tokens:{childrenGap:15},children:e.jsx("div",{children:"There are no settings for this app."})})]}),e.jsx("span",{children:"Enter a user friendly name for this app."}),e.jsx(fe,{isValid:(c,u)=>u?.length<21,onValid:c=>{d({...i,title:c})},bound:!1,errorMessage:"Please shorten to 20 characters.",value:t.title,placeholder:'Display name e.g. "Marketing Collateral"'}),e.jsx("span",{children:"Nr. of results to fetch."}),e.jsx(fe,{isValid:(c,u)=>String(parseInt(u))===u,onValid:c=>d({...i,config:{...i.config,pageSize:parseInt(c)}}),bound:!1,errorMessage:"Please enter a numeric value.",value:String(i?.config?.pageSize),placeholder:'Enter a numeric value e.g. "50"'})]})},ki=s=>["lib","lis","sea","doc"].indexOf(s)>-1?kR():s==="one"?jR():s==="yam"?MR():s==="pbi"?SR():s==="cal"?CR():s==="rec"?LR():s==="emp"?ER():e.jsx("pre",{children:"[x]"}),uS=s=>s==="lib"||s==="lis"||s==="one"?e.jsx(UR,{}):s==="pbi"?e.jsx(YR,{}):s==="rec"?e.jsx(KR,{}):s==="cal"?e.jsx(DR,{}):e.jsx("p",{children:"Oops - Couldn't find an edit form for the selected app instance ..."}),qR=s=>s==="lib"||s==="one"||s==="lis"||s==="rec"?e.jsx($R,{}):s==="pbi"?e.jsx(BR,{}):s==="cal"?e.jsx(RR,{}):e.jsx(HR,{}),pN=s=>{try{return JSON.parse(s)}catch(o){console.error(`Failed to parse Json. [Error: ${o}]`)}return null},hN=s=>{try{return JSON.stringify(s,null,2)}catch(o){console.error(`Failed to stringify Json. [Error: ${o}]`)}return null},JR="_toastLayer_1qra7_15",ZR="_toastDialog_1qra7_22",XR="_toastHeader_1qra7_45",QR="_toastClose_1qra7_57",eF="_toastSummary_1qra7_68",tF="_toastActions_1qra7_81",nF="_toastLink_1qra7_87",rF="_toastDetails_1qra7_90",sF="_toastPre_1qra7_98",Xi={toastLayer:JR,toastDialog:ZR,toastHeader:XR,toastClose:QR,toastSummary:eF,toastActions:tF,toastLink:nF,toastDetails:rF,toastPre:sF},oF=s=>{const{type:o,message:n,raw:t,onClose:i}=s,[d,c]=E.useState(!1);return e.jsx("div",{className:Xi.toastLayer,children:e.jsxs("section",{className:Xi.toastDialog,role:"alertdialog","aria-labelledby":"toast-title","aria-describedby":"toast-desc","aria-modal":"false",children:[e.jsxs("div",{className:Xi.toastHeader,children:[e.jsx("h2",{id:"toastTitle",style:{borderColor:o==="info"?"#0dcaf0":"#dc3545"},children:o==="info"?"Important information":"Something went wrong"}),e.jsx("button",{className:Xi.toastClose,"aria-label":"Close",onClick:i,children:"✕"})]}),e.jsx("p",{id:"toastDesc",className:Xi.toastSummary,dangerouslySetInnerHTML:{__html:n}}),!!t&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:Xi.toastActions,children:e.jsx(Cb,{className:Xi.toastLink,onClick:()=>c(!d),children:d?"Hide details":"Show details"})}),d&&e.jsx("div",{className:Xi.toastDetails,children:e.jsx("pre",{className:Xi.toastPre,children:t})})]})]})})},iF=s=>{const{id:o,deleteAppInstance:n,duplicateAppInstance:t,getAppInstances:i}=s,{appInstances:d,setLastModified:c,setPanelChild:u,setSelectedAppInstanceId:h,setShowPreview:g}=E.useContext(Ln),_=E.useMemo(()=>d.find(m=>m.id===o),[d]);return e.jsxs("tr",{children:[e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("div",{className:j.wpo365AppsTableIcon,children:ki(_?.appType)}),e.jsx(Xr,{type:gr.info,children:_?.appType})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:5},children:[e.jsx(_n,{content:"Edit",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(Ke,{iconProps:{iconName:"Edit"},onClick:()=>{h(_.id),u({elem:uS(_?.appType),onDismiss:()=>{h(void 0),c(null),i()}})}})}),e.jsx(_n,{content:"Preview",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(Ke,{iconProps:{iconName:"View"},onClick:()=>{h(_.id),g(!0)}})}),e.jsx(_n,{content:"Copy",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(Ke,{iconProps:{iconName:"DuplicateRow"},onClick:()=>t(_?.id)})}),e.jsx(_n,{content:"Delete",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(Ke,{iconProps:{iconName:"Delete"},onClick:()=>n(_?.id)})})]})}),e.jsx("td",{children:_?.title}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:0},children:[e.jsx("div",{style:{whiteSpace:"nowrap"},children:_?.authorDisplayName}),e.jsx("div",{style:{whiteSpace:"nowrap"},children:new Intl.DateTimeFormat(navigator.language).format(new Date(_?.created))})]})}),e.jsx("td",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx("pre",{className:j.wpo365AppsShortcode,children:`[wpo365-app id="${_?.id}"]`}),e.jsx(Ke,{iconProps:{iconName:"Copy"},onClick:()=>navigator.clipboard.writeText(`[wpo365-app id="${_?.id}"]`)})]})})]},_?.id)};var vi=(s=>(s.date="date",s.icon="icon",s.item="item",s.link="link",s.name="name",s.number="number",s.text="text",s))(vi||{});const aF=[{field:"fields.Title",hrefTarget:"_blank",isResizable:!0,minWidth:100,title:"Title",type:vi.item,css:{lineHeight:"32px",textDecoration:"underline",color:"blue",fontSize:"14px",cursor:"pointer"}}],Wx=[{type:vi.icon,isResizable:!0,minWidth:32,maxWidth:50},{field:"name",hrefField:"webUrl",hrefTarget:"_blank",isResizable:!0,minWidth:100,title:"Name",type:vi.name,css:{lineHeight:"32px",textDecoration:"underline",color:"blue",fontSize:"14px",cursor:"pointer"}},{field:"lastModifiedDateTime",formatStringDate:"l LT",isResizable:!0,minWidth:100,title:"Modified",type:vi.date,css:{lineHeight:"32px",fontSize:"14px"}},{field:"lastModifiedBy.user.displayName",isResizable:!0,minWidth:120,title:"Modified by",type:vi.text,css:{lineHeight:"32px",fontSize:"14px"}},{field:"size",formatStringNumber:"0.0 b",isResizable:!0,isCollapsible:!0,minWidth:70,title:"Size",type:vi.number,css:{lineHeight:"32px",fontSize:"14px"}}],lF=[{field:"subject",isResizable:!0,title:"Subject",type:vi.item,css:{lineHeight:"32px",textDecoration:"underline",color:"blue",fontSize:"14px",cursor:"pointer"}},{field:"start.dateTime",formatStringDate:"L LT",isResizable:!1,minWidth:140,title:"Start",type:vi.date,css:{lineHeight:"32px",fontSize:"14px"}},{field:"end.dateTime",formatStringDate:"L LT",isCollapsible:!0,isResizable:!1,minWidth:140,title:"End",type:vi.date,css:{lineHeight:"32px",fontSize:"14px"}}],dF={close:"Close",error:"Oops, something went wrong. Check the Developer Console (F12) for details about this error and contact your administrator.",eventDetails:"Event details",from:"From",joinOnlineMeeting:"Join online meeting",multiDayEvent:"Multi-day event",noDetails:"No details available for this event",noEvents:"There are no events to show",onlineMeeting:"Online meeting",to:"To",unknownLocation:"Unknown location",week:"Week"},bf={chooseFile:"Choose file",error:"Oops, something went wrong. Check the Developer Console (F12) for details about this error and contact your administrator.",fileTooLarge:"Files size exceeds maximum of 3MB.",fileUploadOk:"Upload completed",noFiles:"No results",notSupported:'To support folder navigation please upgrade to the <a href="https://www.wpo365.com/wordpress-plugins/" target="_blank">INTRANET or M365 APPS</a> edition',openInSharePoint:"View online",recentColumnTitle:"Title",recentColumnLastActivity:"Last activity",search:"Search",searchKeyword:"Keyword",searchPlaceholder:"Search in this location",uploadFile:"Upload file"},cF={},Bx={lib:{appType:"lib",columns:[...Wx],enableSearch:!1,enableUpload:!1,driveInfo:null,hideMessageBar:!1,listInfo:null,oneDrive:!1,pageSize:50,recent:!1,showOpenInSpLink:!1,siteInfo:null,template:{name:Oc.list},translations:{...bf},useQueryString:!1},lis:{appType:"lis",columns:[...aF],driveInfo:null,enableSearch:!1,enableUpload:!1,hideMessageBar:!1,listInfo:null,oneDrive:!1,pageSize:50,recent:!1,showOpenInSpLink:!1,siteInfo:null,template:{name:Oc.list},translations:{...bf},useQueryString:!1},rec:{appType:"rec",columns:[],driveInfo:null,enableSearch:!1,enableUpload:!1,hideMessageBar:!1,listInfo:null,oneDrive:!1,pageSize:50,recent:!0,showOpenInSpLink:!1,siteInfo:null,template:{name:Oc.list},translations:{...bf},useQueryString:!1},one:{appType:"one",columns:[...Wx],enableSearch:!1,enableUpload:!1,driveInfo:null,hideMessageBar:!1,listInfo:null,oneDrive:!0,pageSize:50,recent:!1,showOpenInSpLink:!1,siteInfo:null,template:{name:Oc.list},translations:{...bf},useQueryString:!1},pbi:{appType:"pbi",contentType:$r.report,dashboardId:"",datasetIds:[],datasetXmlaPermission:aS.Off,embedConfig:{},filterConfig:{},groupId:"",reportAllowEdit:!1,reportId:"",template:{width:"50vw",height:"50vh",splashScreenImgUrl:""},tileId:"",tokenRequest:{},tokenRequestUrl:"",tokenType:Mn.Aad,translations:{...cF}},cal:{appType:"cal",calendarSource:Vr.users,columns:lF,groupBy:lS.month,id:"",pageSize:50,range:aw.currentYear,start:"",startToday:!1,stop:"",translations:dF,template:{useTemplate:!1,templateUrl:""}}},Ey={pbi:{displayName:"Power BI",documentation:"https://tutorials.wpo365.com/courses/embed-power-bi-content-in-wordpress/",requirements:{appOnly:{ajax:!1,endpoints:["https://api.powerbi.com/"],permissions:[],proxy:!0,token:!1},delegated:{ajax:!1,endpoints:[],permissions:["https://analysis.windows.net/powerbi/api/Dashboard.Read.All","https://analysis.windows.net/powerbi/api/Dataset.Read.All","https://analysis.windows.net/powerbi/api/Report.Read.All","https://analysis.windows.net/powerbi/api/Workspace.Read.All"],proxy:!1,token:!0},delegatedOnly:!1,userRequirements:{appOnlyAccess:!1}},type:"pbi"},lib:{displayName:"SharePoint Library",documentation:"https://tutorials.wpo365.com/courses/embed-a-sharepoint-library-in-wordpress/",requirements:{appOnly:{ajax:!1,endpoints:["https://graph.microsoft.com/_/sites","https://graph.microsoft.com/_/drives"],permissions:["Sites.Selected"],proxy:!1,token:!1},delegated:{ajax:!1,endpoints:["https://graph.microsoft.com/_/sites","https://graph.microsoft.com/_/drives"],permissions:["Sites.Read.All"],proxy:!1,token:!1},delegatedOnly:!1,userRequirements:{appOnlyAccess:!1}},type:"lib"},one:{displayName:"Personal OneDrive",documentation:"https://tutorials.wpo365.com/courses/xxx/",requirements:{delegated:{ajax:!1,endpoints:["https://graph.microsoft.com/_/sites","https://graph.microsoft.com/_/drives"],permissions:["Sites.Read.All"],proxy:!1,token:!1},delegatedOnly:!0,userRequirements:{appOnlyAccess:!1}},type:"one"},lis:{displayName:"SharePoint List",documentation:"https://tutorials.wpo365.com/courses/embed-a-sharepoint-list-in-wordpress/",requirements:{appOnly:{ajax:!1,endpoints:["https://graph.microsoft.com/_/sites","https://graph.microsoft.com/_/drives","https://graph.microsoft.com/_/search"],permissions:["Sites.Selected"],proxy:!1,token:!1},delegated:{ajax:!1,endpoints:["https://graph.microsoft.com/_/sites","https://graph.microsoft.com/_/drives","https://graph.microsoft.com/_/search"],permissions:["Sites.Read.All"],proxy:!1,token:!1},delegatedOnly:!1,userRequirements:{appOnlyAccess:!1}},type:"lis"},emp:{displayName:"Entra ID / Employee Directory",documentation:"https://docs.wpo365.com/article/111-employee-directory-and-contacts",requirements:{appOnly:{ajax:!1,endpoints:["https://graph.microsoft.com/_/users"],permissions:["User.Read.All"],proxy:!1,token:!1},delegated:{ajax:!1,endpoints:["https://graph.microsoft.com/_/users"],permissions:["User.Read.All"],proxy:!1,token:!1},delegatedOnly:!1,userRequirements:{appOnlyAccess:!1}},type:"emp"},rec:{displayName:"Recent Items",documentation:"https://tutorials.wpo365.com/courses/xxx/",requirements:{delegated:{ajax:!1,endpoints:["https://graph.microsoft.com/_/me"],permissions:["Sites.Read.All"],proxy:!1,token:!1},delegatedOnly:!0,userRequirements:{appOnlyAccess:!1}},type:"rec"},sea:{displayName:"SharePoint Search",documentation:"https://docs.wpo365.com/article/125-sharepoint-search-for-wordpress",requirements:{delegated:{ajax:!1,endpoints:["https://[sharepoint-home]"],permissions:["https://[sharepoint-home]/Sites.Search.All"],proxy:!1,token:!1},delegatedOnly:!0,userRequirements:{appOnlyAccess:!1}},type:"sea"},cal:{displayName:"Calendar",documentation:"https://tutorials.wpo365.com/courses/embed-an-exchange-calendar-in-wordpress/",requirements:{appOnly:{ajax:!1,endpoints:[],permissions:["Calendars.Read"],proxy:!1,token:!1},delegated:{ajax:!1,endpoints:["https://graph.microsoft.com/_/users"],permissions:["Calendars.Read"],proxy:!1,token:!1},delegatedOnly:!1,userRequirements:{appOnlyAccess:!1}},type:"cal"},yam:{displayName:"Viva Engage / Yammer",documentation:"https://docs.wpo365.com/article/85-yammer-for-wordpress",requirements:{delegated:{ajax:!0,endpoints:["https://www.yammer.com"],permissions:["https://api.yammer.com/user_impersonation"],proxy:!0,token:!1},delegatedOnly:!0,userRequirements:{appOnlyAccess:!1}},type:"yam"}},uF=s=>{const{data:o,getAppInstances:n}=s,{showPreview:t,setLastMessage:i,setLastModified:d,setPanelChild:c,setPermissionsPickerFn:u,setSelectedAppInstanceId:h,setShowPreview:g}=E.useContext(Ln),{env:_,updateSettings:m}=E.useContext(Ye),x=E.useMemo(()=>{if(_?.props?.addOns){const k=Object.keys(_.props.addOns),L=["wpo365-integrate/wpo365-integrate.php","wpo365-apps/wpo365-apps.php","wpo365-login-intranet/wpo365-login.php","wpo365-intranet-5y/wpo365-intranet-5y.php"];return k.some(I=>L.indexOf(I)>-1)}},[_]),{apiFetch:y,data:v,loading:b}=wi();E.useEffect(()=>{v&&(h(v.id),n(),Fe.getSettings(_).then(k=>{m(k)}).catch(k=>i({type:hs.error,message:"Failed to refresh locally cached WPO365 configuration. Please try and refresh the current page instead."})))},[v]);const C=()=>{const k={...Ey[o.type].requirements},L=I=>{let A;I&&(o.type==="pbi"&&(A={...Bx[o.type]},A.tokenType=Mn.reportInGroup,k.userRequirements.appOnlyAccess=!0),(o.type==="lib"||o.type==="lis"||o.type==="cal")&&(k.userRequirements.appOnlyAccess=!0)),y("apps/instance","post",{appInstance:{title:o.displayName,appType:o.type,appliedRequirements:k,config:A||{...Bx[o.type]}}})};["lib","lis","pbi","emp","cal"].indexOf(o.type)>-1&&x&&k.appOnly&&k.delegated?u(()=>L):L(!1)};return e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},className:j.wpo365AppsCatalogItem,children:[e.jsx("div",{className:j.wpo365AppsIcon,children:ki(o.type)}),e.jsx("div",{className:j.wpo365AppsDisplayName,children:o.displayName}),e.jsx("div",{style:{flexGrow:1}}),e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:5},children:[e.jsx(el,{iconProps:void 0,title:"Tutorial",ariaLabel:"Tutorial",onClick:()=>window.open(o.documentation,"_blank"),styles:{label:{fontSize:"13px",color:"#2271b1",textDecoration:"underline"}},children:"Tutorial"}),e.jsx(el,{disabled:["one","rec","yam"].indexOf(o.type)>-1&&!x,iconProps:void 0,title:"Add",ariaLabel:"Add",onClick:()=>{switch(h(void 0),t&&g(!1),o.type){case"emp":location.hash=`/${je.edConfigurator}`;break;case"sea":location.hash=`/${je.cbsConfigurator}`;break;case"yam":location.hash=`/${je.yammer}`;break;default:C(),c({elem:uS(o.type),onDismiss:()=>{n(),h(void 0),d(null)}})}},styles:{label:{fontSize:"13px",color:"#2271b1",textDecoration:"underline"},labelDisabled:{color:"#c1c1c1",textDecoration:"none"}},children:"Add"})]})]})},pF="_toastLayer_1qra7_15",hF="_toastDialog_1qra7_22",mF="_toastHeader_1qra7_45",fF="_toastClose_1qra7_57",gF="_toastSummary_1qra7_68",Dp={toastLayer:pF,toastDialog:hF,toastHeader:mF,toastClose:fF,toastSummary:gF},_F=s=>{const{onClose:o}=s,{env:n,settings:t,updateLastErrorMessage:i,updateSettings:d}=E.useContext(Ye),[c,u]=E.useState(!1),h=async()=>{u(!0);const g={...t};g.enableGraphApi=!0;const _=await Fe.updateSettings(n,g);try{if(_.success){const m=await Fe.getSettings(n);d(m)}}catch(m){const x=m.response?.data?.error_message||m.response?.data?.message||m.message||(typeof m=="string"?m:`Status: ${m.status} ${m.statusText||""}`);i(x)}u(!1),o()};return e.jsx("div",{className:Dp.toastLayer,children:e.jsxs("section",{className:Dp.toastDialog,role:"alertdialog","aria-labelledby":"toast-title","aria-describedby":"toast-desc","aria-modal":"false",children:[e.jsxs("div",{className:Dp.toastHeader,children:[e.jsx("h2",{id:"toastTitle",style:{borderColor:"#0dcaf0"},children:"Getting started"}),e.jsx("button",{className:Dp.toastClose,"aria-label":"Close",onClick:o,children:"✕"})]}),e.jsx("p",{id:"toastDesc",className:Dp.toastSummary,children:"To start enjoying all the benefits of WPO365 apps for embedding Microsoft 365 and Power BI content in WordPress, simply click the button below."}),e.jsx("div",{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},children:[e.jsx(et,{onClick:h,children:"Enable WPO365 for Apps"}),c&&e.jsx(Oe,{size:Te.small})]})})]})})},yF=()=>{const{setAppInstances:s,setLastMessage:o}=E.useContext(Ln),{data:n,apiFetch:t}=wi(),i=()=>{t("apps/instance")};return E.useEffect(()=>{if(n){if(Array.isArray(n)){s([...n]);return}o({message:"Failed to retrieve app instances. [Error: Invalid data received]",type:hs.error})}},[n]),E.useMemo(()=>({getAppInstances:i}),[n])},wF=()=>{const{setLastMessage:s}=E.useContext(Ln),[o,n]=E.useState(!1),[t,i]=E.useState(!1),d=c=>{if(!o){i(!0);try{Ee.get(c,{validateStatus:()=>!0}).then(u=>{u.status!==404?(i(!1),n(!0)):s({type:hs.error,message:`It looks as if you have not configured WordPress Permalinks and for that reason the WordPress REST API is not available at ${c}. Please go to WP Admin > Settings > Permalinks and change it to anything else than "Plain" and return here.`})})}catch(u){i(!1);const g=`${u.response?.data?.message||u.message||(typeof u=="string"?u:`Status: ${u.status} ${u.statusText||""}`)}${u.status?" | Status: "+u.status:""} | Url: ${c}]`;s({type:hs.error,message:g})}}};return E.useMemo(()=>({exists:o,urlExists:d,testing:t}),[o])},vF=s=>{const{appInstances:o,isDirty:n,lastMessage:t,lastModified:i,panelChild:d,permissionsPickerFn:c,saveStatus:u,selectedAppInstanceId:h,setLastMessage:g,setPanelChild:_,setPermissionsPickerFn:m,showPreview:x}=E.useContext(Ln),{env:{props:{siteUrl:y}},settings:{enableGraphApi:v}}=E.useContext(Ye),[b,C]=E.useState(!1),{getAppInstances:k}=yF(),{apiFetch:L,deleted:I}=wi(),{apiFetch:A,created:Y}=wi(),{exists:P,urlExists:T,testing:F}=wF();return E.useEffect(()=>{if(!v)C(!0);else if(P)k();else{const H=`${y.replace(new RegExp("[/]+$"),"")}/wp-json/wpo365/v1/apps/instance`;T(H)}},[b,v,P]),E.useEffect(()=>{(I||Y)&&k()},[I,Y]),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs(U,{horizontal:!0,tokens:{childrenGap:"1.5rem"},className:j.wpo365AppsTab,children:[x?qR(h?o.find(H=>H.id===h)?.appType:""):e.jsxs("div",{className:j.wpo365YourApps,children:[e.jsx("h3",{className:j.wpo365AppsHeading,children:"Your apps"}),e.jsxs("table",{className:j.wpo365AppsTable,children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Type"}),e.jsx("th",{children:"Actions"}),e.jsx("th",{children:"Name"}),e.jsx("th",{children:"Author / Created"}),e.jsx("th",{children:"Shortcode"})]})}),e.jsx("tbody",{children:o.map(H=>e.jsx(iF,{id:H.id,deleteAppInstance:W=>L(`apps/instance/${W}`,"delete"),duplicateAppInstance:W=>A(`apps/instance/${W}/copy`,"post"),getAppInstances:k},H.id))})]})]}),e.jsxs("div",{className:j.wpo365AppsCatalog,children:[e.jsx("h3",{className:j.wpo365AppsHeading,children:"Apps you can add"}),e.jsx(U,{tokens:{childrenGap:15},children:Object.keys(Ey).map(H=>e.jsx(uF,{data:Ey[H],getAppInstances:k},H))})]})]})}),e.jsx(vg,{type:In.medium,hasCloseButton:!1,isOpen:d!==null,onDismiss:()=>{d&&d.onDismiss(),_(null)},closeButtonAriaLabel:"Close",onRenderFooterContent:()=>e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(_n,{content:n?"Auto-saving - Please wait ...":"Close panel",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}},children:e.jsx(rt,{onClick:()=>{d&&d.onDismiss(),_(null)},disabled:n,children:"Close"})}),u==="saving"&&e.jsx(Oe,{size:Te.medium}),e.jsx("div",{style:{flexGrow:1}}),e.jsx("div",{className:j.wpo365TextSmall,children:i!==null?`Last saved at ${i}`:""})]}),isFooterAtBottom:!0,children:h?d===null?e.jsx(Oe,{size:Te.medium}):d.elem:e.jsx(Oe,{size:Te.medium})}),e.jsx(Xc,{hidden:c===null,onDismiss:()=>m(null),dialogContentProps:{type:fo.normal,title:"Please choose your scenario",subText:"Do you intend to use this embed internally within your organization (delegated permissions with user sign-in), or externally for customers (application permissions)?"},modalProps:{isBlocking:!0,styles:{main:{maxWidth:450}}},children:e.jsx(hh,{children:e.jsxs(U,{horizontalAlign:"stretch",tokens:{childrenGap:15},children:[e.jsx(rt,{onClick:()=>{c!==null&&c(!1),m(null)},text:"For my organization"}),e.jsx(rt,{onClick:()=>{c!==null&&c(!0),m(null)},text:"For customers"})]})})}),!!t&&e.jsx(oF,{message:t.message,type:t.type,onClose:()=>g(null)}),b&&e.jsx(_F,{onClose:()=>C(!1)})]})},xF=()=>{const{env:{props:{extensions:s}}}=E.useContext(Ye),[o,n]=E.useState([]),[t,i]=E.useState(!1),[d,c]=E.useState(null),[u,h]=E.useState(null),[g,_]=E.useState(null),[m,x]=E.useState("initial"),[y,v]=E.useState(!1),[b,C]=E.useState(void 0),[k,L]=E.useState(null),I=E.useMemo(()=>s.some(A=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Apps].some(Y=>Y==A)),[]);return e.jsx(Ln.Provider,{value:{appInstances:o,isDirty:t,isPremium:I,lastMessage:d,lastModified:u,panelChild:g,permissionsPickerFn:k,saveStatus:m,selectedAppInstanceId:b,setAppInstances:n,setIsDirty:i,setLastMessage:c,setLastModified:h,setPanelChild:_,setPermissionsPickerFn:L,setSaveStatus:x,setSelectedAppInstanceId:C,setShowPreview:v,showPreview:y},children:e.jsx(vF,{})})};class Sf{static async getLog(o){const n=new FormData;n.append("action","wpo365_get_log"),n.append("nonce",o.nonce),n.append("ina",window.wpo365.wizard.props.ina);let t;try{t=await Ee.post(o.wpAjaxAdminUrl,n)}catch(i){return console.log(i),null}if(t.status==200&&t.data&&t.data.status&&t.data.status=="OK")try{return JSON.parse(t.data.result)}catch(i){return console.log(i),null}return null}}const pS={root:{minWidth:0,padding:"10px",alignSelf:"stretch",height:"auto",backgroundColor:"#f1f1f1"},rootHovered:{backgroundColor:"#f4f4f4"}},bF=[{key:pd.locally,text:"Locally (on the server)"},{key:pd.remotely,text:"Remotely (ApplicationInsights)"},{key:pd.both,text:"Both"}],SF=(s,o)=>e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},style:{maxWidth:"600px"},children:[e.jsx("div",{style:{padding:"2px",whiteSpace:"nowrap"},dangerouslySetInnerHTML:{__html:s.now}}),e.jsx("div",{style:{padding:"2px",whiteSpace:"nowrap"},dangerouslySetInnerHTML:{__html:s.level}})]}),e.jsx("div",{style:{padding:"2px",wordWrap:"break-word",overflow:"auto"},dangerouslySetInnerHTML:{__html:s.body}})]}),CF=s=>s.onRender?s.onRender(s):e.jsx(Dn,{iconProps:{iconName:s.icon},menuProps:s.subMenuProps,text:s.name,onClick:s.onClick,styles:pS}),kF=s=>e.jsx(Dn,{styles:pS,menuIconProps:{iconName:"More"},menuProps:{items:s}}),MF=s=>{const{env:o,env:{props:{extensions:n}},settings:t,updateSettings:i}=E.useContext(Ye),d=E.useRef(""),[c,u]=E.useState({aiInstrumentationKey:t.aiInstrumentationKey,curlLoggingEnabled:t.curlLoggingEnabled,debugLog:t.debugLog,debugLogIdToken:t.debugLogIdToken,debugLogLocation:t.debugLogLocation,enableCustomLogScim:t.enableCustomLogScim,enableCustomLogSync:t.enableCustomLogSync,hideErrorNotice:t.hideErrorNotice}),[h,g]=E.useState([]),[_,m]=E.useState(we.initial),[x,y]=E.useState([]),[v,b]=E.useState([]),[C,k]=E.useState(!0),[L,I]=E.useState(!1);E.useEffect(()=>{L&&(I(!1),A(F=>F.level=="ERROR"||F.level=="WARN"))},[L]),E.useEffect(()=>{k(!0),Sf.getLog(o).then(F=>{y(F),I(!0)}).catch(F=>alert(F.message)).finally(()=>k(!1))},[]),E.useEffect(()=>{const F=JSON.stringify(t);d.current.length>0&&JSON.stringify(d)!==F&&(u({aiInstrumentationKey:t.aiInstrumentationKey,curlLoggingEnabled:t.curlLoggingEnabled,debugLog:t.debugLog,debugLogIdToken:t.debugLogIdToken,debugLogLocation:t.debugLogLocation,enableCustomLogScim:t.enableCustomLogScim,enableCustomLogSync:t.enableCustomLogSync,hideErrorNotice:t.hideErrorNotice}),g([]),b([]),k(!1),y([]),m(we.initial)),d.current=F},[t]);const A=F=>{const H=Array.isArray(x)?x.filter(F):[];H.length===0&&H.push({now:"",level:"",request_id:"",php_version:"",body:"<strong>No result</strong> <i>Try another filter...</i>"}),b(H)},Y=F=>{const H=[{key:"filterErrors",name:"Errors / Warnings",icon:"Filter",ariaLabel:"Filter: Errors",onClick:()=>A(W=>W.level=="ERROR"||W.level=="WARN")},{key:"filterDebug",name:"Debug",icon:"Filter",ariaLabel:"Filter: Debug",onClick:()=>A(W=>W.level=="DEBUG")},{key:"deleteFilter",name:"All",icon:"ClearFilter",ariaLabel:"Delete filters",onClick:()=>b([...F])},{key:"refresh",name:"Refresh",icon:"Refresh",ariaLabel:"Refresh log",onClick:()=>{k(!0),Sf.getLog(o).then(W=>{y(W),I(!0)}).catch(W=>alert(W.message)).finally(()=>k(!1))}}];return t.curlLoggingEnabled&&H.splice(1,0,{key:"filterCurl",name:"cURL",icon:"Filter",ariaLabel:"Filter: cURL",onClick:()=>A(W=>W.level=="CURL")}),H},P=()=>{k(!0),u({...c,curlLoggingEnabled:!c.curlLoggingEnabled}),Sf.getLog(o).then(F=>{y(F),I(!0)}).catch(F=>alert(F.message)).finally(()=>k(!1))},T=async()=>{m(we.saving);const F={...t};F.aiInstrumentationKey=c.aiInstrumentationKey,F.curlLoggingEnabled=c.curlLoggingEnabled,F.debugLog=c.debugLog,F.debugLogIdToken=c.debugLogIdToken,F.debugLogLocation=c.debugLogLocation,F.enableCustomLogScim=c.enableCustomLogScim,F.enableCustomLogSync=c.enableCustomLogSync,F.hideErrorNotice=c.hideErrorNotice;const H=await Fe.updateSettings(o,F);H.success?(Fe.getSettings(o).then(W=>{i(W),k(!0),Sf.getLog(o).then(K=>{y(K),I(!0)}).catch(K=>alert(K.message)).finally(()=>k(!1))}),g([]),m(we.success)):(g([...h,new Lr("saveConfiguration",H.message,2e3)]),m(we.error))};return e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Debug"})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("div",{dangerouslySetInnerHTML:{__html:`<strong>Use this tab to</strong>
                <ul>
                <li>Enable / Disable the plugin's debug log</li>
                <li>Enable / Disable logging of the Open ID Connect information (ID Token)</li>
                <li>Copy the debug log to your clipboard e.g. to send it to WPO365 support when requested to do so</li>
                </ul>
                <strong>Important</strong><br/><br/>
                Disable logging if the plugin is working as expected, as it will require additional resources e.g. 
                database requests and I/O operations and unnecessarily impact your web application's performance.
                `}})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable debug log"}),e.jsx(de,{info:{title:"Debug log",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/19-enable-debug-log"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(F,H)=>u({...c,debugLog:H}),checked:c.debugLog})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Log location"}),e.jsx(de,{info:{title:"Log location",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/60-log-location"}}})]})}),e.jsx("td",{children:e.jsx(yg,{defaultSelectedKey:c.debugLogLocation,options:bF,onChange:(F,H)=>u({...c,debugLogLocation:H.key})})})]}),(c.debugLogLocation==pd.remotely||c.debugLogLocation==pd.both)&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"ApplicationInsights Instrumentation Key"}),e.jsx(de,{info:{title:"Use ApplicationInsights",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/60-log-location"}}})]})}),e.jsx("td",{children:e.jsx(fe,{bound:!1,value:c.aiInstrumentationKey,isValid:(F,H)=>!0,onValid:F=>{u({...c,aiInstrumentationKey:F})},placeholder:me.infoAiInstrumentationKey})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Hide error notice"}),e.jsx(de,{info:{title:"Hide error notice",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/64-hide-error-notice"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(F,H)=>u({...c,hideErrorNotice:H}),checked:c.hideErrorNotice})})})]}),n.indexOf(l.wpo365Login)>-1&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Log ID token"}),e.jsx(de,{info:{title:"Log ID token",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/65-log-id-token"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(F,H)=>u({...c,debugLogIdToken:H}),checked:c.debugLogIdToken})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable cURL verbose"}),e.jsx(de,{info:{title:"Enable cURL verbose",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/214-enable-curl-verbose"}}})]})}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:P,checked:c.curlLoggingEnabled})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(rt,{onClick:T,iconProps:{iconName:_==we.success?"Like":void 0},style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px",alignSelf:"start"},disabled:h.length>0||_==we.saving,children:"Save configuration"}),e.jsx("div",{className:j.wpo365WzLabelFor,children:yd(h,"saveConfiguration").map(F=>e.jsx("p",{className:j.wpo365WzP,children:F.message}))}),_==we.success?e.jsx("p",{style:{color:"#378805"},children:me.okSettingsUpdated}):null]})})]}),e.jsxs("tr",{style:{marginBottom:"1rem"},children:[e.jsx("th",{}),e.jsx("td",{children:e.jsx("div",{className:j.wpo365WzRowifier,children:e.jsx("div",{style:{width:"400px",border:"1px solid",textAlign:"center",boxSizing:"border-box",height:"30px",lineHeight:"28px"},children:e.jsx("a",{href:"data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(x,null,2)),download:"wpo365-log.json",children:"Download as JSON"})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Debug Log:"}),e.jsx("td",{style:{maxWidth:"400px"},children:e.jsxs(U,{style:{maxWidth:"650px"},children:[e.jsx(ph,{items:Y(x),overflowItems:[],onRenderOverflowButton:kF,onRenderItem:CF}),C?e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{paddingTop:"20px"},children:[e.jsx("div",{style:{width:"400px",textAlign:"center"},children:e.jsx(Oe,{size:Te.small})}),e.jsx("div",{})]}):e.jsx(Jp,{items:v,onRenderCell:SF})]})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Bs,{})})})]})})},jF=s=>{const{env:o,settings:n,updateSettings:t}=E.useContext(Ye),i={bounceToAdmin:n.bounceToAdmin,leeway:n.leeway,passwordLength:n.passwordLength,preventSendEmailChangeEmail:n.preventSendEmailChangeEmail,preventSendPasswordChangeEmail:n.preventSendPasswordChangeEmail,skipHostVerification:n.skipHostVerification,skipNonceVerification:n.skipNonceVerification,skipUserRegisterAction:n.skipUserRegisterAction,skipWpLoginAction:n.skipWpLoginAction,useIdTokenParserV2:n.useIdTokenParserV2,useLoaderV1:n.useLoaderV1,useLoginButtonV1:n.useLoginButtonV1,useMsTeamsSsoV1:n.useMsTeamsSsoV1,useNoTeamsSso:n.useNoTeamsSso,useWpCli:n.useWpCli,useWpConfigFrags:n.useWpConfigFrags,validateOnPluginsLoaded:n.validateOnPluginsLoaded},[d,c]=E.useState(i),[u,h]=E.useState(null),[g,_]=E.useState(we.initial),[m,x]=E.useState([]),y=()=>{const{useIdTokenParserV2:C}=d;if(C){c({...d,useIdTokenParserV2:!1});return}const k={title:me.titleUseIdTokenParserV2,subText:me.subTextUseIdTokenParserV2,onDismiss:()=>h(null),onCancel:()=>h(null),onConfirm:()=>{c({...d,useIdTokenParserV2:!0}),h(null)}};h(k)},v=()=>{const{useNoTeamsSso:C}=d;if(C){c({...d,useNoTeamsSso:!1});return}h({title:"Important",subText:"If you check this option to enable support for IE 11, integration with Microsoft Teams is no longer possible.",onDismiss:()=>h(null),onCancel:()=>h(null),onConfirm:()=>{c({...d,useNoTeamsSso:!0}),h(null)}})},b=async()=>{_(we.saving);const C={...n};C.leeway=d.leeway,C.bounceToAdmin=d.bounceToAdmin,C.passwordLength=d.passwordLength,C.preventSendEmailChangeEmail=d.preventSendEmailChangeEmail,C.preventSendPasswordChangeEmail=d.preventSendPasswordChangeEmail,C.skipHostVerification=d.skipHostVerification,C.skipNonceVerification=d.skipNonceVerification,C.skipUserRegisterAction=d.skipUserRegisterAction,C.skipWpLoginAction=d.skipWpLoginAction,C.useIdTokenParserV2=d.useIdTokenParserV2,C.useLoaderV1=d.useLoaderV1,C.useLoginButtonV1=d.useLoginButtonV1,C.useMsTeamsSsoV1=d.useMsTeamsSsoV1,C.useNoTeamsSso=d.useNoTeamsSso,C.useWpCli=d.useWpCli,C.useWpConfigFrags=d.useWpConfigFrags,C.validateOnPluginsLoaded=d.validateOnPluginsLoaded;const k=await Fe.updateSettings(o,C);k.success?(Fe.getSettings(o).then(L=>t(L)),x([]),_(we.success)):(x([...m,new Lr("saveConfiguration",k.message,2e3)]),_(we.error))};return e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Miscellaneous"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:"Skip authentication for WP-CLI"}),e.jsx(de,{info:{title:"Skip authentication for WP-CLI",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/173-skip-authentication-for-wp-cli"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,useWpCli:k}),checked:d.useWpCli})})]}),o.props.extensions.indexOf(l.wpo365Login)>-1&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:"Don't fire wp-login action"}),e.jsx(de,{info:{title:"Don't fire wp-login action",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/95-skip-wplogin-action"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,skipWpLoginAction:k}),checked:d.skipWpLoginAction})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:'Prevent WordPress to send "email changed" emails'}),e.jsx(de,{info:{title:'Prevent WordPress to send "email changed" email',readMore:{title:"Read online",url:"https://docs.wpo365.com/article/115-prevent-wordpress-to-send-email-changed-email"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,preventSendEmailChangeEmail:k}),checked:d.preventSendEmailChangeEmail})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:'Prevent WordPress to send "password changed" emails'}),e.jsx(de,{info:{title:'Prevent WordPress to send "password changed" email',readMore:{title:"Read online",url:"https://docs.wpo365.com/article/148-prevent-wordpress-to-send-password-changed-email"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,preventSendPasswordChangeEmail:k}),checked:d.preventSendPasswordChangeEmail})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:"Don't fire user_register action"}),e.jsx(de,{info:{title:"Don't fire user_register action",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/91-skip-userregister-action"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,skipUserRegisterAction:k}),checked:d.skipUserRegisterAction})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"Use Firebase\\JWT instead of phpseclib"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:y,checked:d.useIdTokenParserV2})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"Use loader animation V1 (bars)"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,useLoaderV1:k}),checked:d.useLoaderV1})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:"Use Microsoft Teams SSO V1"}),e.jsx(de,{info:{title:"Use Microsoft Teams SSO V1",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/70-adding-a-wordpress-tab-to-microsoft-teams-and-use-single-sign-on"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,useMsTeamsSsoV1:k}),checked:d.useMsTeamsSsoV1})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"Use login-button template V1"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,useLoginButtonV1:k}),checked:d.useLoginButtonV1})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"IE 11 compatibility mode"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:v,checked:d.useNoTeamsSso})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:"Use admin URL to initiate authentication"}),e.jsx(de,{info:{title:"Use admin URL to initiate authentication",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/219-use-admin-url-to-initiate-authentication"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,bounceToAdmin:k}),checked:d.bounceToAdmin})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:"Password length"}),e.jsx(de,{info:{title:"Password length",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/138-password-length"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(fe,{isValid:(C,k)=>/^\d+$/.test(k),onValid:C=>c({...d,passwordLength:parseInt(C)}),bound:!1,errorMessage:me.errPasswordLengthMustBeNumeric,value:d.passwordLength.toString(),placeholder:me.infoPasswordLength})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:"Skip NONCE verification"}),e.jsx(de,{info:{title:"Skip NONCE verification",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/97-skip-nonce-verification"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,skipNonceVerification:k}),checked:d.skipNonceVerification})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:"(cURL) Skip SSL host verification"}),e.jsx(de,{info:{title:"Skip SSL host verification",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/102-skip-ssl-host-verification"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{onChange:(C,k)=>c({...d,skipHostVerification:k}),checked:d.skipHostVerification})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{children:"Leeway"}),e.jsx(de,{info:{title:"Leeway time",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/157-leeway"}}})]})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(fe,{isValid:(C,k)=>/^\d+$/.test(k),onValid:C=>c({...d,leeway:parseInt(C)}),bound:!1,errorMessage:me.errLeewayMustBeNumeric,value:d.leeway.toString(),placeholder:me.infoLeeway})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs(U,{tokens:{childrenGap:10},style:{maxWidth:"400px"},children:[e.jsx(rt,{onClick:()=>b(),iconProps:{iconName:g==we.success?"Like":void 0},style:{minWidth:"400px",minHeight:"30px"},disabled:g==we.saving,children:"Save configuration"}),e.jsx("div",{className:j.wpo365WzLabelFor,children:yd(m,"saveConfiguration").map(C=>e.jsx("p",{className:j.wpo365WzP,children:C.message}))}),g==we.success?e.jsx("p",{style:{color:"#378805"},children:me.okSettingsUpdated}):null]})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Bs,{})})}),u&&e.jsx(Ws,{onCancel:u.onCancel,onConfirm:u.onConfirm,onDismiss:u.onDismiss,title:u.title,subText:u.subText})]})})},Hx=(s,o)=>{const n=o.filter(t=>t.key==s);return n.length===1?n[0].option:s},zx=s=>{const{choicesA:o,choicesAPlaceholder:n,choicesB:t,choicesBPlaceholder:i,disabled:d,list:c,onListChanged:u,prefixA:h,prefixB:g}=s,[_,m]=E.useState(c?[...c]:[]),[x,y]=E.useState(""),[v,b]=E.useState(""),[C,k]=E.useState("");return E.useEffect(()=>{JSON.stringify(_)!==JSON.stringify(c)&&u(_)},[_]),e.jsxs(U,{tokens:{childrenGap:10},horizontalAlign:"start",style:{width:"400px"},children:[e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},style:{width:"100%"},children:[e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx($e,{placeholder:n||void 0,options:o.map(L=>({key:L.key,text:L.option})),onChange:(L,I)=>{y(""),b(String(I.key))},selectedKey:v,styles:{root:{flexGrow:1,flexShrink:0,maxWidth:"400px",width:"400px"}},disabled:d}),e.jsx("div",{style:{width:"30px",height:"30px",padding:0}})]}),e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx($e,{placeholder:i||void 0,options:t.map(L=>({key:L.key,text:L.option})),onChange:(L,I)=>{y(""),k(String(I.key))},selectedKey:C,styles:{root:{flexGrow:1,flexShrink:0,maxWidth:"400px",width:"400px"}},disabled:d}),e.jsx(Ke,{disabled:d,onClick:()=>{if(!v||!C){y("This setting requires a value");return}const L=[..._];L.push({key:v,value:C}),m([...L]),b(null),k(null)},iconProps:{iconName:"Add"},title:"Add",ariaLabel:"Click to add this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]})]}),x&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:x}),_.length>0&&e.jsx("div",{style:{width:"400px",height:"1px",backgroundColor:"black"}}),_.map((L,I)=>e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},style:{width:"100%",marginBottom:"20px"},children:[e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,disabled:!0,value:`${h}${Hx(L.key,o)}`}),e.jsx("div",{style:{width:"30px",height:"30px",padding:0}})]}),e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,disabled:!0,value:`${g}${Hx(L.value,t)}`}),e.jsx(Ke,{onClick:()=>{const A=[..._];A.splice(I,1),m(A)},iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]})]},`${btoa(L.key)}-${btoa(L.value)}`))]})},LF=s=>{const{keyErrorMessage:o,keyIsValid:n,keyPlaceholder:t,list:i,onListChanged:d,titleErrorMessage:c,titleIsValid:u,titlePlaceholder:h,valueErrorMessage:g,valueIsValid:_,valuePlaceholder:m}=s,[x,y]=E.useState(""),[v,b]=E.useState(""),[C,k]=E.useState([]),[L,I]=E.useState(""),[A,Y]=E.useState(""),[P,T]=E.useState(""),[F,H]=E.useState(i?[...i]:[]);return E.useEffect(()=>{JSON.stringify(F)!==JSON.stringify(i)&&d(F)},[F]),E.useEffect(()=>{if(!v)return;if(C.indexOf(v)>-1){T("Entra ID already added to the list");return}const W=[...C];W.push(v),k(W),b("")},[v]),e.jsxs(U,{tokens:{childrenGap:10},horizontalAlign:"start",style:{width:"400px"},children:[e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},style:{width:"100%"},children:[e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,errorMessage:c,isValid:(W,K)=>(L&&I(""),P&&T(""),u&&K?u.test(K):!0),onError:W=>I(W),onValid:W=>{y(W)},placeholder:h||void 0,value:x}),e.jsx(Ke,{onClick:()=>{if(!x||C.length===0){T("This setting requires a value");return}const W=[...F];W.push({title:x,key:Zt(12),values:[...C]}),H([...W]),y(""),b(""),k([])},iconProps:{iconName:"Add"},title:"Add",ariaLabel:"Click to add this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]}),e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},style:{width:"100%"},children:[e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,errorMessage:g,isValid:(W,K)=>(A&&Y(""),P&&T(""),_&&K?_.test(K):!0),onError:W=>Y(W),onValid:W=>{b(W)},placeholder:m||void 0,value:v}),e.jsx("div",{style:{width:"30px",height:"30px",padding:0}})]}),C.map((W,K)=>e.jsxs(U,{tokens:{childrenGap:20},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,disabled:!0,value:W}),e.jsx(Ke,{onClick:()=>{const Z=[...C];Z.splice(K,1),k(Z)},iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]},`nvl_${btoa(W)}`))]})]}),L&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:L}),A&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:A}),P&&e.jsx("div",{style:{lineHeight:"30px",color:"#cc0000"},children:P}),F.length>0&&e.jsx("div",{style:{width:"400px",height:"1px",backgroundColor:"black"}}),F.map((W,K)=>e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},style:{width:"100%",marginBottom:"20px"},children:[e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx("div",{style:{width:"100%",height:"30px"},children:`ID: ${W.key}`}),e.jsx(Ke,{onClick:()=>{const Z=[...F];Z.splice(K,1),H(Z)},iconProps:{iconName:"Delete"},title:"Delete",ariaLabel:"Click to delete this item",style:{fontSize:"12px",lineHeight:"30px",height:"30px",width:"30px",padding:0,marginLeft:"10px",cursor:"pointer"}})]}),e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,disabled:!0,value:W.title}),e.jsx("div",{style:{width:"30px",height:"30px",padding:0}})]}),W.values.map((Z,Q)=>e.jsxs(U,{tokens:{childrenGap:10},horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[e.jsx(fe,{bound:!0,disabled:!0,value:Z}),e.jsx("div",{style:{width:"30px",height:"30px",padding:0}})]},btoa(Z)))]},btoa(W.key)))]})},EF=()=>{const{env:s,updateAppStatus:o,updateLastErrorMessage:n,updateSettings:t}=E.useContext(Ye),[i,d]=E.useState(null),c=E.useCallback(u=>{n(""),o("working"),d(null),Fe.updateSettings(s,u).then(h=>{if(h.success)Fe.getSettings(s).then(g=>{d("OK"),t(g),o("initial")}).catch(g=>{d("NOK"),n(`Failed to get updated settings. [Error: ${g.message||"Unknown error"}]`)}).finally(()=>o("initial"));else throw new Error(`Failed to get updated settings. [Error: ${h.error.message||"Unknown error"}]`)}).catch(h=>{n(`Failed to update settings. [Error: ${h.message||"Unknown error"}]`),d("NOK")}).finally(()=>o("initial"))},[]);return E.useMemo(()=>({saveStatus:i,saveOptions:c}),[i])},DF=s=>{const o=s.some(t=>[l.wpo365Customers,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(i=>i==t));return[{key:"select",text:"Select",itemType:Tt.Header},{key:"intranet",text:"Intranet"},{key:"internet",text:"Internet"},{key:"internetAuthOnly",text:"Internet (auth. only)",disabled:!o},{key:"intranetAuthOnly",text:"Intranet (auth. only)",disabled:!o}]},IF=()=>{const s=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,o=/^(([0-9a-fA-F]{1,4}:){7}([0-9a-fA-F]{1,4}|:)|(([0-9a-fA-F]{1,4}:){1,6}|:):(([0-9a-fA-F]{1,4}:){1,5}|:):(([0-9a-fA-F]{1,4}:){1,4}|:):(([0-9a-fA-F]{1,4}:){1,3}|:):(([0-9a-fA-F]{1,4}:){1,2}|:):([0-9a-fA-F]{1,4}|:):(([0-9a-fA-F]{1,4}:){1,1}|:):([0-9a-fA-F]{1,4}|:):([0-9a-fA-F]{1,4}|:))$/;return new RegExp(`${s.source}|${o.source}`)},co=s=>Array.isArray(s)?s.map(o=>({key:o.value,value:o.key})):[],TF=()=>{const{appStatus:s,env:o,env:{nonce:n,props:{addOns:t,availableGroups:i,availablePostTypes:d,availableRoles:c,extensions:u,wpmu:h,wpConfigMultiple:g},wpAjaxAdminUrl:_},settings:m,settings:{hidePremiumOptions:x},updateAppStatus:y,updateSettings:v}=E.useContext(Ye),b=E.useMemo(()=>Qr(i,[]),[]),C=E.useMemo(()=>Object.keys(Qr(d,[])),[]),k=E.useMemo(()=>Object.keys(Qr(c,[])),[]),[L,I]=E.useState(null),[A,Y]=E.useState(null),[P,T]=E.useState(""),[F,H]=E.useState({authScenario:m.authScenario||Gr.intranet,blockDirectMediaAccess:m.blockDirectMediaAccess,blockDirectMediaAccessMode:m.blockDirectMediaAccessMode,pagesBlacklist:m.pagesBlacklist,skipIps:m.skipIps,privatePages:m.privatePages,publicHomepage:m.publicHomepage,domainWhitelist:m.domainWhitelist,domainBlockedList:m.domainBlockedList,groupsWhitelist:m.groupsWhitelist,allGroupMemberships:m.allGroupMemberships,muNewUsrDefaultRole:m.muNewUsrDefaultRole,newUsrDefaultRole:m.newUsrDefaultRole,replaceOrUpdateUserRoles:m.replaceOrUpdateUserRoles,defaultRoleAsFallback:m.defaultRoleAsFallback,updateAdmins:m.updateAdmins,replaceOrUpdateWpmuUserRoles:m.replaceOrUpdateWpmuUserRoles,groupsXRoles:m.groupsXRoles,muGroupsXSuperAdmins:m.muGroupsXSuperAdmins,muRevokeSuperAdmin:m.muRevokeSuperAdmin,customFieldsXRoles:m.customFieldsXRoles,appRolesXWpRoles:m.appRolesXWpRoles,groupsXGroupsGroups:m.groupsXGroupsGroups,customFieldsXItthinxGroups:m.customFieldsXItthinxGroups,domainsXRoles:m.domainsXRoles,enableAudiences:m.enableAudiences,audiences:m.audiences,audiencesExcludedPostTypes:m.audiencesExcludedPostTypes,audiencesExcludedRoles:m.audiencesExcludedRoles,audiencesPrivatePageResponse:m.audiencesPrivatePageResponse,audiencesPrivatePostTypes:m.audiencesPrivatePostTypes,audiencesXPostTypes:m.audiencesXPostTypes,enableAudiencesRest:m.enableAudiencesRest}),{saveStatus:W,saveOptions:K}=EF();E.useEffect(()=>{A!==null&&Z()},[A]),E.useEffect(()=>{W==="OK"&&A==="blockDirectMediaAccess"&&(T(""),Q().catch(R=>{T(R.message),Fe.getSettings(o).then(X=>{v(X)})})),W!==null&&Y(null)},[W]);const Z=()=>{y("working");const R={...m};Object.keys(F).forEach($=>{$ in R&&(R[$]=F[$])}),K(R)},Q=async()=>{const R=new FormData;R.append("action","wpo365_block_direct_media_access"),R.append("nonce",n),R.append("ina",window.wpo365.wizard.props.ina);const X=await Ee.post(_,R);if(X.status<200&&X.status>299)throw X.data?.message?new Error(X.data.message):X.statusText?new Error(X.statusText):new Error("Unknown error occurred whilst trying to update your site's .htaccess. Please check the online documentation for instructions to update it manually instead.");if(X.data?.status==="NOK")throw new Error(X.data.message)},B=(R,X,$,ie)=>{I({title:$,subText:ie,onDismiss:()=>I(null),onCancel:()=>I(null),onConfirm:()=>{I(null)}})};return e.jsxs("div",{className:j.wpo365WzMain,children:[e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsxs("h3",{className:j.wpo365WzSectionTitle,children:[e.jsx("span",{style:{color:"#CE5708"},children:"Getting started"})," with Roles + Access"]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(ou,{buttons:[{callToAction:"Entra ID based roles and access control",info:"https://www.wpo365.com/feature/entra-id-based-roles-and-access-control-for-wordpress/",title:"Roles + Access",tutorial:"https://tutorials.wpo365.com/courses/ra-dynamically-assign-wordpress-roles-based-on-azure-ad-group-memberships/"},{callToAction:"Control access to specific post and pages",info:"https://www.wpo365.com/feature/entra-id-based-single-sign-on-for-wordpress/",title:"Audiences",tutorial:"https://tutorials.wpo365.com/courses/ra-use-wpo365-audiences-to-restrict-gate-access-to-content/"},{callToAction:"Restrict access and require authentication",tutorial:"https://docs.wpo365.com/article/36-authentication-scenario",title:"Authencation Scenario"},{callToAction:"Require login for the WordPress Media Folder",tutorial:"https://docs.wpo365.com/article/229-require-login-for-the-wordpress-media-folder",title:"Protect Media Files"}]})})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Protection"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Authentication scenario"})," ",e.jsx(de,{info:{title:"Authentication scenario",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/36-authentication-scenario"}}})]})}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx($e,{options:DF(u),selectedKey:F.authScenario,onChange:(R,X)=>{X&&H({...F,authScenario:X.key})},style:{maxWidth:"400px"}}),(F.authScenario==Gr.intranet||F.authScenario==Gr.intranetAuthOnly)&&e.jsxs("span",{className:j.wpo365WzRowifier,style:{color:"#0078D4"},children:[e.jsx(Ue,{iconName:"Warning",style:{paddingRight:"5px"}}),"Please take a moment and review the  ",e.jsx("a",{href:"https://docs.wpo365.com/article/36-authentication-scenario",target:"_blank",children:"online documentation"})]})]})})]}),(!x||u.some(R=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(X=>X==R)))&&(F.authScenario==Gr.intranet||F.authScenario==Gr.intranetAuthOnly)&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Require login for wp-content/uploads"})," ",e.jsx(de,{info:{title:"Require login for the Media Folder",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/229-require-login-for-the-wordpress-media-folder"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:15},style:{height:"30px"},children:[e.jsx(jn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:F.blockDirectMediaAccess,onChange:(R,X)=>{H({...F,blockDirectMediaAccess:X}),Y("blockDirectMediaAccess")}}),A==="blockDirectMediaAccess"&&e.jsx(Oe,{size:Te.small})]}),P&&e.jsx("div",{style:{color:"#dc3545",maxWidth:"400px"},children:P})]})})})]}),F.blockDirectMediaAccess&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Secure Download Mode"}),e.jsx(de,{info:{title:"Require login for the Media Folder",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/229-require-login-for-the-wordpress-media-folder"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx($e,{options:[{key:"select",text:"Select Download Mode",itemType:Tt.Header},{key:"php",text:"Use Readfile() (PHP)"},{key:"apache_x_sendfile",text:"Use X-Sendfile (Apache)"}],selectedKey:F.blockDirectMediaAccessMode,onChange:(R,X)=>X&&H({...F,blockDirectMediaAccessMode:X.key}),placeholder:"default php",style:{maxWidth:"400px"}})})})]})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Pages freed from authentication"})," ",e.jsx(de,{info:{title:"Pages freed from authentication",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/37-pages-blacklist"}}})]})}),e.jsx("td",{children:e.jsx(Bo,{list:F.pagesBlacklist,onListChanged:R=>H({...F,pagesBlacklist:R}),isValid:new RegExp("^/"),errorMessage:"A Pages Blacklist must be a site-relative URL, starting with (/)",placeholder:"e.g. /wp-json/wp/v2/posts"})})]}),(!x||t)&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"IP addresses freed from authentication"})," ",e.jsx(de,{info:{title:"IP addresses freed from authentication",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/220-ip-adresses-freed-from-authentication"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365Essentials,l.wpo365Customers,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Sync5y],children:e.jsx(Bo,{list:F.skipIps,onListChanged:R=>H({...F,skipIps:R}),placeholder:"e.g. 69.89.31.225",isValid:IF(),errorMessage:"You must enter a valid IPv4 or IPv6 address"})})})]}),(!x||u.some(R=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(X=>X==R)))&&(F.authScenario==Gr.internet||F.authScenario==Gr.internetAuthOnly)&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Private pages"})," ",e.jsx(de,{info:{title:"Private Pages",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/38-private-pages"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx(Bo,{list:F.privatePages,onListChanged:R=>H({...F,privatePages:R}),placeholder:"e.g. https://www.mycompany.com/private-page/",isValid:new RegExp(/^(http|https):\/\//i),errorMessage:"Each private page must start with http.",onAdd:R=>(B(!1,()=>!1,"Deprecated",`This feature is no longer supported. Please use the <strong>Private page</strong> functionality that is provided by the <strong>Audiences</strong> feature. You can configure <strong>Audiences</strong> on the plugin's <a href="#userRegistration">User registration</a> configuration page.`),!1)})})})]}),(!x||u.some(R=>[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(X=>X==R)))&&(F.authScenario==Gr.intranet||F.authScenario==Gr.intranetAuthOnly)&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Public homepage"})," ",e.jsx(de,{info:{title:"Public homepage",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/42-public-homepage"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(R,X)=>H({...F,publicHomepage:X??!1}),checked:F.publicHomepage})})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Roles + Access"})})}),(!x||u.some(R=>[l.wpo365RolesAccess,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro].some(X=>X==R)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Allowed / Blocked (login) domains"})," ",e.jsx(de,{info:{title:"Allowed / Blocked (login) domains",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/43-domain-whitelist"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsxs(U,{horizontalAlign:"start",tokens:{childrenGap:10},children:[e.jsx(jn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:F.domainBlockedList,onChange:(R,X)=>{H({...F,domainBlockedList:X??!1}),Y("allowBlockDomains")},inlineLabel:!0,label:`Listed domains will be ${F.domainBlockedList?"blocked from":"allowed to"} login`}),e.jsx(Bo,{list:F.domainWhitelist,onListChanged:R=>H({...F,domainWhitelist:R}),placeholder:"e.g. mycompany.com",isValid:new RegExp(/^(?!http)/i),errorMessage:"A Domain Whitelist entry cannot start with http"})]})})})]}),(!x||u.some(R=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==R)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Allowed Entra ID Groups"}),e.jsx(de,{info:{title:"Allowed Entra ID Groups",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/40-restrict-access-to-members-of-specific-azure-ad-groups"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Bo,{list:F.groupsWhitelist,onListChanged:R=>H({...F,groupsWhitelist:R}),placeholder:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",isValid:new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),errorMessage:"Entra ID Group ID must be a valid GUID"})})})]}),(!x||u.some(R=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==R)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Retrieve all Entra ID + M365 groups"}),e.jsx(de,{info:{title:"Retrieve all group memberships",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/93-all-group-memberships"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(R,X)=>H({...F,allGroupMemberships:X??!1}),checked:F.allGroupMemberships})})})})]}),(!x||u.some(R=>[l.wpo365Avatar,l.wpo365Customers,l.wpo365CustomFields,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPlus,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Mail,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Sync5y].some(X=>X==R)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Default role (main site)"}),e.jsx(de,{info:{title:"Default role main site",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/52-default-role-main-site"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365Avatar,l.wpo365Customers,l.wpo365Essentials,l.wpo365Integrate,l.wpo365Intranet5y,l.wpo365LoginIntranet,l.wpo365LoginPlus,l.wpo365LoginPremium,l.wpo365LoginProfessional,l.wpo365Mail,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Scim,l.wpo365Sync5y,l.wpo365CustomFields],children:e.jsx($e,{options:[{key:"select",text:"Select",itemType:Tt.Header}].concat(k.map((R,X)=>{const $=R.toLocaleLowerCase();return{key:$,text:$,itemType:Tt.Normal}})),selectedKey:F.newUsrDefaultRole,onChange:(R,X)=>X&&H({...F,newUsrDefaultRole:X.key}),placeholder:"e.g. author",style:{maxWidth:"400px"}})})})]}),h&&(h=="wpmuShared"||h=="wpmuDedicated")&&(!x||u.some(R=>[l.wpo365RolesAccess,l.wpo365LoginPlus,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Mail].some(X=>X==R)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Default role (wpmu sub site)"}),e.jsx(de,{info:{title:"Default role sub site",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/53-default-role-sub-site"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPlus,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro],children:e.jsx($e,{options:[{key:"select",text:"Select",itemType:Tt.Header}].concat(k.map((R,X)=>{const $=R.toLocaleLowerCase();return{key:$,text:$,itemType:Tt.Normal}})),selectedKey:F.muNewUsrDefaultRole,onChange:(R,X)=>X&&H({...F,muNewUsrDefaultRole:X.key}),placeholder:"e.g. subscriber",style:{maxWidth:"400px"}})})})]}),F.replaceOrUpdateUserRoles!="skip"&&(!x||u.some(R=>[l.wpo365LoginPlus,l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==R)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Default role as fallback"}),e.jsx(de,{info:{title:"Default role as fallback",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/39-map-between-azure-ad-groups-and-wordpress-roles"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365LoginPlus,l.wpo365RolesAccess,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(R,X)=>H({...F,defaultRoleAsFallback:X??!1}),checked:F.defaultRoleAsFallback})})})})]}),(!x||u.some(R=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==R)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Update administrator accounts"}),e.jsx(de,{info:{title:"Update administrator accounts",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/132-update-administrator-accounts"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(R,X)=>H({...F,updateAdmins:X??!1}),checked:F.updateAdmins})})})})]}),(!x||u.some(R=>[l.wpo365LoginPlus,l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==R)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"WP role(s) update scenario"}),e.jsx(de,{info:{title:"WP role(s) update scenario",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/39-map-between-azure-ad-groups-and-wordpress-roles"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365LoginPlus,l.wpo365RolesAccess,l.wpo365LoginProfessional,l.wpo365Essentials,l.wpo365Customers,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro],children:e.jsx($e,{options:[{key:"select",text:"Select",itemType:Tt.Header},{key:"add",text:"Add"},{key:"replace",text:"Replace"},{key:"skip",text:"Skip"}],selectedKey:F.replaceOrUpdateUserRoles,onChange:(R,X)=>X&&H({...F,replaceOrUpdateUserRoles:X.key}),style:{maxWidth:"400px"}})})})]}),F.replaceOrUpdateUserRoles!="skip"&&e.jsxs(e.Fragment,{children:[h==="wpmuShared"&&(!x||u.some(R=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==R)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Synchronize WP role(s) across all sub sites"}),e.jsx(de,{info:{title:"Synchronize WP role(s) across all subsites",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/230-synchronize-wp-roles-across-all-sub-sites"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Scim,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(R,X)=>H({...F,replaceOrUpdateWpmuUserRoles:X??!1}),checked:F.replaceOrUpdateWpmuUserRoles})})})})]}),(!x||u.some(R=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==R)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Entra ID Group to WP Role mappings"}),e.jsx(de,{info:{title:"Entra ID Group to WP Role mappings",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/39-map-between-azure-ad-groups-and-wordpress-roles"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(yi,{placeholder:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",choice:k,choicePlaceholder:"Select a WP role",list:co(F.groupsXRoles),onListChanged:R=>H({...F,groupsXRoles:co(R)}),isValid:new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),errorMessage:"Entra ID Group ID must be a valid GUID."})})})]}),h&&(h=="wpmuShared"||h=="wpmuDedicated")&&(!x||u.some(R=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==R)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Entra ID Group to Super Admin (WPMU) mappings"}),e.jsx(de,{info:{title:"Entra ID Group to Super Admin (WPMU) mappings",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/133-azure-ad-group-to-super-admin-wpmu-mappings"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Bo,{list:F.muGroupsXSuperAdmins,onListChanged:R=>H({...F,muGroupsXSuperAdmins:R}),placeholder:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb",isValid:new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),errorMessage:"Entra ID Group ID must be a valid GUID."})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Revoke Super Admin privileges"}),e.jsx(de,{info:{title:"Revoke Super Admin privileges",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/133-azure-ad-group-to-super-admin-wpmu-mappings"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(ce,{onChange:(R,X)=>H({...F,muRevokeSuperAdmin:X??!1}),checked:F.muRevokeSuperAdmin})})})]})]}),(!x||u.some(R=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==R)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Mappings to assign WP role(s) based on user claims / properties"}),e.jsx(de,{info:{title:"Mappings to assign WP role(s) based on user claims / properties",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/106-map-between-azure-ad-user-properties-and-wordpress-roles"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(yi,{placeholder:"propertyName:value e.g. department:Communications",choice:k,choicePlaceholder:"Select a WP role",list:co(F.customFieldsXRoles),onListChanged:R=>H({...F,customFieldsXRoles:co(R)}),isValid:new RegExp(/(.|\s)*\S(.|\s)*/i),errorMessage:"Custom fields must contain a property and its value, separated by a semicolon"})})})]}),(!x||u.some(R=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==R)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"App Role to WP Role mappings"}),e.jsx(de,{info:{title:"App Role to WP Role mappings",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/213-map-between-app-roles-and-wordpress-roles"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(yi,{placeholder:'App role (value) e.g. "author"',choice:k,choicePlaceholder:"Select a WP role",list:co(F.appRolesXWpRoles),onListChanged:R=>H({...F,appRolesXWpRoles:co(R)}),isValid:new RegExp(/^[a-zA-Z0-9_.-\s]{1,}$/i),errorMessage:"Only alphanumeric characters are allowed for the app role name"})})})]}),(!x||u.some(R=>[l.wpo365Groups,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Customers].some(X=>X==R)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Entra ID Group to (itthinx) Group mappings"}),e.jsx(de,{info:{title:"Entra ID Group to (itthinx) Group mappings",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/86-map-between-azure-ad-groups-and-itthinx-groups"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365Groups,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Customers],children:e.jsx(yi,{choice:b,choicePlaceholder:"Select a Group",list:co(F.groupsXGroupsGroups),onListChanged:R=>H({...F,groupsXGroupsGroups:co(R)}),isValid:new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),errorMessage:"Entra ID Group ID must be a valid GUID",placeholder:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb"})})})]}),(!x||u.some(R=>[l.wpo365Groups,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Customers].some(X=>X==R)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Entra ID user property to (itthinx) Group mappings"}),e.jsx(de,{info:{title:"Entra ID User property to (itthinx) Group mappings",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/107-map-between-azure-ad-user-properties-and-itthinx-groups"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365Groups,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365RolesAccess,l.wpo365Customers],children:e.jsx(yi,{choice:b,choicePlaceholder:"Select a Group",list:co(F.customFieldsXItthinxGroups),onListChanged:R=>H({...F,customFieldsXItthinxGroups:co(R)}),isValid:new RegExp(/^(\S+.*\S+:\S+.*\S+)$/i),errorMessage:"Custom fields must contain a property and its value, separated by a semicolon",placeholder:"propertyName:value e.g. department:Communications"})})})]}),(!x||u.some(R=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==R)))&&e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"(Domain) Role mappings"}),e.jsx(de,{info:{title:"(Domain) role mappings",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/76-map-between-domains-and-wordpress-roles"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(yi,{placeholder:"e.g. mydomain.com or my-tenant.onmicrosoft.com",choice:k,choicePlaceholder:"Select a WP role",list:co(F.domainsXRoles),onListChanged:R=>H({...F,domainsXRoles:co(R)}),isValid:new RegExp(/^(?!http)/i),errorMessage:"Domain cannot start with http"})})})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Audiences"})})}),(!x||u.some(R=>[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers].some(X=>X==R)))&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable audiences"}),e.jsx(de,{info:{title:"Audiences",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/139-audiences"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",style:{height:"30px"},children:[e.jsx(jn,{styles:{root:{marginBottom:"0px",marginRight:"10px"}},checked:F.enableAudiences,onChange:(R,X)=>{H({...F,enableAudiences:X??!1}),Y("enableAudiences")}}),A=="enableAudiences"&&e.jsx(Oe,{size:Te.small})]})})})]}),F.enableAudiences&&e.jsxs(e.Fragment,{children:[e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Audiences"}),e.jsx(de,{info:{title:"Audiences",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/139-audiences"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(LF,{titleIsValid:new RegExp(/^(?=.{0,20}$).*([a-zA-Z0-9]|[\s])$/),titleErrorMessage:"Max 20 characters, digits and spaces are allowed",titlePlaceholder:"Audience name e.g. Employees",list:F.audiences,onListChanged:R=>H({...F,audiences:R}),valueErrorMessage:"ID of an Entra Group must be a valid GUID",valueIsValid:new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),valuePlaceholder:"e.g. 8f7b8a33-f550-4197-80ea-5617865ac2cb"})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Audience based restrictions for post types"}),e.jsx(de,{info:{title:"Audience based restrictions for post types",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/195-excluded-roles"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(zx,{choicesA:F.audiences.map(R=>({key:R.key,option:R.title})),choicesAPlaceholder:"Select an Audience",prefixA:"[Audience] ",choicesB:C.map(R=>({key:R,option:R})),choicesBPlaceholder:"Select a post type",prefixB:"[Post type] ",list:F.audiencesXPostTypes,onListChanged:R=>H({...F,audiencesXPostTypes:R})})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Post types that require a logged-in user"})," ",e.jsx(de,{info:{title:"Post types that require a logged-in user",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/197-post-types-that-require-a-logged-in-user"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx(Vc,{list:[...F.audiencesPrivatePostTypes],onListChanged:R=>H({...F,audiencesPrivatePostTypes:[...R]}),options:C,placeholder:"Select a post type"})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Response for visitors requesting a page that requires a logged-in user"}),e.jsx(de,{info:{title:"Response for visitors requesting a private page",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/197-post-types-that-require-a-logged-in-user"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:24},{addOn:l.wpo365Customers,minVersion:24},{addOn:l.wpo365LoginPremium,minVersion:24},{addOn:l.wpo365Sync5y,minVersion:24},{addOn:l.wpo365LoginIntranet,minVersion:24},{addOn:l.wpo365Intranet5y,minVersion:24},{addOn:l.wpo365Integrate,minVersion:24},{addOn:l.wpo365Pro,minVersion:24}],children:e.jsx($e,{options:[{key:"notFound",text:"404 Not found",itemType:Tt.Normal},{key:"loginPage",text:"Redirect to login page",itemType:Tt.Normal},{key:"microsoft",text:"Redirect to Microsoft",itemType:Tt.Normal,disabled:g}],selectedKey:F.audiencesPrivatePageResponse,onChange:(R,X)=>X&&H({...F,audiencesPrivatePageResponse:X.key}),placeholder:"Select response",style:{maxWidth:"400px"}})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Excluded roles"}),e.jsx(de,{info:{title:"Audiences",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/139-audiences"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx(Ht,{requiredVersions:[{addOn:l.wpo365RolesAccess,minVersion:34},{addOn:l.wpo365LoginPremium,minVersion:34},{addOn:l.wpo365Sync5y,minVersion:34},{addOn:l.wpo365LoginIntranet,minVersion:34},{addOn:l.wpo365Intranet5y,minVersion:34},{addOn:l.wpo365Integrate,minVersion:34},{addOn:l.wpo365Pro,minVersion:34},{addOn:l.wpo365Customers,minVersion:34}],children:e.jsx(zx,{choicesA:k.map(R=>({key:R,option:R})),choicesAPlaceholder:"Select role to exclude",prefixA:"[WP Role] ",choicesB:[{key:"any",option:"All Post Types"}].concat(C.map(R=>({key:R,option:R}))),choicesBPlaceholder:"Select a post type",prefixB:"[Post type] ",list:F.audiencesExcludedRoles.map(R=>{const X=R.split("|");return{key:X[0],value:X.length===1?"any":X[1]}}),onListChanged:R=>H({...F,audiencesExcludedRoles:R.map(X=>`${X.key}|${X.value}`)})})})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsxs("div",{className:j.wpo365WzRowifier,children:[e.jsx("span",{children:"Enable audiences for WP-REST"}),e.jsx(de,{info:{title:"Audiences",readMore:{title:"Read online",url:"https://docs.wpo365.com/article/139-audiences"}}})]})}),e.jsx("td",{children:e.jsx(ne,{extensions:u,targets:[l.wpo365RolesAccess,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365Integrate,l.wpo365Pro,l.wpo365Customers],children:e.jsx("div",{className:j.wpo365WzCheckbox,children:e.jsx(ce,{onChange:(R,X)=>H({...F,enableAudiencesRest:X??!1}),checked:F.enableAudiencesRest})})})})]})]})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Configuration"})})}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsxs("div",{className:j.wpo365WzColumnifier,children:[e.jsx(rt,{onClick:()=>Z(),style:{minWidth:"400px",maxWidth:"400px",minHeight:"30px",alignSelf:"start"},disabled:s!=="initial",children:"Save configuration"}),W==="OK"?e.jsx("p",{style:{color:"#378805"},children:"Configuration saved successfully."}):null]})})]})]}),L&&e.jsx(Ws,{onCancel:L.onCancel,onConfirm:L.onConfirm,onDismiss:L.onDismiss,title:L.title,subText:L.subText})]})},AF=s=>{const{env:{props:{licNotices:o}}}=E.useContext(Ye),{dismiss:n}=s,t=()=>{sessionStorage.setItem("wpo365HideLicenseNotice","hide"),n()},i=E.useMemo(()=>Qr(o,["No license notices found"]),[]),d=200,c=.02,[u,h]=E.useState(0);return E.useEffect(()=>{if(u<=1){const g=setInterval(()=>{h(c+u)},d);return()=>{clearInterval(g)}}}),e.jsx("div",{style:{background:"#f0f0f1"},children:e.jsxs(U,{tokens:{childrenGap:10},children:[e.jsx(zb,{percentComplete:u}),Array.isArray(i)&&i.map(g=>e.jsx("div",{style:{background:"#ffffff",padding:"20px 40px",border:"1px solid #c3c4c7",margin:"20px 40px",borderLeftWidth:"4px",boxShadow:"0 1px 1px rgba(0,0,0,.04)",borderLeftColor:"#d63638",borderStyle:"solid"},children:e.jsx("p",{dangerouslySetInnerHTML:{__html:g}})})),e.jsx(U.Item,{align:"end",children:e.jsx(rt,{styles:{root:{marginRight:"40px",marginBottom:"20px"}},onClick:t,disabled:u<1,children:"Remind me later"})})]})})},PF=s=>{var o=document.createRange();o.selectNode(document.getElementById(s)),window.getSelection().removeAllRanges(),window.getSelection().addRange(o),document.execCommand("copy"),window.getSelection().removeAllRanges()},RF=s=>{const{env:{props:{wpoHealthMessages:o}}}=E.useContext(Ye),{refreshWpoHealthMessages:n}=s,t=E.useMemo(()=>Qr(o,[]),[o]);return E.useEffect(()=>{n()},[]),e.jsxs(U,{styles:{root:{marginTop:"25px"}},tokens:{childrenGap:10},children:[Array.isArray(t)&&t.map((i,d)=>e.jsxs(e.Fragment,{children:[d===0&&e.jsxs(U,{horizontal:!0,verticalAlign:"center",styles:{root:{padding:"20px",backgroundColor:"#448fd521"}},children:[e.jsx(U,{horizontalAlign:"stretch",styles:{root:{minWidth:"35px"}},children:e.jsx(Ue,{styles:{root:{fontSize:"24px",color:"#0078d4"}},iconName:"Lightbulb"})}),e.jsxs("div",{children:[e.jsx("p",{children:"WPO365 has detected the following issues and recommends that you implement measures to resolve those issues."}),e.jsxs("p",{children:["Please check the"," ",e.jsx("a",{href:"https://docs.wpo365.com/",target:"_blank",children:"online documentation"})," ","or contact"," ",e.jsx("a",{href:"https://www.wpo365.com/contact/",target:"_blank",children:"WPO365 support"})," ","for help."]})]})]}),e.jsx(Ub,{children:e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx("span",{children:i.now?i.now:"Date / time unknown"}),e.jsx(Ke,{onClick:()=>PF(`wpoHealthMessage_${d.toString()}`),iconProps:{iconName:"Copy"},styles:{root:{fontSize:"16px",color:"#0078d4"}}})]})}),e.jsx(U,{styles:{root:{width:"100%"}},tokens:{childrenGap:10},children:e.jsxs(U,{horizontal:!0,verticalAlign:"start",children:[e.jsx(Ue,{styles:{root:{fontSize:"24px",color:"#cc0000",minWidth:"35px",marginTop:"7px"}},iconName:i.level=="ERROR"?"Error":i.level=="WARN"?"Warn":"Bug"}),e.jsx("div",{id:`wpoHealthMessage_${d.toString()}`,style:{fontSize:"13px"},dangerouslySetInnerHTML:{__html:i.body?i.body:"No further information"}})]})})]})),(!Array.isArray(t)||t.length===0)&&e.jsx("span",{children:"No WPO365 Health Messages found."})]})},FF=s=>{const{env:o,env:{props:{extensions:n}},settings:t,updateSettings:i}=E.useContext(Ye),d=c=>{const u={...t};u.hidePremiumOptions=c,Fe.updateSettings(o,u).then(h=>{h.success&&Fe.getSettings(o).then(g=>i(g))}).catch(h=>console.error(h))};return Array.isArray(n)&&e.jsx("div",{className:j.wpo365WzHidePremiumOptionsToggle,children:e.jsx(jn,{styles:{root:{marginBottom:"0px"}},checked:!t.hidePremiumOptions,onText:"Premium options are visible",offText:"Premium options are hidden",onClick:()=>d(!t.hidePremiumOptions)})})},NF={gapSpace:0},OF={root:{display:"inline-block"}},YF=s=>s.saving?e.jsx(Oe,{size:Te.xSmall}):e.jsx(_n,{content:s.name,id:`${s.key}_id`,calloutProps:NF,styles:OF,children:e.jsx(Dn,{id:s.id,role:"menuitem","aria-label":s.name,styles:{root:{padding:"10px",background:"#ffffff"}},iconProps:{iconName:s.icon},onClick:s.onClick})}),WF=s=>e.jsx(Dn,{role:"menuitem",title:"More items",styles:{root:{padding:"10px"},menuIcon:{fontSize:"16px"}},menuIconProps:{iconName:"More"},menuProps:{items:s}}),BF=s=>{const{env:o,settings:n,updateSettings:t}=E.useContext(Ye),[i,d]=E.useState(window.location.hash.indexOf("#singleSignOn")>-1&&!n.hideDocTb),[c,u]=E.useState(!1),h=()=>{u(!0);const g={...n,hideDocTb:!0};Fe.updateSettings(o,g).then(_=>{if(_.success)Fe.getSettings(o).then(m=>{t(m),u(!1)}).catch(m=>{console.error(m),u(!1)});else throw"Updating settings failed"}).catch(_=>{console.error(_),u(!1)})};return E.useEffect(()=>{c&&d(!1)},[c]),e.jsxs(e.Fragment,{children:[e.jsx(ph,{"aria-label":"Support menu",role:"menubar",items:[{id:"btnWebsite",key:"website",icon:"Website",name:"Website",ariaLabel:"Website",onClick:()=>window.open("https://www.wpo365.com/")},{id:"btnContact",key:"contact",icon:"Feedback",name:"Ask a question",ariaLabel:"Ask a question",onClick:()=>window.open("https://www.wpo365.com/contact/")},{saving:c,id:"btnDocumentation",key:"documentation",icon:"Documentation",name:"Documentation",ariaLabel:"Documentation",onClick:()=>window.open("https://docs.wpo365.com/")},{id:"btnVideos",key:"videos",icon:"VideoSearch",name:"Videos",ariaLabel:"Videos",onClick:()=>window.open("https://www.youtube.com/@wpo365")},{id:"btnHistory",key:"history",icon:"FullHistory",name:"Change Log",ariaLabel:"Change Log",onClick:()=>window.open("https://www.wpo365.com/change-log/")},{id:"btnReview",key:"review",icon:"AddFavorite",name:"Review",ariaLabel:"Review",onClick:()=>window.open("https://wordpress.org/support/plugin/wpo365-login/reviews")},{id:"btnFollow",key:"follow",icon:"FollowUser",name:"LinkedIn",ariaLabel:"LinkedIn",onClick:()=>window.open("https://www.linkedin.com/company/downloads-by-van-wieren")}],onRenderOverflowButton:WF,onRenderItem:YF}),o.props.wpoHealthMessages=="false"&&i&&e.jsxs(AT,{calloutProps:{directionalHint:Ot.bottomCenter},closeButtonAriaLabel:"Close",hasCloseButton:!0,isWide:!0,headline:"Getting started",illustrationImage:{src:"https://www.wpo365.com/wp-content/uploads/2021/07/icon-128x128-1-128x128.png"},onDismiss:()=>d(!1),primaryButtonProps:{children:"Don't show again",onClick:h},target:"#btnDocumentation",children:["Make sure to visit"," ",e.jsx("a",{style:{color:"white"},href:"https://docs.wpo365.com/",target:"_blank",children:"https://docs.wpo365.com/"})," ","for the latest guides and support articles."]})]})},HF=s=>{const{isMsGraphMailer:o}=s,{env:{props:{extensions:n}},settings:t}=E.useContext(Ye),i=E.useMemo(()=>n.some(C=>[l.wpo365LoginIntranet,l.wpo365Intranet5y,l.wpo365LoginPremium,l.wpo365Sync5y,l.wpo365Customers,l.wpo365Integrate,l.wpo365Mail,l.wpo365Pro].some(k=>k==C)),[n]),d=E.useRef(null),[c,u]=E.useState(!1),[h,g]=E.useState(!1),[_,m]=E.useState(""),x=E.useCallback(()=>{u(!1),g(!0)},[]),y=E.useCallback(()=>{g(!1)},[]);E.useEffect(()=>{setTimeout(()=>u(!0),1e3)},[]);const v=Qx();E.useEffect(()=>{switch(v.pathname){case"/":m("DASHBOARD");break;case"/dashboard":m("DASHBOARD");break;case"/singleSignOn":m("SINGLE SIGN-ON");break;case"/userRegistration":m("USER REGISTRATION");break;case"/loginLogout":m("LOGIN / LOGOUT");break;case"/mail":m("MAIL");break;case"/userSync":m("USER SYNC");break;case"/apps":m("M*365 APPS");break;case"/cbsConfigurator":m("EMBED SHAREPOINT SEARCH");break;case"/listConfigurator":m("EMBED SHAREPOINT LIST");break;case"/edConfigurator":m("EMBED EMPLOYEE DIRECTORY");break;case"/pbiConfigurator":m("EMBED POWER BI");break;case"/calendarConfigurator":m("EMBED CALENDAR");break;case"/yammer":m("EMBED VIVA ENGAGE");break;case"/integration":m("INTEGRATION");break;case"/selfTest":m("PLUGIN SELF-TEST");break;case"/debug":m("DEBUG");break;case"/miscellaneous":m("MISCELLANEOUS");break;case"/translations":m("TRANSLATIONS");break;case"/importExport":m("IMPORT / EXPORT");break;case"/mailLogViewer":m("MAIL LOG VIEWER");break;case"/rolesAccess":m("ROLES + ACCESS");break;case"/insights":m("INSIGHTS");break;default:m("UNKNOWN")}},[v]);const b=E.useMemo(()=>o?[{key:je.dashboard,text:"Dashboard",onClick:()=>{location.hash=`/${je.dashboard}`},itemProps:{styles:{label:{fontWeight:600}}}},{key:"divider_before_features",itemType:tr.Divider},{key:"wpo365Mail",text:"Mail",subMenuProps:{items:[{key:je.mail,text:"Mail",onClick:()=>{location.hash=`/${je.mail}`}},{key:je.mailLogViewer,text:"Mail Log Viewer",onClick:()=>{location.hash=`/${je.mailLogViewer}`},disabled:!i||!t.useGraphMailer||!t.mailLog}]}},{key:"divider_after_features",itemType:tr.Divider},{key:je.debug,text:"Debug",onClick:()=>{location.hash=`/${je.debug}`}},{key:je.miscellaneous,text:"Miscellaneous",onClick:()=>{location.hash=`/${je.miscellaneous}`}},{key:je.importExport,text:"Import / Export",onClick:()=>{location.hash=`/${je.importExport}`}}]:[{key:je.dashboard,text:"Dashboard",onClick:()=>{location.hash=`/${je.dashboard}`},itemProps:{styles:{label:{fontWeight:600}}}},{key:"divider_before_features",itemType:tr.Divider},{key:je.singleSignOn,text:"Single Sign-on",onClick:()=>{location.hash=`/${je.singleSignOn}`}},{key:"wpo365Mail",text:"Mail",subMenuProps:{items:[{key:je.mail,text:"Mail",onClick:()=>{location.hash=`/${je.mail}`}},{key:je.mailLogViewer,text:"Mail Log Viewer",onClick:()=>{location.hash=`/${je.mailLogViewer}`},disabled:!i||!t.useGraphMailer||!t.mailLog}]}},{key:je.apps,text:"M*365 Apps",onClick:()=>{location.hash=`/${je.apps}`},itemProps:{styles:{label:{fontWeight:600,color:"#0078d4"}}}},{key:je.rolesAccess,text:"Roles + Access",onClick:()=>{location.hash=`/${je.rolesAccess}`}},{key:je.userSync,text:"User Sync",onClick:()=>{location.hash=`/${je.userSync}`}},{key:je.userRegistration,text:"User Registration",onClick:()=>{location.hash=`/${je.userRegistration}`}},{key:je.loginLogout,text:"Login / Logout",onClick:()=>{location.hash=`/${je.loginLogout}`}},{key:je.integration,text:"Integration",onClick:()=>{location.hash=`/${je.integration}`}},{key:je.selfTest,text:"Plugin self-test",onClick:()=>{location.hash=`/${je.selfTest}`},itemProps:{styles:{label:{fontWeight:600}}}},{key:"divider_after_features",itemType:tr.Divider},{key:je.debug,text:"Debug",onClick:()=>{location.hash=`/${je.debug}`}},{key:je.miscellaneous,text:"Miscellaneous",onClick:()=>{location.hash=`/${je.miscellaneous}`}},{key:je.importExport,text:"Import / Export",onClick:()=>{location.hash=`/${je.importExport}`}},{key:je.translations,text:"Translations",onClick:()=>{location.hash=`/${je.translations}`}}],[n,t]);return e.jsxs(e.Fragment,{children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",horizontalAlign:"space-between",tokens:{childrenGap:15},children:[e.jsxs(U,{horizontal:!0,verticalAlign:"center",children:[e.jsx("div",{ref:d,style:{paddingLeft:"20px"},children:e.jsx(Ke,{iconProps:{iconName:h?"Cancel":"GlobalNavButton"},onClick:h?y:x,styles:{icon:{fontSize:"28px"},rootHovered:{backgroundColor:"#fafafa"},rootPressed:{backgroundColor:"#fafafa"}}})}),e.jsx("div",{className:j.wpo365WzPageTitle,children:e.jsx("h3",{children:`WPO365 | ${_}`})})]}),e.jsx(FF,{}),e.jsx(BF,{})]}),e.jsx(ky,{items:b,hidden:!h,target:d,onItemClick:y,onDismiss:y}),c&&e.jsx(U6,{target:d.current,positioningContainerProps:{directionalHint:Ot.bottomCenter,doNotLayer:!1}})]})};nI();const zF=s=>{const{env:o,env:{props:{addOns:n,licNotices:t,wpConfigAad:i,wpConfigMultiple:d,wpConfigOverrides:c,wpmu:u,wpoHealthMessages:h},nonce:g,wpAjaxAdminUrl:_},appStatus:m,lastErrorMessage:x,settings:y,showWpoHealthMessages:v,setShowWpoHealthMessages:b,updateAppStatus:C,updateLastErrorMessage:k,wpoHealthMessagesDismissed:L,wpoHealthMessagesUpdated:I}=E.useContext(Ye),[A,Y]=E.useState(""),[P,T]=E.useState(we.initial),[F,H]=E.useState(!1),W=()=>{Y(""),T(we.initial),H(t&&!!Qr(t,!1)&&!sessionStorage.getItem("wpo365HideLicenseNotice")),b(h&&!!Qr(h,!1))};E.useEffect(()=>{y&&W()},[y]);const K=async()=>{T(we.saving);const Q=new FormData;Q.append("action","wpo365_dismiss_wpo_health_messages"),Q.append("nonce",g),Q.append("ina",window.wpo365.wizard.props.ina);let B;try{B=await Ee.post(_,Q)}catch(R){Y(R.message);return}if(B.status>=200&&B.status<300&&B.data&&B.data.status){if(B.data.status=="OK"){T(we.initial),b(!1),L();return}Y(B.data.message);return}Y(`Error occured (HTTP status ${B.status})`)},Z=async()=>{T(we.saving);const Q=new FormData;Q.append("action","wpo365_get_wpo_health_messages"),Q.append("nonce",g),Q.append("ina",window.wpo365.wizard.props.ina);let B;try{B=await Ee.post(_,Q)}catch(R){Y(R.message);return}if(B.status>=200&&B.status<300&&B.data&&B.data.status){if(B.data.status=="OK"){T(we.initial),B.data.result&&I(B.data.result);return}Y(B.data.message);return}Y(`Error occured (HTTP status ${B.status})`)};return e.jsxs(e.Fragment,{children:[window.location.href.indexOf("/network/")>-1&&e.jsx("div",{style:{width:"calc(100% - 35px)",margin:"15px 15px 15px 0px"},children:e.jsx(Zr,{messageBarType:Be.warning,isMultiline:!1,onDismiss:()=>{},dismissButtonAriaLabel:"Close",children:"You are editing the central WPO365 network configuration."})}),u=="wpmuDedicated"&&window.location.href.indexOf("/network/")==-1&&e.jsx("div",{style:{width:"calc(100% - 35px)",margin:"15px 15px 15px 0px"},children:e.jsxs(Zr,{messageBarType:Be.warning,isMultiline:!1,onDismiss:()=>{},dismissButtonAriaLabel:"Close",children:["You are editing the WPO365 configuration for a subsite. Go to the ",e.jsx("a",{href:"#importExport",children:"Import / Export"})," tab to replace it with a copy of the central WPO365 configuration."]})}),Object.keys(n).length>0&&i&&e.jsx("div",{style:{width:"calc(100% - 35px)",margin:"15px 15px 15px 0px"},children:e.jsxs(Zr,{messageBarType:Be.warning,isMultiline:!1,onDismiss:()=>{},dismissButtonAriaLabel:"Close",children:["Entra ID options defined in WP-config.php will be used instead. See"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/wp-config-php-single-identity-provider-idp/",target:"_blank",children:"online documentation"})," ","for details."]})}),Object.keys(n).length>0&&c&&e.jsx("div",{style:{width:"calc(100% - 35px)",margin:"15px 15px 15px 0px"},children:e.jsxs(Zr,{messageBarType:Be.warning,isMultiline:!1,onDismiss:()=>{},dismissButtonAriaLabel:"Close",children:["WPO365 non-AAD options defined in WP-config.php will be used instead. See"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/wp-config-php-configuration-w-o-idps/",target:"_blank",children:"online documentation"})," ","for details."]})}),Object.keys(n).length>0&&d&&e.jsx("div",{style:{width:"calc(100% - 35px)",margin:"15px 15px 15px 0px"},children:e.jsxs(Zr,{messageBarType:Be.warning,isMultiline:!1,onDismiss:()=>{},dismissButtonAriaLabel:"Close",children:["Multiple Identity Providers defined in WP-config.php will be used instead. See"," ",e.jsx("a",{href:"https://tutorials.wpo365.com/courses/wp-config-php-multiple-identity-providers-idps/",target:"_blank",children:"online documentation"})," ","for details."]})}),e.jsxs(U,{tokens:{childrenGap:15},children:[e.jsxs("div",{className:j.wpo365WzPage,children:[e.jsx(HF,{isMsGraphMailer:s.isMsGraphMailer}),e.jsx(oC,{})]}),e.jsxs(Xc,{hidden:m!="working",dialogContentProps:{type:fo.normal,title:"Working ..."},modalProps:{isBlocking:!0,styles:{main:{maxWidth:450}}},children:[e.jsx("br",{}),e.jsx(Oe,{size:Te.medium})]}),e.jsx(Xc,{hidden:m!="errors",onDismiss:()=>{C("initial"),k(null)},dialogContentProps:{type:fo.normal,title:"Error",subText:x},modalProps:{isBlocking:!0,styles:{main:{maxWidth:450}}},children:e.jsx(hh,{children:e.jsx(rt,{onClick:()=>{C("initial"),k(null)},text:"Close"})})}),e.jsx(Zc,{isOpen:F,isBlocking:!0,styles:{main:{width:"50vw"}},children:e.jsx(AF,{dismiss:()=>H(!1)})})]}),e.jsx(vg,{type:In.medium,isOpen:v,onDismiss:()=>b(!1),headerText:"WPO365 Health Messages",closeButtonAriaLabel:"Close",onRenderFooterContent:()=>e.jsxs(U,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:10},children:[e.jsx(rt,{onClick:()=>b(!1),children:"Close"}),e.jsx(et,{onClick:K,children:"Dismiss all"}),P==we.saving&&e.jsx(Oe,{size:Te.medium})]}),isFooterAtBottom:!0,children:e.jsx(RF,{refreshWpoHealthMessages:()=>Z(),dismiss:()=>b(!1)})})]})},UF=[{key:"following",text:"Following"},{key:"my_feed",text:"My feed"}],VF=s=>{const{env:o}=E.useContext(Ye),n={feed:"following",hideImages:!1,hidePaging:!1,pageSize:3,templateUrl:As("wizard.js").replace("wpo365-login/apps/dist/wizard.js",`wpo365-${o.props.extensions.some(g=>g==l.wpo365LoginIntranet)?"login-intranet":o.props.extensions.some(g=>g==l.wpo365Intranet5y)?"intranet-5y":o.props.extensions.some(g=>g==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/templates/yammer.feed.template.html`)},[t,i]=E.useState(n),d=E.useMemo(()=>As("wizard.js").replace("wpo365-login/apps/dist/wizard.js",`wpo365-${o.props.extensions.some(g=>g==l.wpo365LoginIntranet)?"login-intranet":o.props.extensions.some(g=>g==l.wpo365Intranet5y)?"intranet-5y":o.props.extensions.some(g=>g==l.wpo365Integrate)?"integrate":"apps"}/apps/dist/yammer.js`),[]),[c,u]=E.useState(me.capCopyShortcodeButton),h=()=>{const g=document.querySelector("#pintraYammerShortCode");navigator.clipboard.writeText(g.value).then(()=>{u(me.capCopyShortcodeButtonSuccess),setTimeout(()=>u(me.capCopyShortcodeButton),3e3)})};return e.jsx("div",{className:j.wpo365WzMain,children:e.jsxs("table",{className:j.wpo365WzTable,children:[e.jsxs("colgroup",{children:[e.jsx("col",{width:"50%"}),e.jsx("col",{width:"50%"})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Viva Engage / Yammer shortcode generator"})})}),e.jsx("tr",{children:e.jsxs("td",{colSpan:2,children:[e.jsx("p",{children:"To create the shortcode you can use this generator. Simply configure the options and copy the shortcode to the clipboard. Then all you need to do is to add the shortcode to a page and you're ready!"}),e.jsxs("p",{children:["Please consult the online documentation"," ",e.jsx("a",{href:"https://www.wpo365.com/yammer-for-wordpress/",target:"_blank",children:"https://www.wpo365.com/yammer-for-wordpress/"})," ","for instructions on how to generate a shortcode and place it on any WordPress post or page."]}),o.props.wpConfigMultiple&&e.jsx("p",{style:{width:"50%"},children:e.jsx(Zr,{messageBarType:Be.blocked,isMultiline:!0,truncated:!0,overflowButtonAriaLabel:"Read more",children:"It appears that you have configured multiple Identity Providers. Embedding content from a Microsoft 365 service for the logged-in user may not work as expected."})})]})}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Feed"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"Feed type"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(yg,{defaultSelectedKey:t.feed,options:UF,onChange:(g,_)=>i({...t,feed:_.key})})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx("h3",{className:j.wpo365WzSectionTitle,children:"Template"})})}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"Template"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(fe,{bound:!1,isValid:(g,_)=>!0,onValid:g=>i({...t,templateUrl:g}),value:t.templateUrl})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"Results per page"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(fe,{bound:!1,isValid:(g,_)=>{const m=parseInt(_);return _===m.toString()&&m>0&&m<=20},onValid:g=>i({...t,pageSize:parseInt(g)}),errorMessage:"Value must be number greater than 0 and smaller or equal than 20",value:String(t.pageSize)})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"Hide paging"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{checked:t.hidePaging,onChange:(g,_)=>i({...t,hidePaging:_})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"Hide images"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx(ce,{checked:t.hideImages,onChange:(g,_)=>i({...t,hideImages:_})})})]}),e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx("div",{children:"Shortcode"})}),e.jsx("td",{style:{verticalAlign:"middle"},children:e.jsx("textarea",{id:"pintraYammerShortCode",className:`${j.wpo365WzTextArea}`,readOnly:!0,value:`[pintra props="templateUrl,${t.templateUrl};feed,${t.feed};pageSize,${t.pageSize};hidePaging,${t.hidePaging};hideImages,${t.hideImages}" script_url="${d}"]`})})]}),e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("td",{children:e.jsx(et,{onClick:h,iconProps:{iconName:"Copy"},style:{minWidth:"400px",minHeight:"30px"},children:c})})]}),e.jsx("tr",{children:e.jsx("td",{colSpan:2,children:e.jsx(Bs,{})})})]})})},GF=s=>{const o=[{path:"",element:e.jsx(zF,{isMsGraphMailer:!1}),children:[{path:"",element:e.jsx(yf,{isGraphMailer:!1})},{path:"/",element:e.jsx(yf,{isGraphMailer:!1})},{path:`/${je.dashboard}`,element:e.jsx(yf,{isGraphMailer:!1})},{path:`/${je.insights}`,element:e.jsx(yf,{isGraphMailer:!1,showInsights:!0})},{path:`/${je.singleSignOn}`,element:e.jsx(XA,{})},{path:`/${je.userRegistration}`,element:e.jsx(GP,{})},{path:`/${je.loginLogout}`,element:e.jsx(RP,{})},{path:`/${je.mail}`,element:e.jsx(zP,{})},{path:`/${je.mailLogViewer}`,element:e.jsx(BP,{})},{path:`/${je.userSync}`,element:e.jsx(bR,{})},{path:`/${je.integration}`,element:e.jsx(TP,{})},{path:`/${je.apps}`,element:e.jsx(xF,{})},{path:`/${je.selfTest}`,element:e.jsx(UP,{})},{path:`/${je.debug}`,element:e.jsx(MF,{})},{path:`/${je.translations}`,element:e.jsx(VP,{})},{path:`/${je.importExport}`,element:e.jsx(LP,{})},{path:`/${je.cbsConfigurator}`,element:e.jsx(eP,{})},{path:`/${je.edConfigurator}`,element:e.jsx(MP,{})},{path:`/${je.yammer}`,element:e.jsx(VF,{})},{path:`/${je.miscellaneous}`,element:e.jsx(jF,{})},{path:`/${je.rolesAccess}`,element:e.jsx(TF,{})}]}];return KS(o)},mN=s=>{const o={nonce:window.wpo365.wizard.nonce,wpAjaxAdminUrl:window.wpo365.wizard.wpAjaxAdminUrl,props:{...window.wpo365.wizard.props,addOns:Qr(window.wpo365.wizard.props.addOns,{})}};return e.jsxs(BA,{env:o,children:[e.jsx(HA,{env:o,children:e.jsx(lC,{children:e.jsx(GF,{})})}),e.jsx(Fk,{})]})};export{Ln as A,Xr as B,hs as M,E as R,U as S,mN as W,Iy as a,pN as b,$F as c,ki as d,gr as e,Ux as g,e as j,bS as r,j as s,hN as t};
//# sourceMappingURL=wizard-chunk-chvOnU7O.js.map
