(()=>{var t={69089:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var s=0;s0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},9248:t=>{"use strict";t.exports=function(t){return t[1]}},56654:function(t,e,n){"use strict";var r=n(49091);!function(t){function e(){}function n(){}var r=String.fromCharCode,i={}.toString,o=i.call(t.SharedArrayBuffer),a=i(),s=t.Uint8Array,u=s||Array,c=s?ArrayBuffer:u,l=c.isView||function(t){return t&&"length"in t},d=i.call(c.prototype);c=n.prototype;var f=t.TextEncoder,h=new(s?Uint16Array:u)(32);e.prototype.decode=function(t){if(!l(t)){var e=i.call(t);if(e!==d&&e!==o&&e!==a)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'");t=s?new u(t):t||[]}for(var n,c,f,p=e="",v=0,m=0|t.length,_=m-32|0,g=0,y=0,b=0,w=-1;v>4){case 15:if(2!=(f=255&t[v=v+1|0])>>6||247>6?y+4|0:24,c=c+256&768;case 13:case 12:g<<=6,g|=(31&c)<<6|63&(f=255&t[v=v+1|0]),y=y+7|0,v>6&&g>>y&&1114112>g?(c=g,0<=(g=g-65536|0)&&(w=55296+(g>>10)|0,c=56320+(1023&g)|0,31>b?(h[b]=w,b=b+1|0,w=-1):(f=w,w=c,c=f))):(v=v-(c>>=8)-1|0,c=65533),g=y=0,n=v<=_?32:m-v|0;default:h[b]=c;continue;case 11:case 10:case 9:case 8:}h[b]=65533}if(p+=r(h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],h[9],h[10],h[11],h[12],h[13],h[14],h[15],h[16],h[17],h[18],h[19],h[20],h[21],h[22],h[23],h[24],h[25],h[26],h[27],h[28],h[29],h[30],h[31]),32>b&&(p=p.slice(0,b-32|0)),v>>31,w=-1,p.length=a)r[i]=a;else{if(2047>=a)r[i]=192|a>>6;else{t:{if(55296<=a)if(56319>=a){var c=0|t.charCodeAt(e=e+1|0);if(56320<=c&&57343>=c){if(65535<(a=(a<<10)+c-56613888|0)){r[i]=240|a>>18,r[i=i+1|0]=128|a>>12&63,r[i=i+1|0]=128|a>>6&63,r[i=i+1|0]=128|63&a;continue}break t}a=65533}else 57343>=a&&(a=65533);!o&&e<<1>12,r[i=i+1|0]=128|a>>6&63}r[i=i+1|0]=128|63&a}}return s?r.subarray(0,i):r.slice(0,i)},f||(t.TextDecoder=e,t.TextEncoder=n)}(""+void 0==(void 0===n.g?"undefined":r(n.g))?""+void 0==("undefined"==typeof self?"undefined":r(self))?this:self:n.g)},25330:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>Ln});var r=n(60901);function i(t){var e=arguments.length,n=void 0,r=void 0;for(n=1;n"],s="end",u="value",c="error",l="any";function d(t,e){var n=void 0,r=void 0,i=void 0,o=void 0;if(0===t.length)return e;if(0===e.length)return t;for(o=0,n=new Array(t.length+e.length),r=t.length,i=0;i=0&&e0&&void 0!==arguments[0]?arguments[0]:this.toString(),e=void 0,n=function(n){var r="<"+n.type+(e?":current":"")+">";n.type===s?console.log(t,r):console.log(t,r,n.value)};return this._alive&&(this._logHandlers||(this._logHandlers=[]),this._logHandlers.push({name:t,handler:n})),e=!0,this.onAny(n),e=!1,this},offLog:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString();if(this._logHandlers){var e=h(this._logHandlers,(function(e){return e.name===t}));-1!==e&&(this.offAny(this._logHandlers[e].handler),this._logHandlers.splice(e,1))}return this},spy:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString(),e=function(e){var n="<"+e.type+">";e.type===s?console.log(t,n):console.log(t,n,e.value)};return this._alive&&(this._spyHandlers||(this._spyHandlers=[]),this._spyHandlers.push({name:t,handler:e}),this._dispatcher.addSpy(e)),this},offSpy:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString();if(this._spyHandlers){var e=h(this._spyHandlers,(function(e){return e.name===t}));-1!==e&&(this._dispatcher.removeSpy(this._spyHandlers[e].handler),this._spyHandlers.splice(e,1))}return this}}),y.prototype.toString=function(){return"["+this._name+"]"},o(b,y,{_name:"stream",getType:function(){return"stream"}}),o(w,y,{_name:"property",_emitValue:function(t){this._alive&&(this._currentEvent={type:u,value:t},this._activating||this._dispatcher.dispatch({type:u,value:t}))},_emitError:function(t){this._alive&&(this._currentEvent={type:c,value:t},this._activating||this._dispatcher.dispatch({type:c,value:t}))},_emitEnd:function(){this._alive&&(this._alive=!1,this._activating||this._dispatcher.dispatch({type:s}),this._clear())},_on:function(t,e){return this._alive&&(this._dispatcher.add(t,e),this._setActive(!0)),null!==this._currentEvent&&_(t,e,this._currentEvent),this._alive||_(t,e,{type:s}),this},getType:function(){return"property"}});var S=new b;function E(){return S}function O(t){function e(t,e){var n=this;b.call(this),this._wait=t,this._intervalId=null,this._$onTick=function(){return n._onTick()},this._init(e)}return o(e,b,{_init:function(){},_free:function(){},_onTick:function(){},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null)},_clear:function(){b.prototype._clear.call(this),this._$onTick=null,this._free()}},t),e}S._emitEnd(),S._name="never";var k=O({_name:"later",_init:function(t){var e=t.x;this._x=e},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x),this._emitEnd()}});var A=O({_name:"interval",_init:function(t){var e=t.x;this._x=e},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x)}});var T=O({_name:"sequentially",_init:function(t){var e=t.xs;this._xs=p(e)},_free:function(){this._xs=null},_onTick:function(){1===this._xs.length?(this._emitValue(this._xs[0]),this._emitEnd()):this._emitValue(this._xs.shift())}});var x=O({_name:"fromPoll",_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_onTick:function(){var t=this._fn;this._emitValue(t())}});function C(t){function e(e){return t._emitValue(e),t._active}function n(e){return t._emit(e.type,e.value),t._active}return{value:e,error:function(e){return t._emitError(e),t._active},end:function(){return t._emitEnd(),t._active},event:n,emit:e,emitEvent:n}}var I=O({_name:"withInterval",_init:function(t){var e=t.fn;this._fn=e,this._emitter=C(this)},_free:function(){this._fn=null,this._emitter=null},_onTick:function(){(0,this._fn)(this._emitter)}});function P(t){b.call(this),this._fn=t,this._unsubscribe=null}function R(t){return new P(t)}function N(t,e){switch(e){case 0:return function(){return t()};case 1:return function(e){return t(e[0])};case 2:return function(e){return t(e[0],e[1])};case 3:return function(e){return t(e[0],e[1],e[2])};case 4:return function(e){return t(e[0],e[1],e[2],e[3])};default:return function(e){return t.apply(null,e)}}}o(P,b,{_name:"stream",_onActivation:function(){var t=(0,this._fn)(C(this));this._unsubscribe="function"==typeof t?t:null,this._active||this._callUnsubscribe()},_callUnsubscribe:function(){null!==this._unsubscribe&&(this._unsubscribe(),this._unsubscribe=null)},_onDeactivation:function(){this._callUnsubscribe()},_clear:function(){b.prototype._clear.call(this),this._fn=null}});var L=[["addEventListener","removeEventListener"],["addListener","removeListener"],["on","off"]];function M(t){this._currentEvent={type:"value",value:t,current:!0}}function D(t){return new M(t)}function j(t){this._currentEvent={type:"error",value:t,current:!0}}function U(t,e){return function(n,r){var i=this;t.call(this),this._source=n,this._name=n._name+"."+e,this._init(r),this._$handleAny=function(t){return i._handleAny(t)}}}function F(t){return{_init:function(){},_free:function(){},_handleValue:function(t){this._emitValue(t)},_handleError:function(t){this._emitError(t)},_handleEnd:function(){this._emitEnd()},_handleAny:function(t){switch(t.type){case u:return this._handleValue(t.value);case c:return this._handleError(t.value);case s:return this._handleEnd()}},_onActivation:function(){this._source.onAny(this._$handleAny)},_onDeactivation:function(){this._source.offAny(this._$handleAny)},_clear:function(){t.prototype._clear.call(this),this._source=null,this._$handleAny=null,this._free()}}}function B(t,e){var n=U(b,t);return o(n,b,F(b),e),n}function V(t,e){var n=U(w,t);return o(n,w,F(w),e),n}o(M,w,{_name:"constant",_active:!1,_activating:!1,_alive:!1,_dispatcher:null,_logHandlers:null}),o(j,w,{_name:"constantError",_active:!1,_activating:!1,_alive:!1,_dispatcher:null,_logHandlers:null});var z=V("toProperty",{_init:function(t){var e=t.fn;this._getInitialCurrent=e},_onActivation:function(){if(null!==this._getInitialCurrent){var t=this._getInitialCurrent;this._emitValue(t())}this._source.onAny(this._$handleAny)}});function q(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==e&&"function"!=typeof e)throw new Error("You should call toProperty() with a function or no arguments.");return new z(t,{fn:e})}var H=B("changes",{_handleValue:function(t){this._activating||this._emitValue(t)},_handleError:function(t){this._activating||this._emitError(t)}});function G(){if("function"==typeof Promise)return Promise;throw new Error("There isn't default Promise, use shim or parameter")}var Y=function(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:t),K=Y.default?Y.default:Y;function W(t){this._observable=t.takeErrors(1)}function $(){return new W(this)}function Z(t,e,n){for(var r in t)t.hasOwnProperty(r)&&(e.push(r),n.push(t[r]))}function J(t,e,n){var r=this;b.call(this),this._activeCount=t.length,this._sources=d(t,e),this._combinator=n,this._aliveCount=0,this._latestValues=new Array(this._sources.length),this._latestErrors=new Array(this._sources.length),function(t,e){var n=t.length,r=void 0;for(r=0;r1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2];if(!Array.isArray(e))throw new Error("Combine can only combine active and passive collections of the same type.");return n=n?N(n,t.length+e.length):function(t){return t},0===t.length?E():new J(t,e,n)}(t,e,n):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];if("object"!==(0,r.A)(e)||Array.isArray(e))throw new Error("Combine can only combine active and passive collections of the same type.");var i=[],o=[],a=[];return Z(t,i,o),Z(e,i,a),0===o.length?E():new J(o,a,(function(t){for(var e={},r=t.length-1;0<=r;r--)e[i[r]]=t[r];return n?n(e):e}))}(t,e,n)}i(W.prototype,{subscribe:function(t,e,n){var r=this,i="function"==typeof t?{next:t,error:e,complete:n}:t,o=function(t){t.type===s&&(a=!0),t.type===u&&i.next?i.next(t.value):t.type===c&&i.error?i.error(t.value):t.type===s&&i.complete&&i.complete(t.value)};this._observable.onAny(o);var a=!1;return{unsubscribe:function(){a=!0,r._observable.offAny(o)},get closed(){return a}}}}),W.prototype[K]=function(){return this},o(J,b,{_name:"combine",_onActivation:function(){this._aliveCount=this._activeCount;for(var t=this._activeCount;t1&&void 0!==arguments[1]?arguments[1]:it;return new(t._ofSameType(nt,rt))(t,{fn:e})}var at={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){(0,this._fn)(t)&&this._emitValue(t)}},st=B("filter",at),ut=V("filter",at),ct=function(t){return t};var lt={_init:function(t){var e=t.n;this._n=e,e<=0&&this._emitEnd()},_handleValue:function(t){0!==this._n&&(this._n--,this._emitValue(t),0===this._n&&this._emitEnd())}},dt=B("take",lt),ft=V("take",lt);var ht={_init:function(t){var e=t.n;this._n=e,e<=0&&this._emitEnd()},_handleError:function(t){0!==this._n&&(this._n--,this._emitError(t),0===this._n&&this._emitEnd())}},pt=B("takeErrors",ht),vt=V("takeErrors",ht);var mt={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){(0,this._fn)(t)?this._emitValue(t):this._emitEnd()}},_t=B("takeWhile",mt),gt=V("takeWhile",mt),yt=function(t){return t};var bt={_init:function(){this._lastValue=a},_free:function(){this._lastValue=null},_handleValue:function(t){this._lastValue=t},_handleEnd:function(){this._lastValue!==a&&this._emitValue(this._lastValue),this._emitEnd()}},wt=B("last",bt),St=V("last",bt);var Et={_init:function(t){var e=t.n;this._n=Math.max(0,e)},_handleValue:function(t){0===this._n?this._emitValue(t):this._n--}},Ot=B("skip",Et),kt=V("skip",Et);var At={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=this._fn;null===this._fn||e(t)||(this._fn=null),null===this._fn&&this._emitValue(t)}},Tt=B("skipWhile",At),xt=V("skipWhile",At),Ct=function(t){return t};var It={_init:function(t){var e=t.fn;this._fn=e,this._prev=a},_free:function(){this._fn=null,this._prev=null},_handleValue:function(t){var e=this._fn;this._prev!==a&&e(this._prev,t)||(this._prev=t,this._emitValue(t))}},Pt=B("skipDuplicates",It),Rt=V("skipDuplicates",It),Nt=function(t,e){return t===e};function Lt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nt;return new(t._ofSameType(Pt,Rt))(t,{fn:e})}var Mt={_init:function(t){var e=t.fn,n=t.seed;this._fn=e,this._prev=n},_free:function(){this._prev=null,this._fn=null},_handleValue:function(t){if(this._prev!==a){var e=this._fn;this._emitValue(e(this._prev,t))}this._prev=t}},Dt=B("diff",Mt),jt=V("diff",Mt);function Ut(t,e){return[t,e]}var Ft=V("scan",{_init:function(t){var e=t.fn,n=t.seed;this._fn=e,this._seed=n,n!==a&&this._emitValue(n)},_free:function(){this._fn=null,this._seed=null},_handleValue:function(t){var e=this._fn;null===this._currentEvent||this._currentEvent.type===c?this._emitValue(this._seed===a?t:e(this._seed,t)):this._emitValue(e(this._currentEvent.value,t))}});var Bt=B("flatten",{_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){for(var e=(0,this._fn)(t),n=0;n=0)this._timeoutId=setTimeout(this._$later,this._wait-t);else{if(this._timeoutId=null,!this._immediate){var e=this._laterValue;this._laterValue=null,this._emitValue(e)}this._endLater&&this._emitEnd()}}},Jt=B("debounce",Zt),Xt=V("debounce",Zt);var Qt={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){var e=this._fn;this._emitError(e(t))}},te=B("mapErrors",Qt),ee=V("mapErrors",Qt),ne=function(t){return t};var re={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){(0,this._fn)(t)&&this._emitError(t)}},ie=B("filterErrors",re),oe=V("filterErrors",re),ae=function(t){return t};var se={_handleValue:function(){}},ue=B("ignoreValues",se),ce=V("ignoreValues",se);var le={_handleError:function(){}},de=B("ignoreErrors",le),fe=V("ignoreErrors",le);var he={_handleEnd:function(){}},pe=B("ignoreEnd",he),ve=V("ignoreEnd",he);var me={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleEnd:function(){var t=this._fn;this._emitValue(t()),this._emitEnd()}},_e=B("beforeEnd",me),ge=V("beforeEnd",me);var ye={_init:function(t){var e=t.min,n=t.max;this._max=n,this._min=e,this._buff=[]},_free:function(){this._buff=null},_handleValue:function(t){this._buff=function(t,e,n){var r=Math.min(n,t.length+1),i=t.length-r+1,o=new Array(r),a=void 0;for(a=i;a=this._min&&this._emitValue(this._buff)}},be=B("slidingWindow",ye),we=V("slidingWindow",ye);var Se={_init:function(t){var e=t.fn,n=t.flushOnEnd;this._fn=e,this._flushOnEnd=n,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),(0,this._fn)(t)||this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},Ee=B("bufferWhile",Se),Oe=V("bufferWhile",Se),ke=function(t){return t};var Ae={_init:function(t){var e=t.count,n=t.flushOnEnd;this._count=e,this._flushOnEnd=n,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),this._buff.length>=this._count&&this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},Te=B("bufferWithCount",Ae),xe=V("bufferWithCount",Ae);var Ce={_init:function(t){var e=this,n=t.wait,r=t.count,i=t.flushOnEnd;this._wait=n,this._count=r,this._flushOnEnd=i,this._intervalId=null,this._$onTick=function(){return e._flush()},this._buff=[]},_free:function(){this._$onTick=null,this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),this._buff.length>=this._count&&(clearInterval(this._intervalId),this._flush(),this._intervalId=setInterval(this._$onTick,this._wait))},_handleEnd:function(){this._flushOnEnd&&0!==this._buff.length&&this._flush(),this._emitEnd()},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait),this._source.onAny(this._$handleAny)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null),this._source.offAny(this._$handleAny)}},Ie=B("bufferWithTimeOrCount",Ce),Pe=V("bufferWithTimeOrCount",Ce);var Re={_init:function(t){var e,n=t.transducer;this._xform=n((e=this,{"@@transducer/step":function(t,n){return e._emitValue(n),null},"@@transducer/result":function(){return e._emitEnd(),null}}))},_free:function(){this._xform=null},_handleValue:function(t){null!==this._xform["@@transducer/step"](null,t)&&this._xform["@@transducer/result"](null)},_handleEnd:function(){this._xform["@@transducer/result"](null)}},Ne=B("transduce",Re),Le=V("transduce",Re);var Me={_init:function(t){var e=t.fn;this._handler=e,this._emitter=C(this)},_free:function(){this._handler=null,this._emitter=null},_handleAny:function(t){this._handler(this._emitter,t)}},De=B("withHandler",Me),je=V("withHandler",Me);var Ue=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function Fe(t,e){var n=this;b.call(this),this._buffers=m(t,(function(t){return Ue(t)?p(t):[]})),this._sources=m(t,(function(t){return Ue(t)?E():t})),this._combinator=e?N(e,this._sources.length):function(t){return t},this._aliveCount=0,this._$handlers=[];for(var r=function(t){n._$handlers.push((function(e){return n._handleAny(t,e)}))},i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=e.queueLim,r=void 0===n?0:n,i=e.concurLim,o=void 0===i?-1:i,a=e.drop,s=void 0===a?"new":a;b.call(this),this._queueLim=r<0?-1:r,this._concurLim=o<0?-1:o,this._drop=s,this._queue=[],this._curSources=[],this._$handleSubAny=function(e){return t._handleSubAny(e)},this._$endHandlers=[],this._currentlyAdding=null,0===this._concurLim&&this._emitEnd()}function qe(t){ze.call(this),this._addAll(t),this._initialised=!0}function He(t){return 0===t.length?E():new qe(t)}function Ge(t){var e=this;b.call(this),this._generator=t,this._source=null,this._inLoop=!1,this._iteration=0,this._$handleAny=function(t){return e._handleAny(t)}}o(ze,b,{_name:"abstractPool",_add:function(t,e){e=e||Ve,-1===this._concurLim||this._curSources.lengthe&&t[e]})).setName("concat")}function We(){ze.call(this)}function $e(t,e,n){var r=this;ze.call(this,n),this._source=t,this._fn=e,this._mainEnded=!1,this._lastCurrent=null,this._$handleMain=function(t){return r._handleMain(t)}}function Ze(t,e){$e.call(this,t,e)}function Je(t,e){return function(n,r,i){var o=this;t.call(this),this._primary=n,this._secondary=r,this._name=n._name+"."+e,this._lastSecondary=a,this._$handleSecondaryAny=function(t){return o._handleSecondaryAny(t)},this._$handlePrimaryAny=function(t){return o._handlePrimaryAny(t)},this._init(i)}}function Xe(t){return{_init:function(){},_free:function(){},_handlePrimaryValue:function(t){this._emitValue(t)},_handlePrimaryError:function(t){this._emitError(t)},_handlePrimaryEnd:function(){this._emitEnd()},_handleSecondaryValue:function(t){this._lastSecondary=t},_handleSecondaryError:function(t){this._emitError(t)},_handleSecondaryEnd:function(){},_handlePrimaryAny:function(t){switch(t.type){case u:return this._handlePrimaryValue(t.value);case c:return this._handlePrimaryError(t.value);case s:return this._handlePrimaryEnd(t.value)}},_handleSecondaryAny:function(t){switch(t.type){case u:return this._handleSecondaryValue(t.value);case c:return this._handleSecondaryError(t.value);case s:this._handleSecondaryEnd(t.value),this._removeSecondary()}},_removeSecondary:function(){null!==this._secondary&&(this._secondary.offAny(this._$handleSecondaryAny),this._$handleSecondaryAny=null,this._secondary=null)},_onActivation:function(){null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny),this._active&&this._primary.onAny(this._$handlePrimaryAny)},_onDeactivation:function(){null!==this._secondary&&this._secondary.offAny(this._$handleSecondaryAny),this._primary.offAny(this._$handlePrimaryAny)},_clear:function(){t.prototype._clear.call(this),this._primary=null,this._secondary=null,this._lastSecondary=null,this._$handleSecondaryAny=null,this._$handlePrimaryAny=null,this._free()}}}function Qe(t,e){var n=Je(b,t);return o(n,b,Xe(b),e),n}function tn(t,e){var n=Je(w,t);return o(n,w,Xe(w),e),n}o(We,ze,{_name:"pool",plug:function(t){return this._add(t),this},unplug:function(t){return this._remove(t),this}}),o($e,ze,{_onActivation:function(){ze.prototype._onActivation.call(this),this._active&&this._source.onAny(this._$handleMain)},_onDeactivation:function(){ze.prototype._onDeactivation.call(this),this._source.offAny(this._$handleMain),this._hadNoEvSinceDeact=!0},_handleMain:function(t){t.type===u&&(this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===t.value||this._add(t.value,this._fn),this._lastCurrent=t.value,this._hadNoEvSinceDeact=!1);t.type===c&&this._emitError(t.value),t.type===s&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)},_onEmpty:function(){this._mainEnded&&this._emitEnd()},_clear:function(){ze.prototype._clear.call(this),this._source=null,this._lastCurrent=null,this._$handleMain=null}}),o(Ze,$e,{_handleMain:function(t){t.type===c&&(this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===t.value||this._add(t.value,this._fn),this._lastCurrent=t.value,this._hadNoEvSinceDeact=!1);t.type===u&&this._emitValue(t.value),t.type===s&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)}});var en={_handlePrimaryValue:function(t){this._lastSecondary!==a&&this._lastSecondary&&this._emitValue(t)},_handleSecondaryEnd:function(){this._lastSecondary!==a&&this._lastSecondary||this._emitEnd()}},nn=Qe("filterBy",en),rn=tn("filterBy",en);var on=function(t,e){return e};var an={_handlePrimaryValue:function(t){this._lastSecondary!==a&&this._emitValue(t)},_handleSecondaryEnd:function(){this._lastSecondary===a&&this._emitEnd()}},sn=Qe("skipUntilBy",an),un=tn("skipUntilBy",an);var cn={_handleSecondaryValue:function(){this._emitEnd()}},ln=Qe("takeUntilBy",cn),dn=tn("takeUntilBy",cn);var fn={_init:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).flushOnEnd,e=void 0===t||t;this._buff=[],this._flushOnEnd=e},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_onActivation:function(){this._primary.onAny(this._$handlePrimaryAny),this._alive&&null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny)},_handlePrimaryValue:function(t){this._buff.push(t)},_handleSecondaryValue:function(){this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._emitEnd()}},hn=Qe("bufferBy",fn),pn=tn("bufferBy",fn);var vn={_init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.flushOnEnd,n=void 0===e||e,r=t.flushOnChange,i=void 0!==r&&r;this._buff=[],this._flushOnEnd=n,this._flushOnChange=i},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_handlePrimaryValue:function(t){this._buff.push(t),this._lastSecondary===a||this._lastSecondary||this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._lastSecondary!==a&&!this._lastSecondary||this._emitEnd()},_handleSecondaryValue:function(t){this._flushOnChange&&!t&&this._flush(),this._lastSecondary=t}},mn=Qe("bufferWhileBy",vn),_n=tn("bufferWhileBy",vn);var gn=function(){return!1},yn=function(){return!0};var bn={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=(0,this._fn)(t);e.convert?this._emitError(e.error):this._emitValue(t)}},wn=B("valuesToErrors",bn),Sn=V("valuesToErrors",bn),En=function(t){return{convert:!0,error:t}};var On={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){var e=(0,this._fn)(t);e.convert?this._emitValue(e.value):this._emitError(t)}},kn=B("errorsToValues",On),An=V("errorsToValues",On),Tn=function(t){return{convert:!0,value:t}};var xn={_handleError:function(t){this._emitError(t),this._emitEnd()}},Cn=B("endOnError",xn),In=V("endOnError",xn);y.prototype.toProperty=function(t){return q(this,t)},y.prototype.changes=function(){return new H(this)},y.prototype.toPromise=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G(),n=null;return new e((function(e,r){t.onAny((function(t){t.type===s&&null!==n?((n.type===u?e:r)(n.value),n=null):n=t}))}))}(this,t)},y.prototype.toESObservable=$,y.prototype[K]=$,y.prototype.map=function(t){return ot(this,t)},y.prototype.filter=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ct;return new(t._ofSameType(st,ut))(t,{fn:e})}(this,t)},y.prototype.take=function(t){return function(t,e){return new(t._ofSameType(dt,ft))(t,{n:e})}(this,t)},y.prototype.takeErrors=function(t){return function(t,e){return new(t._ofSameType(pt,vt))(t,{n:e})}(this,t)},y.prototype.takeWhile=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yt;return new(t._ofSameType(_t,gt))(t,{fn:e})}(this,t)},y.prototype.last=function(){return new((t=this)._ofSameType(wt,St))(t);var t},y.prototype.skip=function(t){return function(t,e){return new(t._ofSameType(Ot,kt))(t,{n:e})}(this,t)},y.prototype.skipWhile=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ct;return new(t._ofSameType(Tt,xt))(t,{fn:e})}(this,t)},y.prototype.skipDuplicates=function(t){return Lt(this,t)},y.prototype.diff=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a;return new(t._ofSameType(Dt,jt))(t,{fn:e||Ut,seed:n})}(this,t,e)},y.prototype.scan=function(t,e){return function(t,e){return new Ft(t,{fn:e,seed:arguments.length>2&&void 0!==arguments[2]?arguments[2]:a})}(this,t,e)},y.prototype.flatten=function(t){return function(t){return new Bt(t,{fn:arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vt})}(this,t)},y.prototype.delay=function(t){return function(t,e){return new(t._ofSameType(Ht,Gt))(t,{wait:e})}(this,t)},y.prototype.throttle=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.leading,i=void 0===r||r,o=n.trailing,a=void 0===o||o;return new(t._ofSameType(Wt,$t))(t,{wait:e,leading:i,trailing:a})}(this,t,e)},y.prototype.debounce=function(t,e){return function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).immediate,r=void 0!==n&&n;return new(t._ofSameType(Jt,Xt))(t,{wait:e,immediate:r})}(this,t,e)},y.prototype.mapErrors=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne;return new(t._ofSameType(te,ee))(t,{fn:e})}(this,t)},y.prototype.filterErrors=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ae;return new(t._ofSameType(ie,oe))(t,{fn:e})}(this,t)},y.prototype.ignoreValues=function(){return new((t=this)._ofSameType(ue,ce))(t);var t},y.prototype.ignoreErrors=function(){return new((t=this)._ofSameType(de,fe))(t);var t},y.prototype.ignoreEnd=function(){return new((t=this)._ofSameType(pe,ve))(t);var t},y.prototype.beforeEnd=function(t){return function(t,e){return new(t._ofSameType(_e,ge))(t,{fn:e})}(this,t)},y.prototype.slidingWindow=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return new(t._ofSameType(be,we))(t,{min:n,max:e})}(this,t,e)},y.prototype.bufferWhile=function(t,e){return function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).flushOnEnd,r=void 0===n||n;return new(t._ofSameType(Ee,Oe))(t,{fn:e||ke,flushOnEnd:r})}(this,t,e)},y.prototype.bufferWithCount=function(t,e){return function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).flushOnEnd,r=void 0===n||n;return new(t._ofSameType(Te,xe))(t,{count:e,flushOnEnd:r})}(this,t,e)},y.prototype.bufferWithTimeOrCount=function(t,e,n){return function(t,e,n){var r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).flushOnEnd,i=void 0===r||r;return new(t._ofSameType(Ie,Pe))(t,{wait:e,count:n,flushOnEnd:i})}(this,t,e,n)},y.prototype.transduce=function(t){return function(t,e){return new(t._ofSameType(Ne,Le))(t,{transducer:e})}(this,t)},y.prototype.withHandler=function(t){return function(t,e){return new(t._ofSameType(De,je))(t,{fn:e})}(this,t)},y.prototype.thru=function(t){return t(this)},y.prototype.combine=function(t,e){return X([this,t],e)},y.prototype.zip=function(t,e){return Be([this,t],e)},y.prototype.merge=function(t){return He([this,t])},y.prototype.concat=function(t){return Ke([this,t])};y.prototype.flatMap=function(t){return new $e(this,t).setName(this,"flatMap")},y.prototype.flatMapLatest=function(t){return new $e(this,t,{concurLim:1,drop:"old"}).setName(this,"flatMapLatest")},y.prototype.flatMapFirst=function(t){return new $e(this,t,{concurLim:1}).setName(this,"flatMapFirst")},y.prototype.flatMapConcat=function(t){return new $e(this,t,{queueLim:-1,concurLim:1}).setName(this,"flatMapConcat")},y.prototype.flatMapConcurLimit=function(t,e){return new $e(this,t,{queueLim:-1,concurLim:e}).setName(this,"flatMapConcurLimit")},y.prototype.flatMapErrors=function(t){return new Ze(this,t).setName(this,"flatMapErrors")},y.prototype.filterBy=function(t){return n=t,new((e=this)._ofSameType(nn,rn))(e,n);var e,n},y.prototype.sampledBy=function(t,e){return function(t,e,n){return X([e],[t],n?function(t,e){return n(e,t)}:on).setName(t,"sampledBy")}(this,t,e)},y.prototype.skipUntilBy=function(t){return n=t,new((e=this)._ofSameType(sn,un))(e,n);var e,n},y.prototype.takeUntilBy=function(t){return n=t,new((e=this)._ofSameType(ln,dn))(e,n);var e,n},y.prototype.bufferBy=function(t,e){return function(t,e,n){return new(t._ofSameType(hn,pn))(t,e,n)}(this,t,e)},y.prototype.bufferWhileBy=function(t,e){return function(t,e,n){return new(t._ofSameType(mn,_n))(t,e,n)}(this,t,e)};var Pn=!0;function Rn(t){if(Pn&&console&&"function"==typeof console.warn){console.warn(t,"\nHere is an Error object for you containing the call stack:",new Error)}}y.prototype.awaiting=function(t){return Rn("You are using deprecated .awaiting() method, see https://github.com/kefirjs/kefir/issues/145"),function(t,e){var n=He([ot(t,yn),ot(e,gn)]);return(n=q(n=Lt(n),gn)).setName(t,"awaiting")}(this,t)},y.prototype.valuesToErrors=function(t){return Rn("You are using deprecated .valuesToErrors() method, see https://github.com/kefirjs/kefir/issues/149"),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:En;return new(t._ofSameType(wn,Sn))(t,{fn:e})}(this,t)},y.prototype.errorsToValues=function(t){return Rn("You are using deprecated .errorsToValues() method, see https://github.com/kefirjs/kefir/issues/149"),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tn;return new(t._ofSameType(kn,An))(t,{fn:e})}(this,t)},y.prototype.endOnError=function(){return Rn("You are using deprecated .endOnError() method, see https://github.com/kefirjs/kefir/issues/150"),new((t=this)._ofSameType(Cn,In))(t);var t};var Nn={Observable:y,Stream:b,Property:w,never:E,later:function(t,e){return new k(t,{x:e})},interval:function(t,e){return new A(t,{x:e})},sequentially:function(t,e){return 0===e.length?E():new T(t,{xs:e})},fromPoll:function(t,e){return new x(t,{fn:e})},withInterval:function(t,e){return new I(t,{fn:e})},fromCallback:function(t){var e=!1;return R((function(n){e||(t((function(t){n.emit(t),n.end()})),e=!0)})).setName("fromCallback")},fromNodeCallback:function(t){var e=!1;return R((function(n){e||(t((function(t,e){t?n.error(t):n.emit(e),n.end()})),e=!0)})).setName("fromNodeCallback")},fromEvents:function(t,e,n){for(var r=void 0,i=void 0,o=0;o{"use strict";n.d(e,{A:()=>s});var r=n(9248),i=n.n(r),o=n(69089),a=n.n(o)()(i());a.push([t.id,".quiz-body .card__body {\n padding-left: 0;\n padding-right: 0;\n}\n\n.quiz-card {\n padding: 2rem 0 2rem;\n}\n\n.quiz-body .u--text-danger {\n padding-left: 0.25rem;\n}\n\n.quiz-body .error-block {\n max-width: 27rem;\n padding: 0;\n margin: 0 auto;\n}\n\n.quiz-body,\n.quiz-footer-mount-point {\n width: 80%;\n max-width: 45rem;\n margin: 0 auto;\n}\n\n.quiz-card .progress__bar {\n background: #080;\n}\n\n.quiz-lead-form {\n max-width: 25rem;\n margin: 0 auto\n}\n\n.quiz-body input, .quiz-body select {\n border-radius: 0.5rem;\n}\n\n.quiz-body select.control {\n background-size: 1.5rem;\n}\n\n.quiz-footer-container .progress__max {\n width: 80%;\n margin: auto ;\n background-color: #C5C5C5;\n}\n\n.quiz-footer-container .straight-line {\n position: relative;\n top: -1.3rem;\n height: 0.15rem;\n background-color: #C5C5C5;\n width: 100%;\n}\n\n.quiz-footer-container .progress__max,\n.quiz-footer-container .progress__bar {\n position: relative;\n border-radius: 1rem;\n height: 0.5rem;\n z-index: 100;\n}\n\n.quiz-footer-container .progress__bar {\n background: #4AB010;\n}\n\n@media only screen and (min-width: 768px) {\n .quiz-main-next {\n width: 8rem;\n }\n}\n\n.quiz-navigation {\n width: 80%;\n margin: 0 auto;\n}\n\n.quiz-body .label,\n.quiz-body .input,\n.quiz-body .control {\n font-size: 1.1rem;\n color: #565656;\n}\n.quiz-body .checkbox .control,\n.quiz-body .radio .control {\n transform: scale(1.5);\n top: 31%;\n}\n\n.quiz-body .checkbox .control {\n padding-left: 2rem;\n}\n\n.quiz-body .checkbox .label,\n.quiz-body .radio .label {\n padding-left: 2.5rem;\n}\n\n.quiz-body .checkbox,\n.quiz-body .radio {\n border: none;\n}\n\n.big-step-display:focus {\n -webkit-box-shadow: 0 0 0 2px white, 0 0 0 4px #036ad2;\n box-shadow: 0 0 0 2px white, 0 0 0 4px #036ad2;\n outline: none;\n -webkit-border-radius: 2px;\n border-radius: 2px;\n}\n\n.small-step-display,\n.small-step-display p {\n margin: 0;\n}\n\n.quiz-body .info-text {\n padding: 0 0 1rem !important;\n}\n\n.quiz-footer-mount-point .info-text {\n text-align: center;\n}\n\n.spinner--small {\n margin: 0 10px 2px 0;\n vertical-align: middle;\n}\n.spinner--small::before,\n.spinner--small::after {\n border-color: white white white transparent;\n border-width: 2px;\n left: -2px;\n top: -2px;\n}\n",""]);const s=a},85072:(t,e,n)=>{"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n{var r=n(49091).default;function i(){"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var e,n={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",d=u.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(e){f=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),a=new N(r||[]);return s(o,"_invoke",{value:C(t,n,a)}),o}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=h;var v="suspendedStart",m="suspendedYield",_="executing",g="completed",y={};function b(){}function w(){}function S(){}var E={};f(E,c,(function(){return this}));var O=Object.getPrototypeOf,k=O&&O(O(L([])));k&&k!==o&&a.call(k,c)&&(E=k);var A=S.prototype=b.prototype=Object.create(E);function T(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(i,o,s,u){var c=p(t[i],t,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==r(d)&&a.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):e.resolve(d).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,u)}))}u(c.arg)}var i;s(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function C(t,n,r){var i=v;return function(o,a){if(i===_)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=I(s,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===v)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=_;var c=p(t,n,r);if("normal"===c.type){if(i=r.done?g:m,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=g,r.method="throw",r.arg=c.arg)}}}function I(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=p(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function L(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),R(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;R(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},n}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},49091:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},2971:(t,e,n)=>{var r=n(49091),i=n(58636)();t.exports=i;try{regeneratorRuntime=i}catch(t){"object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},60901:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{A:()=>r})}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nc=void 0,(()=>{"use strict";var t=n(60901);function e(e){var n=function(e,n){if("object"!==(0,t.A)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==(0,t.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===(0,t.A)(n)?n:String(n)}function r(t,n,r){return(n=e(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var i={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},o=console,a={};Object.keys(i).forEach((function(t){a[t]=o[t]}));var s="Datadog Browser SDK:",u={debug:a.debug.bind(o,s),log:a.log.bind(o,s),info:a.info.bind(o,s),warn:a.warn.bind(o,s),error:a.error.bind(o,s)};function c(t,e){return function(){for(var n=[],r=0;r=0;return n||e.push(t),n}}}()),void 0===n)return e;if("object"!==(0,t.A)(n)||null===n)return n;if(n instanceof Date)return new Date(n.getTime());if(n instanceof RegExp){var i=n.flags||[n.global?"g":"",n.ignoreCase?"i":"",n.multiline?"m":"",n.sticky?"y":"",n.unicode?"u":""].join("");return new RegExp(n.source,i)}if(!r.hasAlreadyBeenSeen(n)){if(Array.isArray(n)){for(var o=Array.isArray(e)?e:[],a=0;a"}finally{i(),o(),a(),s()}}function G(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):F}var Y=220*C,K="$",W=3;function $(t,e){var n;void 0===e&&(e=Y);var r=G(Object.prototype),i=G(Array.prototype),o=[],a=new WeakMap,s=Z(t,K,void 0,o,a),u=(null===(n=JSON.stringify(s))||void 0===n?void 0:n.length)||0;if(!(u>e)){for(;o.length>0&&ue){J(e,"truncated",t);break}c.target[d]=f}else for(var d in c.source)if(Object.prototype.hasOwnProperty.call(c.source,d)){var f;if(void 0!==(f=Z(c.source[d],c.path,d,o,a))&&(u+=JSON.stringify(f).length+l+d.length+W,l=1),u>e){J(e,"truncated",t);break}c.target[d]=f}}return r(),i(),s}J(e,"discarded",t)}function Z(e,n,r,i,o){var a=function(t){var e=t;if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(t){}return t}(e);if(!a||"object"!==(0,t.A)(a))return function(e){if("bigint"==typeof e)return"[BigInt] ".concat(e.toString());if("function"==typeof e)return"[Function] ".concat(e.name||"unknown");if("symbol"===(0,t.A)(e))return"[Symbol] ".concat(e.description||e.toString());return e}(a);var s=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"[".concat(e[1],"]")}catch(t){}return"[Unserializable]"}(a);if("[Object]"!==s&&"[Array]"!==s&&"[Error]"!==s)return s;var u=e;if(o.has(u))return"[Reference seen at ".concat(o.get(u),"]");var c=void 0!==r?"".concat(n,".").concat(r):n,l=Array.isArray(a)?[]:{};return o.set(u,c),i.push({source:a,target:l,path:c}),l}function J(t,e,n){u.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),n)}var X,Q=function(){function t(t){this.onFirstSubscribe=t,this.observers=[]}return t.prototype.subscribe=function(t){var e=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(t),{unsubscribe:function(){e.observers=e.observers.filter((function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},t.prototype.notify=function(t){this.observers.forEach((function(e){return e(t)}))},t}();function tt(){for(var t=[],e=0;eet&&(u.warn("The ".concat(nt[e]," data exceeds the recommended ").concat(et/C,"KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-3kib-warning")),!0)}var it=200;function ot(t,e){void 0===e&&(e=R);var n,r={},i=!1,o=new Q,a=U((function(r){n=e(H(r)),i||(i=rt(n,t))}),it).throttled,s={getBytesCount:function(){return n},getContext:function(){return z(r)},setContext:function(t){"object"===B(t)?(r=$(t),a(r)):s.clearContext(),o.notify()},setContextProperty:function(t,e){r[t]=$(e),a(r),o.notify()},removeContextProperty:function(t){delete r[t],a(r),o.notify()},clearContext:function(){r={},n=0,o.notify()},changeObservable:o};return s}var at=function(){function t(){this.buffer=[]}return t.prototype.add=function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},t.prototype.drain=function(){this.buffer.forEach((function(t){return t()})),this.buffer.length=0},t}();function st(t){return 0!==t&&100*Math.random()<=t}function ut(t,e){return+t.toFixed(e)}function ct(t){return lt(t)&&t>=0&&t<=100}function lt(t){return"number"==typeof t}var dt,ft=1e3,ht=60*ft,pt=60*ht,vt=365*(24*pt);function mt(t){return{relative:t,timeStamp:_t(t)}}function _t(t){var e=yt()-performance.now();return e>Tt()?Math.round(kt(e,t)):function(t){return Math.round(kt(Tt(),t))}(t)}function gt(t){return lt(t)?ut(1e6*t,0):t}function yt(){return(new Date).getTime()}function bt(){return yt()}function wt(){return performance.now()}function St(){return{relative:wt(),timeStamp:bt()}}function Et(){return{relative:0,timeStamp:Tt()}}function Ot(t,e){return e-t}function kt(t,e){return t+e}function At(t){return t-Tt()}function Tt(){return void 0===dt&&(dt=performance.timing.navigationStart),dt}function xt(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,xt)}var Ct,It,Pt=/([\w-]+)\s*=\s*([^;]+)/g;function Rt(t,e){for(Pt.lastIndex=0;;){var n=Pt.exec(t);if(!n)break;if(n[1]===e)return n[2]}}function Nt(t,e,n){void 0===n&&(n="");var r=t.charCodeAt(e-1),i=r>=55296&&r<=56319?e+1:e;return t.length<=i?t:"".concat(t.slice(0,i)).concat(n)}function Lt(t,e,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires=".concat(i.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",u=r&&r.secure?";secure":"";document.cookie="".concat(t,"=").concat(e,";").concat(o,";path=/;samesite=").concat(a).concat(s).concat(u)}function Mt(t){return Rt(document.cookie,t)}function Dt(t){return Ct||(Ct=function(t){var e=new Map;for(Pt.lastIndex=0;;){var n=Pt.exec(t);if(!n)break;e.set(n[1],n[2])}return e}(document.cookie)),Ct.get(t)}function jt(t,e){Lt(t,"",0,e)}var Ut,Ft="datadog-synthetics-public-id",Bt="datadog-synthetics-result-id",Vt="datadog-synthetics-injects-rum";function zt(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||Dt(Vt))}function qt(){var t=window._DATADOG_SYNTHETICS_PUBLIC_ID||Dt(Ft);return"string"==typeof t?t:void 0}function Ht(){var t=window._DATADOG_SYNTHETICS_RESULT_ID||Dt(Bt);return"string"==typeof t?t:void 0}function Gt(){var t=x().DatadogEventBridge;if(t)return{getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n){t.send(JSON.stringify({eventType:e,event:n}))}}}function Yt(t){var e;void 0===t&&(t=null===(e=x().location)||void 0===e?void 0:e.hostname);var n=Gt();return!!n&&n.getAllowedWebViewHosts().some((function(e){return t===e||(n=t,r=".".concat(e),n.slice(-r.length)===r);var n,r}))}function Kt(t,e,n,r,i){return Wt(t,e,[n],r,i)}function Wt(t,e,n,r,i){var o=void 0===i?{}:i,a=o.once,s=o.capture,u=o.passive,c=v((function(e){(e.isTrusted||e.__ddIsTrusted||t.allowUntrustedEvents)&&(a&&f(),r(e))})),l=u?{capture:s,passive:u}:s,d=N(e,"addEventListener");function f(){var t=N(e,"removeEventListener");n.forEach((function(n){return t.call(e,n,c,l)}))}return n.forEach((function(t){return d.call(e,t,c,l)})),{stop:f}}!function(t){t.BEFORE_UNLOAD="beforeunload",t.CLICK="click",t.DBL_CLICK="dblclick",t.KEY_DOWN="keydown",t.LOAD="load",t.POP_STATE="popstate",t.SCROLL="scroll",t.TOUCH_START="touchstart",t.TOUCH_END="touchend",t.TOUCH_MOVE="touchmove",t.VISIBILITY_CHANGE="visibilitychange",t.PAGE_SHOW="pageshow",t.FREEZE="freeze",t.RESUME="resume",t.DOM_CONTENT_LOADED="DOMContentLoaded",t.POINTER_DOWN="pointerdown",t.POINTER_UP="pointerup",t.POINTER_CANCEL="pointercancel",t.HASH_CHANGE="hashchange",t.PAGE_HIDE="pagehide",t.MOUSE_DOWN="mousedown",t.MOUSE_UP="mouseup",t.MOUSE_MOVE="mousemove",t.FOCUS="focus",t.BLUR="blur",t.CONTEXT_MENU="contextmenu",t.RESIZE="resize",t.CHANGE="change",t.INPUT="input",t.PLAY="play",t.PAUSE="pause",t.SECURITY_POLICY_VIOLATION="securitypolicyviolation",t.SELECTION_CHANGE="selectionchange",t.STORAGE="storage"}(Ut||(Ut={}));var $t="_dd_c",Zt=[];function Jt(t,e,n,r){void 0===r&&(r=R);var i=function(t,e){return"".concat($t,"_").concat(t,"_").concat(e)}(e,n),o=ot(n,r);return a(),Zt.push(Kt(t,window,Ut.STORAGE,(function(t){var e=t.key;i===e&&a()}))),o.changeObservable.subscribe((function(){localStorage.setItem(i,JSON.stringify(o.getContext()))})),o;function a(){var t=localStorage.getItem(i),e=null!==t?JSON.parse(t):{};o.setContext(e)}}function Xt(){var t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write:function(n,r){var i=R(n);e+=i,t+=n,r&&r(i)},finish:function(t){t(this.finishSync())},finishSync:function(){var n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount:function(t){return t.length}}}var Qt="?";function te(t){var e=[],n=ce(t,"stack"),r=String(t);return n&&E(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach((function(t){var n=function(t){var e=re.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=ie.exec(e[2]);r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]);return{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||Qt,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=oe.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:Qt,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=ae.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||Qt,line:+e[3],url:e[2]}}(t)||function(t){var e=se.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=ue.exec(e[3]);n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0);return{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||Qt,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=Qt),e.push(n))})),{message:ce(t,"message"),name:ce(t,"name"),stack:e}}var ee="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",ne="(?::(\\d+))",re=new RegExp("^\\s*at (.*?) ?\\(".concat(ee).concat(ne,"?").concat(ne,"?\\)?\\s*$"),"i"),ie=new RegExp("\\((\\S*)".concat(ne).concat(ne,"\\)"));var oe=new RegExp("^\\s*at ?".concat(ee).concat(ne,"?").concat(ne,"??\\s*$"),"i");var ae=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var se=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,ue=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function ce(e,n){if("object"===(0,t.A)(e)&&e&&n in e){var r=e[n];return"string"==typeof r?r:void 0}}function le(t,e,n,r){var i=[{url:e,column:r,line:n}],o=function(t){var e,n,r;"[object String]"==={}.toString.call(t)&&(n=(e=de.exec(t))[1],r=e[2]);return{name:n,message:r}}(t);return{name:o.name,message:o.message,stack:i}}var de=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;var fe,he="No stack, consider using an instance of Error";function pe(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,u=n instanceof Error,c=function(t,e,n,r){return(null==t?void 0:t.message)&&(null==t?void 0:t.name)?t.message:e?"Empty message":"".concat(n," ").concat(H($(r)))}(e,u,o,n),l=function(t,e){if(void 0===e)return!1;if(t)return!0;return e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url)}(u,e)?me(e):he,d=u?function(t,e){var n=t,r=[];for(;(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var i=te(n.cause);r.push({message:n.cause.message,source:e,type:null==i?void 0:i.name,stack:i&&me(i)}),n=n.cause}return r.length?r:void 0}(n,a):void 0;return{startClocks:i,source:a,handling:s,handlingStack:r,originalError:n,type:null==e?void 0:e.name,message:c,stack:l,causes:d,fingerprint:ve(n)}}function ve(t){return t instanceof Error&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function me(t){var e=_e(t);return t.stack.forEach((function(t){var n="?"===t.func?"":t.func,r=t.args&&t.args.length>0?"(".concat(t.args.join(", "),")"):"",i=t.line?":".concat(t.line):"",o=t.line&&t.column?":".concat(t.column):"";e+="\n at ".concat(n).concat(r," @ ").concat(t.url).concat(i).concat(o)})),e}function _e(t){return"".concat(t.name||"Error",": ").concat(t.message)}function ge(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return m((function(){var n=te(e);n.stack=n.stack.slice(2),t=me(n)})),t}function ye(t){var e=k({},t);return["id","name","email"].forEach((function(t){t in e&&(e[t]=String(e[t]))})),e}function be(t){var e="object"===B(t);return e||u.error("Unsupported user:",t),e}!function(t){t.PAGEHIDE="pagehide",t.FEATURE_FLAGS="feature_flags",t.RESOURCE_PAGE_STATES="resource_page_states",t.COLLECT_FLUSH_REASON="collect_flush_reason",t.SCROLLMAP="scrollmap",t.WEB_VITALS_ATTRIBUTION="web_vitals_attribution",t.DISABLE_REPLAY_INLINE_CSS="disable_replay_inline_css"}(fe||(fe={}));var we=new Set;function Se(t){return we.has(t)}function Ee(){return we}function Oe(t){return k({},t)}function ke(t,e){return Object.keys(t).some((function(n){return t[n]===e}))}function Ae(t){return 0===Object.keys(t).length}var Te,xe=4*pt,Ce=15*ht;function Ie(){return null!=Te?Te:Te=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;if(t.chrome||/HeadlessChrome/.test(n))return 1;if(0===(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return 2;if(t.document.documentMode)return 0;return 3}()}var Pe="_dd_s",Re=/^([a-z]+)=([a-z0-9-]+)$/,Ne="&";function Le(t){return Ae(t)}function Me(t){t.expire=String(yt()+Ce)}function De(t){return S(t).map((function(t){var e=t[0],n=t[1];return"".concat(e,"=").concat(n)})).join(Ne)}function je(t){var e={};return function(t){return!!t&&(-1!==t.indexOf(Ne)||Re.test(t))}(t)&&t.split(Ne).forEach((function(t){var n=Re.exec(t);if(null!==n){var r=n[1],i=n[2];e[r]=i}})),e}var Ue="_dd",Fe="_dd_r",Be="_dd_l",Ve="rum",ze="logs";function qe(t){var e=function(t){var e={};e.secure=!!t.useSecureSessionCookie||!!t.useCrossSiteSessionCookie,e.crossSite=!!t.useCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===It){for(var t="dd_site_test_".concat(xt()),e=window.location.hostname.split("."),n=e.pop();e.length&&!Mt(t);)n="".concat(e.pop(),".").concat(n),Lt(t,"test",ft,{domain:n});jt(t,{domain:n}),It=n}return It}());return e}(t);return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat(xt()),n="test";Lt(e,n,ht,t);var r=Mt(e)===n;return jt(e,t),r}catch(t){return u.error(t),!1}}(e)?{type:"Cookie",cookieOptions:e}:void 0}function He(t){var e={isLockEnabled:1===Ie(),persistSession:Ge(t),retrieveSession:Ye,clearSession:Ke(t)};return function(t){if(!Dt(Pe)){var e=Dt(Ue),n=Dt(Fe),r=Dt(Be),i={};e&&(i.id=e),r&&/^[01]$/.test(r)&&(i[ze]=r),n&&/^[012]$/.test(n)&&(i[Ve]=n),Le(i)||(Me(i),t.persistSession(i))}}(e),e}function Ge(t){return function(e){Lt(Pe,De(e),Ce,t)}}function Ye(){return je(Mt(Pe))}function Ke(t){return function(){jt(Pe,t)}}var We="_dd_test_";function $e(t){localStorage.setItem(Pe,De(t))}function Ze(){return je(localStorage.getItem(Pe))}function Je(){localStorage.removeItem(Pe)}var Xe,Qe=10,tn=100,en=[];function nn(t,e,n){var r;void 0===n&&(n=0);var i=e.isLockEnabled,o=e.retrieveSession,a=e.persistSession,s=e.clearSession;if(Xe||(Xe=t),t===Xe)if(i&&n>=tn)on(e);else{var u,c=o();if(i){if(c.lock)return void rn(t,e,n);if(u=xt(),c.lock=u,a(c),(c=o()).lock!==u)return void rn(t,e,n)}var l=t.process(c);if(i&&(c=o()).lock!==u)rn(t,e,n);else{if(l&&(Le(l)?s():(Me(l),a(l))),i&&(!l||!Le(l))){if((c=o()).lock!==u)return void rn(t,e,n);delete c.lock,a(c),l=c}null===(r=t.after)||void 0===r||r.call(t,l||c),on(e)}}else en.push(t)}function rn(t,e,n){L((function(){nn(t,e,n+1)}),Qe)}function on(t){Xe=void 0;var e=en.shift();e&&nn(e,t)}var an=ft;function sn(t){var e=qe(t);return!e&&t.allowFallbackToLocalStorage&&(e=function(){try{var t=xt(),e="".concat(We).concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:"LocalStorage"}:void 0}catch(t){return}}()),e}function un(t,e,n){var r=new Q,i=new Q,o="Cookie"===t.type?He(t.cookieOptions):{isLockEnabled:!1,persistSession:$e,retrieveSession:Ze,clearSession:Je},a=o.clearSession,s=o.retrieveSession,u=D((function(){nn({process:function(t){return f(t)?void 0:{}},after:l},o)}),an),c=function(){var t=s();if(f(t))return t;return{}}();function l(t){return f(t)||(t={}),d()&&(!function(t){return c.id!==t.id||c[e]!==t[e]}(t)?c=t:(c={},i.notify())),t}function d(){return void 0!==c[e]}function f(t){return(void 0===t.created||yt()-Number(t.created)n||yn.test(e))&&u.warn("".concat(t," value doesn't meet tag requirements and will be sanitized"));var r=e.replace(/,/g,"_");return"".concat(t,":").concat(r)}function wn(t){var e=function(t){var e=t.env,n=t.service,r=t.version,i=t.datacenter,o=[];return e&&o.push(bn("env",e)),n&&o.push(bn("service",n)),r&&o.push(bn("version",r)),i&&o.push(bn("datacenter",i)),o}(t),n=function(t,e){return{logsEndpointBuilder:_n(t,"logs",e),rumEndpointBuilder:_n(t,"rum",e),sessionReplayEndpointBuilder:_n(t,"replay",e)}}(t,e),r=w(n).map((function(t){return t.urlPrefix})),i=function(t,e,n){if(!t.replica)return;var r=k({},t,{site:vn,clientToken:t.replica.clientToken}),i={logsEndpointBuilder:_n(r,"logs",n),rumEndpointBuilder:_n(r,"rum",n)};return e.push.apply(e,w(i).map((function(t){return t.urlPrefix}))),k({applicationId:t.replica.applicationId},i)}(t,r,e);return k({isIntakeUrl:function(t){return r.some((function(e){return 0===t.indexOf(e)}))},replica:i,site:t.site||vn},n)}var Sn={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function En(t){var e,n,r;if(t&&t.clientToken)if(void 0===t.sessionSampleRate||ct(t.sessionSampleRate))if(void 0===t.telemetrySampleRate||ct(t.telemetrySampleRate)){if(void 0===t.telemetryConfigurationSampleRate||ct(t.telemetryConfigurationSampleRate))return Array.isArray(t.enableExperimentalFeatures)&&t.enableExperimentalFeatures.filter((function(t){return ke(fe,t)})).forEach((function(t){we.add(t)})),k({beforeSend:t.beforeSend&&c(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:sn(t),sessionSampleRate:null!==(e=t.sessionSampleRate)&&void 0!==e?e:100,telemetrySampleRate:null!==(n=t.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=t.telemetryConfigurationSampleRate)&&void 0!==r?r:5,service:t.service,silentMultipleInit:!!t.silentMultipleInit,allowUntrustedEvents:!!t.allowUntrustedEvents,batchBytesLimit:16*C,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*ft,batchMessagesLimit:50,messageBytesLimit:256*C},wn(t));u.error("Telemetry Configuration Sample Rate should be a number between 0 and 100")}else u.error("Telemetry Sample Rate should be a number between 0 and 100");else u.error("Session Sample Rate should be a number between 0 and 100");else u.error("Client Token is not configured, we will not send any data.")}function On(t){return{session_sample_rate:t.sessionSampleRate,telemetry_sample_rate:t.telemetrySampleRate,telemetry_configuration_sample_rate:t.telemetryConfigurationSampleRate,use_before_send:!!t.beforeSend,use_cross_site_session_cookie:t.useCrossSiteSessionCookie,use_secure_session_cookie:t.useSecureSessionCookie,use_proxy:!!t.proxy,silent_multiple_init:t.silentMultipleInit,track_session_across_subdomains:t.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!t.allowFallbackToLocalStorage,store_contexts_across_pages:!!t.storeContextsAcrossPages,allow_untrusted_events:!!t.allowUntrustedEvents}}function kn(t){var e=B(t);return"string"===e||"function"===e||t instanceof RegExp}function An(t,e,n){return void 0===n&&(n=!1),t.some((function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?E(e,t):t===e}catch(t){u.error(t)}return!1}))}function Tn(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function xn(t,e,n,r){if(void 0!==Cn()&&n.findTrackedSession()){var i,o,a,s,u,c=b(t.allowedTracingUrls,(function(t){return An([t.match],e.url,!0)}));if(c)e.traceId=new In,e.spanId=new In,e.traceSampled=!lt(t.traceSampleRate)||st(t.traceSampleRate),r((i=e.traceId,o=e.spanId,a=e.traceSampled,s=c.propagatorTypes,u={},s.forEach((function(t){switch(t){case"datadog":k(u,{"x-datadog-origin":"rum","x-datadog-parent-id":o.toDecimalString(),"x-datadog-sampling-priority":a?"1":"0","x-datadog-trace-id":i.toDecimalString()});break;case"tracecontext":k(u,{traceparent:"00-0000000000000000".concat(i.toPaddedHexadecimalString(),"-").concat(o.toPaddedHexadecimalString(),"-0").concat(a?"1":"0")});break;case"b3":k(u,{b3:"".concat(i.toPaddedHexadecimalString(),"-").concat(o.toPaddedHexadecimalString(),"-").concat(a?"1":"0")});break;case"b3multi":k(u,{"X-B3-TraceId":i.toPaddedHexadecimalString(),"X-B3-SpanId":o.toPaddedHexadecimalString(),"X-B3-Sampled":a?"1":"0"})}})),u))}}function Cn(){return window.crypto||window.msCrypto}var In=function(){function t(){this.buffer=new Uint8Array(8),Cn().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}return t.prototype.toString=function(t){var e=this.readInt32(0),n=this.readInt32(4),r="";do{var i=e%t*4294967296+n;e=Math.floor(e/t),n=Math.floor(i/t),r=(i%t).toString(t)+r}while(e||n);return r},t.prototype.toDecimalString=function(){return this.toString(10)},t.prototype.toPaddedHexadecimalString=function(){var t=this.toString(16);return Array(17-t.length).join("0")+t},t.prototype.readInt32=function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]},t}(),Pn=["tracecontext","datadog"];function Rn(t){var e,n;if(t.applicationId)if(void 0===t.sessionReplaySampleRate||ct(t.sessionReplaySampleRate))if(void 0===t.traceSampleRate||ct(t.traceSampleRate))if(void 0===t.excludedActivityUrls||Array.isArray(t.excludedActivityUrls)){var r=function(t){if(void 0!==t.allowedTracingUrls){if(!Array.isArray(t.allowedTracingUrls))return void u.error("Allowed Tracing URLs should be an array");if(0!==t.allowedTracingUrls.length&&void 0===t.service)return void u.error("Service needs to be configured when tracing is enabled");var e=[];return t.allowedTracingUrls.forEach((function(t){var n;kn(t)?e.push({match:t,propagatorTypes:Pn}):"object"===B(n=t)&&kn(n.match)&&Array.isArray(n.propagatorTypes)?e.push(t):u.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t)})),e}return[]}(t);if(r){var i=En(t);if(i)return k({applicationId:t.applicationId,version:t.version,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:null!==(e=t.sessionReplaySampleRate)&&void 0!==e?e:0,startSessionReplayRecordingManually:!!t.startSessionReplayRecordingManually,traceSampleRate:t.traceSampleRate,allowedTracingUrls:r,excludedActivityUrls:null!==(n=t.excludedActivityUrls)&&void 0!==n?n:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!t.trackUserInteractions,trackViewsManually:!!t.trackViewsManually,trackResources:!!t.trackResources,trackLongTasks:!!t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:ke(Sn,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:Sn.MASK,customerDataTelemetrySampleRate:1},i)}}else u.error("Excluded Activity Urls should be an array");else u.error("Trace Sample Rate should be a number between 0 and 100");else u.error("Session Replay Sample Rate should be a number between 0 and 100");else u.error("Application ID is not configured, no RUM data will be collected.")}function Nn(t){var e=new Set;return Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0&&t.allowedTracingUrls.forEach((function(t){kn(t)?Pn.forEach((function(t){return e.add(t)})):"object"===B(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach((function(t){return e.add(t)}))})),y(e)}function Ln(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}function Mn(t,e){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}var Dn,jn={log:"log",configuration:"configuration"},Un=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],Fn=["ddog-gov.com"],Bn={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1,telemetryConfigurationEnabled:!1};function Vn(t,e){var n,r=new Q;Bn.telemetryEnabled=!g(Fn,e.site)&&st(e.telemetrySampleRate),Bn.telemetryConfigurationEnabled=Bn.telemetryEnabled&&st(e.telemetryConfigurationSampleRate);var i={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return Dn=function(e){if(Bn.telemetryEnabled){var o=function(t,e,r){return q({type:"telemetry",date:bt(),service:t,version:"5.3.0",source:"browser",_dd:{format_version:2},telemetry:q(e,{runtime_env:r}),experimental_features:y(Ee())},void 0!==n?n():{})}(t,e,i);r.notify(o),Mn("telemetry",o)}},l=Hn,k(Bn,{maxEventsPerPage:e.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(t){n=t},observable:r,enabled:Bn.telemetryEnabled}}function zn(t){return t.site===pn}function qn(t,e){_(i.debug,t,e),Yn(k({type:jn.log,message:t,status:"debug"},e))}function Hn(t,e){Yn(k({type:jn.log,status:"error"},function(t){if(t instanceof Error){var e=te(t);return{error:{kind:e.name,stack:me(Kn(e))},message:e.message}}return{error:{stack:he},message:"".concat("Uncaught"," ").concat(H(t))}}(t),e))}function Gn(t){Bn.telemetryConfigurationEnabled&&Yn({type:jn.configuration,configuration:t})}function Yn(t){Dn&&Bn.sentEventCountt[n])return!1;return!0}function rr(t){var e=ir(t);if(e){var n=e.startTime,r=e.fetchStart,i=e.redirectStart,o=e.redirectEnd,a=e.domainLookupStart,s=e.domainLookupEnd,u=e.connectStart,c=e.secureConnectionStart,l=e.connectEnd,d=e.requestStart,f=e.responseStart,h={download:ar(n,f,e.responseEnd),first_byte:ar(n,d,f)};return l!==r&&(h.connect=ar(n,u,l),nr(u,c,l)&&(h.ssl=ar(n,c,l))),s!==r&&(h.dns=ar(n,a,s)),or(t)&&(h.redirect=ar(n,i,o)),h}}function ir(t){if(nr(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd)){if(!or(t))return t;var e=t.redirectStart,n=t.redirectEnd;if(e=0;e-=1){var n,r=t.body.childNodes[e];if(n=yr(r))return n;if(!cr(r))break}}(t);if(!e)return;return gr(Rt(e,"trace-id"),Rt(e,"trace-time"))}(t);if(e&&!(e.traceTime<=yt()-mr))return e.traceId}function gr(t,e){var n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function yr(t){if(t&&function(t){return t.nodeType===Node.COMMENT_NODE}(t)){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function br(){return void 0!==window.performance&&"getEntries"in performance}function wr(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function Sr(t,e){if(function(t,e){Xn(t,"interactive",(function(){var t,n={entryType:vr.RESOURCE,initiatorType:Qn,traceId:_r(document),toJSON:function(){return k({},t,{toJSON:void 0})}};if(wr(vr.NAVIGATION)&&performance.getEntriesByType(vr.NAVIGATION).length>0){var r=performance.getEntriesByType(vr.NAVIGATION)[0];t=k(r.toJSON(),n)}else{var i=Er();t=k(i,{decodedBodySize:0,duration:i.responseEnd,name:window.location.href,startTime:0},n)}e(t)}))}(e,(function(n){Or(t,e,[n])})),br()){var n=performance.getEntries();L((function(){return Or(t,e,n)}))}if(window.PerformanceObserver){var r=v((function(n){return Or(t,e,n.getEntries())})),i=[vr.RESOURCE,vr.NAVIGATION,vr.LONG_TASK,vr.PAINT],o=[vr.LARGEST_CONTENTFUL_PAINT,vr.FIRST_INPUT,vr.LAYOUT_SHIFT,vr.EVENT];try{o.forEach((function(t){new window.PerformanceObserver(r).observe({type:t,buffered:!0,durationThreshold:40})}))}catch(t){i.push.apply(i,o)}new PerformanceObserver(r).observe({entryTypes:i}),br()&&"addEventListener"in performance&&Kt(e,performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()}))}wr(vr.NAVIGATION)||function(t,e){function n(){e(k(Er(),{entryType:vr.NAVIGATION}))}Xn(t,"complete",(function(){L(n)}))}(e,(function(n){Or(t,e,[n])})),wr(vr.FIRST_INPUT)||function(t,e){var n=yt(),r=!1,i=Wt(t,window,[Ut.CLICK,Ut.MOUSE_DOWN,Ut.KEY_DOWN,Ut.TOUCH_START,Ut.POINTER_DOWN],(function(e){if(e.cancelable){var n={entryType:vr.FIRST_INPUT,processingStart:wt(),processingEnd:wt(),startTime:e.timeStamp,duration:0,name:""};e.type===Ut.POINTER_DOWN?o(t,n):a(n)}}),{passive:!0,capture:!0}).stop;function o(t,e){Wt(t,window,[Ut.POINTER_UP,Ut.POINTER_CANCEL],(function(t){t.type===Ut.POINTER_UP&&a(e)}),{once:!0})}function a(t){if(!r){r=!0,i();var o=t.processingStart-t.startTime;o>=0&&o=0&&n.entries.splice(t,1)},close:function(t){r.endTime=t}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},t.prototype.find=function(t){void 0===t&&(t=Ur);for(var e=0,n=this.entries;e0&&this.entries[this.entries.length-1].endTime=500}function ei(t){try{return t.clone()}catch(t){return}}function ni(t,e,n){var r=t.getReader(),i=[],o=0;function a(){var t,a;if(r.cancel().catch(F),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var u=0;i.forEach((function(t){s.set(t,u),u+=t.length}))}t=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}e(void 0,t,a)}!function t(){r.read().then(v((function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())})),v((function(t){return e(t)})))}()}var ri=1;function ii(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:Tn,traceFetch:function(n){return xn(t,n,e,(function(t){var e;if(n.input instanceof Request&&!(null===(e=n.init)||void 0===e?void 0:e.headers))n.input=new Request(n.input),Object.keys(t).forEach((function(e){n.input.headers.append(e,t[e])}));else{n.init=Oe(n.init);var r=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,e){r.push([e,t])})):Array.isArray(n.init.headers)?n.init.headers.forEach((function(t){r.push(t)})):n.init.headers&&Object.keys(n.init.headers).forEach((function(t){r.push([t,n.init.headers[t]])})),n.init.headers=r.concat(S(t))}}))},traceXhr:function(n,r){return xn(t,n,e,(function(t){Object.keys(t).forEach((function(e){r.setRequestHeader(e,t[e])}))}))}}}(e,n);!function(t,e,n){var r=Kr(e).subscribe((function(r){var i=r;if(ur(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=oi(),t.notify(5,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(6,{duration:i.duration,method:i.method,requestIndex:i.requestIndex,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:"xhr",url:i.url,xhr:i.xhr})}}))}(t,e,r),function(t,e,n){var r=Jr().subscribe((function(r){var i=r;if(ur(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=oi(),t.notify(5,{requestIndex:i.requestIndex,url:i.url});break;case"resolve":!function(t,e){var n=t.response&&ei(t.response);n&&n.body?ni(n.body,(function(){e(Ot(t.startClocks.timeStamp,bt()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(Ot(t.startClocks.timeStamp,bt()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(6,{duration:e,method:i.method,requestIndex:i.requestIndex,responseType:i.responseType,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:"fetch",url:i.url,response:i.response,init:i.init,input:i.input})}))}}))}(t,e,r)}function oi(){var t=ri;return ri+=1,t}function ai(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange,i=void 0===r?F:r,o={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},a=e.subscribe(11,(function(t){var e;if("view"!==t.type&&n(t))switch(t.type){case"error":o.errorCount+=1,i();break;case"action":o.actionCount+=1,t.action.frustration&&(o.frustrationCount+=t.action.frustration.type.length),i();break;case"long_task":o.longTaskCount+=1,i();break;case"resource":(null===(e=t._dd)||void 0===e?void 0:e.discarded)||(o.resourceCount+=1,i())}}));return{stop:function(){a.unsubscribe()},eventCounts:o}}var si=100,ui=100;function ci(t,e,n,r,i){var o=function(t,e,n){var r=new Q((function(){var i,o=[],a=0;o.push(e.subscribe(c),t.subscribe(0,(function(t){t.some((function(t){return t.entryType===vr.RESOURCE&&!li(n,t.name)}))&&c()})),t.subscribe(5,(function(t){li(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,c())})),t.subscribe(6,(function(t){li(n,t.url)||void 0===i||t.requestIndex0})}}));return r}(t,e,n);return function(t,e,n){var r,i=!1,o=L(v((function(){return c({hadActivity:!1})})),si),a=void 0!==n?L(v((function(){return c({hadActivity:!0,end:bt()})})),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;M(o),M(r);var n=bt();e||(r=L(v((function(){return c({hadActivity:!0,end:n})})),ui))})),u=function(){i=!0,M(o),M(r),M(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(o,r,i)}function li(t,e){return An(t.excludedActivityUrls,e)}var di="data-dd-action-name";function fi(t,e){return hi(t,di)||e&&hi(t,e)||yi(t,e,mi)||yi(t,e,_i)||""}function hi(t,e){var n;if(function(){void 0===vi&&(vi="closest"in HTMLElement.prototype);return vi}())n=t.closest("[".concat(e,"]"));else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return wi(bi(n.getAttribute(e).trim()))}var pi,vi,mi=[function(t,e){if(function(){void 0===pi&&(pi="labels"in HTMLInputElement.prototype);return pi}()){if("labels"in t&&t.labels&&t.labels.length>0)return Si(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&b(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&Si(n,e)}},function(t){if("INPUT"===t.nodeName){var e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return e.value}},function(t,e){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return Si(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var n=t.getAttribute("aria-labelledby");if(n)return n.split(/\s+/).map((function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})).filter((function(t){return Boolean(t)})).map((function(t){return Si(t,e)})).join(" ")},function(t){return t.getAttribute("alt")},function(t){return t.getAttribute("name")},function(t){return t.getAttribute("title")},function(t){return t.getAttribute("placeholder")},function(t,e){if("options"in t&&t.options.length>0)return Si(t.options[0],e)}],_i=[function(t,e){return Si(t,e)}],gi=10;function yi(t,e,n){for(var r=t,i=0;i<=gi&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var o=0,a=n;o100?"".concat(Nt(t,100)," [...]"):t}function Si(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,r=function(e){for(var r=t.querySelectorAll(e),i=0;i0&&(n=n.replace(a,""))}}};return 0===Ie()&&r("script, style"),r("[".concat(di,"]")),e&&r("[".concat(e,"]")),n}return t.textContent}}var Ei,Oi=[di,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],ki=[Ci,function(t){if(t.id&&!xi(t.id))return"#".concat(O(t.id))}],Ai=[Ci,function(t){if("BODY"===t.tagName)return;if(t.classList.length>0)for(var e=0;e").concat(e):t}var Mi=ft,Di=100;function ji(t,e){var n,r=[],i=0;function o(t){t.stopObservable.subscribe(a),r.push(t),M(n),n=L(s,Mi)}function a(){1===i&&r.every((function(t){return t.isStopped()}))&&(i=2,e(r))}function s(){M(n),0===i&&(i=1,a())}return o(t),{tryAppend:function(t){return 0===i&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(a=e,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2))<=Di)&&e.timeStamp-n.timeStamp<=Mi))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}function Ui(){var t=window.getSelection();return!t||t.isCollapsed}function Fi(t){return t.target instanceof Element&&!1!==t.isPrimary}var Bi=3;function Vi(t,e){if(function(t){if(t.some((function(t){return t.getUserActivity().selection})))return!1;for(var e=0;e0},get hasPageActivity(){return void 0!==o},getUserActivity:n,addFrustration:function(t){d.push(t)},startClocks:s,isStopped:function(){return 1===l||2===l},clone:function(){return Ki(t,e,n,r,i)},validate:function(e){if(h(),1===l){var n=c.eventCounts,u=n.resourceCount,f=n.errorCount,p=n.longTaskCount,v=k({type:"click",duration:o&&Ot(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:d,counts:{resourceCount:u,errorCount:f,longTaskCount:p},events:null!=e?e:[i],event:i},r);t.notify(1,v),l=2}},discard:function(){h(),l=2}}}function Wi(t,e){var n=$i(t)?{action:{id:t.id,loading_time:gt(t.duration),frustration:{type:t.frustrationTypes},error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_dd:{action:{target:t.target,position:t.position}}}:void 0;return{customerContext:$i(t)?void 0:t.context,rawRumEvent:q({action:{id:xt(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action",view:{in_foreground:e.isInActivePageStateAt(t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:$i(t)?{events:t.events}:{}}}function $i(t){return"custom"!==t.type}function Zi(t){var e,n=function(e,n){var r=pe({stackTrace:e,originalError:n,startClocks:St(),nonErrorPrefix:"Uncaught",source:kr.SOURCE,handling:"unhandled"});t.notify(r)},r=(e=n,qr(window,"onerror",{before:function(t,n,r,i,o){var a;a=o instanceof Error?te(o):le(t,n,r,i),e(a,null!=o?o:t)}})).stop,i=function(t){return qr(window,"onunhandledrejection",{before:function(e){var n=e.reason||"Empty reason",r=te(n);t(r,n)}})}(n).stop;return{stop:function(){r(),i()}}}var Ji={};function Xi(t){var e=t.map((function(t){return Ji[t]||(Ji[t]=function(t){var e=new Q((function(){var n=o[t];return o[t]=function(){for(var r=[],o=0;o=r-o&&io(n)<=kt(i,o);var n,r,i,o}));return 1===n.length?n[0]:void 0}}}function io(t){return kt(t.startTime,t.duration)}function oo(t,e,n,r){t.subscribe(6,(function(i){var o=function(t,e,n,r){var i,o=ro(t),a=o?mt(o.startTime):t.startClocks,s=so(e,n,a),u=function(t,e){var n=t.traceSampled&&t.traceId&&t.spanId;if(!n)return;return{_dd:{span_id:t.spanId.toDecimalString(),trace_id:t.traceId.toDecimalString(),rule_psr:co(e)}}}(t,e);if(!s&&!u)return;var c="xhr"===t.type?"xhr":"fetch",l=o?uo(o):void 0,d=function(t,e,n){var r,i=null===(r=t.findAll(e.relative,n))||void 0===r?void 0:r.some((function(t){return"frozen"===t.state}));return i?void 0:gt(n)}(r,a,t.duration),f=lo(r,a,null!==(i=null==o?void 0:o.duration)&&void 0!==i?i:t.duration),h=q({date:a.timeStamp,resource:{id:xt(),type:c,duration:d,method:t.method,status_code:t.status,url:t.url},type:"resource",_dd:{discarded:!s}},u,l,f);return{startTime:a.relative,rawRumEvent:h,domainContext:{performanceEntry:o,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}}(i,e,n,r);o&&t.notify(10,o)})),t.subscribe(0,(function(i){for(var o=0,a=i;o=0&&i.responseStart<=wt()?i.responseStart:void 0})}})).unsubscribe}}(t,(function(t){n(t.loadEvent),i.navigationTimings=t,r()})).stop,a=function(t,e){var n,r;return void 0===e&&(e=window),"hidden"===document.visibilityState?n=0:(n=1/0,r=Wt(t,e,[Ut.PAGE_HIDE,Ut.VISIBILITY_CHANGE],(function(t){t.type!==Ut.PAGE_HIDE&&"hidden"!==document.visibilityState||(n=t.timeStamp,r())}),{capture:!0}).stop),{get timeStamp(){return n},stop:function(){null==r||r()}}}(e),s=function(t,e,n){return{stop:t.subscribe(0,(function(t){var r=b(t,(function(t){return t.entryType===vr.PAINT&&"first-contentful-paint"===t.name&&t.startTime=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(t,(function(t){return t.entryType===vr.LARGEST_CONTENTFUL_PAINT&&t.startTime=0?o:0,time:i.startTime,targetSelector:a})}})).unsubscribe}}(t,e,a,(function(t){i.firstInput=t,r()})).stop;return{stop:function(){o(),s(),u(),c(),a.stop()},initialViewMetrics:i}}function mo(t,e,n){if(!wr(vr.LAYOUT_SHIFT))return{stop:F};var r=0;n({value:0});var i=function(){var t,e,n,r,i=0,o=0;return{update:function(a){var s,u;void 0===t||a.startTime-e>=ft||a.startTime-t>=5*ft?(t=e=a.startTime,i=a.value,o=0,n=void 0):(i+=a.value,e=a.startTime),a.value>o&&(o=a.value,r=a.startTime,n=(null===(s=a.sources)||void 0===s?void 0:s.length)?null===(u=b(a.sources,(function(t){return!!t.node&&lr(t.node)})))||void 0===u?void 0:u.node:void 0)},value:function(){return i},largestLayoutShiftTarget:function(){return n},largestLayoutShiftTime:function(){return r}}}();return{stop:e.subscribe(0,(function(e){for(var o=0,a=e;or)){var u=ut(r=i.value(),4),c=i.largestLayoutShiftTarget(),l=void 0;Se(fe.WEB_VITALS_ATTRIBUTION)&&c&&c.isConnected&&(l=Ti(c,t.actionNameAttribute)),n({value:u,targetSelector:l})}}})).unsubscribe}}var _o=0,go=1/0,yo=0;var bo,wo=function(){return ho?_o:window.performance.interactionCount||0},So=10,Eo=1*ht;function Oo(t,e,n,r){if(!(wr(vr.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:F,stop:F};var i,o=function(t){"interactionCount"in performance||ho||(ho=new window.PerformanceObserver(v((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(go=Math.min(go,e.interactionId),yo=Math.max(yo,e.interactionId),_o=(yo-go)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e="initial_load"===t?0:wo(),n={stopped:!1};function r(){return wo()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),a=o.getViewInteractionCount,s=o.stopViewInteractionCount,u=1/0,c=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(So)}return{process:function(t){var r=e.findIndex((function(e){return t.interactionId===e.interactionId})),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.lengthi.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(a),l=-1;return{getInteractionToNextPaint:function(){return l>=0?{value:Math.min(l,Eo),targetSelector:i}:a()?{value:0}:void 0},setViewEnd:function(t){u=t,s()},stop:r.subscribe(0,(function(n){for(var r=0,o=n;r=e&&a.startTime<=u&&c.process(a)}var s=c.estimateP98Interaction();s&&(l=s.duration,i=Se(fe.WEB_VITALS_ATTRIBUTION)&&s.target&&lr(s.target)?Ti(s.target,t.actionNameAttribute):void 0)})).unsubscribe}}function ko(){var t,e=window.visualViewport;return t=e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(t)}function Ao(){var t,e=window.visualViewport;return t=e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(t)}function To(t){return bo||(bo=function(t){var e=new Q((function(){var n=U((function(){e.notify(xo())}),200).throttled;return Kt(t,window,Ut.RESIZE,n,{capture:!0,passive:!0}).stop}));return e}(t)),bo}function xo(){var t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var Co=ft;function Io(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=Co);var n=new Q((function(){function r(){var t,e,r,i;n.notify((t=Ao(),e=xo().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),i=Math.round(e+t),{scrollHeight:r,scrollDepth:i,scrollTop:t}))}if(window.ResizeObserver){var i=U(r,e,{leading:!1,trailing:!0}),o=document.scrollingElement||document.documentElement,a=new ResizeObserver(v(i.throttled));a.observe(o);var s=Kt(t,window,Ut.SCROLL,i.throttled,{passive:!0});return function(){i.cancel(),a.unobserve(o),s.stop()}}}));return n}(t));var i=0,o=0,a=0,s=r.subscribe((function(t){var r=t.scrollDepth,s=t.scrollTop,u=t.scrollHeight,c=!1;if(r>i&&(i=r,c=!0),u>o){o=u;var l=wt();a=Ot(e.relative,l),c=!0}c&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:s,maxScrollHeight:o,maxScrollHeightTime:a})}));return{stop:function(){return s.unsubscribe()}}}function Po(t,e,n,r,i,o){var a={},s=function(t,e,n,r,i,o){var a="initial_load"===r,s=!0,u=[];function c(){!s&&!a&&u.length>0&&o(Math.max.apply(Math,u))}return{stop:ci(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(Ot(i.timeStamp,t.end)),c())})).stop,setLoadEvent:function(t){a&&(a=!1,u.push(t),c())}}}(t,e,n,i,o,(function(t){a.loadingTime=t,r()})),u=s.stop,c=s.setLoadEvent,l=Io(n,o,(function(t){a.scroll=t})).stop,d=mo(n,t,(function(t){a.cumulativeLayoutShift=t,r()})).stop,f=Oo(n,o.relative,i,t),h=f.stop,p=f.getInteractionToNextPaint;return{stop:function(){u(),d(),l()},stopINPTracking:h,setLoadEvent:c,setViewEnd:f.setViewEnd,getCommonViewMetrics:function(){return a.interactionToNextPaint=p(),a}}}var Ro=3e3,No=5*ht,Lo=5*ht;function Mo(t,e,n,r,i,o,a){var s,c=new Set,l=d("initial_load",Et(),a);function d(i,o,a){var s=function(t,e,n,r,i,o,a){void 0===o&&(o=St());var s,c,l,d,f=xt(),h=new Q,p={},v=0,m=Oe(r),_=!0;a&&(c=a.name,l=a.service,d=a.version);t.notify(2,{id:f,name:c,startClocks:o,service:l,version:d});var g=U(M,Ro,{leading:!1}),y=g.throttled,b=g.cancel,w=Po(t,e,n,y,i,o),S=w.setLoadEvent,E=w.setViewEnd,O=w.stop,k=w.stopINPTracking,A=w.getCommonViewMetrics,T="initial_load"===i?vo(t,n,S,y):{stop:F,initialViewMetrics:{}},x=T.stop,C=T.initialViewMetrics,I=function(t,e,n){var r=ai({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,f,y),P=I.stop,R=I.eventCounts,N=D(M,No);function M(){b(),v+=1;var e=void 0===s?bt():s.timeStamp;t.notify(3,{customTimings:p,documentVersion:v,id:f,name:c,service:l,version:d,loadingType:i,location:m,startClocks:o,commonViewMetrics:A(),initialViewMetrics:C,duration:Ot(o.timeStamp,e),isActive:void 0===s,sessionIsActive:_,eventCounts:R})}return M(),{name:c,service:l,version:d,stopObservable:h,end:function(e){var n,r,i=this;void 0===e&&(e={}),s||(s=null!==(n=e.endClocks)&&void 0!==n?n:St(),_=null===(r=e.sessionIsActive)||void 0===r||r,t.notify(4,{endClocks:s}),j(N),E(s.relative),O(),M(),L((function(){i.stop()}),Lo))},stop:function(){x(),P(),k(),h.notify()},addTiming:function(t,e){if(!s){var n=function(t){return t=this.messageBytesLimit?u.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB.")):(this.hasMessageFor(e)&&this.remove(e),this.push(n,r,e))},t.prototype.push=function(t,e,n){var r=this;this.flushController.notifyBeforeAddMessage(e),void 0!==n?(this.upsertBuffer[n]=t,this.flushController.notifyAfterAddMessage()):this.encoder.write(this.encoder.isEmpty?t:"\n".concat(t),(function(t){r.flushController.notifyAfterAddMessage(t-e)}))},t.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=this.encoder.estimateEncodedBytesCount(e);this.flushController.notifyAfterRemoveMessage(n)},t.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]},t}();function Ko(t,e){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),bytesCount:t.outputBytesCount,encoding:t.encoding,flushReason:e.reason}}var Wo=80*C,$o=32,Zo=3*I,Jo=ht,Xo=ft;function Qo(t,e,n,r,i){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?ea(t,e,n,{onSuccess:function(){return na(0,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),ta(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function ta(t,e,n,r){2===t.transportStatus&&L((function(){ea(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=Xo,na(1,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(Jo,2*t.currentBackoffTime),ta(t,e,n,r)}})}),t.currentBackoffTime)}function ea(t,e,n,r){var i=r.onSuccess,o=r.onFailure;e.bandwidthMonitor.add(t),n(t,(function(n){e.bandwidthMonitor.remove(t),!function(t){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||ti(t.status))}(n)?(e.transportStatus=0,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o())}))}function na(t,e,n,r,i){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max ".concat(r," events size queued for upload: ").concat(Zo/I,"MiB"),source:kr.AGENT,startClocks:St()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=ra();o.size()>0;)Qo(o.dequeue(),e,n,r,i)}function ra(){var t=[];return{bytesCount:0,enqueue:function(e){this.isFull()||(t.push(e),this.bytesCount+=e.bytesCount)},first:function(){return t[0]},dequeue:function(){var e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:function(){return t.length},isFull:function(){return this.bytesCount>=Zo}}}function ia(t,e,n,r){var i={transportStatus:0,currentBackoffTime:Xo,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=Wo&&this.ongoingRequestCount<$o},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:ra(),queueFullReported:!1},o=function(r,i){return function(t,e,n,r,i){var o=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&r.bytesCount=r&&f("bytes_limit"),d+=1,l+=t,void 0===e&&(e=L((function(){f("duration_limit")}),i))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),l+=t,d>=n?f("messages_limit"):l>=r&&f("bytes_limit")},notifyAfterRemoveMessage:function(t){l-=t,0===(d-=1)&&h()}}}function ua(t,e,n,r,i,o){var a=u(t,e),s=n&&u(t,n);function u(t,e){var n=e.endpoint,a=e.encoder;return new Yo(a,ia(t,n,t.batchBytesLimit,r),sa({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:i,sessionExpireObservable:o}),t.messageBytesLimit)}return{flushObservable:a.flushController.flushObservable,add:function(t,e){void 0===e&&(e=!0),a.add(t),s&&e&&s.add(n.transformMessage?n.transformMessage(t):t)},upsert:function(t,e){a.upsert(t,e),s&&s.upsert(n.transformMessage?n.transformMessage(t):t,e)},stop:function(){a.stop(),null==s||s.stop()}}}var ca=xe;function la(t,e){var n=Oe(e),r=new Q((function(){var e=function(t,e){var n=qr(history,"pushState",{after:e}).stop,r=qr(history,"replaceState",{after:e}).stop,i=Kt(t,window,Ut.POP_STATE,e).stop;return{stop:function(){n(),r(),i()}}}(t,i).stop,n=function(t,e){return Kt(t,window,Ut.HASH_CHANGE,e)}(t,i).stop;return function(){e(),n()}}));function i(){if(n.href!==e.href){var t=Oe(e);r.notify({newLocation:t,oldLocation:n}),n=t}}return r}var da=xe,fa=200;var ha,pa,va,ma=10*ft;function _a(){0!==ha.batchCount&&(qn("Customer data measures",ha),ba())}function ga(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function ya(t,e){t.sum+=e.sum,t.min=Math.min(t.min,e.min),t.max=Math.max(t.max,e.max)}function ba(){ha={batchCount:0,batchBytesCount:{min:1/0,max:0,sum:0},batchMessagesCount:{min:1/0,max:0,sum:0},globalContextBytes:{min:1/0,max:0,sum:0},userContextBytes:{min:1/0,max:0,sum:0},featureFlagBytes:{min:1/0,max:0,sum:0}}}function wa(){va=!1,pa={globalContextBytes:{min:1/0,max:0,sum:0},userContextBytes:{min:1/0,max:0,sum:0},featureFlagBytes:{min:1/0,max:0,sum:0}}}var Sa=4e3,Ea=500,Oa=xe;function ka(t,e){void 0===e&&(e=Ea);var n,r=new Br(Oa,Sa);o(Aa(),wt());var i=Wt(t,window,[Ut.PAGE_SHOW,Ut.FOCUS,Ut.BLUR,Ut.VISIBILITY_CHANGE,Ut.RESUME,Ut.FREEZE,Ut.PAGE_HIDE],(function(t){o(function(t){if(t.type===Ut.FREEZE)return"frozen";if(t.type===Ut.PAGE_HIDE)return t.persisted?"frozen":"terminated";return Aa()}(t),t.timeStamp)}),{capture:!0}).stop;function o(t,e){void 0===e&&(e=wt()),t!==n&&(n=t,r.closeActive(e),r.add({state:n,startTime:e},e))}return{findAll:function(t,n){var i=r.findAll(t,n);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-e),s=i.length-1;s>=a;s--){var u=i[s],c=Ot(t,u.startTime);o.push({state:u.state,start:gt(c)})}return o}},isInActivePageStateAt:function(t){var e=r.find(t);return void 0!==e&&"active"===e.state},addPageState:o,stop:function(){i(),r.stop()}}}function Aa(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function Ta(t,e){var n=e.session,r=e.viewContext,i=e.errorType,o=n?n.id:"no-session-id",a=[];void 0!==i&&a.push("error-type=".concat(i)),r&&(a.push("seed=".concat(r.id)),a.push("from=".concat(r.startClocks.timeStamp)));var s,u,c,l=(u=(s=t).site,c=s.subdomain||function(t){switch(t.site){case vn:case mn:return"app";case pn:return"dd";default:return}}(s),"https://".concat(c?"".concat(c,"."):"").concat(u)),d="/rum/replay/sessions/".concat(o);return"".concat(l).concat(d,"?").concat(a.join("&"))}var xa={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},Ca={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},Ia={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},Pa={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},Ra={Play:0,Pause:1};function Na(t,e){return{data:k({source:t},e),type:xa.IncrementalSnapshot,timestamp:bt()}}var La={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:Sn.ALLOW,MASK:Sn.MASK,MASK_USER_INPUT:Sn.MASK_USER_INPUT},Ma="data-dd-privacy",Da="allow",ja="mask",Ua="mask-user-input",Fa="hidden",Ba="dd-privacy-allow",Va="dd-privacy-mask",za="dd-privacy-mask-user-input",qa="dd-privacy-hidden",Ha="***",Ga="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",Ya={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},Ka=1e5;function Wa(t,e){var n=pr(t),r=n?Wa(n,e):e;return $a(Za(t),r)}function $a(t,e){switch(e){case La.HIDDEN:case La.IGNORE:return e}switch(t){case La.ALLOW:case La.MASK:case La.MASK_USER_INPUT:case La.HIDDEN:case La.IGNORE:return t;default:return e}}function Za(t){if(lr(t)){var e=t.getAttribute(Ma);if("BASE"===t.tagName)return La.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return La.MASK;if("hidden"===n.type)return La.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return La.MASK}return e===Fa||t.classList.contains(qa)?La.HIDDEN:e===ja||t.classList.contains(Va)?La.MASK:e===Ua||t.classList.contains(za)?La.MASK_USER_INPUT:e===Da||t.classList.contains(Ba)?La.ALLOW:function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){var e=i("rel");return/preload|prefetch/i.test(e)&&"script"===i("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=i("name"),r=(e=i("rel"),i("property"));return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===e||"apple-touch-icon"===e||"shortcut icon"===e||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(r)||/^product:/.test(r)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function i(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?La.IGNORE:void 0}}function Ja(t,e){switch(e){case La.MASK:case La.HIDDEN:case La.IGNORE:return!0;case La.MASK_USER_INPUT:return cr(t)?Xa(t.parentNode):Xa(t);default:return!1}}function Xa(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;var e=t;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!Ya[e.tagName]}var Qa=function(t){return t.replace(/\S/g,"x")};function ts(t,e,n){var r,i=null===(r=t.parentElement)||void 0===r?void 0:r.tagName,o=t.textContent||"";if(!e||o.trim()){var a=n;if("SCRIPT"===i)o=Ha;else if(a===La.HIDDEN)o=Ha;else if(Ja(t,a))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?Ha:Qa(o);return o}}var es=new WeakMap;function ns(t){return es.has(t)}function rs(t){return es.get(t)}function is(t,e){var n=t.tagName,r=t.value;if(Ja(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i))return r;if(!r||"OPTION"===n)return;return Ha}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var os=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,as=/^[A-Za-z]+:|^\/\//,ss=/^data:.*,/i;function us(t,e){return t.replace(os,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||as.test(s)||ss.test(s))return t;var u=n||i||"";return"url(".concat(u).concat(function(t,e){try{return ln(t,e).href}catch(e){return t}}(s,e)).concat(u,")")}))}var cs=/[^a-z1-6-_]/;function ls(t){var e=t.toLowerCase().trim();return cs.test(e)?"div":e}function ds(t){if(void 0!==t&&0!==t.length)return t.map((function(t){var e=t.cssRules||t.rules;return{cssRules:Array.from(e,(function(t){return t.cssText})),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}}))}function fs(t,e,n,r){if(e===La.HIDDEN)return null;var i=t.getAttribute(n);if(e===La.MASK&&n!==Ma&&!Oi.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return Ha}if(!("IMG"!==o&&"SOURCE"!==o||"src"!==n&&"srcset"!==n))return Ga;if("A"===o&&"href"===n)return Ha;if(i&&E(n,"data-"))return Ha}return i&&"string"==typeof i&&i.length>Ka&&"data:"===i.slice(0,5)?"data:truncated":i}function hs(t){if(!t)return null;var e;try{e=t.rules||t.cssRules}catch(t){}return e?us(Array.from(e,2===Ie()?ps:vs).join(""),t.href):null}function ps(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){return t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2")}return vs(t)}function vs(t){return function(t){return"styleSheet"in t}(t)&&hs(t.styleSheet)||t.cssText}function ms(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:Ca.Document,childNodes:gs(t,e),adoptedStyleSheets:ds(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=fr(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:Ca.DocumentFragment,childNodes:gs(t,e),isShadowRoot:n,adoptedStyleSheets:n?ds(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return n=t,{type:Ca.DocumentType,name:n.name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n,r=ls(t.tagName),i=(a=t,"svg"===a.tagName||a instanceof SVGElement||void 0),o=$a(Za(t),e.parentNodePrivacyLevel);var a;if(o===La.HIDDEN){var s=t.getBoundingClientRect(),u=s.width,c=s.height;return{type:Ca.Element,tagName:r,attributes:(n={rr_width:"".concat(u,"px"),rr_height:"".concat(c,"px")},n[Ma]=Fa,n),childNodes:[],isSVG:i}}if(o===La.IGNORE)return;var l=function(t,e,n){var r;if(e===La.HIDDEN)return{};for(var i={},o=ls(t.tagName),a=t.ownerDocument,s=0;s0||dr(t)}(t)&&"style"!==r){d=gs(t,e.parentNodePrivacyLevel===o&&e.ignoreWhiteSpace===("head"===r)?e:k({},e,{parentNodePrivacyLevel:o,ignoreWhiteSpace:"head"===r}))}return{type:Ca.Element,tagName:r,attributes:l,childNodes:d,isSVG:i}}(t,e);case t.TEXT_NODE:return function(t,e){var n=ts(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:Ca.Text,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:Ca.CDATA,textContent:""}}var n}(t,e);if(!n)return null;var r=rs(t)||_s++,i=n;return i.id=r,function(t,e){es.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}var _s=1;function gs(t,e){var n=[];return hr(t,(function(t){var r=ms(t,e);r&&n.push(r)})),n}function ys(t,e,n){return ms(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function bs(t){return Boolean(t.changedTouches)}function ws(t){return!0===t.composed&&dr(t.target)?t.composedPath()[0]:t.target}var Ss=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualViewportX:t,visualViewportY:e};return n?(!function(t){return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>25||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>25}(n)?(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop)):(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)),r):r},Es=function(t){return{scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width}},Os=50;function ks(t){var e=bs(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=Ss(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r};t.isTrusted&&qn("mouse/touch event without x/y")}var As,Ts=100;var xs=((As={})[Ut.POINTER_UP]=Pa.MouseUp,As[Ut.MOUSE_DOWN]=Pa.MouseDown,As[Ut.CLICK]=Pa.Click,As[Ut.CONTEXT_MENU]=Pa.ContextMenu,As[Ut.DBL_CLICK]=Pa.DblClick,As[Ut.FOCUS]=Pa.Focus,As[Ut.BLUR]=Pa.Blur,As[Ut.TOUCH_START]=Pa.TouchStart,As[Ut.TOUCH_END]=Pa.TouchEnd,As);function Cs(t,e,n){void 0===n&&(n=document);var r,i=t.defaultPrivacyLevel,o=new WeakMap,a=n!==document,s=Wt(t,n,a?[Ut.CHANGE]:[Ut.INPUT,Ut.CHANGE],(function(t){var e=ws(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)}),{capture:!0,passive:!0}).stop;if(a)r=F;else{var u=[Hr(HTMLInputElement.prototype,"value",c),Hr(HTMLInputElement.prototype,"checked",c),Hr(HTMLSelectElement.prototype,"value",c),Hr(HTMLTextAreaElement.prototype,"value",c),Hr(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function c(t){var e=Wa(t,i);if(e!==La.HIDDEN){var n,r=t.type;if("radio"===r||"checkbox"===r){if(Ja(t,e))return;n={isChecked:t.checked}}else{var o=is(t,e);if(void 0===o)return;n={text:o}}l(t,n);var a,s,u=t.name;"radio"===r&&u&&t.checked&&(a=document.querySelectorAll('input[type="radio"][name="'.concat(O(u),'"]')),s=function(e){e!==t&&l(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}}function l(t,n){if(ns(t)){var r=o.get(t);r&&r.text===n.text&&r.isChecked===n.isChecked||(o.set(t,n),e(k({id:rs(t)},n)))}}}function Is(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){var i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(i),e}}var Ps=200;var Rs=100;function Ns(t){var e=F,n=[];function r(){e(),t(n),n=[]}return{addMutations:function(t){0===n.length&&(e=function(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(v(t),e);return function(){return window.cancelIdleCallback(n)}}var r=window.requestAnimationFrame(v(t));return function(){return window.cancelAnimationFrame(r)}}(r,{timeout:Rs})),n.push.apply(n,t)},flush:r,stop:function(){e()}}}function Ls(t,e,n,r){var i=Jn();if(!i)return{stop:F,flush:F};var o=Ns((function(r){!function(t,e,n,r){t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){Ms(t,r.removeShadowRoot)}))}));var i=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!ns(e)&&!fr(e))return!1;e=pr(e)}return!0}(t.target)&&Wa(t.target,n.defaultPrivacyLevel)!==La.HIDDEN})),o=function(t,e,n){for(var r=new Set,i=new Map,o=function(t){t.addedNodes.forEach((function(t){r.add(t)})),t.removedNodes.forEach((function(e){r.has(e)||i.set(e,t.target),r.delete(e)}))},a=0,s=t;aBs&&function(){if(!Fs)return;if(Fs.keys)Fs.delete(Fs.keys().next().value);else{var t=!0;Fs.forEach((function(e,n){t&&(Fs.delete(n),t=!1)}))}}()),e}var qs=function(){function t(t,e,n){this.encoder=t,this.encodedBytesCount=0;var r=e.view.id;this.metadata=k({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:Vs(r),source:"browser"},e),function(t){zs(t).segments_count+=1}(r)}return t.prototype.addRecord=function(t,e){var n,r=this;this.metadata.start=Math.min(this.metadata.start,t.timestamp),this.metadata.end=Math.max(this.metadata.end,t.timestamp),this.metadata.records_count+=1,(n=this.metadata).has_full_snapshot||(n.has_full_snapshot=t.type===xa.FullSnapshot),Mn("record",{record:t,segment:this.metadata}),zs(this.metadata.view.id).records_count+=1;var i=this.encoder.isEmpty?'{"records":[':",";this.encoder.write(i+JSON.stringify(t),(function(t){r.encodedBytesCount+=t,e(r.encodedBytesCount)}))},t.prototype.flush=function(t){var e=this;if(this.encoder.isEmpty)throw new Error("Empty segment flushed");this.encoder.write("],".concat(JSON.stringify(this.metadata).slice(1),"\n")),this.encoder.finish((function(n){var r,i;r=e.metadata.view.id,i=n.rawBytesCount,zs(r).segments_total_raw_size+=i,t(e.metadata,n)}))},t}(),Hs=30*ft,Gs=6e4;function Ys(t,e,n,r,i,o){return function(t,e,n,r){var i={status:0,nextSegmentCreationReason:"init"},o=t.subscribe(2,(function(){s("view_change")})).unsubscribe,a=t.subscribe(9,(function(t){s(t.reason)})).unsubscribe;function s(t){1===i.status&&(i.segment.flush((function(e,r){var i=function(t,e,n){var r=new FormData;r.append("segment",new Blob([t],{type:"application/octet-stream"}),"".concat(e.session.id,"-").concat(e.start));var i=k({raw_segment_size:n,compressed_segment_size:t.byteLength},e),o=JSON.stringify(i);return r.append("event",new Blob([o],{type:"application/json"})),{data:r,bytesCount:t.byteLength}}(r.output,e,r.rawBytesCount);Zn(t)?n.sendOnExit(i):n.send(i)})),M(i.expirationTimeoutId)),i="stop"!==t?{status:0,nextSegmentCreationReason:t}:{status:2}}return{addRecord:function(t){if(2!==i.status){if(0===i.status){var n=e();if(!n)return;i={status:1,segment:new qs(r,n,i.nextSegmentCreationReason),expirationTimeoutId:L((function(){s("segment_duration_limit")}),Hs)}}i.segment.addRecord(t,(function(t){t>Gs&&s("segment_bytes_limit")}))}},stop:function(){s("stop"),o(),a()}}}(t,(function(){return function(t,e,n){var r=e.findTrackedSession(),i=n.findView();if(!r||!i)return;return{application:{id:t},session:{id:r.id},view:{id:i.id}}}(e.applicationId,n,r)}),i,o)}function Ks(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}function Ws(t,e,n,r){var i=e.findTrackedSession(),o=function(t,e){if(!Ks())return"browser-not-supported";if(!t)return"rum-not-tracked";if(!t.sessionReplayAllowed)return"incorrect-session-plan";if(!e)return"replay-not-started"}(i,r);return Ta(t,{viewContext:n.findView(),errorType:o,session:i})}function $s(t,e,n){var r,i=0,o=[],a=0,s=[],u=Kt(t,e,"message",(function(t){var e=t.data;if("wrote"===e.type&&e.streamId===n){i+=e.additionalBytesCount,o.push(e.result),r=e.trailer;var a=s.shift();a&&a.id===e.id?a.writeCallback?a.writeCallback(e.result.byteLength):a.finishCallback&&a.finishCallback():(u(),qn("Worker responses received out of order."))}})).stop;function c(){var t=0===o.length?new Uint8Array(0):function(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(e),r=0,i=0,o=t;i0&&(e.postMessage({action:"reset",streamId:n}),a=0)}return{isAsync:!0,get isEmpty(){return 0===a},write:function(t,r){e.postMessage({action:"write",id:a,data:t,streamId:n}),s.push({id:a,writeCallback:r,data:t}),a+=1},finish:function(t){l(),s.length?(s.forEach((function(t){delete t.writeCallback})),s[s.length-1].finishCallback=function(){return t(c())}):t(c())},finishSync:function(){l();var t=s.map((function(t){return delete t.writeCallback,delete t.finishCallback,t.data})).join("");return k(c(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){u()}}}var Zs=10*ft;function Js(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),_=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<>>=1,a<<=1}while(--e>0);return a>>>1},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=function(t){var e;for(e=0;e8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},S=function(t,e,a,n){var r=2*e,i=2*a;return t[r]>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,R(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,_,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r>=7;l>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},C=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},H=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s>>8^r[255&(t^e[s])];return-1^t},Y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ERROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&is){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=yt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=X(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Lt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Zt(t),0===t.lookahead&&e===q)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ut,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindexa&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindexa&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+ft;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&rt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Pt:Mt,"[object ArrayBuffer]"===Ht.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,K.Z_SYNC_FLUSH),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:Vt(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var Xs={status:0};function Qs(t,e,n,r){switch(void 0===r&&(r=Js),0===Xs.status&&function(t,e,n){void 0===n&&(n=Js);try{var r=n(t),i=Kt(t,r,"error",(function(n){eu(t,e,n)})).stop,o=Kt(t,r,"message",(function(n){var r=n.data;"errored"===r.type?eu(t,e,r.error,r.streamId):"initialized"===r.type&&function(t){1===Xs.status&&(Xs={status:3,worker:Xs.worker,stop:Xs.stop,version:t})}(r.version)})).stop;r.postMessage({action:"init"}),L((function(){return function(t){1===Xs.status&&(u.error("".concat(t," failed to start: a timeout occurred while initializing the Worker")),Xs.initializationFailureCallbacks.forEach((function(t){return t()})),Xs={status:2})}(e)}),Zs),Xs={status:1,worker:r,stop:function(){i(),o()},initializationFailureCallbacks:[]}}catch(n){eu(t,e,n)}}(t,e,r),Xs.status){case 1:return Xs.initializationFailureCallbacks.push(n),Xs.worker;case 3:return Xs.worker}}function tu(){return Xs.status}function eu(t,e,n,r){if(1===Xs.status||0===Xs.status){if(u.error("".concat(e," failed to start: an error occurred while creating the Worker:"),n),n instanceof Event||n instanceof Error&&(g(o=n.message,"Content Security Policy")||g(o,"requires 'TrustedScriptURL'"))){var i=void 0;i=t.workerUrl?"Please make sure the Worker URL ".concat(t.workerUrl," is correct and CSP is correctly configured."):"Please make sure CSP is correctly configured.",u.error("".concat(i," See documentation at https://docs.datadoghq.com/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else Hn(n);1===Xs.status&&Xs.initializationFailureCallbacks.forEach((function(t){return t()})),Xs={status:2}}else Hn(n,{worker_version:3===Xs.status&&Xs.version,stream_id:r});var o}var nu=function(t,e){if(Yt()||!Ks())return{start:F,stop:F,getReplayStats:function(){},onRumStart:F,isRecording:function(){return!1},getSessionReplayLink:function(){}};var n={status:1},r=function(){n={status:1}},i=function(){n={status:0}};return{start:function(){return r()},stop:function(){return i()},getSessionReplayLink:function(t,e,r){return Ws(t,e,r,0!==n.status)},onRumStart:function(o,a,s,u,c){a.startSessionReplayRecordingManually&&(n={status:0}),o.subscribe(7,(function(){2!==n.status&&3!==n.status||(i(),n={status:1})})),o.subscribe(8,(function(){1===n.status&&r()})),r=function(){var r=s.findTrackedSession();r&&r.sessionReplayAllowed?2!==n.status&&3!==n.status&&(n={status:2},Xn(a,"interactive",(function(){if(2===n.status)if(c||(c=Qs(a,"Datadog Session Replay",(function(){i()}),e))){var r=t(o,a,s,u,$s(a,c,1)).stop;n={status:3,stopRecording:r}}else n={status:0}}))):n={status:1}},i=function(){0!==n.status&&(3===n.status&&n.stopRecording(),n={status:0})},1===n.status&&r()},isRecording:function(){return 3===tu()&&3===n.status},getReplayStats:function(t){return 3===tu()?function(t){return null==Fs?void 0:Fs.get(t)}(t):void 0}}}((function(t,e,n,r,i,o){var a=o||ia(e,e.sessionReplayEndpointBuilder,Gs,(function(e){t.notify(12,{error:e}),qn("Error reported to customer",{"error.message":e.message})})),s=Ys(t,e,n,r,a,i),u=s.addRecord,c=s.stop,l=Us({emit:u,configuration:e,lifeCycle:t}),d=l.stop,f=l.takeSubsequentFullSnapshot,h=l.flushMutations,p=t.subscribe(4,(function(){h(),u({timestamp:bt(),type:xa.ViewEnd})})).unsubscribe,v=t.subscribe(2,(function(t){f(t.startClocks.timeStamp)})).unsubscribe;return{stop:function(){p(),v(),d(),c()}}})),ru=function(e,n,r){var i,o=void 0===r?{}:r,a=o.ignoreInitIfSyntheticsWillInjectRum,s=void 0===a||a,c=o.startDeflateWorker,l=o.createDeflateEncoder,d=!1,f=ot(2),h=ot(1),p=function(){},_=function(){},g=F,y=function(){},b=new at,w=function(t,e){void 0===e&&(e=bt()),b.add((function(){return w(t,e)}))},S=function(t,e){void 0===e&&(e=St()),b.add((function(){return S(t,e)}))},E=function(t,e){void 0===e&&(e=Ln(f,h,n)),b.add((function(){return E(t,e)}))},O=function(t,e){void 0===e&&(e=Ln(f,h,n)),b.add((function(){return O(t,e)}))},T=function(){b.add((function(){return T()}))},x=function(){b.add((function(){return x()}))},C=function(t,e){b.add((function(){return C(t,e)}))};function I(t,r,o){if(t.storeContextsAcrossPages){var a=f.getContext();(f=Jt(r,"rum",2)).setContext(q(f.getContext(),a));var s=h.getContext();(h=Jt(r,"rum",1)).setContext(q(h.getContext(),s))}var u=e(t,r,n,f,h,o,i&&l?function(t){return l(r,i,t)}:Xt);y=function(){return n.getSessionReplayLink(r,u.session,u.viewContexts)},T=n.start,x=n.stop,S=u.startView,E=u.addAction,O=u.addError,w=u.addTiming,C=u.addFeatureFlagEvaluation,p=u.getInternalContext,g=u.stopSession,n.onRumStart(u.lifeCycle,r,u.session,u.viewContexts,i),b.drain()}var P=v((function(e){var n="object"===(0,t.A)(e)?e:{name:e};S(n)})),R=A({init:v((function(t){if(t){if(_=function(){return z(t)},!s||!zt()){var e=Yt();if(e&&(t=function(t){return k({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100})}(t)),function(t){if(d)return t.silentMultipleInit||u.error("DD_RUM is already initialized."),!1;return!0}(t)){var n=Rn(t);if(n)if(e||n.sessionStoreStrategyType){if(!n.compressIntakeRequests||e||!c||(i=c(n,"Datadog RUM",F))){if(n.trackViewsManually){var r=b;b=new at,S=function(e){I(t,n,e)},r.drain()}else I(t,n);d=!0}}else u.warn("No storage available for session. We will not send any data.")}}}else u.error("Missing configuration")})),setGlobalContextProperty:v((function(t,e){return f.setContextProperty(t,e)})),removeGlobalContextProperty:v((function(t){return f.removeContextProperty(t)})),getGlobalContext:v((function(){return f.getContext()})),setGlobalContext:v((function(t){return f.setContext(t)})),clearGlobalContext:v((function(){return f.clearContext()})),getInternalContext:v((function(t){return p(t)})),getInitConfiguration:v((function(){return _()})),addAction:v((function(t,e){E({name:$(t),context:$(e),startClocks:St(),type:"custom"})})),addError:function(t,e){var n=ge();m((function(){O({error:t,handlingStack:n,context:$(e),startClocks:St()})}))},addTiming:v((function(t,e){w($(t),e)})),setUser:v((function(t){be(t)&&h.setContext(ye(t))})),getUser:v((function(){return h.getContext()})),setUserProperty:v((function(t,e){var n,r=ye((n={},n[t]=e,n))[t];h.setContextProperty(t,r)})),removeUserProperty:v((function(t){return h.removeContextProperty(t)})),clearUser:v((function(){return h.clearContext()})),startView:P,stopSession:v((function(){g()})),startSessionReplayRecording:v((function(){return T()})),stopSessionReplayRecording:v((function(){return x()})),addFeatureFlagEvaluation:v((function(t,e){C($(t),$(e))})),getSessionReplayLink:v((function(){return y()}))});return R}((function(t,e,n,r,i,o,a){var s=[],u=new jr;u.subscribe(11,(function(t){return Mn("rum",t)}));var c=function(t){var e=Vn("browser-rum-sdk",t);if(Yt()){var n=Gt();e.observable.subscribe((function(t){return n.send("internal_telemetry",t)}))}return e}(e);c.setContextProvider((function(){var t,n;return{application:{id:e.applicationId},session:{id:null===(t=p.findTrackedSession())||void 0===t?void 0:t.id},view:{id:null===(n=E.findView())||void 0===n?void 0:n.id},action:{id:T.findActionId()}}}));var l=function(t){u.notify(12,{error:t}),qn("Error reported to customer",{"error.message":t.message})},d=function(t,e){if(void 0===e&&(e=R),!Se(fe.FEATURE_FLAGS))return{findFeatureFlagEvaluations:function(){},getFeatureFlagBytesCount:function(){return 0},addFeatureFlagEvaluation:F,stop:F};var n=new Br(da),r=0,i=!1;t.subscribe(4,(function(t){var e=t.endClocks;n.closeActive(e.relative)})),t.subscribe(2,(function(t){var e=t.startClocks;n.add({},e.relative),r=0}));var o=U((function(t){r=e(H(t)),i||(i=rt(r,0))}),fa),a=o.throttled;return{findFeatureFlagEvaluations:function(t){return n.find(t)},getFeatureFlagBytesCount:function(){return n.find()?r:0},addFeatureFlagEvaluation:function(t,e){var r=n.find();r&&(r[t]=e,a(r))},stop:o.cancel}}(u),f=$n(e),h=f.subscribe((function(t){u.notify(9,t)}));s.push((function(){return h.unsubscribe()}));var p=Yt()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplayAllowed:!1};return{findTrackedSession:function(){return t},expire:F,expireObservable:new Q}}():Ho(e,u);if(Yt())!function(t){var e=Gt();t.subscribe(11,(function(t){e.send("rum",t)}))}(u);else{var m=function(t,e,n,r,i,o,a){var s=t.replica,u=ua(t,{endpoint:t.rumEndpointBuilder,encoder:a(2)},s&&{endpoint:s.rumEndpointBuilder,transformMessage:function(t){return q(t,{application:{id:s.applicationId}})},encoder:a(3)},r,i,o);return e.subscribe(11,(function(t){"view"===t.type?u.upsert(t,t.view.id):u.add(t)})),n.subscribe((function(e){return u.add(e,zn(t))})),u}(e,u,c.observable,l,f,p.expireObservable,a);s.push((function(){return m.stop()})),function(t,e,n,r,i,o,a){e.enabled&&st(t.customerDataTelemetrySampleRate)&&(ba(),wa(),n.subscribe(11,(function(t){va=!0,ga(pa.globalContextBytes,Ae(r.getContext())?0:r.getBytesCount()),ga(pa.userContextBytes,Ae(i.getContext())?0:i.getBytesCount());var e=o.findFeatureFlagEvaluations(),n=g(["view","error"],t.type)&&e&&!Ae(e);ga(pa.featureFlagBytes,n?o.getFeatureFlagBytesCount():0)})),a.subscribe((function(t){var e=t.bytesCount,n=t.messagesCount;va&&(ha.batchCount+=1,ga(ha.batchBytesCount,e),ga(ha.batchMessagesCount,n),ya(ha.globalContextBytes,pa.globalContextBytes),ya(ha.userContextBytes,pa.userContextBytes),ya(ha.featureFlagBytes,pa.featureFlagBytes),wa())})),D(_a,ma))}(e,c,u,r,i,d,m.flushObservable)}var _,y,b=(_=Jn(),y=new Q((function(){if(_){var t=new _(v((function(){return y.notify()})));return t.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return t.disconnect()}}})),y),w=la(e,location),S=function(t,e,n,r,i,o,a,s){var u=function(t){var e=new Br(Vr);return t.subscribe(2,(function(t){e.add(function(t){return{service:t.service,version:t.version,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)})),t.subscribe(4,(function(t){var n=t.endClocks;e.closeActive(n.relative)})),t.subscribe(8,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),c=function(t,e,n){var r,i=new Br(ca);t.subscribe(4,(function(t){var e=t.endClocks;i.closeActive(e.relative)})),t.subscribe(2,(function(t){var e=t.startClocks,o=n.href;i.add(a({url:o,referrer:r||document.referrer}),e.relative),r=o}));var o=e.subscribe((function(t){var e=t.newLocation,n=i.find();if(n){var r=wt();i.closeActive(r),i.add(a({url:e.href,referrer:n.referrer}),r)}}));function a(t){return{url:t.url,referrer:t.referrer}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,i,n),l=ka(e),d=function(t,e,n,r){t.subscribe(1,(function(e){return t.notify(10,Wi(e,r))}));var i={findActionId:F};return n.trackUserInteractions&&(i=Yi(t,e,n).actionContexts),{addAction:function(e,n){t.notify(10,k({savedCommonContext:n},Wi(e,r)))},actionContexts:i}}(t,o,e,l),f=d.addAction,h=d.actionContexts,p=function(t){var e=xo();return{get:function(){return{viewport:e}},stop:To(t).subscribe((function(t){e=t})).unsubscribe}}(e);return Lr(e,t,r,u,c,h,p,a,s),{viewContexts:u,pageStateHistory:l,urlContexts:c,addAction:f,actionContexts:h,stop:function(){p.stop(),l.stop(),c.stop(),u.stop(),l.stop()}}}(u,e,location,p,w,b,(function(){return Ln(r,i,n)}),l),E=S.viewContexts,O=S.pageStateHistory,A=S.urlContexts,T=S.actionContexts,x=S.addAction,C=S.stop;s.push(C),Gn(function(t){var e=On(t);return k({session_replay_sample_rate:t.sessionReplaySampleRate,start_session_replay_recording_manually:t.startSessionReplayRecordingManually,trace_sample_rate:t.traceSampleRate,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0,selected_tracing_propagators:Nn(t),default_privacy_level:t.defaultPrivacyLevel,use_excluded_activity_urls:Array.isArray(t.excludedActivityUrls)&&t.excludedActivityUrls.length>0,use_worker_url:!!t.workerUrl,compress_intake_requests:t.compressIntakeRequests,track_views_manually:t.trackViewsManually,track_user_interactions:t.trackUserInteractions,track_resources:t.trackResources,track_long_task:t.trackLongTasks},e)}(t)),function(t,e,n){t.subscribe(0,(function(r){for(var i=0,o=r;i=0;u--)(o=e[u])&&(s=(a<3?o(s):a>3?o(n,r,s):o(n,r))||s);return a>3&&s&&Object.defineProperty(n,r,s),s},su={debug:"debug",error:"error",info:"info",warn:"warn"},uu={console:"console",http:"http",silent:"silent"},cu=Object.keys(su),lu=function(){function t(t,e,n,r,i){void 0===n&&(n=uu.http),void 0===r&&(r=su.debug),void 0===i&&(i={}),this.handleLogStrategy=t,this.handlerType=n,this.level=r,this.contextManager=ot(3),this.contextManager.setContext(i),e&&this.contextManager.setContextProperty("logger",{name:e})}return t.prototype.log=function(t,e,n,r){var i;if(void 0===n&&(n=su.info),null!=r){var o=pe({stackTrace:r instanceof Error?te(r):void 0,originalError:r,nonErrorPrefix:"Provided",source:kr.LOGGER,handling:"handled",startClocks:St()});i={stack:o.stack,kind:o.type,message:o.message}}var a=$(e),s=i?q({error:i},a):a;this.handleLogStrategy({message:$(t),context:s,status:n},this)},t.prototype.debug=function(t,e,n){this.log(t,e,su.debug,n)},t.prototype.info=function(t,e,n){this.log(t,e,su.info,n)},t.prototype.warn=function(t,e,n){this.log(t,e,su.warn,n)},t.prototype.error=function(t,e,n){this.log(t,e,su.error,n)},t.prototype.setContext=function(t){this.contextManager.setContext(t)},t.prototype.getContext=function(){return this.contextManager.getContext()},t.prototype.setContextProperty=function(t,e){this.contextManager.setContextProperty(t,e)},t.prototype.removeContextProperty=function(t){this.contextManager.removeContextProperty(t)},t.prototype.clearContext=function(){this.contextManager.clearContext()},t.prototype.setHandler=function(t){this.handlerType=t},t.prototype.getHandler=function(){return this.handlerType},t.prototype.setLevel=function(t){this.level=t},t.prototype.getLevel=function(){return this.level},au([p],t.prototype,"log",null),t}(),du="logs";var fu="logs";function hu(t){var e=zo(t,fu,(function(e){return function(t,e){var n=function(t){return"0"===t||"1"===t}(e)?e:pu(t);return{trackingType:n,isTracked:"1"===n}}(t,e)}));return{findTrackedSession:function(t){var n=e.findActiveSession(t);return n&&"1"===n.trackingType?{id:n.id}:void 0},expireObservable:e.expireObservable}}function pu(t){return st(t.sessionSampleRate)?"1":"0"}var vu,mu=!1;function _u(t){var e=window;if(zt()){var n=r(e.DD_RUM_SYNTHETICS);return n||mu||(mu=!0,qn("Logs sent before RUM is injected by the synthetics worker",{testId:qt(),resultId:Ht()})),n}return r(e.DD_RUM);function r(e){if(e&&e.getInternalContext)return e.getInternalContext(t)}}var gu,yu=((vu={})[i.log]=su.info,vu[i.debug]=su.debug,vu[i.info]=su.info,vu[i.warn]=su.warn,vu[i.error]=su.error,vu);var bu=((gu={})[Qi.cspViolation]=su.error,gu[Qi.intervention]=su.error,gu[Qi.deprecation]=su.warn,gu);function wu(t,e){if(!t.forwardErrorsToLogs)return{stop:F};var n=Kr(t).subscribe((function(t){"complete"===t.state&&i("xhr",t)})),r=Jr().subscribe((function(t){"resolve"===t.state&&i("fetch",t)}));function i(n,r){function i(t){e.notify(0,{rawLogsEvent:{message:"".concat(Eu(n)," error ").concat(r.method," ").concat(r.url),date:r.startClocks.timeStamp,error:{stack:t||"Failed to load"},http:{method:r.method,status_code:r.status,url:r.url},status:su.error,origin:kr.NETWORK}})}t.isIntakeUrl(r.url)||!function(t){return 0===t.status&&"opaque"!==t.responseType}(r)&&!ti(r.status)||("xhr"in r?function(t,e,n){"string"==typeof t.response?n(Su(t.response,e)):n(t.response)}(r.xhr,t,i):r.response?function(t,e,n){var r=ei(t);r&&r.body?window.TextDecoder?function(t,e,n){ni(t,(function(t,e,r){if(t)n(t);else{var i=(new TextDecoder).decode(e);r&&(i+="..."),n(void 0,i)}}),{bytesLimit:e,collectStreamBody:!0})}(r.body,e.requestErrorResponseLengthLimit,(function(t,e){n(t?"Unable to retrieve response: ".concat(t):e)})):r.text().then(v((function(t){return n(Su(t,e))})),v((function(t){return n("Unable to retrieve response: ".concat(t))}))):n()}(r.response,t,i):r.error&&function(t,e,n){n(Su(me(te(t)),e))}(r.error,t,i))}return{stop:function(){n.unsubscribe(),r.unsubscribe()}}}function Su(t,e){return t.length>e.requestErrorResponseLengthLimit?"".concat(t.substring(0,e.requestErrorResponseLengthLimit),"..."):t}function Eu(t){return"xhr"===t?"XHR":"Fetch"}var Ou,ku=Dr,Au=((Ou={})[su.debug]=0,Ou[su.info]=1,Ou[su.warn]=2,Ou[su.error]=3,Ou);function Tu(t){return{handleLog:function(e,n,r,i){var s=q(n.getContext(),e.context);xu(e.status,uu.console,n)&&function(t,e){a[t.status].call(o,t.message,e)}(e,s),xu(e.status,uu.http,n)&&t.notify(0,{rawLogsEvent:{date:i||bt(),message:e.message,status:e.status,origin:kr.LOGGER},messageContext:s,savedCommonContext:r})}}}function xu(t,e,n){var r=n.getHandler(),i=Array.isArray(r)?r:[r];return Au[t]>=Au[n.getLevel()]&&g(i,e)}var Cu=function(t){var e=!1,n=ot(2),r=ot(1),o={},a=function(){},s=new at,c=function(t,e,n,r){void 0===n&&(n=z(d())),void 0===r&&(r=bt()),s.add((function(){return c(t,e,n,r)}))},l=function(){};function d(){return{view:{referrer:document.referrer,url:window.location.href},context:n.getContext(),user:r.getContext()}}return A({logger:new lu((function(){for(var t=[],e=0;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]&&arguments[0],e=t?"development":"dev";return"staging"==="production".toLowerCase()?e=t?"staging":"stg":"production"==="production".toLowerCase()&&(e=t?"production":"prod"),e},Uc=function(t){return Boolean(null==t?void 0:t.document)?ju(t.document.body.querySelectorAll("[".concat(Ic,'="').concat(_c,'"]'))):null!=t&&t.getAttribute&&t.getAttribute(Ic)===_c?[t]:null!=t&&t.querySelectorAll?ju(t.querySelectorAll("[".concat(Ic,'="').concat(_c,'"]'))):[]},Fc=function e(n){var r={};return Object.getOwnPropertyNames(n).forEach((function(i){var o=Object.getOwnPropertyDescriptor(n,i);o.enumerable=!0,"object"===(0,t.A)(n[i])&&null!==n[i]&&(o.value=e(n[i])),Object.defineProperty(r,i,o)})),r},Bc=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";ru.addError(new Error(n),void 0,"source"),Cu.logger.error(n,"object"===(0,t.A)(e)&&null!==e?Fc(e):e),r&&console.error(r)},Vc=function(t){return"_INTERNAL_FEATURE_FLAG_"+t},zc=function(t){t.setAttribute("required","required"),t.setAttribute("aria-required","true")},qc=function(t,e){var n,i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=Ec.CREDENTIAL_TYPE,u=Ec.DEGREE_OFFERING,c=Ec.FORM_ID,l=Ec.GROUPING,d=Ec.INTEREST_ACTION,f=Ec.INTEREST_SUBMISSION_TIME,h=Ec.LEAD_SOURCE,p=Ec.PAGE_URL,v=Ec.PROGRAMS_OF_STUDY,m=Ec.RV_LEAD_SOURCE,_=Ec.SUBMITTED_PAGE_HOST,g=Ec.TAXI_FORM_TYPE,y=Ec.USER_EMAIL,b=Ec.UUID,w=t.form_id;return r(r(r(r(r(r(r(r(r(r(n={},s,t.credential_type||"Credential type unavailable"),u,t.degree_offering||"Degree offering unavailable"),c,null!=w?w:"Form ID unavailable"),l,a.grouping||"Grouping unavailable"),d,e),f,(o={epoch_time:"Submission time unavailable",gmt_time:"Submission time unavailable"},(i=t).submission_time_ms&&(o.epoch_time=i.submission_time_ms,o.gmt_time=new Date(parseInt(i.submission_time_ms,10)).toUTCString()),o)),h,t.lead_source||"Lead source unavailable"),p,t.page_url||"Page url unavailable"),v,t.programs_of_study||"Programs of study unavailable"),m,t.rv_source||"RV Lead Source unavailable"),r(r(r(r(n,_,t.submitted_page_host||"Submitted page host unavailable"),g,t.taxi_form_type||"Taxi form type unavailable"),y,t.email||"Email unavailable"),b,t.uuid||"UUID unavailable")},Hc=/\[--link:(.*?)\](.*?)\[link--\]/g,Gc=/\[--tip:(.*?)\](.*?)\[tip--\]/g,Yc={key:null,userDoesConsent:!1,userDoesNotConsent:!0};const Kc=function(t,e,n){var r=t.createElement("a"),i=e.split(" ");return r.href=i[0],i.length>=2&&0===i[1].indexOf("id:")&&(r.id=i[1].substring(3)),r.textContent=n,r.setAttribute("target","_blank"),r.setAttribute("rel","noopener"),r.style.color="#2071AB",r},Wc=function(t,e,n){var r=t.createDocumentFragment(),i=t.createElement("sup"),o=t.createElement("span"),a=t.createElement("button");o.textContent=n,i.textContent="?",o.style.borderBottom="1px dotted",a.style.backgroundColor="transparent",a.style.border="0 none",a.style.padding="0",a.className="tooltip",o.className="tooltip",a.appendChild(i),r.appendChild(o),r.appendChild(a),a.setAttribute("aria-label",e),o.setAttribute("aria-label",e);var s=function(e){var n=e.currentTarget,r=t.body.clientWidth,i=n.getBoundingClientRect().x/r*100,o="top-right";i>20&&i<70&&(o="top"),i>70&&(o="top-left"),a.className="tooltip tooltip--".concat(o)};return a.addEventListener("mouseover",s),a.addEventListener("focus",s),r};const $c=function(t,e){var n=t.createDocumentFragment();return e.split(/(\[--.*?\[*--])/g).reduce((function(e,r){var i=function(t){var e={link:{tagRegex:Hc,tagRenderer:Kc},tip:{tagRegex:Gc,tagRenderer:Wc}},n=t.match(/\[--(\w*)/);return n?e[n[1]]:null}(r);if(i)return function(t,e,n,r){var i=r.tagRegex,o=r.tagRenderer,a=n.split(i),s=o(e,a[1],a[2]);return t.appendChild(s),t}(e,t,r,i);var o=t.createTextNode(r);return e.appendChild(o),n}),n)};function Zc(t,e,n){var r=t.createElement("label");return r.setAttribute("for",e),r.className="label",r.appendChild($c(t,n)),r}var Jc=function(t){return"fieldset"===t.tagName.toLowerCase()},Xc=function(t,e){t.setAttribute("aria-describedby",e)},Qc=function(t,e,n,r){var i=n.id.concat("-helpText"),o=function(t,e,n){var r=t.createElement("div");return r.className="form-group__help-text",r.setAttribute("id",e),r.appendChild($c(t,n)),r}(t,i,r);Jc(n)?(!function(t,e){t.querySelectorAll("input").forEach((function(t){return Xc(t,e)}))}(n,i),n.appendChild(o),e.appendChild(n)):(Xc(n,i),e.appendChild(o))};const tl=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"form-group",i=n.helpText,o=n.hidden,a=n.label,s=t.createElement("div");if(s.className=r,!Jc(e)){var u=Zc(t,e.id,o?"":a);s.appendChild(u)}return s.appendChild(e),i&&Qc(t,s,e,i),o&&(s.style.display="none"),s};function el(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nl(t){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:"form-group",i=t.createElement("div");return i.className=r,e.forEach((function(t){i.appendChild(t)})),n&&i.setAttribute("style","display: none;"),i}function dl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fl(t){for(var e=1;e0?e.label.toLowerCase():e.validationLabel),v="".concat(i,"-").concat(n.options[0].value.split(" ").join("-"));return s?e.required&&r.push({field:e.name,fieldId:i,validation:Wu.shouldHaveValue.bind(null,{name:e.name,type:"element",id:i,focusElement:v},e.errorMessage||p)}):r.push({field:e.name,fieldId:i,validation:Wu.shouldHaveCheckedInput.bind(null,c,{name:e.name,type:"element",id:i,focusElement:v},e.errorMessage||p)}),{el:tl(t,d,e),ev:h,telemetryStream:Gu.Ay.merge(o),validations:r}}function pl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vl(t){for(var e=1;e0){var u=ml(t,gl(gl({},e),{},{name:wc.retail[o]}),{channel:o,text:n.retailOptIn[o]}),c=u.el,l=u.ev,d=u.telemetryStream,f=u.validations;a.push(c),s=s.concat(f),r[wc.retail[o]]=l.conformed,i.push(d)}}));var u,c,l,d=cl(t,[o].concat(a),e);if(d.classList.add("u--m0"),n.leadShareOptIn.text){(u=ul(t,n.leadShareOptIn.text)).classList.add("u--mb2");var f=[],h=[];bc.forEach((function(o){if(n.leadShareOptIn[o].length>0){var a=ml(t,gl(gl({},e),{},{name:wc.share[o]}),{channel:o,text:n.leadShareOptIn[o]}),u=a.el,c=a.ev,l=a.telemetryStream,d=a.validations;f.push(u),s=s.concat(d),r[wc.share[o]]=c.conformed,h.push(c.raw.map((function(t){return{channel:o,value:t}}))),i.push(l)}}));var p=Gu.Ay.merge(h).scan((function(t,e){return t[e.channel]=e.value,t}),{}).map((function(t){for(var e=Object.keys(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:"").split(";"),e={};return t.forEach((function(t){e[t]=!0})),e}(n.defaultOption);n&&n.options&&n.options.length&&(n.options.forEach((function(n){var o="".concat(i,"-").concat(n.value.split(" ").join("-")),u=t.createElement("div");u.classList.add("checkbox");var c=t.createElement("input");c.setAttribute("type","checkbox"),c.setAttribute("id",o),c.classList.add("control"),c.setAttribute("data-value",n.value),!e.hidden&&e.required&&zc(c),s[n.value]&&c.setAttribute("checked","true"),a.push(c);var l=t.createElement("label");l.innerHTML=n.label,l.classList.add("label"),l.setAttribute("for",o),u.appendChild(c),u.appendChild(l),r.appendChild(u)})),e.required&&(e.hidden||zc(r),o.push({field:e.name,fieldId:i,validation:Wu.shouldHaveTextContent.bind(null,{name:e.name,type:"element",id:i},e.errorMessage||"Please select at least one option for ".concat(e.label.toLowerCase()))}))),e.hidden&&r.setAttribute("style","display:none");var u=ul(t,e.hidden?"":e.label),c=cl(t,[u,r],e);c.setAttribute("id",i),c.setAttribute("name",e.name);var l=Gu.Ay.fromEvents(c,"change",(function(){return a.reduce((function(t,e){var n=e.getAttribute("data-value");return e.checked?"".concat(t).concat(t.length?";":"").concat(n):t}),"")})),d=Gu.Ay.constant(n.defaultOption?n.defaultOption:void 0),f=[];a.forEach((function(t){f.push(Gu.Ay.fromEvents(t,"blur",(function(){return{type:Qu}}))),f.push(Gu.Ay.fromEvents(t,"change",(function(){return{type:tc}}))),f.push(Gu.Ay.fromEvents(t,"focus",(function(){return{type:Xu}})))}));var h=Gu.Ay.merge(f).map((function(t){return Dl(Dl({},t),{},{name:e.name,html_id:i,field_type:e.type})}));return{el:tl(t,c,e),ev:Gu.Ay.merge([l,d]),telemetryStream:h,validations:o}},Tl,function(t,e,n){var r=e.salt,i=e.name,o=e.type,a=e.hidden,s=e.required,u=n||{},c=u.includeImpliedConsent,l=void 0===c||c,d=u.impliedConsentData,f=void 0===d?[sl(sl({},Yc),{},{key:"email_opt_out"})]:d,h=t.createElement("input"),p="".concat(r||"").concat(i);h.setAttribute("id",p),h.setAttribute("name",i),h.setAttribute("value",""),a?h.setAttribute("type","hidden"):(h.setAttribute("type","email"),s&&zc(h)),h.className="control";var v=[];v.push({field:e.name,fieldId:p,validation:Wu.isValidEmail.bind(null,{name:e.name,type:"element",id:p},e.errorMessage||"Please enter a valid email format")});var m=Gu.Ay.constant(!1),_=Gu.Ay.constant(""),g=Gu.Ay.fromEvents(h,"keyup").map((function(t){return t.target.value})),y=Gu.Ay.fromEvents(h,"change").map((function(t){return t.target.value})),b=Gu.Ay.merge([_,g,y]),w=b.map((function(t){return!!t})),S=Gu.Ay.merge([m,w]),E={email:b};l&&f.reduce((function(t,e){var n=e.key,r=e.userDoesConsent,i=e.userDoesNotConsent;return t[n]=S.map((function(t){return t?r:i})),t}),E);var O=Gu.Ay.fromEvents(h,"blur",(function(){return{type:Qu}})),k=Gu.Ay.fromEvents(h,"keydown",(function(){return{type:tc}})).take(1),A=Gu.Ay.fromEvents(h,"focus",(function(){return{type:Xu}})),T=Gu.Ay.merge([O,k,A]).map((function(t){return sl(sl({},t),{},{name:i,html_id:p,field_type:o})}));return{el:tl(t,h,e),ev:E,telemetryStream:T,validations:v}},function(t,e,n){var r=e.salt,i=e.name,o=e.type,a=e.hidden,s=e.required,u=n||{},c=u.includeImpliedConsent,l=void 0===c||c,d=u.impliedConsentData,f=void 0===d?[Ll(Ll({},Yc),{},{key:"do_not_call"})]:d,h=t.createElement("input"),p="".concat(r||"","phone-field-").concat(i);h.setAttribute("id",p),h.setAttribute("name",i),h.setAttribute("value",""),a?h.setAttribute("type","hidden"):(h.setAttribute("type","tel"),s&&zc(h)),h.className="control";var v=Gu.Ay.constant(!1),m=Gu.Ay.constant(""),_=Gu.Ay.fromEvents(h,"keyup").map((function(t){return t.target.value})),g=Gu.Ay.fromEvents(h,"change").map((function(t){return t.target.value})),y=Gu.Ay.merge([m,_,g]),b=y.map((function(t){return!!t})),w=Gu.Ay.merge([v,b]),S={phone:y};l&&f.reduce((function(t,e){var n=e.key,r=e.userDoesConsent,i=e.userDoesNotConsent;return t[n]=w.map((function(t){return t?r:i})),t}),S);var E=Gu.Ay.fromEvents(h,"blur",(function(){return{type:Qu}})),O=Gu.Ay.fromEvents(h,"keydown",(function(){return{type:tc}})).take(1),k=Gu.Ay.fromEvents(h,"focus",(function(){return{type:Xu}})),A=Gu.Ay.merge([E,O,k]).map((function(t){return Ll(Ll({},t),{},{name:i,html_id:p,field_type:o})}));return{el:tl(t,h,e),ev:S,telemetryStream:A,validations:[]}},function(t,e,n){var r=t.createElement("div"),i="".concat(e.salt||"","info-text-submit-field-").concat(e.name);return r.setAttribute("id",i),r.appendChild($c(t,n.text)),r.classList.add("u--align-left","u--padding-top-2","u--font-size-0875","info-text"),e.hidden&&r.classList.add("u--hide"),{el:r,ev:Gu.Ay.never(),telemetryStream:Gu.Ay.never(),validations:[]}}];const Ul=jl;var Fl=["password"],Bl={password:"Password is missing the following required criteria:"};function Vl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function zl(t){for(var e=1;ee),t},function(t){var e=t.pop(),n=t.pop();return t.push(n>=e),t},function(t){var e=t.pop(),n=t.pop();return t.push(n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t){if(t.toLowerCase().startsWith("state.")){var r=e[t.slice(6)];return void 0===r?{ready:!0,element:t}:r&&"function"==typeof r.pending_value?{ready:!1}:{ready:!0,element:r}}if(t.startsWith("$"))return{ready:!0,element:n[t]}}return{ready:!0,element:t}}const td=function(t,e,n){for(var r=[],i=0;i2&&(o[0]=o.slice(1).join("=")),t.set(o[0],o[1])}return{ready:!0,result:n}},function(t,e,n){var r=nd({},n),i=rd(t,e);return i.ready?(i.result&&(r.required=!1),{ready:!0,result:r}):{ready:!1,result:{}}},function(t,e,n){var r=nd({},n),i=rd(t,e);return i.ready?(i.result&&(r.required=!0),{ready:!0,result:r}):{ready:!1,result:{}}}];var od=function(){function t(e,n,r,i,o,a,s){Pu(this,t),this.doc=e,this.progressBarMountElement=n,this.bigStepMountElement=a,this.smallStepMountElement=s,this.isQuiz=o,this.progressBarMountElement&&this.init(r,i)}return Nu(t,[{key:"initProgressBar",value:function(t,e){this.progressBarMountElement.classList.add("progress");var n=Kl(this.doc,"div",{class:"progress__max"}),r=Kl(this.doc,"div",{class:"progress__bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100});this.progressBar=r,n.appendChild(r),this.progressBarMountElement.appendChild(n),this.setFillWidth(t,e)}},{key:"init",value:function(t,e){if(this.isQuiz)this.initProgressBar(t,e),this.setQuizStepText(t,e);else{this.initProgressBar(t,e);var n=Kl(this.doc,"div",{class:"progress__label",tabIndex:"-1"});this.standardStepLabel=n,this.progressBarMountElement.appendChild(n),this.setStandardStepText(t,e)}}},{key:"update",value:function(t,e){this.isQuiz?(this.setQuizStepText(t,e),this.bigStepMountElement.focus()):(this.setStandardStepText(t,e),this.standardStepLabel.focus()),this.setFillWidth(t,e)}},{key:"setStandardStepText",value:function(t,e){var n="Step ".concat(parseInt(t,10)+1," of ").concat(e);this.standardStepLabel.textContent=n,this.standardStepLabel.setAttribute("aria-label",n)}},{key:"setQuizStepText",value:function(t,e){var n="".concat(parseInt(t,10)+1," of ").concat(e),r='

Step '.concat(parseInt(t,10)+1," of ").concat(e,"

");this.smallStepMountElement.innerHTML='

'.concat(parseInt(t,10)+1," of ").concat(e,"

"),this.smallStepMountElement.setAttribute("aria-label",n),this.bigStepMountElement.innerHTML=r,this.bigStepMountElement.setAttribute("aria-label","step ".concat(n))}},{key:"setFillWidth",value:function(t,e){var n=Math.min(Math.max(t/(e-1)*100,5),95);this.progressBar.style.width="".concat(n,"%"),this.progressBar.setAttribute("aria-valuenow",n)}}]),t}();const ad=od;const sd={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var ud,cd=new Uint8Array(16);function ld(){if(!ud&&!(ud="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ud(cd)}for(var dd=[],fd=0;fd<256;++fd)dd.push((fd+256).toString(16).slice(1));function hd(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return dd[t[e+0]]+dd[t[e+1]]+dd[t[e+2]]+dd[t[e+3]]+"-"+dd[t[e+4]]+dd[t[e+5]]+"-"+dd[t[e+6]]+dd[t[e+7]]+"-"+dd[t[e+8]]+dd[t[e+9]]+"-"+dd[t[e+10]]+dd[t[e+11]]+dd[t[e+12]]+dd[t[e+13]]+dd[t[e+14]]+dd[t[e+15]]}const pd=function(t,e,n){if(sd.randomUUID&&!e&&!t)return sd.randomUUID();var r=(t=t||{}).random||(t.rng||ld)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return hd(r)};function vd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var md=function(t){return t?"Opt In":"Opt Out"},_d=function(t){return t?"Opt Out":"Opt In"},gd=function(t){return t?"0":"1"},yd={call_opt_in:{getFrom:"do_not_call",fx:function(t){return _d(t)}},email_opt_in:{getFrom:"email_opt_out",fx:function(t){return _d(t)}},lead_share_opt_in:{getFrom:"gdprProspect2uOptIn",fx:function(t){var e=JSON.parse(t);return md(e)}},lead_capture_form_url:{getFrom:"page_url",fx:function(t){return t}},sms_opt_in:{getFrom:"sms_opt_in",fx:function(t){return md(t)}},gdpr_prospectpartner_opt_in:{getFrom:"gdpr_prospectpartner_opt_in",fx:function(t){return"true"===t}},country_inferred:{keepOldKey:!0,getFrom:"taxi_determined_geo",fx:function(t){return t}},ip_inferred_country:{keepOldKey:!0,getFrom:"taxi_determined_geo",fx:function(t){return t}}},bd={Broad_All_Biz_Email_Opt_In:{getFrom:"lead_share_opt_in",fx:function(t){return t?"1":"0"}},consent_by_email_mktg:{getFrom:"email_opt_out",fx:function(t){return gd(t)}},consent_by_telephone:{getFrom:"do_not_call",fx:function(t){return gd(t)}},final_url:{getFrom:"page_url",fx:function(t){return t}},sms_opt_out:{getFrom:"sms_opt_in",fx:function(t){return gd(t)}},UUID:{getFrom:"uuid",fx:function(t){return t},defaultValue:pd()},State:{getFrom:"state",fx:function(t){return t}}},wd=function(t,e){for(var n=function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:kc,u=s===kc?Od:kd;!t.uuid&&window.TAXI_FORM&&window.TAXI_FORM.createAnalytics&&(e=window.TAXI_FORM.createAnalytics().getUserId(),t.uuid=e||"");if(function(t){return Boolean(t.rv_source)}(t)&&(t.rv_session_id=(null===(o=window)||void 0===o||null===(o=o._Cohesion)||void 0===o||null===(o=o.session)||void 0===o?void 0:o.sessionId)||Oc,!t.uuid&&(i=t.credential_type,Rc.includes(i))&&(t.uuid=(window.analytics&&window.analytics.user&&"function"==typeof window.analytics.user&&window.analytics.user().anonymousId&&"function"==typeof window.analytics.user().anonymousId&&(n=window.analytics.user().anonymousId()),n||""),!t.uuid))){Bc(qc(t,s),"Segment Anonymous ID could not be found for Red Ventures form.")}return a="BOOTCAMP"===t.credential_type?wd(t,bd):"SHORT_COURSE"===t.credential_type?wd(t,yd):function(t){for(var e=1;e=400?t.json().then((function(t){throw t})):{success:!0}})).catch((function(t){return Td(t)}))}var Td=function(t){return{success:!1,error:{event:"imqSubmissionFailed",logMessage:"Interest Message Queue request failed with error: ".concat(JSON.stringify(t.message),", ").concat(JSON.stringify(t.validation_error)),uiMessageArray:[ac],rawError:t}}};function xd(t,e){return fetch(e+Ac,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}function Cd(t,e,n,r){return Id.apply(this,arguments)}function Id(){return(Id=Fu(Hu().mark((function t(e,n,r,i){var o,a,s;return Hu().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=n+Tc,(a=r.createElement("form")).setAttribute("method","post"),a.setAttribute("action",o),a.setAttribute("id","sesame-callback-form"),(s=r.createElement("input")).setAttribute("id","sesame-callback-token-input"),s.setAttribute("type","text"),s.setAttribute("name","token"),s.setAttribute("value",e),a.appendChild(s),r.body.appendChild(a);try{a.submit()}catch(t){i[Ec.REQUEST_RESPONSE_ERROR]=t,Bc(i,"Submission to Sesame callback endpoint failed with error ".concat(JSON.stringify(Fc(t))),"Submission to Sesame callback endpoint failed with error ".concat(JSON.stringify(Fc(t))))}case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Pd="stg.";"production"==="production".toLowerCase()&&(Pd="prod.");var Rd="https://tmq.".concat(Pd,"2u.com/v1/tmq");function Nd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ld(t){for(var e=1;e=400?t.json().then((function(t){throw t})):t.json()})).catch((function(t){return console.log(t)}));var e}},{key:"emitEvent",value:function(t){var e=Ld(Ld({},t),{},{session:this.formTelemUUID,formId:this.opts.formId,grouping:this.opts.grouping,userAgent:this.opts.userAgent});return this.sink(e)}}]),t}();function Dd(t){return t.value&&t.value.text?t.value.text:""}function jd(t){return t.value&&t.value.defaultOption?t.value.defaultOption:null}function Ud(t){return t.value}function Fd(){return""}var Bd=[Dd,Ud,jd,jd,Fd,Ud,Ud,function(){},function(){return""},function(t){return t.value?t.value.gdprOnly:"false"},Ud,Fd,function(t){return t.value&&t.value.degreeOffering?t.value.degreeOffering:""},Dd,jd,function(t){return t.value?t.value.text:"never"},Ud,Ud,Dd];const Vd=function(t){return Bd[t]||Ud};function zd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qd(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};Pu(this,t),this.fields=qd(qd({},r),{},{_errors:[]}),this.activeSubs={},this.subscribable={emit:function(){}},this.changeStream=Gu.Ay.stream((function(t){n.subscribable=t})),e.reduce((function(t,e){return e.conditionallyRendered||void 0!==t[e.name]||(t[e.name]=Vd(e.type)(e)),t}),this.fields)}return Nu(t,[{key:"attachStreams",value:function(t){var e=this;Object.keys(t).forEach((function(n){t[n].onValue((function(t){e.fields[n]=t,e.subscribable.emit({name:n,value:t})}))}))}},{key:"set",value:function(t,e){this.fields[t]=e,this.subscribable.emit({name:t,value:e})}},{key:"get",value:function(t){return this.fields[t]}},{key:"current",value:function(){return this.fields}},{key:"observe",value:function(t){return this.activeSubs[t]||(this.activeSubs[t]={subscription:this.changeStream.filter((function(e){return e.name===t})).map((function(t){return t.value}))}),this.activeSubs[t].subscription}},{key:"observeMany",value:function(t,e){return e?this.changeStream.debounce(e).filter((function(e){return e&&t.includes(e.name)})):this.changeStream.filter((function(e){return t.includes(e.name)}))}},{key:"setFeatureFlags",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.entries(e).forEach((function(e){var n=Du(e,2),r=n[0],i=n[1];t.set(Vc(r),i)}))}},{key:"getFeatureFlag",value:function(t){return this.fields[Vc(t)]}}]),t}();function Gd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Yd(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"nextButton";return{nextButton:Zu,forwardButton:this.anyRequiredFields()?Zu:Ju}[t]}},{key:"startTelemetry",value:function(){this.telemetryService.emitEvent({type:"started",grouping:this.package.grouping,formType:this.formAttributes.formType,degreeOffering:this.package.degreeOffering,htmlSalt:this.salt,url:this.doc.location,taxiPluginVersion:Iu,startStep:this.currentStepMarker,loopback:Object.prototype.hasOwnProperty.call(this.currentScreen.out,"0")})}},{key:"mountErrorLogger",value:function(t,e,n){"error"===t?console.error("Taxi can't ".concat(e,'. Template must include element with ID ending in "').concat(n,'".')):console.warn("Taxi can't ".concat(e,'. Template must include element with ID ending in "').concat(n,'".'))}},{key:"getEnvSubDomain",value:function(){var t="";return"development"==="production".toLowerCase()?t="dev.":"staging"==="production".toLowerCase()&&(t="stg."),t}},{key:"getGeo",value:function(){var t=this,e=Date.now(),n="https://geo.".concat(this.getEnvSubDomain(),"mktg.2u.com");return fetch(n).then((function(t){return t.status>=400?t.json().then((function(t){throw t})):t.json()})).then((function(n){var r=n.data||{};return Pc.includes(r.country_name)&&(r.is_restricted_geo=!0),t.dataStore.set("taxi_determined_geo",r.country_name||"undetermined"),t.dataStore.set("taxi_is_restricted",r.is_restricted_geo||!1),t.dataStore.set("_INTERNAL_carmen_sandiego_fetch_status",nc),t.dataStore.set("_INTERNAL_carmen_sandiego_fetch_value",r),r.is_restricted_geo?t.dataStore.set("no_klondike_carmen_sandiego_region","eu"):t.dataStore.set("no_klondike_carmen_sandiego_region","us"),ru.addTiming("taxi_plugin_csd_response",Date.now()-e),r})).catch((function(e){t.dataStore.set("taxi_determined_geo","undetermined"),t.dataStore.set("taxi_is_restricted",!1),t.dataStore.set("no_klondike_carmen_sandiego_region","us"),t.dataStore.set("_INTERNAL_carmen_sandiego_fetch_status",rc),t.dataStore.set("_INTERNAL_carmen_sandiego_fetch_value",e)}))}},{key:"initDataStore",value:function(){this.dataStore=new Hd(this.package.fields,this.presetFields),this.dataStore.set("no_klondike_carmen_sandiego_region",{pending_value:this.getGeo}),this.dataStore.set("_INTERNAL_carmen_sandiego_fetch_status",ec),this.dataStore.setFeatureFlags(this.package.featureFlags),this.validationErrorStream=this.dataStore.observe("_errors").onValue(this.renderErrors.bind(this))}},{key:"initBaseElements",value:function(){this.currentScreen=this.package.screens[this.startScreen],this.mountPoint.innerHTML=this.template,this.elementId={nextButton:"lead-form-next-action-button",errors:"lead-form-error-mount-point",fields:"lead-form-field-mount-point",footer:"lead-form-footer-mount-point",progress:"lead-form-progress-bar-mount-point"},this.fieldMountPoint=Dc(this.doc,this.salt,this.elementId.fields),this.errorMountPoint=Dc(this.doc,this.salt,this.elementId.errors),this.progressBarMountPoint=Dc(this.doc,this.salt,this.elementId.progress),this.nextButton=Dc(this.doc,this.salt,this.elementId.nextButton),this.footerMountPoint=Dc(this.doc,this.salt,this.elementId.footer)}},{key:"initQuizElements",value:function(){this.elementId=Yd(Yd({},this.elementId),{},{bigStepDisplay:"lead-form-big-step-display-mount-point",smallStepDisplay:"lead-form-small-step-display-mount-point",backButton:"lead-form-back-button",forwardButton:"lead-form-forward-button"}),this.bigStepDisplayMountPoint=Dc(this.doc,this.salt,this.elementId.bigStepDisplay),this.smallStepDisplayMountPoint=Dc(this.doc,this.salt,this.elementId.smallStepDisplay),this.backButton=Dc(this.doc,this.salt,this.elementId.backButton),this.forwardButton=Dc(this.doc,this.salt,this.elementId.forwardButton)}},{key:"makeFormMetadata",value:function(t,e){var n={credential_type:t.credentialType,form_id:t.id,programs_of_study:t.programsOfStudy,taxi_form_type:e.formType,user_agent:navigator.userAgent,version:"compiler: ".concat(t.version," plugin: ").concat(Iu)};return"BOOTCAMP"===n.credential_type&&t.universityProgramId&&(n.university_program_id=t.universityProgramId),n}},{key:"setSubmitTargets",value:function(){this.submitTargets=this.package.submitTargets?Yd(Yd({},ic),this.package.submitTargets):ic}},{key:"status",value:function(){return{currentScreen:this.currentScreen,dataStore:this.dataStore,submitted:this.submissionInProgress,klondikeOpts:this.klondikeOpts}}},{key:"isScreenValid",value:function(){var t=this,e=this.dataStore.get("_errors").reduce((function(t,e){return t+e.error}),""),n=this.activeValidations.map((function(e){return e.validation(t.dataStore)})).filter((function(t){return!t.ok}));return this.suppressValidationErrors||e!==n.reduce((function(t,e){return t+e.error}),"")&&this.dataStore.set("_errors",n),0===n.length}},{key:"handleInvalidEngineVariables",value:function(){this.telemetryService.emitEvent({type:"screenTransitionNextFailed",step:this.currentStepMarker}),this.emitEngineEvent("nextScreenTransitionFailed",{multiFormIdentifier:this.salt,failureReason:"The screen is not valid for transition"}),this.validatedFieldWatchStream=this.dataStore.observeMany(this.activeValidations.map((function(t){return t.field})),250),this.validatedFieldWatchStream.onValue(this.isScreenValid)}},{key:"didFieldExistOnUserPath",value:function(t){var e=this.package.fields[t],n=this.package.screens.find((function(e){return e.allFields.includes(parseInt(t,10))})).conditional[t];if(!n)return!0;var r=n[0],i=n[2];return!!id[r](this.dataStore,i,e).result}},{key:"handleThankYouPageRouting",value:function(){var t=this;Object.keys(this.package.thankYouPageURLs).forEach((function(e){var n=t.package.fields[e];if(t.didFieldExistOnUserPath(e)){var r=t.dataStore.get(n.name),i=t.package.thankYouPageURLs[e][r];i&&(t.hasSelectedTYRouteAnswer=!0,t.thankYouPageURL=i)}}))}},{key:"handleSkipLink",value:function(){var t=this.formAttributes,e=t.createStep,n=t.hasSkipLink,r="".concat(this.salt,"-skip-link"),i=this.currentStepMarker>e,o=!this.doc.getElementById(r);n&&i&&o&&this.addSkipLink(r)}},{key:"addSkipLink",value:function(t){var e=this,n=this.doc.createElement("a");if(n.id="".concat(this.salt,"-skip-link"),n.id=t,n.text="Skip",Object.assign(n.style,{display:"block",textAlign:"center",marginTop:"1rem"}),this.formAttributes.hardCodeSkipLink)return n.href=this.formAttributes.hardCodeSkipLink,void this.nextButton.after(n);n.href=this.thankYouPageURL;n.onclick=function(t){t.preventDefault(),e.package.thankYouPageURLs&&e.handleThankYouPageRouting(),e.telemetryService.emitEvent({type:Ju,step:e.currentStepMarker}).then((function(){window.location.assign(e.thankYouPageURL)})),setTimeout((function(){window.location.assign(e.thankYouPageURL)}),400)},this.nextButton.after(n)}}]),t}(),Wd=function(t){return{first_name:t.first_name,last_name:t.last_name,email:t.email,password:t.password}},$d=function(t){var e=t.applyDomain,n=e?e.trim():"";return n.toLowerCase().startsWith("http")||(n="https://".concat(n)),n.endsWith("/")||(n="".concat(n,"/")),n},Zd=function(){var t=Fu(Hu().mark((function t(e,n,r,i,o,a,s,u){var c,l,d,f;return Hu().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e("sesameSubmissionAttempt",{multiFormIdentifier:n}),c=$d(i),l=Wd(a),o[Ec.SUBMISSION_URL]=c+Ac,t.next=7,xd(l,c);case 7:return d=t.sent,t.next=10,d.json();case 10:if(f=t.sent,!(d.status>=400)&&f.token){t.next=13;break}throw f;case 13:return Cu.logger.info("Request to the Sesame Signup Endpoint completed",o),o[Ec.SUBMISSION_URL]=c+Tc,t.abrupt("return",Cd(f.token,c,u,o));case 18:return t.prev=18,t.t0=t.catch(0),t.abrupt("return",s(t.t0,"sesameSubmissionFailed"));case 21:case"end":return t.stop()}}),t,null,[[0,18]])})));return function(e,n,r,i,o,a,s,u){return t.apply(this,arguments)}}(),Jd=function(t,e,n,i,o,a,s,u,c){var l=c.createElement("div");l.id="".concat(s.id,"-spinner"),l.setAttribute("class","spinner spinner--small"),s.prepend(l);var d=function(t){var e=t.form_id;return r(r(r(r(r(r(r({},Ec.USER_EMAIL,t.email||""),Ec.FORM_ID,null!=e?e:""),Ec.LEAD_SOURCE,t.lead_source||""),Ec.SUBMISSION_URL,""),Ec.INTEREST_SUBMISSION_ENDPOINT,"SESAME"),Ec.SUBMITTED_PAGE_HOST,t.submitted_page_host||""),Ec.TAXI_FORM_TYPE,t.taxi_form_type||"")}(i);return Cu.logger.info("Taxi Plugin attempting Sesame authentication",d),Zd(e,o,t,n,d,i,(function(t,n){var r;l.remove();var i="An unknown error occurred while trying to create a user. Please try again later.",u="submit",c="Unexpected error format received from Sesame Signup Endpoint (submission_url may be incorrect)";d[Ec.REQUEST_RESPONSE_ERROR]=t;var f=t.code&&t.errorInfo&&t.errorInfo.code||t.type&&t.code&&t.message,h=t.code&&t.errors&&t.message&&(null===(r=t.errors[0])||void 0===r?void 0:r.inputName);if(f)t.errorInfo&&"invalid_password"===t.errorInfo.code?(i="Password must be at least eight characters and contain three of the following: Uppercase Character, Lowercase Character, Number, Special Character",u="password",c="".concat(t.errorInfo.name,": ").concat(t.errorInfo.message)):t.errorInfo&&"invalid_signup"===t.errorInfo.code||"Duplicate username or email"===t.message?(i="A user with that email address already exists",u="email",c="".concat(t.errorInfo&&t.errorInfo.name?t.errorInfo.name:"BadRequestError",": ").concat(t.message)):c="".concat(t.errorInfo&&t.errorInfo.name?t.errorInfo.name:t.code,": ").concat(t.message);else if(h){var p;i=t.message,u=null===(p=t.errors[0])||void 0===p?void 0:p.inputName,c="".concat(t.message,", inputName:").concat(t.errors[0].inputName)}d[Ec.REQUEST_RESPONSE_ERROR_MSG]=c,Bc(d,"Request to Sesame Signup Endpoint failed with error. ".concat(c),"Request to Sesame Signup Endpoint failed with error. ".concat(c)),e(n,{multiFormIdentifier:o,failureReason:t});var v=Wu.makeError(u,i);a.set("_errors",[].concat(ju(a.get("_errors")),[v])),s.disabled=!1,!1}),c)};function Xd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qd(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;return Pu(this,i),(e=n.call(this)).firstScreenRenderingTime=t.firstScreenRenderingTime,e.package=t.formPackage,e.experimentalTrialAttribs=t.formPackage.experimentalTrialAttributes,e.mountPoint=t.mountPoint,e.hostProvidedThankYouPageURL=t.thankYouURL,e.thankYouPageURL=t.thankYouURL,e.formAttributes=t.formAttributes,e.template=t.template,e.screenPath=[0],e.salt=t.salt,e.eventSubscriptions=t.eventSubscriptions||{},e.activeValidations=[],e.validatedFieldWatchStream=null,e.doc=o,e.klondikeOpts=r,e.currentStepMarker=t.startScreen||0,e.startScreen=e.getNthScreen(e.currentStepMarker),e.initialProgress=t.initialProgress||0,e.presetFields=t.presetFields,e.isScreenValid=e.isScreenValid.bind(Bu(e)),e.suppressValidationErrors=t.suppressValidationErrors,e.formMetadata=e.makeFormMetadata(e.package,e.formAttributes),e.telemetryService=new Md({enabled:t.telemetryEnabled,globalScope:o.defaultView,opts:{grouping:e.package.grouping,formId:e.formMetadata.form_id,userAgent:e.formMetadata.user_agent}}),e.engineEventStream=Gu.Ay.stream((function(t){e.engineEventEmitter=t})),e.engineEventStream.onValue((function(t){e.eventSubscriptions[t.type]&&e.eventSubscriptions[t.type](t)})),e}return Nu(i,[{key:"hasAcceptedCookieGroup",value:function(t,e){if(!t)return!0;var n=",C000".concat(e,",");return t.includes(n)}},{key:"subscribe",value:function(t,e){this.eventSubscriptions[t]=e}},{key:"unsubscribe",value:function(t){this.eventSubscriptions[t]=void 0}},{key:"getSubscription",value:function(t){return this.eventSubscriptions[t]}},{key:"emitEngineEvent",value:function(t,e){var n={campaign:this.dataStore.get("campaign_id"),creative_id:this.dataStore.get("creative_id"),ef_id:this.dataStore.get("ef_id"),lead_source:this.dataStore.get("lead_source"),landing_page:this.dataStore.get("landing_page"),permguid:this.dataStore.get("ignition_one_id"),sendid:this.dataStore.get("send_id")};Object.keys(n).forEach((function(t){return null==n[t]&&delete n[t]})),this.engineEventEmitter.emit({type:t,details:Qd(Qd({},e),{},{urlParams:n})})}},{key:"start",value:function(){this.initDataStore(),this.getGeo(),this.initBaseElements(),this.attachKefirToActionButton(this.nextButton),this.formAttributes.isQuizForm&&(this.initQuizElements(),this.attachKefirToActionButton(this.forwardButton),this.attachKefirToActionButton(this.backButton,!1)),this.emitEngineEvent("started",{multiFormIdentifier:this.salt}),this.startTelemetry(),this.setSubmitTargets(),this.renderProgress(),this.fieldMountPoint?this.renderState():this.mountErrorLogger("error","render form fields",this.elementId.fields)}},{key:"renderErrors",value:function(t){null!==this.errorMountPoint?$l(this.errorMountPoint,t,this.activeValidations.map((function(t){return t.fieldId}))):this.mountErrorLogger("error","render form errors",this.elementId.errors)}},{key:"attachKefirToActionButton",value:function(e){var n=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.formAttributes.createStep;e&&"object"===(0,t.A)(e)?Gu.Ay.fromEvents(e,"click").onValue(function(){var e=Fu(Hu().mark((function e(o){var a,s,u;return Hu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Yl(n.doc),!r){e.next=12;break}if(a="object"===(0,t.A)(n.currentScreen.out[-1]),s=n.currentStepMarker>=i,u=!0,!s||!n.isScreenValid()||a){e.next=9;break}return e.next=8,n.submitForm();case 8:u=e.sent;case 9:u&&n.transition(o.target.dataset.transitionOrigin),e.next=13;break;case 12:n.backTransition();case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()):this.mountErrorLogger("error","find Next Step button",this.elementId.nextButton)}},{key:"passValuesFromCookies",value:function(){this.onScreenFields.forEach((function(t){if(Object.keys(sc).includes(t.result.name)){0!==t.result.type&&console.warn("".concat(t.result.name," is type ").concat(t.result.type,", not type 0 (text field). Only text fields support autofilling from cookie data."));var e=Nc("taxi-".concat(sc[t.result.name]));null!=e&&(t.result.value.text=e)}}))}},{key:"anyRequiredFields",value:function(){return this.onScreenFields.some((function(t){return!t.hidden&&t.required}))}},{key:"setForwardButtonText",value:function(){this.forwardButton.textContent=this.anyRequiredFields()?"Next >":"Skip for now >"}},{key:"setNavigationButtonsVisibility",value:function(){this.backButton.style.visibility=this.screenPath&&1!==this.screenPath.length?"visible":"hidden",this.forwardButton.style.visibility="object"===(0,t.A)(this.currentScreen.out[-1])?"hidden":"visible"}},{key:"removeFutureScreenFields",value:function(t){for(var e=this,n=function(n){for(var r=0;r=o;this.nextButton.textContent=a?r:n}}},{key:"resetFooterElement",value:function(t){if(!t.length&&this.footerMountPoint.firstChild)for(;this.footerMountPoint.firstChild;)this.footerMountPoint.removeChild(this.footerMountPoint.firstChild)}},{key:"renderState",value:function(){var e=this,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=this.currentScreen.allFields,i=this.currentScreen.conditional;if(this.setNextButtonText(),this.formAttributes.isQuizForm&&this.setNavigationButtonsVisibility(),this.onScreenFields=this.currentScreen.allFields.map((function(t){return e.package.fields[t]})).map((function(n,o){var a=r[o];return"object"!==(0,t.A)(i[a])?{ready:!0,result:n}:id[i[a][0]](e.dataStore,i[a][2],n)})).filter((function(t){return null!==t.result})).map((function(t){return t.result.salt=e.salt,t})),this.passValuesFromCookies(),this.onScreenFields.filter((function(t){return!t.ready})).length)return window.setTimeout((function(){e.renderState()}),1e3);this.onScreenFields=this.onScreenFields.map((function(t){return t.result})),this.formAttributes.isQuizForm&&this.setForwardButtonText();var o=this.onScreenFields.filter((function(t){return!t.mountPoint||1===t.mountPoint})),a=this.onScreenFields.filter((function(t){return 2===t.mountPoint}));this.experimentalTrialAttribs&&Object.keys(this.experimentalTrialAttribs).includes("restricted-geo-implied-consent")&&(o=Hl(o));var s=Gl(this.fieldMountPoint,o,this.dataStore),u=s.streams,c=s.validations,l=s.telemetryStream;return this.resetFooterElement(a),a.length?(this.footerMountPoint&&"object"===(0,t.A)(this.footerMountPoint)?Gl(this.footerMountPoint,a,this.dataStore):this.mountErrorLogger("error","render form footer",this.elementId.footer),this.emitEngineEvent("footerContentRendered",{multiFormIdentifier:this.salt})):this.emitEngineEvent("noFooterContentRendered",{multiFormIdentifier:this.salt}),this.handleSkipLink(),this.handleAddingStepContextInfo(),this.dataStore.attachStreams(u),l.onValue((function(t){return e.telemetryService.emitEvent(t)})),this.activeValidations=c,o.filter((function(t){return!t.hidden})).length||(n?this.transition():this.backTransition()),this.firstScreenRenderingTime.hasAlreadyReported||(this.firstScreenRenderingTime.hasAlreadyReported=!0,ru.addTiming("taxi_plugin_rendering",Date.now()-this.firstScreenRenderingTime.startTime)),{}}},{key:"handleAddingStepContextInfo",value:function(){var t=this.formAttributes.contextForSteps;if(t){var e=Mc(this.salt,"step-context-info"),n=this.doc.getElementById(e);n&&this.fieldMountPoint.removeChild(n);var r=t[this.currentStepMarker];if(r){var i=this.doc.createElement("p");i.id=e,i.textContent=r,i.style.marginBottom="1rem",this.fieldMountPoint.insertBefore(i,this.fieldMountPoint.firstChild);var o=this.fieldMountPoint.querySelector(".control");if(o){var a=o.getAttribute("aria-describedby")||"";o.setAttribute("aria-describedby",[a,e].join(" ").trim())}}}}},{key:"renderProgress",value:function(){this.package.screens.length>1&&(null!==this.progressBarMountPoint?this.progressBar=new ad(this.doc,this.progressBarMountPoint,this.initialProgress,this.package.screens.length,this.formAttributes.isQuizForm,this.bigStepDisplayMountPoint,this.smallStepDisplayMountPoint):this.mountErrorLogger("warn","render form progress",this.elementId.progress))}},{key:"handleInferredFields",value:function(){var t=this.package.inferredFields||{};if(t.country)if(this.dataStore.get("_INTERNAL_carmen_sandiego_fetch_status")===nc){var e=this.dataStore.get("_INTERNAL_carmen_sandiego_fetch_value");this.dataStore.set("country",e.country_name||"undetermined")}else this.dataStore.set("country","undetermined");t.zip_code&&this.dataStore.set("state_used_inferred_geo",!0),(t.zip_code||t.country)&&this.dataStore.set("country_used_inferred_geo",!0)}},{key:"createSubmissionPackage",value:function(){var t=this,e=this.formAttributes,n=e.createStep,r=e.isQuizForm,i=Object.keys(this.dataStore.current()).reduce((function(e,n){return n.startsWith("no_klondike_")||n.startsWith("_INTERNAL_")||(e[n]=t.dataStore.get(n)),e}),{}),o={page_url:window.location.href,submitted_page_host:window.location.host};r&&this.removeAbandonedConditionalFields(i),Number.isNaN(n)||this.removeFutureScreenFields(i);var a=Qd(Qd(Qd(Qd({},o),this.klondikeOpts.fields||{}),i),{},{_errors:void 0,submission_time_ms:Date.now()},this.formMetadata);if(window.Optanon)if(a.ot_category_4_consent=this.hasAcceptedCookieGroup(window.OptanonActiveGroups,4),"function"==typeof window.Optanon.getDataSubjectId){var s=window.Optanon.getDataSubjectId();s&&(a.ot_consent_id=s)}else{var u=qc(a,kc,this.package);Cu.logger.warn("OneTrust is enabled on site, but could not collect a consentId",u)}return Nc("barnacle_do_not_sell")&&(a.barnacle_do_not_sell=!0),a}},{key:"navigateToThankYouPage",value:function(){var t=-1===this.thankYouPageURL.indexOf("?")?this.doc.location.search:"&".concat(this.doc.location.search.slice(1));return window.location.assign("".concat(this.thankYouPageURL).concat(t))}},{key:"submitForm",value:function(){var e=this,n=this.formAttributes.createStep;this.submissionInProgress=!0,this.handleInferredFields(),this.nextButton.disabled=!0,this.package.thankYouPageURLs&&this.handleThankYouPageRouting();var r=Number.isNaN(parseInt(n,10))||n===this.currentStepMarker?kc:"UPDATE",i=this.createSubmissionPackage();if(this.formAttributes.isAuthForm)return Jd(this.submitTargets,this.emitEngineEvent.bind(this),this.package,i,this.salt,this.dataStore,this.nextButton,this.submissionInProgress,this.doc);var o=qc(i,r,this.package);return Cu.logger.info("Taxi Plugin attempting submission requests",o),i.credential_type||Bc(o,"submissionPackage does not have credential_type","submissionPackage does not have credential_type"),Lc(oc,i,30,sc),this.emitEngineEvent("imqSubmissionAttempt",{multiFormIdentifier:this.salt}),Ad(i,r).then((function(n){if(o[Ec.INTEREST_SUBMISSION_ENDPOINT]="IMQ",!n.success)return e.handleSubmissionErrors(o,n.error),!1;if(Cu.logger.info("Request to Interest Message Queue completed",o),"object"===(0,t.A)(e.currentScreen.out[-1])||e.shouldImmediatelyGoToThankYouPage()){try{e.navigateToThankYouPage()}catch(t){o[nf]=t,Bc(o,"Redirecting user to thank you page failed with error: ".concat(t.message),"Redirecting user to thank you page failed with error: ".concat(t.message))}return!1}return e.nextButton.disabled=!1,n.success})).catch((function(t){return e.handleSubmissionErrors(o,Td(t))}))}},{key:"handleSubmissionErrors",value:function(t,e){var n=e.rawError,i=e.logMessage,o=e.uiMessageArray,a=e.event,s=Qd(Qd({},t),{},r({},nf,n));Bc(s,i,i),this.emitEngineEvent(a,{multiFormIdentifier:this.salt,failureReason:n});var u=o.map((function(t){return Wu.makeError("submit",t||ac)}));this.dataStore.set("_errors",[].concat(ju(this.dataStore.get("_errors")),ju(u))),this.submissionInProgress=!1,this.nextButton.disabled=!1}},{key:"shouldImmediatelyGoToThankYouPage",value:function(){var t=this.formAttributes,e=t.createStep,n=t.shouldFillOutUpdateSteps;return this.hasSelectedTYRouteAnswer&&e<=this.currentStepMarker&&!n}},{key:"updateScreenPath",value:function(t,e){t&&"-1"!==e&&this.screenPath.push(parseInt(e,10))}},{key:"renderNewScreen",value:function(t,e){this.currentScreen=this.package.screens[parseInt(t,10)],this.telemetryService.emitEvent({type:this.getTaximeterEventByOrigin(e),step:this.currentStepMarker}),this.emitEngineEvent($u,{multiFormIdentifier:this.salt}),this.renderState(),this.progressBar&&this.progressBar.update(this.currentStepMarker,this.package.screens.length)}},{key:"transition",value:function(t){var e=this;this.validatedFieldWatchStream&&this.validatedFieldWatchStream.offValue(this.isScreenValid);var n={$valid:this.isScreenValid()};n.$valid?this.currentStepMarker+=1:this.handleInvalidEngineVariables();var r=Object.keys(this.currentScreen.out)[0],i=Du(this.currentScreen.out[r],2),o=i[0],a=i[1];if("$next"===o){this.updateScreenPath(n.$valid,r);var s=td(a,this.dataStore.current(),n);s.ready?s.result&&"-1"===r?(this.telemetryService.emitEvent({type:"interestSubmit"}),this.submitForm()):s.result&&this.renderNewScreen(r,t):(this.telemetryService.emitEvent({type:"screenTransitionWait"}),setTimeout((function(){e.transition()}),1e3))}}},{key:"backTransition",value:function(){this.dataStore.set("_errors",[]),this.currentStepMarker-=1,this.screenPath.pop();var t=this.screenPath[this.screenPath.length-1]||0;this.currentScreen=this.package.screens[t],this.telemetryService.emitEvent({type:"screenTransitionBack",step:this.currentStepMarker}),this.emitEngineEvent($u,{multiFormIdentifier:this.salt}),this.renderState(!1),this.progressBar&&this.progressBar.update(this.currentStepMarker,this.package.screens.length)}}]),i}(Kd);const of=rf;function af(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var sf={ef_id:"ef_id",l:"landing_page",c:"creative_id",permguid:"ignition_one_id",campaign:"campaign_id",sendid:"send_id",s:"lead_source",lsrc:"lead_source",utm_source:"lead_source",utm_term:"utm_term",utm_AdID:"utm_AdID",utm_AdSetID:"utm_AdSetID",utm_CampaignID:"utm_CampaignID",utm_adgroupid:"utm_adgroupid",utm_adsetname:"utm_adsetname",utm_campaign:"utm_campaign",utm_campaignname:"utm_campaignname",utm_content:"utm_content",utm_cost:"utm_cost",utm_creative:"utm_creative",utm_device:"utm_device",utm_locationphysicalms:"utm_locationphysicalms",utm_matchtype:"utm_matchtype",utm_medium:"utm_medium",utm_network:"utm_network",utm_placement:"utm_placement",gclid:"GCLID",fbclid:"facebook_click_id"};function uf(t){var e=function(t){for(var e=1;e>2),i=new Uint8Array(r),o=0,a=0,s=0;s64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:43===e?62:47===e?63:0)<<18-6*u,3===u||n.length-s==1){for(var c=0;c<3;c++)i[o++]=a>>>(16>>>c&24)&255;a=0}}return i}(t))}var ff=function(t,e,n){if(!n)return t;var r=function(t,e){var n=(new DOMParser).parseFromString(t,"text/html"),r=Dc(n,e,"title"),i=Dc(n,e,"intro_text"),o=Dc(n,e,"intro_sub_text");return{title:r&&r.textContent,introText:i&&i.textContent,introSubText:o&&o.textContent}}(t,e),i=r.title,o=r.introText;return n===uc?function(t,e,n){return'\n
\n
\n
\n
\n
\n \n ').concat(e,'\n \n
\n

').concat(n,'

\n
\n
\n
\n \n
\n
\n
\n
\n \n Next\n \n
\n
\n
\n
\n\n \n \n
\n \n \n ')}(e,i,o):t};function hf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pf(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=JSON.parse(JSON.stringify(i)),a={};e=t.submitTargets,Boolean(e&&e.sesame)&&(a.isAuthForm=!0),n=t.featureFlags,Boolean(n&&n.formType===uc)&&(a.isQuizForm=!0),r=t.formAttributesConfig,Boolean(r&&void 0!==r.createStep)&&(a.isProgressiveForm=!0),function(t){var e=!!t.wasEmbedMounted;return e&&delete t.wasEmbedMounted,e}(o)&&(a.isEmbedForm=!0),function(t){return t.isExecEdForm}(o)&&(a.isExecEdForm=!0);var s,u,c,l,d,f,h=(u=(s=a).isAuthForm,c=s.isProgressiveForm,l=s.isQuizForm,d=s.isEmbedForm,f=s.isExecEdForm,d?c?hc:u?pc:vc:u?dc:c?lc:l?uc:f?fc:cc);return h===cc&&(a.isStandardForm=!0),pf(pf(pf({},o),a),{},{formType:h})};function mf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _f(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:document,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];Pu(this,t),this.firstScreenRenderingTime={startTime:Date.now(),hasAlreadyReported:!1},this.doc=e,this.mpElement=this.doc.getElementById(n),this.opts=r,this.salt=this.getSalt(this.opts),this.packageType=r.packageType||this.mpElement.getAttribute("data-package-type"),this.formPackage=r.package||this.getPackage(),this.formAttributes=gf(this.formPackage),this.templateType=r.templateType||this.mpElement.getAttribute("data-template-type"),this.template=r.template||this.getTemplate(),this.thankYouURL=r.thankYouURL||this.mpElement.getAttribute("data-thank-you-url"),this.startScreen=r.startScreen||0,this.initialProgress=r.initialProgress||0,this.telemetryEnabled=r.telemetryEnabled||!0,this.engineEventListeners=r.engineEventListeners,this.suppressValidationErrors=r.suppressValidationErrors,this.presetFields=this.getPresetFields(r.hostPresetFields),this.klondikeOpts=this.getMountOpts(r,this.formPackage,i)}return Nu(t,[{key:"getSalt",value:function(t){return t.salt||this.mpElement.getAttribute("data-salt")||new Array(10).fill(!0).map((function(){var t=Math.floor(26*Math.random());return String.fromCharCode(97+t)})).join("")}},{key:"getElementTypePackage",value:function(){var t=this.opts.packageFrom||this.mpElement.getAttribute("data-package-location");try{return JSON.parse(this.doc.getElementById(t).innerText.trim())}catch(e){console.error("Taxi plugin could not parse JSON package from element with ID:",t,"Failed with:",e)}return""}},{key:"getPackage",value:function(){var t;return this.packageType===mc?t=this.getElementTypePackage():console.warn("Taxi doesn't know how to load from package type: ",this.packageType),t}},{key:"getElementTypeTemplate",value:function(){var t=this.opts.templateFrom||this.mpElement.getAttribute("data-template-location"),e=this.doc.getElementById(t),n="";if(e.dataset.encoded&&"base64"===e.dataset.encoded)try{n=df(e.innerHTML.trim())}catch(t){return console.error("Taxi plugin could not parse an encoded template from element with ID: ".concat(this.templateFrom,". Failed with: ").concat(t)),""}else n=e.innerHTML.trim();return ff(n,this.salt,this.formAttributes.templateOverride)}},{key:"getTemplate",value:function(){var t,e,n,r,i,o,a,s,u="";return this.templateType===gc?u=this.getElementTypeTemplate():this.templateType===yc?(t=this.salt,e=this.formPackage.embedFormData,n=e.title,r=void 0===n?"":n,i=e.introText,o=void 0===i?"":i,a=e.introSubText,s=void 0===a?"":a,u='\n
\n
\n
\n
\n \x3c!-- Copy added from program config --\x3e\n
\n

').concat(r,'

\n
\n

').concat(o,'

\n

').concat(s,'

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n
\n
\n
\n
')):console.warn("Taxi doesn't know how to load from location type: ",this.templateType),u}},{key:"getPresetFields",value:function(t){var e=function(t){for(var e=uf(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"DEGREE"),n=Object.keys(e),r=t.slice(1).split("&"),i={},o={},a=0;a id = ").concat(e.id,'. Please verify the embedded form snippet\'s "data-package-id" and "data-grouping" attributes have the correct values.'),u={dev:"https://prospect-form-packages.dev.2u.com",stg:"https://prospect-form-packages.stg.2u.com",prod:"https://prospect-form-packages.2u.com"}[jc()],c="".concat(u,"/").concat(a,"/").concat(o,".json"),l=t.location.href,d={hasFailedFetch:!0},f=function(){return r(r(r(r({},Of,parseInt(o,10)),kf,a),Af,l),Cf,c)};return t.taxiPluginPackagesCache[c]?t.taxiPluginPackagesCache[c]:fetch(c).then((function(e){if(e.ok){var n=e.json();return t.taxiPluginPackagesCache[c]=n,n}return function(t){var e=Sf(Sf({},f()),{},r({},xf,t.status)),n=function(t,e){return"Fetching package failed for Package ".concat(t," on page ").concat(e)}(o,l);return Bc(e,n,s),d}(e)})).catch((function(t){var e=Sf(Sf({},f()),{},r(r({},Pf,t.message),If,t));return Bc(e,function(t,e){return"Fetch error occured for Package ".concat(t," on page ").concat(e)}(o,l),s),d}))}))},Mf=function(t,e,n,i){!function(t){t.formAttributesConfig=t.formAttributesConfig||{},t.formAttributesConfig.wasEmbedMounted=!0}(e),function(t,e,n){var r=t.document.createElement("code");r.style="display:none;",r.id="".concat(n.id,"-package"),r.innerHTML=JSON.stringify(e),t.document.getElementsByTagName("body")[0].appendChild(r)}(t,e,n),function(t,e){var n=e.id,i=e.grouping,o=e.embedFormData,a=e.hasFailedFetch,s=e.applyDomain;if(a)return!1;var u=t.location.href,c=r(r(r(r(r({},Of,n),kf,i),Af,u),Ef,e.degreeOffering),Tf,e.programsOfStudy);return o?!(!o.thankYouURL&&!s&&(Bc(c,function(t,e){return"thankYouURL is missing from Package ".concat(t," on page ").concat(e)}(n,u),"The Embedded package ".concat(n,' is missing the thankYouURL property. Please add it to the "Embeddable Form Data" section in Taxi, then save and publish the form.')),1)):(Bc(c,function(t,e){return"embedFormData is missing from Package ".concat(t," on page ").concat(e)}(n,u),"The Embedded package ".concat(n,' is missing the embedFormData property. Please fill in the "Embeddable Form Data" section in Taxi, then save and publish the form.')),!1)}(t,e)&&(!function(t,e,n){var r,i,o={package:e,thankYouURL:e.embedFormData.thankYouURL||"",telemetryEnabled:!0};o.hostPresetFields={lead_source:(null==e||null===(r=e.embedFormData)||void 0===r?void 0:r.leadSource)||"embedmissingsource",splash_creative:(null==e||null===(i=e.embedFormData)||void 0===i?void 0:i.splashCreative)||""},new bf(t.document,n.id,o).start(),t.embedFormsState[n.id]=Rf}(t,e,n),ru.addTiming("taxi_plugin_embed_rendering",Date.now()-i))},Df=function(){var t=Fu(Hu().mark((function t(e,n){var r,i,o,a,s,u;return Hu().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.filter((function(t){return!e.embedFormsState[t.id]&&(e.embedFormsState[t.id]=Nf,!0)})),i=Date.now(),t.next=4,Promise.all(Lf(e,r));case 4:for(o=t.sent,a=0;a0&&(Df(t,n),n.length)}},Bf=function(){var t=Fu(Hu().mark((function t(e){var n,r;return Hu().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.embedFormsLastHref){t.next=2;break}return t.abrupt("return");case 2:e.taxiPluginPackagesCache={};case 3:if(null!=e&&null!==(n=e.document)&&void 0!==n&&n.body){t.next=8;break}return t.next=6,new Promise((function(t){return setTimeout(t,100)}));case 6:t.next=3;break;case 8:if(Uf(e),!((r=Uc(e.document.body)).length>0)){t.next=13;break}return t.next=13,Df(e,r);case 13:new e.MutationObserver(Ff(e)).observe(e.document.body,{childList:!0,subtree:!0});case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Vf=n(85072),zf=n.n(Vf),qf=n(15224),Hf={insert:"head",singleton:!1};zf()(qf.A,Hf);qf.A.locals;function Gf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Yf(t){for(var e=1;e