var Purs_EntryPoints_DataLab_EmailContentOptimizer=(()=>{var CF=Object.create;var Ul=Object.defineProperty;var RF=Object.getOwnPropertyDescriptor;var TF=Object.getOwnPropertyNames;var wF=Object.getPrototypeOf,EF=Object.prototype.hasOwnProperty;var B_=t=>Ul(t,"__esModule",{value:!0});var FF=(t,e)=>()=>(t&&(e=t(t=0)),e);var $n=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),G_=(t,e)=>{B_(t);for(var n in e)Ul(t,n,{get:e[n],enumerable:!0})},MF=(t,e,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of TF(e))!EF.call(t,r)&&r!=="default"&&Ul(t,r,{get:()=>e[r],enumerable:!(n=RF(e,r))||n.enumerable});return t},Qs=t=>MF(B_(Ul(t!=null?CF(wF(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var l1={};G_(l1,{Children:()=>l3,Component:()=>f3,Fragment:()=>m3,PureComponent:()=>D3,Suspense:()=>y3,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>i3,cloneElement:()=>c3,createContext:()=>s3,createElement:()=>d3,createRef:()=>p3,default:()=>vr,forwardRef:()=>v3,isValidElement:()=>_3,lazy:()=>h3,memo:()=>g3,useCallback:()=>b3,useContext:()=>C3,useEffect:()=>R3,useImperativeHandle:()=>T3,useLayoutEffect:()=>w3,useMemo:()=>E3,useReducer:()=>F3,useRef:()=>M3,useState:()=>x3,version:()=>S3});var vr,i3,l3,c3,f3,s3,d3,p3,v3,m3,_3,h3,g3,D3,y3,b3,C3,R3,T3,w3,E3,F3,M3,x3,S3,To=FF(()=>{vr=window.React,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:i3,Children:l3,cloneElement:c3,Component:f3,createContext:s3,createElement:d3,createRef:p3,forwardRef:v3,Fragment:m3,isValidElement:_3,lazy:h3,memo:g3,PureComponent:D3,Suspense:y3,useCallback:b3,useContext:C3,useEffect:R3,useImperativeHandle:T3,useLayoutEffect:w3,useMemo:E3,useReducer:F3,useRef:M3,useState:x3,version:S3}=window.React});var ip=$n((Ylt,f1)=>{"use strict";var c1=Object.getOwnPropertySymbols,I3=Object.prototype.hasOwnProperty,L3=Object.prototype.propertyIsEnumerable;function j3(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function A3(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(l){return e[l]});if(r.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(l){a[l]=l}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}f1.exports=A3()?Object.assign:function(t,e){for(var n,r=j3(t),a,l=1;l{"use strict";var lp=ip(),_u=60103,s1=60106;At.Fragment=60107;At.StrictMode=60108;At.Profiler=60114;var d1=60109,p1=60110,v1=60112;At.Suspense=60113;var m1=60115,_1=60116;typeof Symbol=="function"&&Symbol.for&&(Kn=Symbol.for,_u=Kn("react.element"),s1=Kn("react.portal"),At.Fragment=Kn("react.fragment"),At.StrictMode=Kn("react.strict_mode"),At.Profiler=Kn("react.profiler"),d1=Kn("react.provider"),p1=Kn("react.context"),v1=Kn("react.forward_ref"),At.Suspense=Kn("react.suspense"),m1=Kn("react.memo"),_1=Kn("react.lazy"));var Kn,h1=typeof Symbol=="function"&&Symbol.iterator;function N3(t){return t===null||typeof t!="object"?null:(t=h1&&t[h1]||t["@@iterator"],typeof t=="function"?t:null)}function ji(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n{"use strict";F1.exports=E1()});var Y1=$n(gu=>{"use strict";var mr=ip(),sa=M1();function pe(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;nPi;Pi++)Je[Pi]=Pi+1;var Je,Pi;Je[15]=0;var q3=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,N1=Object.prototype.hasOwnProperty,P1={},O1={};function U1(t){return N1.call(O1,t)?!0:N1.call(P1,t)?!1:q3.test(t)?O1[t]=!0:(P1[t]=!0,!1)}function k3(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function B3(t,e,n,r){if(e===null||typeof e=="undefined"||k3(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function dn(t,e,n,r,a,l,f){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=l,this.removeEmptyString=f}var ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ze[t]=new dn(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ze[e]=new dn(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){ze[t]=new dn(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ze[t]=new dn(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){ze[t]=new dn(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){ze[t]=new dn(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){ze[t]=new dn(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){ze[t]=new dn(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){ze[t]=new dn(t,5,!1,t.toLowerCase(),null,!1,!1)});var Cp=/[\-:]([a-z])/g;function Rp(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Cp,Rp);ze[e]=new dn(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Cp,Rp);ze[e]=new dn(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Cp,Rp);ze[e]=new dn(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){ze[t]=new dn(t,1,!1,t.toLowerCase(),null,!1,!1)});ze.xlinkHref=new dn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){ze[t]=new dn(t,1,!1,t.toLowerCase(),null,!0,!0)});var G3=/["'&<>]/;function wo(t){if(typeof t=="boolean"||typeof t=="number")return""+t;t=""+t;var e=G3.exec(t);if(e){var n="",r,a=0;for(r=e.index;r$c))throw Error(pe(301));if(t===Pr)if(Hc=!0,t={action:n,next:null},La===null&&(La=new Map),n=La.get(e),n===void 0)La.set(e,t);else{for(e=n;e.next!==null;)e=e.next;e.next=t}}function wp(){}var Fo=null,K3={readContext:function(t){var e=Fo.threadID;return Ni(t,e),t[e]},useContext:function(t){Eo();var e=Fo.threadID;return Ni(t,e),t[e]},useMemo:B1,useReducer:k1,useRef:function(t){Pr=Eo(),Xt=Tp();var e=Xt.memoizedState;return e===null?(t={current:t},Xt.memoizedState=t):e},useState:function(t){return k1(q1,t)},useLayoutEffect:function(){},useCallback:function(t,e){return B1(function(){return t},e)},useImperativeHandle:wp,useEffect:wp,useDebugValue:wp,useDeferredValue:function(t){return Eo(),t},useTransition:function(){return Eo(),[function(t){t()},!1]},useOpaqueIdentifier:function(){return(Fo.identifierPrefix||"")+"R:"+(Fo.uniqueID++).toString(36)},useMutableSource:function(t,e){return Eo(),e(t._source)}},G1={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function J1(t){switch(t){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"}}var z1={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},Y3=mr({menuitem:!0},z1),Ui={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},X3=["Webkit","ms","Moz","O"];Object.keys(Ui).forEach(function(t){X3.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Ui[e]=Ui[t]})});var Z3=/([A-Z])/g,t4=/^ms-/,ja=sa.Children.toArray,Ep=H3.ReactCurrentDispatcher,e4={listing:!0,pre:!0,textarea:!0},n4=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,V1={},Fp={};function r4(t){if(t==null)return t;var e="";return sa.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}var a4=Object.prototype.hasOwnProperty,o4={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Q1(t,e){if(t===void 0)throw Error(pe(152,Ai(e)||"Component"))}function u4(t,e,n){function r(f,d){var p=d.prototype&&d.prototype.isReactComponent,m=$3(d,e,n,p),v=[],D=!1,C={isMounted:function(){return!1},enqueueForceUpdate:function(){if(v===null)return null},enqueueReplaceState:function(Wt,Nt){D=!0,v=[Nt]},enqueueSetState:function(Wt,Nt){if(v===null)return null;v.push(Nt)}};if(p){if(p=new d(f.props,m,C),typeof d.getDerivedStateFromProps=="function"){var b=d.getDerivedStateFromProps.call(null,f.props,p.state);b!=null&&(p.state=mr({},p.state,b))}}else if(Pr={},p=d(f.props,m,C),p=H1(d,f.props,p,m),p==null||p.render==null){t=p,Q1(t,d);return}if(p.props=f.props,p.context=m,p.updater=C,C=p.state,C===void 0&&(p.state=C=null),typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")if(typeof p.componentWillMount=="function"&&typeof d.getDerivedStateFromProps!="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&typeof d.getDerivedStateFromProps!="function"&&p.UNSAFE_componentWillMount(),v.length){C=v;var R=D;if(v=null,D=!1,R&&C.length===1)p.state=C[0];else{b=R?C[0]:p.state;var E=!0;for(R=R?1:0;R=d))throw Error(pe(304));var p=new Uint16Array(d);for(p.set(f),Je=p,Je[0]=l+1,f=l;f=p.children.length){var m=p.footer;if(m!==""&&(this.previousWasTextNode=!1),this.stack.pop(),p.type==="select")this.currentSelectValue=null;else if(p.type!=null&&p.type.type!=null&&p.type.type.$$typeof===Oc)this.popProvider(p.type);else if(p.type===Uc){this.suspenseDepth--;var v=l.pop();if(f){f=!1;var D=p.fallbackFrame;if(!D)throw Error(pe(303));this.stack.push(D),l[this.suspenseDepth]+="";continue}else l[this.suspenseDepth]+=v}l[this.suspenseDepth]+=m}else{var C=p.children[p.childIndex++],b="";try{b+=this.render(C,p.context,p.domNamespace)}catch(R){throw R!=null&&typeof R.then=="function"?Error(pe(294)):R}finally{}l.length<=this.suspenseDepth&&l.push(""),l[this.suspenseDepth]+=b}}return l[0]}finally{Ep.current=a,Fo=r,$1()}},e.render=function(n,r,a){if(typeof n=="string"||typeof n=="number")return a=""+n,a===""?"":this.makeStaticMarkup?wo(a):this.previousWasTextNode?""+wo(a):(this.previousWasTextNode=!0,wo(a));if(r=u4(n,r,this.threadID),n=r.child,r=r.context,n===null||n===!1)return"";if(!sa.isValidElement(n)){if(n!=null&&n.$$typeof!=null)throw a=n.$$typeof,Error(a===vp?pe(257):pe(258,a.toString()));return n=ja(n),this.stack.push({type:null,domNamespace:a,children:n,childIndex:0,context:r,footer:""}),""}var l=n.type;if(typeof l=="string")return this.renderDOM(n,r,a);switch(l){case j1:case L1:case mp:case _p:case Dp:case Pc:return n=ja(n.props.children),this.stack.push({type:null,domNamespace:a,children:n,childIndex:0,context:r,footer:""}),"";case Uc:throw Error(pe(294));case I1:throw Error(pe(343))}if(typeof l=="object"&&l!==null)switch(l.$$typeof){case gp:Pr={};var f=l.render(n.props,n.ref);return f=H1(l.render,n.props,f,n.ref),f=ja(f),this.stack.push({type:null,domNamespace:a,children:f,childIndex:0,context:r,footer:""}),"";case yp:return n=[sa.createElement(l.type,mr({ref:n.ref},n.props))],this.stack.push({type:null,domNamespace:a,children:n,childIndex:0,context:r,footer:""}),"";case Oc:return l=ja(n.props.children),a={type:n,domNamespace:a,children:l,childIndex:0,context:r,footer:""},this.pushProvider(n),this.stack.push(a),"";case hp:l=n.type,f=n.props;var d=this.threadID;return Ni(l,d),l=ja(f.children(l[d])),this.stack.push({type:n,domNamespace:a,children:l,childIndex:0,context:r,footer:""}),"";case S1:throw Error(pe(338));case bp:return l=n.type,f=l._init,l=f(l._payload),n=[sa.createElement(l,mr({ref:n.ref},n.props))],this.stack.push({type:null,domNamespace:a,children:n,childIndex:0,context:r,footer:""}),""}throw Error(pe(130,l==null?l:typeof l,""))},e.renderDOM=function(n,r,a){var l=n.type.toLowerCase();if(a===G1.html&&J1(l),!V1.hasOwnProperty(l)){if(!n4.test(l))throw Error(pe(65,l));V1[l]=!0}var f=n.props;if(l==="input")f=mr({type:void 0},f,{defaultChecked:void 0,defaultValue:void 0,value:f.value!=null?f.value:f.defaultValue,checked:f.checked!=null?f.checked:f.defaultChecked});else if(l==="textarea"){var d=f.value;if(d==null){d=f.defaultValue;var p=f.children;if(p!=null){if(d!=null)throw Error(pe(92));if(Array.isArray(p)){if(!(1>=p.length))throw Error(pe(93));p=p[0]}d=""+p}d==null&&(d="")}f=mr({},f,{value:void 0,children:""+d})}else if(l==="select")this.currentSelectValue=f.value!=null?f.value:f.defaultValue,f=mr({},f,{value:void 0});else if(l==="option"){p=this.currentSelectValue;var m=r4(f.children);if(p!=null){var v=f.value!=null?f.value+"":m;if(d=!1,Array.isArray(p)){for(var D=0;D":(Nt+=">",d="");t:{if(p=f.dangerouslySetInnerHTML,p!=null){if(p.__html!=null){p=p.__html;break t}}else if(p=f.children,typeof p=="string"||typeof p=="number"){p=wo(p);break t}p=null}return p!=null?(f=[],e4.hasOwnProperty(l)&&p.charAt(0)===` `&&(Nt+=` `),Nt+=p):f=ja(f.children),n=n.type,a=a==null||a==="http://www.w3.org/1999/xhtml"?J1(n):a==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":a,this.stack.push({domNamespace:a,type:l,children:f,childIndex:0,context:r,footer:d}),this.previousWasTextNode=!1,Nt},t}();gu.renderToNodeStream=function(){throw Error(pe(207))};gu.renderToStaticMarkup=function(t,e){t=new K1(t,!0,e);try{return t.read(1/0)}finally{t.destroy()}};gu.renderToStaticNodeStream=function(){throw Error(pe(208))};gu.renderToString=function(t,e){t=new K1(t,!1,e);try{return t.read(1/0)}finally{t.destroy()}};gu.version="17.0.2"});var Z1=$n((ect,X1)=>{"use strict";X1.exports=Y1()});var Jy=$n((pRt,Gy)=>{"use strict";var O7="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Gy.exports=O7});var Ky=$n((vRt,Qy)=>{"use strict";var U7=Jy();function zy(){}function Vy(){}Vy.resetWarningCache=zy;Qy.exports=function(){function t(r,a,l,f,d,p){if(p!==U7){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Vy,resetWarningCache:zy};return n.PropTypes=n,n}});var Xy=$n((hRt,Yy)=>{Yy.exports=Ky()();var mRt,_Rt});var Jv=$n(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});var Zy=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Jf=Zy.join(","),tb=typeof Element=="undefined",Po=tb?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Bv=!tb&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument},eb=function(e,n,r){var a=Array.prototype.slice.apply(e.querySelectorAll(Jf));return n&&Po.call(e,Jf)&&a.unshift(e),a=a.filter(r),a},nb=function t(e,n,r){for(var a=[],l=Array.from(e);l.length;){var f=l.shift();if(f.tagName==="SLOT"){var d=f.assignedElements(),p=d.length?d:f.children,m=t(p,!0,r);r.flatten?a.push.apply(a,m):a.push({scope:f,candidates:m})}else{var v=Po.call(f,Jf);v&&r.filter(f)&&(n||!e.includes(f))&&a.push(f);var D=f.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(f),C=!r.shadowRootFilter||r.shadowRootFilter(f);if(D&&C){var b=t(D===!0?f.children:D.children,!0,r);r.flatten?a.push.apply(a,b):a.push({scope:f,candidates:b})}else l.unshift.apply(l,f.children)}}return a},rb=function(e,n){return e.tabIndex<0&&(n||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},W7=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},ab=function(e){return e.tagName==="INPUT"},H7=function(e){return ab(e)&&e.type==="hidden"},$7=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},q7=function(e,n){for(var r=0;rsummary:first-of-type"),f=l?e.parentElement:e;if(Po.call(f,"details:not([open]) *"))return!0;var d=Bv(e).host,p=(d==null?void 0:d.ownerDocument.contains(d))||e.ownerDocument.contains(e);if(!r||r==="full"){if(typeof a=="function"){for(var m=e;e;){var v=e.parentElement,D=Bv(e);if(v&&!v.shadowRoot&&a(v)===!0)return ob(e);e.assignedSlot?e=e.assignedSlot:!v&&D!==e.ownerDocument?e=D.host:e=v}e=m}if(p)return!e.getClientRects().length}else if(r==="non-zero-area")return ob(e);return!1},z7=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},Q7=function t(e){var n=[],r=[];return e.forEach(function(a,l){var f=!!a.scope,d=f?a.scope:a,p=rb(d,f),m=f?t(a.candidates):d;p===0?f?n.push.apply(n,m):n.push(d):r.push({documentOrder:l,tabIndex:p,item:a,isScope:f,content:m})}),r.sort(W7).reduce(function(a,l){return l.isScope?a.push.apply(a,l.content):a.push(l.content),a},[]).concat(n)},K7=function(e,n){n=n||{};var r;return n.getShadowRoot?r=nb([e],n.includeContainer,{filter:Gv.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:V7}):r=eb(e,n.includeContainer,Gv.bind(null,n)),Q7(r)},Y7=function(e,n){n=n||{};var r;return n.getShadowRoot?r=nb([e],n.includeContainer,{filter:zf.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=eb(e,n.includeContainer,zf.bind(null,n)),r},X7=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return Po.call(e,Jf)===!1?!1:Gv(n,e)},Z7=Zy.concat("iframe").join(","),tS=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return Po.call(e,Z7)===!1?!1:zf(n,e)};Ou.focusable=Y7;Ou.isFocusable=tS;Ou.isTabbable=X7;Ou.tabbable=K7});var sb=$n(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0});var _a=Jv();function ub(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function ib(t){for(var e=1;e0){var r=t[t.length-1];r!==n&&r.pause()}var a=t.indexOf(n);a===-1||t.splice(a,1),t.push(n)},deactivateTrap:function(n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),t.length>0&&t[t.length-1].unpause()}}}(),nS=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},rS=function(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27},aS=function(e){return e.key==="Tab"||e.keyCode===9},cb=function(e){return setTimeout(e,0)},fb=function(e,n){var r=-1;return e.every(function(a,l){return n(a)?(r=l,!1):!0}),r},dl=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a1?ft-1:0),$t=1;$t=0)x=r.activeElement;else{var A=l.tabbableGroups[0],ft=A&&A.firstTabbableNode;x=ft||m("fallbackFocus")}if(!x)throw new Error("Your focus-trap needs to have at least one focusable element");return x},D=function(){if(l.containerGroups=l.containers.map(function(x){var A=_a.tabbable(x,a.tabbableOptions),ft=_a.focusable(x,a.tabbableOptions);return{container:x,tabbableNodes:A,focusableNodes:ft,firstTabbableNode:A.length>0?A[0]:null,lastTabbableNode:A.length>0?A[A.length-1]:null,nextTabbableNode:function($t){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Cn=ft.findIndex(function(Pt){return Pt===$t});if(!(Cn<0))return _e?ft.slice(Cn+1).find(function(Pt){return _a.isTabbable(Pt,a.tabbableOptions)}):ft.slice(0,Cn).reverse().find(function(Pt){return _a.isTabbable(Pt,a.tabbableOptions)})}}}),l.tabbableGroups=l.containerGroups.filter(function(x){return x.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!m("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},C=function P(x){if(x!==!1&&x!==r.activeElement){if(!x||!x.focus){P(v());return}x.focus({preventScroll:!!a.preventScroll}),l.mostRecentlyFocusedNode=x,nS(x)&&x.select()}},b=function(x){var A=m("setReturnFocus",x);return A||(A===!1?!1:x)},R=function(x){var A=Vf(x);if(!(p(A)>=0)){if(dl(a.clickOutsideDeactivates,x)){f.deactivate({returnFocus:a.returnFocusOnDeactivate&&!_a.isFocusable(A,a.tabbableOptions)});return}dl(a.allowOutsideClick,x)||x.preventDefault()}},E=function(x){var A=Vf(x),ft=p(A)>=0;ft||A instanceof Document?ft&&(l.mostRecentlyFocusedNode=A):(x.stopImmediatePropagation(),C(l.mostRecentlyFocusedNode||v()))},N=function(x){var A=Vf(x);D();var ft=null;if(l.tabbableGroups.length>0){var fe=p(A),$t=fe>=0?l.containerGroups[fe]:void 0;if(fe<0)x.shiftKey?ft=l.tabbableGroups[l.tabbableGroups.length-1].lastTabbableNode:ft=l.tabbableGroups[0].firstTabbableNode;else if(x.shiftKey){var _e=fb(l.tabbableGroups,function(Ae){var Ce=Ae.firstTabbableNode;return A===Ce});if(_e<0&&($t.container===A||_a.isFocusable(A,a.tabbableOptions)&&!_a.isTabbable(A,a.tabbableOptions)&&!$t.nextTabbableNode(A,!1))&&(_e=fe),_e>=0){var Cn=_e===0?l.tabbableGroups.length-1:_e-1,Pt=l.tabbableGroups[Cn];ft=Pt.lastTabbableNode}}else{var Mt=fb(l.tabbableGroups,function(Ae){var Ce=Ae.lastTabbableNode;return A===Ce});if(Mt<0&&($t.container===A||_a.isFocusable(A,a.tabbableOptions)&&!_a.isTabbable(A,a.tabbableOptions)&&!$t.nextTabbableNode(A))&&(Mt=fe),Mt>=0){var Da=Mt===l.tabbableGroups.length-1?0:Mt+1,Qr=l.tabbableGroups[Da];ft=Qr.firstTabbableNode}}}else ft=m("fallbackFocus");ft&&(x.preventDefault(),C(ft))},K=function(x){if(rS(x)&&dl(a.escapeDeactivates,x)!==!1){x.preventDefault(),f.deactivate();return}if(aS(x)){N(x);return}},Y=function(x){var A=Vf(x);p(A)>=0||dl(a.clickOutsideDeactivates,x)||dl(a.allowOutsideClick,x)||(x.preventDefault(),x.stopImmediatePropagation())},Wt=function(){if(!!l.active)return lb.activateTrap(f),l.delayInitialFocusTimer=a.delayInitialFocus?cb(function(){C(v())}):C(v()),r.addEventListener("focusin",E,!0),r.addEventListener("mousedown",R,{capture:!0,passive:!1}),r.addEventListener("touchstart",R,{capture:!0,passive:!1}),r.addEventListener("click",Y,{capture:!0,passive:!1}),r.addEventListener("keydown",K,{capture:!0,passive:!1}),f},Nt=function(){if(!!l.active)return r.removeEventListener("focusin",E,!0),r.removeEventListener("mousedown",R,!0),r.removeEventListener("touchstart",R,!0),r.removeEventListener("click",Y,!0),r.removeEventListener("keydown",K,!0),f};return f={get active(){return l.active},get paused(){return l.paused},activate:function(x){if(l.active)return this;var A=d(x,"onActivate"),ft=d(x,"onPostActivate"),fe=d(x,"checkCanFocusTrap");fe||D(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=r.activeElement,A&&A();var $t=function(){fe&&D(),Wt(),ft&&ft()};return fe?(fe(l.containers.concat()).then($t,$t),this):($t(),this)},deactivate:function(x){if(!l.active)return this;var A=ib({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},x);clearTimeout(l.delayInitialFocusTimer),l.delayInitialFocusTimer=void 0,Nt(),l.active=!1,l.paused=!1,lb.deactivateTrap(f);var ft=d(A,"onDeactivate"),fe=d(A,"onPostDeactivate"),$t=d(A,"checkCanReturnFocus"),_e=d(A,"returnFocus","returnFocusOnDeactivate");ft&&ft();var Cn=function(){cb(function(){_e&&C(b(l.nodeFocusedBeforeActivation)),fe&&fe()})};return _e&&$t?($t(b(l.nodeFocusedBeforeActivation)).then(Cn,Cn),this):(Cn(),this)},pause:function(){return l.paused||!l.active?this:(l.paused=!0,Nt(),this)},unpause:function(){return!l.paused||!l.active?this:(l.paused=!1,D(),Wt(),this)},updateContainerElements:function(x){var A=[].concat(x).filter(Boolean);return l.containers=A.map(function(ft){return typeof ft=="string"?r.querySelector(ft):ft}),l.active&&D(),this}},f.updateContainerElements(e),f};zv.createFocusTrap=oS});var vb=$n((yRt,pb)=>{"use strict";function Vv(t){return Vv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vv(t)}function uS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function db(t,e){for(var n=0;n1?v-1:0),C=1;C element.");var f=function(m){var v=a.props.containerElements;l&&(typeof l.ref=="function"?l.ref(m):l.ref&&(l.ref.current=m)),a.focusTrapElements=v||[m]},d=Kf.cloneElement(l,{ref:f});return d}return null}}]),n}(Kf.Component),vl=typeof Element=="undefined"?Function:Element;Kv.propTypes={active:dt.bool,paused:dt.bool,focusTrapOptions:dt.shape({document:dt.object,onActivate:dt.func,onPostActivate:dt.func,checkCanFocusTrap:dt.func,onDeactivate:dt.func,onPostDeactivate:dt.func,checkCanReturnFocus:dt.func,initialFocus:dt.oneOfType([dt.instanceOf(vl),dt.string,dt.bool,dt.func]),fallbackFocus:dt.oneOfType([dt.instanceOf(vl),dt.string,dt.func]),escapeDeactivates:dt.oneOfType([dt.bool,dt.func]),clickOutsideDeactivates:dt.oneOfType([dt.bool,dt.func]),returnFocusOnDeactivate:dt.bool,setReturnFocus:dt.oneOfType([dt.instanceOf(vl),dt.string,dt.bool,dt.func]),allowOutsideClick:dt.oneOfType([dt.bool,dt.func]),preventScroll:dt.bool,tabbableOptions:dt.shape({displayCheck:dt.oneOf(["full","non-zero-area","none"]),getShadowRoot:dt.oneOfType([dt.bool,dt.func])})}),containerElements:dt.arrayOf(dt.instanceOf(vl)),children:dt.oneOfType([dt.element,dt.instanceOf(vl)])};Kv.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:vS};pb.exports=Kv});var RT=$n((Ss,Km)=>{(function(e,n){typeof Ss=="object"&&typeof Km=="object"?Km.exports=n():typeof define=="function"&&define.amd?define([],n):typeof Ss=="object"?Ss.Pusher=n():e.Pusher=n()})(window,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(r,a,l){n.o(r,a)||Object.defineProperty(r,a,{enumerable:!0,get:l})},n.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,a){if(a&1&&(r=n(r)),a&8||a&4&&typeof r=="object"&&r&&r.__esModule)return r;var l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:r}),a&2&&typeof r!="string")for(var f in r)n.d(l,f,function(d){return r[d]}.bind(null,f));return l},n.n=function(r){var a=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(a,"a",a),a},n.o=function(r,a){return Object.prototype.hasOwnProperty.call(r,a)},n.p="",n(n.s=2)}([function(t,e,n){"use strict";var r=this&&this.__extends||function(){var b=function(R,E){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,K){N.__proto__=K}||function(N,K){for(var Y in K)K.hasOwnProperty(Y)&&(N[Y]=K[Y])},b(R,E)};return function(R,E){b(R,E);function N(){this.constructor=R}R.prototype=E===null?Object.create(E):(N.prototype=E.prototype,new N)}}();Object.defineProperty(e,"__esModule",{value:!0});var a=256,l=function(){function b(R){R===void 0&&(R="="),this._paddingCharacter=R}return b.prototype.encodedLength=function(R){return this._paddingCharacter?(R+2)/3*4|0:(R*8+5)/6|0},b.prototype.encode=function(R){for(var E="",N=0;N>>3*6&63),E+=this._encodeByte(K>>>2*6&63),E+=this._encodeByte(K>>>1*6&63),E+=this._encodeByte(K>>>0*6&63)}var Y=R.length-N;if(Y>0){var K=R[N]<<16|(Y===2?R[N+1]<<8:0);E+=this._encodeByte(K>>>3*6&63),E+=this._encodeByte(K>>>2*6&63),Y===2?E+=this._encodeByte(K>>>1*6&63):E+=this._paddingCharacter||"",E+=this._paddingCharacter||""}return E},b.prototype.maxDecodedLength=function(R){return this._paddingCharacter?R/4*3|0:(R*6+7)/8|0},b.prototype.decodedLength=function(R){return this.maxDecodedLength(R.length-this._getPaddingLength(R))},b.prototype.decode=function(R){if(R.length===0)return new Uint8Array(0);for(var E=this._getPaddingLength(R),N=R.length-E,K=new Uint8Array(this.maxDecodedLength(N)),Y=0,Wt=0,Nt=0,P=0,x=0,A=0,ft=0;Wt>>4,K[Y++]=x<<4|A>>>2,K[Y++]=A<<6|ft,Nt|=P&a,Nt|=x&a,Nt|=A&a,Nt|=ft&a;if(Wt>>4,Nt|=P&a,Nt|=x&a),Wt>>2,Nt|=A&a),Wt>>8&0-65-26+97,E+=51-R>>>8&26-97-52+48,E+=61-R>>>8&52-48-62+43,E+=62-R>>>8&62-43-63+47,String.fromCharCode(E)},b.prototype._decodeChar=function(R){var E=a;return E+=(42-R&R-44)>>>8&-a+R-43+62,E+=(46-R&R-48)>>>8&-a+R-47+63,E+=(47-R&R-58)>>>8&-a+R-48+52,E+=(64-R&R-91)>>>8&-a+R-65+0,E+=(96-R&R-123)>>>8&-a+R-97+26,E},b.prototype._getPaddingLength=function(R){var E=0;if(this._paddingCharacter){for(var N=R.length-1;N>=0&&R[N]===this._paddingCharacter;N--)E++;if(R.length<4||E>2)throw new Error("Base64Coder: incorrect padding")}return E},b}();e.Coder=l;var f=new l;function d(b){return f.encode(b)}e.encode=d;function p(b){return f.decode(b)}e.decode=p;var m=function(b){r(R,b);function R(){return b!==null&&b.apply(this,arguments)||this}return R.prototype._encodeByte=function(E){var N=E;return N+=65,N+=25-E>>>8&0-65-26+97,N+=51-E>>>8&26-97-52+48,N+=61-E>>>8&52-48-62+45,N+=62-E>>>8&62-45-63+95,String.fromCharCode(N)},R.prototype._decodeChar=function(E){var N=a;return N+=(44-E&E-46)>>>8&-a+E-45+62,N+=(94-E&E-96)>>>8&-a+E-95+63,N+=(47-E&E-58)>>>8&-a+E-48+52,N+=(64-E&E-91)>>>8&-a+E-65+0,N+=(96-E&E-123)>>>8&-a+E-97+26,N},R}(l);e.URLSafeCoder=m;var v=new m;function D(b){return v.encode(b)}e.encodeURLSafe=D;function C(b){return v.decode(b)}e.decodeURLSafe=C,e.encodedLength=function(b){return f.encodedLength(b)},e.maxDecodedLength=function(b){return f.maxDecodedLength(b)},e.decodedLength=function(b){return f.decodedLength(b)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="utf8: invalid string",a="utf8: invalid source encoding";function l(p){for(var m=new Uint8Array(f(p)),v=0,D=0;D>6,m[v++]=128|C&63):C<55296?(m[v++]=224|C>>12,m[v++]=128|C>>6&63,m[v++]=128|C&63):(D++,C=(C&1023)<<10,C|=p.charCodeAt(D)&1023,C+=65536,m[v++]=240|C>>18,m[v++]=128|C>>12&63,m[v++]=128|C>>6&63,m[v++]=128|C&63)}return m}e.encode=l;function f(p){for(var m=0,v=0;v=p.length-1)throw new Error(r);v++,m+=4}else throw new Error(r)}return m}e.encodedLength=f;function d(p){for(var m=[],v=0;v=p.length)throw new Error(a);var b=p[++v];if((b&192)!=128)throw new Error(a);D=(D&31)<<6|b&63,C=128}else if(D<240){if(v>=p.length-1)throw new Error(a);var b=p[++v],R=p[++v];if((b&192)!=128||(R&192)!=128)throw new Error(a);D=(D&15)<<12|(b&63)<<6|R&63,C=2048}else if(D<248){if(v>=p.length-2)throw new Error(a);var b=p[++v],R=p[++v],E=p[++v];if((b&192)!=128||(R&192)!=128||(E&192)!=128)throw new Error(a);D=(D&15)<<18|(b&63)<<12|(R&63)<<6|E&63,C=65536}else throw new Error(a);if(D=55296&&D<=57343)throw new Error(a);if(D>=65536){if(D>1114111)throw new Error(a);D-=65536,m.push(String.fromCharCode(55296|D>>10)),D=56320|D&1023}}m.push(String.fromCharCode(D))}return m.join("")}e.decode=d},function(t,e,n){t.exports=n(3).default},function(t,e,n){"use strict";n.r(e);var r=function(){function u(o,i){this.lastId=0,this.prefix=o,this.name=i}return u.prototype.create=function(o){this.lastId++;var i=this.lastId,c=this.prefix+i,s=this.name+"["+i+"]",_=!1,w=function(){_||(o.apply(null,arguments),_=!0)};return this[i]=w,{number:i,id:c,name:s,callback:w}},u.prototype.remove=function(o){delete this[o.number]},u}(),a=new r("_pusher_script_","Pusher.ScriptReceivers"),l={VERSION:"6.0.3",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,cluster:"mt1",cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},f=l,d=function(){function u(o){this.options=o,this.receivers=o.receivers||a,this.loading={}}return u.prototype.load=function(o,i,c){var s=this;if(s.loading[o]&&s.loading[o].length>0)s.loading[o].push(c);else{s.loading[o]=[c];var _=Ft.createScriptRequest(s.getPath(o,i)),w=s.receivers.create(function(U){if(s.receivers.remove(w),s.loading[o]){var ut=s.loading[o];delete s.loading[o];for(var qt=function(an){an||_.cleanup()},Se=0;Se>>6)+C(128|o&63):C(224|o>>>12&15)+C(128|o>>>6&63)+C(128|o&63)},Y=function(u){return u.replace(/[^\x00-\x7F]/g,K)},Wt=function(u){var o=[0,2,1][u.length%3],i=u.charCodeAt(0)<<16|(u.length>1?u.charCodeAt(1):0)<<8|(u.length>2?u.charCodeAt(2):0),c=[b.charAt(i>>>18),b.charAt(i>>>12&63),o>=2?"=":b.charAt(i>>>6&63),o>=1?"=":b.charAt(i&63)];return c.join("")},Nt=window.btoa||function(u){return u.replace(/[\s\S]{1,3}/g,Wt)},P=function(){function u(o,i,c,s){var _=this;this.clear=i,this.timer=o(function(){_.timer&&(_.timer=s(_.timer))},c)}return u.prototype.isRunning=function(){return this.timer!==null},u.prototype.ensureAborted=function(){this.timer&&(this.clear(this.timer),this.timer=null)},u}(),x=P,A=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},u(o,i)};return function(o,i){u(o,i);function c(){this.constructor=o}o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}();function ft(u){window.clearTimeout(u)}function fe(u){window.clearInterval(u)}var $t=function(u){A(o,u);function o(i,c){return u.call(this,setTimeout,ft,i,function(s){return c(),null})||this}return o}(x),_e=function(u){A(o,u);function o(i,c){return u.call(this,setInterval,fe,i,function(s){return c(),s})||this}return o}(x),Cn={now:function(){return Date.now?Date.now():new Date().valueOf()},defer:function(u){return new $t(0,u)},method:function(u){for(var o=[],i=1;i0)for(var s=0;s<_.length;s++)_[s].fn.apply(_[s].context||window,w);else this.failThrough&&this.failThrough(o,i);return this},u}(),Ga=gw,Dw=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},u(o,i)};return function(o,i){u(o,i);function c(){this.constructor=o}o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}(),yw=function(u){Dw(o,u);function o(i,c,s,_,w){var U=u.call(this)||this;return U.initialize=Ft.transportConnectionInitializer,U.hooks=i,U.name=c,U.priority=s,U.key=_,U.options=w,U.state="new",U.timeline=w.timeline,U.activityTimeout=w.activityTimeout,U.id=U.timeline.generateUniqueID(),U}return o.prototype.handlesActivityChecks=function(){return Boolean(this.hooks.handlesActivityChecks)},o.prototype.supportsPing=function(){return Boolean(this.hooks.supportsPing)},o.prototype.connect=function(){var i=this;if(this.socket||this.state!=="initialized")return!1;var c=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(c,this.options)}catch(s){return Pt.defer(function(){i.onError(s),i.changeState("closed")}),!1}return this.bindListeners(),ot.debug("Connecting",{transport:this.name,url:c}),this.changeState("connecting"),!0},o.prototype.close=function(){return this.socket?(this.socket.close(),!0):!1},o.prototype.send=function(i){var c=this;return this.state==="open"?(Pt.defer(function(){c.socket&&c.socket.send(i)}),!0):!1},o.prototype.ping=function(){this.state==="open"&&this.supportsPing()&&this.socket.ping()},o.prototype.onOpen=function(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0},o.prototype.onError=function(i){this.emit("error",{type:"WebSocketError",error:i}),this.timeline.error(this.buildTimelineMessage({error:i.toString()}))},o.prototype.onClose=function(i){i?this.changeState("closed",{code:i.code,reason:i.reason,wasClean:i.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0},o.prototype.onMessage=function(i){this.emit("message",i)},o.prototype.onActivity=function(){this.emit("activity")},o.prototype.bindListeners=function(){var i=this;this.socket.onopen=function(){i.onOpen()},this.socket.onerror=function(c){i.onError(c)},this.socket.onclose=function(c){i.onClose(c)},this.socket.onmessage=function(c){i.onMessage(c)},this.supportsPing()&&(this.socket.onactivity=function(){i.onActivity()})},o.prototype.unbindListeners=function(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))},o.prototype.changeState=function(i,c){this.state=i,this.timeline.info(this.buildTimelineMessage({state:i,params:c})),this.emit(i,c)},o.prototype.buildTimelineMessage=function(i){return Mt({cid:this.id},i)},o}(Ga),bw=yw,Cw=function(){function u(o){this.hooks=o}return u.prototype.isSupported=function(o){return this.hooks.isSupported(o)},u.prototype.createConnection=function(o,i,c,s){return new bw(this.hooks,o,i,c,s)},u}(),Go=Cw,Rw=new Go({urls:pw,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return Boolean(Ft.getWebSocketAPI())},isSupported:function(){return Boolean(Ft.getWebSocketAPI())},getSocket:function(u){return Ft.createWebSocket(u)}}),g_={urls:vw,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},D_=Mt({getSocket:function(u){return Ft.HTTPFactory.createStreamingSocket(u)}},g_),y_=Mt({getSocket:function(u){return Ft.HTTPFactory.createPollingSocket(u)}},g_),b_={isSupported:function(){return Ft.isXHRSupported()}},Tw=new Go(Mt({},D_,b_)),ww=new Go(Mt({},y_,b_)),Ew={ws:Rw,xhr_streaming:Tw,xhr_polling:ww},Nl=Ew,Fw=new Go({file:"sockjs",urls:mw,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(u,o){return new window.SockJS(u,null,{js_path:v.getPath("sockjs",{useTLS:o.useTLS}),ignore_null_origin:o.ignoreNullOrigin})},beforeOpen:function(u,o){u.send(JSON.stringify({path:o}))}}),C_={isSupported:function(u){var o=Ft.isXDRSupported(u.useTLS);return o}},Mw=new Go(Mt({},D_,C_)),xw=new Go(Mt({},y_,C_));Nl.xdr_streaming=Mw,Nl.xdr_polling=xw,Nl.sockjs=Fw;var Sw=Nl,Iw=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},u(o,i)};return function(o,i){u(o,i);function c(){this.constructor=o}o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}(),Lw=function(u){Iw(o,u);function o(){var i=u.call(this)||this,c=i;return window.addEventListener!==void 0&&(window.addEventListener("online",function(){c.emit("online")},!1),window.addEventListener("offline",function(){c.emit("offline")},!1)),i}return o.prototype.isOnline=function(){return window.navigator.onLine===void 0?!0:window.navigator.onLine},o}(Ga),jw=new Lw,Aw=function(){function u(o,i,c){this.manager=o,this.transport=i,this.minPingDelay=c.minPingDelay,this.maxPingDelay=c.maxPingDelay,this.pingDelay=void 0}return u.prototype.createConnection=function(o,i,c,s){var _=this;s=Mt({},s,{activityTimeout:this.pingDelay});var w=this.transport.createConnection(o,i,c,s),U=null,ut=function(){w.unbind("open",ut),w.bind("closed",qt),U=Pt.now()},qt=function(Se){if(w.unbind("closed",qt),Se.code===1002||Se.code===1003)_.manager.reportDeath();else if(!Se.wasClean&&U){var an=Pt.now()-U;an<2*_.maxPingDelay&&(_.manager.reportDeath(),_.pingDelay=Math.max(an/2,_.minPingDelay))}};return w.bind("open",ut),w},u.prototype.isSupported=function(o){return this.manager.isAlive()&&this.transport.isSupported(o)},u}(),Nw=Aw,R_={decodeMessage:function(u){try{var o=JSON.parse(u.data),i=o.data;if(typeof i=="string")try{i=JSON.parse(o.data)}catch{}var c={event:o.event,channel:o.channel,data:i};return o.user_id&&(c.user_id=o.user_id),c}catch(s){throw{type:"MessageParseError",error:s,data:u.data}}},encodeMessage:function(u){return JSON.stringify(u)},processHandshake:function(u){var o=R_.decodeMessage(u);if(o.event==="pusher:connection_established"){if(!o.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:o.data.socket_id,activityTimeout:o.data.activity_timeout*1e3}}else{if(o.event==="pusher:error")return{action:this.getCloseAction(o.data),error:this.getCloseError(o.data)};throw"Invalid handshake"}},getCloseAction:function(u){return u.code<4e3?u.code>=1002&&u.code<=1004?"backoff":null:u.code===4e3?"tls_only":u.code<4100?"refused":u.code<4200?"backoff":u.code<4300?"retry":"refused"},getCloseError:function(u){return u.code!==1e3&&u.code!==1001?{type:"PusherError",data:{code:u.code,message:u.reason||u.message}}:null}},Ja=R_,Pw=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},u(o,i)};return function(o,i){u(o,i);function c(){this.constructor=o}o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}(),Ow=function(u){Pw(o,u);function o(i,c){var s=u.call(this)||this;return s.id=i,s.transport=c,s.activityTimeout=c.activityTimeout,s.bindListeners(),s}return o.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},o.prototype.send=function(i){return this.transport.send(i)},o.prototype.send_event=function(i,c,s){var _={event:i,data:c};return s&&(_.channel=s),ot.debug("Event sent",_),this.send(Ja.encodeMessage(_))},o.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},o.prototype.close=function(){this.transport.close()},o.prototype.bindListeners=function(){var i=this,c={message:function(_){var w;try{w=Ja.decodeMessage(_)}catch(U){i.emit("error",{type:"MessageParseError",error:U,data:_.data})}if(w!==void 0){switch(ot.debug("Event recd",w),w.event){case"pusher:error":i.emit("error",{type:"PusherError",data:w.data});break;case"pusher:ping":i.emit("ping");break;case"pusher:pong":i.emit("pong");break}i.emit("message",w)}},activity:function(){i.emit("activity")},error:function(_){i.emit("error",{type:"WebSocketError",error:_})},closed:function(_){s(),_&&_.code&&i.handleCloseEvent(_),i.transport=null,i.emit("closed")}},s=function(){Ae(c,function(_,w){i.transport.unbind(w,_)})};Ae(c,function(_,w){i.transport.bind(w,_)})},o.prototype.handleCloseEvent=function(i){var c=Ja.getCloseAction(i),s=Ja.getCloseError(i);s&&this.emit("error",s),c&&this.emit(c,{action:c,error:s})},o}(Ga),Uw=Ow,Ww=function(){function u(o,i){this.transport=o,this.callback=i,this.bindListeners()}return u.prototype.close=function(){this.unbindListeners(),this.transport.close()},u.prototype.bindListeners=function(){var o=this;this.onMessage=function(i){o.unbindListeners();var c;try{c=Ja.processHandshake(i)}catch(s){o.finish("error",{error:s}),o.transport.close();return}c.action==="connected"?o.finish("connected",{connection:new Uw(c.id,o.transport),activityTimeout:c.activityTimeout}):(o.finish(c.action,{error:c.error}),o.transport.close())},this.onClosed=function(i){o.unbindListeners();var c=Ja.getCloseAction(i)||"backoff",s=Ja.getCloseError(i);o.finish(c,{error:s})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},u.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},u.prototype.finish=function(o,i){this.callback(Mt({transport:this.transport,action:o},i))},u}(),Hw=Ww,$w=function(){function u(o,i){this.channel=o;var c=i.authTransport;if(typeof Ft.getAuthorizers()[c]=="undefined")throw"'"+c+"' is not a recognized auth transport";this.type=c,this.options=i,this.authOptions=i.auth||{}}return u.prototype.composeQuery=function(o){var i="socket_id="+encodeURIComponent(o)+"&channel_name="+encodeURIComponent(this.channel.name);for(var c in this.authOptions.params)i+="&"+encodeURIComponent(c)+"="+encodeURIComponent(this.authOptions.params[c]);return i},u.prototype.authorize=function(o,i){u.authorizers=u.authorizers||Ft.getAuthorizers(),u.authorizers[this.type].call(this,Ft,o,i)},u}(),qw=$w,kw=function(){function u(o,i){this.timeline=o,this.options=i||{}}return u.prototype.send=function(o,i){this.timeline.isEmpty()||this.timeline.send(Ft.TimelineTransport.getAgent(this,o),i)},u}(),Bw=kw,za=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},u(o,i)};return function(o,i){u(o,i);function c(){this.constructor=o}o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}(),Gw=function(u){za(o,u);function o(i){var c=this.constructor,s=u.call(this,i)||this;return Object.setPrototypeOf(s,c.prototype),s}return o}(Error),Jw=function(u){za(o,u);function o(i){var c=this.constructor,s=u.call(this,i)||this;return Object.setPrototypeOf(s,c.prototype),s}return o}(Error),zw=function(u){za(o,u);function o(i){var c=this.constructor,s=u.call(this,i)||this;return Object.setPrototypeOf(s,c.prototype),s}return o}(Error),Vw=function(u){za(o,u);function o(i){var c=this.constructor,s=u.call(this,i)||this;return Object.setPrototypeOf(s,c.prototype),s}return o}(Error),T_=function(u){za(o,u);function o(i){var c=this.constructor,s=u.call(this,i)||this;return Object.setPrototypeOf(s,c.prototype),s}return o}(Error),Qw=function(u){za(o,u);function o(i){var c=this.constructor,s=u.call(this,i)||this;return Object.setPrototypeOf(s,c.prototype),s}return o}(Error),w_=function(u){za(o,u);function o(i){var c=this.constructor,s=u.call(this,i)||this;return Object.setPrototypeOf(s,c.prototype),s}return o}(Error),Kw=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},u(o,i)};return function(o,i){u(o,i);function c(){this.constructor=o}o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}(),Yw=function(u){Kw(o,u);function o(i,c){var s=u.call(this,function(_,w){ot.debug("No callbacks on "+i+" for "+_)})||this;return s.name=i,s.pusher=c,s.subscribed=!1,s.subscriptionPending=!1,s.subscriptionCancelled=!1,s}return o.prototype.authorize=function(i,c){return c(!1,{auth:""})},o.prototype.trigger=function(i,c){if(i.indexOf("client-")!==0)throw new Gw("Event '"+i+"' does not start with 'client-'");if(!this.subscribed){var s=Ne.buildLogSuffix("triggeringClientEvents");ot.warn("Client event triggered before channel 'subscription_succeeded' event . "+s)}return this.pusher.send_event(i,c,this.name)},o.prototype.disconnect=function(){this.subscribed=!1,this.subscriptionPending=!1},o.prototype.handleEvent=function(i){var c=i.event,s=i.data;if(c==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(i);else if(c.indexOf("pusher_internal:")!==0){var _={};this.emit(c,s,_)}},o.prototype.handleSubscriptionSucceededEvent=function(i){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",i.data)},o.prototype.subscribe=function(){var i=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,function(c,s){c?(ot.error(s),i.emit("pusher:subscription_error",s)):(s=s,i.pusher.send_event("pusher:subscribe",{auth:s.auth,channel_data:s.channel_data,channel:i.name}))}))},o.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},o.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},o.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},o}(Ga),E_=Yw,Xw=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},u(o,i)};return function(o,i){u(o,i);function c(){this.constructor=o}o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}(),Zw=function(u){Xw(o,u);function o(){return u!==null&&u.apply(this,arguments)||this}return o.prototype.authorize=function(i,c){var s=wr.createAuthorizer(this,this.pusher.config);return s.authorize(i,c)},o}(E_),Hs=Zw,tE=function(){function u(){this.reset()}return u.prototype.get=function(o){return Object.prototype.hasOwnProperty.call(this.members,o)?{id:o,info:this.members[o]}:null},u.prototype.each=function(o){var i=this;Ae(this.members,function(c,s){o(i.get(s))})},u.prototype.setMyID=function(o){this.myID=o},u.prototype.onSubscription=function(o){this.members=o.presence.hash,this.count=o.presence.count,this.me=this.get(this.myID)},u.prototype.addMember=function(o){return this.get(o.user_id)===null&&this.count++,this.members[o.user_id]=o.user_info,this.get(o.user_id)},u.prototype.removeMember=function(o){var i=this.get(o.user_id);return i&&(delete this.members[o.user_id],this.count--),i},u.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},u}(),eE=tE,nE=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},u(o,i)};return function(o,i){u(o,i);function c(){this.constructor=o}o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}(),rE=function(u){nE(o,u);function o(i,c){var s=u.call(this,i,c)||this;return s.members=new eE,s}return o.prototype.authorize=function(i,c){var s=this;u.prototype.authorize.call(this,i,function(_,w){if(!_){if(w=w,w.channel_data===void 0){var U=Ne.buildLogSuffix("authenticationEndpoint");ot.error("Invalid auth response for channel '"+s.name+"',"+("expected 'channel_data' field. "+U)),c("Invalid auth response");return}var ut=JSON.parse(w.channel_data);s.members.setMyID(ut.user_id)}c(_,w)})},o.prototype.handleEvent=function(i){var c=i.event;if(c.indexOf("pusher_internal:")===0)this.handleInternalEvent(i);else{var s=i.data,_={};i.user_id&&(_.user_id=i.user_id),this.emit(c,s,_)}},o.prototype.handleInternalEvent=function(i){var c=i.event,s=i.data;switch(c){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(i);break;case"pusher_internal:member_added":var _=this.members.addMember(s);this.emit("pusher:member_added",_);break;case"pusher_internal:member_removed":var w=this.members.removeMember(s);w&&this.emit("pusher:member_removed",w);break}},o.prototype.handleSubscriptionSucceededEvent=function(i){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(i.data),this.emit("pusher:subscription_succeeded",this.members))},o.prototype.disconnect=function(){this.members.reset(),u.prototype.disconnect.call(this)},o}(Hs),aE=rE,F_=n(1),$s=n(0),oE=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},u(o,i)};return function(o,i){u(o,i);function c(){this.constructor=o}o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}(),uE=function(u){oE(o,u);function o(i,c,s){var _=u.call(this,i,c)||this;return _.key=null,_.nacl=s,_}return o.prototype.authorize=function(i,c){var s=this;u.prototype.authorize.call(this,i,function(_,w){if(_){c(!0,w);return}var U=w.shared_secret;if(!U){var ut="No shared_secret key in auth payload for encrypted channel: "+s.name;c(!0,ut);return}s.key=Object($s.decode)(U),delete w.shared_secret,c(!1,w)})},o.prototype.trigger=function(i,c){throw new T_("Client events are not currently supported for encrypted channels")},o.prototype.handleEvent=function(i){var c=i.event,s=i.data;if(c.indexOf("pusher_internal:")===0||c.indexOf("pusher:")===0){u.prototype.handleEvent.call(this,i);return}this.handleEncryptedEvent(c,s)},o.prototype.handleEncryptedEvent=function(i,c){var s=this;if(!this.key){ot.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!c.ciphertext||!c.nonce){ot.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+c);return}var _=Object($s.decode)(c.ciphertext);if(_.length0&&this.emit("connecting_in",Math.round(i/1e3)),this.retryTimer=new $t(i||0,function(){c.disconnectInternally(),c.connect()})},o.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},o.prototype.setUnavailableTimer=function(){var i=this;this.unavailableTimer=new $t(this.options.unavailableTimeout,function(){i.updateState("unavailable")})},o.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},o.prototype.sendActivityCheck=function(){var i=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new $t(this.options.pongTimeout,function(){i.timeline.error({pong_timed_out:i.options.pongTimeout}),i.retryIn(0)})},o.prototype.resetActivityCheck=function(){var i=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new $t(this.activityTimeout,function(){i.sendActivityCheck()}))},o.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},o.prototype.buildConnectionCallbacks=function(i){var c=this;return Mt({},i,{message:function(s){c.resetActivityCheck(),c.emit("message",s)},ping:function(){c.send_event("pusher:pong",{})},activity:function(){c.resetActivityCheck()},error:function(s){c.emit("error",{type:"WebSocketError",error:s})},closed:function(){c.abandonConnection(),c.shouldRetry()&&c.retryIn(1e3)}})},o.prototype.buildHandshakeCallbacks=function(i){var c=this;return Mt({},i,{connected:function(s){c.activityTimeout=Math.min(c.options.activityTimeout,s.activityTimeout,s.connection.activityTimeout||1/0),c.clearUnavailableTimer(),c.setConnection(s.connection),c.socket_id=c.connection.id,c.updateState("connected",{socket_id:c.socket_id})}})},o.prototype.buildErrorCallbacks=function(){var i=this,c=function(s){return function(_){_.error&&i.emit("error",{type:"WebSocketError",error:_.error}),s(_)}};return{tls_only:c(function(){i.usingTLS=!0,i.updateStrategy(),i.retryIn(0)}),refused:c(function(){i.disconnect()}),backoff:c(function(){i.retryIn(1e3)}),retry:c(function(){i.retryIn(0)})}},o.prototype.setConnection=function(i){this.connection=i;for(var c in this.connectionCallbacks)this.connection.bind(c,this.connectionCallbacks[c]);this.resetActivityCheck()},o.prototype.abandonConnection=function(){if(!!this.connection){this.stopActivityCheck();for(var i in this.connectionCallbacks)this.connection.unbind(i,this.connectionCallbacks[i]);var c=this.connection;return this.connection=null,c}},o.prototype.updateState=function(i,c){var s=this.state;if(this.state=i,s!==i){var _=i;_==="connected"&&(_+=" with new socket ID "+c.socket_id),ot.debug("State changed",s+" -> "+_),this.timeline.info({state:i,params:c}),this.emit("state_change",{previous:s,current:i}),this.emit(i,c)}},o.prototype.shouldRetry=function(){return this.state==="connecting"||this.state==="connected"},o}(Ga),fE=cE,sE=function(){function u(){this.channels={}}return u.prototype.add=function(o,i){return this.channels[o]||(this.channels[o]=pE(o,i)),this.channels[o]},u.prototype.all=function(){return Ba(this.channels)},u.prototype.find=function(o){return this.channels[o]},u.prototype.remove=function(o){var i=this.channels[o];return delete this.channels[o],i},u.prototype.disconnect=function(){Ae(this.channels,function(o){o.disconnect()})},u}(),dE=sE;function pE(u,o){if(u.indexOf("private-encrypted-")===0){if(o.config.nacl)return wr.createEncryptedChannel(u,o,o.config.nacl);var i="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",c=Ne.buildLogSuffix("encryptedChannelSupport");throw new T_(i+". "+c)}else return u.indexOf("private-")===0?wr.createPrivateChannel(u,o):u.indexOf("presence-")===0?wr.createPresenceChannel(u,o):wr.createChannel(u,o)}var vE={createChannels:function(){return new dE},createConnectionManager:function(u,o){return new fE(u,o)},createChannel:function(u,o){return new E_(u,o)},createPrivateChannel:function(u,o){return new Hs(u,o)},createPresenceChannel:function(u,o){return new aE(u,o)},createEncryptedChannel:function(u,o,i){return new iE(u,o,i)},createTimelineSender:function(u,o){return new Bw(u,o)},createAuthorizer:function(u,o){return o.authorizer?o.authorizer(u,o):new qw(u,o)},createHandshake:function(u,o){return new Hw(u,o)},createAssistantToTheTransportManager:function(u,o,i){return new Nw(u,o,i)}},wr=vE,mE=function(){function u(o){this.options=o||{},this.livesLeft=this.options.lives||1/0}return u.prototype.getAssistant=function(o){return wr.createAssistantToTheTransportManager(this,o,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},u.prototype.isAlive=function(){return this.livesLeft>0},u.prototype.reportDeath=function(){this.livesLeft-=1},u}(),M_=mE,_E=function(){function u(o,i){this.strategies=o,this.loop=Boolean(i.loop),this.failFast=Boolean(i.failFast),this.timeout=i.timeout,this.timeoutLimit=i.timeoutLimit}return u.prototype.isSupported=function(){return xt(this.strategies,Pt.method("isSupported"))},u.prototype.connect=function(o,i){var c=this,s=this.strategies,_=0,w=this.timeout,U=null,ut=function(qt,Se){Se?i(null,Se):(_=_+1,c.loop&&(_=_%s.length),_0&&(_=new $t(c.timeout,function(){w.abort(),s(!0)})),w=o.connect(i,function(U,ut){U&&_&&_.isRunning()&&!c.failFast||(_&&_.ensureAborted(),s(U,ut))}),{abort:function(){_&&_.ensureAborted(),w.abort()},forceMinPriority:function(U){w.forceMinPriority(U)}}},u}(),Va=_E,hE=function(){function u(o){this.strategies=o}return u.prototype.isSupported=function(){return xt(this.strategies,Pt.method("isSupported"))},u.prototype.connect=function(o,i){return gE(this.strategies,o,function(c,s){return function(_,w){if(s[c].error=_,_){DE(s)&&i(!0);return}Kr(s,function(U){U.forceMinPriority(w.transport.priority)}),i(null,w)}})},u}(),qs=hE;function gE(u,o,i){var c=Al(u,function(s,_,w,U){return s.connect(o,i(_,U))});return{abort:function(){Kr(c,yE)},forceMinPriority:function(s){Kr(c,function(_){_.forceMinPriority(s)})}}}function DE(u){return tt(u,function(o){return Boolean(o.error)})}function yE(u){!u.error&&!u.aborted&&(u.abort(),u.aborted=!0)}var bE=function(){function u(o,i,c){this.strategy=o,this.transports=i,this.ttl=c.ttl||1800*1e3,this.usingTLS=c.useTLS,this.timeline=c.timeline}return u.prototype.isSupported=function(){return this.strategy.isSupported()},u.prototype.connect=function(o,i){var c=this.usingTLS,s=RE(c),_=[this.strategy];if(s&&s.timestamp+this.ttl>=Pt.now()){var w=this.transports[s.transport];w&&(this.timeline.info({cached:!0,transport:s.transport,latency:s.latency}),_.push(new Va([w],{timeout:s.latency*2+1e3,failFast:!0})))}var U=Pt.now(),ut=_.pop().connect(o,function qt(Se,an){Se?(x_(c),_.length>0?(U=Pt.now(),ut=_.pop().connect(o,qt)):i(Se)):(TE(c,an.transport.name,Pt.now()-U),i(null,an))});return{abort:function(){ut.abort()},forceMinPriority:function(qt){o=qt,ut&&ut.forceMinPriority(qt)}}},u}(),CE=bE;function ks(u){return"pusherTransport"+(u?"TLS":"NonTLS")}function RE(u){var o=Ft.getLocalStorage();if(o)try{var i=o[ks(u)];if(i)return JSON.parse(i)}catch{x_(u)}return null}function TE(u,o,i){var c=Ft.getLocalStorage();if(c)try{c[ks(u)]=Bt({timestamp:Pt.now(),transport:o,latency:i})}catch{}}function x_(u){var o=Ft.getLocalStorage();if(o)try{delete o[ks(u)]}catch{}}var wE=function(){function u(o,i){var c=i.delay;this.strategy=o,this.options={delay:c}}return u.prototype.isSupported=function(){return this.strategy.isSupported()},u.prototype.connect=function(o,i){var c=this.strategy,s,_=new $t(this.options.delay,function(){s=c.connect(o,i)});return{abort:function(){_.ensureAborted(),s&&s.abort()},forceMinPriority:function(w){o=w,s&&s.forceMinPriority(w)}}},u}(),Pl=wE,EE=function(){function u(o,i,c){this.test=o,this.trueBranch=i,this.falseBranch=c}return u.prototype.isSupported=function(){var o=this.test()?this.trueBranch:this.falseBranch;return o.isSupported()},u.prototype.connect=function(o,i){var c=this.test()?this.trueBranch:this.falseBranch;return c.connect(o,i)},u}(),ni=EE,FE=function(){function u(o){this.strategy=o}return u.prototype.isSupported=function(){return this.strategy.isSupported()},u.prototype.connect=function(o,i){var c=this.strategy.connect(o,function(s,_){_&&c.abort(),i(s,_)});return c},u}(),ME=FE;function ri(u){return function(){return u.isSupported()}}var xE=function(u,o,i){var c={};function s(q_,gF,DF,yF,bF){var k_=i(u,q_,gF,DF,yF,bF);return c[q_]=k_,k_}var _=Object.assign({},o,{hostNonTLS:u.wsHost+":"+u.wsPort,hostTLS:u.wsHost+":"+u.wssPort,httpPath:u.wsPath}),w=Object.assign({},_,{useTLS:!0}),U=Object.assign({},o,{hostNonTLS:u.httpHost+":"+u.httpPort,hostTLS:u.httpHost+":"+u.httpsPort,httpPath:u.httpPath}),ut={loop:!0,timeout:15e3,timeoutLimit:6e4},qt=new M_({lives:2,minPingDelay:1e4,maxPingDelay:u.activityTimeout}),Se=new M_({lives:2,minPingDelay:1e4,maxPingDelay:u.activityTimeout}),an=s("ws","ws",3,_,qt),Er=s("wss","ws",3,w,qt),pF=s("sockjs","sockjs",1,U),P_=s("xhr_streaming","xhr_streaming",1,U,Se),vF=s("xdr_streaming","xdr_streaming",1,U,Se),O_=s("xhr_polling","xhr_polling",1,U),mF=s("xdr_polling","xdr_polling",1,U),U_=new Va([an],ut),_F=new Va([Er],ut),hF=new Va([pF],ut),W_=new Va([new ni(ri(P_),P_,vF)],ut),H_=new Va([new ni(ri(O_),O_,mF)],ut),$_=new Va([new ni(ri(W_),new qs([W_,new Pl(H_,{delay:4e3})]),H_)],ut),zs=new ni(ri($_),$_,hF),Vs;return o.useTLS?Vs=new qs([U_,new Pl(zs,{delay:2e3})]):Vs=new qs([U_,new Pl(_F,{delay:2e3}),new Pl(zs,{delay:5e3})]),new CE(new ME(new ni(ri(an),Vs,zs)),c,{ttl:18e5,timeline:o.timeline,useTLS:o.useTLS})},SE=xE,IE=function(){var u=this;u.timeline.info(u.buildTimelineMessage({transport:u.name+(u.options.useTLS?"s":"")})),u.hooks.isInitialized()?u.changeState("initialized"):u.hooks.file?(u.changeState("initializing"),v.load(u.hooks.file,{useTLS:u.options.useTLS},function(o,i){u.hooks.isInitialized()?(u.changeState("initialized"),i(!0)):(o&&u.onError(o),u.onClose(),i(!1))})):u.onClose()},LE={getRequest:function(u){var o=new window.XDomainRequest;return o.ontimeout=function(){u.emit("error",new Jw),u.close()},o.onerror=function(i){u.emit("error",i),u.close()},o.onprogress=function(){o.responseText&&o.responseText.length>0&&u.onChunk(200,o.responseText)},o.onload=function(){o.responseText&&o.responseText.length>0&&u.onChunk(200,o.responseText),u.emit("finished",200),u.close()},o},abortRequest:function(u){u.ontimeout=u.onerror=u.onprogress=u.onload=null,u.abort()}},jE=LE,AE=function(){var u=function(o,i){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var _ in s)s.hasOwnProperty(_)&&(c[_]=s[_])},u(o,i)};return function(o,i){u(o,i);function c(){this.constructor=o}o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}(),NE=256*1024,PE=function(u){AE(o,u);function o(i,c,s){var _=u.call(this)||this;return _.hooks=i,_.method=c,_.url=s,_}return o.prototype.start=function(i){var c=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){c.close()},Ft.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(i)},o.prototype.close=function(){this.unloader&&(Ft.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},o.prototype.onChunk=function(i,c){for(;;){var s=this.advanceBuffer(c);if(s)this.emit("chunk",{status:i,data:s});else break}this.isBufferTooLong(c)&&this.emit("buffer_too_long")},o.prototype.advanceBuffer=function(i){var c=i.slice(this.position),s=c.indexOf(` `);return s!==-1?(this.position+=s+1,c.slice(0,s)):null},o.prototype.isBufferTooLong=function(i){return this.position===i.length&&i.length>NE},o}(Ga),OE=PE,Bs;(function(u){u[u.CONNECTING=0]="CONNECTING",u[u.OPEN=1]="OPEN",u[u.CLOSED=3]="CLOSED"})(Bs||(Bs={}));var Qa=Bs,UE=1,WE=function(){function u(o,i){this.hooks=o,this.session=I_(1e3)+"/"+kE(8),this.location=HE(i),this.readyState=Qa.CONNECTING,this.openStream()}return u.prototype.send=function(o){return this.sendRaw(JSON.stringify([o]))},u.prototype.ping=function(){this.hooks.sendHeartbeat(this)},u.prototype.close=function(o,i){this.onClose(o,i,!0)},u.prototype.sendRaw=function(o){if(this.readyState===Qa.OPEN)try{return Ft.createSocketRequest("POST",S_($E(this.location,this.session))).start(o),!0}catch{return!1}else return!1},u.prototype.reconnect=function(){this.closeStream(),this.openStream()},u.prototype.onClose=function(o,i,c){this.closeStream(),this.readyState=Qa.CLOSED,this.onclose&&this.onclose({code:o,reason:i,wasClean:c})},u.prototype.onChunk=function(o){if(o.status===200){this.readyState===Qa.OPEN&&this.onActivity();var i,c=o.data.slice(0,1);switch(c){case"o":i=JSON.parse(o.data.slice(1)||"{}"),this.onOpen(i);break;case"a":i=JSON.parse(o.data.slice(1)||"[]");for(var s=0;s0&&u.onChunk(i.status,i.responseText);break;case 4:i.responseText&&i.responseText.length>0&&u.onChunk(i.status,i.responseText),u.emit("finished",i.status),u.close();break}},i},abortRequest:function(u){u.onreadystatechange=null,u.abort()}},KE=QE,YE={createStreamingSocket:function(u){return this.createSocket(JE,u)},createPollingSocket:function(u){return this.createSocket(VE,u)},createSocket:function(u,o){return new BE(u,o)},createXHR:function(u,o){return this.createRequest(KE,u,o)},createRequest:function(u,o,i){return new OE(u,o,i)}},L_=YE;L_.createXDR=function(u,o){return this.createRequest(jE,u,o)};var XE=L_,ZE={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:a,DependenciesReceivers:m,getDefaultStrategy:SE,Transports:Sw,transportConnectionInitializer:IE,HTTPFactory:XE,TimelineTransport:xe,getXHRAPI:function(){return window.XMLHttpRequest},getWebSocketAPI:function(){return window.WebSocket||window.MozWebSocket},setup:function(u){var o=this;window.Pusher=u;var i=function(){o.onDocumentBody(u.ready)};window.JSON?i():v.load("json2",{},i)},getDocument:function(){return document},getProtocol:function(){return this.getDocument().location.protocol},getAuthorizers:function(){return{ajax:Tr,jsonp:rt}},onDocumentBody:function(u){var o=this;document.body?u():setTimeout(function(){o.onDocumentBody(u)},0)},createJSONPRequest:function(u,o){return new Dt(u,o)},createScriptRequest:function(u){return new et(u)},getLocalStorage:function(){try{return window.localStorage}catch{return}},createXHR:function(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest:function(){var u=this.getXHRAPI();return new u},createMicrosoftXHR:function(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork:function(){return jw},createWebSocket:function(u){var o=this.getWebSocketAPI();return new o(u)},createSocketRequest:function(u,o){if(this.isXHRSupported())return this.HTTPFactory.createXHR(u,o);if(this.isXDRSupported(o.indexOf("https:")===0))return this.HTTPFactory.createXDR(u,o);throw"Cross-origin HTTP requests are not supported"},isXHRSupported:function(){var u=this.getXHRAPI();return Boolean(u)&&new u().withCredentials!==void 0},isXDRSupported:function(u){var o=u?"https:":"http:",i=this.getProtocol();return Boolean(window.XDomainRequest)&&i===o},addUnloadListener:function(u){window.addEventListener!==void 0?window.addEventListener("unload",u,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",u)},removeUnloadListener:function(u){window.addEventListener!==void 0?window.removeEventListener("unload",u,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",u)}},Ft=ZE,Gs;(function(u){u[u.ERROR=3]="ERROR",u[u.INFO=6]="INFO",u[u.DEBUG=7]="DEBUG"})(Gs||(Gs={}));var Ol=Gs,tF=function(){function u(o,i,c){this.key=o,this.session=i,this.events=[],this.options=c||{},this.sent=0,this.uniqueID=0}return u.prototype.log=function(o,i){o<=this.options.level&&(this.events.push(Mt({},i,{timestamp:Pt.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},u.prototype.error=function(o){this.log(Ol.ERROR,o)},u.prototype.info=function(o){this.log(Ol.INFO,o)},u.prototype.debug=function(o){this.log(Ol.DEBUG,o)},u.prototype.isEmpty=function(){return this.events.length===0},u.prototype.send=function(o,i){var c=this,s=Mt({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],o(s,function(_,w){_||c.sent++,i&&i(_,w)}),!0},u.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},u}(),eF=tF,nF=function(){function u(o,i,c,s){this.name=o,this.priority=i,this.transport=c,this.options=s||{}}return u.prototype.isSupported=function(){return this.transport.isSupported({useTLS:this.options.useTLS})},u.prototype.connect=function(o,i){var c=this;if(this.isSupported()){if(this.prioritymO});var J_=function(t){return function(e){for(var n=e.length,r=new Array(n),a=0;a="0"&&t[a]<="9"?"\\&":"";return"\\"+n.charCodeAt(0).toString(10)+l})+'"'};var we={show:sh};var Lt={show:fh};var M=function(t){return t.show};var Gt=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),lt=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}();var ke=function(){function t(){}return t.value=new t,t}(),si=function(t){return t};var di=function(t){return t.to};var $l=function(t){return t.from};var BF=$(G),g=function(){function t(){}return t.value=new t,t}(),h=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}();var st=function(t){return function(e){return function(n){if(n instanceof g)return t;if(n instanceof h)return e(n.value0);throw new Error("Failed pattern match at Data.Maybe (line 237, column 1 - line 237, column 51): "+[t.constructor.name,e.constructor.name,n.constructor.name])}}},ur=st(!0)(J(!1)),ir=st(!1)(J(!0));var Z={map:function(t){return function(e){return e instanceof h?new h(t(e.value0)):g.value}}},GF=y(Z);var ct=function(t){return st(t)(BF)},oe=function(){return function(t){if(t instanceof h)return t.value0;throw new Error("Failed pattern match at Data.Maybe (line 288, column 1 - line 288, column 46): "+[t.constructor.name])}};var ln={apply:function(t){return function(e){if(t instanceof h)return GF(t.value0)(e);if(t instanceof g)return g.value;throw new Error("Failed pattern match at Data.Maybe (line 67, column 1 - line 69, column 30): "+[t.constructor.name,e.constructor.name])}},Functor0:function(){return Z}};var Jt={bind:function(t){return function(e){if(t instanceof h)return e(t.value0);if(t instanceof g)return g.value;throw new Error("Failed pattern match at Data.Maybe (line 125, column 1 - line 127, column 28): "+[t.constructor.name,e.constructor.name])}},Apply0:function(){return ln}};var Le=function(){return{pure:h.create,Apply0:function(){return ln}}}();var dh={alt:function(t){return function(e){return t instanceof g?e:t}},Functor0:function(){return Z}},JF=function(){return{empty:g.value,Alt0:function(){return dh}}}(),td={Applicative0:function(){return Le},Plus1:function(){return JF}};var pi=null;function ph(t,e,n){return t==null?e:n(t)}function ed(t){return t}var Bn=st(pi)(ed),yt=function(t){return ph(t,g.value,h.create)};var Ze=function(t){return t.empty};var ql=function(t){var e=T(t.Applicative0()),n=Ze(t.Plus1());return function(r){if(r)return e(F);if(!r)return n;throw new Error("Failed pattern match at Control.Alternative (line 48, column 1 - line 48, column 54): "+[r.constructor.name])}};var VF=typeof Array.prototype.flatMap=="function"?function(t){return function(e){return t.flatMap(e)}}:function(t){return function(e){for(var n=[],r=t.length,a=0;a=n.length?e:t(n[r])};var Fh=function(t,e){return e.filter(t)};var Mh=function(){function t(e,n,r,a,l,f){var d,p,m,v,D,C,b;for(d=l+(f-l>>1),d-l>1&&t(e,n,a,r,l,d),f-d>1&&t(e,n,a,r,d,f),p=l,m=d,v=l;p0?(r[v++]=C,++m):(r[v++]=D,++p);for(;p>1),d-l>1&&t(e,n,a,r,l,d),f-d>1&&t(e,n,a,r,d,f),p=l,m=d,v=l;p0?(r[v++]=C,++m):(r[v++]=D,++p);for(;p=0;l--)r=t(n[l])(r);return r}}},Qh=function(t){return function(e){return function(n){for(var r=e,a=n.length,l=0;l=0&&d=Me(Bg))return Bg;if(t<=Me(Gg))return Gg;if(X)return ct(0)(Do(t));throw new Error("Failed pattern match at Data.Int (line 72, column 1 - line 72, column 29): "+[t.constructor.name])},Ar=function(t){return Rx(Cc(t))};var Jg=function(t){return(t&1)==0};var je=function(){function t(){}return t.value=new t,t}(),jt=function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t}(),Rc=function(t){return t},Nx=function(t){return new jt(t.value0,t.value1)};var Px=function(t){var e=function(n){return function(r){var a=n,l=!1,f;function d(p,m){if(m instanceof jt&&m.value1 instanceof jt&&m.value1.value1 instanceof jt){a=new jt(m,p),r=m.value1.value1.value1;return}var v=function(C){return C instanceof jt&&C.value1 instanceof jt&&C.value1.value1 instanceof je?new jt(t(C.value0),new jt(t(C.value1.value0),je.value)):C instanceof jt&&C.value1 instanceof je?new jt(t(C.value0),je.value):je.value},D=function(C){return function(b){var R=C,E=!1,N;function K(Y,Wt){if(Y instanceof jt&&Y.value0 instanceof jt&&Y.value0.value1 instanceof jt&&Y.value0.value1.value1 instanceof jt){R=Y.value1,b=new jt(t(Y.value0.value0),new jt(t(Y.value0.value1.value0),new jt(t(Y.value0.value1.value1.value0),Wt)));return}return E=!0,Wt}for(;!E;)N=K(R,b);return N}};return l=!0,D(p)(v(m))}for(;!l;)f=d(a,r);return f}};return e(je.value)},zg={map:Px};var Qn={foldr:function(t){return function(e){var n=function(){var a=function(l){return function(f){var d=l,p=!1,m;function v(D,C){if(C instanceof je)return p=!0,D;if(C instanceof jt){d=new jt(C.value0,D),f=C.value1;return}throw new Error("Failed pattern match at Data.List.Types (line 107, column 7 - line 107, column 23): "+[D.constructor.name,C.constructor.name])}for(;!p;)m=v(d,f);return m}};return a(je.value)}(),r=Yt(Qn)(Ct(t))(e);return function(a){return r(n(a))}}},foldl:function(t){var e=function(n){return function(r){var a=n,l=!1,f;function d(p,m){if(m instanceof je)return l=!0,p;if(m instanceof jt){a=t(p)(m.value0),r=m.value1;return}throw new Error("Failed pattern match at Data.List.Types (line 111, column 12 - line 113, column 30): "+[m.constructor.name])}for(;!l;)f=d(a,r);return f}};return e},foldMap:function(t){var e=k(t.Semigroup0()),n=bt(t);return function(r){return Yt(Qn)(function(a){var l=e(a);return function(f){return l(r(f))}})(n)}}};var Ox=Kt(Qn);var Tc={append:function(t){return function(e){return Ox(jt.create)(e)(t)}}},Vg=k(Tc);var Qg={append:function(t){return function(e){return new Lr(t.value0,Vg(t.value1)(Nx(e)))}}};var Kg={alt:Vg,Functor0:function(){return zg}},Xd=function(){return{empty:je.value,Alt0:function(){return Kg}}}();var Co=function(t){return t.length};var wc=function(t){return function(e){return{before:e.substring(0,t),after:e.substring(t)}}};var la=function(t){return function(e){var n=wc(Co(t))(e),r=n.before===t;return r?new h(n.after):g.value}};var ca=function(t){return function(e){return e.split(t)}};var xn=function(t){return function(e){return e.join(t)}};var Nr=function(t){return t.tell};var pu={liftEffect:$(G),Monad0:function(){return Ca}},gt=function(t){return t.liftEffect};var Lc=typeof CV!="undefined"&&CV.assetsRoot||typeof global!="undefined"&&global.CV&&global.CV.assetsRoot||"/";To();var jc=window.ReactDOM,{createPortal:Jlt,findDOMNode:zlt,flushSync:Vlt,unstable_batchedUpdates:Qlt}=window.ReactDOM;var Mp=Qs(Z1());function tD(t){return t.state&&t.state.s}function eD(t,e,n){return t.setState({s:e},n)}function nD(t,e){return t.state={s:e}}var rD=jc.render,aD=jc.hydrate,xp=Mp.default&&Mp.default.renderToString||(t=>""),i4=jc.unmountComponentAtNode,oD=vr.Fragment;function uD(t,e,n){return vr.createElement.apply(null,[t,l4(t,e)].concat(n))}function l4(t,e){if(typeof t!="string"||e._data==null)return e;var n={_data:void 0};for(var r in e._data){var a=e._data[r];n["data-"+r]=a}return Object.assign({},e,n)}var Du=function(e){return function(n){return e(n)()}};var yu=function(e){return function(n){return function(){return e(n)}}},Aa=function(e){return function(n){return function(r){return function(){return e(n,r)}}}},Mo=function(e){return function(n){return function(r){return function(a){return function(){return e(n,r,a)}}}}};var Ot={asReactChildren:function(t){return[t]}},ve={asReactChildren:function(t){return[t]}},Zt={asReactChildren:$(G)};var me=I,Sp=Mo(eD),fD=Aa(rD),sD=Aa(aD),dD=yu(tD),gn=!1;var pD=Aa(nD),vD=function(t){return t.asReactChildren},_r=function(){return function(t){var e=vD(t);return function(n){return function(r){return function(a){return uD(n,r,e(a))}}}}},mD=_r()(Zt),qc=function(){return function(t){return function(e){return mD(t)(e)([])}}},Ve=mD(oD)({});function _D(t){return function(){var e={};for(var n in t)hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}}var kc={};function Wi(t){return t()}function hD(t,e,n,r){return n in r?e(r[n]):t}function Ip(t){return function(e){var n=[];for(var r in e)hasOwnProperty.call(e,r)&&n.push(t(r)(e[r]));return n}}var R4=Object.keys||Ip(function(t){return function(){return t}});var Bc=function(){return{}};function Hi(t){return function(e){return function(n){return function(){return n[t]=e,n}}}}var F4=le(mi);var M4=Vt(io);var x4=_D,Lp=function(t){return function(e){return Wi(F4(Hi(t)(e))(Bc))}};var S4=function(t){return function(e){return Wi(function(){var r=x4(e)();return t(r)(),r})}};var $i=function(){return Di(hD)(g.value)(h.create)}();var DD=function(t){return function(e){return S4(Hi(t)(e))}};var jp=function(){return I};var Ap=function(t){var e=lu(t);return function(n){return Wi(function(){var a=Bc();return Vl(e(n))(function(l){return M4(Hi(l.value0)(l.value1)(a))})(),a})}};var Np=qc(),Pp=_r(),yD=ho()();var bu=I,bD=function(t){return function(e){return Np(bu(t))(e)}},Op=function(t){var e=Pp(t);return function(n){return function(r){return e(bu(n))(r)}}},qi=function(t){var e=Pp(t);return function(n){return function(r){return function(a){return e(bu(n))(yD(a)({className:r}))}}}},Cu=function(t){return function(e){return function(n){return Np(bu(t))(yD(n)({className:e}))}}},CD=function(t){return function(e){return Np(bu(t))({className:e})}},hr=function(t){return function(e){var n=Pp(e);return function(r){return function(a){return n(bu(t))({className:r})(a)}}}};var xo=I;var Gc=function(t){return hr("tr")(t)};var Jc=function(){return function(){return Cu("textarea")}};var zc=function(t){return hr("td")(t)};var Vc=function(t){return hr("tbody")(t)};var Qc=function(t){return hr("table")(t)},Kc=function(t){var e=qi(t);return function(){return function(){return e("svg")}}};var Or=function(t){return hr("strong")(t)};var Na=function(t){return hr("span")(t)};var Ur=function(t){return hr("p")(t)};var Yc=function(){return function(){return Cu("input")}};var Xc=function(){return function(){return Cu("img")}};var Zc=function(t){return hr("i")(t)};var Ru=CD("hr");var Yn=function(t){return hr("h2")(t)};var da=function(t){var e=qi(t);return function(){return function(){return e("div")}}},ce=function(t){return hr("div")(t)};var Up=zn(co(We)),I4=$(G),L4=Xc()(),tf=function(t){var e=la(t);return function(n){return ir(e(n))}},RD=function(t){if(Up(tf("http://"))(Up(tf("https://"))(Up(tf("//"))(tf("blob:"))))(t))return t;if(X)return Lc+ct(t)(la("/")(t));throw new Error("Failed pattern match at Utils.AppAssets (line 47, column 1 - line 47, column 30): "+[t.constructor.name])},ki=function(){return function(){return function(t){return function(e){var n=function(a){return I4},r=n(e)(DD("src")(RD(e.src))(e));return L4(t)(r)}}}};var j4=Ap(_t),A4=pt(Rt),N4=mo(Hd),ef=function(t){return function(e){var n=j4(A4(e)(function(r){return new z(t(r),r)}));return function(r){return $i(r)(n)}}},TD=function(t){var e=Dg(t),n=_g(t);return function(r){var a=e(r);return function(l){return function(f){return N4(function(d){return new z(d,a(d))})(n(f))}}}},nf=function(t){var e=TD(t);return function(n){var r=e(n);return function(a){var l=r(a);return function(f){return jr(l(f))}}}};function wD(t){return typeof t=="string"}function ED(t){return typeof t=="number"}function FD(t){return typeof t=="boolean"}function MD(t){return t instanceof Object}function xD(t){return t instanceof Function}function Bi(t){return t===null?"":t===void 0?"":t instanceof Date?t.toString():typeof Blob!="undefined"&&t instanceof Blob?"file["+t.name+"]":JSON.stringify(t)}function rf(t){return Object.prototype.toString.call(t).slice(8,-1)}function Gi(t){return t===null}function Tu(t){return t===void 0}var af=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};var P4=y(Ee);var Wp=function(t){return t};var of=function(t){return t};var uf=function(t){return function(e){return t(e)}},Hp=function(t){var e=y(t);return{map:function(n){return uf(e(P4(n)))}}};var SD=function(t){return{Applicative0:function(){return Pa(t)},Bind1:function(){return wu(t)}}},wu=function(t){var e=S(t.Bind1()),n=T(t.Applicative0());return{bind:function(r){return function(a){return e(r)(ue(function(l){return n(j.create(l))})(function(l){var f=a(l);return f}))}},Apply0:function(){return lf(t)}}},lf=function(t){var e=Hp(t.Bind1().Apply0().Functor0());return{apply:mn(SD(t)),Functor0:function(){return e}}},Pa=function(t){return{pure:function(){var e=T(t.Applicative0());return function(n){return Wp(e(L.create(n)))}}(),Apply0:function(){return lf(t)}}};var $p=function(t){var e=SD(t);return{throwError:function(){var n=T(t.Applicative0());return function(r){return Wp(n(j.create(r)))}}(),Monad0:function(){return e}}};var ID=function(t){var e=k(t);return function(n){var r=n.Bind1(),a=S(r),l=T(n.Applicative0()),f=Hp(r.Apply0().Functor0());return{alt:function(d){return function(p){return a(d)(function(m){if(m instanceof L)return l(new L(m.value0));if(m instanceof j)return a(p)(function(v){if(v instanceof L)return l(new L(v.value0));if(v instanceof j)return l(new j(e(m.value0)(v.value0)));throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 87, column 9 - line 89, column 49): "+[v.constructor.name])});throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 83, column 5 - line 89, column 49): "+[m.constructor.name])})}},Functor0:function(){return f}}}};var LD=function(t){return t()};var jD=function(t){throw new Error(t)};var AD=function(){return jD};var O4=AD(),U4=LD,Oa=function(t){return U4(function(){return O4(t)})};var qp=function(){var t=gc(Xd);return function(e){return Rc(t(e))}}();var PD=function(t){return t.value0};var B4=M(we),G4=M(Lt);var kp=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),OD=function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t}(),J4=function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t}(),z4=function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t}(),qe=I,So=I;var Ji=function(t){if(t instanceof kp)return t.value0;if(t instanceof J4)return"Error at array index "+(G4(t.value0)+(": "+Ji(t.value1)));if(t instanceof z4)return"Error at property "+(B4(t.value0)+(": "+Ji(t.value1)));if(t instanceof OD)return"Type mismatch: expected "+(t.value0+(", found "+t.value1));throw new Error("Failed pattern match at Foreign (line 78, column 1 - line 78, column 45): "+[t.constructor.name])};var Bp=function(t){var e=Fe($p(t));return function(n){return e(qp(n))}};var Gp=function(t){var e=T(Pa(t)),n=Bp(t);return function(r){return function(a){if(rf(a)===r)return e(So(a));if(X)return n(new OD(r,rf(a)));throw new Error("Failed pattern match at Foreign (line 123, column 1 - line 123, column 104): "+[r.constructor.name,a.constructor.name])}}};var V4=co(We),Q4=Jn(V4),K4=Tg(Fi),Y4=M(Lt),X4=mg(_n),Xn=function(){function t(){}return t.value=new t,t}(),Zn=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),en={validateJsRecord:function(t){return Xn.value}},Jp={validateForeignType:function(t){return Xn.value}};var ff=function(t){return function(e){return function(n){var r=e(n);return r?Xn.value:new Zn({path:"",got:n,expected:t})}}};var zi={validateForeignType:ff("Boolean")(FD)},UD={validateForeignType:ff("Function")(xD)};var Eu={validateForeignType:ff("Number")(ED)};var te={validateForeignType:ff("String")(wD)},WD=function(t){return t.validateJsRecord},Wr=function(){return function(t){var e=WD(t);return{validateForeignType:function(n){if(MD(n))return e(n);if(X)return new Zn({path:"",expected:"Object",got:n});throw new Error("Failed pattern match at Elmish.Foreign (line 209, column 1 - line 212, column 69): "+[n.constructor.name])}}}},Fu=function(t){return t.validateForeignType},Vi=function(t){var e=Fu(t);return{validateForeignType:function(n){if(Q4(af)(n))return new Zn({path:"",expected:"Array",got:n});if(X){var r=function(l){return function(f){var d=e(f);if(d instanceof Xn)return g.value;if(d instanceof Zn)return new h({idx:l,invalid:d.value0});throw new Error("Failed pattern match at Elmish.Foreign (line 186, column 29 - line 188, column 51): "+[d.constructor.name])}},a=K4(r)(So(n));if(a instanceof g)return Xn.value;if(a instanceof h)return new Zn({expected:a.value0.invalid.expected,got:a.value0.invalid.got,path:"["+(Y4(a.value0.idx)+("]"+a.value0.invalid.path))});throw new Error("Failed pattern match at Elmish.Foreign (line 182, column 21 - line 184, column 101): "+[a.constructor.name])}throw new Error("Failed pattern match at Elmish.Foreign (line 179, column 6 - line 188, column 51): "+[n.constructor.name])}}},Ua=function(t){var e=Fu(t);return{validateForeignType:function(n){if(Gi(n)||Tu(n))return Xn.value;if(X){var r=e(n);if(r instanceof Xn)return Xn.value;if(r instanceof Zn)return new Zn({path:r.value0.path,got:r.value0.got,expected:function(){var a=r.value0.path==="";return a?"Nullable "+r.value0.expected:r.value0.expected}()});throw new Error("Failed pattern match at Elmish.Foreign (line 196, column 11 - line 198, column 123): "+[r.constructor.name])}throw new Error("Failed pattern match at Elmish.Foreign (line 192, column 1 - line 198, column 123): "+[n.constructor.name])}}};var Ut=function(t){var e=ie(t);return function(n){var r=Fu(n);return function(a){var l=WD(a);return{validateJsRecord:function(f){var d=e(Ht.value),p=on(d)(So(f)),m=r(p);if(m instanceof Zn)return new Zn({expected:m.value0.expected,got:m.value0.got,path:"."+(d+m.value0.path)});if(m instanceof Xn)return l(f);throw new Error("Failed pattern match at Elmish.Foreign (line 235, column 9 - line 237, column 43): "+[m.constructor.name])}}}}},Hr=function(t){var e=Fu(t);return function(n){var r=e(n);if(r instanceof Xn)return new L(So(n));if(r instanceof Zn)return new j(X4([r.value0.path,function(){var a=r.value0.path==="";return a?"Expected ":": expected "}(),r.value0.expected," but got: ",Bi(r.value0.got)]));throw new Error("Failed pattern match at Elmish.Foreign (line 255, column 18 - line 263, column 6): "+[r.constructor.name])}},Mu=function(t){var e=Hr(t);return function(n){return Zr(e(n))}};var Z4={info:"info",warning:"warn",error:"error"},pa=t=>e=>n=>r=>{let a=Z4[t];if(typeof console!="undefined"&&console[a]&&console[a](e,n),typeof window!="undefined"){let l=new Error(e);typeof window.Sentry!="undefined"&&window.Sentry.captureException(l,{extra:n})}return r()},HD=(t,e)=>(e.__sentryFingerprint=t,e);var $D=function(t){return sr(HD)(t)};var Wa="error";var sf={parseOrPanic:function(t){return function(e){var n=t.parse(e);if(n instanceof L)return n.value0;if(n instanceof j)return pa(Wa)("Failed to parse "+t.diagnosticName)({error:n.value0,value:e})(function(r){return t.default});throw new Error("Failed pattern match at Utils.Parse (line 49, column 5 - line 57, column 24): "+[n.constructor.name])}}},Io=function(t){return t.parseOrPanic},t8=Io(sf),df=function(t){var e=Io(t);return function(n){var r=y(n);return function(a){return e({parse:function(l){return r(h.create)(a.parse(l))},default:g.value,diagnosticName:a.diagnosticName})}}},e8=df(sf)(Ee),zp=function(t){var e=Hr(t);return function(n){return e8({parse:e,diagnosticName:n})}},pf={parseOrPanic:function(t){return t8({default:t.default,diagnosticName:t.diagnosticName,parse:function(){var e=st(new j(""))(L.create);return function(n){return e(t.parse(n))}}()})}};var qD=Nd(Ad),Qi=jd(qD)(Td(Cd)),kD=Ed(wd),Ki=Fd(kD),BD=Wd(Ud),Yi=Od(BD),a8=ki()();var xu=function(){function t(){}return t.value=new t,t}(),Xi=function(){function t(){}return t.value=new t,t}(),Zi=function(){function t(){}return t.value=new t,t}(),tl=function(){function t(){}return t.value=new t,t}(),el=function(){function t(){}return t.value=new t,t}(),nl=function(){function t(){}return t.value=new t,t}(),o8={to:function(t){if(t instanceof Gt)return xu.value;if(t instanceof lt&&t.value0 instanceof Gt)return Xi.value;if(t instanceof lt&&t.value0 instanceof lt&&t.value0.value0 instanceof Gt)return Zi.value;if(t instanceof lt&&t.value0 instanceof lt&&t.value0.value0 instanceof lt&&t.value0.value0.value0 instanceof Gt)return tl.value;if(t instanceof lt&&t.value0 instanceof lt&&t.value0.value0 instanceof lt&&t.value0.value0.value0 instanceof lt&&t.value0.value0.value0.value0 instanceof Gt)return el.value;if(t instanceof lt&&t.value0 instanceof lt&&t.value0.value0 instanceof lt&&t.value0.value0.value0 instanceof lt&&t.value0.value0.value0.value0 instanceof lt)return nl.value;throw new Error("Failed pattern match at Common.ProfilePersona (line 29, column 1 - line 29, column 34): "+[t.constructor.name])},from:function(t){if(t instanceof xu)return new Gt(ke.value);if(t instanceof Xi)return new lt(new Gt(ke.value));if(t instanceof Zi)return new lt(new lt(new Gt(ke.value)));if(t instanceof tl)return new lt(new lt(new lt(new Gt(ke.value))));if(t instanceof el)return new lt(new lt(new lt(new lt(new Gt(ke.value)))));if(t instanceof nl)return new lt(new lt(new lt(new lt(new lt(ke.value)))));throw new Error("Failed pattern match at Common.ProfilePersona (line 29, column 1 - line 29, column 34): "+[t.constructor.name])}};var u8=function(t){if(t instanceof xu)return"activist";if(t instanceof Xi)return"connector";if(t instanceof Zi)return"explorer";if(t instanceof tl)return"learner";if(t instanceof el)return"pragmatist";if(t instanceof nl)return"striver";throw new Error("Failed pattern match at Common.ProfilePersona (line 34, column 13 - line 40, column 23): "+[t.constructor.name])},GD=function(){return Io(pf)({parse:ef(u8)(nf(o8)(Qi(Qi(Qi(Qi(Qi(qD)(kD))(Ki))(Ki))(Ki))(Ki))(Yi(Yi(Yi(Yi(Yi(BD))))))(Ki)),diagnosticName:"Common.ProfilePersona",default:xu.value})}();var Kp=function(t){if(t instanceof xu)return"Activist";if(t instanceof Xi)return"Connector";if(t instanceof Zi)return"Explorer";if(t instanceof tl)return"Learner";if(t instanceof el)return"Pragmatist";if(t instanceof nl)return"Striver";throw new Error("Failed pattern match at Common.ProfilePersona (line 50, column 9 - line 56, column 23): "+[t.constructor.name])},JD=function(t){return function(e){var n="/img/illustrations/profile/personas/"+function(){if(t instanceof xu)return"activist.png";if(t instanceof Xi)return"connector.png";if(t instanceof Zi)return"explorer.png";if(t instanceof tl)return"learner.png";if(t instanceof el)return"pragmatist.png";if(t instanceof nl)return"striver.png";throw new Error("Failed pattern match at Common.ProfilePersona (line 131, column 7 - line 137, column 33): "+[t.constructor.name])}();return a8("")({src:n,alt:Kp(t)+" icon",height:e.height,width:e.width})}};var i8=y(Rt);var Yp=function(){function t(){}return t.value=new t,t}(),Xp=function(){function t(){}return t.value=new t,t}(),vf=function(){function t(){}return t.value=new t,t}(),Ha=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}();var zD={show:zt()},VD=te;var QD=function(t){return{email:t.email,free_form_school_name:Bn(t.schoolName),name:t.name,title:Bn(t.title)}},KD=function(t){return{categories:yt(t.categories),overall:{body:yt(t.overall.body),subject:yt(t.overall.subject)},rankedPersonas:i8(GD)(t.ranked_personas)}},mf=function(t){return{email:t.email,name:t.name,schoolName:yt(t.free_form_school_name),title:yt(t.title)}};var Dn=function(){var t={},e="Pure",n="Throw",r="Catch",a="Sync",l="Async",f="Bind",d="Bracket",p="Fork",m="Sequential",v="Map",D="Apply",C="Alt",b="Cons",R="Resume",E="Release",N="Finalizer",K="Finalized",Y="Forked",Wt="Fiber",Nt="Thunk";function P(V,wt,ee,xt){this.tag=V,this._1=wt,this._2=ee,this._3=xt}function x(V){var wt=function(ee,xt,tt){return new P(V,ee,xt,tt)};return wt.tag=V,wt}function A(V){return new P(e,void 0)}function ft(V){try{V()}catch(wt){setTimeout(function(){throw wt},0)}}function fe(V,wt,ee){try{return wt(ee())}catch(xt){return V(xt)}}function $t(V,wt,ee){try{return wt(ee)()}catch(xt){return ee(V(xt))(),A}}var _e=function(){var V=1024,wt=0,ee=0,xt=new Array(V),tt=!1;function H(){var St;for(tt=!0;wt!==0;)wt--,St=xt[ee],xt[ee]=void 0,ee=(ee+1)%V,St();tt=!1}return{isDraining:function(){return tt},enqueue:function(St){var vt,Bt;wt===V&&(Bt=tt,H(),tt=Bt),xt[(ee+wt)%V]=St,wt++,tt||H()}}}();function Cn(V){var wt={},ee=0,xt=0;return{register:function(tt){var H=ee++;tt.onComplete({rethrow:!0,handler:function(St){return function(){xt--,delete wt[H]}}})(),wt[H]=tt,xt++},isEmpty:function(){return xt===0},killAll:function(tt,H){return function(){if(xt===0)return H();var St=0,vt={};function Bt(ot){vt[ot]=wt[ot].kill(tt,function(ne){return function(){delete vt[ot],St--,V.isLeft(ne)&&V.fromLeft(ne)&&setTimeout(function(){throw V.fromLeft(ne)},0),St===0&&H()}})()}for(var Re in wt)wt.hasOwnProperty(Re)&&(St++,Bt(Re));return wt={},ee=0,xt=0,function(ot){return new P(a,function(){for(var ne in vt)vt.hasOwnProperty(ne)&&vt[ne]()})}}}}}var Pt=0,Mt=1,Da=2,Qr=3,Ae=4,Ce=5,Ba=6;function Kr(V,wt,ee){var xt=0,tt=Pt,H=ee,St=null,vt=null,Bt=null,Re=null,ot=null,ne=0,Yr=0,Ne=null,Rr=!0;function Tr(et){for(var nt,Dt,Et;;)switch(nt=null,Dt=null,Et=null,tt){case Da:tt=Mt;try{H=Bt(H),Re===null?Bt=null:(Bt=Re._1,Re=Re._2)}catch(xe){tt=Ce,St=V.left(xe),H=null}break;case Qr:V.isLeft(H)?(tt=Ce,St=H,H=null):Bt===null?tt=Ce:(tt=Da,H=V.fromRight(H));break;case Mt:switch(H.tag){case f:Bt&&(Re=new P(b,Bt,Re)),Bt=H._2,tt=Mt,H=H._1;break;case e:Bt===null?(tt=Ce,H=V.right(H._1)):(tt=Da,H=H._1);break;case a:tt=Qr,H=fe(V.left,V.right,H._1);break;case l:tt=Ae,H=$t(V.left,H._1,function(xe){return function(){xt===et&&(xt++,_e.enqueue(function(){xt===et+1&&(tt=Qr,H=xe,Tr(xt))}))}});return;case n:tt=Ce,St=V.left(H._1),H=null;break;case r:Bt===null?ot=new P(b,H,ot,vt):ot=new P(b,H,new P(b,new P(R,Bt,Re),ot,vt),vt),Bt=null,Re=null,tt=Mt,H=H._1;break;case d:ne++,Bt===null?ot=new P(b,H,ot,vt):ot=new P(b,H,new P(b,new P(R,Bt,Re),ot,vt),vt),Bt=null,Re=null,tt=Mt,H=H._1;break;case p:tt=Qr,nt=Kr(V,wt,H._2),wt&&wt.register(nt),H._1&&nt.run(),H=V.right(nt);break;case m:tt=Mt,H=Us(V,wt,H._1);break}break;case Ce:if(Bt=null,Re=null,ot===null)tt=Ba,H=vt||St||H;else switch(nt=ot._3,Et=ot._1,ot=ot._2,Et.tag){case r:vt&&vt!==nt&&ne===0?tt=Ce:St&&(tt=Mt,H=Et._2(V.fromLeft(St)),St=null);break;case R:vt&&vt!==nt&&ne===0||St?tt=Ce:(Bt=Et._1,Re=Et._2,tt=Da,H=V.fromRight(H));break;case d:ne--,St===null&&(Dt=V.fromRight(H),ot=new P(b,new P(E,Et._2,Dt),ot,nt),(vt===nt||ne>0)&&(tt=Mt,H=Et._3(Dt)));break;case E:ot=new P(b,new P(K,H,St),ot,vt),tt=Mt,vt&&vt!==nt&&ne===0?H=Et._1.killed(V.fromLeft(vt))(Et._2):St?H=Et._1.failed(V.fromLeft(St))(Et._2):H=Et._1.completed(V.fromRight(H))(Et._2),St=null,ne++;break;case N:ne++,ot=new P(b,new P(K,H,St),ot,vt),tt=Mt,H=Et._1;break;case K:ne--,tt=Ce,H=Et._1,St=Et._2;break}break;case Ba:for(var ae in Ne)Ne.hasOwnProperty(ae)&&(Rr=Rr&&Ne[ae].rethrow,ft(Ne[ae].handler(H)));Ne=null,vt&&St?setTimeout(function(){throw V.fromLeft(St)},0):V.isLeft(H)&&Rr&&setTimeout(function(){if(Rr)throw V.fromLeft(H)},0);return;case Pt:tt=Mt;break;case Ae:return}}function re(et){return function(){if(tt===Ba)return Rr=Rr&&et.rethrow,et.handler(H)(),function(){};var nt=Yr++;return Ne=Ne||{},Ne[nt]=et,function(){Ne!==null&&delete Ne[nt]}}}function rt(et,nt){return function(){if(tt===Ba)return nt(V.right(void 0))(),function(){};var Dt=re({rethrow:!1,handler:function(){return nt(V.right(void 0))}})();switch(tt){case Pt:vt=V.left(et),tt=Ba,H=vt,Tr(xt);break;case Ae:vt===null&&(vt=V.left(et)),ne===0&&(tt===Ae&&(ot=new P(b,new P(N,H(et)),ot,vt)),tt=Ce,H=null,St=null,Tr(++xt));break;default:vt===null&&(vt=V.left(et)),ne===0&&(tt=Ce,H=null,St=null)}return Dt}}function ht(et){return function(){var nt=re({rethrow:!1,handler:et})();return tt===Pt&&Tr(xt),nt}}return{kill:rt,join:ht,onComplete:re,isSuspended:function(){return tt===Pt},run:function(){tt===Pt&&(_e.isDraining()?Tr(xt):_e.enqueue(function(){Tr(xt)}))}}}function Al(V,wt,ee,xt){var tt=0,H={},St=0,vt={},Bt=new Error("[ParAff] Early exit"),Re=null,ot=t;function ne(re,rt,ht){var et=rt,nt=null,Dt=null,Et=0,ae={},xe,Xr;t:for(;;)switch(xe=null,et.tag){case Y:if(et._3===t&&(xe=H[et._1],ae[Et++]=xe.kill(re,function(ei){return function(){Et--,Et===0&&ht(ei)()}})),nt===null)break t;et=nt._2,Dt===null?nt=null:(nt=Dt._1,Dt=Dt._2);break;case v:et=et._2;break;case D:case C:nt&&(Dt=new P(b,nt,Dt)),nt=et,et=et._1;break}if(Et===0)ht(V.right(void 0))();else for(Xr=0,xe=Et;Xrnull);function D0(t,e){let n=typeof CV!="undefined"&&CV.apiEndpoint||typeof global!="undefined"&&global.CV&&global.CV.apiEndpoint;return n||console.error("Missing `CV.apiEndpoint` function"),n&&n(t,e)}function y0(t,e,n,r,a){return function(l,f){var d=t.newXHR(),p=t.fixupUrl(a.url,d);if(d.open(a.method||"GET",p,!0,a.username,a.password),a.headers)try{for(var m=0,v;(v=a.headers[m])!=null;m++)d.setRequestHeader(v.field,v.value)}catch(C){l(C)}var D=function(C){return function(){l(new Error(C))}};return d.onerror=D(n),d.ontimeout=D(e),d.onload=function(){f({status:d.status,statusText:d.statusText,headers:d.getAllResponseHeaders().split(`\r `).filter(function(C){return C.length>0}).map(function(C){var b=C.indexOf(":");return r(C.substring(0,b))(C.substring(b+2))}),body:d.response})},d.responseType=a.responseType,d.withCredentials=a.withCredentials,d.timeout=a.timeout,d.send(a.content),function(C,b,R){try{d.abort()}catch(E){return b(E)}return R()}}}var Rf="application/json",b0="application/x-www-form-urlencoded";var C0=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),R0=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),T0=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),w0=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),E0=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),nv=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),Tf=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),F0=function(t){return t instanceof nv?new h(b0):t instanceof Tf?new h(Rf):g.value};var M0=function(){return Tf.create}();var x0=zt();var wf=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),Ef=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),Iu=function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t}(),S0=function(t){if(t instanceof wf||t instanceof Ef)return x0(t.value0);if(t instanceof Iu)return t.value1;throw new Error("Failed pattern match at Affjax.RequestHeader (line 26, column 1 - line 26, column 33): "+[t.constructor.name])};var rv=function(t){if(t instanceof wf)return"Accept";if(t instanceof Ef)return"Content-Type";if(t instanceof Iu)return t.value0;throw new Error("Failed pattern match at Affjax.RequestHeader (line 21, column 1 - line 21, column 32): "+[t.constructor.name])};var I0=$(G),av=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),ov=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),uv=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),Ff=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),Mf=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),xf=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),L0=function(t){if(t instanceof av)return"arraybuffer";if(t instanceof ov)return"blob";if(t instanceof uv)return"document";if(t instanceof Ff||t instanceof Mf)return"text";if(t instanceof xf)return"";throw new Error("Failed pattern match at Affjax.ResponseFormat (line 44, column 3 - line 50, column 19): "+[t.constructor.name])},j0=function(t){return t instanceof Ff?new h(Rf):g.value},A0=function(){return new Mf(I0)}();var N0=function(){return new xf(I0)}();var P0=function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t}();var b8=zt();var lv=function(t){return b8(of(t))};function gr(t){return t}function cv(t){return JSON.stringify(t)}var O0=gr(kc);function U0(t,e,n){try{return e(JSON.parse(n))}catch(r){return t(r.message)}}var Sf=function(t){return U0(j.create,L.create,t)};function C8(t){return t.replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16)})}function W0(t,e,n){try{return e(C8(encodeURIComponent(n)).replace(/%20/g,"+"))}catch(r){return t(r)}}var If=function(){return ou(W0)(J(g.value))(h.create)}();var T8=it(ln),H0=y(Z),w8=sn(Ir)(Le);var E8=function(t){return t};var $0=function(){var t=function(r){if(r.value1 instanceof g)return If(r.value0);if(r.value1 instanceof h)return T8(H0(function(a){return function(l){return a+("="+l)}})(If(r.value0)))(If(r.value1.value0));throw new Error("Failed pattern match at Data.FormURLEncoded (line 37, column 16 - line 39, column 114): "+[r.constructor.name])},e=H0(xn("&")),n=w8(t);return function(r){return e(n(E8(r)))}}();var fv=function(){function t(){}return t.value=new t,t}(),Lo=function(){function t(){}return t.value=new t,t}(),sv=function(){function t(){}return t.value=new t,t}(),Lu=function(){function t(){}return t.value=new t,t}(),jf=function(){function t(){}return t.value=new t,t}(),il=function(){function t(){}return t.value=new t,t}(),dv=function(){function t(){}return t.value=new t,t}(),pv=function(){function t(){}return t.value=new t,t}(),vv=function(){function t(){}return t.value=new t,t}(),mv=function(){function t(){}return t.value=new t,t}(),_v=function(){function t(){}return t.value=new t,t}(),hv=function(){function t(){}return t.value=new t,t}(),gv=function(){function t(){}return t.value=new t,t}(),Dv=function(){function t(){}return t.value=new t,t}(),yv=function(){function t(){}return t.value=new t,t}(),Af=function(){function t(){}return t.value=new t,t}();var F8=function(t){return t},M8={show:function(t){if(t instanceof fv)return"OPTIONS";if(t instanceof Lo)return"GET";if(t instanceof sv)return"HEAD";if(t instanceof Lu)return"POST";if(t instanceof jf)return"PUT";if(t instanceof il)return"DELETE";if(t instanceof dv)return"TRACE";if(t instanceof pv)return"CONNECT";if(t instanceof vv)return"PROPFIND";if(t instanceof mv)return"PROPPATCH";if(t instanceof _v)return"MKCOL";if(t instanceof hv)return"COPY";if(t instanceof gv)return"MOVE";if(t instanceof Dv)return"LOCK";if(t instanceof yv)return"UNLOCK";if(t instanceof Af)return"PATCH";throw new Error("Failed pattern match at Data.HTTP.Method (line 43, column 1 - line 59, column 23): "+[t.constructor.name])}};var q0=ue(M(M8))(F8);var k0={eq:function(t){return function(e){return t instanceof fv&&e instanceof fv||t instanceof Lo&&e instanceof Lo||t instanceof sv&&e instanceof sv||t instanceof Lu&&e instanceof Lu||t instanceof jf&&e instanceof jf||t instanceof il&&e instanceof il||t instanceof dv&&e instanceof dv||t instanceof pv&&e instanceof pv||t instanceof vv&&e instanceof vv||t instanceof mv&&e instanceof mv||t instanceof _v&&e instanceof _v||t instanceof hv&&e instanceof hv||t instanceof gv&&e instanceof gv||t instanceof Dv&&e instanceof Dv||t instanceof yv&&e instanceof yv||t instanceof Af&&e instanceof Af}}};var B0=function(t){return Su(function(e){return function(){var r=t(function(a){return e(j.create(a))()},function(a){return e(L.create(a))()});return function(a){return Su(function(l){return function(){return r(a,function(d){return l(j.create(d))()},function(d){return l(L.create(d))()}),g0}})}}})};var bv=T(Pa(Be)),x8=Bp(Be),jo=Gp(Be),G0=Qt(ID(Qg)(Be)),S8=ro(wu(Be)),Nf=y(Z),I8=fr(_t)(We),L8=q(Oe),j8=le(Jt),A8=y(Rt),N8=pt(va),P8=Ta(ul),O8=T(yn);var Pf=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),Of=function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t}(),Uf=function(){function t(){}return t.value=new t,t}(),Wf=function(){function t(){}return t.value=new t,t}(),Hf=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),J0=function(t){return function(e){var n=function(v){return v===""?bv(O0):ue(function(D){return x8(kp.create(D))})(bv)(Sf(v))},r=function(){if(e.responseFormat instanceof av)return jo("ArrayBuffer");if(e.responseFormat instanceof ov)return jo("Blob");if(e.responseFormat instanceof uv)return function(v){return G0(jo("Document")(v))(G0(jo("XMLDocument")(v))(jo("HTMLDocument")(v)))};if(e.responseFormat instanceof Ff)return S8(function(v){return e.responseFormat.value0(n(v))})(jo("String"));if(e.responseFormat instanceof Mf)return jo("String");if(e.responseFormat instanceof xf)return J(e.responseFormat.value0(bv(F)));throw new Error("Failed pattern match at Affjax (line 274, column 18 - line 283, column 57): "+[e.responseFormat.constructor.name])}(),a=function(v){if(v instanceof C0)return new L(v.value0(qe));if(v instanceof R0)return new L(qe(v.value0));if(v instanceof T0)return new L(qe(v.value0));if(v instanceof w0)return new L(qe(v.value0));if(v instanceof E0)return new L(qe(v.value0));if(v instanceof nv)return ba("Body contains values that cannot be encoded as application/x-www-form-urlencoded")(Nf(qe)($0(v.value0)));if(v instanceof Tf)return new L(qe(cv(v.value0)));throw new Error("Failed pattern match at Affjax (line 235, column 20 - line 250, column 69): "+[v.constructor.name])},l=function(v){return function(D){return v instanceof h&&!I8(ui(L8)(rv)(v.value0))(D)?iu(D)(v.value0):D}},f=function(v){return l(Nf(Ef.create)(j8(F0)(v)))(l(Nf(wf.create)(j0(e.responseFormat)))(e.headers))},d=function(v){return{method:q0(e.method),url:e.url,headers:A8(function(D){return{field:rv(D),value:S0(D)}})(f(e.content)),content:v,responseType:L0(e.responseFormat),username:Bn(e.username),password:Bn(e.password),withCredentials:e.withCredentials,timeout:ct(0)(Nf(function(D){return D})(e.timeout))}},p=function(v){return N8(P8(B0(y0(t,"AffjaxTimeoutErrorMessageIdent","AffjaxRequestFailedMessageIdent",P0.create,d(v)))))(function(D){if(D instanceof L){var C=lv(r(D.value0.body));if(C instanceof j)return new j(new Of(PD(C.value0),D.value0));if(C instanceof L)return new L({headers:D.value0.headers,status:D.value0.status,statusText:D.value0.statusText,body:C.value0});throw new Error("Failed pattern match at Affjax (line 209, column 9 - line 211, column 52): "+[C.constructor.name])}if(D instanceof j)return new j(function(){var b=Ra(D.value0),R=b==="AffjaxTimeoutErrorMessageIdent";if(R)return Uf.value;var E=b==="AffjaxRequestFailedMessageIdent";return E?Wf.value:new Hf(D.value0)}());throw new Error("Failed pattern match at Affjax (line 207, column 144 - line 219, column 28): "+[D.constructor.name])})};if(e.content instanceof g)return p(Bn(g.value));if(e.content instanceof h){var m=a(e.content.value0);if(m instanceof L)return p(Bn(new h(m.value0)));if(m instanceof j)return O8(new j(new Pf(m.value0)));throw new Error("Failed pattern match at Affjax (line 199, column 7 - line 203, column 48): "+[m.constructor.name])}throw new Error("Failed pattern match at Affjax (line 195, column 3 - line 203, column 48): "+[e.content.constructor.name])}};var ju=function(){return{method:new j(Lo.value),url:"/",headers:[],content:g.value,username:g.value,password:g.value,withCredentials:!1,responseFormat:N0,timeout:g.value}}();var z0={eq:function(t){return function(e){return t===e}}};var Cv={newXHR:function(){return new XMLHttpRequest},fixupUrl:function(t){return t||"/"}};var V0=J0(Cv);var K0t=typeof Array.from=="function",Y0t=typeof Symbol!="undefined"&&Symbol!=null&&typeof Symbol.iterator!="undefined"&&typeof String.prototype[Symbol.iterator]=="function",X0t=typeof String.prototype.fromCodePoint=="function",Z0t=typeof String.prototype.codePointAt=="function";function _y(t){return Buffer.from(t).toString("base64")}function hy(t,e,n){let r;try{r=e(btoa(n))}catch(a){r=t(a)}return r}var jv=typeof btoa=="function";function gy(t){let e=32768,n=[];for(let r=0;r=90)return Wv.value;if(t>=70)return Hv.value;if(X)return sl.value;throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.Utils (line 22, column 1 - line 22, column 30): "+[t.constructor.name])},No=function(t){return M7("mx-auto")(x7("spinner spinner-border text-primary "+ct("")(t.extraClass))(""))},Bf={subject:"",body:""},$v=function(t){if(t instanceof Ha)return t.value0;if(t instanceof vf)return Bf;throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.Utils (line 35, column 20 - line 37, column 23): "+[t.constructor.name])};var Sn=function(){function t(){}return t.value=new t,t}(),$r=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),tr=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}();var Hy=function(t){if(t instanceof Sn)return new tr(g.value);if(t instanceof $r)return new tr(new h(t.value0));if(t instanceof tr)return new tr(t.value0);throw new Error("Failed pattern match at Utils.Loadable (line 63, column 13 - line 66, column 25): "+[t.constructor.name])},qv=function(t){if(t instanceof Sn)return g.value;if(t instanceof $r)return new h(t.value0);if(t instanceof tr)return t.value0;throw new Error("Failed pattern match at Utils.Loadable (line 48, column 11 - line 51, column 17): "+[t.constructor.name])};var S7=Gc(Zt),$y=zc(ve),qy=Na(Ot),I7=M(Lt),L7=Qc(ve),j7=Vc(Zt),Gf=pt(Z),ky=function(t){var e=function(m){return function(v){return S7("d-flex align-items-center justify-content-between my-2")([$y("font-weight-bold fw-bold")(me(m)),$y("")(v)])}},n=e("School Perception"),r=e("Quality"),a=e("Readability"),l=e("Spam Factor"),f=No({extraClass:g.value}),d=qy("text-secondary")("--"),p=st(d)(function(){var m=qy("font-weight-bold fw-bold");return function(v){return m(I7(Ar(v)))}}());return L7("w-100")(j7("")(function(){if(t.scores instanceof $r)return[l(p(Gf(t.scores.value0.categories)(function(m){return m.spam}))),n(p(Gf(t.scores.value0.categories)(function(m){return m.perception}))),r(p(Gf(t.scores.value0.categories)(function(m){return m.quality}))),a(p(Gf(t.scores.value0.categories)(function(m){return m.readability})))];if(t.scores instanceof tr)return[l(f),n(f),r(f),a(f)];if(t.scores instanceof Sn)return[l(d),n(d),r(d),a(d)];throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.CategoryScores (line 17, column 16 - line 35, column 10): "+[t.scores.constructor.name])}()))};var A7=function(){function t(){}return t.value=new t,t}(),kv=function(){function t(){}return t.value=new t,t}(),N7=function(){function t(){}return t.value=new t,t}(),P7=function(){function t(){}return t.value=new t,t}(),By=function(t){if(t instanceof A7)return"modal-sm";if(t instanceof kv)return"";if(t instanceof N7)return"modal-lg";if(t instanceof P7)return"modal-xl";throw new Error("Failed pattern match at Bootstrap.Modal.Size (line 14, column 13 - line 18, column 27): "+[t.constructor.name])};var mb=Qs(vb()),_b=mb.default;var hS=_r(),hb=function(t){var e=hS(t);return function(){return function(){return e(_b)}}};var DS=I;var gb=function(t){return Tu(t)};var Uu=function(t){var e=gb(t);return e?g.value:new h(DS(t))};var nn=function(t){return function(e){var n=gb(t);return n?e:t}};var Wu=function(){return I};var yS=T(ye),bS=aa(),Db=function(t){return{handleMaybe:function(e){return function(n){return Du(function(){var r=st(yS(F))(e);return function(a){return r(bS(n(a)))}}())}}}};var yb={handle:function(t){return function(e){return function(n){return t(e(n))()}}}};var Yf={handleEffect:function(t){return Du(J(t))}},Yv={handle:function(t){return function(e){return function(n){return t(e)()}}}},Xv=function(t){return t.handleMaybe},ml=function(t){return t.handleEffect},_l=function(t){return t.handle};var hl="";function bb(t){var e=t.split(` `);return e.reduce(function(n,r){var a=TS(r)||ES(r)||xS(r)||jS(r)||IS(r);return a&&n.push(a),n},[])}var CS=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,RS=/\((\S*)(?::(\d+))(?::(\d+))\)/;function TS(t){var e=CS.exec(t);if(!e)return null;var n=e[2]&&e[2].indexOf("native")===0,r=e[2]&&e[2].indexOf("eval")===0,a=RS.exec(e[2]);return r&&a!=null&&(e[2]=a[1],e[3]=a[2],e[4]=a[3]),{file:n?null:e[2],methodName:e[1]||hl,arguments:n?[e[2]]:[],lineNumber:e[3]?+e[3]:null,column:e[4]?+e[4]:null}}var wS=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function ES(t){var e=wS.exec(t);return e?{file:e[2],methodName:e[1]||hl,arguments:[],lineNumber:+e[3],column:e[4]?+e[4]:null}:null}var FS=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,MS=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function xS(t){var e=FS.exec(t);if(!e)return null;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=MS.exec(e[3]);return n&&r!=null&&(e[3]=r[1],e[4]=r[2],e[5]=null),{file:e[3],methodName:e[1]||hl,arguments:e[2]?e[2].split(","):[],lineNumber:e[4]?+e[4]:null,column:e[5]?+e[5]:null}}var SS=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function IS(t){var e=SS.exec(t);return e?{file:e[3],methodName:e[1]||hl,arguments:[],lineNumber:+e[4],column:e[5]?+e[5]:null}:null}var LS=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function jS(t){var e=LS.exec(t);return e?{file:e[2],methodName:e[1]||hl,arguments:[],lineNumber:+e[3],column:e[4]?+e[4]:null}:null}function Cb({skipFrames:t,prefix:e}){let n=new Error().stack,a=bb(n)[t],l=Rb(a.file.replace(/^(http(s?):\/\/)?[^\/]+/,"")),f=Rb(a.methodName);return`${e}_${l}_${f}_${a.lineNumber}_${a.column}`}var Rb=t=>t.replace(/[^\d\w]+/g,"_").replace(/(^_|_$)/g,"");To();var Tb=function(){let t={};return function(e,n){let r=t[e]||(t[e]=Fb(e));return n(r)}}();function wb(t){return t(Fb())}var Eb=vr.createElement,gl=t=>()=>t.props.def;function Fb(t){class e extends vr.Component{constructor(r){super(r);r.init&&r.init(this)()}render(){return this.props.render(this)()}componentDidMount(){this.props.componentDidMount(this)()}componentWillUnmount(){this.props.componentWillUnmount(this)()}}return e.displayName=t?"Elmish_"+t:"ElmishRoot",e}var Xf=typeof module=="undefined"?void 0:module.require,XRt=function(){try{return Xf===void 0?void 0:Xf("util")}catch{return}}();var ZRt=function(){var t;if(typeof performance!="undefined")t=performance;else if(Xf)try{t=Xf("perf_hooks").performance}catch{}return function(){return(t||Date).now()}}();var Mb=(t,e)=>e[t],xb=(t,e,n)=>n[t]=e;var AS=pt(mt),Dl=function(){function t(){}return t.value=new t,t}(),Sb=function(){return function(t){var e=ie(t);return function(n){return Mo(xb)(e(Ht.value))}}},Zv=function(t){var e=Mu(t);return function(n){var r=ie(n);return function(a){return function(l){return AS(function(){return Mb(r(Ht.value),l)})(e)}}}};var tm=y(mt),NS=T(ye),Ib=function(t){return{initialize:function(e){return pD(e)(t.initialState)},getState:function(e){return function(){var r=tm(yt)(dD(e))();return ct(t.initialState)(r)}},setState:Sp}},Lb=function(){var t=function(e){return function(n){return{initialize:function(r){return ea(new h(n.initialState))(e)},getState:function(r){return tm(ct(n.initialState))(wa(e))},setState:function(r){return function(a){return function(l){return function(){return ea(new h(a))(e)(),Sp(r)(a)(NS(F))(),l()}}}}}}};return tm(t)(uo(g.value))}();var Ab=pt(Rt),Nb=k(Ie);var Pb=Sb(),Ob={reflectSymbol:function(){return"__unmounted"}},PS=Pb(Ob),Ub={reflectSymbol:function(){return"__subscriptions"}},OS=Pb(Ub),Zf=pt(mt),US=Zv(zi)(Ob),Wb=y(mt),WS=Zv(Vi(UD))(Ub),HS=se(de),$S=le(wn),qS=ec(ye)(_t),kS=HS(Qe),Hb=gt(pu),BS=Gl(Ca),GS=k(Ys(Jl(ii))),em=function(t){return t},$a=function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t}(),JS={map:function(t){return function(e){return new $a(t(e.value0),e.value1)}}},$b=function(t){return{bimap:function(e){return function(n){return function(r){return new $a(n(r.value0),Ab(r.value1)(function(a){return function(l){return a({dispatch:function(f){return l.dispatch(e(f))},onStop:l.onStop})}}))}}}}},qb={apply:function(t){return function(e){return new $a(t.value0(e.value0),Nb(t.value1)(e.value1))}},Functor0:function(){return JS}},ha={bind:function(t){return function(e){var n=e(t.value0);return new $a(n.value0,Nb(t.value1)(n.value1))}},Apply0:function(){return qb}},pn={pure:function(t){return new $a(t,[])},Apply0:function(){return qb}};var kb=function(t){var e=S(t);return function(n){var r=gt(n);return function(a){return function(l){return new $a(a,Ab(l)(function(f){return function(d){return e(f)(function(p){return r(d.dispatch(p))})}}))}}}};var Oo=function(t){return new $a(F,[t])},er=function(t){return Oo(J(t))};var Hu=function(t){var e=kb(t.Monad0().Bind1())(t);return function(n){return e(F)([n])}},Bb=function(t){return function(e){var n=PS(Dl.value),r=OS(Dl.value),a=function(b){return function(R){return function(E){return function(){var K=Zf(gl(b))(function(Y){return Y.init})();return e({initialState:K.value0}).setState(b)(R)(E)()}}}},l=function(){var b=Wb(ct(!1)),R=US(Dl.value);return function(E){return b(R(E))}}(),f=function(){var b=Wb(ct([])),R=WS(Dl.value);return function(E){return b(R(E))}}(),d=function(b){return function(){return $S(qS)(f(b))(),r([])(b)()}},p=function(b){return function(){var E=Zf(gl(b))(function(N){return N.init})();return e({initialState:E.value0}).getState(b)()}},m=function(b){return function(R){return function(){var N=f(b)();return r(ia(yf(R))(N))(b)()}}},v=function(b){return function(R){var E=function(N){return yf(kS(ma(0))(function(){return N({dispatch:function(){var K=D(R);return function(Y){return Hb(K(Y))}}(),onStop:m(R)})}))};return ad(b)(E)}},D=function(b){return function(R){return BS(l(b))(function(){var N=p(b)(),K=Zf(gl(b))(function(Wt){return Wt.update})(),Y=K(N)(R);return a(b)(Y.value0)(v(Y.value1)(b))()})}},C=function(b){return function(){var E=p(b)(),N=Zf(gl(b))(function(K){return K.view})();return N(E)(D(b))}};return function(b){return Eb(t,{def:b,init:e({initialState:b.init.value0}).initialize,render:C,componentDidMount:v(b.init.value1),componentWillUnmount:GS(n(!0))(d)})}}},nm=function(t){return function(){var n=Hb(Lb)();return wb(function(r){return Bb(r)(n)(t)})}},yl=function(t){return function(e){return Tb(t,function(n){var r=Bb(n)(Ib);return function(a){return r(e(a))}})}};var zS=T(pn),VS=$(G),ts=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),QS={map:function(t){return function(e){return new ts(function(n){return e.value0(function(r){return n(t(r))})})}}},KS=y(QS);var Gb=function(t){return em(Cb(t))},bl=function(t){return new ts(function(e){return e(t)})},$u=function(t){return function(e){return new ts(function(n){return yl(t)(e)(n)})}},Jb=function(t){return function(e){return yl(t)(function(n){return{init:zS(F),update:J(ya),view:J(J(e.value0(VS)))}})(F)}},zb=function(t){var e=Gb({skipFrames:3,prefix:"WithHook"});return function(n){return Jb(e)(KS(n)(t))}};var es=function(t){var e=Gb({skipFrames:3,prefix:"HooksComponent"});return Jb(e)(t)},ns=function(){return function(t){return function(e){return new ts(function(n){return t.value0(function(r){var a=e(r);return a.value0(n)})})}}},YS=ns(),rs=function(t){return function(){return YS}};var Vb=ol(Df);var Qb={map:function(t){return function(e){return Vb(Vb(t))(e)}}},XS=pt(Qb),ZS=function(t){var e=S(t.Monad0().Bind1()),n=gt(t);return function(r){return Oo(function(a){return e(r(a.dispatch))(function(l){return n(a.onStop(l))})})}},as=function(t){var e=ZS(t);return function(n){return function(r){return e(XS(r)(n))}}};var Kb=se(de)(ha),t6=as(be),e6=$(G),Yb=T(pn),rm=function(t){return function(e){return $u("UseSubscription")(function(n){return{init:Kb(t6(e6)(t))(function(){return Yb(F)}),update:function(r){return function(a){return Kb(er(e(a)))(function(){return Yb(F)})}},view:function(r){return function(a){return n(F)}}}})}};var n6=function(t){return t},qr=qe(pi);var am=function(t){return n6(qe(t))};function om(t){return function(){return function(e){return t(e)()}}}function um(t){return function(e){return function(n){return function(r){return function(){return r.addEventListener(t,e,n)}}}}}function im(t){return function(e){return function(n){return function(r){return function(){return r.removeEventListener(t,e,n)}}}}}var Uo=function(){return window};var lm=I;var Xb=I;function qu(t){return function(){return t.document}}var Zb=I;var tC="message";var eC="hashchange";var nC="popstate";var rC="keyup",aC="keydown";var oC="mouseup";var uC="mousemove";var iC=gt(be),lC=y(mt),o6=le(wn),cC=function(){var t=function(r){return function(a){return function(l){return iC(function(){var d=a(),p=om(function(m){return l(m)})();return um(r)(p)(!1)(d)(),iC(im(r)(p)(!1)(d))})}}},e=function(r){return t(r)(lC(Zb)(Uo))},n=function(r){return t(r)(lC(Xb)(o6(qu)(Uo)))};return{hashchange:e(eC),mousemove:e(uC),mouseup:e(oC),popstate:e(nC),resize:e("resize"),message:e(tC),keydown:n(aC),keyup:n(rC),selectionchange:n("selectionchange"),visibilitychange:n("visibilitychange")}}();var fC=function(t){var e=Op(t);return function(){return function(){return e("button")}}},sC=function(){return function(){return bD("br")}};var dC=function(t){var e=Op(t);return function(){return function(){return e("a")}}};var pC=ho()(),Wo=function(t){var e=fC(t)()();return function(){return function(){return function(n){return function(r){return function(a){return function(l){return e(pC(a)({className:n,"aria-label":r}))(l)}}}}}}};var os=function(t){var e=dC(t)()();return function(){return function(){return function(n){return function(r){return function(a){return function(l){return e(pC(a)({className:n,"aria-label":r}))(l)}}}}}}};To();var vC=vr.Fragment;function _C(t){return function(e){return function(){return e.getElementById(t)}}}var fL=y(mt),fm=function(t){var e=fL(yt),n=_C(t);return function(r){return e(n(r))}};var us=function(t){return function(e){return function(){return e[t]}}},sL=us("children"),dL=us("firstElementChild"),pL=us("lastElementChild"),vL=us("childElementCount");var _L=y(Rt);var hL=sC()();var Dr=Ct(st(gn));var gC=function(t){return function(e){if(t)return e(F);if(X)return gn;throw new Error("Failed pattern match at Utils.HTML (line 100, column 1 - line 100, column 61): "+[t.constructor.name,e.constructor.name])}},sm=function(t){return function(e){return gC(t)(J(e))}};var gL=_r()(Zt)(vC),DL=function(t){return function(e){return gL({key:t.key})(bi(hL({}))(_L(me)(ca(` `)(e))))}},dm=DL({key:""});var DC=function(){return I};var ku=ce(ve),pm=Wu(),yL=hb(ve)()(),bL=da(ve)()(),CL=da(Zt)()(),RL=ce(Zt),TL=Wo(Ot)()(),wL=ml(Yf),EL=qn(yn),FL=gt(be),yC=DC(),vm=function(){return function(t){var e=ku("modal-backdrop fade show")(gn),n=pm(t),r=Uu(n.footer),a=Uu(n.header),l=nn(n.size)(kv.value),f=xn(" ")([function(){var p=nn(n.scrollable)(!0);return p?"modal-dialog-scrollable":""}(),function(){var p=nn(n.centered)(!0);return p?"modal-dialog-centered":""}(),By(l),nn(n.dialogClass)("")]),d=yL({focusTrapOptions:{escapeDeactivates:!1,fallbackFocus:".modal-content",allowOutsideClick:!0}})(ku("modal fade show d-block")(bL("modal-dialog "+f)({style:nn(n.dialogStyle)(xo({}))})(CL("modal-content "+nn(n.contentClass)(""))({style:nn(n.contentStyle)(xo({}))})([Dr(a)(ku("modal-header "+nn(n.headerClass)(""))),ku("modal-body "+nn(n.bodyClass)(""))(n.body),Dr(r)(ku("modal-footer "+nn(n.footerClass)("")))]))));return Ve([d,e])}},bC=vm(),CC=function(){return function(t){var e=pm(t),n=RL("d-flex w-100 justify-content-between align-items-center")([ku("mr-4")(nn(e.title)(gn)),TL("btn btn-link large mr-n3 py-0 fe fe-x t--close "+nn(e.dismissButtonClass)("text-body"))(am("Close"))({type:"button",onClick:wL(e.onDismiss)})("")]),r=function(a){return EL(a.key==="Escape")(FL(e.onDismiss))};return zb(rm(cC.keyup)(r))(function(a){var l=nn(e.bodyScrollable)(!1);return bC(l?function(){var f=pm(yC(e));return{body:f.body,bodyClass:f.bodyClass,centered:f.centered,contentClass:f.contentClass,contentStyle:f.contentStyle,dialogClass:f.dialogClass,dialogStyle:f.dialogStyle,footer:f.footer,footerClass:f.footerClass,headerClass:f.headerClass,scrollable:f.scrollable,size:f.size,header:n}}():yC({bodyClass:e.bodyClass,bodyScrollable:e.bodyScrollable,centered:e.centered,contentClass:e.contentClass,contentStyle:e.contentStyle,dialogClass:e.dialogClass,dialogStyle:e.dialogStyle,dismissButtonClass:e.dismissButtonClass,footer:e.footer,footerClass:e.footerClass,headerClass:e.headerClass,onDismiss:e.onDismiss,scrollable:e.scrollable,size:e.size,title:e.title,body:Ve([n,e.body])}))})}};function RC({containerSelector:t,onSubmit:e}){return function(){let n=document.createElement("script");n.setAttribute("charset","utf-8"),n.setAttribute("type","text/javascript"),n.src="//js.hsforms.net/forms/embed/v2.js",n.onload=function(){hbspt.forms.create({region:"na1",portalId:"24165363",formId:"3d13cd67-9301-4d68-b35e-3794438af95a",target:t,onFormSubmitted:(r,a)=>{let l=a.submissionValues,f={email:l.email,name:`${l.firstname} ${l.lastname}`.trim(),free_form_school_name:l.company,title:l.jobtitle};e(f)()}})},document.querySelector(t).appendChild(n)}}var TC=function(t){return RC({containerSelector:t.containerSelector,onSubmit:function(e){return t.onSubmit(mf(e))}})};To();var wC=class extends vr.Component{componentDidUpdate(e){this.props.componentDidUpdate(e.deps)}render(){return this.props.children}},EC=wC;var ML=oe();var FC=function(t){return"ref:"+ie(t)(Ht.value)},MC=function(t){var e=FC(t);return function(n){return ML($i(e)(n))}},xC=function(t){var e=FC(t);return function(n){return Lp(e)(n)}};var xL=_r(),IC=se(de)(ha),LC=T(pn),SL=Xv(Db(u0)),jC={reflectSymbol:function(){return"deps"}},IL=MC(jC),LL=xC(jC),jL=$(G);var AL=function(t){var e=xL(t);return function(){return function(){return e(EC)}}},NL=AL(ve)()(),PL=function(t){var e=Za(t);return function(n){return function(r){return function(a){return function(l){return $u(n)(function(f){return r({init:IC(er(l(a)))(function(){return LC(a)}),update:function(d){return function(p){return IC(er(l(p)))(function(){return LC(p)})}},view:function(d){return function(p){return NL({componentDidUpdate:SL(p)(function(m){var v=e(IL(m))(a);return v?new h(a):g.value}),deps:LL(a)})(f(F))}}})})}}}}},OL=PL(li);var mm=function(t){return OL("UseEffect")(jL)(F)(J(t))};var Bu=ce(Zt),AC=ki()(),NC=Yn(Ot),PC=Na(Ot),UL=pt(Rt),WL=Ur(Zt),HL=Or(Ot),$L=os(Ot)()(),qL=Wo(Ot)()(),kL=ml(Yf),BL=CC(),_m=ce(Ot),GL=da(ve)()(),JL=rs(de)(),zL=gt(be),VL=vm(),OC=function(t){var e=Bu("d-flex align-items-center")([AC("")({src:"/img/data_lab/email_content_optimizer/sage-branding.svg",alt:"Purple circle with white stars in middle",height:"48",width:"48"}),Bu("d-flex flex-column ml-3")([NC("mb-2")("Report methodology"),PC("text-secondary")("Powered by Sage")])]),n=[{label:"How these scores are generated",description:` The ratings in this report are built from a dataset of more than 20,000 student ratings of real college emails. They reflect a projection of how students will react to your marketing emails. `},{label:"Overall score",description:"How engaging will this email be for high school students."},{label:"Subject line score",description:"Will students open this email? A higher score = a higher likelihood of opening this email."},{label:"Spam Factor",description:"How spammy the email feels to student readers (lower score = more spammy)."},{label:"School Perception",description:"The impact of this email on a student\u2019s perception of your school."},{label:"Quality",description:"The strength of your email for a student audience."},{label:"Readability",description:"How easy the email is to read."}],r=Bu("mt-4")([Ve(UL(n)(function(a){return WL("")([HL("")(a.label+": "),me(a.description)])})),Bu("mt-4 d-flex align-items-center justify-content-between")([$L("")(qr)({href:"https://go.collegevine.com/hubfs/Email%20Content%20Optimizer%20(ECO)%20Methodology.pdf",target:"_blank"})("Full methodology"),qL("btn btn-dark w-25")(qr)({onClick:kL(t.onDismiss)})("Ok")])]);return BL({title:e,onDismiss:t.onDismiss,body:r})},UC=function(t){var e=Ve([Bu("d-flex align-items-center")([AC("")({src:"/img/data_lab/email_content_optimizer/sage-branding.svg",alt:"Purple circle with white stars in middle",height:"48",width:"48"}),Bu("d-flex flex-column ml-3")([NC("mb-2")("Email Content Optimizer"),PC("text-secondary")("Powered by Sage")])]),_m("mt-4")("AI-powered benchmarks for your marketing emails"),_m("mt-2")("Built from a dataset of 20,000+ student ratings"),_m("mt-2")("Targeted suggestions for improvement based on real student feedback"),GL("mt-4")({id:"t--eco-registration-modal"})(es(JL(mm(zL(TC({containerSelector:"#t--eco-registration-modal",onSubmit:t.onSubmit}))))(function(){return bl(gn)})))]);return VL({body:e})};var QL=M(Lt),KL=Mn(_t)(_n),WC=function(t){var e=qi(t);return function(){return function(){return e("text")}}};var YL=function(){return function(){return Cu("path")}},XL=YL()();var HC=function(t){var e=function(d){return QL(Ar(d))},n=function(d){return function(p){return e(d*p.x)+(" "+e(d*p.y))}},r=function(d){return{x:t.center.x+zd(d),y:t.center.y-Vd(d)}},a=r(t.angle1),l=r(t.angle0),f=function(){var d=t.angle1-t.angle0>su;return d?"1":"0"}();return XL("")({d:KL([" M ",n(t.outerRadius)(l)," A ",e(t.outerRadius)," ",e(t.outerRadius)," 0 ",f," 0 ",n(t.outerRadius)(a)," L ",n(t.innerRadius)(a)," A ",e(t.innerRadius)," ",e(t.innerRadius)," 0 ",f," 1 ",n(t.innerRadius)(l)," Z"]),fill:t.fill,stroke:t.stroke.color,strokeWidth:t.stroke.width})};var ZL=WC(Ot)()(),tj=Wu(),ej=Kc(Zt)()(),$C=function(){return function(t){var e=function(p){return HC({center:{x:0,y:0},angle0:p.start,angle1:p.end,innerRadius:p.innerRadius,outerRadius:p.outerRadius,fill:p.fill,stroke:{color:"",width:0}})},n=function(p){return ZL("")({x:"0",y:"0",dominantBaseline:"middle",textAnchor:"middle",fontSize:p.fontSize})(p.text)},r=su*1.02/2,a=su*2.48,l=e({start:r,end:a,fill:"#D2DDEC",innerRadius:80,outerRadius:85}),f=tj(t),d=e({start:r+(a-r)*(1-Me(Ar(f.progress*100))/100),end:su*2.48,fill:Py(f.fillColor),innerRadius:75,outerRadius:90});return ej("")({viewBox:"-100 -100 200 200"})([sm(f.completeCircle)(l),d,Dr(Uu(f.centerLabel))(n)])}};var qC=ce(Zt),hm=ce(ve),nj=da(ve)()(),rj=$C(),aj=Yn(Ot),oj=Ur(Zt),uj=Or(Ot),kC=function(t){return function(e){return qC("text-center flex-grow-1 "+t.extraClass)([me(t.label),hm("mt-2")(e)])}},BC=function(t){var e=kC({label:"Subject Line score",extraClass:""}),n=kC({label:"Overall score",extraClass:"border-right"}),r=function(a){return nj("mx-auto")({style:xo({height:"80px",width:"80px"})})(rj({progress:st(0)(function(l){return l/100})(a),completeCircle:!0,fillColor:st(sl.value)(Uy)(a),centerLabel:{text:Oy(a),fontSize:"40px"}}))};return Ve([aj("mb-2")("Email performance scores"),oj("text-secondary")([me("Powered by AI and "),uj("")("20,000+ student ratings"),me(" of real college emails.")]),qC("row mt-4")(function(){if(t.scores instanceof $r)return[n(r(t.scores.value0.overall.body)),e(r(t.scores.value0.overall.subject))];if(t.scores instanceof tr)return[n(hm("pt-3")(No({extraClass:new h("spinner-xl")}))),e(hm("pt-3")(No({extraClass:new h("spinner-xl")})))];if(t.scores instanceof Sn)return[n(r(g.value)),e(r(g.value))];throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.OverallScores (line 24, column 22 - line 38, column 10): "+[t.scores.constructor.name])}())])};var ij=M(zD),GC=function(t){return function(e){return t.ecoBaseUrl+("?uid="+ij(e))}},JC="https://partners.collegevine.com/#contact-form";var lj=Yn(Ot),cj=Ur(Zt),fj=os(ve)()(),sj=Or(Ot),zC=ce(Zt),dj=Sr(po),pj=ce(ve),vj=ce(Ot),mj=M(Lt),gm=function(t){if(t instanceof g)return gn;if(t instanceof h)return Ve([lj("")("Student persona breakdown"),cj("text-secondary")([me(` The performance of this email is impacted by how well it lines up with a student\u2019s college goals and preferences. The table below shows a ranking of how this email will perform with students based on their CollegeVine persona. `),fj("")(qr)({href:JC,target:"_blank"})(sj("text-success")(" Schedule a demo")),me(" to learn how you can make your existing marketing content more effective by adding student personas to your CRM.")]),zC("row mt-4")(dj(function(e){return function(n){return zC("col-4 col-md text-center mt-2 mt-md-0")([pj("mb-0")(JD(n)({height:"71",width:"50"})),vj("text-secondary mt-3")(mj(e+1|0)+(". "+Kp(n)))])}})(t.value0.rankedPersonas))]);throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.PersonaBreakdown (line 14, column 1 - line 14, column 37): "+[t.constructor.name])};var _j=Na(Ot),hj=Yn(Ot),gj=Ur(Zt),Dj=Or(Ot),yj=ce(ve),is=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),Dm=function(){function t(){}return t.value=new t,t}(),Gu=function(t){var e=Dr(t)(function(n){if(n instanceof is)return dm(n.value0);if(n instanceof Dm)return _j("text-danger")("Something went wrong. Please refresh the page and contact support if the problem persists.");throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.Suggestions (line 25, column 34 - line 27, column 129): "+[n.constructor.name])});return Ve([hj("mb-3")("Top suggestions"),gj("text-secondary")([me("Suggestions are based on a model trained by "),Dj("")("real student feedback"),me(".")]),yj("mt-3")(e)])};var bj=Wr();var VC=S(Jt),QC=Mu(bj(Ut({reflectSymbol:function(){return"value"}})(te)(en))),KC=T(Le);var YC=function(t){return ct("")(VC(QC(qe(t.target)))(function(e){return KC(e.value)}))};var XC=function(t){return ct("")(VC(QC(qe(t.target)))(function(e){return KC(e.value)}))};var ls=t=>()=>{try{navigator.clipboard.writeText(t)}catch(e){Rj(e),Cj(t)}},Cj=t=>{var e=document.createElement("textarea");document.body.appendChild(e),e.value=t,e.select(),document.execCommand("copy"),document.body.removeChild(e)},Rj=t=>{if(typeof window!="undefined"){let e=new Error("Unable to write text to clipboard using Clipboard API. Falling back to execCommand.");typeof window.Sentry!="undefined"&&window.Sentry.captureException(e,{extra:t})}};var ZC=JSON.stringify;var nR=function(t,e,n){var r=0,a;return function(l){if(r===2)return a;if(r===1)throw new ReferenceError(t+" was needed before it finished initializing (module "+e+", line "+l+")",e,l);return r=1,a=n(),r=2,a}};var Ke=function(){function t(){}return t.value=new t,t}(),Ye=function(){function t(e,n,r,a,l,f){this.value0=e,this.value1=n,this.value2=r,this.value3=a,this.value4=l,this.value5=f}return t.create=function(e){return function(n){return function(r){return function(a){return function(l){return function(f){return new t(e,n,r,a,l,f)}}}}}},t}(),rR=function(){function t(){}return t.value=new t,t}(),bm=function(){function t(e,n,r){this.value0=e,this.value1=n,this.value2=r}return t.create=function(e){return function(n){return function(r){return new t(e,n,r)}}},t}(),Cm=function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t}();var cs=function(){function t(e,n,r){this.value0=e,this.value1=n,this.value2=r}return t.create=function(e){return function(n){return function(r){return new t(e,n,r)}}},t}();var nr=function(t,e,n,r){if(n instanceof Ke){if(r instanceof Ke)return new Ye(1,1,t,e,n,r);if(r instanceof Ye)return new Ye(1+r.value0|0,1+r.value1|0,t,e,n,r);throw new Error("Failed pattern match at Data.Map.Internal (line 702, column 5 - line 706, column 39): "+[r.constructor.name])}if(n instanceof Ye){if(r instanceof Ke)return new Ye(1+n.value0|0,1+n.value1|0,t,e,n,r);if(r instanceof Ye)return new Ye(1+function(){var a=n.value0>r.value0;return a?n.value0:r.value0}()|0,(1+n.value1|0)+r.value1|0,t,e,n,r);throw new Error("Failed pattern match at Data.Map.Internal (line 708, column 5 - line 712, column 68): "+[r.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 700, column 32 - line 712, column 68): "+[n.constructor.name])},aR=function(){return Ct(Cm.create)(rR.value)}(),wj=function(t){return function(e){return function(n){var r=function(a){var l=!1,f;function d(p){if(p instanceof rR)return l=!0,n(F);if(p instanceof bm)return l=!0,e(p.value0,p.value1,p.value2);if(p instanceof Cm){a=t(p.value1)(p.value0);return}throw new Error("Failed pattern match at Data.Map.Internal (line 940, column 8 - line 946, column 20): "+[p.constructor.name])}for(;!l;)f=d(a);return f};return r}}};var Cl=function(t){return function(e){return new Ye(1,1,t,e,Ke.value,Ke.value)}},fs=function(){var t=function(r){if(r instanceof Ke)return 0;if(r instanceof Ye)return r.value0;throw new Error("Failed pattern match at Data.Map.Internal (line 757, column 12 - line 759, column 26): "+[r.constructor.name])},e=function(r,a,l,f,d,p,m){return p instanceof Ye&&p.value0>t(m)?nr(p.value2,p.value3,nr(r,a,l,p.value4),nr(f,d,p.value5,m)):nr(f,d,nr(r,a,l,p),m)},n=function(r,a,l,f,d,p,m){return p instanceof Ye&&t(d)<=p.value0?nr(p.value2,p.value3,nr(l,f,d,p.value4),nr(r,a,p.value5,m)):nr(l,f,d,nr(r,a,p,m))};return function(r,a,l,f){if(l instanceof Ke)return f instanceof Ke?Cl(r)(a):f instanceof Ye&&f.value0>1?e(r,a,l,f.value2,f.value3,f.value4,f.value5):nr(r,a,l,f);if(l instanceof Ye){if(f instanceof Ye){if(f.value0>(l.value0+1|0))return e(r,a,l,f.value2,f.value3,f.value4,f.value5);if(l.value0>(f.value0+1|0))return n(r,a,l.value2,l.value3,l.value4,l.value5,f)}return f instanceof Ke&&l.value0>1?n(r,a,l.value2,l.value3,l.value4,l.value5,f):nr(r,a,l,f)}throw new Error("Failed pattern match at Data.Map.Internal (line 717, column 40 - line 738, column 34): "+[l.constructor.name])}}(),Rm=nR("unsafeSplit","Data.Map.Internal",function(){return function(t,e,n){if(n instanceof Ke)return new cs(g.value,Ke.value,Ke.value);if(n instanceof Ye){var r=t(e)(n.value2);if(r instanceof W){var a=Rm(793)(t,e,n.value4);return new cs(a.value0,a.value1,fs(n.value2,n.value3,a.value2,n.value5))}if(r instanceof O){var a=Rm(796)(t,e,n.value5);return new cs(a.value0,fs(n.value2,n.value3,n.value4,a.value1),a.value2)}if(r instanceof at)return new cs(new h(n.value3),n.value4,n.value5);throw new Error("Failed pattern match at Data.Map.Internal (line 791, column 5 - line 799, column 30): "+[r.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 787, column 34 - line 799, column 30): "+[n.constructor.name])}}),Ej=Rm(786);var Tm=nR("unsafeUnionWith","Data.Map.Internal",function(){return function(t,e,n,r){if(n instanceof Ke)return r;if(r instanceof Ke)return n;if(r instanceof Ye){var a=Ej(t,r.value2,n),l=Tm(809)(t,e,a.value1,r.value4),f=Tm(810)(t,e,a.value2,r.value5);if(a.value0 instanceof h)return fs(r.value2,e(a.value0.value0)(r.value3),l,f);if(a.value0 instanceof g)return fs(r.value2,r.value3,l,f);throw new Error("Failed pattern match at Data.Map.Internal (line 811, column 5 - line 815, column 46): "+[a.value0.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 804, column 42 - line 815, column 46): "+[n.constructor.name,r.constructor.name])}}),Fj=Tm(803),wm=function(t){var e=B(t);return function(n){return function(r){return function(a){return Fj(e,n,r,a)}}}},ss=function(t){return wm(t)(J)};var Mj=function(){var t=function(e){return function(n){var r=e,a=!1,l;function f(d,p){if(p instanceof Ke)return a=!0,d;if(p instanceof Ye){if(p.value5 instanceof Ke){r=new bm(p.value2,p.value3,d),n=p.value4;return}r=new bm(p.value2,p.value3,new Cm(p.value5,d)),n=p.value4;return}throw new Error("Failed pattern match at Data.Map.Internal (line 951, column 13 - line 958, column 48): "+[p.constructor.name])}for(;!a;)l=f(r,n);return l}};return t}(),oR=wj(Mj);var xj=function(){var t=function(e,n,r){return new h(new z(new z(e,n),r))};return oR(t)(function(e){return g.value})}(),Ho=function(t){var e=dr(t)(xj);return function(n){return e(aR(n))}};var $o=function(){return Ke.value}();var Ij=function(t,e,n){var r=new Date(Date.UTC(t,e,n));return t>=0&&t<100&&r.setUTCFullYear(t),r};function uR(t,e,n,r){var a=Ij(e,n-1,r);return t(a.getUTCFullYear())(a.getUTCMonth()+1)(a.getUTCDate())}var Mm=function(t,e,n){var r=0,a;return function(l){if(r===2)return a;if(r===1)throw new ReferenceError(t+" was needed before it finished initializing (module "+e+", line "+l+")",e,l);return r=1,a=n(),r=2,a}};var bn=function(){function t(){}return t.value=new t,t}(),In=function(){function t(){}return t.value=new t,t}(),Ln=function(){function t(){}return t.value=new t,t}(),jn=function(){function t(){}return t.value=new t,t}(),An=function(){function t(){}return t.value=new t,t}(),Nn=function(){function t(){}return t.value=new t,t}(),Pn=function(){function t(){}return t.value=new t,t}(),On=function(){function t(){}return t.value=new t,t}(),Un=function(){function t(){}return t.value=new t,t}(),Wn=function(){function t(){}return t.value=new t,t}(),Hn=function(){function t(){}return t.value=new t,t}(),rr=function(){function t(){}return t.value=new t,t}();var ds=kt,ps=kt,iR=Rn;var xm={eq:function(t){return function(e){return t instanceof bn&&e instanceof bn||t instanceof In&&e instanceof In||t instanceof Ln&&e instanceof Ln||t instanceof jn&&e instanceof jn||t instanceof An&&e instanceof An||t instanceof Nn&&e instanceof Nn||t instanceof Pn&&e instanceof Pn||t instanceof On&&e instanceof On||t instanceof Un&&e instanceof Un||t instanceof Wn&&e instanceof Wn||t instanceof Hn&&e instanceof Hn||t instanceof rr&&e instanceof rr}}},vs={compare:function(t){return function(e){if(t instanceof bn&&e instanceof bn)return at.value;if(t instanceof bn)return W.value;if(e instanceof bn)return O.value;if(t instanceof In&&e instanceof In)return at.value;if(t instanceof In)return W.value;if(e instanceof In)return O.value;if(t instanceof Ln&&e instanceof Ln)return at.value;if(t instanceof Ln)return W.value;if(e instanceof Ln)return O.value;if(t instanceof jn&&e instanceof jn)return at.value;if(t instanceof jn)return W.value;if(e instanceof jn)return O.value;if(t instanceof An&&e instanceof An)return at.value;if(t instanceof An)return W.value;if(e instanceof An)return O.value;if(t instanceof Nn&&e instanceof Nn)return at.value;if(t instanceof Nn)return W.value;if(e instanceof Nn)return O.value;if(t instanceof Pn&&e instanceof Pn)return at.value;if(t instanceof Pn)return W.value;if(e instanceof Pn)return O.value;if(t instanceof On&&e instanceof On)return at.value;if(t instanceof On)return W.value;if(e instanceof On)return O.value;if(t instanceof Un&&e instanceof Un)return at.value;if(t instanceof Un)return W.value;if(e instanceof Un)return O.value;if(t instanceof Wn&&e instanceof Wn)return at.value;if(t instanceof Wn)return W.value;if(e instanceof Wn)return O.value;if(t instanceof Hn&&e instanceof Hn)return at.value;if(t instanceof Hn)return W.value;if(e instanceof Hn)return O.value;if(t instanceof rr&&e instanceof rr)return at.value;throw new Error("Failed pattern match at Data.Date.Component (line 0, column 0 - line 0, column 0): "+[t.constructor.name,e.constructor.name])}},Eq0:function(){return xm}},lR=Rn,cR=function(){return{bottom:-271820|0,top:275759,Ord0:function(){return ds}}}();var fR=function(){return{bottom:bn.value,top:rr.value,Ord0:function(){return vs}}}(),ar={cardinality:547580,toEnum:function(t){if(t>=(-271820|0)&&t<=275759)return new h(t);if(X)return g.value;throw new Error("Failed pattern match at Data.Date.Component (line 35, column 1 - line 40, column 24): "+[t.constructor.name])},fromEnum:function(t){return t},Bounded0:function(){return cR},Enum1:function(){return Lj(0)}},Lj=Mm("enumYear","Data.Date.Component",function(){return{succ:function(){var t=Tt(ar),e=It(ar);return function(n){return t(function(r){return r+1|0}(e(n)))}}(),pred:function(){var t=Tt(ar),e=It(ar);return function(n){return t(function(r){return r-1|0}(e(n)))}}(),Ord0:function(){return ds}}});var vn={cardinality:12,toEnum:function(t){return t===1?new h(bn.value):t===2?new h(In.value):t===3?new h(Ln.value):t===4?new h(jn.value):t===5?new h(An.value):t===6?new h(Nn.value):t===7?new h(Pn.value):t===8?new h(On.value):t===9?new h(Un.value):t===10?new h(Wn.value):t===11?new h(Hn.value):t===12?new h(rr.value):g.value},fromEnum:function(t){if(t instanceof bn)return 1;if(t instanceof In)return 2;if(t instanceof Ln)return 3;if(t instanceof jn)return 4;if(t instanceof An)return 5;if(t instanceof Nn)return 6;if(t instanceof Pn)return 7;if(t instanceof On)return 8;if(t instanceof Un)return 9;if(t instanceof Wn)return 10;if(t instanceof Hn)return 11;if(t instanceof rr)return 12;throw new Error("Failed pattern match at Data.Date.Component (line 87, column 14 - line 99, column 19): "+[t.constructor.name])},Bounded0:function(){return fR},Enum1:function(){return jj(0)}},jj=Mm("enumMonth","Data.Date.Component",function(){return{succ:function(){var t=Tt(vn),e=It(vn);return function(n){return t(function(r){return r+1|0}(e(n)))}}(),pred:function(){var t=Tt(vn),e=It(vn);return function(n){return t(function(r){return r-1|0}(e(n)))}}(),Ord0:function(){return vs}}});var Sm={bottom:1,top:31,Ord0:function(){return ps}},yr={cardinality:31,toEnum:function(t){if(t>=1&&t<=31)return new h(t);if(X)return g.value;throw new Error("Failed pattern match at Data.Date.Component (line 133, column 1 - line 138, column 23): "+[t.constructor.name])},fromEnum:function(t){return t},Bounded0:function(){return Sm},Enum1:function(){return Aj(0)}},Aj=Mm("enumDay","Data.Date.Component",function(){return{succ:function(){var t=Tt(yr),e=It(yr);return function(n){return t(function(r){return r+1|0}(e(n)))}}(),pred:function(){var t=Tt(yr),e=It(yr);return function(n){return t(function(r){return r-1|0}(e(n)))}}(),Ord0:function(){return ps}}});var Oj=It(vn),Uj=oe();var Wj=q(iR),Hj=q(xm),$j=q(lR),qj=B(ds),kj=B(vs),Bj=B(ps);var Gj=Tt(vn);var Jj=function(){function t(e,n,r){this.value0=e,this.value1=n,this.value2=r}return t.create=function(e){return function(n){return function(r){return new t(e,n,r)}}},t}();var Im={eq:function(t){return function(e){return Wj(t.value0)(e.value0)&&Hj(t.value1)(e.value1)&&$j(t.value2)(e.value2)}}};var gR={compare:function(t){return function(e){var n=qj(t.value0)(e.value0);if(n instanceof W)return W.value;if(n instanceof O)return O.value;var r=kj(t.value1)(e.value1);return r instanceof W?W.value:r instanceof O?O.value:Bj(t.value2)(e.value2)}},Eq0:function(){return Im}};var Ju=function(t){return function(e){return function(n){var r=function(a){return function(l){return function(f){return new Jj(a,Uj(Gj(l)),f)}}};return uR(r,t,Oj(e),n)}}};var _s=function(t,e,n){var r=0,a;return function(l){if(r===2)return a;if(r===1)throw new ReferenceError(t+" was needed before it finished initializing (module "+e+", line "+l+")",e,l);return r=1,a=n(),r=2,a}};var hs=kt,gs=kt,Ds=kt,ys=kt,DR=Rn,yR=Rn,bR=Rn,CR=Rn,Lm={bottom:0,top:59,Ord0:function(){return hs}},jm={bottom:0,top:59,Ord0:function(){return gs}},Am={bottom:0,top:999,Ord0:function(){return Ds}},Nm={bottom:0,top:23,Ord0:function(){return ys}},kr={cardinality:60,toEnum:function(t){if(t>=0&&t<=59)return new h(t);if(X)return g.value;throw new Error("Failed pattern match at Data.Time.Component (line 90, column 1 - line 95, column 26): "+[t.constructor.name])},fromEnum:function(t){return t},Bounded0:function(){return Lm},Enum1:function(){return zj(0)}},zj=_s("enumSecond","Data.Time.Component",function(){return{succ:function(){var t=Tt(kr),e=It(kr);return function(n){return t(function(r){return r+1|0}(e(n)))}}(),pred:function(){var t=Tt(kr),e=It(kr);return function(n){return t(function(r){return r-1|0}(e(n)))}}(),Ord0:function(){return hs}}});var Br={cardinality:60,toEnum:function(t){if(t>=0&&t<=59)return new h(t);if(X)return g.value;throw new Error("Failed pattern match at Data.Time.Component (line 61, column 1 - line 66, column 26): "+[t.constructor.name])},fromEnum:function(t){return t},Bounded0:function(){return jm},Enum1:function(){return Vj(0)}},Vj=_s("enumMinute","Data.Time.Component",function(){return{succ:function(){var t=Tt(Br),e=It(Br);return function(n){return t(function(r){return r+1|0}(e(n)))}}(),pred:function(){var t=Tt(Br),e=It(Br);return function(n){return t(function(r){return r-1|0}(e(n)))}}(),Ord0:function(){return gs}}});var Gr={cardinality:1e3,toEnum:function(t){if(t>=0&&t<=999)return new h(t);if(X)return g.value;throw new Error("Failed pattern match at Data.Time.Component (line 120, column 1 - line 125, column 31): "+[t.constructor.name])},fromEnum:function(t){return t},Bounded0:function(){return Am},Enum1:function(){return Qj(0)}},Qj=_s("enumMillisecond","Data.Time.Component",function(){return{succ:function(){var t=Tt(Gr),e=It(Gr);return function(n){return t(function(r){return r+1|0}(e(n)))}}(),pred:function(){var t=Tt(Gr),e=It(Gr);return function(n){return t(function(r){return r-1|0}(e(n)))}}(),Ord0:function(){return Ds}}});var Jr={cardinality:24,toEnum:function(t){if(t>=0&&t<=23)return new h(t);if(X)return g.value;throw new Error("Failed pattern match at Data.Time.Component (line 32, column 1 - line 37, column 24): "+[t.constructor.name])},fromEnum:function(t){return t},Bounded0:function(){return Nm},Enum1:function(){return Kj(0)}},Kj=_s("enumHour","Data.Time.Component",function(){return{succ:function(){var t=Tt(Jr),e=It(Jr);return function(n){return t(function(r){return r+1|0}(e(n)))}}(),pred:function(){var t=Tt(Jr),e=It(Jr);return function(n){return t(function(r){return r-1|0}(e(n)))}}(),Ord0:function(){return ys}}});var eA=q(CR),nA=q(yR),rA=q(DR),aA=q(bR),oA=B(ys),uA=B(gs),iA=B(hs),lA=B(Ds);var zu=function(){function t(e,n,r,a){this.value0=e,this.value1=n,this.value2=r,this.value3=a}return t.create=function(e){return function(n){return function(r){return function(a){return new t(e,n,r,a)}}}},t}();var Pm={eq:function(t){return function(e){return eA(t.value0)(e.value0)&&nA(t.value1)(e.value1)&&rA(t.value2)(e.value2)&&aA(t.value3)(e.value3)}}},TR={compare:function(t){return function(e){var n=oA(t.value0)(e.value0);if(n instanceof W)return W.value;if(n instanceof O)return O.value;var r=uA(t.value1)(e.value1);if(r instanceof W)return W.value;if(r instanceof O)return O.value;var a=iA(t.value2)(e.value2);return a instanceof W?W.value:a instanceof O?O.value:lA(t.value3)(e.value3)}},Eq0:function(){return Pm}};var sA=q(Im),dA=q(Pm),pA=B(gR),vA=B(TR);var qo=function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t}();var ER={eq:function(t){return function(e){return sA(t.value0)(e.value0)&&dA(t.value1)(e.value1)}}},FR={compare:function(t){return function(e){var n=pA(t.value0)(e.value0);return n instanceof W?W.value:n instanceof O?O.value:vA(t.value1)(e.value1)}},Eq0:function(){return ER}};var Es=function(t){return function(){console.error(t)}};var GR=function(t){var e=gt(t);return function(n){return e(Es(n))}};var mN=T(ye),JR=S(wn),_N=y(mt),hN=GR(pu),km=function(t){var e=function(r){var a=t(r);return xp(a.view(a.init.value0)(J(mN(F))))},n=function(r){return function(a){return function(l){return function(){var d=JR(JR(Uo)(function(){var m=_N(lm);return function(v){return m(qu(v))}}()))(fm(a))();if(d instanceof g)return hN("Element #"+(a+" not found"))();if(d instanceof h){var p=nm(t(l))();return r(p)(d.value0)()}throw new Error("Failed pattern match at Elmish.Boot (line 117, column 11 - line 122, column 21): "+[d.constructor.name])}}}};return{mount:n(fD),renderToString:e,hydrate:n(sD)}};var KR=T(pn),RN=Io(sf),TN=S(Mr);var wN={init:KR(F),update:function(t){return function(e){return KR(F)}},view:function(t){return function(e){return gn}}},Bm=function(t){var e=Hr(t);return function(n){return km(RN({parse:function(r){return TN(e(r))(function(a){return st(new j("Component construction failed"))(L.create)(n.def(a))})},diagnosticName:"Props for "+n.diagnosticName,default:wN}))}};var YR=({just:t,nothing:e})=>n=>{try{let r=new Date(n);return isNaN(r.getTime())?e:t(r)}catch{return e}},Gm=t=>({year:t.getFullYear(),month:t.getMonth(),day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}),XR=()=>new Date,EN=(()=>{let t=new Date;return typeof window!="undefined"?()=>t:()=>{let e=new Date;return e-t>1e3&&(t=e),t}})();var FN=(()=>{let t=new Date().toString(),e=(t.match(/\(([\w\s]+)\)$/)||[])[1];return e?/\s/.test(e)?(e.match(/\b(\w)/g)||[]).join(""):e:(e=(t.match(/(\w{3,4})\s\d{4}$/)||[])[1],e||(e=(t.match(/(UTC[\+\-]\d+)/)||[])[1],e)||(e=(t.match(/(GMT[\+\-]\d+)/)||[])[1],e)?e:"")})();var uce=function(){function t(){this.head=null,this.last=null,this.size=0}function e(v,D){this.queue=v,this.value=D,this.next=null,this.prev=null}function n(v){this.draining=!1,this.error=null,this.value=v,this.takes=new t,this.reads=new t,this.puts=new t}var r={};function a(v){try{v()}catch(D){setTimeout(function(){throw D},0)}}function l(v,D){var C=new e(v,D);switch(v.size){case 0:v.head=C;break;case 1:C.prev=v.head,v.head.next=C,v.last=C;break;default:C.prev=v.last,v.last.next=C,v.last=C}return v.size++,C}function f(v){var D;switch(v.size){case 0:return null;case 1:D=v.head,v.head=null;break;case 2:D=v.last,v.head.next=null,v.last=null;break;default:D=v.last,v.last=D.prev,v.last.next=null}return D.prev=null,D.queue=null,v.size--,D.value}function d(v){var D;switch(v.size){case 0:return null;case 1:D=v.head,v.head=null;break;case 2:D=v.head,v.last.prev=null,v.head=v.last,v.last=null;break;default:D=v.head,v.head=D.next,v.head.prev=null}return D.next=null,D.queue=null,v.size--,D.value}function p(v){if(v.queue!==null){if(v.queue.last===v){f(v.queue);return}if(v.queue.head===v){d(v.queue);return}v.prev&&(v.prev.next=v.next),v.next&&(v.next.prev=v.prev),v.queue.size--,v.queue=null,v.value=null,v.next=null,v.prev=null}}function m(v,D){if(!D.draining){var C=D.puts,b=D.takes,R=D.reads,E,N,K,Y,Wt;for(D.draining=!0;;){if(E=null,N=null,K=null,Y=D.value,Wt=R.size,D.error!==null){for(Y=v.left(D.error);E=d(C);)a(E.cb(Y));for(;N=d(R);)a(N(Y));for(;K=d(b);)a(K(Y));break}if(Y===r&&(E=d(C))&&(D.value=Y=E.value),Y!==r){for(K=d(b);Wt--&&(N=d(R));)a(N(v.right(Y)));K!==null&&(D.value=r,a(K(v.right(Y))))}if(E!==null&&a(E.cb(v.right(void 0))),D.value===r&&C.size===0||D.value!==r&&b.size===0)break}D.draining=!1}}return n.EMPTY=r,n.putLast=l,n.takeLast=f,n.takeHead=d,n.deleteCell=p,n.drainVar=m,n}();var qN=T(ye),qa=S(Jt),kN=Tt(ar),BN=Tt(vn),GN=Tt(yr),JN=Tt(Jr),zN=Tt(Br),VN=Tt(kr),QN=Tt(Gr),KN=T(Le),YN=le(wn),XN=pt(Z);var nT=function(t){return qa(kN(t.year))(function(e){return qa(BN(t.month+1|0))(function(n){return qa(GN(t.day))(function(r){return qa(JN(t.hour))(function(a){return qa(zN(t.minute))(function(l){return qa(VN(t.second))(function(f){return qa(QN(t.millisecond))(function(d){return KN(new qo(Ju(e)(n)(r),new zu(a,l,f,d)))})})})})})})})},ZN=function(t){var e=Rh("Failed to obtain current time. This should never happen.");return st(e)(qN)(nT(Gm(t)))},Sl=YN(ZN)(XR);var Yu=function(t){return qa(XN(YR({just:h.create,nothing:g.value})(t))(Gm))(nT)};var Wde=new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:"short",maximumFractionDigits:2});var yT=function(){return ZC};function bT(t,e){typeof CV!="undefined"&&CV.tracking&&CV.tracking.event(t,e)}var cP=jp();var fP=function(t){var e=gt(t);return function(n){return function(r){return e(function(){return bT(n,r)})}}},CT=function(t){var e=fP(t);return function(){return function(n){return function(r){return e(n)(cP(r))}}}};To();var TT=Qs(RT()),zr=typeof CV!="undefined"&&CV.pusherConfig||typeof global!="undefined"&&global.CV&&global.CV.pusherConfig,{acquireConnection:sP,releaseConnection:dP}=(()=>{let t=null,e=0,n=()=>{if(!zr||!zr.key)return zr||console.error("Pusher config is missing in global context"),new pP;let r={auth:{headers:{"X-CSRF-Token":zr.authToken}},authEndpoint:zr.authPath,cluster:zr.cluster};return zr.dev&&Object.assign(r,{wsHost:zr.dev.wsHost,wsPort:zr.dev.wsPort,enabledTransports:["ws"],forceTLS:!1,disableStats:!0}),new TT.default(zr.key,r)};return{acquireConnection:()=>(t||(t=n(),e=0),e++,t),releaseConnection:()=>{--e<=0&&(t&&t.disconnect(),t=null)}}})(),wT=t=>{let e=sP().subscribe(t.channel);return e.bind(t.event,t.handler),()=>{e.unbind(t.event,t.handler),dP()}};function pP(){typeof document!="undefined"&&(document.mockPusher=this),this.localObject={},this.channels=[],this.disconnect=function(){document.mockPusher=null},this.subscribe=function(t){let e=this.channels.find(r=>r.name===t);if(e)return e;let n=new vP(t);return this.channels.push(n),n},this.channelNames=function(){return this.channels.map(t=>t.name)}}function vP(t){this.name=t,this.handlers={},this.triggered=[],this.disconnect=()=>{},this.bind=function(e,n){this.handlers[e]=n},this.unbind=function(e,n){this.handlers[e]===n&&(this.handlers[e]=null)},this.trigger=function(e,n){this.triggered.push({eventName:e,eventData:n})}}var mP=Mn(_t)(_n),_P=Vn(ye)(Fa);var hP={show:function(t){return t}},gP=M(hP);var Ym=te;var ET=function(t){var e=zp(t);return function(n){return function(r){return function(a){var l=mP(["Pusher event ",r," over channel ",gP(n)]),f=function(d){return _P(e(l)(d))(a)()};return function(){return wT({channel:n,event:r,handler:f})}}}}};var Xm=te;var Is=function(){function t(){}return t.value=new t,t}(),ko=function(){function t(){}return t.value=new t,t}(),FT={eq:function(t){return function(e){return t instanceof Is&&e instanceof Is||t instanceof ko&&e instanceof ko}}};var DP=kf(qf($f)),yP=S(Qe),bP=Wr(),CP=fl(bP(Ut({reflectSymbol:function(){return"failureReason"}})(te)(Ut({reflectSymbol:function(){return"success"}})(zi)(en))));var Zm=DP("vinai_send_chatbot_message_path")(function(t){return function(e){return yP(t({conversationId:e.conversationId,message:e.message,presetTopic:Bn(e.presetTopic)}))(Pu(CP("Vinai.API: sendChatbotMessage")))}});var RP=zt();var TP=function(t){return RP(_f(t))};var MT=function(t){return ge(TP(t))};var wP=ss(he),EP=Ho(ua),FP=S(wn),xT=gt(pu),ST=T(ye),MP=uu(ye)(Ir),xP=ET(Jp),SP=$(G),IP=Mn(_t)(id(od)),LP=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),Ls=function(){function t(){}return t.value=new t,t}(),js=function(){function t(){}return t.value=new t,t}();var t_={append:function(t){return function(e){return wP(e)(t)}}},jP={mempty:$o,Semigroup0:function(){return t_}},AP=Nr(gf(jP)(Be)),IT=function(t){return t.value0.disconnect},LT=function(t){return function(e){var n=MT(e),r=EP(n);return function(){var l=xT(uo(ST(F)))(),f=MP(r)(function(p){return xP(t)(p.value0)(function(m){return function(){var D=p.value1(m)();if(D instanceof Ls)return F;if(D instanceof js)return FP(wa(l))(SP)();throw new Error("Failed pattern match at Utils.Pusher.ListenMany (line 73, column 23 - line 75, column 66): "+[D.constructor.name])}})})(),d=IP(f);return xT(ea(d)(l))(),new LP({disconnect:d})}}},As=function(t){var e=Hr(t);return function(n){return function(r){return AP(Cl(n)(function(a){var l=e(a);if(l instanceof L)return r(l.value0);if(l instanceof j)return pa(Wa)("Error parsing Pusher event")({error:l.value0,event:n,value:a})(function(f){return ST(Ls.value)});throw new Error("Failed pattern match at Utils.Pusher.ListenMany (line 35, column 65 - line 37, column 122): "+[l.constructor.name])}))}}};var NP=function(){function t(){}return t.value=new t,t}(),PP=function(){function t(){}return t.value=new t,t}(),OP=function(){function t(){}return t.value=new t,t}();var e_=function(t){return t==="moderation_failure"?NP.value:t==="llm_failure"?PP.value:OP.value};var UP={reflectSymbol:function(){return"timestamp"}};var n_=se(de),Il=n_(ha),r_=S(Qe),Ll=gt(be),jT=n_(al(t_)(cd)),a_=Wr(),AT=Ut({reflectSymbol:function(){return"id"}})(te),WP=As(a_(Ut({reflectSymbol:function(){return"delta"}})(te)(AT(Ut(UP)(te)(en))))),HP=As(a_(Ut({reflectSymbol:function(){return"body"}})(te)(AT(en)))),$P=As(a_(Ut({reflectSymbol:function(){return"reason"}})(te)(en))),o_=n_(Qe),Ns=T(yn),u_=Hu(be),qP=bd(_n),kP=$e(xg)(_n),br=T(pn),NT=k(Ie),BP=$g(FR),GP=Vn(pn)(Fa),Bo=function(){function t(){}return t.value=new t,t}(),Xu=function(){function t(){}return t.value=new t,t}(),Zu=function(){function t(){}return t.value=new t,t}(),Vr=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),ti=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),i_=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),PT=function(){function t(){}return t.value=new t,t}(),l_=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),c_=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),OT=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),UT=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),WT=function(){function t(e,n){this.value0=e,this.value1=n}return t.create=function(e){return function(n){return new t(e,n)}},t}(),JP=function(){function t(){}return t.value=new t,t}();var zP=function(t){return{delta:t.delta,id:t.id,timestamp:Yu(t.timestamp)}},HT=function(t){return function(e){var n=function(r){return function(a){return{body:a.body,sender:ko.value,sentAt:r,id:new h(a.id)}}};return Il(Oo(function(r){return r_(Ll(LT(t.receiveChannelName)(jT(WP("chat-completion-chunk")(function(a){return function(){var f=Sl();return r.dispatch(new WT(f,zP(a)))(),Ls.value}}))(function(){return jT(HP("chat-completion-message-received")(function(a){return function(){var f=Sl();return r.dispatch(new c_(n(f)(a)))(),js.value}}))(function(){return $P("chat-completion-failed")(function(a){return function(){return r.dispatch(new l_(new h(e_(a.reason))))(),js.value}})})}))))(function(a){return o_(Ll(r.dispatch(new UT(a))))(function(){return r_(t.sendMessage(e))(function(l){return l.success?Ns(F):Ll(r.dispatch(new l_(new h(e_(l.failureReason)))))})})})}))(function(){return u_(o_(ma(200))(function(){return Ns(PT.value)}))})}},VP=function(t){return function(e){return Il(u_(r_(Ll(Sl))(function(n){return Ns(new OT({sender:Is.value,body:e,sentAt:n,id:g.value}))})))(function(){return HT(t)(e)})}},f_=function(t){var e=function(n){var r=ca("$$")(n),a=Jg(tn(r));return a?qP("$$")(yd(0)(tn(r)-1|0)(r)):n};return{sender:ko.value,body:e(kP(function(n){return n.content})(t.deltas)),sentAt:yc(t.deltas).timestamp,id:new h(t.id)}},QP=function(t){if(t.receivingResponse instanceof g)return br(F);if(t.receivingResponse instanceof h)return t.sendingState instanceof Vr?u_(o_(Ll(IT(t.receivingResponse.value0)))(function(){return Ns(new c_(f_(t.sendingState.value0)))})):br(F);throw new Error("Failed pattern match at Vinai.Chatbot (line 292, column 1 - line 292, column 51): "+[t.constructor.name])},$T=function(t){return function(e){if(e instanceof i_)return Il(VP(t)(e.value0))(function(){return br(t)});if(e instanceof PT)return br({messages:t.messages,receiveChannelName:t.receiveChannelName,receivingResponse:t.receivingResponse,sendMessage:t.sendMessage,sendingState:function(){if(t.sendingState instanceof Bo)return Bo.value;if(t.sendingState instanceof Xu||t.sendingState instanceof Zu)return Zu.value;if(t.sendingState instanceof Vr)return new Vr(t.sendingState.value0);if(t.sendingState instanceof ti)return new ti(t.sendingState.value0);throw new Error("Failed pattern match at Vinai.Chatbot (line 160, column 9 - line 165, column 59): "+[t.sendingState.constructor.name])}()});if(e instanceof l_)return br({messages:t.messages,receiveChannelName:t.receiveChannelName,sendMessage:t.sendMessage,sendingState:new ti(e.value0),receivingResponse:g.value});if(e instanceof c_)return br({receiveChannelName:t.receiveChannelName,sendMessage:t.sendMessage,messages:NT(t.messages)([e.value0]),sendingState:Bo.value,receivingResponse:g.value});if(e instanceof OT)return br({receiveChannelName:t.receiveChannelName,receivingResponse:t.receivingResponse,sendMessage:t.sendMessage,messages:NT(t.messages)([e.value0]),sendingState:Xu.value});if(e instanceof UT)return br({messages:t.messages,receiveChannelName:t.receiveChannelName,sendMessage:t.sendMessage,sendingState:t.sendingState,receivingResponse:new h(e.value0)});if(e instanceof WT)return br({messages:t.messages,receiveChannelName:t.receiveChannelName,receivingResponse:t.receivingResponse,sendMessage:t.sendMessage,sendingState:function(){if(t.sendingState instanceof Vr&&e.value1.id===t.sendingState.value0.id)return new Vr({id:t.sendingState.value0.id,deltas:BP(function(n){return n.timestamp})(Hg(t.sendingState.value0.deltas)({content:e.value1.delta,timestamp:ct(e.value0)(e.value1.timestamp)}))});if(t.sendingState instanceof Vr)return t.sendingState;if(t.sendingState instanceof Zu)return new Vr({deltas:Jd({content:e.value1.delta,timestamp:ct(e.value0)(e.value1.timestamp)}),id:e.value1.id});if(t.sendingState instanceof Xu)return new Vr({deltas:Jd({content:e.value1.delta,timestamp:ct(e.value0)(e.value1.timestamp)}),id:e.value1.id});if(t.sendingState instanceof Bo||t.sendingState instanceof ti)return t.sendingState;throw new Error("Failed pattern match at Vinai.Chatbot (line 180, column 22 - line 202, column 29): "+[t.sendingState.constructor.name])}()});if(e instanceof JP)return Il(QP(t))(function(){return br(t)});throw new Error("Failed pattern match at Vinai.Chatbot (line 153, column 1 - line 153, column 55): "+[t.constructor.name,e.constructor.name])}},qT=function(t){var e={messages:t.messages,receivingResponse:g.value,receiveChannelName:t.receiveChannelName,sendingState:function(){if(t.initialMessageBody instanceof g)return Bo.value;if(t.initialMessageBody instanceof h)return Xu.value;throw new Error("Failed pattern match at Vinai.Chatbot (line 147, column 23 - line 149, column 28): "+[t.initialMessageBody.constructor.name])}(),sendMessage:t.sendMessage};return Il(GP(t.initialMessageBody)(HT(e)))(function(){return br(e)})};var kT=ce(Ot),Cr=ce(ve),BT=Wo(Zt)()(),s_=_l(Yv),GT=Zc(Ot),KP=pt(Z),YP=q(FT),ka=ce(Zt),XP=Yc()(),JT=_l(yb),ZP=Jc()(),tO=Yn(Ot),eO=Wo(Ot)()(),nO=q(Vo()(Xa(Xa(zo)()({reflectSymbol:function(){return"subject"}})(Oe))()({reflectSymbol:function(){return"body"}})(Oe))),Ps=S(Jt),rO=y(Z),zT=Vn(pn)(Fa),VT=CT(be)(),QT=se(de),ga=QT(ha),KT=or(ln),jl=Hu(be),d_=T(yn),rn=T(pn),aO=ql(td),oO=pt(va),uO=Ta(ul),iO=yT(),YT=$b(va),lO=En(YT),cO=gt(be),fO=QT(Qe),sO=y(va),p_=S(ha),XT=ho()(),dO=Fn(YT),v_=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),Os=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),ZT=function(){function t(){}return t.value=new t,t}(),tw=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),ew=function(){function t(){}return t.value=new t,t}(),nw=function(){function t(){}return t.value=new t,t}(),rw=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),aw=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),m_=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),__=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),pO=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),ow=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),uw=function(){function t(e){this.value0=e}return t.create=function(e){return new t(e)},t}(),iw=function(t){return function(e){var n=function(){if(t.sharing.url instanceof $r)return kT("text-primary text-center mx-4")("Link copied!");if(t.sharing.url instanceof tr)return Cr("text-center")(No({extraClass:g.value}));if(t.sharing.url instanceof Sn)return BT("btn btn-dark text-nowrap w-100 d-flex align-items-center justify-content-center")(qr)({disabled:!t.sharing.isAllowed,onClick:s_(e)(nw.value)})([GT("fe fe-link-2 mr-2")(""),me("Share report")]);throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.EmailContentOptimizer (line 177, column 25 - line 187, column 10): "+[t.sharing.url.constructor.name])}(),r=KP(sc(cu(function(){var p=YP(ko.value);return function(m){return p(function(v){return v.sender}(m))}}())(t.suggestionBot.messages)))(function(p){return p.body}),a=$v(t.email),l=ka("t--eco-subject")([me("Subject line"),XP("form-control mt-2")({type:"text",placeholder:"Subject",autoFocus:!0,value:a.subject,onChange:JT(e)(function(p){return m_.create(XC(p))})})]),f=ka("t--eco-body")([me("Body"),ZP("form-control mt-2")({placeholder:"Type or paste body of email",value:a.body,onChange:JT(e)(function(p){return __.create(YC(p))}),rows:15})]),d=ka("mt-2 mt-md-0 d-flex flex-row align-items-center")([Cr("mr-1 w-100")(n),Cr("ml-1 w-100")(BT("btn btn-outline-dark d-flex align-items-center justify-content-center text-nowrap w-100")(qr)({onClick:s_(e)(new ow(Yp.value))})([GT("fe fe-info mr-2")(""),me("Report methodology")]))]);return Ve([ka("row align-items-center")([Cr("col-12 col-md-7")(tO("mb-0")("Email content")),Cr("col d-none d-md-block")(d)]),ka("row mt-4")([ka("col-12 col-md-7")([l,Cr("mt-4")(f),eO("btn btn-dark mt-4")(qr)({onClick:s_(e)(new v_(a)),disabled:nO(a)(Bf)})("Analyze email"),Dr(Bl(t.scores))(kT("text-danger mt-2")),Cr("d-none d-md-block mt-5")(gm(Ps(Zr(t.scores))(qv)))]),ka("col")([Cr("mt-4 mt-md-2")(BC({scores:kl(Sn.value)(t.scores)})),Ru("hr"),Cr("mt-4")(ky({scores:kl(Sn.value)(t.scores)})),Ru("hr"),Cr("mt-4")(function(){if(t.suggestionBot.sendingState instanceof Zu)return Gu(g.value);if(t.suggestionBot.sendingState instanceof Vr){var p=f_(t.suggestionBot.sendingState.value0);return Gu(new h(new is(p.body)))}if(t.suggestionBot.sendingState instanceof Xu)return Gu(g.value);if(t.suggestionBot.sendingState instanceof Bo)return Gu(rO(is.create)(r));if(t.suggestionBot.sendingState instanceof ti)return Gu(new h(Dm.value));throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.EmailContentOptimizer (line 126, column 22 - line 137, column 54): "+[t.suggestionBot.sendingState.constructor.name])}()),ka("mt-4 d-md-none")([Ru(""),d]),Cr("d-md-none mt-4")(gm(Ps(Zr(t.scores))(qv)))])]),Dr(t.modal)(function(p){if(p instanceof Yp)return OC({onDismiss:e(ew.value)});if(p instanceof Xp)return UC({onSubmit:function(m){return e(uw.create(m))}});throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.EmailContentOptimizer (line 146, column 27 - line 148, column 91): "+[p.constructor.name])})])}},lw=function(t){var e=zT(t.registration)(function(n){return er(VT("Email Content Optimizer: User registered")({email:n.email,name:n.name,school_name:ct("")(n.schoolName),title:ct("")(n.title)}))});return ga(zT(KT(t.registration)(t.email))(function(n){return jl(d_(v_.create(n)))}))(function(){return ga(e)(function(){return rn({registration:t.registration,modal:KT(aO(ur(t.registration)))(new h(Xp.value)),email:function(){var n=ir(t.registration);return n?new Ha(ct(Bf)(t.email)):vf.value}()})})})},cw=function(t){return function(e){var n=function(a){return er(VT("Email Content Optimizer: Email submitted")({email_subject:a.subject,email_body:a.body,registration_email:st("")(function(l){return l.email})(e.registration),name:st("")(function(l){return l.name})(e.registration),school_name:ct("")(Ps(e.registration)(function(l){return l.schoolName})),title:ct("")(Ps(e.registration)(function(l){return l.title}))}))},r=GC(t);return function(a){if(a instanceof v_)return ga(jl(oO(uO(Ny(a.value0)))(ue(aw.create)(rw.create))))(function(){return ga(jl(d_(new Os(new i_(iO({email:a.value0}))))))(function(){return ga(n(a.value0))(function(){return rn({email:e.email,modal:e.modal,registration:e.registration,selectedPersona:e.selectedPersona,suggestionBot:e.suggestionBot,sharing:{url:e.sharing.url,isAllowed:!0},scores:new L(new tr(g.value))})})})});if(a instanceof Os)return lO(Os.create)(function(f){return{email:e.email,modal:e.modal,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:f}})($T(e.suggestionBot)(a.value0));if(a instanceof ZT)return rn({email:e.email,modal:e.modal,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,suggestionBot:e.suggestionBot,sharing:{isAllowed:e.sharing.isAllowed,url:Sn.value}});if(a instanceof tw)return ga(er(cO(ls(r(a.value0)))))(function(){return ga(jl(fO(ma(3e3))(function(){return d_(ZT.value)})))(function(){return rn({email:e.email,modal:e.modal,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,suggestionBot:e.suggestionBot,sharing:{isAllowed:e.sharing.isAllowed,url:new $r(r(a.value0))}})})});if(a instanceof nw)return ga(jl(sO(tw.create)(jy($v(e.email)))))(function(){return rn({email:e.email,modal:e.modal,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,suggestionBot:e.suggestionBot,sharing:{isAllowed:e.sharing.isAllowed,url:Hy(e.sharing.url)}})});if(a instanceof ew)return rn({email:e.email,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:e.suggestionBot,modal:g.value});if(a instanceof aw)return pa(Wa)("Email Content Optimizer: "+Ra(a.value0))({})(function(f){return rn({email:e.email,modal:e.modal,registration:e.registration,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:e.suggestionBot,scores:new j("Something went wrong loading scores. Please refresh the page, and contact support if the problem continues")})});var l=function(f){if(a instanceof m_&&X)return rn(e);var d=function(p){if(a instanceof __&&X)return rn(e);if(a instanceof pO)return rn({email:e.email,modal:e.modal,registration:e.registration,scores:e.scores,sharing:e.sharing,suggestionBot:e.suggestionBot,selectedPersona:a.value0});if(a instanceof ow)return rn({email:e.email,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:e.suggestionBot,modal:new h(a.value0)});if(a instanceof rw)return rn({email:e.email,modal:e.modal,registration:e.registration,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:e.suggestionBot,scores:new L(new $r(a.value0))});if(a instanceof uw)return ga(er(Ay(a.value0)))(function(){return p_(lw({conversationId:t.conversationId,ecoBaseUrl:t.ecoBaseUrl,email:t.email,receiveChannelName:t.receiveChannelName,registration:new h(a.value0)}))(function(m){return rn(XT(m)(e))})});throw new Error("Failed pattern match at DataLab.EmailContentOptimizer.EmailContentOptimizer (line 203, column 1 - line 203, column 64): "+[a.constructor.name])};return a instanceof __&&e.email instanceof Ha?rn({modal:e.modal,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:e.suggestionBot,email:new Ha({subject:e.email.value0.subject,body:a.value0})}):d(!0)};return a instanceof m_&&e.email instanceof Ha?rn({modal:e.modal,registration:e.registration,scores:e.scores,selectedPersona:e.selectedPersona,sharing:e.sharing,suggestionBot:e.suggestionBot,email:new Ha({body:e.email.value0.body,subject:a.value0})}):l(!0)}}},fw=function(t){var e={initialMessageBody:g.value,messages:[],receiveChannelName:t.receiveChannelName,sendMessage:function(n){return Zm({conversationId:t.conversationId,message:n,presetTopic:g.value})}};return p_(dO(Os.create)(qT(e)))(function(n){return p_(lw(t))(function(r){return rn(XT({scores:new L(Sn.value),suggestionBot:n,selectedPersona:g.value,sharing:{isAllowed:!1,url:Sn.value}})(r))})})};var vO=y(Z),h_=Wr(),sw=Ut({reflectSymbol:function(){return"email"}}),dw=Ua(te),mO=function(){var t=function(n){return{conversationId:n.conversationId,ecoBaseUrl:n.ecoBaseUrl,receiveChannelName:n.receiveChannelName,email:yt(n.email),registration:vO(mf)(yt(n.registration))}},e=function(n){return{init:fw(n),view:iw,update:cw(n)}};return Bm(h_(Ut({reflectSymbol:function(){return"conversationId"}})(Xm)(Ut({reflectSymbol:function(){return"ecoBaseUrl"}})(te)(sw(Ua(h_(Ut({reflectSymbol:function(){return"body"}})(te)(Ut({reflectSymbol:function(){return"subject"}})(te)(en)))))(Ut({reflectSymbol:function(){return"receiveChannelName"}})(Ym)(Ut({reflectSymbol:function(){return"registration"}})(Ua(h_(sw(te)(Ut({reflectSymbol:function(){return"free_form_school_name"}})(dw)(Ut({reflectSymbol:function(){return"name"}})(te)(Ut({reflectSymbol:function(){return"title"}})(dw)(en)))))))(en)))))))({def:function(n){return h.create(e(t(n)))},diagnosticName:"EntryPoints.DataLab.EmailContentOptimizer"})}();return _O;})(); /* object-assign (c) Sindre Sorhus @license MIT */ /*! * Pusher JavaScript Library v6.0.3 * https://pusher.com/ * * Copyright 2020, Pusher * Released under the MIT licence. */ /*! * focus-trap 6.9.4 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE */ /*! * tabbable 5.3.3 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */ /** @license React v17.0.2 * react-dom-server.browser.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** @license React v17.0.2 * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */