@clickview/auth 0.63.0-rc.4 → 0.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,7 +41,7 @@ function Ws(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"d
41
41
  `+P[K].replace(" at new "," at ");return n.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",n.displayName)),se}while(1<=K&&0<=ee);break}}}finally{ae=!1,Error.prepareStackTrace=l}return(n=n?n.displayName||n.name:"")?V(n):""}function _e(n){switch(n.tag){case 5:return V(n.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return n=oe(n.type,!1),n;case 11:return n=oe(n.type.render,!1),n;case 1:return n=oe(n.type,!0),n;default:return""}}function he(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case x:return"Fragment";case g:return"Portal";case O:return"Profiler";case R:return"StrictMode";case D:return"Suspense";case U:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case k:return(n.displayName||"Context")+".Consumer";case j:return(n._context.displayName||"Context")+".Provider";case N:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case B:return i=n.displayName||null,i!==null?i:he(n.type)||"Memo";case H:i=n._payload,n=n._init;try{return he(n(i))}catch{}}return null}function ye(n){var i=n.type;switch(n.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=i.render,n=n.displayName||n.name||"",i.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return he(i);case 8:return i===R?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function ge(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Re(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function We(n){var i=Re(n)?"checked":"value",l=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),C=""+n[i];if(!n.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var P=l.get,q=l.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return P.call(this)},set:function(K){C=""+K,q.call(this,K)}}),Object.defineProperty(n,i,{enumerable:l.enumerable}),{getValue:function(){return C},setValue:function(K){C=""+K},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function He(n){n._valueTracker||(n._valueTracker=We(n))}function nr(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var l=i.getValue(),C="";return n&&(C=Re(n)?n.checked?"true":"false":n.value),n=C,n!==l?(i.setValue(n),!0):!1}function ar(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function xr(n,i){var l=i.checked;return L({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??n._wrapperState.initialChecked})}function or(n,i){var l=i.defaultValue==null?"":i.defaultValue,C=i.checked!=null?i.checked:i.defaultChecked;l=ge(i.value!=null?i.value:l),n._wrapperState={initialChecked:C,initialValue:l,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function lr(n,i){i=i.checked,i!=null&&m(n,"checked",i,!1)}function Ve(n,i){lr(n,i);var l=ge(i.value),C=i.type;if(l!=null)C==="number"?(l===0&&n.value===""||n.value!=l)&&(n.value=""+l):n.value!==""+l&&(n.value=""+l);else if(C==="submit"||C==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?W(n,i.type,l):i.hasOwnProperty("defaultValue")&&W(n,i.type,ge(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function Ge(n,i,l){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var C=i.type;if(!(C!=="submit"&&C!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+n._wrapperState.initialValue,l||i===n.value||(n.value=i),n.defaultValue=i}l=n.name,l!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,l!==""&&(n.name=l)}function W(n,i,l){(i!=="number"||ar(n.ownerDocument)!==n)&&(l==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+l&&(n.defaultValue=""+l))}var Y=Array.isArray;function Q(n,i,l,C){if(n=n.options,i){i={};for(var P=0;P<l.length;P++)i["$"+l[P]]=!0;for(l=0;l<n.length;l++)P=i.hasOwnProperty("$"+n[l].value),n[l].selected!==P&&(n[l].selected=P),P&&C&&(n[l].defaultSelected=!0)}else{for(l=""+ge(l),i=null,P=0;P<n.length;P++){if(n[P].value===l){n[P].selected=!0,C&&(n[P].defaultSelected=!0);return}i!==null||n[P].disabled||(i=n[P])}i!==null&&(i.selected=!0)}}function re(n,i){if(i.dangerouslySetInnerHTML!=null)throw Error(t(91));return L({},i,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function pe(n,i){var l=i.value;if(l==null){if(l=i.children,i=i.defaultValue,l!=null){if(i!=null)throw Error(t(92));if(Y(l)){if(1<l.length)throw Error(t(93));l=l[0]}i=l}i==null&&(i=""),l=i}n._wrapperState={initialValue:ge(l)}}function le(n,i){var l=ge(i.value),C=ge(i.defaultValue);l!=null&&(l=""+l,l!==n.value&&(n.value=l),i.defaultValue==null&&n.defaultValue!==l&&(n.defaultValue=l)),C!=null&&(n.defaultValue=""+C)}function Ee(n){var i=n.textContent;i===n._wrapperState.initialValue&&i!==""&&i!==null&&(n.value=i)}function fe(n){switch(n){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 Pe(n,i){return n==null||n==="http://www.w3.org/1999/xhtml"?fe(i):n==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var ur,cr=(function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,l,C,P){MSApp.execUnsafeLocalFunction(function(){return n(i,l,C,P)})}:n})(function(n,i){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=i;else{for(ur=ur||document.createElement("div"),ur.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=ur.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;i.firstChild;)n.appendChild(i.firstChild)}});function de(n,i){if(i){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=i;return}}n.textContent=i}var Ae={animationIterationCount:!0,aspectRatio:!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},Ne=["Webkit","ms","Moz","O"];Object.keys(Ae).forEach(function(n){Ne.forEach(function(i){i=i+n.charAt(0).toUpperCase()+n.substring(1),Ae[i]=Ae[n]})});function Oe(n,i,l){return i==null||typeof i=="boolean"||i===""?"":l||typeof i!="number"||i===0||Ae.hasOwnProperty(n)&&Ae[n]?(""+i).trim():i+"px"}function De(n,i){n=n.style;for(var l in i)if(i.hasOwnProperty(l)){var C=l.indexOf("--")===0,P=Oe(l,i[l],C);l==="float"&&(l="cssFloat"),C?n.setProperty(l,P):n[l]=P}}var Te=L({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 vr(n,i){if(i){if(Te[n]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(t(137,n));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(t(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(t(61))}if(i.style!=null&&typeof i.style!="object")throw Error(t(62))}}function $r(n,i){if(n.indexOf("-")===-1)return typeof i.is=="string";switch(n){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}}var Me=null;function rr(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Xe=null,Qe=null,hr=null;function gr(n){if(n=ku(n)){if(typeof Xe!="function")throw Error(t(280));var i=n.stateNode;i&&(i=Kl(i),Xe(n.stateNode,n.type,i))}}function Kr(n){Qe?hr?hr.push(n):hr=[n]:Qe=n}function et(){if(Qe){var n=Qe,i=hr;if(hr=Qe=null,gr(n),i)for(n=0;n<i.length;n++)gr(i[n])}}function St(n,i){return n(i)}function Gt(){}var it=!1;function cn(n,i,l){if(it)return n(i,l);it=!0;try{return St(n,i,l)}finally{it=!1,(Qe!==null||hr!==null)&&(Gt(),et())}}function Za(n,i){var l=n.stateNode;if(l===null)return null;var C=Kl(l);if(C===null)return null;l=C[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(C=!C.disabled)||(n=n.type,C=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!C;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(t(231,i,typeof l));return l}var va=!1;if(v)try{var Qn={};Object.defineProperty(Qn,"passive",{get:function(){va=!0}}),window.addEventListener("test",Qn,Qn),window.removeEventListener("test",Qn,Qn)}catch{va=!1}function ea(n,i,l,C,P,q,K,ee,se){var we=Array.prototype.slice.call(arguments,3);try{i.apply(l,we)}catch($e){this.onError($e)}}var ii=!1,Mt=null,Ut=!1,Ha=null,Va={onError:function(n){ii=!0,Mt=n}};function Qt(n,i,l,C,P,q,K,ee,se){ii=!1,Mt=null,ea.apply(Va,arguments)}function yn(n,i,l,C,P,q,K,ee,se){if(Qt.apply(this,arguments),ii){if(ii){var we=Mt;ii=!1,Mt=null}else throw Error(t(198));Ut||(Ut=!0,Ha=we)}}function qn(n){var i=n,l=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(l=i.return),n=i.return;while(n)}return i.tag===3?l:null}function To(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function Ce(n){if(qn(n)!==n)throw Error(t(188))}function Ke(n){var i=n.alternate;if(!i){if(i=qn(n),i===null)throw Error(t(188));return i!==n?null:n}for(var l=n,C=i;;){var P=l.return;if(P===null)break;var q=P.alternate;if(q===null){if(C=P.return,C!==null){l=C;continue}break}if(P.child===q.child){for(q=P.child;q;){if(q===l)return Ce(P),n;if(q===C)return Ce(P),i;q=q.sibling}throw Error(t(188))}if(l.return!==C.return)l=P,C=q;else{for(var K=!1,ee=P.child;ee;){if(ee===l){K=!0,l=P,C=q;break}if(ee===C){K=!0,C=P,l=q;break}ee=ee.sibling}if(!K){for(ee=q.child;ee;){if(ee===l){K=!0,l=q,C=P;break}if(ee===C){K=!0,C=q,l=P;break}ee=ee.sibling}if(!K)throw Error(t(189))}}if(l.alternate!==C)throw Error(t(190))}if(l.tag!==3)throw Error(t(188));return l.stateNode.current===l?n:i}function xe(n){return n=Ke(n),n!==null?me(n):null}function me(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var i=me(n);if(i!==null)return i;n=n.sibling}return null}var Be=r.unstable_scheduleCallback,kr=r.unstable_cancelCallback,mr=r.unstable_shouldYield,wt=r.unstable_requestPaint,Fr=r.unstable_now,Rt=r.unstable_getCurrentPriorityLevel,fn=r.unstable_ImmediatePriority,ze=r.unstable_UserBlockingPriority,Et=r.unstable_NormalPriority,pa=r.unstable_LowPriority,oi=r.unstable_IdlePriority,wi=null,Vn=null;function Wi(n){if(Vn&&typeof Vn.onCommitFiberRoot=="function")try{Vn.onCommitFiberRoot(wi,n,void 0,(n.current.flags&128)===128)}catch{}}var Dn=Math.clz32?Math.clz32:gu,vu=Math.log,pu=Math.LN2;function gu(n){return n>>>=0,n===0?32:31-(vu(n)/pu|0)|0}var Ki=64,Yi=4194304;function Ei(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Ji(n,i){var l=n.pendingLanes;if(l===0)return 0;var C=0,P=n.suspendedLanes,q=n.pingedLanes,K=l&268435455;if(K!==0){var ee=K&~P;ee!==0?C=Ei(ee):(q&=K,q!==0&&(C=Ei(q)))}else K=l&~P,K!==0?C=Ei(K):q!==0&&(C=Ei(q));if(C===0)return 0;if(i!==0&&i!==C&&(i&P)===0&&(P=C&-C,q=i&-i,P>=q||P===16&&(q&4194240)!==0))return i;if((C&4)!==0&&(C|=l&16),i=n.entangledLanes,i!==0)for(n=n.entanglements,i&=C;0<i;)l=31-Dn(i),P=1<<l,C|=n[l],i&=~P;return C}function mu(n,i){switch(n){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yu(n,i){for(var l=n.suspendedLanes,C=n.pingedLanes,P=n.expirationTimes,q=n.pendingLanes;0<q;){var K=31-Dn(q),ee=1<<K,se=P[K];se===-1?((ee&l)===0||(ee&C)!==0)&&(P[K]=mu(ee,i)):se<=i&&(n.expiredLanes|=ee),q&=~ee}}function Ro(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function si(){var n=Ki;return Ki<<=1,(Ki&4194240)===0&&(Ki=64),n}function en(n){for(var i=[],l=0;31>l;l++)i.push(n);return i}function bn(n,i,l){n.pendingLanes|=i,i!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,i=31-Dn(i),n[i]=l}function ql(n,i){var l=n.pendingLanes&~i;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=i,n.mutableReadLanes&=i,n.entangledLanes&=i,i=n.entanglements;var C=n.eventTimes;for(n=n.expirationTimes;0<l;){var P=31-Dn(l),q=1<<P;i[P]=0,C[P]=-1,n[P]=-1,l&=~q}}function bu(n,i){var l=n.entangledLanes|=i;for(n=n.entanglements;l;){var C=31-Dn(l),P=1<<C;P&i|n[C]&i&&(n[C]|=i),l&=~P}}var ct=0;function Ci(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var Dl,_u,ms,Ll,Ml,ys=!1,xi=[],ui=null,li=null,ci=null,Ra=new Map,Xi=new Map,Ga=[],Qi="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 Ii(n,i){switch(n){case"focusin":case"focusout":ui=null;break;case"dragenter":case"dragleave":li=null;break;case"mouseover":case"mouseout":ci=null;break;case"pointerover":case"pointerout":Ra.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xi.delete(i.pointerId)}}function pt(n,i,l,C,P,q){return n===null||n.nativeEvent!==q?(n={blockedOn:i,domEventName:l,eventSystemFlags:C,nativeEvent:q,targetContainers:[P]},i!==null&&(i=ku(i),i!==null&&_u(i)),n):(n.eventSystemFlags|=C,i=n.targetContainers,P!==null&&i.indexOf(P)===-1&&i.push(P),n)}function Oa(n,i,l,C,P){switch(i){case"focusin":return ui=pt(ui,n,i,l,C,P),!0;case"dragenter":return li=pt(li,n,i,l,C,P),!0;case"mouseover":return ci=pt(ci,n,i,l,C,P),!0;case"pointerover":var q=P.pointerId;return Ra.set(q,pt(Ra.get(q)||null,n,i,l,C,P)),!0;case"gotpointercapture":return q=P.pointerId,Xi.set(q,pt(Xi.get(q)||null,n,i,l,C,P)),!0}return!1}function eo(n){var i=ko(n.target);if(i!==null){var l=qn(i);if(l!==null){if(i=l.tag,i===13){if(i=To(l),i!==null){n.blockedOn=i,Ml(n.priority,function(){ms(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function bs(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var l=ve(n.domEventName,n.eventSystemFlags,i[0],n.nativeEvent);if(l===null){l=n.nativeEvent;var C=new l.constructor(l.type,l);Me=C,l.target.dispatchEvent(C),Me=null}else return i=ku(l),i!==null&&_u(i),n.blockedOn=l,!1;i.shift()}return!0}function Ul(n,i,l){bs(n)&&l.delete(i)}function nd(){ys=!1,ui!==null&&bs(ui)&&(ui=null),li!==null&&bs(li)&&(li=null),ci!==null&&bs(ci)&&(ci=null),Ra.forEach(Ul),Xi.forEach(Ul)}function Oo(n,i){n.blockedOn===i&&(n.blockedOn=null,ys||(ys=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,nd)))}function z(n){function i(P){return Oo(P,n)}if(0<xi.length){Oo(xi[0],n);for(var l=1;l<xi.length;l++){var C=xi[l];C.blockedOn===n&&(C.blockedOn=null)}}for(ui!==null&&Oo(ui,n),li!==null&&Oo(li,n),ci!==null&&Oo(ci,n),Ra.forEach(i),Xi.forEach(i),l=0;l<Ga.length;l++)C=Ga[l],C.blockedOn===n&&(C.blockedOn=null);for(;0<Ga.length&&(l=Ga[0],l.blockedOn===null);)eo(l),l.blockedOn===null&&Ga.shift()}var Z=p.ReactCurrentBatchConfig,X=!0;function te(n,i,l,C){var P=ct,q=Z.transition;Z.transition=null;try{ct=1,ne(n,i,l,C)}finally{ct=P,Z.transition=q}}function J(n,i,l,C){var P=ct,q=Z.transition;Z.transition=null;try{ct=4,ne(n,i,l,C)}finally{ct=P,Z.transition=q}}function ne(n,i,l,C){if(X){var P=ve(n,i,l,C);if(P===null)vd(n,i,C,ce,l),Ii(n,C);else if(Oa(P,n,i,l,C))C.stopPropagation();else if(Ii(n,C),i&4&&-1<Qi.indexOf(n)){for(;P!==null;){var q=ku(P);if(q!==null&&Dl(q),q=ve(n,i,l,C),q===null&&vd(n,i,C,ce,l),q===P)break;P=q}P!==null&&C.stopPropagation()}else vd(n,i,C,null,l)}}var ce=null;function ve(n,i,l,C){if(ce=null,n=rr(C),n=ko(n),n!==null)if(i=qn(n),i===null)n=null;else if(l=i.tag,l===13){if(n=To(i),n!==null)return n;n=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null);return ce=n,null}function Ie(n){switch(n){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Rt()){case fn:return 1;case ze:return 4;case Et:case pa:return 16;case oi:return 536870912;default:return 16}default:return 16}}var ke=null,sr=null,jr=null;function wr(){if(jr)return jr;var n,i=sr,l=i.length,C,P="value"in ke?ke.value:ke.textContent,q=P.length;for(n=0;n<l&&i[n]===P[n];n++);var K=l-n;for(C=1;C<=K&&i[l-C]===P[q-C];C++);return jr=P.slice(n,1<C?1-C:void 0)}function Lr(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Ar(){return!0}function br(){return!1}function Le(n){function i(l,C,P,q,K){this._reactName=l,this._targetInst=P,this.type=C,this.nativeEvent=q,this.target=K,this.currentTarget=null;for(var ee in n)n.hasOwnProperty(ee)&&(l=n[ee],this[ee]=l?l(q):q[ee]);return this.isDefaultPrevented=(q.defaultPrevented!=null?q.defaultPrevented:q.returnValue===!1)?Ar:br,this.isPropagationStopped=br,this}return L(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ar)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ar)},persist:function(){},isPersistent:Ar}),i}var ot={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rn=Le(ot),Ft=L({},ot,{view:0,detail:0}),fi=Le(Ft),Bt,ft,Ln,Yr=L({},Ft,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ga,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Ln&&(Ln&&n.type==="mousemove"?(Bt=n.screenX-Ln.screenX,ft=n.screenY-Ln.screenY):ft=Bt=0,Ln=n),Bt)},movementY:function(n){return"movementY"in n?n.movementY:ft}}),st=Le(Yr),gt=L({},Yr,{dataTransfer:0}),_n=Le(gt),dn=L({},Ft,{relatedTarget:0}),tt=Le(dn),tn=L({},ot,{animationName:0,elapsedTime:0,pseudoElement:0}),Ye=Le(tn),Fe=L({},ot,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Ue=Le(Fe),_r=L({},ot,{data:0}),Cr=Le(_r),nt={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ot={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"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wn(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=Sn[n])?!!i[n]:!1}function ga(){return wn}var Ai=L({},Ft,{key:function(n){if(n.key){var i=nt[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Lr(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?Ot[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ga,charCode:function(n){return n.type==="keypress"?Lr(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Lr(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),Wa=Le(Ai),Su=L({},Yr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pr=Le(Su),Jr=L({},Ft,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ga}),Ct=Le(Jr),Fl=L({},ot,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bl=Le(Fl),EB=L({},Yr,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),CB=Le(EB),xB=[9,13,27,32],ad=v&&"CompositionEvent"in window,wu=null;v&&"documentMode"in document&&(wu=document.documentMode);var IB=v&&"TextEvent"in window&&!wu,OS=v&&(!ad||wu&&8<wu&&11>=wu),kS=" ",PS=!1;function NS(n,i){switch(n){case"keyup":return xB.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jS(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var _s=!1;function AB(n,i){switch(n){case"compositionend":return jS(i);case"keypress":return i.which!==32?null:(PS=!0,kS);case"textInput":return n=i.data,n===kS&&PS?null:n;default:return null}}function TB(n,i){if(_s)return n==="compositionend"||!ad&&NS(n,i)?(n=wr(),jr=sr=ke=null,_s=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return OS&&i.locale!=="ko"?null:i.data;default:return null}}var RB={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 qS(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!RB[n.type]:i==="textarea"}function DS(n,i,l,C){Kr(C),i=Vl(i,"onChange"),0<i.length&&(l=new rn("onChange","change",null,l,C),n.push({event:l,listeners:i}))}var Eu=null,Cu=null;function OB(n){e2(n,0)}function $l(n){var i=xs(n);if(nr(i))return n}function kB(n,i){if(n==="change")return i}var LS=!1;if(v){var id;if(v){var od="oninput"in document;if(!od){var MS=document.createElement("div");MS.setAttribute("oninput","return;"),od=typeof MS.oninput=="function"}id=od}else id=!1;LS=id&&(!document.documentMode||9<document.documentMode)}function US(){Eu&&(Eu.detachEvent("onpropertychange",FS),Cu=Eu=null)}function FS(n){if(n.propertyName==="value"&&$l(Cu)){var i=[];DS(i,Cu,n,rr(n)),cn(OB,i)}}function PB(n,i,l){n==="focusin"?(US(),Eu=i,Cu=l,Eu.attachEvent("onpropertychange",FS)):n==="focusout"&&US()}function NB(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return $l(Cu)}function jB(n,i){if(n==="click")return $l(i)}function qB(n,i){if(n==="input"||n==="change")return $l(i)}function DB(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var Ka=typeof Object.is=="function"?Object.is:DB;function xu(n,i){if(Ka(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var l=Object.keys(n),C=Object.keys(i);if(l.length!==C.length)return!1;for(C=0;C<l.length;C++){var P=l[C];if(!d.call(i,P)||!Ka(n[P],i[P]))return!1}return!0}function BS(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function $S(n,i){var l=BS(n);n=0;for(var C;l;){if(l.nodeType===3){if(C=n+l.textContent.length,n<=i&&C>=i)return{node:l,offset:i-n};n=C}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=BS(l)}}function zS(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?zS(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function ZS(){for(var n=window,i=ar();i instanceof n.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)n=i.contentWindow;else break;i=ar(n.document)}return i}function sd(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}function LB(n){var i=ZS(),l=n.focusedElem,C=n.selectionRange;if(i!==l&&l&&l.ownerDocument&&zS(l.ownerDocument.documentElement,l)){if(C!==null&&sd(l)){if(i=C.start,n=C.end,n===void 0&&(n=i),"selectionStart"in l)l.selectionStart=i,l.selectionEnd=Math.min(n,l.value.length);else if(n=(i=l.ownerDocument||document)&&i.defaultView||window,n.getSelection){n=n.getSelection();var P=l.textContent.length,q=Math.min(C.start,P);C=C.end===void 0?q:Math.min(C.end,P),!n.extend&&q>C&&(P=C,C=q,q=P),P=$S(l,q);var K=$S(l,C);P&&K&&(n.rangeCount!==1||n.anchorNode!==P.node||n.anchorOffset!==P.offset||n.focusNode!==K.node||n.focusOffset!==K.offset)&&(i=i.createRange(),i.setStart(P.node,P.offset),n.removeAllRanges(),q>C?(n.addRange(i),n.extend(K.node,K.offset)):(i.setEnd(K.node,K.offset),n.addRange(i)))}}for(i=[],n=l;n=n.parentNode;)n.nodeType===1&&i.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<i.length;l++)n=i[l],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var MB=v&&"documentMode"in document&&11>=document.documentMode,Ss=null,ud=null,Iu=null,ld=!1;function HS(n,i,l){var C=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ld||Ss==null||Ss!==ar(C)||(C=Ss,"selectionStart"in C&&sd(C)?C={start:C.selectionStart,end:C.selectionEnd}:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection(),C={anchorNode:C.anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset}),Iu&&xu(Iu,C)||(Iu=C,C=Vl(ud,"onSelect"),0<C.length&&(i=new rn("onSelect","select",null,i,l),n.push({event:i,listeners:C}),i.target=Ss)))}function zl(n,i){var l={};return l[n.toLowerCase()]=i.toLowerCase(),l["Webkit"+n]="webkit"+i,l["Moz"+n]="moz"+i,l}var ws={animationend:zl("Animation","AnimationEnd"),animationiteration:zl("Animation","AnimationIteration"),animationstart:zl("Animation","AnimationStart"),transitionend:zl("Transition","TransitionEnd")},cd={},VS={};v&&(VS=document.createElement("div").style,"AnimationEvent"in window||(delete ws.animationend.animation,delete ws.animationiteration.animation,delete ws.animationstart.animation),"TransitionEvent"in window||delete ws.transitionend.transition);function Zl(n){if(cd[n])return cd[n];if(!ws[n])return n;var i=ws[n],l;for(l in i)if(i.hasOwnProperty(l)&&l in VS)return cd[n]=i[l];return n}var GS=Zl("animationend"),WS=Zl("animationiteration"),KS=Zl("animationstart"),YS=Zl("transitionend"),JS=new Map,XS="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ro(n,i){JS.set(n,i),s(i,[n])}for(var fd=0;fd<XS.length;fd++){var dd=XS[fd],UB=dd.toLowerCase(),FB=dd[0].toUpperCase()+dd.slice(1);ro(UB,"on"+FB)}ro(GS,"onAnimationEnd"),ro(WS,"onAnimationIteration"),ro(KS,"onAnimationStart"),ro("dblclick","onDoubleClick"),ro("focusin","onFocus"),ro("focusout","onBlur"),ro(YS,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Au="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),BB=new Set("cancel close invalid load scroll toggle".split(" ").concat(Au));function QS(n,i,l){var C=n.type||"unknown-event";n.currentTarget=l,yn(C,i,void 0,n),n.currentTarget=null}function e2(n,i){i=(i&4)!==0;for(var l=0;l<n.length;l++){var C=n[l],P=C.event;C=C.listeners;e:{var q=void 0;if(i)for(var K=C.length-1;0<=K;K--){var ee=C[K],se=ee.instance,we=ee.currentTarget;if(ee=ee.listener,se!==q&&P.isPropagationStopped())break e;QS(P,ee,we),q=se}else for(K=0;K<C.length;K++){if(ee=C[K],se=ee.instance,we=ee.currentTarget,ee=ee.listener,se!==q&&P.isPropagationStopped())break e;QS(P,ee,we),q=se}}}if(Ut)throw n=Ha,Ut=!1,Ha=null,n}function xt(n,i){var l=i[_d];l===void 0&&(l=i[_d]=new Set);var C=n+"__bubble";l.has(C)||(r2(i,n,2,!1),l.add(C))}function hd(n,i,l){var C=0;i&&(C|=4),r2(l,n,C,i)}var Hl="_reactListening"+Math.random().toString(36).slice(2);function Tu(n){if(!n[Hl]){n[Hl]=!0,a.forEach(function(l){l!=="selectionchange"&&(BB.has(l)||hd(l,!1,n),hd(l,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Hl]||(i[Hl]=!0,hd("selectionchange",!1,i))}}function r2(n,i,l,C){switch(Ie(i)){case 1:var P=te;break;case 4:P=J;break;default:P=ne}l=P.bind(null,i,l,n),P=void 0,!va||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(P=!0),C?P!==void 0?n.addEventListener(i,l,{capture:!0,passive:P}):n.addEventListener(i,l,!0):P!==void 0?n.addEventListener(i,l,{passive:P}):n.addEventListener(i,l,!1)}function vd(n,i,l,C,P){var q=C;if((i&1)===0&&(i&2)===0&&C!==null)e:for(;;){if(C===null)return;var K=C.tag;if(K===3||K===4){var ee=C.stateNode.containerInfo;if(ee===P||ee.nodeType===8&&ee.parentNode===P)break;if(K===4)for(K=C.return;K!==null;){var se=K.tag;if((se===3||se===4)&&(se=K.stateNode.containerInfo,se===P||se.nodeType===8&&se.parentNode===P))return;K=K.return}for(;ee!==null;){if(K=ko(ee),K===null)return;if(se=K.tag,se===5||se===6){C=q=K;continue e}ee=ee.parentNode}}C=C.return}cn(function(){var we=q,$e=rr(l),dr=[];e:{var qe=JS.get(n);if(qe!==void 0){var pr=rn,fr=n;switch(n){case"keypress":if(Lr(l)===0)break e;case"keydown":case"keyup":pr=Wa;break;case"focusin":fr="focus",pr=tt;break;case"focusout":fr="blur",pr=tt;break;case"beforeblur":case"afterblur":pr=tt;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pr=st;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pr=_n;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pr=Ct;break;case GS:case WS:case KS:pr=Ye;break;case YS:pr=Bl;break;case"scroll":pr=fi;break;case"wheel":pr=CB;break;case"copy":case"cut":case"paste":pr=Ue;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pr=Pr}var Br=(i&4)!==0,Wt=!Br&&n==="scroll",be=Br?qe!==null?qe+"Capture":null:qe;Br=[];for(var ue=we,Se;ue!==null;){Se=ue;var tr=Se.stateNode;if(Se.tag===5&&tr!==null&&(Se=tr,be!==null&&(tr=Za(ue,be),tr!=null&&Br.push(Ru(ue,tr,Se)))),Wt)break;ue=ue.return}0<Br.length&&(qe=new pr(qe,fr,null,l,$e),dr.push({event:qe,listeners:Br}))}}if((i&7)===0){e:{if(qe=n==="mouseover"||n==="pointerover",pr=n==="mouseout"||n==="pointerout",qe&&l!==Me&&(fr=l.relatedTarget||l.fromElement)&&(ko(fr)||fr[Ri]))break e;if((pr||qe)&&(qe=$e.window===$e?$e:(qe=$e.ownerDocument)?qe.defaultView||qe.parentWindow:window,pr?(fr=l.relatedTarget||l.toElement,pr=we,fr=fr?ko(fr):null,fr!==null&&(Wt=qn(fr),fr!==Wt||fr.tag!==5&&fr.tag!==6)&&(fr=null)):(pr=null,fr=we),pr!==fr)){if(Br=st,tr="onMouseLeave",be="onMouseEnter",ue="mouse",(n==="pointerout"||n==="pointerover")&&(Br=Pr,tr="onPointerLeave",be="onPointerEnter",ue="pointer"),Wt=pr==null?qe:xs(pr),Se=fr==null?qe:xs(fr),qe=new Br(tr,ue+"leave",pr,l,$e),qe.target=Wt,qe.relatedTarget=Se,tr=null,ko($e)===we&&(Br=new Br(be,ue+"enter",fr,l,$e),Br.target=Se,Br.relatedTarget=Wt,tr=Br),Wt=tr,pr&&fr)r:{for(Br=pr,be=fr,ue=0,Se=Br;Se;Se=Es(Se))ue++;for(Se=0,tr=be;tr;tr=Es(tr))Se++;for(;0<ue-Se;)Br=Es(Br),ue--;for(;0<Se-ue;)be=Es(be),Se--;for(;ue--;){if(Br===be||be!==null&&Br===be.alternate)break r;Br=Es(Br),be=Es(be)}Br=null}else Br=null;pr!==null&&t2(dr,qe,pr,Br,!1),fr!==null&&Wt!==null&&t2(dr,Wt,fr,Br,!0)}}e:{if(qe=we?xs(we):window,pr=qe.nodeName&&qe.nodeName.toLowerCase(),pr==="select"||pr==="input"&&qe.type==="file")var Sr=kB;else if(qS(qe))if(LS)Sr=qB;else{Sr=NB;var Rr=PB}else(pr=qe.nodeName)&&pr.toLowerCase()==="input"&&(qe.type==="checkbox"||qe.type==="radio")&&(Sr=jB);if(Sr&&(Sr=Sr(n,we))){DS(dr,Sr,l,$e);break e}Rr&&Rr(n,qe,we),n==="focusout"&&(Rr=qe._wrapperState)&&Rr.controlled&&qe.type==="number"&&W(qe,"number",qe.value)}switch(Rr=we?xs(we):window,n){case"focusin":(qS(Rr)||Rr.contentEditable==="true")&&(Ss=Rr,ud=we,Iu=null);break;case"focusout":Iu=ud=Ss=null;break;case"mousedown":ld=!0;break;case"contextmenu":case"mouseup":case"dragend":ld=!1,HS(dr,l,$e);break;case"selectionchange":if(MB)break;case"keydown":case"keyup":HS(dr,l,$e)}var Or;if(ad)e:{switch(n){case"compositionstart":var qr="onCompositionStart";break e;case"compositionend":qr="onCompositionEnd";break e;case"compositionupdate":qr="onCompositionUpdate";break e}qr=void 0}else _s?NS(n,l)&&(qr="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(qr="onCompositionStart");qr&&(OS&&l.locale!=="ko"&&(_s||qr!=="onCompositionStart"?qr==="onCompositionEnd"&&_s&&(Or=wr()):(ke=$e,sr="value"in ke?ke.value:ke.textContent,_s=!0)),Rr=Vl(we,qr),0<Rr.length&&(qr=new Cr(qr,n,null,l,$e),dr.push({event:qr,listeners:Rr}),Or?qr.data=Or:(Or=jS(l),Or!==null&&(qr.data=Or)))),(Or=IB?AB(n,l):TB(n,l))&&(we=Vl(we,"onBeforeInput"),0<we.length&&($e=new Cr("onBeforeInput","beforeinput",null,l,$e),dr.push({event:$e,listeners:we}),$e.data=Or))}e2(dr,i)})}function Ru(n,i,l){return{instance:n,listener:i,currentTarget:l}}function Vl(n,i){for(var l=i+"Capture",C=[];n!==null;){var P=n,q=P.stateNode;P.tag===5&&q!==null&&(P=q,q=Za(n,l),q!=null&&C.unshift(Ru(n,q,P)),q=Za(n,i),q!=null&&C.push(Ru(n,q,P))),n=n.return}return C}function Es(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function t2(n,i,l,C,P){for(var q=i._reactName,K=[];l!==null&&l!==C;){var ee=l,se=ee.alternate,we=ee.stateNode;if(se!==null&&se===C)break;ee.tag===5&&we!==null&&(ee=we,P?(se=Za(l,q),se!=null&&K.unshift(Ru(l,se,ee))):P||(se=Za(l,q),se!=null&&K.push(Ru(l,se,ee)))),l=l.return}K.length!==0&&n.push({event:i,listeners:K})}var $B=/\r\n?/g,zB=/\u0000|\uFFFD/g;function n2(n){return(typeof n=="string"?n:""+n).replace($B,`
42
42
  `).replace(zB,"")}function Gl(n,i,l){if(i=n2(i),n2(n)!==i&&l)throw Error(t(425))}function Wl(){}var pd=null,gd=null;function md(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var yd=typeof setTimeout=="function"?setTimeout:void 0,ZB=typeof clearTimeout=="function"?clearTimeout:void 0,a2=typeof Promise=="function"?Promise:void 0,HB=typeof queueMicrotask=="function"?queueMicrotask:typeof a2<"u"?function(n){return a2.resolve(null).then(n).catch(VB)}:yd;function VB(n){setTimeout(function(){throw n})}function bd(n,i){var l=i,C=0;do{var P=l.nextSibling;if(n.removeChild(l),P&&P.nodeType===8)if(l=P.data,l==="/$"){if(C===0){n.removeChild(P),z(i);return}C--}else l!=="$"&&l!=="$?"&&l!=="$!"||C++;l=P}while(l);z(i)}function Ti(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return n}function i2(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"){if(i===0)return n;i--}else l==="/$"&&i++}n=n.previousSibling}return null}var Cs=Math.random().toString(36).slice(2),di="__reactFiber$"+Cs,Ou="__reactProps$"+Cs,Ri="__reactContainer$"+Cs,_d="__reactEvents$"+Cs,GB="__reactListeners$"+Cs,WB="__reactHandles$"+Cs;function ko(n){var i=n[di];if(i)return i;for(var l=n.parentNode;l;){if(i=l[Ri]||l[di]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(n=i2(n);n!==null;){if(l=n[di])return l;n=i2(n)}return i}n=l,l=n.parentNode}return null}function ku(n){return n=n[di]||n[Ri],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function xs(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(t(33))}function Kl(n){return n[Ou]||null}var Sd=[],Is=-1;function to(n){return{current:n}}function It(n){0>Is||(n.current=Sd[Is],Sd[Is]=null,Is--)}function _t(n,i){Is++,Sd[Is]=n.current,n.current=i}var no={},Mn=to(no),ra=to(!1),Po=no;function As(n,i){var l=n.type.contextTypes;if(!l)return no;var C=n.stateNode;if(C&&C.__reactInternalMemoizedUnmaskedChildContext===i)return C.__reactInternalMemoizedMaskedChildContext;var P={},q;for(q in l)P[q]=i[q];return C&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=P),P}function ta(n){return n=n.childContextTypes,n!=null}function Yl(){It(ra),It(Mn)}function o2(n,i,l){if(Mn.current!==no)throw Error(t(168));_t(Mn,i),_t(ra,l)}function s2(n,i,l){var C=n.stateNode;if(i=i.childContextTypes,typeof C.getChildContext!="function")return l;C=C.getChildContext();for(var P in C)if(!(P in i))throw Error(t(108,ye(n)||"Unknown",P));return L({},l,C)}function Jl(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||no,Po=Mn.current,_t(Mn,n),_t(ra,ra.current),!0}function u2(n,i,l){var C=n.stateNode;if(!C)throw Error(t(169));l?(n=s2(n,i,Po),C.__reactInternalMemoizedMergedChildContext=n,It(ra),It(Mn),_t(Mn,n)):It(ra),_t(ra,l)}var Oi=null,Xl=!1,wd=!1;function l2(n){Oi===null?Oi=[n]:Oi.push(n)}function KB(n){Xl=!0,l2(n)}function ao(){if(!wd&&Oi!==null){wd=!0;var n=0,i=ct;try{var l=Oi;for(ct=1;n<l.length;n++){var C=l[n];do C=C(!0);while(C!==null)}Oi=null,Xl=!1}catch(P){throw Oi!==null&&(Oi=Oi.slice(n+1)),Be(fn,ao),P}finally{ct=i,wd=!1}}return null}var YB=p.ReactCurrentBatchConfig;function Ya(n,i){if(n&&n.defaultProps){i=L({},i),n=n.defaultProps;for(var l in n)i[l]===void 0&&(i[l]=n[l]);return i}return i}var Ql=to(null),ec=null,Ts=null,Ed=null;function Cd(){Ed=Ts=ec=null}function xd(n){var i=Ql.current;It(Ql),n._currentValue=i}function Id(n,i,l){for(;n!==null;){var C=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,C!==null&&(C.childLanes|=i)):C!==null&&(C.childLanes&i)!==i&&(C.childLanes|=i),n===l)break;n=n.return}}function Rs(n,i){ec=n,Ed=Ts=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&i)!==0&&(aa=!0),n.firstContext=null)}function ka(n){var i=n._currentValue;if(Ed!==n)if(n={context:n,memoizedValue:i,next:null},Ts===null){if(ec===null)throw Error(t(308));Ts=n,ec.dependencies={lanes:0,firstContext:n}}else Ts=Ts.next=n;return i}var Ja=null,io=!1;function Ad(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function c2(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function ki(n,i){return{eventTime:n,lane:i,tag:0,payload:null,callback:null,next:null}}function oo(n,i){var l=n.updateQueue;l!==null&&(l=l.shared,xw(n)?(n=l.interleaved,n===null?(i.next=i,Ja===null?Ja=[l]:Ja.push(l)):(i.next=n.next,n.next=i),l.interleaved=i):(n=l.pending,n===null?i.next=i:(i.next=n.next,n.next=i),l.pending=i))}function rc(n,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194240)!==0)){var C=i.lanes;C&=n.pendingLanes,l|=C,i.lanes=l,bu(n,l)}}function f2(n,i){var l=n.updateQueue,C=n.alternate;if(C!==null&&(C=C.updateQueue,l===C)){var P=null,q=null;if(l=l.firstBaseUpdate,l!==null){do{var K={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};q===null?P=q=K:q=q.next=K,l=l.next}while(l!==null);q===null?P=q=i:q=q.next=i}else P=q=i;l={baseState:C.baseState,firstBaseUpdate:P,lastBaseUpdate:q,shared:C.shared,effects:C.effects},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=i:n.next=i,l.lastBaseUpdate=i}function tc(n,i,l,C){var P=n.updateQueue;io=!1;var q=P.firstBaseUpdate,K=P.lastBaseUpdate,ee=P.shared.pending;if(ee!==null){P.shared.pending=null;var se=ee,we=se.next;se.next=null,K===null?q=we:K.next=we,K=se;var $e=n.alternate;$e!==null&&($e=$e.updateQueue,ee=$e.lastBaseUpdate,ee!==K&&(ee===null?$e.firstBaseUpdate=we:ee.next=we,$e.lastBaseUpdate=se))}if(q!==null){var dr=P.baseState;K=0,$e=we=se=null,ee=q;do{var qe=ee.lane,pr=ee.eventTime;if((C&qe)===qe){$e!==null&&($e=$e.next={eventTime:pr,lane:0,tag:ee.tag,payload:ee.payload,callback:ee.callback,next:null});e:{var fr=n,Br=ee;switch(qe=i,pr=l,Br.tag){case 1:if(fr=Br.payload,typeof fr=="function"){dr=fr.call(pr,dr,qe);break e}dr=fr;break e;case 3:fr.flags=fr.flags&-65537|128;case 0:if(fr=Br.payload,qe=typeof fr=="function"?fr.call(pr,dr,qe):fr,qe==null)break e;dr=L({},dr,qe);break e;case 2:io=!0}}ee.callback!==null&&ee.lane!==0&&(n.flags|=64,qe=P.effects,qe===null?P.effects=[ee]:qe.push(ee))}else pr={eventTime:pr,lane:qe,tag:ee.tag,payload:ee.payload,callback:ee.callback,next:null},$e===null?(we=$e=pr,se=dr):$e=$e.next=pr,K|=qe;if(ee=ee.next,ee===null){if(ee=P.shared.pending,ee===null)break;qe=ee,ee=qe.next,qe.next=null,P.lastBaseUpdate=qe,P.shared.pending=null}}while(!0);if($e===null&&(se=dr),P.baseState=se,P.firstBaseUpdate=we,P.lastBaseUpdate=$e,i=P.shared.interleaved,i!==null){P=i;do K|=P.lane,P=P.next;while(P!==i)}else q===null&&(P.shared.lanes=0);Lo|=K,n.lanes=K,n.memoizedState=dr}}function d2(n,i,l){if(n=i.effects,i.effects=null,n!==null)for(i=0;i<n.length;i++){var C=n[i],P=C.callback;if(P!==null){if(C.callback=null,C=l,typeof P!="function")throw Error(t(191,P));P.call(C)}}}var h2=new e.Component().refs;function Td(n,i,l,C){i=n.memoizedState,l=l(C,i),l=l==null?i:L({},i,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var nc={isMounted:function(n){return(n=n._reactInternals)?qn(n)===n:!1},enqueueSetState:function(n,i,l){n=n._reactInternals;var C=Wn(),P=co(n),q=ki(C,P);q.payload=i,l!=null&&(q.callback=l),oo(n,q),i=Da(n,P,C),i!==null&&rc(i,n,P)},enqueueReplaceState:function(n,i,l){n=n._reactInternals;var C=Wn(),P=co(n),q=ki(C,P);q.tag=1,q.payload=i,l!=null&&(q.callback=l),oo(n,q),i=Da(n,P,C),i!==null&&rc(i,n,P)},enqueueForceUpdate:function(n,i){n=n._reactInternals;var l=Wn(),C=co(n),P=ki(l,C);P.tag=2,i!=null&&(P.callback=i),oo(n,P),i=Da(n,C,l),i!==null&&rc(i,n,C)}};function v2(n,i,l,C,P,q,K){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(C,q,K):i.prototype&&i.prototype.isPureReactComponent?!xu(l,C)||!xu(P,q):!0}function p2(n,i,l){var C=!1,P=no,q=i.contextType;return typeof q=="object"&&q!==null?q=ka(q):(P=ta(i)?Po:Mn.current,C=i.contextTypes,q=(C=C!=null)?As(n,P):no),i=new i(l,q),n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=nc,n.stateNode=i,i._reactInternals=n,C&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=P,n.__reactInternalMemoizedMaskedChildContext=q),i}function g2(n,i,l,C){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,C),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,C),i.state!==n&&nc.enqueueReplaceState(i,i.state,null)}function Rd(n,i,l,C){var P=n.stateNode;P.props=l,P.state=n.memoizedState,P.refs=h2,Ad(n);var q=i.contextType;typeof q=="object"&&q!==null?P.context=ka(q):(q=ta(i)?Po:Mn.current,P.context=As(n,q)),P.state=n.memoizedState,q=i.getDerivedStateFromProps,typeof q=="function"&&(Td(n,i,q,l),P.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof P.getSnapshotBeforeUpdate=="function"||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(i=P.state,typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount(),i!==P.state&&nc.enqueueReplaceState(P,P.state,null),tc(n,l,P,C),P.state=n.memoizedState),typeof P.componentDidMount=="function"&&(n.flags|=4194308)}var Os=[],ks=0,ac=null,ic=0,Pa=[],Na=0,No=null,Pi=1,Ni="";function jo(n,i){Os[ks++]=ic,Os[ks++]=ac,ac=n,ic=i}function m2(n,i,l){Pa[Na++]=Pi,Pa[Na++]=Ni,Pa[Na++]=No,No=n;var C=Pi;n=Ni;var P=32-Dn(C)-1;C&=~(1<<P),l+=1;var q=32-Dn(i)+P;if(30<q){var K=P-P%5;q=(C&(1<<K)-1).toString(32),C>>=K,P-=K,Pi=1<<32-Dn(i)+P|l<<P|C,Ni=q+n}else Pi=1<<q|l<<P|C,Ni=n}function Od(n){n.return!==null&&(jo(n,1),m2(n,1,0))}function kd(n){for(;n===ac;)ac=Os[--ks],Os[ks]=null,ic=Os[--ks],Os[ks]=null;for(;n===No;)No=Pa[--Na],Pa[Na]=null,Ni=Pa[--Na],Pa[Na]=null,Pi=Pa[--Na],Pa[Na]=null}var ma=null,na=null,kt=!1,Xa=null;function y2(n,i){var l=La(5,null,null,0);l.elementType="DELETED",l.stateNode=i,l.return=n,i=n.deletions,i===null?(n.deletions=[l],n.flags|=16):i.push(l)}function b2(n,i){switch(n.tag){case 5:var l=n.type;return i=i.nodeType!==1||l.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(n.stateNode=i,ma=n,na=Ti(i.firstChild),!0):!1;case 6:return i=n.pendingProps===""||i.nodeType!==3?null:i,i!==null?(n.stateNode=i,ma=n,na=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(l=No!==null?{id:Pi,overflow:Ni}:null,n.memoizedState={dehydrated:i,treeContext:l,retryLane:1073741824},l=La(18,null,null,0),l.stateNode=i,l.return=n,n.child=l,ma=n,na=null,!0):!1;default:return!1}}function Pd(n){return(n.mode&1)!==0&&(n.flags&128)===0}function Nd(n){if(kt){var i=na;if(i){var l=i;if(!b2(n,i)){if(Pd(n))throw Error(t(418));i=Ti(l.nextSibling);var C=ma;i&&b2(n,i)?y2(C,l):(n.flags=n.flags&-4097|2,kt=!1,ma=n)}}else{if(Pd(n))throw Error(t(418));n.flags=n.flags&-4097|2,kt=!1,ma=n}}}function _2(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;ma=n}function Pu(n){if(n!==ma)return!1;if(!kt)return _2(n),kt=!0,!1;var i;if((i=n.tag!==3)&&!(i=n.tag!==5)&&(i=n.type,i=i!=="head"&&i!=="body"&&!md(n.type,n.memoizedProps)),i&&(i=na)){if(Pd(n)){for(n=na;n;)n=Ti(n.nextSibling);throw Error(t(418))}for(;i;)y2(n,i),i=Ti(i.nextSibling)}if(_2(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(t(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="/$"){if(i===0){na=Ti(n.nextSibling);break e}i--}else l!=="$"&&l!=="$!"&&l!=="$?"||i++}n=n.nextSibling}na=null}}else na=ma?Ti(n.stateNode.nextSibling):null;return!0}function Ps(){na=ma=null,kt=!1}function jd(n){Xa===null?Xa=[n]:Xa.push(n)}function Nu(n,i,l){if(n=l.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(t(309));var C=l.stateNode}if(!C)throw Error(t(147,n));var P=C,q=""+n;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===q?i.ref:(i=function(K){var ee=P.refs;ee===h2&&(ee=P.refs={}),K===null?delete ee[q]:ee[q]=K},i._stringRef=q,i)}if(typeof n!="string")throw Error(t(284));if(!l._owner)throw Error(t(290,n))}return n}function oc(n,i){throw n=Object.prototype.toString.call(i),Error(t(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n))}function S2(n){var i=n._init;return i(n._payload)}function w2(n){function i(be,ue){if(n){var Se=be.deletions;Se===null?(be.deletions=[ue],be.flags|=16):Se.push(ue)}}function l(be,ue){if(!n)return null;for(;ue!==null;)i(be,ue),ue=ue.sibling;return null}function C(be,ue){for(be=new Map;ue!==null;)ue.key!==null?be.set(ue.key,ue):be.set(ue.index,ue),ue=ue.sibling;return be}function P(be,ue){return be=ho(be,ue),be.index=0,be.sibling=null,be}function q(be,ue,Se){return be.index=Se,n?(Se=be.alternate,Se!==null?(Se=Se.index,Se<ue?(be.flags|=2,ue):Se):(be.flags|=2,ue)):(be.flags|=1048576,ue)}function K(be){return n&&be.alternate===null&&(be.flags|=2),be}function ee(be,ue,Se,tr){return ue===null||ue.tag!==6?(ue=ph(Se,be.mode,tr),ue.return=be,ue):(ue=P(ue,Se),ue.return=be,ue)}function se(be,ue,Se,tr){var Sr=Se.type;return Sr===x?$e(be,ue,Se.props.children,tr,Se.key):ue!==null&&(ue.elementType===Sr||typeof Sr=="object"&&Sr!==null&&Sr.$$typeof===H&&S2(Sr)===ue.type)?(tr=P(ue,Se.props),tr.ref=Nu(be,ue,Se),tr.return=be,tr):(tr=Ac(Se.type,Se.key,Se.props,null,be.mode,tr),tr.ref=Nu(be,ue,Se),tr.return=be,tr)}function we(be,ue,Se,tr){return ue===null||ue.tag!==4||ue.stateNode.containerInfo!==Se.containerInfo||ue.stateNode.implementation!==Se.implementation?(ue=gh(Se,be.mode,tr),ue.return=be,ue):(ue=P(ue,Se.children||[]),ue.return=be,ue)}function $e(be,ue,Se,tr,Sr){return ue===null||ue.tag!==7?(ue=Bo(Se,be.mode,tr,Sr),ue.return=be,ue):(ue=P(ue,Se),ue.return=be,ue)}function dr(be,ue,Se){if(typeof ue=="string"&&ue!==""||typeof ue=="number")return ue=ph(""+ue,be.mode,Se),ue.return=be,ue;if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case y:return Se=Ac(ue.type,ue.key,ue.props,null,be.mode,Se),Se.ref=Nu(be,null,ue),Se.return=be,Se;case g:return ue=gh(ue,be.mode,Se),ue.return=be,ue;case H:var tr=ue._init;return dr(be,tr(ue._payload),Se)}if(Y(ue)||M(ue))return ue=Bo(ue,be.mode,Se,null),ue.return=be,ue;oc(be,ue)}return null}function qe(be,ue,Se,tr){var Sr=ue!==null?ue.key:null;if(typeof Se=="string"&&Se!==""||typeof Se=="number")return Sr!==null?null:ee(be,ue,""+Se,tr);if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case y:return Se.key===Sr?se(be,ue,Se,tr):null;case g:return Se.key===Sr?we(be,ue,Se,tr):null;case H:return Sr=Se._init,qe(be,ue,Sr(Se._payload),tr)}if(Y(Se)||M(Se))return Sr!==null?null:$e(be,ue,Se,tr,null);oc(be,Se)}return null}function pr(be,ue,Se,tr,Sr){if(typeof tr=="string"&&tr!==""||typeof tr=="number")return be=be.get(Se)||null,ee(ue,be,""+tr,Sr);if(typeof tr=="object"&&tr!==null){switch(tr.$$typeof){case y:return be=be.get(tr.key===null?Se:tr.key)||null,se(ue,be,tr,Sr);case g:return be=be.get(tr.key===null?Se:tr.key)||null,we(ue,be,tr,Sr);case H:var Rr=tr._init;return pr(be,ue,Se,Rr(tr._payload),Sr)}if(Y(tr)||M(tr))return be=be.get(Se)||null,$e(ue,be,tr,Sr,null);oc(ue,tr)}return null}function fr(be,ue,Se,tr){for(var Sr=null,Rr=null,Or=ue,qr=ue=0,vn=null;Or!==null&&qr<Se.length;qr++){Or.index>qr?(vn=Or,Or=null):vn=Or.sibling;var ut=qe(be,Or,Se[qr],tr);if(ut===null){Or===null&&(Or=vn);break}n&&Or&&ut.alternate===null&&i(be,Or),ue=q(ut,ue,qr),Rr===null?Sr=ut:Rr.sibling=ut,Rr=ut,Or=vn}if(qr===Se.length)return l(be,Or),kt&&jo(be,qr),Sr;if(Or===null){for(;qr<Se.length;qr++)Or=dr(be,Se[qr],tr),Or!==null&&(ue=q(Or,ue,qr),Rr===null?Sr=Or:Rr.sibling=Or,Rr=Or);return kt&&jo(be,qr),Sr}for(Or=C(be,Or);qr<Se.length;qr++)vn=pr(Or,be,qr,Se[qr],tr),vn!==null&&(n&&vn.alternate!==null&&Or.delete(vn.key===null?qr:vn.key),ue=q(vn,ue,qr),Rr===null?Sr=vn:Rr.sibling=vn,Rr=vn);return n&&Or.forEach(function(vo){return i(be,vo)}),kt&&jo(be,qr),Sr}function Br(be,ue,Se,tr){var Sr=M(Se);if(typeof Sr!="function")throw Error(t(150));if(Se=Sr.call(Se),Se==null)throw Error(t(151));for(var Rr=Sr=null,Or=ue,qr=ue=0,vn=null,ut=Se.next();Or!==null&&!ut.done;qr++,ut=Se.next()){Or.index>qr?(vn=Or,Or=null):vn=Or.sibling;var vo=qe(be,Or,ut.value,tr);if(vo===null){Or===null&&(Or=vn);break}n&&Or&&vo.alternate===null&&i(be,Or),ue=q(vo,ue,qr),Rr===null?Sr=vo:Rr.sibling=vo,Rr=vo,Or=vn}if(ut.done)return l(be,Or),kt&&jo(be,qr),Sr;if(Or===null){for(;!ut.done;qr++,ut=Se.next())ut=dr(be,ut.value,tr),ut!==null&&(ue=q(ut,ue,qr),Rr===null?Sr=ut:Rr.sibling=ut,Rr=ut);return kt&&jo(be,qr),Sr}for(Or=C(be,Or);!ut.done;qr++,ut=Se.next())ut=pr(Or,be,qr,ut.value,tr),ut!==null&&(n&&ut.alternate!==null&&Or.delete(ut.key===null?qr:ut.key),ue=q(ut,ue,qr),Rr===null?Sr=ut:Rr.sibling=ut,Rr=ut);return n&&Or.forEach(function(T$){return i(be,T$)}),kt&&jo(be,qr),Sr}function Wt(be,ue,Se,tr){if(typeof Se=="object"&&Se!==null&&Se.type===x&&Se.key===null&&(Se=Se.props.children),typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case y:e:{for(var Sr=Se.key,Rr=ue;Rr!==null;){if(Rr.key===Sr){if(Sr=Se.type,Sr===x){if(Rr.tag===7){l(be,Rr.sibling),ue=P(Rr,Se.props.children),ue.return=be,be=ue;break e}}else if(Rr.elementType===Sr||typeof Sr=="object"&&Sr!==null&&Sr.$$typeof===H&&S2(Sr)===Rr.type){l(be,Rr.sibling),ue=P(Rr,Se.props),ue.ref=Nu(be,Rr,Se),ue.return=be,be=ue;break e}l(be,Rr);break}else i(be,Rr);Rr=Rr.sibling}Se.type===x?(ue=Bo(Se.props.children,be.mode,tr,Se.key),ue.return=be,be=ue):(tr=Ac(Se.type,Se.key,Se.props,null,be.mode,tr),tr.ref=Nu(be,ue,Se),tr.return=be,be=tr)}return K(be);case g:e:{for(Rr=Se.key;ue!==null;){if(ue.key===Rr)if(ue.tag===4&&ue.stateNode.containerInfo===Se.containerInfo&&ue.stateNode.implementation===Se.implementation){l(be,ue.sibling),ue=P(ue,Se.children||[]),ue.return=be,be=ue;break e}else{l(be,ue);break}else i(be,ue);ue=ue.sibling}ue=gh(Se,be.mode,tr),ue.return=be,be=ue}return K(be);case H:return Rr=Se._init,Wt(be,ue,Rr(Se._payload),tr)}if(Y(Se))return fr(be,ue,Se,tr);if(M(Se))return Br(be,ue,Se,tr);oc(be,Se)}return typeof Se=="string"&&Se!==""||typeof Se=="number"?(Se=""+Se,ue!==null&&ue.tag===6?(l(be,ue.sibling),ue=P(ue,Se),ue.return=be,be=ue):(l(be,ue),ue=ph(Se,be.mode,tr),ue.return=be,be=ue),K(be)):l(be,ue)}return Wt}var Ns=w2(!0),E2=w2(!1),ju={},hi=to(ju),qu=to(ju),Du=to(ju);function qo(n){if(n===ju)throw Error(t(174));return n}function qd(n,i){switch(_t(Du,i),_t(qu,n),_t(hi,ju),n=i.nodeType,n){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:Pe(null,"");break;default:n=n===8?i.parentNode:i,i=n.namespaceURI||null,n=n.tagName,i=Pe(i,n)}It(hi),_t(hi,i)}function js(){It(hi),It(qu),It(Du)}function C2(n){qo(Du.current);var i=qo(hi.current),l=Pe(i,n.type);i!==l&&(_t(qu,n),_t(hi,l))}function Dd(n){qu.current===n&&(It(hi),It(qu))}var jt=to(0);function sc(n){for(var i=n;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Ld=[];function Md(){for(var n=0;n<Ld.length;n++)Ld[n]._workInProgressVersionPrimary=null;Ld.length=0}var uc=p.ReactCurrentDispatcher,Ud=p.ReactCurrentBatchConfig,Do=0,qt=null,nn=null,hn=null,lc=!1,Lu=!1,Mu=0,JB=0;function Un(){throw Error(t(321))}function Fd(n,i){if(i===null)return!1;for(var l=0;l<i.length&&l<n.length;l++)if(!Ka(n[l],i[l]))return!1;return!0}function Bd(n,i,l,C,P,q){if(Do=q,qt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,uc.current=n===null||n.memoizedState===null?r$:t$,n=l(C,P),Lu){q=0;do{if(Lu=!1,Mu=0,25<=q)throw Error(t(301));q+=1,hn=nn=null,i.updateQueue=null,uc.current=n$,n=l(C,P)}while(Lu)}if(uc.current=dc,i=nn!==null&&nn.next!==null,Do=0,hn=nn=qt=null,lc=!1,i)throw Error(t(300));return n}function $d(){var n=Mu!==0;return Mu=0,n}function vi(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return hn===null?qt.memoizedState=hn=n:hn=hn.next=n,hn}function ja(){if(nn===null){var n=qt.alternate;n=n!==null?n.memoizedState:null}else n=nn.next;var i=hn===null?qt.memoizedState:hn.next;if(i!==null)hn=i,nn=n;else{if(n===null)throw Error(t(310));nn=n,n={memoizedState:nn.memoizedState,baseState:nn.baseState,baseQueue:nn.baseQueue,queue:nn.queue,next:null},hn===null?qt.memoizedState=hn=n:hn=hn.next=n}return hn}function Uu(n,i){return typeof i=="function"?i(n):i}function zd(n){var i=ja(),l=i.queue;if(l===null)throw Error(t(311));l.lastRenderedReducer=n;var C=nn,P=C.baseQueue,q=l.pending;if(q!==null){if(P!==null){var K=P.next;P.next=q.next,q.next=K}C.baseQueue=P=q,l.pending=null}if(P!==null){q=P.next,C=C.baseState;var ee=K=null,se=null,we=q;do{var $e=we.lane;if((Do&$e)===$e)se!==null&&(se=se.next={lane:0,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null}),C=we.hasEagerState?we.eagerState:n(C,we.action);else{var dr={lane:$e,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null};se===null?(ee=se=dr,K=C):se=se.next=dr,qt.lanes|=$e,Lo|=$e}we=we.next}while(we!==null&&we!==q);se===null?K=C:se.next=ee,Ka(C,i.memoizedState)||(aa=!0),i.memoizedState=C,i.baseState=K,i.baseQueue=se,l.lastRenderedState=C}if(n=l.interleaved,n!==null){P=n;do q=P.lane,qt.lanes|=q,Lo|=q,P=P.next;while(P!==n)}else P===null&&(l.lanes=0);return[i.memoizedState,l.dispatch]}function Zd(n){var i=ja(),l=i.queue;if(l===null)throw Error(t(311));l.lastRenderedReducer=n;var C=l.dispatch,P=l.pending,q=i.memoizedState;if(P!==null){l.pending=null;var K=P=P.next;do q=n(q,K.action),K=K.next;while(K!==P);Ka(q,i.memoizedState)||(aa=!0),i.memoizedState=q,i.baseQueue===null&&(i.baseState=q),l.lastRenderedState=q}return[q,C]}function x2(){}function I2(n,i){var l=qt,C=ja(),P=i(),q=!Ka(C.memoizedState,P);if(q&&(C.memoizedState=P,aa=!0),C=C.queue,Hd(R2.bind(null,l,C,n),[n]),C.getSnapshot!==i||q||hn!==null&&hn.memoizedState.tag&1){if(l.flags|=2048,Fu(9,T2.bind(null,l,C,P,i),void 0,null),an===null)throw Error(t(349));(Do&30)!==0||A2(l,i,P)}return P}function A2(n,i,l){n.flags|=16384,n={getSnapshot:i,value:l},i=qt.updateQueue,i===null?(i={lastEffect:null,stores:null},qt.updateQueue=i,i.stores=[n]):(l=i.stores,l===null?i.stores=[n]:l.push(n))}function T2(n,i,l,C){i.value=l,i.getSnapshot=C,O2(i)&&Da(n,1,-1)}function R2(n,i,l){return l(function(){O2(i)&&Da(n,1,-1)})}function O2(n){var i=n.getSnapshot;n=n.value;try{var l=i();return!Ka(n,l)}catch{return!0}}function k2(n){var i=vi();return typeof n=="function"&&(n=n()),i.memoizedState=i.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Uu,lastRenderedState:n},i.queue=n,n=n.dispatch=e$.bind(null,qt,n),[i.memoizedState,n]}function Fu(n,i,l,C){return n={tag:n,create:i,destroy:l,deps:C,next:null},i=qt.updateQueue,i===null?(i={lastEffect:null,stores:null},qt.updateQueue=i,i.lastEffect=n.next=n):(l=i.lastEffect,l===null?i.lastEffect=n.next=n:(C=l.next,l.next=n,n.next=C,i.lastEffect=n)),n}function P2(){return ja().memoizedState}function cc(n,i,l,C){var P=vi();qt.flags|=n,P.memoizedState=Fu(1|i,l,void 0,C===void 0?null:C)}function fc(n,i,l,C){var P=ja();C=C===void 0?null:C;var q=void 0;if(nn!==null){var K=nn.memoizedState;if(q=K.destroy,C!==null&&Fd(C,K.deps)){P.memoizedState=Fu(i,l,q,C);return}}qt.flags|=n,P.memoizedState=Fu(1|i,l,q,C)}function N2(n,i){return cc(8390656,8,n,i)}function Hd(n,i){return fc(2048,8,n,i)}function j2(n,i){return fc(4,2,n,i)}function q2(n,i){return fc(4,4,n,i)}function D2(n,i){if(typeof i=="function")return n=n(),i(n),function(){i(null)};if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function L2(n,i,l){return l=l!=null?l.concat([n]):null,fc(4,4,D2.bind(null,i,n),l)}function Vd(){}function M2(n,i){var l=ja();i=i===void 0?null:i;var C=l.memoizedState;return C!==null&&i!==null&&Fd(i,C[1])?C[0]:(l.memoizedState=[n,i],n)}function U2(n,i){var l=ja();i=i===void 0?null:i;var C=l.memoizedState;return C!==null&&i!==null&&Fd(i,C[1])?C[0]:(n=n(),l.memoizedState=[n,i],n)}function F2(n,i,l){return(Do&21)===0?(n.baseState&&(n.baseState=!1,aa=!0),n.memoizedState=l):(Ka(l,i)||(l=si(),qt.lanes|=l,Lo|=l,n.baseState=!0),i)}function XB(n,i){var l=ct;ct=l!==0&&4>l?l:4,n(!0);var C=Ud.transition;Ud.transition={};try{n(!1),i()}finally{ct=l,Ud.transition=C}}function B2(){return ja().memoizedState}function QB(n,i,l){var C=co(n);l={lane:C,action:l,hasEagerState:!1,eagerState:null,next:null},$2(n)?z2(i,l):(Z2(n,i,l),l=Wn(),n=Da(n,C,l),n!==null&&H2(n,i,C))}function e$(n,i,l){var C=co(n),P={lane:C,action:l,hasEagerState:!1,eagerState:null,next:null};if($2(n))z2(i,P);else{Z2(n,i,P);var q=n.alternate;if(n.lanes===0&&(q===null||q.lanes===0)&&(q=i.lastRenderedReducer,q!==null))try{var K=i.lastRenderedState,ee=q(K,l);if(P.hasEagerState=!0,P.eagerState=ee,Ka(ee,K))return}catch{}finally{}l=Wn(),n=Da(n,C,l),n!==null&&H2(n,i,C)}}function $2(n){var i=n.alternate;return n===qt||i!==null&&i===qt}function z2(n,i){Lu=lc=!0;var l=n.pending;l===null?i.next=i:(i.next=l.next,l.next=i),n.pending=i}function Z2(n,i,l){xw(n)?(n=i.interleaved,n===null?(l.next=l,Ja===null?Ja=[i]:Ja.push(i)):(l.next=n.next,n.next=l),i.interleaved=l):(n=i.pending,n===null?l.next=l:(l.next=n.next,n.next=l),i.pending=l)}function H2(n,i,l){if((l&4194240)!==0){var C=i.lanes;C&=n.pendingLanes,l|=C,i.lanes=l,bu(n,l)}}var dc={readContext:ka,useCallback:Un,useContext:Un,useEffect:Un,useImperativeHandle:Un,useInsertionEffect:Un,useLayoutEffect:Un,useMemo:Un,useReducer:Un,useRef:Un,useState:Un,useDebugValue:Un,useDeferredValue:Un,useTransition:Un,useMutableSource:Un,useSyncExternalStore:Un,useId:Un,unstable_isNewReconciler:!1},r$={readContext:ka,useCallback:function(n,i){return vi().memoizedState=[n,i===void 0?null:i],n},useContext:ka,useEffect:N2,useImperativeHandle:function(n,i,l){return l=l!=null?l.concat([n]):null,cc(4194308,4,D2.bind(null,i,n),l)},useLayoutEffect:function(n,i){return cc(4194308,4,n,i)},useInsertionEffect:function(n,i){return cc(4,2,n,i)},useMemo:function(n,i){var l=vi();return i=i===void 0?null:i,n=n(),l.memoizedState=[n,i],n},useReducer:function(n,i,l){var C=vi();return i=l!==void 0?l(i):i,C.memoizedState=C.baseState=i,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:i},C.queue=n,n=n.dispatch=QB.bind(null,qt,n),[C.memoizedState,n]},useRef:function(n){var i=vi();return n={current:n},i.memoizedState=n},useState:k2,useDebugValue:Vd,useDeferredValue:function(n){return vi().memoizedState=n},useTransition:function(){var n=k2(!1),i=n[0];return n=XB.bind(null,n[1]),vi().memoizedState=n,[i,n]},useMutableSource:function(){},useSyncExternalStore:function(n,i,l){var C=qt,P=vi();if(kt){if(l===void 0)throw Error(t(407));l=l()}else{if(l=i(),an===null)throw Error(t(349));(Do&30)!==0||A2(C,i,l)}P.memoizedState=l;var q={value:l,getSnapshot:i};return P.queue=q,N2(R2.bind(null,C,q,n),[n]),C.flags|=2048,Fu(9,T2.bind(null,C,q,l,i),void 0,null),l},useId:function(){var n=vi(),i=an.identifierPrefix;if(kt){var l=Ni,C=Pi;l=(C&~(1<<32-Dn(C)-1)).toString(32)+l,i=":"+i+"R"+l,l=Mu++,0<l&&(i+="H"+l.toString(32)),i+=":"}else l=JB++,i=":"+i+"r"+l.toString(32)+":";return n.memoizedState=i},unstable_isNewReconciler:!1},t$={readContext:ka,useCallback:M2,useContext:ka,useEffect:Hd,useImperativeHandle:L2,useInsertionEffect:j2,useLayoutEffect:q2,useMemo:U2,useReducer:zd,useRef:P2,useState:function(){return zd(Uu)},useDebugValue:Vd,useDeferredValue:function(n){var i=ja();return F2(i,nn.memoizedState,n)},useTransition:function(){var n=zd(Uu)[0],i=ja().memoizedState;return[n,i]},useMutableSource:x2,useSyncExternalStore:I2,useId:B2,unstable_isNewReconciler:!1},n$={readContext:ka,useCallback:M2,useContext:ka,useEffect:Hd,useImperativeHandle:L2,useInsertionEffect:j2,useLayoutEffect:q2,useMemo:U2,useReducer:Zd,useRef:P2,useState:function(){return Zd(Uu)},useDebugValue:Vd,useDeferredValue:function(n){var i=ja();return nn===null?i.memoizedState=n:F2(i,nn.memoizedState,n)},useTransition:function(){var n=Zd(Uu)[0],i=ja().memoizedState;return[n,i]},useMutableSource:x2,useSyncExternalStore:I2,useId:B2,unstable_isNewReconciler:!1};function Gd(n,i){try{var l="",C=i;do l+=_e(C),C=C.return;while(C);var P=l}catch(q){P=`
43
43
  Error generating stack: `+q.message+`
44
- `+q.stack}return{value:n,source:i,stack:P}}function Wd(n,i){try{console.error(i.value)}catch(l){setTimeout(function(){throw l})}}var a$=typeof WeakMap=="function"?WeakMap:Map;function V2(n,i,l){l=ki(-1,l),l.tag=3,l.payload={element:null};var C=i.value;return l.callback=function(){_c||(_c=!0,sh=C),Wd(n,i)},l}function G2(n,i,l){l=ki(-1,l),l.tag=3;var C=n.type.getDerivedStateFromError;if(typeof C=="function"){var P=i.value;l.payload=function(){return C(P)},l.callback=function(){Wd(n,i)}}var q=n.stateNode;return q!==null&&typeof q.componentDidCatch=="function"&&(l.callback=function(){Wd(n,i),typeof C!="function"&&(uo===null?uo=new Set([this]):uo.add(this));var K=i.stack;this.componentDidCatch(i.value,{componentStack:K!==null?K:""})}),l}function W2(n,i,l){var C=n.pingCache;if(C===null){C=n.pingCache=new a$;var P=new Set;C.set(i,P)}else P=C.get(i),P===void 0&&(P=new Set,C.set(i,P));P.has(l)||(P.add(l),n=m$.bind(null,n,i,l),i.then(n,n))}function K2(n){do{var i;if((i=n.tag===13)&&(i=n.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return n;n=n.return}while(n!==null);return null}function Y2(n,i,l,C,P){return(n.mode&1)===0?(n===i?n.flags|=65536:(n.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(i=ki(-1,1),i.tag=2,oo(l,i))),l.lanes|=1),n):(n.flags|=65536,n.lanes=P,n)}var J2,Kd,X2,Q2;J2=function(n,i){for(var l=i.child;l!==null;){if(l.tag===5||l.tag===6)n.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Kd=function(){},X2=function(n,i,l,C){var P=n.memoizedProps;if(P!==C){n=i.stateNode,qo(hi.current);var q=null;switch(l){case"input":P=xr(n,P),C=xr(n,C),q=[];break;case"select":P=L({},P,{value:void 0}),C=L({},C,{value:void 0}),q=[];break;case"textarea":P=re(n,P),C=re(n,C),q=[];break;default:typeof P.onClick!="function"&&typeof C.onClick=="function"&&(n.onclick=Wl)}vr(l,C);var K;l=null;for(we in P)if(!C.hasOwnProperty(we)&&P.hasOwnProperty(we)&&P[we]!=null)if(we==="style"){var ee=P[we];for(K in ee)ee.hasOwnProperty(K)&&(l||(l={}),l[K]="")}else we!=="dangerouslySetInnerHTML"&&we!=="children"&&we!=="suppressContentEditableWarning"&&we!=="suppressHydrationWarning"&&we!=="autoFocus"&&(o.hasOwnProperty(we)?q||(q=[]):(q=q||[]).push(we,null));for(we in C){var se=C[we];if(ee=P!=null?P[we]:void 0,C.hasOwnProperty(we)&&se!==ee&&(se!=null||ee!=null))if(we==="style")if(ee){for(K in ee)!ee.hasOwnProperty(K)||se&&se.hasOwnProperty(K)||(l||(l={}),l[K]="");for(K in se)se.hasOwnProperty(K)&&ee[K]!==se[K]&&(l||(l={}),l[K]=se[K])}else l||(q||(q=[]),q.push(we,l)),l=se;else we==="dangerouslySetInnerHTML"?(se=se?se.__html:void 0,ee=ee?ee.__html:void 0,se!=null&&ee!==se&&(q=q||[]).push(we,se)):we==="children"?typeof se!="string"&&typeof se!="number"||(q=q||[]).push(we,""+se):we!=="suppressContentEditableWarning"&&we!=="suppressHydrationWarning"&&(o.hasOwnProperty(we)?(se!=null&&we==="onScroll"&&xt("scroll",n),q||ee===se||(q=[])):(q=q||[]).push(we,se))}l&&(q=q||[]).push("style",l);var we=q;(i.updateQueue=we)&&(i.flags|=4)}},Q2=function(n,i,l,C){l!==C&&(i.flags|=4)};function Bu(n,i){if(!kt)switch(n.tailMode){case"hidden":i=n.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var C=null;l!==null;)l.alternate!==null&&(C=l),l=l.sibling;C===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:C.sibling=null}}function Fn(n){var i=n.alternate!==null&&n.alternate.child===n.child,l=0,C=0;if(i)for(var P=n.child;P!==null;)l|=P.lanes|P.childLanes,C|=P.subtreeFlags&14680064,C|=P.flags&14680064,P.return=n,P=P.sibling;else for(P=n.child;P!==null;)l|=P.lanes|P.childLanes,C|=P.subtreeFlags,C|=P.flags,P.return=n,P=P.sibling;return n.subtreeFlags|=C,n.childLanes=l,i}function i$(n,i,l){var C=i.pendingProps;switch(kd(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fn(i),null;case 1:return ta(i.type)&&Yl(),Fn(i),null;case 3:return C=i.stateNode,js(),It(ra),It(Mn),Md(),C.pendingContext&&(C.context=C.pendingContext,C.pendingContext=null),(n===null||n.child===null)&&(Pu(i)?i.flags|=4:n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Xa!==null&&(ch(Xa),Xa=null))),Kd(n,i),Fn(i),null;case 5:Dd(i);var P=qo(Du.current);if(l=i.type,n!==null&&i.stateNode!=null)X2(n,i,l,C,P),n.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!C){if(i.stateNode===null)throw Error(t(166));return Fn(i),null}if(n=qo(hi.current),Pu(i)){C=i.stateNode,l=i.type;var q=i.memoizedProps;switch(C[di]=i,C[Ou]=q,n=(i.mode&1)!==0,l){case"dialog":xt("cancel",C),xt("close",C);break;case"iframe":case"object":case"embed":xt("load",C);break;case"video":case"audio":for(P=0;P<Au.length;P++)xt(Au[P],C);break;case"source":xt("error",C);break;case"img":case"image":case"link":xt("error",C),xt("load",C);break;case"details":xt("toggle",C);break;case"input":or(C,q),xt("invalid",C);break;case"select":C._wrapperState={wasMultiple:!!q.multiple},xt("invalid",C);break;case"textarea":pe(C,q),xt("invalid",C)}vr(l,q),P=null;for(var K in q)if(q.hasOwnProperty(K)){var ee=q[K];K==="children"?typeof ee=="string"?C.textContent!==ee&&(q.suppressHydrationWarning!==!0&&Gl(C.textContent,ee,n),P=["children",ee]):typeof ee=="number"&&C.textContent!==""+ee&&(q.suppressHydrationWarning!==!0&&Gl(C.textContent,ee,n),P=["children",""+ee]):o.hasOwnProperty(K)&&ee!=null&&K==="onScroll"&&xt("scroll",C)}switch(l){case"input":He(C),Ge(C,q,!0);break;case"textarea":He(C),Ee(C);break;case"select":case"option":break;default:typeof q.onClick=="function"&&(C.onclick=Wl)}C=P,i.updateQueue=C,C!==null&&(i.flags|=4)}else{K=P.nodeType===9?P:P.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=fe(l)),n==="http://www.w3.org/1999/xhtml"?l==="script"?(n=K.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof C.is=="string"?n=K.createElement(l,{is:C.is}):(n=K.createElement(l),l==="select"&&(K=n,C.multiple?K.multiple=!0:C.size&&(K.size=C.size))):n=K.createElementNS(n,l),n[di]=i,n[Ou]=C,J2(n,i,!1,!1),i.stateNode=n;e:{switch(K=$r(l,C),l){case"dialog":xt("cancel",n),xt("close",n),P=C;break;case"iframe":case"object":case"embed":xt("load",n),P=C;break;case"video":case"audio":for(P=0;P<Au.length;P++)xt(Au[P],n);P=C;break;case"source":xt("error",n),P=C;break;case"img":case"image":case"link":xt("error",n),xt("load",n),P=C;break;case"details":xt("toggle",n),P=C;break;case"input":or(n,C),P=xr(n,C),xt("invalid",n);break;case"option":P=C;break;case"select":n._wrapperState={wasMultiple:!!C.multiple},P=L({},C,{value:void 0}),xt("invalid",n);break;case"textarea":pe(n,C),P=re(n,C),xt("invalid",n);break;default:P=C}vr(l,P),ee=P;for(q in ee)if(ee.hasOwnProperty(q)){var se=ee[q];q==="style"?De(n,se):q==="dangerouslySetInnerHTML"?(se=se?se.__html:void 0,se!=null&&cr(n,se)):q==="children"?typeof se=="string"?(l!=="textarea"||se!=="")&&de(n,se):typeof se=="number"&&de(n,""+se):q!=="suppressContentEditableWarning"&&q!=="suppressHydrationWarning"&&q!=="autoFocus"&&(o.hasOwnProperty(q)?se!=null&&q==="onScroll"&&xt("scroll",n):se!=null&&m(n,q,se,K))}switch(l){case"input":He(n),Ge(n,C,!1);break;case"textarea":He(n),Ee(n);break;case"option":C.value!=null&&n.setAttribute("value",""+ge(C.value));break;case"select":n.multiple=!!C.multiple,q=C.value,q!=null?Q(n,!!C.multiple,q,!1):C.defaultValue!=null&&Q(n,!!C.multiple,C.defaultValue,!0);break;default:typeof P.onClick=="function"&&(n.onclick=Wl)}switch(l){case"button":case"input":case"select":case"textarea":C=!!C.autoFocus;break e;case"img":C=!0;break e;default:C=!1}}C&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Fn(i),null;case 6:if(n&&i.stateNode!=null)Q2(n,i,n.memoizedProps,C);else{if(typeof C!="string"&&i.stateNode===null)throw Error(t(166));if(l=qo(Du.current),qo(hi.current),Pu(i)){if(C=i.stateNode,l=i.memoizedProps,C[di]=i,(q=C.nodeValue!==l)&&(n=ma,n!==null))switch(n.tag){case 3:Gl(C.nodeValue,l,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&Gl(C.nodeValue,l,(n.mode&1)!==0)}q&&(i.flags|=4)}else C=(l.nodeType===9?l:l.ownerDocument).createTextNode(C),C[di]=i,i.stateNode=C}return Fn(i),null;case 13:if(It(jt),C=i.memoizedState,kt&&na!==null&&(i.mode&1)!==0&&(i.flags&128)===0){for(C=na;C;)C=Ti(C.nextSibling);return Ps(),i.flags|=98560,i}if(C!==null&&C.dehydrated!==null){if(C=Pu(i),n===null){if(!C)throw Error(t(318));if(C=i.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(t(317));C[di]=i}else Ps(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;return Fn(i),null}return Xa!==null&&(ch(Xa),Xa=null),(i.flags&128)!==0?(i.lanes=l,i):(C=C!==null,l=!1,n===null?Pu(i):l=n.memoizedState!==null,C!==l&&C&&(i.child.flags|=8192,(i.mode&1)!==0&&(n===null||(jt.current&1)!==0?on===0&&(on=3):hh())),i.updateQueue!==null&&(i.flags|=4),Fn(i),null);case 4:return js(),Kd(n,i),n===null&&Tu(i.stateNode.containerInfo),Fn(i),null;case 10:return xd(i.type._context),Fn(i),null;case 17:return ta(i.type)&&Yl(),Fn(i),null;case 19:if(It(jt),q=i.memoizedState,q===null)return Fn(i),null;if(C=(i.flags&128)!==0,K=q.rendering,K===null)if(C)Bu(q,!1);else{if(on!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(K=sc(n),K!==null){for(i.flags|=128,Bu(q,!1),C=K.updateQueue,C!==null&&(i.updateQueue=C,i.flags|=4),i.subtreeFlags=0,C=l,l=i.child;l!==null;)q=l,n=C,q.flags&=14680066,K=q.alternate,K===null?(q.childLanes=0,q.lanes=n,q.child=null,q.subtreeFlags=0,q.memoizedProps=null,q.memoizedState=null,q.updateQueue=null,q.dependencies=null,q.stateNode=null):(q.childLanes=K.childLanes,q.lanes=K.lanes,q.child=K.child,q.subtreeFlags=0,q.deletions=null,q.memoizedProps=K.memoizedProps,q.memoizedState=K.memoizedState,q.updateQueue=K.updateQueue,q.type=K.type,n=K.dependencies,q.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),l=l.sibling;return _t(jt,jt.current&1|2),i.child}n=n.sibling}q.tail!==null&&Fr()>Ls&&(i.flags|=128,C=!0,Bu(q,!1),i.lanes=4194304)}else{if(!C)if(n=sc(K),n!==null){if(i.flags|=128,C=!0,l=n.updateQueue,l!==null&&(i.updateQueue=l,i.flags|=4),Bu(q,!0),q.tail===null&&q.tailMode==="hidden"&&!K.alternate&&!kt)return Fn(i),null}else 2*Fr()-q.renderingStartTime>Ls&&l!==1073741824&&(i.flags|=128,C=!0,Bu(q,!1),i.lanes=4194304);q.isBackwards?(K.sibling=i.child,i.child=K):(l=q.last,l!==null?l.sibling=K:i.child=K,q.last=K)}return q.tail!==null?(i=q.tail,q.rendering=i,q.tail=i.sibling,q.renderingStartTime=Fr(),i.sibling=null,l=jt.current,_t(jt,C?l&1|2:l&1),i):(Fn(i),null);case 22:case 23:return dh(),C=i.memoizedState!==null,n!==null&&n.memoizedState!==null!==C&&(i.flags|=8192),C&&(i.mode&1)!==0?(ya&1073741824)!==0&&(Fn(i),i.subtreeFlags&6&&(i.flags|=8192)):Fn(i),null;case 24:return null;case 25:return null}throw Error(t(156,i.tag))}var o$=p.ReactCurrentOwner,aa=!1;function Gn(n,i,l,C){i.child=n===null?E2(i,null,l,C):Ns(i,n.child,l,C)}function ew(n,i,l,C,P){l=l.render;var q=i.ref;return Rs(i,P),C=Bd(n,i,l,C,q,P),l=$d(),n!==null&&!aa?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~P,ji(n,i,P)):(kt&&l&&Od(i),i.flags|=1,Gn(n,i,C,P),i.child)}function rw(n,i,l,C,P){if(n===null){var q=l.type;return typeof q=="function"&&!vh(q)&&q.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(i.tag=15,i.type=q,tw(n,i,q,C,P)):(n=Ac(l.type,null,C,i,i.mode,P),n.ref=i.ref,n.return=i,i.child=n)}if(q=n.child,(n.lanes&P)===0){var K=q.memoizedProps;if(l=l.compare,l=l!==null?l:xu,l(K,C)&&n.ref===i.ref)return ji(n,i,P)}return i.flags|=1,n=ho(q,C),n.ref=i.ref,n.return=i,i.child=n}function tw(n,i,l,C,P){if(n!==null){var q=n.memoizedProps;if(xu(q,C)&&n.ref===i.ref)if(aa=!1,i.pendingProps=C=q,(n.lanes&P)!==0)(n.flags&131072)!==0&&(aa=!0);else return i.lanes=n.lanes,ji(n,i,P)}return Yd(n,i,l,C,P)}function nw(n,i,l){var C=i.pendingProps,P=C.children,q=n!==null?n.memoizedState:null;if(C.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},_t(Ds,ya),ya|=l;else if((l&1073741824)!==0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},C=q!==null?q.baseLanes:l,_t(Ds,ya),ya|=C;else return n=q!==null?q.baseLanes|l:l,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:n,cachePool:null,transitions:null},i.updateQueue=null,_t(Ds,ya),ya|=n,null;else q!==null?(C=q.baseLanes|l,i.memoizedState=null):C=l,_t(Ds,ya),ya|=C;return Gn(n,i,P,l),i.child}function aw(n,i){var l=i.ref;(n===null&&l!==null||n!==null&&n.ref!==l)&&(i.flags|=512,i.flags|=2097152)}function Yd(n,i,l,C,P){var q=ta(l)?Po:Mn.current;return q=As(i,q),Rs(i,P),l=Bd(n,i,l,C,q,P),C=$d(),n!==null&&!aa?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~P,ji(n,i,P)):(kt&&C&&Od(i),i.flags|=1,Gn(n,i,l,P),i.child)}function iw(n,i,l,C,P){if(ta(l)){var q=!0;Jl(i)}else q=!1;if(Rs(i,P),i.stateNode===null)n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2),p2(i,l,C),Rd(i,l,C,P),C=!0;else if(n===null){var K=i.stateNode,ee=i.memoizedProps;K.props=ee;var se=K.context,we=l.contextType;typeof we=="object"&&we!==null?we=ka(we):(we=ta(l)?Po:Mn.current,we=As(i,we));var $e=l.getDerivedStateFromProps,dr=typeof $e=="function"||typeof K.getSnapshotBeforeUpdate=="function";dr||typeof K.UNSAFE_componentWillReceiveProps!="function"&&typeof K.componentWillReceiveProps!="function"||(ee!==C||se!==we)&&g2(i,K,C,we),io=!1;var qe=i.memoizedState;K.state=qe,tc(i,C,K,P),se=i.memoizedState,ee!==C||qe!==se||ra.current||io?(typeof $e=="function"&&(Td(i,l,$e,C),se=i.memoizedState),(ee=io||v2(i,l,ee,C,qe,se,we))?(dr||typeof K.UNSAFE_componentWillMount!="function"&&typeof K.componentWillMount!="function"||(typeof K.componentWillMount=="function"&&K.componentWillMount(),typeof K.UNSAFE_componentWillMount=="function"&&K.UNSAFE_componentWillMount()),typeof K.componentDidMount=="function"&&(i.flags|=4194308)):(typeof K.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=C,i.memoizedState=se),K.props=C,K.state=se,K.context=we,C=ee):(typeof K.componentDidMount=="function"&&(i.flags|=4194308),C=!1)}else{K=i.stateNode,c2(n,i),ee=i.memoizedProps,we=i.type===i.elementType?ee:Ya(i.type,ee),K.props=we,dr=i.pendingProps,qe=K.context,se=l.contextType,typeof se=="object"&&se!==null?se=ka(se):(se=ta(l)?Po:Mn.current,se=As(i,se));var pr=l.getDerivedStateFromProps;($e=typeof pr=="function"||typeof K.getSnapshotBeforeUpdate=="function")||typeof K.UNSAFE_componentWillReceiveProps!="function"&&typeof K.componentWillReceiveProps!="function"||(ee!==dr||qe!==se)&&g2(i,K,C,se),io=!1,qe=i.memoizedState,K.state=qe,tc(i,C,K,P);var fr=i.memoizedState;ee!==dr||qe!==fr||ra.current||io?(typeof pr=="function"&&(Td(i,l,pr,C),fr=i.memoizedState),(we=io||v2(i,l,we,C,qe,fr,se)||!1)?($e||typeof K.UNSAFE_componentWillUpdate!="function"&&typeof K.componentWillUpdate!="function"||(typeof K.componentWillUpdate=="function"&&K.componentWillUpdate(C,fr,se),typeof K.UNSAFE_componentWillUpdate=="function"&&K.UNSAFE_componentWillUpdate(C,fr,se)),typeof K.componentDidUpdate=="function"&&(i.flags|=4),typeof K.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof K.componentDidUpdate!="function"||ee===n.memoizedProps&&qe===n.memoizedState||(i.flags|=4),typeof K.getSnapshotBeforeUpdate!="function"||ee===n.memoizedProps&&qe===n.memoizedState||(i.flags|=1024),i.memoizedProps=C,i.memoizedState=fr),K.props=C,K.state=fr,K.context=se,C=we):(typeof K.componentDidUpdate!="function"||ee===n.memoizedProps&&qe===n.memoizedState||(i.flags|=4),typeof K.getSnapshotBeforeUpdate!="function"||ee===n.memoizedProps&&qe===n.memoizedState||(i.flags|=1024),C=!1)}return Jd(n,i,l,C,q,P)}function Jd(n,i,l,C,P,q){aw(n,i);var K=(i.flags&128)!==0;if(!C&&!K)return P&&u2(i,l,!1),ji(n,i,q);C=i.stateNode,o$.current=i;var ee=K&&typeof l.getDerivedStateFromError!="function"?null:C.render();return i.flags|=1,n!==null&&K?(i.child=Ns(i,n.child,null,q),i.child=Ns(i,null,ee,q)):Gn(n,i,ee,q),i.memoizedState=C.state,P&&u2(i,l,!0),i.child}function ow(n){var i=n.stateNode;i.pendingContext?o2(n,i.pendingContext,i.pendingContext!==i.context):i.context&&o2(n,i.context,!1),qd(n,i.containerInfo)}function sw(n,i,l,C,P){return Ps(),jd(P),i.flags|=256,Gn(n,i,l,C),i.child}var hc={dehydrated:null,treeContext:null,retryLane:0};function vc(n){return{baseLanes:n,cachePool:null,transitions:null}}function uw(n,i){return{baseLanes:n.baseLanes|i,cachePool:null,transitions:n.transitions}}function lw(n,i,l){var C=i.pendingProps,P=jt.current,q=!1,K=(i.flags&128)!==0,ee;if((ee=K)||(ee=n!==null&&n.memoizedState===null?!1:(P&2)!==0),ee?(q=!0,i.flags&=-129):(n===null||n.memoizedState!==null)&&(P|=1),_t(jt,P&1),n===null)return Nd(i),n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((i.mode&1)===0?i.lanes=1:n.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(P=C.children,n=C.fallback,q?(C=i.mode,q=i.child,P={mode:"hidden",children:P},(C&1)===0&&q!==null?(q.childLanes=0,q.pendingProps=P):q=Tc(P,C,0,null),n=Bo(n,C,l,null),q.return=i,n.return=i,q.sibling=n,i.child=q,i.child.memoizedState=vc(l),i.memoizedState=hc,n):Xd(i,P));if(P=n.memoizedState,P!==null){if(ee=P.dehydrated,ee!==null){if(K)return i.flags&256?(i.flags&=-257,pc(n,i,l,Error(t(422)))):i.memoizedState!==null?(i.child=n.child,i.flags|=128,null):(q=C.fallback,P=i.mode,C=Tc({mode:"visible",children:C.children},P,0,null),q=Bo(q,P,l,null),q.flags|=2,C.return=i,q.return=i,C.sibling=q,i.child=C,(i.mode&1)!==0&&Ns(i,n.child,null,l),i.child.memoizedState=vc(l),i.memoizedState=hc,q);if((i.mode&1)===0)i=pc(n,i,l,null);else if(ee.data==="$!")i=pc(n,i,l,Error(t(419)));else if(C=(l&n.childLanes)!==0,aa||C){if(C=an,C!==null){switch(l&-l){case 4:q=2;break;case 16:q=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:q=32;break;case 536870912:q=268435456;break;default:q=0}C=(q&(C.suspendedLanes|l))!==0?0:q,C!==0&&C!==P.retryLane&&(P.retryLane=C,Da(n,C,-1))}hh(),i=pc(n,i,l,Error(t(421)))}else ee.data==="$?"?(i.flags|=128,i.child=n.child,i=y$.bind(null,n),ee._reactRetry=i,i=null):(l=P.treeContext,na=Ti(ee.nextSibling),ma=i,kt=!0,Xa=null,l!==null&&(Pa[Na++]=Pi,Pa[Na++]=Ni,Pa[Na++]=No,Pi=l.id,Ni=l.overflow,No=i),i=Xd(i,i.pendingProps.children),i.flags|=4096);return i}return q?(C=fw(n,i,C.children,C.fallback,l),q=i.child,P=n.child.memoizedState,q.memoizedState=P===null?vc(l):uw(P,l),q.childLanes=n.childLanes&~l,i.memoizedState=hc,C):(l=cw(n,i,C.children,l),i.memoizedState=null,l)}return q?(C=fw(n,i,C.children,C.fallback,l),q=i.child,P=n.child.memoizedState,q.memoizedState=P===null?vc(l):uw(P,l),q.childLanes=n.childLanes&~l,i.memoizedState=hc,C):(l=cw(n,i,C.children,l),i.memoizedState=null,l)}function Xd(n,i){return i=Tc({mode:"visible",children:i},n.mode,0,null),i.return=n,n.child=i}function cw(n,i,l,C){var P=n.child;return n=P.sibling,l=ho(P,{mode:"visible",children:l}),(i.mode&1)===0&&(l.lanes=C),l.return=i,l.sibling=null,n!==null&&(C=i.deletions,C===null?(i.deletions=[n],i.flags|=16):C.push(n)),i.child=l}function fw(n,i,l,C,P){var q=i.mode;n=n.child;var K=n.sibling,ee={mode:"hidden",children:l};return(q&1)===0&&i.child!==n?(l=i.child,l.childLanes=0,l.pendingProps=ee,i.deletions=null):(l=ho(n,ee),l.subtreeFlags=n.subtreeFlags&14680064),K!==null?C=ho(K,C):(C=Bo(C,q,P,null),C.flags|=2),C.return=i,l.return=i,l.sibling=C,i.child=l,C}function pc(n,i,l,C){return C!==null&&jd(C),Ns(i,n.child,null,l),n=Xd(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function dw(n,i,l){n.lanes|=i;var C=n.alternate;C!==null&&(C.lanes|=i),Id(n.return,i,l)}function Qd(n,i,l,C,P){var q=n.memoizedState;q===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:C,tail:l,tailMode:P}:(q.isBackwards=i,q.rendering=null,q.renderingStartTime=0,q.last=C,q.tail=l,q.tailMode=P)}function hw(n,i,l){var C=i.pendingProps,P=C.revealOrder,q=C.tail;if(Gn(n,i,C.children,l),C=jt.current,(C&2)!==0)C=C&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&dw(n,l,i);else if(n.tag===19)dw(n,l,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}C&=1}if(_t(jt,C),(i.mode&1)===0)i.memoizedState=null;else switch(P){case"forwards":for(l=i.child,P=null;l!==null;)n=l.alternate,n!==null&&sc(n)===null&&(P=l),l=l.sibling;l=P,l===null?(P=i.child,i.child=null):(P=l.sibling,l.sibling=null),Qd(i,!1,P,l,q);break;case"backwards":for(l=null,P=i.child,i.child=null;P!==null;){if(n=P.alternate,n!==null&&sc(n)===null){i.child=P;break}n=P.sibling,P.sibling=l,l=P,P=n}Qd(i,!0,l,null,q);break;case"together":Qd(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function ji(n,i,l){if(n!==null&&(i.dependencies=n.dependencies),Lo|=i.lanes,(l&i.childLanes)===0)return null;if(n!==null&&i.child!==n.child)throw Error(t(153));if(i.child!==null){for(n=i.child,l=ho(n,n.pendingProps),i.child=l,l.return=i;n.sibling!==null;)n=n.sibling,l=l.sibling=ho(n,n.pendingProps),l.return=i;l.sibling=null}return i.child}function s$(n,i,l){switch(i.tag){case 3:ow(i),Ps();break;case 5:C2(i);break;case 1:ta(i.type)&&Jl(i);break;case 4:qd(i,i.stateNode.containerInfo);break;case 10:var C=i.type._context,P=i.memoizedProps.value;_t(Ql,C._currentValue),C._currentValue=P;break;case 13:if(C=i.memoizedState,C!==null)return C.dehydrated!==null?(_t(jt,jt.current&1),i.flags|=128,null):(l&i.child.childLanes)!==0?lw(n,i,l):(_t(jt,jt.current&1),n=ji(n,i,l),n!==null?n.sibling:null);_t(jt,jt.current&1);break;case 19:if(C=(l&i.childLanes)!==0,(n.flags&128)!==0){if(C)return hw(n,i,l);i.flags|=128}if(P=i.memoizedState,P!==null&&(P.rendering=null,P.tail=null,P.lastEffect=null),_t(jt,jt.current),C)break;return null;case 22:case 23:return i.lanes=0,nw(n,i,l)}return ji(n,i,l)}function u$(n,i){switch(kd(i),i.tag){case 1:return ta(i.type)&&Yl(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return js(),It(ra),It(Mn),Md(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 5:return Dd(i),null;case 13:if(It(jt),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(t(340));Ps()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return It(jt),null;case 4:return js(),null;case 10:return xd(i.type._context),null;case 22:case 23:return dh(),null;case 24:return null;default:return null}}var gc=!1,Bn=!1,l$=typeof WeakSet=="function"?WeakSet:Set,yr=null;function qs(n,i){var l=n.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(C){$t(n,i,C)}else l.current=null}function eh(n,i,l){try{l()}catch(C){$t(n,i,C)}}var vw=!1;function c$(n,i){if(pd=X,n=ZS(),sd(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var C=l.getSelection&&l.getSelection();if(C&&C.rangeCount!==0){l=C.anchorNode;var P=C.anchorOffset,q=C.focusNode;C=C.focusOffset;try{l.nodeType,q.nodeType}catch{l=null;break e}var K=0,ee=-1,se=-1,we=0,$e=0,dr=n,qe=null;r:for(;;){for(var pr;dr!==l||P!==0&&dr.nodeType!==3||(ee=K+P),dr!==q||C!==0&&dr.nodeType!==3||(se=K+C),dr.nodeType===3&&(K+=dr.nodeValue.length),(pr=dr.firstChild)!==null;)qe=dr,dr=pr;for(;;){if(dr===n)break r;if(qe===l&&++we===P&&(ee=K),qe===q&&++$e===C&&(se=K),(pr=dr.nextSibling)!==null)break;dr=qe,qe=dr.parentNode}dr=pr}l=ee===-1||se===-1?null:{start:ee,end:se}}else l=null}l=l||{start:0,end:0}}else l=null;for(gd={focusedElem:n,selectionRange:l},X=!1,yr=i;yr!==null;)if(i=yr,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,yr=n;else for(;yr!==null;){i=yr;try{var fr=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(fr!==null){var Br=fr.memoizedProps,Wt=fr.memoizedState,be=i.stateNode,ue=be.getSnapshotBeforeUpdate(i.elementType===i.type?Br:Ya(i.type,Br),Wt);be.__reactInternalSnapshotBeforeUpdate=ue}break;case 3:var Se=i.stateNode.containerInfo;if(Se.nodeType===1)Se.textContent="";else if(Se.nodeType===9){var tr=Se.body;tr!=null&&(tr.textContent="")}break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(Sr){$t(i,i.return,Sr)}if(n=i.sibling,n!==null){n.return=i.return,yr=n;break}yr=i.return}return fr=vw,vw=!1,fr}function $u(n,i,l){var C=i.updateQueue;if(C=C!==null?C.lastEffect:null,C!==null){var P=C=C.next;do{if((P.tag&n)===n){var q=P.destroy;P.destroy=void 0,q!==void 0&&eh(i,l,q)}P=P.next}while(P!==C)}}function mc(n,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var l=i=i.next;do{if((l.tag&n)===n){var C=l.create;l.destroy=C()}l=l.next}while(l!==i)}}function rh(n){var i=n.ref;if(i!==null){var l=n.stateNode;switch(n.tag){case 5:n=l;break;default:n=l}typeof i=="function"?i(n):i.current=n}}function pw(n){var i=n.alternate;i!==null&&(n.alternate=null,pw(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&(delete i[di],delete i[Ou],delete i[_d],delete i[GB],delete i[WB])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function gw(n){return n.tag===5||n.tag===3||n.tag===4}function mw(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||gw(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function th(n,i,l){var C=n.tag;if(C===5||C===6)n=n.stateNode,i?l.nodeType===8?l.parentNode.insertBefore(n,i):l.insertBefore(n,i):(l.nodeType===8?(i=l.parentNode,i.insertBefore(n,l)):(i=l,i.appendChild(n)),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=Wl));else if(C!==4&&(n=n.child,n!==null))for(th(n,i,l),n=n.sibling;n!==null;)th(n,i,l),n=n.sibling}function nh(n,i,l){var C=n.tag;if(C===5||C===6)n=n.stateNode,i?l.insertBefore(n,i):l.appendChild(n);else if(C!==4&&(n=n.child,n!==null))for(nh(n,i,l),n=n.sibling;n!==null;)nh(n,i,l),n=n.sibling}var En=null,Qa=!1;function so(n,i,l){for(l=l.child;l!==null;)yw(n,i,l),l=l.sibling}function yw(n,i,l){if(Vn&&typeof Vn.onCommitFiberUnmount=="function")try{Vn.onCommitFiberUnmount(wi,l)}catch{}switch(l.tag){case 5:Bn||qs(l,i);case 6:var C=En,P=Qa;En=null,so(n,i,l),En=C,Qa=P,En!==null&&(Qa?(n=En,l=l.stateNode,n.nodeType===8?n.parentNode.removeChild(l):n.removeChild(l)):En.removeChild(l.stateNode));break;case 18:En!==null&&(Qa?(n=En,l=l.stateNode,n.nodeType===8?bd(n.parentNode,l):n.nodeType===1&&bd(n,l),z(n)):bd(En,l.stateNode));break;case 4:C=En,P=Qa,En=l.stateNode.containerInfo,Qa=!0,so(n,i,l),En=C,Qa=P;break;case 0:case 11:case 14:case 15:if(!Bn&&(C=l.updateQueue,C!==null&&(C=C.lastEffect,C!==null))){P=C=C.next;do{var q=P,K=q.destroy;q=q.tag,K!==void 0&&((q&2)!==0||(q&4)!==0)&&eh(l,i,K),P=P.next}while(P!==C)}so(n,i,l);break;case 1:if(!Bn&&(qs(l,i),C=l.stateNode,typeof C.componentWillUnmount=="function"))try{C.props=l.memoizedProps,C.state=l.memoizedState,C.componentWillUnmount()}catch(ee){$t(l,i,ee)}so(n,i,l);break;case 21:so(n,i,l);break;case 22:l.mode&1?(Bn=(C=Bn)||l.memoizedState!==null,so(n,i,l),Bn=C):so(n,i,l);break;default:so(n,i,l)}}function bw(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var l=n.stateNode;l===null&&(l=n.stateNode=new l$),i.forEach(function(C){var P=b$.bind(null,n,C);l.has(C)||(l.add(C),C.then(P,P))})}}function ei(n,i){var l=i.deletions;if(l!==null)for(var C=0;C<l.length;C++){var P=l[C];try{var q=n,K=i,ee=K;e:for(;ee!==null;){switch(ee.tag){case 5:En=ee.stateNode,Qa=!1;break e;case 3:En=ee.stateNode.containerInfo,Qa=!0;break e;case 4:En=ee.stateNode.containerInfo,Qa=!0;break e}ee=ee.return}if(En===null)throw Error(t(160));yw(q,K,P),En=null,Qa=!1;var se=P.alternate;se!==null&&(se.return=null),P.return=null}catch(we){$t(P,i,we)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)_w(i,n),i=i.sibling}function _w(n,i){var l=n.alternate,C=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(ei(i,n),pi(n),C&4){try{$u(3,n,n.return),mc(3,n)}catch(fr){$t(n,n.return,fr)}try{$u(5,n,n.return)}catch(fr){$t(n,n.return,fr)}}break;case 1:ei(i,n),pi(n),C&512&&l!==null&&qs(l,l.return);break;case 5:if(ei(i,n),pi(n),C&512&&l!==null&&qs(l,l.return),n.flags&32){var P=n.stateNode;try{de(P,"")}catch(fr){$t(n,n.return,fr)}}if(C&4&&(P=n.stateNode,P!=null)){var q=n.memoizedProps,K=l!==null?l.memoizedProps:q,ee=n.type,se=n.updateQueue;if(n.updateQueue=null,se!==null)try{ee==="input"&&q.type==="radio"&&q.name!=null&&lr(P,q),$r(ee,K);var we=$r(ee,q);for(K=0;K<se.length;K+=2){var $e=se[K],dr=se[K+1];$e==="style"?De(P,dr):$e==="dangerouslySetInnerHTML"?cr(P,dr):$e==="children"?de(P,dr):m(P,$e,dr,we)}switch(ee){case"input":Ve(P,q);break;case"textarea":le(P,q);break;case"select":var qe=P._wrapperState.wasMultiple;P._wrapperState.wasMultiple=!!q.multiple;var pr=q.value;pr!=null?Q(P,!!q.multiple,pr,!1):qe!==!!q.multiple&&(q.defaultValue!=null?Q(P,!!q.multiple,q.defaultValue,!0):Q(P,!!q.multiple,q.multiple?[]:"",!1))}P[Ou]=q}catch(fr){$t(n,n.return,fr)}}break;case 6:if(ei(i,n),pi(n),C&4){if(n.stateNode===null)throw Error(t(162));we=n.stateNode,$e=n.memoizedProps;try{we.nodeValue=$e}catch(fr){$t(n,n.return,fr)}}break;case 3:if(ei(i,n),pi(n),C&4&&l!==null&&l.memoizedState.isDehydrated)try{z(i.containerInfo)}catch(fr){$t(n,n.return,fr)}break;case 4:ei(i,n),pi(n);break;case 13:ei(i,n),pi(n),we=n.child,we.flags&8192&&we.memoizedState!==null&&(we.alternate===null||we.alternate.memoizedState===null)&&(oh=Fr()),C&4&&bw(n);break;case 22:if(we=l!==null&&l.memoizedState!==null,n.mode&1?(Bn=($e=Bn)||we,ei(i,n),Bn=$e):ei(i,n),pi(n),C&8192){$e=n.memoizedState!==null;e:for(dr=null,qe=n;;){if(qe.tag===5){if(dr===null){dr=qe;try{P=qe.stateNode,$e?(q=P.style,typeof q.setProperty=="function"?q.setProperty("display","none","important"):q.display="none"):(ee=qe.stateNode,se=qe.memoizedProps.style,K=se!=null&&se.hasOwnProperty("display")?se.display:null,ee.style.display=Oe("display",K))}catch(fr){$t(n,n.return,fr)}}}else if(qe.tag===6){if(dr===null)try{qe.stateNode.nodeValue=$e?"":qe.memoizedProps}catch(fr){$t(n,n.return,fr)}}else if((qe.tag!==22&&qe.tag!==23||qe.memoizedState===null||qe===n)&&qe.child!==null){qe.child.return=qe,qe=qe.child;continue}if(qe===n)break e;for(;qe.sibling===null;){if(qe.return===null||qe.return===n)break e;dr===qe&&(dr=null),qe=qe.return}dr===qe&&(dr=null),qe.sibling.return=qe.return,qe=qe.sibling}if($e&&!we&&(n.mode&1)!==0)for(yr=n,n=n.child;n!==null;){for(we=yr=n;yr!==null;){switch($e=yr,dr=$e.child,$e.tag){case 0:case 11:case 14:case 15:$u(4,$e,$e.return);break;case 1:if(qs($e,$e.return),q=$e.stateNode,typeof q.componentWillUnmount=="function"){qe=$e,pr=$e.return;try{P=qe,q.props=P.memoizedProps,q.state=P.memoizedState,q.componentWillUnmount()}catch(fr){$t(qe,pr,fr)}}break;case 5:qs($e,$e.return);break;case 22:if($e.memoizedState!==null){Ew(we);continue}}dr!==null?(dr.return=$e,yr=dr):Ew(we)}n=n.sibling}}break;case 19:ei(i,n),pi(n),C&4&&bw(n);break;case 21:break;default:ei(i,n),pi(n)}}function pi(n){var i=n.flags;if(i&2){try{e:{for(var l=n.return;l!==null;){if(gw(l)){var C=l;break e}l=l.return}throw Error(t(160))}switch(C.tag){case 5:var P=C.stateNode;C.flags&32&&(de(P,""),C.flags&=-33);var q=mw(n);nh(n,q,P);break;case 3:case 4:var K=C.stateNode.containerInfo,ee=mw(n);th(n,ee,K);break;default:throw Error(t(161))}}catch(se){$t(n,n.return,se)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function f$(n,i,l){yr=n,Sw(n)}function Sw(n,i,l){for(var C=(n.mode&1)!==0;yr!==null;){var P=yr,q=P.child;if(P.tag===22&&C){var K=P.memoizedState!==null||gc;if(!K){var ee=P.alternate,se=ee!==null&&ee.memoizedState!==null||Bn;ee=gc;var we=Bn;if(gc=K,(Bn=se)&&!we)for(yr=P;yr!==null;)K=yr,se=K.child,K.tag===22&&K.memoizedState!==null?Cw(P):se!==null?(se.return=K,yr=se):Cw(P);for(;q!==null;)yr=q,Sw(q),q=q.sibling;yr=P,gc=ee,Bn=we}ww(n)}else(P.subtreeFlags&8772)!==0&&q!==null?(q.return=P,yr=q):ww(n)}}function ww(n){for(;yr!==null;){var i=yr;if((i.flags&8772)!==0){var l=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:Bn||mc(5,i);break;case 1:var C=i.stateNode;if(i.flags&4&&!Bn)if(l===null)C.componentDidMount();else{var P=i.elementType===i.type?l.memoizedProps:Ya(i.type,l.memoizedProps);C.componentDidUpdate(P,l.memoizedState,C.__reactInternalSnapshotBeforeUpdate)}var q=i.updateQueue;q!==null&&d2(i,q,C);break;case 3:var K=i.updateQueue;if(K!==null){if(l=null,i.child!==null)switch(i.child.tag){case 5:l=i.child.stateNode;break;case 1:l=i.child.stateNode}d2(i,K,l)}break;case 5:var ee=i.stateNode;if(l===null&&i.flags&4){l=ee;var se=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":se.autoFocus&&l.focus();break;case"img":se.src&&(l.src=se.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var we=i.alternate;if(we!==null){var $e=we.memoizedState;if($e!==null){var dr=$e.dehydrated;dr!==null&&z(dr)}}}break;case 19:case 17:case 21:case 22:case 23:break;default:throw Error(t(163))}Bn||i.flags&512&&rh(i)}catch(qe){$t(i,i.return,qe)}}if(i===n){yr=null;break}if(l=i.sibling,l!==null){l.return=i.return,yr=l;break}yr=i.return}}function Ew(n){for(;yr!==null;){var i=yr;if(i===n){yr=null;break}var l=i.sibling;if(l!==null){l.return=i.return,yr=l;break}yr=i.return}}function Cw(n){for(;yr!==null;){var i=yr;try{switch(i.tag){case 0:case 11:case 15:var l=i.return;try{mc(4,i)}catch(se){$t(i,l,se)}break;case 1:var C=i.stateNode;if(typeof C.componentDidMount=="function"){var P=i.return;try{C.componentDidMount()}catch(se){$t(i,P,se)}}var q=i.return;try{rh(i)}catch(se){$t(i,q,se)}break;case 5:var K=i.return;try{rh(i)}catch(se){$t(i,K,se)}}}catch(se){$t(i,i.return,se)}if(i===n){yr=null;break}var ee=i.sibling;if(ee!==null){ee.return=i.return,yr=ee;break}yr=i.return}}var d$=Math.ceil,yc=p.ReactCurrentDispatcher,ah=p.ReactCurrentOwner,qa=p.ReactCurrentBatchConfig,at=0,an=null,Xt=null,Cn=0,ya=0,Ds=to(0),on=0,zu=null,Lo=0,bc=0,ih=0,Zu=null,ia=null,oh=0,Ls=1/0,qi=null,_c=!1,sh=null,uo=null,Sc=!1,lo=null,wc=0,Hu=0,uh=null,Ec=-1,Cc=0;function Wn(){return(at&6)!==0?Fr():Ec!==-1?Ec:Ec=Fr()}function co(n){return(n.mode&1)===0?1:(at&2)!==0&&Cn!==0?Cn&-Cn:YB.transition!==null?(Cc===0&&(Cc=si()),Cc):(n=ct,n!==0||(n=window.event,n=n===void 0?16:Ie(n.type)),n)}function Da(n,i,l){if(50<Hu)throw Hu=0,uh=null,Error(t(185));var C=xc(n,i);return C===null?null:(bn(C,i,l),((at&2)===0||C!==an)&&(C===an&&((at&2)===0&&(bc|=i),on===4&&fo(C,Cn)),oa(C,l),i===1&&at===0&&(n.mode&1)===0&&(Ls=Fr()+500,Xl&&ao())),C)}function xc(n,i){n.lanes|=i;var l=n.alternate;for(l!==null&&(l.lanes|=i),l=n,n=n.return;n!==null;)n.childLanes|=i,l=n.alternate,l!==null&&(l.childLanes|=i),l=n,n=n.return;return l.tag===3?l.stateNode:null}function xw(n){return(an!==null||Ja!==null)&&(n.mode&1)!==0&&(at&2)===0}function oa(n,i){var l=n.callbackNode;yu(n,i);var C=Ji(n,n===an?Cn:0);if(C===0)l!==null&&kr(l),n.callbackNode=null,n.callbackPriority=0;else if(i=C&-C,n.callbackPriority!==i){if(l!=null&&kr(l),i===1)n.tag===0?KB(Aw.bind(null,n)):l2(Aw.bind(null,n)),HB(function(){at===0&&ao()}),l=null;else{switch(Ci(C)){case 1:l=fn;break;case 4:l=ze;break;case 16:l=Et;break;case 536870912:l=oi;break;default:l=Et}l=qw(l,Iw.bind(null,n))}n.callbackPriority=i,n.callbackNode=l}}function Iw(n,i){if(Ec=-1,Cc=0,(at&6)!==0)throw Error(t(327));var l=n.callbackNode;if(Ms()&&n.callbackNode!==l)return null;var C=Ji(n,n===an?Cn:0);if(C===0)return null;if((C&30)!==0||(C&n.expiredLanes)!==0||i)i=Ic(n,C);else{i=C;var P=at;at|=2;var q=Rw();(an!==n||Cn!==i)&&(qi=null,Ls=Fr()+500,Uo(n,i));do try{p$();break}catch(ee){Tw(n,ee)}while(!0);Cd(),yc.current=q,at=P,Xt!==null?i=0:(an=null,Cn=0,i=on)}if(i!==0){if(i===2&&(P=Ro(n),P!==0&&(C=P,i=lh(n,P))),i===1)throw l=zu,Uo(n,0),fo(n,C),oa(n,Fr()),l;if(i===6)fo(n,C);else{if(P=n.current.alternate,(C&30)===0&&!h$(P)&&(i=Ic(n,C),i===2&&(q=Ro(n),q!==0&&(C=q,i=lh(n,q))),i===1))throw l=zu,Uo(n,0),fo(n,C),oa(n,Fr()),l;switch(n.finishedWork=P,n.finishedLanes=C,i){case 0:case 1:throw Error(t(345));case 2:Fo(n,ia,qi);break;case 3:if(fo(n,C),(C&130023424)===C&&(i=oh+500-Fr(),10<i)){if(Ji(n,0)!==0)break;if(P=n.suspendedLanes,(P&C)!==C){Wn(),n.pingedLanes|=n.suspendedLanes&P;break}n.timeoutHandle=yd(Fo.bind(null,n,ia,qi),i);break}Fo(n,ia,qi);break;case 4:if(fo(n,C),(C&4194240)===C)break;for(i=n.eventTimes,P=-1;0<C;){var K=31-Dn(C);q=1<<K,K=i[K],K>P&&(P=K),C&=~q}if(C=P,C=Fr()-C,C=(120>C?120:480>C?480:1080>C?1080:1920>C?1920:3e3>C?3e3:4320>C?4320:1960*d$(C/1960))-C,10<C){n.timeoutHandle=yd(Fo.bind(null,n,ia,qi),C);break}Fo(n,ia,qi);break;case 5:Fo(n,ia,qi);break;default:throw Error(t(329))}}}return oa(n,Fr()),n.callbackNode===l?Iw.bind(null,n):null}function lh(n,i){var l=Zu;return n.current.memoizedState.isDehydrated&&(Uo(n,i).flags|=256),n=Ic(n,i),n!==2&&(i=ia,ia=l,i!==null&&ch(i)),n}function ch(n){ia===null?ia=n:ia.push.apply(ia,n)}function h$(n){for(var i=n;;){if(i.flags&16384){var l=i.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var C=0;C<l.length;C++){var P=l[C],q=P.getSnapshot;P=P.value;try{if(!Ka(q(),P))return!1}catch{return!1}}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function fo(n,i){for(i&=~ih,i&=~bc,n.suspendedLanes|=i,n.pingedLanes&=~i,n=n.expirationTimes;0<i;){var l=31-Dn(i),C=1<<l;n[l]=-1,i&=~C}}function Aw(n){if((at&6)!==0)throw Error(t(327));Ms();var i=Ji(n,0);if((i&1)===0)return oa(n,Fr()),null;var l=Ic(n,i);if(n.tag!==0&&l===2){var C=Ro(n);C!==0&&(i=C,l=lh(n,C))}if(l===1)throw l=zu,Uo(n,0),fo(n,i),oa(n,Fr()),l;if(l===6)throw Error(t(345));return n.finishedWork=n.current.alternate,n.finishedLanes=i,Fo(n,ia,qi),oa(n,Fr()),null}function fh(n,i){var l=at;at|=1;try{return n(i)}finally{at=l,at===0&&(Ls=Fr()+500,Xl&&ao())}}function Mo(n){lo!==null&&lo.tag===0&&(at&6)===0&&Ms();var i=at;at|=1;var l=qa.transition,C=ct;try{if(qa.transition=null,ct=1,n)return n()}finally{ct=C,qa.transition=l,at=i,(at&6)===0&&ao()}}function dh(){ya=Ds.current,It(Ds)}function Uo(n,i){n.finishedWork=null,n.finishedLanes=0;var l=n.timeoutHandle;if(l!==-1&&(n.timeoutHandle=-1,ZB(l)),Xt!==null)for(l=Xt.return;l!==null;){var C=l;switch(kd(C),C.tag){case 1:C=C.type.childContextTypes,C!=null&&Yl();break;case 3:js(),It(ra),It(Mn),Md();break;case 5:Dd(C);break;case 4:js();break;case 13:It(jt);break;case 19:It(jt);break;case 10:xd(C.type._context);break;case 22:case 23:dh()}l=l.return}if(an=n,Xt=n=ho(n.current,null),Cn=ya=i,on=0,zu=null,ih=bc=Lo=0,ia=Zu=null,Ja!==null){for(i=0;i<Ja.length;i++)if(l=Ja[i],C=l.interleaved,C!==null){l.interleaved=null;var P=C.next,q=l.pending;if(q!==null){var K=q.next;q.next=P,C.next=K}l.pending=C}Ja=null}return n}function Tw(n,i){do{var l=Xt;try{if(Cd(),uc.current=dc,lc){for(var C=qt.memoizedState;C!==null;){var P=C.queue;P!==null&&(P.pending=null),C=C.next}lc=!1}if(Do=0,hn=nn=qt=null,Lu=!1,Mu=0,ah.current=null,l===null||l.return===null){on=1,zu=i,Xt=null;break}e:{var q=n,K=l.return,ee=l,se=i;if(i=Cn,ee.flags|=32768,se!==null&&typeof se=="object"&&typeof se.then=="function"){var we=se,$e=ee,dr=$e.tag;if(($e.mode&1)===0&&(dr===0||dr===11||dr===15)){var qe=$e.alternate;qe?($e.updateQueue=qe.updateQueue,$e.memoizedState=qe.memoizedState,$e.lanes=qe.lanes):($e.updateQueue=null,$e.memoizedState=null)}var pr=K2(K);if(pr!==null){pr.flags&=-257,Y2(pr,K,ee,q,i),pr.mode&1&&W2(q,we,i),i=pr,se=we;var fr=i.updateQueue;if(fr===null){var Br=new Set;Br.add(se),i.updateQueue=Br}else fr.add(se);break e}else{if((i&1)===0){W2(q,we,i),hh();break e}se=Error(t(426))}}else if(kt&&ee.mode&1){var Wt=K2(K);if(Wt!==null){(Wt.flags&65536)===0&&(Wt.flags|=256),Y2(Wt,K,ee,q,i),jd(se);break e}}q=se,on!==4&&(on=2),Zu===null?Zu=[q]:Zu.push(q),se=Gd(se,ee),ee=K;do{switch(ee.tag){case 3:ee.flags|=65536,i&=-i,ee.lanes|=i;var be=V2(ee,se,i);f2(ee,be);break e;case 1:q=se;var ue=ee.type,Se=ee.stateNode;if((ee.flags&128)===0&&(typeof ue.getDerivedStateFromError=="function"||Se!==null&&typeof Se.componentDidCatch=="function"&&(uo===null||!uo.has(Se)))){ee.flags|=65536,i&=-i,ee.lanes|=i;var tr=G2(ee,q,i);f2(ee,tr);break e}}ee=ee.return}while(ee!==null)}kw(l)}catch(Sr){i=Sr,Xt===l&&l!==null&&(Xt=l=l.return);continue}break}while(!0)}function Rw(){var n=yc.current;return yc.current=dc,n===null?dc:n}function hh(){(on===0||on===3||on===2)&&(on=4),an===null||(Lo&268435455)===0&&(bc&268435455)===0||fo(an,Cn)}function Ic(n,i){var l=at;at|=2;var C=Rw();(an!==n||Cn!==i)&&(qi=null,Uo(n,i));do try{v$();break}catch(P){Tw(n,P)}while(!0);if(Cd(),at=l,yc.current=C,Xt!==null)throw Error(t(261));return an=null,Cn=0,on}function v$(){for(;Xt!==null;)Ow(Xt)}function p$(){for(;Xt!==null&&!mr();)Ow(Xt)}function Ow(n){var i=jw(n.alternate,n,ya);n.memoizedProps=n.pendingProps,i===null?kw(n):Xt=i,ah.current=null}function kw(n){var i=n;do{var l=i.alternate;if(n=i.return,(i.flags&32768)===0){if(l=i$(l,i,ya),l!==null){Xt=l;return}}else{if(l=u$(l,i),l!==null){l.flags&=32767,Xt=l;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{on=6,Xt=null;return}}if(i=i.sibling,i!==null){Xt=i;return}Xt=i=n}while(i!==null);on===0&&(on=5)}function Fo(n,i,l){var C=ct,P=qa.transition;try{qa.transition=null,ct=1,g$(n,i,l,C)}finally{qa.transition=P,ct=C}return null}function g$(n,i,l,C){do Ms();while(lo!==null);if((at&6)!==0)throw Error(t(327));l=n.finishedWork;var P=n.finishedLanes;if(l===null)return null;if(n.finishedWork=null,n.finishedLanes=0,l===n.current)throw Error(t(177));n.callbackNode=null,n.callbackPriority=0;var q=l.lanes|l.childLanes;if(ql(n,q),n===an&&(Xt=an=null,Cn=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Sc||(Sc=!0,qw(Et,function(){return Ms(),null})),q=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||q){q=qa.transition,qa.transition=null;var K=ct;ct=1;var ee=at;at|=4,ah.current=null,c$(n,l),_w(l,n),LB(gd),X=!!pd,gd=pd=null,n.current=l,f$(l),wt(),at=ee,ct=K,qa.transition=q}else n.current=l;if(Sc&&(Sc=!1,lo=n,wc=P),q=n.pendingLanes,q===0&&(uo=null),Wi(l.stateNode),oa(n,Fr()),i!==null)for(C=n.onRecoverableError,l=0;l<i.length;l++)C(i[l]);if(_c)throw _c=!1,n=sh,sh=null,n;return(wc&1)!==0&&n.tag!==0&&Ms(),q=n.pendingLanes,(q&1)!==0?n===uh?Hu++:(Hu=0,uh=n):Hu=0,ao(),null}function Ms(){if(lo!==null){var n=Ci(wc),i=qa.transition,l=ct;try{if(qa.transition=null,ct=16>n?16:n,lo===null)var C=!1;else{if(n=lo,lo=null,wc=0,(at&6)!==0)throw Error(t(331));var P=at;for(at|=4,yr=n.current;yr!==null;){var q=yr,K=q.child;if((yr.flags&16)!==0){var ee=q.deletions;if(ee!==null){for(var se=0;se<ee.length;se++){var we=ee[se];for(yr=we;yr!==null;){var $e=yr;switch($e.tag){case 0:case 11:case 15:$u(8,$e,q)}var dr=$e.child;if(dr!==null)dr.return=$e,yr=dr;else for(;yr!==null;){$e=yr;var qe=$e.sibling,pr=$e.return;if(pw($e),$e===we){yr=null;break}if(qe!==null){qe.return=pr,yr=qe;break}yr=pr}}}var fr=q.alternate;if(fr!==null){var Br=fr.child;if(Br!==null){fr.child=null;do{var Wt=Br.sibling;Br.sibling=null,Br=Wt}while(Br!==null)}}yr=q}}if((q.subtreeFlags&2064)!==0&&K!==null)K.return=q,yr=K;else e:for(;yr!==null;){if(q=yr,(q.flags&2048)!==0)switch(q.tag){case 0:case 11:case 15:$u(9,q,q.return)}var be=q.sibling;if(be!==null){be.return=q.return,yr=be;break e}yr=q.return}}var ue=n.current;for(yr=ue;yr!==null;){K=yr;var Se=K.child;if((K.subtreeFlags&2064)!==0&&Se!==null)Se.return=K,yr=Se;else e:for(K=ue;yr!==null;){if(ee=yr,(ee.flags&2048)!==0)try{switch(ee.tag){case 0:case 11:case 15:mc(9,ee)}}catch(Sr){$t(ee,ee.return,Sr)}if(ee===K){yr=null;break e}var tr=ee.sibling;if(tr!==null){tr.return=ee.return,yr=tr;break e}yr=ee.return}}if(at=P,ao(),Vn&&typeof Vn.onPostCommitFiberRoot=="function")try{Vn.onPostCommitFiberRoot(wi,n)}catch{}C=!0}return C}finally{ct=l,qa.transition=i}}return!1}function Pw(n,i,l){i=Gd(l,i),i=V2(n,i,1),oo(n,i),i=Wn(),n=xc(n,1),n!==null&&(bn(n,1,i),oa(n,i))}function $t(n,i,l){if(n.tag===3)Pw(n,n,l);else for(;i!==null;){if(i.tag===3){Pw(i,n,l);break}else if(i.tag===1){var C=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof C.componentDidCatch=="function"&&(uo===null||!uo.has(C))){n=Gd(l,n),n=G2(i,n,1),oo(i,n),n=Wn(),i=xc(i,1),i!==null&&(bn(i,1,n),oa(i,n));break}}i=i.return}}function m$(n,i,l){var C=n.pingCache;C!==null&&C.delete(i),i=Wn(),n.pingedLanes|=n.suspendedLanes&l,an===n&&(Cn&l)===l&&(on===4||on===3&&(Cn&130023424)===Cn&&500>Fr()-oh?Uo(n,0):ih|=l),oa(n,i)}function Nw(n,i){i===0&&((n.mode&1)===0?i=1:(i=Yi,Yi<<=1,(Yi&130023424)===0&&(Yi=4194304)));var l=Wn();n=xc(n,i),n!==null&&(bn(n,i,l),oa(n,l))}function y$(n){var i=n.memoizedState,l=0;i!==null&&(l=i.retryLane),Nw(n,l)}function b$(n,i){var l=0;switch(n.tag){case 13:var C=n.stateNode,P=n.memoizedState;P!==null&&(l=P.retryLane);break;case 19:C=n.stateNode;break;default:throw Error(t(314))}C!==null&&C.delete(i),Nw(n,l)}var jw;jw=function(n,i,l){if(n!==null)if(n.memoizedProps!==i.pendingProps||ra.current)aa=!0;else{if((n.lanes&l)===0&&(i.flags&128)===0)return aa=!1,s$(n,i,l);aa=(n.flags&131072)!==0}else aa=!1,kt&&(i.flags&1048576)!==0&&m2(i,ic,i.index);switch(i.lanes=0,i.tag){case 2:var C=i.type;n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2),n=i.pendingProps;var P=As(i,Mn.current);Rs(i,l),P=Bd(null,i,C,n,P,l);var q=$d();return i.flags|=1,typeof P=="object"&&P!==null&&typeof P.render=="function"&&P.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,ta(C)?(q=!0,Jl(i)):q=!1,i.memoizedState=P.state!==null&&P.state!==void 0?P.state:null,Ad(i),P.updater=nc,i.stateNode=P,P._reactInternals=i,Rd(i,C,n,l),i=Jd(null,i,C,!0,q,l)):(i.tag=0,kt&&q&&Od(i),Gn(null,i,P,l),i=i.child),i;case 16:C=i.elementType;e:{switch(n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2),n=i.pendingProps,P=C._init,C=P(C._payload),i.type=C,P=i.tag=S$(C),n=Ya(C,n),P){case 0:i=Yd(null,i,C,n,l);break e;case 1:i=iw(null,i,C,n,l);break e;case 11:i=ew(null,i,C,n,l);break e;case 14:i=rw(null,i,C,Ya(C.type,n),l);break e}throw Error(t(306,C,""))}return i;case 0:return C=i.type,P=i.pendingProps,P=i.elementType===C?P:Ya(C,P),Yd(n,i,C,P,l);case 1:return C=i.type,P=i.pendingProps,P=i.elementType===C?P:Ya(C,P),iw(n,i,C,P,l);case 3:e:{if(ow(i),n===null)throw Error(t(387));C=i.pendingProps,q=i.memoizedState,P=q.element,c2(n,i),tc(i,C,null,l);var K=i.memoizedState;if(C=K.element,q.isDehydrated)if(q={element:C,isDehydrated:!1,cache:K.cache,pendingSuspenseBoundaries:K.pendingSuspenseBoundaries,transitions:K.transitions},i.updateQueue.baseState=q,i.memoizedState=q,i.flags&256){P=Error(t(423)),i=sw(n,i,C,l,P);break e}else if(C!==P){P=Error(t(424)),i=sw(n,i,C,l,P);break e}else for(na=Ti(i.stateNode.containerInfo.firstChild),ma=i,kt=!0,Xa=null,l=E2(i,null,C,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ps(),C===P){i=ji(n,i,l);break e}Gn(n,i,C,l)}i=i.child}return i;case 5:return C2(i),n===null&&Nd(i),C=i.type,P=i.pendingProps,q=n!==null?n.memoizedProps:null,K=P.children,md(C,P)?K=null:q!==null&&md(C,q)&&(i.flags|=32),aw(n,i),Gn(n,i,K,l),i.child;case 6:return n===null&&Nd(i),null;case 13:return lw(n,i,l);case 4:return qd(i,i.stateNode.containerInfo),C=i.pendingProps,n===null?i.child=Ns(i,null,C,l):Gn(n,i,C,l),i.child;case 11:return C=i.type,P=i.pendingProps,P=i.elementType===C?P:Ya(C,P),ew(n,i,C,P,l);case 7:return Gn(n,i,i.pendingProps,l),i.child;case 8:return Gn(n,i,i.pendingProps.children,l),i.child;case 12:return Gn(n,i,i.pendingProps.children,l),i.child;case 10:e:{if(C=i.type._context,P=i.pendingProps,q=i.memoizedProps,K=P.value,_t(Ql,C._currentValue),C._currentValue=K,q!==null)if(Ka(q.value,K)){if(q.children===P.children&&!ra.current){i=ji(n,i,l);break e}}else for(q=i.child,q!==null&&(q.return=i);q!==null;){var ee=q.dependencies;if(ee!==null){K=q.child;for(var se=ee.firstContext;se!==null;){if(se.context===C){if(q.tag===1){se=ki(-1,l&-l),se.tag=2;var we=q.updateQueue;if(we!==null){we=we.shared;var $e=we.pending;$e===null?se.next=se:(se.next=$e.next,$e.next=se),we.pending=se}}q.lanes|=l,se=q.alternate,se!==null&&(se.lanes|=l),Id(q.return,l,i),ee.lanes|=l;break}se=se.next}}else if(q.tag===10)K=q.type===i.type?null:q.child;else if(q.tag===18){if(K=q.return,K===null)throw Error(t(341));K.lanes|=l,ee=K.alternate,ee!==null&&(ee.lanes|=l),Id(K,l,i),K=q.sibling}else K=q.child;if(K!==null)K.return=q;else for(K=q;K!==null;){if(K===i){K=null;break}if(q=K.sibling,q!==null){q.return=K.return,K=q;break}K=K.return}q=K}Gn(n,i,P.children,l),i=i.child}return i;case 9:return P=i.type,C=i.pendingProps.children,Rs(i,l),P=ka(P),C=C(P),i.flags|=1,Gn(n,i,C,l),i.child;case 14:return C=i.type,P=Ya(C,i.pendingProps),P=Ya(C.type,P),rw(n,i,C,P,l);case 15:return tw(n,i,i.type,i.pendingProps,l);case 17:return C=i.type,P=i.pendingProps,P=i.elementType===C?P:Ya(C,P),n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2),i.tag=1,ta(C)?(n=!0,Jl(i)):n=!1,Rs(i,l),p2(i,C,P),Rd(i,C,P,l),Jd(null,i,C,!0,n,l);case 19:return hw(n,i,l);case 22:return nw(n,i,l)}throw Error(t(156,i.tag))};function qw(n,i){return Be(n,i)}function _$(n,i,l,C){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function La(n,i,l,C){return new _$(n,i,l,C)}function vh(n){return n=n.prototype,!(!n||!n.isReactComponent)}function S$(n){if(typeof n=="function")return vh(n)?1:0;if(n!=null){if(n=n.$$typeof,n===N)return 11;if(n===B)return 14}return 2}function ho(n,i){var l=n.alternate;return l===null?(l=La(n.tag,i,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=i,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&14680064,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,i=n.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l}function Ac(n,i,l,C,P,q){var K=2;if(C=n,typeof n=="function")vh(n)&&(K=1);else if(typeof n=="string")K=5;else e:switch(n){case x:return Bo(l.children,P,q,i);case R:K=8,P|=8;break;case O:return n=La(12,l,i,P|2),n.elementType=O,n.lanes=q,n;case D:return n=La(13,l,i,P),n.elementType=D,n.lanes=q,n;case U:return n=La(19,l,i,P),n.elementType=U,n.lanes=q,n;case G:return Tc(l,P,q,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case j:K=10;break e;case k:K=9;break e;case N:K=11;break e;case B:K=14;break e;case H:K=16,C=null;break e}throw Error(t(130,n==null?n:typeof n,""))}return i=La(K,l,i,P),i.elementType=n,i.type=C,i.lanes=q,i}function Bo(n,i,l,C){return n=La(7,n,C,i),n.lanes=l,n}function Tc(n,i,l,C){return n=La(22,n,C,i),n.elementType=G,n.lanes=l,n.stateNode={},n}function ph(n,i,l){return n=La(6,n,null,i),n.lanes=l,n}function gh(n,i,l){return i=La(4,n.children!==null?n.children:[],n.key,i),i.lanes=l,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function w$(n,i,l,C,P){this.tag=i,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=en(0),this.expirationTimes=en(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=en(0),this.identifierPrefix=C,this.onRecoverableError=P,this.mutableSourceEagerHydrationData=null}function mh(n,i,l,C,P,q,K,ee,se){return n=new w$(n,i,l,ee,se),i===1?(i=1,q===!0&&(i|=8)):i=0,q=La(3,null,null,i),n.current=q,q.stateNode=n,q.memoizedState={element:C,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ad(q),n}function E$(n,i,l){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:g,key:C==null?null:""+C,children:n,containerInfo:i,implementation:l}}function Dw(n){if(!n)return no;n=n._reactInternals;e:{if(qn(n)!==n||n.tag!==1)throw Error(t(170));var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(ta(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(t(171))}if(n.tag===1){var l=n.type;if(ta(l))return s2(n,l,i)}return i}function Lw(n,i,l,C,P,q,K,ee,se){return n=mh(l,C,!0,n,P,q,K,ee,se),n.context=Dw(null),l=n.current,C=Wn(),P=co(l),q=ki(C,P),q.callback=i??null,oo(l,q),n.current.lanes=P,bn(n,P,C),oa(n,C),n}function Rc(n,i,l,C){var P=i.current,q=Wn(),K=co(P);return l=Dw(l),i.context===null?i.context=l:i.pendingContext=l,i=ki(q,K),i.payload={element:n},C=C===void 0?null:C,C!==null&&(i.callback=C),oo(P,i),n=Da(P,K,q),n!==null&&rc(n,P,K),K}function Oc(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function Mw(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<i?l:i}}function yh(n,i){Mw(n,i),(n=n.alternate)&&Mw(n,i)}function C$(){return null}var Uw=typeof reportError=="function"?reportError:function(n){console.error(n)};function bh(n){this._internalRoot=n}kc.prototype.render=bh.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(t(409));Rc(n,i,null,null)},kc.prototype.unmount=bh.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;Mo(function(){Rc(null,n,null,null)}),i[Ri]=null}};function kc(n){this._internalRoot=n}kc.prototype.unstable_scheduleHydration=function(n){if(n){var i=Ll();n={blockedOn:null,target:n,priority:i};for(var l=0;l<Ga.length&&i!==0&&i<Ga[l].priority;l++);Ga.splice(l,0,n),l===0&&eo(n)}};function _h(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function Pc(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function Fw(){}function x$(n,i,l,C,P){if(P){if(typeof C=="function"){var q=C;C=function(){var we=Oc(K);q.call(we)}}var K=Lw(i,C,n,0,null,!1,!1,"",Fw);return n._reactRootContainer=K,n[Ri]=K.current,Tu(n.nodeType===8?n.parentNode:n),Mo(),K}for(;P=n.lastChild;)n.removeChild(P);if(typeof C=="function"){var ee=C;C=function(){var we=Oc(se);ee.call(we)}}var se=mh(n,0,!1,null,null,!1,!1,"",Fw);return n._reactRootContainer=se,n[Ri]=se.current,Tu(n.nodeType===8?n.parentNode:n),Mo(function(){Rc(i,se,l,C)}),se}function Nc(n,i,l,C,P){var q=l._reactRootContainer;if(q){var K=q;if(typeof P=="function"){var ee=P;P=function(){var se=Oc(K);ee.call(se)}}Rc(i,K,n,P)}else K=x$(l,i,n,P,C);return Oc(K)}Dl=function(n){switch(n.tag){case 3:var i=n.stateNode;if(i.current.memoizedState.isDehydrated){var l=Ei(i.pendingLanes);l!==0&&(bu(i,l|1),oa(i,Fr()),(at&6)===0&&(Ls=Fr()+500,ao()))}break;case 13:var C=Wn();Mo(function(){return Da(n,1,C)}),yh(n,1)}},_u=function(n){if(n.tag===13){var i=Wn();Da(n,134217728,i),yh(n,134217728)}},ms=function(n){if(n.tag===13){var i=Wn(),l=co(n);Da(n,l,i),yh(n,l)}},Ll=function(){return ct},Ml=function(n,i){var l=ct;try{return ct=n,i()}finally{ct=l}},Xe=function(n,i,l){switch(i){case"input":if(Ve(n,l),i=l.name,l.type==="radio"&&i!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<l.length;i++){var C=l[i];if(C!==n&&C.form===n.form){var P=Kl(C);if(!P)throw Error(t(90));nr(C),Ve(C,P)}}}break;case"textarea":le(n,l);break;case"select":i=l.value,i!=null&&Q(n,!!l.multiple,i,!1)}},St=fh,Gt=Mo;var I$={usingClientEntryPoint:!1,Events:[ku,xs,Kl,Kr,et,fh]},Vu={findFiberByHostInstance:ko,bundleType:0,version:"18.1.0",rendererPackageName:"react-dom"},A$={bundleType:Vu.bundleType,version:Vu.version,rendererPackageName:Vu.rendererPackageName,rendererConfig:Vu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:p.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=xe(n),n===null?null:n.stateNode},findFiberByHostInstance:Vu.findFiberByHostInstance||C$,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.1.0-next-22edb9f77-20220426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var jc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jc.isDisabled&&jc.supportsFiber)try{wi=jc.inject(A$),Vn=jc}catch{}}return sa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I$,sa.createPortal=function(n,i){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_h(i))throw Error(t(200));return E$(n,i,null,l)},sa.createRoot=function(n,i){if(!_h(n))throw Error(t(299));var l=!1,C="",P=Uw;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(C=i.identifierPrefix),i.onRecoverableError!==void 0&&(P=i.onRecoverableError)),i=mh(n,1,!1,null,null,l,!1,C,P),n[Ri]=i.current,Tu(n.nodeType===8?n.parentNode:n),new bh(i)},sa.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(t(188)):(n=Object.keys(n).join(","),Error(t(268,n)));return n=xe(i),n=n===null?null:n.stateNode,n},sa.flushSync=function(n){return Mo(n)},sa.hydrate=function(n,i,l){if(!Pc(i))throw Error(t(200));return Nc(null,n,i,!0,l)},sa.hydrateRoot=function(n,i,l){if(!_h(n))throw Error(t(405));var C=l!=null&&l.hydratedSources||null,P=!1,q="",K=Uw;if(l!=null&&(l.unstable_strictMode===!0&&(P=!0),l.identifierPrefix!==void 0&&(q=l.identifierPrefix),l.onRecoverableError!==void 0&&(K=l.onRecoverableError)),i=Lw(i,null,n,1,l??null,P,!1,q,K),n[Ri]=i.current,Tu(n),C)for(n=0;n<C.length;n++)l=C[n],P=l._getVersion,P=P(l._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[l,P]:i.mutableSourceEagerHydrationData.push(l,P);return new kc(i)},sa.render=function(n,i,l){if(!Pc(i))throw Error(t(200));return Nc(null,n,i,!1,l)},sa.unmountComponentAtNode=function(n){if(!Pc(n))throw Error(t(40));return n._reactRootContainer?(Mo(function(){Nc(null,null,n,!1,function(){n._reactRootContainer=null,n[Ri]=null})}),!0):!1},sa.unstable_batchedUpdates=fh,sa.unstable_renderSubtreeIntoContainer=function(n,i,l,C){if(!Pc(l))throw Error(t(200));if(n==null||n._reactInternals===void 0)throw Error(t(38));return Nc(n,i,l,!1,C)},sa.version="18.1.0-next-22edb9f77-20220426",sa}var CN;function dK(){if(CN)return Ly.exports;CN=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Ly.exports=fK(),Ly.exports}var xN;function hK(){if(xN)return Dc;xN=1;var e=dK();return Dc.createRoot=e.createRoot,Dc.hydrateRoot=e.hydrateRoot,Dc}var vK=hK(),Nr=Cl();const je=Ws(Nr);var At=(e=>(e[e.Unclassified=0]="Unclassified",e[e.Primary=1]="Primary",e[e.Secondary=2]="Secondary",e[e.K12=3]="K12",e[e.Tertiary=4]="Tertiary",e[e.NonEducational=5]="NonEducational",e[e.Partners=6]="Partners",e[e.Internal=7]="Internal",e[e.Other=8]="Other",e[e.ClickView=254]="ClickView",e[e.System=255]="System",e))(At||{}),ba=(e=>(e.Unclassified="Unclassified",e.Primary="Primary",e.Secondary="Secondary",e.K12="K12",e.Tertiary="Tertiary",e.NonEducational="NonEducational",e.Partners="Partners",e.Internal="Internal",e.Other="Other",e.ClickView="ClickView",e.System="System",e))(ba||{});At.Primary,At.Secondary,At.Primary,At.Secondary,At.Secondary,At.Primary,At.Primary,At.Primary,At.Secondary,At.Primary;function pK(){return A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z"})})}function gK(){return A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"})})}function mK(e){var t;const r=!!((t=e.ipAuthGuests)!=null&&t.length);return Nr.useEffect(()=>{r?e.navigate({step:"username-or-guest",backStep:null}):e.navigate({step:"username-input",backStep:null})},[r]),A.jsx(A.Fragment,{})}const yK="_back_rcp4h_1",bK={back:yK};function _K(){return A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M8.305 11.267l5.906-5.963a1.046 1.046 0 0 1 1.473 0l.011.01a1.034 1.034 0 0 1 0 1.467L10.526 12l5.17 5.22c.406.41.406 1.055 0 1.465l-.012.011a1.046 1.046 0 0 1-1.473 0l-5.906-5.963a1.034 1.034 0 0 1 0-1.466z"})})}function SK(e){return A.jsxs("span",{className:`${bK.back} position-relative d-inline-flex flex-row cursor-pointer`,role:"button",tabIndex:0,onClick:e.onClick,children:[A.jsx(_K,{}),A.jsx("span",{children:"Back"})]})}function Ua(...e){const r=[];for(const t of e)if(t)if(typeof t=="object")for(const a of Object.keys(t))t[a]&&r.push(a);else typeof t=="string"&&r.push(t);return r.join(" ")}function yt(e){var o,s,u;const{onClickBack:r,children:t}=e,a=!!((o=e.title)!=null&&o.length);return a||t||r?A.jsxs("div",{className:"mb-3",children:[A.jsxs("div",{className:"text-left position-relative d-flex flex-column gap-3",children:[!!r&&A.jsx(SK,{onClick:r}),a&&A.jsx("h1",{className:Ua("h2",(s=e==null?void 0:e.className)==null?void 0:s.title),children:e.title})]}),t&&A.jsx("p",{className:Ua("text-start my-2",(u=e==null?void 0:e.className)==null?void 0:u.description),children:t})]}):A.jsx(A.Fragment,{})}function gn(e){const{showSpinner:r,children:t,className:a,...o}=e,s=Nr.useRef(null),[u,v]=Nr.useState({});return Nr.useEffect(()=>{const{width:d,height:h}=u;if(d&&h)return;const f=s.current,c=f.offsetHeight,_=f.offsetWidth;!c||!_||v({width:_,height:c})}),Nr.useEffect(()=>{const{width:d,height:h}=u;if(!d||!h)return;const f=s.current;f.style.width=`${d+1}px`,f.style.height=`${h+1}px`},[u]),A.jsx("button",{ref:s,disabled:r,className:`${a} d-flex justify-content-center align-items-center`,...o,children:r?A.jsx("span",{className:"spinner-border",role:"status",children:A.jsx("span",{className:"visually-hidden",children:"Loading..."})}):t})}function nU(){return A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"})})}const wK="_back_fw24y_1",EK={back:wK};function CK(e){switch(e){case"email":return"Email";case"username":return"Username or email ";default:return null}}function IN(e){switch(e){case"email":return"Enter your email";case"username":return"Enter your username or email";default:return null}}function xK(e){switch(e){case"email":return"email";case"username":return"username email";default:return null}}function xl(e){const r=!e.hideCloseButton&&typeof e.onClickClose=="function";let t="form-control form-control-lg";return e.isError&&(t+=" is-invalid"),e.additionalClassNames&&(t+=" "+e.additionalClassNames),A.jsxs("div",{children:[!e.hideLabel&&A.jsx("label",{htmlFor:e.name,children:CK(e.type)}),A.jsxs("div",{className:"position-relative",children:[A.jsx("input",{className:t,type:"text","aria-label":IN(e.type),placeholder:IN(e.type),autoFocus:!0,value:e.value,onChange:e.onChange,disabled:e.disabled,autoComplete:xK(e.type),autoCorrect:"off",autoCapitalize:"none",spellCheck:"false",name:e.name,id:e.name,"aria-invalid":e.ariaInvalid,"aria-errormessage":e.ariaErrorMessage}),r&&A.jsx("span",{className:`${EK.back} position-absolute cursor-pointer text-gray-800`,role:"button",tabIndex:0,onClick:e.onClickClose,children:A.jsx(nU,{})})]})]})}const IK="https://support.clickvieweducation.com/hc/articles/42460495601305",AK="https://support.clickvieweducation.com/hc/articles/42594760983705",TK="https://support.clickvieweducation.com/hc/articles/43193378048665",RK="https://www.clickvieweducation.com/contact-us",OK={au:"https://www.clickvieweducation.com/en-au",nz:"https://www.clickview.co.nz",uk:"https://www.clickvieweducation.com/en-gb",us:"https://www.clickvieweducation.com",ca:"https://www.clickvieweducation.com/en-ca"},bo={kbEmailInUse:IK,verifyEmail:AK,verifyEmailNotReceived:TK,contactSupport:RK,marketingSite:OK};function aU(e){return PK[e]||iU}const Yc="If the error persists please contact ClickView Support.",kK="If the error persists please contact your ClickView Administrator.",Lc="Please contact your ClickView Administrator for further assistance.",iU={message:"Oops! Something went wrong...",additionalInformation:Yc,errorImage:"default-v2.png"},PK={error:iU,"invalid-token":{message:"This link is either invalid or expired.",errorImage:"link-not-found-v2.png"},"invalid-code":{message:"This code is either invalid or expired.",errorImage:"link-not-found-v2.png"},"validation-failure":{message:"The information provided is not valid.",additionalInformation:Yc,errorImage:"incorrect-information-v2.png"},"user.email-in-use-as-username":{message:"This email address is already in use by another account.",moreInfoUrl:bo.kbEmailInUse,errorImage:"email-error-v2.png"},"user.not-found":{message:"Oh oh! We can't find this account.",additionalInformation:Lc,errorImage:"user-not-found-v2.png"},"user.disabled":{message:"Oops! Looks like this account has been deactivated.",additionalInformation:Lc,errorImage:"user-disabled-v2.png"},"user.no-login":{message:"This account does not have a login.",additionalInformation:Lc,errorImage:"access-forbidden-v2.png"},"user.invalid-password":{message:"The provided username or password is incorrect.",errorImage:"access-forbidden-v2.png"},"user.same-password":{message:"The provided password is the same as the current password.",errorImage:"access-forbidden-v2.png"},"user.password-too-short":{message:"The provided password is too short.",errorImage:"access-forbidden-v2.png"},"user.not-activated":{message:"The account has not been activated. Please check your email for an activation link and try again.",errorImage:"email-error-v2.png"},"user.already-activated":{message:"This account has already been activated.",errorImage:"already-activated-v2.png"},"user.locked-out":{message:"Your account has temporarily been locked due to too many failed login attempts. Please try again in a few minutes.",errorImage:"locked-account-v2.png"},"user.invalid-first-name":{message:"The provided first name is invalid.",errorImage:"default-v2.png"},"user.invalid-surname":{message:"The provided surname is invalid.",errorImage:"default-v2.png"},"user.invalid-jobtitle":{message:"The provided job title is incorrect.",errorImage:"default-v2.png"},"user.no-external-user-data":{message:"Oops! We can't get the information from your IDP.",errorImage:"default-v2.png"},"user.empty-first-name":{message:"The first name must be provided.",errorImage:"default-v2.png"},"user.empty-surname":{message:"The surname must be provided.",errorImage:"default-v2.png"},"user.display-name-too-long":{message:"The maximum length for display name is 70 characters.",errorImage:"default-v2.png"},"user.display-name-too-short":{message:"The minimum length for display name is 2 characters.",errorImage:"default-v2.png"},"user.unknown-user-type":{message:"The account type needs to be provided.",errorImage:"default-v2.png"},"user.invalid-email":{message:"The provided email is invalid.",errorImage:"email-error-v2.png"},"user.email-too-long":{message:"The maximum length for email is 255 characters.",errorImage:"email-error-v2.png"},"user.email-already-exists":{message:"This email address is already in use by another account.",errorImage:"email-error-v2.png"},"user.unknown-year-group":{message:"The year level or grade must be provided for student account.",errorImage:"default-v2.png"},"customer.not-found":{message:"The customer of this account could not be found.",errorImage:"not-found-v2.png"},"user.empty-customer":{message:"The customer mapping does not exist.",errorImage:"default-v2.png"},"user.no-email":{message:"The account does not have an email.",errorImage:"email-error-v2.png"},"user.email-not-allowed":{message:"Oops! That email won't work to sign in to ClickView. Try using your school account instead.",errorImage:"email-error-v2.png"},"user.signup-not-allowed":{message:"Student sign up is currently not supported.",errorImage:"default-v2.png"},"user.invalid-external-user-role":{message:"The external user role is not supported",errorImage:"default-v2.png"},"user.user-type-not-matched":{message:"The provided user type does not match the existing user",errorImage:"default-v2.png"},"user.already-logged-in":{message:"You already have an account on ClickView",errorImage:"default-v2.png"},"login.error":{message:"Uh oh! We cannot log you in at this time.",additionalInformation:Yc,errorImage:"default-v2.png"},"login.invalid-login-state":{message:"Your session has expired.",additionalInformation:"Please login and try again.",errorImage:"incorrect-information-v2.png"},"login.no-ip":{message:"IP address could not be detected for IP auth",errorImage:"default-v2.png"},"verify-email.error":{message:"There was an issue verifying your email address, please try again.",additionalInformation:kK,errorImage:"email-error-v2.png"},"forgot-password.no-account":{message:"No account can be found for the provided username or email address."},"forgot-password.no-verified-email":{message:"Your account needs to be linked to a verified email to receive a password reset link. "+Lc},"idp.wonde-missing-data":{message:"MyLogin currently only supports logins via Wonde. Please contact ClickView support for assistance.",errorImage:"default-v2.png"},"idp.rm-missing-data":{message:"Failed to retrieve data from RM Unify.",errorImage:"default-v2.png"},"saml2.login":{message:"There was an issue processing your login. Please try again",errorImage:"default-v2.png"},"saml2.configuration-error":{preferServerError:!0,message:"There was an issue with the saml configuration. Please contact ClickView support for assistance.",errorImage:"default-v2.png"},"http.400":{message:"The information provided was not quite what we were looking for.",errorImage:"incorrect-information-v2.png"},"http.401":{message:"Uh oh! You don't have permission to access this page.",errorImage:"access-forbidden-v2.png"},"http.403":{message:"Uh oh! You don't have permission to access this page.",errorImage:"access-forbidden-v2.png"},"http.404":{message:"Oops! Nothing to see here.",errorImage:"not-found-v2.png"},"http.500":{message:"Shoot! Looks like theres smoke coming out of our servers.",additionalInformation:Yc,errorImage:"smoky-server-v2.png"}};function NK(){return"Value is required."}let jK=class extends Error{constructor(r,t,a){super(`An error has occured with errorCode: ${r}`),this.userMessage=t,this.errorCode=r,this.traceId=a}};function qK(e){const r=e.errorCode;let t;return r==="validation-failure"?t=NK():t=aU(r).message,new jK(r,t,e.traceId)}class DK{getXsrfToken(){const r="XSRF-TOKEN=",a=decodeURIComponent(document.cookie).split(";");for(let o=0;o<a.length;o++){let s=a[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(r)===0)return s.substring(r.length,s.length)}return""}getHeaders(){return{"x-csrf-token":this.getXsrfToken(),"content-type":"application/json"}}handleResponse(r){return r.json().then(t=>{if(!r.ok)throw qK(t);return t})}get(r){return fetch(r).then(t=>this.handleResponse(t))}post(r,t){const a={method:"POST",headers:this.getHeaders(),body:t&&JSON.stringify(t)};return fetch(r,a).then(o=>this.handleResponse(o))}}const dt=new DK,LK="_banner_hzr93_1",MK="_pluginBanner_hzr93_5",B_={banner:LK,pluginBanner:MK};function AN(e){const r=$K[e.bannerType];return r?A.jsx(r,{}):A.jsx(A.Fragment,{})}const UK=()=>A.jsxs("div",{className:`${B_.banner} rounded mb-4 p-2 text-center mx-auto`,children:["If your email address is already in use, please ",A.jsx("a",{href:bo.contactSupport,target:"_blank",className:"info-link",children:"contact ClickView Support"}),"."]}),FK=()=>A.jsxs("div",{className:`${B_.banner} rounded mb-4 p-2 text-center mx-auto`,children:["If you did not receive a verification email, ",A.jsx("a",{href:bo.verifyEmailNotReceived,target:"_blank",className:"info-link",children:"please see our support article"})," or ",A.jsx("a",{href:bo.contactSupport,target:"_blank",className:"info-link",children:"contact ClickView Support"})," for help."]}),BK=()=>A.jsx("div",{className:`${B_.pluginBanner} position-absolute w-100 h-auto`,children:A.jsx("div",{className:"text-center",children:A.jsx("span",{className:"text-light d-inline-block py-3 h6 mb-0",children:"🎓️ Embed classroom-ready videos from ClickView"})})});function Di(){return A.jsx("div",{style:{height:"3.626rem"}})}const $K={"email-in-use":UK,"check-email":FK,plugin:BK};function $o(){return A.jsx("span",{className:"cv-logo d-inline-block",children:A.jsxs("svg",{viewBox:"0 0 2420 383",children:[A.jsx("title",{children:"ClickView Logo"}),A.jsx("path",{fill:"#f8981d",d:"M317.302 140.594c38.928 22.475 38.928 78.663 0 101.137L87.93 374.159c-51.737 29.87-109.635-28.028-79.764-79.765l42.745-74.035a58.39 58.39 0 0 0 0-58.392L8.165 87.929C-21.705 36.193 36.193-21.705 87.93 8.165z"}),A.jsx("path",{fill:"#313543",d:"M611.506 37.93c32.531 0 61.155 7.86 85.686 23.732 24.569 15.898 42.448 38.445 53.64 67.43l2.553 6.609h-55.686l-1.301-2.829c-7.699-16.724-18.767-29.458-33.196-38.377l-.11-.069-.014-.01c-13.652-8.57-30.142-13.096-49.669-13.371l-1.903-.014c-19.522 0-36.885 4.537-52.213 13.522-15.305 8.973-27.345 21.774-36.129 38.544l-.015.029c-8.74 16.421-13.202 35.916-13.202 58.645 0 22.414 4.447 41.908 13.188 58.62l.847 1.564.825 1.465c8.613 15.034 20.102 26.719 34.486 35.152 15.328 8.985 32.691 13.521 52.213 13.521l1.906-.013c19.595-.268 36.134-4.686 49.812-13.045 14.419-8.92 25.48-21.649 33.175-38.367l1.3-2.826h55.708l-2.58 6.622c-11.198 28.71-29.078 51.11-53.635 67l-.091.058-.031.017c-24.507 15.544-53.089 23.239-85.564 23.239-27.772 0-53.222-6.451-76.248-19.403l-.022-.013-.007-.004-.117-.066-.021-.015c-22.685-13.233-40.648-31.506-53.841-54.737-13.252-23.335-19.83-49.632-19.83-78.769 0-29.136 6.578-55.434 19.83-78.768 13.169-23.468 31.098-41.866 53.747-55.1l.016-.012.205-.118c23.032-13.244 48.497-19.843 76.288-19.843M853.29 344.778h-48.522V37.935h48.522zm108.133 0H912.9V125.985h48.523zM937.586 37.93c8.392 0 15.617 3.072 21.365 9.12l.557.571c5.665 5.944 8.519 13.236 8.519 21.603 0 8.638-3.042 16.128-9.076 22.174-5.748 6.047-12.973 9.121-21.365 9.121-8.649 0-16.147-3.05-22.197-9.099-6.049-6.049-9.098-13.547-9.098-22.196 0-8.648 3.049-16.147 9.098-22.196s13.548-9.098 22.197-9.098m883.954 306.848h-48.52V125.985h48.52zM1797.71 37.93c8.39 0 15.61 3.072 21.36 9.12l.56.571c5.66 5.944 8.52 13.236 8.52 21.603 0 8.638-3.04 16.128-9.08 22.174-5.75 6.047-12.97 9.121-21.36 9.121-8.65 0-16.15-3.05-22.2-9.099s-9.1-13.547-9.1-22.196c0-8.648 3.05-16.147 9.1-22.196s13.55-9.098 22.2-9.098m-685.63 88.056c.18-.001.55-.007.8-.007h.02l1.27.007c.22-.001.58-.007.87-.007l1.23.005c25.71.192 47.32 6.421 64.47 19.041 17.63 12.79 29.21 30.547 34.76 52.985l1.49 6.025h-50.78l-1-3.522c-.03-.077-.03-.089-.05-.138-3.68-8.706-9.16-15.814-16.48-21.406l-.01-.012-.08-.064c-9.02-7.051-20.36-10.823-34.31-11.058l-1.42-.011c-18.69.005-33.52 6.889-44.94 20.703v.013l-.07.082c-3.49 4.155-6.47 8.877-8.93 14.186-3.21 9.073-4.87 19.779-4.87 32.199l.01 1.197.01 1.149c.2 11.745 1.9 21.943 5 30.664 2.43 5.277 5.37 9.989 8.8 14.153 11.43 13.858 26.29 20.763 45.01 20.763l1.37-.011c14-.221 25.37-3.876 34.4-10.69 7.21-5.445 12.74-12.723 16.56-21.979.01-.015.01-.03.02-.051l1.03-3.483h50.85l-1.64 6.118c-5.82 21.7-17.53 39.258-35.06 52.487l-.14.103-.04.022c-17.34 12.78-38.78 19.123-63.98 19.319l-1.21.005c-.21 0-.53-.004-.68-.005l-1.45.009h-.03c-.4 0-.82-.006-1.16-.009l-.91.005h-.02c-20.35 0-38.67-4.463-54.82-13.501l-.03-.013-.09-.053c-15.42-8.796-27.62-21.14-36.53-36.934l-.01-.014-.01-.014-.82-1.481-.01-.013-.01-.014c-8.73-16.072-13.15-34.684-13.42-55.69v-.023l-.01-1.99v-.026c0-21.601 4.42-40.66 13.45-57.012v-.005l.82-1.481.01-.013.01-.015c8.91-15.794 21.11-28.138 36.53-36.934l.09-.053.03-.014c16.15-9.038 34.47-13.501 54.82-13.501h.02zm483.02 158.82 89.96-246.876h51.35l-115.78 306.848h-51.48L1453.37 37.93h51.77zm375.01-158.827c19.94 0 37.78 4.354 53.37 13.192 15.55 8.809 27.53 21.032 35.85 36.604l.66 1.205.01.013v.013c7.04 13.033 10.99 27.498 11.91 43.315q.21 3.607.21 7.301v1.239c-.05 6.217-.43 12.744-1.13 19.576l-.45 4.359h-156.39c.98 8.318 3.05 15.659 6.15 22.076a60 60 0 0 0 8.24 10.724c11.63 11.489 25.5 17.231 41.88 17.334 13.51-.053 24.36-3.558 32.89-10.222 6.94-5.49 12.28-12.323 16.04-20.561l1.3-2.839h50.42l-1.73 6.17c-5.75 20.496-17.3 37.279-34.51 50.223l-.01.009-.02.009-.01.011c-17.36 12.794-38.78 19.047-63.92 19.047l-.21-.001-.07-.001-.46.002h-.02c-19.96 0-38.04-4.488-54.1-13.557l-.01-.004-.01-.006-.01-.004v-.003c-15.78-9.051-28.19-21.853-37.22-38.29l-.02-.029-.08-.162c-8.77-16.289-13.23-34.896-13.5-55.694v-.026l-.01-1.968v-.025c0-21.589 4.32-40.745 13.12-57.32 8.66-16.295 20.76-28.919 36.28-37.747l.74-.418c16.08-9.071 34.4-13.544 54.82-13.545m-1.7 41.839c-14.73 0-27.09 4.424-37.36 13.179-8.74 7.62-14.31 17.908-16.51 31.206h108.22c-.65-8.377-3-15.493-6.92-21.486l-.04-.065-.01-.01c-4.73-7.419-11.19-12.981-19.49-16.726l-.02-.007-.04-.023-.05-.023-.04-.017c-8.2-3.989-17.41-6.028-27.74-6.028m372.35 176.959h-46.41l-45.08-148.561-45.08 148.561h-46.39l-68.68-218.797h49.14l42.94 156.786 46.36-156.786h46.09l45.2 156.683L2361 125.98l47.88-.002zM1309.64 210.55l73.43-84.564h61.94l-103.03 109.019 103.39 109.773h-60.74l-74.99-84.406v84.406h-48.52V37.935h48.52z"})]})})}const zK="/images/clickview-xmas-logo-2026.png";function ZK(){return A.jsx("span",{className:"cv-logo d-inline-block",children:A.jsx("img",{className:"h-100",alt:"ClickView Xmas logo",src:zK})})}const HK="_logo_1ermx_1",VK={logo:HK};function GK(){return A.jsx("span",{className:`${VK.logo} d-inline-block`,children:A.jsxs("svg",{width:"5614",height:"1080",viewBox:"0 0 5614 1080",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{d:"M539.597 1046.49C819.546 1046.49 1046.49 819.546 1046.49 539.597C1046.49 259.647 819.546 32.7028 539.597 32.7028C259.647 32.7028 32.7028 259.647 32.7028 539.597C32.7028 819.546 259.647 1046.49 539.597 1046.49Z",fill:"white"}),A.jsx("path",{d:"M1079.19 539.597C1079.19 241.586 837.608 0 539.597 0C241.586 0 0 241.586 0 539.597C0 837.608 241.586 1079.19 539.597 1079.19C837.608 1079.19 1079.19 837.608 1079.19 539.597ZM1046.49 539.597C1046.49 819.546 819.546 1046.49 539.597 1046.49C259.647 1046.49 32.7028 819.546 32.7028 539.597C32.7028 259.647 259.647 32.7028 539.597 32.7028C819.546 32.7028 1046.49 259.647 1046.49 539.597Z",fill:"white"}),A.jsx("path",{d:"M1046.49 539.597C1046.49 593.776 1037.97 645.963 1022.24 694.922C1017.33 660.088 1006.25 609.777 981.18 554.42C951.089 487.981 856.61 391.753 792.815 331.385C836.145 338.82 878.846 348.412 919.763 364.156C959.259 379.376 998.207 402.218 1034.65 430.2C1042.4 465.442 1046.49 502.035 1046.49 539.597Z",fill:"#ADE1F9"}),A.jsx("path",{d:"M564.419 640.626C547.183 638.435 529.981 636.244 512.885 633.831C403.162 618.297 293.381 591.562 196.897 537.056C132.368 500.602 84.1434 458.368 49.694 409.024V408.966C50.3116 406.67 50.9293 404.398 51.5586 402.114C59.4717 376.067 94.4223 285.258 196.535 290.887C220.951 292.227 314.976 303.473 328.156 413.29C329.124 421.343 330.056 429.407 331.606 437.379C352.094 542.871 468.926 601.573 559.093 638.505C560.865 639.227 562.648 639.915 564.419 640.626Z",fill:"#E1FAE1"}),A.jsx("path",{d:"M1034.65 430.2C998.207 402.218 959.259 379.376 919.763 364.156C878.846 348.412 836.145 338.82 792.815 331.385C697.66 315.034 599.521 309.067 511.113 271.017C464.998 251.158 420.549 220.566 399.537 174.976C379.469 131.471 380.086 94.0032 393.885 62.5722C396.659 56.2557 402.159 51.5125 408.825 49.7411C450.547 38.6347 494.367 32.7028 539.597 32.7028C719.058 32.7028 876.76 125.97 966.822 266.693C998.405 316.013 1021.67 371.195 1034.65 430.2Z",fill:"#32B3EF"}),A.jsx("path",{d:"M935.846 855.713C842.264 972.86 697.823 1047.61 535.96 1046.47C256.484 1044.51 32.3176 818.362 32.7022 538.874C32.7605 493.983 38.6809 450.466 49.694 409.024C84.1434 458.368 132.368 500.602 196.897 537.056C293.381 591.562 403.162 618.297 512.885 633.831C529.981 636.244 547.183 638.435 564.419 640.626C648.235 651.254 732.68 661.859 807.849 699.257C864.115 727.25 914.053 775.72 938.922 832.16C942.36 839.968 941.183 849.035 935.846 855.713Z",fill:"#5ABD5E"}),A.jsx("path",{d:"M1334.39 666.764C1342.47 652.634 1354.29 641.1 1369.86 632.161C1385.43 623.221 1403.17 618.752 1423.06 618.752C1444.4 618.752 1463.58 623.798 1480.59 633.891C1497.61 643.983 1511.01 658.257 1520.82 676.713C1530.62 694.879 1535.52 716.074 1535.52 740.296C1535.52 764.23 1530.62 785.569 1520.82 804.312C1511.01 823.056 1497.46 837.618 1480.16 847.999C1463.15 858.38 1444.11 863.571 1423.06 863.571C1402.59 863.571 1384.57 859.101 1369 850.162C1353.71 841.223 1342.18 829.832 1334.39 815.991V859.678H1295.03V539.597H1334.39V666.764ZM1495.3 740.296C1495.3 722.418 1491.69 706.846 1484.48 693.582C1477.28 680.317 1467.47 670.224 1455.07 663.304C1442.96 656.383 1429.55 652.923 1414.85 652.923C1400.43 652.923 1387.02 656.527 1374.62 663.736C1362.51 670.657 1352.7 680.894 1345.21 694.447C1338 707.711 1334.39 723.139 1334.39 740.729C1334.39 758.607 1338 774.323 1345.21 787.876C1352.7 801.141 1362.51 811.377 1374.62 818.586C1387.02 825.507 1400.43 828.967 1414.85 828.967C1429.55 828.967 1442.96 825.507 1455.07 818.586C1467.47 811.377 1477.28 801.141 1484.48 787.876C1491.69 774.323 1495.3 758.463 1495.3 740.296Z",fill:"#313543"}),A.jsx("path",{d:"M1791.5 622.645L1648.76 971.274H1608.1L1654.81 857.083L1559.22 622.645H1602.91L1677.3 814.694L1750.84 622.645H1791.5Z",fill:"#313543"}),A.jsx("path",{d:"M1396.94 429.813C1377.61 429.813 1360.21 426.499 1344.74 419.87C1329.28 412.966 1317.13 403.299 1308.29 390.871C1299.45 378.443 1295.03 363.943 1295.03 347.372H1345.57C1346.68 359.8 1351.51 370.019 1360.07 378.028C1368.91 386.038 1381.2 390.042 1396.94 390.042C1413.24 390.042 1425.94 386.176 1435.06 378.443C1444.17 370.433 1448.73 360.214 1448.73 347.786C1448.73 338.12 1445.83 330.248 1440.03 324.172C1434.5 318.096 1427.46 313.401 1418.9 310.087C1410.61 306.773 1399.01 303.182 1384.1 299.316C1365.32 294.344 1349.99 289.373 1338.12 284.402C1326.52 279.154 1316.57 271.145 1308.29 260.374C1300 249.602 1295.86 235.241 1295.86 217.289C1295.86 200.718 1300 186.218 1308.29 173.79C1316.57 161.361 1328.17 151.833 1343.09 145.204C1358 138.576 1375.26 135.262 1394.87 135.262C1422.77 135.262 1445.55 142.304 1463.23 156.39C1481.18 170.199 1491.12 189.256 1493.06 213.56H1440.86C1440.03 203.065 1435.06 194.089 1425.94 186.632C1416.83 179.175 1404.81 175.447 1389.9 175.447C1376.37 175.447 1365.32 178.899 1356.76 185.804C1348.2 192.708 1343.92 202.651 1343.92 215.632C1343.92 224.47 1346.54 231.788 1351.79 237.588C1357.31 243.112 1364.22 247.531 1372.5 250.845C1380.79 254.159 1392.11 257.75 1406.47 261.616C1425.53 266.864 1441 272.111 1452.87 277.359C1465.02 282.606 1475.24 290.754 1483.53 301.801C1492.09 312.573 1496.37 327.072 1496.37 345.3C1496.37 359.938 1492.37 373.747 1484.36 386.728C1476.62 399.709 1465.16 410.204 1449.97 418.213C1435.06 425.946 1417.38 429.813 1396.94 429.813Z",fill:"#313543"}),A.jsx("path",{d:"M1607.2 237.174V363.529C1607.2 372.09 1609.13 378.305 1613 382.171C1617.14 385.762 1624.04 387.557 1633.71 387.557H1662.71V426.913H1625.42C1604.16 426.913 1587.86 421.942 1576.54 411.999C1565.22 402.056 1559.55 385.9 1559.55 363.529V237.174H1532.63V198.646H1559.55V141.89H1607.2V198.646H1662.71V237.174H1607.2Z",fill:"#313543"}),A.jsx("path",{d:"M1753.46 231.788C1760.37 220.189 1769.48 211.213 1780.81 204.86C1792.41 198.232 1806.08 194.918 1821.82 194.918V243.802H1809.81C1791.3 243.802 1777.22 248.498 1767.55 257.888C1758.16 267.278 1753.46 283.573 1753.46 306.773V426.913H1706.24V198.646H1753.46V231.788Z",fill:"#313543"}),A.jsx("path",{d:"M2074.44 307.187C2074.44 315.749 2073.89 323.482 2072.79 330.386H1898.37C1899.76 348.615 1906.52 363.252 1918.67 374.3C1930.83 385.347 1945.74 390.871 1963.42 390.871C1988.83 390.871 2006.78 380.238 2017.27 358.972H2068.23C2061.32 379.962 2048.76 397.223 2030.53 410.756C2012.58 424.013 1990.21 430.642 1963.42 430.642C1941.6 430.642 1921.99 425.808 1904.59 416.142C1887.47 406.199 1873.93 392.39 1863.99 374.714C1854.32 356.762 1849.49 336.048 1849.49 312.573C1849.49 289.097 1854.19 268.521 1863.58 250.845C1873.24 232.893 1886.64 219.084 1903.76 209.417C1921.16 199.751 1941.05 194.918 1963.42 194.918C1984.96 194.918 2004.15 199.613 2021 209.003C2037.85 218.393 2050.97 231.65 2060.36 248.774C2069.75 265.621 2074.44 285.092 2074.44 307.187ZM2025.14 292.273C2024.87 274.873 2018.65 260.926 2006.5 250.431C1994.35 239.936 1979.3 234.688 1961.34 234.688C1945.05 234.688 1931.1 239.936 1919.5 250.431C1907.9 260.65 1901 274.597 1898.79 292.273H2025.14Z",fill:"#313543"}),A.jsx("path",{d:"M2105.18 311.744C2105.18 288.821 2109.87 268.521 2119.26 250.845C2128.93 233.169 2141.91 219.498 2158.2 209.832C2174.78 199.889 2193 194.918 2212.89 194.918C2230.84 194.918 2246.45 198.508 2259.7 205.689C2273.24 212.594 2284.01 221.293 2292.02 231.788V198.646H2339.66V426.913H2292.02V392.942C2284.01 403.714 2273.1 412.69 2259.29 419.87C2245.48 427.051 2229.74 430.642 2212.06 430.642C2192.45 430.642 2174.5 425.67 2158.2 415.728C2141.91 405.509 2128.93 391.423 2119.26 373.471C2109.87 355.243 2105.18 334.667 2105.18 311.744ZM2292.02 312.573C2292.02 296.83 2288.7 283.159 2282.07 271.559C2275.72 259.959 2267.3 251.121 2256.8 245.045C2246.31 238.969 2234.98 235.931 2222.83 235.931C2210.68 235.931 2199.36 238.969 2188.86 245.045C2178.37 250.845 2169.8 259.545 2163.18 271.145C2156.82 282.468 2153.65 296.001 2153.65 311.744C2153.65 327.487 2156.82 341.296 2163.18 353.172C2169.8 365.048 2178.37 374.162 2188.86 380.514C2199.63 386.59 2210.96 389.628 2222.83 389.628C2234.98 389.628 2246.31 386.59 2256.8 380.514C2267.3 374.438 2275.72 365.6 2282.07 354C2288.7 342.124 2292.02 328.315 2292.02 312.573Z",fill:"#313543"}),A.jsx("path",{d:"M2678.01 194.918C2695.96 194.918 2711.98 198.646 2726.07 206.103C2740.43 213.56 2751.62 224.608 2759.63 239.245C2767.91 253.883 2772.05 271.559 2772.05 292.273V426.913H2725.24V299.316C2725.24 278.878 2720.13 263.273 2709.91 252.502C2699.69 241.455 2685.75 235.931 2668.07 235.931C2650.39 235.931 2636.31 241.455 2625.81 252.502C2615.59 263.273 2610.49 278.878 2610.49 299.316V426.913H2563.67V299.316C2563.67 278.878 2558.56 263.273 2548.34 252.502C2538.12 241.455 2524.18 235.931 2506.5 235.931C2488.83 235.931 2474.74 241.455 2464.25 252.502C2454.03 263.273 2448.92 278.878 2448.92 299.316V426.913H2401.69V198.646H2448.92V224.746C2456.65 215.355 2466.46 208.036 2478.33 202.789C2490.21 197.541 2502.91 194.918 2516.44 194.918C2534.67 194.918 2550.97 198.784 2565.33 206.517C2579.69 214.251 2590.74 225.436 2598.47 240.074C2605.38 226.265 2616.15 215.355 2630.79 207.346C2645.42 199.06 2661.17 194.918 2678.01 194.918Z",fill:"#313543"}),A.jsx("path",{d:"M2816.41 311.744C2816.41 288.821 2821.1 268.521 2830.49 250.845C2840.16 233.169 2853.14 219.498 2869.43 209.832C2886.01 199.889 2904.23 194.918 2924.12 194.918C2942.07 194.918 2957.68 198.508 2970.93 205.689C2984.47 212.594 2995.24 221.293 3003.25 231.788V198.646H3050.89V426.913H3003.25V392.942C2995.24 403.714 2984.33 412.69 2970.52 419.87C2956.71 427.051 2940.97 430.642 2923.29 430.642C2903.68 430.642 2885.73 425.67 2869.43 415.728C2853.14 405.509 2840.16 391.423 2830.49 373.471C2821.1 355.243 2816.41 334.667 2816.41 311.744ZM3003.25 312.573C3003.25 296.83 2999.93 283.159 2993.3 271.559C2986.95 259.959 2978.53 251.121 2968.03 245.045C2957.54 238.969 2946.21 235.931 2934.06 235.931C2921.91 235.931 2910.59 238.969 2900.09 245.045C2889.6 250.845 2881.03 259.545 2874.41 271.145C2868.05 282.468 2864.88 296.001 2864.88 311.744C2864.88 327.487 2868.05 341.296 2874.41 353.172C2881.03 365.048 2889.6 374.162 2900.09 380.514C2910.86 386.59 2922.19 389.628 2934.06 389.628C2946.21 389.628 2957.54 386.59 2968.03 380.514C2978.53 374.438 2986.95 365.6 2993.3 354C2999.93 342.124 3003.25 328.315 3003.25 312.573Z",fill:"#313543"}),A.jsx("path",{d:"M3160.15 232.617C3168.16 221.57 3179.07 212.594 3192.88 205.689C3206.96 198.508 3222.57 194.918 3239.69 194.918C3259.85 194.918 3278.08 199.751 3294.37 209.417C3310.67 219.084 3323.51 232.893 3332.9 250.845C3342.29 268.521 3346.99 288.821 3346.99 311.744C3346.99 334.667 3342.29 355.243 3332.9 373.471C3323.51 391.423 3310.53 405.509 3293.96 415.728C3277.66 425.67 3259.57 430.642 3239.69 430.642C3222.01 430.642 3206.27 427.189 3192.46 420.285C3178.93 413.38 3168.16 404.542 3160.15 393.771V426.913H3112.92V120.348H3160.15V232.617ZM3298.93 311.744C3298.93 296.001 3295.62 282.468 3288.99 271.145C3282.64 259.545 3274.07 250.845 3263.3 245.045C3252.81 238.969 3241.48 235.931 3229.33 235.931C3217.46 235.931 3206.13 238.969 3195.36 245.045C3184.87 251.121 3176.3 259.959 3169.68 271.559C3163.32 283.159 3160.15 296.83 3160.15 312.573C3160.15 328.315 3163.32 342.124 3169.68 354C3176.3 365.6 3184.87 374.438 3195.36 380.514C3206.13 386.59 3217.46 389.628 3229.33 389.628C3241.48 389.628 3252.81 386.59 3263.3 380.514C3274.07 374.162 3282.64 365.048 3288.99 353.172C3295.62 341.296 3298.93 327.487 3298.93 311.744Z",fill:"#313543"}),A.jsx("path",{d:"M3440.92 120.348V426.913H3393.69V120.348H3440.92Z",fill:"#313543"}),A.jsx("path",{d:"M3712.13 307.187C3712.13 315.749 3711.58 323.482 3710.48 330.386H3536.07C3537.45 348.615 3544.21 363.252 3556.36 374.3C3568.52 385.347 3583.43 390.871 3601.11 390.871C3626.52 390.871 3644.47 380.238 3654.96 358.972H3705.92C3699.01 379.962 3686.45 397.223 3668.22 410.756C3650.27 424.013 3627.9 430.642 3601.11 430.642C3579.29 430.642 3559.68 425.808 3542.28 416.142C3525.16 406.199 3511.62 392.39 3501.68 374.714C3492.01 356.762 3487.18 336.048 3487.18 312.573C3487.18 289.097 3491.88 268.521 3501.27 250.845C3510.93 232.893 3524.33 219.084 3541.45 209.417C3558.85 199.751 3578.74 194.918 3601.11 194.918C3622.65 194.918 3641.84 199.613 3658.69 209.003C3675.54 218.393 3688.66 231.65 3698.05 248.774C3707.44 265.621 3712.13 285.092 3712.13 307.187ZM3662.83 292.273C3662.56 274.873 3656.34 260.926 3644.19 250.431C3632.04 239.936 3616.99 234.688 3599.04 234.688C3582.74 234.688 3568.79 239.936 3557.19 250.431C3545.59 260.65 3538.69 274.597 3536.48 292.273H3662.83Z",fill:"#313543"}),A.jsx("path",{d:"M3913.45 388.8H4010.81V426.913H3866.23V138.99H3913.45V388.8Z",fill:"#313543"}),A.jsx("path",{d:"M4259.51 307.187C4259.51 315.749 4258.96 323.482 4257.86 330.386H4083.45C4084.83 348.615 4091.59 363.252 4103.75 374.3C4115.9 385.347 4130.81 390.871 4148.49 390.871C4173.9 390.871 4191.85 380.238 4202.34 358.972H4253.3C4246.4 379.962 4233.83 397.223 4215.6 410.756C4197.65 424.013 4175.28 430.642 4148.49 430.642C4126.67 430.642 4107.06 425.808 4089.66 416.142C4072.54 406.199 4059 392.39 4049.06 374.714C4039.39 356.762 4034.56 336.048 4034.56 312.573C4034.56 289.097 4039.26 268.521 4048.65 250.845C4058.31 232.893 4071.71 219.084 4088.83 209.417C4106.23 199.751 4126.12 194.918 4148.49 194.918C4170.03 194.918 4189.22 199.613 4206.07 209.003C4222.92 218.393 4236.04 231.65 4245.43 248.774C4254.82 265.621 4259.51 285.092 4259.51 307.187ZM4210.22 292.273C4209.94 274.873 4203.72 260.926 4191.57 250.431C4179.42 239.936 4164.37 234.688 4146.42 234.688C4130.12 234.688 4116.17 239.936 4104.57 250.431C4092.97 260.65 4086.07 274.597 4083.86 292.273H4210.22Z",fill:"#313543"}),A.jsx("path",{d:"M4290.25 311.744C4290.25 288.821 4294.94 268.521 4304.33 250.845C4314 233.169 4326.98 219.498 4343.28 209.832C4359.85 199.889 4378.07 194.918 4397.96 194.918C4415.91 194.918 4431.52 198.508 4444.77 205.689C4458.31 212.594 4469.08 221.293 4477.09 231.788V198.646H4524.73V426.913H4477.09V392.942C4469.08 403.714 4458.17 412.69 4444.36 419.87C4430.55 427.051 4414.81 430.642 4397.13 430.642C4377.52 430.642 4359.57 425.67 4343.28 415.728C4326.98 405.509 4314 391.423 4304.33 373.471C4294.94 355.243 4290.25 334.667 4290.25 311.744ZM4477.09 312.573C4477.09 296.83 4473.77 283.159 4467.14 271.559C4460.79 259.959 4452.37 251.121 4441.87 245.045C4431.38 238.969 4420.06 235.931 4407.9 235.931C4395.75 235.931 4384.43 238.969 4373.93 245.045C4363.44 250.845 4354.88 259.545 4348.25 271.145C4341.89 282.468 4338.72 296.001 4338.72 311.744C4338.72 327.487 4341.89 341.296 4348.25 353.172C4354.88 365.048 4363.44 374.162 4373.93 380.514C4384.7 386.59 4396.03 389.628 4407.9 389.628C4420.06 389.628 4431.38 386.59 4441.87 380.514C4452.37 374.438 4460.79 365.6 4467.14 354C4473.77 342.124 4477.09 328.315 4477.09 312.573Z",fill:"#313543"}),A.jsx("path",{d:"M4633.99 231.788C4640.89 220.189 4650.01 211.213 4661.33 204.86C4672.93 198.232 4686.6 194.918 4702.34 194.918V243.802H4690.33C4671.83 243.802 4657.74 248.498 4648.07 257.888C4638.68 267.278 4633.99 283.573 4633.99 306.773V426.913H4586.76V198.646H4633.99V231.788Z",fill:"#313543"}),A.jsx("path",{d:"M4860.93 194.918C4878.88 194.918 4894.9 198.646 4908.98 206.103C4923.34 213.56 4934.53 224.608 4942.54 239.245C4950.55 253.883 4954.55 271.559 4954.55 292.273V426.913H4907.74V299.316C4907.74 278.878 4902.63 263.273 4892.41 252.502C4882.19 241.455 4868.24 235.931 4850.57 235.931C4832.89 235.931 4818.81 241.455 4808.31 252.502C4798.09 263.273 4792.98 278.878 4792.98 299.316V426.913H4745.76V198.646H4792.98V224.746C4800.72 215.355 4810.52 208.036 4822.4 202.789C4834.55 197.541 4847.39 194.918 4860.93 194.918Z",fill:"#313543"}),A.jsx("path",{d:"M5038.82 168.404C5030.26 168.404 5023.08 165.504 5017.28 159.704C5011.48 153.904 5008.58 146.723 5008.58 138.162C5008.58 129.6 5011.48 122.419 5017.28 116.619C5023.08 110.819 5030.26 107.919 5038.82 107.919C5047.11 107.919 5054.15 110.819 5059.95 116.619C5065.75 122.419 5068.65 129.6 5068.65 138.162C5068.65 146.723 5065.75 153.904 5059.95 159.704C5054.15 165.504 5047.11 168.404 5038.82 168.404ZM5062.02 198.646V426.913H5014.79V198.646H5062.02Z",fill:"#313543"}),A.jsx("path",{d:"M5239.2 194.918C5257.15 194.918 5273.17 198.646 5287.25 206.103C5301.61 213.56 5312.8 224.608 5320.81 239.245C5328.82 253.883 5332.82 271.559 5332.82 292.273V426.913H5286.01V299.316C5286.01 278.878 5280.9 263.273 5270.68 252.502C5260.46 241.455 5246.52 235.931 5228.84 235.931C5211.16 235.931 5197.08 241.455 5186.58 252.502C5176.36 263.273 5171.25 278.878 5171.25 299.316V426.913H5124.03V198.646H5171.25V224.746C5178.99 215.355 5188.79 208.036 5200.67 202.789C5212.82 197.541 5225.66 194.918 5239.2 194.918Z",fill:"#313543"}),A.jsx("path",{d:"M5485.03 194.918C5502.71 194.918 5518.31 198.508 5531.85 205.689C5545.66 212.594 5556.43 221.293 5564.16 231.788V198.646H5611.8V430.642C5611.8 451.632 5607.38 470.274 5598.55 486.569C5589.71 503.14 5576.87 516.121 5560.02 525.511C5543.45 534.901 5523.56 539.597 5500.36 539.597C5469.43 539.597 5443.74 532.278 5423.31 517.64C5402.87 503.278 5391.27 483.669 5388.51 458.812H5435.32C5438.91 470.688 5446.51 480.217 5458.11 487.398C5469.98 494.855 5484.07 498.583 5500.36 498.583C5519.42 498.583 5534.75 492.783 5546.35 481.183C5558.22 469.584 5564.16 452.736 5564.16 430.642V392.528C5556.15 403.299 5545.24 412.413 5531.43 419.87C5517.9 427.051 5502.43 430.642 5485.03 430.642C5465.15 430.642 5446.92 425.67 5430.35 415.728C5414.05 405.509 5401.07 391.423 5391.41 373.471C5382.02 355.243 5377.32 334.667 5377.32 311.744C5377.32 288.821 5382.02 268.521 5391.41 250.845C5401.07 233.169 5414.05 219.498 5430.35 209.832C5446.92 199.889 5465.15 194.918 5485.03 194.918ZM5564.16 312.573C5564.16 296.83 5560.85 283.159 5554.22 271.559C5547.87 259.959 5539.44 251.121 5528.95 245.045C5518.45 238.969 5507.13 235.931 5494.98 235.931C5482.82 235.931 5471.5 238.969 5461.01 245.045C5450.51 250.845 5441.95 259.545 5435.32 271.145C5428.97 282.468 5425.79 296.001 5425.79 311.744C5425.79 327.487 5428.97 341.296 5435.32 353.172C5441.95 365.048 5450.51 374.162 5461.01 380.514C5471.78 386.59 5483.1 389.628 5494.98 389.628C5507.13 389.628 5518.45 386.59 5528.95 380.514C5539.44 374.438 5547.87 365.6 5554.22 354C5560.85 342.124 5564.16 328.315 5564.16 312.573Z",fill:"#313543"}),A.jsx("path",{d:"M2184.73 697.313C2217.58 716.28 2217.58 763.697 2184.73 782.664L1991.16 894.422C1947.5 919.63 1898.63 870.769 1923.84 827.107L1959.92 764.627C1968.72 749.381 1968.72 730.596 1959.92 715.35L1923.84 652.868C1898.63 609.206 1947.49 560.345 1991.16 585.553L2184.73 697.313Z",fill:"#F8981D"}),A.jsx("path",{d:"M2433.01 610.672C2460.47 610.672 2484.62 617.305 2505.32 630.7C2526.06 644.117 2541.15 663.145 2550.59 687.606L2552.75 693.183H2505.75L2504.65 690.796C2498.16 676.682 2488.82 665.936 2476.64 658.408L2476.55 658.351L2476.53 658.342C2465.01 651.11 2451.1 647.29 2434.62 647.058L2433.01 647.047C2416.54 647.047 2401.88 650.875 2388.95 658.458C2376.03 666.03 2365.87 676.833 2358.46 690.986L2358.45 691.01C2351.07 704.868 2347.3 721.321 2347.3 740.502C2347.3 759.417 2351.06 775.869 2358.43 789.973L2359.15 791.292L2359.85 792.528C2367.11 805.216 2376.81 815.077 2388.95 822.194C2401.88 829.776 2416.54 833.605 2433.01 833.605L2434.62 833.594C2451.16 833.367 2465.11 829.639 2476.66 822.584C2488.83 815.057 2498.16 804.314 2504.65 790.206L2505.75 787.821H2552.76L2550.59 793.409C2541.14 817.639 2526.05 836.542 2505.32 849.952L2505.25 850.001L2505.22 850.015C2484.54 863.133 2460.42 869.627 2433.01 869.627C2409.57 869.627 2388.1 864.183 2368.67 853.253L2368.65 853.241L2368.64 853.238L2368.54 853.182L2368.52 853.17C2349.38 842.002 2334.22 826.581 2323.09 806.976C2311.9 787.284 2306.35 765.091 2306.35 740.502C2306.35 715.913 2311.9 693.72 2323.09 674.028C2334.2 654.223 2349.33 638.697 2368.44 627.528L2368.46 627.518L2368.63 627.418C2388.07 616.242 2409.56 610.672 2433.01 610.672Z",fill:"#313543"}),A.jsx("path",{d:"M2637.06 869.627H2596.11V610.676H2637.06V869.627Z",fill:"#313543"}),A.jsx("path",{d:"M2728.31 869.627H2687.37V684.984H2728.31V869.627Z",fill:"#313543"}),A.jsx("path",{d:"M2708.2 610.672C2715.28 610.672 2721.38 613.266 2726.23 618.369L2726.7 618.851C2731.48 623.867 2733.89 630.021 2733.89 637.082C2733.89 644.372 2731.32 650.693 2726.23 655.795C2721.38 660.898 2715.28 663.492 2708.2 663.492C2700.9 663.492 2694.57 660.919 2689.47 655.814C2684.36 650.709 2681.79 644.381 2681.79 637.082C2681.79 629.784 2684.36 623.456 2689.47 618.351C2694.57 613.245 2700.9 610.672 2708.2 610.672Z",fill:"#313543"}),A.jsx("path",{d:"M3454.19 869.627H3413.24V684.984H3454.19V869.627Z",fill:"#313543"}),A.jsx("path",{d:"M3434.07 610.672C3441.15 610.672 3447.25 613.266 3452.1 618.369L3452.57 618.851C3457.35 623.867 3459.76 630.021 3459.76 637.082C3459.76 644.372 3457.19 650.693 3452.1 655.795C3447.25 660.898 3441.15 663.492 3434.07 663.492C3426.77 663.492 3420.44 660.919 3415.34 655.814C3410.23 650.709 3407.66 644.381 3407.66 637.082C3407.66 629.784 3410.23 623.456 3415.34 618.351C3420.44 613.245 3426.77 610.672 3434.07 610.672Z",fill:"#313543"}),A.jsx("path",{d:"M2855.46 684.984C2855.61 684.983 2855.92 684.978 2856.13 684.978H2856.15L2857.22 684.984C2857.4 684.983 2857.71 684.978 2857.95 684.978L2858.99 684.983C2880.69 685.145 2898.92 690.402 2913.4 701.052C2928.28 711.846 2938.05 726.831 2942.73 745.767L2943.99 750.851H2901.14L2900.29 747.879C2900.27 747.814 2900.27 747.804 2900.25 747.762C2897.15 740.415 2892.52 734.416 2886.35 729.698L2886.33 729.687L2886.26 729.634C2878.65 723.683 2869.09 720.5 2857.31 720.301L2856.12 720.292C2840.34 720.296 2827.83 726.106 2818.19 737.764L2818.19 737.775L2818.13 737.844C2815.18 741.35 2812.67 745.335 2810.59 749.816C2807.89 757.473 2806.49 766.507 2806.49 776.989L2806.49 777.999L2806.5 778.969C2806.67 788.881 2808.1 797.487 2810.72 804.846C2812.77 809.3 2815.25 813.277 2818.15 816.791C2827.79 828.486 2840.33 834.313 2856.13 834.313L2857.28 834.304C2869.11 834.117 2878.7 831.032 2886.32 825.282C2892.41 820.687 2897.07 814.545 2900.3 806.734C2900.3 806.722 2900.3 806.709 2900.31 806.691L2901.18 803.752H2944.1L2942.71 808.914C2937.8 827.227 2927.92 842.045 2913.12 853.21L2913 853.296L2912.97 853.314C2898.33 864.1 2880.25 869.453 2858.97 869.618L2857.95 869.622C2857.77 869.622 2857.51 869.619 2857.38 869.618L2856.15 869.626H2856.13C2855.8 869.626 2855.44 869.621 2855.16 869.618L2854.38 869.622H2854.37C2837.19 869.622 2821.74 865.856 2808.1 858.229L2808.08 858.218L2808.01 858.173C2794.99 850.75 2784.7 840.333 2777.17 827.004L2777.16 826.992L2777.16 826.98L2776.47 825.731L2776.46 825.719L2776.45 825.707C2769.08 812.144 2765.35 796.437 2765.12 778.71V778.69L2765.11 777.011V776.989C2765.11 758.76 2768.85 742.675 2776.46 728.875L2776.47 728.871L2777.16 727.621L2777.16 727.61L2777.17 727.598C2784.7 714.269 2794.99 703.852 2808.01 696.429L2808.08 696.384L2808.1 696.373C2821.74 688.745 2837.19 684.978 2854.37 684.978H2854.39L2855.46 684.984Z",fill:"#313543"}),A.jsx("path",{d:"M3263.09 819.015L3339.01 610.672H3382.34L3284.63 869.627H3241.19L3143.47 610.672H3187.17L3263.09 819.015Z",fill:"#313543"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3579.56 684.979C3596.39 684.979 3611.44 688.653 3624.61 696.112C3637.73 703.546 3647.83 713.861 3654.86 727.003L3655.42 728.02L3655.42 728.03L3655.43 728.041C3661.37 739.04 3664.7 751.247 3665.48 764.596C3665.59 766.624 3665.65 768.679 3665.65 770.757V770.77L3665.65 771.792V771.802C3665.61 777.049 3665.29 782.557 3664.7 788.323L3664.32 792.002H3532.34C3533.17 799.022 3534.91 805.217 3537.53 810.632C3539.52 813.939 3541.84 816.954 3544.48 819.682C3554.3 829.378 3566 834.224 3579.83 834.311C3591.23 834.266 3600.38 831.308 3607.58 825.684C3613.44 821.051 3617.94 815.284 3621.12 808.332L3622.21 805.936H3664.77L3663.31 811.144C3658.45 828.441 3648.71 842.604 3634.18 853.528L3634.17 853.535L3634.16 853.543L3634.15 853.552C3619.49 864.349 3601.42 869.626 3580.2 869.626C3580.13 869.626 3580.03 869.625 3580.03 869.625C3580.01 869.625 3579.99 869.624 3579.97 869.624L3579.58 869.626H3579.56C3562.72 869.626 3547.46 865.839 3533.91 858.186L3533.9 858.182L3533.89 858.177L3533.89 858.174L3533.88 858.171C3520.57 850.532 3510.09 839.729 3502.47 825.857L3502.46 825.832L3502.38 825.696C3494.98 811.95 3491.22 796.246 3490.99 778.694V778.673L3490.98 777.012V776.991C3490.98 758.771 3494.63 742.606 3502.06 728.618C3509.37 714.866 3519.58 704.213 3532.67 696.762L3533.3 696.41C3546.87 688.754 3562.33 684.979 3579.56 684.979ZM3578.13 720.288C3565.7 720.288 3555.27 724.021 3546.6 731.409C3539.22 737.84 3534.53 746.522 3532.67 757.745H3624C3623.45 750.675 3621.47 744.669 3618.16 739.612L3618.12 739.557L3618.12 739.549C3614.12 733.288 3608.67 728.594 3601.67 725.433L3601.65 725.428L3601.61 725.408L3601.57 725.389L3601.54 725.375C3594.62 722.008 3586.84 720.288 3578.13 720.288Z",fill:"#313543"}),A.jsx("path",{d:"M3892.36 869.627H3853.2L3815.15 744.253L3777.11 869.627H3737.96L3680 684.98H3721.46L3757.71 817.294L3796.83 684.98H3835.72L3873.87 817.207L3909.44 684.98L3949.85 684.978L3892.36 869.627Z",fill:"#313543"}),A.jsx("path",{d:"M3022.18 756.349L3084.15 684.984H3136.42L3049.47 776.988L3136.72 869.627H3085.46L3022.18 798.395V869.627H2981.23V610.676H3022.18V756.349Z",fill:"#313543"})]})})}var oU=(e=>(e.Default="default",e.Lite="lite",e.Exchange="exchange",e.Analytics="analytics",e.Cloud="cloud",e.Streamable="streamable",e.Xmas="xmas",e.Plugin="plugin",e.Curator="curator",e))(oU||{});const po="ClickView",WK="Streamable Learning",TN={default:{imageUrls:{default:["/images/backgrounds/bg-1.png","/images/backgrounds/bg-2.png","/images/backgrounds/bg-3.png","/images/backgrounds/bg-4.png","/images/backgrounds/bg-5.png"]},imageType:"background",logoComponent:$o,bannerSpacer:Di,productName:po},lite:{imageUrls:{default:["/images/backgrounds/products/lite-topic-1-v2.png","/images/backgrounds/products/lite-topic-2-v2.png","/images/backgrounds/products/lite-topic-3-v2.png","/images/backgrounds/products/lite-discover-1-v2.png","/images/backgrounds/products/lite-discover-2-v2.png","/images/backgrounds/products/lite-student-1-v2.png","/images/backgrounds/products/lite-student-2-v2.png","/images/backgrounds/products/lite-event-1-v2.png"]},imageType:"image",logoComponent:$o,backgroundColor:"#38A2E8",bannerSpacer:Di,productName:po},exchange:{imageUrls:{default:["/images/backgrounds/products/exchange-1.png"]},imageType:"image",logoComponent:$o,backgroundColor:"#F8981D",bannerSpacer:Di,productName:po},analytics:{imageUrls:{default:["/images/backgrounds/products/analytics-1-v4.png"]},imageType:"image",logoComponent:$o,backgroundColor:"#4C68DB",bannerSpacer:Di,productName:po},cloud:{imageUrls:{default:["/images/backgrounds/products/cloud-1-v2.png"]},imageType:"image",logoComponent:$o,backgroundColor:"#40C2BB",bannerSpacer:Di,productName:po},streamable:{imageUrls:{default:["/images/backgrounds/products/streamable-1.png","/images/backgrounds/products/streamable-2.png"]},imageType:"image",logoComponent:GK,backgroundColor:"#D6F0FC",bannerSpacer:Di,productName:WK},xmas:{imageUrls:{default:["/images/backgrounds/xmas/2026-promo1-bg.png","/images/backgrounds/xmas/2026-promo2-bg.png","/images/backgrounds/xmas/2026-promo3-bg.png","/images/backgrounds/xmas/2026-promo4-bg.png","/images/backgrounds/xmas/2026-promo5-bg.png","/images/backgrounds/xmas/2026-promo6-bg.png","/images/backgrounds/xmas/2026-promo7-bg.png"]},imageType:"background",logoComponent:ZK,bannerSpacer:Di,productName:po},plugin:{imageUrls:{default:[]},imageType:"none",logoComponent:$o,bannerSpacer:Di,banner:"plugin",productName:po},curator:{imageUrls:{default:["/images/backgrounds/products/curator-1.png"]},imageType:"image",backgroundColor:"#49c5b1",logoComponent:$o,bannerSpacer:Di,productName:po,title:"Thank you for all the years of service, ClickView Central!"}},za={getDefinition(e){return TN[e]||TN[oU.Default]}},KK={success:e=>{window.location.href=e.data.redirectUrl},"continue-login":(e,r)=>{const{returnUrl:t}=r;dt.post("/ajax/login/continue",{returnUrl:t}).then(a=>Pt(a,r)).catch(a=>{throw a})}};function Pt(e,r,t){const a=KK[e.step];if(a){a(e,r);return}if(!!!wB[e.step])throw Error(`Unknown step '${e.step}'`);r.navigate({step:e.step,...t,...e.data})}function sU(e){return A.jsxs("div",{className:e.className,children:["Don't have an account? ",A.jsx("a",{className:"info-link btn-link",href:e.signInUrl,children:"Create account"})]})}const uU={getStorage(){return window.localStorage?window.localStorage:window.sessionStorage?window.sessionStorage:uU.getMemoryStorage()},getMemoryStorage(){const e=new Map;return{setItem(r,t){e.set(r,t)},getItem(r){return e.get(r)},removeItem(r){e.delete(r)},clear(){e.clear()},get length(){return e.size},key(r){return Array.from(e.values())[r]}}}};var Kn=(e=>(e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.MemoryStorage="memoryStorage",e))(Kn||{});class $_{constructor(r){if(this.cachePrefix="_cv:",this.expireTime=3600,this.type=r.type,this.hasSupport=this.hasBrowserSupport(),!!this.hasSupport)try{this.type==="memoryStorage"?this.storage=uU.getMemoryStorage():this.storage=window[this.type]}catch{}}isAvailable(){return this.hasSupport}get(r){if(!this.hasSupport)return;const t=this.storage.getItem(r);try{return JSON.parse(t)}catch{return t}}set(r,t){if(this.hasSupport)try{return this.storage.removeItem(r),typeof t!="string"?(this.storage.setItem(r,JSON.stringify(t)),!0):(this.storage.setItem(r,t),!0)}catch{return!1}}remove(r){if(this.hasSupport)return this.storage.removeItem(r)}length(){if(this.hasSupport)return this.storage.length}clear(){if(this.hasSupport)return this.storage.clear()}cacheSet(r,t,a=this.expireTime){this.cacheClean();const o={time:this.getCurrentTime()+a*1e3,data:typeof t<"u"&&t!==null&&t};return this.set(`${this.cachePrefix}${r}`,o)}cacheGet(r){const t=`${this.cachePrefix}${r}`,a=this.get(t);return a?this.isExpired(a)?(this.remove(t),null):a.data:null}cacheExists(r){const t=`${this.cachePrefix}${r}`,a=this.get(t);return a?this.isExpired(a)?(this.remove(t),!1):!0:!1}cacheRemove(r){return this.remove(`${this.cachePrefix}${r}`)}cacheFlush(){this.cacheClean()}cacheClean(){if(this.hasSupport)for(let r=0;r<this.storage.length;r++){const t=this.storage.key(r);if(t.indexOf(this.cachePrefix)===0){const a=this.get(t);a&&a.time&&this.isExpired(a)&&this.remove(t)}}}isExpired(r){return r.time<this.getCurrentTime()}getCurrentTime(){return new Date().getTime()}hasBrowserSupport(){if(this.type==="memoryStorage")return!0;try{return this.type in window&&window[this.type]!==null}catch{return!1}}}class YK extends $_{static get Instance(){return this.instance||(this.instance=new this({type:"localStorage"}))}}class JK extends $_{static get Instance(){return this.instance||(this.instance=new this({type:"sessionStorage"}))}}class XK extends $_{static get Instance(){return this.instance||(this.instance=new this({type:"memoryStorage"}))}}const Tn=YK.Instance,RN=JK.Instance,ON=XK.Instance,kN="r",Uf="cv:r",Ff="cv:r:e",Mc="referrer",PN="cv:originalReferrer",Zb=28800,NN=["internalReferrer"],_i={getDecodedAttributionData(){const e=Tn.cacheGet(Uf);if(e&&Object.keys(e).length>0)return e;const r=jN();return r==null?void 0:r.decoded},getEncodedAttributionData(){const e=Tn.cacheGet(Ff);return e!=null&&e.length?e:jN().encoded},getProfileId(){const e=_i.getDecodedAttributionData();return(e==null?void 0:e.profileId)??null},setAttributionData(e){if(!e)return;const r=lU(e);Hb(r,e)},decodeRValue(e){if(e)try{const r=atob(e),t=JSON.parse(r);if(!z_(t))throw Error(`Decoded R value is invalid: ${JSON.stringify(t)}`);return t}catch(r){const t=r instanceof Error?r.message:r==null?void 0:r.toString();console.error(t)}}};function jN(){const e=Tn.cacheGet(Uf),r=Tn.cacheGet(Ff);return z_(e)?{encoded:r,decoded:e}:QK()}function QK(){Tn.cacheRemove(Uf),Tn.cacheRemove(Ff);const e=rY(),r=_i.decodeRValue(e);if(r)return Hb(e,r),{decoded:r,encoded:e};const t={internalReferrer:window.location.origin+window.location.pathname,originalReferrer:eY()},a=lU(t);return Hb(a,t),{decoded:t,encoded:a}}function z_(e){return!e||typeof e!="object"||Object.keys(e).length<NN.length?!1:NN.every(r=>typeof e[r]=="string")}function eY(){const e=Tn.cacheGet(PN);if(e&&typeof e=="string")return e;let r=document.referrer??"";if(window.URLSearchParams){const t=new URLSearchParams(window.location.search),a=t.has(Mc)&&t.get(Mc);t.has(Mc)&&t.get(Mc)&&(r=a)}return r&&Tn.cacheSet(PN,r,Zb),r}function rY(){if(!window.URLSearchParams)return;const e=new URLSearchParams(window.location.search);if(e.has(kN))return e.get(kN)}function lU(e){if(z_(e))try{return btoa(JSON.stringify(e))}catch{console.error(`R value could not be encoded: ${JSON.stringify(e)}`)}}function Hb(e,r){try{Tn.cacheSet(Uf,r,Zb),Tn.cacheSet(Ff,e,Zb)}catch{console.error("Could not store attribution data in session storage")}}const tY=28800,qN="cv:utmparams",Vb=[["source","utm_source"],["medium","utm_medium"],["campaign","utm_campaign"],["term","utm_term"],["content","utm_content"]],nY=Vb.reduce((e,[r])=>({...e,[r]:r}),{}),fs={getUtmParameters(){if(!window.URLSearchParams)return null;const e=new URLSearchParams(window.location.search),r={},t=([a,o])=>{e.has(o)&&(r[a]=e.get(o))};return Vb.forEach(t),DN(r)},setUtmParameters(e){if(!e)return;const r={},t=a=>{nY[a]&&(r[a]=e[a])};return Object.keys(e).forEach(t),DN(r)},getURLSearchParams(){if(!window.URLSearchParams)return null;const e=new URLSearchParams,r=fs.getUtmParameters();return r?(Vb.forEach(([t,a])=>{r[t]&&e.set(a,r[t])}),e):null}};function DN(e){if(Object.keys(e).length)return Tn.cacheSet(qN,e,tY),e;const r=Tn.cacheGet(qN);return r&&typeof r=="object"&&Object.keys(r).length?r:null}function Z_(e){function r(s){dt.post("/ajax/login/ip-auth",{id:s.id,returnUrl:e.returnUrl}).then(u=>Pt(u,e)).catch(u=>{console.warn(u)})}function t(s){window.location.href=s.url}function a(){e.navigate({step:e.backStep})}function o(){if(!window.URLSearchParams)return e.signUpUrl;const s=fs.getURLSearchParams()||new URLSearchParams,u=_i.getEncodedAttributionData();return u&&s.set("r",u),e.signUpUrl+"?"+s.toString()}return{onClickIpAuthGuest:r,onClickProvider:t,onClickBack:e.backStep?a:null,getSignInUrl:o}}const aY="_globalIdpButton_gzfrv_1",iY="_globalIdpImage_gzfrv_5",LN={globalIdpButton:aY,globalIdpImage:iY};function cU(e){const{idp:r,onClick:t,backgroundColour:a="F8981D",foregroundColour:o="FFF",last:s,isGlobalIdp:u}=e,v=s?"":"mb-3",d={backgroundColor:`#${r.backgroundColour||a}`,color:`#${r.foregroundColour||o}`},h={},f=u?`btn btn-lg btn-outline-dark w-100 ${v} ${LN.globalIdpButton}`:`btn btn-lg w-100 ${v}`,c=u?h:d,_=u?`Continue with ${r.name}`:r.name;return A.jsxs("button",{className:f,style:c,onClick:()=>t(r),children:[u&&r.logoUrl&&A.jsx("img",{src:r.logoUrl,className:LN.globalIdpImage,alt:`${r.name} logo`}),_]})}const oY="_divider_1q6pq_1",sY={divider:oY};function H_(e){var a;const r=((a=e.idps)==null?void 0:a.filter(o=>!!o.visible))||[];if(!r.length)return A.jsx(A.Fragment,{});function t(o){const s=window.location.pathname+window.location.search;let u=`/challenge?idp=${o.id}&redirectUrl=`+encodeURIComponent(s);"attribution"in e&&(u+="&attribution="+encodeURIComponent(e.attribution)),window.location.href=u}return A.jsxs("div",{className:`${e.className?e.className:""}`,children:[A.jsx("div",{className:`my-4 border-bottom position-relative ${sY.divider}`}),r.map((o,s)=>A.jsx(cU,{idp:o,onClick:"onClick"in e?e.onClick:t,attribution:"attribution"in e?e.attribution:null,isGlobalIdp:!0},s))]})}function Ht(e){return A.jsx("span",{id:`${e.name}Error`,className:`${e.className} invalid-feedback d-block`,role:"status",children:e.children})}function uY(e){var T;const[r,t]=Nr.useState(e.username||""),[a,o]=Nr.useState(!1),[s,u]=Nr.useState(""),v=za.getDefinition(e==null?void 0:e.theme),d=v!=null&&v.productName?`Sign in to ${v.productName}`:"Sign in",h=!!((T=e.globalIdps)!=null&&T.length),f=e.signUpUrl&&e.showSignUp,{onClickProvider:c,onClickBack:_,getSignInUrl:E}=Z_(e);function S(b){if(b.preventDefault(),!r){u("Please provide a username");return}o(!0),dt.post("/ajax/login/check-user",{username:r,returnUrl:e.returnUrl}).then(I=>Pt(I,e,{username:r})).catch(I=>{o(!1),u(I.userMessage||"Something went wrong")})}function w(b){t(b.target.value.trim()),b.target.value&&u("")}return A.jsxs(A.Fragment,{children:[A.jsx(yt,{theme:e.theme,title:d,onClickBack:_}),A.jsxs("form",{onSubmit:S,children:[A.jsxs("div",{className:"mb-3",children:[A.jsx(xl,{name:"username",type:"username",isError:!!s,value:r,onChange:w,"aria-invalid":!!s,"aria-errormessage":"usernameError"}),!!s&&A.jsx(Ht,{name:"username",children:s})]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:a,children:"Continue"})]}),f&&A.jsx(sU,{className:"mt-4",signInUrl:E()}),h&&A.jsx(H_,{idps:e.globalIdps.map(b=>({...b,visible:!0})),onClick:c})]})}function lY(e){var c;const r=za.getDefinition(e==null?void 0:e.theme),t=r!=null&&r.productName?`Sign in to ${r.productName}`:"Sign in",a=!!((c=e.globalIdps)!=null&&c.length),o=e.signUpUrl&&e.showSignUp,{onClickIpAuthGuest:s,onClickProvider:u,onClickBack:v,getSignInUrl:d}=Z_(e);function h(){e.navigate({step:"username-input",backStep:"username"})}function f(){var _;((_=e.ipAuthGuests)==null?void 0:_.length)===1?s(e.ipAuthGuests[0]):e.navigate({step:"guest-selection",backStep:"username"})}return A.jsxs(A.Fragment,{children:[A.jsx(yt,{theme:e.theme,title:t,onClickBack:v}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100 mb-3",showSpinner:!1,onClick:h,children:"Sign in with username or email"}),A.jsx(gn,{className:"btn btn-outline-dark btn-lg w-100",showSpinner:!1,onClick:f,children:"Sign in as guest"}),o&&A.jsx(sU,{className:"mt-4",signInUrl:d()}),a&&A.jsx(H_,{idps:e.globalIdps.map(_=>({..._,visible:!0})),onClick:u})]})}function V_(){return A.jsx("div",{className:"svg-container",children:A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M15.695 11.267c.407.41.407 1.056 0 1.466L9.79 18.696a1.046 1.046 0 0 1-1.474 0l-.01-.01a1.034 1.034 0 0 1 0-1.467L13.474 12l-5.17-5.22a1.034 1.034 0 0 1 0-1.465l.012-.011a1.046 1.046 0 0 1 1.474 0l5.905 5.963z"})})})}const cY="_showIconOnHover_1ebbv_1",fY={showIconOnHover:cY};function dY({icon:e}){return A.jsx(A.Fragment,{children:e&&A.jsx("img",{alt:"icon",className:"w-100 h-100 border rounded-circle",src:e})})}function G_(e){const{text:r,onClick:t,className:a,icon:o,iconColor:s="dark",showIconOnHover:u=!0}=e,v={};let d;return typeof o=="function"?d=o:d=()=>A.jsx(dY,{icon:o}),A.jsx("button",{className:Ua("btn btn-outline-dark btn-lg w-100 border-secondary",u&&fY.showIconOnHover,a),onClick:t,style:v,children:A.jsxs("div",{className:"py-1 d-flex align-items-center",children:[d&&A.jsx("span",{className:`icon-circle rounded-circle text-white me-2 bg-${s} d-flex justify-content-center align-items-center`,children:A.jsx(d,{})}),A.jsx("span",{className:"h6 mb-0 w-75 text-start",children:r}),A.jsx("span",{className:"ms-auto",children:A.jsx(V_,{})})]})})}function al(){return A.jsx("div",{className:"svg-container lg",children:A.jsx("svg",{viewBox:"0 0 18 18",className:"align-top",children:A.jsx("path",{d:"M12.648 14.798a.914.914 0 0 1-.908-.907c0-.497.411-.908.908-.908.496 0 .907.411.907.908a.914.914 0 0 1-.907.907zm0-1.044a.135.135 0 0 0-.137.137c0 .086.051.137.137.137.085 0 .137-.052.137-.137a.135.135 0 0 0-.137-.137zm0-.086a.38.38 0 0 1-.377-.376V8.805L8.81 6.94c-.187-.103-.256-.342-.153-.514.103-.188.342-.256.513-.154l3.665 1.97c.12.068.205.205.205.342v4.709a.384.384 0 0 1-.393.377zM8.966 10.62a.606.606 0 0 1-.171-.034l-7.072-3.39a.4.4 0 0 1-.223-.36c0-.154.086-.291.223-.342l7.14-3.254a.362.362 0 0 1 .325 0l7.09 3.254a.394.394 0 0 1 .222.342.357.357 0 0 1-.223.343l-7.14 3.407a.606.606 0 0 1-.171.034zM2.801 6.853l6.165 2.962 6.216-2.962-6.165-2.825zm6.113 6.096c-3.561 0-4.983-2.106-5.034-2.209a.486.486 0 0 1-.068-.205V8.138a.38.38 0 0 1 .376-.377.38.38 0 0 1 .377.377v2.277c.291.36 1.558 1.764 4.332 1.764 2.74 0 4.161-1.405 4.504-1.781V8.274a.38.38 0 0 1 .377-.376.38.38 0 0 1 .376.376v2.26a.429.429 0 0 1-.068.223c-.035.103-1.644 2.192-5.172 2.192z",style:{strokeWidth:.0275199}})})})}const Zs={buildAvatarUrl(e,r){if(e)return r.size?`${e}${e.includes("?")?"&":"?"}size=${r.size}`:e}};function hY(e){return A.jsx("div",{className:"d-flex flex-column gap-3",children:e.ipAuthGuests.map(r=>A.jsx(G_,{onClick:()=>{e.onClickGuest(r)},text:r.customer.name,icon:Zs.buildAvatarUrl(r.customer.logoUrl,{size:"small"})||al},r.id))})}function vY(){return A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"})})}const pY="_clearInput_1l19p_1",gY="_clearableInput_1l19p_8",MN={clearInput:pY,clearableInput:gY},Hs=je.forwardRef((e,r)=>{const{onClickClear:t,showClearButton:a,clearClassName:o,...s}=e;return A.jsxs("div",{className:"position-relative",children:[A.jsx("input",{...s,ref:r,className:`${e.className} ${MN.clearableInput}`}),(!!e.value||a)&&A.jsx("span",{className:`${MN.clearInput} position-absolute cursor-pointer text-secondary ${o||""}`,role:"button",onClick:t,onKeyDown:u=>u.key==="Enter"&&t(),tabIndex:0,children:A.jsx("div",{className:"d-inline-block svg-container md",children:A.jsx(vY,{})})})]})});function W_(e){const[r,t]=je.useState(0),a=je.useRef(null),[o,s]=je.useState(!!e.hideInitially);function u(){var f;a.current&&((f=a.current.children[r-1])==null||f.scrollIntoView({block:"center"}))}function v(f){if(e.hideOnEnter&&s(!1),f.code==="ArrowDown"){f.stopPropagation(),f.preventDefault();let c=r+1;c>e.itemCount&&(c=1),t(c),u();return}if(f.code==="ArrowUp"){f.stopPropagation(),f.preventDefault();let c=r-1;c<=0&&(c=e.itemCount),t(c),u();return}if(f.code==="Enter"&&r>0){f.stopPropagation(),f.preventDefault(),e.onSelected(r-1),e.hideOnEnter&&s(!0);return}t(0)}function d(){e.hideOnBlur&&s(!1)}function h(){e.hideOnBlur&&s(!0)}return{selectedIndex:r,onKeyDown:v,containerRef:a,hide:o,onFocus:d,onBlur:h}}const Wo=je.forwardRef((e,r)=>{function t(o){if(e.onKeyDown)return e.onKeyDown(o);if(o.key===" "&&o.preventDefault(),o.key==="Enter"||o.key===" "){if(e.disabled||!e.onClick)return;a(o)}}function a(...o){if(!(e.disabled||!e.onClick))return e.onClick(...o)}return A.jsx("div",{...e,ref:r,role:"button",tabIndex:e.tabIndex||0,className:`${e.className?e.className:""} ${e.disabled?"":"cursor-pointer"}`,onKeyDown:t,onClick:a,style:e.style?e.style:{},children:e.children})}),mY="_inputFocused_bwtre_1",yY="_dropdown_bwtre_4",bY="_suggestionContainer_bwtre_7",_Y="_suggestionItem_bwtre_16",SY="_large_bwtre_20",wY="_input_bwtre_1",EY="_selected_bwtre_39",CY="_clearInput_bwtre_43",xY="_clear_bwtre_43",ri={inputFocused:mY,dropdown:yY,suggestionContainer:bY,suggestionItem:_Y,large:SY,input:wY,selected:EY,clearInput:CY,clear:xY};function IY(e){const{items:r,getName:t,onItemClick:a,selectedIndex:o}=e;return A.jsx(A.Fragment,{children:r.map((s,u)=>A.jsx(Wo,{className:`${ri.suggestionItem} ${o-1===u?ri.selected:""}`,onKeyDown:v=>v.key==="Enter"&&a(s),onMouseDown:()=>a(s),onClick:()=>a(s),children:t(s)},u))})}function Il(e){const r=je.useRef(null),[t,a]=je.useState(""),[o,s]=je.useState([]),{selectedIndex:u,onKeyDown:v,containerRef:d,hide:h,onBlur:f,onFocus:c}=W_({onSelected:_,itemCount:e.cantFindText?e.items.length+1:e.items.length,hideOnBlur:!0,hideInitially:!0,hideOnEnter:!0});function _(g){if(g===o.length){e.onCantFind();return}const x=o[g];x&&I(x)}const E=!!e.item,S=e.cantFindText?(o==null?void 0:o.length)+1:o==null?void 0:o.length;je.useEffect(()=>{if(!E){if(!t.length){b();return}if(!E&&t.length>1){b(t);return}}},[t,E]);function w(g){e.item&&e.clearData(),g!==t&&a(g)}function T(){w(""),r.current.focus()}function b(g){if(!g){s(e.items);return}const x=e.items.filter(R=>e.getName(R).toLowerCase().includes(g.toLowerCase()));s(x)}function I(g){a(e.getName(g)),e.onSelect(g),s(e.items)}const m=S&&!e.disabled&&!h;let p=`form-select ${m?ri.inputFocused:ri.input} ${ri.clearInput} cursor-pointer`,y="form-group position-relative";return e.size==="lg"&&(p+=" form-select-lg",y+=` ${ri.large}`),A.jsxs("div",{className:y,children:[A.jsx(Hs,{id:e.id,value:t,onChange:g=>w(g.currentTarget.value),ref:r,className:p,type:"text",autoComplete:"off",placeholder:e.placeholder,disabled:e.disabled,onClickClear:T,onKeyDown:v,onFocus:c,onBlur:f,clearClassName:ri.clear}),A.jsx("div",{className:`position-absolute z-1 w-100 ${ri.dropdown} ${h?"d-none":""}`,children:A.jsxs("div",{className:`${ri.suggestionContainer} ${m?"":"d-none"}`,ref:d,children:[S&&A.jsx(IY,{items:o,onItemClick:I,getName:e.getName,selectedIndex:u}),e.cantFindText&&A.jsx("div",{className:`info-link ${ri.suggestionItem} ${u===o.length+1?ri.selected:""}`,onKeyDown:g=>g.key==="Enter"&&e.onCantFind(),onMouseDown:e.onCantFind,onClick:e.onCantFind,children:e.cantFindText})]})})]})}function AY(e){const[r,t]=Nr.useState(null);return A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"mb-3",children:A.jsx(Il,{id:"guest",item:r,items:e.ipAuthGuests,onSelect:a=>t(a),getName:a=>a.customer.name,clearData:()=>t(null),placeholder:"Select a school",size:"lg"})}),A.jsx("button",{className:"btn btn-lg btn-dark w-100",disabled:!r,onClick:()=>{e.onClickGuest(r)},children:"Continue"})]})}const TY=4;function RY(e){return A.jsxs("div",{className:Ua(e.className),children:[A.jsx("p",{className:"fw-medium",children:"Which school would you like to sign in to as a guest?"}),e.ipAuthGuests.length>TY?A.jsx(AY,{ipAuthGuests:e.ipAuthGuests,onClickGuest:e.onClickGuest}):A.jsx(hY,{ipAuthGuests:e.ipAuthGuests,onClickGuest:e.onClickGuest})]})}function OY(e){const{onClickIpAuthGuest:r,onClickBack:t}=Z_(e);return A.jsxs(A.Fragment,{children:[A.jsx(yt,{theme:e.theme,title:"Sign in as guest",onClickBack:t}),A.jsx(RY,{ipAuthGuests:e.ipAuthGuests,onClickGuest:r})]})}const kY="_revealPassword_11wqf_1",PY="_passwordInput_11wqf_10",NY="_passwordContainer_11wqf_17",Fy={revealPassword:kY,passwordInput:PY,passwordContainer:NY};function jY(e){return e||"Password"}function Vs(e){const[r,t]=Nr.useState("password"),a=Nr.useRef(null);function o(u){var v;u.preventDefault(),t(r==="password"?"text":"password"),(v=a.current)==null||v.focus()}let s=`position-relative form-control form-control-lg ${Fy.passwordContainer}`;return e.hasError&&(s+=` ${e.hasError?"is-invalid":""}`),e.className&&(s+=` ${e.className}`),A.jsxs("div",{children:[!e.hideLabel&&A.jsx("label",{htmlFor:e.id||e.name,children:jY(e.label)}),A.jsxs("div",{className:s,children:[A.jsx("input",{className:`${Fy.passwordInput} border-0 w-100 h-100 outline-none rounded py-0 ps-0`,type:r,"aria-label":e.placeholder,placeholder:e.placeholder,autoFocus:e.autoFocus,value:e.value,onChange:e.onChange,name:e.name,autoComplete:e.autoComplete,ref:a,id:e.id||e.name}),A.jsx(Wo,{className:`svg-container cursor-pointer ${Fy.revealPassword}`,onClick:o,children:r==="password"?A.jsx(gK,{}):A.jsx(pK,{})})]})]})}function qY(e){const{returnUrl:r,navigate:t}=e,[a,o]=Nr.useState(e.username),[s,u]=Nr.useState(""),[v,d]=Nr.useState(!1),[h,f]=Nr.useState(""),c=!!e.username;function _(m){o(m.target.value.trim()),f("")}function E(m){u(m.target.value),f("")}function S(m){if(e.backStep){t({step:e.backStep,backStep:null});return}t({step:"username",clearUsername:m})}function w(){t({step:"forgot-password",backStep:"password",username:a})}function T(m){if(m.preventDefault(),!a){f("Please provide a username");return}if(!s){f("Please provide a password");return}if(s.trim().length!==s.length){f("Your password cannot start or end with a blank space");return}d(!0),dt.post("/ajax/login/password",{username:a,password:s,returnUrl:r}).then(p=>Pt(p,e)).catch(p=>{d(!1),f(p.userMessage||"Something went wrong")})}const b=za.getDefinition(e==null?void 0:e.theme),I=b!=null&&b.productName?`Sign in to ${b.productName}`:"Sign in";return A.jsxs("form",{onSubmit:T,children:[A.jsx(yt,{theme:e.theme,onClickBack:()=>S(!1),title:I}),A.jsx("div",{className:"mb-3 position-relative",children:A.jsx(xl,{name:"username",type:"username",isError:!!h,value:a,disabled:c,onChange:_,hideCloseButton:!c,onClickClose:()=>S(!0)})}),A.jsxs("div",{className:"mb-3",children:[A.jsx(Vs,{placeholder:"Enter your password",autoFocus:c,value:s,onChange:E,name:"current-password",autoComplete:"current-password",hasError:!!h,"aria-invalid":!!h,"aria-errormessage":"current-passwordError"}),!!h&&A.jsx(Ht,{name:"current-passwordError",children:h})]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:v,children:"Sign in"}),A.jsx("div",{className:"text-start",children:A.jsx("button",{className:"btn btn-link text-info ps-0",onClick:w,children:"Forgot your password?"})})]})}const UN=["38A2E8","7A76E8","40BCC3","F7847B"];function DY(e){const{navigate:r,idps:t,showPasswordLogin:a}=e,[o,s]=Nr.useState(null);function u(c){window.location.href=c}function v(){r({step:"username"})}function d(){r({step:"password",backStep:"select-idp"})}function h(c){u(c.url)}function f(){o&&u(o.url)}return A.jsxs("div",{children:[A.jsx(yt,{onClickBack:v,theme:e.theme,title:"To sign in, please select an option from the list below"}),t.length>4?A.jsxs(A.Fragment,{children:[A.jsx(Il,{id:"idp",item:o,items:t,onSelect:s,getName:c=>c.name,clearData:()=>s(null),placeholder:"Select a school",size:"lg"}),A.jsx("button",{className:"btn btn-lg btn-dark w-100",disabled:!o,onClick:f,children:"Continue"})]}):t.map((c,_)=>A.jsx(cU,{onClick:h,idp:{...c,visible:!0},backgroundColour:UN[_%UN.length],isGlobalIdp:!c.id.startsWith("online:")},_)),a&&A.jsx("button",{className:"btn btn-link text-info w-100 mt-2 no-sso-link",onClick:d,children:"My school doesn't use Single Sign On"})]})}function fU(e,r){je.useEffect(()=>{if(e)return r.dispatch({type:"setBanner",data:{bannerType:e}}),()=>{r.dispatch({type:"setBanner",data:{bannerType:null}})}},[e])}const LY=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,MY=/^[\s\w,.?&;:@+'"!-=\\\/]+$/im,FN=250,gi={isEmail(e){return LY.test(e)},isValidLength(e){if(!e)return!1;const r=e.trim();return r.length>0&&r.length<=FN},exceedsMaxLength(e){return e?e.trim().length>FN:!1},containsValidText(e){return e?MY.test(e):!0},isPasswordValid(e,r,t){return e.length?t&&!r.length?[!1,"Password confirmation is required."]:t&&e!==r?[!1,"Password confirmation does not match."]:e.trim().length!==e.length?[!1,"Your password cannot start or end with a blank space"]:[!0]:[!1,"Password is required."]}};function UY(e){const{navigate:r,backStep:t}=e,[a,o]=je.useState(e.email||""),[s,u]=je.useState(!1),[v,d]=je.useState("");fU("email-in-use",e);const{productName:h}=za.getDefinition(e.theme);function f(){r({step:t||"username"})}function c(){r({step:"verify-email-skip-reason",backStep:"verify-email"})}function _(S){o(S.target.value)}function E(S){if(S.preventDefault(),!a){d("Please provide an email");return}if(!gi.isEmail(a)){d("The email address provided is invalid");return}u(!0),dt.post("/ajax/login/send-verify-email-code",{email:a}).then(w=>Pt(w,e,{email:a})).catch(w=>{u(!1),d(w.userMessage||"Something went wrong")})}return A.jsx(A.Fragment,{children:A.jsxs("form",{onSubmit:E,children:[A.jsx(yt,{onClickBack:f,theme:e.theme,title:"Verify your email",className:{description:"mt-0 mb-0"},children:A.jsxs("span",{className:"d-inline-block",children:[`Have peace of mind that your account is secure and you’re receiving the best experience out of ${h}.`," ",A.jsx("a",{className:"text-info cursor-pointer",target:"_blank",href:bo.verifyEmail,children:"Learn more."})]})}),A.jsx(xl,{isError:!!v,type:"email",value:a,onChange:_,name:"email",ariaInvalid:!!v,ariaErrorMessage:"emailError"}),!!v&&A.jsx(Ht,{name:"email",children:v}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100 mt-4",type:"submit",showSpinner:s,children:"Verify"}),e.canSkip&&A.jsx("button",{className:"btn btn-link text-info mt-2 ps-0",onClick:c,children:"Skip for now"})]})})}const FY="_input_1vtt8_1",BY={input:FY},$Y=/^[0-9]$/,zY=/^\d+$/,BN=8;function ZY(e){const[r,t]=je.useState(""),[a,o]=je.useState(""),[s,u]=je.useState(""),[v,d]=je.useState(""),[h,f]=je.useState(""),[c,_]=je.useState(""),E=je.useRef(null),S=je.useRef(null),w=je.useRef(null),T=je.useRef(null),b=je.useRef(null),I=je.useRef(null);je.useEffect(()=>{const x=(r||"X")+(a||"X")+(s||"X")+(v||"X")+(h||"X")+(c||"X"),R=x.length===6&&x.indexOf("X")===-1;e.onChange(x,R)},[r,a,s,v,h,c]);const m={"verify-1":{getNext:()=>m["verify-2"],getPrevious:()=>null,value:r,setState:t,focus:()=>E.current.focus()},"verify-2":{getNext:()=>m["verify-3"],getPrevious:()=>m["verify-1"],value:a,setState:o,focus:()=>S.current.focus()},"verify-3":{getNext:()=>m["verify-4"],getPrevious:()=>m["verify-2"],value:s,setState:u,focus:()=>w.current.focus()},"verify-4":{getNext:()=>m["verify-5"],getPrevious:()=>m["verify-3"],value:v,setState:d,focus:()=>T.current.focus()},"verify-5":{getNext:()=>m["verify-6"],getPrevious:()=>m["verify-4"],value:h,setState:f,focus:()=>b.current.focus()},"verify-6":{getNext:()=>null,getPrevious:()=>m["verify-5"],value:c,setState:_,focus:()=>I.current.focus()}};function p(x,R){var j,k;if(!$Y.test(x.key)&&x.keyCode!==BN)return;const O=m[R];if(x.keyCode===BN){O.setState(""),(j=O.getPrevious())==null||j.focus();return}if(x.currentTarget.selectionStart>0){const N=O.getNext();if(!N)return;N.setState(x.key),N.getNext()?N.getNext().focus():N.focus();return}O.setState(x.key),(k=O.getNext())==null||k.focus()}function y(x,R){x.preventDefault();const O=x.clipboardData.getData("text").trim();if(!zY.test(O))return;const j=O.split("");if(j.length===6){let D=m["verify-1"];for(const U of j)D.setState(U),D=D.getNext(),D==null||D.focus();return}let N=m[R];N.value&&N.getNext()&&(N=N.getNext());do N.focus(),N.setState(j.shift()),N=N.getNext();while(j.length&&N)}const g={className:`form-control mx-1 text-center form-control-lg p-3 fs-4 ${BY.input} ${e.hasError?"is-invalid":""}`,autoCorrect:"off",inputMode:"numeric",pattern:"[0-9]*",autoCapitalize:"off",autoComplete:"off","aria-invalid":!!e.hasError};return A.jsxs("fieldset",{className:"d-flex justify-content-between mx-n1","aria-describedby":"verificationCodeError",children:[A.jsx("input",{onPaste:x=>y(x,"verify-1"),onKeyDown:x=>p(x,"verify-1"),value:r,ref:E,onChange:()=>{},autoComplete:"off",...g}),A.jsx("input",{onPaste:x=>y(x,"verify-2"),onKeyDown:x=>p(x,"verify-2"),value:a,ref:S,onChange:()=>{},...g}),A.jsx("input",{onPaste:x=>y(x,"verify-3"),onKeyDown:x=>p(x,"verify-3"),value:s,ref:w,onChange:()=>{},...g}),A.jsx("input",{onPaste:x=>y(x,"verify-4"),onKeyDown:x=>p(x,"verify-4"),value:v,ref:T,onChange:()=>{},...g}),A.jsx("input",{onPaste:x=>y(x,"verify-5"),onKeyDown:x=>p(x,"verify-5"),value:h,ref:b,onChange:()=>{},...g}),A.jsx("input",{onPaste:x=>y(x,"verify-6"),onKeyDown:x=>p(x,"verify-6"),value:c,ref:I,onChange:()=>{},...g})]})}function Bf(e){const{theme:r,title:t,description:a,onBack:o,onResend:s,onSkip:u,submit:v,canSkip:d}=e,[h,f]=je.useState(""),[c,_]=je.useState(!1),[E,S]=je.useState(""),[w,T]=je.useState(!1);je.useEffect(()=>{w&&I()},[w]);function b(m,p){f(""),S(m),T(p)}function I(m){if(m==null||m.preventDefault(),!w){f("Incomplete code");return}_(!0),v(E).catch(p=>{_(!1),f(p.userMessage||"Something went wrong")})}return A.jsxs("form",{onSubmit:I,children:[A.jsx(yt,{onClickBack:o,theme:r,title:t,children:a}),A.jsxs("div",{className:"mb-3",children:[A.jsx(ZY,{onChange:b,hasError:!!h}),!!h&&A.jsx(Ht,{name:"verificationCode",children:h})]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:c,disabled:!w,children:"Continue"}),A.jsxs("div",{className:"d-flex justify-content-between mt-3",children:[u&&d&&A.jsx("button",{className:"btn btn-link text-info p-0 flex-shrink-0",onClick:u,children:"Skip for now"}),s&&A.jsx("button",{className:"btn btn-link text-info p-0 flex-shrink-0",onClick:s,children:"Resend code"})]})]})}function HY(e){const{navigate:r,email:t,theme:a}=e;fU("check-email",e);function o(){r({step:"verify-email"})}function s(){r({step:"verify-email-skip-reason",backStep:"verify-email-check-code"})}function u(){r({step:"verify-email",email:t})}function v(d){return dt.post("/ajax/login/verify-email",{code:d,email:t}).then(h=>Pt(h,e,{code:d}))}return A.jsx(Bf,{navigate:r,theme:a,title:"Enter code",description:A.jsxs(A.Fragment,{children:["Please enter the ",A.jsx("strong",{children:"6 digit"})," code we've sent to ",A.jsx("strong",{children:t})]}),onBack:o,onResend:u,submit:v,onSkip:s,...e})}function dU(){return A.jsx("img",{className:"img-fluid mx-auto d-block mt-4",alt:"Success",src:"/images/success-tick-v2.png",style:{maxWidth:"304px"}})}function VY(e){const{returnUrl:r}=e;return A.jsxs("div",{children:[A.jsx(yt,{theme:e.theme,title:"Your email has been verified",className:{title:"text-center"}}),A.jsx("div",{className:"my-5",children:A.jsx(dU,{})}),r&&A.jsx("a",{role:"button",href:r,className:"btn btn-dark btn-lg w-100",children:"Continue"})]})}function GY(e){const{navigate:r,backStep:t}=e,[a,o]=je.useState(e.email||""),[s,u]=je.useState(!1),[v,d]=je.useState("");function h(_){o(_.target.value.trim())}function f(_){if(_.preventDefault(),!a){d("Please provide an email address");return}if(!gi.isEmail(a)){d("The email address provided is invalid");return}u(!0),dt.post("/ajax/login/send-recovery-code",{email:a}).then(E=>Pt(E,e,{email:a})).catch(E=>{u(!1),d(E.userMessage||"Something went wrong")})}function c(){r({step:t})}return A.jsxs("form",{onSubmit:f,children:[A.jsx(yt,{theme:e.theme,onClickBack:t&&c,title:"Forgot your password?",children:"Enter your email below to receive password reset instructions"}),A.jsxs("div",{className:"mb-3",children:[A.jsx(xl,{name:"email",value:a,type:"email",onChange:h,isError:!!v,"aria-invalid":!!v,"aria-errormessage":"emailError"}),!!v&&A.jsx(Ht,{name:"email",children:v})]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:s,children:"Send"}),A.jsx("p",{className:"text-start mt-3",children:"Single Sign On customers should contact their network administrator to reset their password."})]})}function WY(e){const{navigate:r,email:t,theme:a}=e;function o(){r({step:"forgot-password"})}function s(){r({step:"forgot-password",email:t})}function u(v){return dt.post("/ajax/login/check-recovery-code",{code:v,email:t}).then(d=>Pt(d,e,{code:v}))}return A.jsx(Bf,{navigate:r,theme:a,title:"Enter code",description:A.jsxs(A.Fragment,{children:["If we can reset your password, we've sent a ",A.jsx("strong",{children:"6 digit"})," code to the email address provided"]}),submit:u,onBack:o,onResend:s,...e})}function KY(e){const{error:r,spinner:t,onClickContinue:a}=e;return A.jsxs("div",{children:[A.jsx(yt,{theme:e.theme}),A.jsx(dU,{}),A.jsx("p",{className:"text-center mb-4 mt-2",children:"Your password has been updated"}),r&&A.jsx("p",{className:"text-danger text-center mb-4 mt-2",children:r}),A.jsx(gn,{className:"btn btn-lg w-100 btn-dark",showSpinner:t,onClick:a,children:"Continue"})]})}function hU(e){const{submit:r}=e,[t,a]=je.useState(""),[o,s]=je.useState(""),[u,v]=je.useState(""),[d,h]=je.useState(!1),[f,c]=je.useState(null),{productName:_}=za.getDefinition(e.theme);function E(I){a(I.target.value),v("")}function S(I){s(I.target.value),v("")}function w(){const[I,m]=gi.isPasswordValid(t,o,!0);return m&&v(m),I}function T(I){I.preventDefault(),w()&&(h(!0),r(o).then(m=>{h(!1),c(m)}).catch(m=>{h(!1),v(m.userMessage||"Something went wrong")}))}function b(){try{h(!0),Pt(f,e)}catch(I){h(!1),v(I.userMessage||"Something went wrong")}}return f?A.jsx(KY,{error:u,spinner:d,onClickContinue:b,theme:e.theme}):A.jsxs("form",{onSubmit:T,children:[A.jsxs(yt,{onClickBack:e.onClickBack,theme:e.theme,title:e.heading,children:["Create a new password to secure your ",A.jsx("strong",{children:_})," account"]}),A.jsxs("div",{className:"mb-4",children:[A.jsx(Vs,{className:"mb-3",placeholder:"Enter your new password",autoFocus:!0,value:t,onChange:E,name:"new-password",autoComplete:"new-password",hasError:!!u,"aria-invalid":!!u,"aria-errormessage":"new-passwordError"}),A.jsx(Vs,{id:"confirm-new-password",label:"Confirm Password",placeholder:"Enter your password confirmation",value:o,onChange:S,name:"new-password",autoComplete:"new-password",hasError:!!u,"aria-invalid":!!u,"aria-errormessage":"new-passwordError"}),!!u&&A.jsx(Ht,{name:"new-password",children:u})]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:d,children:"Update password"})]})}function YY(e){const{email:r,code:t,navigate:a}=e;function o(u){return dt.post("/ajax/login/reset-password",{email:r,code:t,newPassword:u})}function s(){a({step:"forgot-password",backStep:"username"})}return A.jsx(hU,{heading:"Reset password",submit:o,onClickBack:s,...e})}function JY(e){function r(t){return dt.post("/ajax/login/change-password",{newPassword:t})}return A.jsx(hU,{heading:"Change password",submit:r,...e})}function XY(e){const{navigate:r,backStep:t}=e,[a]=je.useState(e.userId||""),[o,s]=je.useState(e.username||""),[u,v]=je.useState(!1),[d,h]=je.useState("");function f(E){s(E.target.value.trim())}function c(E){if(E.preventDefault(),!o){h("Please provide an email or username");return}v(!0),dt.post("/ajax/login/send-self-activation-code",{userId:a}).then(S=>Pt(S,e,{userId:a,username:o})).catch(S=>{v(!1),h(S.userMessage||"Something went wrong")})}function _(){r({step:t})}return A.jsxs("form",{onSubmit:c,children:[A.jsx(yt,{theme:e.theme,onClickBack:t&&_,title:"Verify your email",children:"We will send you a verification code to your email to activate your account."}),A.jsxs("div",{className:"mb-3",children:[A.jsx(xl,{name:"email",value:o,type:"username",disabled:!0,onChange:f,isError:!!d,"aria-invalid":!!d,"aria-errormessage":"emailError"}),!!d&&A.jsx(Ht,{name:"email",children:d})]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:u,children:"Send verification code"}),A.jsx("p",{className:"text-start mt-3",children:"Single Sign On customers should contact their network administrator to activate their account."})]})}function QY(e){const{navigate:r,userId:t,username:a,theme:o}=e;function s(){r({step:"self-activation"})}function u(){r({step:"self-activation",userId:t})}function v(d){return dt.post("/ajax/login/check-self-activation-code",{code:d,userId:t}).then(h=>Pt(h,e,{code:d}))}return A.jsx(Bf,{navigate:r,theme:o,title:"Enter code",description:A.jsxs(A.Fragment,{children:["Please enter the ",A.jsx("strong",{children:"6 digit"})," code we've sent to ",A.jsx("strong",{children:a})]}),submit:v,onBack:s,onResend:u,...e})}const eJ="_badge_1l0uk_1",rJ={badge:eJ};function K_(e){return A.jsx("span",{className:`rounded-pill d-inline-block mb-1 badge-white border border-dark rounded-pill ${rJ.badge}`,children:e.children})}function tJ(e){const{navigate:r}=e;function t(){r({step:e.backStep})}return A.jsxs("div",{children:[A.jsx(yt,{theme:e.theme,onClickBack:e.backStep?t:null,className:{description:"text-center"},children:!!e.email&&A.jsx(K_,{children:e.email})}),A.jsx("span",{className:"h4 mb-3 d-block text-center",children:"Contact Support"}),A.jsxs("p",{className:"text-center",children:["Please get in touch with our ",A.jsx("strong",{children:"Product Support Team"})," by emailing ",A.jsx("a",{className:"text-info",href:"mailto:support@clickvieweducation.com",children:"support@clickvieweducation.com"})," for further assistance."]})]})}function nJ(e){const r=aU(e.errorCode);return A.jsxs("div",{className:"text-center",children:[A.jsx(yt,{theme:e.theme}),A.jsx("img",{className:"img-fluid mb-4",alt:"error",src:`/images/errors/${r.errorImage||"default-v2.png"}`}),A.jsxs("div",{className:"d-flex flex-column gap-3",children:[A.jsx("h1",{className:"h3 mb-0",children:r.preferServerError?e.message:r.message}),!!r.additionalInformation&&A.jsx("p",{className:"mb-0",children:r.additionalInformation}),!!r.moreInfoUrl&&A.jsx("p",{className:"mb-0",children:A.jsx("a",{href:r.moreInfoUrl,className:"text-info",children:"Learn more"})}),A.jsx(aJ,{errorCode:e.errorCode,traceId:e.traceId})]})]})}function aJ(e){return A.jsxs("div",{className:"text-secondary small w-100",children:[A.jsxs("p",{className:"m-0",children:["Error Code: ",e.errorCode]}),A.jsxs("p",{className:"m-0",children:["RequestId: ",e.traceId]})]})}function iJ(e){const{token:r,email:t,userId:a,navigate:o}=e,[s,u]=je.useState(!1);function v(){u(!0),dt.post("/ajax/verify-email",{token:r,email:t,userId:a}).then(d=>Pt(d,e)).catch(()=>{o({step:"error",errorCode:"invalid-token"})})}return A.jsxs("div",{children:[A.jsxs(yt,{theme:e.theme,title:"Before you proceed...",children:["Your email address ",A.jsx("strong",{children:t})," is already in use with another account. By continuing you will remove your email from the other account."]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"button",showSpinner:s,onClick:v,children:"Continue anyway"})]})}function oJ(e){const{email:r,code:t,navigate:a}=e,[o,s]=je.useState(!1);function u(){a({step:"verify-email",email:r})}function v(){s(!0),dt.post("/ajax/login/verify-email",{email:r,code:t,acknowledgeEmailInUse:!0}).then(d=>Pt(d,e)).catch(()=>{a({step:"error",errorCode:"invalid-token"})})}return A.jsxs("div",{children:[A.jsxs(yt,{onClickBack:u,theme:e.theme,title:"Before you proceed...",children:["Your email address ",A.jsx("strong",{children:r})," is already in use with another account. By continuing you will remove your email from the other account."]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"button",showSpinner:o,onClick:v,children:"Continue anyway"})]})}var vU=(e=>(e.NotNow="not-now",e.NoEmail="no-email",e.EmailNotReceived="email-not-received",e.Other="other",e))(vU||{});function sJ(e){const{returnUrl:r,navigate:t,backStep:a}=e,[o,s]=je.useState(),[u,v]=je.useState(),[d,h]=je.useState(!1),[f,c]=je.useState(""),{productName:_}=za.getDefinition(e.theme);function E(){return o==="other"?gi.containsValidText(u)&&gi.isValidLength(u):Object.values(vU).includes(o)}function S(){t({step:a||"verify-email"})}function w(I){s(I)}function T(I){const m=I.target.value;let p="";gi.containsValidText(m)?gi.exceedsMaxLength(m)&&(p="Your reason is too long"):p="Your reason contains an invalid character or symbol",c(p),v(m)}function b(I){if(I.preventDefault(),!E())return;h(!0);const m=o==="other"?`other:${u}`:o;dt.post("/ajax/login/skip-verify-email",{reason:m,returnUrl:r}).then(p=>Pt(p,e)).catch(p=>{h(!1),c(p.userMessage||"Something went wrong")})}return A.jsxs("form",{onSubmit:b,children:[A.jsx(yt,{onClickBack:S,theme:e.theme,title:"Let us know why you aren't able to verify",className:{description:"mt-0 mb-0"},children:"Verifying will increase the security of your account and improve features on ClickView."}),A.jsxs("div",{className:"mb-4",children:[A.jsxs("div",{className:"form-check my-3",children:[A.jsx("input",{className:"form-check-input",type:"radio",id:"not-now",name:"not-now",checked:o==="not-now",onChange:()=>w("not-now")}),A.jsx("label",{className:"form-check-label",htmlFor:"not-now",children:"Not the right time"})]}),A.jsxs("div",{className:"form-check my-3",children:[A.jsx("input",{className:"form-check-input",type:"radio",id:"no-email",name:"no-email",checked:o==="no-email",onChange:()=>w("no-email")}),A.jsx("label",{className:"form-check-label",htmlFor:"no-email",children:"I don't have an email address"})]}),A.jsxs("div",{className:"form-check my-3",children:[A.jsx("input",{className:"form-check-input",type:"radio",id:"email-not-received",name:"email-not-received",checked:o==="email-not-received",onChange:()=>w("email-not-received")}),A.jsx("label",{className:"form-check-label",htmlFor:"email-not-received",children:"I didn't receive a verification email"})]}),A.jsxs("div",{className:"form-check mt-3 mb-2",children:[A.jsx("input",{className:"form-check-input",type:"radio",id:"other",name:"other",checked:o==="other",onChange:()=>w("other")}),A.jsx("label",{className:"form-check-label",htmlFor:"other",children:"Other reasons (please specify)"})]}),o==="other"&&A.jsxs(A.Fragment,{children:[A.jsx("input",{className:`form-control form-control-lg ${f?"is-invalid":""}`,type:"text",placeholder:"Enter your reason",name:"reason",onChange:T,autoComplete:"off","aria-invalid":!!f,"aria-errormessage":"reasonError"}),!!f&&A.jsx(Ht,{name:"reason",children:f})]})]}),A.jsxs(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",disabled:!E(),showSpinner:d,children:["Continue to ",_]})]})}function uJ(e){const{logoutId:r}=e,[t,a]=Nr.useState(!1),{productName:o}=za.getDefinition(e.theme);function s(){a(!0)}return A.jsxs("form",{onSubmit:s,action:"/logout",method:"post",children:[A.jsxs(yt,{theme:e.theme,title:"Logout",children:["Would you like to logout of ",o,"?"]}),A.jsx("input",{type:"hidden",name:"logoutId",value:r||""}),A.jsx("input",{type:"hidden",name:"__RequestVerificationToken",value:dt.getXsrfToken()}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:t,children:"Yes"})]})}function lJ(e){const{postLogoutRedirectUri:r,clientName:t,signOutIframeUrl:a,automaticRedirectAfterSignOut:o}=e;return Nr.useEffect(()=>{!o||!r||(window.location.href=r)},[o,r]),A.jsxs("div",{children:[A.jsx(yt,{theme:e.theme,title:"Logged out",children:"You are now logged out."}),r&&A.jsxs("p",{children:["Click ",A.jsx("a",{href:r,className:"text-info",children:"here"})," to return to the ",t," application."]}),a&&A.jsx("iframe",{width:0,height:0,frameBorder:0,src:a})]})}function cJ(e){const{navigate:r,organisation:t,orgCustomers:a,backStep:o}=e,[s,u]=je.useState(null),[v,d]=je.useState(null);async function h(w){try{await dt.post("/ajax/external/join-organisation-customer",{customerId:w});const T=await dt.post("/ajax/login/select-customer",{customerId:w});Pt(T,e)}catch(T){d(T.userMessage||"Something went wrong. Please try again.")}}function f(w){h(w.id)}function c(){r({step:"contact-support",backStep:"organisation-select-customer"})}function _(){s&&h(s.id)}function E(){r({step:"select-customer",backStep:"organisation-select-customer"})}function S(){r({step:o,backStep:null})}return A.jsxs("div",{children:[A.jsx(yt,{theme:e.theme,onClickBack:o&&S}),A.jsxs("span",{className:"h4 mb-3 d-block text-left",children:["To sign in, select a school from ",t.name]}),!!e.email&&A.jsx("p",{className:"text-left",children:A.jsx(K_,{children:e.email})}),!!(a!=null&&a.length)&&A.jsx("div",{className:"mb-4",children:a.length>10?A.jsxs(A.Fragment,{children:[A.jsx("p",{className:"font-weight-600 mb-1",children:"Schools"}),A.jsx("div",{className:"mb-3",children:A.jsx(Il,{id:"school",item:s,items:a,onSelect:u,getName:w=>w.name,clearData:()=>u(null),placeholder:"Select a school",size:"lg",cantFindText:"My school is not listed",onCantFind:c})}),A.jsx("button",{className:"btn btn-lg btn-dark w-100 mb-4",disabled:!s,onClick:_,children:"Continue"})]}):A.jsxs("div",{children:[a.map((w,T)=>A.jsx(G_,{onClick:()=>f(w),text:w.name,icon:Zs.buildAvatarUrl(w.logoUrl,{size:"small"})||al,className:"mb-3",iconColor:"dark"},T)),A.jsx("button",{className:"text-info",onClick:c,children:"My school is not listed"})]})}),e.hasExistingCustomers&&!o&&A.jsxs("button",{className:"h5 d-flex w-100",onClick:E,children:["View my existing schools",A.jsx("span",{className:"ms-auto",children:A.jsx(V_,{})})]}),v&&A.jsx("div",{className:"text-danger text-center",children:v})]})}function $N(e){if(!e)return{firstName:"",surname:"",source:""};const r=e.split(" ").filter(t=>t.length);return{firstName:r.shift(),surname:r.join(" "),source:e}}function pU(e){const{value:r,onChange:t,error:a,autoFocus:o}=e;return je.useEffect(()=>{e.onChange($N(e.value))},[]),A.jsxs("div",{className:"mb-3",children:[A.jsx("label",{htmlFor:"name",children:"Full name"}),A.jsx("input",{className:`form-control form-control-lg ${!!a&&"is-invalid"}`,type:"text",name:"name",id:"name",value:r,placeholder:"Enter your full name",autoFocus:o,autoComplete:"name",onChange:s=>t($N(s.target.value)),"aria-errormessage":"nameError"}),!!a&&A.jsx(Ht,{name:"name",children:a})]})}var Ze=(e=>(e.AU="au",e.NZ="nz",e.UK="uk",e.US="us",e.CA="ca",e))(Ze||{});const fJ=["Teacher","Librarian / Teacher Librarian","Curriculum Coordinator","Digital Technology Coordinator","SSO / SLSO","IT","Head of Department","Head of Subject","Assistant Principal","Deputy Principal","Principal","Business Manager"],dJ=["Teacher","Librarian / Teacher Librarian","IT/LRC","e-Learning/ICT Coordinator","Head of Key Stage","Head of Department","Subject Lead","Assistant Head Teacher","Deputy Head Teacher","Head Teacher"],gU=["Teacher","Librarian / Teacher Librarian","Head of Department","Instructional Technology Specialist","Curriculum Coordinator","School Leadership","District Leadership","Academic Coach","Principal","IT / IT Specialist"],hJ=["Teacher","Librarian / Teacher Librarian","Curriculum Leader","e-Learning Coordinator","IT","Head of Department","Head of Faculty","Learning Support","Learning Assistant","Deputy Principal","Assistant Principal","Principal"],vJ=["Teacher","Librarian / Teacher Librarian","Educational Assistant (EA)","Learning Support Teacher / Resource Teacher","Department Head / Manager","Curriculum Coordinator / Consultant","School Counsellor / Guidance Counsellor","Vice-Principal","Principal","Superintendent","Director of Education"],mU=["Professor","Lecturer","Course Coordinator / Administrator","Digital Learning Manager","Tutor","Teaching Fellow","Librarian","Learning Technologist","Teaching Assistant","Researcher","IT"],pJ=["Professor","Lecturer","Course Coordinator / Administrator","Digital Learning Manager","Tutor","Teaching Fellow","Librarian","Learning Technologist","Teacher","Teaching Assistant","Researcher","IT"],gJ={[Ze.AU]:fJ,[Ze.NZ]:hJ,[Ze.UK]:dJ,[Ze.US]:gU,[Ze.CA]:vJ},mJ={[Ze.AU]:mU,[Ze.UK]:pJ};function yU(e){var t;const r=(t=e.countryCode)==null?void 0:t.toLowerCase();return e.isTertiary?mJ[r]||mU:gJ[r]||gU}function bU(e){return(e==null?void 0:e.toLowerCase().includes("student"))||(e==null?void 0:e.toLowerCase().includes("parent"))}const By="OTHER";function _U(e){const{error:r,onChange:t,countryCode:a,isTertiary:o,autoFocus:s}=e,[u,v]=je.useState(""),[d,h]=je.useState(""),f=yU({countryCode:a,isTertiary:o});function c(S){v(S.target.value),h(""),t(S.target.value===By?"":S.target.value)}function _(S){h(S.target.value),t(S.target.value)}const E=u===By;return A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:"mb-3",children:[A.jsx("label",{htmlFor:"jobTitle",children:"Job Title"}),A.jsxs("select",{className:`form-select form-select-lg ${u.length?"text-dark":"text-secondary"} ${!!r&&"is-invalid"}`,value:u,placeholder:"Role",onChange:c,autoFocus:s,name:"jobTitle",id:"jobTitle","aria-invalid":!!r&&!E,"aria-errormessage":r&&!E?"jobTitleError":void 0,children:[A.jsx("option",{value:"",disabled:!0,className:"text-secondary",children:"What do you do?"}),f.map((S,w)=>A.jsx("option",{value:S,className:"text-dark",children:S},w)),A.jsx("option",{value:By,className:"text-dark",children:"Other"})]}),!!r&&!E&&A.jsx(Ht,{name:"jobTitle",children:r})]}),E&&A.jsxs("div",{className:"mb-3",children:[A.jsx("input",{className:`form-control form-control-lg ${!!r&&"is-invalid"}`,type:"text",value:d,placeholder:"Enter your role",autoFocus:!0,onChange:_,name:"role","aria-invalid":!!r,"aria-errormessage":"roleError"}),!!r&&A.jsx(Ht,{name:"role",children:r})]})]})}function yJ(e){const{allowNameChange:r,allowJobTitleChange:t,errors:a,spinner:o,countryCode:s,setErrors:u}=e,[v,d]=Nr.useState(),[h,f]=Nr.useState(""),[c,_]=Nr.useState(""),[E,S]=Nr.useState("");function w(g){_(g.target.value),u({...a,password:""})}function T(g){S(g.target.value),u({...a,password:""})}function b(g){d(g),u({...a,fullName:""})}function I(g){f(g),u({...a,jobTitle:""})}function m(g){g.preventDefault();const x={password:c,confirmPassword:E};r&&(x.firstName=v.firstName,x.surname=v.surname),t&&(x.jobTitle=h),e.onSubmit(x)}function p(){return r?"fullName":t?"jobTitle":"password"}const y=p();return A.jsxs("form",{onSubmit:m,children:[A.jsxs("div",{className:"mb-3",children:[r&&A.jsx(pU,{value:(v==null?void 0:v.source)||"",onChange:b,error:a.fullName,autoFocus:y==="fullName"}),t&&A.jsx(_U,{error:a.jobTitle,onChange:I,countryCode:s,autoFocus:y==="jobTitle",isTertiary:e.isTertiary}),A.jsx(Vs,{placeholder:"Enter your password",value:c,onChange:w,name:"new-password",autoComplete:"new-password",hasError:!!a.password,autoFocus:y==="password","aria-errormessage":"new-passwordError",className:Ua(e.requireConfirmPassword&&"mb-3")}),e.requireConfirmPassword&&A.jsx(Vs,{id:"confirm-new-password",label:"Confirm password",placeholder:"Enter your password confirmation",value:E,onChange:T,name:"new-password",autoComplete:"new-password",hasError:!!a.password,"aria-invalid":!!a.password,"aria-errormessage":"new-passwordError"}),!!a.password&&A.jsx(Ht,{name:"new-password",children:a.password})]}),!!a.default&&A.jsx("div",{className:"text-danger my-3",children:a.default}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:o,children:"Get Started"})]})}var $y,zN;function bJ(){if(zN)return $y;zN=1;function e(){this.__data__=[],this.size=0}return $y=e,$y}var zy,ZN;function $f(){if(ZN)return zy;ZN=1;function e(r,t){return r===t||r!==r&&t!==t}return zy=e,zy}var Zy,HN;function zf(){if(HN)return Zy;HN=1;var e=$f();function r(t,a){for(var o=t.length;o--;)if(e(t[o][0],a))return o;return-1}return Zy=r,Zy}var Hy,VN;function _J(){if(VN)return Hy;VN=1;var e=zf(),r=Array.prototype,t=r.splice;function a(o){var s=this.__data__,u=e(s,o);if(u<0)return!1;var v=s.length-1;return u==v?s.pop():t.call(s,u,1),--this.size,!0}return Hy=a,Hy}var Vy,GN;function SJ(){if(GN)return Vy;GN=1;var e=zf();function r(t){var a=this.__data__,o=e(a,t);return o<0?void 0:a[o][1]}return Vy=r,Vy}var Gy,WN;function wJ(){if(WN)return Gy;WN=1;var e=zf();function r(t){return e(this.__data__,t)>-1}return Gy=r,Gy}var Wy,KN;function EJ(){if(KN)return Wy;KN=1;var e=zf();function r(t,a){var o=this.__data__,s=e(o,t);return s<0?(++this.size,o.push([t,a])):o[s][1]=a,this}return Wy=r,Wy}var Ky,YN;function Zf(){if(YN)return Ky;YN=1;var e=bJ(),r=_J(),t=SJ(),a=wJ(),o=EJ();function s(u){var v=-1,d=u==null?0:u.length;for(this.clear();++v<d;){var h=u[v];this.set(h[0],h[1])}}return s.prototype.clear=e,s.prototype.delete=r,s.prototype.get=t,s.prototype.has=a,s.prototype.set=o,Ky=s,Ky}var Yy,JN;function CJ(){if(JN)return Yy;JN=1;var e=Zf();function r(){this.__data__=new e,this.size=0}return Yy=r,Yy}var Jy,XN;function xJ(){if(XN)return Jy;XN=1;function e(r){var t=this.__data__,a=t.delete(r);return this.size=t.size,a}return Jy=e,Jy}var Xy,QN;function IJ(){if(QN)return Xy;QN=1;function e(r){return this.__data__.get(r)}return Xy=e,Xy}var Qy,ej;function AJ(){if(ej)return Qy;ej=1;function e(r){return this.__data__.has(r)}return Qy=e,Qy}var e1,rj;function SU(){if(rj)return e1;rj=1;var e=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;return e1=e,e1}var r1,tj;function Si(){if(tj)return r1;tj=1;var e=SU(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return r1=t,r1}var t1,nj;function Hf(){if(nj)return t1;nj=1;var e=Si(),r=e.Symbol;return t1=r,t1}var n1,aj;function TJ(){if(aj)return n1;aj=1;var e=Hf(),r=Object.prototype,t=r.hasOwnProperty,a=r.toString,o=e?e.toStringTag:void 0;function s(u){var v=t.call(u,o),d=u[o];try{u[o]=void 0;var h=!0}catch{}var f=a.call(u);return h&&(v?u[o]=d:delete u[o]),f}return n1=s,n1}var a1,ij;function RJ(){if(ij)return a1;ij=1;var e=Object.prototype,r=e.toString;function t(a){return r.call(a)}return a1=t,a1}var i1,oj;function du(){if(oj)return i1;oj=1;var e=Hf(),r=TJ(),t=RJ(),a="[object Null]",o="[object Undefined]",s=e?e.toStringTag:void 0;function u(v){return v==null?v===void 0?o:a:s&&s in Object(v)?r(v):t(v)}return i1=u,i1}var o1,sj;function Eo(){if(sj)return o1;sj=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return o1=e,o1}var s1,uj;function Y_(){if(uj)return s1;uj=1;var e=du(),r=Eo(),t="[object AsyncFunction]",a="[object Function]",o="[object GeneratorFunction]",s="[object Proxy]";function u(v){if(!r(v))return!1;var d=e(v);return d==a||d==o||d==t||d==s}return s1=u,s1}var u1,lj;function OJ(){if(lj)return u1;lj=1;var e=Si(),r=e["__core-js_shared__"];return u1=r,u1}var l1,cj;function kJ(){if(cj)return l1;cj=1;var e=OJ(),r=(function(){var a=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})();function t(a){return!!r&&r in a}return l1=t,l1}var c1,fj;function wU(){if(fj)return c1;fj=1;var e=Function.prototype,r=e.toString;function t(a){if(a!=null){try{return r.call(a)}catch{}try{return a+""}catch{}}return""}return c1=t,c1}var f1,dj;function PJ(){if(dj)return f1;dj=1;var e=Y_(),r=kJ(),t=Eo(),a=wU(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,u=Function.prototype,v=Object.prototype,d=u.toString,h=v.hasOwnProperty,f=RegExp("^"+d.call(h).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c(_){if(!t(_)||r(_))return!1;var E=e(_)?f:s;return E.test(a(_))}return f1=c,f1}var d1,hj;function NJ(){if(hj)return d1;hj=1;function e(r,t){return r==null?void 0:r[t]}return d1=e,d1}var h1,vj;function ds(){if(vj)return h1;vj=1;var e=PJ(),r=NJ();function t(a,o){var s=r(a,o);return e(s)?s:void 0}return h1=t,h1}var v1,pj;function J_(){if(pj)return v1;pj=1;var e=ds(),r=Si(),t=e(r,"Map");return v1=t,v1}var p1,gj;function Vf(){if(gj)return p1;gj=1;var e=ds(),r=e(Object,"create");return p1=r,p1}var g1,mj;function jJ(){if(mj)return g1;mj=1;var e=Vf();function r(){this.__data__=e?e(null):{},this.size=0}return g1=r,g1}var m1,yj;function qJ(){if(yj)return m1;yj=1;function e(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}return m1=e,m1}var y1,bj;function DJ(){if(bj)return y1;bj=1;var e=Vf(),r="__lodash_hash_undefined__",t=Object.prototype,a=t.hasOwnProperty;function o(s){var u=this.__data__;if(e){var v=u[s];return v===r?void 0:v}return a.call(u,s)?u[s]:void 0}return y1=o,y1}var b1,_j;function LJ(){if(_j)return b1;_j=1;var e=Vf(),r=Object.prototype,t=r.hasOwnProperty;function a(o){var s=this.__data__;return e?s[o]!==void 0:t.call(s,o)}return b1=a,b1}var _1,Sj;function MJ(){if(Sj)return _1;Sj=1;var e=Vf(),r="__lodash_hash_undefined__";function t(a,o){var s=this.__data__;return this.size+=this.has(a)?0:1,s[a]=e&&o===void 0?r:o,this}return _1=t,_1}var S1,wj;function UJ(){if(wj)return S1;wj=1;var e=jJ(),r=qJ(),t=DJ(),a=LJ(),o=MJ();function s(u){var v=-1,d=u==null?0:u.length;for(this.clear();++v<d;){var h=u[v];this.set(h[0],h[1])}}return s.prototype.clear=e,s.prototype.delete=r,s.prototype.get=t,s.prototype.has=a,s.prototype.set=o,S1=s,S1}var w1,Ej;function FJ(){if(Ej)return w1;Ej=1;var e=UJ(),r=Zf(),t=J_();function a(){this.size=0,this.__data__={hash:new e,map:new(t||r),string:new e}}return w1=a,w1}var E1,Cj;function BJ(){if(Cj)return E1;Cj=1;function e(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}return E1=e,E1}var C1,xj;function Gf(){if(xj)return C1;xj=1;var e=BJ();function r(t,a){var o=t.__data__;return e(a)?o[typeof a=="string"?"string":"hash"]:o.map}return C1=r,C1}var x1,Ij;function $J(){if(Ij)return x1;Ij=1;var e=Gf();function r(t){var a=e(this,t).delete(t);return this.size-=a?1:0,a}return x1=r,x1}var I1,Aj;function zJ(){if(Aj)return I1;Aj=1;var e=Gf();function r(t){return e(this,t).get(t)}return I1=r,I1}var A1,Tj;function ZJ(){if(Tj)return A1;Tj=1;var e=Gf();function r(t){return e(this,t).has(t)}return A1=r,A1}var T1,Rj;function HJ(){if(Rj)return T1;Rj=1;var e=Gf();function r(t,a){var o=e(this,t),s=o.size;return o.set(t,a),this.size+=o.size==s?0:1,this}return T1=r,T1}var R1,Oj;function EU(){if(Oj)return R1;Oj=1;var e=FJ(),r=$J(),t=zJ(),a=ZJ(),o=HJ();function s(u){var v=-1,d=u==null?0:u.length;for(this.clear();++v<d;){var h=u[v];this.set(h[0],h[1])}}return s.prototype.clear=e,s.prototype.delete=r,s.prototype.get=t,s.prototype.has=a,s.prototype.set=o,R1=s,R1}var O1,kj;function VJ(){if(kj)return O1;kj=1;var e=Zf(),r=J_(),t=EU(),a=200;function o(s,u){var v=this.__data__;if(v instanceof e){var d=v.__data__;if(!r||d.length<a-1)return d.push([s,u]),this.size=++v.size,this;v=this.__data__=new t(d)}return v.set(s,u),this.size=v.size,this}return O1=o,O1}var k1,Pj;function CU(){if(Pj)return k1;Pj=1;var e=Zf(),r=CJ(),t=xJ(),a=IJ(),o=AJ(),s=VJ();function u(v){var d=this.__data__=new e(v);this.size=d.size}return u.prototype.clear=r,u.prototype.delete=t,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,k1=u,k1}var P1,Nj;function GJ(){if(Nj)return P1;Nj=1;function e(r,t){for(var a=-1,o=r==null?0:r.length;++a<o&&t(r[a],a,r)!==!1;);return r}return P1=e,P1}var N1,jj;function xU(){if(jj)return N1;jj=1;var e=ds(),r=(function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}})();return N1=r,N1}var j1,qj;function X_(){if(qj)return j1;qj=1;var e=xU();function r(t,a,o){a=="__proto__"&&e?e(t,a,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[a]=o}return j1=r,j1}var q1,Dj;function IU(){if(Dj)return q1;Dj=1;var e=X_(),r=$f(),t=Object.prototype,a=t.hasOwnProperty;function o(s,u,v){var d=s[u];(!(a.call(s,u)&&r(d,v))||v===void 0&&!(u in s))&&e(s,u,v)}return q1=o,q1}var D1,Lj;function Al(){if(Lj)return D1;Lj=1;var e=IU(),r=X_();function t(a,o,s,u){var v=!s;s||(s={});for(var d=-1,h=o.length;++d<h;){var f=o[d],c=u?u(s[f],a[f],f,s,a):void 0;c===void 0&&(c=a[f]),v?r(s,f,c):e(s,f,c)}return s}return D1=t,D1}var L1,Mj;function WJ(){if(Mj)return L1;Mj=1;function e(r,t){for(var a=-1,o=Array(r);++a<r;)o[a]=t(a);return o}return L1=e,L1}var M1,Uj;function Co(){if(Uj)return M1;Uj=1;function e(r){return r!=null&&typeof r=="object"}return M1=e,M1}var U1,Fj;function KJ(){if(Fj)return U1;Fj=1;var e=du(),r=Co(),t="[object Arguments]";function a(o){return r(o)&&e(o)==t}return U1=a,U1}var F1,Bj;function AU(){if(Bj)return F1;Bj=1;var e=KJ(),r=Co(),t=Object.prototype,a=t.hasOwnProperty,o=t.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(u){return r(u)&&a.call(u,"callee")&&!o.call(u,"callee")};return F1=s,F1}var B1,$j;function hs(){if($j)return B1;$j=1;var e=Array.isArray;return B1=e,B1}var el={exports:{}},$1,zj;function YJ(){if(zj)return $1;zj=1;function e(){return!1}return $1=e,$1}el.exports;var Zj;function Q_(){return Zj||(Zj=1,(function(e,r){var t=Si(),a=YJ(),o=r&&!r.nodeType&&r,s=o&&!0&&e&&!e.nodeType&&e,u=s&&s.exports===o,v=u?t.Buffer:void 0,d=v?v.isBuffer:void 0,h=d||a;e.exports=h})(el,el.exports)),el.exports}var z1,Hj;function TU(){if(Hj)return z1;Hj=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function t(a,o){var s=typeof a;return o=o??e,!!o&&(s=="number"||s!="symbol"&&r.test(a))&&a>-1&&a%1==0&&a<o}return z1=t,z1}var Z1,Vj;function RU(){if(Vj)return Z1;Vj=1;var e=9007199254740991;function r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=e}return Z1=r,Z1}var H1,Gj;function JJ(){if(Gj)return H1;Gj=1;var e=du(),r=RU(),t=Co(),a="[object Arguments]",o="[object Array]",s="[object Boolean]",u="[object Date]",v="[object Error]",d="[object Function]",h="[object Map]",f="[object Number]",c="[object Object]",_="[object RegExp]",E="[object Set]",S="[object String]",w="[object WeakMap]",T="[object ArrayBuffer]",b="[object DataView]",I="[object Float32Array]",m="[object Float64Array]",p="[object Int8Array]",y="[object Int16Array]",g="[object Int32Array]",x="[object Uint8Array]",R="[object Uint8ClampedArray]",O="[object Uint16Array]",j="[object Uint32Array]",k={};k[I]=k[m]=k[p]=k[y]=k[g]=k[x]=k[R]=k[O]=k[j]=!0,k[a]=k[o]=k[T]=k[s]=k[b]=k[u]=k[v]=k[d]=k[h]=k[f]=k[c]=k[_]=k[E]=k[S]=k[w]=!1;function N(D){return t(D)&&r(D.length)&&!!k[e(D)]}return H1=N,H1}var V1,Wj;function eS(){if(Wj)return V1;Wj=1;function e(r){return function(t){return r(t)}}return V1=e,V1}var rl={exports:{}};rl.exports;var Kj;function rS(){return Kj||(Kj=1,(function(e,r){var t=SU(),a=r&&!r.nodeType&&r,o=a&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===a,u=s&&t.process,v=(function(){try{var d=o&&o.require&&o.require("util").types;return d||u&&u.binding&&u.binding("util")}catch{}})();e.exports=v})(rl,rl.exports)),rl.exports}var G1,Yj;function OU(){if(Yj)return G1;Yj=1;var e=JJ(),r=eS(),t=rS(),a=t&&t.isTypedArray,o=a?r(a):e;return G1=o,G1}var W1,Jj;function kU(){if(Jj)return W1;Jj=1;var e=WJ(),r=AU(),t=hs(),a=Q_(),o=TU(),s=OU(),u=Object.prototype,v=u.hasOwnProperty;function d(h,f){var c=t(h),_=!c&&r(h),E=!c&&!_&&a(h),S=!c&&!_&&!E&&s(h),w=c||_||E||S,T=w?e(h.length,String):[],b=T.length;for(var I in h)(f||v.call(h,I))&&!(w&&(I=="length"||E&&(I=="offset"||I=="parent")||S&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||o(I,b)))&&T.push(I);return T}return W1=d,W1}var K1,Xj;function tS(){if(Xj)return K1;Xj=1;var e=Object.prototype;function r(t){var a=t&&t.constructor,o=typeof a=="function"&&a.prototype||e;return t===o}return K1=r,K1}var Y1,Qj;function PU(){if(Qj)return Y1;Qj=1;function e(r,t){return function(a){return r(t(a))}}return Y1=e,Y1}var J1,eq;function XJ(){if(eq)return J1;eq=1;var e=PU(),r=e(Object.keys,Object);return J1=r,J1}var X1,rq;function QJ(){if(rq)return X1;rq=1;var e=tS(),r=XJ(),t=Object.prototype,a=t.hasOwnProperty;function o(s){if(!e(s))return r(s);var u=[];for(var v in Object(s))a.call(s,v)&&v!="constructor"&&u.push(v);return u}return X1=o,X1}var Q1,tq;function Wf(){if(tq)return Q1;tq=1;var e=Y_(),r=RU();function t(a){return a!=null&&r(a.length)&&!e(a)}return Q1=t,Q1}var e0,nq;function nS(){if(nq)return e0;nq=1;var e=kU(),r=QJ(),t=Wf();function a(o){return t(o)?e(o):r(o)}return e0=a,e0}var r0,aq;function eX(){if(aq)return r0;aq=1;var e=Al(),r=nS();function t(a,o){return a&&e(o,r(o),a)}return r0=t,r0}var t0,iq;function rX(){if(iq)return t0;iq=1;function e(r){var t=[];if(r!=null)for(var a in Object(r))t.push(a);return t}return t0=e,t0}var n0,oq;function tX(){if(oq)return n0;oq=1;var e=Eo(),r=tS(),t=rX(),a=Object.prototype,o=a.hasOwnProperty;function s(u){if(!e(u))return t(u);var v=r(u),d=[];for(var h in u)h=="constructor"&&(v||!o.call(u,h))||d.push(h);return d}return n0=s,n0}var a0,sq;function Tl(){if(sq)return a0;sq=1;var e=kU(),r=tX(),t=Wf();function a(o){return t(o)?e(o,!0):r(o)}return a0=a,a0}var i0,uq;function nX(){if(uq)return i0;uq=1;var e=Al(),r=Tl();function t(a,o){return a&&e(o,r(o),a)}return i0=t,i0}var tl={exports:{}};tl.exports;var lq;function NU(){return lq||(lq=1,(function(e,r){var t=Si(),a=r&&!r.nodeType&&r,o=a&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===a,u=s?t.Buffer:void 0,v=u?u.allocUnsafe:void 0;function d(h,f){if(f)return h.slice();var c=h.length,_=v?v(c):new h.constructor(c);return h.copy(_),_}e.exports=d})(tl,tl.exports)),tl.exports}var o0,cq;function jU(){if(cq)return o0;cq=1;function e(r,t){var a=-1,o=r.length;for(t||(t=Array(o));++a<o;)t[a]=r[a];return t}return o0=e,o0}var s0,fq;function aX(){if(fq)return s0;fq=1;function e(r,t){for(var a=-1,o=r==null?0:r.length,s=0,u=[];++a<o;){var v=r[a];t(v,a,r)&&(u[s++]=v)}return u}return s0=e,s0}var u0,dq;function qU(){if(dq)return u0;dq=1;function e(){return[]}return u0=e,u0}var l0,hq;function aS(){if(hq)return l0;hq=1;var e=aX(),r=qU(),t=Object.prototype,a=t.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(u){return u==null?[]:(u=Object(u),e(o(u),function(v){return a.call(u,v)}))}:r;return l0=s,l0}var c0,vq;function iX(){if(vq)return c0;vq=1;var e=Al(),r=aS();function t(a,o){return e(a,r(a),o)}return c0=t,c0}var f0,pq;function DU(){if(pq)return f0;pq=1;function e(r,t){for(var a=-1,o=t.length,s=r.length;++a<o;)r[s+a]=t[a];return r}return f0=e,f0}var d0,gq;function iS(){if(gq)return d0;gq=1;var e=PU(),r=e(Object.getPrototypeOf,Object);return d0=r,d0}var h0,mq;function LU(){if(mq)return h0;mq=1;var e=DU(),r=iS(),t=aS(),a=qU(),o=Object.getOwnPropertySymbols,s=o?function(u){for(var v=[];u;)e(v,t(u)),u=r(u);return v}:a;return h0=s,h0}var v0,yq;function oX(){if(yq)return v0;yq=1;var e=Al(),r=LU();function t(a,o){return e(a,r(a),o)}return v0=t,v0}var p0,bq;function MU(){if(bq)return p0;bq=1;var e=DU(),r=hs();function t(a,o,s){var u=o(a);return r(a)?u:e(u,s(a))}return p0=t,p0}var g0,_q;function sX(){if(_q)return g0;_q=1;var e=MU(),r=aS(),t=nS();function a(o){return e(o,t,r)}return g0=a,g0}var m0,Sq;function uX(){if(Sq)return m0;Sq=1;var e=MU(),r=LU(),t=Tl();function a(o){return e(o,t,r)}return m0=a,m0}var y0,wq;function lX(){if(wq)return y0;wq=1;var e=ds(),r=Si(),t=e(r,"DataView");return y0=t,y0}var b0,Eq;function cX(){if(Eq)return b0;Eq=1;var e=ds(),r=Si(),t=e(r,"Promise");return b0=t,b0}var _0,Cq;function fX(){if(Cq)return _0;Cq=1;var e=ds(),r=Si(),t=e(r,"Set");return _0=t,_0}var S0,xq;function dX(){if(xq)return S0;xq=1;var e=ds(),r=Si(),t=e(r,"WeakMap");return S0=t,S0}var w0,Iq;function oS(){if(Iq)return w0;Iq=1;var e=lX(),r=J_(),t=cX(),a=fX(),o=dX(),s=du(),u=wU(),v="[object Map]",d="[object Object]",h="[object Promise]",f="[object Set]",c="[object WeakMap]",_="[object DataView]",E=u(e),S=u(r),w=u(t),T=u(a),b=u(o),I=s;return(e&&I(new e(new ArrayBuffer(1)))!=_||r&&I(new r)!=v||t&&I(t.resolve())!=h||a&&I(new a)!=f||o&&I(new o)!=c)&&(I=function(m){var p=s(m),y=p==d?m.constructor:void 0,g=y?u(y):"";if(g)switch(g){case E:return _;case S:return v;case w:return h;case T:return f;case b:return c}return p}),w0=I,w0}var E0,Aq;function hX(){if(Aq)return E0;Aq=1;var e=Object.prototype,r=e.hasOwnProperty;function t(a){var o=a.length,s=new a.constructor(o);return o&&typeof a[0]=="string"&&r.call(a,"index")&&(s.index=a.index,s.input=a.input),s}return E0=t,E0}var C0,Tq;function vX(){if(Tq)return C0;Tq=1;var e=Si(),r=e.Uint8Array;return C0=r,C0}var x0,Rq;function sS(){if(Rq)return x0;Rq=1;var e=vX();function r(t){var a=new t.constructor(t.byteLength);return new e(a).set(new e(t)),a}return x0=r,x0}var I0,Oq;function pX(){if(Oq)return I0;Oq=1;var e=sS();function r(t,a){var o=a?e(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)}return I0=r,I0}var A0,kq;function gX(){if(kq)return A0;kq=1;var e=/\w*$/;function r(t){var a=new t.constructor(t.source,e.exec(t));return a.lastIndex=t.lastIndex,a}return A0=r,A0}var T0,Pq;function mX(){if(Pq)return T0;Pq=1;var e=Hf(),r=e?e.prototype:void 0,t=r?r.valueOf:void 0;function a(o){return t?Object(t.call(o)):{}}return T0=a,T0}var R0,Nq;function UU(){if(Nq)return R0;Nq=1;var e=sS();function r(t,a){var o=a?e(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}return R0=r,R0}var O0,jq;function yX(){if(jq)return O0;jq=1;var e=sS(),r=pX(),t=gX(),a=mX(),o=UU(),s="[object Boolean]",u="[object Date]",v="[object Map]",d="[object Number]",h="[object RegExp]",f="[object Set]",c="[object String]",_="[object Symbol]",E="[object ArrayBuffer]",S="[object DataView]",w="[object Float32Array]",T="[object Float64Array]",b="[object Int8Array]",I="[object Int16Array]",m="[object Int32Array]",p="[object Uint8Array]",y="[object Uint8ClampedArray]",g="[object Uint16Array]",x="[object Uint32Array]";function R(O,j,k){var N=O.constructor;switch(j){case E:return e(O);case s:case u:return new N(+O);case S:return r(O,k);case w:case T:case b:case I:case m:case p:case y:case g:case x:return o(O,k);case v:return new N;case d:case c:return new N(O);case h:return t(O);case f:return new N;case _:return a(O)}}return O0=R,O0}var k0,qq;function bX(){if(qq)return k0;qq=1;var e=Eo(),r=Object.create,t=(function(){function a(){}return function(o){if(!e(o))return{};if(r)return r(o);a.prototype=o;var s=new a;return a.prototype=void 0,s}})();return k0=t,k0}var P0,Dq;function FU(){if(Dq)return P0;Dq=1;var e=bX(),r=iS(),t=tS();function a(o){return typeof o.constructor=="function"&&!t(o)?e(r(o)):{}}return P0=a,P0}var N0,Lq;function _X(){if(Lq)return N0;Lq=1;var e=oS(),r=Co(),t="[object Map]";function a(o){return r(o)&&e(o)==t}return N0=a,N0}var j0,Mq;function SX(){if(Mq)return j0;Mq=1;var e=_X(),r=eS(),t=rS(),a=t&&t.isMap,o=a?r(a):e;return j0=o,j0}var q0,Uq;function wX(){if(Uq)return q0;Uq=1;var e=oS(),r=Co(),t="[object Set]";function a(o){return r(o)&&e(o)==t}return q0=a,q0}var D0,Fq;function EX(){if(Fq)return D0;Fq=1;var e=wX(),r=eS(),t=rS(),a=t&&t.isSet,o=a?r(a):e;return D0=o,D0}var L0,Bq;function CX(){if(Bq)return L0;Bq=1;var e=CU(),r=GJ(),t=IU(),a=eX(),o=nX(),s=NU(),u=jU(),v=iX(),d=oX(),h=sX(),f=uX(),c=oS(),_=hX(),E=yX(),S=FU(),w=hs(),T=Q_(),b=SX(),I=Eo(),m=EX(),p=nS(),y=Tl(),g=1,x=2,R=4,O="[object Arguments]",j="[object Array]",k="[object Boolean]",N="[object Date]",D="[object Error]",U="[object Function]",B="[object GeneratorFunction]",H="[object Map]",G="[object Number]",$="[object Object]",M="[object RegExp]",L="[object Set]",F="[object String]",V="[object Symbol]",ae="[object WeakMap]",oe="[object ArrayBuffer]",_e="[object DataView]",he="[object Float32Array]",ye="[object Float64Array]",ge="[object Int8Array]",Re="[object Int16Array]",We="[object Int32Array]",He="[object Uint8Array]",nr="[object Uint8ClampedArray]",ar="[object Uint16Array]",xr="[object Uint32Array]",or={};or[O]=or[j]=or[oe]=or[_e]=or[k]=or[N]=or[he]=or[ye]=or[ge]=or[Re]=or[We]=or[H]=or[G]=or[$]=or[M]=or[L]=or[F]=or[V]=or[He]=or[nr]=or[ar]=or[xr]=!0,or[D]=or[U]=or[ae]=!1;function lr(Ve,Ge,W,Y,Q,re){var pe,le=Ge&g,Ee=Ge&x,fe=Ge&R;if(W&&(pe=Q?W(Ve,Y,Q,re):W(Ve)),pe!==void 0)return pe;if(!I(Ve))return Ve;var Pe=w(Ve);if(Pe){if(pe=_(Ve),!le)return u(Ve,pe)}else{var ur=c(Ve),cr=ur==U||ur==B;if(T(Ve))return s(Ve,le);if(ur==$||ur==O||cr&&!Q){if(pe=Ee||cr?{}:S(Ve),!le)return Ee?d(Ve,o(pe,Ve)):v(Ve,a(pe,Ve))}else{if(!or[ur])return Q?Ve:{};pe=E(Ve,ur,le)}}re||(re=new e);var de=re.get(Ve);if(de)return de;re.set(Ve,pe),m(Ve)?Ve.forEach(function(Oe){pe.add(lr(Oe,Ge,W,Oe,Ve,re))}):b(Ve)&&Ve.forEach(function(Oe,De){pe.set(De,lr(Oe,Ge,W,De,Ve,re))});var Ae=fe?Ee?f:h:Ee?y:p,Ne=Pe?void 0:Ae(Ve);return r(Ne||Ve,function(Oe,De){Ne&&(De=Oe,Oe=Ve[De]),t(pe,De,lr(Oe,Ge,W,De,Ve,re))}),pe}return L0=lr,L0}var M0,$q;function xX(){if($q)return M0;$q=1;var e=CX(),r=1,t=4;function a(o){return e(o,r|t)}return M0=a,M0}var IX=xX();const AX=Ws(IX);var U0,zq;function uS(){if(zq)return U0;zq=1;var e=du(),r=Co(),t="[object Symbol]";function a(o){return typeof o=="symbol"||r(o)&&e(o)==t}return U0=a,U0}var F0,Zq;function TX(){if(Zq)return F0;Zq=1;var e=hs(),r=uS(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(s,u){if(e(s))return!1;var v=typeof s;return v=="number"||v=="symbol"||v=="boolean"||s==null||r(s)?!0:a.test(s)||!t.test(s)||u!=null&&s in Object(u)}return F0=o,F0}var B0,Hq;function RX(){if(Hq)return B0;Hq=1;var e=EU(),r="Expected a function";function t(a,o){if(typeof a!="function"||o!=null&&typeof o!="function")throw new TypeError(r);var s=function(){var u=arguments,v=o?o.apply(this,u):u[0],d=s.cache;if(d.has(v))return d.get(v);var h=a.apply(this,u);return s.cache=d.set(v,h)||d,h};return s.cache=new(t.Cache||e),s}return t.Cache=e,B0=t,B0}var $0,Vq;function OX(){if(Vq)return $0;Vq=1;var e=RX(),r=500;function t(a){var o=e(a,function(u){return s.size===r&&s.clear(),u}),s=o.cache;return o}return $0=t,$0}var z0,Gq;function kX(){if(Gq)return z0;Gq=1;var e=OX(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t=/\\(\\)?/g,a=e(function(o){var s=[];return o.charCodeAt(0)===46&&s.push(""),o.replace(r,function(u,v,d,h){s.push(d?h.replace(t,"$1"):v||u)}),s});return z0=a,z0}var Z0,Wq;function PX(){if(Wq)return Z0;Wq=1;function e(r,t){for(var a=-1,o=r==null?0:r.length,s=Array(o);++a<o;)s[a]=t(r[a],a,r);return s}return Z0=e,Z0}var H0,Kq;function NX(){if(Kq)return H0;Kq=1;var e=Hf(),r=PX(),t=hs(),a=uS(),o=e?e.prototype:void 0,s=o?o.toString:void 0;function u(v){if(typeof v=="string")return v;if(t(v))return r(v,u)+"";if(a(v))return s?s.call(v):"";var d=v+"";return d=="0"&&1/v==-1/0?"-0":d}return H0=u,H0}var V0,Yq;function jX(){if(Yq)return V0;Yq=1;var e=NX();function r(t){return t==null?"":e(t)}return V0=r,V0}var G0,Jq;function qX(){if(Jq)return G0;Jq=1;var e=hs(),r=TX(),t=kX(),a=jX();function o(s,u){return e(s)?s:r(s,u)?[s]:t(a(s))}return G0=o,G0}var W0,Xq;function DX(){if(Xq)return W0;Xq=1;var e=uS();function r(t){if(typeof t=="string"||e(t))return t;var a=t+"";return a=="0"&&1/t==-1/0?"-0":a}return W0=r,W0}var K0,Qq;function LX(){if(Qq)return K0;Qq=1;var e=qX(),r=DX();function t(a,o){o=e(o,a);for(var s=0,u=o.length;a!=null&&s<u;)a=a[r(o[s++])];return s&&s==u?a:void 0}return K0=t,K0}var Y0,eD;function MX(){if(eD)return Y0;eD=1;var e=LX();function r(t,a,o){var s=t==null?void 0:e(t,a);return s===void 0?o:s}return Y0=r,Y0}var UX=MX();const FX=Ws(UX);var J0,rD;function BU(){if(rD)return J0;rD=1;var e=X_(),r=$f();function t(a,o,s){(s!==void 0&&!r(a[o],s)||s===void 0&&!(o in a))&&e(a,o,s)}return J0=t,J0}var X0,tD;function BX(){if(tD)return X0;tD=1;function e(r){return function(t,a,o){for(var s=-1,u=Object(t),v=o(t),d=v.length;d--;){var h=v[r?d:++s];if(a(u[h],h,u)===!1)break}return t}}return X0=e,X0}var Q0,nD;function $X(){if(nD)return Q0;nD=1;var e=BX(),r=e();return Q0=r,Q0}var eb,aD;function zX(){if(aD)return eb;aD=1;var e=Wf(),r=Co();function t(a){return r(a)&&e(a)}return eb=t,eb}var rb,iD;function ZX(){if(iD)return rb;iD=1;var e=du(),r=iS(),t=Co(),a="[object Object]",o=Function.prototype,s=Object.prototype,u=o.toString,v=s.hasOwnProperty,d=u.call(Object);function h(f){if(!t(f)||e(f)!=a)return!1;var c=r(f);if(c===null)return!0;var _=v.call(c,"constructor")&&c.constructor;return typeof _=="function"&&_ instanceof _&&u.call(_)==d}return rb=h,rb}var tb,oD;function $U(){if(oD)return tb;oD=1;function e(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}return tb=e,tb}var nb,sD;function HX(){if(sD)return nb;sD=1;var e=Al(),r=Tl();function t(a){return e(a,r(a))}return nb=t,nb}var ab,uD;function VX(){if(uD)return ab;uD=1;var e=BU(),r=NU(),t=UU(),a=jU(),o=FU(),s=AU(),u=hs(),v=zX(),d=Q_(),h=Y_(),f=Eo(),c=ZX(),_=OU(),E=$U(),S=HX();function w(T,b,I,m,p,y,g){var x=E(T,I),R=E(b,I),O=g.get(R);if(O){e(T,I,O);return}var j=y?y(x,R,I+"",T,b,g):void 0,k=j===void 0;if(k){var N=u(R),D=!N&&d(R),U=!N&&!D&&_(R);j=R,N||D||U?u(x)?j=x:v(x)?j=a(x):D?(k=!1,j=r(R,!0)):U?(k=!1,j=t(R,!0)):j=[]:c(R)||s(R)?(j=x,s(x)?j=S(x):(!f(x)||h(x))&&(j=o(R))):k=!1}k&&(g.set(R,j),p(j,R,m,y,g),g.delete(R)),e(T,I,j)}return ab=w,ab}var ib,lD;function GX(){if(lD)return ib;lD=1;var e=CU(),r=BU(),t=$X(),a=VX(),o=Eo(),s=Tl(),u=$U();function v(d,h,f,c,_){d!==h&&t(h,function(E,S){if(_||(_=new e),o(E))a(d,h,S,f,v,c,_);else{var w=c?c(u(d,S),E,S+"",d,h,_):void 0;w===void 0&&(w=E),r(d,S,w)}},s)}return ib=v,ib}var ob,cD;function zU(){if(cD)return ob;cD=1;function e(r){return r}return ob=e,ob}var sb,fD;function WX(){if(fD)return sb;fD=1;function e(r,t,a){switch(a.length){case 0:return r.call(t);case 1:return r.call(t,a[0]);case 2:return r.call(t,a[0],a[1]);case 3:return r.call(t,a[0],a[1],a[2])}return r.apply(t,a)}return sb=e,sb}var ub,dD;function KX(){if(dD)return ub;dD=1;var e=WX(),r=Math.max;function t(a,o,s){return o=r(o===void 0?a.length-1:o,0),function(){for(var u=arguments,v=-1,d=r(u.length-o,0),h=Array(d);++v<d;)h[v]=u[o+v];v=-1;for(var f=Array(o+1);++v<o;)f[v]=u[v];return f[o]=s(h),e(a,this,f)}}return ub=t,ub}var lb,hD;function YX(){if(hD)return lb;hD=1;function e(r){return function(){return r}}return lb=e,lb}var cb,vD;function JX(){if(vD)return cb;vD=1;var e=YX(),r=xU(),t=zU(),a=r?function(o,s){return r(o,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:t;return cb=a,cb}var fb,pD;function XX(){if(pD)return fb;pD=1;var e=800,r=16,t=Date.now;function a(o){var s=0,u=0;return function(){var v=t(),d=r-(v-u);if(u=v,d>0){if(++s>=e)return arguments[0]}else s=0;return o.apply(void 0,arguments)}}return fb=a,fb}var db,gD;function QX(){if(gD)return db;gD=1;var e=JX(),r=XX(),t=r(e);return db=t,db}var hb,mD;function eQ(){if(mD)return hb;mD=1;var e=zU(),r=KX(),t=QX();function a(o,s){return t(r(o,s,e),o+"")}return hb=a,hb}var vb,yD;function rQ(){if(yD)return vb;yD=1;var e=$f(),r=Wf(),t=TU(),a=Eo();function o(s,u,v){if(!a(v))return!1;var d=typeof u;return(d=="number"?r(v)&&t(u,v.length):d=="string"&&u in v)?e(v[u],s):!1}return vb=o,vb}var pb,bD;function tQ(){if(bD)return pb;bD=1;var e=eQ(),r=rQ();function t(a){return e(function(o,s){var u=-1,v=s.length,d=v>1?s[v-1]:void 0,h=v>2?s[2]:void 0;for(d=a.length>3&&typeof d=="function"?(v--,d):void 0,h&&r(s[0],s[1],h)&&(d=v<3?void 0:d,v=1),o=Object(o);++u<v;){var f=s[u];f&&a(o,f,u,d)}return o})}return pb=t,pb}var gb,_D;function nQ(){if(_D)return gb;_D=1;var e=GX(),r=tQ(),t=r(function(a,o,s){e(a,o,s)});return gb=t,gb}var aQ=nQ();const iQ=Ws(aQ);var ZU="1.13.7",SD=typeof self=="object"&&self.self===self&&self||typeof globalThis=="object"&&globalThis.global===globalThis&&globalThis||Function("return this")()||{},Kf=Array.prototype,lS=Object.prototype,wD=typeof Symbol<"u"?Symbol.prototype:null,oQ=Kf.push,Rl=Kf.slice,ol=lS.toString,sQ=lS.hasOwnProperty,HU=typeof ArrayBuffer<"u",uQ=typeof DataView<"u",lQ=Array.isArray,ED=Object.keys,CD=Object.create,xD=HU&&ArrayBuffer.isView,cQ=isNaN,fQ=isFinite,VU=!{toString:null}.propertyIsEnumerable("toString"),ID=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],dQ=Math.pow(2,53)-1;function la(e,r){return r=r==null?e.length-1:+r,function(){for(var t=Math.max(arguments.length-r,0),a=Array(t),o=0;o<t;o++)a[o]=arguments[o+r];switch(r){case 0:return e.call(this,a);case 1:return e.call(this,arguments[0],a);case 2:return e.call(this,arguments[0],arguments[1],a)}var s=Array(r+1);for(o=0;o<r;o++)s[o]=arguments[o];return s[r]=a,e.apply(this,s)}}function xo(e){var r=typeof e;return r==="function"||r==="object"&&!!e}function hQ(e){return e===null}function GU(e){return e===void 0}function WU(e){return e===!0||e===!1||ol.call(e)==="[object Boolean]"}function vQ(e){return!!(e&&e.nodeType===1)}function Hn(e){var r="[object "+e+"]";return function(t){return ol.call(t)===r}}var cS=Hn("String"),KU=Hn("Number"),pQ=Hn("Date"),gQ=Hn("RegExp"),mQ=Hn("Error"),YU=Hn("Symbol"),JU=Hn("ArrayBuffer"),XU=Hn("Function"),yQ=SD.document&&SD.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof yQ!="function"&&(XU=function(e){return typeof e=="function"||!1});var Yn=XU,QU=Hn("Object"),eF=uQ&&(!/\[native code\]/.test(String(DataView))||QU(new DataView(new ArrayBuffer(8)))),fS=typeof Map<"u"&&QU(new Map),bQ=Hn("DataView");function _Q(e){return e!=null&&Yn(e.getInt8)&&JU(e.buffer)}var Xc=eF?_Q:bQ,vs=lQ||Hn("Array");function Io(e,r){return e!=null&&sQ.call(e,r)}var Gb=Hn("Arguments");(function(){Gb(arguments)||(Gb=function(e){return Io(e,"callee")})})();var dS=Gb;function SQ(e){return!YU(e)&&fQ(e)&&!isNaN(parseFloat(e))}function rF(e){return KU(e)&&cQ(e)}function tF(e){return function(){return e}}function nF(e){return function(r){var t=e(r);return typeof t=="number"&&t>=0&&t<=dQ}}function aF(e){return function(r){return r==null?void 0:r[e]}}var Qc=aF("byteLength"),wQ=nF(Qc),EQ=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function CQ(e){return xD?xD(e)&&!Xc(e):wQ(e)&&EQ.test(ol.call(e))}var iF=HU?CQ:tF(!1),ca=aF("length");function xQ(e){for(var r={},t=e.length,a=0;a<t;++a)r[e[a]]=!0;return{contains:function(o){return r[o]===!0},push:function(o){return r[o]=!0,e.push(o)}}}function oF(e,r){r=xQ(r);var t=ID.length,a=e.constructor,o=Yn(a)&&a.prototype||lS,s="constructor";for(Io(e,s)&&!r.contains(s)&&r.push(s);t--;)s=ID[t],s in e&&e[s]!==o[s]&&!r.contains(s)&&r.push(s)}function un(e){if(!xo(e))return[];if(ED)return ED(e);var r=[];for(var t in e)Io(e,t)&&r.push(t);return VU&&oF(e,r),r}function sF(e){if(e==null)return!0;var r=ca(e);return typeof r=="number"&&(vs(e)||cS(e)||dS(e))?r===0:ca(un(e))===0}function uF(e,r){var t=un(r),a=t.length;if(e==null)return!a;for(var o=Object(e),s=0;s<a;s++){var u=t[s];if(r[u]!==o[u]||!(u in o))return!1}return!0}function vt(e){if(e instanceof vt)return e;if(!(this instanceof vt))return new vt(e);this._wrapped=e}vt.VERSION=ZU;vt.prototype.value=function(){return this._wrapped};vt.prototype.valueOf=vt.prototype.toJSON=vt.prototype.value;vt.prototype.toString=function(){return String(this._wrapped)};function AD(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,Qc(e))}var TD="[object DataView]";function Wb(e,r,t,a){if(e===r)return e!==0||1/e===1/r;if(e==null||r==null)return!1;if(e!==e)return r!==r;var o=typeof e;return o!=="function"&&o!=="object"&&typeof r!="object"?!1:lF(e,r,t,a)}function lF(e,r,t,a){e instanceof vt&&(e=e._wrapped),r instanceof vt&&(r=r._wrapped);var o=ol.call(e);if(o!==ol.call(r))return!1;if(eF&&o=="[object Object]"&&Xc(e)){if(!Xc(r))return!1;o=TD}switch(o){case"[object RegExp]":case"[object String]":return""+e==""+r;case"[object Number]":return+e!=+e?+r!=+r:+e==0?1/+e===1/r:+e==+r;case"[object Date]":case"[object Boolean]":return+e==+r;case"[object Symbol]":return wD.valueOf.call(e)===wD.valueOf.call(r);case"[object ArrayBuffer]":case TD:return lF(AD(e),AD(r),t,a)}var s=o==="[object Array]";if(!s&&iF(e)){var u=Qc(e);if(u!==Qc(r))return!1;if(e.buffer===r.buffer&&e.byteOffset===r.byteOffset)return!0;s=!0}if(!s){if(typeof e!="object"||typeof r!="object")return!1;var v=e.constructor,d=r.constructor;if(v!==d&&!(Yn(v)&&v instanceof v&&Yn(d)&&d instanceof d)&&"constructor"in e&&"constructor"in r)return!1}t=t||[],a=a||[];for(var h=t.length;h--;)if(t[h]===e)return a[h]===r;if(t.push(e),a.push(r),s){if(h=e.length,h!==r.length)return!1;for(;h--;)if(!Wb(e[h],r[h],t,a))return!1}else{var f=un(e),c;if(h=f.length,un(r).length!==h)return!1;for(;h--;)if(c=f[h],!(Io(r,c)&&Wb(e[c],r[c],t,a)))return!1}return t.pop(),a.pop(),!0}function cF(e,r){return Wb(e,r)}function Ol(e){if(!xo(e))return[];var r=[];for(var t in e)r.push(t);return VU&&oF(e,r),r}function hS(e){var r=ca(e);return function(t){if(t==null)return!1;var a=Ol(t);if(ca(a))return!1;for(var o=0;o<r;o++)if(!Yn(t[e[o]]))return!1;return e!==hF||!Yn(t[vS])}}var vS="forEach",fF="has",pS=["clear","delete"],dF=["get",fF,"set"],IQ=pS.concat(vS,dF),hF=pS.concat(dF),AQ=["add"].concat(pS,vS,fF),TQ=fS?hS(IQ):Hn("Map"),RQ=fS?hS(hF):Hn("WeakMap"),OQ=fS?hS(AQ):Hn("Set"),kQ=Hn("WeakSet");function ps(e){for(var r=un(e),t=r.length,a=Array(t),o=0;o<t;o++)a[o]=e[r[o]];return a}function PQ(e){for(var r=un(e),t=r.length,a=Array(t),o=0;o<t;o++)a[o]=[r[o],e[r[o]]];return a}function vF(e){for(var r={},t=un(e),a=0,o=t.length;a<o;a++)r[e[t[a]]]=t[a];return r}function Kb(e){var r=[];for(var t in e)Yn(e[t])&&r.push(t);return r.sort()}function gS(e,r){return function(t){var a=arguments.length;if(r&&(t=Object(t)),a<2||t==null)return t;for(var o=1;o<a;o++)for(var s=arguments[o],u=e(s),v=u.length,d=0;d<v;d++){var h=u[d];(!r||t[h]===void 0)&&(t[h]=s[h])}return t}}var pF=gS(Ol),ef=gS(un),gF=gS(Ol,!0);function NQ(){return function(){}}function mF(e){if(!xo(e))return{};if(CD)return CD(e);var r=NQ();r.prototype=e;var t=new r;return r.prototype=null,t}function jQ(e,r){var t=mF(e);return r&&ef(t,r),t}function qQ(e){return xo(e)?vs(e)?e.slice():pF({},e):e}function DQ(e,r){return r(e),e}function yF(e){return vs(e)?e:[e]}vt.toPath=yF;function kl(e){return vt.toPath(e)}function mS(e,r){for(var t=r.length,a=0;a<t;a++){if(e==null)return;e=e[r[a]]}return t?e:void 0}function bF(e,r,t){var a=mS(e,kl(r));return GU(a)?t:a}function LQ(e,r){r=kl(r);for(var t=r.length,a=0;a<t;a++){var o=r[a];if(!Io(e,o))return!1;e=e[o]}return!!t}function yS(e){return e}function sl(e){return e=ef({},e),function(r){return uF(r,e)}}function bS(e){return e=kl(e),function(r){return mS(r,e)}}function Pl(e,r,t){if(r===void 0)return e;switch(t??3){case 1:return function(a){return e.call(r,a)};case 3:return function(a,o,s){return e.call(r,a,o,s)};case 4:return function(a,o,s,u){return e.call(r,a,o,s,u)}}return function(){return e.apply(r,arguments)}}function _F(e,r,t){return e==null?yS:Yn(e)?Pl(e,r,t):xo(e)&&!vs(e)?sl(e):bS(e)}function _S(e,r){return _F(e,r,1/0)}vt.iteratee=_S;function ha(e,r,t){return vt.iteratee!==_S?vt.iteratee(e,r):_F(e,r,t)}function MQ(e,r,t){r=ha(r,t);for(var a=un(e),o=a.length,s={},u=0;u<o;u++){var v=a[u];s[v]=r(e[v],v,e)}return s}function SF(){}function UQ(e){return e==null?SF:function(r){return bF(e,r)}}function FQ(e,r,t){var a=Array(Math.max(0,e));r=Pl(r,t,1);for(var o=0;o<e;o++)a[o]=r(o);return a}function Yb(e,r){return r==null&&(r=e,e=0),e+Math.floor(Math.random()*(r-e+1))}var ul=Date.now||function(){return new Date().getTime()};function wF(e){var r=function(s){return e[s]},t="(?:"+un(e).join("|")+")",a=RegExp(t),o=RegExp(t,"g");return function(s){return s=s==null?"":""+s,a.test(s)?s.replace(o,r):s}}var EF={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},BQ=wF(EF),$Q=vF(EF),zQ=wF($Q),ZQ=vt.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},mb=/(.)^/,HQ={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},VQ=/\\|'|\r|\n|\u2028|\u2029/g;function GQ(e){return"\\"+HQ[e]}var WQ=/^\s*(\w|\$)+\s*$/;function KQ(e,r,t){!r&&t&&(r=t),r=gF({},r,vt.templateSettings);var a=RegExp([(r.escape||mb).source,(r.interpolate||mb).source,(r.evaluate||mb).source].join("|")+"|$","g"),o=0,s="__p+='";e.replace(a,function(h,f,c,_,E){return s+=e.slice(o,E).replace(VQ,GQ),o=E+h.length,f?s+=`'+
44
+ `+q.stack}return{value:n,source:i,stack:P}}function Wd(n,i){try{console.error(i.value)}catch(l){setTimeout(function(){throw l})}}var a$=typeof WeakMap=="function"?WeakMap:Map;function V2(n,i,l){l=ki(-1,l),l.tag=3,l.payload={element:null};var C=i.value;return l.callback=function(){_c||(_c=!0,sh=C),Wd(n,i)},l}function G2(n,i,l){l=ki(-1,l),l.tag=3;var C=n.type.getDerivedStateFromError;if(typeof C=="function"){var P=i.value;l.payload=function(){return C(P)},l.callback=function(){Wd(n,i)}}var q=n.stateNode;return q!==null&&typeof q.componentDidCatch=="function"&&(l.callback=function(){Wd(n,i),typeof C!="function"&&(uo===null?uo=new Set([this]):uo.add(this));var K=i.stack;this.componentDidCatch(i.value,{componentStack:K!==null?K:""})}),l}function W2(n,i,l){var C=n.pingCache;if(C===null){C=n.pingCache=new a$;var P=new Set;C.set(i,P)}else P=C.get(i),P===void 0&&(P=new Set,C.set(i,P));P.has(l)||(P.add(l),n=m$.bind(null,n,i,l),i.then(n,n))}function K2(n){do{var i;if((i=n.tag===13)&&(i=n.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return n;n=n.return}while(n!==null);return null}function Y2(n,i,l,C,P){return(n.mode&1)===0?(n===i?n.flags|=65536:(n.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(i=ki(-1,1),i.tag=2,oo(l,i))),l.lanes|=1),n):(n.flags|=65536,n.lanes=P,n)}var J2,Kd,X2,Q2;J2=function(n,i){for(var l=i.child;l!==null;){if(l.tag===5||l.tag===6)n.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Kd=function(){},X2=function(n,i,l,C){var P=n.memoizedProps;if(P!==C){n=i.stateNode,qo(hi.current);var q=null;switch(l){case"input":P=xr(n,P),C=xr(n,C),q=[];break;case"select":P=L({},P,{value:void 0}),C=L({},C,{value:void 0}),q=[];break;case"textarea":P=re(n,P),C=re(n,C),q=[];break;default:typeof P.onClick!="function"&&typeof C.onClick=="function"&&(n.onclick=Wl)}vr(l,C);var K;l=null;for(we in P)if(!C.hasOwnProperty(we)&&P.hasOwnProperty(we)&&P[we]!=null)if(we==="style"){var ee=P[we];for(K in ee)ee.hasOwnProperty(K)&&(l||(l={}),l[K]="")}else we!=="dangerouslySetInnerHTML"&&we!=="children"&&we!=="suppressContentEditableWarning"&&we!=="suppressHydrationWarning"&&we!=="autoFocus"&&(o.hasOwnProperty(we)?q||(q=[]):(q=q||[]).push(we,null));for(we in C){var se=C[we];if(ee=P!=null?P[we]:void 0,C.hasOwnProperty(we)&&se!==ee&&(se!=null||ee!=null))if(we==="style")if(ee){for(K in ee)!ee.hasOwnProperty(K)||se&&se.hasOwnProperty(K)||(l||(l={}),l[K]="");for(K in se)se.hasOwnProperty(K)&&ee[K]!==se[K]&&(l||(l={}),l[K]=se[K])}else l||(q||(q=[]),q.push(we,l)),l=se;else we==="dangerouslySetInnerHTML"?(se=se?se.__html:void 0,ee=ee?ee.__html:void 0,se!=null&&ee!==se&&(q=q||[]).push(we,se)):we==="children"?typeof se!="string"&&typeof se!="number"||(q=q||[]).push(we,""+se):we!=="suppressContentEditableWarning"&&we!=="suppressHydrationWarning"&&(o.hasOwnProperty(we)?(se!=null&&we==="onScroll"&&xt("scroll",n),q||ee===se||(q=[])):(q=q||[]).push(we,se))}l&&(q=q||[]).push("style",l);var we=q;(i.updateQueue=we)&&(i.flags|=4)}},Q2=function(n,i,l,C){l!==C&&(i.flags|=4)};function Bu(n,i){if(!kt)switch(n.tailMode){case"hidden":i=n.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var C=null;l!==null;)l.alternate!==null&&(C=l),l=l.sibling;C===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:C.sibling=null}}function Fn(n){var i=n.alternate!==null&&n.alternate.child===n.child,l=0,C=0;if(i)for(var P=n.child;P!==null;)l|=P.lanes|P.childLanes,C|=P.subtreeFlags&14680064,C|=P.flags&14680064,P.return=n,P=P.sibling;else for(P=n.child;P!==null;)l|=P.lanes|P.childLanes,C|=P.subtreeFlags,C|=P.flags,P.return=n,P=P.sibling;return n.subtreeFlags|=C,n.childLanes=l,i}function i$(n,i,l){var C=i.pendingProps;switch(kd(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fn(i),null;case 1:return ta(i.type)&&Yl(),Fn(i),null;case 3:return C=i.stateNode,js(),It(ra),It(Mn),Md(),C.pendingContext&&(C.context=C.pendingContext,C.pendingContext=null),(n===null||n.child===null)&&(Pu(i)?i.flags|=4:n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Xa!==null&&(ch(Xa),Xa=null))),Kd(n,i),Fn(i),null;case 5:Dd(i);var P=qo(Du.current);if(l=i.type,n!==null&&i.stateNode!=null)X2(n,i,l,C,P),n.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!C){if(i.stateNode===null)throw Error(t(166));return Fn(i),null}if(n=qo(hi.current),Pu(i)){C=i.stateNode,l=i.type;var q=i.memoizedProps;switch(C[di]=i,C[Ou]=q,n=(i.mode&1)!==0,l){case"dialog":xt("cancel",C),xt("close",C);break;case"iframe":case"object":case"embed":xt("load",C);break;case"video":case"audio":for(P=0;P<Au.length;P++)xt(Au[P],C);break;case"source":xt("error",C);break;case"img":case"image":case"link":xt("error",C),xt("load",C);break;case"details":xt("toggle",C);break;case"input":or(C,q),xt("invalid",C);break;case"select":C._wrapperState={wasMultiple:!!q.multiple},xt("invalid",C);break;case"textarea":pe(C,q),xt("invalid",C)}vr(l,q),P=null;for(var K in q)if(q.hasOwnProperty(K)){var ee=q[K];K==="children"?typeof ee=="string"?C.textContent!==ee&&(q.suppressHydrationWarning!==!0&&Gl(C.textContent,ee,n),P=["children",ee]):typeof ee=="number"&&C.textContent!==""+ee&&(q.suppressHydrationWarning!==!0&&Gl(C.textContent,ee,n),P=["children",""+ee]):o.hasOwnProperty(K)&&ee!=null&&K==="onScroll"&&xt("scroll",C)}switch(l){case"input":He(C),Ge(C,q,!0);break;case"textarea":He(C),Ee(C);break;case"select":case"option":break;default:typeof q.onClick=="function"&&(C.onclick=Wl)}C=P,i.updateQueue=C,C!==null&&(i.flags|=4)}else{K=P.nodeType===9?P:P.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=fe(l)),n==="http://www.w3.org/1999/xhtml"?l==="script"?(n=K.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof C.is=="string"?n=K.createElement(l,{is:C.is}):(n=K.createElement(l),l==="select"&&(K=n,C.multiple?K.multiple=!0:C.size&&(K.size=C.size))):n=K.createElementNS(n,l),n[di]=i,n[Ou]=C,J2(n,i,!1,!1),i.stateNode=n;e:{switch(K=$r(l,C),l){case"dialog":xt("cancel",n),xt("close",n),P=C;break;case"iframe":case"object":case"embed":xt("load",n),P=C;break;case"video":case"audio":for(P=0;P<Au.length;P++)xt(Au[P],n);P=C;break;case"source":xt("error",n),P=C;break;case"img":case"image":case"link":xt("error",n),xt("load",n),P=C;break;case"details":xt("toggle",n),P=C;break;case"input":or(n,C),P=xr(n,C),xt("invalid",n);break;case"option":P=C;break;case"select":n._wrapperState={wasMultiple:!!C.multiple},P=L({},C,{value:void 0}),xt("invalid",n);break;case"textarea":pe(n,C),P=re(n,C),xt("invalid",n);break;default:P=C}vr(l,P),ee=P;for(q in ee)if(ee.hasOwnProperty(q)){var se=ee[q];q==="style"?De(n,se):q==="dangerouslySetInnerHTML"?(se=se?se.__html:void 0,se!=null&&cr(n,se)):q==="children"?typeof se=="string"?(l!=="textarea"||se!=="")&&de(n,se):typeof se=="number"&&de(n,""+se):q!=="suppressContentEditableWarning"&&q!=="suppressHydrationWarning"&&q!=="autoFocus"&&(o.hasOwnProperty(q)?se!=null&&q==="onScroll"&&xt("scroll",n):se!=null&&m(n,q,se,K))}switch(l){case"input":He(n),Ge(n,C,!1);break;case"textarea":He(n),Ee(n);break;case"option":C.value!=null&&n.setAttribute("value",""+ge(C.value));break;case"select":n.multiple=!!C.multiple,q=C.value,q!=null?Q(n,!!C.multiple,q,!1):C.defaultValue!=null&&Q(n,!!C.multiple,C.defaultValue,!0);break;default:typeof P.onClick=="function"&&(n.onclick=Wl)}switch(l){case"button":case"input":case"select":case"textarea":C=!!C.autoFocus;break e;case"img":C=!0;break e;default:C=!1}}C&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Fn(i),null;case 6:if(n&&i.stateNode!=null)Q2(n,i,n.memoizedProps,C);else{if(typeof C!="string"&&i.stateNode===null)throw Error(t(166));if(l=qo(Du.current),qo(hi.current),Pu(i)){if(C=i.stateNode,l=i.memoizedProps,C[di]=i,(q=C.nodeValue!==l)&&(n=ma,n!==null))switch(n.tag){case 3:Gl(C.nodeValue,l,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&Gl(C.nodeValue,l,(n.mode&1)!==0)}q&&(i.flags|=4)}else C=(l.nodeType===9?l:l.ownerDocument).createTextNode(C),C[di]=i,i.stateNode=C}return Fn(i),null;case 13:if(It(jt),C=i.memoizedState,kt&&na!==null&&(i.mode&1)!==0&&(i.flags&128)===0){for(C=na;C;)C=Ti(C.nextSibling);return Ps(),i.flags|=98560,i}if(C!==null&&C.dehydrated!==null){if(C=Pu(i),n===null){if(!C)throw Error(t(318));if(C=i.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(t(317));C[di]=i}else Ps(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;return Fn(i),null}return Xa!==null&&(ch(Xa),Xa=null),(i.flags&128)!==0?(i.lanes=l,i):(C=C!==null,l=!1,n===null?Pu(i):l=n.memoizedState!==null,C!==l&&C&&(i.child.flags|=8192,(i.mode&1)!==0&&(n===null||(jt.current&1)!==0?on===0&&(on=3):hh())),i.updateQueue!==null&&(i.flags|=4),Fn(i),null);case 4:return js(),Kd(n,i),n===null&&Tu(i.stateNode.containerInfo),Fn(i),null;case 10:return xd(i.type._context),Fn(i),null;case 17:return ta(i.type)&&Yl(),Fn(i),null;case 19:if(It(jt),q=i.memoizedState,q===null)return Fn(i),null;if(C=(i.flags&128)!==0,K=q.rendering,K===null)if(C)Bu(q,!1);else{if(on!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(K=sc(n),K!==null){for(i.flags|=128,Bu(q,!1),C=K.updateQueue,C!==null&&(i.updateQueue=C,i.flags|=4),i.subtreeFlags=0,C=l,l=i.child;l!==null;)q=l,n=C,q.flags&=14680066,K=q.alternate,K===null?(q.childLanes=0,q.lanes=n,q.child=null,q.subtreeFlags=0,q.memoizedProps=null,q.memoizedState=null,q.updateQueue=null,q.dependencies=null,q.stateNode=null):(q.childLanes=K.childLanes,q.lanes=K.lanes,q.child=K.child,q.subtreeFlags=0,q.deletions=null,q.memoizedProps=K.memoizedProps,q.memoizedState=K.memoizedState,q.updateQueue=K.updateQueue,q.type=K.type,n=K.dependencies,q.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),l=l.sibling;return _t(jt,jt.current&1|2),i.child}n=n.sibling}q.tail!==null&&Fr()>Ls&&(i.flags|=128,C=!0,Bu(q,!1),i.lanes=4194304)}else{if(!C)if(n=sc(K),n!==null){if(i.flags|=128,C=!0,l=n.updateQueue,l!==null&&(i.updateQueue=l,i.flags|=4),Bu(q,!0),q.tail===null&&q.tailMode==="hidden"&&!K.alternate&&!kt)return Fn(i),null}else 2*Fr()-q.renderingStartTime>Ls&&l!==1073741824&&(i.flags|=128,C=!0,Bu(q,!1),i.lanes=4194304);q.isBackwards?(K.sibling=i.child,i.child=K):(l=q.last,l!==null?l.sibling=K:i.child=K,q.last=K)}return q.tail!==null?(i=q.tail,q.rendering=i,q.tail=i.sibling,q.renderingStartTime=Fr(),i.sibling=null,l=jt.current,_t(jt,C?l&1|2:l&1),i):(Fn(i),null);case 22:case 23:return dh(),C=i.memoizedState!==null,n!==null&&n.memoizedState!==null!==C&&(i.flags|=8192),C&&(i.mode&1)!==0?(ya&1073741824)!==0&&(Fn(i),i.subtreeFlags&6&&(i.flags|=8192)):Fn(i),null;case 24:return null;case 25:return null}throw Error(t(156,i.tag))}var o$=p.ReactCurrentOwner,aa=!1;function Gn(n,i,l,C){i.child=n===null?E2(i,null,l,C):Ns(i,n.child,l,C)}function ew(n,i,l,C,P){l=l.render;var q=i.ref;return Rs(i,P),C=Bd(n,i,l,C,q,P),l=$d(),n!==null&&!aa?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~P,ji(n,i,P)):(kt&&l&&Od(i),i.flags|=1,Gn(n,i,C,P),i.child)}function rw(n,i,l,C,P){if(n===null){var q=l.type;return typeof q=="function"&&!vh(q)&&q.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(i.tag=15,i.type=q,tw(n,i,q,C,P)):(n=Ac(l.type,null,C,i,i.mode,P),n.ref=i.ref,n.return=i,i.child=n)}if(q=n.child,(n.lanes&P)===0){var K=q.memoizedProps;if(l=l.compare,l=l!==null?l:xu,l(K,C)&&n.ref===i.ref)return ji(n,i,P)}return i.flags|=1,n=ho(q,C),n.ref=i.ref,n.return=i,i.child=n}function tw(n,i,l,C,P){if(n!==null){var q=n.memoizedProps;if(xu(q,C)&&n.ref===i.ref)if(aa=!1,i.pendingProps=C=q,(n.lanes&P)!==0)(n.flags&131072)!==0&&(aa=!0);else return i.lanes=n.lanes,ji(n,i,P)}return Yd(n,i,l,C,P)}function nw(n,i,l){var C=i.pendingProps,P=C.children,q=n!==null?n.memoizedState:null;if(C.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},_t(Ds,ya),ya|=l;else if((l&1073741824)!==0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},C=q!==null?q.baseLanes:l,_t(Ds,ya),ya|=C;else return n=q!==null?q.baseLanes|l:l,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:n,cachePool:null,transitions:null},i.updateQueue=null,_t(Ds,ya),ya|=n,null;else q!==null?(C=q.baseLanes|l,i.memoizedState=null):C=l,_t(Ds,ya),ya|=C;return Gn(n,i,P,l),i.child}function aw(n,i){var l=i.ref;(n===null&&l!==null||n!==null&&n.ref!==l)&&(i.flags|=512,i.flags|=2097152)}function Yd(n,i,l,C,P){var q=ta(l)?Po:Mn.current;return q=As(i,q),Rs(i,P),l=Bd(n,i,l,C,q,P),C=$d(),n!==null&&!aa?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~P,ji(n,i,P)):(kt&&C&&Od(i),i.flags|=1,Gn(n,i,l,P),i.child)}function iw(n,i,l,C,P){if(ta(l)){var q=!0;Jl(i)}else q=!1;if(Rs(i,P),i.stateNode===null)n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2),p2(i,l,C),Rd(i,l,C,P),C=!0;else if(n===null){var K=i.stateNode,ee=i.memoizedProps;K.props=ee;var se=K.context,we=l.contextType;typeof we=="object"&&we!==null?we=ka(we):(we=ta(l)?Po:Mn.current,we=As(i,we));var $e=l.getDerivedStateFromProps,dr=typeof $e=="function"||typeof K.getSnapshotBeforeUpdate=="function";dr||typeof K.UNSAFE_componentWillReceiveProps!="function"&&typeof K.componentWillReceiveProps!="function"||(ee!==C||se!==we)&&g2(i,K,C,we),io=!1;var qe=i.memoizedState;K.state=qe,tc(i,C,K,P),se=i.memoizedState,ee!==C||qe!==se||ra.current||io?(typeof $e=="function"&&(Td(i,l,$e,C),se=i.memoizedState),(ee=io||v2(i,l,ee,C,qe,se,we))?(dr||typeof K.UNSAFE_componentWillMount!="function"&&typeof K.componentWillMount!="function"||(typeof K.componentWillMount=="function"&&K.componentWillMount(),typeof K.UNSAFE_componentWillMount=="function"&&K.UNSAFE_componentWillMount()),typeof K.componentDidMount=="function"&&(i.flags|=4194308)):(typeof K.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=C,i.memoizedState=se),K.props=C,K.state=se,K.context=we,C=ee):(typeof K.componentDidMount=="function"&&(i.flags|=4194308),C=!1)}else{K=i.stateNode,c2(n,i),ee=i.memoizedProps,we=i.type===i.elementType?ee:Ya(i.type,ee),K.props=we,dr=i.pendingProps,qe=K.context,se=l.contextType,typeof se=="object"&&se!==null?se=ka(se):(se=ta(l)?Po:Mn.current,se=As(i,se));var pr=l.getDerivedStateFromProps;($e=typeof pr=="function"||typeof K.getSnapshotBeforeUpdate=="function")||typeof K.UNSAFE_componentWillReceiveProps!="function"&&typeof K.componentWillReceiveProps!="function"||(ee!==dr||qe!==se)&&g2(i,K,C,se),io=!1,qe=i.memoizedState,K.state=qe,tc(i,C,K,P);var fr=i.memoizedState;ee!==dr||qe!==fr||ra.current||io?(typeof pr=="function"&&(Td(i,l,pr,C),fr=i.memoizedState),(we=io||v2(i,l,we,C,qe,fr,se)||!1)?($e||typeof K.UNSAFE_componentWillUpdate!="function"&&typeof K.componentWillUpdate!="function"||(typeof K.componentWillUpdate=="function"&&K.componentWillUpdate(C,fr,se),typeof K.UNSAFE_componentWillUpdate=="function"&&K.UNSAFE_componentWillUpdate(C,fr,se)),typeof K.componentDidUpdate=="function"&&(i.flags|=4),typeof K.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof K.componentDidUpdate!="function"||ee===n.memoizedProps&&qe===n.memoizedState||(i.flags|=4),typeof K.getSnapshotBeforeUpdate!="function"||ee===n.memoizedProps&&qe===n.memoizedState||(i.flags|=1024),i.memoizedProps=C,i.memoizedState=fr),K.props=C,K.state=fr,K.context=se,C=we):(typeof K.componentDidUpdate!="function"||ee===n.memoizedProps&&qe===n.memoizedState||(i.flags|=4),typeof K.getSnapshotBeforeUpdate!="function"||ee===n.memoizedProps&&qe===n.memoizedState||(i.flags|=1024),C=!1)}return Jd(n,i,l,C,q,P)}function Jd(n,i,l,C,P,q){aw(n,i);var K=(i.flags&128)!==0;if(!C&&!K)return P&&u2(i,l,!1),ji(n,i,q);C=i.stateNode,o$.current=i;var ee=K&&typeof l.getDerivedStateFromError!="function"?null:C.render();return i.flags|=1,n!==null&&K?(i.child=Ns(i,n.child,null,q),i.child=Ns(i,null,ee,q)):Gn(n,i,ee,q),i.memoizedState=C.state,P&&u2(i,l,!0),i.child}function ow(n){var i=n.stateNode;i.pendingContext?o2(n,i.pendingContext,i.pendingContext!==i.context):i.context&&o2(n,i.context,!1),qd(n,i.containerInfo)}function sw(n,i,l,C,P){return Ps(),jd(P),i.flags|=256,Gn(n,i,l,C),i.child}var hc={dehydrated:null,treeContext:null,retryLane:0};function vc(n){return{baseLanes:n,cachePool:null,transitions:null}}function uw(n,i){return{baseLanes:n.baseLanes|i,cachePool:null,transitions:n.transitions}}function lw(n,i,l){var C=i.pendingProps,P=jt.current,q=!1,K=(i.flags&128)!==0,ee;if((ee=K)||(ee=n!==null&&n.memoizedState===null?!1:(P&2)!==0),ee?(q=!0,i.flags&=-129):(n===null||n.memoizedState!==null)&&(P|=1),_t(jt,P&1),n===null)return Nd(i),n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((i.mode&1)===0?i.lanes=1:n.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(P=C.children,n=C.fallback,q?(C=i.mode,q=i.child,P={mode:"hidden",children:P},(C&1)===0&&q!==null?(q.childLanes=0,q.pendingProps=P):q=Tc(P,C,0,null),n=Bo(n,C,l,null),q.return=i,n.return=i,q.sibling=n,i.child=q,i.child.memoizedState=vc(l),i.memoizedState=hc,n):Xd(i,P));if(P=n.memoizedState,P!==null){if(ee=P.dehydrated,ee!==null){if(K)return i.flags&256?(i.flags&=-257,pc(n,i,l,Error(t(422)))):i.memoizedState!==null?(i.child=n.child,i.flags|=128,null):(q=C.fallback,P=i.mode,C=Tc({mode:"visible",children:C.children},P,0,null),q=Bo(q,P,l,null),q.flags|=2,C.return=i,q.return=i,C.sibling=q,i.child=C,(i.mode&1)!==0&&Ns(i,n.child,null,l),i.child.memoizedState=vc(l),i.memoizedState=hc,q);if((i.mode&1)===0)i=pc(n,i,l,null);else if(ee.data==="$!")i=pc(n,i,l,Error(t(419)));else if(C=(l&n.childLanes)!==0,aa||C){if(C=an,C!==null){switch(l&-l){case 4:q=2;break;case 16:q=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:q=32;break;case 536870912:q=268435456;break;default:q=0}C=(q&(C.suspendedLanes|l))!==0?0:q,C!==0&&C!==P.retryLane&&(P.retryLane=C,Da(n,C,-1))}hh(),i=pc(n,i,l,Error(t(421)))}else ee.data==="$?"?(i.flags|=128,i.child=n.child,i=y$.bind(null,n),ee._reactRetry=i,i=null):(l=P.treeContext,na=Ti(ee.nextSibling),ma=i,kt=!0,Xa=null,l!==null&&(Pa[Na++]=Pi,Pa[Na++]=Ni,Pa[Na++]=No,Pi=l.id,Ni=l.overflow,No=i),i=Xd(i,i.pendingProps.children),i.flags|=4096);return i}return q?(C=fw(n,i,C.children,C.fallback,l),q=i.child,P=n.child.memoizedState,q.memoizedState=P===null?vc(l):uw(P,l),q.childLanes=n.childLanes&~l,i.memoizedState=hc,C):(l=cw(n,i,C.children,l),i.memoizedState=null,l)}return q?(C=fw(n,i,C.children,C.fallback,l),q=i.child,P=n.child.memoizedState,q.memoizedState=P===null?vc(l):uw(P,l),q.childLanes=n.childLanes&~l,i.memoizedState=hc,C):(l=cw(n,i,C.children,l),i.memoizedState=null,l)}function Xd(n,i){return i=Tc({mode:"visible",children:i},n.mode,0,null),i.return=n,n.child=i}function cw(n,i,l,C){var P=n.child;return n=P.sibling,l=ho(P,{mode:"visible",children:l}),(i.mode&1)===0&&(l.lanes=C),l.return=i,l.sibling=null,n!==null&&(C=i.deletions,C===null?(i.deletions=[n],i.flags|=16):C.push(n)),i.child=l}function fw(n,i,l,C,P){var q=i.mode;n=n.child;var K=n.sibling,ee={mode:"hidden",children:l};return(q&1)===0&&i.child!==n?(l=i.child,l.childLanes=0,l.pendingProps=ee,i.deletions=null):(l=ho(n,ee),l.subtreeFlags=n.subtreeFlags&14680064),K!==null?C=ho(K,C):(C=Bo(C,q,P,null),C.flags|=2),C.return=i,l.return=i,l.sibling=C,i.child=l,C}function pc(n,i,l,C){return C!==null&&jd(C),Ns(i,n.child,null,l),n=Xd(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function dw(n,i,l){n.lanes|=i;var C=n.alternate;C!==null&&(C.lanes|=i),Id(n.return,i,l)}function Qd(n,i,l,C,P){var q=n.memoizedState;q===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:C,tail:l,tailMode:P}:(q.isBackwards=i,q.rendering=null,q.renderingStartTime=0,q.last=C,q.tail=l,q.tailMode=P)}function hw(n,i,l){var C=i.pendingProps,P=C.revealOrder,q=C.tail;if(Gn(n,i,C.children,l),C=jt.current,(C&2)!==0)C=C&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&dw(n,l,i);else if(n.tag===19)dw(n,l,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}C&=1}if(_t(jt,C),(i.mode&1)===0)i.memoizedState=null;else switch(P){case"forwards":for(l=i.child,P=null;l!==null;)n=l.alternate,n!==null&&sc(n)===null&&(P=l),l=l.sibling;l=P,l===null?(P=i.child,i.child=null):(P=l.sibling,l.sibling=null),Qd(i,!1,P,l,q);break;case"backwards":for(l=null,P=i.child,i.child=null;P!==null;){if(n=P.alternate,n!==null&&sc(n)===null){i.child=P;break}n=P.sibling,P.sibling=l,l=P,P=n}Qd(i,!0,l,null,q);break;case"together":Qd(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function ji(n,i,l){if(n!==null&&(i.dependencies=n.dependencies),Lo|=i.lanes,(l&i.childLanes)===0)return null;if(n!==null&&i.child!==n.child)throw Error(t(153));if(i.child!==null){for(n=i.child,l=ho(n,n.pendingProps),i.child=l,l.return=i;n.sibling!==null;)n=n.sibling,l=l.sibling=ho(n,n.pendingProps),l.return=i;l.sibling=null}return i.child}function s$(n,i,l){switch(i.tag){case 3:ow(i),Ps();break;case 5:C2(i);break;case 1:ta(i.type)&&Jl(i);break;case 4:qd(i,i.stateNode.containerInfo);break;case 10:var C=i.type._context,P=i.memoizedProps.value;_t(Ql,C._currentValue),C._currentValue=P;break;case 13:if(C=i.memoizedState,C!==null)return C.dehydrated!==null?(_t(jt,jt.current&1),i.flags|=128,null):(l&i.child.childLanes)!==0?lw(n,i,l):(_t(jt,jt.current&1),n=ji(n,i,l),n!==null?n.sibling:null);_t(jt,jt.current&1);break;case 19:if(C=(l&i.childLanes)!==0,(n.flags&128)!==0){if(C)return hw(n,i,l);i.flags|=128}if(P=i.memoizedState,P!==null&&(P.rendering=null,P.tail=null,P.lastEffect=null),_t(jt,jt.current),C)break;return null;case 22:case 23:return i.lanes=0,nw(n,i,l)}return ji(n,i,l)}function u$(n,i){switch(kd(i),i.tag){case 1:return ta(i.type)&&Yl(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return js(),It(ra),It(Mn),Md(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 5:return Dd(i),null;case 13:if(It(jt),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(t(340));Ps()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return It(jt),null;case 4:return js(),null;case 10:return xd(i.type._context),null;case 22:case 23:return dh(),null;case 24:return null;default:return null}}var gc=!1,Bn=!1,l$=typeof WeakSet=="function"?WeakSet:Set,yr=null;function qs(n,i){var l=n.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(C){$t(n,i,C)}else l.current=null}function eh(n,i,l){try{l()}catch(C){$t(n,i,C)}}var vw=!1;function c$(n,i){if(pd=X,n=ZS(),sd(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var C=l.getSelection&&l.getSelection();if(C&&C.rangeCount!==0){l=C.anchorNode;var P=C.anchorOffset,q=C.focusNode;C=C.focusOffset;try{l.nodeType,q.nodeType}catch{l=null;break e}var K=0,ee=-1,se=-1,we=0,$e=0,dr=n,qe=null;r:for(;;){for(var pr;dr!==l||P!==0&&dr.nodeType!==3||(ee=K+P),dr!==q||C!==0&&dr.nodeType!==3||(se=K+C),dr.nodeType===3&&(K+=dr.nodeValue.length),(pr=dr.firstChild)!==null;)qe=dr,dr=pr;for(;;){if(dr===n)break r;if(qe===l&&++we===P&&(ee=K),qe===q&&++$e===C&&(se=K),(pr=dr.nextSibling)!==null)break;dr=qe,qe=dr.parentNode}dr=pr}l=ee===-1||se===-1?null:{start:ee,end:se}}else l=null}l=l||{start:0,end:0}}else l=null;for(gd={focusedElem:n,selectionRange:l},X=!1,yr=i;yr!==null;)if(i=yr,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,yr=n;else for(;yr!==null;){i=yr;try{var fr=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(fr!==null){var Br=fr.memoizedProps,Wt=fr.memoizedState,be=i.stateNode,ue=be.getSnapshotBeforeUpdate(i.elementType===i.type?Br:Ya(i.type,Br),Wt);be.__reactInternalSnapshotBeforeUpdate=ue}break;case 3:var Se=i.stateNode.containerInfo;if(Se.nodeType===1)Se.textContent="";else if(Se.nodeType===9){var tr=Se.body;tr!=null&&(tr.textContent="")}break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(Sr){$t(i,i.return,Sr)}if(n=i.sibling,n!==null){n.return=i.return,yr=n;break}yr=i.return}return fr=vw,vw=!1,fr}function $u(n,i,l){var C=i.updateQueue;if(C=C!==null?C.lastEffect:null,C!==null){var P=C=C.next;do{if((P.tag&n)===n){var q=P.destroy;P.destroy=void 0,q!==void 0&&eh(i,l,q)}P=P.next}while(P!==C)}}function mc(n,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var l=i=i.next;do{if((l.tag&n)===n){var C=l.create;l.destroy=C()}l=l.next}while(l!==i)}}function rh(n){var i=n.ref;if(i!==null){var l=n.stateNode;switch(n.tag){case 5:n=l;break;default:n=l}typeof i=="function"?i(n):i.current=n}}function pw(n){var i=n.alternate;i!==null&&(n.alternate=null,pw(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&(delete i[di],delete i[Ou],delete i[_d],delete i[GB],delete i[WB])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function gw(n){return n.tag===5||n.tag===3||n.tag===4}function mw(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||gw(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function th(n,i,l){var C=n.tag;if(C===5||C===6)n=n.stateNode,i?l.nodeType===8?l.parentNode.insertBefore(n,i):l.insertBefore(n,i):(l.nodeType===8?(i=l.parentNode,i.insertBefore(n,l)):(i=l,i.appendChild(n)),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=Wl));else if(C!==4&&(n=n.child,n!==null))for(th(n,i,l),n=n.sibling;n!==null;)th(n,i,l),n=n.sibling}function nh(n,i,l){var C=n.tag;if(C===5||C===6)n=n.stateNode,i?l.insertBefore(n,i):l.appendChild(n);else if(C!==4&&(n=n.child,n!==null))for(nh(n,i,l),n=n.sibling;n!==null;)nh(n,i,l),n=n.sibling}var En=null,Qa=!1;function so(n,i,l){for(l=l.child;l!==null;)yw(n,i,l),l=l.sibling}function yw(n,i,l){if(Vn&&typeof Vn.onCommitFiberUnmount=="function")try{Vn.onCommitFiberUnmount(wi,l)}catch{}switch(l.tag){case 5:Bn||qs(l,i);case 6:var C=En,P=Qa;En=null,so(n,i,l),En=C,Qa=P,En!==null&&(Qa?(n=En,l=l.stateNode,n.nodeType===8?n.parentNode.removeChild(l):n.removeChild(l)):En.removeChild(l.stateNode));break;case 18:En!==null&&(Qa?(n=En,l=l.stateNode,n.nodeType===8?bd(n.parentNode,l):n.nodeType===1&&bd(n,l),z(n)):bd(En,l.stateNode));break;case 4:C=En,P=Qa,En=l.stateNode.containerInfo,Qa=!0,so(n,i,l),En=C,Qa=P;break;case 0:case 11:case 14:case 15:if(!Bn&&(C=l.updateQueue,C!==null&&(C=C.lastEffect,C!==null))){P=C=C.next;do{var q=P,K=q.destroy;q=q.tag,K!==void 0&&((q&2)!==0||(q&4)!==0)&&eh(l,i,K),P=P.next}while(P!==C)}so(n,i,l);break;case 1:if(!Bn&&(qs(l,i),C=l.stateNode,typeof C.componentWillUnmount=="function"))try{C.props=l.memoizedProps,C.state=l.memoizedState,C.componentWillUnmount()}catch(ee){$t(l,i,ee)}so(n,i,l);break;case 21:so(n,i,l);break;case 22:l.mode&1?(Bn=(C=Bn)||l.memoizedState!==null,so(n,i,l),Bn=C):so(n,i,l);break;default:so(n,i,l)}}function bw(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var l=n.stateNode;l===null&&(l=n.stateNode=new l$),i.forEach(function(C){var P=b$.bind(null,n,C);l.has(C)||(l.add(C),C.then(P,P))})}}function ei(n,i){var l=i.deletions;if(l!==null)for(var C=0;C<l.length;C++){var P=l[C];try{var q=n,K=i,ee=K;e:for(;ee!==null;){switch(ee.tag){case 5:En=ee.stateNode,Qa=!1;break e;case 3:En=ee.stateNode.containerInfo,Qa=!0;break e;case 4:En=ee.stateNode.containerInfo,Qa=!0;break e}ee=ee.return}if(En===null)throw Error(t(160));yw(q,K,P),En=null,Qa=!1;var se=P.alternate;se!==null&&(se.return=null),P.return=null}catch(we){$t(P,i,we)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)_w(i,n),i=i.sibling}function _w(n,i){var l=n.alternate,C=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(ei(i,n),pi(n),C&4){try{$u(3,n,n.return),mc(3,n)}catch(fr){$t(n,n.return,fr)}try{$u(5,n,n.return)}catch(fr){$t(n,n.return,fr)}}break;case 1:ei(i,n),pi(n),C&512&&l!==null&&qs(l,l.return);break;case 5:if(ei(i,n),pi(n),C&512&&l!==null&&qs(l,l.return),n.flags&32){var P=n.stateNode;try{de(P,"")}catch(fr){$t(n,n.return,fr)}}if(C&4&&(P=n.stateNode,P!=null)){var q=n.memoizedProps,K=l!==null?l.memoizedProps:q,ee=n.type,se=n.updateQueue;if(n.updateQueue=null,se!==null)try{ee==="input"&&q.type==="radio"&&q.name!=null&&lr(P,q),$r(ee,K);var we=$r(ee,q);for(K=0;K<se.length;K+=2){var $e=se[K],dr=se[K+1];$e==="style"?De(P,dr):$e==="dangerouslySetInnerHTML"?cr(P,dr):$e==="children"?de(P,dr):m(P,$e,dr,we)}switch(ee){case"input":Ve(P,q);break;case"textarea":le(P,q);break;case"select":var qe=P._wrapperState.wasMultiple;P._wrapperState.wasMultiple=!!q.multiple;var pr=q.value;pr!=null?Q(P,!!q.multiple,pr,!1):qe!==!!q.multiple&&(q.defaultValue!=null?Q(P,!!q.multiple,q.defaultValue,!0):Q(P,!!q.multiple,q.multiple?[]:"",!1))}P[Ou]=q}catch(fr){$t(n,n.return,fr)}}break;case 6:if(ei(i,n),pi(n),C&4){if(n.stateNode===null)throw Error(t(162));we=n.stateNode,$e=n.memoizedProps;try{we.nodeValue=$e}catch(fr){$t(n,n.return,fr)}}break;case 3:if(ei(i,n),pi(n),C&4&&l!==null&&l.memoizedState.isDehydrated)try{z(i.containerInfo)}catch(fr){$t(n,n.return,fr)}break;case 4:ei(i,n),pi(n);break;case 13:ei(i,n),pi(n),we=n.child,we.flags&8192&&we.memoizedState!==null&&(we.alternate===null||we.alternate.memoizedState===null)&&(oh=Fr()),C&4&&bw(n);break;case 22:if(we=l!==null&&l.memoizedState!==null,n.mode&1?(Bn=($e=Bn)||we,ei(i,n),Bn=$e):ei(i,n),pi(n),C&8192){$e=n.memoizedState!==null;e:for(dr=null,qe=n;;){if(qe.tag===5){if(dr===null){dr=qe;try{P=qe.stateNode,$e?(q=P.style,typeof q.setProperty=="function"?q.setProperty("display","none","important"):q.display="none"):(ee=qe.stateNode,se=qe.memoizedProps.style,K=se!=null&&se.hasOwnProperty("display")?se.display:null,ee.style.display=Oe("display",K))}catch(fr){$t(n,n.return,fr)}}}else if(qe.tag===6){if(dr===null)try{qe.stateNode.nodeValue=$e?"":qe.memoizedProps}catch(fr){$t(n,n.return,fr)}}else if((qe.tag!==22&&qe.tag!==23||qe.memoizedState===null||qe===n)&&qe.child!==null){qe.child.return=qe,qe=qe.child;continue}if(qe===n)break e;for(;qe.sibling===null;){if(qe.return===null||qe.return===n)break e;dr===qe&&(dr=null),qe=qe.return}dr===qe&&(dr=null),qe.sibling.return=qe.return,qe=qe.sibling}if($e&&!we&&(n.mode&1)!==0)for(yr=n,n=n.child;n!==null;){for(we=yr=n;yr!==null;){switch($e=yr,dr=$e.child,$e.tag){case 0:case 11:case 14:case 15:$u(4,$e,$e.return);break;case 1:if(qs($e,$e.return),q=$e.stateNode,typeof q.componentWillUnmount=="function"){qe=$e,pr=$e.return;try{P=qe,q.props=P.memoizedProps,q.state=P.memoizedState,q.componentWillUnmount()}catch(fr){$t(qe,pr,fr)}}break;case 5:qs($e,$e.return);break;case 22:if($e.memoizedState!==null){Ew(we);continue}}dr!==null?(dr.return=$e,yr=dr):Ew(we)}n=n.sibling}}break;case 19:ei(i,n),pi(n),C&4&&bw(n);break;case 21:break;default:ei(i,n),pi(n)}}function pi(n){var i=n.flags;if(i&2){try{e:{for(var l=n.return;l!==null;){if(gw(l)){var C=l;break e}l=l.return}throw Error(t(160))}switch(C.tag){case 5:var P=C.stateNode;C.flags&32&&(de(P,""),C.flags&=-33);var q=mw(n);nh(n,q,P);break;case 3:case 4:var K=C.stateNode.containerInfo,ee=mw(n);th(n,ee,K);break;default:throw Error(t(161))}}catch(se){$t(n,n.return,se)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function f$(n,i,l){yr=n,Sw(n)}function Sw(n,i,l){for(var C=(n.mode&1)!==0;yr!==null;){var P=yr,q=P.child;if(P.tag===22&&C){var K=P.memoizedState!==null||gc;if(!K){var ee=P.alternate,se=ee!==null&&ee.memoizedState!==null||Bn;ee=gc;var we=Bn;if(gc=K,(Bn=se)&&!we)for(yr=P;yr!==null;)K=yr,se=K.child,K.tag===22&&K.memoizedState!==null?Cw(P):se!==null?(se.return=K,yr=se):Cw(P);for(;q!==null;)yr=q,Sw(q),q=q.sibling;yr=P,gc=ee,Bn=we}ww(n)}else(P.subtreeFlags&8772)!==0&&q!==null?(q.return=P,yr=q):ww(n)}}function ww(n){for(;yr!==null;){var i=yr;if((i.flags&8772)!==0){var l=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:Bn||mc(5,i);break;case 1:var C=i.stateNode;if(i.flags&4&&!Bn)if(l===null)C.componentDidMount();else{var P=i.elementType===i.type?l.memoizedProps:Ya(i.type,l.memoizedProps);C.componentDidUpdate(P,l.memoizedState,C.__reactInternalSnapshotBeforeUpdate)}var q=i.updateQueue;q!==null&&d2(i,q,C);break;case 3:var K=i.updateQueue;if(K!==null){if(l=null,i.child!==null)switch(i.child.tag){case 5:l=i.child.stateNode;break;case 1:l=i.child.stateNode}d2(i,K,l)}break;case 5:var ee=i.stateNode;if(l===null&&i.flags&4){l=ee;var se=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":se.autoFocus&&l.focus();break;case"img":se.src&&(l.src=se.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var we=i.alternate;if(we!==null){var $e=we.memoizedState;if($e!==null){var dr=$e.dehydrated;dr!==null&&z(dr)}}}break;case 19:case 17:case 21:case 22:case 23:break;default:throw Error(t(163))}Bn||i.flags&512&&rh(i)}catch(qe){$t(i,i.return,qe)}}if(i===n){yr=null;break}if(l=i.sibling,l!==null){l.return=i.return,yr=l;break}yr=i.return}}function Ew(n){for(;yr!==null;){var i=yr;if(i===n){yr=null;break}var l=i.sibling;if(l!==null){l.return=i.return,yr=l;break}yr=i.return}}function Cw(n){for(;yr!==null;){var i=yr;try{switch(i.tag){case 0:case 11:case 15:var l=i.return;try{mc(4,i)}catch(se){$t(i,l,se)}break;case 1:var C=i.stateNode;if(typeof C.componentDidMount=="function"){var P=i.return;try{C.componentDidMount()}catch(se){$t(i,P,se)}}var q=i.return;try{rh(i)}catch(se){$t(i,q,se)}break;case 5:var K=i.return;try{rh(i)}catch(se){$t(i,K,se)}}}catch(se){$t(i,i.return,se)}if(i===n){yr=null;break}var ee=i.sibling;if(ee!==null){ee.return=i.return,yr=ee;break}yr=i.return}}var d$=Math.ceil,yc=p.ReactCurrentDispatcher,ah=p.ReactCurrentOwner,qa=p.ReactCurrentBatchConfig,at=0,an=null,Xt=null,Cn=0,ya=0,Ds=to(0),on=0,zu=null,Lo=0,bc=0,ih=0,Zu=null,ia=null,oh=0,Ls=1/0,qi=null,_c=!1,sh=null,uo=null,Sc=!1,lo=null,wc=0,Hu=0,uh=null,Ec=-1,Cc=0;function Wn(){return(at&6)!==0?Fr():Ec!==-1?Ec:Ec=Fr()}function co(n){return(n.mode&1)===0?1:(at&2)!==0&&Cn!==0?Cn&-Cn:YB.transition!==null?(Cc===0&&(Cc=si()),Cc):(n=ct,n!==0||(n=window.event,n=n===void 0?16:Ie(n.type)),n)}function Da(n,i,l){if(50<Hu)throw Hu=0,uh=null,Error(t(185));var C=xc(n,i);return C===null?null:(bn(C,i,l),((at&2)===0||C!==an)&&(C===an&&((at&2)===0&&(bc|=i),on===4&&fo(C,Cn)),oa(C,l),i===1&&at===0&&(n.mode&1)===0&&(Ls=Fr()+500,Xl&&ao())),C)}function xc(n,i){n.lanes|=i;var l=n.alternate;for(l!==null&&(l.lanes|=i),l=n,n=n.return;n!==null;)n.childLanes|=i,l=n.alternate,l!==null&&(l.childLanes|=i),l=n,n=n.return;return l.tag===3?l.stateNode:null}function xw(n){return(an!==null||Ja!==null)&&(n.mode&1)!==0&&(at&2)===0}function oa(n,i){var l=n.callbackNode;yu(n,i);var C=Ji(n,n===an?Cn:0);if(C===0)l!==null&&kr(l),n.callbackNode=null,n.callbackPriority=0;else if(i=C&-C,n.callbackPriority!==i){if(l!=null&&kr(l),i===1)n.tag===0?KB(Aw.bind(null,n)):l2(Aw.bind(null,n)),HB(function(){at===0&&ao()}),l=null;else{switch(Ci(C)){case 1:l=fn;break;case 4:l=ze;break;case 16:l=Et;break;case 536870912:l=oi;break;default:l=Et}l=qw(l,Iw.bind(null,n))}n.callbackPriority=i,n.callbackNode=l}}function Iw(n,i){if(Ec=-1,Cc=0,(at&6)!==0)throw Error(t(327));var l=n.callbackNode;if(Ms()&&n.callbackNode!==l)return null;var C=Ji(n,n===an?Cn:0);if(C===0)return null;if((C&30)!==0||(C&n.expiredLanes)!==0||i)i=Ic(n,C);else{i=C;var P=at;at|=2;var q=Rw();(an!==n||Cn!==i)&&(qi=null,Ls=Fr()+500,Uo(n,i));do try{p$();break}catch(ee){Tw(n,ee)}while(!0);Cd(),yc.current=q,at=P,Xt!==null?i=0:(an=null,Cn=0,i=on)}if(i!==0){if(i===2&&(P=Ro(n),P!==0&&(C=P,i=lh(n,P))),i===1)throw l=zu,Uo(n,0),fo(n,C),oa(n,Fr()),l;if(i===6)fo(n,C);else{if(P=n.current.alternate,(C&30)===0&&!h$(P)&&(i=Ic(n,C),i===2&&(q=Ro(n),q!==0&&(C=q,i=lh(n,q))),i===1))throw l=zu,Uo(n,0),fo(n,C),oa(n,Fr()),l;switch(n.finishedWork=P,n.finishedLanes=C,i){case 0:case 1:throw Error(t(345));case 2:Fo(n,ia,qi);break;case 3:if(fo(n,C),(C&130023424)===C&&(i=oh+500-Fr(),10<i)){if(Ji(n,0)!==0)break;if(P=n.suspendedLanes,(P&C)!==C){Wn(),n.pingedLanes|=n.suspendedLanes&P;break}n.timeoutHandle=yd(Fo.bind(null,n,ia,qi),i);break}Fo(n,ia,qi);break;case 4:if(fo(n,C),(C&4194240)===C)break;for(i=n.eventTimes,P=-1;0<C;){var K=31-Dn(C);q=1<<K,K=i[K],K>P&&(P=K),C&=~q}if(C=P,C=Fr()-C,C=(120>C?120:480>C?480:1080>C?1080:1920>C?1920:3e3>C?3e3:4320>C?4320:1960*d$(C/1960))-C,10<C){n.timeoutHandle=yd(Fo.bind(null,n,ia,qi),C);break}Fo(n,ia,qi);break;case 5:Fo(n,ia,qi);break;default:throw Error(t(329))}}}return oa(n,Fr()),n.callbackNode===l?Iw.bind(null,n):null}function lh(n,i){var l=Zu;return n.current.memoizedState.isDehydrated&&(Uo(n,i).flags|=256),n=Ic(n,i),n!==2&&(i=ia,ia=l,i!==null&&ch(i)),n}function ch(n){ia===null?ia=n:ia.push.apply(ia,n)}function h$(n){for(var i=n;;){if(i.flags&16384){var l=i.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var C=0;C<l.length;C++){var P=l[C],q=P.getSnapshot;P=P.value;try{if(!Ka(q(),P))return!1}catch{return!1}}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function fo(n,i){for(i&=~ih,i&=~bc,n.suspendedLanes|=i,n.pingedLanes&=~i,n=n.expirationTimes;0<i;){var l=31-Dn(i),C=1<<l;n[l]=-1,i&=~C}}function Aw(n){if((at&6)!==0)throw Error(t(327));Ms();var i=Ji(n,0);if((i&1)===0)return oa(n,Fr()),null;var l=Ic(n,i);if(n.tag!==0&&l===2){var C=Ro(n);C!==0&&(i=C,l=lh(n,C))}if(l===1)throw l=zu,Uo(n,0),fo(n,i),oa(n,Fr()),l;if(l===6)throw Error(t(345));return n.finishedWork=n.current.alternate,n.finishedLanes=i,Fo(n,ia,qi),oa(n,Fr()),null}function fh(n,i){var l=at;at|=1;try{return n(i)}finally{at=l,at===0&&(Ls=Fr()+500,Xl&&ao())}}function Mo(n){lo!==null&&lo.tag===0&&(at&6)===0&&Ms();var i=at;at|=1;var l=qa.transition,C=ct;try{if(qa.transition=null,ct=1,n)return n()}finally{ct=C,qa.transition=l,at=i,(at&6)===0&&ao()}}function dh(){ya=Ds.current,It(Ds)}function Uo(n,i){n.finishedWork=null,n.finishedLanes=0;var l=n.timeoutHandle;if(l!==-1&&(n.timeoutHandle=-1,ZB(l)),Xt!==null)for(l=Xt.return;l!==null;){var C=l;switch(kd(C),C.tag){case 1:C=C.type.childContextTypes,C!=null&&Yl();break;case 3:js(),It(ra),It(Mn),Md();break;case 5:Dd(C);break;case 4:js();break;case 13:It(jt);break;case 19:It(jt);break;case 10:xd(C.type._context);break;case 22:case 23:dh()}l=l.return}if(an=n,Xt=n=ho(n.current,null),Cn=ya=i,on=0,zu=null,ih=bc=Lo=0,ia=Zu=null,Ja!==null){for(i=0;i<Ja.length;i++)if(l=Ja[i],C=l.interleaved,C!==null){l.interleaved=null;var P=C.next,q=l.pending;if(q!==null){var K=q.next;q.next=P,C.next=K}l.pending=C}Ja=null}return n}function Tw(n,i){do{var l=Xt;try{if(Cd(),uc.current=dc,lc){for(var C=qt.memoizedState;C!==null;){var P=C.queue;P!==null&&(P.pending=null),C=C.next}lc=!1}if(Do=0,hn=nn=qt=null,Lu=!1,Mu=0,ah.current=null,l===null||l.return===null){on=1,zu=i,Xt=null;break}e:{var q=n,K=l.return,ee=l,se=i;if(i=Cn,ee.flags|=32768,se!==null&&typeof se=="object"&&typeof se.then=="function"){var we=se,$e=ee,dr=$e.tag;if(($e.mode&1)===0&&(dr===0||dr===11||dr===15)){var qe=$e.alternate;qe?($e.updateQueue=qe.updateQueue,$e.memoizedState=qe.memoizedState,$e.lanes=qe.lanes):($e.updateQueue=null,$e.memoizedState=null)}var pr=K2(K);if(pr!==null){pr.flags&=-257,Y2(pr,K,ee,q,i),pr.mode&1&&W2(q,we,i),i=pr,se=we;var fr=i.updateQueue;if(fr===null){var Br=new Set;Br.add(se),i.updateQueue=Br}else fr.add(se);break e}else{if((i&1)===0){W2(q,we,i),hh();break e}se=Error(t(426))}}else if(kt&&ee.mode&1){var Wt=K2(K);if(Wt!==null){(Wt.flags&65536)===0&&(Wt.flags|=256),Y2(Wt,K,ee,q,i),jd(se);break e}}q=se,on!==4&&(on=2),Zu===null?Zu=[q]:Zu.push(q),se=Gd(se,ee),ee=K;do{switch(ee.tag){case 3:ee.flags|=65536,i&=-i,ee.lanes|=i;var be=V2(ee,se,i);f2(ee,be);break e;case 1:q=se;var ue=ee.type,Se=ee.stateNode;if((ee.flags&128)===0&&(typeof ue.getDerivedStateFromError=="function"||Se!==null&&typeof Se.componentDidCatch=="function"&&(uo===null||!uo.has(Se)))){ee.flags|=65536,i&=-i,ee.lanes|=i;var tr=G2(ee,q,i);f2(ee,tr);break e}}ee=ee.return}while(ee!==null)}kw(l)}catch(Sr){i=Sr,Xt===l&&l!==null&&(Xt=l=l.return);continue}break}while(!0)}function Rw(){var n=yc.current;return yc.current=dc,n===null?dc:n}function hh(){(on===0||on===3||on===2)&&(on=4),an===null||(Lo&268435455)===0&&(bc&268435455)===0||fo(an,Cn)}function Ic(n,i){var l=at;at|=2;var C=Rw();(an!==n||Cn!==i)&&(qi=null,Uo(n,i));do try{v$();break}catch(P){Tw(n,P)}while(!0);if(Cd(),at=l,yc.current=C,Xt!==null)throw Error(t(261));return an=null,Cn=0,on}function v$(){for(;Xt!==null;)Ow(Xt)}function p$(){for(;Xt!==null&&!mr();)Ow(Xt)}function Ow(n){var i=jw(n.alternate,n,ya);n.memoizedProps=n.pendingProps,i===null?kw(n):Xt=i,ah.current=null}function kw(n){var i=n;do{var l=i.alternate;if(n=i.return,(i.flags&32768)===0){if(l=i$(l,i,ya),l!==null){Xt=l;return}}else{if(l=u$(l,i),l!==null){l.flags&=32767,Xt=l;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{on=6,Xt=null;return}}if(i=i.sibling,i!==null){Xt=i;return}Xt=i=n}while(i!==null);on===0&&(on=5)}function Fo(n,i,l){var C=ct,P=qa.transition;try{qa.transition=null,ct=1,g$(n,i,l,C)}finally{qa.transition=P,ct=C}return null}function g$(n,i,l,C){do Ms();while(lo!==null);if((at&6)!==0)throw Error(t(327));l=n.finishedWork;var P=n.finishedLanes;if(l===null)return null;if(n.finishedWork=null,n.finishedLanes=0,l===n.current)throw Error(t(177));n.callbackNode=null,n.callbackPriority=0;var q=l.lanes|l.childLanes;if(ql(n,q),n===an&&(Xt=an=null,Cn=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Sc||(Sc=!0,qw(Et,function(){return Ms(),null})),q=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||q){q=qa.transition,qa.transition=null;var K=ct;ct=1;var ee=at;at|=4,ah.current=null,c$(n,l),_w(l,n),LB(gd),X=!!pd,gd=pd=null,n.current=l,f$(l),wt(),at=ee,ct=K,qa.transition=q}else n.current=l;if(Sc&&(Sc=!1,lo=n,wc=P),q=n.pendingLanes,q===0&&(uo=null),Wi(l.stateNode),oa(n,Fr()),i!==null)for(C=n.onRecoverableError,l=0;l<i.length;l++)C(i[l]);if(_c)throw _c=!1,n=sh,sh=null,n;return(wc&1)!==0&&n.tag!==0&&Ms(),q=n.pendingLanes,(q&1)!==0?n===uh?Hu++:(Hu=0,uh=n):Hu=0,ao(),null}function Ms(){if(lo!==null){var n=Ci(wc),i=qa.transition,l=ct;try{if(qa.transition=null,ct=16>n?16:n,lo===null)var C=!1;else{if(n=lo,lo=null,wc=0,(at&6)!==0)throw Error(t(331));var P=at;for(at|=4,yr=n.current;yr!==null;){var q=yr,K=q.child;if((yr.flags&16)!==0){var ee=q.deletions;if(ee!==null){for(var se=0;se<ee.length;se++){var we=ee[se];for(yr=we;yr!==null;){var $e=yr;switch($e.tag){case 0:case 11:case 15:$u(8,$e,q)}var dr=$e.child;if(dr!==null)dr.return=$e,yr=dr;else for(;yr!==null;){$e=yr;var qe=$e.sibling,pr=$e.return;if(pw($e),$e===we){yr=null;break}if(qe!==null){qe.return=pr,yr=qe;break}yr=pr}}}var fr=q.alternate;if(fr!==null){var Br=fr.child;if(Br!==null){fr.child=null;do{var Wt=Br.sibling;Br.sibling=null,Br=Wt}while(Br!==null)}}yr=q}}if((q.subtreeFlags&2064)!==0&&K!==null)K.return=q,yr=K;else e:for(;yr!==null;){if(q=yr,(q.flags&2048)!==0)switch(q.tag){case 0:case 11:case 15:$u(9,q,q.return)}var be=q.sibling;if(be!==null){be.return=q.return,yr=be;break e}yr=q.return}}var ue=n.current;for(yr=ue;yr!==null;){K=yr;var Se=K.child;if((K.subtreeFlags&2064)!==0&&Se!==null)Se.return=K,yr=Se;else e:for(K=ue;yr!==null;){if(ee=yr,(ee.flags&2048)!==0)try{switch(ee.tag){case 0:case 11:case 15:mc(9,ee)}}catch(Sr){$t(ee,ee.return,Sr)}if(ee===K){yr=null;break e}var tr=ee.sibling;if(tr!==null){tr.return=ee.return,yr=tr;break e}yr=ee.return}}if(at=P,ao(),Vn&&typeof Vn.onPostCommitFiberRoot=="function")try{Vn.onPostCommitFiberRoot(wi,n)}catch{}C=!0}return C}finally{ct=l,qa.transition=i}}return!1}function Pw(n,i,l){i=Gd(l,i),i=V2(n,i,1),oo(n,i),i=Wn(),n=xc(n,1),n!==null&&(bn(n,1,i),oa(n,i))}function $t(n,i,l){if(n.tag===3)Pw(n,n,l);else for(;i!==null;){if(i.tag===3){Pw(i,n,l);break}else if(i.tag===1){var C=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof C.componentDidCatch=="function"&&(uo===null||!uo.has(C))){n=Gd(l,n),n=G2(i,n,1),oo(i,n),n=Wn(),i=xc(i,1),i!==null&&(bn(i,1,n),oa(i,n));break}}i=i.return}}function m$(n,i,l){var C=n.pingCache;C!==null&&C.delete(i),i=Wn(),n.pingedLanes|=n.suspendedLanes&l,an===n&&(Cn&l)===l&&(on===4||on===3&&(Cn&130023424)===Cn&&500>Fr()-oh?Uo(n,0):ih|=l),oa(n,i)}function Nw(n,i){i===0&&((n.mode&1)===0?i=1:(i=Yi,Yi<<=1,(Yi&130023424)===0&&(Yi=4194304)));var l=Wn();n=xc(n,i),n!==null&&(bn(n,i,l),oa(n,l))}function y$(n){var i=n.memoizedState,l=0;i!==null&&(l=i.retryLane),Nw(n,l)}function b$(n,i){var l=0;switch(n.tag){case 13:var C=n.stateNode,P=n.memoizedState;P!==null&&(l=P.retryLane);break;case 19:C=n.stateNode;break;default:throw Error(t(314))}C!==null&&C.delete(i),Nw(n,l)}var jw;jw=function(n,i,l){if(n!==null)if(n.memoizedProps!==i.pendingProps||ra.current)aa=!0;else{if((n.lanes&l)===0&&(i.flags&128)===0)return aa=!1,s$(n,i,l);aa=(n.flags&131072)!==0}else aa=!1,kt&&(i.flags&1048576)!==0&&m2(i,ic,i.index);switch(i.lanes=0,i.tag){case 2:var C=i.type;n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2),n=i.pendingProps;var P=As(i,Mn.current);Rs(i,l),P=Bd(null,i,C,n,P,l);var q=$d();return i.flags|=1,typeof P=="object"&&P!==null&&typeof P.render=="function"&&P.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,ta(C)?(q=!0,Jl(i)):q=!1,i.memoizedState=P.state!==null&&P.state!==void 0?P.state:null,Ad(i),P.updater=nc,i.stateNode=P,P._reactInternals=i,Rd(i,C,n,l),i=Jd(null,i,C,!0,q,l)):(i.tag=0,kt&&q&&Od(i),Gn(null,i,P,l),i=i.child),i;case 16:C=i.elementType;e:{switch(n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2),n=i.pendingProps,P=C._init,C=P(C._payload),i.type=C,P=i.tag=S$(C),n=Ya(C,n),P){case 0:i=Yd(null,i,C,n,l);break e;case 1:i=iw(null,i,C,n,l);break e;case 11:i=ew(null,i,C,n,l);break e;case 14:i=rw(null,i,C,Ya(C.type,n),l);break e}throw Error(t(306,C,""))}return i;case 0:return C=i.type,P=i.pendingProps,P=i.elementType===C?P:Ya(C,P),Yd(n,i,C,P,l);case 1:return C=i.type,P=i.pendingProps,P=i.elementType===C?P:Ya(C,P),iw(n,i,C,P,l);case 3:e:{if(ow(i),n===null)throw Error(t(387));C=i.pendingProps,q=i.memoizedState,P=q.element,c2(n,i),tc(i,C,null,l);var K=i.memoizedState;if(C=K.element,q.isDehydrated)if(q={element:C,isDehydrated:!1,cache:K.cache,pendingSuspenseBoundaries:K.pendingSuspenseBoundaries,transitions:K.transitions},i.updateQueue.baseState=q,i.memoizedState=q,i.flags&256){P=Error(t(423)),i=sw(n,i,C,l,P);break e}else if(C!==P){P=Error(t(424)),i=sw(n,i,C,l,P);break e}else for(na=Ti(i.stateNode.containerInfo.firstChild),ma=i,kt=!0,Xa=null,l=E2(i,null,C,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ps(),C===P){i=ji(n,i,l);break e}Gn(n,i,C,l)}i=i.child}return i;case 5:return C2(i),n===null&&Nd(i),C=i.type,P=i.pendingProps,q=n!==null?n.memoizedProps:null,K=P.children,md(C,P)?K=null:q!==null&&md(C,q)&&(i.flags|=32),aw(n,i),Gn(n,i,K,l),i.child;case 6:return n===null&&Nd(i),null;case 13:return lw(n,i,l);case 4:return qd(i,i.stateNode.containerInfo),C=i.pendingProps,n===null?i.child=Ns(i,null,C,l):Gn(n,i,C,l),i.child;case 11:return C=i.type,P=i.pendingProps,P=i.elementType===C?P:Ya(C,P),ew(n,i,C,P,l);case 7:return Gn(n,i,i.pendingProps,l),i.child;case 8:return Gn(n,i,i.pendingProps.children,l),i.child;case 12:return Gn(n,i,i.pendingProps.children,l),i.child;case 10:e:{if(C=i.type._context,P=i.pendingProps,q=i.memoizedProps,K=P.value,_t(Ql,C._currentValue),C._currentValue=K,q!==null)if(Ka(q.value,K)){if(q.children===P.children&&!ra.current){i=ji(n,i,l);break e}}else for(q=i.child,q!==null&&(q.return=i);q!==null;){var ee=q.dependencies;if(ee!==null){K=q.child;for(var se=ee.firstContext;se!==null;){if(se.context===C){if(q.tag===1){se=ki(-1,l&-l),se.tag=2;var we=q.updateQueue;if(we!==null){we=we.shared;var $e=we.pending;$e===null?se.next=se:(se.next=$e.next,$e.next=se),we.pending=se}}q.lanes|=l,se=q.alternate,se!==null&&(se.lanes|=l),Id(q.return,l,i),ee.lanes|=l;break}se=se.next}}else if(q.tag===10)K=q.type===i.type?null:q.child;else if(q.tag===18){if(K=q.return,K===null)throw Error(t(341));K.lanes|=l,ee=K.alternate,ee!==null&&(ee.lanes|=l),Id(K,l,i),K=q.sibling}else K=q.child;if(K!==null)K.return=q;else for(K=q;K!==null;){if(K===i){K=null;break}if(q=K.sibling,q!==null){q.return=K.return,K=q;break}K=K.return}q=K}Gn(n,i,P.children,l),i=i.child}return i;case 9:return P=i.type,C=i.pendingProps.children,Rs(i,l),P=ka(P),C=C(P),i.flags|=1,Gn(n,i,C,l),i.child;case 14:return C=i.type,P=Ya(C,i.pendingProps),P=Ya(C.type,P),rw(n,i,C,P,l);case 15:return tw(n,i,i.type,i.pendingProps,l);case 17:return C=i.type,P=i.pendingProps,P=i.elementType===C?P:Ya(C,P),n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2),i.tag=1,ta(C)?(n=!0,Jl(i)):n=!1,Rs(i,l),p2(i,C,P),Rd(i,C,P,l),Jd(null,i,C,!0,n,l);case 19:return hw(n,i,l);case 22:return nw(n,i,l)}throw Error(t(156,i.tag))};function qw(n,i){return Be(n,i)}function _$(n,i,l,C){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function La(n,i,l,C){return new _$(n,i,l,C)}function vh(n){return n=n.prototype,!(!n||!n.isReactComponent)}function S$(n){if(typeof n=="function")return vh(n)?1:0;if(n!=null){if(n=n.$$typeof,n===N)return 11;if(n===B)return 14}return 2}function ho(n,i){var l=n.alternate;return l===null?(l=La(n.tag,i,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=i,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&14680064,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,i=n.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l}function Ac(n,i,l,C,P,q){var K=2;if(C=n,typeof n=="function")vh(n)&&(K=1);else if(typeof n=="string")K=5;else e:switch(n){case x:return Bo(l.children,P,q,i);case R:K=8,P|=8;break;case O:return n=La(12,l,i,P|2),n.elementType=O,n.lanes=q,n;case D:return n=La(13,l,i,P),n.elementType=D,n.lanes=q,n;case U:return n=La(19,l,i,P),n.elementType=U,n.lanes=q,n;case G:return Tc(l,P,q,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case j:K=10;break e;case k:K=9;break e;case N:K=11;break e;case B:K=14;break e;case H:K=16,C=null;break e}throw Error(t(130,n==null?n:typeof n,""))}return i=La(K,l,i,P),i.elementType=n,i.type=C,i.lanes=q,i}function Bo(n,i,l,C){return n=La(7,n,C,i),n.lanes=l,n}function Tc(n,i,l,C){return n=La(22,n,C,i),n.elementType=G,n.lanes=l,n.stateNode={},n}function ph(n,i,l){return n=La(6,n,null,i),n.lanes=l,n}function gh(n,i,l){return i=La(4,n.children!==null?n.children:[],n.key,i),i.lanes=l,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function w$(n,i,l,C,P){this.tag=i,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=en(0),this.expirationTimes=en(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=en(0),this.identifierPrefix=C,this.onRecoverableError=P,this.mutableSourceEagerHydrationData=null}function mh(n,i,l,C,P,q,K,ee,se){return n=new w$(n,i,l,ee,se),i===1?(i=1,q===!0&&(i|=8)):i=0,q=La(3,null,null,i),n.current=q,q.stateNode=n,q.memoizedState={element:C,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ad(q),n}function E$(n,i,l){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:g,key:C==null?null:""+C,children:n,containerInfo:i,implementation:l}}function Dw(n){if(!n)return no;n=n._reactInternals;e:{if(qn(n)!==n||n.tag!==1)throw Error(t(170));var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(ta(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(t(171))}if(n.tag===1){var l=n.type;if(ta(l))return s2(n,l,i)}return i}function Lw(n,i,l,C,P,q,K,ee,se){return n=mh(l,C,!0,n,P,q,K,ee,se),n.context=Dw(null),l=n.current,C=Wn(),P=co(l),q=ki(C,P),q.callback=i??null,oo(l,q),n.current.lanes=P,bn(n,P,C),oa(n,C),n}function Rc(n,i,l,C){var P=i.current,q=Wn(),K=co(P);return l=Dw(l),i.context===null?i.context=l:i.pendingContext=l,i=ki(q,K),i.payload={element:n},C=C===void 0?null:C,C!==null&&(i.callback=C),oo(P,i),n=Da(P,K,q),n!==null&&rc(n,P,K),K}function Oc(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function Mw(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<i?l:i}}function yh(n,i){Mw(n,i),(n=n.alternate)&&Mw(n,i)}function C$(){return null}var Uw=typeof reportError=="function"?reportError:function(n){console.error(n)};function bh(n){this._internalRoot=n}kc.prototype.render=bh.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(t(409));Rc(n,i,null,null)},kc.prototype.unmount=bh.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;Mo(function(){Rc(null,n,null,null)}),i[Ri]=null}};function kc(n){this._internalRoot=n}kc.prototype.unstable_scheduleHydration=function(n){if(n){var i=Ll();n={blockedOn:null,target:n,priority:i};for(var l=0;l<Ga.length&&i!==0&&i<Ga[l].priority;l++);Ga.splice(l,0,n),l===0&&eo(n)}};function _h(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function Pc(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function Fw(){}function x$(n,i,l,C,P){if(P){if(typeof C=="function"){var q=C;C=function(){var we=Oc(K);q.call(we)}}var K=Lw(i,C,n,0,null,!1,!1,"",Fw);return n._reactRootContainer=K,n[Ri]=K.current,Tu(n.nodeType===8?n.parentNode:n),Mo(),K}for(;P=n.lastChild;)n.removeChild(P);if(typeof C=="function"){var ee=C;C=function(){var we=Oc(se);ee.call(we)}}var se=mh(n,0,!1,null,null,!1,!1,"",Fw);return n._reactRootContainer=se,n[Ri]=se.current,Tu(n.nodeType===8?n.parentNode:n),Mo(function(){Rc(i,se,l,C)}),se}function Nc(n,i,l,C,P){var q=l._reactRootContainer;if(q){var K=q;if(typeof P=="function"){var ee=P;P=function(){var se=Oc(K);ee.call(se)}}Rc(i,K,n,P)}else K=x$(l,i,n,P,C);return Oc(K)}Dl=function(n){switch(n.tag){case 3:var i=n.stateNode;if(i.current.memoizedState.isDehydrated){var l=Ei(i.pendingLanes);l!==0&&(bu(i,l|1),oa(i,Fr()),(at&6)===0&&(Ls=Fr()+500,ao()))}break;case 13:var C=Wn();Mo(function(){return Da(n,1,C)}),yh(n,1)}},_u=function(n){if(n.tag===13){var i=Wn();Da(n,134217728,i),yh(n,134217728)}},ms=function(n){if(n.tag===13){var i=Wn(),l=co(n);Da(n,l,i),yh(n,l)}},Ll=function(){return ct},Ml=function(n,i){var l=ct;try{return ct=n,i()}finally{ct=l}},Xe=function(n,i,l){switch(i){case"input":if(Ve(n,l),i=l.name,l.type==="radio"&&i!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<l.length;i++){var C=l[i];if(C!==n&&C.form===n.form){var P=Kl(C);if(!P)throw Error(t(90));nr(C),Ve(C,P)}}}break;case"textarea":le(n,l);break;case"select":i=l.value,i!=null&&Q(n,!!l.multiple,i,!1)}},St=fh,Gt=Mo;var I$={usingClientEntryPoint:!1,Events:[ku,xs,Kl,Kr,et,fh]},Vu={findFiberByHostInstance:ko,bundleType:0,version:"18.1.0",rendererPackageName:"react-dom"},A$={bundleType:Vu.bundleType,version:Vu.version,rendererPackageName:Vu.rendererPackageName,rendererConfig:Vu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:p.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=xe(n),n===null?null:n.stateNode},findFiberByHostInstance:Vu.findFiberByHostInstance||C$,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.1.0-next-22edb9f77-20220426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var jc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jc.isDisabled&&jc.supportsFiber)try{wi=jc.inject(A$),Vn=jc}catch{}}return sa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I$,sa.createPortal=function(n,i){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_h(i))throw Error(t(200));return E$(n,i,null,l)},sa.createRoot=function(n,i){if(!_h(n))throw Error(t(299));var l=!1,C="",P=Uw;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(C=i.identifierPrefix),i.onRecoverableError!==void 0&&(P=i.onRecoverableError)),i=mh(n,1,!1,null,null,l,!1,C,P),n[Ri]=i.current,Tu(n.nodeType===8?n.parentNode:n),new bh(i)},sa.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(t(188)):(n=Object.keys(n).join(","),Error(t(268,n)));return n=xe(i),n=n===null?null:n.stateNode,n},sa.flushSync=function(n){return Mo(n)},sa.hydrate=function(n,i,l){if(!Pc(i))throw Error(t(200));return Nc(null,n,i,!0,l)},sa.hydrateRoot=function(n,i,l){if(!_h(n))throw Error(t(405));var C=l!=null&&l.hydratedSources||null,P=!1,q="",K=Uw;if(l!=null&&(l.unstable_strictMode===!0&&(P=!0),l.identifierPrefix!==void 0&&(q=l.identifierPrefix),l.onRecoverableError!==void 0&&(K=l.onRecoverableError)),i=Lw(i,null,n,1,l??null,P,!1,q,K),n[Ri]=i.current,Tu(n),C)for(n=0;n<C.length;n++)l=C[n],P=l._getVersion,P=P(l._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[l,P]:i.mutableSourceEagerHydrationData.push(l,P);return new kc(i)},sa.render=function(n,i,l){if(!Pc(i))throw Error(t(200));return Nc(null,n,i,!1,l)},sa.unmountComponentAtNode=function(n){if(!Pc(n))throw Error(t(40));return n._reactRootContainer?(Mo(function(){Nc(null,null,n,!1,function(){n._reactRootContainer=null,n[Ri]=null})}),!0):!1},sa.unstable_batchedUpdates=fh,sa.unstable_renderSubtreeIntoContainer=function(n,i,l,C){if(!Pc(l))throw Error(t(200));if(n==null||n._reactInternals===void 0)throw Error(t(38));return Nc(n,i,l,!1,C)},sa.version="18.1.0-next-22edb9f77-20220426",sa}var CN;function dK(){if(CN)return Ly.exports;CN=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Ly.exports=fK(),Ly.exports}var xN;function hK(){if(xN)return Dc;xN=1;var e=dK();return Dc.createRoot=e.createRoot,Dc.hydrateRoot=e.hydrateRoot,Dc}var vK=hK(),Nr=Cl();const je=Ws(Nr);var At=(e=>(e[e.Unclassified=0]="Unclassified",e[e.Primary=1]="Primary",e[e.Secondary=2]="Secondary",e[e.K12=3]="K12",e[e.Tertiary=4]="Tertiary",e[e.NonEducational=5]="NonEducational",e[e.Partners=6]="Partners",e[e.Internal=7]="Internal",e[e.Other=8]="Other",e[e.ClickView=254]="ClickView",e[e.System=255]="System",e))(At||{}),ba=(e=>(e.Unclassified="Unclassified",e.Primary="Primary",e.Secondary="Secondary",e.K12="K12",e.Tertiary="Tertiary",e.NonEducational="NonEducational",e.Partners="Partners",e.Internal="Internal",e.Other="Other",e.ClickView="ClickView",e.System="System",e))(ba||{});At.Primary,At.Secondary,At.Primary,At.Secondary,At.Secondary,At.Primary,At.Primary,At.Primary,At.Secondary,At.Primary;function pK(){return A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z"})})}function gK(){return A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"})})}function mK(e){var t;const r=!!((t=e.ipAuthGuests)!=null&&t.length);return Nr.useEffect(()=>{r?e.navigate({step:"username-or-guest",backStep:null}):e.navigate({step:"username-input",backStep:null})},[r]),A.jsx(A.Fragment,{})}const yK="_back_rcp4h_1",bK={back:yK};function _K(){return A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M8.305 11.267l5.906-5.963a1.046 1.046 0 0 1 1.473 0l.011.01a1.034 1.034 0 0 1 0 1.467L10.526 12l5.17 5.22c.406.41.406 1.055 0 1.465l-.012.011a1.046 1.046 0 0 1-1.473 0l-5.906-5.963a1.034 1.034 0 0 1 0-1.466z"})})}function SK(e){return A.jsxs("span",{className:`${bK.back} position-relative d-inline-flex flex-row cursor-pointer`,role:"button",tabIndex:0,onClick:e.onClick,children:[A.jsx(_K,{}),A.jsx("span",{children:"Back"})]})}function Ua(...e){const r=[];for(const t of e)if(t)if(typeof t=="object")for(const a of Object.keys(t))t[a]&&r.push(a);else typeof t=="string"&&r.push(t);return r.join(" ")}function yt(e){var o,s,u;const{onClickBack:r,children:t}=e,a=!!((o=e.title)!=null&&o.length);return a||t||r?A.jsxs("div",{className:"mb-3",children:[A.jsxs("div",{className:"text-left position-relative d-flex flex-column gap-3",children:[!!r&&A.jsx(SK,{onClick:r}),a&&A.jsx("h1",{className:Ua("h2",(s=e==null?void 0:e.className)==null?void 0:s.title),children:e.title})]}),t&&A.jsx("p",{className:Ua("text-start my-2",(u=e==null?void 0:e.className)==null?void 0:u.description),children:t})]}):A.jsx(A.Fragment,{})}function gn(e){const{showSpinner:r,children:t,className:a,...o}=e,s=Nr.useRef(null),[u,v]=Nr.useState({});return Nr.useEffect(()=>{const{width:d,height:h}=u;if(d&&h)return;const f=s.current,c=f.offsetHeight,_=f.offsetWidth;!c||!_||v({width:_,height:c})}),Nr.useEffect(()=>{const{width:d,height:h}=u;if(!d||!h)return;const f=s.current;f.style.width=`${d+1}px`,f.style.height=`${h+1}px`},[u]),A.jsx("button",{ref:s,disabled:r,className:`${a} d-flex justify-content-center align-items-center`,...o,children:r?A.jsx("span",{className:"spinner-border",role:"status",children:A.jsx("span",{className:"visually-hidden",children:"Loading..."})}):t})}function nU(){return A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"})})}const wK="_back_fw24y_1",EK={back:wK};function CK(e){switch(e){case"email":return"Email";case"username":return"Username or email ";default:return null}}function IN(e){switch(e){case"email":return"Enter your email";case"username":return"Enter your username or email";default:return null}}function xK(e){switch(e){case"email":return"email";case"username":return"username email";default:return null}}function xl(e){const r=!e.hideCloseButton&&typeof e.onClickClose=="function";let t="form-control form-control-lg";return e.isError&&(t+=" is-invalid"),e.additionalClassNames&&(t+=" "+e.additionalClassNames),A.jsxs("div",{children:[!e.hideLabel&&A.jsx("label",{htmlFor:e.name,children:CK(e.type)}),A.jsxs("div",{className:"position-relative",children:[A.jsx("input",{className:t,type:"text","aria-label":IN(e.type),placeholder:IN(e.type),autoFocus:!0,value:e.value,onChange:e.onChange,disabled:e.disabled,autoComplete:xK(e.type),autoCorrect:"off",autoCapitalize:"none",spellCheck:"false",name:e.name,id:e.name,"aria-invalid":e.ariaInvalid,"aria-errormessage":e.ariaErrorMessage}),r&&A.jsx("span",{className:`${EK.back} position-absolute cursor-pointer text-gray-800`,role:"button",tabIndex:0,onClick:e.onClickClose,children:A.jsx(nU,{})})]})]})}const IK="https://support.clickvieweducation.com/hc/articles/42460495601305",AK="https://support.clickvieweducation.com/hc/articles/42594760983705",TK="https://support.clickvieweducation.com/hc/articles/43193378048665",RK="https://www.clickvieweducation.com/contact-us",OK={au:"https://www.clickvieweducation.com/en-au",nz:"https://www.clickview.co.nz",uk:"https://www.clickvieweducation.com/en-gb",us:"https://www.clickvieweducation.com",ca:"https://www.clickvieweducation.com/en-ca"},bo={kbEmailInUse:IK,verifyEmail:AK,verifyEmailNotReceived:TK,contactSupport:RK,marketingSite:OK};function aU(e){return PK[e]||iU}const Yc="If the error persists please contact ClickView Support.",kK="If the error persists please contact your ClickView Administrator.",Lc="Please contact your ClickView Administrator for further assistance.",iU={message:"Oops! Something went wrong...",additionalInformation:Yc,errorImage:"default-v2.png"},PK={error:iU,"invalid-token":{message:"This link is either invalid or expired.",errorImage:"link-not-found-v2.png"},"invalid-code":{message:"This code is either invalid or expired.",errorImage:"link-not-found-v2.png"},"validation-failure":{message:"The information provided is not valid.",additionalInformation:Yc,errorImage:"incorrect-information-v2.png"},"user.email-in-use-as-username":{message:"This email address is already in use by another account.",moreInfoUrl:bo.kbEmailInUse,errorImage:"email-error-v2.png"},"user.not-found":{message:"Oh oh! We can't find this account.",additionalInformation:Lc,errorImage:"user-not-found-v2.png"},"user.disabled":{message:"Oops! Looks like this account has been deactivated.",additionalInformation:Lc,errorImage:"user-disabled-v2.png"},"user.no-login":{message:"This account does not have a login.",additionalInformation:Lc,errorImage:"access-forbidden-v2.png"},"user.invalid-password":{message:"The provided username or password is incorrect.",errorImage:"access-forbidden-v2.png"},"user.same-password":{message:"The provided password is the same as the current password.",errorImage:"access-forbidden-v2.png"},"user.password-too-short":{message:"The provided password is too short.",errorImage:"access-forbidden-v2.png"},"user.not-activated":{message:"The account has not been activated. Please check your email for an activation link and try again.",errorImage:"email-error-v2.png"},"user.already-activated":{message:"This account has already been activated.",errorImage:"already-activated-v2.png"},"user.locked-out":{message:"Your account has temporarily been locked due to too many failed login attempts. Please try again in a few minutes.",errorImage:"locked-account-v2.png"},"user.invalid-first-name":{message:"The provided first name is invalid.",errorImage:"default-v2.png"},"user.invalid-surname":{message:"The provided surname is invalid.",errorImage:"default-v2.png"},"user.invalid-jobtitle":{message:"The provided job title is incorrect.",errorImage:"default-v2.png"},"user.no-external-user-data":{message:"Oops! We can't get the information from your IDP.",errorImage:"default-v2.png"},"user.empty-first-name":{message:"The first name must be provided.",errorImage:"default-v2.png"},"user.empty-surname":{message:"The surname must be provided.",errorImage:"default-v2.png"},"user.display-name-too-long":{message:"The maximum length for display name is 70 characters.",errorImage:"default-v2.png"},"user.display-name-too-short":{message:"The minimum length for display name is 2 characters.",errorImage:"default-v2.png"},"user.unknown-user-type":{message:"The account type needs to be provided.",errorImage:"default-v2.png"},"user.invalid-email":{message:"The provided email is invalid.",errorImage:"email-error-v2.png"},"user.email-too-long":{message:"The maximum length for email is 255 characters.",errorImage:"email-error-v2.png"},"user.email-already-exists":{message:"This email address is already in use by another account.",errorImage:"email-error-v2.png"},"user.unknown-year-group":{message:"The year level or grade must be provided for student account.",errorImage:"default-v2.png"},"customer.not-found":{message:"The customer of this account could not be found.",errorImage:"not-found-v2.png"},"user.empty-customer":{message:"The customer mapping does not exist.",errorImage:"default-v2.png"},"user.no-email":{message:"The account does not have an email.",errorImage:"email-error-v2.png"},"user.email-not-allowed":{message:"Oops! That email won't work to sign in to ClickView. Try using your school account instead.",errorImage:"email-error-v2.png"},"user.signup-not-allowed":{message:"Student sign up is currently not supported.",errorImage:"default-v2.png"},"user.invalid-external-user-role":{message:"The external user role is not supported",errorImage:"default-v2.png"},"user.user-type-not-matched":{message:"The provided user type does not match the existing user",errorImage:"default-v2.png"},"user.already-logged-in":{message:"You already have an account on ClickView",errorImage:"default-v2.png"},"login.error":{message:"Uh oh! We cannot log you in at this time.",additionalInformation:Yc,errorImage:"default-v2.png"},"login.invalid-login-state":{message:"Your session has expired.",additionalInformation:"Please login and try again.",errorImage:"incorrect-information-v2.png"},"login.no-ip":{message:"IP address could not be detected for IP auth",errorImage:"default-v2.png"},"verify-email.error":{message:"There was an issue verifying your email address, please try again.",additionalInformation:kK,errorImage:"email-error-v2.png"},"forgot-password.no-account":{message:"No account can be found for the provided username or email address."},"forgot-password.no-verified-email":{message:"Your account needs to be linked to a verified email to receive a password reset link. "+Lc},"idp.wonde-missing-data":{message:"MyLogin currently only supports logins via Wonde. Please contact ClickView support for assistance.",errorImage:"default-v2.png"},"idp.rm-missing-data":{message:"Failed to retrieve data from RM Unify.",errorImage:"default-v2.png"},"saml2.login":{message:"There was an issue processing your login. Please try again",errorImage:"default-v2.png"},"saml2.configuration-error":{preferServerError:!0,message:"There was an issue with the saml configuration. Please contact ClickView support for assistance.",errorImage:"default-v2.png"},"http.400":{message:"The information provided was not quite what we were looking for.",errorImage:"incorrect-information-v2.png"},"http.401":{message:"Uh oh! You don't have permission to access this page.",errorImage:"access-forbidden-v2.png"},"http.403":{message:"Uh oh! You don't have permission to access this page.",errorImage:"access-forbidden-v2.png"},"http.404":{message:"Oops! Nothing to see here.",errorImage:"not-found-v2.png"},"http.500":{message:"Shoot! Looks like theres smoke coming out of our servers.",additionalInformation:Yc,errorImage:"smoky-server-v2.png"}};function NK(){return"Value is required."}let jK=class extends Error{constructor(r,t,a){super(`An error has occured with errorCode: ${r}`),this.userMessage=t,this.errorCode=r,this.traceId=a}};function qK(e){const r=e.errorCode;let t;return r==="validation-failure"?t=NK():t=aU(r).message,new jK(r,t,e.traceId)}class DK{getXsrfToken(){const r="XSRF-TOKEN=",a=decodeURIComponent(document.cookie).split(";");for(let o=0;o<a.length;o++){let s=a[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(r)===0)return s.substring(r.length,s.length)}return""}getHeaders(){return{"x-csrf-token":this.getXsrfToken(),"content-type":"application/json"}}handleResponse(r){return r.json().then(t=>{if(!r.ok)throw qK(t);return t})}get(r){return fetch(r).then(t=>this.handleResponse(t))}post(r,t){const a={method:"POST",headers:this.getHeaders(),body:t&&JSON.stringify(t)};return fetch(r,a).then(o=>this.handleResponse(o))}}const dt=new DK,LK="_banner_hzr93_1",MK="_pluginBanner_hzr93_5",B_={banner:LK,pluginBanner:MK};function AN(e){const r=$K[e.bannerType];return r?A.jsx(r,{}):A.jsx(A.Fragment,{})}const UK=()=>A.jsxs("div",{className:`${B_.banner} rounded mb-4 p-2 text-center mx-auto`,children:["If your email address is already in use, please ",A.jsx("a",{href:bo.contactSupport,target:"_blank",className:"info-link",children:"contact ClickView Support"}),"."]}),FK=()=>A.jsxs("div",{className:`${B_.banner} rounded mb-4 p-2 text-center mx-auto`,children:["If you did not receive a verification email, ",A.jsx("a",{href:bo.verifyEmailNotReceived,target:"_blank",className:"info-link",children:"please see our support article"})," or ",A.jsx("a",{href:bo.contactSupport,target:"_blank",className:"info-link",children:"contact ClickView Support"})," for help."]}),BK=()=>A.jsx("div",{className:`${B_.pluginBanner} position-absolute w-100 h-auto`,children:A.jsx("div",{className:"text-center",children:A.jsx("span",{className:"text-light d-inline-block py-3 h6 mb-0",children:"🎓️ Embed classroom-ready videos from ClickView"})})});function Di(){return A.jsx("div",{style:{height:"3.626rem"}})}const $K={"email-in-use":UK,"check-email":FK,plugin:BK};function $o(){return A.jsx("span",{className:"cv-logo d-inline-block",children:A.jsxs("svg",{viewBox:"0 0 2420 383",children:[A.jsx("title",{children:"ClickView Logo"}),A.jsx("path",{fill:"#f8981d",d:"M317.302 140.594c38.928 22.475 38.928 78.663 0 101.137L87.93 374.159c-51.737 29.87-109.635-28.028-79.764-79.765l42.745-74.035a58.39 58.39 0 0 0 0-58.392L8.165 87.929C-21.705 36.193 36.193-21.705 87.93 8.165z"}),A.jsx("path",{fill:"#313543",d:"M611.506 37.93c32.531 0 61.155 7.86 85.686 23.732 24.569 15.898 42.448 38.445 53.64 67.43l2.553 6.609h-55.686l-1.301-2.829c-7.699-16.724-18.767-29.458-33.196-38.377l-.11-.069-.014-.01c-13.652-8.57-30.142-13.096-49.669-13.371l-1.903-.014c-19.522 0-36.885 4.537-52.213 13.522-15.305 8.973-27.345 21.774-36.129 38.544l-.015.029c-8.74 16.421-13.202 35.916-13.202 58.645 0 22.414 4.447 41.908 13.188 58.62l.847 1.564.825 1.465c8.613 15.034 20.102 26.719 34.486 35.152 15.328 8.985 32.691 13.521 52.213 13.521l1.906-.013c19.595-.268 36.134-4.686 49.812-13.045 14.419-8.92 25.48-21.649 33.175-38.367l1.3-2.826h55.708l-2.58 6.622c-11.198 28.71-29.078 51.11-53.635 67l-.091.058-.031.017c-24.507 15.544-53.089 23.239-85.564 23.239-27.772 0-53.222-6.451-76.248-19.403l-.022-.013-.007-.004-.117-.066-.021-.015c-22.685-13.233-40.648-31.506-53.841-54.737-13.252-23.335-19.83-49.632-19.83-78.769 0-29.136 6.578-55.434 19.83-78.768 13.169-23.468 31.098-41.866 53.747-55.1l.016-.012.205-.118c23.032-13.244 48.497-19.843 76.288-19.843M853.29 344.778h-48.522V37.935h48.522zm108.133 0H912.9V125.985h48.523zM937.586 37.93c8.392 0 15.617 3.072 21.365 9.12l.557.571c5.665 5.944 8.519 13.236 8.519 21.603 0 8.638-3.042 16.128-9.076 22.174-5.748 6.047-12.973 9.121-21.365 9.121-8.649 0-16.147-3.05-22.197-9.099-6.049-6.049-9.098-13.547-9.098-22.196 0-8.648 3.049-16.147 9.098-22.196s13.548-9.098 22.197-9.098m883.954 306.848h-48.52V125.985h48.52zM1797.71 37.93c8.39 0 15.61 3.072 21.36 9.12l.56.571c5.66 5.944 8.52 13.236 8.52 21.603 0 8.638-3.04 16.128-9.08 22.174-5.75 6.047-12.97 9.121-21.36 9.121-8.65 0-16.15-3.05-22.2-9.099s-9.1-13.547-9.1-22.196c0-8.648 3.05-16.147 9.1-22.196s13.55-9.098 22.2-9.098m-685.63 88.056c.18-.001.55-.007.8-.007h.02l1.27.007c.22-.001.58-.007.87-.007l1.23.005c25.71.192 47.32 6.421 64.47 19.041 17.63 12.79 29.21 30.547 34.76 52.985l1.49 6.025h-50.78l-1-3.522c-.03-.077-.03-.089-.05-.138-3.68-8.706-9.16-15.814-16.48-21.406l-.01-.012-.08-.064c-9.02-7.051-20.36-10.823-34.31-11.058l-1.42-.011c-18.69.005-33.52 6.889-44.94 20.703v.013l-.07.082c-3.49 4.155-6.47 8.877-8.93 14.186-3.21 9.073-4.87 19.779-4.87 32.199l.01 1.197.01 1.149c.2 11.745 1.9 21.943 5 30.664 2.43 5.277 5.37 9.989 8.8 14.153 11.43 13.858 26.29 20.763 45.01 20.763l1.37-.011c14-.221 25.37-3.876 34.4-10.69 7.21-5.445 12.74-12.723 16.56-21.979.01-.015.01-.03.02-.051l1.03-3.483h50.85l-1.64 6.118c-5.82 21.7-17.53 39.258-35.06 52.487l-.14.103-.04.022c-17.34 12.78-38.78 19.123-63.98 19.319l-1.21.005c-.21 0-.53-.004-.68-.005l-1.45.009h-.03c-.4 0-.82-.006-1.16-.009l-.91.005h-.02c-20.35 0-38.67-4.463-54.82-13.501l-.03-.013-.09-.053c-15.42-8.796-27.62-21.14-36.53-36.934l-.01-.014-.01-.014-.82-1.481-.01-.013-.01-.014c-8.73-16.072-13.15-34.684-13.42-55.69v-.023l-.01-1.99v-.026c0-21.601 4.42-40.66 13.45-57.012v-.005l.82-1.481.01-.013.01-.015c8.91-15.794 21.11-28.138 36.53-36.934l.09-.053.03-.014c16.15-9.038 34.47-13.501 54.82-13.501h.02zm483.02 158.82 89.96-246.876h51.35l-115.78 306.848h-51.48L1453.37 37.93h51.77zm375.01-158.827c19.94 0 37.78 4.354 53.37 13.192 15.55 8.809 27.53 21.032 35.85 36.604l.66 1.205.01.013v.013c7.04 13.033 10.99 27.498 11.91 43.315q.21 3.607.21 7.301v1.239c-.05 6.217-.43 12.744-1.13 19.576l-.45 4.359h-156.39c.98 8.318 3.05 15.659 6.15 22.076a60 60 0 0 0 8.24 10.724c11.63 11.489 25.5 17.231 41.88 17.334 13.51-.053 24.36-3.558 32.89-10.222 6.94-5.49 12.28-12.323 16.04-20.561l1.3-2.839h50.42l-1.73 6.17c-5.75 20.496-17.3 37.279-34.51 50.223l-.01.009-.02.009-.01.011c-17.36 12.794-38.78 19.047-63.92 19.047l-.21-.001-.07-.001-.46.002h-.02c-19.96 0-38.04-4.488-54.1-13.557l-.01-.004-.01-.006-.01-.004v-.003c-15.78-9.051-28.19-21.853-37.22-38.29l-.02-.029-.08-.162c-8.77-16.289-13.23-34.896-13.5-55.694v-.026l-.01-1.968v-.025c0-21.589 4.32-40.745 13.12-57.32 8.66-16.295 20.76-28.919 36.28-37.747l.74-.418c16.08-9.071 34.4-13.544 54.82-13.545m-1.7 41.839c-14.73 0-27.09 4.424-37.36 13.179-8.74 7.62-14.31 17.908-16.51 31.206h108.22c-.65-8.377-3-15.493-6.92-21.486l-.04-.065-.01-.01c-4.73-7.419-11.19-12.981-19.49-16.726l-.02-.007-.04-.023-.05-.023-.04-.017c-8.2-3.989-17.41-6.028-27.74-6.028m372.35 176.959h-46.41l-45.08-148.561-45.08 148.561h-46.39l-68.68-218.797h49.14l42.94 156.786 46.36-156.786h46.09l45.2 156.683L2361 125.98l47.88-.002zM1309.64 210.55l73.43-84.564h61.94l-103.03 109.019 103.39 109.773h-60.74l-74.99-84.406v84.406h-48.52V37.935h48.52z"})]})})}const zK="/images/clickview-xmas-logo-2026.png";function ZK(){return A.jsx("span",{className:"cv-logo d-inline-block",children:A.jsx("img",{className:"h-100",alt:"ClickView Xmas logo",src:zK})})}const HK="_logo_1ermx_1",VK={logo:HK};function GK(){return A.jsx("span",{className:`${VK.logo} d-inline-block`,children:A.jsxs("svg",{width:"5614",height:"1080",viewBox:"0 0 5614 1080",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{d:"M539.597 1046.49C819.546 1046.49 1046.49 819.546 1046.49 539.597C1046.49 259.647 819.546 32.7028 539.597 32.7028C259.647 32.7028 32.7028 259.647 32.7028 539.597C32.7028 819.546 259.647 1046.49 539.597 1046.49Z",fill:"white"}),A.jsx("path",{d:"M1079.19 539.597C1079.19 241.586 837.608 0 539.597 0C241.586 0 0 241.586 0 539.597C0 837.608 241.586 1079.19 539.597 1079.19C837.608 1079.19 1079.19 837.608 1079.19 539.597ZM1046.49 539.597C1046.49 819.546 819.546 1046.49 539.597 1046.49C259.647 1046.49 32.7028 819.546 32.7028 539.597C32.7028 259.647 259.647 32.7028 539.597 32.7028C819.546 32.7028 1046.49 259.647 1046.49 539.597Z",fill:"white"}),A.jsx("path",{d:"M1046.49 539.597C1046.49 593.776 1037.97 645.963 1022.24 694.922C1017.33 660.088 1006.25 609.777 981.18 554.42C951.089 487.981 856.61 391.753 792.815 331.385C836.145 338.82 878.846 348.412 919.763 364.156C959.259 379.376 998.207 402.218 1034.65 430.2C1042.4 465.442 1046.49 502.035 1046.49 539.597Z",fill:"#ADE1F9"}),A.jsx("path",{d:"M564.419 640.626C547.183 638.435 529.981 636.244 512.885 633.831C403.162 618.297 293.381 591.562 196.897 537.056C132.368 500.602 84.1434 458.368 49.694 409.024V408.966C50.3116 406.67 50.9293 404.398 51.5586 402.114C59.4717 376.067 94.4223 285.258 196.535 290.887C220.951 292.227 314.976 303.473 328.156 413.29C329.124 421.343 330.056 429.407 331.606 437.379C352.094 542.871 468.926 601.573 559.093 638.505C560.865 639.227 562.648 639.915 564.419 640.626Z",fill:"#E1FAE1"}),A.jsx("path",{d:"M1034.65 430.2C998.207 402.218 959.259 379.376 919.763 364.156C878.846 348.412 836.145 338.82 792.815 331.385C697.66 315.034 599.521 309.067 511.113 271.017C464.998 251.158 420.549 220.566 399.537 174.976C379.469 131.471 380.086 94.0032 393.885 62.5722C396.659 56.2557 402.159 51.5125 408.825 49.7411C450.547 38.6347 494.367 32.7028 539.597 32.7028C719.058 32.7028 876.76 125.97 966.822 266.693C998.405 316.013 1021.67 371.195 1034.65 430.2Z",fill:"#32B3EF"}),A.jsx("path",{d:"M935.846 855.713C842.264 972.86 697.823 1047.61 535.96 1046.47C256.484 1044.51 32.3176 818.362 32.7022 538.874C32.7605 493.983 38.6809 450.466 49.694 409.024C84.1434 458.368 132.368 500.602 196.897 537.056C293.381 591.562 403.162 618.297 512.885 633.831C529.981 636.244 547.183 638.435 564.419 640.626C648.235 651.254 732.68 661.859 807.849 699.257C864.115 727.25 914.053 775.72 938.922 832.16C942.36 839.968 941.183 849.035 935.846 855.713Z",fill:"#5ABD5E"}),A.jsx("path",{d:"M1334.39 666.764C1342.47 652.634 1354.29 641.1 1369.86 632.161C1385.43 623.221 1403.17 618.752 1423.06 618.752C1444.4 618.752 1463.58 623.798 1480.59 633.891C1497.61 643.983 1511.01 658.257 1520.82 676.713C1530.62 694.879 1535.52 716.074 1535.52 740.296C1535.52 764.23 1530.62 785.569 1520.82 804.312C1511.01 823.056 1497.46 837.618 1480.16 847.999C1463.15 858.38 1444.11 863.571 1423.06 863.571C1402.59 863.571 1384.57 859.101 1369 850.162C1353.71 841.223 1342.18 829.832 1334.39 815.991V859.678H1295.03V539.597H1334.39V666.764ZM1495.3 740.296C1495.3 722.418 1491.69 706.846 1484.48 693.582C1477.28 680.317 1467.47 670.224 1455.07 663.304C1442.96 656.383 1429.55 652.923 1414.85 652.923C1400.43 652.923 1387.02 656.527 1374.62 663.736C1362.51 670.657 1352.7 680.894 1345.21 694.447C1338 707.711 1334.39 723.139 1334.39 740.729C1334.39 758.607 1338 774.323 1345.21 787.876C1352.7 801.141 1362.51 811.377 1374.62 818.586C1387.02 825.507 1400.43 828.967 1414.85 828.967C1429.55 828.967 1442.96 825.507 1455.07 818.586C1467.47 811.377 1477.28 801.141 1484.48 787.876C1491.69 774.323 1495.3 758.463 1495.3 740.296Z",fill:"#313543"}),A.jsx("path",{d:"M1791.5 622.645L1648.76 971.274H1608.1L1654.81 857.083L1559.22 622.645H1602.91L1677.3 814.694L1750.84 622.645H1791.5Z",fill:"#313543"}),A.jsx("path",{d:"M1396.94 429.813C1377.61 429.813 1360.21 426.499 1344.74 419.87C1329.28 412.966 1317.13 403.299 1308.29 390.871C1299.45 378.443 1295.03 363.943 1295.03 347.372H1345.57C1346.68 359.8 1351.51 370.019 1360.07 378.028C1368.91 386.038 1381.2 390.042 1396.94 390.042C1413.24 390.042 1425.94 386.176 1435.06 378.443C1444.17 370.433 1448.73 360.214 1448.73 347.786C1448.73 338.12 1445.83 330.248 1440.03 324.172C1434.5 318.096 1427.46 313.401 1418.9 310.087C1410.61 306.773 1399.01 303.182 1384.1 299.316C1365.32 294.344 1349.99 289.373 1338.12 284.402C1326.52 279.154 1316.57 271.145 1308.29 260.374C1300 249.602 1295.86 235.241 1295.86 217.289C1295.86 200.718 1300 186.218 1308.29 173.79C1316.57 161.361 1328.17 151.833 1343.09 145.204C1358 138.576 1375.26 135.262 1394.87 135.262C1422.77 135.262 1445.55 142.304 1463.23 156.39C1481.18 170.199 1491.12 189.256 1493.06 213.56H1440.86C1440.03 203.065 1435.06 194.089 1425.94 186.632C1416.83 179.175 1404.81 175.447 1389.9 175.447C1376.37 175.447 1365.32 178.899 1356.76 185.804C1348.2 192.708 1343.92 202.651 1343.92 215.632C1343.92 224.47 1346.54 231.788 1351.79 237.588C1357.31 243.112 1364.22 247.531 1372.5 250.845C1380.79 254.159 1392.11 257.75 1406.47 261.616C1425.53 266.864 1441 272.111 1452.87 277.359C1465.02 282.606 1475.24 290.754 1483.53 301.801C1492.09 312.573 1496.37 327.072 1496.37 345.3C1496.37 359.938 1492.37 373.747 1484.36 386.728C1476.62 399.709 1465.16 410.204 1449.97 418.213C1435.06 425.946 1417.38 429.813 1396.94 429.813Z",fill:"#313543"}),A.jsx("path",{d:"M1607.2 237.174V363.529C1607.2 372.09 1609.13 378.305 1613 382.171C1617.14 385.762 1624.04 387.557 1633.71 387.557H1662.71V426.913H1625.42C1604.16 426.913 1587.86 421.942 1576.54 411.999C1565.22 402.056 1559.55 385.9 1559.55 363.529V237.174H1532.63V198.646H1559.55V141.89H1607.2V198.646H1662.71V237.174H1607.2Z",fill:"#313543"}),A.jsx("path",{d:"M1753.46 231.788C1760.37 220.189 1769.48 211.213 1780.81 204.86C1792.41 198.232 1806.08 194.918 1821.82 194.918V243.802H1809.81C1791.3 243.802 1777.22 248.498 1767.55 257.888C1758.16 267.278 1753.46 283.573 1753.46 306.773V426.913H1706.24V198.646H1753.46V231.788Z",fill:"#313543"}),A.jsx("path",{d:"M2074.44 307.187C2074.44 315.749 2073.89 323.482 2072.79 330.386H1898.37C1899.76 348.615 1906.52 363.252 1918.67 374.3C1930.83 385.347 1945.74 390.871 1963.42 390.871C1988.83 390.871 2006.78 380.238 2017.27 358.972H2068.23C2061.32 379.962 2048.76 397.223 2030.53 410.756C2012.58 424.013 1990.21 430.642 1963.42 430.642C1941.6 430.642 1921.99 425.808 1904.59 416.142C1887.47 406.199 1873.93 392.39 1863.99 374.714C1854.32 356.762 1849.49 336.048 1849.49 312.573C1849.49 289.097 1854.19 268.521 1863.58 250.845C1873.24 232.893 1886.64 219.084 1903.76 209.417C1921.16 199.751 1941.05 194.918 1963.42 194.918C1984.96 194.918 2004.15 199.613 2021 209.003C2037.85 218.393 2050.97 231.65 2060.36 248.774C2069.75 265.621 2074.44 285.092 2074.44 307.187ZM2025.14 292.273C2024.87 274.873 2018.65 260.926 2006.5 250.431C1994.35 239.936 1979.3 234.688 1961.34 234.688C1945.05 234.688 1931.1 239.936 1919.5 250.431C1907.9 260.65 1901 274.597 1898.79 292.273H2025.14Z",fill:"#313543"}),A.jsx("path",{d:"M2105.18 311.744C2105.18 288.821 2109.87 268.521 2119.26 250.845C2128.93 233.169 2141.91 219.498 2158.2 209.832C2174.78 199.889 2193 194.918 2212.89 194.918C2230.84 194.918 2246.45 198.508 2259.7 205.689C2273.24 212.594 2284.01 221.293 2292.02 231.788V198.646H2339.66V426.913H2292.02V392.942C2284.01 403.714 2273.1 412.69 2259.29 419.87C2245.48 427.051 2229.74 430.642 2212.06 430.642C2192.45 430.642 2174.5 425.67 2158.2 415.728C2141.91 405.509 2128.93 391.423 2119.26 373.471C2109.87 355.243 2105.18 334.667 2105.18 311.744ZM2292.02 312.573C2292.02 296.83 2288.7 283.159 2282.07 271.559C2275.72 259.959 2267.3 251.121 2256.8 245.045C2246.31 238.969 2234.98 235.931 2222.83 235.931C2210.68 235.931 2199.36 238.969 2188.86 245.045C2178.37 250.845 2169.8 259.545 2163.18 271.145C2156.82 282.468 2153.65 296.001 2153.65 311.744C2153.65 327.487 2156.82 341.296 2163.18 353.172C2169.8 365.048 2178.37 374.162 2188.86 380.514C2199.63 386.59 2210.96 389.628 2222.83 389.628C2234.98 389.628 2246.31 386.59 2256.8 380.514C2267.3 374.438 2275.72 365.6 2282.07 354C2288.7 342.124 2292.02 328.315 2292.02 312.573Z",fill:"#313543"}),A.jsx("path",{d:"M2678.01 194.918C2695.96 194.918 2711.98 198.646 2726.07 206.103C2740.43 213.56 2751.62 224.608 2759.63 239.245C2767.91 253.883 2772.05 271.559 2772.05 292.273V426.913H2725.24V299.316C2725.24 278.878 2720.13 263.273 2709.91 252.502C2699.69 241.455 2685.75 235.931 2668.07 235.931C2650.39 235.931 2636.31 241.455 2625.81 252.502C2615.59 263.273 2610.49 278.878 2610.49 299.316V426.913H2563.67V299.316C2563.67 278.878 2558.56 263.273 2548.34 252.502C2538.12 241.455 2524.18 235.931 2506.5 235.931C2488.83 235.931 2474.74 241.455 2464.25 252.502C2454.03 263.273 2448.92 278.878 2448.92 299.316V426.913H2401.69V198.646H2448.92V224.746C2456.65 215.355 2466.46 208.036 2478.33 202.789C2490.21 197.541 2502.91 194.918 2516.44 194.918C2534.67 194.918 2550.97 198.784 2565.33 206.517C2579.69 214.251 2590.74 225.436 2598.47 240.074C2605.38 226.265 2616.15 215.355 2630.79 207.346C2645.42 199.06 2661.17 194.918 2678.01 194.918Z",fill:"#313543"}),A.jsx("path",{d:"M2816.41 311.744C2816.41 288.821 2821.1 268.521 2830.49 250.845C2840.16 233.169 2853.14 219.498 2869.43 209.832C2886.01 199.889 2904.23 194.918 2924.12 194.918C2942.07 194.918 2957.68 198.508 2970.93 205.689C2984.47 212.594 2995.24 221.293 3003.25 231.788V198.646H3050.89V426.913H3003.25V392.942C2995.24 403.714 2984.33 412.69 2970.52 419.87C2956.71 427.051 2940.97 430.642 2923.29 430.642C2903.68 430.642 2885.73 425.67 2869.43 415.728C2853.14 405.509 2840.16 391.423 2830.49 373.471C2821.1 355.243 2816.41 334.667 2816.41 311.744ZM3003.25 312.573C3003.25 296.83 2999.93 283.159 2993.3 271.559C2986.95 259.959 2978.53 251.121 2968.03 245.045C2957.54 238.969 2946.21 235.931 2934.06 235.931C2921.91 235.931 2910.59 238.969 2900.09 245.045C2889.6 250.845 2881.03 259.545 2874.41 271.145C2868.05 282.468 2864.88 296.001 2864.88 311.744C2864.88 327.487 2868.05 341.296 2874.41 353.172C2881.03 365.048 2889.6 374.162 2900.09 380.514C2910.86 386.59 2922.19 389.628 2934.06 389.628C2946.21 389.628 2957.54 386.59 2968.03 380.514C2978.53 374.438 2986.95 365.6 2993.3 354C2999.93 342.124 3003.25 328.315 3003.25 312.573Z",fill:"#313543"}),A.jsx("path",{d:"M3160.15 232.617C3168.16 221.57 3179.07 212.594 3192.88 205.689C3206.96 198.508 3222.57 194.918 3239.69 194.918C3259.85 194.918 3278.08 199.751 3294.37 209.417C3310.67 219.084 3323.51 232.893 3332.9 250.845C3342.29 268.521 3346.99 288.821 3346.99 311.744C3346.99 334.667 3342.29 355.243 3332.9 373.471C3323.51 391.423 3310.53 405.509 3293.96 415.728C3277.66 425.67 3259.57 430.642 3239.69 430.642C3222.01 430.642 3206.27 427.189 3192.46 420.285C3178.93 413.38 3168.16 404.542 3160.15 393.771V426.913H3112.92V120.348H3160.15V232.617ZM3298.93 311.744C3298.93 296.001 3295.62 282.468 3288.99 271.145C3282.64 259.545 3274.07 250.845 3263.3 245.045C3252.81 238.969 3241.48 235.931 3229.33 235.931C3217.46 235.931 3206.13 238.969 3195.36 245.045C3184.87 251.121 3176.3 259.959 3169.68 271.559C3163.32 283.159 3160.15 296.83 3160.15 312.573C3160.15 328.315 3163.32 342.124 3169.68 354C3176.3 365.6 3184.87 374.438 3195.36 380.514C3206.13 386.59 3217.46 389.628 3229.33 389.628C3241.48 389.628 3252.81 386.59 3263.3 380.514C3274.07 374.162 3282.64 365.048 3288.99 353.172C3295.62 341.296 3298.93 327.487 3298.93 311.744Z",fill:"#313543"}),A.jsx("path",{d:"M3440.92 120.348V426.913H3393.69V120.348H3440.92Z",fill:"#313543"}),A.jsx("path",{d:"M3712.13 307.187C3712.13 315.749 3711.58 323.482 3710.48 330.386H3536.07C3537.45 348.615 3544.21 363.252 3556.36 374.3C3568.52 385.347 3583.43 390.871 3601.11 390.871C3626.52 390.871 3644.47 380.238 3654.96 358.972H3705.92C3699.01 379.962 3686.45 397.223 3668.22 410.756C3650.27 424.013 3627.9 430.642 3601.11 430.642C3579.29 430.642 3559.68 425.808 3542.28 416.142C3525.16 406.199 3511.62 392.39 3501.68 374.714C3492.01 356.762 3487.18 336.048 3487.18 312.573C3487.18 289.097 3491.88 268.521 3501.27 250.845C3510.93 232.893 3524.33 219.084 3541.45 209.417C3558.85 199.751 3578.74 194.918 3601.11 194.918C3622.65 194.918 3641.84 199.613 3658.69 209.003C3675.54 218.393 3688.66 231.65 3698.05 248.774C3707.44 265.621 3712.13 285.092 3712.13 307.187ZM3662.83 292.273C3662.56 274.873 3656.34 260.926 3644.19 250.431C3632.04 239.936 3616.99 234.688 3599.04 234.688C3582.74 234.688 3568.79 239.936 3557.19 250.431C3545.59 260.65 3538.69 274.597 3536.48 292.273H3662.83Z",fill:"#313543"}),A.jsx("path",{d:"M3913.45 388.8H4010.81V426.913H3866.23V138.99H3913.45V388.8Z",fill:"#313543"}),A.jsx("path",{d:"M4259.51 307.187C4259.51 315.749 4258.96 323.482 4257.86 330.386H4083.45C4084.83 348.615 4091.59 363.252 4103.75 374.3C4115.9 385.347 4130.81 390.871 4148.49 390.871C4173.9 390.871 4191.85 380.238 4202.34 358.972H4253.3C4246.4 379.962 4233.83 397.223 4215.6 410.756C4197.65 424.013 4175.28 430.642 4148.49 430.642C4126.67 430.642 4107.06 425.808 4089.66 416.142C4072.54 406.199 4059 392.39 4049.06 374.714C4039.39 356.762 4034.56 336.048 4034.56 312.573C4034.56 289.097 4039.26 268.521 4048.65 250.845C4058.31 232.893 4071.71 219.084 4088.83 209.417C4106.23 199.751 4126.12 194.918 4148.49 194.918C4170.03 194.918 4189.22 199.613 4206.07 209.003C4222.92 218.393 4236.04 231.65 4245.43 248.774C4254.82 265.621 4259.51 285.092 4259.51 307.187ZM4210.22 292.273C4209.94 274.873 4203.72 260.926 4191.57 250.431C4179.42 239.936 4164.37 234.688 4146.42 234.688C4130.12 234.688 4116.17 239.936 4104.57 250.431C4092.97 260.65 4086.07 274.597 4083.86 292.273H4210.22Z",fill:"#313543"}),A.jsx("path",{d:"M4290.25 311.744C4290.25 288.821 4294.94 268.521 4304.33 250.845C4314 233.169 4326.98 219.498 4343.28 209.832C4359.85 199.889 4378.07 194.918 4397.96 194.918C4415.91 194.918 4431.52 198.508 4444.77 205.689C4458.31 212.594 4469.08 221.293 4477.09 231.788V198.646H4524.73V426.913H4477.09V392.942C4469.08 403.714 4458.17 412.69 4444.36 419.87C4430.55 427.051 4414.81 430.642 4397.13 430.642C4377.52 430.642 4359.57 425.67 4343.28 415.728C4326.98 405.509 4314 391.423 4304.33 373.471C4294.94 355.243 4290.25 334.667 4290.25 311.744ZM4477.09 312.573C4477.09 296.83 4473.77 283.159 4467.14 271.559C4460.79 259.959 4452.37 251.121 4441.87 245.045C4431.38 238.969 4420.06 235.931 4407.9 235.931C4395.75 235.931 4384.43 238.969 4373.93 245.045C4363.44 250.845 4354.88 259.545 4348.25 271.145C4341.89 282.468 4338.72 296.001 4338.72 311.744C4338.72 327.487 4341.89 341.296 4348.25 353.172C4354.88 365.048 4363.44 374.162 4373.93 380.514C4384.7 386.59 4396.03 389.628 4407.9 389.628C4420.06 389.628 4431.38 386.59 4441.87 380.514C4452.37 374.438 4460.79 365.6 4467.14 354C4473.77 342.124 4477.09 328.315 4477.09 312.573Z",fill:"#313543"}),A.jsx("path",{d:"M4633.99 231.788C4640.89 220.189 4650.01 211.213 4661.33 204.86C4672.93 198.232 4686.6 194.918 4702.34 194.918V243.802H4690.33C4671.83 243.802 4657.74 248.498 4648.07 257.888C4638.68 267.278 4633.99 283.573 4633.99 306.773V426.913H4586.76V198.646H4633.99V231.788Z",fill:"#313543"}),A.jsx("path",{d:"M4860.93 194.918C4878.88 194.918 4894.9 198.646 4908.98 206.103C4923.34 213.56 4934.53 224.608 4942.54 239.245C4950.55 253.883 4954.55 271.559 4954.55 292.273V426.913H4907.74V299.316C4907.74 278.878 4902.63 263.273 4892.41 252.502C4882.19 241.455 4868.24 235.931 4850.57 235.931C4832.89 235.931 4818.81 241.455 4808.31 252.502C4798.09 263.273 4792.98 278.878 4792.98 299.316V426.913H4745.76V198.646H4792.98V224.746C4800.72 215.355 4810.52 208.036 4822.4 202.789C4834.55 197.541 4847.39 194.918 4860.93 194.918Z",fill:"#313543"}),A.jsx("path",{d:"M5038.82 168.404C5030.26 168.404 5023.08 165.504 5017.28 159.704C5011.48 153.904 5008.58 146.723 5008.58 138.162C5008.58 129.6 5011.48 122.419 5017.28 116.619C5023.08 110.819 5030.26 107.919 5038.82 107.919C5047.11 107.919 5054.15 110.819 5059.95 116.619C5065.75 122.419 5068.65 129.6 5068.65 138.162C5068.65 146.723 5065.75 153.904 5059.95 159.704C5054.15 165.504 5047.11 168.404 5038.82 168.404ZM5062.02 198.646V426.913H5014.79V198.646H5062.02Z",fill:"#313543"}),A.jsx("path",{d:"M5239.2 194.918C5257.15 194.918 5273.17 198.646 5287.25 206.103C5301.61 213.56 5312.8 224.608 5320.81 239.245C5328.82 253.883 5332.82 271.559 5332.82 292.273V426.913H5286.01V299.316C5286.01 278.878 5280.9 263.273 5270.68 252.502C5260.46 241.455 5246.52 235.931 5228.84 235.931C5211.16 235.931 5197.08 241.455 5186.58 252.502C5176.36 263.273 5171.25 278.878 5171.25 299.316V426.913H5124.03V198.646H5171.25V224.746C5178.99 215.355 5188.79 208.036 5200.67 202.789C5212.82 197.541 5225.66 194.918 5239.2 194.918Z",fill:"#313543"}),A.jsx("path",{d:"M5485.03 194.918C5502.71 194.918 5518.31 198.508 5531.85 205.689C5545.66 212.594 5556.43 221.293 5564.16 231.788V198.646H5611.8V430.642C5611.8 451.632 5607.38 470.274 5598.55 486.569C5589.71 503.14 5576.87 516.121 5560.02 525.511C5543.45 534.901 5523.56 539.597 5500.36 539.597C5469.43 539.597 5443.74 532.278 5423.31 517.64C5402.87 503.278 5391.27 483.669 5388.51 458.812H5435.32C5438.91 470.688 5446.51 480.217 5458.11 487.398C5469.98 494.855 5484.07 498.583 5500.36 498.583C5519.42 498.583 5534.75 492.783 5546.35 481.183C5558.22 469.584 5564.16 452.736 5564.16 430.642V392.528C5556.15 403.299 5545.24 412.413 5531.43 419.87C5517.9 427.051 5502.43 430.642 5485.03 430.642C5465.15 430.642 5446.92 425.67 5430.35 415.728C5414.05 405.509 5401.07 391.423 5391.41 373.471C5382.02 355.243 5377.32 334.667 5377.32 311.744C5377.32 288.821 5382.02 268.521 5391.41 250.845C5401.07 233.169 5414.05 219.498 5430.35 209.832C5446.92 199.889 5465.15 194.918 5485.03 194.918ZM5564.16 312.573C5564.16 296.83 5560.85 283.159 5554.22 271.559C5547.87 259.959 5539.44 251.121 5528.95 245.045C5518.45 238.969 5507.13 235.931 5494.98 235.931C5482.82 235.931 5471.5 238.969 5461.01 245.045C5450.51 250.845 5441.95 259.545 5435.32 271.145C5428.97 282.468 5425.79 296.001 5425.79 311.744C5425.79 327.487 5428.97 341.296 5435.32 353.172C5441.95 365.048 5450.51 374.162 5461.01 380.514C5471.78 386.59 5483.1 389.628 5494.98 389.628C5507.13 389.628 5518.45 386.59 5528.95 380.514C5539.44 374.438 5547.87 365.6 5554.22 354C5560.85 342.124 5564.16 328.315 5564.16 312.573Z",fill:"#313543"}),A.jsx("path",{d:"M2184.73 697.313C2217.58 716.28 2217.58 763.697 2184.73 782.664L1991.16 894.422C1947.5 919.63 1898.63 870.769 1923.84 827.107L1959.92 764.627C1968.72 749.381 1968.72 730.596 1959.92 715.35L1923.84 652.868C1898.63 609.206 1947.49 560.345 1991.16 585.553L2184.73 697.313Z",fill:"#F8981D"}),A.jsx("path",{d:"M2433.01 610.672C2460.47 610.672 2484.62 617.305 2505.32 630.7C2526.06 644.117 2541.15 663.145 2550.59 687.606L2552.75 693.183H2505.75L2504.65 690.796C2498.16 676.682 2488.82 665.936 2476.64 658.408L2476.55 658.351L2476.53 658.342C2465.01 651.11 2451.1 647.29 2434.62 647.058L2433.01 647.047C2416.54 647.047 2401.88 650.875 2388.95 658.458C2376.03 666.03 2365.87 676.833 2358.46 690.986L2358.45 691.01C2351.07 704.868 2347.3 721.321 2347.3 740.502C2347.3 759.417 2351.06 775.869 2358.43 789.973L2359.15 791.292L2359.85 792.528C2367.11 805.216 2376.81 815.077 2388.95 822.194C2401.88 829.776 2416.54 833.605 2433.01 833.605L2434.62 833.594C2451.16 833.367 2465.11 829.639 2476.66 822.584C2488.83 815.057 2498.16 804.314 2504.65 790.206L2505.75 787.821H2552.76L2550.59 793.409C2541.14 817.639 2526.05 836.542 2505.32 849.952L2505.25 850.001L2505.22 850.015C2484.54 863.133 2460.42 869.627 2433.01 869.627C2409.57 869.627 2388.1 864.183 2368.67 853.253L2368.65 853.241L2368.64 853.238L2368.54 853.182L2368.52 853.17C2349.38 842.002 2334.22 826.581 2323.09 806.976C2311.9 787.284 2306.35 765.091 2306.35 740.502C2306.35 715.913 2311.9 693.72 2323.09 674.028C2334.2 654.223 2349.33 638.697 2368.44 627.528L2368.46 627.518L2368.63 627.418C2388.07 616.242 2409.56 610.672 2433.01 610.672Z",fill:"#313543"}),A.jsx("path",{d:"M2637.06 869.627H2596.11V610.676H2637.06V869.627Z",fill:"#313543"}),A.jsx("path",{d:"M2728.31 869.627H2687.37V684.984H2728.31V869.627Z",fill:"#313543"}),A.jsx("path",{d:"M2708.2 610.672C2715.28 610.672 2721.38 613.266 2726.23 618.369L2726.7 618.851C2731.48 623.867 2733.89 630.021 2733.89 637.082C2733.89 644.372 2731.32 650.693 2726.23 655.795C2721.38 660.898 2715.28 663.492 2708.2 663.492C2700.9 663.492 2694.57 660.919 2689.47 655.814C2684.36 650.709 2681.79 644.381 2681.79 637.082C2681.79 629.784 2684.36 623.456 2689.47 618.351C2694.57 613.245 2700.9 610.672 2708.2 610.672Z",fill:"#313543"}),A.jsx("path",{d:"M3454.19 869.627H3413.24V684.984H3454.19V869.627Z",fill:"#313543"}),A.jsx("path",{d:"M3434.07 610.672C3441.15 610.672 3447.25 613.266 3452.1 618.369L3452.57 618.851C3457.35 623.867 3459.76 630.021 3459.76 637.082C3459.76 644.372 3457.19 650.693 3452.1 655.795C3447.25 660.898 3441.15 663.492 3434.07 663.492C3426.77 663.492 3420.44 660.919 3415.34 655.814C3410.23 650.709 3407.66 644.381 3407.66 637.082C3407.66 629.784 3410.23 623.456 3415.34 618.351C3420.44 613.245 3426.77 610.672 3434.07 610.672Z",fill:"#313543"}),A.jsx("path",{d:"M2855.46 684.984C2855.61 684.983 2855.92 684.978 2856.13 684.978H2856.15L2857.22 684.984C2857.4 684.983 2857.71 684.978 2857.95 684.978L2858.99 684.983C2880.69 685.145 2898.92 690.402 2913.4 701.052C2928.28 711.846 2938.05 726.831 2942.73 745.767L2943.99 750.851H2901.14L2900.29 747.879C2900.27 747.814 2900.27 747.804 2900.25 747.762C2897.15 740.415 2892.52 734.416 2886.35 729.698L2886.33 729.687L2886.26 729.634C2878.65 723.683 2869.09 720.5 2857.31 720.301L2856.12 720.292C2840.34 720.296 2827.83 726.106 2818.19 737.764L2818.19 737.775L2818.13 737.844C2815.18 741.35 2812.67 745.335 2810.59 749.816C2807.89 757.473 2806.49 766.507 2806.49 776.989L2806.49 777.999L2806.5 778.969C2806.67 788.881 2808.1 797.487 2810.72 804.846C2812.77 809.3 2815.25 813.277 2818.15 816.791C2827.79 828.486 2840.33 834.313 2856.13 834.313L2857.28 834.304C2869.11 834.117 2878.7 831.032 2886.32 825.282C2892.41 820.687 2897.07 814.545 2900.3 806.734C2900.3 806.722 2900.3 806.709 2900.31 806.691L2901.18 803.752H2944.1L2942.71 808.914C2937.8 827.227 2927.92 842.045 2913.12 853.21L2913 853.296L2912.97 853.314C2898.33 864.1 2880.25 869.453 2858.97 869.618L2857.95 869.622C2857.77 869.622 2857.51 869.619 2857.38 869.618L2856.15 869.626H2856.13C2855.8 869.626 2855.44 869.621 2855.16 869.618L2854.38 869.622H2854.37C2837.19 869.622 2821.74 865.856 2808.1 858.229L2808.08 858.218L2808.01 858.173C2794.99 850.75 2784.7 840.333 2777.17 827.004L2777.16 826.992L2777.16 826.98L2776.47 825.731L2776.46 825.719L2776.45 825.707C2769.08 812.144 2765.35 796.437 2765.12 778.71V778.69L2765.11 777.011V776.989C2765.11 758.76 2768.85 742.675 2776.46 728.875L2776.47 728.871L2777.16 727.621L2777.16 727.61L2777.17 727.598C2784.7 714.269 2794.99 703.852 2808.01 696.429L2808.08 696.384L2808.1 696.373C2821.74 688.745 2837.19 684.978 2854.37 684.978H2854.39L2855.46 684.984Z",fill:"#313543"}),A.jsx("path",{d:"M3263.09 819.015L3339.01 610.672H3382.34L3284.63 869.627H3241.19L3143.47 610.672H3187.17L3263.09 819.015Z",fill:"#313543"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3579.56 684.979C3596.39 684.979 3611.44 688.653 3624.61 696.112C3637.73 703.546 3647.83 713.861 3654.86 727.003L3655.42 728.02L3655.42 728.03L3655.43 728.041C3661.37 739.04 3664.7 751.247 3665.48 764.596C3665.59 766.624 3665.65 768.679 3665.65 770.757V770.77L3665.65 771.792V771.802C3665.61 777.049 3665.29 782.557 3664.7 788.323L3664.32 792.002H3532.34C3533.17 799.022 3534.91 805.217 3537.53 810.632C3539.52 813.939 3541.84 816.954 3544.48 819.682C3554.3 829.378 3566 834.224 3579.83 834.311C3591.23 834.266 3600.38 831.308 3607.58 825.684C3613.44 821.051 3617.94 815.284 3621.12 808.332L3622.21 805.936H3664.77L3663.31 811.144C3658.45 828.441 3648.71 842.604 3634.18 853.528L3634.17 853.535L3634.16 853.543L3634.15 853.552C3619.49 864.349 3601.42 869.626 3580.2 869.626C3580.13 869.626 3580.03 869.625 3580.03 869.625C3580.01 869.625 3579.99 869.624 3579.97 869.624L3579.58 869.626H3579.56C3562.72 869.626 3547.46 865.839 3533.91 858.186L3533.9 858.182L3533.89 858.177L3533.89 858.174L3533.88 858.171C3520.57 850.532 3510.09 839.729 3502.47 825.857L3502.46 825.832L3502.38 825.696C3494.98 811.95 3491.22 796.246 3490.99 778.694V778.673L3490.98 777.012V776.991C3490.98 758.771 3494.63 742.606 3502.06 728.618C3509.37 714.866 3519.58 704.213 3532.67 696.762L3533.3 696.41C3546.87 688.754 3562.33 684.979 3579.56 684.979ZM3578.13 720.288C3565.7 720.288 3555.27 724.021 3546.6 731.409C3539.22 737.84 3534.53 746.522 3532.67 757.745H3624C3623.45 750.675 3621.47 744.669 3618.16 739.612L3618.12 739.557L3618.12 739.549C3614.12 733.288 3608.67 728.594 3601.67 725.433L3601.65 725.428L3601.61 725.408L3601.57 725.389L3601.54 725.375C3594.62 722.008 3586.84 720.288 3578.13 720.288Z",fill:"#313543"}),A.jsx("path",{d:"M3892.36 869.627H3853.2L3815.15 744.253L3777.11 869.627H3737.96L3680 684.98H3721.46L3757.71 817.294L3796.83 684.98H3835.72L3873.87 817.207L3909.44 684.98L3949.85 684.978L3892.36 869.627Z",fill:"#313543"}),A.jsx("path",{d:"M3022.18 756.349L3084.15 684.984H3136.42L3049.47 776.988L3136.72 869.627H3085.46L3022.18 798.395V869.627H2981.23V610.676H3022.18V756.349Z",fill:"#313543"})]})})}var oU=(e=>(e.Default="default",e.Lite="lite",e.Exchange="exchange",e.Analytics="analytics",e.Cloud="cloud",e.Streamable="streamable",e.Xmas="xmas",e.Plugin="plugin",e.Curator="curator",e))(oU||{});const po="ClickView",WK="Streamable Learning",TN={default:{imageUrls:{default:["/images/backgrounds/bg-1.png","/images/backgrounds/bg-2.png","/images/backgrounds/bg-3.png","/images/backgrounds/bg-4.png","/images/backgrounds/bg-5.png"]},imageType:"background",logoComponent:$o,bannerSpacer:Di,productName:po},lite:{imageUrls:{default:["/images/backgrounds/products/lite-topic-1-v2.png","/images/backgrounds/products/lite-topic-2-v2.png","/images/backgrounds/products/lite-topic-3-v2.png","/images/backgrounds/products/lite-discover-1-v2.png","/images/backgrounds/products/lite-discover-2-v2.png","/images/backgrounds/products/lite-student-1-v2.png","/images/backgrounds/products/lite-student-2-v2.png","/images/backgrounds/products/lite-event-1-v2.png"]},imageType:"image",logoComponent:$o,backgroundColor:"#38A2E8",bannerSpacer:Di,productName:po},exchange:{imageUrls:{default:["/images/backgrounds/products/exchange-1-v2.png"]},imageType:"image",logoComponent:$o,backgroundColor:"#F8981D",bannerSpacer:Di,productName:po},analytics:{imageUrls:{default:["/images/backgrounds/products/analytics-1-v4.png"]},imageType:"image",logoComponent:$o,backgroundColor:"#4C68DB",bannerSpacer:Di,productName:po},cloud:{imageUrls:{default:["/images/backgrounds/products/cloud-1-v2.png"]},imageType:"image",logoComponent:$o,backgroundColor:"#40C2BB",bannerSpacer:Di,productName:po},streamable:{imageUrls:{default:["/images/backgrounds/products/streamable-1-v2.png","/images/backgrounds/products/streamable-2-v2.png"]},imageType:"image",logoComponent:GK,backgroundColor:"#D6F0FC",bannerSpacer:Di,productName:WK},xmas:{imageUrls:{default:["/images/backgrounds/xmas/2026-promo1-bg.png","/images/backgrounds/xmas/2026-promo2-bg.png","/images/backgrounds/xmas/2026-promo3-bg.png","/images/backgrounds/xmas/2026-promo4-bg.png","/images/backgrounds/xmas/2026-promo5-bg.png","/images/backgrounds/xmas/2026-promo6-bg.png","/images/backgrounds/xmas/2026-promo7-bg.png"]},imageType:"background",logoComponent:ZK,bannerSpacer:Di,productName:po},plugin:{imageUrls:{default:[]},imageType:"none",logoComponent:$o,bannerSpacer:Di,banner:"plugin",productName:po},curator:{imageUrls:{default:["/images/backgrounds/products/curator-1-v2.png"]},imageType:"image",backgroundColor:"#49c5b1",logoComponent:$o,bannerSpacer:Di,productName:po,title:"Thank you for all the years of service, ClickView Central!"}},za={getDefinition(e){return TN[e]||TN[oU.Default]}},KK={success:e=>{window.location.href=e.data.redirectUrl},"continue-login":(e,r)=>{const{returnUrl:t}=r;dt.post("/ajax/login/continue",{returnUrl:t}).then(a=>Pt(a,r)).catch(a=>{throw a})}};function Pt(e,r,t){const a=KK[e.step];if(a){a(e,r);return}if(!!!wB[e.step])throw Error(`Unknown step '${e.step}'`);r.navigate({step:e.step,...t,...e.data})}function sU(e){return A.jsxs("div",{className:e.className,children:["Don't have an account? ",A.jsx("a",{className:"info-link btn-link",href:e.signInUrl,children:"Create account"})]})}const uU={getStorage(){return window.localStorage?window.localStorage:window.sessionStorage?window.sessionStorage:uU.getMemoryStorage()},getMemoryStorage(){const e=new Map;return{setItem(r,t){e.set(r,t)},getItem(r){return e.get(r)},removeItem(r){e.delete(r)},clear(){e.clear()},get length(){return e.size},key(r){return Array.from(e.values())[r]}}}};var Kn=(e=>(e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.MemoryStorage="memoryStorage",e))(Kn||{});class $_{constructor(r){if(this.cachePrefix="_cv:",this.expireTime=3600,this.type=r.type,this.hasSupport=this.hasBrowserSupport(),!!this.hasSupport)try{this.type==="memoryStorage"?this.storage=uU.getMemoryStorage():this.storage=window[this.type]}catch{}}isAvailable(){return this.hasSupport}get(r){if(!this.hasSupport)return;const t=this.storage.getItem(r);try{return JSON.parse(t)}catch{return t}}set(r,t){if(this.hasSupport)try{return this.storage.removeItem(r),typeof t!="string"?(this.storage.setItem(r,JSON.stringify(t)),!0):(this.storage.setItem(r,t),!0)}catch{return!1}}remove(r){if(this.hasSupport)return this.storage.removeItem(r)}length(){if(this.hasSupport)return this.storage.length}clear(){if(this.hasSupport)return this.storage.clear()}cacheSet(r,t,a=this.expireTime){this.cacheClean();const o={time:this.getCurrentTime()+a*1e3,data:typeof t<"u"&&t!==null&&t};return this.set(`${this.cachePrefix}${r}`,o)}cacheGet(r){const t=`${this.cachePrefix}${r}`,a=this.get(t);return a?this.isExpired(a)?(this.remove(t),null):a.data:null}cacheExists(r){const t=`${this.cachePrefix}${r}`,a=this.get(t);return a?this.isExpired(a)?(this.remove(t),!1):!0:!1}cacheRemove(r){return this.remove(`${this.cachePrefix}${r}`)}cacheFlush(){this.cacheClean()}cacheClean(){if(this.hasSupport)for(let r=0;r<this.storage.length;r++){const t=this.storage.key(r);if(t.indexOf(this.cachePrefix)===0){const a=this.get(t);a&&a.time&&this.isExpired(a)&&this.remove(t)}}}isExpired(r){return r.time<this.getCurrentTime()}getCurrentTime(){return new Date().getTime()}hasBrowserSupport(){if(this.type==="memoryStorage")return!0;try{return this.type in window&&window[this.type]!==null}catch{return!1}}}class YK extends $_{static get Instance(){return this.instance||(this.instance=new this({type:"localStorage"}))}}class JK extends $_{static get Instance(){return this.instance||(this.instance=new this({type:"sessionStorage"}))}}class XK extends $_{static get Instance(){return this.instance||(this.instance=new this({type:"memoryStorage"}))}}const Tn=YK.Instance,RN=JK.Instance,ON=XK.Instance,kN="r",Uf="cv:r",Ff="cv:r:e",Mc="referrer",PN="cv:originalReferrer",Zb=28800,NN=["internalReferrer"],_i={getDecodedAttributionData(){const e=Tn.cacheGet(Uf);if(e&&Object.keys(e).length>0)return e;const r=jN();return r==null?void 0:r.decoded},getEncodedAttributionData(){const e=Tn.cacheGet(Ff);return e!=null&&e.length?e:jN().encoded},getProfileId(){const e=_i.getDecodedAttributionData();return(e==null?void 0:e.profileId)??null},setAttributionData(e){if(!e)return;const r=lU(e);Hb(r,e)},decodeRValue(e){if(e)try{const r=atob(e),t=JSON.parse(r);if(!z_(t))throw Error(`Decoded R value is invalid: ${JSON.stringify(t)}`);return t}catch(r){const t=r instanceof Error?r.message:r==null?void 0:r.toString();console.error(t)}}};function jN(){const e=Tn.cacheGet(Uf),r=Tn.cacheGet(Ff);return z_(e)?{encoded:r,decoded:e}:QK()}function QK(){Tn.cacheRemove(Uf),Tn.cacheRemove(Ff);const e=rY(),r=_i.decodeRValue(e);if(r)return Hb(e,r),{decoded:r,encoded:e};const t={internalReferrer:window.location.origin+window.location.pathname,originalReferrer:eY()},a=lU(t);return Hb(a,t),{decoded:t,encoded:a}}function z_(e){return!e||typeof e!="object"||Object.keys(e).length<NN.length?!1:NN.every(r=>typeof e[r]=="string")}function eY(){const e=Tn.cacheGet(PN);if(e&&typeof e=="string")return e;let r=document.referrer??"";if(window.URLSearchParams){const t=new URLSearchParams(window.location.search),a=t.has(Mc)&&t.get(Mc);t.has(Mc)&&t.get(Mc)&&(r=a)}return r&&Tn.cacheSet(PN,r,Zb),r}function rY(){if(!window.URLSearchParams)return;const e=new URLSearchParams(window.location.search);if(e.has(kN))return e.get(kN)}function lU(e){if(z_(e))try{return btoa(JSON.stringify(e))}catch{console.error(`R value could not be encoded: ${JSON.stringify(e)}`)}}function Hb(e,r){try{Tn.cacheSet(Uf,r,Zb),Tn.cacheSet(Ff,e,Zb)}catch{console.error("Could not store attribution data in session storage")}}const tY=28800,qN="cv:utmparams",Vb=[["source","utm_source"],["medium","utm_medium"],["campaign","utm_campaign"],["term","utm_term"],["content","utm_content"]],nY=Vb.reduce((e,[r])=>({...e,[r]:r}),{}),fs={getUtmParameters(){if(!window.URLSearchParams)return null;const e=new URLSearchParams(window.location.search),r={},t=([a,o])=>{e.has(o)&&(r[a]=e.get(o))};return Vb.forEach(t),DN(r)},setUtmParameters(e){if(!e)return;const r={},t=a=>{nY[a]&&(r[a]=e[a])};return Object.keys(e).forEach(t),DN(r)},getURLSearchParams(){if(!window.URLSearchParams)return null;const e=new URLSearchParams,r=fs.getUtmParameters();return r?(Vb.forEach(([t,a])=>{r[t]&&e.set(a,r[t])}),e):null}};function DN(e){if(Object.keys(e).length)return Tn.cacheSet(qN,e,tY),e;const r=Tn.cacheGet(qN);return r&&typeof r=="object"&&Object.keys(r).length?r:null}function Z_(e){function r(s){dt.post("/ajax/login/ip-auth",{id:s.id,returnUrl:e.returnUrl}).then(u=>Pt(u,e)).catch(u=>{console.warn(u)})}function t(s){window.location.href=s.url}function a(){e.navigate({step:e.backStep})}function o(){if(!window.URLSearchParams)return e.signUpUrl;const s=fs.getURLSearchParams()||new URLSearchParams,u=_i.getEncodedAttributionData();return u&&s.set("r",u),e.signUpUrl+"?"+s.toString()}return{onClickIpAuthGuest:r,onClickProvider:t,onClickBack:e.backStep?a:null,getSignInUrl:o}}const aY="_globalIdpButton_gzfrv_1",iY="_globalIdpImage_gzfrv_5",LN={globalIdpButton:aY,globalIdpImage:iY};function cU(e){const{idp:r,onClick:t,backgroundColour:a="F8981D",foregroundColour:o="FFF",last:s,isGlobalIdp:u}=e,v=s?"":"mb-3",d={backgroundColor:`#${r.backgroundColour||a}`,color:`#${r.foregroundColour||o}`},h={},f=u?`btn btn-lg btn-outline-dark w-100 ${v} ${LN.globalIdpButton}`:`btn btn-lg w-100 ${v}`,c=u?h:d,_=u?`Continue with ${r.name}`:r.name;return A.jsxs("button",{className:f,style:c,onClick:()=>t(r),children:[u&&r.logoUrl&&A.jsx("img",{src:r.logoUrl,className:LN.globalIdpImage,alt:`${r.name} logo`}),_]})}const oY="_divider_1q6pq_1",sY={divider:oY};function H_(e){var a;const r=((a=e.idps)==null?void 0:a.filter(o=>!!o.visible))||[];if(!r.length)return A.jsx(A.Fragment,{});function t(o){const s=window.location.pathname+window.location.search;let u=`/challenge?idp=${o.id}&redirectUrl=`+encodeURIComponent(s);"attribution"in e&&(u+="&attribution="+encodeURIComponent(e.attribution)),window.location.href=u}return A.jsxs("div",{className:`${e.className?e.className:""}`,children:[A.jsx("div",{className:`my-4 border-bottom position-relative ${sY.divider}`}),r.map((o,s)=>A.jsx(cU,{idp:o,onClick:"onClick"in e?e.onClick:t,attribution:"attribution"in e?e.attribution:null,isGlobalIdp:!0},s))]})}function Ht(e){return A.jsx("span",{id:`${e.name}Error`,className:`${e.className} invalid-feedback d-block`,role:"status",children:e.children})}function uY(e){var T;const[r,t]=Nr.useState(e.username||""),[a,o]=Nr.useState(!1),[s,u]=Nr.useState(""),v=za.getDefinition(e==null?void 0:e.theme),d=v!=null&&v.productName?`Sign in to ${v.productName}`:"Sign in",h=!!((T=e.globalIdps)!=null&&T.length),f=e.signUpUrl&&e.showSignUp,{onClickProvider:c,onClickBack:_,getSignInUrl:E}=Z_(e);function S(b){if(b.preventDefault(),!r){u("Please provide a username");return}o(!0),dt.post("/ajax/login/check-user",{username:r,returnUrl:e.returnUrl}).then(I=>Pt(I,e,{username:r})).catch(I=>{o(!1),u(I.userMessage||"Something went wrong")})}function w(b){t(b.target.value.trim()),b.target.value&&u("")}return A.jsxs(A.Fragment,{children:[A.jsx(yt,{theme:e.theme,title:d,onClickBack:_}),A.jsxs("form",{onSubmit:S,children:[A.jsxs("div",{className:"mb-3",children:[A.jsx(xl,{name:"username",type:"username",isError:!!s,value:r,onChange:w,"aria-invalid":!!s,"aria-errormessage":"usernameError"}),!!s&&A.jsx(Ht,{name:"username",children:s})]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:a,children:"Continue"})]}),f&&A.jsx(sU,{className:"mt-4",signInUrl:E()}),h&&A.jsx(H_,{idps:e.globalIdps.map(b=>({...b,visible:!0})),onClick:c})]})}function lY(e){var c;const r=za.getDefinition(e==null?void 0:e.theme),t=r!=null&&r.productName?`Sign in to ${r.productName}`:"Sign in",a=!!((c=e.globalIdps)!=null&&c.length),o=e.signUpUrl&&e.showSignUp,{onClickIpAuthGuest:s,onClickProvider:u,onClickBack:v,getSignInUrl:d}=Z_(e);function h(){e.navigate({step:"username-input",backStep:"username"})}function f(){var _;((_=e.ipAuthGuests)==null?void 0:_.length)===1?s(e.ipAuthGuests[0]):e.navigate({step:"guest-selection",backStep:"username"})}return A.jsxs(A.Fragment,{children:[A.jsx(yt,{theme:e.theme,title:t,onClickBack:v}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100 mb-3",showSpinner:!1,onClick:h,children:"Sign in with username or email"}),A.jsx(gn,{className:"btn btn-outline-dark btn-lg w-100",showSpinner:!1,onClick:f,children:"Sign in as guest"}),o&&A.jsx(sU,{className:"mt-4",signInUrl:d()}),a&&A.jsx(H_,{idps:e.globalIdps.map(_=>({..._,visible:!0})),onClick:u})]})}function V_(){return A.jsx("div",{className:"svg-container",children:A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M15.695 11.267c.407.41.407 1.056 0 1.466L9.79 18.696a1.046 1.046 0 0 1-1.474 0l-.01-.01a1.034 1.034 0 0 1 0-1.467L13.474 12l-5.17-5.22a1.034 1.034 0 0 1 0-1.465l.012-.011a1.046 1.046 0 0 1 1.474 0l5.905 5.963z"})})})}const cY="_showIconOnHover_1ebbv_1",fY={showIconOnHover:cY};function dY({icon:e}){return A.jsx(A.Fragment,{children:e&&A.jsx("img",{alt:"icon",className:"w-100 h-100 border rounded-circle",src:e})})}function G_(e){const{text:r,onClick:t,className:a,icon:o,iconColor:s="dark",showIconOnHover:u=!0}=e,v={};let d;return typeof o=="function"?d=o:d=()=>A.jsx(dY,{icon:o}),A.jsx("button",{className:Ua("btn btn-outline-dark btn-lg w-100 border-secondary",u&&fY.showIconOnHover,a),onClick:t,style:v,children:A.jsxs("div",{className:"py-1 d-flex align-items-center",children:[d&&A.jsx("span",{className:`icon-circle rounded-circle text-white me-2 bg-${s} d-flex justify-content-center align-items-center`,children:A.jsx(d,{})}),A.jsx("span",{className:"h6 mb-0 w-75 text-start",children:r}),A.jsx("span",{className:"ms-auto",children:A.jsx(V_,{})})]})})}function al(){return A.jsx("div",{className:"svg-container lg",children:A.jsx("svg",{viewBox:"0 0 18 18",className:"align-top",children:A.jsx("path",{d:"M12.648 14.798a.914.914 0 0 1-.908-.907c0-.497.411-.908.908-.908.496 0 .907.411.907.908a.914.914 0 0 1-.907.907zm0-1.044a.135.135 0 0 0-.137.137c0 .086.051.137.137.137.085 0 .137-.052.137-.137a.135.135 0 0 0-.137-.137zm0-.086a.38.38 0 0 1-.377-.376V8.805L8.81 6.94c-.187-.103-.256-.342-.153-.514.103-.188.342-.256.513-.154l3.665 1.97c.12.068.205.205.205.342v4.709a.384.384 0 0 1-.393.377zM8.966 10.62a.606.606 0 0 1-.171-.034l-7.072-3.39a.4.4 0 0 1-.223-.36c0-.154.086-.291.223-.342l7.14-3.254a.362.362 0 0 1 .325 0l7.09 3.254a.394.394 0 0 1 .222.342.357.357 0 0 1-.223.343l-7.14 3.407a.606.606 0 0 1-.171.034zM2.801 6.853l6.165 2.962 6.216-2.962-6.165-2.825zm6.113 6.096c-3.561 0-4.983-2.106-5.034-2.209a.486.486 0 0 1-.068-.205V8.138a.38.38 0 0 1 .376-.377.38.38 0 0 1 .377.377v2.277c.291.36 1.558 1.764 4.332 1.764 2.74 0 4.161-1.405 4.504-1.781V8.274a.38.38 0 0 1 .377-.376.38.38 0 0 1 .376.376v2.26a.429.429 0 0 1-.068.223c-.035.103-1.644 2.192-5.172 2.192z",style:{strokeWidth:.0275199}})})})}const Zs={buildAvatarUrl(e,r){if(e)return r.size?`${e}${e.includes("?")?"&":"?"}size=${r.size}`:e}};function hY(e){return A.jsx("div",{className:"d-flex flex-column gap-3",children:e.ipAuthGuests.map(r=>A.jsx(G_,{onClick:()=>{e.onClickGuest(r)},text:r.customer.name,icon:Zs.buildAvatarUrl(r.customer.logoUrl,{size:"small"})||al},r.id))})}function vY(){return A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"})})}const pY="_clearInput_1l19p_1",gY="_clearableInput_1l19p_8",MN={clearInput:pY,clearableInput:gY},Hs=je.forwardRef((e,r)=>{const{onClickClear:t,showClearButton:a,clearClassName:o,...s}=e;return A.jsxs("div",{className:"position-relative",children:[A.jsx("input",{...s,ref:r,className:`${e.className} ${MN.clearableInput}`}),(!!e.value||a)&&A.jsx("span",{className:`${MN.clearInput} position-absolute cursor-pointer text-secondary ${o||""}`,role:"button",onClick:t,onKeyDown:u=>u.key==="Enter"&&t(),tabIndex:0,children:A.jsx("div",{className:"d-inline-block svg-container md",children:A.jsx(vY,{})})})]})});function W_(e){const[r,t]=je.useState(0),a=je.useRef(null),[o,s]=je.useState(!!e.hideInitially);function u(){var f;a.current&&((f=a.current.children[r-1])==null||f.scrollIntoView({block:"center"}))}function v(f){if(e.hideOnEnter&&s(!1),f.code==="ArrowDown"){f.stopPropagation(),f.preventDefault();let c=r+1;c>e.itemCount&&(c=1),t(c),u();return}if(f.code==="ArrowUp"){f.stopPropagation(),f.preventDefault();let c=r-1;c<=0&&(c=e.itemCount),t(c),u();return}if(f.code==="Enter"&&r>0){f.stopPropagation(),f.preventDefault(),e.onSelected(r-1),e.hideOnEnter&&s(!0);return}t(0)}function d(){e.hideOnBlur&&s(!1)}function h(){e.hideOnBlur&&s(!0)}return{selectedIndex:r,onKeyDown:v,containerRef:a,hide:o,onFocus:d,onBlur:h}}const Wo=je.forwardRef((e,r)=>{function t(o){if(e.onKeyDown)return e.onKeyDown(o);if(o.key===" "&&o.preventDefault(),o.key==="Enter"||o.key===" "){if(e.disabled||!e.onClick)return;a(o)}}function a(...o){if(!(e.disabled||!e.onClick))return e.onClick(...o)}return A.jsx("div",{...e,ref:r,role:"button",tabIndex:e.tabIndex||0,className:`${e.className?e.className:""} ${e.disabled?"":"cursor-pointer"}`,onKeyDown:t,onClick:a,style:e.style?e.style:{},children:e.children})}),mY="_inputFocused_bwtre_1",yY="_dropdown_bwtre_4",bY="_suggestionContainer_bwtre_7",_Y="_suggestionItem_bwtre_16",SY="_large_bwtre_20",wY="_input_bwtre_1",EY="_selected_bwtre_39",CY="_clearInput_bwtre_43",xY="_clear_bwtre_43",ri={inputFocused:mY,dropdown:yY,suggestionContainer:bY,suggestionItem:_Y,large:SY,input:wY,selected:EY,clearInput:CY,clear:xY};function IY(e){const{items:r,getName:t,onItemClick:a,selectedIndex:o}=e;return A.jsx(A.Fragment,{children:r.map((s,u)=>A.jsx(Wo,{className:`${ri.suggestionItem} ${o-1===u?ri.selected:""}`,onKeyDown:v=>v.key==="Enter"&&a(s),onMouseDown:()=>a(s),onClick:()=>a(s),children:t(s)},u))})}function Il(e){const r=je.useRef(null),[t,a]=je.useState(""),[o,s]=je.useState([]),{selectedIndex:u,onKeyDown:v,containerRef:d,hide:h,onBlur:f,onFocus:c}=W_({onSelected:_,itemCount:e.cantFindText?e.items.length+1:e.items.length,hideOnBlur:!0,hideInitially:!0,hideOnEnter:!0});function _(g){if(g===o.length){e.onCantFind();return}const x=o[g];x&&I(x)}const E=!!e.item,S=e.cantFindText?(o==null?void 0:o.length)+1:o==null?void 0:o.length;je.useEffect(()=>{if(!E){if(!t.length){b();return}if(!E&&t.length>1){b(t);return}}},[t,E]);function w(g){e.item&&e.clearData(),g!==t&&a(g)}function T(){w(""),r.current.focus()}function b(g){if(!g){s(e.items);return}const x=e.items.filter(R=>e.getName(R).toLowerCase().includes(g.toLowerCase()));s(x)}function I(g){a(e.getName(g)),e.onSelect(g),s(e.items)}const m=S&&!e.disabled&&!h;let p=`form-select ${m?ri.inputFocused:ri.input} ${ri.clearInput} cursor-pointer`,y="form-group position-relative";return e.size==="lg"&&(p+=" form-select-lg",y+=` ${ri.large}`),A.jsxs("div",{className:y,children:[A.jsx(Hs,{id:e.id,value:t,onChange:g=>w(g.currentTarget.value),ref:r,className:p,type:"text",autoComplete:"off",placeholder:e.placeholder,disabled:e.disabled,onClickClear:T,onKeyDown:v,onFocus:c,onBlur:f,clearClassName:ri.clear}),A.jsx("div",{className:`position-absolute z-1 w-100 ${ri.dropdown} ${h?"d-none":""}`,children:A.jsxs("div",{className:`${ri.suggestionContainer} ${m?"":"d-none"}`,ref:d,children:[S&&A.jsx(IY,{items:o,onItemClick:I,getName:e.getName,selectedIndex:u}),e.cantFindText&&A.jsx("div",{className:`info-link ${ri.suggestionItem} ${u===o.length+1?ri.selected:""}`,onKeyDown:g=>g.key==="Enter"&&e.onCantFind(),onMouseDown:e.onCantFind,onClick:e.onCantFind,children:e.cantFindText})]})})]})}function AY(e){const[r,t]=Nr.useState(null);return A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"mb-3",children:A.jsx(Il,{id:"guest",item:r,items:e.ipAuthGuests,onSelect:a=>t(a),getName:a=>a.customer.name,clearData:()=>t(null),placeholder:"Select a school",size:"lg"})}),A.jsx("button",{className:"btn btn-lg btn-dark w-100",disabled:!r,onClick:()=>{e.onClickGuest(r)},children:"Continue"})]})}const TY=4;function RY(e){return A.jsxs("div",{className:Ua(e.className),children:[A.jsx("p",{className:"fw-medium",children:"Which school would you like to sign in to as a guest?"}),e.ipAuthGuests.length>TY?A.jsx(AY,{ipAuthGuests:e.ipAuthGuests,onClickGuest:e.onClickGuest}):A.jsx(hY,{ipAuthGuests:e.ipAuthGuests,onClickGuest:e.onClickGuest})]})}function OY(e){const{onClickIpAuthGuest:r,onClickBack:t}=Z_(e);return A.jsxs(A.Fragment,{children:[A.jsx(yt,{theme:e.theme,title:"Sign in as guest",onClickBack:t}),A.jsx(RY,{ipAuthGuests:e.ipAuthGuests,onClickGuest:r})]})}const kY="_revealPassword_11wqf_1",PY="_passwordInput_11wqf_10",NY="_passwordContainer_11wqf_17",Fy={revealPassword:kY,passwordInput:PY,passwordContainer:NY};function jY(e){return e||"Password"}function Vs(e){const[r,t]=Nr.useState("password"),a=Nr.useRef(null);function o(u){var v;u.preventDefault(),t(r==="password"?"text":"password"),(v=a.current)==null||v.focus()}let s=`position-relative form-control form-control-lg ${Fy.passwordContainer}`;return e.hasError&&(s+=` ${e.hasError?"is-invalid":""}`),e.className&&(s+=` ${e.className}`),A.jsxs("div",{children:[!e.hideLabel&&A.jsx("label",{htmlFor:e.id||e.name,children:jY(e.label)}),A.jsxs("div",{className:s,children:[A.jsx("input",{className:`${Fy.passwordInput} border-0 w-100 h-100 outline-none rounded py-0 ps-0`,type:r,"aria-label":e.placeholder,placeholder:e.placeholder,autoFocus:e.autoFocus,value:e.value,onChange:e.onChange,name:e.name,autoComplete:e.autoComplete,ref:a,id:e.id||e.name}),A.jsx(Wo,{className:`svg-container cursor-pointer ${Fy.revealPassword}`,onClick:o,children:r==="password"?A.jsx(gK,{}):A.jsx(pK,{})})]})]})}function qY(e){const{returnUrl:r,navigate:t}=e,[a,o]=Nr.useState(e.username),[s,u]=Nr.useState(""),[v,d]=Nr.useState(!1),[h,f]=Nr.useState(""),c=!!e.username;function _(m){o(m.target.value.trim()),f("")}function E(m){u(m.target.value),f("")}function S(m){if(e.backStep){t({step:e.backStep,backStep:null});return}t({step:"username",clearUsername:m})}function w(){t({step:"forgot-password",backStep:"password",username:a})}function T(m){if(m.preventDefault(),!a){f("Please provide a username");return}if(!s){f("Please provide a password");return}if(s.trim().length!==s.length){f("Your password cannot start or end with a blank space");return}d(!0),dt.post("/ajax/login/password",{username:a,password:s,returnUrl:r}).then(p=>Pt(p,e)).catch(p=>{d(!1),f(p.userMessage||"Something went wrong")})}const b=za.getDefinition(e==null?void 0:e.theme),I=b!=null&&b.productName?`Sign in to ${b.productName}`:"Sign in";return A.jsxs("form",{onSubmit:T,children:[A.jsx(yt,{theme:e.theme,onClickBack:()=>S(!1),title:I}),A.jsx("div",{className:"mb-3 position-relative",children:A.jsx(xl,{name:"username",type:"username",isError:!!h,value:a,disabled:c,onChange:_,hideCloseButton:!c,onClickClose:()=>S(!0)})}),A.jsxs("div",{className:"mb-3",children:[A.jsx(Vs,{placeholder:"Enter your password",autoFocus:c,value:s,onChange:E,name:"current-password",autoComplete:"current-password",hasError:!!h,"aria-invalid":!!h,"aria-errormessage":"current-passwordError"}),!!h&&A.jsx(Ht,{name:"current-passwordError",children:h})]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:v,children:"Sign in"}),A.jsx("div",{className:"text-start",children:A.jsx("button",{className:"btn btn-link text-info ps-0",onClick:w,children:"Forgot your password?"})})]})}const UN=["38A2E8","7A76E8","40BCC3","F7847B"];function DY(e){const{navigate:r,idps:t,showPasswordLogin:a}=e,[o,s]=Nr.useState(null);function u(c){window.location.href=c}function v(){r({step:"username"})}function d(){r({step:"password",backStep:"select-idp"})}function h(c){u(c.url)}function f(){o&&u(o.url)}return A.jsxs("div",{children:[A.jsx(yt,{onClickBack:v,theme:e.theme,title:"To sign in, please select an option from the list below"}),t.length>4?A.jsxs(A.Fragment,{children:[A.jsx(Il,{id:"idp",item:o,items:t,onSelect:s,getName:c=>c.name,clearData:()=>s(null),placeholder:"Select a school",size:"lg"}),A.jsx("button",{className:"btn btn-lg btn-dark w-100",disabled:!o,onClick:f,children:"Continue"})]}):t.map((c,_)=>A.jsx(cU,{onClick:h,idp:{...c,visible:!0},backgroundColour:UN[_%UN.length],isGlobalIdp:!c.id.startsWith("online:")},_)),a&&A.jsx("button",{className:"btn btn-link text-info w-100 mt-2 no-sso-link",onClick:d,children:"My school doesn't use Single Sign On"})]})}function fU(e,r){je.useEffect(()=>{if(e)return r.dispatch({type:"setBanner",data:{bannerType:e}}),()=>{r.dispatch({type:"setBanner",data:{bannerType:null}})}},[e])}const LY=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,MY=/^[\s\w,.?&;:@+'"!-=\\\/]+$/im,FN=250,gi={isEmail(e){return LY.test(e)},isValidLength(e){if(!e)return!1;const r=e.trim();return r.length>0&&r.length<=FN},exceedsMaxLength(e){return e?e.trim().length>FN:!1},containsValidText(e){return e?MY.test(e):!0},isPasswordValid(e,r,t){return e.length?t&&!r.length?[!1,"Password confirmation is required."]:t&&e!==r?[!1,"Password confirmation does not match."]:e.trim().length!==e.length?[!1,"Your password cannot start or end with a blank space"]:[!0]:[!1,"Password is required."]}};function UY(e){const{navigate:r,backStep:t}=e,[a,o]=je.useState(e.email||""),[s,u]=je.useState(!1),[v,d]=je.useState("");fU("email-in-use",e);const{productName:h}=za.getDefinition(e.theme);function f(){r({step:t||"username"})}function c(){r({step:"verify-email-skip-reason",backStep:"verify-email"})}function _(S){o(S.target.value)}function E(S){if(S.preventDefault(),!a){d("Please provide an email");return}if(!gi.isEmail(a)){d("The email address provided is invalid");return}u(!0),dt.post("/ajax/login/send-verify-email-code",{email:a}).then(w=>Pt(w,e,{email:a})).catch(w=>{u(!1),d(w.userMessage||"Something went wrong")})}return A.jsx(A.Fragment,{children:A.jsxs("form",{onSubmit:E,children:[A.jsx(yt,{onClickBack:f,theme:e.theme,title:"Verify your email",className:{description:"mt-0 mb-0"},children:A.jsxs("span",{className:"d-inline-block",children:[`Have peace of mind that your account is secure and you’re receiving the best experience out of ${h}.`," ",A.jsx("a",{className:"text-info cursor-pointer",target:"_blank",href:bo.verifyEmail,children:"Learn more."})]})}),A.jsx(xl,{isError:!!v,type:"email",value:a,onChange:_,name:"email",ariaInvalid:!!v,ariaErrorMessage:"emailError"}),!!v&&A.jsx(Ht,{name:"email",children:v}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100 mt-4",type:"submit",showSpinner:s,children:"Verify"}),e.canSkip&&A.jsx("button",{className:"btn btn-link text-info mt-2 ps-0",onClick:c,children:"Skip for now"})]})})}const FY="_input_1vtt8_1",BY={input:FY},$Y=/^[0-9]$/,zY=/^\d+$/,BN=8;function ZY(e){const[r,t]=je.useState(""),[a,o]=je.useState(""),[s,u]=je.useState(""),[v,d]=je.useState(""),[h,f]=je.useState(""),[c,_]=je.useState(""),E=je.useRef(null),S=je.useRef(null),w=je.useRef(null),T=je.useRef(null),b=je.useRef(null),I=je.useRef(null);je.useEffect(()=>{const x=(r||"X")+(a||"X")+(s||"X")+(v||"X")+(h||"X")+(c||"X"),R=x.length===6&&x.indexOf("X")===-1;e.onChange(x,R)},[r,a,s,v,h,c]);const m={"verify-1":{getNext:()=>m["verify-2"],getPrevious:()=>null,value:r,setState:t,focus:()=>E.current.focus()},"verify-2":{getNext:()=>m["verify-3"],getPrevious:()=>m["verify-1"],value:a,setState:o,focus:()=>S.current.focus()},"verify-3":{getNext:()=>m["verify-4"],getPrevious:()=>m["verify-2"],value:s,setState:u,focus:()=>w.current.focus()},"verify-4":{getNext:()=>m["verify-5"],getPrevious:()=>m["verify-3"],value:v,setState:d,focus:()=>T.current.focus()},"verify-5":{getNext:()=>m["verify-6"],getPrevious:()=>m["verify-4"],value:h,setState:f,focus:()=>b.current.focus()},"verify-6":{getNext:()=>null,getPrevious:()=>m["verify-5"],value:c,setState:_,focus:()=>I.current.focus()}};function p(x,R){var j,k;if(!$Y.test(x.key)&&x.keyCode!==BN)return;const O=m[R];if(x.keyCode===BN){O.setState(""),(j=O.getPrevious())==null||j.focus();return}if(x.currentTarget.selectionStart>0){const N=O.getNext();if(!N)return;N.setState(x.key),N.getNext()?N.getNext().focus():N.focus();return}O.setState(x.key),(k=O.getNext())==null||k.focus()}function y(x,R){x.preventDefault();const O=x.clipboardData.getData("text").trim();if(!zY.test(O))return;const j=O.split("");if(j.length===6){let D=m["verify-1"];for(const U of j)D.setState(U),D=D.getNext(),D==null||D.focus();return}let N=m[R];N.value&&N.getNext()&&(N=N.getNext());do N.focus(),N.setState(j.shift()),N=N.getNext();while(j.length&&N)}const g={className:`form-control mx-1 text-center form-control-lg p-3 fs-4 ${BY.input} ${e.hasError?"is-invalid":""}`,autoCorrect:"off",inputMode:"numeric",pattern:"[0-9]*",autoCapitalize:"off",autoComplete:"off","aria-invalid":!!e.hasError};return A.jsxs("fieldset",{className:"d-flex justify-content-between mx-n1","aria-describedby":"verificationCodeError",children:[A.jsx("input",{onPaste:x=>y(x,"verify-1"),onKeyDown:x=>p(x,"verify-1"),value:r,ref:E,onChange:()=>{},autoComplete:"off",...g}),A.jsx("input",{onPaste:x=>y(x,"verify-2"),onKeyDown:x=>p(x,"verify-2"),value:a,ref:S,onChange:()=>{},...g}),A.jsx("input",{onPaste:x=>y(x,"verify-3"),onKeyDown:x=>p(x,"verify-3"),value:s,ref:w,onChange:()=>{},...g}),A.jsx("input",{onPaste:x=>y(x,"verify-4"),onKeyDown:x=>p(x,"verify-4"),value:v,ref:T,onChange:()=>{},...g}),A.jsx("input",{onPaste:x=>y(x,"verify-5"),onKeyDown:x=>p(x,"verify-5"),value:h,ref:b,onChange:()=>{},...g}),A.jsx("input",{onPaste:x=>y(x,"verify-6"),onKeyDown:x=>p(x,"verify-6"),value:c,ref:I,onChange:()=>{},...g})]})}function Bf(e){const{theme:r,title:t,description:a,onBack:o,onResend:s,onSkip:u,submit:v,canSkip:d}=e,[h,f]=je.useState(""),[c,_]=je.useState(!1),[E,S]=je.useState(""),[w,T]=je.useState(!1);je.useEffect(()=>{w&&I()},[w]);function b(m,p){f(""),S(m),T(p)}function I(m){if(m==null||m.preventDefault(),!w){f("Incomplete code");return}_(!0),v(E).catch(p=>{_(!1),f(p.userMessage||"Something went wrong")})}return A.jsxs("form",{onSubmit:I,children:[A.jsx(yt,{onClickBack:o,theme:r,title:t,children:a}),A.jsxs("div",{className:"mb-3",children:[A.jsx(ZY,{onChange:b,hasError:!!h}),!!h&&A.jsx(Ht,{name:"verificationCode",children:h})]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:c,disabled:!w,children:"Continue"}),A.jsxs("div",{className:"d-flex justify-content-between mt-3",children:[u&&d&&A.jsx("button",{className:"btn btn-link text-info p-0 flex-shrink-0",onClick:u,children:"Skip for now"}),s&&A.jsx("button",{className:"btn btn-link text-info p-0 flex-shrink-0",onClick:s,children:"Resend code"})]})]})}function HY(e){const{navigate:r,email:t,theme:a}=e;fU("check-email",e);function o(){r({step:"verify-email"})}function s(){r({step:"verify-email-skip-reason",backStep:"verify-email-check-code"})}function u(){r({step:"verify-email",email:t})}function v(d){return dt.post("/ajax/login/verify-email",{code:d,email:t}).then(h=>Pt(h,e,{code:d}))}return A.jsx(Bf,{navigate:r,theme:a,title:"Enter code",description:A.jsxs(A.Fragment,{children:["Please enter the ",A.jsx("strong",{children:"6 digit"})," code we've sent to ",A.jsx("strong",{children:t})]}),onBack:o,onResend:u,submit:v,onSkip:s,...e})}function dU(){return A.jsx("img",{className:"img-fluid mx-auto d-block mt-4",alt:"Success",src:"/images/success-tick-v2.png",style:{maxWidth:"304px"}})}function VY(e){const{returnUrl:r}=e;return A.jsxs("div",{children:[A.jsx(yt,{theme:e.theme,title:"Your email has been verified",className:{title:"text-center"}}),A.jsx("div",{className:"my-5",children:A.jsx(dU,{})}),r&&A.jsx("a",{role:"button",href:r,className:"btn btn-dark btn-lg w-100",children:"Continue"})]})}function GY(e){const{navigate:r,backStep:t}=e,[a,o]=je.useState(e.email||""),[s,u]=je.useState(!1),[v,d]=je.useState("");function h(_){o(_.target.value.trim())}function f(_){if(_.preventDefault(),!a){d("Please provide an email address");return}if(!gi.isEmail(a)){d("The email address provided is invalid");return}u(!0),dt.post("/ajax/login/send-recovery-code",{email:a}).then(E=>Pt(E,e,{email:a})).catch(E=>{u(!1),d(E.userMessage||"Something went wrong")})}function c(){r({step:t})}return A.jsxs("form",{onSubmit:f,children:[A.jsx(yt,{theme:e.theme,onClickBack:t&&c,title:"Forgot your password?",children:"Enter your email below to receive password reset instructions"}),A.jsxs("div",{className:"mb-3",children:[A.jsx(xl,{name:"email",value:a,type:"email",onChange:h,isError:!!v,"aria-invalid":!!v,"aria-errormessage":"emailError"}),!!v&&A.jsx(Ht,{name:"email",children:v})]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:s,children:"Send"}),A.jsx("p",{className:"text-start mt-3",children:"Single Sign On customers should contact their network administrator to reset their password."})]})}function WY(e){const{navigate:r,email:t,theme:a}=e;function o(){r({step:"forgot-password"})}function s(){r({step:"forgot-password",email:t})}function u(v){return dt.post("/ajax/login/check-recovery-code",{code:v,email:t}).then(d=>Pt(d,e,{code:v}))}return A.jsx(Bf,{navigate:r,theme:a,title:"Enter code",description:A.jsxs(A.Fragment,{children:["If we can reset your password, we've sent a ",A.jsx("strong",{children:"6 digit"})," code to the email address provided"]}),submit:u,onBack:o,onResend:s,...e})}function KY(e){const{error:r,spinner:t,onClickContinue:a}=e;return A.jsxs("div",{children:[A.jsx(yt,{theme:e.theme}),A.jsx(dU,{}),A.jsx("p",{className:"text-center mb-4 mt-2",children:"Your password has been updated"}),r&&A.jsx("p",{className:"text-danger text-center mb-4 mt-2",children:r}),A.jsx(gn,{className:"btn btn-lg w-100 btn-dark",showSpinner:t,onClick:a,children:"Continue"})]})}function hU(e){const{submit:r}=e,[t,a]=je.useState(""),[o,s]=je.useState(""),[u,v]=je.useState(""),[d,h]=je.useState(!1),[f,c]=je.useState(null),{productName:_}=za.getDefinition(e.theme);function E(I){a(I.target.value),v("")}function S(I){s(I.target.value),v("")}function w(){const[I,m]=gi.isPasswordValid(t,o,!0);return m&&v(m),I}function T(I){I.preventDefault(),w()&&(h(!0),r(o).then(m=>{h(!1),c(m)}).catch(m=>{h(!1),v(m.userMessage||"Something went wrong")}))}function b(){try{h(!0),Pt(f,e)}catch(I){h(!1),v(I.userMessage||"Something went wrong")}}return f?A.jsx(KY,{error:u,spinner:d,onClickContinue:b,theme:e.theme}):A.jsxs("form",{onSubmit:T,children:[A.jsxs(yt,{onClickBack:e.onClickBack,theme:e.theme,title:e.heading,children:["Create a new password to secure your ",A.jsx("strong",{children:_})," account"]}),A.jsxs("div",{className:"mb-4",children:[A.jsx(Vs,{className:"mb-3",placeholder:"Enter your new password",autoFocus:!0,value:t,onChange:E,name:"new-password",autoComplete:"new-password",hasError:!!u,"aria-invalid":!!u,"aria-errormessage":"new-passwordError"}),A.jsx(Vs,{id:"confirm-new-password",label:"Confirm Password",placeholder:"Enter your password confirmation",value:o,onChange:S,name:"new-password",autoComplete:"new-password",hasError:!!u,"aria-invalid":!!u,"aria-errormessage":"new-passwordError"}),!!u&&A.jsx(Ht,{name:"new-password",children:u})]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:d,children:"Update password"})]})}function YY(e){const{email:r,code:t,navigate:a}=e;function o(u){return dt.post("/ajax/login/reset-password",{email:r,code:t,newPassword:u})}function s(){a({step:"forgot-password",backStep:"username"})}return A.jsx(hU,{heading:"Reset password",submit:o,onClickBack:s,...e})}function JY(e){function r(t){return dt.post("/ajax/login/change-password",{newPassword:t})}return A.jsx(hU,{heading:"Change password",submit:r,...e})}function XY(e){const{navigate:r,backStep:t}=e,[a]=je.useState(e.userId||""),[o,s]=je.useState(e.username||""),[u,v]=je.useState(!1),[d,h]=je.useState("");function f(E){s(E.target.value.trim())}function c(E){if(E.preventDefault(),!o){h("Please provide an email or username");return}v(!0),dt.post("/ajax/login/send-self-activation-code",{userId:a}).then(S=>Pt(S,e,{userId:a,username:o})).catch(S=>{v(!1),h(S.userMessage||"Something went wrong")})}function _(){r({step:t})}return A.jsxs("form",{onSubmit:c,children:[A.jsx(yt,{theme:e.theme,onClickBack:t&&_,title:"Verify your email",children:"We will send you a verification code to your email to activate your account."}),A.jsxs("div",{className:"mb-3",children:[A.jsx(xl,{name:"email",value:o,type:"username",disabled:!0,onChange:f,isError:!!d,"aria-invalid":!!d,"aria-errormessage":"emailError"}),!!d&&A.jsx(Ht,{name:"email",children:d})]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:u,children:"Send verification code"}),A.jsx("p",{className:"text-start mt-3",children:"Single Sign On customers should contact their network administrator to activate their account."})]})}function QY(e){const{navigate:r,userId:t,username:a,theme:o}=e;function s(){r({step:"self-activation"})}function u(){r({step:"self-activation",userId:t})}function v(d){return dt.post("/ajax/login/check-self-activation-code",{code:d,userId:t}).then(h=>Pt(h,e,{code:d}))}return A.jsx(Bf,{navigate:r,theme:o,title:"Enter code",description:A.jsxs(A.Fragment,{children:["Please enter the ",A.jsx("strong",{children:"6 digit"})," code we've sent to ",A.jsx("strong",{children:a})]}),submit:v,onBack:s,onResend:u,...e})}const eJ="_badge_1l0uk_1",rJ={badge:eJ};function K_(e){return A.jsx("span",{className:`rounded-pill d-inline-block mb-1 badge-white border border-dark rounded-pill ${rJ.badge}`,children:e.children})}function tJ(e){const{navigate:r}=e;function t(){r({step:e.backStep})}return A.jsxs("div",{children:[A.jsx(yt,{theme:e.theme,onClickBack:e.backStep?t:null,className:{description:"text-center"},children:!!e.email&&A.jsx(K_,{children:e.email})}),A.jsx("span",{className:"h4 mb-3 d-block text-center",children:"Contact Support"}),A.jsxs("p",{className:"text-center",children:["Please get in touch with our ",A.jsx("strong",{children:"Product Support Team"})," by emailing ",A.jsx("a",{className:"text-info",href:"mailto:support@clickvieweducation.com",children:"support@clickvieweducation.com"})," for further assistance."]})]})}function nJ(e){const r=aU(e.errorCode);return A.jsxs("div",{className:"text-center",children:[A.jsx(yt,{theme:e.theme}),A.jsx("img",{className:"img-fluid mb-4",alt:"error",src:`/images/errors/${r.errorImage||"default-v2.png"}`}),A.jsxs("div",{className:"d-flex flex-column gap-3",children:[A.jsx("h1",{className:"h3 mb-0",children:r.preferServerError?e.message:r.message}),!!r.additionalInformation&&A.jsx("p",{className:"mb-0",children:r.additionalInformation}),!!r.moreInfoUrl&&A.jsx("p",{className:"mb-0",children:A.jsx("a",{href:r.moreInfoUrl,className:"text-info",children:"Learn more"})}),A.jsx(aJ,{errorCode:e.errorCode,traceId:e.traceId})]})]})}function aJ(e){return A.jsxs("div",{className:"text-secondary small w-100",children:[A.jsxs("p",{className:"m-0",children:["Error Code: ",e.errorCode]}),A.jsxs("p",{className:"m-0",children:["RequestId: ",e.traceId]})]})}function iJ(e){const{token:r,email:t,userId:a,navigate:o}=e,[s,u]=je.useState(!1);function v(){u(!0),dt.post("/ajax/verify-email",{token:r,email:t,userId:a}).then(d=>Pt(d,e)).catch(()=>{o({step:"error",errorCode:"invalid-token"})})}return A.jsxs("div",{children:[A.jsxs(yt,{theme:e.theme,title:"Before you proceed...",children:["Your email address ",A.jsx("strong",{children:t})," is already in use with another account. By continuing you will remove your email from the other account."]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"button",showSpinner:s,onClick:v,children:"Continue anyway"})]})}function oJ(e){const{email:r,code:t,navigate:a}=e,[o,s]=je.useState(!1);function u(){a({step:"verify-email",email:r})}function v(){s(!0),dt.post("/ajax/login/verify-email",{email:r,code:t,acknowledgeEmailInUse:!0}).then(d=>Pt(d,e)).catch(()=>{a({step:"error",errorCode:"invalid-token"})})}return A.jsxs("div",{children:[A.jsxs(yt,{onClickBack:u,theme:e.theme,title:"Before you proceed...",children:["Your email address ",A.jsx("strong",{children:r})," is already in use with another account. By continuing you will remove your email from the other account."]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"button",showSpinner:o,onClick:v,children:"Continue anyway"})]})}var vU=(e=>(e.NotNow="not-now",e.NoEmail="no-email",e.EmailNotReceived="email-not-received",e.Other="other",e))(vU||{});function sJ(e){const{returnUrl:r,navigate:t,backStep:a}=e,[o,s]=je.useState(),[u,v]=je.useState(),[d,h]=je.useState(!1),[f,c]=je.useState(""),{productName:_}=za.getDefinition(e.theme);function E(){return o==="other"?gi.containsValidText(u)&&gi.isValidLength(u):Object.values(vU).includes(o)}function S(){t({step:a||"verify-email"})}function w(I){s(I)}function T(I){const m=I.target.value;let p="";gi.containsValidText(m)?gi.exceedsMaxLength(m)&&(p="Your reason is too long"):p="Your reason contains an invalid character or symbol",c(p),v(m)}function b(I){if(I.preventDefault(),!E())return;h(!0);const m=o==="other"?`other:${u}`:o;dt.post("/ajax/login/skip-verify-email",{reason:m,returnUrl:r}).then(p=>Pt(p,e)).catch(p=>{h(!1),c(p.userMessage||"Something went wrong")})}return A.jsxs("form",{onSubmit:b,children:[A.jsx(yt,{onClickBack:S,theme:e.theme,title:"Let us know why you aren't able to verify",className:{description:"mt-0 mb-0"},children:"Verifying will increase the security of your account and improve features on ClickView."}),A.jsxs("div",{className:"mb-4",children:[A.jsxs("div",{className:"form-check my-3",children:[A.jsx("input",{className:"form-check-input",type:"radio",id:"not-now",name:"not-now",checked:o==="not-now",onChange:()=>w("not-now")}),A.jsx("label",{className:"form-check-label",htmlFor:"not-now",children:"Not the right time"})]}),A.jsxs("div",{className:"form-check my-3",children:[A.jsx("input",{className:"form-check-input",type:"radio",id:"no-email",name:"no-email",checked:o==="no-email",onChange:()=>w("no-email")}),A.jsx("label",{className:"form-check-label",htmlFor:"no-email",children:"I don't have an email address"})]}),A.jsxs("div",{className:"form-check my-3",children:[A.jsx("input",{className:"form-check-input",type:"radio",id:"email-not-received",name:"email-not-received",checked:o==="email-not-received",onChange:()=>w("email-not-received")}),A.jsx("label",{className:"form-check-label",htmlFor:"email-not-received",children:"I didn't receive a verification email"})]}),A.jsxs("div",{className:"form-check mt-3 mb-2",children:[A.jsx("input",{className:"form-check-input",type:"radio",id:"other",name:"other",checked:o==="other",onChange:()=>w("other")}),A.jsx("label",{className:"form-check-label",htmlFor:"other",children:"Other reasons (please specify)"})]}),o==="other"&&A.jsxs(A.Fragment,{children:[A.jsx("input",{className:`form-control form-control-lg ${f?"is-invalid":""}`,type:"text",placeholder:"Enter your reason",name:"reason",onChange:T,autoComplete:"off","aria-invalid":!!f,"aria-errormessage":"reasonError"}),!!f&&A.jsx(Ht,{name:"reason",children:f})]})]}),A.jsxs(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",disabled:!E(),showSpinner:d,children:["Continue to ",_]})]})}function uJ(e){const{logoutId:r}=e,[t,a]=Nr.useState(!1),{productName:o}=za.getDefinition(e.theme);function s(){a(!0)}return A.jsxs("form",{onSubmit:s,action:"/logout",method:"post",children:[A.jsxs(yt,{theme:e.theme,title:"Logout",children:["Would you like to logout of ",o,"?"]}),A.jsx("input",{type:"hidden",name:"logoutId",value:r||""}),A.jsx("input",{type:"hidden",name:"__RequestVerificationToken",value:dt.getXsrfToken()}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:t,children:"Yes"})]})}function lJ(e){const{postLogoutRedirectUri:r,clientName:t,signOutIframeUrl:a,automaticRedirectAfterSignOut:o}=e;return Nr.useEffect(()=>{!o||!r||(window.location.href=r)},[o,r]),A.jsxs("div",{children:[A.jsx(yt,{theme:e.theme,title:"Logged out",children:"You are now logged out."}),r&&A.jsxs("p",{children:["Click ",A.jsx("a",{href:r,className:"text-info",children:"here"})," to return to the ",t," application."]}),a&&A.jsx("iframe",{width:0,height:0,frameBorder:0,src:a})]})}function cJ(e){const{navigate:r,organisation:t,orgCustomers:a,backStep:o}=e,[s,u]=je.useState(null),[v,d]=je.useState(null);async function h(w){try{await dt.post("/ajax/external/join-organisation-customer",{customerId:w});const T=await dt.post("/ajax/login/select-customer",{customerId:w});Pt(T,e)}catch(T){d(T.userMessage||"Something went wrong. Please try again.")}}function f(w){h(w.id)}function c(){r({step:"contact-support",backStep:"organisation-select-customer"})}function _(){s&&h(s.id)}function E(){r({step:"select-customer",backStep:"organisation-select-customer"})}function S(){r({step:o,backStep:null})}return A.jsxs("div",{children:[A.jsx(yt,{theme:e.theme,onClickBack:o&&S}),A.jsxs("span",{className:"h4 mb-3 d-block text-left",children:["To sign in, select a school from ",t.name]}),!!e.email&&A.jsx("p",{className:"text-left",children:A.jsx(K_,{children:e.email})}),!!(a!=null&&a.length)&&A.jsx("div",{className:"mb-4",children:a.length>10?A.jsxs(A.Fragment,{children:[A.jsx("p",{className:"font-weight-600 mb-1",children:"Schools"}),A.jsx("div",{className:"mb-3",children:A.jsx(Il,{id:"school",item:s,items:a,onSelect:u,getName:w=>w.name,clearData:()=>u(null),placeholder:"Select a school",size:"lg",cantFindText:"My school is not listed",onCantFind:c})}),A.jsx("button",{className:"btn btn-lg btn-dark w-100 mb-4",disabled:!s,onClick:_,children:"Continue"})]}):A.jsxs("div",{children:[a.map((w,T)=>A.jsx(G_,{onClick:()=>f(w),text:w.name,icon:Zs.buildAvatarUrl(w.logoUrl,{size:"small"})||al,className:"mb-3",iconColor:"dark"},T)),A.jsx("button",{className:"text-info",onClick:c,children:"My school is not listed"})]})}),e.hasExistingCustomers&&!o&&A.jsxs("button",{className:"h5 d-flex w-100",onClick:E,children:["View my existing schools",A.jsx("span",{className:"ms-auto",children:A.jsx(V_,{})})]}),v&&A.jsx("div",{className:"text-danger text-center",children:v})]})}function $N(e){if(!e)return{firstName:"",surname:"",source:""};const r=e.split(" ").filter(t=>t.length);return{firstName:r.shift(),surname:r.join(" "),source:e}}function pU(e){const{value:r,onChange:t,error:a,autoFocus:o}=e;return je.useEffect(()=>{e.onChange($N(e.value))},[]),A.jsxs("div",{className:"mb-3",children:[A.jsx("label",{htmlFor:"name",children:"Full name"}),A.jsx("input",{className:`form-control form-control-lg ${!!a&&"is-invalid"}`,type:"text",name:"name",id:"name",value:r,placeholder:"Enter your full name",autoFocus:o,autoComplete:"name",onChange:s=>t($N(s.target.value)),"aria-errormessage":"nameError"}),!!a&&A.jsx(Ht,{name:"name",children:a})]})}var Ze=(e=>(e.AU="au",e.NZ="nz",e.UK="uk",e.US="us",e.CA="ca",e))(Ze||{});const fJ=["Teacher","Librarian / Teacher Librarian","Curriculum Coordinator","Digital Technology Coordinator","SSO / SLSO","IT","Head of Department","Head of Subject","Assistant Principal","Deputy Principal","Principal","Business Manager"],dJ=["Teacher","Librarian / Teacher Librarian","IT/LRC","e-Learning/ICT Coordinator","Head of Key Stage","Head of Department","Subject Lead","Assistant Head Teacher","Deputy Head Teacher","Head Teacher"],gU=["Teacher","Librarian / Teacher Librarian","Head of Department","Instructional Technology Specialist","Curriculum Coordinator","School Leadership","District Leadership","Academic Coach","Principal","IT / IT Specialist"],hJ=["Teacher","Librarian / Teacher Librarian","Curriculum Leader","e-Learning Coordinator","IT","Head of Department","Head of Faculty","Learning Support","Learning Assistant","Deputy Principal","Assistant Principal","Principal"],vJ=["Teacher","Librarian / Teacher Librarian","Educational Assistant (EA)","Learning Support Teacher / Resource Teacher","Department Head / Manager","Curriculum Coordinator / Consultant","School Counsellor / Guidance Counsellor","Vice-Principal","Principal","Superintendent","Director of Education"],mU=["Professor","Lecturer","Course Coordinator / Administrator","Digital Learning Manager","Tutor","Teaching Fellow","Librarian","Learning Technologist","Teaching Assistant","Researcher","IT"],pJ=["Professor","Lecturer","Course Coordinator / Administrator","Digital Learning Manager","Tutor","Teaching Fellow","Librarian","Learning Technologist","Teacher","Teaching Assistant","Researcher","IT"],gJ={[Ze.AU]:fJ,[Ze.NZ]:hJ,[Ze.UK]:dJ,[Ze.US]:gU,[Ze.CA]:vJ},mJ={[Ze.AU]:mU,[Ze.UK]:pJ};function yU(e){var t;const r=(t=e.countryCode)==null?void 0:t.toLowerCase();return e.isTertiary?mJ[r]||mU:gJ[r]||gU}function bU(e){return(e==null?void 0:e.toLowerCase().includes("student"))||(e==null?void 0:e.toLowerCase().includes("parent"))}const By="OTHER";function _U(e){const{error:r,onChange:t,countryCode:a,isTertiary:o,autoFocus:s}=e,[u,v]=je.useState(""),[d,h]=je.useState(""),f=yU({countryCode:a,isTertiary:o});function c(S){v(S.target.value),h(""),t(S.target.value===By?"":S.target.value)}function _(S){h(S.target.value),t(S.target.value)}const E=u===By;return A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:"mb-3",children:[A.jsx("label",{htmlFor:"jobTitle",children:"Job Title"}),A.jsxs("select",{className:`form-select form-select-lg ${u.length?"text-dark":"text-secondary"} ${!!r&&"is-invalid"}`,value:u,placeholder:"Role",onChange:c,autoFocus:s,name:"jobTitle",id:"jobTitle","aria-invalid":!!r&&!E,"aria-errormessage":r&&!E?"jobTitleError":void 0,children:[A.jsx("option",{value:"",disabled:!0,className:"text-secondary",children:"What do you do?"}),f.map((S,w)=>A.jsx("option",{value:S,className:"text-dark",children:S},w)),A.jsx("option",{value:By,className:"text-dark",children:"Other"})]}),!!r&&!E&&A.jsx(Ht,{name:"jobTitle",children:r})]}),E&&A.jsxs("div",{className:"mb-3",children:[A.jsx("input",{className:`form-control form-control-lg ${!!r&&"is-invalid"}`,type:"text",value:d,placeholder:"Enter your role",autoFocus:!0,onChange:_,name:"role","aria-invalid":!!r,"aria-errormessage":"roleError"}),!!r&&A.jsx(Ht,{name:"role",children:r})]})]})}function yJ(e){const{allowNameChange:r,allowJobTitleChange:t,errors:a,spinner:o,countryCode:s,setErrors:u}=e,[v,d]=Nr.useState(),[h,f]=Nr.useState(""),[c,_]=Nr.useState(""),[E,S]=Nr.useState("");function w(g){_(g.target.value),u({...a,password:""})}function T(g){S(g.target.value),u({...a,password:""})}function b(g){d(g),u({...a,fullName:""})}function I(g){f(g),u({...a,jobTitle:""})}function m(g){g.preventDefault();const x={password:c,confirmPassword:E};r&&(x.firstName=v.firstName,x.surname=v.surname),t&&(x.jobTitle=h),e.onSubmit(x)}function p(){return r?"fullName":t?"jobTitle":"password"}const y=p();return A.jsxs("form",{onSubmit:m,children:[A.jsxs("div",{className:"mb-3",children:[r&&A.jsx(pU,{value:(v==null?void 0:v.source)||"",onChange:b,error:a.fullName,autoFocus:y==="fullName"}),t&&A.jsx(_U,{error:a.jobTitle,onChange:I,countryCode:s,autoFocus:y==="jobTitle",isTertiary:e.isTertiary}),A.jsx(Vs,{placeholder:"Enter your password",value:c,onChange:w,name:"new-password",autoComplete:"new-password",hasError:!!a.password,autoFocus:y==="password","aria-errormessage":"new-passwordError",className:Ua(e.requireConfirmPassword&&"mb-3")}),e.requireConfirmPassword&&A.jsx(Vs,{id:"confirm-new-password",label:"Confirm password",placeholder:"Enter your password confirmation",value:E,onChange:T,name:"new-password",autoComplete:"new-password",hasError:!!a.password,"aria-invalid":!!a.password,"aria-errormessage":"new-passwordError"}),!!a.password&&A.jsx(Ht,{name:"new-password",children:a.password})]}),!!a.default&&A.jsx("div",{className:"text-danger my-3",children:a.default}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:o,children:"Get Started"})]})}var $y,zN;function bJ(){if(zN)return $y;zN=1;function e(){this.__data__=[],this.size=0}return $y=e,$y}var zy,ZN;function $f(){if(ZN)return zy;ZN=1;function e(r,t){return r===t||r!==r&&t!==t}return zy=e,zy}var Zy,HN;function zf(){if(HN)return Zy;HN=1;var e=$f();function r(t,a){for(var o=t.length;o--;)if(e(t[o][0],a))return o;return-1}return Zy=r,Zy}var Hy,VN;function _J(){if(VN)return Hy;VN=1;var e=zf(),r=Array.prototype,t=r.splice;function a(o){var s=this.__data__,u=e(s,o);if(u<0)return!1;var v=s.length-1;return u==v?s.pop():t.call(s,u,1),--this.size,!0}return Hy=a,Hy}var Vy,GN;function SJ(){if(GN)return Vy;GN=1;var e=zf();function r(t){var a=this.__data__,o=e(a,t);return o<0?void 0:a[o][1]}return Vy=r,Vy}var Gy,WN;function wJ(){if(WN)return Gy;WN=1;var e=zf();function r(t){return e(this.__data__,t)>-1}return Gy=r,Gy}var Wy,KN;function EJ(){if(KN)return Wy;KN=1;var e=zf();function r(t,a){var o=this.__data__,s=e(o,t);return s<0?(++this.size,o.push([t,a])):o[s][1]=a,this}return Wy=r,Wy}var Ky,YN;function Zf(){if(YN)return Ky;YN=1;var e=bJ(),r=_J(),t=SJ(),a=wJ(),o=EJ();function s(u){var v=-1,d=u==null?0:u.length;for(this.clear();++v<d;){var h=u[v];this.set(h[0],h[1])}}return s.prototype.clear=e,s.prototype.delete=r,s.prototype.get=t,s.prototype.has=a,s.prototype.set=o,Ky=s,Ky}var Yy,JN;function CJ(){if(JN)return Yy;JN=1;var e=Zf();function r(){this.__data__=new e,this.size=0}return Yy=r,Yy}var Jy,XN;function xJ(){if(XN)return Jy;XN=1;function e(r){var t=this.__data__,a=t.delete(r);return this.size=t.size,a}return Jy=e,Jy}var Xy,QN;function IJ(){if(QN)return Xy;QN=1;function e(r){return this.__data__.get(r)}return Xy=e,Xy}var Qy,ej;function AJ(){if(ej)return Qy;ej=1;function e(r){return this.__data__.has(r)}return Qy=e,Qy}var e1,rj;function SU(){if(rj)return e1;rj=1;var e=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;return e1=e,e1}var r1,tj;function Si(){if(tj)return r1;tj=1;var e=SU(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return r1=t,r1}var t1,nj;function Hf(){if(nj)return t1;nj=1;var e=Si(),r=e.Symbol;return t1=r,t1}var n1,aj;function TJ(){if(aj)return n1;aj=1;var e=Hf(),r=Object.prototype,t=r.hasOwnProperty,a=r.toString,o=e?e.toStringTag:void 0;function s(u){var v=t.call(u,o),d=u[o];try{u[o]=void 0;var h=!0}catch{}var f=a.call(u);return h&&(v?u[o]=d:delete u[o]),f}return n1=s,n1}var a1,ij;function RJ(){if(ij)return a1;ij=1;var e=Object.prototype,r=e.toString;function t(a){return r.call(a)}return a1=t,a1}var i1,oj;function du(){if(oj)return i1;oj=1;var e=Hf(),r=TJ(),t=RJ(),a="[object Null]",o="[object Undefined]",s=e?e.toStringTag:void 0;function u(v){return v==null?v===void 0?o:a:s&&s in Object(v)?r(v):t(v)}return i1=u,i1}var o1,sj;function Eo(){if(sj)return o1;sj=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return o1=e,o1}var s1,uj;function Y_(){if(uj)return s1;uj=1;var e=du(),r=Eo(),t="[object AsyncFunction]",a="[object Function]",o="[object GeneratorFunction]",s="[object Proxy]";function u(v){if(!r(v))return!1;var d=e(v);return d==a||d==o||d==t||d==s}return s1=u,s1}var u1,lj;function OJ(){if(lj)return u1;lj=1;var e=Si(),r=e["__core-js_shared__"];return u1=r,u1}var l1,cj;function kJ(){if(cj)return l1;cj=1;var e=OJ(),r=(function(){var a=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})();function t(a){return!!r&&r in a}return l1=t,l1}var c1,fj;function wU(){if(fj)return c1;fj=1;var e=Function.prototype,r=e.toString;function t(a){if(a!=null){try{return r.call(a)}catch{}try{return a+""}catch{}}return""}return c1=t,c1}var f1,dj;function PJ(){if(dj)return f1;dj=1;var e=Y_(),r=kJ(),t=Eo(),a=wU(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,u=Function.prototype,v=Object.prototype,d=u.toString,h=v.hasOwnProperty,f=RegExp("^"+d.call(h).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c(_){if(!t(_)||r(_))return!1;var E=e(_)?f:s;return E.test(a(_))}return f1=c,f1}var d1,hj;function NJ(){if(hj)return d1;hj=1;function e(r,t){return r==null?void 0:r[t]}return d1=e,d1}var h1,vj;function ds(){if(vj)return h1;vj=1;var e=PJ(),r=NJ();function t(a,o){var s=r(a,o);return e(s)?s:void 0}return h1=t,h1}var v1,pj;function J_(){if(pj)return v1;pj=1;var e=ds(),r=Si(),t=e(r,"Map");return v1=t,v1}var p1,gj;function Vf(){if(gj)return p1;gj=1;var e=ds(),r=e(Object,"create");return p1=r,p1}var g1,mj;function jJ(){if(mj)return g1;mj=1;var e=Vf();function r(){this.__data__=e?e(null):{},this.size=0}return g1=r,g1}var m1,yj;function qJ(){if(yj)return m1;yj=1;function e(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}return m1=e,m1}var y1,bj;function DJ(){if(bj)return y1;bj=1;var e=Vf(),r="__lodash_hash_undefined__",t=Object.prototype,a=t.hasOwnProperty;function o(s){var u=this.__data__;if(e){var v=u[s];return v===r?void 0:v}return a.call(u,s)?u[s]:void 0}return y1=o,y1}var b1,_j;function LJ(){if(_j)return b1;_j=1;var e=Vf(),r=Object.prototype,t=r.hasOwnProperty;function a(o){var s=this.__data__;return e?s[o]!==void 0:t.call(s,o)}return b1=a,b1}var _1,Sj;function MJ(){if(Sj)return _1;Sj=1;var e=Vf(),r="__lodash_hash_undefined__";function t(a,o){var s=this.__data__;return this.size+=this.has(a)?0:1,s[a]=e&&o===void 0?r:o,this}return _1=t,_1}var S1,wj;function UJ(){if(wj)return S1;wj=1;var e=jJ(),r=qJ(),t=DJ(),a=LJ(),o=MJ();function s(u){var v=-1,d=u==null?0:u.length;for(this.clear();++v<d;){var h=u[v];this.set(h[0],h[1])}}return s.prototype.clear=e,s.prototype.delete=r,s.prototype.get=t,s.prototype.has=a,s.prototype.set=o,S1=s,S1}var w1,Ej;function FJ(){if(Ej)return w1;Ej=1;var e=UJ(),r=Zf(),t=J_();function a(){this.size=0,this.__data__={hash:new e,map:new(t||r),string:new e}}return w1=a,w1}var E1,Cj;function BJ(){if(Cj)return E1;Cj=1;function e(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}return E1=e,E1}var C1,xj;function Gf(){if(xj)return C1;xj=1;var e=BJ();function r(t,a){var o=t.__data__;return e(a)?o[typeof a=="string"?"string":"hash"]:o.map}return C1=r,C1}var x1,Ij;function $J(){if(Ij)return x1;Ij=1;var e=Gf();function r(t){var a=e(this,t).delete(t);return this.size-=a?1:0,a}return x1=r,x1}var I1,Aj;function zJ(){if(Aj)return I1;Aj=1;var e=Gf();function r(t){return e(this,t).get(t)}return I1=r,I1}var A1,Tj;function ZJ(){if(Tj)return A1;Tj=1;var e=Gf();function r(t){return e(this,t).has(t)}return A1=r,A1}var T1,Rj;function HJ(){if(Rj)return T1;Rj=1;var e=Gf();function r(t,a){var o=e(this,t),s=o.size;return o.set(t,a),this.size+=o.size==s?0:1,this}return T1=r,T1}var R1,Oj;function EU(){if(Oj)return R1;Oj=1;var e=FJ(),r=$J(),t=zJ(),a=ZJ(),o=HJ();function s(u){var v=-1,d=u==null?0:u.length;for(this.clear();++v<d;){var h=u[v];this.set(h[0],h[1])}}return s.prototype.clear=e,s.prototype.delete=r,s.prototype.get=t,s.prototype.has=a,s.prototype.set=o,R1=s,R1}var O1,kj;function VJ(){if(kj)return O1;kj=1;var e=Zf(),r=J_(),t=EU(),a=200;function o(s,u){var v=this.__data__;if(v instanceof e){var d=v.__data__;if(!r||d.length<a-1)return d.push([s,u]),this.size=++v.size,this;v=this.__data__=new t(d)}return v.set(s,u),this.size=v.size,this}return O1=o,O1}var k1,Pj;function CU(){if(Pj)return k1;Pj=1;var e=Zf(),r=CJ(),t=xJ(),a=IJ(),o=AJ(),s=VJ();function u(v){var d=this.__data__=new e(v);this.size=d.size}return u.prototype.clear=r,u.prototype.delete=t,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,k1=u,k1}var P1,Nj;function GJ(){if(Nj)return P1;Nj=1;function e(r,t){for(var a=-1,o=r==null?0:r.length;++a<o&&t(r[a],a,r)!==!1;);return r}return P1=e,P1}var N1,jj;function xU(){if(jj)return N1;jj=1;var e=ds(),r=(function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}})();return N1=r,N1}var j1,qj;function X_(){if(qj)return j1;qj=1;var e=xU();function r(t,a,o){a=="__proto__"&&e?e(t,a,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[a]=o}return j1=r,j1}var q1,Dj;function IU(){if(Dj)return q1;Dj=1;var e=X_(),r=$f(),t=Object.prototype,a=t.hasOwnProperty;function o(s,u,v){var d=s[u];(!(a.call(s,u)&&r(d,v))||v===void 0&&!(u in s))&&e(s,u,v)}return q1=o,q1}var D1,Lj;function Al(){if(Lj)return D1;Lj=1;var e=IU(),r=X_();function t(a,o,s,u){var v=!s;s||(s={});for(var d=-1,h=o.length;++d<h;){var f=o[d],c=u?u(s[f],a[f],f,s,a):void 0;c===void 0&&(c=a[f]),v?r(s,f,c):e(s,f,c)}return s}return D1=t,D1}var L1,Mj;function WJ(){if(Mj)return L1;Mj=1;function e(r,t){for(var a=-1,o=Array(r);++a<r;)o[a]=t(a);return o}return L1=e,L1}var M1,Uj;function Co(){if(Uj)return M1;Uj=1;function e(r){return r!=null&&typeof r=="object"}return M1=e,M1}var U1,Fj;function KJ(){if(Fj)return U1;Fj=1;var e=du(),r=Co(),t="[object Arguments]";function a(o){return r(o)&&e(o)==t}return U1=a,U1}var F1,Bj;function AU(){if(Bj)return F1;Bj=1;var e=KJ(),r=Co(),t=Object.prototype,a=t.hasOwnProperty,o=t.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(u){return r(u)&&a.call(u,"callee")&&!o.call(u,"callee")};return F1=s,F1}var B1,$j;function hs(){if($j)return B1;$j=1;var e=Array.isArray;return B1=e,B1}var el={exports:{}},$1,zj;function YJ(){if(zj)return $1;zj=1;function e(){return!1}return $1=e,$1}el.exports;var Zj;function Q_(){return Zj||(Zj=1,(function(e,r){var t=Si(),a=YJ(),o=r&&!r.nodeType&&r,s=o&&!0&&e&&!e.nodeType&&e,u=s&&s.exports===o,v=u?t.Buffer:void 0,d=v?v.isBuffer:void 0,h=d||a;e.exports=h})(el,el.exports)),el.exports}var z1,Hj;function TU(){if(Hj)return z1;Hj=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function t(a,o){var s=typeof a;return o=o??e,!!o&&(s=="number"||s!="symbol"&&r.test(a))&&a>-1&&a%1==0&&a<o}return z1=t,z1}var Z1,Vj;function RU(){if(Vj)return Z1;Vj=1;var e=9007199254740991;function r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=e}return Z1=r,Z1}var H1,Gj;function JJ(){if(Gj)return H1;Gj=1;var e=du(),r=RU(),t=Co(),a="[object Arguments]",o="[object Array]",s="[object Boolean]",u="[object Date]",v="[object Error]",d="[object Function]",h="[object Map]",f="[object Number]",c="[object Object]",_="[object RegExp]",E="[object Set]",S="[object String]",w="[object WeakMap]",T="[object ArrayBuffer]",b="[object DataView]",I="[object Float32Array]",m="[object Float64Array]",p="[object Int8Array]",y="[object Int16Array]",g="[object Int32Array]",x="[object Uint8Array]",R="[object Uint8ClampedArray]",O="[object Uint16Array]",j="[object Uint32Array]",k={};k[I]=k[m]=k[p]=k[y]=k[g]=k[x]=k[R]=k[O]=k[j]=!0,k[a]=k[o]=k[T]=k[s]=k[b]=k[u]=k[v]=k[d]=k[h]=k[f]=k[c]=k[_]=k[E]=k[S]=k[w]=!1;function N(D){return t(D)&&r(D.length)&&!!k[e(D)]}return H1=N,H1}var V1,Wj;function eS(){if(Wj)return V1;Wj=1;function e(r){return function(t){return r(t)}}return V1=e,V1}var rl={exports:{}};rl.exports;var Kj;function rS(){return Kj||(Kj=1,(function(e,r){var t=SU(),a=r&&!r.nodeType&&r,o=a&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===a,u=s&&t.process,v=(function(){try{var d=o&&o.require&&o.require("util").types;return d||u&&u.binding&&u.binding("util")}catch{}})();e.exports=v})(rl,rl.exports)),rl.exports}var G1,Yj;function OU(){if(Yj)return G1;Yj=1;var e=JJ(),r=eS(),t=rS(),a=t&&t.isTypedArray,o=a?r(a):e;return G1=o,G1}var W1,Jj;function kU(){if(Jj)return W1;Jj=1;var e=WJ(),r=AU(),t=hs(),a=Q_(),o=TU(),s=OU(),u=Object.prototype,v=u.hasOwnProperty;function d(h,f){var c=t(h),_=!c&&r(h),E=!c&&!_&&a(h),S=!c&&!_&&!E&&s(h),w=c||_||E||S,T=w?e(h.length,String):[],b=T.length;for(var I in h)(f||v.call(h,I))&&!(w&&(I=="length"||E&&(I=="offset"||I=="parent")||S&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||o(I,b)))&&T.push(I);return T}return W1=d,W1}var K1,Xj;function tS(){if(Xj)return K1;Xj=1;var e=Object.prototype;function r(t){var a=t&&t.constructor,o=typeof a=="function"&&a.prototype||e;return t===o}return K1=r,K1}var Y1,Qj;function PU(){if(Qj)return Y1;Qj=1;function e(r,t){return function(a){return r(t(a))}}return Y1=e,Y1}var J1,eq;function XJ(){if(eq)return J1;eq=1;var e=PU(),r=e(Object.keys,Object);return J1=r,J1}var X1,rq;function QJ(){if(rq)return X1;rq=1;var e=tS(),r=XJ(),t=Object.prototype,a=t.hasOwnProperty;function o(s){if(!e(s))return r(s);var u=[];for(var v in Object(s))a.call(s,v)&&v!="constructor"&&u.push(v);return u}return X1=o,X1}var Q1,tq;function Wf(){if(tq)return Q1;tq=1;var e=Y_(),r=RU();function t(a){return a!=null&&r(a.length)&&!e(a)}return Q1=t,Q1}var e0,nq;function nS(){if(nq)return e0;nq=1;var e=kU(),r=QJ(),t=Wf();function a(o){return t(o)?e(o):r(o)}return e0=a,e0}var r0,aq;function eX(){if(aq)return r0;aq=1;var e=Al(),r=nS();function t(a,o){return a&&e(o,r(o),a)}return r0=t,r0}var t0,iq;function rX(){if(iq)return t0;iq=1;function e(r){var t=[];if(r!=null)for(var a in Object(r))t.push(a);return t}return t0=e,t0}var n0,oq;function tX(){if(oq)return n0;oq=1;var e=Eo(),r=tS(),t=rX(),a=Object.prototype,o=a.hasOwnProperty;function s(u){if(!e(u))return t(u);var v=r(u),d=[];for(var h in u)h=="constructor"&&(v||!o.call(u,h))||d.push(h);return d}return n0=s,n0}var a0,sq;function Tl(){if(sq)return a0;sq=1;var e=kU(),r=tX(),t=Wf();function a(o){return t(o)?e(o,!0):r(o)}return a0=a,a0}var i0,uq;function nX(){if(uq)return i0;uq=1;var e=Al(),r=Tl();function t(a,o){return a&&e(o,r(o),a)}return i0=t,i0}var tl={exports:{}};tl.exports;var lq;function NU(){return lq||(lq=1,(function(e,r){var t=Si(),a=r&&!r.nodeType&&r,o=a&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===a,u=s?t.Buffer:void 0,v=u?u.allocUnsafe:void 0;function d(h,f){if(f)return h.slice();var c=h.length,_=v?v(c):new h.constructor(c);return h.copy(_),_}e.exports=d})(tl,tl.exports)),tl.exports}var o0,cq;function jU(){if(cq)return o0;cq=1;function e(r,t){var a=-1,o=r.length;for(t||(t=Array(o));++a<o;)t[a]=r[a];return t}return o0=e,o0}var s0,fq;function aX(){if(fq)return s0;fq=1;function e(r,t){for(var a=-1,o=r==null?0:r.length,s=0,u=[];++a<o;){var v=r[a];t(v,a,r)&&(u[s++]=v)}return u}return s0=e,s0}var u0,dq;function qU(){if(dq)return u0;dq=1;function e(){return[]}return u0=e,u0}var l0,hq;function aS(){if(hq)return l0;hq=1;var e=aX(),r=qU(),t=Object.prototype,a=t.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(u){return u==null?[]:(u=Object(u),e(o(u),function(v){return a.call(u,v)}))}:r;return l0=s,l0}var c0,vq;function iX(){if(vq)return c0;vq=1;var e=Al(),r=aS();function t(a,o){return e(a,r(a),o)}return c0=t,c0}var f0,pq;function DU(){if(pq)return f0;pq=1;function e(r,t){for(var a=-1,o=t.length,s=r.length;++a<o;)r[s+a]=t[a];return r}return f0=e,f0}var d0,gq;function iS(){if(gq)return d0;gq=1;var e=PU(),r=e(Object.getPrototypeOf,Object);return d0=r,d0}var h0,mq;function LU(){if(mq)return h0;mq=1;var e=DU(),r=iS(),t=aS(),a=qU(),o=Object.getOwnPropertySymbols,s=o?function(u){for(var v=[];u;)e(v,t(u)),u=r(u);return v}:a;return h0=s,h0}var v0,yq;function oX(){if(yq)return v0;yq=1;var e=Al(),r=LU();function t(a,o){return e(a,r(a),o)}return v0=t,v0}var p0,bq;function MU(){if(bq)return p0;bq=1;var e=DU(),r=hs();function t(a,o,s){var u=o(a);return r(a)?u:e(u,s(a))}return p0=t,p0}var g0,_q;function sX(){if(_q)return g0;_q=1;var e=MU(),r=aS(),t=nS();function a(o){return e(o,t,r)}return g0=a,g0}var m0,Sq;function uX(){if(Sq)return m0;Sq=1;var e=MU(),r=LU(),t=Tl();function a(o){return e(o,t,r)}return m0=a,m0}var y0,wq;function lX(){if(wq)return y0;wq=1;var e=ds(),r=Si(),t=e(r,"DataView");return y0=t,y0}var b0,Eq;function cX(){if(Eq)return b0;Eq=1;var e=ds(),r=Si(),t=e(r,"Promise");return b0=t,b0}var _0,Cq;function fX(){if(Cq)return _0;Cq=1;var e=ds(),r=Si(),t=e(r,"Set");return _0=t,_0}var S0,xq;function dX(){if(xq)return S0;xq=1;var e=ds(),r=Si(),t=e(r,"WeakMap");return S0=t,S0}var w0,Iq;function oS(){if(Iq)return w0;Iq=1;var e=lX(),r=J_(),t=cX(),a=fX(),o=dX(),s=du(),u=wU(),v="[object Map]",d="[object Object]",h="[object Promise]",f="[object Set]",c="[object WeakMap]",_="[object DataView]",E=u(e),S=u(r),w=u(t),T=u(a),b=u(o),I=s;return(e&&I(new e(new ArrayBuffer(1)))!=_||r&&I(new r)!=v||t&&I(t.resolve())!=h||a&&I(new a)!=f||o&&I(new o)!=c)&&(I=function(m){var p=s(m),y=p==d?m.constructor:void 0,g=y?u(y):"";if(g)switch(g){case E:return _;case S:return v;case w:return h;case T:return f;case b:return c}return p}),w0=I,w0}var E0,Aq;function hX(){if(Aq)return E0;Aq=1;var e=Object.prototype,r=e.hasOwnProperty;function t(a){var o=a.length,s=new a.constructor(o);return o&&typeof a[0]=="string"&&r.call(a,"index")&&(s.index=a.index,s.input=a.input),s}return E0=t,E0}var C0,Tq;function vX(){if(Tq)return C0;Tq=1;var e=Si(),r=e.Uint8Array;return C0=r,C0}var x0,Rq;function sS(){if(Rq)return x0;Rq=1;var e=vX();function r(t){var a=new t.constructor(t.byteLength);return new e(a).set(new e(t)),a}return x0=r,x0}var I0,Oq;function pX(){if(Oq)return I0;Oq=1;var e=sS();function r(t,a){var o=a?e(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)}return I0=r,I0}var A0,kq;function gX(){if(kq)return A0;kq=1;var e=/\w*$/;function r(t){var a=new t.constructor(t.source,e.exec(t));return a.lastIndex=t.lastIndex,a}return A0=r,A0}var T0,Pq;function mX(){if(Pq)return T0;Pq=1;var e=Hf(),r=e?e.prototype:void 0,t=r?r.valueOf:void 0;function a(o){return t?Object(t.call(o)):{}}return T0=a,T0}var R0,Nq;function UU(){if(Nq)return R0;Nq=1;var e=sS();function r(t,a){var o=a?e(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}return R0=r,R0}var O0,jq;function yX(){if(jq)return O0;jq=1;var e=sS(),r=pX(),t=gX(),a=mX(),o=UU(),s="[object Boolean]",u="[object Date]",v="[object Map]",d="[object Number]",h="[object RegExp]",f="[object Set]",c="[object String]",_="[object Symbol]",E="[object ArrayBuffer]",S="[object DataView]",w="[object Float32Array]",T="[object Float64Array]",b="[object Int8Array]",I="[object Int16Array]",m="[object Int32Array]",p="[object Uint8Array]",y="[object Uint8ClampedArray]",g="[object Uint16Array]",x="[object Uint32Array]";function R(O,j,k){var N=O.constructor;switch(j){case E:return e(O);case s:case u:return new N(+O);case S:return r(O,k);case w:case T:case b:case I:case m:case p:case y:case g:case x:return o(O,k);case v:return new N;case d:case c:return new N(O);case h:return t(O);case f:return new N;case _:return a(O)}}return O0=R,O0}var k0,qq;function bX(){if(qq)return k0;qq=1;var e=Eo(),r=Object.create,t=(function(){function a(){}return function(o){if(!e(o))return{};if(r)return r(o);a.prototype=o;var s=new a;return a.prototype=void 0,s}})();return k0=t,k0}var P0,Dq;function FU(){if(Dq)return P0;Dq=1;var e=bX(),r=iS(),t=tS();function a(o){return typeof o.constructor=="function"&&!t(o)?e(r(o)):{}}return P0=a,P0}var N0,Lq;function _X(){if(Lq)return N0;Lq=1;var e=oS(),r=Co(),t="[object Map]";function a(o){return r(o)&&e(o)==t}return N0=a,N0}var j0,Mq;function SX(){if(Mq)return j0;Mq=1;var e=_X(),r=eS(),t=rS(),a=t&&t.isMap,o=a?r(a):e;return j0=o,j0}var q0,Uq;function wX(){if(Uq)return q0;Uq=1;var e=oS(),r=Co(),t="[object Set]";function a(o){return r(o)&&e(o)==t}return q0=a,q0}var D0,Fq;function EX(){if(Fq)return D0;Fq=1;var e=wX(),r=eS(),t=rS(),a=t&&t.isSet,o=a?r(a):e;return D0=o,D0}var L0,Bq;function CX(){if(Bq)return L0;Bq=1;var e=CU(),r=GJ(),t=IU(),a=eX(),o=nX(),s=NU(),u=jU(),v=iX(),d=oX(),h=sX(),f=uX(),c=oS(),_=hX(),E=yX(),S=FU(),w=hs(),T=Q_(),b=SX(),I=Eo(),m=EX(),p=nS(),y=Tl(),g=1,x=2,R=4,O="[object Arguments]",j="[object Array]",k="[object Boolean]",N="[object Date]",D="[object Error]",U="[object Function]",B="[object GeneratorFunction]",H="[object Map]",G="[object Number]",$="[object Object]",M="[object RegExp]",L="[object Set]",F="[object String]",V="[object Symbol]",ae="[object WeakMap]",oe="[object ArrayBuffer]",_e="[object DataView]",he="[object Float32Array]",ye="[object Float64Array]",ge="[object Int8Array]",Re="[object Int16Array]",We="[object Int32Array]",He="[object Uint8Array]",nr="[object Uint8ClampedArray]",ar="[object Uint16Array]",xr="[object Uint32Array]",or={};or[O]=or[j]=or[oe]=or[_e]=or[k]=or[N]=or[he]=or[ye]=or[ge]=or[Re]=or[We]=or[H]=or[G]=or[$]=or[M]=or[L]=or[F]=or[V]=or[He]=or[nr]=or[ar]=or[xr]=!0,or[D]=or[U]=or[ae]=!1;function lr(Ve,Ge,W,Y,Q,re){var pe,le=Ge&g,Ee=Ge&x,fe=Ge&R;if(W&&(pe=Q?W(Ve,Y,Q,re):W(Ve)),pe!==void 0)return pe;if(!I(Ve))return Ve;var Pe=w(Ve);if(Pe){if(pe=_(Ve),!le)return u(Ve,pe)}else{var ur=c(Ve),cr=ur==U||ur==B;if(T(Ve))return s(Ve,le);if(ur==$||ur==O||cr&&!Q){if(pe=Ee||cr?{}:S(Ve),!le)return Ee?d(Ve,o(pe,Ve)):v(Ve,a(pe,Ve))}else{if(!or[ur])return Q?Ve:{};pe=E(Ve,ur,le)}}re||(re=new e);var de=re.get(Ve);if(de)return de;re.set(Ve,pe),m(Ve)?Ve.forEach(function(Oe){pe.add(lr(Oe,Ge,W,Oe,Ve,re))}):b(Ve)&&Ve.forEach(function(Oe,De){pe.set(De,lr(Oe,Ge,W,De,Ve,re))});var Ae=fe?Ee?f:h:Ee?y:p,Ne=Pe?void 0:Ae(Ve);return r(Ne||Ve,function(Oe,De){Ne&&(De=Oe,Oe=Ve[De]),t(pe,De,lr(Oe,Ge,W,De,Ve,re))}),pe}return L0=lr,L0}var M0,$q;function xX(){if($q)return M0;$q=1;var e=CX(),r=1,t=4;function a(o){return e(o,r|t)}return M0=a,M0}var IX=xX();const AX=Ws(IX);var U0,zq;function uS(){if(zq)return U0;zq=1;var e=du(),r=Co(),t="[object Symbol]";function a(o){return typeof o=="symbol"||r(o)&&e(o)==t}return U0=a,U0}var F0,Zq;function TX(){if(Zq)return F0;Zq=1;var e=hs(),r=uS(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(s,u){if(e(s))return!1;var v=typeof s;return v=="number"||v=="symbol"||v=="boolean"||s==null||r(s)?!0:a.test(s)||!t.test(s)||u!=null&&s in Object(u)}return F0=o,F0}var B0,Hq;function RX(){if(Hq)return B0;Hq=1;var e=EU(),r="Expected a function";function t(a,o){if(typeof a!="function"||o!=null&&typeof o!="function")throw new TypeError(r);var s=function(){var u=arguments,v=o?o.apply(this,u):u[0],d=s.cache;if(d.has(v))return d.get(v);var h=a.apply(this,u);return s.cache=d.set(v,h)||d,h};return s.cache=new(t.Cache||e),s}return t.Cache=e,B0=t,B0}var $0,Vq;function OX(){if(Vq)return $0;Vq=1;var e=RX(),r=500;function t(a){var o=e(a,function(u){return s.size===r&&s.clear(),u}),s=o.cache;return o}return $0=t,$0}var z0,Gq;function kX(){if(Gq)return z0;Gq=1;var e=OX(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t=/\\(\\)?/g,a=e(function(o){var s=[];return o.charCodeAt(0)===46&&s.push(""),o.replace(r,function(u,v,d,h){s.push(d?h.replace(t,"$1"):v||u)}),s});return z0=a,z0}var Z0,Wq;function PX(){if(Wq)return Z0;Wq=1;function e(r,t){for(var a=-1,o=r==null?0:r.length,s=Array(o);++a<o;)s[a]=t(r[a],a,r);return s}return Z0=e,Z0}var H0,Kq;function NX(){if(Kq)return H0;Kq=1;var e=Hf(),r=PX(),t=hs(),a=uS(),o=e?e.prototype:void 0,s=o?o.toString:void 0;function u(v){if(typeof v=="string")return v;if(t(v))return r(v,u)+"";if(a(v))return s?s.call(v):"";var d=v+"";return d=="0"&&1/v==-1/0?"-0":d}return H0=u,H0}var V0,Yq;function jX(){if(Yq)return V0;Yq=1;var e=NX();function r(t){return t==null?"":e(t)}return V0=r,V0}var G0,Jq;function qX(){if(Jq)return G0;Jq=1;var e=hs(),r=TX(),t=kX(),a=jX();function o(s,u){return e(s)?s:r(s,u)?[s]:t(a(s))}return G0=o,G0}var W0,Xq;function DX(){if(Xq)return W0;Xq=1;var e=uS();function r(t){if(typeof t=="string"||e(t))return t;var a=t+"";return a=="0"&&1/t==-1/0?"-0":a}return W0=r,W0}var K0,Qq;function LX(){if(Qq)return K0;Qq=1;var e=qX(),r=DX();function t(a,o){o=e(o,a);for(var s=0,u=o.length;a!=null&&s<u;)a=a[r(o[s++])];return s&&s==u?a:void 0}return K0=t,K0}var Y0,eD;function MX(){if(eD)return Y0;eD=1;var e=LX();function r(t,a,o){var s=t==null?void 0:e(t,a);return s===void 0?o:s}return Y0=r,Y0}var UX=MX();const FX=Ws(UX);var J0,rD;function BU(){if(rD)return J0;rD=1;var e=X_(),r=$f();function t(a,o,s){(s!==void 0&&!r(a[o],s)||s===void 0&&!(o in a))&&e(a,o,s)}return J0=t,J0}var X0,tD;function BX(){if(tD)return X0;tD=1;function e(r){return function(t,a,o){for(var s=-1,u=Object(t),v=o(t),d=v.length;d--;){var h=v[r?d:++s];if(a(u[h],h,u)===!1)break}return t}}return X0=e,X0}var Q0,nD;function $X(){if(nD)return Q0;nD=1;var e=BX(),r=e();return Q0=r,Q0}var eb,aD;function zX(){if(aD)return eb;aD=1;var e=Wf(),r=Co();function t(a){return r(a)&&e(a)}return eb=t,eb}var rb,iD;function ZX(){if(iD)return rb;iD=1;var e=du(),r=iS(),t=Co(),a="[object Object]",o=Function.prototype,s=Object.prototype,u=o.toString,v=s.hasOwnProperty,d=u.call(Object);function h(f){if(!t(f)||e(f)!=a)return!1;var c=r(f);if(c===null)return!0;var _=v.call(c,"constructor")&&c.constructor;return typeof _=="function"&&_ instanceof _&&u.call(_)==d}return rb=h,rb}var tb,oD;function $U(){if(oD)return tb;oD=1;function e(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}return tb=e,tb}var nb,sD;function HX(){if(sD)return nb;sD=1;var e=Al(),r=Tl();function t(a){return e(a,r(a))}return nb=t,nb}var ab,uD;function VX(){if(uD)return ab;uD=1;var e=BU(),r=NU(),t=UU(),a=jU(),o=FU(),s=AU(),u=hs(),v=zX(),d=Q_(),h=Y_(),f=Eo(),c=ZX(),_=OU(),E=$U(),S=HX();function w(T,b,I,m,p,y,g){var x=E(T,I),R=E(b,I),O=g.get(R);if(O){e(T,I,O);return}var j=y?y(x,R,I+"",T,b,g):void 0,k=j===void 0;if(k){var N=u(R),D=!N&&d(R),U=!N&&!D&&_(R);j=R,N||D||U?u(x)?j=x:v(x)?j=a(x):D?(k=!1,j=r(R,!0)):U?(k=!1,j=t(R,!0)):j=[]:c(R)||s(R)?(j=x,s(x)?j=S(x):(!f(x)||h(x))&&(j=o(R))):k=!1}k&&(g.set(R,j),p(j,R,m,y,g),g.delete(R)),e(T,I,j)}return ab=w,ab}var ib,lD;function GX(){if(lD)return ib;lD=1;var e=CU(),r=BU(),t=$X(),a=VX(),o=Eo(),s=Tl(),u=$U();function v(d,h,f,c,_){d!==h&&t(h,function(E,S){if(_||(_=new e),o(E))a(d,h,S,f,v,c,_);else{var w=c?c(u(d,S),E,S+"",d,h,_):void 0;w===void 0&&(w=E),r(d,S,w)}},s)}return ib=v,ib}var ob,cD;function zU(){if(cD)return ob;cD=1;function e(r){return r}return ob=e,ob}var sb,fD;function WX(){if(fD)return sb;fD=1;function e(r,t,a){switch(a.length){case 0:return r.call(t);case 1:return r.call(t,a[0]);case 2:return r.call(t,a[0],a[1]);case 3:return r.call(t,a[0],a[1],a[2])}return r.apply(t,a)}return sb=e,sb}var ub,dD;function KX(){if(dD)return ub;dD=1;var e=WX(),r=Math.max;function t(a,o,s){return o=r(o===void 0?a.length-1:o,0),function(){for(var u=arguments,v=-1,d=r(u.length-o,0),h=Array(d);++v<d;)h[v]=u[o+v];v=-1;for(var f=Array(o+1);++v<o;)f[v]=u[v];return f[o]=s(h),e(a,this,f)}}return ub=t,ub}var lb,hD;function YX(){if(hD)return lb;hD=1;function e(r){return function(){return r}}return lb=e,lb}var cb,vD;function JX(){if(vD)return cb;vD=1;var e=YX(),r=xU(),t=zU(),a=r?function(o,s){return r(o,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:t;return cb=a,cb}var fb,pD;function XX(){if(pD)return fb;pD=1;var e=800,r=16,t=Date.now;function a(o){var s=0,u=0;return function(){var v=t(),d=r-(v-u);if(u=v,d>0){if(++s>=e)return arguments[0]}else s=0;return o.apply(void 0,arguments)}}return fb=a,fb}var db,gD;function QX(){if(gD)return db;gD=1;var e=JX(),r=XX(),t=r(e);return db=t,db}var hb,mD;function eQ(){if(mD)return hb;mD=1;var e=zU(),r=KX(),t=QX();function a(o,s){return t(r(o,s,e),o+"")}return hb=a,hb}var vb,yD;function rQ(){if(yD)return vb;yD=1;var e=$f(),r=Wf(),t=TU(),a=Eo();function o(s,u,v){if(!a(v))return!1;var d=typeof u;return(d=="number"?r(v)&&t(u,v.length):d=="string"&&u in v)?e(v[u],s):!1}return vb=o,vb}var pb,bD;function tQ(){if(bD)return pb;bD=1;var e=eQ(),r=rQ();function t(a){return e(function(o,s){var u=-1,v=s.length,d=v>1?s[v-1]:void 0,h=v>2?s[2]:void 0;for(d=a.length>3&&typeof d=="function"?(v--,d):void 0,h&&r(s[0],s[1],h)&&(d=v<3?void 0:d,v=1),o=Object(o);++u<v;){var f=s[u];f&&a(o,f,u,d)}return o})}return pb=t,pb}var gb,_D;function nQ(){if(_D)return gb;_D=1;var e=GX(),r=tQ(),t=r(function(a,o,s){e(a,o,s)});return gb=t,gb}var aQ=nQ();const iQ=Ws(aQ);var ZU="1.13.7",SD=typeof self=="object"&&self.self===self&&self||typeof globalThis=="object"&&globalThis.global===globalThis&&globalThis||Function("return this")()||{},Kf=Array.prototype,lS=Object.prototype,wD=typeof Symbol<"u"?Symbol.prototype:null,oQ=Kf.push,Rl=Kf.slice,ol=lS.toString,sQ=lS.hasOwnProperty,HU=typeof ArrayBuffer<"u",uQ=typeof DataView<"u",lQ=Array.isArray,ED=Object.keys,CD=Object.create,xD=HU&&ArrayBuffer.isView,cQ=isNaN,fQ=isFinite,VU=!{toString:null}.propertyIsEnumerable("toString"),ID=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],dQ=Math.pow(2,53)-1;function la(e,r){return r=r==null?e.length-1:+r,function(){for(var t=Math.max(arguments.length-r,0),a=Array(t),o=0;o<t;o++)a[o]=arguments[o+r];switch(r){case 0:return e.call(this,a);case 1:return e.call(this,arguments[0],a);case 2:return e.call(this,arguments[0],arguments[1],a)}var s=Array(r+1);for(o=0;o<r;o++)s[o]=arguments[o];return s[r]=a,e.apply(this,s)}}function xo(e){var r=typeof e;return r==="function"||r==="object"&&!!e}function hQ(e){return e===null}function GU(e){return e===void 0}function WU(e){return e===!0||e===!1||ol.call(e)==="[object Boolean]"}function vQ(e){return!!(e&&e.nodeType===1)}function Hn(e){var r="[object "+e+"]";return function(t){return ol.call(t)===r}}var cS=Hn("String"),KU=Hn("Number"),pQ=Hn("Date"),gQ=Hn("RegExp"),mQ=Hn("Error"),YU=Hn("Symbol"),JU=Hn("ArrayBuffer"),XU=Hn("Function"),yQ=SD.document&&SD.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof yQ!="function"&&(XU=function(e){return typeof e=="function"||!1});var Yn=XU,QU=Hn("Object"),eF=uQ&&(!/\[native code\]/.test(String(DataView))||QU(new DataView(new ArrayBuffer(8)))),fS=typeof Map<"u"&&QU(new Map),bQ=Hn("DataView");function _Q(e){return e!=null&&Yn(e.getInt8)&&JU(e.buffer)}var Xc=eF?_Q:bQ,vs=lQ||Hn("Array");function Io(e,r){return e!=null&&sQ.call(e,r)}var Gb=Hn("Arguments");(function(){Gb(arguments)||(Gb=function(e){return Io(e,"callee")})})();var dS=Gb;function SQ(e){return!YU(e)&&fQ(e)&&!isNaN(parseFloat(e))}function rF(e){return KU(e)&&cQ(e)}function tF(e){return function(){return e}}function nF(e){return function(r){var t=e(r);return typeof t=="number"&&t>=0&&t<=dQ}}function aF(e){return function(r){return r==null?void 0:r[e]}}var Qc=aF("byteLength"),wQ=nF(Qc),EQ=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function CQ(e){return xD?xD(e)&&!Xc(e):wQ(e)&&EQ.test(ol.call(e))}var iF=HU?CQ:tF(!1),ca=aF("length");function xQ(e){for(var r={},t=e.length,a=0;a<t;++a)r[e[a]]=!0;return{contains:function(o){return r[o]===!0},push:function(o){return r[o]=!0,e.push(o)}}}function oF(e,r){r=xQ(r);var t=ID.length,a=e.constructor,o=Yn(a)&&a.prototype||lS,s="constructor";for(Io(e,s)&&!r.contains(s)&&r.push(s);t--;)s=ID[t],s in e&&e[s]!==o[s]&&!r.contains(s)&&r.push(s)}function un(e){if(!xo(e))return[];if(ED)return ED(e);var r=[];for(var t in e)Io(e,t)&&r.push(t);return VU&&oF(e,r),r}function sF(e){if(e==null)return!0;var r=ca(e);return typeof r=="number"&&(vs(e)||cS(e)||dS(e))?r===0:ca(un(e))===0}function uF(e,r){var t=un(r),a=t.length;if(e==null)return!a;for(var o=Object(e),s=0;s<a;s++){var u=t[s];if(r[u]!==o[u]||!(u in o))return!1}return!0}function vt(e){if(e instanceof vt)return e;if(!(this instanceof vt))return new vt(e);this._wrapped=e}vt.VERSION=ZU;vt.prototype.value=function(){return this._wrapped};vt.prototype.valueOf=vt.prototype.toJSON=vt.prototype.value;vt.prototype.toString=function(){return String(this._wrapped)};function AD(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,Qc(e))}var TD="[object DataView]";function Wb(e,r,t,a){if(e===r)return e!==0||1/e===1/r;if(e==null||r==null)return!1;if(e!==e)return r!==r;var o=typeof e;return o!=="function"&&o!=="object"&&typeof r!="object"?!1:lF(e,r,t,a)}function lF(e,r,t,a){e instanceof vt&&(e=e._wrapped),r instanceof vt&&(r=r._wrapped);var o=ol.call(e);if(o!==ol.call(r))return!1;if(eF&&o=="[object Object]"&&Xc(e)){if(!Xc(r))return!1;o=TD}switch(o){case"[object RegExp]":case"[object String]":return""+e==""+r;case"[object Number]":return+e!=+e?+r!=+r:+e==0?1/+e===1/r:+e==+r;case"[object Date]":case"[object Boolean]":return+e==+r;case"[object Symbol]":return wD.valueOf.call(e)===wD.valueOf.call(r);case"[object ArrayBuffer]":case TD:return lF(AD(e),AD(r),t,a)}var s=o==="[object Array]";if(!s&&iF(e)){var u=Qc(e);if(u!==Qc(r))return!1;if(e.buffer===r.buffer&&e.byteOffset===r.byteOffset)return!0;s=!0}if(!s){if(typeof e!="object"||typeof r!="object")return!1;var v=e.constructor,d=r.constructor;if(v!==d&&!(Yn(v)&&v instanceof v&&Yn(d)&&d instanceof d)&&"constructor"in e&&"constructor"in r)return!1}t=t||[],a=a||[];for(var h=t.length;h--;)if(t[h]===e)return a[h]===r;if(t.push(e),a.push(r),s){if(h=e.length,h!==r.length)return!1;for(;h--;)if(!Wb(e[h],r[h],t,a))return!1}else{var f=un(e),c;if(h=f.length,un(r).length!==h)return!1;for(;h--;)if(c=f[h],!(Io(r,c)&&Wb(e[c],r[c],t,a)))return!1}return t.pop(),a.pop(),!0}function cF(e,r){return Wb(e,r)}function Ol(e){if(!xo(e))return[];var r=[];for(var t in e)r.push(t);return VU&&oF(e,r),r}function hS(e){var r=ca(e);return function(t){if(t==null)return!1;var a=Ol(t);if(ca(a))return!1;for(var o=0;o<r;o++)if(!Yn(t[e[o]]))return!1;return e!==hF||!Yn(t[vS])}}var vS="forEach",fF="has",pS=["clear","delete"],dF=["get",fF,"set"],IQ=pS.concat(vS,dF),hF=pS.concat(dF),AQ=["add"].concat(pS,vS,fF),TQ=fS?hS(IQ):Hn("Map"),RQ=fS?hS(hF):Hn("WeakMap"),OQ=fS?hS(AQ):Hn("Set"),kQ=Hn("WeakSet");function ps(e){for(var r=un(e),t=r.length,a=Array(t),o=0;o<t;o++)a[o]=e[r[o]];return a}function PQ(e){for(var r=un(e),t=r.length,a=Array(t),o=0;o<t;o++)a[o]=[r[o],e[r[o]]];return a}function vF(e){for(var r={},t=un(e),a=0,o=t.length;a<o;a++)r[e[t[a]]]=t[a];return r}function Kb(e){var r=[];for(var t in e)Yn(e[t])&&r.push(t);return r.sort()}function gS(e,r){return function(t){var a=arguments.length;if(r&&(t=Object(t)),a<2||t==null)return t;for(var o=1;o<a;o++)for(var s=arguments[o],u=e(s),v=u.length,d=0;d<v;d++){var h=u[d];(!r||t[h]===void 0)&&(t[h]=s[h])}return t}}var pF=gS(Ol),ef=gS(un),gF=gS(Ol,!0);function NQ(){return function(){}}function mF(e){if(!xo(e))return{};if(CD)return CD(e);var r=NQ();r.prototype=e;var t=new r;return r.prototype=null,t}function jQ(e,r){var t=mF(e);return r&&ef(t,r),t}function qQ(e){return xo(e)?vs(e)?e.slice():pF({},e):e}function DQ(e,r){return r(e),e}function yF(e){return vs(e)?e:[e]}vt.toPath=yF;function kl(e){return vt.toPath(e)}function mS(e,r){for(var t=r.length,a=0;a<t;a++){if(e==null)return;e=e[r[a]]}return t?e:void 0}function bF(e,r,t){var a=mS(e,kl(r));return GU(a)?t:a}function LQ(e,r){r=kl(r);for(var t=r.length,a=0;a<t;a++){var o=r[a];if(!Io(e,o))return!1;e=e[o]}return!!t}function yS(e){return e}function sl(e){return e=ef({},e),function(r){return uF(r,e)}}function bS(e){return e=kl(e),function(r){return mS(r,e)}}function Pl(e,r,t){if(r===void 0)return e;switch(t??3){case 1:return function(a){return e.call(r,a)};case 3:return function(a,o,s){return e.call(r,a,o,s)};case 4:return function(a,o,s,u){return e.call(r,a,o,s,u)}}return function(){return e.apply(r,arguments)}}function _F(e,r,t){return e==null?yS:Yn(e)?Pl(e,r,t):xo(e)&&!vs(e)?sl(e):bS(e)}function _S(e,r){return _F(e,r,1/0)}vt.iteratee=_S;function ha(e,r,t){return vt.iteratee!==_S?vt.iteratee(e,r):_F(e,r,t)}function MQ(e,r,t){r=ha(r,t);for(var a=un(e),o=a.length,s={},u=0;u<o;u++){var v=a[u];s[v]=r(e[v],v,e)}return s}function SF(){}function UQ(e){return e==null?SF:function(r){return bF(e,r)}}function FQ(e,r,t){var a=Array(Math.max(0,e));r=Pl(r,t,1);for(var o=0;o<e;o++)a[o]=r(o);return a}function Yb(e,r){return r==null&&(r=e,e=0),e+Math.floor(Math.random()*(r-e+1))}var ul=Date.now||function(){return new Date().getTime()};function wF(e){var r=function(s){return e[s]},t="(?:"+un(e).join("|")+")",a=RegExp(t),o=RegExp(t,"g");return function(s){return s=s==null?"":""+s,a.test(s)?s.replace(o,r):s}}var EF={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},BQ=wF(EF),$Q=vF(EF),zQ=wF($Q),ZQ=vt.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},mb=/(.)^/,HQ={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},VQ=/\\|'|\r|\n|\u2028|\u2029/g;function GQ(e){return"\\"+HQ[e]}var WQ=/^\s*(\w|\$)+\s*$/;function KQ(e,r,t){!r&&t&&(r=t),r=gF({},r,vt.templateSettings);var a=RegExp([(r.escape||mb).source,(r.interpolate||mb).source,(r.evaluate||mb).source].join("|")+"|$","g"),o=0,s="__p+='";e.replace(a,function(h,f,c,_,E){return s+=e.slice(o,E).replace(VQ,GQ),o=E+h.length,f?s+=`'+
45
45
  ((__t=(`+f+`))==null?'':_.escape(__t))+
46
46
  '`:c?s+=`'+
47
47
  ((__t=(`+c+`))==null?'':__t)+
@@ -58,7 +58,7 @@ __p+='`),h}),s+=`';
58
58
  (`+I+": "+m+")",T.name="ChunkLoadError",T.type=I,T.request=m,E[1](T)}}),"chunk-"+c,c)}};var h=(c,_)=>{var E,S,[w,T,b]=_,I=0;if(w.some((m=>d[m]!==0))){for(E in T)u.o(T,E)&&(u.m[E]=T[E]);b&&b(u)}for(c&&c(_);I<w.length;I++)S=w[I],u.o(d,S)&&d[S]&&d[S][0](),d[S]=0},f=self.webpackChunk_clickview_braze_client=self.webpackChunk_clickview_braze_client||[];f.forEach(h.bind(null,0)),f.push=h.bind(null,f.push.bind(f))})();var v={};return(()=>{u.r(v),u.d(v,{BrazeClient:()=>nd,ClassHookMarketingFormEvent:()=>mu,CountryCode:()=>vu,CustomUserAttributes:()=>en,DefaultUserAttributes:()=>si,EventUserAttributes:()=>bn,MarketingFormEvent:()=>Ki,MarketingUserEvent:()=>gu,PageEvent:()=>pu,ProductEvent:()=>yu,ProductFormEvent:()=>Yi,StreamableFormEvent:()=>Ei,StreamableMarketingFormEvent:()=>Ji,getInstance:()=>Oo});var d=u(5825),h=u(1087),f=u(5333),c=u(6524);function _(){(0,f.e)(void 0,"iam",".ab-pause-scrolling,body.ab-pause-scrolling,html.ab-pause-scrolling{overflow:hidden;touch-action:none}.ab-iam-root.v3{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:9011;-webkit-tap-highlight-color:transparent}.ab-iam-root.v3:focus{outline:0}.ab-iam-root.v3.ab-effect-fullscreen,.ab-iam-root.v3.ab-effect-html,.ab-iam-root.v3.ab-effect-modal{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-show,.ab-iam-root.v3.ab-effect-html.ab-show,.ab-iam-root.v3.ab-effect-modal.ab-show{opacity:1}.ab-iam-root.v3.ab-effect-fullscreen.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-html.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-modal.ab-show.ab-animate-in{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide,.ab-iam-root.v3.ab-effect-html.ab-hide,.ab-iam-root.v3.ab-effect-modal.ab-hide{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-html.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-modal.ab-hide.ab-animate-out{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-slide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-show .ab-in-app-message{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-iam-root.v3.ab-effect-slide.ab-show.ab-animate-in .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-left{-webkit-transform:translateX(-535px);-moz-transform:translateX(-535px);-ms-transform:translateX(-535px);transform:translateX(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-up{-webkit-transform:translateY(-535px);-moz-transform:translateY(-535px);-ms-transform:translateY(-535px);transform:translateY(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-down{-webkit-transform:translateY(535px);-moz-transform:translateY(535px);-ms-transform:translateY(535px);transform:translateY(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide.ab-animate-out .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3 .ab-ios-scroll-wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;pointer-events:all;touch-action:auto;-webkit-overflow-scrolling:touch}.ab-iam-root.v3 .ab-in-app-message{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:fixed;text-align:center;-webkit-box-shadow:0 0 4px rgba(0,0,0,.3);-moz-box-shadow:0 0 4px rgba(0,0,0,.3);box-shadow:0 0 4px rgba(0,0,0,.3);line-height:normal;letter-spacing:normal;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;z-index:9011;max-width:100%;overflow:hidden;display:inline-block;pointer-events:all;color:#333;color-scheme:normal}.ab-iam-root.v3 .ab-in-app-message.ab-no-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ab-iam-root.v3 .ab-in-app-message :focus,.ab-iam-root.v3 .ab-in-app-message:focus{outline:0}.ab-iam-root.v3 .ab-in-app-message.ab-clickable{cursor:pointer}.ab-iam-root.v3 .ab-in-app-message.ab-background{background-color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;right:0;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-text{float:none;line-height:1.5;margin:20px 25px;max-width:100%;overflow:hidden;overflow-y:auto;vertical-align:text-bottom;word-wrap:break-word;white-space:pre-wrap;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar{-webkit-appearance:none;width:14px}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-thumb{-webkit-appearance:none;border:4px solid transparent;background-clip:padding-box;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;background-color:rgba(0,0,0,.2)}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-button{width:0;height:0;display:none}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-header{float:none;letter-spacing:0;margin:0;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;display:block;font-size:20px;margin-bottom:10px;line-height:1.3}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:14px;font-weight:700;margin:20px;margin-top:calc(constant(safe-area-inset-top,0) + 20px);margin-right:calc(constant(safe-area-inset-right,0) + 20px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 20px);margin-left:calc(constant(safe-area-inset-left,0) + 20px);margin-top:calc(env(safe-area-inset-top,0) + 20px);margin-right:calc(env(safe-area-inset-right,0) + 20px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 20px);margin-left:calc(env(safe-area-inset-left,0) + 20px);max-height:150px;padding:10px;right:0;background-color:#efefef}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-message-text{opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-close-button svg.ab-chevron{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 25px 5px 10px;max-width:430px;vertical-align:middle;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{display:block;max-height:150px;overflow:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:365px;border-top:0;border-bottom:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;right:0;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{float:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;vertical-align:top;width:60px;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area{width:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{float:none;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal{font-size:14px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{float:none;position:relative;display:block;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img{background-size:cover;background-repeat:no-repeat;background-position:50% 50%;position:absolute;top:0;right:0;bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-icon{margin-top:20px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{padding:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-text{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-buttons{bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{float:none;height:auto;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{display:block;top:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none}.ab-iam-root.v3 .ab-in-app-message.ab-modal{padding-top:20px;width:450px;max-width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone{max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text{max-height:660px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-image{max-height:524.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon{max-height:610px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons{margin-bottom:93px;max-height:587px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image{max-height:451.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon{max-height:537px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{margin-top:-20px;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area img{max-width:100%;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area{height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{width:auto;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{width:auto;max-height:720px;max-width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen{width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape{width:720px;max-height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-image-area{height:225px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area{height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-message-text{max-height:112px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text{max-height:247px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons{margin-bottom:93px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area{height:360px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area{height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-html-message{background-color:transparent;border:none;height:100%;overflow:auto;position:relative;touch-action:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-message-buttons{position:absolute;bottom:0;width:100%;padding:17px 25px 30px 25px;z-index:inherit;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ab-iam-root.v3 .ab-in-app-message .ab-message-button{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;height:44px;line-height:normal;letter-spacing:normal;margin:0;max-width:100%;min-width:80px;padding:0 12px;position:relative;text-transform:none;width:48%;width:calc(50% - 5px);border:1px solid #1b78cf;-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;word-wrap:normal;white-space:nowrap}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type{float:left;background-color:#fff;color:#1b78cf}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:last-of-type{float:right;background-color:#1b78cf;color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type:last-of-type{float:none;width:auto}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:hover{opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:active:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.08)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:focus:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.15)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button a{color:inherit;text-decoration:inherit}.ab-iam-root.v3 .ab-in-app-message img{float:none;display:inline-block}.ab-iam-root.v3 .ab-in-app-message .ab-icon{float:none;display:inline-block;padding:10px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message .ab-icon .fa{float:none;font-size:30px;width:30px}.ab-iam-root.v3 .ab-start-hidden{visibility:hidden}.ab-iam-root.v3 .ab-centered{margin:auto;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ab-iam-root.v3{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ab-iam-root.v3 .ab-page-blocker{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9001;pointer-events:all;background-color:rgba(51,51,51,.75)}@media (max-width:600px){.ab-iam-root.v3 .ab-in-app-message.ab-slideup{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-close-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic),.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic) .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-message-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:480px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}}@media (max-height:750px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-height:91%;max-height:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-height:91vh;max-height:calc(100vh - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text{max-height:65vh;max-height:calc(100vh - 30px - 60px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-image{max-height:45vh;max-height:calc(100vh - 30px - 155.17241379310346px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-icon{max-height:45vh;max-height:calc(100vh - 30px - 70px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons{max-height:50vh;max-height:calc(100vh - 30px - 93px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-image{max-height:30vh;max-height:calc(100vh - 30px - 155.17241379310346px - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-icon{max-height:30vh;max-height:calc(100vh - 30px - 70px - 93px - 20px)}}@media (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area img{max-height:100%;max-width:100%}}@media (max-height:750px) and (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important;width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-height:480px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:750px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}"),(0,c.N)()}var E=u(8376),S=u(1090),w=u(1792),T=u(6616),b=u(4410),I=u(3811),m=u(1507),p=u(5242);function y(z,Z){return z==null?"":(z=parseInt(z.toString()),isNaN(z)?"":(Z&&!isNaN(parseFloat(Z.toString()))||(Z=1),"rgba("+[(16711680&(z>>>=0))>>>16,(65280&z)>>>8,255&z,((4278190080&z)>>>24)/255*Z].join(",")+")"))}var g=u(7671),x=u(335),R=u(2730);function O(z){if(!d.ZP.X())return!1;if(!(z instanceof w.Z||z instanceof E.Z))return x.Z.error(g.De),!1;const Z=z instanceof E.Z?R.G.mo:R.G.Oi;return h.Z.m().q(z,Z).L}var j=u(4365),k=u(9342);function N(z){if(!d.ZP.X())return!1;if(!(z instanceof w.Z))return x.Z.error(g.De),!1;const Z=h.Z.m().q(z,R.G.Ei);if(Z){z.Ur()||O(z);for(let X=0;X<Z.ge.length;X++)k.n.rr().fe(j.Z.Qr,[z.triggerId],Z.ge[X])}return Z.L}var D=u(420),U=u(3695);function B(z,Z,X){if(!d.ZP.X())return!1;if(!(z instanceof S.Z))return x.Z.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;let te=R.G.Ei;Z!=null&&(te=R.G.Gi);const J=h.Z.m().q(z,te,Z,X);if(J.L)for(let ne=0;ne<J.ge.length;ne++)k.n.rr().fe(j.Z.Qr,[z.triggerId,Z],J.ge[ne]);return J.L}var H=u(6243),G=u(2893),$=u(5806),M=u(1148),L=u(5319),F=u(7048),V=u(4072);function ae(z,Z){var X;if(!d.ZP.X())return!1;if(!(z instanceof V.Z))return x.Z.error("button must be an InAppMessageButton object"),!1;if(!(Z instanceof w.Z))return x.Z.error(g.De),!1;const te=h.Z.m().Hi(z,Z);if(te.L)for(let J=0;J<te.ge.length;J++)k.n.rr().fe(j.Z.Qr,[Z.triggerId,(X=z.id)===null||X===void 0?void 0:X.toString()],te.ge[J]);return te.L}var oe=u(7429);const _e=z=>{const Z=z.querySelectorAll(".ab-close-button, .ab-message-text, .ab-message-button");let X;for(let te=0;te<Z.length;te++)X=Z[te],X.tabIndex=0;if(Z.length>0){const te=Z[0],J=Z[Z.length-1];z.addEventListener("keydown",(ne=>{const ce=document.activeElement;ne.keyCode===oe.m.lo&&(ne.shiftKey||ce!==J&&ce!==z?!ne.shiftKey||ce!==te&&ce!==z||(ne.preventDefault(),J.focus()):(ne.preventDefault(),te.focus()))}))}},he=(z,Z)=>{Z.setAttribute("role","dialog"),Z.setAttribute("aria-modal","true"),Z.setAttribute("aria-label","Modal Message"),z&&Z.setAttribute("aria-labelledby",z)},ye=(z,Z,X,te)=>{if(z.buttons&&z.buttons.length>0){const J=document.createElement("div");J.className="ab-message-buttons",X.appendChild(J);const ne=X.getElementsByClassName("ab-message-text")[0];ne!=null&&(ne.className+=" ab-with-buttons");const ce=ve=>Ie=>(z.Ae(X,(()=>{ae(ve,z),ve.clickAction===w.Z.ClickAction.URI?(0,D.S)(ve.uri||"",te||z.openTarget===w.Z.OpenTarget.BLANK,Ie):ve.clickAction===w.Z.ClickAction.NEWS_FEED&&Z()})),Ie.stopPropagation(),!1);for(let ve=0;ve<z.buttons.length;ve++){const Ie=z.buttons[ve],ke=document.createElement("button");ke.className="ab-message-button",ke.setAttribute("type","button"),(0,m.lj)(ke,"touchstart");let sr=Ie.text;Ie.text===""&&(sr=" "),ke.appendChild(document.createTextNode(sr)),z.Ce()||(ke.style.backgroundColor=y(Ie.backgroundColor),ke.style.color=y(Ie.textColor),ke.style.borderColor=y(Ie.borderColor)),ke.onclick=ce(Ie),J.appendChild(ke)}}};var ge=u(7070);function Re(z,Z,X){if(!d.ZP.X())return;if(_(),z==null)return!1;if(z instanceof E.Z)return x.Z.info("User received control for a multivariate test, logging to Braze servers."),O(z),!0;if(!(z instanceof w.Z)||z.constructor===w.Z)return!1;z.Nh();const te=z instanceof S.Z;if(te&&!z.trusted&&!d.ZP.tr())return x.Z.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these messages.'),!1;if(Z==null&&(Z=document.body),z.ze()&&Z.querySelectorAll(".ab-modal-interactions").length>0)return x.Z.info(`Cannot show in-app message ${z.message} because another message is being shown.`),!1;if(L.SD.fo()){const ve=L.SD.co();if(ve===L.eh.PORTRAIT&&z.orientation===w.Z.Orientation.LANDSCAPE||ve===L.eh.LANDSCAPE&&z.orientation===w.Z.Orientation.PORTRAIT){const Ie=ve===L.eh.PORTRAIT?"portrait":"landscape",ke=z.orientation===w.Z.Orientation.PORTRAIT?"portrait":"landscape";return x.Z.info(`Not showing ${ke} in-app message ${z.message} because the screen is currently ${Ie}`),!1}}if(!d.ZP.tr()){let ve=!1;if(z.buttons&&z.buttons.length>0){const Ie=z.buttons;for(let ke=0;ke<Ie.length;ke++)if(Ie[ke].clickAction===w.Z.ClickAction.URI){const sr=Ie[ke].uri;ve=(0,M.o)(sr)}}else z.clickAction===w.Z.ClickAction.URI&&(ve=(0,M.o)(z.uri));if(ve)return x.Z.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these actions.'),!1}const J=document.createElement("div");if(J.className="ab-iam-root v3",J.className+=(function(ve){let Ie="";return ve.animateIn&&(Ie+=" ab-animate-in"),ve.animateOut&&(Ie+=" ab-animate-out"),ve instanceof b.Z?Ie+=" ab-effect-fullscreen":ve instanceof S.Z?Ie+=" ab-effect-html":ve instanceof I.Z?Ie+=" ab-effect-modal":ve instanceof T.Z&&(Ie+=" ab-effect-slide"),Ie})(z),J.setAttribute("role","complementary"),z.xe()&&(J.id=z.htmlId),d.ZP.nn(d.JY.jo)&&(J.style.zIndex=(d.ZP.nn(d.JY.jo)+1).toString()),Z.appendChild(J),z.Ce()){const ve=document.createElement("style");ve.innerHTML=z.css,ve.id=z.ve(),d.ZP.nn(d.JY.bo)!=null&&ve.setAttribute("nonce",d.ZP.nn(d.JY.bo)),document.getElementsByTagName("head")[0].appendChild(ve)}const ne=z instanceof T.Z,ce=(function(ve,Ie,ke,sr,jr,wr,Lr,Ar=document.body){if(ve.ke=document.activeElement,ve instanceof S.Z)return(function(Le,ot,rn,Ft,fi,Bt){const ft=document.createElement("iframe");ft.setAttribute("title","Modal Message"),fi&&(ft.style.zIndex=(fi+1).toString());const Ln=st=>{const gt=st.getAttribute("href"),_n=st.onclick;return dn=>{if(_n!=null&&typeof _n=="function"&&_n.bind(st)(dn)===!1)return;let tt=(0,M.L)(gt).abButtonId;if(tt!=null&&tt!==""||(tt=st.getAttribute("id")||void 0),gt!=null&&gt!==""&&gt.indexOf("#")!==0){const tn=(st.getAttribute("target")||"").toLowerCase().replace("_","")==="blank",Ye=Ft||Le.openTarget===w.Z.OpenTarget.BLANK||tn,Fe=()=>{B(Le,tt,gt),L.SD.openUri(gt,Ye,dn)};Ye?Fe():Le.Ae(ft,Fe)}else B(Le,tt,gt||void 0);return dn.stopPropagation(),!1}},Yr=(st,gt,_n)=>{const dn=`([\\w]+)\\s*=\\s*document.createElement\\(['"]${_n}['"]\\)`,tt=st.match(new RegExp(dn));if(tt){const tn=`${tt[1]}.setAttribute("nonce", "${gt}")`;return`${st.slice(0,tt.index+tt[0].length)};${tn};${st.slice(tt.index+tt[0].length)}`}return null};if(ft.onload=()=>{let st=null;if(Bt!=null){st=document.createElement("html"),st.innerHTML=Le.message||"";const Pr=st.getElementsByTagName("style");for(let Ct=0;Ct<Pr.length;Ct++)Pr[Ct].setAttribute("nonce",Bt);const Jr=st.getElementsByTagName("script");for(let Ct=0;Ct<Jr.length;Ct++){Jr[Ct].setAttribute("nonce",Bt),Jr[Ct].innerHTML=Jr[Ct].innerHTML.replace(/<style>/g,`<style nonce='${Bt}'>`);const Fl=Yr(Jr[Ct].innerHTML,Bt,"script");Fl&&(Jr[Ct].innerHTML=Fl);const Bl=Yr(Jr[Ct].innerHTML,Bt,"style");Bl&&(Jr[Ct].innerHTML=Bl)}}const gt=ft.contentWindow;gt.focus();const _n=gt.document.querySelector("html");_n&&(_n.innerHTML=st?st.innerHTML:Le.message||"",(0,F.E)(_n));const dn=gt.document.getElementsByTagName("head")[0];if(dn!=null){if(Le.Ce()){const Jr=document.createElement("style");Jr.innerHTML=Le.css||"",Jr.id=Le.ve()||"",Bt!=null&&Jr.setAttribute("nonce",Bt),dn.appendChild(Jr)}const Pr=gt.document.createElement("base");Pr!=null&&(Pr.setAttribute("target","_parent"),dn.appendChild(Pr))}const tt=gt.document.getElementsByTagName("title");tt&&tt.length>0&&ft.setAttribute("title",tt[0].textContent||"");const tn={closeMessage:function(){Le.Ae(ft)},logClick:function(){B(Le,...arguments)},display:{},web:{}},Ye=function(){return function(){const Pr=arguments;Promise.resolve().then(u.bind(u,2261)).then((Jr=>{d.ZP.so()?Jr.requestPushPermission(...Array.prototype.slice.call(Pr)):x.Z.error(g.Go)}))}},Fe={requestImmediateDataFlush:function(){const Pr=arguments;Promise.resolve().then(u.bind(u,4650)).then((({requestImmediateDataFlush:Jr})=>{d.ZP.so()?Jr(...Array.prototype.slice.call(Pr)):x.Z.error(g.Go)}))},logCustomEvent:function(){const Pr=arguments;Promise.resolve().then(u.bind(u,1454)).then((({logCustomEvent:Jr})=>{d.ZP.so()?Jr(...Array.prototype.slice.call(Pr)):x.Z.error(g.Go)}))},logPurchase:function(){const Pr=arguments;u.e(364).then(u.bind(u,1364)).then((({logPurchase:Jr})=>{d.ZP.so()?Jr(...Array.prototype.slice.call(Pr)):x.Z.error(g.Go)}))},unregisterPush:function(){const Pr=arguments;Promise.resolve().then(u.bind(u,7824)).then((({unregisterPush:Jr})=>{d.ZP.so()?Jr(...Array.prototype.slice.call(Pr)):x.Z.error(g.Go)}))},requestPushPermission:Ye(),changeUser:function(){const Pr=arguments;Promise.resolve().then(u.bind(u,4790)).then((({changeUser:Jr})=>{d.ZP.so()?Jr(...Array.prototype.slice.call(Pr)):x.Z.error(g.Go)}))}},Ue=function(Pr){return function(){Fe[Pr](...Array.prototype.slice.call(arguments))}};for(const Pr of(0,G.XP)(Fe))tn[Pr]=Ue(Pr);const _r=["setFirstName","setLastName","setEmail","setGender","setDateOfBirth","setCountry","setHomeCity","setEmailNotificationSubscriptionType","setLanguage","addAlias","setPushNotificationSubscriptionType","setPhoneNumber","setCustomUserAttribute","addToCustomAttributeArray","removeFromCustomAttributeArray","incrementCustomUserAttribute","setCustomLocationAttribute","addToSubscriptionGroup","removeFromSubscriptionGroup"],Cr=function(Pr){return function(){const Jr=(0,H.P)();Jr&&Jr[Pr](...Array.prototype.slice.call(arguments))}},nt={};for(let Pr=0;Pr<_r.length;Pr++)nt[_r[Pr]]=Cr(_r[Pr]);tn.getUser=function(){return nt};const Ot={showFeed:ot},Sn=function(Pr){return function(){const Jr=arguments;Le.Ae(ft,(function(){Ot[Pr](...Array.prototype.slice.call(Jr))}))}},wn=tn.display;for(const Pr of(0,G.XP)(Ot))wn[Pr]=Sn(Pr);const ga={registerAppboyPushMessages:Ye()},Ai=function(Pr){return function(){ga[Pr](...Array.prototype.slice.call(arguments))}},Wa=tn.web;for(const Pr of(0,G.XP)(ga))Wa[Pr]=Ai(Pr);if(gt.appboyBridge=tn,gt.brazeBridge=tn,Le.we!==w.Z.qe.$e){const Pr=gt.document.getElementsByTagName("a");for(let Ct=0;Ct<Pr.length;Ct++)Pr[Ct].onclick=Ln(Pr[Ct]);const Jr=gt.document.getElementsByTagName("button");for(let Ct=0;Ct<Jr.length;Ct++)Jr[Ct].onclick=Ln(Jr[Ct])}const Su=gt.document.body;if(Su!=null){Le.xe()&&(Su.id=Le.htmlId||"");const Pr=document.createElement("hidden");Pr.onclick=tn.closeMessage,Pr.className="ab-programmatic-close-button",Su.appendChild(Pr)}gt.dispatchEvent(new CustomEvent("ab.BridgeReady")),ft.className.indexOf("ab-start-hidden")!==-1&&(ft.className=ft.className.replace("ab-start-hidden",""),rn(ft)),document.activeElement!==ft&&ft.focus()},ft.className="ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions",U.Z.OS===$.T.io){const st=document.createElement("div");return st.className="ab-ios-scroll-wrapper",st.appendChild(ft),Le.Me=st,st}return Le.Me=ft,ft})(ve,Ie,ke,jr,wr,Lr);const br=(function(Le,ot,rn,Ft,fi,Bt,ft=document.body){let Ln=null;const Yr=document.createElement("div");var st;Yr.className="ab-in-app-message ab-start-hidden ab-background",Bt&&(Yr.style.zIndex=(Bt+1).toString()),Le.ze()&&(Yr.className+=" ab-modal-interactions",Yr.setAttribute("tabindex","-1")),Le.Ce()||(Yr.style.color=y(Le.textColor),Yr.style.backgroundColor=y(Le.backgroundColor),(st=Le.backgroundColor)!=null&&(st=parseInt(st.toString()),!isNaN(st)&&(4278190080&st)>>>24==0)&&(Yr.className+=" ab-no-shadow"));const gt=()=>{Yr.className.indexOf("ab-start-hidden")!==-1&&(Yr.className=Yr.className.replace("ab-start-hidden",""),document.querySelectorAll(".ab-iam-img-loading").length>0?Ft(`Cannot show in-app message ${Le.message} because another message is being shown.`,w.Z.Be.Le):rn(Yr))},_n=(Ue=!0)=>{let _r=document.querySelectorAll(".ab-iam-root");_r&&_r.length!==0||(_r=ft.querySelectorAll(".ab-iam-root")),_r&&_r.length>0&&(_r[0].classList.remove("ab-iam-img-loading"),Ln&&(clearTimeout(Ln),Ln=null),Ue?gt():x.Z.error(`Cannot show in-app message ${Le.message} because the image failed to load.`))};Le.imageStyle===w.Z.ImageStyle.GRAPHIC&&(Yr.className+=" graphic"),Le.orientation===w.Z.Orientation.LANDSCAPE&&(Yr.className+=" landscape"),Le.buttons!=null&&Le.buttons.length===0&&(Le.clickAction!==w.Z.ClickAction.NONE&&(Yr.className+=" ab-clickable"),Yr.onclick=Ue=>(Le.Ae(Yr,(()=>{N(Le),Le.clickAction===w.Z.ClickAction.URI?(0,D.S)(Le.uri||"",fi||Le.openTarget===w.Z.OpenTarget.BLANK,Ue):Le.clickAction===w.Z.ClickAction.NEWS_FEED&&ot()})),Ue.stopPropagation(),!1));const dn=(0,p.B)("Close Message",Le.Ce()?void 0:y(Le.closeButtonColor),(()=>{Le.Ae(Yr)}));Yr.appendChild(dn),Bt&&(dn.style.zIndex=(Bt+2).toString());const tt=document.createElement("div");tt.className="ab-message-text";const tn=(Le.messageAlignment||Le.De).toLowerCase();tt.className+=" "+tn+"-aligned";let Ye=!1;const Fe=document.createElement("div");if(Fe.className="ab-image-area",Le.imageUrl){if(Le.cropType===w.Z.CropType.CENTER_CROP){const Ue=document.createElement("span");Ue.className="ab-center-cropped-img",Ue.style.backgroundImage="url("+Le.imageUrl+")",Ue.setAttribute("role","img"),Ue.setAttribute("aria-label","Modal Image"),Le.Ge(Ue),Fe.appendChild(Ue)}else{const Ue=document.createElement("img");if(Ue.setAttribute("src",Le.imageUrl),Le.Ge(Ue),document.querySelectorAll(".ab-iam-img-loading").length===0){Ye=!0;const _r=document.querySelectorAll(".ab-iam-root");_r&&_r.length>0&&_r[0].classList.add("ab-iam-img-loading"),Ln=window.setTimeout((()=>{_n(!1)}),6e4),Ue.onload=()=>{_n()},Ue.onerror=()=>{_n(!1)}}Fe.appendChild(Ue)}Yr.appendChild(Fe),tt.className+=" ab-with-image"}else if(Le.icon){Fe.className+=" ab-icon-area";const Ue=document.createElement("span");Ue.className="ab-icon",Le.Ce()||(Ue.style.backgroundColor=y(Le.iconBackgroundColor),Ue.style.color=y(Le.iconColor));const _r=document.createElement("i");_r.className="fa",_r.appendChild(document.createTextNode(Le.icon)),_r.setAttribute("aria-hidden","true"),Ue.appendChild(_r),Fe.appendChild(Ue),Yr.appendChild(Fe),tt.className+=" ab-with-icon"}if((0,m.lj)(tt,"touchstart"),Le.header&&Le.header.length>0){const Ue=document.createElement("h1");Ue.className="ab-message-header",Le.He=ge.Z.W(),Ue.id=Le.He;const _r=(Le.headerAlignment||w.Z.TextAlignment.CENTER).toLowerCase();Ue.className+=" "+_r+"-aligned",Le.Ce()||(Ue.style.color=y(Le.headerTextColor)),Ue.appendChild(document.createTextNode(Le.header)),tt.appendChild(Ue)}return tt.appendChild(Le.Je()),Yr.appendChild(tt),Ye||gt(),Le.Me=Yr,Yr})(ve,Ie,ke,sr,jr,wr,Ar);if(ve instanceof b.Z||ve instanceof I.Z){const Le=ve instanceof b.Z?"ab-fullscreen":"ab-modal";br.className+=` ${Le} ab-centered`,ye(ve,Ie,br,jr),_e(br),he(ve.He,br)}else if(ve instanceof T.Z){br.className+=" ab-slideup";const Le=br.getElementsByClassName("ab-close-button")[0];if(Le!=null){const Ft=(0,m.MK)("0 0 11.38 19.44","M11.38 9.72l-9.33 9.72L0 17.3l7.27-7.58L0 2.14 2.05 0l9.33 9.72z",ve.Ce()?void 0:y(ve.closeButtonColor));Ft.setAttribute("class","ab-chevron"),Le.appendChild(Ft)}let ot,rn;(0,m.FZ)(br,m.mQ.U,(Ft=>{br.className+=" ab-swiped-left",Le!=null&&Le.onclick!=null&&Le.onclick(Ft)})),(0,m.FZ)(br,m.mQ.V,(Ft=>{br.className+=" ab-swiped-right",Le!=null&&Le.onclick!=null&&Le.onclick(Ft)})),ve.slideFrom===w.Z.SlideFrom.TOP?(ot=m.mQ.Re,rn=" ab-swiped-up"):(ot=m.mQ.Se,rn=" ab-swiped-down"),(0,m.FZ)(br,ot,(Ft=>{br.className+=rn,Le!=null&&Le.onclick!=null&&Le.onclick(Ft)}))}return br})(z,(()=>{u.e(864).then(u.bind(u,4864)).then((ve=>{d.ZP.so()?ve.showFeed():x.Z.error(g.Go)}))}),(ve=>{if(z.ze()&&z.do()){const Ie=document.createElement("div");if(Ie.className="ab-page-blocker",z.Ce()||(Ie.style.backgroundColor=y(z.frameColor)),d.ZP.nn(d.JY.jo)&&(Ie.style.zIndex=d.ZP.nn(d.JY.jo).toString()),J.appendChild(Ie),!d.ZP.nn(d.JY.Lh)){const ke=new Date().valueOf();Ie.onclick=sr=>{new Date().valueOf()-ke>w.Z.fh&&(z.Ae(ve),sr.stopPropagation())}}J.appendChild(ve),ve.focus(),z.Oh(J)}else if(ne){const Ie=document.querySelectorAll(".ab-slideup");let ke=null;for(let sr=Ie.length-1;sr>=0;sr--)if(Ie[sr]!==ve){ke=Ie[sr];break}if(z.slideFrom===w.Z.SlideFrom.TOP){let sr=0;ke!=null&&(sr=ke.offsetTop+ke.offsetHeight),ve.style.top=Math.max(sr,0)+"px"}else{let sr=0;ke!=null&&(sr=(window.innerHeight||document.documentElement.clientHeight)-ke.offsetTop),ve.style.bottom=Math.max(sr,0)+"px"}}else if(te&&!d.ZP.nn(d.JY.Lh)){const Ie=z;(0,F.f)(ve)&&ve.contentWindow&&ve.contentWindow.addEventListener("keydown",(function(ke){ke.keyCode===oe.m.mh&&Ie.closeMessage()}))}O(z),z.dismissType===w.Z.DismissType.AUTO_DISMISS&&setTimeout((()=>{J.contains(ve)&&z.Ae(ve)}),z.duration),typeof X=="function"&&X()}),(ve=>{x.Z.info(ve)}),d.ZP.nn(d.JY.ho),d.ZP.nn(d.JY.jo),d.ZP.nn(d.JY.bo),Z);return(te||ne)&&(J.appendChild(ce),z.Oh(J)),!0}function We(z){if(d.ZP.X())return typeof z!="function"?null:h.Z.m()._i((function(Z){return z(Z[0]),Z.slice(1)}))}var He=u(5522),nr=u(1454),ar=u(2261),xr=u(7824),or=u(4790),lr=u(4650),Ve=u(1843),Ge=u(158),W=u(67),Y=u(1066),Q=u(1280);function re(z,Z){if(d.ZP.X())return Oe.rr().xs(z,Z)}class pe extends W.Z{constructor(Z,X){super(Z,X)}getUnviewedCardCount(){return super.getUnreadCardCount()}logCardImpressions(Z){(0,Y.p)(Z,!0)}logCardClick(Z){return(0,Q.d)(Z,!0)}sr(){re()}dr(){return!0}}pe.ur=6e4;var le=u(7750),Ee=u(5899),fe=u(5966),Pe=u(4663),ur=u(9179),cr=u(6870),de=u(6504);class Ae extends Ge.Z{constructor(Z,X,te,J,ne){super(),this.wt=Z,this.u=X,this.yt=te,this.Ft=J,this.qt=ne,this.wt=Z,this.u=X,this.yt=te,this.Ft=J,this.qt=ne,this.Jt=new Pe.Z,d.ZP.$t(this.Jt),this.Bt=0,this.Ht=0,this.cards=[],this.Kt();const ce=He.Z.Yt.Qt;new He.Z(ce,x.Z).Zt(ce.ss.ts,(ve=>{this.es(ve)})),this.hs=null,this.rs=null,this.ns=null,this.os=null,this.ls=null,this.us=10,this.cs=0}fs(){return this.hs}ds(Z){this.hs=Z}ps(){return this.rs}vs(Z){this.rs=Z}Kt(){if(!this.u)return;const Z=this.u.j(fe.I.C.ws)||[],X=[];for(let te=0;te<Z.length;te++){const J=(0,Ee.rN)(Z[te]);J!=null&&X.push(J)}this.cards=this.Cs(this.bs(X,!1)),this.Bt=this.u.j(fe.I.C.gs)||this.Bt,this.Ht=this.u.j(fe.I.C.ys)||this.Ht}js(Z,X=!1,te=0,J=0){let ne;if(X){ne=[];for(const ce of this.cards)ce.test&&ne.push(ce)}else ne=this.cards.slice();for(let ce=0;ce<Z.length;ce++){const ve=Z[ce];let Ie=null;for(let ke=0;ke<this.cards.length;ke++)if(ve.id===this.cards[ke].id){Ie=this.cards[ke];break}if(X){const ke=(0,Ee.xA)(ve);Ie!=null&&Ie.viewed&&ke&&(ke.viewed=!0),ke!=null&&ne.push(ke)}else if(Ie==null){const ke=(0,Ee.xA)(ve);ke!=null&&ne.push(ke)}else if(!Ie.Ct(ve)){for(let ke=0;ke<ne.length;ke++)if(ve.id===ne[ke].id){ne.splice(ke,1);break}}}this.cards=this.Cs(this.bs(ne,X)),this.Rs(),this.Bt=te,this.Ht=J,this.u&&(this.u.k(fe.I.C.gs,this.Bt),this.u.k(fe.I.C.ys,this.Ht))}Ns(Z){if(this.Ts()&&Z!=null&&Z.cards){this.u&&this.u.k(fe.I.C.Ss,d.ZP.Ds());const X=Z.full_sync;X||this.Kt(),this.js(Z.cards,X,Z.last_full_sync_at,Z.last_card_updated_at),this.Jt.Dt(this.Us(!0))}}ks(Z){this.u&&this.u.k(fe.I.C.As,Z)}Fs(Z,X,te){const J=()=>{this.xs(X,te,!0)},ne=Z?(0,Ve.D)(Z):null;let ce;if(this.zs(),!ne||!ne["retry-after"])return void this.ks(0);const ve=ne["retry-after"];if(isNaN(ve)&&!isNaN(Date.parse(ve)))ce=Date.parse(ve)-new Date().getTime(),ce<0&&J();else{if(isNaN(parseFloat(ve.toString())))return ur.Z.q(R.G.qs,{e:"Received unexpected value for retry-after header in /sync response"+": "+ve}),void this.ks(0);ce=1e3*parseFloat(ve.toString())}this.ns=window.setTimeout((()=>{J()}),ce);let Ie=0;this.u&&(Ie=this.u.j(fe.I.C.As)),(Ie==null||isNaN(parseInt(Ie.toString())))&&(Ie=0),this.ks(parseInt(Ie.toString())+1)}es(Z){var X;if(!this.Ts())return;this.Kt();const te=this.cards.slice();let J=null;J=(X=this.wt)===null||X===void 0?void 0:X.getUserId();for(let ne=0;ne<Z.length;ne++)if(J===Z[ne].userId||J==null&&Z[ne].userId==null){const ce=Z[ne].card;let ve=null;for(let Ie=0;Ie<this.cards.length;Ie++)if(ce.id===this.cards[Ie].id){ve=this.cards[Ie];break}if(ve==null){const Ie=(0,Ee.xA)(ce);Ie!=null&&te.push(Ie)}else if(!ve.Ct(ce)){for(let Ie=0;Ie<te.length;Ie++)if(ce.id===te[Ie].id){te.splice(Ie,1);break}}}this.cards=this.Cs(this.bs(te,!1)),this.Rs(),this.Jt.Dt(this.Us(!0))}bs(Z,X){let te={},J={},ne={};this.u&&(te=this.u.j(fe.I.C.v)||{},J=this.u.j(fe.I.C.H)||{},ne=this.u.j(fe.I.C.A)||{});const ce={},ve={},Ie={};for(let ke=0;ke<Z.length;ke++){const sr=Z[ke].id;sr&&(te[sr]&&(Z[ke].clicked=!0,ce[sr]=!0),J[sr]&&(Z[ke].viewed=!0,ve[sr]=!0),ne[sr]&&(Z[ke].dismissed=!0,Ie[sr]=!0))}return X&&this.u&&(this.u.k(fe.I.C.v,ce),this.u.k(fe.I.C.H,ve),this.u.k(fe.I.C.A,Ie)),Z}Cs(Z){const X=[],te=new Date;let J={};this.u&&(J=this.u.j(fe.I.C.A)||{});let ne=!1;for(let ce=0;ce<Z.length;ce++){const ve=Z[ce].url;if(!this.Ft&&ve&&(0,M.o)(ve)){x.Z.error(`Card with url ${ve} will not be displayed because Javascript URLs are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable this card.`);continue}const Ie=Z[ce].expiresAt;let ke=!0;if(Ie!=null&&(ke=Ie>=te),ke=ke&&!Z[ce].dismissed,ke)X.push(Z[ce]);else{const sr=Z[ce].id;sr&&(J[sr]=!0),ne=!0}}return ne&&this.u&&this.u.k(fe.I.C.A,J),X}Rs(){var Z;const X=[];for(let te=0;te<this.cards.length;te++)X.push(this.cards[te].Y());(Z=this.u)===null||Z===void 0||Z.k(fe.I.C.ws,X)}zs(){this.ns&&(clearTimeout(this.ns),this.ns=null)}Es(){this.os!=null&&(clearTimeout(this.os),this.os=null)}Ls(Z=1e3*this.us,X,te){this.Es(),this.os=window.setTimeout((()=>{this.xs(X,te,!0)}),Z),this.ls=Z}xs(Z,X,te=!1,J=!0){var ne;const ce=this.qt,ve=this.u;if(!ce||!ve)return void(typeof X=="function"&&X());if(!te&&(this.zs(),this.ks(0)),!this.Ts())return void((ne=this.yt)===null||ne===void 0||ne.Is((()=>{this.xs(Z,X)})));J&&this.Es();const Ie=ce.Js({},!0);ve.j(fe.I.C.Ss)!==d.ZP.Ds()&&this.Ms(),Ie.last_full_sync_at=this.Bt,Ie.last_card_updated_at=this.Ht;const ke=ce.$s(Ie,cr.Z.Ps.Bs,te);let sr=!1;ce.Xs(Ie,((jr=-1)=>{if(this.u){const wr=new Date().valueOf();cr.Z._s(this.u,cr.Z.Ps.Bs,wr)}jr!==-1&&ke.push(["X-Braze-Req-Tokens-Remaining",jr.toString()]),Ve.Z.Gs({url:`${ce.Hs()}/content_cards/sync`,data:Ie,headers:ke,L:(wr,Lr)=>{if(!ce.Ks(Ie,wr,ke))return sr=!0,void(typeof X=="function"&&X());ce.Os(),this.Fs(Lr,Z,X),this.Ns(wr),sr=!1,cr.Z.Qs(this.u,cr.Z.Ps.Bs,1),typeof Z=="function"&&Z()},error:wr=>{ce.Vs(wr,"retrieving content cards"),sr=!0,typeof X=="function"&&X()},Ws:()=>{if(sr&&J&&!this.os&&this.cs+1<g.Tt){cr.Z.Ys(this.u,cr.Z.Ps.Bs);let wr=this.ls;(wr==null||wr<1e3*this.us)&&(wr=1e3*this.us),this.Ls(Math.min(3e5,(0,de.R)(1e3*this.us,3*wr)),Z,X),this.cs=this.cs+1}}})}),cr.Z.Ps.Bs,X)}Us(Z){Z||this.Kt();const X=this.Cs(this.cards);X.sort(((J,ne)=>J.pinned&&!ne.pinned?-1:ne.pinned&&!J.pinned?1:J.updated&&ne.updated&&J.updated>ne.updated?-1:J.updated&&ne.updated&&ne.updated>J.updated?1:0));let te=Math.max(this.Ht||0,this.Bt||0);return te===0&&(te=void 0),this.u&&this.u.j(fe.I.C.ys)===this.Ht&&te===void 0&&(te=this.Ht),new pe(X,(0,le.X2)(te))}Zs(Z){return this.Jt.It(Z)}Ms(){this.Bt=0,this.Ht=0,this.u&&(this.u.ti(fe.I.C.gs),this.u.ti(fe.I.C.ys))}changeUser(Z){Z||(this.cards=[],this.Jt.Dt(new pe(this.cards.slice(),null)),this.u&&(this.u.ti(fe.I.C.ws),this.u.ti(fe.I.C.v),this.u.ti(fe.I.C.H),this.u.ti(fe.I.C.A))),this.Ms()}clearData(Z){this.Bt=0,this.Ht=0,this.cards=[],this.Jt.Dt(new pe(this.cards.slice(),null)),Z&&this.u&&(this.u.ti(fe.I.C.ws),this.u.ti(fe.I.C.v),this.u.ti(fe.I.C.H),this.u.ti(fe.I.C.A),this.u.ti(fe.I.C.gs),this.u.ti(fe.I.C.ys))}Ts(){return!(!this.yt||!this.yt.si()&&(this.yt.ii()!==0&&this.ei(),1))}ei(){this.Jt.Dt(new pe([],new Date)),this.u&&this.u.ti(fe.I.C.ws)}}const Ne={t:!1,provider:null,rr:()=>(Ne.o(),Ne.provider||(Ne.provider=new Ae(d.ZP.er(),d.ZP.l(),d.ZP.ir(),d.ZP.tr(),d.ZP.nr()),d.ZP.ar(Ne.provider)),Ne.provider),o:()=>{Ne.t||(d.ZP.g(Ne),Ne.t=!0)},destroy:()=>{Ne.provider=null,Ne.t=!1}},Oe=Ne;function De(z){if(!d.ZP.X())return;const Z=Oe.rr(),X=Z.Zs(z);if(!Z.ps()){const te=d.ZP.cr();if(te){const J=te.mr((()=>{Z.xs()}));J&&Z.vs(J)}}return X}var Te=u(1311),vr=u(5608),$r=u(6959);function Me(z,Z){if(!d.ZP.X())return;(0,$r.B)();let X=!1;z==null&&(z=document.body,X=!0);const te=d.ZP.nn(d.JY.tn)||d.ZP.nn(d.JY.en)||!1,J=Oe.rr().Us(!1);typeof Z=="function"&&(0,Te.Of)(J,Z(J.cards.slice()),J.lastUpdated,null,te);const ne=(0,Te.Yz)(J,te,X),ce=Oe.rr(),ve=ce.fs();(J.lastUpdated==null||new Date().valueOf()-J.lastUpdated.valueOf()>pe.ur)&&(ve==null||new Date().valueOf()-ve>pe.ur)&&(x.Z.info(`Cached content cards were older than max TTL of ${pe.ur} ms, requesting an update from the server.`),(0,Te.cV)(J,ne),ce.ds(new Date().valueOf()));const Ie=new Date().valueOf(),ke=De((function(wr){const Lr=ne.querySelectorAll(".ab-refresh-button")[0];if(Lr!=null){let br=500,Le=br-=new Date().valueOf()-Ie;const ot=ne.getAttribute(Te.cP);ot&&(Le=parseInt(ot),isNaN(Le)||(br-=new Date().valueOf()-Le)),setTimeout((function(){Lr.className=Lr.className.replace(/fa-spin/g,"")}),Math.max(br,0))}let Ar=wr.cards;typeof Z=="function"&&(Ar=Z(Ar.slice())),(0,Te.Of)(J,Ar,wr.lastUpdated,ne,te)}));(0,Te.GB)(ke,ne);const sr=function(wr){const Lr=wr.querySelectorAll(".ab-feed");let Ar=null;for(let br=0;br<Lr.length;br++)Lr[br].parentNode===wr&&(Ar=Lr[br]);Ar!=null?((0,Te.tQ)(Ar),Ar.parentNode!=null&&Ar.parentNode.replaceChild(ne,Ar)):wr.appendChild(ne),setTimeout((function(){ne.className=ne.className.replace("ab-hide","ab-show")}),0),X&&ne.focus(),(0,Te.cz)(J,ne),(0,vr.CG)(J.cards,wr)};var jr;z!=null?sr(z):window.onload=(jr=window.onload,function(){typeof jr=="function"&&jr(new Event("oldLoad")),sr(document.body)})}var rr=u(2080);function Xe(z,Z){(Z==null||Z>z.length)&&(Z=z.length);for(var X=0,te=Array(Z);X<Z;X++)te[X]=z[X];return te}var Qe={get screenWidth(){return window.screen.width},get screenHeight(){return window.screen.height},get queryString(){return window.location.search},get queryParams(){var z,Z=Qe.queryString,X=new URLSearchParams(Z),te={},J=(function(ve,Ie){var ke=typeof Symbol<"u"&&ve[Symbol.iterator]||ve["@@iterator"];if(!ke){if(Array.isArray(ve)||(ke=(function(br,Le){if(br){if(typeof br=="string")return Xe(br,Le);var ot={}.toString.call(br).slice(8,-1);return ot==="Object"&&br.constructor&&(ot=br.constructor.name),ot==="Map"||ot==="Set"?Array.from(br):ot==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ot)?Xe(br,Le):void 0}})(ve))||Ie){ke&&(ve=ke);var sr=0,jr=function(){};return{s:jr,n:function(){return sr>=ve.length?{done:!0}:{done:!1,value:ve[sr++]}},e:function(br){throw br},f:jr}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
59
59
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var wr,Lr=!0,Ar=!1;return{s:function(){ke=ke.call(ve)},n:function(){var br=ke.next();return Lr=br.done,br},e:function(br){Ar=!0,wr=br},f:function(){try{Lr||ke.return==null||ke.return()}finally{if(Ar)throw wr}}}})(X.keys());try{for(J.s();!(z=J.n()).done;){var ne=z.value;if(!(ne in te)){var ce=X.getAll(ne);ce.length>1?te[ne]=ce:te[ne]=ce[0]}}}catch(ve){J.e(ve)}finally{J.f()}return te&&Object.keys(te).length?JSON.stringify(te):Z},get referrer(){return window.document.referrer},get title(){return window.document.title},get pathname(){return window.location.pathname},get hostname(){return window.location.hostname},get requestUrl(){return Qe.hostname+Qe.pathname},decodeURIComponent:function(z){return window.decodeURIComponent(z)}},hr=Qe,gr={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i},Kr="Unknown";function et(z,Z,X){if(!Z)return{name:z,version:Kr};var te=Z.exec(X);return{name:z,version:te&&te.length?te[0].trim():Kr}}var St=function(){var z=window.navigator.userAgent;return gr.mobileDevice.test(z)?gr.iphone.test(z)?"iPhone":gr.ipad.test(z)?"iPad":gr.android.test(z)?"Android":gr.blackberry.test(z)?"Blackberry":gr.windowsPhone.test(z)?"Windows Phone":Kr:"Desktop"},Gt={getEventDataPayload:function(z,Z){var X={product:this.getProductData(Z),client:this.getClientData(),request:this.getRequestData()};z.data&&Object.keys(z.data).length&&(X.data=z.data),z.actionType&&(X.action_type=z.actionType);var te=hr.requestUrl;return te&&(X.request_url=te),X},getProductData:function(z){var Z={name:z.name,version:z.version};return z.locale&&(Z.locale=z.locale),Z},getClientData:function(){return{os:(z=window.navigator.userAgent,gr.android.test(z)?et("Android",gr.androidVersion,z):gr.iphone.test(z)||gr.ipad.test(z)?et("iOS",gr.iosVersion,z):gr.linux.test(z)?et("Linux",null,z):gr.unix.test(z)?et("Unix",null,z):gr.mac.test(z)?et("Macintosh",gr.osxVersion,z):gr.windows.test(z)?(function(Z,X){var te={name:"Windows",version:null};return gr.win2000.test(X)&&(te.version="2000"),gr.winXP.test(X)&&(te.version="XP"),gr.winVista.test(X)&&(te.version="Vista"),gr.win7.test(X)&&(te.version="7"),gr.win8.test(X)&&(te.version="8"),gr.win81.test(X)&&(te.version="8.1"),gr.win10.test(X)&&(te.version="10"),te.version||(te.version=Kr),te})(0,z):gr.blackberry.test(z)?et("BlackBerry",gr.blackberryVersion,z):gr.windowsPhone.test(z)?et("Windows Phone",gr.windowsPhoneVersion,z):{name:Kr,version:Kr}),device:{type:St(),resolution:"".concat(hr.screenWidth,"x").concat(hr.screenHeight)}};var z},getRequestData:function(){var z=hr.queryParams,Z=hr.referrer,X=(function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"&",ne=hr.queryString;if(ne.length){var ce=hr.decodeURIComponent(ne.substring(1)),ve=new RegExp("((utm_[^=]+)=([^\\"+J+"]+))","gi"),Ie=ce.match(ve);if(Ie&&Ie.length){var ke=Ie.reduce((function(sr,jr){var wr=jr.split("=");return sr[wr[0].split("_")[1]]=wr[1],sr}),{});if(Object.keys(ke).length)return ke}}})(),te={page_name:hr.title,host_name:hr.hostname,path_name:hr.pathname};return z.length&&(te.query_params=z),Z.length&&(te.referrer=Z),X&&(te.utms=X),te}},it=function(z){throw new Error(z)},cn=function(z){for(var Z=arguments.length,X=new Array(Z>1?Z-1:0),te=1;te<Z;te++)X[te-1]=arguments[te];console.error(z,X)};function Za(z,Z){(Z==null||Z>z.length)&&(Z=z.length);for(var X=0,te=Array(Z);X<Z;X++)te[X]=z[X];return te}function va(z){return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},va(z)}var Qn=new RegExp(`[A-Za-z0-9 _.,!"'/$]*`),ea=new RegExp("^[a-z]+(?:_[a-z]+)*$"),ii=["productName","productVersion","apiKey","baseUrl"],Mt={clientUserAttributeValue:function(z){return typeof z=="boolean"?!0:!(!z||typeof z=="string"&&(!z.length||!(z.length<=255)||z[0]==="$"||!Qn.test(z)))},isSnakeCase:function(z){return ea.test(z)},additionalData:function(z){if(va(z)!=="object"||z===null)return!0;if(Array.isArray(z)){var Z,X=(function(ce,ve){var Ie=typeof Symbol<"u"&&ce[Symbol.iterator]||ce["@@iterator"];if(!Ie){if(Array.isArray(ce)||(Ie=(function(Ar,br){if(Ar){if(typeof Ar=="string")return Za(Ar,br);var Le={}.toString.call(Ar).slice(8,-1);return Le==="Object"&&Ar.constructor&&(Le=Ar.constructor.name),Le==="Map"||Le==="Set"?Array.from(Ar):Le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Le)?Za(Ar,br):void 0}})(ce))||ve){Ie&&(ce=Ie);var ke=0,sr=function(){};return{s:sr,n:function(){return ke>=ce.length?{done:!0}:{done:!1,value:ce[ke++]}},e:function(Ar){throw Ar},f:sr}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
60
60
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var jr,wr=!0,Lr=!1;return{s:function(){Ie=Ie.call(ce)},n:function(){var Ar=Ie.next();return wr=Ar.done,Ar},e:function(Ar){Lr=!0,jr=Ar},f:function(){try{wr||Ie.return==null||Ie.return()}finally{if(Lr)throw jr}}}})(z);try{for(X.s();!(Z=X.n()).done;){var te=Z.value;if(!Mt.additionalData(te))return!1}}catch(ce){X.e(ce)}finally{X.f()}}else for(var J in z){if(!Mt.isSnakeCase(J))return cn("'".concat(J,"' in additional data provided does not follow 'snake_case' naming convention.")),!1;var ne=z[J];if(va(ne)==="object"&&ne!==null&&!Mt.additionalData(ne))return!1}return!0},accountAddress:function(z){if(!z||va(z)!=="object")return!1;var Z=Object.keys(z);return!(Z.length===0||Z.length>2||Z.length===1&&!Z.includes("country_code")||Z.length===2&&!Z.includes("country_code")&&!Z.includes("province")||typeof z.country_code!="string"||Z.includes("province")&&typeof z.province!="string")},brazeClientOptions:function(z){z||it("No Client options provided."),ii.forEach((function(Z){z.hasOwnProperty(Z)||it('Cannot find the required "'.concat(Z,'" attribute in client options.'))}))}};function Ut(z){return Ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},Ut(z)}function Ha(){Ha=function(){return Z};var z,Z={},X=Object.prototype,te=X.hasOwnProperty,J=Object.defineProperty||function(Ye,Fe,Ue){Ye[Fe]=Ue.value},ne=typeof Symbol=="function"?Symbol:{},ce=ne.iterator||"@@iterator",ve=ne.asyncIterator||"@@asyncIterator",Ie=ne.toStringTag||"@@toStringTag";function ke(Ye,Fe,Ue){return Object.defineProperty(Ye,Fe,{value:Ue,enumerable:!0,configurable:!0,writable:!0}),Ye[Fe]}try{ke({},"")}catch{ke=function(Fe,Ue,_r){return Fe[Ue]=_r}}function sr(Ye,Fe,Ue,_r){var Cr=Fe&&Fe.prototype instanceof Le?Fe:Le,nt=Object.create(Cr.prototype),Ot=new tt(_r||[]);return J(nt,"_invoke",{value:st(Ye,Ue,Ot)}),nt}function jr(Ye,Fe,Ue){try{return{type:"normal",arg:Ye.call(Fe,Ue)}}catch(_r){return{type:"throw",arg:_r}}}Z.wrap=sr;var wr="suspendedStart",Lr="executing",Ar="completed",br={};function Le(){}function ot(){}function rn(){}var Ft={};ke(Ft,ce,(function(){return this}));var fi=Object.getPrototypeOf,Bt=fi&&fi(fi(tn([])));Bt&&Bt!==X&&te.call(Bt,ce)&&(Ft=Bt);var ft=rn.prototype=Le.prototype=Object.create(Ft);function Ln(Ye){["next","throw","return"].forEach((function(Fe){ke(Ye,Fe,(function(Ue){return this._invoke(Fe,Ue)}))}))}function Yr(Ye,Fe){function Ue(Cr,nt,Ot,Sn){var wn=jr(Ye[Cr],Ye,nt);if(wn.type!=="throw"){var ga=wn.arg,Ai=ga.value;return Ai&&Ut(Ai)=="object"&&te.call(Ai,"__await")?Fe.resolve(Ai.__await).then((function(Wa){Ue("next",Wa,Ot,Sn)}),(function(Wa){Ue("throw",Wa,Ot,Sn)})):Fe.resolve(Ai).then((function(Wa){ga.value=Wa,Ot(ga)}),(function(Wa){return Ue("throw",Wa,Ot,Sn)}))}Sn(wn.arg)}var _r;J(this,"_invoke",{value:function(Cr,nt){function Ot(){return new Fe((function(Sn,wn){Ue(Cr,nt,Sn,wn)}))}return _r=_r?_r.then(Ot,Ot):Ot()}})}function st(Ye,Fe,Ue){var _r=wr;return function(Cr,nt){if(_r===Lr)throw Error("Generator is already running");if(_r===Ar){if(Cr==="throw")throw nt;return{value:z,done:!0}}for(Ue.method=Cr,Ue.arg=nt;;){var Ot=Ue.delegate;if(Ot){var Sn=gt(Ot,Ue);if(Sn){if(Sn===br)continue;return Sn}}if(Ue.method==="next")Ue.sent=Ue._sent=Ue.arg;else if(Ue.method==="throw"){if(_r===wr)throw _r=Ar,Ue.arg;Ue.dispatchException(Ue.arg)}else Ue.method==="return"&&Ue.abrupt("return",Ue.arg);_r=Lr;var wn=jr(Ye,Fe,Ue);if(wn.type==="normal"){if(_r=Ue.done?Ar:"suspendedYield",wn.arg===br)continue;return{value:wn.arg,done:Ue.done}}wn.type==="throw"&&(_r=Ar,Ue.method="throw",Ue.arg=wn.arg)}}}function gt(Ye,Fe){var Ue=Fe.method,_r=Ye.iterator[Ue];if(_r===z)return Fe.delegate=null,Ue==="throw"&&Ye.iterator.return&&(Fe.method="return",Fe.arg=z,gt(Ye,Fe),Fe.method==="throw")||Ue!=="return"&&(Fe.method="throw",Fe.arg=new TypeError("The iterator does not provide a '"+Ue+"' method")),br;var Cr=jr(_r,Ye.iterator,Fe.arg);if(Cr.type==="throw")return Fe.method="throw",Fe.arg=Cr.arg,Fe.delegate=null,br;var nt=Cr.arg;return nt?nt.done?(Fe[Ye.resultName]=nt.value,Fe.next=Ye.nextLoc,Fe.method!=="return"&&(Fe.method="next",Fe.arg=z),Fe.delegate=null,br):nt:(Fe.method="throw",Fe.arg=new TypeError("iterator result is not an object"),Fe.delegate=null,br)}function _n(Ye){var Fe={tryLoc:Ye[0]};1 in Ye&&(Fe.catchLoc=Ye[1]),2 in Ye&&(Fe.finallyLoc=Ye[2],Fe.afterLoc=Ye[3]),this.tryEntries.push(Fe)}function dn(Ye){var Fe=Ye.completion||{};Fe.type="normal",delete Fe.arg,Ye.completion=Fe}function tt(Ye){this.tryEntries=[{tryLoc:"root"}],Ye.forEach(_n,this),this.reset(!0)}function tn(Ye){if(Ye||Ye===""){var Fe=Ye[ce];if(Fe)return Fe.call(Ye);if(typeof Ye.next=="function")return Ye;if(!isNaN(Ye.length)){var Ue=-1,_r=function Cr(){for(;++Ue<Ye.length;)if(te.call(Ye,Ue))return Cr.value=Ye[Ue],Cr.done=!1,Cr;return Cr.value=z,Cr.done=!0,Cr};return _r.next=_r}}throw new TypeError(Ut(Ye)+" is not iterable")}return ot.prototype=rn,J(ft,"constructor",{value:rn,configurable:!0}),J(rn,"constructor",{value:ot,configurable:!0}),ot.displayName=ke(rn,Ie,"GeneratorFunction"),Z.isGeneratorFunction=function(Ye){var Fe=typeof Ye=="function"&&Ye.constructor;return!!Fe&&(Fe===ot||(Fe.displayName||Fe.name)==="GeneratorFunction")},Z.mark=function(Ye){return Object.setPrototypeOf?Object.setPrototypeOf(Ye,rn):(Ye.__proto__=rn,ke(Ye,Ie,"GeneratorFunction")),Ye.prototype=Object.create(ft),Ye},Z.awrap=function(Ye){return{__await:Ye}},Ln(Yr.prototype),ke(Yr.prototype,ve,(function(){return this})),Z.AsyncIterator=Yr,Z.async=function(Ye,Fe,Ue,_r,Cr){Cr===void 0&&(Cr=Promise);var nt=new Yr(sr(Ye,Fe,Ue,_r),Cr);return Z.isGeneratorFunction(Fe)?nt:nt.next().then((function(Ot){return Ot.done?Ot.value:nt.next()}))},Ln(ft),ke(ft,Ie,"Generator"),ke(ft,ce,(function(){return this})),ke(ft,"toString",(function(){return"[object Generator]"})),Z.keys=function(Ye){var Fe=Object(Ye),Ue=[];for(var _r in Fe)Ue.push(_r);return Ue.reverse(),function Cr(){for(;Ue.length;){var nt=Ue.pop();if(nt in Fe)return Cr.value=nt,Cr.done=!1,Cr}return Cr.done=!0,Cr}},Z.values=tn,tt.prototype={constructor:tt,reset:function(Ye){if(this.prev=0,this.next=0,this.sent=this._sent=z,this.done=!1,this.delegate=null,this.method="next",this.arg=z,this.tryEntries.forEach(dn),!Ye)for(var Fe in this)Fe.charAt(0)==="t"&&te.call(this,Fe)&&!isNaN(+Fe.slice(1))&&(this[Fe]=z)},stop:function(){this.done=!0;var Ye=this.tryEntries[0].completion;if(Ye.type==="throw")throw Ye.arg;return this.rval},dispatchException:function(Ye){if(this.done)throw Ye;var Fe=this;function Ue(wn,ga){return nt.type="throw",nt.arg=Ye,Fe.next=wn,ga&&(Fe.method="next",Fe.arg=z),!!ga}for(var _r=this.tryEntries.length-1;_r>=0;--_r){var Cr=this.tryEntries[_r],nt=Cr.completion;if(Cr.tryLoc==="root")return Ue("end");if(Cr.tryLoc<=this.prev){var Ot=te.call(Cr,"catchLoc"),Sn=te.call(Cr,"finallyLoc");if(Ot&&Sn){if(this.prev<Cr.catchLoc)return Ue(Cr.catchLoc,!0);if(this.prev<Cr.finallyLoc)return Ue(Cr.finallyLoc)}else if(Ot){if(this.prev<Cr.catchLoc)return Ue(Cr.catchLoc,!0)}else{if(!Sn)throw Error("try statement without catch or finally");if(this.prev<Cr.finallyLoc)return Ue(Cr.finallyLoc)}}}},abrupt:function(Ye,Fe){for(var Ue=this.tryEntries.length-1;Ue>=0;--Ue){var _r=this.tryEntries[Ue];if(_r.tryLoc<=this.prev&&te.call(_r,"finallyLoc")&&this.prev<_r.finallyLoc){var Cr=_r;break}}Cr&&(Ye==="break"||Ye==="continue")&&Cr.tryLoc<=Fe&&Fe<=Cr.finallyLoc&&(Cr=null);var nt=Cr?Cr.completion:{};return nt.type=Ye,nt.arg=Fe,Cr?(this.method="next",this.next=Cr.finallyLoc,br):this.complete(nt)},complete:function(Ye,Fe){if(Ye.type==="throw")throw Ye.arg;return Ye.type==="break"||Ye.type==="continue"?this.next=Ye.arg:Ye.type==="return"?(this.rval=this.arg=Ye.arg,this.method="return",this.next="end"):Ye.type==="normal"&&Fe&&(this.next=Fe),br},finish:function(Ye){for(var Fe=this.tryEntries.length-1;Fe>=0;--Fe){var Ue=this.tryEntries[Fe];if(Ue.finallyLoc===Ye)return this.complete(Ue.completion,Ue.afterLoc),dn(Ue),br}},catch:function(Ye){for(var Fe=this.tryEntries.length-1;Fe>=0;--Fe){var Ue=this.tryEntries[Fe];if(Ue.tryLoc===Ye){var _r=Ue.completion;if(_r.type==="throw"){var Cr=_r.arg;dn(Ue)}return Cr}}throw Error("illegal catch attempt")},delegateYield:function(Ye,Fe,Ue){return this.delegate={iterator:tn(Ye),resultName:Fe,nextLoc:Ue},this.method==="next"&&(this.arg=z),br}},Z}function Va(z,Z){for(var X=0;X<Z.length;X++){var te=Z[X];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(z,Qt(te.key),te)}}function Qt(z){var Z=(function(X,te){if(Ut(X)!="object"||!X)return X;var J=X[Symbol.toPrimitive];if(J!==void 0){var ne=J.call(X,"string");if(Ut(ne)!="object")return ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(X)})(z);return Ut(Z)=="symbol"?Z:Z+""}var yn=(function(){function z(J){(function(ne,ce){if(!(ne instanceof ce))throw new TypeError("Cannot call a class as a function")})(this,z),Mt.brazeClientOptions(J),this.options=J,this.initialize()}var Z,X,te;return Z=z,X=[{key:"initialize",value:function(){var J,ne;J=this.options.apiKey,ne={baseUrl:this.options.baseUrl,enableLogging:this.options.enableLogging,allowUserSuppliedJavascript:this.options.allowUserSuppliedJavascript,minimumIntervalBetweenTriggerActionsInSeconds:this.options.minimumIntervalBetweenTriggerActionsInSeconds,doNotLoadFontAwesome:!0},d.ZP.initialize(J,ne)||it('Cannot initialize client. Please make sure your "apiKey" and "baseUrl" is valid.'),this.options.automaticallyShowInAppMessages&&(function(){if(!d.ZP.X())return;_();const ce=h.Z.m();if(ce.Pi()==null){const ve=We((Ie=>Re(Ie)));ce.$i(ve)}ce.Pi()})()}},{key:"openSession",value:function(){(function(){if(!d.ZP.X())return;const J=d.ZP.cr();if(!J)return;J.openSession();const ne=He.Z.Yt.Qt,ce=new He.Z(ne,x.Z);ce.jr(ne.ss.hr,((ve,Ie)=>{const ke=Ie.lastClick,sr=Ie.trackingString;x.Z.info(`Firing push click trigger from ${sr} push click at ${ke}`);const jr=J.kr(ke,sr),wr=function(){k.n.rr().fe(j.Z.vr,[sr],jr)};J.$r(wr,wr),ce.re(ne.ss.hr,ve)})),ce.Zt(ne.ss.wr,(function(ve){J.yr(ve)}))})()}},{key:"logEvent",value:function(J){var ne,ce=Gt.getEventDataPayload(J,{name:this.options.productName,version:this.options.productVersion,locale:(ne=this.options)===null||ne===void 0?void 0:ne.locale});return nr.logCustomEvent(J.type,ce)}},{key:"getUserId",value:function(){return this.getBrazeUser().getUserId()}},{key:"setCustomUserAttribute",value:function(J,ne){var ce=this.getBrazeUser();return Mt.clientUserAttributeValue(ne)||it("Invalid custom user attribute value: '".concat(ne,"' for key: '").concat(J,"'")),ce.setCustomUserAttribute(J,ne)}},{key:"bulkSetCustomUserAttributes",value:function(J){var ne=this;Object.keys(J).length||it("Cannot bulk set emptry object for custom user attributes"),Object.keys(J).forEach((function(ce){var ve=J[ce];ne.setCustomUserAttribute(ce,ve)}))}},{key:"requestPushPermission",value:function(J,ne){ar.requestPushPermission(J,ne)}},{key:"unregisterPush",value:function(J,ne){xr.unregisterPush(J,ne)}},{key:"setAlias",value:function(J,ne){this.getBrazeUser().addAlias(ne,J)}},{key:"setUser",value:function(J){or.changeUser(J)}},{key:"setUserFirstName",value:function(J){this.getBrazeUser().setFirstName(J)}},{key:"setUserLastName",value:function(J){this.getBrazeUser().setLastName(J)}},{key:"setUserEmail",value:function(J){this.getBrazeUser().setEmail(J)}},{key:"setUserCountry",value:function(J){this.getBrazeUser().setCountry(J)}},{key:"setUserPhone",value:function(J){this.getBrazeUser().setPhoneNumber(J)}},{key:"setUserGender",value:function(J){this.getBrazeUser().setGender(J)}},{key:"setUserEmailNotificationSubscriptionType",value:function(J){return this.getBrazeUser().setEmailNotificationSubscriptionType(J)}},{key:"sendData",value:function(J){J&&typeof J=="function"?lr.requestImmediateDataFlush(J):lr.requestImmediateDataFlush()}},{key:"hasUser",value:function(){try{if(this.getBrazeUser())return!0}catch{return!1}finally{return!1}}},{key:"getBrazeUser",value:function(){var J=H.P();return J||it("No valid user found!"),J}},{key:"getContentCardsV2",value:function(){return(function(){if(d.ZP.X())return Oe.rr().Us(!1)})()}},{key:"showContentCards",value:function(J,ne){return Me(J,ne)}},{key:"getContentCards",value:function(){return J=this,ne=void 0,ce=void 0,ve=Ha().mark((function Ie(){return Ha().wrap((function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ke.abrupt("return",new Promise((function(sr,jr){Me(null,(function(wr){return wr?sr(wr):jr(new Error("No content cards found.")),wr}))})));case 1:case"end":return ke.stop()}}),Ie)})),new(ce||(ce=Promise))((function(Ie,ke){function sr(Lr){try{wr(ve.next(Lr))}catch(Ar){ke(Ar)}}function jr(Lr){try{wr(ve.throw(Lr))}catch(Ar){ke(Ar)}}function wr(Lr){var Ar;Lr.done?Ie(Lr.value):(Ar=Lr.value,Ar instanceof ce?Ar:new ce((function(br){br(Ar)}))).then(sr,jr)}wr((ve=ve.apply(J,ne||[])).next())}));var J,ne,ce,ve}},{key:"hideCards",value:function(J){(function(ne){if(!d.ZP.X())return;const ce=document.querySelectorAll(".ab-feed");for(let ve=0;ve<ce.length;ve++)(ne==null||ne!=null&&ce[ve].parentNode===ne)&&(0,Te.tQ)(ce[ve])})(J)}},{key:"logContentCardDismissal",value:function(J){J||it('No "card" provided in "logContentCardDismissal"'),rr.K(J)}},{key:"logContentCardClick",value:function(J){J||it('No "card" provided in "logContentCardClick"'),Q.d(J,!0)}},{key:"logContentCardImpressions",value:function(J){var ne;J&&J.length||it('No "cards" provided in "logContentCardImpressions"'),ne=J,(0,Y.p)(ne,!0)}},{key:"requestContentCardRefresh",value:function(J,ne){return re(J,ne)}},{key:"subscribeToContentCardUpdate",value:function(J){return J||it('No "subscriber" provided in "subscribeToContentCardUpdate"'),De(J)}},{key:"subscribeToInAppMessage",value:function(J){return J||it('No "callback" provided in "subscribeToInAppMessage".'),We(J)}},{key:"showInAppMessage",value:function(J,ne,ce){return J||it('Invalid "inAppMessage" provided in "showInAppMessage".'),Re(J,ne,ce)}},{key:"logInAppMessageClick",value:function(J){return J||it('Invalid "inAppMessage" provided in "logInAppMessageClick".'),N(J)}},{key:"logInAppMessageButtonClick",value:function(J,ne){return J&&ne||it('Invalid params supplied in "logInAppMessageButtonClick".'),ae(J,ne)}},{key:"logInAppMessageHtmlClick",value:function(J,ne,ce){return J||it('Invalid "inAppMessage" provided in "logInAppMessageHtmlClick".'),B(J,ne,ce)}},{key:"logInAppMessageImpression",value:function(J){return J||it('Invalid "inAppMessage" provided in "logInAppMessageImpression".'),O(J)}}],te=[{key:"getInstance",value:function(J){return this._instance||(this._instance=new this(J))}}],X&&Va(Z.prototype,X),te&&Va(Z,te),Object.defineProperty(Z,"prototype",{writable:!1}),z})();function qn(z){return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},qn(z)}function To(z,Z){for(var X=0;X<Z.length;X++){var te=Z[X];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(z,Ce(te.key),te)}}function Ce(z){var Z=(function(X,te){if(qn(X)!="object"||!X)return X;var J=X[Symbol.toPrimitive];if(J!==void 0){var ne=J.call(X,"string");if(qn(ne)!="object")return ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(X)})(z);return qn(Z)=="symbol"?Z:Z+""}var Ke=(function(){function z(te){(function(J,ne){if(!(J instanceof ne))throw new TypeError("Cannot call a class as a function")})(this,z),this.options=te,this.apiClient=te.apiClient}var Z,X;return Z=z,(X=[{key:"safelyExecute",value:function(te){try{return te()}catch(J){J instanceof Error&&cn(J.message),typeof J=="string"&&cn(J)}}}])&&To(Z.prototype,X),Object.defineProperty(Z,"prototype",{writable:!1}),z})();function xe(z){return xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},xe(z)}function me(z,Z){for(var X=0;X<Z.length;X++){var te=Z[X];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(z,Be(te.key),te)}}function Be(z){var Z=(function(X,te){if(xe(X)!="object"||!X)return X;var J=X[Symbol.toPrimitive];if(J!==void 0){var ne=J.call(X,"string");if(xe(ne)!="object")return ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(X)})(z);return xe(Z)=="symbol"?Z:Z+""}function kr(z,Z){return kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(X,te){return X.__proto__=te,X},kr(z,Z)}function mr(z){var Z=Fr();return function(){var X,te=Rt(z);if(Z){var J=Rt(this).constructor;X=Reflect.construct(te,arguments,J)}else X=te.apply(this,arguments);return wt(this,X)}}function wt(z,Z){if(Z&&(xe(Z)=="object"||typeof Z=="function"))return Z;if(Z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(X){if(X===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X})(z)}function Fr(){try{var z=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(Fr=function(){return!!z})()}function Rt(z){return Rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},Rt(z)}var fn=(function(z){(function(ne,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(ce&&ce.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),ce&&kr(ne,ce)})(J,z);var Z,X,te=mr(J);function J(ne){return(function(ce,ve){if(!(ce instanceof ve))throw new TypeError("Cannot call a class as a function")})(this,J),te.call(this,ne)}return Z=J,(X=[{key:"getAll",value:function(){return this.apiClient.getContentCardsV2()}},{key:"getContentCards",value:function(){return this.apiClient.getContentCards()}},{key:"show",value:function(ne,ce){return this.apiClient.showContentCards(ne,ce)}},{key:"hide",value:function(ne){return this.apiClient.hideCards(ne)}},{key:"logDismissal",value:function(ne){return this.apiClient.logContentCardDismissal(ne)}},{key:"logClick",value:function(ne){return this.apiClient.logContentCardClick(ne)}},{key:"logImpressions",value:function(ne){return this.apiClient.logContentCardImpressions(ne)}},{key:"requestRefresh",value:function(ne,ce){return this.apiClient.requestContentCardRefresh(ne,ce)}},{key:"subscribe",value:function(ne){return this.apiClient.subscribeToContentCardUpdate(ne)}}])&&me(Z.prototype,X),Object.defineProperty(Z,"prototype",{writable:!1}),J})(Ke);function ze(z){return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},ze(z)}function Et(z,Z){for(var X=0;X<Z.length;X++){var te=Z[X];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(z,pa(te.key),te)}}function pa(z){var Z=(function(X,te){if(ze(X)!="object"||!X)return X;var J=X[Symbol.toPrimitive];if(J!==void 0){var ne=J.call(X,"string");if(ze(ne)!="object")return ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(X)})(z);return ze(Z)=="symbol"?Z:Z+""}function oi(z,Z){return oi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(X,te){return X.__proto__=te,X},oi(z,Z)}function wi(z){var Z=Wi();return function(){var X,te=Dn(z);if(Z){var J=Dn(this).constructor;X=Reflect.construct(te,arguments,J)}else X=te.apply(this,arguments);return Vn(this,X)}}function Vn(z,Z){if(Z&&(ze(Z)=="object"||typeof Z=="function"))return Z;if(Z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(X){if(X===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X})(z)}function Wi(){try{var z=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(Wi=function(){return!!z})()}function Dn(z){return Dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},Dn(z)}var vu,pu,gu,Ki,Yi,Ei,Ji,mu,yu,Ro,si,en,bn,ql,bu=(function(z){(function(ne,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(ce&&ce.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),ce&&oi(ne,ce)})(J,z);var Z,X,te=wi(J);function J(ne){return(function(ce,ve){if(!(ce instanceof ve))throw new TypeError("Cannot call a class as a function")})(this,J),te.call(this,ne)}return Z=J,(X=[{key:"show",value:function(ne,ce,ve){return this.apiClient.showInAppMessage(ne,ce,ve)}},{key:"logMessageClick",value:function(ne){return this.apiClient.logInAppMessageClick(ne)}},{key:"logButtonClick",value:function(ne,ce){return this.apiClient.logInAppMessageButtonClick(ne,ce)}},{key:"logHtmlMessageClick",value:function(ne,ce,ve){return this.apiClient.logInAppMessageHtmlClick(ne,ce,ve)}},{key:"logImpression",value:function(ne){return this.apiClient.logInAppMessageImpression(ne)}},{key:"subscribe",value:function(ne){return this.apiClient.subscribeToInAppMessage(ne)}}])&&Et(Z.prototype,X),Object.defineProperty(Z,"prototype",{writable:!1}),J})(Ke),ct={all:["streamable","clickview"],cv:["clickview"],sl:["streamable"],none:[]};(function(z){z.AU="au",z.NZ="nz",z.UK="uk",z.US="us"})(vu||(vu={})),(function(z){z.PageView="page_view"})(pu||(pu={})),(function(z){z.ButtonClick="marketing_button_click",z.LinkClick="marketing_link_click"})(gu||(gu={})),(function(z){z.FreeTrialSignup="marketing_free_trial_signup",z.DemoSignup="marketing_demo_signup",z.PostFreeTrialSubmission="marketing_post_free_trial_submission",z.FormSubmission="marketing_form_submission",z.ContactFormSubmission="marketing_contact_us_submission",z.CallBooked="marketing_call_booked",z.NewsletterSignup="cv_marketing_newsletter_sign_up",z.MarketingTradeshowSubmission="marketing_tradeshow_submission",z.LandingPageFormSubmission="cv_marketing_lp_form_submission"})(Ki||(Ki={})),(function(z){z.ProductTrailRequested="product_trial_requested",z.FormSubmission="product_form_submission",z.TrialUpgradeRequested="product_trial_upgrade_requested",z.OlympicsOfferSubmission="product_olympics_offer_submission",z.BdmTrialRequested="cv_product_bdm_trial_requested"})(Yi||(Yi={})),(function(z){z.ContactUsFormSubmit="streamable_contact_us_submission",z.LivestreamBookingFormSubmit="streamable_livestream_booking_submission"})(Ei||(Ei={})),(function(z){z.TrialRequested="sl_marketing_trial_requested",z.HalloweenFormSubmission="sl_marketing_halloween_submission",z.NewsletterSignup="sl_marketing_newsletter_sign_up",z.RequestPricing="sl_marketing_pricing_requested",z.LandingPageFormSubmission="sl_marketing_lp_form_submission",z.ContactUsFormSubmit="sl_marketing_contact_us_submission"})(Ji||(Ji={})),(function(z){z.ContactUsFormSubmit="ch_marketing_contact_us_submission"})(mu||(mu={})),(function(z){z.ExploreTopics="product_explore_topics",z.Stream="product_stream",z.Search="product_search",z.SearchClickthrough="product_search_clickthrough",z.ClickBookACall="product_book_a_call_clicked",z.Share="product_share",z.DownloadResource="product_download_resource",z.Invite="product_invite_send",z.PlayerDeviceCta="product_player_devices_cta",z.SettingsIntegrations="product_settings_integrations"})(yu||(yu={})),(function(z){z.AddToSubscriptionGroups="add_to_subscription_groups"})(Ro||(Ro={})),(function(z){z.FirstName="first_name",z.LastName="last_name",z.Email="email",z.Phone="phone_number"})(si||(si={})),(function(z){z.CrmId="cvc_id",z.JobTitle="job_title",z.AccountOwner="account_owner",z.Department="department",z.AccountName="account_name",z.AccountType="account_type",z.OrgType="organisation_type",z.OrgSubType="organisation_sub_type",z.SyncToCrm="sync_to_crm",z.MasterId="master_id",z.AccountAddress="account_address",z.Topic="topic",z.Source="source"})(en||(en={})),(function(z){z.AccountCity="account_city",z.AccountState="account_state",z.AccountPostCode="account_post_code",z.AccountCountry="account_country",z.HowCanWeHelp="how_can_we_help",z.ReasonForInterest="reason_for_interest",z.EventTopic="event_topic",z.ContactUsComment="contact_us_comment"})(bn||(bn={})),(function(z){z.Marketing="marketing_id",z.Product="master_id",z.Email="email"})(ql||(ql={}));function Ci(z){return Ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},Ci(z)}function Dl(z,Z){for(var X=0;X<Z.length;X++){var te=Z[X];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(z,_u(te.key),te)}}function _u(z){var Z=(function(X,te){if(Ci(X)!="object"||!X)return X;var J=X[Symbol.toPrimitive];if(J!==void 0){var ne=J.call(X,"string");if(Ci(ne)!="object")return ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(X)})(z);return Ci(Z)=="symbol"?Z:Z+""}function ms(z,Z){return ms=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(X,te){return X.__proto__=te,X},ms(z,Z)}function Ll(z){var Z=ys();return function(){var X,te=xi(z);if(Z){var J=xi(this).constructor;X=Reflect.construct(te,arguments,J)}else X=te.apply(this,arguments);return Ml(this,X)}}function Ml(z,Z){if(Z&&(Ci(Z)=="object"||typeof Z=="function"))return Z;if(Z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(X){if(X===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X})(z)}function ys(){try{var z=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(ys=function(){return!!z})()}function xi(z){return xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},xi(z)}var ui=(function(z){(function(ne,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(ce&&ce.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),ce&&ms(ne,ce)})(J,z);var Z,X,te=Ll(J);function J(ne){return(function(ce,ve){if(!(ce instanceof ve))throw new TypeError("Cannot call a class as a function")})(this,J),te.call(this,ne)}return Z=J,X=[{key:"logForm",value:function(ne){var ce;this.log(ne),(function(ve){var Ie;switch((Ie=ve==null?void 0:ve.internalOptions)===null||Ie===void 0?void 0:Ie.subscriptionGroups){case"all":case"cv":case"sl":return!0;default:return!1}})(ne)&&this.logInternal({eventType:Ro.AddToSubscriptionGroups,additionalData:{products:ct[(ce=ne.internalOptions)===null||ce===void 0?void 0:ce.subscriptionGroups]}})}},{key:"logAnalytics",value:function(ne){this.log(ne,!1)}},{key:"logInternal",value:function(ne){var ce=ne.eventType,ve=ne.additionalData,Ie={type:ce,data:{}};Mt.additionalData(ve)&&(Ie.data=Object.assign({},ve)),this.apiClient.logEvent(Ie),this.apiClient.sendData()}},{key:"log",value:function(ne){var ce=ne.eventType,ve=ne.actionType,Ie=ne.additionalData,ke=ne.callback,sr=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],jr=this.options.getPayload();Mt.additionalData(Ie)&&(jr=Object.assign(Object.assign({},jr),Ie));var wr={type:ce,data:jr};ve&&(wr.actionType=ve);var Lr=this.apiClient.logEvent(wr);sr?this.apiClient.sendData(ke):typeof ke!="function"||ke(Lr)}}],X&&Dl(Z.prototype,X),Object.defineProperty(Z,"prototype",{writable:!1}),J})(Ke),li=u(8322),ci=u.n(li);function Ra(z){return Ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},Ra(z)}function Xi(z,Z){return(function(X){if(Array.isArray(X))return X})(z)||(function(X,te){var J=X==null?null:typeof Symbol<"u"&&X[Symbol.iterator]||X["@@iterator"];if(J!=null){var ne,ce,ve,Ie,ke=[],sr=!0,jr=!1;try{if(ve=(J=J.call(X)).next,te!==0)for(;!(sr=(ne=ve.call(J)).done)&&(ke.push(ne.value),ke.length!==te);sr=!0);}catch(wr){jr=!0,ce=wr}finally{try{if(!sr&&J.return!=null&&(Ie=J.return(),Object(Ie)!==Ie))return}finally{if(jr)throw ce}}return ke}})(z,Z)||(function(X,te){if(X){if(typeof X=="string")return Ga(X,te);var J={}.toString.call(X).slice(8,-1);return J==="Object"&&X.constructor&&(J=X.constructor.name),J==="Map"||J==="Set"?Array.from(X):J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J)?Ga(X,te):void 0}})(z,Z)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
61
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Ga(z,Z){(Z==null||Z>z.length)&&(Z=z.length);for(var X=0,te=Array(Z);X<Z;X++)te[X]=z[X];return te}var Qi={removeEmptyKeys:function(z){var Z=this;if(Array.isArray(z))return z;var X=Object.assign({},z);return Object.entries(X).filter((function(te){var J=Xi(te,2)[1];return!(J==null||typeof J=="string"&&!J.length||Ra(J)==="object"&&Object.keys(J).length===0)})).reduce((function(te,J){var ne,ce,ve,Ie=Xi(J,2),ke=Ie[0],sr=Ie[1];return Object.assign(Object.assign({},te),(ne={},ce=ke,ve=sr===Object(sr)?Z.removeEmptyKeys(sr):sr,(ce=(function(jr){var wr=(function(Lr,Ar){if(Ra(Lr)!="object"||!Lr)return Lr;var br=Lr[Symbol.toPrimitive];if(br!==void 0){var Le=br.call(Lr,"string");if(Ra(Le)!="object")return Le;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Lr)})(jr);return Ra(wr)=="symbol"?wr:wr+""})(ce))in ne?Object.defineProperty(ne,ce,{value:ve,enumerable:!0,configurable:!0,writable:!0}):ne[ce]=ve,ne))}),{})}};function Ii(z){return Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},Ii(z)}function pt(z,Z,X){return(Z=(function(te){var J=(function(ne,ce){if(Ii(ne)!="object"||!ne)return ne;var ve=ne[Symbol.toPrimitive];if(ve!==void 0){var Ie=ve.call(ne,"string");if(Ii(Ie)!="object")return Ie;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ne)})(te);return Ii(J)=="symbol"?J:J+""})(Z))in z?Object.defineProperty(z,Z,{value:X,enumerable:!0,configurable:!0,writable:!0}):z[Z]=X,z}var Oa={getDefaultUserAttributes:function(z){var Z;return Qi.removeEmptyKeys((pt(Z={},si.Email,z.email),pt(Z,si.FirstName,z==null?void 0:z.firstName),pt(Z,si.LastName,z==null?void 0:z.lastName),pt(Z,si.Phone,z==null?void 0:z.phone),Z))},getCustomUserAttributesWithoutSource:function(z){var Z,X,te,J,ne,ce,ve,Ie,ke,sr,jr,wr,Lr,Ar,br,Le=Qi.removeEmptyKeys({province:(te=(X=z==null?void 0:z.custom)===null||X===void 0?void 0:X.accountAddress)===null||te===void 0?void 0:te.province,country_code:(ne=(J=z==null?void 0:z.custom)===null||J===void 0?void 0:J.accountAddress)===null||ne===void 0?void 0:ne.countryCode}),ot=(pt(Z={},en.AccountName,(ce=z==null?void 0:z.custom)===null||ce===void 0?void 0:ce.accountName),pt(Z,en.AccountType,(ve=z==null?void 0:z.custom)===null||ve===void 0?void 0:ve.accountType),pt(Z,en.CrmId,(Ie=z==null?void 0:z.custom)===null||Ie===void 0?void 0:Ie.crmId),pt(Z,en.Department,(ke=z==null?void 0:z.custom)===null||ke===void 0?void 0:ke.department),pt(Z,en.JobTitle,(sr=z==null?void 0:z.custom)===null||sr===void 0?void 0:sr.jobTitle),pt(Z,en.MasterId,(jr=z==null?void 0:z.custom)===null||jr===void 0?void 0:jr.masterId),pt(Z,en.OrgSubType,(wr=z==null?void 0:z.custom)===null||wr===void 0?void 0:wr.orgSubType),pt(Z,en.OrgType,(Lr=z==null?void 0:z.custom)===null||Lr===void 0?void 0:Lr.orgType),pt(Z,en.SyncToCrm,(Ar=z==null?void 0:z.custom)===null||Ar===void 0?void 0:Ar.syncToCrm),pt(Z,en.Topic,(br=z==null?void 0:z.custom)===null||br===void 0?void 0:br.topic),Z);return Mt.accountAddress(Le)&&(ot[en.AccountAddress]=Le),Qi.removeEmptyKeys(ot)},getCustomUserAttributes:function(z){var Z=Oa.getCustomUserAttributesWithoutSource(z),X=Qi.removeEmptyKeys(Object.assign(Object.assign({},Z),pt({},en.Source,(function(te){var J;if(!((J=te.custom)===null||J===void 0)&&J.source&&te.custom.source.length){var ne=Object.keys(Oa.getDefaultUserAttributes(te)),ce=Object.keys(Oa.getCustomUserAttributesWithoutSource(te));return{$add:[{name:te.custom.source,attributes:[].concat(ne,ce)}]}}it("No source provided for braze user.")})(z))));return X},getEventUserAttributes:function(z){var Z,X,te,J,ne,ce,ve,Ie,ke;return Qi.removeEmptyKeys((pt(Z={},bn.AccountCity,(X=z==null?void 0:z.event)===null||X===void 0?void 0:X.accountCity),pt(Z,bn.AccountCountry,(te=z==null?void 0:z.event)===null||te===void 0?void 0:te.accountCity),pt(Z,bn.AccountPostCode,(J=z==null?void 0:z.event)===null||J===void 0?void 0:J.accountPostCode),pt(Z,bn.AccountState,(ne=z==null?void 0:z.event)===null||ne===void 0?void 0:ne.accountState),pt(Z,bn.ContactUsComment,(ce=z==null?void 0:z.event)===null||ce===void 0?void 0:ce.contactUsComment),pt(Z,bn.EventTopic,(ve=z==null?void 0:z.event)===null||ve===void 0?void 0:ve.eventTopic),pt(Z,bn.HowCanWeHelp,(Ie=z==null?void 0:z.event)===null||Ie===void 0?void 0:Ie.howCanWeHelp),pt(Z,bn.ReasonForInterest,(ke=z==null?void 0:z.event)===null||ke===void 0?void 0:ke.reasonForInterest),Z))},getExtraUserAttributes:function(z){return Ii(z.extra)!=="object"?{}:Qi.removeEmptyKeys(z.extra)},getPayload:function(z){if(!z)return{};var Z=Oa.getDefaultUserAttributes(z),X=Oa.getCustomUserAttributes(z),te=Oa.getEventUserAttributes(z),J=Oa.getExtraUserAttributes(z),ne=Mt.additionalData(J),ce=Object.assign(Object.assign(Object.assign({},Z),X),te);return ne?Object.assign(Object.assign({},ce),J):ce},getEmailHash:function(z){var Z=z.trim().toLowerCase();return ci().hash(Z)}};function eo(z){return eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},eo(z)}function bs(z,Z){for(var X=0;X<Z.length;X++){var te=Z[X];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(z,Ul(te.key),te)}}function Ul(z){var Z=(function(X,te){if(eo(X)!="object"||!X)return X;var J=X[Symbol.toPrimitive];if(J!==void 0){var ne=J.call(X,"string");if(eo(ne)!="object")return ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(X)})(z);return eo(Z)=="symbol"?Z:Z+""}var nd=(function(){function z(te){var J=te.apiOptions,ne=te.shouldInitialize,ce=ne===void 0||ne,ve=te.allowAnonymous,Ie=ve!==void 0&&ve,ke=te.subscriptions;(function(sr,jr){if(!(sr instanceof jr))throw new TypeError("Cannot call a class as a function")})(this,z),this.initialized=!1,this.apiOptions=J,this.subscriptions=ke,this.allowAnonymous=Ie,ce&&this.initialize()}var Z,X;return Z=z,(X=[{key:"initialize",value:function(){var te=this;this.isInitialized()?(function(J){for(var ne=arguments.length,ce=new Array(ne>1?ne-1:0),ve=1;ve<ne;ve++)ce[ve-1]=arguments[ve];console.warn(J,ce)})("BrazeClient has already been initialized!"):(this.apiClient=yn.getInstance(this.apiOptions),this.cardsModule=new fn({apiClient:this.apiClient}),this.bamModule=new bu({apiClient:this.apiClient}),this.eventModule=new ui({apiClient:this.apiClient,getPayload:function(){return Oa.getPayload(te.user)}}),this.initialized=!0)}},{key:"isInitialized",value:function(){return this.initialized}},{key:"getUser",value:function(){return this.isInitialized()?this.validateUser()?this.user:null:(cn("BrazeClient has not been initialized."),null)}},{key:"card",get:function(){return this.isInitialized()?this.cardsModule:(cn("BrazeClient has not been initialized."),null)}},{key:"bam",get:function(){return this.isInitialized()?this.bamModule:(cn("BrazeClient has not been initialized."),null)}},{key:"event",get:function(){return this.isInitialized()?this.allowAnonymous||this.validateUser()?this.eventModule:(cn("Anon events are disabled! Please invoke `setUser` before logging events!"),null):(cn("BrazeClient has not been initialized."),null)}},{key:"setUser",value:function(te){this.isInitialized()?(this.user=te,this.startSession(),this.logUserAttributes()):cn("Trying to `setUser` but the client has not been initialized")}},{key:"setUserInit",value:function(te){this.isInitialized()||this.initialize(),this.setUser(te)}},{key:"allowAnonymousSessions",value:function(){this.allowAnonymous=!0}},{key:"api",value:function(){return this.isInitialized()?this.apiClient:null}},{key:"setEmailNotificationSubscriptionType",value:function(te){return this.isInitialized()&&this.validateUser()?this.apiClient.setUserEmailNotificationSubscriptionType(te):null}},{key:"validateUser",value:function(){return!!this.user||(cn("No user has been set!"),!1)}},{key:"startSession",value:function(){this.allowAnonymous||this.validateUser()?(this.enableSubscriptions(),this.user?(this.apiClient.setUser(Oa.getEmailHash(this.user.email)),this.apiClient.openSession()):this.apiClient.openSession()):cn("No user provided and cannot start anonymous sessions!")}},{key:"enableSubscriptions",value:function(){var te,J;!((te=this.subscriptions)===null||te===void 0)&&te.subscribeToInAppMessage&&typeof this.subscriptions.subscribeToInAppMessage=="function"&&this.apiClient.subscribeToInAppMessage(this.subscriptions.subscribeToInAppMessage),!((J=this.subscriptions)===null||J===void 0)&&J.subscribeToContentCards&&typeof this.subscriptions.subscribeToContentCards=="function"&&this.apiClient.subscribeToContentCardUpdate(this.subscriptions.subscribeToContentCards)}},{key:"logUserAttributes",value:function(){if(this.validateUser()){this.apiClient.setUserEmail(this.user.email),this.user.firstName&&this.apiClient.setUserFirstName(this.user.firstName),this.user.lastName&&this.apiClient.setUserLastName(this.user.lastName),this.user.phone&&this.apiClient.setUserPhone(this.user.phone),this.user.country&&this.apiClient.setUserCountry(this.user.country);var te=Oa.getCustomUserAttributes(this.user);this.apiClient.bulkSetCustomUserAttributes(te)}}}])&&bs(Z.prototype,X),Object.defineProperty(Z,"prototype",{writable:!1}),z})();function Oo(z){return yn.getInstance(z)}})(),v})()))})(qb)),qb.exports}var Nl=qre();function Dre(e){Nr.useEffect(()=>{const r=Lre(e==null?void 0:e.additionalData);r!=null&&r.attributionData&&_i.setAttributionData(r.attributionData),r!=null&&r.utms&&fs.setUtmParameters(r.utms)},[])}function Lre(e){var r;if(!((r=e==null?void 0:e.attribution)!=null&&r.length))return null;try{const{r:t,utms:a}=JSON.parse(e.attribution);return{attributionData:_i.decodeRValue(t),utms:a}}catch(t){const a=t instanceof Error?t.message:t==null?void 0:t.toString();console.error(a)}}var Ma=(e=>(e.Lite="lite",e.Auth="auth",e))(Ma||{});function Mre(e){return{productName:Ma.Auth,prospectStatus:r=>`${e}/v1/prospects/${r}/trial-status`,createTrial:"/ajax/trials/new",searchProspect:`${e}/v1/search/prospects`,createProspect:"/ajax/trials/prospects",prospectLookups:r=>`${e}/v1/prospects/${r}/lookups`,joinRequest:"/ajax/trials/join-request"}}const eB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function iL(e,r,t,a){let o,s,u;const v=r||[0],d=(t=t||0)>>>3,h=a===-1?3:0;for(o=0;o<e.length;o+=1)u=o+d,s=u>>>2,v.length<=s&&v.push(0),v[s]|=e[o]<<8*(h+a*(u%4));return{value:v,binLen:8*e.length+t}}function Db(e,r,t){switch(r){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(a,o,s){return(function(u,v,d,h){let f,c,_,E;if(u.length%2!=0)throw new Error("String of HEX type must be in byte increments");const S=v||[0],w=(d=d||0)>>>3,T=h===-1?3:0;for(f=0;f<u.length;f+=2){if(c=parseInt(u.substr(f,2),16),isNaN(c))throw new Error("String of HEX type contains invalid characters");for(E=(f>>>1)+w,_=E>>>2;S.length<=_;)S.push(0);S[_]|=c<<8*(T+h*(E%4))}return{value:S,binLen:4*u.length+d}})(a,o,s,t)};case"TEXT":return function(a,o,s){return(function(u,v,d,h,f){let c,_,E,S,w,T,b,I,m=0;const p=d||[0],y=(h=h||0)>>>3;if(v==="UTF8")for(b=f===-1?3:0,E=0;E<u.length;E+=1)for(c=u.charCodeAt(E),_=[],128>c?_.push(c):2048>c?(_.push(192|c>>>6),_.push(128|63&c)):55296>c||57344<=c?_.push(224|c>>>12,128|c>>>6&63,128|63&c):(E+=1,c=65536+((1023&c)<<10|1023&u.charCodeAt(E)),_.push(240|c>>>18,128|c>>>12&63,128|c>>>6&63,128|63&c)),S=0;S<_.length;S+=1){for(T=m+y,w=T>>>2;p.length<=w;)p.push(0);p[w]|=_[S]<<8*(b+f*(T%4)),m+=1}else for(b=f===-1?2:0,I=v==="UTF16LE"&&f!==1||v!=="UTF16LE"&&f===1,E=0;E<u.length;E+=1){for(c=u.charCodeAt(E),I===!0&&(S=255&c,c=S<<8|c>>>8),T=m+y,w=T>>>2;p.length<=w;)p.push(0);p[w]|=c<<8*(b+f*(T%4)),m+=2}return{value:p,binLen:8*m+h}})(a,r,o,s,t)};case"B64":return function(a,o,s){return(function(u,v,d,h){let f,c,_,E,S,w,T,b=0;const I=v||[0],m=(d=d||0)>>>3,p=h===-1?3:0,y=u.indexOf("=");if(u.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw new Error("Invalid character in base-64 string");if(u=u.replace(/=/g,""),y!==-1&&y<u.length)throw new Error("Invalid '=' found in base-64 string");for(c=0;c<u.length;c+=4){for(S=u.substr(c,4),E=0,_=0;_<S.length;_+=1)f=eB.indexOf(S.charAt(_)),E|=f<<18-6*_;for(_=0;_<S.length-1;_+=1){for(T=b+m,w=T>>>2;I.length<=w;)I.push(0);I[w]|=(E>>>16-8*_&255)<<8*(p+h*(T%4)),b+=1}}return{value:I,binLen:8*b+d}})(a,o,s,t)};case"BYTES":return function(a,o,s){return(function(u,v,d,h){let f,c,_,E;const S=v||[0],w=(d=d||0)>>>3,T=h===-1?3:0;for(c=0;c<u.length;c+=1)f=u.charCodeAt(c),E=c+w,_=E>>>2,S.length<=_&&S.push(0),S[_]|=f<<8*(T+h*(E%4));return{value:S,binLen:8*u.length+d}})(a,o,s,t)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch{throw new Error("ARRAYBUFFER not supported by this environment")}return function(a,o,s){return(function(u,v,d,h){return iL(new Uint8Array(u),v,d,h)})(a,o,s,t)};case"UINT8ARRAY":try{new Uint8Array(0)}catch{throw new Error("UINT8ARRAY not supported by this environment")}return function(a,o,s){return iL(a,o,s,t)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function oL(e,r,t,a){switch(e){case"HEX":return function(o){return(function(s,u,v,d){let h,f,c="";const _=u/8,E=v===-1?3:0;for(h=0;h<_;h+=1)f=s[h>>>2]>>>8*(E+v*(h%4)),c+="0123456789abcdef".charAt(f>>>4&15)+"0123456789abcdef".charAt(15&f);return d.outputUpper?c.toUpperCase():c})(o,r,t,a)};case"B64":return function(o){return(function(s,u,v,d){let h,f,c,_,E,S="";const w=u/8,T=v===-1?3:0;for(h=0;h<w;h+=3)for(_=h+1<w?s[h+1>>>2]:0,E=h+2<w?s[h+2>>>2]:0,c=(s[h>>>2]>>>8*(T+v*(h%4))&255)<<16|(_>>>8*(T+v*((h+1)%4))&255)<<8|E>>>8*(T+v*((h+2)%4))&255,f=0;f<4;f+=1)S+=8*h+6*f<=u?eB.charAt(c>>>6*(3-f)&63):d.b64Pad;return S})(o,r,t,a)};case"BYTES":return function(o){return(function(s,u,v){let d,h,f="";const c=u/8,_=v===-1?3:0;for(d=0;d<c;d+=1)h=s[d>>>2]>>>8*(_+v*(d%4))&255,f+=String.fromCharCode(h);return f})(o,r,t)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch{throw new Error("ARRAYBUFFER not supported by this environment")}return function(o){return(function(s,u,v){let d;const h=u/8,f=new ArrayBuffer(h),c=new Uint8Array(f),_=v===-1?3:0;for(d=0;d<h;d+=1)c[d]=s[d>>>2]>>>8*(_+v*(d%4))&255;return f})(o,r,t)};case"UINT8ARRAY":try{new Uint8Array(0)}catch{throw new Error("UINT8ARRAY not supported by this environment")}return function(o){return(function(s,u,v){let d;const h=u/8,f=v===-1?3:0,c=new Uint8Array(h);for(d=0;d<h;d+=1)c[d]=s[d>>>2]>>>8*(f+v*(d%4))&255;return c})(o,r,t)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function sL(e){const r={outputUpper:!1,b64Pad:"=",outputLen:-1},t=e||{},a="Output length must be a multiple of 8";if(r.outputUpper=t.outputUpper||!1,t.b64Pad&&(r.b64Pad=t.b64Pad),t.outputLen){if(t.outputLen%8!=0)throw new Error(a);r.outputLen=t.outputLen}else if(t.shakeLen){if(t.shakeLen%8!=0)throw new Error(a);r.outputLen=t.shakeLen}if(typeof r.outputUpper!="boolean")throw new Error("Invalid outputUpper formatting option");if(typeof r.b64Pad!="string")throw new Error("Invalid b64Pad formatting option");return r}function Fs(e,r){return e<<r|e>>>32-r}function uL(e,r,t){return e^r^t}function Ure(e,r,t){return e&r^e&t^r&t}function Xu(e,r){const t=(65535&e)+(65535&r);return(65535&(e>>>16)+(r>>>16)+(t>>>16))<<16|65535&t}function Uc(e,r,t,a,o){const s=(65535&e)+(65535&r)+(65535&t)+(65535&a)+(65535&o);return(65535&(e>>>16)+(r>>>16)+(t>>>16)+(a>>>16)+(o>>>16)+(s>>>16))<<16|65535&s}function Fre(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function rB(e,r){let t,a,o,s,u,v,d;const h=[];for(t=r[0],a=r[1],o=r[2],s=r[3],u=r[4],d=0;d<80;d+=1)h[d]=d<16?e[d]:Fs(h[d-3]^h[d-8]^h[d-14]^h[d-16],1),v=d<20?Uc(Fs(t,5),(f=a)&o^~f&s,u,1518500249,h[d]):d<40?Uc(Fs(t,5),uL(a,o,s),u,1859775393,h[d]):d<60?Uc(Fs(t,5),Ure(a,o,s),u,2400959708,h[d]):Uc(Fs(t,5),uL(a,o,s),u,3395469782,h[d]),u=s,s=o,o=Fs(a,30),a=t,t=v;var f;return r[0]=Xu(t,r[0]),r[1]=Xu(a,r[1]),r[2]=Xu(o,r[2]),r[3]=Xu(s,r[3]),r[4]=Xu(u,r[4]),r}function Bre(e,r,t,a){let o;const s=15+(r+65>>>9<<4),u=r+t;for(;e.length<=s;)e.push(0);for(e[r>>>5]|=128<<24-r%32,e[s]=4294967295&u,e[s-1]=u/4294967296|0,o=0;o<e.length;o+=16)a=rB(e.slice(o,o+16),a);return a}class $re extends class{constructor(r,t,a){const o=a||{};if(this.t=t,this.i=o.encoding||"UTF8",this.numRounds=o.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.s=r,this.o=[],this.h=0,this.u=!1,this.l=0,this.A=!1,this.p=[],this.R=[]}update(r){let t,a=0;const o=this.U>>>5,s=this.T(r,this.o,this.h),u=s.binLen,v=s.value,d=u>>>5;for(t=0;t<d;t+=o)a+this.U<=u&&(this.F=this.m(v.slice(t,t+o),this.F),a+=this.U);this.l+=a,this.o=v.slice(a>>>5),this.h=u%this.U,this.u=!0}getHash(r,t){let a,o,s=this.g;const u=sL(t);if(this.B){if(u.outputLen===-1)throw new Error("Output length must be specified in options");s=u.outputLen}const v=oL(r,s,this.v,u);if(this.A&&this.Y)return v(this.Y(u));for(o=this.H(this.o.slice(),this.h,this.l,this.C(this.F),s),a=1;a<this.numRounds;a+=1)this.B&&s%32!=0&&(o[o.length-1]&=16777215>>>24-s%32),o=this.H(o,s,0,this.I(this.s),s);return v(o)}setHMACKey(r,t,a){if(!this.L)throw new Error("Variant does not support HMAC");if(this.u)throw new Error("Cannot set MAC key after calling update");const o=Db(t,(a||{}).encoding||"UTF8",this.v);this.M(o(r))}M(r){const t=this.U>>>3,a=t/4-1;let o;if(this.numRounds!==1)throw new Error("Cannot set numRounds with MAC");if(this.A)throw new Error("MAC key already set");for(t<r.binLen/8&&(r.value=this.H(r.value,r.binLen,0,this.I(this.s),this.g));r.value.length<=a;)r.value.push(0);for(o=0;o<=a;o+=1)this.p[o]=909522486^r.value[o],this.R[o]=1549556828^r.value[o];this.F=this.m(this.p,this.F),this.l=this.U,this.A=!0}getHMAC(r,t){const a=sL(t);return oL(r,this.g,this.v,a)(this.N())}N(){let r;if(!this.A)throw new Error("Cannot call getHMAC without first setting MAC key");const t=this.H(this.o.slice(),this.h,this.l,this.C(this.F),this.g);return r=this.m(this.R,this.I(this.s)),r=this.H(t,this.g,this.U,r,this.g),r}}{constructor(r,t,a){if(r!=="SHA-1")throw new Error("Chosen SHA variant is not supported");super(r,t,a);const o=a||{};this.L=!0,this.Y=this.N,this.v=-1,this.T=Db(this.t,this.i,this.v),this.m=rB,this.C=function(s){return s.slice()},this.I=Fre,this.H=Bre,this.F=[1732584193,4023233417,2562383102,271733878,3285377520],this.U=512,this.g=160,this.B=!1,o.hmacKey&&this.M((function(s,u,v,d){const h=s+" must include a value and format";if(!u)throw new Error(h);if(u.value===void 0||!u.format)throw new Error(h);return Db(u.format,u.encoding||"UTF8",v)(u.value)})("hmacKey",o.hmacKey,this.v))}}var pn=(e=>(e.CvApSoutheast1="cv-ap-southeast-1",e.CvApSoutheast2="cv-ap-southeast-2",e.CvEuWest1="cv-eu-west-1",e.CvNaWest1="cv-na-west-1",e))(pn||{});const zre={systemName:pn.CvApSoutheast1},Zre={systemName:pn.CvApSoutheast2},Hre={systemName:pn.CvEuWest1},Vre={systemName:pn.CvNaWest1},Gre={CvApSoutheast1:zre,CvApSoutheast2:Zre,CvEuWest1:Hre,CvNaWest1:Vre};var tB=(e=>(e.Staff="Staff",e.Learner="Learner",e.Unknown="Unknown",e.System="System",e))(tB||{});const lL=3,Wre=5e3,Kre=6,Lb={};class Yre{constructor(r){this.key=r.toString()}getCount(){return Lb[this.key]||0}increment(){Lb[this.key]=this.getCount()+1}reset(){delete Lb[this.key]}shouldBreak(){return this.getCount()>=Kre}}class Jre{constructor(){this.attempt=0}async wait(){await new Promise(r=>setTimeout(r,Wre*Math.pow(2,this.attempt))),this.attempt++}}async function Xre(e,r){const t=new Jre,a=new Yre(e);async function o(){const s=await fetch(e,r);if(s.status>=500&&!a.shouldBreak())throw new Error(`Server error: ${s.status}`);return s.ok&&a.reset(),s}for(let s=1;s<=lL;s++)try{return await o()}catch(u){if(s>=lL||a.shouldBreak())throw u;a.increment(),await t.wait()}}var Fc,Qre=new Uint8Array(16);function ete(){if(!Fc&&(Fc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Fc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Fc(Qre)}const rte=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function IS(e){return typeof e=="string"&&rte.test(e)}var xn=[];for(var Mb=0;Mb<256;++Mb)xn.push((Mb+256).toString(16).substr(1));function tte(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(xn[e[r+0]]+xn[e[r+1]]+xn[e[r+2]]+xn[e[r+3]]+"-"+xn[e[r+4]]+xn[e[r+5]]+"-"+xn[e[r+6]]+xn[e[r+7]]+"-"+xn[e[r+8]]+xn[e[r+9]]+"-"+xn[e[r+10]]+xn[e[r+11]]+xn[e[r+12]]+xn[e[r+13]]+xn[e[r+14]]+xn[e[r+15]]).toLowerCase();if(!IS(t))throw TypeError("Stringified UUID is invalid");return t}function nte(e,r,t){e=e||{};var a=e.random||(e.rng||ete)();return a[6]=a[6]&15|64,a[8]=a[8]&63|128,tte(a)}function ate(e){if(!IS(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const Bc="cv:session:",mo="cv:window:v2:",Qu=1e3*60*30,ite=4;function Xf(e){if(e===Kn.LocalStorage)return Tn.isAvailable()?Tn:ON;if(e===Kn.SessionStorage)return RN.isAvailable()?RN:ON}function nB(e){return new Date().getTime()+e}function ote(){return nte()}function Qf(e,r){return e+(r||"0")}function ste(e){return new Date().getTime()>e}function ute(e){return!(typeof e!="object"||typeof(e==null?void 0:e.id)!="string"||!IS(e.id)||ate(e.id)!==ite||typeof(e==null?void 0:e.ttl)!="number"||(e==null?void 0:e.ttl)<=0||isNaN(e==null?void 0:e.ttl))}function $c(e,r,t){const a=Xf(t),o=Qf(e,r),s=a.get(o);return!ute(s)||ste(s==null?void 0:s.ttl)?null:s}function cL(e,r,t,a){const o=Xf(t),s=Qf(e,r),u={id:ote(),ttl:nB(a)};return o.set(s,u),u}function zc(e,r,t,a,o){const s=Xf(t),u=Qf(e,r);s.set(u,{id:a.id,ttl:nB(o)})}function fL(e,r,t){const a=Xf(t);if(!(a!=null&&a.isAvailable()))return;const o=Qf(e,r);a.remove(o)}let Zc=null;const dL={getClientSessionData(e){let r=$c(Bc,e,Kn.LocalStorage);r?zc(Bc,e,Kn.LocalStorage,r,Qu):r=cL(Bc,e,Kn.LocalStorage,Qu);let t=$c(mo,e,Kn.SessionStorage);return t?Zc===null&&zc(mo,e,Kn.SessionStorage,t,Qu):t=cL(mo,e,Kn.SessionStorage,Zc??Qu),{id:r.id,windowId:t.id}},resetClientSession(e){fL(Bc,e,Kn.LocalStorage),fL(mo,e,Kn.SessionStorage)},lockWindowSession(e,r){Zc=r;const t=$c(mo,e,Kn.SessionStorage);t&&zc(mo,e,Kn.SessionStorage,t,r)},unlockWindowSession(e){Zc=null;const r=$c(mo,e,Kn.SessionStorage);r&&zc(mo,e,Kn.SessionStorage,r,Qu)}},Hc={isObject(e){const r=typeof e;return r==="function"||r==="object"&&!!e},isFunction(e){return typeof e=="function"}},hL={safeUrlConcat(e,r){if(!e)return;let t=e;return e.endsWith("/")||(t+="/"),r&&(t+=r.startsWith("/")?r.slice(1):r),t}},Zr={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i},Li="Unknown";function Bs(e,r,t){const a=r.exec(t)||[];let[o]=a;return o||(o=Li),{name:e,version:o}}function zo(e,r,t){if(!r)return{name:e,version:Li};const a=r.exec(t),o=a&&a.length?a[0].trim():Li;return{name:e,version:o}}function lte(e,r){const t={name:e,version:null};return Zr.win2000.test(r)&&(t.version="2000"),Zr.winXP.test(r)&&(t.version="XP"),Zr.winVista.test(r)&&(t.version="Vista"),Zr.win7.test(r)&&(t.version="7"),Zr.win8.test(r)&&(t.version="8"),Zr.win81.test(r)&&(t.version="8.1"),Zr.win10.test(r)&&(t.version="10"),t.version||(t.version=Li),t}const vL={getDeviceType(){const e=window.navigator.userAgent;return Zr.mobileDevice.test(e)?Zr.iphone.test(e)?"iPhone":Zr.ipad.test(e)?"iPad":Zr.android.test(e)?"Android":Zr.blackberry.test(e)?"Blackberry":Zr.windowsPhone.test(e)?"Windows Phone":Li:"Desktop"},getOperatingSystem(){const e=window.navigator.userAgent;return Zr.android.test(e)?zo("Android",Zr.androidVersion,e):Zr.iphone.test(e)||Zr.ipad.test(e)?zo("iOS",Zr.iosVersion,e):Zr.linux.test(e)?zo("Linux",null,e):Zr.unix.test(e)?zo("Unix",null,e):Zr.mac.test(e)?zo("Macintosh",Zr.osxVersion,e):Zr.windows.test(e)?lte("Windows",e):Zr.blackberry.test(e)?zo("BlackBerry",Zr.blackberryVersion,e):Zr.windowsPhone.test(e)?zo("Windows Phone",Zr.windowsPhoneVersion,e):{name:Li,version:Li}},getBrowser(){const e=window.navigator.userAgent;return Zr.chrome.test(e)?Bs("Chrome",Zr.generalVersion,e):Zr.firefox.test(e)?Bs("Firefox",Zr.generalVersion,e):Zr.safari.test(e)?Bs("Safari",Zr.generalVersion,e):Zr.ie.test(e)?Bs("Internet Explorer",Zr.ieVersion,e):Zr.edge.test(e)?Bs("Edge",Zr.edgeVersion,e):Zr.opera.test(e)?Bs("Opera",Zr.operaVersion,e):{name:Li,version:Li}},isTouchScreen(){return!!("ontouchstart"in window||navigator.maxTouchPoints)}},cte="2.3.0",fte={version:cte},dte="zXJL9nOHxzDlMUDjiP41",pL="unknown";class hte{constructor(r){this.options=r,this.initialize()}initialize(){this.validateOptions(),this.options.logUtmParameters&&(this.utmParameters=fs.getUtmParameters()),this.options.logAttributionData&&(this.attributionData=_i.getDecodedAttributionData())}get name(){return"CollectionApiClient"}async log(r){if(Array.isArray(r))return this.logBulk(r);this.shouldLog(r)&&(this.validateEvent(r),await this.postData(await this.formatData(r)))}async logBulk(r){const t=r.filter(o=>this.shouldLog(o));if(!t.length)return;t.forEach(o=>this.validateEvent(o));const a=await Promise.all(t.map(o=>this.formatData(o)));await this.postData(a)}validateOptions(){if(!Hc.isFunction(this.options.getUser))throw new Error("getUser option is required.")}shouldLog(r){return Hc.isFunction(this.options.shouldLog)?this.options.shouldLog(r):!0}async postData(r){const t=await this.getRegionalUrl(this.options.collectionApiUrls),a=JSON.stringify(r),o={"Content-Type":"application/json",...this.getSignatureHeader(a)};let s=hL.safeUrlConcat(t,"/v1/ingest");Array.isArray(r)&&(s=hL.safeUrlConcat(s,"/bulk"));try{const u=await Xre(s,{method:"POST",mode:"cors",headers:o,body:a});u.ok||this.logError(new Error(`CollectionApiClient failed to log event. Status: ${u.status} ${u.statusText}`),!1,this.getResponseAsObject(u))}catch(u){this.logError(u)}}getResponseAsObject(r){return{headers:r.headers,ok:r.ok,redirected:r.redirected,status:r.status,statusText:r.statusText,type:r.type,url:r.url,body:r.text()}}getSignatureHeader(r){const t=new $re("SHA-1","TEXT",{hmacKey:{value:dte,format:"TEXT",encoding:"UTF8"}});return t.update(r),{"cv-analytics-signature":`${this.options.collectionApiClientId}.${t.getHash("B64")}`}}async getRegionalUrl(r){switch((await this.getRegion()).systemName){case pn.CvEuWest1:return r.cvEuWest1;case pn.CvApSoutheast2:return r.cvApSoutheast2;case pn.CvNaWest1:return r.cvNaWest1;case pn.CvApSoutheast1:default:return r.cvApSoutheast1}}validateEvent(r){typeof r.type!="string"&&this.logError(new Error("Event type is required."),!0),Hc.isObject(r.actionContext)||this.logError(new Error("Event actionContext is required."),!0),r.actionContext.entity||this.logError(new Error("Event actionContext entity is required."),!0)}async formatData(r){return{type:r.type,data:await this.getEventData(r),metadata:this.getEventMetadata(r)}}async getEventData(r){const t=r.actionContext,a=this.getPlatformMetadata(),o=await this.getUserData(),s=await this.getSessionData(),u={name:this.options.productName,version:this.options.productVersion};this.options.productVariant&&(u.variant=this.options.productVariant);const v={user:o,action:t,platform:a,product:u,session:s};this.utmParameters&&(v.utm=this.utmParameters);const d=this.extractData(r),h=Object.keys(v).map(c=>c.toLowerCase()),f=Object.keys(d).map(c=>c.toLowerCase());return h.forEach(c=>{f.includes(c)&&this.logError(new Error(`${c} is a reserved key.`),!0)}),{...v,...d}}extractData(r){return Hc.isFunction(this.options.formatData)?this.options.formatData(r):{[r.actionContext.entity]:r.data}}async getUserData(){var t,a,o;let r;try{r=await((a=(t=this.options).getProfileId)==null?void 0:a.call(t))}catch(s){this.logError(s)}try{const s=await this.options.getUser();return s!=null&&s.id?{id:s.id,role:((o=s.role)==null?void 0:o.toLowerCase())||pL,userGroup:(s.userGroup??tB.Unknown).toLowerCase(),yearGroup:this.normalizeYearGroup(s.yearGroup),profileId:r,customer:{id:s.customerId,name:s.customerName,customerGuid:s.customerGuid,crmId:s.crmId,country:s.countryCode,region:await this.getRegion(),openCustomer:!1,accessPolicy:s.accessPolicy}}:r?{profileId:r}:void 0}catch(s){this.logError(s)}}async getRegion(){let r=this.options.regionName;try{const t=await this.options.getUser();t!=null&&t.instanceRegion&&(r=t.instanceRegion)}catch(t){this.logError(t)}return r||this.logError(new Error("RegionName is not set."),!0),this.getRegionByName(r.toLowerCase())}async getSessionData(){try{const r=await this.options.getUser();return{...dL.getClientSessionData(r==null?void 0:r.id),authSessionId:r==null?void 0:r.sessionId}}catch(r){return console.error(r),dL.getClientSessionData(null)}}getPlatformMetadata(){var t,a;const r={url:window.location.href,referrer:document.referrer};return(t=this.attributionData)!=null&&t.internalReferrer&&(r.internalReferrer=this.attributionData.internalReferrer),(a=this.attributionData)!=null&&a.originalReferrer&&(r.originalReferrer=this.attributionData.originalReferrer),{browser:vL.getBrowser(),os:vL.getOperatingSystem(),request:r,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}getEventMetadata(r){return{client:{name:`${this.name}.ts`,version:fte.version,region:this.getRegionByName(this.options.regionName)},timestamp:new Date().toISOString(),eventVersion:r.eventVersion}}getRegionByName(r){let t;return Object.values(Gre).forEach(a=>{a.systemName===r&&(t=a)}),t}normalizeYearGroup(r){return r?r.toLowerCase().split(" ").join("_"):pL}logError(r,t,...a){if(this.options.logError&&this.options.logError(r,...a),t)throw r}}var sn=(e=>(e.Stream="cv_product_stream",e.WebPlayerStream="cv_product_webplayer_stream",e.StreamProgress="cv_product_stream_progress",e.PreviewStreamProgress="cv_product_preview_stream_progress",e.StreamBuffering="cv_product_stream_buffering",e.Login="cv_product_login",e.LoginSsoRedirect="cv_product_login_sso_redirect",e.LoginFailed="cv_product_login_failed",e.Search="cv_product_search",e.InstantSearch="cv_product_instant_search",e.SearchEmptyResult="cv_product_search_empty_result",e.Filter="cv_product_search_filter",e.SearchLanding="cv_product_search_landing",e.Share="cv_product_share",e.Unshare="cv_product_unshare",e.WorkspaceAdd="cv_product_tv_add",e.Rename="cv_product_rename",e.Move="cv_product_move",e.Sort="cv_product_sort",e.Create="cv_product_create",e.Delete="cv_product_delete",e.Associate="cv_product_associate",e.Dissociate="cv_product_dissociate",e.Edit="cv_product_edit",e.Approve="cv_product_approve",e.Reject="cv_product_reject",e.Disable="cv_product_disable",e.Upload="cv_product_upload",e.Download="cv_product_download",e.Navigate="cv_product_navigate",e.Click="cv_product_click",e.Suggest="cv_product_suggest",e.EditAssoc="cv_product_edit_assoc",e.Play="cv_product_play",e.Favourite="cv_product_favourite",e.Follow="cv_product_follow",e.Prefer="cv_product_prefer",e.Print="cv_product_print",e.Copy="cv_product_copy",e.Activate="cv_product_activate",e.VerifyEmail="cv_product_verify_email",e.ChangePassword="cv_product_change_password",e.ManageGroup="cv_product_manage_group",e.Export="cv_product_export",e.SendEmail="cv_product_send_email",e.Publish="cv_product_publish",e.Submit="cv_product_submit",e.Complete="cv_product_complete",e.Archive="cv_product_archive",e.Promote="cv_product_promote",e.Demote="cv_product_demote",e.BulkAction="cv_product_bulk_action",e.Remove="cv_product_remove",e.Dismiss="cv_product_dismiss",e.Open="cv_product_open",e.Hide="cv_product_hide",e.PageView="cv_product_page_view",e.Select="cv_product_select",e.SwitchCustomer="cv_product_switch_customer",e.Focus="cv_product_focus",e.Blur="cv_product_blur",e.Hover="cv_product_hover",e.Unhover="cv_product_unhover",e.SetAccess="cv_product_set_access",e.AddToLocalCache="cv_product_add_to_lc",e.ResolveWarning="cv_product_resolve_warning",e.DismissWarning="cv_product_dismiss_warning",e))(sn||{}),aB=(e=>(e.Folder="folder",e.Video="video",e.Rating="rating",e.Series="series",e.Library="library",e.Resource="resource",e.Tag="tag",e.Subtitle="subtitle",e.Chapter="chapter",e.Resolution="resolution",e.PlaybackSpeed="playback_speed",e.Device="device",e.Restriction="restriction",e.Interactive="interactive",e.Interaction="interaction",e.PDF="pdf",e.CustomerSetting="customer_setting",e.UserSetting="user_setting",e.LibraryRequest="staff_request",e.Logo="logo",e.Pagination="pagination",e.Thumbnail="thumbnail",e.Banner="banner",e.Link="link",e.Playlist="playlist",e.Playlists="playlists",e.Person="person",e.Company="company",e.Classroom="classroom",e.ClassroomGroup="classroom_group",e.Classification="classification",e.ShareLink="share_link",e.DirectShare="direct_share",e.Upload="upload",e.SearchResults="search_results",e.SearchSuggestion="search_suggestion",e.Audience="audience",e.User="user",e.Clip="clip",e.UserChannel="user_channel",e.Widget="widget",e.Url="url",e.SocialShare="social_share",e.Presentation="presentation",e.BatchJob="batch_job",e.DeepLink="deep_link",e.Feedback="feedback",e.AppLink="app_link",e.SignUp="sign_up",e.FileGeneratorJob="file_generator_job",e.ExportLibraries="export_libraries",e.Product="product",e.Customer="customer",e.SpecialEvent="special_event",e.Region="region",e.ProductTip="product_tip",e.Livestream="livestream",e.DevicesCta="devices_cta",e.Integration="integration",e.Faq="faq",e.MixedMedia="mixed_media",e.TableOfContents="table_of_contents",e.Author="author",e.Glance="glance",e.Filter="filter",e.NotificationSetting="notification_setting",e.Transcript="transcript",e.CurriculumCode="curriculum_code",e.Assign="assign",e.PartnerProfile="partner_profile",e))(aB||{}),iB=(e=>(e.TopNav="top_nav",e.LeftNav="left_nav",e.Footer="footer",e.Popup="popup",e.Banner="banner",e.VideoList="video_list",e.VideoListItem="video_list_item",e.VideoListHeader="video_header",e.VideoThumbnail="video_thumbnail",e.ExpandableVideoThumbnail="expandable_video_thumbnail",e.VideoItemPreview="video_item_preview",e.InteractiveItemPreview="interactive_item_preview",e.ClipItemPreview="clip_item_preview",e.VideoDetails="video_details",e.InteractiveDetails="interactive_details",e.ClipDetails="clip_details",e.VideoDetailsHeader="video_details_header",e.EditVideoDetails="edit_video_details",e.EditInteractiveVideoDetails="edit_interactive_video_details",e.EditClipDetails="edit_clip_details",e.EditVideoChapters="edit_video_chapters",e.EditVideoResources="edit_video_resources",e.PreviewVideoResources="preview_video_resources",e.VideoUpload="video_upload",e.VideoRequest="video_request",e.Pagination="pagination",e.LibraryHeader="library_header",e.LibraryTiles="library_tiles",e.LibraryRequestDetails="staff_request_details",e.Libraries="libraries",e.SubFolderList="sub_folder_list",e.AwaitingReviewVideoListHeader="awaiting_review_video_list_header",e.AwaitingReviewVideoItem="awaiting_review_video_item",e.PastReleasesHeader="past_releases_header",e.MigrationWarnings="migration_warnings",e.PlaylistListHeader="playlist_list_header",e.PlaylistListItem="playlist_list_item",e.SeriesListItem="series_list_item",e.SeriesWithVideos="series_with_videos",e.PlaylistWithVideos="playlist_with_videos",e.Dropdown="dropdown",e.ViewCurriculumLinks="view_curriculum_links",e.SearchBar="search_bar",e.InstantSearch="instant_search",e.SearchFilters="search_filters",e.FeaturedSeriesSearchResult="featured_series_search_result",e.ExchangeSearchGroupItem="exchange_search_group_item",e.StaffManager="staff_manager",e.StaffManagerListItem="staff_manager_list_item",e.StudentManager="student_manager",e.ViewStudentVideos="view_student_videos",e.StudentManagerListItem="student_manager_list_item",e.EditUser="edit_user",e.UserAuditLog="user_audit_log",e.BulkUserActionsWizard="bulk_user_actions_wizard",e.BulkUserUploadWizard="bulk_user_upload_wizard",e.Classroom="classroom",e.ClassroomsList="classrooms_list",e.ClassroomsListItem="classrooms_list_item",e.ManageClassroomStudents="manage_classroom_students",e.ManageClassroomStudentListItem="manage_classroom_student_list_item",e.ManageClassroomGroups="manage_classroom_groups",e.ManageClassroomGroupListItem="manage_classroom_group_list_item",e.ManageClassroomTeachers="manage_classroom_teachers",e.ManageClassroomTeacherListItem="manage_classroom_teachers_list_item",e.ArchivedClassrooms="archived_classrooms",e.PreviewInteractive="preview_interactive",e.PreviewSharedInteractive="preview_shared_interactive",e.PreviewInteractiveQuestions="preview_interactive_questions",e.EditInteractive="edit_interactive",e.EditInteractiveDetails="edit_interactive_details",e.PlaySharedInteractive="play_shared_interactive",e.PlayInteractive="play_interactive",e.InteractiveListItem="interactive_list_item",e.DeleteInteractive="delete_interactive",e.NewInteractive="new_interactive",e.CopyInteractive="copy_interactive",e.UnpublishInteractive="unpublish_interactive",e.ShareInteractive="share_interactive",e.PlayPage="play_page",e.Player="player",e.FloatingPlayer="floating_player",e.InteractivePlayer="interactive_player",e.EmbeddedPlayer="embedded_player",e.CreateClipPlayer="create_clip_player",e.PlayClip="play_clip",e.PlaySharedClip="play_shared_clip",e.ClipListItem="clip_list_item",e.ContentUpdatesBanner="content_updates_banner",e.ContentUpdatesClassificationBanner="content_updates_classification_banner",e.PreferencesSettings="preferences_settings",e.NotificationSettings="notification_settings",e.TopicsOnboarding="topics_onboarding",e.MyUploads="my_uploads",e.MyVideos="my_videos",e.Playlists="playlists",e.SlidingList="sliding_list",e.HeroBannerItem="hero_banner_item",e.SlidingListItem="sliding_list_item",e.ClassificationListItem="classification_list_item",e.ClassificationComingSoon="classification_coming_soon",e.ClassificationHero="classification_hero",e.ClassificationFooter="classification_footer",e.Classification="classification",e.PresentationClassifications="presentation_classifications",e.Dashboard="dashboard",e.DiscoverFooter="discover_footer",e.ProductBanner="product_banner",e.UserOptions="user_options",e.MagicTabs="magic_tabs",e.Settings="settings",e.StudentFeed="student_feed",e.MyShares="my_shares",e.SharedByMe="shared_by_me",e.SharedWithMe="shared_with_me",e.Insights="insights",e.Error="error_view",e.UpgradeForm="upgrade_form",e.ClassroomGuide="classroom_guide",e.TeachingResources="teaching_resources",e.ResourcesGuidancePopup="resources_guidance_popup",e.InteractivesGuidancePopup="interactives_guidance_popup",e.CurriculumGuidancePopup="curriculum_guidance_popup",e.TopVideos="top_videos",e.VideoViewsList="video_views_list",e.VideoOverview="video_overview",e.StudentReachPopup="student_reach_popup",e.VideoHighlight="video_highlight",e.ClassroomViewsPopup="classroom_views_popup",e.GiveFeedbackPopup="give_feedback_popup",e.LibraryRequestSettings="library_request_settings",e.OpenInAppPrompt="open_in_app_prompt",e.UseAppButton="use_app_button",e.Launchpad="launchpad",e.EditableSubjectPreferencesWidget="editable_subject_preferences_widget",e.ThumbnailHeroMediaWidget="thumbnail_hero_media_widget",e.ThumbnailFixedListMediaLargeWidget="thumbnail_fixed_list_media_large",e.FilterSlidingPillListSmallWidget="filter_sliding_pill_list_small",e.CircleLogoSlidingListWidget="circle_logo_sliding_list_widget",e.RectangularLogoSlidingListWidget="rectangular_logo_sliding_list_widget",e.HeroBannerSmallWidget="hero_banner_small",e.EventIconSlidingListWidget="event_icon_sliding_list_widget",e.FaqQuestionWidget="faq_question_widget",e.FaqQuestionAccordionWidget="faq_question_accordion_widget",e.SubjectStatsWidgetItem="subject_stats_widget_item",e.AuthorReviewerWidget="author_reviewer_widget",e.ThumbnailFixedListMediaSmallWidget="thumbnail_fixed_list_media_small_widget",e.ThumbnailFixedListFolderSmallWidget="thumbnail_fixed_list_folder_small_widget",e.ThumbnailVerticalListWidget="thumbnail_vertical_list_widget",e.ThumbnailFixedListSmallWidget="thumbnail_fixed_list_small_widget",e.PosterFixedListLargeWidget="poster_fixed_list_large_widget",e.CurriculumResourcesAccordionWidget="curriculum_resources_accordion_widget",e.SearchCurriculumCodeWidget="search_curriculum_code_widget",e.ExchangeLinksWidget="exchange_links_widget",e.TableOfContents="table_of_contents",e.SignUpPopup="sign_up_popup",e.SignUpPage="sign_up_page",e.TrialBanner="trial_banner",e.InviteColleaguePopup="invite_colleague_popup",e.AuthProspectSelect="auth_prospect_select",e.GatedBanner="gated_banner",e.GatedEmptyState="gated_empty_state",e.GatedPopup="gated_popup",e.WelcomePopup="welcome_popup",e.WatchHistoryLanding="watch_history_landing",e.MyFavouritesLanding="my_favourites_landing",e.MyVideoLanding="my_videos_landing",e.PlaylistsLanding="playlists_landing",e.MySharesLanding="myshares_landing",e.PremiumFeatures="premium_features",e.NotificationsDropdown="notifications_dropdown",e.CalendarNav="calendar_nav",e.CalendarDay="calendar_day",e.CalendarPopup="calendar_popup",e.RegionMap="region_map",e.OnboardingSelectRoleScreen="onboarding_select_role_screen",e.OnboardingSchoolLevelScreen="onboarding_school_level_screen",e.OnboardingAudiencePreferencesScreen="onboarding_audience_preferences_screen",e.OnboardingSelectCurriculumScreen="onboarding_select_curriculum_screen",e.OnboardingSubjectsScreen="onboarding_subjects_screen",e.ProductTips="product_tips",e.LivestreamBookingForm="booking_form",e.DateRangeFilter="date_range_selector",e.AudienceFilter="audience_filter",e.AssignFlowView="assign_flow_view",e.ContentPartnerDashboard="content_partner_dashboard",e.ContentPartnerDashboardVideoBanner="content_partner_dashboard_video_banner",e.Global="global",e))(iB||{}),Fa=(e=>(e.Start="start",e.Complete="complete",e.Save="save",e.Discard="discard",e.Next="next",e.Back="back",e))(Fa||{}),Yt=(e=>(e.SignIn="sign_in",e.SignUp="sign_up",e.SignOut="sign_out",e.SwitchAccount="switch_account",e.TopNavButton="top_nav_button",e.Educator="educator",e.Student="student",e.TermsAndConditions="terms_and_conditions",e.PrivacyPolicy="privacy_policy",e.EnterEmail="enter_email",e.ClosePopup="close_popup",e.Back="back",e.UseMyLocation="use_my_location",e.TrialCreated="trial_created",e.TrialRequested="trial_requested",e.DeadEnd="dead_end",e.CantFindSchool="cant_find_school",e.ResendEmail="resend_email",e.ContactUs="contact_us",e.InviteColleague="invite_colleague",e.PremiumFeatures="premium_features",e.Upgrade="upgrade",e.FindSchool="find_school",e.AddToBraze="add_to_braze",e.RequestAccess="request_access",e.AutoJoin="auto_join",e.WrongEmail="wrong_email",e.RequestBdmTrial="request_bdm_trial",e.SkipIdpSelect="skip_idp_select",e))(Yt||{}),oB=(e=>(e[e.V1=1]="V1",e[e.V2=2]="V2",e[e.V3=3]="V3",e[e.V4=4]="V4",e[e.V5=5]="V5",e))(oB||{});const vte={first(e){return il(e)},firstFew(e,r){return il(e,r)},last(e){return Xb(e)},lastFew(e,r){return Xb(e,r)},max(e,r){return ES(e,r)},cloneAndReplaceAtIdx(e,r,t,a=null){let o=e&&e.length?e.slice():[];return r+1>o.length&&(o=[...o,...Array(r+1-o.length).fill(a)]),o.splice(r,1,t),o},moveItem(e,r,t){const a=e.slice();return a.splice(t,0,a.splice(r,1)[0]),a},isEmpty(e){return e&&!e.length},findIndex(e,r){return Yf(e,r)},findWhere(e,r){return jF(e,r)},where(e,r){return DF(e,r)},groupBy(e,r){return BF(e,r)},countBy(e,r){return $F(e,r)},flatten(e,r){return Qb(e,r)},flatMap(e,r){return Qb(e.map(r),!0)},intersection(...e){return VF(...e)},addOrRemove(e,r){const t=e.indexOf(r);return t===-1?e.push(r):e.splice(t,1),e},addOrRemoveImmutable(e,r){const t=e.indexOf(r),a=ll.deepClone(e);return t===-1?[...a,r]:[...a.slice(0,t),...a.slice(t+1)]},sortBy(e,r){return FF(e,r)},chunk(e,r){return GF(e,r)},uniq(e,r){return rf(e,r)},toObject(e,r){return e.reduce((t,a)=>Object.assign(t,ll.isObject(a)?{[a[r]]:a}:{[r]:a}),{})},findIndexById(e,r){return e.findIndex(t=>t.id===r.id)},removeItem(e,r){const t=this.findIndex(e,r);return t===-1?e:this.removeItemFromIndex(e,t)},removeItemFromIndex(e,r){return[...e.slice(0,r),...e.slice(r+1)]},findMatchedIdIndex(e,r){return e.findIndex(t=>{var a;return((a=t.id)==null?void 0:a.toString())===r.toString()})},shuffle(e){return UF(e)},findLast(e,r){for(let t=e.length-1;t>=0;t--)if(r(e[t]))return e[t]},findLastIndex(e,r){for(let t=e.length-1;t>=0;t--)if(r(e[t]))return t;return-1}},nl="OTHER";function gL(e,r){return r.includes(e)?e:e?nl:""}function pte(e){const{error:r,onChange:t,countryCode:a,isTertiary:o}=e,s=yU({countryCode:a,isTertiary:o}),u=gL(e.initialValue,s),[v,d]=je.useState(u),[h,f]=je.useState(u===nl?e.initialValue:"");je.useEffect(()=>{d(gL(e.initialValue,s))},[e.initialValue]);function c(S){d(S.target.value),f(""),t(S.target.value===nl?"":S.target.value)}function _(S){f(S.target.value),t(S.target.value)}const E=v===nl;return A.jsxs("div",{className:"form-group",children:[A.jsxs("label",{htmlFor:e.id,className:e.labelClassName,children:["Job title",e.required&&A.jsx("span",{className:"text-danger",children:"*"})]}),A.jsxs("div",{className:"mb-2",children:[A.jsxs("select",{id:e.id,name:e.id,className:`form-select ${e.size==="lg"?"form-select-lg":""} ${v.length?"text-dark":"text-secondary"} ${!!r&&"is-invalid"}`,value:v,placeholder:"Role",onChange:c,children:[A.jsx("option",{value:"",disabled:!0,className:"text-secondary",children:e.placeholder?e.placeholder:A.jsx(A.Fragment,{children:"What do you do?"})}),s.map((S,w)=>A.jsx("option",{value:S,className:"text-dark",children:S},w)),A.jsx("option",{value:nl,className:"text-dark",children:"Other"})]}),!!r&&!E&&A.jsx(Ht,{name:e.id,children:r})]}),E&&A.jsxs("div",{className:"mb-3",children:[A.jsx("input",{className:`form-control ${e.size==="lg"?"form-select-lg":""} ${!!r&&"is-invalid"}`,type:"text",value:h,placeholder:"What do you do?",autoFocus:!0,onChange:_}),!!r&&A.jsx(Ht,{name:e.id,children:r})]})]})}var $s=(e=>(e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1",e))($s||{});const gte=["uk","gb","gg","im","je","ie"],mL={au:Ze.AU,nz:Ze.NZ,us:Ze.US,uk:Ze.UK,ca:Ze.CA,gb:Ze.UK,gg:Ze.UK,im:Ze.UK,je:Ze.UK,ie:Ze.UK,al:Ze.UK,ad:Ze.UK,am:Ze.UK,at:Ze.UK,az:Ze.UK,by:Ze.UK,be:Ze.UK,ba:Ze.UK,bg:Ze.UK,hr:Ze.UK,cy:Ze.UK,cz:Ze.UK,dk:Ze.UK,ee:Ze.UK,fi:Ze.UK,fr:Ze.UK,de:Ze.UK,ge:Ze.UK,gr:Ze.UK,hu:Ze.UK,is:Ze.UK,it:Ze.UK,lv:Ze.UK,li:Ze.UK,lt:Ze.UK,lu:Ze.UK,mt:Ze.UK,md:Ze.UK,mc:Ze.UK,me:Ze.UK,nl:Ze.UK,mk:Ze.UK,no:Ze.UK,pl:Ze.UK,pt:Ze.UK,ro:Ze.UK,ru:Ze.UK,sm:Ze.UK,rs:Ze.UK,sk:Ze.UK,si:Ze.UK,es:Ze.UK,se:Ze.UK,ch:Ze.UK,tr:Ze.UK,ua:Ze.UK,va:Ze.UK},mte={au:pn.CvApSoutheast1,uk:pn.CvEuWest1,us:pn.CvNaWest1,nz:pn.CvApSoutheast2,ca:pn.CvNaWest1},yte={au:$s.AU,uk:$s.UK,us:$s.US,nz:$s.NZ,ca:$s.US},Zt={getRegionName(e){const r=Zt.getCountryCode(e);return mte[r]},getInstanceRegion(e){const r=Zt.getCountryCode(e);return yte[r]},getCountryCode(e){const r=mL[e==null?void 0:e.toLowerCase()];return r||Ze.US},isCountryCodeUK(e){return gte.includes(e.toLowerCase())},isCountryCodeAU(e){return(e==null?void 0:e.toLowerCase())===Ze.AU},isCountryCodeUS(e){return(e==null?void 0:e.toLowerCase())===Ze.US},isCountryCodeNZ(e){return(e==null?void 0:e.toLowerCase())===Ze.NZ},isSupportedCountryCode(e){return Object.keys(mL).includes(e==null?void 0:e.toLowerCase())},getLocalizedLocalityPlaceholderPhrase(e){if(e){if(Zt.isCountryCodeUK(e))return"E.g. CR0 3RL or 36 Factory Lane";if(Zt.isCountryCodeAU(e)||Zt.isCountryCodeNZ(e))return"E.g. 2212 or Revesby";if(Zt.isCountryCodeUS(e))return"E.g. 95826 or Sacramento"}},getLocalizedLocalityPlaceholderText(e){if(!e)return;const r=Zt.getLocalizedLocalityPlaceholderPhrase(e);if(r)return r}};function AS(e){if(!e)return{firstName:"",surname:""};const[r,...t]=e.split(" ").filter(a=>a.length);return{firstName:r,surname:t==null?void 0:t.join(" ")}}var Ub={exports:{}};/*!
61
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Ga(z,Z){(Z==null||Z>z.length)&&(Z=z.length);for(var X=0,te=Array(Z);X<Z;X++)te[X]=z[X];return te}var Qi={removeEmptyKeys:function(z){var Z=this;if(Array.isArray(z))return z;var X=Object.assign({},z);return Object.entries(X).filter((function(te){var J=Xi(te,2)[1];return!(J==null||typeof J=="string"&&!J.length||Ra(J)==="object"&&Object.keys(J).length===0)})).reduce((function(te,J){var ne,ce,ve,Ie=Xi(J,2),ke=Ie[0],sr=Ie[1];return Object.assign(Object.assign({},te),(ne={},ce=ke,ve=sr===Object(sr)?Z.removeEmptyKeys(sr):sr,(ce=(function(jr){var wr=(function(Lr,Ar){if(Ra(Lr)!="object"||!Lr)return Lr;var br=Lr[Symbol.toPrimitive];if(br!==void 0){var Le=br.call(Lr,"string");if(Ra(Le)!="object")return Le;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Lr)})(jr);return Ra(wr)=="symbol"?wr:wr+""})(ce))in ne?Object.defineProperty(ne,ce,{value:ve,enumerable:!0,configurable:!0,writable:!0}):ne[ce]=ve,ne))}),{})}};function Ii(z){return Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},Ii(z)}function pt(z,Z,X){return(Z=(function(te){var J=(function(ne,ce){if(Ii(ne)!="object"||!ne)return ne;var ve=ne[Symbol.toPrimitive];if(ve!==void 0){var Ie=ve.call(ne,"string");if(Ii(Ie)!="object")return Ie;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ne)})(te);return Ii(J)=="symbol"?J:J+""})(Z))in z?Object.defineProperty(z,Z,{value:X,enumerable:!0,configurable:!0,writable:!0}):z[Z]=X,z}var Oa={getDefaultUserAttributes:function(z){var Z;return Qi.removeEmptyKeys((pt(Z={},si.Email,z.email),pt(Z,si.FirstName,z==null?void 0:z.firstName),pt(Z,si.LastName,z==null?void 0:z.lastName),pt(Z,si.Phone,z==null?void 0:z.phone),Z))},getCustomUserAttributesWithoutSource:function(z){var Z,X,te,J,ne,ce,ve,Ie,ke,sr,jr,wr,Lr,Ar,br,Le=Qi.removeEmptyKeys({province:(te=(X=z==null?void 0:z.custom)===null||X===void 0?void 0:X.accountAddress)===null||te===void 0?void 0:te.province,country_code:(ne=(J=z==null?void 0:z.custom)===null||J===void 0?void 0:J.accountAddress)===null||ne===void 0?void 0:ne.countryCode}),ot=(pt(Z={},en.AccountName,(ce=z==null?void 0:z.custom)===null||ce===void 0?void 0:ce.accountName),pt(Z,en.AccountType,(ve=z==null?void 0:z.custom)===null||ve===void 0?void 0:ve.accountType),pt(Z,en.CrmId,(Ie=z==null?void 0:z.custom)===null||Ie===void 0?void 0:Ie.crmId),pt(Z,en.Department,(ke=z==null?void 0:z.custom)===null||ke===void 0?void 0:ke.department),pt(Z,en.JobTitle,(sr=z==null?void 0:z.custom)===null||sr===void 0?void 0:sr.jobTitle),pt(Z,en.MasterId,(jr=z==null?void 0:z.custom)===null||jr===void 0?void 0:jr.masterId),pt(Z,en.OrgSubType,(wr=z==null?void 0:z.custom)===null||wr===void 0?void 0:wr.orgSubType),pt(Z,en.OrgType,(Lr=z==null?void 0:z.custom)===null||Lr===void 0?void 0:Lr.orgType),pt(Z,en.SyncToCrm,(Ar=z==null?void 0:z.custom)===null||Ar===void 0?void 0:Ar.syncToCrm),pt(Z,en.Topic,(br=z==null?void 0:z.custom)===null||br===void 0?void 0:br.topic),Z);return Mt.accountAddress(Le)&&(ot[en.AccountAddress]=Le),Qi.removeEmptyKeys(ot)},getCustomUserAttributes:function(z){var Z=Oa.getCustomUserAttributesWithoutSource(z),X=Qi.removeEmptyKeys(Object.assign(Object.assign({},Z),pt({},en.Source,(function(te){var J;if(!((J=te.custom)===null||J===void 0)&&J.source&&te.custom.source.length){var ne=Object.keys(Oa.getDefaultUserAttributes(te)),ce=Object.keys(Oa.getCustomUserAttributesWithoutSource(te));return{$add:[{name:te.custom.source,attributes:[].concat(ne,ce)}]}}it("No source provided for braze user.")})(z))));return X},getEventUserAttributes:function(z){var Z,X,te,J,ne,ce,ve,Ie,ke;return Qi.removeEmptyKeys((pt(Z={},bn.AccountCity,(X=z==null?void 0:z.event)===null||X===void 0?void 0:X.accountCity),pt(Z,bn.AccountCountry,(te=z==null?void 0:z.event)===null||te===void 0?void 0:te.accountCity),pt(Z,bn.AccountPostCode,(J=z==null?void 0:z.event)===null||J===void 0?void 0:J.accountPostCode),pt(Z,bn.AccountState,(ne=z==null?void 0:z.event)===null||ne===void 0?void 0:ne.accountState),pt(Z,bn.ContactUsComment,(ce=z==null?void 0:z.event)===null||ce===void 0?void 0:ce.contactUsComment),pt(Z,bn.EventTopic,(ve=z==null?void 0:z.event)===null||ve===void 0?void 0:ve.eventTopic),pt(Z,bn.HowCanWeHelp,(Ie=z==null?void 0:z.event)===null||Ie===void 0?void 0:Ie.howCanWeHelp),pt(Z,bn.ReasonForInterest,(ke=z==null?void 0:z.event)===null||ke===void 0?void 0:ke.reasonForInterest),Z))},getExtraUserAttributes:function(z){return Ii(z.extra)!=="object"?{}:Qi.removeEmptyKeys(z.extra)},getPayload:function(z){if(!z)return{};var Z=Oa.getDefaultUserAttributes(z),X=Oa.getCustomUserAttributes(z),te=Oa.getEventUserAttributes(z),J=Oa.getExtraUserAttributes(z),ne=Mt.additionalData(J),ce=Object.assign(Object.assign(Object.assign({},Z),X),te);return ne?Object.assign(Object.assign({},ce),J):ce},getEmailHash:function(z){var Z=z.trim().toLowerCase();return ci().hash(Z)}};function eo(z){return eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},eo(z)}function bs(z,Z){for(var X=0;X<Z.length;X++){var te=Z[X];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(z,Ul(te.key),te)}}function Ul(z){var Z=(function(X,te){if(eo(X)!="object"||!X)return X;var J=X[Symbol.toPrimitive];if(J!==void 0){var ne=J.call(X,"string");if(eo(ne)!="object")return ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(X)})(z);return eo(Z)=="symbol"?Z:Z+""}var nd=(function(){function z(te){var J=te.apiOptions,ne=te.shouldInitialize,ce=ne===void 0||ne,ve=te.allowAnonymous,Ie=ve!==void 0&&ve,ke=te.subscriptions;(function(sr,jr){if(!(sr instanceof jr))throw new TypeError("Cannot call a class as a function")})(this,z),this.initialized=!1,this.apiOptions=J,this.subscriptions=ke,this.allowAnonymous=Ie,ce&&this.initialize()}var Z,X;return Z=z,(X=[{key:"initialize",value:function(){var te=this;this.isInitialized()?(function(J){for(var ne=arguments.length,ce=new Array(ne>1?ne-1:0),ve=1;ve<ne;ve++)ce[ve-1]=arguments[ve];console.warn(J,ce)})("BrazeClient has already been initialized!"):(this.apiClient=yn.getInstance(this.apiOptions),this.cardsModule=new fn({apiClient:this.apiClient}),this.bamModule=new bu({apiClient:this.apiClient}),this.eventModule=new ui({apiClient:this.apiClient,getPayload:function(){return Oa.getPayload(te.user)}}),this.initialized=!0)}},{key:"isInitialized",value:function(){return this.initialized}},{key:"getUser",value:function(){return this.isInitialized()?this.validateUser()?this.user:null:(cn("BrazeClient has not been initialized."),null)}},{key:"card",get:function(){return this.isInitialized()?this.cardsModule:(cn("BrazeClient has not been initialized."),null)}},{key:"bam",get:function(){return this.isInitialized()?this.bamModule:(cn("BrazeClient has not been initialized."),null)}},{key:"event",get:function(){return this.isInitialized()?this.allowAnonymous||this.validateUser()?this.eventModule:(cn("Anon events are disabled! Please invoke `setUser` before logging events!"),null):(cn("BrazeClient has not been initialized."),null)}},{key:"setUser",value:function(te){this.isInitialized()?(this.user=te,this.startSession(),this.logUserAttributes()):cn("Trying to `setUser` but the client has not been initialized")}},{key:"setUserInit",value:function(te){this.isInitialized()||this.initialize(),this.setUser(te)}},{key:"allowAnonymousSessions",value:function(){this.allowAnonymous=!0}},{key:"api",value:function(){return this.isInitialized()?this.apiClient:null}},{key:"setEmailNotificationSubscriptionType",value:function(te){return this.isInitialized()&&this.validateUser()?this.apiClient.setUserEmailNotificationSubscriptionType(te):null}},{key:"validateUser",value:function(){return!!this.user||(cn("No user has been set!"),!1)}},{key:"startSession",value:function(){this.allowAnonymous||this.validateUser()?(this.enableSubscriptions(),this.user?(this.apiClient.setUser(Oa.getEmailHash(this.user.email)),this.apiClient.openSession()):this.apiClient.openSession()):cn("No user provided and cannot start anonymous sessions!")}},{key:"enableSubscriptions",value:function(){var te,J;!((te=this.subscriptions)===null||te===void 0)&&te.subscribeToInAppMessage&&typeof this.subscriptions.subscribeToInAppMessage=="function"&&this.apiClient.subscribeToInAppMessage(this.subscriptions.subscribeToInAppMessage),!((J=this.subscriptions)===null||J===void 0)&&J.subscribeToContentCards&&typeof this.subscriptions.subscribeToContentCards=="function"&&this.apiClient.subscribeToContentCardUpdate(this.subscriptions.subscribeToContentCards)}},{key:"logUserAttributes",value:function(){if(this.validateUser()){this.apiClient.setUserEmail(this.user.email),this.user.firstName&&this.apiClient.setUserFirstName(this.user.firstName),this.user.lastName&&this.apiClient.setUserLastName(this.user.lastName),this.user.phone&&this.apiClient.setUserPhone(this.user.phone),this.user.country&&this.apiClient.setUserCountry(this.user.country);var te=Oa.getCustomUserAttributes(this.user);this.apiClient.bulkSetCustomUserAttributes(te)}}}])&&bs(Z.prototype,X),Object.defineProperty(Z,"prototype",{writable:!1}),z})();function Oo(z){return yn.getInstance(z)}})(),v})()))})(qb)),qb.exports}var Nl=qre();function Dre(e){Nr.useEffect(()=>{const r=Lre(e==null?void 0:e.additionalData);r!=null&&r.attributionData&&_i.setAttributionData(r.attributionData),r!=null&&r.utms&&fs.setUtmParameters(r.utms)},[])}function Lre(e){var r;if(!((r=e==null?void 0:e.attribution)!=null&&r.length))return null;try{const{r:t,utms:a}=JSON.parse(e.attribution);return{attributionData:_i.decodeRValue(t),utms:a}}catch(t){const a=t instanceof Error?t.message:t==null?void 0:t.toString();console.error(a)}}var Ma=(e=>(e.Lite="lite",e.Auth="auth",e))(Ma||{});function Mre(e){return{productName:Ma.Auth,prospectStatus:r=>`${e}/v1/prospects/${r}/trial-status`,createTrial:"/ajax/trials/new",searchProspect:`${e}/v1/search/prospects`,createProspect:"/ajax/trials/prospects",prospectLookups:r=>`${e}/v1/prospects/${r}/lookups`,joinRequest:"/ajax/trials/join-request"}}const eB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function iL(e,r,t,a){let o,s,u;const v=r||[0],d=(t=t||0)>>>3,h=a===-1?3:0;for(o=0;o<e.length;o+=1)u=o+d,s=u>>>2,v.length<=s&&v.push(0),v[s]|=e[o]<<8*(h+a*(u%4));return{value:v,binLen:8*e.length+t}}function Db(e,r,t){switch(r){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(a,o,s){return(function(u,v,d,h){let f,c,_,E;if(u.length%2!=0)throw new Error("String of HEX type must be in byte increments");const S=v||[0],w=(d=d||0)>>>3,T=h===-1?3:0;for(f=0;f<u.length;f+=2){if(c=parseInt(u.substr(f,2),16),isNaN(c))throw new Error("String of HEX type contains invalid characters");for(E=(f>>>1)+w,_=E>>>2;S.length<=_;)S.push(0);S[_]|=c<<8*(T+h*(E%4))}return{value:S,binLen:4*u.length+d}})(a,o,s,t)};case"TEXT":return function(a,o,s){return(function(u,v,d,h,f){let c,_,E,S,w,T,b,I,m=0;const p=d||[0],y=(h=h||0)>>>3;if(v==="UTF8")for(b=f===-1?3:0,E=0;E<u.length;E+=1)for(c=u.charCodeAt(E),_=[],128>c?_.push(c):2048>c?(_.push(192|c>>>6),_.push(128|63&c)):55296>c||57344<=c?_.push(224|c>>>12,128|c>>>6&63,128|63&c):(E+=1,c=65536+((1023&c)<<10|1023&u.charCodeAt(E)),_.push(240|c>>>18,128|c>>>12&63,128|c>>>6&63,128|63&c)),S=0;S<_.length;S+=1){for(T=m+y,w=T>>>2;p.length<=w;)p.push(0);p[w]|=_[S]<<8*(b+f*(T%4)),m+=1}else for(b=f===-1?2:0,I=v==="UTF16LE"&&f!==1||v!=="UTF16LE"&&f===1,E=0;E<u.length;E+=1){for(c=u.charCodeAt(E),I===!0&&(S=255&c,c=S<<8|c>>>8),T=m+y,w=T>>>2;p.length<=w;)p.push(0);p[w]|=c<<8*(b+f*(T%4)),m+=2}return{value:p,binLen:8*m+h}})(a,r,o,s,t)};case"B64":return function(a,o,s){return(function(u,v,d,h){let f,c,_,E,S,w,T,b=0;const I=v||[0],m=(d=d||0)>>>3,p=h===-1?3:0,y=u.indexOf("=");if(u.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw new Error("Invalid character in base-64 string");if(u=u.replace(/=/g,""),y!==-1&&y<u.length)throw new Error("Invalid '=' found in base-64 string");for(c=0;c<u.length;c+=4){for(S=u.substr(c,4),E=0,_=0;_<S.length;_+=1)f=eB.indexOf(S.charAt(_)),E|=f<<18-6*_;for(_=0;_<S.length-1;_+=1){for(T=b+m,w=T>>>2;I.length<=w;)I.push(0);I[w]|=(E>>>16-8*_&255)<<8*(p+h*(T%4)),b+=1}}return{value:I,binLen:8*b+d}})(a,o,s,t)};case"BYTES":return function(a,o,s){return(function(u,v,d,h){let f,c,_,E;const S=v||[0],w=(d=d||0)>>>3,T=h===-1?3:0;for(c=0;c<u.length;c+=1)f=u.charCodeAt(c),E=c+w,_=E>>>2,S.length<=_&&S.push(0),S[_]|=f<<8*(T+h*(E%4));return{value:S,binLen:8*u.length+d}})(a,o,s,t)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch{throw new Error("ARRAYBUFFER not supported by this environment")}return function(a,o,s){return(function(u,v,d,h){return iL(new Uint8Array(u),v,d,h)})(a,o,s,t)};case"UINT8ARRAY":try{new Uint8Array(0)}catch{throw new Error("UINT8ARRAY not supported by this environment")}return function(a,o,s){return iL(a,o,s,t)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function oL(e,r,t,a){switch(e){case"HEX":return function(o){return(function(s,u,v,d){let h,f,c="";const _=u/8,E=v===-1?3:0;for(h=0;h<_;h+=1)f=s[h>>>2]>>>8*(E+v*(h%4)),c+="0123456789abcdef".charAt(f>>>4&15)+"0123456789abcdef".charAt(15&f);return d.outputUpper?c.toUpperCase():c})(o,r,t,a)};case"B64":return function(o){return(function(s,u,v,d){let h,f,c,_,E,S="";const w=u/8,T=v===-1?3:0;for(h=0;h<w;h+=3)for(_=h+1<w?s[h+1>>>2]:0,E=h+2<w?s[h+2>>>2]:0,c=(s[h>>>2]>>>8*(T+v*(h%4))&255)<<16|(_>>>8*(T+v*((h+1)%4))&255)<<8|E>>>8*(T+v*((h+2)%4))&255,f=0;f<4;f+=1)S+=8*h+6*f<=u?eB.charAt(c>>>6*(3-f)&63):d.b64Pad;return S})(o,r,t,a)};case"BYTES":return function(o){return(function(s,u,v){let d,h,f="";const c=u/8,_=v===-1?3:0;for(d=0;d<c;d+=1)h=s[d>>>2]>>>8*(_+v*(d%4))&255,f+=String.fromCharCode(h);return f})(o,r,t)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch{throw new Error("ARRAYBUFFER not supported by this environment")}return function(o){return(function(s,u,v){let d;const h=u/8,f=new ArrayBuffer(h),c=new Uint8Array(f),_=v===-1?3:0;for(d=0;d<h;d+=1)c[d]=s[d>>>2]>>>8*(_+v*(d%4))&255;return f})(o,r,t)};case"UINT8ARRAY":try{new Uint8Array(0)}catch{throw new Error("UINT8ARRAY not supported by this environment")}return function(o){return(function(s,u,v){let d;const h=u/8,f=v===-1?3:0,c=new Uint8Array(h);for(d=0;d<h;d+=1)c[d]=s[d>>>2]>>>8*(f+v*(d%4))&255;return c})(o,r,t)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function sL(e){const r={outputUpper:!1,b64Pad:"=",outputLen:-1},t=e||{},a="Output length must be a multiple of 8";if(r.outputUpper=t.outputUpper||!1,t.b64Pad&&(r.b64Pad=t.b64Pad),t.outputLen){if(t.outputLen%8!=0)throw new Error(a);r.outputLen=t.outputLen}else if(t.shakeLen){if(t.shakeLen%8!=0)throw new Error(a);r.outputLen=t.shakeLen}if(typeof r.outputUpper!="boolean")throw new Error("Invalid outputUpper formatting option");if(typeof r.b64Pad!="string")throw new Error("Invalid b64Pad formatting option");return r}function Fs(e,r){return e<<r|e>>>32-r}function uL(e,r,t){return e^r^t}function Ure(e,r,t){return e&r^e&t^r&t}function Xu(e,r){const t=(65535&e)+(65535&r);return(65535&(e>>>16)+(r>>>16)+(t>>>16))<<16|65535&t}function Uc(e,r,t,a,o){const s=(65535&e)+(65535&r)+(65535&t)+(65535&a)+(65535&o);return(65535&(e>>>16)+(r>>>16)+(t>>>16)+(a>>>16)+(o>>>16)+(s>>>16))<<16|65535&s}function Fre(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function rB(e,r){let t,a,o,s,u,v,d;const h=[];for(t=r[0],a=r[1],o=r[2],s=r[3],u=r[4],d=0;d<80;d+=1)h[d]=d<16?e[d]:Fs(h[d-3]^h[d-8]^h[d-14]^h[d-16],1),v=d<20?Uc(Fs(t,5),(f=a)&o^~f&s,u,1518500249,h[d]):d<40?Uc(Fs(t,5),uL(a,o,s),u,1859775393,h[d]):d<60?Uc(Fs(t,5),Ure(a,o,s),u,2400959708,h[d]):Uc(Fs(t,5),uL(a,o,s),u,3395469782,h[d]),u=s,s=o,o=Fs(a,30),a=t,t=v;var f;return r[0]=Xu(t,r[0]),r[1]=Xu(a,r[1]),r[2]=Xu(o,r[2]),r[3]=Xu(s,r[3]),r[4]=Xu(u,r[4]),r}function Bre(e,r,t,a){let o;const s=15+(r+65>>>9<<4),u=r+t;for(;e.length<=s;)e.push(0);for(e[r>>>5]|=128<<24-r%32,e[s]=4294967295&u,e[s-1]=u/4294967296|0,o=0;o<e.length;o+=16)a=rB(e.slice(o,o+16),a);return a}class $re extends class{constructor(r,t,a){const o=a||{};if(this.t=t,this.i=o.encoding||"UTF8",this.numRounds=o.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.s=r,this.o=[],this.h=0,this.u=!1,this.l=0,this.A=!1,this.p=[],this.R=[]}update(r){let t,a=0;const o=this.U>>>5,s=this.T(r,this.o,this.h),u=s.binLen,v=s.value,d=u>>>5;for(t=0;t<d;t+=o)a+this.U<=u&&(this.F=this.m(v.slice(t,t+o),this.F),a+=this.U);this.l+=a,this.o=v.slice(a>>>5),this.h=u%this.U,this.u=!0}getHash(r,t){let a,o,s=this.g;const u=sL(t);if(this.B){if(u.outputLen===-1)throw new Error("Output length must be specified in options");s=u.outputLen}const v=oL(r,s,this.v,u);if(this.A&&this.Y)return v(this.Y(u));for(o=this.H(this.o.slice(),this.h,this.l,this.C(this.F),s),a=1;a<this.numRounds;a+=1)this.B&&s%32!=0&&(o[o.length-1]&=16777215>>>24-s%32),o=this.H(o,s,0,this.I(this.s),s);return v(o)}setHMACKey(r,t,a){if(!this.L)throw new Error("Variant does not support HMAC");if(this.u)throw new Error("Cannot set MAC key after calling update");const o=Db(t,(a||{}).encoding||"UTF8",this.v);this.M(o(r))}M(r){const t=this.U>>>3,a=t/4-1;let o;if(this.numRounds!==1)throw new Error("Cannot set numRounds with MAC");if(this.A)throw new Error("MAC key already set");for(t<r.binLen/8&&(r.value=this.H(r.value,r.binLen,0,this.I(this.s),this.g));r.value.length<=a;)r.value.push(0);for(o=0;o<=a;o+=1)this.p[o]=909522486^r.value[o],this.R[o]=1549556828^r.value[o];this.F=this.m(this.p,this.F),this.l=this.U,this.A=!0}getHMAC(r,t){const a=sL(t);return oL(r,this.g,this.v,a)(this.N())}N(){let r;if(!this.A)throw new Error("Cannot call getHMAC without first setting MAC key");const t=this.H(this.o.slice(),this.h,this.l,this.C(this.F),this.g);return r=this.m(this.R,this.I(this.s)),r=this.H(t,this.g,this.U,r,this.g),r}}{constructor(r,t,a){if(r!=="SHA-1")throw new Error("Chosen SHA variant is not supported");super(r,t,a);const o=a||{};this.L=!0,this.Y=this.N,this.v=-1,this.T=Db(this.t,this.i,this.v),this.m=rB,this.C=function(s){return s.slice()},this.I=Fre,this.H=Bre,this.F=[1732584193,4023233417,2562383102,271733878,3285377520],this.U=512,this.g=160,this.B=!1,o.hmacKey&&this.M((function(s,u,v,d){const h=s+" must include a value and format";if(!u)throw new Error(h);if(u.value===void 0||!u.format)throw new Error(h);return Db(u.format,u.encoding||"UTF8",v)(u.value)})("hmacKey",o.hmacKey,this.v))}}var pn=(e=>(e.CvApSoutheast1="cv-ap-southeast-1",e.CvApSoutheast2="cv-ap-southeast-2",e.CvEuWest1="cv-eu-west-1",e.CvNaWest1="cv-na-west-1",e))(pn||{});const zre={systemName:pn.CvApSoutheast1},Zre={systemName:pn.CvApSoutheast2},Hre={systemName:pn.CvEuWest1},Vre={systemName:pn.CvNaWest1},Gre={CvApSoutheast1:zre,CvApSoutheast2:Zre,CvEuWest1:Hre,CvNaWest1:Vre};var tB=(e=>(e.Staff="Staff",e.Learner="Learner",e.Unknown="Unknown",e.System="System",e))(tB||{});const lL=3,Wre=5e3,Kre=6,Lb={};class Yre{constructor(r){this.key=r.toString()}getCount(){return Lb[this.key]||0}increment(){Lb[this.key]=this.getCount()+1}reset(){delete Lb[this.key]}shouldBreak(){return this.getCount()>=Kre}}class Jre{constructor(){this.attempt=0}async wait(){await new Promise(r=>setTimeout(r,Wre*Math.pow(2,this.attempt))),this.attempt++}}async function Xre(e,r){const t=new Jre,a=new Yre(e);async function o(){const s=await fetch(e,r);if(s.status>=500&&!a.shouldBreak())throw new Error(`Server error: ${s.status}`);return s.ok&&a.reset(),s}for(let s=1;s<=lL;s++)try{return await o()}catch(u){if(s>=lL||a.shouldBreak())throw u;a.increment(),await t.wait()}}var Fc,Qre=new Uint8Array(16);function ete(){if(!Fc&&(Fc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Fc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Fc(Qre)}const rte=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function IS(e){return typeof e=="string"&&rte.test(e)}var xn=[];for(var Mb=0;Mb<256;++Mb)xn.push((Mb+256).toString(16).substr(1));function tte(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(xn[e[r+0]]+xn[e[r+1]]+xn[e[r+2]]+xn[e[r+3]]+"-"+xn[e[r+4]]+xn[e[r+5]]+"-"+xn[e[r+6]]+xn[e[r+7]]+"-"+xn[e[r+8]]+xn[e[r+9]]+"-"+xn[e[r+10]]+xn[e[r+11]]+xn[e[r+12]]+xn[e[r+13]]+xn[e[r+14]]+xn[e[r+15]]).toLowerCase();if(!IS(t))throw TypeError("Stringified UUID is invalid");return t}function nte(e,r,t){e=e||{};var a=e.random||(e.rng||ete)();return a[6]=a[6]&15|64,a[8]=a[8]&63|128,tte(a)}function ate(e){if(!IS(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const Bc="cv:session:",mo="cv:window:v2:",Qu=1e3*60*30,ite=4;function Xf(e){if(e===Kn.LocalStorage)return Tn.isAvailable()?Tn:ON;if(e===Kn.SessionStorage)return RN.isAvailable()?RN:ON}function nB(e){return new Date().getTime()+e}function ote(){return nte()}function Qf(e,r){return e+(r||"0")}function ste(e){return new Date().getTime()>e}function ute(e){return!(typeof e!="object"||typeof(e==null?void 0:e.id)!="string"||!IS(e.id)||ate(e.id)!==ite||typeof(e==null?void 0:e.ttl)!="number"||(e==null?void 0:e.ttl)<=0||isNaN(e==null?void 0:e.ttl))}function $c(e,r,t){const a=Xf(t),o=Qf(e,r),s=a.get(o);return!ute(s)||ste(s==null?void 0:s.ttl)?null:s}function cL(e,r,t,a){const o=Xf(t),s=Qf(e,r),u={id:ote(),ttl:nB(a)};return o.set(s,u),u}function zc(e,r,t,a,o){const s=Xf(t),u=Qf(e,r);s.set(u,{id:a.id,ttl:nB(o)})}function fL(e,r,t){const a=Xf(t);if(!(a!=null&&a.isAvailable()))return;const o=Qf(e,r);a.remove(o)}let Zc=null;const dL={getClientSessionData(e){let r=$c(Bc,e,Kn.LocalStorage);r?zc(Bc,e,Kn.LocalStorage,r,Qu):r=cL(Bc,e,Kn.LocalStorage,Qu);let t=$c(mo,e,Kn.SessionStorage);return t?Zc===null&&zc(mo,e,Kn.SessionStorage,t,Qu):t=cL(mo,e,Kn.SessionStorage,Zc??Qu),{id:r.id,windowId:t.id}},resetClientSession(e){fL(Bc,e,Kn.LocalStorage),fL(mo,e,Kn.SessionStorage)},lockWindowSession(e,r){Zc=r;const t=$c(mo,e,Kn.SessionStorage);t&&zc(mo,e,Kn.SessionStorage,t,r)},unlockWindowSession(e){Zc=null;const r=$c(mo,e,Kn.SessionStorage);r&&zc(mo,e,Kn.SessionStorage,r,Qu)}},Hc={isObject(e){const r=typeof e;return r==="function"||r==="object"&&!!e},isFunction(e){return typeof e=="function"}},hL={safeUrlConcat(e,r){if(!e)return;let t=e;return e.endsWith("/")||(t+="/"),r&&(t+=r.startsWith("/")?r.slice(1):r),t}},Zr={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i},Li="Unknown";function Bs(e,r,t){const a=r.exec(t)||[];let[o]=a;return o||(o=Li),{name:e,version:o}}function zo(e,r,t){if(!r)return{name:e,version:Li};const a=r.exec(t),o=a&&a.length?a[0].trim():Li;return{name:e,version:o}}function lte(e,r){const t={name:e,version:null};return Zr.win2000.test(r)&&(t.version="2000"),Zr.winXP.test(r)&&(t.version="XP"),Zr.winVista.test(r)&&(t.version="Vista"),Zr.win7.test(r)&&(t.version="7"),Zr.win8.test(r)&&(t.version="8"),Zr.win81.test(r)&&(t.version="8.1"),Zr.win10.test(r)&&(t.version="10"),t.version||(t.version=Li),t}const vL={getDeviceType(){const e=window.navigator.userAgent;return Zr.mobileDevice.test(e)?Zr.iphone.test(e)?"iPhone":Zr.ipad.test(e)?"iPad":Zr.android.test(e)?"Android":Zr.blackberry.test(e)?"Blackberry":Zr.windowsPhone.test(e)?"Windows Phone":Li:"Desktop"},getOperatingSystem(){const e=window.navigator.userAgent;return Zr.android.test(e)?zo("Android",Zr.androidVersion,e):Zr.iphone.test(e)||Zr.ipad.test(e)?zo("iOS",Zr.iosVersion,e):Zr.linux.test(e)?zo("Linux",null,e):Zr.unix.test(e)?zo("Unix",null,e):Zr.mac.test(e)?zo("Macintosh",Zr.osxVersion,e):Zr.windows.test(e)?lte("Windows",e):Zr.blackberry.test(e)?zo("BlackBerry",Zr.blackberryVersion,e):Zr.windowsPhone.test(e)?zo("Windows Phone",Zr.windowsPhoneVersion,e):{name:Li,version:Li}},getBrowser(){const e=window.navigator.userAgent;return Zr.chrome.test(e)?Bs("Chrome",Zr.generalVersion,e):Zr.firefox.test(e)?Bs("Firefox",Zr.generalVersion,e):Zr.safari.test(e)?Bs("Safari",Zr.generalVersion,e):Zr.ie.test(e)?Bs("Internet Explorer",Zr.ieVersion,e):Zr.edge.test(e)?Bs("Edge",Zr.edgeVersion,e):Zr.opera.test(e)?Bs("Opera",Zr.operaVersion,e):{name:Li,version:Li}},isTouchScreen(){return!!("ontouchstart"in window||navigator.maxTouchPoints)}},cte="2.3.0",fte={version:cte},dte="zXJL9nOHxzDlMUDjiP41",pL="unknown";class hte{constructor(r){this.options=r,this.initialize()}initialize(){this.validateOptions(),this.options.logUtmParameters&&(this.utmParameters=fs.getUtmParameters()),this.options.logAttributionData&&(this.attributionData=_i.getDecodedAttributionData())}get name(){return"CollectionApiClient"}async log(r){if(Array.isArray(r))return this.logBulk(r);this.shouldLog(r)&&(this.validateEvent(r),await this.postData(await this.formatData(r)))}async logBulk(r){const t=r.filter(o=>this.shouldLog(o));if(!t.length)return;t.forEach(o=>this.validateEvent(o));const a=await Promise.all(t.map(o=>this.formatData(o)));await this.postData(a)}validateOptions(){if(!Hc.isFunction(this.options.getUser))throw new Error("getUser option is required.")}shouldLog(r){return Hc.isFunction(this.options.shouldLog)?this.options.shouldLog(r):!0}async postData(r){const t=await this.getRegionalUrl(this.options.collectionApiUrls),a=JSON.stringify(r),o={"Content-Type":"application/json",...this.getSignatureHeader(a)};let s=hL.safeUrlConcat(t,"/v1/ingest");Array.isArray(r)&&(s=hL.safeUrlConcat(s,"/bulk"));try{const u=await Xre(s,{method:"POST",mode:"cors",headers:o,body:a});u.ok||this.logError(new Error(`CollectionApiClient failed to log event. Status: ${u.status} ${u.statusText}`),!1,this.getResponseAsObject(u))}catch(u){this.logError(u)}}getResponseAsObject(r){return{headers:r.headers,ok:r.ok,redirected:r.redirected,status:r.status,statusText:r.statusText,type:r.type,url:r.url,body:r.text()}}getSignatureHeader(r){const t=new $re("SHA-1","TEXT",{hmacKey:{value:dte,format:"TEXT",encoding:"UTF8"}});return t.update(r),{"cv-analytics-signature":`${this.options.collectionApiClientId}.${t.getHash("B64")}`}}async getRegionalUrl(r){switch((await this.getRegion()).systemName){case pn.CvEuWest1:return r.cvEuWest1;case pn.CvApSoutheast2:return r.cvApSoutheast2;case pn.CvNaWest1:return r.cvNaWest1;case pn.CvApSoutheast1:default:return r.cvApSoutheast1}}validateEvent(r){typeof r.type!="string"&&this.logError(new Error("Event type is required."),!0),Hc.isObject(r.actionContext)||this.logError(new Error("Event actionContext is required."),!0),r.actionContext.entity||this.logError(new Error("Event actionContext entity is required."),!0)}async formatData(r){return{type:r.type,data:await this.getEventData(r),metadata:this.getEventMetadata(r)}}async getEventData(r){const t=r.actionContext,a=this.getPlatformMetadata(),o=await this.getUserData(),s=await this.getSessionData(),u={name:this.options.productName,version:this.options.productVersion};this.options.productVariant&&(u.variant=this.options.productVariant);const v={user:o,action:t,platform:a,product:u,session:s};this.utmParameters&&(v.utm=this.utmParameters);const d=this.extractData(r),h=Object.keys(v).map(c=>c.toLowerCase()),f=Object.keys(d).map(c=>c.toLowerCase());return h.forEach(c=>{f.includes(c)&&this.logError(new Error(`${c} is a reserved key.`),!0)}),{...v,...d}}extractData(r){return Hc.isFunction(this.options.formatData)?this.options.formatData(r):{[r.actionContext.entity]:r.data}}async getUserData(){var t,a,o;let r;try{r=await((a=(t=this.options).getProfileId)==null?void 0:a.call(t))}catch(s){this.logError(s)}try{const s=await this.options.getUser();return s!=null&&s.id?{id:s.id,role:((o=s.role)==null?void 0:o.toLowerCase())||pL,userGroup:(s.userGroup??tB.Unknown).toLowerCase(),yearGroup:this.normalizeYearGroup(s.yearGroup),profileId:r,customer:{id:s.customerId,name:s.customerName,customerGuid:s.customerGuid,crmId:s.crmId,country:s.countryCode,region:await this.getRegion(),openCustomer:!1,accessPolicy:s.accessPolicy}}:r?{profileId:r}:void 0}catch(s){this.logError(s)}}async getRegion(){let r=this.options.regionName;try{const t=await this.options.getUser();t!=null&&t.instanceRegion&&(r=t.instanceRegion)}catch(t){this.logError(t)}return r||this.logError(new Error("RegionName is not set."),!0),this.getRegionByName(r.toLowerCase())}async getSessionData(){try{const r=await this.options.getUser();return{...dL.getClientSessionData(r==null?void 0:r.id),authSessionId:r==null?void 0:r.sessionId}}catch(r){return console.error(r),dL.getClientSessionData(null)}}getPlatformMetadata(){var t,a;const r={url:window.location.href,referrer:document.referrer};return(t=this.attributionData)!=null&&t.internalReferrer&&(r.internalReferrer=this.attributionData.internalReferrer),(a=this.attributionData)!=null&&a.originalReferrer&&(r.originalReferrer=this.attributionData.originalReferrer),{browser:vL.getBrowser(),os:vL.getOperatingSystem(),request:r,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}getEventMetadata(r){return{client:{name:`${this.name}.ts`,version:fte.version,region:this.getRegionByName(this.options.regionName)},timestamp:new Date().toISOString(),eventVersion:r.eventVersion}}getRegionByName(r){let t;return Object.values(Gre).forEach(a=>{a.systemName===r&&(t=a)}),t}normalizeYearGroup(r){return r?r.toLowerCase().split(" ").join("_"):pL}logError(r,t,...a){if(this.options.logError&&this.options.logError(r,...a),t)throw r}}var sn=(e=>(e.Stream="cv_product_stream",e.WebPlayerStream="cv_product_webplayer_stream",e.StreamProgress="cv_product_stream_progress",e.PreviewStreamProgress="cv_product_preview_stream_progress",e.StreamBuffering="cv_product_stream_buffering",e.Login="cv_product_login",e.LoginSsoRedirect="cv_product_login_sso_redirect",e.LoginFailed="cv_product_login_failed",e.Search="cv_product_search",e.InstantSearch="cv_product_instant_search",e.SearchEmptyResult="cv_product_search_empty_result",e.Filter="cv_product_search_filter",e.SearchLanding="cv_product_search_landing",e.Share="cv_product_share",e.Unshare="cv_product_unshare",e.WorkspaceAdd="cv_product_tv_add",e.Rename="cv_product_rename",e.Move="cv_product_move",e.Sort="cv_product_sort",e.Create="cv_product_create",e.Delete="cv_product_delete",e.Associate="cv_product_associate",e.Dissociate="cv_product_dissociate",e.Edit="cv_product_edit",e.Approve="cv_product_approve",e.Reject="cv_product_reject",e.Disable="cv_product_disable",e.Upload="cv_product_upload",e.Download="cv_product_download",e.Navigate="cv_product_navigate",e.Click="cv_product_click",e.Suggest="cv_product_suggest",e.EditAssoc="cv_product_edit_assoc",e.Play="cv_product_play",e.Favourite="cv_product_favourite",e.Follow="cv_product_follow",e.Prefer="cv_product_prefer",e.Print="cv_product_print",e.Copy="cv_product_copy",e.Activate="cv_product_activate",e.VerifyEmail="cv_product_verify_email",e.ChangePassword="cv_product_change_password",e.ManageGroup="cv_product_manage_group",e.Export="cv_product_export",e.SendEmail="cv_product_send_email",e.Publish="cv_product_publish",e.Submit="cv_product_submit",e.Complete="cv_product_complete",e.Archive="cv_product_archive",e.Promote="cv_product_promote",e.Demote="cv_product_demote",e.BulkAction="cv_product_bulk_action",e.Remove="cv_product_remove",e.Dismiss="cv_product_dismiss",e.Open="cv_product_open",e.Hide="cv_product_hide",e.PageView="cv_product_page_view",e.Select="cv_product_select",e.SwitchCustomer="cv_product_switch_customer",e.Focus="cv_product_focus",e.Blur="cv_product_blur",e.Hover="cv_product_hover",e.Unhover="cv_product_unhover",e.SetAccess="cv_product_set_access",e.AddToLocalCache="cv_product_add_to_lc",e.ResolveWarning="cv_product_resolve_warning",e.DismissWarning="cv_product_dismiss_warning",e))(sn||{}),aB=(e=>(e.Folder="folder",e.Video="video",e.Rating="rating",e.Series="series",e.Library="library",e.Resource="resource",e.Tag="tag",e.Subtitle="subtitle",e.Chapter="chapter",e.Resolution="resolution",e.PlaybackSpeed="playback_speed",e.Device="device",e.Restriction="restriction",e.Interactive="interactive",e.Interaction="interaction",e.PDF="pdf",e.CustomerSetting="customer_setting",e.UserSetting="user_setting",e.LibraryRequest="staff_request",e.Logo="logo",e.Pagination="pagination",e.Thumbnail="thumbnail",e.Banner="banner",e.Link="link",e.Playlist="playlist",e.Playlists="playlists",e.Person="person",e.Company="company",e.Classroom="classroom",e.ClassroomGroup="classroom_group",e.Classification="classification",e.ShareLink="share_link",e.DirectShare="direct_share",e.Upload="upload",e.SearchResults="search_results",e.SearchSuggestion="search_suggestion",e.Audience="audience",e.User="user",e.Clip="clip",e.UserChannel="user_channel",e.Widget="widget",e.Url="url",e.SocialShare="social_share",e.Presentation="presentation",e.BatchJob="batch_job",e.DeepLink="deep_link",e.Feedback="feedback",e.AppLink="app_link",e.SignUp="sign_up",e.FileGeneratorJob="file_generator_job",e.ExportLibraries="export_libraries",e.Product="product",e.Customer="customer",e.SpecialEvent="special_event",e.Region="region",e.ProductTip="product_tip",e.Livestream="livestream",e.DevicesCta="devices_cta",e.Integration="integration",e.Faq="faq",e.MixedMedia="mixed_media",e.TableOfContents="table_of_contents",e.Author="author",e.Glance="glance",e.Filter="filter",e.NotificationSetting="notification_setting",e.Transcript="transcript",e.CurriculumCode="curriculum_code",e.Assign="assign",e.PartnerProfile="partner_profile",e))(aB||{}),iB=(e=>(e.TopNav="top_nav",e.LeftNav="left_nav",e.Footer="footer",e.Popup="popup",e.Banner="banner",e.VideoList="video_list",e.VideoListItem="video_list_item",e.VideoListHeader="video_header",e.VideoThumbnail="video_thumbnail",e.ExpandableVideoThumbnail="expandable_video_thumbnail",e.VideoItemPreview="video_item_preview",e.InteractiveItemPreview="interactive_item_preview",e.ClipItemPreview="clip_item_preview",e.VideoDetails="video_details",e.InteractiveDetails="interactive_details",e.ClipDetails="clip_details",e.VideoDetailsHeader="video_details_header",e.EditVideoDetails="edit_video_details",e.EditInteractiveVideoDetails="edit_interactive_video_details",e.EditClipDetails="edit_clip_details",e.EditVideoChapters="edit_video_chapters",e.EditVideoResources="edit_video_resources",e.PreviewVideoResources="preview_video_resources",e.VideoUpload="video_upload",e.VideoRequest="video_request",e.Pagination="pagination",e.LibraryHeader="library_header",e.LibraryTiles="library_tiles",e.LibraryRequestDetails="staff_request_details",e.Libraries="libraries",e.SubFolderList="sub_folder_list",e.AwaitingReviewVideoListHeader="awaiting_review_video_list_header",e.AwaitingReviewVideoItem="awaiting_review_video_item",e.PastReleasesHeader="past_releases_header",e.MigrationWarnings="migration_warnings",e.PlaylistListHeader="playlist_list_header",e.PlaylistListItem="playlist_list_item",e.SeriesListItem="series_list_item",e.SeriesWithVideos="series_with_videos",e.PlaylistWithVideos="playlist_with_videos",e.Dropdown="dropdown",e.ViewCurriculumLinks="view_curriculum_links",e.SearchBar="search_bar",e.InstantSearch="instant_search",e.SearchFilters="search_filters",e.FeaturedSeriesSearchResult="featured_series_search_result",e.ExchangeSearchGroupItem="exchange_search_group_item",e.StaffManager="staff_manager",e.StaffManagerListItem="staff_manager_list_item",e.StudentManager="student_manager",e.ViewStudentVideos="view_student_videos",e.StudentManagerListItem="student_manager_list_item",e.EditUser="edit_user",e.UserAuditLog="user_audit_log",e.BulkUserActionsWizard="bulk_user_actions_wizard",e.BulkUserUploadWizard="bulk_user_upload_wizard",e.Classroom="classroom",e.ClassroomsList="classrooms_list",e.ClassroomsListItem="classrooms_list_item",e.ManageClassroomStudents="manage_classroom_students",e.ManageClassroomStudentListItem="manage_classroom_student_list_item",e.ManageClassroomGroups="manage_classroom_groups",e.ManageClassroomGroupListItem="manage_classroom_group_list_item",e.ManageClassroomTeachers="manage_classroom_teachers",e.ManageClassroomTeacherListItem="manage_classroom_teachers_list_item",e.ArchivedClassrooms="archived_classrooms",e.PreviewInteractive="preview_interactive",e.PreviewSharedInteractive="preview_shared_interactive",e.PreviewInteractiveQuestions="preview_interactive_questions",e.EditInteractive="edit_interactive",e.EditInteractiveDetails="edit_interactive_details",e.PlaySharedInteractive="play_shared_interactive",e.PlayInteractive="play_interactive",e.InteractiveListItem="interactive_list_item",e.DeleteInteractive="delete_interactive",e.NewInteractive="new_interactive",e.CopyInteractive="copy_interactive",e.UnpublishInteractive="unpublish_interactive",e.ShareInteractive="share_interactive",e.PlayPage="play_page",e.Player="player",e.FloatingPlayer="floating_player",e.InteractivePlayer="interactive_player",e.EmbeddedPlayer="embedded_player",e.CreateClipPlayer="create_clip_player",e.PlayClip="play_clip",e.PlaySharedClip="play_shared_clip",e.ClipListItem="clip_list_item",e.ContentUpdatesBanner="content_updates_banner",e.ContentUpdatesClassificationBanner="content_updates_classification_banner",e.PreferencesSettings="preferences_settings",e.NotificationSettings="notification_settings",e.TopicsOnboarding="topics_onboarding",e.MyUploads="my_uploads",e.MyVideos="my_videos",e.Playlists="playlists",e.SlidingList="sliding_list",e.HeroBannerItem="hero_banner_item",e.SlidingListItem="sliding_list_item",e.ClassificationListItem="classification_list_item",e.ClassificationComingSoon="classification_coming_soon",e.ClassificationHero="classification_hero",e.ClassificationFooter="classification_footer",e.Classification="classification",e.PresentationClassifications="presentation_classifications",e.Dashboard="dashboard",e.TeachingLevelBanner="teaching_level_banner",e.DiscoverFooter="discover_footer",e.ProductBanner="product_banner",e.UserOptions="user_options",e.MagicTabs="magic_tabs",e.Settings="settings",e.StudentFeed="student_feed",e.MyShares="my_shares",e.SharedByMe="shared_by_me",e.SharedWithMe="shared_with_me",e.Insights="insights",e.Error="error_view",e.UpgradeForm="upgrade_form",e.ClassroomGuide="classroom_guide",e.TeachingResources="teaching_resources",e.ResourcesGuidancePopup="resources_guidance_popup",e.InteractivesGuidancePopup="interactives_guidance_popup",e.CurriculumGuidancePopup="curriculum_guidance_popup",e.TopVideos="top_videos",e.VideoViewsList="video_views_list",e.VideoOverview="video_overview",e.StudentReachPopup="student_reach_popup",e.VideoHighlight="video_highlight",e.ClassroomViewsPopup="classroom_views_popup",e.GiveFeedbackPopup="give_feedback_popup",e.LibraryRequestSettings="library_request_settings",e.OpenInAppPrompt="open_in_app_prompt",e.UseAppButton="use_app_button",e.Launchpad="launchpad",e.EditableSubjectPreferencesWidget="editable_subject_preferences_widget",e.ThumbnailHeroMediaWidget="thumbnail_hero_media_widget",e.ThumbnailFixedListMediaLargeWidget="thumbnail_fixed_list_media_large",e.FilterSlidingPillListSmallWidget="filter_sliding_pill_list_small",e.CircleLogoSlidingListWidget="circle_logo_sliding_list_widget",e.RectangularLogoSlidingListWidget="rectangular_logo_sliding_list_widget",e.HeroBannerSmallWidget="hero_banner_small",e.EventIconSlidingListWidget="event_icon_sliding_list_widget",e.FaqQuestionWidget="faq_question_widget",e.FaqQuestionAccordionWidget="faq_question_accordion_widget",e.SubjectStatsWidgetItem="subject_stats_widget_item",e.AuthorReviewerWidget="author_reviewer_widget",e.ThumbnailFixedListMediaSmallWidget="thumbnail_fixed_list_media_small_widget",e.ThumbnailFixedListFolderSmallWidget="thumbnail_fixed_list_folder_small_widget",e.ThumbnailVerticalListWidget="thumbnail_vertical_list_widget",e.ThumbnailFixedListSmallWidget="thumbnail_fixed_list_small_widget",e.PosterFixedListLargeWidget="poster_fixed_list_large_widget",e.CurriculumResourcesAccordionWidget="curriculum_resources_accordion_widget",e.SearchCurriculumCodeWidget="search_curriculum_code_widget",e.ExchangeLinksWidget="exchange_links_widget",e.TableOfContents="table_of_contents",e.SignUpPopup="sign_up_popup",e.SignUpPage="sign_up_page",e.TrialBanner="trial_banner",e.InviteColleaguePopup="invite_colleague_popup",e.AuthProspectSelect="auth_prospect_select",e.GatedBanner="gated_banner",e.GatedEmptyState="gated_empty_state",e.GatedPopup="gated_popup",e.WelcomePopup="welcome_popup",e.WatchHistoryLanding="watch_history_landing",e.MyFavouritesLanding="my_favourites_landing",e.MyVideoLanding="my_videos_landing",e.PlaylistsLanding="playlists_landing",e.MySharesLanding="myshares_landing",e.PremiumFeatures="premium_features",e.NotificationsDropdown="notifications_dropdown",e.CalendarNav="calendar_nav",e.CalendarDay="calendar_day",e.CalendarPopup="calendar_popup",e.RegionMap="region_map",e.OnboardingSelectRoleScreen="onboarding_select_role_screen",e.OnboardingSchoolLevelScreen="onboarding_school_level_screen",e.OnboardingAudiencePreferencesScreen="onboarding_audience_preferences_screen",e.OnboardingSelectCurriculumScreen="onboarding_select_curriculum_screen",e.OnboardingSubjectsScreen="onboarding_subjects_screen",e.ProductTips="product_tips",e.LivestreamBookingForm="booking_form",e.DateRangeFilter="date_range_selector",e.AudienceFilter="audience_filter",e.AssignFlowView="assign_flow_view",e.ContentPartnerDashboard="content_partner_dashboard",e.ContentPartnerDashboardVideoBanner="content_partner_dashboard_video_banner",e.Global="global",e))(iB||{}),Fa=(e=>(e.Start="start",e.Complete="complete",e.Save="save",e.Discard="discard",e.Next="next",e.Back="back",e))(Fa||{}),Yt=(e=>(e.SignIn="sign_in",e.SignUp="sign_up",e.SignOut="sign_out",e.SwitchAccount="switch_account",e.TopNavButton="top_nav_button",e.Educator="educator",e.Student="student",e.TermsAndConditions="terms_and_conditions",e.PrivacyPolicy="privacy_policy",e.EnterEmail="enter_email",e.ClosePopup="close_popup",e.Back="back",e.UseMyLocation="use_my_location",e.TrialCreated="trial_created",e.TrialRequested="trial_requested",e.DeadEnd="dead_end",e.CantFindSchool="cant_find_school",e.ResendEmail="resend_email",e.ContactUs="contact_us",e.InviteColleague="invite_colleague",e.PremiumFeatures="premium_features",e.Upgrade="upgrade",e.FindSchool="find_school",e.AddToBraze="add_to_braze",e.RequestAccess="request_access",e.AutoJoin="auto_join",e.WrongEmail="wrong_email",e.RequestBdmTrial="request_bdm_trial",e.SkipIdpSelect="skip_idp_select",e))(Yt||{}),oB=(e=>(e[e.V1=1]="V1",e[e.V2=2]="V2",e[e.V3=3]="V3",e[e.V4=4]="V4",e[e.V5=5]="V5",e))(oB||{});const vte={first(e){return il(e)},firstFew(e,r){return il(e,r)},last(e){return Xb(e)},lastFew(e,r){return Xb(e,r)},max(e,r){return ES(e,r)},cloneAndReplaceAtIdx(e,r,t,a=null){let o=e&&e.length?e.slice():[];return r+1>o.length&&(o=[...o,...Array(r+1-o.length).fill(a)]),o.splice(r,1,t),o},moveItem(e,r,t){const a=e.slice();return a.splice(t,0,a.splice(r,1)[0]),a},isEmpty(e){return e&&!e.length},findIndex(e,r){return Yf(e,r)},findWhere(e,r){return jF(e,r)},where(e,r){return DF(e,r)},groupBy(e,r){return BF(e,r)},countBy(e,r){return $F(e,r)},flatten(e,r){return Qb(e,r)},flatMap(e,r){return Qb(e.map(r),!0)},intersection(...e){return VF(...e)},addOrRemove(e,r){const t=e.indexOf(r);return t===-1?e.push(r):e.splice(t,1),e},addOrRemoveImmutable(e,r){const t=e.indexOf(r),a=ll.deepClone(e);return t===-1?[...a,r]:[...a.slice(0,t),...a.slice(t+1)]},sortBy(e,r){return FF(e,r)},chunk(e,r){return GF(e,r)},uniq(e,r){return rf(e,r)},toObject(e,r){return e.reduce((t,a)=>Object.assign(t,ll.isObject(a)?{[a[r]]:a}:{[r]:a}),{})},findIndexById(e,r){return e.findIndex(t=>t.id===r.id)},removeItem(e,r){const t=this.findIndex(e,r);return t===-1?e:this.removeItemFromIndex(e,t)},removeItemFromIndex(e,r){return[...e.slice(0,r),...e.slice(r+1)]},findMatchedIdIndex(e,r){return e.findIndex(t=>{var a;return((a=t.id)==null?void 0:a.toString())===r.toString()})},shuffle(e){return UF(e)},findLast(e,r){for(let t=e.length-1;t>=0;t--)if(r(e[t]))return e[t]},findLastIndex(e,r){for(let t=e.length-1;t>=0;t--)if(r(e[t]))return t;return-1}},nl="OTHER";function gL(e,r){return r.includes(e)?e:e?nl:""}function pte(e){const{error:r,onChange:t,countryCode:a,isTertiary:o}=e,s=yU({countryCode:a,isTertiary:o}),u=gL(e.initialValue,s),[v,d]=je.useState(u),[h,f]=je.useState(u===nl?e.initialValue:"");je.useEffect(()=>{d(gL(e.initialValue,s))},[e.initialValue]);function c(S){d(S.target.value),f(""),t(S.target.value===nl?"":S.target.value)}function _(S){f(S.target.value),t(S.target.value)}const E=v===nl;return A.jsxs("div",{className:"form-group",children:[A.jsxs("label",{htmlFor:e.id,className:e.labelClassName,children:["Job title",e.required&&A.jsx("span",{className:"text-danger",children:"*"})]}),A.jsxs("div",{className:"mb-2",children:[A.jsxs("select",{id:e.id,name:e.id,className:`form-select ${e.size==="lg"?"form-select-lg":""} ${v.length?"text-dark":"text-secondary"} ${!!r&&"is-invalid"}`,value:v,placeholder:"Role",onChange:c,children:[A.jsx("option",{value:"",disabled:!0,className:"text-secondary",children:e.placeholder?e.placeholder:A.jsx(A.Fragment,{children:"What do you do?"})}),s.map((S,w)=>A.jsx("option",{value:S,className:"text-dark",children:S},w)),A.jsx("option",{value:nl,className:"text-dark",children:"Other"})]}),!!r&&!E&&A.jsx(Ht,{name:e.id,children:r})]}),E&&A.jsxs("div",{className:"mb-3",children:[A.jsx("input",{className:`form-control ${e.size==="lg"?"form-select-lg":""} ${!!r&&"is-invalid"}`,type:"text",value:h,placeholder:"What do you do?",autoFocus:!0,onChange:_}),!!r&&A.jsx(Ht,{name:e.id,children:r})]})]})}var $s=(e=>(e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1",e))($s||{});const gte=["uk","gb","gg","im","je","ie"],mL={au:Ze.AU,nz:Ze.NZ,us:Ze.US,uk:Ze.UK,ca:Ze.CA,gb:Ze.UK,gg:Ze.UK,im:Ze.UK,je:Ze.UK,ie:Ze.UK,al:Ze.UK,ad:Ze.UK,am:Ze.UK,at:Ze.UK,az:Ze.UK,by:Ze.UK,be:Ze.UK,ba:Ze.UK,bg:Ze.UK,hr:Ze.UK,cy:Ze.UK,cz:Ze.UK,dk:Ze.UK,ee:Ze.UK,fi:Ze.UK,fr:Ze.UK,de:Ze.UK,ge:Ze.UK,gr:Ze.UK,hu:Ze.UK,is:Ze.UK,it:Ze.UK,lv:Ze.UK,li:Ze.UK,lt:Ze.UK,lu:Ze.UK,mt:Ze.UK,md:Ze.UK,mc:Ze.UK,me:Ze.UK,nl:Ze.UK,mk:Ze.UK,no:Ze.UK,pl:Ze.UK,pt:Ze.UK,ro:Ze.UK,ru:Ze.UK,sm:Ze.UK,rs:Ze.UK,sk:Ze.UK,si:Ze.UK,es:Ze.UK,se:Ze.UK,ch:Ze.UK,tr:Ze.UK,ua:Ze.UK,va:Ze.UK},mte={au:pn.CvApSoutheast1,uk:pn.CvEuWest1,us:pn.CvNaWest1,nz:pn.CvApSoutheast2,ca:pn.CvNaWest1},yte={au:$s.AU,uk:$s.UK,us:$s.US,nz:$s.NZ,ca:$s.US},Zt={getRegionName(e){const r=Zt.getCountryCode(e);return mte[r]},getInstanceRegion(e){const r=Zt.getCountryCode(e);return yte[r]},getCountryCode(e){const r=mL[e==null?void 0:e.toLowerCase()];return r||Ze.US},isCountryCodeUK(e){return gte.includes(e.toLowerCase())},isCountryCodeAU(e){return(e==null?void 0:e.toLowerCase())===Ze.AU},isCountryCodeUS(e){return(e==null?void 0:e.toLowerCase())===Ze.US},isCountryCodeNZ(e){return(e==null?void 0:e.toLowerCase())===Ze.NZ},isSupportedCountryCode(e){return Object.keys(mL).includes(e==null?void 0:e.toLowerCase())},getLocalizedLocalityPlaceholderPhrase(e){if(e){if(Zt.isCountryCodeUK(e))return"E.g. CR0 3RL or 36 Factory Lane";if(Zt.isCountryCodeAU(e)||Zt.isCountryCodeNZ(e))return"E.g. 2212 or Revesby";if(Zt.isCountryCodeUS(e))return"E.g. 95826 or Sacramento"}},getLocalizedLocalityPlaceholderText(e){if(!e)return;const r=Zt.getLocalizedLocalityPlaceholderPhrase(e);if(r)return r}};function AS(e){if(!e)return{firstName:"",surname:""};const[r,...t]=e.split(" ").filter(a=>a.length);return{firstName:r,surname:t==null?void 0:t.join(" ")}}var Ub={exports:{}};/*!
62
62
  Copyright (c) 2018 Jed Watson.
63
63
  Licensed under the MIT License (MIT), see
64
64
  http://jedwatson.github.io/classnames
@@ -75,4 +75,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
75
75
  d-md-block
76
76
  d-none
77
77
  ${zb.userTypeOption} ${e.selected?zb.selected:""}`,onClick:()=>e.onClick(e.type),children:[A.jsx("img",{src:e.imageSrc,className:"rounded-top mx-auto pb-2 w-100"}),A.jsx("div",{className:"py-2",children:A.jsx("span",{className:"h4",children:e.buttonText})})]}),A.jsx(Wo,{className:`btn btn-lg btn-outline-dark w-100 d-md-none d-block mx-auto ${zb.mobileButtons}`,onClick:()=>e.onClick(e.type),children:e.buttonText})]})}function rae(e){function r(t){if(e.logUserAction({userType:t},{actionType:sn.Click,workflowPhase:Fa.Next,descriptor:t===In.Staff?Yt.Educator:Yt.Student}),t===In.Staff){e.nextStep({step:"enter-email",userType:t});return}e.nextStep({step:"enter-age",userType:t})}return A.jsxs("div",{className:"text-center",children:[A.jsx("h1",{className:"h4",children:"Access educational videos at your fingertips"}),A.jsx("p",{className:"mb-3",children:"Sign up for instant access to class-ready videos and worksheets."}),A.jsxs("div",{className:"row",children:[A.jsx("div",{className:"col-lg-6 mb-3",children:A.jsx(RL,{type:In.Staff,buttonText:"I'm an educator",imageSrc:e.imageUrls.educator,onClick:r,selected:e.userType===In.Staff})}),A.jsx("div",{className:"col-lg-6 mb-3",children:A.jsx(RL,{type:In.Learner,buttonText:"I'm a student",imageSrc:e.imageUrls.student,onClick:r,selected:e.userType===In.Learner})})]})]})}const tae={"select-type":rae,"enter-email":Mne,"find-school":Yne,"cant-find-school":ane,completed:Ene,"add-to-braze":Pte,"enter-age":One,"request-access":Fne,"request-bdm-trial":$ne,"select-idp":Jne};function nae(e){const{state:r,geoLocation:t,layout:a,hasPreviousStep:o,googleMapsApiKey:s,pageAppLinkString:u,back:v,nextStep:d,complete:h,logUserAction:f,logBrazeEvent:c,imageUrls:_,ajaxUrls:E,productName:S,getSignInUrl:w,globalIdps:T,createOrUpdateProfile:b,getCrmIdForProspect:I}=e,m=tae[r.currentStepId],p={...r,geoLocation:t,googleMapsApiKey:s,pageAppLinkString:u,back:v,nextStep:d,complete:h,logUserAction:f,imageUrls:_,ajaxUrls:E,productName:S,getSignInUrl:w,logBrazeEvent:c,globalIdps:T,createOrUpdateProfile:b,getCrmIdForProspect:I},y=a;if(!y)return A.jsx(m,{...p});const g=vte.last(e.state.previousStepIds)==="completed";return A.jsx(y,{geoLocation:e.geoLocation,currentStep:r.currentStepId,previousStep:v,closeApp:e.close,logUserAction:f,hasPreviousStep:o,showBackButton:!g,imageUrls:e.imageUrls,getSignInUrl:w,children:A.jsx(m,{...p})})}const aae=["email","longitude","latitude","trialCreated","idps"],iae={filterBlacklistedKeys(e){const r={...e};return aae.forEach(t=>delete r[t]),r}};function oae(e){const r=[...e.previousStepIds],t=r.pop();return{...e,previousStepIds:r,currentStepId:t}}function sae(e){return Object.entries(e).filter(([,r])=>r!==null).reduce((r,[t,a])=>({...r,[t]:a}),{})}function uae(e,r){const t={...e,previousStepIds:[...e.previousStepIds,e.currentStepId],currentStepId:r.step};if(r.step==="select-type")return{...t};if(r.step==="enter-email"||r.step==="enter-age")return{...t,userType:r.userType};if(r.step==="select-idp")return{...t,email:r.email,userTrialStatus:r.userTrialStatus,idps:r.idps};if(r.step==="find-school")return{...t,email:r.email,userTrialStatus:r.userTrialStatus};if(r.step==="cant-find-school")return{...t,prospectId:r.prospectId,schoolName:r.schoolName,schoolLocality:r.schoolLocality,country:r.country,longitude:r.longitude,latitude:r.latitude,city:r.city,province:r.province};if(r.step==="add-to-braze"||r.step==="completed"||r.step==="request-access"||r.step==="request-bdm-trial"){let a={...r};return delete a.type,delete a.step,a=sae(a),{...t,...a}}}function lae(e,r){switch(r.type){case"nextStep":return uae(e,r);case"back":return oae(e)}}const cae=({location:e,initialValues:r,entryPage:t,onStepUpdate:a,externalLogUserAction:o})=>{const s=Kt.removeEmptyKeys(r),u={currentStepId:"select-type",previousStepIds:[],...s},[v,d]=je.useReducer(lae,u);je.useEffect(()=>{a==null||a(v)},[v.currentStepId]);function h(){d({type:"back"})}function f(E){d({type:"nextStep",...E})}function c(E){d({type:"nextStep",step:"completed",...E})}function _(E,S){const w={...v,...E},T=iae.filterBlacklistedKeys(w),b={currentStepId:v.currentStepId,...T};t&&(b.entryPage=t);const I=Object.entries(b).filter(([,m])=>m!==void 0).reduce((m,[p,y])=>({...m,[p]:y}),{});o(I,{entity:aB.SignUp,location:e,...S})}return{state:v,back:h,nextStep:f,complete:c,hasPreviousStep:!!v.previousStepIds.length,logUserAction:_}},fae={statusImages:{available:"/images/sign-up/available-v2.png",active:"/images/sign-up/active-v2.png",expired:"/images/sign-up/expired-v2.png",notRequired:"/images/sign-up/active-v2.png",unavailable:"/images/sign-up/unavailable-v2.png",unsupported:"/images/sign-up/unavailable-v2.png",autoJoin:"/images/sign-up/active-v2.png",requestAccess:"/images/sign-up/active-v2.png"}};function dae(e){var T;const r={currentStepId:"find-school",previousStepIds:[],email:e.email,userType:In.Staff},t=(T=e.geoLocation)!=null&&T.countryCode?e.geoLocation:{countryCode:Ze.US,isFallback:!0},{complete:a,...o}=cae({location:iB.AuthProspectSelect,initialValues:r,externalLogUserAction:c}),[s,u]=je.useState(null);je.useEffect(()=>{dt.get("/ajax/config").then(b=>u(b))},[]);const v=Mre(s==null?void 0:s.gatewayApi),d=je.useMemo(()=>{if(!s)return null;const b={cvApSoutheast1:s.analytics[pn.CvApSoutheast1].collectionApi,cvApSoutheast2:s.analytics[pn.CvApSoutheast2].collectionApi,cvEuWest1:s.analytics[pn.CvEuWest1].collectionApi,cvNaWest1:s.analytics[pn.CvNaWest1].collectionApi};return new hte({productName:"auth.web",productVersion:s.version,regionName:Zt.getRegionName(t==null?void 0:t.countryCode),collectionApiUrls:b,collectionApiClientId:"cv_auth",getUser:()=>null,logAttributionData:!0,logUtmParameters:!0})},[s]),h=je.useMemo(()=>{if(!(s!=null&&s.braze))return null;const b=s.braze[Zt.getRegionName(t==null?void 0:t.countryCode)];return new Nl.BrazeClient({apiOptions:{apiKey:b.apiKey,baseUrl:b.url,productName:"auth.web",productVersion:s.version,allowUserSuppliedJavascript:!1,automaticallyShowInAppMessages:!1}})},[s]);Dre({additionalData:e.additionalData});function f(b){var y;if(!h)return;const I=_i.getDecodedAttributionData(),m=((y=b.event)==null?void 0:y.additionalData)||{};I!=null&&I.originalReferrer&&(m.original_referrer=I.originalReferrer),I!=null&&I.internalReferrer&&(m.internal_referrer=I.internalReferrer);const p={...b.event,additionalData:m};h.setUserInit(b.user),h.event.log(p)}function c(b,I){d==null||d.log({type:I.actionType,data:b,actionContext:{productArea:"prospect_select",entity:I.entity,location:I.location,descriptor:I.descriptor,workflowPhase:I.workflowPhase},eventVersion:I.eventVersion||oB.V1})}function _(b){if(!b.trialCreated){a(b);return}dt.post("/ajax/login/select-customer",{customerId:b.customerId,returnUrl:e.returnUrl}).then(I=>Pt(I,e))}function E(){e.navigate({step:e.backStep,backStep:null})}async function S(b){var I;try{return(I=(await dt.get(v.prospectLookups(b))).find(p=>p.type===td.CrmId))==null?void 0:I.externalId}catch{return}}if(!s)return A.jsx(A.Fragment,{});const w={...o,complete:_,googleMapsApiKey:s.googleMapsApiKey,ajaxUrls:v,imageUrls:fae,geoLocation:t,productName:Ma.Auth,getSignInUrl:()=>"",logBrazeEvent:f,getCrmIdForProspect:S};return A.jsxs(A.Fragment,{children:[A.jsx(yt,{theme:e.theme,onClickBack:!!e.backStep&&E}),A.jsx(nae,{...w})]})}function hae(e){return A.jsxs("div",{className:"text-center",children:[A.jsx(yt,{theme:e.theme}),A.jsx("img",{className:"img-fluid mb-4",alt:"error",src:"/images/errors/email-not-allowed-v2.png"}),A.jsx("h1",{className:"h2 mb-3",children:"Oops! Make sure to use your school email address"}),A.jsx("p",{className:"mb-3",children:"This includes the email you use to sign in to Google or Microsoft."}),A.jsx("a",{href:e.liteUrl+"sign-up",className:"btn btn-lg btn-dark w-100 text-decoration-none",children:"Try again"})]})}const wB={username:mK,"username-input":uY,"username-or-guest":lY,"guest-selection":OY,password:qY,"select-idp":DY,error:nJ,"verify-email":UY,"verify-email-check-code":HY,"verify-email-link-success":VY,"verify-email-skip-reason":sJ,"forgot-password":GY,"forgot-password-check-code":WY,"reset-password":YY,"change-password":JY,"self-activation":XY,"self-activation-check-code":QY,"verify-email-link-email-in-use":iJ,"verify-email-code-email-in-use":oJ,logout:uJ,loggedout:lJ,"activate-user":Ree,"select-customer":Mee,"trial-expired":$ee,"link-account":Ire,"link-account-code":Are,invite:kre,"invite-success":Pre,"select-user-type":jre,"prospect-select":dae,"email-not-allowed":hae,"organisation-select-customer":cJ,"contact-support":tJ};function vae(e,r){if(r.type!=="navigate")return e;const t=Object.keys(r.data).reduce((a,o)=>{if(o!=="bannerType")return r.data[o]!==void 0&&(a={...a,[o]:r.data[o]}),a},{});return r.data.clearUsername&&(t.username=void 0,t.clearUsername=void 0),{...e,...t}}function pae(e,r){return r.type!=="setBanner"?e:{...e,bannerType:r.data.bannerType}}function gae(e,r){switch(r.type){case"navigate":return vae(e,r);case"setBanner":return pae(e,r)}}const mae="_footer_psbd8_1",yae={footer:mae};function bae(e){return A.jsx("div",{className:"text-center p-2 text-secondary small",children:A.jsxs("ul",{className:"d-flex flex-wrap list-unstyled justify-content-center",children:[A.jsx("li",{children:A.jsxs("span",{children:["2003 - ",new Date().getFullYear()," © ClickView Pty Limited"]})})," | ",A.jsx("li",{children:A.jsx("a",{href:e.privacyPolicyUrl,className:"text-secondary",children:A.jsx("strong",{children:"Privacy Policy"})})})," | ",A.jsx("li",{children:A.jsx("a",{href:e.termsAndConditionsUrl,className:"text-secondary",children:A.jsx("strong",{children:"Terms and Conditions"})})})," | ",A.jsx("li",{children:A.jsx("span",{children:e.version})})]})})}function _ae(e){return A.jsx("footer",{className:yae.footer,children:A.jsx(bae,{...e})})}const Sae="M317.302 140.594C356.23 163.069 356.23 219.257 317.302 241.731L87.9302 374.159C36.1933 404.029 -21.7046 346.131 8.16593 294.394L50.9108 220.359C61.3416 202.293 61.3416 180.034 50.9109 161.967L8.16512 87.9294C-21.7052 36.1925 36.1927 -21.7052 87.9295 8.16518L317.302 140.594Z";function wae(){return A.jsxs("svg",{viewBox:"0 0 2420 383",children:[A.jsx("title",{children:"ClickView Logo"}),A.jsx("path",{fill:"#f8981d",d:Sae}),A.jsx("path",{fill:"#313543",d:"M611.506 37.93c32.531 0 61.155 7.86 85.686 23.732 24.569 15.898 42.448 38.445 53.64 67.43l2.553 6.609h-55.686l-1.301-2.829c-7.699-16.724-18.767-29.458-33.196-38.377l-.11-.069-.014-.01c-13.652-8.57-30.142-13.096-49.669-13.371l-1.903-.014c-19.522 0-36.885 4.537-52.213 13.522-15.305 8.973-27.345 21.774-36.129 38.544l-.015.029c-8.74 16.421-13.202 35.916-13.202 58.645 0 22.414 4.447 41.908 13.188 58.62l.847 1.564.825 1.465c8.613 15.034 20.102 26.719 34.486 35.152 15.328 8.985 32.691 13.521 52.213 13.521l1.906-.013c19.595-.268 36.134-4.686 49.812-13.045 14.419-8.92 25.48-21.649 33.175-38.367l1.3-2.826h55.708l-2.58 6.622c-11.198 28.71-29.078 51.11-53.635 67l-.091.058-.031.017c-24.507 15.544-53.089 23.239-85.564 23.239-27.772 0-53.222-6.451-76.248-19.403l-.022-.013-.007-.004-.117-.066-.021-.015c-22.685-13.233-40.648-31.506-53.841-54.737-13.252-23.335-19.83-49.632-19.83-78.769 0-29.136 6.578-55.434 19.83-78.768 13.169-23.468 31.098-41.866 53.747-55.1l.016-.012.205-.118c23.032-13.244 48.497-19.843 76.288-19.843M853.29 344.778h-48.522V37.935h48.522zm108.133 0H912.9V125.985h48.523zM937.586 37.93c8.392 0 15.617 3.072 21.365 9.12l.557.571c5.665 5.944 8.519 13.236 8.519 21.603 0 8.638-3.042 16.128-9.076 22.174-5.748 6.047-12.973 9.121-21.365 9.121-8.649 0-16.147-3.05-22.197-9.099-6.049-6.049-9.098-13.547-9.098-22.196 0-8.648 3.049-16.147 9.098-22.196s13.548-9.098 22.197-9.098m883.954 306.848h-48.52V125.985h48.52zM1797.71 37.93c8.39 0 15.61 3.072 21.36 9.12l.56.571c5.66 5.944 8.52 13.236 8.52 21.603 0 8.638-3.04 16.128-9.08 22.174-5.75 6.047-12.97 9.121-21.36 9.121-8.65 0-16.15-3.05-22.2-9.099s-9.1-13.547-9.1-22.196c0-8.648 3.05-16.147 9.1-22.196s13.55-9.098 22.2-9.098m-685.63 88.056c.18-.001.55-.007.8-.007h.02l1.27.007c.22-.001.58-.007.87-.007l1.23.005c25.71.192 47.32 6.421 64.47 19.041 17.63 12.79 29.21 30.547 34.76 52.985l1.49 6.025h-50.78l-1-3.522c-.03-.077-.03-.089-.05-.138-3.68-8.706-9.16-15.814-16.48-21.406l-.01-.012-.08-.064c-9.02-7.051-20.36-10.823-34.31-11.058l-1.42-.011c-18.69.005-33.52 6.889-44.94 20.703v.013l-.07.082c-3.49 4.155-6.47 8.877-8.93 14.186-3.21 9.073-4.87 19.779-4.87 32.199l.01 1.197.01 1.149c.2 11.745 1.9 21.943 5 30.664 2.43 5.277 5.37 9.989 8.8 14.153 11.43 13.858 26.29 20.763 45.01 20.763l1.37-.011c14-.221 25.37-3.876 34.4-10.69 7.21-5.445 12.74-12.723 16.56-21.979.01-.015.01-.03.02-.051l1.03-3.483h50.85l-1.64 6.118c-5.82 21.7-17.53 39.258-35.06 52.487l-.14.103-.04.022c-17.34 12.78-38.78 19.123-63.98 19.319l-1.21.005c-.21 0-.53-.004-.68-.005l-1.45.009h-.03c-.4 0-.82-.006-1.16-.009l-.91.005h-.02c-20.35 0-38.67-4.463-54.82-13.501l-.03-.013-.09-.053c-15.42-8.796-27.62-21.14-36.53-36.934l-.01-.014-.01-.014-.82-1.481-.01-.013-.01-.014c-8.73-16.072-13.15-34.684-13.42-55.69v-.023l-.01-1.99v-.026c0-21.601 4.42-40.66 13.45-57.012v-.005l.82-1.481.01-.013.01-.015c8.91-15.794 21.11-28.138 36.53-36.934l.09-.053.03-.014c16.15-9.038 34.47-13.501 54.82-13.501h.02zm483.02 158.82 89.96-246.876h51.35l-115.78 306.848h-51.48L1453.37 37.93h51.77zm375.01-158.827c19.94 0 37.78 4.354 53.37 13.192 15.55 8.809 27.53 21.032 35.85 36.604l.66 1.205.01.013v.013c7.04 13.033 10.99 27.498 11.91 43.315q.21 3.607.21 7.301v1.239c-.05 6.217-.43 12.744-1.13 19.576l-.45 4.359h-156.39c.98 8.318 3.05 15.659 6.15 22.076a60 60 0 0 0 8.24 10.724c11.63 11.489 25.5 17.231 41.88 17.334 13.51-.053 24.36-3.558 32.89-10.222 6.94-5.49 12.28-12.323 16.04-20.561l1.3-2.839h50.42l-1.73 6.17c-5.75 20.496-17.3 37.279-34.51 50.223l-.01.009-.02.009-.01.011c-17.36 12.794-38.78 19.047-63.92 19.047l-.21-.001-.07-.001-.46.002h-.02c-19.96 0-38.04-4.488-54.1-13.557l-.01-.004-.01-.006-.01-.004v-.003c-15.78-9.051-28.19-21.853-37.22-38.29l-.02-.029-.08-.162c-8.77-16.289-13.23-34.896-13.5-55.694v-.026l-.01-1.968v-.025c0-21.589 4.32-40.745 13.12-57.32 8.66-16.295 20.76-28.919 36.28-37.747l.74-.418c16.08-9.071 34.4-13.544 54.82-13.545m-1.7 41.839c-14.73 0-27.09 4.424-37.36 13.179-8.74 7.62-14.31 17.908-16.51 31.206h108.22c-.65-8.377-3-15.493-6.92-21.486l-.04-.065-.01-.01c-4.73-7.419-11.19-12.981-19.49-16.726l-.02-.007-.04-.023-.05-.023-.04-.017c-8.2-3.989-17.41-6.028-27.74-6.028m372.35 176.959h-46.41l-45.08-148.561-45.08 148.561h-46.39l-68.68-218.797h49.14l42.94 156.786 46.36-156.786h46.09l45.2 156.683L2361 125.98l47.88-.002zM1309.64 210.55l73.43-84.564h61.94l-103.03 109.019 103.39 109.773h-60.74l-74.99-84.406v84.406h-48.52V37.935h48.52z"})]})}var Vo=(e=>(e[e.Audience=1]="Audience",e[e.Category=2]="Category",e[e.Channel=3]="Channel",e[e.Chapter=4]="Chapter",e[e.Comment=5]="Comment",e[e.OwnerComment=6]="OwnerComment",e[e.Image=7]="Image",e[e.Thumbnail=8]="Thumbnail",e[e.Avatar=9]="Avatar",e[e.Banner=10]="Banner",e[e.Video=11]="Video",e[e.Trailer=12]="Trailer",e[e.Rating=13]="Rating",e[e.Topic=14]="Topic",e[e.Series=15]="Series",e[e.Season=16]="Season",e[e.HostedMediaObjectCollection=17]="HostedMediaObjectCollection",e[e.ExchangeCollection=18]="ExchangeCollection",e[e.CustomMediaObjectCollection=19]="CustomMediaObjectCollection",e[e.Playlist=20]="Playlist",e[e.ClickViewTvCollection=21]="ClickViewTvCollection",e[e.ClickViewProductionsCollection=22]="ClickViewProductionsCollection",e[e.User=23]="User",e[e.SystemUser=24]="SystemUser",e[e.Customer=25]="Customer",e[e.Country=26]="Country",e[e.Organisation=28]="Organisation",e[e.SystemOrganisation=29]="SystemOrganisation",e[e.Group=30]="Group",e[e.SystemGroup=31]="SystemGroup",e[e.FlagReason=32]="FlagReason",e[e.Library=33]="Library",e[e.Interactive=34]="Interactive",e[e.WorkspaceCollection=35]="WorkspaceCollection",e[e.Conversation=36]="Conversation",e[e.Message=37]="Message",e[e.Notification=38]="Notification",e[e.Clip=39]="Clip",e[e.Link=40]="Link",e[e.UserChannel=41]="UserChannel",e[e.Resource=42]="Resource",e[e.VideoStream=43]="VideoStream",e[e.AudioStream=44]="AudioStream",e[e.Tag=45]="Tag",e[e.Subtitle=46]="Subtitle",e[e.LicencedContentCollection=47]="LicencedContentCollection",e[e.PublicCollection=48]="PublicCollection",e[e.CategoryTree=49]="CategoryTree",e[e.Logo=50]="Logo",e[e.Permission=51]="Permission",e[e.Subject=52]="Subject",e[e.Field=53]="Field",e[e.Company=54]="Company",e[e.Person=55]="Person",e[e.Cover=56]="Cover",e[e.Poster=57]="Poster",e[e.SubjectAudience=58]="SubjectAudience",e[e.TallPoster=60]="TallPoster",e[e.Classroom=67]="Classroom",e[e.ClassroomGroup=68]="ClassroomGroup",e[e.UserProfile=74]="UserProfile",e[e.PartnerProfile=78]="PartnerProfile",e[e.LearningLevel=79]="LearningLevel",e))(Vo||{});const Eae="_left_1r3w0_1",Cae="_leftWithImage_1r3w0_10",xae="_bgCover_1r3w0_14",Iae="_bgFull_1r3w0_17",Aae="_right_1r3w0_20",Tae="_rightContent_1r3w0_28",Rae="_narrowContent_1r3w0_34",Oae="_logo_1r3w0_37",kae="_buttonContainer_1r3w0_43",Pae="_blur_1r3w0_53",Nae="_imageContainer_1r3w0_65",jae="_imagePosition_1r3w0_73",qae="_image_1r3w0_65",Dae="_thumbnail_1r3w0_87",Lae="_tallposter_1r3w0_90",Mae="_cover_1r3w0_96",Uae="_contentBody_1r3w0_102",Fae="_contentBodyBase_1r3w0_106",Dt={left:Eae,leftWithImage:Cae,bgCover:xae,bgFull:Iae,right:Aae,rightContent:Tae,narrowContent:Rae,logo:Oae,buttonContainer:kae,blur:Pae,imageContainer:Nae,imagePosition:jae,image:qae,thumbnail:Dae,tallposter:Lae,cover:Mae,contentBody:Uae,contentBodyBase:Fae};function Bae(e){switch(e){case Vo.Video:case Vo.Interactive:case Vo.Clip:return Dt.thumbnail;case Vo.Subject:case Vo.Playlist:return Dt.cover;case Vo.Series:return Dt.tallposter;default:return""}}function An(e){return A.jsx("div",{className:"d-flex",children:e.children})}function $ae(e){return A.jsx("div",{className:`${Dt.left} ${e.className?e.className:""}`,children:e.children})}function zae(e){const[r,t]=je.useState(!1),[a,o]=je.useState("");return je.useEffect(()=>{if(!e.imageUrl){const u=e.fallbackImages[Math.floor(Math.random()*e.fallbackImages.length)];o(u.bgUrl);return}const s=new Image;return s.onload=()=>t(!0),s.src=e.imageUrl,()=>s.onload=null},[e.imageUrl]),A.jsx("div",{className:`${Dt.left} ${Dt.leftWithImage} ${Dt.bgCover} bg-light`,style:{backgroundImage:a?`url('${a}')`:""},children:r&&A.jsxs(A.Fragment,{children:[A.jsx("div",{className:Dt.blur,style:{backgroundImage:`url('${e.imageUrl}')`}}),A.jsx("div",{className:`${Dt.imageContainer} ${Bae(e.objectType)}`,children:A.jsx("div",{className:Dt.imagePosition,children:A.jsx("img",{className:Dt.image,src:e.imageUrl,alt:e.title})})})]})})}function Zae(e){const[r,t]=je.useState("");return je.useEffect(()=>{const a=e.images[Math.floor(Math.random()*e.images.length)];t(a.bgUrl)},[]),A.jsx("div",{className:`${Dt.left} bg-blue d-flex align-items-center`,children:r&&A.jsx("img",{className:"img-fluid",src:r,draggable:!1})})}const Hae={cover:Dt.bgCover,full:Dt.bgFull};function Vae(e){const r={backgroundImage:e.imageUrl?`url("${e.imageUrl}")`:""};return e.backgroundColor&&(r.backgroundColor=e.backgroundColor),A.jsx("div",{className:`${Dt.left} ${Dt.leftWithImage} ${Hae[e.imageSize||"cover"]} d-flex align-items-center`,style:r,title:e.title})}function Gae(e){return A.jsx("div",{className:`${Dt.right} ${e.className?e.className:""}`,children:e.children})}function Wae(e){var t;const r=(e==null?void 0:e.logoComponent)||wae;return A.jsxs("div",{className:"position-relative",children:[!!e.bannerComponent&&e.bannerComponent,A.jsx("div",{className:Ua(Dt.logo,"position-absolute",(t=e.className)==null?void 0:t.logoContainer),children:A.jsx(r,{})}),e.children]})}function Kae(e){return A.jsx("div",{className:Ua(Dt.rightContent,"d-flex flex-column justify-content-center h-100",e==null?void 0:e.className),children:e.children})}const Yae={base:Dt.contentBodyBase,full:""};function Jae(e){const r=Yae[e.width||"base"];return A.jsx("div",{className:Ua(Dt.contentBody,r,"m-auto p-3",e.className),children:e.children})}An.NarrowContent=Xae;function Xae(e){return A.jsx("div",{className:`${Dt.narrowContent} mx-auto w-100 ${e.className?e.className:""}`,children:e.children})}function Qae(e){return A.jsx("div",{className:Ua("position-fixed bg-white d-flex align-items-center",Dt.buttonContainer,e==null?void 0:e.className),children:e.children})}An.Left=$ae;An.LeftImage=zae;An.LeftProductImage=Zae;An.LeftImageWithBackground=Vae;An.Right=Gae;An.Header=Wae;An.Content=Kae;An.ContentBody=Jae;An.Buttons=Qae;function eie(){function e(t){t.key==="Tab"&&(document.body.classList.add("user-is-tabbing"),window.removeEventListener("keydown",e),window.addEventListener("mousedown",r))}function r(){document.body.classList.remove("user-is-tabbing"),window.removeEventListener("mousedown",r),window.addEventListener("keydown",e)}Nr.useEffect(()=>(window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)),[])}const rie="_full_vw1kz_1",tie="_themeBannerClearance_vw1kz_9",OL={full:rie,themeBannerClearance:tie};function nie(e){return e.imageType==="background"?A.jsx(An.LeftImageWithBackground,{imageUrl:e.imageUrl}):e.imageType==="image"?A.jsx(An.LeftImageWithBackground,{imageUrl:e.imageUrl,imageSize:"full",backgroundColor:e.backgroundColor,title:e.title}):A.jsx(A.Fragment,{})}function aie(e){var I,m;const{children:r,footer:t,bannerType:a,theme:o}=e,[s,u]=Nr.useState(null);eie();const{imageUrls:v,imageType:d,backgroundColor:h,banner:f,title:c,logoComponent:_,bannerSpacer:E}=za.getDefinition(o),S=v[(m=(I=e.geoLocation)==null?void 0:I.countryCode)==null?void 0:m.toLowerCase()]||v.default;Nr.useEffect(()=>{const p=Math.floor(Math.random()*S.length);u(S[p])},[]);const w=d!=="none",T=!!a,b=["plugin"].includes(a);return A.jsxs(An,{children:[w&&A.jsx(nie,{title:c,imageUrl:s,imageType:d,backgroundColor:h}),A.jsxs(An.Right,{className:Ua(!w&&OL.full),children:[A.jsx(An.Header,{bannerComponent:!!f&&A.jsx(AN,{bannerType:f}),logoComponent:_,className:{logoContainer:!!f&&OL.themeBannerClearance}}),A.jsxs(An.Content,{className:Ua(!w&&"px-0 w-100","pb-0"),children:[!b&&A.jsx(AN,{bannerType:a}),A.jsxs(An.ContentBody,{children:[r,!b&&T&&A.jsx(E,{})]}),A.jsx(_ae,{...t})]})]})]})}function iie(e){const{step:r,returnUrl:t,data:a={},footer:o,geoLocation:s,theme:u,additionalData:v}=e,[d,h]=Nr.useReducer(gae,{step:r,returnUrl:t,geoLocation:s,theme:u,additionalData:v,...a});function f(_){h({type:"navigate",data:_})}const c=wB[d.step];return c||Pt({step:r,data:a},null),A.jsxs(A.Fragment,{children:[A.jsx(aie,{footer:{...o,...d},bannerType:d.bannerType,step:r,theme:u,geoLocation:s,children:!!c&&A.jsx(c,{navigate:f,dispatch:h,...d})}),!1]})}function oie(e){var c;const{id:r,returnUrl:t,footer:a,region:o,config:s,theme:u,additionalData:v}=e,d=e.currentStep||{},h=document.getElementById(r);vK.createRoot(h).render(A.jsx(iie,{returnUrl:t,step:d.step,data:{...s,...d.data},footer:a,geoLocation:o,theme:((c=d.data)==null?void 0:c.theme)||u,additionalData:v}))}window.cvauth={start:oie};
78
- //# sourceMappingURL=index-LIuSh2nV.js.map
78
+ //# sourceMappingURL=index-D_38a0gB.js.map